Network programming in C#

May 5th, 2009

Basic definitions

It is important to have a firm understanding about networking. Here, I only mention about some very basic knowledge.

- Protocol: is a set of rules and procedures used for communication. Computers on a network must agree upon a common protocol in order to communicate.

- IP (Internet Protocol) is the method or protocol by which data is sent from one device to another on the Internet. Each computer on the Internet has at least one IP address that uniquely identifies it from all other computers on the Internet. IP by itself is something like the postal system. It allows you to address a package and drop it in the system, but there is no direct link between you and the recipient. Though there are other network protocols available to the Windows network programmer, IP provides the most robust technique for sending data between network devices, especially if they are located across the Internet.

Read more…

Author: SquallLTT Categories: Programming Tags: , ,

SquallLTT presents: My PDA phone :D

June 24th, 2009

Here is the link to the video clip: http://www.25phut.net/uploadedvideoclips/viva.html

In conclusion I’d like to say that Windows Mobile phones are the best, at least, to me. Countless softwares are available out there. And, I can do some coding for my PDA as u can see in the video, I’ve implemented image processing (Canny Edge detection), written a program to operate a robot via WIFI, and much more… :D

Tan Kah Kee Young Inventors’ Award 2009

May 30th, 2009

Ceremony on 23 - 5 –2009

Tan Kah Kee Young Inventors' Award 2009 Read more…

Author: SquallLTT Categories: Diary Tags:

Laser dot detection

May 28th, 2009

Using C# programming language to do image processing.

 

Using my Creative webcam: ^^

Author: SquallLTT Categories: Mechatronics Tags: , ,

Sunday, May

May 24th, 2009

Juz finish washing and hanging out my clothes. Gonna go out to relax for a while. It’s been a beautiful Sunday morning. The weather is not very hot, not raining either. Hmm, I’ll continue to read “Dracula” when I take the bus.

Miss you and love you much, honey :X Hope you have a happy Sunday with your family.

See you soon.

Love always,

SquallLTT

xxx

Author: SquallLTT Categories: Diary Tags:

Continue doing computer vision

May 22nd, 2009

Continue doing computer vision at school :)

doing-image-processing-at-school-1

doing-image-processing-at-school-2

Files searching tool from rapid.25phut.net

May 12th, 2009

rapid.25phut.net is a tool which allows users to find freely available files from all around the web!

Visitors can searches: RapidShare, MegaUpload, MegaShares, Badongo, FileFront, SaveFile

To begin using this amazing tool, simply type in your search query in the search box located at the top of this page and hit search. It really is that simple! You now have the most comprehensive file search tool at your fingretips.

Note that: this tool is mainly used for searching education materials: ebooks related to computer programming or literatures

Here is the link: http://rapid.25phut.net/

Author: SquallLTT Categories: IT Tags: ,

Config Aptana Studio to work with XAMPP

May 8th, 2009

Launch you Aptana Studio, select: Run -> Run…

A dialog appears and choose the following options:

aptana studio work with xampp

Author: SquallLTT Categories: IT Tags:

Force www vs non-www to avoid duplicate content on Google Search

May 7th, 2009

When you have your site accessible both under your_domain.com and www.your_domain.com you may come up with duplicate content on Google Search. To avoid such problems you can use the following lines in your .htaccess file to force only the www version of your web site:

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]

Note that the .htaccess should be located in the web site main folder.

This will redirect all requests to the non-www version of your site to the www version using 301 Permanent redirect which will make the search engines to index your site only using the www.your_domain.com URL. In this way you will avoid a duplicate content penalty.

Author: SquallLTT Categories: IT Tags: ,

Duplicate content fix index.html vs / (slash only)

May 7th, 2009

This similar to the www vs non-www version of your site work-around.
As you might now you, by default you can access your site as http://www.domain.com/ and http://www.domain.com/index.html with some setups it can be index.php or index.asp or default.aps, etc.
Unfortunately, this creates a risk of duplicate content from the search engine point of view. To avoid this, you can use the following ModRewrite rules in your .htaccess file:

RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://www.domain.com/ [R=301,L]

The file should be located in your website main folder (web root).

The rules above will tell the browser or the search engine both that all requests to index.html should be directed to the "/" (slash only).

Author: SquallLTT Categories: IT Tags: ,

Make PHP to work in your HTML files with .htaccess

May 7th, 2009

By default most web servers across the internet are configured to treat as PHP files only files that end with .php. In case you need to have your HTML files parsed as PHP (e.g .html) or even if you want to take it further and make your PHP files look like ASP, you can do the following:
For web servers using PHP as apache module:

AddType application/x-httpd-php .html .htm

For web servers running PHP as CGI:

AddHandler application/x-httpd-php .html .htm

In case you wish to do the ASP mimick:

For PHP as module:

AddType application/x-httpd-php .asp

OR for PHP as CGI:

AddHandler application/x-httpd-php .asp
Author: SquallLTT Categories: IT Tags: , ,
Easy AdSenser by Unreal