Hacker Newsnew | past | comments | ask | show | jobs | submit | Snowda's commentslogin

It's not what you know, but how who you know, know, know how you think.


I think its less hammer more nail vs screw. Both can hold wood to a wall and will be part of the building when you are done. For example a nail can splinter the wood which can cause a break down the line while a screw wouldn't encounter such an issue.


That goes even further, a nail gun can be much faster than a drill when doing large construction, but is more dangerous and easier to hurt yourself or mess up with.

Ie. MySQL is easier to get started with (well, was, nowadays it's much of a muchness), and is easier to scale in some situations but you trade for some other features and useful things.

Screws and nails are both useful, but I wouldn't just rely on one for every project :)


Would it be better to adjust the first element rather than the last one, as the first element is most likely to be the most important?


I think it's just for effect - the point of the article is determining which elements to act on. The author mentions you could just apply centering to the element instead.


Depending on the logic in the site, that may be true. However you can't use the technique used here verbatim, as it relies on being able to use the last element and the nth element together to determine the number of elements and whether or not the element should be stretched.



I remember back when the earthquake hit we were in the engineering lab at university and we were gathered around one of the workstations watching YouTube video's of the even half way around the world. We were shocked but we were fairly confident that their government had a handle on the situation. They are an earthquake prone country after all, they surely planned for this. My roommate was a transfer studying English and had a few friends from South Korea and Japan. They were going to a pub and I came along for the ride. I will never forget that night.

1. One of his friends got a phone call telling him his best friend was missing. He left and I never saw the guy again, I don't know what happened to his friend. This made the situation really feel real to me. Not just something just happening on TV.

2. While talking to a Japanese guy there (who I knew well and had a history of being BRUTALLY honest about his own country) said straight up: "This is worse than the government is admitting". Even before problems with Fukushima were announced he said this. I was dumbstruck by how the people could truly not believe their own government in any of the slightest and how despite this the Government perpetually wants to pretend everything is fine to keep the populous calm. As time has gone on I only further believe him on this fact. And I believe that it is still worse than they are currently admitting.


Anybody know a similar piece of software for C or Python?


For C, C++ or Objective-C check out the Clang Static Analyzer.

http://clang-analyzer.llvm.org/


For python: pylint is nice

http://www.logilab.org/857


I bought some EM radiation blocking cloth from LessEMF and stitched it to the inside pocket of my jacket which I rarely use. If I'm feeling paranoid (or if I'm not arsed to turn on airplane mode to save battery) I just put it in that pocket instead of the normal one and zero communications can get in (especially my mother)


curious. Do you notice decreased battery life if you do this? I would think you would chew through battery like a mofo if you block carrier, but leave the phone on. It's gonna try hard to hit a tower non-stop, I expect.


My phone does. If I ever take it to an area with zero reception and forget to turn on airplane mode, the battery dies in 2-3 hours.


This. This makes me smile. For the name, tagline and the application.


If I was the OP I would just ask them to stick my name somewhere in the credits and call it a day.


Credits in movies are unbelievably Byzantine. But putting his name in the 'thanks' section at the end would be pretty neat.


If I was the OP, I would do exactly what he is doing. This in no way deserves a credit in a movie.


Why not? If they used 3 seconds of somebody's music, you can be sure they'd have to give some credit for that - at the very least!

Look at the average credits for the average film. They go on forever, and there are tons of people in them. It's not like crediting somebody is a big deal, in terms of the cost of giving it out. There are plenty of people whose contribution to the film was small, just like the author of this code, but they get credited anyway, and that's just as it should be - the credit is for the contribution, not for the extent to which it makes the film a success.


I think a better example would be a scene where someone is reading a book. I kind of doubt they would give credit to Earnest Hemingway in the credits, but maybe I'm wrong.


The difference here is that it appears we are meant to believe a character in the movie wrote the code. I may be wrong since it's hard to tell from a promo what is happening, except for LOTS OF EXPLOSIONS.


If I was the OP I would send them a letter saying

"Not that it's needed, but I hereby grant any permissions needed for the inclusion of my code in the movie in any format it's released in. If anyone involved would like to show gratitude for this, I'd like to receive a copy of the movie on DVD or Blu-ray after it's released that way, with either the cover or an insert signed by the director or one of the named actors in the movie - or just a spare poster or bit of promotional material if planning something for after DVD release is going to be a headache.

Thanks for using my code!"


I do love my self driving car


What's your point? It's not useful because you don't have one?


It's not useful because nobody has one. Google have yet to "do" it. Their self driving car is as useful to anyone reading this as human teleportation right now. They're great idea's but until they are accessible in some form to the public, it is still just an idea that needs work not an innovation.

I look forward to the day I can say I do have one though.


"I don't use Golang, so it doesn't count as a useful innovation!" ;-)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: