Most apps need to communicate with servers to store and share data, and many of those apps do so through Restful APIs or realtime data services. In this month's meetup, our two speakers are going to show us two powerful tools to facilitate this communication. Martin Gontovnikas, author of Restangular, will demonstrate how the Restangular service provides easy, boilerplate-free REST API interaction. Jeff Cross from the Angular team will be presenting on a new module to facilitate realtime binding of Angular models with various Realtime APIs.
6-6.30p PT: Consuming REST APIs with Restangular (Martin Gontovnikas)
6.30-7p PT: AngularJS binding with Realtime APIs (Jeff Cross of the AngularJS team)
7p - Q&A
Join us in person (RSVP starting 9/3 at http://www.meetup.com/AngularJS-MTV/events/136001952/, doors open at 5:30p PT).
in melodies and memory
from the fear and attraction
of a fickle love.
in the reflection of a memory
you were 17, i was 23
we gave up our tears
to a neon sky.
Had a proper english breakfast, visited Apple and then visited the Goog and saw (omg) then visited the HP Garage and was spontaneously photographed for an article in Le Monde (I guess?) and had an english inspired dinner with spotted dick for dessert. Now watching the opening ceremonies. #amazingday
# Here's the situation:
JS Bin makes use of pushState. When you start typing in an empty bin, a new bin is automatically created for you and you now have a dedicated url. Something like http://jsbin.com/abcd/1/ (the code is abcd, and revision 1).
When the Ajax response comes back saying the initial creation was successful, we pushState the new url and you carry on typing (whilst JS Bin continues to save in the background).
This kinda worked in oldIE already, I would detect pushState support and the browser would reload. At this point you'd have the good url. The crap experience part is reloading whilst you're actually typing. Not acceptable.
I could consider using History.js, but the issue is sharing URLs, loading JS Bin in the right state (since the data is driven by what URL you've visited).
My biggest issue was what if an IE user shared their URL on twitter. If I opened that shared link in Chrome - what would happen?
# The solution:
The solution may look a bit funky, but it kinda works quite well. Simply, instead of doing the refresh in my code (where the user would type and the page would refresh with the updated url), it now just tacks on the new url on the `location.hash`.
In a fresh JS Bin window, that url will look like this: http://jsbin.com/#/abcd/1/edit
However, if I was already on the url http://jsbin.com/abcd/1/edit (note we don't have a hash there), the url will become:
Yep - that's ugly, BUT, ugly is fine if it works. All the share urls contain the correct (non-hash url), so it's only if the user shares this ugly URL do I need to worry.
So, as the very first thing in my code, I have a check that says:
It's not pretty, but it's 2 extra lines to all of JS Bin (which is pretty honking already) and it all just works, which is kinda nice.
I've included a link to the commit I made so you can see the code change if you're interested.
The Humble Indie Bundle #4 (pay what you want and help charity)
Pay what you want for a collection of awesome games, and help support two charities. All of the games are DRM-free and support Mac, Windows,
Silicon Valley Salaries: What Can You Expect to Earn in the Valley?
The Valley's tech job market: There are currently around 48,000 jobs at internet companies in the Valley - more than the
Facebook Messenger, Google+ Huddle and iMessage compared
Now that Facebook has thrown its hat in the ring, there are quite a few choices for mobile messaging on the iPhone and other iOS devices. Th
seldo: Microsoft UI has officially entered the... — 9-Bits by David ...
seldo: “ Microsoft UI has officially entered the realm of self-parody. ” I think I’d find another occupation if I had to work on Windows. Ed
A Guy, A Crate and Seven Days of Lord of the Rings Online - Giant Bomb
Jordan Long's going inside a box and travelling across the country. For art.
Nintendo Slashes 3DS Price to $169.99, Early Adopters Get Free Games - G...
The house that Mario built seems to have taken disappointing hardware sales to heart.
The Kid Who Created Team Fortress 2's Controversial Anti-Free-to ...
Asher Baker created the mod getting headlines, but he's not even against free-to-play.
YouTube - Gamescom Coverage : Hyper WTF is Firefall? (Part 1)
Create AccountSign In. Home. BrowseMoviesUpload. Hey there, this is not a commercial interruption. You're using an outdated browser, whi
Newegg.com - G.SKILL Ripjaws Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR...
Buy G.SKILL Ripjaws Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model F3-12800CL9D-8GBRL with fast shipping
iCloud.com developer beta opens, includes full-featured web interface
Remember when I told you there would still be iCloud web apps once the service took over MobileMe, despite what some other sites were saying
Apple launches 1st generation iPod nano replacement program
Apple has sent out emails to registered owners of 1st generation iPod nanos stating that certain iPod nanos created between September 2005 a