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
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!
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…
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…

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.
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.
.NET programming
The following VB.NET code will help you to check whether a USB device is plugged in or taken out. No timer is used here. You can integrate this tip to your program just by copy and paste.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| Private WM_DEVICECHANGE As Integer = &H219
Public Enum WM_DEVICECHANGE_WPPARAMS As Integer
DBT_CONFIGCHANGECANCELED = &H19
DBT_CONFIGCHANGED = &H18
DBT_CUSTOMEVENT = &H8006
DBT_DEVICEARRIVAL = &H8000
DBT_DEVICEQUERYREMOVE = &H8001
DBT_DEVICEQUERYREMOVEFAILED = &H8002
DBT_DEVICEREMOVECOMPLETE = &H8004
DBT_DEVICEREMOVEPENDING = &H8003
DBT_DEVICETYPESPECIFIC = &H8005
DBT_DEVNODES_CHANGED = &H7
DBT_QUERYCHANGECONFIG = &H17
DBT_USERDEFINED = &HFFFF
End Enum
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
If m.Msg = WM_DEVICECHANGE Then
Select Case m.WParam
Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEARRIVAL
MsgBox("USB device is just plugged in!")
Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEREMOVECOMPLETE
MsgBox("USB device is just taken out")
End Select
End If
MyBase.WndProc(m)
End Sub |
This webpage will guide you how to register a free hosting at pipni.cz
Note that: firstly you need to own a domain .com or .net or .org e.tc.
All right, here we go: …
Read more…
Drink Warm Water After A Meal

This is a very good article. Not only about the warm water after your meal, but about heart attack.
The Chinese and Japanese drink hot tea with their meals, not cold water, maybe it is time we adopt their drinking habit while eating. For those who like to drink cold water, this article is applicable to you. It is nice to have a cup of cold drink after a meal. However, the cold water will solidify the oily stuff that you have just consumed. It will slow down the digestion.
Read more…
Hi every1, today I’m gonna share with you a very simple JavaScript hack, all you need to do is copy and paste the code below into your web browser, then you can edit everything on that page. It’s just for fun, coz everything will return to original once the page is reloaded.
Code:
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
The above Javascript trick can apply to any website including Google, Yahoo or MSN. It’s make a website editable and allow user to change the content. However the changes only apply to the current browser and no affect on the “real content”.