Bourne Again SHell

Search files with grep

In a programmers live, you need a recursive file search nearly every day. Of course, this is possible without a heavy IDE and with a simple but useful bash one liner: $ grep "pattern" -HniR ./path/to/dir The options in detail: H printing the filename of the match n print also the line number i for a case *in*sensitive search R for recursive Of course, this can also be combined with grep regular expressions.

Posted

#CaffeeLog #Linux

cloudFPGA poster

System Architecture for Network-Attached FPGAs in the Cloud using Partial Reconfiguration

How to configure and manage zillions of Cloud FPGAs? Find out in my recent paper about System Architecture for Network-Attached FPGAs in the Cloud using Partial Reconfiguration (DOI: 10.1109/fpl.2019.00054). Published in the Proceedings of the 29th International Conference on Field Programmable Logic and Applications (FPL). Abstract Emerging applications such as deep neural networks, bioinformatics or video encoding impose a high computing pressure on the Cloud. Reconfigurable technologies like Field-Programmable Gate Arrays (FPGAs) can handle such compute-intensive workloads in an efficient and performant way.

Posted

#research

Signal Logo

HowTo build Signal Desktop on OpenSuse/Fedora/CentOS

I use, among others, the Signal App as messenger. Of course, I also want to use the advantages of running a client also on my OpenSuse-based Laptop. Sadly, Open Whisper Systems does only provide packages for Ubuntu-based systems…so I need to build it by myself. Following the build instructions for developers, the build will fail due to some incompatibilities in the dependencies (see e.g. here). Due to permanent updates of the app, I’ve to rebuild it once in a while…and here is how:

Posted

#How To #Linux

Vivaldi Browser

Get H.264/MP4 codecs to work in Vivaldi Browser

I’m a happy user of the Vivaldi Browser. But every time after an upgrade, H.264 videos stop working and every time I search and try quite a while to get it working again…maybe because the solution is always to obvious. So, now I write it down in the hope of remembering it next time ;). 1) The easy (to obvious) option Execute vivaldi in a comand line! The output is something like:

Posted

#CaffeeLog #Linux

Bourne Again SHell

Add headers recursive on top of each code file

In various situations during the work on a project, it could happen that one is required to add a header to a lot of source code files. Since programmers are usually lazy — eh, interested to work efficiently — they won’t open every file and copy it manually. Once again, the Bash can help us. For example, a copyright notice in all C/C++ files: find . -name \*.{c,cpp,h,hpp} | xargs sed -i "1i/*Copyright .

Posted

#CaffeeLog #Linux

Vim

Spell checking in Vim

Mark Twain has been quoted as saying that he respected a person who could spell a word more than one way. Unfortunately, Twain’s enthusiasm for creative spelling isn’t widely shared today, at least in the professional world. (1) You know Vim already from a lot of features, including Macros, Reg Ex, or code formatting. Now, let’s add spell checking: Support for spell checking was added in Vim 7 and therefore it is really easy to activate:

Posted

#CaffeeLog #Vim

New year, new blog!

Finally, I found the time and motivation to update my blog 0xCAFFEE.de. Since the initial setup of this blog in Joomla in 2015, I found a lot of lightweight but useful frameworks for websites and blogs and I slowly reconsidered my opinion over how to setup a good webpage. In the past, I preferred Joomla over Wordpress, because I liked powerful and feature-rich engine and I found for every idea I had for my webpage a suitable plug-in or component.

Posted

#CaffeeLog

Sorry, we're stuck in the slow lane

Jeder soll das Internet überall und frei von Diskriminierung nutzen können

Endnutzer haben das Recht, über ihren Internetzugangsdienst, unabhängig vom Standort des Endnutzers oder des Anbieters und unabhängig von Standort, Ursprung oder Bestimmungsort der Informationen, Inhalte, Anwendungen oder Dienste, Informationen und Inhalte abzurufen und zu verbreiten, Anwendungen und Dienste zu nutzen und bereitzustellen und Endgeräte ihrer Wahl zu nutzen. ([1] Seite 26, Artikel 3, Absatz 1) Als ich diesen Satz gelesen habe (und ihn nach einigen Sekunden des Nachdenkens auch verstanden habe), habe ich erst einmal nicht geglaubt, dass dieser aus der viel-geschimpften und verteufelten Verordnung des EU-Parlamentes vom 27.

Posted

#internet politics #Discussions

LG G4

How to get marshmallow on the LG G4 AND encrypt the device AND root it WITHOUT a factory reset

So, since a few days I’ve a new toy….a LG G4! And, of course, I wanted to get the newest marshmallow android on it, as soon as possible. And - also of course - I wanted to encrypt the /data-partition (called device encryption) and wanted still to become root (I’ve been used to fully control a device - and I wouldn’t change this in android 6.0). So, here is the story I’ve got root on a encrypted LG G4 with marshmallow and WITHOUT a factory reset needed:

Posted

#How To

FFMPEG: convert flac to mp3 and copy id3tags

And again something to ffmpeg: this very sophisticated tool can not only convert video or audio files. It also can handle the associated metadata. So, when you have a big music-library in the lossless format .flac (or .wav) and want to have it also on mobile devices you probably convert the files to mp3 or similar. Also, I do so, because when I’m travelling around I’ve mostly not the silence and equipment to hear music in best quality, so a little loss of quality through the use of mp3 would not be noticed.

Posted

#CaffeeLog #Linux