Categories
Tips & How To's

Linux: Finding Newer Files [OR How To Create A Patch File]

The linux `find` command is very powerful, it has tonnes of switches and options that I’m not terribly familiar with. Even though I’ve been a LAMP developer for over 5 years, I don’t work on the command-line too often. Yesterday I ran into a problem that I had never tried to resolve before. I was working on a large project on a development server and I had some updates I wanted to push to the production server, but I had lost track of which files I had updated. I dug through the find manual for a few minutes and discovered the `-newer` flag, from man “File was modified more recently than file.” With this flag you can generate a list of files that are newer than a given file. If I set file to a file I knew had been updated before my last set of changes, I could pull a list of patch files.

find /path/to/project/ -newer /path/to/project/last-archive.tgz

After some more digging and trial and error I found the proper syntax for rolling up all these files into a nice little patch archive:

tar -czvf patch-20070321.tar `find /path/to/project/ -newer /path/to/project/last-archive.tgz -print`

Categories
Tips & How To's

Fix Firefox 3 URL Bar

Firefox 3 has an annoying new URL bar that takes up about 75px in screen real estate for each auto-completed URL. It’s referred to as richResults in about:config. In the previous beta releases you were able to manually add a preference to remove this feature. As of firefox 3 beta 4 (or maybe beta 3, i didn’t install that release) this no longer works for whatever reason.

If you prefer the old style urlbar, you need to install the oldbar extension. https://addons.mozilla.org/en-US/firefox/addon/6227

Categories
Random

Rogers Please Get A Clue, Seriously!

rogersucks.png

Above is a screenshot of Roger’s latest mobile internet plan for blackberries.

“1.5MB of data – enough for tons of picture uploads and profile updates”

Um Rogers, I hate to break it to you, but most of my pictures are over 2MB.

If you mouse-over the “legal” fine print it explains the data overages, “$10/MB for the first 5MB, $5/MB for the next 5MB, $1/MB for the next 10MB and $0.50/MB for remaining overages.” This means uploading 3x2MB pictures is going to cost me approximately $45. Really Rogers?! Really?
For comparison, transferring 3x2MB pictures through a service like amazon’s S3 would cost about $0.00035. There is no way in hell that Rogers is paying over 100,000x more than amazon to maintain their infrastructure!

Categories
Tips & How To's

Thoughts on Online Privacy & How to Protect Yourself [OR How Facebook Can Save Your Identity]

The following is an excerpt of an email I wrote in response to this article Facebook can ruin your life. And so can MySpace, Bebo

A lot of the current batch of social networks have very poorly designed privacy controls. On facebook for instance, it’s very hard to tell which of your contacts have access to different which areas of your profile and it’s not entirely clear how much of this information is accessible via google. In fact, there is a bug in Facebooks’ architecture that will allow any of your friends to see a newsfeed item (not the full post) for all of your activities via the official Facebook API, even if you have set up your account to block certain users from seeing this. Also, facebook is also more closed off then some of the old social networks, so it might not even be clear to most users that their profiles show up on google. Combine all of these factors; bugs, security holes, phishing attacks, user ignorance/naivety and you’ve got a shitstorm waiting to happen. I wouldn’t be surprised if in the next couple of years a big player is completely knocked out of the game by a major attack and the bad press that follows. Not too long ago a file containing nearly 1 million myspace usernames and passwords was making it’s rounds; it went largely unreported, but if a major news outlet had picked it up it would’ve been very bad for myspace.

That said, I think a lot of the people mentioned in this article probably didn’t have great legal representation. Writing a journal entry about how much you hate your job, doesn’t neccessarily mean you’re a bad idea. Making a drunken post about how much of a drunk you are, doesn’t mean much if that’s the only time you’ve had a drink in 6 months. Accidentally adding someone to your friends list on a social network because you didn’t know how to use the interface, is not nearly the same thing as banging on someone’s front door demanding to speak with them.

Interestingly, I’ve found that using my real name on websites/networks is a good way of protecting my online reputation. Social networking and similar sites will generally have much higher weighting in google then the average site – networking type sites are built with search engine optimization in mind. So if you are a member of a number of these types of sites and you post content that you are proud of on a every once in awhile, when someone does a search for your name they will almost always find content that you can vouch for. Additionally, if there is any kind of negative content about you somewhere on the web – say someone has posted something mean about you in their blog, or even worse if articles about your latest criminal conviction in show up in a local newspaper’s website – it is very likely that when a potential employer does a search for your name, your profiles on larger websites will show up before these negative articles on smaller websites.

Categories
Random

Tivo Has Spoiled Me

Whenever I listen to live radio I always find myself wanting to pause the broadcast.

Thanks a lot Tivo!