News for hackers. Stuff that matters.

glyphobet

Re:Let's Code About Bike Locks on Tuesday June 16, 2015 @12:40AM (#9723864)
There's an improved algorithm that finds a better lock, one that can do 1,410 words: https://blog.glyphobet.net/essay/2770
Re:The Pirate Bay is counting down on Saturday January 03, 2015 @08:57AM (#8830728)
Yep, that was a joke. Should have had <sarcasm> tags around it.
Re:The Pirate Bay is counting down on Saturday January 03, 2015 @04:37AM (#8830349)
It has to be an image, how else would they ensure that it shows up in Comic Sans in all browsers?
Re:Ask HN: Idea Sunday on Sunday April 27, 2014 @09:20AM (#7654939)
Yes. A good team will recognize that your love for programming means you'll improve rapidly, especially in an environment with constructive feedback from tolerant team members. And if you have other professional experience you can bring to bear (knowing how to work in a team, process & planning, customer support) the find a team that needs someone with that experience as well as programming ability.

If you can't find anyone willing to hire you because of your lack of professional experience, find a team you like and offer to work for them for free for three months. If you show promise, and you get along with the team, they'll want to hire you when the three months are up. And if not, you'll get feedback on your skills and learn what kind of teams to look for in the future.

Re:Ask HN: What's the first thing you brew install on Tuesday September 24, 2013 @10:46AM (#6438205)
macports. :P
Re:Probably the worst URL scheme ever on Thursday May 02, 2013 @09:08AM (#5644206)
It's Latin-1 encoded and then URL-encoded:

>>> import urllib

>>> print urllib.unquote('%1B%E7%F4%9D').decode('latin-1')

çô

Re:STL File Viewing on Tuesday April 09, 2013 @02:53PM (#5520277)
Only a matter of time before someone writes a service hook for automatic 3-D printing of a model after each push....

That or Thingiverse integration.

Re:USPS Discrimination Against Atheism? on Tuesday March 26, 2013 @12:32PM (#5444389)
Yes, the illustration is accurate.
Re:USPS Discrimination Against Atheism? on Tuesday March 26, 2013 @09:54AM (#5443239)
These guys share an office with me, so I saw the packages. They all contained one tote bag and were nowhere near a kilogram.
Re:USPS Discrimination Against Atheism? on Tuesday March 26, 2013 @09:52AM (#5443226)
These guys share an office with us, so I saw the packages. The Atheist tape is standard packing tape, there's no difference in quality of the tape.
Re:Show HN: My side project – Do I need a visa for...? on Monday March 25, 2013 @07:29AM (#5436476)
This is great. Some thoughts:

* It abbreviates "US" in "US Citizen" but not "United States". I would expect both "United States Citizen" and "US" (country) to work too. It uses "British Citizen" vs. "United Kingdom". Both "United Kingdom Citizen" and "Britain" should work too.

* Using ISO 3166 country codes in the URLs would make them shorter.

Re:Petition To Fire Aaron Swartz’ Prosecutor Reaches Goal on Tuesday January 15, 2013 @05:07PM (#5063370)
It is a shame that the petition to pardon Swartz has 1/10th of the signatures that the petition to fire Ortiz has. Let's advocate for a government that forgives (alleged) crimes as strongly as we advocate for a government that punishes people like Ortiz.

http://twitpic.com/bvjjvz https://petitions.whitehouse.gov/petition/posthumously-pardo...

Re:Ask HN: What set your hair on fire in 2012? on Monday December 31, 2012 @02:37PM (#4990544)
The problems are in the core implementation of Jython, not in using Jython to solve problems. For example: http://bugs.jython.org/issue1634167
Re:Ask HN: What set your hair on fire in 2012? on Monday December 31, 2012 @01:32PM (#4990247)
Jython. It's an unfinished research project/toy/proof of concept that never should have been used in a production environment under any sort of load. Unfortunately my predecessors made the wrong choice and I inherited that technical debt.
Re:Poll: What's your favorite static site generator? on Saturday December 01, 2012 @09:29AM (#4857688)
Commence shameless plug for my project, "fragments":

http://glyphobet.github.com/fragments/

It could be used as a static site generator, among other things. But it uses version-control style diffs and merges, instead of any structure or language, which has the advantage that there's no generation step, and you can just edit the files as pure HTML.

Re:Abstraction: The Rule Of Three on Thursday November 01, 2012 @01:20PM (#4728601)
This is a bit too simplistic. The rule of three really should apply to similar patterns that emerge naturally in the course of implementation.

His example code consists of two four-line functions that share a common if-else control structure but call totally different functions. That's not copied-and-pasted code, and it's not enough similarity to warrant generalization even after three or four replications. (And it would be better modularized away completely using inheritance or delegation, instead of a state machine.)

When it comes to copying and pasting identical blocks of code that actually do something, even having two copies opens you up to copy-and-paste bugs. Waiting until you have a third copy is too late. Don't ever copy and paste.

Here's the same query with Perl and Python added:

http://data.stackexchange.com/stackoverflow/query/edit/83730

Python comes in at 34, halfway between Java and Ruby, and Perl at 45, between Haskell and Scala.

Older »