From the list of idiotic function signatures…

I stumbled on the function QueryWorkingSet today. It seems to be usable for solving a problem I have… What’s really amazing about this function is its totally braindead signature: BOOL QueryWorkingSet( HANDLE hProcess, PVOID pv, DWORD cb ); Please look beyond the weird Microsoft-isms with type names and the idiotic Hungarian notation. What does it …

Continue reading ‘From the list of idiotic function signatures…’ »

Share

Banging my head against sparse files

Lately I’ve had use for sparse files to solve a problem. Simple, yes. Use lseek and write (or read). Even better, at least in this case, use pwrite and pread. Should be simple, right? Yes, should be. I was banging my head against code equivalent to the following for quite a few hours: #define _XOPEN_SOURCE …

Continue reading ‘Banging my head against sparse files’ »

Share

Stuff worth reading (08/07/2006)

There seems to be some intelligence in North America. In Canada to be more specific. This is only the last article of quite a few on Canadian artists worrying about copyright. This is a little old, but still hilarious. Go CEA! Here’s an article on Britain’s anti-terrorism policy. It pretty much confirms the worries I’ve …

Continue reading ‘Stuff worth reading (08/07/2006)’ »

Share

Hah! Some commercial sites have become useful again ;)

Episode 45 of the Security Now! podcast mentions a sneaky use of the hosts file—ad blocking. By listing well-known adsites in hosts and forcing them to resolve to 127.0.0.1 (or 0.0.0.0) the irritating ads aren’t displayed. A quick search on Google and I found a site offering a list of adsites specifically for this use. …

Continue reading ‘Hah! Some commercial sites have become useful again ;)’ »

Share