Let s assume you are a sysadmin and have to debug a daemon giving bad performance on one machine, but not on the other. Of course, you did not setup either machine, have only basic knowledge of the said daemon and would really love to watch that awesome piece of cinematographic art with a bunch of friends and a couple of beers. So it s like every day, right?
The problem with understanding running setups is that you often have to read configuration files. And when reading one is not enough, you have to compare two or more of them. Suddenly, a wild problem occurs: order and indentation do not matter (unless they do), comments are often just beautiful noise and why the hell did that guy smoke/drink/eat while explicitly setting ALL THE OPTIONS to their defaults before actually setting them as he wanted.
If you are using diff(1), you probably love to read a lot of differences, which are none in reality. Want an example?
[foo]wdiff or dwdiff, which often helps, but not in the above case. Others suggested vimdiff, which is nice, but not really helpful here either.
As there is a problem, and I love to solve these, I started a small new project: cfgdiff. It tries to parse two given files and give a diff of the content after normalizing it (merging duplicate keys, sorting keys, ignoring comments and blank lines, you name it). Currently it can parse various INI files, JSON, YAML and XML. That s probably not enough to be the single diff tool for configuration files, but it is quite a nice start. And you can extend it, of course ;)
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.
AltOS 1.3.2 Bug fixes and improved APRS support
Bdale and I are pleased to announce the release of
AltOS version 1.3.2.
AltOS is the core of the software
for all of the Altus Metrum products. It
consists of firmware for our cc1111, STM32L151, LPC11U14 and ATtiny85
based electronics and Java-based ground station software.
This is a minor release of AltOS, including bug fixes for TeleMega,
TeleMetrum v2.0 and AltosUI .
AltOS Firmware GPS Satellite reporting and APRS improved
Firmware version 1.3.1 has a bug on TeleMega when it has data from
more than 12 GPS satellites. This causes buffer overruns within the
firmware. 1.3.2 limits the number of reported satellites to 12.
APRS now continues to send the last known good GPS position, and
reports GPS lock status and number of sats in view in the APRS comment
field, along with the battery and igniter voltages.
AltosUI TeleMega GPS Satellite, GPS max height and Fire Igniters
AltosUI was crashing when TeleMega reported that it had data from more
than 12 satellites. While the TeleMega firmware has been fixed to
never do that, AltosUI also has a fix in case you fly a TeleMega board
without updated firmware.
GPS max height is now displayed in the flight statistics. As the
u-Blox GPS chips now provide accurate altitude information, we ve
added the maximum height as computed by GPS here.
Fire Igniters now uses the letters A through D to label the extra
TeleMega pyro channels instead of the numbers 0-3.
Russ, thank you for your exemplary role.
And that's all that was left to say.
parallel
program in moreutils have amicable co-installability among many,
many other things with respect to my packages.
And, quite probably, work on packaging ffmpeg with other interested people
(which seem to be numerous).
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.
Andrzej's C++ blog has a nice series on type erasure.
I found it interesting to read and have learnt some things from it.
For instance, I vaguely guessed, but did not fully realize, that std::function<>
is of course a performance hit, since the way how std::function<> is implemented
makes it impossible for the compiler to do anything useful with that function
call. Inlining is totally out of the question, since we have just erased the
type information. You might say, "of course!", but for me it was sort of a
revelation.
The series is in four parts: part I, part II, part III, part IV.
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"
Recently I started doing a internet-wide scan for rsync servers, thinking it might be fun to write a toy search-engine/indexer.
Even the basics such as searching against the names of exported shares would be interesting, I thought.
Today I abandoned that after exploring some of the results, (created with zmap), because there's just too much private data out there, wide open
IP redacted for obvious reason:
shelob ~ $ rsync rsync://xx.xx.xx.xx/ ginevra Ginevra backup krsna Alberto Laptop Backup franziska Franz Laptop Backup genoveffa Franz Laptop Backup 2Some nice shares there. Lets see if they're as open as they appear to be:
shelob ~ $ rsync rsync://xx.xx.xx.xx/ginevra/home/ drwxrwsr-x 4096 2013/10/30 13:42:29 . drwxr-sr-x 4096 2009/02/03 10:32:27 abl drwxr-s--- 12288 2014/02/12 20:05:22 alberto drwxr-xr-x 4096 2011/12/13 17:12:46 alessandra drwxr-sr-x 20480 2014/02/12 22:55:01 backup drwxr-xr-x 4096 2008/10/03 14:51:29 bertacci ..Yup. Backups of /home, /etc/, and more. I found numerous examples of this, along with a significant number of hosts that exported "www" + "sql", as a pair, and a large number of hosts that just exported "squid/". I assume they must be some cpanel-like system, because I can't understand why thousands of people would export the same shares with the same comments otherwise. I still would like to run the indexer, but with so much easy content to steal, well I think the liability would kill me. I considered not posting this, but I suspect "bad people" already know..,
It's been quite a busy, varied day today. Lot's of fun as usual.
Zoe has a dentist appointment tomorrow morning, so we went to the Thursday
offering of her Brazilian Jiu-Jitsu class instead, and skipped Playgroup.
We biked over extra early this morning, to make sure we were on time. There
were two other kids in the class today, a 3 year old boy and a 2 and a half
year old girl. The class went really well.
We biked home the scenic way again, and grabbed a BBQ chicken for lunch
along the way. The box of kinetic
sand that I'd ordered was sitting on the doorstep. That still left us
with about 45 minutes to kill before lunch, so I thought I'd start on making
a second miniature
clothes line with Zoe.
Bunnings were selling these little kids safety sets at half price because
they were a deleted product, and the set came with proper fitting eye
protection, hearing protection and some gloves. The gloves are currently too
big, but the glasses and hearing protection is great.
I introduced her to the power drill and the hand saw. She liked drilling,
and marking, but mostly was happy just watching. We managed to make most of
the top of the clothes line before lunch, and then I whipped up some chicken
quesadillas for lunch.
We had a few disruptions during quiet time, so Zoe didn't nap. After quiet
time, we did a mix of cleaning up the house a bit, some more wood working,
and some self-directed play.
After that, Zoe's friend Mackensie and her little sister came over for a
play date after her Kindergarten class. She goes to the same Kindergarten as
Zoe, but in the second half of the week.
Mackensie's mum brought me a coffee, and we had some afternoon tea, and then
I busted out the kinetic sand. It was a real hit with all the girls, as well
as the adults. A very good product. That kept them occupied for a while.
Zoe had found a Wallace and Gromit DVD while we were cleaning up, and she
hasn't watched it for a while, so she was very keen to watch it. I told her
she could watch it after Mackensie went home, and so we've kicked back on
the couch to watch that while we wait for Sarah to arrive.
A new release 0.2.11 of
RInside
is now on CRAN.
RInside provides
a set of convenience classes which facilitate embedding of
R
inside of C++ applications and programs, using the classes and functions provided by the
Rcpp R and C++
integration package.
This release, the first in fourteen months, fixes one important initialization issue created by the recent
Rcpp 0.11.0 release, adds a few other changes related to that release
and improves a number of small points such as new or improved examples.
The NEWS extract below has more details.
Changes in RInside version 0.2.11 (2014-02-11)CRANberries also provides a short report with changes from the previous release. More information is on the RInside page. Questions, comments etc should go to the rcpp-devel mailing list off the Rcpp R-Forge page.
- Updated for Rcpp 0.11.0:
- Updated initialization by assigning global environment via pointer only after R itself has been initialized with special thanks to Kevin Ushey for the fix
- Updated
DESCRIPTIONwithImports:instead ofDepends:- Added correspondiing
importFrom(Rcpp, evalCpp)toNAMESPACE- Noted in all
inst/examples/*/Makefilethat Rcpp no longer requires a library argument, but left code for backwards compatibility in case 0.11.0 is not yet installed.- Added
--vanilla --slaveto default arguments for R initialization- Added a few more explicit
#includestatements in theqtexample which Qt 5.1 now appears to require with thanks to Spencer Behling for the patch- Added new MPI example with worker functions and RInside instance, kindly contributed by Nicholas Pezolano and Martin Morgan
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
I spent last week looking into the firmware configuration protocol used on current IBM system X servers. IBM provide a tool called ASU for configuring firmware settings, either in-band (ie, running on the machine you want to reconfigure) or out of band (ie, running on a remote computer and communicating with the baseboard management controller - IMM in IBM-speak). I'm not a fan of using vendor binaries for this kind of thing. They tend to be large (ASU is a 20MB executable) and difficult to script, so I'm gradually reimplementing them in Python. Doing that was fairly straightforward for Dell and Cisco, both of whom document their configuration protocol. IBM, on the other hand, don't. My first plan was to just look at the wire protocol, but it turns out that it's using IPMI 2.0 to communicate and that means that the traffic is encrypted. So, obviously, time to spend a while in gdb.
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.
Next.