Pew Pew Laser Blog

Code. Glass art. Games. Baking. Cats. From Seattle, Washington and various sundry satellite locations.

Past Blogs

Meet Ingrid and Cotten.

7.26.2007

Meet Ingrid and CottenThese are our new kittens, Ingrid (left, a girl) and Cotten (right, a boy). They are ever so sweet, and just about as much trouble as you'd expect two kittens to be. Can you guess from where they got their names?

He Knew What He Was Doing.

7.23.2007

Having finally achieved a modicum of order in our house, the husband decided it was high time to start looking for a pair of kittens to adopt. Lucky us, we found our two sweetie-pies at the Seattle Animal Shelter! They'll have their surgery tomorrow, and we'll pick them up in the afternoon. I'm ever so excited!

Part of getting the house in order is getting rid of junk. As such, I've just put several items up on Craigslist. We're getting rid of a 15" monitor, a 19" monitor, and a 27" Sony TV. I'm also hoping to offload our white fuel camping stove, a bunch of furniture pads for moving, and a copy of Wario Ware Touched for the DS. If you want any of this junk (your treasure, perhaps) shoot me an email. The husband and I can bring it down when we're in Portland mid-August.

A CSS Styled Form.

7.18.2007

Why can't clients just tell me when they go live?!? Are the fifty billion little bullet points that ask them to do so not enough? Gah!

Now that I've got that out of my system, I feel it's time I shared some more code with you. I present, the CSS-styled form!




This example is taken from Web Design in a Nutshell, 3rd Edition.

Here's the CSS that gets it done.

<style type="text/css">
form
  { font-family: Arial, Verdana, Helvetica, sans-serif;
    border: solid #FFFFFF 1px;
    width: 28em;
    margin: 5px;
    padding: 5px;
    }
label
  { width: 6em;
    float: left;
    text-align: right;
    margin: .5em 1em;
    clear: both;
    }
input, textarea
  { font-family: Arial, Verdana, Helvetica, sans-serif;
    font-size: small;
    margin: .5em 0;
    width: 17em;
    }
input[type="submit"]
  { float: none;
    clear: both;
    width: auto;
    margin-bottom: 1em;
    margin-left: 8em;
    }
br { clear: both; }
</style>

Notes:

Spontaneous Generation.

7.17.2007

The weekend was very busy, but productive. I created pineapple upside-down cupcakes from ingredients. (The gas range works quite well, incidentally.) The husband created bedroom furniture from heavy Ikea boxes. Once we got all the clothes and dainties out of the scattered boxes and into the drawers, the bedroom came together quite well. We were also tipped off to a marvelous invention - Temporary Window Blinds. These little beauties adhere right to your window, and give you privacy until your custom made Costco blinds arrive. Modern technology saves the day again.

In other news, here are some fun internet distractions that I've been meaning to share:

Incoherent Ramblings.

7.12.2007

Yesterday was hot - too hot to think! Blech! When we were house hunting, the real estate agents told us that most Seattle houses didn't have air conditioning, since they were only needed 2 or 3 days out of the year anyway. Yesterday must have been one of those days. I hear my Hollywood homies have taken or will soon take an all day rafting trip. I'm ever so jealous. I can't wait to see the video, JRack!

At my current job, I mostly do client-side coding - X/HTML, CSS and JavaScript; which I do enjoy greatly. This week I've been working on a multi-page survey with tons of form fields and a PHP backend. After writing the HTML and the JavaScript, I needed to figure out a better way to pass submitted survey answers from one page to the next. The current method of 'data goes into a hidden form field and is submitted again' was just too inelegant to be suffered. Yesterday I was racking my brian for this solution. Hmmmmm... Passing data... Between different pages... Using PHP... What could it be...? Aha! It's sessions! Sometimes lunch really is the best answer. How embarrassing. Use it or lose it folks.

Return / Ikea.

7.9.2007

Just like I promised you, it's been a while since the last post. In summary, we're in the new townhouse, it's lovely, though it's not quite together yet. We have boxes all over, and many trips to Ikea and Beds, Bath and Beyond ahead of us.

For those of you in Portland, your Ikea will be opening soon, and I'm excited for you. Ikea's website thinks that people will be camping out for opening day. I'm not quite that excited. But as you'll surely want to go and get some stacking kitchen containers, here are my tips for going to Ikea:

Last Month

Next Month