asmodai is currently certified at Journeyer level.

Name: Jeroen Ruigrok van der Werven
Member since: 2000-03-30 18:18:23
Last Login: 2009-05-20 12:43:17

FOAF RDF Share This

Homepage: http://www.in-nomine.org/

Notes:

Former FreeBSD and DragonFly BSD committer. Nowadays working on Python, Trac, Babel, Genshi, and many other projects.

Projects

Recent blog entries by asmodai

Syndication: RSS 2.0

Mercurial and safely storing passwords

Mercurial allows for tying in keyring configuration for those of us who do not want to store passwords in plain-text in our .hgrc files or constantly using SSH.

First install the Python keyring library by running pip install keyring. After that is installed, checkout https://bitbucket.org/Mekk/mercurial_keyring/ and add to the $HOME/.hgrc the following:

[extensions]
mercurial_keyring = ~/path/to/mercurial_keyring/mercurial_keyring.py

Next up, configure your repositories, e.g. in the case of Bitbucket I use:

[auth]
bitbucket.prefix = bitbucket.org/asmodai
bitbucket.username = asmodai
bitbucket.schemes = https

Mercurial keyring will automatically decide on the best keyring to use. On a FreeBSD system with no Gnome or other systems providing a keyring, if you do not specify a specific keyring, the system will use the file ~/.local/share/python_keyring/keyring_pass.cfg. This keyring file stores the passwords encoded in Base64 in plain-text. This is not quite what you would want from a security point of view. You can configure which backend store to use by editing ~/.local/share/python-keyring/keyringrc.cfg. To get a plain-text file with encrypted keys use the following configuration:

[backend]
default-keyring=keyring.backend.CryptedFileKeyring

This will create the file ~/.local/share/python-keyring/crypted_pass.cfg after initializing the backend store with a password. Look at the documentation for keyring on what other configuration options are available.

Note: make sure the PyCrypto dependency is installed with the _fastmath module. This in turn depends on the gmp library.

Syndicated 2013-04-21 09:10:12 from In Nomine - The Lotus Land

Separating multiple SVN projects into individual Hg repositories

If you have a Subversion repository setup with multiple top-level projects and their typical  branches/tags/trunk setup and want to migrate these to individual Mercurial (Hg) repositories, you can do this with the convert extension.

First you need to enable convert in your .hgrc by adding a section like the following:

[extensions]
convert =

Next, if needed, create a plain-text file, e.g. author-map.txt, containing SVN username to Hg author mappings, e.g. asmodai=Jeroen Ruigrok van der Werven<email@address.tld>.

Next run Hg as follows:

hg --authors author-map.txt --config convert.svn.branches=project/branches --config convert.svn.tags=project/tags --config convert.svn.trunk=project/trunk path/to/svn/repository path/to/destination/hg/repository

This will start a SVN to Hg conversion, picking up only the changes and commit messages applicable for the various paths you gave for the branches, tags, and trunk, effectively splitting off this project from the main SVN tree into its own Hg repository.

Do note that for large SVN repositories this might not be the most efficient conversion way forward. In that case converting once from SVN to Hg and then split off Hg into many Hg repositories might be faster. Will adjust this post when I write that up.

Syndicated 2013-04-20 09:21:03 from In Nomine - The Lotus Land

Android 4.0 UI stencil

Just received my Android 4.0 UI stencil from UI Stencils. I love how it works, makes UI prototyping for Android much nicer when drawing out using pen and paper. I recommend it.

Syndicated 2013-03-05 10:24:32 from In Nomine - The Lotus Land

Eclipse and TestNG

I was playing around with Eclipse and TestNG, the thing you need/want to do is, after you have installed testng via de Eclipse market place and restart Eclipse to go to the project build path.

So right click the project and select from the popup menu Build Path » Configure Build Path...

In this window, make sure you have selected the Libraries tab in the right-hand side of the window.

Next select Add Library... and from the resulting window that pops up select TestNG (or JUnit).

When you select Next or Finish (depending whether you picked TestNG or JUnit), you will then see TestNG under the JRE System Library entry as another library entry. If you expand this you see the testng.jar being included and pointing to the right jar file that’s in Eclipse’s plugins directory.

When you now press OK you should see the imports getting resolved.

You will need to remove any external jar dependencies for TestNG or JUnit of course, because it’s double and will most likely lead to problems.

Now, when you go to Run » Run Configurations... you see a TestNG (JUnit) entry. When you select that entry and create a new configuration underneath it, it should already resolve everything you need (classes, packages, and so on).

Oh, do keep in mind that you will have to mark the test folder as a source folder for it all to work. Right click the folder, select Build Path » Use as Source Folder.

Syndicated 2013-02-05 13:55:01 from In Nomine - The Lotus Land

TortoiseHG and wildcard certificates

Having resolved recent SSL certificate issues with Mercurial/TortoiseHG, I now encountered a similar issue with the wildcard certificate for *.google.com where getting a clone would result in a "SSL: Server certificate verify failed" error.

One way around this issue is to add the fingerprint for this certificate to your configuration. Currently for *.google.com this is 4b:b7:cc:81:2c:b9:00:3a:75:97:10:27:43:61:0b:93:d9:7c:3c:19 and one to get this from a Unix command line is with openssl s_client -connect code.google.com:443 | openssl x509 -in cert-code -fingerprint -noout | tr "[:upper:]" "[:lower:]". This corresponds with Chrome’s certificate view’s thumbprint field, you just need to add colons.

Right click in Explorer, select TortoiseHG » Global Settings and then click Edit File and add the following:

[hostfingerprints]
code.google.com = 4b:b7:cc:81:2c:b9:00:3a:75:97:10:27:43:61:0b:93:d9:7c:3c:19

This should make Mercurial/TortoiseHG work, at least until the certificate expires and you need to update it with the latest fingerprint.

Syndicated 2013-02-02 15:23:20 from In Nomine - The Lotus Land

66 older entries...

 

asmodai certified others as follows:

  • asmodai certified anders as Apprentice
  • asmodai certified jhb as Journeyer
  • asmodai certified jmg as Master
  • asmodai certified eivind as Master
  • asmodai certified cmc as Journeyer
  • asmodai certified gsutter as Journeyer
  • asmodai certified benno as Journeyer
  • asmodai certified gelderen as Journeyer
  • asmodai certified dcs as Journeyer
  • asmodai certified nik as Master
  • asmodai certified imp as Master
  • asmodai certified wsanchez as Master
  • asmodai certified dirkx as Journeyer
  • asmodai certified kkenn as Journeyer
  • asmodai certified will as Journeyer
  • asmodai certified darius as Apprentice
  • asmodai certified dwhite as Journeyer
  • asmodai certified keichii as Apprentice
  • asmodai certified cg as Journeyer
  • asmodai certified unfurl as Journeyer
  • asmodai certified asmodai as Journeyer
  • asmodai certified jamesh as Journeyer
  • asmodai certified alex as Journeyer
  • asmodai certified nsayer as Journeyer
  • asmodai certified alan as Master
  • asmodai certified delta as Apprentice
  • asmodai certified ben as Master
  • asmodai certified rwatson as Journeyer
  • asmodai certified timj as Master
  • asmodai certified dcm as Journeyer
  • asmodai certified neo as Journeyer
  • asmodai certified pavlov as Journeyer
  • asmodai certified ashp as Apprentice
  • asmodai certified hp as Master
  • asmodai certified sascha as Journeyer
  • asmodai certified tigert as Journeyer
  • asmodai certified softweyr as Journeyer
  • asmodai certified mph as Journeyer
  • asmodai certified billf as Journeyer
  • asmodai certified obrien as Master
  • asmodai certified jmock as Journeyer
  • asmodai certified lilo as Journeyer
  • asmodai certified phk as Master
  • asmodai certified k as Journeyer
  • asmodai certified dnelson as Journeyer
  • asmodai certified Rasputin as Apprentice
  • asmodai certified winter as Journeyer
  • asmodai certified green as Journeyer
  • asmodai certified grog as Master
  • asmodai certified msmith as Master
  • asmodai certified jedgar as Journeyer
  • asmodai certified jwalther as Apprentice
  • asmodai certified nbm as Journeyer
  • asmodai certified des as Journeyer
  • asmodai certified quiet1 as Apprentice
  • asmodai certified Kalana as Apprentice
  • asmodai certified peter as Master
  • asmodai certified tetard as Apprentice
  • asmodai certified argent as Master
  • asmodai certified bp as Journeyer
  • asmodai certified dhagan as Apprentice
  • asmodai certified aunty as Journeyer
  • asmodai certified esr as Journeyer
  • asmodai certified krylan as Apprentice
  • asmodai certified cynick as Apprentice
  • asmodai certified thallgren as Apprentice
  • asmodai certified advogato as Journeyer
  • asmodai certified shawn as Journeyer
  • asmodai certified dan as Journeyer
  • asmodai certified sengan as Journeyer
  • asmodai certified rasmus as Master
  • asmodai certified mharo as Journeyer
  • asmodai certified ssb as Journeyer
  • asmodai certified lewing as Journeyer
  • asmodai certified scandal as Journeyer
  • asmodai certified sopwith as Journeyer
  • asmodai certified xela as Apprentice
  • asmodai certified aoliva as Master
  • asmodai certified scryer as Journeyer
  • asmodai certified DV as Journeyer
  • asmodai certified jkh as Master
  • asmodai certified jack as Journeyer
  • asmodai certified andrei as Journeyer
  • asmodai certified yosh as Master
  • asmodai certified hadess as Apprentice
  • asmodai certified dannyboy as Apprentice
  • asmodai certified Gruber as Journeyer
  • asmodai certified bmilekic as Journeyer
  • asmodai certified mvw as Journeyer
  • asmodai certified largo as Journeyer
  • asmodai certified bugg as Journeyer
  • asmodai certified gjvc as Apprentice
  • asmodai certified AilleCat as Journeyer
  • asmodai certified nib as Apprentice
  • asmodai certified footrot as Journeyer
  • asmodai certified DraX as Apprentice
  • asmodai certified carl as Apprentice
  • asmodai certified Nectar as Journeyer
  • asmodai certified jao as Journeyer
  • asmodai certified zwane as Journeyer

Others have certified asmodai as follows:

  • benno certified asmodai as Journeyer
  • jhb certified asmodai as Journeyer
  • gsutter certified asmodai as Journeyer
  • cmc certified asmodai as Journeyer
  • jmg certified asmodai as Journeyer
  • eivind certified asmodai as Journeyer
  • will certified asmodai as Journeyer
  • asmodai certified asmodai as Journeyer
  • rwatson certified asmodai as Journeyer
  • ashp certified asmodai as Journeyer
  • neo certified asmodai as Journeyer
  • mph certified asmodai as Journeyer
  • softweyr certified asmodai as Journeyer
  • billf certified asmodai as Journeyer
  • cg certified asmodai as Journeyer
  • phk certified asmodai as Apprentice
  • k certified asmodai as Journeyer
  • winter certified asmodai as Journeyer
  • jedgar certified asmodai as Journeyer
  • jamesh certified asmodai as Journeyer
  • tetard certified asmodai as Journeyer
  • peter certified asmodai as Journeyer
  • bp certified asmodai as Journeyer
  • thallgren certified asmodai as Journeyer
  • Kalana certified asmodai as Journeyer
  • aunty certified asmodai as Journeyer
  • krylan certified asmodai as Journeyer
  • andrei certified asmodai as Journeyer
  • hadess certified asmodai as Journeyer
  • dcs certified asmodai as Journeyer
  • dannyboy certified asmodai as Journeyer
  • Gruber certified asmodai as Journeyer
  • bmilekic certified asmodai as Journeyer
  • lgerbarg certified asmodai as Journeyer
  • gelderen certified asmodai as Journeyer
  • dirkx certified asmodai as Journeyer
  • mvw certified asmodai as Journeyer
  • AilleCat certified asmodai as Journeyer
  • gjvc certified asmodai as Journeyer
  • bugg certified asmodai as Journeyer
  • largo certified asmodai as Journeyer
  • nib certified asmodai as Journeyer
  • footrot certified asmodai as Journeyer
  • DraX certified asmodai as Journeyer
  • carl certified asmodai as Journeyer
  • Nectar certified asmodai as Journeyer
  • jao certified asmodai as Journeyer
  • zwane certified asmodai as Journeyer
  • wildweasel certified asmodai as Master
  • xsa certified asmodai as Journeyer
  • dyeske certified asmodai as Master
  • jlouis certified asmodai as Journeyer
  • mlaier certified asmodai as Journeyer
  • svan certified asmodai as Master
  • ara0bin26 certified asmodai as Journeyer
  • jblnyc certified asmodai as Journeyer
  • bsdgabor certified asmodai as Journeyer
  • malon certified asmodai as Journeyer
  • codrea certified asmodai as Journeyer
  • stevetaylor certified asmodai as Journeyer
  • badvogato certified asmodai as Journeyer

[ Certification disabled because you're not logged in. ]

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!

X
Share this page