~ overflow ~

Archive for November, 2009

Pausing a linux application

by z3n on Nov.27, 2009, under Linux Happyness, Tips & Hints

Problem:

As my past as a windows user condemns me, I tend to press “PAUSE” key to pause the execution of regular bash/prompt programs, this techinique works just fine on windows, however on linux it dosen’t. Now, how do i pause a program for a while, let’s say WGET without killing the application?

Solution:

freeze:

kill -stop <PID>

unfreeze:

kill -cont <PID>

Source:

Tombuntu

iLoveTux

Leave a Comment :, , , , more...

Unhappy Dovecot mail issues

by z3n on Nov.25, 2009, under Linux Happyness, Tips & Hints

Problem:

dovecot: Mmm dd hh:ii:ss Error: POP3(username): mail_location not set and autodetection failed: Mail storage autodetection failed with home=/home/username

Solution:

It looks like your happy username has no `mail` folder created, yes, this is obscure.

You need to create a folder called mail and don’t forget to give ownership to the user:

mkdir /home/username/mail

chown username:usergroup /home/username/mail

Partial Sources:

Nabble (warning do not chmod 777 everything or chown username:mail)

Leave a Comment :, , , more...

A different way to change css opacity

by z3n on Nov.10, 2009, under Coding, Tips & Hints

I was looking around to fix bugs on IE opacity settings and found out this article, although the rgba don’t work on ie6 <= , it seemed pretty good for me, not only because it’s less code, but it’s smarter; and it’s also an old thing!

On this sample i will have an some_css class with 50% transparency, on the usual method you need to do lots of statements to be compatible with all major browsers, not only that but this makes things harder when you have elements inside the parent element that shouldn’t be transparent.

Problem:

.some_css {

filter:alpha(opacity=50);
opacity:0.5;
-moz-opacity:0.5;
position:relative;

}

Solution:

.some_css {

background-color:rgba(0,0,0,0.5);

}

Source:

Ove Klykken

Leave a Comment :, , , , more...

Java JSP number format snippet

by z3n on Nov.09, 2009, under Coding

Problem:

how to format a number (1000 to 1.000)

Solution:

<%@ taglib uri=”http://java.sun.com/jsp/jstl/fmt” prefix=”f” %>

<f:formatNumber value=”${number }”/>

Leave a Comment :, , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!