Posts

Showing posts from January, 2014

This week in African History: 19

This week in African History: 19 1.This week in African History: 19 - 25 February Description:Key events from the 20th century in African history. Education; African History. Search. ... Week starting Saturday 19 February : Date: Year: Event : 19: 1937: 2.This week in African History: 19 - 25 March Description:Key events from the 20th century in African history. Education; African History. Search. ... Week starting Saturday 19 March : Date: Year: Event : 19: 1923: 3.This Week in History: September 19 Description:This Week in History, September 19-25: Contributions of African-Americans : Note: Here, learn about some of the African-Americans who have influenced history and ... 4.This Week In Nigerian History Episode 19 - Nigerialogy Description:... This Week in Nigerian History Episode 19 Category 2: This Week in History Author: Nigerialogy Date: July ... Power in an Emergent African Nation. Africa World ... 5.This Week In Black Hist...

Full Product Review of Lost Lion of Empire by Edward Paice

Full Product Review of Lost Lion of Empire by Edward Paice 1.Full Product Review of Lost Lion of Empire by Edward Paice Description:Book review of Lost Lion of Empire by Edward Paice ... Hardback - 470 pages • Publisher - HarperCollins, 2001 • ISBN - 0-00-257003-3 2.Product Summary: Lost Lion of Empire by Edward Paice Description:Brief review of Lost Lion of Empire by Edward Paice. Education; African History. ... Product Description • ... Read Full Review 3.Lost Lion of Empire: Edward Paice: 9780002570039: Amazon.com ... Description:Lost Lion of Empire [Edward Paice] ... rivers full of crocodiles, cannibals, ... Only search this product's reviews 4.Lost Lion of Empire: The Life of 'Cape-to-Cairo' Grogan ... Description:Lost Lion of Empire: ... [Edward Paice] on Amazon.com ... This portion of the book is filled with lots of hunting, rivers full of crocodiles, ... 5.Lost Lion of Empire: The Life of Ewart Groga...

This Day in African History: August 20

This Day in African History: August 20 1.This Day in African History: August 20 Description:1900, 20 August Major Gibbons, British explorer, claims to have found the source of the Zambizi. 1953, 20 August The Sultan of Morocco, Sayyidi Muhammad V ibn Yusuf ... 2.This Day in Black History: August 20, 1619 | News | BET Description:20-08-2012 · The first African slaves arrive in Jamestown, Virginia. ... This Day in Black History: August 20, 1619 . The first African slaves arrive in Jamestown ... 3.This week in African History: 20 - 26 August Description:Key events from the 20th century in African history. Education; African History. Search. ... This Day in African History: August 20; This Day in African History ... 4.This Day | History Description:This Day; Topics. History of South Africa; History of WW2; ... This day in history. prev; August; 5.Today in History | South African History Online Description:The post offices at...

Treaty of Vereeniging -- What was the Treaty of Vereeniging?

Treaty of Vereeniging -- What was the Treaty of Vereeniging? 1.Treaty of Vereeniging - Wikipedia, the free encyclopedia Description:The Treaty of Vereeniging (commonly referred to as Peace of Vereeniging) was the peace treaty, signed on 31 May 1902, that ended the Second Boer War between the South ... 2.Treaty of Vereeniging -- Text of the Treaty of Vereeniging Description:General Lord Kitchener of Khartoum, Commanding in Chief AND His Excellency Lord Milner, High Commissioner, on behalf of the BRITISH GOVERNMENT AND Messrs SW Burger ... 3.Treaty of Vereeniging -- What was the Treaty of Vereeniging? Description:Definition: The Treaty of Vereeniging ended the 2nd Anglo-Boer War (also known as the South African War). It was signedby the British government and the Boer ... 4.Peace Treaty Vereeniging | Anglo-Boer War Museum Description:Peace Treaty of Vereeniging. In March 1901 the first overtures for peace failed mainly because the Boer leade...
1.#EANF# Description:#EANF# 2.#EANF# Description:#EANF# 3.#EANF# Description:#EANF# 4.#EANF# Description:#EANF# 5.#EANF# Description:#EANF# 6.#EANF# Description:#EANF# 7.#EANF# Description:#EANF# 8.#EANF# Description:#EANF# 9.#EANF# Description:#EANF# 10.#EANF# Description:#EANF#

google maps V3 polyline circle drawing, error: invalid value for constructor parameter 0 -

i creating map allows user enter zip code , radius drawn around it. having problem google.maps.polyline. error message receiving "invalid value constructor parameter 0. <!doctype html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map_canvas { height: 100% } </style> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"> </script> </script> <script type= "text/javascript"> var geocoder; var map; function initialize() { geocoder = new google.maps.geocoder(); var latlng = new google.maps.latlng(-34.397, 150.644); var myoptions = { zoom: 8, center: latlng, maptypeid: google.maps.maptypei...

read file in descending php -

hi im trying read file in descending order. want echo last 10 words file expected result: brian tracy, brian tracy, der reiche sack, der reiche sack, der reiche sack, electrical machines charles s siskind second e, test de politica fiscal, gigantomastia,gigantomastia,, a, file want read : find doctor, find doctor,technique fingers of right hand on left ven, la empresa adaptable, la empresa adaptable en la era de la informaci n, la pobre mia, probabilidad estadistica, crack beam, dwarf rabbit, probabilidad estadistica, kamsutra bangla, power of dog, power of dog, prinsip kerja uji ninhidrin, letramania 3, gre, gre, prinsip kerja uji ninhidrin, prinsip kerja uji ninhidrin, artificial intelligence modern approach, configuring sap erp financials , controlling, gas spring, imperio carolingio, blue collar man, caligrafia, wonderlic, women , weight loss tamasha, women , weight loss tamasha, vivir amar y aprender leo buscaglia, vivir amar y aprender leo buscaglia, w...

facebook - Adding a Like button for an existing FB Page -

this seems should simple enough, i've gotten burned messing fb buttons in past. want verification here before dive in , lose likes. i have webpage. have facebook page webpage amount of likes. want add button web page upon clicking, likes facebook page. do put in http://www.facebook.com/myfacebookpage in "url like" of generator , fb page? i know it's simple - want sanity check! i've lost amount of likes improperly implementing in past. thanks! that's should do. if use iframe version it's have do. if use xfbml version should initialize javascript sdk: https://developers.facebook.com/docs/reference/javascript/ something this: <div id="fb-root"></div> <script> window.fbasyncinit = function() { fb.init({appid: 'your app id', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createelement('script'); e.async = true; e.src = docume...

perl - replace string1 with string2 in many java files, only in comments -

i have around 3000 instance of replacement done in hundreds of files. replacing occurance of string1 string2 easy. intellij allows me replace occurences in "comments , strings". the problem same string appear in comments , real code. restrict replacement in comment section ( use mix of /**/ or // ) any library/ide/script can this? use regexp::common 'comment'; ... s/($re{comment}{'c++'})/(my $x = $1) =~ s#string1#string2#g; $x/ge;

c# - DateTime picker control in ASP.NET -

possible duplicate: asp.net datetime picker is there default control name datetimepicker available in asp.net ? want single control have both date , time select functionality.please suggest me one? thanks or use jquery option: jquerydatetimepicker

javascript - window.onunload fires and then the user clicks stop -

here flow trying figure out. user hits page. user clicks link , onbeforeunload , unload fired. here getting rid of href in of links. the page hangs little bit giving user chance hit stop button in browser. since page still on original page (not new page requested , stopped) hrefs still blank. is there way of knowing if user clicks stop button , still on same page? the way can think off top of head put settimeout in onbeforeunload or unload don't because there many variables still being messed up. what ended doing this: window.unload = function(){ var _href = $('selector').attr('href'); $('selector').attr('href', ''); settimeout(function(){ $('selector').attr('href', _href); }, 1500); }

python - Only one line of this batch file will run -

gdal_merge -o c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_merged.tif -seperate -q -v c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_merged.tif c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_nn10.tif c:\test\rastermerge\p023r027\p023r027_7t20010623_z16_nn20.tif gdal_merge -o c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_merged.tif -seperate -q -v c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_nn10.tif c:\test\rastermerge\p024r027\p024r027_7t19990828_z16_nn20.tif gdal_merge -o c:\test\rastermerge\p024r027\p023r026\p023r026_7t20001010_z16_merged.tif -seperate -q -v c:\test\rastermerge\p024r027\p023r026\p023r026_7t20001010_z16_nn10.tif c:\test\rastermerge\p024r027\p023r026\p023r026_7t20001010_z16_nn20.tif gdal_merge -o c:\test\rastermerge\p024r027\p024r026\p024r026_7t20000729_z16_merged.tif -seperate -q -v c:\test\rastermerge\p024r027\p024r026\p024r026_7t20000729_z16_nn10.tif c:\test\rastermerge\p024r027\p024r026\p024r026_7t20000729_z16_nn20.tif gda...

iphone - Bluetooth warnings Xcode? -

i'm trying learn using bluetooth connectivity through making simple peer peer bluetooth chat app. i'm hitting bit of problem i'm new exploring gamekit , bluetooth , hoping can me. think it's formatting issue, wrong. when sending messages between both devices i'd use name of device message coming in uialertview popup displays message. example, 'johnny's iphone says:...' here's bit of code dealing alertview: - (void) receivedata:(nsdata *)data frompeer:(nsstring *)peer insession:(gksession *)session context:(void *)context { //---convert nsdata nsstring--- nsstring* str; str = [[nsstring alloc] initwithdata:data encoding:nsasciistringencoding]; uialertview *alert = [[uialertview alloc] initwithtitle:(@"chat message: %@", peer) message:str delegate:self cancelbuttontitle:@...

uiviewcontroller - How can I bind a UIView's orientation to that of it's parent view? -

i have uiviewcontroller, toolbar @ top. have few views i'm going adding , removing, don't want them cover toolbar. made uiview, fills area beneath uitoolbar, , adding views thee, , works great. when rotate device though, first subview rotates view controller, uiview inside of uiview thats inside of uiviewcontroller doesn't rotate! what can make rotate parent uiview? ps- if can think of better way i'm trying do, i'm ears! edit: to clarify, have uiview subview in ib, , hooked code fine. then, depending on button selected, uiviews subviews removed, , new 1 placed in subview array. use addsubview , removefromsuperview add/remove view uiview child of uiviewcontroller view...

Error when running a parameter query from access 2007 in excel vba -

i'm trying run query in access 2007 database excel 2007 vba script. access query has parameters called "year" , "month". i'm trying following code work: sub runmyquery() dim cn new adodb.connection dim rs new adodb.recordset dim dbpath string dim stqry string dim stcon string dim cmd new adodb.command dim prmyear new adodb.parameter dim prmmonth new adodb.parameter dbpath = "<path_to_my_db>" stcon = "provider=microsoft.ace.oledb.12.0;" _ & "data source=" & dbpath & ";" cn.open (stcon) cn.cursorlocation = aduseclient set cmd.activeconnection = cn set prmyear = cmd.createparameter("year", adnumeric, adparaminput, , 2011) set prmmonth = cmd.createparameter("month", adnumeric, adparaminput, , 5) cmd.parameters.append prmyear cmd.parameters.append prmmonth cmd.commandtext = "select * [m...

javascript - Seadragon deepzoom placement of files -

i have created deepzoom image, , when image files placed locally can display code: <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html> <head> <style type="text/css"> body { margin: 0px; font-family: verdana; line-height: 1.25em; background-color:#000000; } </style> <script type="text/javascript" src="http://seadragon.com/ajax/0.8/seadragon-min.js"></script> <script type="text/javascript"> var viewer; function init() { viewer = new seadragon.viewer("container"); viewer.opendzi("spider.xml"); viewer.setfullpage(true); } seadragon.utils.addevent(window, "load", init); </script> </head> <body> <div id=...

Programming ARM in C from scratch -

i have lpc3141 developers kit embeded artists , have sucessfully created free ide based on eclipse can sucesfully compile arm. tested ide using included blinker example. have startup code , linker script work , use them on. now learn how start own blinker program nothing. have program first? gpio registers, timer registers, uart registers,... ??? first thing? thing need write in fact hal? allready ordered book , think? thank you. regards ziga these pages might useful, same family, different chips. http://lpcstuff.blogspot.com/2008/09/lpc-2148-blinker-1.html http://lpcstuff.blogspot.com/2010/08/nxp-mbed-aint-so-bad-after-all.html you wont need timers or interrupts or started. have c loop count (long) while change state of gpio. need configure gpio output. , careful not have c compiler optimize out delay loop. later can polling timer, after interrupts if feel need to.

php - Regex to allow all characters except repeats of a particular given character -

i've been fumbling bit , thought i'd put regex experts: i want match strings this: abc[abcde]fff abcffasd so want allow single brackets (e.g. [ or ] ). however, don't want allow double brackets in sequence (e.g. [[ or ]] ). this means string shouldn't pass regex: abc[abcde]fff[[gg]] my best guess far based on an example found , like: (?>[a-za-z\[\]']+)(?!\[\[) however, doesn't work (it matches when double brackets present), presumably because brackets contained in first part well. you want like: ^(?:\[?[^\[]|\[$)*$ at each character, pattern accepts opening bracket followed character, or end of string. or little more neatly, using negative lookahead : ^(?:(?!\[\[).)*$ here, pattern match characters long doesn't see 2 [[ ahead.

GWT Image button -

i creating image button png icons, need make feel of button (but not push button effect) when user clicks image dotted square (like selection) appear have effect button clicked. ideas? something in gwt: hyperlink link = new hyperlink(); image image = new image(imageurl); ... link.getelement().appendchild(image.getelement()); link.setstylename("imgbtnlink"); add/set css style: .imgbtnlink:active { border-style:dashed; } old jsfiddle example: http://jsfiddle.net/wsaf5/

iphone - iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto -

Image
at high level, created app lets user point or iphone camera around , see video frames have been processed visual effects. additionally, user can tap button take freeze-frame of current preview high-resolution photo saved in iphone library. to this, app follows procedure: 1) create avcapturesession capturesession = [[avcapturesession alloc] init]; [capturesession setsessionpreset:avcapturesessionpreset640x480]; 2) hook avcapturedeviceinput using back-facing camera. videoinput = [[[avcapturedeviceinput alloc] initwithdevice:backfacingcamera error:&error] autorelease]; [capturesession addinput:videoinput]; 3) hook avcapturestillimageoutput session able capture still frames @ photo resolution. stilloutput = [[avcapturestillimageoutput alloc] init]; [stilloutput setoutputsettings:[nsdictionary dictionarywithobject:[nsnumber numberwithint:kcvpixelformattype_32bgra] forkey:(id)kcvpixelbufferpixelformattypekey]]; [capturesession addoutput:stilloutput]; 4) hook a...

mysql - Python: Inserting row into database with formatting -

i'm trying insert row table i've set in database. my code: cursor.execute("""insert scan (prefix, code_id, answer, station) values(%s, %s, %s, %s, timestamp, comport)""",[(prefix, code_id, answer, station)]) i'm getting error saying doesn't in "[]". i don't understand how "%s" works. i've tried many examples , have failed me. i got example http://mysql-python.sourceforge.net/mysqldb.html why have parameters inside 2 sets of brackets? second argument should sequence containing 4 items, match 4 %s s in query. instead, have given list containing 1 item: item sequence 4 items in it. instead, try: cursor.execute("""insert scan (prefix, code_id, answer, station) values(%s, %s, %s, %s, timestamp, comport)""",(prefix, code_id, answer, station))

asp.net mvc - Telerik MVC Grid not grouping properly -

i'm using telerik mvc grid component render groupable grid populated via ajax. grid renders fine, sorting , paging works, ajax refresh works, when try grouping, rendering gets screwed up. attached screen caps of grid pre- , post-grouping. the grid definition pretty straight-forward: <div id="tabaccounts" class="tab_content"> @(html.telerik().grid<sharedsimpleaccountlistviewmodel>() .name("acctgrid") .columns(columns => { columns.bound(x => x.number) .headerhtmlattributes(new { @style = "text-align: center;" }) .htmlattributes(new { @style = "text-align: center;" }); columns.bound(x => x.providerorganizationfriendlyname) .title("provider"); columns.bound(x => x.name) .title("account name"); columns.bou...

ant - How do you integrate ivy with MSbuild -

what approach has worked combining ivy + msbuild? our goal integrate ivy c#/c++ build process dependency resolution , publishing. have tried adding custom tasks @ beginning , end of build , have tried wrapping msbuild calls ant+ apache-ant-dotnet. other options might gradle, buildr, rake. what use? thanks peter most build technologies can use libraries found in local directory. i'd suggest using command-line ivy program populate this, @ start of build: java -jar ivy.jar -ivy ivy.xml -settings ivysettings.xml -retrieve "lib/[conf]/[artifact].[ext]" your dependencies listed in standard ivy file called ivy.xml . protocol, location , layout of remote repository described in ivysettings.xml the advantage of approach (as opposed switching gradle, etc) you're not trying replace existing build tool. ivy solely concerned managing dependencies.

css - Float a bunch of divs CENTERED while retaining dynamic width and height -

i've got large div. contains bunch of thumbnails. i'd thumbnails within div centered inside div, , div centered on page. i'd width of div dynamic can see thumbnails on every resolution, centered. how achieve this? here's have far: <div id="container"> <div class="thumb"><img /></div> <div class="thumb"><img /></div> <div class="thumb"><img /></div> <div class="thumb"><img /></div> <div class="thumb"><img /></div> <div class="thumb"><img /></div> </div> i've tried centering css: problem need alternative float:left works center float around each other. have floats them left on wrong browser width, they're not centered. #container{margin:auto;width:80%} .thumb{padding:60px;float:left} any ideas on how float:center? firstly, cannot g...

httpclient - Android DefaultHttpClient HttpResponse missing Set-Cookie header field -

i have server uses spring security remember-me-authentication login using android defaulthttpclient in post method. able login , able retrieve session cookies created (in case jsessionid cookie , spring security remember me cookie). but weird thing after executing post method mresponse = mdefaulthttpclient.execute(mhttppost) i able retrieve cookies, using getcookiestore method in defaulthttpclient like mdefaulthttpclient.getcookiestore() not using getallheaders method of httpresponse object headers = mresponse.getallheaders(); headeriterator headeriterrator = new basicheaderiterator(headers, null); while (headeriterrator.hasnext()) { header header = headeriterrator.nextheader(); headerstringbuilder.append(" " + header.getname() + ":" + header.getvalue()); } log.e("post response headers: ", headerstringbuilder.tostring()); i headers in here( server, x-powered-by, date, content-type, content-length) not set-cookie header or few othe...

synchronization - What is a sensible data-structure for allowing efficient synchronisation between two root paths? -

i working on application involves maintaining consistency between 2 local directories. specifically, directories should identical, exception files in 1 of directories modified in particular way (this part not important question). while running, application runs 2 processes listen changes occurring under each of paths, , performs relevant operations bring them in sync when necessary. in terms of specific question: i'm looking advice on tricker situation of when 1 starts application. @ point, each process needs check files/folders under both path looking after, see if has changed in anyway whilst application not running. (let assume application cannot notified os of happened while shutdown, , need directly check every file/folder.) each process have access (and maintain) persistent data-structure of files/folder under designated path. thinking following should held within data-structure each of files , folders: file/folder name; file hash (crc32); file/folder last mod ...

php - Need help with this MySQL query. Finding users who are available at a certain time -

here simplified schema of database: users ------------------------------------ userid | name | assignable ------------------------------------ 5 | john doe | 1 timeslots ------------------------------------------------------- timeslotid | starttime | endtime ------------------------------------------------------- 3 | 2011-06-30 15:00:00 | 2011-06-30 16:00:00 appointments ------------------------------------ timeslotid | userid ------------------------------------ 3 | 5 i have users can assigned timeslots make appointments. need way start start , end time , query users able assigned (assignable flag set 1) , have no time conflicts (appointments overlap) times. older timeslots in there interested in timeslots or in future. select * users u u.assignable = 1 , u.userid not in ( select userid appointments join timeslots t on a.timeslotid = t.timeslotid t.endtime > now() ...

java - Thread Mutual Exclusive Section -

hello had phone interview not able answer question , know answer, believe, advisable reach out answers don't know. please encourage me understand concept. his question was: "the synchronized block allows 1 thread time mutual exclusive section. when thread exits synchronized block, synchronized block not specify of waiting threads allowed next mutual exclusive section? using synchronized , methods available in object, can implement first-come, first-serve mutual exclusive section? 1 guarantees threads let mutual exclusive section in order of arrival? " public class test { public static final object obj = new object(); public void dosomething() { synchronized (obj) { // mutual exclusive section } } } here's simple example: public class fairlock { private int _nextnumber; private int _curnumber; public synchronized void lock() throws interruptedexception { int mynumber = _nextnumber++; ...

mathematical optimization - Mathematica Not Saving Variable -

i try perform nested loop not working. it's not saving result in each stage. if replace listinitial print[ ] observer changes made. any suggestions?? for[b = 1, b < 4, b = b + 1, for[a = 1, < 4, = + 1, for[x = 1, x < 4, x = x + 1, for[z = 1, z < 4, z = z + 1, listinitial = if[random[] > psurvival, replacepart[ initialmatrix[3, 3, 3, 3], {b, a, x, z} -> initialmatrix[3, 3, 3, 3][[b]][[a]][[x]][[z]] - 1], initialmatrix[3, 3, 3, 3], {b, a, x, z} -> initialmatrix[3, 3, 3, 3][[b]][[a]][[x]][[z]]]]]]] listinitial // tableform i think problem expect replacepart change initialmatrix . not. change nameless copy of initialmatrix , returns result, assigned listinitial . latter overwritten new value every loop iteration, in end contains result of last replacement. variables equal 3 @ point, last replacement looks like: initialmatrix[3, 3, 3, 3], {3, 3, 3, 3}->initialmatrix[3, 3, 3, 3][[3]][[3]][[3]]...

actionscript - Flash Template Help -

ok, complete flash noob here, can point me in right direction. i have flash template working on, , have customized via xml files. it's as3 template. i have flash poll script attempting integrate template. this gets bit tricky...i have decided use modal window (which supports swf files) open poll using. if simple load swf file, fine, poll includes xml , php files, don't know with. the files included are: preview.swf, preview.fla, xml file, config.php, edit.php, index.php , "caurina" , documentation files. what i'm thinking need include preview.swf file modal window, i'm not sure rest of these files, go new folder in main template folder or what? any appreciated! well, from point of view more architectural problem flash one. must consider if use / reuse template in other places ( should anyway ) create poll template single project, files in same folder, it's own namespace: com.andymiller.template.poll, etc... this may save lot ...

Change chart axis labels in silverlight -

i have generic chart type contains points list<double> . how can programatically change axis label each point custom label, i.e. use string instead of double value? for example: point1 = (1,5) point2 = (2,10) point3 = (3,25) instead of x-axis displaying 1,2, , 3, substitute 1 california, 2 arizona, 3 new mexico. thank you. edit: want make change through c#, not using xaml. hi maybe helps... http://expression.microsoft.com/en-us/dd433476 this part interessting you... charting : pieseries.itemssource > < controls : objectcollection > < local : chartpointdata value ="1" label="pete" /> <local:chartpointdata value="3" label="david" /> <local:chartpointdata value="9" label="justin" /> <local:chartpointdata value="5" ...

iphone - three20 build issues -

i having issues building project three20. had three20 folder outside of project folder, decided clone three20 inside folder , re-run script again. when tried import "three20/three20.h" says there's no such file or directory. should here? this may have changed, recall last three20/xcode4 experience have change build directory settings xcode4 work. in xcode preferences, go locations tab , change dropdown build location "...locations specified targets" as understand three20 expects build directory in same place using xcode3. no promises, give try.

rubygems - Is there a way to print a message after a user installs a Ruby gem? -

is there way configure gem's gemspec print important informational message right after downloads , installs gem using gem install ? yes, use post_install_message in gemspec ( docs ). you can see how httparty in gemspec .

sql server - ASP.Net: SQL Insert query not being called -

i have webpage uses ado.net calls stored procedure , passes variables insert item. within webserver, works, within production server not working. there anyway @ sql server , see if returning error? what "is not working" mean? how know asp.net code calling anything? possible connection string pointing wrong place? don't have ability put try / catch in code calls stored procedure, , output or log errors? tell run profiler or check sql server error log, i'm not convinced code connecting server @ all, never mind right one. place start debugging in app, not in sql server. verify you're connecting right database , entering code calling stored procedure. if it's still "not working" need narrow down means. either works or you'll error message (unless have empty catch{} handler).

iphone - Cocoa, Cocoa Touch, and Vertical Separators -

in interface builder cocoa applications, there 2 objects in "library" pane - vertical separator , horizontal separator. these 2 objects nice have lay out views way them. however, when started in cocoa touch year or 2 ago noticed 2 objects not there. why vertical , horizontal separators present in object library in cocoa environment not there when cocoa touch xib loaded up? (as concession, know can accomplish same task utilizing uiimageview, it's not same.) the paradigm designing apps iphone different mac, can't expect ib objects same. if trying use vertical separators, i'd recommend re-think ui, may not user expects, iphone screen limited in it's size, specially horizontally, it's best expand content vertically, that's why uitableview 1 of used ways display info. (i know ipad doesn't have limitation, that's why uisplitviewcontroller exists).

objective c - EXC_BAD_ACCESS error when removing object from NSMutableDictionary -

i have nsmutabledictionary datasource uitableview. trying implement delete mode , having issue. i logging key trying remove object corresponds issue seems might related trying access unallocated memory or something. here implementation of tableview:commiteditionstyle:forrowatindexpath: - (void)tableview:(uitableview *)tableview commiteditingstyle:(uitableviewcelleditingstyle)editingstyle forrowatindexpath:(nsindexpath *)indexpath { if (editingstyle == uitableviewcelleditingstyledelete) { // delete row data source. nsarray * keys = [userlist allkeys]; nsnumber *keytoremove = [keys objectatindex:indexpath.row]; nslog(@"key remove: %@",keytoremove); nslog(@"object @ key: %@",[userlist objectforkey:keytoremove]); [userlist removeobjectforkey:keytoremove]; [tableview deleterowsatindexpaths:[nsarray arraywithobject:indexpath] withrowanimation:uitableviewrowanimationfade]; [keys re...

Is it possible to set a Request Header in a Squid Request to respond with a 404 if not found in Cache? -

i have tried @ documentation, have not found info on yet. you 2 squids (or squid , apache instance mod_proxy)... configure squid1 use squid2 parent cache_peer. configure second squid proxy no caching enabled. with configuration in place, populate whatever content need squid1's cache making requests needed content. when you're ready "close door", speak, make url_rewriter helper squid2 returns single string containing known-invalid url. restart squid2 url_rewriter in place. when config in place, cached content served normally, while squid1 go squid2 uncached content, return 404 urls.

android - parsing the response from xml -

i new webservices , want parse xml , store response(string val) in local variable. how can this? plz 1 post code snippet this. http/1.1 200 ok content-type: text/xml; charset=utf-8 content-length: length <?xml version="1.0" encoding="utf-8"?> <soap:envelope xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:body> <registeruserresponse xmlns="http://tempuri.org/"> <registeruserresult>string</registeruserresult> </registeruserresponse> </soap:body> </soap:envelope> there many parsing technique available in android itself: xmlpullparser , dom parser , saxparser . can implement any. here best examples learn xml parsing: http://www.ibm.com/developerworks/library/x-android/ otherwise, should try google link: http://bit...

objective c - ios search bar customize cancel button -

is possible change text of button or use icon? in ib button not selectable , can't find how in documentation. styling cancel button in uisearchbar

Refer a Document from a desktop application in java -

i have application consist of menu's.in menu have tutorial menuitem.what want when click menuitem "tutorial" document in application directory need opened.can acheive this? you can use java.awt.desktop.getdesktop().open(file) method. see desktop api , using desktop api in java se 6 .

php - Symfony2 - Doctrine - Entity relationship between 2 bundles -

i can't figure out how can have entity relationship between 2 bundles. the closest i've been succeed far this: user entity : <?php namespace acme\authbundle\entity; use fos\userbundle\entity\user baseuser; use doctrine\orm\mapping orm; use symfony\component\validator\constraints assert; use doctrine\common\collections\arraycollection; /** * @orm\entity * @orm\table(name="fos_user") */ class user extends baseuser { /** * @orm\id * @orm\column(type="integer") * @orm\generatedvalue(strategy="auto") */ protected $id; //... /** * @orm\onetomany(targetentity="acme\newsbundle\entity\article", mappedby="author") */ protected $articles; //... article entity : <?php namespace acme\newsbundle\entity; use doctrine\orm\mapping orm; /** * @orm\entity(repositoryclass="acme\newsbundle\entity\articlerepository") * @orm\table(name="articles...

Updating the Magento Catalog product List from XML feed file -

does know how update magento's catalog of products automatically having magento read xml file? scenario cron job periodically check presence of feed file on remote server, ftp transfer pull on local machine , then, depending on whether feed file complete listing or whether contains new products, magento either refresh catalog on each update, or might append. doesn’t matter @ stage; know whether magento capable of doing such task? thanks. mark. there many approaches problem. put module runs on 'cron' schedule check (remote) location new files parse. in module there 2 approaches parsing xml file: magento/zend method magically or normal php xml parsing techniques read in file series of objects. due xml skills take latter approach. the next step depends on nature of products. there simple products have 1 sku , no options, there configurable products. configurable products, e.g. t-shirt has sizes , colours, imagine 5 sizes , 5 colours need 25 sku codes 'si...

c# - Silverlight to WPF Converter -

since wpf , silverlight close each other(in terms of syntax). my query , have tool can convert wpf control silverlight control , vice versa. i understand in wpf shall not expected run on silverlight, since come same code base, aconversion possible. wpf controls built on top of full .net. silverlight controls built on top of subset of .net. if wpf controls restricted in use of .net feasible conversion possible, quite frankly think there many exceptions make worthwhile. where need share code (not controls) between wpf & silverlight "link" files common library (the library repository , not built). xaml can cut & paste.

cordova - how to impliment background process in iphone phone gap sdk -

i new in iphone phone gap developement. , have task work ground process. i have impliment background task run background , @ spacific time have send latitude , longitude server. main problem have task develop whole application in phone gap,so not have idea how impliment background process in iphone phone gap sdk. please me , provide me code or example if possible. thanks in advance. thanks have solved method solve problem , of javascript can create background process.

web services - XML+SOAP: are newlines permitted? -

i'm working soap , xml interact web-services. i noticed gsoap-generated routines not have newlines , work correctly. successively tried write own routines using libxml2, indents xml newlines. while web-services tested able deal code generated gsoap, not of them able deal hand-written code, , triggering error presence of newlines. so question is: newlines forbidden in xml+soap? have write code on single line? or did face broken services? newlines aren't forbidden. whole reason, why gsoap writes messages 1 line because there no need structure message (bring human readable form), additional cost no effect. there must other reason. compare xml messages generated gsoap, content same, differences newlines?

nunit - Specify an output message for successful test case -

each assert allow define error message printed out in case of assert failure can somehow provide message outputed in case of successful test run? you can use assert.pass utility method.

How the ftp uploads works in PHP? -

i using http://phpseclib.sourceforge.net/ library file uploading using ftp.now cant able understand concept behind "how ftp handling file data while uploading". what happend is: i created form file upload submit button.when choose file , click on submit loader starts.but file not coming server.my expectation when click submit button reads data file , push server depending upon packet size mentioned in phpseclib. any 1 explained me misunderstood or whats happening while loader showing in browser? edit: file upload has no issues.only thing why called late.so while uploading whether php move file server tempdirectories. if why need go ftp upload. i tested 100mb files.files uploaded.what expectation why doesnt start after click submit button? do have enctype="multipart/form-data" form? in html, forms need enctype="multipart/form-data" attribute upload file. form looks this: <form id="form_id" enctype="multipa...

sql - Rails find method :select alias as id? -

i have .find method in 1 of rails controller actions - relevant part is: .find(:all, :select => 'last_name id, last_name name') i getting odd behaviour trying alias last_name column id - if alias else, works fine (i can last_name xyz , outputs last name in column called xyz, using populate drop-down need have name in id column, need called 'id'). i should point out output id column, "id":0 . could shed light on need column aliased 'id'? thanks! i'm not sure of how can in rails query statement. rails going try , take on id column, casting value returned database id type of column id (presumably integer). that's why id column keeps getting set 0, because "string".to_i #=> 0 however, there way it, once have results back. since have question tagged rails 3, preferable use new activerelation syntax. can following: # first, results query, loop through of them. customer.select("last_name 'ln...

python - Pseudorandom number generator for hashing that can take in any size table -

i constructing pseudo random number generator hashing. algorithm need use follows: initialize integer r equal 1 every time tabling routine called on each successive call random number, set r = r*5 mask lower order n+2 bits of product , place result in r set p = r/4 , return this have far works table of size 2^n, how can change can take in table of size? def rand(size,i) n = math.log(size,2) r = 1 random_list = [] mask = (1 << 2+int(n)) - 1 n in range(1,size+1): r = r*5 r &= mask p = r/4 random_list = random_list + [p] if == 0: return random_list else: return random_list[i-1] i didn't understand how code related algorithm (what random_list?) or how code should structured, assume similar this: class rand: def __init__(self, n): # initialize integer r equal 1 every time tabling routine called self.r = 1 self.n = n ...

java - big insert query fails Hibernate\Postgresql -

i'm trying find out root cause of failure in existing system. don't know it, looks issue in inserting big row postregsql via hibernate. fails insert record w/ text field 50-100k size. should not issue postgresql itself. guess there might settings\parameters in hibernate can affect it. suggestion search direction? first try @ exception, if it's in local machine or server log, more clues. since it's when inserting row, maybe know it's happening. try inserting row text field has few bytes see if works. maybe connection slow , inserting more 50k causes timeout followed rollback. also check out if insertion belongs larger transaction or it's executing on smaller one. try doing insertion in plain jdbc (just temporarily) see if works , rule out connection issues. if problem not in connection can start tweaking hibernate parameters. maybe disabling 2nd cache. stack exception or debugging session helpful know parameters change.

Available Memory Size in Visual Studio C++ -

i developing "pyramid" game uses minimax tree searches "best" move .. game freezing. my deduction it's memory problem using 124kb of memory. how memory can allocate new operator? or, memory limit assigned application default. the os decide how memory you'll able allocate @ each given time, making question impossible answer. i you, show faulty code instead of thinking it's compiler or environnement wrong. 124kb nothing on platforms. if it's not throwing bad_alloc, doubt new call fail. it's not real problem.

flex3 - convert UTC time to date time format in flex? -

how convert utc time date time format in flex. using sdk 3.5. example have current date time in utc format 1309522586000 (milliseconds) , want convert friday jul 1 2011. how can this?? thanks if using unix timestamp retrieving server, first have multiply 1000. this because unix timestamps expressed in seconds whereas actionscript timestamps expressed in milliseconds. you can create date timestamp follows: var mydate:date = new date(1309522586000); next, create formatdate function call mydate parameter: <fx:declarations> <!-- place non-visual elements (e.g., services, value objects) here --> <mx:dateformatter id="mydf" formatstring="eeee mmm d yyyy"/> </fx:declarations> <fx:script> <![cdata[ private function formatdate(date:date):void{ trace(mydf.format(date)); } ]]> </fx:script> notice using dateformatter format date correctly. more dateformatter , ...

javascript - Is there anyways to change the look and feel of the default alert window -

possible duplicate: change native confirm/alert alert("hello") is there anyway change style of default alert box rather providing user same old windows feel.. no, hardcoded browser. use jquery ui dialogs rather alerts, they're customizable: http://jqueryui.com/demos/dialog/

c - How to send SIGSTOP to all processes that launched from a shell script -

i have shell script launches 4 other binaries. sending sigstop shell script. stop other 4 processes also? if not, should forward sigstop these processes? similar case sigcont. i have c source code 4 binaries. you can call setpgid() in forked child process execute shell script. give spawned processes shell script same group id child process. can use killpg() send signal entire group processes in group receive. for instance, if inside child process called setpgid(0, 0) , setup special instance child-process' group id set same value child's pid. processes overlaid on child process using 1 of exec family of functions have same group-id value child had. in addition, processes newly overlaid process may spawn have same group id (i.e., shell-script). can then, using killpg() , send signal processes sharing group id value using child's pid value fork() returned since group id of child process same value child's pid after setpgid(0, 0) call. if using ...