04.29
Sedmičky jsem koupil na eBayi asi před měsícem. Nemůžu si je vynachválit, protože z počítače prostě dokážou dostat to nejlepší.
Sdílím, tedy jsem. Postřehy, názory, blbiny.
Sedmičky jsem koupil na eBayi asi před měsícem. Nemůžu si je vynachválit, protože z počítače prostě dokážou dostat to nejlepší.
MSSQL doesn’t use ‚CONCAT‘ function as MYSQL. The same effect has connecting columns with plus operator:
select col1 + ' ' + col2 as col3
Target attribute used inside link tag turns the page contnent into a non w3c valid. (For strict and transitional DOCTYPE). There is as simply way to add it with javascript.
<javascript>
$("#somewhere a").attr("target","_blank")
</javascript>
<div id="somewhere">
<a href="http://go.away">please</a>
</div>This article was completely stolen from: http://tomclegg.net/rewriterule (Thank you Tome. It helped me.) The reason i did it, is that i was spending long time by looking for just this compilation of examples. I’d like to distribute this simple but powerful basic code.
If http://example.com/foo/bar does not exist, redirect to http://other.example.com/foo/bar. (Put this in an .htaccess file in your top-level web directory.)
.htaccess in root of example.com
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://other.example.com/$1 [R]Handle all requests for top-level .html files and files with no extensions (http://example.com/foo, http://example.com/foo.html) with a single PHP program /foo/show.php. Also, ignore trailing characters in set { : ; , . } so URLs like „http://example.com/foo.“ can be copied-n-pasted from plain text sentences by inattentive users.
.htaccess in root of example.com
RewriteRule ^/?([^/]*\.html?|[^\./]*)[:;,\.]*$ /foo/show.php [L,NS]
Examples:
http://tomclegg.net/rewriterule
http://tomclegg.net/rewriterule.html;
Redirect GET requests for http://example.com/foo/bar to http://example.com/bar (and /foo/bar.html to /bar.html). Handle POST requests with PHP program rather than attempting to redirect a POST (which is unlikely to work well).
.htaccess in foo folder in example.com’s document root
RewriteEngine On RewriteCond %{REQUEST_METHOD} GET RewriteRule ^/?([^/]*\.html?|[^\./]*)[:;,\.]*$ /$1 [R,L,NS] RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/?([^/]*\.html?|[^\./]*)[:;,\.]*$ /foo/show.php [L,NS]
Examples:
http://tomclegg.net/w/rewriterule
http://tomclegg.net/w/rewriterule.html;
function dumpProps(obj, parent) { // Go through all the properties of the passed-in object for (var i in obj) { // if a parent (2nd parameter) was passed in, then use that to // build the message. Message includes i (the object's property name) // then the object's property value on a new line if (parent) { var msg = parent + "." + i + "\n" + obj[i]; } else { var msg = i + "\n" + obj[i]; } // Display the message. If the user clicks "OK", then continue. If they // click "CANCEL" then quit this level of recursion if (!confirm(msg)) { return; } // If this property (i) is an object, then recursively process the object if (typeof obj[i] == "object") { if (parent) { dumpProps(obj[i], parent + "." + i); } else { dumpProps(obj[i], i); } } } }
Code origin: http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256BF8004D72D6
The reason for copying is redistributing of this useful routine for better reaching.
Tak jako mají vesnice své ruralisty a countrymany, kteří je opěvují v básních a písních, má i město svoje přívržence. Urban Art je styl umění lidí, kteří jsou inspirováni prostředím města. Město je jak terčem produkcí, tak zdrojem materiálu nebo obojí.
Přes možná trochu zavádějící název, je tohle blog nabitý díly a dílky lidí, kteří potřebují tvořit.