Log in

No account? Create an account
bazbax's Journal [entries|friends|calendar]

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

it's a mystery [06 Jan 2009|03:13pm]

mysql> delete from ingredients where id IN( 4517, 4536, 4534, 4531);
ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails

And which foreign key constraint might that be?
7 comments|post comment

Office Hours [01 Dec 2008|02:14pm]
I've been getting hassled a lot at work via IM. It's important for me to be available to talk to other people that I work with, but the context shifts are killing me when I'm constantly being interrupted. So-- I've implemented "office hours" and am enforcing it by going invisible in Adium, my IM client.

First I wrote a couple of simple shell scripts:

$ cat adium-invisible.sh
/usr/local/bin/growlnotify -a Adium.app -m "Adium is going invisible"
/usr/bin/osascript -e 'tell application "Adium" to go invisible'

$ cat adium-online.sh
/usr/local/bin/growlnotify -a Adium.app -m "No longer invisible"
/usr/bin/osascript -e 'tell application "Adium" to go online'

growlnotify is part of Growl, a notification system for OS x. Read more in the documentation

Then I call them via cron:

$ crontab -l
# be available from 3:00pm-4:00pm
00 15 * * * bash /Users/jaybuff/bin/adium-online.sh
00 16 * * * bash /Users/jaybuff/bin/adium-invisible.sh

# be available from 6:30pm - 11:30am
30 18 * * * bash /Users/jaybuff/bin/adium-online.sh
30 11 * * * bash /Users/jaybuff/bin/adium-invisible.sh
post comment

Birthday present for myself [08 Nov 2008|12:53pm]
I just purchased a Dell 30" monitor, the 3007WFP.

I payed $888 shipped (after a $200 rebate that I'll get in 60 days). It will also function as an HDTV. My MacBook Pro can run it at its full resolution, 2560 x 1600. Not bad!
post comment

iPhone app request: remind me when I'm near [13 Aug 2008|03:30pm]
Dear iPhone App Developers,

I would like an app that allows me to say things like:

"remind me the next time I'm near a walgreens to buy soap"
"remind me when I get to work to take my bike off the shuttle"

The interface would look like google maps. I draw a circle. When my phone notices I'm inside that circle it pops up a reminder.

I'm tired of getting home after just walking by a walgreens to realize I don't have soap. And I'm tired of forgetting my bike on the shuttle and having to chase it down three blocks to get it back.

2 comments|post comment

Who's Gunna Be VP [04 Jun 2008|12:45pm]
Everyone else is speculating who Obama is going to pick for his running mate.

My short list, in order of likelihood:

* Jim Webb - Senator from Virginia. Former Marine (Vietnam Vet). Former Republican. Reagan's Secretary of the Navy.
* Sam Nunn - former Senator from Georgia. He was the Chairman of the Senate Armed Services Committee.
* Wesley Clark - Retired Four Star General. Ran for President in 2004.
post comment

Ping Pong Balls Photo Shoot [30 May 2008|11:35am]
Jud Dagnall and mal did an excellent job in a photo shoot of me with two gross of ping pong balls.

Thanks Guys!
2 comments|post comment

[23 May 2008|02:14pm]
The Cisco VPN UI sucks. I instead prefer to connect using a command line program. To connect on my Mac I do this:

sudo vpnup 123456

Where 123456 is your RSA SecureID. details and code after cutCollapse )
post comment

[05 May 2008|07:37am]
I'm throwing a Memorial Day get together for anyone in San Francisco on May 24th.

The official video invite:
post comment

Bikram Yoga [17 Apr 2008|12:36pm]

Figure 1: Hippies

Bikram Yoga is hard. Lauran has been raving about it for sometime now. Last night I agreed to go with her to Funky Door Yoga in Cole Valley.

The room is 105 degrees F and 40% humidity. The class lasts 90 minutes. We went through 26 different poses and two breathing exercises. The last ten minutes I started to get tunnel vision and had to lay down. I was zapped.

The instructor was really good. She knew I was new and kept giving me advice on the hard stuff. She kept calling me "James" though. Apparently I mumble my own name.

I wasn't aware it was possible to sweat that much. After a cold shower I felt 10,000 times better.

Afterwards Lauran and I went to some sushi place in Cole Valley. I haven't explored that neighboorhood much. It's actually really cool. I would like to live there, but Noe is really nice, too.

It's only $29 a month and you can pay as you go. Since one class is $16 I signed up for a full month. I'm actually looking forward to going back next week.
1 comment|post comment

Apparently Daylight Saving Kicked In [11 Mar 2008|06:06pm]
Me: Whoa, it's bright out.
co-worker: yeah, daylight savings time.
Me: Oh yeah, when is that?
co-worker: it was this past Sunday
Me: get out of here
My phone is my primary clock and my laptop secondary. They corrected themselves and didn't mention it to me. For the past three days I've been trying to figure out why I've been feeling so sluggish. I guess that explains it.
post comment

50 million voters in Democratic TX primary tonight (not really) [04 Mar 2008|06:25pm]

Hrmm... We have one million votes counted from only 2% of the precincts? That's from CNN. MSNBC says the same thing.

I assume that most of those votes are from ballots that were cast before the election day (absentee voters). Nowhere on either site (CNN or MSNBC) do they explain this.

Seriously, media, get your act together.
post comment

Dinner party madness [29 Feb 2008|09:05am]
Eight days, four dinner parties.
  • Saturday: Iron Chef Noe Valley. The secret ingredient was cheese.

  • Wednesday: Cooking at Brad's: Belize themed.

  • Thursday: Steve's in town. Eats and drinks at my place.

  • Saturday: Flying to San Diego for Sean's third annual Soiree de Crepes.
Wow! It's a busy week for my stomach.
post comment

Room 641a in 611 Folsom St, San Francisco, CA [14 Feb 2008|10:13am]
You know how in Monopoly you trade Park Place and $500 for Pennsylvania Avenue, but you get immunity the first two times you land on the big blue monopoly? And then the other players complain that immunity isn't fair and it's not in the rules and you can't do that?

Yeah, that's basically what G.W. Bush and congress is doing with the warrentless wiretaping. I thought we elected democrats en masse in 2006 to stop this kind of nonsense?

For the record, here is a handy chart (via SFist) to remind you what Democrats didn't vote to stop immunity:

EFF is fighting this. Read their coverage.
post comment

Automatically connect EVDO card on insert on MacBook Pro [05 Feb 2008|11:47pm]
I bought a card for my MacBook Pro laptop that will connect to the high speed EVDO network. I've been annoyed that it takes about eight clicks to connect after insert the card. This should happen automatically whenever I insert the card. Here is a Perl script to automate that.
instructions after the cutCollapse )
post comment

VPN with EVDO Card and OS X on a MacBook Pro. [28 Jan 2008|02:12pm]
I have a Verizon EV-DO card. I connect on my MacBook Pro using the built in "Internet Connect" It looks like it creates a PPP connection. When I launch Cisco VPNClient it tells me that there are no interfaces connected and exists after I click okay. What do I have to do to connect to the VPN when I'm using my EVDO card?

After connecting to the EVDO network you need to restart the VPN service by running this command in terminal:
sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart

Now if I can just figure out how to automatically connect when I insert the card.
2 comments|post comment

Telecom Immunity Bill [26 Jan 2008|12:33pm]

This is insane. Telecom companies (like AT&T here in San Francisco) illegally gave the NSA access to all my data flowing through their internet connections. Now that they've been caught the Whitehouse is pushing to give them immunity from lawsuits against them.

I'm in awe of how horrible things have gotten. The US has become a country that tortures, holds citizens without habeas corpus and spies on its citizens.

Check out the photo pool on flickr of people speaking out against telecom immunity.
post comment

Genius [24 Jan 2008|07:06pm]
I love this idea:

Via ffffound
post comment

Gelaskins for my iPhone and MacBook Pro [17 Jan 2008|10:15am]
Gelaskins.com sell great art that applies to the back of your iPod, iPhone or Laptop. They come off easily and are very durable. I bought Kobe by Aya Kato for my MacBook pro and I couldn't be happier with it:

For my iPhone I got Tea Party by Brandi Milne:

They're high quality and made from "3M vinyl and adhesive technology." I love mine and I highly recommend them to all Apple fan boys.
post comment

MyQ Gadgets [15 Jan 2008|02:52pm]
Jay Janssen gave a talk today where he showed off his new
MyQ Gadgets pack. Super cool. If you've ever tried to decipher "show innodb status" you need this tool. Thanks Jay!
post comment

Weekend update [14 Jan 2008|03:37pm]
Busy weekend:

  • Friday night Kieran and I had horrible Chinese food at 18th and Mission. We each at about four bites and left the rest.
    • I urged Kieran to start a citizen's action group to "fix" muni. He has a lot of great ideas.
    • I'm dog sitting, so Rio, Sam's Dog, chilled with me and Kieran. I took him back Sat. Night.
  • I got my Arduino Friday.
    • I'm building a a 16x16 grid of 6" x 6"x 6" RGB cubes. Each one will work similar to this
    • I designed a protocol for talking to the grid, example here
    • Currently working with YACC to write a grammar for parsing that which I'll upload to the arduino
  • Helped Julia put together a patio heater. It's fancy. Looking forward to using it at her next dinner party.
  • Saw the ANSI art exhibit. Met my old school IRC friend (circa 1996), tHe_pUnk there. Very fitting. He's a great guy and we're still friends. I also met Steve there. He has a nice write up.
  • went to the range with three guys from work. [pics on flickr]
  • had a late lunch with Mike Schilli at Chow on Market and Church. Great place.
  • got yet another ($40) parking ticket for street sweeping. I thought I had to move it by 9am, it was 6am. That's it: I'm selling my car. It gets posted on CL tonight.
post comment

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