HeiseHeise.com

The Personal Blog of Zach Heise

Dushanbe, Tajikistan 2009
Dushanbe, Tajikistan 2009

A random image. Reload page for more. Want more info?

Category: Internet

  • Updated at last

    It’s been almost a year and a half since WordPress 2.9 came out, and I recall being excited as usual as I readied the admin page’s “automatic update” function on his website. Then, things ground to a halt and I was coldly informed that my version of MySQL, 4.0.2 or something of the sort, was too old to support WordPress 2.9.

    I contacted this website’s host to see if they could migrate my 4.0.2 SQL database to 5 for me, dryly reminding them that when I built the blog back in 2007, it was on their own pages that they recommended choosing 4 instead of 5 because it was “well-tested and stable” instead of version 5 which was apparently scary and new for everyone back then. My host refused, telling me that I’d need to use phpMyAdmin to manually back up everything in my blog (a rather large 16 MB pile of text in SQL format; it takes Notepad 3 minutes to open it) and then reimport it into a new version 5 MySQL database.

    That was back in February 2010, and thanks to lots of other irate users suffering from the same issue, there was no shortage on instructions for doing some SQL database tweaking. However, no one else seemed to have my problem, which was that re-importing into MySQL 5 destroyed all of my Arabic characters and replaced them with garbage text. Stymied, irritated, and in the process of getting ready for my trip to Egypt the following month, I decided just to stick with WordPress 2.8.6 until I got around to figuring out how to fix the problem.

    Fast-forward to now. Sony, Sega, Nintendo, CIA.gov, Bank of America, and dozens of other big-ticket websites are being hacked on a regular basis, and script kiddies (talentless hackers who use pre-made scripts to hunt for websites with vulnerabilities, instead of doing the research/attack on their own) are coming out of the woodwork to infest any website they can with Trojan downloaders to ensnare people using Google and Google Image Search.

    Over the past few weeks, I’ve winced as I’ve read these articles and thought of my own poor, dust-collecting HeiseHeise.com. I’m not so vain that I think that any hacker would actually target my site directly (if I was that shallow and self-centered/boring, I’d just use Twitter and tell you what I was eating for lunch and how cute my nonexistent cats are), but it would be simple for a coder to just use scripts to scan the internet for websites using outdated versions of WordPress. WordPress is, you have to remember, the most famous and widely used Content Management System in the world, and just like the Windows operating system, is a fat and juicy target for the sharks out there. If my site was discovered in an automated search like that, I didn’t want to be the unlucky discoverer of a remote takeover security hole, and own up to the embarrassment of not practicing what I’ve preached for years to friends, family, and students: I haven’t kept my blog software up to date.

    That was this morning. I’m pleased to say I’m writing this to you from a brand-new database on a freshly upgraded copy of WordPress 3.1.3. It probably doesn’t – and shouldn’t – look any different to you. All of the improvements have been made on the administrative side of things, or deep within the system code to hopefully batten down the hatches. What was the fix I finally discovered? This lengthy page on the WordPress Codex* explained that before WordPress 3.0, there was no function in the configuration files to ensure that the blog’s database was being stored in the universal internet character set, UTF-8, so things were probably being written as ASCII, the outdated Latin-text-only character set which no one on the internet should be using anymore (it’s 2011; global village; internet should be in all languages, etc etc). So I ran the SQL command to convert all my posts to ASCII, then into binary, and then into UTF-8 and bam…it was solved. I couldn’t believe my eyes. I backed up the fresh MySQL 5 database and the WordPress 2.8.6 files, and while holding my breath, clicked the update button that I hadn’t clicked in over a year. No halt this time…”Update has completed successfully” greeted me within 30 seconds.

    So there’s a bit of a load off my shoulders. It’s past midnight now, and I’m writing this entry after spending a couple hours going through some of my favorite old entries from Jordan, like biking in the Dead 2 Red, visiting Sheikh Suliman in Ghor Safi, and of course hiking the amazing wadis with my friends. Heck, I even read through the entry I wrote right after I had reformatted this computer and put Windows 7 on it after getting infected by the W32/Sality malware. It was a well-written article.

    As a final note, I did notice that although the Arabic in my posts themselves was spared – thank goodness – after updating from 2.8.6 to 3.1.3 the non-Latin characters in comments vanished, and I had to go through and correct them by hand. Thankfully there hasn’t been many, but if you happen to see anything on the site that looks like ???? ???? please let me know – that probably used to be العربية – Arabic text.

    *Why didn’t I use that page back in February 2010? If you scroll down on that page, you’ll notice an author comments that the page was completely revamped in October 2010 because it had gotten so out of date. The information that could have helped me probably did not exist when I was searching right after 2.9 was released.

  • New Cycling Jordan website

    I think I’ve set a new record so far for non-updating in the month of May. I feel like I’m either getting lazier with the blog or just getting busier in general and the two are definitely proving to be mutually exclusive. Having done the amateur blogging “thing” for the past 3 years now (mid May 2007 when I left for Great Britain) I’m constantly amazed when I find other talented bloggers and see how they can juggle jobs and near-daily writing. Maybe my hands are just getting old and stiff. That probably can’t be good in my line of work.

    Technically, the content is (currently) much like the former. But the potential for greatness is much higher!
    Technically, the content is (currently) much like the former. But the potential for greatness is much higher!

    I just finished off the Cycling Jordan website yesterday and made it live. The new site has some cool updates which I mention on its front page. Like the EntityGreen.com and WhitmanAcademy.org sites, they’re all based on the incredible WordPress open-source engine. I have to hand it to those guys, they really have brought personal web publication to the masses; I can crank out sites in 2-3 weeks with their software if I wanted to.

    Saad and I first started working on this site back in January, though. I was really busy with some other projects at the time, namely the Training for Trainers (ToT) educational program for Iraqi vocational trainers. I gave him a ballpark estimate of a couple months, and although I got it finished within that time frame, between our two busy schedules and our friend Sari, who will be managing the site, we never got around to making it live until just now.

    The old site was also WordPress, but the company that designed it were incompetent and also never taught Saad how to update it himself
    The old site was also WordPress, but the company that designed it were incompetent and also never taught Saad how to update it himself

    So, if you’re ever in Jordan and looking for the best cycling experience that the country can offer. I’ll go so far as to say indisputably, because the other two (Tareef and Bike Rush) aren’t even in the same level of competition and don’t even sell bicycles.

  • Wrestling with W32/Sality

    It’s been an interesting couple of days, by which I mean bad. After almost ten years of working as a technician including for both the University of Wisconsin and now here in Amman, I was (almost) beaten down by a virus. A particularly nasty one.

    Sality = COMPUTER AIDS

    When I taught my class, I would always teach my students about one virus in particular, the one named after a particularly nasty nuclear reactor explosion, the W32/Chernobyl virus which could actually eat into your computer’s BIOS and then tell it to overwrite itself into blankness. Unless you happened to have a BIOS flash programmer and the wherewithal to undo the solder joints holding the BIOS chip in place…this usually meant a completely fried motherboard, resulting in a new purchase. How many other viruses have you heard of that can actually physically damage computers? Not too many.

    The one that has now merrily written itself all over my laptop’s hard drive is called the W32/Sality, variant AQ or AN, depending on which vendor you ask (in fact, it may even be something entirely new, which I’ll get to later). The Sality is one of the infamous types known as “Patching Viruses,” and their methods of spreading and eluding deletion are diabolical. Basically, a patching virus does exactly what it sounds like. When you hear of someone “patching” their own computer, it usually means with updates, like Windows Update, which overwrites or updates program and system files with newer, better versions. Sality does the same, except replace “better” with “evil.” It is able to actually insert its own viral code into a program’s .EXE file, which is how 99% of standard Windows applications start themselves up. Does this sound familiar? Once the program, any program’s .EXE file is affected, like Firefox.exe or Mspaint.exe, the sality writes itself into the last section of the .EXE file’s code and runs itself whenever that .EXE is run. Since almost every application, including antivirus systems, on a Windows computer is made of EXE files, this can be a problem.

    To put it bluntly, there is 100% no way to remove this virus from within Windows. It’s impossible. Every time you try to scan it, it will merely eat your scanner and turn it into an infected virus-loader. The only possible chance to fight it is to use a program which can “disinfect” these viruses, but it has to be outside of the normal Windows operating system, preferably in a Linux boot CD that is immune to .EXE harvesting. I’ve always generically titled these systems “Alternative Boot Environments” or A.B.E. – or just ABE, for short (patent pending). Dr Web’s cleaner boot CD is particularly good ABE for evading .EXE patching. You have to be careful not to use a ham-fisted antivirus program that merely deletes everything it finds as a virus, because that would now mean deleting every program on your computer and somewhere a virus-writer would cackle with glee.

    So how did this happen to a guy like me, with a decade of experience in the field? Well, I’ll be completely honest and tell you that I haven’t used antivirus programs in years on my personal computers, desktops or laptops. Don’t get me wrong; in my years at DoIT in Madison and working as a consultant, I have always been extremely diligent in making sure that computers are protected. But I always figured that antivirus programs are for people who make bad decisions and let their computers get infected.

    And guess what? I’m still right…that’s exactly who they’re for. But this virus, Sality, outsmarted me for a split-second and that was all it took. I was down in Ayn al Basha doing some work on some photos for the Entity Green Training website with Lillie. I had made a shared folder on my laptop for her, named “Lillie” and we were passing around photos that needed to be re-sized for web use. I noticed a strange folder on my computer I didn’t remember making there, and figured that since she had write access to my computer’s shared folders, she had just made it. I didn’t notice until a second after I double-clicked it that the folder “icon” was a pixelated application icon, shaped like a Windows folder, and even more foolishly, that it was named Lillie.exe…not “Lillie” like a folder should be. I’m lucky that I had the “show file extensions” enabled on my computer – I still think that Microsoft disabling those by default is the dumbest thing in their history as software writers – otherwise, there would have been almost no way to visibly recognize this as a virus. It would have merely said “Lillie” and looked like a folder.

    Seconds after I double-clicked that fateful file, my computer immediately betrayed signs that it was going into action. The hard drive spun up over my knee, the CPU usage shot up, and everything briefly slowed. Before I even drew my next breath I knew what I’d done and probably filled the air with a few expletives. It was too late by now, of course. The Sality had taken my computer, and now it was going to be a fight to the death, between the virus and my operating system. As many as 5/6 Sality infections result in the user or technician giving up and reformatting the computer. Literally, this was going to be a fight to the death – either I’d remove the virus, or the operating system would be erased to take it out.

    Let’s go over the symptoms that have made me respect this fearful beast below:

    (more…)

  • Happy Aski-versary!

    happy-askiversaryI noticed this afternoon that the WordPress Askimet spam counter for Heiseheise.com had a major milestone rollover recently: we’ve just hit our 10,000th spam comment. The wonderful spammers that clog and pollute the internet in general and blogs/forums in particular never take a day off. Here are some stats for my two and a half year old site (stat-keeping software is kindly included with Askimet, which is of course also free).

    I got an average of 941 spam comments per month, from October 2008 til now. Interestingly enough though, in December, January, and February, I got less than 100 per month. I have a kind of morbid curiosity about which spambots find which blogs/forums and how. I wonder about the bot-writer who found my blog. He seems to speak disjointed English. Does he speak Arabic? Is that how he found me? He obviously speaks Russian, due to the number of Russian Viagra comments I’ve received over the years. How quickly did he share my blog with his bot-writing buddies…did he do so right away, selling off the information on a juicy new target for a few pennies. That’s about how much information is worth on the web these days. People like this circulate your stolen credit card information within an hour, and that gets about $5… IF the credit line is still good.

    No, instead I like to think that I was special to him, and he kept my blog secret and all to himself, sending me happy messages of “Thanks you are blog good! I am add you to favourites now! CLICK HERE FOR AMOXICILLIN” in order to let me know he was thinking of me. Those were the good old days, when I only received a few drug-sales messages per day from my penpal-spam-buddy. I named him Raoul.

    However, since he sold me out to the Russians (and Armenians; I’ve found a few spams using the Armenian character set in the past six months) though, things have gotten a bit more verbose. Askimet is a talented, very accurate spam-catcher, but you don’t have to be an expert piece of software to flag a comment that contains more than 50 product links and is over 27,000 characters long. That’s about seven pages in Microsoft Word. Come on guys, that’s just lazy if you think that’s going to ever get past ANY filter.

    That last bit brings me to my blog-update related news. I added a new plugin tonight, “Greg’s Comment Length Limiter” which pretty much does exactly what it says. When I’m quickly perusing the spam folder to make sure that one of my dad’s comments with a few links in it didn’t get systematically filtered out, the last thing I want to do is wait for three dozen 27,000 character posts to load. My goal: perhaps this plugin can help nip those in the bud before I even load fire up the spambox.

    If you like the idea, I encourage you to check it out at the above link as well. Some people have already warned that this plugin is more to prevent actual humans, using Javascript-enabled browsers, from putting typing-diarrhea on your blog. Spam-bots, because they usually don’t use Javascript in their robotic search-and-spam missions, would just beat their way right through. However, the key is in this plugin option: “Truncate – Forcibly Trim the Comment to Length, Then Let it Go Through.” The spam will still get posted, and it will still get dutifully caught by Askimet…but at least now, I only will see a small amount (3,000 characters, by my current whims) of its total length.

    Your move, Raoul!

  • A new website for Whitman

    I just finished up my most recent web project, changing and redesigning Whitman Academy’s webpage to be easier to modify, with more features and “Web 2.0 compliant.” I don’t like using that buzzword because I feel as if it’s way overused, but if you had compared the old site to the new, you’d understand it by way of its definition. I define 2.0 as allowing and encouraging user input back to the website. Web 1.0 would be a newspaper that you read. Web 2.0 is a newspaper that you can read, comment on, and share easily with others.

    The site is not completely done yet (but then, what website ever is?) and I’d like to take some of the Whitman art students’ work and replace the default plant photos in the rotating PHP/javascript display, but that may take a little while to get ahold of digital copies of the artwork. And of course, the Gallery at the end of the menu there is still mostly empty, but I hope to fill it up as the year goes on with new pictures. I used the most famous Gallery program, the NextGallery plugin, and the thing is a pure dream to work with; couldn’t be happier.

    As always, I enjoy using WordPress (obviously!) and I found a great theme to use, the Atahualpa. It allowed for completely menu-based CSS modification from a new menu in the Dashboard, which really made my life a lot simpler. I wouldn’t be surprised if the world sees a lot of themes based off of Atahualpa’s design and format out on the web soon.

    My parents arrive in only a few hours now; I’m really excited to go pick them up from the airport at 9. It’s going to be one of the best couple of weeks ever!

  • Implementation of comment-reply feature

    In order to get with the times and WordPress 2.7’s newest features, I’m in the process of modifying the “comment” feature on the blog. One of the major complaints with the older versions of ‘press was that each reader’s comment was essentially isolated from everyone else except for the blog’s owner. However, with a few theme modifications and some tweaking, any blog that started with an older theme (like the heavily customized “Talian” I’m using here) can add the ability to have users reply in a “thread” of comments, each person with the ability to “talk” to the other readers.

    You can already see this in action now, with any blog entry that has already been commented on. the problem is that in the process it also removed my stylization files for the comments section which means that your comments will have this tiny, unmatched little font with missing colors and weird “Gravatars.” The latter is starting to grow on me though, and I think I’ll keep them around even after I get everything else fixed again; it allows me to quickly see the beginning and end of a comment.

    As always, my awed thanks goes out to the WordPress teams and the developers who make this all possible for the blogging world! It seems that anything is possible using their tools if you have some patience and Mountain Dew, and since the Arab variety is even more potently sugary than the American variety, it must be that coding in the Middle East is doubly effective!

    First official concert for Dozan wa Awtar will be tomorrow – story and pictures to follow quickly – I promise!