Nov 29 2009
Nov 29 2009
Maplin N56FU Digital Multimeter
I recently purchased a digital multimeter from Maplin which was on sales at that time: Precision Gold N56FU. Being a full sized autoranging multimeter with computer interface, this meter £44.99 seems to worth every penny. Of course, Maplin didn’t make this meter. Some Chinese dudes did. Maplin just rebranded the meter because E-SUN sounded too lame =P
No purchase is complete until it is disassembled!
Jun 12 2009
Reading outputs of an external program in C++
Ever wanted to grab the output of a command via C++?
In PHP, we are all very familiar with @exec and popen, but what about C++?
Try this:
string cmd = “/usr/bin/netstat -na”;
string OutString;
FILE *FileStream;
char stdbuffer[1024];
FileStream = popen(cmd.c_str(), “r”);
while (fgets(stdbuffer, 1024, FileStream) != NULL)
OutString.append(stdbuffer);
pclose(FileStream);
- The first 3 lines are variable declarations.
- This is followed by popen command which opens a pipe to the external program. r here means to read from the program output.
- We will now use a 1024 character buffer to read the pipe until a null terminator is encountered.
- Remember to close the process pipe once you’re done!
You ask: “What if I want to have the stderr captured as well?”. No problem! Just add:
2>&1
to the back of your command, just like how you would do it in BASH.
Apr 19 2009
Deploying SharePoint Services 3.0 (SPS 3.0)
This article gives a graphical and guided tutorial on how to deploy and configure a Microsoft SharePoint Services (SPS) 3.0 with Service Pack 1 on Microsoft Windows Server operating system for a company extranet.
What You’ll Need:
- Windows Server 2003 Service Pack 2 or Windows Server 2008
- Microsoft .NET Framework 3.0.
- Internet Information Services 6.0 or 7.0 configured and functional.
- Microsoft SQL Server 2000, 2005 or 2008. (Recommended)
Apr 13 2009
Making Firefox 3 Fast Again
Users of Firefox 3 might find it extremely slow when resolving DNS addresses when compared to Google Chrome, or even Microsoft Windows Internet Explorer 8!
The problem lies with Firefox 3’s implementation of IPv6. By default, Firefox 3 would try IPv6 first. If your network is not IPv6, where 99% of us belongs to, then Firefox 3 would wait for timeout and try with IPv4. You might have lost lots of miliseconds just waiting for IPv6 to timeout. The delay is even more apparent when accessing localhost or LAN sites.
The solution, for now, is to set the following setting to false in “about:config“:
network.dns.disableIPv6 = false
Restart Firefox 3 and enjoy the magic!

