Archive

Author Archive

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: , ,

Some useful shortcuts for Firefox

May 7th, 2009

My most-used shortcuts:

F6 or Ctrl+L : Gets you right up into the Address/URL bar.
F5 : Reload the page.
Ctrl+F : Find what you’re looking for on the page. I also just learned you can “quick search” by using just the / key!
Ctrl+T : Opens a new tab. If you’re spending time clicking the new tab icon all day, you’re missing out!
Ctrl+K : Takes you to the Firefox search box.
Ctrl+U : View the page’s source.
F11 : View the page in full-screen mode.
Ctrl+W : Closes the active tab.
Ctrl+= : Increases font size.
Ctrl+- : Decreases font size.
Ctrl+Shift+T : Opens the last closed tab. No more right-clicking and asking Firefox to open the tab you accidentally closed!

Author: SquallLTT Categories: IT Tags: ,

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: , ,

C# programming language

May 5th, 2009

Microsoft .NET

Microsoft .NET contains 2 main components: Framework and Integrated Development Environment (IDE). Framework is the most important part of .NET and it is the core of the environment.

.NET Framework contains:

  • 4 main programming languages: C#, VB.NET, C++ and JScript.NET
  • Common Language Runtime (CLR) – this is the core of the framework – which is Microsoft implementation of the Common Language Infrastructure (CLI) standard – handles code execution and all of the tasks associated with it: compilation, memory management, security, thread management, and enforcement of type safety and use.

Read more…

Author: SquallLTT Categories: Programming Tags:

Mobile robot

May 5th, 2009
mobile robot

mobile robot

mobile robot

mobile robot

mobile robot

mobile robot

(Definition from Wikipedia: http://en.wikipedia.org/wiki/Mobile_robot ):
A Mobile Robot is an automatic machine that is capable of movement in any given environment.

Mobile robots are the focus of a great deal of current research and almost every major university

Classification: Mobile robots may be classified by:

  • The environment in which they travel:
    • Land or home robots. They are most commonly wheeled, but also include legged robots with two or more legs (humanoid, or resembling animals or insects).
    • Aerial robots are usually referred to as unmanned aerial vehicles (UAVs)
    • Underwater robots are usually called autonomous underwater vehicles (AUVs)
  • The device they use to move, mainly:
    • Legged robot : human-like legs (i.e. an android) or animal-like legs.
    • Wheeled robot.
    • Tracks.

CSS Tips to prevent image from being to large

May 3rd, 2009

Sometimes you have an image appear in your blog which is too large that causes problems with your WordPress theme. This is a common problem for WordPress blogs that have multiple authors, where some authors don’t know how large the image they can post or new blogger who is not very familiar with CSS code.

Fixing this problem is absolutely easy with CSS hack. You only need to place following code in your stylesheet to set the maximum width for your image:

    .postarea img {
    max-width: 500px;
    height: auto;
    }

In the above code snippet, you have to replace postarea with whatever div ID or Class which is used in your theme for the content. And you can adjust the max-width properties to be suitable to your current theme.

As you see, it’s absolutely simple to prevent image from being to large with just a CSS hack. Just do it now for your blog. But please note that this hack may not work on some versions of IE.

Author: SquallLTT Categories: IT Tags: , , ,