xorg.conf for ATI

This is for ATI Fire GL 5700, but most of them should be fine for any ATI card. In Ubuntu Jaunty this card scores 5000fps in glxgears -info.

Section "ServerLayout"
        Identifier     "aticonfig Layout"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
        Option      "AIGLX" "on"

Section "Files"

Section "Module"
        Load  "glx"

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-0"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        Option      "XAANoOffscreenPixmaps" "on"
        Option      "TexturedVideo" "on"
        Option      "VideoOverlay" "off"
        Option      "OpenGLOverlay" "off"
        Option      "Textured2D" "on"
        Option      "UseFastTLS" "1"
        Option      "BackingStore" "on"
        BusID       "PCI:1:0:0"

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24

Section "DRI"
        Group        "Video"
        Mode         0666

Section "Extensions"
        Option      "RENDER" "Enable"
        Option      "DAMAGE" "Enable"
        Option      "Composite" "Enable"

Config Ubuntu/Linux

# fix apache2 "Could not reliably determine the server's fully qualified domain name", add the following to /etc/apache2/httpd.conf
ServerName localhost

# open fonts folder
gksu nautilus /usr/share/fonts/truetype

# rebuild font cache
sudo fc-cache -f -v

sudo dd if=/dev/zero of=/mnt/swap bs=1M count=8000 (twice of memory)
sudo mkswap /mnt/swap
sudo swapon /mnt/swap
sudo vim /etc/fstab
/mnt/swap none swap sw 0 0
sudo vim /etc/sysctl.conf

Thoughts about some PHP IDEs

Just like everyone else, I’m in perpetual search of my true love best PHP IDE. The reason is simple: you work with it everyday! Hell, many people spend more time with IDE than their friends, family and girl friends. Not me though, because I’m such a social butterfly.

Anyway, the IDEs I’ve tried are:

  • Aptana
  • Komodo IDE
  • Netbeans 6.7 beta

The best syntax highlighting…
Aptana hands down, of all 4 IDEs, only Aptana gives you the freedom to have multiple groups of keywords, for example, highlight built-in functions (e.g. str_replace) differently to your own functions. It even goes to the length to allow customize font for each single built-in function.

The worst syntax highlight…
Man, Komodo IDE really fall behind in this department, offers only one keyword group.

The fastest IDE…
This is platform dependent, but for my experience Netbeans is the fastest.
It basically goes like this: Netbeans on Linux > Netbeans on Windows > Komodo on Windows > Komodo on Linux (WTF?) > Apatana on Windows

Code inteligence
Honestly, to answer this require more time spent on each IDE, preferrably a few weeks of real web development. I spent about a few days to a few weeks on those IDEs, so they are not very fair.
I like the Komodo IDE the most: the common stuff like autocomplete real time syntax checking are all there. What’s really handy is the control key: by holding this key, you can “jump to” the class, for example, if you hold control and click on $foo = new Foo();, it will open Foo.php class and take you there. This is very handy when you are coding the in middle of a lot existing classes. Holding control key over web colors will show you the color in tooltip, which is a very nice touch, too.