Using IUP on windows/mingw

IUP is a cross platform GUI library. Last time tried to figure out how to compile an IUP hello world program using codeblocks IDE. After some searching on internet finally managed to compile it. Here is the linker setting used.

Simple Regex

Regex quick reference
[abc]     A single character: a, b or c
[^abc]     Any single character but a, b, or c
[a-z]     Any single character in the range a-z
[a-zA-Z]     Any single character in the range a-z or A-Z
^     Start of line
$     End of line
\A     Start of string
\z     End of string
.     Any single character
\s     Any whitespace character
\S     Any non-whitespace character
\d     Any digit
\D     Any non-digit
\w     Any word character (letter, number, underscore)
\W     Any non-word character
\b     Any word boundary character
(…)     Capture everything enclosed
(a|b)     a or b
a?     Zero or one of a
a*     Zero or more of a
a+     One or more of a
a{3}     Exactly 3 of a
a{3,}     3 or more of a
a{3,6}     Between 3 and 6 of a

options: i case insensitive m make dot match newlines x ignore whitespace in regex o perform #{…} substitutions only once

Euphoria on Linux

Euphoria is one of my first programming language which i learn by my self when i still at high school (1997). I get euphoria from shareware cd back then. Today im installing it on linux mint. Its have been a long time and now euphoria version is at 4.1.0 and maintained by openeuphoria.org.

Here is how i install euphoria.

Continue reading “Euphoria on Linux”

Install sqlite3 gem

To install sqlite3 gem we need to install development package for ruby and sqlite3 it self because of the need to compile gem native extension.

On ubuntu/mint/debian do as follow :

apt-get install ruby-dev

apt-get install libsqlite3-dev

Dont forget to execute as root.

After that we can execute gem install sqlite3.

Thats all … Bye.

Happy chinesse new year 2570 !

jEdit

jEdit is a java based editor for programmer, so it will run on many platform : windows, linux, mac.

First download jEdit installer from the web.

I choose to download java based installer and start it on my windows based laptop.

After a while a dialog will show up.

 

Continue reading “jEdit”

Installing wxWidgets on Debian based linux

Debian based linux like ubuntu and linux mint can use these steps to install wxWidgets.

$ sudo apt-get install build-essential

If we do not have a C++ compiler yet, we install the build-essential package.

I think this is an meta package that install the actual packages for programming task.

$ sudo apt-get install libwxgtk3.0-dev

This installs the wxWidgets package.

To test it with minimal console application that emit some text we will create console.cpp and compile it.

#include <wx/wx.h>

int main(int argc, char **argv)
{
wxPuts(wxT(“A wxWidgets console application”));
}

Continue reading “Installing wxWidgets on Debian based linux”