Index ¦ Archives ¦ RSS

Merging git notes

Estimated read time: 2 minutes

The git notes command is really about local annotation of commits — nothing to share. If you decide to still do so, for example the git-scm.com HOWTO can show you how to pull and push them. But what about merging? There is no UI for that, but — given that with git, everything is possible — you can still do so manually.

So the problem comes when Alice fetches notes, Bob does so, Alice pushes her notes back, Bob annotates a different commit and when Bob wants to push, he gets rejected, non-fast-forward. Normally you would merge or rebase in this situation, but given that git notes by default updates the refs/notes/commits ref and you typically have a different branch checked out, you can’t use git merge or git rebase directly.

What works is:

git checkout refs/notes/commits
git fetch origin refs/notes/commits
git merge FETCH_HEAD
git update-ref refs/notes/commits HEAD
git checkout master
  1. Check out the notes, so if you have conflicts, you can resolve them.

  2. Fetch remote notes to FETCH_HEAD.

  3. Do the merge.

  4. Necessary, as git merge won’t update the ref automatically, since we’re not on a branch.

  5. Or whereever you were before.

And now you can push your notes, as detailed in the above referred blog post. Yes, rebasing would be possible as well, that’s left as an exercise for the reader. ;-)


LibreOffice can now import SmartArt in Writer

Estimated read time: 1 minutes

You may remember that LibreOffice 3.5 learned to import SmartArt in Impress. In LibreOffice 3.6, the same is now true for Writer:

Note that just like in Impress, Writer produces far from perfect result if the prerendered output of the diagram is not present in the document. In practice, we can open files produced by Word 2010 just fine, but problems with Word 2007 are expected.

In case you way to play with this feature, a test document is available.


Balaton Maraton 2012

Estimated read time: 1 minutes

Tegnap voltunk idén is a Balaton Maratonon (Tour de Pelso rendezvény keretében). A táv meglepő módon megegyezik a tavalyi értékkel (204 km), GPS log erre, hivatalos eredmények itt.

A kmóra ezeket mérte:

  • idő: 9h30m32s

  • táv: 220.64 km

  • átlag 23.1 km/h

  • max 43.5 km/h


Linux in the Education Conference 2012

Estimated read time: 1 minutes

The Hungarian Linux in the Education Conference 2012 was held today @ Budapest, I held a generic session about LibreOffice (slides), also talked a few guys into submitting Easy Hacks. ;)

Other interesting stuff: a free Logo interpreter in PyUNO by Laszlo, available here.


Thanks for the Hackfest 2012

Estimated read time: 1 minutes

http://libreoffice.hu/files/2012/04/335px-HHHackfest.png

We were in Hamburg during this weekend, and I think all of us had great fun, kudos go to the organizers! If you are curious, here are the topics I worked on besides mentoring when I was asked to do so:

Also thanks Stefan for correcting the misleading icons of the horizontal/vertical flipping in Writer. ;)


OpenSource is the Source of Innovation Conference

Estimated read time: 1 minutes

We presented TDF on this conference with Andras today. It was nice to see familar and new faces as well, we turned some mentioned problems into bugreports and I also fixed the barcode extension to work again with LibreOffice 3.4+, as requested by a user.


TL-WN422GC

Estimated read time: 1 minutes

The title is a wireless card usable for desktop machines. Why I can recommend it:

  • It’s better than those cheap wifi stricks, having a high(er) gain antenna.

  • It has proper Linux support. Kernel module name: ath9k_htc, the required htc_9271.fw firmware is part of kernel-firmware, so it works out of the box on any modern distro.


LPSP

Estimated read time: 1 minutes

We will give a talk about LPSP and CMIS with Cedric at FOSDEM2012. If you wonder what LPSP and CMIS are:

  • LPSP: LibreOffice extension providing connection to SharePoint

  • CMIS: Content Management Interoperability Services

See you in Brussels!


LCA 2012 Videos

Estimated read time: 1 minutes

I think last year it was the systemd video I watched, now it was btrfs. Especially the "can’t you do online corruptions?" part. ;)

Also: did you know the filefrag and sum commands? (e2fsprogs, coreutils)


mtd-utils

Estimated read time: 1 minutes

Quick node about this useful project I packaged two days ago. It has a long FAQ - I was interested in how can one access the builtin nand storage on an arm board using it.

First, check your dmesg, you should see something like:

Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"

As the names say, the three items here are the bootloader, the kernel and the root filesystem. To access and mount the last one, you need:

ubiattach /dev/ubi_ctrl -m 2
mount /dev/ubi0_0 root
... hack hack hack ...
umount root
ubidetach /dev/ubi_ctrl -m 2

© Miklos Vajna. Built using Pelican. Theme by Giulio Fidente on github.