Don Armstrong: ErgoDox keyboard assembly
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 (548.59 , thanks everybody!), then you can learn how I spent your money. Otherwise it s just an interesting status update on my various projects.
Distro Tracker
Now that tracker.debian.org is live, people reported bugs (on the new tracker.debian.org pseudo-package that I requested) faster than I could fix them. Still I spent many, many hours on this project, reviewing submitted patches (thanks to Christophe Siraut, Joseph Herlant, Dimitri John Ledkov, Vincent Bernat, James McCoy, Andrew Starr-Bochicchio who all submitted some patches!), fixing bugs, making sure the code works with Django 1.7, and started the same with Python 3.
I added a tox.ini so that I can easily run the test suite in all 4 supported environments (created by tox as virtualenv with the combinations of Django 1.6/1.7 and Python 2.7/3.4).
Over the month, the git repository has seen 73 commits, we fixed 16 bugs and other issues that were only reported over IRC in #debian-qa. With the help of Enrico Zini and Martin Zobel, we enabled the possibility to login via sso.debian.org (Debian s official SSO) so that Debian developers don t even have to explicitly create their account.
As usual more help is needed and I ll gladly answer your questions and review your patches.
Misc packaging work
Publican. I pushed a new upstream release of publican and dropped a useless build-dependency that was plagued by a difficult to fix RC bug (#749357 for the curious, I tried to investigate but it needs major work for make 4.x compatibility).
GNOME 3.12. With gnome-shell 3.12 hitting unstable, I had to update gnome-shell-timer (and filed an upstream ticket at the same time), a GNOME Shell extension to start some run-down counters.
Django 1.7. I packaged python-django 1.7 release candidate 1 in experimental (found a small bug, submitted a ticket with a patch that got quickly merged) and filed 85 bugs against all the reverse dependencies to ask their maintainers to test their package with Django 1.7 (that we want to upload before the freeze obviously). We identified a pain point in upgrade for packages using South and tried to discuss it with upstream, but after closer investigation, none of the packages are really affected. But the problem can hit administrators of non-packaged Django applications.
Misc stuff. I filed a few bugs (#754282 against git-import-orig uscan, #756319 against wnpp to see if someone would be willing to package loomio), reviewed an updated package for django-ratelimit in #755611, made a non-maintainer upload of mairix (without prior notice) to update the package to a new upstream release and bring it to modern packaging norms (Mako failed to make an upload in 4 years so I just went ahead and did what I would have done if it were mine).
Kali work resulting in Debian contributions
Kali wants to switch from being based on stable to being based on testing so I did try to setup britney to manage a new kali-rolling repository and encountered some problems that I reported to debian-release. Niels Thykier has been very helpful and even managed to improve britney thanks to the very specific problem that the kali setup triggered.
Since we use reprepro, I did write some Python wrapper to transform the HeidiResult file in a set of reprepro commands but at the same time I filed #756399 to request proper support of heidi files in reprepro. While analyzing britney s excuses file, I also noticed that the Kali mirrors contains many source packages that are useless because they only concern architectures that we don t host (and I filed #756523 against reprepro). While trying to build a live image of kali-rolling, I noticed that libdb5.1 and db5.1-util were still marked as priority standard when in fact Debian already switched to db5.3 and thus should only be optional (I filed #756623 against ftp.debian.org).
When doing some upgrade tests from kali (wheezy based) to kali-rolling (jessie based) I noticed some problems that were also affecting Debian Jessie. I filed #756629 against libfile-fcntllock-perl (with a patch), and also #756618 against texlive-base (missing Replaces header). I also pinged Colin Watson on #734946 because I got a spurious base-passwd prompt during upgrade (that was triggered because schroot copied my unstable s /etc/passwd file in the kali chroot and the package noticed a difference on the shell of all system users).
Thanks
See you next month for a new summary of my activities.
One comment Liked this article? Click here. My blog is Flattr-enabled.
$ ls -l /usr/bin/fping -rwxr-xr-x 1 root root 31464 May 6 21:42 /usr/bin/fping
/root/didaily/arm64).
Second create a suitable guest config file such as:
name = "debian-installer"
disk = ["phy:/dev/LVM/debian,xvda,rw"]
vif = [ '' ]
memory = 512
kernel = "/root/didaily/arm64/vmlinuz"
ramdisk= "/root/didaily/arm64/initrd.gz"
extra = "console=hvc0 -- "
In this example I'm installing to a raw logical volume
/dev/LVM/debian. You might also want to use
randmac to generate a
permanent MAC address for the Ethernet device (specified as
vif = ['mac=xx:xx:xx:xx:xx:xx']).
Once that is done you can start the guest with:
xl create -c cfg
From here you'll be in the installer and things carry on as
usual. You'll need to manually point it to ftp.debian-ports.org as
the mirror, or you can preseed by appending to the extra line in the
cfg like so:
mirror/country=manual mirror/http/hostname=ftp.debian-ports.org mirror/http/directory=/debian
Apart from that there will be a warning about not knowing how to setup
the bootloader but that is normal for now.
Installing in Qemu
To do this you will need a version of http://www.qemu.org
which supports qemu-system-aarch64. The latest release doesn't yet
so I've been using
v2.1.0-rc3
(it seems upstream are now up to -rc5). Once qemu is built and
installed and the installer
kernel
and
ramdisk
have been downloaded to $DI you can start with:
qemu-system-aarch64 -M virt -cpu cortex-a57 \
-kernel $DI/vmlinuz -initrd $DI/initrd.gz \
-append "console=ttyAMA0 -- " \
-serial stdio -nographic --monitor none \
-drive file=rootfs.qcow2,if=none,id=blk,format=qcow2 -device virtio-blk-device,drive=blk \
-net user,vlan=0 -device virtio-net-device,vlan=0
That's using a qcow2 image for the rootfs, I think I created it with
something like:
qemu-img create -f qcow2 rootfs.qcow2 4G
Once started installation proceeds much like normal. As with Xen you
will need to either point it at the debian-ports archive by hand or
preseed by adding to the -append line and the warning about no
bootloader configuration is expected.
Installing on real hardware
Someone should probably try this ;-).
#!/usr/bin/python
import syslog
import datetime
from pymongo import Connection
# It assumes we use the default database name 'logs' and collection 'syslog'
# in the rsyslog configuration.
with Connection() as client:
db = client.logs
table = db.syslog
#print "Initial count: %d" % table.count()
today = datetime.datetime.today()
# remove ANY record older than 5 weeks except mail.info
t = today - datetime.timedelta(weeks=5)
table.remove( "time": "$lt": t , "syslog_fac": "$ne" : syslog.LOG_MAIL )
# remove any debug record older than 7 days
t = today - datetime.timedelta(days=7)
table.remove( "time": "$lt": t , "syslog_sever": syslog.LOG_DEBUG )
#print "Final count: %d" % table.count()
Just put it in /usr/local/bin and run it daily from cron.
Customization
Just adapt the table.remove statements as required. See the PyMongo tutorial for a very basic introduction to the query syntax and full details in the MongoDB query operator reference for creating more elaborate pruning rules.
Potential improvements

Yay!
Today I finally submitted our book, Fundamentos de Sistemas Operativos, for the Editorial Department of our institute. Of course, I'm not na ve enough to assume there won't be a heavy editorial phase, but I'm more than eager to dive into it... And have the book printed in maybe two months time!
Of course, this book is to be published under a free license (CC-BY-SA). And I'm talking with the coauthors, we are about to push the Git repository to a public location, as we believe the source for the text and figures can also be of interest to others.
The book itself (as I've already boasted about here :- ) is available (somewhat as a preprint) for download.
[update] Talked it over with the coauthors, and we finally have a public repository! Clone it from:
https://github.com/gwolf/sistop.git
Or just browse it from Github's web interface.
This is time again for my annual report about the number of developers per
country.
This is now the sixth edition of this report. Former editions:
So, here we are with the July 2014 version, sorted by the ratio of *active* developers per million
population for each country.
Act: number of active developers Dev: total number of developers A/M: number of active devels per million pop. D/M: number of devels per million pop. 2009: rank in 2009 2010: rank in 2010 2011: rank in 2011 (June) 2012: rank in 2012 (June) 2013: rank in 2012 (July) 2014: rank now
| Code | Name | Population | Act Dev | Dev | Act/Million | Dev/Million | 2009 | 2010 | June 2011 | June 2012 | July 2013 | July 2014 | |
| fi | Finland | 5259250 | 19 | 31 | 3,61 | 5,89 | 1 | 1 | 1 | 1 | 1 | 1 | |
| ie | Ireland | 4670976 | 13 | 17 | 2,78 | 3,64 | 13 | 9 | 6 | 2 | 2 | 2 | |
| nz | New Zealand | 4331600 | 11 | 15 | 2,54 | 3,46 | 4 | 3 | 5 | 7 | 7 | 3 | * |
| mq | Martinique | 396404 | 1 | 1 | 2,52 | 2,52 | 3 | 4 | 4 | 4 | |||
| se | Sweden | 9088728 | 22 | 37 | 2,42 | 4,07 | 3 | 6 | 7 | 5 | 5 | 5 | |
| ch | Switzerland | 7870134 | 19 | 29 | 2,41 | 3,68 | 2 | 2 | 2 | 3 | 3 | 6 | * |
| no | Norway | 4973029 | 11 | 14 | 2,21 | 2,82 | 5 | 4 | 4 | 6 | 6 | 7 | * |
| at | Austria | 8217280 | 18 | 29 | 2,19 | 3,53 | 6 | 8 | 10 | 10 | 10 | 8 | * |
| de | Germany | 81471834 | 164 | 235 | 2,01 | 2,88 | 7 | 7 | 9 | 9 | 8 | 9 | * |
| lu | Luxemburg | 503302 | 1 | 1 | 1,99 | 1,99 | 8 | 5 | 8 | 8 | 9 | 10 | * |
| fr | France | 65350000 | 101 | 131 | 1,55 | 2 | 12 | 12 | 11 | 11 | 11 | 11 | |
| au | Australia | 22607571 | 32 | 60 | 1,42 | 2,65 | 9 | 10 | 12 | 12 | 12 | 12 | |
| be | Belgium | 11071483 | 14 | 17 | 1,26 | 1,54 | 10 | 11 | 13 | 13 | 13 | 13 | |
| uk | United-Kingdom | 62698362 | 77 | 118 | 1,23 | 1,88 | 14 | 14 | 14 | 14 | 14 | 14 | |
| nl | Netherlands | 16728091 | 18 | 40 | 1,08 | 2,39 | 11 | 13 | 15 | 15 | 15 | 15 | |
| ca | Canada | 33476688 | 34 | 63 | 1,02 | 1,88 | 15 | 15 | 17 | 16 | 16 | 16 | |
| dk | Denmark | 5529888 | 5 | 10 | 0,9 | 1,81 | 17 | 17 | 16 | 17 | 17 | 17 | |
| es | Spain | 46754784 | 34 | 56 | 0,73 | 1,2 | 16 | 16 | 19 | 18 | 18 | 18 | |
| it | Italy | 59464644 | 36 | 52 | 0,61 | 0,87 | 23 | 22 | 22 | 19 | 19 | 19 | |
| hu | Hungary | 10076062 | 6 | 12 | 0,6 | 1,19 | 18 | 25 | 26 | 20 | 24 | 20 | * |
| cz | Czech Rep | 10190213 | 6 | 6 | 0,59 | 0,59 | 21 | 20 | 21 | 21 | 20 | 21 | * |
| us | USA | 313232044 | 175 | 382 | 0,56 | 1,22 | 19 | 21 | 25 | 24 | 22 | 22 | |
| il | Israel | 7740900 | 4 | 6 | 0,52 | 0,78 | 24 | 24 | 24 | 25 | 23 | 23 | |
| hr | Croatia | 4290612 | 2 | 2 | 0,47 | 0,47 | 20 | 18 | 18 | 26 | 25 | 24 | * |
| lv | Latvia | 2204708 | 1 | 1 | 0,45 | 0,45 | 26 | 26 | 27 | 27 | 26 | 25 | * |
| bg | Bulgaria | 7364570 | 3 | 3 | 0,41 | 0,41 | 25 | 23 | 23 | 23 | 27 | 26 | * |
| sg | Singapore | 5183700 | 2 | 2 | 0,39 | 0,39 | 33 | 33 | 27 | * | |||
| uy | Uruguay | 3477778 | 1 | 2 | 0,29 | 0,58 | 22 | 27 | 28 | 28 | 28 | 28 | |
| pl | Poland | 38441588 | 11 | 15 | 0,29 | 0,39 | 29 | 29 | 30 | 30 | 30 | 29 | * |
| jp | Japan | 127078679 | 36 | 52 | 0,28 | 0,41 | 30 | 28 | 29 | 29 | 29 | 30 | * |
| lt | Lithuania | 3535547 | 1 | 1 | 0,28 | 0,28 | 28 | 19 | 20 | 22 | 21 | 31 | * |
| gr | Greece | 10787690 | 3 | 4 | 0,28 | 0,37 | 33 | 38 | 34 | 35 | 35 | 32 | * |
| cr | Costa Rica | 4301712 | 1 | 1 | 0,23 | 0,23 | 31 | 30 | 31 | 31 | 31 | 33 | * |
| by | Belarus | 9577552 | 2 | 2 | 0,21 | 0,21 | 35 | 36 | 39 | 39 | 32 | 34 | * |
| ar | Argentina | 40677348 | 8 | 10 | 0,2 | 0,25 | 34 | 33 | 35 | 32 | 37 | 35 | * |
| pt | Portugal | 10561614 | 2 | 4 | 0,19 | 0,38 | 27 | 32 | 32 | 34 | 34 | 36 | * |
| sk | Slovakia | 5477038 | 1 | 1 | 0,18 | 0,18 | 32 | 31 | 33 | 36 | 36 | 37 | * |
| rs | Serbia | 7186862 | 1 | 1 | 0,14 | 0,14 | 38 | 38 | |||||
| tw | Taiwan | 23040040 | 3 | 3 | 0,13 | 0,13 | 37 | 34 | 37 | 37 | 39 | 39 | |
| br | Brazil | 192376496 | 18 | 21 | 0,09 | 0,11 | 36 | 35 | 38 | 38 | 40 | 40 | |
| cu | Cuba | 11241161 | 1 | 1 | 0,09 | 0,09 | 38 | 41 | 41 | 41 | 41 | ||
| co | Colombia | 45566856 | 4 | 5 | 0,09 | 0,11 | 41 | 44 | 46 | 47 | 46 | 42 | * |
| kr | South Korea | 48754657 | 4 | 6 | 0,08 | 0,12 | 39 | 39 | 42 | 42 | 42 | 43 | * |
| gt | Guatemala | 13824463 | 1 | 1 | 0,07 | 0,07 | 43 | 44 | * | ||||
| ec | Ecuador | 15007343 | 1 | 1 | 0,07 | 0,07 | 40 | 43 | 43 | 45 | 45 | ||
| cl | Chile | 16746491 | 1 | 2 | 0,06 | 0,12 | 42 | 41 | 44 | 44 | 47 | 46 | * |
| za | South Africa | 50590000 | 3 | 10 | 0,06 | 0,2 | 38 | 48 | 48 | 48 | 48 | 47 | * |
| ru | Russia | 143030106 | 8 | 9 | 0,06 | 0,06 | 43 | 42 | 47 | 45 | 49 | 48 | * |
| mg | Madagascar | 21281844 | 1 | 1 | 0,05 | 0,05 | 44 | 37 | 40 | 40 | 50 | 49 | * |
| ro | Romania | 21904551 | 1 | 2 | 0,05 | 0,09 | 45 | 43 | 45 | 46 | 51 | 50 | * |
| ve | Venezuela | 28047938 | 1 | 1 | 0,04 | 0,04 | 40 | 45 | 50 | 49 | 44 | 51 | * |
| my | Malaysia | 28250000 | 1 | 1 | 0,04 | 0,04 | 49 | 50 | 52 | 52 | |||
| pe | Peru | 29907003 | 1 | 1 | 0,03 | 0,03 | 46 | 46 | 51 | 51 | 53 | 53 | |
| tr | Turkey | 74724269 | 2 | 2 | 0,03 | 0,03 | 47 | 47 | 52 | 52 | 54 | 54 | |
| ua | Ukraine | 45134707 | 1 | 1 | 0,02 | 0,02 | 48 | 53 | 58 | 59 | 55 | 55 | |
| th | Thailand | 66720153 | 1 | 2 | 0,01 | 0,03 | 50 | 50 | 54 | 54 | 56 | 56 | |
| eg | Egypt | 80081093 | 1 | 3 | 0,01 | 0,04 | 51 | 51 | 55 | 55 | 57 | 57 | |
| mx | Mexico | 112336538 | 1 | 1 | 0,01 | 0,01 | 49 | 49 | 53 | 53 | 58 | 58 | |
| cn | China | 1344413526 | 10 | 14 | 0,01 | 0,01 | 53 | 53 | 57 | 56 | 59 | 59 | |
| in | India | 1210193422 | 8 | 9 | 0,01 | 0,01 | 52 | 52 | 56 | 57 | 60 | 60 | |
| sv | El Salvador | 7066403 | 0 | 1 | 0 | 0,14 | 36 | 58 | 61 | 61 | |||
| 969 | 1561 | 62,08% |
Finally I find the mood to do this, a process which started 5 years ago in DebConf 9 at C ceres by following Ana's post, of course with my preferred options and my name, not like some other ;-).1024D/C9B55DAC 2005-01-19 [expires: 2015-10-01] Key fingerprint = CFB7 C779 6BAE E81C 3E05 7172 2C04 5542 C9B5 5DAC
4096R/DE5BCCA6 2009-07-29 Key fingerprint = 43BC 364B 16DF 0C20 5EBD 7592 1F0F 0A88 DE5B CCA6
Dog, long time since I blogged about my running
activities. Apparently, I didn't since.....I
posted a summary for 2013.
So, well, that will be a long update as many things happened during
the first half of 2014 when it comes at running, for me.
January: I was recovering from a fatigue fracture injury
inherited from last races in 2013. As a consequence, I resumed running
only on Jan 7th. Therefore I cancelled my participation to the "Semi
Raid 28", an night orienteering raid of about 50-60km in southern
neighbourhood of Paris. Instead, I actually offerred my help to
organizers in collecting orienteering signs after the race (the
longest one : 120km). So, I ended up spending over 24 hours running in
woods and hunting down hidden signs with the same information than
runners. My only advantage was that I was able to use my car to go
from one point to another. Still, I ended up running over 70km in many
small parts, often alone in the dark woods with my headlamp, on very
muddy areas...and
collecting nearly 80 huge signs.
February: Everything was going well and I for instance ran a
great half-marathon in Bullion (south of Paris) in 1h3821" (great for
a quite hilly race)....until I twisted my left
ankle while running back from work. A quite severe twist, though no
bone damage, thankfully. I had to stop running, again, for 3
years. Biking to/from work was the replacement activity....
March: I resumed running on March 10th, one week before a quite
difficult trail race in my neighbourhood (30km "only" but up to 800
meters positive climb). That race was a preparation (and a test after
the injury) for my 3rd participation to "Paris Ecotrail", a 80km trail
race in woods of the South-West area of Paris, ending in the Eiffel
Tower area. Indeed, both went very well, though I was very careful
with my ankle. I finally broke my record at Ecotrail, finishing the
race in 9h08 (to be compared to 9h36 last year and 11h15 the year
before).
April: Paris marathon was scheduled one week after
Ecotrail. Everybody will tell you that running a marathon one week
after a 80km race is kinda crazy.....which is why I made it..:-). That
was my 3rd Paris marathon and my 12th marathon overall. However, this
year, no record in sight. The challenge was running the
marathon....dressed as SpongeBob (you know me, right?). I actually had
great fun doing that and was happy to get zillions of cheering all
over the race, from the crowd. I finally completed the race in 4h30,
which is, after all, not that far from the time of my very first
marathon (4h12). The only drawback was that the succession of quite
very long distance runs made my left knee suffer as it never happened
before. As a consequence, I (again) had to stop running for nearly one
month before we found that I was quite sensitive to pronation, which
the succession of long and slow races made worse.
May: so finally afterthese (very) long weeks, I could gradually
resume running, which finally culminated in mid-May with the 50km race
"trail des Cerfs", in the Rambouillet Forest, closed to our
place. This quite long but not too difficult trail race ("only" 800
meters positive climb overall) was completed in 5h16, which was
completely unexpected, given the low training during the previous
weeks.
June: no race during that month. The entire month was focused
on preparing the Montagn'hard race of July 5th: so several training
sessions with a lot of climbing either by running or by fast walking
(nordic style) as well as downhill run training (always important for
moutain trail).
July: the second "big peak" of my 2014 season was scheduled for
July 5th: "La Montagn'hard", a moutain trail race close to Les
Contamines in the neighbourhood of Chamonix, the french moutaineering
Mekkah. "Only" 60 kilometers....but close to 5000 meters positive
climb. Montagn'hard is among the thoughest moutain trail races in
France and therefore a "must do" for trail runners. This race week-end
includes also a 105km ultra-race, which is often said to be as hard,
even maybe harder, than the very famous "Ultra Trail du Mont-Blanc"
trail in Chamonix. Still, for my second only season in moutain trail
running, I decided to be "wise" and stick with the "medium" version
(after all, my experience, as of now with moutain trails were only two
quite "short" ones). Needless to say, it has indeed been a GREAT
race. The environment is wonderful ("Miage" side of the Mont-Blanc
range), the race goes through great place (Col de Tricot, noticeably)
and I made a great result by finishing80th out of 325+ runners, in
12h18, while my target time was around 13 hours.
This is where I am now. Nearly one month after Montagn'hard, I'm
deeply training for my next Big Goal: The "Sur la Trace des Ducs de
Savoie" or "TDS", one of the 4 races of the Ultra Trail du Mont-Blanc
week, in end August (during DebConf): 120km, nearly 7500m positive
climp, between Courmayeur and Chamonix, through several passes, up to
2600m height. Yet another challenge: my first "over 24h" race, with a
full night out in the moutains.
You'll certainly hear again from me about that...:-)
This is time again for my annual report about the number of developers per
country.
This is now the sixth edition of this report. Former editions:
So, here we are with the July 2014 version, sorted by the ratio of *active* developers per million
population for each country.
Act: number of active developers Dev: total number of developers A/M: number of active devels per million pop. D/M: number of devels per million pop. 2009: rank in 2009 2010: rank in 2010 2011: rank in 2011 (June) 2012: rank in 2012 (June) 2013: rank in 2012 (July) 2014: rank now
| Code | Name | Population | Act Dev | Dev | Act/Million | Dev/Million | 2009 | 2010 | June 2011 | June 2012 | July 2013 | July 2014 | |
| fi | Finland | 5259250 | 19 | 31 | 3,61 | 5,89 | 1 | 1 | 1 | 1 | 1 | 1 | |
| ie | Ireland | 4670976 | 13 | 17 | 2,78 | 3,64 | 13 | 9 | 6 | 2 | 2 | 2 | |
| nz | New Zealand | 4331600 | 11 | 15 | 2,54 | 3,46 | 4 | 3 | 5 | 7 | 7 | 3 | * |
| mq | Martinique | 396404 | 1 | 1 | 2,52 | 2,52 | 3 | 4 | 4 | 4 | |||
| se | Sweden | 9088728 | 22 | 37 | 2,42 | 4,07 | 3 | 6 | 7 | 5 | 5 | 5 | |
| ch | Switzerland | 7870134 | 19 | 29 | 2,41 | 3,68 | 2 | 2 | 2 | 3 | 3 | 6 | * |
| no | Norway | 4973029 | 11 | 14 | 2,21 | 2,82 | 5 | 4 | 4 | 6 | 6 | 7 | * |
| at | Austria | 8217280 | 18 | 29 | 2,19 | 3,53 | 6 | 8 | 10 | 10 | 10 | 8 | * |
| de | Germany | 81471834 | 164 | 235 | 2,01 | 2,88 | 7 | 7 | 9 | 9 | 8 | 9 | * |
| lu | Luxemburg | 503302 | 1 | 1 | 1,99 | 1,99 | 8 | 5 | 8 | 8 | 9 | 10 | * |
| fr | France | 65350000 | 101 | 131 | 1,55 | 2 | 12 | 12 | 11 | 11 | 11 | 11 | |
| au | Australia | 22607571 | 32 | 60 | 1,42 | 2,65 | 9 | 10 | 12 | 12 | 12 | 12 | |
| be | Belgium | 11071483 | 14 | 17 | 1,26 | 1,54 | 10 | 11 | 13 | 13 | 13 | 13 | |
| uk | United-Kingdom | 62698362 | 77 | 118 | 1,23 | 1,88 | 14 | 14 | 14 | 14 | 14 | 14 | |
| nl | Netherlands | 16728091 | 18 | 40 | 1,08 | 2,39 | 11 | 13 | 15 | 15 | 15 | 15 | |
| ca | Canada | 33476688 | 34 | 63 | 1,02 | 1,88 | 15 | 15 | 17 | 16 | 16 | 16 | |
| dk | Denmark | 5529888 | 5 | 10 | 0,9 | 1,81 | 17 | 17 | 16 | 17 | 17 | 17 | |
| es | Spain | 46754784 | 34 | 56 | 0,73 | 1,2 | 16 | 16 | 19 | 18 | 18 | 18 | |
| it | Italy | 59464644 | 36 | 52 | 0,61 | 0,87 | 23 | 22 | 22 | 19 | 19 | 19 | |
| hu | Hungary | 10076062 | 6 | 12 | 0,6 | 1,19 | 18 | 25 | 26 | 20 | 24 | 20 | * |
| cz | Czech Rep | 10190213 | 6 | 6 | 0,59 | 0,59 | 21 | 20 | 21 | 21 | 20 | 21 | * |
| us | USA | 313232044 | 175 | 382 | 0,56 | 1,22 | 19 | 21 | 25 | 24 | 22 | 22 | |
| il | Israel | 7740900 | 4 | 6 | 0,52 | 0,78 | 24 | 24 | 24 | 25 | 23 | 23 | |
| hr | Croatia | 4290612 | 2 | 2 | 0,47 | 0,47 | 20 | 18 | 18 | 26 | 25 | 24 | * |
| lv | Latvia | 2204708 | 1 | 1 | 0,45 | 0,45 | 26 | 26 | 27 | 27 | 26 | 25 | * |
| bg | Bulgaria | 7364570 | 3 | 3 | 0,41 | 0,41 | 25 | 23 | 23 | 23 | 27 | 26 | * |
| sg | Singapore | 5183700 | 2 | 2 | 0,39 | 0,39 | 33 | 33 | 27 | * | |||
| uy | Uruguay | 3477778 | 1 | 2 | 0,29 | 0,58 | 22 | 27 | 28 | 28 | 28 | 28 | |
| pl | Poland | 38441588 | 11 | 15 | 0,29 | 0,39 | 29 | 29 | 30 | 30 | 30 | 29 | * |
| jp | Japan | 127078679 | 36 | 52 | 0,28 | 0,41 | 30 | 28 | 29 | 29 | 29 | 30 | * |
| lt | Lithuania | 3535547 | 1 | 1 | 0,28 | 0,28 | 28 | 19 | 20 | 22 | 21 | 31 | * |
| gr | Greece | 10787690 | 3 | 4 | 0,28 | 0,37 | 33 | 38 | 34 | 35 | 35 | 32 | * |
| cr | Costa Rica | 4301712 | 1 | 1 | 0,23 | 0,23 | 31 | 30 | 31 | 31 | 31 | 33 | * |
| by | Belarus | 9577552 | 2 | 2 | 0,21 | 0,21 | 35 | 36 | 39 | 39 | 32 | 34 | * |
| ar | Argentina | 40677348 | 8 | 10 | 0,2 | 0,25 | 34 | 33 | 35 | 32 | 37 | 35 | * |
| pt | Portugal | 10561614 | 2 | 4 | 0,19 | 0,38 | 27 | 32 | 32 | 34 | 34 | 36 | * |
| sk | Slovakia | 5477038 | 1 | 1 | 0,18 | 0,18 | 32 | 31 | 33 | 36 | 36 | 37 | * |
| rs | Serbia | 7186862 | 1 | 1 | 0,14 | 0,14 | 38 | 38 | |||||
| tw | Taiwan | 23040040 | 3 | 3 | 0,13 | 0,13 | 37 | 34 | 37 | 37 | 39 | 39 | |
| br | Brazil | 192376496 | 18 | 21 | 0,09 | 0,11 | 36 | 35 | 38 | 38 | 40 | 40 | |
| cu | Cuba | 11241161 | 1 | 1 | 0,09 | 0,09 | 38 | 41 | 41 | 41 | 41 | ||
| co | Colombia | 45566856 | 4 | 5 | 0,09 | 0,11 | 41 | 44 | 46 | 47 | 46 | 42 | * |
| kr | South Korea | 48754657 | 4 | 6 | 0,08 | 0,12 | 39 | 39 | 42 | 42 | 42 | 43 | * |
| gt | Guatemala | 13824463 | 1 | 1 | 0,07 | 0,07 | 43 | 44 | * | ||||
| ec | Ecuador | 15007343 | 1 | 1 | 0,07 | 0,07 | 40 | 43 | 43 | 45 | 45 | ||
| cl | Chile | 16746491 | 1 | 2 | 0,06 | 0,12 | 42 | 41 | 44 | 44 | 47 | 46 | * |
| za | South Africa | 50590000 | 3 | 10 | 0,06 | 0,2 | 38 | 48 | 48 | 48 | 48 | 47 | * |
| ru | Russia | 143030106 | 8 | 9 | 0,06 | 0,06 | 43 | 42 | 47 | 45 | 49 | 48 | * |
| mg | Madagascar | 21281844 | 1 | 1 | 0,05 | 0,05 | 44 | 37 | 40 | 40 | 50 | 49 | * |
| ro | Romania | 21904551 | 1 | 2 | 0,05 | 0,09 | 45 | 43 | 45 | 46 | 51 | 50 | * |
| ve | Venezuela | 28047938 | 1 | 1 | 0,04 | 0,04 | 40 | 45 | 50 | 49 | 44 | 51 | * |
| my | Malaysia | 28250000 | 1 | 1 | 0,04 | 0,04 | 49 | 50 | 52 | 52 | |||
| pe | Peru | 29907003 | 1 | 1 | 0,03 | 0,03 | 46 | 46 | 51 | 51 | 53 | 53 | |
| tr | Turkey | 74724269 | 2 | 2 | 0,03 | 0,03 | 47 | 47 | 52 | 52 | 54 | 54 | |
| ua | Ukraine | 45134707 | 1 | 1 | 0,02 | 0,02 | 48 | 53 | 58 | 59 | 55 | 55 | |
| th | Thailand | 66720153 | 1 | 2 | 0,01 | 0,03 | 50 | 50 | 54 | 54 | 56 | 56 | |
| eg | Egypt | 80081093 | 1 | 3 | 0,01 | 0,04 | 51 | 51 | 55 | 55 | 57 | 57 | |
| mx | Mexico | 112336538 | 1 | 1 | 0,01 | 0,01 | 49 | 49 | 53 | 53 | 58 | 58 | |
| cn | China | 1344413526 | 10 | 14 | 0,01 | 0,01 | 53 | 53 | 57 | 56 | 59 | 59 | |
| in | India | 1210193422 | 8 | 9 | 0,01 | 0,01 | 52 | 52 | 56 | 57 | 60 | 60 | |
| sv | El Salvador | 7066403 | 0 | 1 | 0 | 0,14 | 36 | 58 | 61 | 61 | |||
| 969 | 1561 | 62,08% |
<<ERROR 2014-07-10T23:52:46.948Z>> Unrecoverable exception. Cannot call method 'extend' of undefined
at /home/vagrant/dev/xtuple/lib/backbone-x/source/model.js:37:39
at Object.<anonymous> (/home/vagrant/dev/xtuple/lib/backbone-x/source/model.js:1364:3)
...do $$
/* Only create the schema if it hasn't been created already */
var res, sql = "select schema_name from information_schema.schemata where schema_name = 'sa'",
res = plv8.execute(sql);
if (!res.length)
sql = "create schema sa; grant all on schema sa to group xtrole;"
plv8.execute(sql);
$$ language plv8;select xt.create_table('usrlitesip', 'sa');
select xt.add_column('usrlitesip','usrlitesip_id', 'serial', 'primary key', 'sa');
select xt.add_column('usrlitesip','usrlitesip_usr_username', 'text', 'references xt.usrlite (usr_username)', 'sa');
select xt.add_column('usrlitesip','usrlitesip_uri', 'text', '', 'sa');
select xt.add_column('usrlitesip','usrlitesip_name', 'text', '', 'sa');
select xt.add_column('usrlitesip','usrlitesip_password', 'text', '', 'sa');
comment on table sa.usrlitesip is 'Joins User with SIP account';$ cd /path/to/xtuple-extensions/source/sip_account/database/source
$ psql -U admin -d dev -f create_sa_schema.sql
$ psql -U admin -d dev -f usrlitesip.sql$ psql -U admin -d dev -c "select * from sa.usrlitesip;"
"name": "sip_account",
"version": "1.4.1",
"comment": "Sip Account extension",
"loadOrder": 999,
"dependencies": ["crm"],
"databaseScripts": [
"create_sa_schema.sql",
"usrlitesip.sql",
"register.sql"
]
$ cd /path/to/xtuple
$ ./scripts/build_app.js -d dev -e ../xtuple-extensions/source/sip_account
$ psql -U admin -d dev -c "select * from xt.ext;" 1 [
2
3 "context": "sip_account",
4 "nameSpace": "XM",
5 "type": "UserAccount",
6 "table": "sa.usrlitesip",
7 "isExtension": true,
8 "isChild": false,
9 "comment": "Extended by Sip",
10 "relations": [
11
12 "column": "usrlitesip_usr_username",
13 "inverse": "username"
14
15 ],
16 "properties": [
17
18 "name": "uri",
19 "attr":
20 "type": "String",
21 "column": "usrlitesip_uri",
22 "isNaturalKey": true
23
24 ,
25
26 "name": "displayName",
27 "attr":
28 "type": "String",
29 "column": "usrlitesip_name"
30
31 ,
32
33 "name": "sipPassword",
34 "attr":
35 "type": "String",
36 "column": "usrlitesip_password"
37
38
39 ],
40 "isSystem": true
41 ,
42
43 "context": "sip_account",
44 "nameSpace": "XM",
45 "type": "UserAccountRelation",
46 "table": "sa.usrlitesip",
47 "isExtension": true,
48 "isChild": false,
49 "comment": "Extended by Sip",
50 "relations": [
51
52 "column": "usrlitesip_usr_username",
53 "inverse": "username"
54
55 ],
56 "properties": [
57
58 "name": "uri",
59 "attr":
60 "type": "String",
61 "column": "usrlitesip_uri",
62 "isNaturalKey": true
63
64 ,
65
66 "name": "displayName",
67 "attr":
68 "type": "String",
69 "column": "usrlitesip_name"
70
71 ,
72
73 "name": "sipPassword",
74 "attr":
75 "type": "String",
76 "column": "usrlitesip_password"
77
78
79 ],
80 "isSystem": true
81
82 ]XT.extensions.sip_account.initWorkspace = function ()
var extensions = [
kind: "onyx.GroupboxHeader", container: "mainGroup", content: "_sipAccount".loc() ,
kind: "XV.InputWidget", container: "mainGroup", attr: "uri" ,
kind: "XV.InputWidget", container: "mainGroup", attr: "displayName" ,
kind: "XV.InputWidget", container: "mainGroup", type:"password", attr: "sipPassword"
];
XV.appendExtension("XV.UserAccountWorkspace", extensions);
;enyo.depends(
"workspace.js"
);enyo.depends(
"views"
);XT.extensions.icecream = ;enyo.depends(
"core.js",
"views"
);(function ()
"use strict";
var lang = XT.stringsFor("en_US",
"_sipAccount": "Sip Account",
"_uri": "Sip URI",
"_displayName": "Display Name",
"_sipPassword": "Password"
);
if (typeof exports !== 'undefined')
exports.language = lang;
());$ cd /path/to/xtuple
$ ./scripts/build_app.js -d dev -e ../xtuple-extensions/source/sip_account
$ node node-datasource/main.jsXT.extensions.sip_account.initParameterWidget = function ()
var extensions = [
kind: "onyx.GroupboxHeader", content: "_sipAccount".loc() ,
name: "uri", label: "_uri".loc(), attr: "uri", defaultKind: "XV.InputWidget" ,
name: "displayName", label: "_displayName".loc(), attr: "displayName", defaultKind: "XV.InputWidget"
];
XV.appendExtension("XV.UserAccountListParameters", extensions);
;enyo.depends(
"parameter.js"
);enyo.depends(
"core.js",
"widgets"
"views"
);1 var oldUserAccountListCreate = XV.UserAccountList.prototype.create;
2
3 XV.UserAccountList.prototype.create = function ()
4 oldUserAccountListCreate.apply(this, arguments);
5 this.createComponent(
6 kind: "XV.ListColumn", container: this.$.listItem, components: [
7 kind: "XV.ListAttr", attr: "uri"
8 ] )
9 ;XT.extensions.sip_account.initList = function ()
//Code here
;enyo.depends(
"list.js",
"workspace.js"
);
A long time ago, I did some (quite minor!) work on natural language parsing. Most of what I got was the very basic rudiments on what needs to be done to begin with. But I like reading some texts on the subject every now and then.
I am also a member of the ACM Association for Computing Machinery. Most of you will be familiar with it, it's one of the main scholarly associations for the field of computing. One of the basic perks of being an ACM member is the subscription to a very nice magazine, Communications of the ACM. And, of course, although I enjoy the physical magazine, I like reading some columns and articles as they appear along the month using the RSS feeds. They also often contain pointers to interesting reads on other media As happened today. I found quite a nice article, I think, worth sharing with whoever thinks I have interesting things to say.
They published a very short blurb titled The Fasinatng Frustrating Fascinating History of Autocorrect. I was somewhat skeptical reading it links to an identically named article, published in Wired. But gave it a shot, anyway...
The article follows a style that's often abused and not very amusing, but I think was quite well done: The commented interview. Rather than just drily following through an interview, the writer tells us a story about that interview. And this is the story of Gideon Lewis-Kraus interviewing Dean Hachamovitch, the creator of the much hated (but very much needed) autocorrect feature that appeared originally in Microsoft Word.
The story of Hachamovitch's work (and its derivations, to the much maligned phone input predictors) over the last twenty-something years is very light to read, very easy to enjoy. I hope you find it as interesting as I did.
I have used LaTeX and latex-beamer for pretty much my entire life of document and presentation production, i. e. since about my 9th school grade. I ve always found the LaTeX syntax a bit clumsy, but with good enough editor shortcuts to insert e. g. \begin itemize \item...\end itemize with just two keystrokes, it has been good enough for me.
A few months ago a friend of mine pointed out pandoc to me, which is just simply awesome. It can convert between a million document formats, but most importantly take Markdown and spit out LaTeX, or directly PDF (through an intermediate step of building a LaTeX document and calling pdftex). It also has a template for beamer. Documents now look soo much more readable and are easier to write! And you can always directly write LaTeX commands without any fuss, so that you can use markdown for the structure/headings/enumerations/etc., and LaTeX for formulax, XYTex and the other goodies. That s how it should always should have been!
So last night I finally sat down and created a vim config for it:
"-- pandoc Markdown+LaTeX -------------------------------------------
function s:MDSettings()
inoremap <buffer> <Leader>n \note[item] <Esc>i
noremap <buffer> <Leader>b :! pandoc -t beamer % -o %<.pdf<CR><CR>
noremap <buffer> <Leader>l :! pandoc -t latex % -o %<.pdf<CR>
noremap <buffer> <Leader>v :! evince %<.pdf 2>&1 >/dev/null &<CR><CR>
" adjust syntax highlighting for LaTeX parts
" inline formulas:
syntax region Statement oneline matchgroup=Delimiter start="\$" end="\$"
" environments:
syntax region Statement matchgroup=Delimiter start="\\begin .* " end="\\end .* " contains=Statement
" commands:
syntax region Statement matchgroup=Delimiter start=" " end=" " contains=Statement
endfunction
autocmd BufRead,BufNewFile *.md setfiletype markdown
autocmd FileType markdown :call <SID>MDSettings()
That gives me good enough (with some quirks) highlighting without trying to interpret TeX stuff as Markdown, and shortcuts for calling pandoc and evince. Improvements appreciated!
Next.