This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it is a copy of a header from one of the files. | |
tell me what you thing about the plan. | |
the framework is complete about 20% | |
// | |
// | |
// how it works? | |
// server | |
// \----\ | |
// | app skeleton // creates an app object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys=require('sys'); | |
var Route={}; | |
//var Route=function (){}; | |
sys.puts(Route); | |
Route.prototype.toString1= function() { return "it is a string i swear" } | |
var Newroute=new Route(); | |
sys.puts(Route); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project structure | |
admin | |
-webpages | |
- edit | |
- add | |
- list | |
- delete | |
-some other list | |
data - ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.google.com/search?q=libcrypto.so+memory+leaks | |
//this is a wild guess however see the output of simple script | |
var http = require('http') | |
, fs = require('fs') | |
, sys = require('sys') | |
, server = http.createServer(function(req, res) { | |
if(req.url=='/exit'){ http.close(); return;} | |
res.writeHead(200, {"Content-Type": "text/plain"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// These are so benificial, they default to true. | |
if (!isset($use_page_cache)) | |
$use_page_cache = 1; | |
if (!isset($use_compression)) | |
$use_compression = 1; | |
// Add browsers here as we must detect them. Opera is an oddball, if we don't detect | |
// it specifically, it will turn up as MSIE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// var sys = require('sys'); // enable for debugging this module | |
function replace(a, b) | |
{ | |
if (!b) return a; | |
var key; | |
for (key in b) a[key] = b[key]; | |
return a; | |
} this.replace=replace; | |
function add(a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('merger'); // lets do: _.extend(same,otherobjexts), _.clone(obj) - creates new reference, see source to understand // | |
var sys = require('sys'); | |
var doubletemplate = require('deps/nodejs-meta-templates/doubletemplate'); //load double teplate module | |
var httputils = require('httputils'); | |
var ObjectID= require('deps/node-mongodb-native/lib/mongodb/bson/bson').ObjectID; | |
var step=require('deps/step/lib/step'); | |
/* | |
+tables - collections | |
\/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www/nodejs-mongodb-app/cachedfiles_page.js:282 | |
var buf=new Buffer(data,'utf8'); | |
^ | |
TypeError: Bad argument | |
at /var/www/nodejs-mongodb-app/cachedfiles_page.js:282:18 | |
at fs:83:13 | |
at node.js:255:9 | |
var fs = require('fs'); // allaws to open files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var http = require('http'); | |
var Buffer = require('buffer').Buffer; | |
var gif; | |
fs.readFile(__filename, function (err, data) | |
{ | |
if (err) throw err; | |
gif = new Buffer(data, 'utf8'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the blog is in comments below |
OlderNewer