Archive for March, 2009
Uploading Pictures to Wordpress in IIS
So this is not really office warfare related but I wanted to share with you a problem I have been suffering from that I recently solved. I run my wordpress blog here on IIS for several reasons, mostly because I when I code I prefer aspx. The install was really quite easy and everything went smoothly until I tried to upload images and files. The database would add the entry for the files in the Media Library but they would not be actually uploaded to the server. For a while I “solved” the problem by manually uploading the content to the folder it was supposed to be in, just recently I decided it was to frustrating and that I was going to fix the problem. I started in the obvious place, Google, and came up with this link that got me part way there and filled me in on some enlightening stuff about php temp files. However I still could not upload files. After much digging around in wordpress on my own I found a setting that was a fault.
Under Settings->Miscellaneous in my dashboard I found a setting “Store uploads in this folder” which for some reason was preconfigured to
“/homepages/55/a234577809/htdocs/dir/wp-content/uploads”
I simply changed that to be
“wp-content/uploads”
and voila everything works now. Simple but hard to find tucked away in the Miscellaneous section of the Settings.
1 commentWorld of Warcraft Dismounting Addon MountHelper
This is my first WoW addon specifically designed to annoy people in the grand tradition of OfficeWarfare. Now most of us know someone who plays World of Warcraft, some of us probably play it for that matter. And hopefully most of you reading this have a healthy desire to annoy your friends that play WoW. If you do you have come to the right place. MountHelper an addon written by yours truly is specifically designed to annoy people who play WoW.
All you do is copy the files in the zip (see below) to a persons WoW installation folder under Interface\AddOns. Then when they log in to play WoW they will be greeted by a big fat nothing different. But what they don’t know is that silently in the background MountHelper is rolling the dice and if they loose the toss (~.5%) they will be dismounted with no indication as to why. Now I intentionally made the percent low so that it wont happen often. But I am looking forward to the time when your friend gets dismounted while farming on their epic mount from WAY to high up to survive.
One other thing in the interest of full disclosure because I would never want anyone to say I sneak extra stuff into my code, when your friend is dismounted they will join the OfficeWarfare channel in WoW and announce, “Dismounted by MountHelper” the idea being those of us that know about it can join that channel and chuckle as people get dismounted.
That is all there is to it, enjoy.
No commentsIndex.dat or Reading your temporary internet files via code
I recently picked back up the amusing art of spidering, something I had played with some years ago but decided to revisit with the intention of improving my methods. One thing that always bothered me about spidering, at least the way I did it, is downloading pictures for the pages you spider even though they may already be cached in the temporary internet files folder.
So I finally decided to brave the temporary internet files folder on my computer and write a little code to go with it. Here is what I found.
No comments