Posts

Showing posts from June, 2011

android - Phonegap Build: download image in one of the folders of your app -

android - Phonegap Build: download image in one of the folders of your app - i able download image if specify path straight file:///storage/sdcard0/ how can save image 1 of folders in app ? tried this approach set app path doesn't work me. this using far , works if want save , image sdcard: class="lang-js prettyprint-override"> var filename = "myimage.png"; var filetransfer = new filetransfer(); var uri = encodeuri("http://my.url.to.image/myimage.png"); var filepath = "file:///storage/sdcard0/uploads/myimage.png"; filetransfer.download( uri, filepath, function(entry) { alert("download complete: " + entry.fullpath); console.log("download complete: " + entry.fullpath); }, function(error) { alert("download error source/target/code:\n" + error.source +" \n||| "+error.target+" \n||| "+error.code); console.log("d

php - How to place checkbox in each and every row in a dynamically generated table? -

php - How to place checkbox in each and every row in a dynamically generated table? - i generating table dynamically based on columns selected user. able it. code. <?php if (($getdata)||(mysql_errno == 0)) { echo "<table width='100%' > <thead><tr>"; if (mysql_num_rows($getdata)>0) { $i = 0; while ($i < mysql_num_fields($getdata)) { echo "<th align='center'>". mysql_field_name($getdata, $i) . "</th>"; $i++; } echo "</tr></thead>"; echo "<tbody>"; while ($rows = mysql_fetch_array($getdata,mysql_assoc)) { echo "<tr >"; foreach ($rows $data) { echo "<td align='center' width='auto'>". $data . "</td>"; } } }else{ echo "<tr><td col

android - InAppBillingService fails to bind -

android - InAppBillingService fails to bind - i'm doing basic in app billing , service fails bind. here main activity: public class mainactivity extends activity { iinappbillingservice mservice; serviceconnection connection; string inappid = "android.test.purchased"; // replace in-app // product id @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); connection = new serviceconnection() { @override public void onservicedisconnected(componentname name) { mservice = null; } @override public void onserviceconnected(componentname name, ibinder service) { mservice = iinappbillingservice.stub.asinterface(service); } }; getapplicationcontext() .bindservice( new intent( "com.android

ubuntu - Virtualenv : Getting error while -

ubuntu - Virtualenv : Getting error while - $ virtualenv envv traceback (most recent phone call last): file "/home/rohit/bin/virtualenv", line 5, in <module> pkg_resources import load_entry_point file "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 2880, in <module> parse_requirements(__requires__), environment() file "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line 596, in resolve raise distributionnotfound(req) pkg_resources.distributionnotfound: virtualenv==1.9.1 reinstalled through synaptic bundle getting same issue. kindly help i cleared packages in specific folder mentioned in error , reinstalled command pip install virtualenv simple that ubuntu virtualenv virtualenvwrapper

visual studio 2010 - Unexplained errors in C++ -

visual studio 2010 - Unexplained errors in C++ - i'm making little framework around opengl creating simple 2d game. when finished texture class , used in engine thogl (orthogonal opengl) class got lot of unexplained errors don't create sense. tried find can't figure out, hoped guys hem me. i'm using libraries: glew, glfw, opengl32, glm. my code texture.h #pragma 1 time #include <magick++.h> #include "thogl.h" class texture { public: texture(glenum texturetarget); ~texture(); bool loadimage(const char* filename); void bind(glenum textureunit); magick::image* image; private: magick::blob blob; gluint textureobject; glenum texturetarget; }; texture.cpp #include "texture.h" texture::texture(glenum target) { texturetarget = target; image = null; } texture::~texture() { } bool texture::loadimage(const char* filename) { seek { image = new magick::image(filename);

Apache/PHP not attempting to make external MySQL connections -

Apache/PHP not attempting to make external MySQL connections - so i'm doing testing @ moment seems php/apache not attempting create external mysql connection. i've confirmed there mysql connectivity between 2 servers , in doing have confirmed mysql running, listening on internal port, has permissions login web server, etc etc. the problem joomla , other php scripts cannot create connection , via tcpdump appear not trying create connection external hosts. i've tested on trying connect dedicated server besides cloud environment. besides doing joomla i've tested wordpress typical php mysql connection no cms engines (single file test connection) fails. i've recorded video see issue in action. https://www.youtube.com/watch?v=dwc2snasvvu you can see in video me using web server @ command line connecting using "# mysql -h then, via actual web server php files not initiate database connection , apparently don't try. all firewalls disabled

c# - Is it guaranteed that a thread will complete in aspnet? -

c# - Is it guaranteed that a thread will complete in aspnet? - i have simple code in aspnet :assuming no exceptions nor file locking nor process terminates : new thread(()=>{ thread.sleep(15000); // gc.collect(); file.write (...); // dummy file }).start(); // gc.collect(); from tests , file always created. question     scenario not understood me request lifetime much shorter thread execution , still works . thats . thats main question   is guaranteed file created ? nb it's test examine behavior . page empty page code. know bring together wait it not. when iis decides recyle entire process take downwards both background , foreground threads. see this answer. luckily, can create sure not interrupted. can tell asp.net thread implementing iregisteredobject interface. can register object using hostingenvironment.registerobject . see the dangers of implementing recurring background tasks in asp.net

django - TypeError at /auth/login/twitter/ -

django - TypeError at /auth/login/twitter/ - i've been trying add together log ins social networks 1 of django projects. works fine facebook twitter broken. i maintain getting next error when seek auth twitter. typeerror @ /auth/login/twitter/ sequence item 0: expected str instance, bytes found request method: request url: http://127.0.0.1:8000/auth/login/twitter/ django version: 1.6.5 exception type: typeerror exception value: sequence item 0: expected str instance, bytes found exception location: c:\users\cdegen\face\lib\site-packages\social_auth\backends\__init__.py in fetch_response, line 708 python executable: c:\users\cdegen\face\scripts\python.exe python version: 3.4.1 python path: ['c:/dev/django/face', 'c:\\program files (x86)\\jetbrains\\pycharm 3.4.1\\helpers\\pydev', 'c:\\dev\\django\\face', 'c:\\python34', 'c:\\windows\\system32\\python34.zip', 'c:\\python34\\dlls', 'c:\\python34\\lib&#

python - Querying a second model with django haystack -

python - Querying a second model with django haystack - i add together field sec model django-haystack query. have 2 models have next structure: class product(models.model): created_date = models.datefield(auto_now_add=true) name = models.charfield(max_length=254) summary = models.charfield(null=true, blank=true, max_length=255) .... class color(models.model): product_color = models.charfield(max_length=256, blank=true, null=true) created_date = models.datefield(auto_now_add=true) slug = models.slugfield(max_length=254) product = models.foreignkey('product') i have next search_index.py: from django.utils import timezone haystack import indexes .models import product .models import color class productindex(indexes.searchindex, indexes.indexable): text = indexes.charfield(document=true, use_template=true) def get_model(self): homecoming product def index_queryset(self, using=none): ""&q

sql - Inserting dummy values at the end of select -

sql - Inserting dummy values at the end of select - i have got query returns address , completed orders against each address lastly week. need insert 3 dummy values within result set. select address ,sum(case when orderdate >= dateadd(dd,(datediff(dd,-53690,getdate()-1)/7)*7,-53690) 1 else 0 end) completed orders grouping address order address result address--------------completed address1----------------3 address2----------------3 address3----------------3 address4----------------3 all values coming database, want insert 3 rows hard coded values expected result address--------------completed address1----------------3 address2----------------3 address3----------------3 address4----------------3 dummy1------------------0 dummy2------------------0 dummy3------------------0 unsuccessful effort select address ,sum(case when orderdate >= dateadd(dd,(datediff(dd,-53690,getdate()-1)/7)*7

java - Chat server plugin API for J2EE web application -

java - Chat server plugin API for J2EE web application - i need build mobile app (ios, android, windows all) has chat functionality. registered users can chat among themselves. @ back-end, there j2ee based web application (web-services) mobile-apps talk (soa/rest). how can plugin chat server application web application, mobile apps can connect ? please suggest if there api available. here of apis , rtc applications 1 can explore. atmosphere - open-source, jsf jwebsocket - open-source, java/javascript based, html5 websocket openfire - open-source, xmpp protocol java web-services chat mobile-application

ruby on rails - I need to get the specific region of aws on the basis of country -

ruby on rails - I need to get the specific region of aws on the basis of country - what want is:- if come in country want specific amazon region(zone) country say if take commonwealth of australia country need give me 'ap-southeast-2'(sydney) amazon part australia. your question quite open ended, haven't specified whether need in drop down-list / auto-complete list in ror web app etc. nevertheless ever may requirement info need. you may implement require +------+--------------------------------------+----------------+ | s.no | part name | part | +------+--------------------------------------+----------------+ | 1 | east (northern virginia) part | us-east-1 | | 2 | west (northern california) part | us-west-1 | | 3 | west (oregon) part | us-west-2 | | 4 | european union (ireland) part | eu-west-1 | | 5 | asia pacific (singapore) part |

javascript - Onclick populate unique text into a textbox -

javascript - Onclick populate unique text into a textbox - i using table info database, have link each row gets generated dynamically in table, if click on link bootstrap modal appear e.g. $(document).on("click", ".edit", function (e) { $('.showthis').modal('show'); }); <div class="modal fade showthis"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title">modal title</h4> </div> <div class="modal-body"> <textarea id="textarea"></textarea> </div> <div class="modal-footer"> <button

T-SQL in sql 2008 -

T-SQL in sql 2008 - i trying next in sql 2008. here logic : table 1 source table. if match (domain & company & country) table 2 -> update price else if match (domain) table 3 -> update price else if match (domain) table 2 -> update price else if match (company & country) table 2 -> update price if match 1 of above condition, update cost in source table. how should loop source table ? there may lot records in source table. thanks in advance. something should think: update t1 set cost = case when t2.id not null t2.price when t3.id not null t3.price when t22.id not null t22.price else t1.price end [table 1] t1 left bring together [table 2] t2 on t1.company = t2.company , t1.country = t2.country , substring(t1.email, charindex('@', t1.email) + 1, len(t1.email)) = t2.domain left bring together [table 3] t3 on substring(t1.email, charindex('@', t1.email) + 1, len

java - How to use Subqueries.in -

java - How to use Subqueries.in - how express such hql query via criteria api? select a (select b.prop b b b.id = a.parent) in ('1', '2', '3') list of ids passed parameter. here subquery: detachedcriteria subquery = detachedcriteria.forclass(b.class, "b"). .add(restrictions.eqproperty("b.id", "a.parent")) .setprojection(projections.property("b.prop")); subqueries.in , propertyin work opposite way (prop in subquery, not subquery in prop need). thoughts? you can utilize restrictions.in(...) . list<integer> values=new arraylist<integer>(); values.add(1); values.add(2); values.add(3); detachedcriteria subquery = detachedcriteria.forclass(b.class, "b"). .add(restrictions.eqproperty("b.id", "a.parent")) .setprojection(projections.property("b.prop")). .add(restrictions.in("b.p

linux - Querying open file descriptors and limits in java -

linux - Querying open file descriptors and limits in java - anyone know of way list open file descriptors in java limits on number of open file descriptors? the best i've found far https://gist.github.com/jtai/5408684, lets me print unix fd scheme max current number of open descriptors. haven't found pure java way list paths/names of files open though. haven't found pure java way list per process limits on number of open file descriptors. i'm interested in solaris , maybe linux platforms, pure java improve having exec something. know can utilize pfiles (on solaris), lsof (on linux), , ulimit (on both), i'm looking better. edit 1: i'm concerned number of open descriptors current process/jvm limits on jvm. scheme wide stats , limits plus though. java linux solaris lsof

node.js - Finding only an item in an array of arrays by value with Mongoose -

node.js - Finding only an item in an array of arrays by value with Mongoose - here illustration of schema data: client { menus: [{ sections: [{ items: [{ slug: 'some-thing' }] }] }] } and trying select this: schema.findone({ client._id: id, 'menus.sections.items.slug': 'some-thing' }).select('menus.sections.items.$').exec(function(error, docs){ console.log(docs.menus[0].sections[0].items[0].slug); }); of course of study "docs.menus[0].sections[0].items[0].slug" works if there 1 thing in each array. how can create work if there multiple items in each array without having loop through find it? if need more details allow me know. the aggregation framework finding things in nested arrays positional operator fail you: class="lang-js prettyprint-override"> model.aggregate( [ // match "documents" meet criteria { "$match": {

xcode - Creating UI element won't let change position -

xcode - Creating UI element won't let change position - i tried this: @ibaction func test(sender : anyobject){ allow height:cgfloat = 44 var tableframe:cgrect = tableview.frame; var fieldframe = cgrect() fieldframe.origin = tableframe.origin fieldframe.size.height = height fieldframe.size.width = tableframe.size.width var textfield = uitextfield(frame: fieldframe) textfield.backgroundcolor = uicolor(white: 0, alpha: 1) view.addsubview(textfield) tableframe.size.height = tableframe.size.height - height tableframe.origin.y = tableframe.origin.y + height tableview.frame = tableframe } when running, black field appears, table won't move nor alter size. removing line view.addsubview(textfield) allows table alter size , move, but, obviously, no field appears. problem? your textfield on top of tableview. touch actions going text fieldview , not tableview xcode swift

Fedora "you don't have permission to view the content of root folder" -

Fedora "you don't have permission to view the content of root folder" - i have installed fedora20 on virtual machine, , can't open root folder. when trying access message pops "you don't have permission view content of root folder" shown in image. new can't figure out how solve it. i'm not sure if mean root directory "/" or personal folder of root "/root". if mean "/" mask of folder should 755. can way should running terminal console: $ sudo chmod 755 / from there should able view content of root directory. if mean root personal folder "/root", you're right. don't have access , probably, novice are, should careful of area. using elevated command "sudo" can view root directory running: $ sudo ls /root if have specific you're trying accomplish might consider add together description of question. you might consider showing command you're using in view

email - VBScript Automating Exchange Mail Processing via Outlook in Scheduled Task -

email - VBScript Automating Exchange Mail Processing via Outlook in Scheduled Task - i have vbscript loops through inbox items , makes database entries based on contents of emails. i can run command prompt or double-click vbs file , runs fine. however, when seek run vbs task scheduler, doesn't much of anything. i can see wscript.exe running right user, along outlook.exe in task manager, never executes code in vbs. the task runs forever unless end it, @ point wscript , outlook executables exit. i've tried running outlook, launching task , sec outlook executable opens under logged-in user (different email account) it's clear there's no action beingness taken vbscript. i've tried using cscript generate output , error txt files both blank... does have tips on determining what's going on here? ultimately need script run every hr no 1 logged on. update working using redemption rdo object instead of outlook.application object. give thanks muc

What are the standard viewport sizes (heights and widths) on tablet browser like safari on newest iOS and chrome on newest Android? -

What are the standard viewport sizes (heights and widths) on tablet browser like safari on newest iOS and chrome on newest Android? - as want create true scale screenshots of web application, need know standard viewport resolutions. http://viewportsizes.com/ great ressource that, provides standard width. height of import screens. any ressource appreciated. viewport

Cannot access Azure VM throught rdp but remote powershell works -

Cannot access Azure VM throught rdp but remote powershell works - i need help, thought welcome. [skipable] here's situation : working on vm hosted in microsoft cloud (azure), fine. vm supposed domain controller (active directory), link many vms (i working on grid computing many compute nodes). setup correctly. next step host wcf service on iis server accessible through https. hence opened port 443 on firewall valid endpoint vm (azure portal). there things weird. opening endpoint 443 on azure portal didn't work expected, needed reboot vm. cannot access through rdp connection anymore :-(. succeed take command of vm via powershell remoting. [question] how can restore rdp connection via powershell remoting ? tried disabled firewall, open port 3389, capture image of vm recreate etc.. nil worked. thought ? don't want loose work, fresh service etc.. thanks you! powershell azure virtual-machine rdp powershell-remoting

oracle - FTP using UTL_FTP package fails for large files -

oracle - FTP using UTL_FTP package fails for large files - i trying ftp file 1 unix box utl_ftp packages using tim hall's ftp packages. begin --pl_release_id := 'it3'; pl_release_id := release_id; l_conn:= ftp.login(sourceserver,'21',sourceuser,sourcepassword); ftp.binary(p_conn => l_conn); ftp.get ( p_conn => l_conn, p_from_file => sourcepath, p_to_dir => intermediatepath, p_to_file => file ); -- ftp.logout(l_conn); utl_tcp.close_connection(c => l_conn); exception when others utl_tcp.close_connection(c => l_conn); raise; end; this successful files less 50 mb in size, big files, next error: error @ line 1 ora-29260: network error: not connected ora-06512: @ "sys.utl_tcp", line 231 ora-06512: @ "sys.utl_tcp", line 460 ora-06512: @ "sys.ftp", line 301 ora-20000: 550 sendfile: broken pipe. ora-06512: @ &qu

coldfusion - How to inject metadata info to image file upload? -

coldfusion - How to inject metadata info to image file upload? - dear coldfusion baddies, i know if there way add together metadata info when i'm upload image through cf! e.g. can through photoshop http://www.artsnova.com/x/chicago-artists-coalition-email-metadata.jpg "photoshop metadata" i suppose can convert image base64, inject info there , write file: <cfimage action="write" source="#imagereadbase64(form.mybase64image)#" destination="#filepath##filename#"> i have noticed there in jpg file next tags: <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="adobe xmp core 5.3-c011 66.145661, 2012/02/06-14:56:27 "> <rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:aux="http://ns.adobe.com/exif/1.0/aux/" xmlns:photoshop="http://ns.adobe.com/photosh

Convenient way to show OpenCL error codes? -

Convenient way to show OpenCL error codes? - as per title, there convenient way show readable opencl error codes? being able convert codes '-1000' name save lot of time browsing through error codes. this do. believe error list finish opencl 1.2. cl_int result = clsomefunction(); if(result != cl_success) std::cerr << geterrorstring(result) << std::endl; and geterrorstring defined follows: const char *geterrorstring(cl_int error) { switch(error){ // run-time , jit compiler errors case 0: homecoming "cl_success"; case -1: homecoming "cl_device_not_found"; case -2: homecoming "cl_device_not_available"; case -3: homecoming "cl_compiler_not_available"; case -4: homecoming "cl_mem_object_allocation_failure"; case -5: homecoming "cl_out_of_resources"; case -6: homecoming "cl_out_of_host_memory"; case -7: homecoming "cl_profiling

html - Logging into Website Using Java -

html - Logging into Website Using Java - first of yes know there 1000000 questions inquire same thing none of answers working. using next code: url objtest = new url("http://rccpdems01/ems/login.php"); httpurlconnection con = (httpurlconnection) objtest.openconnection(); con.setrequestmethod("post"); string datas = "userid=g434326&psword=testpass"; con.setdooutput(true); dataoutputstream wr = new dataoutputstream(con.getoutputstream()); wr.writebytes(datas); wr.flush(); wr.close(); bufferedreader in = new bufferedreader(new inputstreamreader(con.getinputstream())); string inputline; while ((inputline = in.readline()) != null) system.out.println(inputline); in.close(); however lines beingness returned makes seem nil happened on html form, no error message displayed if pass wrong input details, , if right ones next or "homepage" html code not returned. why ? need a

r - mailR: how to send rmarkdown documents as body in email? -

r - mailR: how to send rmarkdown documents as body in email? - how send rmarkdown generated documents body in email, using r? i have tried knitr mailr , when instead generating html-report (new) rmarkdown -package fails. library(mailr) send.mail( = "from@gmail.com", = "to@gmail.com", subject = "mymail", html = t, inline = t, body = "my_report.html", smtp = list(host.name = "smtp.gmail.com", port = 465, user.name = "username", passed = "password", ssl = t), authenticate = t, send = t ) error: org.apache.commons.mail.emailexception: building mimemessage failed @ org.apache.commons.mail.imagehtmlemail.buildmimemessage(imagehtmlemail.java:110) @ org.apache.commons.mail.email.send(email.java:1436) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingm

mvvm light - The Giant MVVMLight ViewModelLocator -

mvvm light - The Giant MVVMLight ViewModelLocator - i have main project has many dependencies project b, project c etc... assemblies/dll. have viewmodellocator in projecta.app.xaml. mvvmlight recommended way. viewmodellocator works fine problem is giant viewmodel references projectb, projectc etc... , hard maintain. i'm looking solution segregate viewmodellocator each projects projectb, projectc etc... , have own viewmodellocators. want remove global reference of viewmodellocator mvvmlight recommended way. any ideas? instead of using single viewmodel locator, created separate viewmodel locator each module/project. mvvm-light viewmodellocator

java - Launching activity from library : NullPointerException -

java - Launching activity from library : NullPointerException - i'm coming : how create jar android library project which accepted reply assume work intented. : i have project library b attached (properties->android->library->add) the library b declared library (properties->android->library->is library checked) , have followed step described commonsware in original thread linked above (meaning, classes in jar in library , src folder empty ensure library not modified open source one) i have declared activities library b in manifest of a. , there no activity nor ressources same name in b , a. i using in : intent = new intent(mainactivity.this.getapplicationcontext(), com.dmdsante.mydmdpost.activity.mdpmainactivity.class); i.putextra("access_token", "test"); startactivity(i); and next error : 06-24 14:25:49.826: e/androidruntime(14778): fatal exception: main 06-24 14:25:49.826: e/androidruntime(14778): process: com.exampl

Java Inheritance... Confused -

Java Inheritance... Confused - i have abstract parent class has multiple children. i'd kid able have variable same every instance of child. i'd prefer not pass constructor kid tell it's name because seems silly when can hardcoded. i've read doing next "hides" parents instance variable , doesn't work want. public abstract class parent { public string name = "the parent"; public getname(name); } public class child1 extends parent { public string name = "jon"; } public class child2 extends parent { public string name = "mary"; } child1 c = new child1(); c.getname(); // want homecoming "jon", instead returns "the parent". to clear, want c.getclass().getname() don't want have result of dependent on class name, rather on hardcoded value. thanks depending on you're trying for, there couple of solutions. 1 create kid classes provide name parent: public abstract

sql - How can I use a 'group by' (or similar) statement to aggregate a few specified rows? -

sql - How can I use a 'group by' (or similar) statement to aggregate a few specified rows? - i have teradata table next structure id value -- ----- 03 300 05 200 08 900 i need create view on top of table grouping few specified ids , aggregate values. id value --------- ----- 03 , 05 500 08 900 is there way this? assuming id character, otherwise need typecasts: select case when id in ('03','05') '03 , 05' else id end, sum(value) tab grouping 1 sql database view aggregate-functions teradata

sql - ActiveRecord - Possible to pluck columns from a specific row? (Also, strange issues with select and quotation marks) -

sql - ActiveRecord - Possible to pluck columns from a specific row? (Also, strange issues with select and quotation marks) - i trying number of columns specific row via activerecord (all examples simplified clarity): user.pluck(:id, :name, :date_joined, :field_containing_json) previously, using select statement reason didn't work unless each column enclosed in quotation marks: user.find(id).select("id, name, date_joined, field_containing_json") fails reason , throws pg::syntaxerror: error while user.find(id).select("id", "name", "date_joined", "field_containing_json") works. thus two-pronged question: why 1 need encapsulate each column name in quotation marks when using select ? is there way pluck specific row? user.find(id).pluck(:id, :name ...) throws nomethoderror in first version, passing 1 argument, string "id, name, date_joined_field_containing_json" . it's not sec version "

Google Maps PlacesService, PlaceResult is only returning one (1) photo for the photos property array -

Google Maps PlacesService, PlaceResult is only returning one (1) photo for the photos property array - having issue results google maps placesservice. resultant placeresult object returning 1 photo in photos property array. in past not case , 10 photos returned. change? example code: var request = { reference: place.reference } var callback = function(details, status) { if (status == google.maps.places.placesservicestatus.ok) { alert("number of photos: " + details.photos.length); } } var service = new google.maps.places.placesservice(map); service.getdetails(request, callback); fiddle showing example in previous reply has been deleted said must bug on google side. i found issue : https://code.google.com/p/gmaps-api-issues/issues/detail?id=6825&sort=-id&colspec=id%20type%20status%20introduced%20fixed%20summary%20stars%20apitype%20internal if right, google maps placesservice javascript version of google places api, backend

ios - Using Images.xcassets in XCode 6 beta -

ios - Using Images.xcassets in XCode 6 beta - i have project utilize images.xcassets organize image resources. after update xcode 6 beta no image displayed when application runs. looks xcode can't find path. i found temporary solution – old way: add folder images project tree use initialization [uiimage imagenamed:@"image.png"] so, what's wrong xcassets in xcode 6? that xcode6-beta bug. utilize in xcode5. goog luck ios xcode xcode6 xcasset

How to remove duplicate xml nodes with attribute using LINQ? -

How to remove duplicate xml nodes with attribute using LINQ? - i have next xml structure: <movie> <profile> </profile> <address> </address> <details detail1="1" detail2="1"> <moviestart>09:20:00</moviestart> <movietime date="2015-01-20" hour="07:05:00" /> <code>ba</code> <moviearrive code="mah" place="maharashtra" /> <moviedepart code="jam" place="jammu" /> <type>std</type> </details> <details detail1="2" detail2="2"> <moviestart>08:00:00</moviestart> <movietime date="2015-01-25" hour="07:35:00" /> <code>bi</code> <moviearrive code="bih" place="bihar" /> <moviedepart code="mys&q

How to get rid of this white background color on all variables in Padre Perl IDE -

How to get rid of this white background color on all variables in Padre Perl IDE - padre favourite ide perl. downloaded here: http://code.google.com/p/dwimperl/downloads/detail?name=dwimperl-5.14.2.1-v7-32bit.exe&can=2&q= i have 1 little problem. there white block (like background color) around variables, shown in attached image. on xp machine. of other machines not this. how can rid of it? http://tinypic.com/r/316x1ug/8 wiki: padre syntax highlighting follow link. go menu options, backgroundcolor: entry. remove , create right color want. otherwise create own yml file highlighting. i more specific if install padre, should in right direction. perl padre

javascript - Coloring in Google map -

javascript - Coloring in Google map - i want create google map here https://www.google.co.in/elections/ed/in/results did not find, how can create google map this? what want do: coloring in google map based on value in above link map google displaying republic of india election results. get value on country state hover fetch clicking event any code sample or web link appreciated. this map demonstrates loading info 2 sources: polygons loaded public google maps engine table , info values come live query census api. can utilize controls above map select category of info display. https://developers.google.com/maps/articles/combining-data for reference click here javascript google-maps google-maps-api-3 map

debugging - debug C++ map in my IDE -

debugging - debug C++ map in my IDE - i declare map like std::map<int ,int > mymap; then utilize like if (mymap.find(pid)!=mymap.end()) mymap.find(pid)->second++; else mymap.insert(std::pair<int, int>(pid,1)); i debug it, found in debugger, shows mymap <1 items> std::map<int, int> [0] <1 items> int but not info related key , value in mymap, normal? c++ debugging stl qt-creator

python - PCA how to plot effect of one component -

python - PCA how to plot effect of one component - edit @ bottom containing solution i performed pca on dataset, resulting in eigenvectors, eigenvalues , mean. want plot effects of varying 1 principal component can't figure out how. want create plot this: http://i.stack.imgur.com/6lqaa.png so formula for should mean + pb with p eigenvectors , b b = p.t * (x - mean) but don't know utilize x. possibility according active shape model paper cootes that b = (b1 b2 .. bt).t so vector of weights. makes more sense me, way have weight of first b set -3 * sqrt(eigenvalue) , plot result. i'm having dimensionality problems way. my input info pca [20, 160], returns [160] mean, [160, n] n amount of principal components want retain, let's take 5. , [n] eigenvalues. way can't pb because p [160] should dotproduct [160]? i'm pretty confused on how this, help appreciated! edit: ok figured out problem. when trying plot effect of first pri

appium - How to create Xpath with the help of UIAutomator for android App? -

appium - How to create Xpath with the help of UIAutomator for android App? - how create xpath help of uiautomator android app? link guide helpful. uiautomator not gives xpath. want know steps create xpath. you can access elements form id in r.class. example: edittext edittext = (edittext) getsolo().getview(r.id.note); you can find in uiautomator @ resource-id column. can click on elements text , etc. if testing web app, can emulate view in chrome , x-path there. go developer tools -> emulation , select device , agent need. i using robotium framework and if don`t know how build xpath, here tutorial http://www.w3schools.com/xpath/ android appium

c++ - cudaMemcpy2DFromArray resulting in cudaErrorInvalidValue -

c++ - cudaMemcpy2DFromArray resulting in cudaErrorInvalidValue - i having troubles using opengl-cuda-interopt setup following: i using framebufferobject render texture (this works well) creating way: void createframebuffer(){ // create texture fbo glgentextures(1, &tex_data); glbindtexture(gl_texture_2d, tex_data); sdk_check_error_gl(); gltexparameteri(gl_texture_2d, gl_texture_wrap_s, gl_clamp_to_edge); gltexparameteri(gl_texture_2d, gl_texture_wrap_t, gl_clamp_to_edge); gltexparameteri(gl_texture_2d, gl_texture_min_filter, gl_nearest); gltexparameteri(gl_texture_2d, gl_texture_mag_filter, gl_nearest); glteximage2d(gl_texture_2d, 0, gl_rgba16f , window_w, window_h, 0, gl_rgba, gl_float, null); // create framebuffer glgenframebuffersext(1, &fbo); glbindframebufferext(gl_framebuffer_ext, fbo); // register texture cuda checkcudaerrors(cudagraphicsglregisterimage(&res_data, tex_data, gl_texture_2d, cudagraphi

javascript - How do I specify where a span will be placed in a extjs grid? -

javascript - How do I specify where a span will be placed in a extjs grid? - i'm pretty new extjs please bare me. i'm trying understand code edited so created next variable var headerplaceholdercomponent = '()'; and placed in function below formattitle: function (containerwidth, containernametitle, aggregationtitle) { // 1 character approximates 6 pixels. so, dividing 5.5 var maxcharacters = math.ceil(containerwidth / 5.5); var combinedtitle = containernametitle + aggregationtitle; if (combinedtitle.length > maxcharacters) { var numberofcharstotruncate = maxcharacters - combinedtitle.length; aggregationtitle = aggregationtitle.replace(aggregationtitle.slice(numberofcharstotruncate), '...'); } var formattedcontainernametitle = '<span class="conatiner-name-title">' + containernametitle + '</span>'; var formattedaggregationtitle = '(<span class="

uiviewcontroller - Property not initialized at super.init call -

uiviewcontroller - Property not initialized at super.init call - i have next init method in view controller: init(mainviewcontroller: uiviewcontroller, settingsviewcontroller: uiviewcontroller, gap: int) { self.mainviewcontroller = mainviewcontroller self.settingsviewcontroller = settingsviewcontroller self.gap = gap self.setupscrollview() // error here super.init(nibname: nil, bundle: nil) //and here. } the self.setupscrollview method looks this: func setupscrollview() { self.scrollview = uiscrollview(frame: cgrectzero) self.scrollview.settranslatesautoresizingmaskintoconstraints(false) self.view.addsubview(self.scrollview) } the errors are: self used before super.init call , property 'self.scrollview' not initialized @ super.init call i've looked @ similar post without luck. help appreciated! you can declaring scrollview optional , moving setup method phone call bel

How to find the Text Area(Height/Width) of TextView programmatically in android -

How to find the Text Area(Height/Width) of TextView programmatically in android - i have edittext , button , textview . on clicking button, textview shows text written in edittext. possible find size of textview occupied depending upon text. i.e. if has 3 characters "abc", width now, if has 5 characters "abcde" , width ? rect bounds = new rect(); paint textpaint = textview.getpaint(); textpaint.gettextbounds(text,0,text.length(),bounds); int height = bounds.height(); int width = bounds.width(); or textview.settext("bla"); textview.measure(0, 0); textview.getmeasuredwidth(); textview.getmeasuredheight(); android android-layout android-textview layoutparams

Websphere profile and application deployment -

Websphere profile and application deployment - my websphere server has 2 profiles , want deploy same application in both profiles. how these 2 applications accessed. each profile have different port access it, differentiate access? yes, each profile has own ports (check aboutprofile.txt file in profilename/logs directory). urls host:9080/context , host:9081/context. default ports incremented one. websphere profile

c++ - Programatically making an bmp image -

c++ - Programatically making an bmp image - i trying create own classes manipulate bmp images.. i started off simple code : everything has been done given in wikepedia link. i having 2 problems : when seek open image giving error premature end of file detected the actual file created exceeds file size thats supposed two bytes. here's code : #include <fstream> #include <iostream> using namespace std; struct bmp_header { public : char id[2]; unsigned int total_image_size; short int app_data1,app_data2; unsigned int offset; }; struct dib_header { public : unsigned int dib_header_size; int image_width; int image_height; short int no_colour_planes; short int colour_depth; unsigned int compression_method; unsigned int raw_image_size; unsigned int horizontal_resolution; unsigned int vertical_resolution; unsigned int num_colours_palette; unsigned int imp_colours_used; };

xml - creating dataset relationship in xsd -

xml - creating dataset relationship in xsd - i need help creating xsd, new in xml , searched cannot figure out problem is. need create schema later can upload them 2 tables tmp_action , tmp_domains. actionguid foreign key tmp_domain. here sample data: <root> <action> <guid>68e29804-299e-4dc5-a22e-b652be5de8f1</guid> <actiontype>scan</actiontype> <starttime>2014-06-13t16:02:27</starttime> <endtime>2014-06-14t05:27:37</endtime> <domain> <name>devtest</name> <parentname></parentname> <dnsroot>abcd</dnsroot> <ncname>efgh</ncname> <treename></treename> <displayname></displayname> <whenchanged>2014-04-01t08:03:45</whenchanged> <usnchanged>16411</usnchanged> </domain> </action> </root> and schema creating: <xsd:schema xmlns:xsd="http://www.w3

php - Using laravel on existing website -

php - Using laravel on existing website - i intern company has database hosted on company's network. past 2 weeks, have been updating database new features , forms through editing php files have on network in notepad++ , uploading them through filezilla. told users on site should seek laravel clean code , give code sense of order. after downloading laravel , figuring out configurations, i'm confused on how apply laravel uses. how can create new php files(new page database) hosted on company's network through laravel? i think you're trying run before walk. before using laravel, should larn mvc. also, sure take @ question on stackexchange. php mysql sql database laravel

c++ - OpenCV: How to pass cv::Ptr as argument? -

c++ - OpenCV: How to pass cv::Ptr as argument? - i need pass cv::ptr argument function , not sure how it. shall pass reference, or value? know std::auto_ptr pretty ugly if pass value , not reference. so: void foo(cv::ptr<cv::featuredetector> detector) { /*...*/ } or void foo(cv::ptr<cv::featuredetector>& detector) { /*...*/ } ? and, if utilize const , difference: void foo(const cv::ptr<cv::featuredetector> detector) { /*...*/ } void foo(const cv::ptr<cv::featuredetector>& detector) { /*...*/ } ? cv::ptr object. see other related questions , answers this: how pass objects functions in c++? c++ opencv

c# - Stuck with Delphi.NET and Delphi 2007 -

c# - Stuck with Delphi.NET and Delphi 2007 - my company has major problem. developed application consisting of more 1.000.000 lines of code in delphi.net. because of stuck delphi 2007 , .net 2.0. as technology , usecases moving on need migrate development platform. far tried several tools promised convert delphi.net c# code - each of tools had several problems wrong indexing of strings (delphi 1 c# 0) or when types used declare array boundaries. after approach tried decompile delphi.net assembly - code comes hardly readable , has hundreds of helper functions phone call borland specific assemblies. looked @ possibility write transpiler myself, ambiguous syntax of delphi hard implement in straight forwards grammar. so great question, there possibilty left not include translating of code hand? or maybe migration path allows migrate partially , stepwise? check out tools like: http://www.9rays.net/tourstep.aspx?tourstepid=21 while may not simple running entire delphi a

javascript - IIS Live Smooth Streaming: How to hide control bar? -

javascript - IIS Live Smooth Streaming: How to hide control bar? - is possible through client-side scripting hide command bar in silverlight web player? if so, how? this slplayer i'm using: http://jsfiddle.net/w5h6g/ i've tried placing autohide=true in "initparams" value, didn't work. <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <style type="text/css"> #silverlight { position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; } </style> </head> <body> <object id="silverlight" data="data:application/x-silverlight-2," type="application/x-silverlight-2"> <param name="source" value="http://clubace.dk/bb.xap"> <param name="onerror" value="onsilverlighterror"> <param name="background" value="white"> <p

How to convert 960.gs website into HTML using Bootstrap 3 -

How to convert 960.gs website into HTML using Bootstrap 3 - i have created photoshop mockup using 960.gs (960 grid system). website container width 960px - center aligned. site need responsive. what should do, convert website html using bootstrap 3? need customize bootstrap before downloading it? 1) current 960 configs (col number, gutters , offsets , col width). 2) build custom bootstrap set. need update media queries breakpoints, grid system , container sizes sections 960 configs (@grid-columns, @grid-gutter-width, , @screen-* fields). 3) update responsive rules (@screen-* fields), according requires 4) include css files downloaded build page 5) mock page according grid guide html twitter-bootstrap-3 960.gs

cannot use sql temporary tables in VBA (cannot drop table) -

cannot use sql temporary tables in VBA (cannot drop table) - how can alter vba code manage run temporary table in sql query vba code (stored procedure contains temp table) sub a() dim connection adodb.connection dim recordset adodb.recordset dim command adodb.command dim strprocname string 'stored procedure name dim strconn string ' connection string. dim selectedval string set connection = new adodb.connection set recordset = new adodb.recordset set command = new adodb.command strconn = "provider=sqloledb.1;persist security info=true;data source =1.1.2.7\b;user id = sa; password=a;initial catalog=a" connection.connectionstring = strconn connection.open command.activeconnection = connection command.commandtext = "ploan_list" command.commandtype = adcmdstoredproc command.parameters.refresh 'command.parameters(1).value = "3" set recordset = command.execute() thisworkbook.sheets("sheet1").cells(1, 1).copyfromrecordset recor