Deleting Dreamweavers _notes folders

If you’re like me and you decide not to use the ‘Design Notes’ or the synchronisation features of Dreamweaver at all (or at least not very often) and/or you use other FTP clients to transfer files and/or pass site files over to other designers to work on then you have probably been bugged to have to manually remove all of the ‘_notes’ folders that Dreamweaver makes inside every folder of your site.

I’d gotten tired of doing this manually so I thought I’d make a quick and dirty solution to it, after a little it of work using Mac OSX’s Automator application I created a script which looks for all instance of folders named ‘_notes’ and then puts them in the trash. So all I have to do now is run this application every so often and then they all get dumped in the trash leaving my folders clear and ready to pass on to someone else or upload using another FTP client.

Presenting ‘Delete _notes’

Icon for 'Delete _notes' applicationThe application was pretty simple to make using Automator and was saved as a proper ‘.app’ package application. I then went and made little icon for the file instead of the generic icon, again this is fairly quick and dirty (admittedly it looks like it’s for deleting Dreamweaver itself!!!) but it looks ok.

I then packaged the app into an installer using the PackageMaker application that is part of Apple’s developer tools to make it easy to install. Although the application can run from anywhere on your machine the installer will put it in the ‘Applications’ folder, but you can change this to any location you want.


Download ‘Delete _notes’

I’ve made the app available here to download in case it’s of any use to anyone, it wasn’t terribly complicated to build but maybe it could be useful? Please remember that you use this at your own risk, no warranty or guarantee is given or implied. You should always make sure you have backed up all files before running potentially risky software that intends to delete files like this one! That said it runs fine on my machine running Leopard and does what it was intended to do.

If that hasn’t put you off then go ahead and download it! I’ve zipped it up so it’s only about 120Kb in size

ยป Delete_notes.mpkg.zip

Addendum: It is possible to stop ‘_notes’ folders being made in the first place

Just in case you weren’t aware that you can stop the ‘_notes’ folders being made in the first place then I should link to an Adobe Technote explaining it. I’ve been confused by this in the past so it’s probably worth linking to here so that if you don’t want the _notes files created at all then you can do so, rather than running the ‘Delete _notes’ application all the time!

Read the Technote : "An _notes folder and dwsync.xml file are created even when the preference is turned off in the site definition"

~Rick

Configuring Apache 2 with Virtual Hosts on Mac OSX Leopard

I recently installed Leopard on my development machine by doing a completely fresh install in order to have a clean system. One thing I found that I couldn’t get running correctly was recreating my preferred Apache web server setup including Virtual Host configuration. Leopard runs Apache 2 by default but I had been running this on Tiger anyway rather than the default Apache 1.3.

Problem #1: Access denied using custom DocumentRoot

My first problem was that I like to use a different location for the DocumentRoot configuration, I keep my site files in ‘Users/rickcurran/Documents/Client_Data’ located in my Documents folder in my user account rather than in the default ‘Library/Webserver/Documents’ location. The problem I encountered was that if I changed the DocumentRoot to point to my preferred location I got a ‘Forbidden – You don’t have permission to access / on this server’ message. I tried to get it working and just gave up for a while and used the standalone MAMP application in the mean time to get working because this had no problem pointing to my custom DocumentRoot location.

Solution to #1: Change the user that Apache webserver runs as

I eventually figured out that in Leopard Apache’s default user (www) doesn’t have permissions to access my Documents folder. I simply went and changed the User and Group settings in the httpd.conf file to use my user and group and then it worked fine. I’m sure you could probably add the default Apache user to a group or some other Users / Groups / Permissions setting but for a development machine this solution works fine!

Problem #2: An alternative to name-based virtual hosts avoiding netinfo / hosts files

I like to have all my sites both current and past projects running locally so that I can fix any bugs etc without having to work on live sites. Apache’s Virtual Host configuration is perfect for the job. At first under leopard I just couldn’t get them to work but I realised that I’d simply missed something out in the configuration, so it was more a human error really. However whilst Googling trying to figure out what I’d done wrong it reminded me that most tutorials on configuring Virtual Hosts under Apache do so by using name-based hosts which require you to edit the ‘/etc/hosts’ file (or via Netinfo Manager on Tiger).

The drawback to this technique is that the sites are only viewable on your development machine, if other users on your network want to view the development sites they need to configure their own hosts file. This is a problem when you’ve got several machines that need to access the sites.

Solution to #2: Port based virtual hosts

To get around the hassle of Netinfo / hosts configuration I use an alternative virtual hosts setting which uses a different port for each site and can be accessed on any machine on the network.

To set up port based virtual hosts you need to first uncomment a line in the main httpd.conf to enable virtual hosts in the first place. Next edit the ‘httpd-vhosts.conf’ file found in ‘/etc/apache2/extra/httpd-vhosts.conf’, comment out the example virtual hosts that are there by default and then add your virtual hosts in the following way:

<VirtualHost *:80
DocumentRoot "/Users/rickcurran/Documents/Client_Data/intranet"
</VirtualHost>

Listen 8081
<VirtualHost *:8081>
DocumentRoot "/Users/rickcurran/Documents/Client_Data/myexamplesite_co_uk"
ServerName 192.168.0.2:8081
</VirtualHost>

The first sets a default virtual host on port 80, the second sets up a site on port 8081. The examples above are very basic configurations, you could add support for error logs etc but this gets them up and running.

Restart Apache by unchecking and rechecking the Web Sharing tickbox in the Sharing System Preference you should then be able to access the ‘myexamplesite_co_uk’ site by using the URL ‘http://localhost:8081’. Also anybody else on the network can access the site too without messing around with the ‘etc/hosts’ file!

Scared to edit httpd.conf etc? Try HeadDress VirtualHostX

Update: It seems as if HeadDress is no more, the website has been down for ages so I’ve updated this section to refer to another app called VirtualHostX. If you don’t like editing config files via the Terminal then there’s a nice application called HeadDress VirtualHostX that gives a nice user interface for the whole process of setting up Virtual Hosts. VirtualHostX allows you to create sites running on their own local domain name by editing your /etc/hosts/ file, you can also specify a specific port for the site too.

I still prefer using my own method #2 above as it allows multiple users on your local network to view your sites as well, whereas with VirtualHostX you’d need everyone to edit their /etc/hosts/ file. For single machine web development it’s a great application and costs only $9.00 for a licence.

Mac OS 10.5 Leopard – Part 2: Saving PDF documents

Mac OSX supports PDF natively and has always handled them quite well, one very useful feature is being able to save a PDF version of a document. This is done by simply selecting Print and then clicking on the little ‘PDF’ button in the lower left of the resulting dialog box, you then get a pop up menu with several options, the one at the top being "Save as PDF…". Give it a file name, hit save and there you go, a PDF copy of your document!

Leopard improves this PDF workflow by giving the ability to add meta data such as Title, Author, Subject and Keywords in the document more prominence by putting the fields right there in front of you as part of the Save process.

Save as PDF dialog box

A further improvement is the addtion of a ‘Security Options’ button that then allows you to restrict access to the PDF by requiring a password. You can restrict the opening of the document as well as copying and pasting text or printing the document.

PDF security options

A lot of the improvements in Leopard are the many smaller details that have been improved, these extra PDF functions make it even less essential to have any third-party PDF applications.

One feature that’s still missing is the ability to save PDF form data and re-open it – a feature that’s missing from the free Acrobat Reader too. Why this type of saving is not available in Acrobat Reader is a mystery to me, and one that is a great hinderance to the use of PDF in some of my client’s workflow.

Vectormagic – Convert images to vectors online

There’s quite a few online tools for editing images around now such as Picnik and Splashup (formerly known as Fauxto) but I just came across an online tool that will convert images into Vector graphics – VectorMagic.

Don’t let the fairly simple looking web page that appears fool you, simply use the ‘Choose file’ button to upload an image for you to convert and you immediately get taken into the VectorMagic editing application. Once you choose an image the app attempts to figure out what kind of image it is in order to give the best results possible, once you confirm the type of image you then choose between low, medium and high qualities.

I did a little test using a 140 pixel avatar image that I use on Twitter and other sites, here’s the resulting low, medium and high vector outputs:

High:

High quality vector conversion

Medium:

Medium quality vector conversion

Low:

Low quality vector conversion

VectorMagic gives quite impressive results for a web application, the resulting vector conversions are easily as good as, if not better than, those produced by many desktop applications.

Mac OS 10.5 Leopard – Part 1: Safari form field warnings

This is the first of a few posts about things I’ve noticed since I started using the new version of Mac OS 10.5. There’s a lot of changes in the OS, as you’d expect given that it is a major new release and 2ยฝ years in the making, I’ve been picking up on some of the visual changes / user interface changes since the previous version.

Safari’s form field warnings

The new version of the Safari web browser in 10.5 boasts quite a lot of changes, one that I noticed was that it gives warnings if you try to close, reload or quit when you have started entering text into any text fields on the page. These are very simple changes but they are very useful.

Quitting Safari warning:

Leopard - Quit Safari - text input warning

Reload page warning:

Leopard Safari - Reload page - text warning

Close browser window warning:

Close Window - text input warning

Mac OS 10.5 Leopard in the wild

Picture of Mac OSX Leopard BoxWell it’s almost been a week since the newest version of Apple’s Mac OSX operating system was released. 10.5, or Leopard as it’s commonly known is the sixth version of Mac OSX to be released in a six year time frame, which is a pretty amazing feat really.

I’ve only been using it for a few days but I was instantly very impressed with it, I’ve been capturing screen shots of various things as I go along which I will blog about over the next few days. In the mean time here’s a couple of links to check out, especially if you’ve never used OSX before or don’t know anything about the new version:

~Rick

BBC iPlayer comes to Mac and Linux via Flash streaming

There’s some interesting developments in the progress of making the BBC’s iPlayer available to more than just those people running Windows XP. The BBC announced that they are partnering with Adobe to make a streaming version of the iPlayer based on Adobe’s Flash player which will make the service available to people running Mac OSX, Linux and Windows.

This solution won’t bring exactly the same experience that current Windows XP based users of the iPlayer get, users will simply be able to play the files whilst they are connected to the internet whereas the full iPlayer allows people to download shows and keep them for up to 30 days. It is still definitely a step in the right direction though, the use of Flash for the video format was a no-brainer really as it is the most cross-platform solution out there.

Previously I’ve blogged about whether Flash was a viable alternative for the iPlayer so it’s good to see that my thoughts weren’t really off-track. It will be interesting to see how Adobe moves in future, will they try and enable some kind of DRM system in order to try and get the BBC to drop the Windows Media DRM system that the main iPlayer system uses? or will the BBC forego the use of DRM altogether and make the transition to a Flash based iPlayer even easier?

Head in The Clouds…

The BBC also announced a deal with WIFI network The Cloud to offer access to all of their online content without the user having to pay a subscription to The Cloud. This makes the Flash-based streaming iPlayer even better news in that you will be able to watch BBC video content without paying for WiFi access at your local coffee shop, oh, except if you’re on an iPhone as there’s no Flash player!

Joking aside though, I wonder if the BBC will choose to make content available using the H.264 video codec and make use of the latest Flash Player 9? If they did then this could allow the content to be published and made accessible on devices that can’t run Flash player. That’s just one more reason why the BBC needs to drop the Windows DRM based iPlayer as it’s just profoundly inaccessible.

~Rick

Darth Vader being a jerk…

You’ve probably seen this already, but I thought I’d post it anyway as it’s pretty funny.

It’s more funny to me as I’ve been watching all of the Star Wars movies recently, it got me looking for other parts of these movies where you could make some funny clips.

~Rick

Good News for BBC iPlayer progress

There was some good news from the BBC’s Backstage Blog today regarding the potential progress towards a future cross-platform compatible iPlayer solution (See these posts for a bit of background on the issues associated with the current BBC iPlayer "Dear BBC…" and "Flash: Can it be a viable alternative to Windows Media DRM for the BBC").

The BBC have announced that they have employed Anthony Rose, formerly of Kazaa and Sega, to be the new head of Digital Media at the BBC. With more than a hint of humour the Backstage post states:

In a move which promises to shock those who believe the BBC is in the pocket of Microsoft. It was announced Anthony Rose formally from Kazaa and Sega will be the new head of Digital Media at the BBC.

So, this looks like good news in regards to the BBC’s progression to a non-microsoft centered solution for delivering the DRM’ed iPlayer content. In case you don’t know much about Anthony Rose’s (I’d never really heard of him before) or Kazaa then it’s worth checking out Wikipedia’s entry for Kazaa. Hopefully some good things can come out of this, I’ll try not to let the fact that Kazaa themselves don’t offer a Mac or Linux version of their own client bother me!

~Rick

The ‘Iphone looking Mp4 player’

I just got a bit if junk email with a Word document attached showing a Taiwanese rip-off of the iPhone. It’s not a Phone but is an MP4 player, or in the words of the email, it is an "Iphone looking Mp4 player"! Basically the email was looking for me to place a bulk order of a minimum 1000!

I’d read on the web the other day about a Chinese company working on creating a rip off of the iPhone but obviously the photocopiers have been hard at work! Interesting to see what Apple Legal department make of this!

The email:

Email about "Iphone looking Mp4 player"

"Iphone looking Mp4 player" Images

Picture of "Iphone looking Mp4 player"

Various angles of "Iphone looking Mp4 player"

"Iphone looking Mp4 player" Specifications

The email lists the specifications as:

CY?IP4 Iphone looking Mp4 player

  • Real touch screen mp4
  • Iphone looking
  • 2.8-inch real touch screen mp4 player2>Multi music formats as MP3, WMA and WAV, good timber and real audio frequency display
  • MPEG-4(AVI) video format play, full-screen play display
  • two earphones;
  • Built-in hi-fi 8 Ohm speaker
  • Support card-inserting function: MINI SD card, 128M/256M/512M/1GB/2GB/4GB
  • High-definition JPEG picture browse function
  • Digital record, A-B replay function
  • Energy-saving setting, brightness adjustable, customerized power off time
  • Good timber, support 3D EQ surrounding effect, customerized EQ
  • Support multi languages
  • High Speed USB2.0 port
  • Listen to music while reading E-book, with bookmark function
  • Listen to music while playing games
  • FM radio
  • 128MB/256MB/512MB/1GB/2G
  • User?s Manual, earphone, CD drive
  • Dimension: 85X21X16 mm (W*H*D

Crazy!

~Rick