User login

done

Encryption on Ubuntu: Just the commands

For set-up, see https://help.ubuntu.com/community/FolderEncryption

Open:
encfs ~/.ncryptd ~/ncryptd

where ncryptd is the name of your directory. Note the dot (.) in front of ncryptd in the first parameter of the encfs command; the encrypted version is an entirely different directory and could have a completely fidderent name from the directory you decrypt it into.

Return user to current page: How to link to a form from a Drupal menu

Press login / press account links for anonymous and logged in users, respectively. Subtly added to a bottom menu. Via code in order to allow for the redirect back to the page you were on after login or editing.

There is surely a way, or should be a way, that does not involve hook_page_alter(), but hey, this works.

Create vocabulary and taxonomy terms in an installation profile

The first part is provided by the default installation profile:

Adding non-menu things to primary links menu items with Drupal 7's page alter hook

The request was to stick search in a menu. I said "I bet that's easy with hook_page_alter()!"

Not quite.

The primary links menu is output directly by the theme, and so is one of the very very few things that occurs after hook_page_alter().

You can tell the theme to stop outputting it directly, and put it in a block that is displayed in a region, or you can add it to the page rendering array in code with hook_page_build().

Change the text of a tab, such as 'View', for one node type

<?php
/**
* Implements hook_menu_alter().
*
* Use a title callback to replace the text shown on nodes' "View" tab.
*/
function example_menu_alter(&$items) {

Created a View through the wizard... page not found going to its path

Huh?

Hell, between cache clearings the Views menu link itself (under admin/structure) disappeared.

But actually the error was all me.

Wow.... it was the contextual filter i had added (thinking i was just adding it to the block and accidentally adding it to all displays).

If you give a page a default filter of use the content ID from the URL, and there is no content ID in the URL, rather than being the view page with no items you get page not found. Not the most helpful result from an easy-to-make (for me) error.

Ubuntu's native Terminal not scrolling back through output on remote server

any idea why my terminal wouldn't have backscroll when i'm connected to the server?

Settings work as expected locally (scroll back 4,000 lines) but not at all when connected to a remote server.

After trying most of the results for 'terminal' in Ubuntu's package manager, i didn't have an answer to this question, but i did have a solution.

Installing Chiliproject on Ubuntu 10.10

[After testing this out, we chose to use the package-managed redmine for now]

Installing Chiliproject with PostgreSQL on Ubuntu 10.10.

Following the instructions on Installation on Ubuntu wiki.

sudo mkdir -p /srv/www/chiliproject
sudo adduser --system --home /srv/www/chiliproject --group --shell /bin/sh --disabled-login chiliproject

Update of Rake broke Vlad

This finally fixed it:

sudo gem uninstall rake -v 0.9.0

Thank you, http://rubygems.org/gems/rake/versions/0.8.7

...but presumably chiliproject won't work?

Dunno, the new rake seems to break everything for everybody, so getting rid of it is good...

Updating your Rakefile and syncing content

As when working on any Agaric project that may not have had maintenance done on it in a while, update the Rakefile to be in line with current processes.

First, make sure your Vlad checkout is up-to-date. Go to it cd ~/vlad (in my case, i symlinked Vlad's true location to my home folder so he can find it. On my system Vlad's true location is /usr/local/lib/site_ruby/1.8/i686-linux/vlad/) and git pull.

cd ~/code/projectname
mv Rakefile RakefileOLD
cp /home/ben/vlad/Rakefile Rakefile
diff -up

Syndicate content