Translate

Archives

Restarting GNOME Shell Extension From Command Line

You can restart a GNOME Shell extension from the command line using D-Bus. For example: $ gdbus call –session –dest org.gnome.Shell –object-path /org/gnome/Shell –method org.gnome.Shell.Extensions.ReloadExtension Any utility that enables you to generate a D-Bus message can be used – not just gdbus.

Time Zones Are Not Static

The tzdata packages contain data files with rules for various time zones around the world. You may think that these data files are static and do not change much from year to year, but in fact many changes to the data files are required each year for various reasons. For example, here is a partial list of changes to time zones in Red Hat Exterprise Linux during the first part of 2013: Product Enhancement Advisory – RHEA-2012:1101-2 * Daylight Saving Time will be interrupted during the holy month of Ramadan in Morocco (that is July 20 – August 19, 2012

Script to Check for Control Characters in File

Here is how to check for and display lines from a text file that contain control characters except for line endings (which are also control characters!). $ grep “[^[:print:]]” infile | cat -nvt Here is a simple script that will output a message if a text file contains any control characters other than line endings. #!/bin/bash if grep “[^[:print:]]” infile > /dev/null 2>&1 then printf “Control characters present in filen” else printf “No control characters in filen” fi This should work in all locales.