Sep 26

Blogging is something that comes in waves for me, and once I get out of the habit, it is tough to get back into it.  I enjoy it, but sometimes there’s just so much going on that it completely escapes me.  The last few months have been one of those periods.  So let’s start from the top…

I’ve been working on a new project recently.  Tweenky is a micro blogging client I am developing that is mostly used with Twitter, but also supports Identi.ca, and hopefully more micro-blogging services soon.  The concept behind it was the lack of any good web clients out there for Twitter, and especially ones that brought back the “track” feature that Twitter took away from us a few weeks back.  It’s still very much a work in progress and I just have to find the time to work on some of the new features and further improve stability.  I’m having a blast with pushing the boundaries of JavaScript and what it should/shouldn’t be used for.  So, if you are a Twitter user, go check it out, and if it is still requiring an invite code, use “derekville”.

So I just returned from a convention out in Santa Clara called Zendcon.  As a web developer, my primary language of choice is PHP, and Zend is the company puts most of the work into the PHP project, so this was kind of their little yearly shindig.  It was 4 days of 1-2 hour training sessions on all topics related to PHP and web development.  I saw some presentations from engineers and developers from companies such as IBM, Google, Mozilla, Digg, Yahoo, and tons more.  I met a ton of really interesting people too and had a great time at Yahoo HQ for Hackday ‘08.  (note to self: Don’t wear “Hackday ‘08″ shirt to airport, it leads to hacker questioning from TSA agents)

Vacation #1 was on the front & back end of the Zendcon trip as I had a few days before & after the conference to play around in San Francisco.  It’s such a cool city and I had a blast driving around in the Pontiac G6 convertible I rented for the week.  I’ve never had so much fun driving a car!

Vacation #2 is coming up next month with Katye & I flying up to Seattle where we’ll also head up to Vancouver & Victoria.  I haven’t been to Seattle in about 10 years, so I’m really excited as I love that city.  Everyone I’ve talked to raves about Vancouver too, so I’m pretty excited about my first trip north of the border.

If you are a web developer in the Kansas City area, you need to check out two emerging groups.  The first being DotNext, a group in the KC area that gets together every month or so to give sessions on anything web development related.  Last month was a series of presentations of Amazon Web Services.  This month is going to be on various database related technologies. The second group is Cowtown Computer Congress who is setting up a hacker space in North Kansas City.  For those not too familiar with what a “hacker space” is (myself included), it is a place for technologists to get together to work on  various hardware & software projects, share costs on equipment, and actually socialize (something most geeks never do much of).  So should be an awesome place to convene when it officially opens in the next couple months.

And finally, a new podcast from some rather influential people in the web development world has launched that I’d like to mention.  Open Web Podcast was created by Google engineer Dion Almaer (of the Ajaxian podcast as well), Alex Russell of Dojo, and John Resig of Mozilla/jQuery.  So if you are into web standards and JavaScript, definitely check it out.

Finally, I recently discovered the FX show “It’s Always Sunny in Philadelphia”.  Hilarious!  Check out all the episodes on Hulu.

written by Derek \\ tags: , , , , ,

Jun 25

A user uploaded a Quicktime video to my website the other day and the server ran into a problem transcoding it to FLV. I hit up #ffmpeg and it was suggested that I upgrade my install of FFMPEG and libfaad. Alrighty, no big deal, done it before. So first thing this morning was going to be update the sources and recompile.

Before I get on with that, first I’ll describe the environment. We’re running on RHEL4 and have an install of FFMPEG that works fine (aside from that 1 user uploaded video). The last upgrade of FFMPEG to get h264 support wasn’t done by me, but rather our sysadmin, when we actually had a sysadmin. I believe he used rpms for the libraries and compiled FFMPEG from the SVN repo.

So I did a quick search just to remind myself what libraries I needed and I came across this post about compiling on RHEL4, our distro. Perfect. I followed directions to a T (aside from upgrading SVN) and it compiled fine. Now, time to run a test transcode…

[root@140859-www1 ~]# /home/derek/ffmpeg_sources/ffmpeg/ffmpeg -y -i /media/v2-prod/atlas/8102/20206 -ab 64k -ar 22050 -b 700K -r 15 -y -s 640×480 -ac 1 -padtop -padbottom -s vga /home/derek/blah.flv
FFmpeg version SVN-r13977, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: –enable-libmp3lame –enable-libvorbis –enable-libfaac –enable-libfaad –enable-gpl –enable-libtheora –enable-libx264 –enable-shared
libavutil version: 49.7.0
libavcodec version: 51.57.2
libavformat version: 52.16.0
libavdevice version: 52.0.0
built on Jun 25 2008 14:49:55, gcc: 3.4.6 20060404 (Red Hat 3.4.6-9)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘/media/v2-prod/atlas/8102/20206′:
Duration: 00:10:55.2, start: 0.000000, bitrate: 406 kb/s
Stream #0.0(und): Audio: mpeg4aac, 44100 Hz, stereo
Stream #0.1(und): Video: h264, yuv420p, 320×240 [PAR 0:1 DAR 0:1], 30.00 tb(r)
Output #0, flv, to ‘/home/derek/blah.flv’:
Stream #0.0(und): Video: flv, yuv420p, 640×480 [PAR 0:1 DAR 0:1], q=2-31, 700 kb/s, 15.00 tb(c)
Stream #0.1(und): Audio: libmp3lame, 22050 Hz, mono, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
/home/derek/ffmpeg_sources/ffmpeg/ffmpeg: symbol lookup error: /home/derek/ffmpeg_sources/ffmpeg/ffmpeg: undefined symbol: av_fifo_generic_write
You have new mail in /var/spool/mail/root

Well shit. Ok, so I hit up #ffmpeg again, but don’t get any help, so I try recompiling without any config options and it works fine. So I slowly start added on config options and it works until I add “–enable-share”, and which point it compiles a version of FFMPEG that throws the “undefined symbol” error. So that gives me a pretty good idea it has something to do with that. I go through the symlinks in the guide (linked above) and notice that /usr/lib/libavformat.so.50 is symlinked to a file that doesn’t exist. And that’s where I’m at now, kinda stumped. Am I missing libraries? how can I ensure any old libraries installed before are cleaned out and not conflicting with new ones? I’m a developer, not a linux admin. I know my way around the OS, but when it comes to this type of stuff, I’m stumped.

Any ideas? post a comment or email/gtalk me at drgath at gmail.com.

written by Derek \\ tags: , ,

Jun 19

Day #1 of Reddit going open source, and they are already fighting with their developers. C’mon guys, you clearly don’t understand what is being requested, so ask for clarification instead of being so stubborn. We understand you are busy getting this project off the ground, but you need to understand that you can’t fight with your own developers, especially this early in the game. If you can’t manage that, they why did you open source it in the first place?

written by Derek \\ tags:

Oct 20

I figured it was about time to upgrade to a new theme, so I found this one, Snoods theme.  Whaddya think?

Because this theme doesn’t accommodate the native tagging capability of Wordpress 2.3, I had to hack into the wp functions to add the capability to display tagging in the post.  What Wordpress really just needs to do is append the tag info to the end of all posts, like I’ve done for this theme. 

If you need to do the same, update “the_content()” function in wp-includes/post-template.php to the following code (additions in yellow):

function the_content($more_link_text = ‘(more…)’, $stripteaser = 0, $more_file = ”) {
    $content = get_the_content($more_link_text, $stripteaser, $more_file);
    $content = apply_filters(’the_content’, $content);
    $content = str_replace(’]]>’, ‘]]>’, $content);
    ob_start();
        the_tags(’Tags: ‘, ‘, ‘, ‘<br />’);
    $tag_html .= ob_get_clean();
    if (!empty($tag_html))
    {
        $content .=”<br /><div align=’center’ style=’clear:both;’><span style=’border:solid #333333 1px; padding:3px;’>”;
        $content .= $tag_html;
        $content .= “</span></div>”;;
    }
    echo $content;
}

This really the first time I’ve dove into the innards of Wordpress, and wow is it rather horrid.  Considering how important Wordpress is to the evolution of the blogging community, developers are important, and with the way the code looks now, I can’t imagine anyone would take up Wordpress development as a hobby.

written by Derek \\ tags: ,