WordPress database error Can't create/write to file '/tmp/#sql_e94_0.MYI' (Errcode: 28) for query SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag') AND tr.object_id IN (488) ORDER BY t.name ASC made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, update_post_caches, update_object_term_cache, wp_get_object_terms WordPress database error Can't create/write to file '/tmp/#sql_e94_0.MYI' (Errcode: 28) for query SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag') AND tr.object_id IN (138) ORDER BY t.name ASC made by require, require_once, include, get_header, locate_template, load_template, require_once, wp_head, do_action, call_user_func_array, start_post_rel_link, get_boundary_post_rel_link, get_boundary_post, get_posts, WP_Query->query, WP_Query->get_posts, update_post_caches, update_object_term_cache, wp_get_object_terms
dimas priyanto a guy with mouse and keyboard

Running Node.js using Coffee-Script

Written on November 23, 2011

Creating node.js script is just a similar way when we created a client-side javascript source code. If you ever used rails 3.1.x i bet you had been implemented on how to use coffee-script in assets pipeline.

Wonder how to create coffee-script for node.js instead of regular javascript source code? Playing with coffee-script is a fun thing, how to make it? You need to install node.js at first including npm, then install the coffee-script for node.js. Since i’m using brew, i typed a command to install the formula:

npm install coffee-script

For sample we create a http server that respond to port 3000:

server = require('http').createServer (request, response) ->
  response.writeHead 200, {'Content-Type' : 'text/plain'}
  response.end 'Got it!\n'
server.listen 3000
console.log 'Server running at http://localhost:3000'

Save it in a file, for example server.coffee, and run it using coffee server.coffee (if the command not recognized try to run using coffee binary complete path, or create a symlink) when you called the url:

curl localhost:3ooo

Then it should response with:

Got it!