« December 2007 | Main | February 2008 »

January 2008

January 25, 2008

Patent

I now have a patent to my name. Woohoo!

January 18, 2008

Things I Learned About Python

Sockets

Turns out socket.socket() is not directly implemented by Modules/socketmodule.c. So you can't pass a socket.socket() into C and expect a PySocketSockObject*. You need to pass ._sock ... that's a PySocketSockObject*, i.e. the socket implemented in Modules/socketmodule.c.

Asyncore

Messages on unix domain datagram sockets trigger handle_connect() and then handle_read(). I just pass on the connect.

Embedding

Pyrex doesn't work as advertised. Simple direct embedding, however, works fine... but only if you build the shared python library (at least, that's the only consistent difference between working and non-working that I've noticed so far).

Extending

Writing a module in C is very easy.


Technorati Tags:
,


January 16, 2008

Air Thoughts

The Air is exactly what I want in a laptop. I don't understand people who are complaining about it. OK, if you want a desktop-replacement laptop, guess what... this isn't it!

I almost never use my optical drive on my G4 Powerbook... the only times I've used it in the last year+ were times when I could easily have used Remote Disc.

I don't use wired networking on my laptop. I almost never use USB, so one port is sufficient for me.

My Powerbook already functions as an Air, only much slower, much bigger, and much heavier. Seems pretty obvious to me.


Technorati Tags:
,


From Parallels to VMWare

Well the Parallels PVA experience led me to try VMWare, which has a similar virtual machine directory. But this time, most of them have torrents, which is perfect.

While downloading a web developer image on bittorrent, I decided to get the CentOS 5.1 DVD too... only lots of people had it, so it actually came down much faster (700K bytes/sec or more). So I ended up installing CentOS myself, which is fine. Probably better.

My experience with VMWare has been positive... subjectively, it seems to create much less load on my real system. But I've only been using it for console Linux, so no heavy graphics or even a GUI.

January 14, 2008

Hating on Parallels PVA Directory

I need a Linux virtual machine right quick. I can download one for Parallels... sweet... no installs necessary. But they're all hosted on rapidshare.com and bigupload.com! Not one of the bigupload links worked, and rapidshare is a HUGE pain in the butt. Very uncool. There should be a Parallels-hosted, bandwidth-throttled (as needed) service to download these things. Rapidshare takes me back 15 years to when people thought the privilege of downloading something was a business model. Blech.

Time to try VMWare.

January 12, 2008

New Mexico, The Condensed Version

Soooo we went to New Mexico on the Amtrak train... yep. Here we go...

We went to the train station (on Washington, near downtown). Pathetic is the kindest word that can be said about it, considering that this is the third or fourth largest city in the country.

It was cold.

We went out onto the platform to wait for the train. It was cold. My boys were fussing about being cold, despite the fact that we were waiting for a train which they loved.

Train arrives, yay, it's big, the boys are impressed, etc.

Now we get to board... massively disorganized. Is there a line? Or just a pile? Do we wait for our destination to be called? Or just butt in. Finally decide on the latter, lest we just stand on the platform all night with three freezing kids.

We get on... tiny stairway, but I manage to drag the laptop bag and camera bag (and tripod!) through. We get to our seats... we have a row (2 on each side). Nice seats, lots of room. Quiet car, fairly empty.

Relax... boys are excited about train ride.

Train starts moving... goes right by all kinds of things we know... finally goes through Sugar Land which is fun for the boys.

We go a little ways (Flatonia) and stop. And stay. For. a. long. time. I'm dozing... strange bumping/jerking train noises.

San Antonio. We've been on the train for 6 hours already I think. We leave SA 2+ hours late.

More sleep. Wake up. Train stopped in the middle of nowhere. For hours. Breakfast in dining car. Lunch in dining car. We're now a small number of hours from when we are scheduled to arrive in El Paso.

Only we're barely in "West Texas" at all. The natives are getting restless.

Some guy is smoking in our car. Train personnel spot him and he heads for the next car. Conductor comes and escorts him to his seat. Soon he gets up.

Soon train stops again. This time there's a sheriff meeting it... smoker man is thrown off the train, apparently too drunk and stupid to give ID when asked and not cuss out the conductor. I wonder if he had a good night with the sheriff in Valentine, TX. That obviously wasn't where he was going (there isn't a station, the train just stopped in the town), and there's not another train for days. Have fun!

Are we there yet?

No. Finally the train seems to be spending more time moving than stopped.

Finally El Paso... 6+ hours late. It's cold. Very cold. My oldest freaks out and cries uncontrollably. He hasn't slept well, the train was very late, and later we find out his tummy hurts pretty badly.

Getting the boys and our luggage into my dad's car is the worst experience I can easily recall. One or more boys is screaming the whole time. We have three car seats to install. It's bitter cold (being now almost midnight instead of 5pm when we were due in).

Now we have to drive to Hillsboro, 2 hours away, ETA now 2:30am. I need coffee... where's the 24 hour Starbucks?

Finally we get there. It's really really really cold now. 18 degrees, turns out.

Hillsboro is small. Very small. Roughly 100 people. No cellular service.

The hotel is 5 rooms, one of which is permanently occupied I think? No staff, someone comes by once every couple days.

Key is in the room door. Open room... very nice. Rustic decor. Turn on heat.

Grab kids, get into room. Kids still screaming about the cold.

Oh and there are two large barking dogs in the courtyard. Nice dogs, but barking.

Grab some luggage. Sleep.

Wake up. Beautiful day... warming up a bit (the sun does that).

Good day. Dinner with friends of dad. Great house, she's a photographer, very cool. Good dinner.

Iain has to go to the bathroom... grandma takes him... he throws up everywhere. Huge mess.

Back at the hotel. He throws up three more times during the night.

Next day. We do Christmas. Very fun. Boys have great time handing out gifts.

Gabriel's tummy hurts. Very badly, apparently. He's pretty much fussing about it constantly (literally).

We scrap New Years Eve plans to go out in favor of relaxed time with family. Much better. Good day, fussing aside.

Sleep. Iain throws up again.

Next day. Breakfast at very yummy local place with great green chile. Gabriel hurts too much to go. I stay with him, mommy and the little boys go. They bring me food.

Drive up into the mountains. Snow. Boys have great fun.

Next day. Short hike. Most of family departs for El Paso (early plane the next day). We hang out.

We plan getting to train the next day. It's probably late. They estimate it late. I'm uneasy about planning on that. We decide to reserve a family sleeper room, given the troubles on the way out.

Next day. 5am. Get up, check train. Still a bit late but I don't feel like it's reliable. Assume it's on time. Scramble to get everyone up and fed and stuff loaded.

Get on road. Gas in Hatch. Look for Starbucks in Las Cruces. Big delay.

Train is now on time. Very anxious.

We make it to the station 20 minutes before departure. Get new tickets (for sleeper). Check 7 bags. Grab carry-ons. Kids. Get on train (YAY).

Breakfast is on in the dining car. Meals included with sleeper. Drop stuff, go to dining car.

Relax. Eat. Train leaves spot on time as we sit in the diner. Whew.

Sleeper room is wonderful. We can spread our junk out, lounge, no worries about privacy. Rest. Finally.

Train due in to Houston at 5:45am. Late would be really nice.

Nope. On time.

Home. Whew.

January 08, 2008

The Day The Routers Died

http://www.youtube.com/watch?v=_y36fG2Oba0

Classic.

January 04, 2008

Home from Hillsboro

We spent a few days after Christmas at my dad's in Hillsboro, NM, and decided to make it a big adventure for the kids and take the Amtrak to El Paso (2 hours or so from Hillsboro). More to come on that, but for now, just this image:

Hillsboro, NM

This is merged in CS3 from 9 overlapping vertical frames. I did this handheld, obviously a tripod would generally be a good idea, but CS3's Photomerge is so good it may not always be necessary.

The Story of Stuff

Photoblog

Photography Site

Recent Images

  • www.flickr.com
    This is a Flickr badge showing public photos from jeremey. Make your own badge here.

Flickr

  • jeremey. Get yours at bighugelabs.com/flickr

Houston Photobloggers

Blog powered by TypePad