Posts Tagged ‘internet’

Yet Another Blog

Friday, May 22nd, 2009

Life has been anything but quiet around here lately, so I’ll make this one short. One of my assignments for my Web Technologies class (I started the summer semester last weekend) is to create a blog. Yeah, I obviously already have a blog… but do I really want to use it to talk about things pertinent to class? Not really, and you don’t want me to either. If you’re really strapped for reading material, grab the feed for Chris Derecola’s Class Blog and read a new and exciting post every week!

"The Facebook Post"

Friday, January 23rd, 2009

So it seems Facebook has reached a bit of a tipping point in the last few months with respect to membership. It used to be the playground of college kids but now that it’s been open to pretty much anyone for awhile, there’s a pretty good chance people you never expect to be on it will be. With such a solid influx of new people, it was inevitable that Facebook become commonplace among everyday conversations over the dinner table, in meetings at work or pretty much anywhere else folks gather. It’s because of this I feel somewhat compelled to offer a bit social commentary about it.

First and foremost, I’ve been a member for quite some time. I originally signed up because… well… it’s kinda part of my job to be current on all the popular and emerging internet technologies/websites. Actually, my job doesn’t require it but since I deal with websites, some of them directly competing, I feel it my responsibility to know what’s out there. Not everyone I work with has the same opinion and not every site/software I mess around with becomes part of my repertoire. Heck, I think I was on Facebook for a year before I even really started “using” it. I’m now an avid user, but I wouldn’t go so far as to describe myself an addict.

So what’s changed for me? I was one of the first 30k users on Myspace but I haven’t used that in a year. Why is the site where I’m easily user something-million (you can roughly tell btw) that much more successful? It’s a bit like the old fax machine network that’s cited as an example of the value of plenitude. The first fax machine was worth nothing… until the second one was sold. Much like new fax machines being plugged into phone lines, each person I know joining Facebook has made it’s value incrementally higher. It’s actually gotten to a point where it serves as a valuable medium of communication between friends and family.

Social networking is inherently shallow and therefore evil, right? I can concede that’s mostly true, there is a lot of crap floating around on there that I simply don’t enjoy or care to participate in. Much like American culture as a whole, if you can separate yourself from the banality there is some real, tangible value. Whether it be seeing pictures of my nieces, finding out my college buddies got engaged or learning someone’s wife is pregnant, it’s allowed me to keep up with people in ways that was never really possible before.

Yes, I understand there was instant messaging, email and even the telephone before but the dynamics of those are very much different. In those cases, it was often a “pull” because you had to gather information from each individual to form a picture of what was going on with everyone. Now, people choose what to “push” to their contacts so you can quickly and easily find out what’s going on with a significant number of them in one pass. Common responses to that are “If you didn’t have the time to care before…” or “Isn’t that less personal than…” and while there is some truth there, I don’t think it immediately turns us all into superficial friend whores. I can now catch up with others without having to play phone tag for days and if I want to talk privately about the important things, I still can. As a person who moved away from some very good college friends, I can attest to the value of broadcasting when you’re so very often out of sight and out of mind.

So yes, I use Facebook and I’m a pretty big fan. As long as you don’t friend people who are higher-up than you at work, ignore the people that update their statuses every 15 minutes and don’t get caught up in the decidedly phony people on there, you will be too. If you happen to be one of the people who enjoy it for all its surface-level entertainment, at least you know what purpose it serves and hopefully don’t take it too seriously. It’s when you start to blur the lines that things get messy.

How-To: Short URL

Saturday, January 10th, 2009

A month ago, I decided my domain needed its own URL shortening service. We’ve all seen the third party ones like TinyURL, but I wanted my own for several reasons. First, services like those have gotten somewhat of a bad rap because people have used them to send unsuspecting victims to a host of bad sites. Now when people see a link like that, they’re hesitant to click on it and since I don’t use them for such nefarious purposes, I wanted a way to shorten links. Second, when you use third party services, all your links are hosted on someone else’s database. That means someone else may be exposed to links you’re not interested in sharing with the general public or worse… if they turn out the lights all your links are broken. Third, I believe the majority of my usage will be to send people to my own sites. As such, I want my own domain to appear in the URL because well… it’s cool/nerdy to be consistent.

I set out to write my own code but the short of it (no pun intended) is I don’t have the expertise to. I figured that surely someone else would have gone through the same thing and shared their code. A bit of searching and I came across Get Shorty; a free bit of pages and code that will let you do it on your own server. All you need is the ability to install a MySQL database with admin rights, do a bit of tweaking to their code, upload, install and you’re good to go. I’m including the steps I followed below in case you want your own or I wipe mine out on accident and want to reinstall.

  • On your host, create a MySQL database with no tables. This is usually done through a control panel type interface where you’ll specify db name and access credentials. Note the name of the db, the location of the db (the interface should show you), the user name and password to access it.
  • Download the Get Shorty zip file at the link above and unpack it on your local machine.
  • Edit the configuration.php file to include the four pieces of info from the first step.
$db['server'] = ‘servername.host.com‘;
$db['username'] = ‘yourusername‘;
$db['password'] = ‘yourpassword‘;
$db['database'] = ‘databasename‘;
  • Upload everything to a sub-folder on your host. I chose “tiny” for obvious reasons.
  • Load the uploaded version of _install.php in a web browser. (e.g. http://derecola.com/tiny/_install.php)
  • Follow the prompts to set up your login and automatically install all the appropriate tables in your db.
  • Delete your _install.php so someone else can’t run it
  • Enjoy your new service by visiting the folder where you uploaded it!

One of the nice things about this piece of code is it lets you make short URLs in three ways. You have it auto-interpret based on the URL you enter, you can specify any alphanumeric string you want or you have it generate a random number. Since it also has an authenticate piece to it, you don’t have to worry about some random hooligans using your service or introducing bad things to your database/tables.

Now I can log into: http://derecola.com/tiny

…to turn: http://chris.derecola.com/2008/12/friend-recommended-unibroue-brand-so-i.shtml

…into: http://derecola.com/tiny/beer

Since I knew NOTHING about MySQL databases a week ago, I’m just enough of a dork to find that amazingly satisfying.