Posts

iphone - Need help opening callout of annotation on map automatically, when map first loads -

dear fellow iphone/objective-c developers: i have navigation based application iphone working allows user view selection table, on map. have annotation pinpoints user's selected location on map. per normal behaviour, if user clicks on annotation, callout appears details location. no problems here. question is, i'd callout appear automatically annotation, once user taken screen containing map, user not have click on annotation in order see details location, i'm not sure how this. have following method in "mapviewcontroller" class, bulk of map display work performed: - (void)viewdidload { [super viewdidload]; mkcoordinateregion region; mkcoordinatespan span; navbuttonappdelegate *delegate = [[uiapplication sharedapplication] delegate]; usercoord = delegate.userlocation.coordinate; region.center = usercoord; span.latitudedelta = 0.4; span.longitudedelta = 0.4; region.span = span; [mapview setmaptype:mkmaptypestandard]; [mapview setzoomenabled:yes...

php - ffmpeg backgrounding? -

does know how background ffmpeg if executed php script? i've bee trying figure out while, absolutely nothing if nohupped/&/>dev/null/etc... can't seem run while not in focus when process video uploads php+ffmpeg, split tasks. script taking video upload queues job in beanstalkd , continues. second script runs indefinitely in background listens beanstalkd new videos process. this avoids issue of processing many videos @ once, encounter if forked ffmpeg background. if figure out way of forking ffmpeg background, you're better off using queuing system reason alone.

javascript - track mouse position to move images -

i have pretty simple page. <div id="index"> <img /> </div> the styling pretty simple too. #index {position:relative;} #index img {position:absolute; bottom:10%; right:10%; width:100%;} i use % image can resized proportionally if browser window resizes. never mind that. the problem is, i'm trying emulate effect on flash site : http://www.tatogomez.com/ image in bottom right of screen. when move mouse top left, image move bit more right bottom. when move mouse center, image revert original position. it's kinda i'm giving shadow/lighting effect mouse lighting , image object, except need moving animation. my code this $(document).ready(function($){ $('#index').mousemove( function(e){ $(this).children('img').each( function(){ var totalwidth = $(window).width(); var totalheight = $(window).height(); var centerx = $(...

day of the week in Java -

this question has answer here: how determine day of week passing specific date? 13 answers php has built-in function takes data , returns day of week (monday, tuesday, etc.). java have similar function? import java.util.*; public class getday { public static void main(string[] args) { calendar calendar = new gregoriancalendar(); calendar.set(2011, 1, 9); // 1 = feb months 0 based remember system.out.println(calendar.get(calendar.day_of_week)); } }

64bit - Building 64 bit gcc on linux -

i wanted use "-m64" compiler option of gcc, , when tried on machine, got following error ... [root@-dell-1950-server]/root/abc/utilities>gcc -m64 porting1.c porting1.c:1: sorry, unimplemented: 64-bit mode not compiled in when checked processor info, following output. [root@-dell-1950-server]/root/abc/utilities/gcc-4.1.1-new/gcc-4.1.1>dmidecode -t 4 # dmidecode 2.7 smbios 2.4 present. handle 0x0400, dmi type 4, 40 bytes. processor information socket designation: cpu1 type: central processor family: xeon manufacturer: intel id: f6 06 00 00 ff fb eb bf signature: type 0, family 6, model 15, stepping 6 flags: fpu (floating-point unit on-chip) vme (virtual mode extension) de (debugging extension) pse (page size extension) tsc (time stamp counter) msr (model specific registers) pae (physical address...

wcf - Is Fetching and updating in same web service operation symantically correct -

i know wcf or web service platform not prevent developers mixing fetch , update in same operation. mean mentioned below list updatedate( sometype datacontract) syntactically correct format supported in wcf. ok in service oriented world, industry wide standard support this. one problem see right away violate first law of soa atomicity there other issues associated? it's wider wcf: method appears get/fetch (i.e. name) should ideally not perform updates. the classic bad example property getter alters state of objects, introducing possibility of unwanted side effects.

c# - Need help with string manipulation please -

if string has values :- mystring = "good morning,good night"; and want reverse values in follows:- i want final values in mystring as:- mystring = "good night,good morning"; how achieve this? appreaciated. thanks. :) how about: string mystring = "good morning,good night"; string[] substrings = mystring.split(','); mystring = string.join(",", substrings.reverse()); or if write these 1 liners: mystring = string.join(",", mystring.split(',').reverse());