From the category archives:

Blogging

Black Friday Thesis Sale

by TheMadHat on November 27, 2008

If you're new here, you must subscribe to my RSS feed, or I will hunt you down. Thanks for visiting!

Thesis Duct Tape ThemeHere is your one and most likely only chance to get the great Thesis theme at a discount. This applies to the first 150 people, so be sure to grab it ASAP! This chick on the left says do it now.

$69.60 for Thesis Personal

$131.20 for Thesis Developer

$61.60 for Developer Upgrade

You must use this code to get the discount - 20D03977D0 (don’t forget this!).

Happy Thanksgiving everyone. Discount Thesis Wordpress Theme!

UPDATE: Rae has a great Thesis tutorial covering all the new features (hooks, etc). Check it out (after you go buy it).

{ 10 comments }

Remove The Category Base From Wordpress

by TheMadHat on October 31, 2008

Going CrazyThis might have been the most annoying thing I’ve had to do in a while. As you’re probably well aware, the pesky “category” level that shows up in your category page URL’s was practically impossible to get the hell off. There were several plugins sitting out there and none of them worked quite right. All the ones I found worked to some degree, but there was always some problem that I didn’t like.

You’ve got the Category Base Killer plugin which seemed to work fine at first, but pagination wouldn’t work and apparently there is a problem with having a subcategory or a category with a parent.

There is the Top Level Category plugin, which worked only if you added an extension to your post names. You’d end up with funky looking URLs like /category/post.html/ and that would require redirecting all of your posts. And again pagination didn’t work.

There were a few more custom coding solutions I came across that blew up my blog.

Here is what I did and I’ve fooled around with mine enough to where I think it works right. First some caveats:

1) I’m using the Thesis Wordpress Theme (great theme by the way). I didn’t change any code inside the theme so this shouldn’t matter.

2) I don’t use subcategories or parent categories so I don’t know if that works or not. I also don’t use multiple categories, but I don’t think that matters. I believe it just uses the first one anyway.

3) My permalink structure is set at /%category%/%postname%/ - if yours is different, you’ll probably need to tweak it.

4) This isn’t a plugin (yet, I might get around to doing that but I have never written a plugin before and I wanted to get this out now). This means when you upgrade Wordpress, you have to insert the code again. (Tip: I comment in // $$$ Custom code // where I put in my own stuff so it’s easy to find and fix when Wordpress updates)

So, here is the solution:

1) In wp-includes/category-template.php search for the following line of code:

$catlink = get_option('home') . user_trailingslashit($catlink, 'category');

Just below that, insert the following:

$catlink = str_replace('/category', "", $catlink);

2) In wp-includes/classes.php search for the following block of code:

if ( isset($error) )
$this->query_vars['error'] = $error;

Just below that, insert the following:

if (@$this->query_vars["name"] == "page")
{
$tmp_ar = $this->query_vars;
$this->query_vars = array();
$this->query_vars["paged"] = str_replace("/", "", $tmp_ar["page"]);
$this->query_vars["category_name"] = $tmp_ar["category_name"];
}

3) Finally, in your .htacces file, add the following to redirect your old /category/ URLs to your new ones (if your blog doesn’t reside in the root, you’ll have to tweak it):

RewriteRule ^category/(.+)$ http://www.domain.com/$1 [R=301,L]

Guitar Hero Is My FriendThere you have it. I don’t guarantee this will work for you, and if it doesn’t, well bite me because I tried. And just to make this post more interesting, here is a random hot chick with Guitar Hero.

 

 

 

 

{ 23 comments }

Free Blog Advertising With EntreCard

by TheMadHat on November 14, 2007

EntreCardYes, yet again I’m going to try an untested widget on my blog as I’ve done before. I spotted this post on Shoemoney today. This has always been a concept I’m interested in but it never seems to work (blogrush, bla.st, etc). I put it up about an hour ago and low and behold, I have my first advertiser already. The affiliate marketing blog (how’s that for a first advertiser bonus!) Building My Empire thinks they will get some traffic from my blog…probably like 3 people but a page view is a page view. In return I get credits put in my account that I can use to advertise on other blogs. You can read about the service more in detail over at Shoemoney. Let’s see how long this one lasts. Anyone taking bets?

On a side note, the Building My Empire blog should make a better looking graphic. The generic one kinda blows. I think the edit profile has a glitch in it (at least it does on my end) that won’t allow you to change your ad or something. That could be the issue.

Oh yea, and here’s the link to EntreCard.

{ 5 comments }

How To Make Money Blogging

by TheMadHat on October 18, 2007

Step 1: Make a shit load of money on some other online venture.

Step 2: Prove it by taking a picture of your porsche/aquarium/check/hot girls.

Step 3: Talk about how you made the money, but only the ways that don’t work anymore.

Step 4: Sell ads and promote shitty affiliate programs.

Step 5: Repeat.

Luxury Auto and 8000 Gallon Aquarium

Big Money and Hot Chicks

 

Bring on the cash!

 

{ 26 comments }

5 Weird And Wacky Ways To Save The Earth

by TheMadHat on October 15, 2007

In participating in Blog Action Day, I was having some problems coming up with a topic to blog about. I knew there would be many posts on recycling, waste reduction, and so forth so I thought I would go a different route and discuss 5 things outside of the norm. However strange, all of these solutions have been proposed by actual scientists and I didn’t make any of them up. Some will never likely be feasible, but at least you’ll think about it.

1. Cool down the earth by moving the entire planet farther away from the sun - This idea was published in the professional journal Astrophysics and Space Science by Don Korycansky, Greg Laughlin, and Fred Adams. Essentially they propose to find an asteroid say around 60 miles long (the size of Long Island or so). Once said asteroid has been located they plan on using it as a “gravitational sling shot” of sorts by strapping a big rocket to it and putting the asteroid in an orbit wider than the radius of the solar system. By having the asteroid pass close enough to the Earth (every 6000 years or so), it will slowly tug the planet farther and farther away from the sun. Drawback #1: If the asteroid were to accidentally collide with the Earth it would eliminate all life on the planet (Global Warming would no longer be an issue). Drawback #2: It would take 6,000,000,000 years to finish. Drawback #3: Every time the asteroid would pass it would cause giant tsunamis and title waves and bad stuff like that. End Result: Global Warming Averted 6 billion years from now!

2. Use Aerogel to clean up pollution - You remember Aerogel right? It’s that fun stuff they used to collect space dust, hold up bricks and save your Crayons from dragons. Aside from fun stuff like that, they recently published in Science magazine that Aerogel could be used to create a sponge-like substance that could clean up heavy metals like mercury making it ideal to clean up polluted water. Seals everywhere rejoice! There is also research in progress to create purification filters for fuel cells and desalinization plants to make the world a cleaner place. Drawback #1: They are made from platinum, so our taxes are going to go up. A lot. End Result: Water Pollution Eliminated!

3. Grow genetically modified crops - For around ten years farmers in Australia have been growing genetically modified cotton that has a built in resistance to insects. This has led to a massive reduction in pesticide spraying. By using the same technology on food we could decrease the use of pesticides on crop supplies to an almost negligible level. It also reduces the amount of Carbon Dioxide in the atmosphere. When pesticides are sprayed, they not only kill the insects the but also organisms in the soil that keep carbon trapped. Once they are toasted the Carbon is released into the atmosphere as Carbon Dioxide. Everyone knows that’s bad. Except President Bush maybe. Biotechnology and food supplies have always been a controversial topic and this isn’t really an opinion piece so you can choose for yourself if you like eating ant killer. Drawback #1: Something could go wrong and you might be attached by a giant tomato. Drawback #2: Genetically altered crops generally offer no cost benefit to the farmers so getting them to adopt it would be difficult. End Result: Less pesticide and possible vegetable attacks.

4. Go back in time and fix stuff - No, I said I didn’t make this stuff up. First let’s quote the great Carl Sagan:

“If we could travel into the past, it’s mind-boggling what would be possible. For one thing, history would become an experimental science, which it certainly isn’t today. The possible insights into our own past and nature and origins would be dazzling. For another, we would be facing the deep paradoxes of interfering with the scheme of causality that has led to our own time and ourselves. I have no idea whether it’s possible, but it’s certainly worth exploring.”

A physicist named John Cramer is attempting to explore this very thing. His first step is figuring out if anything can indeed move faster than light. If so, he claims, through some long quantum physics thing I can’t even figure out, traveling backwards in time would be possible. This would allow us to do things like beat up George Bush and elect Al Gore and present nuclear fuel cells to the people of the 1800’s. Drawback #1: The space-time continuum would be disrupted and the entire universe would collapse. Ouch. Drawback #2: We’d probably make it worse. Giving nuclear energy to people in the 1800’s would probably be a bad idea. Drawback #3: Alien invaders from the future could find the technology and come back to eat us now. Drawback #4: Al Gore would invent the interweb. End Result: I don’t know but I bet I’d win the lottery.

5. Reduce your carbon footprint - Okay, so this one isn’t weird but I had to have a serious one. Some people think that just because they drive a hybrid electric car they’re doing more for the environment that me since I’m driving a giant SUV. What they don’t understand is the concept of Carbon Footprints. I do because my brother happens to be a Geologist. Let me give you an example. I drive a 1997 Ford Expedition 4×4 and a 2001 Ford Mustang GT (Those aren’t mine but they’re close enough). Let’s also say my environmentally focused friend drives a 2006 Honda Civic Hybrid. Who is more environmentally friendly? Well, I live 5 miles from work but my friend doesn’t like the pollution of the city so he lives 25 miles away out in the suburbs. By this calculation I release approximately 1.6 tons of CO2 into the atmosphere per year while his little hybrid releases 2.55 tons of CO2 per year. Now obviously I could reduce my carbon footprint by driving a more sensible car, but there is more to consider than what you drive. Want to know how much your carbon footprint is? You can calculate yours at Climate Crisis. So, try and eliminate some of your carbon footprint and shut your pesky little tree hugger friend up with your advanced knowledge of the atmosphere. Drawbacks: None. End Results: Less Global Warming!

Thanks again to the Blog Action Day group. It was a cool idea and I’m excited to see the final tally. Hopefully someone will think about it next time they buy a 300 horsepower mustang ;)

{ 5 comments }

10 Months Of Blogging In Homage To Lyndoman

by TheMadHat on September 27, 2007

I am your vassal. Just don’t forget the land and stuff. One of the more recent additions to the “favorites” category in my feed reader was Cornwallseo, aka Lyndoman. I recently noticed his post on what 10 months of blogging looks like and with quite a surprise noticed we started our blogs on the exact same day (well, almost but by the time I figured that out I was already writing so get over it). You have to go dig around for my first post because it sucked and I think I may have plagiarized half of it anyway because I didn’t have a “hello world” post. So in honor of Lyndoman, here is what 10 months in wonderland look like:

Cheerio and here’s to another 10!

{ 8 comments }