HNHacker News
TopNewBestAskShowJobs

brennen

363 karma · joined September 24, 2007

submissionscomments
brennen··on Ask HN: What simple tools or products are you most proud of making?
"Proud" might be a stretch, but some very small tools I get a lot of use-value-for-coding-time out of and thus feel warm fuzzies about:

https://github.com/brennen/bpb-kit/blob/master/home/bin/phot... - copy photos from some common camera media locations.

https://github.com/brennen/bpb-kit/blob/master/home/bin/gif-... - wrap Byzanz and Festival to record a gif of a screen region (and tell me what it's doing so I know when to do stuff).

https://github.com/brennen/bpb-kit/blob/master/home/.sh_comm... - an alias for navigating directory history.

brennen··on Teju Cole Reminds Us of Life Beyond Politics, and the Beauty of Art
This is great stuff.
brennen··on Folks at Harvard support labor unions… everywhere except at Harvard
This seems odd due to the fact that the Great Father in Washington already gave us all affordable health care via the Affordable Care Act (“Obamacare”), signed into law by President Obama in 2010.

Greenspun's rhetoric is an embarrassment.

brennen··on Nearly there
> That's getting a little dodgy. I just want a browser, not a social movement.

I kind of want a social movement.

brennen··on Fuck the Cloud (2009)
Thanks for this.
brennen··on Duktape: an embeddable JavaScript engine
Quite true.

Although on this theory, I should really have learned some Haskell by now. And yet. Every trip to the xmonadrc is a fresh glimpse at the depths of my own ignorance.

brennen··on Data.sparkfun.com: A place to push your data
> The only thing better would be a VM I could spin up that let me self host an instance of this.

Yeah, we'll get on that.

brennen··on Data.sparkfun.com: A place to push your data
SSL is supported, but not mandatory because a lot of the hardware we're targeting just isn't up to the task.

We're aware this isn't exactly optimal. Suggestions welcome.

Re: Key revocation, that's a good question and we should probably think hard about it. It's trivial to create a new stream, but obviously that could be a pain for various reasons.

brennen··on Data.sparkfun.com: A place to push your data
This is certainly true for values of "that page" excluding everything after the title. :)
brennen··on Data.sparkfun.com: A place to push your data
There's some simple example code in the core phant repo:

https://github.com/sparkfun/phant/tree/master/examples

And a tiny PHP wrapper here:

https://github.com/sparkfun/SparkLib/blob/master/lib/SparkLi...

brennen··on “In a typical year the OpenSSL project receives about US $2000 in donations”
I'd be more inclined to look to state funding for encryption-related public goods if the state wasn't demonstrably an antagonist in the realm of encryption...
brennen··on NSA Said to Exploit Heartbleed Bug for Intelligence for Years
POSIWID.
brennen··on Computer Modern on the Web
I think that most of what I appreciate about Computer Modern is that it sends the neighborhood font nerds into fits of white-hot rage every time I use it.
brennen··on PHP functions originally bucketed by strlen, were renamed to balance length
> It might be better than Perl, but not by much.

Oh come on.

PHP is more evolutionarily fit than Perl in a handful of very important ways (I would illuminate, for example, function signatures and a pre-built object system, syntactically trivial nesting of data structures, and a newcomer-friendly out-of-the-box execution model).

That said, I wrote Perl for years as a hobbyist (still do, now and then), and have spent the last 6 or so primarily writing PHP. There is not a day that passes that I don't miss some aspect of the rich, expressive, elegant, sophisticated, and intellectually delightful environment that is Perl at its best.

It is a doomed and sinking continent, Perl, but if we let the considerable wisdom of its once-great civilization evaporate into trite dismissal, we as a culture stand to lose a great deal.

brennen··on Bash Pitfalls
I live and die by the shell. I'm constantly composing little one-liners, and keep an absurdly long Bash / zsh history to draw from. There are places the obvious answer is almost always "how about you just write a shell script?"

That said, I long ago reached a place where I realized that, while shell scripting is entertaining, I'd much rather write anything more than a handful of lines in a general purpose programming language. Perl, Python, Ruby, whatever - even PHP involves far less syntactic suffering and general impedance than Bash. It's not that I'm exceptionally worried about correctness in stuff that no one besides me is ever going to use, it's just that once you're past a certain very low threshold of complexity, the agony you spend for a piece of reusable code is so much less. Even just stitching together some standard utilities, there are plenty of times it'll take a tenth as long and a thousandth as much swearing to just write some Perl that uses backticks here and there or mangles STDIN as needed.

  > Are your scripts idempotent? Are they
  > audit-able? Interruptible? Do you have
  > backups before performing destructive
  > operations? How do you verify that they
  > did the right job?
Every single one of these questions is easier to answer if you're using a less agonizing language than Bash and its relatives.
brennen··on Linux shell tips and tricks
> it's always intrigued me that the tar command (I imagine it is mainly used to "unzip" things) does not make it very simple to do this.

It helps to remember that tar stands for Tape ARchiver (or Tape ARchive, or something, depending on who you ask), and that its interface really does date from the era when dealing with tape was a common task for pretty much any sysadmin.

brennen··on SparkFun's migration from MariaDB to PostgreSQL
If nothing else, it's probably time we give OpenERP another look just to get an idea of how problems are being handled there. Pointers to useful reading would be welcome, if you've got any.
brennen··on SparkFun's migration from MariaDB to PostgreSQL
You can always ask WTF. What else is the internet for? I'll try to give you a face-value answer.

If we could just sort of rewrite all of our code in a nicer language than PHP (taking it as read that most of us can think of one or two of those) with a commensurate effort, and the idea somehow just hadn't occurred to me until I read your comment, I probably would have started the project over my morning coffee.

In the real world, we have a bunch of existing software, a business to run on it, and a well-developed understanding of the pitfalls of the language and environment. There's no conceivable justification for the amount of effort it would take to rebuild our stuff from scratch in one fell swoop. PHP is a pain in my ass, I yield to almost no one in my visceral contempt for PHP, but PHP is not my problem, and it hasn't been for a long time.

What we can do, with a reasonable investment of time and energy, is move more of our business concerns into a more rigorous data store, and explore building new features against the data we model well using other languages and tools. Right now we've got various bits of tooling written in (at least) Ruby, Go, C, Perl, R, Python, and Node.js. Maybe someday we'll really zone in on something and figure out that it's a good time to start slicing off chunks of application and rebuilding them in [better language x] until the PHP has evaporated. Maybe we'll decide that everything should live in [third party system x]. Maybe we won't bother with any of this, because PHP gets a little less heinous with each passing release, we already know what we're doing with it, and there are bigger fish to fry.

Reasoning by analogy is frequently suspect anyway, but in your picture, I'm not sure how databases are barn doors. They tend, at least for the kinds of things we're doing, to be much more fundamental to the framing of the barn. Or maybe they're the stuff stashed in the hayloft. I dunno. At any rate, I don't think it's super coherent to argue that all the things must be fixed at once in order to justify improving one of the things.

brennen··on SparkFun's migration from MariaDB to PostgreSQL
Thanks. I never know I'm actually in a conversation about how I do my job until this comment shows up.
brennen··on SparkFun's migration from MariaDB to PostgreSQL
See my reply to rpedela elsewhere in this thread.
brennen··on SparkFun's migration from MariaDB to PostgreSQL
I'd second this. I've pretty much fallen in love with the official docs over the last few months. They remind me of perldoc in terms of clarity and general quality.

The mailing lists also seem to carry a lot of good material.

brennen··on SparkFun's migration from MariaDB to PostgreSQL
> If you can share, what's the reason you folks went with this architecture?

In its present state it's a fairly sane architecture for our purposes, but the only honest & concise answer to this question is that we didn't know what we were doing and it just kind of worked out that way.

Not coincidentally, this also describes the architecture of the business as a whole.

brennen··on SparkFun's migration from MariaDB to PostgreSQL
Awright, so I didn't write the linked piece, but Chris isn't talking about scaling our web traffic by an order of magnitude. We're a small-to-mid-size web store & light manufacturer and we do decent business and very occasionally get a bunch of traffic as far as mid-sized web stores go. We're not a big service provider, and we're never going to be one in the sense where we have to worry about scale the way that people with Real Problems do.

We do plan to store a bunch more data than we deal with now, but mostly we migrated because we're looking to build a better ball of mud, to borrow a perfectly legitimate analogy from elsewhere in the thread. What we'd like to scale somewhat cleanly is a business which benefits from us building less broken applications, and PostgreSQL is obviously a less broken foundation for the kind of software where it matters if you are correct about things.

If anyone would like a reason to let us know at length what incomparable buffoons we must be for any of writing PHP, rolling our own application framework, still owning physical hardware, or getting a little overexcited when the code doesn't break too badly, I will cop to all of those and more in public, but please don't read the linked post as a strong technical claim about Hard Problems in the Land of Webscalonia which demands & merits a detailed refutation. Posts on sparkfun.com don't tend to be written for a web nerd audience (we sell blinkenlights) and most of us survey a very different conceptual landscape on a day-to-day basis from the average HN reader.

(For clarity here, I write web stuff at SparkFun, and most of my time lately has been on this project. Author of linked piece is my boss.)

Edit: And my apologies if this reply to a rather simple question comes off a bit reactive; consider this my reply to the thread as a whole?

brennen··on Tell HN: Let's Be Civil
Your internet penis is _enormous_.

This sort of bilious, spittle-flecked juvenile chest-thumping teenaged-courageous-loner noise is precisely why venues like Hacker News, despite the presence and attention of a good many smart people, have been rendered such sterile wastelands.

No matter how much you enjoy the game, it's not getting us anywhere. Your righteous incivility is, ultimately, profoundly _boring_.

brennen··on Github, the future of book publishing?
You have in effect given out an irrevocable license to your work. This isn't practically or legally the same as giving up ownership, though it's certainly ceding a sizable measure of control.
brennen··on How did WordPress win?
In terms of ease-of-install and basic user interface stuff, I remember it as a substantial improvement over most of what people had been exposed to.

Mind you, I hated it passionately from the first time I was asked to do anything more involved than installing it and switching a theme, and I've never had any inclination to use it on my own time, but I think it's easy to forget that the bar was pretty low when WordPress first came on the scene.

brennen··on How did WordPress win?
If you're just looking to publish a weblog-like thing, rolling your own remains a viable option...
brennen··on UNIX V6 vs. Windows 7
I got a new laptop a couple months back. It came with Windows 7, and I thought, ok, what the hell, I might as well fire it up and see what this is like.

It took somewhere upwards of 15 minutes to finish some final installation step, and the first thing it presented me with was a notification dialog explaining that Explorer had crashed.

I haven't actually booted Windows since, which leaves me with a personal average boot time considerably over 2 minutes...

brennen··on No opting out from Facebook turning your check-ins, likes into ads
It's nice how Facebook keeps validating the decision to opt out of Facebook.
brennen··on How to Manage CSS Explosion
The more I think about it, the more certain I become that immutable constants (a good idea, IMO) are the furthest CSS could safely go down the rabbit hole before the entire enterprise would consume itself in spaghetti-code madness.

Not that plenty about CSS doesn't beg for better abstractions, but turning it into a programming language is kind of a terrifying prospect. I've see too much of what enthusiastic amateurs can inflict with JavaScript.

← PreviousPage 4 of 5Next →