Posts

c# - SSH.NET getting entire output from a shellstream -

ive encountered quite strange phenomenon; when using client.runcommand() function, entire output switch, when using own implementation: sshclient cl = new sshclient(ip, username, password); cl.connect(); shell = cl.createshellstream("tail", 80, 24,800, 600, 1024); streamwriter wr = new streamwriter(shell); streamreader rd = new streamreader(shell); wr.autoflush = true; wr.writeline("show int status"); string rep = shell.expect("switch_wan#", new timespan(0,0,3)); messagebox.show(rep, "output"); i partial output, , prompt saying --more-- how can entire output switch? an example partial output: show int status port name status vlan duplex speed type fa0/1 team7 connected 97 a-full a-100 10/100basetx fa0/2 team7 connected 97 a-full a-100 10/100basetx fa0/3 team7 connected 97 a-full a-100 10/100basetx fa0/4 team7 connected 97 a-full a-100 10/100basetx fa0/5 ...

oracle - Effect of adding new columns to existing table -

in project there new requirement, in i've add 2 new columns existing table. how can analysis effect of adding 2 new columns table? please note: find dependencies using all_dependencies view , have used all_source find few more information. could please guide me right approach follow in project? edit1: question attracted negative points. improve according suggestion. adding column not impact view/triggers/procedures, if developers have used proper column names in them. if used select * your_table in of view/procedure/triggers, might in trouble. you on right path. check dba_source properly. table name schema1.table1 , search in all_source using where upper(text) '%table1%' also if there dblink in other databases database, might need take care of too.

linux - how can i find my public facing ip from python program not proxy -

i want find public ip adress python program. so far site http://www.whatismyip.com/ , http://whatismyip.org/ which gives ip without proxy rest give proxy. now .org site using image , first 1 writes ip across many span elements can't grab urllib. any other idea or site can ip i use http://httpbin.org/ : import requests ip = requests.get('http://httpbin.org/ip').json()['origin']

ruby on rails - Not all member routes get an id in the querystring -

some member routes specific names not added expected :id inside query string. these routes: resources :tests member :foo end end resources :contacts member :foo end end resource :tasks member :foo end end resource :fruits member :foo end end resource :cars member :foo end end resources :appointments member :foo end end produces this: foo_test /tests/:id/foo(.:format) tests#foo foo_contact /contacts/:id/foo(.:format) contacts#foo foo_tasks /tasks/foo(.:format) tasks#foo foo_fruits /fruits/foo(.:format) fruits#foo foo_cars /cars/foo(.:format) cars#foo foo_appointment /appointments/:id/foo(.:format) appointments#foo tasks, fruits , cars not have id. why that? your problem in resource (singular) vs r...

objective c - iOS whose view is not in the window hierarchy -

while moving passcode controller otp viewcontroller, iam getting following error in console: warning: attempt present < otpcontroller: 0x1e56e0a0 > on < passcodecontroller: 0x1ec3e000> view not in window hierarchy! this code i'm using change between views: uistoryboard *storyboard = [uistoryboard storyboardwithname:@"main" bundle:nil]; otpviewcontroller *lotpviewcontroller = [storyboard instantiateviewcontrollerwithidentifier:@"otpviewcontroller"]; lotpviewcontroller.comingfromreg = true; [self presentviewcontroller:lotpviewcontroller animated:yes completion:nil]; i presenting passcode controller registrationviewcontroller: uistoryboard* storyboard = [uistoryboard storyboardwithname:@"main" bundle:nil]; passcodeviewcontroller *passvc = [storyboard instantiateviewcontrollerwithidentifier:@"passcodeviewcontroller"]; [self presentviewcontroller:passvc animated:ye...

How can I block all IP's, but allow 1 server ip in .htaccess -

i'm trying deny requests sent website, allow 2 ip-addresses. i've learned should done .htaccess. basically there 3 modules: website server, form-handling server , own network ip. let's appoint following ip addresses servers: website server: 1.1.1.1 form-handling server: 2.2.2.2 own network: 3.3.3.3 the .htaccess placed in public_html directory of form-handling server (2.2.2.2). now, works: order deny,allow deny allow 3.3.3.3 the form-handling server accessible own browser, form post request sent website blocked. (which good, in case) but when edit .htaccess following, form post request still blocked: order deny,allow deny allow 1.1.1.1 allow 3.3.3.3 to make sure .htaccess functional tried: order deny,allow deny allow 1.1.1.1 now cannot reach form-handling server. proves .htaccess 'running'. (also, website server cannot access server tho..) how can achieve website server has access form-handling server (and preferab...

scala - how to create update slick multiple row? -

i have code !! code insert multiple row.. def insertdocsetting(data: list[modeldocumentsetting]) = documentsettingtable ++= data and update multiple row!! def updatedocsetting(data: seq[modeldocumentsetting])= { (a <- data){ documentsettingtable.filter(_.doc_proc_list_id === a.doc_proc_list_id).update(a) } } but ,i have problem result.. how create slick update multiple row you need map result of filter tuple before can update it. can check how in documentation . like: def updatedocsetting(data: seq[modeldocumentsetting])= { (a <- data){ documentsettingtable .filter(_.doc_proc_list_id === a.doc_proc_list_id) .map(doc => (doc.element1, doc.element2)) .update(("new element1", "new element2")) } }