HNHacker News
TopNewBestAskShowJobs

craigds

1,106 karma · joined July 23, 2013

Software Engineer @ Koordinates in New Zealand

github.com/craigds koordinates.com

submissionscomments
craigds··on Ascii art – dead or alive?
If you live in the 80s.
craigds··on Email is your electronic memory
We've done the opposite. After ten years in operation we've only just begun to add html parts to our emails. Its just easier to render plain text, and no one has the time to be spending hours templating and testing emails, we've got better things to do.
craigds··on What to Do When Laptops and Silence Take Over Your Cafe?
When I work from cafés I try to spend at least a few € every two hours, and avoid places that are overly busy (I don't like noise, but also if there's spare seats then I'm not costing anyone customers by sitting in one all day). Feels like common sense really - don't be an asshole.
craigds··on There’s a Global Race to Control Batteries–and China Is Winning
Are you suggesting there's actually a way?
craigds··on Let’s talk about usernames
Why would you need case insensitivity in URLs by default? I can imagine you might in the odd view here and there, though in ten years of django usage I don't think I've needed to do so
craigds··on Let’s talk about usernames
Yeah. We switched to CITEXT for email addresses after 10k users, and had to go through quite a complex process to merge about 30 user accounts that had signed up duplicate accounts with email addresses varying only in case). It was a major PITA
craigds··on Let’s talk about usernames
Oh also, we used a CITEXT field for storing email addresses. Store the case the user registers with, and use that for sending comms etc, but uniquify and match (on login etc) in a case insensitive way.
craigds··on Let’s talk about usernames
That's definitely controversial, and in my experience, just plain wrong. Many, many users sign up to a service with john.doe@example.com and get confused when they later try to log in with John.Doe@example.com. we had to add a fix for this in our django user model a couple years back. We havent had any complaints with the new, case insensitive system. IMHO this sort of this should be upstreamed but it seems Django have decided to stick with the spec in spite of usability.
craigds··on Candy Wrappers Are Listening (2014)
Depends what's on camera and how smart your software is. A full wavelength of audible sound is between a few centimetres and a few tens of metres. If you have a few objects in scene at such known distances, you can calculate how far out of phase they are, interpolate them and piece together a much higher effective sampling rate.
craigds··on The city I write this in protected its name, so I am not allowed to use it
This is excellent: > During Prohibition the winery sold grape juice in small wooden barrels. A label was placed on the barrel giving explicit instructions on how the juice would turn into wine if precautions weren't taken.
craigds··on Why a ‘paperless world’ still hasn’t happened
Is that true? In NZ a digital signature is a legal signature. You dont have to print and scan it, just type your name. Legit signed.
craigds··on Google Maps' Moat
Is it really more convenient? Coordinates make sense to everyone and every map tool can understand them. W3W phrases are useless unless you happen to have the app.

Also, there are a few amusing clones... http://www.what3fucks.com/

craigds··on What Needs to Happen Before Electric Cars Take Over the World
We'll find a way though, after some pain. Maybe we'll just become less mobile, and be okay with that. Denser housing and more distributed community hubs seem the obvious solution.

The harder question is how would you get from here to a world without cars in the first place. There are some pretty massive political and social hurdles to overcome. I don't think this will happen until we basically run out of fuel, unfortunately.

craigds··on People Don't Get the Link Between Meat Consumption and Climate Change (2016)
Grass fed beef isn't a solution. Cows still produce a lot of methane. http://www.ox.ac.uk/news/2017-10-03-grass-fed-beef-good-or-b...
craigds··on Using LD_PRELOAD to cheat, inject features and investigate programs (2013)
GDAL has a vsipreload.so which you can preload to replace all the libc file handling functions with ones that understand special filesystem paths, like /vsizip/path/to/zipfile.zip/myfile.csv

We used it for years to do remote inspection of zip files without downloading the whole thing. Now there's a proper API for virtual filesystems in GDAL and we don't have to preload any more.

craigds··on “Make It Biblical” – How Vagrant Story Changed Video Game Localization
Initially I thought this was something to do with Hashicorp's Vagrant. It's really not.

https://en.m.wikipedia.org/wiki/Vagrant_Story

craigds··on E-Bikes Offer Entry-Level Electric Transportation
What a weird thing to say. People don't buy ebikes for an entry jnto electric, they buy them because they're a really convenient, fast and fun way to commute.
craigds··on Germany bans children's smartwatches
Ha. My 14 year old can have a smart phone when she gets a job, saves up for it and pays for it herself.

That'll teach her to value it (and not lose/smash it like my 15yo mentee keeps doing.) It also means she probably won't have one till she's 16 or so.

Disclaimer: I actually only have a two year old. Maybe I'll change my mind in the next twelve years, who knows.

craigds··on Numpy: Plan for dropping Python 2.7 support
Nonsense. Use six, use tox for testing in both, easy peasy. They're not that different. Plenty of libraries do it. No reason scripts can't too. Plenty do. Specify a "/usr/bin/env python3" shebang if you want to use any cool features like f-strings
craigds··on Numpy: Plan for dropping Python 2.7 support
A week! It took me six months to port our main app from django 1.5 to 1.8. Though our app is huge, and most of that was migrating from DRF 2.3 to 3.3.
craigds··on Ask HN: Do you write code on the train? What's your setup?
Actually I'm in Mangere Bridge (I take the Onehunga train, which is quite sparsely used)
craigds··on Ask HN: Do you write code on the train? What's your setup?
15" MBP (2013, must be about time for a new one). Tethering via my android.

Unfortunately because I'm in NZ, mobile data is super expensive, so I only get 2.25GB/month. Turns out that's adequate for 1 hour of train per day (30min each way), but I have to be a bit careful. I use https://www.tripmode.ch/ to limit my usage somewhat.

The keyboard on my MBP is absolutely awful, and if I use it for more than about 20 minutes I get sore fingers. The backspace key requires about a tonne of force to register a delete. So I use a Coolermaster MasterKeys Pro S. It's a bit awkward using it on the train, but I usually do anyway because my fingers kill me otherwise. It helps if I have a spare seat next to me.

Working on the train shaves an hour off my office day, so I get more time with my daughter. I can work from home a couple days a week, but I prefer to go in to the office when possible since I find I focus better at the office.

craigds··on Show HN: PySchemes – A library for validating data structures in Python
marshmallow: 62 watchers, 2055 stars, 244 forks. requests: 1142 watchers, 28420 stars, 5212 forks.

I don't think those are in the same league

craigds··on AIM will shut down after 20 years
Which doesn't work unless your phone is on
craigds··on ‘Catch Me If You Can’ Scam Artist Has a Warning for Today’s Consumers
Are cheques still a thing? I haven't seen one in about ten years, maybe more.
craigds··on AdNauseam – Clicking Ads So You Don't Have To
I'd love to use this, but I can't afford for Google to block my Google account.

Yes, this is not really tied to my Google account, but would Google associate me with it and delete my account anyway? I think they might.

For that reason I'm happy to continue just blocking ads, since that's much less likely to put me on their radar

craigds··on Aging Parents with Lots of Stuff, and Children Who Don’t Want It
Stand on a chair? Unless you have wicked high ceilings I guess
craigds··on My last name makes me invisible to Computers (2015)
Dutch names (two or three word surnames with spaces) confuse all sorts of systems/people.
craigds··on The Incredible Shrinking Airline Seat
This might be an unpopular opinion here, but..

It doesn't bother me too much. I would rather pay 10% less than have a 10% bigger seat.

This way the businessmen who care and want to pay for business class can fund the airline, so that I can pay the bare minimum. Airlines are expensive enough, let's not force them to increase seat sizes so they have to raise their prices.

I do feel bad for tall people though.

craigds··on Porting a historic Python2 module to Python3
In NZ we definitely pronounce it "historic". But that doesn't stop the news anchors from saying "an historic". It sounds ridiculous
← PreviousPage 4 of 8Next →