Archive for the ‘Macintosh’ Category
Saturday, August 2nd, 2008
In case you missed it version 1.4 of SQLEditor was released back on July 8th.
If you’re using 1.3.9 you might like to consider upgrading.
The 1.3.9 upgrade system will be set soon to recommend this upgrade
(though 1.3.9 doesn’t use sparkle, so it can’t actually do the upgrade for you)
SQLEditor 1.4
(3.6 MB DMG File)
Lots of great new features and various bug fixes and improvements to the existing ones.
Tags: Software Release, SQLEditor
Posted in Company News, Macintosh, SQLEditor | No Comments »
Tuesday, June 24th, 2008
SQLEditor 1.4b26 is now available for download.
It fixes only one problem which is related to auto increment and SQLite.
This should hopefully be the final beta version for 1.4
The next version should be the 1.4 final release which will probably happen later this week or early next week (assuming no more problems are reported)
SQLEditor 1.4b26 Download [3.6MB DMG]
Posted in Macintosh, SQLEditor | No Comments »
Saturday, June 7th, 2008
Handy new tool I came across today which allows you to test regular expressions and see what they select.
Reggy
Posted in Macintosh, Writing Software | No Comments »
Saturday, June 7th, 2008
A cool new online presentation tool:
http://280slides.com/Editor/
The slide show application is really nice in that it feels very much like a desktop application when in use, even down the way buttons and key presses behave. The object rotation is particularly clever.
Another thing that makes this one clever though is the underlying framework, which is said to compile cocoa like code into dynamic web pages. It will apparently even be opensourced at some stage!
Posted in Computing, Internet Stuff, Macintosh | No Comments »
Tuesday, May 27th, 2008
The build system for SQLEditor has lots of steps, from building each of the component frameworks, compiling the application, assembling the bundle, creating a disk image and then uploading everything to the server. (Plus things like version histories and read me files).To reduce errors I have several aggregate targets and a collection of scripts, but I was puzzled how to produce those little note entries that OCUnit generates when it’s running unit tests. There were several notes I wanted to make but I couldn’t figure it out.
However it occurred to me one day to inspect the souce of RunTargetTests and the answer was of course right there in the source.
<filename>:<line>: note: <message>
gives you a note.
<filename>:<line>: <message>
gives you a warning.
where
<filename>
is the name of the file you want the message to appear from
<line>
is the line number in that file
<message>
is the message you want to display
In the note form the word ‘note’ is a constant. Don’t replace it with anything.
As an alternative you put in use an empty filename and 0 for the line if you’re not interested in these details.
Example
@echo ":0: note: disk image creation complete"
Will display the message “disk image creation complete” as a note in the build window.
Posted in Macintosh | No Comments »
Friday, March 14th, 2008
Found an odd problem with Flash CS3 today. I was working away and I realised that I wasn’t getting anything in the output window from calls to trace().
Just a completely empty output panel.
The answer is simple, make sure Filter Level is set to verbose in the menu on the output panel. If you have it set to None then you won’t get any output.
I’m not quite sure if this is something that I changed or if it is the default, but it isn’t exactly obvious.
Posted in Macintosh, Writing Software | No Comments »
Thursday, February 21st, 2008
Johan Basberg (who designed the beautiful SQLEditor icon) has a handy list of recommended mac applications at
http://dittverk.no/mac/files/tag-editor.php
And SQLEditor is on this list 
Tags: mac
Posted in Internet Stuff, Macintosh | No Comments »
Thursday, October 25th, 2007
At the moment I believe that both SQLEditor and HTMLValidator are compatible with Mac OS X 10.5 and should work without functional difficulty.
A minor issue that I found is that the toolbar icons don’t look very good against the 10.5 window style. These have already been redrawn and the new icons will appear in the 1.4 release.
This assumes that there weren’t any major changes between the version that I used to test and the release version of 10.5 which will be released on October 26th.
Overall it looks good though.
Posted in Macintosh, SQLEditor | No Comments »
Wednesday, August 22nd, 2007
This made me laugh when I saw it:
http://www.modernlifeisrubbish.co.uk/article/retro-mac-os-wordpress-theme
Definitely memories of simpler times 
Posted in Internet Stuff, Macintosh | No Comments »
Tuesday, August 7th, 2007
HTMLValidator 1.0 is finally released.
As I write this, it’s been out since Friday, so I guess I’m a bit late in writing this. HTMLValidator 1.0 is identical to HTMLValidator 1.0b8, except of course that it 1) doesn’t expire and 2) asks for registration.
The first non-beta release seems to have gone reasonably well. People are downloading it, trying it and some are starting to buy it. (If you’re reading this, then thank you!).
Oddly enough the most difficult thing about the whole thing was making sure that the order processing system could correctly deal with more than one product. We have a system that interfaces with our payment provider and it handles logging orders and generating serial codes. When it was originally written, HTMLValidator didn’t exist, we sold only one product and there wasn’t really a plan to develop others; So there were several areas that assumed that was only one product. The lesson here is to assume that you’re going to expand and plan accordingly.
Work has already started on the next release of HTMLValidator. The main areas for improvement are speed and memory usage. Plus there are some improvements to validation that the W3C released in their version 0.80 code release that would be nice to have in HTMLValidator. (Which is of course based on the W3C validator).
If you want to try HTMLValidator then we have a page that tells you all about it.
[HTMLValidator]
Posted in Company News, Macintosh, Writing Software | No Comments »
Saturday, April 28th, 2007
It appears that antlr on Mac os x doesn’t like the jikes compiler, at least when I tried building antlr it gave lots of weird compile errors like this:
Found 2 semantic errors compiling "ANTLRException.java":
While it would be a good thing to try to fix the actual code, it’s easier to see if the solution is already available.
The answer came in this posting which suggests renaming jikes before building. Which works, but there is an easier way. Just declare an environment variable before starting the build.
export JAVAC=javac
./configure
make
Changing the java compiler that gets used is documented in the configure script.
Tags: java
Posted in General, Macintosh, Writing Software | No Comments »
Friday, March 2nd, 2007
A new version of HTMLValidator today. I moved the validation into a separate thread to improve responsiveness. This is also the way that HTMLValidator will be doing multiple page validation. In fact the new release even includes pretty much all of the code necessary to do this, but it doesn’t include the interface yet. The 1.0b3 release actually validates a list of urls, but the list contains only 1 element. The idea is to test that the basic code works as expected before bolting the interface on the top.
Also new is a little spinner that spins when the application is doing something, some improvements to error display and handling and a few other fixes here and there. The changelog gives a complete list.
Next feature is the multiple file validation interface and then probably a 1.0 release.
Posted in Company News, Macintosh | No Comments »
Friday, February 16th, 2007
HtmlValidator beta 2 has just been released. The new version offers assorted fixes and a slightly improved interface (a green tick or red cross now appear in the validation window!)
There is also a new downloads page which currently offers an Applescript to validate the source of the front page in Safari.
Usefully it validates the actual source that the browser received, it doesn’t download the url itself.
Tags: cocoa, html, htmlvalidator, mac
Posted in Company News, Macintosh | No Comments »
Friday, February 9th, 2007
HTMLValidator 1.0b1 has just been released.
It runs on PowerPC or Intel Macs with Mac OS X 10.4 or later.
The current version expires 28th February 2007.
HTMLValidator is a new desktop HTML validator that works on both web pages and files. It’s something I’ve been working on for a while now in between SQLEditor releases. The main motivation is that I often seem to use the W3C validator, but I can’t always do that with files I’m working on locally. I also tried installing the W3C validator on a local web server and although it works, it seems to require a lot of installation effort, with different dependencies. So the idea occurred to me: what if you could have a drag and drop installation. From there came a web version using drag and drop and finally the application bundle version that is being distributed from today.
The earlier application versions actually displayed the results in an html webview in a window, while the newer releases display the results in a table.
On the drawing board for future releases are more validation options, the capability to validate multiple pages and the ability to watch pages for changes and then validate. Also better printing and Applescript support (although both of these are present in the current version).
I’m really interested to know what you think of HTMLValidator so feel free to send in comments, either to me personally Angus [DOT] Hardie [AT] malcolmhardie [DOT] com or to the support [AT] malcolmhardie [DOT] com email address
Tags: cocoa, html, htmlvalidator, mac
Posted in Company News, Internet Stuff, Macintosh | No Comments »
Friday, January 12th, 2007
I just noticed this announcement on the google mac blog.
Amit Singh has released a mac version of Fuse, which is way for people to write interesting extensions to the file system without writing kernel code. The way it works (as I understand it) is that the Fuse system runs one kernel module which communicates with the actual file system code in userspace.
It looks really clever and there are already a number of useful file systems available for fuse (including ssh as a filesystem and a ntfs driver).
[link]
Tags: fuse, google, kernel, mac
Posted in Macintosh, Writing Software | No Comments »
Sunday, December 10th, 2006
SQLEditor 1.3.1 got released on Friday afternoon, this was really just a bug fix release which fixed a handful of problems that were identified. I think the only major fix was that the new UID system was slightly broken in that if you copied an object, or duplicated it in some cases, then SQLEditor would not always recreate the unique ID numbers that represent each object. This had the effect that if you copied an object, SQLEditor couldn’t distinguish between the objects when reloading and so all connectors would be attached to the original object and not the new one. An unfortunate bug.
It has now been fixed, along with slight improvements to image saving and a fix for a menu shortcut not being correct. The latter was an odd problem in that a shortcut was set, but it actually conflicted with an existing shortcut and the cocoa menu system is smart enough not to display the same shortcut for more than one menu.
[Download] 2.8MB DMG
For some reason also I don’t think I posted about the 1.3 release. But the 1.3 release was posted on November 23rd and is the first non-beta release to be released since May 2006. It rolled all of the improvements that had been made during the beta testing phase into a new release and is definitely worth upgrading (especially since the upgrade is free). However the 1.3 release has been superceded by the 1.3.1 release, so download that instead.
Tags: cocoa, mac, malcolmhardie-solutions, SQLEditor
Posted in Macintosh, SQLEditor | No Comments »
Saturday, November 18th, 2006
You can just see Steve Jobs stroking a white cat and telling engineers to make products “insanely transparent”, can’t you?
[link]
(It’s actually an article about keyboards, but worth reading anyway)
Posted in Computing, General, Macintosh | No Comments »
Wednesday, November 15th, 2006
I realized something interesting today.
I use unit testing to (hopefully) improve the quality of my code.
With Java I use JUnit. With native Mac stuff I use OCUnit.
One really clever thing about OCUnit that I realized today is that if you have several SenTestCase subclasses, each with multiple tests in it, you can put all of them into one XCode target and OCUnit will automatically run them as suites in one test run. This means that you get a summary of all of the tests at the end.
Previously I had a separate XCode target for each test case, where each test case class reported its results separately, which isn’t nearly as good.
Tags: development, junit, mac, ocunit, unit-testing
Posted in Macintosh, Writing Software | No Comments »
Saturday, November 4th, 2006
“We have put our complete IP PBX on it [the iPod Shuffle]”, says Dr. Harry Behrens, Managing Director of 4S newcom. “It is so compact that even on the smallest iPod Shuffle (512 MB) enough room is left for 4 full hours of music.”
[link]
Posted in Internet Stuff, Macintosh | No Comments »
Thursday, October 26th, 2006
This post on the xcode-users list explains a neat trick on how to get xcode to link a static library instead of a dynamic library.
Imagine the circumstance: you want to use a particular non-standard version of a native library which is already part of the system; perhaps you want to use an old version with better compatibility, or a newer version with more features. The obvious thing to do is to take a static build of the library and add it your xcode project.
However this typically won’t work. The linker will choose the system version instead because by default it looks in all possible locations for a dynamic library first before looking through the same list of locations for a static library. If there is a dynamic library in any of the search locations it will always get chosen. There are some good reasons for this, but what if you really want to include your own statically linked version?
The answer is to add the -Wl,-search_paths_first flag to the other link flags option (under linking in target settings).
When this is set each possible location for a library is inspected first for a dynamic library and then for a static library. This means that the static library will get linked correctly.
It’s not exactly something that will be needed frequently though.
Edit: Apple have a technical Q&A article (1393) on this very subject which appeared a couple of days back and which I somehow missed.
It offers this exact method. [Link]
Tags: cocoa, development, gcc, mac, SQLEditor
Posted in Macintosh, SQLEditor | 1 Comment »