Posts

Paypal integration with asp.net -

i have created paypal account on paypal site testing(buyer , seller account). developed site , created page redirects me on paypal site buy product. login required there buyer. can login there test account? mypaypalid@live.com, (as given @live id , returned me paypal @live.com) me plz posible... you'll need set tests accounts through https://developer.paypal.com/ (signup required, separate live paypal account). in here, create 1 buyer/seller account. change "action" point https://www.sandbox.paypal.com/cgi-bin/webscr , opposed https://www.paypal.com/cgi-bin/webscr don't forget modify 'business' of button match sandbox seller account created.

java - My program isn't reading the file as it's supposed to be -

i'm trying make int value, goes counter every second, when close program down, save value .txt file, , then, should, when start program again, read int value file, , continue value again, however, saving correctly, makes file, when startup program again, start @ 1 again, , not @ value saved in .txt file. the int value: public int points; the getter , setter, located in mrstan.class public int getpoints(){ return points; } public void setpoints( int points ){ this.points = points; } how i'm reading file: mrstanreadfile r = new mrstanreadfile(); r.openfile(); r.readfile(); r.closefile(); my readfile class: public class mrstanreadfile { private scanner x; mrstan = new mrstan(); public void openfile(){ try{ x = new scanner(new file("d:/mrstan/text.txt")); }catch(exception ex){ system.out.println("could not find text.txt"); } } public void readfile(){ while(x.hasnext()){ ...

oracle - Can you using joins with direct path inserts? -

i have tried find examples simple single clause. here situation. have bunch of legacy data transferred database. have "good" tables in same database. need transfer (data-conversion) data legacy tables thew tables. because different set of tables data-conversion requires complex joins put old data new tables correctly. so, old tables old data. new tables must have old data requires lots of joins old data new tables correctly. can use direct path lots of joins this? insert select (lots of joins) direct path apply tables on same database (transfer between tables)? loading tables text file? thank you. the query in select can complex you'd direct-path insert. direct-path refers destination table. has nothing way data read or processed. if you're doing direct-path insert, you're asking oracle insert new data above high water mark of table bypass normal code reuses space in existing blocks new rows inserted. has block other inserts since ...

c++ - How would one get a UTF-8/Unicode string from GetOpenFileName? -

i'm developing application in mingw/c++ uses windows' common dialogs. need has arisen collect file name might have non-ascii characters in it. there flag or option retrieving file name in unicode, or preferably utf-8? call getopenfilenamew. can without converting entire app unicode may expedient solution. windows api comes in 2 flavours, ansi , unicode. former has functions suffix. latter have w suffix. using former.

iphone - Comparing two arrays for equivilant objects with Kiwi (Sentesting) Kit -

i want compare 2 arrays equivalent objects, 1 property inside class , other in test method. i cannot compare directly since objects allocated seperately , have different memory locations. to around implemented description on object list out properties in string: (vel cgpoint) - (nsstring *)description { return [nsstring stringwithformat:@"vel:%.5f%.5f",vel.x,vel.y]; } i test with: nslog(@"movearray description: %@",[movearray description]); nslog(@"currentmoves description: %@", [p.currentmoves description]); [[thevalue([movearray description]) should] equal:thevalue([p.currentmoves description])]; my nslog's yield: project[13083:207] movearray description: ( "vel:0.38723-0.92198" ) project[13083:207] currentmoves description: ( "vel:0.38723-0.92198" ) but test fails: /projectpath/objecttest.m:37: error: -[objecttest example] : 'object should pass test' [failed], expected subject equal <9086b104...

symfony1 - Symfony - Redirect to action with form values filled in -

how can redirect action, , form fields filled in on new action? i have action , want call redirect() like: $this->redirect('foo/search?search[last_name]='.$this->form->getvalue('last_name')); which should redirect search action, , form in action should last_name parameter filled in. action has code so: public function executesearch(sfwebrequest $request) { $this->form = new searchform(); $submission = $request->getparameter($this->form->getname()); ...do stuff $submission... the searchform has name format 'search[%s]'. nothing i've tried parameter redirect() has worked. search[] parameters messed in way , not populate form. i try symfony generate url based on route , parameters: @search = route search action in routing.yml $parameters = array of parameters want pass $url = $this->generateurl('search', $parameters); $this->redirect($url); the array of parameters should take following f...

javascript - prototype Event Observer not working -

please check doing here false? event.observe(form['postalcode'], 'blur', function(form) {return updatecityname(form) }(form)); i getting javascript error "handle undefined" give element id of "postalcode", makes lot easier. $('postalcode').observe('blur', function(e) { var element = e.element() var myform = element.up('form') return updatecityname(myform) });