I have officially ended the use of Dreamweaver for all of my web development. I got so tired of the slow bloated performance of Dreamweaver and constantly having to pour more money into new versions. So I went looking for a better way and found this…

On Mac OS X I use CyberDuck for FTP and TextMate as an editor.

In case you are on Windows, though not as good, you can use FileZilla and Notepad++ and accomplish a similar setup and functionality.

This is the perfect combination and the price is much better than Dreamweaver. CyberDuck is free and a license to TextMate is only $56. The windows combination is completely free.

The syntax highlighting on TextMate is great and when you start using the bundles and snippet functionality of TextMate, you’ll quickly realize what you’ve been missing.

If you have any stories about using this setup, feel free to share. Or if you have used a different combination of tools (other than Dreamweaver) lets hear it.

{ 6 comments }

How To Flush DNS Cache On Mac OS X Leopard

by Ben on December 19, 2008

Occasionally, you’ll want to be sure you are getting fresh DNS information during development or working on servers with hostnames. This has changed in the Leopard version of Mac OS X. The following command will now flush your DNS cache on Mac OS X Leopard:

dscacheutil -flushcache

{ 1 comment }

MobileMe vs Hosted Exchange

by Ben on November 27, 2008

On the surface, these two services may seem like the same thing. However, when you really look at the two options for centralizing the storage and syncing of your data (email, contacts, calendars, etc) they accomplish the same thing but in very different ways. They both have their pro’s and con’s but that is because they are not really targeted at the same audience.

Hosted Exchange

Pros:

  • Integrates well with Windows OS & Outlook (only a pro if you use them)
  • ActiveSync keeps an open connection so what you are looking at is always the most recent status of the data
  • 3rd Party Providers – Companies can license the exchange platform and resell the services. This creates competition and that is always good for the user.

Cons:

  • The only full integration with Hosted Exchange can happen in Outlook (this could be a pro if you prefer Outlook)
  • Setup can be tricky if you aren’t a Windows/Outlook power user
  • ActiveSync requires an open connection so this can be a power hog on mobile devices

MobileMe

Pros:

  • Cross Platform support – Integrates well with Mac OS X and the Mac suite of apps as well as supports Outlook
  • Fully integrates with iPhone
  • Easy setup
  • Sync’s Email, Calendars, and Contacts but ALSO allows for file storage, photo storage, etc.
  • Better online web application

Cons:

  • Only works with iPhone (if you are using a different mobile device… too bad)
  • No competition – Apple owns and offers the technology but no one else is able to host it for you

{ 0 comments }

The HTTP 301 status code is meant for use when you want to redirect a page or URL to its new destination after reorganizing or moving a web site around. This can be on the same domain or an entirely new domain. Here is the W3C definition of the 301 code.

The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible. This response is cacheable unless indicated otherwise.

The new permanent URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).

If the 301 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.
W3C Hypertext Transfer Protocol

This is particularly useful for search engines like Google, which will carry over page rank to the new page if this status code is seen. If you do not need to indicate permanent displacement, you can accomplish redirection by setting a Location header in PHP. The location header does the actual redirection to the new location, and can be used by itself.

If you set the Location header by itself, PHP automatically sets the status code to HTTP/1.1 302 Found.

Note, if you attempt to send headers after content has been sent, you will get a warning like, “Warning: Cannot modify header information – headers already sent by …”. Watch out for empty lines and spaces between PHP open and close tags.

Here is the code to do this in PHP…

<?php
// Permanent redirection
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.example.com/");
exit();
?>

Just make sure you put these lines in your page before any other content is sent out. The http://www.example.com/ part can be changed to whatever the new address for this resource is.

{ 0 comments }

If you have ever contacted Apple for support on any of their products, you know the first question they are going to ask you is… “What is your serial number?”. The serial number is easy to find on most of their products because they allow you to access it through the software. This is typically a much better alternative to turning the device off to flip it over, remove the battery and squint to read the long string of letters and number in a size 4 font.

The only problem is that each device OS has a different location to find this serial number. This article explains how to find the serial number in your iPhone device. It will also work for the iPhone 3G since they use the same operating system. And it should also work the same for the iPod Touch.

  1. From the main screen on your iPhone/iPod Touch, tap the “Settings” icon.
  2. On the Settings screen, tap the General section.
  3. Now tap the About section.
  4. Scroll down a ways and you will see an item for “Serial Number”. That’s it, read that off to the support person and you’ll be on your way.

{ 25 comments }