brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Firefox 3, a little rant [Mar. 17th, 2008|09:34 am]
[Tags|, , , ]

Dear Firefox,

We've been together now, what, 9 years? Remember back in the M18-ish days in 2000 when you used to shit your image cache? Aww, so cute. Yes, those were fun times.

You were new then, so I could forgive your kinda sucking.

But 8 years later I'd expect you to get your act together. In particular, a slow network operation should not beach-ball the whole goddamn application. Please go back to school and learn some basic networking, perhaps some threading, maybe some state machines. For Chist's sake.

When I visited the Mozilla campus a few months ago and did my little lunchtime presentation on why I'm breaking up with Firefox, this was my number one complaint, but I was happy with your guys' answer:
Oh, there are two APIs in OS X to do async networking, and we were using the wrong one in Firefox 1 and 2... the old, wrong one blocks the whole app. In Firefox 3 we're using the correct one!
So I temporarily displaced my frustration with Firefox and redirected it at Apple, for whom I'll always have extra capacity for frustration.

I waited patiently.

Then the Firefox 3 betas started to come out. "Holy shit!" I thought, "This stuff's getting pretty impressive. A browser on Linux that doesn't piss me off! Oh cute, they even fixed most the memory leaks!"

So yeah, I'm liking Firefox 3 (currently beta 4).

But you still fucking beach-ball all the time on OS X when the network is slow. That is to say, just about whenever I use my laptop, which is always over WiFi or EVDO.

Please fix.

Lovingly yours,
Brad

P.S. I'd open a bug, but my last bug has been open for 4 years or so now, so I'm not going to waste my time with that anymore. (I even funded a developer to fix the bug I'd opened a ticket for.... twice.)

Update, 2008-02-24: Turns out the problem is PAC files.
Link56 comments|Leave a comment

USB Noise-Cancelling Headphones [Jan. 15th, 2008|10:49 am]
[Tags|]

Dear Lazyweb,

Product recommendation, please: I want USB noise cancelling headphones. Big ears. No microphone. I can't seem to find any.

(And please, don't recommend products that aren't USB. I already have one that's not USB and I'm sick of listening to internal computer noise and the cord being an antenna for my cellphone's RF activity.)

Lovingly always,
Brad
Link18 comments|Leave a comment

EVDO rant/question [Jan. 3rd, 2008|11:17 am]
[Tags|, , ]

Why does my Verizon EVDO card "disconnect" me on my Mac? Two or three times per hour it drops and I have to "reconnect". Very frustrating, as all TCP (ssh, usually) connections die. (Yes, I use screen... I'm still angry.)

If I lose signal for a second, who cares? Just wait for signal again and then send any queued IP packets. The other side sending me data will notice the lack of ACKs and resend their data. You know... that whole TCP thing. Why does Verizon/Apple or whoever think it's nice to just disconnect the network device and force the whole slow setup process again (DHCP, etc)?

Are these parameters tunable?

Hopefully somebody has some background/explanation for why this sucks like this... it'd make me a little less depressed at least knowing the historical accident which caused this sad state of affairs.
Link16 comments|Leave a comment

Lazyweb Networking [Nov. 1st, 2007|03:59 pm]
[Tags|]

Dear Lazyweb,

Who do I know who works at Mugshot.org?
Link7 comments|Leave a comment

RT is so slow [Sep. 29th, 2007|12:16 pm]
[Tags|, , , ]

Dear Jesse Vincent,

rt.cpan.org is still unusably slow. I don't care the specs of the box, how it's configured, or who runs it. It reflects poorly on your company and your software and I'd be embarrassed if I were you to have rt.cpan.org still running.

Please host this yourself, or buy perl.org a new box for this, and maintain it for them. Or take your name off the front page of rt.cpan.org to distance yourself from it. Either way.

(just grumpy because people are still filing tickets in it, most of which I want to close with WONTFIX or REJECTED, but the system's too slow to even let me do that....)

So note to everybody else: I will ignore your rt.cpan.org tickets and patches. Use the mailing lists. My inbox is my ticketing system.

Lovingly always,
Brad
Link15 comments|Leave a comment

Motorcycle Update: still no go [Sep. 8th, 2007|12:12 pm]
[Tags|, ]

Update on the motorcycle situation:
  • I bought the recommended, smart trickle charger.
  • It flashes red when connected to aux port (manual: "Battery not connected, or battery totally dead (under 3V)")
  • Also tried connecting it to battery leads... same thing.
  • Tested battery leads with volt meter: 0 volts. Needle didn't even twitch. Tested on car, to test volt meter: 12 volts. Volt meter fine.
Now what? Stupid "smart" trickle charger won't recharge the battery because it's too dead? Confused.

I'd remove the battery, but I'd need to remove the right side panel, and I don't have Torx tools.

Suggestions?

Buy new battery? Motorcycle only about 1,200 miles.. alternator should be fine, says the shop.
Link16 comments|Leave a comment

Motorcycle won't start -- alternator? battery? [Sep. 6th, 2007|10:39 pm]
[Tags|, ]

My motorcycle (BMW F650GS) won't start.

-- turn the key, no lights (maybe I left it on?)
-- if I jump it from my car, it'll turn on, and engine will start
-- once I disconnect jumper cables, engine dies

It's that last point which confuses me: once it's going (and I left it run 5+ minutes), why does it need the battery anymore? I don't see why disconnecting the battery immediately kills the engine.

Any suggestions?
Link23 comments|Leave a comment

Unexpected failure mode [Jul. 5th, 2007|10:56 pm]
[Tags|, , , , ]
[Current Location |Grass Valley, CA]

Dear Lazyweb,

Let's imagine for a second, hypothetically, that some drunk girl sees Blinkenlights on the RAID array in your garage and says (reportedly) "Oh neat, hot swap!", and proceeds to remove 3 drives from a particular 5-disk RAID-5 array, instantly killing the party music and a quite a bit of other data [accessibility].

Hypothetically, that would look like this: (after a reboot, incidentally)
# cat /proc/mdstat 
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] 
md1 : inactive sda[0] sde[4] sdd[3] sdc[2] sdb[1]
      2441932480 blocks super non-persistent
       
md0 : active raid1 sdf1[0] sdg1[1]
      97659008 blocks [2/2] [UU]
      
unused devices: <none>

Since I'm currently in Grass Valley for [info]nick's wedding, enjoying the ~110F heat (it was 113F/45C on the way up here!), I'll leave it to you guys, my friendly LazyWeb, to suggest how one might fix such a busted array, perhaps saving me some time reading mdadm(8).

Lovingly yours,
Brad
Link25 comments|Leave a comment

thundering herd; bleh [Jul. 3rd, 2007|06:06 pm]
[Tags|, , ]

Imagine the following scenario:
  • Parent process opens listening socket, but will never accept() on it. Opening in parent so future forked child processes will inherit the fd, and because it's a low port (perhaps) and we want to open it before we drop root.
  • Child processes (one per CPU) inherit listening fd, but they're event-based, handling many connections each, so they can't do a blocking accept() on it...
See where this is going? :-)
  • So if each child has readability of that listening socket fd in its select/epoll/queue set, guess what? Thundering herd. The kernel wakes up all processes, but only one accepts the new client connection.
So instead I guess I have to...
  • have a socketpair between parent and each child for communication,
  • watch readability of the listening fd in parent process,
  • on readability, send a message to "best" child (for some definition of best) to accept on the listening socket which it has, but isn't watching readability on.
  • perhaps have children tell the parent process when connections go away, so parent knows approximate load on each child.
Feels kinda lame that I have to do this.

Any better suggestions?
Link35 comments|Leave a comment

AC switching, monitoring... [Apr. 13th, 2007|02:28 pm]
[Tags|, , , ]

My sewer's sump system has 3 pumps...
  • 2 in big tank. These have float sensors and only turn on when the fluid level is high enough. Only one needs to be on at a time. Ideally, I should have a switch box install that makes sure only one gets power at a time, switching it back & forth every so often. Otherwise if one is installed just a millimeter above the other, one will always get all the work and the second will never go, and so they won't wear equally.
  • 1 in little (rainwater?) tank. Also has a float sensor.
My deck is currently still torn apart because I'm still paranoid that once I close it, something will break again and I won't notice.

I'd like to be able to remotely monitor (and/or get alerts) about the pump health.

Here's what I propose (and what I need help on)....

Small Linux box (Mini-ITX or Gumstix) in a water-proof box, with WiFi, with serial ports (or Serial over USB), controlling X10 Universal Adapters (if they're strong enough for the amperage?), or controlling some relays.

So yes, I could do the switching between the two tanks from the computer with just a remote relay control, including varying the offsets, such that one pump doesn't always get the same hours of the day, but what I actually want to do is measure the power draw per-pump.

Basically I want to make sure the pumps' floats and motors are still working, by measuring the power draw on each of the three plugs.

Any ideas how I can measure this?

I'm also willing to pay somebody to build me some Serial/Parallel/USB device to do this, if any CSE-types are out in the audience. I'd rather spend a couple hundred on a solution that makes me happy, than spend a few hundred on a switching box and seal up the deck and never know if it's going to blow up again (or already has!).

Thanks!
Link18 comments|Leave a comment

Blackberry Pearl Hacking [Apr. 12th, 2007|03:52 pm]
[Tags|, ]

Dear Lazyweb,

I just bought a Blackberry Pearl yesterday and it arrived today. It doesn't satisfy all my requirements for an ideal phone, but it'll hold me over for awhile until dream phone comes along. Plus it's frickin' small.

How do I develop for this thing?

Java? J2ME? Whatever's fine.

Where's the SDK for Linux and/or Mac? Then how do I get programs onto it? Just download them from the web I guess?

I'm lazy.

With love,
Bradley
Link7 comments|Leave a comment

Where's my Honda Title? [Mar. 20th, 2007|10:55 pm]
[Tags|]

I went searching my files for my Honda's title, but it's nowhere to be found.

My mom says the title (the Oregon title?) is in her safe deposit box in Portland, because I didn't have a safe or safe deposit box at the time (1999).

My California registration says:

*NO TITLE ISSUED/VEHICLE NOT TRANSFERABLE*
***CONTACT DMV FOR CA TITLE INFO***


What's that mean?

When I brought the car to California from Oregon, I didn't have the original title with me, so they couldn't give me a California title?

If my parents overnight the Oregon title to me, can I sell the car in California with an Oregon title, or do I need to transfer it to a California title first?

I don't know any of this. :(
Link8 comments|Leave a comment

Need a new phone. Treo's dead. [Mar. 18th, 2007|07:17 pm]
[Tags|, , , ]

5 months after its 1 year warranty expired, my Treo 650 just shat itself for the final time. The keyboard's all whack now, pressing random keys on its own, not responding to other keys, etc.

And given that OpenMoko isn't quite ready yet software-wise, I should buy another phone. So...

Dear Lazyweb,

I need a new phone!


The new phone has the following properties, and you'll tell me what phone it is:
  • QWERTY keyboard -- for thumb-killing fast SMS'ing.
  • GSM, Quad-band, Unlocked -- gotta use it in Russia and Europe and Japan, and with pre-pay SIM cards not from T-Mobile
  • Sufficiently Hackable -- can I put apps from the Internet on it?
  • Good IMAP client
  • ssh client
  • Camera
  • Menus and navigation that don't offend me -- I don't want spinny animations and offensive shit common in the slow-ass gimmicky "Java phones"
So, what do I want?
Link46 comments|Leave a comment

How to unmount as unprivileged user on a Mac? [Mar. 12th, 2007|07:22 pm]
[Tags|, ]

Brads-Computer:~ bradfitz$ umount /Volumes/EOS_DIGITAL/
umount: unmount(/Volumes/EOS_DIGITAL): Operation not permitted
But I can click the little eject icon thingy!

How do I do that via command line?
Link10 comments|Leave a comment

LazyWeb: PulseAudio, Squeezebox, music distribution/sync ... [Mar. 3rd, 2007|10:47 am]
[Tags|, ]

Dearest Lazyweb,

Long time no talk. How've you been? Good, good.

Question for you... kinda a repeat of one I've asked before...

I want to be able to play music from any computer in the house, and have it sent to four devices, in the house, all synced. The four major devices in the house are:

-- Squeezebox, downstairs: feeds 20-some channel amp for speakers in ceilings.
-- Squeezebox, upstairs: feeds receiver upstairs for good living room speakers
-- Mac, office: pretty good computer speakers (but Mac can run software slim player)
-- Linux box, garage, hooked up to garage speakers (also can run software slim player)

Now, the Squeezeboxes can all sync with each other, but I have to play music from the kinda ghetto web interface, and often I just downloaded something to my mac desktop or somebody brought over their iPod or something, and I can't get the audio into the server to get onto the 4 devices.

So I want, from any location, to inject sound into something that then streams/pushes it to all the Squeezeboxes.

Ideally, I want a place I can plug in an iPod (just the headphone jack) or play music from iTunes in my office, and have it go everywhere.

Bonus points if your solution involves somehow what I hear is the new sexiness, PulseAudio. (finally a soundserver done right? so I read/hear, but of course skeptical.)

For the injecting-from-Mac-desktop side, is there an output sound driver I can switch to on the Mac, that sends the audio data across the network to ... something?

Any solution that involves more computers instantly loses.

Only tangentially related, USB-IP is cool and something I've always wanted, but it was just removed from -mm because of conflicts and lack of maintainership? Sad.

Love always,
Brad

P.S. This LazyWeb question would be better if I knew what I wanted more.
Link11 comments|Leave a comment

How to sell a car? [Jan. 29th, 2007|08:54 am]
[Tags|]

I'm selling my 1999 Honda Accord (ancient website for it when I was so proud to have a car...)

But--- how to sell it?

Craigslist?
Dealer?

I know of no problems with the car except some engine mounts that are wearing out and should be replaced. (which I just made an appointment to replace)

But, that said, what forms do I need to cover my ass just in case there are problems? In other words, the big "as is" clause?

And if I sell it myself on craiglists, where do you set the price? Exactly Bluebook? Or which of Bluebook's prices?

Thanks!
Link31 comments|Leave a comment

5.25" floppy drive? [Dec. 31st, 2006|05:27 pm]
[Tags|, ]

Anybody have a 5.25" floppy drive they want to lend/give me? I found some old disks I want to image.

And are there any floppy ↔ USB cables, so I don't actually have to open up a computer to use it?

Or maybe a company in the Bay Area that does media imaging?

Update: I'm getting hooked up. Thanks!
Link7 comments|Leave a comment

Rhett Miller mp3 [Nov. 23rd, 2006|04:02 pm]
[Tags|, ]

Anybody have the Rhett Miller song "Question" that's partially in French?
Link5 comments|Leave a comment

HDR and Linux [Nov. 18th, 2006|08:24 pm]
[Tags|, , , , ]

Anybody here do any HDR work with Linux?

I think I'm finally wrapping my head around all the concepts, formats, tools, processes, etc, but I've yet to do anything with any of it. Although I have some source images I'm eager to play with.

If my understanding is correct, there are basically two phases:

1) get multiple source images (on a tripod) of different exposures (shutter speed differences, not aperature) and run them through a tool to convert them into an HDR file (floating point pixel values, not 8-bit per channel). These file formats are either *.hdr or the ILM OpenEXR format? Or maybe some other formats. The tool mkhdr looks like it can do this, with some hand-holding. (you have to give it ppm files and shutter speeds on command line, since it can't read any raw files, but that's understandable because there's a dozen+ raw formats...)

2) given HDR file of some format (depending on tool), do cool shit with it. Canonical examples are various blurs that used to clip out highs, and "tone mapping", of which there are various algorithms it seems to reduce the HDR data down into something sexy for screen (which is low dynamic range)

So I guess my questions are:

-- best Linux tool for creating HDR images? is mkhdr good? I can automate the parameter hell.
-- best tools for converting between *.hdr and OpenEXR, etc? The imagemagick of HDR file formats?
-- best tone mapping algorithms to create the typical HDR photos you see online

Any pointers appreciated. Thanks!
Link5 comments|Leave a comment

Wifi bridging / roaming .... [Nov. 7th, 2006|05:30 pm]
[Tags|, , ]

So ... my wifi which I so happily reinstated is great, but a big cement wall (probably with some kryptonite in it) blocks all wireless in the living room. Which means there's no place in the house that a single AP can be placed to reach everywhere.

Which means multiple APs.

And I'd like to just carry my laptop around with me without reconnecting to stuff.

How can I do this?

What if I get two APs in just bridge mode, using my private network DHCP server, and then still do the ACLs on the APs about where you're allowed to send packets to. If I give them the same ESSID, will laptops roam? Or will the two APs fight? Or could I set the AP's MAC addresses to the same thing, or would that just make it all worse?

I know nothing of the 802.11 "physical" layer.

Also possible: commercial products that do this. As long as said commercial products let me do enough packet filtering that I can stop connections to my internal network, without having to put a big noisy Linux box between the AP and the ethernet jack.

Also possible: Dina's Mac Mini is in the living room, with unused wifi, and my Mac Mini, also with unused wifi, is sitting next to the HyperWRT Linksys in the prime AP location. Could do something with those two macs, working together to share?

School me.
Link27 comments|Leave a comment

navigation
[ viewing | most recent entries ]
[ go | earlier ]