Navigation
-
Recent Posts
Archives
- September 2018
- November 2017
- August 2017
- May 2017
- January 2017
- December 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- March 2016
- January 2016
- December 2015
- November 2015
- September 2015
- March 2015
- December 2014
- November 2014
- March 2014
- January 2014
- March 2013
- February 2013
- October 2012
- July 2012
- February 2012
- January 2012
- December 2011
- January 2011
- July 2010
- April 2010
- December 2009
- July 2009
- December 2008
- July 2008
- June 2008
- February 2008
- September 2007
- June 2007
- March 2007
- December 2006
- July 2006
- April 2006
- February 2006
- November 2005
- October 2005
- July 2005
- June 2005
- May 2005
- April 2005
Categories
Meta
Archive for the Category: Uncategorized
Building a Raspberry Pi-based camera powered by Ethernet
The first built camera was installed in a remote place with no Ethernet connection, so it had to be WiFi-connected. The second camera, however, would replace an existing outdated IP camera, so there was Ethernet connection. Considering this, I decided to power it through Ethernet.
Comments Off on Building a Raspberry Pi-based camera powered by Ethernet
Reverse-engineering the EMZ karaoke format, or watch out the API calls
Worked on adding support for the EMZ karaoke format to the Karaoke Player application, and would like to share another good reverse-engineering technique. EMZ is a Karaoke format similar to the old Karafun, based on a password-protected ZIP archive. Unlike Karafun, the password is not embedded into the archive, but is derived from a some […]
Also posted in reverse engineering 2 Comments
Generating C or Java byte array from a binary using command-line tools
Once in a while during development a software engineer needs to embed the binary object as byte array in C or Java language. While coding a solution is simple, it could be achieved by the following command line on Linux or cygwin: For unsigned data: od -v -t u1 <binary file> | cut -c9- | […]
Comments Off on Generating C or Java byte array from a binary using command-line tools
OpenSuSE 13.2: do not use BTRFS as rootfs
OpenSuSE 13.2 comes with BTRFS chosen as your default rootfs, replacing the old trusted ext4. Unfortunately the kernel version it ships with contains a known flaw which breaks some software using preallocated files and mmap() on them. Known issues have been reported for rtorrent (failed synchronization) and KDE (plasma-desktop crashes and could not be restarted […]
Running Mac OS X under qemu/KVM on AMD CPU
Due to the excellent work of Gabriel L.Somlo it is possible to run the emulated Mac OS X on Linux under Qemu/KVM. The changes seem to be minimal, and the operating system emulation works well – as long as you have the Intel CPU, that’s it. If you have only the AMD CPU, the emulation […]
Practical difference between epoll and Windows IO Completion Ports (IOCP)
Introduction This article compares the difference between the use of epoll and Windows I/O Completion Port (hereby IOCP). It may be of interest to system architects who need to create a high-performance cross-platform networking servers, and to software engineers porting such code from Windows to Linux or vice versa. It may also be of interest […]
Preventing WordPress comments spam
There seem to be an easy way to prevent a significant number of WordPress comment spam. The majority of spam comments nowadays come with either a bunch of URLs, or with a generic message such as: Hi there! Just discovered your site while i was browsing and i must say that i found it quite […]
Comments Off on Preventing WordPress comments spam
Android dialog to choose a directory or file based on AlertDialog
This dialog could be used to let the user choose a file or directory. Since it is based on AlertDialog it doesn’t have to be instantiated through startActivity() and therefore could be used, for example, in a PrederenceDialog subclass. The provided code only selects the directories, but it is easy to modify it to select […]