Better HN
topnewbestaskshowjobs
Log inSign up

krisrak

173 karma · joined Oct 19, 2010 (16y ago) · 100 submissions

Web | Mobile | Software Developer...

works for Intel, side-projects at http://initlabs.com,

twitter @krisrak

Submissions

comment 9y ago · link · parent

I got reply from Instagram that they are aware of issue and working on it.

comment 9y ago · link · parent

I'm creator of https://picodash.com, I noticed the same issue about a week ago but did not get any complains from my customers, so debugged it for 8 hours until I found this (I know it will be hard to believe):

I kept getting "Matching code was not found or was already used." when using thru my oauth python code which btw has been working for 6 years now. But when I used curl to do POST, it worked, when I tried Curl again with same oauth code, it failed, So I think this is something that was recently changed by Instagram, the oauth code only works one time, I kind of remember this code could be used more than once before to make POST call, but there was time limit instead, after which using same code was failing.

So with me, this was always failing, but no complains from my customers, I could see logs that new people were signing up.

I started testing on localhost, I added debug logs, I did notice that there was 2 POST calls being made, so it was failing. I could see that 2 POST calls was made and first one did work and get access_token, but there was a second call made and this was error 400 and oauth flow was failing. Almost looked like a retry of POST call, cause my code should only make one.

I started trying different browsers, failed on all firefox,IE, safari, chrome. And then decided to try on my iphone, it worked 100%, so looked for difference, it was on LTE, so I guessed may be my wifi, switched to wifi on iphone and it started failing 100%. So now on my dev system, I connected modem directly to system without router and tried, it passed 100%, so it was my wireless router (I know weird), I tried another 3rd party instagram web app, had same issue but worked without the wireless router. So on Monday I got another wireless router and no issues, it started working. So this could be an isolated incident for me, I came to conclusion that I was using some old router that was dropping POST request and making second attempt and failing.

So I guess if this is affecting all your customer check you code by putting logs that you are making one POST request. Try making a CURL after you receive the code and make sure it is working on first attempt.

Today after reading this, I check my oauth login again, I did notice it fail few times, but when I try again, it is passing, so something changed again I think.

3.

WKWebView vs. UIWebView for HTML5 apps(blog.initlabs.com ↗)

1 points · by krisrak · 12y ago · discuss

comment 12y ago · link · parent

How about just using a gif image of pong in the pull-to-refresh block instead of all the complicated code

5.

Creating Apps with Native OS like performance using HTML5(blog.initlabs.com ↗)

1 points · by krisrak · 12y ago · discuss

comment 13y ago · link · parent

Finally there was security guard posted today for Banksy's art

comment 13y ago · link · parent

I guess so, both are vandalism, but banksy's vandalism is preferred one if there was a choice

comment 13y ago · link · parent

interesting thought

9.

Banksy artwork vandalized in New York(blog.gramfeed.com ↗)

19 points · by krisrak · 13y ago · 35 comments

10.

Almost a million #ios7 photos posted on instagram (gramfeed.com ↗)

1 points · by krisrak · 13y ago · discuss

comment 14y ago · link · parent

Yep, that's a known implementation gap, there was no simple way to implement it, do skipped it, will work on finding a solution, thanks

comment 14y ago · link · parent

Good point, may be I should disable displaying electoral count for historical maps until actual numbers are implemented, thanks

comment 14y ago · link · parent

Here is example of a predicted map: http://www.votenight.com/p/1tptn

comment 14y ago · link · parent

votenight.com allows people to predict US Electoral map and share shortURL of the Electoral map. You can embed the electoral map prediction on your website / blog. Looking for any kind of feedback on this project that can make it easier and fun for people to use.

15.

Predict 2012 US Presidential Election, share shortURL - feedback pls(votenight.com ↗)

6 points · by krisrak · 14y ago · 6 comments

16.

Why Instagram acquisition by Facebook is a good thing(blog.gramfeed.com ↗)

1 points · by krisrak · 14y ago · discuss

17.

Little implementation detail that makes a big difference for email sign-up UX(blog.initlabs.com ↗)

2 points · by krisrak · 14y ago · discuss

18.

Funny and Hilarious reactions after Instagram Android release(blog.gramfeed.com ↗)

1 points · by krisrak · 14y ago · discuss

19.

Android gets Instagram, Apple fanboy flamewar is already raging(gramfeed.com ↗)

1 points · by krisrak · 14y ago · discuss

20.

Android users, welcome to Instagram on the Web(gramfeed.com ↗)

1 points · by krisrak · 14y ago · discuss

comment 14y ago · link · parent

Nobody will win, they will be forgotten, just like how everyone forgot about group messaging apps after sxsw 2011

22.

One simple way to make display ads look more like content(blog.cannedbanners.com ↗)

1 points · by krisrak · 14y ago · discuss

23.

How Gramfeed went from a 2 hour project to a beast visited by 2 million people(thenextweb.com ↗)

1 points · by krisrak · 14y ago · discuss

comment 14y ago · link · parent

it depends on how big your data is, but every query operation, every fetch, every write operation it charged. http://code.google.com/appengine/docs/billing.html has details on how many read/write datastore API calls are made per operation. if u have to write in a new column for thousands of entries, then it will cost a bit, $0.10/100k operations, one re-write has 7 operations + incoming/outgoing bandwidth cost + instance usage cost will apply, it is hard to estimate actual cost.

comment 14y ago · link · parent

1 - gramfeed is paid, http://code.google.com/appengine/docs/billing.html is correct, dont know what the other one is, i think that $9/month in minimun fee, i go past it anyway.

2 - datastore query is expensive but memcache works great, so cache frequently accessed data

3 - i make sure that whenever i put() any data, i immediately set Memcache, and before making any get() from datastore, I try get Memcache first, this should not cause issues.

comment 14y ago · link · parent

yeah, one man team.

comment 14y ago · link · parent

Yes, it is monetized by Ads and affiliate programs from photo printing companies

28.

2 hour side-project to 2 million visitors(blog.gramfeed.com ↗)

79 points · by krisrak · 14y ago · 12 comments

29.

How to pin blocked content to Pinterest(blog.initlabs.com ↗)

5 points · by krisrak · 14y ago · 1 comment

comment 14y ago · link · parent

Here is how you pin blocked content to Pinterest in simple steps ;) http://blog.initlabs.com/post/18226946517/how-to-pin-blocked...
1234