Posts

Access GPIO from Linux user space

Image
GPIO mean "General Purpose Input/Output" and is a special pin present in some chip that can be set as input or output and used to move a signal high or low (in output mode) or to get the signal current status (in input mode). Usually these pin are directly managed by kernel modules but there are an easy way to manage these pins also from user space.

Online animated loading icon generator

Image
Webmaster, web developers or, in general, developer of each sector could need a way for inform the user that a specific operation is in progress. Usually this kind of info is showed through some animation that makes you feel regarding the current application working. The animation on the left is a common example about. If you don't want to spend a lot of time to make your own animation there is an online service who can give you some ready made animations.

Compile a Linux module consisting of multiple source files

Image
Certainly a lot of you know very well how to make this action but since I’m not very expert in makefile syntax I spend some time to figure out to to compile a Linux module consisting of multiple source files. Just to avoid the same waste of time to others who, like me, have no big experience in this sector I’ll post a short explanation about how to get this result.

Tree in C/C++

Image
Tree structure is frequently useful in case your software need to manage data in structured mode. The tree concept is simple but can have many different implementations. However, rather than reinvent the wheel, many developers proposed their solutions for manage tree. Here a short linst of some of them available in open source format. Feel free to add new if you know.

Subversion commit and ignored files

Image
Just a quick note for provide a solution to a problem that, sometimes, can happen during a subversion commit operation. Subversion, frequently abbreviated as SVN, is a software versioning and revision control system distributed under an open source license. I will not explain here how to use subversion since if you know them you surely already know how to use it. On the contrary, if you don't know it probably you don't need them. Anyway if you make a commit operation of a large number of files containing also binary file like precompiled libraries and so on keep attention since is possible (especially under Linux) that some type of file are automatically included in a special list of ignored files. This mean these files ignored by subversion will not be added to the commit without give you any advise of that.

Create a password protected zip file using zlib and ZipEngine

Image
If you want to create a zip file from your C/C++ application the first solution you can consider is to use the famous zlib library. This library is open source, permissive license and can be compiled in different operating systems. It allow to easily manage a zip file but, currently, doesn't have the feature for create zip file password protected. To fill this lack another developer created a small wrapper over zlib allowing to bypass this problem. Let's go to see how to use both these product.

Use MooRainbow as custom field in Joomla module or plugin settings panel

Image
Each Joomla extension allow to configure the various options through the administrator settings panel. In case of modules and plugin the type of control available are very basic. In the majority of cases these control are more than enough for create a good interface. However, for some type of inputs, have a basic control, like a text edit, can work but it makes a little difficult for the user to insert the right value. One of this cases is the insertion of a color code. Luckily Joomla is a very flexible CMS an allow us to add custom control for improve the system usability. In this tutorial we are going to explain how to integrate the famous MooRainbow script into module and plugin settings panel for allow a better help in color selection.