How to

Redshift is a program that gives your computer screen a dimmer brightness, and indeed a more red hue, at night.

It fails silently on most non-Ubuntu Debian systems. Well, it seems like a silent fail or crash if you don't run the command in the terminal. If you do run the command gtk-redshift in the terminal, the output is perfectly comprehensible:

Initialization of gnome-clock failed.
Trying next provider...
Latitude and longitude must be set.

Our setup is a Debian guest with VirtualBox on an Ubuntu host, but the two basic steps look like they are the same on any combination.

Shut down all virtual machines and close VirtualBox first.

To the main VirtualBox configuration file — ~/.VirtualBox/VirtualBox.xml — and to the specific virtual machine's configuration file — something like ~/VirtualBox\ VMs/somename_default_1415392315537_7406/somename_default_1415392315537_7406.vbox — add the following, identical line into the existing <ExtraData> sections:

Views fields offer the opportunity to "Rewrite results: Rewrite the output of this field". The option further specifies "Enable to override the output of this field with custom text or replacement tokens." It then provides a textarea with the instruction: "The text to display for this field. You may include HTML. You may enter data from this view as per the 'Replacement patterns' below." The replacement patterns, in turn, have the introduction: "The following tokens are available for this field.

Set old_type if you want to programmatically update a node type / machine name.

(This is not about changing the type of a node, but changing what type is called on the machine-info level.)

$type->old_type is what node_type_save() checks for when updating a node type, if it's not set it will create a new node type even if orig_type is set to an existing bundle. So really all you need to do right before saving a modified content type is set the old_type to the orig_type, such as:

Search

Search this site:

Agaric?

Agaric makes powerful web sites for people who do things. As a collective of skilled workers, Agaric collaborates with you and open source free software communities to develop tools and build platforms that meet your needs.
How we can help you? Please ask Agaric!