Jan
31

Homecontrol using the basic stamp - Web or iPod controlled

lightcontrol_icon.jpgIn this article we are programming the basic stamp to trigger a remote switch for your home lights or any other power switching device, like a garage door, fireplace and so on. We are controlling it through the web or the ipod (the ipod also has a web browser)

How does it work?
After programming the basic stamp, it looks for a specific variable; when it receives this variable we are putting a current on the output pin of the basic stamp. The current switches a relay, this closes the electronic circuit of the remote “klikaan klikuit” transceiver. The variable, where it all starts with, is send through the serial / usb port by a single web page.

more…

Jan
29

Rotating Apache logs using rotatelogs

ApacheI’ve been using Apache for quite some time, having many custom scripts that do chores for me. Recently I was asked to install Apache on a machine, a few yum installs and some editing of the Apache vhost files later I was all set.

Because the site being served by Apache started to grow I noticed that the log files got big, I had completely forgotten to have a script rotate the log files!

At the office we simply have a script that has been doing just that since Apache 1.x, this script also runs fine with Apache 2.x. Because I never use office related scripts anywhere outside the office, I decided to look around and encountered rotatelogs which is included with Apache 2.x.

more…

Jan
25

Installing a Postfix mailserver on CentOS 5

PostfixIn most cases Sendmail is the default MTA (Mail Transfer Agent) for many systems (like with CentOS), it can however be hard to configure or maintain (although it has improved over the last years).

I myself prefer to use postfix for various reasons.

Postfix describes itself as “Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.”

Postfix can be easily installed and configured, just follow the steps ahead.

more…

Jan
22

Mercurial, Distributed revision control

MercurialI’m sure most of you are familier with CVS and Subversion (a compelling replacement for CVS), the latter being a version control system I’ve had some great experiences with. Both CVS and Subversion are Centralised SCM’s (Source Control Management), today I encountered Mercurial which is a Distributed SCM.

To get our terms straight, let me just explain the differences between a Centralised CSM and a Distributed CSM.

more…

Jan
21

iPhone and iPod touch streaming music and video - how to

ipod_touch_webapp_str3.jpgThis is a short preview of a open-source script we wrote. It allows you to acces your content, like music or video to your iphone or ipod touch, streaming. So if your 8GB or 16GB is not enough, there is hope!

Note: this is not the final code but to keep you updated i decided to post my progress.

Things that are not included.
- rating
- number of files
* and some design bugs needed to be fix.

How its done?

  • First you need a (local server) like wamp.
  • Second we add some php files and the conent to the right folders.

Folder structure:
WWW (default)
contains: php and css files.

WWW/my_dirs/albums/
contains: your albums named like: Artist - AlbumName

WWW/my_dirs/movies/
contains: your movies (.mov or .mp4)

Of course you can setup more folder and program other sites, for example like favorites.

The php files makes a listing of the folders and output them in a basic html page, witch the iphone or ipod can view.
When opening the actual files, the iphone or ipod opens the internal quicktime player, so your files can be viewed streaming.

see the screencaptures for more details:

more…

Jan
17

Upgrading from WordPress 2.3.1 to WordPress 2.3.2

I’m pretty sure all the other WordPress bloggers out there noticed the shiny bar in their WordPress admin panels, announcing the release of Wordpress 2.3.2, about 18 days ago.

If there is one thing I hate at the moment, it’s having to upgrade my blog while I’ve done custom modifications and copy all those files by hand. To save all you other folks some hastle, I’ve looked at the actual changes and the adjusted files. Based on my findings I’ve created a simple bash script that updates your blog (and makes a backup before doing so ;))

more…

Jan
14

KDE 4.0 on Fedora Core 8

KDEI’m sure you’ve heard about it, KDE 4.0 has been released!

I can honestly say it looks damn sweet! Unfortunately I quickly learned that KDE 4.0 wouldn’t make it into Fedora 8, it will be made available in Fedora 9 which is scheduled for an April 2008 launch.

If you’re adventurous like me and don’t like to wait that long, here is what you could do.

more…

Jan
07

Programming the Basic Stamp Microcontrollers

bs2-ic-m.jpgBefore we start throwing you guys into the deep we first talk a little about what microcontrollers are and where you can use them.

A microcontroller is an computerchip including a ‘little’ microprocessor. Microcontrollers are frequently used in automatically controlled products and devices, such as automobile engine control systems, remote controls, office machines, appliances, power tools, and toys. By reducing the size, cost, and power consumption compared to a design using a separate microprocessor, memory, and input/output devices, microcontrollers make it economical to electronically control many more processes.

What is the BASIC Stamp microcontroller?

The BASIC Stamp module is a microcontroller developed by Parallax, Inc. which is easily programmed using a form of the BASIC programming language called PBASIC. It is called a “Stamp” simply because it is close to the size of an average postage stamp. The basic stamp is one of the most used Microcontrollers for hobbyist and professionals.

Blinking the led!
i start interesting in microcontrollers when i read an article to use sensors interacting the computer with Adobe director. So a start thinking of what you can make.. Thats alot of fun projects!

After a long trip over the internet i found a book called: physical computing. This book contains al the basics (and advanced) to get started whit the microcontrollers. I would deffinately recommend buying this book! In one of the first chapters you get starting making your own led blinking. Thats what we gonna show you first, because we need this basics to get understanding our future projects!

To keep in mind this is not a replacement for the book physical computing! It only describs the set up for starting bigger projects. We also dont describe the dangers and basics about electronics. For example if you want to know how a ristor operates you have to buy the book!

Get started!
first like you expected, we started with the shopping list:

more…

Jan
06

PHP 4.4.8 and eAccelerator 0.9.5.2 (S)RPM’s for CentOS 5

As I promised yesterday, the RPM’s (i386) for PHP4 can now be downloaded for your convienence.

You can find the SRPM along with the RPM’s. The SRPM was slightly updated since yesterday to fix a small glitch I encountered when trying to build a eAccelerator RPM for CentOS 5.

NOTE: None of the RPM’s are signed at this time, in a while i’ll setup a repository where you will find these files. Obviously those will be signed then.

more…

Jan
06

PHP4 RPM (4.4.8) for CentOS 5

PHP4Although I was initially struggeling, I finally managed to build a PHP4 RPM for CentOS 5 :)

Initially I planned to make tutorial on how I managed to build my RPM (which you can still use), however due to some issues with the original PHP 4.3.9 RPM for CentOS 4 I decided to create a RPM of PHP 4.4.7 (and upgrade to 4.4.8 later).

A few challenges later I managed to cleanly build PHP4 including passing all the needed tests.

UPDATE: See this new post for a slightly new version and eAccelerator RPM’s.

more…

Jan
03

Iphone / Ipod touch controlling remote itunes and winamp (windows)

ipod_touch_webapp2.jpgThe next webapplication we discuss allows you to control itunes and winamp running on windows. without jailbraiking!
In the previous post we explain how you can set up a connection and how you simply launch an app.
But whats the use of that? So in this chapter we learn how to control iTunes and Winamp.

To keep the cost as low as possible we use free plugins. So everybody can follow along, although off course we like to hear other or even better solutions.

Before we start we look at Shopping list:
- Adobe director
- Director shell xtra (free)
- Itunes control trough command line (free)
- Winamp control trough command line (free)

in this quick example we use some different (easy) solutions like the “control trough the command line”. This is actually an extra step that isn’t paticular nesseccary, for example you can write directly an windows message (see next chapter) with the buddy Xtra. The buddy Xtra is a little bit more advanced and not free. So we keep on going the easy way..

There are some different approuches to interact with an program. We dont discuss all the options but two off those are basically sending keys or sendingwindows messages. Because we are now focus on Windows (see remote buddy for the mac) we want to use (the more stable) function sendmessage().

more…

Jan
03

Building PHP4 (RPM) on CentOS 5

As of CentOS 5 you’ll get PHP 5 rpm binaries, if for some reason your old applications aren’t PHP5 compliant yet, this might cause you some difficulties.

Even though PHP4 has it’s EOL as of 31-12-2007, the needed security updates will be done until 2008-08-08. This in my opinion could be a reason to at least make it possible to run PHP4 on CentOS 5. I myself really recommend upgrading to PHP5, it’s just matter of time…

I’ll walk through the process of building PHP4, which is quite a pain (as with any PHP release). If for some reason you wouldn’t want to do it yourself, i’ll try to post the binaries along at some point.

more…

top
-->
© 2007 Deziner Folio. All Rights Reserved. XHTML Theme by: Dezinerfolio