Blogs

Close gedit backup function

Gedit will backup every file with ~ suffix.You can close this function at Edit -> Preferences,uncheck Create a backup copy of files before saving.

There is also a setting in gconf-editor to show backup files

/desktop/gnome/file_views/show_backup_files

List of text editors

Funny list of text editors.

http://en.wikipedia.org/wiki/List_of_text_editors

System default

* Notepad (default under Microsoft Windows)
* SimpleText (default under Classic Mac OS)
* TextEdit (default under Mac OS X)
* XEDIT (default under VM/CMS)
* Edit (default under RISC OS)
* ed (no relation to unix-ed, default under AmigaOS)
* Gedit (default under GNOME (Linux))
* Kwrite (default under KDE (Linux))

[edit] Free software (free/libre/open-source)

* Acme — A User Interface for Programmers by Rob Pike
* AkelPad
* Beaver

Wine bug for fireworks - not enough memory


Wine 0.9.x( below 0.9.59) has a bug when open fireworks,It just show "not enough memory".You have 2 methods to avoid this.

Close the fireworks Optimize panel

or

Just update wine to > 1.0 rc1

BTW:Wine 1.0 rc3 also solved the "Adobe Dreamweaver MX 2004 installs well but does not run." bug.

Add WineHQ Apt repository

First, open a terminal window (Applications->Accessories->Terminal). Then add the repository's key to your system's list of trusted APT keys by copy and pasting the following:

wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

Next, add the repository to your system's list of APT sources:

For Ubuntu Hardy (8.04):

sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list

For Debian Etch (4.0):

Why does "ps -aux" complain about a bogus '-'?

According to the POSIX and UNIX standards, the above command asks to display all processes with a TTY (generally the commands users are running) plus all processes owned by a user named "x". If that user doesn't exist, then ps will assume you really meant "ps aux". The warning is given to gently break you of a habit that will cause you trouble if a user named "x" were created.

How to remove the somebody's blog link under the Drupal blog node

This is only my personal site,no need to link to somebody's blog

Modify the drupal file modules/blog/blog.module,find the

function blog_link($type, $node = NULL, $teaser = FALSE) {
$links = array();
if ($type == 'node' && $node->type == 'blog') {
if (arg(0) != 'blog' || arg(1) != $node->uid) {
$links['blog_usernames_blog'] = array(
'title' => t("@username's blog", array('@username' => $node->name)),
'href' => "blog/$node->uid",

Drupal Clean URL on Apache,Nginx or Lighttpd

Apache’s Mod_Rewrite

Like most open source PHP applications, Drupal came with a .htaccess file assuming Apache is serving the pages. We will use it as the reference on how the rewrite rules can be written for the other two web servers.

Here’s the bit in .htaccess that does rewrites:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

What it does is:

* If requested file exists, serve it.

Auto-mounting internal drives in Ubuntu

So I've noticed when running Ubuntu that while my external drives will show up on my desktop when I turn the computer on, my internal drives don't. They were still accessible from the Places Menu, but they had to mount on the first click, and then I could open them. Obviously, this is not the desired behavior. So I did a bit of digging and I found the problem. HAL apparently tells gnome-volume-manager not to auto-mount internal drives. I found the file containing this policy, and fixed the problem.

The file is this one:

/etc/hal/fdi/policy/preferences.fdi

How to install 150 Extra GIMP Brushes for Ubuntu

By default GIMP comes with a rather limited set of brushes. There's a package available from the Ubuntu repositories to install some extra brushes, however this is also a little limited.This package will allow you to install more packages for gimp brushes.

1. Open your apt sources.list file for editing with the following terminal command:

gksudo gedit /etc/apt/sources.list

2. Add the following two lines to the bottom of the file:

deb http://ppa.launchpad.net/corenominal/ubuntu gutsy main
deb-src http://ppa.launchpad.net/corenominal/ubuntu gutsy main

Save and exit the file

Syndicate content