As I started to use the i3 window manager I wanted to have a visual feedback on sound volume change events. Usually it's done by a daemon that binds to specific keyboard combinations to adjust volume and to send notifications to a notify daemon. In xfce this is done by the xfce4-volumed. I should also point here to other lightweight volume daemons like volnoti or pa-applet. Without a dedicated daemon it is also pretty much simple to handle sound volume keys by a simple bash script which is bind to specific keyboard combinations.
Thoughts and ideas about programming, scripting, automation, electronics, gadgets, web and technology
Saturday, February 14, 2015
Saturday, May 10, 2014
Minimal Xubuntu 14.04 LTS installation
I have previously described the process of minimal Xubuntu Desktop installation with versions 13.04 and 13.10. Now it's time to install Xubuntu 14.04 LTS!
Note: There's already a newer article – Xubuntu 16.04 LTS minimal installation
Sunday, November 24, 2013
Minimal Xubuntu 13.10 Desktop installation
I have performed a clean install of the newest Xubuntu distribution and I like the result. They have reacted to the bug reports I posted and fixed dependencies to the bloatware and spying packages that were not possible to avoid during Xubuntu 13.04 installation. I have also spent some time trying to figure out the minimum set of packages for the network-manager to work. Here's the installation procedure:
Thursday, September 12, 2013
Multimonitor support in Xubuntu 13.04
One new feature planned for the Xubuntu 13.10 release is the multi-monitor support integrated into XFCE desktop. Previously one would have to use xrandr to adjust monitors settings and now it should also be possible with the updated Display Settings dialog. But it is also possible to use this feature in Xubuntu 13.04
Labels:
xubuntu
Tuesday, September 3, 2013
Javascript vs Perl vs Python vs Lua speed comparison
I have previously compared performance of the three most popular interpreted languages - Perl, Python and Lua (part1, part2). The next question was - how do they compare to the Javascript? Unlike the above mentioned languages it was quite unusual to use Javascript outside of a browser sandbox but with developing of the node.js this became possible.
Labels:
javascript,
lua,
perl,
python
Saturday, August 10, 2013
Redirecting terminal output into any X application
Sometimes I want to redirect bash output directly into an X application for further editing. Normally this is done using a temporary file where the bash output is saved and then it is opened by an application. There's a way though to start an X application and paste the bash output into its window automatically.
Tuesday, July 23, 2013
Python vs Perl vs Lua - speed comparison. Part 2
As far as people show interest in this topic I decided to perform an additional measurement to the one I performed in Part 1.
This time I wanted to compare floating point numbers operations performance because my good friend Anonymous worried about it. He said that I shouldn't have abused lua interpreter with basic arithmetic operations on integers because it's not good at it. He said that I should have tried floating points numbers instead to let lua interpreter shine. I was a bit skeptic about it to be honest but Anonymous's logic was sound.
Monday, July 22, 2013
Thursday, July 4, 2013
Tuesday, May 14, 2013
Python vs Perl vs Lua - speed comparison
I have written the base64 encoding algorithm in Perl, Python and Lua to compare the performance in basic arithmetic and file-io operations. Perl implementation was written a long time ago and it supposed to be a one liner. That's why the script looks so obfuscated:
Subscribe to:
Posts (Atom)
![[Image]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2FXf_UufXAylF2dwEpLMuRIW1_1hcInQz0DRnw4A6iQFrmV_SjsiOSqOdYlecHcGioPlmFgPuj2CL9H7vr6ui4t7b53zuO7lWeZRjQWEOWrqMoCdm3XayvhsOLxl72oSJKmOMZwC9MRM/s1600/xub1404.jpeg)
![[Image]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtkTUBfb2L33iaRphRU6QyrJ8kQ4gfqeP9DDdIhyzx3yoUMBrCOxTorw5U4ThkcWIzESDe9iUR8Xev7JGtlSeAe4X0FuNPn6CGjeBCwVs724jLpNPm2Yi4kVzhR2p4UN0-P_FydxbxEhc/s1600/xubuntu-brandmark-with-in-circle-logo-400.png)
![[Image]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjoLDUubAcPfvYniQUWMm0bsbUp6YLw4E7R70vwJO8sqkb0IHAkvbqf4xlwxPxMZIAHBPMxWlxjgX4Atfpni7liaNJ5Mm0bUNLsopEkHR5d2sT-AUI_OvE58N8JP467p5QVOcQfvkJWqg/s320/zpkwindow.png)