Nov 29 2009

Getting N56FU/E6000 to work in Linux

Published by Lord TCT under Linux

They are many reasons why I wanted to get this meter working in Linux. But whatever your reason is, this guide is for you.

Screenshot-2

Screenshot of QtDMM 0.8.13 reading of the N56FU. This screenshot was captured from an Asus EeePC 900 running Ubuntu 9.10.

Continue Reading »

Nov 29 2009

Maplin N56FU Digital Multimeter

Published by Lord TCT under General

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!

Continue Reading »

Jun 12 2009

Reading outputs of an external program in C++

Published by Lord TCT under Linux, Programming Tips

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)

Published by Lord TCT under Windows

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:

  1. Windows Server 2003 Service Pack 2 or Windows Server 2008
  2. Microsoft .NET Framework 3.0.
  3. Internet Information Services 6.0 or 7.0 configured and functional.
  4. Microsoft SQL Server 2000, 2005 or 2008. (Recommended)

Continue Reading »

Apr 13 2009

Making Firefox 3 Fast Again

Published by Lord TCT under Internet

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!

Next »