HNHacker News
TopNewBestAskShowJobs

swdunlop

515 karma · joined December 6, 2009

Lead wookiee at https://www.cmdzero.io
submissionscomments
swdunlop··on Tesco Discount Barcodes, Cracked
You should try Fry's Electronics, which often seems to have the position of "if anyone's going to be defrauding anyone, it'll be US, buddy!"

Sorry, still sore about that repackaged and bricked WRT54g.. If anyone's going to brick things, it'll be ME! :)

swdunlop··on The Secret Lives of Zipcar Drivers
I used it infrequently as a consultant; my company actually introduced me to the service -- but we used it to supplement traditional rentals, not replace them. Got to run out to play pet engineer for a scoping meeting? Grab a zipcar. Stuck in the ass end of the midwest for a two week engagement? Traditional rental.

I don't think they are leaving it on the table, I think their schedule of fees means they are carving out a spot that the rental companies totally ignored.

swdunlop··on The Secret Lives of Zipcar Drivers
The researchers deserve a lot of derision, here. It's not like people decide to rent a car by the hour to save the whales. The only intangible benefit in my mind when renting a zipcar is the knowledge that I won't have to direct one of Seattle's horrible cabbies around my neighborhood or pay a ridiculous amount of maintenance and insurance for the possibility that I might want to pick up groceries this month.
swdunlop··on The Secret Lives of Zipcar Drivers
That's essentially what Zipcar is. It's a pay by the hour car rental service with a good interface. They call it "sharing" just to get around a lot of legal and cultural baggage associated with rental.
swdunlop··on Mojang, makers of Minecraft, sued by patent troll
That's why they are filing in east Texas, it's a jurisdiction that is friendly to patent trolls. Lunacy is the business model.
swdunlop··on GNU Make Alternatives
These friendly high abstraction build systems show their teeth when they meet configurations that deviate from abstractions. Go's a great example -- if $GOROOT or parts of $GOPATH are not owned by the build user, "go build" will occasionally fail because a pacman or aptitude update touched the compiler and Go needs to recompile every package in sight.

When dealing with JNI, both Maven and SBT have to delegate the task to less pure build systems. For projects that cannot nest nicely above a very high and consistent layer of abstraction, these "archaic" systems are essential because of their lack of interfering abstractions. They observe a different definition of "simple", instead of being "simple to use in a specific problem domain" they go to "simple to adapt to a different problem domain."

swdunlop··on GNU Make Alternatives
My problem with many modern build systems is that they try to cure the user of using shell commands for compiling and linking, in a misplaced effort to make things "more portable." They walk right by the real reason I'm there, which is to manage the complexity of the build and control compile times.

For projects simple enough to be manageable with those build systems, I'm already happily using make and a reasonably GNU environment (if not GNU's compiler.) For the other projects, where recursive makes and complexity becomes a distraction, I've already exceeded the parameters where these build systems are comfortable.

The acid test for me is MOSREF. MOSREF has a fairly portable ANSI C virtual machine and linker, but the compiler is metacircular and obviously nobody is going to target MOSREF for their packaged in recipes. One build system after another drove me to distraction trying to simplify MOSREF's process -- despite the fact that each step was quite simple, the order of steps was very tricky, especially when hacking on the compiler.

Redo looks like a better evolution away from Make for me, since it means no new syntax and it doesn't try to protect me from bash. Thanks for the recommendation -- I don't work much on MOSREF anymore, but maybe this offers an escape route from "go build", which has been a bit of pest for configuration management.

swdunlop··on Trello is now half million strong
Our engineering team logs into it daily, and some of us stay logged in throughout the day, checking off lists and hashing out ideas in the cards before importing them into engineering docs. It's a great way to manage features and organize tasks, even if we don't fit into a classic "Agile" cycle.

Trello has been a big hit with my wife who is a writer. She uses it to organize scenes, chapters and various snippets before integrating them into her draft. I've tried introducing various storyboarding applications to her with very high resistance -- Trello was the only thing that really "took" with her.

If you just want to jot down notes and don't need to organize them, Trello's probably just a bit too rich an interface. Once you've got more balls in the air and jugglers in the mix, Trello becomes a lot more interesting.

swdunlop··on The Ryno: Why two wheels when you need just one?
I thought the Segway killer was the cost and confusion about how to integrate it with traffic codes. The Ryno doesn't appear to solve either of these problems.
swdunlop··on ‘FreedomBox’ Is in Danger of an Early Death
"That is turnkey privacy. It’s turnkey anonymity. It’s turnkey security."

These are three things that are not offered as "turnkey" for a reason. They have serious usability impacts and in all but the most disruptive configurations tend to be incomplete and leaky. Trying to provide them in a magic appliance is either dangerous or improbable.

swdunlop··on Brackets: The Open Source Code Editor for the Web
I thought exactly the same thing.. I was totally on board and excited until I saw, duhnduhnduhnn... "github.com/adobe/brackets"

Then I fled. And a lot of other people probably will, too -- Adobe has a lot of things to make up for with the kind of people who could actually make a meaningful contribution.

swdunlop··on Winamp's woes: how the greatest MP3 player undid itself
A key part of a lot of these pygtk players is that they rely on gstreamer to do the heavy lifting. Organizing a pipeline of "this source, this format, that sink" is not a performance problem -- it's a plumbing task. :)
swdunlop··on Winamp's woes: how the greatest MP3 player undid itself
I find Quod Libet to be my tool of choice, now. The query language is a bit ridiculous, but Mutagen is great for cleaning up crappy tags from my mp3 purchases. Despite being a PyGTK app, it has been fairly responsive and snappy despite my ridiculous media-hoarding habits.

http://code.google.com/p/quodlibet/

swdunlop··on Apple Stores’ Army, Long on Loyalty but Short on Pay
tl;dr -- retail jobs pay low wages, Apple included.

What I took away from it? Apple is paying market rates for its semi-skilled employees in a high unemployment market. The market is the problem, not the employer.

swdunlop··on Interactive visualization of commute times for all US cities
Yeah, looked at Seattle -- what is typically an insane 60m commute (the 520 floating bridge) is a cheerful 20-25m. NYC was also pretty laughable -- traffic really matters outside of sprawl cities with six lane highways masquerading as main streets.

If you are going to measure the distance and use that as a basis -- just report the distance. Otherwise, the estimates based on time will just flip the bozo bit in your customers.

swdunlop··on What They Don't Tell You About Public Speaking
"Most conferences are a crap shoot when it comes to video. Half the time they won’t record your talk, and the other half of the time it may take months before your talk is published.

Something I’ve been doing recently is making a screen recording of my talks using QuickTime on my Mac."

This is really true, and really good advice. Organizers have a lot on their hands leading up to a conference, and, after, getting recordings posted languishes until they manage to recover enough of their personal lives to start ramping up for the next.

I've had several instances where I've given a talk, been very happy with the response, and then realized that I had no way to share it with a wider audience except trundling off to the next conference. Next time, I'm making my peace with a screen recording app.

swdunlop··on Mozilla Thimble
Ah, Netscape Composer, we hardly missed you.
swdunlop··on How I Store My 1's and 0′s: ZFS + Bargain HP Microserver = Joy
The most honest answer is that we've got a ton of Linux servers with well understood and managed configurations, and then these brahmin storage servers that fall outside of that discipline because they have very different update cycles and toolchains. It would be more convenient for us if we could extend our internal update cycle and maintenance to the storage system as well.

There are a number of the usual installation and adoption issues with FreeBSD and Illumos / OpenIndiana. I love the FreeBSD community, and using dtrace again is a joy. I just don't like having to use them for things I already have solved in Linux or can quickly find documented on either Ubuntu or Arch's wikis.

It's nice after the OS wars to be able to say "well, it's easier for us to use linux because it has a broad user base." :)

swdunlop··on How I Store My 1's and 0′s: ZFS + Bargain HP Microserver = Joy
You can look for yourself using smartctl -- they still respond after the mechanical failure. Aside from pasting internal emails (not happening :)), you'll have to google for yourself on this one. We didn't do anything novel with these drives at a hardware level to make them fail, and we've got dozens of Constellations in an identical configuration that have had no failures after months of load.

It's not transfer speed that they seem to trade off for, it's access times. That may have been part of the problem -- our reads are extremely random over a very broad range of sectors. This isn't exactly a log or video server usage model. :)

swdunlop··on How I Store My 1's and 0′s: ZFS + Bargain HP Microserver = Joy
Love ZFS, hate having to use it in FreeBSD or Illumos, so I like seeing someone successfully using it in Linux even if licensing concerns keep me from doing it. When I saw that he was using "WD Caviar Green" hard drives, though, I cringed.

These "green" hard drives tend to be very aggressive about parking heads and spinning down the platters. While this is fine if a disk is going to sit idle for a long period of time, in cases like an OS partition and memory buffering, these drives start destroying themselves spinning down and cranking up several times a minute.

We had 4 out of 16 fail one week after burn-in in a raidz configuration. We had plenty of hot spares for various reasons of paranoia, and they didn't go all at once, so we recovered and replaced the entire batch with Constellations.

The only positive note was that we are now firmly in love with zpools and zfs.. It made egregious hardware failure a manageable problem.

swdunlop··on The Slow Web
This sounds similar to spaced repetition, which is a practice of revisiting memorization of facts with increasing intervals instead of over-drilling with repetition. (See http://en.wikipedia.org/wiki/Spaced_repetition for the theory, and http://memrise.com for the practice.)

I respect the idea of trying to offset our common diet of interactive and distracting social media and news trolling. But in the context of a "To Do" list, I prefer the immediacy of something like Trello -- an endorphine fueled feedback loop encouraging people to get things done seems more practical for me.

swdunlop··on The Slow Web
From the article, I understand "Slow Web" to be six paragraphs without getting to the point. Sort of an antithesis to TL;DR. But, now I know about an interesting new noodle shop, and a task list app.
swdunlop··on Letter from Ronald Reagan to his son
Welcome to the internet generation, where we can look into someone's private conversation and comment "citation needed."
swdunlop··on How Apple Store Seduces You With the Tilt of Its Laptops
Well, it is somewhat relevant to Forbes, since Best Buy has been giving all the indicators of following Circuit City into oblivion and Forbes has commented about it recently. The Apple Store (and Sony Store) is a contrast in how a well tuned, specialized store is better at selling the same product compared to a big box. Which is interesting, considering how long the Big Box retail scene has been considered the death of small independent shops. (Cue Elton John singing about the Circle of Life..)

The Best Buy in my neighborhood is more convenient by about 90m than the Apple Store. But I generally refuse to go to Best Buy for anything that I can't find on a pegboard, like cables or a USB drive. Everything else, I get random unavailability, clueless salespeople, and a really strange mildew smell from the upholstery.

Smells like doom, really.

swdunlop··on C vs GO
Actually, "indent-nazism" is a big thing in the Go community. The Gofmt utility, which takes an AST of your code and normalizes it to a common style. Nobody agrees that the style is perfect, a lot of people have religious preferences when it comes to brace placement. But Gofmt ensures that all these people can find a consistent format when it comes time to diff.

GoSublime and go.vim both integrate gofmt into the editor; you start to miss it when refactoring, because you can just shrug and say "gofmt will clean it up when I save" when you move a block to a different function or indent level.

I agree with the grandparent -- seeing non-gofmt code is jarring and deliberately distracting. It's like someone writing an entire Python program with nothing but lambdas.

swdunlop··on Using unix as your IDE
I always think of unix as the Disintegrated Development Environment, and I'm happy to keep it that way. Every time I go down the rabbit hole of trying to integrate build, debug and edit into a single tool, I eventually go back to using individual commands.
swdunlop··on Newegg refuses to repair defective laptop because user installed Linux
Hell, I do this twice when dealing with in-laws. The first time to make sure I can restore the OEM partition, and the second time so I can restore the thoroughly sanitized install when they filthy it up with malware and browser bars.
swdunlop··on Newegg refuses to repair defective laptop because user installed Linux
Wrecking things with a default build is still an option with binary blobs and sneaky variant hardware. Our dev team standardized on the x120e's a while back; the first one or two were great, but the second batch had a serious flaw in about half of them -- the fan speed reported to the kernel is inverted. (How you invert a PWM count, I've got no clue.)

Same distro, same config, and half the batch has a death wish, shutting down the fan in response to increased CPU temp.

swdunlop··on Network Programming with Go
I use Go very heavily for "duct tape" in production, combining processes like machine vision, VNC clients, and video transcoding into a uniform internal API. It has been conceptually a lot easier to work with than my native Python since it offers better (for me) abstractions and a very manageable concurrency model.

Using Go in a professional setting really isn't a technical challenge. The biggest concern is if you have to grow your team, you're either going to have to teach Go (which isn't that hard -- I've seen two different people come from dynamic languages and pick the basics up in a week) or hire people who know Go (often already happily employed).

To further mangle Charles V: "I speak Spanish to God, German to my horse, and Go to connections that might make me wait."

swdunlop··on Network Programming with Go
https is quite straightforwards in Go; the most direct means [1] essentially adds two parameters to http.ListenAndServe to supply paths to your cert and key file. The more flexible indirect ones involve either providing a TLS config [2] or using the crypto/tls package to create a TLS listener [3]. It comes down to which abstraction level works for your configuration.

Due to Go's pervasive use of io.Writer / io.Reader / net.Conn interfaces, once you have the problem of loading keys sorted, everything else is the same as writing a plain old TCP/IP listener. Configuring TLS will always be a pain -- decades, committees and broken implementations have seen to that.

As for actually verifying passwords and session integrity, Go's crypto packages are also pretty straightforwards and composable. The crypto/hmac [4] package is easily combined with various implementations of hash.Hash. In exchange for this simplicity, though, Go gives you plenty of opportunity to emulate LinkedIn and blow your own foot off, forgetting salt and common sense. There are plenty of higher level packages that offer to do it for you. (Blow your foot off, or hash your passwords -- I recommend reading implementations to decide which. :))

Also of interest when dealing with writing webapps in Go, the database/sql [5] package is an important abstraction. Since it is a more recent package, it often doesn't show up in google searches for sqlite, postgres, etc. This can give an impression that Go's database support is fragmented.

1 -- http://golang.org/pkg/net/http/#ListenAndServeTLS

2 -- http://golang.org/pkg/net/http/#Transport

3 -- http://golang.org/pkg/crypto/tls/#Listener

4 -- http://golang.org/pkg/crypto/hmac

5 -- http://golang.org/pkg/database/sql

← PreviousPage 5 of 7Next →