30 November, 2007

Make iSync to support K530i cellphone

I recently got myself a new Sony Ericsson cellphone (not too fancy but still a new model). Guys form the EMT store doesn't know anything about Mac so they couldn't promise me then K530i will sync at all. So toke the challenge and purchased it anyway.
When I first started iSync and tried to add new device, it found my phone, but alerted me that this model is not supported. And the solution was more simple than I could imagine - just need to modify some XML and iSync gets smarter. Hit was on the blog http://www.bermione.be/2006/09/20/isync-a-sonyericsson-k510i-please/. Although the article was about K510i, the same approach worked for K530i. All you need to do is replace model number. Works like a charm.

To make it more simple:

Open file: /Applications/iSync.app/Contents/PlugIns/ApplePhoneConduit.syncdevice/Contents/PlugIns/PhoneModelsSync.phoneplugin/Contents/Resources/MetaClasses.plist

Add text:

<key>com.sony-ericsson.K530</key>
<dict>
<key>Identification</key>
<dict>
<key>com.apple.gmi+gmm</key>
<array>
<string>Sony Ericsson+Sony Ericsson K530</string>
</array>
</dict>
<key>InheritsFrom</key>
<array>
<string>family.com.sony.ericsson.syncml-phones-2005.bt</string>
</array>
<key>Services</key>
<array>
<dict>
<key>ServiceName</key>
<string>com.apple.model</string>
<key>ServiceProperties</key>
<dict>
<key>AlternativeNames</key>
<string>K510i</string>
<key>ModelIcon</key>
<string>SEK750.tiff</string>
<key>ModelName</key>
<string>K530</string>
</dict>
</dict>
<dict>
<key>ServiceName</key>
<string>com.apple.synchro</string>
<key>ServiceProperties</key>
<dict>
<key>NbrEmailPerContact</key>
<integer>3</integer>
</dict>
</dict>
</array>
</dict>

24 August, 2007

Handling error messages using AOP and annotations

http://www.thearcmind.com/confluence/display/SHJFT/Handling+error+messages+using+AOP+and+Annotations

18 August, 2007

Create CD/DVD image with Mac OS X Tiger

As a former Windows user i tryed the sama approach when needed to copy an audio CD. But it turned out that Disk Utility (OS X default bundle) is only capable to write images to CD/DVD. So how can I make image out of CD/DVD. There http://www.slashdotdash.net/articles/2006/08/14/create-iso-cd-dvd-image-with-mac-os-x-tiger-10-4 is quite good tutorial for that.

01 August, 2007

The way to re-install OS X applications

Lets say that you have somehow boken your Address Book application and it's not starting any more. Situation is so bad that the only thing that will save you is re-installation of application. Typically you'll have to install OS X all together but when you use Pacifist you don't have to do that. Pacifist let's you browse OS X installation CD or DVD so you can install these apps with no sweat.
Belive me - I have walked this path to heaven.

13 April, 2007

Oracle client on Mac OS X

Here is a short step-by-stem guide how to install Oracle client (SQLPlus) onto you Mac machine.

1. Download instantclient-basic-macosx and instantclient-sqlplus-macosx from http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/macsoft.html

2. Unzipped them in /usr/oraclient

3. Set the DYLD_LIBRARY_PATH to /usr/oraclient

4. Add tnsnames.ora file into /usr/oraclient

5. Set TNS_ADMIN=/usr/oraclient

..and its done.

For more confortable useage you can place those environment variable envaluation into your .profile
and also inglude /usr/oraclient into PATH env.var.

04 April, 2007

Installing SUSE 10.2 (x86-64) & Oracle XE server

Some days ago me and Alan spent many hours installing SUSE 10.2 (x86-64) and Oracle XE server. Installing SUSE was no big deal until we started with Oracle XE server. I would like to point out 2 major mistakes we made.

Oracle installation requires libaio library. We assumed that x86-64 version of this library will do the trick, but we where very wrong. Installation was completed with no errors, but when we started to connect to database SQLPLUS kept throwing errors about wrong TNS and stuff. The real solution was in re-installing Oracle XE with 32bit libaio library.

Second rock on out smooth ride was that when installing Suse we didn't think that swap size really matters. We thought that 600MB would be enough but no. Oracle XE demanded that swap size must be at least 804MB. And we started all over again. A whole lot of fun.

P.S when you are in a hurry and you have a rather slow Internet connection, leave SUSE online update on the time when you have nothing else left to do.


Using tnsnames.ora with Oracle XE client

When installing Oralce XE client for Windows tnsnames.ora is not created by default, though it is pretty convenient way of connecting to database.

First, you have to add the variable TNS_ADMIN to your Oracle configuration in the registry.

Start regedit and go to HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_XEClient.

Then add a new string named TNS_ADMIN. Set the value to the directory where you want to store the tnsnames.ora file.

tnsnames.ora file looks something like this:


XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)