Author name: Trav

Political Commentary

Obama’s Addressing Students on September 8…What’s the Big Deal?

I found out a few days ago that President Obama is going to address the students of the United States on September 8. The Yahoo story I was looking at when I found out the news quoted several people who are outraged. Among other things, they are accusing Obama of trying to brainwash the youth of the nation for some twisted purposes.

I think this attack on the President for trying to tell American students to stay in school and take every advantage they can in getting their education is ridiculous. I’m not a fan of President Obama. For the most part, he’s a snake oil salesman who’s good at giving speeches and making promises. But, in the interest of fairness, I think it’s a good thing he’s actually trying to get our kids to do better in school. I teach high school students, and I really, really worry about this country’s education system. From my daily observations, it’s pretty clear that functional literacy is on the decline. Furthermore, the liberal arts educational ideas popularized in the 1920s that aim to make every educated person have some awareness in several subjects have all but disappeared. My students see no point in knowledge they feel they will never use, and as a result, most have no zeal for knowledge. This lack of zeal is what’s wrong with the country: Too many people want to take the easy route while too few are pushing the envelope in newfangled noble pursuits.

I have reviewed both the lesson plans for the pre-K to 6 grade students and the 7 to 12 grade students which have been released by the US Department of Education.  The verdict: I find no attempt to brainwash students. The only real bias I found was in two pre-speech critical thinking questions in the 7-12 grade plans:

  • How will he inspire us?
  • How will he challenge us?

This is biased because it should pose the questions, “Will [the President] inspire us? How or not?” and “Will [the President] challenge us? How or not?” That being said, it is clear that these plans are just a resource and teachers are encouraged to use and tweak them as they see fit. Aside from the biases above, the plans are solid from an educational standpoint and encourage students to recall and reflect on what the President says in the speech.

My entire opinion may change after the President gives his speech. If he goes off on some liberal tangent and tries to influence children about issues like gay marriage and abortion, then I’ll probably be really upset. I seriously doubt he’ll do this: That would be political suicide, especially considering the honeymoon is over and his approval ratings continue on a path of slow and steady decline.

As it stands right now, though, opponents of this address to students are barking up the wrong tree. I applaud any public figure with some influence who is willing to challenge our students to do something great. If someone doesn’t wake our youth up soon, there may well be no greatness left.

OS X

Here, Kitty Kitty

So, I just installed OS X 10.6, aka Snow Leopard. So far, I feel about like everybody else: There are some neat new UI features, but it’s mostly more of the same, only a little faster.

So far, I like the icon resizing slider in the Icon view. Unlike a lot of reviews I’ve read, I think I’ll use this feature a lot. When I’m searching through a folder of pictures, I think this will make me pretty happy, since I like to be able to make the preview icons bigger without having to use Quick Look (which I’m not really a fan of….I know. Everybody else on the planet is, but not me.) Also, the new Expose view that pops up when you click and hold on something in the Dock is absolutely awesome. I never really used Expose much, since I prefer to click and hold on the icon of the program I’m really interested in to see multiple instances. Now that Expose is a function of doing this, I think it will have much more utility for me.

The reports that iLife apps run faster under 10.6 are correct as far as I’m concerned. Granted, the improvements aren’t that noticeable, but some of the pauses that were present before are gone. I’m pretty sure Apple has tweaked the Color LCD color profile. The colors on my October 2007 MacBook seem more vibrant. This could just be me, though. No one else I know has mentioned this. I stand corrected: Straight from Apple, the default gamma settings have been tweaked by +0.4, so the colors are brighter.

Tech Tips, Web Development/Programming

How to Fix Image Resizing Problem in the Arthemia WordPress Theme

I downloaded the Free Arthemia WordPress theme the other day to use with my students’ FBLA site. I really like how the theme looks like a professional newspaper like the New York Times as wells as how easy it is to add Headline and Featured stories just by assigning a category to them.

One thing I could get working was the images that show up with the Headline and Featured stories when you add the Image custom field to an article. The images would just show up as a red x. When I tried to view them in Firefox, I got the following error:

finfo_open(): Failed to load magic database at ‘/usr/share/misc/magic’.

After poking around on the Internet for a minute, I found that there are some files that PECL finfo uses to sniff out the MIME type of files. Apparently, the files are some sort of flat file database that holds, well, MIME types.  Luckily, I extrapolated a solution after seeing a workaround on a forum. If you’re using Arthemia Free Version 2 and are having the same problem getting your images to load, here’s all you must do.

Replace lines 216-220 of the /wp-content/themes/arthemia/scripts/timthumb.php with the following code:

$file_cmd = "file -ib  \"$file\"";
exec ($file_cmd, $exec_output);
$mime_type =  $exec_output[0];

That’s it! The only other thing you have to make sure to do to get your images to resize and show up properly is to put the absolute path to the images without your domain. So, in my case, I have an image whose full path is:

http://breathittfbla.com/wp-content/uploads/2009/07/foreman.jpg

To make it work, the value for the Image custom field has to be set to:

/wp-content/uploads/2009/07/foreman.jpg

After changing those lines of code and then putting the right file path in the Custom Field, Arthemia is resizing and displaying images in Headlines and Featured Stories without issue.  I hope this helps somebody!

Personal Updates

For Whatever Reason, I Now Eat Lots of White Rice

Anybody that’s known me for awhile knows I’m not a fan of vegetables, other than potatoes. But for whatever reason, I have been addicted to eating white rice for the last few weeks. Beck and I went to Peking’s in Hazard and I had sweet and sour chicken (which was great). It came with a side order of steamed white rice. I ate some…I really enjoyed it. Since then, I have eaten two boxes of instance rice. Beck says rice looks like maggots, and I’m inclined to agree. Dad always said my taste buds would change as I got older, but who knew it would be toward the end of the spectrum where rice lives.

Political Commentary

I Guess the CIA Should Start Putting Out a Newsletter

Dick Cheney is under fire for not disclosing a secret plan to kill Al’Queida leaders at close range to Congress. At what point does Congress need to know military secrets? These are the same people that can’t even conceal their kinky affairs or charges that they have sexually harassed staff. I think we should make our elected officials feel good about themselves by filling them in on extraneous details. Military matters that need to be kept secret, however, are beyond these people. I wish matters were different, but with the way things stand right now, the more we keep these people in the dark, the less they’re going to screw things up.

Tech Tips, Web Development/Programming

WordPress Meta junkies: Use Headspace2

I haven’t been a WordPress user very long, but I have found one plugin that eased a big issue with me: Good meta descriptions in WordPress posts, categories, and archives. Out of the box, WordPress isn’t really equipped o use Excerpts as the Meta Description for a post. Enter Headspace2, which allows WP authors to edit Meta Descriptions to their heart’s content.

Personal Updates

Good Bye, Custom Blog…Hello WordPress

I’ve been debating on whether or not to switch to WordPress for about a year now.  Part of the reason I held off is because I like to write my own software. My custom-written PHP blog setup was tweaked over a period of 6 years. It served as a proof-of-concept for a lot of things I learned how to do in PHP. For being the active testbed, I thank my old blog.

That being said, I just couldn’t resist WordPress any longer.  A lot of really smart coders that I admire use WordPress to manage their blogs and sites. If it is good enough for the best, then it is good enough for me.  I think this will really help me get more ideas out there. I have always enjoyed posting fixes and whatnot that I figure out, but my custom blog was nowhere near this slick. And, I must say, migrating my old blog to WordPress is the most fun coding that I have had in a long time.

OS X, Tech Tips, Web Development/Programming

Solution to Deployment issue using Netbeans 6.5.1 and Tomcat 6.0.22 on OX 10.5.7

Somehow I always find myself in the middle of a very strange computer problem. This particular issue is a result of my wanting to learn to write JSP applications using Netbeans 6.5.1 with Tomcat 6.0.20. I don’t have time to do a full writeup, so here’s a nutshell version of the problem and my solution:

Problem

When I tried to use the Deploy option to push my Netbeans project to my Tomcat webapps folder, the deployment would fail. I could manually copy the .war file into my Tomcat webapps folder and everything would work fine. But, I thought, “Why should I have to do this if Netbeans is supposed to do it for me?”

Solution

Since I’m running OS X 10.5.7, I opened the Netbeans configuration file at

/Applications/NetBeans/NetBeans6.5.1.app/
Contents/Resources/NetBeans/etc/Netbeans.conf

and added the following to the netbeans_default_options line:

-J-Djava.io.tmpdir=/tmp

Note: This must be added within the double quotes. Also, I didn’t distrub anything that was on the line already but merely added that tidbit of code.

Explaination

I found this piece of advice buried deep in a forum. Apparently, Netbeans puts the deployed files into a temporary folder before deploying them. The temporary folder it tries to use on OS X isn’t accessible (a permissions problem I guess). Adding that snippet of code tells Netbeans to use the OS X default temporary folder tmp for its intermediate work.

Enjoy!

Microsoft Windows, Tech Tips

What to do if Cygwin Does Not Work Properly in Vista

So, I tried to install Cygwin on my Windows Vista Business machine today.  The install, via the setup.exe that downloads what you want to install, launched and completed as it always had in WIndows XP. I was pleasantly surprised considering how Vista has refused to install things normally before. Just when I was about to be happy, I clicked on the Cygwin Bash Shell shortcut, the prompt came up, but no commands worked.  Not ls, not dir, not anything! I let out my usual sigh of annoyance and cursed Vista (for the millonth time).

I then proceeded to Google to find a solution.  Nothing. The forum posts pleading for help were responded to with the usual worthless suggestions (such as “Don’t use Vista“) and RTFM talk. I don’t really want to use Vista, but it has been forced upon me and I have little recourse but to use it.  Anyway, after trying a few things that didn’t work, I finally figured out what to do: Set your system path environment to the Cygwin bin directory and everything works fine!

To do that, all you gotta do is follow these simple steps:

  1. Install Cygwin normally with the setup.exe program, selecting what you want to install.  For the purposes of this walkthrough, I’m going to assume you installed Cygwin in the default C:\cygwin location.
  2. Click on the Start Menu (or Windows Orb, for those of you Vista fanboys).
  3. Right Click on Computer, and choose Properties.
  4. Click Advanced system settings in the left-hand context sidebar (and accept the UAC prompt to go proceed as an Administrator).
  5. Click the Advanced tab
  6. Click the Environmental Variables button at the bottom of the dialog.
  7. In the Environment Variables list box, find the variable Path and double click on it
  8. In the resulting Variable Value box, move your cursor to the end of the line of paths already there and add ;C:\cygwin\bin Do not forget the semicolon before the path!

That’s it! Remember, if you installed Cygwin somewhere other that C:\Cygwin, you’ll have to change your path to be different from my example. I’m hoping that if you did a non-standard install that you can figure out how to adjust the path!  I hope this helps somebody!

Scroll to Top