HNHacker News
TopNewBestAskShowJobs

martinp

957 karma · joined June 28, 2009

Software engineer in Trondheim, Norway.

https://github.com/mpolden

submissionscomments
martinp··on Why Python Runs Slow, Part 1: Data Structures
Wouldn't a regular tuple be the most pythonic (and possibly most efficient) way to represent a point?

I think that's what most image libraries do (at least Pillow).

martinp··on Show HN: ssh and cd get married
I do something similar. Instead of passing the tmux attach command to ssh, I attach (or create) a tmux session if the shell is a) a login shell and b) started in a SSH session. [0]

[0] https://github.com/martinp/dotfiles/blob/master/dot.zlogin

martinp··on I Decided to Delete All My Facebook Activity
You can delete your Google+ account without deleting your Google account [1].

[1] https://support.google.com/plus/answer/1044503?hl=en

martinp··on How open source changed Google and Google changed open source
I didn't know most of the team worked there either, but if I remember correctly, they have employed Junio Hamano for some time.

Hamano is the person Torvalds trusted to keep maintaining Git when he stepped down as maintainer.

martinp··on Facebook tells how it makes its MySQL cluster ‘almost run itself’
Actual link: https://www.facebook.com/notes/facebook-engineering/under-th...
martinp··on After PRISM reports, Swiss data bank sees boost
The same thing is happening in Norway.

A law was just passed that allows private law firms to monitor IP addresses participating in file sharing networks (BitTorrent etc.). After gathering IP addresses a law firm can retrieve the name and address of any "suspects" from their respective ISPs, and then proceed with filing lawsuits.

The law firms usually act on behalf of the larger organizations such as MPAA, RIAA, BREIN and others.

Most people don't care though. Even the majority of younger people, who often pirate popular TV shows and movies, seem indifferent.

martinp··on A command line tool to manage your ssh connections
I read through the readme and I couldn't figure out how this is an improvement over ssh_config(5), other than adding Yet Another Dependency.
martinp··on Erase your disk: Secure and fast.
I'm pretty sure SSDs can't be securely erased the same way as traditional drives. This is mainly due to the inherit characteristics of flash memory and the way that the firmware writes data to the NAND (wear-leveling, TRIM etc. is unpredictable).

ATA secure erase is the recommended method last I checked.

martinp··on Real Email Validation
Making your app connect to random SMTP servers every time it needs to validate an email address doesn't seem like a good idea.

Shared domains (gmail.com etc.) might even get you blacklisted if you flood the same SMTP servers over and over again.

martinp··on Show HN: My all-nighter project to find the best Google Reader alternative
This is exactly what I want. I know what I want to read, I don't need some algorithm telling me what I might like.

All my feeds are carefully chosen based on site reputation, article quality, journalism quality and my of course my interests. When I want a little bit of everything, I just browse HN (often from Reader).

martinp··on Show HN: Updated Hacker News Chrome Extension
Same issue here. Chrome 25.0.1364.160 on Linux.
martinp··on Google compression algorithm Zopfli may lead to faster Internet
This is incorrect. Java supports Unicode in source files just fine, as long as the file encoding is correct.

The problem is that certain IDEs (such as Eclipse) default to ISO-encoding on Windows. This works fine as long as you're only using Windows, but it will fail on Linux.

At my previous job certain developers preferred Windows and ended up commiting ISO-encoded source files which our build server (Ubuntu Server) failed to compile for this exact reason. A quick recode(1) usually resolves it.

martinp··on Play framework 2.10 released
> * Some other weird or 'meh' bullet points like type-safety (you're using either scala or java so you take that for granted) or stateless-web-tier.

I think type-safety is mentioned because unlike Play 1.x, almost everything is type-safe in 2.x, such as templates and route definitions.

martinp··on Why was '~' chosen to represent the home directory?
Another vote for this method. This is the only way I managed to train myself to use hjkl when I first started learning Vim.

I also disabled Home, End, PgUp and PgDown:

  noremap <home> <nop>
  noremap <end> <nop>
  noremap <pageup> <nop>
  noremap <pagedown> <nop>
martinp··on SSH client in Google Chrome
Previous discussion: http://news.ycombinator.com/item?id=3910649
martinp··on [dead]
There's so much FUD being spread around every time there's a vulnerability in the Java browser plugin.

Certain online banks (almost every single one in Norway) require an Java applet for two-factor authentication, so uninstalling the plugin is simply not an option.

Most modern browsers (atleast Chrome) require the user to whitelist domains where applets are allowed to run. In addition, applets that contain a digital signature will notify you that it has been verified and you are given a choice wheter you want to run it.

And as others have mentioned: Java and the Java browser plugin are not the same thing.

martinp··on Quitting LinkedIn
The problem is that there is a ridiculously large, and ever-increasing number of tools available. So determining which ones provide you value and which ones you can do without has become a skill in itself.

This especially applies to our field where new websites, services, platforms, frameworks and even programming languages appear pretty much every single day.

martinp··on IRC is dead, long live IRC
At my previous job we setup a internal company IRC server using InspIRCd [0]. We decided to host it on EC2 as well, and restricted access to it by putting the instance in our VPC [1] (only reachable over VPN).

It became pretty popular and it was a great way to communicate between branch offices.

[0] http://inspircd.github.com

[1] http://aws.amazon.com/vpc/

martinp··on Ask PG: Why don’t you open source HN?
Agreed, the site isn't all that usable from mobile devices. I use the Hacker News Reader app [0] for Android, it has a very nice interface and it's open source. [1]

[0] https://play.google.com/store/apps/details?id=com.manuelmaly...

[1] https://github.com/manmal/hn-android

martinp··on Stop the Ruby Drama
Probably the drama surrounding a recent Rails commit [0] and DHHs follow-up blog post. [1]

[0] https://github.com/rails/rails/commit/61b91c4c55bcbd5a2ec85d...

[1] http://david.heinemeierhansson.com/2012/rails-is-omakase.htm...

martinp··on GNU grep is 10x faster than Mac grep
'why GNU grep is fast' from the FreeBSD mailing list: http://lists.freebsd.org/pipermail/freebsd-current/2010-Augu...
martinp··on Linode Simplifies Plans, Reveals CPU Priority
My Linode also shows 4 L5520, but that's probably 2 cores with 4 threads as the L5520 [1] has 4 cores and 8 threads in total.

http://ark.intel.com/products/40201/Intel-Xeon-Processor-L55...

martinp··on Google's Digital Creative Guidebook
Looks like it has been removed now.
martinp··on Google's Digital Creative Guidebook
I was looking at the source when I noticed that the formatting of http://creativeguidebook.appspot.com/js/fbk.min.js actually spells out "WE ARE HIVE". [1]

[1] http://www.wearehive.co.uk

martinp··on Poll: What databases does your company use?
Sorry, forgot to specify which one. It was MySQL if I remember correctly.
martinp··on Poll: What databases does your company use?
In my experience the database usually gets evaluated on a per-project basis. It's a good way to determine the strengths and weaknesses of each.

Currently we use PostgreSQL for all new projects, but we have a few legacy projects still using MySQL that we haven't bothered migrating.

Additionally, most developers find it a hassle if they have to configure a fullblown database just to do development on a given project. That's why we use H2 (in-memory database) for development.

martinp··on Poll: What databases does your company use?
Most companies usually use more than one.

At my current job we use PostgreSQL and MySQL in production, and H2 in development. At my previous job we used Sybase SQL Anywhere (horrible, wouldn't recommend it), Microsoft SQL server, MySQL, Amazon RDS and H2.

martinp··on JavaZone 2012 Trailer: The Java Heist
Fun fact: The username "Kenneth36" is a reference to the leak of a Norwegian mans financial records earlier this year [1]

[1] http://www.theverge.com/2012/3/22/2892471/norway-altinn-kenn...

martinp··on Because Everyone (Still) Needs a Router
Another vote for Mikrotik. I bought a RB751G-2HnD myself about a month ago, because I needed a router with decent features and fast enough to handle a 90/10 Mbit connection.

The feature list is very impressive and on par with professional-grade gear (Cisco etc.). Only downside is that it's not open source, but it's updated about every month or so. [1]

[1] http://www.mikrotik.com/download/CHANGELOG_5

martinp··on Ctrl-P for Vim: Pure Vimscript Command-T
Another vote for vundle. Not having to manage git submodules is a nice change from pathogen.
← PreviousPage 2 of 4Next →