Posts

Showing posts from 2007

Effective Use of Visual Studio 2005 - Keyboard Shortcuts

As a hardcore developer I found that typing is easy to me then using mouse. Mouse is an obstacle. Taking hands off the keyboard is time consuning. It takes me out of comfort zone. I like to use keyboard where ever possible and efficient. Thanks to the developers of Visual studio 2005, they provided keyboard shortcuts to the most frequest tasks. Though the use of named commands is always recommended instead of keyboard shortcuts. But I found that these key strokes are most common and no one reassign these to custome actions. Its safe to get used to these shortcuts. Here is a list of my favourite shortcusts. Tool Boxes And Windows CTRL+ALT+L : View Solution Explorer. I use Auto Hide for all of my tool windows to maximize screen real estate. Whenever I need to open the Solution Explorer, it’s just a shortcut away. CTRL+ALT+X : Toolbox Window CTRL+ALT+O : Output Window CTRL+\, E : Error List Window CTRL+\, T : Task List Window F7 : Toggle between Designer and Source views. CTRL+PgDn : To

Effective Use of Visual Studio 2005 - Named Commands

Image
Command Window: Ctrl+Alt+A Named commands are used to access VS features from Command Window. Visual Studio 2005 provides full intellisense support in the command window. I experienced that using named commands is much faster than accessing these features with mouse. Named commands allow you to access and use menu commands in the command window. To use named commands, simply type the name of menu. Press '.' and VS will provide intellisense. Type the name of the menu option or select it from intellisense. Example : To access Find Results 1 window you have to 1. Click on the 'View' menu and then 2. Click on the 'Find Results' and 3. Finally choose 'Find Results 1'. Now if you want to use named commands, 1. Press Ctrl+Alt+A to activate command window. 2. Type View.findresults1. You don't need to type full text. Intellisense provides yoy write text. Just press enter. Some Examples of Named Copmmands: Window.NewWindow : Open a new window on your

Effective Use Of Visual Studio 2005 - Handling Open Documents

Image
Visual Studio 2005 provides some excellent document management capabilities. Most of the we are not aware of these features. One of the feature is open document tab groups. Unlike VS 2003, it shows only as much tabs as fits in the window width. There is no scrolling. Instead, VS 2005 provides dropdown menu to select from all open documents. Inseated of selecting open documents, you can also do some other functions. I am planning to write a series on useful-but-less-known features of VS 2005. This is second post in the series. ( read first post) In continuation to my previous post on managing open documents, here are some more tricks. Right click on the open document tab group. A context menu will appear with following options: Save default.aspx.vb Close Close all but this Copy full path Open containing folder New horizontal tab group New vertical tab group Save default.aspx.vb Allows you to save currently selected document. Currently selected document is the one which is open in the

Effective Use of Visual Studio 2005 - Closing Selected Window

Image
To close open documents selectively: 1. Go to Window -> Windows. 2. This will show list of all open windows (not just those which you see on the tabs). 3. Select the windows you want to close. Use shift (or ctrl) key for multiple selection. You can also use ctrl+A to select all windows. 4. Click "Close window(s)" button to close selected windows. I experienced that the speed of loading a project into visual studio is directly proportional to the number of open documents. Generally, we open the document as we need it. And then we don't close it. Visual studio 2005 displays only a few number of documents on the tabs. Rest remains open but are hidden. You can click on the down arrow near the 'X' button of the document window to select the open document. To keep you project loading fast, always keep minimum number of open documents.

Microsoft Popfly - Share Visual Studio Projects On The Web

  Popfly allows you to build gadgets and web pages. It also allows you to share your creation. Popfly provides online visual tools for creating Web pages and gadgets. You can host, share, rate, comments and even remix creations from other popfly users. Here are some things you can do with Popfly: Add some fun to your Facebook page, web site, or Windows Live Spaces page . You can easily spice up your Web site or blog with Popfly by adding customized games like Whack-a-mole or asteroids with pictures of your friends and family or create custom quizzes or polls that you can easily embed on your Web site. Build a Home Page: You can build a custom home page, say for your school’s sports team and choose from over 150 different themes, 10 styles, and 30 unique color themes for a unique visual design. You can then easily add things like team photos, a team schedule from an RSS feed, video from previous games, Virtual Earth maps with directions to game locations and more, all without writi

How To Purchase A Laptop

Question: How many people are required to purchase a laptop? Answer : Five. Question: And what is the flowchart of purchasing a laptop? Answer : Acquire 100% resources --> Drink beer --> Have lunch --> Go to theatre --> Watch movie --> Then release 60% of resources and utilize 40% resources to buy laptop --> The process is exhausting so re-energize 40% resources with more beer. Don't believe me? Read the story below (it's real): Bob is a software professional who is working for a large MNC. Currently he is posted at client side. He has a team of six people who share good chemistry. Today one of his team mate Mr. M decided to buy a laptop. His office is very near to largest electronics market so it was decided that team will go to buy laptop in the lunch time. Unfortunately, nobody in the team brought their car today. Usually people use company provided cabs for commute from home to office and back. So they decided to hire an auto. Bob and his mates aske

Visual Studio 2008 and .NET 3.5 Released

Microsoft shipped Visual Studio 2008 and .NET 3.5 today. Here are some resources for VS 2008: 1. ScottGu's weblog is the primary and authentic source of information। २. Somasegar's Weblog 3. Paul Andrew blogged about a downloadable poster of commonly used types and namespace in .NET 3.5 (in pdf format), which is worth checking out. 4. View ASP.NET 3.5-specific videos at Microsoft's official asp.net website. 5. Brad Abrams wrote about Design Guidelines, Managed code and the .NET Framework 3.5 in his blog. 6. Here is a 31 minute video at Channel 9. 7. VS 2008 is not shipped with MSDN . You can Download MSDN Library for VS 2008 from here . 8. The details about VS 2008 express edition (free) are available here .

Benefit of Using Technorati Tags on your blog

  Today, I received a mail from one of my old friend. he happened to visit my blog and was surprised to see Technorati tags there. He called me up to ask what these tags are and why I used them on my blog. In his own words, "Yaar, your blog seems to be advertising for this web site called Technorati.com. Are you being paid for this?" I was quite surprised to see the reaction of Technorati tags. Then  I told him what Technorati tags are and why I use them on my blog. Later on I thought that many other people might also be thinking in the same way. So I decided to post a blog entry on this matter. Tags are keywords or topics which you place at the bottom (or anywhere) of your blog post to catch the attention of Technorati and other search engines. Technorati is a search engine which indexes the blog which uses its tags. Technorati doesn't pay anything to me anybody to place a Technorati tag on his blog. They even don't pay me to write these stuff though I am advoc

Putting ASP.net Application In Offline Mode Using app_offline.htm

  Today, I was updating a stored procedure of SQL Server Express Edition 2005 within the Visual Studio 2005. At the same time, I tried to open a page of my application in internet browser using IIS (localhost). And I got the error stating: 'T he application is currently offline. Remove app_offline.htm file from applications root directory. ' I never heard of app_offline.htm file before. As a habit I pressed 'F5' to refresh the page and it worked fine. 'What the hell was this?', I thought. I googled about the file in error message and learned some interesting facts. Here is what I found: app_offlinne.htm When ASP.Net found a file names app_offlinne.htm in the root of a web application directory, it shut-down the application, unload the application domain from the server, and stop processing any new incoming requests for that application. ASP.NET also then respond to all requests for dynamic pages in the application by sending back the content of the app_off

Cetrification in Ethical Hacking

Wanna become a hacker? Now is the chance to hack corporate networks without worrying legal suits. Become a Certified Ethical Hacker. An ethical hacker works to identify vulnerabilities in computer systems so they can be made less susceptible to criminal hackers' malicious attacks. Without breaking laws or stealing data, ethical hackers uncover weaknesses by attacking IT systems using the same under-the-radar techniques criminal hackers employ. A Certified Ethical Hacker is a skilled professional who understands and knows how to look for the weaknesses and vulnerabilities in target systems and uses the same knowledge and tools as a malicious hacker. "Ethical hackers typically have very strong programming and computer networking skills and have been in the computer and networking business for several years. ... These base skills are augmented with detailed knowledge of the hardware and software provided by the more popular computer and networking hardware vendors." says C

Microsoft Security Summit 2007

Microsoft is organizing a one-day workshop on software security in Mumbai, Pune, Kolkata and Chennai.. The summit is useful for: Software Developer Analysts Architects Project Managers Agenda 09.00 - 09.30 hrs : Registration 09.30 - 11.00 hrs Microsoft Platform Security – An Overview Get a detailed view on the different components of the security development lifecycle, latest updates on security challenges, trends and statistics. 11.00 – 11.30 hrs Tea Break 11.30 – 13.00 hrs Application Platform Security As a developer who has written applications for any one of these platforms, you must have noticed similarities in .NET and J2EE. For anyone who has developed applications on both J2EE and .NET, you must have noticed the differences between them that make designing applications for both these platforms way different from each other. In this session we are going to talk about the similarities in the approaches of both .NET and J2EE and how you can cross leverage your ski

Microsoft Code Names

Microsoft Codenames Microsoft codenames are the codenames given by Microsoft to products it has in development, before these products are given the names by which they appear on store shelves. Many of these products (new versions of Windows in particular) are of major significance to the IT community, and so the terms are often widely used in discussions prior to the official release. Microsoft usually does not announce a final name until shortly before the product is publicly available. Visual Studio Codenames Thunder Visual Basic 1.0. The first version of Visual Basic. The standard dialogs and controls created by the Visual Basic runtime library all have "Thunder" as a prefix of their internal type names (for example, buttons are internally known as ThunderCommandButton). Zamboni Microsoft Visual C++ 4.1. After Zamboni, an ice resurfacing machine. Aspen Visual Studio 98 (6.0). Ski Resort in Colorado Cool C#. Short for: C-based Object Oriented Language Rainier V

Happy Diwali

Diwali is the celebration of enlightenment. This year, Diwali fulfilled one of my dream. I always fantasized about wearing traditional India dress - dhoti kurta in office. But you are not allowed wearing such dress in office - damn office protocol. On Diwali, our admin department was kind enough to let us wear ethnic wear. I took the opportunity and wear dhoti kurta. Diwali is a five day celebration. The first day is called dhanteras . Traditionally, utensils are purchased on this day. Second day is chotti Diwali also called Naraka Chaturdashi . This is said to be the Diwali of shopkeepers. People buy sweets, crackers etc, on this day. The third day - Diwali is the main festival. People wear new clothes and distribute sweets. People worship the goddess of wealth - Laxmi along with Ganesha , the son of Lord Shiva . The next day is Govardhan Puja . The go-dhan i.e. cattle especially cow is worshiped this day. The last day is Bhaiduj , the day to express love between brothers a sis

What is KISS?

The term KISS is an acronym of the phrase "Keep It Simple, Stupid", and the KISS principle states that design simplicity should be a key goal and unnecessary complexity avoided. It serves as a useful and frequent verbal exhortation (or even dedicated policy) in software development, animation, engineering, and in strategic planning (especially military operations). Other versions of the phrase include "Keep It Simple & Stupid" (most recently used in west-European literature), "Keep It Sweet & Simple", "Keep It Short & Simple", "Keep it Simple, Sweetheart", and "Keep it Simple, Sherlock". The principle roughly corresponds to Occam's razor , and to Albert Einstein 's maxim that "everything should be made as simple as possible, but no simpler." Etymology: The acronym KISS is known to have been in use during the U.S. Apollo program in the 1960s. Technorati Tags: KISS , Architecture , Software D

The Bluetooth Story

  Microsoft scripting guys published an interesting story about the origin of Bluetooth at Microsoft TechNet. Here it goes: The Bluetooth “personal area networking” protocol was named in honor of Harald Bluetooth Gormson , son of King Gorm the Old, the one time King of Jutland . (We’re not sure if Gorm the Old is the name that the King was given at birth; that would be pretty cool, though, wouldn’t it?) We found it interesting that Harald’s middle name was Bluetooth. After all, Scripting Guy Jean Bluetooth Ross has spent her entire life (79 years and counting) thinking she was the only person to have that middle name. Good news, Jean: you’re not the only Bluetooth after all. At any rate, Harald became King sometime around 958, upon the death of his father. Over time, Harald conquered all of modern-day Denmark and Norway, and, along the way, kind of, sort of converted to Christianity. He had a son named Sweyn Forkbeard who, no doubt in retaliation for being given the name Sweyn Fo

ASP.Net Session

  SESSION What is Session: Session is an object at server side which helps in implementing the mechanism to identify a revisiting user over a stateless protocol like HTTP. What is Session State The session object stores the information about a session (like session key). It may also store other information in the form of session variables. The collection of values stored in session object is called session state. State Management The management of session state is called state management. Different server technologies implement different mechanisms for the state management. ASP.net supports both, client side state management as well as server side state management. At client side, following techniques are used for state management: - Cookie - Hidden Field - View State - Control State - Query String At server side, following are the techniques, used for state management: - Application State - Cache Object - Session State - Database In ASP.net, there are three ways to manage se

Some cool tips on writing good blog entry

Technorati Tags: Blog , Blogging , Writing , Tips , Revising , Good Writing , Good Blogging , Scott Mitchell , Yanesh Scott Mitchell (founder, 4 guys from rolla ) published a post on his blog about writing good blogs . I read the post and follow the suggested links. After reading through a chain of links, I read lots of material on good blogging. Below is the summary of what I read: How To Achieve Ultimate Blog Success In One Easy Step ( http://www.codinghorror.com/blog/archives/000983.html ) My theory is that lead generation derives from Google rank and that the best way to increase Google rank is to be like a professional fighter: neither jabs nor haymakers are enough. You must be always jabbing and you must regularly throw haymakers . Blog continuously to keep your hit-rate and link-traffic high and write longer pieces, containing the high-value words associated with your niche, occasionally. Fear of Writing (

HTTP Modules' Events and Their Order of Firing

  Below is the list of Events raised by HttpHandlers. These events are in the sequence of firing. OnBeginRequest OnAuthenticateRequest OnPostAuthenticateRequest OnAuthorizeRequest OnPostAuthorizeRequest OnResolveRequestCache OnPostResolveRequestCache OnPostMapRequestHandler OnAcquireRequestState OnPostAcquireRequestState OnPreRequestHandlerExecute Page_Load Event of the Page       OnPostRequestHandlerExecute OnReleaseRequestState OnPostReleaseRequestState OnUpdateRequestCache OnPostUpdateRequestCache OnEndRequest OnPreSendRequestHeaders I wrote a http handler to check the sequence of execution of event handlers. Below is the program. Two events in the program are commented because these require integration with the IIS pipeline. I used Visual Web Developer 2008 Express Edition Beta 2 to write this program. So may be express edition does not support integration with IIS. I haven't checked it yet. Here is the program: using System; using System.Data; using System.Configuration; usi

Script# - Another Flower in .Net Bouquet

Script# is a compiler that compiles C# code into JavaScript. This sounds great for ASP.Net developers who program into C#. Most of the time, C# programmers don't have good hand in JavaScript. With the client machine increasing their processing power constantly, the demand for client side scripting is very high. People talk about a new architecture that would obsolete the server side programming model. Web serve will only server HTML pages with JavaScript. If any server side processing (or database connectivity) is required, web services will fill up the gap. Using JSON, JavaScript will now directly interact with a web service from client side. All UI processing, validations etc. will be done on client side. C# and VB.net folks have to worry about that. Either they have to switch to web services or their job will not be safe. Nikhil Kothari also thinks same (though he has not expressed it anywhere). So he decided to bring C# developers on the client side. Nikhil is currently workin

A Recipe For killing Internet In India

Image

A Recipe For Killing Internet In India

A news published in Times Of India, Oct 17th, 2007 (internet edition) A Recipe For Killing Internet In India Standing Committee Goes Against International Norms To Stack Odds Against Net Service Providers, Says Manoj Mitta There is a clear and present danger to internet in India। If the recommendations of the parliamentary standing committee were to go through, you might as well pull the shutters down on the net in the country, because the committee seeks to raise the liability of internet service providers for any third party content in a manner that it will become difficult to run the service and stay away from jail. This isn't an exaggeration. Over 85% of internet deals with third party content। This includes search engines, mail services, messengers, blogs, communication and community sites. If they were to be held responsible for the sites searched, mails sent, blogs filed or scraps on community sites then service providers would be hauled up by the police for acts they are no