Christoph Egger: Generating .wot files now
Generating .wot files now
Generating .wot files now
I've recently replaced my laptop's HDD as the S.M.A.R.T. data
suggested a potential failure. I took the opportunity to
try out beta4 of debian-installer and to install a pure
wheezy system. Prior to this I've been running a mostly
wheezy system with some bits from sid or experimental.
I've got quite a few notes about bugs I've hit in the
installer, most of which I still need to file, but perhaps the
most problematic appears to be known as
#661789. Unless I'm reading
this wrong, it would appear this show-stopper bug makes
booting on an EFI system impossible without some workarounds,
it's been a known problem for 9 months, and d-i beta4's images
opt for EFI booting where possible. After the 8th install run
I must admit I started getting angry that someone was wasting
my time. Perhaps this is covered in some install notes
somewhere. Anyway, I got an install working eventually (with
legacy BIOS boot mode). and have been running wheezy for the
last week.
I've just now had a string of problems which were a fairly
typical experience for me running a mixed system. Whenever I
hit a problem, particularly in the GNOME3 stack, my first
response was to check "am I running the latest version of the
packages?" inevitably not and so I got around my problems
via a reboot or something similarly drastic; updated the
packages and left things. Until the next time.
Just now, the following things happened:
libpam-krb5 installed
but Kerberos unconfigured. I'm not sure why this has only
bitten now. I'm also fairly sure kerberos is an optional
PAM module and pam_unix should still work.gnome-screensaver gets my to my "desktop" but
gnome-shell appears to have hung: it isn't drawing
anything and all I can see is my wallpaper. Killing
the shell process sadly doesn't cure this: I can see the
(undecorated) edge of an open window now, but the shell
isn't coming back. It seems the session manager doesn't
respawn such subprocesses when they die.gdm3, lose my open windows/data, log
in afresh. For some reason, there's no networking panel
applet visible. Wifi is not up. If I go to the GNOME
control panel and visit "Networking", I'm told "The system
network services are not compatible with this version".
(They were earlier today, with no package changes ).
Poking around in a terminal, I see the wifi controller is
software disabled. I don't have rfkill installed and
can't immediately see how to unblock it via poking around
in /sys (probably possible) so I'm left with no choice
but to reboot.
My parents will soon be moving to a smaller home, so they are digging up a lot of stuff of my sister and mine past. Among my stuff, they just sent me my first computer (which was, of course, the first computer of my father s company I was using in the spare time). I couldn t believe they kept that. It was an Unitron Apple ][ 64K!! I just had it cleaned and took this picture:
Due to the closed informatics market Brazilians were subject to at the time, it came with a full set of manuals in Portuguese which taught me how to code in Basic (I was too young to learn English at the time) Interesting how a bad policy like that can result in a Good Thing sometimes.
Apologies in advance for writing a long blog post about the dull and
specialised subject of
double-entry accounting
from the Unix tools perspective, that ends up talking about Monads to boot.
I can't believe I'm about to write such a thing, but I'm finding it an oddly
interesting subject.
double-entry accounting
I've known of, though probably not really understood double entry
accounting for a while, thanks to GnuCash. I think
GnuCash did something rather special in making such a subject approachable
to the layman, and I've been happy to recommend GnuCash to friends. I was
stoked to find a chapter in my sister Anna's
new book
that happily and plausibly suggests readers use GnuCash.
But for my personal use, GnuCash is clunky. I mean, I'm a programmer,
but I can't bring any of my abilities to bear on it, without a deep dive
into the code. The file format is opaque (and a real pain to keep checked
into git with all the log files); the user interface is often confusing,
but there's no benefit to its learning curve, it never seems to get better
than manually entering data into its ledger, or perhaps importing data from
a bank. I've never found the reports very useful.
I've got perhaps a year of data in GnuCash, but it's fragmented and
incomplete and not something I've been able to motivate myself to keep up
with. So I have less financial data than I'd like. I'm hoping ledger will
change that.
ledger
I've known about ledger for a while, at least since
This Linux Weekly News article.
It's a quintessential Unix tool, that simply processes text files.
The genius of it is the simplicity of the file format, that gets the essence
and full power of double entry bookeeping down to something that approaches a
meme. Once you get the file format stuck in your head, you're done for.
2004/05/27 Book Store
Expenses:Books $20.00
Liabilities:Visa
starting to use hledger
Now as a Haskell guy, I was immediately drawn to
the Haskell clone, hledger. It's nice that there
are two (mostly) compatable implementations of ledger too. So from here on,
I'll be talking about hledger.
I sat down and built a hledger setup for myself the other day.
I started by converting the GnuCash books I have been keeping up-to-date,
for a small side business (a rental property). It quickly turned into
something like programming, in the best way, as I used features like:
print, to a interactive interface.hledger stats says I have 3700 transactions on file,
which is not bad for what was just a few hours work yesterday.
One problem is hledger's gotten a little slow with this many transactions. It
takes 5 seconds to get a balance. The ledger program, written in C, is
reportedly much faster. hledger recently had a O(n^2) slowdown fixed,
which makes me think it's probably only starting to be optimised. With
Haskell code, you can get lucky and get near C (language, not speed of
light) performace without doing much, or less lucky and get not much better
than python performance until you dive into optimising. So there's hope.
harnessing haskell
If there's one place hledger misses out on being a state of the art modern
Unix program, it's in the rules files that are used to drive CSV
imports. I found these really hard to use; the manual notes that "rules
file parse errors are not the greatest"; and it's just really inflexible.
I think the state of the art would be to use a Domain Specific Language here.
For both my Amazon and PayPal imports I had CVS data something like:
date, description, amount, fees, gross
I want to take the feeds into account, and make a split transaction, like this:
date description
assets:accounts:PayPal $9.90
expenses:transaction fees:PayPal $0.10
income:misc:PayPal -$10.00
This does not seem possible with the rules file. I also wanted to combine
multiple CVS lines, to do with currency conversions, into a single
transaction, and couldn't.
The problem is that the rules file is an ad-hoc format, not a fully
programmable one. If instead, hledger's rules files were compiled into
standalone haskell programs that performed the import, arbitrarily
complicated conversions like the above could be done.
So, I'm thinking about something like this for a DSL.. I doubt I'll get
much further than this, since I have a hacked together multi-pass importer
that meets my basic needs. Still, this would be nice, and being able to
think about adding thing kind of thing to a program cleanly is one of the
reasons I reach for the Haskell version when possible these days.
First, here's part of one of my two paypal import rules files
(the other one extracts the transaction fees):
amount-field 7
date-field 0
description-field %(3) - %(4) - %(11)
base-account assets:accounts:PayPal
Bank Account
assets:accounts:checking
.*
expenses:misc:PayPal
That fills out the basic fields, and makes things with "Bank Account"
in their description be categorised as bank transfers.
Here's how it'd look as Haskell, carefully written to avoid the $
operator that's more than a little confusing in this context. :)
main :: IO () main = convert paypalConveter paypalConverter :: [CSVLine] -> [Maybe Transaction] paypalConverter = map convert where convert = do setAmount =<< field 7 setDate =<< field 0 setDescription =<< combine " - " [field 3, field 4, field 11] defaultAccounts "assets:accounts:PayPal" ==> "expenses:misc:PayPal" inDescription "Bank Account" ? "assets:accounts:PayPal" ==> "assets:accounts:checking"That seems like something non-haskell people could get their heads around, especially if they didn't need to write the boilerplate function definitions and types at the top. But I may be biased. :) Internally, this seems to be using a combination Reader and Writer monad that can get at fields from a CSV line and build up a Transaction. But I really just made up a simple DSL as I went along and thew in enough syntax to make it seem practical to implement. :) Of course, a Haskell programmer can skip the monads entirely, or use others they prefer. And could do arbitrarily complicated stuff during imports, including building split transactions, and combining together multiple related CVS lines into a single transaction.
Update Dec 2012: ResearchGate still keeps on sending me their spam.
Most of the colleagues I had that tried out RG now deleted their
account there, apparently, so the invitation mails become fewer.
Please do not try to push this link on Wikipedia just because
you are also annoyed by their emails. My blog is not a "reliable source" by
Wikipedia standards. It solely reflects my personal view of that web
site, not journalistic or scientific research.
The reason why I call ResearchGate spam is the weasel words they use
to trick authors into sending the invitation spam. Here's the
text coming with the checkbox you need to uncheck (from the
ResearchGate "blog")
Add my co-authors that are already using ResearchGate as contacts and invite those who are not yet members.See how it is worded so it sounds much more like "link my colleagues that are already on researchgate" instead of "send invitation emails to my colleagues"? It deliberately avoids the mentioning of "email", too. And according to the researchgate news post, this is hidden in "Edit Settings", too (I never bothered to try it -- I do not see any benefit to me in their offers, so why should I?). Original post below:
It is possible to put Debian on smartphones like the Samsung Galaxy S:
adb shell ip add route default via 192.168.XXX.XXX.
Then use one or other USB network script on your PC.
I was a bit busy (mostly in pleasant ways) during the last two weeks, so
this reports covers a longer period of my RC bug activities:
A minor feature release RQuantLib 0.3.9
is now on CRAN and
in Debian.
RQuantLib
combines (some of) the quantitative analytics of
QuantLib with the
R statistical computing environment and language.
Bryan Lewis had suggested to enable
another pricing engine for American Options in order to get (at least some)
Greeks. This is now supported by picking
engine="CrankNicolson" as shown in the default example for the
AmericanOption function:
Thanks to CRANberries, there is also a diff to the previous release 0.3.8. Full changelog details, examples and more details about this package are at my RQuantLib page.R> library(RQuantLib) R> example(AmericanOption) AmrcnOR> # simple call with unnamed parameters AmrcnOR> AmericanOption("call", 100, 100, 0.02, 0.03, 0.5, 0.4) Concise summary of valuation for AmericanOption value delta gamma vega theta rho divRho 11.3648 NA NA NA NA NA NA AmrcnOR> # simple call with some explicit parameters AmrcnOR> AmericanOption("put", strike=100, volatility=0.4, 100, 0.02, 0.03, 0.5) Concise summary of valuation for AmericanOption value delta gamma vega theta rho divRho 10.9174 NA NA NA NA NA NA AmrcnOR> # simple call with unnamed parameters, using Crank-Nicolons AmrcnOR> AmericanOption("put", strike=100, volatility=0.4, 100, 0.02, 0.03, 0.5, engine="CrankNicolson") Concise summary of valuation for AmericanOption value delta gamma vega theta rho divRho 10.9173 -0.4358 0.0140 NA NA NA NA R>
The following proposal extends the JSON specification, with the idea
of using JSON as an information interchange format, rather than just a
way of writing certain ECMAscript values. They do not add anything but
only restrict valid JSON content and encoders with some rationale.
First of, I d like to remind everyone, including JSON s author, that
JSON is case-sensitive, except in the four hexdigits
after a backslash-u sequence in a String.
Second, I d like to remind everyone that JSON is not binary-safe. No
way around that, it implements Unicode (actually, 16-bit UCS-2, and it
doesn t guarantee that UTF-16 surrogates are correctly paired) text. I
also consider only UTF- 8, 16,32 B,L E valid encodings for JSON. (No
PDP endian, either. Sorry, guys.)
For my first proposal, I d like to point out CVE-2011-4815 which was
about overflowing hashtables. The obvious fix is to randomise the hash
per hashtable; to ensure this doesn t leak, we sort ASCIIbetically the
keys of an Object in the encoder. (Using Unicode is good here we can
just sort the keys as UTF-8 strings by their uint8_t value or
as Unicode (UCS-2 or even UCS-4 or UTF-16) strings by the codepoints.)
JSON was never preserving the order of elements in an Object anyway so
we make it standardised (we still accept any order, and, when parsing,
in collision cases, the later value wins). This also helps diffs.
For my second proposal, I d like to forbid \u0000, \uFFFE, \uFFFF in
strings. The first because many implementations use C strings, and for
an information interchange format this is better; it also has security
implications to allow NUL in a string. The other two, but not unpaired
UTF-16 surrogates (as ECMAscript uses UCS-2 and got UTF-16 only later)
because they re not valid Unicode; JSON was not binary-safe already so
why bother. Among other benefits, this also helps implementations.
For my third proposal, I d like to agree that implementations should
impose a nesting depth limit that may be user-defined, and in the face
of which, cyclic checking may be ignored by an encoder. I emit nesting
depth overflows as literalnull; might also throw an error. Since I was
asked, the common standard value is to restrict nesting depth is 32,
unless the user specified one. (I also saw 8, but 32 WFM pretty well.)
Most seem to use it even if it may seem low at first. Only specialised
applications probably need more, and they can always pass a value.
For my forth proposal, backslash-escape U+007F U+009F always. It may
upset humans, editors, databases, etc. (This paragraph is newly added,
after some IRC discussion.)
All these do not permit anything that wasn t accepted to be accepted
afterwards. I ve got a fifth proposal which changes acceptance rules
but only for a subset of parsers: formally JSON is defined in ECMA-262
as industry standard that, in contrast to RFC 4627, always allowed any
Value as top-level element of a JSON text. I d like to make it so, and
ignore the RFC s requirement for it to be an Object or Array. Even so,
the first two characters (after the BOM, if any) of a JSON text always
are in the non-NUL 7-bit ASCII range, allowing for encoding detection.
(This is done by the NUL octet pattern in the first four octets.)
JSON has only taken off because it s a tightly defined simple format
that can be used everywhere and isn t too awful for humans (escaping
not needed for U+0020 U+D7FF and U+E000 U+FFFD after all, although I d
also take the C1 control characters out, see my forth proposal above).
I ve started to use a trailing comma in indexed and associative arrays
in code I write at work, when the array values are one a line, to help
version control systems to do their diffs, but refrain from asking for
a JSON extension to permit that in order to not endanger compatibility
any (no comment needed, it s just not worth it), but I d like my above
proposals to be followed by implementators (and I m one of them).
Some more discussion with Jonathan pointed out that JSON5 allows for
trailing commata in Object and Array; IMHO the only feature of it that
is not bad or outright harmful. I ll probably keep from accepting them
because, on their own, they re not that useful, and I usually
would run JSON texts, even configs, through a parser/encoder roundtrip
to pretty-print them which would lose them anyway.
As for binary-safeness: probably best to just use base64 and let the
outer layers worry about compression. The data is usually unrelated to
the JSON-encoded structure, and even if it s related to other data the
base64 representation is usually similar (unless misaligned).
Update 02.12.2012 Wrong I was about the first two
characters: " " is a valid JSON text. Still possible to peek at four
octets and determine the encoding by ordering the tests; updated my notes.
/dev/cdrom, but e.g. /dev/cdrom5 because I have had
multiple CD drives connected to my machine.
Now, I am not very deeply involved into KDE or phonon in particular. Therefore,
I am asking: Is there anyone who could have a look into this issue? It should
be easy to reproduce, you can simply append "5" to "cdrom" in
/etc/udev/rules.d/70-persistent-cd.rules and reboot afterwards.
As an outsider, I am somewhat baffled by the complexity of C++, phonon,
gstreamer, etc. All these layers of abstraction are not that easy to debug, at
least not for me. Good blog posts about digging into this issue are appreciated
:-).
Thanks very much to everybody who commented, both publicly and privately, on my previous entry.
To recap: I have three sites that were each generated by slightly different templating software I'd built and tweaked over the years. I was frustrated that the three copies of the generation tool had all drifted and diverged from each other, and was looking to setup a new (static) site.
The obvious conclusion was either:
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 (692.20 , thanks everybody!), then you can learn how I spent your money. Otherwise it s just an interesting status update on my various projects.
Misc packaging
I updated the publican package (a tool for publishing material authored in DocBook XML) with version 3.0, a major new upstream version. As with any important update, it had its share of problems and I created two patches that I sent upstream. I uploaded the package to experimental since we re in freeze.
The Debian Administrator s Handbook
Since the translation teams have been working for a few months, I wanted to put the result of their work online. I did it and I blogged about it on debian-handbook.info. By the way, we have a Polish translation that just started.
This took quite some time because many translators were not well versed with Docbook XML and its structure. So I fixed their mistakes and asked the Weblate developer (Michal Cihar) to implement new checks to avoid those basic XML mistakes.
I also added a couple of build scripts to the git repository to make it easier to rebuild translations in multiple formats. I used this opportunity to file a couple of bugs I encountered with Publican (concerning ePub output mainly, and custom brands).
I also blogged about our plans to update the book for Wheezy. Roland started to work on it but I did not have the time yet.
Debian France
The officers (president, treasurer, secretary) have just changed and we had to organize the transition. As the new president, I got administrator access on our Gandi virtual machine (france.debian.net) as well as access to our bank account. I got also got a bunch of administrative papers retracing the history of the association. Carl Chenet (the former president) gave them to me during the mini-debconf that was organized in Paris.
Indeed, Sylvestre Ledru and Mehdi Dogguy organized our second mini-debconf Paris and they did it very well. It was a great success with over 100 attendants each of the 2 days it lasted (November 24-25th). Carl managed a merchandising booth that was well stuffed (Luca Capello also brought goodies of Debian.ch)
I gave small lightning talk to present the ideas behind my Librement project (it s about funding free software developers). BTW I have not been very good at it, it was only my second lightning talk and I have been a bit too verbose. The talk did not fit in my 5 minutes time slot No comment Liked this article? Click here. My blog is Flattr-enabled.
I'm pleased to say that a usable version of shim is now available for download. As I discussed here, this is intended for distributions that want to support secure boot but don't want to deal with Microsoft. To use it, rename shim.efi to bootx64.efi and put it in /EFI/BOOT on your UEFI install media. Drop MokManager.efi in there as well. Finally, make sure your bootloader binary is called grubx64.efi and put it in the same directory.
For many years, I have aspired being a university teacher. I remember asking at different universities as early as ten years ago But I didn't have the needed papers. And yes, I have been a "Licenciado en Ingenier a en Software" for one year already.
Anyway, I won't go into the details on why I didn't do this earlier on. But this time, I did get my act together in time, and by mid October, I contacted Juan Carre n, an enthusiastic teacher I met a long time ago as he helped a lot for the formation and cohesion of the (now defunct?) LIDSOL group (Laboratorio de Investigaci n en Software Libre, Free Software Research Laboratory), a group of very worthy students, mostly from the Engineering careers.
Juan Carre n had long offered me help in getting to the right people in Facultad de Ingenier a as soon as I had my formal requirements ready. I just didn't expect it to be so swift! Within two days of my initial mail, he contacted me back asking me to look at the subjects in Computing Engineering and choosing some I would be willing to teach Yes, understanding that due to my time (as I'm already full-time employed in UNAM) would allow me to take only one group.
Rush of excitement, of course. I promptly looked at the program, and answered with a list of 12 subjects I would be confident to teach. Next day I was contacted by the Chief of Computing Engineering Department, offering me to dictate the Operating Systems course. A subject that has always motivated me, and towards which I feel confident. A fifth semester course (from 9 semesters in the career), with around 30 students in the classroom.
And I'm very happy with this! Yes, this will be my first formal university course experience (either as a student or a teacher), and I'm quite nervous on how this will turn out. But I'm already reading again my books on the subject, starting to structure a set of teaching notes, and... Lets see what comes next!
So, I will be teaching this course starting January 28, three times a week for 1.5hr, for a formal theric total of 72 hours. We shall see how this results six months from today! :-D
| 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) | ||
| 49 | 256 (180+76) | ||
| 50 | 204 (148+56) | ||
| 51 | 124 (124+54) | ||
| 52 | 115 (78+37) | ||
| 1 | 93 (60+33) | ||
| 2 | 82 (46+36) | ||
| 3 | 25 (15+10) | ||
| 4 | 14 (8+6) | ||
| 5 | 2 (0+2) | ||
| 6 | release! |
Have you ever wondered one of those?
Large deployment of GNOME from the administrator s perspectiveThese questions, and many others, will find the beginning of an answer here. At the very least, I hope to show people leads on where to find relevant information for their needs about administrating GNOME systems.
Next release of Weblate, the web based translation tool, will bring more flexibility in creating commit messages to allow include there whatever your project would like to see.
Originally commit message was fixed string hardcoded withing the code. Later it has been moved to configuration file to be finally placed into database to allow per project customization.
During these steps, it was also possible to add some basic information into the message (project and language code at the beginning). Weblate 1.4 will add some more options to add there, including translation stats. You can find all supported format strings in our documentation.
The default value now includes language name and translation status as can be seen in Weblate repository.
Filed under: English Weblate 0 comments Flattr this!
We have a PostgreSQL server with 16 cores that was apparently running well
below its capacity: load something between 3.0 and 4.0, around 200 active
database connections, almost all always being <IDLE>. However, when the
tps count reached 7k transactions per second, things started to throttle, and
pgbouncer (running on the database server) started listing up to half of the
client connections to be in cl_waiting state. Load was still low, but
application performance was bad.
The culprit turned out to be the kernel scheduler, fairly distributing CPU time
among all running processes. There's one single pgbouncer process, but hundreds
of postgres processes.
A simple renice of the pgbouncer process did the trick and gave us another
extra 2k tps.
Next.