Posts

Showing posts from March, 2015

sql - unable to grant privileges to scott -

i'm trying grant all scott on emp sys, oracle throwing ora-00942: table or view not exist error message. i'm not getting emp table details in sys dba . how can grant permission scott can create views or user in scott. when tried create view or user in scott, system throwing insufficient privileges error message. thanks help. you're having (at least) 3 different problems: missing system privileges create views etc. (assuming want use example tables provided database installation) table called employees , not emp the employees table in hr schema, not in sys schema missing privileges on hr.employees to fix these: -- connect sys grant create view scott; -- connect hr create select on employees scott; -- connect scott create view v_scott select * hr.employees; update if you're unsure correct table name, can use query list of tables in database names start emp (to run this, you'll have use privileged user account, e.g. sys): se...

Django using checkbox export csv -

i not know how download files have been check box; please me; this views.py: def export_selected_data(request): if request.method == 'post': _selected_action= request.post.getlist('_selected_action') _selected_action =get_object_or_404(user, pk=user_id) response = httpresponse(mimetype='application/vnd.ms-excel; charset="shift_jis"') response['content-disposition'] = 'attachment; filename=file.csv' writer = csv.writer(response) obj_all=user.objects.all() obj in obj_all: row=[] field in user._meta.fields: row.append(unicode(getattr(obj,field.name)).encode("cp932")) writer.writerow(row) return response this index.html: <tr> <td><input class="action-select" name="_selected_action" type="checkbox" value="{{ user_id }}"></td> <td><a hre...

android - how to share images from my app to whatsapp? -

here sharing images app whatsapp.but code working here mylist1[i] , not mylist2[i] , mylist3[i]. in activity file there 15 images in every list. do? intent intent = new intent(); intent.setaction(intent.action_send); intent.settype("image/*"); uri uri = uri.parse("android.resource://com.example.drawcelebrities/"+mylist1[i]+mylist2[i]+mylist3[i]); intent.putextra(intent.extra_stream, uri); startactivity(intent.createchooser(intent, "share via")); take image array in mylist[] , use below code, share image via whatsapp. uri uri = uri.parse("android.resource://"+getpackagename()+"/"+mylist[i]); intent shareintent = new intent(); shareintent.setaction(intent.action_send); shareintent.settype("image/*"); shareintent.putextra(intent.extra_stream, uri); startactivity(intent.createchooser(shareintent, "share via"));

ios - Sort values of NSMutableDictionary alphabetically -

i have nsmutabledictionary integers key , nsstring values example: key -- value 1 -- b 2 -- c 3 -- a now want sort nsmutabledictionary alphabetically using values. want dictionary : key(3,1,2)->value(a,b,c). how can perform this? from apple docs: https://developer.apple.com/library/mac/documentation/cocoa/conceptual/collections/articles/dictionaries.html#//apple_ref/doc/uid/20000134-sw4 sorting dictionary keys value: nsdictionary *dict = [nsdictionary dictionarywithobjectsandkeys: [nsnumber numberwithint:63], @"mathematics", [nsnumber numberwithint:72], @"english", [nsnumber numberwithint:55], @"history", [nsnumber numberwithint:49], @"geography", nil]; nsarray *sortedkeysarray = [dict keyssortedbyvalueusingselector:@selector(compare:)]; // sortedkeysarray contains: geography, history, mathematics, english blocks ease custom sorting of dictionaries: nsarray *blocksortedkeys = [dict ...

How to open remote html file in internet explorer? -

i trying open remote html file in ie 8. interestingly, there no error thrown , remote file not opened in ie 8. below command executed on hamilton shell prompt: "c:\\program files (x86) \\internet explorer\\iexplore.exe" "file://o|\\portsrc\\spg\\system_1\\help\\creo_help_pma/usascii/pma/simulation_modules/modstr/constrnt/reference/insuf_cons_models.html" but, file gets opened in firefox: "c:\\program files (x86)\\mozilla firefox\\firefox.exe" "file://o|\\portsrc\\spg\\system_1\\help\\creo_help_pma/usascii/pma/simulation_modules/modstr/constrnt/reference/insuf_cons_models.html" please guide me same. regards, amol gaikwad. i got answer , below solution open remote file in internet explorer. "c:\program files (x86) \internet explorer\iexplore.exe" "file:///o|/portsrc/spg/system_1/help/creo_help_pma/usascii/pma/simulation_modules/modstr/constrnt/reference/insuf_cons_models.html" resolved using "file...

AngularJS - Add style to option -

i have code: <select ng-options="key value (key, value) in {{set.values}}" ng-init="set.value" ng-model="item.styles[group][name].value"></select> i need set style options (generated): <option style="background: green;"> <option style="background: red;"> how? possible? or need directive or other fancy code? you can apply conditional styles via angular's built-in ng-style directive markup <span ng-style="mystyle">sample text</span> logic $scope.mystyle = { background: '#000000' }; where directive takes valid expression see also: how conditionally apply css styles in angularjs?

c# - Working with GridView -

is there way add groups gridview in xaml this: <gridview x:name="gridview" selectionmode="none"> <groupitem x:name="group1"> </groupitem> </gridview> and add items this: group1.items.add(uielement)? you can add multiple stackpanels in grid. <gridview x:name="gridview" selectionmode="none"> <stackpanel margin="5"> <stackpanel name="sc" orientation="horizontal" margin="3,0"> <textblock text="start time : " style="{staticresource titletextstyle}"></textblock> <textblock text="{binding bookedfromdtetme }" textwrapping="wrap" style="{staticresource subtitletextstyle}" margin="4,0,0,0"/> </stackpanel> <stackpanel orientation="horizontal" margin=...

email - Issue with Cc and Bcc in sending mails using SMTP - PHP -

Image
i'm sending email php page using smtp. works perfect except bcc. this how got email, interestingly can see bcc well. whats wrong in code, can please help. $headers = array("mime-version"=> '1.0', "content-type" => "text/html; charset=iso-8859-1", "from" => $from, "to" => $to, "bcc" => $user_copy, "reply-to" => $from, "subject" => $subject); $smtp = mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $message); diagnose : mail server not strip bcc: headers. fix: do not specify bcc recipients in bcc: headers. add bcc recipients first parameter of send . http://pear.php.net/manual/en/package.mail.mail.send.php

android - hide listview on click -

hide listview on click hi all, want hide listview on click of button. have mainactivity.in there 2 listviews. and mainactivity extends activity can't used implements keyword.. , hiding listview activity must extends listactivity. in below code.. but android donot use multiple inheritance. how done? use getlistview().setvisibility(view.invisible); within listactivity. how looks inside code: public onclicklistener teamlisten = new onclicklistener() { public void onclick(view v) { getlistview().setvisibility(view.invisible); } }; get list view findviewbyid(r.id.mylistiview) , use mylistview.setvisibility(view.invisible)

Grid of Circles on Canvas (Android) -

i new android development. trying make game. in game have show grid of dots (5*6) on canvas. purpose decided first show circles of same range , show bitmaps in them. followed tutorial drawing circles. compiled code. there no error or warning there, canvas don't show circle. please suggest me should do. below given code , logcat out put. my code file: package com.example.circle; import android.os.bundle; import android.app.activity; import android.content.context; import android.graphics.bitmap; import android.graphics.bitmap.config; import android.graphics.canvas; import android.graphics.paint; import android.view.menu; import android.view.view; public class mainactivity extends activity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); } public class board extends view { paint p = new paint(); paint black=new paint(); pai...

JMockit: Verifing a set of methods has not been called -

this question jmockit. know how verify specific method has not been called class, example: new expectations() {{ writer.writestring(anystring); times = 0; }}; now, writer has bunch of methods called writestring, writeboolean, writearray, etc, , want verify none of them has been called. possible using kind regex/method name matching? thanks you should able achieve fullverifications class. like: @test public void mytest(@mocked final writer writer) { codeundertest.dosomething(writer); new fullverifications(writer) {{ // expected calls verified here. // calls not expected cause "unexpected invocation" if detected. }}; }

java - Exposing an EJB project as SOAP WebService in another project -

i have 2 different java projects (in eclipse), 1 of them required jpa implementation accessing db, classes encapsulate work beans tagged @stateless , @localbean. second project wants soap web service implementation offering methods, classes have call beans speaking code, on project must soap implementation have like: package implementacion; import javax.ejb.stateless; import javax.jws.webservice; @stateless @webservice(targetnamespace = "http://implementacion/", portname = "testport", servicename = "testservice") public class test { @ejb private languagebo lbo; public test(){ } public string sayhello() { return "hello world"; } public string saybye() { return "bye world"; } public wscollectionresult getalllanguages() { return lbo.getalllanguages(); } } my web.xml: <?xml version="1....

Windows Phone app exception: System.Windows.Markup.XamlParseException -

i have windows phone app works fine in emulator , on test device (lumia 520), when published store appears having issues it. in crash logs see lots of same error: problem function: ms.internal.xcpimports.tilehostv2_setnativecontentprovider exception type: system.windows.markup.xamlparseexception stack trace: "frame image function offset 0 system_windows_ni ms.internal.xcpimports.checkhresult 0x001c1f04 1 system_windows_ni ms.internal.xcpimports.tilehostv2_setnativecontentprovider 0x00000054 2 system_windows_ni ms.internal.tilehostv2.bindtoagwebbrowsercontrol 0x00000028 3 microsoft_phone_interop_ni microsoft.phone.controls.webbrowserinterop..ctor 0x0000008e" the problem is, doesn't give me great deal go on. doesn't appear related pretty in co...

email - php mail() is not working -

this question has answer here: php mail not working reason 8 answers i can't mail() function work. have make changes in cpanel. have configure anything? i using code below: mail('abc@xyz.com','subject sdsas','random message','from: zzz@yyy.com'); note: windows implementation of mail() differs in many ways unix implementation. first, doesn't use local binary composing messages operates on direct sockets means mta needed listening on network socket (which can either on localhost or remote machine). second, custom headers from:, cc:, bcc: , date: not interpreted mta in first place, parsed php. such, parameter should not address in form of "something ". mail command may not parse while talking mta. see: php: mail - manual how can php mail() work? need configuring mta mta receiving ma...

ubuntu - Python error OSError: [Errno 31] Too many links -

see error message below, while trying create new directory python's native os library. ... file "files.py", line 93, in create_dir os.makedirs(d) file "/usr/lib/python2.7/os.py", line 150, in makedirs makedirs(head, mode) file "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) oserror: [errno 31] many links: '/var/lib/kaas/77520' i can see there above 32000 directories in directory $ ll | wc -l 32001 is there limit on os level how many directories can created or causing issue here? or python limitation? i'm running ubuntu 12.04.4 lts. the 32000 directory entry limit filesystem-level ext3 limit.

Android: How to build a Tab-flow-layout with fragment collection & listview in it? -

novice android! need work out following layout of project! have tabcollection actionbar. shows > tab 1 -->screen 1 (contains listview json webservice, while clicking on listview cell pass parameter screen 2) -> screen 2(will initializing parameter got screen 1) > tab 2 -->screen 3 (contains listview , few textview & button, while button action pass data screen 4) -> screen 4 (will load data got screen 3) > tab 3 -->screen 5 (same screen 3) -> screen 6 (same screen 4) now, have been surfing whole google queries, & found thousand of examples & hundreds of way layout application! have choose following make work! took mainactivity extending fragmentactivity implements actionbar.tablistener (with viewpager included) --> have added fragments fragmentpageradapter 1.fragment1 (contains listview onitemclicklistener, dont know how pass data fragmenttransaction 2 & load it, need here !!) 2.fragment3 (same as) 3.fragent5 (s...

object variable or block with variable not set vb6 -

i trying itemid , quantity of items combining tables getting following error: "object variable or block variable not set" can find solution code is: openrecset cmrptitem, tmp, "select items.itemid, round(sum(qty),2) sqty (select itemid,opnstock qty,floor(opnstock/packing) pty items " & _ " itemid = '" & rsrptitem.fields(0) & "' union select itemid,qty=sum(case ret when 'n' -1 * (abs(quantity) + abs(free)) " & _ " when 't' -1 * (abs(quantity) + abs(free))when 'y' abs(quantity) + abs(free) end),pty=sum(case ret when 'n' -1 * (abs(pqty))" & _ " when 't' -1 * (abs(pqty))when 'y' abs(pqty) end) sales2,sales1 sales2.billno=sales1.billno , itemid='tip91' " & _ " , date <= '" & dtto.value & "' group itemid union select itemid,qty=sum(case ret when 'n' -1 * (abs(quantity) + abs(free)) " &...

Java Generics in arguments -

i have following interface: public interface iradiobuttongroup<t> { list<iradiobutton<t>> getbuttons(); } now create method protected object getdefaultradiobuttonvalue(iradiobuttongroup<?> field) { list<iradiobutton<?>> buttons = field.getbuttons(); now java complaining: type mismatch: cannot convert list<iradiobutton<capture#1-of ?>> list<iradiobutton<?>> any suggestions? the unbounded wildcard parameter type of method means that, accept iradiobuttongroup of unknown type. compiler doesn't know type come, @ compilation time, compiler generate , assign each wildcards placeholder, because although doesn't know type coming, sure there has single type replace ? . , placeholder capture#1-of ? see in error message. basically, trying assign list<iradiobutton<cap#1-of-?>> list<iradiobutton<?>> , , not valid, in similar way how list<list<string>> cannot assigne...

javascript - Menu overlapping media player object -

i using object tag play media on web page. have menu in same page(with absolute positioning) when hovered doesn't overlap media player object. contents of menu not visible. i found similar questions on stackoverflow suggested use (wmode="opaque") object tag it's not working me. <param name="wmode" value="opaque"> the above line added in fiddle.still it's not working. here jsfiddle link issue: http://jsfiddle.net/akonchady/8ldtn/5/ please tell me how can make menu contents visible.

ruby - gem 'pg' can't be loaded only for rails application -

i using pg gem pg-0.17.1-x86-mingw32. working fine when connecting ruby codes.but when trying connect via rails apps, gives me error:: "specified 'postgresql' database adapter, gem not loaded. add gem 'pg' gemfile." i gettigng error @ time of executing:: "rake db:migrate" after changing database.yml my yml looks like:: development: adapter: postgresql database: postgres host: localhost user: postgres password: postgre90 pool: 5 timeout: 5000 i using:: rails -4.0.4 ruby -1.9.3 please help.. newbie in ruby on rails

java - Roboto light and Roboto bold in a TextView -

can apply roboto light , roboto bold in same textview on android 2.3 that? **user** has been publish beez where **user** roboto bold , has been publish beez roboto light yes can .. string firstword = "user"; string secondword = "has been publish beez"; // create new spannable 2 strings spannable spannable = new spannablestring(firstword+secondword); // set custom typeface span on section of spannable object spannable.setspan( new customtypefacespan("sans-serif",custom_typeface), 0, firstword.length(), spannable.span_exclusive_exclusive); spannable.setspan( new customtypefacespan("sans-serif-light",second_custom_typeface), firstword.length(), firstword.length() + secondword.length(), spannable.span_exclusive_exclusive); // set text of textview spannable object textview.settext( spannable ); you can use roboto natively android 4.1+ this: android:fontfamily="sans-serif" // roboto regular android:fontfa...

sencha touch - How to offer files for download? -

i have problem. in sencha touch application have list items .pdf, .png, ... if user taps on 1 of them file should download on mobile device. how can this? have no idea :-) thanks help. you can use phonegap file api download files, if using sencha touch 2.3 or above follow bellow steps. install phonegap in sencha project executing following command @ project root , command creates phonegap folder inside project root. sencha phonegap init you need install 2 phonegap plugins work file api executing 2 following commands inside phonegap folder. $ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git $ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git now can start working file api in sencha touch , can follow below code used 1 of project. if want download file, first need read device file system , using file system can download files. getfilesystem : function(){ var me =...

tomcat7 - How can I get Liferay user ID from a external servlet -

i have problem. want liferay user id in servlet runs in tomcat, not in tomcat on liferay runs. if both runs in same tomcat, no problem, liferay api works perfectly. in case, when use 'userlocalserviceutil.decryptuserid' in order decrypt user id present in cookie, 'beanlocator null' exception. what can do? has solution? you can consume liferay's web services user details liferay servlet. can choose soap webservices or json webservices . my recommendation in scenario use json webservice - get-user-by-email-address method (like this: http://<host>:<port>/api/jsonws?signature=/user/get-user-by-email-address-2-companyid-emailaddress ) user object, , userid it.

kivy - Can I check collide_widget using a list? -

i trying make game can move character around screen , had if character ran picture of tree, character stop moving. after getting work, tried change code instead of using tree widget, wanted iterate through list of widgets, if character runs of these, character stops moving. what's strange works when have 1 widget in list. can put list[0] or list[1] in code , when character stop when encountering widgets. again, if have more 1 widget in list , try iterate through list, not work, character not stop when encountering of widgets. i'm wondering did wrong or how fix this. want if character runs of images in list, character stop moving. from kivy.app import app kivy.uix.widget import widget kivy.uix.image import image kivy.core.window import window kivy.uix.screenmanager import screenmanager, screen kivy.uix.label import label kivy.uix.behaviors import buttonbehavior kivy.core.audio import soundloader kivy.uix.relativelayout import relativelayout kivy.uix.floatlayout impo...

git - Directory Structure and Conventions for Development and Production versions of website -

i have project maintain git , deploy using beanstalk . have built javascript components using requirejs , optimizing code @ end using requirejs's optimization tool. use tool replicate files of site , code minmized , concatenated in new directory. however, unsure how best place directory , manage deployment via git , beanstalk. git repository maintains 3 branches: develop , master , , production . deploy production live production server. here thinking. keep 3 branches modify repo have base directory includes 2 directories, main project , optimized , minimized version siblings, so: project raw-version-of-site minimized-version-of-site i setup beanstalk -- , sure possible -- deploy minimized-version-of-site folder production server. my question 1) way go this? , 2) naming conventions should use 2 subdirectories. thought of trunk , dist , not sure if these conventions have other meanings , confusing things. secondly, bit worried using trunk example confusing fact th...

java - Apache HttpClient 4.3 and x509 client certificate to authenticate -

now looking solution regarding task how rewrite deprecated solution client side x509 certificate authentication via httpcomponentsmessagesender (not relevant). for example, deprecated solution is: sslsocketfactory lschemesocketfactory = new sslsocketfactory(this.keystore, this.keystorepassword); scheme sch = new scheme("https", 443, lschemesocketfactory); defaulthttpclient httpclient = (defaulthttpclient)gethttpclient(); httpclient.getconnectionmanager().getschemeregistry().register(sch); as new solution closeablehttpclient using: sslcontextbuilder sslcontextbuilder = sslcontexts.custom() // key store must contain key/cert of client .loadkeymaterial(keystore, keystorepassword.tochararray()); if (truststore != null) { // key store must contain certs needed , trusted verify servers cert sslcontextbuilder.loadtrustmaterial(truststore); } sslcontext sslcontext = sslcontextbuilder.build(); ...

java - How to add javascript handler to button? -

i have button on jsp form must send boolean value controller. <button type="button" class="btn btn-success"><i class="glyphicon glyphicon-ok-circle"></i> activate</button> on form i'm using pojo object have status (boolean status). public class user implements serializable { private string name; private boolean status; // getters , setters omitted } i need add javascript handler button send status , user id controller post method. how can using javascript? upd: <c:foreach items="${users}" var="user"> <tr> <td>${user.id}</td> <td>${user.name}</td> <td>${user.email}</td> <td>${user.country}</td> <td class="col-sm-1 col-md-1"> <a href="/user/${user.id}" style="text-decoration: none"> <button type="button...

hp quality center - ALM C# application -

i using interop.tdapiolelib dll connect alm (application lifecycle managment). in order connect project using tdconnection when executing line _connection = new tdapiolelib.tdconnection(); i exception retrieving com class factory component clsid {c5cbd7b2-490c-45f5-8c40-b8c3d108e6d7} failed due following error: 80040154 class not registered (exception hresult: 0x80040154 (regdb_e_classnotreg)). this code working fine before repaired hd i run sfc/scannow , got message windows resource protection did not find integrity violations . indicate not have missing or corrupted system files. any suggestions? otaclient.dll should registered using regsvr32.exe register otaclient.dll located in path c:\program files (x86)\common files\mercury interactive\tdapiclient , make sure application run under x86 target.

c# - Forms from other threads are not brought to front -

i have bunch of forms, created main thread , other threads. suppose open these forms on screen. if open window on top of them (eg. google chrome) , click on application in windows bar, forms created main thread brought front. need have of them in front, without giving them focus. this appears windows bug found out. the following work-around works bringing windows front: private const int wm_windowposchanging = 0x0046; protected override void wndproc(ref message m) { switch (m.msg) { case wm_windowposchanging: if (control.fromhandle(m.lparam) == null) { var openforms = this.getopenforms(); foreach (var openform in openforms) { showinactive(openform, true); } } break; } base.wndproc(ref m); } where getopenforms() returns list of forms opened application. showinactive(...) function defined below...

sql - DBD::Oracle insert sydate instead of null -

i try insert null values date fields in oracle perl, instead of null values ends inserting sysdate. when same sqlplus, inserts null values. my code (just important part) use dbi; use dbd::oracle qw(ora_rset); ... eval { $sth = $dbh->prepare(q{ insert my_table (val1, val2, val3, entry_date, processed_date) values (?,?,?,?,?)}); $rv = $sth->execute($val1, $val2, $val3, undef, undef); $insert_counter++; }; if ( $@ ) { $file_process_status = file_invalid; logg("e", "$@"); } if ( $file_process_status = file_valid ) { $dbh->commit; } you can use dbi->trace log actions , see statement being prepared. see answers this question . should show if incorrect sql query being created. however, willing bet problem other think is. use debugger verify this piece of code causing problem, or create simple example script test whether problem.

javascript - Storing base64 strings to GridFS(mongoDB file storage) -

i'm trying paste image clipboard <img> tag. source of image prnt scrn command , not file. clipboard image in base64 format. base64 string can inserted src attribute of <img> tag(once ctrl-v pressed) using javascript display purposes. accomplishable using plugin . so <img> tag this: <img id="screen_image" src="data:image/png;base64,ivborw0kggoaaaansuheugaabvyaaamacai......(long string here)" although, persist entire string mongodb collection , retrieve displaying image, ultimate goal persist image gridfs . there way if interpret base64 file , persist gridfs ? i hope i've made clear. comments welcome. update: want maintain common collection store images or file matter(i'm using gridfs persist file attachments not want create new collection store clipboard images). have tried decoding string using window.atob() don't know how persisted gridfs i'm using mongo senior project right , storing child (c...

java - Populating JTable via tree map and SQL -

i populating jtable using tree map , tree map being being populated via sql, problem can in 1 line populate via tree map, possible write code(i.e counter) saying add new line this line of code: library.put("01", new item(res.getstring(2),(res.getstring(3), integer.parseint(res.getstring(4)))); "is possible write code(i.e counter) saying add new line" sounds me holding data in 2 separate data structures, 1 in treemap , 1 in underlying tablemodel of jtable . there's no need this. data should held in tablemodel . see more @ creating tablemodel . the easiest way go adding row dynamically use defaulttablemodel takes care of firexxx methods update table. write own xxxtablemodel using item objects, may not necessary. for defaulttablemodel can set model 0 rows (and column names) start, if have no initial data. string[] cols = { "col 1", "col 2", "col 3" }; defaulttablemodel model = new defaulttablemodel(...

jquery - Drawing a selection in angularjs -

i'm working on angular app allow user create shapes , pictures in main layout in powerpoint example. these shapes divs , spans user can drag , drop. questions are: 1. how can allow user make selection of several shapes in powerpoint (the blue selection in powerpoint) ? 2. best way allow user resize shapes in powerpoint ? i think way write angular directive i'm not sure tools must use (jquery-ui, d3, ...) adding edit : what using canvas ? better option ? (each shape little canva inserted in main layout div. using directive fill canva option ? thanks

css - IE, DIV, images, float and LightView -

i'm trying figure out why images seem jumble around in ie versus chrome. alas, ancient public school cms (we're talking 00's), , i'm no programmer, rather hobbyist trying juggle css , html. i hope can few pointers. assume floating right div containers, render right. entire thing litteralky exploded when went create overlay text. css can seen below. page source can viewed outside of cms frame-template here. cheers, trin #persongalleri { margin-left:5px; overflow:hidden; } img.person /* til personalesiden */ { width:80px; height:auto; border:1px solid #000; } div.personwrap { float:left; position:relative; margin:2px; } div.undertekstkasse { position:absolute; bottom:1px; left:0px; width:100%; background-color:black; font-family: 'verdana, arial, helvetica'; font-size:14px; font-weight:bold; color:white; opacity:0.6; filter:alpha(opacity=60); } p.undertekst { padding...

html - How to zoom in to a specific point smoothly with CSS? -

Image
i want zoom in onto pencil when hovered on image. html: <div> </div> css: div { width: 400px; height: 267px; border: 1px solid black; background-image: url('http://i.imgur.com/n9q7jhm.jpg'); background-size: 400px 267px; transition: 1s ease; } div:hover{ background-size: 500px 333px; background-position: -60px -60px; } jsfiddle: http://jsfiddle.net/ax59y/ my naive attempt increase size , change position of image, can see jsfiddle, transition jagged tries accomplish both transitions @ same time. is there better way? take answer sw4 , change left , top changes transform origin #image { background-image: url('http://i.imgur.com/n9q7jhm.jpg'); background-size: 400px 267px; background-position:center; transition: 1s ease; width:100%; height:100%; transform: scale(1); position:relative; left:0; top:0; -webkit-transform-origin: 75% 75%; transform-origin: ...

using multi db in Django - authentication directed to wrong database -

i working multi database setting in django. 1 business stuff (--database=default), , other 1 stores user information (--database=users). below view app using 'users' database: def auth_and_login(request): global user post = request.post if post['email'] u'' or post['password'] u'': s = 'please check login input forms' return render_to_response('insecure.html', {'s': s}) else: user = authenticate(username=post['email'], password=post['password']) if user not none: login(request, user) s = 'logged in ' + user.first_name + ' ' + user.last_name return render_to_response('loggedin.html', {'s': s}) else: s = 'login fails' return render_to_response('insecure.html', {'s': s}) def create_user(username, email, password): global user ...

angularjs - Changes to service bound to controller scope not visible -

i have service hold data (in associative array) that's important multiple controllers. data service holds updated asynchronously. in controller make variable on scope myservice , assign service. then, in view, reference data myservice.theinterestingdata . in case important, in view, referencing interestingdata assoc array in ng-repeat. for reason, when data updated (i console logs), visible page not change, if perform ui action (for example open snap-drawer http://jtrussell.github.io/angular-snap.js/ ), data updated, further changes require ui action before they're visible. i must doing wrong. suggestion how can fix this? thought perhaps need $apply called, data on service has no reference controller on scope i'd need $apply see these 2 versions of fiddle. both show same logging, 1 (not surprisingly 1 uses $interval http://jsfiddle.net/a6nhs/5/ ) updates "screen" (what talking here? dom?) , other (window.setinterval http://jsfiddle.net/a6nhs/4/ ) not. ...

android - Update query in DataStore of google app engine - java -

i newbie app engine. want update fields of entity in datastore. have created query below neither updates entity nor throws error. don't know going wrong.i referred this post have huge collection of data. therefor, me, hard fetch hundreds of records , persist them.please me solve problem. code: @apimethod(name = "updateuserprofile", httpmethod = httpmethod.get, path = "userfeedmasterendpoint/updateprofile") public void updateuserprofile(@named("username") string uname, @named("uabout") string userabout) { entitymanager mgr = null; try { mgr = getentitymanager(); query query = mgr .createquery("update userfeedmaster u set u.userabout = :uabout u.username=:username"); query.setparameter("username", uname); query.setparameter("uabout", userabout); query.executeupdate(); ...

dns - Domain names assigned with IP -

i have doubt on how domain names assigned ip address. according icann evey domain assigned ip address globally accessed. lets there 3 different domains hosted on 1 reseller account "example.com" "example.org" "againexample.com" if query domains there ip address, same ip address! how possible? it should different ip address each right? can explain login here? when type in address www.domain.com in browser, request sent dns (domain name server). dns server responds ip address associated domain. your browser sends request server located @ ip address provided, then, based on domain requested, server appropriate content. basically, on server side, configured follows: domain.com -> /var/www/domain.com/ otherdomain.com -> /var/www/otherdomain.com/ example.com -> /var/www/example/ admin.com -> /var/www/admin/ which means, requested domain, serve content specified folder. example if type domain.com site located in /v...

ios - How to run a titanium module using Titanium 3.2.2 -

i using titanium 3.2.2 , xcode 5.1. following documentation create module xcode project: https://wiki.appcelerator.org/display/guides/ios+module+development+guide but documentation quite old , run command isn't excutable in titanium. how can run titanium module using titanium application , not through command-line. try link, more date: http://docs.appcelerator.com/titanium/3.0/#!/guide/ios_module_development_guide mostly have build module , drop zip created correct folder, add module in titanium tiapp.xml

android - can we share data through app directly to a google plus page? -

i have itegrate google+ android app. want share data directly page present on google plus. possible post on google plus page? no can not post directly other page on google plus. can comment on post of other pages or users on google plus.

SQL Server user creation (Windows & SQL Server authentication) -

i'm new sql server administration. need experts below scenarios: how create login windows authentication. how access database using same login (windows authentication) if use t-sql can use create login command. create login [<domainname>\<login_name>] windows full syntax here http://technet.microsoft.com/en-us/library/ms189751.aspx to create login using ssms follow directions msdn - http://technet.microsoft.com/en-us/library/aa337562.aspx#ssmsprocedure to use given windows authentication have login ssms or other tool computer have signed in specified user, alternative can use run as command start ssms different credentials other own test it.

sql - Manipulating records generated using user defined function -

i have table below records. a b c d e f ------------------------------------ 1 asd dff dfdf rt rtrt 1 ads dfd df drt trtrt 1 cvc fd df dff rtrt 2 cvc df df dfd fg 2 ree ddfd df fd hgh 3 cv df fdf fdf b 3 rt wew fd df n 3 rti yuiyu fd dfd bnh 3 uyiuy uyii dfdf df hhh suggest query(user defined function) would provide me output as a b c d e f ------------------------------------ 1 asd dff dfdf rt rtrt 1 ads dfd df drt trtrt 1 cvc fd df dff rtrt 2 cvc df df dfd fg 2 ree ddfd df fd hgh 3 cv df fdf fdf b 3 rt wew fd df n 3 rti yuiyu fd dfd bnh 3 uyiuy uyii dfdf df hhh a blank row after every similar value column a.

java - create a zip file. and download it -

i created button allows create zip file., function zips file works correctly, when call via button (in js file) crashes , gives blank page (i think not manage output stream) please idea (this new modified version (for see same question) here code : button isc.toolstripbutton.create({ id: "booksapp_getxmlimage_button" ,autodraw:false ,icon: getuiicon("icon_xml_16") ,prompt: getuimsg("book_report_get_xml",4) ,showhover:true ,hoverstyle:"book_hover_style" ,click : function () { booksapp_action_loadfile("objx"); // isc.say("test"); } }); function call zipfile() method: function booksapp_action_loadfile(p_usedformat) { var tmpbookid = booksapp_application.fp_bookid; var tmpids = booksapp_application.fp_fct_getselectedpovids(); var tmpusr_id = fpiuser.fp_fct_getid(); var tmpformat = p_usedformat; var showinwindow=false; ...