News for hackers. Stuff that matters.

cron

`select-string` or it's alias `sst`. I find myself filtering collections of objects far more frequently then grepping lines when using powershell.
Re:Did English ever have a formal version of “you”? on Tuesday February 11, 2014 @06:23AM (#7217048)
In Ireland it's fairly common for people to use "you" as the singular and "ye" as the plural. It's less ambiguous but definitely not considered proper.
I'd say levelling (getting inside a players head, understanding how they'll react to a situation and staying one step ahead) is important for higher level play in both games.
Re:Linux computer shop closing on Saturday March 16, 2013 @02:44PM (#5386301)
It's right and proper that microsoft receive a payment for every pc laptop sold?
Re:A New Vaccine For Drinking Could Keep Alcoholics Sober on Friday February 15, 2013 @05:49PM (#5229162)
So a bit of internet sleuthing later...

The creator, Dr. Juan Asenjo, is speaking at the World Vaccine Congress and Expo [1]. He also refers to the drug as a vaccine [2].

[1] http://www.terrapinn.com/2013/world-vaccine-congress-washing...

[2] http://www.ibtimes.co.uk/articles/430928/20130203/alcoholism... (unfortunately the original source of this quote seems to be behind a paywall [3])

[3] http://www.santiagotimes.cl/chile/science-technology/25637-w...

Re:A New Vaccine For Drinking Could Keep Alcoholics Sober on Friday February 15, 2013 @05:07PM (#5228962)
Could someone explain to me how this is a vaccine? In school we were taught inoculations boost immunity and a vaccine is a form of inoculation which works by introducing enough of a bacteria or virus to make a person build antibodies.
Re:Util-linux cheat sheet on Saturday September 08, 2012 @05:48PM (#4494119)
I'm guessing this was generated by running `man -f` on the list of executables provided by util-linux.

    descriptions() { xargs -I '{}' man -f '{}' ; }
    executables() { pkgfile -bl $1 | cut -f 2; } # Arch Linux specific
    executables util-linux | descriptions 2> missed | sort | less
Building hard core, committed fans is probably more valuable in the long term rather than maximizing profits from ticket sales.
Re:Arch Linux turns 10 on Wednesday March 14, 2012 @04:26PM (#3705173)
IMO, minimalism is as much a defensive strategy as it is an aesthetic for Arch users.
Re:Preprocessor magic: Default Arguments in C on Friday February 17, 2012 @01:47PM (#3604474)
The Linux kernel `container_of` and `offset_of` macros can be pretty handy when writing generic containers.
Re:Forgotten C: The comma operator on Tuesday July 19, 2011 @05:25PM (#2783150)
Cute way to reverse a string, taken from the K+R:

    for (i = 0, j = strlen(s)-1; i < j; i++, j--) 
           c = s[i], s[i] = s[j], s[j] = c;
Re:Why Erlang? - In-A-Gist Blog on Monday March 14, 2011 @01:13PM (#2323365)
I'm also coding an Erlang websocket app. In my implementation a simple_one_for_one spawns a new gen_server when a connection is accepted. It looks a little prettier because all the spawning, sending and receiving is now handled by the OTP. I also use active sockets, but I'm a bit worried about flood protection, what's your strategy?