Archive for mac
I’m stuck with a whole bunch of problems getting code to compile and co-operate nicely on my new MacBookPro. I’m compiling my own PHP, but it defaults to compiling for the i386 (32bit) architecure, which then fails when Apache2 running in 64bit mode tries to use the 32bit DSO for PHP5. Compiling PHP5 as 64bit then fails linking against the i386 pgsql lib, and so on. I really need everything using the x86_64 architecture.
How does this all relate to readline under Leopard?
Read the rest of this entry »
Technorati Tags:
10.5,
apple,
architecure,
compile,
i386,
intel,
leopard,
mac,
readline,
unix,
x86_64
December 19, 2008 at 12:04 · Filed under mac
I use iChat, Adium and Skype all at the same time. I was looking for a quick way to change the status of all three of them with one fell swoop.
Looking at what other people had written I came across a good example at Jason Kenison’s blog. He had implemented a method whereby you select Away or Available and then the script will change the status of all three. It worked for Skype and iChat but not for Adium.
Read the rest of this entry »
This post does not show a successful outcome in case that’s what you where hoping for.
I was trying to get OpenBSD bootstrapped using the PXEBoot NIC in a server. I decided to use my Mac which has tftp and bootpd installed. This post is quite in depth and technical so if you are game then read on.
Read the rest of this entry »
I love the new MacBookPro, but the trackpad clicks so loud that people on public transport stare at me. I’m not the only one with the issue.
An enterprising user on the Apple Discussion forums remembers a similar problem and fix for the trackpad from earlier MacBook models. The fix in this case involves removing your battery and sticking a piece of paper between the pad and the chassis. It works, and here is my solution captured at the moment of repair:

Enjoy.
So you have a pattern you want to match across multiple lines, and you have a regular expression that matches it.
You will probably be used to doing this in perl like this:
/some.+?stuff/s
or using regex in ruby like this:
/some.+?stuff/m
However you have just started to get used to Textmate as an editor and you see it supports regex matching. Why though does it not use /s or /m for multi-line dot matching? The reason is that Textmate uses the Oniguruma regular expression library. Oniguruma requires switching to multi-line mode by using an extended group (?m:) so the dot matches the new line as well. So our pattern would be:
(?m:some.+?stuff)
Essentially doing this turns multi-line on for the sub-expression, being some.+?stuff
Make sense? I thought not. Read on about Textmate Regex for more information.
Next entries »