I hereby claim:
- I am tasinet on github.
- I am tasinet (https://keybase.io/tasinet) on keybase.
- I have a public key whose fingerprint is DA93 1C35 4390 B91F 398A B45F CD72 B602 4816 63F7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
4,5d3 | |
< clearAppBadge | |
< clipboard | |
7,8d4 | |
< cookieEnabled | |
< credentials | |
11d6 | |
< geolocation | |
13,15d7 | |
< getGamepads |
#!/bin/bash | |
# Copyright (c) 2013-2014 Artem Shinkarov <artyom.shinkaroff@gmail.com> | |
# | |
# Permission to use, copy, modify, and distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
Invariant Violation | |
Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops. | |
▼ 25 stack frames were expanded. | |
invariant | |
https://hqkug.codesandbox.io/node_modules/react-dom/cjs/react-dom.development.js:55:15 | |
scheduleWork | |
https://hqkug.codesandbox.io/node_modules/react-dom/cjs/react-dom.development.js:19916:5 | |
dispatchAction | |
https://hqkug.codesandbox.io/node_modules/react-dom/cjs/react-dom.development.js:13599:5 | |
Textarea/syncHeight<@https://hqkug.codesandbox.io/node_modules/ |
* Trying 2a00:1450:400e:808::200e... | |
* TCP_NODELAY set | |
* Connected to us-central1-notify-b7652.cloudfunctions.net (2a00:1450:400e:808::200e) port 443 (#0) | |
* ALPN, offering h2 | |
* ALPN, offering http/1.1 | |
* successfully set certificate verify locations: | |
} [5 bytes data] | |
* TLSv1.2 (OUT), TLS handshake, Client hello (1): |
#!/bin/bash | |
set -e | |
new_workspace=$1 | |
if [ "" == "$new_workspace" ]; then | |
echo expecting workspace name/number | |
exit 1 | |
fi |
// test.js at https://gist.github.com/tasinet/3ad091af55c659e5bd49
// makes 100 (serial) connections to https://registry.npmjs.org using (node::)http.request(), after changing the globalAgent.maxSocket (Default: 5).
// spoilers:
maxSocket 1 default
exeecution time 1.97 s. 13 s.
TCP conns 2 100
UDP conns 6 300
//with 0.10.33 | |
//run with -mS1 and watch network: ~ 2 TCP connections, 6 UDP/DNS reqs <-- KeepAliv | |
//run without an option for maxSockets = 5 (default from globalAgent) and watch network: ~ 100 TCP connections and 400 UDP/DNS req <-- No KeepAlive | |
//this is modeled sequentially, which is closer to npm install's request pattern (rather than 100 requests fired off at init time) | |
//results in https://gist.github.com/tasinet/9cfe55909393a9ebb9c8 | |
var https = require('https'); |
public static function getDateFromMongoId($_id) | |
{ | |
//first 8 chars of mongoid are hex unix timestamp | |
$_id = substr( (String)$_id, 0, 8 ); | |
$unix = hexdec($_id); | |
return date('d/m/Y H:i:s',$unix); | |
} |