Hire Me!
Hire me for quality PHP, Python (Pylons), MySQL, Sqlite3, CSS, (X)HTML, Python and more coding projects. I have great feedback, you can look at my code on this site. I am fast and my code lasts. Currently No Openings for Coding Projects
If you have marketing, SEO or coding questions or concerns I also do some consulting. I only take clients that I think I can give a plenty of actionable steps to. Feedback has been really good. Send me a link to your site and info about your marketing strategy thus far and I will see if we are a good fit.
Hit me up on Skype: thrilling_victory
Premium Scripts
Working up to the Re-launch of CCenter. All current users will get a free upgrade!-
Recent Posts
- How to Make One Thousand Two Hundred Ninety Seven Dollars and Thirty Six Cents with DFHU
- How to Find High Quality and Affordable Programmers.
- When Should You Use a Web Framework Such as CakePHP, Pylons, etc…?
- Five More Free High PageRank/TrustRank DoFollow Links
- Catch More Juice With Link Circumcision
- The Ultimate Real Official Cheatsheet for Running Your User Generated Content Site.
- DFHU Quick Tip: Fighting Spam With User Exeperience Metrics
- DFHU Quick Tip: Save the Juice for Periodic Content
- A Mind For Converting Readers To Organic Linkers
- DFHU Quick Tip: Teaching Your Affiliates Through Keyword Bounty Hunting
- Trading Books and Stamps for Sophisticated, High-Yield Customers.
- Boiled Alive: Beating the Addition to Distraction, Confusion and Lack of Motivation.
- dfhuTip: Five Free High PR, High Trust Rank, DoFollow Links
- Kissing the Anvil for Four and Sixty Six Hours a Week
- (ab)using Apache’s `ab` Command to “multi-thread” PHP Files
I’m On Twitter
Pages
Categories
Archives
-
Thanks Commenters!
- Jerrold Gastelo on RSS Generator For Importing to Wordpress
- Raleigh Pest Control on Boiled Alive: Beating the Addition to Distraction, Confusion and Lack of Motivation.
- Victory on How to Find High Quality and Affordable Programmers.
- Nick on How to Find High Quality and Affordable Programmers.
- Underfloor Heating on When Should You Use a Web Framework Such as CakePHP, Pylons, etc…?
- Victory on The Ultimate Real Official Cheatsheet for Running Your User Generated Content Site.
- Josh-SEO Consultant on The Ultimate Real Official Cheatsheet for Running Your User Generated Content Site.
- Karl Foxley on The Ultimate Real Official Cheatsheet for Running Your User Generated Content Site.
Save Time Use Subversion
If you are not using a version control system for your code, please, please read this post and implement it. It will only take about thirty minutes of your time and will save you countless hours of time in the future.
If you are going to code anything at all ever, use a version control system. My version control system of choice is SVN. A version control system will keep the various “builds” of your system organized. It saves files intelligently.
First of all go install SVN. I am not going to explain how to install things, its trivial and you already know how what to do.
Ok, now you have
svninstalled. There are basically three steps to gettingsvnup and ready. I will explain the single trunk method because my goal is to get as many people who are not using anything at all to use svn TODAY. In the future you can learn branching and merging (don’t cross that bridge until you reach it).Step 0
The first time you use svn you need to create a repository directory to save all your svn project files to. To do so Use:
svnadmin create repository direcory
Step 1
Lets assume you have a bunch of code for a given project in the directory
/home/username/projects/killerapp. We need to create a svn project directory to save the killerapp in. To do this we usesvnadmin.svnadmin create repository
Step 2
Next we want to
importour current killerapp code into killerapp’s SVN project directory. The repository has to be specified as a full URL, so if you are on just the one system you can usefile://. Note that instead of using thesvnadmincommand as in step 1, we are using just thesvncommand.This will bring up your editor so that you can leave a note. Most systems have
vimas the default editor. If you don’t knowvimyou should learn the basic commands. However you can pass a comment using the-m "my note here"to avoid having to learnvimnow.svn import killerapp to the repository
Step 3
Finally, we have to
checkoutour code so that svn can do its magic and keep track of versions.svn checkout killerapp so you can work on it
Yay! You have an svn project for killerapp. Now you need to do stuff with it, the most basic thing you can do is
committhis will save changes to the repository.svn commit killerapp
Other commands of interest are as follows
svn important commands
IMPORTANT: Don’t use
cp,mv,rm,mkdirdirectly in the svn directory, instead use:svn commit killerapp
Congratulations! you have taken a huge step in the right direction in saving your self time and headache.
A script for step one through four
Here is a script that does steps one through four and step zero when need be.
newsvn.sh
Please consider leaving a comment to tell me if you have started to use subversion as a result of this post or why you did not.
Edit – Adding checkout file modification to SVN Files
To add modification times to subversion files you use propset. I have the following alias
alias propset="svn propset -R svn:keywords 'Date Revision Id' ".So i will for example do
zsh% propset *php *inc.I use that on all the files i want to have revison numbers on. For PHP source files the template i use at the top of each file is
php-crud
The
$Date:: $:and$Rev:: $:bits get update automagically next time i runsvn commit.