KBD

Keith Devens .com

Sunday, September 7, 2008 Flag waving
The direct pursuit of happiness is a recipe for an unhappy life. – Donald Campbell

Archive: March 03, 2004

← March 02, 2004March 04, 2004 →

Daily link icon Wednesday, March 3, 2004

Blame the alcohol

If this happened with guns people would be blaming the guns.

Arnold gets it done

Good news in California. Both budget bills (the $15 billion bond and the balanced budget bill) passed easily.

Schwarzenegger used his celebrity and political capital to build support for the bond measure, the centerpiece of his plan to solve the state's financial woes without what he warned would be "Armageddon" budget cuts or higher taxes.

Barely a third of likely voters supported Schwarzenegger's borrowing plan a month ago, but the former actor and bodybuilder used his enormous clout with voters to get the measure passed. He barnstormed the state in support of the measure and helped raise $10 million for an advertising blitz that flooded the airwaves.

Last week, Schwarzenegger held a rally at Universal Studios with actor Rob Lowe and threw T-shirts to supporters. On Monday, he went to Jay Leno's "The Tonight Show" to tout the bond measure alongside the man he ousted - former Democratic Gov. Gray Davis.

It is only the second time in modern California political history that voters eventually approved a ballot measure which trailed in early polls. "We are talking political steroids," said Jack Pitney, a government professor at Claremont McKenna College. "He can claim credit for turning around public opinion."

Mozilla sidebar sends referrer header

I was annoyed recently when I discovered that the Mozilla/Firebird/Firefox sidebars send referrer headers when you click on links in them. In fact, they don't send the referrer as the page loaded in the sidebar, but as the page loaded in the main browser window! That seems to me to be a pretty big privacy problem, since other sites you visit can see whatever page you're browsing if you happen to click on a link in your sidebar. It can even be a security hole if session ids are in the URL (as they never should be, but that's another issue).

There's a bug filed for this exact issue, bug 226548. Bug 122668 is a semi-related bug. Judging by this original bug, bug 137342, it seems that this has been a known bug for almost two years, at least, with no sign of getting fixed soon. I'd like to poke around in the source code, but I have no clue where to even start looking.

It seems there's a preference to turn off referrers altogether, so I may just use that. But it's a shame to have to go that far to fix this one broken feature.

user_pref("network.http.sendRefererHeader", 0);

0 = do not send header information
1 = send only clicks
2 = enabled

(about:config is your friend.) Though, I'm not sure what the difference between 1 and 2 are. Ahh, 2 sends on image requests and such.

Hmm... also see http://refspoof.mozdev.org/

Update: The nice side-effect of this is that now I stop getting annoying referrers when I use my javascript bookmarklet to post to my bookmarks collection (which I'll be making public in a few days once I get a few more features -- such as renaming -- into it).

Renaming

Any CMS should have a way to rename parts of a URL structure so that A. the resource becomes available at a new location and is no longer available at the old location, and B. the old location automatically does a permanent redirect to the new location. This way the end-user can feel free to rename things at will (and there's no pressure to come up with the perfect name the first time).

Of course, renaming has a couple of issues that you have to watch out for. If you change the location of a resource from A to B, and then from B to C, A should forward to C without forwarding to B first. Furthermore, if you rename A to B, B to C, and C to A again, A should work, and B and C should forward to A. Finally, if the resource is deleted, all pointers should be removed. Update: Oh yeah, and if another resource is created with the original name, then you have to make sure to remove whatever rename information exists so that the new resource can be available.

However, in case of deletion, it may make sense to keep track of deleted entries so it's possible to respond with an HTTP GONE (410) response code. In that case, it is more appropriate for both A and B to directly return 410 rather than A send a "moved permanently" response and forward to B and have B return 410.

Serenity is go

It looks like Serenity, the Firefly movie, is actually happening.

← March 02, 2004March 04, 2004 →
September 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 6 posts

Recent comments XML

new⇒I hate Norton Antivirus

Long long live AVG I love you!...

kevin sands: Sep 6, 7:31pm

I hate ASP.NET

CF, why pick that piece of trash?​Cold Confusion. Is it finally​really a OO...

ColdConfusion: Sep 5, 8:36pm

Maps of Iraq

This is for Linda, I will be​visiting that site some time in the​near futur...

Bob: Sep 5, 1:20pm

Girls, please don't get breast implants

Well alright I just read my above​comment and I wanted to add​this...I shou...

76.66.140.8: Sep 4, 7:31pm

Spider solitaire

I don't think the question was​necessarily if there are unbeatable​games.  ...

Jared: Sep 4, 12:44pm

Convert Pantone Colors to RGB and Hex - Color Conversion Chart

The colors on those website don't​seem to relate to the pantone data​we hav...

blah: Sep 3, 10:12am

Generated in about 0.055s.

(Used 7 db queries)

mobile phone