Rename the field quantity of Drupal uc_event_registration

To change the label of Ubercart Event Registration (uc_event_registration) without hacking the module simply insert some Jquery.

Put a pice of JQuery like this in your page.tpl.php

How I remove viruses from Windows computers

Viruses

Although it's not my biggest hobby sometimes I have to remove viruses from Windows computers.

My personal NFS mounts in /ets/fstab

Here are my personal mount in /etc/fstab for mounting my server to the filesystem on my Desktop and Lapto

First install nsf-common

apt-get install nfs-common

Make the mountpoint on the local filesystem

mkdir /extra
mkdir /home/rob/[HOSTNAME]

Add to /etc/fstab


robox:/extra /extra nfs rw,nfsvers=3,hard,intr 0 0

Grep emailaddress from IMAP dir with UNDELIVERABLE messages

Case

You send newsletter and get a hole buns of UNDELIVERABLE email back in your INbox. You find this irritating and want to cleanup your newsletter database.

To do so you probably need a list with all email addresses you want to subscribe.

Solution

  • First create a new IMAP directory.

Vtiger Pop-Up in Thunderbird "Session timed-out, successfully logged in again" every 25 minutes

Vtiger

Using Thunderbird 3.1.9 and Vtiger vtigercrm-5.2.0.

How To Get rid of the redirect in search result Google to Gomeo website

One of my client notified that when she clicked on the Google search results she was re-directed to a other website than mentioned in the results. Al redirects went to the website http://www.gomeo.com/

I noticed that not all click on the links where re-directed to Gomeo. Two out of three click where redirected to Gomeo while the other click landed on the correct page.

Forward Google calendar invitation to the right account

The problem
I have multiple email addresses and a Google calendar.
I sync the Google calander with my PC, laptop and iPhone. On my Linux PC and laptop I use Thunderbird to sync my calendar and on my iPhone 4 the standard Apple calendar app as pre-installed on the iPhone.

HowTo Setup Basic SMTP AUTH in Exim4

This brief guide will explain the steps you can take to get basic SMTP AUTH working with Debian Sarge's exim4 package. (For users connecting to your server, not for forwarding via your ISP)

First of all generate an Exim SSL certificate:

# /usr/share/doc/exim4-base/examples/exim-gencert

Now edit /etc/exim4/exim4.conf.template using your favourite text editor.

Drupal 6 Different page templates depending on URL aliases

Place this code in your template.php file if you want u use different templates for the same code.

Create a template named page-SOMETING-tpl.php
Create a url alias node/NID SOMETHING


function phptemplate_preprocess_page(&$vars) {
if (module_exists('path')) {
$alias = drupal_get_path_alias(str_replace('/edit','',$_GET['q']));
if ($alias != $_GET['q']) {

Download a Youtube video and rip the audio

MPlayer-Logo.png

Suppose you want the audio track from a YouTube video.
This is how you do that.

Linux command to download a flv YouTube video

youtube-dl http://YOUTUBE.URL.FROM.BROWSER.ADDRESSLINE

Now rip the audio from the flv file

mplayer -dumpaudio file.flv -dumpfile file.mp3

Damn...I like Linux :)