shwango! blog
life, love and some other stuff…

Archive for June, 2005

Cool regex stuff…

I was playing around with some regex (regular expression) stuff today and learned about “lookahead” and “lookbehind”.

This expression (?<=\{\{).+(?=\}\}) will return all the characters, numbers and spaces between two curly brackets, but not the brackets themselves.

For example, the string This is {{a test}} of regex returns just a test when the regex is applied.

I also found the Regex Coach which was a great help in debugging the regular expressions.

Getting Fedora Core to work on old Dell box

We have an old Dell Precision 610 workstation that I’m working on setting up as our Asterisk VoiceMail/VoIP box and ran into a snag with Fedora Core 4.

The Fire GL 1000 Pro is detected (correctly) as a 3DLabs Permedia 2 chip, but the DCC probe is screwed up, so I couldn’t set it to more that 800×600 with 256 colors - that blows!

After some Googling, I found that running this command:

system-config-display --set-videoram=8192 --forceui

that lets you tell X that your card has 8MB ram and then I had lots of options. Works great!

References at RedHat’s Bugzilla: Entry 1, Entry 2

I’m a “Cultural Creative”

Just as Aaron posted, I too will use the “World View Quiz” to post something!

cultural-creative.jpg

You scored as Cultural Creative. Cultural Creatives are probably the newest group to enter this realm. You are a modern thinker who tends to shy away from organized religion but still feels as if there is something greater than ourselves. You are very spiritual, even if you are not religious. Life has a meaning outside of the rational.

Cultural Creative

69%

Romanticist

69%

Existentialist

56%

Idealist

56%

Postmodernist

56%

Materialist

50%

Fundamentalist

44%

Modernist

38%