Posts

asp.net mvc 3 - show all users same countdown -

i using javascript timer , want users see same countdown,example when first user login on page timer starting , users after see same timer. asp net mvc 3.0 here jquery countdown timer can sync server. if understood question. benefit re-phrasing. http://plugins.jquery.com/project/countdown2

objective c - NSCF Array Out of Bounds? -

i have simple application using core data, , couple array controllers (in ib, no code files them, other xcdatamodel file). when run application, following error in log (the app still runs, no window appears until go file > new document): 2011-02-08 18:45:10.434 myapp[35178:a0f] *** -[nscfarray objectatindex:]: index (0) beyond bounds (0 ) i have no references in mydocument.h or .m files array. error not critical (the app still runs), disables of code load last used document or (if doesn't exist) load fresh document. app loads no visible windows. greatly appreciate on , award answer :) edit: here applicationshouldopenuntitledfile code: - (bool)applicationshouldopenuntitledfile:(nsapplication *)sender { nsarray* urls = [[nsdocumentcontroller shareddocumentcontroller] recentdocumenturls]; if ([urls count] > 0){ nsurl *lasturl= [urls objectatindex: 0]; [[nsdocumentcontroller shareddocumentcontroller] opendocumentwithcontentsofurl:lasturl disp...

Using jQuery themes (CSS) within jsFiddle -

has tried using of jquery themes in jsfiddle? i'm interested in using accordion widget theme having trouble implementing in jsfiddle. trouble is, believe themes require image files populate of effects, , suspicion jsfiddle has sort of issue that. resorted uploading custom css , js files jquery download, along images, onto personal home server , adding them managed resources. i'm getting functionality, not desired imagery. here's current fiddle: http://jsfiddle.net/mendahu/cmx4k/ to see should like, checked jquery's "humanity" theme on ui site. the managed resources found here: https://robins.homeserver.com/home/jquerycourse/ (also images subdirectory). as far can tell, directory structure same (ie. css document refers images "images/whatever.png"), , organized such on server. any ideas? the fiddle uses theme linked in comments references required jquery ui css files. have in 'managed resources' tab on l...

java - JSF index out of bounds exception when submiting a form -

when click submit button in jsf form following exception occurs. says indexout of bounds exception, did not use arraylist associated code. bug? should rid of error.. mojarra: 2.0.2 fcs primefaces 2.2 jsf: 2.0 netbeans ide 6.8 glassfish domain v3 form code: <p:panel id="jobres" style="min-width: 200px" header="reservation" widgetvar="jres" closable="true" toggleable="true" > <h:form id="arj" prependid="false" style="width:550px;max-height:400px;overflow:auto;"> <p:tooltip global="true"/> <h:panelgrid columns="2" > <p:panel style="min-width: 220px"> <h:outputlabel value="1.job type:"/> </p:panel> ...

geocoding in android map -

hi..i doing geocoding in android map.(i.e)getting address input user & locate particular point using marker.how this? my code simplegooglemaps.java public class simplegooglemaps extends mapactivity { geocoder geocoder=null; mapview mapview=null; @override protected boolean islocationdisplayed(){ return false; } @override protected boolean isroutedisplayed(){ return false; } @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); mapview=(mapview)findviewbyid(r.id.map); mapview.setbuiltinzoomcontrols(true); button geobtn=(button)findviewbyid(r.id.geocodebtn); geocoder=new geocoder(this); geobtn.setonclicklistener(new onclicklistener(){ @override public void onclick(view srg0){ try{ edittext loc=(edittext)findviewbyid(r.id.location); string locationname=loc.gettext().tostring(); list<address>addresslist=geocoder.getfromlocationname(locationname,5); if(addresslist!=null && addresslis...

related to php arithmetic -

$y = 013; echo $y + 5; //this result in 16 i can not figure out how ans 16? can 1 help? because 013 isn't decimal (base 10). it's octal (base 8). value in decimal is: (0 * 8^2) + (1 * 8^1) + (3 * 8^0) = 0 + 8 + 3 = 11 which gives correct (though unexpected, @ least you) result of 16 when added 5. moral of story: don't prepend number literal 0 unless know means

delphi - App staying behind taskbar when starting in fullscreen -

this code i'm using: borderstyle := bsnone; windowstate := wsmaximized; my problem application won't cover taskbar, go behind it. it works fine when switching fullscreen @ runtime, doesn't work when starting app @ system startup. update it turns out 2 lines work well. in formshow event handler. if break point until end of formshow, application seems in fullscreen; can see application trough taskbar. after formshow application's top property gets changed somehow. don't change in code - value -20, application not maximized anymore. is there way track or when changed? thanks in advance! update this post flagged. please not post answers! thank you. change param style, according msdn blog: http://blogs.msdn.com/b/oldnewthing/archive/2005/05/05/414910.aspx procedure tform1.createparams(var params: tcreateparams); begin inherited; params.style := ws_popup or ws_visible; //will overlay taskbar end; procedure tform1.formcreate(sender: ...