Amazing Javascript trick
Amazing trick with javascript Goto a page which has lots of images like this. Now paste the below line in the address bar, and hit… Read More »Amazing Javascript trick
Divine discontent
Amazing trick with javascript Goto a page which has lots of images like this. Now paste the below line in the address bar, and hit… Read More »Amazing Javascript trick
<embed id="doc_266158069542781" style="outline: none;" type="application/x-shockwave-flash" width="100%" height="500" src="http://d1 weight reduction pills.scribdassets.com/ScribdViewer.swf” flashvars=”document_id=15997581&access_key=key-69t3uvwuf423itqak4u&page=1&viewMode=list” allowscriptaccess=”always” allowfullscreen=”true” bgcolor=”#ffffff” wmode=”opaque” data=”http://d1.scribdassets.com/ScribdViewer.swf” name=”doc_266158069542781″> [Translate]
It was fun learning SSI, and tweaking around to get useful information such as detecting your IP adddress, and further WHOIS information. See below in… Read More »Whois purely in SSI
To setup PHP for UTF-8 データベース、スクリプトを記述するファイルの文字エンコーディングはPHPの文字エンコーディングを使用する方が設定が行い易いです。 default_charset=”UTF-8″ ダイナミックコンテンツの文字コードセットは必ず指定しなければならない。(セキュリティ上の理由。詳細は 2000年2月のCERTのXSSアドバイザリを参照) magic_quotes_gpc=off マルチバイト文字エンコーディング環境のみでなく、セキュリティ上も有害であるので必ずoffに設定する。ポータブルなスクリプトの場合、この設定 がonである場合にstrip_slashes()を全ての入力に適用するコードをスクリプトの開始時に実行する。稀に magic_quote_gpc=onである事を前提としているアプリケーションもある。そのようなアプリケーションは使わない方が良い。 mbstring.input_encoding=”pass” 現在のブラウザでHTMLを記述した文字エンコーディング以外で文字を送信してくるようなブラウザはない。(携帯などモバイル環境を除く) mbstring.internal_encoding=”UTF-8″ ブラウザから送信される文字エンコーディングはcharsetと同じはず。プログラム側では必ず送信された文字 エンコーディングが正当なUTF-8エンコーディングであるか確認する事。 mbstring.output_encoding=”pass” 出力はinternal_encodingで行われる。つまりUTF-8。(携帯などモバイル環境を除く) mbstring.language=”japanese” 言語環境を日本語に設定。mb_send_mail関数などの動作に影響する。 mbstring.substitute_charactor=”” 入力に変換出来ない文字エンコーディングを含む場合、アプリケーションの実行を停止しなければならない。本来、セキュリティ上不正な文字を削除すべ きではないが、古いPHP(PHP… Read More »PHP in UTF-8
Can you check out the HTML source for the below page? http://www.naiksblog.info/iframeembed.html More fun at http://www.greywyvern.com/code/php/binary2base64
After racking my brains for almost 4 days (yeah I am a slow learner) I finally created a simple Javascript string combination generator See the… Read More »Racking brains – a Javascript string combination generator
A .java class can contain only one top-level public class. All other top level classes in same .java file cannot be private or protected or… Read More »Extremely useful tips for Java
I created a very simple (but fully working) Tic Tac Toe game to enjoy http://www best weight loss diet pills.naiksblog.info/tictactoe.html [Translate]
How many degrees angle between hour, minute hand when time is 3:15? 7.5° 360° full circle, therfore (360°/12 hrs) = 30° /hour. At 3:15, minutes… Read More »Brainteasers