Cancom Edinburgh Apple shop seems to be closed

Cancom seems to have closed their Edinburgh shop after being bought out by Trams.

Sorry about staff :-(

Posted in General | 5 Comments

Digital Camera Teardown

Here is a video showing a breakdown of a lumix digital camera. (mikeselectricstuff/YouTube)

The amazing thing is how small the mechanical parts are, and how many there are in there. This camera probably costs no more than £200, yet there are minuscule parts and an amazing level of tiny details, all of which has to work reliably, without any maintenance, for a possible lifespan of several years.

The details of the lens assembly are particularly clever with multiple layers and motors which move the different parts. The coils which are printed onto the circuit board and form part of the movement mechanism is clever feature.

I’m amazed :-)

 

Posted in General | Leave a comment

Kodak bankrupt?

Kodak, perhaps the photography company, appears to have filed for bankruptcy.

It seems to be something of a representative for the state of the non-digital photography market, which looks pretty much dead except for a few limited areas.

In recent years they seem to have sold off much of the research and development and focused on the hyper-competitive desktop inkjet printer market instead.
(Although the reasons for this decision still remain a mystery to me)

I remember having a kodak camera with kodak film, that got photos printed on kodak photo paper, but I guess people a bit younger than me might never have even seen a roll of film, nor for that matter a kodak camera.

It’s sad to see this happen to such an iconic company and I hope that things don’t turn out badly for the employees.

 

Posted in General | 2 Comments

The Web Development Kit Bundle

Just hours remain to buy the The Web Development Kit Bundle.

It’s got a useful mix of tools for Mac web development and its an excellent bargain even if you’re only looking for one or two items in the bundle. HTMLValidator is our contribution to the bundle which costs just 39.99

 

Posted in General | Leave a comment

Web Development Toolkit

HTMLValidator is one of the apps in the new Web Development Toolkit bundle, which is available now.

The bundle contains 10 apps for a single low price of just $39.99
If you’re doing web design, there’s probably something here for you
(unless you already own all the apps, in which case, it also makes a great gift)

The bundle includes:

The offer is running until December 28th, so you will have to be quick, or you might miss out!

Posted in Company News, Macintosh | Leave a comment

Versions, validateMenuItem: and NSMenuItem

If you find when developing in 10.7 that you get a versions menu with a NSMenuItem as one of the items, it might be worth checking to see whether you’re correctly using validateMenuItem:

This problem may happen if you return YES from validateMenuItem in a NSDocument subclass for menu items that you don’t actually control. (If you just return YES as a default for example)

If instead you return

[super validateMenuItem:item]

You should get the correct “Revert to Last Saved Version” menu item

I ran into this when I was doing testing on 10.7 and although documentation clearly states that you must call the super method in validateMenuItem: , it wasn’t immediately obvious to me what was causing the problem.

Hope this helps if you have the same problem.

Edit: This may have been fixed in OS X

Posted in Macintosh, SQLEditor | Leave a comment

Runesoft updates games for Lion

Last year I bought  “Robin Hood: The Legend of Sherwood”; it’s a fun, 3d person, tactical combat game where you play Robin Hood or one of his merry men in the fight against the sheriff of Notingham. When I bought it, it was a PowerPC game and I ran it under Rosetta on my Mac. With the arrival of Lion and the departure of Rosetta, it stopped working and I’d pretty much expected that I wouldn’t be able to play it except by installing 10.6 on a separate partition somewhere.

However this last week I saw something really surprising; Runesoft has released a patch to bring Intel compatibility to the game and it now works on Lion :-)

I’m really impressed with this, thank you Runesoft!

Posted in Macintosh | Leave a comment

Flash player updating on Mac

Flash Player on the Mac is always in need of an update – or so it seems.
One particular problem is that the current update checking system seems to merely displays a web page with the current version numbers. That page also appears to contain no direct download links at all. The page it should link to is the Flash download page.

What it should ideally do is to automatically update using Sparkle or similar. I don’t want it to check constantly in the background, simply check and update when I click the “check Now” button.

Failing that, it should clearly state whether the current installation is up-to-date or not.
I don’t want to have to compare version numbers on a page that lists 8 different product version numbers. The software knows which variant it is, its own version number and a web service can be provided to display the latest numbers. It’s trivial to download the latest version number and test to see if it is the same as the installed version, then provide a direct download link if it isn’t.

In fairness some progress has been made in flash installing, at least they now include a standard pkg installer and progress is being made on providing release notes. But much more progress (or the demise of Flash) is still clearly needed.

Posted in Macintosh | Leave a comment

SQLEditor upgrades

One of the big questions I’ve been thinking about recently is how to price upgrades for SQLEditor. So far upgrades have all been free as 1.0 became 1.1 and eventually 1.7. But with the new 2.0 release appearing soon, the question is what should be charged.

Personally I’ve been annoyed with products where I paid money and a new release appears two weeks later which requires a paid upgrade. On the other hand, SQLEditor 2.0 will be a considerable upgrade from SQLEditor 1.0 (the first paid version), so I do think some additional fee is justified to fund development efforts.

But obviously I don’t want people who haven’t bought yet to have doubts as to whether they will be required to pay for the upgrade.

The stated policy is that anyone who bought SQLEditor within 12 months of a paid upgrade being released gets a free upgrade.

However given that the release date for the new version hasn’t been decided yet, I’ve decided to improve the arrangements for version 2.0:

Customers who bought SQLEditor 1.x after August 1st 2010 will get a free upgrade to SQLEditor 2.0.

This means that if you buy SQLEditor today you get 1.7.8 and when 2.0 is released you would get an upgrade to it free of charge.

 

Posted in Company News, General, SQLEditor, Writing Software | 1 Comment

Xcode 4 – Great!

Xcode 4 took a little while to get used to, but as I’ve been using it more, I’ve been liking it more.

The change initially is significant, and there were new ways of doing things and certain other things that had to be rethought altogether. But now, I’m starting to choose to use Xcode 4 when I have the choice, so I think I’ve got used to it

I recently released some new project files for Tesseract OCR cocoa, and they are built with Xcode 4 now. The simplification in the build system and the linking of the frameworks is a vast improvement. Workspaces are a gift to this type of multi-project build. :-)

The only issue I have is that it doesn’t support 10.5 or PPC, so SQLEditor is stuck on Xcode 3 for a while longer.

Posted in Macintosh, Writing Software | 2 Comments

Lion Released

Lion is released!

Things seem to be going well. SQLEditor appears to work correctly.

There is one identified issue which means that you cannot register the app for all users of a machine. Each user must register the app separately in their own account. (This is due to the /Library/Preferences directory now only being writable by root).

This doesn’t affect Macs which are already registered. Administrators can also manually set the preference keys in the
/Library/Prefererences/com.malcolmhardie.sqleditor.cocoa.plist

file to register for all users.

This problem will probably fixed by making the registration process separate and running it with higher permissions.

HTMLValidator still needs some more work and isn’t currently compatible. A revised version is in the works and should be available soon.

TesseractOCR seems to be working fine (and if you haven’t seen them, please check out the xcode 4 source release, it’s a big improvement)

Posted in Macintosh, SQLEditor | Leave a comment

SQLEditor and OS X 10.7/Lion

The release of OS X 10.7 Lion is approaching very fast and the question must be: is SQLEditor compatible?

The answer is that I expect that SQLEditor will be compatible with OS X 10.7 when it is released in July.

There is a new page up on the support site about this,

Posted in Company News, General, Macintosh, SQLEditor | Leave a comment

MySQL 5.5 + Ruby + Snow Leopard Mac OS X 10.6

The trick is that the library install path isn’t right in the gem bundle.
The following commands fixed it for me:

$ cd /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/lib
$ sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib mysql_api.bundle

$ cd /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext
$ sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib
mysql_api/mysql_api.bundle

The install name is set to the absolute path of the library that the bundle links to.

Original source for the fix is here:
http://lightyearsoftware.com/2011/02/mysql-5-5-on-mac-os-x/

Posted in General | Leave a comment

Talk Talk Door step selling

A truly remarkable piece of door step selling occurred to me this afternoon.

Three people turned up at my door, claiming to be from Talk Talk, complete with ID badges. (So possibly genuine?)

I said I wasn’t interested, but one of them started arguing with me. He started by claiming that the exchange had been upgraded and then claimed that all broadband was now free. (!)
This is a particularly odd claim given that they certainly seem to have prices on their website. There were also various other points made which I believe to be partly or wholly inaccurate.

I’m truly amazed at the stupidity of the whole thing. If I tell people I’m not interested I expect them to go away: they’re not going to change my mind. The only thing the argument did was make me annoyed and I cannot see how that can be a viable sales strategy. Especially when giving information which is actually wrong, surely they will get caught out as soon as the order is submitted to the company and the customer is billed for the service?

What am I missing, where is the advantage in these practices?

I am also somewhat concerned that someone with less technical knowledge might get caught out and switch to this crowd.

It is truly disappointing that this sort of behaviour is permitted.

As a final, ironic twist, I found this page on the talk talk website, describing how to avoid door step sellers. :-)

Posted in General | 3 Comments

SQLEditor Diff Support: A Sneak Peak

Development work is continuing on SQLEditor, and I thought I’d post a sneak peak of some features that will be arriving fairly soon.

Today the feature is Diff support. Yes, it’s something that people have been asking for and something that I’ve wanted to add for some time and here it is:

In this example the original table probably looked something like this:
The table as it was before the alterations

The diff panel shows the SQL instructions that you need to execute to get from the original table to the new table.

This is useful for any number of things, but the most obvious one is if you’re running a database on a remote web server and you only have command line access, you can make changes, grab the instructions needed to make the change and paste them into the command line client on the server. Other people may want to a record of alterations to their databases for change tracking; or they might not trust SQLEditor to get the changes right and might want to inspect any changes before applying them.

With new diff support you can now do all of these things :-)

The observant will also notice the new side bar which as well as the usual source view and the new diff view, also contains a new object search panel as well.
(more on that in another post).

Right now the diff system allows you to choose between comparing the last save of the document or comparing it against any other open document.
The “Compare With” popup allows you to choose what you compare to.

It’s still being worked on, but it should appear in the next major upgrade.

Posted in General, SQLEditor | Leave a comment

Adobe and Growl

I recently spotted the following line in an online forum by a person associated with the Growl notification system.

I’m tired of being yelled at and having my life threatened, but that’s at least better than being insulted like this.

If I understand the background to the comment correctly; Adobe included the open source Growl library in their CS5 suite. They also modified it so that it doesn’t use the standard Growl installer, but instead installed it ‘silently’, without notice to the user.

Assorted CS5 suite users then noticed that a mysterious piece of software had been installed on their machines and instead of blaming Adobe, blamed Growl and the Growl team. Some of them appear to have become very heated indeed.

The whole situation is disgraceful.  Adobe appears to have taken an innocent and very useful open source library and cause an unimaginable amount of harm. At least some of the angry users appear to believe Growl is actually spyware or malware of some kind. For an entirely open source project distributed free of charge, without any expectations at all, this is a remarkable and most unwelcome development.

Adobe needs to fix the problem and make things right. (If that is even possible).
I would also suggest that Adobe pays the Growl team for the time they have spent dealing with all of this.

Perhaps I’m biased, but if this was a little indie mac developer with a $15 app who’d messed up then there might be some allowance made, but this is Adobe – one of the biggest 3rd party developers around – and a company that charges hundreds or thousands of dollars per license.

As a final irony, it appears that the CS5 suite only uses growl once, to advertise some kind of marketing offer after installation. Then it never uses the library again; so much damage for so little actual benefit.

My opinion of Adobe has been getting worse recently, but this whole situation is particularly bad.

Adobe needs to do better.

Posted in General | Leave a comment

SQLEditor now zip file not a dmg

In a change that will probably affect almost nobody at all, SQLEditor is now being distributed with a zip file rather than a dmg as the default download.

Why?

  • Zip files are simpler to create
  • It prevents the problem of the app being run from the dmg
  • Safari handles zip downloads really nicely
  • Disk images created in 10.6 tend to loose their background images in 10.5

That last problem is quite significant, because most of the friendliness of the dmg is the background image; if you loose that, you might as well have a zip file.

There are some benefits from dmg files:

  • They have the background image and the drag to applications directory install
  • DMG files can be smaller
  • DMG files are handy to store

But then if you loose the first point anyway, it might not be worth bothering.

Now there are excellent tools like DMG Canvas for creating cross platform disk images that work fine and keep their background images, but I began to wonder if it was worth the effort for SQLEditor. Were the benefits of the background image sufficient to make up for the trouble?

Various notables including John Gruber, Panic and Sofa recommend or use zip files, so it’s becoming more popular. (The Mac App Store uses pkg but it’s a different story altogether)

The change isn’t actually as significant as it seems anyway, because SQLEditor has been available in both zip and dmg formats for some months now. The release process automatically builds both zip and dmg format archives and uploads them at the end of the build release process. The change is really just that the website links now point to the zip instead of the dmg. (And if you really want the dmg you can change zip to dmg in the download link and get a dmg)

Enjoy!

Or take absolutely no notice of it at all :-)

Posted in Macintosh, SQLEditor, Writing Software | Leave a comment

Chalkboard paint

Chalkboard Paint makes a chalkboard anywhere you can paint.

Some ideas on what to actually do with the stuff on the walls.

I like the idea of a calendar made of the stuff.

Posted in General | Leave a comment

SoyLatte 10.6 bundle template


This is a simple template to use SoyLatte in Mac OS X 10.6 and have it appear in the JavaPreferences system.

You need to copy all of the contents of the /usr/local/soylatte16-i386-1.0.3/ directory into the directory contents/Home (inside the package), then copy the .jdk folder to /Library/Java/JavaVirtualMachines/

soylatte16-i386-1.0.3.jdk_1

[Edit] revised based on suggestions by Mike Swingler, it now doesn’t advertise capabilities that the SoyLatte distribution doesn’t offer.

Also another version: This simply symlinks to the existing installation in /usr/local/soylatte16-i386-1.0.3/ and doesn’t require anything except copying the result to the /Library/Java/JavaVirtualMachines/ folder.

soylatte-103-symlink

Posted in General | 1 Comment

Mac OS X will still have Java in the future.

There has been lots of stuff written recently about how Java on the Mac has been deprecated.

The reality is that one particular Java runtime has been deprecated: the one that Apple write themselves. Java as a language will still be available, only it won’t be Apple that writes it and possibly it might be an optional download.

The confusion is because up until now there has really been only one Java runtime on the Mac, which Apple wrote themselves using code licensed from Sun. Now Apple has chosen to discontinue their own particular runtime, but this doesn’t mean that there won’t be any Java at all.

There are already alternatives, in particular the OpenJDK and SoyLatte variants; a little rough in places possibly, but they definitely work. Undoubtably in time they will improve and others will appear, including possibly an Oracle one.

Obviously it would have been nice to have the deprecation notice and an endorsement of another runtime made at the same time, but given how long it will be until the current runtime becomes unsupported, I’m not terribly concerned.

Also, whether such a future Java release has a native visual appearance is not of virtal importance. While the Apple Java team has made enormous efforts to get it to look and feel native, it takes quite a bit of work to create an application that looks seamless. The very first version of SQLEditor was a Java Swing application and although it looked fairly good, it was taking too much time making things match exactly. Switching it to a native cocoa application made my life much easier (but killed off any immediate hopes of a Windows version)

I think most people accept that Java Swing apps don’t look native and will accept that the visual appearance will differ.If you want a truly native feeling Java app in the future you should look at SWT or better Rococoa, not Swing.

What is important is that future Java runtimes don’t require X11 for Swing. But I’ve seen good progress by several projects towards this goal and I’m not worried about it either.

Ideally of course, Apple would release their Java Runtime as open source, but whether they are in a position to do that with respect to licensing is unclear.

Having seen the deprecation notice last week and been somewhat concerned, I’m now fairly confident about the future of Java on the Mac,

Posted in Computing, Macintosh, Writing Software | Tagged , , | Leave a comment