Prihlásiť

Webdesign


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

Apache Core Features

12. 2. 2010 Zobraziť článok
Security Tips Apache Core Features

Formatted listing of the directory

Options +Indexes

If a URL which maps to a directory is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then mod_autoindex will return a formatted listing of the directory. #Options Directive

.htaccess tips and tricks

.htaccess file generator

http://corz.org/serv/tricks/htaccess.php#denied http://corz.org/serv/tricks/htaccess2.php
Zobraziť článok

Rounded Corners Techniques

8. 2. 2010 Zobraziť článok
  • Teaser Box: Flexible, Fixed width - one "as is" image and css background positioning
  • Rounded corners in CSS - CSS only technique works with browsers that support the :before and :after pseudoelements.
  • jQuery Corner - native border-radius rounding in browsers that support it (Firefox, Safari, and Chrome). So in those browsers the plugin simply sets a css property on the element. But in IE and for all browsers, choosing a pattern other than "round" requires the use of the "div stips" method.
  • Nifty Corner Cube - Javascript, GNU GPL licence

Native support

-moz-border-radius / -webkit-border-radius
-moz-border-radius-topleft  / -webkit-border-top-left-radius
-moz-border-radius-topright / -webkit-border-top-right-radius
-moz-border-radius-bottomleft / -webkit-border-bottom-left-radius
-moz-border-radius-bottomright / -webkit-border-bottom-right-radius

Zobraziť článok

Markdown

7. 2. 2010 Zobraziť článok

PHP Markdown is a port to PHP of the Markdown program written by John Gruber.

Markdownify is a HTML to Markdown converter.


Zobraziť článok

Social bookmarking

2. 2. 2010 Zobraziť článok

Social bookmarking je metóda pre internetových používateľov na ukladanie, organizovanie, vyhľadávanie a správu záložiek (bookmarkov) webových stránok na internete. Viac na Wikipédii...

Formát odkazu pre zdieľanie na najpoužívanejších sociálnych sieťach

Facebook

http://www.facebook.com/sharer.php?u=[URL]&t=[urlencode_TITLE]

Twitter

http://twitter.com/home?status=[urlencode_TITLE]+http://nawebe.net/v/[shortURL]

E-mail

mailto:?body=[URL]&subject=[rawurlencode_TITLE]

Digg

http://digg.com/submit?url=[URL]&title=[urlencode_TITLE]

Delicious

http://delicious.com/save?url=[URL]&title=[urlencode_TITLE]

Posterous

http://posterous.com/share?linkto=[URL]&title=[urlencode_TITLE]

Google Buzz

Zatiaľ to riešim cez Google Reader (16.02.2009):

http://www.google.com/reader/link?url=[ARTICLE_URL]&title=[urlencode_ARTICLE_TITLE]&srcTitle=[urlencode_SITE_TITLE]&srcUrl=[SITE_URL]

Keď to spravia za nás iní

<a href="http://www.addthis.com/bookmark.php"  class="addthis_button_expanded"><span class="share"> </span></a>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script>

Grafika

Výsledok viď ikonky vpravo hore.

Spravil som ešte SHARE ikonku, ak by niekto chcel:

SHARE

Použité technológie a zdroje


Zobraziť článok