News for hackers. Stuff that matters.

digitallimit

In a lot of APIs I've dealt with, you can create resources with ids that match your own resources, hence wanting to use PUT for creation, e.g. if you have users in your application and you want to extend them to this web service, instead of having to store an additional "foreign key" per user, you can just PUT users in the web service with ids from your own service.

I'm doing this for the API I'm building, as modeled on FatSecret's API.

I'd appreciate other people's input on these choices. I'm currently implementing an API much in the way of these standards, but I'm almost buckling and implementing PATCH since I feel dirty having PUT do so much, so incorrectly.
I searched for "Hero Academy" and the first result was Google's 5th result, a site called Hero Academy with the url "hero-academy.com". That's not very "million short", IMHO.
Re:CSS3 Scroll Effects on Sunday April 15, 2012 @02:25AM (#3842987)
Keep me posted! (mherodev at gmail)
Re:Part 2 Dart vs Go vs Python (and PyPy) Performance on Thursday April 12, 2012 @03:05AM (#3831349)
How does Ruby compare?
Re:Subtle Sans: A Free (Pay What You Want) Font on Monday April 02, 2012 @11:50AM (#3788656)
How do I install this for use on my website? I've never included fonts before, outside of the Google Web Fonts API which just asks I stick a link tag in the template.

<link href='http://fonts.googleapis.com/css?family=Oxygen rel='stylesheet' type='text/css'>

Re:Google maps 8bit quest mode. A setup for 4/1 perhaps? on Saturday March 31, 2012 @08:06PM (#3782015)
Madison, Wisconsin (http://g.co/maps/pnsev) has an imagined Monona Terrace as well as some kids with silly hats.
Re:Codename: Svbtle by Dustin Curtis on Friday March 23, 2012 @04:48AM (#3744214)
You're just missing the stark, black and white interface.
Re:Looks Like Zynga Just Bought OMGPOP For $200 Million on Wednesday March 21, 2012 @03:45PM (#3736231)
What the hell is "Games List?"
Re:Looks Like Zynga Just Bought OMGPOP For $200 Million on Wednesday March 21, 2012 @03:43PM (#3736218)
Better yet, Draw With Friends.
Are you guys hiring? :P
Re:A "real" user proves Windows 8 fails on the desktop on Monday March 12, 2012 @10:35AM (#3693642)
How do you switch back with the mouse?

Ask HN: How do I track down the HTML5 Rocks' Scrollbar source?

I really like the look of the scrollbars on HTML5 Rocks' home site under Mobile and Business (http://www.html5rocks.com/en/business) and I want to use them, or at least check out the code for inspiration on making my own.That said, my usual route of inspecting the element (Chrome Development Tools), grabbing the relevant class or id, and then scouring scripts via Find has left me empty handed,...

( Read More... | no comments | 2 points | on HN )
I really like the look of the scrollbars on HTML5 Rocks' home site under Mobile and Business and I want to use them, or at least check out the code for inspiration on making my own.

That said, my usual route of inspecting the element, grabbing the relevant class or id, and then scouring scripts via Find has left me empty handed, in large part due to the minification making the scripts much harder to read, and my inability to find any js references to that one_half class that is applying the new sex.

Does anyone have any other strategies?

I reposted this text since it doesn't appear under the parent (apparently you can't do a link with text).