Category Archives: Technology

Printing hex values using cout()

I wanted to display hex numbers and came across setf() & unsetf() functions which are quite useful to know of! There are different kinds of flags & masks you can use as well. Please refer http://www.cplusplus.com/reference/iostream/ios_base/setf/ for more information. #include <iostream> using namespace std; int main() { int num = 255; cout.setf(ios::hex, ios::basefield); cout << […]

0  

How does a compiler tie an error message back to the source code?

Usually we see (C++/.NET) programs throwing exception messages which are not very informative. But at-least they direct me to the line from where the problem originated. How does the compiler do that? Compilers have two modes when building a program – DEBUG & RELEASE. By default, compiler builds the program in the debug mode & […]

0  

Semantic Test Plan – KFrog Language

This post is an extract from one of my earlier project under Prof. Alfred Aho for the course – Programming Language & Translators, where I implemented a Test Suite for validating the KFrog Language interpreter. Report: http://docs.google.com/viewer?url=http://gauravpandey.webs.com/KFrog_FinalProjectReport.pdf Technical details: https://docs.google.com/View?id=d8gtx9j_164g2gz7k5x Originally, the idea was to test the graphical output generated by the interpreter. Since, it […]

0  

Technical Certifications are like a TAX!

Just like many other Software Developers and Network Administrators, I was wondering whether Certifications in a particular technical domain will be advantageous in a way. Microsoft, Cisco, Oracle, Red-Hat and countless others have their own set of certifications to assess, evaluate & justify a candidate’s skill set. But to be honest, ‘Certifications are like TAX […]

0  

Serializing Objects in JSON format

Serializing data/objects using XML is quite a standard way over the Web. But, XML has it’s own set of disadvantages owing to which I tried serializing objects in JSON format. It seems .NET has in-built support for doing the same. One simply needs to use the JavaScriptSerializer class available within ‘System.Web.Script.Serialization’ namespace. using System; using […]

0