Archive for the 'Programming' Category

New Java 0-Day Vulnerability [UPDATED]

Thursday, August 30th, 2012

OSX Daily has a nice post on how to disable Java on MacOS X to avoid a new Java SE7 0-day vulnerability (apparently Java SE6 is not vulnerable). Esteban Guillardoy has written up a very nice detail analysis of the vulnerability, which Oracle apparently knew about since April.
[Aug. 31, 2012 UPDATE] Apparently, the patch to [...]

New Version of Clean Chrome

Tuesday, April 3rd, 2012

I updated cleanchrome over the weekend and added (1) a new option (-l) to list old versions of Chrome that are currently installed; and (2) a manpage. The latest version of cleanchrome is available at:

https://grommit.com/~ranga/pgms/cleanchrome/cleanchrome-0.1.5.tgz
http://www.csua.berkeley.edu/~ranga/pgms/cleanchrome/cleanchrome-0.1.5.tgz

See also: cleanchrome.pl (Jan. 20, 2012).

cleanchrome.pl

Friday, January 20th, 2012

I recently came across Shane Gowland’s OldChromeRemover tool for Windows, and wrote a similar program for MacOS X called cleanchrome.pl.  
The program is fairly easy to use:
usage: cleanchrome.pl [-v] [-f] [-d dir]
-v - enable verbose / debug mode
[...]

R.I.P. Dennis Ritche

Thursday, October 13th, 2011

Apparently Dennis Ritchie died this weekend.  Very sad.  I met him once when Inferno was first being developed.  He kindly autographed my 1st Edition C Programming Language book for me, leaving enough space for Kernighan.

SFA Systems, LLC v. Big Machines, Inc. — IDEs Required for Source Code Inspections

Monday, June 6th, 2011

Judge Love of the Eastern District of Texas recently found that it was not “prejudicial or overly burdensome” to install IDEs on a source code inspection computer:
Hyundai has loaded its source code on a stand-alone computer for review. Hyundai has further provided a standard text-editor (Notepad), a source code editor (Notepad ++) and a comparison [...]

RamCache 0.1.1

Saturday, April 2nd, 2011

Updated my script for creating ram disks for Safari and Chrome’s caches to limit access to the ram disk to the user invoking the script: ramcache-0.1.1.
For more info on this script see RamCache-0.1.0 (Mar. 26, 2010).

RamCache 0.1.0

Saturday, March 26th, 2011

I finally finished the initial version of a script for creating a ram disk for Safari and Chrome’s caches on MacOS X: ramcache-0.1.0
After downloading and extracting the source, make install will install the script, ramcache.pl, and the corresponding launch agent.
By default, the ram disks are 64 MB in size, but this can be changed using [...]

Compiler Pragmas I’d Like To See

Tuesday, April 6th, 2010

#pragma borken
Tells the compiler to do its worst; it hardly matters, the code is busted anyway.
#pragma stfu
Tells the compiler to shut up and compile. That’s your job, and that’s it. Your job is not to announce banners about compiler versions, or display company logos in blinking text, or declare with amazement (and a full line of “!!!!!!!!!” [...]

Thoughts on C

Saturday, September 26th, 2009

At least I’m not the only person who thought learning C from K&R wasn’t hard:
I got used to hearing people complain about how hard K&R was to learn from and I found it difficult to relate. C seemed to be designed for the way my brain worked; pointers were a natural expression of what the [...]