Posts

Posting with facebook api a message containing friend's names as links -

i want simple thing yet seems none of fb api options (graph/others) seem able solve it. say "johny brown" friend , want include name in wall post. can type @johny brown facebook shows nice dropdown can select name. however same behavior cannot mimicked using facebook api. any tips appreciated. tried "@" before name, using full url, using "name" etc. none of them work. yup you're correct. in new graph api facebook removed feature (possibly due spamming).

postgresql - Engineyard using postgis -

i have instance in engineyard , want install postgis. i tried several things chef had no success @ all. has installed postgis on engineyard successfully? , can tell me how did it? i installed manually sudo...

Getting part of an image with MATLAB -

i'm doing final project in matlab on "license plate correlation". user selects plate roi function, afterwards want plate. how can this? after using roi function, use getposition on handle. gives vector [x_min y_min width height]. can use sub image. imshow(i,[]) h = imrect; cord = getposition(h); sub_i = i(cord(2):cord(2)+cord(4),cord(1):cord(1)+cord(3));

java - Why should i give a name to an If Statement? -

i discovered can give name , while statements. understand useful if want break or continue specific loop. why should give name if?? looks useless name: if(true){ //do } this compiles without problems if have code block name, can use break exit it, use have found naming blocks. name: if(true) { // if(/* condition */) { break name; } // more } it works without if: name: { // if(/* condition */) { break name; } // more } this comes in work when there set of guard conditions on logic, , set of logic fallen down regardless of outcome of guards. a further example alternative structures more difficult read , modify: block: if(/* guard */) { // prep work if(/* guard */) { break block; } // prep work if(/* guard */) { break block; } // real work } though use bare block , not if.

CSS3 Font Embedding doesn't work at Iphone OS3.0 safari? -

i tried embed font @ web pages. can see font rendering @ latest non-ie browsers, when tried iphone safari browser, doesn't render. want know whether iphone safari supports font embedding. thanks. they work in svg format. use fontsquirrel.com generator make svg version.

iphone - Created NSURL is null -

nsurl printing null . what's reason? nsstring *webstr = [[nsstring alloc] initwithformat:@"%@",[webarray objectatindex:1]]; nslog(@"urlstring = %@",webstr); // printing correct url string nsurl *weburl = [[nsurl alloc] initwithstring:webstr]; nslog(@"url = %@",weburl); // printing null [weburl release]; [webstr release]; you should following. nsstring *webstr = [[nsstring alloc] initwithformat:@"%@",[webarray objectatindex:1]]; nslog(@"urlstring = %@",webstr); // printing correct url string nsurl *weburl = [[nsurl alloc] initwithstring:[webstr stringbyaddingpercentescapesusingencoding:nsasciistringencoding]]; nslog(@"url = %@",weburl); // should print [weburl release]; [webstr release]; i have used nsasciistringencoding can use utf8 or other encoding.

iphone - UITableView with Activity indicator -

i want display huge amount of local data(sqlite3 database) in tableview, while loading want display activity indicator , after loading want disable it, not working. can me please? you can use table cell accessoryview, in case activity indicator placed on right of cell (in place of ">" disclosure). when action related activity indicator terminates, can replace activity indicator standard disclosure accessory.