Showing posts with label Tips. Show all posts
Showing posts with label Tips. Show all posts

How to Search for File or Folder Programmatically?

Learning never ends, everyday we learn at least one thing. This applies to both our personal and programming stuffs. Today I learnt coding stuff which I wanted to build in one of my application. Thought to share the same in case you need, this will help you.

 

Did you ever think about building an application to provide a directory or file search functionality to the end user? .NET provides you that APIs which we will discuss in this post today.



What is Lazy loading and how this will benefit your project?

Let’s suppose you built an application which loads records in a Grid in a paginated manner. But when you loaded thousands of records, you noticed that, it is taking more time to load than the expected time and your boss was not happy with that.

 

So, what to do? Are there any kind of proper solutions or workarounds to reduce this load time? If so, what are those? Let’s began with our post with a problem statement.


How to auto publish a website each time a #TFS build succeeds?

Once you set up your TFS build server with an automated build, the big boss will ask you to publish the web project to the intermediate server each time a new build occurs. This might be for the testers to make sure that the code is working properly.

 

What to do? You analysed that, it will hamper your productivity. Isn’t it? Then what to do? Can we automate the build server to deploy the new code each time it succeeds? Let’s discuss it.


Solution to TFS Build Error - The Silverlight 4 SDK is not installed

Today while creating my first CI Build definition in the Visual Studio Team Foundation Server, I noticed that, though the Silverlight 5 SDK is installed in the server, I was unable to run the build. It was throwing an error message that says “The Silverlight 4 SDK is not installed”.

 

The issue was not actually with the Silverlight SDK and I found the solution after lots of analysis. In this post, I am going to share it so that, if you come across the same issue, it will be helpful.


How to turn ON/OFF the Microsoft Two-Step Verification?

In the last post “What is Two-Factor Authentication?” we discussed about various factors of authentication system including different examples. We also learnt about Knowledge Factor, Inherence Factor and Possession Factor.

 

Microsoft recently added a second step authentication mechanism in all their accounts as an extra security layer. This post will guide you to turn ON/OFF this security layer.


How to batch clean up the Visual Studio solution folder? (bin, obj etc.)

Sometime the Visual Studio’s clean project command does not return as expected and maximum time people used to manually delete the bin, obj, Client Bin, Generated_Code directories to clean all the traces of previous build.

 

Here I will share a small batch code which will help you to clean up those directories by just a single click. Tune it up if you want to add few more directories in the list.


Solution: Unable to open Skype, you are already signed in

These days Skype is a common platform for audio/video calling over internet. Many people uses it to connect with their family and beloved one, some other also uses it for business purpose to connect with their client.

 

Recently I noticed frequent crash in Skype and when tried to reopen, it was unable to login but was showing a message that I am already signed in to system. This post covers the solution to that.


How to detect in Silverlight whether Network Connection is available?

In your Silverlight application, you might want to detect whether network connection is available and then based on the result, you might want to do a service call or disable few buttons. This is a most wanted feature by the Silverlight developers.

 

So if you are looking for code, this post will help you to understand the APIs and integrate the same in your Silverlight applications.


Debugging Code Efficiently in Visual Studio with the DebuggerDisplay Attribute

It is sometime difficult when you have a bunch of properties exposed from a class and you just need few of them while debugging a code block. Sometimes it becomes even more complex when you have a collection of that class.

 

Is there any easiest way to improve the code debugging in Visual Studio? Yes, there is. In this post we are going to learn this technique if you have never used it yet.


Interview Question: Difference between the ref and out keywords in C#?

Many time while working in our application module, we need to use “out” and “ref” parameters in various methods. Sometime you will face this question in front of interview panel too. So, what are those keywords and how they differ?

 

In this post, we will discuss the basics of C# to make you understand more about “out” and “ref” parameters which you will find useful.


How to Retrieve Remaining Battery Status of WP8 Programmatically?

If you are looking for a way to retrieve the current battery status of Windows Phone device, first let me inform you that the same is not available for WP7 device. But if you are looking for the same to implement in WP8 device, you can do it now.

 

Windows Phone 8 SDK exposes an API to retrieve the current battery status of the device which includes remaining percent and time. Let’s discuss more about it.


What is SLAT and How to Check whether your CPU Supports it?

Second Level Address Translation a.k.a. SLAT is a technology introduced in Intel and AMD processors. Recently released Windows Phone 8 SDK needs it to run the emulator 8 in your Windows 8 system.

 

So, what is this SLAT and how to check whether your CPU really supports it? In this post, we will discuss this with you.


Showing Geolocation in Browser using HTML5 and JavaScript

Few days ago, we learned about “Easy Form Validation using HTML5”. Hope, you liked that post. Today we will explore another new great feature of HTML5 with complete code analysis and simple but easy to understandable demo.

 

HTML5 exposes geolocation API to get the geographical location of user. Today we will focus our discussion on this topic. So, continue reading.


Easy Form Validation using HTML5

Writing validation logic using JavaScript in a HTML form is not an easy way. We all have seen it in HTML4 but what’s new in HTML5? Will it provide us easy way to validate the form with writing a small piece of code only?

 

Today we will be talking about this validation stuffs in HTML5. But as usual, all the browsers don’t support all of them but a good start to think for future.


How to create Power Shortcuts for Windows 8 Start Screen?

You might be aware that, we don’t have any Start button in Windows 8 RTM. As you are not comfortable with the new Start Screen, hence sometime it is difficult to Shutdown, Restart or Hibernate your PC.

 

In this post, we will create Start Screen shortcut icons to these power options for easy access. Continue for further step-by-step process.


How to Market yourself with your WP apps quickly?

Many of us build Windows Phone applications and we try to market ourselves and/or our apps. Writing the same code for all the apps is not a big tough but why to write? That’s why I wrote a single code file for my apps and thought to share it with you.

 

Let’s begin with the source code and if you have more to share for other developers, post in the comment section and help them to code easily.


How to Integrate HTML Color Code Generator in your Web Page?

If you are a web developer, many time you want to use a HTML Color Code Generator, which can give you proper hex-code for your selected color. Also, you might want to integrate a color palate in your web application for your user.

 

This post will help you to build a color palate in any web page and chose your color code from there. A sample and it’s code is attached here for your direct referral.


The target “GetCopyToOutputDirectoryContentProjectItems” does not exist in the project

At the time of developing your Windows Phone 7 application, you might see a build error. The build error describes as “The target ‘GetCopyToOutputDirectoryContentProjectItems’ does not exist in the project”.

 

This small post will describe you the solution to fix this error and build your WP7 apps smoothly. Continue reading and if you still face the issue, let me know.


How to Enable “Hibernate” Option in Windows 8 Power Menu?

If you have installed Windows 8 RTM, you might have noticed that the “Hibernate” option is missing in “Power Menu”. So you might want to activate this option in your Windows 8 Power Menu to enable the Hibernate in your system.

 

This blog post will help you to enable “Hibernate” option in your Windows 8 Power Menu. Continue reading to further know about it step-by-step.


How to Capture a Screenshot as File in Windows 8?

Today in this small post we will learn how to capture a screenshot of your installed applications in Windows 8 RTM. Whether it is desktop app or a Windows 8 app, you will be able to take screenshot by just pressing a key combination without installing any other software.

 

Not only that, the captured screenshot will be saved to your hard drive as an image file, so that you can directly access them. Continue to read more about it.

 
© 2008-2013 Kunal-Chowdhury.com | Designed by Kunal Chowdhury
Back to top