Monthly Archive for January, 2005

Page 3 of 6

It Had To Be Done

I’ve been getting a lot of comment spam recently, so I added in HIP-CAPTCHA authentication. Sorry for any inconvenience, I was hoping I wouldn’t have to, but the spam was just coming in faster and faster.


Also, blogging will be light for awhile (as will sleep, I’m sure), Charlton showed up today.

Rebuttal From Texas

Here’s my response to Acidman’s, um, generalizations about Texas.


I barbeque. Frequently. So do many of my friends. The only beef I barbeque is brisket. Most everything else is pork, including, but not limited to sausage, ribs, hams, and pork butt.


I do not own a cowboy hat. I know a few people who do, but they’re usually people who frequent country bars. They also are the ones wearing the boots. And the buckles. Yes, we have really large belt buckles here, but they come in mighty handy when an “urban outdoorsman” asks you for some spare change.


Yes, we remember the Alamo. We lost that battle, but we won the war.


I’ve never heard of Geechee food. Now Tex-Mex? That’s some good eatin’.


Texas is the only state that was an independent nation before joining the US (1836 to 1845). As they say, “Texas. It’s a whole other country“. We’ve got oil, refineries, produce, NASA, large seaports, beaches, major computer manufacturers, livestock, Texas Hold ‘em Poker, George W and George HW, chainsaw massacres, and LOTS of guns.


We’re mighty happy being Texans here. Many states are “southern”, but there’s only one Texas.

Career Day

You know, the day when people come to your school and tell you what it’s like to be a doctor, or a lawyer, or a policeman, or a stripper.

Students at a Palo Alto middle school learned more than school officials ever expected when a recent “career day” speaker extolled the merits of stripping and expounded on the financial benefits of a larger bust.

The hubbub began Tuesday at Jane Lathrop Stanford Middle School’s third annual career day when a student asked Foster City salesman William Fried to explain why he listed “exotic dancer” and “stripper” on a handout of potential careers. Fried, who spoke to about 45 eighth-grade students during two separate 55-minute sessions, spent about a minute explaining that the profession is viable and potentially lucrative for those blessed with the physique and talent for the job.


According to Fried and students who attended the talk, Fried told one group of about 16 students that strippers can earn as much as $250,000 a year and that a larger bust — whether natural or augmented — has a direct relationship to a dancer’s salary.

Yeah, that’s exactly what we need to be teaching sixth graders.


Hat Tip: Malkin

What Is It With The Gorillas?

Driving around town, I keep running into businesses who have decided to place a large, usually pink, gorilla outside their establishments. Usually very close to the road so that you cannot miss them.


Was there some super-secret marketing study that I haven’t seen which suggests that large pink gorilla statues outside your place of business brings in the customers? I certainly hope so, because I can’t think of any other reason for these eyesores. Is this phenomenon happening everywhere, or just where I am?


If I see a pink gorilla, I head for a competitor.

One More Reason To Like Clint Eastwood

He’s threatened to KILL Michael Moore if Michael ever shows up at his front door with a camera.


Clint Eastwood told an awards ceremony in New York that he would “kill” Fahrenheit 9/11 filmmaker Michael Moore if he ever showed up at his front door with a camera.

With Moore sitting in the audience, the Dirty Harry star said, “Michael Moore and I actually have a lot in common – we both appreciate living in a country where there’s free expression.


“But, Michael, if you ever show up at my front door with a camera – I’ll kill you. I mean it.”


And with a .44 Magnum, no doubt.

I Knew I Should Have Taken A Left Turn At Albuquerque

Why Cows Hate Winter

Mac, The John Kerry Of Computers

From here:


Is Apple Mac, John Kerry of computers? My Business 2.0 colleague Damon Darlin thinks so. “The Mac is to technology journalists what John Kerry is to journalists covering politics. They get all weak in the knees and suspend all critical analysis about what real people really want because they so want the Mac to win.”

Boy, he nailed that one.

Put The Martini Down, Senator

Senator Kennedy spoke yesterday at the National Press Club about the direction the Democratic Party should be heading. Which is all well and good. The funny thing is the very last sentence in the article.


Kennedy also mangled the name of the Democrats’ new star, Illinois Sen. Barack Obama, calling him “Osama bin … Osama … Obama.”

Heh.

Adding Recent Comments To .Text

I saw an article here on how to add a recent comments control to .Text. I thought that was pretty cool, but the way it is written, it shows a hyperlinked subject of the post that the comment was posted to. I thought it would be more useful and visually appealing to have the actual text of the comment instead, so I modified the RecentComments.cs to the following:

namespace Dottext.Web.UI.Controls

{

using System;

using System.Data;

using System.Drawing;

using System.Web;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;

using Dottext.Framework;



using Dottext.Framework.Components;



///

/// RecentComments displays the last 5 comments

/// ToDOo: make this number configurable

///


public class RecentComments : BaseControl

{

protected System.Web.UI.WebControls.Repeater feedList;

private EntryCollection comments;



public RecentComments()

{

comments = Entries.GetRecentPosts(5, PostType.Comment, true);

}



protected override void OnLoad(EventArgs e)

{

base.OnLoad (e);



if(comments != null)

{

feedList.DataSource = comments;

feedList.DataBind();

}

else

{

this.Controls.Clear();

this.Visible = false;

}



}



protected void EntryCreated(object sender, RepeaterItemEventArgs e)

{

if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)

{

Entry entry = (Entry)e.Item.DataItem;



HyperLink title = (HyperLink)e.Item.FindControl(“Link”);

if(title != null){



if (entry.Body.Length > 50)

{



title.Text = entry.Body.Substring(0, 50).ToString() + “…”;

title.NavigateUrl = entry.Link;



}

else

{

title.Text = entry.Body;

title.NavigateUrl = entry.Link;

}

}

Literal author = (Literal)e.Item.FindControl(“Author”);

if(author != null)

{

author.Text = “by ” + entry.Author;

}

}

}

}

}
I chose to use no more than the first 50 characters of the comment. 
If you wish to make it shorter or longer, just change the 50 in the lines:
if (entry.Body.Length > 50)
title.Text = entry.Body.Substring(0, 50)
Basically the way it is set up is that if the comment is 50 characters or less, 
the whole comment gets shown. If it is longer than 50 characters, only the first 50 are used.
I used the same RecentComments.ascx file as listed on Edo’s site, so no changes there, only in the .cs file.