Finally!
After years of waiting, it is finally here!
It all started out with a pole in my driveway, and a letter that once again told me that they were coming to dig it down...
... they had already done that once, but that was over a year ago and nothing ever happend...
... this time however, they did come and put the tube in the ground, and blew a innocent looking green wire through...
... even the technician came at the exact time that was agreed upon earlier over phone with their support...
... the lights are now on, and everything is ready... almost...

But this time, it is a problem I can do something about. I should have 50/50 MBit, but 45/42 is the highest I can get through, but I noticed something... My router, a Buffalo WHR-HP-G54-DD running DD-WRT, is running at 100% load when I really use my connection.
My solution to that, is to copy Azuria (the other ugly face here), and set up a VIA EDEN with pfSense on.
Webcams
I have had these camera's up for some time, and have had them online for some time, and then took them off again. This was mostly because I used my ASRock ION330HT to make it all work, and after I decided to no longer have it running 24/7, I had no computer to bring the images online.
Now I finally took the time to make it work again, this time with everything running over my QNAP TS-219P nas instead of the ASRock.
Check them out, you can find them in the top under "Webcams"
I have posted this in multiple categories because I am going to update this with more info about how it all works.
New maws!
After my old Logitech G5 mouse broke it's scroll wheel, and started randomly scroll, I decided to try a cordless mouse. The choice was a Logitech MX1100R, but it only lasted for about a year, plus it was very inaccurate and had a slow response time. After it started act up, I went back to my old wired G5 and stayed with that for over a year, with the scroll wheel broken. Finally it was driving me enough crazy to buy a new, and this time it was a Logitech MX Revolution.
Logitech G5
Good precise all around mouse, but couldn't survive to meet a wall without injury.
Logitech MX1100R
Good mouse for office use, not good for games and broke after only one year. (Left and right click worked opposite randomly, sometimes double clicked when a normal click was made, and sometimes it was holding the left button down without it being held down)
Logitech MX Revolution
Haven't had it for long yet, but it seems like a very good and robust mouse. The weight is right, the buttons are at the right places and the form is perfect. Another really nice thing is the intelligent scroll wheel, where it changes to free wheel depending on the speed defined in the driver. A bad thing though, is the charger for it. There are no connector on the wire, and both the station and power supply are too big to fit through a normal standard cable hole in a desk.
Cat's mouse
I am sure it was with all good intension's, but it just couldn't be used for this...
CURL with image
This is the snippet I use for showing images from internally on my network. The idea is that only the web server is exposed to the internet, so it isn't possible to directly change anything on the picture server.
<?php
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,"http://10.0.0.50:8080/camera.jpg");
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
{
print "Picture unavalible";
}
else
{
header('Content-Type: image/jpeg');
print $buffer;
}
?>
My computer
Decided to clean my computer, and it was needed!
The specs is:
Processor
- Intel i7 920
Mainboard
- Asus P6T Deluxe
Memory
- Patriot 6GB (the version with Micron chips)
Graphics card
- ATI HD4870 1GB
Hard drives
- System: 2x 250GB Samsung F1 - Raid 0
- Backup 1: 1x 1TB Samsung F1
- Backup 2: 1x 750GB Samsung F1
Power supply
- Enermax Galaxy EGA1000EWL (1000W)
Case
- Coolermaster Cosmos S
Check IP range
I needed a little something to check if one of my files was called from an internal IP, and for this I made this little function.
<?php
function validIp($IP)
{
$IP = ip2long($IP);
$StartIP = ip2long("10.0.0.100");
$EndIP = ip2long("10.0.0.150");
if ($IP >= $StartIP && $IP <= $EndIP)
{
return TRUE;
break;
}
return FALSE;
}
$ip = $_SERVER['REMOTE_ADDR'];
if (validIp($ip))
{
echo "Granted";
}
else
{
echo "Denied";
}
?>
Build in x86 on a x64 with Visual C# 2010 Express
I am running Windows 7 x64 (64 bit), but want to compile my programs in x86 (32 bit).
When Microsoft Visual C# 2010 Express is installed, it will as default compile to the same as the platform it is running on, which in my case would be x64.
Multi platform map function
Description
Re-maps a number from one range to another. That is, a value of fromLow would get mapped to toLow, a value of fromHigh to toHigh, values in-between to values in-between, etc.
Example
If you had an input range from 0 to 1023, and wanted an output from 0 to 255, based on the input, it would look like this.
map(val, 0, 1023, 0, 255)
If the input was 511 it would then return 127, because 511 is the half of 1023, and 127 the half of 255 (Rounded both down)
Arduino + C#
long map(long x, long in_min, long in_max, long out_min, long out_max)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
ASP
<% function map(x, in_min, in_max, out_min, out_max) map = (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min end function %>
PHP
<?php
function map($x, $in_min, $in_max, $out_min, $out_max)
{
$total= (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
return $total;
}
?>
LSL
float map(integer x, integer in_min, integer in_max, integer out_min, integer out_max)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
QNAP TS-219P
Bought a QNAP TS-219P from a friend, after a webshop gave up to deliver a working QNAP TC-209.
The TS-219P looks like this, and got a 1.2 ghz Marvell cpu and 512mb ddr2 ram.
Left 4 Dead 2
When I bought the first Left 4 Dead over steam, it was very exciting. Good game play, constant flow of challenges from the growing amount of zombies.
But without ever really updating anything, they made Left 4 Dead 2 instead, and released it as a new game, even when it actually just is an update of the first Left 4 Dead, and then let Francis, Zoey, Louis and Bill down. When that happend, I decided to not buy the new version because the first version was never really a finished game, and had a lack of scenes to go through, and Left 4 Dead 2 was just as expensive as the first, so it would almost be like buying the same game twice.
However! I noticed Left 4 Dead 2 was on discount for only 10.20€, so I finally bought it anyways. Time to give Coach, Ellis, Nick and Rochelle the chance to kick ass!
See you inside.
Update:
Just spend (almost) two fun hours with Chrisser from lameblog.dk and this is defiantly not the last time we try! The new weapons make it more fun, and more variation as you got more to choose between.
Join the steam group and let us find a time where we all can play together http://steamcommunity.com/groups/danishpimps











