Posts

Featured post

Paypal Website Payments Standard -

i'm having trouble finding out how set up. documentation horrendous @ best. called paypal , told them need: have own custom shopping cart client doesn't want pay monthly fee i told use website payments standard send cart contents , user can choose sign in/pay or pay cc without account. every link on documentation sends me silly html button creator. don't need hand-holding through coding, need know can find proper documentation. don't want paypal buttons send customers paypal cart page every time add something. https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_id=developer/e_howto_html_cart_upload this looking for. took 3+ hours find, congrats paypal. you've stolen money in past, you've stolen time. helps else looking same thing.

winapi - How to refresh Windows Explorer -

Image
a network volume's name can changed. changed name spinal disk to change network name, do write new name in registry. attach network volume using functions definedosdevicew. in timing, windows explorer read registry in guessing. shchangenotify(shcne_driveadd, shcnf_path, root, null); // sure. sendmessagetimeout(hwnd_broadcast, wm_devicechange, message, (lparam)(&dbv), - smto_abortifhung, 200, &dwresult); // sure again! it works, doesn't work though use shchangenotify , wm_devicechange sure. sometimes, new name not applied in windows explorer. if terminate explorer , re-execute, name applied. i'm finding interface having windows explorer refreshed.(is correct syntax? sorry, can't express sentence well.) there proper function? explorer should re-read registry , refreshed. unfortunately, explorer can't refresh every time told so. because way many apps behave badly, , use shchangenotify() shcne_allevents. imagine if exp

python - Sqlalchemy type for very long text for articles -

what type should define in sqlalchemy definition text article or blog entry? i'm using mysql. column('article_text', ???) column('article_text', sqlalchemy.unicodetext()) that should work on supported database, not mysql.

iphone - Custom behavior when "back" button in nav bar pressed -

i know can add custom "back" button uinavigationbar, doing removes existing button tapered left side, described in what happens when button pressed in navigationbar is there way keep existing behavior , of button, informed when pressed? basically, want app play sound whenever button touched. can uitabbarcontroller via delegate, delegate uinavgationbarcontroller has no such functionality. the following possibilities view controller disappear. clicking on button (other backbarbuttonitem ). clicking on backbarbuttonitem either case viewwilldisappear: method called. keep boolean flag . lets name isanybuttonclicked . , set isanybuttonclicked = yes whenever button clicked. , override viewwilldisappear: method, , play sound if no button clicked(ie., isanybuttonclicked == no ). viewwilldisappear: like, - (void)viewwilldisappear:(bool)animated { [super viewwilldisappear:animated]; if (!isanybuttonclicked) { // play sound isanybu

oop - How to provide specific GWT implementations -

suppose working on exposing of server-side classes gwt application, parts done better using gwt-specific components (like jsni, instance). what techniques doing without being hacky? for instance, aware of using subpackage , using <super-source/> tag, requires package names different, causes eclipse complain. general solution in community tell eclipse use source folder, eclipse complains there being 2 classes same name. ideally, there way keep in single source tree, , have different classes apply alternate implementations. feel more oo approach. i add suffix class _gwt accomplishes automatically, , know write script kind of transformation, kludge sure. i've been considering using google's gin/guice libraries projects in general, , think there might kind of solution there, not sure have not thoroughly investigated it. what solutions have tried in past on gwt projects? the easiest way have split implementations use super-source code, enough instan

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

i'm using tjvhiddevicecontroller class retrive hid device information. have plugged 2 hid devices, i'm trying ge "devicepath" of sp_device_interface_detail_data_a structure getting device path '\'. ican't open createfile function. please me solve issue. os win7. all. this guessing! the 1 thing can think of is: tjvhiddevicecontroller calls windows api call without using or w suffix. structure used sp_device_interface_detail_data_a, ansi version. now, if use delphi 2009 or higher, routine expect sp_device_interface_detail_data_w. size same looks ok. strings stored usc2 encoded (widechars) instead of ansi encoded -> after every ansi character there null byte. tjvhiddevicecontroller converts character array pascal string using function strpas , hence, see first character. check: set breakpoint after function call fills structure , use cpu window view content memory dump. if see ansi characters every other byte , null bytes in between, ca

android - Uploading video on server through POST -

i know how can upload video file on server using post in android. please, let me know answer, if knows it? thanks take @ httpurlconnection . has sample code showing how post.