code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
|---|---|---|---|---|---|
.table_form th {
text-align: left;
padding: 5px;
font-size: 12px;
font-weight: normal;
background: none repeat scroll 0 0 #6F8992 !important;
color: #FFFFFF;
}
.table_form th, .table_form td {
vertical-align: top;
border: solid 0px #000000;
}
.table_form td:first-child {
width: 20%;
}
.table_form textarea {
width: 350px;
height: 200px;
padding: 0px !important;
}
|
tommy-bolger/necrolab
|
assets/styles/default/css/framework/TableForm.css
|
CSS
|
mit
| 441
|
/**
* @jsx React.DOM
*/
/* not used but thats how you can use touch events
* */
//React.initializeTouchEvents(true);
/* not used but thats how you can use animation and other transition goodies
* */
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
/**
* we will use yes for true
* we will use no for false
*
* React has some built ins that rely on state being true/false like classSet()
* and these will not work with yes/no but can easily be modified / reproduced
*
* this single app uses the yes/no var so if you want you can switch back to true/false
*
* */
var yes = 'yes', no = 'no';
//var yes = true, no = false;
/* bootstrap components
* */
var Flash = ReactBootstrap.Alert;
var Btn = ReactBootstrap.Button;
var Modal = ReactBootstrap.Modal;
/* create the container object
* */
var snowUI = {
passthrough: {}, //special for passing functions between components
};
/* create flash message
* */
snowUI.SnowpiFlash = React.createClass({displayName: 'SnowpiFlash',
getInitialState: function() {
return {
isVisible: true
};
},
getDefaultProps: function() {
return ({showclass:'info'});
},
render: function() {
snowlog.log(this.props);
if(!this.state.isVisible)
return null;
var message = this.props.message ? this.props.message : this.props.children;
return (
Flash({bsStyle: this.props.showclass, onDismiss: this.dismissFlash},
React.DOM.p(null, message)
)
);
},
dismissFlash: function() {
this.setState({isVisible: false});
}
});
/* my little man component
* simple example
* */
snowUI.SnowpiMan = React.createClass({displayName: 'SnowpiMan',
getDefaultProps: function() {
return ({divstyle:{float:'right',}});
},
render: function() {
return this.transferPropsTo(
React.DOM.div({style: this.props.divstyle, dangerouslySetInnerHTML: {__html: snowtext.logoman}})
);
}
});
/**
* menu components
* */
//main
snowUI.leftMenu = React.createClass({displayName: 'leftMenu',
getInitialState: function() {
return ({
config:this.props.config || {section:snowPath.wallet,wallet:'all',moon:'overview'}
})
},
componentWillReceiveProps: function(nextProps) {
if(nextProps.config)this.setState({config:nextProps.config})
},
render: function() {
var showmenu
if(this.state.config.section === snowPath.wallet) {
if(this.state.config.wallet && this.state.config.wallet !== 'new')
showmenu = snowUI.walletMenu
else
showmenu = snowUI.defaultMenu
} else if(this.state.config.section === snowPath.receive || this.state.config.section === snowPath.settings) {
showmenu = snowUI.receiveMenu
} else {
showmenu = snowUI.defaultMenu
}
snowlog.log('main menu component',this.state.config)
return (
React.DOM.div(null, showmenu({config: this.state.config}), " ")
);
}
});
//wallet menu
snowUI.walletMenu = React.createClass({displayName: 'walletMenu',
getInitialState: function() {
return ({
config:this.props.config || {section:snowPath.wallet,wallet:false,moon:false}
})
},
componentWillReceiveProps: function(nextProps) {
if(nextProps.config)this.setState({config:nextProps.config})
},
componentDidUpdate: function() {
$('.dogemenulink').removeClass('active');
var moon = this.state.config.moon
if(!moon && this.state.config.wallet !== 'new')moon = 'dashboard'
$('.dogemenulink[data-snowmoon="'+moon+'"]').addClass('active');
},
componentDidMount: function() {
this.componentDidUpdate()
},
menuClick: function(e) {
e.preventDefault();
var moon = $(e.target).parent()[0].dataset.snowmoon;
snowUI.methods.valueRoute(snowPath.wallet + '/' + this.state.config.wallet + '/' + moon);
return false
},
render: function() {
snowlog.log('wallet menu component')
return (
React.DOM.div(null,
React.DOM.div({id: "menuwallet"},
React.DOM.a({onClick: this.menuClick, 'data-snowmoon': "dashboard", id: "dogedash", 'data-container': "#menuspy", title: "", className: "dogemenulink ", 'data-original-title': "Dashboard"}, " ", React.DOM.span({className: "glyphicon glyphicon-th"}), " Dashboard"),
React.DOM.a({onClick: this.menuClick, 'data-snowmoon': "accounts", id: "dogeacc", 'data-container': "#menuspy", title: "", className: "dogemenulink", 'data-original-title': "manage wallet accounts"}, " ", React.DOM.span({className: "glyphicon glyphicon-list"}), " Accounts"),
React.DOM.a({onClick: this.menuClick, 'data-snowmoon': "send", id: "dogesend", 'data-container': "#menuspy", title: "", className: "dogemenulink", 'data-original-title': "send coins"}, " ", React.DOM.span({className: "glyphicon glyphicon-share"}), " Send"),
React.DOM.a({onClick: this.menuClick, 'data-snowmoon': "transactions", id: "dogetx", 'data-container': "#menuspy", title: "", className: "dogemenulink", 'data-original-title': "sortable transaction list"}, " ", React.DOM.span({className: "glyphicon glyphicon-list-alt"}), " Transactions"),
React.DOM.a({onClick: this.menuClick, 'data-snowmoon': "update", id: "dogeupdate", 'data-container': "#menuspy", title: "", className: "dogemenulink", 'data-original-title': "update wallet"}, React.DOM.span({className: "glyphicon glyphicon-pencil"}), " Update ", React.DOM.span({id: "updatecoinspan", style: {display:"none"}}))
),
"- ")
);
}
});
//main menu
snowUI.receiveMenu = React.createClass({displayName: 'receiveMenu',
getInitialState: function() {
return ({
config:this.props.config || {section:snowPath.wallet,wallet:'all',moon:'overview'}
})
},
componentWillReceiveProps: function(nextProps) {
if(nextProps.config)this.setState({config:nextProps.config})
},
componentDidUpdate: function() {
$('.dogedccmenulink').removeClass('active');
$('.dogedccmenulink[data-snowmoon="'+this.state.config.section+'"]').addClass('active');
},
menuClick: function(e) {
e.preventDefault();
var moon = $(e.target).parent()[0].dataset.snowmoon;
snowUI.methods.valueRoute(moon);
return false
},
render: function() {
snowlog.log('receive menu component')
return (
React.DOM.div(null,
React.DOM.div({id: "menudcc"},
React.DOM.a({onClick: this.menuClick, 'data-snowmoon': snowPath.receive, id: "dogedccsetup", 'data-container': "#menuspy", title: "", className: "dogedccmenulink", 'data-original-title': "Receive coins from strangers. (friends too)"}, " ", React.DOM.span({className: "glyphicon glyphicon-tasks"}), " Receivers"),
React.DOM.a({onClick: this.menuClick, 'data-snowmoon': snowPath.wallet, id: "dogewallets", 'data-container': "#menuspy", title: "", className: "dogedccmenulink", 'data-original-title': "Digital Coin Wallets"}, " ", React.DOM.span({className: "glyphicon glyphicon-briefcase"}), " Wallets"),
React.DOM.a({onClick: this.menuClick, 'data-snowmoon': snowPath.settings, id: "dogedccsettings", 'data-container': "#menuspy", title: "", className: "dogedccmenulink", 'data-original-title': "Digital Coin Coordinator settings"}, " ", React.DOM.span({className: "glyphicon glyphicon-cog"}), " Settings")
)
)
);
}
});
//default
snowUI.defaultMenu = snowUI.receiveMenu
//wallet select
snowUI.walletSelect = React.createClass({displayName: 'walletSelect',
componentDidMount: function() {
this.updateSelect();
},
componentDidUpdate: function() {
this.updateSelect();
},
componentWillUpdate: function() {
$("#walletselect").selectbox("detach");
},
updateSelect: function() {
var _this = this
$("#walletselect").selectbox({
onChange: function (val, inst) {
_this.props.route(val)
},
effect: "fade"
});
//snowlog.log('wallet select updated')
},
render: function() {
var wallets;
if(this.props.wally instanceof Array) {
var wallets = this.props.wally.map(function (w) {
return (
React.DOM.option({key: w.key, value: snowPath.wallet + '/' + w.key}, w.name)
);
});
}
if(this.props.section === snowPath.wallet) {
var _df = (this.props.wallet) ? snowPath.wallet + '/' + this.props.wallet : snowPath.wallet;
} else {
var _df = this.props.section;
}
//snowlog.log(_df)
return this.transferPropsTo(
React.DOM.div({className: "list"},
React.DOM.div({className: "walletmsg", style: {display:'none'}}),
React.DOM.select({onChange: this.props.route, id: "walletselect", value: _df},
wallets,
React.DOM.optgroup(null),
React.DOM.option({value: snowPath.wallet + '/new'}, snowtext.menu.plus.name),
React.DOM.option({value: snowPath.wallet}, snowtext.menu.list.name),
React.DOM.option({value: snowPath.receive}, snowtext.menu.receive.name),
React.DOM.option({value: snowPath.settings}, snowtext.menu.settings.name),
React.DOM.option({value: snowPath.inq}, snowtext.menu.inqueue.name)
)
)
);
}
});
var UI = React.createClass({displayName: 'UI',
getInitialState: function() {
/**
* initialize the app
* the plan is to keep only active references in root state.
* we should use props for the fill outs
* */
var _this = this
snowUI.methods = {
hrefRoute: _this.hrefRoute,
valueRoute: _this.valueRoute,
updateState: _this.updateState,
loaderStart: _this.loaderStart,
loaderStop: _this.loaderStop,
config: _this.config(),
fadeOut: function () {
$('#maindiv').removeClass('reactfade-enter reactfade-enter-active');
$('#maindiv').addClass('reactfade-leave reactfade-leave-active');
},
fadeIn: function () {
$('#maindiv').removeClass('reactfade-leave reactfade-leave-active');
$('#maindiv').addClass('reactfade-enter-active');
},
}
return {
section: this.props.section || 'wallet',
moon: this.props.moon || false,
wallet: this.props.wallet || false,
mywallets: [],
locatewallet: [],
mounted:false
};
},
//set up the config object
config: function() {
var _this = this
if(this.state) {
return {
section:_this.state.section,
wallet:_this.state.wallet,
moon:_this.state.moon,
mywallets: _this.state.mywallets,
locatewallet: _this.state.locatewallet
}
}
},
componentDidMount: function() {
if(!this.state.mounted) {
this.getWallets()
}
},
getWallets: function () {
//grab our initial data
snowlog.log('run on mount')
$.ajax({url: "/api/snowcoins/local/change-wallet"})
.done(function( resp,status,xhr ) {
_csrf = xhr.getResponseHeader("x-snow-token");
snowlog.log('wally',resp.wally)
//wallets
this.setState({mywallets:resp.wally});
//locater
var a = [];
var ix = resp.wally.length;
for(i=0;i<ix;i++) {
a[i]=resp.wally[i].key
}
this.setState({locatewallet:a});
this.setState({mounted:true});
}.bind(this));
},
componentWillReceiveProps: function(nextProps) {
if(nextProps.section !== undefined)this.setState({section:nextProps.section});
if(nextProps.moon !== undefined)this.setState({moon:nextProps.moon});
if(nextProps.wallet !== undefined)this.setState({wallet:nextProps.wallet});
//wallet list
if(nextProps.mywallets)this.setState({mywallets:nextProps.mywallets});
//if(nextProps.section)this.loaderStart()
return false;
},
componentWillUpdate: function() {
this.loaderStart()
return false
},
updateState: function(prop,value) {
this.setState({prop:value});
return false
},
loaderStart: function() {
$('.loader').fadeIn();
return false
},
loaderStop: function() {
$('.loader').delay(500).fadeOut("slow");
return false
},
changeTheme: function() {
var mbody = $('body');
if(mbody.hasClass('themeable-snowcoinslight')==true) {
mbody.removeClass('themeable-snowcoinslight');
} else {
mbody.addClass('themeable-snowcoinslight');
}
return false
},
valueRoute: function(route) {
bone.router.navigate(snowPath.root + route, {trigger:true});
snowlog.log(snowPath.root + route)
return false
},
hrefRoute: function(route) {
route.preventDefault();
bone.router.navigate(snowPath.root + $(route.target)[0].pathname, {trigger:true});
snowlog.log(snowPath.root + $(route.target)[0].pathname)
return false
},
eggy: function() {
eggy();
},
render: function() {
//set up our psuedo routes
var comp = {}
comp[snowPath.wallet]=snowUI.wallet;
comp[snowPath.receive]=snowUI.receive;
comp[snowPath.settings]=snowUI.settings;
comp[snowPath.inq]=snowUI.inq;
var mycomp = comp[this.state.section]
snowlog.log('check state UI',this.state.mounted);
if(this.state.mounted) {
var mountwallet = function() {
return (snowUI.walletSelect({route: this.valueRoute, section: this.state.section, wallet: this.state.wallet, wally: this.state.mywallets}))
}.bind(this)
var mountpages = function() {
return (mycomp({methods: snowUI.methods, config: this.config()}))
}.bind(this)
} else {
var mountwallet = function(){};
var mountpages = function(){};
}
//mount
return (
React.DOM.div({id: "snowpi-body"},
React.DOM.div({id: "walletbarspyhelper", style: {display:'block'}}),
React.DOM.div({id: "walletbar", className: "affix"},
React.DOM.div({className: "wallet"},
React.DOM.div({className: "button-group"},
Btn({bsStyle: "link", 'data-toggle': "dropdown", className: "dropdown-toggle"}, snowtext.menu.menu.name),
React.DOM.ul({className: "dropdown-menu", role: "menu"},
React.DOM.li({className: "nav-item-add"}, " ", React.DOM.a({onClick: this.hrefRoute, href: snowPath.wallet + '/new'}, snowtext.menu.plus.name)),
React.DOM.li({className: "nav-item-home"}, " ", React.DOM.a({onClick: this.hrefRoute, href: snowPath.wallet}, snowtext.menu.list.name)),
React.DOM.li({className: "nav-item-receive"}, React.DOM.a({onClick: this.hrefRoute, href: snowPath.receive}, snowtext.menu.receive.name)),
React.DOM.li({className: "nav-item-settings"}, React.DOM.a({onClick: this.hrefRoute, href: snowPath.settings}, snowtext.menu.settings.name)),
React.DOM.li({className: "divider"}),
React.DOM.li({className: "nav-item-snowcat"}),
React.DOM.li({className: "divider"}),
React.DOM.li(null,
React.DOM.div(null,
React.DOM.div({onClick: this.changeTheme, className: "walletmenuspan changetheme bstooltip", title: "Switch between the light and dark theme", 'data-toggle': "tooltip", 'data-placement': "bottom", 'data-container': "body"}, React.DOM.span({className: "glyphicon glyphicon-adjust"})),
React.DOM.div({className: "walletmenuspan bstooltip", title: "inquisive queue", 'data-toggle': "tooltip", 'data-placement': "bottom", 'data-container': "body"}, " ", React.DOM.a({onClick: this.hrefRoute, href: snowPath.inq, className: "nav-item-inq"})),
React.DOM.div({className: "walletmenuspan bstooltip", title: "Logout", 'data-toggle': "tooltip", 'data-placement': "right", 'data-container': "body"}, " ", React.DOM.a({href: "/signout"}, " ", React.DOM.span({className: "glyphicon glyphicon-log-out"}))),
React.DOM.div({className: "clearfix"})
)
)
)
)
),
mountwallet(),
React.DOM.div({className: "logo", onClick: this.eggy}, React.DOM.a({title: "inquisive.io snowcoins build info", 'data-container': "body", 'data-placement': "bottom", 'data-toggle': "tooltip", className: "walletbar-logo"}))
),
React.DOM.div({className: "container-fluid"},
React.DOM.div({id: "menuspy", className: "dogemenu col-xs-1 col-md-2", 'data-spy': "affix", 'data-offset-top': "0"},
snowUI.leftMenu({config: this.config()})
),
React.DOM.div({id: "menuspyhelper", className: "dogemenu col-xs-1 col-md-2"}),
React.DOM.div({className: "dogeboard col-xs-11 col-md-10"},
snowUI.AppInfo(null),
React.DOM.div({className: "dogeboard-left col-xs-12 col-md-12"},
mountpages()
)
)
)
/* end snowpi-body */
)
)
}
});
//app info
snowUI.AppInfo = React.createClass({displayName: 'AppInfo',
render: function() {
return (
React.DOM.div({id: "easter-egg", style: {display:'none'}},
React.DOM.div(null,
React.DOM.div({className: "blocks col-xs-offset-1 col-xs-10 col-md-offset-1 col-md-5 col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-4"},
React.DOM.h4(null, "Get Snowcoins"),
React.DOM.div({className: "row"},
React.DOM.div({className: "col-sm-offset-1 col-sm-11"}, React.DOM.a({href: "https://github.com/inquisive/snowcoins", target: "_blank"}, "GitHub / Installation")),
React.DOM.div({className: "col-sm-offset-1 col-sm-11"}, " ", React.DOM.a({href: "https://github.com/inquisive/snowcoins/latest.zip", target: "_blank"}, "Download zip"), " | ", React.DOM.a({href: "https://github.com/inquisive/snowcoins/latest.tar.gz", target: "_blank"}, "Download gz"))
),
React.DOM.div({style: {borderBottom:'transparent 15px solid'}}),
React.DOM.h4(null, "Built With"),
React.DOM.div({className: "row"},
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-4"}, React.DOM.a({href: "http://nodejs.org", target: "_blank"}, "nodejs")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "http://keystonejs.com", target: "_blank"}, "KeystoneJS")),
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-4"}, React.DOM.a({href: "http://getbootstrap.com/", target: "_blank"}, "Bootstrap")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "https://github.com/countable/node-dogecoin", target: "_blank"}, "node-dogecoin")),
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-4"}, React.DOM.a({href: "http://mongoosejs.com/", target: "_blank"}, "mongoose"))
)
),
React.DOM.div({className: "blocks col-xs-offset-1 col-xs-10 col-md-offset-1 col-md-5 col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-4"},
React.DOM.h4(null, "Donate"),
React.DOM.div({className: "row"},
React.DOM.div({title: "iq", className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, "iq: ", React.DOM.a({href: "https://inquisive.com/iq/snowkeeper", target: "_blank"}, "snowkeeper")),
React.DOM.div({title: "Dogecoin", className: "col-sm-6 col-md-4"}, React.DOM.a({href: "https://snow.snowpi.org/share/dogecoin", target: "_blank"}, "Ðogecoin")),
React.DOM.div({title: "Bitcoin", className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "https://snow.snowpi.org/share/bitcoin", target: "_blank"}, "Bitcoin")),
React.DOM.div({title: "Litecoin", className: "col-sm-6 col-md-4"}, React.DOM.a({href: "https://snow.snowpi.org/share/litecoin", target: "_blank"}, "Litecoin")),
React.DOM.div({title: "Darkcoin", className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "https://snow.snowpi.org/share/darkcoin", target: "_blank"}, "Darkcoin"))
),
React.DOM.div({style: {borderBottom:'transparent 15px solid'}}),
React.DOM.h4(null, "Digital Coin Wallets"),
React.DOM.div({className: "row"},
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "http://dogecoin.com", target: "_blank"}, "dogecoin")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "http://bitcoin.org", target: "_blank"}, "bitcoin")),
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "http://litecoin.org", target: "_blank"}, "litecoin")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "http://vertcoin.org", target: "_blank"}, "vertcoin")),
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "http://octocoin.org", target: "_blank"}, "888")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "http://auroracoin.org", target: "_blank"}, "auroracoin")),
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "http://blackcoin.co", target: "_blank"}, "blackcoin")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "http://digibyte.co", target: "_blank"}, "digibyte")),
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "http://digitalcoin.co", target: "_blank"}, "digitalcoin")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "http://darkcoin.io", target: "_blank"}, "darkcoin")),
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "http://maxcoin.co.uk", target: "_blank"}, "maxcoin")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "http://mintcoin.co", target: "_blank"}, "mintcoin")),
React.DOM.div({className: "col-sm-offset-1 col-sm-5 col-md-offset-1 col-md-5"}, React.DOM.a({href: "http://einsteinium.org", target: "_blank"}, "einsteinium")),
React.DOM.div({className: "col-sm-6 col-md-4"}, React.DOM.a({href: "http://peercoin.net", target: "_blank"}, "peercoin "))
),
React.DOM.div({className: "row"}
)
),
React.DOM.div({className: "clearfix"})
)
)
);
}
});
|
inquisive/wallet-manager
|
public/js/.module-cache/ab49b1cc9df6578c57e04eb43cab7040e5bdb3ee.js
|
JavaScript
|
mit
| 21,475
|
package jp.gr.java_conf.kgd.library.cool.jsfml.actor.parts.scroll.bar;
public interface IConstScrollbarController
{
boolean isVertical();
float getSliderPositionRate();
float getSliderLengthRate();
}
|
t-kgd/library-cool
|
cool-jsfml/src/main/java/jp/gr/java_conf/kgd/library/cool/jsfml/actor/parts/scroll/bar/IConstScrollbarController.java
|
Java
|
mit
| 206
|
response.title = "Enter H4H"
response.subtitle = "Smart House4H Access Control"
response.meta.keywords = "arduino hacker space"
response.menu = [
(T('Gate'), False, URL('default','gate')),
(T('Door'), False, URL('default','door')),
(T('About'), False, URL('default','about')),
]
|
house4hack/openSHAC
|
web2py_shac/applications/enter/models/menu.py
|
Python
|
mit
| 282
|
# CMake generated Testfile for
# Source directory: /home/bladestery/Downloads/opencv-3.2.0/modules/calib3d
# Build directory: /home/bladestery/Sapphire/example_apps/AndroidStudioMinnie/sapphire/.externalNativeBuild/cmake/debug/mips/modules/calib3d
#
# This file includes the relevant testing commands required for
# testing this directory and lists subdirectories to be tested as well.
|
bladestery/Sapphire
|
example_apps/AndroidStudioMinnie/sapphire/.externalNativeBuild/cmake/debug/mips/modules/calib3d/CTestTestfile.cmake
|
CMake
|
mit
| 389
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>BitCowboy's Blog</title>
<meta name="description" content="" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="https://bitcowboy.github.io/favicon.ico">
<link rel="stylesheet" type="text/css" href="//bitcowboy.github.io/themes/casper/assets/css/screen.css?v=1473420217541" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400" />
<link rel="canonical" href="https://bitcowboy.github.io/" />
<meta name="referrer" content="origin" />
<meta property="og:site_name" content="BitCowboy's Blog" />
<meta property="og:type" content="website" />
<meta property="og:title" content="BitCowboy's Blog" />
<meta property="og:url" content="https://bitcowboy.github.io/" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="BitCowboy's Blog" />
<meta name="twitter:url" content="https://bitcowboy.github.io/" />
<script type="application/ld+json">
null
</script>
<meta name="generator" content="HubPress" />
<link rel="alternate" type="application/rss+xml" title="BitCowboy's Blog" href="https://bitcowboy.github.io/rss/" />
</head>
<body class="home-template nav-closed">
<div class="site-wrapper">
<header class="main-header no-cover">
<nav class="main-nav overlay clearfix">
<a class="blog-logo" href="https://bitcowboy.github.io"><img src="/images/logo.jpg" alt="BitCowboy's Blog" /></a>
</nav>
<div class="vertical">
<div class="main-header-content inner">
<h1 class="page-title">BitCowboy's Blog</h1>
<h2 class="page-description">Tech meets Art</h2>
</div>
</div>
<a class="scroll-down icon-arrow-left" href="#content" data-offset="-45"><span class="hidden">Scroll Down</span></a>
</header>
<main id="content" class="content" role="main">
<div class="extra-pagination inner">
<nav class="pagination" role="navigation">
<span class="page-number">Page 1 of 1</span>
</nav>
</div>
<article class="post tag-MMO tag-Game tag-Server">
<header class="post-header">
<h2 class="post-title"><a href="https://bitcowboy.github.io/2016/09/09/Grand-Loop-of-Online-Game.html">网游的整体架构</a></h2>
</header>
<section class="post-excerpt">
<p>今天抽空简单画了几幅图。 说起游戏来可能大家都不陌生,甚至很多人都在从事游戏开发的工作。这几张图看起来也没啥特殊的。不过至少国内的游戏开发者,时刻把这几幅图印在脑子里的并不多。但是往往越是复杂越是庞大的项目,越是需要简单的设计和清晰的层次结构。这幅图简单的描述了数据是怎么在不同层次间流转的,如果是个网游,那么同步和通信应该发送在什么地方。 以后有时间,也许我会 <a class="read-more" href="https://bitcowboy.github.io/2016/09/09/Grand-Loop-of-Online-Game.html">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://avatars.githubusercontent.com/u/2291013?v=3" alt="Jeffrey Chen" nopin="nopin" />
<a href="https://bitcowboy.github.io/author/bitcowboy/">Jeffrey Chen</a>
on <a href="https://bitcowboy.github.io/tag/MMO/">MMO</a>, <a href="https://bitcowboy.github.io/tag/Game/"> Game</a>, <a href="https://bitcowboy.github.io/tag/Server/"> Server</a>
<time class="post-date" datetime="2016-09-09">09 September 2016</time>
</footer>
</article>
<article class="post tag-MMO tag-Server tag-Network">
<header class="post-header">
<h2 class="post-title"><a href="https://bitcowboy.github.io/2016/08/24/reducing-game-servers-latency.html">减小 Game Server 的网络延迟</a></h2>
</header>
<section class="post-excerpt">
<p>背景 之前 剑网3 游戏内的客户端到服务器的TCP网络延迟大约是 60~120ms。但是如果直接ping服务器的IP,会发现UDP包在物理网络上传输的实际延迟远远小于这个值,在比较好的网络环境下,甚至低于10ms。 稍加分析我们就可以看出,游戏内的实际网络延迟主要可以分为两大部分,一部分是协议包实际在网络上传输导致的延迟,另一部分则是服务器处理包所产生的延迟。 <a class="read-more" href="https://bitcowboy.github.io/2016/08/24/reducing-game-servers-latency.html">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://avatars.githubusercontent.com/u/2291013?v=3" alt="Jeffrey Chen" nopin="nopin" />
<a href="https://bitcowboy.github.io/author/bitcowboy/">Jeffrey Chen</a>
on <a href="https://bitcowboy.github.io/tag/MMO/">MMO</a>, <a href="https://bitcowboy.github.io/tag/Server/"> Server</a>, <a href="https://bitcowboy.github.io/tag/Network/"> Network</a>
<time class="post-date" datetime="2016-08-24">24 August 2016</time>
</footer>
</article>
<article class="post tag-Hub-Press tag-Duo-Shuo">
<header class="post-header">
<h2 class="post-title"><a href="https://bitcowboy.github.io/2016/08/20/integrating-comment-system.html">集成了评论和分享功能</a></h2>
</header>
<section class="post-excerpt">
<p>HubPress虽然用起来很方便,不过显然和那些起步比较早的同类系统相比,周边配套就没那么完善了。虽然系统原生支持分享到twitter、facebook和google plus,并且可以用Disqus来评论,但是显然这些都没有办法适应国内网络的特殊性。 于是选择用国内的 多说 来替代。通过修改HubPress自带的主题模板来嵌入 多说 的JavaScripts <a class="read-more" href="https://bitcowboy.github.io/2016/08/20/integrating-comment-system.html">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://avatars.githubusercontent.com/u/2291013?v=3" alt="Jeffrey Chen" nopin="nopin" />
<a href="https://bitcowboy.github.io/author/bitcowboy/">Jeffrey Chen</a>
on <a href="https://bitcowboy.github.io/tag/Hub-Press/">HubPress</a>, <a href="https://bitcowboy.github.io/tag/Duo-Shuo/"> DuoShuo</a>
<time class="post-date" datetime="2016-08-20">20 August 2016</time>
</footer>
</article>
<article class="post tag-Hub-Press">
<header class="post-header">
<h2 class="post-title"><a href="https://bitcowboy.github.io/2016/08/20/hello-world.html">hello world</a></h2>
</header>
<section class="post-excerpt">
<p>今天开始,算是正式有个自己的Blog了。远离微博的喧闹和朋友圈的装B,在这里可以静下心来记录一些想法。 其实有写Blog的想法已经很久了,一来是怕自己坚持不下去,二来是实在没有找到一个合适的地方来写。国内的Blog大多商业味道比较浓厚,而且页面排版也是杂乱无章。自己又实在是懒得自己去租服务器架数据库配脚本。平时工作已经够忙得了,实在是不想再给自己找麻烦,所以这 <a class="read-more" href="https://bitcowboy.github.io/2016/08/20/hello-world.html">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://avatars.githubusercontent.com/u/2291013?v=3" alt="Jeffrey Chen" nopin="nopin" />
<a href="https://bitcowboy.github.io/author/bitcowboy/">Jeffrey Chen</a>
on <a href="https://bitcowboy.github.io/tag/Hub-Press/">HubPress</a>
<time class="post-date" datetime="2016-08-20">20 August 2016</time>
</footer>
</article>
<nav class="pagination" role="navigation">
<span class="page-number">Page 1 of 1</span>
</nav>
</main>
<footer class="site-footer clearfix">
<section class="copyright"><a href="https://bitcowboy.github.io">BitCowboy's Blog</a> © 2016</section>
<section class="poweredby">Proudly published with <a href="http://hubpress.io">HubPress</a></section>
</footer>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js?v="></script> <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js?v="></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js?v="></script>
<script type="text/javascript">
jQuery( document ).ready(function() {
// change date with ago
jQuery('ago.ago').each(function(){
var element = jQuery(this).parent();
element.html( moment(element.text()).fromNow());
});
});
hljs.initHighlightingOnLoad();
</script>
<script type="text/javascript" src="//bitcowboy.github.io/themes/casper/assets/js/jquery.fitvids.js?v=1473420217541"></script>
<script type="text/javascript" src="//bitcowboy.github.io/themes/casper/assets/js/index.js?v=1473420217541"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-83133120-1', 'auto');
ga('send', 'pageview');
</script>
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"bitcowboy"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
</body>
</html>
|
bitcowboy/bitcowboy.github.io
|
index.html
|
HTML
|
mit
| 10,721
|
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es_MX" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Aleacoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>Aleacoin</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The Aleacoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Haga doble clic para editar el domicilio o la etiqueta</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Crear una dirección nueva</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copiar el domicilio seleccionado al portapapeles del sistema</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your Aleacoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Aleacoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified Aleacoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Borrar</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Archivo separado por comas (*.CSV)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Domicilio</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(sin etiqueta)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Ingrese la contraseña</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nueva contraseña</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Repita la nueva contraseña</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Ingrese la nueva contraseña a la cartera<br/>Por favor use una contraseña de<b>10 o más caracteres aleatorios</b> o <b>ocho o más palabras</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Cartera encriptada.</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Esta operación necesita la contraseña de su cartera para desbloquear su cartera.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Desbloquear cartera.</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Esta operación necesita la contraseña de su cartera para desencriptar su cartera.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Desencriptar la cartera</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Cambiar contraseña</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Ingrese la antugüa y nueva contraseña de la cartera</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Confirmar la encriptación de cartera</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Cartera encriptada</translation>
</message>
<message>
<location line="-58"/>
<source>Aleacoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>La encriptación de la cartera falló</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>La encriptación de la cartera falló debido a un error interno. Su cartera no fue encriptada.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>Las contraseñas dadas no coinciden</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>El desbloqueo de la cartera Fallo</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>La contraseña ingresada para la des encriptación de la cartera es incorrecto</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>La desencriptación de la cartera fallo</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+282"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>Synchronizing with network...</source>
<translation>Sincronizando con la red...</translation>
</message>
<message>
<location line="-319"/>
<source>&Overview</source>
<translation>&Vista previa</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Mostrar la vista previa general de la cartera</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transacciones</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Explorar el historial de transacciones</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>S&alir</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Salir de la aplicación</translation>
</message>
<message>
<location line="+6"/>
<source>Show information about Aleacoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opciones</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+259"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-256"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Send coins to a Aleacoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Modify configuration options for Aleacoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Cambiar la contraseña usada para la encriptación de la cartera</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-202"/>
<source>Aleacoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+180"/>
<source>&About Aleacoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>&File</source>
<translation>&Archivo</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Configuraciones</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Ayuda</translation>
</message>
<message>
<location line="+12"/>
<source>Tabs toolbar</source>
<translation>Pestañas</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>Aleacoin client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+75"/>
<source>%n active connection(s) to Aleacoin network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-312"/>
<source>About Aleacoin card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Aleacoin card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+297"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Actualizado al dia </translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Resiviendo...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Enviar Transacción</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Transacción entrante</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid Aleacoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>La cartera esta <b>encriptada</b> y <b>desbloqueada</b> actualmente </translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>La cartera esta <b>encriptada</b> y <b>bloqueada</b> actualmente </translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. Aleacoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Monto:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation>Prioridad:</translation>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation>Cuota:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Monto</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Domicilio</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Confirmado </translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Copiar dirección </translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar capa </translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>copiar monto</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation>copiar cantidad</translation>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation>copiar cuota</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>copiar despues de cuota</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>copiar prioridad</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>copiar cambio</translation>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(sin etiqueta)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Editar dirección</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Etiqueta</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Dirección</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Nueva dirección de entregas</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Nueva dirección de entregas</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Editar dirección de entregas</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Editar dirección de envios</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>El domicilio ingresado "%1" ya existe en la libreta de direcciones</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Aleacoin address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>No se puede desbloquear la cartera</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>La generación de la nueva clave fallo</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>Aleacoin-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Opciones</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start Aleacoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start Aleacoin on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Aleacoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Connect to the Aleacoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Aleacoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show Aleacoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Aleacoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formulario</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Aleacoin network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Transacciones recientes</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the Aleacoin-Qt help message to get a list with possible Aleacoin command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>Aleacoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Aleacoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the Aleacoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the Aleacoin RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Mandar monedas</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Monto:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 ALEA</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation>Prioridad:</translation>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation>Cuota:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Enviar a múltiples receptores a la vez</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 ALEA</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Confirme la acción de enviar</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a Aleacoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation>copiar cantidad</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>copiar monto</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation>copiar cuota</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>copiar despues de cuota</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>copiar prioridad</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>copiar cambio</translation>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Confirme para mandar monedas</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>El monto a pagar debe ser mayor a 0</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid Aleacoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(sin etiqueta)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>M&onto</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Pagar &a:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Ingrese una etiqueta para esta dirección para agregarlo en su libreta de direcciones.</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Etiqueta</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Pegar dirección del portapapeles</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Aleacoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Pegar dirección del portapapeles</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Aleacoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Aleacoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Aleacoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter Aleacoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Abrir hasta %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/No confirmado</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 confirmaciones</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 110 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Monto</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, no ha sido transmitido aun</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>desconocido</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Detalles de la transacción</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Este panel muestras una descripción detallada de la transacción</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Domicilio</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Monto</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Abrir hasta %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Confimado (%1 confirmaciones)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Este bloque no fue recibido por ningun nodo y probablemente no fue aceptado !</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Generado pero no aprovado</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Recivido con</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Enviar a</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pagar a si mismo</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Minado</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n/a)</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Fecha y hora en que la transacción fue recibida </translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Escriba una transacción</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Direccion del destinatario de la transacción</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Cantidad removida del saldo o agregada </translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Todo</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Hoy</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Esta semana </translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Este mes </translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>El mes pasado </translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Este año</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Recivido con</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Enviar a</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Para ti mismo</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Minado </translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Otro</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Ingrese dirección o capa a buscar </translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Monto minimo </translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Copiar dirección </translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar capa </translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>copiar monto</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Editar capa </translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Arhchivo separado por comas (*.CSV)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Confirmado </translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Fecha</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Domicilio</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Monto</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>Para</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>Aleacoin version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Uso:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or aleacoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Lista de comandos</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: aleacoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: aleacoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Aleacoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=aleacoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "Aleacoin Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. Aleacoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>Aleacoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Cargando direcciones...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of Aleacoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart Aleacoin to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Cargando indice de bloques... </translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. Aleacoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Cargando billetera...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Carga completa</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS>
|
aleacoin/aleacoin-release
|
src/qt/locale/bitcoin_es_MX.ts
|
TypeScript
|
mit
| 110,454
|
<?php
declare(strict_types=1);
namespace Overblog\GraphQLBundle\Command;
use GraphQL\Type\Introspection;
use GraphQL\Utils\SchemaPrinter;
use InvalidArgumentException;
use Overblog\GraphQLBundle\Request\Executor as RequestExecutor;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use function file_put_contents;
use function json_encode;
use function realpath;
use function sprintf;
use function strtolower;
use const JSON_PRETTY_PRINT;
final class GraphQLDumpSchemaCommand extends Command
{
private RequestExecutor $requestExecutor;
private string $baseExportPath;
public function __construct(string $baseExportPath, RequestExecutor $requestExecutor)
{
parent::__construct();
$this->baseExportPath = $baseExportPath;
$this->requestExecutor = $requestExecutor;
}
public function getRequestExecutor(): RequestExecutor
{
return $this->requestExecutor;
}
protected function configure(): void
{
$this
->setName('graphql:dump-schema')
->setAliases(['graph:dump-schema'])
->setDescription('Dumps GraphQL schema')
->addOption(
'file',
null,
InputOption::VALUE_OPTIONAL,
'Path to generate schema file.'
)
->addOption(
'schema',
null,
InputOption::VALUE_OPTIONAL,
'The schema name to generate.'
)
->addOption(
'format',
null,
InputOption::VALUE_OPTIONAL,
'The schema format to generate ("graphql" or "json").',
'json'
)
->addOption(
'modern',
null,
InputOption::VALUE_NONE,
'Enabled modern json format: { "data": { "__schema": {...} } }.'
)
->addOption(
'classic',
null,
InputOption::VALUE_NONE,
'Enabled classic json format: { "__schema": {...} }.'
)
->addOption(
'with-descriptions',
null,
InputOption::VALUE_NONE,
'Dump schema including descriptions.'
)
;
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);
$file = $this->createFile($input);
$io->success(sprintf('GraphQL schema "%s" was successfully dumped.', realpath($file)));
return 0;
}
private function createFile(InputInterface $input): string
{
$format = strtolower($input->getOption('format'));
/** @var string|null $schemaName */
$schemaName = $input->getOption('schema');
/** @var bool $includeDescription */
$includeDescription = $input->getOption('with-descriptions');
/** @var string $file */
$file = $input->getOption('file') ?: $this->baseExportPath.sprintf('/schema%s.%s', $schemaName ? '.'.$schemaName : '', $format);
switch ($format) {
case 'json':
$request = [
'query' => Introspection::getIntrospectionQuery(['descriptions' => $includeDescription]),
'variables' => [],
'operationName' => null,
];
$modern = $this->useModernJsonFormat($input);
$result = $this->getRequestExecutor()
->execute($schemaName, $request)
->toArray();
$content = json_encode($modern ? $result : ($result['data'] ?? null), JSON_PRETTY_PRINT);
break;
case 'graphql':
$content = SchemaPrinter::doPrint($this->getRequestExecutor()->getSchema($schemaName));
break;
default:
throw new InvalidArgumentException(sprintf('Unknown format %s.', json_encode($format)));
}
file_put_contents($file, $content);
// @phpstan-ignore-next-line
return $file;
}
private function useModernJsonFormat(InputInterface $input): bool
{
$modern = $input->getOption('modern');
$classic = $input->getOption('classic');
if ($modern && $classic) {
throw new InvalidArgumentException('"modern" and "classic" options should not be used together.');
}
return true === $modern;
}
}
|
overblog/GraphQLBundle
|
src/Command/GraphQLDumpSchemaCommand.php
|
PHP
|
mit
| 4,754
|
---
title: "Pharmacovigilance Methods: BCPNNs"
layout: post
---
<!-- https://stackoverflow.com/a/46765337 -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$']]
}
})
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
<style>
/* Hide the toggle checkbox */
details {
box-shadow: 2px 2px 5px 2px black;
}
details > summary {
font-weight: bold;
align-items: left;
vertical-align: middle;
padding: 2px 6px;
cursor: pointer;
}
details > p {
padding: 2px 6px;
margin: none;
}
</style>
Pharmacovigilance is the field of science that monitors, detects, and prevents adverse drug events. While monitoring and prevention are critical components in drug safety, we will focus on signal detection. Signal detection in drug surveillance is primarily an analytics problem that needs to account for the complexities in healthcare data and spontaneous reporting systems.
In 1998, the Bayesian Confidence Propagation Neural Network (BCPNN) method was introduced to the field in a publication by Bates and team [1]. Their method is inspired by information theory and neural networks. However, the final method evokes a hypothesis testing framework as it applies Bayesian inference to detect signals (i.e., unexpectedly high observations) in the data.
An overview of the method is presented below. You can jump from section to section:
- [The Idea](#the-idea)
- [The Theory](#the-theory)
- [The Neural Network](#the-neural-network)
- [The Closed Form Solution(s)](#the-closed-form-solutions)
- [Citations](#citations)
## The Idea
The idea revolves around inferring the probability of an adverse drug event (A) given some drug of interest (D). To solve for this probability, $P(A\vert D)$, the researchers make the following assumptions:
1. **Prior Belief of Independence:** There are thousands of potential adverse events for any drug, and many of those events (if not all) are not associated with taking specific drugs. Therefore, the team asserts a prior assumption that $P(A)\perp\kern-5pt\perp P(D)$.
2. **Binomially-Distributed Data:** With respect to the observed data (e.g., spontaneous reporting system), the team asserts that the counts of (i) the drug of interest, (ii) the adverse event of interest, and (iii) the drug of interest and adverse event of interest co-occurring all follow a Binomial distribution.
- Rejecting this assumption and asserting a Poisson distribution instead leads to an alternative model, the Gamma Poisson Shrinker (GPS) proposed by DuMouchel and Pregibon in 2011 [2].
The BCPNN method tests the initial assumption of independence through statistical inference.
## The Theory
As a quick summary of the 1998 paper [1], the team applies Bayes' law:
$$P(A\vert D) = \frac{P(A, D)}{P(D)} = P(A)\frac{P(A, D)}{P(A)P(D)}$$
By multiplying by $\frac{P(A)}{P(A)}$, the team calls out that we can reinterpret the problem as solving for a posterior probability $P(A\vert D)$ based on the prior probability $P(A)$ times the "information component" between the adverse event and the drug. This concept is borrowed from information theory, but ultimately boils down to the team solving for the following metric:
$$IC=\log_2\frac{P(A,D)}{P(A)P(D)}$$
<details markdown="1">
<summary>Click here for some brief comments on information theory.</summary>
<br>
In information theory, the information component is derived from mutual information ($I$), which is defined as:
$$I(X, Y)=\Sigma_x\Sigma_yP(x,y)\log{\frac{P(x,y)}{P(x)P(y)}}$$
The fraction contained in the summation of the mutual information equation is known as the **information component**, and exists for all potential values $x, y$. We are only interested in when the adverse event of interest occurs (A) and when the drug is present (D). So we only consider one information component, which we define as:
$$IC = \log_2{\frac{P(A, D)}{P(A)P(D)}}$$
Note that if A and D are independent, then $P(A, D)=P(A)P(D)$ and we the information component would be 0. Therefore, we can restate the analysis as $\frac{\text{Observed}}{\text{Expected}}$, since our initial expectation is that this independence holds (Assumption #1).
</details>
<br>
Suppose we have data that allow us to infer $P(A\vert D)$. Given a set of $n$ drug reports, our drug of interest appears $n_D$ times, the adverse event appears $n_A$ times, and the drug and adverse event appear together $n_{AD}$ times. This can be visualized below:
| | Event | Not event | Total |
| --- | --- | --- | --- |
| Drug | $n_{AD}$ | - | $n_D$ |
| Not drug | - | - | - |
| **Total** | $n_A$ | - | $n$ |
Without knowledge of the true probabilities $\{P(A), P(D), P(A,D)\}$, we set priors using beta distributions.
<details markdown="1">
<summary>Click here for a brief review of beta distributions as conjugate priors for Binomial distributions in Bayesian analysis.</summary>
<br>
*Information from [this educational video](https://www.youtube.com/watch?v=hKYvZF9wXkk).*
To gain some intuition into why the beta distribution is used here, we can consider a Bayesian formulation to approximate a distribution parameter $\theta$ for some data generating process that yields data $X\sim\text{Binomial}(n, \theta)$.
$$P(\theta\vert X)=\frac{P(X\vert\theta)P(\theta)}{P(X)}\propto P(X|\theta)P(\theta)$$
Assuming $\theta$ follows a beta distribution and $X$ follows a Binomial distribution, we know these probabilites:
$$\theta\sim\text{Beta}(\alpha=\alpha_0, \beta=\beta_0)=\frac{\theta^{\alpha_0-1}(1-\theta)^{\beta_0-1}}{B(\alpha_0, \beta_0)}\rightarrow P(\theta)\propto \theta^{\alpha_0-1}(1-\theta)^{\beta_0-1} \\
\\
P(X=k\vert\theta)=\theta^k(1-\theta)^{n-k} \text{ for k-many successes in n trials}$$
Note the function $B$ in the beta distribution PDF is the beta function, which normalizes the output to constrain the interval from zero to one. We can think of this as a constant, which we ignore for now. Now we can substitute the solutions above into the original equation:
$$P(\theta\vert X)\propto \theta^{k+\alpha_0-1}(1-\theta)^{n+\beta_0-k-1}\rightarrow P(\theta\vert X)\sim \text{Beta}(\alpha=k+\alpha_0,\beta=n+\beta_0-k)$$
Therefore, using a beta prior yields consistent results, i.e., both the prior and posterior probabilites ($P(\theta), P(\theta\vert X)$) follow a beta distribution. The process above also depicts how to apply a likelihood ($P(X\vert\theta)$) to update our prior, which is a form of iterative Bayesian estimation. This is used in the analytic formulation of the BCPNN.
There are several properties of beta distributions used in the application of the BCPNN model. Assuming $X\sim\text{Beta}(\alpha, \beta)$:
$$E[X]=\frac{\alpha}{\alpha+\beta} \\
E[\ln{(X)}]=\psi(\alpha)-\psi(\alpha+\beta) \\
\text{Var}[X]=\frac{\alpha+\beta}{(\alpha+\beta)^2(\alpha+\beta+1)} \\
\text{Var}[\ln{(X)}]=\psi_1(\alpha)-\psi_1(\alpha+\beta)$$
Note that $\psi$ is the digamma function and $\psi_1$ is the trigamma function.
</details>
<br>
The Bayesian framework is presented in the table below and integrates Assumption #2.
| Observed Data | Data Generation Assumption | Estimator | Initializations |
| --- | --- | --- | --- |
| Drug count ($n_D$) | $n_D\sim\text{Binomial}(n,p_D)$ | $p_D\sim \text{Beta}(\alpha_D, \beta_D)$ | $\alpha_{D0}=1,$ $\beta_{D0}=1$ |
| Adverse event count ($n_A$) | $n_A\sim\text{Binomial}(n,p_A)$ | $p_A\sim \text{Beta}(\alpha_A, \beta_A)$ | $\alpha_{A0}=1,$ $\beta_{A0}=1$ |
| Adverse event *and* drug count ($n_{AD}$) | $n_{AD}\sim\text{Binomial}(n,p_{AD})$ | $p_{AD}\sim \text{Beta}(\alpha_{AD}, \beta_{AD})$ | $\alpha_{AD0}=1,$ $\beta_{AD0}=\frac{1}{E[p_D]E[p_A]}-1$ |
The beta priors are initialized assuming the probability of the drug, $P(D)$, and the probability of the adverse event, $P(A)$, are entirely unknown such that the distributions of $p_D$ and $p_A$ are uniform across the interval [0, 1]. Note that the probability of the drug and adverse event occurring together reflects that we initially believe their occurrence to be independent, i.e., $E[p_{AD}]=E[p_D]E[p_A]$ (see Assumption #1).
## The Neural Network
To extrapolate the process above to all potential drug and adverse event combinations, the team proposed using a neural network. They used a one-layer model, which can be formed as a fully connected bipartite graph composed of one layer of drugs and one layer of adverse events. The edge weights in the network reflect the information component for that drug-adverse event pair.
The authors acknowledge the network could have multiple layers, but stick with a one-layer approach for the initial BCPNN implementation. This allows us to solve for closed for solutions for the weights (i.e., information components) in the network.
## The Closed-Form Solution(s)
The original 1998 paper [1] proposes using the expected values of the beta priors to plug into the information component: *"The expectation value of each beta distribution is the estimate of the probability."* We can first show the derivation for the prior and posterior probability estimates:
Prior Probability | Posterior Probability
--- | ---
$P(D)=E[p_D]=\frac{\alpha_{D0}}{\alpha_{D0}+\beta_{D0}}$ $=\frac{1}{2}$ | $E[p_D]=\frac{n_D+\alpha_{D0}}{n_D+\alpha_{D0}+n+\beta_{D0}-n_D}=\frac{n_D+1}{n+2}$
$P(A)=E[p_A]=\frac{\alpha_{A0}}{\alpha_{A0}+\beta_{A0}}$ $=\frac{1}{2}$ | $E[p_A]=\frac{n_A+\alpha_{A0}}{n_A+\alpha_{A0}+n+\beta_{A0}-n_A}$ $=\frac{n_A+1}{n+2}$
$P(A,D)=E[p_{AD}]=\frac{\alpha_{AD0}}{\alpha_{AD0}+\beta_{AD0}}$ $=\frac{1}{1/(E[p_A]E[p_D])-1}=\frac{1}{4}$ | $E[p_{AD}]=\frac{n_{AD}+\alpha_{AD0}}{n_{AD}+\alpha_{AD0}+n+\beta_{AD0}-n_{AD}}$ $=\frac{n_{AD}+1}{n+1/(E[p_A]E[p_D])}$
Now we can plug in the posterior probabilities to the information component:
$$\text{IC}=\log_2\frac{P(A,D)}{P(A)P(D)}=\log_2\frac{E[p_{AD}]}{E[p_A]E[p_D]}=\log_2\left[\frac{1}{E[p_A]E[p_D]}\left(\frac{n_{AD}+1}{n+1/(E[p_A]E[p_D])}\right)\right] \\
\rightarrow \hat{\text{IC}}=\log_2\frac{n_{AD}+1}{nE[p_A]E[p_D]+1}$$
At this stage, we can see that the information criteria is reflecting the $\left(\frac{\text{Observed}}{\text{Expected}}\right)$ problem statement originally stated in the theoretical framework. The "expected" in this case reflects the conservative assumption that the drug and adverse effect are independent (unassociated). Plugging in the other expectations (see table above) yields the following closed-form solution:
$$\hat{\text{IC}}=\log_2\frac{(n_{AD}+1)(n+2)^2}{n(n_A+1)(n_D+1)+(n+2)^2}$$
The variance of the information component was estimated using the "delta method" ([see here for a helpful R vignette](https://cran.r-project.org/web/packages/anovir/vignettes/confidence_intervals.html)) as an approximation.
<details markdown="1">
<summary>Click here for the Bates's variance derivation.</summary>
<br>
We are looking to solve for the variance of the information component:
$$\text{(1)}\quad\quad\text{Var}[\hat{\text{IC}}]=\text{Var}[ \log_2\frac{P(A,D)}{P(A)P(D)}] \\ =\text{Var}[ \log_2P(A,D)-\log_2P(A)-\log_2P(D)]$$
By the delta method, we can approximate the variance of a function with multiple random variables by leveraging first order derivatives:
$$\text{(2)}\quad\quad\text{Var}[g]\approx\text{Var}[f(X_1,X_2,...,X_n)] \\ =\Sigma_{i=1}^n\left(\frac{\delta f}{\delta X_i}\right)^2\text{Var}[X_i]+2\Sigma_{i=1}^n\Sigma_{j=1}^n\left(\frac{\delta f}{\delta X_i}\right)\left(\frac{\delta f}{\delta X_j}\right)\text{Cov}(X_i,X_j)$$
**Bates and team assume independence (zero covariance),** which may not be realistic but simplifies the derivation.
Using the derivative rule for logarithms, we can solve for the partial derivative of any probability in the information component. Note that the partials are not dependent on any other probabilities, which is depicted in Equation #1.
$$\text{(3)}\quad\quad\frac{\delta\hat{\text{IC}}}{\delta P(\cdot )}=\frac{1}{E[p]\ln(2)}=\frac{\alpha+\beta}{\alpha\ln(2)}$$
Recall that the variance for any $X\sim \text{Beta}(\alpha, \beta)$ is:
$$\text{(4)}\quad\quad\text{Var}[X]=\frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}$$
We combine Equation #2 (dropping the covariance), Equation #3, and Equation #4 to produce:
$$\text{(5)}\quad\quad\text{Var}[\hat{\text{IC}}]\approx\Sigma_{i=1}^n\left(\frac{\delta f}{\delta X_i}\right)^2\text{Var}[X_i] \\
=\Sigma_{i=1}^n\left(\frac{\alpha+\beta}{\alpha\ln(2)}\right)^2\left(\frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}\right) \\
=\left(\frac{1}{\ln(2)}\right)^2\Sigma_{i=1}^n\left(\frac{\beta}{\alpha(\alpha+\beta+1)}\right)$$
The posterior alpha and betas for the 3 probabilities $\{P(A,D),P(A),P(D)\}$ are presented below:
Posterior Alpha | Posterior Beta | Poster Alpha + Posterior Beta
--- | --- | ---
$\alpha_D=n_D+\alpha_{D0}=n_D+1$ | $\beta_D=n+\beta_{D0}-n_D$ $=n+1-n_D$ | $\alpha_D+\beta_D=n+2$
$\alpha_A=n_A+\alpha_{A0}=n_A+1$ | $\beta_A=n+\beta_{A0}-n_A$ $=n+1-n_A$ | $\alpha_A+\beta_A=n+2$
$\alpha_{AD}=n_{AD}+\alpha_{AD0}=n_{AD}+1$ | $\beta_{AD}=n+\beta_{AD0}-n_{AD}$ $=n+\frac{1}{E[p_A]E[p_D]}-1-n_{AD}$ | $\alpha_{AD}+\beta_{AD}$ $=n+\frac{(n+2)^2}{(n_A+1)(n_D+1)}$
Plugging these values into Equation #5 yields the final solution:
$$\text{Var}[\hat{\text{IC}}]\approx\left(\frac{1}{\ln(2)}\right)^2\left(\frac{n+\gamma-1-n_{AD}}{(n_{AD}+1)(n+\gamma+1)}+\frac{n+1-n_A}{(n_A+1)(n+2)}+\frac{n+1-n_D}{(n_D+1)(n+2)}\right), \\ \gamma=\frac{(n+2)^2}{(n_A+1)(n_D+1)}$$
</details>
<br>
In 2002, Gould publishes a paper presenting the solutions for the exact expected value and variance of the information component [3]. This derivation is currently implemented in open-source R packages, such as the [`pvm` (Pharmacovigilance Methods) package](https://rdrr.io/github/bips-hb/pvm/src/R/BCPNN.R).
<details markdown="1">
<summary>Click here for the alternative derivation.</summary>
<br>
Instead of setting $P(A)=E[p_A]$ (etc.), we can solve for the expected value of the information component using the random variables $p_A$ (etc.). Using the change of base formula and properties of expected value, we find:
$$E[\hat{\text{IC}}]=E\left[\log_2\left(\frac{p_{AD}}{p_Ap_D}\right)\right]=\frac{1}{\ln(2)}\left(E[\ln p_{AD}]-E[\ln p_A]-E[\ln p_D]\right)$$
Recall that for random variables $X\sim\text{Beta}(\alpha,\beta)\rightarrow E[\ln(X)]=\psi(\alpha)-\psi(\alpha+\beta)$, where $\psi$ is the [digamma function](https://handwiki.org/wiki/Digamma_function). Therefore, we have:
$$\frac{1}{\ln(2)}\left( E[\ln p_{AD}]-E[\ln p_A]-E[\ln p_D]\right) \\
=\frac{1}{\ln(2)}\left[\psi(\alpha_{AD})-\psi(\alpha_{AD}+\beta_{AD})-\psi(\alpha_A)+\psi(\alpha_A+\beta_A)-\psi(\alpha_D)+\psi(\alpha_D+\beta_D)\right]$$
We can plug in the posterior distribution parameters (see table in Bates's variance derivation above). This yields a final analytic solution:
$$E[\hat{\text{IC}}]=\frac{1}{\ln(2)}\left[\psi(\alpha_{AD})-\psi(\alpha_{AD}+\beta_{AD})-\psi(\alpha_A)+\psi(\alpha_A+\beta_A)-\psi(\alpha_D)+\psi(\alpha_D+\beta_D)\right] \\ =\frac{1}{\ln(2)}\left[\psi(n_{AD}+1)-\psi\left(n+\frac{(n+2)^2}{(n_A+1)(n_D+1)}\right)-\psi(n_A+1)+\psi(n+2)-\psi(n_D+1)+\psi(n+2)\right]$$
We can perform the same operations for the variance of $\hat{\text{IC}}$. Keep in mind that, assuming independence, $\text{Var}[aX-Y]=a^2\text{Var}[X]+(-1)^2\text{Var}[Y]=a^2\text{Var}[X]+\text{Var}[Y]$. Additionally, for any random variable $X\sim\text{Beta}(\alpha,\beta)\rightarrow\text{Var}[\ln(X)]=\psi_1(\alpha)-\psi_1(\alpha+\beta)$, where $\psi_1$ is the [trigamma function](https://handwiki.org/wiki/Trigamma_function).
$$\text{Var}[\hat{\text{IC}}]=\frac{1}{\ln(2)^2}\left[\psi_1(\alpha_{AD})-\psi_1(\alpha_{AD}+\beta_{AD})+\psi_1(\alpha_A)-\psi_1(\alpha_A+\beta_A)+\psi(\alpha_D)-\psi_1(\alpha_D+\beta_D)\right] \\ =\frac{1}{\ln(2)}\left[\psi_1(n_{AD}+1)-\psi_1\left(n+\frac{(n+2)^2}{(n_A+1)(n_D+1)}\right)+\psi_1(n_A+1)-\psi_1(n+2)+\psi_1(n_D+1)-\psi_1(n+2)\right]$$
<b>Note that this assumes independence</b>, since the covariance is assumed to be zero.
</details>
<br>
Both closed form solutions require sufficiently large sample sizes, since they rely on the normally-distributed expectations for the final confidence intervals. For small samples, Noren and team proposed a Monte Carlo simulation approach [4] that has been widely adopted.
# Citations
1. Bate, Andrew, et al. "A Bayesian neural network method for adverse drug reaction signal generation." *European journal of clinical pharmacology* 1998; 54.4: 315-321.
2. DuMouchel, William, Pregibon, Daryl. "Empirical bayes screening for multi-item associations." *Proceedings of the seventh ACM SIGKDD international conference on Knowledge discovery and data mining* 2001.
3. Lawrence Gould, A. "Practical pharmacovigilance analysis strategies." *Pharmacoepidemiology and drug safety* 2003; 12.7: 559-574.
4. Noren, GN, Bate, A, Orre, R, Edwards, IR. "Extending the methods used to screen the who drug safety database towards analysis of complex associations and improved accuracy for rare events." *Statistics in Medicine* 2006; 25(21):3740–3757.
These additional sources assisted in deriving the closed form solutions:
- Ahmed, Ismaïl, et al. "Bayesian pharmacovigilance signal detection methods revisited in a multiple comparison setting." *Statistics in medicine* 2009; 28.13: 1774-1792.
- Xiao, Nan, et al. "Base Ranker: Bayesian Confidence Propagation Neural Network" 2020; https://nanx.me/rankv/analysis-bcpnn.html.
|
cm-smith/cm-smith.github.io
|
_posts/2021-10-17-bcpnn.md
|
Markdown
|
mit
| 17,529
|
/**
* Wrapper for the component that compatible with amd, commonjs and as global object
*/
(function (root, factory) {
if(typeof define === "function" && define.amd) {
define(function () {
return factory();
});
} else if(typeof module === "object" && module.exports) {
module.exports = factory();
} else {
root.Treeview = factory();
}
}(this, function() {
'use strict';
|
yjcxy12/react-treeview-component
|
src/Tree/intro.js
|
JavaScript
|
mit
| 417
|
package org.robolectric.shadows;
import android.widget.AbsSpinner;
import android.widget.SpinnerAdapter;
import org.robolectric.annotation.Implementation;
import org.robolectric.annotation.Implements;
import org.robolectric.annotation.RealObject;
import org.robolectric.util.ReflectionHelpers.ClassParameter;
import static org.robolectric.shadow.api.Shadow.directlyOn;
/**
* Shadow for {@link android.widget.AbsSpinner}.
*/
@SuppressWarnings({"UnusedDeclaration"})
@Implements(AbsSpinner.class)
public class ShadowAbsSpinner extends ShadowAdapterView {
@RealObject AbsSpinner realAbsSpinner;
private boolean animatedTransition;
@Implementation
public void setSelection(int position, boolean animate) {
directlyOn(realAbsSpinner, AbsSpinner.class, "setSelection", ClassParameter.from(int.class, position), ClassParameter.from(boolean.class, animate));
animatedTransition = animate;
}
@Implementation
public void setSelection(int position) {
directlyOn(realAbsSpinner, AbsSpinner.class, "setSelection", ClassParameter.from(int.class, position));
SpinnerAdapter adapter = realAbsSpinner.getAdapter();
if (getItemSelectedListener() != null && adapter != null) {
getItemSelectedListener().onItemSelected(realAbsSpinner, null, position, adapter.getItemId(position));
}
}
// Non-implementation helper method
public boolean isAnimatedTransition() {
return animatedTransition;
}
}
|
cesar1000/robolectric
|
robolectric-shadows/shadows-core/src/main/java/org/robolectric/shadows/ShadowAbsSpinner.java
|
Java
|
mit
| 1,436
|
module.exports = require('./src/LensedStateMixin');
|
Laiff/react-lensed-state
|
index.js
|
JavaScript
|
mit
| 51
|
require 'active_support/basic_object'
module CleverElements
class Proxy
attr_reader :client, :wsdl, :proxy_methods, :response_methods
def initialize client
@client = client
@wsdl = client.savon.wsdl
@proxy_methods = Module.new
@response_methods = Module.new
build_proxy
end
protected
def build_proxy
wsdl.operations.each_pair do |name, vals|
build_operation_proxy_for name
end
extend proxy_methods
extend response_methods
end
# Builds a response processor for a SOAP action:
# The response processor uses message and type information of the
# wsdl to "un-nest" the soap response as far as possible,
# e.g. if the soap response is
# :a => {
# :b => {
# :c => {
# :d => 1,
# :e => 2
# }
# }
# }
# the processor will return
# { :d => 1, :e => 2}
# (first non-trivial nesting level)
def build_response_processor_for name
method_name = "process_response_for_#{name}"
message_name, message = wsdl.parser.port_type[name][:output].first
key, type = message.first
types = wsdl.parser.types
keys = [message_name.snakecase.to_sym, key.snakecase.to_sym]
while type
type = type.split(':').last
typedef = types[type]
if typedef
_keys = (typedef.keys - [:namespace, :type])
break unless _keys.length == 1
key = _keys.first
type = typedef[key][:type]
keys << key.snakecase.to_sym
else
break
end
end
response_methods.send :define_method, method_name do |body|
keys.inject body do |b, key|
b[key] if b
end
end
method_name
end
def build_operation_proxy_for name
method_name = name.to_s.sub /^api_/, ''
input_message = wsdl.parser.port_type[name][:input].first
response_processor_name = build_response_processor_for name
proxy_methods.send :define_method, method_name do |*args|
arguments = args.first
if input_message
arguments = { input_message.to_sym => arguments }
end
response = client.request name, arguments
send response_processor_name, response.body
end
end
end
end
|
kayoom/clever_elements
|
lib/clever_elements/proxy.rb
|
Ruby
|
mit
| 2,432
|
package com.ziyuan.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
/**
* 特此声明,感谢排骨支持
*/
public final class ClassUtil {
private static Logger logger = LoggerFactory.getLogger(ClassUtil.class);
/**
* Class文件扩展名
*/
private static final String CLASS_EXT = ".class";
/**
* Jar文件扩展名
*/
private static final String JAR_FILE_EXT = ".jar";
/**
* 在Jar中的路径jar的扩展名形式
*/
private static final String JAR_PATH_EXT = ".jar!";
/**
* 当Path为文件形式时, path会加入一个表示文件的前缀
*/
private static final String PATH_FILE_PRE = "file:";
/**
* 文件过滤器,过滤掉不需要的文件
* 只保留Class文件、目录和Jar
*/
private static FileFilter fileFilter = new FileFilter() {
@Override
public boolean accept(File pathname) {
return isClass(pathname.getName()) || pathname.isDirectory() || isJarFile(pathname);
}
};
// 静态类不可实例化
private ClassUtil() {
}
/**
* 扫描指定包路径下所有包含指定注解的类
*
* @param packageName 包路径
* @param inJar 在jar包中查找
* @param annotationClass 注解类
* @return 类集合
*/
public static Set<Class<?>> scanPackageByAnnotation(String packageName, boolean inJar, final Class<? extends Annotation> annotationClass) {
return scanPackage(packageName, inJar, new ClassFilter() {
@Override
public boolean accept(Class<?> clazz) {
return clazz.isAnnotationPresent(annotationClass);
}
});
}
/**
* 扫面包路径下满足class过滤器条件的所有class文件
* 如果包路径为 com.abs + A.class 但是输入 abs会产生classNotFoundException
* 因为className 应该为 com.abs.A 现在却成为abs.A,此工具类对该异常进行忽略处理,有可能是一个不完善的地方,以后需要进行修改
*
* @param packageName 包路径 com | com. | com.abs | com.abs.
* @param inJar 在jar包中查找
* @param classFilter class过滤器,过滤掉不需要的class
* @return 类集合
*/
public static Set<Class<?>> scanPackage(String packageName, boolean inJar, ClassFilter classFilter) {
if (packageName == null || "".equals(packageName.trim())) {
packageName = "";
}
packageName = getWellFormedPackageName(packageName);
final Set<Class<?>> classes = new HashSet<>();
for (String classPath : getClassPaths(packageName)) {
// 填充 classes, 并对classpath解码
classPath = decodeUrl(classPath);
fillClasses(classPath, packageName, classFilter, classes);
}
//如果在项目的ClassPath中未找到,去系统定义的ClassPath里找
if (inJar) {
for (String classPath : getJavaClassPaths()) {
// 填充 classes, 并对classpath解码
classPath = decodeUrl(classPath);
fillClasses(classPath, new File(classPath), packageName, classFilter, classes);
}
}
return classes;
}
/**
* 获得ClassPath
*
* @param packageName 包名称
* @return ClassPath路径字符串集合
*/
public static Set<String> getClassPaths(String packageName) {
String packagePath = packageName.replace(".", "/");
Enumeration<URL> resources;
try {
resources = getClassLoader().getResources(packagePath);
} catch (IOException e) {
throw new RuntimeException(String.format("Loading classPath [%s] error!", packageName), e);
}
Set<String> paths = new HashSet<>();
while (resources.hasMoreElements()) {
paths.add(resources.nextElement().getPath());
}
return paths;
}
/**
* @return 获得Java ClassPath路径,不包括 jre
*/
public static String[] getJavaClassPaths() {
return System.getProperty("java.class.path").split(System.getProperty("path.separator"));
}
/**
* 获取当前线程的ClassLoader
*
* @return 当前线程的class loader
*/
public static ClassLoader getContextClassLoader() {
return Thread.currentThread().getContextClassLoader();
}
/**
* 获得class loader
* 若当前线程class loader不存在,取当前类的class loader
*
* @return 类加载器
*/
public static ClassLoader getClassLoader() {
ClassLoader classLoader = getContextClassLoader();
if (classLoader == null) {
classLoader = ClassUtil.class.getClassLoader();
}
return classLoader;
}
/**
* 根据指定的类名称加载类
*
* @param className 完整类名
* @return {Class}
* @throws ClassNotFoundException 找不到异常
*/
public static Class<?> loadClass(String className) throws ClassNotFoundException {
try {
return ClassUtil.getContextClassLoader().loadClass(className);
} catch (ClassNotFoundException e) {
try {
return Class.forName(className, false, ClassUtil.getClassLoader());
} catch (ClassNotFoundException ex) {
try {
return ClassLoader.class.getClassLoader().loadClass(className);
} catch (ClassNotFoundException exc) {
throw exc;
}
}
}
}
/**
* 改变 com -> com. 避免在比较的时候把比如 completeTestSuite.class类扫描进去,如果没有"."
* 那class里面com开头的class类也会被扫描进去,其实名称后面或前面需要一个 ".",来添加包的特征
*
* @param packageName 包名
* @return 格式化后的包名
*/
private static String getWellFormedPackageName(String packageName) {
return packageName.lastIndexOf('.') != packageName.length() - 1 ? packageName + '.' : packageName;
}
/**
* 去掉指定前缀
*
* @param str 字符串
* @param prefix 前缀
* @return 切掉后的字符串,若前缀不是 preffix, 返回原字符串
*/
private static String removePrefix(String str, String prefix) {
if (str != null && str.startsWith(prefix)) {
return str.substring(prefix.length());
}
return str;
}
/**
* 填充满足条件的class 填充到 classes
* 同时会判断给定的路径是否为Jar包内的路径,如果是,则扫描此Jar包
*
* @param path Class文件路径或者所在目录Jar包路径
* @param packageName 需要扫面的包名
* @param classFilter class过滤器
* @param classes List 集合
*/
private static void fillClasses(String path, String packageName, ClassFilter classFilter, Set<Class<?>> classes) {
//判定给定的路径是否为Jar
int index = path.lastIndexOf(JAR_PATH_EXT);
if (index != -1) {
//Jar文件
path = path.substring(0, index + JAR_FILE_EXT.length()); //截取jar路径
path = removePrefix(path, PATH_FILE_PRE); //去掉文件前缀
processJarFile(new File(path), packageName, classFilter, classes);
} else {
fillClasses(path, new File(path), packageName, classFilter, classes);
}
}
/**
* 填充满足条件的class 填充到 classes
*
* @param classPath 类文件所在目录,当包名为空时使用此参数,用于截掉类名前面的文件路径
* @param file Class文件或者所在目录Jar包文件
* @param packageName 需要扫面的包名
* @param classFilter class过滤器
* @param classes List 集合
*/
private static void fillClasses(String classPath, File file, String packageName, ClassFilter classFilter, Set<Class<?>> classes) {
if (file.isDirectory()) {
processDirectory(classPath, file, packageName, classFilter, classes);
} else if (isClassFile(file)) {
processClassFile(classPath, file, packageName, classFilter, classes);
} else if (isJarFile(file)) {
processJarFile(file, packageName, classFilter, classes);
}
}
/**
* 处理如果为目录的情况,需要递归调用 fillClasses方法
*
* @param directory 目录
* @param packageName 包名
* @param classFilter 类过滤器
* @param classes 类集合
*/
private static void processDirectory(String classPath, File directory, String packageName, ClassFilter classFilter, Set<Class<?>> classes) {
for (File file : directory.listFiles(fileFilter)) {
fillClasses(classPath, file, packageName, classFilter, classes);
}
}
/**
* 处理为class文件的情况,填充满足条件的class 到 classes
*
* @param classPath 类文件所在目录,当包名为空时使用此参数,用于截掉类名前面的文件路径
* @param file class文件
* @param packageName 包名
* @param classFilter 类过滤器
* @param classes 类集合
*/
private static void processClassFile(String classPath, File file, String packageName, ClassFilter classFilter, Set<Class<?>> classes) {
if (!classPath.endsWith(File.separator)) {
classPath += File.separator;
}
String path = file.getAbsolutePath();
if (packageName == null || "".equals(packageName.trim())) {
path = removePrefix(path, classPath);
}
final String filePathWithDot = path.replace(File.separator, ".");
int subIndex;
if ((subIndex = filePathWithDot.indexOf(packageName)) != -1) {
final int endIndex = filePathWithDot.lastIndexOf(CLASS_EXT);
final String className = filePathWithDot.substring(subIndex, endIndex);
fillClass(className, packageName, classes, classFilter);
}
}
/**
* 处理为jar文件的情况,填充满足条件的class 到 classes
*
* @param file jar文件
* @param packageName 包名
* @param classFilter 类过滤器
* @param classes 类集合
*/
private static void processJarFile(File file, String packageName, ClassFilter classFilter, Set<Class<?>> classes) {
try (JarFile jarFile = new JarFile(file)) {
for (JarEntry entry : Collections.list(jarFile.entries())) {
if (isClass(entry.getName())) {
final String className = entry.getName().replace("/", ".").replace(CLASS_EXT, "");
fillClass(className, packageName, classes, classFilter);
}
}
} catch (Exception ex) {
logger.error(ex.getMessage(), ex);
}
}
/**
* 填充class 到 classes
*
* @param className 类名
* @param packageName 包名
* @param classes 类集合
* @param classFilter 类过滤器
*/
private static void fillClass(String className, String packageName, Set<Class<?>> classes, ClassFilter classFilter) {
if (className.startsWith(packageName)) {
try {
final Class<?> clazz = ClassUtil.loadClass(className);
if (classFilter == null || classFilter.accept(clazz)) {
classes.add(clazz);
}
} catch (Exception ex) {
logger.error(ex.getMessage(), ex);
}
}
}
/**
* @param file 文件
* @return 是否为类文件
*/
private static boolean isClassFile(File file) {
return isClass(file.getName());
}
/**
* @param fileName 文件名
* @return 是否为类文件
*/
private static boolean isClass(String fileName) {
return fileName.endsWith(CLASS_EXT);
}
/**
* @param file 文件
* @return是否为Jar文件
*/
private static boolean isJarFile(File file) {
return file.getName().endsWith(JAR_FILE_EXT);
}
//--------------------------------------------------------------------------------------------------- Private method end
/**
* 类过滤器,用于过滤不需要加载的类
*/
public interface ClassFilter {
/**
* 过滤不需要加载的类
*
* @param clazz
* @return
*/
boolean accept(Class<?> clazz);
}
/**
* 对路径解码
*
* @param url 路径
* @return String 解码后的路径
*/
private static String decodeUrl(String url) {
try {
return URLDecoder.decode(url, "UTF-8");
} catch (java.io.UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
}
}
|
carryxyh/Electrons
|
electrons/src/main/java/com/ziyuan/util/ClassUtil.java
|
Java
|
mit
| 13,408
|
<?php
/**
* Post archive for tags and categories
*
* @package mb
*/
namespace MauroBringolf;
?>
<?php get_header(); ?>
<main class="content">
<?php if ( have_posts() ) : ?>
<section>
<h2>#<?php single_tag_title(); ?></h2>
<?php post_list(); ?>
</section>
<?php endif; ?>
</main>
<?php get_footer(); ?>
|
maurobringolf/mb
|
archive.php
|
PHP
|
mit
| 323
|
---
layout: archive
lang: en
ref: appendix_opencr1_0
title: opencr_setup
category: 其他
order: 1
read_time: true
share: true
author_profile: false
permalink: /docs/en/platform/turtlebot3/appendix_opencr1_0/
sidebar:
title: TurtleBot3
nav: "turtlebot3"
---
<div style="counter-reset: h1 22"></div>
<div style="counter-reset: h2 1"></div>
<!--[dummy Header 1]>
<h1 id="appendixes"><a href="#appendixes">Appendixes</a></h1>
<![end dummy Header 1]-->
## [OpenCR1.0](#appendix-opencr10)

### [Overview](#overview)
`OpenCR` is a main controller board of the TurtleBot3. OpenCR; Open-source Control module for ROS, is developed for ROS embedded systems to provide completely open-source hardware and software. Everything about the board; Schematics, PCB Gerber, BOM and the firmware source code for the TurtleBot3 are free to distribute under open-source licenses for users and the ROS community.
The STM32F7 series is a main chip inside the OpenCR board which is based on a very powerful ARM Cortex-M7 with floating point unit. The development environment for OpenCR is wide open from Arduino IDE and Scratch for young students to traditional firmware development for the expert.
OpenCR provides digital and analog input/output pins that can interface with extension board or various sensors. Also, OpenCR features various communication interfaces: USB for connecting to PC, UART, SPI, I2C, CAN for other embedded devices.
OpenCR can provide a best solution when using with a SBC. It supports 12V, 5V, 3.3V power outputs for SBCs and sensors. It also supports hot swap power inputs between battery and SMPS.
OpenCR will be the best solution for implementing your embedded control design.
<iframe width="640" height="360" src="https://www.youtube.com/embed/-_kBfIS6wJs" frameborder="0" allowfullscreen></iframe>
### [Specifications](#specifications)
**NOTE**: Hot swap power switch between `shore power`(12V, 5A SMPS) and `mobile power`(battery) from OpenCR board enables UPS(Uninterrupted Power Supply) feature.
{: .notice--info}
| Items | Specifications |
|--------------------------|----------------------------------------------------------------------------------------------------|
| Microcontroller | STM32F746ZGT6 / 32-bit ARM Cortex®-M7 with FPU (216MHz, 462DMIPS) |
| Sensors | Gyroscope 3Axis, Accelerometer 3Axis, Magnetometer 3Axis (MPU9250) |
| Programmer | ARM Cortex 10pin JTAG/SWD connector<br />USB Device Firmware Upgrade (DFU)<br />Serial |
| Extension pins | 32 pins (L 14, R 18) *Arduino connectivity<br />Sensor module x 4 pins<br />Extension connector x 18 pins|
| Communication circuits | USB (Micro-B USB connector/USB 2.0/Host/Peripheral/OTG)<br />TTL ([B3B-EH-A] / Dynamixel)<br />RS485 ([B4B-EH-A] / Dynamixel)<br />UART x 2 ([20010WS-04])<br />CAN ([20010WS-04])|
| LEDs and buttons | LD2 (red/green) : USB communication<br />User LED x 4 : LD3 (red), LD4 (green), LD5 (blue)<br />User button x 2|
| Powers | External input source<br />5 V (USB VBUS), 7-24 V (Battery or SMPS)<br />Default battery : LI-PO 11.1V 1,800mAh 19.98Wh<br />Default SMPS: 12V 5A<br />External output source<br />12V@1A([SMW250-02]), 5V@4A([5267-02A]), 3.3V@800mA([20010WS-02])<br />External battery Port for RTC (Real Time Clock) ([Molex 53047-0210])<br />Power LED: LD1 (red, 3.3 V power on)<br />Reset button x 1 (for power reset of board)<br />Power on/off switch x 1|
| Dimensions | 105(W) X 75(D) mm |
| Mass | 60g |
### [User Guide](#user-guide)
#### [Run turtlebot3_core node](#run-turtlebot3-core-node)
```bash
$ rosrun rosserial_python serial_node.py __name:=turtlebot3_core _port:=/dev/ttyACM0 _baud:=115200
```
#### [Testing](#testing)
```bash
$ rostopic echo /imu
seq: 179
stamp:
secs: 1486448047
nsecs: 147523921
frame_id: imu_link
orientation:
x: 0.0165222994983
y: -0.0212152898312
z: 0.276503056288
w: 0.960632443428
orientation_covariance: [0.0024999999441206455, 0.0, 0.0, 0.0, 0.0024999999441206455, 0.0, 0.0, 0.0, 0.0024999999441206455]
angular_velocity:
x: 2.0
y: 1.0
z: -1.0
angular_velocity_covariance: [0.019999999552965164, 0.0, 0.0, 0.0, 0.019999999552965164, 0.0, 0.0, 0.0, 0.019999999552965164]
linear_acceleration:
x: 528.0
y: 295.0
z: 16648.0
linear_acceleration_covariance: [0.03999999910593033, 0.0, 0.0, 0.0, 0.03999999910593033, 0.0, 0.0, 0.0, 0.03999999910593033]
---
```
#### [Debugging](#debugging)
`turtlebot3_core.ino` includes debugging code to check odometry, connected sensor and state of TurtleBot3 or Dynamixels.
This might be help you to implement code and test it without ROS connection.
**First**, ready to [LN-101](http://www.robotis-shop-en.com/?act=shop_en.goods_view&GS=1277&GC=GD0B0107) or any [USB to Serial converter](https://www.sparkfun.com/products/12731).

**Second**, open `turtlebot3_core_config.h` file and activate [DEBUG](https://github.com/ROBOTIS-GIT/OpenCR/blob/develop/arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_burger/turtlebot3_core/turtlebot3_core_config.h#L73). After that upload it to OpenCR.
**Third**, connect converter to UART2 in OpenCR.
**Forth**, download minicom and configure baudrate 57600 and port name.
```sh
$ sudo apt-get install minicom
```
```sh
$ minicom -s
```
**Fifth**, press `reset` button of OpenCR then you can see how `turtlebot3_core.ino` start and some data.
```sh
Success to init Motor Driver
Success to init Sensor
Success to init Diagnosis
Success to init Controller
---------------------------------------
EXTERNAL SENSORS
---------------------------------------
Bumper : 2
Cliff : 204.00
Sonar : 1.00
Illumination : 480.00
---------------------------------------
OpenCR SENSORS
---------------------------------------
Battery : 12.15
Button : 0
IMU :
w : 1.00
x : 0.00
y : -0.00
z : 0.00
---------------------------------------
DYNAMIXELS
---------------------------------------
Torque : 1
Encoder(left) : 876
Encoder(right) : 4001
---------------------------------------
TurtleBot3
---------------------------------------
Odometry :
x : 0.00
y : 0.00
theta : 0.00
```
#### [How to modify ROS library code](how-to-modify-ros-library-code])
You can modify ROS library in below paths.
> [Your/Arduino/Board/Package/Directory/OpenCR/hardware/OpenCR/Version/libraries/turtlebot3](https://github.com/ROBOTIS-GIT/OpenCR/tree/master/arduino/opencr_arduino/opencr/libraries/turtlebot3)
> [Your/Arduino/Board/Package/Directory/OpenCR/hardware/OpenCR/Version/libraries/turtlebot3_ros_lib](https://github.com/ROBOTIS-GIT/OpenCR/tree/master/arduino/opencr_arduino/opencr/libraries/turtlebot3_ros_lib)
If you want to modify it in the sketch folder, move the above two folders to the "skechbook/libraries" folder.
#### [How to added topic messages](how-to-added-topic-messages)
For generate topic header file, you run command below in section 2.2 of [rosserial tutorial.](http://wiki.ros.org/rosserial_arduino/Tutorials/Arduino%20IDE%20Setup)
```
$ cd <sketchbook>/libraries
$ rm -rf ros_lib
$ rosrun rosserial_arduino make_libraries.py .
```
Since some hardware-related libraries generated by the above command are different from OpenCR, you must copy only the necessary topic header files.
Then copy the generated header file to the path below.
> [/turtlebot3_ros_lib](https://github.com/ROBOTIS-GIT/OpenCR/tree/master/arduino/opencr_arduino/opencr/libraries/turtlebot3_ros_lib)
### [Open Source Software](#open-source-software)
You can modify the downloaded source code and share it with your friends.
- OpenCR Software: [https://github.com/ROBOTIS-GIT/OpenCR](https://github.com/ROBOTIS-GIT/OpenCR)
### [Open Source Hardware](#open-source-hardware)
If you want to manufacture your own OpenCR, you can download necessary files such as PCB Gerber, BOM. When the board is ready firmware source code can be burned into the MCU.
- OpenCR Hardware: [https://github.com/ROBOTIS-GIT/OpenCR-Hardware](https://github.com/ROBOTIS-GIT/OpenCR-Hardware)
### [e-Manual](#e-manual)
- [OpenCR e-Manual]
[B3B-EH-A]: http://www.jst-mfg.com/product/pdf/eng/eEH.pdf
[B4B-EH-A]: http://www.jst-mfg.com/product/pdf/eng/eEH.pdf
[20010WS-04]: http://www.alldatasheet.com/datasheet-pdf/pdf/147797/YEONHO/20010WS-04000.html
[20010WS-04]: http://www.alldatasheet.com/datasheet-pdf/pdf/147797/YEONHO/20010WS-04000.html
[SMW250-02]: http://www.alldatasheet.com/datasheet-pdf/pdf/148144/YEONHO/SMW250-02P.html
[5267-02A]: http://www.molex.com/molex/products/datasheet.jsp?part=active/0022035025_PCB_HEADERS.xml&channel=Products&Lang=en-US
[20010WS-02]: http://www.alldatasheet.com/datasheet-pdf/pdf/147795/YEONHO/20010WS-02000.html
[Molex 53047-0210]: http://www.molex.com/molex/products/datasheet.jsp?part=active/0530470210_PCB_HEADERS.xml
[OpenCR e-Manual]: /docs/en/parts/controller/opencr10/
|
liusanchuan/liusanchuan.github.io
|
_posts/2019-7-17-appendix_opencr1_0.md
|
Markdown
|
mit
| 9,432
|
package auth
import (
"errors"
"fmt"
"golang.org/x/net/context"
"google.golang.org/appengine/datastore"
)
var (
sessionKey = contextKey("session-key")
)
// Errors
var (
ErrMissingToken = errors.New("no auth token found")
ErrNoSuchAccount = errors.New("failed to find account")
)
// Session provides helper methods to get and set the account key within the request context
type Session struct{}
// SignedIn returns boolean value indicating if the user is signed in or not
func (s *Session) SignedIn(c context.Context) bool {
key, err := s.AccountKey(c)
if err != nil {
return false
}
return key != nil
}
// AccountKey return the *datastore.Key value for the account
func (s *Session) AccountKey(c context.Context) (*datastore.Key, error) {
var err error
val := c.Value(sessionKey)
if val == nil {
return nil, ErrMissingToken
}
key, err := datastore.DecodeKey(val.(string))
if err != nil {
return nil, fmt.Errorf("decoding the context account key: %v", err)
}
return key, nil
}
// SetAccountKey sets the key in the request context to allow for later access
func (s *Session) SetAccountKey(c context.Context, key *datastore.Key) context.Context {
return context.WithValue(c, sessionKey, key.Encode())
}
|
chrisolsen/ae
|
auth/session.go
|
GO
|
mit
| 1,237
|
<div class="row">
<div class="col-lg-12">
<h1>Le Projet</h1>
</div>
</div>
|
poka-IT/tera-website-test
|
public/Pages/projet.html
|
HTML
|
mit
| 79
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>pts: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.0 / pts - 8.9.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
pts
<small>
8.9.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-10-28 09:54:59 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-28 09:54:59 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/pts"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/PTS"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"keyword: pure type systems"
"keyword: metatheory"
"category: Computer Science/Lambda Calculi"
"date: 2007-03"
]
authors: [
"Bruno Barras"
]
bug-reports: "https://github.com/coq-contribs/pts/issues"
dev-repo: "git+https://github.com/coq-contribs/pts.git"
synopsis: "A formalisation of Pure Type Systems"
description: """
This contrib is a formalization of Pure Type Systems. It includes most
of the basic metatheoretical properties: weakening, substitution,
subject-reduction, decidability of type-checking (for strongly normalizing
PTSs). Strengtheningis not proven here.
The kernel of a very simple proof checker is automatically generated from
the proofs. A small interface allows interacting with this kernel, making
up a standalone proof system.
The Makefile has a special target "html" that produces html files from the
sources and main.html that gives a short overview."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/pts/archive/v8.9.0.tar.gz"
checksum: "md5=67503ccd697650f7f2c96341bf161ae8"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-pts.8.9.0 coq.8.11.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.0).
The following dependencies couldn't be met:
- coq-pts -> coq < 8.10~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-pts.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
coq-bench/coq-bench.github.io
|
clean/Linux-x86_64-4.05.0-2.0.1/released/8.11.0/pts/8.9.0.html
|
HTML
|
mit
| 7,303
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>float: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.13.2 / float - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
float
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-23 23:46:31 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-23 23:46:31 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 4 Virtual package relying on a GMP lib system installation
coq 8.13.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.13.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.13.1 Official release 4.13.1
ocaml-config 2 OCaml Switch Configuration
ocaml-options-vanilla 1 Ensure that OCaml is compiled with no special options enabled
ocamlfind 1.9.3 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/float"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Float"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [
"keyword: floating-point arithmetic"
"category: Computer Science/Data Types and Data Structures"
"date: 2001"
]
authors: [ "Laurent Théry" "Sylvie Boldo" ]
bug-reports: "https://github.com/coq-contribs/float/issues"
dev-repo: "git+https://github.com/coq-contribs/float.git"
synopsis: "Library for floating-point numbers"
description: "A library for floating-point numbers."
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/float/archive/v8.8.0.tar.gz"
checksum: "md5=864ddc054ccfc786ab0f9feb4d1a88d1"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-float.8.8.0 coq.8.13.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.13.2).
The following dependencies couldn't be met:
- coq-float -> coq < 8.9~ -> ocaml < 4.10
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-float.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
coq-bench/coq-bench.github.io
|
clean/Linux-x86_64-4.13.1-2.0.10/released/8.13.2/float/8.8.0.html
|
HTML
|
mit
| 6,933
|
/*
* Open Payments Cloud Application API
* Open Payments Cloud API
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.ixaris.ope.applications.client.model;
import java.util.Objects;
import com.google.gson.annotations.SerializedName;
import com.ixaris.ope.applications.client.model.DepositProfile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* DepositProfiles
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-08-30T15:46:40.836+02:00")
public class DepositProfiles {
@SerializedName("depositProfiles")
private List<DepositProfile> depositProfiles = new ArrayList<DepositProfile>();
@SerializedName("count")
private Integer count = null;
/**
* Gets or Sets actions
*/
public enum ActionsEnum {
@SerializedName("CREATE")
CREATE("CREATE");
private String value;
ActionsEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return String.valueOf(value);
}
}
@SerializedName("actions")
private List<ActionsEnum> actions = new ArrayList<ActionsEnum>();
public DepositProfiles depositProfiles(List<DepositProfile> depositProfiles) {
this.depositProfiles = depositProfiles;
return this;
}
public DepositProfiles addDepositProfilesItem(DepositProfile depositProfilesItem) {
this.depositProfiles.add(depositProfilesItem);
return this;
}
/**
* Get depositProfiles
* @return depositProfiles
**/
@ApiModelProperty(example = "null", value = "")
public List<DepositProfile> getDepositProfiles() {
return depositProfiles;
}
public void setDepositProfiles(List<DepositProfile> depositProfiles) {
this.depositProfiles = depositProfiles;
}
public DepositProfiles count(Integer count) {
this.count = count;
return this;
}
/**
* The total number of entries that match the given filter, including any entries which were not returned due to paging constraints.
* @return count
**/
@ApiModelProperty(example = "null", value = "The total number of entries that match the given filter, including any entries which were not returned due to paging constraints.")
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public DepositProfiles actions(List<ActionsEnum> actions) {
this.actions = actions;
return this;
}
public DepositProfiles addActionsItem(ActionsEnum actionsItem) {
this.actions.add(actionsItem);
return this;
}
/**
* The actions that can be performed on this particular resource instance.
* @return actions
**/
@ApiModelProperty(example = "null", value = "The actions that can be performed on this particular resource instance.")
public List<ActionsEnum> getActions() {
return actions;
}
public void setActions(List<ActionsEnum> actions) {
this.actions = actions;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DepositProfiles depositProfiles = (DepositProfiles) o;
return Objects.equals(this.depositProfiles, depositProfiles.depositProfiles) &&
Objects.equals(this.count, depositProfiles.count) &&
Objects.equals(this.actions, depositProfiles.actions);
}
@Override
public int hashCode() {
return Objects.hash(depositProfiles, count, actions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DepositProfiles {\n");
sb.append(" depositProfiles: ").append(toIndentedString(depositProfiles)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append(" actions: ").append(toIndentedString(actions)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
|
ixaris/ope-applicationclients
|
java-client/src/main/java/com/ixaris/ope/applications/client/model/DepositProfiles.java
|
Java
|
mit
| 4,465
|
-- e_fkey.test
--
-- execsql {
-- PRAGMA foreign_keys = OFF;
-- ALTER TABLE p RENAME TO parent;
-- SELECT sql FROM sqlite_master WHERE name = 'c';
-- }
PRAGMA foreign_keys = OFF;
ALTER TABLE p RENAME TO parent;
SELECT sql FROM sqlite_master WHERE name = 'c';
|
bkiers/sqlite-parser
|
src/test/resources/e_fkey.test_185.sql
|
SQL
|
mit
| 271
|
---
title: "Authentication"
description: "In addition to built-in basic authentication and RBAC, Sensu includes commercial support for authentication using Lightweight Directory Access Protocol (LDAP), Active Directory (AD), or OIDC. Read this guide to configure an authentication provider."
weight: 40
version: "5.16"
product: "Sensu Go"
menu:
sensu-go-5.16:
parent: installation
---
- [Use built-in basic authentication](#use-built-in-basic-authentication)
- [Use an authentication provider](#use-an-authentication-provider)
- [Manage authentication providers](#manage-authentication-providers)
- [Configure authentication providers](#configure-authentication-providers)
- [LDAP authentication](#ldap-authentication)
- [Examples](#ldap-configuration-examples)
- [LDAP specification](#ldap-specification)
- [Troubleshooting](#ldap-troubleshooting)
- [AD authentication](#ad-authentication)
- [Examples](#ad-configuration-examples)
- [AD specification](#ad-specification)
- [Troubleshooting](#ad-troubleshooting)
- [OIDC authentication](#oidc-authentication)
- [OIDC configuration examples](#oidc-configuration-examples)
- [OIDC specification](#oidc-specification)
- [Okta](#okta)
Sensu requires username and password authentication to access the [Sensu dashboard][1], [API][8], and command line tool ([sensuctl][2]).
You can use Sensu's built-in basic authentication provider or configure external authentication providers to authenticate via Lightweight Directory Access Protocol (LDAP), Active Directory (AD), or OpenID Connect.
## Use built-in basic authentication
Sensu's built-in basic authentication provider allows you to create and manage user credentials (usernames and passwords) with the [users API][53], either directly or using [sensuctl][2].
The basic authentication provider does not depend on external services and is not configurable.
After creating users via the basic authentication provider, you can manage their permissions via [role-based access control (RBAC)][4]. See [Create read-only users][5] for an example.
Sensu records basic authentication credentials in [etcd][54].
## Use an authentication provider
**COMMERCIAL FEATURE**: Access authentication providers in the packaged Sensu Go distribution.
For more information, see [Get started with commercial features][6].
In addition to built-in authentication and RBAC, Sensu includes commercial support for authentication using external authentication providers, including [Microsoft Active Directory (AD)][37] and standards-compliant [Lightweight Directory Access Protocol (LDAP)][44] tools like OpenLDAP.
### Manage authentication providers
View and delete authentication providers with sensuctl and the [authentication providers API][27]
To set up an authentication provider for Sensu, see [Configure authentication providers][28].
To view active authentication providers:
{{< highlight shell >}}
sensuctl auth list
{{< /highlight >}}
To view configuration details for an authentication provider named `openldap`:
{{< highlight shell >}}
sensuctl auth info openldap
{{< /highlight >}}
To delete an authentication provider named `openldap`:
{{< highlight shell >}}
sensuctl auth delete openldap
{{< /highlight >}}
### Configure authentication providers
**1. Write an authentication provider configuration definition**
For standards-compliant LDAP tools like OpenLDAP, see the [LDAP configuration examples][29] and [specification][30].
For Microsoft AD, see the [AD configuration examples][31] and [specification][32].
**2. Apply the configuration with sensuctl**
Log in to sensuctl as the [default admin user][3] and apply the configuration to Sensu:
{{< highlight shell >}}
sensuctl create --file filename.json
{{< /highlight >}}
Use sensuctl to verify that your provider configuration was applied successfully:
{{< highlight shell >}}
sensuctl auth list
Type Name
────── ──────────
ldap openldap
{{< /highlight >}}
**3. Integrate with Sensu RBAC**
Now that you've configured an authentication provider, you'll need to configure Sensu RBAC to give those users permissions within Sensu.
Sensu RBAC allows you to manage and access users and resources based on namespaces, groups, roles, and bindings.
See the [RBAC reference][4] for more information about configuring permissions in Sensu and [implementation examples][33].
- **Namespaces** partition resources within Sensu.
Sensu entities, checks, handlers, and other [namespaced resources][17] belong to a single namespace.
- **Roles** create sets of permissions (like GET and DELETE) tied to resource types.
**Cluster roles** apply permissions across namespaces and include access to [cluster-wide resources][18] like users and namespaces.
- **Role bindings** assign a role to a set of users and groups within a namespace.
**Cluster role bindings** assign a cluster role to a set of users and groups cluster-wide.
To enable permissions for external users and groups within Sensu, create a set of [roles, cluster roles][11], [role bindings, and cluster role bindings][13] that map to the usernames and group names found in your authentication providers.
Make sure to include the [group prefix][34] and [username prefix][35] when creating Sensu role bindings and cluster role bindings.
Without an assigned role or cluster role, users can sign in to the Sensu dashboard but can't access any Sensu resources.
**4. Log in to Sensu**
After you configure the correct roles and bindings, log in to [sensuctl][36] and the [Sensu dashboard][1] using your single-sign-on username and password (no prefix required).
## LDAP authentication
Sensu offers [commercial support][6] for a standards-compliant LDAP tool for authentication to the Sensu dashboard, API, and sensuctl.
The Sensu LDAP authentication provider is tested with [OpenLDAP][7].
If you're using AD, head to the [AD section][37].
### LDAP configuration examples
**Example LDAP configuration: Minimum required attributes**
{{< language-toggle >}}
{{< highlight yml >}}
type: ldap
api_version: authentication/v2
metadata:
name: openldap
spec:
servers:
- group_search:
base_dn: dc=acme,dc=org
host: 127.0.0.1
user_search:
base_dn: dc=acme,dc=org
{{< /highlight >}}
{{< highlight json >}}
{
"type": "ldap",
"api_version": "authentication/v2",
"spec": {
"servers": [
{
"host": "127.0.0.1",
"group_search": {
"base_dn": "dc=acme,dc=org"
},
"user_search": {
"base_dn": "dc=acme,dc=org"
}
}
]
},
"metadata": {
"name": "openldap"
}
}
{{< /highlight >}}
{{< /language-toggle >}}
**Example LDAP configuration: All attributes**
{{< language-toggle >}}
{{< highlight yml >}}
type: ldap
api_version: authentication/v2
metadata:
name: openldap
spec:
groups_prefix: ldap
servers:
- binding:
password: YOUR_PASSWORD
user_dn: cn=binder,dc=acme,dc=org
client_cert_file: /path/to/ssl/cert.pem
client_key_file: /path/to/ssl/key.pem
group_search:
attribute: member
base_dn: dc=acme,dc=org
name_attribute: cn
object_class: groupOfNames
host: 127.0.0.1
insecure: false
port: 636
security: tls
trusted_ca_file: /path/to/trusted-certificate-authorities.pem
user_search:
attribute: uid
base_dn: dc=acme,dc=org
name_attribute: cn
object_class: person
username_prefix: ldap
{{< /highlight >}}
{{< highlight json >}}
{
"type": "ldap",
"api_version": "authentication/v2",
"spec": {
"servers": [
{
"host": "127.0.0.1",
"port": 636,
"insecure": false,
"security": "tls",
"trusted_ca_file": "/path/to/trusted-certificate-authorities.pem",
"client_cert_file": "/path/to/ssl/cert.pem",
"client_key_file": "/path/to/ssl/key.pem",
"binding": {
"user_dn": "cn=binder,dc=acme,dc=org",
"password": "YOUR_PASSWORD"
},
"group_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "member",
"name_attribute": "cn",
"object_class": "groupOfNames"
},
"user_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "uid",
"name_attribute": "cn",
"object_class": "person"
}
}
],
"groups_prefix": "ldap",
"username_prefix": "ldap"
},
"metadata": {
"name": "openldap"
}
}
{{< /highlight >}}
{{< /language-toggle >}}
## LDAP specification
### Top-level attributes
type |
-------------|------
description | Top-level attribute that specifies the [`sensuctl create`][38] resource type. For LDAP definitions, the `type` should always be `ldap`.
required | true
type | String
example | {{< highlight shell >}}"type": "ldap"{{< /highlight >}}
api_version |
-------------|------
description | Top-level attribute that specifies the Sensu API group and version. For LDAP definitions, the `api_version` should always be `authentication/v2`.
required | true
type | String
example | {{< highlight shell >}}"api_version": "authentication/v2"{{< /highlight >}}
metadata |
-------------|------
description | Top-level map that contains the LDAP definition `name`. See the [metadata attributes reference][24] for details.
required | true
type | Map of key-value pairs
example | {{< highlight shell >}}
"metadata": {
"name": "openldap"
}
{{< /highlight >}}
spec |
-------------|------
description | Top-level map that includes the LDAP [spec attributes][39].
required | true
type | Map of key-value pairs
example | {{< highlight shell >}}
"spec": {
"servers": [
{
"host": "127.0.0.1",
"port": 636,
"insecure": false,
"security": "tls",
"trusted_ca_file": "/path/to/trusted-certificate-authorities.pem",
"client_cert_file": "/path/to/ssl/cert.pem",
"client_key_file": "/path/to/ssl/key.pem",
"binding": {
"user_dn": "cn=binder,dc=acme,dc=org",
"password": "YOUR_PASSWORD"
},
"group_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "member",
"name_attribute": "cn",
"object_class": "groupOfNames"
},
"user_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "uid",
"name_attribute": "cn",
"object_class": "person"
}
}
],
"groups_prefix": "ldap",
"username_prefix": "ldap"
}
{{< /highlight >}}
### LDAP spec attributes
| servers | |
-------------|------
description | An array of [LDAP servers][40]for your directory. During the authentication process, Sensu attempts to authenticate using each LDAP server in sequence.
required | true
type | Array
example | {{< highlight shell >}}
"servers": [
{
"host": "127.0.0.1",
"port": 636,
"insecure": false,
"security": "tls",
"trusted_ca_file": "/path/to/trusted-certificate-authorities.pem",
"client_cert_file": "/path/to/ssl/cert.pem",
"client_key_file": "/path/to/ssl/key.pem",
"binding": {
"user_dn": "cn=binder,dc=acme,dc=org",
"password": "YOUR_PASSWORD"
},
"group_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "member",
"name_attribute": "cn",
"object_class": "groupOfNames"
},
"user_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "uid",
"name_attribute": "cn",
"object_class": "person"
}
}
]
{{< /highlight >}}
<a name="groups-prefix"></a>
| groups_prefix | |
-------------|------
description | The prefix added to all LDAP groups. Sensu prepends prefixes with a colon. For example, for the groups_prefix `ldap` and the group `dev`, the resulting group name in Sensu is `ldap:dev`. Use the groups_prefix when integrating LDAP groups with Sensu RBAC [role bindings][13] and [cluster role bindings][13].
required | false
type | String
example | {{< highlight shell >}}"groups_prefix": "ldap"{{< /highlight >}}
<a name="username-prefix"></a>
| username_prefix | |
-------------|------
description | The prefix added to all LDAP usernames. Sensu prepends prefixes with a colon. For example, for the username_prefix `ldap` and the user `alice`, the resulting username in Sensu is `ldap:alice`. Use the username_prefix when integrating LDAP users with Sensu RBAC [role bindings][13] and [cluster role bindings][13]. Users _do not_ need to provide the username_prefix when logging in to Sensu.
required | false
type | String
example | {{< highlight shell >}}"username_prefix": "ldap"{{< /highlight >}}
### LDAP server attributes
| host | |
-------------|------
description | LDAP server IP address or [FQDN][41].
required | true
type | String
example | {{< highlight shell >}}"host": "127.0.0.1"{{< /highlight >}}
| port | |
-------------|------
description | LDAP server port.
required | true
type | Integer
default | `389` for insecure connections; `636` for TLS connections
example | {{< highlight shell >}}"port": 636{{< /highlight >}}
| insecure | |
-------------|------
description | Skips SSL certificate verification when set to `true`. _**WARNING**: Do not use an insecure connection in production environments._
required | false
type | Boolean
default | `false`
example | {{< highlight shell >}}"insecure": false{{< /highlight >}}
| security | |
-------------|------
description | Determines the encryption type to be used for the connection to the LDAP server: `insecure` (unencrypted connection; not recommended for production), `tls` (secure encrypted connection), or `starttls` (unencrypted connection upgrades to a secure connection).
type | String
default | `"tls"`
example | {{< highlight shell >}}"security": "tls"{{< /highlight >}}
| trusted_ca_file | |
-------------|------
description | Path to an alternative CA bundle file in PEM format to be used instead of the system's default bundle. This CA bundle is used to verify the server's certificate.
required | false
type | String
example | {{< highlight shell >}}"trusted_ca_file": "/path/to/trusted-certificate-authorities.pem"{{< /highlight >}}
| client_cert_file | |
-------------|------
description | Path to the certificate that should be sent to the server if requested.
required | false
type | String
example | {{< highlight shell >}}"client_cert_file": "/path/to/ssl/cert.pem"{{< /highlight >}}
| client_key_file | |
-------------|------
description | Path to the key file associated with the `client_cert_file`.
required | false
type | String
example | {{< highlight shell >}}"client_key_file": "/path/to/ssl/key.pem"{{< /highlight >}}
| binding | |
-------------|------
description | The LDAP account that performs user and group lookups. If your sever supports anonymous binding, you can omit the `user_dn` or `password` attributes to query the directory without credentials.
required | false
type | Map
example | {{< highlight shell >}}
"binding": {
"user_dn": "cn=binder,dc=acme,dc=org",
"password": "YOUR_PASSWORD"
}
{{< /highlight >}}
| group_search | |
-------------|------
description | Search configuration for groups. See the [group search attributes][21] for more information.
required | true
type | Map
example | {{< highlight shell >}}
"group_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "member",
"name_attribute": "cn",
"object_class": "groupOfNames"
}
{{< /highlight >}}
| user_search | |
-------------|------
description | Search configuration for users. See the [user search attributes][22] for more information.
required | true
type | Map
example | {{< highlight shell >}}
"user_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "uid",
"name_attribute": "cn",
"object_class": "person"
}
{{< /highlight >}}
### LDAP binding attributes
| user_dn | |
-------------|------
description | The LDAP account that performs user and group lookups. We recommend using a read-only account. Use the distinguished name (DN) format, such as `cn=binder,cn=users,dc=domain,dc=tld`. If your sever supports anonymous binding, you can omit this attribute to query the directory without credentials.
required | false
type | String
example | {{< highlight shell >}}"user_dn": "cn=binder,dc=acme,dc=org"{{< /highlight >}}
| password | |
-------------|------
description | Password for the `user_dn` account. If your sever supports anonymous binding, you can omit this attribute to query the directory without credentials.
required | false
type | String
example | {{< highlight shell >}}"password": "YOUR_PASSWORD"{{< /highlight >}}
### LDAP group search attributes
| base_dn | |
-------------|------
description | Tells Sensu which part of the directory tree to search. For example, `dc=acme,dc=org` searches within the `acme.org` directory.
required | true
type | String
example | {{< highlight shell >}}"base_dn": "dc=acme,dc=org"{{< /highlight >}}
| attribute | |
-------------|------
description | Used for comparing result entries. Combined with other filters as <br> `"(<Attribute>=<value>)"`.
required | false
type | String
default | `"member"`
example | {{< highlight shell >}}"attribute": "member"{{< /highlight >}}
| name_attribute | |
-------------|------
description | Represents the attribute to use as the entry name.
required | false
type | String
default | `"cn"`
example | {{< highlight shell >}}"name_attribute": "cn"{{< /highlight >}}
| object_class | |
-------------|------
description | Identifies the class of objects returned in the search result. Combined with other filters as `"(objectClass=<ObjectClass>)"`.
required | false
type | String
default | `"groupOfNames"`
example | {{< highlight shell >}}"object_class": "groupOfNames"{{< /highlight >}}
### LDAP user search attributes
| base_dn | |
-------------|------
description | Tells Sensu which part of the directory tree to search. For example, `dc=acme,dc=org` searches within the `acme.org` directory.
required | true
type | String
example | {{< highlight shell >}}"base_dn": "dc=acme,dc=org"{{< /highlight >}}
| attribute | |
-------------|------
description | Used for comparing result entries. Combined with other filters as <br> `"(<Attribute>=<value>)"`.
required | false
type | String
default | `"uid"`
example | {{< highlight shell >}}"attribute": "uid"{{< /highlight >}}
| name_attribute | |
-------------|------
description | Represents the attribute to use as the entry name
required | false
type | String
default | `"cn"`
example | {{< highlight shell >}}"name_attribute": "cn"{{< /highlight >}}
| object_class | |
-------------|------
description | Identifies the class of objects returned in the search result. Combined with other filters as `"(objectClass=<ObjectClass>)"`.
required | false
type | String
default | `"person"`
example | {{< highlight shell >}}"object_class": "person"{{< /highlight >}}
### LDAP metadata attributes
| name | |
-------------|------
description | A unique string used to identify the LDAP configuration. Names cannot contain special characters or spaces (validated with Go regex [`\A[\w\.\-]+\z`][42]).
required | true
type | String
example | {{< highlight shell >}}"name": "openldap"{{< /highlight >}}
## LDAP troubleshooting
To troubleshoot any issue with LDAP authentication, start by [increasing the log verbosity][19] of sensu-backend to the debug log level.
Most authentication and authorization errors are only displayed on the debug log level to avoid flooding the log files.
_**NOTE**: If you can't locate any log entries referencing LDAP authentication, make sure the LDAP provider was successfully installed using [sensuctl][20]._
### Authentication errors
This section lists common error messages and possible solutions.
**Error message**: `failed to connect: LDAP Result Code 200 "Network Error"`
The LDAP provider couldn't establish a TCP connection to the LDAP server.
Verify the `host` and `port` attributes.
If you are not using LDAP over TLS/SSL, make sure to set the value of the `security` attribute to `"insecure"` for plaintext communication.
**Error message**: `certificate signed by unknown authority`
If you are using a self-signed certificate, make sure to set the `insecure` attribute to `true`.
This will bypass verification of the certificate's signing authority.
**Error message**: `failed to bind: ...`
The first step for authenticating a user with the LDAP provider is to bind to the LDAP server using the service account specified in the [`binding` object][43].
Make sure the `user_dn` specifies a valid **DN** and that its password is correct.
**Error message**: `user <username> was not found`
The user search failed.
No user account could be found with the given username.
Check the [`user_search` object][22] and make sure that:
- The specified `base_dn` contains the requested user entry DN
- The specified `attribute` contains the _username_ as its value in the user entry
- The `object_class` attribute corresponds to the user entry object class
**Error message**: `ldap search for user <username> returned x results, expected only 1`
The user search returned more than one user entry, so the provider could not determine which of these entries to use.
Change the [`user_search` object][22] so the provided `username` can be used to uniquely identify a user entry.
Here are two methods to try:
- Adjust the `attribute` so its value (which corresponds to the `username`) is unique among the user entries
- Adjust the `base_dn` so it only includes one of the user entries
**Error message**: `ldap entry <DN> missing required attribute <name_attribute>`
The user entry returned (identified by `<DN>`) doesn't include the attribute specified by [`name_attribute` object][22], so the LDAP provider could not determine which attribute to use as the username in the user entry.
Adjust the `name_attribute` so it specifies a human-readable name for the user.
**Error message**: `ldap group entry <DN> missing <name_attribute> and cn attributes`
The group search returned a group entry (identified by `<DN>`) that doesn't have the [`name_attribute` attribute][21] or a `cn` attribute, so the LDAP provider could not determine which attribute to use as the group name in the group entry.
Adjust the `name_attribute` so it specifies a human-readable name for the group.
### Authorization issues
Once authenticated, each user needs to be granted permissions via either a `ClusterRoleBinding` or a `RoleBinding`.
The way LDAP users and LDAP groups can be referred as subjects of a cluster role or role binding depends on the `groups_prefix` and `username_prefix` configuration attributes values of the [LDAP provider][39].
For example, for the groups_prefix `ldap` and the group `dev`, the resulting group name in Sensu is `ldap:dev`.
**Issue**: Permissions are not granted via the LDAP group(s)
During authentication, the LDAP provider will print in the logs all groups found in LDAP (for example, `found 1 group(s): [dev]`.
Keep in mind that this group name does not contain the `groups_prefix` at this point.
The Sensu backend logs each attempt made to authorize an RBAC request.
This is useful for determining why a specific binding didn't grant the request.
For example:
```
[...] the user is not a subject of the ClusterRoleBinding cluster-admin [...]
[...] could not authorize the request with the ClusterRoleBinding system:user [...]
[...] could not authorize the request with any ClusterRoleBindings [...]
```
## Active Directory (AD) authentication {#ad-authentication}
Sensu offers [commercial support][6] for using Microsoft Active Directory (AD) for authentication to the Sensu dashboard, API, and sensuctl.
The AD authentication provider is based on the [LDAP authentication provider][44].
### Active Directory (AD) configuration examples {#ad-configuration-examples}
**Example AD configuration: Minimum required attributes**
{{< language-toggle >}}
{{< highlight yml >}}
type: ad
api_version: authentication/v2
metadata:
name: activedirectory
spec:
servers:
- group_search:
base_dn: dc=acme,dc=org
host: 127.0.0.1
user_search:
base_dn: dc=acme,dc=org
{{< /highlight >}}
{{< highlight json >}}
{
"type": "ad",
"api_version": "authentication/v2",
"spec": {
"servers": [
{
"host": "127.0.0.1",
"group_search": {
"base_dn": "dc=acme,dc=org"
},
"user_search": {
"base_dn": "dc=acme,dc=org"
}
}
]
},
"metadata": {
"name": "activedirectory"
}
}
{{< /highlight >}}
{{< /language-toggle >}}
**Example AD configuration: All attributes**
{{< language-toggle >}}
{{< highlight yml >}}
type: ad
api_version: authentication/v2
metadata:
name: activedirectory
spec:
groups_prefix: ad
servers:
- binding:
password: YOUR_PASSWORD
user_dn: cn=binder,cn=users,dc=acme,dc=org
client_cert_file: /path/to/ssl/cert.pem
client_key_file: /path/to/ssl/key.pem
default_upn_domain: example.org
include_nested_groups: true
group_search:
attribute: member
base_dn: dc=acme,dc=org
name_attribute: cn
object_class: group
host: 127.0.0.1
insecure: false
port: 636
security: tls
trusted_ca_file: /path/to/trusted-certificate-authorities.pem
user_search:
attribute: sAMAccountName
base_dn: dc=acme,dc=org
name_attribute: displayName
object_class: person
username_prefix: ad
{{< /highlight >}}
{{< highlight json >}}
{
"type": "ad",
"api_version": "authentication/v2",
"spec": {
"servers": [
{
"host": "127.0.0.1",
"port": 636,
"insecure": false,
"security": "tls",
"trusted_ca_file": "/path/to/trusted-certificate-authorities.pem",
"client_cert_file": "/path/to/ssl/cert.pem",
"client_key_file": "/path/to/ssl/key.pem",
"default_upn_domain": "example.org",
"include_nested_groups": true,
"binding": {
"user_dn": "cn=binder,cn=users,dc=acme,dc=org",
"password": "YOUR_PASSWORD"
},
"group_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "member",
"name_attribute": "cn",
"object_class": "group"
},
"user_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "sAMAccountName",
"name_attribute": "displayName",
"object_class": "person"
}
}
],
"groups_prefix": "ad",
"username_prefix": "ad"
},
"metadata": {
"name": "activedirectory"
}
}
{{< /highlight >}}
{{< /language-toggle >}}
## AD specification
### AD top-level attributes
type |
-------------|------
description | Top-level attribute that specifies the [`sensuctl create`][38] resource type. For AD definitions, the `type` should always be `ad`.
required | true
type | String
example | {{< highlight shell >}}"type": "ad"{{< /highlight >}}
api_version |
-------------|------
description | Top-level attribute that specifies the Sensu API group and version. For AD definitions, the `api_version` should always be `authentication/v2`.
required | true
type | String
example | {{< highlight shell >}}"api_version": "authentication/v2"{{< /highlight >}}
metadata |
-------------|------
description | Top-level map that contains the AD definition `name`. See the [metadata attributes reference][23] for details.
required | true
type | Map of key-value pairs
example | {{< highlight shell >}}
"metadata": {
"name": "activedirectory"
}
{{< /highlight >}}
spec |
-------------|------
description | Top-level map that includes the AD [spec attributes][45].
required | true
type | Map of key-value pairs
example | {{< highlight shell >}}
"spec": {
"servers": [
{
"host": "127.0.0.1",
"port": 636,
"insecure": false,
"security": "tls",
"trusted_ca_file": "/path/to/trusted-certificate-authorities.pem",
"client_cert_file": "/path/to/ssl/cert.pem",
"client_key_file": "/path/to/ssl/key.pem",
"default_upn_domain": "example.org",
"include_nested_groups": true,
"binding": {
"user_dn": "cn=binder,cn=users,dc=acme,dc=org",
"password": "YOUR_PASSWORD"
},
"group_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "member",
"name_attribute": "cn",
"object_class": "group"
},
"user_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "sAMAccountName",
"name_attribute": "displayName",
"object_class": "person"
}
}
],
"groups_prefix": "ad",
"username_prefix": "ad"
}
{{< /highlight >}}
### AD spec attributes
| servers | |
-------------|------
description | An array of [AD servers][46] for your directory. During the authentication process, Sensu attempts to authenticate using each AD server in sequence.
required | true
type | Array
example | {{< highlight shell >}}
"servers": [
{
"host": "127.0.0.1",
"port": 636,
"insecure": false,
"security": "tls",
"trusted_ca_file": "/path/to/trusted-certificate-authorities.pem",
"client_cert_file": "/path/to/ssl/cert.pem",
"client_key_file": "/path/to/ssl/key.pem",
"default_upn_domain": "example.org",
"include_nested_groups": true,
"binding": {
"user_dn": "cn=binder,cn=users,dc=acme,dc=org",
"password": "YOUR_PASSWORD"
},
"group_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "member",
"name_attribute": "cn",
"object_class": "group"
},
"user_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "sAMAccountName",
"name_attribute": "displayName",
"object_class": "person"
}
}
]
{{< /highlight >}}
<a name="ad-groups-prefix"></a>
| groups_prefix | |
-------------|------
description | The prefix added to all AD groups. Sensu prepends prefixes with a colon. For example, for the groups_prefix `ad` and the group `dev`, the resulting group name in Sensu is `ad:dev`. Use the `groups_prefix` when integrating AD groups with Sensu RBAC [role bindings][13] and [cluster role bindings][13].
required | false
type | String
example | {{< highlight shell >}}"groups_prefix": "ad"{{< /highlight >}}
<a name="ad-username-prefix"></a>
| username_prefix | |
-------------|------
description | The prefix added to all AD usernames. Sensu prepends prefixes with a colon. For example, for the username_prefix `ad` and the user `alice`, the resulting username in Sensu is `ad:alice`. Use the `username_prefix` when integrating AD users with Sensu RBAC [role bindings][13] and [cluster role bindings][13]. Users _do not_ need to provide this prefix when logging in to Sensu.
required | false
type | String
example | {{< highlight shell >}}"username_prefix": "ad"{{< /highlight >}}
### AD server attributes
| host | |
-------------|------
description | AD server IP address or [FQDN][41].
required | true
type | String
example | {{< highlight shell >}}"host": "127.0.0.1"{{< /highlight >}}
| port | |
-------------|------
description | AD server port.
required | true
type | Integer
default | `389` for insecure connections; `636` for TLS connections
example | {{< highlight shell >}}"port": 636{{< /highlight >}}
| insecure | |
-------------|------
description | Skips SSL certificate verification when set to `true`. _**WARNING**: Do not use an insecure connection in production environments._
required | false
type | Boolean
default | `false`
example | {{< highlight shell >}}"insecure": false{{< /highlight >}}
| security | |
-------------|------
description | Determines the encryption type to be used for the connection to the AD server: `insecure` (unencrypted connection; not recommended for production), `tls` (secure encrypted connection), or `starttls` (unencrypted connection upgrades to a secure connection).
type | String
default | `"tls"`
example | {{< highlight shell >}}"security": "tls"{{< /highlight >}}
| trusted_ca_file | |
-------------|------
description | Path to an alternative CA bundle file in PEM format to be used instead of the system's default bundle. This CA bundle is used to verify the server's certificate.
required | false
type | String
example | {{< highlight shell >}}"trusted_ca_file": "/path/to/trusted-certificate-authorities.pem"{{< /highlight >}}
| client_cert_file | |
-------------|------
description | Path to the certificate that should be sent to the server if requested.
required | false
type | String
example | {{< highlight shell >}}"client_cert_file": "/path/to/ssl/cert.pem"{{< /highlight >}}
| client_key_file | |
-------------|------
description | Path to the key file associated with the `client_cert_file`.
required | false
type | String
example | {{< highlight shell >}}"client_key_file": "/path/to/ssl/key.pem"{{< /highlight >}}
| binding | |
-------------|------
description | The AD account that performs user and group lookups. If your sever supports anonymous binding, you can omit the `user_dn` or `password` attributes to query the directory without credentials. To use anonymous binding with AD, the `ANONYMOUS LOGON` object requires read permissions for users and groups.
required | false
type | Map
example | {{< highlight shell >}}
"binding": {
"user_dn": "cn=binder,cn=users,dc=acme,dc=org",
"password": "YOUR_PASSWORD"
}
{{< /highlight >}}
| group_search | |
-------------|------
description | Search configuration for groups. See the [group search attributes][47] for more information.
required | true
type | Map
example | {{< highlight shell >}}
"group_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "member",
"name_attribute": "cn",
"object_class": "group"
}
{{< /highlight >}}
| user_search | |
-------------|------
description | Search configuration for users. See the [user search attributes][48] for more information.
required | true
type | Map
example | {{< highlight shell >}}
"user_search": {
"base_dn": "dc=acme,dc=org",
"attribute": "sAMAccountName",
"name_attribute": "displayName",
"object_class": "person"
}
{{< /highlight >}}
| default_upn_domain | |
-------------|------
description | Enables UPN authentication when set. The default UPN suffix that will be appended to the username when a domain is not specified during login (for example, `user` becomes `user@defaultdomain.xyz`). _**WARNING**: When using UPN authentication, users must re-authenticate to apply any changes to group membership on the AD server since their last authentication. To ensure group membership updates are reflected without re-authentication, specify a binding account or enable anonymous binding._
required | false
type | String
example | {{< highlight shell >}}
"default_upn_domain": "example.org"
{{< /highlight >}}
| include_nested_groups | |
-------------|------
description | If `true`, the group search includes any nested groups a user is a member of. If `false`, the group search includes only the top-level groups a user is a member of.
required | false
type | Boolean
example | {{< highlight shell >}}
"include_nested_groups": true
{{< /highlight >}}
### AD binding attributes
| user_dn | |
-------------|------
description | The AD account that performs user and group lookups. We recommend using a read-only account. Use the distinguished name (DN) format, such as `cn=binder,cn=users,dc=domain,dc=tld`. If your sever supports anonymous binding, you can omit this attribute to query the directory without credentials.
required | false
type | String
example | {{< highlight shell >}}"user_dn": "cn=binder,cn=users,dc=acme,dc=org"{{< /highlight >}}
| password | |
-------------|------
description | Password for the `user_dn` account. If your sever supports anonymous binding, you can omit this attribute to query the directory without credentials.
required | false
type | String
example | {{< highlight shell >}}"password": "YOUR_PASSWORD"{{< /highlight >}}
### AD group search attributes
| base_dn | |
-------------|------
description | Tells Sensu which part of the directory tree to search. For example, `dc=acme,dc=org` searches within the `acme.org` directory.
required | true
type | String
example | {{< highlight shell >}}"base_dn": "dc=acme,dc=org"{{< /highlight >}}
| attribute | |
-------------|------
description | Used for comparing result entries. Combined with other filters as <br> `"(<Attribute>=<value>)"`.
required | false
type | String
default | `"member"`
example | {{< highlight shell >}}"attribute": "member"{{< /highlight >}}
| name_attribute | |
-------------|------
description | Represents the attribute to use as the entry name.
required | false
type | String
default | `"cn"`
example | {{< highlight shell >}}"name_attribute": "cn"{{< /highlight >}}
| object_class | |
-------------|------
description | Identifies the class of objects returned in the search result. Combined with other filters as `"(objectClass=<ObjectClass>)"`.
required | false
type | String
default | `"group"`
example | {{< highlight shell >}}"object_class": "group"{{< /highlight >}}
### AD user search attributes
| base_dn | |
-------------|------
description | Tells Sensu which part of the directory tree to search. For example, `dc=acme,dc=org` searches within the `acme.org` directory.
required | true
type | String
example | {{< highlight shell >}}"base_dn": "dc=acme,dc=org"{{< /highlight >}}
| attribute | |
-------------|------
description | Used for comparing result entries. Combined with other filters as <br> `"(<Attribute>=<value>)"`.
required | false
type | String
default | `"sAMAccountName"`
example | {{< highlight shell >}}"attribute": "sAMAccountName"{{< /highlight >}}
| name_attribute | |
-------------|------
description | Represents the attribute to use as the entry name.
required | false
type | String
default | `"displayName"`
example | {{< highlight shell >}}"name_attribute": "displayName"{{< /highlight >}}
| object_class | |
-------------|------
description | Identifies the class of objects returned in the search result. Combined with other filters as `"(objectClass=<ObjectClass>)"`.
required | false
type | String
default | `"person"`
example | {{< highlight shell >}}"object_class": "person"{{< /highlight >}}
### AD metadata attributes
| name | |
-------------|------
description | A unique string used to identify the AD configuration. Names cannot contain special characters or spaces (validated with Go regex [`\A[\w\.\-]+\z`][42]).
required | true
type | String
example | {{< highlight shell >}}"name": "activedirectory"{{< /highlight >}}
## AD troubleshooting
The troubleshooting steps in the [LDAP troubleshooting][49] section also apply for AD troubleshooting.
## OIDC authentication
Sensu offers [commercial support][6] for the OIDC provider for using the OpenID Connect 1.0 protocol (OIDC) on top of the OAuth 2.0 protocol for RBAC authentication.
The Sensu OIDC provider is tested with [Okta][51] and [PingFederate][52].
### OIDC configuration examples
{{< language-toggle >}}
{{< highlight yml >}}
---
type: oidc
api_version: authentication/v2
metadata:
name: oidc_name
spec:
additional_scopes:
- groups
- email
client_id: a8e43af034e7f2608780
client_secret: b63968394be6ed2edb61c93847ee792f31bf6216
redirect_uri: http://127.0.0.1:8080/api/enterprise/authentication/v2/oidc/callback
server: https://oidc.example.com:9031
groups_claim: groups
groups_prefix: 'oidc:'
username_claim: email
username_prefix: 'oidc:'
{{< /highlight >}}
{{< highlight json >}}
{
"type": "oidc",
"api_version": "authentication/v2",
"metadata": {
"name": "oidc_name"
},
"spec": {
"additional_scopes": [
"groups",
"email"
],
"client_id": "a8e43af034e7f2608780",
"client_secret": "b63968394be6ed2edb61c93847ee792f31bf6216",
"redirect_uri": "http://sensu-backend.example.com:8080/api/enterprise/authentication/v2/oidc/callback",
"server": "https://oidc.example.com:9031",
"groups_claim": "groups",
"groups_prefix": "oidc:",
"username_claim": "email",
"username_prefix": "oidc:"
}
}
{{< /highlight >}}
{{< /language-toggle >}}
### OIDC specification
#### OIDC top-level attributes
type |
-------------|------
description | Top-level attribute that specifies the [`sensuctl create`][38] resource type. For OIDC configuration, the `type` should always be `oidc`.
required | true
type | String
example | {{< highlight shell >}}"type": "oidc"{{< /highlight >}}
api_version |
-------------|------
description | Top-level attribute that specifies the Sensu API group and version. For OIDC configuration, the `api_version` should always be `authentication/v2`.
required | true
type | String
example | {{< highlight shell >}}"api_version": "authentication/v2"{{< /highlight >}}
metadata |
-------------|------
description | Top-level collection of metadata about the OIDC configuration. The `metadata` map is always at the top level of the OIDC definition. This means that in `wrapped-json` and `yaml` formats, the `metadata` scope occurs outside the `spec` scope.
required | true
type | Map of key-value pairs
example | {{< highlight shell >}}"metadata": {
"name": "oidc_name"
}
}{{< /highlight >}}
spec |
-------------|------
description | Top-level map that includes the OIDC [spec attributes][39]
required | true
type | Map of key-value pairs
example | {{< highlight shell >}}"spec": {
"additional_scopes": [
"groups",
"email"
],
"client_id": "a8e43af034e7f2608780",
"client_secret": "b63968394be6ed2edb61c93847ee792f31bf6216",
"redirect_uri": "http://sensu-backend.example.com:8080/api/enterprise/authentication/v2/oidc/callback",
"server": "https://oidc.example.com:9031",
"groups_claim": "groups",
"groups_prefix": "oidc:",
"username_claim": "email",
"username_prefix": "oidc:"
}
}{{< /highlight >}}
##### OIDC metadata attribute
| name | |
-------------|------
description | A unique string used to identify the OIDC configuration. The `metadata.name` cannot contain special characters or spaces (validated with Go regex [`\A[\w\.\-]+\z`][42]).
required | true
type | String
example | {{< highlight shell >}}"name": "oidc_name"{{< /highlight >}}
##### OIDC spec attributes
| additional_scopes | |
-------------|------
description | Scopes to include in the claims, in addition to the default `openid` scope. _**NOTE**: For most providers, you'll want to include `groups`, `email` and `username` in this list._
required | false
type | Array
example | {{< highlight shell >}}"additional_scopes": ["groups", "email", "username"]{{< /highlight >}}
| client_id | |
-------------|------
description | The OIDC provider application `Client ID`. _**NOTE**: Requires [registering an application in the OIDC provider][26]._
required | true
type | String
example | {{< highlight shell >}}"client_id": "1c9ae3e6f3cc79c9f1786fcb22692d1f"{{< /highlight >}}
| client_secret | |
-------------|------
description | The OIDC provider application `Client Secret`. _**NOTE**: Requires [registering an application in the OIDC provider][26]._
required | true
type | String
example | {{< highlight shell >}}"client_secret": "a0f2a3c1dcd5b1cac71bf0c03f2ff1bd"{{< /highlight >}}
| redirect_uri | |
-------------|------
description | Redirect URL to provide to the OIDC provider. Requires `/api/enterprise/authentication/v2/oidc/callback` _**NOTE**: Only required for certain OIDC providers, such as Okta._
required | false
type | String
example | {{< highlight shell >}}"redirect_uri": "http://sensu-backend.example.com:8080/api/enterprise/authentication/v2/oidc/callback"{{< /highlight >}}
| server | |
-------------|------
description | The location of the OIDC server you wish to authenticate against. _**NOTE**: If you configure with http, the connection will be insecure._
required | true
type | String
example | {{< highlight shell >}}"server": "https://sensu.oidc.provider.example.com"{{< /highlight >}}
| groups_claim | |
-------------|------
description | The claim to use to form the associated RBAC groups. _**NOTE**: The value held by the claim must be an array of strings._
required | false
type | String
example | {{< highlight shell >}} "groups_claim": "groups" {{< /highlight >}}
| groups_prefix | |
-------------|------
description | The prefix to use to form the final RBAC groups if required.
required | false
type | String
example | {{< highlight shell >}}"groups_prefix": "okta"{{< /highlight >}}
| username_claim | |
-------------|------
description | The claim to use to form the final RBAC user name.
required | false
type | String
example | {{< highlight shell >}}"username_claim": "person"{{< /highlight >}}
| username_prefix | |
-------------|------
description | The prefix to use to form the final RBAC user name.
required | false
type | String
example | {{< highlight shell >}}"username_prefix": "okta"{{< /highlight >}}
## Register an OIDC application
To use OIDC for authentication, register Sensu Go as an OIDC application.
Use the instructions listed in this section to register an OIDC application for Sensu Go based on your OIDC provider.
- [Okta](#okta)
### Okta
#### Requirements
- Access to the Okta Administrator Dashboard
- Sensu Go 5.12.0 or later (plus a valid commercial license for Sensu Go versions 5.12.0 through 5.14.2)
#### Create an Okta application
1. From the Okta Administrator Dashboard, select `Applications > Add Application > Create New App` to start the wizard.
2. Select the `Web` platform and `OpenID Connect` sign-in method.
3. In *General Settings*, enter an app name and upload a logo (if desired).
4. In *Configure OpenID Connect*, add the following redirect URI (replace `DASHBOARD_URL` with the URL for your dashboard: `{DASHBOARD_URL}/api/enterprise/authentication/v2/oidc/callback`.
5. Click **Save**.
6. Open the *Sign On* page. In the *OpenID Connect ID Token* section, click **Edit**.
7. Enter the following information for the *Groups* claim attribute:
- First field: `groups`
- Dropdown menu: `Regex`
- Second field: `.*`
8. Click **Save**.
9. Assign people and groups in the *Assignments* page.
#### OIDC provider configuration
1. Add the `additional_scopes` configuration attribute in the [OIDC scope][25] and set the value to `[ "groups" ]`:
- `"additional_scopes": [ "groups" ]`
2. Add the `groups` to the `groups_claim` string.
For example, if you have an Okta group `groups` and you set the `groups_prefix` to `okta:`, you can set up RBAC objects to mention group `okta:groups` as needed:
- `"groups_claim": "okta:groups" `
3. Add the `redirect_uri` configuration attribute in the [OIDC scope][25] and set the value to the Redirect URI configured at step 4 of [Create an Okta application][50]:
- `"redirect_uri": "{BACKEND_URL}/api/enterprise/authentication/v2/oidc/callback"`
#### Sensuctl login with OIDC
1. Run `sensuctl login oidc`.
2. If you are using a desktop, a browser will open to `OIDC provider` and allow you to authenticate and log in.
If a browser does not open, launch a browser to complete the login via your OIDC provider at following URL:
- https://sensu-backend.example.com:8080/api/enterprise/authentication/v2/oidc/authorize
[1]: ../../dashboard/overview/
[2]: ../../sensuctl/reference/
[3]: ../../reference/rbac#default-users
[4]: ../../reference/rbac/
[5]: ../../guides/create-read-only-user/
[6]: ../../getting-started/enterprise/
[7]: https://www.openldap.org/
[8]: ../../api/overview/
[9]: ../../api/auth/
[11]: ../../reference/rbac#roles-and-cluster-roles
[13]: ../../reference/rbac#role-bindings-and-cluster-role-bindings
[17]: ../../reference/rbac#namespaced-resource-types
[18]: ../../reference/rbac#cluster-wide-resource-types
[19]: ../../guides/troubleshooting#log-levels
[20]: #manage-authentication-providers
[21]: #ldap-group-search-attributes
[22]: #ldap-user-search-attributes
[23]: #ad-metadata-attributes
[24]: #ldap-metadata-attributes
[25]: #oidc-spec-attributes
[26]: #register-an-oidc-application
[27]: ../../api/authproviders/
[28]: #configure-authentication-providers
[29]: #ldap-configuration-examples
[30]: #ldap-specification
[31]: #ad-configuration-examples
[32]: #ad-specification
[33]: ../../reference/rbac/#example-workflows
[34]: #groups-prefix
[35]: #username-prefix
[36]: ../../sensuctl/reference#first-time-setup
[37]: #ad-authentication
[38]: ../../sensuctl/reference#create-resources
[39]: #ldap-spec-attributes
[40]: #ldap-server-attributes
[41]: https://en.wikipedia.org/wiki/Fully_qualified_domain_name
[42]: https://regex101.com/r/zo9mQU/2
[43]: #ldap-binding-attributes
[44]: #ldap-authentication
[45]: #ad-spec-attributes
[46]: #ad-server-attributes
[47]: #ad-group-search-attributes
[48]: #ad-user-search-attributes
[49]: #ldap-troubleshooting
[50]: #create-an-okta-application
[51]: https://www.okta.com/
[52]: https://www.pingidentity.com/en/software/pingfederate.html
[53]: ../../api/users/
[54]: https://etcd.io/
|
sensu/sensu-docs
|
archived/sensu-go/5.16/installation/auth.md
|
Markdown
|
mit
| 50,636
|
# Enter your code here. Read input from STDIN. Print output to STDOUT
import re
t = int(raw_input())
for i in range(t):
try:
x = re.compile(raw_input())
if x:
print True
except:
print False
|
ugaliguy/HackerRank
|
Python/Errors-and-Exceptions/incorrect-regex.py
|
Python
|
mit
| 246
|
using System.Collections.Generic;
using UltimateTeam.Toolkit.Parameters;
namespace UltimateTeam.Toolkit.Models
{
public class ItemData
{
public long AssetId { get; set; }
public ushort Assists { get; set; }
public List<Attribute> AttributeList { get; set; }
public ushort CardSubTypeId { get; set; }
public byte Contract { get; set; }
public ushort? DiscardValue { get; set; }
public byte Fitness { get; set; }
public string Formation { get; set; }
public long Id { get; set; }
public byte InjuryGames { get; set; }
public string InjuryType { get; set; }
public string ItemState { get; set; }
public string ItemType { get; set; }
public uint LastSalePrice { get; set; }
public uint LeagueId { get; set; }
public ushort LifeTimeAssists { get; set; }
public ushort Loans { get; set; }
public List<Attribute> LifeTimeStats { get; set; }
public byte LoyaltyBonus { get; set; }
public byte Morale { get; set; }
public byte Owners { get; set; }
public ChemistryStyle PlayStyle { get; set; }
public string PreferredPosition { get; set; }
public byte RareFlag { get; set; }
public byte Rating { get; set; }
public long ResourceId { get; set; }
public List<Attribute> StatsList { get; set; }
public byte Suspension { get; set; }
public uint TeamId { get; set; }
public string Timestamp { get; set; }
public int Training { get; set; }
public bool Untradeable { get; set; }
public int Pile { get; set; }
public int Nation { get; set; }
}
}
|
lorenzh/FIFA-Ultimate-Team-Toolkit
|
UltimateTeam.Toolkit/Models/ItemData.cs
|
C#
|
mit
| 1,750
|
#include "PathSearchNode.h"
bool PathSearchNode::IsSameState( PathSearchNode &rhs , void* context)
{
return coord == rhs.coord && timestamp == rhs.timestamp;
}
float PathSearchNode::GoalDistanceEstimate( PathSearchNode &nodeGoal , void* _context)
{
int cost_hX = abs(coord.x - nodeGoal.coord.x);
int cost_hY = abs(coord.y - nodeGoal.coord.y);
int cost_hZ = abs(coord.z - nodeGoal.coord.z);
float cost_h = cost_hX + cost_hY + cost_hZ;
return cost_h;
}
bool PathSearchNode::IsGoal( PathSearchNode &nodeGoal , void* _context)
{
CAstar* context = (CAstar*)_context;
if(coord == nodeGoal.coord) {
vector< vector<WS_Coord> > avoidTrajs = context->GetAvoidTrajs();
for(int i=0; i < avoidTrajs.size(); i++)
{
for(int t=timestamp; t < avoidTrajs[i].size(); t++)
{
if(avoidTrajs[i][t] == nodeGoal.coord) {
return false;
}
}
}
return true;
}
return false;
}
bool isBlocked(WS_Coord pos, int timestep, int ***obsmap, vector< vector<WS_Coord> > avoidTrajs)
{
if(obsmap[pos.x][pos.y][pos.z] == 1) {
return true;
}
for(int i=0; i < avoidTrajs.size(); i++)
{
for(int t = timestep - Delta; t <= timestep + Delta; t++)
{
if(t >= 0) {
if(t < avoidTrajs[i].size()) {
if(pos == avoidTrajs[i][t]) {
return true;
}
} else {
if(pos == avoidTrajs[i][avoidTrajs[i].size() - 1]) {
return true;
}
}
}
}
}
return false;
}
bool PathSearchNode::GetSuccessors( AStarSearch<PathSearchNode> *astarsearch, PathSearchNode *parent_node, void* _context)
{
CAstar* context = (CAstar*)_context;
#define add_if_not_blocked(side, step) { \
WS_Coord neighbor = coord; \
neighbor.side += (step); \
if(neighbor.side >= 0 && neighbor.side < context->GetDimension().side##_dim && \
!isBlocked(neighbor, timestamp + 1, context->GetObstacleMap(), context->GetAvoidTrajs())) { \
PathSearchNode newNode(neighbor, timestamp + 1); \
astarsearch->AddSuccessor(newNode); \
} \
}
add_if_not_blocked(x, -1);
add_if_not_blocked(x, +1);
add_if_not_blocked(y, -1);
add_if_not_blocked(y, +1);
add_if_not_blocked(z, -1);
add_if_not_blocked(z, +1);
add_if_not_blocked(x, 0); // hovering action
return true;
}
float PathSearchNode::GetCost( PathSearchNode &successor , void* context)
{
if(coord == successor.coord) {
return HOVERING_COST;
} else {
return STEP_COST;
}
}
void PathSearchNode::PrintNodeInfo()
{
printf("(%d, %d %d)@t=%d\n", coord.x, coord.y, coord.z, timestamp);
}
|
Drona-Org/DronaForPX4
|
Src/Lib/ExternalMotionPlanners/AStarPlanner/Src/PathSearchNode.cpp
|
C++
|
mit
| 3,025
|
# Template project
Simple soft latching power circuit, intended to be used with a microcontroller. Inspired by this [forum post on eevblog forums](https://www.eevblog.com/forum/beginners/push-button-power-circuit-for-arduino-trying-to-modify-it-for-12v-input/).
## TODO's
Still some things need to be done:
* schematic entry (TODO)
* PCB layout (TODO)
* Review with one night in between (TODO)
* Produce at [OSHPARK](https://oshpark.com/) (TODO)
* Assemble (TODO)
* Test & characterise (TODO)
* update Readme.md with pictures and BOM (TODO)
## BOM
Maybe the only critical part is the MOSFET. Take into account your load, standoff voltage and maximum voltage you want to switch and size your P channel MOSFET appropriatly. This circuit just has a SOT-23 3 pin footprint for now. This is intended for microcontroller projects
|
Squantor/various_PCB
|
electronics/soft_latching_module_V001/README.md
|
Markdown
|
mit
| 827
|
/**
* Module dependencies
*/
var utils = require('../utils');
var safeRequire = utils.safeRequire;
var cassandra = safeRequire('cassandra-driver');
var Types = cassandra.types;
var timeUUID = Types.timeuuid;
var util = require('util');
var BaseSQL = require('../sql');
exports.initialize = function initializeSchema(schema, callback) {
if (!cassandra) {
return;
}
var s = schema.settings;
if (s.url) {
var uri = url.parse(s.url);
s.host = uri.hostname;
s.port = uri.port || '9042';
s.database = uri.pathname.replace(/^\//, '');
s.username = uri.auth && uri.auth.split(':')[0];
s.password = uri.auth && uri.auth.split(':')[1];
}
s.host = s.host || 'localhost';
s.port = parseInt(s.port || '9042', 10);
s.database = s.database || s.keyspace || 'test';
if (!(s.host instanceof Array)) {
s.host = [s.host];
}
schema.client = new cassandra.Client({
contactPoints: s.host,
protocolOptions: {
maxVersion: 3
},
autoPage: true
});
// , keyspace: s.database
schema.adapter = new Cassandra(schema, schema.client);
schema.client.connect(function (err, result) {
schema.client.execute("CREATE KEYSPACE IF NOT EXISTS " + s.database.toString() + " WITH replication " +
"= {'class' : 'SimpleStrategy', 'replication_factor' : 2};", function (err, data) {
console.log('Cassandra connected.');
schema.client.keyspace = s.database;
process.nextTick(callback);
}
);
});
};
function Cassandra(schema, client) {
this.name = 'cassandra';
this._models = {};
this.client = client;
this.schema = schema;
}
util.inherits(Cassandra, BaseSQL);
Cassandra.prototype.execute = function (sql, callback) {
var self = this;
var client = self.client;
client.execute(sql, callback);
};
Cassandra.prototype.query = function (sql, callback) {
'use strict';
var self = this;
if (typeof callback !== 'function') {
throw new Error('callback should be a function');
}
self.execute(sql, function (err, data) {
if (err && err.message.match(/does\s+not\s+exist/i)) {
self.query('CREATE KEYSPACE IF NOT EXISTS ' + self.schema.settings.database, function (error) {
if (!error) {
self.execute(sql, callback);
} else {
callback(err);
}
});
} else if (err && (err.message.match(/no\s+keyspace\s+has\s+been\s+specified/gi) || parseInt(err.errno) === 1046)) {
self.execute('USE ' + self.schema.settings.database + '', function (error) {
if (!error) {
self.execute(sql, callback);
} else {
callback(error);
}
});
} else {
var rows = [];
data = data || {};
if (data.rows && data.rows.length) {
rows = data.rows;
}
return callback(err, rows);
}
});
};
/**
* Must invoke callback(err, id)
* @param {Object} model
* @param {Object} data
* @param {Function} callback
*/
Cassandra.prototype.create = function (model, data, callback) {
'use strict';
var self = this;
var props = self._models[model].properties;
data = data || {};
if (data.id === null) {
data.id = timeUUID();
}
var keys = [];
var questions = [];
Object.keys(data).map(function (key) {
var val = self.toDatabase(props[key], data[key]);
if (val !== 'NULL') {
keys.push(key);
questions.push(val);
}
});
var sql = 'INSERT INTO ' + self.tableEscaped(model) + ' (' + keys.join(',') + ') VALUES (';
sql += questions.join(',');
sql += ')';
this.query(sql, function (err, info) {
callback(err, !err && data.id);
});
};
Cassandra.prototype.all = function all(model, filter, callback) {
'use strict';
var self = this, sFields = '*';
if ('function' === typeof filter) {
callback = filter;
filter = {};
}
if (!filter) {
filter = {};
}
var sql = 'SELECT ' + sFields + ' FROM ' + self.tableEscaped(model);
if (filter) {
if (filter.fields) {
if (typeof filter.fields === 'string') {
sFields = self.tableEscaped(filter.fields);
} else if (Object.prototype.toString.call(filter.fields) === '[object Array]') {
sFields = filter.fields.map(function (field) {
return '`' + field + '`';
}).join(', ');
}
sql = sql.replace('*', sFields);
}
if (filter.where) {
sql += ' ' + self.buildWhere(filter.where, self, model);
}
if (filter.order) {
sql += ' ' + self.buildOrderBy(filter.order);
}
if (filter.group) {
sql += ' ' + self.buildGroupBy(filter.group);
}
if (filter.limit) {
sql += ' ' + self.buildLimit(filter.limit, filter.offset || filter.skip || 0);
}
}
this.query(sql, function (err, data) {
if (err) {
return callback(err, []);
}
callback(null, data.map(function (obj) {
return self.fromDatabase(model, obj);
}));
}.bind(this));
return sql;
};
Cassandra.prototype.update = function (model, filter, data, callback) {
'use strict';
if ('function' === typeof filter) {
return filter(new Error("Get parametrs undefined"), null);
}
if ('function' === typeof data) {
return data(new Error("Set parametrs undefined"), null);
}
filter = filter.where ? filter.where : filter;
var self = this;
var combined = [];
var props = self._models[model].properties;
Object.keys(data).forEach(function (key) {
if (props[key] || key === 'id') {
var k = '' + key + '';
var v;
if (key !== 'id') {
v = self.toDatabase(props[key], data[key]);
} else {
v = data[key];
}
combined.push(k + ' = ' + v);
}
});
var sql = 'UPDATE ' + this.tableEscaped(model);
sql += ' SET ' + combined.join(', ');
sql += ' ' + self.buildWhere(filter, self, model);
this.query(sql, function (err, affected) {
callback(err, !err);
});
};
Cassandra.prototype.destroyAll = function destroyAll(model, callback) {
this.query('TRUNCATE ' + this.tableEscaped(model), function (err) {
if (err) {
return callback(err, []);
}
callback(err);
}.bind(this));
};
/**
* Update existing database tables.
* @param {Function} cb
*/
Cassandra.prototype.autoupdate = function (cb) {
'use strict';
var self = this;
var wait = 0;
Object.keys(this._models).forEach(function (model) {
wait += 1;
self.query('SELECT column_name as field, type, validator, index_type, index_name FROM system.schema_columns ' +
'WHERE keyspace_name = \'' + self.schema.settings.database + '\' ' +
'AND columnfamily_name = \'' + self.escapeName(model) + '\'',
function (err, data) {
var indexes = data.filter(function (m) {
return m.index_type !== null || m.type === 'partition_key';
}) || [];
if (!err && data.length) {
self.alterTable(model, data, indexes || [], done);
} else {
self.createTable(model, indexes || [], done);
}
});
});
function done(err) {
if (err) {
console.log(err);
}
if (--wait === 0 && cb) {
cb();
}
}
};
Cassandra.prototype.alterTable = function (model, actualFields, actualIndexes, done, checkOnly) {
'use strict';
var self = this;
var m = this._models[model];
var propNames = Object.keys(m.properties).filter(function (name) {
return !!m.properties[name];
});
var indexNames = m.settings.indexes ? Object.keys(m.settings.indexes).filter(function (name) {
return !!m.settings.indexes[name];
}) : [];
var sql = [];
var ai = {};
if (actualIndexes) {
actualIndexes.forEach(function (i) {
var name = i.index_name || i.field;
if (!ai[name]) {
ai[name] = {
info: i,
columns: []
};
}
ai[name].columns.push(i.field);
});
}
var aiNames = Object.keys(ai);
// change/add new fields
propNames.forEach(function (propName) {
if (propName === 'id') {
return;
}
var found;
actualFields.forEach(function (f) {
if (f.field === propName) {
found = f;
}
});
if (found) {
actualize(propName, found);
} else {
// ALTER TABLE users ADD top_places list<text>;
sql.push('ALTER TABLE ' + self.escapeName(model) + ' ADD ' + self.propertySettingsSQL(model, propName));
}
});
// drop columns
actualFields.forEach(function (f) {
var notFound = !~propNames.indexOf(f.field);
if (f.field === 'id') {
return;
}
if (notFound || !m.properties[f.field]) {
// ALTER TABLE addamsFamily DROP gender;
sql.push('ALTER TABLE ' + self.escapeName(model) + ' DROP ' + f.field + '');
}
});
// remove indexes
aiNames.forEach(function (indexName) {
if (indexName === 'id' || indexName === 'PRIMARY') {
return;
}
if ((indexNames.indexOf(indexName) === -1 && !m.properties[indexName])
|| (m.properties[indexName] && !m.properties[indexName].index && !ai[indexName])) {
sql.push('DROP INDEX IF EXISTS ' + indexName + '');
} else {
// first: check single (only type and kind)
if (m.properties[indexName] && !m.properties[indexName].index) {
// TODO
return;
}
// second: check multiple indexes
var orderMatched = true;
if (indexNames.indexOf(indexName) !== -1) {
m.settings.indexes[indexName].columns.split(/,\s*/).forEach(function (columnName, i) {
if (ai[indexName].columns[i] !== columnName)
orderMatched = false;
});
}
if (!orderMatched) {
sql.push('DROP INDEX IF EXISTS ' + indexName + '');
delete ai[indexName];
}
}
});
// add single-column indexes
propNames.forEach(function (propName) {
var i = m.properties[propName].index;
if (!i) {
return;
}
var found = ai[propName] && ai[propName].info;
if (!found) {
var type = '';
var kind = '';
if (i.type) {
type = 'USING ' + i.type;
}
if (i.kind) {
// kind = i.kind;
}
// CREATE INDEX IF NOT EXISTS user_state ON myschema.users (state);
if (kind && type) {
sql.push('CREATE INDEX IF NOT EXISTS ' + propName + ' ON ' + self.escapeName(model) + ' (' + propName + ')');
} else {
sql.push('CREATE INDEX IF NOT EXISTS ' + propName + ' ON ' + self.escapeName(model) + ' (' + propName + ')');
}
}
});
/*
// add multi-column indexes
indexNames.forEach(function (indexName) {
var i = m.settings.indexes[indexName];
var found = ai[indexName] && ai[indexName].info;
if (!found) {
sql.push('CREATE INDEX IF NOT EXISTS '+indexName+' ON '+self.escapeName(model)+' ('+i.columns+')');
}
});
*/
if (sql.length) {
var query = sql;
if (checkOnly) {
done(null, true, {
statements: sql,
query: query
});
} else {
var slen = query.length;
for (var qi in query) {
this.query(query[qi] + '', function (err, data) {
if (err) console.log(err);
if (--slen === 0) {
done();
}
});
}
}
} else {
done();
}
function actualize(propName, oldSettings) {
'use strict';
var newSettings = m.properties[propName];
if (newSettings && changed(newSettings, oldSettings)) {
// ALTER TABLE users ALTER bio TYPE text;
sql.push('ALTER TABLE ' + self.escapeName(model) + ' ALTER ' + propName + ' TYPE ' + self.propertySettingsSQL(model, propName));
}
}
function changed(newSettings, oldSettings) {
'use strict';
var type = oldSettings.validator.replace(/ORG\.APACHE\.CASSANDRA\.DB\.MARSHAL\./gi, '');
type = type.replace(/type/gi, '').toLowerCase();
if (/^map/gi.test(type)) {
type = 'map<text,text>';
}
switch (type) {
case 'utf8':
type = 'text';
break;
case 'int32':
type = 'int';
break;
case 'long':
type = 'bigint';
break;
}
if (type !== datatype(newSettings) && type !== 'reversed(' + datatype(newSettings) + ')') {
return true;
}
return false;
}
};
Cassandra.prototype.ensureIndex = function (model, fields, params, callback) {
'use strict';
var self = this, sql = "", keyName = params.name || null, afld = [], kind = "";
Object.keys(fields).forEach(function (field) {
if (!keyName) {
keyName = "idx_" + field;
}
afld.push('' + field + '');
});
if (params.unique) {
kind = "UNIQUE";
}
// CREATE INDEX IF NOT EXISTS xi ON xx5 (x);
sql += 'CREATE INDEX IF NOT EXISTS ' + kind + ' INDEX `' + keyName + '` ON `' + model + '` (' + afld.join(', ') + ');';
self.query(sql, callback);
};
Cassandra.prototype.buildLimit = function buildLimit(limit, offset) {
'use strict';
return 'LIMIT ' + (offset ? (offset + ', ' + limit) : limit);
};
Cassandra.prototype.buildWhere = function buildWhere(conds, adapter, model) {
'use strict';
var cs = [], or = [],
self = adapter,
props = self._models[model].properties;
Object.keys(conds).forEach(function (key) {
if (key !== 'or') {
cs = parseCond(cs, key, props, conds, self);
} else {
conds[key].forEach(function (oconds) {
Object.keys(oconds).forEach(function (okey) {
or = parseCond(or, okey, props, oconds, self);
});
});
}
});
if (cs.length === 0 && or.length === 0) {
return '';
}
var orop = "";
if (or.length) {
orop = ' (' + or.join(' OR ') + ') ';
}
orop += (orop !== "" && cs.length > 0) ? ' AND ' : '';
return 'WHERE ' + orop + cs.join(' AND ');
};
Cassandra.prototype.buildGroupBy = function buildGroupBy(group) {
'use strict';
if (typeof group === 'string') {
group = [group];
}
return 'GROUP BY ' + group.join(', ');
};
Cassandra.prototype.fromDatabase = function (model, data) {
'use strict';
if (!data) {
return null;
}
var props = this._models[model].properties;
Object.keys(data).forEach(function (key) {
var val = data[key];
if (props[key]) {
if (props[key].type.name === 'Date' && val !== null) {
val = new Date(val.toString().replace(/GMT.*$/, 'GMT'));
}
}
data[key] = val;
});
return data;
};
Cassandra.prototype.propertiesSQL = function (model) {
'use strict';
var self = this;
var sql = [];
Object.keys(this._models[model].properties).forEach(function (prop) {
if (prop === 'id') {
return;
}
return sql.push('' + prop + ' ' + self.propertySettingsSQL(model, prop));
});
var primaryKeys = this._models[model].settings.primaryKeys || [];
primaryKeys = primaryKeys.slice(0);
if (primaryKeys.length) {
for (var i = 0, length = primaryKeys.length; i < length; i++) {
primaryKeys[i] = "" + primaryKeys[i] + "";
}
sql.push("PRIMARY KEY (" + primaryKeys.join(', ') + ")");
} else {
sql.push('id timeuuid PRIMARY KEY');
}
return sql.join(',\n ');
};
Cassandra.prototype.propertySettingsSQL = function (model, prop) {
'use strict';
var p = this._models[model].properties[prop], field = [];
field.push(datatype(p));
return field.join(" ");
};
Cassandra.prototype.escapeName = function (name) {
'use strict';
return name.toLowerCase();
};
Cassandra.prototype.toFields = function (model, data) {
'use strict';
var fields = [];
var props = this._models[model].properties;
Object.keys(data).forEach(function (key) {
if (props[key] && key !== 'id') {
fields.push(key + ' = ' + this.toDatabase(props[key], data[key]));
}
}.bind(this));
return fields.join(',');
};
Cassandra.prototype.toDatabase = function (prop, val) {
'use strict';
if (val === null) {
return 'NULL';
}
if (val.constructor.name === 'Object') {
var operator = Object.keys(val)[0];
val = val[operator];
if (operator === 'between') {
if (prop.type.name === 'Date') {
return 'STR_TO_DATE(' + this.toDatabase(prop, val[0]) + ', "%Y-%m-%d %H:%i:%s")' +
' AND STR_TO_DATE(' +
this.toDatabase(prop, val[1]) + ', "%Y-%m-%d %H:%i:%s")';
} else {
return this.toDatabase(prop, val[0]) +
' AND ' +
this.toDatabase(prop, val[1]);
}
} else if (operator === 'in' || operator === 'inq' || operator === 'nin') {
if (!(val.propertyIsEnumerable('length')) && typeof val === 'object' && typeof val.length === 'number') { //if value is array
for (var i = 0; i < val.length; i++) {
val[i] = this.escapeName(val[i]);
}
return val.join(',');
} else {
return val;
}
}
}
if (!prop) {
return val;
}
var type = (prop.type.name || '').toLowerCase();
if (type === 'json') {
return val;
}
if (type === 'uuid' || type === 'timeuuid'
|| type === 'number' || type === 'float'
|| type === 'integer' || type === 'real') {
return val;
}
if (type === 'date') {
if (!val) {
return 'NULL';
}
if (typeof val === 'string') {
val = val.split('.')[0].replace('T', ' ');
val = Date.parse(val);
}
if (typeof val === 'number') {
val = new Date(val);
}
if (val instanceof Date) {
val = val.getTime();
}
return val;
}
if (type === "boolean" || type === "tinyint") {
return val ? 1 : 0;
}
return '\'' + val.toString() + '\'';
};
function dateToCassandra(val) {
'use strict';
return val.getUTCFullYear() + '-' +
fillZeros(val.getUTCMonth() + 1) + '-' +
fillZeros(val.getUTCDate()) + ' ' +
fillZeros(val.getUTCHours()) + ':' +
fillZeros(val.getUTCMinutes()) + ':' +
fillZeros(val.getUTCSeconds());
function fillZeros(v) {
'use strict';
return v < 10 ? '0' + v : v;
}
}
function parseCond(cs, key, props, conds, self) {
'use strict';
var keyEscaped = '' + key + '';
var val = self.toDatabase(props[key], conds[key]);
if (conds[key] === null) {
cs.push(keyEscaped + ' IS NULL');
} else if (conds[key].constructor.name === 'Object') {
Object.keys(conds[key]).forEach(function (condType) {
val = self.toDatabase(props[key], conds[key][condType]);
var sqlCond = keyEscaped;
if ((condType === 'inq' || condType === 'nin') && val.length === 0) {
cs.push(condType === 'inq' ? 0 : 1);
return true;
}
switch (condType) {
case 'gt':
sqlCond += ' > ';
break;
case 'gte':
sqlCond += ' >= ';
break;
case 'lt':
sqlCond += ' < ';
break;
case 'lte':
sqlCond += ' <= ';
break;
case 'between':
sqlCond += ' BETWEEN ';
break;
case 'inq':
case 'in':
sqlCond += ' IN ';
break;
case 'nin':
sqlCond += ' NOT IN ';
break;
case 'neq':
case 'ne':
sqlCond += ' != ';
break;
case 'regex':
sqlCond += ' REGEXP ';
break;
case 'like':
sqlCond += ' LIKE ';
break;
case 'nlike':
sqlCond += ' NOT LIKE ';
break;
default:
sqlCond += ' ' + condType + ' ';
break;
}
sqlCond += (condType === 'in' || condType === 'inq' || condType === 'nin') ? '(' + val + ')' : val;
cs.push(sqlCond);
});
} else if (/^\//gi.test(conds[key])) {
var reg = val.toString().split('/');
cs.push(keyEscaped + ' REGEXP "' + reg[1] + '"');
} else {
cs.push(keyEscaped + ' = ' + val);
}
return cs;
}
function datatype(p) {
'use strict';
var dt = '';
switch ((p.type.name || 'string').toLowerCase()) {
case 'json':
dt = 'map<text,text>';
break;
case 'text':
dt = 'text';
break;
case 'int':
case 'integer':
case 'number':
dt = (parseFloat(p.limit) > 11) ? "bigint" : "int";
break;
case 'float':
case 'double':
dt = 'float';
case 'real':
dt = 'decimal';
break;
case 'timestamp':
case 'date':
dt = 'timestamp';
break;
case 'boolean':
case 'bool':
dt = 'boolean';
break;
case 'uuid':
case 'timeuuid':
dt = 'uuid';
break;
case 'blob':
case 'bytes':
dt = 'bytes';
break;
case 'countercolumn':
dt = 'countercolumn';
break;
default:
dt = 'text';
}
return dt;
}
|
philipz/caminte
|
lib/adapters/cassandra.js
|
JavaScript
|
mit
| 23,406
|
$(document).ready(function(){
$("#lang").change(function(){
var lang = $("#lang").val();
$.ajax({
"type":"POST",
// "url":baseUrl+"home/checklang",
"data":"lang="+lang,
"async":true,
"success":function(result){
window.location=baseUrl+lang;
}
})
})
})
|
vungocgiao1510/giao
|
public/default/js/jquery_code.js
|
JavaScript
|
mit
| 339
|
import Pyro4
import Pyro4.errors
from diffiehellman import DiffieHellman
dh = DiffieHellman(group=14)
with Pyro4.locateNS() as ns:
uri = ns.lookup("example.dh.secretstuff")
print(uri)
p = Pyro4.Proxy(uri)
try:
p.process("hey")
raise RuntimeError("this should not be reached")
except Pyro4.errors.PyroError as x:
print("Error occured (expected!):", x)
with Pyro4.Proxy("PYRONAME:example.dh.keyexchange") as keyex:
print("exchange public keys...")
other_key = keyex.exchange_key(dh.public_key)
print("got server public key, creating shared secret key...")
dh.make_shared_secret_and_key(other_key)
print("setting key on proxy.")
p._pyroHmacKey = dh.key
print("Calling proxy again...")
result = p.process("hey")
print("Got reply:", result)
|
irmen/Pyro4
|
examples/diffie-hellman/client.py
|
Python
|
mit
| 786
|
#region License Information (GPL v3)
/*
ShareX - A program that allows you to take screenshots and share any file type
Copyright (c) 2007-2016 ShareX Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
*/
#endregion License Information (GPL v3)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Cache;
using System.Text;
using Newtonsoft.Json;
namespace puush_installer.ShareX.HelpersLib
{
public class GitHubUpdateChecker : UpdateChecker
{
public string Owner { get; private set; }
public string Repo { get; private set; }
public bool IncludePreRelease { get; set; }
private const string APIURL = "https://api.github.com";
private string ReleasesURL => $"{APIURL}/repos/{Owner}/{Repo}/releases";
public GitHubUpdateChecker(string owner, string repo)
{
Owner = owner;
Repo = repo;
}
public override void CheckUpdate()
{
}
public string GetLatestDownloadURL(bool includePreRelease, bool isPortable, bool isBrowserDownloadURL)
{
try
{
GitHubRelease latestRelease = GetLatestRelease(includePreRelease);
if (UpdateReleaseInfo(latestRelease, isPortable, isBrowserDownloadURL))
{
return DownloadURL;
}
}
catch (Exception)
{
//DebugHelper.WriteException(e);
}
return null;
}
public string GetDownloadCounts()
{
StringBuilder sb = new StringBuilder();
foreach (GitHubRelease release in GetReleases().Where(x => x.assets != null && x.assets.Count > 0))
{
sb.AppendFormat("{0} ({1}): {2}{3}", release.name, DateTime.Parse(release.published_at), release.assets.Sum(x => x.download_count), Environment.NewLine);
}
return sb.ToString().Trim();
}
private List<GitHubRelease> GetReleases()
{
using (WebClient wc = new WebClient())
{
wc.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
wc.Headers.Add("user-agent", "ShareX");
wc.Proxy = Proxy;
string response = wc.DownloadString(ReleasesURL);
if (!string.IsNullOrEmpty(response))
{
return JsonConvert.DeserializeObject<List<GitHubRelease>>(response);
}
}
return null;
}
private GitHubRelease GetLatestRelease(bool includePreRelease)
{
GitHubRelease latestRelease = null;
List<GitHubRelease> releases = GetReleases();
if (releases != null && releases.Count > 0)
{
if (includePreRelease)
{
latestRelease = releases[0];
}
else
{
latestRelease = releases.FirstOrDefault(x => !x.prerelease);
}
}
return latestRelease;
}
public bool UpdateReleaseInfo(GitHubRelease release, bool isPortable, bool isBrowserDownloadURL)
{
if (release != null && !string.IsNullOrEmpty(release.tag_name) && release.tag_name.Length > 1 && release.tag_name[0] == 'v')
{
LatestVersion = new Version(release.tag_name.Substring(1));
if (release.assets != null && release.assets.Count > 0)
{
string endsWith;
if (isPortable)
{
endsWith = "portable.zip";
}
else
{
endsWith = ".exe";
}
foreach (GitHubAsset asset in release.assets)
{
if (asset != null && !string.IsNullOrEmpty(asset.name) && asset.name.EndsWith(endsWith, StringComparison.InvariantCultureIgnoreCase))
{
Filename = asset.name;
if (isBrowserDownloadURL)
{
DownloadURL = asset.browser_download_url;
}
else
{
DownloadURL = asset.url;
}
return true;
}
}
}
}
return false;
}
}
[System.Reflection.ObfuscationAttribute(Feature = "renaming", ApplyToMembers = true)]
[Serializable]
public class GitHubRelease
{
public string url { get; set; }
public string assets_url { get; set; }
public string upload_url { get; set; }
public string html_url { get; set; }
public int id { get; set; }
public string tag_name { get; set; }
public string target_commitish { get; set; }
public string name { get; set; }
public string body { get; set; }
public bool draft { get; set; }
public bool prerelease { get; set; }
public string created_at { get; set; }
public string published_at { get; set; }
public List<GitHubAsset> assets { get; set; }
public string tarball_url { get; set; }
public string zipball_url { get; set; }
}
[System.Reflection.ObfuscationAttribute(Feature = "renaming", ApplyToMembers = true)]
[Serializable]
public class GitHubAsset
{
public string url { get; set; }
public int id { get; set; }
public string name { get; set; }
public string label { get; set; }
public string content_type { get; set; }
public string state { get; set; }
public int size { get; set; }
public int download_count { get; set; }
public string created_at { get; set; }
public string updated_at { get; set; }
public string browser_download_url { get; set; }
}
}
|
Jaex/puush-installer
|
puush-installer/ShareX.HelpersLib/GitHubUpdateChecker.cs
|
C#
|
mit
| 7,044
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace FancyAsyncMagic
{
public class AsyncWriter
{
private readonly Stream _Stream;
public AsyncWriter(Stream stream)
{
_Stream = stream;
}
private Task WriteBytes(byte[] data, CancellationToken token)
{
return _Stream.WriteAsync(data, 0, data.Length, token);
}
private async Task WriteBytesAndType(byte[] data, ElementType type, CancellationToken token, byte[] dataPrefix = null)
{
await WriteBytes(new byte[] { (byte)type }, token);
if (dataPrefix != null)
await WriteBytes(dataPrefix, token);
await WriteBytes(data, token);
}
public Task Write(byte b, CancellationToken token)
{
return WriteBytesAndType(new byte[] { b }, ElementType.Byte, token);
}
public Task Write(Int32 i, CancellationToken token)
{
return WriteBytesAndType(BitConverter.GetBytes(i), ElementType.Int32, token);
}
public Task Write(Int64 i, CancellationToken token)
{
return WriteBytesAndType(BitConverter.GetBytes(i), ElementType.Int64, token);
}
public Task Write(UInt32 i, CancellationToken token)
{
return WriteBytesAndType(BitConverter.GetBytes(i), ElementType.UInt32, token);
}
public Task Write(UInt64 i, CancellationToken token)
{
return WriteBytesAndType(BitConverter.GetBytes(i), ElementType.UInt64, token);
}
public Task Write(byte[] data, CancellationToken token)
{
return WriteBytesAndType(data, ElementType.ByteArray, token, BitConverter.GetBytes(data.Length));
}
public Task Write(string s, CancellationToken token)
{
return WriteBytesAndType(Encoding.UTF8.GetBytes(s), ElementType.String, token, BitConverter.GetBytes(Encoding.UTF8.GetByteCount(s)));
}
}
}
|
main--/FancyAsyncMagic
|
FancyAsyncMagic/AsyncWriter.cs
|
C#
|
mit
| 2,141
|
FROM ruby:3
RUN bundle config --global frozen 1
WORKDIR /app
COPY Gemfile Gemfile.lock /app/
RUN bundle install
COPY eurovisionhue.rb LICENSE README.md /app/
COPY flags /app/flags/
RUN useradd -s /bin/bash -d /app eurovisionhue
RUN chown -Rfv eurovisionhue: /app
USER eurovisionhue
CMD ["bundle", "exec", "ruby", "eurovisionhue.rb"]
|
cnorthwood/eurovisionhue
|
Dockerfile
|
Dockerfile
|
mit
| 339
|
<?php
/*
* This file is part of KoolKode BPMN.
*
* (c) Martin Schröder <m.schroeder2007@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace KoolKode\BPMN\Task\Command;
use KoolKode\BPMN\Engine\AbstractBusinessCommand;
use KoolKode\BPMN\Engine\ProcessEngine;
use KoolKode\BPMN\Task\Event\UserTaskUnclaimedEvent;
use KoolKode\Util\UUID;
/**
* Removes the current assignee from a user task.
*
* @author Martin Schröder
*/
class UnclaimUserTaskCommand extends AbstractBusinessCommand
{
protected $taskId;
public function __construct(UUID $taskId)
{
$this->taskId = $taskId;
}
/**
* {@inheritdoc}
*
* @codeCoverageIgnore
*/
public function isSerializable(): bool
{
return true;
}
/**
* {@inheritdoc}
*/
public function executeCommand(ProcessEngine $engine): void
{
$task = $engine->getTaskService()->createTaskQuery()->taskId($this->taskId)->findOne();
if (!$task->isClaimed()) {
throw new \RuntimeException(\sprintf('User task %s is not claimed', $task->getId()));
}
$sql = "
UPDATE `#__bpmn_user_task`
SET `claimed_at` = :time,
`claimed_by` = :assignee
WHERE `id` = :id
";
$stmt = $engine->prepareQuery($sql);
$stmt->bindValue('time', null);
$stmt->bindValue('assignee', null);
$stmt->bindValue('id', $task->getId());
$stmt->execute();
$task = $engine->getTaskService()->createTaskQuery()->taskId($this->taskId)->findOne();
$engine->notify(new UserTaskUnclaimedEvent($task, $engine));
$engine->debug('User task "{task}" unclaimed', [
'task' => $task->getName()
]);
}
}
|
koolkode/bpmn
|
src/Task/Command/UnclaimUserTaskCommand.php
|
PHP
|
mit
| 1,946
|
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and Contributors
# See license.txt
import frappe
import unittest
# test_records = frappe.get_test_records('OAuth Authorization Code')
class TestOAuthAuthorizationCode(unittest.TestCase):
pass
|
mhbu50/frappe
|
frappe/integrations/doctype/oauth_authorization_code/test_oauth_authorization_code.py
|
Python
|
mit
| 261
|
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from folium.plugins.marker_cluster import MarkerCluster
from folium.utilities import _validate_coordinates
from jinja2 import Template
class FastMarkerCluster(MarkerCluster):
"""
Add marker clusters to a map using in-browser rendering.
Using FastMarkerCluster it is possible to render 000's of
points far quicker than the MarkerCluster class.
Be aware that the FastMarkerCluster class passes an empty
list to the parent class' __init__ method during initialisation.
This means that the add_child method is never called, and
no reference to any marker data are retained. Methods such
as get_bounds() are therefore not available when using it.
Parameters
----------
data: list
List of list of shape [[], []]. Data points should be of
the form [[lat, lng]].
callback: string, default None
A string representation of a valid Javascript function
that will be passed a lat, lon coordinate pair. See the
FasterMarkerCluster for an example of a custom callback.
name : string, default None
The name of the Layer, as it will appear in LayerControls.
overlay : bool, default True
Adds the layer as an optional overlay (True) or the base layer (False).
control : bool, default True
Whether the Layer will be included in LayerControls.
show: bool, default True
Whether the layer will be shown on opening (only for overlays).
options : dict, default None
A dictionary with options for Leaflet.markercluster. See
https://github.com/Leaflet/Leaflet.markercluster for options.
"""
_template = Template(u"""
{% macro script(this, kwargs) %}
var {{ this.get_name() }} = (function(){
{{this._callback}}
var data = {{ this._data }};
var cluster = L.markerClusterGroup({{ this.options }});
for (var i = 0; i < data.length; i++) {
var row = data[i];
var marker = callback(row);
marker.addTo(cluster);
}
cluster.addTo({{ this._parent.get_name() }});
return cluster;
})();
{% endmacro %}""")
def __init__(self, data, callback=None, options=None,
name=None, overlay=True, control=True, show=True):
super(FastMarkerCluster, self).__init__(name=name, overlay=overlay,
control=control, show=show,
options=options)
self._name = 'FastMarkerCluster'
self._data = _validate_coordinates(data)
if callback is None:
self._callback = """
var callback = function (row) {
var icon = L.AwesomeMarkers.icon();
var marker = L.marker(new L.LatLng(row[0], row[1]));
marker.setIcon(icon);
return marker;
};"""
else:
self._callback = 'var callback = {};'.format(callback)
|
QuLogic/folium
|
folium/plugins/fast_marker_cluster.py
|
Python
|
mit
| 3,213
|
<span class="logout-link"><a>Logout</a></span>
|
andrewsomahony/valiant
|
app/client/views/partials/admin/footer.html
|
HTML
|
mit
| 46
|
namespace OggVorbisEncoder.Setup.Templates.FloorBooks
{
public class Line256X7_0Sub3 : IStaticCodeBook
{
public int Dimensions { get; } = 1;
public byte[] LengthList { get; } = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 2, 5, 3, 5, 3,
6, 3, 6, 4, 7, 6, 7, 8, 7, 9, 8, 9, 9, 9, 10, 9,
11, 13, 11, 13, 10, 10, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12
};
public CodeBookMapType MapType { get; } = CodeBookMapType.None;
public int QuantMin { get; } = 0;
public int QuantDelta { get; } = 0;
public int Quant { get; } = 0;
public int QuantSequenceP { get; } = 0;
public int[] QuantList { get; } = null;
}
}
|
vr-the-feedback/vr-the-feedback-unity
|
Assets/VRTheFeedback/Scripts/OggVorbisEncoder/Setup/Templates/FloorBooks/Line256X7_0Sub3.cs
|
C#
|
mit
| 775
|
#include "SumUnique.cc"
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <sys/time.h>
#include <vector>
const static double __EPSILON = 1e-9;
static double __time = 0.0;
static void __timer_start()
{
struct timeval tv;
if (gettimeofday(&tv, NULL) == 0)
{
__time = double(tv.tv_sec) * 1000.0 + double(tv.tv_usec) * 0.001;
}
}
static double __timer_stop()
{
double start = __time;
__timer_start();
return __time - start;
}
static void __eat_whitespace(std::istream& in)
{
while (in.good() && std::isspace(in.peek())) in.get();
}
std::ostream& operator << (std::ostream& out, const std::string& str)
{
out << '"' << str.c_str() << '"';
return out;
}
template <class T>
std::ostream& operator << (std::ostream& out, const std::vector<T>& vec)
{
out << '{';
if (0 < vec.size())
{
out << vec[0];
for (size_t i = 1; i < vec.size(); ++i) out << ", " << vec[i];
}
out << '}';
return out;
}
std::istream& operator >> (std::istream& in, std::string& str)
{
__eat_whitespace(in);
int c;
if (in.good() && (c = in.get()) == '"')
{
std::ostringstream s;
while (in.good() && (c = in.get()) != '"')
{
s.put(char(c));
}
str = s.str();
}
return in;
}
template <class T>
std::istream& operator >> (std::istream& in, std::vector<T>& vec)
{
__eat_whitespace(in);
int c;
if (in.good() && (c = in.get()) == '{')
{
__eat_whitespace(in);
vec.clear();
while (in.good() && (c = in.get()) != '}')
{
if (c != ',') in.putback(c);
T t;
in >> t;
__eat_whitespace(in);
vec.push_back(t);
}
}
return in;
}
template <class T>
bool __equals(const T& actual, const T& expected)
{
return actual == expected;
}
bool __equals(double actual, double expected)
{
if (std::abs(actual - expected) < __EPSILON)
{
return true;
}
else
{
double minimum = std::min(expected * (1.0 - __EPSILON), expected * (1.0 + __EPSILON));
double maximum = std::max(expected * (1.0 - __EPSILON), expected * (1.0 + __EPSILON));
return actual > minimum && actual < maximum;
}
}
bool __equals(const std::vector<double>& actual, const std::vector<double>& expected)
{
if (actual.size() != expected.size())
{
return false;
}
for (size_t i = 0; i < actual.size(); ++i)
{
if (!__equals(actual[i], expected[i]))
{
return false;
}
}
return true;
}
int main(int argc, char* argv[])
{
bool __abort_on_fail = false;
int __pass = 0;
int __fail = 0;
if (1 < argc) __abort_on_fail = true;
std::cout << "TAP version 13" << std::endl;
std::cout.flush();
std::ifstream __in("testcases.txt");
for(;;)
{
int __testnum = __pass + __fail + 1;
int __expected;
vector <int> values;
__in >> __expected >> values;
if (!__in.good()) break;
std::cout << "# input for test " << __testnum << ": " << values << std::endl;
std::cout.flush();
__timer_start();
SumUnique __object;
int __actual = __object.getSum(values);
double __t = __timer_stop();
std::cout << "# test completed in " << __t << "ms" << std::endl;
std::cout.flush();
if (__equals(__actual, __expected))
{
std::cout << "ok";
++__pass;
}
else
{
std::cout << "not ok";
++__fail;
}
std::cout << " " << __testnum << " - " << __actual << " must equal " << __expected << std::endl;
std::cout.flush();
if (__abort_on_fail && 0 < __fail) std::abort();
}
std::cout << "1.." << (__pass + __fail) << std::endl
<< "# passed: " << __pass << std::endl
<< "# failed: " << __fail << std::endl;
if (__fail == 0)
{
std::cout << std::endl
<< "# Nice! Don't forget to compile remotely before submitting." << std::endl;
}
return __fail;
}
// vim:ft=cpp:noet:ts=8
|
mathemage/CompetitiveProgramming
|
topcoder/SRM/Rookie-SRM-7-DIV-1/500/driver.cc
|
C++
|
mit
| 3,736
|
/* jshint node: true */
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: [
'*.js',
'spec/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
jasmine: {
src: 'method-proxy.js',
options: {
specs: 'spec/**/*.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.registerTask('test', ['jshint', 'jasmine']);
grunt.registerTask('default', ['test']);
};
|
causes/method-proxy-js
|
Gruntfile.js
|
JavaScript
|
mit
| 584
|
var gulp = require('gulp'),
sass = require('gulp-sass'),
scsslint = require('gulp-scss-lint');
gulp.task('sass', function () {
gulp.src('./_sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./css'));
});
gulp.task('scsslint', function () {
gulp.src('./_sass/**/*.scss')
.pipe(scsslint())
});
gulp.task('sass:watch', function () {
gulp.watch('./_sass/**/*.scss', ['sass']);
});
gulp.task('sass:watch:lint', function () {
gulp.watch(['./_sass/**/*.scss', './_sass/**/_*.scss'], ['sass','scsslint']);
});
|
rogeralbinoi/html5-boilerplate-sass-lint
|
Gulpfile.js
|
JavaScript
|
mit
| 557
|
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Chadicus\Marvel\Api\Client;
use Chadicus\Marvel\Api\Entities\ImageVariant;
use DominionEnterprises\Util\Arrays;
$nameStartsWith = Arrays::get($_POST, 'nameStartsWith');
?>
<html>
<head>
<style>
label { display: inline-block; width: 140px; text-align: right; }
img { max-width:800px; }
</style>
</head>
<body>
<form method="POST" action="/">
<fieldset>
<legend>Search Characters</legend>
<br />
<label for="nameStartsWith">Name</label>
<input type="text" name="nameStartsWith" size="32" value="<?=$nameStartsWith?>" />
<br />
<input type="Submit" value="Search" />
</fieldset>
</form>
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST'): ?>
<?php
$client = new Client(getenv('PRIVATE_KEY'), getenv('PUBLIC_KEY'));
$dataWrapper = $client->search('characters', ['nameStartsWith' => $nameStartsWith]);
$count = 0;
?>
<h3><?=$dataWrapper->getData()->getTotal()?> characters found</h3>
<table border="1">
<tbody>
<tr>
<?php foreach ($dataWrapper->getData()->getResults() as $character): ?>
<?php if ($count++ % 5 === 0): ?>
</tr><tr>
<?php endif; ?>
<td>
<p><?=$character->getName()?></p>
<a href="<?=$character->getUrls()[0]->getUrl()?>">
<img src="<?=$character->getThumbnail()->getUrl(ImageVariant::PORTRAIT_XLARGE())?>" />
</a>
</td>
<?php endforeach; ?>
</tr>
</tbody>
</table>
<center><?=$dataWrapper->getAttributionHTML()?></center>
<?php endif; ?>
</body>
</html>
|
chadicus/marvel-api-client
|
examples/gallery/index.php
|
PHP
|
mit
| 2,104
|
<?php
/*******************************************************************
* Glype is copyright and trademark 2007-2015 UpsideOut, Inc. d/b/a Glype
* and/or its licensors, successors and assigners. All rights reserved.
*
* Use of Glype is subject to the terms of the Software License Agreement.
* http://www.glype.com/license.php
*******************************************************************
* This is the parser for the proxy - changes the original 'raw'
* document so that everything (images, links, etc.) is rerouted to
* be downloaded via the proxy script instead of directly.
******************************************************************/
class parser {
# State of javascript parser - null for parse everything, false
# for parse all non-standard overrides, or (array) with specifics
private $jsFlagState;
# Browsing options (Remove Scripts, etc.)
private $htmlOptions;
# Constructor accepts options and saves them in the object
function __construct($htmlOptions, $jsFlags) {
$this->jsFlagState = $jsFlags;
$this->htmlOptions = $htmlOptions;
}
/*****************************************************************
* HTML parsers - main parsing function splits up document into
* component parts ('normal' HTML, scripts and styles)
******************************************************************/
function HTMLDocument($input, $insert='', $inject=false, $footer='') {
if (strlen($input)>65536) {
if (version_compare(PHP_VERSION, '5.3.7')<=0) {
ini_set('pcre.backtrack_limit', 1000000);
}
}
#
# Apply parsing that only needs to be done once..
#
# Record the charset
global $charset;
if (!isset($charset)) {
$meta_equiv = preg_match('#(<meta[^>]*http\-equiv\s*=[^>]*>)#is', $input, $tmp, PREG_OFFSET_CAPTURE) ? $tmp[0][0] : null;
if (isset($meta_equiv)) {
$charset = preg_match('#charset\s*=\s*["\']+([^"\'\s>]*)#is', $meta_equiv, $tmp, PREG_OFFSET_CAPTURE) ? $tmp[1][0] : null;
}
}
if (!isset($charset)) {
$meta_charset = preg_match('#<meta[^>]*charset\s*=\s*["\']+([^"\'\s>]*)#is', $input, $tmp, PREG_OFFSET_CAPTURE) ? $tmp[1][0] : null;
if (isset($meta_charset)) {
$charset = $meta_charset;
}
}
# Remove empty script comments
$input = preg_replace('#/\*\s*\*/#s', '', $input);
# Remove conditional comments
$input = preg_replace('#<\!\-\-\[if \!IE\]>\s*\-\->(.*?)<\!\[endif\]\-\->#s','$1',$input);
$input = preg_replace('#<\!\-\-\[if.*?<\!\[endif\]\-\->#s','',$input);
# Prevent websites from calling disableOverride()
$input = preg_replace('#disableOverride#s', 'disabled___disableOverride', $input);
# Remove titles if option is enabled
if ( $this->htmlOptions['stripTitle'] || $this->htmlOptions['encodePage'] ) {
$input = preg_replace('#<title.*?</title>#is', '', $input, 1);
$input = preg_replace('#<meta[^>]*name=["\'](title|description|keywords)["\'][^>]*>#is', '', $input, 3);
$input = preg_replace('#<link[^>]*rel=["\'](icon|shortcut icon)["\'][^>]*>#is', '', $input, 2);
}
# Remove and record a <base> href
$input = preg_replace_callback('#<base href\s*=\s*([\\\'"])?((?(1)(?(?<=")[^"]{1,2048}|[^\\\']{1,2048})|[^\s"\\\'>]{1,2048}))(?(1)\\1|)[^>]*>#i', 'html_stripBase', $input, 1);
# Proxy url= values in meta redirects
$input = preg_replace_callback('#content\s*=\s*(["\\\'])?[0-9]+\s*;\s*url=([\\\'"]|&\#39;)?((?(?<=")[^"]+|(?(?<=\\\')[^\\\']+|[^\\\'" >]+)))(?(2)\\2|)(?(1)\\1|)#i', 'html_metaRefresh', $input, 1);
# Process forms
$input = preg_replace_callback('#<form([^>]*)>(.*?)</form>#is', 'html_form', $input);
# Remove scripts blocks (avoids individual processing below)
if ( $this->htmlOptions['stripJS'] ) {
$input = preg_replace('#<script[^>]*>.*?</script>#is', '', $input);
}
#
# Split up the document into its different types and parse them
#
# Build up new document into this var
$new = '';
$offset = 0;
# Find instances of script or style blocks
while ( preg_match('#<(s(?:cript|tyle))[^>]*>#i', $input, $match, PREG_OFFSET_CAPTURE, $offset) ) {
# What type of block is this?
$block = strtolower($match[1][0]);
# Start position of content
$outerStart = $match[0][1];
$innerStart = $outerStart + strlen($match[0][0]);
# Determine type of end tag and find it's position
$endTag = "</$block>";
$innerEnd = stripos($input, $endTag, $innerStart);
if ($innerEnd===false) {
$endTag = "</";
$innerEnd = stripos($input, $endTag, $innerStart);
if ($innerEnd===false) {
$input = preg_replace('#<script[^>]*>.*?$#is', '', $input);
break;
}
}
$outerEnd = $innerEnd + strlen($endTag);
# Parse everything up till here and add to the new document
$new .= $this->HTML(substr($input, $offset, $innerStart - $offset));
# Find parsing function
$parseFunction = $block == 'style' ? 'CSS' : 'JS' ;
# Add the parsed block
$new .= $this->$parseFunction(substr($input, $innerStart, $innerEnd - $innerStart));
# Move offset to new position
$offset = $innerEnd;
}
# And add the final chunk (between last script/style block and end of doc)
$new .= $this->HTML(substr($input, $offset));
# Replace input with the updated document
$input = $new;
global $foundPlugin;
if ( $foundPlugin && function_exists('postParse') ) {
$input = postParse($input, 'html');
$foundPlugin=false;
}
# Make URLs relative
$input = preg_replace('#=\s*(["\'])?\s*https?://[^"\'>/]*/#i', '=$1/', $input);
# Encode the page
if ( $this->htmlOptions['encodePage'] ) {
$input = encodePage($input);
}
#
# Now add our own code bits
#
# Insert our mini form after the <body>
if ( $insert !== false ) {
# Check for a frameset
if ( ( $useFrames = stripos($input, '<frameset') ) !== false ) {
# Flag the frames so only first displays mini-form
$input = preg_replace_callback('#<frame[^>]+src\s*=\s*([\\\'"])?((?(1)(?(?<=")[^"]{1,2048}|[^\\\']{1,2048})|[^\s"\\\'>]{1,2048}))(?(1)\\1|)#i', 'html_flagFrames', $input);
}
# Attempt to add after body
$input = preg_replace('#(<body[^>]*>)#i', '$1' . $insert, $input, 1, $tmp);
# Check it inserted and append (if not a frameset)
if ( ! $tmp && ! $useFrames ) {
$input = $insert . $input;
}
}
# Insert our javascript library
if ( $inject ) {
# Generate javascript to insert
$inject = injectionJS();
# Add our proxy javascript after <head>
$input = preg_replace('#(<head[^>]*>)#i', '$1' . $inject, $input, 1, $tmp);
# If no <head>, just prepend
if ( ! $tmp ) {
$input = $inject . $input;
}
}
# Add anything to the footer?
if ( $footer ) {
$input = preg_replace('#(</body[^>]*>)#i', $footer . '$1', $input, 1, $tmp);
# If no </body>, just append the footer
if ( ! $tmp ){
$input .= $footer;
}
}
# Return new document
return $input;
}
# Parse HTML sections
function HTML($input) {
# Removing objects? Follow spec and display inner content of object tags instead.
if ( $this->htmlOptions['stripObjects'] ) {
# Remove all object tags (including those deprecated but still common)
$input = preg_replace('#<(?>object|applet|param|embed)[^>]*>#i', '', $input, -1, $tmp);
# Found any? Remove the corresponding end tags
if ( $tmp ) {
$input = preg_replace('#</(?>object|applet|param|embed)>#i', '', $input, $tmp);
}
} else {
# Parse <param name="movie" value="URL"> tags
$input = preg_replace_callback('#<param[^>]+value\s*=\s*([\\\'"])?((?(1)(?(?<=")[^"]{1,2048}|[^\\\']{1,2048})|[^\s"\\\'>]{1,2048}))(?(1)\\1|)[^>]*>#i', 'html_paramValue', $input);
# To do: proxy object related URLs
}
# Show content within <noscript> tags
# (preg_ seems to be faster than 2 str_ireplace() calls)
if ( $this->htmlOptions['stripJS'] ) {
$input = preg_replace('#</?noscript>#i', '', $input);
}
# remove srcset attribute for now
$input = preg_replace('#srcset\s*=\s*[\\\'"][^"]*[\\\'"]#i', '', $input);
# Parse onX events
$input = preg_replace_callback('#\b(on(?<!\.on)[a-z]{2,20})\s*=\s*([\\\'"])?((?(2)(?(?<=")[^"]{1,2048}|[^\\\']{1,2048})|[^\s"\\\'>]{1,2048}))(?(2)\\2|)#i', array(&$this, 'html_eventJS'), $input);
# Parse style attributes
$input = preg_replace_callback('#style\s*=\s*([\\\'"])?((?(1)(?(?<=")[^"]{1,2048}|[^\\\']{1,2048})|[^\s"\\\'>]{1,2048}))(?(1)\\1|)#i', array(&$this, 'html_elementCSS'), $input);
# Proxy URL attributes - this is the bottleneck but optimized as much as possible
$input = preg_replace_callback('#(?><[A-Z0-9]{1,15})(?>\s+[^>\s]+)*?\s*(?>(href|src|background|poster)\s*=(?!\\\\)\s*)(?>([\\\'"])?)((?(2)(?(?<=")[^"]{1,2048}|[^\\\']{1,2048})|[^ >]{1,2048}))(?(2)\\2|)#i', 'html_attribute', $input);
# Return changed input
return $input;
}
# Proxy an onX javascript event
function html_eventJS($input) {
return $this->htmlOptions['stripJS'] ? '' : $input[1] . '=' . $input[2] . $this->JS($input[3]) . $input[2];
}
# Proxy a style="CSS" attribute
function html_elementCSS($input) {
return 'style=' . $input[1] . $this->CSS($input[2]) . $input[1];
}
/*****************************************************************
* CSS parser - main parsing function
* CSS parsing is a complicated by the caching of CSS files. We need
* to consider (A) cross-domain caching and (B) the unique URLs option.
* A) If possible, use a relative URL so the saved URLs do not explictly
* point to a single domain.
* B) There is a second set of callback functions with "_unique" suffixed
* and these return the original URL to be reparesed.
******************************************************************/
# The URLs depend on the unique and path info settings. The type parameter allows
# us to specify the unique callbacks.
function CSS($input, $storeUnique=false) {
# What type of parsing is this? Normally we parse any URLs to redirect
# back through the proxy but not when storing a cache with unique URLs.
$type = $storeUnique ? '_unique' : '';
# CSS needs proxying the calls to url(), @import and src=''
$input = preg_replace_callback('#\burl\s*\(\s*[\\\'"]?([^\\\'"\)]+)[\\\'"]?\s*\)#i', 'css_URL' . $type, $input);
$input = preg_replace_callback('#@import\s*[\\\'"]([^\\\'"\(\)]+)[\\\'"]#i', 'css_import' . $type, $input);
$input = preg_replace_callback('#\bsrc\s*=\s*([\\\'"])?([^)\\\'"]+)(?(1)\\1|)#i', 'css_src' . $type, $input);
# Make URLs relative
$input = preg_replace('#https?://[^"\'>/]*/#i', '/', $input);
# Return changed
return $input;
}
/*****************************************************************
* Javascript parser - main parsing function
*
* The specific parts that need proxying depends on which javascript
* functions we've been able to override. On first page load, the browser
* capabilities are tested to see what we can do client-side and the results
* sent back to us. This allows us to parse only what we have to.
* If $CONFIG['override_javascript'] is disabled, all commands are parsed
* server-side. This will use much more CPU!
*
* Commands to proxy only if no override at all:
* document.write()
* document.writeln()
* window.open()
* eval()
*
* Commands to proxy, regardless of browser capabilities:
* location.replace()
* .innerHTML=
*
* Commands to proxy if the extra "watch" flag is set
* (the browser doesn't support the .watch() method):
* location=
* x.location=
* location.href=
*
* Commands to proxy if the extra "setters" flag is set
* (the browser doesn't support the __defineSetter__() method):
* .src=
* .href=
* .background=
* .action=
*
* Commands to proxy if the extra "ajax" flag is set
* (the browser failed to override the .open() method):
* XMLHttpRequest.open()
******************************************************************/
function JS($input) {
# Stripping?
if ( $this->htmlOptions['stripJS'] ) {
return '';
}
# Get our flags
$flags = $this->jsFlagState;
# Unless we know we don't need to, apply all the browser-specific flags
if ( ! is_array($this->jsFlagState) ) {
$flags = array('ajax', 'watch', 'setters');
}
# If override is disabled, add a "base" flag
if ( $this->jsFlagState === null ) {
$flags[] = 'base';
}
# Start parsing!
$search = array();
# Create shortcuts to various search patterns:
# "before" - matches preceeding character (string of single char) [ignoring whitespace]
# "after" - matches next character (string of single char) [ignoring whitespace]
# "id" - key for identifying the original match (e.g. if we have >1 of the same key)
$assignmentPattern = array('before' => '.', 'after' => '=');
$methodPattern = array('before' => '.', 'after' => '(');
$functionPattern = array('after' => '(');
# Configure strings to search for, starting with always replaced commands
$search['innerHTML'][] = $assignmentPattern;
$search['location'][] = array('after' => '.', 'id' => 'replace()');
# ^ This is only for location.replace() - other forms are handled later
# Look for attribute assignments
if ( in_array('setters', $flags) ) {
$search['src'][] = $assignmentPattern;
$search['href'][] = $assignmentPattern;
$search['action'][] = $assignmentPattern;
$search['background'][] = $assignmentPattern;
$search['poster'][] = $assignmentPattern;
}
# Look for location changes
# location.href will be handled above, location= is handled here
if ( in_array('watch', $flags) ) {
$search['location'][] = array('after' => '=', 'id' => 'assignment');
}
# Look for .open() if either AJAX (XMLHttpRequest.open) or
# base (window.open) flags are present
if ( in_array('ajax', $flags) || in_array('base', $flags) ) {
$search['open'][] = $methodPattern;
}
# Add the basic code if no override
if ( in_array('base', $flags) ) {
$search['eval'][] = $functionPattern;
$search['writeln'][] = $methodPattern;
$search['write'][] = $methodPattern;
}
# Set up starting parameters
$offset = 0;
$length = strlen($input);
$searchStrings = array_keys($search);
while ( $offset < $length ) {
# Start off by assuming no more items (i.e. the next position
# of interest is the end of the document)
$commandPos = $length;
# Loop through the search subjects
foreach ( $searchStrings as $item ) {
# Any more instances of this?
if ( ( $tmp = strpos($input, $item, $offset) ) === false ) {
# Nope, skip to next item
continue;
}
# If $item is whole word?
if ( ( $input[$tmp-1] == '_' ) || ctype_alpha($input[$tmp-1]) ) {
# No
continue;
}
# Closer to the currently held 'next' position?
if ( $tmp < $commandPos ) {
$commandPos = $tmp;
$command = $item;
}
}
# No matches found? Finish parsing.
if ( $commandPos == $length ) {
break;
}
# We've found the main point of interest; now use the
# search parameters to check the surrounding chars to validate
# the match.
$valid = false;
foreach ( $search[$command] as $pattern ) {
# Check the preceeding chars
if ( isset($pattern['before']) && str_checkprev($input, $pattern['before'], $commandPos-1) === false ) {
continue;
}
# Check next chars
if ( isset($pattern['after']) && ( $charPos = str_checknext($input, $pattern['after'], $commandPos + strlen($command), false, false) ) === false ) {
continue;
}
$postCharPos = ($charPos + 1) + strspn($input, " \t\r\n", $charPos + 1);
# Still here? Match must be OK so generate a match ID
if ( isset($pattern['id']) ) {
$valid = $command . $pattern['id'];
} else {
$valid = $command;
}
break;
}
# What we do next depends on which match (if any) we've found...
switch ( $valid ) {
# Assigment
case 'src':
case 'href':
case 'background':
case 'poster':
case 'action':
case 'locationassignment':
case 'innerHTML':
# Check our post-char position for = as well (could be equality
# test rather than assignment, i.e. == )
if ( ! isset($input[$postCharPos]) || $input[$postCharPos] == '=' ) {
break;
}
# Find the end of this statement
$endPos = analyzeAssign_js($input, $charPos);
$valueLength = $endPos - $postCharPos;
# Produce replacement command
$replacement = sprintf('parse%s(%s)', $command=='innerHTML' ? 'HTML' : 'URL', substr($input, $postCharPos, $valueLength));
# Adjust total document length as appropriate
$length += strlen($replacement);
# Make the replacement
$input = substr_replace($input, $replacement, $postCharPos, $valueLength);
# Move offset up to new position
$offset = $endPos + 10;
# Go get next match
continue 2;
# Function calls - we don't know for certain if these are in fact members of the
# appropriate objects (window/XMLHttpRequest for .open(), document for .write() and
# .writeln) so we won't change anything. Main.js still overrides these functions but
# does nothing with them by default. We add an extra parameter to tell our override
# to kick in.
case 'open':
case 'write':
case 'writeln':
# Find the end position (the closing ")" for the function call)
$endPos = analyze_js($input, $charPos);
# Insert our additional argument just before that
$glStr=',"gl"';
if (strspn($input, ";\n\r\+{}()[]", $charPos) >= ($endPos - $charPos)) {
$glStr='"gl"';
}
$input = substr_replace($input, $glStr, $endPos - 1, 0);
# Adjust the document length
$length += strlen($glStr);
# And move the offset
$offset = $endPos + strlen($glStr);
# Get next match
continue 2;
# Eval() is a just as easy since we can just wrap the entire thing in parseJS().
case 'eval':
# Ensure this is a call to eval(), not anotherfunctionendingineval()
if ( isset($input[$commandPos-1]) && strpos('abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_', $input[$commandPos-1]) !== false ) {
break;
}
# Find the end position (the closing ")" for the function call)
$endPos = analyze_js($input, $charPos);
$valueLength = $endPos - $postCharPos;
# Generate our replacement
$replacement = sprintf('parseJS(%s)', substr($input, $postCharPos, $valueLength));
# Make the replacement
$input = substr_replace($input, $replacement, $postCharPos, $valueLength);
# Adjust the document length
$length += 9;
# And move the offset
$offset = $endPos + 9;
continue 2;
# location.replace() is a tricky one. We have the position of the char
# after . as $postCharPos and need to ensure we're calling replace(),
# then parse the entire URL
case 'locationreplace()':
# Validate the match
if ( ! preg_match('#\Greplace\s*\(#', $input, $tmp, 0, $postCharPos) ) {
break;
}
# Move $postCharPos to inside the brackets of .replace()
$postCharPos += strlen($tmp[0]);
# Find the end position (the closing ")" for the function call)
$endPos = analyze_js($input, $postCharPos);
$valueLength = $endPos - $postCharPos;
# Generate our replacement
$replacement = sprintf('parseURL(%s)', substr($input, $postCharPos, $valueLength));
# Make the replacement
$input = substr_replace($input, $replacement, $postCharPos, $valueLength);
# Adjust the document length
$length += 9;
# And move the offset
$offset = $endPos + 9;
continue 2;
}
# Still here? A match didn't validate so adjust offset to just after
# current position
$offset = $commandPos + 1;
}
# Ignore document.domain
$input = str_replace('document.domain', 'ignore', $input);
# Return changed
return $input;
}
}
/*****************************************************************
* HTML callbacks
******************************************************************/
# Remove and record the <base> href
function html_stripBase($input) {
global $base;
$base = $input[2];
return '';
}
# Proxy the location of a meta refresh
function html_metaRefresh($input) {
return str_replace($input[3], proxyURL($input[3]), $input[0]);
}
# Proxy URL in <param name="movie" value="URL">
function html_paramValue($input) {
# Check for a name="movie" tag
if ( stripos($input[0], 'movie') === false ) {
return $input[0];
}
return str_replace($input[2], proxyURL($input[2]), $input[0]);
}
# Process forms - the query string is used by the proxy script
# and GET data needs to be encoded anyway. We convert all GET
# forms to POST and then the proxy script will forward it properly.
function html_form($input) {
# Check for a given method
if ( preg_match('#\bmethod\s*=\s*["\\\']?(get|post)["\\\']?#i', $input[1], $tmp) ) {
# Not POST?
if ( strtolower($tmp[1]) != 'post' ) {
# Convert to post and flag as a conversion
$input[1] = str_replace($tmp[0], 'method="post"', $input[1]);
$converted = true;
}
} else {
# Append a POST method (no method given and GET is default)
$input[1] .= ' method="post"';
$converted = true;
}
# Prepare the extra input to insert
$add = empty($converted) ? '' : '<input type="hidden" name="convertGET" value="1">';
# To do: javascript onsubmit event to immediately redirect to the appropriate
# location using GET data, without an intermediate POST to the proxy script.
# Proxy the form action
$input[1] = preg_replace_callback('#\baction\s*=\s*([\\\'"])?((?(1)(?(?<=")[^"]{1,2048}|[^\\\']{1,2048})|[^\s"\\\'>]{1,2048}))(?(1)\\1|)#i', 'html_formAction', $input[1]);
# What type of form is this? Due to register_globals support, PHP converts
# a number of characters to _ in incoming variable names. To get around this,
# we can use the raw post data from php://input but this is not available
# for multipart forms. Instead we must encode the input names in these forms.
if ( stripos($input[1], 'multipart/form-data') ) {
$input[2] = preg_replace_callback('#name\s*=\s*([\\\'"])?((?(1)(?(?<=")[^"]{1,2048}|[^\\\']{1,2048})|[^\s"\\\'>]{1,2048}))(?(1)\\1|)#i', 'html_inputName', $input[2]);
}
# Return updated form
return '<form' . $input[1] . '>' . $add . $input[2] . '</form>';
}
# Proxy the action="URL" value in forms
function html_formAction($input) {
return 'action=' . $input[1] . proxyURL($input[2]) . $input[1];
}
# Encode input names
function html_inputName($input) {
return 'name=' . $input[1] . inputEncode($input[2]) . $input[1];
}
# Proxy URL values in attributes
function html_attribute($input) {
# Is this an iframe?
$flag = stripos($input[0], 'iframe') === 1 ? 'frame' : '';
# URL occurred as value of an attribute and should have been htmlspecialchar()ed
# We need to do the job of the browser and decode before proxying.
return str_replace($input[3], htmlspecialchars(proxyURL(htmlspecialchars_decode($input[3]), $flag)), $input[0]);
}
# Flag frames in a frameset so only the first one shows the mini-form.
# This could be done in the above callback but adds extra processing
# when 99% of the time, it won't be needed.
function html_flagFrames($input) {
static $addFlag;
# If it's the first frame, leave it but set the flag var
if ( ! isset($addFlag) ) {
$addFlag = true;
return $input[0];
}
# Add the frame flag
$newURL = $input[2] . ( strpos($input[2], '?') ? '&f=frame' : 'fframe/');
return str_replace($input[2], $newURL, $input[0]);
}
/*****************************************************************
* CSS callbacks
******************************************************************/
# Proxy CSS url(LOCATION)
function css_URL($input) {
return 'url(' . proxyURL(trim($input[1])) . ')';
}
# Proxy CSS @import "URL"
function css_import($input) {
return '@import "' . proxyURL($input[1]) . '"';
}
# Proxy CSS src=
function css_src($input) {
return 'src=' . $input[1] . proxyURL($input[2]) . $input[1];
}
# Callbacks for use with unique URLs and cached CSS
# The <UNIQUE[]URL> acts as a marker for quick and easy processing later
# Unique CSS url(LOCATION)
function css_URL_unique($input) {
return 'url(<UNIQUE[' . absoluteURL($input[1],'') . ']URL>)';
}
# Unique CSS @import "URL"
function css_import_unique($input) {
return '@import "<UNIQUE[' . absoluteURL($input[1]) . ']URL>"';
}
# Unique CSS src=
function css_src_unique($input) {
return 'src=' . $input[1] . '<UNIQUE[' . absoluteURL($input[2]) . ']URL>' . $input[1];
}
/*****************************************************************
* Helper functions
******************************************************************/
# Take a string, and check that the next non-whitespace char is the
# passed in char (X). Return false if non-whitespace and non-X char is
# found. Otherwise, return the position of X.
# If $inverse is true, the next non-whitespace char must NOT be in $char
# If $pastChar is true, ignore whitespace after finding X and return
# the position of the last post-X whitespace char.
function str_checknext($input, $char, $offset, $inverse = false, $pastChar = false) {
for ( $i = $offset, $length = strlen($input); $i < $length; ++$i ) {
# Examine char
switch ( $input[$i] ) {
# Ignore whitespace
case ' ':
case "\t":
case "\r":
case "\n":
break;
# Found the passed char
case $char:
# $inverse means we do NOT want this char
if ( $inverse ) {
return false;
}
# Move past this to the next non-whitespace?
if ( $pastChar ) {
++$i;
return $i + strspn($input, " \t\r\n", $i);
}
# Found desired char, no $pastChar, just return X offset
return $i;
# Found non-$char non-whitespace
default:
# This is the desired result if $inverse
if ( $inverse ) {
return $i;
}
# No $inverse, found a non-$char, return false
return false;
}
}
return false;
}
# Same as above but go backwards
function str_checkprev($input, $char, $offset, $inverse = false) {
for ( $i = $offset; $i > 0; --$i ) {
# Examine char
switch ( $input[$i] ) {
# Ignore whitespace
case ' ':
case "\t":
case "\r":
case "\n":
break;
# Found char
case $char:
return $inverse ? false : $i;
# Found non-$char char
default:
return $inverse ? $i : false;
}
}
return $inverse;
}
# Analyze javascript and return offset positions.
# Default is to find the end of the statement, indicated by:
# (1) ; while not in string
# (2) newline which, if not there, would create invalid syntax
# (3) a closing bracket (object, language construct or function call) for which
# no corresponding opening bracket was detected AFTER the passed offset
# If (int) $argPos is true, we return an array of the start and end position
# for the nth argument, where n = $argPos. The $start position must be just inside
# the parenthesis of the function call we're interested in.
function analyze_js($input, $start, $argPos = false) {
# Add , if looking for an argument position
if ( $argPos ) {
$currentArg = 1;
}
# Loop through the input, stopping only at special chars
for ( $i = $start, $length = strlen($input), $end = false, $openObjects = $openBrackets = $openArrays = 0;
$end === false && $i < $length;
++$i ) {
$char = $input[$i];
switch ( $char ) {
# Starting string delimiters
case '"':
case "'":
if ( $input[$i-1] == '\\' ) {
break;
}
# Skip straight to end of string
# Find the corresponding end delimiter and ensure it's not escaped
while ( ( $i = strpos($input, $char, $i+1) ) && $input[$i-1] == '\\' );
# Check for false, in which case we assume the end is the end of the doc
if ( $i === false ) {
break 2;
}
break;
# End of operation?
case ';':
$end = $i;
break;
# New lines
case "\n":
case "\r":
# Newlines are OK if occuring within an open brackets, arrays or objects.
if ( $openObjects || $openBrackets || $openArrays || $argPos ) {
break;
}
# Newlines are also OK if followed by an opening function OR concatenation
# e.g. someFunc\n(params) or someVar \n + anotherVar
# Find next non-whitespace char position
$tmp = $i + strspn($input, " \t\r\n", $i+1);
# And compare to allowed chars
if ( isset($input[$tmp+1]) && ( $input[$tmp+1] == '(' || $input[$tmp+1] == '+' ) ) {
$i = $tmp;
break;
}
# Newline not indicated as OK, set the end to here
$end = $i;
break;
# Concatenation
case '+':
# Our interest in the + operator is it's use in allowing an expression
# to span multiple lines. If we come across a +, move past all whitespace,
# including newlines (which would otherwise indicate end of expression).
$i += strspn($input, " \t\r\n", $i+1);
break;
# Opening chars (objects, parenthesis and arrays)
case '{':
++$openObjects;
break;
case '(':
++$openBrackets;
break;
case '[':
++$openArrays;
break;
# Closing chars - is there a corresponding open char?
# Yes = reduce stored count. No = end of statement.
case '}':
$openObjects ? --$openObjects : $end = $i;
break;
case ')':
$openBrackets ? --$openBrackets : $end = $i;
break;
case ']':
$openArrays ? --$openArrays : $end = $i;
break;
# Commas - tell us which argument it is
case ',':
# Ignore commas inside other functions or whatnot
if ( $openObjects || $openBrackets || $openArrays ) {
break;
}
# End now
if ( $currentArg == $argPos ) {
$end = $i;
}
# Increase the current argument number
++$currentArg;
# If we're not after the first arg, start now?
if ( $currentArg == $argPos ) {
$start = $i+1;
}
break;
}
}
# End not found? Use end of document
if ( $end === false ) {
$end = $length;
}
# Return array of start/end
if ( $argPos ) {
return array($start, $end);
}
# Return end
return $end;
}
function analyzeAssign_js($input, $start) {
# Loop through the input, stopping only at special chars
for ( $i = $start, $length = strlen($input), $end = false, $openObjects = $openBrackets = $openArrays = 0;
$end === false && $i < $length;
++$i ) {
$char = $input[$i];
switch ( $char ) {
# Starting string delimiters
case '"':
case "'":
if ( $input[$i-1] == '\\' ) {
break;
}
# Skip straight to end of string
# Find the corresponding end delimiter and ensure it's not escaped
while ( ( $i = strpos($input, $char, $i+1) ) && $input[$i-1] == '\\' );
# Check for false, in which case we assume the end is the end of the doc
if ( $i === false ) {
break 2;
}
break;
# End of operation?
case ';':
$end = $i;
break;
# New lines
case "\n":
case "\r":
# Newlines are OK if occuring within an open brackets, arrays or objects.
if ( $openObjects || $openBrackets || $openArrays ) {
break;
}
break;
# Concatenation
case '+':
# Our interest in the + operator is it's use in allowing an expression
# to span multiple lines. If we come across a +, move past all whitespace,
# including newlines (which would otherwise indicate end of expression).
$i += strspn($input, " \t\r\n", $i+1);
break;
# Opening chars (objects, parenthesis and arrays)
case '{':
++$openObjects;
break;
case '(':
++$openBrackets;
break;
case '[':
++$openArrays;
break;
# Closing chars - is there a corresponding open char?
# Yes = reduce stored count. No = end of statement.
case '}':
$openObjects ? --$openObjects : $end = $i;
break;
case ')':
$openBrackets ? --$openBrackets : $end = $i;
break;
case ']':
$openArrays ? --$openArrays : $end = $i;
break;
# Commas - tell us which argument it is
case ',':
# Ignore commas inside other functions or whatnot
if ( $openObjects || $openBrackets || $openArrays ) {
break;
}
# End now
$end = $i;
break;
}
}
# End not found? Use end of document
if ( $end === false ) {
$end = $length;
}
# Return end
return $end;
}
/*****************************************************************
* Page encoding functions
******************************************************************/
# Encode page - splits into HTML/script sections and encodes HTML
function encodePage($input) {
# Look for script blocks
# if ( preg_match_all('#<(?:script|style).*?</(?:script|style)>#is', $input, $scripts, PREG_OFFSET_CAPTURE) ) { # not working
if ( preg_match_all('#<script.*?</script>#is', $input, $scripts, PREG_OFFSET_CAPTURE) ) {
# Create starting offset - only start encoding after the <head>
# as this seems to help browsers cope!
$offset = preg_match('#<body[^>]*>(.)#is', $input, $tmp, PREG_OFFSET_CAPTURE) ? $tmp[1][1] : 0;
$new = $offset ? substr($input, 0, $offset) : '';
# Go through all the matches
foreach ( $scripts[0] as $id => $match ) {
# Determine position of the preceeding non-script block
$end = $match[1] ? $match[1]-1 : 0;
$start = $offset;
$length = $end - $start;
# Add encoded block to page if there is one
if ($length && $length>0) {
$new .= "\n\n\n<!--start encode block-->\n";
$new .= encodeBlock(substr($input, $start, $length));
$new .= "\n<!--end encode block-->\n\n\n";
}
# Add unencoded script to page
$new .= "\n\n\n<!--start unencoded block-->\n";
$new .= $match[0];
$new .= "\n<!--end unencoded block-->\n\n\n";
# Move offset up
$offset = $match[1] + strlen($match[0]);
}
# Add final block
if ( $remainder = substr($input, $offset) ) {
$new .= encodeBlock($remainder);
}
# Update input with new
$input = $new;
} else {
# No scripts is easy - just encode the lot
$input = encodeBlock($input);
}
# Return the encoded page
return $input;
}
# Encode block - applies the actual encoding
# note - intended to obfustate URLs and HTML source code. Does not provide security. Use SSL for actual security.
function encodeBlock($input) {
global $charset;
$new='';
if (isset($charset)) {
$charset=strtolower($charset);
if (function_exists('mb_convert_encoding')) {
$input=mb_convert_encoding($input, 'HTML-ENTITIES', $charset);
}
}
# Return javascript decoder
return '<script type="text/javascript">document.write(arcfour(ginf.enc.u,base64_decode(\'' . arcfour('encrypt',$GLOBALS['unique_salt'],$input) . '\')));</script>';
}
|
selecterskyphp/glype_chs
|
includes/parser.php
|
PHP
|
mit
| 34,604
|
namespace NorthwindWindowsStore.DAL.Model.Interface
{
public interface ITerritory
{
}
}
|
krzysztofkolek/NorthwindWindowsStore
|
NorthwindWindowsStoreService/NorthwindWindowsStore.DAL.Model/Interface/ITerritory.cs
|
C#
|
mit
| 99
|
source "$ZINIT_HOME/$ZINIT_BIN_DIR_NAME/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
zinit light "zsh-users/zsh-autosuggestions"
zinit light "zdharma/fast-syntax-highlighting"
zinit light "zsh-users/zsh-completions"
zinit light "zsh-users/zsh-history-substring-search"
zinit load "sorin-ionescu/prezto"
zinit snippet OMZ::plugins/dotenv/dotenv.plugin.zsh
zinit ice atload"zpcdreplay" atclone'./zplug.zsh'
zinit light g-plane/zsh-yarn-autocompletions
zpcompinit
|
atnanasi/dotfiles
|
.zsh/rc/30-zinit.zsh
|
Shell
|
mit
| 490
|
/*
Project : 4-9 Math Tutor
Author : Mohammad Al-Husseini
Description : Displays two random numbers to be added then waits for the user to solve it.
The user can type their result in and the program tells them if they are correct.
Knowns : 2x Random Numbers - Int
Inputs : Answer - Int
Display : 2x Radnom Numbers - Int
Answer - Int
*/
///////////////////////////////////////////////////////////////////////////////////////////////////
#include <iostream> // cout and cin objects for command line output/input
#include <cstdlib> // random numbers
#include <ctime> // time to seed the random numbers
using namespace std;
int main()
{
// Create variables to hold the random numbers
int num1, num2;
// Variable for User Input
int result;
// Seed the random number
unsigned seed = time(0); // 0 indicates current time at run-time
srand(seed);
// Generate the random numbers
num1 = rand();
num2 = rand();
// Display the numbers
cout << " " << num1 << endl;
cout << "+ " << num2 << endl;
cout << "__________" << endl;
cout << " ";
// Wait for user input
cin >> result;
// Determine if answer was correct
if (result == num1 + num2)
cout << "Congratulations! That is correct, good job!";
else
cout << " " << num1 + num2;
return 0;
}
|
menarus/C-Course
|
Solutions/Ch4/4-09 Math Tutor.cpp
|
C++
|
mit
| 1,339
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
try:
from ._models_py3 import AlertRuleResource
from ._models_py3 import AlertRuleResourceCollection
from ._models_py3 import AlertRuleResourcePatch
from ._models_py3 import AutoscaleNotification
from ._models_py3 import AutoscaleProfile
from ._models_py3 import AutoscaleSettingResource
from ._models_py3 import AutoscaleSettingResourceCollection
from ._models_py3 import AutoscaleSettingResourcePatch
from ._models_py3 import EmailNotification
from ._models_py3 import ErrorResponse
from ._models_py3 import EventCategoryCollection
from ._models_py3 import EventData
from ._models_py3 import EventDataCollection
from ._models_py3 import HttpRequestInfo
from ._models_py3 import LocalizableString
from ._models_py3 import LocationThresholdRuleCondition
from ._models_py3 import ManagementEventAggregationCondition
from ._models_py3 import ManagementEventRuleCondition
from ._models_py3 import MetricTrigger
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import OperationListResult
from ._models_py3 import Recurrence
from ._models_py3 import RecurrentSchedule
from ._models_py3 import Resource
from ._models_py3 import RuleAction
from ._models_py3 import RuleCondition
from ._models_py3 import RuleDataSource
from ._models_py3 import RuleEmailAction
from ._models_py3 import RuleManagementEventClaimsDataSource
from ._models_py3 import RuleManagementEventDataSource
from ._models_py3 import RuleMetricDataSource
from ._models_py3 import RuleWebhookAction
from ._models_py3 import ScaleAction
from ._models_py3 import ScaleCapacity
from ._models_py3 import ScaleRule
from ._models_py3 import ScaleRuleMetricDimension
from ._models_py3 import SenderAuthorization
from ._models_py3 import ThresholdRuleCondition
from ._models_py3 import TimeWindow
from ._models_py3 import WebhookNotification
except (SyntaxError, ImportError):
from ._models import AlertRuleResource # type: ignore
from ._models import AlertRuleResourceCollection # type: ignore
from ._models import AlertRuleResourcePatch # type: ignore
from ._models import AutoscaleNotification # type: ignore
from ._models import AutoscaleProfile # type: ignore
from ._models import AutoscaleSettingResource # type: ignore
from ._models import AutoscaleSettingResourceCollection # type: ignore
from ._models import AutoscaleSettingResourcePatch # type: ignore
from ._models import EmailNotification # type: ignore
from ._models import ErrorResponse # type: ignore
from ._models import EventCategoryCollection # type: ignore
from ._models import EventData # type: ignore
from ._models import EventDataCollection # type: ignore
from ._models import HttpRequestInfo # type: ignore
from ._models import LocalizableString # type: ignore
from ._models import LocationThresholdRuleCondition # type: ignore
from ._models import ManagementEventAggregationCondition # type: ignore
from ._models import ManagementEventRuleCondition # type: ignore
from ._models import MetricTrigger # type: ignore
from ._models import Operation # type: ignore
from ._models import OperationDisplay # type: ignore
from ._models import OperationListResult # type: ignore
from ._models import Recurrence # type: ignore
from ._models import RecurrentSchedule # type: ignore
from ._models import Resource # type: ignore
from ._models import RuleAction # type: ignore
from ._models import RuleCondition # type: ignore
from ._models import RuleDataSource # type: ignore
from ._models import RuleEmailAction # type: ignore
from ._models import RuleManagementEventClaimsDataSource # type: ignore
from ._models import RuleManagementEventDataSource # type: ignore
from ._models import RuleMetricDataSource # type: ignore
from ._models import RuleWebhookAction # type: ignore
from ._models import ScaleAction # type: ignore
from ._models import ScaleCapacity # type: ignore
from ._models import ScaleRule # type: ignore
from ._models import ScaleRuleMetricDimension # type: ignore
from ._models import SenderAuthorization # type: ignore
from ._models import ThresholdRuleCondition # type: ignore
from ._models import TimeWindow # type: ignore
from ._models import WebhookNotification # type: ignore
from ._monitor_management_client_enums import (
ComparisonOperationType,
ConditionOperator,
EventLevel,
MetricStatisticType,
RecurrenceFrequency,
ScaleDirection,
ScaleRuleMetricDimensionOperationType,
ScaleType,
TimeAggregationOperator,
TimeAggregationType,
)
__all__ = [
'AlertRuleResource',
'AlertRuleResourceCollection',
'AlertRuleResourcePatch',
'AutoscaleNotification',
'AutoscaleProfile',
'AutoscaleSettingResource',
'AutoscaleSettingResourceCollection',
'AutoscaleSettingResourcePatch',
'EmailNotification',
'ErrorResponse',
'EventCategoryCollection',
'EventData',
'EventDataCollection',
'HttpRequestInfo',
'LocalizableString',
'LocationThresholdRuleCondition',
'ManagementEventAggregationCondition',
'ManagementEventRuleCondition',
'MetricTrigger',
'Operation',
'OperationDisplay',
'OperationListResult',
'Recurrence',
'RecurrentSchedule',
'Resource',
'RuleAction',
'RuleCondition',
'RuleDataSource',
'RuleEmailAction',
'RuleManagementEventClaimsDataSource',
'RuleManagementEventDataSource',
'RuleMetricDataSource',
'RuleWebhookAction',
'ScaleAction',
'ScaleCapacity',
'ScaleRule',
'ScaleRuleMetricDimension',
'SenderAuthorization',
'ThresholdRuleCondition',
'TimeWindow',
'WebhookNotification',
'ComparisonOperationType',
'ConditionOperator',
'EventLevel',
'MetricStatisticType',
'RecurrenceFrequency',
'ScaleDirection',
'ScaleRuleMetricDimensionOperationType',
'ScaleType',
'TimeAggregationOperator',
'TimeAggregationType',
]
|
Azure/azure-sdk-for-python
|
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2015_04_01/models/__init__.py
|
Python
|
mit
| 6,678
|
<?php
require_once __DIR__ . '/../../lib/DoublyLinkedListNode.php';
class SumListNoConvertReversed {
public static function sum(Node $n1, Node $n2) {
$head = $tail = null;
$n1Length = self::getLinkedListSize($n1);
$n2Length = self::getLinkedListSize($n2);
$maxLength = max($n1Length, $n2Length);
$n1Offset = $maxLength - $n1Length;
$n2Offset = $maxLength - $n2Length;
while ($n1 !== null || $n2 !== null) {
$sum = 0;
if ($n1Offset > 0) {
$n1Offset--;
} else {
$sum += $n1->getData();
$n1 = $n1->getNext();
}
if ($n2Offset > 0) {
$n2Offset--;
} else {
$sum += $n2->getData();
$n2 = $n2->getNext();
}
self::addDigitToLinkedList($head, $tail, $sum);
}
return $head;
}
public static function addDigitToLinkedList(
DoublyLinkedListNode &$head = null, DoublyLinkedListNode &$tail = null, $number) {
$digit = $number % 10;
if ($number >= 10) {
$carry = ($number - $digit) / 10;
if ($tail !== null) {
$previousDigit = $tail->getData();
$tail = $tail->getPrevious();
if ($tail !== null) {
$tail->setNext(null);
} else {
$head = null;
}
} else {
$previousDigit = 0;
}
self::addDigitToLinkedList($head, $tail, $previousDigit + $carry);
}
$node = new DoublyLinkedListNode($digit);
if ($tail !== null) {
$tail->setNext($node);
$node->setPrevious($tail);
$tail = $node;
} else {
$head = $tail = $node;
}
}
public static function getLinkedListSize(Node $node) {
$size = 0;
while ($node !== null) {
$size++;
$node = $node->getNext();
}
return $size;
}
}
|
Kiandr/CrackingCodingInterview
|
php/src/chapter02/question2.5/SumListNoConvertReversed.php
|
PHP
|
mit
| 2,104
|
#!/usr/bin/env node
import {cd, exec, rm, set} from 'shelljs';
import * as fs from 'fs';
// Fail on first error
set('-e');
// Install Angular packages that are built locally from HEAD.
// This also gets around the bug whereby yarn caches local `file://` urls.
// See https://github.com/yarnpkg/yarn/issues/2165
// The below packages are all required in a default CLI project.
const ngPackages = [
'animations',
'core',
'common',
'compiler',
'forms',
'platform-browser',
'platform-browser-dynamic',
'router',
'compiler-cli',
'language-service',
];
// Keep typescript, tslib, and @types/node versions in sync with the ones used in this repo
const nodePackages = [
'@types/node',
'tslib',
'typescript',
];
// Under Bazel integration tests are sand-boxed and cannot reference
// reference `../../dist/*` packages and should not do so as these are not
// inputs to the test. The npm_integeration_test rule instead provides a manifest
// file that contains all of the npm package mappings available to the test.
const bazelMappings: { [key: string]: string } = fs.existsSync('NPM_PACKAGE_MANIFEST.json') ? require('./NPM_PACKAGE_MANIFEST.json') : {};
const packages: { [key: string]: string } = {};
for (let p of ngPackages) {
const n = `@angular/${p}`;
packages[n] = `file:${bazelMappings[n]}` || `file:${__dirname}/../../dist/packages-dist/${p}`;
}
for (let p of nodePackages) {
packages[p] = `file:${bazelMappings[p]}` || `file:${__dirname}/../../node_modules/${p}`;
}
// Clean up previously run test
cd(__dirname);
rm('-rf', `demo`);
// Set up demo project
exec('ng version');
exec('ng new demo --skip-git --skip-install --style=css --no-interactive');
cd('demo');
// Use a local yarn cache folder so we don't access the global yarn cache
exec('mkdir .yarn_local_cache');
// Install Angular packages that are built locally from HEAD and npm packages
// from root node modules that are to be kept in sync
const packageList = Object.keys(packages).map(p => `${p}@${packages[p]}`).join(' ');
exec(`yarn add --ignore-scripts --silent ${packageList} --cache-folder ./.yarn_local_cache`);
// Add @angular/elements
const schematicPath = bazelMappings
? `${bazelMappings['@angular/elements']}`
: `${__dirname}/../../dist/packages-dist/elements`;
exec(`ng add "${schematicPath}" --skip-confirmation`);
// Test that build is successful after adding elements
exec('ng build --no-source-map --configuration=development');
|
mgechev/angular
|
integration/ng_elements_schematics/test.ts
|
TypeScript
|
mit
| 2,456
|
<?php
class Pilotes extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('Pilote_model');
}
public function index() {
$data['title'] = 'Gestion des pilotes';
$this->load->view('header', $data);
// Critères sur les pilotes à afficher
$champs = $this->Pilote_model->getFields();
$data['champsLike'] = null;
$data['champsEqual'] = null;
foreach ($champs as $champ) {
if (isset($_GET[$champ])) {
if (($champ == 'id')
OR ($_GET[$champ] == 'true' OR $_GET[$champ] == 'false')
OR strtotime(str_replace('/', '-', $_GET[$champ]))) {
$data['champsEqual'][$champ] = $_GET[$champ];
} else {
$data['champsLike'][$champ] = $_GET[$champ];
}
$data['old_data'][$champ] = $_GET[$champ];
}
}
$this->load->view('formRecherchePilote', $data);
$this->display_pilotes($data);
$this->load->view('footer', $data);
}
public function display_pilotes($data) {
$data['title'] = 'Pilotes';
// Critère de tri
if (isset($_GET['o'])) {
$o = $_GET['o'];
} else {
$o = 'id';
}
// Récupération des données
$data['array_data'] = $this->Pilote_model->get($o, $data['champsEqual'], $data['champsLike'])->result_array();
$data['fields_metadata'] = $this->Pilote_model->getFieldsMetaData();
$data['array_headings'] = $this->perso->get_headings('pilote');
$data['miscInfos'] = $this->Pilote_model->getMisc();
$this->perso->set_data_for_display('pilote', $data['array_data']);
// Traitement des lignes
/*foreach($data['array_data'] as $num_row => $row) {
}*/
$data['btnNouveau'] = true;
$data['btnModif'] = true;
$data['btnInfos'] = true;
$data['object'] = 'pilote';
$data['miscInfos'] = $this->Pilote_model->getMisc();
$this->load->view('table', $data);
}
public function ajouter() {
$data['title'] = 'Ajouter un pilote';
if (isset($_POST['nom'])) {
if (!isset($_POST['qualification_biplace'])) {
$_POST['qualification_biplace'] = false;
}
$_POST['nom'] = strtolower($_POST['nom']);
$_POST['prenom'] = strtolower($_POST['prenom']);
try {
$this->Pilote_model->add($_POST);
redirect('/pilotes', 'location', 301);
} catch (Exception $e) {
$data['error_message'] = $e.getMessage();
redirect('/pilotes', 'location', 400);
}
} else {
$this->load->view('header', $data);
$data['function'] = 'ajouter';
$this->load->view('formPilote', $data);
$this->load->view('footer', $data);
}
}
public function modifier($id) {
$data['title'] = 'Modifier un pilote';
if (isset($_POST['nom'])) {
if (!isset($_POST['qualification_biplace'])) {
$_POST['qualification_biplace'] = false;
}
$_POST['nom'] = strtolower($_POST['nom']);
$_POST['prenom'] = strtolower($_POST['prenom']);
try {
$this->Pilote_model->update($id, $_POST);
redirect('/pilotes', 'location', 301);
} catch (Exception $e) {
$data['error_message'] = $e.getMessage();
redirect('/pilotes', 'location', 400);
}
} else {
$this->load->view('header', $data);
$data['function'] = 'modifier/'.$id;
$data['old_data'] = $this->Pilote_model->get('id', array('id' => $id), null)->result_array()[0];
$this->load->view('formPilote', $data);
$this->load->view('footer', $data);
}
}
}
|
Sayomul/GestionParapente
|
application/controllers/Pilotes.php
|
PHP
|
mit
| 3,292
|
<?php
namespace SEC\SolicitudesBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ProcesoType extends AbstractType {
public function buildForm(FormBuilderInterface $builder, array $options) {
$builder->add('tipo', 'entity', array(
'class' => 'SECSolicitudesBundle:Tipo',
'property' => 'descripcion',
'empty_value' => 'Seleccione...'
))
->add('fechaRecSDA', 'date', array(
'label' => 'Fecha Recepción SDA : ',
'widget' => 'single_text',
))
->add('fechaRecSER', 'date', array(
'label' => 'Fecha Recepción SER : ',
'widget' => 'single_text',
))
->add('titulo')
->add('resumen', 'textarea', array(
'label' => 'Resumen'
))
->add('infoadicional')
->add('noradicado')
->add('entecontrol', 'entity', array(
'class' => 'SECSolicitudesBundle:EnteControl',
'property' => 'nombre',
'empty_value' => 'Seleccione...'
))
->add('diasrespuesta')
->add('fechamaxrespuesta', 'date', array(
'label' => 'Fecha Maxima : ',
'widget' => 'single_text',
'format' => 'dd/MM/yyyy',
'read_only' => true
))
->add('alerta1', 'date', array(
'label' => 'Alerta 1 : ',
'widget' => 'single_text',
'format' => 'dd/MM/yyyy',
'read_only' => true
))
->add('alerta2', 'date', array(
'label' => 'Alerta 2 : ',
'widget' => 'single_text',
'format' => 'dd/MM/yyyy',
'read_only' => true
))
->add('asignaciones', 'collection', array(
'type' => new AsignacionType(),
'label' => 'Responsables',
'by_reference' => false,
//'prototype_data' => new Asignacion(),
'allow_delete' => true,
'allow_add' => true,
))
;
}
public function setDefaultOptions(OptionsResolverInterface $resolver) {
$resolver->setDefaults(array(
'data_class' => 'SEC\SolicitudesBundle\Entity\Proceso'
));
}
public function getName() {
return 'proceso_asignaciones';
}
}
?>
|
miguelplazasr/sec
|
src/SEC/SolicitudesBundle/Form/ProcesoType.php
|
PHP
|
mit
| 2,796
|
require 'rails_helper'
describe UserImportResult do
#pending "add some examples to (or delete) #{__FILE__}"
end
# == Schema Information
#
# Table name: user_import_results
#
# id :bigint not null, primary key
# user_import_file_id :bigint
# user_id :bigint
# body :text
# created_at :datetime not null
# updated_at :datetime not null
# error_message :text
#
|
next-l/enju_library
|
spec/models/user_import_result_spec.rb
|
Ruby
|
mit
| 464
|
<html lang="en">
<head>
<title>H8/300 - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Machine-Dependent.html#Machine-Dependent" title="Machine Dependent">
<link rel="next" href="i960.html#i960" title="i960">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This file documents the GNU linker LD
(GNU Tools for ARM Embedded Processors 6-2017-q1-update)
version 2.27.90.
Copyright (C) 1991-2017 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, with no Front-Cover Texts, and with no
Back-Cover Texts. A copy of the license is included in the
section entitled ``GNU Free Documentation License''.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="H8%2f300"></a>
<a name="H8_002f300"></a>
Next: <a rel="next" accesskey="n" href="i960.html#i960">i960</a>,
Up: <a rel="up" accesskey="u" href="Machine-Dependent.html#Machine-Dependent">Machine Dependent</a>
<hr>
</div>
<h3 class="section">4.1 <samp><span class="command">ld</span></samp> and the H8/300</h3>
<p><a name="index-H8_002f300-support-602"></a>For the H8/300, <samp><span class="command">ld</span></samp> can perform these global optimizations when
you specify the `<samp><span class="samp">--relax</span></samp>' command-line option.
<a name="index-relaxing-on-H8_002f300-603"></a>
<dl><dt><em>relaxing address modes</em><dd><samp><span class="command">ld</span></samp> finds all <code>jsr</code> and <code>jmp</code> instructions whose
targets are within eight bits, and turns them into eight-bit
program-counter relative <code>bsr</code> and <code>bra</code> instructions,
respectively.
<p><a name="index-synthesizing-on-H8_002f300-604"></a><br><dt><em>synthesizing instructions</em><dd><!-- FIXME: specifically mov.b, or any mov instructions really? -> mov.b only, at least on H8, H8H, H8S -->
<samp><span class="command">ld</span></samp> finds all <code>mov.b</code> instructions which use the
sixteen-bit absolute address form, but refer to the top
page of memory, and changes them to use the eight-bit address form.
(That is: the linker turns `<samp><span class="samp">mov.b </span><code>@</code><var>aa</var><span class="samp">:16</span></samp>' into
`<samp><span class="samp">mov.b </span><code>@</code><var>aa</var><span class="samp">:8</span></samp>' whenever the address <var>aa</var> is in the
top page of memory).
<p><samp><span class="command">ld</span></samp> finds all <code>mov</code> instructions which use the register
indirect with 32-bit displacement addressing mode, but use a small
displacement inside 16-bit displacement range, and changes them to use
the 16-bit displacement form. (That is: the linker turns `<samp><span class="samp">mov.b
</span><code>@</code><var>d</var><span class="samp">:32,ERx</span></samp>' into `<samp><span class="samp">mov.b </span><code>@</code><var>d</var><span class="samp">:16,ERx</span></samp>'
whenever the displacement <var>d</var> is in the 16 bit signed integer
range. Only implemented in ELF-format ld).
<br><dt><em>bit manipulation instructions</em><dd><samp><span class="command">ld</span></samp> finds all bit manipulation instructions like <code>band, bclr,
biand, bild, bior, bist, bixor, bld, bnot, bor, bset, bst, btst, bxor</code>
which use 32 bit and 16 bit absolute address form, but refer to the top
page of memory, and changes them to use the 8 bit address form.
(That is: the linker turns `<samp><span class="samp">bset #xx:3,</span><code>@</code><var>aa</var><span class="samp">:32</span></samp>' into
`<samp><span class="samp">bset #xx:3,</span><code>@</code><var>aa</var><span class="samp">:8</span></samp>' whenever the address <var>aa</var> is in
the top page of memory).
<br><dt><em>system control instructions</em><dd><samp><span class="command">ld</span></samp> finds all <code>ldc.w, stc.w</code> instructions which use the
32 bit absolute address form, but refer to the top page of memory, and
changes them to use 16 bit address form.
(That is: the linker turns `<samp><span class="samp">ldc.w </span><code>@</code><var>aa</var><span class="samp">:32,ccr</span></samp>' into
`<samp><span class="samp">ldc.w </span><code>@</code><var>aa</var><span class="samp">:16,ccr</span></samp>' whenever the address <var>aa</var> is in
the top page of memory).
</dl>
</body></html>
|
ChangsoonKim/STM32F7DiscTutor
|
toolchain/osx/gcc-arm-none-eabi-6-2017-q1-update/share/doc/gcc-arm-none-eabi/html/ld.html/H8_002f300.html
|
HTML
|
mit
| 5,263
|
package com.example.alexeyglushkov.uimodulesandclasses.activitymodule.presenter;
import com.example.alexeyglushkov.uimodulesandclasses.activitymodule.view.ActivityModuleItemView;
import com.example.alexeyglushkov.uimodulesandclasses.activitymodule.view.ActivityModuleView;
/**
* Created by alexeyglushkov on 02.04.17.
*/
public interface ActivityModuleItem {
ActivityModuleItemView getActivityModuleItemView();
}
|
soniccat/android-taskmanager
|
ui/src/main/java/com/example/alexeyglushkov/uimodulesandclasses/activitymodule/presenter/ActivityModuleItem.java
|
Java
|
mit
| 422
|
'use strict';
// helper to start and stop the redis process.
var config = require('./config');
var fs = require('fs');
var path = require('path');
var spawn = require('win-spawn');
var spawnFailed = false;
var tcpPortUsed = require('tcp-port-used');
// wait for redis to be listening in
// all three modes (ipv4, ipv6, socket).
function waitForRedis (available, cb) {
if (process.platform === 'win32') return cb();
var ipV4 = false;
var id = setInterval(function () {
tcpPortUsed.check(config.PORT, '127.0.0.1').then(function (_ipV4) {
ipV4 = _ipV4;
return tcpPortUsed.check(config.PORT, '::1');
}).then(function (ipV6) {
if (ipV6 === available && ipV4 === available && fs.existsSync('/tmp/redis.sock') === available) {
clearInterval(id);
return cb();
}
});
}, 100);
}
module.exports = {
start: function (done, conf) {
// spawn redis with our testing configuration.
var confFile = conf || path.resolve(__dirname, '../conf/redis.conf');
var rp = spawn("redis-server", [confFile], {});
// capture a failure booting redis, and give
// the user running the test some directions.
rp.once("exit", function (code) {
if (code !== 0) spawnFailed = true;
});
// wait for redis to become available, by
// checking the port we bind on.
waitForRedis(true, function () {
// return an object that can be used in
// an after() block to shutdown redis.
return done(null, {
spawnFailed: function () {
return spawnFailed;
},
stop: function (done) {
if (spawnFailed) return done();
rp.once("exit", function (code) {
var error = null;
if (code !== null && code !== 0) {
error = Error('Redis shutdown failed with code ' + code);
}
waitForRedis(false, function () {
return done(error);
});
});
rp.kill("SIGTERM");
}
});
});
}
};
|
MailOnline/node_redis
|
test/lib/redis-process.js
|
JavaScript
|
mit
| 2,328
|
/*global
piranha, tinymce
*/
//
// Create a new inline editor
//
piranha.editor.addInline = function (id, toolbarId) {
tinymce.init({
selector: "#" + id,
browser_spellcheck: true,
fixed_toolbar_container: "#" + toolbarId,
menubar: false,
branding: false,
statusbar: false,
inline: true,
convert_urls: false,
plugins: [
piranha.editorconfig.plugins
],
width: "100%",
autoresize_min_height: 0,
toolbar: piranha.editorconfig.toolbar,
extended_valid_elements: piranha.editorconfig.extended_valid_elements,
block_formats: piranha.editorconfig.block_formats,
style_formats: piranha.editorconfig.style_formats,
file_picker_callback: function(callback, value, meta) {
// Provide file and text for the link dialog
if (meta.filetype == 'file') {
piranha.mediapicker.openCurrentFolder(function (data) {
callback(data.publicUrl, { text: data.filename });
}, null);
}
// Provide image and alt text for the image dialog
if (meta.filetype == 'image') {
piranha.mediapicker.openCurrentFolder(function (data) {
callback(data.publicUrl, { alt: "" });
}, "image");
}
}
});
$("#" + id).parent().append("<a class='tiny-brand' href='https://www.tiny.cloud' target='tiny'>Powered by Tiny</a>");
};
//
// Remove the TinyMCE instance with the given id.
//
piranha.editor.remove = function (id) {
tinymce.remove(tinymce.get(id));
$("#" + id).parent().find('.tiny-brand').remove();
};
|
PiranhaCMS/piranha.core
|
core/Piranha.Manager.TinyMCE/assets/piranha.editor.js
|
JavaScript
|
mit
| 1,717
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>V8 API Reference Guide for node.js v0.1.99: v8::internal::SmiConstants< 4 > Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">V8 API Reference Guide for node.js v0.1.99
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacev8.html">v8</a></li><li class="navelem"><b>internal</b></li><li class="navelem"><a class="el" href="structv8_1_1internal_1_1_smi_constants_3_014_01_4.html">SmiConstants< 4 ></a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#pub-static-attribs">Static Public Attributes</a> |
<a href="structv8_1_1internal_1_1_smi_constants_3_014_01_4-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">v8::internal::SmiConstants< 4 > Struct Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a535d6ae95fc91da9258e31d810048043"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a535d6ae95fc91da9258e31d810048043"></a>
static int </td><td class="memItemRight" valign="bottom"><b>SmiToInt</b> (internal::Object *value)</td></tr>
<tr class="separator:a535d6ae95fc91da9258e31d810048043"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a37addf80dd66de1967373c7b3ded1b26"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a37addf80dd66de1967373c7b3ded1b26"></a>
static const int </td><td class="memItemRight" valign="bottom"><b>kSmiShiftSize</b> = 0</td></tr>
<tr class="separator:a37addf80dd66de1967373c7b3ded1b26"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4a8b755d509d53e452f12c29f39b6bd8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a8b755d509d53e452f12c29f39b6bd8"></a>
static const int </td><td class="memItemRight" valign="bottom"><b>kSmiValueSize</b> = 31</td></tr>
<tr class="separator:a4a8b755d509d53e452f12c29f39b6bd8"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>deps/v8/include/<a class="el" href="v8_8h_source.html">v8.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 11 2015 23:44:52 for V8 API Reference Guide for node.js v0.1.99 by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
|
v8-dox/v8-dox.github.io
|
1c6671a/html/structv8_1_1internal_1_1_smi_constants_3_014_01_4.html
|
HTML
|
mit
| 6,363
|
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>條目 </b></th><td class="std2">甘馨之費</td></tr>
<tr><th class="std1"><b>注音 </b></th><td class="std2">ㄍㄢ ㄒ|ㄣ ㄓ ㄈㄟ<sup class="subfont">ˋ</sup></td></tr>
<tr><th class="std1"><b>漢語拼音 </b></th><td class="std2"><font class="english_word">gān xīn zhī fèi</font></td></tr>
<tr><th class="std1"><b>釋義 </b></th><td class="std2">購買精緻食物的費用。指供養雙親的費用。唐˙白居易˙謝官狀:<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>養闕甘馨之費,病乏藥石之資。<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center></td></tr>
<tr><th class="std1"><b><font class="fltypefont">附錄</font> </b></th><td class="std2">修訂本參考資料</td></tr>
</td></tr></table></div> <!-- flayoutclass_first --><div class="flayoutclass_second"></div> <!-- flayoutclass_second --></div> <!-- flayoutclass --></td></tr></table>
|
BuzzAcademy/idioms-moe-unformatted-data
|
all-data/20000-20999/20289-22.html
|
HTML
|
mit
| 1,293
|
#!/bin/bash
targetDir="iContainer"
if [ "$#" -gt 0 ]; then
targetDir=$1
fi
targetFile="$targetDir.tar.gz"
# 1. compile sources
echo " > compiling sources ..."
# 1. compile less files
cd less
./style.sh
cd -
# 2. compile sources
grunt deploy
# 2. create deployment package
echo " > creating deployment directory ..."
mkdir $targetDir
cp -rL bin config models public routes services utils $targetDir/
cp app.js package.json README.md node_modules.tar.gz $targetDir/
mkdir $targetDir/scripts
cp -r scripts/import $targetDir/scripts
echo " > creating deployment package ..."
tar cfz $targetFile $targetDir
echo " > cleaning up ..."
rm -r $targetDir
echo "done"
|
icypher-zizek/icontainer
|
deploy.sh
|
Shell
|
mit
| 672
|
'use strict';
import path from 'path';
import autoprefixer from 'autoprefixer-core';
import gulpif from 'gulp-if';
export default function(gulp, plugins, args, config, taskTarget, browserSync) {
let dirs = config.directories;
let entries = config.entries;
let dest = path.join(taskTarget, dirs.styles.replace(/^_/, ''));
// Sass compilation
gulp.task('sass', () => {
gulp.src(path.join(dirs.source, dirs.styles, entries.css))
.pipe(plugins.plumber())
.pipe(plugins.sourcemaps.init())
.pipe(plugins.sass({
outputStyle: 'expanded',
precision: 10,
includePaths: [
path.join(dirs.source, dirs.styles),
path.join(dirs.source, dirs.modules)
]
}).on('error', plugins.sass.logError))
.pipe(plugins.postcss([autoprefixer({browsers: ['last 2 version', '> 5%', 'safari 5', 'ios 6', 'android 4']})]))
.pipe(plugins.rename(function(path) {
// Remove 'source' directory as well as prefixed folder underscores
// Ex: 'src/_styles' --> '/styles'
path.dirname = path.dirname.replace(dirs.source, '').replace('_', '');
}))
.pipe(gulpif(args.production, plugins.minifyCss({rebase: false})))
.pipe(plugins.sourcemaps.write('./'))
.pipe(gulp.dest(dest))
.pipe(browserSync.stream({match: '**/*.css'}));
});
}
|
jacekpolak/generator-yeogurt
|
app/templates/gulp/es6/sass.js
|
JavaScript
|
mit
| 1,348
|
@extends('adminlte::page')
@section('title', 'Redirects')
@section('content_header')
<h1>Redirects</h1>
@stop
@section('content')
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-body">
@include('admin.redirects._form', [
'route' => ['admin.redirects.store']
])
</div>
</div>
</div>
</div>
@stop
|
patrykwozinski/shared-flat
|
resources/views/admin/redirects/create.blade.php
|
PHP
|
mit
| 474
|
namespace EngineOverflow.Web.ViewModels.Manage
{
using System.ComponentModel.DataAnnotations;
public class AddPhoneNumberViewModel
{
[Required]
[Phone]
[Display(Name = "Phone Number")]
public string Number { get; set; }
}
}
|
delyan-nikolov-1992/EngineOverflow
|
Source/Web/EngineOverflow.Web/ViewModels/Manage/AddPhoneNumberViewModel.cs
|
C#
|
mit
| 276
|
## v1.3.0 [unreleased]
### Features
- [#7776](https://github.com/influxdata/influxdb/issues/7776): Add system information to /debug/vars.
- [#7948](https://github.com/influxdata/influxdb/pull/7948): Reduce memory allocations by reusing gzip.Writers across requests
- [#7553](https://github.com/influxdata/influxdb/issues/7553): Add modulo operator to the query language.
- [#7977](https://github.com/influxdata/influxdb/issues/7977): Add chunked request processing back into the Go client v2
## v1.2.1 [unreleased]
### Bugfixes
- [#7877](https://github.com/influxdata/influxdb/issues/7877): Fix mapping of types when the measurement uses a regex
- [#7888](https://github.com/influxdata/influxdb/pull/7888): Expand query dimensions from the subquery.
- [#7910](https://github.com/influxdata/influxdb/issues/7910): Fix EvalType when a parenthesis expression is used.
- [#7929](https://github.com/influxdata/influxdb/issues/7929): Fix series tag iteration segfault. (#7922)
- [#7906](https://github.com/influxdata/influxdb/issues/7906): Anchors not working as expected with case-insensitive regex
- [#7895](https://github.com/influxdata/influxdb/issues/7895): Fix incorrect math when aggregates that emit different times are used.
- [#7946](https://github.com/influxdata/influxdb/issues/7946): Fix authentication when subqueries are present.
- [#7885](https://github.com/influxdata/influxdb/issues/7885): Fix LIMIT and OFFSET when they are used in a subquery.
- [#7905](https://github.com/influxdata/influxdb/issues/7905): Fix ORDER BY time DESC with ordering series keys.
## v1.2.0 [2017-01-24]
### Release Notes
This release introduces a major new querying capability in the form of sub-queries, and provides several performance improvements, including a 50% or better gain in write performance on larger numbers of cores. The release adds some stability and memory-related improvements, as well as several CLI-related bug fixes. If upgrading from a prior version, please read the configuration changes in the following section before upgrading.
### Configuration Changes
The following new configuration options are available, if upgrading to `1.2.0` from prior versions.
#### `[[collectd]]` Section
* `security-level` which defaults to `"none"`. This field also accepts `"sign"` and `"encrypt"` and enables different levels of transmission security for the collectd plugin.
* `auth-file` which defaults to `"/etc/collectd/auth_file"`. Specifies where to locate the authentication file used to authenticate clients when using signed or encrypted mode.
### Deprecations
The stress tool `influx_stress` will be removed in a subsequent release. We recommend using [`influx-stress`](https://github.com/influxdata/influx-stress) as a replacement.
### Features
- [#7723](https://github.com/influxdata/influxdb/pull/7723): Remove the override of GOMAXPROCS.
- [#7669](https://github.com/influxdata/influxdb/issues/7669): Uncomment section headers from the default configuration file.
- [#7633](https://github.com/influxdata/influxdb/pull/7633): improve write performance significantly.
- [#7601](https://github.com/influxdata/influxdb/issues/7601): Prune data in meta store for deleted shards.
- [#7554](https://github.com/influxdata/influxdb/pull/7554): update latest dependencies with Godeps.
- [#7368](https://github.com/influxdata/influxdb/pull/7368): Introduce syntax for marking a partial response with chunking.
- [#7356](https://github.com/influxdata/influxdb/issues/7356): Use X-Forwarded-For IP address in HTTP logger if present.
- [#7066](https://github.com/influxdata/influxdb/issues/7066): Add support for secure transmission via collectd.
- [#7036](https://github.com/influxdata/influxdb/issues/7036): Switch logging to use structured logging everywhere.
- [#3188](https://github.com/influxdata/influxdb/issues/3188): [CLI feature request] USE retention policy for queries.
- [#7709](https://github.com/influxdata/influxdb/pull/7709): Add clear command to cli.
- [#7688](https://github.com/influxdata/influxdb/pull/7688): Adding ability to use parameters in queries in the v2 client using the `Parameters` map in the `Query` struct.
- [#7323](https://github.com/influxdata/influxdb/pull/7323): Allow add items to array config via ENV
- [#4619](https://github.com/influxdata/influxdb/issues/4619): Support subquery execution in the query language.
- [#7326](https://github.com/influxdata/influxdb/issues/7326): Verbose output for SSL connection errors.
- [#7830](https://github.com/influxdata/influxdb/pull/7830): Cache snapshotting performance improvements
### Bugfixes
- [#7832](https://github.com/influxdata/influxdb/pull/7832): Fix memory leak when writing new series over HTTP
- [#7786](https://github.com/influxdata/influxdb/pull/7786): Fix potential race condition in correctness of tsm1_cache memBytes statistic.
- [#7784](https://github.com/influxdata/influxdb/pull/7784): Fix broken error return on meta client's UpdateUser and DropContinuousQuery methods.
- [#7741](https://github.com/influxdata/influxdb/pull/7741): Fix string quoting and significantly improve performance of `influx_inspect export`.
- [#7698](https://github.com/influxdata/influxdb/pull/7698): CLI was caching db/rp for insert into statements.
- [#7659](https://github.com/influxdata/influxdb/issues/7659): Fix CLI import bug when using self-signed SSL certificates.
- [#7656](https://github.com/influxdata/influxdb/issues/7656): Fix cross-platform backup/restore @allenpetersen
- [#7650](https://github.com/influxdata/influxdb/issues/7650): Ensures that all user privileges associated with a database are removed when the database is dropped.
- [#7634](https://github.com/influxdata/influxdb/issues/7634): Return the time from a percentile call on an integer.
- [#7621](https://github.com/influxdata/influxdb/issues/7621): Expand string and boolean fields when using a wildcard with `sample()`.
- [#7616](https://github.com/influxdata/influxdb/pull/7616): Fix chuid argument order in init script @ccasey
- [#7615](https://github.com/influxdata/influxdb/issues/7615): Reject invalid subscription urls @allenpetersen
- [#7396](https://github.com/influxdata/influxdb/issues/7396): CLI should use spaces for alignment, not tabs.
- [#6527](https://github.com/influxdata/influxdb/issues/6527): 0.12.2 Influx CLI client PRECISION returns "Unknown precision....
- [#7740](https://github.com/influxdata/influxdb/issues/7740): Fix parse key panic when missing tag value @oiooj
- [#7563](https://github.com/influxdata/influxdb/issues/7563): RP should not allow `INF` or `0` as a shard duration.
- [#7585](https://github.com/influxdata/influxdb/pull/7585): Return Error instead of panic when decoding point values.
- [#7812](https://github.com/influxdata/influxdb/issues/7812): Fix slice out of bounds panic when pruning shard groups. Thanks @vladlopes
- [#7822](https://github.com/influxdata/influxdb/issues/7822): Drop database will delete /influxdb/data directory
- [#7838](https://github.com/influxdata/influxdb/issues/7838): Ensure Subscriber service can be disabled.
- [#7845](https://github.com/influxdata/influxdb/issues/7845): Fix race in storage engine.
- [#7814](https://github.com/influxdata/influxdb/issues/7814): InfluxDB should do a partial write on mismatched type errors.
## v1.1.1 [2016-12-06]
### Features
- [#7684](https://github.com/influxdata/influxdb/issues/7684): Update Go version to 1.7.4.
### Bugfixes
- [#7679](https://github.com/influxdata/influxdb/pull/7679): Fix string fields w/ trailing slashes
- [#7661](https://github.com/influxdata/influxdb/pull/7661): Quote the empty string as an ident.
- [#7625](https://github.com/influxdata/influxdb/issues/7625): Fix incorrect tag value in error message.
### Security
[Go 1.7.4](https://golang.org/doc/devel/release.html#go1.7.minor) was released to address two security issues. This release includes these security fixes.
## v1.1.0 [2016-11-14]
### Release Notes
This release is built with go 1.7.3 and provides many performance optimizations, stability changes and a few new query capabilities. If upgrading from a prior version, please read the configuration changes below section before upgrading.
### Deprecations
The admin interface is deprecated and will be removed in a subsequent release. The configuration setting to enable the admin UI is now disabled by default, but can be enabled if necessary. We recommend using [Chronograf](https://github.com/influxdata/chronograf) or [Grafana](https://github.com/grafana/grafana) as a replacement.
### Configuration Changes
The following configuration changes may need to changed before upgrading to `1.1.0` from prior versions.
#### `[admin]` Section
* `enabled` now default to false. If you are currently using the admin interaface, you will need to change this value to `true` to re-enable it. The admin interface is currently deprecated and will be removed in a subsequent release.
#### `[data]` Section
* `max-values-per-tag` was added with a default of 100,000, but can be disabled by setting it to `0`. Existing measurements with tags that exceed this limit will continue to load, but writes that would cause the tags cardinality to increase will be dropped and a `partial write` error will be returned to the caller. This limit can be used to prevent high cardinality tag values from being written to a measurement.
* `cache-max-memory-size` has been increased to from `524288000` to `1048576000`. This setting is the maximum amount of RAM, in bytes, a shard cache can use before it rejects writes with an error. Setting this value to `0` disables the limit.
* `cache-snapshot-write-cold-duration` has been decreased from `1h` to `10m`. This setting determines how long values will stay in the shard cache while the shard is cold for writes.
* `compact-full-write-cold-duration` has been decreased from `24h` to `4h`. The shorter duration allows cold shards to be compacted to an optimal state more quickly.
### Features
The query language has been extended with a few new features:
- [#7442](https://github.com/influxdata/influxdb/pull/7442): Support regex on fields keys in select clause
- [#7403](https://github.com/influxdata/influxdb/pull/7403): New `linear` fill option
- [#7388](https://github.com/influxdata/influxdb/pull/7388): New `cumulative_sum` function
- [#7295](https://github.com/influxdata/influxdb/pull/7295): Support `ON` for `SHOW` commands
All Changes:
- [#7496](https://github.com/influxdata/influxdb/pull/7496): Filter out series within shards that do not have data for that series.
- [#7495](https://github.com/influxdata/influxdb/pull/7495): Rewrite regexes of the form host = /^server-a$/ to host = 'server-a', to take advantage of the tsdb index.
- [#7480](https://github.com/influxdata/influxdb/pull/7480): Improve compaction planning performance by caching tsm file stats.
- [#7473](https://github.com/influxdata/influxdb/pull/7473): Align binary math expression streams by time.
- [#7470](https://github.com/influxdata/influxdb/pull/7470): Reduce map allocations when computing the TagSet of a measurement.
- [#7463](https://github.com/influxdata/influxdb/pull/7463): Make input plugin services open/close idempotent.
- [#7441](https://github.com/influxdata/influxdb/pull/7441): Speed up shutdown by closing shards concurrently.
- [#7415](https://github.com/influxdata/influxdb/pull/7415): Add sample function to query language.
- [#7403](https://github.com/influxdata/influxdb/pull/7403): Add `fill(linear)` to query language.
- [#7388](https://github.com/influxdata/influxdb/pull/7388): Implement cumulative_sum() function.
- [#7320](https://github.com/influxdata/influxdb/issues/7320): Update defaults in config for latest best practices
- [#7305](https://github.com/influxdata/influxdb/pull/7305): UDP Client: Split large points. Thanks @vlasad
- [#7281](https://github.com/influxdata/influxdb/pull/7281): Add stats for active compactions, compaction errors.
- [#7268](https://github.com/influxdata/influxdb/pull/7268): More man pages for the other tools we package and compress man pages fully.
- [#7146](https://github.com/influxdata/influxdb/issues/7146): Add max-values-per-tag to limit high tag cardinality data
- [#7136](https://github.com/influxdata/influxdb/pull/7136): Update jwt-go dependency to version 3.
- [#7135](https://github.com/influxdata/influxdb/pull/7135): Support enable HTTP service over unix domain socket. Thanks @oiooj
- [#7120](https://github.com/influxdata/influxdb/issues/7120): Add additional statistics to query executor.
- [#7115](https://github.com/influxdata/influxdb/issues/7115): Feature request: `influx inspect -export` should dump WAL files.
- [#7099](https://github.com/influxdata/influxdb/pull/7099): Implement text/csv content encoding for the response writer.
- [#6992](https://github.com/influxdata/influxdb/issues/6992): Support tools for running async queries.
- [#6962](https://github.com/influxdata/influxdb/issues/6962): Support ON and use default database for SHOW commands.
- [#6896](https://github.com/influxdata/influxdb/issues/6896): Correctly read in input from a non-interactive stream for the CLI.
- [#6894](https://github.com/influxdata/influxdb/issues/6894): Support `INFLUX_USERNAME` and `INFLUX_PASSWORD` for setting username/password in the CLI.
- [#6704](https://github.com/influxdata/influxdb/issues/6704): Optimize first/last when no group by interval is present.
- [#5955](https://github.com/influxdata/influxdb/issues/5955): Make regex work on field and dimension keys in SELECT clause.
- [#4461](https://github.com/influxdata/influxdb/issues/4461): Change default time boundaries for raw queries.
- [#3634](https://github.com/influxdata/influxdb/issues/3634): Support mixed duration units.
### Bugfixes
- [#7606](https://github.com/influxdata/influxdb/pull/7606): Avoid deadlock when `max-row-limit` is hit.
- [#7564](https://github.com/influxdata/influxdb/issues/7564): Fix incorrect grouping when multiple aggregates are used with sparse data.
- [#7548](https://github.com/influxdata/influxdb/issues/7548): Fix output duration units for SHOW QUERIES.
- [#7526](https://github.com/influxdata/influxdb/issues/7526): Truncate the version string when linking to the documentation.
- [#7494](https://github.com/influxdata/influxdb/issues/7494): influx_inspect: export does not escape field keys.
- [#7482](https://github.com/influxdata/influxdb/issues/7482): Fix issue where point would be written to wrong shard.
- [#7448](https://github.com/influxdata/influxdb/pull/7448): Fix Retention Policy Inconsistencies
- [#7436](https://github.com/influxdata/influxdb/issues/7436): Remove accidentally added string support for the stddev call.
- [#7431](https://github.com/influxdata/influxdb/issues/7431): Remove /data/process_continuous_queries endpoint.
- [#7392](https://github.com/influxdata/influxdb/pull/7392): Enable https subscriptions to work with custom CA certificates.
- [#7385](https://github.com/influxdata/influxdb/pull/7385): Reduce query planning allocations
- [#7382](https://github.com/influxdata/influxdb/issues/7382): Shard stats include wal path tag so disk bytes make more sense.
- [#7334](https://github.com/influxdata/influxdb/issues/7334): Panic with unread show series iterators during drop database
- [#7297](https://github.com/influxdata/influxdb/issues/7297): Use consistent column output from the CLI for column formatted responses.
- [#7285](https://github.com/influxdata/influxdb/issues/7285): Correctly use password-type field in Admin UI. Thanks @dandv!
- [#7231](https://github.com/influxdata/influxdb/issues/7231): Duplicate parsing bug in ALTER RETENTION POLICY.
- [#7226](https://github.com/influxdata/influxdb/issues/7226): Fix database locked up when deleting shards
- [#7196](https://github.com/influxdata/influxdb/issues/7196): Fix mmap dereferencing, fixes #7183, #7180
- [#7177](https://github.com/influxdata/influxdb/issues/7177): Fix base64 encoding issue with /debug/vars stats.
- [#7161](https://github.com/influxdata/influxdb/issues/7161): Drop measurement causes cache max memory exceeded error.
- [#7152](https://github.com/influxdata/influxdb/issues/7152): Decrement number of measurements only once when deleting the last series from a measurement.
- [#7053](https://github.com/influxdata/influxdb/issues/7053): Delete statement returns an error when retention policy or database is specified
- [#7013](https://github.com/influxdata/influxdb/issues/7013): Fix the dollar sign so it properly handles reserved keywords.
- [#2792](https://github.com/influxdata/influxdb/issues/2792): Exceeding max retention policy duration gives incorrect error message
- [#1834](https://github.com/influxdata/influxdb/issues/1834): Drop time when used as a tag or field key.
## v1.0.2 [2016-10-05]
### Bugfixes
- [#7391](https://github.com/influxdata/influxdb/issues/7391): Fix RLE integer decoding producing negative numbers
- [#7335](https://github.com/influxdata/influxdb/pull/7335): Avoid stat syscall when planning compactions
- [#7330](https://github.com/influxdata/influxdb/issues/7330): Subscription data loss under high write load
- [#7150](https://github.com/influxdata/influxdb/issues/7150): Do not automatically reset the shard duration when using ALTER RETENTION POLICY
- [#5878](https://github.com/influxdata/influxdb/issues/5878): Ensure correct shard groups created when retention policy has been altered.
## v1.0.1 [2016-09-26]
### Bugfixes
- [#7315](https://github.com/influxdata/influxdb/issues/7315): Prevent users from manually using system queries since incorrect use would result in a panic.
- [#7299](https://github.com/influxdata/influxdb/issues/7299): Ensure fieldsCreated stat available in shard measurement.
- [#7272](https://github.com/influxdata/influxdb/issues/7272): Report cmdline and memstats in /debug/vars.
- [#7271](https://github.com/influxdata/influxdb/issues/7271): Fixing typo within example configuration file. Thanks @andyfeller!
- [#7270](https://github.com/influxdata/influxdb/issues/7270): Implement time math for lazy time literals.
- [#7226](https://github.com/influxdata/influxdb/issues/7226): Fix database locked up when deleting shards
- [#7110](https://github.com/influxdata/influxdb/issues/7110): Skip past points at the same time in derivative call within a merged series.
- [#6846](https://github.com/influxdata/influxdb/issues/6846): Read an invalid JSON response as an error in the influx client.
## v1.0.0 [2016-09-08]
### Release Notes
### Breaking changes
* `max-series-per-database` was added with a default of 1M but can be disabled by setting it to `0`. Existing databases with series that exceed this limit will continue to load but writes that would create new series will fail.
* Config option `[cluster]` has been replaced with `[coordinator]`
* Support for config options `[collectd]` and `[opentsdb]` has been removed; use `[[collectd]]` and `[[opentsdb]]` instead.
* Config option `data-logging-enabled` within the `[data]` section, has been renamed to `trace-logging-enabled`, and defaults to `false`.
* The keywords `IF`, `EXISTS`, and `NOT` where removed for this release. This means you no longer need to specify `IF NOT EXISTS` for `DROP DATABASE` or `IF EXISTS` for `CREATE DATABASE`. If these are specified, a query parse error is returned.
* The Shard `writePointsFail` stat has been renamed to `writePointsErr` for consistency with other stats.
With this release the systemd configuration files for InfluxDB will use the system configured default for logging and will no longer write files to `/var/log/influxdb` by default. On most systems, the logs will be directed to the systemd journal and can be accessed by `journalctl -u influxdb.service`. Consult the systemd journald documentation for configuring journald.
### Features
- [#7199](https://github.com/influxdata/influxdb/pull/7199): Add mode function. Thanks @agaurav.
- [#7194](https://github.com/influxdata/influxdb/issues/7194): Support negative timestamps for the query engine.
- [#7172](https://github.com/influxdata/influxdb/pull/7172): Write path stats
- [#7095](https://github.com/influxdata/influxdb/pull/7095): Add MaxSeriesPerDatabase config setting.
- [#7065](https://github.com/influxdata/influxdb/issues/7065): Remove IF EXISTS/IF NOT EXISTS from influxql language.
- [#7050](https://github.com/influxdata/influxdb/pull/7050): Update go package library dependencies.
- [#7046](https://github.com/influxdata/influxdb/pull/7046): Add tsm file export to influx_inspect tool.
- [#7011](https://github.com/influxdata/influxdb/issues/7011): Create man pages for commands.
- [#6959](https://github.com/influxdata/influxdb/issues/6959): Return 403 Forbidden when authentication succeeds but authorization fails.
- [#6938](https://github.com/influxdata/influxdb/issues/6938): Added favicon
- [#6928](https://github.com/influxdata/influxdb/issues/6928): Run continuous query for multiple buckets rather than one per bucket.
- [#6909](https://github.com/influxdata/influxdb/issues/6909): Log the CQ execution time when continuous query logging is enabled.
- [#6900](https://github.com/influxdata/influxdb/pull/6900): Trim BOM from Windows Notepad-saved config files.
- [#6889](https://github.com/influxdata/influxdb/pull/6889): Update help and remove unused config options from the configuration file.
- [#6820](https://github.com/influxdata/influxdb/issues/6820): Add NodeID to execution options
- [#6812](https://github.com/influxdata/influxdb/pull/6812): Make httpd logger closer to Common (& combined) Log Format.
- [#6805](https://github.com/influxdata/influxdb/issues/6805): Allow any variant of the help option to trigger the help.
- [#6713](https://github.com/influxdata/influxdb/pull/6713): Reduce allocations during query parsing.
- [#6686](https://github.com/influxdata/influxdb/pull/6686): Optimize timestamp run-length decoding
- [#6664](https://github.com/influxdata/influxdb/pull/6664): Adds monitoring statistic for on-disk shard size.
- [#6655](https://github.com/influxdata/influxdb/issues/6655): Add HTTP(s) based subscriptions.
- [#6654](https://github.com/influxdata/influxdb/pull/6654): Add new HTTP statistics to monitoring
- [#6623](https://github.com/influxdata/influxdb/pull/6623): Speed up drop database
- [#6621](https://github.com/influxdata/influxdb/pull/6621): Add Holt-Winter forecasting function.
- [#6609](https://github.com/influxdata/influxdb/pull/6609): Add support for JWT token authentication.
- [#6593](https://github.com/influxdata/influxdb/pull/6593): Add ability to create snapshots of shards.
- [#6585](https://github.com/influxdata/influxdb/pull/6585): Parallelize iterators
- [#6559](https://github.com/influxdata/influxdb/issues/6559): Teach the http service how to enforce connection limits.
- [#6519](https://github.com/influxdata/influxdb/issues/6519): Support cast syntax for selecting a specific type.
- [#6507](https://github.com/influxdata/influxdb/issues/6507): Refactor monitor service to avoid expvar and write monitor statistics on a truncated time interval.
- [#5906](https://github.com/influxdata/influxdb/issues/5906): Dynamically update the documentation link in the admin UI.
- [#5750](https://github.com/influxdata/influxdb/issues/5750): Support wildcards in aggregate functions.
- [#5655](https://github.com/influxdata/influxdb/issues/5655): Support specifying a retention policy for the graphite service.
- [#5500](https://github.com/influxdata/influxdb/issues/5500): Add extra trace logging to tsm engine.
- [#5499](https://github.com/influxdata/influxdb/issues/5499): Add stats and diagnostics to the TSM engine.
- [#4532](https://github.com/influxdata/influxdb/issues/4532): Support regex selection in SHOW TAG VALUES for the key.
- [#3733](https://github.com/influxdata/influxdb/issues/3733): Modify the default retention policy name and make it configurable.
- [#3541](https://github.com/influxdata/influxdb/issues/3451): Update SHOW FIELD KEYS to return the field type with the field key.
- [#2926](https://github.com/influxdata/influxdb/issues/2926): Support bound parameters in the parser.
- [#1310](https://github.com/influxdata/influxdb/issues/1310): Add https-private-key option to httpd config.
- [#1110](https://github.com/influxdata/influxdb/issues/1110): Support loading a folder for collectd typesdb files.
### Bugfixes
- [#7243](https://github.com/influxdata/influxdb/issues/7243): Optimize queries that compare a tag value to an empty string.
- [#7240](https://github.com/influxdata/influxdb/issues/7240): Allow blank lines in the line protocol input.
- [#7225](https://github.com/influxdata/influxdb/issues/7225): runtime: goroutine stack exceeds 1000000000-byte limit
- [#7218](https://github.com/influxdata/influxdb/issues/7218): Fix alter retention policy when all options are used.
- [#7127](https://github.com/influxdata/influxdb/pull/7127): Concurrent series limit
- [#7125](https://github.com/influxdata/influxdb/pull/7125): Ensure gzip writer is closed in influx_inspect export
- [#7119](https://github.com/influxdata/influxdb/pull/7119): Fix CREATE DATABASE when dealing with default values.
- [#7088](https://github.com/influxdata/influxdb/pull/7088): Fix UDP pointsRx being incremented twice.
- [#7084](https://github.com/influxdata/influxdb/pull/7084): Tombstone memory improvements
- [#7081](https://github.com/influxdata/influxdb/issues/7081): Hardcode auto generated RP names to autogen
- [#7080](https://github.com/influxdata/influxdb/pull/7080): Ensure IDs can't clash when managing Continuous Queries.
- [#7074](https://github.com/influxdata/influxdb/issues/7074): Continuous full compactions
- [#7043](https://github.com/influxdata/influxdb/pull/7043): Remove limiter from walkShards
- [#7032](https://github.com/influxdata/influxdb/pull/7032): Copy tags in influx_stress to avoid a concurrent write panic on a map.
- [#7028](https://github.com/influxdata/influxdb/pull/7028): Do not run continuous queries that have no time span.
- [#7025](https://github.com/influxdata/influxdb/issues/7025): Move the CQ interval by the group by offset.
- [#6990](https://github.com/influxdata/influxdb/issues/6990): Fix panic parsing empty key
- [#6986](https://github.com/influxdata/influxdb/pull/6986): update connection settings when changing hosts in cli.
- [#6968](https://github.com/influxdata/influxdb/issues/6968): Always use the demo config when outputting a new config.
- [#6965](https://github.com/influxdata/influxdb/pull/6965): Minor improvements to init script. Removes sysvinit-utils as package dependency.
- [#6952](https://github.com/influxdata/influxdb/pull/6952): Fix compaction planning with large TSM files
- [#6946](https://github.com/influxdata/influxdb/issues/6946): Duplicate data for the same timestamp
- [#6942](https://github.com/influxdata/influxdb/pull/6942): Fix panic: truncate the slice when merging the caches.
- [#6934](https://github.com/influxdata/influxdb/pull/6934): Fix regex binary encoding for a measurement.
- [#6911](https://github.com/influxdata/influxdb/issues/6911): Fix fill(previous) when used with math operators.
- [#6883](https://github.com/influxdata/influxdb/pull/6883): Rename dumptsmdev to dumptsm in influx_inspect.
- [#6882](https://github.com/influxdata/influxdb/pull/6882): Remove a double lock in the tsm1 index writer.
- [#6869](https://github.com/influxdata/influxdb/issues/6869): Remove FieldCodec from tsdb package.
- [#6864](https://github.com/influxdata/influxdb/pull/6864): Allow a non-admin to call "use" for the influx cli.
- [#6859](https://github.com/influxdata/influxdb/issues/6859): Set the condition cursor instead of aux iterator when creating a nil condition cursor.
- [#6855](https://github.com/influxdata/influxdb/pull/6855): Update `stress/v2` to work with clusters, ssl, and username/password auth. Code cleanup
- [#6850](https://github.com/influxdata/influxdb/pull/6850): Modify the max nanosecond time to be one nanosecond less.
- [#6835](https://github.com/influxdata/influxdb/pull/6835): Include sysvinit-tools as an rpm dependency.
- [#6834](https://github.com/influxdata/influxdb/pull/6834): Add port to all graphite log output to help with debugging multiple endpoints
- [#6829](https://github.com/influxdata/influxdb/issues/6829): Fix panic: runtime error: index out of range
- [#6824](https://github.com/influxdata/influxdb/issues/6824): Remove systemd output redirection.
- [#6819](https://github.com/influxdata/influxdb/issues/6819): Database unresponsive after DROP MEASUREMENT
- [#6796](https://github.com/influxdata/influxdb/issues/6796): Out of Memory Error when Dropping Measurement
- [#6771](https://github.com/influxdata/influxdb/issues/6771): Fix the point validation parser to identify and sort tags correctly.
- [#6760](https://github.com/influxdata/influxdb/issues/6760): Prevent panic in concurrent auth cache write
- [#6756](https://github.com/influxdata/influxdb/issues/6756): Set X-Influxdb-Version header on every request (even 404 requests).
- [#6753](https://github.com/influxdata/influxdb/issues/6753): Prevent panic if there are no values.
- [#6738](https://github.com/influxdata/influxdb/issues/6738): Time sorting broken with overwritten points
- [#6727](https://github.com/influxdata/influxdb/issues/6727): queries with strings that look like dates end up with date types, not string types
- [#6720](https://github.com/influxdata/influxdb/issues/6720): Concurrent map read write panic. Thanks @arussellsaw
- [#6708](https://github.com/influxdata/influxdb/issues/6708): Drop writes from before the retention policy time window.
- [#6702](https://github.com/influxdata/influxdb/issues/6702): Fix SELECT statement required privileges.
- [#6701](https://github.com/influxdata/influxdb/issues/6701): Filter out sources that do not match the shard database/retention policy.
- [#6693](https://github.com/influxdata/influxdb/pull/6693): Truncate the shard group end time if it exceeds MaxNanoTime.
- [#6685](https://github.com/influxdata/influxdb/issues/6685): Batch SELECT INTO / CQ writes
- [#6683](https://github.com/influxdata/influxdb/issues/6683): Fix compaction planning re-compacting large TSM files
- [#6676](https://github.com/influxdata/influxdb/issues/6676): Ensures client sends correct precision when inserting points.
- [#6672](https://github.com/influxdata/influxdb/issues/6672): Accept points with trailing whitespace.
- [#6663](https://github.com/influxdata/influxdb/issues/6663): Fixing panic in SHOW FIELD KEYS.
- [#6661](https://github.com/influxdata/influxdb/issues/6661): Disable limit optimization when using an aggregate.
- [#6652](https://github.com/influxdata/influxdb/issues/6652): Fix panic: interface conversion: tsm1.Value is \*tsm1.StringValue, not \*tsm1.FloatValue
- [#6650](https://github.com/influxdata/influxdb/issues/6650): Data race when dropping a database immediately after writing to it
- [#6648](https://github.com/influxdata/influxdb/issues/6648): Make sure admin exists before authenticating query.
- [#6644](https://github.com/influxdata/influxdb/issues/6644): Print the query executor's stack trace on a panic to the log.
- [#6641](https://github.com/influxdata/influxdb/issues/6641): Fix read tombstones: EOF
- [#6629](https://github.com/influxdata/influxdb/issues/6629): query-log-enabled in config not ignored anymore.
- [#6624](https://github.com/influxdata/influxdb/issues/6624): Ensure clients requesting gzip encoded bodies don't receive empty body
- [#6618](https://github.com/influxdata/influxdb/pull/6618): Optimize shard loading
- [#6611](https://github.com/influxdata/influxdb/issues/6611): Queries slow down hundreds times after overwriting points
- [#6607](https://github.com/influxdata/influxdb/issues/6607): SHOW TAG VALUES accepts != and !~ in WHERE clause.
- [#6604](https://github.com/influxdata/influxdb/pull/6604): Remove old cluster code
- [#6599](https://github.com/influxdata/influxdb/issues/6599): Ensure that future points considered in SHOW queries.
- [#6595](https://github.com/influxdata/influxdb/issues/6595): Fix full compactions conflicting with level compactions
- [#6557](https://github.com/influxdata/influxdb/issues/6557): Overwriting points on large series can cause memory spikes during compactions
- [#6543](https://github.com/influxdata/influxdb/issues/6543): Fix parseFill to check for fill ident before attempting to parse an expression.
- [#6406](https://github.com/influxdata/influxdb/issues/6406): Max index entries exceeded
- [#6250](https://github.com/influxdata/influxdb/issues/6250): Slow startup time
- [#6235](https://github.com/influxdata/influxdb/issues/6235): Fix measurement field panic in tsm1 engine.
- [#5501](https://github.com/influxdata/influxdb/issues/5501): Queries against files that have just been compacted need to point to new files
- [#2048](https://github.com/influxdata/influxdb/issues/2048): Check that retention policies exist before creating CQ
## v0.13.0 [2016-05-12]
### Release Notes
With this release InfluxDB is moving to Go v1.6.
### Features
- [#6534](https://github.com/influxdata/influxdb/pull/6534): Move to Go v1.6.2 (over Go v1.4.3)
- [#6533](https://github.com/influxdata/influxdb/issues/6533): Optimize SHOW SERIES
- [#6522](https://github.com/influxdata/influxdb/pull/6522): Dump TSM files to line protocol
- [#6502](https://github.com/influxdata/influxdb/pull/6502): Add ability to copy shard via rpc calls. Remove deprecated copier service.
- [#6494](https://github.com/influxdata/influxdb/issues/6494): Support booleans for min() and max().
- [#6484](https://github.com/influxdata/influxdb/pull/6484): Query language support for DELETE
- [#6483](https://github.com/influxdata/influxdb/pull/6483): Delete series support for TSM
- [#6444](https://github.com/influxdata/influxdb/pull/6444): Allow setting the config path through an environment variable and default config path.
- [#6429](https://github.com/influxdata/influxdb/issues/6429): Log slow queries if they pass a configurable threshold.
- [#6394](https://github.com/influxdata/influxdb/pull/6394): Allow time math with integer timestamps.
- [#6334](https://github.com/influxdata/influxdb/pull/6334): Allow environment variables to be set per input type.
- [#6292](https://github.com/influxdata/influxdb/issues/6292): Allow percentile to be used as a selector.
- [#6290](https://github.com/influxdata/influxdb/issues/6290): Add POST /query endpoint and warning messages for using GET with write operations.
- [#6263](https://github.com/influxdata/influxdb/pull/6263): Reduce UDP Service allocation size.
- [#6237](https://github.com/influxdata/influxdb/issues/6237): Enable continuous integration testing on Windows platform via AppVeyor. Thanks @mvadu
- [#6228](https://github.com/influxdata/influxdb/pull/6228): Support for multiple listeners for collectd and OpenTSDB inputs.
- [#6213](https://github.com/influxdata/influxdb/pull/6213): Make logging output location more programmatically configurable.
- [#5707](https://github.com/influxdata/influxdb/issues/5707): Return a deprecated message when IF NOT EXISTS is used.
- [#5502](https://github.com/influxdata/influxdb/issues/5502): Add checksum verification to TSM inspect tool
- [#4675](https://github.com/influxdata/influxdb/issues/4675): Allow derivative() function to be used with ORDER BY desc.
- [#3558](https://github.com/influxdata/influxdb/issues/3558): Support field math inside a WHERE clause.
- [#3247](https://github.com/influxdata/influxdb/issues/3247): Implement derivatives across intervals for aggregate queries.
- [#3166](https://github.com/influxdata/influxdb/issues/3166): Sort the series keys inside of a tag set so output is deterministic.
- [#2074](https://github.com/influxdata/influxdb/issues/2074): Support offset argument in the GROUP BY time(...) call.
- [#1856](https://github.com/influxdata/influxdb/issues/1856): Add `elapsed` function that returns the time delta between subsequent points.
### Bugfixes
- [#6505](https://github.com/influxdata/influxdb/issues/6505): Add regex literal to InfluxQL spec for FROM clause.
- [#6496](https://github.com/influxdata/influxdb/issues/6496): Fix parsing escaped series key when loading database index
- [#6495](https://github.com/influxdata/influxdb/issues/6495): Fix aggregate returns when data is missing from some shards.
- [#6491](https://github.com/influxdata/influxdb/pull/6491): Fix the CLI not to enter an infinite loop when the liner has an error.
- [#6480](https://github.com/influxdata/influxdb/issues/6480): Fix SHOW statements' rewriting bug
- [#6477](https://github.com/influxdata/influxdb/pull/6477): Don't catch SIGQUIT or SIGHUP signals.
- [#6470](https://github.com/influxdata/influxdb/pull/6470): Remove SHOW SERVERS & DROP SERVER support
- [#6468](https://github.com/influxdata/influxdb/issues/6468): Panic with truncated wal segments
- [#6462](https://github.com/influxdata/influxdb/pull/6462): Add safer locking to CreateFieldIfNotExists
- [#6458](https://github.com/influxdata/influxdb/pull/6458): Make it clear when the CLI version is unknown.
- [#6457](https://github.com/influxdata/influxdb/issues/6457): Retention policy cleanup does not remove series
- [#6439](https://github.com/influxdata/influxdb/issues/6439): Overwriting points returning old values
- [#6427](https://github.com/influxdata/influxdb/pull/6427): Fix setting uint config options via env vars
- [#6425](https://github.com/influxdata/influxdb/pull/6425): Close idle tcp connections in HTTP client to prevent tcp conn leak.
- [#6419](https://github.com/influxdata/influxdb/issues/6419): Fix panic in transform iterator on division. @thbourlove
- [#6398](https://github.com/influxdata/influxdb/issues/6398): Fix CREATE RETENTION POLICY parsing so it doesn't consume tokens it shouldn't.
- [#6382](https://github.com/influxdata/influxdb/pull/6382): Removed dead code from the old query engine.
- [#6361](https://github.com/influxdata/influxdb/pull/6361): Fix cluster/pool release of connection
- [#6296](https://github.com/influxdata/influxdb/issues/6296): Allow the implicit time field to be renamed again.
- [#6294](https://github.com/influxdata/influxdb/issues/6294): Fix panic running influx_inspect info.
- [#6287](https://github.com/influxdata/influxdb/issues/6287): Fix data race in Influx Client.
- [#6283](https://github.com/influxdata/influxdb/pull/6283): Fix GROUP BY tag to produce consistent results when a series has no tags.
- [#6277](https://github.com/influxdata/influxdb/pull/6277): Fix deadlock in tsm1/file_store
- [#6270](https://github.com/influxdata/influxdb/issues/6270): tsm1 query engine alloc reduction
- [#6261](https://github.com/influxdata/influxdb/issues/6261): High CPU usage and slow query with DISTINCT
- [#6252](https://github.com/influxdata/influxdb/pull/6252): Remove TSDB listener accept message @simnv
- [#6202](https://github.com/influxdata/influxdb/pull/6202): Check default SHARD DURATION when recreating the same database.
- [#6109](https://github.com/influxdata/influxdb/issues/6109): Cache maximum memory size exceeded on startup
- [#5890](https://github.com/influxdata/influxdb/issues/5890): Return the time with a selector when there is no group by interval.
- [#3883](https://github.com/influxdata/influxdb/issues/3883): Improve query sanitization to prevent a password leak in the logs.
- [#3773](https://github.com/influxdata/influxdb/issues/3773): Support empty tags for all WHERE equality operations.
- [#3369](https://github.com/influxdata/influxdb/issues/3369): Detect when a timer literal will overflow or underflow the query engine.
## v0.12.2 [2016-04-20]
### Bugfixes
- [#6431](https://github.com/influxdata/influxdb/pull/6431): Fix panic in transform iterator on division. @thbourlove
- [#6414](https://github.com/influxdata/influxdb/pull/6414): Send "Connection: close" header for queries.
- [#6413](https://github.com/influxdata/influxdb/pull/6413): Prevent goroutine leak from persistent http connections. Thanks @aaronknister.
- [#6383](https://github.com/influxdata/influxdb/pull/6383): Recover from a panic during query execution.
- [#6379](https://github.com/influxdata/influxdb/issues/6379): Validate the first argument to percentile() is a variable.
- [#6271](https://github.com/influxdata/influxdb/issues/6271): Fixed deadlock in tsm1 file store.
## v0.12.1 [2016-04-08]
### Bugfixes
- [#6257](https://github.com/influxdata/influxdb/issues/6257): CreateShardGroup was incrementing meta data index even when it was idempotent.
- [#6248](https://github.com/influxdata/influxdb/issues/6248): Panic using incorrectly quoted "queries" field key.
- [#6229](https://github.com/influxdata/influxdb/issues/6229): Fixed aggregate queries with no GROUP BY to include the end time.
- [#6225](https://github.com/influxdata/influxdb/pull/6225): Refresh admin assets.
- [#6223](https://github.com/influxdata/influxdb/issues/6223): Failure to start/run on Windows. Thanks @mvadu
- [#6206](https://github.com/influxdata/influxdb/issues/6206): Handle nil values from the tsm1 cursor correctly.
- [#6190](https://github.com/influxdata/influxdb/pull/6190): Fix race on measurementFields.
## v0.12.0 [2016-04-05]
### Release Notes
Upgrading to this release requires a little more than just installing the new binary and starting it up. The upgrade process is very quick and should only require a minute of downtime or less. Details on [upgrading to 0.12 are here](https://docs.influxdata.com/influxdb/v0.12/administration/upgrading/).
This release removes all of the old clustering code. It operates as a standalone server. For a free open source HA setup see the [InfluxDB Relay](https://github.com/influxdata/influxdb-relay).
### Features
- [#6193](https://github.com/influxdata/influxdb/pull/6193): Fix TypeError when processing empty results in admin UI. Thanks @jonseymour!
- [#6166](https://github.com/influxdata/influxdb/pull/6166): Teach influxdb client how to use chunked queries and use in the CLI.
- [#6158](https://github.com/influxdata/influxdb/pull/6158): Update influxd to detect an upgrade from `0.11` to `0.12`. Minor restore bug fixes.
- [#6149](https://github.com/influxdata/influxdb/pull/6149): Kill running queries when server is shutdown.
- [#6148](https://github.com/influxdata/influxdb/pull/6148): Build script is now compatible with Python 3. Added ability to create detached signatures for packages. Build script now uses Python logging facility for messages.
- [#6116](https://github.com/influxdata/influxdb/pull/6116): Allow `httpd` service to be extensible for routes
- [#6115](https://github.com/influxdata/influxdb/issues/6115): Support chunking query results mid-series. Limit non-chunked output.
- [#6112](https://github.com/influxdata/influxdb/issues/6112): Implement simple moving average function.
- [#6111](https://github.com/influxdata/influxdb/pull/6111): Add ability to build static assest. Improved handling of TAR and ZIP package outputs.
- [#6102](https://github.com/influxdata/influxdb/issues/6102): Limit series count in selection
- [#6079](https://github.com/influxdata/influxdb/issues/6079): Limit the maximum number of concurrent queries.
- [#6078](https://github.com/influxdata/influxdb/issues/6078): Limit bucket count in selection.
- [#6077](https://github.com/influxdata/influxdb/issues/6077): Limit point count in selection.
- [#6075](https://github.com/influxdata/influxdb/issues/6075): Limit the maximum running time of a query.
- [#6073](https://github.com/influxdata/influxdb/pull/6073): Iterator stats
- [#6060](https://github.com/influxdata/influxdb/pull/6060): Add configurable shard duration to retention policies
- [#6025](https://github.com/influxdata/influxdb/pull/6025): Remove deprecated JSON write path.
- [#6012](https://github.com/influxdata/influxdb/pull/6012): Add DROP SHARD support.
- [#5939](https://github.com/influxdata/influxdb/issues/5939): Support viewing and killing running queries.
- [#5744](https://github.com/influxdata/influxdb/issues/5744): Add integer literal support to the query language.
- [#5372](https://github.com/influxdata/influxdb/pull/5372): Faster shard loading
- [#1825](https://github.com/influxdata/influxdb/issues/1825): Implement difference function.
### Bugfixes
- [#6178](https://github.com/influxdata/influxdb/issues/6178): Ensure SHARD DURATION is checked when recreating a retention policy
- [#6153](https://github.com/influxdata/influxdb/issues/6153): Check SHARD DURATION when recreating the same database
- [#6152](https://github.com/influxdata/influxdb/issues/6152): Allow SHARD DURATION to be specified in isolation when creating a database
- [#6140](https://github.com/influxdata/influxdb/issues/6140): Ensure Shard engine not accessed when closed.
- [#6131](https://github.com/influxdata/influxdb/issues/6061): Fix write throughput regression with large number of measurments
- [#6110](https://github.com/influxdata/influxdb/issues/6110): Fix for 0.9 upgrade path when using RPM
- [#6094](https://github.com/influxdata/influxdb/issues/6094): Ensure CREATE RETENTION POLICY and CREATE CONTINUOUS QUERY are idempotent in the correct way.
- [#6065](https://github.com/influxdata/influxdb/pull/6065): Wait for a process termination on influxdb restart @simnv
- [#6061](https://github.com/influxdata/influxdb/issues/6061): [0.12 / master] POST to /write does not write points if request has header 'Content-Type: application/x-www-form-urlencoded'
- [#5728](https://github.com/influxdata/influxdb/issues/5728): Properly handle semi-colons as part of the main query loop.
- [#5554](https://github.com/influxdata/influxdb/issues/5554): Can't run in alpine linux
- [#5252](https://github.com/influxdata/influxdb/issues/5252): Release tarballs contain specific attributes on '.'
- [#5152](https://github.com/influxdata/influxdb/issues/5152): Fix where filters when a tag and a filter are combined with OR.
## v0.11.1 [2016-03-31]
### Bugfixes
- [#6168](https://github.com/influxdata/influxdb/pull/6168): Remove per measurement statsitics
- [#6129](https://github.com/influxdata/influxdb/pull/6129): Fix default continuous query lease host
- [#6121](https://github.com/influxdata/influxdb/issues/6121): Fix panic: slice index out of bounds in TSM index
- [#6092](https://github.com/influxdata/influxdb/issues/6092): Upgrading directly from 0.9.6.1 to 0.11.0 fails
- [#3932](https://github.com/influxdata/influxdb/issues/3932): Invalid timestamp format should throw an error.
## v0.11.0 [2016-03-22]
### Release Notes
There were some important breaking changes in this release. Here's a list of the important things to know before upgrading:
* [SHOW SERIES output has changed](https://github.com/influxdata/influxdb/pull/5937). See [new output in this test diff](https://github.com/influxdata/influxdb/pull/5937/files#diff-0cb24c2b7420b4db507ee3496c371845L263).
* [SHOW TAG VALUES output has changed](https://github.com/influxdata/influxdb/pull/5853)
* JSON write endpoint is disabled by default and will be removed in the next release. You can [turn it back on](https://github.com/influxdata/influxdb/pull/5512) in this release.
* b1/bz1 shards are no longer supported. You must migrate all old shards to TSM using [the migration tool](https://github.com/influxdata/influxdb/blob/master/cmd/influx_tsm/README.md).
* On queries to create databases, retention policies, and users, the default behavior has changed to create `IF NOT EXISTS`. If they already exist, no error will be returned.
* On queries with a selector like `min`, `max`, `first`, and `last` the time returned will be the time for the bucket of the group by window. [Selectors for the time for the specific point](https://github.com/influxdata/influxdb/issues/5926) will be added later.
### Features
- [#5994](https://github.com/influxdata/influxdb/issues/5994): Single server
- [#5862](https://github.com/influxdata/influxdb/pull/5862): Make Admin UI dynamically fetch both client and server versions
- [#5844](https://github.com/influxdata/influxdb/pull/5844): Tag TSM engine stats with database and retention policy
- [#5758](https://github.com/influxdata/influxdb/pull/5758): TSM engine stats for cache, WAL, and filestore. Thanks @jonseymour
- [#5737](https://github.com/influxdata/influxdb/pull/5737): Admin UI: Display results of multiple queries, not just the first query. Thanks @Vidhuran!
- [#5720](https://github.com/influxdata/influxdb/pull/5720): Admin UI: New button to generate permalink to queries
- [#5706](https://github.com/influxdata/influxdb/pull/5706): Cluster setup cleanup
- [#5691](https://github.com/influxdata/influxdb/pull/5691): Remove associated shard data when retention policies are dropped.
- [#5681](https://github.com/influxdata/influxdb/pull/5681): Stats: Add durations, number currently active to httpd and query executor
- [#5666](https://github.com/influxdata/influxdb/pull/5666): Manage dependencies with gdm
- [#5602](https://github.com/influxdata/influxdb/pull/5602): Simplify cluster startup for scripting and deployment
- [#5598](https://github.com/influxdata/influxdb/pull/5598): Client: Add Ping to v2 client @PSUdaemon
- [#5596](https://github.com/influxdata/influxdb/pull/5596): Build improvements for ARM architectures. Also removed `--goarm` and `--pkgarch` build flags.
- [#5593](https://github.com/influxdata/influxdb/issues/5593): Modify `SHOW TAG VALUES` output for the new query engine to normalize the output.
- [#5562](https://github.com/influxdata/influxdb/pull/5562): Graphite: Support matching fields multiple times (@chrusty)
- [#5550](https://github.com/influxdata/influxdb/pull/5550): Enabled golint for tsdb/engine/wal. @gabelev
- [#5541](https://github.com/influxdata/influxdb/pull/5541): Client: Support for adding custom TLS Config for HTTP client.
- [#5512](https://github.com/influxdata/influxdb/pull/5512): HTTP: Add config option to enable HTTP JSON write path which is now disabled by default.
- [#5419](https://github.com/influxdata/influxdb/pull/5419): Graphite: Support matching tags multiple times Thanks @m4ce
- [#5336](https://github.com/influxdata/influxdb/pull/5366): Enabled golint for influxql. @gabelev
- [#4299](https://github.com/influxdata/influxdb/pull/4299): Client: Reject uint64 Client.Point.Field values. Thanks @arussellsaw
- [#4125](https://github.com/influxdata/influxdb/pull/4125): Admin UI: Fetch and display server version on connect. Thanks @alexiri!
- [#2715](https://github.com/influxdata/influxdb/issues/2715): Support using field regex comparisons in the WHERE clause
### Bugfixes
- [#6042](https://github.com/influxdata/influxdb/issues/6042): CreateDatabase failure on Windows, regression from v0.11.0 RC @mvadu
- [#6006](https://github.com/influxdata/influxdb/pull/6006): Fix deadlock while running backups
- [#5965](https://github.com/influxdata/influxdb/issues/5965): InfluxDB panic crashes while parsing "-" as Float
- [#5963](https://github.com/influxdata/influxdb/pull/5963): Fix possible deadlock
- [#5949](https://github.com/influxdata/influxdb/issues/5949): Return error message when improper types are used in SELECT
- [#5937](https://github.com/influxdata/influxdb/pull/5937): Rewrite SHOW SERIES to use query engine
- [#5924](https://github.com/influxdata/influxdb/issues/5924): Missing data after using influx\_tsm
- [#5889](https://github.com/influxdata/influxdb/issues/5889): Fix writing partial TSM index when flush file fails
- [#5880](https://github.com/influxdata/influxdb/issues/5880): TCP connection closed after write (regression/change from 0.9.6)
- [#5865](https://github.com/influxdata/influxdb/issues/5865): Conversion to tsm fails with exceeds max index value
- [#5854](https://github.com/influxdata/influxdb/issues/5854): failures of tests in tsdb/engine/tsm1 when compiled with go master
- [#5842](https://github.com/influxdata/influxdb/issues/5842): Add SeriesList binary marshaling
- [#5841](https://github.com/influxdata/influxdb/pull/5841): Reduce tsm allocations by converting time.Time to int64
- [#5835](https://github.com/influxdata/influxdb/issues/5835): Make CREATE USER default to IF NOT EXISTS
- [#5832](https://github.com/influxdata/influxdb/issues/5832): tsm: cache: need to check that snapshot has been sorted @jonseymour
- [#5814](https://github.com/influxdata/influxdb/issues/5814): Run CQs with the same name from different databases
- [#5787](https://github.com/influxdata/influxdb/pull/5787): HTTP: Add QueryAuthorizer instance to httpd service’s handler. @chris-ramon
- [#5754](https://github.com/influxdata/influxdb/issues/5754): Adding a node as meta only results in a data node also being registered
- [#5753](https://github.com/influxdata/influxdb/pull/5753): Ensures that drop-type commands work correctly in a cluster
- [#5724](https://github.com/influxdata/influxdb/issues/5724): influx\_tsm doesn't close file handles properly
- [#5719](https://github.com/influxdata/influxdb/issues/5719): Fix cache not deduplicating points
- [#5716](https://github.com/influxdata/influxdb/pull/5716): models: improve handling of points with empty field names or with no fields.
- [#5699](https://github.com/influxdata/influxdb/issues/5699): Fix potential thread safety issue in cache @jonseymour
- [#5696](https://github.com/influxdata/influxdb/issues/5696): Do not drop the database when creating with a retention policy
- [#5695](https://github.com/influxdata/influxdb/pull/5695): Remove meta servers from node.json
- [#5664](https://github.com/influxdata/influxdb/issues/5664): panic in model.Points.scanTo #5664
- [#5656](https://github.com/influxdata/influxdb/issues/5656): influx\_tsm: panic during conversion
- [#5628](https://github.com/influxdata/influxdb/issues/5628): Crashed the server with a bad derivative query
- [#5624](https://github.com/influxdata/influxdb/pull/5624): Fix golint issues in client v2 package @PSUDaemon
- [#5610](https://github.com/influxdata/influxdb/issues/5610): Write into fully-replicated cluster is not replicated across all shards
- [#5606](https://github.com/influxdata/influxdb/issues/5606): TSM conversion reproducibly drops data silently
- [#5594](https://github.com/influxdata/influxdb/pull/5594): Fix missing url params on lease redirect - @oldmantaiter
- [#5590](https://github.com/influxdata/influxdb/pull/5590): Fix panic when dropping subscription for unknown retention policy.
- [#5557](https://github.com/influxdata/influxdb/issues/5630): Fixes panic when surrounding the select statement arguments in brackets
- [#5535](https://github.com/influxdata/influxdb/pull/5535): Update README for referring to Collectd
- [#5532](https://github.com/influxdata/influxdb/issues/5532): user passwords not changeable in cluster
- [#5510](https://github.com/influxdata/influxdb/pull/5510): Optimize ReducePercentile @bsideup
- [#5489](https://github.com/influxdata/influxdb/pull/5489): Fixes multiple issues causing tests to fail on windows. Thanks @runner-mei
- [#5376](https://github.com/influxdata/influxdb/pull/5376): Fix golint issues in models package. @nuss-justin
- [#5375](https://github.com/influxdata/influxdb/pull/5375): Lint tsdb and tsdb/engine package @nuss-justin
- [#5182](https://github.com/influxdata/influxdb/pull/5182): Graphite: Fix an issue where the default template would be used instead of a more specific one. Thanks @flisky
- [#4688](https://github.com/influxdata/influxdb/issues/4688): admin UI doesn't display results for some SHOW queries
## v0.10.3 [2016-03-09]
### Bugfixes
- [#5924](https://github.com/influxdata/influxdb/issues/5924): Missing data after using influx\_tsm
- [#5716](https://github.com/influxdata/influxdb/pull/5716): models: improve handling of points with empty field names or with no fields.
- [#5594](https://github.com/influxdata/influxdb/pull/5594): Fix missing url params on lease redirect - @oldmantaiter
## v0.10.2 [2016-03-03]
### Bugfixes
- [#5880](https://github.com/influxdata/influxdb/issues/5880): TCP connection closed after write (regression/change from 0.9.6)
- [#5865](https://github.com/influxdata/influxdb/issues/5865): Conversion to tsm fails with exceeds max index value
- [#5861](https://github.com/influxdata/influxdb/pull/5861): Fix panic when dropping subscription for unknown retention policy.
- [#5857](https://github.com/influxdata/influxdb/issues/5857): panic in tsm1.Values.Deduplicate
- [#5832](https://github.com/influxdata/influxdb/issues/5832): tsm: cache: need to check that snapshot has been sorted @jonseymour
- [#5719](https://github.com/influxdata/influxdb/issues/5719): Fix cache not deduplicating points
- [#5699](https://github.com/influxdata/influxdb/issues/5699): Fix potential thread safety issue in cache @jonseymour
## v0.10.1 [2016-02-18]
### Bugfixes
- [#5724](https://github.com/influxdata/influxdb/issues/5724): influx\_tsm doesn't close file handles properly
- [#5696](https://github.com/influxdata/influxdb/issues/5696): Do not drop the database when creating with a retention policy
- [#5656](https://github.com/influxdata/influxdb/issues/5656): influx\_tsm: panic during conversion
- [#5606](https://github.com/influxdata/influxdb/issues/5606): TSM conversion reproducibly drops data silently
- [#5303](https://github.com/influxdata/influxdb/issues/5303): Protect against stateful mappers returning nothing in the raw executor
## v0.10.0 [2016-02-04]
### Release Notes
This release now uses the TSM storage engine. Old bz1 and b1 shards can still be read, but in a future release you will be required to migrate old shards to TSM. For new shards getting created, or new installations, the TSM storage engine will be used.
This release also changes how clusters are setup. The config file has changed so have a look at the new example. Also, upgrading a single node works, but for upgrading clusters, you'll need help from us. Sent us a note at contact@influxdb.com if you need assistance upgrading a cluster.
### Features
- [#5565](https://github.com/influxdata/influxdb/pull/5565): Add configuration for time precision with UDP services. - @tpitale
- [#5522](https://github.com/influxdata/influxdb/pull/5522): Optimize tsm1 cache to reduce memory consumption and GC scan time.
- [#5460](https://github.com/influxdata/influxdb/pull/5460): Prevent exponential growth in CLI history. Thanks @sczk!
- [#5459](https://github.com/influxdata/influxdb/pull/5459): Create `/status` endpoint for health checks.
- [#5226](https://github.com/influxdata/influxdb/pull/5226): b\*1 to tsm1 shard conversion tool.
- [#5226](https://github.com/influxdata/influxdb/pull/5226): b*1 to tsm1 shard conversion tool.
- [#5224](https://github.com/influxdata/influxdb/pull/5224): Online backup/incremental backup. Restore (for TSM).
- [#5201](https://github.com/influxdata/influxdb/pull/5201): Allow max UDP buffer size to be configurable. Thanks @sebito91
- [#5194](https://github.com/influxdata/influxdb/pull/5194): Custom continuous query options per query rather than per node.
- [#5183](https://github.com/influxdata/influxdb/pull/5183): CLI confirms database exists when USE executed. Thanks @pires
### Bugfixes
- [#5505](https://github.com/influxdata/influxdb/issues/5505): Clear authCache in meta.Client when password changes.
- [#5504](https://github.com/influxdata/influxdb/issues/5504): create retention policy on unexistant DB crash InfluxDB
- [#5479](https://github.com/influxdata/influxdb/issues/5479): Bringing up a node as a meta only node causes panic
- [#5478](https://github.com/influxdata/influxdb/issues/5478): panic: interface conversion: interface is float64, not int64
- [#5475](https://github.com/influxdata/influxdb/issues/5475): Ensure appropriate exit code returned for non-interactive use of CLI.
- [#5469](https://github.com/influxdata/influxdb/issues/5469): Conversion from bz1 to tsm doesn't work as described
- [#5455](https://github.com/influxdata/influxdb/issues/5455): panic: runtime error: slice bounds out of range when loading corrupted wal segment
- [#5449](https://github.com/influxdata/influxdb/issues/5449): panic when dropping collectd points
- [#5382](https://github.com/influxdata/influxdb/pull/5382): Fixes some escaping bugs with tag keys and values.
- [#5350](https://github.com/influxdata/influxdb/issues/5350): 'influxd backup' should create backup directory
- [#5349](https://github.com/influxdata/influxdb/issues/5349): Validate metadata blob for 'influxd backup'
- [#5264](https://github.com/influxdata/influxdb/pull/5264): Fix panic: runtime error: slice bounds out of range
- [#5262](https://github.com/influxdata/influxdb/issues/5262): Fix a panic when a tag value was empty.
- [#5244](https://github.com/influxdata/influxdb/issues/5244): panic: ensure it's safe to close engine multiple times.
- [#5193](https://github.com/influxdata/influxdb/issues/5193): Missing data a minute before current time. Comes back later.
- [#5186](https://github.com/influxdata/influxdb/pull/5186): Fix database creation with retention statement parsing. Fixes [#5077](https://github.com/influxdata/influxdb/issues/5077). Thanks @pires
- [#5178](https://github.com/influxdata/influxdb/pull/5178): SHOW FIELD shouldn't consider VALUES to be valid. Thanks @pires
- [#5158](https://github.com/influxdata/influxdb/pull/5158): Fix panic when writing invalid input to the line protocol.
- [#5129](https://github.com/influxdata/influxdb/pull/5129): Ensure precision flag is respected by CLI. Thanks @e-dard
- [#5079](https://github.com/influxdata/influxdb/pull/5079): Ensure tsm WAL encoding buffer can handle large batches.
- [#5078](https://github.com/influxdata/influxdb/issues/5078): influx non-interactive mode - INSERT must be handled. Thanks @grange74
- [#5064](https://github.com/influxdata/influxdb/pull/5064): Full support for parenthesis in SELECT clause, fixes [#5054](https://github.com/influxdata/influxdb/issues/5054). Thanks @mengjinglei
- [#5059](https://github.com/influxdata/influxdb/pull/5059): Fix unmarshal of database error by client code. Thanks @farshidtz
- [#5042](https://github.com/influxdata/influxdb/issues/5042): Count with fill(none) will drop 0 valued intervals.
- [#5016](https://github.com/influxdata/influxdb/pull/5016): Don't panic if Meta data directory not writable. Thanks @oiooj
- [#4940](https://github.com/influxdata/influxdb/pull/4940): Fix distributed aggregate query query error. Thanks @li-ang
- [#4735](https://github.com/influxdata/influxdb/issues/4735): Fix panic when merging empty results.
- [#4622](https://github.com/influxdata/influxdb/issues/4622): Fix panic when passing too large of timestamps to OpenTSDB input.
- [#4303](https://github.com/influxdata/influxdb/issues/4303): Don't drop measurements or series from multiple databases.
## v0.9.6 [2015-12-09]
### Release Notes
This release has an updated design and implementation of the TSM storage engine. If you had been using tsm1 as your storage engine prior to this release (either 0.9.5.x or 0.9.6 nightly builds) you will have to start with a fresh database.
If you had TSM configuration options set, those have been updated. See the the updated sample configuration for more details: https://github.com/influxdata/influxdb/blob/master/etc/config.sample.toml#L98-L125
### Features
- [#4790](https://github.com/influxdata/influxdb/pull/4790): Allow openTSDB point-level error logging to be disabled
- [#4728](https://github.com/influxdata/influxdb/pull/4728): SHOW SHARD GROUPS. By @mateuszdyminski
- [#4841](https://github.com/influxdata/influxdb/pull/4841): Improve point parsing speed. Lint models pacakge. Thanks @e-dard!
- [#4889](https://github.com/influxdata/influxdb/pull/4889): Implement close notifier and timeout on executors
- [#2676](https://github.com/influxdata/influxdb/issues/2676), [#4866](https://github.com/influxdata/influxdb/pull/4866): Add support for specifying default retention policy in database create. Thanks @pires!
- [#4848](https://github.com/influxdata/influxdb/pull/4848): Added framework for cluster integration testing.
- [#4872](https://github.com/influxdata/influxdb/pull/4872): Add option to disable logging for meta service.
- [#4787](https://github.com/influxdata/influxdb/issues/4787): Now builds on Solaris
### Bugfixes
- [#4849](https://github.com/influxdata/influxdb/issues/4849): Derivative works with count, mean, median, sum, first, last, max, min, and percentile.
- [#4984](https://github.com/influxdata/influxdb/pull/4984): Allow math on fields, fixes regression. Thanks @mengjinglei
- [#4666](https://github.com/influxdata/influxdb/issues/4666): Fix panic in derivative with invalid values.
- [#4404](https://github.com/influxdata/influxdb/issues/4404): Return better error for currently unsupported DELETE queries.
- [#4858](https://github.com/influxdata/influxdb/pull/4858): Validate nested aggregations in queries. Thanks @viru
- [#4921](https://github.com/influxdata/influxdb/pull/4921): Error responses should be JSON-formatted. Thanks @pires
- [#4974](https://github.com/influxdata/influxdb/issues/4974) Fix Data Race in TSDB when setting measurement field name
- [#4876](https://github.com/influxdata/influxdb/pull/4876): Complete lint for monitor and services packages. Thanks @e-dard!
- [#4833](https://github.com/influxdata/influxdb/pull/4833), [#4927](https://github.com/influxdata/influxdb/pull/4927): Fix SHOW MEASURMENTS for clusters. Thanks @li-ang!
- [#4918](https://github.com/influxdata/influxdb/pull/4918): Restore can hang, Fix [issue #4806](https://github.com/influxdata/influxdb/issues/4806). Thanks @oiooj
- [#4855](https://github.com/influxdata/influxdb/pull/4855): Fix race in TCP proxy shutdown. Thanks @runner-mei!
- [#4411](https://github.com/influxdata/influxdb/pull/4411): Add Access-Control-Expose-Headers to HTTP responses
- [#4768](https://github.com/influxdata/influxdb/pull/4768): CLI history skips blank lines. Thanks @pires
- [#4766](https://github.com/influxdata/influxdb/pull/4766): Update CLI usage output. Thanks @aneshas
- [#4804](https://github.com/influxdata/influxdb/pull/4804): Complete lint for services/admin. Thanks @nii236
- [#4796](https://github.com/influxdata/influxdb/pull/4796): Check point without fields. Thanks @CrazyJvm
- [#4815](https://github.com/influxdata/influxdb/pull/4815): Added `Time` field into aggregate output across the cluster. Thanks @li-ang
- [#4817](https://github.com/influxdata/influxdb/pull/4817): Fix Min,Max,Top,Bottom function when query distributed node. Thanks @mengjinglei
- [#4878](https://github.com/influxdata/influxdb/pull/4878): Fix String() function for several InfluxQL statement types
- [#4913](https://github.com/influxdata/influxdb/pull/4913): Fix b1 flush deadlock
- [#3170](https://github.com/influxdata/influxdb/issues/3170), [#4921](https://github.com/influxdata/influxdb/pull/4921): Database does not exist error is now JSON. Thanks @pires!
- [#5029](https://github.com/influxdata/influxdb/pull/5029): Drop UDP point on bad parse.
## v0.9.5 [2015-11-20]
### Release Notes
- Field names for the internal stats have been changed to be more inline with Go style.
- 0.9.5 is reverting to Go 1.4.2 due to unresolved issues with Go 1.5.1.
There are breaking changes in this release:
- The filesystem hierarchy for packages has been changed, namely:
- Binaries are now located in `/usr/bin` (previously `/opt/influxdb`)
- Configuration files are now located in `/etc/influxdb` (previously `/etc/opt/influxdb`)
- Data directories are now located in `/var/lib/influxdb` (previously `/var/opt/influxdb`)
- Scripts are now located in `/usr/lib/influxdb/scripts` (previously `/opt/influxdb`)
### Features
- [#4702](https://github.com/influxdata/influxdb/pull/4702): Support 'history' command at CLI
- [#4098](https://github.com/influxdata/influxdb/issues/4098): Enable `golint` on the code base - uuid subpackage
- [#4141](https://github.com/influxdata/influxdb/pull/4141): Control whether each query should be logged
- [#4065](https://github.com/influxdata/influxdb/pull/4065): Added precision support in cmd client. Thanks @sbouchex
- [#4140](https://github.com/influxdata/influxdb/pull/4140): Make storage engine configurable
- [#4161](https://github.com/influxdata/influxdb/pull/4161): Implement bottom selector function
- [#4204](https://github.com/influxdata/influxdb/pull/4204): Allow module-level selection for SHOW STATS
- [#4208](https://github.com/influxdata/influxdb/pull/4208): Allow module-level selection for SHOW DIAGNOSTICS
- [#4196](https://github.com/influxdata/influxdb/pull/4196): Export tsdb.Iterator
- [#4198](https://github.com/influxdata/influxdb/pull/4198): Add basic cluster-service stats
- [#4262](https://github.com/influxdata/influxdb/pull/4262): Allow configuration of UDP retention policy
- [#4265](https://github.com/influxdata/influxdb/pull/4265): Add statistics for Hinted-Handoff
- [#4284](https://github.com/influxdata/influxdb/pull/4284): Add exponential backoff for hinted-handoff failures
- [#4310](https://github.com/influxdata/influxdb/pull/4310): Support dropping non-Raft nodes. Work mostly by @corylanou
- [#4348](https://github.com/influxdata/influxdb/pull/4348): Public ApplyTemplate function for graphite parser.
- [#4178](https://github.com/influxdata/influxdb/pull/4178): Support fields in graphite parser. Thanks @roobert!
- [#4409](https://github.com/influxdata/influxdb/pull/4409): wire up INTO queries.
- [#4379](https://github.com/influxdata/influxdb/pull/4379): Auto-create database for UDP input.
- [#4375](https://github.com/influxdata/influxdb/pull/4375): Add Subscriptions so data can be 'forked' out of InfluxDB to another third party.
- [#4506](https://github.com/influxdata/influxdb/pull/4506): Register with Enterprise service and upload stats, if token is available.
- [#4516](https://github.com/influxdata/influxdb/pull/4516): Hinted-handoff refactor, with new statistics and diagnostics
- [#4501](https://github.com/influxdata/influxdb/pull/4501): Allow filtering SHOW MEASUREMENTS by regex.
- [#4547](https://github.com/influxdata/influxdb/pull/4547): Allow any node to be dropped, even a raft node (even the leader).
- [#4600](https://github.com/influxdata/influxdb/pull/4600): ping endpoint can wait for leader
- [#4648](https://github.com/influxdata/influxdb/pull/4648): UDP Client (v2 client)
- [#4690](https://github.com/influxdata/influxdb/pull/4690): SHOW SHARDS now includes database and policy. Thanks @pires
- [#4676](https://github.com/influxdata/influxdb/pull/4676): UDP service listener performance enhancements
- [#4659](https://github.com/influxdata/influxdb/pull/4659): Support IF EXISTS for DROP DATABASE. Thanks @ch33hau
- [#4721](https://github.com/influxdata/influxdb/pull/4721): Export tsdb.InterfaceValues
- [#4681](https://github.com/influxdata/influxdb/pull/4681): Increase default buffer size for collectd and graphite listeners
- [#4685](https://github.com/influxdata/influxdb/pull/4685): Automatically promote node to raft peer if drop server results in removing a raft peer.
- [#4846](https://github.com/influxdata/influxdb/pull/4846): Allow NaN as a valid value on the graphite service; discard these points silently (graphite compatibility). Thanks @jsternberg!
### Bugfixes
- [#4193](https://github.com/influxdata/influxdb/issues/4193): Less than or equal to inequality is not inclusive for time in where clause
- [#4235](https://github.com/influxdata/influxdb/issues/4235): "ORDER BY DESC" doesn't properly order
- [#4789](https://github.com/influxdata/influxdb/pull/4789): Decode WHERE fields during aggregates. Fix [issue #4701](https://github.com/influxdata/influxdb/issues/4701).
- [#4778](https://github.com/influxdata/influxdb/pull/4778): If there are no points to count, count is 0.
- [#4715](https://github.com/influxdata/influxdb/pull/4715): Fix panic during Raft-close. Fix [issue #4707](https://github.com/influxdata/influxdb/issues/4707). Thanks @oiooj
- [#4643](https://github.com/influxdata/influxdb/pull/4643): Fix panic during backup restoration. Thanks @oiooj
- [#4632](https://github.com/influxdata/influxdb/pull/4632): Fix parsing of IPv6 hosts in client package. Thanks @miguelxpn
- [#4389](https://github.com/influxdata/influxdb/pull/4389): Don't add a new segment file on each hinted-handoff purge cycle.
- [#4166](https://github.com/influxdata/influxdb/pull/4166): Fix parser error on invalid SHOW
- [#3457](https://github.com/influxdata/influxdb/issues/3457): [0.9.3] cannot select field names with prefix + "." that match the measurement name
- [#4704](https://github.com/influxdata/influxdb/pull/4704). Tighten up command parsing within CLI. Thanks @pires
- [#4225](https://github.com/influxdata/influxdb/pull/4225): Always display diags in name-sorted order
- [#4111](https://github.com/influxdata/influxdb/pull/4111): Update pre-commit hook for go vet composites
- [#4136](https://github.com/influxdata/influxdb/pull/4136): Return an error-on-write if target retention policy does not exist. Thanks for the report @ymettier
- [#4228](https://github.com/influxdata/influxdb/pull/4228): Add build timestamp to version information.
- [#4124](https://github.com/influxdata/influxdb/issues/4124): Missing defer/recover/panic idiom in HTTPD service
- [#4238](https://github.com/influxdata/influxdb/pull/4238): Fully disable hinted-handoff service if so requested.
- [#4165](https://github.com/influxdata/influxdb/pull/4165): Tag all Go runtime stats when writing to internal database.
- [#4586](https://github.com/influxdata/influxdb/pull/4586): Exit when invalid engine is selected
- [#4118](https://github.com/influxdata/influxdb/issues/4118): Return consistent, correct result for SHOW MEASUREMENTS with multiple AND conditions
- [#4191](https://github.com/influxdata/influxdb/pull/4191): Correctly marshal remote mapper responses. Fixes [#4170](https://github.com/influxdata/influxdb/issues/4170)
- [#4222](https://github.com/influxdata/influxdb/pull/4222): Graphite TCP connections should not block shutdown
- [#4180](https://github.com/influxdata/influxdb/pull/4180): Cursor & SelectMapper Refactor
- [#1577](https://github.com/influxdata/influxdb/issues/1577): selectors (e.g. min, max, first, last) should have equivalents to return the actual point
- [#4264](https://github.com/influxdata/influxdb/issues/4264): Refactor map functions to use list of values
- [#4278](https://github.com/influxdata/influxdb/pull/4278): Fix error marshalling across the cluster
- [#4149](https://github.com/influxdata/influxdb/pull/4149): Fix derivative unnecessarily requires aggregate function. Thanks @peekeri!
- [#4674](https://github.com/influxdata/influxdb/pull/4674): Fix panic during restore. Thanks @simcap.
- [#4725](https://github.com/influxdata/influxdb/pull/4725): Don't list deleted shards during SHOW SHARDS.
- [#4237](https://github.com/influxdata/influxdb/issues/4237): DERIVATIVE() edge conditions
- [#4263](https://github.com/influxdata/influxdb/issues/4263): derivative does not work when data is missing
- [#4293](https://github.com/influxdata/influxdb/pull/4293): Ensure shell is invoked when touching PID file. Thanks @christopherjdickson
- [#4296](https://github.com/influxdata/influxdb/pull/4296): Reject line protocol ending with '-'. Fixes [#4272](https://github.com/influxdata/influxdb/issues/4272)
- [#4333](https://github.com/influxdata/influxdb/pull/4333): Retry monitor storage creation and storage only on Leader.
- [#4276](https://github.com/influxdata/influxdb/issues/4276): Walk DropSeriesStatement & check for empty sources
- [#4465](https://github.com/influxdata/influxdb/pull/4465): Actually display a message if the CLI can't connect to the database.
- [#4342](https://github.com/influxdata/influxdb/pull/4342): Fix mixing aggregates and math with non-aggregates. Thanks @kostya-sh.
- [#4349](https://github.com/influxdata/influxdb/issues/4349): If HH can't unmarshal a block, skip that block.
- [#4502](https://github.com/influxdata/influxdb/pull/4502): Don't crash on Graphite close, if Graphite not fully open. Thanks for the report @ranjib
- [#4354](https://github.com/influxdata/influxdb/pull/4353): Fully lock node queues during hinted handoff. Fixes one cause of missing data on clusters.
- [#4357](https://github.com/influxdata/influxdb/issues/4357): Fix similar float values encoding overflow Thanks @dgryski!
- [#4344](https://github.com/influxdata/influxdb/issues/4344): Make client.Write default to client.precision if none is given.
- [#3429](https://github.com/influxdata/influxdb/issues/3429): Incorrect parsing of regex containing '/'
- [#4374](https://github.com/influxdata/influxdb/issues/4374): Add tsm1 quickcheck tests
- [#4644](https://github.com/influxdata/influxdb/pull/4644): Check for response errors during token check, fixes issue [#4641](https://github.com/influxdata/influxdb/issues/4641)
- [#4377](https://github.com/influxdata/influxdb/pull/4377): Hinted handoff should not process dropped nodes
- [#4365](https://github.com/influxdata/influxdb/issues/4365): Prevent panic in DecodeSameTypeBlock
- [#4280](https://github.com/influxdata/influxdb/issues/4280): Only drop points matching WHERE clause
- [#4443](https://github.com/influxdata/influxdb/pull/4443): Fix race condition while listing store's shards. Fixes [#4442](https://github.com/influxdata/influxdb/issues/4442)
- [#4410](https://github.com/influxdata/influxdb/pull/4410): Fix infinite recursion in statement string(). Thanks @kostya-sh
- [#4360](https://github.com/influxdata/influxdb/issues/4360): Aggregate Selectors overwrite values during post-processing
- [#4421](https://github.com/influxdata/influxdb/issues/4421): Fix line protocol accepting tags with no values
- [#4434](https://github.com/influxdata/influxdb/pull/4434): Allow 'E' for scientific values. Fixes [#4433](https://github.com/influxdata/influxdb/issues/4433)
- [#4431](https://github.com/influxdata/influxdb/issues/4431): Add tsm1 WAL QuickCheck
- [#4438](https://github.com/influxdata/influxdb/pull/4438): openTSDB service shutdown fixes
- [#4447](https://github.com/influxdata/influxdb/pull/4447): Fixes to logrotate file. Thanks @linsomniac.
- [#3820](https://github.com/influxdata/influxdb/issues/3820): Fix js error in admin UI.
- [#4460](https://github.com/influxdata/influxdb/issues/4460): tsm1 meta lint
- [#4415](https://github.com/influxdata/influxdb/issues/4415): Selector (like max, min, first, etc) return a string instead of timestamp
- [#4472](https://github.com/influxdata/influxdb/issues/4472): Fix 'too many points in GROUP BY interval' error
- [#4475](https://github.com/influxdata/influxdb/issues/4475): Fix SHOW TAG VALUES error message.
- [#4486](https://github.com/influxdata/influxdb/pull/4486): Fix missing comments for runner package
- [#4497](https://github.com/influxdata/influxdb/pull/4497): Fix sequence in meta proto
- [#3367](https://github.com/influxdata/influxdb/issues/3367): Negative timestamps are parsed correctly by the line protocol.
- [#4563](https://github.com/influxdata/influxdb/pull/4536): Fix broken subscriptions updates.
- [#4538](https://github.com/influxdata/influxdb/issues/4538): Dropping database under a write load causes panics
- [#4582](https://github.com/influxdata/influxdb/pull/4582): Correct logging tags in cluster and TCP package. Thanks @oiooj
- [#4513](https://github.com/influxdata/influxdb/issues/4513): TSM1: panic: runtime error: index out of range
- [#4521](https://github.com/influxdata/influxdb/issues/4521): TSM1: panic: decode of short block: got 1, exp 9
- [#4587](https://github.com/influxdata/influxdb/pull/4587): Prevent NaN float values from being stored
- [#4596](https://github.com/influxdata/influxdb/pull/4596): Skip empty string for start position when parsing line protocol @Thanks @ch33hau
- [#4610](https://github.com/influxdata/influxdb/pull/4610): Make internal stats names consistent with Go style.
- [#4625](https://github.com/influxdata/influxdb/pull/4625): Correctly handle bad write requests. Thanks @oiooj.
- [#4650](https://github.com/influxdata/influxdb/issues/4650): Importer should skip empty lines
- [#4651](https://github.com/influxdata/influxdb/issues/4651): Importer doesn't flush out last batch
- [#4602](https://github.com/influxdata/influxdb/issues/4602): Fixes data race between PointsWriter and Subscriber services.
- [#4691](https://github.com/influxdata/influxdb/issues/4691): Enable toml test `TestConfig_Encode`.
- [#4283](https://github.com/influxdata/influxdb/pull/4283): Disable HintedHandoff if configuration is not set.
- [#4703](https://github.com/influxdata/influxdb/pull/4703): Complete lint for cmd/influx. Thanks @pablolmiranda
## v0.9.4 [2015-09-14]
### Release Notes
With this release InfluxDB is moving to Go 1.5.
### Features
- [#4050](https://github.com/influxdata/influxdb/pull/4050): Add stats to collectd
- [#3771](https://github.com/influxdata/influxdb/pull/3771): Close idle Graphite TCP connections
- [#3755](https://github.com/influxdata/influxdb/issues/3755): Add option to build script. Thanks @fg2it
- [#3863](https://github.com/influxdata/influxdb/pull/3863): Move to Go 1.5
- [#3892](https://github.com/influxdata/influxdb/pull/3892): Support IF NOT EXISTS for CREATE DATABASE
- [#3916](https://github.com/influxdata/influxdb/pull/3916): New statistics and diagnostics support. Graphite first to be instrumented.
- [#3901](https://github.com/influxdata/influxdb/pull/3901): Add consistency level option to influx cli Thanks @takayuki
- [#4048](https://github.com/influxdata/influxdb/pull/4048): Add statistics to Continuous Query service
- [#4049](https://github.com/influxdata/influxdb/pull/4049): Add stats to the UDP input
- [#3876](https://github.com/influxdata/influxdb/pull/3876): Allow the following syntax in CQs: INTO "1hPolicy".:MEASUREMENT
- [#3975](https://github.com/influxdata/influxdb/pull/3975): Add shard copy service
- [#3986](https://github.com/influxdata/influxdb/pull/3986): Support sorting by time desc
- [#3930](https://github.com/influxdata/influxdb/pull/3930): Wire up TOP aggregate function - fixes [#1821](https://github.com/influxdata/influxdb/issues/1821)
- [#4045](https://github.com/influxdata/influxdb/pull/4045): Instrument cluster-level points writer
- [#3996](https://github.com/influxdata/influxdb/pull/3996): Add statistics to httpd package
- [#4003](https://github.com/influxdata/influxdb/pull/4033): Add logrotate configuration.
- [#4043](https://github.com/influxdata/influxdb/pull/4043): Add stats and batching to openTSDB input
- [#4042](https://github.com/influxdata/influxdb/pull/4042): Add pending batches control to batcher
- [#4006](https://github.com/influxdata/influxdb/pull/4006): Add basic statistics for shards
- [#4072](https://github.com/influxdata/influxdb/pull/4072): Add statistics for the WAL.
### Bugfixes
- [#4042](https://github.com/influxdata/influxdb/pull/4042): Set UDP input batching defaults as needed.
- [#3785](https://github.com/influxdata/influxdb/issues/3785): Invalid time stamp in graphite metric causes panic
- [#3804](https://github.com/influxdata/influxdb/pull/3804): init.d script fixes, fixes issue 3803.
- [#3823](https://github.com/influxdata/influxdb/pull/3823): Deterministic ordering for first() and last()
- [#3869](https://github.com/influxdata/influxdb/issues/3869): Seemingly deadlocked when ingesting metrics via graphite plugin
- [#3856](https://github.com/influxdata/influxdb/pull/3856): Minor changes to retention enforcement.
- [#3884](https://github.com/influxdata/influxdb/pull/3884): Fix two panics in WAL that can happen at server startup
- [#3868](https://github.com/influxdata/influxdb/pull/3868): Add shell option to start the daemon on CentOS. Thanks @SwannCroiset.
- [#3886](https://github.com/influxdata/influxdb/pull/3886): Prevent write timeouts due to lock contention in WAL
- [#3574](https://github.com/influxdata/influxdb/issues/3574): Querying data node causes panic
- [#3913](https://github.com/influxdata/influxdb/issues/3913): Convert meta shard owners to objects
- [#4026](https://github.com/influxdata/influxdb/pull/4026): Support multiple Graphite inputs. Fixes issue [#3636](https://github.com/influxdata/influxdb/issues/3636)
- [#3927](https://github.com/influxdata/influxdb/issues/3927): Add WAL lock to prevent timing lock contention
- [#3928](https://github.com/influxdata/influxdb/issues/3928): Write fails for multiple points when tag starts with quote
- [#3901](https://github.com/influxdata/influxdb/pull/3901): Unblock relaxed write consistency level Thanks @takayuki!
- [#3950](https://github.com/influxdata/influxdb/pull/3950): Limit bz1 quickcheck tests to 10 iterations on CI
- [#3977](https://github.com/influxdata/influxdb/pull/3977): Silence wal logging during testing
- [#3931](https://github.com/influxdata/influxdb/pull/3931): Don't precreate shard groups entirely in the past
- [#3960](https://github.com/influxdata/influxdb/issues/3960): possible "catch up" bug with nodes down in a cluster
- [#3980](https://github.com/influxdata/influxdb/pull/3980): 'service stop' waits until service actually stops. Fixes issue #3548.
- [#4016](https://github.com/influxdata/influxdb/pull/4016): Shutdown Graphite UDP on SIGTERM.
- [#4034](https://github.com/influxdata/influxdb/pull/4034): Rollback bolt tx on mapper open error
- [#3848](https://github.com/influxdata/influxdb/issues/3848): restart influxdb causing panic
- [#3881](https://github.com/influxdata/influxdb/issues/3881): panic: runtime error: invalid memory address or nil pointer dereference
- [#3926](https://github.com/influxdata/influxdb/issues/3926): First or last value of `GROUP BY time(x)` is often null. Fixed by [#4038](https://github.com/influxdata/influxdb/pull/4038)
- [#4053](https://github.com/influxdata/influxdb/pull/4053): Prohibit dropping default retention policy.
- [#4060](https://github.com/influxdata/influxdb/pull/4060): Don't log EOF error in openTSDB input.
- [#3978](https://github.com/influxdata/influxdb/issues/3978): [0.9.3] (regression) cannot use GROUP BY * with more than a single field in SELECT clause
- [#4058](https://github.com/influxdata/influxdb/pull/4058): Disable bz1 recompression
- [#3902](https://github.com/influxdata/influxdb/issues/3902): [0.9.3] DB should not crash when using invalid expression "GROUP BY time"
- [#3718](https://github.com/influxdata/influxdb/issues/3718): Derivative query with group by time but no aggregate function should fail parse
## v0.9.3 [2015-08-26]
### Release Notes
There are breaking changes in this release.
- To store data points as integers you must now append `i` to the number if using the line protocol.
- If you have a UDP input configured, you should check the UDP section of [the new sample configuration file](https://github.com/influxdata/influxdb/blob/master/etc/config.sample.toml) to learn how to modify existing configuration files, as 0.9.3 now expects multiple UDP inputs.
- Configuration files must now have an entry for `wal-dir` in the `[data]` section. Check [new sample configuration file](https://github.com/influxdata/influxdb/blob/master/etc/config.sample.toml) for more details.
- The implicit `GROUP BY *` that was added to every `SELECT *` has been removed. Instead any tags in the data are now part of the columns in the returned query.
Please see the *Features* section below for full details.
### Features
- [#3376](https://github.com/influxdata/influxdb/pull/3376): Support for remote shard query mapping
- [#3372](https://github.com/influxdata/influxdb/pull/3372): Support joining nodes to existing cluster
- [#3426](https://github.com/influxdata/influxdb/pull/3426): Additional logging for continuous queries. Thanks @jhorwit2
- [#3478](https://github.com/influxdata/influxdb/pull/3478): Support incremental cluster joins
- [#3519](https://github.com/influxdata/influxdb/pull/3519): **--BREAKING CHANGE--** Update line protocol to require trailing i for field values that are integers
- [#3529](https://github.com/influxdata/influxdb/pull/3529): Add TLS support for OpenTSDB plugin. Thanks @nathanielc
- [#3421](https://github.com/influxdata/influxdb/issues/3421): Should update metastore and cluster if IP or hostname changes
- [#3502](https://github.com/influxdata/influxdb/pull/3502): Importer for 0.8.9 data via the CLI
- [#3564](https://github.com/influxdata/influxdb/pull/3564): Fix alias, maintain column sort order
- [#3585](https://github.com/influxdata/influxdb/pull/3585): Additional test coverage for non-existent fields
- [#3246](https://github.com/influxdata/influxdb/issues/3246): Allow overriding of configuration parameters using environment variables
- [#3599](https://github.com/influxdata/influxdb/pull/3599): **--BREAKING CHANGE--** Support multiple UDP inputs. Thanks @tpitale
- [#3636](https://github.com/influxdata/influxdb/pull/3639): Cap auto-created retention policy replica count at 3
- [#3641](https://github.com/influxdata/influxdb/pull/3641): Logging enhancements and single-node rename
- [#3635](https://github.com/influxdata/influxdb/pull/3635): Add build branch to version output.
- [#3115](https://github.com/influxdata/influxdb/pull/3115): Various init.d script improvements. Thanks @KoeSystems.
- [#3628](https://github.com/influxdata/influxdb/pull/3628): Wildcard expansion of tags and fields for raw queries
- [#3721](https://github.com/influxdata/influxdb/pull/3721): interpret number literals compared against time as nanoseconds from epoch
- [#3514](https://github.com/influxdata/influxdb/issues/3514): Implement WAL outside BoltDB with compaction
- [#3544](https://github.com/influxdata/influxdb/pull/3544): Implement compression on top of BoltDB
- [#3795](https://github.com/influxdata/influxdb/pull/3795): Throttle import
- [#3584](https://github.com/influxdata/influxdb/pull/3584): Import/export documenation
### Bugfixes
- [#3405](https://github.com/influxdata/influxdb/pull/3405): Prevent database panic when fields are missing. Thanks @jhorwit2
- [#3411](https://github.com/influxdata/influxdb/issues/3411): 500 timeout on write
- [#3420](https://github.com/influxdata/influxdb/pull/3420): Catch opentsdb malformed tags. Thanks @nathanielc.
- [#3404](https://github.com/influxdata/influxdb/pull/3404): Added support for escaped single quotes in query string. Thanks @jhorwit2
- [#3414](https://github.com/influxdata/influxdb/issues/3414): Shard mappers perform query re-writing
- [#3525](https://github.com/influxdata/influxdb/pull/3525): check if fields are valid during parse time.
- [#3511](https://github.com/influxdata/influxdb/issues/3511): Sending a large number of tag causes panic
- [#3288](https://github.com/influxdata/influxdb/issues/3288): Run go fuzz on the line-protocol input
- [#3545](https://github.com/influxdata/influxdb/issues/3545): Fix parsing string fields with newlines
- [#3579](https://github.com/influxdata/influxdb/issues/3579): Revert breaking change to `client.NewClient` function
- [#3580](https://github.com/influxdata/influxdb/issues/3580): Do not allow wildcards with fields in select statements
- [#3530](https://github.com/influxdata/influxdb/pull/3530): Aliasing a column no longer works
- [#3436](https://github.com/influxdata/influxdb/issues/3436): Fix panic in hinted handoff queue processor
- [#3401](https://github.com/influxdata/influxdb/issues/3401): Derivative on non-numeric fields panics db
- [#3583](https://github.com/influxdata/influxdb/issues/3583): Inserting value in scientific notation with a trailing i causes panic
- [#3611](https://github.com/influxdata/influxdb/pull/3611): Fix query arithmetic with integers
- [#3326](https://github.com/influxdata/influxdb/issues/3326): simple regex query fails with cryptic error
- [#3618](https://github.com/influxdata/influxdb/pull/3618): Fix collectd stats panic on i386. Thanks @richterger
- [#3625](https://github.com/influxdata/influxdb/pull/3625): Don't panic when aggregate and raw queries are in a single statement
- [#3629](https://github.com/influxdata/influxdb/pull/3629): Use sensible batching defaults for Graphite.
- [#3638](https://github.com/influxdata/influxdb/pull/3638): Cluster config fixes and removal of meta.peers config field
- [#3640](https://github.com/influxdata/influxdb/pull/3640): Shutdown Graphite service when signal received.
- [#3632](https://github.com/influxdata/influxdb/issues/3632): Make single-node host renames more seamless
- [#3656](https://github.com/influxdata/influxdb/issues/3656): Silence snapshotter logger for testing
- [#3651](https://github.com/influxdata/influxdb/pull/3651): Fully remove series when dropped.
- [#3517](https://github.com/influxdata/influxdb/pull/3517): Batch CQ writes to avoid timeouts. Thanks @dim.
- [#3522](https://github.com/influxdata/influxdb/pull/3522): Consume CQ results on request timeouts. Thanks @dim.
- [#3646](https://github.com/influxdata/influxdb/pull/3646): Fix nil FieldCodec panic.
- [#3672](https://github.com/influxdata/influxdb/pull/3672): Reduce in-memory index by 20%-30%
- [#3673](https://github.com/influxdata/influxdb/pull/3673): Improve query performance by removing unnecessary tagset sorting.
- [#3676](https://github.com/influxdata/influxdb/pull/3676): Improve query performance by memomizing mapper output keys.
- [#3686](https://github.com/influxdata/influxdb/pull/3686): Ensure 'p' parameter is not logged, even on OPTIONS requests.
- [#3687](https://github.com/influxdata/influxdb/issues/3687): Fix panic: runtime error: makeslice: len out of range in hinted handoff
- [#3697](https://github.com/influxdata/influxdb/issues/3697): Correctly merge non-chunked results for same series. Fix issue #3242.
- [#3708](https://github.com/influxdata/influxdb/issues/3708): Fix double escaping measurement name during cluster replication
- [#3704](https://github.com/influxdata/influxdb/issues/3704): cluster replication issue for measurement name containing backslash
- [#3681](https://github.com/influxdata/influxdb/issues/3681): Quoted measurement names fail
- [#3681](https://github.com/influxdata/influxdb/issues/3682): Fix inserting string value with backslashes
- [#3735](https://github.com/influxdata/influxdb/issues/3735): Append to small bz1 blocks
- [#3736](https://github.com/influxdata/influxdb/pull/3736): Update shard group duration with retention policy changes. Thanks for the report @papylhomme
- [#3539](https://github.com/influxdata/influxdb/issues/3539): parser incorrectly accepts NaN as numerical value, but not always
- [#3790](https://github.com/influxdata/influxdb/pull/3790): Fix line protocol parsing equals in measurements and NaN values
- [#3778](https://github.com/influxdata/influxdb/pull/3778): Don't panic if SELECT on time.
- [#3824](https://github.com/influxdata/influxdb/issues/3824): tsdb.Point.MarshalBinary needs to support all number types
- [#3828](https://github.com/influxdata/influxdb/pull/3828): Support all number types when decoding a point
- [#3853](https://github.com/influxdata/influxdb/pull/3853): Use 4KB default block size for bz1
- [#3607](https://github.com/influxdata/influxdb/issues/3607): Fix unable to query influxdb due to deadlock in metastore. Thanks @ccutrer!
## v0.9.2 [2015-07-24]
### Features
- [#3177](https://github.com/influxdata/influxdb/pull/3177): Client supports making HTTPS requests. Thanks @jipperinbham
- [#3299](https://github.com/influxdata/influxdb/pull/3299): Refactor query engine for distributed query support.
- [#3334](https://github.com/influxdata/influxdb/pull/3334): Clean shutdown of influxd. Thanks @mcastilho
### Bugfixes
- [#3180](https://github.com/influxdata/influxdb/pull/3180): Log GOMAXPROCS, version, and commit on startup.
- [#3218](https://github.com/influxdata/influxdb/pull/3218): Allow write timeouts to be configurable.
- [#3184](https://github.com/influxdata/influxdb/pull/3184): Support basic auth in admin interface. Thanks @jipperinbham!
- [#3236](https://github.com/influxdata/influxdb/pull/3236): Fix display issues in admin interface.
- [#3232](https://github.com/influxdata/influxdb/pull/3232): Set logging prefix for metastore.
- [#3230](https://github.com/influxdata/influxdb/issues/3230): panic: unable to parse bool value
- [#3245](https://github.com/influxdata/influxdb/issues/3245): Error using graphite plugin with multiple filters
- [#3223](https://github.com/influxdata/influxdb/issues/323): default graphite template cannot have extra tags
- [#3255](https://github.com/influxdata/influxdb/pull/3255): Flush WAL on start-up as soon as possible.
- [#3289](https://github.com/influxdata/influxdb/issues/3289): InfluxDB crashes on floats without decimal
- [#3298](https://github.com/influxdata/influxdb/pull/3298): Corrected WAL & flush parameters in default config. Thanks @jhorwit2
- [#3152](https://github.com/influxdata/influxdb/issues/3159): High CPU Usage with unsorted writes
- [#3307](https://github.com/influxdata/influxdb/pull/3307): Fix regression parsing boolean values True/False
- [#3304](https://github.com/influxdata/influxdb/pull/3304): Fixed httpd logger to log user from query params. Thanks @jhorwit2
- [#3332](https://github.com/influxdata/influxdb/pull/3332): Add SLIMIT and SOFFSET to string version of AST.
- [#3335](https://github.com/influxdata/influxdb/pull/3335): Don't drop all data on DROP DATABASE. Thanks to @PierreF for the report
- [#2761](https://github.com/influxdata/influxdb/issues/2761): Make SHOW RETENTION POLICIES consistent with other queries.
- [#3356](https://github.com/influxdata/influxdb/pull/3356): Disregard semicolons after database name in use command. Thanks @timraymond.
- [#3351](https://github.com/influxdata/influxdb/pull/3351): Handle malformed regex comparisons during parsing. Thanks @rnubel
- [#3244](https://github.com/influxdata/influxdb/pull/3244): Wire up admin privilege grant and revoke.
- [#3259](https://github.com/influxdata/influxdb/issues/3259): Respect privileges for queries.
- [#3256](https://github.com/influxdata/influxdb/pull/3256): Remove unnecessary timeout in WaitForLeader(). Thanks @cannium.
- [#3380](https://github.com/influxdata/influxdb/issues/3380): Parser fix, only allow ORDER BY ASC and ORDER BY time ASC.
- [#3319](https://github.com/influxdata/influxdb/issues/3319): restarting process irrevocably BREAKS measurements with spaces
- [#3453](https://github.com/influxdata/influxdb/issues/3453): Remove outdated `dump` command from CLI.
- [#3463](https://github.com/influxdata/influxdb/issues/3463): Fix aggregate queries and time precision on where clauses.
## v0.9.1 [2015-07-02]
### Features
- [2650](https://github.com/influxdata/influxdb/pull/2650): Add SHOW GRANTS FOR USER statement. Thanks @n1tr0g.
- [3125](https://github.com/influxdata/influxdb/pull/3125): Graphite Input Protocol Parsing
- [2746](https://github.com/influxdata/influxdb/pull/2746): New Admin UI/interface
- [3036](https://github.com/influxdata/influxdb/pull/3036): Write Ahead Log (WAL)
- [3014](https://github.com/influxdata/influxdb/issues/3014): Implement Raft snapshots
### Bugfixes
- [3013](https://github.com/influxdata/influxdb/issues/3013): Panic error with inserting values with commas
- [#2956](https://github.com/influxdata/influxdb/issues/2956): Type mismatch in derivative
- [#2908](https://github.com/influxdata/influxdb/issues/2908): Field mismatch error messages need to be updated
- [#2931](https://github.com/influxdata/influxdb/pull/2931): Services and reporting should wait until cluster has leader.
- [#2943](https://github.com/influxdata/influxdb/issues/2943): Ensure default retention policies are fully replicated
- [#2948](https://github.com/influxdata/influxdb/issues/2948): Field mismatch error message to include measurement name
- [#2919](https://github.com/influxdata/influxdb/issues/2919): Unable to insert negative floats
- [#2935](https://github.com/influxdata/influxdb/issues/2935): Hook CPU and memory profiling back up.
- [#2960](https://github.com/influxdata/influxdb/issues/2960): Cluster Write Errors.
- [#2928](https://github.com/influxdata/influxdb/pull/2928): Start work to set InfluxDB version in HTTP response headers. Thanks @neonstalwart.
- [#2969](https://github.com/influxdata/influxdb/pull/2969): Actually set HTTP version in responses.
- [#2993](https://github.com/influxdata/influxdb/pull/2993): Don't log each UDP batch.
- [#2994](https://github.com/influxdata/influxdb/pull/2994): Don't panic during wilcard expansion if no default database specified.
- [#3002](https://github.com/influxdata/influxdb/pull/3002): Remove measurement from shard's index on DROP MEASUREMENT.
- [#3021](https://github.com/influxdata/influxdb/pull/3021): Correct set HTTP write trace logging. Thanks @vladlopes.
- [#3027](https://github.com/influxdata/influxdb/pull/3027): Enforce minimum retention policy duration of 1 hour.
- [#3030](https://github.com/influxdata/influxdb/pull/3030): Fix excessive logging of shard creation.
- [#3038](https://github.com/influxdata/influxdb/pull/3038): Don't check deleted shards for precreation. Thanks @vladlopes.
- [#3033](https://github.com/influxdata/influxdb/pull/3033): Add support for marshaling `uint64` in client.
- [#3090](https://github.com/influxdata/influxdb/pull/3090): Remove database from TSDB index on DROP DATABASE.
- [#2944](https://github.com/influxdata/influxdb/issues/2944): Don't require "WHERE time" when creating continuous queries.
- [#3075](https://github.com/influxdata/influxdb/pull/3075): GROUP BY correctly when different tags have same value.
- [#3078](https://github.com/influxdata/influxdb/pull/3078): Fix CLI panic on malformed INSERT.
- [#2102](https://github.com/influxdata/influxdb/issues/2102): Re-work Graphite input and metric processing
- [#2996](https://github.com/influxdata/influxdb/issues/2996): Graphite Input Parsing
- [#3136](https://github.com/influxdata/influxdb/pull/3136): Fix various issues with init.d script. Thanks @ miguelcnf.
- [#2996](https://github.com/influxdata/influxdb/issues/2996): Graphite Input Parsing
- [#3127](https://github.com/influxdata/influxdb/issues/3127): Trying to insert a number larger than the largest signed 64-bit number kills influxd
- [#3131](https://github.com/influxdata/influxdb/pull/3131): Copy batch tags to each point before marshalling
- [#3155](https://github.com/influxdata/influxdb/pull/3155): Instantiate UDP batcher before listening for UDP traffic, otherwise a panic may result.
- [#2678](https://github.com/influxdata/influxdb/issues/2678): Server allows tags with an empty string for the key and/or value
- [#3061](https://github.com/influxdata/influxdb/issues/3061): syntactically incorrect line protocol insert panics the database
- [#2608](https://github.com/influxdata/influxdb/issues/2608): drop measurement while writing points to that measurement has race condition that can panic
- [#3183](https://github.com/influxdata/influxdb/issues/3183): using line protocol measurement names cannot contain commas
- [#3193](https://github.com/influxdata/influxdb/pull/3193): Fix panic for SHOW STATS and in collectd
- [#3102](https://github.com/influxdata/influxdb/issues/3102): Add authentication cache
- [#3209](https://github.com/influxdata/influxdb/pull/3209): Dump Run() errors to stderr
- [#3217](https://github.com/influxdata/influxdb/pull/3217): Allow WAL partition flush delay to be configurable.
## v0.9.0 [2015-06-11]
### Bugfixes
- [#2869](https://github.com/influxdata/influxdb/issues/2869): Adding field to existing measurement causes panic
- [#2849](https://github.com/influxdata/influxdb/issues/2849): RC32: Frequent write errors
- [#2700](https://github.com/influxdata/influxdb/issues/2700): Incorrect error message in database EncodeFields
- [#2897](https://github.com/influxdata/influxdb/pull/2897): Ensure target Graphite database exists
- [#2898](https://github.com/influxdata/influxdb/pull/2898): Ensure target openTSDB database exists
- [#2895](https://github.com/influxdata/influxdb/pull/2895): Use Graphite input defaults where necessary
- [#2900](https://github.com/influxdata/influxdb/pull/2900): Use openTSDB input defaults where necessary
- [#2886](https://github.com/influxdata/influxdb/issues/2886): Refactor backup & restore
- [#2804](https://github.com/influxdata/influxdb/pull/2804): BREAKING: change time literals to be single quoted in InfluxQL. Thanks @nvcook42!
- [#2906](https://github.com/influxdata/influxdb/pull/2906): Restrict replication factor to the cluster size
- [#2905](https://github.com/influxdata/influxdb/pull/2905): Restrict clusters to 3 peers
- [#2904](https://github.com/influxdata/influxdb/pull/2904): Re-enable server reporting.
- [#2917](https://github.com/influxdata/influxdb/pull/2917): Fix int64 field values.
- [#2920](https://github.com/influxdata/influxdb/issues/2920): Ensure collectd database exists
## v0.9.0-rc33 [2015-06-09]
### Bugfixes
- [#2816](https://github.com/influxdata/influxdb/pull/2816): Enable UDP service. Thanks @renan-
- [#2824](https://github.com/influxdata/influxdb/pull/2824): Add missing call to WaitGroup.Done in execConn. Thanks @liyichao
- [#2823](https://github.com/influxdata/influxdb/pull/2823): Convert OpenTSDB to a service.
- [#2838](https://github.com/influxdata/influxdb/pull/2838): Set auto-created retention policy period to infinite.
- [#2829](https://github.com/influxdata/influxdb/pull/2829): Re-enable Graphite support as a new Service-style component.
- [#2814](https://github.com/influxdata/influxdb/issues/2814): Convert collectd to a service.
- [#2852](https://github.com/influxdata/influxdb/pull/2852): Don't panic when altering retention policies. Thanks for the report @huhongbo
- [#2857](https://github.com/influxdata/influxdb/issues/2857): Fix parsing commas in string field values.
- [#2833](https://github.com/influxdata/influxdb/pull/2833): Make the default config valid.
- [#2859](https://github.com/influxdata/influxdb/pull/2859): Fix panic on aggregate functions.
- [#2878](https://github.com/influxdata/influxdb/pull/2878): Re-enable shard precreation.
- [2865](https://github.com/influxdata/influxdb/pull/2865) -- Return an empty set of results if database does not exist in shard metadata.
### Features
- [2858](https://github.com/influxdata/influxdb/pull/2858): Support setting openTSDB write consistency.
## v0.9.0-rc32 [2015-06-07]
### Release Notes
This released introduced an updated write path and clustering design. The data format has also changed, so you'll need to wipe out your data to upgrade from RC31. There should be no other data changes before v0.9.0 is released.
### Features
- [#1997](https://github.com/influxdata/influxdb/pull/1997): Update SELECT * to return tag values.
- [#2599](https://github.com/influxdata/influxdb/issues/2599): Add "epoch" URL param and return JSON time values as epoch instead of date strings.
- [#2682](https://github.com/influxdata/influxdb/issues/2682): Adding pr checklist to CONTRIBUTING.md
- [#2683](https://github.com/influxdata/influxdb/issues/2683): Add batching support to Graphite inputs.
- [#2687](https://github.com/influxdata/influxdb/issues/2687): Add batching support to Collectd inputs.
- [#2696](https://github.com/influxdata/influxdb/pull/2696): Add line protocol. This is now the preferred way to write data.
- [#2751](https://github.com/influxdata/influxdb/pull/2751): Add UDP input. UDP only supports the line protocol now.
- [#2684](https://github.com/influxdata/influxdb/pull/2684): Include client timeout configuration. Thanks @vladlopes!
### Bugfixes
- [#2776](https://github.com/influxdata/influxdb/issues/2776): Re-implement retention policy enforcement.
- [#2635](https://github.com/influxdata/influxdb/issues/2635): Fix querying against boolean field in WHERE clause.
- [#2644](https://github.com/influxdata/influxdb/issues/2644): Make SHOW queries work with FROM /<regex>/.
- [#2501](https://github.com/influxdata/influxdb/issues/2501): Name the FlagSet for the shell and add a version flag. Thanks @neonstalwart
- [#2647](https://github.com/influxdata/influxdb/issues/2647): Fixes typos in sample config file - thanks @claws!
## v0.9.0-rc31 [2015-05-21]
### Features
- [#1822](https://github.com/influxdata/influxdb/issues/1822): Wire up DERIVATIVE aggregate
- [#1477](https://github.com/influxdata/influxdb/issues/1477): Wire up non_negative_derivative function
- [#2557](https://github.com/influxdata/influxdb/issues/2557): Fix false positive error with `GROUP BY time`
- [#1891](https://github.com/influxdata/influxdb/issues/1891): Wire up COUNT DISTINCT aggregate
- [#1989](https://github.com/influxdata/influxdb/issues/1989): Implement `SELECT tagName FROM m`
### Bugfixes
- [#2545](https://github.com/influxdata/influxdb/pull/2545): Use "value" as the field name for graphite input. Thanks @cannium.
- [#2558](https://github.com/influxdata/influxdb/pull/2558): Fix client response check - thanks @vladlopes!
- [#2566](https://github.com/influxdata/influxdb/pull/2566): Wait until each data write has been commited by the Raft cluster.
- [#2602](https://github.com/influxdata/influxdb/pull/2602): CLI execute command exits without cleaning up liner package.
- [#2610](https://github.com/influxdata/influxdb/pull/2610): Fix shard group creation
- [#2596](https://github.com/influxdata/influxdb/pull/2596): RC30: `panic: runtime error: index out of range` when insert data points.
- [#2592](https://github.com/influxdata/influxdb/pull/2592): Should return an error if user attempts to group by a field.
- [#2499](https://github.com/influxdata/influxdb/pull/2499): Issuing a select query with tag as a values causes panic.
- [#2612](https://github.com/influxdata/influxdb/pull/2612): Query planner should validate distinct is passed a field.
- [#2531](https://github.com/influxdata/influxdb/issues/2531): Fix select with 3 or more terms in where clause.
- [#2564](https://github.com/influxdata/influxdb/issues/2564): Change "name" to "measurement" in JSON for writes.
## PRs
- [#2569](https://github.com/influxdata/influxdb/pull/2569): Add derivative functions
- [#2598](https://github.com/influxdata/influxdb/pull/2598): Implement tag support in SELECT statements
- [#2624](https://github.com/influxdata/influxdb/pull/2624): Remove references to SeriesID in `DROP SERIES` handlers.
## v0.9.0-rc30 [2015-05-12]
### Release Notes
This release has a breaking API change for writes -- the field previously called `timestamp` has been renamed to `time`.
### Features
- [#2254](https://github.com/influxdata/influxdb/pull/2254): Add Support for OpenTSDB HTTP interface. Thanks @tcolgate
- [#2525](https://github.com/influxdata/influxdb/pull/2525): Serve broker diagnostics over HTTP
- [#2186](https://github.com/influxdata/influxdb/pull/2186): The default status code for queries is now `200 OK`
- [#2298](https://github.com/influxdata/influxdb/pull/2298): Successful writes now return a status code of `204 No Content` - thanks @neonstalwart!
- [#2549](https://github.com/influxdata/influxdb/pull/2549): Raft election timeout to 5 seconds, so system is more forgiving of CPU loads.
- [#2568](https://github.com/influxdata/influxdb/pull/2568): Wire up SELECT DISTINCT.
### Bugfixes
- [#2535](https://github.com/influxdata/influxdb/pull/2535): Return exit status 0 if influxd already running. Thanks @haim0n.
- [#2521](https://github.com/influxdata/influxdb/pull/2521): Don't truncate topic data until fully replicated.
- [#2509](https://github.com/influxdata/influxdb/pull/2509): Parse config file correctly during restore. Thanks @neonstalwart
- [#2536](https://github.com/influxdata/influxdb/issues/2532): Set leader ID on restart of single-node cluster.
- [#2448](https://github.com/influxdata/influxdb/pull/2448): Fix inconsistent data type - thanks @cannium!
- [#2108](https://github.com/influxdata/influxdb/issues/2108): Change `timestamp` to `time` - thanks @neonstalwart!
- [#2539](https://github.com/influxdata/influxdb/issues/2539): Add additional vote request logging.
- [#2541](https://github.com/influxdata/influxdb/issues/2541): Update messaging client connection index with every message.
- [#2542](https://github.com/influxdata/influxdb/issues/2542): Throw parser error for invalid aggregate without where time.
- [#2548](https://github.com/influxdata/influxdb/issues/2548): Return an error when numeric aggregate applied to non-numeric data.
- [#2487](https://github.com/influxdata/influxdb/issues/2487): Aggregate query with exact timestamp causes panic. Thanks @neonstalwart!
- [#2552](https://github.com/influxdata/influxdb/issues/2552): Run CQ that is actually passed into go-routine.
- [#2553](https://github.com/influxdata/influxdb/issues/2553): Fix race condition during CQ execution.
- [#2557](https://github.com/influxdata/influxdb/issues/2557): RC30 WHERE time filter Regression.
## v0.9.0-rc29 [2015-05-05]
### Features
- [#2410](https://github.com/influxdata/influxdb/pull/2410): If needed, brokers respond with data nodes for peer shard replication.
- [#2469](https://github.com/influxdata/influxdb/pull/2469): Reduce default max topic size from 1GB to 50MB.
- [#1824](https://github.com/influxdata/influxdb/pull/1824): Wire up MEDIAN aggregate. Thanks @neonstalwart!
### Bugfixes
- [#2446](https://github.com/influxdata/influxdb/pull/2446): Correctly count number of queries executed. Thanks @neonstalwart
- [#2452](https://github.com/influxdata/influxdb/issues/2452): Fix panic with shard stats on multiple clusters
- [#2453](https://github.com/influxdata/influxdb/pull/2453): Do not require snapshot on Log.WriteEntriesTo().
- [#2460](https://github.com/influxdata/influxdb/issues/2460): Collectd input should use "value" for fields values. Fixes 2412. Thanks @josh-padnick
- [#2465](https://github.com/influxdata/influxdb/pull/2465): HTTP response logging paniced with chunked requests. Thanks @Jackkoz
- [#2475](https://github.com/influxdata/influxdb/pull/2475): RLock server when checking if shards groups are required during write.
- [#2471](https://github.com/influxdata/influxdb/issues/2471): Function calls normalized to be lower case. Fixes percentile not working when called uppercase. Thanks @neonstalwart
- [#2281](https://github.com/influxdata/influxdb/issues/2281): Fix Bad Escape error when parsing regex
## v0.9.0-rc28 [2015-04-27]
### Features
- [#2410](https://github.com/influxdata/influxdb/pull/2410) Allow configuration of Raft timers
- [#2354](https://github.com/influxdata/influxdb/pull/2354) Wire up STDDEV. Thanks @neonstalwart!
### Bugfixes
- [#2374](https://github.com/influxdata/influxdb/issues/2374): Two different panics during SELECT percentile
- [#2404](https://github.com/influxdata/influxdb/pull/2404): Mean and percentile function fixes
- [#2408](https://github.com/influxdata/influxdb/pull/2408): Fix snapshot 500 error
- [#1896](https://github.com/influxdata/influxdb/issues/1896): Excessive heartbeater logging of "connection refused" on cluster node stop
- [#2418](https://github.com/influxdata/influxdb/pull/2418): Fix raft node getting stuck in candidate state
- [#2415](https://github.com/influxdata/influxdb/pull/2415): Raft leader ID now set on election after failover. Thanks @xiaost
- [#2426](https://github.com/influxdata/influxdb/pull/2426): Fix race condition around listener address in openTSDB server.
- [#2426](https://github.com/influxdata/influxdb/pull/2426): Fix race condition around listener address in Graphite server.
- [#2429](https://github.com/influxdata/influxdb/pull/2429): Ensure no field value is null.
- [#2431](https://github.com/influxdata/influxdb/pull/2431): Always append shard path in diags. Thanks @marcosnils
- [#2441](https://github.com/influxdata/influxdb/pull/2441): Correctly release server RLock during "drop series".
- [#2445](https://github.com/influxdata/influxdb/pull/2445): Read locks and data race fixes
## v0.9.0-rc27 [04-23-2015]
### Features
- [#2398](https://github.com/influxdata/influxdb/pull/2398) Track more stats and report errors for shards.
### Bugfixes
- [#2370](https://github.com/influxdata/influxdb/pull/2370): Fix data race in openTSDB endpoint.
- [#2371](https://github.com/influxdata/influxdb/pull/2371): Don't set client to nil when closing broker Fixes #2352
- [#2372](https://github.com/influxdata/influxdb/pull/2372): Fix data race in graphite endpoint.
- [#2373](https://github.com/influxdata/influxdb/pull/2373): Actually allow HTTP logging to be controlled.
- [#2376](https://github.com/influxdata/influxdb/pull/2376): Encode all types of integers. Thanks @jtakkala.
- [#2376](https://github.com/influxdata/influxdb/pull/2376): Add shard path to existing diags value. Fix issue #2369.
- [#2386](https://github.com/influxdata/influxdb/pull/2386): Fix shard datanodes stats getting appended too many times
- [#2393](https://github.com/influxdata/influxdb/pull/2393): Fix default hostname for connecting to cluster.
- [#2390](https://github.com/influxdata/influxdb/pull/2390): Handle large sums when calculating means - thanks @neonstalwart!
- [#2391](https://github.com/influxdata/influxdb/pull/2391): Unable to write points through Go client when authentication enabled
- [#2400](https://github.com/influxdata/influxdb/pull/2400): Always send auth headers for client requests if present
## v0.9.0-rc26 [04-21-2015]
### Features
- [#2301](https://github.com/influxdata/influxdb/pull/2301): Distributed query load balancing and failover
- [#2336](https://github.com/influxdata/influxdb/pull/2336): Handle distributed queries when shards != data nodes
- [#2353](https://github.com/influxdata/influxdb/pull/2353): Distributed Query/Clustering Fixes
### Bugfixes
- [#2297](https://github.com/influxdata/influxdb/pull/2297): create /var/run during startup. Thanks @neonstalwart.
- [#2312](https://github.com/influxdata/influxdb/pull/2312): Re-use httpclient for continuous queries
- [#2318](https://github.com/influxdata/influxdb/pull/2318): Remove pointless use of 'done' channel for collectd.
- [#2242](https://github.com/influxdata/influxdb/pull/2242): Distributed Query should balance requests
- [#2243](https://github.com/influxdata/influxdb/pull/2243): Use Limit Reader instead of fixed 1MB/1GB slice for DQ
- [#2190](https://github.com/influxdata/influxdb/pull/2190): Implement failover to other data nodes for distributed queries
- [#2324](https://github.com/influxdata/influxdb/issues/2324): Race in Broker.Close()/Broker.RunContinousQueryProcessing()
- [#2325](https://github.com/influxdata/influxdb/pull/2325): Cluster open fixes
- [#2326](https://github.com/influxdata/influxdb/pull/2326): Fix parse error in CREATE CONTINUOUS QUERY
- [#2300](https://github.com/influxdata/influxdb/pull/2300): Refactor integration tests. Properly close Graphite/OpenTSDB listeners.
- [#2338](https://github.com/influxdata/influxdb/pull/2338): Fix panic if tag key isn't double quoted when it should have been
- [#2340](https://github.com/influxdata/influxdb/pull/2340): Fix SHOW DIAGNOSTICS panic if any shard was non-local.
- [#2351](https://github.com/influxdata/influxdb/pull/2351): Fix data race by rlocking shard during diagnostics.
- [#2348](https://github.com/influxdata/influxdb/pull/2348): Data node fail to join cluster in 0.9.0rc25
- [#2343](https://github.com/influxdata/influxdb/pull/2343): Node falls behind Metastore updates
- [#2334](https://github.com/influxdata/influxdb/pull/2334): Test Partial replication is very problematic
- [#2272](https://github.com/influxdata/influxdb/pull/2272): clustering: influxdb 0.9.0-rc23 panics when doing a GET with merge_metrics in a
- [#2350](https://github.com/influxdata/influxdb/pull/2350): Issue fix for :influxd -hostname localhost.
- [#2367](https://github.com/influxdata/influxdb/pull/2367): PR for issue #2350 - Always use localhost, not host name.
## v0.9.0-rc25 [2015-04-15]
### Bugfixes
- [#2282](https://github.com/influxdata/influxdb/pull/2282): Use "value" as field name for OpenTSDB input.
- [#2283](https://github.com/influxdata/influxdb/pull/2283): Fix bug when restarting an entire existing cluster.
- [#2293](https://github.com/influxdata/influxdb/pull/2293): Open cluster listener before starting broker.
- [#2287](https://github.com/influxdata/influxdb/pull/2287): Fix data race during SHOW RETENTION POLICIES.
- [#2288](https://github.com/influxdata/influxdb/pull/2288): Fix expression parsing bug.
- [#2294](https://github.com/influxdata/influxdb/pull/2294): Fix async response flushing (invalid chunked response error).
## Features
- [#2276](https://github.com/influxdata/influxdb/pull/2276): Broker topic truncation.
- [#2292](https://github.com/influxdata/influxdb/pull/2292): Wire up drop CQ statement - thanks @neonstalwart!
- [#2290](https://github.com/influxdata/influxdb/pull/2290): Allow hostname argument to override default config - thanks @neonstalwart!
- [#2295](https://github.com/influxdata/influxdb/pull/2295): Use nil as default return value for MapCount - thanks @neonstalwart!
- [#2246](https://github.com/influxdata/influxdb/pull/2246): Allow HTTP logging to be controlled.
## v0.9.0-rc24 [2015-04-13]
### Bugfixes
- [#2255](https://github.com/influxdata/influxdb/pull/2255): Fix panic when changing default retention policy.
- [#2257](https://github.com/influxdata/influxdb/pull/2257): Add "snapshotting" pseudo state & log entry cache.
- [#2261](https://github.com/influxdata/influxdb/pull/2261): Support int64 value types.
- [#2191](https://github.com/influxdata/influxdb/pull/2191): Case-insensitive check for "fill"
- [#2274](https://github.com/influxdata/influxdb/pull/2274): Snapshot and HTTP API endpoints
- [#2265](https://github.com/influxdata/influxdb/pull/2265): Fix auth for CLI.
## v0.9.0-rc23 [2015-04-11]
### Features
- [#2202](https://github.com/influxdata/influxdb/pull/2202): Initial implementation of Distributed Queries
- [#2202](https://github.com/influxdata/influxdb/pull/2202): 64-bit Series IDs. INCOMPATIBLE WITH PREVIOUS DATASTORES.
### Bugfixes
- [#2225](https://github.com/influxdata/influxdb/pull/2225): Make keywords completely case insensitive
- [#2228](https://github.com/influxdata/influxdb/pull/2228): Accept keyword default unquoted in ALTER RETENTION POLICY statement
- [#2236](https://github.com/influxdata/influxdb/pull/2236): Immediate term changes, fix stale write issue, net/http/pprof
- [#2213](https://github.com/influxdata/influxdb/pull/2213): Seed random number generator for election timeout. Thanks @cannium.
## v0.9.0-rc22 [2015-04-09]
### Features
- [#2214](https://github.com/influxdata/influxdb/pull/2214): Added the option to influx CLI to execute single command and exit. Thanks @n1tr0g
### Bugfixes
- [#2223](https://github.com/influxdata/influxdb/pull/2223): Always notify term change on RequestVote
## v0.9.0-rc21 [2015-04-09]
### Features
- [#870](https://github.com/influxdata/influxdb/pull/870): Add support for OpenTSDB telnet input protocol. Thanks @tcolgate
- [#2180](https://github.com/influxdata/influxdb/pull/2180): Allow http write handler to decode gzipped body
- [#2175](https://github.com/influxdata/influxdb/pull/2175): Separate broker and data nodes
- [#2158](https://github.com/influxdata/influxdb/pull/2158): Allow user password to be changed. Thanks @n1tr0g
- [#2201](https://github.com/influxdata/influxdb/pull/2201): Bring back config join URLs
- [#2121](https://github.com/influxdata/influxdb/pull/2121): Parser refactor
### Bugfixes
- [#2181](https://github.com/influxdata/influxdb/pull/2181): Fix panic on "SHOW DIAGNOSTICS".
- [#2170](https://github.com/influxdata/influxdb/pull/2170): Make sure queries on missing tags return 200 status.
- [#2197](https://github.com/influxdata/influxdb/pull/2197): Lock server during Open().
- [#2200](https://github.com/influxdata/influxdb/pull/2200): Re-enable Continuous Queries.
- [#2203](https://github.com/influxdata/influxdb/pull/2203): Fix race condition on continuous queries.
- [#2217](https://github.com/influxdata/influxdb/pull/2217): Only revert to follower if new term is greater.
- [#2219](https://github.com/influxdata/influxdb/pull/2219): Persist term change to disk when candidate. Thanks @cannium
## v0.9.0-rc20 [2015-04-04]
### Features
- [#2128](https://github.com/influxdata/influxdb/pull/2128): Data node discovery from brokers
- [#2142](https://github.com/influxdata/influxdb/pull/2142): Support chunked queries
- [#2154](https://github.com/influxdata/influxdb/pull/2154): Node redirection
- [#2168](https://github.com/influxdata/influxdb/pull/2168): Return raft term from vote, add term logging
### Bugfixes
- [#2147](https://github.com/influxdata/influxdb/pull/2147): Set Go Max procs in a better location
- [#2137](https://github.com/influxdata/influxdb/pull/2137): Refactor `results` to `response`. Breaking Go Client change.
- [#2151](https://github.com/influxdata/influxdb/pull/2151): Ignore replay commands on the metastore.
- [#2152](https://github.com/influxdata/influxdb/issues/2152): Influxd process with stats enabled crashing with 'Unsuported protocol scheme for ""'
- [#2156](https://github.com/influxdata/influxdb/pull/2156): Propagate error when resolving UDP address in Graphite UDP server.
- [#2163](https://github.com/influxdata/influxdb/pull/2163): Fix up paths for default data and run storage.
- [#2164](https://github.com/influxdata/influxdb/pull/2164): Append STDOUT/STDERR in initscript.
- [#2165](https://github.com/influxdata/influxdb/pull/2165): Better name for config section for stats and diags.
- [#2165](https://github.com/influxdata/influxdb/pull/2165): Monitoring database and retention policy are not configurable.
- [#2167](https://github.com/influxdata/influxdb/pull/2167): Add broker log recovery.
- [#2166](https://github.com/influxdata/influxdb/pull/2166): Don't panic if presented with a field of unknown type.
- [#2149](https://github.com/influxdata/influxdb/pull/2149): Fix unit tests for win32 when directory doesn't exist.
- [#2150](https://github.com/influxdata/influxdb/pull/2150): Fix unit tests for win32 when a connection is refused.
## v0.9.0-rc19 [2015-04-01]
### Features
- [#2143](https://github.com/influxdata/influxdb/pull/2143): Add raft term logging.
### Bugfixes
- [#2145](https://github.com/influxdata/influxdb/pull/2145): Encode toml durations correctly which fixes default configuration generation `influxd config`.
## v0.9.0-rc18 [2015-03-31]
### Bugfixes
- [#2100](https://github.com/influxdata/influxdb/pull/2100): Use channel to synchronize collectd shutdown.
- [#2100](https://github.com/influxdata/influxdb/pull/2100): Synchronize access to shard index.
- [#2131](https://github.com/influxdata/influxdb/pull/2131): Optimize marshalTags().
- [#2130](https://github.com/influxdata/influxdb/pull/2130): Make fewer calls to marshalTags().
- [#2105](https://github.com/influxdata/influxdb/pull/2105): Support != for tag values. Fix issue #2097, thanks to @smonkewitz for bug report.
- [#2105](https://github.com/influxdata/influxdb/pull/2105): Support !~ tags values.
- [#2138](https://github.com/influxdata/influxdb/pull/2136): Use map for marshaledTags cache.
## v0.9.0-rc17 [2015-03-29]
### Features
- [#2076](https://github.com/influxdata/influxdb/pull/2076): Separate stdout and stderr output in init.d script
- [#2091](https://github.com/influxdata/influxdb/pull/2091): Support disabling snapshot endpoint.
- [#2081](https://github.com/influxdata/influxdb/pull/2081): Support writing diagnostic data into the internal database.
- [#2095](https://github.com/influxdata/influxdb/pull/2095): Improved InfluxDB client docs. Thanks @derailed
### Bugfixes
- [#2093](https://github.com/influxdata/influxdb/pull/2093): Point precision not marshalled correctly. Thanks @derailed
- [#2084](https://github.com/influxdata/influxdb/pull/2084): Allowing leading underscores in identifiers.
- [#2080](https://github.com/influxdata/influxdb/pull/2080): Graphite logs in seconds, not milliseconds.
- [#2101](https://github.com/influxdata/influxdb/pull/2101): SHOW DATABASES should name returned series "databases".
- [#2104](https://github.com/influxdata/influxdb/pull/2104): Include NEQ when calculating field filters.
- [#2112](https://github.com/influxdata/influxdb/pull/2112): Set GOMAXPROCS on startup. This may have been causing extra leader elections, which would cause a number of other bugs or instability.
- [#2111](https://github.com/influxdata/influxdb/pull/2111) and [#2025](https://github.com/influxdata/influxdb/issues/2025): Raft stability fixes. Non-contiguous log error and others.
- [#2114](https://github.com/influxdata/influxdb/pull/2114): Correctly start influxd on platforms without start-stop-daemon.
## v0.9.0-rc16 [2015-03-24]
### Features
- [#2058](https://github.com/influxdata/influxdb/pull/2058): Track number of queries executed in stats.
- [#2059](https://github.com/influxdata/influxdb/pull/2059): Retention policies sorted by name on return to client.
- [#2061](https://github.com/influxdata/influxdb/pull/2061): Implement SHOW DIAGNOSTICS.
- [#2064](https://github.com/influxdata/influxdb/pull/2064): Allow init.d script to return influxd version.
- [#2053](https://github.com/influxdata/influxdb/pull/2053): Implment backup and restore.
- [#1631](https://github.com/influxdata/influxdb/pull/1631): Wire up DROP CONTINUOUS QUERY.
### Bugfixes
- [#2037](https://github.com/influxdata/influxdb/pull/2037): Don't check 'configExists' at Run() level.
- [#2039](https://github.com/influxdata/influxdb/pull/2039): Don't panic if getting current user fails.
- [#2034](https://github.com/influxdata/influxdb/pull/2034): GROUP BY should require an aggregate.
- [#2040](https://github.com/influxdata/influxdb/pull/2040): Add missing top-level help for config command.
- [#2057](https://github.com/influxdata/influxdb/pull/2057): Move racy "in order" test to integration test suite.
- [#2060](https://github.com/influxdata/influxdb/pull/2060): Reload server shard map on restart.
- [#2068](https://github.com/influxdata/influxdb/pull/2068): Fix misspelled JSON field.
- [#2067](https://github.com/influxdata/influxdb/pull/2067): Fixed issue where some queries didn't properly pull back data (introduced in RC15). Fixing intervals for GROUP BY.
## v0.9.0-rc15 [2015-03-19]
### Features
- [#2000](https://github.com/influxdata/influxdb/pull/2000): Log broker path when broker fails to start. Thanks @gst.
- [#2007](https://github.com/influxdata/influxdb/pull/2007): Track shard-level stats.
### Bugfixes
- [#2001](https://github.com/influxdata/influxdb/pull/2001): Ensure measurement not found returns status code 200.
- [#1985](https://github.com/influxdata/influxdb/pull/1985): Set content-type JSON header before actually writing header. Thanks @dstrek.
- [#2003](https://github.com/influxdata/influxdb/pull/2003): Set timestamp when writing monitoring stats.
- [#2004](https://github.com/influxdata/influxdb/pull/2004): Limit group by to MaxGroupByPoints (currently 100,000).
- [#2016](https://github.com/influxdata/influxdb/pull/2016): Fixing bucket alignment for group by. Thanks @jnutzmann
- [#2021](https://github.com/influxdata/influxdb/pull/2021): Remove unnecessary formatting from log message. Thanks @simonkern
## v0.9.0-rc14 [2015-03-18]
### Bugfixes
- [#1999](https://github.com/influxdata/influxdb/pull/1999): Return status code 200 for measurement not found errors on show series.
## v0.9.0-rc13 [2015-03-17]
### Features
- [#1974](https://github.com/influxdata/influxdb/pull/1974): Add time taken for request to the http server logs.
### Bugfixes
- [#1971](https://github.com/influxdata/influxdb/pull/1971): Fix leader id initialization.
- [#1975](https://github.com/influxdata/influxdb/pull/1975): Require `q` parameter for query endpoint.
- [#1969](https://github.com/influxdata/influxdb/pull/1969): Print loaded config.
- [#1987](https://github.com/influxdata/influxdb/pull/1987): Fix config print startup statement for when no config is provided.
- [#1990](https://github.com/influxdata/influxdb/pull/1990): Drop measurement was taking too long due to transactions.
## v0.9.0-rc12 [2015-03-15]
### Bugfixes
- [#1942](https://github.com/influxdata/influxdb/pull/1942): Sort wildcard names.
- [#1957](https://github.com/influxdata/influxdb/pull/1957): Graphite numbers are always float64.
- [#1955](https://github.com/influxdata/influxdb/pull/1955): Prohibit creation of databases with no name. Thanks @dullgiulio
- [#1952](https://github.com/influxdata/influxdb/pull/1952): Handle delete statement with an error. Thanks again to @dullgiulio
### Features
- [#1935](https://github.com/influxdata/influxdb/pull/1935): Implement stateless broker for Raft.
- [#1936](https://github.com/influxdata/influxdb/pull/1936): Implement "SHOW STATS" and self-monitoring
### Features
- [#1909](https://github.com/influxdata/influxdb/pull/1909): Implement a dump command.
## v0.9.0-rc11 [2015-03-13]
### Bugfixes
- [#1917](https://github.com/influxdata/influxdb/pull/1902): Creating Infinite Retention Policy Failed.
- [#1758](https://github.com/influxdata/influxdb/pull/1758): Add Graphite Integration Test.
- [#1929](https://github.com/influxdata/influxdb/pull/1929): Default Retention Policy incorrectly auto created.
- [#1930](https://github.com/influxdata/influxdb/pull/1930): Auto create database for graphite if not specified.
- [#1908](https://github.com/influxdata/influxdb/pull/1908): Cosmetic CLI output fixes.
- [#1931](https://github.com/influxdata/influxdb/pull/1931): Add default column to SHOW RETENTION POLICIES.
- [#1937](https://github.com/influxdata/influxdb/pull/1937): OFFSET should be allowed to be 0.
### Features
- [#1902](https://github.com/influxdata/influxdb/pull/1902): Enforce retention policies to have a minimum duration.
- [#1906](https://github.com/influxdata/influxdb/pull/1906): Add show servers to query language.
- [#1925](https://github.com/influxdata/influxdb/pull/1925): Add `fill(none)`, `fill(previous)`, and `fill(<num>)` to queries.
## v0.9.0-rc10 [2015-03-09]
### Bugfixes
- [#1867](https://github.com/influxdata/influxdb/pull/1867): Fix race accessing topic replicas map
- [#1864](https://github.com/influxdata/influxdb/pull/1864): fix race in startStateLoop
- [#1753](https://github.com/influxdata/influxdb/pull/1874): Do Not Panic on Missing Dirs
- [#1877](https://github.com/influxdata/influxdb/pull/1877): Broker clients track broker leader
- [#1862](https://github.com/influxdata/influxdb/pull/1862): Fix memory leak in `httpd.serveWait`. Thanks @mountkin
- [#1883](https://github.com/influxdata/influxdb/pull/1883): RLock server during retention policy enforcement. Thanks @grisha
- [#1868](https://github.com/influxdata/influxdb/pull/1868): Use `BatchPoints` for `client.Write` method. Thanks @vladlopes, @georgmu, @d2g, @evanphx, @akolosov.
- [#1881](https://github.com/influxdata/influxdb/pull/1881): Update documentation for `client` package. Misc library tweaks.
- Fix queries with multiple where clauses on tags, times and fields. Fix queries that have where clauses on fields not in the select
### Features
- [#1875](https://github.com/influxdata/influxdb/pull/1875): Support trace logging of Raft.
- [#1895](https://github.com/influxdata/influxdb/pull/1895): Auto-create a retention policy when a database is created.
- [#1897](https://github.com/influxdata/influxdb/pull/1897): Pre-create shard groups.
- [#1900](https://github.com/influxdata/influxdb/pull/1900): Change `LIMIT` to `SLIMIT` and implement `LIMIT` and `OFFSET`
## v0.9.0-rc9 [2015-03-06]
### Bugfixes
- [#1872](https://github.com/influxdata/influxdb/pull/1872): Fix "stale term" errors with raft
## v0.9.0-rc8 [2015-03-05]
### Bugfixes
- [#1836](https://github.com/influxdata/influxdb/pull/1836): Store each parsed shell command in history file.
- [#1789](https://github.com/influxdata/influxdb/pull/1789): add --config-files option to fpm command. Thanks @kylezh
- [#1859](https://github.com/influxdata/influxdb/pull/1859): Queries with a `GROUP BY *` clause were returning a 500 if done against a measurement that didn't exist
### Features
- [#1755](https://github.com/influxdata/influxdb/pull/1848): Support JSON data ingest over UDP
- [#1857](https://github.com/influxdata/influxdb/pull/1857): Support retention policies with infinite duration
- [#1858](https://github.com/influxdata/influxdb/pull/1858): Enable detailed tracing of write path
## v0.9.0-rc7 [2015-03-02]
### Features
- [#1813](https://github.com/influxdata/influxdb/pull/1813): Queries for missing measurements or fields now return a 200 with an error message in the series JSON.
- [#1826](https://github.com/influxdata/influxdb/pull/1826), [#1827](https://github.com/influxdata/influxdb/pull/1827): Fixed queries with `WHERE` clauses against fields.
### Bugfixes
- [#1744](https://github.com/influxdata/influxdb/pull/1744): Allow retention policies to be modified without specifying replication factor. Thanks @kylezh
- [#1809](https://github.com/influxdata/influxdb/pull/1809): Packaging post-install script unconditionally removes init.d symlink. Thanks @sineos
## v0.9.0-rc6 [2015-02-27]
### Bugfixes
- [#1780](https://github.com/influxdata/influxdb/pull/1780): Malformed identifiers get through the parser
- [#1775](https://github.com/influxdata/influxdb/pull/1775): Panic "index out of range" on some queries
- [#1744](https://github.com/influxdata/influxdb/pull/1744): Select shard groups which completely encompass time range. Thanks @kylezh.
## v0.9.0-rc5 [2015-02-27]
### Bugfixes
- [#1752](https://github.com/influxdata/influxdb/pull/1752): remove debug log output from collectd.
- [#1720](https://github.com/influxdata/influxdb/pull/1720): Parse Series IDs as unsigned 32-bits.
- [#1767](https://github.com/influxdata/influxdb/pull/1767): Drop Series was failing across shards. Issue #1761.
- [#1773](https://github.com/influxdata/influxdb/pull/1773): Fix bug when merging series together that have unequal number of points in a group by interval
- [#1771](https://github.com/influxdata/influxdb/pull/1771): Make `SHOW SERIES` return IDs and support `LIMIT` and `OFFSET`
### Features
- [#1698](https://github.com/influxdata/influxdb/pull/1698): Wire up DROP MEASUREMENT
## v0.9.0-rc4 [2015-02-24]
### Bugfixes
- Fix authentication issue with continuous queries
- Print version in the log on startup
## v0.9.0-rc3 [2015-02-23]
### Features
- [#1659](https://github.com/influxdata/influxdb/pull/1659): WHERE against regexes: `WHERE =~ '.*asdf'
- [#1580](https://github.com/influxdata/influxdb/pull/1580): Add support for fields with bool, int, or string data types
- [#1687](https://github.com/influxdata/influxdb/pull/1687): Change `Rows` to `Series` in results output. BREAKING API CHANGE
- [#1629](https://github.com/influxdata/influxdb/pull/1629): Add support for `DROP SERIES` queries
- [#1632](https://github.com/influxdata/influxdb/pull/1632): Add support for `GROUP BY *` to return all series within a measurement
- [#1689](https://github.com/influxdata/influxdb/pull/1689): Change `SHOW TAG VALUES WITH KEY="foo"` to use the key name in the result. BREAKING API CHANGE
- [#1699](https://github.com/influxdata/influxdb/pull/1699): Add CPU and memory profiling options to daemon
- [#1672](https://github.com/influxdata/influxdb/pull/1672): Add index tracking to metastore. Makes downed node recovery actually work
- [#1591](https://github.com/influxdata/influxdb/pull/1591): Add `spread` aggregate function
- [#1576](https://github.com/influxdata/influxdb/pull/1576): Add `first` and `last` aggregate functions
- [#1573](https://github.com/influxdata/influxdb/pull/1573): Add `stddev` aggregate function
- [#1565](https://github.com/influxdata/influxdb/pull/1565): Add the admin interface back into the server and update for new API
- [#1562](https://github.com/influxdata/influxdb/pull/1562): Enforce retention policies
- [#1700](https://github.com/influxdata/influxdb/pull/1700): Change `Values` to `Fields` on writes. BREAKING API CHANGE
- [#1706](https://github.com/influxdata/influxdb/pull/1706): Add support for `LIMIT` and `OFFSET`, which work on the number of series returned in a query. To limit the number of data points use a `WHERE time` clause
### Bugfixes
- [#1636](https://github.com/influxdata/influxdb/issues/1636): Don't store number of fields in raw data. THIS IS A BREAKING DATA CHANGE. YOU MUST START WITH A FRESH DATABASE
- [#1701](https://github.com/influxdata/influxdb/pull/1701), [#1667](https://github.com/influxdata/influxdb/pull/1667), [#1663](https://github.com/influxdata/influxdb/pull/1663), [#1615](https://github.com/influxdata/influxdb/pull/1615): Raft fixes
- [#1644](https://github.com/influxdata/influxdb/pull/1644): Add batching support for significantly improved write performance
- [#1704](https://github.com/influxdata/influxdb/pull/1704): Fix queries that pull back raw data (i.e. ones without aggregate functions)
- [#1718](https://github.com/influxdata/influxdb/pull/1718): Return an error on write if any of the points are don't have at least one field
- [#1806](https://github.com/influxdata/influxdb/pull/1806): Fix regex parsing. Change regex syntax to use / delimiters.
## v0.9.0-rc1,2 [no public release]
### Features
- Support for tags added
- New queries for showing measurement names, tag keys, and tag values
- Renamed shard spaces to retention policies
- Deprecated matching against regex in favor of explicit writing and querying on retention policies
- Pure Go InfluxQL parser
- Switch to BoltDB as underlying datastore
- BoltDB backed metastore to store schema information
- Updated HTTP API to only have two endpoints `/query` and `/write`
- Added all administrative functions to the query language
- Change cluster architecture to have brokers and data nodes
- Switch to streaming Raft implementation
- In memory inverted index of the tag data
- Pure Go implementation!
## v0.8.6 [2014-11-15]
### Features
- [Issue #973](https://github.com/influxdata/influxdb/issues/973). Support
joining using a regex or list of time series
- [Issue #1068](https://github.com/influxdata/influxdb/issues/1068). Print
the processor chain when the query is started
### Bugfixes
- [Issue #584](https://github.com/influxdata/influxdb/issues/584). Don't
panic if the process died while initializing
- [Issue #663](https://github.com/influxdata/influxdb/issues/663). Make
sure all sub servies are closed when are stopping InfluxDB
- [Issue #671](https://github.com/influxdata/influxdb/issues/671). Fix
the Makefile package target for Mac OSX
- [Issue #800](https://github.com/influxdata/influxdb/issues/800). Use
su instead of sudo in the init script. This fixes the startup problem
on RHEL 6.
- [Issue #925](https://github.com/influxdata/influxdb/issues/925). Don't
generate invalid query strings for single point queries
- [Issue #943](https://github.com/influxdata/influxdb/issues/943). Don't
take two snapshots at the same time
- [Issue #947](https://github.com/influxdata/influxdb/issues/947). Exit
nicely if the daemon doesn't have permission to write to the log.
- [Issue #959](https://github.com/influxdata/influxdb/issues/959). Stop using
closed connections in the protobuf client.
- [Issue #978](https://github.com/influxdata/influxdb/issues/978). Check
for valgrind and mercurial in the configure script
- [Issue #996](https://github.com/influxdata/influxdb/issues/996). Fill should
fill the time range even if no points exists in the given time range
- [Issue #1008](https://github.com/influxdata/influxdb/issues/1008). Return
an appropriate exit status code depending on whether the process exits
due to an error or exits gracefully.
- [Issue #1024](https://github.com/influxdata/influxdb/issues/1024). Hitting
open files limit causes influxdb to create shards in loop.
- [Issue #1069](https://github.com/influxdata/influxdb/issues/1069). Fix
deprecated interface endpoint in Admin UI.
- [Issue #1076](https://github.com/influxdata/influxdb/issues/1076). Fix
the timestamps of data points written by the collectd plugin. (Thanks,
@renchap for reporting this bug)
- [Issue #1078](https://github.com/influxdata/influxdb/issues/1078). Make sure
we don't resurrect shard directories for shards that have already expired
- [Issue #1085](https://github.com/influxdata/influxdb/issues/1085). Set
the connection string of the local raft node
- [Issue #1092](https://github.com/influxdata/influxdb/issues/1093). Set
the connection string of the local node in the raft snapshot.
- [Issue #1100](https://github.com/influxdata/influxdb/issues/1100). Removing
a non-existent shard space causes the cluster to panic.
- [Issue #1113](https://github.com/influxdata/influxdb/issues/1113). A nil
engine.ProcessorChain causes a panic.
## v0.8.5 [2014-10-27]
### Features
- [Issue #1055](https://github.com/influxdata/influxdb/issues/1055). Allow
graphite and collectd input plugins to have separate binding address
### Bugfixes
- [Issue #1058](https://github.com/influxdata/influxdb/issues/1058). Use
the query language instead of the continuous query endpoints that
were removed in 0.8.4
- [Issue #1022](https://github.com/influxdata/influxdb/issues/1022). Return
an +Inf or NaN instead of panicing when we encounter a divide by zero
- [Issue #821](https://github.com/influxdata/influxdb/issues/821). Don't
scan through points when we hit the limit
- [Issue #1051](https://github.com/influxdata/influxdb/issues/1051). Fix
timestamps when the collectd is used and low resolution timestamps
is set.
## v0.8.4 [2014-10-24]
### Bugfixes
- Remove the continuous query api endpoints since the query language
has all the features needed to list and delete continuous queries.
- [Issue #778](https://github.com/influxdata/influxdb/issues/778). Selecting
from a non-existent series should give a better error message indicating
that the series doesn't exist
- [Issue #988](https://github.com/influxdata/influxdb/issues/988). Check
the arguments of `top()` and `bottom()`
- [Issue #1021](https://github.com/influxdata/influxdb/issues/1021). Make
redirecting to standard output and standard error optional instead of
going to `/dev/null`. This can now be configured by setting `$STDOUT`
in `/etc/default/influxdb`
- [Issue #985](https://github.com/influxdata/influxdb/issues/985). Make
sure we drop a shard only when there's no one using it. Otherwise, the
shard can be closed when another goroutine is writing to it which will
cause random errors and possibly corruption of the database.
### Features
- [Issue #1047](https://github.com/influxdata/influxdb/issues/1047). Allow
merge() to take a list of series (as opposed to a regex in #72)
## v0.8.4-rc.1 [2014-10-21]
### Bugfixes
- [Issue #1040](https://github.com/influxdata/influxdb/issues/1040). Revert
to older raft snapshot if the latest one is corrupted
- [Issue #1004](https://github.com/influxdata/influxdb/issues/1004). Querying
for data outside of existing shards returns an empty response instead of
throwing a `Couldn't lookup columns` error
- [Issue #1020](https://github.com/influxdata/influxdb/issues/1020). Change
init script exit codes to conform to the lsb standards. (Thanks, @spuder)
- [Issue #1011](https://github.com/influxdata/influxdb/issues/1011). Fix
the tarball for homebrew so that rocksdb is included and the directory
structure is clean
- [Issue #1007](https://github.com/influxdata/influxdb/issues/1007). Fix
the content type when an error occurs and the client requests
compression.
- [Issue #916](https://github.com/influxdata/influxdb/issues/916). Set
the ulimit in the init script with a way to override the limit
- [Issue #742](https://github.com/influxdata/influxdb/issues/742). Fix
rocksdb for Mac OSX
- [Issue #387](https://github.com/influxdata/influxdb/issues/387). Aggregations
with group by time(1w), time(1m) and time(1y) (for week, month and
year respectively) will cause the start time and end time of the bucket
to fall on the logical boundaries of the week, month or year.
- [Issue #334](https://github.com/influxdata/influxdb/issues/334). Derivative
for queries with group by time() and fill(), will take the difference
between the first value in the bucket and the first value of the next
bucket.
- [Issue #972](https://github.com/influxdata/influxdb/issues/972). Don't
assign duplicate server ids
### Features
- [Issue #722](https://github.com/influxdata/influxdb/issues/722). Add
an install target to the Makefile
- [Issue #1032](https://github.com/influxdata/influxdb/issues/1032). Include
the admin ui static assets in the binary
- [Issue #1019](https://github.com/influxdata/influxdb/issues/1019). Upgrade
to rocksdb 3.5.1
- [Issue #992](https://github.com/influxdata/influxdb/issues/992). Add
an input plugin for collectd. (Thanks, @kimor79)
- [Issue #72](https://github.com/influxdata/influxdb/issues/72). Support merge
for multiple series using regex syntax
## v0.8.3 [2014-09-24]
### Bugfixes
- [Issue #885](https://github.com/influxdata/influxdb/issues/885). Multiple
queries separated by semicolons work as expected. Queries are process
sequentially
- [Issue #652](https://github.com/influxdata/influxdb/issues/652). Return an
error if an invalid column is used in the where clause
- [Issue #794](https://github.com/influxdata/influxdb/issues/794). Fix case
insensitive regex matching
- [Issue #853](https://github.com/influxdata/influxdb/issues/853). Move
cluster config from raft to API.
- [Issue #714](https://github.com/influxdata/influxdb/issues/714). Don't
panic on invalid boolean operators.
- [Issue #843](https://github.com/influxdata/influxdb/issues/843). Prevent blank database names
- [Issue #780](https://github.com/influxdata/influxdb/issues/780). Fix
fill() for all aggregators
- [Issue #923](https://github.com/influxdata/influxdb/issues/923). Enclose
table names in double quotes in the result of GetQueryString()
- [Issue #923](https://github.com/influxdata/influxdb/issues/923). Enclose
table names in double quotes in the result of GetQueryString()
- [Issue #967](https://github.com/influxdata/influxdb/issues/967). Return an
error if the storage engine can't be created
- [Issue #954](https://github.com/influxdata/influxdb/issues/954). Don't automatically
create shards which was causing too many shards to be created when used with
grafana
- [Issue #939](https://github.com/influxdata/influxdb/issues/939). Aggregation should
ignore null values and invalid values, e.g. strings with mean().
- [Issue #964](https://github.com/influxdata/influxdb/issues/964). Parse
big int in queries properly.
## v0.8.2 [2014-09-05]
### Bugfixes
- [Issue #886](https://github.com/influxdata/influxdb/issues/886). Update shard space to not set defaults
- [Issue #867](https://github.com/influxdata/influxdb/issues/867). Add option to return shard space mappings in list series
### Bugfixes
- [Issue #652](https://github.com/influxdata/influxdb/issues/652). Return
a meaningful error if an invalid column is used in where clause
after joining multiple series
## v0.8.2 [2014-09-08]
### Features
- Added API endpoint to update shard space definitions
### Bugfixes
- [Issue #886](https://github.com/influxdata/influxdb/issues/886). Shard space regexes reset after restart of InfluxDB
## v0.8.1 [2014-09-03]
- [Issue #896](https://github.com/influxdata/influxdb/issues/896). Allow logging to syslog. Thanks @malthe
### Bugfixes
- [Issue #868](https://github.com/influxdata/influxdb/issues/868). Don't panic when upgrading a snapshot from 0.7.x
- [Issue #887](https://github.com/influxdata/influxdb/issues/887). The first continuous query shouldn't trigger backfill if it had backfill disabled
- [Issue #674](https://github.com/influxdata/influxdb/issues/674). Graceful exit when config file is invalid. (Thanks, @DavidBord)
- [Issue #857](https://github.com/influxdata/influxdb/issues/857). More informative list servers api. (Thanks, @oliveagle)
## v0.8.0 [2014-08-22]
### Features
- [Issue #850](https://github.com/influxdata/influxdb/issues/850). Makes the server listing more informative
### Bugfixes
- [Issue #779](https://github.com/influxdata/influxdb/issues/779). Deleting expired shards isn't thread safe.
- [Issue #860](https://github.com/influxdata/influxdb/issues/860). Load database config should validate shard spaces.
- [Issue #862](https://github.com/influxdata/influxdb/issues/862). Data migrator should have option to set delay time.
## v0.8.0-rc.5 [2014-08-15]
### Features
- [Issue #376](https://github.com/influxdata/influxdb/issues/376). List series should support regex filtering
- [Issue #745](https://github.com/influxdata/influxdb/issues/745). Add continuous queries to the database config
- [Issue #746](https://github.com/influxdata/influxdb/issues/746). Add data migration tool for 0.8.0
### Bugfixes
- [Issue #426](https://github.com/influxdata/influxdb/issues/426). Fill should fill the entire time range that is requested
- [Issue #740](https://github.com/influxdata/influxdb/issues/740). Don't emit non existent fields when joining series with different fields
- [Issue #744](https://github.com/influxdata/influxdb/issues/744). Admin site should have all assets locally
- [Issue #767](https://github.com/influxdata/influxdb/issues/768). Remove shards whenever they expire
- [Issue #781](https://github.com/influxdata/influxdb/issues/781). Don't emit non existent fields when joining series with different fields
- [Issue #791](https://github.com/influxdata/influxdb/issues/791). Move database config loader to be an API endpoint
- [Issue #809](https://github.com/influxdata/influxdb/issues/809). Migration path from 0.7 -> 0.8
- [Issue #811](https://github.com/influxdata/influxdb/issues/811). Gogoprotobuf removed `ErrWrongType`, which is depended on by Raft
- [Issue #820](https://github.com/influxdata/influxdb/issues/820). Query non-local shard with time range to avoid getting back points not in time range
- [Issue #827](https://github.com/influxdata/influxdb/issues/827). Don't leak file descriptors in the WAL
- [Issue #830](https://github.com/influxdata/influxdb/issues/830). List series should return series in lexicographic sorted order
- [Issue #831](https://github.com/influxdata/influxdb/issues/831). Move create shard space to be db specific
## v0.8.0-rc.4 [2014-07-29]
### Bugfixes
- [Issue #774](https://github.com/influxdata/influxdb/issues/774). Don't try to parse "inf" shard retention policy
- [Issue #769](https://github.com/influxdata/influxdb/issues/769). Use retention duration when determining expired shards. (Thanks, @shugo)
- [Issue #736](https://github.com/influxdata/influxdb/issues/736). Only db admins should be able to drop a series
- [Issue #713](https://github.com/influxdata/influxdb/issues/713). Null should be a valid fill value
- [Issue #644](https://github.com/influxdata/influxdb/issues/644). Graphite api should write data in batches to the coordinator
- [Issue #740](https://github.com/influxdata/influxdb/issues/740). Panic when distinct fields are selected from an inner join
- [Issue #781](https://github.com/influxdata/influxdb/issues/781). Panic when distinct fields are added after an inner join
## v0.8.0-rc.3 [2014-07-21]
### Bugfixes
- [Issue #752](https://github.com/influxdata/influxdb/issues/752). `./configure` should use goroot to find gofmt
- [Issue #758](https://github.com/influxdata/influxdb/issues/758). Clarify the reason behind graphite input plugin not starting. (Thanks, @otoolep)
- [Issue #759](https://github.com/influxdata/influxdb/issues/759). Don't revert the regex in the shard space. (Thanks, @shugo)
- [Issue #760](https://github.com/influxdata/influxdb/issues/760). Removing a server should remove it from the shard server ids. (Thanks, @shugo)
- [Issue #772](https://github.com/influxdata/influxdb/issues/772). Add sentinel values to all db. This caused the last key in the db to not be fetched properly.
## v0.8.0-rc.2 [2014-07-15]
- This release is to fix a build error in rc1 which caused rocksdb to not be available
- Bump up the `max-open-files` option to 1000 on all storage engines
- Lower the `write-buffer-size` to 1000
## v0.8.0-rc.1 [2014-07-15]
### Features
- [Issue #643](https://github.com/influxdata/influxdb/issues/643). Support pretty print json. (Thanks, @otoolep)
- [Issue #641](https://github.com/influxdata/influxdb/issues/641). Support multiple storage engines
- [Issue #665](https://github.com/influxdata/influxdb/issues/665). Make build tmp directory configurable in the make file. (Thanks, @dgnorton)
- [Issue #667](https://github.com/influxdata/influxdb/issues/667). Enable compression on all GET requests and when writing data
- [Issue #648](https://github.com/influxdata/influxdb/issues/648). Return permissions when listing db users. (Thanks, @nicolai86)
- [Issue #682](https://github.com/influxdata/influxdb/issues/682). Allow continuous queries to run without backfill (Thanks, @dhammika)
- [Issue #689](https://github.com/influxdata/influxdb/issues/689). **REQUIRES DATA MIGRATION** Move metadata into raft
- [Issue #255](https://github.com/influxdata/influxdb/issues/255). Support millisecond precision using `ms` suffix
- [Issue #95](https://github.com/influxdata/influxdb/issues/95). Drop database should not be synchronous
- [Issue #571](https://github.com/influxdata/influxdb/issues/571). Add support for arbitrary number of shard spaces and retention policies
- Default storage engine changed to RocksDB
### Bugfixes
- [Issue #651](https://github.com/influxdata/influxdb/issues/651). Change permissions of symlink which fix some installation issues. (Thanks, @Dieterbe)
- [Issue #670](https://github.com/influxdata/influxdb/issues/670). Don't warn on missing influxdb user on fresh installs
- [Issue #676](https://github.com/influxdata/influxdb/issues/676). Allow storing high precision integer values without losing any information
- [Issue #695](https://github.com/influxdata/influxdb/issues/695). Prevent having duplicate field names in the write payload. (Thanks, @seunglee150)
- [Issue #731](https://github.com/influxdata/influxdb/issues/731). Don't enable the udp plugin if the `enabled` option is set to false
- [Issue #733](https://github.com/influxdata/influxdb/issues/733). Print an `INFO` message when the input plugin is disabled
- [Issue #707](https://github.com/influxdata/influxdb/issues/707). Graphite input plugin should work payload delimited by any whitespace character
- [Issue #734](https://github.com/influxdata/influxdb/issues/734). Don't buffer non replicated writes
- [Issue #465](https://github.com/influxdata/influxdb/issues/465). Recreating a currently deleting db or series doesn't bring back the old data anymore
- [Issue #358](https://github.com/influxdata/influxdb/issues/358). **BREAKING** List series should return as a single series
- [Issue #499](https://github.com/influxdata/influxdb/issues/499). **BREAKING** Querying non-existent database or series will return an error
- [Issue #570](https://github.com/influxdata/influxdb/issues/570). InfluxDB crashes during delete/drop of database
- [Issue #592](https://github.com/influxdata/influxdb/issues/592). Drop series is inefficient
## v0.7.3 [2014-06-13]
### Bugfixes
- [Issue #637](https://github.com/influxdata/influxdb/issues/637). Truncate log files if the last request wasn't written properly
- [Issue #646](https://github.com/influxdata/influxdb/issues/646). CRITICAL: Duplicate shard ids for new shards if old shards are deleted.
## v0.7.2 [2014-05-30]
### Features
- [Issue #521](https://github.com/influxdata/influxdb/issues/521). MODE works on all datatypes (Thanks, @richthegeek)
### Bugfixes
- [Issue #418](https://github.com/influxdata/influxdb/pull/418). Requests or responses larger than MAX_REQUEST_SIZE break things.
- [Issue #606](https://github.com/influxdata/influxdb/issues/606). InfluxDB will fail to start with invalid permission if log.txt didn't exist
- [Issue #602](https://github.com/influxdata/influxdb/issues/602). Merge will fail to work across shards
### Features
## v0.7.1 [2014-05-29]
### Bugfixes
- [Issue #579](https://github.com/influxdata/influxdb/issues/579). Reject writes to nonexistent databases
- [Issue #597](https://github.com/influxdata/influxdb/issues/597). Force compaction after deleting data
### Features
- [Issue #476](https://github.com/influxdata/influxdb/issues/476). Support ARM architecture
- [Issue #578](https://github.com/influxdata/influxdb/issues/578). Support aliasing for expressions in parenthesis
- [Issue #544](https://github.com/influxdata/influxdb/pull/544). Support forcing node removal from a cluster
- [Issue #591](https://github.com/influxdata/influxdb/pull/591). Support multiple udp input plugins (Thanks, @tpitale)
- [Issue #600](https://github.com/influxdata/influxdb/pull/600). Report version, os, arch, and raftName once per day.
## v0.7.0 [2014-05-23]
### Bugfixes
- [Issue #557](https://github.com/influxdata/influxdb/issues/557). Group by time(1y) doesn't work while time(365d) works
- [Issue #547](https://github.com/influxdata/influxdb/issues/547). Add difference function (Thanks, @mboelstra)
- [Issue #550](https://github.com/influxdata/influxdb/issues/550). Fix tests on 32-bit ARM
- [Issue #524](https://github.com/influxdata/influxdb/issues/524). Arithmetic operators and where conditions don't play nice together
- [Issue #561](https://github.com/influxdata/influxdb/issues/561). Fix missing query in parsing errors
- [Issue #563](https://github.com/influxdata/influxdb/issues/563). Add sample config for graphite over udp
- [Issue #537](https://github.com/influxdata/influxdb/issues/537). Incorrect query syntax causes internal error
- [Issue #565](https://github.com/influxdata/influxdb/issues/565). Empty series names shouldn't cause a panic
- [Issue #575](https://github.com/influxdata/influxdb/issues/575). Single point select doesn't interpret timestamps correctly
- [Issue #576](https://github.com/influxdata/influxdb/issues/576). We shouldn't set timestamps and sequence numbers when listing cq
- [Issue #560](https://github.com/influxdata/influxdb/issues/560). Use /dev/urandom instead of /dev/random
- [Issue #502](https://github.com/influxdata/influxdb/issues/502). Fix a
race condition in assigning id to db+series+field (Thanks @ohurvitz
for reporting this bug and providing a script to repro)
### Features
- [Issue #567](https://github.com/influxdata/influxdb/issues/567). Allow selecting from multiple series names by separating them with commas (Thanks, @peekeri)
### Deprecated
- [Issue #460](https://github.com/influxdata/influxdb/issues/460). Don't start automatically after installing
- [Issue #529](https://github.com/influxdata/influxdb/issues/529). Don't run influxdb as root
- [Issue #443](https://github.com/influxdata/influxdb/issues/443). Use `name` instead of `username` when returning cluster admins
## v0.6.5 [2014-05-19]
### Features
- [Issue #551](https://github.com/influxdata/influxdb/issues/551). Add TOP and BOTTOM aggregate functions (Thanks, @chobie)
### Bugfixes
- [Issue #555](https://github.com/influxdata/influxdb/issues/555). Fix a regression introduced in the raft snapshot format
## v0.6.4 [2014-05-16]
### Features
- Make the write batch size configurable (also applies to deletes)
- Optimize writing to multiple series
- [Issue #546](https://github.com/influxdata/influxdb/issues/546). Add UDP support for Graphite API (Thanks, @peekeri)
### Bugfixes
- Fix a bug in shard logic that caused short term shards to be clobbered with long term shards
- [Issue #489](https://github.com/influxdata/influxdb/issues/489). Remove replication factor from CreateDatabase command
## v0.6.3 [2014-05-13]
### Features
- [Issue #505](https://github.com/influxdata/influxdb/issues/505). Return a version header with http the response (Thanks, @majst01)
- [Issue #520](https://github.com/influxdata/influxdb/issues/520). Print the version to the log file
### Bugfixes
- [Issue #516](https://github.com/influxdata/influxdb/issues/516). Close WAL log/index files when they aren't being used
- [Issue #532](https://github.com/influxdata/influxdb/issues/532). Don't log graphite connection EOF as an error
- [Issue #535](https://github.com/influxdata/influxdb/issues/535). WAL Replay hangs if response isn't received
- [Issue #538](https://github.com/influxdata/influxdb/issues/538). Don't panic if the same series existed twice in the request with different columns
- [Issue #536](https://github.com/influxdata/influxdb/issues/536). Joining the cluster after shards are creating shouldn't cause new nodes to panic
- [Issue #539](https://github.com/influxdata/influxdb/issues/539). count(distinct()) with fill shouldn't panic on empty groups
- [Issue #534](https://github.com/influxdata/influxdb/issues/534). Create a new series when interpolating
## v0.6.2 [2014-05-09]
### Bugfixes
- [Issue #511](https://github.com/influxdata/influxdb/issues/511). Don't automatically create the database when a db user is created
- [Issue #512](https://github.com/influxdata/influxdb/issues/512). Group by should respect null values
- [Issue #518](https://github.com/influxdata/influxdb/issues/518). Filter Infinities and NaNs from the returned json
- [Issue #522](https://github.com/influxdata/influxdb/issues/522). Committing requests while replaying caused the WAL to skip some log files
- [Issue #369](https://github.com/influxdata/influxdb/issues/369). Fix some edge cases with WAL recovery
## v0.6.1 [2014-05-06]
### Bugfixes
- [Issue #500](https://github.com/influxdata/influxdb/issues/500). Support `y` suffix in time durations
- [Issue #501](https://github.com/influxdata/influxdb/issues/501). Writes with invalid payload should be rejected
- [Issue #507](https://github.com/influxdata/influxdb/issues/507). New cluster admin passwords don't propagate properly to other nodes in a cluster
- [Issue #508](https://github.com/influxdata/influxdb/issues/508). Don't replay WAL entries for servers with no shards
- [Issue #464](https://github.com/influxdata/influxdb/issues/464). Admin UI shouldn't draw graphs for string columns
- [Issue #480](https://github.com/influxdata/influxdb/issues/480). Large values on the y-axis get cut off
## v0.6.0 [2014-05-02]
### Feature
- [Issue #477](https://github.com/influxdata/influxdb/issues/477). Add a udp json interface (Thanks, Julien Ammous)
- [Issue #491](https://github.com/influxdata/influxdb/issues/491). Make initial root password settable through env variable (Thanks, Edward Muller)
### Bugfixes
- [Issue #469](https://github.com/influxdata/influxdb/issues/469). Drop continuous queries when a database is dropped
- [Issue #431](https://github.com/influxdata/influxdb/issues/431). Don't log to standard output if a log file is specified in the config file
- [Issue #483](https://github.com/influxdata/influxdb/issues/483). Return 409 if a database already exist (Thanks, Edward Muller)
- [Issue #486](https://github.com/influxdata/influxdb/issues/486). Columns used in the target of continuous query shouldn't be inserted in the time series
- [Issue #490](https://github.com/influxdata/influxdb/issues/490). Database user password's cannot be changed (Thanks, Edward Muller)
- [Issue #495](https://github.com/influxdata/influxdb/issues/495). Enforce write permissions properly
## v0.5.12 [2014-04-29]
### Bugfixes
- [Issue #419](https://github.com/influxdata/influxdb/issues/419),[Issue #478](https://github.com/influxdata/influxdb/issues/478). Allow hostname, raft and protobuf ports to be changed, without requiring manual intervention from the user
## v0.5.11 [2014-04-25]
### Features
- [Issue #471](https://github.com/influxdata/influxdb/issues/471). Read and write permissions should be settable through the http api
### Bugfixes
- [Issue #323](https://github.com/influxdata/influxdb/issues/323). Continuous queries should guard against data loops
- [Issue #473](https://github.com/influxdata/influxdb/issues/473). Engine memory optimization
## v0.5.10 [2014-04-22]
### Features
- [Issue #463](https://github.com/influxdata/influxdb/issues/463). Allow series names to use any character (escape by wrapping in double quotes)
- [Issue #447](https://github.com/influxdata/influxdb/issues/447). Allow @ in usernames
- [Issue #466](https://github.com/influxdata/influxdb/issues/466). Allow column names to use any character (escape by wrapping in double quotes)
### Bugfixes
- [Issue #458](https://github.com/influxdata/influxdb/issues/458). Continuous queries with group by time() and a column should insert sequence numbers of 1
- [Issue #457](https://github.com/influxdata/influxdb/issues/457). Deleting series that start with capital letters should work
## v0.5.9 [2014-04-18]
### Bugfixes
- [Issue #446](https://github.com/influxdata/influxdb/issues/446). Check for (de)serialization errors
- [Issue #456](https://github.com/influxdata/influxdb/issues/456). Continuous queries failed if one of the group by columns had null value
- [Issue #455](https://github.com/influxdata/influxdb/issues/455). Comparison operators should ignore null values
## v0.5.8 [2014-04-17]
- Renamed config.toml.sample to config.sample.toml
### Bugfixes
- [Issue #244](https://github.com/influxdata/influxdb/issues/244). Reconstruct the query from the ast
- [Issue #449](https://github.com/influxdata/influxdb/issues/449). Heartbeat timeouts can cause reading from connection to lock up
- [Issue #451](https://github.com/influxdata/influxdb/issues/451). Reduce the aggregation state that is kept in memory so that
aggregation queries over large periods of time don't take insance amount of memory
## v0.5.7 [2014-04-15]
### Features
- Queries are now logged as INFO in the log file before they run
### Bugfixes
- [Issue #328](https://github.com/influxdata/influxdb/issues/328). Join queries with math expressions don't work
- [Issue #440](https://github.com/influxdata/influxdb/issues/440). Heartbeat timeouts in logs
- [Issue #442](https://github.com/influxdata/influxdb/issues/442). shouldQuerySequentially didn't work as expected
causing count(*) queries on large time series to use
lots of memory
- [Issue #437](https://github.com/influxdata/influxdb/issues/437). Queries with negative constants don't parse properly
- [Issue #432](https://github.com/influxdata/influxdb/issues/432). Deleted data using a delete query is resurrected after a server restart
- [Issue #439](https://github.com/influxdata/influxdb/issues/439). Report the right location of the error in the query
- Fix some bugs with the WAL recovery on startup
## v0.5.6 [2014-04-08]
### Features
- [Issue #310](https://github.com/influxdata/influxdb/issues/310). Request should support multiple timeseries
- [Issue #416](https://github.com/influxdata/influxdb/issues/416). Improve the time it takes to drop database
### Bugfixes
- [Issue #413](https://github.com/influxdata/influxdb/issues/413). Don't assume that group by interval is greater than a second
- [Issue #415](https://github.com/influxdata/influxdb/issues/415). Include the database when sending an auth error back to the user
- [Issue #421](https://github.com/influxdata/influxdb/issues/421). Make read timeout a config option
- [Issue #392](https://github.com/influxdata/influxdb/issues/392). Different columns in different shards returns invalid results when a query spans those shards
### Bugfixes
## v0.5.5 [2014-04-04]
- Upgrade leveldb 1.10 -> 1.15
This should be a backward compatible change, but is here for documentation only
### Feature
- Add a command line option to repair corrupted leveldb databases on startup
- [Issue #401](https://github.com/influxdata/influxdb/issues/401). No limit on the number of columns in the group by clause
### Bugfixes
- [Issue #398](https://github.com/influxdata/influxdb/issues/398). Support now() and NOW() in the query lang
- [Issue #403](https://github.com/influxdata/influxdb/issues/403). Filtering should work with join queries
- [Issue #404](https://github.com/influxdata/influxdb/issues/404). Filtering with invalid condition shouldn't crash the server
- [Issue #405](https://github.com/influxdata/influxdb/issues/405). Percentile shouldn't crash for small number of values
- [Issue #408](https://github.com/influxdata/influxdb/issues/408). Make InfluxDB recover from internal bugs and panics
- [Issue #390](https://github.com/influxdata/influxdb/issues/390). Multiple response.WriteHeader when querying as admin
- [Issue #407](https://github.com/influxdata/influxdb/issues/407). Start processing continuous queries only after the WAL is initialized
- Close leveldb databases properly if we couldn't create a new Shard. See leveldb\_shard\_datastore\_test:131
## v0.5.4 [2014-04-02]
### Bugfixes
- [Issue #386](https://github.com/influxdata/influxdb/issues/386). Drop series should work with series containing dots
- [Issue #389](https://github.com/influxdata/influxdb/issues/389). Filtering shouldn't stop prematurely
- [Issue #341](https://github.com/influxdata/influxdb/issues/341). Make the number of shards that are queried in parallel configurable
- [Issue #394](https://github.com/influxdata/influxdb/issues/394). Support count(distinct) and count(DISTINCT)
- [Issue #362](https://github.com/influxdata/influxdb/issues/362). Limit should be enforced after aggregation
## v0.5.3 [2014-03-31]
### Bugfixes
- [Issue #378](https://github.com/influxdata/influxdb/issues/378). Indexing should return if there are no requests added since the last index
- [Issue #370](https://github.com/influxdata/influxdb/issues/370). Filtering and limit should be enforced on the shards
- [Issue #379](https://github.com/influxdata/influxdb/issues/379). Boolean columns should be usable in where clauses
- [Issue #381](https://github.com/influxdata/influxdb/issues/381). Should be able to do deletes as a cluster admin
## v0.5.2 [2014-03-28]
### Bugfixes
- [Issue #342](https://github.com/influxdata/influxdb/issues/342). Data resurrected after a server restart
- [Issue #367](https://github.com/influxdata/influxdb/issues/367). Influxdb won't start if the api port is commented out
- [Issue #355](https://github.com/influxdata/influxdb/issues/355). Return an error on wrong time strings
- [Issue #331](https://github.com/influxdata/influxdb/issues/331). Allow negative time values in the where clause
- [Issue #371](https://github.com/influxdata/influxdb/issues/371). Seris index isn't deleted when the series is dropped
- [Issue #360](https://github.com/influxdata/influxdb/issues/360). Store and recover continuous queries
## v0.5.1 [2014-03-24]
### Bugfixes
- Revert the version of goraft due to a bug found in the latest version
## v0.5.0 [2014-03-24]
### Features
- [Issue #293](https://github.com/influxdata/influxdb/pull/293). Implement a Graphite listener
### Bugfixes
- [Issue #340](https://github.com/influxdata/influxdb/issues/340). Writing many requests while replaying seems to cause commits out of order
## v0.5.0-rc.6 [2014-03-20]
### Bugfixes
- Increase raft election timeout to avoid unecessary relections
- Sort points before writing them to avoid an explosion in the request
number when the points are written randomly
- [Issue #335](https://github.com/influxdata/influxdb/issues/335). Fixes regexp for interpolating more than one column value in continuous queries
- [Issue #318](https://github.com/influxdata/influxdb/pull/318). Support EXPLAIN queries
- [Issue #333](https://github.com/influxdata/influxdb/pull/333). Fail
when the password is too short or too long instead of passing it to
the crypto library
## v0.5.0-rc.5 [2014-03-11]
### Bugfixes
- [Issue #312](https://github.com/influxdata/influxdb/issues/312). WAL should wait for server id to be set before recovering
- [Issue #301](https://github.com/influxdata/influxdb/issues/301). Use ref counting to guard against race conditions in the shard cache
- [Issue #319](https://github.com/influxdata/influxdb/issues/319). Propagate engine creation error correctly to the user
- [Issue #316](https://github.com/influxdata/influxdb/issues/316). Make
sure we don't starve goroutines if we get an access denied error
from one of the shards
- [Issue #306](https://github.com/influxdata/influxdb/issues/306). Deleting/Dropping database takes a lot of memory
- [Issue #302](https://github.com/influxdata/influxdb/issues/302). Should be able to set negative timestamps on points
- [Issue #327](https://github.com/influxdata/influxdb/issues/327). Make delete queries not use WAL. This addresses #315, #317 and #314
- [Issue #321](https://github.com/influxdata/influxdb/issues/321). Make sure we split points on shards properly
## v0.5.0-rc.4 [2014-03-07]
### Bugfixes
- [Issue #298](https://github.com/influxdata/influxdb/issues/298). Fix limit when querying multiple shards
- [Issue #305](https://github.com/influxdata/influxdb/issues/305). Shard ids not unique after restart
- [Issue #309](https://github.com/influxdata/influxdb/issues/309). Don't relog the requests on the remote server
- Fix few bugs in the WAL and refactor the way it works (this requires purging the WAL from previous rc)
## v0.5.0-rc.3 [2014-03-03]
### Bugfixes
- [Issue #69](https://github.com/influxdata/influxdb/issues/69). Support column aliases
- [Issue #287](https://github.com/influxdata/influxdb/issues/287). Make the lru cache size configurable
- [Issue #38](https://github.com/influxdata/influxdb/issues/38). Fix a memory leak discussed in this story
- [Issue #286](https://github.com/influxdata/influxdb/issues/286). Make the number of open shards configurable
- Make LevelDB use the max open files configuration option.
## v0.5.0-rc.2 [2014-02-27]
### Bugfixes
- [Issue #274](https://github.com/influxdata/influxdb/issues/274). Crash after restart
- [Issue #277](https://github.com/influxdata/influxdb/issues/277). Ensure duplicate shards won't be created
- [Issue #279](https://github.com/influxdata/influxdb/issues/279). Limits not working on regex queries
- [Issue #281](https://github.com/influxdata/influxdb/issues/281). `./influxdb -v` should print the sha when building from source
- [Issue #283](https://github.com/influxdata/influxdb/issues/283). Dropping shard and restart in cluster causes panic.
- [Issue #288](https://github.com/influxdata/influxdb/issues/288). Sequence numbers should be unique per server id
## v0.5.0-rc.1 [2014-02-25]
### Bugfixes
- Ensure large deletes don't take too much memory
- [Issue #240](https://github.com/influxdata/influxdb/pull/240). Unable to query against columns with `.` in the name.
- [Issue #250](https://github.com/influxdata/influxdb/pull/250). different result between normal and continuous query with "group by" clause
- [Issue #216](https://github.com/influxdata/influxdb/pull/216). Results with no points should exclude columns and points
### Features
- [Issue #243](https://github.com/influxdata/influxdb/issues/243). Should have endpoint to GET a user's attributes.
- [Issue #269](https://github.com/influxdata/influxdb/pull/269), [Issue #65](https://github.com/influxdata/influxdb/issues/65) New clustering architecture (see docs), with the side effect that queries can be distributed between multiple shards
- [Issue #164](https://github.com/influxdata/influxdb/pull/269),[Issue #103](https://github.com/influxdata/influxdb/pull/269),[Issue #166](https://github.com/influxdata/influxdb/pull/269),[Issue #165](https://github.com/influxdata/influxdb/pull/269),[Issue #132](https://github.com/influxdata/influxdb/pull/269) Make request log a log file instead of leveldb with recovery on startup
### Deprecated
- [Issue #189](https://github.com/influxdata/influxdb/issues/189). `/cluster_admins` and `/db/:db/users` return usernames in a `name` key instead of `username` key.
- [Issue #216](https://github.com/influxdata/influxdb/pull/216). Results with no points should exclude columns and points
## v0.4.4 [2014-02-05]
### Features
- Make the leveldb max open files configurable in the toml file
## v0.4.3 [2014-01-31]
### Bugfixes
- [Issue #225](https://github.com/influxdata/influxdb/issues/225). Remove a hard limit on the points returned by the datastore
- [Issue #223](https://github.com/influxdata/influxdb/issues/223). Null values caused count(distinct()) to panic
- [Issue #224](https://github.com/influxdata/influxdb/issues/224). Null values broke replication due to protobuf limitation
## v0.4.1 [2014-01-30]
### Features
- [Issue #193](https://github.com/influxdata/influxdb/issues/193). Allow logging to stdout. Thanks @schmurfy
- [Issue #190](https://github.com/influxdata/influxdb/pull/190). Add support for SSL.
- [Issue #194](https://github.com/influxdata/influxdb/pull/194). Should be able to disable Admin interface.
### Bugfixes
- [Issue #33](https://github.com/influxdata/influxdb/issues/33). Don't call WriteHeader more than once per request
- [Issue #195](https://github.com/influxdata/influxdb/issues/195). Allow the bind address to be configurable, Thanks @schmurfy.
- [Issue #199](https://github.com/influxdata/influxdb/issues/199). Make the test timeout configurable
- [Issue #200](https://github.com/influxdata/influxdb/issues/200). Selecting `time` or `sequence_number` silently fail
- [Issue #215](https://github.com/influxdata/influxdb/pull/215). Server fails to start up after Raft log compaction and restart.
## v0.4.0 [2014-01-17]
## Features
- [Issue #86](https://github.com/influxdata/influxdb/issues/86). Support arithmetic expressions in select clause
- [Issue #92](https://github.com/influxdata/influxdb/issues/92). Change '==' to '=' and '!=' to '<>'
- [Issue #88](https://github.com/influxdata/influxdb/issues/88). Support datetime strings
- [Issue #64](https://github.com/influxdata/influxdb/issues/64). Shard writes and queries across cluster with replay for briefly downed nodes (< 24 hrs)
- [Issue #78](https://github.com/influxdata/influxdb/issues/78). Sequence numbers persist across restarts so they're not reused
- [Issue #102](https://github.com/influxdata/influxdb/issues/102). Support expressions in where condition
- [Issue #101](https://github.com/influxdata/influxdb/issues/101). Support expressions in aggregates
- [Issue #62](https://github.com/influxdata/influxdb/issues/62). Support updating and deleting column values
- [Issue #96](https://github.com/influxdata/influxdb/issues/96). Replicate deletes in a cluster
- [Issue #94](https://github.com/influxdata/influxdb/issues/94). delete queries
- [Issue #116](https://github.com/influxdata/influxdb/issues/116). Use proper logging
- [Issue #40](https://github.com/influxdata/influxdb/issues/40). Use TOML instead of JSON in the config file
- [Issue #99](https://github.com/influxdata/influxdb/issues/99). Support list series in the query language
- [Issue #149](https://github.com/influxdata/influxdb/issues/149). Cluster admins should be able to perform reads and writes.
- [Issue #108](https://github.com/influxdata/influxdb/issues/108). Querying one point using `time =`
- [Issue #114](https://github.com/influxdata/influxdb/issues/114). Servers should periodically check that they're consistent.
- [Issue #93](https://github.com/influxdata/influxdb/issues/93). Should be able to drop a time series
- [Issue #177](https://github.com/influxdata/influxdb/issues/177). Support drop series in the query language.
- [Issue #184](https://github.com/influxdata/influxdb/issues/184). Implement Raft log compaction.
- [Issue #153](https://github.com/influxdata/influxdb/issues/153). Implement continuous queries
### Bugfixes
- [Issue #90](https://github.com/influxdata/influxdb/issues/90). Group by multiple columns panic
- [Issue #89](https://github.com/influxdata/influxdb/issues/89). 'Group by' combined with 'where' not working
- [Issue #106](https://github.com/influxdata/influxdb/issues/106). Don't panic if we only see one point and can't calculate derivative
- [Issue #105](https://github.com/influxdata/influxdb/issues/105). Panic when using a where clause that reference columns with null values
- [Issue #61](https://github.com/influxdata/influxdb/issues/61). Remove default limits from queries
- [Issue #118](https://github.com/influxdata/influxdb/issues/118). Make column names starting with '_' legal
- [Issue #121](https://github.com/influxdata/influxdb/issues/121). Don't fall back to the cluster admin auth if the db user auth fails
- [Issue #127](https://github.com/influxdata/influxdb/issues/127). Return error on delete queries with where condition that don't have time
- [Issue #117](https://github.com/influxdata/influxdb/issues/117). Fill empty groups with default values
- [Issue #150](https://github.com/influxdata/influxdb/pull/150). Fix parser for when multiple divisions look like a regex.
- [Issue #158](https://github.com/influxdata/influxdb/issues/158). Logged deletes should be stored with the time range if missing.
- [Issue #136](https://github.com/influxdata/influxdb/issues/136). Make sure writes are replicated in order to avoid triggering replays
- [Issue #145](https://github.com/influxdata/influxdb/issues/145). Server fails to join cluster if all starting at same time.
- [Issue #176](https://github.com/influxdata/influxdb/issues/176). Drop database should take effect on all nodes
- [Issue #180](https://github.com/influxdata/influxdb/issues/180). Column names not returned when running multi-node cluster and writing more than one point.
- [Issue #182](https://github.com/influxdata/influxdb/issues/182). Queries with invalid limit clause crash the server
### Deprecated
- deprecate '==' and '!=' in favor of '=' and '<>', respectively
- deprecate `/dbs` (for listing databases) in favor of a more consistent `/db` endpoint
- deprecate `username` field for a more consistent `name` field in `/db/:db/users` and `/cluster_admins`
- deprecate endpoints `/db/:db/admins/:user` in favor of using `/db/:db/users/:user` which should
be used to update user flags, password, etc.
- Querying for column names that don't exist no longer throws an error.
## v0.3.2
## Features
- [Issue #82](https://github.com/influxdata/influxdb/issues/82). Add endpoint for listing available admin interfaces.
- [Issue #80](https://github.com/influxdata/influxdb/issues/80). Support durations when specifying start and end time
- [Issue #81](https://github.com/influxdata/influxdb/issues/81). Add support for IN
## Bugfixes
- [Issue #75](https://github.com/influxdata/influxdb/issues/75). Don't allow time series names that start with underscore
- [Issue #85](https://github.com/influxdata/influxdb/issues/85). Non-existing columns exist after they have been queried before
## v0.3.0
## Features
- [Issue #51](https://github.com/influxdata/influxdb/issues/51). Implement first and last aggregates
- [Issue #35](https://github.com/influxdata/influxdb/issues/35). Support table aliases in Join Queries
- [Issue #71](https://github.com/influxdata/influxdb/issues/71). Add WillReturnSingleSeries to the Query
- [Issue #61](https://github.com/influxdata/influxdb/issues/61). Limit should default to 10k
- [Issue #59](https://github.com/influxdata/influxdb/issues/59). Add histogram aggregate function
## Bugfixes
- Fix join and merges when the query is a descending order query
- [Issue #57](https://github.com/influxdata/influxdb/issues/57). Don't panic when type of time != float
- [Issue #63](https://github.com/influxdata/influxdb/issues/63). Aggregate queries should not have a sequence_number column
## v0.2.0
### Features
- [Issue #37](https://github.com/influxdata/influxdb/issues/37). Support the negation of the regex matcher !~
- [Issue #47](https://github.com/influxdata/influxdb/issues/47). Spill out query and database detail at the time of bug report
### Bugfixes
- [Issue #36](https://github.com/influxdata/influxdb/issues/36). The regex operator should be =~ not ~=
- [Issue #39](https://github.com/influxdata/influxdb/issues/39). Return proper content types from the http api
- [Issue #42](https://github.com/influxdata/influxdb/issues/42). Make the api consistent with the docs
- [Issue #41](https://github.com/influxdata/influxdb/issues/41). Table/Points not deleted when database is dropped
- [Issue #45](https://github.com/influxdata/influxdb/issues/45). Aggregation shouldn't mess up the order of the points
- [Issue #44](https://github.com/influxdata/influxdb/issues/44). Fix crashes on RHEL 5.9
- [Issue #34](https://github.com/influxdata/influxdb/issues/34). Ascending order always return null for columns that have a null value
- [Issue #55](https://github.com/influxdata/influxdb/issues/55). Limit should limit the points that match the Where clause
- [Issue #53](https://github.com/influxdata/influxdb/issues/53). Writing null values via HTTP API fails
### Deprecated
- Preparing to deprecate `/dbs` (for listing databases) in favor of a more consistent `/db` endpoint
- Preparing to deprecate `username` field for a more consistent `name` field in the `/db/:db/users`
- Preparing to deprecate endpoints `/db/:db/admins/:user` in favor of using `/db/:db/users/:user` which should
be used to update user flags, password, etc.
## v0.1.0
### Features
- [Issue #29](https://github.com/influxdata/influxdb/issues/29). Semicolon is now optional in queries
- [Issue #31](https://github.com/influxdata/influxdb/issues/31). Support Basic Auth as well as query params for authentication.
### Bugfixes
- Don't allow creating users with empty username
- [Issue #22](https://github.com/influxdata/influxdb/issues/22). Don't set goroot if it was set
- [Issue #25](https://github.com/influxdata/influxdb/issues/25). Fix queries that use the median aggregator
- [Issue #26](https://github.com/influxdata/influxdb/issues/26). Default log and db directories should be in /opt/influxdb/shared/data
- [Issue #27](https://github.com/influxdata/influxdb/issues/27). Group by should not blow up if the one of the columns in group by has null values
- [Issue #30](https://github.com/influxdata/influxdb/issues/30). Column indexes/names getting off somehow
- [Issue #32](https://github.com/influxdata/influxdb/issues/32). Fix many typos in the codebase. Thanks @pborreli
## v0.0.9
#### Features
- Add stddev(...) support
- Better docs, thanks @auxesis and @d-snp.
#### Bugfixes
- Set PYTHONPATH and CC appropriately on mac os x.
- [Issue #18](https://github.com/influxdata/influxdb/issues/18). Fix 386 debian and redhat packages
- [Issue #23](https://github.com/influxdata/influxdb/issues/23). Fix the init scripts on redhat
## v0.0.8
#### Features
- Add a way to reset the root password from the command line.
- Add distinct(..) and derivative(...) support
- Print test coverage if running go1.2
#### Bugfixes
- Fix the default admin site path in the .deb and .rpm packages.
- Fix the configuration filename in the .tar.gz package.
## v0.0.7
#### Features
- include the admin site in the repo to make it easier for newcomers.
## v0.0.6
#### Features
- Add count(distinct(..)) support
#### Bugfixes
- Reuse levigo read/write options.
## v0.0.5
#### Features
- Cache passwords in memory to speed up password verification
- Add MERGE and INNER JOIN support
#### Bugfixes
- All columns should be returned if `select *` was used
- Read/Write benchmarks
## v0.0.2
#### Features
- Add an admin UI
- Deb and RPM packages
#### Bugfixes
- Fix some nil pointer dereferences
- Cleanup the aggregators implementation
## v0.0.1 [2013-10-22]
* Initial Release
|
jgeiger/influxdb
|
CHANGELOG.md
|
Markdown
|
mit
| 191,166
|
var Articles = require("../articles");
var summarize = require("../summarize");
var translate = require("../translate");
var pipeline = require("../pipeline");
var veoozInterface = require("./veoozInterface.js");
module.exports = function (socketEnsureLoggedIn, socket) {
function handleError(err) {
return Promise.reject(err);
}
function throwError(err) {
console.log(socket.id, "Throwing error:", err);
socket.emit('new error', err);
}
function ensureArticleFactory(source) {
if (!socket.articleFactory) {
socket.articleFactory = new Articles(socket.id, source);
}
}
socket.on('get article list', function (options, callback) {
ensureArticleFactory(socket.handshake.query.articleSource);
socket.articleFactory.fetchList(options).then(callback, throwError);
});
socket.on('access article', function (articleId, langs, options, callback) {
ensureArticleFactory(socket.handshake.query.articleSource);
var authPromise;
if (options.requireAuth) {
authPromise = socketEnsureLoggedIn(socket);
} else {
authPromise = Promise.resolve();
}
authPromise
.then(function () {
return socket.articleFactory.fetchOne(articleId);
}, handleError)
.then(function (article) {
return pipeline.accessArticle(article, langs, options);
}, handleError)
.then(function (articles) {
if (options.initializeLog) {
var loggerPromises = [];
articles.forEach(function (article) {
loggerPromises.push(
socket.articleFactory.initializeLogger(article)
.then(function (loggerId) {
if (!("_meta" in article)) {
article._meta = {};
}
article._meta.loggerId = loggerId;
}, handleError)
);
});
return Promise.all(loggerPromises).then(function () {
return articles;
}, handleError);
} else {
return articles;
}
})
.then(callback, handleError)
.catch(throwError);
});
socket.on('insert logs', function (loggerId, logs, callback) {
ensureArticleFactory(socket.handshake.query.articleSource);
// Client should ensure that no parallel request for the same loggerId are made.
socketEnsureLoggedIn(socket)
.then(function () {
socket.articleFactory.insertLogs(loggerId, logs)
.then(callback, function (err) {
console.log(socket.id, "Ignoring error:", err);
});
}, function (err) {
console.log(socket.id, "Ignoring error:", err);
});
});
socket.on('publish article', function (article, callback) {
ensureArticleFactory(socket.handshake.query.articleSource);
socketEnsureLoggedIn(socket)
.then(function (user) {
if (!article._meta) {
article._meta = {};
}
article._meta.username = user.username;
return article;
}, handleError)
.then(function (article) {
socket.articleFactory.storeEdited(article)
.then(callback, throwError);
if (article._meta.rawId) {
console.log(socket.id, "Pushing accessible article to Veooz:", article.id);
return veoozInterface.pushArticle(article).catch(function (err) {
console.log(socket.id, "Error pushing article:", err);
});
}
}, throwError);
});
socket.on('translate text', function (text, from, to, method, callback) {
translate.translateText(text, from, to, method)
.then(callback, throwError);
});
};
|
nisargjhaveri/news-access
|
server/handleSocket.js
|
JavaScript
|
mit
| 4,291
|
module Fog
module OpenStack
class Compute
class Real
def list_os_interfaces(server_id)
request(
:expects => [200, 203],
:method => 'GET',
:path => "servers/#{server_id}/os-interface"
)
end
end
class Mock
def list_os_interfaces(server_id)
Excon::Response.new(
:body => {'interfaceAttachments' => data[:os_interfaces]},
:status => 200
)
end
end
end
end
end
|
fog/fog-openstack
|
lib/fog/openstack/compute/requests/list_os_interfaces.rb
|
Ruby
|
mit
| 530
|
'use strict';
var _ = require('lodash');
var moment = require('moment');
var util = require('util');
var articleService = require('../../services/article');
var listOrSingle = require('./lib/listOrSingle');
function parse (params) {
var formats = ['YYYY', 'MM', 'DD'];
var parts = _.values(params);
var len = parts.length;
var input = parts.join('-');
var inputFormat = formats.slice(0, len).join('-');
var unit;
var textual;
if (params.day) {
textual = 'MMMM Do, YYYY';
unit = 'day';
} else if (params.month) {
textual = 'MMMM, YYYY';
unit = 'month';
} else {
textual = 'YYYY';
unit = 'year';
}
var when = moment(input, inputFormat);
var text = when.format(textual);
return {
start: when.startOf(unit).toDate(),
end: when.clone().endOf(unit).toDate(),
text: text
};
}
function slug (params) {
var fmt = 'YYYY/MM/DD';
var keys = Object.keys(params).length;
var parts = [params.year, params.month, params.day].splice(0, keys.length);
return moment(parts.join('/'), fmt).format(fmt);
}
module.exports = function (req, res, next) {
var parsed = parse(req.params);
var handle = listOrSingle(res, { skip: false }, next);
var titleFormat = 'Articles published on %s';
var title = util.format(titleFormat, parsed.text);
res.viewModel = {
model: {
title: title,
meta: {
canonical: '/articles/' + slug(req.params),
description: 'This search results page contains all of the ' + title.toLowerCase()
}
}
};
var query = {
status: 'published',
publication: {
$gte: parsed.start,
$lt: parsed.end
}
};
articleService.find(query, handle);
};
|
cshum/ponyfoo
|
controllers/articles/dated.js
|
JavaScript
|
mit
| 1,693
|
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.OS;
using Android.Support.V7.App;
using System;
using System.IO;
namespace Teaching.Skills.Droid.Activities
{
[Activity(Label = "@string/app_title", Icon = "@drawable/icon", Theme = "@style/App.Default",
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation, ScreenOrientation = ScreenOrientation.Portrait)]
public class BaseActivity : AppCompatActivity
{
public BaseActivity()
{
}
protected override void OnPause()
{
base.OnPause();
MainApplication.LastUseTime = DateTime.UtcNow;
}
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
var toolbar = FindViewById<Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
if (toolbar != null)
{
SetSupportActionBar(toolbar);
SupportActionBar.Title = this.Title;
SupportActionBar.SetDisplayHomeAsUpEnabled(true);
SupportActionBar.SetHomeButtonEnabled(true);
}
}
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Permission[] grantResults)
{
Permissions.Verify(grantResults);
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
public static Intent CreateIntent<T>(object model = null) where T : Activity
{
var intent = new Intent(Application.Context, typeof(T));
if (model != null)
{
var serializer = new System.Xml.Serialization.XmlSerializer(model.GetType());
var modelStream = new MemoryStream();
serializer.Serialize(modelStream, model);
intent.PutExtra("Model", modelStream.ToArray());
}
return intent;
}
public override bool OnOptionsItemSelected(Android.Views.IMenuItem item)
{
if (item.ItemId == Android.Resource.Id.Home)
Finish();
return base.OnOptionsItemSelected(item);
}
}
}
|
ennerperez/teaching-skills
|
teaching.skills.droid/Activities/BaseActivity.cs
|
C#
|
mit
| 2,260
|
package spire.math.algebraic
trait PrettyToString[A <: PrettyToString[A]] extends RealLike[A] { self: A =>
def toTreeString: String = TreeString(this).toString
}
|
lrytz/spire
|
core/src/main/scala/spire/math/algebraic/PrettyToString.scala
|
Scala
|
mit
| 167
|
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Diagnostics;
namespace CodeTiger.CodeAnalysis.Analyzers.Readability
{
/// <summary>
/// Analyzes general readability issues.
/// </summary>
[DiagnosticAnalyzer(LanguageNames.CSharp)]
public class GeneralReadabilityAnalyzer : DiagnosticAnalyzer
{
internal static readonly DiagnosticDescriptor EmptyStatementsShouldNotBeUsedDescriptor
= new DiagnosticDescriptor("CT3100", "Empty statements should not be used.",
"Empty statements should not be used.", "CodeTiger.Readability", DiagnosticSeverity.Warning, true);
/// <summary>
/// Gets a set of descriptors for the diagnostics that this analyzer is capable of producing.
/// </summary>
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
=> ImmutableArray.Create(EmptyStatementsShouldNotBeUsedDescriptor);
/// <summary>
/// Registers actions in an analysis context.
/// </summary>
/// <param name="context">The context to register actions in.</param>
/// <remarks>This method should only be called once, at the start of a session.</remarks>
public override void Initialize(AnalysisContext context)
{
Guard.ArgumentIsNotNull(nameof(context), context);
context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None);
context.EnableConcurrentExecution();
context.RegisterSyntaxNodeAction(AnalyzeEmptyStatements, SyntaxKind.EmptyStatement);
}
private static void AnalyzeEmptyStatements(SyntaxNodeAnalysisContext context)
{
context.ReportDiagnostic(Diagnostic.Create(EmptyStatementsShouldNotBeUsedDescriptor,
context.Node.GetLocation()));
}
}
}
|
csdahlberg/CodeTiger.CodeAnalysis
|
CodeTiger.CodeAnalysis/Analyzers/Readability/GeneralReadabilityAnalyzer.cs
|
C#
|
mit
| 1,931
|
[uigesturerecognizer](../../index.md) / [it.sephiroth.android.library.uigestures](../index.md) / [UIGestureRecognizerDelegate](index.md) / [removeGestureRecognizer](./remove-gesture-recognizer.md)
# removeGestureRecognizer
`fun removeGestureRecognizer(recognizer: `[`UIGestureRecognizer`](../-u-i-gesture-recognizer/index.md)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
### Parameters
`recognizer` - remove a previously added gesture recognizer
**Return**
true if succesfully removed from the list
**Since**
1.0.0
|
sephiroth74/AndroidUIGestureRecognizer
|
docs/it.sephiroth.android.library.uigestures/-u-i-gesture-recognizer-delegate/remove-gesture-recognizer.md
|
Markdown
|
mit
| 566
|
#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::AskPassphraseDialog),
mode(mode),
model(0),
fCapsLock(false)
{
ui->setupUi(this);
ui->passEdit1->setMaxLength(MAX_PASSPHRASE_SIZE);
ui->passEdit2->setMaxLength(MAX_PASSPHRASE_SIZE);
ui->passEdit3->setMaxLength(MAX_PASSPHRASE_SIZE);
// Setup Caps Lock detection.
ui->passEdit1->installEventFilter(this);
ui->passEdit2->installEventFilter(this);
ui->passEdit3->installEventFilter(this);
ui->capsLabel->clear();
//Setup Keyboard
keyboard = new VirtualKeyboard(this);
ui->keyboardLayout->addWidget(keyboard);
switch(mode)
{
case Encrypt: // Ask passphrase x2
ui->passLabel1->hide();
ui->passEdit1->hide();
ui->warningLabel->setText(tr("Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>."));
setWindowTitle(tr("Encrypt wallet"));
break;
case Unlock: // Ask passphrase
ui->warningLabel->setText(tr("This operation needs your wallet passphrase to unlock the wallet."));
ui->passLabel2->hide();
ui->passEdit2->hide();
ui->passLabel3->hide();
ui->passEdit3->hide();
setWindowTitle(tr("Unlock wallet"));
break;
case Decrypt: // Ask passphrase
ui->warningLabel->setText(tr("This operation needs your wallet passphrase to decrypt the wallet."));
ui->passLabel2->hide();
ui->passEdit2->hide();
ui->passLabel3->hide();
ui->passEdit3->hide();
setWindowTitle(tr("Decrypt wallet"));
break;
case ChangePass: // Ask old passphrase + new passphrase x2
setWindowTitle(tr("Change passphrase"));
ui->warningLabel->setText(tr("Enter the old and new passphrase to the wallet."));
break;
}
textChanged();
connect(ui->passEdit1, SIGNAL(textChanged(QString)), this, SLOT(textChanged()));
connect(ui->passEdit2, SIGNAL(textChanged(QString)), this, SLOT(textChanged()));
connect(ui->passEdit3, SIGNAL(textChanged(QString)), this, SLOT(textChanged()));
connect(ui->keyboardToggle, SIGNAL(clicked()), keyboard, SLOT(toggleKeyboard()));
}
AskPassphraseDialog::~AskPassphraseDialog()
{
// Attempt to overwrite text so that they do not linger around in memory
ui->passEdit1->setText(QString(" ").repeated(ui->passEdit1->text().size()));
ui->passEdit2->setText(QString(" ").repeated(ui->passEdit2->text().size()));
ui->passEdit3->setText(QString(" ").repeated(ui->passEdit3->text().size()));
delete ui;
}
void AskPassphraseDialog::setModel(WalletModel *model)
{
this->model = model;
}
void AskPassphraseDialog::accept()
{
SecureString oldpass, newpass1, newpass2;
if(!model)
return;
oldpass.reserve(MAX_PASSPHRASE_SIZE);
newpass1.reserve(MAX_PASSPHRASE_SIZE);
newpass2.reserve(MAX_PASSPHRASE_SIZE);
// TODO: get rid of this .c_str() by implementing SecureString::operator=(std::string)
// Alternately, find a way to make this input mlock()'d to begin with.
oldpass.assign(ui->passEdit1->text().toStdString().c_str());
newpass1.assign(ui->passEdit2->text().toStdString().c_str());
newpass2.assign(ui->passEdit3->text().toStdString().c_str());
switch(mode)
{
case Encrypt: {
if(newpass1.empty() || newpass2.empty())
{
// Cannot encrypt with empty passphrase
break;
}
QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm wallet encryption"),
tr("WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR RCoinUSAS</b>!\nAre you sure you wish to encrypt your wallet?"),
QMessageBox::Yes|QMessageBox::Cancel,
QMessageBox::Cancel);
if(retval == QMessageBox::Yes)
{
if(newpass1 == newpass2)
{
if(model->setWalletEncrypted(true, newpass1))
{
QMessageBox::warning(this, tr("Wallet encrypted"),
tr("RCoinUSA will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your RCoinUSAs from being stolen by malware infecting your computer."));
QApplication::quit();
}
else
{
QMessageBox::critical(this, tr("Wallet encryption failed"),
tr("Wallet encryption failed due to an internal error. Your wallet was not encrypted."));
}
QDialog::accept(); // Success
}
else
{
QMessageBox::critical(this, tr("Wallet encryption failed"),
tr("The supplied passphrases do not match."));
}
}
else
{
QDialog::reject(); // Cancelled
}
} break;
case Unlock:
if(!model->setWalletLocked(false, oldpass))
{
QMessageBox::critical(this, tr("Wallet unlock failed"),
tr("The passphrase entered for the wallet decryption was incorrect."));
}
else
{
QDialog::accept(); // Success
}
break;
case Decrypt:
if(!model->setWalletEncrypted(false, oldpass))
{
QMessageBox::critical(this, tr("Wallet decryption failed"),
tr("The passphrase entered for the wallet decryption was incorrect."));
}
else
{
QDialog::accept(); // Success
}
break;
case ChangePass:
if(newpass1 == newpass2)
{
if(model->changePassphrase(oldpass, newpass1))
{
QMessageBox::information(this, tr("Wallet encrypted"),
tr("Wallet passphrase was succesfully changed."));
QDialog::accept(); // Success
}
else
{
QMessageBox::critical(this, tr("Wallet encryption failed"),
tr("The passphrase entered for the wallet decryption was incorrect."));
}
}
else
{
QMessageBox::critical(this, tr("Wallet encryption failed"),
tr("The supplied passphrases do not match."));
}
break;
}
}
void AskPassphraseDialog::textChanged()
{
// Validate input, set Ok button to enabled when accepable
bool acceptable = false;
switch(mode)
{
case Encrypt: // New passphrase x2
acceptable = !ui->passEdit2->text().isEmpty() && !ui->passEdit3->text().isEmpty();
break;
case Unlock: // Old passphrase x1
case Decrypt:
acceptable = !ui->passEdit1->text().isEmpty();
break;
case ChangePass: // Old passphrase x1, new passphrase x2
acceptable = !ui->passEdit1->text().isEmpty() && !ui->passEdit2->text().isEmpty() && !ui->passEdit3->text().isEmpty();
break;
}
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(acceptable);
}
bool AskPassphraseDialog::event(QEvent *event)
{
// Detect Caps Lock key press.
if (event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
if (ke->key() == Qt::Key_CapsLock) {
fCapsLock = !fCapsLock;
}
if (fCapsLock) {
ui->capsLabel->setText(tr("Warning: The Caps Lock key is on."));
} else {
ui->capsLabel->clear();
}
}
return QWidget::event(event);
}
bool AskPassphraseDialog::eventFilter(QObject *object, QEvent *event)
{
/* Detect Caps Lock.
* There is no good OS-independent way to check a key state in Qt, but we
* can detect Caps Lock by checking for the following condition:
* Shift key is down and the result is a lower case character, or
* Shift key is not down and the result is an upper case character.
*/
if (event->type() == QEvent::KeyPress) {
QKeyEvent *ke = static_cast<QKeyEvent *>(event);
QString str = ke->text();
if (str.length() != 0) {
const QChar *psz = str.unicode();
bool fShift = (ke->modifiers() & Qt::ShiftModifier) != 0;
if ((fShift && psz->isLower()) || (!fShift && psz->isUpper())) {
fCapsLock = true;
ui->capsLabel->setText(tr("Warning: The Caps Lock key is on."));
} else if (psz->isLetter()) {
fCapsLock = false;
ui->capsLabel->clear();
}
}
} else if (event->type() == QEvent::FocusIn) {
if (object->inherits("QLineEdit")) {
keyboard->setInput(object);
}
}
return false;
}
|
rcoinwallet/RCoinUSA
|
src/qt/askpassphrasedialog.cpp
|
C++
|
mit
| 9,309
|
namespace Mirage.Urbanization.ZoneStatisticsQuerying
{
public interface IQueryCrimeResult : IQueryCellValueResult { }
}
|
Miragecoder/Urbanization
|
src/Mirage.Urbanization/ZoneStatisticsQuerying/IQueryCrimeResult.cs
|
C#
|
mit
| 123
|
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SRM.JS TEST</title>
<style>
body {
font-family: arial;
margin: 8;
padding: 0;
}
.emscripten { padding-right: 0; margin-left: auto; margin-right: auto; display: block; }
div.emscripten { text-align: center; }
div.emscripten_border { border: 1px solid black; }
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
canvas.emscripten { border: 0px none; }
#emscripten_logo {
display: inline-block;
margin: 0;
}
.spinner {
height: 30px;
width: 30px;
margin: 0;
margin-top: 20px;
margin-left: 20px;
display: inline-block;
vertical-align: top;
-webkit-animation: rotation .8s linear infinite;
-moz-animation: rotation .8s linear infinite;
-o-animation: rotation .8s linear infinite;
animation: rotation 0.8s linear infinite;
border-left: 5px solid rgb(235, 235, 235);
border-right: 5px solid rgb(235, 235, 235);
border-bottom: 5px solid rgb(235, 235, 235);
border-top: 5px solid rgb(120, 120, 120);
border-radius: 100%;
background-color: rgb(189, 215, 46);
}
@-webkit-keyframes rotation {
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
@-moz-keyframes rotation {
from {-moz-transform: rotate(0deg);}
to {-moz-transform: rotate(360deg);}
}
@-o-keyframes rotation {
from {-o-transform: rotate(0deg);}
to {-o-transform: rotate(360deg);}
}
@keyframes rotation {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
#status {
display: inline-block;
vertical-align: top;
margin-top: 30px;
margin-left: 20px;
font-weight: bold;
color: rgb(120, 120, 120);
}
#progress {
height: 20px;
width: 30px;
}
#controls {
display: inline-block;
float: right;
vertical-align: top;
margin-top: 30px;
margin-right: 20px;
}
#output {
width: 100%;
height: 300px;
margin: 0 auto;
margin-top: 10px;
border-left: 0px;
border-right: 0px;
padding-left: 0px;
padding-right: 0px;
display: block;
background-color: black;
color: white;
font-family: 'Lucida Console', Monaco, monospace;
font-size: 10px;
outline: none;
}
.ddd {
width: 10em;
}
.bigtableheader {
width: 50%;
}
.bigtable {
font-size: 8px;
width: 50%;
}
form {
margin: 5px;
}
</style>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
</head>
<body>
<div class="spinner" id='spinner'></div>
<div class="emscripten" id="status">Downloading...</div>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=1></progress>
</div>
<textarea id="output" rows="8"></textarea>
<script type='text/javascript'>
var statusElement = document.getElementById('status');
var progressElement = document.getElementById('progress');
var spinnerElement = document.getElementById('spinner');
var Module = {
onRuntimeInitialized: function() {
do_test(); // after ready
},
preRun: [],
postRun: [],
print: (function() {
var element = document.getElementById('output');
if (element) element.value = ''; // clear browser cache
return function(text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
// These replacements are necessary if you render to raw HTML
//text = text.replace(/&/g, "&");
//text = text.replace(/</g, "<");
//text = text.replace(/>/g, ">");
//text = text.replace('\n', '<br>', 'g');
console.log(text);
if (element) {
element.value += text + "\n";
element.scrollTop = element.scrollHeight; // focus on bottom
}
};
})(),
printErr: function(text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
if (0) { // XXX disabled for safety typeof dump == 'function') {
dump(text + '\n'); // fast, straight to the real console
} else {
console.error(text);
}
},
setStatus: function(text) {
if (!Module.setStatus.last) Module.setStatus.last = { time: Date.now(), text: '' };
if (text === Module.setStatus.text) return;
var m = text.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/);
var now = Date.now();
if (m && now - Date.now() < 30) return; // if this is a progress update, skip it if too soon
if (m) {
text = m[1];
progressElement.value = parseInt(m[2])*100;
progressElement.max = parseInt(m[4])*100;
progressElement.hidden = false;
spinnerElement.hidden = false;
} else {
progressElement.value = 0;
progressElement.max = 0;
progressElement.hidden = true;
if (!text) spinnerElement.style.display = 'none';
}
statusElement.innerHTML = text;
},
totalDependencies: 0,
monitorRunDependencies: function(left) {
this.totalDependencies = Math.max(this.totalDependencies, left);
Module.setStatus(left ? 'Preparing... (' + (this.totalDependencies-left) + '/' + this.totalDependencies + ')' : 'All downloads complete.');
}
};
Module.setStatus('Downloading...');
window.onerror = function(event) {
// TODO: do not warn on ok events like simulating an infinite loop or exitStatus
Module.setStatus('Exception thrown, see JavaScript console');
spinnerElement.style.display = 'none';
Module.setStatus = function(text) {
if (text) Module.printErr('[post-exception status] ' + text);
};
};
</script>
<script>
(function() {
var memoryInitializer = '../js/srmjs.mem';
if (typeof Module['locateFile'] === 'function') {
memoryInitializer = Module['locateFile'](memoryInitializer);
} else if (Module['memoryInitializerPrefixURL']) {
memoryInitializer = Module['memoryInitializerPrefixURL'] + memoryInitializer;
}
var xhr = Module['memoryInitializerRequest'] = new XMLHttpRequest();
xhr.open('GET', memoryInitializer, true);
xhr.responseType = 'arraybuffer';
xhr.send(null);
})();
var script = document.createElement('script');
script.src = "../js/srmjs.js";
document.body.appendChild(script);
</script>
<h1>Validate srm.js wih global_3d gold data</h1>
<div>
NGA publishes a validation data set (<a href='http://earth-info.nga.mil/GandG/coordsys/Conversion_Software/index.html'>Gold Data</a>) which contains rigorously determined coordinates of points in many different projections and reference system.
</div>
<script>
function do_test() {
var printarea = document.getElementById('output');
var wgs84_orm = 250;
var wgs84_rt = 341;
//srfs are per coordinate
//var ccSrf = Module.SRF_Celestiocentric.prototype.create(wgs84_orm, wgs84_rt);
//var cdSrf = Module.SRF_Celestiodetic.prototype.create(wgs84_orm, wgs84_rt);
var gcCoordsGold = [];
var gdCoordsGold = [];
var gcCoords = [];
var gdCoords = [];
var filteredCoords = [];
var GD_HEIGHT_MIN = -50000; //SRM General Profile accuracy domain
var GD_HEIGHT_MAX = 1000000; //exceptions if outside
var deg2rad = Math.PI / 180;
var HEIGHT_EPS = 200;
//read reference
d3.text('global_3D/WGS84/rectangular_103.csv', (function (error, d) {
Module.setStatus("loading rectangular_103");
//var ccSrf = Module.SRF_Celestiocentric.prototype.create(wgs84_orm, wgs84_rt);
var commasv = d3.dsv(",", "text/plain");
gcCoordsGold = commasv.parseRows(d, function (row, index) {
//expect exactly three values
if (row.length !== 3) {return null;}
//check if all are numbers; should get rid of header
if (row.some(function(d){return isNaN(d * 0);})) {return null;}
//console.log('row: ' + row);
//convert to number
return row.map(function(n){return n * 1.0});
//var ccSrf = Module.SRF_Celestiocentric.prototype.create(wgs84_orm, wgs84_rt);
//return ccSrf.createCoordinate3D(row[0], row[1], row[2]);
});
readgeodetic();
//perhaps put reading/ testing here
}
));
function readgeodetic() {
// read file and transform
d3.text('global_3D/WGS84/geodetic_101.csv', function (error, d) {
Module.setStatus("loading geodetic_101");
var commasv = d3.dsv(",", "text/plain");
gdCoordsGold = commasv.parseRows(d, function (row, index) {
//expect exactly three values
if (row.length !== 3) {return null;}
//check if all are numbers; should get rid of header
if (row.some(function(d){return isNaN(d * 0);})) {return null;}
//console.log('row: ' + row);
return row.map(function(n){return n * 1.0;});
//var cdSrf = Module.SRF_Celestiodetic.prototype.create(wgs84_orm, wgs84_rt);
//return cdSrf.createCoordinate3D(row[0], row[1], row[2]);
});
//set longitude to 0 at poles, srm does not like other longitudes
var gdCoords2 = gdCoordsGold.map(function(gd) {
if (Math.abs(gd[1]) == 90) { gd[0] = 0; }
return gd;
});
//now all should be loaded
filteredCoords = d3.zip(gdCoords2, gcCoordsGold).filter(
function(gdgc) {
return gdgc[0][2] > (GD_HEIGHT_MIN + HEIGHT_EPS) && gdgc[0][2] < (GD_HEIGHT_MAX - HEIGHT_EPS);
});
Module.setStatus("converting ...");
gcCoords = filteredCoords.map(function(gdgc) {
var cdSrf = Module.SRF_Celestiodetic.prototype.create(wgs84_orm, wgs84_rt);
var ccSrf = Module.SRF_Celestiocentric.prototype.create(wgs84_orm, wgs84_rt);
var cdCoor = cdSrf.createCoordinate3D(gdgc[0][0] * deg2rad, gdgc[0][1] * deg2rad, gdgc[0][2]);
var ccCoor = ccSrf.createCoordinate3D(0, 0, 0);
//console.log(gdgc[0]);
ccSrf.changeCoordinate3DSRF(cdCoor, ccCoor);
var gc = [];
var ccCoor3D = Module.castObject(ccCoor, Coord3D_Celestiocentric);
gc[0] = ccCoor3D.get_u();
gc[1] = ccCoor3D.get_v();
gc[2] = ccCoor3D.get_w();
//release srfs, free Coor
//Module.setStatus(gc.toString());
return gc;
});
gdCoords = filteredCoords.map(function(gdgc) {
var cdSrf = Module.SRF_Celestiodetic.prototype.create(wgs84_orm, wgs84_rt);
var ccSrf = Module.SRF_Celestiocentric.prototype.create(wgs84_orm, wgs84_rt);
var ccCoor = ccSrf.createCoordinate3D(gdgc[1][0], gdgc[1][1], gdgc[1][2]);
var cdCoor = cdSrf.createCoordinate3D();
//console.log(gdgc[0]);
cdSrf.changeCoordinate3DSRF(ccCoor, cdCoor);
var gd = [];
var cdCoor3D = Module.castObject(cdCoor, Coord3D_Celestiodetic);
gd[0] = cdCoor3D.get_longitude()/deg2rad;
gd[1] = cdCoor3D.get_latitude()/deg2rad;
gd[2] = cdCoor3D.get_ellipsoidal_height();
//release srfs, free Coor
//Module.setStatus(gd.toString());
return gd;
});
var sumsqfunction = function(diff, gcgc){return diff.reduce(function(a, b){return a + b*b;},0)};
var diffgc = diffCoords(gcCoords, d3.transpose(filteredCoords)[1], sumsqfunction);
//convert to good distance
var sumsqfunction = function(diff, gcgc){
var dst = Math.pow(diff[0] * deg2rad * 6371000 * Math.cos(gcgc[0][1]), 2);
dst += Math.pow(diff[1] * deg2rad * 6371000, 2);
dst += Math.pow(diff[2], 2);
return dst;
};
var diffgd = diffCoords(gdCoords, d3.transpose(filteredCoords)[0], sumsqfunction);
printarea.value += 'SUMMARY CD to CC\n';
printarea.value += '------------------- \n';
printStat(diffgc);
printarea.value += 'SUMMARY CC to CD\n';
printarea.value += '------------------- \n';
printStat(diffgd);
});
}
function diffCoords(gc, gcRef, sumsqfunction) {
var diff = [];
printarea.value += "reference srmjs difference distance \n";
var result = d3.zip(gcRef, gc)
diff = result.map(function(gcgc) {
var diff1 = [];
diff1[0] = gcgc[0][0] - gcgc[1][0];
diff1[1] = gcgc[0][1] - gcgc[1][1];
diff1[2] = gcgc[0][2] - gcgc[1][2];
var sumsq = sumsqfunction(diff1, gcgc);
diff1[3] = Math.sqrt(sumsq);
printarea.value += gcgc[0] + " " + gcgc[1] + " ";
printarea.value += diff1[0] + " ";
printarea.value += diff1[1] + " ";
printarea.value += diff1[2] + " ";
printarea.value += diff1[3] + "\n";
printarea.scrollTop = printarea.scrollHeight; // focus on bottom
return diff1;
});
return diff;
}
function printStat(diff) {
printarea.value += 'Number of locations validated: ' + diff.length + "\n";
printarea.value += 'abs. MAX delta X[m,deg]: ' + d3.max(d3.transpose(diff)[0].map(function(x){return Math.abs(x);})) + "\n";
printarea.value += 'abs. MAX delta Y[m,deg]: ' + d3.max(d3.transpose(diff)[1].map(function(x){return Math.abs(x);})) + "\n";
printarea.value += 'abs. MAX delta Z[m]: ' + d3.max(d3.transpose(diff)[2].map(function(x){return Math.abs(x);})) + "\n";
printarea.value += 'MAX distance[m]: ' + d3.max(d3.transpose(diff)[3]) + "\n";
printarea.scrollTop = printarea.scrollHeight; // focus on bottom
}
}
</script>
</body>
</html>
|
andreasplesch/srm.js
|
test/cd2cs_test.html
|
HTML
|
mit
| 14,939
|
# frozen_string_literal: true
require 'spec_helper'
require 'vk/api/ads/targ_suggestions_regions'
RSpec.describe Vk::API::Ads::TargSuggestionsRegions do
subject(:model) { described_class }
it { is_expected.to be < Dry::Struct }
it { is_expected.to be < Vk::Schema::Object }
describe 'attributes' do
subject(:attributes) { model.instance_methods(false) }
it { is_expected.to include :id }
it { is_expected.to include :name }
it { is_expected.to include :type }
end
end
|
alsemyonov/vk
|
spec/vk/api/ads/targ_suggestions_regions_spec.rb
|
Ruby
|
mit
| 497
|
package percolate;
/******************************************************************************
* Compilation: javac InteractivePercolationVisualizer.java
* Execution: java InteractivePercolationVisualizer N
* Dependencies: PercolationVisualizer.java Percolation.java
*
* This program takes the grid size N as a command-line argument.
* Then, the user repeatedly clicks sites to open with the mouse.
* After each site is opened, it draws full sites in light blue,
* open sites (that aren't full) in white, and blocked sites in black.
*
******************************************************************************/
import edu.princeton.cs.algs4.StdDraw;
public class InteractivePercolationVisualizer {
private static final int DELAY = 20;
public static void main(String[] args) {
// N-by-N percolation system (read from command-line, default = 10)
int N = 10;
if (args.length == 1) N = Integer.parseInt(args[0]);
// turn on animation mode
StdDraw.show(0);
// repeatedly open site specified my mouse click and draw resulting system
//StdOut.println(N);
Percolation perc = new Percolation(N);
PercolationVisualizer.draw(perc, N);
StdDraw.show(DELAY);
while (true) {
// detected mouse click
if (StdDraw.mousePressed()) {
// screen coordinates
double x = StdDraw.mouseX();
double y = StdDraw.mouseY();
// convert to row i, column j
int i = (int) (N - Math.floor(y) - 1);
int j = (int) (Math.floor(x));
// open site (i, j) provided it's in bounds
if (i >= 0 && i < N && j >= 0 && j < N) {
if (!perc.isOpen(i, j)) {
//StdOut.println(i + " " + j);
perc.open(i, j);
}
}
// draw N-by-N percolation system
PercolationVisualizer.draw(perc, N);
}
StdDraw.show(DELAY);
}
}
}
|
TicknorN/B8-CSC301
|
Percolate/src/percolate/InteractivePercolationVisualizer.java
|
Java
|
mit
| 2,166
|
/*! \file */
/* ************************************************************************
* Copyright (c) 2019-2022 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* ************************************************************************ */
#include "auto_testing_bad_arg.hpp"
#include "testing.hpp"
template <typename T>
void testing_gthr_bad_arg(const Arguments& arg)
{
static const size_t safe_size = 100;
// Create rocsparse handle
rocsparse_local_handle handle;
// Allocate memory on device
device_vector<rocsparse_int> dx_ind(safe_size);
device_vector<T> dx_val(safe_size);
device_vector<T> dy(safe_size);
if(!dx_ind || !dx_val || !dy)
{
CHECK_HIP_ERROR(hipErrorOutOfMemory);
return;
}
// Test rocsparse_gthr()
EXPECT_ROCSPARSE_STATUS(
rocsparse_gthr<T>(nullptr, safe_size, dy, dx_val, dx_ind, rocsparse_index_base_zero),
rocsparse_status_invalid_handle);
EXPECT_ROCSPARSE_STATUS(
rocsparse_gthr<T>(handle, safe_size, nullptr, dx_val, dx_ind, rocsparse_index_base_zero),
rocsparse_status_invalid_pointer);
EXPECT_ROCSPARSE_STATUS(
rocsparse_gthr<T>(handle, safe_size, dy, nullptr, dx_ind, rocsparse_index_base_zero),
rocsparse_status_invalid_pointer);
EXPECT_ROCSPARSE_STATUS(
rocsparse_gthr<T>(handle, safe_size, dy, dx_val, nullptr, rocsparse_index_base_zero),
rocsparse_status_invalid_pointer);
}
template <typename T>
void testing_gthr(const Arguments& arg)
{
rocsparse_int M = arg.M;
rocsparse_int nnz = arg.nnz;
rocsparse_index_base base = arg.baseA;
// Create rocsparse handle
rocsparse_local_handle handle;
// Argument sanity check before allocating invalid memory
if(nnz <= 0)
{
static const size_t safe_size = 100;
// Allocate memory on device
device_vector<rocsparse_int> dx_ind(safe_size);
device_vector<T> dx_val(safe_size);
device_vector<T> dy(safe_size);
if(!dx_ind || !dx_val || !dy)
{
CHECK_HIP_ERROR(hipErrorOutOfMemory);
return;
}
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_host));
EXPECT_ROCSPARSE_STATUS(rocsparse_gthr<T>(handle, nnz, dy, dx_val, dx_ind, base),
nnz < 0 ? rocsparse_status_invalid_size : rocsparse_status_success);
return;
}
// Allocate host memory
host_vector<rocsparse_int> hx_ind(nnz);
host_vector<T> hx_val_gold(nnz);
host_vector<T> hy(M);
// Initialize data on CPU
rocsparse_seedrand();
rocsparse_init_index(hx_ind, nnz, 1, M);
rocsparse_init<T>(hy, 1, M, 1);
// Allocate device memory
device_vector<rocsparse_int> dx_ind(nnz);
device_vector<T> dx_val_1(nnz);
device_vector<T> dx_val_2(nnz);
device_vector<T> dy(M);
if(!dx_ind || !dx_val_1 || !dx_val_2 || !dy)
{
CHECK_HIP_ERROR(hipErrorOutOfMemory);
return;
}
// Copy data from CPU to device
CHECK_HIP_ERROR(hipMemcpy(dx_ind, hx_ind, sizeof(rocsparse_int) * nnz, hipMemcpyHostToDevice));
CHECK_HIP_ERROR(hipMemcpy(dy, hy, sizeof(T) * M, hipMemcpyHostToDevice));
if(arg.unit_check)
{
// Pointer mode host
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_host));
CHECK_ROCSPARSE_ERROR(rocsparse_gthr<T>(handle, nnz, dy, dx_val_1, dx_ind, base));
// Pointer mode device
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_device));
CHECK_ROCSPARSE_ERROR(rocsparse_gthr<T>(handle, nnz, dy, dx_val_2, dx_ind, base));
// Copy output to host
// CPU gthr
host_gthr<rocsparse_int, T>(nnz, hy, hx_val_gold, hx_ind, base);
hx_val_gold.unit_check(dx_val_1);
hx_val_gold.unit_check(dx_val_2);
}
if(arg.timing)
{
int number_cold_calls = 2;
int number_hot_calls = arg.iters;
CHECK_ROCSPARSE_ERROR(rocsparse_set_pointer_mode(handle, rocsparse_pointer_mode_host));
// Warm up
for(int iter = 0; iter < number_cold_calls; ++iter)
{
CHECK_ROCSPARSE_ERROR(rocsparse_gthr<T>(handle, nnz, dy, dx_val_1, dx_ind, base));
}
double gpu_time_used = get_time_us();
// Performance run
for(int iter = 0; iter < number_hot_calls; ++iter)
{
CHECK_ROCSPARSE_ERROR(rocsparse_gthr<T>(handle, nnz, dy, dx_val_1, dx_ind, base));
}
gpu_time_used = (get_time_us() - gpu_time_used) / number_hot_calls;
double gbyte_count = gthr_gbyte_count<T>(nnz);
double gpu_gbyte = get_gpu_gbyte(gpu_time_used, gbyte_count);
display_timing_info("nnz",
nnz,
s_timing_info_bandwidth,
gpu_gbyte,
s_timing_info_time,
get_gpu_time_msec(gpu_time_used));
}
}
#define INSTANTIATE(TYPE) \
template void testing_gthr_bad_arg<TYPE>(const Arguments& arg); \
template void testing_gthr<TYPE>(const Arguments& arg)
INSTANTIATE(float);
INSTANTIATE(double);
INSTANTIATE(rocsparse_float_complex);
INSTANTIATE(rocsparse_double_complex);
|
ROCmSoftwarePlatform/rocSPARSE
|
clients/testings/testing_gthr.cpp
|
C++
|
mit
| 6,546
|
//
// Created by zdravko on 24.01.16.
//
#ifndef CONTAINERS_BSTNODE_H
#define CONTAINERS_BSTNODE_H
template <class T>
struct BSTNode {
T data;
BSTNode *parent, *left, *right;
BSTNode(T data, BSTNode *parent = nullptr, BSTNode *left = nullptr, BSTNode *right = nullptr)
: data(data), parent(parent), left(left), right(right) {}
};
#endif //CONTAINERS_BSTNODE_H
|
zdravkoandonov/data-structures
|
containers/BSTNode.h
|
C
|
mit
| 389
|
<?php
/**
* @package start
*/
?>
<h1>integration</h1>
<div class="content-section-b">
<div class="container">
<h1 class="title">Carreiras</h1>
<div class="sidebar col-md-3">
<div>
<h4 class='col-md-6'>total (<span id="total_vagas99">0</span>)</h4>
<!--<div class="col-md-6 progress">
<div class="progress-bar" id="stream_progress" style="width: 0%;">0%</div>
</div>-->
</div>
<div>
<label class="sr-only" for="searchbox">Filtrar</label>
<input type="text" class="form-control" id="searchbox" placeholder="Filtrar …" autocomplete="off">
<span class="glyphicon glyphicon-search search-icon"></span>
</div>
<br>
<!--selects -->
<div class="well">
<fieldset id="times_criteria">
<legend>Times</legend>
<select class="form-control" id="times_filter" multiple="multiple">
</select>
</fieldset>
</div>
<div class="well">
<fieldset id="local_criteria">
<legend>Localização</legend>
<select class="form-control" id="local_filter" multiple="multiple">
</select>
</fieldset>
</div>
<div class="well">
<fieldset id="tipo_criteria">
<legend>Tipo</legend>
<select class="form-control" id="tipo_filter" multiple="multiple">
</select>
</fieldset>
</div>
</div>
<!-- /.col-md-3 -->
<div class="col-md-9">
<div class="row">
<div class="content col-md-12">
<div id="pagination" class="vagas99-pagination col-md-9"></div>
<div class="col-md-3 content">
Por Página: <span id="per_page" class="content"></span>
</div>
</div>
</div>
<!--teams and vagas-->
<div class="row">
<div class="totalvagasteams"></div>
</div>
<div class="vagas99 row" id="vagas99"> </div>
</div>
<!-- /.col-md-9 -->
</div>
</div>
<!-- /.container -->
<script id="vagas99-template" type="text/html">
<div class="col-md-4 portfolio-item">
<div class="clearfix"></div>
<a href="#">
<img class="img-responsive" src="http://placehold.it/700x400" alt="">
</a>
<h3>
<h4><a href="vaga.html?vagaid=<%= id %>"><%= _fid %> - <%= text %></a></h4>
</h3>
<h4><%= categories.team %></h4>
<p><%= text %></p>
</div>
</script>
|
deigmaranderson/99carreiras
|
99carreiras/template-parts/integration.php
|
PHP
|
mit
| 2,732
|
module Monoids where
import Data.Semigroup
data NonEmpry a = a :| [a]
|
mortum5/programming
|
haskell/ITMO-Course/hw1/src/Monoids.hs
|
Haskell
|
mit
| 82
|
---
layout: post
title: Swift介绍(基于Swift4版本)
category: Swift
author: 轨迹
---
Swift是为macOS、iOS、watchOS和tvOS设计的一门编程语言。简单易学、语法简单,交互性强都是它的特点。在设计这门语言时,就很注重考虑它的安全性,而且编译运行时也是非常的轻量快速。
Swift 4 是基于Swift 3 上的加强版本,带来更好的健壮性和稳定性。并且可以兼容Swift 3 的源代码。并对标准库进行了升级,带来了新的特性,比如smart key paths和serialization,而且大幅度的降低应用的编译时间以及应用的包大小。
在Swift Playgrounds中,你可以创建一段playgrounds的程序代码,它可以实时编译并快速的展示运行结果。甚至可以用playgrounds的代码来通过蓝牙控制机器人等硬件设备。正因为简单并且实时的交互性,可以更加激发学习者的兴趣,去创造更多有意思的东西并掌握这门语言。
#### 开源
Swift 4 是在[Swift.org](https://swift.org/getting-started/)平台上开源开发的,包含具体的源代码,bug跟踪日志,邮件反馈列表以及常规的开发编译工具。这些都是对所有人开放的。在活跃的开发社区中,既有苹果内部的开发者,也有外部的开发者。他们合力协作,让Swift语言越来越惊艳。Swift早已经支持苹果的所有平台,并且也支持Linux平台,并且社区中的人还继续努力,让Swift可以支持更多的平台,这是非常值得期待的,因为Swift是一门有趣的语言!
#### 代码兼容模式
Swift 4 是向前兼容Swift 3 代码的。所以在使用Swift 4 ,不需要修改你之前的Swift代码就可以在新的编译器上运行。你可以根据自己的需要,移植你的代码到新的Swift 4 编译器上,并且享受Swift 4 带来的新特性。
你可以使用Swift 4 编译器中的三种模式:
* Swift 3 编译器模式。这是默认的模式,会使用Swift 3 的编译器去编译代码。
* Swift 4 编译器模式。这个模式下,你可以使用到Swift 4 的许多新的功能以及性能优化的体验。有些地方可能需要进行代码移植,但是这个从Swift 3 到Swift 4 的移植比起之前从Swift 2.2 到Swift 3 的移植要简单轻松的多。
* 混合模式。这个模式可以让开发者进行Swift 3 和Swift 4 的混合编译。这样可以让开发者逐步慢慢的去迁移Swift 3的代码到Swift 4 上。
#### Swift 4 新特性
* 更快速简单的使用Strings。其中包裹Unicode检查,子串的创建使用等操作。
* Smart key paths特性为Swift的类型提供了类型安全检查、高效并且具有可扩展的键值编码(KVC)。
* 对创建、操作字典集合类型进行了优化提高。
* Extends对数据的序列化、以及序列化成外部的JSON或plist的支持。
* 禁止直接访问内存。
#### 现代化的语言
Swift是集当下编程语言之所长,并且融合了数十年苹果平台的开发经验到其中。它既包含Objective-C语言中的参数前置的表达形式,并且有简单整洁的语法,便于维护和阅读。类型推断让代码更健壮而且不容易发生错误。并且使用了modules和命名空间,这样就把把Headers给淘汰了。内存的自动管理,甚至不需要考虑代码后面的分号。这些超前的想法运用到Swift上,让这门语言更加的简单有趣。
```
extension String {
var banana : String {
let shortName = String(characters.dropFirst(1))
return "\(self) \(self) Bo B\(shortName) Banana Fana Fo F\(shortName)"
}
}
let bananaName = "Jimmy".banana // "Jimmy Jimmy Bo Bimmy Banana Fana Fo Fimmy"
```
Swift还有很多的特性让你的代码变得惊艳,比如:
* 闭包与函数指针的统一
* 元组和多返回值
* 泛型
* 对集合在某个范围的快速迭代访问
* 支持函数methods、扩展extensions、协议protocols
* 函数式编程模型,比如map和filter
* 使用try / catch / throw对本地的错误异常处理。
**文章来自 [{{ site.url }}]({{ site.url }})**
|
MrVokie/MrVokie.github.io
|
_posts/2017-08-28-swift-base-introduce.md
|
Markdown
|
mit
| 4,116
|
namespace Bridge.Redux.Tests
{
using Html5;
using QUnit;
public static class ReduxThunkTests
{
public static void Run()
{
var initialCounter = new Counter { Count = 5 };
var counterReducer =
BuildReducer.For<Counter>()
.WhenActionHasType<Increment>((state, act) => new Counter { Count = state.Count + 1 })
.WhenActionHasType<Decrement>((state, act) => new Counter { Count = state.Count - 1 })
.WhenActionHasType<IncrementBy>((state, act) => new Counter { Count = state.Count + act.Value })
.Build();
var middleware = Redux.ApplyMiddleware(ReduxMiddleware.Thunk);
var store = Redux.CreateStore(counterReducer, initialCounter, middleware);
QUnit.Module("Redux Thunk Middleware");
QUnit.Test("Dispatching action with thunk middleware works", assert =>
{
store.Dispatch(new Increment());
assert.Equal(store.GetState().Count, 6);
});
QUnit.Test("Dispatching action after a timeout (async) works", assert =>
{
var done = assert.Async();
store.ThunkDispatch(dispatch =>
{
Window.SetTimeout(() =>
{
var action = new IncrementBy { Value = 10 };
var normalized = action.NormalizeActionForDispatch();
dispatch(normalized);
assert.Equal(store.GetState().Count, 16);
done();
}, 500);
});
});
}
}
}
|
Zaid-Ajaj/Bridge.Redux
|
Bridge.Redux.Tests/ReduxThunkTests.cs
|
C#
|
mit
| 1,774
|
<?php
/* TwigBundle:Exception:traces.txt.twig */
class __TwigTemplate_39f631a2eb2e29d9f4069821c7f3afd5beaf2ed87b37023f3fdd2045c6e3f438 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
if (twig_length_filter($this->env, $this->getAttribute((isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception")), "trace", array()))) {
// line 2
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["exception"]) ? $context["exception"] : $this->getContext($context, "exception")), "trace", array()));
foreach ($context['_seq'] as $context["_key"] => $context["trace"]) {
// line 3
$this->env->loadTemplate("TwigBundle:Exception:trace.txt.twig")->display(array("trace" => $context["trace"]));
// line 4
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
}
}
public function getTemplateName()
{
return "TwigBundle:Exception:traces.txt.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 27 => 4, 25 => 3, 21 => 2, 19 => 1,);
}
}
|
spvernet/symfony_2
|
app/cache/dev/twig/39/f6/31a2eb2e29d9f4069821c7f3afd5beaf2ed87b37023f3fdd2045c6e3f438.php
|
PHP
|
mit
| 1,750
|
<!DOCTYPE html>
<html lang="en-us" dir="ltr" itemscope itemtype="http://schema.org/Article">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>movies</title>
<meta name="author" content="" />
<meta name="description"
content=""/>
<meta name="yandex-verification" content="48a8210fc043c5e8" />
<meta name="generator" content="Hugo 0.54.0" />
<meta itemprop="name" content="movies"/>
<meta itemprop="description"
content=""/>
<meta itemprop="image"
content="/img/logo.svg"/>
<meta property="og:title" content="movies"/>
<meta property="og:type"
content="website"/>
<meta property="og:url" content="http://www.cinetenisverde.com.br/categories/movies/"/>
<meta property="og:image"
content="/img/logo.svg"/>
<meta property="og:description"
content=""/>
<meta property="og:site_name" content="Cine Tênis Verde"/>
<meta property="article:section" content="categories"/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site"
content=""/>
<meta name="twitter:title" content="movies"/>
<meta name="twitter:description"
content=""/>
<meta name="twitter:creator"
content=""/>
<meta name="twitter:image:src"
content="/img/logo.svg"/>
<link href="http://www.cinetenisverde.com.br/categories/movies/index.xml" rel="alternate" type="application/rss+xml"
title="Cine Tênis Verde"/>
<link href="http://www.cinetenisverde.com.br/categories/movies/index.xml" rel="feed" type="application/rss+xml"
title="Cine Tênis Verde"/>
<link rel="stylesheet" type="text/css" href="/css/capsule.min.css"/>
<link rel="stylesheet" type="text/css" href="/css/custom.css"/>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50557403-1', 'auto');
ga('send', 'pageview');
</script>
<link rel="apple-touch-icon" href="/img/apple-touch-icon.png"/>
<link rel="icon" href="/img/favicon.ico"/>
</head>
<body style="min-height:100vh;display:flex;flex-direction:column">
<nav class="navbar has-shadow is-white"
role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img alt="Brand" src="/img/brand.svg">
<div class="title is-4"> Cine Tênis Verde</div>
</a>
<label class="button navbar-burger is-white" for="navbar-burger-state">
<span></span>
<span></span>
<span></span>
</label>
</div>
<input type="checkbox" id="navbar-burger-state"/>
<div class="navbar-menu">
<div class="navbar-end">
<a href="/post"
class="navbar-item
">search
</a>
<a href="https://twitter.com/cinetenisverde"
class="navbar-item
">twitter
</a>
<a href="/index.xml"
class="navbar-item
">rss
</a>
</div>
</div>
</div>
</nav>
<section class="section" style="flex:1">
<div class="container" style="min-height:56vh">
<p class="title">Category: movies</p>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/following/">Following</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 14, 2014</span>
<span>2 min.</span>
</p>
<p>Following é um filme-noir dos tempos atuais, mesmo sendo em preto e branco. É o primeiro longa-metragem dirigido, escrito e produzido por Christopher Nolan, o queridinho dos estúdios atualmente depois da trilogia Batman e trabalhos ambiciosos como Amnésia, A Origem e, claro, O Grande Truque. Ele conta a história de um jovem escritor que para conseguir inspiração começa a seguir pessoas a esmo, mas que comete o terrível erro de começar a seguir as mesmas pessoas.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/divergente/">Divergente</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 13, 2014</span>
<span>3 min.</span>
</p>
<p>Divergente é o Jogos Vorazes sem muita ação, sem muito drama, sem atuações e com pouca inspiração. No entanto, não deixa de ser um filme OK. Ele se mantém morno o tempo todo, mas aqui e ali existem momentos que prometem ser mais alguma coisa. Infelizmente, são apenas momentos. A apresentação do mundo distópico ocupa uma parte da história, e a tentativa da protagonista, Beatrice/Tris (Shailene Woodley de Os Descendentes), de não ser eliminada da facção que escolheu ocupa a outra parte da história.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/monty-python-o-sentido-da-vida/">Monty Python O Sentido da Vida</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 10, 2014</span>
<span>2 min.</span>
</p>
<p>Os comediantes do Monty Python parecem sempre querer se superar. Em O Sentido da Vida, apesar de estarmos vendo diversas esquetes no melhor estilo do seu programa televisivo The Flying Circus elas se juntam para tentar explicar, do nascimento à morte, qual é, enfim, o sentido da vida? Pegando emprestados alguns temas mais ou menos comuns com o livro (e pequeno filme) O Guia do Mochileiro das Galáxias, o filme inicia com um pequeno curta (que se juntará ao longa em determinado momento) que consegue, assim como a montagem Eisensteiniana, relacionar um grupo de contadores velhinhos de uma empresa de seguros durante a crise econômica dos ano 80 com um motim dos escravos de um navio.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/scarface/">Scarface</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 10, 2014</span>
<span>2 min.</span>
</p>
<p>Scarface é um clássico instantâneo, desses que nasce um dia e já gera uma multidão de fãs. O mais novo seriado de sucesso, Breaking Bad, faz praticamente uma apologia ao filme de Brian de Palma. Porém, diferente de Walter White, Tony Montana já se mostra um bicho ruim desde a primeira cena, interrogado e acuado por americanos que precisam verificar quais dentro os milhares de cubanos que chegaram ao “país da liberdade” são criminosos.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/tudo-o-que-voce-sempre-quis-saber-sobre-sexo-e-tinha-medo-de-perguntar/">Tudo o Que Você Sempre Quis Saber Sobre Sexo E Tinha Medo de Perguntar</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 10, 2014</span>
<span>1 min.</span>
</p>
<p>Woody Allen até quando é medíocre acaba se saindo melhor que a média. Nos anos 70 suas comédias eram mais apelativas e populares, mas nem por isso não deixavam de conter alguma visão crítica sobre nossa realidade. Reinventando o conteúdo do famoso livro homônimo de David Reuben, Allen escreve e dirige uma série de curtas que dissertam, cada um ao seu jeito, sobre afrodisíacos, perversões, pesquisas científicas e travestis. Protagonizando a maior parte das histórias, minhas duas preferidas com certeza são a visão do sexo do ponto de vista do organismo como um sistema setorizado e a paixão de um médico por uma cabra.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/amante-a-domicilio/">Amante a Domicílio</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 8, 2014</span>
<span>2 min.</span>
</p>
<p>Woody Allen está de volta nas telonas, mas não como diretor. Aqui ele faz o papel de um cafetão que começa a agenciar seu ex-funcionário após o fechamento de sua loja de livros raros. Na verdade, depois de tantos anos, ele é mais do que ex-funcionário: é família. Isso aparentemente não interfere nos interesses comerciais do personagem de Allen, e aí está a primeira piada judia do filme.
Ops, esqueci de dizer.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/o-ancora-a-lenda-de-ron-burgundy/">O Âncora A Lenda de Ron Burgundy</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 8, 2014</span>
<span>2 min.</span>
</p>
<p>Não incomoda ver homens adultos, profissionais da mídia televisiva, se comportando como adolescentes estúpidos que só pensam em mulheres como objetos sexuais e, pior, rivais à sua suposta inteligência superior? Para um machista contemporâneo a parte da mulher como objeto sexual permanece, mas como bem demonstra O Âncora, o medo de ser mais burro e a vontade de transar podem ser dois lados de uma mesma moeda de um centavo.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/o-espetacular-homem-aranha-2-a-ameaca-de-electro/">O Espetacular Homem-Aranha 2 A Ameaça de Electro</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 6, 2014</span>
<span>5 min.</span>
</p>
<p>O Espetacular Homem-Aranha, como é chamada no Brasil essa nova franquia da Sony em torno do herói de teias, não poderia ser mais “espetacular” em sua segunda aparição. Aliás, é tão “espetacular” no sentido da palavra que os habitantes de Nova Iorque já estão habituados a se apinharem educadamente atrás das quase presentes barreiras de metal colocadas estrategicamente em torno de mais um embate entre o Aranha e mais um dos seus arqui-inimigos.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/presente-de-grego/">Presente de Grego</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 2, 2014</span>
<span>2 min.</span>
</p>
<p>Curioso como Rachel McAdams em Uma Manhã Gloriosa é a mulher “trabalhadeira” moderna e esse não é o grande tema deste filme de 2010. Quer dizer, não tanto um tema central e impactante quanto Diane Keaton 27 anos atrás em Presente de Grego. Neste filme de Charles Shyer (O Pai da Noiva) a executiva de sucesso precisa escolher entre dar atenção a suas contas milionárias da empresa onde trabalha ou a um bebê que “herdou” de primos distantes.</p>
</div>
</article>
<article class="media">
<div class="media-content">
<p class="title"><a href="http://www.cinetenisverde.com.br/o-misterio-das-duas-irmas/">O Mistério das Duas Irmãs</a></p>
<p class="subtitle is-flex" style="justify-content:space-between">
<span>May 1, 2014</span>
<span>2 min.</span>
</p>
<p>“Um filme vendido como terror, mas que não consegue sequer chegar próximo de um suspense. Depois de passarmos quase duas horas acompanhando a movimentação de uma câmera que parece estar sempre revelando algo espantoso ou fantástico (não está), temos uma série de revelações completamente atrapalhadas sobre algo que não estávamos sequer procurando desvendar.”
Essa foi a descrição que fiz ao assistir o original coreano de Medo, ou “A Tale of Two Sisters”.</p>
</div>
</article>
</div>
<br>
<br>
<br>
<div class="container">
<nav class="pagination">
<a href="/categories/movies/page/105/" class="pagination-previous">Previous</a>
<a href="/categories/movies/page/107/" class="pagination-next">Next</a>
<ul class="pagination-list">
<li><a href="/categories/movies/" class="pagination-link">
1
</a></li>
<li>
<span class="pagination-ellipsis">…</span>
</li>
<li><a href="/categories/movies/page/105/" class="pagination-link">
105
</a></li>
<li><a href="/categories/movies/page/106/" class="pagination-link is-current">
106
</a></li>
<li><a href="/categories/movies/page/107/" class="pagination-link">
107
</a></li>
<li>
<span class="pagination-ellipsis">…</span>
</li>
<li><a href="/categories/movies/page/175/" class="pagination-link">175
</a></li>
</ul>
</nav>
</div>
</section>
<footer class="footer">
<div class="container">
<nav class="level">
<div class="level-right has-text-centered">
<div class="level-item">
<a class="button" href="http://www.cinetenisverde.com.br/">
<span class="icon"><i class="fa fa-home"></i></span>
</a>
<a class="button" href="/post">
<span class="icon"><i class="fa fa-search"></i></span>
</a>
<a class="button" href="https://twitter.com/cinetenisverde">
<span class="icon"><i class="fa fa-twitter"></i></span>
</a>
<a class="button" href="/index.xml">
<span class="icon"><i class="fa fa-rss"></i></span>
</a>
</div>
</div>
</nav>
</div>
</footer>
</body>
</html>
|
cinetenisverde/cinetenisverde.github.io
|
categories/movies/page/106/index.html
|
HTML
|
mit
| 14,517
|
using Jobber.Core;
using Jobber.Sample.Contract;
namespace Jobber.Sample.JobProducer
{
class TodoJob : Job<Todo>
{
}
}
|
GokGokalp/Jobber
|
Jobber.Sample.JobProducer/TodoJob.cs
|
C#
|
mit
| 134
|
<!DOCTYPE html>
<html lang="en">
<head>
<title>LaunchArgumentWithMultipleValues Protocol Reference</title>
<link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../css/highlight.css" />
<meta charset='utf-8'>
<script src="../js/jquery.min.js" defer></script>
<script src="../js/jazzy.js" defer></script>
</head>
<body>
<a name="//apple_ref/swift/Protocol/LaunchArgumentWithMultipleValues" class="dashAnchor"></a>
<a title="LaunchArgumentWithMultipleValues Protocol Reference"></a>
<header>
<div class="content-wrapper">
<p><a href="../index.html">AutoMate Docs</a> (100% documented)</p>
</div>
</header>
<div class="content-wrapper">
<p id="breadcrumbs">
<a href="../index.html">AutoMate Reference</a>
<img id="carat" src="../img/carat.png" />
LaunchArgumentWithMultipleValues Protocol Reference
</p>
</div>
<div class="content-wrapper">
<nav class="sidebar">
<ul class="nav-groups">
<li class="nav-group-name">
<a href="../Guides.html">Guides</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Structs/TestLauncher.html">TestLauncher</a>
</li>
<li class="nav-group-task">
<a href="../system-arguments.html">System arguments</a>
</li>
<li class="nav-group-task">
<a href="../custom-arguments.html">Custom arguments</a>
</li>
<li class="nav-group-task">
<a href="../launch-environments.html">Launch environments</a>
</li>
<li class="nav-group-task">
<a href="../automate-environments.html">AutoMate environments</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../XCTest.html">XCTest</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Classes/AppUITestCase.html">AppUITestCase</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/XCTestCase.html">XCTestCase</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/XCUIApplication.html">XCUIApplication</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/XCUIElement.html">XCUIElement</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/XCUIElementQuery.html">XCUIElementQuery</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/XCUIElementTypeQueryProvider.html">XCUIElementTypeQueryProvider</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Page objects.html">Page objects</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Protocols/BaseAppPageProtocol.html">BaseAppPageProtocol</a>
</li>
<li class="nav-group-task">
<a href="../Classes/BaseAppPage.html">BaseAppPage</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/ModalPage.html">ModalPage</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/PushedPage.html">PushedPage</a>
</li>
<li class="nav-group-task">
<a href="../Classes/HealthPermissionPage.html">HealthPermissionPage</a>
</li>
<li class="nav-group-task">
<a href="../Classes/HealthPermissionPage/Locators.html">– Locators</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Locators.html">Locators</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Protocols/Locator.html">Locator</a>
</li>
<li class="nav-group-task">
<a href="../Enums/KeyboardLocator.html">KeyboardLocator</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../System alerts.html">System alerts</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Protocols/SystemAlert.html">SystemAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/HealthAuthorizationDontAllowAlert.html">HealthAuthorizationDontAllowAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/LocationAlwaysAlert.html">LocationAlwaysAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/LocationUpgradeWhenInUseAlwaysAlert.html">LocationUpgradeWhenInUseAlwaysAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/LocationWhenInUseAlert.html">LocationWhenInUseAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/AddressBookAlert.html">AddressBookAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/BluetoothPeripheralAlert.html">BluetoothPeripheralAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/CalendarAlert.html">CalendarAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/CallsAlert.html">CallsAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/CameraAlert.html">CameraAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/MediaLibraryAlert.html">MediaLibraryAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/MicrophoneAlert.html">MicrophoneAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/MotionAlert.html">MotionAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PhotosAlert.html">PhotosAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/RemindersAlert.html">RemindersAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/SiriAlert.html">SiriAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/SpeechRecognitionAlert.html">SpeechRecognitionAlert</a>
</li>
<li class="nav-group-task">
<a href="../Structs/WillowAlert.html">WillowAlert</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Launch arguments.html">Launch arguments</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Structs/SystemLanguages.html">SystemLanguages</a>
</li>
<li class="nav-group-task">
<a href="../Structs/SystemLocale.html">SystemLocale</a>
</li>
<li class="nav-group-task">
<a href="../Structs/SoftwareKeyboards.html">SoftwareKeyboards</a>
</li>
<li class="nav-group-task">
<a href="../Structs/HardwareKeyboards.html">HardwareKeyboards</a>
</li>
<li class="nav-group-task">
<a href="../Structs/SystemKeyboards.html">SystemKeyboards</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CoreDataOption.html">CoreDataOption</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CoreDataOption/VerbosityLevel.html">– VerbosityLevel</a>
</li>
<li class="nav-group-task">
<a href="../Enums/CoreDataOption/DiskSyncing.html">– DiskSyncing</a>
</li>
<li class="nav-group-task">
<a href="../Enums/LocalizedStrings.html">LocalizedStrings</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchArgument.html">LaunchArgument</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchArgumentWithSingleValue.html">LaunchArgumentWithSingleValue</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchArgumentWithMultipleValues.html">LaunchArgumentWithMultipleValues</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchArgumentValue.html">LaunchArgumentValue</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Launch environments.html">Launch environments</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Structs/EventLaunchEnvironment.html">EventLaunchEnvironment</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ReminderLaunchEnvironment.html">ReminderLaunchEnvironment</a>
</li>
<li class="nav-group-task">
<a href="../Structs/ContactLaunchEnvironment.html">ContactLaunchEnvironment</a>
</li>
<li class="nav-group-task">
<a href="../Structs/AnimationLaunchEnvironment.html">AnimationLaunchEnvironment</a>
</li>
<li class="nav-group-task">
<a href="../Structs/IsInUITestLaunchEnvironment.html">IsInUITestLaunchEnvironment</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/AutoMateLaunchEnvironment.html">AutoMateLaunchEnvironment</a>
</li>
<li class="nav-group-task">
<a href="../Structs/LaunchEnvironment.html">LaunchEnvironment</a>
</li>
<li class="nav-group-task">
<a href="../Structs/LaunchEnvironments.html">LaunchEnvironments</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchEnvironmentProtocol.html">LaunchEnvironmentProtocol</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchEnvironmentWithSingleValue.html">LaunchEnvironmentWithSingleValue</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchEnvironmentWithMultipleValues.html">LaunchEnvironmentWithMultipleValues</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/CleanableLaunchEnvironment.html">CleanableLaunchEnvironment</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/CleanableLaunchEnvironmentWithMultipleValues.html">CleanableLaunchEnvironmentWithMultipleValues</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchEnvironmentValue.html">LaunchEnvironmentValue</a>
</li>
<li class="nav-group-task">
<a href="../Structs/LaunchEnvironmentResourceValue.html">LaunchEnvironmentResourceValue</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Other Enums.html">Other Enumerations</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Enums/AutoMateKey.html">AutoMateKey</a>
</li>
<li class="nav-group-task">
<a href="../Enums/AvoidableElement.html">AvoidableElement</a>
</li>
<li class="nav-group-task">
<a href="../Enums/BooleanLaunchArgumentValue.html">BooleanLaunchArgumentValue</a>
</li>
<li class="nav-group-task">
<a href="../Enums/BooleanLaunchEnvironmentValue.html">BooleanLaunchEnvironmentValue</a>
</li>
<li class="nav-group-task">
<a href="../Enums/DeviceType.html">DeviceType</a>
</li>
<li class="nav-group-task">
<a href="../Enums/HardwareKeyboard.html">HardwareKeyboard</a>
</li>
<li class="nav-group-task">
<a href="../Enums/SoftwareKeyboard.html">SoftwareKeyboard</a>
</li>
<li class="nav-group-task">
<a href="../Enums/StringComparisonOperator.html">StringComparisonOperator</a>
</li>
<li class="nav-group-task">
<a href="../Enums/SwipeDirection.html">SwipeDirection</a>
</li>
<li class="nav-group-task">
<a href="../Enums/SystemCountry.html">SystemCountry</a>
</li>
<li class="nav-group-task">
<a href="../Enums/SystemLanguage.html">SystemLanguage</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Other Extensions.html">Other Extensions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Extensions/Array.html">Array</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/Bundle.html">Bundle</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/Dictionary.html">Dictionary</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/RawRepresentable.html">RawRepresentable</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/Sequence.html">Sequence</a>
</li>
<li class="nav-group-task">
<a href="../Extensions/String.html">String</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Other Functions.html">Other Functions</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Other Functions.html#/s:8AutoMate2eeoiySbAA16LaunchOptionsSetV_ADtF">==(_:_:)</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Other Protocols.html">Other Protocols</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Protocols/Application.html">Application</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/DescendantsMatching.html">DescendantsMatching</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/HealthAlertAllow.html">HealthAlertAllow</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/HealthAlertDeny.html">HealthAlertDeny</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/HealthAlertOk.html">HealthAlertOk</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/HealthAlertTurnOffAll.html">HealthAlertTurnOffAll</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/HealthAlertTurnOnAll.html">HealthAlertTurnOnAll</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/IdentifiableByElement.html">IdentifiableByElement</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/KeyboardLaunchArgument.html">KeyboardLaunchArgument</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LanguageLaunchArgument.html">LanguageLaunchArgument</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LaunchOption.html">LaunchOption</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LocaleLaunchArgument.html">LocaleLaunchArgument</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LocationAlertAllow.html">LocationAlertAllow</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LocationAlertCancel.html">LocationAlertCancel</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LocationAlertDeny.html">LocationAlertDeny</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LocationAlertOk.html">LocationAlertOk</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LocationAlwaysAlertAllow.html">LocationAlwaysAlertAllow</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/LocationAlwaysAlertAllowWhenInUseOnly.html">LocationAlwaysAlertAllowWhenInUseOnly</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/SystemAlertAllow.html">SystemAlertAllow</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/SystemAlertCancel.html">SystemAlertCancel</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/SystemAlertDeny.html">SystemAlertDeny</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/SystemAlertOk.html">SystemAlertOk</a>
</li>
<li class="nav-group-task">
<a href="../Protocols/SystemMessages.html">SystemMessages</a>
</li>
</ul>
</li>
<li class="nav-group-name">
<a href="../Other Structs.html">Other Structures</a>
<ul class="nav-group-tasks">
<li class="nav-group-task">
<a href="../Structs/LaunchOptionsSet.html">LaunchOptionsSet</a>
</li>
<li class="nav-group-task">
<a href="../Structs/PhotosAddAlert.html">PhotosAddAlert</a>
</li>
</ul>
</li>
</ul>
</nav>
<article class="main-content">
<section>
<section class="section">
<h1>LaunchArgumentWithMultipleValues</h1>
<div class="declaration">
<div class="language">
<pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">protocol</span> <span class="kt">LaunchArgumentWithMultipleValues</span> <span class="p">:</span> <span class="kt"><a href="../Protocols/LaunchArgument.html">LaunchArgument</a></span><span class="p">,</span> <span class="kt">ExpressibleByArrayLiteral</span></code></pre>
</div>
</div>
<p>Protocol that should be implemented by types representing launch argument that accepts collection
of values.</p>
<p><strong>Example:</strong></p>
<pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">MagicNumbers</span><span class="p">:</span> <span class="kt">LaunchArgumentWithMultipleValues</span> <span class="p">{</span>
<span class="kd">struct</span> <span class="kt">Number</span><span class="p">:</span> <span class="kt">LaunchArgumentValue</span> <span class="p">{</span>
<span class="k">var</span> <span class="nv">value</span><span class="p">:</span> <span class="kt">String</span> <span class="p">{</span>
<span class="k">return</span> <span class="s">"</span><span class="se">\(</span><span class="n">number</span><span class="se">)</span><span class="s">"</span>
<span class="p">}</span>
<span class="k">let</span> <span class="nv">number</span><span class="p">:</span> <span class="kt">Int</span>
<span class="p">}</span>
<span class="k">let</span> <span class="nv">key</span> <span class="o">=</span> <span class="s">"MagicNumbers"</span>
<span class="k">let</span> <span class="nv">values</span><span class="p">:</span> <span class="p">[</span><span class="kt">Number</span><span class="p">]</span>
<span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="n">_</span> <span class="nv">values</span><span class="p">:</span> <span class="p">[</span><span class="kt">Number</span><span class="p">])</span> <span class="p">{</span>
<span class="k">self</span><span class="o">.</span><span class="n">values</span> <span class="o">=</span> <span class="n">values</span>
<span class="p">}</span>
<span class="p">}</span>
</code></pre>
<p><strong>Usage:</strong></p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">app</span> <span class="o">=</span> <span class="kt">XCUIApplication</span><span class="p">()</span>
<span class="kt">TestLauncher</span><span class="p">(</span><span class="nv">options</span><span class="p">:</span> <span class="p">[</span>
<span class="kt">MagicNumbers</span><span class="p">([</span><span class="o">.</span><span class="nf">init</span><span class="p">(</span><span class="nv">number</span><span class="p">:</span> <span class="mi">5</span><span class="p">),</span> <span class="o">.</span><span class="nf">init</span><span class="p">(</span><span class="nv">number</span><span class="p">:</span> <span class="mi">7</span><span class="p">)])</span>
<span class="p">])</span><span class="o">.</span><span class="nf">configure</span><span class="p">(</span><span class="n">app</span><span class="p">)</span><span class="o">.</span><span class="nf">launch</span><span class="p">()</span>
</code></pre>
<p><strong>Handling:</strong></p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">magicNumbers</span> <span class="o">=</span> <span class="kt">UserDefaults</span><span class="o">.</span><span class="n">standard</span><span class="o">.</span><span class="nf">stringArray</span><span class="p">(</span><span class="nv">forKey</span><span class="p">:</span> <span class="s">"MagicNumbers"</span><span class="p">)</span>
</code></pre>
</section>
<section class="section task-group-section">
<div class="task-group">
<ul>
<li class="item">
<div>
<code>
<a name="/s:8AutoMate32LaunchArgumentWithMultipleValuesP5ValueQa"></a>
<a name="//apple_ref/swift/Alias/Value" class="dashAnchor"></a>
<a class="token" href="#/s:8AutoMate32LaunchArgumentWithMultipleValuesP5ValueQa">Value</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p><code><a href="../Protocols/LaunchArgumentValue.html">LaunchArgumentValue</a></code> holds a set of requirements for the values a launch arguments can hold.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">associatedtype</span> <span class="kt">Value</span> <span class="p">:</span> <span class="kt"><a href="../Protocols/LaunchArgumentValue.html">LaunchArgumentValue</a></span></code></pre>
</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:8AutoMate32LaunchArgumentWithMultipleValuesP6valuesSay5ValueQzGvp"></a>
<a name="//apple_ref/swift/Property/values" class="dashAnchor"></a>
<a class="token" href="#/s:8AutoMate32LaunchArgumentWithMultipleValuesP6valuesSay5ValueQzGvp">values</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Array of values associated to the launch argument.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="k">var</span> <span class="nv">values</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/LaunchArgumentWithMultipleValues.html#/s:8AutoMate32LaunchArgumentWithMultipleValuesP5ValueQa">Value</a></span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:8AutoMate32LaunchArgumentWithMultipleValuesPyxSay5ValueQzGcfc"></a>
<a name="//apple_ref/swift/Method/init(_:)" class="dashAnchor"></a>
<a class="token" href="#/s:8AutoMate32LaunchArgumentWithMultipleValuesPyxSay5ValueQzGcfc">init(_:)</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Initializes object with given array of valeus.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="nf">init</span><span class="p">(</span><span class="n">_</span> <span class="nv">values</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/LaunchArgumentWithMultipleValues.html#/s:8AutoMate32LaunchArgumentWithMultipleValuesP5ValueQa">Value</a></span><span class="p">])</span></code></pre>
</div>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<div class="task-name-container">
<a name="/ArrayLiteralConvertible"></a>
<a name="//apple_ref/swift/Section/ArrayLiteralConvertible" class="dashAnchor"></a>
<a href="#/ArrayLiteralConvertible">
<h3 class="section-name">ArrayLiteralConvertible</h3>
</a>
</div>
<ul>
<li class="item">
<div>
<code>
<a name="/s:8AutoMate32LaunchArgumentWithMultipleValuesP7ElementQa"></a>
<a name="//apple_ref/swift/Alias/Element" class="dashAnchor"></a>
<a class="token" href="#/s:8AutoMate32LaunchArgumentWithMultipleValuesP7ElementQa">Element</a>
</code>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>An argument that can hold multiple values uses an array as a storage.
For convienence client can initialize it with and array literal
containing element’s of type <code><a href="../Protocols/LaunchArgumentWithMultipleValues.html#/s:8AutoMate32LaunchArgumentWithMultipleValuesP5ValueQa">Value</a></code>.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">associatedtype</span> <span class="kt">Element</span> <span class="o">=</span> <span class="k">Self</span><span class="o">.</span><span class="kt"><a href="../Protocols/LaunchArgumentWithMultipleValues.html#/s:8AutoMate32LaunchArgumentWithMultipleValuesP5ValueQa">Value</a></span></code></pre>
</div>
</div>
</section>
</div>
</li>
</ul>
</div>
<div class="task-group">
<div class="task-name-container">
<a name="/Option"></a>
<a name="//apple_ref/swift/Section/Option" class="dashAnchor"></a>
<a href="#/Option">
<h3 class="section-name">Option</h3>
</a>
</div>
<ul>
<li class="item">
<div>
<code>
<a name="/s:8AutoMate32LaunchArgumentWithMultipleValuesPAAE15launchArgumentsSaySSGSgvp"></a>
<a name="//apple_ref/swift/Property/launchArguments" class="dashAnchor"></a>
<a class="token" href="#/s:8AutoMate32LaunchArgumentWithMultipleValuesPAAE15launchArgumentsSaySSGSgvp">launchArguments</a>
</code>
<span class="declaration-note">
Extension method
</span>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Default formatted representation of the launch argument.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">launchArguments</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">]?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>
</div>
</div>
</section>
</div>
</li>
<li class="item">
<div>
<code>
<a name="/s:8AutoMate32LaunchArgumentWithMultipleValuesPAAE12arrayLiteralx5ValueQzd_tcfc"></a>
<a name="//apple_ref/swift/Method/init(arrayLiteral:)" class="dashAnchor"></a>
<a class="token" href="#/s:8AutoMate32LaunchArgumentWithMultipleValuesPAAE12arrayLiteralx5ValueQzd_tcfc">init(arrayLiteral:)</a>
</code>
<span class="declaration-note">
Extension method
</span>
</div>
<div class="height-container">
<div class="pointer-container"></div>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Initializes launch argument with a list.</p>
</div>
<div class="declaration">
<h4>Declaration</h4>
<div class="language">
<p class="aside-title">Swift</p>
<pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="n">arrayLiteral</span> <span class="nv">elements</span><span class="p">:</span> <span class="kt"><a href="../Protocols/LaunchArgumentWithMultipleValues.html#/s:8AutoMate32LaunchArgumentWithMultipleValuesP5ValueQa">Value</a></span><span class="o">...</span><span class="p">)</span></code></pre>
</div>
</div>
<div>
<h4>Parameters</h4>
<table class="graybox">
<tbody>
<tr>
<td>
<code>
<em>elements</em>
</code>
</td>
<td>
<div>
<p>list of values.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</section>
</div>
</li>
</ul>
</div>
</section>
</section>
<section id="footer">
<p>© 2019 <a class="link" href="https://github.com/PGSSoft/AutoMate" target="_blank" rel="external">Joanna Bednarz, Paweł Szot, Bartosz Janda, Paweł Kania, Michał Myśliwiec, Ewelina Cyło, and Mateusz Nicpoń</a>. All rights reserved. (Last updated: 2019-08-25)</p>
<p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.10.0</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
</section>
</article>
</div>
</body>
</div>
</html>
|
PGSSoft/AutoMate
|
docs/Protocols/LaunchArgumentWithMultipleValues.html
|
HTML
|
mit
| 35,211
|
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
#import "NSCoding-Protocol.h"
#import "NSCopying-Protocol.h"
#import "SSXPCCoding-Protocol.h"
@class NSMutableDictionary, NSObject<OS_dispatch_queue>;
@interface SSNetworkConstraints : NSObject <NSCoding, SSXPCCoding, NSCopying>
{
NSObject<OS_dispatch_queue> *_dispatchQueue;
NSMutableDictionary *_sizeLimits;
}
+ (id)_newModernNetworkConstraintsWithArray:(id)arg1;
+ (id)_newLegacyNetworkConstraintsWithDictionary:(id)arg1;
+ (void)_addNetworkConstraintsToDictionary:(id)arg1 forNetworkType:(long long)arg2 legacyDictionary:(id)arg3;
+ (id)newNetworkConstraintsByDownloadKindFromURLBag:(id)arg1;
- (id)copyXPCEncoding;
- (id)initWithXPCEncoding:(id)arg1;
- (id)copyWithZone:(struct _NSZone *)arg1;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;
- (long long)_sizeLimitForNetworkType:(long long)arg1;
- (void)_setSizeLimit:(long long)arg1 forNetworkType:(long long)arg2;
- (void)_disableAllNetworkTypes;
- (id)_copySizeLimits;
- (void)setSizeLimitsWithStoreConstraintDictionary:(id)arg1;
- (_Bool)isEqual:(id)arg1;
- (id)description;
- (long long)sizeLimitForNetworkType:(long long)arg1;
- (void)setSizeLimit:(long long)arg1 forNetworkType:(long long)arg2;
- (void)setAllNetworkTypesDisabled;
@property(readonly, getter=isAnyNetworkTypeEnabled) _Bool anyNetworkTypeEnabled;
- (_Bool)hasSizeLimitForNetworkType:(long long)arg1;
- (void)disableCellularNetworkTypes;
- (void)dealloc;
- (id)init;
@end
|
matthewsot/CocoaSharp
|
Headers/PrivateFrameworks/StoreServices/SSNetworkConstraints.h
|
C
|
mit
| 1,592
|
// Copyright (C) 2002-2008 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_CURSOR_CONTROL_H_INCLUDED__
#define __I_CURSOR_CONTROL_H_INCLUDED__
#include "IReferenceCounted.h"
#include "position2d.h"
#include "rect.h"
namespace irr
{
namespace gui
{
//! Interface to manipulate the mouse cursor.
class ICursorControl : public virtual IReferenceCounted
{
public:
//! Changes the visible state of the mouse cursor.
/** \param visible: The new visible state. If true, the cursor will be visible,
if false, it will be invisible. */
virtual void setVisible(bool visible) = 0;
//! Returns if the cursor is currently visible.
/** \return True if the cursor is visible, false if not. */
virtual bool isVisible() const = 0;
//! Sets the new position of the cursor.
/** The position must be
between (0.0f, 0.0f) and (1.0f, 1.0f), where (0.0f, 0.0f) is
the top left corner and (1.0f, 1.0f) is the bottom right corner of the
render window.
\param pos New position of the cursor. */
virtual void setPosition(const core::position2d<f32> &pos) = 0;
//! Sets the new position of the cursor.
/** The position must be
between (0.0f, 0.0f) and (1.0f, 1.0f), where (0.0f, 0.0f) is
the top left corner and (1.0f, 1.0f) is the bottom right corner of the
render window.
\param x New x-coord of the cursor.
\param y New x-coord of the cursor. */
virtual void setPosition(f32 x, f32 y) = 0;
//! Sets the new position of the cursor.
/** \param pos: New position of the cursor. The coordinates are pixel units. */
virtual void setPosition(const core::position2d<s32> &pos) = 0;
//! Sets the new position of the cursor.
/** \param x New x-coord of the cursor. The coordinates are pixel units.
\param y New y-coord of the cursor. The coordinates are pixel units. */
virtual void setPosition(s32 x, s32 y) = 0;
//! Returns the current position of the mouse cursor.
/** \return Returns the current position of the cursor. The returned position
is the position of the mouse cursor in pixel units. */
virtual core::position2d<s32> getPosition() = 0;
//! Returns the current position of the mouse cursor.
/** \return Returns the current position of the cursor. The returned position
is a value between (0.0f, 0.0f) and (1.0f, 1.0f), where (0.0f, 0.0f) is
the top left corner and (1.0f, 1.0f) is the bottom right corner of the
render window. */
virtual core::position2d<f32> getRelativePosition() = 0;
//! Sets an absolute reference rect for setting and retrieving the cursor position.
/** If this rect is set, the cursor position is not being calculated relative to
the rendering window but to this rect. You can set the rect pointer to 0 to disable
this feature again. This feature is useful when rendering into parts of foreign windows
for example in an editor.
\param rect: A pointer to an reference rectangle or 0 to disable the reference rectangle.*/
virtual void setReferenceRect(core::rect<s32>* rect=0) = 0;
};
} // end namespace gui
} // end namespace irr
#endif
|
fredericjoanis/Argorha-Pathfinding
|
doc/demos/Irrlicht/src/irrInclude/ICursorControl.h
|
C
|
mit
| 3,157
|
function onInitSchema(schema, className) {
schema.helpers = {};
};
export default onInitSchema;
|
jagi/meteor-astronomy
|
lib/modules/helpers/hooks/onInitSchema.js
|
JavaScript
|
mit
| 98
|
module Adman
# Indicates this service is a web application
WEB_APPLICATION = "_web_app"
# Announces services on a network or other venue.
class Campaign
attr_reader :message
attr_reader :venues
# Create a new Campaign to advertize the given service.
#
# If the service given isn't already a Service (a String perhaps?) then the
# Campaign will try to turn it into one.
def initialize(service)
# If this isn't yet a service try to turn it into one
unless service.kind_of?(Service)
service = Service.new(service)
end
@message = service
@venues = []
end
def add_venue(venue)
@venues << venue
self
end
# Start advertising this service
def launch
@venues.each do |venue|
venue.register(message)
end
self
end
end
# A Service which is announced by the announcer.
#
# A service is a general term and can be a web application,
# mail server, or anything that can described in terms of a
# service name, type, and port.
class Service
DEFAULT_PORT = 3000
DEFAULT_TYPE = "_web_app"
include Comparable
attr_reader :name
attr_reader :port
attr_reader :type
# Compare this Service to another
def <=>(other)
if self.name < other.name
return -1
elsif self.name > other.name
return 1
elsif self.port < other.port
return -1
elsif self.port > other.port
return 1
elsif self.type < other.type
return -1
elsif self.type > other.type
return 1
else
return 0
end
end
def initialize(service_name)
@name = service_name
# Set some defaults
@port = 3000
@type = WEB_APPLICATION
end
end
def self.announce(service_name)
announcer = Announcer.new(service_name)
announcer
end
end
|
MarkBennett/announcer
|
lib/announcer.rb
|
Ruby
|
mit
| 1,899
|
using System.Collections;
using UnityEngine;
[RequireComponent (typeof(Animator))]
public class SpriteDestruction : MonoBehaviour
{
private SpriteBuilder m_spriteBuilder;
private Animator m_animator;
public float TimeToDestroy = 1;
public int DestroySquarePixelSize = 10;
public int DestroySquareCount = 5;
void Awake ()
{
m_animator = GetComponent<Animator> ();
m_spriteBuilder = GetComponent<SpriteBuilder> ();
}
public IEnumerator DestroySprite ()
{
m_animator.enabled = false;
m_spriteBuilder.Build ();
var rect = m_spriteBuilder.Sprite.rect;
var minX = (int)rect.x;
var maxX = (int)rect.xMax + 1 - DestroySquarePixelSize;
var minY = (int)rect.y;
var maxY = (int)rect.yMax + 1 - DestroySquarePixelSize;
var interval = TimeToDestroy / DestroySquareCount;
// Destroy any squares on Alien.
for (int i = 0; i < DestroySquareCount; i++) {
// Get random points to square.
var beginX = Random.Range (minX, maxX);
var endX = beginX + DestroySquarePixelSize;
var beginY = Random.Range (minY, maxY);
var endy = beginY + DestroySquarePixelSize;
// Draw the square.
for (var x = beginX; x <= endX; x++) {
for (var y = beginY; y < endy; y++) {
m_spriteBuilder.ClearColor (x, y);
}
}
m_spriteBuilder.Rebuild ();
yield return new WaitForSeconds (interval);
}
m_spriteBuilder.Build ();
SendMessageUpwards ("OnSpriteDestructionEnd");
}
}
|
skahal/SpaceInvadersRemake
|
src/SpaceInvadersRemake/Assets/Scripts/SpriteDestruction.cs
|
C#
|
mit
| 1,423
|
var angular = require('angular');
angular.module('rsInfiniteScrollDemo', [require('rs-infinite-scroll').default])
/*@ngInject*/
.controller('RsDemoController', ['$q', '$timeout', function($q, $timeout) {
var ctrl = this;
ctrl.scrollProxy = {
loadPrevious,
loadFollowing
};
ctrl.dummyList = [];
let init = function() {
$timeout(function() {
ctrl.dummyList = [
{index: 1},
{index: 2},
{index: 3},
{index: 4},
{index: 5},
{index: 6},
{index: 7},
{index: 8},
{index: 9},
{index: 10}
];
loadFollowing();
}, 5000);
};
init();
function loadPrevious() {
let first = ctrl.dummyList[0];
return addBefore(first);
}
function loadFollowing() {
let last = ctrl.dummyList[ctrl.dummyList.length-1]; // should be safe after initialization
if (!last) {
var deferred = $q.defer();
deferred.resolve();
return deferred.promise;
}
return addAfter(last);
}
function addAfter(last) {
var deferred = $q.defer();
deferred.resolve();
$timeout(() => {
if (last.index > 1000) {
deferred.resolve();
return;
}
for (let i = last.index+1; i < last.index+10; i++) {
ctrl.dummyList.push({index: i});
}
deferred.resolve();
}, 200);
return deferred.promise;
}
function addBefore(first) {
var deferred = $q.defer();
deferred.resolve();
$timeout(() => {
if (first.index < -1000) {
deferred.resolve();
return;
}
for (let i = first.index-1; i > first.index-10; i--) {
ctrl.dummyList.unshift({index: i});
}
deferred.resolve();
}, 200);
return deferred.promise;
}
}]);
|
RetroSquareGroup/rs-infinite-scroll
|
demo/demo.js
|
JavaScript
|
mit
| 1,907
|
<?php
/*
* This file is part of the json-schema bundle.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HadesArchitect\JsonSchemaBundle\Exception;
use HadesArchitect\JsonSchemaBundle\Error\Error;
class ViolationException extends JsonSchemaException
{
/**
* @var Error[]
*/
protected $errors = array();
/**
* @param Error[] $errors
*/
public function __construct(array $errors)
{
$message = '';
foreach ($errors as $error) {
$message .= (string) $error . '. ';
$this->addError($error);
}
parent::__construct(rtrim($message));
}
public function addError(Error $error)
{
$this->errors[] = $error;
}
public function getErrors()
{
return $this->errors;
}
}
|
HadesArchitect/JsonSchemaBundle
|
Exception/ViolationException.php
|
PHP
|
mit
| 898
|
/***************************************
** Tsunagari Tile Engine **
** window.cpp **
** Copyright 2011-2014 PariahSoft LLC **
***************************************/
// **********
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
// IN THE SOFTWARE.
// **********
#include <stdlib.h>
#include "window.h"
#include "world.h"
GameWindow::GameWindow()
: keysDown(KB_SIZE)
{
}
GameWindow::~GameWindow()
{
}
void GameWindow::emitKeyDown(KeyboardKey key)
{
keysDown[key]++;
if (keysDown[KBEscape] &&
(keysDown[KBLeftShift] || keysDown[KBRightShift])) {
exit(0);
}
if (keysDown[key])
World::instance().buttonDown(key);
}
void GameWindow::emitKeyUp(KeyboardKey key)
{
keysDown[key]--;
if (!keysDown[key])
World::instance().buttonUp(key);
}
bool GameWindow::isKeyDown(KeyboardKey key)
{
return keysDown[key] != false;
}
BitRecord GameWindow::getKeysDown()
{
return keysDown;
}
|
pariahsoft/TsunagariC
|
src/window.cpp
|
C++
|
mit
| 1,938
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.10.1 / lc - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
lc
<small>
8.7.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-09 13:43:28 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-09 13:43:28 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.10.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.07.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.07.1 Official release 4.07.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/lc"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/lc"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
]
tags: [
"keyword: modules"
"keyword: monads"
"keyword: category"
"keyword: lambda calculus"
"keyword: higher-order syntax"
"category: Computer Science/Lambda Calculi"
"date: 2006-01-12"
"date: 2008-09-9"
]
authors: [ "André Hirschowitz <ah@math.unice.fr> [http://math.unice.fr/~ah/]" "Marco Maggesi <maggesi@math.unifi.it> [http://www.math.unifi.it/~maggesi/]" ]
bug-reports: "https://github.com/coq-contribs/lc/issues"
dev-repo: "git+https://github.com/coq-contribs/lc.git"
synopsis: "Modules over monads and lambda-calculi"
description: """
http://www.math.unifi.it/~/maggesi/mechanized/
We define a notion of module over a monad and use it to
propose a new definition (or semantics) for abstract
syntax (with binding constructions). Using our notion of
module, we build a category of `exponential' monads,
which can be understood as the category of
lambda-calculi, and prove that it has an initial object
(the pure untyped lambda-calculus)."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/lc/archive/v8.7.0.tar.gz"
checksum: "md5=421624c7aeb97b1acb164997aa6756e9"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-lc.8.7.0 coq.8.10.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.10.1).
The following dependencies couldn't be met:
- coq-lc -> coq < 8.8~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-lc.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
coq-bench/coq-bench.github.io
|
clean/Linux-x86_64-4.07.1-2.0.6/released/8.10.1/lc/8.7.0.html
|
HTML
|
mit
| 7,342
|
class MagicDictionary {
public:
map<int, vector<string>> m;
/** Initialize your data structure here. */
MagicDictionary() {
}
/** Build a dictionary through a list of words */
void buildDict(vector<string> dict) {
for (auto &i : dict) {
m[i.length()].push_back(i);
}
}
/** Returns if there is any word in the trie that equals to the given word after modifying exactly one character */
bool search(string word) {
int len = word.length();
for (auto &i : m[len]) {
int count = 0;
for (int k = 0; k < len; k++) {
if (i[k] == word[k]) {
count++;
}
}
if (count + 1 == len) {
return true;
}
}
return false;
}
};
/**
* Your MagicDictionary object will be instantiated and called as such:
* MagicDictionary obj = new MagicDictionary();
* obj.buildDict(dict);
* bool param_2 = obj.search(word);
*/
|
MegaShow/college-programming
|
OJ/LeetCode/676 Implement Magic Dictionary.cpp
|
C++
|
mit
| 1,046
|
<?php
return array (
'id' => 'zte_z750c_ver1',
'fallback' => 'generic_android_ver4_1',
'capabilities' =>
array (
'model_name' => 'Z750C',
'brand_name' => 'ZTE',
'marketing_name' => 'Savvy',
'physical_screen_height' => '88',
'physical_screen_width' => '53',
'resolution_width' => '480',
'resolution_height' => '800',
),
);
|
cuckata23/wurfl-data
|
data/zte_z750c_ver1.php
|
PHP
|
mit
| 361
|
# vagrant-vyatta is deprecated and will not be maintained. Vagrant plugin for VyOS support is moved to [vagrant-vyos](https://github.com/higebu/vagrant-vyos).
[](https://travis-ci.org/higebu/vagrant-vyatta)
[](https://codeclimate.com/repos/5302538e69568020f60027b2/feed)
[](http://badge.fury.io/rb/vagrant-vyatta)
[](https://gemnasium.com/higebu/vagrant-vyatta)
Vagrant-vyatta is a [Vagrant](http://www.vagrantup.com) plugin that adds [Vyatta](http://www.vyatta.org/) and [VyOS](http://vyos.net/wiki/Main_Page) support to Vagrant.
This plugin fixes following features.
* `vagrant halt`.
* `config.vm.hostname`.
* `config.vm.network`.
## Installation
```
$ vagrant plugin install vagrant-vyatta
```
## Usage
```
$ vagrant init higebu/vyos-1.0.4
$ vagrant up
```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
|
higebu/vagrant-vyatta
|
README.md
|
Markdown
|
mit
| 1,306
|
/*
* Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
*/
package com.microsoft.o365_android_onenote_rest;
import com.microsoft.AzureADModule;
import com.microsoft.AzureAppCompatActivity;
import com.microsoft.live.LiveAuthClient;
import com.microsoft.o365_android_onenote_rest.application.SnippetApp;
import com.microsoft.o365_android_onenote_rest.conf.ServiceConstants;
import com.microsoft.o365_android_onenote_rest.inject.AzureModule;
import com.microsoft.o365_android_onenote_rest.inject.ObjectGraphInjector;
import com.microsoft.o365_android_onenote_rest.model.Scope;
import java.util.ArrayList;
import javax.inject.Inject;
import dagger.ObjectGraph;
import timber.log.Timber;
public abstract class BaseActivity
extends AzureAppCompatActivity
implements ObjectGraphInjector {
@Inject
protected LiveAuthClient mLiveAuthClient;
public static final Iterable<String> sSCOPES = new ArrayList<String>() {{
for (Scope.wl scope : Scope.wl.values()) {
Timber.i("Adding scope: " + scope);
add(scope.getScope());
}
for (Scope.office scope : Scope.office.values()) {
Timber.i("Adding scope: " + scope);
add(scope.getScope());
}
}};
@Override
protected AzureADModule getAzureADModule() {
AzureADModule.Builder builder = new AzureADModule.Builder(this);
builder.validateAuthority(true)
.skipBroker(true)
.authenticationResourceId(ServiceConstants.AUTHENTICATION_RESOURCE_ID)
.authorityUrl(ServiceConstants.AUTHORITY_URL)
.redirectUri(ServiceConstants.REDIRECT_URI)
.clientId(ServiceConstants.CLIENT_ID);
return builder.build();
}
@Override
protected Object[] getModules() {
return new Object[]{new AzureModule()};
}
@Override
protected ObjectGraph getRootGraph() {
return SnippetApp.getApp().mObjectGraph;
}
@Override
public void inject(Object target) {
mObjectGraph.inject(target);
}
}
// *********************************************************
//
// Android-REST-API-Explorer, https://github.com/OneNoteDev/Android-REST-API-Explorer
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License:
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// *********************************************************
|
OneNoteDev/Android-REST-API-Explorer
|
app/src/main/java/com/microsoft/o365_android_onenote_rest/BaseActivity.java
|
Java
|
mit
| 3,525
|
/*
Theme: Stormy
Fonts: Yanone Kaffeesatz, Cedarville Cursive
<link href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,700,200,300" rel="stylesheet">
<link href="http://fonts.googleapis.com/css?family=Cedarville+Cursive" rel="stylesheet">
Style class:
.title = Use on title slide
.intro = Use on intro slides, use h1 heading (or h2 heading) for topic name
.recap = Use on recap slides, use h1 heading (or h2 heading) for topic name, h2 and h3 in an hgroup for summary
.source = Use on source code slide, put source in <pre><code> (requires highlight.js for syntax highlighting)
.ending = Use on final slide, use h2 heading for message
.statement = Use on a paragraph to make it a statement, vertically centered
.middle = Use on any element to vertically center it
Color Palette:
Name Hex
=====================
Eggshell .... #F1F2EC
Red ......... #FF4342
Light green . #D5EE5E
Green ....... #87A660
Light blue .. #43C5F1
Blue ........ #3899BF
Purple ...... #6C5482
Light gray .. #D5D5D5
Gray ........ #797979
Dark Gray ... #6A6A61
Black ....... #000000
Light Cloud #DDDCC5
Grey #958976
Dark grey #6A6A61
Navy #1D2326
Fuschia #611427
*/
html, .view body {
background: #333333 url(../../images/gray-noise.png) repeat;
counter-reset: slideidx;
font-family: 'Yanone Kaffeesatz', sans-serif;
}
body, .view section {
background-color: #F1F2EC;
font-size: 17px;
line-height: 1;
}
section, .view head > title {
}
.view section:after {
counter-increment: slideidx;
content: counter(slideidx, decimal-leading-zero);
position: absolute;
bottom: -1.5em;
right: .5em;
color: #FFFFFF;
font-size: 3em;
}
.view head > title {
color: #FFFFFF;
text-align: center;
margin: .5em 0 .25em;
line-height: 1;
font-size: 3em;
}
.view section[aria-selected] {
border: 5px #FFFFFF solid;
}
section:not(.title) {
padding: 50px;
}
section.title h1 {
font-size: 6em;
color: #1D2326;
position: relative;
top: 40%;
-webkit-transform: translate(0, -50%);
-moz-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
-o-transform: translate(0, -50%);
transform: translate(0, -50%);
padding: 0 50px; /* quick hack to fix overruns */
}
section.title footer {
font-weight: 200;
text-align: center;
font-size: 2.5em;
padding: 30px 50px;
}
section[class=topic] h2 {
color: #958976;
font-size: 2.5em;
margin-bottom: .5em;
margin-top: -.5em;
}
section.intro, section.terminal {
background-color: #1D2326;
}
section.intro h1,
section.intro h2 {
color: #DDDCC5;
text-transform: lowercase;
line-height: .7em;
text-align: left;
font-size: 4.4em;
}
section.intro.alt h1,
section.intro.alt h2 {
text-align: right;
}
section.intro h1 strong,
section.intro h2 strong {
color: #D5EE5E;
font-size: 1.51em;
line-height: .8em;
}
section.terminal pre.literal {
color: #D5EE5E;
}
section.secret {
background-color: #958976;
}
section.secret p {
color: #DDDCC5;
text-transform: uppercase;
font-weight: 700;
}
section.secret strong {
color: #43C5F1;
font-size: 2em;
display: block;
line-height: .8em;
}
section.recap > h1,
section.recap > h2 {
margin: 0;
text-transform: uppercase;
color: #87A660;
font-size: 2em;
border: 15px solid #87A660;
border-radius: 20px;
position: absolute;
right: -25px;
top: 5px;
-webkit-transform: rotate(30deg);
-moz-transform: rotate(30deg);
-o-transform: rotate(30deg);
transform: rotate(30deg);
-webkit-transform-origin: top left;
-moz-transform-origin: top left;
-o-transform-origin: top left;
transform-origin: top left;
white-space: nowrap;
padding: 10px;
}
section.recap hgroup h2 {
color: #958976;
text-transform: uppercase;
font-size: 4.4em;
}
section.recap hgroup h3 {
color: #611427;
text-transform: uppercase;
font-size: 3em;
}
section.recap hgroup .invert h2 {
font-size: 3em;
}
section.recap hgroup .invert h3 {
font-size: 4.4em;
}
section.question p {
text-align: right;
font-size: 3em;
}
section.question p strong {
display: block;
text-transform: uppercase;
font-size: 2em;
line-height: .8em;
}
section.ending {
background-color: #43C5F1;
}
section.ending > h2 {
color: #F1F2EC;
font-size: 4.4em;
text-transform: lowercase;
}
section.ending > h2.name {
text-transform: none;
top: 40%;
}
section.ending footer,
section.ending p.footer {
position: absolute;
bottom: 22%;
left: 0;
background-color: #FFFFFF;
width: 100%;
padding: 40px 0;
font-size: 3em;
text-align: center;
color: #43C5F1;
font-weight: bold;
top: 55%;
margin: 0;
}
.aspect-16-10 section.ending footer,
.aspect-16-10 section.ending p.footer {
height: 26%;
}
h1 {
font-size: 4.4em;
}
h1, h2, h3 {
text-align: center;
}
h3 {
}
a {
color: inherit;
text-decoration: none;
}
section ul {
list-style: none;
font-size: 3em;
text-transform: uppercase;
font-weight: 700;
color: #43C5F1;
text-align: right;
margin-bottom: 1em;
}
section ul.variants {
margin-top: 150px; /* half height (250px) - 100px to account for padding */
}
section ul.split > li {
width: 50%;
}
section ul.split > li:nth-of-type(2n),
section ul.scatter > li:nth-of-type(2n) {
float: right;
}
section ul.split > li:nth-of-type(2n - 1),
section ul.scatter > li:nth-of-type(2n - 1) {
float: left;
}
section ul.scatter > li:nth-of-type(2n) {
clear: left;
text-align: right;
}
section ul.scatter > li:nth-of-type(2n - 1) {
clear: right;
}
section .graffiti {
font-family: 'Cedarville Cursive', cursive;
text-transform: none;
font-weight: normal;
color: #6A6A61;
text-align: left;
line-height: 1.5;
}
section .graffiti strong, section .graffiti em {
font-weight: 700;
font-size: 1.5em;
}
section dt {
font-size: 3em;
color: #611427;
text-transform: uppercase;
font-weight: 700;
margin-bottom: 0;
line-height: 1em;
}
section dd {
color: #958976;
text-transform: uppercase;
font-weight: 700;
line-height: 1em;
margin-bottom: 2em;
font-size: 2em;
}
section dt:nth-of-type(2n),
section dd:nth-of-type(2n) {
text-align: right;
}
section p {
color: #958976;
font-weight: 700;
font-size: 3.5em;
}
section p.revision {
font-family: 'Cedarville Cursive';
font-weight: normal;
color: #6A6A61;
-webkit-transform: rotate(-15deg);
-moz-transform: rotate(-15deg);
-o-transform: rotate(-15deg);
transform: rotate(-15deg);
-webkit-transform-origin: 0% 0%;
-moz-transform-origin: 0% 0%;
-o-transform-origin: 0% 0%;
transform-origin: 0% 0%;
}
.insert:before {
display: inline-block;
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);
-o-transform: rotate(180deg);
transform: rotate(180deg);
content: "^";
margin-right: 10px;
}
section p.expression {
text-align: center;
text-transform: uppercase;
font-size: 8em;
-webkit-transform: rotate(-15deg);
-moz-transform: rotate(-15deg);
-o-transform: rotate(-15deg);
transform: rotate(-15deg);
-webkit-transform-origin: 0% 15%;
-moz-transform-origin: 0% 15%;
-o-transform-origin: 0% 15%;
transform-origin: 0% 15%;
text-shadow: 1px 1px 3px rgba(0,0,0,.5);
}
section p.follow-up {
/*color: #D5EE5E;*/
color: #958976;
font-weight: 700;
font-size: 2em;
margin-top: -.5em;
padding-left: 3px;
}
section p.point {
position: relative;
text-transform: uppercase;
font-size: 2.8em;
text-align: right;
font-weight: 700;
}
section em {
color: #611427;
font-style: normal;
}
section strong {
color: #611427;
}
section del {
color: #6A6A61;
}
section p del span {
color: #958976;
font-weight: 700;
}
blockquote {
padding: 0 0 0 15px;
margin: -10px 2em 0 2em;
border-left: 5px solid #611427;
}
blockquote:before {
color: #611427;
content: '\201C';
font-size: 4em;
font-weight: 700;
float: left;
margin-left: -.9em;
}
section blockquote p {
color: #1D2326;
font-weight: 700;
line-height: 1.5;
margin-bottom: .5em;
font-style: italic;
font-size: 3.5em;
font-weight: normal;
}
blockquote p em {
font-style: italic;
}
blockquote p:last-of-type {
margin-bottom: 0;
padding-bottom: 0.1em;
}
blockquote cite {
font-size: 1.5em;
display: block;
line-height: 1.8;
color: #87A660;
font-style: normal;
margin-top: .25em;
}
blockquote cite:before {
content: '\2014 \00A0';
}
figcaption {
font-size: 3em;
/*color: #611427;*/
color: #000000;
font-weight: 700;
text-align: right;
position: absolute;
bottom: 20px;
right: 35px;
width: 100%;
}
figcaption.invert {
color: #FFFFFF;
text-shadow: 2px 2px #000000;
}
section.title footer {
position: absolute;
bottom: 0;
width: 100%;
padding: 40px;
background-color: #F3F4F8;
border-top: 1px solid #CCC;
}
section.source {
/*background-color: #272822;*/
background-color: #000000;
padding: 30px !important;
}
section.source h2 {
margin: 0 .5em .5em 0;
color: #DDDCC5;
text-transform: uppercase;
text-align: right;
}
section.source.lhs h2 {
text-align: left;
}
section.source div.title {
color: #958976;
font-weight: 700;
font-size: 1.5em;
margin-bottom: .3em;
padding-left: 1px;
}
section pre code {
font-family: "DejaVu Sans Mono", "Droid Sans Mono", Menlo, Monaco, "Courier New", monospace;
font-size: 1em;
line-height: 1.2;
background: rgba(255,255,255,.075);
border: 1px solid rgba(255,255,255,.2);
margin-bottom: 1em;
}
.middle,
.statement,
section.intro > h1,
section.intro > h2,
section.recap > hgroup,
section.ending > h2,
section > dl,
section > ul.graffiti,
section > p {
position: relative;
top: 50%;
-webkit-transform: translate(0, -50%);
-moz-transform: translate(0, -50%);
-ms-transform: translate(0, -50%);
-o-transform: translate(0, -50%);
transform: translate(0, -50%);
}
section p.statement strong {
font-size: 3em;
line-height: .75em;
}
img.middle {
display: block;
margin: 0 auto;
}
img.stretch-x {
width: 100%;
}
img.stretch-y {
height: 100%;
}
.hide {
display: none;
}
.pull-left {
float: left;
}
.pull-right {
float: right;
}
.text-right {
text-align: right;
}
.auto-width {
width: auto !important;
}
span.detail {
font-size: .6em;
color: #958976;
opacity: 0.3;
font-weight: normal;
}
.mild {
color: #87A660;
}
/* Incremental elements */
/* By default, visible */
.incremental > * {
opacity: .5;
}
/* The current item */
.incremental > *[aria-selected] {
opacity: 1;
}
/* The items to-be-selected */
.incremental > *[aria-selected] ~ * {
opacity: 0;
}
.view .incremental {
visibility: visible;
}
.view .incremental * {
opacity: 1 !important;
}
/* The progressbar, at the bottom of the slides, show the global
progress of the presentation. */
#progress-bar {
height: 2px;
background: #AAA;
}
/* TODO: merge the overrides below into the sheet */
section.title h1 {
font-size: 4em;
}
section.title h1 strong {
font-size: 3em;
font-style: italic;
}
section.intro h1 strong,
section.intro h2 strong {
font-size: 3.5em;
}
section p {
font-size: 2em;
margin-bottom: 1em;
}
section p.middle,
section p.statement {
font-size: 3em;
}
section p.follow-up {
margin-top: 0;
}
section > p {
position: static;
top: 0;
-webkit-transform: none;
-moz-transform: none;
-ms-transform: none;
-o-transform: none;
transform: none;
}
section pre.literal {
font-size: .8em;
font-weight: bold;
}
section pre code {
white-space: pre-wrap;
}
section pre:nth-of-type(2):not(.continue) code {
font-size: .8em;
line-height: 1.4;
}
section ul {
text-transform: none;
text-align: left;
/* font-size: 1.5em;*/
line-height: 1.1;
}
section ul ul {
font-size: .8em;
margin-bottom: 0;
margin-left: 1em;
}
section.fit {
padding: 50px 0;
-moz-transition: none;
}
section.fit > img {
max-width: 100%;
max-height: 100%;
margin: auto;
display: block;
}
.colist {
color: #DDDCC5;
}
|
samaxes/decks
|
decks/10th-meeting-ptjug/themes/style/stormy.css
|
CSS
|
mit
| 11,981
|
<div class="ispinner ispinner-large">
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
<div class="ispinner-blade"></div>
</div>
|
swordray/ispinner
|
html/large.html
|
HTML
|
mit
| 341
|