Author: Ben

  • I’ve started Coding

    I’ve finally started coding my site, currently the layout is exactly the same as the current site, not that that’s a bad thing, but meh. I’d rather get the backend code working properly before I even think about any form of design.

    Hopefully using the templateing system that I’ve implemented I’ll be able to do layout tweaks without even touching the actual php code, and maybe even devise way of changing the template, whether this will be user based or not I’ve yet to decide – but the code is there.

    I’m also looking into some spam protection, as I’m fed up of deleting the stuff, currently I’ve managed to keep it down by blocking one net range, but I’d rather not go ban happy as it may actually block out legitimate users – something I’d rather not do at all.

    The code I have so far, whilst being really early on in the processes is a lot tidier than my old code, and I’m actually commenting it this time, so I know what the hell stuff does LOL.

    For those of you who’ve seen parts of the code, I’ve stopped with the stupid variable names (I had shit like $cheese, before LOL) and actually used half sensible shit this time.

    And the database is actually going to use proper data types this time, and some keys, so this might actually speed up the process.

    Pagination is also on my list, as with 500+ quotes (well there won’t be soon, I’m cleaning that out, lots of repetition, and generally unfunny stuff), and 50 posts, it’s beginning to get annoying to read.

    The worst part of all of this shall be transferring the data from one database to another. I’m not going to keep the site counter, that shall be restarted, and I’m going to – as I’ve already said, cleaning out the quotes database.

    For anyone who actually is bored enough to want to see how I’m getting on, here’s the URL for the test site – bear in mind this probably won’t work half the time, due to me screwing with it.

    http://bod.sytes.net/omgnew2

  • Lol, starting…slowly.

    So yeah, I’ve kind of started my new site, just creating the DB at the moment. Using some sense this time, like using proper data types etc, so the site might not run at the speed of a slug swimming in treacle.

    Hopefully I can start to get to work on the main php code sometime…soon I dunno when.

    But it’s a start :P.

  • This site…

    Seriously needs an update.

    So yah, in about 2 weeks, when I’ve finished college for good, I’m going to get down to working on this site, as I’ve been neglecting it for aaaaaages. There are a number of things that need to be done.

    I really need to work on more text parsing shit, like possibly bulleted lists, so I don’t have to use gay o’s to do it.

    The entire stats section needs sorting out, I’m going to run most of it as a cron job, to save SQL being raped every time the page is loaded just to do all those sums.

    Every SQL query on the site needs optimising, as MySQL is being used *heavily, I’m seeing like 1GB+ of data being loaded since its start-up (about 80days ago), and that’s just insane for a ~1mb database. I *know* the site hasn’t been loaded that many times.

    The quotes DB needs a bit of a cleanout, there’s a lot of repeating jokes and stuff in there that’s just cluttering things.

    The comments page needs some kind of verification, as I’ve been seeing *insane* amounts of spam on it. The last comment ID that was left was about a week ago was 438 (they’re sequential), and the increment number on SQLs db is like 590. That’s just insane for a week.

    I need to generally tidy all the code of the site, the whole thing is so bad and kinda… hacked, which would explain the dire speed of the site half the time.

    I’m considering upgrading MySQL to 5 from 4.1, this will require a large amount of work as the DB will need to be altered and I may have to change some queries etc.

    The server itself will need some software upgrades; I’m also getting a NAS soon which I will connect to the server too, which means I might as well do a buildworld to upgrade the OS and such.

    I’m also going to generally tidy up the HTML output of the site, as parts of it are…interesting.

    My Admin panel also needs to be revamped, as performing certain duties is just unpleasant.

    And finally, I’m going to work on some pagination stuff, so the quotes DB doesn’t take an age to load.

    So yeah…in about 4 weeks when I’ve finished college and had a rest, I’ll get to work (I hope).

  • Sloooooooooow…

    Something is fucked here, as this site, even from home on a LAN connection is slow as *shite* 😐 I need to find out WTF is going on, as I’m getting page generation times in *minutes* not seconds :|.

    Last night it got so bad I had to restart MySQL since after looking at top, it was taking up *way* too much CPU for simple queries >.<. I dunno WTF has gone on, since a couple of days ago it was perfectly fine, and now its just being a peice of complete and utter shite :|. Everything seems fine for now, as I’m typing this from college and page generation times are fine. The only thing I’ve changed in the last week or so is to install eaccelerator, and that *shouldn’t* do this :|. It’s supposed to make things *faster* if anything :| Someone let me know if this place goes slooow again.

  • New Laptop

    After much deliberation, I got myself a new laptop. Took me quite a while to decide what to get; I was looking at several models, but in the end decided to go for a refurbished model, as you can pickup half decent models from IBM for like £300. And I’d rather do that than pay £400 for a new laptop, sure it’s new, and probably faster, but I’ve seen those things in PC World and such, they suck, they’re huge, have like half an hour of battery life, and wiegh a tonne, and they just generally feel like they’re gonna fall apart after a couple of months of use.

    So I scooted on over to ebay and pulled up all the Thinkpads on buy it now from around £200, and found that I had a choice of several models:

    The T2x Series
    The T3x Series
    The T4x Series
    The R4x Series

    Now, the T3x and T4x series are undoubtedly very powerful machines, how ever the specs I could get would be poor for my buget (£250 inc. VAT and Delivery), I was looking at like 256MB of ram, or in some cases 128 😐 Fuck that.

    The Rx Series of laptops were cheap, and quite powerful. but from the pictures they looked thick. Very thick. And the battery life looked pretty awful.

    In the end I went for a T23, top of the line back in it’s day. I managed to pick up the top model (1.2GHz PIII-M, 512MB RAM and 40GB HDD) for *dirt* cheap.

    Surprisingly, it’s in very good nick, there are no marks or scratches on the case like I’d expect on second hand thinkpads (Since 99% of them are ex corporate), no pressure marks on the screen or anything. The biggest Surprise was the battery. 2 and a half hour life :O. Thats fucking insane for a 5ish year old laptop, and that’s with the wireless card being used and me watching DVDs and such.

    Good luck trying to get that kind of life outta the cheap Acer models down at your local PC store 🙂

    Also, it comes with loads of nifty little details that cheaper models just wouldn’t think of, such as the tiny light on the top of the screen so I can see what I’m typing at night 😀

    All I need now is to buy the little extras I’m gonna need, such as the second battery, inbuilt wireless card, and a DVD-RW Drive.

    Thinkpads > *