HNHacker News
TopNewBestAskShowJobs

cjh_

414 karma · joined January 9, 2013

followingthepath at gmail dot com
submissionscomments
cjh_··on Linux is not about choice (2008)
>Here in the real world a desktop environment like Unity is a whole lot more than just a window manager.

That is why we distinguish between 'window manager' (only manages windows) and 'desktop environment' (a whole lot more).

cjh_··on Harder than it looks: rounding a float to the nearest integer
Well written article.

One of the things I found amazing about learning assembly was that in x86 asm it is relatively trivial to check for overflow (after an operation has happened) by checking if the overflow flag [1] is set.

Although this doesn't help with detecting if overflow will occur from an operation, it can be used to detect when it has occurred and assist recovery.

[1] http://en.wikipedia.org/wiki/Overflow_flag

cjh_··on This page is anonymous
a challenge based on public key crypto, user has a known public key and can sign a specified message with his private key to prove he owns that public key while remaining anonymous.

This also allows for password recovery in the opposite direction, site can publish passwords signed with users public keys and then users can decrypt their own using their private keys.

cjh_··on Employee Turns Gaming Network Into Private Bitcoin Mine
This works oddly well in that the amount you 'pay' for the game is directly proportional to how long you play it.
cjh_··on Stay away from rebase
I think you want `--ignore-date`, The man pages are very confusing about such things (in fact there is a minor documentation error in the current documentation on Debian Wheezy).

My concern with using a soft reset mirrors yours, but I would also like to add that it is effectively doing a manual rebase (albeit with different semantics around date) so it seemed rather odd in an article arguing against rebase.

cjh_··on Light Table 0.4 released
The author mentions [1] (at the bottom, under 'key bindings') that light table uses codemirror[2] as the editor.

I am really amazed with how well codemirror emulates basic vim key bindings [3], as I prefer to use ctrl-c rather than escape and I often find that vim emulators either do not support ctrl-c or do not support it well.

[1]http://www.chris-granger.com/2012/04/15/light-tables-numbers... [2]http://codemirror.net/ [3]http://codemirror.net/demo/vim.html

cjh_··on My former employer Opera Software has filed a lawsuit against me
Some ads now do not offer for you to skip, I think this is ad and region dependent though.
cjh_··on Pirates playing a game dev simulator complain about piracy
Those searches don't necessarily mean this is a hoax, simply that Google hasn't yet indexed them (possible if the posts are only a few days old), and that is assuming they are in places Google is able to index at all.
cjh_··on Fuduntu Project Ends
shouldnt [1] instead be http://en.wikipedia.org/wiki/Unity_(user_interface) ?
cjh_··on E-Cigarettes Bring Smokers Back Inside, For Now
I cannot upvote this enough, thank you for going to the effort of actually checking the source for the full claim.
cjh_··on Bruce Eckel on why he's moving back to Windows from Mac
I find the modern synaptic trackpad on my Thinkpad X1 carbon to be amazing, it worked well under windows and runs very well under Linux (maybe even a bit better as I am more familiar with how to configure it).
cjh_··on Layoffs at EA Today
There are even some awesome 2d games like 'Battle for Wesnoth' (open source) that will happily run on most netbooks.
cjh_··on Dell's XPS 13 Developer's Edition: My Missed Opportunity
very good point, you literally get what you pay for (and are stuck with it).

I am really liking my x1 carbon and it performs very well with linux.

I do wish I had stretched for the 8gb of ram but the 4gb has never been an issue (despite me sometimes running windows in a VM), however my general toolset is quite light (mostly command line based) so YMMV.

cjh_··on Very Short Reply Expected
I quite like the idea of using the OP's original phrasing of 'welcome' as I find that pleasingly polite

    VSRW - Very short reply welcome
cjh_··on Bitcoin exchange Mt. Gox taken down for hours by ‘another strong DDoS attack’
Yes and No. You are right in that Mt.Gox doesn't handle 80% of all btc-btc trade.

However many use Mt.Gox as their wallet so the TPB analogy doesn't quite hold that far, as Mt.Gox being taken down would mean these people wouldn't have access to their BTC funds stored in that wallet.

I should have mentioned this in my original post, but I was sloppy.

cjh_··on Bitcoin exchange Mt. Gox taken down for hours by ‘another strong DDoS attack’
Quoting the mtgox homepage which in turn claims to be quoting wikipedia: "As of July 2011, Mt. Gox handles over 80% of all Bitcoin trade".

MTGOX is more than just a USD to bitcoin exchange.

cjh_··on Brian Kernighan's Advanced Programming Techniques Class at Princeton
Dynamicly typed and interpreted, it is one of the many uses of the term 'scripting language' [1]

[1] http://en.wikipedia.org/wiki/Ousterhout%27s_dichotomy

cjh_··on Security incident update
I find it somewhat worrying that they haven't directly address the points of the hacker's claim.

I am particularly interested to find out whether linode did enter into a deal with the hackers.

cjh_··on Linode hacked, CCs and passwords leaked
If this is indeed true I will be very disappointed, I have had an otherwise great relationship with Linode.

I await for more data and hopefully an official response from Linode.

If the worst case is true, what are some good alternatives for Linux VPS hosting?

cjh_··on Ask HN: Those with intense focus, how do you do it?
I too often have difficulty focussing on a task, often getting bogged down in reading email or 'quickly' checking the news.

To get around this I use the pomodoro technique [1] and [2]

I have also found quite a bit of success using paper lists; If I write down everything productive I need to get done (mostly on a high-level like 'look into bug nnnn') and only allow myself to work on the items on the list.

I also actively work on keeping my mind on task; if I find myself wandering off and thinking about something important I will write myself a quick note so that I can remember it later, this helps get it off my mind so I can get back to working.

[1] http://en.wikipedia.org/wiki/Pomodoro_Technique [2] http://www.pomodorotechnique.com/

cjh_··on Gitmo Is Killing Me
In this case I think the hypocrisy is positive; I would much rather NYT be hypocritical by speaking out against Guantanamo rather than holding their old position.
cjh_··on What's Going On (on "Why Python, Ruby, and Javascript are Slow")
This question is partially address in the articles linked to at the start [1]

I linked to the slide that begins to mention it, rather short though.

The answer is that we can add heuristics, but that we should also be able to solve this somewhat on a language/library level rather than only at a vm level.

[1] https://speakerdeck.com/alex/why-python-ruby-and-javascript-...

cjh_··on What's Going On (on "Why Python, Ruby, and Javascript are Slow")
I see this as a devtime-runtime tradeoff, If you follow the link to the mentioned article [1] there is some discussion about how to improve on this tradeoff.

FWIW: I use C for many of my personal projects as I often enjoy solving problems at that level, however at my job I am 90% Perl with the other 10% being various web things (css, js, html, etc.).

I too would be very interested in articles looking at performance of some of the older dynamic languages.

[1] https://speakerdeck.com/alex/why-python-ruby-and-javascript-...

cjh_··on What's Going On (on "Why Python, Ruby, and Javascript are Slow")
Very interesting read.

I have only written a small amount of Go, I have been through tour.golang.org, just waiting for the right project for me to use it on.

Currently whenever a new project comes along I reach for C or Perl, hoping to find a niche between them for Go.

cjh_··on Workflow in tmux
It may just take a bit of work to make sure that the important tmux keybindings don't clash with those of the applications you will be running.
cjh_··on Workflow in tmux
http://lmgtfy.com/?q=RSI
cjh_··on Best ultrabook for linux? [April 2013 edition]
Running native gives increased battery life and makes multiple-monitor support generally easier.
cjh_··on Die Git Die
Good point. It is setting dependent and the default is 2-3 weeks IIRC.
cjh_··on Die Git Die
This is the reason pulling all matching branches (and pushing all matching branches) by default is generally a bad idea.
cjh_··on Die Git Die
I don't understand how creating a branch is a major operation.

Creating a branch is non-destructive and cheap, tidying up after accidental creation is also easy.

← PreviousPage 3 of 5Next →