It has been almost three years since I posted anything here. I've decided to revive my blog and do some updates here and there. I got a new domain instead of the old one and now the site supports the https protocol (thanks to Let's Encrypt). I was using Pelican to generate my blog. However, this time I've decided to go with Nikola, mainly for two reasons:
- Nikola has good Org mode support,
- Nikola has good multilingual support.
I've been using Spacemacs (An Emacs distribution) to do most of my work for the past two to three years now and I wanted to make publishing new posts as easy as possible. So after trying some ideas and workflows, I've settled on using Nikola with Org mode. Also, I'm planning to publish (hopefully) every post in English and Arabic, so Nikola support for multilingual blogs was a must for me.
What is computer science? is it a scientific discipline? or an engineering discipline? or is it a form of Art? I tried to answer these questions with a small presentation that I gave at the university and I thought should share the slides of that presentation. So, grab it from here.
UPDATE Right now nupic is available at PyPi and can be simply installed by:
I just set up a docker image that will provide an easy development environment for the NuPIC project. The image comes with the following:
- NuPIC Studio
- iPython notebook
- MySQL server
Wacom Intuos Pro and Linux
So a new year and I got my self a little gift, a Wacom Intuos pro. I'm upgrading from an Intuos 3 so my opinions could be a little out of date.
Here is a couple of pictures of the pen and the pen holder.
The cool thing about the pen is the different nibs that you can use. As you can see in the picture below, the nibs are stored in the pen holder and you can choose the one that best suits your style.
The Intuos pro comes in three different sized. I got the small one because it's cheaper :P and I wanted a compact tablet that I can easily carry with me if I want to. The tablet surface feels like paper and It's definitely an improvement over the Intuos 3.
Another thing that I really like about the Intuos pro is the ability to have it work wirelessly. Underneath the tablet there is a removable battery and a compartment for the wireless dongle. You can remove the battery and the wireless dongle if you want to work in wired mode. The battery is charged via the USB cable in wired mode.
Here are closer pictures of the wireless and USB dongle.
Installation and Configuration
The main purpose of this blog post is to show how I got the tablet to work under Linux. I'm using Arch at the moment and when I plugged the tablet in, it did't work. I had to mess with it a bit to get it working.
First off, you need to install the wacom drivers. So run the following command which will install the drivers form the main repos.
Kernel module installation
Then you have to install this kernel module. Thanks to apicici for maintaining this. It's not in the official repos but you can get it from AUR. I'm using yaourt here, but you can use whatever AUR manager you have. Also, you have to have the kernel headers installed before this step, if you don't have them already.
Desktop environment configuration
I use KDE now and there's a cool KCM (KConfig Modules) for the wacom tablet in the AUR. To get it run the following:
Here is a screen shot of it:
The tablet could be used as a big touchpad. While it's good to have the option, it's not really practical because the palm rejection isn't working. So I think disabling the touchpad is better, for now at least. You can do so as shown in the screen shot below:
One awesome feature of this KCS, is the ability to have profiles. Here I have some shortcuts for MyPaint.
So this is it, have fun!
Thanks to Vasco Alexander Basqué for pointing out that the Intuos pro needs xf86-input-wacom version 0.23 or newer. It won't work with older drivers.
Android Storage Space Running Out!
I have my galaxy SII with Cyanogenmod 10.1 and I got this message "Storage space running out some system functions may not work". I tried to uninstall some applications but that didn't do the trick. I only had like 100MB of free space. Then I found that there are like 1.8Gigs of log files stored in the /data/log directory which I don't really care about.
So in order to free some space, I ran the following commands from the terminal:
It'll ask for root permissions when u run the first line. Hope this helps!