bashorun Tag

Prevent Amp POP

28 Apr 2011, Posted by BoB in All Posts, Car Talk

If you swapped out your factory head unit for an aftermarket one and now your system "pops" every time you cut the car on, try integrating a +5v voltage regulator in the set up.  The pop generally means "too much" power was sent to the amplifier(s)...

CHMOD Sheet

28 Apr 2011, Posted by BoB in All Posts, Computer Talk, Network Talk, Website Talk

Permissions: u - User who owns the file. g - Group that owns the file. o - Other. a - All. r - Read the file. w - Write or edit the file. x - Execute or run the file as a program. Numeric Permissions: 400 read by owner 040 read by group 004 read by...

HTML Characters

28 Apr 2011, Posted by BoB in All Posts, Website Talk

Symbol Symbol Description Name Code Number Code € Euro Symbol € € © Copyright © © ® Registered Trademark ® ® ™ Trademark Sign (TM) ™ - @ At Symbol - @ & Ampersand & & ¶ Paragraph ¶ ¶ - Hyphen - - – En Dash – &#150 — Em Dash — — ¬ Not Sign ¬ ¬ ‹ Single Left Pointing Angle ‹ - › Single Right Pointing Angle › - « Double Left Pointing Angle « « » Double Right Pointing Angle » » ← Left Arrow ← - ↑ Upward Arrow ↑ - → Right Arrow → - ↓ Downward Arrow ↓ - ♠ Black Spade Suit (Not available in Firefox) ♠ - ♣ Black Clubs Suit (Not available in Firefox) ♣ - ♥ Black Hearts Suit (Not available in...

Javascript Sheet

27 Apr 2011, Posted by BoB in All Posts, Website Talk

How to disable right mouse click: <script language=JavaScript> <!-- var message="Sorry, function has been disabled."; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script> (paste above script after <head>...

PHP Sheet

27 Apr 2011, Posted by BoB in All Posts, Website Talk

How to display a user's IP address within a web page: <?php echo $_SERVER['REMOTE_ADDR']; ?> (Paste above code in your PHP file) How to display information only to an IP address of your choosing: Find your IP address at ip.TRPunlimited.com <?php if ($_SERVER['REMOTE_ADDR'] == your.ip.address.here) {?> (Paste above code at the...

.htaccess Sheet

26 Apr 2011, Posted by BoB in All Posts, Website Talk

span.post {text-decoration: underline;} Disable directory listing: IndexIgnore * -or- Options -Indexes Change default "index" page: DirectoryIndex anyfilename.html Custom 404 page redirect: # 404 error redirect # ErrorDocument 404 /full/directory/path/404.html Hotlinking protection: # hotlink protection # RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC] RewriteRule .*\.(gif|jpg|png|ico)$ - [F,L] 1 hour web browser caching (improves site performance): # default expires set...

Script Time Sheet

26 Apr 2011, Posted by BoB in All Posts, Website Talk

table.post {border:1px solid;width:100%;} th.post {border:1px solid;width:20%;padding:10px;vertical-align:top;font-weight:bold;font-size:16px;} td.post {border:1px solid;width:20%;padding:10px;vertical-align:top;height:40px;} This is a script time reference sheet (in seconds) (known to be used in .htaccess): 300 = 5 MINS 600 = 10 MINS 900 = 15 MINS 1800 = 30 MINS 2700 = 45 MINS 3600 = 1 HR 7200 = 2 HRS 10800 = 3 HRS 14400 = 4 HRS 18000...