Posts

html - outlook 2007 not displaying image button in email -

i creating html email uses image buttons <input type="image" src="images/right_nav1.bmp" width="200" height="37" name="right_nav1" style="border:0; padding:0; margin:0; display:block;" /> <input type="image" src="images/right_nav2.bmp" width="200" height="37" name="right_nav2" style="border:0; padding:0; margin:0; display:block;" /> <input type="image" src="images/right_nav3.bmp" width="200" height="37" name="right_nav3" style="border:0; padding:0; margin:0; display:block;" /> <input type="image" src="images/right_nav4.bmp" width="200" height="37" name="right_nav4" style="border:0; padding:0; margin:0; display:block;" /> the images not getting ...

c# - how do i return a count of match items -

i have sorted generic list. return first 10 match condition. sort of method below first 10 items mysortedlist.findall(delegate(myclass tmp){ return tmp.id == 123;}); something following: int count = 0; mysortedlist.findall(delegate(myclass tmp){ return (tmp.id == 123 && ++count <= 10);});

java - programmatically querying LDAP permissions -

is there way programmatically query openldap 2.4 server find out attributes of object user allowed modify? or way tell server ignore modifications current user doesn't have permission make, instead of rejecting whole request? i'm looking way can avoid hard-coding users should see fields editable in ldap management webapp. please check if this helps. in example, trying change acl's specific object. might able re-use same/similar code.

getLastKnownLocation() Android, when the Last Known Location is updated? -

getbestknownlocation returns location indicating data last known location fix obtained given provider. can done without starting provider. note location out-of-date, example if device turned off , moved location. when last known location updated in android? updated if when there's application listening location provider, if if there's no application ask location , asked lastknownlocation() ? please see start location strategy i did investigations: turned on gps , waited fix. turned gps off , drove 50km (31 miles). used code deep dive location getlastknownlocation. tried twice, first gps turned off , second gps turned on, without fix: 1) gps turned off got - provider: network, correct location accuracy 680m - provider: passive (mprovider=network), same location above, same time above - provider: gps, location null so learned when gps turned off no getlastknownlocation gps location provider. 2) gps turned on got - provider: network, correct location acc...

Android: Usb storage location in 3.0? -

my app provides file browser. set root of file browser to: environment.getexternalstoragedirectory() ; which, on acer iconia tab, returns "/mnt/sdcard". however, many 3.0 devices support usb storage. there safe/proper way path "/mnt"? (to directory contains sdcard , usb storage) if environment.getexternalstoragedirectory(); gives /mnt/sdcard/ , hoping there safe method /mnt/usb_storage . there not appear be. however, environment.getexternalstoragedirectory().getparentfile() appears reliable give parent directory of /mnt/usb_storage .

Blackberry OS 6 Toolbar PushScreen and PopScreen -

i asked question before on how create toolbar, have created toolbar, , push on next screen, not sure how can remove last screen, know can use popscreen. stuck @ popping screen off in tab bar, because not know last screen may be, since can click of tabs @ top. can provide me code samples on app using tab bar adds new screen , removes last screen? typically, want leave screens on stack, when user done whatever activity have selected, toolbar screen shown again. if know want pop current screen, can via uiapplication.getactivescreen() returns topmost screen in stack.

cakephp - parse the part of url and send to function -

i have controller called customers , function called products. have link http://mysite.com/customers/products/ {customernumber}/imagefile.png i want have function imagefile.png once customer put link in browser on site. howd cakephp your action called products needs 2 arguments deal that: function products($customernumber, $image) { //here can access these variables , use them further processing } i hope problem in case, please comment if need on "getting image" case.