Posts

Text overwrite in visual studio 2010 -

really silly problem here. in visual studio 2010, text cursor has changed blinking line, blinking grey box around characters. when type overwrites text in front of it. i'm not sure how off? it's happens when press insert key in microsoft word , overwrite mode gets turned on. i'm working on mac windows virtual machine when hit insert it's shortcut key parallels (the virtual machine program i'm running). would appreciate help!! if pressing insert key doesn't work, try doubleclicking ins/ovr label in lower right corner of visual studio.

delphi - How do I identify what code is generating " '' is not a valid floating point value" error dialogue box -

Image
i using delphi 2010 , have program keeps generating error dialog box stating '' not valid floating point value how delphi show me line generated error? the easiest way solve run under debugger , have configured notify on language exceptions , tools | options: ignore big list of exceptions ignore come own codebase. make sure checkbox have highlighted marked. then when run program, stop @ line causes exception.

handling nulls and zero values in django -

if have model nullable field: class something(models.model): parameter = models.floatfield(blank=true,null=true) i want handle in view or template. if something.parameter has value, want return value, , if null, want return 'n/a'. if use: something = something.objects.get(id=1) output_string = 'parameter value: %s' % (something.parameter or 'n/a') then works, except in case something.parameter=0, returns 'n/a' rather desired '0'. how can correct behaviour? is there way of doing directly in template? use default_if_none template filter: {{ value|default_if_none:"n/a" }}

Can this XML be represented in CSV - Objective C -

i have following structure of xml can convert csv(ideally objective-c) <root> <parent> <name>somename</name> <age>20</age> <child> <childitem1>somevalue</childitem1> <childitem2>somevalue</childitem2> </child> <child> <childitem1>somevalue</childitem1> <childitem2>somevalue</childitem2> </child> </parent> <parent> <name>somename</name> <age>20</age> <child> <childitem1>somevalue</childitem1> <childitem2>somevalue</childitem2> </child> <child> <childitem1>somevalue</childitem1> <childitem2>somevalue</childitem2> </child> </parent> </root> the problem facing list formation of nodes. thanks in advance edited : problem need xml above result of csv/excel spread sheet, dont know how create such f...

javascript - change message box title -

how can change title of message box in java script plese given me code that you can not change standard alert() of javascript. go through link- http://labs.abeautifulsite.net/projects/js/jquery/alerts/demo/

Find architecture of system in Windows Installer -

i have application developed in c#. creating installer app using visual studio setup project. while installation, want execute exe file differs 32 , 64 bit respectively. have use different file 32bit , 64bit. for executing exe file, have added "custom action" , works also. said, exe file differs system architectire. how can knwo architecture in installer , execute respective file. i tried following : check hkey_local_machine\software\wow6432node - if found returns "" , else returns "", of no use. versionnt - provides version, more concerned architecture. how can achieve ? vbs can work or not ? don't know vbs, know can added action , set condition , little bit things that. if @ create 32bit app detects architecture, how work out suring installation ? any highly appreciated. thanks look @ second comment here: http://msdn.microsoft.com/en-us/library/ms724072%28vs.85%29.aspx

python - Is there a way to efficiently yield every file in a directory containing millions of files? -

i'm aware of os.listdir , far can gather, gets filenames in directory memory, , returns list. want, way yield filename, work on it, , yield next one, without reading them memory. is there way this? worry case filenames change, new files added, , files deleted using such method. iterators prevent modifying collection during iteration, taking snapshot of state of collection @ beginning, , comparing state on each move operation. if there iterator capable of yielding filenames path, raise error if there filesystem changes (add, remove, rename files within iterated directory) modify collection? there potentially few cases cause iterator fail, , depends on how iterator maintains state. using s.lotts example: filea.txt fileb.txt filec.txt iterator yields filea.txt . during processing , filea.txt renamed filey.txt , fileb.txt renamed filez.txt . when iterator attempts next file, if use filename filea.txt find it's current position in order find next file , filea.txt n...