HOWTO: Install VLC 2.0 in Fedora 16
It was quite a pain to get my system up to speed for the new VLC 2.0. Running under Fedora 16, VLC has a bunch of dependencies that are, as of now, only found in the Fedora 17 (Rawhide) repo. Since I didn't want to clusterfuck my fc16, I decided to manually install the packages VLC's configure script told me were missing.
Here's the command to get the packages VLC 2.0 needs to compile. Run them through zif or yum:
PyQt4-4.8.6-1.fc16.x86_64 PyQt4-devel SDL_image SDL_image-devel alsa-lib \ alsa-lib alsa-lib-devel avahi-devel dirac-devel flac-devel fluidsynth-devel gcc-c++ \ gnome-vfs2-devel jack-audio-connection-kit-devel libass-devel libavc1394-devel libbluray \ libbluray-devel libcaca-devel libcdaudio-devel libcddb-devel libdca-devel libdvdread \ libdvdread-devel libiec61883-devel libmodplug-devel libmpeg2-devel libmtp-devel libogg \ libogg-devel libprojectM-devel libraw1394 libraw1394-devel librsvg2-devel \ libsamplerate-devel libshout libshout-devel libudev-devel libupnp-devel libv4l libv4l-devel \ libva-devel mesa-libGL-devel portaudio portaudio-devel schroedinger schroedinger-devel \ taglib-devel twolame-devel zvbi-devel
As you might've guessed, some of them are extras. Should they not be present, VLC will simply disallow whatever feature it was using, such as Bonjour with avahi.
Canadian Postal Codes Database
I needed some data on Canadian Postal Codes for a project I'm working on. In context, I will have an user's postal code, but no way to validate it or use it as an index to get more location data. I started looking for free lists of Canadian postal codes I could merge in my application to achieve what I wanted. The first place I looked was obviously Canada Post, but it seems they're still in the mindset that selling public data is okay and only offer to license validation data... for 5,500$ a year. Mind you, it does seem include every Canadian addresses, not only postal code/city association.
Next in line was PopularData.com who offers a free database of 765,345 postal codes and their geographic data (city, province, latitude, longitude). Such data seems to be something recurring in various projects, so I figured I'd post here once and for all to tell you (and make sure I remember) how to get that data and inject it into a MySQL database on a remote server. Here goes.
#Newnewtwitter Keyboard Shortcuts
Twitter's new design, the second one since the mass adoption of the platform, lovingly called #newnewtwitter was just enabled on my account. You can get a nicer output than what's below by pressing '?' in #newnewtwitter. They're pretty useful keyboard shortcuts - if you, like me, find yourself using the Web version more often than anything else.
| Actions | Navigation | Timelines | |||
|---|---|---|---|---|---|
| F | Favorite | ? | This menu | G H | Home |
| R | Reply | J | Next Tweet | G C | Connect |
| T | Retweet | K | Previous Tweet | G A | Activity |
| M | Direct message | Space | Page down | G R | Mentions |
| N | New Tweet | / | Search | G D | Discover |
| Enter | Open Tweet details | . | Load new Tweets | G P | Profile |
| L | Close all open Tweets | G F | Favorites | G M | Messages |
| G U | Go to user... | ||||
Fanboy Advices
I realize the impending irony of writing this post right after my small hommage to Steve Jobs.. but somebody on the Internet is wrong. You know how that goes. Jim Darlymple recently blogged about his definition of an 'Apple fanboy':
Someone who is tired of technology being difficult and knows there is something better; someone that loves to get the job done instead of working on their machine; a person that isn’t afraid of breaking the status quo; someone that appreciates quality design and workmanship; a person that realizes cheapest isn’t always best. Apple fanboys are commonly confused with the sensible people of society.
I don't care much about his argument for quality design and workmanship, his affirmation that cheapest isn't always best or his stab at societal common sense. What transpires from the rest of his 'definition' is what I don't want to see happen with the world. Telling people to get an Apple product if they think technology is too difficult is how we'll end up enslaved to the fruit-people. It's supremely important in this day and age not to let technology become overwhelming. Technology, in the state it's in, is meant to be understood and played with, not merely consumed. If you have no understanding of what you're using, well first you're going to be in a world of hurt, then you'll have to rely on somebody who actually understands to help your sorry ass out. Technology isn't kind to neophytes. For every Apple fanboy there is, there's a geek who knows better.
Here’s to the crazy ones
An Era ended yesterday as the mighty Steve Jobs, who recently stepped down as CEO of Apple, passed away at 56 years old after a long battle with cancer. It's sad. It's really fucking sad. For Mac, iPod, iPhone and iPad lovers it's sad. For compulsive audiophiles, digital historians and designers, it's sad. For the millions of people he and his disciples championed and inspired, the tech reporters and the business analysts, it's sad... But most of all, we've lost a a pioneer, a leader and an icon.
Randomize GNOME3 Wallpaper
I've been looking for a simple script to randomize the display of my wallpaper on my GNOME3 desktop. After trying a few apps and not finding anything satisfying, I made my own. It's based on Dhananjay Sathe's wp-show but stripped of the GTK options dialog and some senseless redundancy.
Here it is:
#!/bin/bash # To change wallpaper automatically after N minutes, add this to your CRON (where N is minutes): N 0 * * * /path/to/wp-show base="/home/pluc/.walls/" photo=$(find $base -regex ".*\([jJ][pP][gG]\|[jJ][pP][eE][gG]\|[gG][iI][fF]\|[pP][nN][gG]\|[bB][mM][pP]\)$" -type f | while read x; do echo "`expr $RANDOM % 1000`:$x"; done | sort -n | sed 's/[0-9]*://' | head -1) uri="file://"$photo gsettings set org.gnome.desktop.background picture-uri "$uri"
Big Commerce API PHP Wrapper
Big Commerce is a hosted e-commerce platform. You are given FTP credentials to access the few static files you are allowed to manipulate... and you have an API. For various reasons, I had to interact with the Big Commerce API and since there was a serious lack of code (and decent documentation), I figured I'd put together my own little wrapper. Should be pretty self-explanatory if you're here. Needless to say, this code comes as-is with no support from me whatsoever.








