A new Korg workstation demo 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
python: using super for __init__ 

>>> class bar( object ):
... def __init__(self):
... print "ahoj"
... def baz():
... self.x=100
...
>>> y = bar()
ahoj


>>> class bar2(bar):
... def __init__(self):
... hoo = 2
... super(bar2, self).__init__()
...
>>> daz = bar2()


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
python Metaclasses 
http://www.slideshare.net/jmgimeno/meta ... on#btnNext




http://youtu.be/ANhTacigaf8

[ add comment ] ( 1 view )   |  [ 0 trackbacks ]   |  permalink
How to turn automatic powersaving features on and off 
To view your current settings:

# xset -q


[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |  related link
UNetbootin 
UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. It runs on Windows, Linux, and Mac OS X. You can either let UNetbootin download one of the many distributions supported out-of-the-box for you, or supply your own Linux .iso file if you've already downloaded one or your preferred distribution isn't on the list.




[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |  related link
How to enable autologin in GNOME  
/etc/pam.d/gdm-autologin

#
# access for autologin
#
auth required pam_nologin.so
auth required pam_permit.so
account required pam_unix.so
session required pam_permit.so



/etc/gdm/custom.conf

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root


[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |  related link
2check 
2check

django signals
https://docs.djangoproject.com/en/1.4/ref/signals/

jango decorators
https://docs.djangoproject.com/en/1.4/topics/http/decorators/

python property
http://adam.gomaa.us/blog/2008/aug/11/t ... y-builtin/

python programming
http://www.tutorialspoint.com/python/py ... orking.htm



[ add comment ]   |  [ 0 trackbacks ]   |  permalink
War of locales 
A Quick Primer On Unicode and Software Internationalization Under Linux and UNIX

http://eyegene.ophthy.med.umich.edu/unicode/

[img]
http://eyegene.ophthy.med.umich.edu/uni ... s/utf8.png
[/img]

To determine your current locale settings, type

$locale


To determine all the locale available

$locale -a


set the locale

export LC_MESSAGES=C
export LANG=cs_CZ.ISO-8859-2



export LC_MESSAGES=C
export LANG=cs_CZ.utf8


Vim and unicode


:echo globpath(&rtp, "keymap/*.vim")
:set keymap=czech_utf-8


You can specify a keymap to use in your

.vimrc


To force VIM to save without BOM

:setlocal nobomb
:w


DJango and unicode
https://docs.djangoproject.com/en/dev/ref/unicode/


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
CSS Drop Down Menu Tutorial Code 
http://ago.tanfa.co.uk/css/examples/menu/hs5.html

http://www.cssportal.com/horizontal-menus/kalsey4.htm


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
http://woork.blogspot.cz/2008/06/clean-and-pure-css-form-design.html 
This tutorial illustrates a proposal about how to design a pure CSS form without using html tables.

<div id="stylized" class="myform">
<form id="form" name="form" method="post" action="index.html">
<h1>Sign-up form</h1>
<p>This is the basic look of my form without table</p>

<label>Name
<span class="small">Add your name</span>
</label>
<input type="text" name="name" id="name" />

<label>Email
<span class="small">Add a valid address</span>
</label>
<input type="text" name="email" id="email" />

<label>Password
<span class="small">Min. size 6 chars</span>
</label>
<input type="text" name="password" id="password" />

<button type="submit">Sign-up</button>
<div class="spacer"></div>

</form>
</div>


body{
font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
font-size:12px;
}
p, h1, form, button{border:0; margin:0; padding:0;}
.spacer{clear:both; height:1px;}
/* ----------- My Form ----------- */
.myform{
margin:0 auto;
width:400px;
padding:14px;
}

/* ----------- stylized ----------- */
#stylized{
border:solid 2px #b7ddf2;
background:#ebf4fb;
}
#stylized h1 {
font-size:14px;
font-weight:bold;
margin-bottom:8px;
}
#stylized p{
font-size:11px;
color:#666666;
margin-bottom:20px;
border-bottom:solid 1px #b7ddf2;
padding-bottom:10px;
}
#stylized label{
display:block;
font-weight:bold;
text-align:right;
width:140px;
float:left;
}
#stylized .small{
color:#666666;
display:block;
font-size:11px;
font-weight:normal;
text-align:right;
width:140px;
}
#stylized input{
float:left;
font-size:12px;
padding:4px 2px;
border:solid 1px #aacfe4;
width:200px;
margin:2px 0 20px 10px;
}
#stylized button{
clear:both;
margin-left:150px;
width:125px;
height:31px;
background:#666666 url(img/button.png) no-repeat;
text-align:center;
line-height:31px;
color:#FFFFFF;
font-size:11px;
font-weight:bold;
}


[ add comment ]   |  [ 0 trackbacks ]   |  permalink  |  related link

<<First <Back | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | Next> Last>>