web development

My sweetie, the browser bug dragonslayer

September 27, 2007, 6:38 pm
Tagged with: | |

(sorry for the esoteric geek-out here, but I just had to share the kind of crazy stuff we're running into on a Drupal site [Amnesty International's] that has to work part-fluidly in 800x600, IE6, 150% font size, right-to-left switching...)

09/27/07 14:15:04 changed by chris ¶

Comment: Okay, the problem is that in FF you lose the ability to add padding or margins to inline elements in rtl. The one documented hack is to add "display: -moz-inline-box" to the element for which you want to add padding or margins. This works, but it undoes the rtl display, which in our case meant backward chevrons and backward (to an arabic reader) arabic text. After a lot experimenting (no documentation in English on this one out there, though I have to imagine that Middle Eastern web designers have this documented in Arabic) I found a workaround that looks decent in FF and IE6, and is maintainable. It turns out that you can avoid the padding problem (for the most part) without the -moz-inline-box hack by marking up the menu as an unordered list, applying the display: inline to the list item, marking up the text inside the list item with a span tag and then applying display: block to that. I still ended up not being able to add padding to the chevrons within the tag, but in the interests of time, I fixed that by adding an non-breaking space after the chevron and adjusting the rest of the spacing to match.


Adventures in Linux

August 27, 2007, 3:51 am
Tagged with: | | | |

Okay, so my Linux knowledge has skyrocketed in the past week.

I now have Motion (most annoying software name to google for ever) running on a repurposed Dell Dimension 8200. By the way, if anyone has any RAM for one of these kicking around, you're sitting on a gold mine. I wanted to pick up 2x512s for it and it uses some bloody obscure and expensive RDRAM. At least it is significantly quieter than the box I have running the cams now. On which webcamXP hangs often.

Anyway. Motion is like the swiss army knife of webcams. I am SO excited that I can finally have something stable that does what I want it to. I've ditched the last two USB cameras I was relying on and have all network cameras now. But yeah, going from Windows to a command-line-only Linux program where you have to roll your own FTPing? Small learning curve.

And... dun dun dun... wrote my first shell script! Well, with a little help :) It's rather nice to be surrounded by Linux-y friends.

The most exciting news is that it actually does motion detection. So the cams are only updating when there's activity on a particular cam. It can also write events to a mysql db, so I will be able to use this for much more advanced tracking and home automation. It also creates timelapse videos at any interval. Have I mentioned how much I love Motion? I'm serving up the currently live camera at about 1FPS over Apache, and the others are FTPed (if changed) to the webserver at a more reasonable interval.

Gotta actually mount the new cams, tweak a couple of scripts, and the new (much more stable) system should be up in a few days on stephthegeek.tv!

PS. Anyone tried LinuxMCE? I watched the demo video and I'm totally in love. It even uses Motion itself for the automation stuff. And supports ZWave.


Now with 50% less psycho

August 7, 2007, 2:37 am
Tagged with: | |

I don't know if it's the act of admitting/posting itself, or just that I usually take a while to get to the state where I'd post something, but I always seem to put up these emotional rants and feel significantly better the next day :P

I decided to take matters into my own hands, and after about ten hours of solid concentration, I've got a new StG.TV on my hands. It was turning into a total catch-22... didn't wanna work on grad school stuff until I had a site I wasn't totally miserable about, didn't want to work on the site because I had this huge, perfect vision of what it had to be, yadda yadda. Well, there. Ten hours to deploy something incomplete, yet inflicting infinitely less emotional torture and way more on the right track than what was there before (don't believe me? Check the timestamp. Toldja I'm a Drupal whiz now ;)

Got a few major things to do yet (like, uh, cam refreshing and copying and pasting most of the static content), but I'm tracking more over there already than I was before.

Go me!


IPTC + Flickr and Gallery

February 21, 2007, 6:19 pm
Tagged with: |

Did a little testing on Flickr and my own on-site gallery (Gallery 2) and determined that IPTC kicks butt.  Both applications pick up the keywords and caption.  The one caveat is that they don't keep the information in an image when it is processed.  For example, if you download and save any of the resized versions instead of the original, it won't retain the IPTC info.  A little annoying, but not a deal breaker. 

Of course now this means I get to tag and re-upload all my photos everywhere... 


OMGWMVTHUMBNAILS!

August 2, 2006, 12:16 am
Tagged with: |

Ohmyfuckinggod, after THREE YEARS of trying to get Gallery to display WMV3 thumbnails, it WORKS!

Chris's business partner actually pointed out that I didn't have to keep wrestling with mplayer, but that ffmpeg could handle them with some special treatment.  Thank you to lev and spaz for their repeated efforts at this too.  Finally, PREVIEW images for the gigs and gigs of streaming cam videos!

See??  I don't give up, sometimes it just takes a while  :D


Needed: One Spaz

July 31, 2006, 1:13 pm
Tagged with: |

After nearly three years of being my site admin, Spaz is moving on to bigger and better things. I won't say I'm not sad, but with a new full time job, part time business, and new baby, I completely understand! I'll miss you, man... you know this site like none other and have become a dear friend to me  :)

He is still going to take care of basic server operations at least for the time being (keeping it secure and running), but I need a web developer to help out with some of the details when I'm busy. Examples may include:

  • Troubleshooting/installing scripts (generally PHP)
  • Creating MySQL queries and scripts to perform little tweaks
  • Working with image toolkits and cron
  • Improving general site efficiency
  • Familiarity with applications used on the site(s) is a plus (Drupal, Gallery, aMember, WordPress)

The way I like to do this is on a retainer -- I pay you $X/month for a maximum of X hours and can pick your brain or ask for something that needs to be done when necessary. Payment comes in two forms: a free lifetime membership plus a stipend which is based upon number of paying members. Things run smoothly and free up my time to create more content which means more members = you get paid more  :)

Interested? Give me a shout! 


Drupal

May 16, 2006, 7:20 pm
Tagged with: |

This site runs on the content management system Drupal. It allows you to create some amazing combinations of features, such as blogs, profiles, forums, and galleries. There are a ton of contributed modules, and the community is incredibly supportive.