the hypervisor wasn t configured to enslave the correct physical interface to the correct bridge on boot. My bad. Sorry for the outage. Again.
the hypervisor wasn t configured to enslave the correct physical interface to the correct bridge on boot. My bad. Sorry for the outage. Again.
Today, photo-uploader just got it's new maintainer. I've basically lost interest in maintaining it two years ago, what resulted in dropping package from Debian year ago. I thought this is end of the software, but I seem to be wrong.
As a consequence of Debian bug #677220 Andrew Shadura stepped up as an upstream maintainer. At least Imageshack support is now working in git and maybe some new features will come or the package will be reintroduced to Debian. But that's all up to Andrew. Good luck!
Filed under: English Photo-Uploader 0 comments Flattr this!
I have recently read Test Driven Development with Embedded C by James W. Grenning and published by Pragmatic Programmers.
I really enjoyed the book: while I was aware of the huge benefits of having a comprehensive test suite, I never studied seriously the principles behind Test Driven Development (TDD) and this book makes a good introduction to the topic. At the same time it focuses on the C language and contains lots of examples on how you can create tests even for projects which have to interact with hardware or other unpredictable components (the key is to create many abstractions) using all the possibilities that C offers.
The author convincingly argues that developing code with TDD forces you to create a modular design that is easier to evolve when the underlying requirements change. He also highlights how the tests serve as reference documentation of the API.
James W. Grenning recommends CppUTest as his xUnit test framework of choice. When I wanted to try this test framework, I discovered that it was not available in Debian. I decided to package it because it has some interesting features not offered by the contenders (at least not to my knowledge). It s now available in Debian and in Ubuntu.
First, it doesn t require any explicit registration of tests and has a very lightweight syntax. The small downside is that CppUTest requires the usage of C++ for the tests. But C++ is compatible with C so it doesn t matter much if you have a C++ compiler for your target. On the contrary, usage of variables and methods scoped to the test group makes it easy to write clear tests. Here s a short sample of test code:
extern "C" #include "timer.h" #include "timefn.h" #include "CppUTest/TestHarness.h" static Time the_time; static const int start_sec = 123; static const int start_nsec = 456789000; static const int delay_sec = 8; static const int delay_nsec = 111111000; // start_nsec + delay_nsec < 10^9 TEST_GROUP(Timer) /* Class variables available to all tests in the group */ Timer timer; Delay remaining; /* Standard setup/teardown methods of xUnit tests */ void setup() timer = timer_new(); time_set(&the_time, start_sec, start_nsec); /* [...] */ void teardown() timer_free(timer); /* [...] */ /* Helper functions specific to the test group */ void start_timer_with_delay(long sec, long nsec) timer_set_real_delay(timer, sec, nsec); timer_start(timer); void ensure_remaining_is(long sec, long nsec) CHECK_EQUAL(sec, delay_get_seconds(remaining)); CHECK_EQUAL(nsec, delay_get_nanoseconds(remaining)); ; TEST(Timer, NewIsNotStarted) CHECK(!timer->started); /* [...] */ TEST(Timer, GetRemainingTimeWithNanosecondPrecision_ShiftOfSeconds) start_timer_with_delay(delay_sec, delay_nsec); time_set(&the_time, start_sec + delay_sec - 5, start_nsec + delay_nsec + 1000); remaining = timer_get_remaining_time(timer); ensure_remaining_is(4, 999999000);
#include "CppUTest/CommandLineTestRunner.h" int main(int argc, char** argv) return CommandLineTestRunner::RunAllTests(argc, argv);
The upstream developers have made some unusual choices (static library only, installation in a private directory) but this will likely change with the switch to an automake and autoconf-based build system. I have reported the oddities that I found and I requested them to provide a pkg-config file to make it easier to compile and link unit tests exploiting CppUTest.
I already used CppUTest to develop a small application running on an embedded Linux. At some point, I might try to use CppUTest for dpkg development. I believe that it makes for a good fit. dpkg is already C++ ready since dselect is written in C++ and reuses a good part of dpkg s code.
In any case, if you like Test Driven Development and are writing C or C++ based applications, I invite you to try CppUTest.
No comment Liked this article? Click here. My blog is Flattr-enabled.
Short before Debian is freezing the upcoming release of a new version of nagios-plugins is scheduled for Wednesday. The good news is, that a recent version is available in unstable and testing. Upstream only fixed some check_ping issues, which are not included in nagios-plugins 1.4.16~pre1-1. There is also a package available through squeeze-backports.
If you are able to, please test the packages as soon as possible. If there are some quirks, these can be fixed in the next two days upstream.
I was looking for an excuse to try Zotero and the perfect opportunity appeared when I got a whole lot of references to group for a month of Magnetic Ressonance studies I am currently taking. I was also pleased to notice it is packaged to Debian.
I am used to note-taking software. Back when I used a Palm m130 (and a Treo 650), I managed a lot of Memos I eventually migrated to Note-Everything in my current Android phone. Zotero, unfortunatelly, is not interfaceable with my phone (or I was still unable to figure out how to do so), but it s powerful in managing references beyond simple note-taking.
Is anyone using Zotero in a more ambitious way? I ve read about people using it to keep large researchs to support fiction and non-fiction book-writing I also watched some YouTube videos on it. As far as I went with it, Zotero might become an important piece in my toolbox wrt reference keeping, so I was just trying to figure out how many other niches it can fill
Obnam 1.0 was released during several months when I
had no well-connected server to use for backups. Yesterday I installed a
terabyte disk in a basement with a fiber optic network connection, so my
backupless time is over.
Now, granted, I have a very multi-layered approach to backups; all my data
is stored in git, most of it with dozens of copies automatically
maintained, and with archival data managed by git-annex. But I still like
to have a "real" backup system underneath, to catch anything else.
And to back up those parts of my user's data that I have not given them
tools to put into git yet...
My backup server is not my basement, so I need to securely encrypt
the backups stored there. Encrypting your offsite backups is such a good
idea that I've always been surprised at the paucity of tools to do it. I
got by with duplicity for years, but it's increasingly creaky, and the
few times I've needed to restore, it's been a terrific pain. So I'm excited
to be trying Obnam today.
So far I quite like it. The only real problem is that it can be slow, when
there's a transatlantic link between the client and the server. Each file
backed up requires several TCP round-trips, and the latency kills the
bandwidth. Large files are still sent fast, and obnam uses little resources
on either the client or server while running. And this mostly only affects
the initial, full backup.
But the encryption and ease of use more than make up for this. The real
killer feature with Obnam's encryption isn't that it's industry-standard
encryption with gpg, that can be trivially enabled with a single option
(--encrypt-with=DEADBEEF). No, the great thing about it is its key
management.
I generate a new gpg key for each system I back up. This prevents systems
reading each other's backups. But that means you have to backup the
backup keys.. or when a system is lost, the backup would be inaccessible.
With Obnam, I can instead just grant my personal gpg key access to
the repository: obnam add-key --keyid 2512E3C7. Now both the machine's
key and my gpg key can access the data. Great system; can't revoke access,
but otherwise perfect. I liked this so much I stole the design and used
it in git-annex too. :)
I'm also pleased I can lock down .ssh/authorized_keys on my backup
server, to prevent clients running arbitrary commands. Duplicity runs
ad-hoc commands over ssh, which defeated me from ever locking it down.
Obnam can be easily locked down, like this:
command="/usr/lib/openssh/sftp-server"
This could still be improved,
since clients can still read the whole filesystem with sftp. I'd like to
have something like git-annex's
git-annex-shell,
which can limit access to only a specific repository. Hmm, if Obnam
had its own server-side program like this, it could stream backup data to
it using a protocol that avoids the roundtrips needed by the SFTP protocol,
and fix the latency issue too. Lars, I know you've been looking for a Haskell
starter project ... perhaps this is it? :)
good news of the RCBW week: more & more patches from people I haven't
seen before in the BTS. keep them coming!
I m now a Debian Developer (or rather, I ve gotten my account created) I still don t feel right calling myself a Debian Developer just yet :)
Before I go off with my usual rants, I think now s about a good of time as any to thank everyone who helped me here.
So, thank you. Really. All of you.
I only hope to live up to the stellar example of those before me.
Mirroring my post to debian-desktop here:
Howdy, -desktop,
Hopefully we can contain the flame to the other thread.
desktop-base/7.0.0~exp2 has been accepted into experimental, for testing
by y'all (and generally interested folks) for feedback and testing
before pushing to unstable.
I urge y'all to give it a try and provide feedback on issues that you
may run into.
You can overlay experimental on any unstable install, and install
desktop-base by running:
$ sudo apt-get -t experimental install desktop-base
For more information on using experimental, check out the wiki[1].
If you would care to test out the plymouth bootsplash, here's the short
version of how to get it running:
1) Install plymouth via apt ($ sudo apt-get install plymouth)
2) Set the theme to use joy' ($ sudo /usr/sbin/plymouth-set-default-theme joy)
3) Edit the file /etc/default/grub, and add
"splash" to GRUB_CMDLINE_LINUX_DEFAULT
4) update your initramfs ($ sudo update-initramfs -u)
Here's the full list of changes from the version in unstable:
desktop-base (7.0.0~exp2) experimental; urgency=low
* Remove GConf defaults, they are not used anymore.
* Remove the GDM3 settings, since the configuration format for GDM
change again, yay.
* Add a dconf file for the new-style GDM3 configuration.
* Add a XML file describing the available resolutions for the
background (for use with GNOME).
* postinst: use a higher priority for the 1920x1080 background.
* Cleanup postinst/prerm/postrm.
* Add a new alternative: desktop-background.xml.
* Use it from the gsettings override.
* Reload gdm3 after installation/removal.
* Drop old libgnome2-common hack.
* Clean up an alternative that is no longer available.
-- Josselin Mouette <joss@debian.org> Sat, 23 Jun 2012 23:28:15 +0200
desktop-base (7.0.0~exp1) experimental; urgency=low
[ Paul Tagliamonte ]
* Adding myself as a maintainer
* We've got a new theme -- joy' by Adrien Aubourg. Thanks, Adrien!
- Theme added to backgrounds.
- Theme added for Grub
- Background changed for GDM3
- Theme added for KDM & changed that to default.
- Theme added for ksplash & changed to default.
* Standards bump to 3.9.3
* Pre-Dependency added for dpkg (>= 1.15.7.2~), since we use dpkg helpers
in our preinst.
* Add in Jonathan Carter's Plymouth theme.
[ Jonathan Carter ]
* Remove splashy theme since it's no longer available in archives
[ Yves-Alexis Perez ]
* Install emblem in the correct folder.
-- Paul Tagliamonte <paultag@ubuntu.com> Sat, 23 Jun 2012 13:00:47 +0200
I thank all of you dearly for putting up with this,
Paul
[1]: http://wiki.debian.org/DebianExperimental
Release 0.9.11 of Rcpp
arrived on CRAN this morning and in
Debian later today.
This is a somewhat incremental release with a few internal improvements and
few new features. One interesting new development has been contributed by
John Chambers who is extending 'Rcpp modules' into 'Rcpp classes' which
allows R code to modify and extend C++ classes loaded via Rcpp modules; see
help(setRcppClass) for more.
This also lead to some changes in the code for loading modules which however
requires the brand-new R version 2.15.1 released today as well.
The complete NEWS entry for 0.9.11 is below; more details are in the ChangeLog file in the package and on the
Rcpp Changelog page.
0.9.11 2012-06-22
o New member function for vectors (and lists etc) containsElementNamed()
which returns a boolean indicating if the given element name is present
o Updated the Rcpp.package.skeleton() support for Rcpp modules by
carrying functions already present from the corresponding unit test
which was also slightly expanded; and added more comments to the code
o Rcpp modules can now be loaded via loadRcppModules() from .onLoad(),
or via loadModule("moduleName") from any R file
o Extended functionality to let R modify C++ clases imported via modules
documented in help(setRcppClass)
o Support compilation in Cygwin thanks to a patch by Dario Buttari
o Extensions to the Rcpp-FAQ and the Rcpp-modules vignettes
o The minium version of R is now 2.15.1 which is required for some of
the Rcpp modules support
Thanks to
CRANberries, you can also look at a
diff to the previous release 0.9.10.
As always, even fuller details are on the
Rcpp Changelog page and the
Rcpp page which also
leads to the downloads, the
browseable
doxygen docs and zip files of doxygen output for the standard formats.
A local directory has
source and documentation too.
Questions, comments etc should go to the
rcpp-devel mailing list
off the R-Forge page
Update 2: Richard and especially Moray debunked my statistics and given that they're actually on the DebConf team, they simply know it better what to look at and which numbers cannot be trusted. So look over to Moray's post for some numbers about DC11 and DC12.
You already know NTP, the protocol that allows your computers to keep an
accurate clock. Thanks to a global pool of
time servers, it is available to everyone on the Internet. This public
pool is constituted by volunteers' servers and it needs
more.So, if you
The bug webinterface of the
Ultimate Debian Database
currently knows about the following release critical bugs:
| In Total: | 1167 |
|---|---|
| Affecting Wheezy: | 771 |
| Wheezy only: | 189 |
| Remaining to be fixed in Wheezy: | 582 |
| Pending in Wheezy: | 31 |
|---|---|
| Patched in Wheezy: | 82 |
| Duplicates in Wheezy: | 57 |
| Can be fixed in a security Update: | 21 |
| Contrib or non-free in Wheezy: | 11 |
| Claimed in Wheezy: | 2 |
| Delayed in Wheezy: | 5 |
| Otherwise fixed in Wheezy: | 47 |
Wheezyreleased. However, with the view of the Release Managers, 671 need to be dealt with for the release to happen. Please see
Interpreting the release critical bug statisticsfor an explanation of the different numbers.
The D-I beta release is in preparation so we have many last minute
updates and I'm uploading gazillion of packages. Each time, I upload
one....a translator pops up and sends another update, etc. :-)
I ve begun work on desktop-base to get it ready for wheezy. As many of you know, we saw the SpaceFun theme with Squeeze, and currently Wheezy as well.
Rather then see the same theme twice, I ve taken the liberty of updating desktop-base to use the Joy theme proposed for Wheezy. My announcement can be seen on lists.debian.org, and details can be found there.
Rather then drone on, check out what s been done so far. We ll be going from this:
To:
Game on!
To continue in photography blog posts, let's document part of our last week trip around Slovakia. We've visited many nice places, starting at Mura sk planina, going trhough Slovensk r j and ending in Nizke Tatry.
All pictures are taken in Slovensk r j (Slovakian paradise), where I've really enjoyed taking photos of waterfalls and wonderful streams:
Filed under: English Photography Travelling 2 comments Flattr this!
Next.