HNHacker News
TopNewBestAskShowJobs

sahat

836 karma · joined April 17, 2012

submissionscomments
sahat··on Why I think Tesla is building throwaway cars
I don't remember the details, but in one of the recent updates they increased the performance at top speed and initial start (below 3 mph). Prior to that, 85D and 90D (all-wheel drive configuration) got a significant boost to its 0-60 performance via a software update.

Since all the hardware is controlled via a software firmware, they are able to tweak the voltage supply of each motor to decrease or increase output performance.

sahat··on Continuum Analytics Raises $24M Series A for Anaconda Python and PyData
Congrats Travis, Peter and everyone from Continuum Analytics!
sahat··on The Electric Car
If you own a Tesla Model S and live near a supercharger network, charging is not an issue. Over 8,000 miles in my Model S, all powered exclusively by the superchargers, free of charge.

Note: I live in an apartment less than 2 miles from the nearest supercharger in Los Angeles and only 8 miles from work. So, the range is never a problem.

sahat··on Pure UI
That was my initial reaction as well. Pretty interesting concept. Front page Hacker News web traffic to your website in real-time.
sahat··on React on ES6+
Meh, mixins are anti-pattern and I am glad they are finally gone. In my experience mixins just make your code hard to read.
sahat··on Los Angeles Plays Itself
I actually commute every day via 405 and 10. You are right, it's awful during the rush hour, but during non-rush hours it is still faster than taking local streets. A few weeks ago I left work via 405 at 4:45pm and arrived home at 7:10pm, the commute that would take no more than 12-15 minutes without traffic.
sahat··on Google I/O 2015
It's nice to see Google using Polymer.js on their pages.
sahat··on [dead]
Are they going to take it down like Microsoft did with Monster Truck Madness 2 website?
sahat··on 1 Year of GitHub Streak
That's an excellent question. Doing this did not, at any point in time, feel like I was sacrificing my time for other fun activities. I enjoy coding the point of addiction sometimes.

On contrary, I felt the opposite most of the time - "I should be writing code right now instead of playing video games or socializing on weekends." But that will differ from person to person. Certainly not everyone will enjoy programming 24/7.

sahat··on Show HN: Satellizer – Authentication for AngularJS
Satellizer gives you an illusion that you're doing an implicit grant flow by opening a popup and then magically you are signed-in. But authorization process is handled on the server: https://github.com/sahat/satellizer/blob/master/examples/ser...

I just implemented a GitHub sign-in and it took me only 8 minutes because on the server it was mostly copy-&-paste of the Facebook sign-in and on the client it's just:

  $authProvider.oauth2({
    name: 'github',
    clientId: 'xxxxxx',
    url: '/auth/github',
    authorizationEndpoint: 'https://github.com/login/oauth/authorize',
    redirectUri: window.location.origin
  });
Thank you. I like React too so perhaps someone could implement something like Satellizer that integrates with React.
sahat··on Show HN: Satellizer – Authentication for AngularJS
Satellizer is designed to be used without auth libraries such as Passport (Node), OmniAuth (Ruby). On Python-side all you need is the requests library. It is so by design to avoid relying on third-party libraries. Additionally, if I were to implement it with a server-side auth library there is no choice but to use full page redirects, i.e redirect to Facebook, authorize the app, redirect back to the app.
sahat··on Show HN: Satellizer – Authentication for AngularJS
@pingburg @filearts You are right, unique account validation and error handling belong to the server. What Satellizer can do is catch an error through the $auth.authenticate().catch() promise and display it to the user. I will definitely update the documention very soon. The README of https://github.com/sahat/hackathon-starter could fit on a screen when I first posted it on Hacker News earlier this year; it is now 1300+ lines long.
sahat··on Show HN: Satellizer – Authentication for AngularJS
I have considered Play Framework and Dropwizard. Play it seems is better suited for Scala language and I don't know much about real-world usage of Dropwizard. Between Struts and Spring, Spring seems to have a more active community. I haven't done anything with the Java example yet so Spring can easily swapped for something else if you think that other framework is better. I am not a Java developer so I need someone's help on this one.
sahat··on Show HN: Satellizer – Authentication for AngularJS
I forgot to change the redirect url on dev.twitter.com from http://127.0.0.1:3000 to http://satellizer.herokuapp.com. It should be fixed now.
sahat··on Show HN: Satellizer – Authentication for AngularJS
Satellizer is tightly coupled with Angular so I don't think there is much sense in using it without Angular. You can certaintly take server-side examples and re-implement satellizer.js in pure JavaScript but that is going to be a lot of work! The closest non-Angular alternative that I know of would be Torii (https://github.com/Vestorly/torii/)
sahat··on Material design with Polymer
Where does Polymer stand in relation to React.js from Facebook?
sahat··on Stripe: Open Source Retreat Grantees
Congrats to the grantees! I was one of the 120 applicants who was not selected for this program. But I do hope I could work on something equally as exciting this Fall at my first job.
sahat··on LoopBack, a new Node.js framework by StrongLoop
Nice landing page, I'll give them credit for that. But why would I want to use this instead of Express or Restler?
sahat··on Superhero.js – One stop for JS Knowledge
Working on it: http://jsrecipes.org
sahat··on Production AWS keys on GitHub
I was charged over $1696.00 in AWS Usage fees for putting my production AWS keys on GitHub. So think twice before you put any production keys out there, for the whole world to see. UPDATE: As spydertennis mentioned, I also had 15 Double XL EC2 instances running in multiple regions.
sahat··on Announcing Two Scoops of Django 1.6
Is Django still relevant in the web community? I watched "Making Disqus Realtime" a year ago, where they were talking about building a real-time system using Django, gevent, gunicorn, Redis, Flask, nginx, haproxy. The entire stack could be condensed into node.js + socket.io.
sahat··on React: Finally, a great server/client web stack
Downloaded rendr, fired up the first example simple_00, opening links - Users and Repos, was painfully slow. With server MVC frameworks at least there is an indication by the browser that page you clicked on is currently loading. With client-side MVC frameworks pages usually load instantly and data arrives shortly after. In rendr, maybe it's just a terrible example, you wait 2+ seconds for a page to load and there is zero indication that page is loading.
sahat··on React: Finally, a great server/client web stack
I would be interested to know what exactly React solves when we already have so many options - Ember, Angular, Backbone to do the same thing.

Why would one want to increase the complexity of the application by introducing "yet another new thing" on an already complex architecture.

I am just not sold on React. If someone could show a demo of why should we use React instead of, Backbone.View for example, then we can talk.

sahat··on Ember.js or Angular.js?
Take a look at source code examples of Angular and Ember Todo apps: http://addyosmani.github.com/todomvc/

Some interesting facts about Todo apps:

Angular.js: 10 requests, 41.94kb transferred.

Ember.js: 17 requests, 334.12kb transferred.

sahat··on Ember.js 1.0 RC1 released
There is an in-depth comparison of two frameworks: Backbone.js vs Ember.js.

Link: http://net.tutsplus.com/tutorials/javascript-ajax/game-on-ba...

sahat··on Facebook's 2012
I deleted my Facebook this summer and haven't looked back.
sahat··on I love you, dad
You know what they say - "you'll never miss, what you never had".
sahat··on IntelliJ IDEA 12 Released
It has already been unchecked. But then I found View > Navigation Bar. That's exactly what I was looking for.
sahat··on IntelliJ IDEA 12 Released
How do you hide the top toolbar completely? (http://i.imgur.com/rhZQZ.png)
sahat··on WebSockets and WebGL used to create multiplayer shoot'em up
Impressive. This is the most fun HTML5 games that I played.
Page 1 of 2Next →