Archive for the 'blather' Category

h1

linky winky

Wednesday, April 3rd, 2002

via Keith Devens: Regular Expression Library

Martin Spernau alludes to a gem of an idea whereby you block adware sites by giving them bogus hosts file entries. lovely and simple. (unfortunately, the site he links to for a hosts list seems to redirect to some really bogus adware popups, so avoid it)

h1

cell static

Wednesday, April 3rd, 2002

It’s apparently verboten at most gas stations to use your cellphone while filling your car. I’ve had it explained to me that it’s because when you receive a call there could be some static charge thing happen. I looked up some various stuff on the net, but it’s all inconclusive from what I can see.

If static is such a threat, maybe they should make it illegal to fill up a car while wearing pantyhose and a silk slip.

h1

migration stories

Tuesday, April 2nd, 2002

Papa Scott’s migration from Manila to MT took a different but similar course to mine. I had downloaded my manila root and loaded it up in Radio, but couldn’t really get my head around manipulating the object db or playing with tools to xml-ify it. So, I found a piece of VB code from Simon Fell that uses PocketSOAP to query manilasites for manila weblog info. I quickly modified it to iterate from 1 to the current weblog entry number, call manilasites.com via SOAP for each entry, and spit out the text format MT expects as input, very much like Scott did with his perl script that parses the XML files.

Worked great. Was such a quick hack that I didn’t even save the code changes on exit from VB.

h1

the uphill bits

Tuesday, April 2nd, 2002

One of life’s truisms from LimitedPie:

…at each of my life junctures the hard thing is and was the right thing.

h1

feeling a little beta

Thursday, March 28th, 2002

It’s been just over a month now since the original implementation of BlogChat was released. A few people have installed it and have been running their own BlogChats. Many others have visited me at my blog and commented that they like the idea and would like to have one on their site, but that they don’t have the ability, knowledge, or control over their server to host it themselves.

In answer to those people, I’ve spent a significant amount of energy developing a multi-user implementation of BlogChat which will allow us to provide hosted BlogChats on a subscription basis. I say “us” because I’ve entered into a partnership with a long-time friend and colleague named Tim Aiello, whom many of you may know as TechnoMagician.

We’re going to be ready soon to invite interested parties to participate in a limited Beta of the BlogChat service. We will initally have to limit participation until we are able to analyse server load distribution needs. In addition to the many people who have been supporting us to date, we’re looking also for people who are not technically oriented, who are not part of the design and programming community, to bring their perspective to the beta process.

We still have some issues to deal with before we are ready to fly with this beta, but we’ll start collecting requests to be included at beta@blogchat.com.

For now, I’m going to spend Easter with the family and spin down from the extended flurry of activity. Seeya next week.

h1

Big Media Encroachment

Tuesday, March 26th, 2002

Dan Gillmor invites us all to take a stand against the tide of Big Media control plays. We are indeed the collective frog in the pot as the temperature rises, notch by notch.

As Oprah would say, You go, Gillmor.

h1

Displaying Referrers

Saturday, March 23rd, 2002

That other, somewhat better known blogging Brent guy posted a neat article about how he does his referrer list with PHP/mySQL.

I’ve been tracking my referrers out of my Apache logs. It’s the 11th field in each log line, so I use this awk one-liner to do it:

awk ‘{a[$11]++}END{for(e in a)print a[e] ” ” e}’ access_log | grep -v blogchat.com | sort +1

(my ISP leaves two logs in my logs dir – the current one, and one for yesterday)

This translates to:

“For each line, look up the referrer from the 11th field, take an associative array element by that name and increment it. At the end of the file, loop through the elements in the array, giving their counts and the referrer name, then filter out any refs from my own site and sort all of this by referrer.”

This is great – does just what I want. But then I have to cut and paste from the commandline to follow those links.

So I wrapped it all in PHP:

(update: added unset($a) to clear array between days)


<html><head>
<link rel=”stylesheet” href=”styles-site.css” type=”text/css” />
</head><body>
<?php
$logfile = “/path/to/my/access_log”;
$cmd = “awk ‘{a[$11]++}END{for(e in a)print a[e] ” ” e}’ $logfile | grep -v blogchat.com | sort +1″;
print “<h4>Today:</h4>\n”;
exec( $cmd, $a, $ret );
for( $i=0; $i < count($a); $i++ ){
   print ereg_replace(“(“.*”)”,”<a target=”_blank” href=\1>\1</a>”, $a[$i]) . “<br />\n”;
}
unset($a);
$logfile = “/path/to/my/access_log.1”;
$cmd = “awk ‘{a[$11]++}END{for(e in a)print a[e] ” ” e}’ $logfile | grep -v blogchat.com | sort +1″;
print “<h4>Yesterday:</h4>\n”;
exec( $cmd, $a, $ret );
for( $i=0; $i < count($a); $i++ ){
   print ereg_replace(“(“.*”)”,”<a target=”blank” href=\1>\1</a>”, $a[$i]) . “<br />\n”;
}
?>
</body></html>

Here’s the result.

There’s always a different way to do everything!

h1

the right tool for the job part 2

Tuesday, March 19th, 2002

Have I told you that Netscape 4.x Sucks?

====

Dear Admiral Motor Company;

Why can’t I repair my 2002 Admiral 3-door hatchback with my trusty set of all-imperial measure socket wrenches? My brother has no problem with his newer socket set which includes metric heads. Whenever I try to turn a bolt, it doesn’t quite fit and I get a suboptimal user experience. Why have you started to design your cars so they can’t be repaired by everyone? You could at least only select a subset of nut sizes for your vehicles that closely approximates my socket set.

Signed Joe User

====

Memo from Marketing to Production

Guys, come on, quit being unnecessarily innovative with “standards” and give our customers what they need. Please retool the assembly line to use only those bolts that everyone can turn. Our studies show us that up to 10% of home mechanics and some large shops have resisted the global move to metric tools. We’re losing a significant amount of their valuable business.

====

engineering drawing change summary:

– changed all 20mm bolts to 25mm to approximate 1″. Moved essential parts for extra clearance.
– changed all 10mm bolts to 12mm to approximate 1/2″.
– changed all bolts to titanium alloy to reduce head stripping from poorly fitting socket wrenches.