Turn on/off buffering for streams in c++

Use io manipulator ‘unitbuf’ to turn off stream buffering and ‘nounitbuf’ to turn on stream buffering. If ‘unitbuf’ is on the stream object is flushed after every insertion else the stream is not force flushed. For e.g. endl triggers a flush in cases of ‘nounitbuf’. Sample code: fstream fstr( “c://Hello.txt” ); [sourcecode language=”cpp”]cout << unitbuf […]
Continue reading…

 

Technical Interview question: Stack growth direction

This one is a brain teaser for my native programmers. Prove via code the direction of a threads’ stack growth i.e is it upwards or downwards. Post your answer as a comment. I’ll post mine in a while.
Continue reading…

 

DOS command to display a list of installed device drivers

To list all the drivers on your box use the DOS command DriverQuery. Usage: C:>driverquery /? DRIVERQUERY [/S system [/U username [/P [password]]]] [/FO format] [/NH] [/SI] [/V] Description: Enables an administrator to display a list of installed device drivers. Parameter List: /S     system           Specifies the remote system to connect to.       /U     [domain]user    Specifies […]
Continue reading…

 

‘AlwaysCreate’ forces project to be re-built – Developer Support Languages – VC++, C# and VB.NET – Site Home – MSDN Blogs

‘AlwaysCreate’ forces project to be re-built – Developer Support Languages – VC++, C# and VB.NET – Site Home – MSDN Blogs  Issue Have you lost time because Visual Studio always thought that a project was out-of-date? Recently had a customer who faced this issue. He migrated his project from VS2008 to VS2010. Rebuilt the whole […]
Continue reading…

 

50 Common Interview Questions and Answers

I had this collection of general interview questions that get’s asked during interview. I’m not sure from where I got it hence unable to link this up to the concerned website but its a good read. Full credit to the people who wrote this. What kind of salary do you need? Are you applying for […]
Continue reading…

 

XAML Editor Improvements in Visual Studio 2013 – The Visual Studio Blog – Site Home – MSDN Blogs

 XAML Editor Improvements in Visual Studio 2013 – The Visual Studio Blog – Site Home – MSDN Blogs While many of you like creating XAML using our visual tools, many prefer creating XAML in the code editor as well. Your feedback was heard loud and clear and we have taken a crack at the top […]
Continue reading…

 

Announcing the Visual Studio 2013 Release Candidate – Somasegar’s blog – Site Home – MSDN Blogs

 Announcing the Visual Studio 2013 Release Candidate – Somasegar’s blog – Site Home – MSDN Blogs I’m excited to announce the Release Candidate of Visual Studio 2013, .NET Framework 4.5.1 and Team Foundation Server 2013!  The release is available for download now on the Visual Studio product website and is a “go-live” release.  Starting today, […]
Continue reading…

 

Best Places to Work | Glassdoor

Employees’ Choice Awards Glassdoor is excited to announce our fifth annual Employees’ Choice Awards, a list of the 50 Best Places to Work. The top 50 winners were selected by the people who know these companies best – their employees. Best Places to Work | Glassdoor Surprisingly no Microsoft!
Continue reading…

 

Terminal Services RemoteApp™ Session Termination Logic – Remote Desktop Services (Terminal Services) Team Blog – Site Home – MSDN Blogs

Useful read on Remote Desktop Services session termination logic… Terminal Services RemoteApp™ Session Termination Logic There are several heuristics and session time limit Group Policy settings that dictate the lifetime of a RemoteApp session. The main difference in behavior between a RemoteApp session and a regular full desktop session is that there is no explicit […]
Continue reading…