Archive for the ‘Programming’ Category
Using Unix Find to Locate WordPress Functions
I am a unix / linux web developer primarily and use some windows / mac editors for ease of use.
When it comes to locating code snippets within wordpress or other cms’ I find it easiest to do this within the linux shell using the find command with a little help from egrep.
generally speaking I can find what I am looking for quite easily using the often forgotten find command.
Read the rest of this entry »
Remove ‘View all posts filed under’ title from category links
Trying to remove the ‘View all posts filed under category name’ from the title tag on links, I searched and searched and couldn’t really find what I was looking for.
Using Flowplayer and Embedded Video WordPress Plugin
For those of us that don’t want to purchase a license for the the JW Player that is required for the embedded video plugin from http://www.jovelstefan.de/embedded-video/
Zen Cart Local Sales Tax Mod Setup
Setup Zen Cart Local Sales Tax Mod
I recently had to hack my way through the Local Sales Tax Module for Zen Cart. Much thanks to Heather and her help with getting this to work on Leap! Movie
To start follow the instructions at Local Sales Tax Mod
Read the rest of this entry »
Copy everything from a dvd to harddrive using dd
DVD Copying to hard drive with dd
In adddition to using vobcopy, and mkisofs you could also use plain old dd to do the trick ( sometimes )
It sometimes works, and when it does it works well.
From the command line in *nix ( Unix, Linux, OS X, etc. )
> dd if=/dev/dvd of=/tmp/dvdfilenametocreate
Lets break this down. dd is the command you are running, and if is the input file, everything is a file in *nix, and of is the output file you wish to write.
Read the rest of this entry »
Determine Yesterday’s Date in a unix environment using ksh and date()
Unix and KSH to find yesterday’s date
Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus, 2nd Edition
Wicked Cool Shell Scripts: 101 Scripts for Linux, Mac Osx, and Unix Systems
I did a bunch of searching and found a lot of places online to do timestamp conversions, and perl programs to get yesterday’s date. Some worked and some didn’t. But none the less, I didn’t need a whole program to do this, and I especially didn’t need an online converter for use in my app. I needed something simple and small that didn’t use a lot of calulations.
Here is what i came up with for use in the shell (KSH)
Read the rest of this entry »
Toastboy Dmoz Web Script
DMOZ.PHP3 No Longer exists
It seems that a lot of people are still accessing toastboy.com from script sites looking for my dmoz.php.
It has been offline for a long while.
If you are still interested in the dmoz.php script. Leave me a comment, and I will re write one and post it again.