libraw. Now I really feel even more
strongly for the Debian policy section 4.13 which states that
Debian packages should not ship with copies of other packages code. It
made it really hard to figure out which packages were vulnerable,
especially because it was hard to figure out which versions of
libraw/dcraw were actually vulnerable to the bug, but also just plain
figure out which packages were copying code from libraw. I wish I had
found out about secure-testing/data/embedded-code-copies
earlier... Still, it was interesting to get familiar with
codesearch.debian.net to try to find copies of the vulnerable
code, which was not working so well. Kudos to darktable 2.0 for
getting rid of their embedded copy of libraw, by the way - it made it
completely not vulnerable to the issue, the versions in stretch and
sid not having the code at all and older versions having
non-vulnerable copies of the code.
virt-manager
would just fail on startup with an error saying interface mtu value
is improper, which is a very unhelpful error message (what is a
proper value??) - and, for the record, the MTU on eth0 and wlan0
is the fairly standard 1500, while lo is at 65536 bytes, nothing
unusual there as far as I know.
Then the next problem was actually running a VM - I still somewhat
expected to be able to boot off a chroot, something I should
definitely forget about it seems like (boot loader missing? not
sure). I ended up calling virt-install with the live ISO image I was
previously using:
virt-install --virt-type kvm --name squeeze-amd64 --memory 512 --cdrom ~/iso/Debian/cdimage.debian.org_mirror_cdimage_archive_6.0.10_live_amd64_iso_hybrid_debian_live_6.0.10_amd64_gnome_desktop.iso --disk size=4 --os-variant debiansqueeze
At least now I have an installed squeeze VM, something I didn't get to
do in Virtualbox (mostly because I didn't want to wait through the
install, because it was so slow).
Finally, I still have trouble getting a commandline console on the VM:
somehow, running virtsh console squeeze-amd64 doesn't give me a
login terminal, and worse, it actually freezes the terminal that I
can actually get on virt-viewer squeeze-amd64, which definitely
sounds like a bug.
I documented a bit more of that setup in the Debian wiki KVM page
so hopefully this will be useful for others.
41M 2004
363M 2005
937M 2006
2,2G 2007
894M 2008
800M 2009
1,8G 2010
1,4G 2011
9,8G 2012
31G 2013
26G 2014
9,8G 2015
The drop in 2015 is mostly due to me taking less pictures in the last
year, for some reason...
[text](link) which seems more natural at
first, but then the formatting looks messier, as paragraph wrapping is
all off because of the long URLs. So I always ended up converting
those links, which was a painful series of keystrokes.
So I made a macro, and while I'm a it, why not rewrite it as a lisp
function. Twice.
Then I was told by the markdown-mode.el developers that they had
already fixed that (in the 2.1 version, not in Debian jessie) and
that the C-c C-a r key binding actually recognized existing links and
conveniently converted them.
I documented my adventures in bug #94, but it seems I wrote this
code for nothing else than re-learning Emacs lisp, which was actually
quite fun.
.txt file that i rename to .mdwn.
I would then have to do:
M-x rename-file <ret> newfile
M-x rename-buffer <ret> newfile
C-x C-s <ret> newfile
Really annoying.
Turns out that set-visited-file-name actually does most of the job,
but doesn't actually rename the file, which is really silly. So I
wrote this small function instead:
(defun rename-file-and-buffer (newfname)
"combine rename-file and rename-buffer
set-visited-file-name does most of the job, but unfortunately
doesn't actually rename the file. rename-file does that, but
doesn't rename the buffer. rename-buffer only renames the buffer,
which is pretty pointless.
only operates on current buffer because set-visited-file-name
also does so and we don't bother doing excursions around.
"
(interactive "GRename file and bufer: ")
(let ((oldfname (buffer-file-name)))
(set-visited-file-name newfname nil t)
(rename-file oldfname newfname)
)
)
Not bound to any key, really trivial, but doing this without that
function is really non-trivial, especially since
set-visited-file-name needs special arguments to not mark the file
as modified.
+S ("secure
channel" flag) where all channels are secure by default, and you
need to deliberately mark a channel as insecure with the +U flag
if you actually want to allow users on an clear-text connection to
join the channel. A transition mechanism is also
proposed.
Before the rest of the family was up, I took a brief excursion to explore the first kilometre of the Bluff Trail and check out conditions. I turned at the ridge, satisfied I had seen enough to give an idea of what it s like out there, and then walked back the four kilometres home on the BLT Trail.
I saw three joggers and their three dogs just before I exited the Bluff Trail on the way back, and later, two young men on the BLT with day packs approaching. The parking lot had gained two more cars for a total of three as I headed home. Exercising appropriate caution and judgement, the first loop is beautiful and rewarding, and I m not alone in feeling the draw of its delights this crisp morning.
Click the first photo below to start the slideshow.
Click to start the slideshow
At Collabora, we use SparkleShare to store all sorts of internal documents, and it s being used by users not
familiar with command line interfaces too. Unfortunately, the version we recently had
in Debian had a couple of very annoying bugs, making it a great pain to use it: it would not notice edits in
local files, or not notice new commits being pushed to the server, and that led to individual users edits
being lost sometimes. Not cool, especially when the document has to be sent to the customer in a couple of
minutes.
The new versions, 1.4 (and recently released 1.5) was reported as being much better and also fixing some crashes,
but it also used GTK+ 3 and some libraries not yet packaged for Debian. Thanh Tung Nguyen
packaged these packages (and a newer SparkleShare) for Ubuntu and published them in his PPA, but they required some work to be fit for Debian.
I have never touched Mono packages before in my life, so I had to
learn a lot. Some time was spent talking to upstream about fixing
their copyright statements (they had none in the code, and only
one author was mentioned in configure.ac, and nowhere else in the
source), a bit more time went into adjusting and updating the patches
to the current source code version. Then, of course, waiting the
packages to go through NEW. Fixing parallel build issues,
waiting for buildds to all build dependencies for at least one architecture
But then, finally, on 19th of January I had the updated SparkleShare
in Debian.
As you may have already guessed, this blog post has been sponsored by
Collabora, the first of my employers to
This post was written by Dirk Eddelbuettel and Christoph Sax and will be posted on both author's respective blogs. The seasonal package by Christoph Sax brings a very featureful and expressive interface for working with seasonal data to the R environment. It uses the standard tool of the trade: X-13ARIMA-SEATS. This powerful program is provided by the statisticians of the US Census Bureau based on their earlier work (named X-11 and X-12-ARIMA) as well as the TRAMO/SEATS program by the Bank of Spain. X-13ARIMA-SEATS is probably the best known tool for de-seasonalization of timeseries, and used by statistical offices around the world. Sadly, it also has a steep learning curve. One interacts with a basic command-line tool which users have to download, install and properly reference (by environment variables or related means). Each model specification has to be prepared in a special 'spec' file that uses its own, cumbersome syntax. As seasonal provides all the required functionality to use X-13ARIMA-SEATS from R --- see the very nice seasonal demo site --- it still required the user to manually deal with the X-13ARIMA-SEATS installation. So we decided to do something about this. A pair of GitHub repositories provide both the underlying binary in a per-operating system form (see x13prebuilt) as well as a ready-to- use R package (see x13binary) which uses the former to provide binaries for R. And the latter is now on CRAN as package x13binary ready to be used on Windows, OS-X or Linux. And the seasonal package (in version 1.2.0 -- now on CRAN -- or later) automatically makes use of it. Installing seasaonal and x13binary in R is now as easy as:
install.packages("seasonal")
which opens the door for effortless deployment of powerful deasonalization. By default, the principal function of the package employs a number of automated techniques that work well in most circumstances. For example, the following code produces a seasonal adjustment of the latest data of US retail sales (by the Census Bureau) downloaded from Quandl:
library(seasonal)
library(Quandl) ## not needed for seasonal but has some niceties for Quandl data
rs <- Quandl(code="USCENSUS/BI_MARTS_44000_SM", type="ts")/1e3
m1 <- seas(rs)
plot(m1, main = "Retail Trade: U.S. Total Sales", ylab = "USD (in Billions)")
This tests for log-transformation, performs an automated ARIMA model search, applies outlier detection, tests and adjusts for trading day and easter effects, and invokes the SEATS method to perform seasonal adjustment. And this is how the adjusted series looks like:
xp <- Quandl(code="FRED/VALEXPCNM052N", type="ts")/1e9
m2 <- seas(window(xp, start = 2000),
xreg = cbind(genhol(cny, start = -7, end = -1, center = "calendar"),
genhol(cny, start = 0, end = 7, center = "calendar"),
genhol(cny, start = 8, end = 21, center = "calendar")
),
regression.aictest = c("td", "user"),
regression.usertype = "holiday")
plot(m2, main = "Goods, Value of Exports for China", ylab = "USD (in Billions)")
which generates the following chart demonstrating a recent flattening in export activity measured in USD.
X-13ARIMA-SEATS is, but also just how easy it is to use X-13ARIMA-SEATS from R now that we provide the x13binary package automating its installation.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
#ooni IRC channel. Tor also works fine, and could be a great way
to avoid the global surveillance system described later in this
article.
Nevertheless, it still remains to be seen how the internet is censored
in the "real" Cuban internet, outside of the tourist designated
areas - hopefully future visitors or locals can expand on this using
the tools mentioned above, using the regular internet.
Usual care should be taken when using any workaround tools, mentioned
in this post or not, as different regimes over the world have accused,
detained, tortured and killed sometimes for the mere fact of using or
distributing circumvention tools. For example, a Russian developer
was arrested and detained in 2001 by United States' FBI for
exposing vulnerabilities in the Adobe e-books copy protection
mechanisms. Similarly, people distributing Tor and other tools have
been arrested during the period prior to the revolution in Tunisia.
--- 10.0.0.1 ping statistics ---
163 packets transmitted, 31 received, 80% packet loss, time 162391ms
rtt min/avg/max/mdev = 133.700/2669.535/64188.027/11257.336 ms, pipe 65
Still, it allowed me to login to my home server through SSH using
Mosh to workaround the reliability issues.
Every once in a while, mosh would get stuck and keep on trying to send
packets to probe the server, which would clog the connection even
more. So I regularly had to restart the whole stack using these
commands:
killall iodine # stop DNS tunnel
nmcli n off # turn off wifi to change MAC address
macchanger -A wlan0 # change MAC address
nmcli n on # turn wifi back on
sleep 3 # wait for wifi to settle
iodine-client-start # restart DNS tunnel
The Koumbit Wiki has good instructions on
how to setup a DNS tunnel. I am wondering if such a public service
could be of use for Cubans, although I am not sure how it could be
deployed only for Cubans, and what kind of traffic it could
support... The fact is that iodine does require a server to
operate, and that server must be run on the outside of the censored
perimeter, something that Cubans may not be able to afford in the
first place.
Another possible way to save money with the captive portal would be to
write something that automates connecting and disconnecting from the
portal. You would feed that program a list of credentials and it would
connect to the portal only on demand, and disconnect as soon as no
traffic goes through. There are details on the implementation of the
captive portal below that may help future endeavours in that field.
Wifi_Memories_Jibacoa which, for anyone that cares to research, will
give them a location of about 20 square meters where I was located
when connected (there is only one access point in the whole hotel).
Finally, the central portal also knows my MAC address,
a unique identifier for the computer I am using which also reveals
which brand of computer I am using (Mac, Lenovo, etc). While this
address can be changed, very few people know that, let alone how.
This led me to question whether I would be allowed back in Cuba (or
even allowed out!) after publishing this blog post, as it is obvious
that I can be easily identified based on the time this article was
published, my name and other details. Hopefully the Cuban government
will either not notice or not care, but this can be a tricky
situation, obviously. I have heard that Cuban prisons are not the best
hangout place in Cuba, to say the least...
[1034]anarcat@angela:cuba$ speedtest
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Empresa de Telecomunicaciones de Cuba (152.206.92.146)...
Selecting best server based on latency...
Hosted by LIME (George Town) [391.78 km]: 317.546 ms
Testing download speed........................................
Download: 1.01 Mbits/s
Testing upload speed..................................................
Upload: 1.00 Mbits/s
Latency to the rest of the world is of couse slow:
--- koumbit.org ping statistics ---
122 packets transmitted, 120 received, 1,64% packet loss, time 18731,6ms
rtt min/avg/max/sdev = 127,457/156,097/725,211/94,688 ms
--- google.com ping statistics ---
122 packets transmitted, 121 received, 0,82% packet loss, time 19371,4ms
rtt min/avg/max/sdev = 132,517/160,095/724,971/93,273 ms
--- redcta.org.ar ping statistics ---
122 packets transmitted, 120 received, 1,64% packet loss, time 40748,6ms
rtt min/avg/max/sdev = 303,035/339,572/965,092/97,503 ms
--- ccc.de ping statistics ---
122 packets transmitted, 72 received, 40,98% packet loss, time 19560,2ms
rtt min/avg/max/sdev = 244,266/271,670/594,104/61,933 ms
Interestingly, Koumbit is actually the closest host in the above
test. It could be that Canadian hosts are less affected by bandwidth
problems compared to US hosts because of the embargo.
traceroute to koumbit.net (199.58.80.33), 30 hops max, 60 byte packets
1 10.156.41.1 (10.156.41.1) 9.724 ms 9.472 ms 9.405 ms
2 192.168.134.137 (192.168.134.137) 16.089 ms 15.612 ms 15.509 ms
3 172.31.252.113 (172.31.252.113) 15.350 ms 15.805 ms 15.358 ms
4 pos6-0-0-agu-cr-1.mpls.enet.cu (172.31.253.197) 15.286 ms 14.832 ms 14.405 ms
5 172.31.252.29 (172.31.252.29) 13.734 ms 13.685 ms 14.485 ms
6 200.0.16.130 (200.0.16.130) 14.428 ms 11.393 ms 10.977 ms
7 200.0.16.74 (200.0.16.74) 10.738 ms 10.019 ms 10.326 ms
8 ix-11-3-1-0.tcore1.TNK-Toronto.as6453.net (64.86.33.45) 108.577 ms 108.449 ms
Let's take this apart line by line:
1 10.156.41.1 (10.156.41.1) 9.724 ms 9.472 ms 9.405 ms
This is my local gateway, probably the hotel's wifi router.
2 192.168.134.137 (192.168.134.137) 16.089 ms 15.612 ms 15.509 ms
This is likely not very far from the local gateway, probably still in
Cuba. It in one bit away from the captive portal IP address (see
below) so it is very likely related to the captive portal implementation.
3 172.31.252.113 (172.31.252.113) 15.350 ms 15.805 ms 15.358 ms
4 pos6-0-0-agu-cr-1.mpls.enet.cu (172.31.253.197) 15.286 ms 14.832 ms 14.405 ms
5 172.31.252.29 (172.31.252.29) 13.734 ms 13.685 ms 14.485 ms
All those are withing RFC 1918 space. Interestingly, the Cuban
DNS servers resolve one of those private IPs as within Cuban
space, on line #4. That line is interesting because it reveals the
potential use of MPLS.
6 200.0.16.130 (200.0.16.130) 14.428 ms 11.393 ms 10.977 ms
7 200.0.16.74 (200.0.16.74) 10.738 ms 10.019 ms 10.326 ms
Those two lines are the only ones that actually reveal that the route
belongs in Cuba at all. Both IPs are in a tiny (/24, or 256 IP
addresses) network allocated to ETECSA, the state telco
in Cuba:
inetnum: 200.0.16/24
status: allocated
aut-num: N/A
owner: EMPRESA DE TELECOMUNICACIONES DE CUBA S.A. (IXP CUBA)
ownerid: CU-CUBA-LACNIC
responsible: Rafael L pez Guerra
address: Ave. Independencia y 19 Mayo, s/n,
address: 10600 - La Habana - CH
country: CU
phone: +53 7 574242 []
owner-c: JOQ
tech-c: JOQ
abuse-c: JEM52
inetrev: 200.0.16/24
nserver: NS1.NAP.ETECSA.NET
nsstat: 20160123 AA
nslastaa: 20160123
nserver: NS2.NAP.ETECSA.NET
nsstat: 20160123 AA
nslastaa: 20160123
created: 20030512
changed: 20140610
Then the last hop:
8 ix-11-3-1-0.tcore1.TNK-Toronto.as6453.net (64.86.33.45) 108.577 ms 108.449 ms 108.257 ms
...interestingly, lands directly in Toronto, in this case going later
to Koumbit but that is the first hop that varies according to the
destination, hops 1-7 being a common trunk to all external
communications. It's also interesting that this shoves a good 90
milliseconds extra in latency, showing that a significant distance and
number of equipment crossed. Yet a single hop is crossed, not showing
the intermediate step of the Venezuelan link or any other links for
that matter. Something obscure is going on there...
Also interesting to note is the traceroute to the redirection host,
which is only one hop away:
traceroute to 192.168.134.138 (192.168.134.138), 30 hops max, 60 byte packets
1 192.168.134.138 (192.168.134.138) 6.027 ms 5.698 ms 5.596 ms
Even though it is not the gateway:
$ ip route
default via 10.156.41.1 dev wlan0 proto static metric 1024
10.156.41.0/24 dev wlan0 proto kernel scope link src 10.156.41.4
169.254.0.0/16 dev wlan0 scope link metric 1000
This means a very close coordination between the different access
points and the captive portal system. Finally, note that there seems
to be only three peers to the Cuban internet:
Teleglobe, formerly Canadian, now owned by the Indian
[[!wiki Tata group]], and Telef nica, the Spanish Telco
that colonized most of Latin America's internet, all the way down to
Argentina. This is confirmed by my traceroutes, which show traffic to
Koumbit going through Tata and Google's going through Telef nica.
190.6.81.230 in the hotel.
Accessing http://1.1.1.1/ gives you a status page which allows you
to disconnect from the portal. It actually redirects you to
https://192.168.134.138/logout.user. That is also a
self-signed, but different certificate. That
certificate actually reveals the implication of Gemtek which is a
"world-leading provider of Wireless Broadband solutions, offering a
wide range of solutions from residential to business". It is somewhat
unclear if the implication of Gemtek here is deliberate or a
misconfiguration on the part of Cuban officials, especially since the
certificate is self-signed and was issued in 2002. It could be,
however, a trace of the supposed involvement of China in the
development of Cuba's networking systems, although Gemtek is based in
Taiwan, and not in the China mainland.
That IP, in turn, redirects you to the same portal but in a page that
shows you the statistics:
https://www.portal-wifi-temas.nauta.cu/?mac=0024D1717D18&script=logout.user&remain_time=00%3A55%3A52&session_time=00%3A04%3A08&username=151003576287&clientip=10.156.41.21&nasid=Wifi_Memories_Jibacoa&r=ac%2Fpopup
Notice how you see the MAC address of the machine in the URL
(randomized, this is not my MAC address), along
with the remaining time, session time, client IP and the Wifi access
point ESSID. There may be some potential in defrauding the session
time there, I haven't tested it directly.
Hitting Actualizar redirects you back to the IP address, which
redirects you to the right URL on the portal. The "real" logout is at:
http://192.168.134.138/logout.user?cmd=logout
The login is performed against
https://www.portal-wifi-temas.nauta.cu/index.php?r=ac/login with a
referer of:
https://www.portal-wifi-temas.nauta.cu/?&nasid=Wifi_Memories_Jibacoa&nasip=192.168.134.138&clientip=10.156.41.21&mac=EC:55:F9:C5:F2:55&ourl=http%3a%2f%2fgoogle.ca%2f&sslport=443&lang=en-US%2cen%3bq%3d0.8&lanip=10.156.41.1
Again, notice the information revealed to the central portal.
www.portal-wifi-temas.nauta.cu, 190.6.81.230)192.168.134.138)10.156.41.1)2.4.21 and 2.4.31. Now, to
find out which version of Linux it is running is way more challenging,
and it is possible it is just some custom Linux distribution. Indeed,
the webserver shows up as G4200.GSI.2.22.0155 and the SSH server is
running OpenSSH 3.0.2p1, which is basically prehistoric (2002!)
which corroborates the idea that this is some Gemtek embedded device.
The fact that those devices are running 14 years old software should
be a concern to the people responsible for those networks. There is,
for example, a remote root vulnerability that affects that
specific version of OpenSSH, among
many other vulnerabilities.
15100, the
following digits being 3576 or 4595, presumably depending on the
"batch" that was sent to different hotels, which seems to be batches
of 1000 cards. You can also correlate the UID with the date at which
the card was issued. For example, 15100357XXX cards are all valid
until 19/03/2017, and 151004595XXX cards are all valid until
23/03/2017. Here's the list of UIDs I have seen:
151004595313
151004595974
151003576287
151003576105
151003576097
The passwords, on the other hand, do seem fairly random (although my
sample size is small). Interestingly, those passwords are also 12
digits long, which is about as strong as a seven-letter password
(mixed uppercase and lowercase). If there are no rate-limiting
provisions on that captive portal, it could be possible to guess
those passwords, since you have free rein on accessing those
routers. Depending on the performance of the routers, you could be
lucky and find a working password for free...
After an usually long hiatus, the RcppExamples package has been updated once more: a new version 0.1.7 is now on CRAN.
The RcppExamples provides a handful of short examples detailing by concrete working examples how to set up basic R data structures in C++. In this version, essentially all files (C++, R as well as manual pages) were refreshed, along with the usual set of small changes to bring the package to current R CMD check standards.
A NEWS extract follows:
Changes in RcppExamples version 0.1.7 (2016-01-23)Courtesy of CRANberries, there is also a diffstat report for the most recent release.
- All examples were updated to use Rcpp Attributes and (where possible) use
const &interfaces.- Updated
DESCRIPTIONfor currentR CMD checkstandards- The Rcpp package is now imported rather than depended upon.
- Added
README.mdas well as.travis.yml.- Also updated and refreshed all manual pages and R files.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
The phone company logs provide a register of locations to check out
when one want to figure out what the tracked person was doing. It is
unavailable for most of us, but provided to selected government
officials, company staff, those illegally buying information from
unfaithful servants and crackers stealing the information. But the
public information can be collected and analysed, and a free software
tool to do so is called
Creepy or Cree.py. I
discovered it when I read
an
article about Creepy in the Norwegian newspaper Aftenposten i
November 2014, and decided to check if it was available in Debian.
The python program was in Debian, but
the version in
Debian was completely broken and practically unmaintained. I
uploaded a new version which did not work quite right, but did not
have time to fix it then. This Christmas I decided to finally try to
get Creepy operational in Debian. Now a fixed version is available in
Debian unstable and testing, and almost all Debian specific patches
are now included
upstream.
The Creepy program visualises geolocation information fetched from
Twitter, Instagram, Flickr and Google+, and allow one to get a
complete picture of every social media message posted recently in a
given area, or track the movement of a given individual across all
these services. Earlier it was possible to use the search API of at
least some of these services without identifying oneself, but these
days it is impossible. This mean that to use Creepy, you need to
configure it to log in as yourself on these services, and provide
information to them about your search interests. This should be taken
into account when using Creepy, as it will also share information
about yourself with the services.
The picture above show the twitter messages sent from (or at least
geotagged with a position from) the city centre of Oslo, the capital
of Norway. One useful way to use Creepy is to first look at
information tagged with an area of interest, and next look at all the
information provided by one or more individuals who was in the area.
I tested it by checking out which celebrity provide their location in
twitter messages by checkout out who sent twitter messages near a
Norwegian TV station, and next could track their position over time,
making it possible to locate their home and work place, among other
things. A similar technique have been
used
to locate Russian soldiers in Ukraine, and it is both a powerful
tool to discover lying governments, and a useful tool to help people
understand the value of the private information they provide to the
public.
The package is not trivial to backport to Debian Stable/Jessie, as
it depend on several python modules currently missing in Jessie (at
least python-instagram, python-flickrapi and
python-requests-toolbelt).
(I have uploaded
the image to
screenshots.debian.net and licensed it under the same terms as the
Creepy program in Debian.)
A new minor release of RcppEigen is now on CRAN and in Debian. It primarily upgrades to the recent 3.2.7 release of Eigen -- thanks once again to fine work by Yixuan Qiu. We also have one additonal PR by Alexey Stukalow who ensured that the fastLm() example will work fine with when the Intel MKL is used.
The NEWS file entry follows.
Changes in RcppEigen version 0.3.2.7.0 (2016-01-18)Courtesy of CRANberries, there is also a diffstat report for the most recent release.
- Updated to version 3.2.7 of Eigen
- The fastLm example will not include the Lapack header if MKL is defined (thanks to PR #25 by Alexey Stukalow)
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
Bradley White from the upstream CCTZ team prepared some more changes in CCTZ itself -- so a new RcppCCTZ version got to CRAN the other day catching up with these changes.
CCTZ is a C++ library for translating between absolute and civil times using the rules of a time zone. It requires only a proper C++11 compiler and the standard IANA time zone data base which standard Unix, Linux, OS X, ... computers tend to have in /usr/share/zoneinfo. RcppCCTZ connects this library to R by relying on Rcpp.
Changes in this version are summarized here:
Changes in version 0.0.3 (2016-01-17)We also have a diff to the previous version thanks to CRANberries. More details, issue tickets etc at the GitHub repository.
- Synchronized with
CCTZupstream.
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 am happy to share here a project I was a part of during last year, that ended up being a complete success and now stands to be repeated: The diploma course on embedded Linux, taught at Facultad de Ingenier a, UNAM, where I'm teaching my regular classes as well.
Back in November, we held the graduation for our first 10 students. This photo shows only seven, as the remaining three have already relocated to Guadalajara, where they were hired by Continental, a company that promoted the creation of this specialization program.
After this first excercise, we went over the program and made some adequations; future generations will have a shorter and more focused program (240 instead of 288 hours, leaving out several topics that were not deemed related to the topic or were thoroughly understood by students to begin with); we intend to start the semester-long course in early February. | Attachment | Size |
|---|---|
| OT401_nota.jpg | 75.82 KB |
| Linux Embebido - Folleto.pdf | 455.32 KB |
The third update in the 0.12.* series of Rcpp arrived on the CRAN network for GNU R earlier today, and has been pushed to Debian. It follows the 0.12.0 release from late July, the 0.12.1 release in September, and the 0.12.2 release in November making it the seventh release at the steady bi-montly release frequency. This release is somewhat more of a maintenance release addressing a number of small bugs and nuisances without adding any new features.
Rcpp has become the most popular way of enhancing GNU R with C or C++ code. As of today, 553 packages on CRAN depend on Rcpp for making analytical code go faster and further. That is up by more than fourty packages from the last release in November.
Once again, we have new first-time contributors. Kazuki Fukui corrected an issue he encountered when having CLion re-formatted some code for him. Joshua Pritikin corrected a constructor initialization. Of course, we also had several pull reports from regular contributors -- see below for a detailed list of changes extracted from the NEWS file.
Changes in Rcpp version 0.12.3 (2016-01-10)Thanks to CRANberries, you can also look at a diff to the previous release. As always, even fuller details are on the Rcpp Changelog page and the Rcpp page which also leads to the downloads page, 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.
- Changes in Rcpp API:
- Changes in Rcpp Attributes:
- Changes in Rcpp Modules:
- Changes in Rcpp 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.
As the Buddha said 2500 years ago... we're all out of our fucking minds. (Albert Ellis)There have been a few occasions over the last year where people suffering mental illnesses have been the subject of much discussion. In March 2015 there was the tragic loss of Germanwings flight 9525. It was discovered that the co-pilot, Andreas Lubitz, had been receiving treatment for mental illness. Under strict privacy laws, nobody at his employer, the airline, had received any information about the diagnosis or treatment.
During the summer, the private mailing list for a large online community discussed the mental illness of a contributor to a project. Various people expressed opinions that appeared to be generalizations about all those with mental illness. Some people hinted the illness was a lie to avoid work while others speculated about options for treatment. Nobody involved mentioned having any medical expertise.
It is ironic that on the one hand, we have the dramatic example of an aircraft crashing at the hands of somebody who is declared unfit to work but working anyway and on the other hand when somebody else couldn't do something, the diagnosis is being disputed by people who find it inconvenient or don't understand it.
More recently, there has been openly public discussion about whether another developer may have had mental illness. Once again, there doesn't appear to be any evidence from people with any medical expertise or documentation whatsoever. Some of the comments appear to be in the context of a grudge or justifying some other opinion.
What's worse, some comments appear to suggest that mental illness can be blamed for anything else that goes wrong in somebody's life. If somebody is shot and bleeds to death, do you say low blood pressure killed him or do you just say he was shot? Likewise, if somebody is subject to some kind of bullying and abused, does this have no interaction with mental illness? In fact, Google reveals an enormous number of papers from experts in this field suggesting that mental illness can arise or be exacerbated by bad experiences. Although it may not have been clear at that point in time, when we look back at Alan Turing's death today, suicide was not a valid verdict and persecution was a factor.
Statistics tell us that 1 in 4 people experience a mental health problem in the UK each year. In the USA it is 26% of the adult population, each year. These may be long term conditions or they may be short term conditions. They may arise spontaneously or they may be arising from some kind of trauma, abuse or harassment in the home, workplace or some other context.
For large online communities, these statistics imply it is inevitable that some participants will be suffering from mental illness and others will have spouses, parents or children suffering from such conditions. These people will be acutely aware of the comments being made publicly about other people in the community. Social interaction also relates to the experience of mental illness, people who are supported by their community and society are more likely to recover while those who feel they are not understood or discriminated against may feel more isolated, compounding their condition.
As a developer, I wouldn't really like the idea of doctors meddling with my code, so why is it that some people in the IT and business community are so happy to meddle around in the domain of doctors, giving such strong opinions about something they have no expertise in?
Despite the tragic loss of life in Germanwings 9525, observing some of these other discussions that have taken place reminds me why Germany and some other countries do have such strict privacy laws for people who seek medical treatment.
(You can Follow or Tweet about this blog on Twitter)
A new release, now at version number 0.6.9, of the digest package is now on CRAN. I also just prepared the Debian upload.
This release is very large part the work of Thierry Onkelinx who added stable sha1 support in a new function sha1(). Here, stable means that numerically equivalent numbers (in the sense of the semi-famous R FAQ entry 7.31) result in identical hashes. This is useful for hashing results from numerical analysis---where the representation may differ bitwise between, say, 32 and 64-bit platforms. We started to write a little more about this in a (at this very point still rather unfinished) little vignette.
We also had a nice pull request from fellow Rcpp hacker Qiang Kou who updated the code to use XLENGTH so that large vectors can be supported.
CRANberries provides the usual summary of changes to the previous 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.
Making it easier to use C++ in R has been a really nice and rewarding side effect of the work on Rcpp. One really good idea came from something Jay Emerson, Michael Kane and had I kicked about for way too long: shipping Boost headers for easier use by R and CRAN packages (such as their family of packages around bigmemory). The key idea here is headers: Experienced C++ authors such as library writers can organise C++ code in such a way that one can (almost always) get by without any linking. Which makes deployment so much easier in most use cases, and surely also with R which knows how to set an include path.
So after years of "yes we really should", Jay deserves the credit for actually sitting down almost three years ago and creating the first version. So at the end of January 2013, we released BH version 1.51.0-0. By now the package is used fifty-four other CRAN packages --- clearly a much stronger uptake then we ever expected. I took over maintenance at some point, and we are currently in-line with the most recent Boost release 1.60.0.
But some people were always lusting after (some) parts of Boost which also require linking. For some libraries (such as Boost.Date_Time in my RcppBDT package) you can set a #define to not require linking (and forego some string formatting or parsing we get from R anyway). Some others are trickier; Boost Regex is one example. I do not think you can use it without linking (but then C++11 helps and finally brings regular expression in the default library).
Another library which the systems / network programmers at work would frequently rely upon is Boost.Asio, a cross-platform C++ library for network and low-level I/O programming. It was already used on CRAN by the iptools package by Bob Rudis and Oliver Keyes which shied away from building on Windoze (while 'doze and Boost do get along, but the CRAN system makes it a little more involved).
A couple of days ago, I somehow learned that the Asio library actually comes in two flavours: the well-known Boost.Asio (requiring linking), and also as a header-only standalone library! Well, well, well -- so I ran that by Bob and Oliver asking if that would be useful. And the response was a resounding and pretty much immediate Hell, Yes!.
So I wrapped it in a package, told Bob about it, who tested it and gave the thumbs up. And after a slightly longer-than-usual on-boarding, the package is now on CRAN. As network (and systems) programming is not entirely uncommon even at CRAN, I hope that this package may find a few more use cases. A new version of iptools should be forthcoming "shortly", including for the first time a Windows build thanks to this package. The indefatigable Martin Morgan already spotted our GitHub repo and scored the first fork.
Comments and suggestions about AsioHeaders are welcome via the issue tracker at the GitHub 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.
I just published the first version of git find on gh/mirabilos/git-find
for easy collaboration. The repository deliberately only contains the
script and the manual page so it can easily be merged into git.git with
complete history later, should they accept it. git find is MirOS licenced. It does require
a recent mksh (Update: I did start it
in POSIX sh first, but it eventually turned out to require arrays, and
I don t know perl(1) and am not going to rewrite it in C) and some common
utility extensions to deal with NUL-separated lines (sort -z,
grep -z, git ls-tree -z); also, support for '\0'
in tr(1) and a comm(1) that does not choke on embedded NULs in lines.
To install or uninstall it, run
$ git clone git@github.com:mirabilos/git-find.git $ cd git-find $ sudo ln -sf $PWD/git-find /usr/lib/git-core/ $ sudo cp git-find.1 /usr/local/share/man/man1/ hack $ sudo rm /usr/lib/git-core/git-find \ /usr/local/share/man/man1/git-find.1
then you can call it as git find and look at the documentation with git help find , as is customary. The idea behind this utility is to have a tool like git grep that acts on the list of files known to git (and not e.g. ignored files) to quickly search for, say, all PNG files in the repository (but not the generated ones). git find acts on the index for the HEAD, i.e. whatever commit is currently checked-out (unlike git grep which also knows about git add ed files; fix welcome) and then offers a filter syntax similar to find(1) to follow up: parenthes s, ! for negation, -a and -o for boolean are supported, as well as -name, -regex and -wholename and their case-insensitive variants, although regex uses grep(1) without (or, if the global option -E is given, with) -E, and the pattern matches use mksh(1) s, which ignores the locale and doesn t do [[:alpha:]] character classes yet. On the plus side, the output is guaranteed to be sorted; on the minus side, it is rather wastefully using temporary files (under $TMPDIR of course, so use of tmpfs is recommended). -print0 is the only output option (-print being the default). Another mode forwards the file list to the system find; since it doesn t support DOS-style response files, this only works if the amount of files is smaller than the operating system s limit; this mode supports the full range (except -maxdepth) of the system find(1) filters, e.g. -mmin -1 and -ls, but it occurs filesystem access penalty for the entire tree and doesn t sort the output, but can do -ls or even -exec. The idea here is that it can collaboratively be improved, reviewed, fixed, etc. and then, should they agree, with the entire history, subtree-merged into git.git and shipped to the world. Part of the development was sponsored by tarent solutions GmbH, the rest and the entire manual page were done in my vacation.
Next.