Currently browsing

Page 124

My Footsteps updated

I just updated my foot steps page(http://www.samtseng.co.cc/~samtz/blog/myfootsteps.html). It supports using mouse wheel scroll to zoom in/out. Resizing windows the map layout will …

javascript – Get Browser Type

取得瀏覽器種類 1 2 3 4 5 6 7 8 9 10 function getbrowser() { var agt = navigator.userAgent.toLowerCase(); if (agt.indexOf(’msie’) != -1) …

Regular Expressions – Check Integer

用正規表示式檢查整數. 1 2 3 4 5 function checkint(str) { var regex = /^[1-9]+\d*$|^-[1-9]+\d*$/; re = new RegExp(regex); return (str.match(regex)) != null ? …

Regular Expressions – Get Value

################################# # data string as following : ################################# TITLE=title name CLICK=click Login button to continue. TYPE=type your login password and. RETYPE=retype your …

The Pursuit of Happyness

You got a dream, you gotta protect it. People can’t do something themselves, they wanna tell you that you can’t do it. …

How to redirect http requests to https in apache

 DocumentRoot /var/www/html  ServerName samtz.dyndns.org  ErrorLog logs/samtz-error_log  CustomLog logs/samtz-access_log combined     Options ExecCGI   Options Indexes   AllowOverride All    RewriteEngine on  RewriteCond %{SERVER_PORT} =80 …

How to redirect http requests to https in lighttpd

#./configure –with-openssl Please edit your lighttpd.conf : server.modules = (   ”mod_rewrite”,   ”mod_redirect”,   ”mod_alias”,   ”mod_access”,   ”mod_accesslog”,   … ) $SERVER[“socket”] == “:80” {  $HTTP[“host”] …