New Bush Policy: You're fired!

A new Bush plicy is starting to be used throughout government and it’s been properly licensed from The Donald. People in government who speak out against Bush policies or are critical of actions taken by the White House are being either forced out of office our outright fired for their criticisms. Just ask former U.S. Park Police Chief Teresa Chambers who was fired recently for criticising a lack of funding and support for our Nation’s parks.

“The American people should be afraid of this kind of silencing of professionals in any field,” she said. “We should be very concerned as American citizens that people who are experts in their field either can’t speak up, or, as we’re seeing now in the parks service, won’t speak up.”

National Park Service officials said Chambers broke rules barring public comment about budget discussions and prohibiting lobbying by someone in her position.

Shouldn’t she be the one lobbying for more funding if she sees a glaring lack of it? This makes no sense and appears, at least to me, to be politically motivated. Personally, I’d like to know ahead of time from the people in charge that we need more funding, more officers, etc. I’d also like it if they weren’t fired for telling me such things.

Articles & Publications

Articles, Publications & Software

This is a running list of articles, interviews, publications and software that I have written and were, at some point, published on various sites around the Internet. This will be a running list as they are published. The article links all open in a new window.

  1. Understanding MVC in PHP Sep. 15 2005 A four part series that covers creating MVC web frameworks using PHP5. Framework is the resulting code from this article.
  2. MySQL UC 2005: Ways for Using and Extending FULLTEXT Apr. 20 2005 My presentation, including source code on how to combine LAMP and MySQL’s FULLTEXT indexes to create useful site searching.
  3. Unfinished PEAR/Smarty Book n/a I was first approached by A+ Press to write a book about PEAR and Smarty in August of 2003. Due to editor problems on their end the book was never finished. Here are the first three chapters, which cover basic info about PEAR and Smarty, the base PEAR classes and how to manage PEAR packages. I’m releasing them under the terms of this site’s copyright terms.
  4. The State of Home-Brew PVRs on Linux Nov. 13 2003 at O’Reilly’s ONLAMP.com A brief look at the current status of PVR software for Linux. Includes comparisons of the Freevo and MythTV projects.
  5. php{con West 2003: MySQL FULLTEXT Searching Oct. 22, 2003 at php{con West 2003 A technical session given at php{con West 2003 covering the basics of using MySQL’s FULLTEXT indexes.
  6. Building an Advanced Mail Server Sep. 25 2003 at O’Reilly’s ONLAMP.com A detailed article covering how to install Qmail, SpamAssassin, virus protection, vpopmail on an email server. Includes instructions for installing Apache and utilizing the Squirrel Mail webmail front end.
  7. Finding Bad Spam Delights Geeks Aug. 04 2003 at Wired News An article about a now defunct project of mine called SpamChart. Talks about what inspired the project and geeks’ obsessions with SpamAssassin’s scores.
  8. MySQL FULLTEXT Searching Jun. 26 2003 at O’Reilly’s ONLAMP.com An introduction to MySQL’s FULLTEXT indexes, including how to structure the tables, perform queries and how one might extend this feature in MySQL.
  9. Smarty: A Closer Look Mar. 18, 2003 at Zend.com A brief tutorial of the advanced features of PHP’s templating engine covering such topics as template caching, template security, and variable modifiers.
  10. Intro to PEAR Dec. 23 2002 at PHPBuilder.com An introduction to using the PEAR library for error handling, database abstraction, and logging.
  11. SQL Theory & Howto Jan. 01 2001 at PHPBuilder.com A brief overview of the relation algebra that SQL is based on and how to build complex SQL queries based on user input.
  12. XML HowtoSep. 07 2000 at PHPBuilder.com A simple tutorial on how to parse XML documents using PHP’s expat functions.

Viable Alternative

Ever since Bush’s crappy foreign policy, horrible stance on the environment and the consisten eroding of my rights made me mad I’ve been shopping for a political party to register as and vote for. Easy you say. Wrong. Both Democrats and Republicans play to special interests, generally abuse the government and, overall, suck. So who do you vote for?

You vote for a viable alternative.

The Libertarian Party is an interesting hybrid of the Democratic and Republic platform, most of which are common sense. The end result is a great platform that includes all sorts of things I agree with and a few I don’t.

  1. They would eliminate the income tax. How? By drastically reducing the size of the federal government. This includes ending military welfare to defend countries like Japan and NOT bailing out failing industries.
  2. They promote the legalization of drugs as a way to both reduce crime and reduce tax burden (no war on drugs means we don’t have to pay for tons of DEA agents).
  3. Privatize the running, control and operations of federally protected lands to such environmental groups as the Nature Conservancy.
  4. Abolish foreign aid.
  5. Abolish Social Security. I like this idea the more I think about it. Let ME invest my money how I see fit – I don’t need the government’s help.
  6. They aggressively believe in freedom of speech, which includes staunch support for the free and unrestricted use of cryptography and censorship.
  7. Abolish the current welfare system.

All of the above makes a ton of sense to me. Who better to run our nation’s parks than the tree hugging hippies? How better to get rid of the violence the drug trade produces than to make it legal? The running theme throughout the entire platform is that the people who vote Libertarian do so because we trust people to run their own lives. It’s a party that promotes responsibility.

They have a great ad on their site that says the following.

I’m George W. Bush and you can trust ME to run your life.

I’m John Kerry and you can trust ME to run your life.

I’m Ralph Nader and you can trust ME to run your life.

I’m Michael Badnarik and I trust YOU to run your own life.

Classic. So this year I’m voting for the Libertarian Party and I highly suggest you look into it as a viable alternative.

9/11 Panel Raises Cheney's Bet and Calls

The 9/11 commission is standing next to their findings that al Qaeda and Iraq had only limited connections. Cheney and Bush have both insisted, publicly, that Iraq and al Qaeda had a working relationship and that “we don’t know” if they were involved in 9/11.

“After examining available transcripts of [Vice President Dick Cheney’s] public remarks, the 9/11 commission believes it has access to the same information the vice president has seen regarding contacts between al Qaeda and Iraq prior to the 9/11 attacks,” the commission said in a written statement.

That statement comes in the wake of an interview Cheney gave last month on CNBC. During that interview, Cheney said “we don’t know” whether Iraq was involved in the attacks. Asked whether he had information the panel did not, the vice president said, “Probably.”

After Cheney’s statement on CNBC, the commission asked the vice president to come forward with any additional information he could provide about any ties between al Qaeda and Iraq.

I’ve got a couple of questions …

  1. Why does the VP have more information on 9/11 than the 9/11 commission?
  2. If it would clear the air with regards to apparent contradictions between what the 9/11 commission found and what the Bush administration said leading up to the war in Iraq as well as comments made since the commission’s report, then why wouldn’t the administration give the commission said information?

The answer to that could be as easy as they don’t have any more information and are simply trying to confuse the public with doublespeak. I hope this isn’t the case, since there are over 3000 families out there that deserve to know all the facts.

mod_rewrite

The new site takes advantage of Apache’s mod_rewrite. In short, mod_rewrite, allows you to magically “translate” one URL into another without having to redirect the browser.

How could this possibly be useful to programmers? Well it has to do with a little site called Google. Most search engines have complex algorithms judging how valid a URL is. This includees both length of the URL and whether the URL is dynamic or not (URL’s containing GET arguments such as & = and ?). Many web applications use such arguments to dynamically build content, including JAX.

A good example is the default URL for a perm-a-link in my blog:

/jax/index.php/blog/eventHandler=view/entryID=888888888

There are two problems with this URL:

  1. It’s extremely long.
  2. It contains an equal sign, which may keep it from being indexed.

Enter mod_rewrite. The module, through the use of regular expressions, manipulates URL strings. This allows me to turn /jax/index.php/blog/eventHandler=view/entryID=888888888 into /888888888/some-title-text. Below are a few examples.

# Put this in your virtual host definition or a .htaccess file

# Turn the module on
RewriteEngine on

# The first part of the rule rewrites /YYYY/MM into the dynamic
#URL the second part tells mod_rewrite what the "real" URL is
RewriteRule ^/([0-9]{4})/([0-9]{2})$ /view.php?year=$1&month=$2

# The first part of the rule rewrites /888888888/some-title-text
# into the longer dynamic URL
RewriteRule ^/([0-9]{9})/(.*) /view.php?entryID=$1

# This rewrites requests to / (the main index of the page) to
# my real index, which is stored lower in the document tree
RewriteRule ^/$ /jax/index.php/blog

There you have it. Apache’s mod_rewrite makes life a lot easier and should make your site loved much more by many search engines.

Retooled, Refurbished and Redesigned

As you might have noticed I launched a completely redesigned website. This design is about a week in the making. It took a whole lot of CSS love, learning how to layout stuff using XHTML and a little coding to add and shift features as needed. I hope that you’ll find the many new features and the new design both easier to look at and easier to use. Below are is a list of things that have been changed, added or removed.

  1. This design works great in Internet Explorer on Windows, Mozilla, Firebird and Safari. This design, however, is most likely broken in Internet Explorer under OS X (and earlier) and early versions of Netscape.
  2. This design uses almost four times as much CSS as it does HTML, which I find kind of funny. The design uses absolutely no tables, which I’m quite proud of.
  3. I’ve added a comprehensive archives section and the ability to trackback my entries.
  4. If you are using Internet Explorer then you’re viewing a slightly less beautiful site than you would if you were to use Mozilla or Safari. Upgrade your browser because it doesn’t support alpha blending PNG’s nor does it have the best CSS support.

As one can expect I have a few people that I should thank for tips, ideas and contributions.

  1. I’d like to thank Dan Cederholm from Simplebits.com for the great icons. It was the best $45 I ever spent.
  2. Cameron Barrett gave me tons of tips on CSS, Photoshop and where to find tiles.
  3. Jason Kottke to whom I used as a somewhat guide to my redesign. I also use his Silkscreen font extensively.
  4. A List Apart for providing me with some CSS knowledge from some of the best in the industry.
  5. Jeremy Brand for providing the utility image_create.php, which allows me to create images based on Kottke’s TTF font on the fly.

Per Jeremy’s request, I have posted screen shots of my site in Mozilla, Safari and IE for Windows XP.

  1. Mozilla Firefox 0.9.1
  2. Safari 1.2.2
  3. Internet Explorer 6.0 (under Windows XP)

If you look closely the IE version uses GIF images for the header stuff, which makes for a somewhat pixelated version of the website. Layout-wise, font-wise and over all feel remain the same across all major browsers, which is a good thing. Though I won’t speak for older versions of Netscape, the current version of IE on Mac or any version of Opera.

For those of you wondering, yes that is me in the upper right corner. All of the icons are © Dan Cederholm – so no you can’t have them. The rest of the images, content, CSS, code, etc. are all © Joe Stump.

CERT and Dept. of Homeland Security issue IE warnings

anti-IE campaign logo
It looks like the tide is finally turning against Microsoft’s browser IE. Both CERT and the Department of Homeland Security have issued warnings to users to NOT use Microsofts Internet Explorer web browser. The reason? Other than being a pile of donkey crap that hasn’t been updated in over a year, it has numerous serious security flaws that Microsoft has yet to fix.

Users should find and download a replacement browser as soon as possible. Most Apple users out there probably use Safari, but Windows users do not despair! You can download Mozilla, which is a great browser that is, for the most part, immune to the virus attacks that IE is. It’s also updated frequently with new features, bug fixes, etc.

Help fight terrorism! Don’t use Internet Explorer!

Cosby tells his homies to get up out his grill

Comedian Bill Cosby has been speaking out lately with some harsh words for his fellow African Americans. He hits some really touchy issues that we, as white Americans, can’t even approach.

“Let me tell you something, your dirty laundry gets out of school at 2:30 every day, it’s cursing and calling each other n—— as they’re walking up and down the street,” Cosby said during an appearance at the Rainbow/PUSH Coalition & Citizenship Education Fund’s annual conference.

“They think they’re hip,” the entertainer said. “They can’t read; they can’t write. They’re laughing and giggling, and they’re going nowhere.”

In a rare turn of events, Jesse Jackson actually agreed with someone.

“Bill is saying let’s fight the right fight, let’s level the playing field,” Jackson said. “Drunk people can’t do that. Illiterate people can’t do that.”

Well said.

Professional PHP and MySQL Training

I’m happy to announce that I have started offering a professional PHP and MySQL training course. Actually, I’m offering two professional PHP training courses; one for beginners and one that covers more advanced topics.

The PHP Beginner course will be a two day course starting July 19th, while the PHP Advanced course will be a three day course starting July 21st. If you are interested in attending either of the courses please contact me.

Fahrenheit 9/11 Review

I saw the movie Fahrenheit 9/11 on opening night. Why? Because that’s what tree hugging hippies do on a Friday night in Ann Arbor, MI. How was it? Well, that’s hard to say. First of all, the content is not ground breaking for anyone who has actually been paying attention and connecting the dots for themselves over the last few years.

There are two things that more does a great job of; breaking down the facts into small digestible pieces and showing the real consequences of our actions in Iraq. He makes a few arguments about Bush & Co. and the war in Iraq and mulches them into small bite size chunks. His arguments are as follows.

  1. The Bin Laden family and other high level Saudis were allowed to leave the country right after 9/11 without being questioned. Moore’s argument is a valid one here; if you committed a crime the police would surely want to question your entire family as soon as possible.
  2. Moore asserts that the close connections between the Bush family and the Saudi royal family is the reason they were allowed to leave. This is a plausible argument, but is certainly leaning towards conspiracy theory.
  3. The reasons given to us for war, which, at the time the President made his case, were weapons of mass destruction, were lies. The fact that Iraq had no WMD is well known and currently there is much debate on links between Iraq and al Qaeda.
  4. Bush is evil and stupid. I think you can only be one or the other, but I could be wrong. Moore does use a lot of gratuitous Bush snickering clips, etc., which don’t add to his argument and really are only there for laughs

Nothing really ground breaking here for those of you who actually watch the news and read once in a while, but what makes this movie so powerful is the fact that it breaks down the lies behind us going to war and the consequences of us going into Iraq (if you don’t like seeing the results of our military actions then this movie is not for you).

Now all of the GOP’s out there are condemning this movie, but what makes me so angry is that, in their blind allegiance to the party, they ignore the following facts.

  1. Bush said the main reason for invading Iraq was that is posed an immediate threat and possessed WMD’s (he even had sattelite photos!). We now know they did not, in fact, pose a threat or possess WMD’s. Some make the assertion that the WMD’s were smuggled out to another country leading up to the war. If that was, in fact, the case then Bush HAS NOT MADE US SAFER; he’s merely shifted where the WMD’s are located.
  2. Once it was clear there were no WMD’s the GOP started to shift the reasons for war. First it was the much contested Iraq-al Qaeda link and then it was “we’ve liberated them!” and now they espouse the virtues of having a Democratic state in the Middle East. First off, your party’s leaders are trying to justify a war while ignoring the fact they either lied about the WMD’s or screwed up the efforts to secure those WMD’s. Second, the terrorist links are vague at best. Finally, did anyone ever think to liberate Iranians or N. Koreans? Do they even want Deomcracy?

NOTE: The following list of scenes I liked a lot contains spoilers.

  1. I find it disgusting at how the patrons of the conference for war contractors talk about how much they are helping the country, etc. These vultures profit from the horrors of wars. There is a great clip about a soldier who makes $3k/mo. and is assigned to guard the oil fields where guys driving 2.5 miles and back make three times that a month.
  2. The look on the Senator’s face when Moore asks him if he’d like to sign up his son to the armed forces to figh in Iraq is simply classic.
  3. I didn’t like looking at the scenes of dead bodies and blown up babies, but I’m glad that millions of people out there are going to finally see what we’ve put the Iraqis through.

So, in short, the movie doesn’t bring any major new information to the forefront, but does break down the misdeads of the Iraq war and Bush & Co. quite well.