Gokul's Blog


Leave a comment

Outlook: Missing Envelope

http://www.howto-outlook.com/faq/missingenvelope.htm

Make sure the option is still selected

Tools-> Options-> tab Preferences-> button E-mail Options…-> button Advanced E-mail Options…-> option Show an envelope in the notification area

Make sure the envelope isn’t hidden in the Notification Area

When you are using Windows XP unused and inactive icons in the Notification Area are automatically hidden. You can either expand the Notification Area to see the unused icons or configure the Notification Area to always show the envelope. To customize the Notification area;

  1. Start-> Control Panel-> Taskbar and Start Menu-> button Customize…
  2. Find the envelope and click on the dropdown list and configure it from “Hide when inactive” to “Always show”
  3. Press OK twice to close the open windows

*The Notification Area in Windows XP is what the System tray is in previous versions of Windows

Advertisements


Leave a comment

Url-rewriting with WordPress & IIS-7 & Godaddy

(Please note this article is only for WordPress hosted on Windows Server)

Use the web.config as shown below to achieve url-rewriting with WordPress & IIS-7. You just need the bold part of the web.config mentioned below.

Step-1: First setup permalink from admin console of wordpress (Goto admin console==> setttings=>Permalink settings ==> In Common settings choose Custom Structure and in the TextBox enter  /content/%postname%/

Step-2: Create a web.config using the below contents and place it in the root folder of your WordPress installation.

<?xml version="1.0"?>
<configuration>
  <system.webServer>
    <!--<rewrite>
      <rules>
        <rule name="wordpress" patternSyntax="Wildcard">
    <match url="*"/>
    <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
    </conditions>
    <action type="Rewrite" url="index.php"/>
</rule>
      </rules>
    </rewrite>-->
 
    <rewrite>
      <rules>
        <rule name="Main Rule" stopProcessing="true">
          <match url=".*" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
          </conditions>
          <action type="Rewrite" url="index.php/{R:0}" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>
 

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }


Leave a comment

Handy WordPress Scripts

To delete the table from MY-SQL database

DROP TABLE IF EXISTS `wp_comments`;
DROP TABLE IF EXISTS `wp_links`;
DROP TABLE IF EXISTS `wp_options`;
DROP TABLE IF EXISTS `wp_postmeta`;
DROP TABLE IF EXISTS `wp_posts`;
DROP TABLE IF EXISTS `wp_term_relationships`;
DROP TABLE IF EXISTS `wp_term_taxonomy`;
DROP TABLE IF EXISTS `wp_terms`;
DROP TABLE IF EXISTS `wp_usermeta`;
DROP TABLE IF EXISTS `wp_users`;

 

Get current physical dir in PHP (similar to server.mappath)

<?php

// current directory
echo getcwd() . "\n";

?>