HNHacker News
TopNewBestAskShowJobs

th

1,013 karma · joined March 16, 2010

My name is Trey Hunner. I help Python developers & teams level-up their skills.

https://www.pythonmorsels.com http://truthful.technology http://www.treyhunner.com

[ my public key: https://keybase.io/treyhunner; my proof: https://keybase.io/treyhunner/sigs/BZJaTqLkF7FN0VfkNWSvBpSYH0KUmIsrTshacYyW-to ]

submissionscomments
th··on Why wreck a blank canvas?
So a library containing one book has just as much information as a library containing all books except for that one book? That doesn't seem right.
th··on How to avoid the assignment statement
That example bothered me as well mostly because when the move function is placed outside of the class it is now performing a different action. The new function no longer really moves a point so much as it adds two points (regardless of the point/vector issue).

I think many of the naming conventions commonly used in OOP for mutable objects are not as appropriate for their immutable counterparts.

th··on Everyone dials in
Requiring the communication medium to be the same for everyone during a meeting is a great idea. However, I don't this conference call method is scalable for phone conversations. I can't imagine 15 person conference call would be very effective.

I think for larger meetings this "level playing field" solution would probably work much better for video conferencing or combined text/audio conversations such as on Skype. This way simple cues such as "I've got something to say when you are finished" can be used without interrupting.

th··on The Buzzer
Looks like either someone decided to play a prank or by some odd coincidence The Buzzer went offline just now: http://tech.slashdot.org/story/10/06/06/032235/Mysterious-Ra...
th··on Bayes' Theorem Illustrated (My Way)
Probably the most helpful resource online for me academically has been Wikipedia. I have had TAs and professors who recommended reading specific Wikipedia articles to brush up on related topics, especially in math classes.
th··on Google top 1000 sites: Interesting stats about them
So were the other 68.7% all unknown?
th··on Lego printer
This is pretty cool.

I tried to do something similar in high school with some friends. We tried to make a lego robot that would draw like a hand does (not like a line printer). The difference in velocity between a drawing and raised marker created too much error for our robot, but we probably could have fixed this if we had spent more time tweaking variables.

th··on Perfect email regex finally found
Those hard-coded top-level domains in the "improved" regex may also be also an issue: http://en.wikipedia.org/wiki/Top-level_domain#Proposed_domai...
th··on Primer (film)
A word of warning: this movie is entirely dialogue. That being said, it's a great movie.
th··on Chrome-To-Android Extension: Awesome, Deadly
There are various Delicious apps. The beelicious app works pretty well, but it lacks the ability to view bundles (which is only a problem if you depend on them).
th··on Chrome-To-Android Extension: Awesome, Deadly
Actually: you're, that
th··on Six degrees of Black Sabbath
In now looks like Interpol is no more than 15 steps to all of these bands. They must have just updated their data or algorithms.
th··on Six degrees of Black Sabbath
21 steps from Kevin Barnes to Chuck Berry: http://labs.echonest.com/SixDegrees/index?start=kevin+barnes...

And 23 steps from Kevin Barnes to Goldy McJohn: http://labs.echonest.com/SixDegrees/index?start=kevin+barnes...

th··on Six degrees of Black Sabbath
I wonder where they are getting their information from. Connecting Gnarls Barkley to Muddy Waters reveals the song "もしも君まで失くしたら" by Neil Diamond as a connection, which plays Neil Diamond's cover of "The Chanukah Song".
th··on Google Wave Available for Everyone
Buzz serves a similar purpose to twitter while Wave seems like to a mix of Gtalk, Docs, and Gmail. How is Buzz a "wave for everyone"?
th··on Optimising pointer subtraction with 2-adic integers
I never thought I would see p-adic numbers applied to CS. I'm glad my number theory class wasn't a complete waste.
th··on Ask HN: Best resources / websites in your opinion on the www?
[business]

http://www.wsj.com/ (pay-site)

http://www.bloomberg.com/

th··on How to Check If Your Website Is Blocked In China or Not
I tried this as well. The first time Shanghai, China gave 100% packet loss for dropbox.com but every subsequent time I have tried all packets have been delivered.

Pinging facebook.com seems to drop all packets reliably though.

th··on Google Voice invites for students
I think half of the reason Google uses invite-only beta services so much is to make people want the service more. People desire things more when they are scarce: http://en.wikipedia.org/wiki/Scarcity_value
th··on Beautiful Image Hover Effect Using Only Webkit CSS (No JS)
My CPU usage is still lower than it usually is when a Flash plugin is loaded.
th··on Ask HN: Use app first, register later
I'm not sure if this meets your criterion, but StackOverflow does not require registration but it is more beneficial to do so: http://www.stackoverflow.com
th··on Steve Jobs, circa 2020: "Thoughts on country roads"
I like the parody but it's not really a fair comparison. In many cases paved roads evolve out of country roads while nothing can ever evolve out of Flash.
th··on Ask HN: What's the best way to get started with Vi(m)
To become a vim power user, you will really need to understand how and why vim works the way it does and how you should think about editing while using vim. Once you have gone through some of the great tutorials on basic vim usage take a look at these:

Stay out of insert mode: http://cloudhead.io/2010/04/24/staying-the-hell-out-of-inser...

Good explanation of how vim commands are actually formulated (Stack Overflow answer): http://stackoverflow.com/questions/1218390/what-is-your-most...

th··on You can use dots (periods) anywhere in your Gmail username
If your email address is N characters, there are actually 2^N possible email addresses by just adding dots in different places (due to the binomial series).
th··on Ask HN: What does it mean to have a 4.0 GPA?
The letter grades A and A+ are equivalent to 4 "grade points." A- is 3.7, B+ is 3.3, B is 3.0, B- is 2.7 and so on. If someone has a 4.0 this means they received an A/A+ in every class.

Depending on the university and the professor, this can mean different things. If the class is curved, one third of the class will probably receive A-/A/A+ range grades. If the class is not curved, anywhere from 85% to 95% may be considered an A depending on the professor, class, and university. Most commonly a 90% range is considered A- and up and 80% range is B- and up (assuming no curve).

The overall GPAs themselves are usually calculated by taking specific units of each class into account to give some classes more weight than others. For a 4.0, all grades must have been A anyways so this detail is insignificant.

3.7 and 3.5 are often considered very good GPAs in university. Receiving an overall 4.0 GPA is fairly rare at many schools as an receiving even one A- or below would ensure less than 4.0.

th··on Ask HN: Why is HTML so complicated?
It's complicated because it was created by physicists. :p

I believe Alan Kay mentioned during a recent talk that he thought a WYSIWYG interface would have been a much more suitable design for the web. I think HTML is ill-suited for many online documents, but I wonder if a WYSIWYG would have actually worked any better.

th··on Nice and @font-face compatible commercial fonts
Here's some @font-face usage information for the uninitiated: http://www.giordanopiazza.com/blog/web-design/custom-fonts-e...

How often is @font-face really used? Doesn't @font-face usage usually cause an incorrect default font to be used before the actual font is fully loaded?

th··on WhiteHouse.gov Releases Open Source Code
I'm not surprised. All third-party content on whitehouse.gov has been under a Creative Commons licence since Obama took office: http://www.whitehouse.gov/copyright
th··on Ask HN: What is your productivity setup?
1. Currently I forward everything to a Gmail account and reply from the proper address using the "send mail as" feature. I use multiple labels and a long list of filters, some with many conditional clauses to sort email into the proper labels.

2. I'm not entirely sure what you are asking.

3. When on my laptop I use Pidgin to sign into all my IM services including Google Talk and Facebook. I use aliases and groups because most of my contacts are on multiple networks.

4. A desktop computer hooked up to a TV and speakers acts as my media and server machine. I use MPD to play music remotely.

5. I use Dropbox for backup of most documents and an external hard drive for everything else.

6. I mostly prefer local services but I do occasionally connect to Dropbox to grab documents when away from one of my machines. I also forward SSH connections to my desktop through my router in case I need to transfer something else.

th··on Ask HN: Best way to teach yourself how to program?
I would try to learn the client-side (the within-the-browser stuff) markup/styling/programming before jumping into the server-side programming. Understanding how browsers handle the HTML (markup), CSS (styling), and JavaScript (programming) takes time. I think it's much easier to learn and apply a server-side language (PHP, Perl, etc.) after you have a good understanding of the content the server-side language will be throwing at the browser to handle.
← PreviousPage 5 of 6Next →