Discover the power of algorithms

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

Mar 11, 2016

Xiaomi redmi note 3 wifi connectivity issue

Issue observed:- Faced Xiaomi redmi note 3 wifi connectivity issue. It properly connect to wifi hotspot but fails to connect home wifi device. Enabling/Disabling the router and mobile wifi does not helped much. What worked for me is the MIUI version upgrade. Upgraded it to MIUI Global 7.1 (7.1.7.0). After upgrade, it properly detects and connects to home wifi. Hope this will help. ...



Oct 1, 2013

Running bat file from the C++ source code

What to do when one has to execute batch script from the c++ source code ? System command can solve the purpose in this context. Here is the syntax details :- int system( const char *command ); int _wsystem( const wchar_t *command ); Example :-   Suppose if some one want to restart a service named "TestService" form the batch file. Then c:\\sample.bat file would look like as:- net stop TestServicenet start TestService calling it from source code:-     system ("c:\\sample.bat"); For API refrenece http://msdn.microsoft.com/en-us/library/277bwbdz(v=vs.90).aspx...



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...



Page 1 of 1212345Next