Prihlásiť

Programming


Posterous Cheat Sheet

3. 3. 2010 Zobraziť článok

Post to Posterous only: posterous@posterous.com
Post Everywhere: post@posterous.com

Turn Posterous tags into autoposted Twitter #hashtags

For instance:

E-mail Subject: It really does smell like teen spirit ((tag: grunge, nirvana))

becomes:

It really does smell like teen spirit http://post.ly/1a2bx #grunge #nirvana

Read how to enable {{hash_tags}} on your Twitter autopost

Post multiple images inline, without a gallery

Put ((nogallery)) in the subject line and your images will appear without the gallery view.

Develop

Posterous API
Send to Posterous directly from Google Reader

Zobraziť článok

Noteput - interactive music table

28. 2. 2010 Zobraziť článok

An interactive music table with tangible notes, that helps students to learn the notation of music.

Noteput
Zobraziť článok

min-height hack

15. 2. 2010 Zobraziť článok
selector {
    min-height: 200px;
    height: auto !important; /* IE6 will ignore !important */
    height: 200px;
}

/* version with underscore hack */
selector {
    min-height: 200px;
    height: auto;
    _height: 200px;
}

Zobraziť článok

Apache 2 configuration on Debian

14. 2. 2010 Zobraziť článok

vi /etc/apache2/apache2.conf
vi /etc/apache2/httpd.conf

/etc/apache2

/sites-available

A list of configuration files - one per site. A blank install will contain the file default. The system admin can have as many sites here as they need - however - they will not all be active.

/sites-enabled

A list of symlinks to configuration files in sites-available. A blank install will contain a symlink 000default to sites-available/default. The sites listed here are the sites which will be active. The site to be used if no virtual hosts match will be the first file found (hence the 000 on 000default).

U mňa: aaa.net -> match.nawebe.net aby zobrazil "The requested alias was not found on this server."

#enabling site xxx
a2ensite xxx

#disabling site xxx
a2dissite xxx

/etc/init.d/apache2 reload

/mods-available

A list of configuration files - one or more per module. Each dpkg installed module will add files here. e.g. php4.conf and php4.load are added with the libapache2-mod-php package. Again - the system admin can install whatever modules they wish - however - until they are set available they will not be active.

/mods-enabled

A list of symlinks to configuratioon files in modes-available. Only modules linked in here will be activated on the webserver.

#enabling modul xxx
a2enmod xxx
a2enmod rewrite

#disabling module xxx
a2dismod xxx

/etc/init.d/apache2 restart

Example


vi /etc/apache2/sites-available/ekniznica.eu

<VirtualHost *:80>
        ServerName ekniznica.eu
        ServerAlias www.ekniznica.eu
        DocumentRoot /var/www/ekniznica.eu/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>

        ErrorLog /var/www/ekniznica.eu/log/error-ekniznica.eu.log
        LogLevel warn
        CustomLog /var/www/ekniznica.eu/log/access-ekniznica.eu.log combined
</VirtualHost>

a2ensite ekniznica.eu
/etc/init.d/apache2 reload


Zobraziť článok