Daniel Pocock: Test numbers for SIP and WebRTC
Contributor License Agreements ("CLAs") are a mechanism for an upstream software developer to insist that contributors grant the upstream developer some additional set of rights. These range in extent - some CLAs require that the contributor reassign their copyright over the contribution to the upstream developer, some merely provide the upstream developer with a grant of rights that aren't explicit in the software license (such as an explicit patent grant for a contribution licensed under a BSD-style license).
A new major release 0.4.0 of
RProtoBuf,
is now on CRAN.
RProtoBuf
provides GNU R
bindings for the
Google Protocol Buffers ("Protobuf")
data encoding
library used and released by Google, and deployed as a language and
operating-system agnostic protocol by numerous projects.
With this release, we are welcoming
Jeroen Ooms
to the team. Jeroen had already worked on some RProtoBuf extensions in the
context of his OpenCPU project; we have now
integrated those Protocol Buffers functions. And Jeroen pushed all the right buttons to
finally get RProtoBuf built on everybody's least-favourite operating system
by provding a static library for use by
win-builder and
CRAN.
Murray once again did a lot of work on internals.
His use of the LLVM tool llvm-format was particular helpful to
make our coding style a little more consistent.
The complete NEWS file entry for this release follows:
Changes in RProtoBuf version 0.4.0 (2014-01-14)CRANberries also provides a diff to the previous release 0.3.2. More information is at the RProtoBuf page which has a draft package vignette, a 'quick' overview vignette and a unit test summary vignette. Questions, comments etc should go to the rprotobuf mailing list off the RProtoBuf page at R-Forge.
- Changes to support CRAN builds for MS Windows.
- Added functions
serialize_pb,unserialize_pb, andcan_serialize_pbplus documentation from Jeroen Ooms RProtoBufUtils package.- New dir
inst/pythonwith some Python examples.- Added Jeroen Ooms as author.
- Vignettes have been converted to the R 3.0.0 or later use of external vignette builders, no longer need a
Makefile- Added missing methods to dollar completion list for Message, Descriptor, EnumValueDescriptor, and FileDescriptor classes.
- Add missing export for
.DollarNamesEnumValueDescriptor to allow completion on that class.- Add more than 15 additional pages to the main Intro vignette documenting better all of the S4 classes implemented by RProtoBuf, updating the type mapping tables to take into account 64-bit support, and documenting advanced features such as Extensions.
- Added better error checking in EnumDescriptors to catch the case when wrong types are provided.
- Updated the FileDescriptor
name()method to accept a boolean for full paths just like the genericname()method.- Correct a bug that incorrectly dispatched
as.character()whenas.list()was called on Descriptor objects.- Update FileDescriptor
$dispatch to work properly for the names of fields defined in the FileDescriptor, instead of just returningNULLeven for types returned by$completion.- Added a reservation for extension fields in the example tutorial.Person schema.
- Support setting int32 fields with character representations and raise an R-level
stop()error if the provided string can not be parsed as a 32-bit integer, rather than crashing the R instance.- Update the project TODO file.
- Add better documentation and tests for all of the above.
- Corrected the handling of uint32 and fixed32 types in protocol buffers to ensure that they work with numbers as large as 2^32 - 1, which is larger than an integer can hold in R since R does not have an unsigned integer class. These values are stored as doubles internally now to avoid losing precision.
- Added unit tests to verify behavior of RProtoBuf with extreme values for uint32 types.
- Removed old exception handling code and instead rely on the more modern Rcpp::stop method maintained in Rcpp.
- Add better error messages when setting a repeated field of messages to inform the user which element index was of the wrong type and what the expected type was.
- Add an optional 'partial' argument to readASCII allowing uninitialized message fragments to be read in.
- (internal) Added const qualifiers in more places throughout the C++ code for type safety.
- (internal) Standardize coding conventions of the C++ files and run them through clang-format for consistency. A STYLE file has been submitted to R-Forge with details about the coding standards and how they are enforced with Emacs and clang-format.
- Applied changes suggested by Kevin Ushey to the
S4class handling to support both the currently released Rcpp as well as the currently pending next version.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
| Third-party library | Library itself | Drupal module, packaged |
|---|---|---|
| JSCommunicator | libjs-jscommunicator | drupal7-mod-jscommunicator |
| JsSIP | libjs-jssip | drupal7-mod-jssip |
apt-get install drupal7-mod-jscommunicatorand the apt-get utility will install Apache, MySQL, Drupal itself, the libraries module, all the related JavaScript libraries and the final Drupal module of JSCommunicator itself. It really is that easy. Here is an example of the output displayed by the command on a freshly built server:
# apt-get -d install drupal7-mod-jscommunicator Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2 apache2-bin apache2-data curl dbconfig-common drupal7 drupal7-mod-jssip drupal7-mod-libraries fontconfig-config fonts-dejavu-core javascript-common libaio1 libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-extract-perl libc6 libcurl3 libdbd-mysql-perl libdbi-perl libedit2 libfontconfig1 libgcrypt11 libgd3 libhtml-template-perl libjbig0 libjpeg8 libjs-jssip libjson-c2 liblocale-gettext-perl liblog-message-simple-perl liblua5.1-0 libmodule-pluggable-perl libmysqlclient18 libonig2 libperl4-corelibs-perl libpng12-0 libpod-latex-perl libqdbm14 librtmp0 libssh2-1 libterm-ui-perl libtext-charwidth-perl libtext-iconv-perl libtext-soundex-perl libtiff5 libuuid-perl libvpx1 libxml2 libxpm4 locales mysql-client mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 perl perl-base perl-modules php5 php5-cli php5-common php5-gd php5-json php5-mysql php5-readline ssl-cert wwwconfig-common Suggested packages: apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils php-pear glibc-doc libclone-perl libmldbm-perl libnet-daemon-perl libplrpc-perl libsql-statement-perl rng-tools libgd-tools libipc-sharedcache-perl libterm-readkey-perl tinyca perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl make libb-lint-perl libcpanplus-dist-build-perl libcpanplus-perl libfile-checktree-perl liblog-message-perl libobject-accessor-perl php5-user-cache openssl-blacklist postgresql-client The following NEW packages will be installed: apache2 apache2-bin apache2-data curl dbconfig-common drupal7 drupal7-mod-jscommunicator drupal7-mod-jssip drupal7-mod-libraries fontconfig-config fonts-dejavu-core javascript-common libaio1 libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libarchive-extract-perl libcurl3 libdbd-mysql-perl libdbi-perl libfontconfig1 libgd3 libhtml-template-perl libjbig0 libjpeg8 libjs-jssip libjson-c2 liblog-message-simple-perl liblua5.1-0 libmodule-pluggable-perl libmysqlclient18 libonig2 libperl4-corelibs-perl libpng12-0 libpod-latex-perl libqdbm14 librtmp0 libssh2-1 libterm-ui-perl libtext-soundex-perl libtiff5 libvpx1 libxpm4 mysql-client mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5 php5 php5-cli php5-common php5-gd php5-json php5-mysql php5-readline ssl-cert wwwconfig-common The following packages will be upgraded: libc6 libedit2 libgcrypt11 liblocale-gettext-perl libtext-charwidth-perl libtext-iconv-perl libuuid-perl libxml2 locales perl perl-base perl-modules 12 upgraded, 60 newly installed, 0 to remove and 222 not upgraded. Need to get 37.2 MB of archives. After this operation, 152 MB of additional disk space will be used. Do you want to continue [Y/n]?Libraries API in Drupal 8 Contrary to an earlier version of this blog, the libraries module is not joining the core in Drupal 8 however its use has been strongly encouraged for any new modules submitted through the Drupal community approval process. This means there will be further opportunity for Drupal users to consolidate on their use of Debian to completely automate the management of all third-party libraries and modules throughout their Drupal system(s).
Benefits for the wider free software community
This means packages providing SIP (and soon XMPP/Jabber) will hopefully be under much more scrutiny from developers in the lead up to the next major Debian release, codename jessie, expected early 2015.
Although the user guide provides setup details for several packages and softphones, including Jitsi and Lumicall, the developers of the core SIP server have not indicated that any specific package should be preferred and it is up to each user to choose the client that best suits their needs.
Who will be next?
Discussion has already started about replicating this technology for the Fedora community.
Users of the Lumicall softphone on Android are already able to make federated SIP calls, so just dialing username@debian.org from Lumicall is sufficient to make a call to a Debian Developer and see federated SIP working.
People who want to try SIP federation for their workplace or any other organisation are encouraged to see the Real-time Communications (RTC) Quick start guide
Now it is time for me to go silent for a while, and not talk about jobs, unemployment, or puppies.
This past week has also been full of software releases. Some of the public ones include:
Somalia's chief exports appear to be morally-ambiguous Salon articles about piracy and sophomoric evidence against libertarianism. However, it is the former topic that Captain Phillips concerns itself with, inspired by the hijacking of the Maersk Alabama container ship in 2009.
What is truth? In the end, Captain Phillips does not rise above Pontius Pilate in providing an answer, but it certainly tries using more refined instruments than irony or leaden sarcasm.
This motif pervades the film. Obviously, it is based on a "true story" and brings aboard that baggage, but it also permeates the plot in a much deeper sense. For example, Phillips and the US Navy lie almost compulsively to the pirates, whilst the pirates only really lie once (where they put Phillips in greater danger).
Notice further that Phillips only starts to tell the truth when he thinks all hope is lost. These telling observations become even more fascinating when you realise that they must be based on the testimony of the, well, liars. Clearly, deception is a weapon to be monopolised and there are few limits on what good guys can or should lie about if they believe they can save lives.
Even Phillip's nickname ("Irish") is a falsehood he straight-up admits he is an American citizen.
The racist idea that Africans prefer an AK-47 rotated about the Z-axis is socially constructed.
The drone footage: I'd love to write an essay about how Call of Duty might have influenced (or even be) cinema.
Somalia's chief exports appear to be morally-ambiguous Salon articles about piracy and sophomoric evidence against libertarianism. However, it is the former topic that Captain Phillips concerns itself with, inspired by the hijacking of the Maersk Alabama container ship in 2009.
What is truth? In the end, Captain Phillips does not rise above Pontius Pilate in providing an answer, but it certainly tries using more refined instruments than irony or leaden sarcasm.
This motif pervades the film. Obviously, it is based on a "true story" and brings aboard all that well-travelled baggage, but it also permeates the plot in a much deeper sense. For example, Phillips and the US Navy lie almost compulsively to the pirates, whilst the pirates only really lie once where they put Phillips in greater danger.
Notice further that Phillips only starts to tell the truth when he thinks all hope is lost. These telling observations become even more fascinating when you realise that they must be based on the testimony of the, well, liars. Clearly, deception is a weapon to be monopolised and there are few limits on what good guys can or should lie about if they believe they can save lives.
Even Phillip's nickname ("Irish") is a falsehood he straight-up admits he is an American citizen.
The racist idea that Africans prefer a AK-47 rotated about the Z-axis is socially constructed.
The drone footage: I'd love to read (or write) an essay about how Call of Duty might have influenced cinema.
| Attachment | Size |
|---|---|
| 59.66 KB |
$ dig -t naptr debian.org ;; QUESTION SECTION: ;debian.org. IN NAPTR ;; ANSWER SECTION: debian.org. 3600 IN NAPTR 10 0 "s" "SIPS+D2T" "" _sips._tcp.debian.org.If you would like to find out more, please come to the mini DebConf in Paris this weekend where the debian.org federated SIP deployment will be discussed, along with some of the benefits it brings for both human and automated communication. There are also many other great talks on the schedule and it looks like it will be a fun weekend. Some details have also been published on the Debian wiki recently.
Thanks to all those who provided comments, especially Philipp Kern who found the paper form that reveals how bad the online standing order form really is, it is quite possible that was a factor in convincing PostFinance to take some responsibility.
It is also possible that the contact center staff were not even aware of the way the standing order form is viewed by the customer, they may have been looking at some alternative form that had been generated by regurgitating the user input. These are just some examples of the problems that occur (and require thorough and professional analysis) when business processes go online and nobody has a paper trail to prove what they really meant.
I immediately sent them an email to alert them to the fault and ask for the duplicate transaction to be corrected. Normally, when a company makes a mistake, it would be fixed within a couple of days and certainly never reach my blog.
Instead of getting a helpful reply, I was astonished to receive this:
There has been a misunderstanding when you have set up your standing order.
You selected "First execution" December 30, 2013 and then "monthly execution" 31. The system has followed your instruction and it results a double execution December 30 and 31.
Unfortunately, we are not able to return you the amount.Great, apparently it is all my own fault. I thought "monthly" would mean one payment in each one month but apparently not everybody uses the same definition of monthly. (Actually, banks do have systems such as the 360 day calendar but that is another story). So let's look at these faulty instructions I supposedly gave. I immediately went back to the standing order page to take a screenshot. I even compared the page in English (my default language, which they are kind enough to let me use) and French (one of the four official languages of the Swiss Confederation) and I found they say much the same thing:
Note: exact amounts and account numbers concealed
The form is relatively clear: I authorised a monthly payment (Periodicite: mensuel) with the first (Premiere) payment on 30.12.2013 and then, or so I believed (and still do) a following payment (ensuite) on the 31st of each month, with the last payment at the end of November, for 12 payments in total. Simple, right? Where it says ensuite le 31, I sincerely believe that means the second payment is on 31 January, but Postfinance seem to be arguing that I meant the 31 December: just one day, rather than one month, after the first payment.
Delaying tactics
I replied to their email, telling them explicitly that I had authorized a monthly payment only and demanding the immediate return of the duplicate payment.
When I got their next reply, I didn't know what to think:
We are pleased to do the necessary to revoke the transfer to SWICA. This will take at least two weeks.On the one hand, it appears they are now starting to accept they may have made a blunder. But two more weeks? This was already 10 days after the money went missing. Do they even know what is wrong with their system? It doesn't give me confidence. I wrote back again and insisted that this is their error and that an immediate correction is required. Pass the buck, take three Today, another reply came back. After almost 14 days, I've now got three fob-off excuse mails and none of my money returned:
We did the request at SWICA to send back the money on your account on the 8th January 2014. The decision will be taken by them if they agree to send back this amount.
Unfortunately, we cannot do more except waiting their answer. You can call them and explain them the situation. With your call, maybe the reimbursement could be faster.Why is it in the hands of the health insurance company? It is not their fault that Postfinance has a problem processing standing orders. Why do I have to waste my time chasing people, will I get compensation for that? Am I the only victim? With many people configuring their new health insurance payments at this time of the year, I can imagine that there may be other victims of this fault too. Are they all being fobbed off with these excuses? Some may not even realize if they don't check their account closely. What next? Sure, maybe I can just cancel the next health insurance payment: but why should I have that inconvenience? What exactly was I supposed to put on that form to not make this mistake they suggest I made? If I cancel the next payment like they suggest and then set up the payment again from March, how can I be sure the same duplication won't happen again?
Using customers as unpaid QA testers
Many leading financial organisations have experienced teams of developers, QA testers, and comprehensive regime of simulation/testing with paid participants to ensure their systems are reliable and as friendly and accurate as possible. Here, it feels like PostFinance has skipped all that, deploying a form that is ambiguous at best and they are using real customers like me to test the system and report the bugs.
Normally organisations pay me for doing that very same task as part of my job as a software engineer. Not only have Postfinance taken almost 200 CHF of my money, but they have wasted my time with their strategy of fobbing me off and at the same time they are probably sending my feedback to their developers instead of paying a QA tester to check their systems.
You be the judge
What is your opinion?
I have written a number of scripts to create Debian foreign architecture
(mostly armel and armhf) rootfs images for SD cards or NAND flashing. I started
with putting Debian on my Openmoko gta01 and gta02 and continued with
devices like the qi nanonote, a marvel kirkwood based device, the Always
Innovating Touchbook (close to the Beagleboard), the Notion Ink Adam and
most recently the Golden Delicious gta04. Once it has been manufactured, I
will surely also get my hands dirty with the Neo900 whose creators are
currently looking for potential donors/customers to increase the size of
the first batch and get the price per unit further down.
Creating a Debian rootfs disk image for all these devices basically follows the
same steps:
/ partition into a directorydebootstrap or multistrap to extract a selection of armel or armhf packages into the directory/usr/bin/qemu-arm-static for qemu user mode emulationdpkg --configure -afakeroot+fakechroot and after some initial troubles I
managed to build a foreign architecture rootfs without needing root
priviliges for steps two, three and four. I wrote about my solution which
still included some workarounds in another article here. These
workarounds were soon not needed anymore as upstream fixed the outstanding
issues. As a result I wrote the polystrap tool which combines
multistrap, fakeroot, fakechroot and qemu user mode emulation. Recently
I managed to integrate proot support in a separate branch of
polystrap.
Last year I got the LEGO ev3 robot for christmas and since it runs Linux I also
wanted to put Debian on it by following the instructions given by the ev3dev
project. Even though ev3dev calls itself a "distribution" it only deviates
from pure Debian by its kernel, some configuration options and its initial
package selection. Otherwise it's vanilla Debian. The project also supplies
some multistrap based scripts which create the rootfs and then
partition and populate an SD card. All of this is of course done as the
superuser.
While the creation of the file/directory structure of the foreign Debian armel
rootfs can by now easily be done without superuser priviliges by running
multistrap under fakeroot/fakechroot/proot, creating the SD card image
still seems to be a bit more tricky. While it is no problem to write a
partition table to a regular file, it turned out to be tricky to mount these
partition because tools like kpartx and losetup require superuser
permissions. Tools like mkfs.ext3 and fuse-ext2 which otherwise would be
able to work on a regular file without superuser privileges do not seem to
allow to specify the required offsets that the partitions have within the disk
image. With fuseloop there exists a tool which allows to "loop-mount"
parts of a file in userspace to a new file and thus allows tools like
mkfs.ext3 and fuse-ext2 to work as they normally do. But fuseloop is not
packaged for Debian yet and thus also not in the current Debian stable. An
obvious workaround would be to create and fill each partition in a separate
file and concatenate them together. But why do I have to write my data twice
just because I do not want to become the superuser? Even worse: because
parted refuses to write a partition table to a file which is too small to
hold the specified partitions, one spends twice the disk space of the final
image: the image with the partition table plus the image with the main
partition's content.
So lets summarize: a bootable foreign architecture SD card disk image is
nothing else than a regular file representing the contents of the SD card as a
block device. This disk image is created in my home directory and given enough
free disk space there is nothing stopping me from writing any possible
permutation of bits to that file. Obviously I'm interested in a permutation
representing a valid partition table and file systems with sensible content.
Why do I need superuser privileges to generate such a sensible permutation of
bits?
Gladly it seems that the (at least in my opinion) hardest part of faking chroot
and executing foreign architecture package maintainer scripts is already
possible without superuser privileges by using fakeroot and fakechroot or
proot together with qemu user mode emulation. But then there is still the
blocker of creating the disk image itself through some user mode loop mounting
of a filesystem occupying a virtual "partition" in the disk image.
Why has all this only become available so very recently and still requires a
number of workarounds to fully work in userspace? There exists a surprising
amount of scripts which wrap debootstrap/multistrap. Most of them require
superuser privileges. Does everybody just accept that they have to put a sudo
in front of every invocation and hope for the best? While this might be okay
for well tested code like debootstrap and multistrap the countless wrapper
scripts might accidentally (be it a bug in the code or a typo in the given
command line arguments) write to your primary hard disk instead of your SD
card. Such behavior can easily be mitigated by not executing any such script
with superuser privileges in the first place.
Operations like loop mounting affect the whole system. Why do I have to touch
anything outside of my home directory (/dev/loop in this case) to populate a
file in it with some meaningful bits? Virtualization is no option because every
virtualization solution again requires root privileges.
One might argue that a number of solutions just require some initial setup by
root to then later be used by a regular user (for example /etc/fstab
configuration or the schroot approach). But then again: why do I have to
write anything outside of my home directory (even if it is only once) to be
able to write something meaningful to a file in it?
The latter approach also does not work if one cannot become root in the first
place or is limited by a virtualized environment. Imagine you are trying to
build a Debian rootfs on a machine where you just have a regular user account.
Or a situation I was recently in: I had a virtual server which denied me
operations like loop mounting.
Given all these downsides, why is it still so common to just assume that one is
able and willing to use sudo and be done with it in most cases?
I really wonder why technologies like fakeroot and fakechroot have only
been developed this late. Has this problem not been around since the earliest
days of Linux/Unix?
Am I missing something and rambling around for nothing? Is this idea a lost
cause or something that is worth spending time and energy on to extend and fix
the required tools?
and now this is too:
and here it is in HTML
| Series: | Sarah Beauhall #2 |
| Publisher: | Tor |
| Copyright: | July 2011 |
| ISBN: | 0-7653-2907-7 |
| Format: | Trade paperback |
| Pages: | 412 |
Qt and KDE will be present at FOSDEM, the largest open-source event in Europe. One more year, we will be sharing the Desktops DevRoom with Gnome, Unity, Enlightenment, LXQt and Hawaii (a Qt Quick desktop environment). We recently published the schedule for the devroom, which will be also available in the printed booklet available at the front desk.
This is my monthly summary of my free software related activities. If you re among the people who made a donation to support my work (147.56 , thanks everybody!), then you can learn how I spent your money. Otherwise it s just an interesting status update on my various projects.
The Debian Administrator s Handbook
I spent a good chunk of December on the book. First finalizing the English version and getting it out (BTW, just for the launch, there s a 10% discount on the paperback that lasts only until January 9th!). Then working on updating the French translation. Eyrolles will publish a new edition of the French book based on this translation. Expect some further news about this during January!
Debian France
I contributed to many discussions within Debian France.
Starting with a complaint that most events are organized in Paris, I proposed to map the location of Debian France members. We added new fields in the membership management page so that members can add their GPS coordinates and Fr d ric Decou made some experiments with Openstreetmap. Someone else (Kiriarat) volunteered to write the required glue code. A manual map is currently maintained on the website.
In the discussions about the setup of the Debian France shop, I suggested to update our logo with a nicer looking one. We got a few suggestions and after further discussions with Alexandre Delano and Sylvestre Ledru, we organized a small contest to entice designers to submit a logo proposal to us (the winner earns a set of Debian goodies). We got 46 proposals (see my favorite on the right)! The board is currently pre-selecting the logos and setting up the final vote for our members. The winner shall be announced at the end of the upcoming mini-debconf in Paris.
I also continued the work to finalize new bylaws and new internal rules. They shall be adopted during the next general assembly which will happen during the mini-debconf.
Misc Debian Work
WordPress maintenance. I mentored Pablo Vasquez to do his first small contribution to the WordPress packaging. I really appreciate this but he s not yet ready to assume maintenance of a big package like WordPress on his own. I got multiple other offers of help and pinged them all while filing #733726 to coordinate the work on the new upstream version. But I got no reply No comment Liked this article? Click here. My blog is Flattr-enabled.
Next.