HNHacker News
TopNewBestAskShowJobs

nieve

1,134 karma · joined August 22, 2011

submissionscomments
nieve··on Evi Nemeth, retired Boulder computer professor, missing at sea near New Zealand
I desperately hope she makes it back, she's kind of an amazing person.

Every edition of that book has been better than the last and it's insanely useful, especially to people who aren't familiar with the way Unix & Linux work at a low level. It's the first book I toss at new sysadmins and devs who need to learn about Unix, even before "Essential System Administration" or "The Practice of System and Network Administration". The latter two are good for why you should do things, but ULSAH tells you what, where, and how and explains the different methods and tradeoffs. I haven't picked it up in a year or two, but I keep it around because when I do get stuck with some random AIX box or creaky old Hockypux system it's essential.

nieve··on Evi Nemeth, retired Boulder computer professor, missing at sea near New Zealand
She - Evi Nemeth is a woman and one of the most influential on my approach to sysadminning. Even more than the Armadillo book or Limoncelli the handbook she and her collaborators put out was pragmatic, sensible, and incredibly useful. I really hope she makes it back somehow.
nieve··on Recursive Postgres Queries
This is a somewhat bad example of when to use recursive queries in PostgreSQL, but they're useful a lot of places Activerecord's preload can't hack it and trees. Examples:

* Recursive queries can update, insert, or delete rows. This is a huge win over doing it in Activerecord with large data sets. I've done updates and inserts in under an hour that testing with Activerecord indicated would quite literally take days. It's not really black magic, but you have to actually learn SQL instead of simple selects to use this properly.

* Pg's query optimizer with a recursive query & internal data handling is much higher performance than anything Activerecord can portably produce (or produce at all) even if you're lucky enough not to have to retrieve most of your results. Preloading is fine for small data sets, but by the time you hit a few hundred thousand rows you're going to start feeling it. This is one of those places where SQL as set handling and Activerecord as ORM diverge more than just conceptually.

* Pulling up rows more than a few step away from the parents (especially through other tables) tends to move a lot of unnecessary data over the network with preloading and can produce ridiculous joins.

* "WITH RECURSIVE" can do things Activerecord can't without multiple costly queries round-tripping their results to the client, getting processed there, and fed back into more queries. http://www.postgresql.org/docs/current/static/queries-with.h...

nieve··on Ramnode down after SolusVM vulnerability exposed
It's a nightmare for them and I'm sure they'll lose customers over it, but I'm staying when two days ago I was planning on canceling my vps due to underuse.

It was ridiculously fast for a vm (>700MB/s with vpsbench, all tests), but the $5/mo Digital Ocean instances were fast enough with PostgreSQL/Sphinx that none of my (free) users were complaining. I like Digital Ocean, I'm keeping some stuff over there, but I appreciate Ramnode's transparency & dedication during this. It doesn't hurt that they're probably going to be constructively paranoid now that they've gotten burned. This is one of those things my partner saw all the time running a restaurant - screwups are unavoidable, but handling them well can actually get you a loyal customer.

nieve··on Falsehoods programmers believe about addresses
I'd say that in the US Social Security Numbers run neck-and-neck with names for causing problems, though the data is less screwed up. The problem is that they look simple, unique, and universal so they're an obvious primary key... but only the first of those is close enough for most uses. Duplicate SSNs have been issued often enough that I've run into multiple collisions in a single production DB (and confusing two people on electronic home arrest can be pretty bad). Even more common are people who simply don't have one - religious objectors, non-citizens who haven't acquired them (though some have them), etc. The net result is that people keep using them as primary keys, as join keys, and as unique constraints and then get bitten hard.
nieve··on Flatdoc is the fastest way to create a site for your open source project.
Flatdoc seems useful and clean. I'm in the process of cleaning up & packaging Sinatra/Sphinx/email app for a semi-technical set of users and this seems a bit clearer and easier for them to navigate. Nothing replaces actually reading the whole README, but if you're not used to it I think it can be a bit intimidating for some people. I especially like the zero server side aspect, I'm trying to keep the dependencies for my app as minimal as possible for me.
nieve··on Google Checkout will be retired, transition to Google Wallet
It may be a transition for Checkout users, but it's a shutdown for merchants.

* Shutting down payment processing which was a pretty fundamental part of the offering

* they're requiring you to reapply to get an instant buy account

* They're killing off the APIs

It's not a transition if you lose a core feature, don't transition the accounts in any meaningful way, and have to implement a new system - at that point it's about like switching to PayPal (except you get to keep payment processing if you switch).

nieve··on How to Learn Emacs: A Hand-drawn One-pager for Beginners
You're welcome. I never think of it as an obscure font family so I didn't list it, but I guess it's not so well known. I can see what you mean about high-dpi though Regular is still a bit too heavy for my tastes, I've just spent too many years on linux terminals that render light-on-dark much lighter. I run at 12-14pt in iTerm2 on a low res 13" mbp, so that may make a big difference as well.
nieve··on How to Learn Emacs: A Hand-drawn One-pager for Beginners
I think this is everything you'll need and it seems to work without the rest of my emacs config, but you can also submit an issue or email me as kate on tupl.es (and yes, that's a horrible DB joke) if you have trouble and don't want to continue the discussion here.

https://github.com/katenym/emacs-visual-tweaks

nieve··on How to Learn Emacs: A Hand-drawn One-pager for Beginners
I don't have it up and it's scattered through different parts of my config, but I'm happy to extract those bits and toss it up as a gist in an hour or so when coffee kicks in.
nieve··on How to Learn Emacs: A Hand-drawn One-pager for Beginners
(Her actually.) It's M+ 1mn Light (M+ fonts, Type 1, monospace). I think the whole family is attractive & readable and for programming on OS X I wanted something with a lighter font weight (it's got 5) to compensate for OS X's overly heavy rendering of light text on dark backgrounds. For Linux/BSD terms I tend to use either the medium weight or use monofur.

Samples: http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/design... Design: http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/index-... Bitmap font which I havent used: http://mplus-fonts.sourceforge.jp/mplus-bitmap-fonts/design/...

nieve··on How to Learn Emacs: A Hand-drawn One-pager for Beginners
I don't know if this is what you're thinking of when you say beautiful, but I'm pretty happy with my current setup: http://i.imgur.com/m6cIbd0.png

It's basically a slightly tweaked version of color-theme-zenburn with rainbow-delimiters mode, (setq font-lock-maximum-decoration t), and modeline tweaks from http://emacs-fu.blogspot.com/2011/08/customizing-mode-line.h...

nieve··on PostgreSQL 9.3 Beta 1 Released
Great idea, you've inspired me to do the same just now. I've been using PostgreSQL since ~2000 and love it, but I'm still finding new little corners of the docs worth reading.

If anyone else wants to do this and has Calibre installed, the commandline ebook-convert utility does a decent job. Change to the postgresql docs directory and then run

  ebook-convert html/index.html postgresql_docs.mobi --authors="Postgresql" --title="Postgresql 9.2 Documentation"
(or substitute postgresql_docs.epub). There are a lot of tweaks that'd make it better, but it's readable and properly handles the code font, etc. If you want much more than that using the Calibre gui might be a good idea. Biggest issue I'm seeing is that "Up" links & such are broken, so I'm working on that now.
nieve··on Tweet crashes Mac Twitter client
Meanwhile on Chromium 26.0.1384.0 (build 176849) on OS X Lion everything is fine for me. The titlebar is (appropriately for the typography) messed up, but there are no tab loading issues, cpu/memory spikes, or screen corruption. The closest thing to an issue I see is that it makes using Witch's window switch dialogue a bit ugly. Contrary to the thread on jwz's journal YoruFukurou 2.77 doesn't crash or misbehave for me viewing that tweet, but behind the scenes fontd uses up a decent chunk of cpu for several seconds. Perhaps Mountain Lion has more severe bugs in CoreText?
nieve··on Markdown.css – make HTML look like plain-text
Sadly you're almost certainly right. Most of the places I could see wanting to reverse-engineer the displayed HTML into Markdown are actually sites using their own hackish, inconsistently rendered output. You'd end up needing per-site tweaks and that'd kind of render the whole thing unworkable and pointless.
nieve··on Markdown.css – make HTML look like plain-text
This may have changed in the last few years, but I believe you can simply do "window.getSelection()" in your bookmarklet to access the currently selection for Firefox/WebKit browsers.
nieve··on Corner cases and shell scripts
Even if you can't force it on for everything, the bash construction ${variable:?message} lets you error out on individual null or unset values[1]. Unfortunately there doesn't seem to be as simple a way to handle all of null, unset, and empty string as rachelbythebay points out is needed. You can fudge it with a test against ${#parameter} (parameter length), but you don't get the direct error effect.

[1] There are a lot of beautiful strangenesses in bash, especially the Parameter Expansion section of the manpage.

nieve··on PressureNet collects 120,000 atmosphere data points per day from Android phones
You may be right about pressure, but btown is talking about temperature and that's going to have much worse systematic bias exactly as he says. Your comment and his are nearly completely unrelated.
nieve··on Top Unix Command Line Utilities
Except for those cases where you want counts, only unique/only duplicate, skipping fields, doing case-insensitive duplicate detection, or only comparing a chunk of the line - all but the last two I've used and now that I've found those in the man page (GNU uniq) I can replace some silly shell hacks that I've used over the years. It's like saying that tail is pointless unless you're doing tail -f... you're missing the actual useful functionality due to presuming the tool only does what you've done with it in the past.
nieve··on Goodbye, Uploads
The debs on the Elasticsearch site are links to Github downloads: http://www.elasticsearch.org/download/2012/12/07/0.20.1.html links to https://github.com/downloads/elasticsearch/elasticsearch/ela.... If you don't have a reflex to check the destination of a link to a binary you might not notice it that much, but I see a decent number of projects hosting their release builds on github. It's certainly common for APKs as was pointed out above, but I've seen it for Adium plugins, debs & rpms, even full apps - if memory serves the precompiled SSHuttle gui for OS X was hosted on github as well as the code.
nieve··on Guido says goodbye to Google
https://tech.dropbox.com/2012/12/welcome-guido/

Or do you mean what he's going to be doing at a Python-heavy company like Dropbox that's trying to scale hugely performance-wise while building a lot of new features? (And yes, the link is in the original post as well as everywhere else on the net.)

nieve··on Let's make GitHub better, together
Ah, but much of the original source and documentation for Ruby had Japanese section or was much more comprehensive in Japanese. This was even more true for early Ruby libraries - I can testify to it as of 2001-2003 when I was maintaining several English language libraries and writing a chapter for one of those unfortunate Syngress compilations (I was young and bad at saying no). If you're conflating Ruby and Rails, yes Rails is pretty much English-only - but though it's a common mistake, it's dead wrong if you're discussing actual languages. Even now I occasionally run into libraries with significantly longer Japanese documentation by character count and given relative density that probably means quite a lot longer in terms of actual content.
nieve··on Adobe's Source Code Pro Font
The section titled "Pre-built font binaries" in the README links to the download location, but it's also the standard download location on github (right-hand side, below the clone URL and above the last commit box): https://github.com/adobe/Source-Code-Pro/downloads
nieve··on Never again be thwarted by restrictive “guest” wifi (e.g. on buses or airplanes)
You can tunnel out that way just fine, but even with setting up dynamic SOCKS forwarding (ssh -D [bind_address:]port) it's less effective and more work. You're dependent on being able to set proxies per-application, the applications supporting it through some central mechanism (generally flaky), or using proxychains to force an application to use the SOCKS forward (insanely flaky IME).

What sshuttle buys you is transparent interception and forwarding of tcp with firewall rules (no proxies), more reliable DNS tunnelling, packet reassembly that avoids the worst tcp-over-tcp performance nightmares, and control of any or all networks that should be tunneled to. There are a couple of nice bonuses like better traffic reporting, toggle for latency vs. throughput, and the ability to offer tunneling to other local machines, but really it's a decent alternative to a vpn for anything that only uses UDP for DNS.

TL;DR Less tinkering needed, more reliable, more pleasant to use, supports more applications.

nieve··on Protecting a Laptop from Simple and Sophisticated Attacks
Note that the firmware password can be bypassed by any Apple tech who calls into their call center, identifies themselves, and requests it. It's defense against a casual thief, but not someone with Apple connections, LEA, or any of thousands of Apple employees and third-party repair places. Still worth doing, just not as secure as the ones on old IBM thinkpads, say.
nieve··on Knitting as programming
Despite your assertion that the "grandma" mode of knitting isn't programming and mostly doesn't innovate, that (rather more diverse than assumed) community is responsible for the vast majority of new patterns and often experiments extensively. I think it's great that more (computer) geeks are getting into fields that have always had a high geek percentage and you can definitely make it a really geeky endeavor, but there's a lot of wheel reinvention and failure to RTFM. Fun, definitely worth doing as a learning experience, but perhaps we shouldn't be so much with the patting each other on the back and insularity. For that matter computer geeks aren't even in the running for geekiest approach to knitting - for that you have to go to the heavy math folks. It's intellectually, visually, and tactilely beautiful stuff.

Also you know appear to know little about real world cooking outside of a recent, highly-distorted, and publishing industry-driven world view. Recipes may list precise ingredient measurements (though most don't), but they're rarely intended to be used as-is and there's huge variation in detail. Even more so, almost all cuisines are more a collection of common techniques and ingredients than a set of well-defined dishes, with much regional variation, and huge historical change. Most European-descended Americans and much of Europe use a _tiny_ subset of the ingredients our ancestors did and have completely dropped entire genres of food. Just take a look at the actual variety of citrus fruits versus what we use and the huge range of uses they were put to.

It's like someone decided Java was the only programming language, the standard library was the only library allowed, and btw we needed to get rid of half the syntax! In that metaphor you're lionizing a couple of programmers for making the jump to Objective-C or C# while somehow overlooking the vast majority of programmers using everything from for decades Perl to ML and mixing things up left and right. Yeah, a lot of chefs & professional cooks (these are terms of art, not just a fame thing) try new things... and no, they're not even close to the only people doing so. In fact it's mostly a recent thing that chefs are innovators, for a very long time they were the ones working precisely to recipe. Consider the formalization of French haute cuisine by Antonin Carême & Georges Escoffier and the subsequent rigid adherence even now.

Try learning cooking from a cook - not a book - experimenting for yourself, and reading one of the many books like "Cookwise" that actually get into what happens and how to change it. It's the antithesis of hacking to assume there's nothing to learn and no room for experimenting!

nieve··on Knitting as programming
[Obligatory disclaimer: I am not a lacemaker, but my very geeky SO is (and a knitter and weaver and so on and so forth) and often delivers discourses on the subject and several of my friends have been similarly inclined math geeks who knit & such.]

To a first approximation a lot of them are - simple geometric/topological rules applied in a loop, a small number of branches, occasionally recursion. There's a huge amount of technique and no small amount of technical knowledge in making them work with a relatively high friction material with variable tensile strength & stretch. Execution on this stuff often involves keeping more mental state than most of the programming I do so clearly it's not always as simple an automata as it might seem, but there's a kinship.

nieve··on Show HN: A Lisp-based in-browser toy operating system
I think you're missing Unimpressive's point that if something can be run virtualized we don't cease to refer to it as an operating system. If Linux had been (perversely, ahistorically) developed as jslinux first before the bare-metal interfaces were implemented would it now be considered not-an-OS? Conversely would the act of porting it have blessed its status as an OS without regard to the presence of the same semantics and facilities in the browser version? I think if you're making this argument you're running against the tide of common _and_ academic usage, plenty of research OS projects have been tested on hardware simulators. Perhaps the easiest way to simplify this is to ask whether you can present any rule other than "browsers don't count" to distinguish the virtualized Linux case from the jslinux case.

The point being made is not that a browser is an OS, but that something using the facilities of a browser to implement all the operations and environment of an OS is... an OS. This seems almost like the duck typing versus strong typing approach - one view is that it's the behaviors that define the identity of something, the other is that it's the inheritance & implementation[].

[] Alternatively since it's April Fools, I'll argue that you're interrogating this from the wrong angle and presenting an essentialist view of OS-hood.

nieve··on Lisp in the Cloud - The Next Lisp Machine Will Be Everywhere
Thanks, I'd completely forgotten about Armed Bear as an option. Would you recommend it in preference to something like SBCL for deployment to Heroku or DotCloud?
nieve··on Lisp in the Cloud - The Next Lisp Machine Will Be Everywhere
I'm somewhat confused why you think this is contrived. Clojure isn't a Common Lisp implementation and the ecosystem around each is very different, Heroku is a nice platform for cloud hosting and there are very few (possibly no) good options for deploying CL-based web apps other than on machines you run yourself. Since some people like using Common Lisp (ITA Software being the classic example, but they're not the only ones) simplifying the process seems helpful. Would it help if I rephrased your objection as pointing out that there's no reason to work on GNU Classpath since C#/Mono exists?
← PreviousPage 15 of 16Next →