Typeperf – Windows Command Line Monitoring Tools

typeperf is a good tools for Windows IT Professional to monitoring their server/PC through command prompt instead of GUI interface.

To understand more on typeperf, simply type in typeperf /?

To get all of the counter that can be listed in typeperf, you may enter the following command,

C:\> typeperf –q > c:\counter.txt

To define a counter live from your PC,

C:\> typeperf "\processor(*)\% Processor Time"

If you prefer to get from remote server,

C:\> typeperf "\processor(*)\% Processor Time" -s mickgenie.localhost


Understand and Enable Search Engine Friendly (SEF) in Joomla

Search Engine Friendly(SEF) also known as human readable URL. With the most famous Web Service like Nginx, Apache and IIS7, they do support URL rewrite or mod_rewrite to rewrite the human readable URL such as www.domain.com/about instead of www.domain.com/about.html.

With Joomla 1.5 and above, Joomla come with 3 option from your Global Configuration.
–  Search Engine Friendly URLs – With this option enabled, SEF will enable and your URL will look like, http://www.example.com/index.php/the-­news/1-­latest­-news/1­-welcome­-to­-joomla.
– Use Apache mod_rewrite/URL rewriting – With this option enabled, mod_rewrite will eliminate inde.php and your URL will look like, http://www.example.com/the-­news/1­-latest-­news/1-­welcome-­to­-joomla
– Add suffix to URLs – With this option enabled, your URL will added .html at the end of the URL and it will look like http://www.example.com/the-­news/1­-latest-­news/1-­welcome-­to­-joomla.html

To enable SEF with Nginx, add the following line to your (vhost)nginx.conf file.

# Support Clean (aka Search Engine Friendly) URLs</tt>
        location / {
                try_files $uri $uri/ /index.php?q=$request_uri;

To enable SEF with Apache server, you may easily rename the htaccess.txt to .htaccess file. This step is not necessary as you may get your .htaccess file generated if it is install in  own folder.

With IIS 7, you may choose to use GUI or directly add it from web.config file.

With GUI interface, you may add the following option from the URL rewrite option.

Pattern field: ^([^/]+)/?$
Ignore case ON
Action type: Rewrite
Rewrite URL: index.php/

 Otherwise, you may add the following line to your web.config file.

<?xml version="1.0" encoding="UTF-8"?>
                <clear />
                <rule name="Common Exploit Blocking" stopProcessing="true">
                    <match url="^(.*)$" />
                    <conditions logicalGrouping="MatchAny">
                        <add input="{QUERY_STRING}" pattern="mosConfig_[a-zA-Z_]{1,21}(=|\%3D)" />
                        <add input="{QUERY_STRING}" pattern="base64_encode.*\(.*\)" />
                        <add input="{QUERY_STRING}" pattern="(\&lt;|%3C).*script.*(\>|%3E)" />
                        <add input="{QUERY_STRING}" pattern="GLOBALS(=|\[|\%[0-9A-Z]{0,2})" />
                        <add input="{QUERY_STRING}" pattern="_REQUEST(=|\[|\%[0-9A-Z]{0,2})" />
                    <action type="Redirect" url="index.php" appendQueryString="false" redirectType="SeeOther" />
                <rule name="Joomla Search Rule" stopProcessing="true">
                    <match url="(.*)" ignoreCase="true" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{URL}" pattern="^/search.php" ignoreCase="true" />
                    <action type="Rewrite" url="/index.php?option=com_content&amp;view=article&amp;id=4" />
                <rule name="Joomla Main Rewrite Rule" stopProcessing="true">
                    <match url="(.*)" ignoreCase="true" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{URL}" pattern="(/[^.]*|\.(php|html?|feed|pdf|raw))$" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                    <action type="Rewrite" url="index.php/" />
                <add extension=".php" policy="DisableCache" kernelCachePolicy="DisableCache" />

Add multiple IPs to Windows Server

Imagine you have 20 IPs to add to your Windows Server and it is not an easy job to add them one by one.

To easily add them to the Windows server, you may use the following command format to add them.

netsh interface ip add address "Local Area Connection"

To add IP from to, you may use the following command,

FOR /L %I IN (2,1,21) DO netsh interface ip add address "Local Area Connection" 192.168.0.%I

IIS PHP Manager

1 week ago, IIS come out PHP Manager to allow IIS user to easily manage their PHP setting easily through IIS with interface.

For some reason, IIS PHP Manager only supported IIS7 and above but not lower version such as IIS6 as an extension of IIS7. Get your PHP Manager here.
IIS PHP Manager x86
IIS PHP Manager x64

Get your feature from your website.

With PHP Manager, you are able to do the following thing.

1. Change PHP Version.
2. Configure error_reporting easily.
3. Set runtime limits.
4. Manage all setting with GUI interface.
5. Enable extension easily.

With PHP Manager, you can easily change the PHP version as image above.

With PHP Manager, it allow you to enable the error log easily as well.

Microsoft WebMatrix Beta

Microsoft WebMatrix is a cool thing that allow you to easily support and install your application within your server without much knowledge on how to manually setup your IIS, database engine, etc.

With WebMatrix, you can easily install IIS Developer Express which known as IIS Express, ASP.Net (.Net Framework), SQL Server Express(MSSQL Express), etc easily and with just a click.

How to install WebMatrix?
As you know, Microsoft do have Web Platform Installer and you can look for WebMatrix from there.

Managing and maintain database engine.
– By using WebMatrix, you can easily maintain your SQL within the user interface.

Mick Genie still exploring WebMatrix and shall share more tips on WebMatrix 🙂

GMail adds Drag and Drop Image Insertion

GMail just picked up another feature which adding drag and drop image insertion feature with Picasa value added feature to GMail and you are now able to insert the image through the post directly through the GMail webmail interface.

However, Google Team claim that this feature only supported for Google Chrome browser at the moment and Mick Genie have tested it is working well. 🙂