Categories
Debian Sysadmin Tech

Debian install MailUtils needs configuration of Exim

When you first install MailUtils on Debian

apt-get install mailutils

The system will not send emails.

To test it:

echo "This is the body of the email" | mail -s "This is the subject line" myemail@gmail.com

and have a look at the logs:

cat /var/mail/mail

To fix this, it is needed to configure Exim:

dpkg-reconfigure exim4-config

You will be presented with a setup wizard of something like this:

The settings are pretty straight forward but you can just leave them with Internet Site and type your domain. The rest should work with the default settings.

Categories
Dev

Change dropdown align to right underscores.me

The dropdown sub menus for underscores.me by default align left.

If you need to change it to align right, go into style.css “# Menus” and change the following lines:


.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
left: auto;
right: 0%;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
right: 100%;
}

Categories
Dev Tech

Adding Placeholder attribute to Tokeninput jQuery plugin

I was having a hard time to get the placeholder attribute to work with Tokeninput jQuery plugin.

First I managed to get it to show up by adding attr(‘placeholder’) to the onReady:
$("#myInput").tokenInput("/url/to/your/script/"){
onReady: function(){ $('#token-input-myInput').attr('placeholder','type here...'); }
};

It worked but every time it lost focus the resize of the input field would partially hide it. So, I tweaked with the code inside jquery.tokeninput.js and after line 436 (declaration of var escaped) added:
if(input_box.attr('placeholder')!=undefined){
escaped = input_box.attr('placeholder');
}

It is not pretty but it works 🙂

Categories
Mac

Page up and Page Down Mac OSX

Page Up Page Down KeysIf you don’t have a full keyboard you can do:

Page DownSpace Bar / fn+Down Arrow

Page UpShift+Space Bar / fn+Up Arrow

Categories
Dev Ideas Quotes

The bitterness of poor quality remains long after the sweetness of low price is forgotten

The bitterness of poor quality remains long after the sweetness of low price is forgotten
“The bitterness of poor quality remains long after the sweetness of low price is forgotten”
Image stolen from MG Siegler