Index syndication
comment syndication

Archive for tech

iPhone 3GS announced

The new iPhone 3GS was announced yesterday at WWDC. The main changes are in the hardware. The differences are now:

  • 32GB Option
  • 3 Megapixel camera with autofocus
  • Video Recording capabilities with upload to Youtube function
  • Voice Control
  • Compass

The other new features coming to the iPhone such as:

  • Cut, Copy & Paste (about time!)
  • MMS and contact send/receive via SMS
  • Bluetooth transfer and A2DP support
  • Data tethering to your laptop (USB or Bluetooth)
  • Spotlight Search
  • Landscape keyboard across all apps
  • Voice Memos

will be available on the current iPhone 3G, the iPhone 2G and included oin the new 3GS. A free software upgrade to Version 3.0 of the firmware will be ready for download to the public June the 17th.

For the die-hard Apple fanboys, a Quicktime stream of the keynote speech given by Phil Schiller is now online.

Leopard, Apache2 and MySQL

MacBook Pro
I’ve just cloned this blog to a development version on my Macbook Pro. The Mac has Apache2 installed by default, so I just had to get mysql working.

Downloading MySQL and installing on Leopard is a breeze with the native package.

I migrated my database (dump/restore) and recreated my wordpress user, but still kept getting this error:

Error establishing a database connection

The user could log into the database from the console as shown:

lantrix@lexx:~ $ mysql -u wordpress -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 19
Server version: 5.1.34 MySQL Community Server (GPL)
 
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
 
mysql> use wordpress;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
 
Database changed
mysql> show tables;
+-----------------------------+
| Tables_in_wordpress         |
+-----------------------------+
| sk2_blacklist               | 

So what is the problem?

Google provides an answer, with a log lived post from My Macinations providing the solution. It’s all to do with correcting your php.ini with the proper MySQL socket location.

Now, back to testing my new version of the Twitter Tags wordpress plugin. #hashtags now work!

Using your MacBookPro to PXEBoot OpenBSD

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 »

Technorati Tags: , , , ,

Switching to multi-line mode using Textmate Regex

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.

Podiobooks

7th Son - Book 1

A Podiobook is an Audiobook delivered via a podcast. Evo Terra coined the phrase back in 2005 when podcasting was in its infancy. 2005 you say? Well sometimes I take a bit of time to come around to something good.

I’ve started listening to my first one. Descent – Book one of the 7th Son series by J.C. Hutchins (click through on that link to start listening to it as well).

The cool thing about this is when you sign up (instead of just subscribing to the feed I linked above) you can actually set how often the audio chapters get released to you. One a day or longer – and best of all it is Free!!! Well if you like the book you can and should donate an amount to podiobooks, and the author will get 75% of your donation.

Stuck on a train 3 hours a day? Run out of podcasts? Sick of your Music? Try a Podiobook.

Next entries »