Pragmatism in code

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

OSX Maverick stikes again? Exchange Sent Mail Dissapearing

OSX Maverick stikes again? Exchange Sent Mail Dissapearing

I've been a proponent of Mac and OSX for some time now having been attracted to its simplicity and the 'it just works' way that it operates but since the Mavericks update some things simply don't work. The biggest issue that I have found is that apples newly written USB drivers will not connect to my Arduino, a major PITA when it comes to uploading a new program. The solution is to disable the OSX drivers and install the OEM version which worked for me and seems to work in 95% of cases. Why Apple have decided to move away from the chipsets manufacturers drivers I will never know although I suspect that it may be due to an incompatibility that causes Kernel Panics as I have personally experienced these since moving to the OEM drivers. This is fairly repeatable - hold down the Arduino reset button whilst uploading the program and your machine will likely go into an involuntary and instant reboot. The solution is of course simply not to hold down the reset button but as this is a common hack to get the program to upload you may have to suffer a few missed uploads instead. Not a massive issue, at least I can now communicate with the arduino again.

The most recent issue to hit me as a potential result of Mavericks is that sent email messages seem to disappear into the ether instead of appearing in the sent box as they should. This issue only recently came to light when I needed to find some previous correspondence. For reliability and ease of management I use a hosted exchange server to handle my work emails and OSX Mail as my mail client. What I found was that the last sent message in my sent folder was dated December 2013, the previous correspondence I was looking for was nowhere to be seen. I also checked the exchange OWA browser client but after looking there I also found that there were no recent sent mail messages stored.

After a short call with the exchange tech who advised me to use a client that they supported - namely outlook 2010 - he advised that the issue appeared to be related to the Mavericks update. For some reason the outgoing server had been changed - there were now two exchange outgoing servers in the server list. I changed the outgoing server to the other exchange server listed and sent a test message. Viola! the message was saved in the sent messages folder.

I'm not sure why or how the second outgoing server was added, It's definitely nothing that I have consciously done as the exchange account has not been altered since it was setup in 2010, additionally no one else uses this machine. I can only assume that as the tech  suggested it is related to the mavericks update as the last email date roughly coincides with the date that I updated. Of course I am happy to concede that it could be due to some other unrelated reason but knowing that I did not create the second outgoing server makes me wonder how it got there.

Continue reading
2205 Hits

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
1440 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
4716 Hits

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 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
2612 Hits

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
3956 Hits

Coda - Web Code The Mac Way'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' (, 'Symbol Browser' (, 'Word Completion' ( 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


3348 Hits

Mac Database Client 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 -

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
2713 Hits