Wiki To XML : New blogs series on my msdn

March 28, 2010

I started new blog series on wiki to XML@ my msdn page. Check it out.
Part1: Introduction
Part2: a simple program

0

WordPress plugins – I Like

January 10, 2010

 

WordPress Plugins – My fav’s

1. Akismet – Your blog is now protected from spam comments.

2. Google XML Sitemaps -  Helps your blog to be searched well and good.

3. MobilePress  – Your blog readers from mobile phones feel comfortable now.

4. RTS Mirror for Telugu – Mirror your Telugu blog in Tenglish script.

5. Twitter for WordPressbridge Twitter and your blog.

6. WordPress.com Stats – Keep an eye on friends and enemies coming to your blog.

7. Yet Another Related Posts Plugin   – This is great plugin. Works so well. I love this, the reason behind this post is this plugin :)

వర్డ్ ప్రెస్ పొడిగింతలు (Read this on my Telugu Blog, in Telugu Language)

0

About non English mail id’s , URLs

June 5, 2009

I am not Klingon wrote an update about works going on in this area. read it here.

May be soon (with in two years? ) we will have non-english maild id’s and web URLs. Then I can have something like చావాకిరణ్@hotmail.com :) or I can even register a new home page చావాకిరణ్.కాం !

To know about work going on in standards body about non-English mail ids, see this link.

 

To know about work going on about non-English URL names , follow this wiki page and all links given there.

తెలుగు వెబ్బు సైట్ పేర్లు, తెలుగు వేగు చిరునామాలు ఇంకెంత దూరం? (Read this on my Telugu Blog, in Telugu Language)

0

Bing – Videos

June 4, 2009

 

Looks like Bing got a mixed response and in movie terms it is divided talk!

Today I spent some time in searching for videos related to Bing. Here you go.

 

In this The presenter is comparing GG Vs Bing.

 

 

This one is TV Commercial, good one.

 

Another nice  video.

 

This one is also official commercial, but very funny and good one.

 

బింగ్ వీడియోలు (Read this on my Telugu Blog, in Telugu Language)

0

Let us write a powershell custom Cmdlet …

May 24, 2009

Let us Write a Simple powershell Cmdlet.
The goal of this exercise is to understand minimum basics of writing a custom cmdlet. Thus as the tradition goes let us write a cmd-let which will print “Hello World”.
All it takes to write a cmdlet is
1. Write Code for Cmdlet functioning.
2. Write Code to Snap-In this Cmdlet.
3. Compile above piece of code.
4. Install Above Assembly.
5. Add PS Snap In to powershell
6. Run this Cmdlet.

1. Write Code for Cmdlet functioning.

/* A simple cmdlet */
using System;
using System.Management.Automation;
using System.IO;

[Cmdlet (VerbsCommunications.Write, "HelloWorld")]
public class PrintHelloCommand : Cmdlet
{
	public PrintHelloCommand()
	{
		Console.WriteLine("Hello World");
	}
}

Write this piece of code into a cs file. Let us call that cs file PrintHello.cs
A bit of explanation …
This is very much usual program. A simple Hello world program.
This doesn’t have Main, as for Cmdlets we don’t require Main, we will simply compile to dll (assembly) and follow other instructions to make this integrate and work with powershell.

One striking difference to our normal Hello World program is use of Cmdlet attribute

[Cmdlet (VerbsCommunications.Write, "HelloWorld")]

Read more about this CmdletAttribute at here.
This simply gives information about three things.
The class following this attribute contains code for a Cmdlet.
The cmd will be called with Verb-Noun combination. first parameter VerbsCommunications.Write is verb. We can simply give “Write” but using VerbsCommunications.Write we are telling PS that this is a commonly used verb. At many places it is strongly emphasized to use common verbs unless otherwise required. The second parameter is noun. We are calling it HelloWorld. Thus once everything is over our custom Cmd-let will be called Write-HelloWorld

2. Write Code to Snap-In this Cmdlet.

/* Snapin for Write-Hello cmdlet */
using System.Management.Automation;
using System.ComponentModel;
[RunInstaller (true)]
public class WriteHelloSnapin : PSSnapIn
{
	///<summary>
	///
	///</summary>
	public WriteHelloSnapin() : base()
	{
	}
	/// <summary>
	/// The snap in name that is used for registration
	/// </summary>
	public override string Name
	{
		get
		{
			return "WriteHelloSnapin" ;
		}
	}
	/// <summary>
	/// Get Vendor of snap in
	/// </summary>
	public override string Vendor
	{
		get
		{
			return "chavakiran - personal";
		}
	}

	/// <summary>
	/// Get Description of Snap in
	/// </summary>
	public override string Description
	{
		get
		{
			return "Simply prints Hello World";
		}
	}
}

“System.Management.Automation” – is the namespace which requires System.Management.Automation.dll this comes with powershell SDK or windows SDK installation.
All the properties above are very straight forward.
Just make a note of RunInstaller attribute, and PSSnapIn class derivation, and default constructor.

3. Compile above piece of code.
Let us use csc.exe.
I have this csc.exe on my machine. I think this comes with .NET framework SDK.
simply run csc.exe file1.cs file2.cs /out:WriteHello.dll /target:library /debug:full /warn:4 /utf8output /r: System.Management.Automation.dll
file1.cs and file2.cs are the files we stored above pieces of code. We can even store them in single file.
4. Install Above Assembly.
We use InstallUtil.exe for installation.
I have this InstallUtil.exe on my machine :) I think this also comes with .NET framework SDK. (or .NET Framework)
Simply Run InstallUtil.exe WriteHello.dll

5. Add PS Snap In to powershell
From the powershell run
PS:> Get-PSSnapin -reg Wri*
This will display our WriteHelloSnapin details.
PS:> Add-PSSnapin WriteHelloSnapin
Use above command to add our snapin to PS.

6. Run this Cmdlet.
Now we can simply write Write-HelloWorld which will print Hello World.
PS> Write-HelloWorld
Hello World

—–
References:
Extend Windows PowerShell With Custom Commands

0

Why Windows Mobile Rules – iPhone vs Windows Mobile Part 2

May 19, 2009

Why Windows Mobile Rules – iPhone vs Windows Mobile Part 2

From testfreaks.

I have some serious thoughts to feel iphone for some time atleast. But after seeing the table below from above link, I think I have to be happy with my current diamond and wait for next windows mobile big release for any more satisfaction. As all of below things I badly need. Also hand writing recognition is one more feature I use, but even that is missing iphone!

Happy WM user, be happy with it. Don’t worry about utopia around new phone users :)
compare

ఐ ఫోన్ తో పోలిస్తే విండోస్ మొబైల్ ఎందుకు సూపర్ (Read this on my Telugu Blog, in Telugu Language)

1

PowerShell: Getting Help of a cmdlet (man)

May 18, 2009
Tags: , ,

Here is my favorite.

> man cmdlet-name

For example
> man Set-ExecutionPolicy

and this cmdlet supports -full option too.
> man Set-ExecutionPolicy -full

——
one can use
> help cmdlet-name
or
> get-help cmdlet-name

—–
The reason why I like man is it doesn’t require to |more in the end. Displays page by page. and Its a UNIX command :)

పవర్ షెల్: ఒక సీయండీ-లెట్ యొక్క సహాయం పొందటం. (man) (Read this on my Telugu Blog, in Telugu Language)

0

Let us start Using PowerShell

May 18, 2009

http://channel9.msdn.com/wiki/windowspowershellwiki/

This Official PowerShell wiki is a good starting point.

—-
Here is a simple Hello World script of PowerShell.
——
echo “Hello World”
——–

Here is another way of writing the same.

———–
$hash = New-Object String(”Hello World”)
echo $hash

—————-

పవర్ షెల్ వాడదాం రండి. (Read this on my Telugu Blog, in Telugu Language)

0

Bridge – Connect your mirrorred wordpress blogs

May 6, 2009

Why I wrote this plugin

What is my requirement?

Here goes the story.

I have a Telugu Blog and an English Blog. I usually write same post in both the languages of Telugu and English on respective blogs. Now I want to interlink each and every post so that people reading English post can directly go to same post in Telugu language and vice-versa. The current plugin will help me in this.

Of course I can add an href at the end of each post manually. But I believe this plugin will make my life a bit easy. I don’t think somebody will have this kind of requirement, anyhow if you have similar to above requirement, then here is a plugin which you can try out.

How it Works ?

Each time I complete writing posts on both of my blogs I will go to $blogaddress/wp-admin/bridge_admin.php There I will enter four details, this blog URL, this blog title,other blog title, other blog url. From Then onwards plugin will automatically take care of inserting other blog post address at the endof this post. I will do the same thing on the second blog. I repeat, we have to do this bridge_admin.php twice, once on first blog and second time on second blog.

How to Install?

Sorry to say, but this plugin is not single click installable. Here are the steps one need to follow.

Create Tables on both the blogs

Simply run the following on your sql.
CREATE TABLE IF NOT EXISTS ‘wp_bridgetable’ (
‘eid’ int(11) NOT NULL auto_increment,
‘this_url’ text character set utf8 collate utf8_unicode_ci NOT NULL,
‘this_title’ text character set utf8 collate utf8_unicode_ci NOT NULL,
‘other_url’ text character set utf8 collate utf8_unicode_ci NOT NULL,
‘other_title’ text character set utf8 collate utf8_unicode_ci NOT NULL,
PRIMARY KEY (‘eid’)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
You can use phpmyadmin –> SQL tab to run this.

Copy bridge.zip to your plugin directory

#Download bridge.zip to your local machine.
#Unzip it.
#Copy the same to your plugin directory. usually $your_blog_install_directory/wp-content/plugins

Copy bridge_admin.php to $your_blog_install_directory/wp-admin/ directory. This bridge_admin.php is in previously unzipped files.

Activate the plugin from your dashboard of your wordpress.

Follow the steps mentioned in how it works section above to make it work.

Bridge - వంతెన ఒక వర్డ్ ప్రెస్ పొడిగింత (Read this on my Telugu Blog, in Telugu Language)

1

Bridge Powered by chavakiran