Today was another Kindergarten day. Zoe was complaining about being sweaty
before we even left the house this morning, so I gave her the choice of going
by car or by bike, and she chose car, which was fine by me. It's been stinking
hot the last few days. Summer is going out with a bang.
Drop off went pretty smoothly. It was another morning where she was happy to
have me hang out with her for a little bit, and then I was allowed to leave
without any issues.
I decided to use this Monday as a Debian day as planned. I mostly ran into a snag with my
email setup, but I did manage to do some bug triage and upload one package.
It had been hot all day, and I was feeling sapped by it, so I picked up Zoe in
the car as well. I was surprised to find she wasn't asleep and hadn't had a nap
at all. She seemed in good spirits despite this. Megan's Dad has quit his job,
so I don't need to pick her up any more on Mondays and Wednesdays. We dropped
by the post office to check my PO box on the way home. Zoe enjoyed peering
through the mailbox into the post office.
Today's TV diversion was to build a rocket ship out of one of the big moving
boxes I've kept aside from the move back. Zoe had great fun blinging up the
inside and outside with various craft "gems", and drew a bunch of aliens on the
outside. I could have quite easily strung this out until Sarah arrived to pick
her up, but I let her watch a little bit of TV right at the end.
It was a pretty good afternoon. I liked how Zoe ran with the rocket ship idea
and added her own embellishments all by herself.
After Sarah picked up Zoe I went for a run. I'd intended to do 10km, but the
heat took it out of me, and I lacked the willpower, so I stopped at 5km. After
that I had the sweatiest yoga class yet.
In case you are using busybox-static like me to create custom initramfses, here a little warning:
The current busybox-static in unstable lost its ability to find builtins with no /proc/self/exe,
so if you use it make sure you either have all builtins you need up until mount /proc (including mount)
and after you umount all file systems as explicit symlinks or simply create a /proc/self/exe -> /bin/busybox
symlink...
This is the 2nd point release of OpenStack Havana (this is the name of the current stable release of OpenStack). It was out on Thursday (US time), and I uploaded it on Friday (Chinese time). Unfortunately, I realized that the latest python-keystoneclient didn t support the token and endpoint command line options, effectively breaking Keystone itself, and all automated endpoint registration in all core packages. So after fixing Keystone and openstack-pkg-tools, I had to re-upload a 2nd Debian release.
However, after this glitch, the packages passed successfully our CI testing suite: my friends at eNovance and I run the tempest functional test suite each time there s this kind of major update, so that we can validate the packages are working as expected. And all went well after the new keystone command line options were fixed in the postinst scripts.
As a side note, I fail to see consistency on deprecating these interfaces. While we still have the old glance index thing in the Glance client (this is really old), keystoneclient just broke backward compatibility, when keystone is quite recent. So, it looks to me that it wasn t a great idea to just remove token and endpoint this way (though I can understand the need of consistency). Hopefully, this will all be fixed anyway, when we move to the unified python-openstackclient command lines instead of per-project clients.
I realized today that the pkg-openstack team now maintains more than 100 packages. This of course includes general purpose Python modules, which probably will move to the Python module team if it one day supports Git (life is too short: I do not wish to learn such a deprecated technology as SVN). Though this is still a lot of packages, and some more are coming: as per the OpenStack TODO list wiki page, Ironic (a replacement for nova-baremetal), TripleO (OpenStack on OpenStack), Tuskar (contols where things are deployed with TripleO) and Designate (DNS as a Service) are already packaged, and I am waiting for the Icehouse (this is the name of the next stable release) beta3 to be out to upload them to Experimental. This is scheduled for the 6th of March. I believe I am currently nearly up-to-date with the current global-requirements.txt (eg: python dependencies of OpenStack), pending a few Python module upgrades, so hopefully, packaging OpenStack Icehouse beta3 will smooth.
I love Free Software, and the people behind it. Even though I have been a free software user and developer for more than a decade now, there's still more to be amazed at, still more to contribute, and still more to learn. I love the Free Software community, because it never ceases to amaze me. It's not just about the technical side, but the social, human side of it, too!During the past year, I came to another milestone in my career: as of july first, I am a Free Software developer, and enjoying every moment of it. This is a feat that could not have been done without there being demand for what I do, without the free software community as a whole. For that, I owe you all a big thank you, you make it possible for me to make my dream come true. I can only hope that through my work, and through my example, I can contribute back enough.To this day, I take delight in contributing to free software, be it a Lisp on Python (or projects built in it), any of my own projects, syslog-ng, Google Summer of Code mentoring, Debian work - any and all of that are great fun. Even processing NEW is (I really should do that more often)! It's an endless source of not only entertainment and knowledge, but inspiration too.Whenever I read something as amazing as Russ Allbery's mail on the Debian technical committee impasse, I realize just how amazing people we have in our community, and how much we all can learn from them, and how much we owe them. This is yet another reason why I feel that contributing to Free Software is a passion many can share, because it teaches us good values too, atop of being technically excellent.I love Free Software, because without it, I would be lost. Thank you.
After so many attempts to have my shiny Movistar Peru (Internet M vil) 3G ZTE MF193 modem to work out-of-the-box in Debian jessie (unstable) with NetworkManager, the word frustration was hitting on my head. Even trying to do the right thing, led me to craziness. I gave up on fanzines and decided to take the old-school route. Release wvdial and friends!
Trying different combinations for wvdial.conf was no heaven for sure, but I ve found this wonderful guide from Christian Ams ss from Vienna, Austria! that really made a difference. Of course he s talking about the MF180 model but you get the idea. So I m sharing what was different for the MF193.
Basically, I ve done the eject and disable CD-ROM thing already, but still no progress. I ve also tried using wvdial to send AT commands to the evasive /dev/ttyUSBX device. Starting from scratch confirmed that I ve done such things properly indeed. I was amused by the fact that I could use screen to talk to the modem! (yo, all the time wasted trying to have minicom and friends play nice)
So, let s get to the point. After following this procedure, you should be able to use NetworkManager to connect to the Interwebs using the 3G data service from Movistar Peru.
/dev/ttyUSB4/dev/ttyUSB 0,1,2 and /dev/gsmmodem should be missing (not sure if this is a bug). Now /dev/ttyUSB2 is your guy./dev/ttyUSB2wvdial from CLI it should connect successfully.wvdial[Dialer Defaults] Modem = /dev/ttyUSB2 Username = movistar@datos Password = movistar APN = movistar.pe Phone = *99# Stupid Mode = 1 Init2 = AT+CGDCONT=4,"IP","movistar.pe"
More and more packages are getting
autopkgtest aka
DEP-8 testsuites these days.
Thanks to Antonio Terceiro, there is ci.debian.net"
running the tests.
Last weekend, I've added a "CI" column on DDPO
that shows the current test results for your packages. Enjoy, and add tests to your packages!
Recently I've been thinking about getting a new laptop. I have this rule that a laptop should last me at least 3 years (ideally more) and my old laptop was bought in September 2010. So for the past few months I've been trying to work out if there's something suitable on the market that is a good replacement (last time I didn't manage to find something that ticked all the boxes, but did pretty well for the price I paid).
To start with I decided to track my laptops over time - largely because one of my concerns was about the size of a replacement, because I have a significant leaning towards subnotebooks. In the end the reason I decided to upgrade was for some extra CPU grunt; my old machine had a tendency to get pretty hot under any sort of load.
| Date | Model | CPU | Screen | RAM | Storage | W (mm) | H (mm) | D (mm) | Weight | Cost |
|---|---|---|---|---|---|---|---|---|---|---|
| 1991 | Amstrad PPC 640D | NEC V30 8MHz | 9" 640x200 non-backlit green LCD | 640k | 2 x 3.5" FDD | 450 | 230 | 100 | 10kg | ??? |
| August 1997 | Compaq Aero 4/33c | 486sx33 | 7.8" 640x480 CSTN LCD | 4MB | 80MB | 260 | 190 | 43 | 1.6kg | ??? |
| July 2002 | Compaq Evo N200 | P-III 700MHz | 10.4" 1024x768 TFT | 192MB | 20GB | 251 | 198 | 20 | 1.1kg | 939.99 |
| August 2005 | Toshiba Portege R200 | Pentium M 753 1.2GHz | 12.1" 1024x768 TFT | 1280MB | 60GB | 286 | 229 | 20 | 1.29kg | 1313.58 |
| September 2008 | Asus EEE 901 | Atom N270 1.6GHz | 8.9" 1024x600 TFT | 2GB | 4GB + 16GB SSD | 248 | 175 | 23 | 1.1kg | 299.99 |
| September 2010 | Acer Aspire 1830T | Core-i5 470UM 1.33GHz | 11.6" 1366x768 TFT | 8GB | 500GB | 284 | 203 | 28 | 1.4kg | $699.99 (~ 480) |
I have always loved Drum and Bass.
In 2013 I rediscovered my love for
Darkstep and
Neurofunk, and found
that these genres have developed quite a lot in the recent years.
Some labels like
Black Sun Empire and
Evol Intent
produce mixes/sets on a regular basis as podcasts these days.
This article aggregates some neurofunk podcasts I like a lot, most recent first.
Enjoy 33 hours and 57 minutes of fun with dark and energizing beats.
Thanks to BSE Contrax and Evol Intent for providing such high quality sets.
I had an early start today. I set my alarm for 5:30am, and finally got going a
bit after 6am, and knocked out a 10km run. It was my first 10km in about a
month. It wasn't pretty, but I was looking for accomplishment, not achievement.
Sarah's doing a work training course that had an early start, so she asked me
if she could drop Zoe to me early and have me take care of Kindergarten drop
off for her. Zoe arrived at around 8am, and I put some sunscreen on her and we
jumped on the bike.
I had one of the smoothest drop offs I've had since we've been back in
Australia. Megan was already there, and after we got settled, the two girls
started building with some large wooden blocks, and Zoe pretty much gave me a
hug and a kiss and sent me on my way. She didn't require any handing off to a
teacher, wasn't clingy or anything. It was wonderful to see.
Today was supposed to be my Debian day, but I've got something like 3 tax
returns to do for two different countries, so I got stuck into collating
records instead. After lunch I allowed myself to get sidetracked with trying to
figure out the Google
Drive API, because I'm trying to directly scan documents to Google Drive.
Then it was time to do the Kindergarten pick up. Both girls were fast asleep
when I got there. I tried rousing Zoe without much success, so I went to try
and wake up Megan. She was also pretty heavily sleeping, so I left her with one
of the teachers to try and wake her up and returned to Zoe. She took a
lot of work to wake up, but woke up happy.
I was expecting a couple of packages today, and the first one was being
delivered by Australia Post as we got home, so that was pretty good timing. The
second one was delivered while we were home, so that worked out pretty well.
For this afternoon's activity with the girls, I thought we'd make peg dolls.
I've been stockpiling craft materials for almost as long as I've been back in
Australia. I bought the big IKEA EXPEDIT 5 x 5
shelf, and have the bottom two rows set up as Zoe-accessible craft materials,
reminiscent of the "bin wall" that the TechShop had. I've been getting stuff from Riot!, but I've also found that there's
lots of good stuff to be had for cheap from Overflow.
So today's activity I think came from Riot! It was your bog standard wooden
clothes pin, but the kit included a conical wooden "sleeve" that I guess was
supposed to be a "dress". I thought I'd take things to the next level by
hot-gluing a styrofoam ball on the top of the peg, and then hot-gluing eyes
and a pom-pom nose on. The girls decided on their own to glue orange cellophane
for hair, and got me to draw on eyebrows and a mouth. I had a couple of sheets
of felt, so I cut holes in the middle of them and used the conical wooden
sleeve to hold the felt dress in place. Pipe cleaners made the arms and they
were finished. The girls seemed to enjoy making and playing with them.
It was the first time I've used the hot glue gun, and I wasn't sure how it was
going to go. I explained to the girls that the tip was hot and to stay away
from it, and let them use it under close supervision. Unfortunately Zoe learned
the hard way that the glue is also very hot after it's been applied to the
surface that it's going to be used on. Hot glue was definitely the way to go
for a quick project where we didn't want to be sitting around waiting for PVA
glue to dry.
After that, the girls watched a DVD for a little while and then Megan's Dad
arrived to pick her up.
I started dinner a bit late, I should have started it while the girls were
watching TV, so we didn't sit down to eat until later than usual. Bedtime went
pretty smoothly, but also ran a bit late. Here's hoping Zoe sleeps well
tonight.
The home lab is my LAVA development environment and I ve recently got two iMX53 Quick Start Boards working with a typical LAVA master image based on a Linaro build of Linux 3.1.0 for mx5 with a Ubuntu Oneiric Ocelot 11.10 rootfs:
3.1.0-1002-linaro-lt-mx5 (buildd@hubbard) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #13-Ubuntu PREEMPT Fri Dec 16 01:21:07 UTC 2011As part of my Debian work, it was clearly time to look at a current, Debian, kernel and rootfs and as I m developing and testing on Debian unstable, this would necessarily mean testing the Debian ARMMP (multi-platform) kernel which replaces the mx5 build used in Wheezy.
Linux version 3.12-1-armmp (debian-kernel@lists.debian.org) (gcc version 4.8.2 (Debian 4.8.2-10) ) #1 SMP Debian 3.12.9-1 (2014-02-01)I will be scripting the creation of a suitable image for these tests and there are other changes planned in LAVA to make it easier to build suitable images, but it is useful to document just how I worked out how to build the first image. Manual build steps First, I ve already discovered that the u-boot on the iMX53 doesn t like ext4, so the first step was to prepare an ext3 filesystem for the image. With a SATA drive attached, it was also much better to use that than the SD card, at least for generating the image. I m also doing this natively, so I am working inside the booted master image. This is fine as the master is designed to manipulate test images, so the only package I needed to install on the LAVA master image was debootstrap. I had an empty SATA drive to play with for these tests, so first prepare an ext3 filesystem:
# mkfs.ext3 /dev/sda1 # mkdir /mnt/sata # mount /dev/sda1 /mnt/sata # mkdir /mnt/sata/chroots/Start the debootstrap:
# apt-get update # apt-get install debootstrap # debootstrap --arch=armhf --include=linux-image-armmp \ --verbose unstable \ /mnt/sata/chroots/unstable-armhf http://ftp.uk.debian.org/debianVarious actions in this chroot will need proc, so mount it here:
# chroot /mnt/sata/chroots/unstable-armhf # mount proc -t proc /proc # mount devpts -t devpts /dev/pts # exitYou may also have to edit the apt sources the LAVA master image doesn t have editors installed, so either use echo or download an edited file. I m using:
deb http://ftp.uk.debian.org/debian sid mainflash-kernel needs changes For the initial tests, I ve got to get this image to boot directly from u-boot, so flash-kernel is going to be needed inside the chroot and to get the iMX53 to work with the ARMMP kernel and Device Tree, flash-kernel will need an update which will mean a patch:
# chroot /mnt/sata/chroots/unstable-armhf # apt-get update # apt-get install patch flash-kernel # cp /usr/share/flash-kernel/db/all.db /home # cd /home # patch -p2The patch itself goes through a couple of iterations. Initially, it is enough to use:
Machine: Freescale MX53 LOCO Board -Kernel-Flavors: mx5 +Kernel-Flavors: armmp +DTB-Id: imx53-qsb.dtb +DTB-Append: yesLater, once the device has booted with the ARMMP kernel, the Machine Id can be updated to distinguish it from the mx5 flavour (from /proc/cpuinfo) and use the model name from the Device Tree (/proc/device-tree/model):
diff --git a/db/all.db b/db/all.db index fab3407..41f6c78 100644 --- a/db/all.db +++ b/db/all.db @@ -62,6 +62,18 @@ U-Boot-Initrd-Address: 0x00800000 Required-Packages: u-boot-tools Bootloader-Sets-Incorrect-Root: yes +Machine: Freescale i.MX53 Quick Start Board +Kernel-Flavors: armmp +DTB-Id: imx53-qsb.dtb +DTB-Append-From: 3.12 +Boot-DTB-Path: /boot/dtb +U-Boot-Kernel-Address: 0x70008000 +U-Boot-Initrd-Address: 0x0 +Boot-Kernel-Path: /boot/uImage +Boot-Initrd-Path: /boot/uInitrd +Required-Packages: u-boot-tools +Bootloader-Sets-Incorrect-Root: no + Machine: Freescale MX53 LOCO Board Kernel-Flavors: mx5 U-Boot-Kernel-Address: 0x70008000(I will be filing this patch in a bug report against flash-kernel soon.) With that patched, update and run flash-kernel:
# mv all.db /usr/share/flash-kernel/db/all.db # flash-kernel flash-kernel: installing version 3.12-1-armmp Generating kernel u-boot image... done. Taking backup of uImage. Installing new uImage. Generating initramfs u-boot image... done. Taking backup of uInitrd. Installing new uInitrd. Installing new dtb. # exitLAVA overlays This will be a LAVA test image and it needs an overlay if you want a vanilla image, set up a passwd inside the chroot instead.
# cd /mnt/sata/chroots/unstable-armhf/ # wget --no-check-certificate https://launchpad.net/~linaro-maintainers/+archive/overlay/+files/linaro-overlay-minimal_1112.2_all.deb # wget --no-check-certificate https://launchpad.net/~linaro-maintainers/+archive/overlay/+files/linaro-overlay_1112.2_all.deb # chroot /mnt/sata/chroots/unstable-armhf/ # dpkg -i linaro-overlay-minimal_1112.2_all.deb linaro-overlay_1112.2_all.deb # rm linaro-overlay-minimal_1112.2_all.deb linaro-overlay_1112.2_all.deb # exitChanges to allow the chroot to boot Now the chroot needs setting up as a boot image:
# chroot /mnt/sata/chroots/unstable-armhf/ # echo T0:23:respawn:/sbin/getty -L ttymxc0 115200 vt102 >> ./etc/inittab # echo auto lo eth0 > ./etc/network/interfaces.d/mx53loco # echo iface lo inet loopback >> ./etc/network/interfaces.d/mx53loco # echo iface eth0 inet dhcp >> ./etc/network/interfaces.d/mx53loco # apt-get clean # umount /dev/pts # umount /proc # exitPartitioning as a LAVA test image This would be enough as a single partition test image but, currently, LAVA expects a much more hard-wired image. Depending on the history of the device and the need for LAVA to be able to put fresh kernel builds together with a known rootfs, LAVA has used a separate /boot and / partition in the test image for nearly all boards. Standard LAVA test images for many boards (like the iMX53) also have a small unallocated space at the start of the SD card, so until I can get LAVA upstream to handle test images of arbitrary design, I m adapting the image to suit the expectations inside LAVA. Yes, I know but it s better to get something working before spending time fixing things to make it work better. It will be fixed, in time. So I needed to separate out the /boot contents from the rest of the rootfs whilst keeping the chroot itself in a state which I can easily update and use to create other images.
# cd /mnt/sata/chroots/unstable-armhf/boot/ # tar -czf ../../boot.tar.gz ./* # cd .. # tar -czf ../root.tar.gz ./*Now the test image file and its partitions:
# dd if=/dev/zero of=/mnt/sata/images/empty/debian.img bs=1M count=1024 # cp /mnt/sata/images/empty/debian.img /mnt/sata/images/debian-unstable-armhf-armmp.img # losetup /dev/loop0 /mnt/sata/images/debian-unstable-armhf-armmp.img # parted /dev/loop0 -s unit mb mktable msdos # parted /dev/loop0 -s unit mb mkpart primary 1 10 # parted /dev/loop0 -s unit mb mkpart primary 11 110 # parted /dev/loop0 -s unit mb mkpart primary 111 1024I did make the mistake of using kpartx at this stage but there are many areas of confusion when translating the kpartx output to offsets for mount when parted is easier:
# parted /dev/loop0 unit B -s print Model: (file) Disk /dev/loop0: 1073741824B Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1048576B 10485759B 9437184B primary 2 10485760B 110100479B 99614720B primary 3 110100480B 1024458751B 914358272B primaryUse the Start numbers and use losetup to create the loop devices for each
# losetup -o 10485760 /dev/loop1 /dev/loop0 # losetup -o 110100480 /dev/loop2 /dev/loop0 # mkfs.vfat /dev/loop1 # mkfs.ext3 /dev/loop2Now clean up the loop mountpoints:
# losetup -d /dev/loop2 # losetup -d /dev/loop1 # losetup -d /dev/loop0 # losetup -alosetup -a should return nothing. If it doesn t, investigate the contents of
/dev/mapper and use dmsetup remove until losetup -a does report empty. Otherwise the subsequent stages will fail.
Now deploy the /boot contents into the empty image:
# mount -oloop,offset=10485760 /mnt/sata/images/debian-unstable-armhf-armmp.img /mnt/boot/ # pushd /mnt/boot/ # tar -xzf /mnt/sata/chroots/boot.tar.gz # popd # sync # umount /mnt/boot/and the / contents (removing the duplicate ./boot contents)
# mount -oloop,offset=110100480 /mnt/sata/images/debian-unstable-armhf-armmp.img /mnt/root/ # pushd /mnt/root # tar -xzf /mnt/sata/chroots/root.tar.gz # rm ./boot/* # popd # sync # umount /mnt/rootCheck the image
# mount -oloop,offset=10485760 debian-unstable-armhf-armmp.img /mnt/boot # ls /mnt/boot config-3.12-1-armmp initrd.img-3.12-1-armmp System.map-3.12-1-armmp uImage uInitrd vmlinuz-3.12-1-armmp # umount /mnt/boot # mount -oloop,offset=110100480 debian-unstable-armhf-armmp.img /mnt/root # ls /mnt/root bin boot dev etc home initrd.img lib lost+found media mnt opt proc root run sbin srv sys tmp usr var vmlinuz # ls /mnt/root/bin/auto-serial-console /mnt/root/bin/auto-serial-console # umount /mnt/root # md5sum debian-unstable-armhf-armmp.imgDownloads Yes, I have put that file online, if you are interested. Do read the readme first though. Getting the image off the device
# ip a # python -m SimpleHTTPServer 80 2>/dev/nullthen wget (just http://, IP address / and the filename), md5sum , finish with Ctrl-C. Depending on setup, it may be quicker to transfer the uncompressed
# cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x2 CPU part : 0xc08 CPU revision : 5 Hardware : Freescale i.MX53 (Device Tree Support) Revision : 0000 Serial : 0000000000000000
# uname -a Linux imx53-02 3.12-1-armmp #1 SMP Debian 3.12.9-1 (2014-02-01) armv7l GNU/Linux
# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux unstable (sid) Release: unstable Codename: sidNext! Yes, there is a lot to do from here on.
I have unsuccessfully tried to find a solution for the following problem on the
internet several times. Now that I have come at least closer to a usable
approach, I thought I'd document what I have found so that others trying to
achieve a similar thing can use this as a starting point.
Boost.Python offers a very nice and flexible way to interface C++ data types
with Python. With just a few lines of code, and the proper
linker flags, you get a Python importable shared object
from your C++ compiler. This can be very productive.
However, there is one aspect of C++ data types that I couldn't figure
out how to interface with Python, which are C++ discriminated unions, or more
specifically, heterogeneous containers. While Python has no problems
with containers containing objects of different types, C++ does not
make this very easy by default. Usually the problem is solved with
a container of pointers to a base class, and various subclasses with virtual
functions. However, this approach is not always practical, especially
if the different types of objects in an heterogeneous container
dont have many things in common. This is where discriminated unions come to
the rescue. They basically behave like a normal union in C, but have
an additional field which indicates the type of object
currently stored in the union. Boost.Variant does exactly that,
with a nice visitor interface added on top of it.
#include <boost/variant.hpp>
#include <vector>
struct a int x; ;
struct b std::string y; ;
typedef boost::variant<a, b> variant;
typedef std::vector<variant> vector;
variant make_variant() return variant();
vector make_vector() return vector a(), b(), a() ;
#include <boost/python/class.hpp>
#include <boost/python/def.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/init.hpp>
#include <boost/python/module.hpp>
#include <boost/python/object.hpp>
#include <boost/python/suite/indexing/vector_indexing_suite.hpp>
bool operator==(a const &lhs, a const &rhs) return lhs.x == rhs.x;
bool operator==(b const &lhs, b const &rhs) return lhs.y == rhs.y;
struct variant_to_object : boost::static_visitor<PyObject *>
static result_type convert(variant const &v)
return apply_visitor(variant_to_object(), v);
template<typename T>
result_type operator()(T const &t) const
return boost::python::incref(boost::python::object(t).ptr());
;
BOOST_PYTHON_MODULE(bpv)
using namespace boost::python;
class_<a>("a", init<a>()).def(init<>()).def_readwrite("x", &a::x);
class_<b>("b", init<b>()).def(init<>()).def_readwrite("y", &b::y);
to_python_converter<variant, variant_to_object>();
implicitly_convertible<a, variant>();
implicitly_convertible<b, variant>();
def("make_variant", make_variant);
class_<vector>("vector").def(vector_indexing_suite<vector, true>());
def("make_vector", make_vector);
$ g++ -std=c++11 -fPIC -shared $(python-config --includes) -o bpv.so file.cpp -lboost_python
>>> import bpv
>>> variant=bpv.make_variant()
>>> variant
<bpv.a object at 0x7f06bb2130c0>
>>> variant.x
0
>>> variant.x=2
>>> variant.x
2
>>> vector=bpv.make_vector()
>>> vector
<bpv.vector object at 0x7f20693289d0>
>>> len(vector)
3
>>> list(vector)
[<bpv.a object at 0x7f20693190c0>, <bpv.b object at 0x7f20693193d0>, <bpv.a object at 0x7f2069319440>]
>>> vector[0].x
0
>>> vector[0].x=2
>>> vector[0].x
0
>>> e0=vector[0]
>>> type(e0)
<class 'bpv.a'>
>>> e0.x = 2
>>> vector[0] = e0
>>> vector[0].x
2
>>> len(vector)
3
>>> vector.extend(vector)
>>> vector.append(bpv.a())
>>> len(vector)
7
>>> len(filter(lambda x: type(x)==bpv.b, vector))
2
>>> len(filter(lambda x: type(x)==bpv.a, vector))
5
>>> map(lambda x: x.x, filter(lambda x: type(x)==bpv.a, vector))
[2, 0, 2, 0, 0]
Another post about the Valve/Collabora free games thing. This time, the bad bit people trying to scam free games from us.
Before I start, I want to make one thing clear there are people who have requested keys who don t meet the criteria, but are honest and legitimate in their requests. This blogspam is not about them at all. If you re in that category, you re not being complained about.
So. Some numbers. At time of writing, I ve assigned keys to 279 Debian Developers or Debian Maintainers almost 25% of the total eligible pool of about 1200.
I ve denied 22 requests. Of these 10 were polite requests from people who didn t meet the conditions stated (e.g. Ubuntu developers rather than Debian). These folks weren t at all a problem for us, and I explained politely that they didn t meet the terms we had agreed at the time with Valve. No problem at all with those folks.
Next, we have the chancers, 7 of them, who pretended to be eligible when they clearly weren t. For example, two people sent me signed requests pointing to their entry on the Debian New Maintainers page when challenged over the key not being in the keyring. The NM page showed that they had registered as non-uploading Debian Contributors a couple of hours previously. A few just claimed I am a DD, here is my signature when they weren t DDs at all. Those requests were also binned.
And then we move onto the final category. These people tried identity theft, but did a terrible job of it. There were 5 people in this category:
From: Xxxxxxxx Xxxxxx <xxxxxxxx.xxxxxx@ieee.org> Subject: free subscription to Debian Developer 8217 A205 5E57 043B 2883 054E 7F55 BB12 A40F 862EThis is not a signature, it s a fingerprint. Amusingly, it s not the fingerprint for the person who sent my mail, but that of Neil McGovern a co-worker at Collabora. Neil assured me he knew how to sign a mail properly, so I shitcanned that entry.
From: "Xxxxx, Xxxxxxxxx" <x.xxxxx@bbw-bremen.de> Subject: Incoming! Hey dude, I want to have the redemption code you are offering for the Valve Games mQGiBEVhrscRBAD4M5+qxhZUD67PIz0JeoJ0vB0hsLE6QPV144PLjLZOzHbl4H3N ...snip... Lz8An1TEmmq7fltTpQ+Y1oWhnE8WhVeQAKCzh3MBoNd4AIGHcVDzv0N0k+bKZQ=3D=3D =3Du/4RWat? Learn to GPG!
From: Xxxxxx-Xxxx Le Xxxxxxx Xxxx <xx.xxxxxxxxx@gmail.com> Subject: pass steam Hey me voila Merci beaucoup valve 2069 1DFC C2C9 8C47 9529 84EE 0001 8C22 381A 7594Like the first one, a fingerprint. This one is for S bastien Villemot. Don t scammers know how to GPG sign?
From: "Xxxxxxxxx Xxxxxxx" <xxxxxxxx@web.de> Subject: thanks /DD/Steam gifts us finally something back 0x6864730DF095E5E4Yet again, a fingerprint. This one is for Marco Nenciarini. I found this request particularly offensive due to the subject line the haughty tone from an identity thief struck me as astonishingly impertinent. Still, when will scammers learn to GPG?
From: Sven Hoexter <svenhoexter@gmail.com> Subject: Valve produced games I'm would like to get the valve produced games My keyring: 0xA6DC24D9DA2493D1 Sven Hoexter <hoexter> sig:6Easily the best scam effort, since this is the only one which both a) registered an email address under the name of a DD, and b) used a fingerprint which actually corresponds to that human. Sadly for the scammer, I m a suspicious kind of person, so my instinct was to verify the claim via IRC.
31-01-2014 16:52:48 > directhex: Hoaxter, have you started using gmail without updating your GPG key? (note: significantly more likely is someone trying to steal your identity a little to steal valve keys from collabora) 31-01-2014 16:54:51 < Hoaxter!~sh@duckpond6.stormbind.net: directhex: I do not use any Google services and did not change my keySo yeah. Nice try, scammer. I m not listing, in all of this, the mails which Neil received from people who didn t actually read his mail to d-d-a. I m also not listing a story which I ve only heard second ha actually no, this one is too good not to share. Someone went onto db.debian.org, did a search for every DD in France, and emailed every Jabber JID (since they look like email addresses) asking them to forward unwanted keys. All in all, the number of evildoers is quite low, relative to the number of legitimate claims 12 baddies to 279 legitimate keys issued. But still, this is why the whole key issuing thing has been taking me so long and why I have the convoluted signature-based validation system in place. Enjoy your keys, all 279 of you (or more by the time some of you read this). The offer has no explicit expiry on it Valve will keep issuing keys as long as there is reason to, and Collabora will continue to administer their allocation as long as they remain our clients. It s a joint gift to the community thousands of dollars worth of games from Valve, and a significant amount of my time to administer them from Collabora.
Solara is a fun turn-based fantasy strategy game for iOS which works perfectly
well with VoiceOver. AppleVis has a review
and all the details like a link into the AppStore.
You build your castle level by level, and train your heroes to be stronger
in battle. While your heroes are at battle, you can not
control any real-time aspect of a battle. The combination of your
heroes and their individual strengths (levels) is essential to determine if you can win a battle.
So it sort of resembles rolling dice. At the beginning of a battle,
you can choose which of your various heroes you'd like
to send. You normally have four slots to fill, in earlier levels of
Solara even less (to ease you into game play).
Fighting is done in two different parts of the game.
You need to use your heroes to solve quests, which will be rewarded
by experience points and gold, which in turn will increase
your playing level. From level 10 on, you will also be
able to play in the arena against other player of solara.
These arena fights are rewarded with arena points which in turn
determine your place in an arena turnament. These turnaments
usually last a few days. At the end, the top places are
rewarded with gold.
The way solara is structured makes it a perfect fit for VoiceOver.
There are no real-time gesture problems to solve. It is basically
an interactive text adventure with a fantasy theme and a weighted skills
mechanism for determining the outcome of a fight.
And luckily, the authors of solara realized this and did
everything necessary to make this game really nicely playable with VoiceOver.
My personal comment: I initially felt its implemented nicely,
but playing it would be a waste of time. Now, a few months later,
I am at level 39, and have seen hints that there are 50 levels in total.
While I am not really hooked, I guess I will finish it eventually :-)
Next.