Small scale servers and power consumtion.

October 28th, 2006 by ltz

Electricity costs is a big and growing issue within the IT world. The fact that larger server parks consume large amounts of electricity is given, however how often do you calculate how much electricity that server you got running somewhere in your house is actually consuming? Here’s my findings in this subject, having a small server currently running barely any load. The question is if its worth even having it running at all.

According to this article from the University of Waterloo, a 40 watt fluorecent overhead lamp draws more power overnight then a modern PC running in safe mode. My guess is that this applies to a client computer and that it would be hard to have a server unit run in safe mode (given that there are some server-load).

An actual electricity measurment would be prefferable, but in my case I have no such tools, and I am willing to settle for an estimate on the consumtion of my servers.

Given the PSU-calculator on this site, the old server computer should draw around 119w / hour. Which totals to around 85 Kw’s per month and around 1020 Kw’s per year.

No monitors, only the server hardware and perhaps some usb devices attached.

Posted in Comp | No Comments »

Camera live motion detection recording with ubuntu linux..

October 28th, 2006 by ltz

This is rather old news, however since I found guides from people explaining how they have spend 10 hours to get this working, I just might have an ubuntu-related guide that does this faster..

Given my local dev-server (1000mhz, 400mb ram) running the latest ubuntu server installation together with my cheap usb1.1 webcam.

Since I’m using the server version, this is the text-based install guide.

  • Given that you have ubuntu installed.
  • Make sure the /etc/apt/sources.list have both universe and backports enabled. (also run “apt-get update” after any change)
  • Run “apt-get -s install motion” and have a quick lock so that any unwanted parts your system installation won’t be removed.
  • run “apt-get install motion”
  • run “apt-get install ffmpeg” (add -s if you which to look over the changes..)
  • plug-in your usb-webcam.
  • run “dmesg” and check if the plug and play detection went ok. It should probably be in any of the later rows if you just recently plugged it in.
  • open /etc/motion/motion.conf (for instance: “pico /etc/motion/motion.conf”)
  • change the settings of your choosing (also check the video-device link).. check the motion website for a good explanation of the settings.. http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
  • after completing the config, run “motion”.. Any errors will display.
  • Check the given directory for image/video-files. given that the camera install went fine.
  • Your installation is complete. Run motion in deamon mode next time (”motion -d”)

Posted in *NIX, Comp | No Comments »

Implementing updating stock chart

October 28th, 2006 by ltz

Trying to update a html-page without having a) annoying refreshes of the entire page, b) a third party framework implementation (ie: Java/Flash/etc..). My experience is that a “third party” implementation more or less makes the best solution however there are alternatives. For instance a simple AJAX-based implementation of such a function would be possible. This also does have its drawbacks, but for now we could look at the possibilities.

Attached is one solution involving PHP and a standard OSI-certified AJAX-framework called Agent AJAX. Please note the drawbacks of this solution. If the client/server connection is poor, the transfers in AJAX might create problems for the Client. You can of course overcome this problem by simply thinking your solution through and for instance creating feedback to the user at any transaction that might fail.

Posted in Programming | No Comments »

Putting this show on the road..

October 27th, 2006 by ltz

Every single day of software development we encounter problems, which we develop solutions for. Every time you develop a solution for a software problem, you can bet yourself there will be a number of people out there that have a better solution for the same problem. My plan is to share, at least my own, small solutions for the daily development problems and maybe someone else can use the information found here to manufacture an even better solution.

The thought behind this website is not to limit the problems to a specific architecture. Google and similiar search engines will do a splended job in indexing this site, making people find what they are after through search engines instead..

Posted in Uncategorized | No Comments »

Pierre Norraeus
Joomla! 1.5 Beta 2 - Red Barchetta