Posts

vbscript - Getting VB Script Error on my redirect script -

i getting vb compilation error on redirect script. placed redirect script @ root of server. <% if instr(request.servervariables("olddomain"),"www") = 0 response.status="301 moved permanently" response.addheader "location","http://www." & request.servervariables("http_host") & request.servervariables("request_uri") response.end response.redirect("newdomain") end if %> and error getting microsoft vbscript compilation error '800a0400' expected statement /default.asp, line 5 & request.servervariables("http_host") ^ i not familiar vb. appreciate it. thanks line continuation in vbscript done _. sample: dim atests : atests = array(_ array("5-foo, 10 bar", 15) _ , array("11 baz", 11) _ , array("bad,string", 0) _ , array("hello,123,100, 100 ,xxx", 323) _ , array(...

c - Address space for shared libraries loaded multiple times in the same process -

first off, i've found a few references might answer question. while plan on reading them (i.e. after work), i'm still asking here in case answer trivial , not require supplementary knowledge. here situation: writing shared library (let's call liba.so) needs maintain coherent internal (as in, static variables declared in .c file) state within same process. library used program p (i.e. p compiled -la ). if understand far, address space p this: ______________ | program p | | < | | variables, | | functions | | p | | > | | | | < | | liba: | | variables, | | functions | | loaded (ie | | *copied*) | | shared | | object | | > | | < | | stuff | | other | | libraries | | > | |______________| now p call dlopen("libq.so", ...) . libq.so uses liba.so (i.e. compiled -la ). since happens within same process, need liba som...

php - Check value of textbox is blank or not when form submit using yii framework -

i new in yii framework.i doing search search operation using yii framework.my requirement check textbox value null or not in controller.i can print textbox value in variable '$experience'.but cant check blank or not.controler name sitecontroller.php,view search.php , model job.php my controller sitecontroller.php <?php class sitecontroller extends controller { public function actionsearch() { $user_id = trim($_get['id']); $model = new job ; if(isset($_post['job'])) { if(yii::app()->getrequest()->getisajaxrequest()) { echo cactiveform::validate(array($jobprofilem2)); yii::app()->end(); } $model->attributes=$_post['job']; if($model->validate()) { $title=$_post['job']['title']; $experience=$_post['job']['experience']; echo "data".$experience=trim(...

c++ - Iterate through a list of objects and point to the node that matches a certain criteria -

i using custom data structure 'block' , have stored several blocks in list: list openlist<block> i need iterate through each block, access data member 'f' (an integer) , check has lowest f cost. my logic have pointer pointing best block value, rather each time copying best blocks values. here's code: for (std::list<block>::iterator openi = openlist.begin(); openi != openlist.end(); openi++){ if ((*openi).f < bestfcost){ bestfcost = (*openi).f; // here's need help.... } } i don't think i'm asking of iterator possible. wish set block * q to data iterator points to, need entire object not data members. edit: simple solution! initilised q typo (q* instead of *q)! block * q = 0; then in part of loop commented: q = &(*openi) :) *openi of type block , right? can take address of that: block * q = &*openi; the &* might seem redundant, * operat...

java - jbpm6 - build.xml:508: jboss did not start within 5 minutes -

i new jbpm , trying learn jbpm 6, downloaded , following steps provided document.i trying demo using ant install.demo working upto install jbpm modular. i set environment of system is note : using windows 7 - 64 bit. java -version 1.7 ant -version 1.9.3 java_home=c:\program files\java\jdk1.7.0_45 ant_home=d:\ant path=%java_home%\bin;%ant_home%\bin; i install demo using command in command prompt ant install.demo starting demo using ant start.demo then getting error as: build failed c:\jbpm-installer\build.xml:508: jboss application server did not start within 5 minutes to avoid did things, read things google, increasing time out ful in build.xml when jbpm 6 @ line number 504. i change port number in build.xml avoid conflicts. even though following above conditions again repeating same error. can 1 ? solutions under jbpm 6 version............ in advance i had same problem. solution reinstalling java version. moreover...

Is it possible to add custom functionality to a delphi component to be triggered if a specific key is pressed? -

on application have several tdblookup components , on of them have add procedure closes , open again lookup query, on key press event. so wondering: how can customize descendent of tdblookup component, in order have boolean property available on object inspector, can enable accomplish this? if set true, focus on tdblookup , pressing f5 key, closes , open lookup query again. is possible? derive new component tdblookup , add desired property, , override virtual keypress() method @ property , act accordingly.

java - Android studio stuck at the splash screen -

Image
i downloaded android studio , setup, i.e. environment variable. studio not opening, android studio logo there in desktop even after hours, it's still same. the environment variable setup system variable jdk_home c:\program files\java\jdk1.7.0_02 android studio still in access version , can subject lot of problems. bug gradle caused build fail reason seemed unlinked. i'm pointing out using android studio not risk-free. imho, should @ least backup project as can avoid problem. back question, have updated android studio recently? first thing can try reinstall android studio. make sure backup sdk in case gets deleted (i'm using mac , sdk in app package's content. i'm not sure on windows, can try in installation folder). if doesn't work, fill bug report here , ask guide https://groups.google.com/forum/#!forum/adt-dev