"Prime of place"

Submitted by Druss on Fri, 2014-12-05 21:05

I've noticed a few people using the idiomatic phrase "prime of place" to denote the primacy of position in a group of things. For example, "My framed moustache-of-the-year certificate is given prime of place on the wall". While the idiom certainly appears to make sense, fits in quite well, and even sounds familiar, it is not really standard usage.

Disable CTRL + ALT + Function Key shortcuts in Kubuntu / KDE

Submitted by Druss on Thu, 2014-09-04 17:58

In Kubuntu/Ubuntu (and presumably Debian and other derivatives), the CTRL + ALT + F4 (or any other function key) keyboard shortcut switches from the desktop to a virtual terminal while CTRL + ALT + F7 brings you back to the desktop. However, I want to disable this as it's messing up my HTPC thanks to its dodgy remote control. While I could find a solution for Gnome/Ubuntu readily enough, KDE/Kubuntu was not immediately apparent.

Set the timezone of a Debian/Ubuntu server from the command-line

Submitted by Druss on Mon, 2014-08-25 19:34

Setting the timezone of an Ubuntu (14.04, Trusty) or Debian (7, Wheezy) server from the command-line is simple. Just run dpkg-reconfigure tzdata and follow the on-screen prompts. However, if you are running an unattended installation, you might want to avoid interactive prompts and just gets the job done. To do this, simply run

$ sudo ln -sf /usr/share/zoneinfo/America/Anchorage /etc/localtime

Browse through /usr/share/zoneinfo/ to locate your timezone.

Disable pop-ups for an unattended/non-interactive apt-get install in Ubuntu/Debian

Submitted by Druss on Mon, 2014-08-25 17:37

So, here I was writing a script that would automate the installation of a package in Ubuntu 14.04 and all was going swimmingly. Until I ran it. You know how some apt-get installs sometimes involve a technicolor pop-up that asks you for stuff? Well, those pop-ups interrupted my script which didn't proceed further. After much digging, I found that there are a couple of solutions for this:

bash: cannot set terminal process group (3987): Inappropriate ioctl for device bash: no job control in this shell

Submitted by Druss on Wed, 2014-08-20 19:44

On a new Ubuntu 14.04 (Trusty) LTS server, I ran into the following:

$ su -c /bin/bash foo
bash: cannot set terminal process group (3987): Inappropriate ioctl for device
bash: no job control in this shell

However, the su procedure worked and I was logged in as user foo.

Why OpenAtrium sucks

Submitted by Druss on Sat, 2014-08-16 20:17

OpenAtrium is a Drupal "distribution", a pre-packaged Drupal installation which targets a particular niche. I was told to consider it when I went looking for a support ticket package a couple of years ago. That project fell by the wayside but I did have a demo installation on my system and now that I do need to install a ticket management system again, I looked at resurrecting this installation and updating it for some snazzy new features.

Capitalizing words and changing case using regex

Submitted by Druss on Sun, 2014-08-03 11:16

Let's assume that we have some sample text like the following:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Tags:

Pages

Subscribe to languor.us RSS