Skip to main content

Posts

Showing posts from July, 2013

Protecting Windows using Windows Registry (an example in C++)

This Post will tell you how you can secure you windows using some basic features of the Windows Registry. Windows Registry is a database which stores the configuration settings and options on Windows operating system. Operating system reads the registry key values while booting. You should have a comprehensive understanding of registry keys and the possible value it can have before manipulating it. Below is an example in CPP which shows how to make use of the registry keys to customize the behavior of Windows. To understand the below example, you should have the basic knowledge of how to write a window based application in CPP. Registry Functions used: RegOpenKeyEx for opening the specified registry key RegSetValueEx for setting the value and data type of a specified value under a key RegDeleteValue for removing a value from the specified key Download the source code 1.   Declarations HANDLE hprocess_terminate; HINSTANCE hInstance; ...

Removing Duplicate Rows from a DataTable in C# (C Sharp)

Removing Duplicate Rows from a DataTable This is one of the mostly asked question by many developers. I found the same solution to this problem at various places as given below: Reference: System.Data public DataTable RemoveDuplicateRows(DataTable table, string DistinctColumn) {     try     {         ArrayList UniqueRecords = new ArrayList();         ArrayList DuplicateRecords = new ArrayList();         // Check if records is already added to UniqueRecords otherwise,         // Add the records to DuplicateRecords         foreach(DataRow dRow in table.Rows)         {             if (UniqueRecords.Contains(dRow[DistinctColumn]))                 DuplicateRecords.Add(dRow);             else         ...

Best Android Apps to Improve Battery Life 2014

Greenify *ROOT: Greenify is currently one of the most popular tools on Android community forums, as it is highly intuitive and you can easily use it to block and restrict applications that are waking up your device when it shouldn’t. This tool is able to detect and control applications that are starting out of the blue and constantly looking to update info and drain battery. Use Greenify to block such programs and, from then on you will be able to launch those types of apps only when you access them. In order to use Greenify, your Android device has to be  rooted . Non-rooted devices aren’t supported and you cannot use it. The main features of this tool are as following: it blocks all the background functionality of the apps you set to blocked status, it will allow the application to run only when you access it, blocks persistent background services, broadcast receivers such as SMS and network state changes, alarms, widget updates and push messages. However, it is not recom...

Donate your Android Device's Processing Power in Research

New app puts idle smartphones to work for science Android smartphone users will soon have a chance to participate in important scientific research every time they charge their phones. Using a new app created by researchers at UC Berkeley, users will be able to donate a phone's idle computing power to crunch numbers for projects that could lead to breakthroughs ranging from novel medical therapies to the discovery of new stars. BOINC logo Photo and video upload size options With unlimited photo and video uploads, Google+ makes it easy to upload photos to share with the people you care about. Learn how to  upload and share your photos . Upload options Photos you upload will be stored at  Standard size . Standard size photos are best for web sharing, and have a resolution designed to look great on tablets. If your preference is to have your photos uploaded at standard size, photos will be resized to 2048 pixels on the longest edge. You can store an unl...