Entries Tagged 'Programming' ↓

Keyboard shortcut to cancel the build in Visual Studio

If you are a professional software developer, you have to work with massive Visual Studio solutions, with a number of projects and hundreds of files. Building such a solution can take a while.¬†At times, you may realize that you missed a change in one of the files once you started the build. Continue reading →

How to display the author name and link on the post page in wordpress

The theme on one of my other blogs did not display the author name and link on the post page. It would only display it on the main blog page. To fix this I edited the single post php file (single.php) and added the following piece of code. Continue reading →

C# .net command line arguments parser

I found this simple yet flexible command line arguments parser at codeproject.

Visual Studio tips and tricks

Zain Naboulsi has a great blog providing very useful tips and tricks that you can do in Visual Studio. Check it out here.

WCF Test Client

While developing a WCF service, I had to write a client for it as well to debug/test it. I recently found out that Visual Studio tools include a WCF test client. It is a GUI tool that enables users to test their WCF service by passing parameters to it and viewing the response. It (WcfTestClient.exe) is located at C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\

How to add breakpoints in Visual Studio without the source code

I found this really handy trick here. This can be very helpful in doing development using Visual Studio as your IDE.

Visual Studio shortcuts

If you use Visual Studio for programming on a daily basis, your life can get much easier if you use these Visual Studio shortcuts. Take a look. I would like to add one more:

  • CTRL + “-“† This shortcut takes the cursor to its previous position

C# constructors

I came across a really nice article on C# constructors. The article describes very useful concepts using simple and easy to understand code samples.

I think it is not difficult to write code but to write code that is elegant and efficient is an art. Proficiency in this art is acquired only over time.

How to remove namespace attribute from XML root element using XSLT?

There are occasions when we need to remove the namespace attribute from the XML root element before sending it to the receiving application. This can be done using XSL transform as shown below. If you are already doing an XSL transform just include the following code in that XSLT.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" version="1.0" encoding="UTF-8" />
	<xsl:template match="*">
		<xsl:element name="{local-name()}">
			<xsl:apply-templates select="@* | node()"/>
		</xsl:element>
	</xsl:template>
</xsl:stylesheet>

Crontab

Cron is a unix utility that allows tasks to run automatically in the background at the configured intervals. Crontab is a tool used to schedule cron jobs. Some great resources on setting up cron jobs.

crontabrocks
adminschoice