551 reputation
210
bio website twitter.com/jweyrich
location Southern, Brazil
age 30
visits member for 4 years, 6 months
seen Nov 28 at 18:35

I have been working with C for 10+ years, Objective-C for ~3 years, and recently rediscovered C++. I have a public affair with statically typed languages and network protocols. Oh, I also sympathise with Python.

Did I help you somehow? If you think it's worth something and you're feeling generous, you may take a look at my wish list to see some books that would make me quite happy.


Aug
26
comment Port Forwarding How to access from external ip
You need to configure NAT on your router.
Apr
4
comment The setting to connect one router to another, how?
Great answer! +1
Mar
11
comment How to add +x just for user with chmod?
The question probably has dozens of duplicates, but I posted it as an answer anyway. Glad it helped.
Mar
11
comment How to add +x just for user with chmod?
chmod u+x file. u=user, g=group, o=others.
Mar
10
comment OSX Mavericks: How can I make a webserver launch at boot and listen to port 80 without running the webserver as root?
I posted it as an actual answer so it might benefit others as well. I hope nginx becomes launchd-aware so we can come back and post a more pleasing answer :-)
Mar
10
comment OSX Mavericks: How can I make a webserver launch at boot and listen to port 80 without running the webserver as root?
No problem. You're welcome.
Mar
10
comment OSX Mavericks: How can I make a webserver launch at boot and listen to port 80 without running the webserver as root?
You're absolutely right when you say it's possible, however, the launchd does not do any magic. A daemon needs to "get" the socket bound by launchd (e.g.: launch_data_get_fd) - it needs to be launchd-aware and implement some logic internally. AFAIK that's not the case for nginx.
Mar
10
comment Reduce search sensitivity in Spotlight
You may fallback to your terminal, e.g: find <dir> -name "bla.txt".
Mar
10
comment OSX Mavericks: How can I make a webserver launch at boot and listen to port 80 without running the webserver as root?
I believe that won't work, even with launchd. AFAICT you need to run it as root. You can make the nginx itself drop the privileges afterwards. I'm not quite sure about what needs to be changed in nginx.conf, but there should be something like User - change it to _www.
Mar
10
comment OSX Mavericks: How can I make a webserver launch at boot and listen to port 80 without running the webserver as root?
With launchd you may load the plist with sudo, e.g.: sudo launchctl load -w <your_plist>.
Jan
30
comment How to make Firefox use TCP for DNS
You should report your ISP behavior to the internet authority in your country. Unless you're @ China, I believe EFF can help you with that.
Oct
19
comment install gcc on MAC 10.7.4
Oh, thanks for the notice. Removed macports from the answer.
May
13
comment How do I get my public static IP address?
Do you want to make your software discover the public IP address, or you want to find it manually?
Mar
20
comment “File” exists or not
Not programming related.
Apr
30
comment How to test if gcc is installed?
Yet, if you don't have /usr/bin in your PATH, your Mac OS is likely to be broken.
Apr
30
comment How to test if gcc is installed?
Better with whereis gcc or which gcc.
Jan
16
comment Is there a limit on the number of files in UNIX?
And df -hi shows the current FS's inodes limit and its usage statistic.