Posts

Featured post

c - Backtrace for GNU make -

is there way gnu make print "backtrace" of targets led command being executed when fails? regularly deal heavily obfuscated makefiles while resolving portability issues building software on new system, , seems should extremely simple thing make aid in debugging, can't find way request it. i'd see like: gcc: error: ... make[2]: error: gcc ... make[2]: error building target bar make[2]: error building dependency bar target foo make[1]: error: make -c subdir make[1]: error building target subdir make[1]: error building dependency subdir target ... showing entire dependency path how failed command ended getting executed. is there way this? make -p , make -d provide interesting information, not precisely asking for. see make's man page .

objective c - force UIScrollView to update -

i'm stuck problem have serie of pages of characterview class going straight uiscrollview. loading part performance intensive, because of reason tried manage aid of threading scenario. intention load requested page (es. 5th page out of 10) , starting load pages of uiscrollview there , showing on screen, recurring somehow , load +1 / -1 (respectively 6 , 4) , show'em on screen , in second recursion load +2 / -2 ( 7th , 3rd ) , show'em on screen , on.. this code: -(void)loadpagesdrillingfrompage:(nsinteger) page { self.viewcontrollers = [[[nsmutablearray alloc] init] autorelease]; (unsigned = 0; < [pageids count]; i++) { [self.viewcontrollers addobject:[nsnull null]]; } pagecontrol.numberofpages = [pageids count]; didpreparepagescontainer = yes; if (kpreloadallpages && !threadisloadingpages) { threadisloadingpages = yes; nsnumber *startingpage = [nsnumber numberwithint:page]; nsmutablearray *preloa...

CUDA shared memory -

i need know cuda shared memory. let's assign 50 blocks 10 threads per block in g80 card. each sm processor of g80 can handle 8 blocks simultaneously. assume that, after doing calculations, shared memory occupied. what values in shared memory when next 8 new blocks arrive? previous values reside there? or previous values copied global memory , shared memory refreshed next 8 blocks? it states type qualifiers: variables in registers thread, stays in kernel variables in global memory thread, stays in kernel __device__ __shared__ type variable in shared memory block, stays in kernel __device__ type variable in global memory grid, stays until application exits __device__ __constant__ type variable grid, stays until application exits thus reference, answer question memory should refreshed next 8 blocks if reside in shared memory of device.

Unit Testing in XCode: Test rig '[...]/usr/bin/otest' exited abnormally with code 134 -

i have got problem when unit testing class. when running test, compiles without errors crashes (it not fail in sense of assertion not being met), displaying following error message: /developer/tools/runplatformunittests.include:451:0 test rig '/developer/platforms /iphonesimulator.platform/developer/sdks/iphonesimulator4.2.sdk/developer/usr/bin/otest' exited abnormally code 134 (it may have crashed). here's code: the class' interface: @interface abstractactionmodel : nsobject { nsstring* mname; actiontype mtype; // enum float mduration; float mrepeatcount; float mdelay; nsarray* mtriggerareas; } the implementation: - (void) dealloc { [mtriggerareas release]; [super dealloc]; } - (id) initwithconfigdata: (nsdictionary*) theconfigdata { nsassert(nil != theconfigdata, @"theconfigdata cannot nil"); self = [super init]; if (self) { self.name = [theconfigdata objectforkey:action_name]; self.type = ...

shell - SWeave with non-R code chunks? -

i use sweave produce latex documents chunks produced dynamically executing r code. works - possible have code chunks executed in different ways, e.g. executing code in shell, or running perl, , on? helpful able mix things up, things run shell commands fetch data, run perl commands pre-process it, , run r commands analyze it. of course use r chunks , use system() poor-man's substitute, doesn't make pleasant reading in document. it's not directly related sweave, org-babel , part of emacs org-mode , allows mix code chunks of different languages in 1 file, pass data 1 chunk another, execute them, , generate latex or html export output. you can find more informations org-mode here : http://www.orgmode.org/ and see how org-babel works : http://orgmode.org/worg/org-contrib/babel/

python - How to publish (in a server) a pydev app using eclipse? -

i'm new eclipse , in field of web applications. used eclipse wrote django application works inside development server integrated in django. now, using eclipse, want export app work apache2 server. i've installed server , configured inside eclipse (defining server runtime environments preferences , creating server). now, steps have follow export , make app work in server? you using django development server (the manage.py runsrever ) eclipse. eclipse or other ide has little deployment of web application. django documentation explains how deploy application on appache , wsgi quite well. basically need reproduce eclipse configuration in wsgi script. wsgi script python script runned apache mod_wsgi module. here example of wsgi script: import os project_dir = os.path.dirname(__file__) # provided python-paths (places python modules) # in eclipse configuration. you'll need add path's wsgi # script too. os.path.append(project_dir) os.path.append(project...

.net 4.0 - How to flush out suspended WCF workflows from the instancestore? -

we have identified need flush out several different workflows have been suspended/persisted long time (i.e. hung instances). our test environment can flushed clean before acceptance tests re-run. the dirty solution use sql script remove records instancestable , other related tables in database. what's proper solution? these wcf workflows. test rig running xp. using appfabric can use ui, or asume powershell commands, delete individual instanced. development , test purposes recreate database running sqlworkflowinstancestoreschema.sql script again.