Blog

It's beginning to smell a lot like...

E-mail

OK, i'm going to show my cultural ignorance and admit that I don't know much about alcohol all in the same post.  Still, I have seen a lot of movies and tv shows.  I always see Martinis portrayed as this awesome, super-elegant drink.  Not once have I seen someone drink a Martini and recoil in horror at the absolutely awful taste.  So you can imagine my surprise when I recently decided to buy some gin and vermouth and try out this beverage legend.  Let me summarize my experience: --insert spit take--  Shock and horror!  I was quickly able to isolate the problem to the gin.  Now I'll admit, the gin I bought wasn't exactly top shelf, so I thought maybe I just got some bad stuff.  The stuff smelled wretched ... and yet ... strangely familiar.  I couldn't quite place the smell.  Was that some kind of cleaner?  Paint thinner?  Rocket fuel, perhaps?  I needed some expert advice.  Gentlemen, start your search engines!  Some quick googling revealed that the smell in question was ... Christmas Trees!?!  Wait a sec, James Bond has been drinking Christmas tree juice all this time?  Huh.  The more you know...

Last Updated on Wednesday, 02 June 2010 15:49
 

Overflowing with Something

E-mail

Sometimes you just gotta love HTML and CSS.  I recently made some changes to our site.  Everything worked fine in Firefox, all flavors of IE that I tried, and Safari.  And then there was Chrome.  I thought that Safari and Chrome would behave almost identically since they are both Webkit based.  But nope, Chrome had some weird layout, while Safari was fine.

The thing about CSS is that you have to put things in a fairly unintuitive form to get the layout to work the way you want. For example, if you want a multi-column layout, you can't just do something intuitive, like make a table. At least not in the older versions of CSS. Instead, you have to "float" some of the columns. And then you set other parts of the page to have funky margins. Now suppose you want a footer. Well, you can't just get that for free either. If you really want things to work the way you expect, you have to jump through some hoops to get the main sections to use up 100% of the page height. That forces the footer to the bottom. But then there's wrinkles even there. You have to make sure you "clear the floats". Otherwise the footer does some unexpected things. Anyway, the point here is that the old CSS involves layering hack upon hack. Throw in a bunch of browser inconsistencies and you've got a pretty fragile setup. And that's kinda where we are.

Here are some test pages that show the problem - the broken page and the fixed page. These both show a simplified version of our two column layout with footer. The problem is that the red box gets pushed below the height of the left column. Remember that it's only broken on Chrome, so you should see the same thing for both examples in any other browser.

So why does it do this? It's because the red box is marked with "width: 100%". This by itself actually doesn't trigger the problem. But combining that with "border: 1px solid black" seems to be the key. That extra 1 pixel border forces the red box to have a width slightly bigger than 100%, which won't fit next to the "floated" left column. So Chrome bumps it down to the next available space. The fix then is just to remove the "width: 100%". That wasn't really necessary in this case because the browser gives the box the full width on its own.

I'm not sure which browser is technically doing the right thing, but Chrome's behavior sure is the more annoying one in this case.

Incidentally, I haven't included Opera in our tests yet.  Since we have a very limited web development team, i.e. me, and way too much to do it's one triage decision we've made so far.  Hopefully when we get further along we'll have more resources available to test Opera and Lynx and <insert your favorite obscure browser here>.

Last Updated on Saturday, 20 March 2010 18:56
 

New site design

E-mail

I have switched over to a new site design!  I had been using a combination of really old hand coded HTML with a separate Nucleus installation for my blog.  I went through a bit of work to port everything to WordPress in the interim but never actually published that design.  I really wanted each of my pages to have the potential for a separate blog layout and corresponding feed.  So I wanted to just tag each post with a category and have it show up on the appropriate blog page on my site.  I couldn't figure out how to do that with WordPress, even looking through all the plugins.  I got kinda close, but it was still lacking in many ways.

Instead, I am now using Joomla.  It's a more generic content management system that seems to do more of what I want. I thought about writing something custom in Ruby on Rails or Django, but I didn't see much point to the extra effort.  Anyway, I now have a bunch of separate pages in blog format with their own feeds, at least, where it makes sense.  It's a little more work to do some things though.  For example, I don't have comments on the posts at the moment.  I have to install an extension to do that.  Haven't had time for that yet.  However, I love all the flexibility.  For example, this post shows up on the front page and in my blog.  That's exactly what I want.

Thankfully, my intermediate work on WordPress wasn't totally wasted.  It turns out that there is an open source tool to convert your Nucleus blog posts to WordPress.  There is also an extension to convert from WordPress to Joomla.  So I was able to use that two step process to easily import my old blog posts.  There doesn't seem to be an easy tool to do the importing directly from Nucleus to Joomla.  I know I could have also done the importing myself directly through MySQL, but these tools saved me some work.

Last Updated on Tuesday, 02 March 2010 21:16
 

BunBun, the middle one

E-mail

I discovered a nest of bunnies in our yard. Not quite big enough to be lol bunnies yet. But they are on their way. Some of you may recall our adventures with the semi-disabled bunny in our back yard last year. Unfortunately, he met a tragic end at the paws of some late night predator. But I'm sure these bunnies will turn out fine.


Anyway, here are some action shots. Those bunnies are tricksy. See if you spot the nest in this photo.

*Spoiler* :: it's under the rubber cord holding up the tree.
Anywho, now we'll get a little closer:
Last Updated on Saturday, 27 February 2010 19:43
 

Skip auto alignment on hp officejet k series

E-mail

This is just as a reminder to myself and anyone else on how to fix an OfficeJet K60 (and probably the k80) when it says "Press Enter to Align Cartidges ... blah blah".

The way to bypass this screen is to press and hold "Enter" then press "Menu". You'll also get special prizes if you press up-up-down-down-left-right-left-right-b-a-start.

Last Updated on Sunday, 28 February 2010 20:44
 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  3 
  •  4 
  •  5 
  •  6 
  •  Next 
  •  End 
  • »


Page 1 of 6