Zlatan Todori : Net neutrality for average Joe
If you are still unsure what it means, here is perfectly simple example.
I brought a dozen cupcakes. There were 3 carrot, 3 red velvet, 2 marble,
2 peanut butter fudge swirl, and 2 of some chocolate-chocolate-chocolate
thing that I forgot the name of because it sounded so disgusting.
He had a romcom fantasy about her a year before. She did not live up to
his expectations, so things went sideways.
Now she was having a romcom fantasy all by herself, waiting patiently
for hours for him to do something in particular.
You could have graphed her hopes falling. In the end, she left dejected.
He didn't understand why. Then he left town.
He was much more excited about the cupcakes than she was.
A few months ago I decided it would be good to re-rip my CD collection,
retaining a lossless digital copy, and set about planning the project. I
then realised I hadn't the time to take the project on for the time being
and parked it, but not before figuring a few bits and pieces out.
Starting at the beginning, with ripping the CDs. The most widely used CD
ripping software on Linux systems is still cdparanoia, which is pretty good,
but it's still possible to get bad CD rips, and I've had several in a very
small sample size. On Windows systems, the recommended ripper is Exact Audio
Copy, or EAC for short. EAC calculates checksums of ripped CDs or tracks
and compares them against an online database of rips called AccurateRip. It
also calibrates your CD drive against the same database and uses the calculated
offset during the rip.
I wasn't aware of any AccurateRip-supporting rippers until recently when
Mark Brown introduced me to
morituri. I've done some
tentative experiments and it appears to be produce identical rips to EAC for
some sample CDs (with different CD reading hardware too).
Fundamentally, AccurateRip is a proprietary database, and so I think the
longer term goal in the F/OSS community should be to create an alternative,
open database of rip checksums and drive offsets. The audio community has
already been burned by the CDDB database going proprietary, but at least
we now have the far superior MusicBrainz.
It is almost exactly 1 year and a half since I came up with the idea of having a way of making backups using Rsnapshot automatically triggered by my laptop when I have the backup media connected to my laptop. This could mean connecting a USB drive directly to the laptop or mounting a NFS/sshfs share in my home network. Today I tagged Occasional Rsnapshot the v1.3.0 version, the first released version that makes sure even when you connect your backup media occasionally, your Rsnapshot backups are done if and when it makes sense to do it, according to the rsnapshot.conf file and the status of the existing backups on the backup media.
This is a tool that allows automatic backups using rsnapshot when the external backup drive or remote backup media is connected.
Although the ideal setup would be to have periodic backups on a system that is always online, this is not always possible. But when the connection is done, the backup should start fairly quickly and should respect the daily/weekly/... schedules of rsnapshot so that it accurately represents history.
In other words, if you backup to an external drive or to some network/internet connected storage that you don't expect to have always connected (which is is case with laptops) you can useoccasional_rsnapshotto make sure your data is backed up when the backup storage is connected.occasional_rsnapshotis appropriate for:The only caveat is that all of these must be mounted in the local file system tree somehow by any arbitrary tool,
- laptops backing up on:
- a NAS on the home LAN or
- a remote or an internet hosted storage location
- systems making backups online (storage mounted locally somehow)
- systems doing backups on an external drive that is not always connected to the system
occasional_rsnapshotorrsnapshotdo not care, as long as the files are mounted.
So if you find yourself in a simillar situation, this script might help you to easily do backups in spite of the occasional availability of the backup media, instead of no backups at all. You can even trigger backups semi-automatically when you remember to or decide is time to backup, by simply pulging in your USB backup HDD.
Triggering a backup should happen automatically as soon as the backup media is available, without any intervention from the user.I said.
If you get the multicast UDP stream working, please let me know, as I am curious how far the multicast stream reach. It do not make it to my home network, nor any other commercially available network in Norway that I am aware of../ffmpeg2theora.linux <OBE_gemini_URL.ts> -F 25 -x 720 -y 405 \ --deinterlace --inputfps 25 -c 1 -H 48000 --keyint 8 --buf-delay 100 \ --nosync -V 700 -o - oggfwd video.nuug.no 8000 <pw> /frikanalen.ogv
As a plus
all the code is open under GPLv3 and available on
GitHub. So if you do not like to outsource it you can still build up an instance on your own.
Since this has been a one man show for a long time most of the documentation is still in german.
Might be a pro for some but a minus for others, if you like Bloonix I guess documentation translations
or a howto in english is welcome.
Beside of that Jonny is also the upstream author of a few Perl modules like
libsys-statistics-linux-perl.
So another one has taken the bold step to base his living on free and open source software, something
that always has my admiration. Jonny, I hope you'll succeed with this step.
A coworker and I debugged a fascinating problem today.
They had a tomcat7 installation with a couple of webapps, and one of the bundled libraries was logging in German. Everything else was logging in English (the webapps themselves, and the things the other bundled libraries did).
We searched around a bit, and eventually found that the wrongly-logging library (something jaxb/jax-ws) was using, after unravelling another few layers of library bundling another library as convenience copy (gah, Java!), com.sun.xml.ws.resources.WsservletMessages which contains quite a few com.sun.istack.localization.Localizable members. Looking at the other classes in that package, in particular Localizer, showed that it defaults to the java.util.Locale.getDefault() value for the language.
Which is set from the environment.
Looking at /proc/pid-of-JVM-running-tomcat7/environ showed nothing, of course . The system locale was, properly, set to English. (We mostly use en_GB.UTF-8 for better paper sizes and the metric system (unless the person requesting the machine, or the admin creating it, still likes the system to speak German *shudder*), but that one still had en_US.UTF-8.)
Browsing the documentation for java.util.Locale proved more fruitful: it also contains a setDefault method, which sets the new default locale JVM-wide.
Turns out another of the webapps used that for some sort of internal localisation. Clearly, the containment of tomcat7 is incomplete in this case.
Documenting for the larger net, in case someone else runs into this. It s not as if things like this would be showing up in the USA, where the majority of development appears to happen.
| Lenovo X250 | 1.42kg | 12.5 | 1366 768 |
| Lenovo X1 Carbon (3rd gen) | 1.44kg | 14 | 2560 1440 |
| Dell Latitude E7250 | 1.25kg | 12.5 | 1366 768 |
| Dell XPS 13 | 1.26kg | 13.3 | 3200 1800 |
| HP EliteBook Folio 1040 G2 | 1.49kg | 14 | 1920 1080 |
| HP EliteBook Revolve 810 G3 | 1.4kg | 11.6 | 1366 768 |
libakonadi-dev but in
kdepimlibs5-dev, even if kdepimlibs5-dev does not show in apt-cache search
akonadi.
Then, kdepimlibs is built with Qt4. If your application uses Qt5 (mine was) you
need to port it back to Qt4 if you want to talk to Akonadi.
Then, kdepimlibs does not seem to support qmake and does not ship pkg-config
.pc files, and if you want to use kdepimlibs your build system needs to be
cmake. I ported by code from qmake to cmake, and now qtcreator wants me to
run cmake by hand every time I change the CMakeLists.txt file, and it stopped
allowing to add, rename or delete sources.
Finally, most of the code / build system snippets found on the internet seem
flawed in a way or another, because the build toolchain of Qt/KDE applications
has undergone several redesignins during time, and the network is littered with
examples from different eras. The way to obtain template code to start a
Qt/KDE project is to use
kapptemplate.
I have found no getting started tutorial on the internet that said "do not just
copy the snippets from here, run kapptemplate instead so you get them up to
date".
kapptemplate supports building an "Akonadi Resource" and an "Akonadi
Serializer", but it does not support generating template code for an akonadi
client. That left me with the feeling that I was dealing with some software
that wants to be developed but does not want to be used.
Anyway, now an example of how to interrogate Akonadi exists as is on the
internet. I hope that all
the tears of blood that I cried this morning have not been cried in vain.
libakonadi-dev which does not seem to have anything
to do with this.
That page mentions everything about making applications with Akonadi except how
to build them.
There is a package called kdepimlibs5-dev which looks promising: it has no
.a files but it does have haders and cmake files. However, qtcreator is
only integrated with qmake, and I would really like the handholding of an IDE
at this stage.
I put something together naively doing just what looked right, and I managed to
get an application that segfaults before main() is even called:
/*
* Copyright 2015 Enrico Zini <enrico@enricozini.org>
*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
#include <QDebug>
int main(int argc, char *argv[])
qDebug() << "BEGIN";
return 0;
QT += core gui widgets
CONFIG += c++11
TARGET = wtf
TEMPLATE = app
LIBS += -lkdecore -lakonadi-kde
SOURCES += wtf.cpp
gh-pages branch also offers a stable and performant webserver we use to deliver packages for R. A (personal) code repository on the other hand is something we implement somewhere---possibly via drat which supports local directories, possibly on a network share, as well as anywhere web-accessible, e.g. via a GitHub repository. It is a little confusing, but I will aim to make the distinction clearer.
gh-pages branch. Using the fork-and-clone approach ensures this. Otherwise, if you know your way around git you already know how to create a gh-pages branch.
Enough of the prerequisities. And on towards real fun. Let's ensure we are in the gh-pages branch:
edd@max:~/git/drat(master)$ git checkout gh-pages
Switched to branch 'gh-pages'
Your branch is up-to-date with 'origin/gh-pages'.
edd@max:~/git/drat(gh-pages)$
insertPackage(packagefile) which we show here with the optional commit=TRUE. The path to the package can be absolute are relative; the easists is often to go up one directory from the sources to where R CMD build ... has created the package file.
edd@max:~/git$ Rscript -e 'library(drat); insertPackage("drat_0.0.1.2.tar.gz", commit=TRUE)'
[gh-pages 0d2093a] adding drat_0.0.1.2.tar.gz to drat
3 files changed, 2 insertions(+), 2 deletions(-)
create mode 100644 src/contrib/drat_0.0.1.2.tar.gz
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 7.37 KiB 0 bytes/s, done.
Total 7 (delta 1), reused 0 (delta 0)
To git@github.com:eddelbuettel/drat.git
206d2fa..0d2093a gh-pages -> gh-pages
edd@max:~/git$
You can equally well run this as insertPackage("drat_0.0.1.2.tar.gz"), then inspect the repo and only then run the git commands add, commit and push. Also note that future versions of drat will most likely support git operations directly by relying on the very promising git2r package. But this just affect package internals, the user-facing call of e.g. insertPackage("drat_0.0.1.2.tar.gz", commit=TRUE) will remain unchanged.
And in a nutshell that really is all there is to it. With the newly drat-ed package pushed to your GitHub repository with a single function call), it is available via the automatically-provided gh-pages webserver access to anyone in the world. All they need to do is to point R's package management code (which is built into R itself and used for e.g._ CRAN and BioConductor R package repositories) to the new repo---and that is also just a single drat command. We showed this in the first blog post and may expand on it again in a follow-up.
So in summary, that really is all there is to it. After a one-time setup / ensuring you are on the gh-pages branch, all it takes is a single function call from the drat package to publish your package to your drat GitHub repository.
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 just had my hands on some mobile devices (a Samsung's Galaxy Tab S 8.4",
an Apple's iPad mini 3, and my no-name tablet that runs Android).
I got curious to see how the different browsers identify themselves to the
world via their User agent strings and I must say that each
browser's string reveals a lot about both the browser makers and their
philosophies regarding user privacy.
Here is a simple table that I compiled with the information that I
collected (sorry if it gets too wide):
| Device | Browser | User-Agent String |
|---|---|---|
| Samsung Galaxy Tab S | Firefox 35.0 | Mozilla/5.0 (Android; Tablet; rv:35.0) Gecko/35.0 Firefox/35.0 |
| Samsung Galaxy Tab S | Firefox 35.0.1 | Mozilla/5.0 (Android; Tablet; rv:35.0.1) Gecko/35.0.1 Firefox/35.0.1 |
| Samsung Galaxy Tab S | Android's 4.4.2 stock browser | Mozilla/5.0 (Linux; Android 4.4.2; en-gb; SAMSUNG SM-T700 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Safari/537.36 |
| Samsung Galaxy Tab S | Updated Chrome | Mozilla/5.0 (Linux; Android 4.4.2; SM-T700 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.109 Safari/537.36 |
| Vanilla tablet | Android's 4.1.1 stock browser | Mozilla/5.0 (Linux; U; Android 4.1.1; en-us; TB1010 Build/JRO03H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30 |
| Vanilla tablet | Firefox 35.0.1 | Mozilla/5.0 (Android; Tablet; rv:35.0.1) Gecko/35.0.1 Firefox/35.0.1 |
| iPad | Safari's from iOS 8.1.3 | Mozilla/5.0 (iPad; CPU OS 8_1_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B466 Safari/600.1.4 |
| Notebook | Debian's Iceweasel 35.0.1 | Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0 Iceweasel/35.0.1 |
SAMSUNG SM-T700 or TB1010) and even the build number (e.g.,
Build/KOT49H or Build/JRO03H)! This is super handy for malicious
websites and I would say that it leaks a lot of possibly undesired
information.
The iPad is similar, with Safari revealing the version of the iOS that it is
running. It doesn't reveal, though, the language that the user is using via
the UA string (it probably does via other HTTP fields).
Chrome is similar to the stock Android browser here, but, at least, it
doesn't reveal the language of the user. It does reveal the version of
Android, including the patch-level (that's a bit too much, IMVHO).
I would say that the winner respecting privacy of the users among the
browsers that I tested is Firefox: it conveys just the bare minimum,
not differentiating from a high-end tablet (Samsung's Galaxy Tab S with 8
cores) and a vanilla tablet (with 2 cores). Like Chrome, Firefox still
reveals a bit too much in the form of the patch-level. It should be
sufficient to say that it is version 35.0 even if the user has 35.0.1
installed.
The bonus points with Firefox is that it is also available on F-Droid, in
two versions: as Firefox itself and as Fennec.
First they came for the Socialists, and I did not speak out Because I was not a Socialist.Martin Niem ller
Then they came for the Trade Unionists, and I did not speak out
Because I was not a Trade Unionist.
Then they came for the Jews, and I did not speak out
Because I was not a Jew.
Then they came for me and there was no one left to speak for me.
"As long as people still think of people like me as "a dude in a dress" there is a lot work to do to fight transphobia and gain tolerance and acceptance."This line in Rhonda's most recent blogpost broke my heart a little, and sparked an interesting conversation with her about the (perceived?) value of clothes, respect and identity. So, guess what? Here's a pic of a "girl in trousers". Just because.
(Sorry for the quality: couldn't find my camera and had to use a phone. Also, I don't own a binder, so I used a very light binding)
$ time cme check dpkg
Using Dpkg
loading data
Reading package lists... Done
Building dependency tree
Reading state information... Done
checking data
check done
real 0m10.235s$ time cme check dpkg
Using Dpkg
loading data
Reading package lists... Done
Building dependency tree
Reading state information... Done
checking data
check done
real 0m1.565s
Over the last few days I put together a new package RcppAPT which interfaces the C++ library behind the awesome apt, apt-get, apt-cache, ... commands and their GUI-based brethren.
The package currently implements two functions which permit search for package information via a regular expression, as well as a (vectorised) package name-based check. More to come, and contributions would be very welcome.
A few examples just to illustrate follow.
R> hasPackages(c("r-cran-rcpp", "r-cran-rcppapt"))
r-cran-rcpp r-cran-rcppapt
TRUE FALSE
This shows that Rcpp is (of course) available as a binary, but this (very new) package is (unsurprisingly) not yet available pre-built.
We can search by regular expression:
R> library(RcppAPT)
R> getPackages("^r-base-c.")
Package Installed Section
1 r-base-core-dbg 3.1.2-1utopic0 universe/math
2 r-base-core-dbg <NA> universe/math
3 r-base-core 3.1.2-1utopic0 universe/math
4 r-base-core <NA> universe/math
R>
With the (default) expression catching everything, we see a lot of packages:
R> dim(getPackages())
[1] 104431 3
R>
A bit more information is on the package page here as well as as the GitHub repo.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
Next.