Archive for the ‘Programming’ Category

WordPress 2.5 + Recapture

Thursday, April 17th, 2008

Version 0.1 of Recapture and WordPress 2.5 do not mix. I apologize for taking so long to announce this, and for being so slow to produce a remedy for this problem. For now, please use the development version of Recapture which seems to be working fine with WordPress 2.5.

http://wordpress.org/extend/plugins/recapture/download/

After this semester ends (in three weeks) I will be able to devote more time to making a newer version. In the meantime, test out the development version and let me know if you discover any bugs. If there are any developers out there that would like to help out with making Recapture look prettier and / or function better, please let me know.

Also, parts of the current development version are courtesy of Josh Moles. Thanks Josh!

This Will Destroy You

Sunday, February 10th, 2008

Thanks to the lovely web-comic Questionable Content, and its creator Jeph Jacques, I am now addicted to the band This Will Destroy You. There is a good chance that you will not like them, because there is a good chance that you think instrumental music is somewhat unnatural and therefore not worthy of your time. Just to let you know, you are quite wrong. If you feel like checking them out though, I would highly recommend listening to “The World Is Our __” and “Threads”. I like them so much that I actually ordered their newest CD shortly after listening to them; it arrived today, along with an effort by a band called “Crimson Spectre” thrown in as I can only assume a bonus of some kind. If anyone would like this CD by Crimson Spectre, you are entitled to it, for I am not a fan.

I need to blog more. By ‘more’ I mean at least once every couple of days. School is keeping me busier than I would like to be, and what little free time I have is spent reading and playing the occasional video game. The thing that drives me crazy about my classes, is the fact that I’m going to learn very little in them. At least for my programming classes, I’ve already taught myself more than what I’m expected to learn. For instance, my php instructor asked me why I didn’t test out.

The other thing that bugs me, is the number of people at my school that equate computers with money–this is far from the truth. Unless you become a super-genius in your area of study, or invent something so radical and useful, that everyone wants to use it. The people that sign up for computer classes at my college are mostly unemployed, middle-aged folk, that are looking to get in on what they perceive to be the greatest scam ever. In one of my classes, a student said these words, “if statements confuse me.” Now, you may not know what an “if” statement is, and I won’t hold it against you if you do not, because there is a good chance that you’re not a programmer, but if you are in a computer programming degree, and expect to use this degree to make your way in this world as a computer programmer, you should have mastered “if” statements by the end of the first week of your intro-level programming class. I consider myself a mediocre programmer; I would not feel comfortable being hired into a programming position higher than intern or junior, and the sad fact is that I know I am a better programmer than the majority of the people that will graduate with a degree in computer programming from my college.

At the time of this writing, Recapture has been downloaded 130 times. I have yet to receive any hate mail, and registration spam has virtual stopped on my blog (though an occasional one slips through the cracks). I would like to hear how it’s working for other people, if any of them would be kind enough to send me a note.

Centering images with WordPress

Tuesday, January 15th, 2008

Can be the devil, depending on how your theme is configured and how good you are at CSS. Tonight, I struggled for longer than my geek-pride will let me admit, to get Jen’s blog to display centered images. Basically, if you have a section in your stylesheet that goes something like this:

.entry img {
border: 1px solid #888;
float: left;
margin: 5px 10px 5px 0;
}

Comment out the “float: left” like this:

.entry img {
border: 1px solid #888;
/*float: left;*/
margin: 5px 10px 5px 0;
}

Then you will be able to center images in the visual editor by clicking on an image and then the ‘align center’ button. Now, I will be the first to admit that there might be a better way of going about this, but what you see above worked for me, and will hopefully continue to work and not break something else. If anyone has a better solution / workaround, please let me know.

The above code is to make an image centered in the post, with text above and below the image. If you’re trying to center an image and wrap text around it, I cannot help you and I have not tested the above to see if that will work (wrapping text all the way around an image, is just silly in my opinion).

Snow-rape 2007 redux

Tuesday, December 18th, 2007

Yeah, it’s really cold outside right now. We got an insane amount of snow last Saturday and it looks as though we’re going to be getting more this weekend. I drove to work in an icy tomb this morning; this could have been prevented if I woke up in enough time to let my car idle for a few minutes, but I’m lazy and tired upon awakening. I’m also too lazy to get all bundled up to simply start a car, which means that my desire and motivation to exit the house at 7:50 AM when it’s 15 degrees Fahrenheit outside is next to nill.

In other news, Zelda – Phantom Hourglass is easily one of the best games for the DS. In fact, I would go so far as to say that it is a reason to own a DS in the first place. I picked it up last weekend (along with a crimson and black DS Lite) and have been playing it whenever possible. Now if I could only find a Wii…

Also I ‘finished’ my first plugin for WordPress. I call it ‘Recapture’ for it shall save the bloggers from user registration spam, or something like that. That last sentence was not intended to make sense. I’ve had it running on this site for about a week now, and it has blocked six bad registration attempts. Some experts might tell you that the code is not that pretty (that’s why it’s beta!), but at least until WordPress comes with its own integrated solution (or bundled plugin) this will have to do. If anyone should stumble upon this and has any commentary on the plugin itself, please contact me. For my next feat, I may have to see about getting this to work on WordPress MU (which I have never used).

WordPress registration spam is the devil

Friday, December 7th, 2007

I’ve been getting quite a bit of registration spam recently, and it’s really ticking me off. So, tonight instead of doing my homework, I decided to write a plugin that will ‘hopefully’ take care of the problem. At this point, it is hacked together quite badly, and is not user friendly at all, but I plan on changing that this weekend (after my homework). Would anyone like to test it out before I release it to the world? It uses reCAPTCHA so you’ll have to sign up for a free public and private key at their site. I’m not sure that it works one-hundred-percent of the time yet, but I’m logging failed attempts to the database, so we should know within a few days.