User login


Git remote branches are different on my local compared to server

The local checkout on my computer and the one on the dev server are looking at the same Git repository, but the results of git branch -a (show all remote branches) is very different.

Reason: git pull origin master does not get all the branch and tag information the way git fetch does!


git fetch origin

Now git branch -a and git checkout branchicareabout both work.

PHP warning Unable to load dynamic library

Getting this every time i run Drush or anything else PHP on the command line:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/' - /usr/lib/php5/20090626/ cannot open shared object file: No such file or directory in Unknown on line 0


sudo rm /etc/php5/conf.d/sqlite.ini

Internal error from Redmine turns out to be due to tmp directory being full

This helpful error:

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance.

When looked into the logs:

sudo tail -f /var/log/redmine/default/production.log

Encryption on Ubuntu: Just the commands

For set-up, see

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

* 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


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.

Syndicate content