Discover the power of algorithms

Complexities of algorithm, thier applicability. Optimization techniques associated with diffrent algos.

Dec 13, 2011

How to increase service start/stop timeout ?

Windows provide SetServiceStatus function by which one can manage service time out period. It’s a very straight forward API here are its details:-          BOOL WINAPI SetServiceStatus(                             __in  SERVICE_STATUS_HANDLE hServiceStatus,                             __in  LPSERVICE_STATUS lpServiceStatus                          ...



Dec 3, 2011

Inline function example, a sample program c++

Inline function examples :- recommended article :- Inline Function Lets look out one of the simple example :- ------------------------------------------------------------------- // inline_functions_inline.cpp #include #include inline char toupper( char a ) { return ((a >= 'a' && a <= 'z') ? a-('a'-'A') : a ); } int main() { printf_s("Enter a character: "); char ch = toupper( getc(stdin) ); printf_s( "%c", ch ); } ------------------------------------------------------------------- Now  moving to example of using inline function inside a class :- ------------------------------------------------------------------- //...



Nov 22, 2011

How to start , stop perfmon from the command line in Windows ?

Logman command is the solution for it. let's have a look at the command syntax Syntax VerbsLogman [create {counter | trace} collection_name ] [start collection_name] [stop collection_name] [delete collection_name] [query {collection_name|providers}] [update collection_name] Parameter details:- create {counter | trace} collection_name : Creates collection queries for either counter or trace collections. You can use command line options to specify settings. start collection_name : Starts...



Nov 1, 2011

Google MAP APIs to charge for usage, heavy traffic cost more

Google MAP server with their increased traffic has given a new dimension of earning to Google. With its success now Google is planning to charge for its usage. Now one has to pay according to their usage. Following is the cost estimation as per BBC "The BBC is reporting that from 1 January 2012, Google will charge for the Google Maps API service when more than the limit of 25,000 map "hits" are made in a day. Google is rumoured to be charging $4 per 1,000 views...



Oct 20, 2011

How to stop function inlining ?

__declspec(noinline) tells the compiler to never inline a particular member function (function in a class). It may be worthwhile to not inline a function if it is small and not critical to the performance of your code.  That is, if the function is small and not likely to be called often, such as a function that handles an error condition. Keep in mind that if a function is marked noinline, the calling function will be smaller and thus, itself a candidate for compiler inlining. More about inlining :- Inline Function Advantage , Disadvantage , Performance Impact Inline Function...



Oct 16, 2011

Distance Calculation from Latitude/Longitude using Google MAP APIs between two locations

Here is a sample application which i have developed to get the direction, distance and duration between two location/places using Latitude/Longitude with the help of Google MAP APIs. This application will also reveals that how can we retrieve place/city name from the Latitude/Longitude. Let's look at the input of application :- Just input Lat/Lng and press "get Directions with Distance/Duration!" and get the updated direction MAP with Distance and Duration. Place A and Place B will displays...



Oct 14, 2011

Google's new web programming language, Dart

Google recently came up with new programming language for web application named as Dart. Let's look at its technical specification :- Dart is a new class-based programming language for creating structured web applications. Developed with the goals of simplicity, efficiency, and scalability, the Dart language combines powerful new language features with familiar language constructs into a clear, readable syntax. In 2009, Google launched Go, a language designed for writing server software and...



Oct 12, 2011

How to write HTML code inside blogger blog post ?

Most of the time it become very messy when we try to write HTML code inside blog post. It does not appear in the same way as we want when we publish it. Following are some tricks which one can follow to simplify this process :- 1) Using existing HTML editor for writing complete content, and then copy paste entire content in post HTML mode. 2) Encode specific code with HTML encoder :-                      shared one link here for you : http://centricle.com/tools/html-entities/       a) Write your html...



Distance between two locations with the help of Latitude and Longitude

var map; var gdir; //var geocoder = null; var addressMarker; var fromAddress ; var toAddress; var strAddress1 = null; var strAddress2 = null; var count = 0; function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas")); gdir = new GDirections(map, document.getElementById("directions")); //geocoder = new GClientGeocoder(); GEvent.addListener(gdir,...



Page 1 of 1212345Next