Posts

testing - Cabal Configure fails on Configuring test (Windows) -

i new haskell , trying install yesod on windows machine using cabal. when try yesod devel build failure, saing must run configure first. then when run cabal configure fails following message: resolving dependencies... configuring test-0.0.0... cabal: test sharing name of exe found. consider bug. i using latest haskell platform (2012.2.0.0). apparently there's bug in cabal, , can't have test executable same name regular executable. since test executable named test , , regular executable has same name project, appear test no longer valid name yesod project. if name else, should work. could file bug report on github prevent people using name test ?

asp.net mvc 3 - Request.Form[] return's null -

i used file controller , allow user upload file name @using (html.beginform("attachfile", "coursework", new { enctype = "multipart/form-data" }, formmethod.post)) { @html.hiddenfor(model => model.prtfmaster.iconfilename, new { @id = "filename" }) <input type="file" name="file" id="file1"/>} on controller write this: public actionresult uploadprtfassgmnt(formcollection form,httppostedfilebase file,coursework cwork) with i'm able fetch uploaded file name inside function if try value this: string filename = request.form["filename"]; it returning null. can me this? please

vba - How to Launch an Excel macro from command line (Without Worksheet_Open Event)? -

is possible launch excel macro command line? i don't want use worksheet_open event , open excel file. i need launch specific macro exists in excel workbook. use windows powershell, has excellent com interop support. i have workbook c:\testbeep.xlsm macro called "test". transcript: ps c:\> $app = new-object -comobject excel.application ps c:\> $wb = $app.workbooks.open("c:\testbeep.xlsm") ps c:\> $wb.name testbeep.xlsm ps c:\> $app.run("test") ps c:\> $app.quit() optionally can add in $app.visible = $true make window visible.

blackberry:position of field in the screen -

i want open popup screen in same position of label. want method return position of field in screen. , use these position popup. public void sublayout(int width, int height){ super.sublayout(width,height); setposition(x_postion_of_label,y_postion_of_labe); } int xpos=labelfield.getleft() ; & int ypos=labelfield.gettop(); will give starting x , y positions of labelfield .

php - Time not updating correctly in mysql -

i trying add update sets users last activity, @ moment displaying 838:59:59 time in mysql, , not quite sure why. here query using on each page update it. mysql_query("update users set last_activity = ".time()." user_id = ".$user_id); any ideas why appreciate thanks mysql_query("update users set last_activity = now() user_id = ".$user_id);

create service using searchd command of Sphinx -

make index on 1 sphinx compatible xml document.it runs success fully. make service using searchd command.following command make service searchd --install --config "path config file" --servicename "servicename" --port "portnumber". if sphinx config file put inside sphinx directory service create , start successfully. if config file not inside sphinx directory service created can not start successfully. should change inside searchd block in config file? according the documentation (http://sphinxsearch.com/docs/current.html#ref-searchd) parameters specified when creating service called when starting service. --install installs searchd service microsoft management console (control panel / administrative tools / services). other parameters specified on command line, --install specified become part of command line on future starts of service. example, part of calling searchd, need specify configuration file --config, , specifying --inst...

ruby on rails - ActiveRecord::ConnectionNotEstablished with PostgreSQL 9.1.3 and RoR 3.2.5 -

i installed postgresql homebrew: $ brew install postgresql i installed pg gem with: $ gem install pg -- --with-pg-config= '/usr/local/var/postgres/postgresql.conf' i changed app's database.yml development:   adapter: postgresql   encoding: unicode   database: rails_dev   pool: 5   username: vise890   password: test:   adapter: postgresql   encoding: unicode   database: rails_test   pool: 5   username: vise890   password: production:   adapter: postgresql   encoding: unicode   database: ddb port: 5432   pool: 5   username: postgres   password: admin however, whenever load page error: activerecord::connectionnotestablished i can connect db pgadmin (u:vise890 p:{none}) , see databases. i doing example3 ruby on rails tutorial if want check whole thing: sample app github branch thanks in advance guys! ok, nevermind. started scratch , worked. here's the walkthrough in case interested