bld-live.dk saving the environment, I think…

28Jul/100

Fitness?!

WHAT? Fitness? HELL NO!!! ... that is what I would have said some years ago.

The fact however, is that it probably would be good for me, and after Chrisser asked if I wanted to start with her, it was a bit hard to say not. Wasn't easy to say yes either, but I did!

The next question is, how much will we actually do it? Hopefully we can pull each other out of the sofa and get our asses down there! :)

Filed under: Uncategorized No Comments
28Jul/100

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...

Filed under: Hardware No Comments
28Jul/100

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;
	}
?>
Filed under: PHP No Comments
28Jul/100

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
Filed under: Hardware Continue reading
28Jul/100

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";
	}
?>
Filed under: PHP No Comments
27Jul/100

AsyncLabs WiShield 2.0 two way communication

My garage door project is starting to expand a bit.

The controller for it will now also monitor my mail box, and send a mail directly to my mobile phone running Android. But to do that best, and in real time, I had to make the WiShield 2.0 and Arduino be able to both recieve the commands from the webpage, telling it to turn the stuff on and off, plus also send a notification to my NAS to tell it that it should send me an email.

After looking a bit in both the server and client example, I noticed that it wasn't that big a difference between them.

I did a bit copy and pasting and edited the code a bit, and here is my result.

Filed under: Arduino Continue reading
24Jul/100

Chill!

Taking some time off coding, and chilling a bit on youtube.

And here is what I can recommend so far:

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

Filed under: Silly No Comments
24Jul/100

My life, according to Facebook

This is what my life contains, according to Facebook...

"Your life is empty. Do you want to delete it?"

Filed under: Silly No Comments
24Jul/100

Arduino Home Remote Control

I once again, again, again and again started a new project. This time it is about controlling an Arduino from a website, and at the still time have a nice and mobile friendly GUI.

The project can be followed here http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1278347111, but I decided to try and make my own version of it. One of the big differences is that I use a MySQL database to store the status from the arduino.

The database is only synchronized every 15th second, or when any of the lights are actually changed. With that change it can easily handle multiple clients at the same time, and even with a faster rate. The original design had a 2000ms refresh delay, and asked the Arduino for each of its pins, this version only asks once. My version runs at 500ms, here is why. One request for status will give something like 1,0 and that is for the first being on, and the second off. The PHP then stores that in the database, along with the time, and then just feeds the other clients that information when they request it. When the information is over 15 seconds old, the Arduino will be asked once again about the status, and it will again be updated in the database. If and of the lights are changed, it will however change right away and due to the only 500ms refresh delay I set it down to, it is close to realtime for all clients, with a maximum 500ms delay from the button is pressed, until everyone see the change.

Filed under: Arduino Continue reading
19Jul/100

My house, before and now

While cleaning up in some old folders, I felt over some old pictures of my house. These are from before we did anything to it, and before the previous owner moved out.

Before