If you do this, you are awesome.
- Update to node 0.4.0
- Go to https://github.com/ry/node/issues
- Pick a bug.
- Try to reproduce it.
- Comment with either:
- "works for me on 0.4.0"
| ;; | |
| ;; Emacs smart tabs functionality | |
| ;; Intelligently indent with tabs, align with spaces! | |
| ;; | |
| ;; Note: Indenting only uses tabs when indent-tabs-mode is non-nil, | |
| ;; otherwise it uses spaces as usual. | |
| ;; | |
| ;; To use: save as smarttabs.el in your .emacs.d directory, and add | |
| ;; "(require 'smarttabs)" to your .emacs file. | |
| ;; |
| /** | |
| * SocketManager - Singleton to manage multi-channel socket 'routing', need a way to merge with socket.io so client sessions aren't stored twice in memory, | |
| * | |
| * Requires Socket.IO-node and Socket.IO client libraries. | |
| * | |
| * Usage: | |
| * in your main app.js file (or whereever you create the server) | |
| * | |
| * var io = require('socket.io'), | |
| * sm = require('socketmanager'); |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| require.registerExtension('.js', function(js){ | |
| return js.replace(/^ *\/\/debug: */gm, ''); | |
| }); |
| /** | |
| * Module dependencies. | |
| */ | |
| var inspect = require('sys').inspect; | |
| console.inspect = function(obj, depth){ | |
| if (!obj) return; |
| /** | |
| * Module dependencies. | |
| */ | |
| var express = require('express'); | |
| var app = express.createServer(); | |
| function params(req, res, next) { |
If you do this, you are awesome.
| Index: sapi/cli/config.w32 | |
| =================================================================== | |
| --- sapi/cli/config.w32 (revision 308839) | |
| +++ sapi/cli/config.w32 (working copy) | |
| @@ -6,7 +6,8 @@ | |
| ARG_ENABLE('cli-win32', 'Build console-less CLI version of PHP', 'no'); | |
| if (PHP_CLI == "yes") { | |
| - SAPI('cli', 'php_cli.c', 'php.exe'); | |
| + SAPI('cli', 'php_cli.c php_http_parser.c php_cli_server.c', 'php.exe'); |
| // We need to notify V8 when we're idle so that it can run the garbage | |
| // collector. The interface to this is V8::IdleNotification(). It returns | |
| // !! "not" true if the heap hasn't be fully compacted, and needs to be run again. | |
| // Returning false means that it doesn't have anymore work to do. | |
| // | |
| // A rather convoluted algorithm has been devised to determine when Node is | |
| // idle. You'll have to figure it out for yourself. | |
| static uv_check_t gc_check; // -> Check() Called once right after the event loop unblocks. | |
| static uv_idle_t gc_idle; // This is called in loop when the event loop dont have anything to do (until stopped). | |
| static uv_timer_t gc_timer; // Usual timer. |