Count Number of Words in a Sentence using ASP

Date October 16, 2009

There is no function in ASP to count number of words in sentence or long string. Bellow is very simple function that count number of words and return that count.

< %
Function CountWords (StrValue)
  Dim iWords, mLengthWithSpaces, mLengthWithoutSpaces

  ' following line calculate the actual length of string
  mLengthWithSpaces = Len(StrValue)

  ' following line remove all spaces from string and then calculate the length of string
  mLengthWithoutSpaces = Len(Replace(StrValue, " ", ""))

  ' subtract length (without spaces) from actual string length
  iWords = mLengthWithSpaces - mLengthWithoutSpaces

  CountWords = iWords + 1
End Function

'example
Msg = "This is text string"
Response.Write CountWords(Msg)

'output will be 4
%>

10 Steps to follow after installing WordPress

Date October 8, 2009

Congratulation! you just installed a wordpress blog on your live hosting or even on your local computer. Now you’ve 10 steps to follow to make sure your blog is ready to use. Following are the steps define what you should do after installing WordPress.

  1. Change your admin Password

    You must have to change the password of administrator account that you can remember because it is too difficult to remember WordPress default password. You should go to “Your Profile” for change default password and other profile information.

  2. Always use latest copy of WordPress

    Make sure your WordPress is up-to-date, if not you should update your WordPress copy by using FTP or use Automatically Upgrade option.

  3. Change WordPress defaut theme

    You should change WordPress defaut theme to your favorite WordPrese themes. Download WordPress Themes Free

  4. Change the format of your blog your

    By default WordPress offers the url format that is not SEO friendly, You should change it using “Settings > Permalinks” links and choose the url that you like or want. But remember, after choosing url you’ll have to check either your selected url format is working or not because in linux hosting most of the format are applicable but in windows hosting many format except WordPress suggested url format will not work.

  5. Activating Akismet

    Do you want to avoid SPAM? I know you do avoid. Just activate Akismet pluging as wordpress is already installed it for you. Akismet is one of the best effective solution to avoid SPAM. To activate this plugin you’ll have to get WordPress API Key from wordpress.org. Create your account there and get an API key.

  6. Setup statistical tools

    You always want to know who came on your site on which keyword and from which search engine. There are many free statistical tools on web but I like two of them: StatCounter and Google Analytics.

  7. Create a Sitemap

    Do you really want to search engine get all webpages spiderd of your website. You should create sitemap. For that purpose you may have to use feedburner and Google XML Sitemap.

  8. Activation of the site in Google Webmaster Tools

    Do you want to target your website in specific region or just want to see how many other websites are linked to your website and your top keywords in google search engine then you should use Google webmaster tool.

  9. Change the image size

    Depending on your theme, you’ll have to change default image size that you want to upload with your article, it is convenient and also allows to manage thumbnails which is important if you use image galleries using the thumbs.

  10. Install additional plugins

    To get efficient work with WordPress you may have to install some plugins that ease your posting like SP Super Cache, WP Database backup, Advertisement Manager, PageNavi, Related Posts, cFormsII, All in One SEO Pack, WP-PostRatings etc

Why to Install WordPress on your own Computer

Date October 8, 2009

Are you installing wordpress or testing theme or pluging for wordpress on your live domain? Wait… Dont’ try it on your live system, let’s look at some reason why you may want to install WordPress on your local computer.

Reason #1: There is no need to register domain name and buy web hosting to host your website.

Reason #2: If you already registered domain name and host your website its fine but you may still want to install WordPress on your local computer because it will help you to test out WordPress Plugin that you may require on your live domain or test out new WordPress Theme. You may also tweaks WordPress as it installed on your local computer it means run faster.

Reason #3: Are you running Windows XP on your local computer and you have linux based webhosting just install WampServer. WampServer gives you linux environment on Windows. After installing WampServer you’ll have Apache, MySQL and PHP on Windows environment. And remember WamServer is FREE! Download WamServer.

Amazing Sand Animation by Kseniya Simonova

Date September 8, 2009

The girl in following video clips is using grains of sand to draw these amazing animations in front of a live audience. Her canvas is simply a backlighted glass table connected to a projector, not a Microsoft Surface Table.

Her name is Kseniya Simonova and she is a sand animator from Ukraine. This moving animation, that portrays the life of Ukrainians during World War II, won her the Ukraine’s Got Talent show. Simonova won ₴1,000,000 Ukraninan Hryvnia (approx. $125,000) for her first place in the show.