Wednesday, July 29, 2009

How to test web hosting

How to test and select best web hosting provider before buy?


The main purpose of Web hosting is not only hosting your html or some kind of pages from your hosting server. When some provider offers unlimited hosting and they will try to be stable and get some trafic much more.

If your idea is to host with world famous web hosting companies, they will provide some additional features and stable services for you. But we won't pay too much for same resources.

Some web hosting companies have 10GB, 1GB, Dedicated line and they offer your to your public uplink is 100Mbp/s and actively they will give it to your? Most cheep web hosting service providers purchase one IP with 100Mbp/s and one dedicated server and share that 100MB link with hundreds of websites. When some one's website using maxium bandwidth (100Mbp/s) others web sites cannot usable with that moment.

Most web hosting companies offer to test their bandwidth without registering.


Speed test result for hosting company with 100Mbp/s





www.singlehop.com


100MB---1.16.39 S


www.800hosting.com


100MB---3.46.43 S


www.fdcservers.net



100MB---1.00.65 S


www.leaseweb.com


100MB---4.01.60 S


www.cachefly.net


100MB---0.17.85 S


www.000webhost.com


10MB---0.11.18 S

Thursday, July 2, 2009

How to protect your videos

How to share your videos securely?

When you make a best animation or valuable video and you want to distribute with your permission. So you can log who can play and what number of copies you sell. The best way to do this is, if when someone want to play your video with one PC what he or she have to do is to purchase a license key that is valid only for one PC.

To do this, what you have to do in first place is to convert your files like wmv, avi, asf, mpg, rm, rmvb, mp4, flv, and vob to EXE or other protected file format.


MediaEncrypt


MediaEncrypt is one simple tool to make that protection happen. You can encrypt and protect them as .exe files, share those files with your phone number and mail address attached or you can customise auto activation server via internet.

E.g. :- When a user wants to play an encrypted file, the encrypted file will pop up a dialog box to request the user to enter a Playback Password. This dialog box will display the machine ID of the user's computer. The user can send his/her own machine ID to you(the author), and you can create a Play Password based on the user's machine ID. After that the user can use this Playback Password to play your file on his/her computer.

Thursday, May 28, 2009

LIRC and winLIRC

What is LIRC

LIRC is a package that allows you to decode and send infra-red signals of many (but not all) commonly used remote controls. With your Serial interface based infrared transmitter and receiver you can configure LIRC.

The most important part of the LIRC is decoding IR signals received by the device drivers and provide the information on a serial port. It will also accept commands for IR signals to be sent using an IR transmitter. It will also translate the decoded IR signals to mouse movements. In linux environment You can configure X to use your remote control as an input device.

The user space applications will allow you to control your computer with your remote controller. You can start programs and much more on just one button press with any remote controller.

The possible applications are obvious: Infra-red mouse, remote control for your TV tuner card or CD-ROM, shutdown by remote, program your VCR and/or satellite tuner with your computer, etc.

Make IR receiver for serial interface

Make IR transmitter for serial interface


Configure winLIRC

Download winLIRC from winlirc.sourceforge.net and unzip it.Find winlirc.exe and run exe. When you run that (in none configured) and you get an error saying that WinLIRC failed to initialize. Ignore it and click OK and go forward and it will open this window.


In winLIRC configuration window select your COM port and where your IR receiver is connected. Make configuration file to save your IR codes from your remote controllers. Click and browse where you want to make configuration file and type your file name with .cfg extension and click open.


To learn IR signals from your remote controller and make IR code configuration files to your universal IR remote controller or control your PC with remote controller click the learn button. Then you will get this message box.

"This will record the signals from your remote cont
roller and create a config file for WinLIRC."




Input your remote controller's name and press enter. ("Desired margin of error for this remote? (1-99, enter=25)") enter for default value. Again just hit ENTER ("Gap and length?") . Now you will enter button programming section with "Press a Button" message .




Now you will get a message saying "press a button". Press one button and wait a second and press it again. Then you'll get a message "Baseline initialized". Now you have to press different 10 buttons and when you get the message "Enter button name" enter your button's name and learn all of your buttons of your remote.


After completing learn remote controller IR codes hit enter with blank to exit and click OK. click analyze from winLIRC configuration window and click OK. Now you finished IR learning mode. You can save that configuration file to use later with winLIRC. You can make collection of codes to make a Universal Infrared Remote Controller. Click OK from winLIRC configuration window and click "hide window". This will minimize the WinLIRC application to the system tray(the gray icon in your system tray), where WinLIRC listens to your remote IR commands. This indicates that WinLIRC is waiting for IR commands.

Now you can use winLIRC plug in for Winamp to controller Winamp or you can use Girder, pcremote, or rcontrol like software to control your PC. Try to use IR mouse emulator software.

After making the universal remote you can send codes from this software or use GUI programmable remote controller software.

IrCode from www.lirc.org

Simple Universal Infrared Transmmeter for serial interface

Simple Universal Infrared Receiver for Serial interface

How to control a PC with your IR Receiver

Make a Programmable Universal IR Remote Controller with your IR Receiver

How Make Universal Infrared Remote Control

Turn your PC into a Universal Infrared Remote Control



This is Pronto 9600 from Philips. They say Best-in-class IR learning and sending performance and are largest Infrared Remote Control data base. It can control a large number of devices. It has the best graphics and you can customize buttons and graphical view and IR codes using their Pronto Studio. www.pronto.philips.com

Make your own!

Make your own universal Infarared Remote controller device that also have these capabilities. With your Notebook or PC you can make a Serial interface based IR receiver and IR Transmitter and learn IR signal codes and send it back.

You can make this simple IR Transmitter and Receiver circuits to make a Programmable Universal Infrared Remote control.


Simple Universal Infrared Receiver for Serial interface

Simple Universal Infrared Transmmeter for serial interface

How to Configure your circuit with winLIRC

IrCode from www.lirc.org

How to control a PC with your IR Receiver





Control your PC with an IR remote

Control your PC with an IR remote controller like of TV , DVD, VCR, SAT, etc...






Every manufacturer (Samsung, Sanyo, Sony. Hitachi, Philips etc..) use different IR code to communicate with IR devices. For an example :- Receiver determines that you pressed "Power" button by identifying the control as 0001 and "Vol +" 0010. That code contains with binary numbers (it have simply 1 and 0 :) ).

Controlling PC with an IR remote

You can make a simple serial port IR receiver to receive signals from any IR consumer remote control and learn various signals from many remote controllers. After you learned IR signals from your remote control, you can define what should happen when you press Power button on your remote. You can set up your remote controller to start a window or play songs or even mouse movement ( Your IR remote controller as an IR mouse). (Or you can buy remote with its receiver that comes with Windows XP Media Centre Edition 2005 by making Microsoft rich)

IR receiver for serial port (Circuit Diagram)

Software configuration for your Circuit

Using serial port IR receiver you can make and collect IR codes for you own Universal IR Remote controller data base. You can Backup and Restore (Receive and Transmit) IR codes from your remote controller. If you cannot find your remote controller in the future you can get that IR code to make a remote controller using PIC.

Make a Programmable Universal IR Remote Controller with your IR Receiver

How to configure your circuit with winLIRC


Wednesday, May 27, 2009

Standard DB9 and DB25 Pinouts

Name        25-pin         9-pin
---------------------------------------------------------
TxD 2 3 transmit data
RxD 3 2 receive data
RTS 4 7 request to send (power)
CTS 5 8 clear to send
DSR 6 6 data set ready
GND 7 5 ground
DCD 8 1 data carrier detect(signal)
DTR 20 4 data terminal ready

IR Transmitter for Serial Interface

How to make IR Transmitter for your serial interface ( RS232 , COM)

What IR range do you want to send using your serial port? You should select IR Emitting diode with your IR range. If you want to control your CD players, DVD players, TVs, VCRs, Cable Boxes, Receivers, Tape Decks, DVRs, home automation, etc. You can use consumer standard IR devices like 510E850C , TIL31 or you can try with your old Remote control Infrared LED. Use this simple circuit to connect your IR LED to serial port.



IC1 = 78L05

Q1 = 2N2222
or try with C945

D1 = 1N4148

R1 = 1K

R2 = 47Ω

LED1 = IR LED
510E850C
TIL31





IR codes for Samsung SVACI-202

Every IR remote have unique IR signals in hexadecimal codes. I have a device of this model with out a remote. And more to my dismay it was locked(by master code) and can't unlock it without a remote controller. If anyone have this device "with a working remote" please send its IR codes to info@zipwaves.tk.

You can get IR codes of any remote using Serial Port based IR Receiver. Here are the instructions to make a IR receiver. You can use this device to control your PC with any remote controller! or you can turn your PC into a Universal Remote Controller with Serial Port based IR Transmitter .....................................................

Use this software to create your IR codes, learn signals of any IR remote controller and imitate that signal. http://www.lirc.org

Tuesday, May 26, 2009

IR Receiver for serial interface

Making a simple IR receiver for serial port (RS232,COM)

For receiving infrared signals you have to get a photo module. First you have to determine what range of infrared signal you want to receive with your serial port.Examples for equipment with consumer standard IR devices are CD players, DVD players, TVs, VCRs, Cable Boxes, Receivers, Tape Decks, DVRs, home automation, etc.

This simple circuit receives IR signals using TSOP 1738 photo module. You can use any IR module for your choice. TSOP 17-XX, SFH 506-XX series is a compatible module to receive IR remote control signals from COM ports on CD player, DVD player, TV, VCR, Cable Box, Receiver, Tape Deck, DVR, home automation, etc.

Photo modules TSOP 1730, TSOP1733,TSOP 1736, TSOP 1737, TSOP 1738, TSOP 1740, TSOP 1756 or you can try your old broken DVD Player!, VCR, TV or anything that have an IR remote controller. It should have 3 pins and 5V. Study your the photo module to know how to attach that device and use that pin connections this circuit.
IC1 = 78L05

IC2 = TSOP 1738
(IR Module)

SFH 506-XX

TSOP 17-XX


D1 = 1N4148


R1 = 4k7


C1 = 4.7uf




Sunday, May 17, 2009

How to Create your own RHEL5 yum repository

Createrepo Tool

Creating your own yum repository is the easy way to install packages on Red Hat, Fedora, CentOS or RPM - based Linux distributions. You can make your own server or CD/DVD-Rom to host your own repository. It will decrease installation time of your packages and saves your bandwidth.


Make your own Red Hat Enterprises Linux 5 repository server




Install createrepo tool

Find createrepo package for your operating system. some are listed below:

for Red Hat Enterprises Linux 5 or CentOS 5 x86 64
http://yum.uit.no/repos/CentOS5-x86_64/RPMS.rpmforge/

for Red Hat Enterprises Linux 5 or CentOS 5 x86 32
http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/


more free repository list

login as root and make a folder to get the packages and install
#mkdir /root/downloads
#cd /root/downloads


Use wget and download the package
#wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/createrepo-0.4.10-1.el5.rf.noarch.rpm

install the package using rpm


use your package version instead of the following "createrepo-0.4.XX-X.el5.rf.noarch.rpm"

#rpm -ivh createrepo-0.4.10-1.el5.rf.noarch.rpm

check installed package
#rpm -qa createrepo



Make repository

make folders
#mkdir -p /var/ftp/repo/RHEL5/i386/


copy your rpm package from CD,DVD or what ever you have.
To copy from CD, mount CD-ROM or use the GUI tool

#mkdir /media/cd
#mount /dev/cdrom /media/cd

find your packages and copy to following folders
ex:- 64 Bit packages to ~/RHEL5/x86_64
32 Bit packages to ~/RHEL5/i386


create repository data
#cd /var/ftp/repo/RHEL5/i386/
#createrepo .


run "createrepo ." command in all folders.
"repo RHEL5"

You can add packages later then your have to run this command again or use script to automate


Distribute your Repository

Distribute repository using CD, DVD

You can distribute your repository data using CD,DVD of USB drive or any media.
Use your REPO folder that you should create inside the path /var/ftp.


Distribute repository using an FTP server

Using Very Secure FTP Daemon (vsftpd) is a great way to host your repository data.

install vsftpd and start services
#cd /root/Downloads
#wget ftp://ftp.muug.mb.ca/mirror/centos/5.2/os/i386/CentOS/vsftpd-2.0.5-12.el5.i386.rpm

find it here http://rpm.pbone.net/index.php3/stat/4/idpl/8078351/com/vsftpd-2.0.5-12.el5.i386.rpm.html


install package using rpm

#rpm -ivh vsftpd-2.0.5-12.el5.i386.rpm

Start services
#/etc/init.d/vsftpd start

If your repository data in /var/ftp now you can access your folder using ftp