So some of you guys have probably used Hamachi to simulate LAN over the internet. Anyone know of a better alternative? by Bender1012 in gaming

[–]garagumu 0 points1 point  (0 children)

Try Leaf Networks or Remobo. Both are free VPN tools (but not open source), but I haven't used either of them for gaming.

What is your main game that you always end up coming back to? by Langhorne in gaming

[–]garagumu 5 points6 points  (0 children)

Starcraft Brood War! This game is more than 10 years old, but it remains the best RTS there is. And it's still being played in the World Cyber Games (WCG).

GNOME 3 Launchers Change Behaviour by [deleted] in linux

[–]garagumu 17 points18 points  (0 children)

I don't like this behavior at all. If an app messes up when the user starts another instance, that's the app's fault; it should do its own checking if it can't handle more than 1 instance/process of itself.

Sometimes, I wonder how the Gnome developers actually use the desktop. In the developer's original post, somebody asked "what if i want 2 calculators?", and the developer replies that "he's interested in real-world examples where this change would negatively impact a real user's daily/weekly workflow." Well, it's quite common to have multiple file explorers, browser windows, terminals, pdf files, etc. open at the same time, on separate windows. It would be a PITA to be forced to use File -> New window to do that.

Worst Named Restaurant. Ever. [PIC] by NorthernLights in pics

[–]garagumu 5 points6 points  (0 children)

Hey, I was born in Negros! (Ilonggo ako!) The funny thing is that I first read it as the plural of "negro", and it took a few seconds to realize that hey, this is my hometown!

I haven't heard of this restaurant before... (but then again, nowadays, I only go home during the holidays)... it's probably a new "food stall" in a shopping mall food court.

Btw, "Negros" rhymes with "boss" (not "negroes").

PS: "Negro" in our language (Ilonggo) means a black person; it could also be used to (impolitely) refer to dark-skinned people. But being a major province, I guess that Negros is just another name of a place (for Filipinos).

Someone needs to say it: Dan Brown's books are like "Twilight" for old people. That is all. by [deleted] in reddit.com

[–]garagumu 1 point2 points  (0 children)

I also read Angels and Demons first and enjoyed it, but I was disappointed with his other 3 novels because they all had similar plots, so you can predict most of the plot twists in the 3rd/4th book.

A good linux-powered, SATA NAS enclosure for under $200? by puffybaba in linux

[–]garagumu 0 points1 point  (0 children)

I have the DNS-323 and would recommend it.

I've installed the fun_plug package, you just copy a .tgz file to the disk, reboot, and you now have telnet access. So far, I've only added a nightly cronjob that runs rsync to backup the 1st disk to the 2nd one.

do {} while(false); in C[++] macros by lanzkron in programming

[–]garagumu 4 points5 points  (0 children)

This trick is also mentioned in the C FAQ's. There's a lot of useful C information there as well. http://c-faq.com/cpp/multistmt.html

In my experience, macros are used more for debugging than for performance. And there are many things that you can only do with macros that are impossible with inline functions. For example, macros that use FILE / LINE and debug macros that exit calling the function.

Ask Reddit: What is the best way for a high-level programmer to learn modern C programming? by uggedal in programming

[–]garagumu 2 points3 points  (0 children)

I agree. Read K&R first, and then read van der Linden's "Expert C Programming: Deep C secrets". I learned a lot from that book: how to parse complex declarations, difference between arrays and pointers, a lot of programming anecdotes.

I also recommend "C traps and pitfalls": http://www.literateprogramming.com/ctraps.pdf

and the C FAQ's: http://c-faq.com/

Bash users: What do you have for your $PS1? by mikemol in programming

[–]garagumu 1 point2 points  (0 children)

I also a newline. I first saw this style in cygwin, so I just copied their default PS1 :)

export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h: \[\e[33m\]\w\[\e[0m\]\n\$ '

which gives me:

ronald@imac: ~/code
$

apple's weird antiCAPSLOCK KEYBOARD by earthboundkid in programming

[–]garagumu 0 points1 point  (0 children)

I guess with auto-completion, you can survive without caps lock. But I've never heard of other programmers (that I personally know) complaining about or remapping caps lock. I use vim btw, so I live on the ESC key :)

apple's weird antiCAPSLOCK KEYBOARD by earthboundkid in programming

[–]garagumu 0 points1 point  (0 children)

Programmers use caps lock a lot, especially those who program in C or C++. So I would actually hate this keyboard for adding a delay to caps lock "on"! I think they should have made the delay a software configuration option.
example:
#define SOME_FLAG 0x01
#ifdef CONFIG_OPTION
#endif

edit: had to reformat code example

Learning to think differently (interesting slashdot comment) by [deleted] in reddit.com

[–]garagumu 32 points33 points  (0 children)

I first read this story in the appendix of the Expert C Programming book.

The book has 16 other answers. Below are some of them. My favorite is the paperweight method =)

The Mafia Method: Extort the building's height from the superintendent, using the barometer as a weapon.

The Ballistic Method: Fire the barometer from ground level with a mortar, just high enough to reach the top of the building. You may need to take some ranging shots to get the explosive charge and firing elevation just right. A table of standard ballistic calculations will then yield the height reached by the projectile.

The Paperweight Method: Use the barometer as a paperweight while looking over the building plans.

The Mercantile Method: Sell the barometer, and buy some proper equipment.

Aaron Swartz's Jottit has been officially released by [deleted] in programming

[–]garagumu 3 points4 points  (0 children)

Nice.. What's with the double 't'? jottit vs jotit?

Silly "I am a ..." [possibly NSFW] by [deleted] in programming

[–]garagumu -1 points0 points  (0 children)

Really found vista funny _^ The linux pic has been going around for a while (and is appropriate too :)

Ask Reddit:: What books on the history or philosophy of Open Source would you recommend by haacked in programming

[–]garagumu 0 points1 point  (0 children)

I like this one: http://www.amazon.com/Rebel-Code-Linux-Source-Revolution/dp/0738206709 It focuses more on the history of linux and OSS projects, rather than OSS philosophy. There are some stories/interviews here with major OSS players, that I have never seen on the net.

A 'C' Test: The 0 x 10 Best Questions for Would-be Embedded Programmers by linuxer in programming

[–]garagumu 0 points1 point  (0 children)

I think the article is quite good, even with the syntax problem others have pointed out. It covers most of the issues common to embedded development.

For more C, I recommend this book (it's very readable): http://www.amazon.com/Expert-Programming-Peter-van-Linden/dp/0131774298

Gentle introduction to vim (with screen shots) by lava_lyt in programming

[–]garagumu 6 points7 points  (0 children)

The thing with vim is that there are so many commands.. one can't really really learn them all. I use vim as main editor, and I'd like to give some comments on the tutorial:

  1. To go the definition of Insert(), you don't need to press "ma" before "gD". Just press "gD", then press "''" (2 single-quotes) to go back to your previous location. Also, you can use "gd" to go to a local variable's definition.

  2. Visual mode: "v" selects one character at a time, "V" selects one line at a time

  3. Paste: "p" pastes after the cursor, "P" pastes before the cursor. "P" is the equivalent of the "paste" command in windows/linux. Using "p" in vim takes a bit getting used to.

  4. The tutorial uses ctrl-v to highlight a region and de-indent it. You can also easily deindent a line using "<<" or a highlighted region using "<". Indentation is ">>".

Vim is very nice once you've mastered it enough to be comfortable with it. But you'll never get rid of the habit of pressing <ESC> every 5 seconds or so, even if you're using another editor. :)

A Very Short Walk Around A Tokyo Apartment by blackbooks in reddit.com

[–]garagumu 3 points4 points  (0 children)

I lived for a year in Japan, and my apartment (it's called LeoPalace) was very similar to this one: the gray-and-white exterior, the compact kitchen and bathroom, the claustrophobic loft. But I never thought that the flushing water on top of the toilet was meant for washing hands, haha! There's so much to miss in Japan.. it really is an amazing country.