HNHacker News
TopNewBestAskShowJobs

raylu

229 karma · joined July 26, 2010

https://www.raylu.net/

[ my public key: https://keybase.io/raylu; my proof: https://keybase.io/raylu/sigs/2eHD_y93HvreyDnuBRuKMzjjm-A9VvvYEDfUY2FivPs ]

submissionscomments
raylu··on If you have failed to grok vim, ditch the arrow keys
There are a lot of other tools that use hjkl. Most commonly `less`, but also pentadactyl (http://5digits.org/) and a lot of tiling window managers.
raylu··on If you have failed to grok vim, ditch the arrow keys
Managing configuration on multiple computers is a pretty easy problem to solve. http://git.raylu.net/dotfiles/tree/
raylu··on If you have failed to grok vim, ditch the arrow keys
Have you considered swapping Esc and Caps Lock instead? Caps Lock is not very useful so tossing it into the corner makes sense to me.
raylu··on How Search Works
It seems you're making an argument of the form "it's too difficult to collect real evidence. In fact, here's an example of a way to collect real evidence that is ridiculously difficult. Since we cannot collect real evidence, we need not use it to make arguments."

Just because it's difficult doesn't mean you can jump to conclusions based on speculation.

raylu··on How Search Works
From the beautified app.min.js:

    function a() {
        e = e || Q("number_of_seconds");
        d = d || Q("searches_count_num");
        f = f || Q("searches_count_unit");
        var a = ~~ (((new Date).getTime() - h) / 1E3 % 86400),
            k = a * b + "";
        f.innerHTML = " " + c[Math.ceil(k.length / 3)] || "";
        e.innerHTML = a;
        d.innerHTML = k.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,")
    }
    var b = ~~ (1E11 / 2592E3),
So yes.
raylu··on Heroku Fucking Console
This might be because it's ambiguous which submodules you want to update if you have nested submodules.

In other words, git knows "exactly where that is" by searching parent directories until it sees a ".git". Unfortunately, submodules also have ".git" in them since they're full git repositories themselves.

git submodules are not the nicest part of git, unfortunately.

raylu··on Heroku Fucking Console
It would be pretty annoying if I ran a search or a follow (shift+F), thought it was taking too long, and hit Ctrl+C right after it finished.

Ctrl+C doesn't mean "end this program." If you want that, consider Ctrl+\.

raylu··on Heroku Fucking Console
No. If something is wrong with the current network config, don't automatically muck around with it so that I can't troubleshoot the problem myself. It's important to understand the current state to figure out how you got into that broken state; kind of like a breakpoint at the first exception. Automatically renewing is like 'On Error Goto Next'.

That said, I agree that it should suggest renewing the DHCP lease.

raylu··on Hackathons are bad for you
I don't think anybody expects to build a great product during just the hackathon and I'm not sure where you got this impression.
raylu··on Andrew Mason's statement about being fired as Groupon CEO
I felt it was dishonest when I got to "good fat camp to lose my Groupon 40." It seems he tried really hard to inject humor and trivialities into the letter.
raylu··on Nginx vs. Apache in AWS
The sensible config syntax is the reason I still use lighttpd. http://wiki.nginx.org/IfIsEvil
raylu··on IE10 for Windows 7 Globally Available
What is the point of the "Better Browsers" section on that page?
raylu··on Why a one-room West Virginia library runs a $20,000 Cisco router
I don't think this is regulatory capture at all. Regulatory capture is when those charged with making rules meant to limit the powers of a group are in bed with that same group.
raylu··on The Next SourceForge
Minor point: GitHub wiki's have git access. https://github.com/[user]/[repo]/wiki/_access
raylu··on The Chromebook Pixel
Where'd you get those numbers?
raylu··on Linode vs. DigitalOcean – performance benchmarks
I've had the opposite experience, similar to http://news.ycombinator.com/item?id=5209207. I'm using a VPS so I'm not really looking for support.

On a few occasions, the machine has gone down because of some maintenance or some issue that comes up. I was not notified of this and had to submit a ticket myself, after which I was told that the techs had taken down my machine. After asking why I wasn't notified, I was given no direct response.

raylu··on Show HN: What colour is your IP address?
Different cameras and software will do different kinds of automatic white balance correction but nobody will screw it up so bad that you can't differentiate black from white.
raylu··on Php-o: metaprogramming PHP to give it a saner API
JavaScript uses camelCase; the C functions use_underscores. Mixing and matching the two has been a complaint about the entire PHP library for a long time.
raylu··on Death in Singapore
The "being a burden to his family" bit really stuck out to me. That is something that has been deeply embedded into east Asian culture for a long time and would not be at all strange for an Asian to say. On the other hand, it's not something you usually hear from someone brought up in America.
raylu··on Ten predictions (2004)
Yes, but GitHub makes a lot of money by hosting something that is open-source: git.
raylu··on Ten predictions (2004)
I think github.com is the best example of #2.
raylu··on Ten predictions (2004)
http://hackingdistributed.com/2013/02/14/whats-nosql/
raylu··on Heroku - Bamboo Routing Performance
Actually, that's the only one that smells like BS to me. The others have clear meaning and goals.
raylu··on HipChat releases native app for Mac
And the fact that, unless you identify as "bot", you get disconnected for inactivity and reconnecting spams your logs with repeats of conversations.

Oh, and the fake roster pushes, gibberish names for guest users, and the fact that you can only join a room with your full name.

raylu··on Website Impounded
I suspect he has given up on collecting.
raylu··on How Much Traffic is Too Much Traffic For CloudFlare?
While I agree CloudFlare handled this poorly, there is this reply on the blog from Matthew Prince (CEO of CloudFlare):

Both enabling "I'm Under Attack Mode" or routing the traffic direct are both supposed to generate an automated message to the customer letting them know what happened. We've reviewed the logs and don't see a message having been sent. I'm investigating why that didn't happen since I agree it is not acceptable.

raylu··on Show HN: a web-based xkcd-style comix editor
I suspect you are not part of his target audience.
raylu··on Php-o: metaprogramming PHP to give it a saner API
and sometimes even 'case' to denote the case-insensitive version.

To be fair, that's copied from libc (and a lot of the other naming in the string library too): http://linux.die.net/man/3/strcasestr

raylu··on Php-o: metaprogramming PHP to give it a saner API
Multiple calling conventions that allow for inconsistent use of functions for a language with multiple naming conventions resulting in already inconsistent code is... not the most fantastic idea I've ever entertained.

It's an interesting idea, but there's only one right answer here.

raylu··on Php-o: metaprogramming PHP to give it a saner API
This doesn't fix that, it just makes it worse.

This is an experiment in meta-programming PHP to give it a saner API.

Sweet.

s() turns all the standard string functions into methods with identical behavior:

s($haystack)->pos($needle)

OK. Cool. Sounds good.

->preg_replace(), ->in_array()

Yep. Awesome.

The s() function also implements JavaScript's string API:

->charAt(), ->indexOf(), ->lastIndexOf()

...

......

.........

← PreviousPage 5 of 6Next →