Posts

Running Enthought Canopy Python as root cannot import pandas -

i want access files , directories may require root permission command line call python script using enthought canopy python. running python root gives me system distributed python. $ python enthought canopy python 2.7.6 | 64-bit | (default, sep 15 2014, 17:36:10) [gcc 4.1.2 20080704 (red hat 4.1.2-54)] on linux2 type "help", "copyright", "credits" or "license" more information. $ sudo python python 2.7.6 (default, mar 22 2014, 22:59:56) [gcc 4.8.2] on linux2 type "help", "copyright", "credits" or "license" more information. same results using default bash terminal (ubuntu linux 14.04) , using canopy command line (canopy 1.5.2). i reinstalled canopy root (i.e. re-ran shell script root) , same problem still occurs. is there easy way run canopy root? not trying distribute number of users on system run python script on files need root permissions. it sounds sudo not using current path ...

android - Resource ID is not returning correct value -

Image
i having difficulty displaying images in listview. the output want should contain different images different list items. getting this: as can see icons being displayed same (booking). figure out until method itemimagesviews.setimageresource(itemsimages.getresourceid(position, r.drawable.booking)) itemadapter.java file not returning expected value. here repo: https://github.com/amar0891/aroma-holiday i don't know code in itemadapter.java. need this, if want see booking icon: itemimagesviews.setimageresource(r.drawable.booking); note: don't know code setup have getresourceid() , maybe main problem. another solution, recommended google, think is: resources resources = getresources(); itemimagesviews. setimagedrawable(resources.getdrawable(r.drawable.myfirstimage)); note: itemimagesviews imageview. setimagedrawable method supposed more efficent large images.

vba - Run macro by clicking away from any ActiveX textbox in a document -

i'm looking vba script run whenever click away of activex textboxes in document. alternative have run whenever click on textbox (without clicking away). how can done without assigning subs each textbox individually? double click on textbox , bring default method textbox, in testing textbox1_change(). method run every time type textbox. you see 2 dropdown boxes @ top of vba editor. drop down on 1 on right , you'll see other available methods textbox, 1 of lostfocus reckon suit purposes. clicking on creates sub execute every time textbox loses focus. see how go that. cheers

vb.net - .net failed to load assembly Microsoft.SqlServer.Management.IntegrationServicesEnum -

Image
it vb.net regular windows forms, showing charts thru report builder. application calls ssis packages , processes chosen data mining model programmaticly. message pops when client tries run data mining model... don't know missing. sql 2012 , visual studio 2012 also. client machine 64 bit windows7. database objects in dbo schema , client has owner privileges schema. client can including viewing charts except processing data mining structure.

groovy - Extract all particular field from JSON in mule esb -

i have json payload, want collect externallistingid in 1 shot - { "listings": { "numfound": 3, "listing": [ { "status": "inactive", "priceperticket": { "amount": 100, "currency": "usd", }, "paymenttype": "1", "externallistingid": "12208278", "city": "new york" }, { "status": "active", "priceperticket": { "amount": 4444, "currency": "usd" }, "paymenttype": "1", "externallistingid": "cid1421798897102:151681733", "city": "seattle" } ] } } i using mvel expression - <enr...

Dynatrace integration with Apache webserver -

i have apache webserver php module display information. i'd able data dynatrace , put data in webserver through cronjob. problem have no clue on how push data dynatrace server. there apis or different way of doing this? thanks in advance. dynatrace provides rest reporting interface can pull out data dynatrace can put on dashboard , in consumable such csv, xml, json, ... - here link public doc page on reporting interface: https://community.compuwareapm.com/community/display/docdt61/server-+and+clientside+xml+reporting so - need following 1: create dashboard , put charts on show measures interested in, e.g: apache thread count, cpu, throughput, ... 2: save dashboard on dynatrace server 3: use rest interface query data , put external system if have more questions on feel free post them on our own dynatrace community forum: https://community.compuwareapm.com/community/display/dtforum/dynatrace+forums+home andi

Java Hibernate.merge may in any circunstance return null? -

hello have snippet this. public void update(student student) { student=super.merge(student); currentsession().update(student); return; } but code throws java.lang.illegalargumentexception: attempt create saveorupdate event null entity. i wondering how possible merge may return null in circunstance?  because have checked student not null because if null merge throw. exception in thread "main" java.lang.illegalargumentexception: attempt create merge event null entity the situation think happening stuff if merge returning null possible?? sorry if question simple lot best regards venezuela.. merge() used merge detached object attached object (both have same id). example, passed in student1 object in method update(), has id , status detached: public void update(student student1) { //student1 in detached status, may modify if not yet done student1.setname("abc"); //now load student2 db same id, note student2 in pe...