What is your favorite condiment asked a coworker? I would probably pick Currygewürzketchup.
I have discovered that on my second trip to Berlin a decade ago. After landing at the old Berlin airport I headed up outside for some fresh air and encountered a food truck. Being a little hungry I headed in that direction,, hoping I could discover a bit of the local cuisine. It was around 3pm which is an unusual time to pick up food in France. Unless your a young hipster or are clueless of France strict eating schedule, we observe a strict timing 7am, 1pm, 4pm, 8pm without snack in between. Being in the vicinity of an airport it smelled like a tourist trap and my expectations were not that high.
As approached I noticed the waiting line was entirely composed of people in their very strict business attires (fancy suits for men, skirt suite and blouse for women with brief cases). It set me on alert, their outfits indicate they are most probably well educated and those people would probably not fall for the usual tourist crap food. I thus entered the line and the truck chef, in a perfect English, recommended me their classic: the currywurst. It is pork sausage with a spiced tomato paste topped with curry powder. It has been a revelation, and a few days later I went to walk more than one hour to head to the best currywurst place in Berlin since I needed my fix.
mercredi 7 septembre 2022
Picking a favorite condiment
mardi 1 février 2022
What does senior means in a job title?
Copy pasted from a writing I have done in a chat. I haven't proofread the text.
vendredi 15 octobre 2021
A post I have send to Wikimedia Foundation internal communication system. I have lightly edited it for public publishing.
When I was around ten years old (the age of my oldest kid today) I have stepped upon the front page of a scientific magazine: "the highways of information". I was supposed to intend a class at the music school but time has flown as I was busy reading the lengthy article describing what will become the world wide web and the internet. It was roughly in 1988.
I have been lucky to have an internet connection as early as of 1995 and internet became my second home. Sometime in 1999, someone introduced me to the concept of wikis. The internet bubble had not busted yet, blogs were barely a thing and neither Wikipedia nor MySpace existed. The conversation went more or less like:
Anonymous: "it is a revolution, a site that anyone can edit"
"A site that anyone can edit?" I repeated.
And I quickly continued: "That is dumb, it will never stand the script kiddies defacing website for the lulz".
I just have turned 21 and I was definitely a fool but did not know about it at the time nor I could expect the so called web 2.0 that will be put the world in the digital era.
A few years later I was browsing Usenet (more or less the equivalent of Quora/Wikipedia/Facebook/Twitter at that time). People used their post signature as a little advertisement place. Often for their personal website or for little projects they wanted to show case to the world. You expect it: that landed me on an article of the french Wikipedia.
One
never knows where a link can lead you too. It could be the best, the
worse or simply a life changing experience. Previous exposure to the
term wiki
kicked memory as it was showing in the Wikipedia domain name. It has
struck my curiosity and I obviously had to hit the site. Page loaded and
I promptly clicked `[edit]` in order to deface it and prove my point.
Instead I felt I could contribute fr a change and improve the text
following the path of Diderot and d'Alembert
(french encyclopedists). It was in October 2002, a few days after I
have turned 24 years old and the start of my wiki adventure.
For almost twenty years Wikipedia has been part of my life, if not my life. When I have joined the foundation (thank you Sam Reed, Chad Horohoe, Rob Lanphier and others), my family, friends and acquaintances had a relief: Antoine will finally stop talking about Wikipedia from the time I wake up to bed time. Little they knew it would make things even worse. On top of being a hobby .... It became my job.
Wikipedia has been half of my life. It is the closest thing I can think of when it comes to my personal values, my view of the world or the kindness I try to push when I act. One might see it as bragging, but Wikipedia is definitely the most important thing that ever happened to me and the world. It is a guidance to me. I am sure it will be my companion for the rest of my life and I have great hope it will outpass me. Much like a good book can be passed from a generation to another one.
The world had turmoils in the last couple years, but we have a cap that is above and beyond those: collect the sum of all knowledge. If you like Wikipedia, please take some minutes this week-end to do a few edits on our favorite website and feel free.I am turning 43 years old today (Oct 15th), and this week-end I will celebrate my ten years tenure at the foundation and an edit on Wikipedia will be a great gift to me.
WikiLove
vendredi 13 juin 2014
mercredi 25 septembre 2013
displaying Gerrit review history in git log
In the beginning of 2012, the Wikimedia Foundation switched from Subversion to Git. The main reason for the switch was to prevent committers from inserting bad code in the central repository. Thus lowering the stress when deploying said code on the production site. The only way to do it is to elect a gatekeeper between patch authors and the reference repository used for deployment. In Linux, that is more or less the role of Linus Torvalds. At Wikimedia we selected Gerrit which is used at Google to accept patches for their Android platform.
The Gerrit workflow is pretty simple: authors send their patches to Gerrit, he and others comment or amend the patch, rinse and repeat until there is no more to say. After a few iterations, the community ends up with a robust patch which is worth entering the reference repository. A few people are allowed to approve the change and have it actually merged.
The history that led to the final commit is available (example for a patch I wrote: https://gerrit.wikimedia.org/r/75569) and is very valuable whenever a bug appear: the comments can give you an idea of the design choices and list out every single person that get involved in the patch. If the original author is not available, you can most probably reach out to the person that review the code. When you are facing an issue in production, the more people to ask the merrier.
It is too cumbersome to have to open the browser in the Gerrit web interface. Aging, I rely more and more on terminals and command lines. How would I get the commit history from the command line without having to parse some Gerrit json? Luckily, there is a way to get all the reviewing history saved locally and thus available offline.
Internally, Gerrit relies a lot upon git, its internal configuration for a given repository is even available (under refs/meta/config). The review history for a repository is thus stored in Git as well and it lives under refs/notes.
You can thus fetch all the review history:
git fetch -v origin refs/notes/*:refs/notes/*
Then configure your repository to always show the notes in git log:
git config --local notes.displayRef refs/notes/review
End result:
$ git log -n1 1dad0218 commit 1dad021840bf936b0e130ddda3459d11f0ad8421 Author: Antoine MussoDate: Wed Jul 24 12:08:52 2013 +0200 SpecialPrefixindex formatting methods are now protected namespacePrefixForm() and showPrefixChunk() accepted additional arguments to slightly alter the form such as hiding redirects. The argument has been removed in favor of class property just like stripprefix introduced earlier and the method have been made protected since there is no point in calling them out of the special page scope. Change-Id: I55728fd2634f8a935a033052dcce3c7247cb1aa3 Notes (review): Verified+2: jenkins-bot Code-Review+2: Matmarex Submitted-by: jenkins-bot Submitted-at: Fri, 30 Aug 2013 19:41:21 +0000 Reviewed-on: https://gerrit.wikimedia.org/r/75569 Project: mediawiki/core Branch: refs/heads/master
On this patchset, we can see that Matmarex has accepted the change :-) You can prevent notes from displaying whenever you like by passing
--no-notes
to the git log command.
Note: you will have to fetch the notes from time to time since they are not fetched by default. An alias would be useful:
git config --global alias.fetchreviews \
'fetch -v gerrit refs/notes/review:refs/notes/review'
You can then refresh notes by nvoking git fetchreviews
.Summary:
* Get notes:
git fetch -v origin refs/notes/review:refs/notes/review
* Configure git to always show them:
git config --local notes.displayRef refs/notes/review
lundi 18 juillet 2011
git cheat sheet
regrouping commits
# back to master & up-to-date:
git checkout master
git pull
# create a new clean branch
git checkout -b clean_new_feature
# merge in the branch with ton of commits
git merge messy_feature
# The clean_new_feature branch now has everything needed.
# Move its pointer back to the origin so our merge is considered
# a series of unstaged changes:
git reset origin/master
git status # review the differences :)
git add .
git add -u # you wants to send file deletions too
git commit
You now have all the commits regrouped in one new branch named 'clean_new_feature'. You can now request a pull&merge to upstream.
mardi 30 novembre 2010
compiling php extension under Mac OS X 10.5
Failed loading /usr/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so: (null)On for a debugging session!
Firsty, my computer run Mac OS X 10.5.8 updated as of 11/30/2010 and I rely on Apple tools to develop PHP scripts. This mean:
- PHP 5.2.14 (built: Oct 6 2010 16:57:10)
- Apache 2.2.14
- phpize --version reports:
Configuring for:I compiled Xdebug using the usual steps:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
- wget
- tar -xvzf
- cd xdebug2.1
- /usr/bin/phpize
- ./configure && make
- sudo cp ./modules/xdebug.so ...
- sudo apachectl restart
MACOSX_DEPLOYMENT_TARGET=10.5 \
CFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
LDFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
CXXFLAGS='-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' \
./configure --enable-xdebug
I am not sure what is the real cause of the issue, probably related to the Apache2 libphp5.so.
Last step was to report the issue:
I have contacted Xdebug author Derick on irc, since this issue can probably get handle by tweaking the configure script. After a quick bug report, it is an issue with Mac OS X phpize which does not include the MACOSX_DEPLOYMEN_TARGET environment variable nor the CFLAGS, LDFLAGSn CXXFLAGS needed to build a multi architecture library. Basically not an issue with Xdebug itself.
Hence this blog post to make sure I remember the above compilation FLAGS.
vendredi 17 avril 2009
Makefile with chained pattern rules for dummies
My problem was easy : I am given some RRA files (http://oss.oetiker.ch/rrdtool/) that need to be rendered as PNG. I am willing to render to PNG using an XSL stylesheet although I am aware 'rrdtool graph' would handle this anyway in one shot.
I want fun.
What is the point in having rrdtool handling all the stuff for you without learning anything new in the process ? Does it feel boring ?
It does. I want fun.
jeudi 29 janvier 2009
I am a virus
lundi 16 juin 2008
... de mes commandes Linux
138 ll
84 cd
50 vim
23 fgrep
21 ls
19 svn
14 cat
10 apt-cache
8 su
8 ./configure
$