Julien Danjou: Announcing Climate, the OpenStack capacity leasing project
While working on the XLcloud project
(HPC on cloud) it appeared clear to us that OpenStack was missing a critical
component towards resource reservations.
While working on the XLcloud project
(HPC on cloud) it appeared clear to us that OpenStack was missing a critical
component towards resource reservations.
The MIT graphic identity website provides downloadable stationery templates for letterhead and envelopes. They provide both Microsoft Word and LaTeX templates. But although they provide both black and white and color templates for Word, they only provide the monochrome templates for LaTeX. When writing cover letters for the job market this year, I was not particularly interested in compromising on color and was completely unwilling to compromise on TeX.
As a result, I ended up modifying each of the three templates to include color. In the process, I fixed a few bugs and documented one tricky issue. I ve published a git repository with my changes. It includes branches for each version of three of the old black and white templates as well as my my three new color templates. I hope others at MIT find it useful. I ve tried to keep the changes minimal.
I ve emailed the folks at MIT Communication Production Services to see if they want to publish my modified versions. Until then, anyone interested can help themselves to the git repository. LaTeX user that you are, you probably prefer that anyway.
But you can t just tar.gz up the bare repositories on the server and hope for the best. Maybe a given repository will be in a valid state; maybe it won t.-- Jeff Mitchell in a followup to the recent KDE near git disaster This was a surprising statement to me. I seem to remember that one of (many) selling points for git talked about back in the day was that it avoided the problem that making a simple
cp (or backup) of a repository
could lead to an inconsistent result. A problem that subversion
repositories had, and required annoying commands to work around.
(svnadmin $something -- iirc the backend FSFS fixed or avoided most of
this issue.)
This prompted me to check how I handle it in
ikiwiki-hosting. I must have
anticipated a problem at some point, since ikisite backup takes care
to lock the git repository in a way that prevents eg, incoming pushes
while a backup is running. Probably, like the KDE developers, I was
simply exercising reasonable caution.
The following analysis has probably been written up before (train; limited
network availability; can't check), but here are some scenarios to consider:
.git directory.
.git directory will likely be backed up first,
since getdirent will typically return it first, since it gets created
first . If a change is made
to the work tree during that backup, and committed while the work
tree is being backed up, the backup won't include that commit -- which
is no particular problem and would not be surprising upon restore.
Make commit again and get on with life..git, then
any changes that are committed to git during the backup would not be
reflected in the restored work tree, and git diff would show a
reversion of those changes. After restore, care would need to be taken
to reset the work tree (without losing any legitimate uncommitted
changes)..git/index.lock may exist, and prevent future commits
from happening, until it's deleted. These problems can also occur
if the machine dies at just the right time during a commit. Git tells
you how to recover. (git
could go further to avoid these problems than it does; for example
it could check if .git/index.lock is actually locked using fcntl.
Something I do in git-annex to make the .git/annex/index.lock
file crash safe.).git/objects, and then updates .git/refs.
A backup might first back up the refs, and then the objects. In this
case, it would lose the record that refs were pushed. After being
restored, any push from another repository would update the refs,
even using the objects that did get backed up. So git recovers from
this, and it's not really a concern.core.logAllRefUpdates can be set to true for bare repositories, but
is disabled by default.).git/hooks/ scripts, .git/config settings,
and potentially other valuable information, that strangely, we do not
check into revision control despite having this nice revision control
system available. This is the most likely failure mode with "git backups".
:P$ sudo apt-get install apt-cacher-ng squid-deb-proxy-client/etc/avahi/services/apt-cacher-ng.service<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">apt-cacher-ng proxy on %h</name>
<service protocol="ipv4">
<type>_apt_proxy._tcp</type>
<port>3142</port>
</service>
</service-group>
/etc/schroot/setup.d/51aptproxyTadah. Now I'm using my apt-cacher-ng whenever I'm on my home WiFi =)
#!/bin/sh
set -e
. "$SETUP_DATA_DIR/common-data"
. "$SETUP_DATA_DIR/common-functions"
. "$SETUP_DATA_DIR/common-config"
APT_AVAHI_DISCOVER=/usr/share/squid-deb-proxy-client/apt-avahi-discover
if [ $STAGE = "setup-start" ] [ $STAGE = "setup-recover" ]; then
if type apt-avahi-discover 1>/dev/null; then
APT_AVAHI_DISCOVER=apt-avahi-discover
fi
APT_PROXY= $APT_AVAHI_DISCOVER
if [ -n "$APT_PROXY" ]; then
info "Setting apt-proxy to avahi proxy at $ APT_PROXY "
printf 'Acquire::http Proxy "%s"; ;\n' $ APT_PROXY > "$ CHROOT_PATH /etc/apt/apt.conf.d/30schrootautoproxy"
fi
fi
there are not many RC bugs left (yeah!), this also means that my work in
this area was rather minimal last week:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:template match="processing-instruction('newscene')">
<hr/>
</xsl:template>
</xsl:stylesheet>
And the FO/PDF XSL file looked like this:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:template match="processing-instruction('newscene')">
<fo:block text-align="center">
<fo:leader leader-pattern="rule" rule-thickness="0.5pt"/>
</fo:block>
</xsl:template>
</xsl:stylesheet>
Finally, I came across the <bridgehead> tag, which seem to be
a good fit for the task at hand, and I replaced <?newscene?>
with <bridgehead>*</bridgehead>. It isn't centred, but we
can fix it with some XSL rule if the current visual layout isn't
enough.
I did not find a good DocBook compliant way to solve the
linebreak/paragraph challenge, so I ended up creating a new processor
directive <?linebreak?>, mapping to <br/> in HTML, and
<fo:block/> in FO/PDF. I suspect there are better ways to do
this, and welcome ideas and patches on github. The HTML XSL file now
look like this:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:template match="processing-instruction('linebreak)">
<br/>
</xsl:template>
</xsl:stylesheet>
And the FO/PDF XSL file looked like this:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="processing-instruction('linebreak)">
<fo:block/>
</xsl:template>
</xsl:stylesheet>
One unsolved challenge is our wish to expose different ISBN numbers
per publication format, while keeping all of them in some conditional
structure in the DocBook source. No idea how to do this, so we ended
up listing all the ISBN numbers next to their format in the colophon
page.
If you want to check out the finished result, check out the
source repository at
github
(future/new/official
repository). We expect it to be ready and announced in a few
days.
I ve been using this process for debugging the installer while launched from a Debian Live desktop. Having a full live environment at your disposal during install is a boon to debugging because you don t have to work within the constraints normally imposed upon you by the limited debian-installer environment. Caveat: running debian-installer from the debian-installer-launcher still has one or two unresolved issues, so unless you re specifically working on live integration issues like I am, compare with a conventional d-i image install to gain the added confidence the install is the same in both environments.
There are no longer active maintainers working on debian-installer-launcher and live-installer, and I think it s really important for wheezy to release with solid support for live installs, so I ve been using this setup to try to solve #702335. So far, progress is slow because I m new to this. If anyone is interested in collaborating in this work, give me a shout. I am SynrG @ irc.oftc.net and can be found on #debian-live and #debian-boot if you would like to drop in.
Overview:
So via hackernews I recently learned about fight code, and my efforts have been fun. Currently my little robot is ranked ~400, but it seems to jump around a fair bit.
Otherwise I've done little coding recently:
It will take 6-24 Hours for your list to be created....wow.
The 2nd Shogi Denousen has began. This is the first cut-throat match between top-notch professional Shogi players(yes, there are such people) and the best crop of computer Shogi engines, 5 on 5.
Shogi is a distant cousin of Chess. Unlike Chess, you may re-use captured pieces anywhere on the board anytime. It brings quite lot of additional complexities, and even after the defeat of Garry Kasparov in 1997, many considered that (at least top-level) human Shogi players have a great lead on computer Shogi engines.
The situation had changed dramatically when a newcomer Shogi engine called Bonanza, developed by a Japanese chemist Kunihito Hoki, won the 16th World Computer Shogi Championship. Bonanza appeared totally out of the blue Hoki incorporated some new ideas developed in the field of computer Chess, and Bonanza beated existing engines with no mercy. Bonanza could even corner some professional Shogi players in 2007. Later Hoki released(but not strictly open-source) the source code of Bonanza, and the standard of computer Shogi has risen considerably since then. Finally, in the 1st Denousen last year, Kunio Yonenaga, long retired but possibly one of the greatest Shogi players in the history, was defeated by Bonkras, a clustered version of Bonanza developed by Eiki Itoh of Fujitsu.
The first match of Denousen this year was held yesterday between Kouru Abe, an 18-year old prodigy from Aomori, and Shueso, which finished in 5th at the 22nd World Computer Shogi Championship. I hoped a close game, but Abe could beat Shueso quite easily. Shueso somehow could not bring its ability into full play, to my great disappointment. Next weekend(Mar. 30), we will see the second match between Shinichi Sato, another young pro, and Ponanza, developed based on Bonanza by Issei Yamamoto of The University of Tokyo.
BTW, Debian already has the package of GPS Shogi, which won the 22nd World Computer Shogi Championship and considered by many the strongest Shogi engine available now (there is also gnushogi in Debian, but gnushogi is quite weak).
You may have fun with
$ xshogi -fsp gpsshogi
Unfortunately, we don t have good modern GUI for Shogi yet
A new relase 0.10.3 of Rcpp is now on
CRAN
and in Debian.
This is the fourth release in the 0.10.* series, and further extends and
solidifies the excellent Rcpp attributes. A few other bugs were
fixed as well, and support for wide character strings has been added.
We once again tested this fairly rigorously by checking against 86 of the 100
CRAN packages depending on Rcpp. All of these passed. So we do not expect any
issues with dependent packages, but one never knows.
The complete NEWS
entry for 0.10.3 is below; more details are in the ChangeLog file in the package and on the
Rcpp Changelog page.
Changes in Rcpp version 0.10.3 (2013-03-23)Thanks to CRANberries, you can also look at a diff to the previous release 0.10.2. 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
- Changes in R code:
- Prevent build failures on Windowsn when Rcpp is installed in a library path with spaces (transform paths in the same manner that R does before passing them to the build system).
- Changes in Rcpp attributes:
- Rcpp modules can now be used with
sourceCpp- Standalone roxygen chunks (e.g. to document a class) are now transposed into RcppExports.R
- Added
Rcpp::pluginsattribute for binding directly to inline plugins. Plugins can be registered using the newregisterPluginfunction.- Added built-in
cpp11plugin for specifying the use of C++11 in a translation unit- Merge existing values of build related environment variables for sourceCpp
- Add global package include file to RcppExports.cpp if it exists
- Stop with an error if the file name passed to
sourceCpphas spaces in it- Return invisibly from void functions
- Ensure that line comments invalidate block comments when parsing for attributes
- Eliminated spurious empty hello world function definition in Rcpp.package.skeleton
- Changes in Rcpp API:
- The very central use of R API R_PreserveObject and R_ReleaseObject has been replaced by a new system based on the functions Rcpp_PreserveObject, Rcpp_ReleaseObject and Rcpp_ReplaceObject which shows better performance and is implemented using a generic vector treated as a stack instead of a pairlist in the R implementation. However, as this preserve / release code is still a little rough at the edges, a new #define is used (in config.h) to disable it for now.
- Platform-dependent code in Timer.cpp now recognises a few more BSD variants thanks to contributed defined() test suggestions
- Support for wide character strings has been added throughout the API. In particular String, CharacterVector, wrap and as are aware of wide character strings
Following up on using Debian on the WeTab with GNOME Shell I figured
accelerated video using the built in CrystalHD to save battery power and CPU cycles would
be nice to have. There's even a Debian package available but not for gstreamer 1.0 (which
is used by GNOME 3.6) so I had a look at gstreamer's plugin writers guide and porting guide
and updated the driver. Packages are here until there's a new upstream version or
Debian package release.
This blog is flattr enabled.
| Week | Squeeze | Wheezy | Diff |
|---|---|---|---|
| 43 | 284 (213+71) | 468 (332+136) | +184 (+119/+65) |
| 44 | 261 (201+60) | 408 (265+143) | +147 (+64/+83) |
| 45 | 261 (205+56) | 425 (291+134) | +164 (+86/+78) |
| 46 | 271 (200+71) | 401 (258+143) | +130 (+58/+72) |
| 47 | 283 (209+74) | 366 (221+145) | +83 (+12/+71) |
| 48 | 256 (177+79) | 378 (230+148) | +122 (+53/+69) |
| 49 | 256 (180+76) | 360 (216+155) | +104 (+36/+79) |
| 50 | 204 (148+56) | 339 (195+144) | +135 (+47/+90) |
| 51 | 178 (124+54) | 323 (190+133) | +145 (+66/+79) |
| 52 | 115 (78+37) | 289 (190+99) | +174 (+112/+62) |
| 1 | 93 (60+33) | 287 (171+116) | +194 (+111/+83) |
| 2 | 82 (46+36) | 271 (162+109) | +189 (+116/+73) |
| 3 | 25 (15+10) | 249 (165+84) | +224 (+150/+74) |
| 4 | 14 (8+6) | 244 (176+68) | +230 (+168/+62) |
| 5 | 2 (0+2) | 224 (132+92) | +222 (+132/+90) |
| 6 | release! | 212 (129+83) | +212 (+129/+83) |
| 7 | release+1 | 194 (128+66) | +194 (+128/+66) |
| 8 | release+2 | 206 (144+62) | +206 (+144/+62) |
| 9 | release+3 | 174 (105+69) | +174 (+105/+69) |
| 10 | release+4 | 120 (72+48) | +120 (+72/+48) |
| 11 | release+5 | 115 (74+41) | +115 (+74/+41) |
| 12 | release+6 | 93 (47+46) | +93 (+47/+46) |
| 13 | release+7 | ||
| 14 | release+8 | ||
| 15 | release+9 | ||
| 16 | release+10 | ||
| 17 | release+11 | ||
| 18 | release+12 |
Update: This isn't actually that much better than letting them
access the private key, since nothing is stopping the user from
running their own SSH agent, which can be run under strace. A better
solution is in the works. Thanks Timo Juhani Lindfors and Bob Proulx
for both pointing this out.
At work, we have a shared SSH key between the different people
manning the support queue. So far, this has just been a file in a
directory where everybody could read it and people would sudo to the
support user and then run SSH.
This has bugged me a fair bit, since there was nothing stopping a
person from making a copy of the key onto their laptop, except policy.
Thanks to a tip, I got around to implementing this and figured writing
up how to do it would be useful.
First, you need a directory readable by root only, I use
/var/local/support-ssh here. The other bits you need are a small
sudo snippet and a profile.d script.
My sudo snippet looks like:
Defaults!/usr/bin/ssh-add env_keep += "SSH_AUTH_SOCK"
%support ALL=(root) NOPASSWD: /usr/bin/ssh-add /var/local/support-ssh/id_rsa
Everybody in group support can run ssh-add as root.
The profile.d goes in /etc/profile.d/support.sh and looks like:
if [ -n "$(groups grep -E "(^ )support( $)")" ]; then
export SSH_AUTH_ENV="$HOME/.ssh/agent-env"
if [ -f "$SSH_AUTH_ENV" ]; then
. "$SSH_AUTH_ENV"
fi
ssh-add -l >/dev/null 2>&1
if [ $? = 2 ]; then
mkdir -p "$HOME/.ssh"
rm -f "$SSH_AUTH_ENV"
ssh-agent > "$SSH_AUTH_ENV"
. "$SSH_AUTH_ENV"
fi
sudo ssh-add /var/local/support-ssh/id_rsa
fi
The key is unavailable for the user in question because ssh-add is
sgid and so runs with group ssh and the process is only debuggable for
root. The only thing missing is there's no way to have the agent
prompt to use a key and I would like it to die or at least unload keys
when the last session for a user is closed, but that doesn't seem
trivial to do.
The Standalone Sysadmin asks,
How do you manage database server
instances? :
Do you have one (or a few) centralized database servers, either standalone or clustered, or do you spread the load like we are currently?His argument for centralisation is one of easing the management burden of configuration and backups, whereas the distributed approach eliminates a central point of failure and performance degradation. I go for distributed, all the way. For a start, we run so many databases for so many customers that there s no way on earth we could stand up a small number of database servers and handle all the load (hell, we ve got single customers who consume a cluster of machines with 384GB of RAM and all the SSDs you can eat). Security and permissions is a whole other kettle of fish; the contortions we d have to do to allow customers the level of management they need with a centralised database system would be immense. Then there s the need of some customers for MySQL, some for PgSQL, different performance tuning for different workloads nope, centralised DBs don t work for us. Given this, we ve bitten the bullet and solved pretty much all of the management problems. Installation and configuration is all handled via Puppet, and backups are trivial the same system that installs the DB server itself also drops a hook script that the backup agent uses to know that it has to dump a database server. Monitoring that this backup is taking place successfully is also automatically provisioned, so we know that we re not missing anything. Ultimately, this same approach applies to practically anything that you re tossing up between centralised and distributed. At scale, you can never rely on centralisation, so you may as well bite the bullet and learn how to do it distributed pretty much from the start. That saves some serious system shock when you discover what your hardware vendor wants for the next step up in big iron hardware
This Clevo laptop is a new machine and like a lot of new machines, not all of its hardware has drivers in the current stable release of debian.
Happily, there is a driver for its rtl8723ae wireless networking device in the later 3.8 Linux kernel versions. So it s just a case of installing the package called kernel-package and following the instructions in it, to make a new linux-image package with the latest drivers in it.
One small thing which tripped me up is that you usually need to write make-kpkg rootcmd fakeroot initrd kernel-image now. I forgot the initrd option at first.
(btw, the source is on github)
During the sprints at PyCon in a spare moment after some awesome OpenGov hacking, I ended up doing the unthinkable:
rpython support in Hy.
Yes. That s right. Lisp > Python > C > x86 instructions.
The thanks here goes to Romain Guillebert - who is a really funny rpythonista and took the time to sit down and help me with this frankly insane idea.
It works, though. I filed a bug on shipping rpython bits from PyPy s Debian package (hi, tumbleweed!), which should make building this a skitch easier.
Finally, and unrelatedly, I also just got a .hy > .pyc compiler working (huzzah!) which means no one will ever know we wrote anything in Lisp, ever.
As always, play with the REPL, star the code or have a laugh with it.
Let me know what you hack up!
I ll post the lightning talk I gave after it s posted :)
Next.