25 Jun, 2011
It is possible to have inset shadows on both left and right sides of a block. It is a matter of showing only one side of the box-shadow at a time, and so you need two box-shadows (one for each side of the block you wish to have shadows, and we can put both CSS codes in the same property).
Here is an example that should be compatible with Firefox, Chrome and Opera.
box {
-moz-box-shadow:
inset 5px 0 5px -5px #333,
inset -5px 0 5px -5px #333;
-webkit-box-shadow:
inset 5px 0 5px -5px #333,
inset -5px 0 5px -5px #333;
box-shadow:
inset 5px 0 5px -5px #333,
inset -5px 0 5px -5px #333;
}
Here is the result:
Lorem ipsum...
Inspired from Playing with CSS3 box shadow [demente-design.com]
――
5 Oct, 2010
The following command will optimize all of your databases' tables within MySQL.
It is important to optimize tables to reduce data fragmentation.
If you are not using root replace it with your username.
-A : Check all tables in all databases. This is the same as using the --databases option and naming all the databases on the command line.
-o : optimize the tables.
-p : Prompts for a password to use when connecting to the MySQL server.
-u : The MySQL user name to use when connecting to the server.
Inspired by this article.
――
15 Sep, 2010
Character encoding is always a problem when communicating between Windows and Linux. And using the "tree" command is affected by this problem if you are connected to a Linux box using Putty on a Windows box. You will certainly get weird characters, probably squares.
For those who are not sure about what tree is. It is a command-line tool to list contents of directories in a tree-like format.
A solution to this problem is to force using plain ASCII characters:
You can also have an alias for this command, so that every time you type "tree", it will force tree to use the ASCII charset automatically.
alias tree='tree --charset=ASCII'
And this is an example of what you will get as an output:
/tmp
|-- claws-mail-1000
|-- keyring-x803mg
| |-- control
| |-- pkcs11
| `-- ssh
|-- orbit-gdm [error opening dir]
`-- virtual-user
――
11 Sep, 2010
You installed Request Tracker 3.8 on Ubuntu 10.04 using apt-get, aptitude, or synaptic, and then you needed RT::Authen::ExternalAuth.
What you naturally did is:
sudo cpan -i RT::Authen::ExternalAuth
But you will get the following error:
prerequisite RT 0 not found
This is because you did not install request-tracker through CPAN.
An easy solution for this is to force the installation using the "-f" flag:
sudo cpan -fi RT::Authen::ExternalAuth
――