Pages

Thursday, December 2, 2010

My US trip to Lafayette

Friends, here are some of the pictures on my visit to US

Tuesday, November 16, 2010

The Two Things about Computer Programming

The Two Things about Computer Programming.

 

Tuesday, November 2, 2010

Rupee Font for Windows

Hello All,
Here is the Rupee Font for all Indian citizens... use this whenever and wherever applicable :)

Follow the steps:
  • Download & copy the font and paste it in "Fonts" folder in Control Panel
  • Open any Microsoft Office application (For E.g., Microsoft Office Word)
  • Select the font type as Rupee or Rupee Foradian
  • Click on ` (Grave accent) symbol. This key is just above "tab" button in your keyboard
  • You can see the new Rupee symbol in your office application

    

Friday, August 13, 2010

Browser Refresh Issue with Ajax Modal Popup

Hello Programmers,
I got a strange issue when working with Ajax modal pop up extender control for the site.
At first glance everything seems perfect; However after playing with the website for some time I found this issue. In fact this issue could appear with any other normal asp.net button control.

The issue is Ajax modal pop up appears whenever we click browser “back” or “refresh” buttons or to  be exact the last fired event on the page re executes.

After doing some research in Google I came to know that it is the default browser behavior to trigger last fired page event whenever we hit browser refresh or back buttons.

Here is the optimal and easy solution:
We need to use of a date/time value set in a ViewState variable and a date/time stamp set in the Session variable.  When the page is first loaded, a Session variable is populated with the current date/time.  On the page's PreRender event, a ViewState variable is set to the value of the Session variable.  These two values are then compared to each other before the server side event code starts. 

If they are equal, then the execution is continues and the Session variable is updated with the current date/time, otherwise the command is skipped.

Step 1:
In the page load event, setup a session variable with current data & time value.

protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
      {
            Session["update"] = Server.UrlEncode(System.DateTime.Now.ToString());
}
}

Step 2:
In page PreRender event; set the ViewState value with the session value which we set in Step 1

protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
      ViewState["update"] = Session["update"];
}

Step 3: This would be crucial
Add a condition to check whether the session and ViewState timestamp values are equal.
If both values are equal the we continue execute the event and set new timestamp value into session variable else we can skip execution.

protected void btnAction_Click(object sender, EventArgs e)
{
if (Session["update"].ToString() == ViewState["update"].ToString())
      {
            //Some statements
            // ...
            //Some statements
            Session["update"] = Server.UrlEncode(System.DateTime.Now.ToString());
}
}

You can try this at home and come to one conclusion ;-)




Wednesday, June 16, 2010

Trust Your Programmer

Today, I came across a blog posting about Programmer/developers. Might be the title is misleading.

 

Thursday, May 6, 2010

Microsoft Delivers IE9 Developer Preview 2

Microsoft has released a Platform Preview of Internet Explorer 9, which promises to be more interoperable than ever. Also this include support for Web standards such as HTML5, Cascading Style Sheets 3 and Scalable Vector Graphics.

Ted Johnson, founder of Visio and partner program manager for Internet Explorer said Microsoft will support SVG 1.1 and in IE9 will support document structure, basic shapes, paths, text, transforms, painting, filling and color, scripting, styling, gradients and patterns, clipping and mashing, and markers and symbols. However, IE9 will not support SVG fonts, declarable animation or filter effects, he said.

To help speed up JavaScript performance, Microsoft delivered a brand new JavaScript engine, known as "Chakra".

To improve JavaScript performance even more, Chakra does something quite different from other script engines today. It has a separate background thread for compiling JavaScript. Windows runs that thread in parallel on a separate core when one is  available. Compiling in the background enables users to keep interacting with Web pages while IE generates even faster code.  By running separately in the background, this process can take advantage of today’s multi-core machines – so, users with a Core2Duo or QuadCore or i7 can apply that power to making Web pages faster without any additional effort.

Thursday, April 22, 2010

Microsoft And Facebook Join Forces To Crush Google Docs

During a keynote speech today, Facebook CEO Mark Zuckerberg said Microsoft was introducing Docs.com, which would play along nicely with Facebook.

 

Docs.com is an online version of Microsoft's Office software. When you're working on a Doc with someone, you'll be able to share documents on Facebook with your friends.

 

Smart move from Microsoft. Google's online answer to Office, while still tiny, poses a big threat.

 

So, Microsoft should be building its own online word processor and spreadsheet applications. It can try to monetize them as it goes, and hope it doesn't cost it too many Microsoft Office sales.

 

How good is Docs.com? We have no idea. The site isn't working yet.

 

When it's open for all, we'll be testing it. We're hoping Microsoft has made a better product than Google Docs. In our experience, Google Docs is still weak, especially for spreadsheets.

 

Wednesday, April 21, 2010

Click, Click, Fixed from MS

Microsoft offers to fix your PC
FixIt_1619852c.jpg
Microsoft  has launched a new self-repair service for computers. Called "Fix It" the new product is based on similar features online and in Windows 7, but extends them to all machines from Windows XP upwards.

The program works by regularly checking software problems, and then comparing them to a list of known fixes. If solutions become available they are automatically installed. Fix It also tries to work out if any new updates are likely to cause other problems. Although it does not offer any guarantees, it should mean that a large number of basic computing problems, for both consumers and small businesses, are solved without the active involvement of users.

The development of automated, bespoke solutions for individual computers has long been an aim for large IT firms, and was in part behind their decisions to collect large amounts of data about users’ problems. Reporting problems to Microsoft, however, has previously primarily only benefited the company’s internal improvements that have led to generalized solutions.


Saturday, March 27, 2010

Hotmail 2010 Keyboard Shortcuts

To
Press
Delete a message
Delete
Create a new message
Ctrl+N
Send a message
Ctrl+Enter
Open a message
Ctrl+Shift+O
Print a message
Ctrl+Shift+P
Reply to a message
Ctrl+R
Reply all to a message
Ctrl+Shift+R
Forward a message
Ctrl+Shift+F
Save a draft message
Ctrl+S
Mark a message as junk
Ctrl+Shift+J
Mark a message as read
Ctrl+Q
Mark a message as unread
Ctrl+U
Move to a folder
Ctrl+Shift+V
Open the next message
Ctrl+.
Open the previous message
Ctrl+,
Close a message
Esc
Search your e-mail messages
/
Check spelling
F7
Select all
S then A
Deselect all
S then N
Go to the inbox
G then I
Go to your People page
G then P
Go to your Calendar
G then C
Go to Messenger (this will open Windows Live Messenger from within Hotmail)
G then M
Go to your Home page
G then H
Go to your Drafts folder
F then D
Go to your Sent folder
F then S


Thursday, March 25, 2010

Microsoft Microblogging Service - OfficeTalk

Microsoft joins micro blogging service with so called “OfficeTalk”, much like the twitter. Microsoft is testing the service pretty much internally but is now accepting external requests from companies that want to join the pilot program. Microsoft says they are still in the early stage of OfficeTalk.

We will be able to communicate in 140 characters or less, read messages of the people you follow, create profile, search for people, URL shortening service and view comments thread.

 OfficeTalk-thumb-591x512-15579.jpg

 

Monday, March 22, 2010

JavaScript Conformance Test - Sputnik

Google launched Sputnik - JavaScript Conformance Test in June' 2009. This test will run over 5000 tests to check the web browser JavaScript conformance. Last week they come up with the updates which any one can use easily and the results are quiet interesting!

Opera (78 failures) and Safari (159 errors) web browsers beat Google’s own Chrome (218 errors) browser in the test. Firefox is close behind with 259 errors, while Internet Explorer is the outlier with 463 errors.

While much of the focus on JavaScript is about speed, Sputnik is interesting because it focuses on conformity, making it more like the Acid3 test, which tests web standards compliance. Chrome, Safari, and Opera have all passed Acid3; with Firefox getting very close (94/100 for Firefox 3.6). IE, meanwhile, again lags behind with just 20/100 for IE8. And even the new IE9 preview only scores 55/100.

Thursday, March 18, 2010

World Wide Telescope from Microsoft Research

Yet another great app from Microsoft research - World Wide Telescope. 

A project to map out the stars, planets, solar systems and anything not on the Earth. Now it has come out from a client based application to a cutting edge Silverlight web based application.

 

The application is pulling tons of collections from the Worldwide Telescope Community including Constellations, Solar System, All-Sky Surveys, Spitzer Studies, Chandra Studies, Hubble Studies, Astrophotography, Radio Studies, NOAO Studies, Gemini Studies, Messier Catalog, Planets/Moons, Earth (Bing!), Panoramas, and Tours. Each of these selections has a deep rich collection of information within.

 

So, why waiting; go and check out the initial release. http://www.worldwidetelescope.org

here is the Silverlight version.

Wednesday, March 17, 2010

Test drive IE9 today

Hey Microsoft yesterday unveiled its latest browser for public preview. It scored 55 out of 100 in ACID3 benchmark test. Microsoft affirms 100% support for HTML5 with future updates.

Check out the new HTML5 capabilities and test drive IE9 here.

Friday, January 22, 2010

YouTube with HTML5

YouTube the video sharing giant is now offering its video service in html5 standards. Now, we do not require flash player anymore to utilize the service.

However, we need to have the latest browser that support html standard.

 

Check YouTube in HTML5 mode here

 

source

                                   

Tuesday, January 19, 2010

The "Aurora" IE Exploit Used Against Google in Action

Hi Guys,

Here is in detail report including a video which shows how the Google and others were attacked by "Aurora" using IE Zero day vulnerability.

Here is the report from CNet.

click here to see the report.