Posts

Braintree js/php full working example working like Paypal Express Checkout? -

i'm trying understand if it's convenient client switch paypal express checkout braintree, find latter way complicated , hard understand (terrible docs, reference good). documentation lacks complete working examples, pages needed can change api credentials , works. fundamental system/api logic , workflow. i have checkout system customer's data , basket_id, form redirect customer paypal passing these data, , once customer completes payment paypal calls url on server sending data sent plus transaction id, , way mark basket_id/order paid , assign transaction. , no sensitive payment data typed or pass through our server/network. how on braintree js+php? full , complete sandbox working example can change credentials , have working code understand logics? faster reading quite confusing documentation. thanks!

Java -version shows old version of java -

i have jdk 1.7_51 , jre 1.7.79 update. java_home set c:\program files\java\jdk1.7.0_51 , jre_home set c:\program files\java\jre7(update 79) , path points jdk 1.7_51/bin. why java -version doesn't point java 7 79 update? points java 7 update 51. should ideally point jre update 79. when type in command prompt java searches path env variable , first result hits - returns. since pointed path jdk 1.7_51 - that's you're getting. java_home environment variable defined agreed protocol applications uses java. not apply when type in command prompt java -version (or java + other switch).

import project from github into android studio says it's not gradle based project -

as title says, i've imported project i've been working on github android studio. has build.gradle files, , settings.gradle. why it's not gradle based file? am missing needed when pulled github? followed android studio import github option. else have do...? when try gradle sync, tells me project isn't gradle based.

javascript - Chrome extension that modifies response headers -

i working on extension modify response headers. did extension , think modifies header value, problem modified header value not appear in inspect element window (network tab). the headers suppose change set-cookie headers , after code changes value can see new value cookie viewer extension (editthiscookie), behavior of content stays if cookie not modified (content modifies based on cookie value). i attach code below of script , manifest file. manifest.json { "manifest_version": 2, "name": "getting started example", "description": "getting started example", "version": "1.0", "browser_action": { "default_icon": "assets/logo.png", "default_popup": "index.html" }, "background": { "scripts": ["main.js"] }, "permissions": [ "activetab", "webrequest", "we...

html - DIV wrapper/centering not working cross browser -

i'm putting 2 divs next each other inside of wrapper. works designed on chrome, looks horrific on both ie , ff. don't know else try i've tried clear:both; in every place can think of , still looks miserable. please help! thank you! the webpage is: http://www.thorelectriclongboards.com/contact.php i not know how of needed, here code webpage: <html> <head> <title>thor electric longboards</title> <link href='http://fonts.googleapis.com/css?family=roboto+condensed' rel='stylesheet' type='text/css'> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon"> <link rel="icon" href="img/favicon.ico" type="image/x-icon"> </head> <style> .title { font-weight...

linux - Creating named pipes in Java -

i experimenting creating named pipes using java. using linux. however, running problem writing pipe hangs. file fifo = fifocreator.createfifopipe("fifo"); string[] command = new string[] {"cat", fifo.getabsolutepath()}; process = runtime.getruntime().exec(command); filewriter fw = new filewriter(fifo.getabsolutefile()); bufferedwriter bw = new bufferedwriter(fw); bw.write(boxstring); //hangs here bw.close(); process.waitfor(); fifocreator.removefifopipe(fifo.tostring()); fifocreator: @override public file createfifopipe(string fifoname) throws ioexception, interruptedexception { path fifopath = propertiesmanager.gettmpfilepath(fifoname); process process = null; string[] command = new string[] {"mkfifo", fifopath.tostring()}; process = runtime.getruntime().exec(command); process.waitfor(); return new file(fifopath.tostring()); } @override public file getfifopipe(string fifoname) { p...

visual studio - Update a nuget package for all projects from a private source -

i need update package package01 , lives in private source , multiple projects in solution version 1.0.1 newest version 1.1.0. if doing update package manager ui, step needs repeated many times. is possible in 1 step? suggestion. you can update package projects in solution package manager ui or package manager console. using manage packages dialog right click solution , select manage packages solution. update package. able update multiple projects in 1 step. you can similar thing package manager console. command below update jquery latest version projects in solution. update-package jquery there more documentation on update-command on nuget web site.