タグ

2009年7月6日のブックマーク (3件)

  • 第三章 データを解析し表示しよう:JSONのデータを表示する

    このデータを読み込み利用するにはdata = eval("("+データ+")")とすると変数dataにJSONで定義されたプロパティの値が入ります。例えば以下のようなJSONファイルがあるとします。 このデータを変数dataに読み込んだとします。userIDプロパティの値を読み出すにはdata.userIDと記述します。するとajaxの文字が返されます。同様にdata.userPWとするとxanaduの文字が返されます。単純にオブジェクト名.プロパティ名の記述で済みます。プロパティの値には関数なども定義することができます。これによりオブジェクト名.プロパティ名()として末尾にカッコを付加した場合にプロパティの内容=関数が実行されます。つまりメソッドを定義したのと同じことになります。 それでは実際のデータを読み込み表示してみます。以下の商品名とそれに関するデータが記述されたJSONデータを読

  • Grep for Windows

    Grep: print lines matching a pattern Version 2.5.4 Description Grep searches one or more input files for lines containing a match to a specified pattern. By default, grep prints the matching lines. Homepage http://www.gnu.org/software/grep/grep.html Sources: http://ftp.gnu.org/gnu/grep Download If you download the Setup program of the package, any requirements for running applications, such as dyn

  • Native Win32 ports of some GNU utilities

    Here are some ports of common GNU utilities to native Win32. In this context, native means the executables do only depend on the Microsoft C-runtime (msvcrt.dll) and not an emulation layer like that provided by Cygwin tools. Download: by http: UnxUtils.zip by ftp: no FTP mirror at the moment latest updates (after 14-04-03):  UnxUpdates.zip Source code: I have started an Open source project at http