Posts

Extracting .NET Resources to a File -

Extracting .NET Resources to a File - i need extract resources .net application location on hard drive. how can this? eg. have exe file in c# resources , want re-create resource file harddrive programaticaly. open resource stream , re-create it's content filestream. http://support.microsoft.com/kb/319292 might want .net resources

postgresql - What kind of index should I create to make "WHERE col1 LIKE '0000%' AND col2 = 'somevalue'" faster? -

postgresql - What kind of index should I create to make "WHERE col1 LIKE '0000%' AND col2 = 'somevalue'" faster? - i tried next queries in order search within quad tree using postgresql's like operator. in column col3 , there words '0133002112300300320' inserted, describes quad tree's path. create table table1 (col1 character(9) not null, col2 integer not null, col3 character varying(64), col4 integer not null, col5 double precision not null, primary key(col1,col2,col3)); -- performs sequential search select col1,col2,col3,col4,col5 table1 col1='somevalue' , col2=0 , col3 '01330021123003003%'; the problem primary key index set doesn't work where col1='somevalue' , col2=0 , col3 '01330021123003003%' . seems can't utilize like operator and operator @ same time if want utilize created index. are there special indices can create create select faster? it seems can't u...

vba - OpenArgs not passing variable to report -

vba - OpenArgs not passing variable to report - i pretty new vba , i'm trying create button on invoice creation form print invoice. on click event of button should open study , assign invoice id on form openargs property. private sub cmdprint_click() dim invoicenum integer if me.dirty 'save edits. me.dirty = false end if if me.newrecord 'check there record print msgbox "select record print" else invoicenum = me.[invoice number] docmd.openreport "invoice", acviewpreview, , , , invoicenum end if end sub then when study opens runs code: dim invoicenum integer invoicenum = me.openargs when click button on form however, come in parameter box appears. whats unusual the text in box value of invoice number want assign openargs property. cant work out how create value of openargs invoice number form. i'm not sure have done wrong , can't seem find reply anywhere. help appreciated. dim invoicenum integer ...

mkdir different behavior in Makefile and Terminal -

mkdir different behavior in Makefile and Terminal - i facing problem mkdir command in linux ubuntu 14. want create multiple directories @ same level, in makefile have done this. mkdir -v /opt/dir/{dir1,dir2,dir3} and output mkdir: created directory '/opt/dir/{dir1,dir2,dir3}' but when ran command direct on terminal, got expected result. 'mkdir: created directory /opt/dir/dir1' 'mkdir: created directory /opt/dir/dir2' 'mkdir: created directory /opt/dir/dir3' i unable find problem. any suggestion helpful. in advance. it looks me problem not mkdir works differently, shell you're using in terminal differs used create run commands. default create (gnu or other) uses /bin/sh. try add together shell=/bin/bash makefile. makefile mkdir

PHP. Strange numbers in the end of JSON -

PHP. Strange numbers in the end of JSON - i reading , saving weather json info forecast.io api. because using free api has 1000 requests limit per day. requesting api every 10 minutes. saving update time timestamp , using timestamp check 10 minutes elapsed or not. when reading json file , echoing it, unusual number '18706' or '22659' coming out. not have thought coming from. how solve problem? result in browser: ....madis-stations":["uttt"],"units":"si"}}22659 php: <?php $t = time(); $last_updated_timestamp = file_get_contents("last_updated_timestamp.txt"); $delta = ($t - $last_updated_timestamp) / 60; if ($delta > 10) { $json = file_get_contents('https://api.forecast.io/forecast/my_api_key/41.2667,69.2167?units=si&lang=ru'); $obj = json_decode($json); echo $obj->access_token; $fp = fopen('tw.json', 'w'); fwri...

android - Automation testing with ARC? -

android - Automation testing with ARC? - i'm using arc manually test app, hoping move towards automation of testing process. is possible utilize arc automate tests, similar selenium webdriver ff/chrome? i know it's still in development process incredibly helpful. yes. arc supports android adb "shell instrument" command, per android documentation see getting started document starting adb. if create .apk tests separate .apk beingness tested, need bundle both .apk files in .crx package. should straightforward incorporate doing , launching tests build/test environment. android google-chrome-arc

Grails 3.0 error, nullpointer -

Grails 3.0 error, nullpointer - i trying run grails 3.0.1 in commandline via "grails" failed next stacktrace: | error error occurred running grails cli: null java.lang.nullpointerexception @ org.codehaus.groovy.runtime.defaultgroovymethods.collect(defaultgroovymethods.java:3137) @ org.grails.cli.profile.git.gitprofilerepository.getallprofiles(gitprofilerepository.groovy:72) @ org.grails.cli.profile.commands.listprofilescommand.handle(listprofilescommand.groovy:43) @ org.grails.cli.grailscli.execute(grailscli.groovy:173) @ org.grails.cli.grailscli.getbaseusage(grailscli.groovy:118) @ org.grails.cli.grailscli.execute(grailscli.groovy:162) @ org.grails.cli.grailscli.main(grailscli.groovy:99) | error error occurred running grails cli: null i'm using version of java java version "1.8.0_40" java(tm) se runtime environment (build 1.8.0_40-b26) java hotspot(tm) 64-bit server vm (build 25.40-b25, mixed mode) i have tried...