Quick hack: Samsung SGH-F400 and iSync

Posted by matt
on Friday, August 08

Warning: this is properly hackerific!

I just got a Samsung SGH-F400, instead of what I really wanted (an iPhone), because Orange dropped my line rental so much to get me to stay.

It arrived today, and one of the first things I tried, was getting it to sync, with iSync. Which didn’t work.

I got a copy of the novamedia plug-ins, for my SGH-D500, so I’ve plenty of Samsung plug-ins laying around, but not one for this. so I decided to see what a bit of quick hacking would do for me.

Here’s what I did:

  • Fire up a terminal, and navigate to /Library/PlugIns, there are rather a lot of things in there.
  • Now open up Samsung-F490.phoneplugin. This is just a bundle, so in my case, I just did: mate Samsung-F490.phoneplugin to open in it as a project in TextMate.
  • Open up MetaClasses.plist, go to line 11 and duplicate it. In TextMate you can hit ⇧⌘L 11, then ⇧⌘D to do this.
  • Change the 490 to 400.
  • That’s it.

Now if you make the phone discoverable, and enable secure mode, you should be able to add it to iSync, and copy your contacts across. The icon will be wrong, but it works!

Forget droplets, use Dterm!

Posted by matt
on Thursday, January 17

A few days ago, on one of my regular del.icio.us/popular procrastination research trawls, I discovered DTerm, a HUD style, context-sensitive, drop down command line thingemy. It’s pretty cool, with useful features like ‘insert selected items’, and ‘copy results’ and after a couple of updates I can see it being totally great.

Here’s a quick screenshot: Dterm

I’d recommend taking at look at their site for a more complete screencast with some useful ideas.

If you’ve previously used droplets for things like launching TextMate, this might be perfect for you, since instead of having to click, you can just bash the hotkeys, and type mate letter.tex or whatever. You could also dispense with the open terminal here droplet all-together. I’m thinking of trying to hack the glob select droplet (above) to work from the command line as well, but I’m not sure how easy that will be.

Here are a couple of other ideas I’ve had:

  • du -shx ⇧⌘V – to view the size of the currently selected items (works in finder/textmate/etc.).
  • open . – to view the current directory in finder.
  • ⌘↩ – on it’s own to fire up a Terminal in the current working directory.
  • Basically, most things you’d normally switch to the terminal for, you can do with DTerm.

Since I use zsh instead of bash, I found (after talking with Decimus’ support) that I need to launch Dterm using:

env SHELL=/bin/bash open /Applications/DTerm.app 

Otherwise it’ll use zsh, which stops tab completion from working properly. Using this method, you could also pass other options, such as TERM, which DTerm doesn’t currently set itself. The command I’m using at the moment is:

env SHELL=/bin/bash TERM=dterm open /Applications/DTerm.app 

Give it a try!