Posts

How would you go about writing a custom script that grabs the Adobe or Google Analytics image request? -

if wanted build scraper pings each url on site , stores adobe (or google) image request, how go this? i.e. want grabs parameters in url posted adobe in csv or similar. i'm familiar how build simple web scrapers, how grab url see in example fiddler contains variables being sent analytics solution? if could run script lists urls corresponding tracking events being fired , make qaing more manageable. you should able query dom image object created tag request. more familiar ibm digital analytics (coremetrics) platform , can find tag requests using accessing following array document.cmtagctl.cti in web console on coremetrics tagged page. used method when building selenium webdriver test case , wanted test analytics tags. i don't have equivalent adobe or ga @ moment since depends in library implementation trying same ga. cheers, jamie

does JPA use JavaBeans BeanInfo information? -

according jpa 2.1 spec: it required entity class follow method signature conventions javabeans read/write properties (as defined javabeans introspector class) persistent properties when property access used. in case, every persistent property property of type t of entity, there getter method, getproperty , , setter method setproperty . does imply methods must always named getproperty , setproperty (per design pattern "convention" in §8.3.1 of javabeans spec 1.0.1, "[i]f don't find explicit beaninfo on class"); or beaninfo class provided direct jpa implementation different method (per full description of introspector class in spec)? although i'm curious how hibernate or other jpa implementations implement this, i'm instead asking implementation jpa spec requires. the methods must named per java beans contract ... getxxx (or isxxx), setxxx. there no beaninfo hook used jpa implementation know of

How to set a Paypal Sandbox test account address -

trying first tests of new paypal standard buttons test account. after noticing taxes not being charged correctly added ontario taxes sandbox business account profile , bingo, ontario sales tax got charged. see in test account profile used transaction set province of residence... how change being quebec instance, quebec sales tax gets charged? thanks ok figured out myself. basically need log sandbox 1 of test accounts , change address like. same goes details on credit cards. 1- first logon developer site: https://developer.paypal.com/developer 2- go dashboard 3- click on accounts under sandbox on left (make sure have set password on 1 want use below....) 4- click on enter sandbox link in middle of right pane. 5- click on second logout (not 1 on top, log out of paypal altogether!) logout business sandbox account 6- log sandbox using test client account 7- play address like. changing account address province of quebec , entering transaction using accou...

android app root or system privileges -

i trying build android app can access /data dir (for example) without parsing output of command ran on shell after doing su. i mean, after researching lot, , looking in code of root explorers, when need root perms parsing output of command after doing su. what want doing like: file file = new file("/data"); file[] files = file.listfiles();// list array of file (int = 0; < files.length; i++) { file fileitem = files[i]; system.out.println("file name: "+fileitem.getname().tostring()) { } for achieving think application process must running root begining of execution. i tried run app shell after doing su way: $su #am start -n com.example.test/.ui.activity but same after looking @ output of ps command see application running user "u0_a110" , not root. also tried parameter --user 0 , --user 1000, same results... think dalvik virtual machine drops privileges parent process. i tried convert app system app moving /system/priv-app sa...

How do I programmatically locate my Google Drive folder in OSX? -

similar question here , osx. how can programmatically detect google drive path on osx. couldn't find sync_config.db in windows version. ok, db file in osx located under: ~/library/application support/google/drive/user_default/sync_config.db

ios - Scroll to scrollview page while scrollview is being resized -

i've got scrollview paging disabled. has number of subviews. each of has width constraint , constrained each other , scrollview, when subviews grow, scrollview content area grows. when subview tapped, run following code: var page = subview.tag scrollviewsubviewwidthconstraint in scrollviewsubviewwidthconstraints { //this results in subview being larger scrollviewsubviewwidthconstraint.constant = self.view.frame.width } uiview.animatewithduration(0.35) { self.view.layoutifneeded() } scrollview.pagingenabled = false scrollview.setcontentoffset(cgpoint(x: self.view.frame.width * cgfloat(page), y: 0), animated: true) this code intended to: resize subviews width of 'page' enable paging on scrollview scroll correct page smoothly unfortunately not doesn't scroll correct page, seemingly because it's trying calculate amount scroll while constraints being updated, in unappealing fashion animation wise. if change code (cutting out animation) ...

regex - Groups using regular expression in Bash on windows -

here trying do: message=“time-1 time-2 test" echo $message | sed -e 's/(^([a-z]{2,8}-[0-9]{1,4}).*[[:space:]]+[[:alnum:]]+$).*$/\2/‘ gives: time-1 should give: time-1 time-2 i need working on windows, linux , macos (as part of git hook), cannot use “=~" can please correct wrong at. i believe ask: $ echo "$message" | sed -e 's/(^([a-z]{2,8}-[0-9]{1,4}[[:space:]]+)*).*/\1/' time-1 time-2