DeeEmm

Pragmatism in code

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Google Chrome for Mac

If, like me, you have been using the beta version of Google chrome for mac, you will be pleased to learn that Google have now released the final version. Chrome for mac is only available for intel based macs, OSX version 10.5 or later. Being a long time Firefox user, I've been noticing a slowdown in performance lately that has been causing a little frustration, especially when it comes to developing. A pet peeve of mine is having to wait for the browser to finish loading pages - it's simply lost time that i could put to better use.

Chrome is without doubt much faster than Firefox, with very impressive page load times, even with slower pages. With the addition of a few of my favourite tools available (FireBug and Web Developer), Chrome is possibly looking like a replacement for my long term love affair with Firefox. The only downside is that FireBug is only available as a Lite version - which means that there are some critical features missing (javascript tools), but for general day to day use, you could substitute other dedicated tools instead. Of course, it's also possible that an updated version of FireBug for the Crome platform might surface in the future, but this is probably just fanciful thinking, as there are no reports of this as yet.

Chrome also comes with a nice bookmarks migration tool to easily import bookmarks from your other browsers, and includes up to the minute support for HTML5 and the emergent new web technologies. Bundle this with a with a nice clean interface, and you have an improved web experience.

So, if you've yet to try it, or haven't updated form the beta, I recommend to give it a go.

Continue reading
  2551 Hits
  1 Comment
2551 Hits
1 Comment

Delete .DS_Store files

Whilst recently packaging some files for distribution, I noticed that that the folders that i was compressing contained .DS_Store files. These .DS_Store files are hidden files used by OSX to store metadata such as icon position and view settings. They are similar to the thumbs.db file used on windows, and are equally annoying when packaging files up for viewing on other systems.

By default the .DS_Store files are hidden in OSX, unfortunately this is not so for other systems where they are displayed alongside whatever content you packaged Not wanting to have to manually drill down through various folder levels to delete each and every instance, I decided to have a quick google to see what I could find.

First page up led me to Ryan Grier's site, where he has an application called the 'DS_Store Cleaner v1.5' listed. The app has not apparently been updated since January 2005, but this is not an issue, as the app works perfectly.

Basically after unzipping the app, place it somewhere on your mac (the application folder seems like a good spot) and then drag it to your dock to create an icon. Now simply drag the folder you want cleaned onto the DS_Store Cleaner icon. After chugging away for a little while, you will be notified by an alret box as to how many .DS_Store files have been deleted.

Continue reading
  6027 Hits
  0 Comments
6027 Hits
0 Comments

Toggle Hidden Files In Finder

This is a great little tip for showing hidden files in OSX. Normally all files are hidden, and so access to the hidden unix filesystem is not possible. This is easily overcome however. You can either permanently disable this feature by running the following command in terminal.

defaults write com.apple.Finder AppleShowAllFiles YES

or, if you need to change the visibility on a regular basis the following may be of more help

Open up the apple script editor and paste in the following code

Continue reading
  3750 Hits
  0 Comments
3750 Hits
0 Comments

VMware Fusion - Increase virtual machine size

Like many ex M$ Windows users, I still have the occasional need to use it to run programs on that will not run under OSX. For example, probably all of the programs I use for PLC programming simply will not run natively on the Mac. This leaves me with two options - carry round another laptop (sometimes happens), or use a virtual machine.

A job I did recently for a client required I install some additional windows based software, to program the obscure controller that they had. At the time I just had my Mac on me, so I powered up Vmware and started to install the code. Unfortunately the installation started to hang about half way though - the issue was a nearly full disc.

I keep my virtual disc size fairly lean - the work I do is quite storage intensive, requiring lots of space, so I tend not to waste space if I can avoid it. It's easy enough to resize the disc if necessary. So that is what I did. Fortunately I am usually prepared for these things as you never know what will happen when you are stuck working in the middle of nowhere,

A friend of mine, just emailed me to ask how to change the disc size, so I thought I might as well add it up here

Continue reading
  5217 Hits
  0 Comments
5217 Hits
0 Comments

Coda - Web Code The Mac Way

http://www.panic.com/images/major4-3.gif

 

It's been a long time since I switched from using Windows as my primary development platform, and whilst you may hear a fair bit about the effect that this has had within my posts (for better or worse). Something that i have never really been able to completely replace on either the Mac or Linux platform was my favoured editor - Ultraedit. Deep down I have a soft spot for Uedit, and whilst it can be a little bloated for simple tasks, years of useage and tweaking to my liking made it my favourite tool for all kinds of development work.Gedit on the Linux platform, once endowed with a few useful plugins, becomes a useable tool for web development. The inclusion of tools such as the 'Class Browser' (http://www.stambouliote.de/projects/gedit_plugins.html), 'Symbol Browser' (http://symbol-browser.sourceforge.net), 'Word Completion' (http://users.tkk.fi/~otsaloma/gedit) and 'Find in Files', makes Gedit a really useful editor, which whilst not really feature packed is more than capable, which is excellent for the standard packaged editor that is supplied with the Gnome desktop.For the Mac, there are quite a few editors out there, some free some not, none are really on par with Ultraedit featurewise, but this could be seen as a plus in some respects. I was quite happy using TextMate for web development work, especially as it had plugins available for code browsing and project handling, that is, until I found Coda.Coda, takes up where other editors on the Mac finish, and whilst it may only be aimed at web development, it includes everything that you might need in the day to day life of a web dev.Coda integrates the most useful programs all into one single IDE, it includes project management, an FTP client, text editor, preview window, css editor, SVN client and even a terminal window for remote access to your web server.The Project management features allows you to keep local and remote server details, as well as FTP and SSH login details all together, meaning that when working on a project it is easy to upload / download files, check the results of your work in the inbuilt browser, edit css etc. There is even a built in book library that includes books for HTML, Javascript, CSS and PHP, There is also the ability to add more if you so wish. The in built code navigator allows quick access to classes and functions, and with the addition of a few extra plugins you can also validate your PHP code, and perform other actions such as HTML tidying and url encoding. All of this is in addition to the standard expcted features of any decent editor such as tabbed MDI, syntax highlighting, find in files, text commenting, text conversion and even split window editing.Coda is not a free application, but does offer a free demo. If you're in the market for a decent development platform for web apps, then give Coda a try, I'm sure that you will not be  dissapointed.Coda is available from Panic software at http://www.panic.com/coda/ DM

  4651 Hits
  0 Comments
4651 Hits
0 Comments

Mac Database Client

http://www.sequelpro.com/assets/images/g-notebook-header.png

A recent project using a remote database server forced me to go looking for a suitable database client for my Mac. Previously i had used EMMA on Linux, but as I only has my macbook to hand I decided to have a look into what was available.A quick google turned up Sequel Pro - an open source project - http://www.sequelpro.com/

Sequel Pro is a very capable tool, that works flawlessly, it supports SSL connections and had a wide range of encoding options. The layout is instantly familiar to anyone who is used to using phpMyAdmin, and the interface is pretty intuitive to use.

The query editor allows easy query management with both a history feature as well as a favourites menu to keep track of your more frequently used querys, this alone is a great feature for anyone who needs to use the same querys over and over. The query editor also provides basic text editor functionality and syntax highlighting to make life a littel easier, it also includes auto complete.

Overall, if you need a remote database client, or simply want to use something other than phpMyAdmin, I would reccomend Sequel Pro. A great application, at a great price.

Continue reading
  4223 Hits
  0 Comments
4223 Hits
0 Comments