Posts

Instagram API: How to get all user media? -

in general need user media. user has more 250 photos. i /users/1/media/recent/?access_token=...&count=250 but returns 20 photos. maybe instagram has limit getting media. if is, response has pagination solve it. there max id photo. how know first (min) id photo paginate then? you're right, instagram api return 20 images per call. you'll have use pagination feature. if you're trying use api console. you'll want first allow api console authenticate via instagram login. you'll want select oauth2 under authentication dropdown. once authenticated, use left hand side menu select users/{user-id}/media/recent endpoint. sake of post {user-id} can replace self. use account retrieve information. at bare minimum what's needed endpoint. once send, you'll json returned you. @ top of returned information after server info, you'll see pagination portion next_url , next_max_id. next_max_id you'll use parameter query. remember max_id ...

mysql - SQL Multi table select query -

http://i.stack.imgur.com/mbuti.jpg i want multi select in 1 query 1 table has data many tables. have 4 tables combine single output. here image of table. i want select , don't want other data other table main table name of other tables have tried following not working. select * project_content left join project_master on project_master.id = project_content.p_id left join project_content_menu on project_content_menu.type_id = project_content.p_c_id left join project_menu_master on project_menu_master.id = project_content.m_id select * project_content left join project_master on project_master.id = project_content.p_id left join project_content_menu on project_content_menu.type_id = project_content.p_c_id left join project_menu_master on project_menu_master.id = project_content.m_id select distinct(*) project_content left outer join project_master on project_master.id = project_content.p_id left outer join ...

javascript - Scope issue inside a custom object -

i think having scope visibility issue can't figure out exactly: when log variable displayatonce right result, try use buttons nothing in return. have tried log this.navbuttons empty set... don't what's wrong code. <!-- html code --> <div id="nav"> <a href="#" data-dir="prev">previous</a> <a href="#" data-dir="next">next</a> </div> /* js script jquery */ (function() { var newsnavigator = { init: function(config) { this.navbuttons = config.navbuttons; this.displayatonce = config.displayatonce; this.counter = 0; this.shownews(); this.enablenav(); }, shownews: function() { console.log(this.displayatonce); }, enablenav: function() { console.log(this.navbuttons); this.navbuttons.on('click', function() { console.log("clicked"); }); } }; ne...

php - Google plus API for fetching business reviews? -

is there php api business reviews google plus? sample business page url: https://plus.google.com/112164489386569071900/about?gl=in&hl=en-in i suggest use google places api: guess results same 1 displayed on g+ https://developers.google.com/places/documentation/details

asp.net mvc 3 - Submit with a jQuery Prompt -

let's have generic jquery prompt asks me rename element , tells me entered: $(function () { $("#rename").click(function () { jprompt('please enter new name:', 'enter new name...', 'rename prompt', function (r) { if (r) { alert('you entered ' + r); } }); }); }); but element wish rename stored on database on server, means need run server-side script rename element. assume means need use submit, on form. i've found information .submit() jquery function here not entirely understand how works. if let me know how make submit , run server-side script appreciated. $(function () { $("#rename").click(function (e) { e.preventdefault(); jprompt('please enter new name:', 'enter new name...', 'rename prompt', function (r) { if (r) { $('input[name="newname"]').val(r.name); $.post(...

JOIN MySQL Tables -

i have following tables format: members mem_id | mem_name ------------------ 1 2 b 3 c project_members fk_mem_id | meb_parent_id ------------------------- 1 0 2 1 3 2 and require result like: mem_id | child| parent -------------------------- 1 null 2 b 3 c b i tried fail.. idea....? select pm.*, m1.meb_name child, m2.meb_name parent members m1 left join members m2 on m1.meb_parent_id = m2.meb_id select project_members.fk_mem_id, a.mem_name child, b.mem_name parent project_members inner join members on project_members.fk_mem_id = a.mem_id left join members b on project_members.meb_parent_id = b.mem_id

objective c - Connect a UITapGestureRecognizer to a UIView -

i'm trying connect gesture uiview can tap on object, not working. doing wrong? shape.h #import <uikit/uikit.h> @interface shape : uiview; - (id) initwithx: (int)xval andy: (int)yval; @end shape.m #import "shape.h" @implementation shape - (id) initwithx:(int )xval andy:(int)yval { self = [super init]; uiview *shape = [[uiview alloc] initwithframe:cgrectmake(xval, yval, 10, 10)]; shape.backgroundcolor = [uicolor redcolor]; shape.userinteractionenabled = yes; [self addsubview:shape]; return self; } @end modified code: following code in main viewcontroller. have removed uitapgesturerecognizer shape class. code works if make following change, 'box' responds tap gesture, not 'shape': [shape addgesturerecognizer:tap]; [box addgesturerecognizer:tap]; - (void)handlertap:(uitapgesturerecognizer *)recognizer { //cgpoint location = [recognizer locationinview:[recognizer.view superview]]; nslog(@...