elliotth's blog

Java, C++, Android, Linux, Mac OS, programming. Something for everygeek.

2012-10-26

How (not) to use readdir_r(3)

›
TL;DR: always use readdir(3) instead of readdir_r(3). I spend most of my time fixing bugs. Often I feel like there's something instruct...
2012-08-31

How to read Dalvik SIGQUIT output

›
If you're a long-time Java developer you're probably used to sending SIGQUIT to a Java process (either via kill -3 or hitting ctrl-...
2012-04-04

gettid on Mac OS

›
The Linux kernel has a gettid(2) call that returns the current thread's thread id. These numbers can be handy. They're useful for de...
2012-03-09

operator<< and function pointers

›
This one fools me all the time. Maybe if I write it down I'll remember. What does this code output? #include <iostream> int mai...
2012-01-01

Beware convenience methods

›
The Android documentation links from various methods to Beware the default locale . It's great advice, but most people don't know th...
2011-09-22

How can I get a thread's stack bounds?

›
I've had to work out how to get the current thread's stack bounds a couple of times lately, so it's time I wrote it down. If y...
2011-05-04

signal(2) versus sigaction(2)

›
Normally, I'm pretty gung-ho about abandoning old API. I don't have head space for every crappy API I've ever come across, so an...
2009-08-21

Java on a thousand cores

›
Cliff Click wrote a recent blog post that started "warning: no technical content", which wasn't true. Buried 3/4 of the way t...
Home
View web version
Powered by Blogger.