Tag Archives: Mac OS X

Graphication on OS X (with pycairo)

I’m working on some visualizations and I want to achieve the look of Last.fm visualization lastgraph3:


The great thing about this is that Andew Godwin, author of the site open sourced the underlying library – Graphication.

Since I’m an OS X user, I decided to make the whole thing work on my system – Leopard 10.5.6 at the time of this writing. Here are the notes, mostly for my reference and because it might be also useful to others:

Get free XCode from Apple: http://developer.apple.com/

First build and install pkg-config from: http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz

Then install libpng and libjpeg libraries: http://ethan.tira-thompson.com/Mac%20OS%20X%20Ports.html

Build and install pixman from: http://www.cairographics.org/releases/

Build and install cairo from: http://cairographics.org/releases/

Build and install pycairo from: http://cairographics.org/releases/

– you’ll need to edit cairo/Makefile.in file by modifying parameter _cairo_la_LDFLAGS (around line 215) to remove ‘-export-symbols-regex init_cairo’
(thanks Michael Dales)

Build instructions:
– just follow INSTALL file. Essential running:
./configure –prefix=/System/Library/Frameworks/Python.framework/Versions/2.5 (sys.path for my system)
and then make && sudo make install

Now you can finally build and install Graphication package 🙂

All the installations steps are just ./configure && make && sudo make install and just work out of the box. I already have Python PIL installed from sources and I think you need this for one of the steps, but I’m not sure anymore for which one.

After you go through all the steps, you can start drawing something like that:

Simple visualization
Simple visualization

Now to figure out how to create something meaningful with it.

Reblog this post [with Zemanta]

Spore, Cider and Mac gaming underground

One of the most hyped up releases of this fall, as definitely Spore, a game where you played evolution and evolved the species from a few cells up to the whole galaxy. The exciting thing about it, was also that it wasn’t only a PC release, but that Maxis released also a Mac version.

Image by Zenat El3ain via Flickr

People tried it out, decided that it didn’t live up to the hype, and moved on to the other games. A typical life of a computer game.

Yet in case of spore, something more stayed behing – latest release of Cider technology, a portability engine that allows game developers to port their PC games using Wine-fork technologies to run on OS X. They say it so nicely with their buzzwords:


TransGaming‘s Cider™ Portability Engine is a proprietary technology that allows PC games to be enabled on Apple’s Intel Macs without the traditionally expensive and arduous need to redevelop a game from the ground-up. Cider acts as a “wrapper” around the PC game dynamically translating PC API calls to the Mac OS X operating system. As such, games can be enabled with Cider in a matter of days to weeks as opposed to the typical man years that traditional development takes. Source

Sadly, not all PC publishers decide to use Cider to port their games over. That’s why the Mac underground community decided to take the matter in their own hands. If you know where to look, you can already get ports of most popular PC games, running on Mac (together with CD check removal and similar annoying little features).
I’m not comfortable, with linking to any of the warez communities, but if you happen to be visiting one and see a description – “Cider Port” – this means that someone took Cider tech and applied it to this game. It has also annoying side effect that it requires OS X 10.5 and Intel chipset.
kreidebergsee lueneburg
Image by manfred-hartmann via Flickr
There’s also a positive aspect of this. If someone made it work with Cider, there’s a high chance that you can run it on Linux, using Wine or Cedega.


Reblog this post [with Zemanta]

Kako povezat Maca preko Orto Beri z Internetom (Blackberry Si.mobil tethering)

English: Instructions configure Si.Mobil Blackberry Curve to allow Mac OS X to connect to Internet. Guide in Slovenian language since it’s most useful for Slovenian. For English speakers, here’s a great guide.
Zgodba je čisto preprosta. Po nakupu novega Macbooka, ste ugotovili, da rabite Å¡e dober telefon. Ker v Sloveniji ni mogoče kupit iPhone, ste se odločili za naslednje najmanjÅ¡e zlo – Orto Berry. Sedaj ste ponosni lastnik BlackBerry 8310 oz. Curve po domače. Kdor ni prepričan, da ima pravega – tule je slikca:
Blackberry Curve
Image by evansfam via Flickr
Tule je hiter vodič kako ta Blackbbery prepričamo v delovanje na OS X 10.5 oz. Leopard po domače.
Pa pojdimo po korakih:
1. Povežite Blackberry z vašim Macom. To naredit tako, da v Bluetooth nastavitvah v System Preferences, dodate novo napravo in izvedete pairing process.
Na koncu vas bo čakala takšna situacija:
Paired Blackberry modem
Paired Blackberry modem

2. Naslednji korak so Modem skripte. Iz Fibble.org si prenesite zadnjo različico. Prenesene skripte morate skopirat v Macintosh HD:Library:Modem Scripts v direktorij BlackBerry.ccl

3. Nadaljujemo z dodajanjem modema. V System Preferences -> Network, kliknite spodaj levo na plus gumbek in dodajte Bluetooth modem. Poimenovanje ni pomembno.

4. Nastavitve Bluetooth modema:

Najprej moramo Bluetooth napravi povedati, da uporabljamo Blackberrya:

Advanced -> Modem

Vendor: Research in Motion,

Model: Blackberry 8100 (dovolj podoben 8310, da deluje brez sprememb).

Ostale nastavitve pustimo nespremenjene.

5. Nastavitve operaterja

Telephone number: internet.simobil.si

Account name: simobil

Password: internet

Nastavitve Blackberry modema
Nastavitve Blackberry modema (geslo: internet)

Ostanem nam samo še, da kliknemo Connect in opazujemo kako se vse skupaj poveže.

V praksi mi je uspelo doseči hitrost okoli 7kb/s tako pri downloadu kot uploadu. Upoštevati morate tudi, da z Orto Berry paketom dobite samo 100 Mb podatkov, kar se pri mobilnem surfanju hitro preseže, tako da je redno preverjanje stanja na začetku nujnost.

V primeru težav

Če se iz neznanega razloga vse skupaj noče povezat, lahko v Advanced -> PPP -> Settings: Configuration -> vklopite Verbose logging. Nato pa s pomočjo Application:Utilities:Console opazujete kaj se dogaja pri povezavanju. Žal stvar ne sporoča kaj dosti, ampak morda boste uzrli kaj zanimivega med dnevniškimi datotekami.

Reblog this post [with Zemanta]