Better HN
topnewbestaskshowjobs
Log inSign up

Jeremysr

1,060 karma · joined Mar 9, 2009 (17y ago) · 34 submissions

Submissions

1.

PHP arrays aren't really arrays(medium.com ↗)

4 points · by Jeremysr · 7y ago · discuss

comment 8y ago · link · parent

For project-based tutorials/books, which are centred around building a program step-by-step by following a series of human-readable diffs, I think a tool is very much needed.

For https://viewsourcecode.org/snaptoken/kilo/02.enteringRawMode... , the code is kept in a git repo where each commit is a step in the tutorial. This way steps can be modified, reordered, or split into more steps using git interactive rebase (git rebase -i).

I'm working on a tool which abstracts away git rebase, and gives you a nicer interface for manipulating the series of steps in your tutorial. For example, you can run `leg 3` to checkout step 3, make edits to it, and then run `leg amend` to apply the changes, resolving conflicts as the changes make their way through the rest of the tutorial's steps.

The tool is still in very early development, but here's a quick tutorial to get a better idea of how it works: https://github.com/snaptoken/leg/blob/master/TUTORIAL.md

Also, I'm playing around with a "literate diff" file format that might be of interest: https://github.com/snaptoken/tgc-tutorial/blob/master/doc/02...

comment 8y ago · link · parent

Just finished the stack machine, very nice work. Love the presentation and the code is beautiful. Looking forward to future snacks!

comment 9y ago · link · parent

Sounds like you may enjoy My Rails Blob: http://railsblob.blogspot.ca/2006/08/my-new-blob.html

comment 9y ago · link · parent

See https://github.com/snaptoken/kilo-tutorial/issues/4

You may have a broken version of the font locally. If you download the offline version of the tutorial, it'll come with all the fonts it uses and hopefully will work.

comment 9y ago · link · parent

It seems to be doing fine now, but you can always download a local copy (it's all static HTML) from https://github.com/snaptoken/kilo-tutorial/releases

7.

Build Your Own Text Editor(viewsourcecode.org ↗)

3 points · by Jeremysr · 9y ago · discuss

comment 12y ago · link · parent

Well, you could distribute your encrypted wallet as widely as you want, without worrying about theft or loss (if you have a good passphrase and spread the wallet to enough locations), before you start receiving bitcoins to it.

The point of using the Pi is that you can make sure the decrypted wallet data only ever exists for a short time in RAM on hardware that is very likely non-malicious and that never has and never will connect to the Internet. If I had a significant amount of bitcoins sitting in an address that was generated by my laptop that I've been using regularly for the last four years, then I wouldn't sleep at night.

comment 13y ago · link · parent

Aw, I was hoping to see that slave mode was fixed. I want to use slave mode to make a music player with my own user interface and library/playlist manager in Ruby without having to worry about how to actually play the music. Unfortunately slave mode in mplayer seems kind of unstable and sometimes even gives the wrong answer (I think it's a known bug). I wasn't aware of mplayer2, I'll have to try that and see if it works any better.

But does anyone know of a program or library with a proper interface for controlling a music player?

comment 13y ago · link · parent

I don't know if this works for everyone, (and I hate to appeal to magic), but I'm pretty sure it was http://mislav.uniqpath.com/poignant-guide/book/chapter-3.htm... that gave me a visceral understanding of Ruby's syntax. For example, the slashes surrounding the Regexp are like pins that you stick the Regexp onto the paper with, and it lights up if the pattern matches. The at signs stand for "ATtribute". Exclamation/question marks have meanings analogous to their natural language counterparts. And the vertical bars form a little chute that the block variables slide down into the block through. It's really fun.

comment 13y ago · link · parent

Jan. 2013 was _why's first reappearance. He had actually updated his website with the first couple entries in the print queue in December, but no one noticed until January. After people noticed ( http://news.ycombinator.com/item?id=5015087 ), _why started updating it with more pages in the print queue, one of which said the print queue was going down until April 18, and would then be up during the hours of 4 to 12. Which sounded like _why was going to do something big that day.

comment 13y ago · link · parent

thdvl also changed the SPOOL/SOLICIT file to a bunch of base64, which decodes to a gif image, which is of a QR code that points to the URL http://en.wikipedia.org/wiki/Epistulae_morales_ad_Lucilium

comment 13y ago · link · parent

If anyone wants to hook their actual printer up to _why's queue (which I'm pretty sure is what he intended), iandennismiller transcribed the OCaml program in SPOOL/HOMEWORK which polls whytheluckystiff.net and sends the PCL files to your printer: https://github.com/cwales/cwales.github.com/pull/4

It's quite magical. I was woken up this morning by my printer, when the first pages were being published. Now every 5, 10, or 15 minutes my printer starts clanking away (it's an old one) and a brand new page slowly emerges. Great way to read a novel, if that's what it is.

comment 13y ago · link · parent

It's a little taller, but it still looks like an o to me. If you go to http://www.youtube.com/watch?v=ShpcjWG_Meo it says "This video is unavailable", which means that a video did exist at some point at that URL.

comment 13y ago · link · parent

Heh, not knowing Java very well, I scoured the BigInteger docs for quirks and loopholes, then gave up and found your comment. I guess "java.security.SecureRandom" sounded too impregnably secure to be worth looking into.

comment 16y ago · link · parent

He also created a language of his own which was inspired by Io: http://github.com/fogus/potion (and here's the pamphlet: http://runciter.net/potion )

comment 16y ago · link · parent

yes, the story is told by shack_a_nerd: http://shack-a-nerd.livejournal.com/70594.html

comment 16y ago · link · parent

I talked to the guy who did the interview a month ago and told him about the problem and advised him to change it to why.usesthis.com and his last words were "you know, i think i might do that. :)" So.

19.

_why's Estate(viewsourcecode.org ↗)

191 points · by Jeremysr · 16y ago · 58 comments

comment 17y ago · link · parent

not quite. http://en.wikipedia.org/wiki/Goo_(programming_language)

21.

Why Many Companies Just Don't Get the Web(techologue.com ↗)

1 points · by Jeremysr · 17y ago · discuss

comment 17y ago · link · parent

I tried looking at http://whytheluckystiff.net on archive.org but he was why the lucky stiff throughout.

comment 17y ago · link · parent

Wow, I can't believe I thought it was "Plastic Cups" all this time. Thanks stephencelis, I've edited my comment.

Edit: ah, now I remember. It's because in chapter 4 of the poignant guide, _why starts using plastic_cup as an example variable and I thought he was making a reference to his band, and forever thereafter I confused the name.

comment 17y ago · link · parent

Thankyou. :P

I don't even have the whole line on my iPod, to be candid. I had to whittle it down to "turtles and goats\nfilling up boats" to make it fit. It's really just a reminder of _why and his words, although I have always liked that particular line. I've found it running through my head on occasion, like a song stuck in my head. (This happens to me with many words and phrases, most recently "alabaster M&Ms")

Now why don't we discuss my iPod wallpaper? http://viewsourcecode.org/forum/why-wallpaper.png

(Next up: I take you all downstairs to my basement where I spin you some old Thirsty Cups records of mine.)

comment 17y ago · link · parent

I have this one engraved on the back of my iPod touch:

turtles and goats, turtles and goats, turtles and goats are filling up boats.

(It was free so might as well.)

comment 17y ago · link · parent

It's from a retweet I believe, where the retweeter replaced "you" with "u", perhaps to fit it into 140 chars.

comment 17y ago · link · parent

I just noticed that _why apparently deleted his twitter account. I then found that that wasn't all he deleted:

http://twitter.com/_why http://github.com/why http://whytheluckystiff.net/ http://poignantguide.net/ http://hackety.org/ http://shoooes.net/

All disappeared...

For those who don't know who I'm talking about: http://wikipedia.org/wiki/Why_the_lucky_stiff

28.

_why is no more(twitter.com ↗)

558 points · by Jeremysr · 17y ago · 399 comments

12