News for hackers. Stuff that matters.

DanielN

This is really nice! I was similarly bothered by biases in new sources so I built https://chrome.google.com/webstore/detail/bias-tracker/mhijk...
Re:Build Your Own Lockitron With Twilio, Arduino, and Node.js on Thursday March 27, 2014 @07:07PM (#7484137)
The servo is mounted to the piece of rubber which is then mounted to the doorknob. The only thing keeping the servo on the lock is friction.
Re:Build Your Own Lockitron With Twilio, Arduino, and Node.js on Thursday March 27, 2014 @06:54PM (#7484084)
I've been building a lockitron clone using a raspberry pi. The key functionality selling point for me was being able to lock/unlock the door base on proximity like lockitron's "sense" feature.

Turns out this is much more difficult than it sounds because bluetooth le rssi is pretty unreliable. I've figured how to get it working for my particular case but I would be curious how lockitron configures it to work consistently for a wider range of locations and devices.

On a separate note, the servo can be attached to the door without duct tape or modifying the door if you have a door like [1]. I simply bought a piece of rubber tubing that fits over the knob and then configured a smaller piece of rubber to fit the servo arm to the lock piece on the knob. This design is also nice in that if the device malfunctions a key can override it.

1 - http://www.happynews.com/living/livingimages/remove-door-kno...

Re:Teaching Someone To Code Is Partly A Hardware Problem on Monday August 19, 2013 @01:04AM (#6235710)
This. I often tutor beginners wanting to learn to code and environment setup is by far the biggest hurdle. Frankly, think about the last time you started learning a new language, it's usually the biggest hurdle for experienced programmers as well.

The next biggest hurdle for beginners is usually grasping basic design patterns or the request response pattern of client server interaction. This is usually difficult because a lot of the nomenclature isn't there yet. But that is nothing in comparison to the struggle it is to walk someone through basic environment setup for RoR even node.

Re:Ask HN: I need a paid rails tutor on Monday August 05, 2013 @10:41PM (#6164534)
Put your email in you profile under about or drop me a line.
Re:Client won’t pay, my final resort on Wednesday July 03, 2013 @02:02PM (#5986355)
If you ever think of doing this STOP, watch this video http://vimeo.com/22053820 and then reconsider.

Better yet, watch that video now, hire a lawyer like every other freelancer on the planet and avoid such a mess entirely!

When I've tutored for web development and CS I've surprisingly been able to change the same as my freelance rates. This might suggest that I don't charge enough for freelancing, but I charge above my hourly rate at work and live comfortably in the bay area.
Re:A Social Coding Experiment on Monday April 22, 2013 @12:38AM (#5587802)
yeah, choosing to do this in python might not have been the best idea.
Guys there is an easy way around your problem. if your results are as good as you say they are then its just a matter of tweaking your ux. offload the result delivery to email and pubsub the actual search. If you have thought of this I would be interested in hearing why it doesn't work. If not then please at least include it as an option.
Re:Firefox Will Soon Block Third-Party Cookies on Saturday February 23, 2013 @08:25PM (#5272295)
There is plenty of third party javascript that is not at all predatory. Pretty much all analytics services, Olark and other similar customer outreach services, A/B testing suites. There is far more of a push to create new more secure avenues for third party js (namely cors and websockets) to exist than there are efforts to eliminate it.

I'm curious how this change will effect services like optimizely that rely on third party cookies to prevent tests being run on the same users multiple times.

Re:Ask HN: what is the most stupid line of code you saw? on Wednesday February 20, 2013 @10:47PM (#5255246)
My personal favorite:

  $array = array('z'=>12, 'o'=>43, 't'=>32, 'th'=>85, 'f'=>91, 'fi'=>42);
Take a minute look at that and tell me what the keys stand for. When you figure it out you'll realize why this is the worst piece of code you've ever seen.
Re:Rejection Therapy: A Hundred Days of 'No' on Thursday January 10, 2013 @01:28AM (#5035796)
Slightly off topic but I enjoyed this and it is a great example of self promotion, something a lot of people here are interested in:

The most recent video on Jia's site is of him asking to race someone. He walks up to a high schooler and his personal trainer explains himself and asks to race one of them. As soon as Jia mentions he is a blogger the trainer without making a direct reference to it casually unzips his jacket to reveal a sweatshirt with the name and logo of his company on it.

It tickled me and made me strangely proud that now because of this man's quick opportune thinking and the happenstance that someone decided to write an article about Jia, likely thousands more people than have ever before will click through and visit http://rwa-texas.com/ .

Re:Ask HN: What's the best way to hire a programming tutor? on Friday January 04, 2013 @11:28PM (#5011601)
Your email isn't in your profile so if you would like to drop me a line and let me know what you're looking for I would be happy to help or suggest some people that might be able to help.
Re:Midwest tech where are you? on Friday December 21, 2012 @12:48AM (#4951673)
http://www.siliconprairienews.com/ is a good starting point. KC, Chicago, Minneapolis, Columbus, Madison, Detroit and Omaha all have great tight knit entrepreneurial communities, as do most of the college towns in the midwest.

I guarantee you there is at least one thriving developer meetup in your area.

Also, it has already happened this year but checkout http://cincinnati.startupweekend.org/ and other startup weekend events in cities near you. They are a great way to meet fellow entrepreneurs and hackers.

Re:"Gun" "Control" on Monday December 17, 2012 @01:29AM (#4931071)
Re:Show HN: Django Model Parsing with Python's AST module on Saturday October 13, 2012 @02:03PM (#4649166)
This seems really cool, but I'm having some trouble coming up with a use case for this. Why would I want to translate my django model to a dictionary?
The testing rules I code by:

- will someone else be touching the code? If yes then I TDD

- Am I likely to be touching the code six months from now? If yes then I at least document with tests.

- Is it a crucial piece of code who's specs I want documented? If yes then I document with tests.

Very well put. I'm not a huge fan of php, but find this possibility of resurgence (particularly because I use the language for my day job) very interesting.
Quite possibly never, but it was arguably the best web language in the early 2000s.
Re:How I make Django Easier on Monday September 24, 2012 @07:35PM (#4567693)
OP here, I would be interested to hear how others automate django project creation.
Re:How I read HN on Friday September 07, 2012 @08:53PM (#4491856)
Re:Codecademy now has Python lessons on Monday July 30, 2012 @11:33PM (#4315560)
I haven't and that is great to know. I guess that was part of my question: How does Codecademy attack the balance that hiring companies want to see when it comes to technical knowledge and experience building real things.
Re:Codecademy now has Python lessons on Monday July 30, 2012 @06:50PM (#4315107)
So from what I understand Codecademy's long term monetization plans seem to be focused on being a middle man between new programmers and companies looking to hire [1].

But I'm curious how this is actually achieved. The key in such a system would be keeping users engaged in the site from the time they first start learning to the point that they are ready and qualified to get their first job. This is likely six months to a year of training (at the low end) and it can't just be 1)learn the basics of javascript 2)learn the basics of html css 3)learn the basics of python.

New programmers with an eye for getting to their first programming job asap are better off building a portfolio that shows that they can work in the full stack and get stuff done. Or alternatively with in the confines of Codecademy if you're not going to have a deep portfolio, showing a mastery of the full stack with deep knowledge or maybe one platform (say deep understanding of javascript and the fundamentals of CS).

I'm curious how Codecademy plans to bridge this divid or if they have other plans in mind (which they probably aren't as willing to share with the masses)

[1] http://www.quora.com/How-will-Codecademy-monetize

Re:Starting a Django Project the Right Way on Wednesday July 25, 2012 @02:26PM (#4292279)
To be honest I haven't used South in about a year so I don't really know how it has changed. But with South I always seemed to be running into issues of it allowing you to modify existing elements of your schema but not add new elements or modify types in your schema.
Re:Starting a Django Project the Right Way on Wednesday July 25, 2012 @12:50PM (#4291790)
I would highly recommend using http://code.google.com/p/django-evolution/ over South
If writing tests for your code is difficult and takes too much time, that is a pretty strong code smell that you're writing unmaintainable code or you are working within an unmaintainable system.

As to the OP's question, the only reasonable scenarios for not writing tests are weekend project style web apps and projects coming out of ad agency style shops where the lifetime of a given project is so short and rushed it doesn't matter whether the code base is maintainable.

The vast majority of places I've talked to in the valley, from three man startups to 100 developer shops, have reported some respectable level of code coverage. It is my opinion that you can read something significant into what is expected of your work and the priorities of the company based on their testing policies.

interesting implementation. I really liked the idea of just building a restful interface that people could plug into however they wanted to.

Older »