Yearly Archives: 2010

Better Twitter Integration

I both love and hate the Twitter-Tools plugin for WordPress.

On one hand; I really like how it can integrate Twitter into my blog via both sidebar widget and weekly Twitter digest posts… But, on the other hand, I was really starting to feel like these digest posts were cluttering up both my blog and my archives. Several times recently I have found myself scrolling back through way too many Twitter digest posts in order to get at my ACTUAL blog posts and content that I had written. Basically, I came to the conclusion that “I didn’t like this” and I had to modify how Twitter integrated with my Blog.

Today I’ve taken the steps necessary to achieve what I believe is the best of both worlds. I now have weekly Twitter digest post created as usual; but they do not display in my main blog page or in my archives page — AND you have to specifically navigate to a “Twitter” page in order to see them at all.

This was actually a little more challenging for me than I’d like to admit – but I’ll go through the steps below:

First: Exclude the Category
To block out my Twitter category from displaying on my blog and archives, I added the following function to the functions.php file within my theme directory. The “-28” below refers to the corresponding category ID for the Twitter category. This code made it so all posts within the “Twitter” category are ignored in both my blog page and my archives.

function exclude_category($query){
if ($query->is_home) {
$query->set('cat', '-28');
}
return $query;
}
add_filter('pre_get_posts', 'exclude_category');

Second: Make the Category “Navigateable” from the Main Page
The more challenging part for me was figuring out an “easy” way to navigate to these Twitter digest posts. It sounded like a fairly easy thing to do; but I had a surprisingly difficult time with it.

I experimented with some .htacces redirection, and also some plugins that claimed to do exactly what I wanted (but, sucked). In the end; I chose to just modify my theme’s main loop logic and save it as a new page template. I copied the the text from my theme’s index.php file, and and pasted it into my a file called “twitter.php” which I saved as a new page template. I then replaced the following code:

if (have_posts()) :
while (have_posts()) : the_post();

With this code:
$recent = new WP_Query();
$recent->query('cat=28');
if ($recent->have_posts()) :
while($recent->have_posts()) : $recent->the_post();

This actually worked fairly well, and in retrospect is very easy – it just took me quite awhile to arrive at this solution! The final step here was then to add a page called “Twitter” via the administration panel; and simply change the page to use this Twitter.php template instead of the default page template.

Voila, a Twitter page that you can navigate to which displays all the weekly digest Twitter posts created automatically by the Twitter Tools plugin.

**** UPDATE ****
Vanlandw had a great recommendation about excluding these Twitter digest posts from my RSS feeds as well. That was very simple to do… My exclude function in the functions.php file in my theme directory now reads as such:
function exclude_category($query){
if ($query->is_home || $query->is_feed) {
$query->set('cat', '-28');
}
return $query;
}

And, now the Twitter digest posts are excluded from my RSS feed as well! 🙂 WordPress and PHP are both awesome.

The Death of 24

As I previously posted; I have been very unhappy with this season of 24.  More so than in any other previous season, and with greater and greater intensity.

I had decided about 5 episodes in that I was giving myself half of the season; and if 24 did not improve or show signs of turn-around, then I was going to cease watching it forever. (as Vanlandw has stated; I have said this before – sometimes it’s been an idle threat.  But, I did not and will not ever finish watching Season 6).  Well, episode 12 came and went; and all I got was more and more angry at how ridiculous the show has become.   So, while episode 13 was airing last week, I played my new Nintendo Wii.   While episode 14 was airing yesterday, I was watching “Religulous”.  Let me tell you, it feels SO good to disconnect from this show.  I have jumped ship and I will never ever make any effort to swim back.

I can’t help but feel a little bit of sadness here, but the more I think about it –  the more my sadness becomes anger.  24 was a truly ground-breaking series and was undeniably top notch television in it’s prime.  There are few other television programs that can rival 24 in it’s golden years – but the simple fact is that Fox just utterly destroyed this program.  It changed from a gritty drama to a laughable ratings-whore composed of LITERALLY trash.  Well, Fox, the public noticed…  You managed to alienate and infuriate the most loyal fan-base of all time;  Even they can only keep their hopes and dreams up for so long, and Season 8 has proven to be the last straw.  The ratings have dropped, the quality has continued it’s downward tailspin, meanwhile the only thing that has gone up has been the show’s production budget.   Finally; arguably 3 years too late, Fox has decided to put 24 out of it’s misery and cancel it.

So, what went wrong?  What happend?  Why did 24 limp into mediocrity?  Let’s run a comparative; Looking at a semi-similar series: “The Shield” on FX.

The Shield is also a gritty drama.  The Shield has a similar “bad ass” main character – Vic Mackey.  And, it has similar struggles of that main character as their job and life effect their friendships and families.  Yes, the settings and plots are sometimes very different – but 24 could have learned alot from how The Shield bowed out.  The most important thing:  The writers of The Shield never changed the heart of their show.  They never changed plots to try and cater to the masses.  In fact, they gave us scenes that we didn’t even want to see (Lem).  They gave us a final two seasons that were literally gut-wrenching, made me feel sick to watch at times, and genuinely brought me to tears.  It was utter downfall…

But, it was a most epic and decisive series finale as can possibly be had.

24, your death is brought not by skilled and emotional content like The Shield; but rather by your own greed and lust for your success.  The higher your ratings went, the further and more over the top you felt you needed to push the show.  It didn’t take long for you to push too far, to the point where it became a cheesy satire of it’s former self.  You searched for meaning in more/larger explosions, exploitations of your main character, and trying to find the charm you once had.  You killed off the characters that everyone liked while keeping around all the characters that everyone hates.  You bring in new characters to fill in the same old roles.   You put a mask on recycled plot lines hoping nobody will notice, while you combine them and cram more of them in each season.  Well, you did it – and you failed.

You straight up blew it.

You’re on your death bed and I’m not coming to visit you.  I don’t want to see you this way, and I have no desire to see how you meet your end.  I don’t owe you ANYTHING.  You un-deniably suck.  You managed to turn away your best friends at the most critical part of your life, and as far as I’m concerned you can fall into oblivion alone; reaping exactly what you have sown.

Good riddance; gtfo

Diving in to P90X

The Backstory…
As an attempt at motivation, my wife wagered that if I could lose half of the amount of weight that she gains during pregnancy; then I can pick out and purchase a television of my choosing. So, that started me down the path of getting unbelievably motivated to lose some weight, and eat healthier…

I started a basic calorie cut in February. I ate grain cereals, more fruits/veggies, and overall just cut down on portions. I stopped drinking soda comletely, I started drinking water, and I went from 254.2 pounds down to 242.2 in roughly 1 month. But, my completely sedentary lifestyle seemed to only want to let go of 12 pounds of it’s “backup” – so it was time to find some exercise to keep this going.

The problem with that is: I hate exercise. Plain and simple. I hate running, walking, biking, jogging, etc etc etc etc. Really it boils down to the fact that I enjoy physically moving as little as possible.

With my stubborn and compulsive nature, the P90X program did seem like a perfect fit. I have a coworker who shed 40 pounds with the program, and one of my cousins has seen results very early on as well. I read some reviews and researched online a pretty fair amount; and it all seemed to only confirm that P90X really does work… There’s no BS to it, it’s just freaking hard core working out to get results. And the thing is, I could actually see myself pushing through a hard 90 days to get those fast results. In fact, I’d much rather do that than to go running 3 times a week. I literally hate running so much that I’d rather do 6 hours plus of working out than to go running one time.

The Beginning…
A good friend loaned me their copy of P90X so I could try it out. It gives you a full diet plan, a lot of information, and a set of DVDs containing the workouts. I used the information to do a little prep-work, create a spreadsheet to track my progress, plan my eating habits, and get some groceries.

With the pre-flight check taken care of, I started P90X on 3/14/2010.

I am so out of shape it is really pretty sad. During my first workout, my body responded with creaking, popping, and snapping sounds as I used muscles that rarely even think about flexing. I had to make sure to start slow, pace myself, and ease into P90X because it really is an intense workout. It’s designed to take already fit people that last mile and really change their bodies. So, I have to modify the techniques on many exercises (girl pushups, lower weights, fewer reps) in order to even do them. But, I am doing them…

I honestly haven’t done any exercise like this in probably 10 years. I went through phases of biking, treadmilling, and even trying jump rope – but those were all short lived phases that did little more than elevate my heart rate temporarily and make me angry.

Now 3 days into P90X, my entire body is stiff and sore – so I’m positive that it’s working. I’ve made it into a routine to start my day waking up at 5 am, pound out the P90X workout (1-1.5 hours), and then eat an egg-white omelet with fruit and whole grain toast for breakfast. Oddly enough it has been a very simple routine for me to adopt.

The Story Thus Far
As I’m sure my good friend will want their own set back, I’m definitely going to order my own set of P90X and make sure to stick to this program. With the amount of work it is, I just can’t imagine it not making significant change to my person very quickly.

Even being only 3 days in, I can feel the changes. I can tell my metabolism is jump started working out in the morning, so I use that and capitalize on it by eating better. I also haven’t drank any coffee since starting because I feel more energetic throughout the day. My weight hasn’t gone down at all yet; but it has stayed exactly the same vs a daily up/down fluctuation that I was dealing with. I think that is a good sign that I’m eating steadily vs the feast or famine mentality.

I fully expect that this first week is all about my body adjusting to this new and heavy workload…
I’m definitely keeping it up, tracking my progress, and looking forward to seeing some results.

BRING IT

Plugin Transfusion – Netflix-X2

**Updated** 2/24/2010
I kept the motivational momentum going here and have made this plugin totally widget-capable. Totally tested and declared stable as version 1.3! Updated download links.

Over a year ago, I decided to take Albert Banks’ WordPress Netflix plugin, fork it, and maintain it as a new plugin…

I did this because Albert’s version didn’t support newer RSS feeds that Netflix provided, and it lacked some functionality that I desperately wanted to have (displaying movie reviews I’ve written on the Netflix site). So, I decided to maintain my own version for better, and for worse.

My interest and motivation to work on this plugin has drastically diminished lately – but today I got a transfusion of sheer inspiration to do some much needed house-keeping. Ever since it’s inception in 2006 with Albert’s first version – this plugin has used functions from MagpieRSS to ingest and parse the RSS feeds. Well, unbeknown to me this library has not been maintained since 2005 and never even made it out of beta status (even though wordpress’ rss.php include file has it built in?). I decided to bite the bullet today and make some modifications to my plugin… Most notably it’s now using fetch_feed function from SimplePie vs Magpie’s fetch_rss function.

I had to modify some of my other code for pulling descriptions, titles, and links – but one of the users of my plugin had already started that for me so I just had to take it the last mile.

I did some other random cleanup, removed the annoying ^M characters that always seem to get in there when going from windows to linux, and I now call the rss.php include file instead of the depreciated rss-functions.php file. All in all, it was a good day for the Netflix-X2 plugin… maybe some day I will get around to improving the widget configuration! Right now it just hacks together an unordered-list style widget and gives no other options. but, hey… at least it is widgetized!

Feel free to try the plugin out:
Download the latest release: http://downloads.wordpress.org/plugin/netflix-x2.1.3.zip

Trials HD “Marathon” Achievement

I am one persistent, stubborn, ornery ass son-of-a-bitch.

Trials HD is an amazingly fun motorcycle game.  Sort of like the old-school “Excitebike” game with a modern twist.  I have really enjoyed playing this game backwards and forwards; enduring literally countless moto-bike spills, endless attempt at completing nearly impossible tracks, and having a blast doing it.  GG Trials HD.

Enter the “Marathon” Achievement.

This achievement is ridiculously hard.  You have to complete a 20-track long tournament, straight through, without falling or retrying even once.  It’s so hard, that the developers actually swapped out a couple tracks with a recent update to try to make it even remotely a possibility to attain.  Anyone that has ever played Trials HD knows that it’s a pretty significant challenge just to get through some of the tracks in that game.  Period.  The game is even nice enough to keep track of your retries and falls for you (counted as ‘faults’) – and this is a counter that I have driven up into the hundreds and hundreds.  The mere thought of attempting to conquer TWENTY tracks…. Straight… in one singular tournament without a single fault is just a staggering premise.

Yet, I found that this was the only achievement I was lacking in this game.  I had to get it.  Had to.

“It’s impossible – Just give up” – I heard from several different people including my Wife, my Brother (happy birthday apparently), and even my own self.  And really; I was starting to think that was the honest truth.  This is damn near impossible to accomplish.  But I had set my mind to it.  I had to accomplish it.  There was no way I was giving up.

I started thinking about all the easy achievement points I’ve been getting recently…  Blasting from a 9,000 gamer score to over 15,000 in just a couple of weeks.  All those painfully easy achievement points demanded a penance of blood.  A consequence of my choice to pursue them.  I had to validate my gamer status, even if only to myself.  I felt a need to justify my gamer score, and that this impossibly difficult achievement would do so.  I simply had to get the Marathon achievement.

I don’t know if I’ve ever worked so hard at something in all of my life.  I have spent an un-trackable amount of time meticulously analyzing and honing skills on all 20 tracks.  It’s so frustrating, because if you fall on the 17th track out of 20 – you still have to start from track 1 in order to get the achievement.  It really seemed like the world did not want me to succeed – on probably my best run ever; my xbox froze once on track 18 while I had 0 falls.  Just a soul crushing event.

I kept grinding it out.  I kept analyzing the harder parts of each track and forming an exact strategy and pattern for each obstacle, trying to do the same thing every time.  I kept trying.  I kept re-trying.  I don’t have any official stats but I wouldn’t be surprised if I have played these tracks up to a thousand times.  It’s just completely ridiculous.

But I started to notice it getting easier.  I found myself getting further and further, and more often.  I got to a point where I started to notice myself getting to tracks 15,16,17 pretty regularly without falling.

And, then, FINALLY… Today, after weeks of pursuing the 40 point “Marathon” achievement – I have succeeded.  I got through a couple close calls, frequently paused and nervously tried to compose myself before moving into the 19th and 20th tracks…  I made it.  I finally survived this rancid despicable ordeal.  I feel amazingly good right now, extremely proud of my hard works’ eventual success.  February 14th lives onto a tri-fecta of celebration.  My beloved brother’s birthday, Valentine’s day, and the day I got the Marathon achievement in Trials HD.

All I can say, once again, is I am one persistent, stubborn, ornery ass son-of-a-bitch.

24: Season 8

[SPOILERS FROM VARIOUS SEASONS INCLUDING SEASON 8.   IF YOU’VE NOT SEEN EVERY EPISODE OF 24 THEN READ AT YOUR OWN RISK]

…   …

24 has been a staple of my adult life.

From watching season 1 on DVD in pretty much a single sitting, to various fights and “plant activites” with Vanlandw, the awe-inspiring fate of Nina Meyers, and Edgar’s famous “CHLOE?!… AAARHRH” scene – The list of memories goes on and on.

But, for as much amazing and compelling drama as this show has produced; it has produced at least the equal amount of complete BS and sheer annoyance.  This trend seems to be correlated with each new season that has been released; with the exception of perhaps season 5.  With seasons 1 and 2 being near perfection; I think it’s almost a shame what this show has now become.  So begins my hatred and critique of Season 8.

I somehow managed to watch all of season 7.  I SOMEHOW looked past zombie-Tony.  I somehow looked past the over-use of “Oh… Are you going to torture him Jack?”.  I somehow looked past the constantly changing good/bad/good/bad Tony.  And, finally, I would say I was able to look past the annoying women characters.  Read: President Taylor; Renae; Chloe; President Taylor’s bitch daughter.  Really, the show is physically incapable of producing a female character that I do not hate with fiery brimstone furiousness.

I was going to try to reserve judgment on this season to let it get at least half way through – but it’s just not possible.  The list of complete BS that I feel the need to call out has grown past the tipping point and the spillage shall begin.

  • Chloe:  Why this show continues to kill off interesting and relatable characters whilst keeping this permanent annoyance is just beyond me.  I guess it may help female viewers relate to the show, but she adds merely a layer of stupid woman for all the action and real drama to fight through.  I hate Chloe.  In fact, I hate Chloe so much that I have vetoed it as a possible baby name even though it is my wife’s favorite.
  • Dana Walsh:  Apparently the top counter terrorism agency in the country just fails year after year to do standard background checking procedures.  I’m so sick of the mole/badguy/general shady person plot line in 24.  Dana Walsh apparently has some sort of questionable past that she’s running from.  So, she’s apparently used her amazing level of intelligence to create a new identity and get a new job with CTU.  Her hair is always waved over one shoulder.  And, her face just really bothers me.  Her existence enrages me even further since she’s the fiancée of Cole “Freddy Prinze Jr.” Ortiz.
  • Cole “Freddy Prinze Jr.” Ortiz: He is played by Freddy Prinze Junior.
  • Renae Walker:  Imagine this line being spoken in a Swedish Chef type of voice; Cus that’s how I’m saying it.  “Ooooh I’m Renae Walker and I’ve had such a tough couple years that now I’m a female Jack Bauer.”  Poor Renae.  She had it rough and now she’s an outcast who gets by and gets things done via her renegade attitude.  24 Doesn’t need a female Jack Bauer.  She shouldn’t be on this show in this season.  OH…. MAN… THERE IS A RUSSIAN CRIME SYNDICATE INVOLVED AND APPARENTLY THIS FORMER FBI AGENT JUST HAPPENS TO BE THE BEST RUSSIAN UNDER-COVER OPERATIVE ON THE ENTIRE PLANET!>!>!!>!11..1.>.    bs.
  • CTU Itself:  Chloe.  Mole/badguy.  Blue-tool headsets.  “We have our suspect, this is the only possible scenario – even though strong evidence points otherwise”.  Dumb.
  • The Plot:  The assassination plot has been done before.  The nuclear threat has been done before.  Apparently now they are mixed into the same season.  Jack can’t say the work nuclear correctly.  I hate when people say nuke-u-lar.

So far I am really not impressed with 24, and I’m really doubting I’ll be able to watch it through the rest of this season 8.  CTU feels like a high-school in the valley.  Not a high tech counter-terrorism organization.  This is a pretty big fail.  I don’t like any of the new characters.  I don’t like the ones they’re choosing to bring back.  So far I don’t like the plot.  The only thing I’ve enjoyed this season thus far has been Jack’s kill by way of axe to the chest (Vanlandw where is bauercount seriously!).

In my opinion this show has long since run it’s course…  There have been quick glimpses of good television at points over a couple of the most recent seasons – but overall they have become fewer and farther between each other.  I’m growing tired of 24, and that is a very difficult thing to pen.