Two Peas in a Pod
29Jan/110

Using TortoiseGit and Dreamweaver

git-logo

We have bee using Git to some extent at work (Mannix Marketing, Inc.) for a while, and I though that it was high time that I start to do the same at home on personal projects.

Git is a FREE an open source, distributed version control system that is designed to handle everything from small to extremely large projects with speed efficiency.

First of all I installed Git (http://git-scm.com/) for Windows.   It is pretty simply on Windows, as you just download the installer.  Other operating systems may or may not have an installer, so you should google "GIT [operating system]" or just go to the main Git site.  End result is that I now have Git running on my machine.

Next, I intalled TortoiseGit (http://code.google.com/p/tortoisegit/).  This is a Git revision control client.  There are many other clients, but using TortoiseGit allows me to install the Dreamweaver Extension called gitweaver (https://github.com/ChrisMcKee/gitweaver).  This extension allows the integration of TortoiseGit and Adobe Dreamweaver.  Nice!

So, once I have Git, TortoiseGit and gitweaver installed, I'm ready to get this going.  For the most part, you can simply have a local repo (repository), but if you are colaborating on a project, then Git hosting is a must.  There are sites like BitBucket.comGithub.com, BeanStalkApp.com, Unfuddle.com and many more.  Setting up an account on most is a pretty simple task.   I have used BeanStalkApp.com and Unfuddle.com - both have pros and cons compared with each other.

After setting up your repo you can not interact with Git directly from Dreamweaver.  This is huge in both regard to productivity and project management.

I have started this on BounceHouses.com, F1Weekly.com and this site (blog.tobyandjoann.com), and I'm thinking that I may start adding other sites to, for the simple reason that version control, even for an individual on a single project, is a smarter way to work.

31Jul/100

ColdFusion 9 running on Apache using WampServer

ColdFusion-9-Logo-drop-shadow

I have created a detailed step-by-step to help you setup Adobe ColdFusion on a Windows machine using WampServer with Apache as the web server.

This is what I use for a development environment, and I completely recommend this to you if you are a ColdFusion Developer in need of a development environment and want to move away from Microsoft Internet Information Server (IIS).

https://docs.google.com/document/pub?id=1HqFDs6j_-2VCg7x4Y8X-T9wtJa2S9latFNN1_6EU6Ys

Please let me know if you have any questions.  Thanks!

6Apr/100

Force WordPress to use the Latest Version of jQuery

I was looking for a way to override the default version of jQuery that is being used in WordPress 2.9x and I came across this article that explains how to do this.

It doesn't say in the article where you place this function, but I figured that I'd slide it into the functions.php in my active theme and this did the trick.

Read the full article and get the code here Force WordPress to use the Latest Version of jQuery | bavotasan.com.

Tagged as: No Comments
9Aug/090

Strange Behavior with WordPress Pagination, Fix

I was creating a custom theme for a website that I work on - www.f1weekly.com - and I was getting some strange behavior with the default WordPress pagination.

Using the standard code, as found in the "default" theme included with WordPress, I used the following code to create my pagination links in my templates:

 

<div class="navigation">
<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>

Suddenly I noticed that I was getting some strange results happening with the pagination links. Below is an example:

On a category page like http://www.f1weekly.com/category/podcasts/ the pagination to the second page should be http://www.f1weekly.com/category/podcasts/page/2/ but all my pagination links where going to http://www.f1weekly.com/page/2/ - which is the link for the second page of all posts, like the links on the home page.

This was driving me mad, and I just couldn't figure it out.  I even rebuilt the theme from scratch.  Still no dice, but it did work correctly when I was loading the "default" theme.

So, I did a comparison of the code I had in my header.php template against the "default" theme header.php.  I had additional JavaScript files link, some additional CSS files linked, and some other code such as Google Webmaster Tools verification Meta tags.

On review of the code, nothing jumped out at me.  So I started again, this time removing anything that I had which the "default" theme did not.  Suddenly the pagination worked like it should.  Success!  Well sort of...

Now I started to add in my extra code one line at a time.  Still working... until I got to the following:

 

<? if($_server['REQUEST_URI'] == "/"){ ?>
<script src="/scripts/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="/scripts/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
<? } ?>

This code was there to only output the Adobe Spry TabbedPanels code on the home page, but this PHP condition was somehow re-setting something that was causing my pagination nightmare.  I have since removed this and I am simply including the SpryTabbedPanels.js and SpryTabbedPanels.css on all pages.  The offset of having those files load on all pages, whether or not they are needed, beats not having working navigation.

My thanks on this fix goes out to Eric Baker, as he gave a helping hand on this one!

 

Tagged as: , No Comments
12Mar/090

TEAM Charlotte: New Guestbook

We have added a guestbook to the blog which will allow visitors to the website leave messages for both Charlotte or Mommy and Daddy (or all of us!)

You can reach this new page at http://www.tobyandjoann.com/charlotte/guestbook/ or through the main navigation for the TEAM Charlotte website on http://www.tobyandjoann.com/charlotte/

Please stop by and let us know that you visited us on the web! :)