ctags with objective-c and css support

The default ex-ctags package does not support css or obj-c tags.

I added the latest css and objective-c patches I could find to the current ctags trunk.

You can find it on my github page here

HTH

3G-Modding your eee 1000he hackintosh

As some of you may know I’ve been using snow leopard on my eee 1000he for quite a while(You can still get the modded DSDT I use on my system from my github page)

Here’s a list of items I got myself:

  • a sim card(yeah, you’ll laugh, I actually forgot about this part… :P)
  • a 3G minipci card. i used an Option 378 which is quite cheap. I will explain later… Some people use a sierra wireless mc8775
  • a minipci socket, for example this one from farnell
  • a sim slot 8 pin

I won’t cover the details on soldering the sim and minipci socket as it’s explained on the eeepc user forum

A word of advice before trying to solder the sockets onto the board. You might wanna scrape of the surface of the solder pads on the mainboard first, as that will make it easier for you.

As described on the forum post you’ll need to short the 3.3V line the USB lines and a fourth one for powering up the minipci socket aside from soldering the sim slot.

The images below are a courtesy of dementho from the eee forums:

The real issue arose when I actually tried to initialize the card in MacOS. Turns out the Option cards start in ZeroCD mode and need to be initialized in modem mode prior to be usable. Well, normally you would just install the driver and be done with it but not so with normal unlocked GTM378 cards you buy on ebay.

My GTM378 card came with an old firmware. So the vendor id was 0×5c6(qualcomm) and product id 0×1000, whereas the vendorId should be 0×0af0(Option NV). Naturally the Globesurfer 7.2 osx drivers don’t work with this device. Not even if you hardcode the product and device id into the drivers plists.

The solution is to debrand your GTM378 by finding the superfire firmware of any GTM378 card and patching it to accept your card as target. That is Globesurfer ICON 7.2 and a whole bunch of others. The firmware I have here is 2.5.11hD I think.

Enable logging in the updater:

  8.144: CPagePreparation::Do, Zaltys detected properly
 14.618: CPagePreparation::Do, product:  GlobeSurfer ICON 7.2 E.
 14.618: CPagePreparation::Do, code:  MO0201-10959.
 14.618: CPagePreparation::Do: unsupported card (MO0201-10959).
MO0201-10959 is your target. search for
5400610068006f006d0061
which is essentially Tahoma in hex. The second occurance should lead you to your target. See below:

Open the installer in a hex editor and write your card id in the installer. I uploaded the firmware here. That should allow you to upgrade your card without problems. After that you can download the snow leopard drivers from the ICON 225 support page

Ironically they work fine with the GTM378 and fix a lot of issues the GTM378 and ICON 7.2 drivers have(since they’re essentially the same just newer).

HTH

... as for me, I’m enjoying the 3g mod on my hackintosh!

rabbitmq erlang crash

So, we’ve been at the reboot:http://reboot.dk for a while now and it’s been a fun time until I decided to rename one of the nodes.

Guess what… suddenly rabbitmq stops working. Apparently the database stops working, when you change your hostname. Just running:

rabbitmq-server --install

will still crash with the same error.

The solution is to delete:

rm -rf /var/lib/rabbitmq/mnesia/rabbit

and rerun rabbitmq install.

rabbitmq-server --install

HTH

awesome with gentoo-prefix

I just updated a whole bunch of ebuilds for gentoo-prefix you can find the overlay here.

Just clone it and put it somewhere in your $EPREFIX/usr/local/portage then add that folder to your make.conf

In my case the make.conf looks as follows:

USE="unicode nls ruby perl xterm-color X"
USE="$USE xcb svg"
USE="$USE png jpeg mmx bzip2"
CFLAGS="-O2 -pipe -march=nocona"
CXXFLAGS="${CFLAGS}"
PORTDIR_OVERLAY='/opt/local/gentoo/usr/local/portage/my-overlay'

Then simply doing a:

emerge hsetroot
USE=osx emerge awesome rxvt-unicode

Instead of USE=osx you could also do a:

mkdir -p $EPREFIX/etc/portage/package.use
echo 'x11-terms/rxvt-unicode osx' > $EPREFIX/etc/portage/package.use/rxvt

Anyway, that should be enough to install awesome 3.2.1 and rxvt-unicode with copy&paste support for osx.

gentoo osx

Update: I also forgot to run the emerge -u world after the bootstrap. So you might want to do that yourself.

Update2: if libXt fails to build try

emerge '<automake-1.10'

So, I was growing more and more tired of fink and macports and hoping that there something portage like for osx.

I looked around and found this article on gentoo-macos, which seemed bad. But after a quick visit in the #gentoo irc channel it turned out that gentoo-mac had been merged into gentoo prefix.

There is a nice tutorial on getting gentoo-prefix running on macosx. It’s pretty straightforward…

However, to save you guys some compilation and setup time, I packaged my “somewhat stage3” of the gentoo folder and uploaded it. You can download it here. It contains pretty much the base system and also mysql5, git, svn and git-svn. No ruby but just emerge it as you please.

Extract it and put something along these lines into your shell config:

export EPREFIX="/opt/local/gentoo"
export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH"

I know /opt/local/gentoo wasn’t such a wise choice but well whatever.

A couple of caveats:

  1. You need to be on leopard with a core2duo with my package
  2. glib doesn’t get paste the automake on my system(which is obviously bad). However, looking into it. UPDATE if it still doesn’t work just emerge gtk-doc-am
  3. Seems like xcb is masked. Will let you know if I find out why UPDATE xcb works fine
  4. pango doesn’t detect Xquartz cairo. Ie. gentoo portage is not as tolerant as macports using pkgconfig files from whereever they’re installed on your system. Don’t get me wrong, this is actually a good thing. I’ll make an ebuild in time I guess. UPDATE no problem either, the pango package was broken, but its fixed now

Another useful link for ‘creating’ your own packages with ecopy is available here. For the tutorial on that page you will also need to install(emerge) the following:

emerge portage-utils
emerge gentoolkit-dev

Oh and… I think it’s already emerge’d in the “stage3” I uploaded…

hope you like it. I know I do.