Skip to content

Mobile Dad

Shooting from the hip with a kiddo in tow

Archive

Category: coding

wordpress-mu-logoRecently my team had to move a Wordpress MU instance from a sub-domain to a root directory model.  Oh, for those who do not understand what I just said, Wordpress MU gives administrators the ability to create blogs on the fly for their authors and manage the domain space as either a sub-domain (http://blog_title.domain.com/) or part of the root directory (http://domain.com/blog_title/), read about it here.  After rebuilding the environment and updating DNS with the new domain space, it was time to figure out how to prevent 404 errors from web users who have bookmarked content from the old url structure.  Apache rewrite and regular expressions to the rescue!

Since the only thing that changed is the position of the blog title in the url, you can use Apache rewrite mod to change the url to your liking.  So let’s say your old domain url is:

http://abc.domain.com/posts

and your new domain url is now:

http://domain.com/abc/posts

In your .htaccess file or Apache conf, the following lines will make the above change possible:


Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^abc.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/abc$1 [R]
  • The caret, ^, signifies the start of an URL, under the current directory
  • The dollar sign, $, signifies the end of the string to be matched
  • The dot sign, ., signifies what file extension to grab

There is a lot more you can do.  Take a look at the Apache reference to learn more.

I love the innovation that is occurring in the field of visual application development. The tools we have today allows anyone to jump in and get started with just a simple idea or sketch. You can never really build a custom app without a bit of coding but visual tools provide a great framework to start from. Kind of like training wheels for a new environment. 280 North is demonstrating their new tool called Atlas built on top of the cappuccino framework:

What makes this tool exciting is what MobileCrunch is reporting about iPhone support. There is going to be support for the iPhone SDK that will wrap your Atlas-built application as a native iPhone app, giving you access to the API calls that can not be done in Apple’s Dashcode. This will be a great way for some of the departments at institutions I work with to get on board quickly developing tools to utilize more of the iPhone’s hardware without the stiff language ramp up. I am looking forward to trying out this tool once it becomes available.


Just yesterday, I was talking to a friend at work about my thoughts on the Kindle 2.  Can the new Kindle finally be the go to device for reading any and all materials?  The conversation went back and forth about functionality.  The Kindle just does not add anything new other than the potential impulse buy capability of 3G.  I proposed the idea of an application that can create wikis for text.  So let’s say you load a pdf about philosophy.  Within the text you see other ‘active’ readers of that text.  Numbers next to bodies of text designate notes/thoughts/arguments people are currently engaging.  These notes allow the reader to follow the path to other literary works and provide the ability to capture a person’s stream of thought.  Something like this seems like  a no-brainer app develop on Android but the devices so far are too small and power hungry.  Now it seems we may soon have a device that will allow people to use the benefits of e-ink with the flexibility of Android.  I cannot wait for this to happen, hell I may start coding it this week!  Bob, Stephen, Tommy, you guys interested?

Image from Engadget.com

Image from Engadget.com

It seems a war is about to be waged and the weapons of choice are finger gestures!  Engadget has a great in-depth article on iPhone vs the Pre that deals with patents.  I find it interesting the kind of publicity this is generating.  Think about the players and the communities and see if you prioritize the coolness factor of each major player in mobile tech:

  • BlackBerry Storm
  • T-Mobile G1
  • ATT iPhone
  • Sprint Palm Pre
  • Countless WinMo devices
  • Countless Symbian devices

Based on hype, here is my take: continue reading…

A good friend of mine just emailed me asking why he should get the G1 knowing that I recently switched to one.  Without hesitation, I quickly created two lists, one positive and one negative.  Here is my email response:

continue reading…

Bad Behavior has blocked 287 access attempts in the last 7 days.