Internet services and port numbers

The TCP/IP protocol suite is the lingua franca of the Internet because the Internet services “speak” TCP/IP. These services make the Internet tick by making possible the transfer of mail, news, and Web pages. Each Internet service has its own protocol that relies on TCP/IP for the actual transfer of the information. Each service also has one or more assigned port numbers
that it uses to do whatever it’s designed to do. Here are some well-known Internet services and their associated protocols:
  1. DHCP (Dynamic Host Configuration Protocol) is for dynamically configuring TCP/IP network parameters on a computer. DHCP is primarily used to assign dynamic IP addresses and other networking information such as name server, default gateway, domain names that are needed to configure TCP/IP networks. The DHCP server listens on port 67.
  2. FTP (File Transfer Protocol) is used to transfer files between computers on the Internet. FTP uses two ports — data is transferred on port 20; control information is exchanged on port 21.
  3. HTTP (HyperText Transfer Protocol) is for sending documents from one system to another. HTTP is the underlying protocol of the Web. By default, the Web server and client communicate on port 80.
  4. SMTP (Simple Mail Transfer Protocol) is for exchanging e-mail messages between systems. SMTP uses port 25 for information exchange.
  5. NNTP (Network News Transfer Protocol) is for distribution of news articles in a store-and-forward fashion across the Internet. NNTP uses port 119.
  6. SSH (Secure Shell) is a protocol for secure remote login and other secure network services over an insecure network. SSH uses port 22.
  7. TELNET enables a user on one system to log in to another system on the Internet (the user must provide a valid user ID and password to log in to the remote system).
  8. TELNET uses port 23 by default. However, the TELNET client can connect to any specified port.
  9. NFS (Network File System) is for sharing files among computers. NFS uses Sun’s Remote Procedure Call (RPC) facility, which exchanges information through port 111.
  10. NTP (Network Time Protocol) is used by client computers to synchronize the system time with that on a server (one with a more accurate clock). NTP uses port 123.
  11. SNMP (Simple Network Management Protocol) is for managing all types of network devices on the Internet. Like FTP, SNMP uses two ports: 161 and 162.
  12. TFTP (Trivial File Transfer Protocol) is for transferring files from one system to another (typically used by X terminals and diskless workstations to download boot files from another host on the network). TFTP data transfer takes place on port 69.

DVD Capacity Not actualy 4.7 GB..?

A word of caution about DVD capacity — when marketing people talk about
the 4.7GB capacity of a DVD, they mean 4,700,000,000 bytes. However, for
technology purists, that number translates to about 4,482MB or only 4.377GB
because 1,024 bytes are in each KB and 1,024 x 1,024 = 1,048,576 bytes in a
MB, and so on. The bottom line is that you can only fit about 4,482MB of data
onto a DVD.

Video Formats

VCD is an mpeg1 based format, with a constant bitrate of 1150kbit at a resolution of 352x240 (NTCS). VCDs are generally used for lower quality transfers (CAM/TS/TC/Screener(VHS)/TVrip(analogue) in order to make smaller file sizes, and fit as much on a single disc as possible. Both VCDs and SVCDs are timed in minutes, rather than MB, so when looking at an mpeg, it may appear larger than the disc capacity, and in reality u can fit 74min on a CDR74.

SVCD is an mpeg2 based (same as DVD) which allows variable bit-rates of up to 2500kbits at a resolution of 480x480 (NTSC) which is then decompressed into a 4:3 aspect ratio when played back. Due to the variable bit-rate, the length you can fit on a single CDR is not fixed, but generally between 35-60 Mins are the most common. To get a better SVCD encode using variable bit-rates, it is important to use multiple "passes". this takes a lot longer, but the results are far clearer.

These are basically VCD/SVCD that don't obey the "rules". They are both capable of much higher resolutions and bit-rates, but it all depends on the player to whether the disc can be played. X(S)VCD are total non-standards, and are usually for home-ripping by people who don't intend to release them.

KVCD is a modification to the standard MPEG-1 and MPEG-2 GOP structure and Quantization Matrix. It enables you to create over 120 minutes of near DVD quality video, depending on your material, on a single 80 minute CD-R/CD-RW. We have published these specifications as KVCDx3, our official resolution, which produce 528x480 (NTSC) and 528x576 (PAL) MPEG-1 variable bit rate video, from 64Kbps to 3,000Kbps. Using a resolution of 352x240 (NTSC) or 352x288 (PAL), it's possible to encode video up to ~360 minutes of near VCD quality on a single 80 minute CD-R. The mpeg files created will play back in most modern standalone DVD players. You must burn the KVCD MPEG files as non-standard VCD or non-standard SVCD (depends on your player) with Nero or VCDEasy.

DivX / XviD -
DivX is a format designed for multimedia platforms. It uses two codecs, one low motion, one high motion. most older films were encoded in low motion only, and they have problems with high motion too. A method known as SBC (Smart Bit-rate Control) was developed which switches codecs at the encoding stage, making a much better print. The format is Ana orphic and the bit-rate/resolution are interchangeable. Due to the higher processing power required, and the different codecs for playback, its unlikely we'll see a DVD player capable of play DivX for quite a while, if at all. There have been players in development which are supposedly capable, but nothing has ever arisen. The majority of PROPER DivX rips (not Re-Encs) are taken from DVDs, and generally up to 2hours in good quality is possible per disc. Various codecs exist, most popular being the original Divx3.11a and the new XviD codecs.

CVD is a combination of VCD and SVCD formats, and is generally supported by a majority of DVD players. It supports MPEG2 bit-rates of SVCD, but uses a resolution of 352x480(ntsc) as the horizontal resolution is generally less important. Currently no groups release in CVD.

Is the recordable DVD solution that seems to be the most popular (out of DVD-RAM, DVD-R and DVD+R). it holds 4.7gb of data per side, and double sided discs are available, so discs can hold nearly 10gb in some circumstances. SVCD mpeg2 images must be converted before they can be burnt to DVD-R and played successfully. DVD>DVDR copies are possible, but sometimes extras/languages have to be removed to stick within the available 4.7gb.

MiniDVD -
MiniDVD/cDVD is the same format as DVD but on a standard CDR/CDRW. Because of the high resolution/bit-rates, its only possible to fit about 18-21 mins of footage per disc, and the format is only compatible with a few players.

Original Source Movie Tags

A cam is a theater rip usually done with a digital video camera. A mini tripod is sometimes used, but a lot of the time this wont be possible, so the camera make shake. Also seating placement isn't always idle, and it might be filmed from an angle. If cropped properly, this is hard to tell unless there's text on the screen, but a lot of times these are left with triangular borders on the top and bottom of the screen. Sound is taken from the onboard microphone of the camera, and especially in comedies, laughter can often be heard during the film. Due to these factors picture and sound quality are usually quite poor, but sometimes we're lucky, and the theater will be fairly empty and a fairly clear signal will be heard.

A telesync is the same spec as a CAM except it uses an external audio source (most likely an audio jack in the chair for hard of hearing people). A direct audio source does not ensure a good quality audio source, as a lot of background noise can interfere. A lot of the times a telesync is filmed in an empty cinema or from the projection booth with a professional camera, giving a better picture quality. Quality ranges drastically, check the sample before downloading the full release. A high percentage of Telesyncs are CAMs that have been mislabeled.

A telecine machine copies the film digitally from the reels. Sound and picture should be very good, but due to the equipment involved and cost telecines are fairly uncommon. Generally the film will be in correct aspect ratio, although 4:3 telecines have existed. A great example is the JURASSIC PARK 3 TC done last year. TC should not be confused with TimeCode , which is a visible counter on screen throughout the film.

A pre VHS tape, sent to rental stores, and various other places for promotional use. A screener is supplied on a VHS tape, and is usually in a 4:3 (full screen) a/r, although letterboxed screeners are sometimes found. The main draw back is a "ticker" (a message that scrolls past at the bottom of the screen, with the copyright and anti-copy telephone number). Also, if the tape contains any serial numbers, or any other markings that could lead to the source of the tape, these will have to be blocked, usually with a black mark over the section. This is sometimes only for a few seconds, but unfortunately on some copies this will last for the entire film, and some can be quite big. Depending on the equipment used, screener quality can range from excellent if done from a MASTER copy, to very poor if done on an old VHS recorder thru poor capture equipment on a copied tape. Most screeners are transferred to VCD, but a few attempts at SVCD have occurred, some looking better than others.

Same premise as a screener, but transferred off a DVD. Usually letterbox , but without the extras that a DVD retail would contain. The ticker is not usually in the black bars, and will disrupt the viewing. If the ripper has any skill, a DVDscr should be very good. Usually transferred to SVCD or DivX/XviD.

A copy of the final released DVD. If possible this is released PRE retail (for example, Star Wars episode 2) again, should be excellent quality. DVDrips are released in SVCD and DivX/XviD.

Transferred off a retail VHS, mainly skating/sports videos and XXX releases.

TV episode that is either from Network (capped using digital cable/satellite boxes are preferable) or PRE-AIR from satellite feeds sending the program around to networks a few days earlier (do not contain "dogs" but sometimes have flickers etc) Some programs such as WWF Raw Is War contain extra parts, and the "dark matches" and camera/commentary tests are included on the rips. PDTV is capped from a digital TV PCI card, generally giving the best results, and groups tend to release in SVCD for these. VCD/SVCD/DivX/XviD rips are all supported by the TV scene.

A workprint is a copy of the film that has not been finished. It can be missing scenes, music, and quality can range from excellent to very poor. Some WPs are very different from the final print (Men In Black is missing all the aliens, and has actors in their places) and others can contain extra scenes (Jay and Silent Bob) . WPs can be nice additions to the collection once a good quality final has been obtained.

DivX Re-Enc -A DivX re-enc is a film that has been taken from its original VCD source, and re-encoded into a small DivX file. Most commonly found on file sharers, these are usually labeled something like Film.Name.Group(1of2) etc. Common groups are SMR and TND. These aren't really worth downloading, unless you're that unsure about a film u only want a 200mb copy of it. Generally avoid.

A lot of films come from Asian Silvers/PDVD (see below) and these are tagged by the people responsible. Usually with a letter/initials or a little logo, generally in one of the corners. Most famous are the "Z" "A" and "Globe" watermarks.

Asian Silvers / PDVD
These are films put out by eastern bootleggers, and these are usually bought by some groups to put out as their own. Silvers are very cheap and easily available in a lot of countries, and its easy to put out a release, which is why there are so many in the scene at the moment, mainly from smaller groups who don't last more than a few releases. PDVDs are the same thing pressed onto a DVD. They have removable subtitles, and the quality is usually better than the silvers. These are ripped like a normal DVD, but usually released as VCD.

How Much Hosting Bandwidth Is Enough ?

Previous Article : Web Site Traffic

Hosting Bandwidth

In the example above, we discussed traffic in terms of downloading an MP3 file. However, each time you visit a web site, you are creating traffic, because in order to view that web page on your computer, the web page is first downloaded to your computer (between the web site and you) which is then displayed using your browser software (Internet Explorer, Netscape, etc.) . The page itself is simply a file that creates traffic just like the MP3 file in the example above (however, a web page is usually much smaller than a music file).

A web page may be very small or large depending upon the amount of text and the number and quality of images integrated within the web page. For example, the home page for is about 200KB (200 Kilobytes = 200,000 bytes = 1,600,000 bits). This is typically large for a web page. In comparison, Yahoo's home page is about 70KB.

How Much Bandwidth Is Enough?

It depends (don't you hate that answer). But in truth, it does. Since bandwidth is a significant determinant of hosting plan prices, you should take time to determine just how much is right for you. Almost all hosting plans have bandwidth requirements measured in months, so you need to estimate the amount of bandwidth that will be required by your site on a monthly basis

If you do not intend to provide file download capability from your site, the formula for calculating bandwidth is fairly straightforward:

Average Daily Visitors x Average Page Views x Average Page Size x 31 x Fudge Factor

If you intend to allow people to download files from your site, your bandwidth calculation should be:

[(Average Daily Visitors x Average Page Views x Average Page Size) +
(Average Daily File Downloads x Average File Size)] x 31 x Fudge Factor

Let us examine each item in the formula:

Average Daily Visitors - The number of people you expect to visit your site, on average, each day. Depending upon how you market your site, this number could be from 1 to 1,000,000.

Average Page Views - On average, the number of web pages you expect a person to view. If you have 50 web pages in your web site, an average person may only view 5 of those pages each time they visit.

Average Page Size - The average size of your web pages, in Kilobytes (KB). If you have already designed your site, you can calculate this directly.

Average Daily File Downloads - The number of downloads you expect to occur on your site. This is a function of the numbers of visitors and how many times a visitor downloads a file, on average, each day.

Average File Size - Average file size of files that are downloadable from your site. Similar to your web pages, if you already know which files can be downloaded, you can calculate this directly.

Fudge Factor - A number greater than 1. Using 1.5 would be safe, which assumes that your estimate is off by 50%. However, if you were very unsure, you could use 2 or 3 to ensure that your bandwidth requirements are more than met.

Usually, hosting plans offer bandwidth in terms of Gigabytes (GB) per month. This is why our formula takes daily averages and multiplies them by 31.

Web Site Traffic

A very simple analogy to use to understand bandwidth and traffic is to think of highways and cars. Bandwidth is the number of lanes on the highway and traffic is the number of cars on the highway. If you are the only car on a highway, you can travel very quickly. If you are stuck in the middle of rush hour, you may travel very slowly since all of the lanes are being used up.

Traffic is simply the number of bits that are transferred on network connections. It is easiest to understand traffic using examples. One Gigabyte is 2 to the 30th power (1,073,741,824) bytes. One gigabyte is equal to 1,024 megabytes. To put this in perspective, it takes one byte to store one character. Imagine 100 file cabinets in a building, each of these cabinets holds 1000 folders. Each folder has 100 papers. Each paper contains 100 characters - A GB is all the characters in the building. An MP3 song is about 4MB, the same song in wav format is about 40MB, a full length movie can be 800MB to 1000MB (1000MB = 1GB).

If you were to transfer this MP3 song from a web site to your computer, you would create 4MB of traffic between the web site you are downloading from and your computer. Depending upon the network connection between the web site and the internet, the transfer may occur very quickly, or it could take time if other people are also downloading files at the same time. If, for example, the web site you download from has a 10MB connection to the internet, and you are the only person accessing that web site to download your MP3, your 4MB file will be the only traffic on that web site. However, if three people are all downloading that same MP at the same time, 12MB (3 x 4MB) of traffic has been created. Because in this example, the host only has 10MB of bandwidth, someone will have to wait. The network equipment at the hosting company will cycle through each person downloading the file and transfer a small portion at a time so each person's file transfer can take place, but the transfer for everyone downloading the file will be slower. If 100 people all came to the site and downloaded the MP3 at the same time, the transfers would be extremely slow. If the host wanted to decrease the time it took to download files simultaneously, it could increase the bandwidth of their internet connection (at a cost due to upgrading equipment).

Next : How Much Hosting Bandwidth Is Enough ?

BandWidth Explained

Most hosting companies offer a variety of bandwidth options in their plans. So exactly what is bandwidth as it relates to web hosting? Put simply, bandwidth is the amount of traffic that is allowed to occur between your web site and the rest of the internet. The amount of bandwidth a hosting company can provide is determined by their network connections, both internal to their data center and external to the public internet.

Network Connectivity

The internet, in the most simplest of terms, is a group of millions of computers connected by networks. These connections within the internet can be large or small depending upon the cabling and equipment that is used at a particular internet location. It is the size of each network connection that determines how much bandwidth is available. For example, if you use a DSL connection to connect to the internet, you have 1.54 Mega bits (Mb) of bandwidth. Bandwidth therefore is measured in bits (a single 0 or 1). Bits are grouped in bytes which form words, text, and other information that is transferred between your computer and the internet.

If you have a DSL connection to the internet, you have dedicated bandwidth between your computer and your internet provider. But your internet provider may have thousands of DSL connections to their location. All of these connection aggregate at your internet provider who then has their own dedicated connection to the internet (or multiple connections) which is much larger than your single connection. They must have enough bandwidth to serve your computing needs as well as all of their other customers. So while you have a 1.54Mb connection to your internet provider, your internet provider may have a 255Mb connection to the internet so it can accommodate your needs and up to 166 other users (255/1.54).

IP Address Syntax in Web Page

To Get And Show The Ip Via Javascript

To show the ip via JavaScript

var ip= '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP Address is :"+ip+" ");
To show IP via ASP


$remote_address = getenv("REMOTE_ADDR");
echo "Your IP address is $remote_address.";
$browser_type = getenv("HTTP_USER_AGENT");
echo "You are using $browser_type.";

IP Address Syntax in Web Page

To Get And Show The Ip Via Javascript

To show the ip via JavaScript

var ip= '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP Address is :"+ip+" ");
To show IP via ASP


$remote_address = getenv("REMOTE_ADDR");
echo "Your IP address is $remote_address.";
$browser_type = getenv("HTTP_USER_AGENT");
echo "You are using $browser_type.";

Microsoft Windows Shorcut

Getting used to using your keyboard exclusively and leaving your mouse behind will make you much more efficient at performing any task on any Windows system. I use the following keyboard shortcuts every day:

Windows key + R = Run menu

This is usually followed by:
cmd = Command Prompt
iexplore + "web address" = Internet Explorer
compmgmt.msc = Computer Management
dhcpmgmt.msc = DHCP Management
dnsmgmt.msc = DNS Management
services.msc = Services
eventvwr = Event Viewer
dsa.msc = Active Directory Users and Computers
dssite.msc = Active Directory Sites and Services
Windows key + E = Explorer

ALT + Tab = Switch between windows

ALT, Space, X = Maximize window

CTRL + Shift + Esc = Task Manager

Windows key + Break = System properties

Windows key + F = Search

Windows key + D = Hide/Display all windows

CTRL + C = copy

CTRL + X = cut

CTRL + V = paste

Also don't forget about the "Right-click" key next to the right Windows key on your keyboard. Using the arrows and that key can get just about anything done once you've opened up any program.

Keyboard Shortcuts

[Alt] and [Esc] Switch between running applications

[Alt] and letter Select menu item by underlined letter

[Ctrl] and [Esc] Open Program Menu

[Ctrl] and [F4] Close active document or group windows (does not work with some applications)

[Alt] and [F4] Quit active application or close current window

[Alt] and [-] Open Control menu for active document

Ctrl] Lft., Rt. arrow Move cursor forward or back one word

Ctrl] Up, Down arrow Move cursor forward or back one paragraph

[F1] Open Help for active application

Windows+M Minimize all open windows

Shift+Windows+M Undo minimize all open windows

Windows+F1 Open Windows Help

Windows+Tab Cycle through the Taskbar buttons

Windows+Break Open the System Properties dialog box

acessability shortcuts

Right SHIFT for eight seconds........ Switch FilterKeys on and off.

Left ALT +left SHIFT +PRINT SCREEN....... Switch High Contrast on and off.

Left ALT +left SHIFT +NUM LOCK....... Switch MouseKeys on and off.

SHIFT....... five times Switch StickyKeys on and off.

NUM LOCK...... for five seconds Switch ToggleKeys on and off.

explorer shortcuts

END....... Display the bottom of the active window.

HOME....... Display the top of the active window.

NUM LOCK+ASTERISK....... on numeric keypad (*) Display all subfolders under the selected folder.

NUM LOCK+PLUS SIGN....... on numeric keypad (+) Display the contents of the selected folder.

NUM LOCK+MINUS SIGN....... on numeric keypad (-) Collapse the selected folder.

LEFT ARROW...... Collapse current selection if it's expanded, or select parent folder.

RIGHT ARROW....... Display current selection if it's collapsed, or select first subfolder.

Type the following commands in your Run Box (Windows Key + R) or Start Run

devmgmt.msc = Device Manager
msinfo32 = System Information
cleanmgr = Disk Cleanup
ntbackup = Backup or Restore Wizard (Windows Backup Utility)
mmc = Microsoft Management Console
excel = Microsoft Excel (If Installed)
msaccess = Microsoft Access (If Installed)
powerpnt = Microsoft PowerPoint (If Installed)
winword = Microsoft Word (If Installed)
frontpg = Microsoft FrontPage (If Installed)
notepad = Notepad
wordpad = WordPad
calc = Calculator
msmsgs = Windows Messenger
mspaint = Microsoft Paint
wmplayer = Windows Media Player
rstrui = System Restore
netscp6 = Netscape 6.x
netscp = Netscape 7.x
netscape = Netscape 4.x
waol = America Online
control = Opens the Control Panel
control printers = Opens the Printers Dialog

Making Web Page Fonts Consistent and Uniform

Is it disturbing to you when every other Web page you visit has a different font size?. One web page's font is too small, and another web page's fonts are too big.
Well here's a way to fix that and set each web page's fonts to just the size you want.

In Internet Explorer, select: Tools-Internet Options, choose the General tab, click the Accessibility button, and check Ignore font sizes specified on Web pages (the wording varies depending on your IE version).

In Netscape 6 and 7, choose Edit-Preferences, select Fonts (double-click Appearance if you don't see 'Fonts' listed), and then either check Use my default fonts or uncheck Allow documents to use other fonts, depending on your version (the wording of these choices also varies).

Now all Web page fonts should be of uniform size on all pages.

Ping-o-Matic, service to ping your blog

Ping-o-Matic is a third party service provide by Ping-O-Matic is a service to update different search engines that your blog has updated.

Programmer Refreshing

Oh.. I'm Forgot to type "*" and that make my program not work...

As a programmer all the thing that we just need for programming are relax and fresh mind condition. So with the good mind condition, we can do programming well.

Can you do programming intensively in 3 hours..?
Like doing a study 3 hours is long enough to make our mind tired. So Sometimes it's best to walk away, and come back to it later fresh. Then you'll notice those things.

All people need refreshing, not only programmers. Refreshing activity is important to refresh energy/stamina and mind.

Indonesian President Candidate's

Indonesian have 3 candidate for President election in july, 9 2009.
They are 3 packet of President and Vice President
  • Susilo Bambang Yudhoyono and Boediono
  • Jusuf Kalla and Wiranto
  • Megawati Soekarnoputri and Prabowo Subianto
The three candidate have similarity, one person in each candidate have military background (Susilo Bambang Yudhoyono, Wiranto and Prabowo Subianto). There a big hope that the military background keep the security and stability.

As a Indonesian People I hope the election must be well done, without a war and conflict. Indonesian situation in recent (May 2009) was very heavy for mid level economic people like me and the other's. I hope there's no war and conflict that can worse the situation.

Just hope The Best Candidate can handle this situation. Keep Peace Indonesia..!!!

Sintaks Deteksi Batas dengan Delphi

Deteksi batas adalah suatu teknik pengolahan citra yang bertujuan untuk mendapatkan obyek citra tepat pada batas obyek tersebut. Teknik ini bekerja pada citra biner dengan menjelajahi citra, misalnya dari bagian atas. Jika baris pertama paling atas semua piksel berwarna putih, maka ukuran tinggi citra dipotong pada bagian baris tersebut. Pemotongan tinggi citra berakhir bila ada ditemukan piksel berwarna hitam. Pemotongan juga dilakukan dari sisi bawah, kiri dan kanan. Gambar 2.8 berikut ini ilustrasinya (abaikan garis hitam yang membatasi lebar dan tinggi citra) :

Gambar Ilustrasi deteksi batas (a) citra awal, (b) citra hasil deteksi batas.

Berikut adalah Sintaks Deteksi Batas dengan Delphi

procedure Tform1.DeteksiBatas(Image:TBitmap);
Arr:array of Boolean;
Temp,Max,TempStart,Start,TempFinish, Tempo:Integer;
for y:=0 to Image.Height-1 do
for x:=0 to Image.Width-1 do
if Image.Canvas.Pixels[x,y]<>$ffffff then


for y:=0 to Length(Arr)-1 do
if Arr[y] then
if Tempo=0 then
end else
if Temp>Max then
end else if Temp=Max then

for x:=0 to Length(Arr)-1 do
for y:=0 to Image.Height-1 do if Image.Canvas.Pixels[x,y]<>$FFFFFF then

for x:=0 to Length(Arr)-1 do
if Arr[x] then
if Tempo=0 then
end else
if Temp>Max then
end else if Temp=Max then

Pass PHP Variable in Javascript Link to do Redirecting

If we using PHP GET Method, sometime we we use the URL to pass the variable. In some kind of application maybe we need a redirecting.

Below is a dynamic redirecting using PHP and Javascript. See The Source Code below

echo '<script type="text/javascript">
window.location = "barang.php

This kind of redirecting can be use after insert delete or update a master data. After the insert, delete, or update the data, we can direcly view the table.

This source code from

Menjaga Kesehatan

Pencegahan penyakit sangatlah perlu. Hidup tidak akan berarti tanpa Kesehatan.
Kita tahu penyakit sumbernya ada di sekitar kita. Oleh karena itu kita perlu melakukan kebersihan diri dan lingkungan seperti :
  1. Jaga Kebersihan Lingkungan.
  2. Terapkan pola hidup dan pola makan yang sehat.
  3. Pencegahan berkembangnya penyakit, contohnya membersihkan bak penampungan air atau bak mandi, ada kemungkinan pada bak air dan bak mandi tempat berkembangbiaknya nyamuk.
  4. Olahraga teratur.
  5. Konsultasi Dokter Bila Perlu.
  6. dan lain-lain

Sedapat mungkin hal ini kita lakukan. Jika kita bermodalkan kesehatan yang baik, pekerjaan apapun pasti dapat dilakukan dengan baik.

Berbeda jika kita sakit, bagaimana kita bisa bekerja jika kita memiliki konsentrasi bekerja yang rendah atau mungkin harus tidur dan tidak dapat bekerja.

Sampah di Linkungan Kita

Sampah membuat pemandangan menjadi tidak enak. Untuk mendapatkan pandangan yang enak perlu dibiasakan membuang sampah pada tempatnya.

Biasanya setelah melakukan kegiatan pastilah ada sampah. Kadang-kadang kita sengaja membuang semaunya agar kita dapat cepat pulang sehabis kegiatan. Wah2 ini kebiasaan buruk yang harus dihindari…

Solusi banyak dilakukan dengan daur ulang sampah. Seharusnya memang demikian. Pemisahan sampah organik dan anorganik dilakukan agar daur ulang lebih mudah. Sampah organik dapat digunakan untuk pupuk, mungkin juga bahan bakar biogas. Sampah anorganik dapat dilebur dan dibentuk ulang seperti bahan plastik.

Janganlah membuang sampah di sungai. Sampah yang dibuang disungai akan tersumbat di suatu tempat. Bila ada hujan deras, air akan meluap dan akan menimbulkan banjir.
Jika kita mampu mengolah sampah sendiri dirumah, bukankah hal itu baik, memberikan ruang lebih banyak kepada Bumi..Tidak semua tempat menjadi TPA (Tempat Pembuangan Akhir) dan kasihan juga orang-orang dalam suatu desa harus diusir agar wilayah mereka dapat dijadikan TPA.

Metode Sampul dan Proyeksi pada Citra Digital

Metode sampul dan proyeksi (Envelope and Projection Profiles Method) cocok digunakan untuk pengenalan tandatangan dan tulisan tangan.

Metode sampul terdiri dari 2 yaitu sampul atas dan sampul bawah. Sampul atas adalah kurva yang menghubungkan piksel-piksel paling atas lintasan obyek atau citra, sedangkan sampul bawah menghubungkan piksel-piksel paling bawah lintasan obyek atau citra.

Metode proyeksi adalah gabungan proyeksi vertikal dan proyeksi horizontal dari citra. Ciri proyeksi vertikal didapatkan dari jumlah piksel setiap kolom panjang citra. Ciri proyeksi horizontal didapatkan dari jumlah piksel setiap baris lebar citra.

Generate Image from E-mail Text with PHP

I wonder how to generate a image from email text with PHP. Sometimes people need imaging their e-mail addres in a webpage to ensure that their e-mail address doesn't detected by bad bots or robots that can sends thousand of spams or unwanted e-mail.

One of the effective way is making a image as our e-mail address. But how we can make that..?
Here is the simple source code to generate a image from string input with PHP.

header("Content-type: image/png");
// Your email address which will be shown in the image
$email = "";
$length = (strlen($email)*8);
$im = @ImageCreate ($length, 20)
or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
// White: 255,255,255
$text_color = ImageColorAllocate ($im, 55, 103, 122);
imagestring($im, 3,5,2,$email, $text_color);
imagepng ($im);

the principal code above are
  • @ImageCreate
  • imagestring and
  • imagepng.

Cinta tak terbalas

Duhai kawan pernahkah kamu merasa
sakitnya cinta bertepuk sebelah tangan..
Kenapa sakitnya lama sekali tidak hilang..
Kenapa juga sakitnya bertambah
jika ada hal-hal lain yang tidak ada hubunganya
ikut tercampur dan membuat diri serasa tak berharga..

Apakah yang dapat melepaskan penderitaan ini…
Semoga hari, bulan, dan tahun lekas berganti
agar mudah kulupakan derita
dan kutemukan dia yang lain
yang menjadi cinta sejatiku..

Pemrograman Client Server Winsock untuk Chatting

Pemrograman Winsock adalah pemrograman yang berbasis Client - Server. Ada yang memanfaatkan TCP (connection oriented) ataupun UDP (Connectionless).

Banyak aplikasi menggunakan aplikasi client server, dan kita tidak sadar menggunakan dalam kehidupan sehari-hari diantaranya :

  • Pembayaran Online Bank, Listrik
  • Game Online
Berikut sebuah contoh dari FreeVBCode

Server dan Client chat dalam percobaannya ada pada 1 komputer.

(Gambar 1. Server)

(Gambar 2 Client)

Berani Mengungkapkan Perasaan

Betapa beraninya aku hari ini (Senin, 12 Mei 2009)..!!!
Dari mana datangnya...?
semua hanya berlandaskan ingin mengungkapkan rasa....

betapa sulitnya mengatakan hal ini. padanya sudah kuungkapkan aku suka...

Betapapun kejamnya dunia akan kuterima sekarang...
aku tidak dapat memaksa penolakannya...

Pertama kali kunyatakan dan kuterima penolakan..
Betapa sakitnya cinta tak terbalas..

Namun hidup harus terus berjalan..
dan kesedihan ini tidak membebaniku..

Membuat Form berisi CAPTCHA dengan PHP

Selama kuliah, ternyata saya melewatkan pembuatan untuk modul pendaftaran yang sering dilakukan mahasiswa lain dalam pemrograman PHP..

Tapi tiada waktu terlambat buat belajar dan mencoba. Tutorial aslinya berasal dari

Pertama sediakan sebuah form HTML, ini hanya Sintaks HTML biasa

<HEAD><title>Contact Form</title></HEAD>
<form method="POST" name="contact_form" action="result.php">
Enter Name: <input type="text" name="name"><br>
Enter Message: <textarea name="message"></textarea><br>
<img src="captcha_code_file.php" /><br>
Enter captcha Code Here :
<input id="6_letters_code" name="6_letters_code" type="text" ><br>
<input type="submit" value="Submit"><br>

File yang diperlukan lalu letakkkan file di folder yang sama (File HTML, captcha_code_file.php, Font Pendukung dan result.php). File dapat didownload

Oh ya, rename aja html_contac_form_proc.php dengan result.php

Test setelah itu dengan melihat di Localhost hasilnya..

adapun pengolahan terdapat di file result.php

if( $_SESSION['6_letters_code'] == $_POST['6_letters_code'] && !empty($_SESSION['6_letters_code'] ) ) {
$to = "";
$email_subject = "This is the email subject";
$name = $_POST['name'];
$message = $_POST['message'];
$email_body = "You have received a new messag from " . $name . ". Here is the message: " . $message;
mail($to, $email_subject, $email_body);
echo 'You entered the correct code. Your message is successfully emailed.';
} else {
echo "Sorry, you have provided an invalid security code.
Please <a href='contact_form_with_captcha.html'>CLICK HERE</a> to try again.";

  • Session harus disertakan untuk mem-post karakter,
  • Sintaks email dapat diabaikan
  • jika benar, maka proses dapat dilanjutkan sebaliknya jika salah akan muncul pesan kesalahan "Sorry, you have provided an invalid security code"

High Quality Music Download Using uTorrent

High Quality Music can you download Using uTorrent (a Torrent Client). You Can Search in Mininova or Thepiratebay by Keyword Skirgsk.

With the download speed shown in the image, it need one to two hours to complete the download. It was very Exciting to download High Quality Music Using uTorrent.

How can we do that..?
1. Just Click one of the Torrent
2. Waiting to Download
3. Open with uTorrent
4. Waiting 1-2 Hours
5. Enjoy...

Manage Upload and Download with Uttorent

If We Manage Upload and Download with Uttorent can be economized bandwidth. If we use Internet connection pay by quota, It was not economically if we pay the Uploads Quota. So we must manage the Upload Bandwidth.

Manage Upload or Download can be done by Click the torrent that we download, then choose Bandwidth allocation

Manage Upload
Figure 1. Manage Upload

Manage Download
Figure 2. Manage Download

If the download speed is to fast, we can pay much money if we not control the download. So Controlling the download speed is very important if we using Quota in Internet connection. Beside that, the other users also can doing a internet activity (they can browsing, downloading etc.), I mean all the bandwith not belong to us.

Grayscale Image Processing and Source Code In Delphi

Hi Friend. Do You need Source Code of Image Processing..? But I’m only have in Delphi Programming. It is easy to Follow and Understand.

Pixel in Grayscale Image Basically obtain from dividing by three the Red + Green + Blue Pixels. Or the sum of Component Red + Green + Blue Must be One (1).
Example : 0.33 * R + 0.33 G + 0.33 B

Below is Source Code for Grayscale Image Processing in Delphi.

procedure TForm1.ToolButtonGrayscaleClick(Sender: TObject);
i, j : integer;
Grey : Integer;
PH : PByteArray;
for i:=0 to FormHasil.ImgHasil.Height-1 do
for j:=0 to FormHasil.ImgHasil.Width-1 do
Grey := Round ((PH[3*J] + PH[3*J+1] + PH[3*J+2] ) / 3);
PH[3*j]:= Grey;
PH[3*j+1]:= Grey;
PH[3*j+2]:= Grey;

Please Comment If I’m Wrong. Comment are widely open…!!

Contrast Image Processing and Source Code in Delphi

Hi Friend. Do You need Source Code of Image Processing..? But I’m only have in Delphi Programming. It is easy to Follow and Understand.

Contrast manipulation is widely use in image processing. We give a value to the procedure to change the Contrast. Positive value mean increase Contrast and negative value mean decrease Contrast.

(1. Normal Image)

(2. Increase Contrast, Histogram Spread)

(3. Decrease Contrast, Histogram Collect)

Below is Source Code for Contrast Image Processing in Delphi.

Procedure TFormBright_Con.Contrast(N:integer);
i, j: integer;
Rcon,Gcon,Bcon : integer;
for i := 0 to FormHasil.ImgHasil.Picture.Height-1 do
PH:= FormHasil.ImgHasil.Picture.Bitmap.ScanLine[i];
for j:= 0 to FormHasil.ImgHasil.Picture.Width-1 do
Rcon:= Round((PH[3*j]/255)*(255-(2*N))+ N);
Gcon:= Round((PH[3*j+1]/255)*(255-(2*N))+ N);
Bcon:= Round((PH[3*j+2]/255)*(255-(2*N))+ N);

if Rcon >255 Then Rcon:=255
else if Rcon<0 Then Rcon:=0;
if Gcon>255 then Gcon:=255
else if Gcon<0 Then Gcon:=0;
if Bcon>255 then Bcon:=255
else if Bcon<0 Then Bcon:=0;

PH[3*j] := Rcon;
PH[3*j+1] := Gcon;
PH[3*j+2] := Bcon;


Please pass the value from SpinEdit Maybe or by TrackBar or manualy by Edit.

Example :

Contrast (TrackBar.Position);

Please Comment If I’m Wrong. Comment are widely open…!!