Arkiv för januari, 2010

Back to Opera 10.5

söndag, 31 januari, 2010

Okay so my computer broke down last week so I’ve had to buy a new one… I’m ashamed to admit that the first thing I downloaded/installed was Safari 4! It’s pretty alright…

Anyway I was waiting for the new snapshot of Opera 10.5 to come out as the last one they released was fairly unstable to be used as a primary browser! It also broke Developer Tools, which is one of the primary reasons Opera is amazing…

Yesterday, they released a new version of Opera 10.5, and it’s pretty awesome. Not only does my glass-only theme work/look better, it’s a hell of alot more stable, the menus are more organised (although I don’t like the long-winded way of getting to the Developers tools).

It’s also a hell of alot faster. Compared to the past snapshots, Safari outperformed them, of course browser speed is just a farse generally used by Firefox users because they’re l337 – So I only noticed this on 1 website. Needless to say, Opera’s engine is back up to scratch, and rendering stuff faster than Safari does too! Yippeeee!

If you haven’t tried Opera 10.5 yet, I really recommend you do – Whether you’re a Firefox fanboy or IE muppet.

Latest release here – Desktop Team Blog

On an unrelated note: I’ve been using a Mac for a while, and it was pretty nice to see how well Opera worked on it!

BTW: Developer Tools arn’t back in the latest snapshot of 10.5, neeeeeeeeeed them :(

Rudi’s ActiveMSN Re-Release – Show Active Window in MSN/WLM

onsdag, 6 januari, 2010

Something weird I’ve noticed in stats tracking for my site is that I’m getting hell of alot of hits for the search ”ActiveMSN Rudi”.

ActiveMSN is a tool that shows the window you’re currently using (the active window) in the ”Music” part of Windows Live Messenger. You’re able to block certain windows from being shown (eg. when you’re having special time to yourself late at night and don’t want others to see), and be able to configure certain text to show for different applications.

Turns out that it must have been popular, which I never really expected! Going to upload it to a couple of software sharing sites (SoftPedia, etc) now too. Might aswell get it out there, pretty neat tool if I may say so myself.

Download here: http://www.rudiv.se/software/ActiveMSN.exe

Screenshot:

ActiveMSN Screenshot

PHP Request Forwarder (PHP Proxy)

tisdag, 5 januari, 2010

In some cases, a server move for example (with partially-uncontrollable DNS), it may be required to forward requests for a file to a seperate server.

Here’s something extremely basic that I came up with. You can set $IP and $URL however you want.. The below script was called index.php, a global site was setup within IIS6, and all requests yielding a 404 were forwarded to it.

Basic Linux Anti-Dos, Anti SYN_REC Flood

tisdag, 5 januari, 2010

Something I’ve been meaning to post for a while is a script that is surprisingly very helpful during times of a SYN_REC flooding attack on a linux server.

It basically consists of a PHP script, a .sh script, and a line in your cron file.

As you’ll see, everything’s done using absolute paths, so feel free to change them to whatever you like. The ”offending” IPs are instantly banned from the server via IPTables, and before anyone says it, the PHP is only there for ease of use, I’m well aware that this could all be done in a single file.

In addition to the two scripts below, stick a basic line in your crontab that will run the .sh every minute. This will in turn invoke the PHP script to handle the processing of the file. If you don’t know how to stick a line in your crontab that will do this, you shouldn’t really be running a server :)

synstop.sh

#!/bin/bash

netstat -n -p|grep SYN_REC > /root/syndump.txt
# For damage assessment
#netstat -n -p|grep SYN_REC > /root/log_syndump.txt
#uptime > /root/log_uptime.txt
#netstat -n -p > /root/log_complete.txt
php -d disable_functions -d safe_mode=0 /root/synstop.php

synstop.php

<?php
$Out = file_get_contents("/root/syndump.txt");
$Lines = explode("\n", $Out);
if(count($Lines) > 15) {

        $IPArr = array();
        foreach($Lines as $Line) {

preg_match('/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\:[0-9]{3,6}/',
$Line, $Match);
if(isset($Match[1])) {
                if(!isset($IPArr[$Match[1]]))
                        $IPArr[$Match[1]] = array(1);
                else
                        $IPArr[$Match[1]][] = 1;
}
        }
        foreach($IPArr as $Ip => $Arr) {
		// We only want to ban the IPs if they appear more than 3 times. Otherwise it could be normal traffic, and 

we don't want that.
                if(count($Arr) > 3) {
                        $BanCmd = 'iptables -I INPUT -j DROP -s '.$Ip;
                        `$BanCmd`;
                }
        }

}
?>

Battlefield 1943 for Playstation 3

måndag, 4 januari, 2010

Despite my love for EA DICE’s creative talent, I’ve never been a huge fan of the Battlefield series of games. How wrong I was not to be.

Playstation Store’s had some offers on over Christmas, and Battlefield 1943 was reduced by a huge amount, like £1 or something. Anyway, I decided to get it.

I’m in love. Seriously.

For an online only game, where most of the opponents are probably 12 year old teens with nothing better to do, I’ve found myself playing the game virtually non-stop since I bought it. Not only does it involve skill and tactic to be remotely good, it’s amazingly fun to play too.

Unlike Call of Duty’s online gaming, which some people stupidly dismissed this game to be ”copying” – The ability to have dogfights in a plane, pilot landing craft to shore with other players manning the guns, and drive tanks/jeeps to whereever you want to be is just great and seamlessly integrated into the game.

It kindof reminds me of Warhawk on a cheaper, more fun, and smaller scale. So if you like that game, you should definitely consider getting this.

I’ve also ordered Battlefield: Bad Company and pre-ordered BFBC2 aswell, to give the series the benefit of the doubt. I’m quite looking forward to some singleplayer BF now.

Opera 10.5

måndag, 4 januari, 2010

It’s nearly 3am, I can’t sleep for some absolutely retarded reason that I don’t understand.

Anyway, since the new years’ pre-alpha release of Opera 10.5, it’s actually been stable for me (the first release crashed every few minutes).

Now, call me an idiot, but I’m using it as my primary browser. I don’t really care what you say, it’s beautiful, fast, and the new small addition of new features are amazing. Of course, being a pre-alpha, there’s some serious bugs that need to be ironed out (even posting this showed a few bugs..), but I’m still loving it.

If you’re on Windows 7/Vista, and use Opera, I’d seriously recommend trying this out.. Not as your primary browser, though :)

Opera 10.5 Screenshot

You can download Opera 10.5 Pre-Alpha build 3186 here. As Opera’s blog entry says, many things are known not to work, and it will crash, burn and eat the occasional small household appliance. Enjoy :)