$ pacmd
>> list-sinks
>> set-default-sink 1
Thursday, July 15, 2010
Sunday, July 11, 2010
Change default port apache2 ubuntu
in /etc/apache2/ports.conf, change 80 in these lines:
also, in /etc/apache2/sites-enabled/000-default:
NameVirtualHost *:80
Listen 80also, in /etc/apache2/sites-enabled/000-default:
<virtualhost *:80>
Tuesday, June 22, 2010
Wednesday, June 16, 2010
djb stuff on newer ubuntu
Since maybe 9.04 (for sure on 10.4), djb stuff (daemontools, ptyget, ...) does not compile out of the box. The only change needed is to replace, in errno.h,
with
extern int errno;with
#include <errno.h>
Tuesday, June 15, 2010
blogger publish preview broken?
Sometimes, preview doesn't show newlines correctly, like paragraphs are concatenated.
EDIT: html tags are not escaped in compose mode?
EDIT: as of July 2010, previews are supposed to be accurate (blogger update).
tag doesn't work either.EDIT: html tags are not escaped in compose mode?
EDIT: as of July 2010, previews are supposed to be accurate (blogger update).
dbus and X forwarding
Under Ubuntu 10.4
It seems some files under ~/.dbus are set to owner root, which causes problems when starting an X application over SSH.
chowning -R ~/.dbus to user seems to fix the problem.
Under Windows 7
PuTTY often crashes when forwarding an X application. Could this be related?
It seems some files under ~/.dbus are set to owner root, which causes problems when starting an X application over SSH.
chowning -R ~/.dbus to user seems to fix the problem.
Under Windows 7
PuTTY often crashes when forwarding an X application. Could this be related?
Monday, June 14, 2010
~/.vimrc
set autoindent number
set ts=2
set hlsearch
syntax on
colorscheme darkblueOn Linux, file is ~/.vimrc
On Windows, you put a file named _vimrc in the root of user directory (ex: C:\Users\username).
Also, add something like
behave mswin
set guifont=Lucida_Console:h12:w6.5
set nobackup nowritebackup noswapfile
Subscribe to:
Posts (Atom)