Archive for the ‘Linux/BSD’ Category.

MCP2210 Library — SPI Example Using MCP23S08

I made a few minor tweaks to the open source MCP2210 library during the past few days, and had also updated the documentation. In my previous post, I illustrated how to manipulate the GPIO pins using this library and today I will show you an example of communicating with a MCP23S08 8 bit IO port expander using SPI. Continue reading ‘MCP2210 Library — SPI Example Using MCP23S08’ »

MCP2210 Library

After a couple of weeks’ coding and testing, I finally finished the initial version of the MCP2210 C++ library for Linux. This library utilizes functions from Signal 11‘s HID API (hidraw) to communicate over the USB HID interface. Continue reading ‘MCP2210 Library’ »

Brother MFC-7340 Setup Under Linux

I just bought a Brother MFC-7340 multifunction laser printer to replace my old Lexmark Optra E310 which I have had for about ten years. Lexmark Optra E310 has excellent Linux support and I have been using CUPS to make it a networked printer. So naturally, I wanted to setup the new printer the same way. Continue reading ‘Brother MFC-7340 Setup Under Linux’ »

Apache2 Logrotate

Whenever I setup a new web server, I always like the idea of keeping the Apache logs roated on a daily basis. While the procedures for changing the log rotate frequency is pretty straight forward, I have seen a lot of people having problems with it so I decided to document it. Continue reading ‘Apache2 Logrotate’ »

Weekend Server Upgrade

I have finally got around to upgrade my web server. The server I have been using was an old Pentium III about 10 years old. It had been serving my website quite well over the years till recently. Continue reading ‘Weekend Server Upgrade’ »

Weekend Ubuntu Upgrade

Karmic Koala was released into the wild last Thursday, so naturally I was going to upgrade my desktop installations at home. In this past I had been doing fresh installs whenever there was a new release, since there might be some issues with the new Ext4 file system, I decided to upgrade my current 9.04 installation in place and perform a fresh installation when the Ext4 file system stabilizes. Continue reading ‘Weekend Ubuntu Upgrade’ »

Windows Administrative Share With Samba

In a heterogeneous computing environment (e.g. Linux and Windows), it is necessary to use Samba to share files between the Linux systems and Windows systems. Due to the security enhancements in Windows XP SP2 and above however, the administrative share access (e.g. \\{computer name}\c$ is disabled by default. Continue reading ‘Windows Administrative Share With Samba’ »

Monodevelop on Ubuntu 9.04

I am running Ubuntu 9.04 64bit. One thing I noticed is that the integrated debugger is behaving quite flaky for the included Monodevelop 2.0 package. After some research, it turned out that a lot of people are having similar issues. Continue reading ‘Monodevelop on Ubuntu 9.04’ »

C++ Recursive Directory Search Under Linux

I was trying to search for some code examples on how to do a recursive directory search under Linux using C++ the other day. But to my surprise, I could not find any place that offers a complete example. So I decided to post my code here after I created my own and hopefully you will find it helpful. Continue reading ‘C++ Recursive Directory Search Under Linux’ »

Ubuntu 9.04 on My Main PC

Last month,I upgraded one of my PCs from Ubuntu 8.10 to Ubuntu 9.04 and everything went rather smoothly. Since my main PC is running Ubuntu 8.04 (LTS) and there is no option to upgrade to 9.04 directly without going through 8.10, so I decided to try a fresh installation. Continue reading ‘Ubuntu 9.04 on My Main PC’ »

Canny Edge Detection Auto Thresholding

In the example I gave in “Interfacing IPP with Magick++“, I illustrated how to use Intel’s Integrated Performance Primitives (IPP) to perform edge detection. One issue with Canny edge detection algorithm is that we need to specify a high threshold and a low threshold. How to select those threshold values affect the quality of the detected edge greatly. And in my previous example, the threshold values were chosen manually. In this blog post, I will examine a couple of simple methods that can be used to automatically determine the threshold values. Continue reading ‘Canny Edge Detection Auto Thresholding’ »

Kubuntu 9.04 Test Drive

I was traditionally a KDE user till KDE 4.0 came along. While many users are excited about many of the new features (e.g. Widgets) added in KDE 4, I am simply no big fan of fancy user interfaces. So I have been using GNOME ever since. Of course the beauty of Linux is that running one windows manager does not prevent you from running applications native to another windows manager. Continue reading ‘Kubuntu 9.04 Test Drive’ »

The Jaunty Jackalope

Without much fanfare, Ubuntu 9.04 (Jaunty Jackalope) was released into the wild earlier today. But Ubuntu followers are wasting no time, overloading many of the official downloading sites. Continue reading ‘The Jaunty Jackalope’ »

C++ IDEs Under Linux

So far I have been mainly using KDevelop and Code::Blocks as my C++ development IDEs. Recently, I started using NetBeans IDE for C++ and I started to like it quite a bit. Continue reading ‘C++ IDEs Under Linux’ »

How to Revert to a Specific SVN Version of Code::Blocks

I had set up my apt-get source to use latest SVN build of Code::Blocks. Everything has been running pretty smoothly until a couple of days ago when Code::Blocks was updated to SVN 5534. Continue reading ‘How to Revert to a Specific SVN Version of Code::Blocks’ »