New review coming – MySQL for Python

Packt Publishing kindly gave us more books to review MySQL for Python, we had our share of experience binding python and mysql together in pyhp and we are using it on most of our infrastructure, albeit usually through SQLAlchemy. Puria will probably enjoy it since he does like most thin-layer/no-layer approaches and this book seems good to learn how to interface quite directly to mysql.

Python 3 Object Oriented Programming

Python 3 Object Oriented Programming had been reviewed already by a number of people in the python community and I’m lucky to have been given the occasion to read it as well. As most of the other reviewers I say that the book is pleasant, it’s easy to follow and crystal clear. It gives a good overview of everything you have to expect from python. The book is composed of 12 chapters The first 5 introduce the reader to basic concepts related to object oriented programming like Objects and Classes, Exceptions and Inheritance: Object-oriented Design, Objects in Python, When Objects are Alike, Expecting the Unexpected, When to Use Object-oriented Programming The next 2 delve into more python specific features and […]

Cross Building Linux

Just a quick note since even if is quite easy to read the Makefile sometimes you’d rather have the solution now. This is what I use for the efika images. The layout is the following: /dev/sdc1 on /mnt/efika/boot type vfat (rw) /dev/sdc2 on /mnt/efika/ type ext4 (rw) CROSS_COMPILE and INSTALL_MOD_PATH are described quite well in the linux Makefile. The former tell the configure which toolchain should be used, the latter where to install the modules, pretty easy, isn’t it? You must be careful to not forget the trailing “-” from the CROSS_COMPILE and you can avoid the trailing “/” in the INSTALL_MOD_PATH make CROSS_COMPILE=armv7a-unknown-linux-gnueabi- ARCH=arm menuconfig make CROSS_COMPILE=armv7a-unknown-linux-gnueabi- ARCH=arm make CROSS_COMPILE=armv7a-unknown-linux-gnueabi- ARCH=arm uImage make CROSS_COMPILE=armv7a-unknown-linux-gnueabi- ARCH=arm INSTALL_MOD_PATH=/mnt/efika modules_install In this […]

GCC using C++

I got this news http://gcc.gnu.org/ml/gcc/2010-05/msg00705.html and it puzzled me a bit: you have the system C compiler depending on C++, making in fact it no more self hosting. That alone makes me thing whoever decided and whoever requested that is next to suicidal. GCC is known for having _quite_ a shaky C++ standard library AND ABI, as in having at least an incompatibility every major version and sometimes even with minor ones. I do dislike C++ usage mostly on this basis, let alone the fact is a language overly large, with not enough people dabbling it properly, let alone being proficient. There are already compilers using C++, one that many people find interesting is llvm. It doesn’t aim to be […]

Ogg vs World (as picked up from Slashdot)

Ogg had been discussed a lot lately. Having messed a bit with it and having felt the pain about dabbling with it and with vorbis and theora probably I could chip in. I said “a pain”, quite subjective and I think the term summarizes my overall experience with it. If that’s because it is “different”, “undocumented” or just “bad” is left to you readers to decide. Even messing with NUT hadn’t been this painful and NUT is anything but mature. Now let’s go back digressing about Ogg. Mans stated what he dislikes and why, Monty defended his format stated that his next container format will address some of shortcomings he agrees are present in Ogg. Both defense and criticism are […]

VideoLAN Web Plugin: xpi vs crx

One of the main issue while preparing streaming solution is answering the obnoxious question: Question: Is possible to use the service through a browser? Answer: No, rtsp isn’t* http, a browser isn’t a tool for accessing any network content. * Actually would be neat having rtsp support within the video tag but that’s yet another large can of worms Once you say that you have half of your audience leaving. Non technical people is too much used to consider the browser the one and only key to internet. The remaining ones will ask something along those lines: Question: My target user is a complete idiottechnically impairednaive and unaccustomed and could not be confronted with the hassle of a complex installation […]

The zoom factor in webkit and gecko

Apparently all the major browsers tried to provide a zoom facility to improve the overall accessibility for the web users. Sadly that often breaks horribly your layout, if you are developing pixel precise interaction you might get a flood of strange bug reports you might not reproduce. We got bitten by it while developing Glossom, severely… Our way to figure out it’s value is quite simple once you discover it: Firefox scales proportionally the borders and makes the block dimensions constant, Webkit seems to do the opposite. It’s enough to check if a element with known dimensions and border width has it’s value reported as different and your can find our which is the factor. This obviously is quite browser […]

Remote desktop, meet multimedia; school, meet remote desktop

Recently we got contacted about crafting some kind of solution for remote participation to school lesson. Hospitalized students may have hard time catching up and the current technologies, even the overpriced and underused “interactive blackboards” may help a bit in the picture. What’s an “interactive blackboard” ? It is more or less a projector and any kind of tracking pointer, usually the IR flavour you can see in wide use through the Nintendo Wii. Not exactly a breakthrough it’s something you could craft with about 50e of components and any price for a projector (like the relatively inexpensive and highly portable ones from 3m). You might have some “value added software” that give you an UI that is more “blackboardish” […]

Syslog(3)

Recently Diego complained with me about the mod_accesslog I quickly drafted for Feng. I didn’t check much about supporting bare files log but I just used syslog since that’s what I use for all the services that support it. Luckily he fixed the glitches I left since his usage patterns are quite different than mine. Bare file logging usually is used by default in certain applications mostly because: You want to keep per-usage/per-user/per-deploy logs (think certain apache deploys) Your application doesn’t support syslog at all You didn’t knew about syslog and/or your logger daemon is a pain to configure You are fond of logrotate and/or you like to get your disk full of historic data Having syslog based logging usually […]

Gluster Experience (part two)

Luckily the issue I was experiencing with gluster 2.0.0rc1 was just an ugly bug squashed in the 2.0.0rc2 release. Right now I’m keeping the configuration I blogged about and now we are thinking about topologies and expansion. Right now the big issue is trying to provide enough bandwidth for write in replication since a single Gbit link isn’t enough. It’s too late to order infiniband so I’m stuck thinking what is the best topology given we have a single writer, 70 readers, 3 storage (gluster) and about 4 24port gigabit switches with 10Gbit expansion link unused and at least 2 gigabit interfaces per node. More will follow soon PS: I’m wondering how hard would be trying to get a round-robin […]