News for hackers. Stuff that matters.

sahat

Re:Why I think Tesla is building throwaway cars on Sunday March 06, 2016 @11:49AM (#11234392)
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.

Congrats Travis, Peter and everyone from Continuum Analytics!
Re:The Electric Car on Monday July 13, 2015 @10:20PM (#9882484)
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.

Re:Pure UI on Monday July 13, 2015 @02:08PM (#9879856)
That was my initial reaction as well. Pretty interesting concept. Front page Hacker News web traffic to your website in real-time.
Re:React on ES6+ on Wednesday July 08, 2015 @04:23AM (#9850429)
Meh, mixins are anti-pattern and I am glad they are finally gone. In my experience mixins just make your code hard to read.
Re:Los Angeles Plays Itself on Wednesday May 27, 2015 @06:25PM (#9614832)
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.
Re:Google I/O 2015 on Tuesday February 10, 2015 @04:21PM (#9029992)
It's nice to see Google using Polymer.js on their pages.
Re:Apple – Web Badges on Tuesday October 14, 2014 @10:46PM (#8456956)
Are they going to take it down like Microsoft did with Monster Truck Madness 2 website?
Re:1 Year of GitHub Streak on Thursday September 11, 2014 @02:49AM (#8301205)
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.

1 Year of GitHub Streak

Greetings HN community,A year ago, during my senior year in college I have decided to write code every single day as a way to improve my coding skills. Today, I am happy to say that I've made it to 365 days without breaking a streak.Was it worth it? Yes, definitely! Without doing this, neither Hackathon Starter nor Satellizer.js projects would exist on GitHub today.https://github.com/sahat

( Read More... | 6 comments | 18 points | on HN )
Re:Show HN: Satellizer – Authentication for AngularJS on Monday August 18, 2014 @11:12PM (#8195899)
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.
Re:Show HN: Satellizer – Authentication for AngularJS on Monday August 18, 2014 @10:50PM (#8195829)
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.
Re:Show HN: Satellizer – Authentication for AngularJS on Monday August 18, 2014 @10:49PM (#8195823)
@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.
Re:Show HN: Satellizer – Authentication for AngularJS on Monday August 18, 2014 @10:48PM (#8195816)
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.
Re:Show HN: Satellizer – Authentication for AngularJS on Monday August 18, 2014 @10:47PM (#8195812)
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.
Re:Show HN: Satellizer – Authentication for AngularJS on Monday August 18, 2014 @10:47PM (#8195810)
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/)
Re:Material design with Polymer on Wednesday June 25, 2014 @03:08PM (#7946123)
Where does Polymer stand in relation to React.js from Facebook?
Re:Stripe: Open Source Retreat Grantees on Friday June 06, 2014 @05:34PM (#7860383)
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.
Re:LoopBack, a new Node.js framework by StrongLoop on Sunday May 25, 2014 @12:02PM (#7796625)
Nice landing page, I'll give them credit for that. But why would I want to use this instead of Express or Restler?
Re:Superhero.js – One stop for JS Knowledge on Monday April 07, 2014 @12:00PM (#7547258)
Working on it: http://jsrecipes.org

Older »