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
Etiketter: Alpha, Browsers, Developer, Opera 10.5, Snapshot
Postat i General, Software, Web Development | Inga kommentarer »
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:

Etiketter: Active Window Display, ActiveMSN, Download, MSN, Rudi Visser, Software, Windows Live Messenger, WLM
Postat i Software | Inga kommentarer »
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.
Etiketter: Apache, IIS, PHP, Proxy, Request Forwarder, Script, Server Move
Postat i Software, Web Development | Inga kommentarer »
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`;
}
}
}
?>
Etiketter: Anti-Dos, Flooding, Hacking, Linux, PHP, SYN_REC
Postat i Operating Systems, Software | Inga kommentarer »
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.
Etiketter: Battlefield, DICE, EA, EA DICE, Gaming, Multiplayer, Online, PS3
Postat i General, Reviews | Inga kommentarer »
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

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
Etiketter: Browser, Opera, Opera 10.5, Opera Desktop Team, Pre-Alpha, Review, Software
Postat i Reviews, Software, Web Development | Inga kommentarer »
5 december, 2009
Sorry, I’ve ”integrated” the blog into this new site design very quickly, so I’m aware that there’s going to be a couple of issues with styling somewhere along the line (like the code tags!).
I’m also more than aware that the blog’s in Swedish (and it will be staying in Swedish) regardless of what language you have chosen to browse the site in. This is primarily because I’m lazy, and there’s not really that much 99% of people couldn’t work out anyway
Anyway, it’s all back online now, will be finally resubmitting the sitemap to Google’s Webmaster Tools to make sure everything gets indexed correctly – and I look forward to any comments you may have on any of the past / future posts on this blog.
Rudi
Etiketter: Blog Theme, Languages, Site Theme, Sitemap, Sorry
Postat i General | Inga kommentarer »
3 november, 2009
warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for xxxxx@xxxxxx.com in PATH at line XXX.
This is most commonly applicable to Windows Servers.
The fix is simple and takes just 8 clicks to rectify.
Open inetmgr (IIS Manager)
Expand the (local computer) treeview
Right-Click ”Default SMTP Virtual Server”
Click Properties
Click Access
Click Relay…
Click Add… and type in the IP Address box ”127.0.0.1″
Click OK
Problem fixed.
Etiketter: 550, Error, mail, PHP, SMTP, Unable to Relay, Warning
Postat i Operating Systems, Web Development | Inga kommentarer »
30 oktober, 2009
I decided to jumble tonight up a little, play a game – then work!
Anyway, my game of choice was Tropico 3, I’ve always been a fan of city building games, but never had a chance to try out any of the Tropico series, so why not dive straight in with the latest installment??
Well what can I say about it, it’s GREAT. The missions are actually really fun, complete the first mission (which is challenging enough!) and unlock 3 more, complete them, unlock more – etc. etc. The gameplay’s simple in essence yet rather challening at the core… The first mission’s kindof a breeze compared to the rest, what with rebellions, power management, the US threatening you, your armies rebelling, people sending lots of inhabitants your way and having to cope with housing.
If you think this game’s anything like your normal city builder where you can setup a power grid, road network and residential/industrial zones – you would be wrong. Sim City has the occassional natural disaster, sure, but in Tropico 3, it’s constant pounding of events that are happening at random intervals. Anything from expeditions that go missing and force you to make a choice of what to do to keep relations with the US/USSR, to the random creation of rebels just because they’re not happy with a few things.
I actually found it pretty hard to be able to keep a stable balance between the island’s main revenue, wages, tax, rent, charges in bars etc etc that kept everything in order and kept some money in the treasury. All in all it’s quite a complex game but with very fun gameplay, and I can’t stress that enough.
If you like city builders, stategy games and games that make you think slightly beyond those 2 combined – Tropico 3 is the game for you.
I’ll give it a 4.5/5 stars (not that I plan on reviewing many more games..) and recommend that you get it when it’s released
Etiketter: City Builder, Games, Review, Strategy, Tropico, Tropico 3
Postat i Reviews, Software | Inga kommentarer »
13 augusti, 2009
If you’ve got ffmpeg installed (which, let’s face it, you should have!), there’s a very simple command you can run to start recording your desktop to an mpg file (which is compatible with YouTube!).
Here’s the command (the parts you can change are in bold!):
ffmpeg -f x11grab -s 1440×900 -r 25 -i :0.0 desktoprecord.mpg
-s sets the resolution for capture (and output) which you should change to be your full desktop resolution (or, see below), -r sets the framerate of the record, 25 is optimal (note this cannot be a completely arbritary value… A value such as 10 will not work). -i is the input screen, 0:0 is generally the default. Naturally the last is the output filename.
Now then, I said see below above with a note to resolution, you can record a part of your desktop using the following variation:
ffmpeg -f x11grab -s 300×300 -r 25 -i :0.0+100,100 partdesktop.mpg
As you’ll see, it’s almost exactly the same as above, but this only records a 300×300 video at the offset of 100,100 from the top left of your screen. I’m sure you’ll be able to work out which bits to change
Etiketter: desktop recording, ffmpeg, Linux, mpg recording, screen recording, x11, x11grab, youtube video
Postat i General, Operating Systems, Software | Inga kommentarer »