Posts

Showing posts from July, 2014

javascript - How to pass html in jquery datatables row add function -

following way im adding rows in jquery datatables angular reviewmanger.getunapprovedreviews().then(function (data) { if (data != null) { var result = reviews.common.makevalidjson(data); if (result != null) { $scope.reviews = result; var table = $("#editable"); var tp = table.datatable(); (var = 0; < $scope.reviews.length; i++) { tp.row.add([ $scope.reviews[i].id, $scope.reviews[i].addedon, $scope.reviews[i].company.name, $scope.reviews[i].user.name, $scope.reviews[i].description, $sce.trustashtml("<span ng-click='enabledisable(" + $scope.reviews[i].id + ")>change</span>") ]).draw(); } } } }, function (error) { }); the problem i dont see rendered html in last column of rows in jquery data

Infinite Loop Linked List C -

i working on practice problem improve c. here question: write function sort linked list of integers follows: a) find largest value in list. b) delete position , insert @ head of list. c) starting second element, repeat (a) , (b). d) starting third element, repeat (a) , (b). continue until list sorted. my sorting function: nodeptr sortlist(nodeptr np) { nodeptr makenode(int), head, temp; head = temp = np; if (np != null) { // determine linked list length int len = 0; while (temp != null) { len++; temp = temp -> next; } int i; (i = 0; < len; i++) { temp = head; int j; // traverse spot j in linked list (j = 0; j < i; j++) { temp = temp -> next; } // find largest nodeptr largest, prev, prevtolargest; largest = prev = prevtolargest = temp; while (temp != null) { if (temp -> num > largest -> num) {

locking - SQL Server : lock table to block other sessions trying to read the table -

i need able lock table in sql server while doing work. lock needs block other sessions reading table. when work complete table needs unlocked. in mysql have done using: lock tables [table] write at point other sessions blocked when trying read table, until table unlocked. unlock tables now blocking stop. is possible in sql server? begin transaction select * tablename (tablockx) /* stuff here */ commit transaction tablockx obtain exclusive lock on table , other users not able read or update data until commit transaction yourself.

ios - How to make changes to SKActions periodically? -

i want change speedofrectangle after spawning few rectangles(skshapenodes). func wait(factor: cgfloat = 1) -> skaction { return skaction.waitforduration(nstimeinterval(rectheight * speedofrectangle * distancebetweenrectangles / factor)) } let spawnsequence = skaction.sequence([wait(), increasecounter, spawnaction]) let spawnsequenceforever = skaction.repeatactionforever(spawnsequence) worldnode.runaction(spawnsequenceforever) how make changes skactions periodically? the easiest way change action remove old action , create new one. can remove actions removing "key" or remove actions running on node removeallactions() . changing actions while running has no effect until action completed , run again. hope helped , luck.

javascript - Restore table state on page reload -

i using jquery datatables plugin in project (server-side page). problem have when go details of table element (and leave table page) , return back, page number , order not preserved. on server side can save page in session , return table send page ajax call. how return state in table after entering item details? solution you can use statesave option restore table state on page reload. for example: $('#example').datatable({ statesave: true, // ... other options ... }); demo see this jsfiddle code , demonstration.

javascript - Get the path of a certain Route in react-router -

using react-router in react have declared routes this: <route name="voteview" path="voteview/:baselineid" handler={voteview}/> in react component, want call route. react router gives me link: <link to="voteview" params={{baselineid: this.props.data.baselineid}}>voteview</link> this results in <a href...> link. but want use url path programmatically, not in <a href...> link. how can url path "voteview" route programmatically? you can use makehref method on react routers context generate path this: this.context.router.makehref('voteview', {baselineid: this.props.data.baselineid})

ios - CGContextSaveGState: invalid context 0x0 at App Launch -

i have set cg_context_show_backtrace environnement variable yes because had following error cgcontextsavegstate: invalid context 0x0 . the following stacktrace didn't me much. <error>: cgcontextsavegstate: invalid context 0x0. backtrace: <-[uistatusbarbatteryitemview contentsimage]+773> <-[uistatusbaritemview updatecontentsandwidth]+36> <-[uistatusbaritemview initwithitem:data:actions:style:]+503> <+[uistatusbaritemview createviewforitem:withdata:actions:foregroundstyle:]+159> <-[uistatusbarlayoutmanager _createviewforitem:withdata:actions:]+168> <-[uistatusbarlayoutmanager _prepareenableditemtype:withenableditems:withdata:actions:itemappearing:itemdisappearing:]+3 <-[uistatusbarlayoutmanager prepareenableditems:withdata:actions:]+108> <-[uistatusbarforegroundview _setstatusbardata:actions:animated:]+951> <-[uistatusbarforegroundv

php - Wordpress frontend submit form doesn't save selected categories and post description post_meta -

i have 1 week working new wordpress tube theme , have created frontend submit form users limitation options in redux framework.this first time working file uploader me. <?php if( !defined('abspath') ) exit; if( !class_exists('tubemobile_shortcodesubmitvideo') ){ class tubemobile_shortcodesubmitvideo { function __construct() { add_action('init', array($this,'add_shortcodes')); add_action('wp_ajax_awpt_submit_video', array($this,'action_form')); add_action('wp_ajax_nopriv_awpt_submit_video', array($this,'action_form')); } function add_shortcodes(){ add_shortcode('upload', array($this,'videotube_upload')); } function videotube_upload( $attr, $content = null){ global $awpt; global $post; $html = null; extract(shortcode_atts(array( 'vcategory'

html - Change Glyphicon margin/padding in bootstrap badge -

i using glyphicon in badge, , have glyphicon have smaller font-size text. works fine, glyphicon not centered vertically in badge. when try , give margin-bottom or padding-bottom goes , adds entire badge, , not glyphicon element. here .css class i'm using: .glyphicon-test3 { margin-right: 5px; font-size: 6px; padding-bottom: 8px; } here html: <div> <span id="test" class="badge"> <span class="glyphicon glyphicon-plus-sign glyphicon-test3"></span> small icon padding </span> </div> i've made plnkr shows effect in it's full glory: http://plnkr.co/edit/vbieaffmfujy2qcdpcvi any ideas? just add top:-1px , overwrite existing top: 1px .glyphicon selector .glyphicon { position: relative; top: 1px; <<<this causing problem display: inline-block; font-family: "glyphicons halflings"; font-style: normal; font-weight: 400; line

linux - Bash Script Positioning -

i'm new bash scripting, don't know much. want open on 100k xclocks , scatter them randomly across screen (it's fun, not malicious intent). have xclock commands inserted, open in 1 spot on screen. so, how 100k clocks randomly disperse screen? code far (really basic): #! \bin\bash xclock & this goes on 100k lines. this use xrandr or xdpyinfo detect screen resolution: #!/bin/bash if [[ -x $(which xrandr) ]]; res=$(xrandr | awk '/\*/ {print $1}') else if [[ -x $(which xdpyinfo) ]]; res=$(xdpyinfo | awk '/dimensions/ {print $2}') else echo "can not detect screen resolution" exit 1 fi fi x=${res%x*}; y=${res#*x} in {1..100}; xclock -geometry 120x120+$(($random%$x-120))+$(($random%$y-120)) & done

python - Nested ifelse alternative in pandas -

suppose we've got test dataset: value group 123 1 120 1 na 1 130 1 23 2 22 2 24 2 na 2 now want replace missing values group -wise median values. in r can using nested ifelse call. first.med <- median(test[test$group == 1, ]$value, na.rm = t) second.med <- median(test[test$group == 2, ]$value, na.rm = t) test$value <- ifelse(is.na(test$value) & test$group == 1, first.med ifelse(is.na(test$value) & test$group == 2, second.med, test$value)) i though applying numpy.where function or pandas.dataframe.set.map method showcased here , both techniques not support nesting. can think of list comprehension this, wish know if there alternative in realm of numpy/pandas. thank in advance. in case, can use groupby fill group median: in [16]: df.groupby('group')['value'].apply(lambda x: x.fillna(x.median())) out[16]: 0 123 1 120 2 123 3 130 4 23 5 22 6 24

PHP Sleep and mysql not getting along -

i have program works in run-once mode, fails when run in background do-while-true loop includes sleep(60) delay. if ($debug || $run_once) {check_mail($domain_mail_box, $mailboxes); exit;} else { { check_mail($domain_mail_box, $mailboxes); # sleep 60; # exec('sleep 60'); # wait minute after completing each run $i=0; { $i++; } while ($i < 3000000001); } while (true); } exit(0); actually, 3 of these attempts work fail. it's odd because have running beautifully on server/system. (both dedicated centos boxes.) the failure mysql failure. part of script, writes log. run-once , first runs delay write mysql_stat($link): 0: uptime: 605079 / 1: threads: 2 / 2: questions: 17458285 / 3: slow queries: 0 / 4: opens: 1287520 / 5: flush tables: 1 / 6: open tables: 1024 / 7: queries per second avg: 28.852 / but once insert delay, dreaded: 0: mysql server has gone away / mysql_stat. any ideas what's going

What is wrong with my addition of polynomials c code? -

i wrote c program should add 2 polynomials. wrote program in kali linux 2.0 os. when execute program don't required output. instead this- polynomial 1 how many no. terms want enter? 1 enter coefficient term 1: 2 enter exponent term 1: 3 polynomial 2 how many no. terms want enter? 1 enter coefficient term 1: 2 enter exponent term 1: 3 polynomial 1= polynomial 2= sum of 2 polynomials the program code given below- #include<stdio.h> #include<stdlib.h> typedef struct node { int exp,coeff; struct node *next; }poly; poly *heada,*headb,*headc; poly *lasta,*lastb,*lastc; void insert(poly*,poly*,poly *); void input(poly *,poly *); void display(poly *); void insert(poly *new,poly *head,poly *last) { poly *p,*q; if(head==null&&last==null) //setting start { head=last=new; return; } p=head; q=null; while(new->exp<p->exp) { q=p; p=p->next; } if(p->exp==new->

Bootstrap 3 pull and push issue -

i have problem pull , push, think it's because of combination offset? want do: (i can't post image because of lack of reputation...) http://i.stack.imgur.com/ypokv.png after first problems , searching i've found out better approach mobile first (i know) i've changed layout accordingly. bigger browsers need second , third cells switch position. so first cell on bigger screens has 2 offset , size of 4. other 2 should have size of 4 , after switch, 1 on next line should have offset of 2. i've tried number combinations think of not working. please help:/ 1 of solutions: <div class="col-xs-12 col-md-offset-2 col-md-4"></div> <div class="col-xs-12 col-md-push-6 col-md-4"></div> <div class="col-xs-12 col-md-4 col-md-pull-6"></div> i believe following achieves require using nested grid row: <div class="row"> <div class="col-xs-12 col-md-offset-2 col-md-4"

sql server - Powershell to SQL database -

my initial post how pass data directly pipeline (remote) sql database. writing csv database did not work amount of data working - on 2 million files querying. below final script came with. scans file server, filters in pipeline, creates psobject file attributes , stores attributes of object variables. variables passed sql query string. it's bit cumbersome, not see way file attributes read directly query string. i needed way run remotely. with of invoke-sqlcmd2 can write , read data sql server database. more info here . i'm not sure think cmdlet not accept pipeline input. best bet transform code foreach structure , invoke cmdlet invoke-sqlcmd2 every time want insert or else. something this: $csv = get-content -path "d:\fs01-user-files\$name.csv" foreach ($line in $csv) { invoke-sqlcmd2 @sqlparams -query " insert $sqltable (filename, data) values('$line.filename', '$($line.data)')" }

command line - Create an alias for the word "git" -

i see can add aliases in git configs aa = add --all ... still need type git before aa there way create alias word "git"? gaa git add --all ? for zsh , add following ~/.zshrc file (or ~/.bashrc bash ): alias gaa='git add --all'

c# - Add cleartext bytes to the beginning of a CryptoStream? -

i have interface defined so: public interface iencryptionservice { stream encrypt(stream cleartext); stream decrypt(stream encrypted); } i implementing interface aescryptoserviceprovider , there's problem here. iv (initialization vector) not returned on interface... encrypting work fine, long have no desire decrypt ever again. decrypt() method has no chance @ of working. what want include iv in cleartext @ beginning of stream, add cryptostream it, encrypted data "header" strip off , use decrypting stream. so... how that? can create cryptostream easy enough, looks encrypt iv, kinda defeats purpose. load cryptostream memory, prepend iv, , stream out memorystream, inefficient, , die on large streams. what good, secure, scalable practice this? here had in mind. see how write iv memorystream , follow crypto? when want decrypt, pull iv off first in same way. sorry, been long time. 1 working. should scale if don't cast ms toarray();

angularjs - how to force angular to re-bind/update even there is no change in the model -

ok -- might thinking why want trying render html using ng-html-bind (in haml): #my-visualization-panel{'ng-bind-html' => 'htmlsource'} the htmlsource has html renders visualization using c3.js visualization library. htmlsource looks this <script> var my_data = localstorage.getitem('my_data'); c3.generate({ data: { columns: my_data } }); </script> so problem update visualization re-setting localstorage['my_data'] . however, while data my_data refers might change, actual htmlsource not, view fails update. is there way force view update if model, ostensibly, not? i recommend changing html anyway. example <script> var my_data = localstorage.getitem('my_data');// 2482486284968248968 (hash of my_data, guid, or serial number) c3.generate({ data: { columns: my_data } }); </script> this allow script operate expect, directly, without having big sweeping updates o

ios - Objective-C: NSPredicate Check Two Arrays -

right now, have working app (similar whatsapp) users can live search using nstextfield add users group chat. using nspredicate, search through array (searchablecontacts) find available contacts on app, , matches output uitableview, so: - (void)textfielddidchange :(uitextfield *)thetextfield { [filteredarray removeallobjects]; nsmutablearray *partpredicates = [nsmutablearray arraywithcapacity:2]; nspredicate *currentpartpredicate1 = [nspredicate predicatewithformat:@"firstname contains[cd] %@", self.searchfield.text]; nspredicate *currentpartpredicate2 = [nspredicate predicatewithformat:@"lastname contains[cd] %@", self.searchfield.text]; [partpredicates addobject:currentpartpredicate1]; [partpredicates addobject:currentpartpredicate2]; nspredicate *fullpredicate = [nscompoundpredicate orpredicatewithsubpredicates:partpredicates]; filteredarray = [[self.searchablecontacts filteredarrayusingpredicate:fullpredicate] mutablecopy]; [self.searchablemembers re

How do I see if a button with an imageIcon loaded has been pressed in java? -

i have program have settings button. button has image icon shows image. tips on how can preform action when pressed. here code jbutton imagebutton = new jbutton(new imageicon("/users/sam/programming/files/gears.png")); it works fine. when want use else if(ae.getactioncommand().equals(imagebutton)){//dostuff} it doesnt work. action preformed method works, here is public void actionperformed(actionevent ae) {} your actionlisterner not responding because getactioncommand() should return string. in case should name of jbutton. else if(ae.getactioncommand().equals(imagebutton.gettext())){//dostuff} changing imagebutton.gettext() should solve problem. if not sure, manually set actioncommand through setactioncommand() , use same string verify getactioncommand in .equals() method.

c# - Determine what application/location the clipboard is pasting to? -

i have c# application needs determine clipboard pasting before in order disallow paste applications not allowed/supported. security application extension companies able enable when employees attempting copy , paste outside of confidential, internal documents. is possible? i've done thorough search , looked through following link, didn't find useful. https://msdn.microsoft.com/en-us/library/windows/desktop/ff468802(v=vs.85).aspx edit: can determine if application being copied 1 of ours, enabled in case. copy/paste functionality through rest of system work does.

python - Selenium unique sessions -

i want use selenium on website. have open website multiple times simultaneously each instance having unique session. can open multiple windows can't seem create unique session each one. i did research , found selenium grid , online platforms can run kinds of browsers test application seems more complicated has be. so how can use selenium visit website multiple times simultaneously each 1 having unique session? kind regards, martin i once answered similar question . selenium runs private mode default. every time start driver via selenium creates brand new anonymous profile/session. this means can instantiate multiple drivers, open multiple new windows , each of should not influenced others. for instance code: from selenium import webdriver import time driver1 = webdriver.firefox() driver1.get("http://www.python.org") driver2 = webdriver.firefox() driver2.get("http://www.python.org") time.sleep( 20 ) will open 2 windows using differ

asp.net - SignalR not functioning on server -

i have windows service made through visual studio in c#. uses signalr connect sql database , receive notifications. however, when deploy service onto server (windows server 2008r2), doesn't function. server server hosting sql server too. this self-hosted signalr service. not using iis or of run. packaged simple windows service. therefore, doesn't have issues typical mvc, iis hosted apps (such /signalr/hubs pathing, web.config etc.) on development computer, use wan ip of sql server connect database. when run it, it's supposed , fires off notification everytime server changes. on server itself, service installs fine, doesn't fire off notifications. left ip wan ip developmental services , planning change localhost, etc. once works not. for now, left service running on development computer, , it's working great. i'd prefer on server though, since that's computer online. any hints or ideas on why works on development computer not server? thanks!

Speeding up Internet Explorer -

i have read how speed internet explorer here i want know maximum value can set in maximum connections per server speeding internet explorer.whether setting value 100 lot automation? (not normal browsing though) of course set value desire between 2 , 128 if automation, should consider more suitable tools. and setting high value connection refused server depending on configuration , make testing experience different normal user.

Can't republish an unpublished page on drupal site -

i'm administrator on drupal site... i accidentally unpublished home page, cannot find means republish it. from content menu, can select piece of content, options make sticky / unsticky , delete or unpublish... though it's unpublished. help, please there many ways set node published state if know nid, node id. here couple: you can browse http://www.example.com/node/[nid]/edit , tick published checkbox under publishing options fieldset. you can change via database query: update node set node.status = 1 nid = [nid];

html - javascript onclick function not working? -

i trying onclick event when light bulb image clicked goes light bulb off light bulb on image , vice versa. using external javascript file. when click on image nothing happens. i cant figure out whats wrong, my html portion: <head> <link rel="stylesheet" href="css/program-01.css" /> <script type="text/javascript" src="javascript/program-01.js"></script> <title> <h1>program-01</h1> </title> </head> <body> <div id="lightoff"> <img src="images/light_off.png" id="light_off" alt="" onclick="lightbulbfunction()" /> </div> </body> my js file function: function lightbulb() { var image_change = document.getelementbyid("light_off"); if (image_change.src == "images/light_off.png") { image_change = "images/light_on.png"; }

Haskell how to resolve cabal error: Missing dependencies on foreign libraries? -

while trying cabal install gd encountered following error configuring gd-3000.7.3... cabal: missing dependencies on foreign libraries: * missing (or bad) header file: gd.h * missing c libraries: gd, png, jpeg problem can solved installing system packages provide these libraries (you may need "-dev" versions). ... it says missing c libraries: gd, png, jpeg i guess right if interpret as: missing libraries some unspecified version of: libgd , libpng , libjpeg , -dev versions . we see here cabal didn't report versions of these libraries, , difficult figure out version of foreign libraries require. i read gd.cabal hackage site there line says: extra-libraries: gd, png, z, jpeg, m, fontconfig, freetype, expat but doesn't versions of foreign libraries. is there location such information available (but cabal ignores or don't know correct switch)? there cabal switch need turn on this? or case cabal @ mercy of developer of package, may or may n

sql - How to get the sales and collection amount values from a query in Oracle -

hello please have @ query below , see problem oracle query.i have used 2 tables named bill_mas , remit_bill .would appreciate much. query : select x.sc_cd, x.rm_id, x.fm_id, x.bill_no, x.deli_dt, x.sale_net, y.rmt, y.coll ( select sc_cd, rm_id, fm_id, bill_no, deli_dt, sum(sale_net) sale_net bill_mas deli_dt between '01-feb-15' , '28-feb-15' , bill_no = '754105' , sc_cd = '09' , sale_cd not in ('rs','in','ex') having round(sum(sale_net),2) <= 1000 group sc_cd, rm_id, fm_id, bill_no, deli_dt ) x, ( select p.sc_cd, max(rmt_dt) rmt, sum(p.coll_amt) coll remit_bill p p.bill_no = '754105' , p.rmt_dt = ( select max(rmt_dt) remit_bill p2 p2.bill_no = p.bill_no , sc_cd = '09' ) group p.sc_cd, p.rmt_dt,p.coll_amt ) y x.bill_no = y.bill_no , x.sc_cd = y.sc_cd order 1 error message : where x.bill_no=y.bill_no

python - Reducing the time complexity of this Program -

question - write function called answer(document, searchterms) returns shortest snippet of document, containing of given search terms. search terms can appear in order. inputs: (string) document = "many google employees can program" (string list) searchterms = ["google", "program"] output: (string) "google employees can program" inputs: (string) document = "a b c d a" (string list) searchterms = ["a", "c", "d"] output: (string) "c d a" my program below giving correct answer time complexity high since doing cartesian product. if input high not able clear test cases. not able reduce complexity of program, , appreciated. thanks import itertools import sys def answer(document, searchterms): min = sys.maxint matchedstring = "" stringlist = document.split(" ") d = dict() j in range(len(searchterms)): in range(len(stringlist)):

java - Should I be using static or instance methods? -

i'm confused concept of static vs instance methods. have created bmr calculator. i've seperated gui calculations using different classes. public class calculations { /** * if user input correct, method calculate bmr value of user given input , measurement choices. * * @param userage, userheight, userweight * @return bmr value string */ public static int calcbmr(int age, string gender, double height, double weight) { // body of calculations - different formulas used depending on gender. conversions kg , cm done earlier no conversions needed here. if (gender.equals("m")) { // uses male bmr formula if gendermale radiobutton selected return (int) (math.round((10 * weight) + (6.25 * height) - (5 * age) + 5)); // miffin st-jeor formula, calculations done in cm/kg } else { // else gender.equals("f") - there 2 options gender, m or f. return (int) (math.round((10 * weight) + (6.25 * height) - (5 * age) - 161)); } } /**

ios - systemLayoutSizeFittingSize not returning size.. height is always 0 -

i have custom nib have set utilize uitableview header. in nib have 3 labels, in first 2 changes height dynamically. can see height in uiview being changed , rendering fine, trying utilize systemlayoutsizefittingsize actual height of custom uiview uitableviewcell doesn't overlap. however, every time try utilize systemlayoutsizefittingsize view's height, keep getting 0. have made call in pretty viewload's methods, , have never seen height being changed. know might missing? setting nib's constraints within nib file.

c++ - SetSecurityInfo error = 6 -

i new c++ programming on windows kernel. last few hours been trying figure out how works. error setsecurityinfo(hnewdesktop) failed error = 6. passes first loop unable setsecurityinfo new desktop. hdesk dnew; bool closedesk; handle happ; hdesk hthreaddt = getthreaddesktop(getcurrentthreadid()); //make new desktop dnew = createdesktop(_t("test"), 0, 0, 0, desktop_switchdesktop| desktop_writeobjects| desktop_readobjects| desktop_enumerate| desktop_createwindow| desktop_createmenu, null); if(!dnew) { _tprintf(_t("failed create new desktop !!\n\n")); return 0; } pacl psacl; psecurity_descriptor psecuritydescriptor; dword dwresult; dwresult = getsecurityinfo(hthreaddt, se_w

javascript - Appending text to text area on click? -

javascript (jquery): $("#content-styling-bar td").click(function() { if ($(this).text() == "bold ") { $("#description").append("<b></b>"); } }); html: <table id="content-styling-bar"> <tr> <td> bold </td> <td> italic </td> <td> underline </td> <td> main heading </td> <td> sub heading </td> <td> link </td> <td> image </td> </tr> </table> i have code. code site's blog administration. idea when click on bold table cell, jquery gets text contained in table cell, , script determines tag-set append textarea. i

angularjs - Angular JS Code is not working in App Webpart created in SharePoint 2013 -

i have created app web part in app created using visual studio 2013. i writing basic code in angular js. pease find below code. <div ng-app="myapp"> <b>welcome angularjs world in sharepoint 2013!</b> <div ng-controller="mycontroller" class="ng-scope"> <p>input in input box:</p> <p>name: <input type="text" ng-model="name"></p> <p>{{name}}</p> </div> </div> the above code not working whereas same code working fine when not using app web part. also, giving correct reference angular js. placing reference code in head section of page. place below codes in web page <script type="text/javascript"> var app = angular.module('myapp', []); app.controller('mycontroller', function($scope){ }); </script>

ado.net - SQL Server Exception. Error No: 64 -

i getting below error when executing executereader() method. in .net application when trying execute query throwing exception transport-level error has occurred when receiving results server. (provider: tcp provider, error: 0 - specified network name no longer available). sql error no: 64 this happening 1 query other queries works fine. there no issue query have tried executing query in query analyzer , same executes fine; result set small , datatype, parameters fine. exception is: a transport-level error has occurred when receiving results server. (provider: tcp provider, error: 0 - specified network name no longer available.) please me. you can try set commandtimeout property of command object 0 wait until exception thrown. can try reboot machine or may try restart iis server.