2013年10月17日のブックマーク (9件)

  • 連載『嘘じゃない、フォントの話』(supported by モリサワ) 第3回:フォント職人に聞く フォントができるまで | CINRA

    『嘘じゃない、フォントの話』 連載『嘘じゃない、フォントの話』(supported by モリサワ) 第3回:フォント職人に聞く フォントができるまで 今や日のスタンダードフォントとされるモリサワの文字。普段よく目にしている文字が、どのようにして作られているのか知っていますか? そこで、私たちCINRA編集部は、モリサワの文字を開発している“モリサワ文研(株)”におじゃましました。驚いたことに、ここでは、文字をデザインする“タイプフェイスデザイナー”が、1字1字、鉛筆でレタリングをしていたのです! 連載第3回目では、フォントが出来るまでの行程と、ベテランのフォント職人さんのインタビューをご紹介します。 (テキスト:CINRA編集部) モリサワ文研の代表取締役である森澤典久社長と、取締役の三浦誠之氏に教えていただきました。 モリサワ文研株式会社とは? 兵庫県明石市にある、モリサワフォント

    連載『嘘じゃない、フォントの話』(supported by モリサワ) 第3回:フォント職人に聞く フォントができるまで | CINRA
    daiki_17
    daiki_17 2013/10/17
  • memcached - a distributed memory object caching system

    What is Memcached? Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. Memcached is simple yet powerful.

    memcached - a distributed memory object caching system
    daiki_17
    daiki_17 2013/10/17
  • PHP: OPcache - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: OPcache - Manual
    daiki_17
    daiki_17 2013/10/17
  • PHP: The Right Way

    デザインパターン ウェブアプリケーションのコードやプロジェクトを作っていくにはいろんなやりかたがあって、 どんなふうに作るか考え抜くのもありだし適当に作るのもありだ。 でも普通は、一般的なパターンに従うほうがいい。そのほうがコードを管理しやすいし、 他の人にもそのコードを理解してもらいやすくなるからである。 Architectural pattern (Wikipedia) デザインパターン (Wikipedia) 実装サンプル集 ファクトリー 最も多用されているデザインパターンのひとつが、ファクトリーパターンだ。このパターンでは、 使いたいオブジェクトを生成するだけのクラスを用意する。ファクトリーパターンの例として、 こんなコードを考えてみよう。 <?php class Automobile { private $vehicleMake; private $vehicleModel; p

    daiki_17
    daiki_17 2013/10/17
  • PHP_CodeSniffer

    Easy Install Not sure? Get more info. pear install PHP_CodeSniffer Pyrus Install Try PEAR2's installer, Pyrus. php pyrus.phar install pear/PHP_CodeSniffer PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PH

    daiki_17
    daiki_17 2013/10/17
  • PHP Coding Standards Fixer

    PHP Coding Standards Fixer¶ The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the Symfony one. You can also define your (team’s) style through configuration. It can modernize your code (like converting the pow function to the ** operator on

    daiki_17
    daiki_17 2013/10/17
  • PHP: filter_var - Manual

    パラメータ value フィルタリングする値。値をフィルタリングする前に、 内部的に 文字列への変換 が行われることに注意しましょう。 filter 適用するフィルタの ID。フィルタの型 に、利用できるフィルタの一覧があります。 省略した場合は FILTER_DEFAULT を使います。これは FILTER_UNSAFE_RAW と同等です。 結果的に、デフォルトでは何もフィルタリングをしません。 options オプションあるいはフラグの論理和の連想配列。 オプションを指定可能なフィルタの場合、この配列の "flags" フィールドにフラグを指定します。 "callback" フィルタの場合は、callable 型を渡さなければなりません。 コールバックは、フィルタリングする値を引数として受け取り、 処理後の値を返すようにしなければなりません。 <?php // オプションを許可するフ

    PHP: filter_var - Manual
    daiki_17
    daiki_17 2013/10/17
    “フィルタの型”
  • PHP: フィルタの型 - Manual

    Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Enumerations Errors Exceptions Fibers Generators Attributes References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Predefined Attributes Context options and parameters Su

    PHP: フィルタの型 - Manual
    daiki_17
    daiki_17 2013/10/17
  • Standard PHP Libraryの例外クラスを活用しよう!

    はじめに 今回はPHPでの例外の扱い方、特にSPL (Standard PHP Library)の例外クラスの使い方を見ていきます。例外を投げる際には、エラー種別により例外クラスを切り替え、受け取る側での処理も分けます。Javaなどではごく当たり前です。しかし、PHPプログラマの中には、そこまで切り分けない人も意外といます。Exceptionクラスだらけのコードもしばしば見かけます。 SPLの例外クラス アプリケーションによっては、例外クラスを独自に作成することもあります。とはいえ、いきなり例外クラスを複数定義して使いまわすことは、若干ハードルが高いかもしれません。まずは、SPL (Standard PHP Library)の例外クラスを使ってみましょう。SPLでは以下の例外クラスを提供しています。 SPL 例外クラスツリー LogicException (extends Exceptio

    daiki_17
    daiki_17 2013/10/17