This file contains hidden or 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
root@c1.vultr.zuberglobal.com:26257/zuber> show create table marketplaces; | |
+--------------+--------------------------------------------------------------------------+ | |
| Table | CreateTable | | |
+--------------+--------------------------------------------------------------------------+ | |
| marketplaces | CREATE TABLE marketplaces ( | | |
| | | | |
| | id INTEGER NOT NULL, | | |
| | | | |
| | marketplace STRING NOT NULL, | | |
| | | |
This file contains hidden or 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
CREATE TABLE a ( | |
id UUID NOT NULL DEFAULT gen_random_uuid(), | |
PRIMARY KEY (id) | |
); | |
CREATE TABLE aa ( | |
a UUID NOT NULL, | |
at TIMESTAMPTZ NOT NULL DEFAULT statement_timestamp(), | |
PRIMARY KEY (a, at), | |
CONSTRAINT fk_a FOREIGN KEY (a) REFERENCES a (id) |
This file contains hidden or 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
[Test] | |
public void CursorShouldGetLessOrEqual() { | |
_db = _txn.OpenDatabase(flags: DbFlags.None); | |
var db2 = _txn.OpenDatabase("test_le", | |
DbFlags.Create | DbFlags.IntegerKey); | |
using (var cur = _txn.CreateCursor(db2)) { | |
int[] keys = new int[10000000]; |
This file contains hidden or 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
<html> | |
<head> | |
<title></title> | |
<style> | |
p { | |
font-family: "Verdana", Serif; | |
} | |
</style> | |
</head> | |
<body> |
This file contains hidden or 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.createServer(function (req, res) { | |
req.setEncoding('binary'); // THE FIX IS TO COMMENT OUT THIS LINE. Then you'll get buffers. | |
req.content = Buffer.concat([]); | |
console.log(req); // I verified Content-Type is "application/octet-stream", see below for full console output. | |
req.addListener("data", function(chunk) { | |
console.log(typeof chunk); // Get "string", want "object". | |
console.log(chunk); // Want <Buffer: 0x...>, get a string instead. | |
console.log(req.content); // Prints <Buffer > as expected. | |
req.content = Buffer.concat([req.content, chunk]); // Fails in buffer.js:499 -- buf.copy(buffer, pos); |
This file contains hidden or 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 racer = require('racer'); | |
var BCSocket = require('browserchannel').BCSocket; | |
racer.Model.prototype._createSocket = function(bundle) { | |
var options = bundle.racerBrowserChannel; | |
var base = options.base || '/channel'; | |
if (bundle.mount) base = bundle.mount + base; | |
base = 'http://localhost:3000' + base; /////////<====== Change this to the address and | |
///////// port of your Racer server. | |
return new BCSocket(base, options); |
This file contains hidden or 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
{ | |
"queries": [], | |
"contexts": { | |
"root": { | |
"fetchedDocs": {}, | |
"subscribedDocs": {}, | |
"fetchedQueries": {}, | |
"subscribedQueries": {} | |
} | |
}, |
This file contains hidden or 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
net.js:1072 | |
if (port && handle.getsockname && port != handle.getsockname().port) { | |
^ | |
TypeError: Cannot read property 'getsockname' of undefined | |
at net.js:1072:23 | |
at Object.1:1 (cluster.js:587:5) | |
at handleResponse (cluster.js:171:41) | |
at respond (cluster.js:192:5) | |
at handleMessage (cluster.js:202:5) | |
at process.EventEmitter.emit (events.js:117:20) |
This file contains hidden or 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
Here's the error I was getting: | |
mila:node-sqlite3 onitunes$ ./configure | |
gyp info it worked if it ends with ok | |
gyp info using node-gyp@0.9.1 | |
gyp info using node@0.8.17 | darwin | x64 | |
gyp ERR! configure error | |
gyp ERR! stack Error: Command failed: execvp(): No such file or directory | |
gyp ERR! stack | |
gyp ERR! stack at ChildProcess.exithandler (child_process.js:540:15) |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html> | |
<head> | |
<title></title> | |
<script> | |
Object.defineProperty(Float32Array.prototype, 'width', { | |
get: function() { | |
return this[0]; | |
}, | |
set: function(val) { |
NewerOlder