Posts

architecture - Never losing data techniques -

i'm curious techniques used build system ensuring no data lost of utmost priority. simplistic example, financial institution make sure when money transferred between accounts, once withdrawn 1 account without doubt put in other account. i'm not looking particular techniques database transactions, larger, more architecty concepts, how data saved if server goes down, or queue runs out of space, or whatever. if point me books or articles on i'd obliged. you should read automated teller machine , online transaction processing , , others topics data encryption, consider use https if thinking on web sites.

apache - Using Jetty to serve a web application -

i using jetty first time deploy gwt web app connecting restlet api , trying understand best way use it. i want make embeddable can update config during run-time (allowing me add new domain names etc). our web server runs apache serve php web app , our first time deploying gwt app , using jetty. is possible use jetty in parallel apache (both serving requests on port 80) , since embedding use apache before reaches jetty? apache receives request , forwards jetty? both server cannot run on same port. can run both on same machine. use separate port jetty. jetty receives request through own port , doesn't depend on other server.

c - fgets dont return NULL when no new line found -

well i'm using while loop: while(fgets(pclientrow, 1024 , f) != null) in other classes works ok, in 1 of them, when i'm reading file line line, won't out of loop when lines end, saw in debugger. why it? , working in class before , dont know why keep bringing empty lines untill it's crshing.. any idea? fgets in standard ansi c function, see documentation: here fgets read max. 1023 character next '\n' or eof. lines longer 1023 character or last line has no terminating newline.

c# - How to selenium.GetXpathCount for this element? -

ctl00_content_ctl00_chkproduct_0 ctl00_content_ctl00_chkproduct_1 ctl00_content_ctl00_chkproduct_2 ... ctl00_content_ctl00_chkproduct_19 ctl00_content_ctl00_chkproduct_20 what expression should use count 21 elements? i've used decimal count = selenium.getxpathcount("//*[@id='ctl00_content_ctl00_chkproduct_.*']"); decimal count = selenium.getxpathcount("//*[@id='ctl00_content_ctl00_chkproduct_[.*]']"); decimal count = selenium.getxpathcount("//*[@id='ctl00_content_ctl00_chkproduct_.']"); but none of them worked... please help. use: //*[starts-with(@id,'ctl00_content_ctl00_chkproduct_')]

java - maven-buildnumber-plugin svn revision available only when not using format -

while using maven-buildnumber-plugin 1.0 beta 4, seems can svn revision unless use <format> tag within configuration. once use <format> , <item>buildnumber</item> tag, auto-incrementing number, no longer corresponds svn revision , don't know how back. there way use svn revision number within <format> ? documentation isn't clear. the buildnumber-maven-plugin pretty darn quirky, why it's still beta. format items wish apply java message format , in cases, useful timestamps , literal strings. if don't need timestamp don't use format option when getting subversion revision number. if use format, indicated, it'll give build number increments 1 rather scm version number. if need timestamp or have other items deriving buildnumber plugin subversion revision, each 1 separate executions. here's example of how subverison revision number , build timestamp using 2 separate executions of plugin: <plugin> ...

facebook - Get status messages of a fanpage -

i wondering how latest status messages of fanpage. not of fans postet on fanpage. need way filter this. i tried sth this, doenst work. https://graph.facebook.com/123456790/feed?from.id=123456790 try ;-) $url = "/$pageid/posts?access_token=$accesstoken"; $result = $this->facebook->opengraph->api($url);

javascript - Resizing JQuery thickbox window dynamically -

i have thickbox pops when click on link. depending on user's browser size want thickbox constant 500px or width , height change dynamically depending on height of user's browser. possible? another option use jquery work out browser size , resize thickbox suit. not elegant css solution complete answer... here method done. // set displaywidth/height 90% of window var displaywidth = $(window).width() * 0.9; var displayheight = $(window).height() * 0.9; // animate thickbox window new size (with 50px padding $("#tb_window").animate({ marginleft: 0 - (displaywidth + 50) / 2, margintop: 0 - (displayheight + 50) / 2, height: displayheight + 50, width: displaywidth + 30 }, { duration: 800 }); $("#tb_ajaxcontent").animate({ height: displayheight, width: displaywidth }, { duration: 800 });