I ran across this article on webreference.com, describing how to make REST URL out of a typical HTTP get URL. Looks interesting.
Tuesday, 23 June 2009
How Matt Works
Matt Mullenweg, of Wordpress fame, was featured in an Inc Magazine column The Way I Work. He felt the article left a few things out so he rewrote it on his blog.
Lots of good stuff here. Comments on everything from his workspace, to how he spends a typical day. One point he makes that I really is agree with, is the importance of meeting over lunch. In my experience, this is one of the best team building experiences you can share with your coworkers. Not done often enough anymore.
Mac OS X Doc Interface Using JQuery
The folks over at the nettuts site have made this post on how to create a Mac OS X like dock interface using JQuery. Check out the demo, its pretty cool looking.
Saturday, 20 June 2009
North Denver Free Wifi: Forza Coffee Company
I'm starting a little recurring theme on the best free wifi spots in North Denver. The main reason for doing this is the wifi hot spot web sites on the net appear not to have been updated for a LONG time. Since I don't really want to create my own free wifi hot spot web site (at least not yet!), I thought I would just stick to the area I know.
So I'm talking about the North Denver Metro area, mainly Broomfield, Westminster, Thorton, and Northglenn. I may also include Boulder, Layfayette and Louisville, but I plan on focusing on the other burbs first.
Our first entry in the series is the Forza Coffee Company in Westminster. This coffee shop is located at the top of the hill at 104th and Federal. Awesome view. A nice place, good music. Start your browser and just accept the usage agreement to start surfing. No password required to use their wifi. Yay! Free refills you buy a mug of coffee.
Store hours are 6:30am to 8pm weeknights. They stay open to 9:30 on Friday and Saturday night.
Here is the address and map:
Forza Coffee Company
3013 W 104th Ave Suite 700
Westminster CO 80031
303 465-0605
Get the File Name of the Current PHP Script
Needed to get the name of the current script in PHP. I found this snippet on exactly how to do that. So I must give credit where credit is due. :)
Wednesday, 17 June 2009
Workaround for Textile 2.0 PHP 5.2.x Bug
At work we use the Confluence wiki quite a bit. The wiki markup is based on the textile markup language. Well to save myself some time, I decided I would download the textile php class and work on my document locally. So I downloaded the 2.0.0 zip of the PHP file, installed it on my web server, and linked the document I'm working on. My PHP script worked, but the list output was all messed up. Every list generated by textile would look like this:
<ul>
<li>Item One</li>
<li>Item Two</li>
</ul>
<ul>
<li>Item Three</li>
</ul>
Very annoying. Anyway after much searching, I have come to the conclusion that this is caused by a bug in PHP 5.2.4 or later. (Although there seemed to be much debate about which version of 5.2 it started with.) I'm running OS X 10.5 and have PHP 5.2.8 and I definitely have the bug. The main solution involves a patch, which I don't really want to attempt. However, after further digging, I found this workaround (Thank you David Green where ever you are.).
Find the fList function in the classTextile.php file. Replace these two lines of code:
foreach($text as $line) {
$nextline = next($text);
with these two lines of code
foreach($text as $nr => $line) {
$nextline = isset($text[$nr+1]) ? $text[$nr+1] : false;
Fixed me right up. And hopefully, this note will help other Mac OS X folks out there.
Tuesday, 16 June 2009
Simple Comment System with JQuery and PHP
I ran across this example of a simple comment system on the 9lessons blog. A very good example of what can be done with JQuery in a few lines of code.