Addendum to my previous post „Using VIm’s „Negative Lookahead“ to Delete All Lines NOT Containing a Pattern„ I received a message from a reader who goes by the name of „bw1“ who points out that my task „to delete all lines in the current file not containing the string foo“ can easily be accomplished by […]
Articles in Category "Technik"
Using VIm’s „:v“ to Delete All Lines NOT Containing a Pattern
7. Januar 2015 in Administration, GNU/Linux, Programmierung, Technik.
Text-Console Barchart of Storage Utilization
7. Januar 2015 in Administration, GNU/Linux.
Written as a Bourne Shell-Script that invokes a Perl one-liner: LC_ALL=C df -kPT | perl -ane ‚!/(^Filesystem|tmpfs)/ && do { printf(„%-33s: %s\n“, $F[0], „*“ x int((`tput cols`-35) * $F[3] / $F[2])) }‘
Using VIm’s „Negative Lookahead“ to Delete All Lines NOT Containing a Pattern
7. Januar 2015 in Administration, GNU/Linux, Programmierung, Technik.
UPDATE: Please note that „bw1“ has notified me of a much simpler solution than what is described here; please see „Using VIm’s „:v“ Command to Delete All Lines NOT Containing a Pattern„ Some statements have been struck through in the article below because they are false. I want to delete all lines in the current […]
Update: YouTube “Userstyle”
27. April 2014 in Technik.
I have updated my YouTube Userstyle to the latest names they have given to their BS. You can visit the style’s entry at userstyles.org for review and installation: http://userstyles.org/styles/95273/uncluttering-youtube See also: Original announcement (20 Nov 2013).
Web-MP3-Player with HTML5, Flash and Playlist Support
12. Januar 2014 in GNU/Linux, Multimedia, Programmierung, Technik.
About This project provides a JavaScript constructor MyPlayer({…options…}) that can be used to embed lists of audio files as read from an index document or an M3U into a web document. They will be displayed in a playback GUI with a playlist that can optionally be filled from the „title“ and „artist“ values of the […]
WordPress: Eigene Übersetzungen in Thematic-Child-Themes
11. Januar 2015 in GNU/Linux, Programmierung, Technik.
Ich habe einige deutschsprachige Textbausteine in meinem Thematic-Child-Theme „linuxfoo“ angepasst. Dazu benutze ich eine Datei mit eigenen Übersetzungen auf Basis der „de_DE.po“ in „Thematic“ selbst und übersetze diese mit dem Gettext-Werkzeug „msgfmt“. Das Verfahren wird nachfolgend im Einzelnen beschrieben.
Self-Hosted Webfonts: Origin Considerations
5. März 2014 in Multimedia, Technik.
Regarding my previous article, „Self-Hosted Webfonts„, various sources such as [1] suggest that additional measures should be taken so that unrelated web presences can not utilize the hosted fonts by simply referencing them on their own pages (thus „borrowing“ traffic by using a font file that someone else hosts).
Self-hosted Webfonts: An Example
7. Januar 2015 in Multimedia, Technik.
For aesthetic reasons, because I consider support widespread enough and also as an exercise I have integrated several webfonts with the new appearance of this website. I think it looks OK, and it works OK in modern browsers.