Here is some information on the build machine I'm using for reference:
-
Dataset
$ dsadm list
UUID OS PUBLISHED URN
User's session has a fixed size pool of tokens. New token is generated every X minutes and becomes invalid every Y minutes. You always return the most recent one and check against all tokens you have. | |
token_valid = 180 min | |
create_new_token_every = 60 min | |
size = 3 | |
pool = [] // your session pool | |
current_version = '1' | |
getToken = function() { |
package main | |
import ( | |
"code.google.com/p/plotinum/plot" | |
"code.google.com/p/plotinum/vg" | |
"code.google.com/p/plotinum/vg/veceps" | |
"math/rand" | |
) | |
func main() { |
/*! Socket.IO.js build:0.9.6, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */ | |
/** | |
* Originally Ported to titanium by Jordi Domenech <jordi@iamyellow.net> | |
* source: https://github.com/iamyellow/socket.io-client | |
*/ | |
this.io = {}; | |
module.exports = this.io; | |
/** |
############################################################################### | |
## Monit control file | |
############################################################################### | |
## | |
## Comments begin with a '#' and extend through the end of the line. Keywords | |
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'. | |
## | |
## Below you will find examples of some frequently used statements. For | |
## information about the control file, a complete list of statements and | |
## options please have a look in the monit manual. |
SmartOS albeit powerful, makes some easy things like figuring out a "version" of SmartOS very difficult and confusing. To someone like Basho who makes packages for SmartOS, it is enough to drive us (me) insane trying to figure out how to label the packages.
The problem lies in trying to define the version at all. Is the version you care about listed in uname -a
? How about a file in /etc/
that tells you? The answer to bolth of those questions is "no". uname -v
gives you a string like joyent_20130125T031721Z
The only file in /etc/
that comes close is pkgsrc_version
, but that is only sometimes available on the system. The real answer is a combination of the Global Zone snapshot version and the pkgsrc version in the guest zones.
So how do I label my packages for SmartOS?
With the uname -v
example above, joyent_20130125T031721Z
describes the global zone, and has some influence on how apps run, but not enough to determine which package will work on which system. Plus I d
HTTP Archive (powered by HAR files): www.httparchive.org
HAR Viewer: http://code.google.com/p/harviewer/
If you prefer VirtualBox or aren't running OS X, here are some instructions and a script to help you get started with SmartOS under VirtualBox. If you use VirtualBox, skip the first section and read the section on how to get the Node.js SmartMachine up and running.