2008 was a pretty busy year — a lot of things happened that made it quite a ride. I thought I would take a moment to go over some of the more notable events that have occurred in the last 366 days.
UPDATE: It took me almost three months to realize that last year was a leap year. My apologies to 02/29!
Continue reading “» Year in review: 2008”
In case you weren’t already aware this site or blog, whichever you prefer, is running on Mac OS X Leopard 10.5.2 (not server) and is powered by the WordPress blogging engine. Because this site is running on a simple Mac mini with Apache enabled the project is extremely “DIY” and as such I have had to figure it out as I go along. No fancy hosts or one-click installs here, everything has been extremely manual; except, of course, the Famous 5 minute WordPress Installation!
One hurdle I have had to overcome is being able to use pretty permalinks to make my site more friendly. Permalinks (short for permanent link, get it?) is a static URL to some content on a site. That content can be a specific page, a particular article/post, or a collection of posts within a certain category.
By default WordPress’s permalinks follow this format: http://somesite.com/index.php?p=1 and unfortunately that format is just plain ugly. Having a pretty permalink like this: http://somesite.com/2008/01/01/sample-post/ means hyperlinks on your site and around the web will be more attractive and usable to others.
Read on if you want to know my story about the trouble and success I had with getting pretty permalinks working on my site.
Continue reading “» Now Featuring Pretty Permalinks!”
In case you haven’t been following along during this journey of mine I’ll go ahead and spill it out for you – I have no idea what I’m doing with this whole “blog” thing. However, I am learning a LOT… It seems everytime I make a change something breaks and I get to learn how to fix it.
Well, today, I finally passed another milestone; one which I have been tinkering with for quite some time. My site is now valid W3C XHTML (transitional) and CSS!! This is something I really wanted and because of my limited knowledge has been slow in coming. I’m very glad that I have reached this milestone as interoperability is extremely important to me. I don’t want to learn/use code that only works correctly in some environments, instead I want to learn things the right way!
If you want to run the test yourself and celebrate along with me you can scroll to the bottom of my page. I have placed links to both the XHTML and CSS validation tests in the footer as a trophy to remind myself of this amazing (to me at least) feat!
It is a breeze to install for anyone running their own site with instructions that are easy to follow. When I ran into a snag and emailed Cabel he responded with the help needed to realize it was my own fault. This alone is quite a feat considering I’m not a commercial user.
According to the site FancyZoom is free for non-commercial sites; however, if your site is of the revenue-generating sort Cabel requests a one-time fee of $39 / site.
Feel free to peep the demo (click the thumbnail) I have set-up below or visit Cabel’s site here to intall it yourself!
When I was first setting up wordpress on my Mac mini (which as you’ll recall is on my dedicated DSL line) I ran into a problem using the dynamic DNS name I had set-up. With wordpress when I wanted to visit the site from inside my LAN it would automatically re-direct to the location of the set determined in settings. This caused a problem because that location pointed to my dynamic DNS which in turn pointed to my WAN IP address and well as you can imagine wordpress go boom.
My temporary workaround during installation and initial set-up was to ignore this entirely as I was only working on the site from home. This was short-lived as I realized I had a life and wanted to work on the site when not sitting in my home office. Oh, yeah, and I guess I wanted the rest of the internet to have access as well – I suppose that was a factor as well.
What I ended up doing was using two hosts files, one that had the following line:
and another that had that same line commented out:
To quickly switch back and forth I used two shell scripts, set to open by default using Terminal, that copied a “home.hosts” or “away.hosts” file on top of the hosts file. (FYI, in Leopard, this file is located at /etc/hosts) This worked great and was easy enough, but it didn’t have the panache that I was looking for in this situation.
The final solution that I worked out is really everything that I want (unless you include my desire to have this site hosted elsewhere) given the situation. What I ended up doing was taking a crash course on AppleScript and writing an application that would simply ask me whether I’m home or away and act accordingly. Interestingly I was able to give the shell script root privileges which is required to make changes to the hosts file. For anyone that is interested I have pasted the syntax of the script after the jump.
Continue reading “» Hosts file issue”
I figured out the theme had a built-in search widget that I needed to use rather than the standard wordpress widget. Using that widget fixed my gripe with the search widget being ugly. I also did some more CSS tweaking (mostly just colors).
I also found fixed a bug where empty search results weren’t calling the footer so the whole page looked somewhat off-kilter. Ugly.
Today was also exciting in that I dove into the uncharted waters of PHP! I played around with the post header/footer and was able to finally get what I was after. I moved the post author to the footer and I got the full date in the footer as well.
All in all it was a very productive day!
Utilizing my EXTREMELY limited (non-existent) knowledge of PHP I managed to create a Page.php template separate from the Articles.php template. This resolved one of my issues with this theme – specifically, since there was not previously a Pages.php template my About and Contacts pages were simply using the posts template – not attractive.
I also dugg into the CSS a little bit and changed a few colors around to suit my liking. While I was doing that I discovered some sidebar stuff that could (possibly) be tweaked to make it (and my search widget) less ugly. I know a TINY bit more CSS than I do PHP so I stumbled my way through rather than commenting-out random lines and crossing my fingers.
Here are some details about the site that might interest anyone who is curious… Since I am not financially capable (broke) I cannot currently afford paying someone else to host the site. It’s another monthly bill and I would rather buy a house. That being said I am hosting the site on my Mac mini using my business DSL line. Until I get a domain set up I’m using the free and awesome dynamic DNS service. It is particularly nice because for OS X there is a dashboard widget that updates dynDNS of your IP address.
I know you’re probably thinking “oh crap, if three or more people are on this site it’s going to crash” – well, you’re probably right. Actually, I have more faith in Apache, MySQL, and PHP on my Mac mini than I do my ISP’s ability to handle the bandwidth.
I consider this quite a feat because of two points 1) I know almost nothing about most web technologies – the fact is I’m a n00b. But I’m proud to admit it and determined to change it. I think that’s important. The reason this is a feat is because it was incredibly easy to set up using OS X.
The UNIX underpinnings in 10.5 make my Mac mini a fairly robust server for a fraction of the cost of an Xserve. Enabling Apache required me to simply check a box – that’s it. Granted there were a few other steps involved in enabling PHP and installing MySQL; but let’s be realistic, one is going to have to dirty one’s hands at some point.
Please pardon me if I’m sounding too much like a “fanboy”. In all honesty, I would install whichever OS made it the easiest – I’m not afraid of using a Linux distro. or installing Windows on a Mac. The fact is that OS X made it the easiest to accomplish the goals I wanted to accomplish.
OK, this is my first post that has any real value to it whatsoever… So far I have the following issues that need to be resolved:
- Nobody is reading this
- Posts do not have the day of month in the date
- Permalinks are ugly (as in, without alibi)
- About, Contact, etc. pages are using the blog page template and are showing category, date and comment information. Just fixed this one – w00t!
- The overall appearance of some of the elements on page do not look very distinguished. This is noticeable on some (read: crummy) LCD displays.
- The search widget is ugly (see #3)
I’m sure more will become apparent as I get deeper into this – but for just starting out it’s not that bad.
- I’d like to edit my sidebar widgets so they appear to be separate boxes form each other. I want them to have rounded corners, and ideally, be collapsible.
- I want some widgets on the bottom of the page. Recent posts, maybe my Flickr photostream, etc.
- I need to register a domain as well. I’ve heard good things about 1and1 but right now it’s not in the cards (i.e. bank account = empty)
If anyone happens upon this post please feel free to hit up the comments to offer any suggestions or notify me of bugs you find. I’m taking a kind of continuous improvement approach with this so hopefully with a little luck, a few magic beans, and some late-night geekery I will have a decent site up soon.
Suddenly I feel less original…