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

Blog


Experiences with different sessions

After going for different sessions for almost 1 year
I came to know some are slowly moving towards financial aspects.
 
First thing I have to mention is Barcamp . Became almost marketing one .
Will be useful if you want to take your girl friend for a party and useful for your blog to update with photos. getting some recognition from your company.
 
Recently I saw Indore B.Net msn group is going the same way .But I dont know much about it.
 
One more which I loved more "Mobile Monday Bangalore" is asking for sponsors. I dont know why it is required that much. They gave some sweets after the session. To be frank I dont want to see that type of things.I want a session which should be fully loaded with technical things.
 
Still BDotnet is not going that way. Thanks to Vinod and Kashi.
29 gennaio

DUET

Duet™ is a first-of-its-kind software solution from SAP and Microsoft that enables users to easily and quickly interact with SAP business processes and data via their familiar Microsoft Office environment. The result of a groundbreaking collaboration between SAP and Microsoft, it is the first joint product created by these two industry leaders and is designed to revolutionize how Information Workers interact with enterprise applications

BI with BA

Business Intelligence is collaborating more with Business Analytics
 
SAP acquired Business Obects
IBM               Cognos
Oracle           Hyperion
HP                 KnightsBridge Solutions

OpenSource ERP tools

Below list of opensource ERP tools available in SourceForge.Net
 
OpenBravo ERP
JFire
JAllinOne
Compiere ERP + CRM
Plazma
WebERP
 
 

Life!!

Nothing we come to this world with bare hands and leave this Earth again with bare hands. (My GrandMother was expired on 27th night 10:20 Pm)

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.

Want to get refreshment????

Just go to Reliance Fresh. Will be refreshed by the scenes shown by the ladies there.
25 gennaio

First Ajax Server

Aptana has released Jaxer, which is an Ajax server, check it out it looks very interesting. According to its homepage Jaxer is …

Jaxer is the world’s first true Ajax server. HTML, JavaScript, and CSS are native to Jaxer, as are XMLHttpRequests, JSON, DOM scripting, etc. And as a server it offers access to databases, files, and networking, as well as logging, process management, scalability, security, integration APIs, and extensibility.

http://weblog.mrinalwadhwa.com/2008/01/23/jaxer-the-ajax-server/

LAMP opensource

LAMP is an acronym taken from the initial letters of a set of free software programs commonly used together to run dynamic Web sites or servers. The components are Linux, Apache and MySQL, with the final “P” standing for any of three scripting languages: PHP, Perl or Python.
http://www.onlamp.com/
 
WISA is Windows (operating system), Internet Information Services (web server), Microsoft SQL Server (database) and ASP (scripting language).
 
There are also several other good choices not covered in this article such as WAMP, WIMP, LAMA, various other operating systems (MacOS, Unix, Solarius, BeOS), servers (WebStar, Xitami), databases (Postgre SQL, IBM DB), and scripting languages (PERL, Python).
 
24 gennaio

Good one

Never Be a Prisoner of your Past, Be an Architect of your Future"

How to get OPENID?

http://barcamp.org/OpenIDDevCamp

How to get OpenID ? http://openid.net/

Nowadays in some sites they are asking for OPENID
23 gennaio

How I achieved SpellCheck functionality

First I started with SourceForge NetSpell project.
But it has so many limitations.They are maintaining a dictionary in the application.
It is not having all the words.
 
Then I tried with yahoo , google apis which are having licensing problems and right now Google is not issuing keys for their APIs.
 
Then I went this final approach "Screen Scrapping"
 
I used google spell check .
If you type anything wrong in google search box it will give a suggestion " Did you mean?: [the suggested text]"
 
I am parsing that text "Did you mean" and I am catching that suggested text for my application
 
And the code is below:
 
By using HttpWebRequest and HttpWebResponse I am reading and getting the content (Screen Scrapping) and storing the text in
and at this place (  "spell=1\" class=p>";  ) Google is giving the suggested text . I am parsing between "did you mean and the suggested text".

string lcUrl = "http://www.google.co.in/search?hl=en&q=" + txtbox.Text;

// *** Establish the request

HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create(lcUrl);

// *** Set properties

loHttp.Timeout = 10000;

// 10 secs

loHttp.UserAgent = "Code Sample Web Client";

// *** Retrieve request info headers

HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetResponse();

Encoding enc = Encoding.GetEncoding(1252); // Windows default Code Page

StreamReader loResponseStream = new StreamReader(loWebResponse.GetResponseStream(), enc);

string lcHtml = loResponseStream.ReadToEnd();

loWebResponse.Close();

loResponseStream.Close();

string result;

int start, end;

string searchTerm = "spell=1\" class=p>";

string endTerm = "</a>";

start = lcHtml.IndexOf(searchTerm);

if (start == -1)

{

}

else

{

end = lcHtml.IndexOf(endTerm, start);

result = lcHtml.Substring(start + searchTerm.Length, end - (start + searchTerm.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);

}

How I achieved Autocomplete functionality

After looking Google and Yahoo Apis licensing problems
I tried with some third party tools.

Google apis can give only 10 suggestions (at max) and some 10k clicks per day . Now it has stopped issuing keys .

Then I tried for some open source tools.
Some are suggesting to store the dictionary contents in database or storing the entire dictionary in our server which doesnt suits my application.
 
I found open source toolbox from Wilco Bauwer
 
I tried testing those. For me SmartTextBox control suits my application.
You can see the demo of this control at : http://wilcob.com/Demos/SmartTextBox/
 
For the demo sake he has not given any connection with a dictionary. That we have to do.
In code behind file he has a function "searchCriteria_AutoCompletion" . He is filling this one with some junk values.
Whenever you type something in the textbox given these junk values will populate.
 
From here  I  modified the code.
 
Paste this url in the browser .10 suggestions(at max) will be shown in an xml file.
 
If you use this link http://www.google.com/complete/search?hl=en&js=true&qu=tajmehal and paste it on browser
 
then 10 suggestions (at max) will be shown in a string format file.
 
I felt parsing xml file is easy than a string file.
 
For parsing string file :
 
 

protected AutoCompleteSuggestion[] searchCriteria_AutoCompletion(object sender, AutoCompleteEventArgs e)

{

string lcUrl = http://www.google.co.in/search?hl=en&q=tjamahal;

HttpWebRequest loHttp = (HttpWebRequest)WebRequest.Create(lcUrl);

// *** Set properties

loHttp.Timeout = 10000;

// 10 secs

loHttp.UserAgent =

"Code Sample Web Client";

// *** Retrieve request info headers

HttpWebResponse loWebResponse = (HttpWebResponse)loHttp.GetResponse();

Encoding enc = Encoding.GetEncoding(1252); // Windows default Code Page

StreamReader loResponseStream = new StreamReader(loWebResponse.GetResponseStream(), enc);

string lcHtml = loResponseStream.ReadToEnd();

loWebResponse.Close();

loResponseStream.Close();

'' Now u have to parsing logic of the string "lcHtml" I left here. I like Xml approach

}

For parsing xml file  I wrote below code

protected

AutoCompleteSuggestion[] searchCriteria_AutoCompletion(object sender, AutoCompleteEventArgs e)

{

try

{

AutoCompleteSuggestion[] suggestions;

if (e.Text != "" || e.Text != string.Empty)

{

string googleUrl = "http://www.google.com/complete/search?hl=en&js=true&output=toolbar&q=" + e.Text;

WebRequest request = WebRequest.Create(googleUrl);

WebResponse response = request.GetResponse();

Stream responseStream = response.GetResponseStream();

XmlTextReader reader = new XmlTextReader(responseStream);

XmlDocument xmlDoc = new XmlDocument();

xmlDoc.Load(reader);

XmlNodeList nodeList = xmlDoc.SelectNodes("toplevel/CompleteSuggestion");

suggestions =

new AutoCompleteSuggestion[nodeList.Count];

int node = 0;

for (node = 0; node < nodeList.Count; node++)

{

suggestions[node] =

new AutoCompleteSuggestion(xmlDoc.DocumentElement.ChildNodes.Item(node).FirstChild.OuterXml.Substring(18, xmlDoc.DocumentElement.ChildNodes.Item(node).FirstChild.OuterXml.Length - 22));

}

return suggestions;

}

else

{

suggestions =

new AutoCompleteSuggestion[0];

return suggestions;

}

}

catch

{

throw;

}

}

 

New Idea on Traffic signals

When I am coming from my house to office I have to cross 4 traffic signals (2 are newly setup).
If it is a 4 road junction they are installing these.
People have to wait for 120 seconds.
Traffic from all sides is not equal. At present time is static . Always 120.
Unnecessarily people have to wait.
So time should be made dynamic.
Based on the traffic time should change.They have to put sensors which collects data and estimates proper time.
22 gennaio

Unbeaten Free E-Book Professional BizTalk Server 2006

This book provides insight into how industry experts have successfully architected, developed, and maintained Microsoft BizTalk Server in mission-critical environments. Authored by highly-regarded consultants with a wealth of knowledge on designing, building, and operating enterprise applications using BizTalk, this comprehensive guide gives you the techniques and best practices you¡¯ll need to develop effective projects.
Darren Jefford is a Principal Consultant with the Microsoft UK Application Development Consulting (ADC) team who has extensive real-world experience with BizTalk Server and the broader Microsoft platform. Kevin B. Smith formerly worked as a Technical Lead Software Design Engineer for the BizTalk Server Product Team and helped ship three versions of BizTalk Server. Ewan Fairweather works as a Premier Field Engineer for Microsoft, providing onsite support to enterprise customers, including maintaining and optimizing their BizTalk Server solutions.

Achitects, developers, testers, and administrators will achieve instant success when they apply the deep technical information covered in this book. They will better appreciate the internal workings of BizTalk Server and will understand detailed solutions for challenges often experienced with BizTalk-based systems

Download Link: http://www3.vista-server.com/uploadfile/7/9/14/1936296175901.zip [Size: 8.60MB]

Got this link from BDotnet

21 gennaio

asp.net screen scraping

ASP.NET and the .NET framework make it unbelievably easy to retrieve web content (that’s it, whole web pages) from remote servers. You might have various reasons to retrieve remote web content, for example you might want to get the latest news headlines from popular news sites and link to them from your website.
To accomplish screen scraping in classic ASP, we had to resort to COM objects like AspHttp, ASPTear and Microsoft.XMLHTTP. The good news is that the .NET framework has built-in classes allowing getting remote web content with ease.
We are going to use 2 .NET classes found in the System.Net namespace - WebRequest and WebResponse, to get the remote web page content.
Here is how ASP.NET screen scraping works. We need to create an instance of the WebRequest class and request a web page through it. We can request either a static page (.htm, .html, .txt, etc.) or dynamic page (.asp, .aspx, .php, .pl, etc.). The type of the page we are requesting it’s not important, because we are getting what the page displays in the browser (usually HTML), not the actual page code.
After we have requested the page with our WebRequest object, we’ll have to use the WebResponse class in order to get the web page response returned by the WebRequest object.
Once we get the response into our WebResponse object, we use the System.IO.Stream (this class provides a generic view of a sequence of bytes) and System.IO.StreamReader classes to read the web page response as a text. The StreamReader class is designed to read characters from a byte stream in a particular encoding, while the Stream class is designed for byte input and output.
http://www.aspdev.org/articles/asp.net-screen-scraping/