HowTo: Manually Add Social Bookmark Buttons to WP Posts & Widgets

There are lots of plugins that add social bookmark buttons to WordPress but not so many that only add the buttons for only the social sites you use such as your Twitter page, Facebook fan page, Flickr page or YouTube channel. And most social bookmark plugins increase page load times with Javascripts and tons of CSS code for what might be only three or four buttons that you want to add to your site. When you need a lightweight solution -- and who doesn't? -- use these few steps to add your own, lightweight bookmark buttons to your WordPress site. Adding Social Bookmark Buttons We will … [Read more...]

Linux: How to Move Flash Movies From Your Browser Cache

So you've just watched a movie, you like it and want a backup copy of it. You've looked in your browser's cache directory and you've looked in your computer's tmp directory but you just can't find the flash file for the video; and you won't find it because Flash deletes the file then reads and writes the deleted file using it's file descriptor. Whatever you do, do not close the browser tab that your video is playing in. The following instructions apply to Linux. The example below shows how to copy a Flash (flv) file that's been played in Google's Chrome browser. Details for doing this … [Read more...]

HowTo: Pass Data Variables to cURL to Autofill Web Forms

Getting cozy with cURL

Getting cozy with cURL This isn't a top 10 magical things to do with cURL post. There are plenty of them around the Net and you will find a few links at the bottom of here to prove that. No, this post is about one thing, using a variable to send data to cURL without it getting jumbled up in the process. cURL is a command-line utility for fetching and sending data to servers. It's a little like wget. You might think you can simply create a variable and use that variable in your cURL command and expect cURL to know what to do with it but that doesn't quite work, as anyone who's tried doing … [Read more...]

Install FUSE into Ubuntu the Easy Way – Use a Script

Manic Miner Running on Fuse on Ubuntu

Manic Miner on Fuse Making friendly suggestions on a forum is not always a good idea: you never know where it's going to lead. When I saw a request for feature ideas for upcoming versions of FUSE, the Spectrum emulator, posted on the World of Spectrum website little did I know that one simple comment asking for FUSE to be made easier to install into Ubuntu would lead me to write an installer script. When someone on the forum wrote "hint, hint, hint: man bash. you really can contribute that bash one-liner to FUSE then. %-)" in reply to my writing "[as] much as I'd like to give FUSE more … [Read more...]

Regular Expressions – A Quick Guide

Read it out loud: "Regular Expressions." It chimes like the name of a horror movie Alfred Hitchcock would be proud to tag his name to. But it shouldn't. Don't be frightened by the name. It is, after all, only a name. Familiarize it. Shorten it to Regex or Regexp and give it a little hug as you tell it "We're going to be lifelong buddies..." What follows in this guide is an introduction to regular expressions and a reference table of regular expression metacharacters with examples for their usage. Unless you really need an introduction, jump straight ahead to the table because that is where … [Read more...]

How to Display Different Content to Visitors from Different Sites

Every now and again you might want your website to display different information to visitors who arrive at your site from specific URLs. You might want to tell visitors from Digg to digg you again or maybe you want to give a big welcome to visitors from Google and a big kick up the ass to visitors from Yahoo! (not that I have anything against Yahoo!). You might even want to serve different reciprocal links and ads to visitors from different sites. Dynamically tailoring content to different visitors is easier than you might think. At the bottom of this page is a downloadable "Tailored … [Read more...]