Monthly Archives: October 2012

my voting guide for propositions in California’s 2012 election

30. YES to increase sales and income tax (supposedly progressively) for educational funding. California’s budget is so crippled by years of stupid propositions that I will vote up almost anything that increases taxes.

31. NO to this confused mess of state budget rule changes. The proposal to stop “gut and amend” by requiring that the full text of a proposed bill that has been approved by subcommittees be frozen to major changes is interesting, but the rest is a grab bag of land mines.

32. NO to reducing the paid political speech abilities of unions while leaving plenty of loopholes for corporations. Prop 32 is brought to you by everyone’s favorite shadowy billionaire douchebags, the Koch brothers.

33. NO on this insurance-company-backed proposition, which would permit rate hikes for people without a history of car insurance coverage. For example: people who didn’t have cars for a long period.

34. YES to stop the death penalty. Has some budget consequences I don’t understand – can anyone clarify?

35. NO to attaching the nebulous “human trafficking” label to a wide variety of crimes for no reason. The continued expansion of what is considered a “sex offense” is bad enough. Would also cost millions of dollars allocated to “human trafficking” which would probably come out of other law enforcement budget allocations.

36. YES to revise the Three Strikes law to focus on violent crimes only. Would let a lot of nonviolent offenders out of prison. Projected savings in the high tens of millions.

37. YES to require GMO products to be labeled. Some cost, not funded, but since Big Agritech is virulently opposed to 37, I’m all for it.

38. YES to a second income tax increase to fund education.

39. YES on a large tax increase on multistate corporations doing business in California. This would force them to pay their fair share instead of using a loophole specific to multistate businesses that lets them evade most CA corporate taxes.

40. YES to keep the Citizens Redistricting Commission-delineated districts as they apply to the state senate. Court action mandated that anyway, so the Commission lines are safe, but vote YES just to give an extra F U to the California Republican Party’s gerrymandering attempt.


find hidden files with lsflags, show them with chflags

I want to go fishing in my work Mac’s ~/Library folder for some app settings files, but Apple has decided to hide it from me. I could use -shift-G, or open ~/Library, but that’s not the kind of guy I am. Why is it hidden? The filename doesn’t start with a dot, so the Finder’s going on something other than Unix convention there. Were this 1998, I’d launch ResEdit and clear the folder’s HFS hidden flag. Maybe that’s still around in some form? I’ll look at the file’s extended attributes, because I’ve seen other HFS stuff like resource forks in there.

Arachnoscope:Desktop steelpangolin$ xattr -l ~/Library
00000000  00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00  |........@.......|
00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|

Well, I was hoping for something more like, but this is a start. Except it’s completely opaque. Googling… aha. A hidden flag is mentioned in chflags. But how do I confirm that this flag is actually why the Library’s omitted from the Finder’s listings? Is there any way to read flags?

Arachnoscope:Desktop steelpangolin$ ls /usr/bin | grep flag

Nope. Back to the man pages; I’ll have to write one myself: lsflags.c.

Now I’ll give it a go:

Arachnoscope:Desktop steelpangolin$ gcc -std=c99 -Wall lsflags.c -o lsflags
Arachnoscope:Desktop steelpangolin$ ./lsflags ~/Library
/Users/steelpangolin/Library: hidden
Arachnoscope:Desktop steelpangolin$ chflags nohidden ~/Library
Arachnoscope:Desktop steelpangolin$ ./lsflags ~/Library
Arachnoscope:Desktop steelpangolin$ xattr -l ~/Library

Hooray. The flag shows up, and it is indeed stored in the xattr, because both disappear when I remove it. But what’s this, at the end of the first man page I found?

You can use “ls -lO” to see the flags of existing files.

Note to self: read all the way to the end next time.

Tagged ,