Allowing your users to “Like” your wordpress posts on Facebook is just a few clicks away. This tutorial shows you how to add this functionality by installing a new plugin. (more…)
Allowing your users to “Like” your wordpress posts on Facebook is just a few clicks away. This tutorial shows you how to add this functionality by installing a new plugin. (more…)
After doing some SEO Work for a friend, I came across a great PHP framework for rapid dynamic website dev: codeIgniter. What’s great about it is that not only does it have a great framework but there is a complete tutorial on creating a CMS from scratch using codeIngiter. If you have some spare time over the weekend and are interested in learning how to do PHP web dev, check out this tutorial: CodeIgniter Tutorial
Tired of having your fan page’s url set to facebook.com/pages/fan-page-name/39012903290? Or having your facebook page’s url be facebook.com/12302390?
This tutorial assumes you have done some preliminary setup:
This problem probably cost me about 2hrs. There is a bug in version <9.0 of the Android SDK that will cause Eclipse to give the dreaded NullPointerException for Android Application and Android Unit Tests </lame>.
However, there is a simple solution to this problem:
Help->check for updates.
It will tell you that you can update to SDK v9.0: do it, and you are good to go! You can edit your Run Configs and Test Configs without getting cryptic error messages anymore.
For one of my current projects, bpstats.com, I needed to learn how to interface with a REST webservice from an Android application.
Here is a tutorial for creating a generic REST webservice client for the Android SDK. (more…)
Using “ (back ticks) to implement the unix ‘mkdir -p’ is a “ghetto hack” and can now be circumvented by using File::Path::make_path. Here is some example code that implements that functionality:
###############################################################################
# Subroutine: mkdir
#
# Function that emulates unix's "mkdir -p"
#
# Arguments: Scalar String - the path in question
#
# Returns: Scalar - either an integer representing the number of new directories created or an error message
sub mkdir($) {
my $path = shift;
my $err_msg;
# attempt a 'mkdir -p' on the provided path and catch any errors returned
my $mkdir_out = make_path( $path, { error => \my $err } );
# catch and return the error if there was one
if (@$err) {
for my $diag (@$err) {
my ( $file, $message ) = %$diag;
$err_msg .= $message;
}
print "$err_msg";
} else {
print "$mkdir_out";
}
} ## end sub mkdir($)
this subroutine will will try to create the path specified and will either print an int representing the number of new directories created or an error message.
If you are using bash in Ubuntu and want to change your $PATH or $HOME variable permanently and not on a per session basis, the easiest way, IMO, is to simply edit ~/.bashrc. Adding the following line to .bashrc will add some directories to your $PATH variable:
‘export PATH=$PATH:/path/to/some/dirs:/path/to/some/more/dirs’
if you are using the shell, edit $HOME/.cshrc and add
setenv PATH “/usr/software/bin:/usr/software/sbin:”
For those of us using an Android based phone (Motorola Droid), Verizon and Google have shipped the newest release without support for ActiveSynce security, a feature both Windows Mobile and the iPhone have supported since their inception. This is a case of blatant false advertisement on the part of both Verizon and Google considering that they claim the Android OS supports Exchange right out-of-the-box. Check out the following link from Google’s own website: Google Failing