HN user

Jeremysr

1,060 karma
Posts5
Comments27
View on HN

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...

Announcing Bitwise 8 years ago

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

Key Lime Pi 12 years ago

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.

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?

NeoCities 13 years ago

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.

Closure 13 years ago

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.

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.

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.

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.

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.

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.)

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.)

_why is no more 17 years ago

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