View Banff View Europe View Iceland View San Francisco View Victoria View Whistler View Porto View London View New York x
Introducing difflet, a handy node.js module for computing pretty object diffs! Just plug in some initial options and the objects you want to compare! var difflet = require('difflet'); var s = difflet({ indent : 2, comment : true }).compare( { z : [6,7], a : 'abcdefgh', b : [ 31, 'xxt' ] }, { x : 5, a : 'abdcefg', b : [ 51, 'xxs' ] } ); console.log(s); and you'll get a colored and annotated object
A simple pixel-tracker for node.js Example Collect any data with parameters, along with some defaults var tracker = require('pixel-tracker') tracker.use(function (e, res) { console.log(res) /* { host: 'localhost:3000', domain: 'localhost', path: '/pixel', geo: { ip: '127.0.0.1' } ua: { browser: 'Chrome', version: '13.0' }, cookies: { _tracker: '0rc8ba4t9fgjp9hz' }, language: 'en-US,en;q=0.8', ca
Hello everyone! This is the ninth post in my new node.js modules you should know about article series. The first post was about dnode - the freestyle rpc library for node, the second was about optimist - the lightweight options parser for node, the third was about lazy - lazy lists for node, the fourth was about request - the swiss army knife of HTTP streaming, the fifth was about hashish - hash c
Extensible JavaScript Transformations XJST is a DSL for universal data transformations with compiler written on top of the Node.js and Ometa/JS and output code working in any browser or on server-side. Data transformations? Yes, traverse any data in specific flow using matching against conditions set to generate any output (see binary tree prefixer). For example, XJST can be used as: HTTP request
nQuery (beta) -- live demo Introducing nQuery.js, a crazy new library that lets you write jQuery on the server. And yes it works with the browser in realtime. You can bind events directly to the server, such as swipe and hover using RPC. Don't worry, it's fast. nQuery is a minimalist DOM manipulation framework that is bringing jQuery methods to the server so you dont have to serve client side java
[追記] nvm は .zshrc のいじり具合によっては、表示がうまくいかなかったり、すこし変な動きをしたりすることが有るという意味で。nvm 自体はそれらを事細かに対応するつもりはなく、自分は bash に切り替えることで全ての不具合を回避しているという意味です。「nvm は使い物にならん」とか「インストールもまともに出来ない」などと言うつもりはないし、書いてません。実際今使っています。 全ては自分が zsh を使っていることに起因している。 node.js v0.6 のリリースと npm のアップデートも有り、 一旦環境を見直そうと .nvm/ .npm/ を全部消した。 折角ならツールも見直してみようかと思ったが、あまり変わってなかった。 node.js の環境管理(version manager)は以下のものがある。 nvmnavennodeenvnvm(https://gith
hotcode Since it is a totally separate tool you don't have to integrate it into your project's backend and it works with any language. What does hotcode do? hotcode is a local development tool that allows you to watch for file changes on a local file path and reloads your web project as a result of a change. This means you don't have to hit refresh every time you make a change and if the change is
主に外部のAPIが絡んでくるアプリのテストに使えるモジュールです。Node.jsの標準モジュールであるhttpではなく、requestというモジュール経由のHTTPアクセスを乗っ取ってレスポンスを偽装します。 ctide/fakeweb – GitHub npmで入れることが出来ます。 npm install request node-fakeweb 使い方は下記のようにします。 var request = require('request'); var fakeweb = require('node-fakeweb'); fakeweb.allowNetConnect = false; fakeweb.registerUri({ uri: "http://www.google.co.jp:80/", statusCode: 200, body: "Hello World!" }); re
nodejsブログの2011.10.4のエントリ An Easy Way to Build Scalable Network Programs « node blog ryanによるnode啓蒙記事 なぜこのタイミングで? 最近話題の「nodeなんて癌だ」(by@dozba)発言へのryanからの真面目な反応の1つ 今回の騒動はフレームの歴史の2011年のエピソードの1つとしてカウントされると思われる Node.js is Cancer 翻訳されてる uu59のメモ | 訳:Node.jsは癌だ ebayのエンジニア、milo.comのファウンダーの一人、低レベルにも詳しい、という方なんだけど、乱心すぎてレスも不明瞭でポイントがよくわからん ryanからの真面目じゃない反応もある 「youtubeのnodeのintro動画の再生回数が10万回超え。nodeの繁殖力はまるで癌」 Twitte
iphoneアプリでnode.jsと通信する。 ネイティブアプリでリアルタイムな通信ができるので幅が広がりそう。 環境はMacOSX10で、今回は全部ローカル作業。 objective-cでWebSocket通信 iPhoneアプリとnode.jsで双方向通信するのは、もちろんWebSocketで行う。node.jsをインストールしたことある人はわかると思うが、WebSocket通信はsocket.IOモジュールで行っているのでクライアントサイド(objective-c)もsocket.IOにしたい。ライブラリはsokect.IO-objcを使う。 インストール xcode側 socket.IO-objcの依存ライブラリをインポート cocoa-websocket RegexKitLite json-framework ASIHTTPRequest cocoa-websocket http
HEADS UP! This article was written for an older version of node. More up-to-date information may be available elsewhere. Update: By request I have posted a gist of the app.js using MongoDB instead of CouchDB. This gist also serves as a beginning example for how to use non-promise-based APIs with bogart. In this article, you will learn how to use Bogart and CouchDB to create a minimal blogging engi
みなさん、楽しくKinectをHackしていますか? 公式/非公式なデバイスドライバを手に入れた瞬間から、Kinectは単なるゲームコントローラの枠を越え、「シンプルなAPIを持った3Dカメラ」として利用できるようになります。 世界中のハッカーがこぞってKinectをHackしており、 3D Video Capture with Kinect や Kinectでスーパーヒーローに変身 、 Kinectを使ってブラウザのWebGL内を動いてみた など、秀逸な動画がたくさん公開されています。 しかし身に付けて歩けるほどKinectセンサーは小さくないため、Kinectセンサーは固定PCに接続し据え置かざるを得ません。 Kinectセンサーから得て付加情報を重畳した映像を、その固定PC上で表示するだけでなく、Kinectセンサーのターゲットとなっている人物自身へ何らかの手段で遠隔配信でき
前回に引き続きconnect.jsを読む。今回はconnect/http.js。ここがconnectのコア。 まず最初にコンストラクタ。ここでhttp.Serverを継承してる。んでhttp.Server.call(this, this.handle)ってやってるのでリクエストハンドラをthis.handleにしてる。リクエストは全部このthis.handleで処理されるということになる。 var Server = exports.Server = function HTTPServer(middleware) { this.stack = []; middleware.forEach(function(fn){ this.use(fn); }, this); http.Server.call(this, this.handle); }; /** * Inherit from `http.
使用するフレームワークのコードはちゃんと読んで理解しとけと偉い人が言ってた気がするのでexpressのコードを読んでみる。 今回読むexpressのバージョンは2.4.3。 GitHub - expressjs/express at 2.4.3: Fast, unopinionated, minimalist web framework for node. が、その前に依存してるモジュールを読む。expressが依存してるライブラリは以下のようになっている。 "dependencies": { "connect": ">= 1.5.1 < 2.0.0", "mime": ">= 0.0.1", "qs": ">= 0.0.6" }, "devDependencies": { "connect-form": "0.2.1", "ejs": "0.4.2", "expresso": "0.7.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く