Posts

How can I send a batch job to PBS using a function in Shell? -

i can submit job pbs using both approaches of non-interactive batch jobs and/or interactive batch jobs. however, need use pbs commands in function. in other world need structure this: #!/bin/sh pbs_setup () { #pbs -l $1 #pbs -n $2 #pbs -q normal #pbs -a $user #pbs -m ae #pbs -m $user"@gmail.com" #pbs -q normal #pbs -l nodes=1:ppn=8 #pbs } pbs_setup "walltime=6:00:00" "step3"; echo " " echo "job started echo " " echo "job ended when submitting job not working. in fact final goal separating commands of job main body of code. when hpc changed edit shell file included function instead of editing shells. appreciate if...

mysql - PHP script which utilizes an SQL query returning false even though DB is updated -

i'm having trouble simple php script that's part of user registration system. upon entering user information in registration form, invoke following php: if ($db->isuserexisted($email)) { // user existed - error response $response["error"] = true; $response["error_msg"] = "user existed"; echo json_encode($response); } else { // store user $user = $db->storeuser($name, $email, $password); if ($user != false) { // user stored $response["error"] = false; $response["userid"] = $user["unique_id"]; $response["user"]["name"] = $user["name"]; $response["user"]["email"] = $user["email"]; $response["user"]["created_at"] = $user["created_at"]; ...

Google Maps API V3 Omnibox -

i attempting use google maps api v3 part of our system rebuild , want maps , feel standard google maps. have no issue displaying map want utilise standard google maps omnibox. i can find individual controls cannot find complete omnibox. given individual controls interact each other hoping use standard google maps omnibox make page standard google map. is available or need create 1 myself using individual controls? i don't think provide omnibox. still, think closest thing this: the places search box in places library. it nothing <input type="text"> , take advantages of places autocomplete api .

php - codeigniter: inserting value from array 1 to array 2? -

i have array this array 1 array(3) { [0]=> string(2) "47" [1]=> string(2) "48" [2]=> string(2) "49" } i have plan giving array name, array name number array 2 array(3) { [0]=> object(stdclass)#18 (2) { ["address"]=> string(9) "address 1" ["price"]=> string(16) "120000" } [1]=> object(stdclass)#21 (2) { ["address"]=> string(9) "address 2" ["price"]=> string(16) "150000" } [2]=> object(stdclass)#20 (2) { ["address"]=> string(9) "address 3" ["price"]=> string(16) "180000" } } i want inserting array 1 array 2 same array key i want insert array 1 data array 2 accordance key array . i expecting joined both of arrays , became joined array this array(3) { [0]=> object(stdclass)#18 (2) { ["address"]=> str...

javascript - json return array of objects , how to assign values to angular $scope varialbes? -

Image
i have 2 textbox name , description 2 separate error lables them. post create method returns error in json in array of objects , want filter messages , check if propertyname name show errormessage name textbox. <textarea id="txtdescription" ng-model="description" class="form-control"></textarea> <label ng-repeat="myerror in errors (want apply filter here propertyname 'description')" ng-model="description" ng-show="descriptionalert">{{myerror.errormessage}}</label> <textarea id="txtname" ng-model="name" class="form-control"></textarea> <label ng-repeat="myerror in errors (want apply filter here propertyname 'name')" ng-model="description" ng-show="descriptionalert">{{myerror.errormessage}}</label> .error(function (responsetext, status, error) { ...

winapi - CryptAcquireContext -- unresolved external -

i'm linking third-party library (poco c++) , getting following unresolved symbol errors linker. appears unable find "cryptacquirecontextw", "cryptreleasecontext", , "cryptgenrandom". according microsoft information here , these functions linkable using "advapi32.lib". i've added linker inputs symbols remain unresolved. 1>pocofoundationclr.lib(randomstream.obj) : error lnk2019: unresolved external symbol __imp__cryptacquirecontextw@20 referenced in function "public: virtual int __thiscall poco::randombuf::readfromdevice(char *,__int64)" (?readfromdevice@randombuf@poco@@uaehpad_j@z) 1>pocofoundationclr.lib(randomstream.obj) : error lnk2019: unresolved external symbol __imp__cryptreleasecontext@8 referenced in function "public: virtual int __thiscall poco::randombuf::readfromdevice(char *,__int64)" (?readfromdevice@randombuf@poco@@uaehpad_j@z) 1>pocofoundationclr.lib(randomstream.obj) : error lnk2019:...

javafx webengine - How to reload a page in DukeScript -

dukescript quite clever in way handle changes model code hot-swapped @ runtime, see example here . 1 thing doesn't seem handle @ runtime though changes html layout. given runs in webview, kind of browse, nice able reload page without having stop , restart app. so, i've tried adding "reload" button, can't find easy way after initialization: browserbuilder .newbrowser() .loadpage("pages/index.html") .loadclass(main.class). invoke("onpageload", args). showandwait(); showandwait() it's supposed do, doesn't return until browser closed. there doesn't seem way act on underlying instance of webview , thread. ha ha, simple effective solution: <a href="index.html">reload</a> note: toni epple says netbeans detect change, no reload needed.