Django and Django-Template Syntax Highlighting for Coda

Cool Django plugins for Coda.

Big Nerd Ranch Weblog � Django and Django-Template Syntax Highlighting for Coda

Changind Directory Colors in Terminal

The default directory colors blue can be vary hard to read with a dark terminal background. Under Linux changing this color typically involves setting the LS_COLORS environment variable.

Sample ~/.bashrc file:

alias ls='ls --color'
LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90'
export LS_COLORS


Bartman has the following information on the various options:

di = directory
fi = file
ln = symbolic link
pi = fifo file
so = socket file
bd = block (buffered) special file
cd = character (unbuffered) special file
or = symbolic link pointing to a non-existent file (orphan)
mi = non-existent file pointed to by a symbolic link (visible when you type ls -l)
ex = file which is executable (ie. has 'x' set in permissions).

0 = default colour
1 = bold
4 = underlined
5 = flashing text
7 = reverse field
31 = red
32 = green
33 = orange
34 = blue
35 = purple
36 = cyan
37 = grey
40 = black background
41 = red background
42 = green background
43 = orange background
44 = blue background
45 = purple background
46 = cyan background
47 = grey background
90 = dark grey
91 = light red
92 = light green
93 = yellow
94 = light blue
95 = light purple
96 = turquoise
100 = dark grey background
101 = light red background
102 = light green background
103 = yellow background
104 = light blue background
105 = light purple background
106 = turquoise background


However, under OS X Leopard the method is different. The directories colors are set through the LSCOLORS environment variable instead. They options for LSCOLORS are listed in the ls man page:

LSCOLORS The value of this variable describes what color to use for
which attribute when colors are enabled with CLICOLOR. This
string is a concatenation of pairs of the format fb, where f
is the foreground color and b is the background color.

The color designators are as follows:

a black
b red
c green
d brown
e blue
f magenta
g cyan
h light grey
A bold black, usually shows up as dark grey
B bold red
C bold green
D bold brown, usually shows up as yellow
E bold blue
F bold magenta
G bold cyan
H bold light grey; looks like bright white
x default foreground or background

Note that the above are standard ANSI colors. The actual
display may differ depending on the color capabilities of
the terminal in use.

The order of the attributes are as follows:

1. directory
2. symbolic link
3. socket
4. pipe
5. executable
6. block special
7. character special
8. executable with setuid bit set
9. executable with setgid bit set
10. directory writable to others, with sticky bit
11. directory writable to others, without sticky bit

The default is "exfxcxdxbxegedabagacad", i.e. blue fore-
ground and default background for regular directories, black
foreground and red background for setuid executables, etc.


I use the following in my ~/.profile :

export LSCOLORS='gxfxcxdxbxegedabagacad'




COLORS Lscolors - Linux StepByStep

Crazy Emoticons ^ㅂ^

List of emoticons – Wikipedia, the free encyclopedia.

Chariot Skates

Prototype trials December 2008 from Chariot Skates on Vimeo.

Looks like fun :)
Chariot Skates.

WordPress Mu Embed Code

WordPress Mu by default does not allow ‘embed’ tags in a post. This was done supposedly to mitigate possible security risks of allowing random blog users to embed code into the system.

However, this makes it annoying for admins running multiple WordPress sites with WordPress Mu, as opposed to running a open blog network like WordPress.com.

The following code added to wp-include/kses.php will allow the embed codes to work again:

Insert after the lines:

if (!CUSTOM_TAGS) {
$allowedposttags = array (

‘embed’ => array (
‘style’ => array (),
‘type’ => array (),
‘id’ => array (),
‘height’ => array (),
‘width’ => array (),
‘src’ => array ()),
‘object’ => array (
‘height’ => array (),
‘width’ => array ()),
‘param’ => array (
‘name’ => array (),
‘value’ => array ()),

WordPress MU › WordPress MU Forums » Issue regarding YouTube and Google videos.

Making Butter

YouTube – Making Butter.

Tried this… it really is very good.

Dvorak in 2007: Apple Should Pull the Plug on the iPhone

Haha... idiot.

Daring Fireball Linked List: Dvorak in 2007: Apple Should Pull the Plug on the iPhone

Belkin Powerline HD Gigabit Ethernet

Awesome! No need to pull ethernet cables through the house anymore :)

Gizmodo - Belkin Powerline HD First to Reach Gigabit Ethernet Speeds - Belkin powerline hd

White House to Post Bills Online

Good deal.

White House Changes the Terms of a Campaign Pledge About Posting Bills Online – NYTimes.com.

From Vincent Chin to Luis Ramirez

Wtf…

The Sanctuary:: From Vincent Chin to Luis Ramirez .

Saya Kicks Buffy’s Ass

Last Blood – 映画『ラスト・ブラッド』公式サイト || 大ヒット上映中!!.

Get 35% Off The iPhone 3GS If You Use Bing – iphone 3gs

Haha... nice :)

Gizmodo - Get 35% Off The iPhone 3GS If You Use Bing - iphone 3gs: "Get 35% Off The iPhone 3GS If You Use Bing"

free boob jobs offered to czech nurses

Haha, nice.

free boob jobs offered to czech nurses.

Pixar grants girl’s dying wish

Touching

Pixar grants girl’s dying wish with home viewing of ‘Up’ | pixar, up, movie, home, show, girl, cancer, die, huntington, beach – News – OCRegister.com.

nodeが生まれるまで

Brilliant idea!

node
nodeが生まれるまで | ケーススタディ | METAPHYS.


© Copyright 2007 KafeKafe . Thanks for visiting!