Tagged: programming

0

Smart Pointers (Modern C++)

Source: http://msdn.microsoft.com/en-us/library/vstudio/hh279674.aspx   In modern C++ programming, the Standard Library includes smart pointers, which are used to help ensure that programs are free of memory and resource leaks and are exception-safe. Uses for smart pointers Smart pointers are defined in the std namespace in...

0

Memory layout of C program

A typical memory representation of C program consists of following sections. 1. Text segment2. Initialized data segment3. Uninitialized data segment4. Stack5. Heap A typical memory layout of a running process 1. Text Segment:A text segment , also known as a...

0

Memory Limits for Windows Releases

Source: http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx   This topic describes memory limits for supported Windows releases:   Memory and Address Space Limits Physical Memory Limits: Windows 8 Physical Memory Limits: Windows Server 2012 Physical Memory Limits: Windows 7 Physical Memory Limits: Windows Server 2008 R2 Physical Memory Limits: Windows Server 2008...

0

HDInsight mapreduce – Hadoop API for .NET

Hadoop API for .NET ===================== Introduction Hadoop Streaming is a facility for writing map-reduce jobs in the language of you choice. Hadoop API for .NET is a wrapper to Streaming that provides a convenient experience for .NET developers. An understanding...

0

Create sample input using windows batch file

Script that did my job @echo off setlocal EnableDelayedExpansion for /L %%F IN (1,1,100) DO ( set /a year = !RANDOM! %% 12+2000 echo !year! !RANDOM! ) endlocal Generates random numbers. First column contains year between 2000 to 2012 second...

0

Excel – generate random sample data file

Some formulas that will help you build sample data files Random number generation =RANDBETWEEN(1,1500) Generates random number between 1 and 1500   Random text generation =CHAR(INT(RAND()*26+65))&CHAR(INT(RAND()*26+65))&CHAR(INT(RAND()*26+65)) Generates random text of 3 characters     Related posts: Smart Pointers (Modern C++)

0

Disable/Enable Foreign Key and Check constraints in SQL Server

(Original article)   At times, there is a need to disable/enable the Foreign keys and the check constraints in the development/qa environment. The need arises from the requirement to have bulk data copy movement done from one environment to the...

0

Boost – Thread pool

Boost Library Boost is a collection of high-quality C++ libraries and works on almost any modern operating system, including UNIX and Windows variants Compiling boost library bjam toolset=msvc-6.0 link=static link=dynamic threading=multi   Features Policy-based thread pool implementation Scheduling policies: fifo,...