Not-Noticeably.net

Skip navigation

4 posts from May 2006

Stupid is as stupid does

Yet again I find myself making stupid blunders.

Guess what I did the other day. No, go on - guess. It has to do with the fact that I released a minor update to PHPAskIt the other day.

...yup, that's right, I left all my database details - complete with passwords and everything - in the config file which I released as part of the .zip file. Now a normal person would check over the files up for release, and make sure that there are no passwords or sensitive information left in them. Or at the very least, download the file once it's been released and make sure all the parts work properly. Did I do that? No. I tested the files on my local PHP installation and assumed everything would work. Then I used one of the fixes on another site, and found out that it didn't work. Why? Because I have PHP5 locally and this other site uses PHP4. No big deal, obviously that function had been updated in PHP5 so I consulted the PHP manual and found a working equivalent for PHP4. I then updated the zip file up for download. Then I noticed a few typos here and there and updated the file around 230943435235 more times. Not once did I notice I'd left all my info in the config file. 3 days later I suddenly ask myself if I'd tested this or that in the new version, so I download the one I'd put online to check if I had added something before I went about tinkering with the code again.
...and there we go, I noticed my own info in the config file. THREE DAYS AFTER RELEASE. I'm surprised I wasn't hacked again since I used that password on my cPanel and stuff. (Note to all hackers and other nosey people: passwords everywhere now changed, so don't bother trying it.)

My boyfriend (whose birthday it was yesterday - and whose present hasn't arrived yet even though I ordered it some time ago) thinks I was blonde in a previous life, or that I'm a natural blonde with dyed hair because of all these stupid blunders I make. :\ Perhaps he's right.

Ooh, but my server time is now corrected. Some new guy has joined my hosts and although last week things were looking a bit shady (I was hacked a total of 3 times and support did absolutely nothing about it) it all looks to be better now. Notice you can actually get to my site now? Yay :)

Dunce alert

18th May 2006 / 9:24

7 comments on "Dunce alert"

Tagged: Geekiness, Hosting, Me, MySQL, PHP, Site

My stupidity knows no bounds, it really doesn't.

So yesterday, I found out I'd been hacked. Nothing major, just a defacement of an old folder I used to use. The whole server had been done and any folders which were writeable had files inserted and others defaced. I stupidly thought that folder would be safe since I'd password-protected it, but obviously not. Anyway, like I said - no big deal, but I decided to change all my passwords just in case. To do this for the databases, I had to delete the MySQL users and recreate them with different passwords and all that. I use cPanel for all this, so in order to delete the MySQL user, I first deleted the user from the access list for the database just in case. Of course, I clicked the wrong delete and managed to delete my entire Wordpress database. :'(

Fortunately I had a recent-ish backup (two days old) so I was able to restore everything (give or take a few comments) but still... cPanel should have a confirmation asking if you're sure you want to delete databases. Grrr. Either that or I should be more careful where I'm clicking.

On a somewhat related note, my server's time is messed up. I keep having to change the offsets and it's really annoying me. Right now it's almost an hour fast - a gmdate() function reveals the GMT time to be almost an hour fast, anyway. I asked support about it and they said they would look into it, but so far nothing seems to have changed. :(

*Sigh*

11th May 2006 / 22:49

9 comments on "*Sigh*"

Tagged: Computers, Geekiness, Internet, Me, Rambling

Remember this post, in which I said I'd found the best mouse in the world? I got that mouse shortly after posting about it, and then a few months later, dropped and broke it. It still worked, so I just stuck it back together again with some sticky tape. This was all well and good for two years - a couple of times it would do weird things due to its broken-ness, but up until Monday it was fine. On Monday, it started to phase out a bit. Weird. On Tuesday I got messages everywhere saying "The USB device has malfunctioned"... but a quick disconnect/reconnect fixed that. Yesterday the connection from the wire to the actual mouse was screwing up. Move the wire, mouse went out. Move it back again, mouse fine. This all started on Monday when I untangled the cable... I tried tangling it back up but that didn't help. Anyway, yesterday evening things were getting worse so I decided to buy a new mouse (the same model). Good thing too, today the mouse died completely. :( Waaaaah. New one's due tomorrow and I hope it gets here soon - using this touchpad isn't very convenient. :\

Now then, everyone go and visit Katy because she has a new site layout and everything and she needs friends hits. :P

Edit on 13/5/06: Hurrah! New mouse is here. A day later than planned, but here all the same. It's a lot quicker and more click-happy than my old one... I keep clicking things I don't mean to and missing things I do mean to click on... Also got our new fridge/freezer today. Landlord came round last week and we told him our present 10+ year old one was leaking (quite badly...), so he got us a new one. :D Yay! We do have to wait about 6 hours before we can put anything in it, but they offered to keep some of our frozen stuff for us until then so hopefully nothing will go off. *Crosses fingers*

Older Entries