Profilo di ambatiProgramming Myself.. Amb...FotoBlogElenchiAltro Strumenti Guida

Blog


19 febbraio

My plans for next 10 days

Going to my native place for doing arrangements and attending my sister marriage,
 
My schedule will be
First priority to younger sister marriage arrangements,
Then environment : Planting trees with my elder sister son and telling the importance
Going to OldHome (orphanage) and distributing Jerkins from my community
Fulfilling my short term dream: ie Learning Bike driving.
 

My sister got Team Achievement Award

My sister got Team Achievement Award ( a 3 member team one tester one developer and a db) for her performance.
I always told her constant hard work with commitment creates wonders in life and in work environment.
Never my words went  wrong. Congrats sis.
Really I am proud of u. She is very kind , generous , and hard working girl.
She is a replica to me. Two persons I like more in this world. One my father and my sister.
They will work not completely for themselves but for the poor too.
When my sister donated 1 lakh to Tirupati free food programme last year I was astonished. So many criticized her.
From my experiences: So many people who called our family as conjoos (miser) have to know one thing.
If u r wearing good dresses and spending lot of money for urself what is great in that.
I use of spent  less money so I was called as miser.
One thing u r spending money for urself. Not for the poor and not to orphanages not to old homes and u r not contributing to the society.
But I am not like that. With that extra money we use to give to the needy people.
Why I wrote this??
The people who are staying beside to my room they commented on my sister.
I strongly protested them.
If u r buying a house and spending lot of money does it mean that u r lavish and if a person spending less money doesnt mean that he is miser.
Think for the poor and poor students help them then tell me that I am miser.
 
This is the mail she got from her HR.
Hi ,

Congratulations!!! You have received a Team Achievement Award for Recognizing the team s performance in consistentently achieving the targets set for <<Project Name>> and meeting the expectations of the customer inspite of unclear requirements and numerous change requests.

Your immediate manager will ensure that the award distribution takes place in a suitable forum in the near future.

You will receive a mail from Les Concierges(the online gifting service provider) giving you the details about on-line
gift availment within the 24 hours.

Les Concierges will deliver the gift chosen by you at the HTS campus. If you are on travel,
you can choose and pickup the gift within 12 months from today, while you are in India.


http://www.lesconcierges.com/
17 febbraio

Google OpenSocial

The web is more interesting when you can build apps that easily interact with your friends and colleagues. But with the trend towards more social applications also comes a growing list of site-specific APIs that developers must learn.
 
There are many websites implementing OpenSocial, including Engage.com, Friendster, hi5, Hyves, imeem, LinkedIn, MySpace, Ning, Oracle, orkut, Plaxo, Salesforce.com, Six Apart, Tianji, Viadeo, and XING.

Bangalore Flex User Group Meeting

Bangalore Flex User Group Meeting

http://bangalorefx.eventbrite.com/

Bangalore Flex User Group Meeting
Monday, February 25, 2008 5:00 pm - 7:00 am
Bangalore

Hi Everyone,

initRIA went very well, now its time for our next meeting and this one you just can’t miss …

As you may have heard, Adobe is about to release Adobe Flex 3 and Adobe AIR 1.0. Now that the cat is almost out of the bag, this will be the focus of our 25th February special meeting! Adobe is sponsoring this meeting with giveaways and a raffle copy of Adobe Flex Builder 3 Professional.

Flex 3 is a feature-packed release, adding new UI components like the advanced datagrid and improved CSS capabilities; powerful tooling additions like refactoring; and extensive testing tools including memory and performance profiling, plus support for automated functional testing in Flex Builder 3.

Adobe AIR is game-changing in so many ways, delivering rich Internet applications (RIA) on the desktop, enabling access to the local file system, system tray, notifications and much more. Now you can write RIAs on the desktop using the same skills that you’ve been already using to create great web apps including both Flex and AJAX.

Don’t miss out on this opportunity to see and hear about this highly anticipated release of Flex 3 and AIR at this meeting.

I’ll be posting the venue details very soon, meanwhile I request you all spread the word.

With best regards,

Mrinal Wadhwa
Manager,
Bangalore Flex User Group

IndiBlogger meet

Yesterday I went to Indi Blogger meeting in Microsoft Krishna Hall.
 
Main points:
How bloggers can create change in the society (with implementation) and how they are contributing?
 
The great thing is Microsoft is sponsored this event. It clearly shows the changing environment of Media on people.
 
Earlier we trust on newspapers .. tomorrow may be blogs.
 
Indiblogger.in is the url.
 
I learned so many things .Nearly 70+ bloggers gathered.
 
What r the ethics to follow.
 
I will give a more insight into this later.
 
Today (Sunday) I want to attend BDotnetStudent msn group event too.
 
But cant able as my project demands me more.
 
How a student can become MSP ( Microsoft Student Program) and do internship in Microsoft.?
 
By actively participating in BDotnetstudent community (by taking talks and contributing to group) any student can become a MSP and can be close with Microsoft R&D team. I dont know all these things (about events,software companies) during my engg days. Just I know computers means c,cpp,oracle,dotnet, etc.
 
This month I missed 3 main events: linuxchix, first devcamp, bdotnet session.
In the coming days of this month I may miss some more  : bangaloreitpro, initria
 
Dudes please do attend the above two events.
 
 

BangaloreITPRO event on 23rd Feb 2008

BangaloreITPro Announcement - Its time for celebrations - “IT Pro Touch 2008″.

Dear Members,
           We are glad to announce our 3rd year anniversary on 23rd Feb 2008 and cordially invite you along with your friends to make up for the biggest event that has ever happened in Bangalore IT Pro UG. Please find few details of the event and rush in your registrations now… More details will be shortly announced…

Event Name: “IT Pro Touch 2008″ - 3rd Anniversary Bangalore IT Pro UG

Date: 23rd February, 2008

Time: 9:00 AM to 6:00 PM

Venue: D.A. Pandu Memorial R. V. Dental College & Hospital
CA 37, 24th Main,
JP Nagar 1st Phase,

Bangalore 560078,
Karnataka,India

Topic: Unified Communications,Exchange Server 2007, Windows Vista SP1 and System Center Ops Manager 2007 (Topics are Subjected to Change)

Register for Event: Click Here
Regards,
Mangers - Bangalore IT Pro.

SEO

Lot of scope is there in SEO ( Search Engine Optimization )
Thinking and discussing with my friend BalaKrishna (Ex-colleague V-Empower Hyd)
14 febbraio

Natural Language Processing (NLP)

For term extraction
Use SharpNLP a free source project in Codeplex.com
 
Follow these links how to use them
 
 
I used it . Working wonderfully.
 

Google SpellCheck using Screen Scrapping

Introduction:

If you type "Taj Mahel" in Google Search box it will suggest you with "Taj Mahal"

Like this: "Did you mean?" in red color words.

There I am using screen scrapping technique to extract that suggested correct word.

Code is like this: Dim searchText As String = "spell=1"" class=p>"

here  I am screen crapping . I am getting that word here

lblSuggestion is a asp.net label control and

lnkBtnSpelling is a asp.net linkbutton control searchTerm is a asp.net textbox control

 

Try

Dim lcUrl As String = "http://www.google.co.in/search?hl=en&q=" + searchTerm.Text

' *** Establish the request

Dim loHttp As HttpWebRequest = DirectCast(WebRequest.Create(lcUrl), HttpWebRequest)

' *** Set properties

loHttp.Timeout = 10000

' 10 secs

loHttp.UserAgent =

"Code Sample Web Client"

' *** Retrieve request info headers

Dim loWebResponse As HttpWebResponse = DirectCast(loHttp.GetResponse(), HttpWebResponse)

Dim enc As Encoding = Encoding.GetEncoding(1252)

Dim loResponseStream As New StreamReader(loWebResponse.GetResponseStream(), enc)

Dim lcHtml As String = loResponseStream.ReadToEnd()

loWebResponse.Close()

loResponseStream.Close()

Dim result As String

Dim start As Integer, [end] As Integer

Dim searchText As String = "spell=1"" class=p>"

Dim endTerm As String = "</a>"

start = lcHtml.IndexOf(searchText)

If start = -1 Then

Return True

Else

' having suggestions

[end] = lcHtml.IndexOf(endTerm, start)

result = lcHtml.Substring(start + searchText.Length, [end] - (start + searchText.Length))

result = result.Replace(

"<b>", String.Empty)

result = result.Replace(

"</b>", String.Empty)

result = result.Replace(

"<i>", String.Empty)

result = result.Replace(

"</i>", String.Empty)

lblSuggestion.Text =

"Suggested Text:"

lnkBtnSpelling.Text = result.ToString()

Return False

End If

Catch

Throw

End Try

Google Autocomplete feature from Client Side

Google Autocomplete feature from Client Side ( javascript)

Got help from I-Ching

<html>

<head>

<title>::I-Ching::</title>

<script type="text/javascript">

var g_request; // XMLHTTP request object

var g_text;

function load_return()

{

document.getElementById(

'drpSuggestedValues').style.display = "inline";

var str = g_text;

var start = str.indexOf("new Array");

var end = str.indexOf(", new Array", start + 1);

str = str.substring(start, end);

str = str +

";";

var test = eval(str);

//alert(test)

var myArray = new Array();

var j =1;

for(i= 0;i<test.length/2;i++)

{

myArray[i] = test[j];

j= j+2;

}

//alert(myArray)

removeAllOptions(document.getElementById(

'drpSuggestedValues'))

for (var i=0; i < myArray.length -1 ;i++)

{

addOption(document.getElementById(

'drpSuggestedValues'), myArray[i], myArray[i]);

}

}

function addOption(selectbox,text,value )

{

var optn = document.createElement("OPTION");

optn.text = text;

optn.value = value;

selectbox.options.add(optn);

}

function removeAllOptions(selectbox)

{

for(var i=selectbox.options.length-1;i>=0;i--)

{

selectbox.remove(i);

}

}

window.setTimeout(

"autoCompleter();", 5000);

var textOld = "";

function autoCompleter()

{

//alert(document.getElementById("txtSearch").value);

//alert(textOld);

if(document.getElementById("txtSearch").value != '')

{

document.getElementById(

'drpSuggestedValues').style.display = "inline";

if (document.getElementById("txtSearch").value != textOld)

{

textOld = document.getElementById(

"txtSearch").value;

load_content(

true)

//alert("text changed");

}

//else alert("text is same");

}

else

{

document.getElementById(

'drpSuggestedValues').style.display = "none";

}

window.setTimeout(

"autoCompleter();", 5000);

}

function load_content(isreading)

{

if(document.getElementById("txtSearch").value != '')

{

var feedurl = "";

feedurl="http://www.google.com/complete/search?hl=en&js=true&q=" + document.getElementById("txtSearch").value;

if (g_request)

{

g_request.abort();

}

if (window.XMLHttpRequest)

{

g_request =

new XMLHttpRequest();

g_request.onreadystatechange = processresponse;

g_request.open(

"GET", feedurl, true);

g_request.send(

null);

}

else // branch for IE/Windows ActiveX version

{

try

{

g_request=

new ActiveXObject("Msxml2.XMLHTTP");

}

catch(e)

{

try

{

g_request=

new ActiveXObject("Microsoft.XMLHTTP");

}

catch(e)

{

g_request=

false;

}

}

if (g_request)

{

g_request.onreadystatechange = processresponse;

g_request.open(

"GET", feedurl, true);

g_request.send();

}

}

}

else

{

document.getElementById(

'drpSuggestedValues').style.display = "none";

alert(

"Please enter the text");

}

}

// Called when the http request is finished getting list of articles

function processresponse()

{

if (g_request.readyState == 4)

{

// Success.

if (g_request.status == 200)

{

g_text = g_request.responseText;

load_return();

}

else

{

alert(

"Could not get data from server.");

}

}

}

</

script>

</

head>

<

body>

<form id="myForm">

<table>

<tr>

<td>

<input type="text" id="txtSearch" />

</td>

<td>

<input type="button" value="Search" id="btnSearch" onclick="load_content(true);">

</td>

</tr>

<tr>

<td colspan="2">

<select id="drpSuggestedValues" size=5 runat="server" style="width:auto;display:none" onclick="sree();"></select>

</td>

</tr>

</table>

</form>

</

body>

</

html>

WikiPedia suggest based on a wikidictionary

Dowload English wiki dictionary  which contains all the articles of Wikipedia
 
Using that dictionary as a source for retrieving contents for Autocomplete functionality
 
Download WordNet 2.1 for Windows from  http://wordnet.princeton.edu/obtain
Below is the code:
 
In Web.config file
Add this:

<appSettings>

<add key="WordnetSearchDirectory" value="C:\Program Files\WordNet\2.1\dict" />

</

appSettings>

suggestions is an string array.

Dim FILENAME As String = Server.MapPath("wikipediadictionary")

Dim objStreamReader As StreamReader

objStreamReader = File.OpenText(FILENAME)

Dim objLine As String = String.Empty

Dim index As Integer = 0

suggestions =

New AutoCompleteSuggestion(5) {}

While objStreamReader.EndOfStream <> True And index < 6

objLine = objStreamReader.ReadLine

If objLine.IndexOf(searchTerm) = 0 Then

suggestions(index) =

New AutoCompleteSuggestion(objLine)

index = index + 1

End If

End While

objStreamReader.Close()

WikiPedia Suggest for Autocomplete through Screen Scrapping

Use this URL:

http://en.wikipedia.org/w/api.php?action=query&list=allpages&aplimit=" + maxMatches.ToString() + "&apprefix=" + searchTextTerm

Replace searchTextTerm  with your search terms.

maxMatches is integer variable . How many matches u want let say 5 or 10.

Like Google Suggest .. WikiPedia suggest is also there for getting Autocomplete functionality ( Getting releavant terms based on the letters u type. )

Final code:

Dim suggestions As String() = New String(5) {}

Dim maxMatches As Integer = 5

Dim lcUrl As String = "http://en.wikipedia.org/w/api.php?action=query&list=allpages&aplimit=" + maxMatches.ToString() + "&apprefix=" + searchTextTerm

Dim loHttp As HttpWebRequest = DirectCast(WebRequest.Create(lcUrl), HttpWebRequest)

loHttp.UserAgent =

"Code Sample Web Client"

Dim loWebResponse As HttpWebResponse = DirectCast(loHttp.GetResponse(), HttpWebResponse)

Dim enc As Encoding = Encoding.GetEncoding(1252)

Dim loResponseStream As New StreamReader(loWebResponse.GetResponseStream(), enc)

Dim lcHtml As String = loResponseStream.ReadToEnd()

lcHtml = HttpUtility.HtmlDecode(lcHtml)

Dim links As String() = New String(maxMatches - 1) {}

suggestions =

New AutoCompleteSuggestion(maxMatches - 1) {}

Dim NoSuggestions As String = "<span style=""color:blue;""><allpages /></span>"

Dim pos As Integer = lcHtml.IndexOf(NoSuggestions)

If pos <> -1 Then

suggestions =

New AutoCompleteSuggestion(0) {}

Return suggestions

Else

Dim searchTerm As String = String.Empty

For matches As Integer = 0 To maxMatches - 1

searchTerm =

"<p pageid="""

pos = pos + searchTerm.Length

pos = lcHtml.IndexOf(searchTerm, pos)

pos = pos + searchTerm.Length

Dim endPos As Integer = lcHtml.IndexOf("""", pos + 1)

searchTerm =

"title="""

pos = lcHtml.IndexOf(searchTerm, endPos)

pos = pos + searchTerm.Length

endPos = lcHtml.IndexOf(

"""", pos + 1)

Dim title As String = lcHtml.Substring(pos, endPos - pos)

suggestions(matches) =

New AutoCompleteSuggestion(title)

Next

loWebResponse.Close()

loResponseStream.Close()

Return suggestions

End If

Wipro caught fake resume guy

Another Andhra guy produce all fake documents  including interview call letter.
Caught.
 

Writing Secure Code -- Microsoft's "Hello Secure World"

 

Writing Secure Code -- Microsoft's "Hello Secure World"

Puzzled about how to write secure code? Check out Microsoft’s “Hello Secure World” site where you can learn about various security intrusions and how to make sure your code can handle them. Watch How To videos, hear how Microsoft developers code it and try out some examples in the Security Virtual Labs.

Hello Secure World: www.hellosecureworld.com

MSDN Code Gallery

(Got info from Bdotnet forum)

MS has just launched MSDN Code Gallery is a portal for snippets, samples and other resources. 

According to Somasegar,

"Code Gallery is, at its core, simply a community enabled site where we share developer enabling information and resources that will be integrated into the MSDN experience."

(Via) Somasegar’s blog - http://blogs.msdn.com/somasegar/
Src : http://code.msdn.microsoft.com/

What is Beauty?

This post is related to the external beauty of a person.