Category Archives: Mac

Mac OS: Stop desktop cluttering caused by ThunderBird

As you’re reading these lines, you’ve been probably affected by annoying bug in ThunderBird related to dealing with attachments.
I’ve published this post just to sum up my google findings on one place – details described f.e. here.

Scenario is easy – when you open an attachment directly and have a helper application assigned (like MS Word for doc), given file also gets stored automatically on desktop. There is no option effectively affecting this behavior currently available , so your desktop can get quite messy after a while.

You have two options here

  1. Auto delete of temporarily opened files on ThunderBird exit

    Create and set to true browser.helperApps.deleteTempFileOnExit in TB configuration

  2. Change the download directory via different application

    Safari 2.x should work for Mac OS 10.4, whereas Camino works for Mac OS 10.5

NetBeans bugs/misconceptions list

Note: This post has been created a few days back, so needn’t necessary reflect the current status of NB 6.1 beta. In fact, I would be more than happy to be blamed for being “lama” with the lack of knowledge of this and that killer feature of NetBeans…

As Jiri Pisa recently became a true fan of ruby, we started to discuss this language almost every day. I summed some of our findings related to the best ruby editor currently available – NetBeans. Note, that the list is not ruby specific only. I will keep updating this list until NetBeans is perfect. :)

Domain: Setup

- on Mac: if you turn on Eclipse key binding it’s Windows one not Mac OS one

- keyboard shortcut card (pdf) is static – default Windows eg. doesn’t represent the current status. Looks like somebody made his life easier. :P

- no setup filtering aka Eclipse – difficult to find the setting (example: try to change key mapping for “Format”)

Domain: Ruby editor

-caching of context help – shows even deleted classes/attributes in content assistant

-quotes pairing madness – duplicates the second quote when closing the first one

missing features

-content assistant in script/console – example: Foo.column_names

-refactoring – file rename – update require clause when changing ruby file name

More to come….

JetCast numero 4

Posledni dobou ziju za 3, pracuju za 5 a parim za 0.1, takze uznate, ze nemam prilis casu na kvalitni plnohodnotne posty, na ktere jste si zde postupne zvykli. JetCast je jednou z veci, ktera me opravdu bavi, proto urcite zkontrolujte posledni dil, venovany novinkam a nasemu olympionikovi ve windsurfigu Tomasi Malinovi. Enjoy!

Epizoda 4: Dymkovy tandem!

Apple jede

Takze vcera probehla monstrozne ocekavana keynote Steve Jobse, ktery tradicne kazdy rok ohlasuje nove produkty. Tento rok to nebylo takove preklapko jako loni (iPhone), i tak to rozhodne stalo za to. Ohlasen byl MacBook Air (vykonny subnotebook), Time Capsule (N wifi access point + harddisk), Apple TV 2, pujcovna filmu pres iTunes, kdy s Apple spolupracuji vsechny velke filmove spolecnosti a 1.1.3 pro iPhone.

Apple jak se rika ownuje zejmena z duvodu Continue reading

Java 6 Developer Preview a Eclipse 3.3 nejsou na Macu kamaradi

A duvod je ten, ze SWT vyuziva Carbon(C++), ktery v Leopardu uz neni k dispozici v 64-bitove verzi, pro kterou je naopak zkompilovana prave Java 6 od Apple. Na prepsani do Cocoa (Objective-C) se intenzivne pracuje v ramci projektu SWT (napr. Hacking at Apple). Takze v soucasne dobe skoncite pri startu Eclipse s podobnou hlaskou:

_NSJVMLoadLibrary: NSAddLibrary failed for /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Libraries/libjvm.dylibJavaVM FATAL: Failed to load the jvm library.

Kdybych se mohl vrhnout na IDEAu, udelam to.

My new personal VCS – Git

For some while I was looking for some handy VCS tool without unnecessary configuration burden. I started with SVN, but recently came across Git . Git is a tool utilized by Linux folks (originated by Linus Torvalds), supporting distributed VCS paradigm. Torvalds motivation follows:

When I say I hate CVS with a passion, I have to also say that if there are any SVN (Subversion) users in the audience, you might want to leave. Because my hatred of CVS has meant that I see Subversion as being the most pointless project ever started. The slogan of Subversion for a while was ‘CVS done right’, or something like that, and if you start with that kind of slogan, there’s nowhere you can go. There is no way to do CVS right.

If you’re new to DVCS and know czech, you can read an introduction written by one famous czech blogger Dagi Pichlik. (Btw Git homepage is hosted in czech domain.). The basic idea is that each contributor has his own local repository and propagates his changes to repositories of his colleagues and optional central repository (Integrator).

What is kind of hidden behind the DVCS curtains is the fact, that git alone is (maybe) the most powerful cmdline vcs tool currently available. I was really impressed seeing all possibilities especially history queries like

git log –since=”2 weeks ago”

Git also comes with handy visualiser gitk, which provides view on existing branches, merge points and search capabilities.

picture-1.png

DVCS support is again very straightforward, commands for cloning (creates a new repository) and pulling changes from other contributor are simple as they should be (forget CVS switch hell). Creating of branches and merging back is a question of 3 words command at max.

Remote repository can be accessed either by ssh, git native protocol, rsync or http.

Killer features are out-of-box support for cvs and svn repository import, git-svn command (one can work with SVN the git way), stash function (saves the current changeset, restore the actual working copy for another changes and revert back to previous changeset – very handy for adhoc spot fixes) etc.

Where to start:

Git homepage (Git sources)
Installation Linux, Mac OS

Tutorial

Small gotcha I faced during the installation:

checking for C compiler default output file name… configure: error: C compiler cannot create executables

assembler (/usr/bin/../libexec/gcc/darwin/i386/as or /usr/bin/../local/libexec/gcc/darwin/i386/as) for architecture i386 not installed

This was caused by previous wild installation of XCode and fixed again by reinstallation of XCode 3.0. :P

Java 6 on Macs

In case you’ve not noticed, there is a port of BSD OpenJDK available for Mac OS called SoyLatte.

SoyLatte is initially focused on supporting Java 6 development; however, the long-term view far more captivating: open development of Java 7 for Mac OS X, with a release available in concert with the official Sun release, supported on all recent versions of Mac OS X.

Steve Jobs jede

Napriklad jeho odpoved na narknuti ohledne arogance nema chybu. :)

I’m just so sick of being told that I’m arrogant. I’ve been hearing this all my life. I’m not arrogant. I’m smarter than everyone else, and I have better taste. That’s not arrogant. It’s just true.

Klickovani na Mac OS – posta a kalendar

Coby postovniho a rss klienta jsem si v Mac OS zvolil Thunderbird. S tim jsem si na sebe usil bitch ohledne indexace zprav a integrace s iCalem. Aby mi Spotlight/Google Desktop indexoval zpravy v Thunderbirdu, je nejprve nutne vygenerovat soubor per zpravu. Howto je napr. zde.

Jako kalendar jsem zacal pouzivat nejprve iCal, ale pak jsem presel na Lightning, protoze jsem hledal neco integrovaneho s Thunderbirdem. Uz samotny import iCal kalendaru se povedl tak napul (spatna jmena kalendaru, nektere eventy se neprenesly). Nakonec jsem se s Lightningem rozloucil pote, co nechtel posilat emaily s danou eventou. Nyni jsem zpatky na iCalu, ktery mam obousmerne integrovany s Google Calendar pomoci pomerne kvalitniho (zatim) Spanning Sync (iCal by default umoznuje jen pullovani kalendare z Google, ne push/edit). Za tento programek se plati 25 $ za rok, coz je dost dlouha doba, na napsani vlastni jednoduche synchronizace…