Tag: quotes

  • Inspirational Quotes on Architecture

    Inspirational Quotes on Architecture

    Came across a wonderful book 101 Things I Learned in Architecture School by Matthew Frederick, and couldn’t resist the urge to jot down some wonderful concepts, key ideas. The book is more about architecture as in construction, buildings, but I find it useful to consider in Software Architecture in an abstract sense too.

    PS: These are open to your own interpretation in a positive sense 🙂

    • Architecture begins with an idea
    • Be more specific to increase appeal
    • Any design decision should be justified in atleast two ways
    • An architect knows something about everything. An engineer knows everything about one thing.
    • Science works with chunks of things with continuity presumed, but an artist works with continuities having chunks presumed
    • Good designers are fast on their feet
    • Good designers aren’t afraid to throw away a good idea
    • Being process oriented, not product driven
    • Seek to understand problem before chasing solutions
    • Slow to fall in love with your ideas
    • Making design investigations and decisions holistically
    • Making design decisions conditionally i.e. awareness they may not work as presumed
    • Knowing when to change
    • Accepting that anxiety comes from not knowing what to do
    • Always asking “What If …?” regardless of how satisfied you are
    • Favor improved design process over perfectly realized architecture
    • Three levels of simplicity
    • Simplicity
    • Complexity
    • Informed Simplicity aka Pattern Recognition
    • Professional experts know how to communicate their knowledge to others in everyday language
    • Less is more
    • Design in perspective!
    • No design system is or should be perfect
    • Success of masterpiece seems not to lie so much in their freedom from faults, but persuasiveness of mind
    • Forget about what you want the design to be, instead ask design what it wants to be
    • Always design a thing by considering it in it’s next larger context
    • Limitations encourage creativity
    • Problems are opportunities to be embraced not overcome
    • Just do something while waiting

    A few others that I’ve come across from known acquaintances, about character

    • Don’t wait until everything is just right.  It will never be perfect.  There will always be challenges, obstacles, and less than perfect conditions.  So what.  Get started now.  With each step you take, you will grow stronger and stronger, more and more skilled, more and more self-confident, and more and more successful.

    • Success is not final, failure is not fatal:  it is the courage to continue that counts.

    • I have not failed 1,000 times.  I have successfully discovered 1,000 ways to not make a light bulb.

    • I am a great believer in luck, and I find the harder I work, the more I have of it.

    • One-half of life is luck; the other half is discipline – and that’s the important half, for without discipline you wouldn’t know what to do with luck.

    • I don’t believe you have to be better than everybody else.  I believe you have to be better than you ever thought you could be.

    • The main thing is to keep the main thing the main thing.

    • Be miserable.  Or motivate yourself.  Whatever has to be done, it’s always your choice.

    • We come to love not by finding a perfect person, but by learning to see an imperfect person perfectly.

  • PHP in UTF-8

    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 4.4.2, 5.1.2以下)では文字エンコーディングを確認する仕組みが無い。古いPHPで効率的に不正エンコーディングを検出するには文字列の長さの変化で確認す る。*1

    PHP 5.1.3, 4.3.3以降はmb_check_encoding関数を利用してスクリプトを実行の初期段階で不正エンコーディングを検出することが望ましい。