Posts

arrays - Will you please help me in my migration to VB.NET from VB 6.0? -

this question has answer here: control array in vb.net 3 answers i read article control arrays of vb6 not present in vb.net , rather, became "collection" or something.... ( http://visualbasic.about.com/od/usingvbnet/l/bldykctrlarraya.htm ) now, i'm planning learn vb.net , accept whole new language. so, "few steps" me migrate, here code vb6: private sub command1_click() = 0 9 command2(i).caption = next end sub private sub command2_click(index integer) label1.caption = label1.caption + index end sub i wonder if program is? let's it's number pad program. i'll explain program does, @ least now... as can see, have 12... controls? (i'm sorry, i'm still little bit new in terms of programming)... yeh, 12 of them... 11 buttons , 1 label. 1 button, command1, give captions of other 10 buttons command2(in...

File Sorting in Python -

i sort file in python based on numerical values: my input file looks this: 66135 - 65117 - b 63301 - c 63793 - d output should be: 63301 - c 63793 - d 65117 - b 66135 - how it? f2.writelines(sorted(f1, key=lambda line:int(line.split()[0]))) where f2 output file , f1 input file.

.htaccess - Setting up mod_rewrite in htaccess -

i need set rules: if url is: www.example.com/test1234 then: www.example.com/load.php?id=1234 if url is: www.example.com/proceed1234 then: www.example.com/activate.php?id=1234 my .htaccess following: rewriteengine on rewriterule ^test/([0-9]+)/?$ /load.php?id=$1 [l] rewriterule ^proceed/([0-9]+)/?$ /activate.php?with=$1 [l] and don't know why doesn't work. not @ regexpressions, please, me find right solution, please.

get unique entries from a complex list in r -

i have list of lists: $markers mi chr phys.pos group 19 mg001 8 4803507 1 20 mg002 8 4841939 1 3 mg003 8 5268581 2 1 mg004 8 5278404 2 6 mg005 8 8352013 3 7 mg006 8 8352443 3 9 mg008 8 8354875 3 10 mg009 8 8356039 4 11 mg010 8 8357610 4 13 mg012 8 8361049 5 14 mg013 8 8361845 5 15 mg014 8 1640281 6 16 mg015 8 1640663 7 $plants plant group 9 dl750 1 11 d827 1 17 dl26 1 25 d901 2 30 dr202 3 35 d356 3 52 f015 4 i list of entries unique in "group", , list of leftovers. results expected as: (a) unique list: $markers mi chr phys.pos group 19 mg001 8 4803507 1 3 mg003 8 5268581 2 6 mg005 8 8352013 3 10 mg009 8 83560...

emacs - Disable screen jump when the cursor moves out of the screen -

i new emacs , using evil mode. when scroll j,k , move out of screen, emacs readjust current line under cursor middle of screen. where can disable feature? by adding following setting .emacs file (or similar user customization file -- e.g., init.el ), user can override default setting recenters point moves off screen: (setq scroll-conservatively 101) the doc-string scroll-conservatively , visible typing m-x describe-variable ret scroll-conservatively ret reads follows (at least in far developer snapshot of emacs trunk goes, is): "if value greater 100, redisplay never recenter point, scroll enough text bring point view, if move far away. value of 0 means recenter point if moves off screen."

parameters - Jenkins parameterized build changing default value -

Image
i using jenkins "extended choice parameter" plugin , want schedule build run periodically without human intervention. the parameter build selected drop down list. the drop down list parameter generated through external script , want pick top value default value. is there way select top element default value scheduled job? i read there ways run job remotely using url hoping can achieve making changes job configuration don't have manage separate script it. my jenkins instance running on linux , run job using build trigger --> build periodically section of jenkins job configuration. well, if want latest picked default scheduled job, have modify external script use populate drop-down menu. i'm not sure how you're populating list through external script know way have used , works fine me. use external script generate list , store list in file. in case, things little different . discuss further. first, select following options in extended c...

c# - How to minimise OleDbDataAdapter time to fetch data from remote database -

my windows form application contains oledbdataadapter, consuming longer time fetch data remote db. not able retrieve/hold table data 5000 rows(application gets struck). here code. environments = configurationmanager.getsection("environment") namevaluecollection; string strconnstring = environments[envs]; conn = new oledbconnection(strconnstring); conn.open(); oledbdataadapter objda = new oledbdataadapter("select * tblabc", conn); dataset ds1 = new dataset(); objda.fill(ds1); datagridview1.datasource = ds1.tables[0]; environment section configured in app.config file : <configuration> <configsections> <section name ="environment" type="system.configuration.namevaluesectionhandler" /> </configsections> <environment> <add key ="cit" value ="password=pwd123;user id=abc123;data source=db1;persist security info=true;provider=msdaora"/> <add key ="sit" value...