text:
namespace zdbviewcs {
	partial class ZDbViewCsForm {
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
		protected override void Dispose(bool disposing) {
			if (disposing && (components != null)) {
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows 窗体设计器生成的代码

		/// <summary>
		/// 设计器支持所需的方法 - 不要
		/// 使用代码编辑器修改此方法的内容。
		/// </summary>
		private void InitializeComponent() {
			this.components = new System.ComponentModel.Container();
			this.spcTool = new System.Windows.Forms.SplitContainer();
			this.tbcInput = new System.Windows.Forms.TabControl();
			this.tbpConnstr = new System.Windows.Forms.TabPage();
			this.txtConnstr = new System.Windows.Forms.TextBox();
			this.tbpSql = new System.Windows.Forms.TabPage();
			this.txtSql = new System.Windows.Forms.TextBox();
			this.pnlTool = new System.Windows.Forms.Panel();
			this.btnExec = new System.Windows.Forms.Button();
			this.txtLimit = new System.Windows.Forms.TextBox();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnOpen = new System.Windows.Forms.Button();
			this.cboProvider = new System.Windows.Forms.ComboBox();
			this.lblProvider = new System.Windows.Forms.Label();
			this.mnuPopup = new System.Windows.Forms.ContextMenuStrip(this.components);
			this.mnuPopupProviderRefresh = new System.Windows.Forms.ToolStripMenuItem();
			this.spcList = new System.Windows.Forms.SplitContainer();
			this.cboClickCmd = new System.Windows.Forms.ComboBox();
			this.tbcMain = new System.Windows.Forms.TabControl();
			this.tbpTable = new System.Windows.Forms.TabPage();
			this.grdTable = new System.Windows.Forms.DataGridView();
			this.mnuGrid = new System.Windows.Forms.ContextMenuStrip(this.components);
			this.mnuGridCopyValue = new System.Windows.Forms.ToolStripMenuItem();
			this.mnuGridCopyRow = new System.Windows.Forms.ToolStripMenuItem();
			this.mnuGridCopyTable = new System.Windows.Forms.ToolStripMenuItem();
			this.mnuGridCopyTableXml = new System.Windows.Forms.ToolStripMenuItem();
			this.mnuGridExportTable = new System.Windows.Forms.ToolStripMenuItem();
			this.tbpGetSchema = new System.Windows.Forms.TabPage();
			this.grdGetSchema = new System.Windows.Forms.DataGridView();
			this.pnlGetSchema = new System.Windows.Forms.Panel();
			this.cboGetSchema = new System.Windows.Forms.ComboBox();
			this.btnGetSchema = new System.Windows.Forms.Button();
			this.tbcGrid = new System.Windows.Forms.TabControl();
			this.tbpData = new System.Windows.Forms.TabPage();
			this.grdData = new System.Windows.Forms.DataGridView();
			this.tbpDataSchema = new System.Windows.Forms.TabPage();
			this.grdDataSchema = new System.Windows.Forms.DataGridView();
			this.txtDataLog = new System.Windows.Forms.TextBox();
			this.tbpLog = new System.Windows.Forms.TabPage();
			this.txtLog = new System.Windows.Forms.TextBox();
			this.ttpMain = new System.Windows.Forms.ToolTip(this.components);
			this.dlgSave = new System.Windows.Forms.SaveFileDialog();
			this.tbpDataInfo = new System.Windows.Forms.TabPage();
			this.txtDataInfo = new System.Windows.Forms.TextBox();
			this.spcTool.Panel1.SuspendLayout();
			this.spcTool.Panel2.SuspendLayout();
			this.spcTool.SuspendLayout();
			this.tbcInput.SuspendLayout();
			this.tbpConnstr.SuspendLayout();
			this.tbpSql.SuspendLayout();
			this.pnlTool.SuspendLayout();
			this.mnuPopup.SuspendLayout();
			this.spcList.Panel1.SuspendLayout();
			this.spcList.Panel2.SuspendLayout();
			this.spcList.SuspendLayout();
			this.tbcMain.SuspendLayout();
			this.tbpTable.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.grdTable)).BeginInit();
			this.mnuGrid.SuspendLayout();
			this.tbpGetSchema.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.grdGetSchema)).BeginInit();
			this.pnlGetSchema.SuspendLayout();
			this.tbcGrid.SuspendLayout();
			this.tbpData.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.grdData)).BeginInit();
			this.tbpDataSchema.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.grdDataSchema)).BeginInit();
			this.tbpLog.SuspendLayout();
			this.tbpDataInfo.SuspendLayout();
			this.SuspendLayout();
			//
			// spcTool
			//
			this.spcTool.Dock = System.Windows.Forms.DockStyle.Fill;
			this.spcTool.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
			this.spcTool.Location = new System.Drawing.Point(0, 0);
			this.spcTool.Name = "spcTool";
			this.spcTool.Orientation = System.Windows.Forms.Orientation.Horizontal;
			//
			// spcTool.Panel1
			//
			this.spcTool.Panel1.Controls.Add(this.tbcInput);
			this.spcTool.Panel1.Controls.Add(this.pnlTool);
			//
			// spcTool.Panel2
			//
			this.spcTool.Panel2.Controls.Add(this.spcList);
			this.spcTool.Size = new System.Drawing.Size(584, 362);
			this.spcTool.SplitterDistance = 100;
			this.spcTool.TabIndex = 0;
			//
			// tbcInput
			//
			this.tbcInput.Controls.Add(this.tbpConnstr);
			this.tbcInput.Controls.Add(this.tbpSql);
			this.tbcInput.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tbcInput.Location = new System.Drawing.Point(0, 24);
			this.tbcInput.Name = "tbcInput";
			this.tbcInput.SelectedIndex = 0;
			this.tbcInput.Size = new System.Drawing.Size(584, 76);
			this.tbcInput.TabIndex = 1;
			//
			// tbpConnstr
			//
			this.tbpConnstr.Controls.Add(this.txtConnstr);
			this.tbpConnstr.Location = new System.Drawing.Point(4, 22);
			this.tbpConnstr.Name = "tbpConnstr";
			this.tbpConnstr.Padding = new System.Windows.Forms.Padding(3);
			this.tbpConnstr.Size = new System.Drawing.Size(576, 50);
			this.tbpConnstr.TabIndex = 0;
			this.tbpConnstr.Text = "ConnectionString";
			this.tbpConnstr.UseVisualStyleBackColor = true;
			//
			// txtConnstr
			//
			this.txtConnstr.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtConnstr.Location = new System.Drawing.Point(3, 3);
			this.txtConnstr.Multiline = true;
			this.txtConnstr.Name = "txtConnstr";
			this.txtConnstr.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			this.txtConnstr.Size = new System.Drawing.Size(570, 44);
			this.txtConnstr.TabIndex = 0;
			//
			// tbpSql
			//
			this.tbpSql.Controls.Add(this.txtSql);
			this.tbpSql.Location = new System.Drawing.Point(4, 22);
			this.tbpSql.Name = "tbpSql";
			this.tbpSql.Padding = new System.Windows.Forms.Padding(3);
			this.tbpSql.Size = new System.Drawing.Size(576, 50);
			this.tbpSql.TabIndex = 1;
			this.tbpSql.Text = "SQL";
			this.tbpSql.UseVisualStyleBackColor = true;
			//
			// txtSql
			//
			this.txtSql.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtSql.Location = new System.Drawing.Point(3, 3);
			this.txtSql.Multiline = true;
			this.txtSql.Name = "txtSql";
			this.txtSql.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
			this.txtSql.Size = new System.Drawing.Size(570, 44);
			this.txtSql.TabIndex = 1;
			//
			// pnlTool
			//
			this.pnlTool.Controls.Add(this.btnExec);
			this.pnlTool.Controls.Add(this.txtLimit);
			this.pnlTool.Controls.Add(this.btnClose);
			this.pnlTool.Controls.Add(this.btnOpen);
			this.pnlTool.Controls.Add(this.cboProvider);
			this.pnlTool.Controls.Add(this.lblProvider);
			this.pnlTool.Dock = System.Windows.Forms.DockStyle.Top;
			this.pnlTool.Location = new System.Drawing.Point(0, 0);
			this.pnlTool.Name = "pnlTool";
			this.pnlTool.Size = new System.Drawing.Size(584, 24);
			this.pnlTool.TabIndex = 0;
			//
			// btnExec
			//
			this.btnExec.Enabled = false;
			this.btnExec.Location = new System.Drawing.Point(508, 1);
			this.btnExec.Name = "btnExec";
			this.btnExec.Size = new System.Drawing.Size(64, 23);
			this.btnExec.TabIndex = 5;
			this.btnExec.Text = "&Exec";
			this.btnExec.UseVisualStyleBackColor = true;
			this.btnExec.Click += new System.EventHandler(this.btnExec_Click);
			//
			// txtLimit
			//
			this.txtLimit.Location = new System.Drawing.Point(454, 3);
			this.txtLimit.Name = "txtLimit";
			this.txtLimit.Size = new System.Drawing.Size(48, 21);
			this.txtLimit.TabIndex = 4;
			this.txtLimit.Text = "100";
			this.ttpMain.SetToolTip(this.txtLimit, "记录数限制. 若为0则表示不限制.");
			//
			// btnClose
			//
			this.btnClose.Enabled = false;
			this.btnClose.Location = new System.Drawing.Point(384, 1);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new System.Drawing.Size(64, 23);
			this.btnClose.TabIndex = 3;
			this.btnClose.Text = "&Close";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			//
			// btnOpen
			//
			this.btnOpen.Location = new System.Drawing.Point(314, 1);
			this.btnOpen.Name = "btnOpen";
			this.btnOpen.Size = new System.Drawing.Size(64, 23);
			this.btnOpen.TabIndex = 2;
			this.btnOpen.Text = "&Open";
			this.btnOpen.UseVisualStyleBackColor = true;
			this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
			//
			// cboProvider
			//
			this.cboProvider.FormattingEnabled = true;
			this.cboProvider.Location = new System.Drawing.Point(68, 3);
			this.cboProvider.Name = "cboProvider";
			this.cboProvider.Size = new System.Drawing.Size(240, 20);
			this.cboProvider.TabIndex = 1;
			//
			// lblProvider
			//
			this.lblProvider.AutoSize = true;
			this.lblProvider.ContextMenuStrip = this.mnuPopup;
			this.lblProvider.Location = new System.Drawing.Point(3, 6);
			this.lblProvider.Name = "lblProvider";
			this.lblProvider.Size = new System.Drawing.Size(59, 12);
			this.lblProvider.TabIndex = 0;
			this.lblProvider.Text = "&Provider:";
			//
			// mnuPopup
			//
			this.mnuPopup.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mnuPopupProviderRefresh});
			this.mnuPopup.Name = "mnuPopup";
			this.mnuPopup.Size = new System.Drawing.Size(171, 26);
			//
			// mnuPopupProviderRefresh
			//
			this.mnuPopupProviderRefresh.Name = "mnuPopupProviderRefresh";
			this.mnuPopupProviderRefresh.Size = new System.Drawing.Size(170, 22);
			this.mnuPopupProviderRefresh.Text = "Provider refresh";
			this.mnuPopupProviderRefresh.Click += new System.EventHandler(this.mnuPopupProviderRefresh_Click);
			//
			// spcList
			//
			this.spcList.Dock = System.Windows.Forms.DockStyle.Fill;
			this.spcList.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
			this.spcList.Location = new System.Drawing.Point(0, 0);
			this.spcList.Name = "spcList";
			//
			// spcList.Panel1
			//
			this.spcList.Panel1.Controls.Add(this.cboClickCmd);
			this.spcList.Panel1.Controls.Add(this.tbcMain);
			//
			// spcList.Panel2
			//
			this.spcList.Panel2.Controls.Add(this.tbcGrid);
			this.spcList.Size = new System.Drawing.Size(584, 258);
			this.spcList.SplitterDistance = 300;
			this.spcList.TabIndex = 0;
			//
			// cboClickCmd
			//
			this.cboClickCmd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.cboClickCmd.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboClickCmd.FormattingEnabled = true;
			this.cboClickCmd.Items.AddRange(new object[] {
            "(None)",
            "select *",
            "select count(*)"});
			this.cboClickCmd.Location = new System.Drawing.Point(184, 0);
			this.cboClickCmd.Name = "cboClickCmd";
			this.cboClickCmd.Size = new System.Drawing.Size(114, 20);
			this.cboClickCmd.TabIndex = 1;
			//
			// tbcMain
			//
			this.tbcMain.Controls.Add(this.tbpTable);
			this.tbcMain.Controls.Add(this.tbpGetSchema);
			this.tbcMain.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tbcMain.Location = new System.Drawing.Point(0, 0);
			this.tbcMain.Name = "tbcMain";
			this.tbcMain.SelectedIndex = 0;
			this.tbcMain.Size = new System.Drawing.Size(300, 258);
			this.tbcMain.TabIndex = 0;
			//
			// tbpTable
			//
			this.tbpTable.Controls.Add(this.grdTable);
			this.tbpTable.Location = new System.Drawing.Point(4, 22);
			this.tbpTable.Name = "tbpTable";
			this.tbpTable.Padding = new System.Windows.Forms.Padding(3);
			this.tbpTable.Size = new System.Drawing.Size(292, 232);
			this.tbpTable.TabIndex = 0;
			this.tbpTable.Text = "Table";
			this.tbpTable.UseVisualStyleBackColor = true;
			//
			// grdTable
			//
			this.grdTable.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.grdTable.ContextMenuStrip = this.mnuGrid;
			this.grdTable.Dock = System.Windows.Forms.DockStyle.Fill;
			this.grdTable.Location = new System.Drawing.Point(3, 3);
			this.grdTable.Name = "grdTable";
			this.grdTable.ReadOnly = true;
			this.grdTable.RowTemplate.Height = 23;
			this.grdTable.Size = new System.Drawing.Size(286, 226);
			this.grdTable.TabIndex = 0;
			this.grdTable.CurrentCellChanged += new System.EventHandler(this.grdTable_CurrentCellChanged);
			//
			// mnuGrid
			//
			this.mnuGrid.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mnuGridCopyValue,
            this.mnuGridCopyRow,
            this.mnuGridCopyTable,
            this.mnuGridCopyTableXml,
            this.mnuGridExportTable});
			this.mnuGrid.Name = "mnuGrid";
			this.mnuGrid.Size = new System.Drawing.Size(190, 114);
			this.mnuGrid.Opening += new System.ComponentModel.CancelEventHandler(this.mnuGrid_Opening);
			//
			// mnuGridCopyValue
			//
			this.mnuGridCopyValue.Name = "mnuGridCopyValue";
			this.mnuGridCopyValue.Size = new System.Drawing.Size(189, 22);
			this.mnuGridCopyValue.Text = "Copy &Value";
			this.mnuGridCopyValue.Click += new System.EventHandler(this.mnuGridCopyValue_Click);
			//
			// mnuGridCopyRow
			//
			this.mnuGridCopyRow.Name = "mnuGridCopyRow";
			this.mnuGridCopyRow.Size = new System.Drawing.Size(189, 22);
			this.mnuGridCopyRow.Text = "Copy &Row";
			this.mnuGridCopyRow.Click += new System.EventHandler(this.mnuGridCopyRow_Click);
			//
			// mnuGridCopyTable
			//
			this.mnuGridCopyTable.Name = "mnuGridCopyTable";
			this.mnuGridCopyTable.Size = new System.Drawing.Size(189, 22);
			this.mnuGridCopyTable.Text = "Copy &Table";
			this.mnuGridCopyTable.Visible = false;
			this.mnuGridCopyTable.Click += new System.EventHandler(this.mnuGridCopyTable_Click);
			//
			// mnuGridCopyTableXml
			//
			this.mnuGridCopyTableXml.Name = "mnuGridCopyTableXml";
			this.mnuGridCopyTableXml.Size = new System.Drawing.Size(189, 22);
			this.mnuGridCopyTableXml.Text = "Copy Table(&Xml)";
			this.mnuGridCopyTableXml.Click += new System.EventHandler(this.mnuGridCopyTableXml_Click);
			//
			// mnuGridExportTable
			//
			this.mnuGridExportTable.Name = "mnuGridExportTable";
			this.mnuGridExportTable.Size = new System.Drawing.Size(189, 22);
			this.mnuGridExportTable.Text = "&Export Table(Xml)...";
			this.mnuGridExportTable.Click += new System.EventHandler(this.mnuGridExportTable_Click);
			//
			// tbpGetSchema
			//
			this.tbpGetSchema.Controls.Add(this.grdGetSchema);
			this.tbpGetSchema.Controls.Add(this.pnlGetSchema);
			this.tbpGetSchema.Location = new System.Drawing.Point(4, 22);
			this.tbpGetSchema.Name = "tbpGetSchema";
			this.tbpGetSchema.Padding = new System.Windows.Forms.Padding(3);
			this.tbpGetSchema.Size = new System.Drawing.Size(292, 232);
			this.tbpGetSchema.TabIndex = 1;
			this.tbpGetSchema.Text = "GetSchema";
			this.tbpGetSchema.UseVisualStyleBackColor = true;
			//
			// grdGetSchema
			//
			this.grdGetSchema.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.grdGetSchema.ContextMenuStrip = this.mnuGrid;
			this.grdGetSchema.Dock = System.Windows.Forms.DockStyle.Fill;
			this.grdGetSchema.Location = new System.Drawing.Point(3, 35);
			this.grdGetSchema.Name = "grdGetSchema";
			this.grdGetSchema.ReadOnly = true;
			this.grdGetSchema.RowTemplate.Height = 23;
			this.grdGetSchema.Size = new System.Drawing.Size(286, 194);
			this.grdGetSchema.TabIndex = 1;
			//
			// pnlGetSchema
			//
			this.pnlGetSchema.Controls.Add(this.cboGetSchema);
			this.pnlGetSchema.Controls.Add(this.btnGetSchema);
			this.pnlGetSchema.Dock = System.Windows.Forms.DockStyle.Top;
			this.pnlGetSchema.Location = new System.Drawing.Point(3, 3);
			this.pnlGetSchema.Name = "pnlGetSchema";
			this.pnlGetSchema.Size = new System.Drawing.Size(286, 32);
			this.pnlGetSchema.TabIndex = 0;
			//
			// cboGetSchema
			//
			this.cboGetSchema.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.cboGetSchema.FormattingEnabled = true;
			this.cboGetSchema.Items.AddRange(new object[] {
            "MetaDataCollections",
            "DataSourceInformation",
            "DataTypes",
            "Restrictions",
            "ReservedWords",
            "Arguments",
            "Catalog",
            "Columns",
            "Databases",
            "ForeignKeyColumns",
            "ForeignKeys",
            "Functions",
            "IndexColumns",
            "Indexes",
            "PackageBodies",
            "Packages",
            "PrimaryKeys",
            "ProcedureColumns",
            "ProcedureParameters",
            "Procedures",
            "Sequences",
            "Synonyms",
            "Tables",
            "UniqueKeys",
            "UserDefinedTypes",
            "Users",
            "ViewColumns",
            "Views"});
			this.cboGetSchema.Location = new System.Drawing.Point(86, 5);
			this.cboGetSchema.Name = "cboGetSchema";
			this.cboGetSchema.Size = new System.Drawing.Size(197, 20);
			this.cboGetSchema.TabIndex = 1;
			//
			// btnGetSchema
			//
			this.btnGetSchema.Location = new System.Drawing.Point(5, 3);
			this.btnGetSchema.Name = "btnGetSchema";
			this.btnGetSchema.Size = new System.Drawing.Size(75, 23);
			this.btnGetSchema.TabIndex = 0;
			this.btnGetSchema.Text = "GetSchema";
			this.btnGetSchema.UseVisualStyleBackColor = true;
			this.btnGetSchema.Click += new System.EventHandler(this.btnGetSchema_Click);
			//
			// tbcGrid
			//
			this.tbcGrid.Controls.Add(this.tbpData);
			this.tbcGrid.Controls.Add(this.tbpDataSchema);
			this.tbcGrid.Controls.Add(this.tbpDataInfo);
			this.tbcGrid.Controls.Add(this.tbpLog);
			this.tbcGrid.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tbcGrid.Location = new System.Drawing.Point(0, 0);
			this.tbcGrid.Name = "tbcGrid";
			this.tbcGrid.SelectedIndex = 0;
			this.tbcGrid.Size = new System.Drawing.Size(280, 258);
			this.tbcGrid.TabIndex = 0;
			//
			// tbpData
			//
			this.tbpData.Controls.Add(this.grdData);
			this.tbpData.Location = new System.Drawing.Point(4, 22);
			this.tbpData.Name = "tbpData";
			this.tbpData.Padding = new System.Windows.Forms.Padding(3);
			this.tbpData.Size = new System.Drawing.Size(272, 232);
			this.tbpData.TabIndex = 0;
			this.tbpData.Text = "Data";
			this.tbpData.UseVisualStyleBackColor = true;
			//
			// grdData
			//
			this.grdData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.grdData.ContextMenuStrip = this.mnuGrid;
			this.grdData.Dock = System.Windows.Forms.DockStyle.Fill;
			this.grdData.Location = new System.Drawing.Point(3, 3);
			this.grdData.Name = "grdData";
			this.grdData.RowTemplate.Height = 23;
			this.grdData.Size = new System.Drawing.Size(266, 226);
			this.grdData.TabIndex = 1;
			this.grdData.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.grdData_DataError);
			//
			// tbpDataSchema
			//
			this.tbpDataSchema.Controls.Add(this.grdDataSchema);
			this.tbpDataSchema.Controls.Add(this.txtDataLog);
			this.tbpDataSchema.Location = new System.Drawing.Point(4, 22);
			this.tbpDataSchema.Name = "tbpDataSchema";
			this.tbpDataSchema.Padding = new System.Windows.Forms.Padding(3);
			this.tbpDataSchema.Size = new System.Drawing.Size(272, 232);
			this.tbpDataSchema.TabIndex = 1;
			this.tbpDataSchema.Text = "DataSchema";
			this.tbpDataSchema.UseVisualStyleBackColor = true;
			//
			// grdDataSchema
			//
			this.grdDataSchema.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
			this.grdDataSchema.ContextMenuStrip = this.mnuGrid;
			this.grdDataSchema.Dock = System.Windows.Forms.DockStyle.Fill;
			this.grdDataSchema.Location = new System.Drawing.Point(3, 3);
			this.grdDataSchema.Name = "grdDataSchema";
			this.grdDataSchema.RowTemplate.Height = 23;
			this.grdDataSchema.Size = new System.Drawing.Size(266, 226);
			this.grdDataSchema.TabIndex = 3;
			//
			// txtDataLog
			//
			this.txtDataLog.BackColor = System.Drawing.SystemColors.ButtonFace;
			this.txtDataLog.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtDataLog.Location = new System.Drawing.Point(3, 3);
			this.txtDataLog.Multiline = true;
			this.txtDataLog.Name = "txtDataLog";
			this.txtDataLog.ReadOnly = true;
			this.txtDataLog.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtDataLog.Size = new System.Drawing.Size(266, 226);
			this.txtDataLog.TabIndex = 2;
			this.txtDataLog.WordWrap = false;
			//
			// tbpLog
			//
			this.tbpLog.Controls.Add(this.txtLog);
			this.tbpLog.Location = new System.Drawing.Point(4, 22);
			this.tbpLog.Name = "tbpLog";
			this.tbpLog.Padding = new System.Windows.Forms.Padding(3);
			this.tbpLog.Size = new System.Drawing.Size(272, 232);
			this.tbpLog.TabIndex = 2;
			this.tbpLog.Text = "Log";
			this.tbpLog.UseVisualStyleBackColor = true;
			//
			// txtLog
			//
			this.txtLog.BackColor = System.Drawing.SystemColors.ButtonFace;
			this.txtLog.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtLog.Location = new System.Drawing.Point(3, 3);
			this.txtLog.Multiline = true;
			this.txtLog.Name = "txtLog";
			this.txtLog.ReadOnly = true;
			this.txtLog.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtLog.Size = new System.Drawing.Size(266, 226);
			this.txtLog.TabIndex = 3;
			this.txtLog.WordWrap = false;
			//
			// dlgSave
			//
			this.dlgSave.Filter = "Xml file(*.xml)|*.xml";
			//
			// tbpDataInfo
			//
			this.tbpDataInfo.Controls.Add(this.txtDataInfo);
			this.tbpDataInfo.Location = new System.Drawing.Point(4, 22);
			this.tbpDataInfo.Name = "tbpDataInfo";
			this.tbpDataInfo.Padding = new System.Windows.Forms.Padding(3);
			this.tbpDataInfo.Size = new System.Drawing.Size(272, 232);
			this.tbpDataInfo.TabIndex = 3;
			this.tbpDataInfo.Text = "DataInfo";
			this.tbpDataInfo.UseVisualStyleBackColor = true;
			//
			// txtDataInfo
			//
			this.txtDataInfo.BackColor = System.Drawing.SystemColors.ButtonFace;
			this.txtDataInfo.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtDataInfo.Location = new System.Drawing.Point(3, 3);
			this.txtDataInfo.Multiline = true;
			this.txtDataInfo.Name = "txtDataInfo";
			this.txtDataInfo.ReadOnly = true;
			this.txtDataInfo.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtDataInfo.Size = new System.Drawing.Size(266, 226);
			this.txtDataInfo.TabIndex = 4;
			this.txtDataInfo.WordWrap = false;
			//
			// ZDbViewCsForm
			//
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(584, 362);
			this.Controls.Add(this.spcTool);
			this.Name = "ZDbViewCsForm";
			this.Text = "zDbViewCs";
			this.Load += new System.EventHandler(this.ZDbViewCsForm_Load);
			this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.ZDbViewCsForm_FormClosed);
			this.spcTool.Panel1.ResumeLayout(false);
			this.spcTool.Panel2.ResumeLayout(false);
			this.spcTool.ResumeLayout(false);
			this.tbcInput.ResumeLayout(false);
			this.tbpConnstr.ResumeLayout(false);
			this.tbpConnstr.PerformLayout();
			this.tbpSql.ResumeLayout(false);
			this.tbpSql.PerformLayout();
			this.pnlTool.ResumeLayout(false);
			this.pnlTool.PerformLayout();
			this.mnuPopup.ResumeLayout(false);
			this.spcList.Panel1.ResumeLayout(false);
			this.spcList.Panel2.ResumeLayout(false);
			this.spcList.ResumeLayout(false);
			this.tbcMain.ResumeLayout(false);
			this.tbpTable.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.grdTable)).EndInit();
			this.mnuGrid.ResumeLayout(false);
			this.tbpGetSchema.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.grdGetSchema)).EndInit();
			this.pnlGetSchema.ResumeLayout(false);
			this.tbcGrid.ResumeLayout(false);
			this.tbpData.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.grdData)).EndInit();
			this.tbpDataSchema.ResumeLayout(false);
			this.tbpDataSchema.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.grdDataSchema)).EndInit();
			this.tbpLog.ResumeLayout(false);
			this.tbpLog.PerformLayout();
			this.tbpDataInfo.ResumeLayout(false);
			this.tbpDataInfo.PerformLayout();
			this.ResumeLayout(false);

		}

		#endregion

		private System.Windows.Forms.SplitContainer spcTool;
		private System.Windows.Forms.Panel pnlTool;
		private System.Windows.Forms.Label lblProvider;
		private System.Windows.Forms.ComboBox cboProvider;
		private System.Windows.Forms.ContextMenuStrip mnuPopup;
		private System.Windows.Forms.ToolStripMenuItem mnuPopupProviderRefresh;
		private System.Windows.Forms.TabControl tbcInput;
		private System.Windows.Forms.TabPage tbpConnstr;
		private System.Windows.Forms.TabPage tbpSql;
		private System.Windows.Forms.TextBox txtConnstr;
		private System.Windows.Forms.TextBox txtSql;
		private System.Windows.Forms.SplitContainer spcList;
		private System.Windows.Forms.TabControl tbcMain;
		private System.Windows.Forms.TabPage tbpTable;
		private System.Windows.Forms.TabControl tbcGrid;
		private System.Windows.Forms.TabPage tbpData;
		private System.Windows.Forms.TabPage tbpDataSchema;
		private System.Windows.Forms.TextBox txtDataLog;
		private System.Windows.Forms.TabPage tbpLog;
		private System.Windows.Forms.TextBox txtLog;
		private System.Windows.Forms.ComboBox cboClickCmd;
		private System.Windows.Forms.TextBox txtLimit;
		private System.Windows.Forms.Button btnClose;
		private System.Windows.Forms.Button btnOpen;
		private System.Windows.Forms.Button btnExec;
		private System.Windows.Forms.ToolTip ttpMain;
		private System.Windows.Forms.DataGridView grdTable;
		private System.Windows.Forms.DataGridView grdData;
		private System.Windows.Forms.DataGridView grdDataSchema;
		private System.Windows.Forms.ContextMenuStrip mnuGrid;
		private System.Windows.Forms.ToolStripMenuItem mnuGridCopyValue;
		private System.Windows.Forms.ToolStripMenuItem mnuGridCopyRow;
		private System.Windows.Forms.ToolStripMenuItem mnuGridCopyTable;
		private System.Windows.Forms.ToolStripMenuItem mnuGridExportTable;
		private System.Windows.Forms.ToolStripMenuItem mnuGridCopyTableXml;
		private System.Windows.Forms.SaveFileDialog dlgSave;
		private System.Windows.Forms.TabPage tbpGetSchema;
		private System.Windows.Forms.Panel pnlGetSchema;
		private System.Windows.Forms.ComboBox cboGetSchema;
		private System.Windows.Forms.Button btnGetSchema;
		private System.Windows.Forms.DataGridView grdGetSchema;
		private System.Windows.Forms.TabPage tbpDataInfo;
		private System.Windows.Forms.TextBox txtDataInfo;
	}
}


text:
package com.ickstream.common.jsonrpc;

import com.fasterxml.jackson.databind.node.ValueNode;

/**
 * Identity provider that generates identities to be used in JSON-RPC requests
 */
public interface IdProvider {
    /**
     * Get a new identity to use in a JSON-RPC request
     *
     * @return The identity to use, {@link Object#toString()} will be called on this object to produce a String identity
     */
    ValueNode getNextId();
}

redpajama_set_name: RedPajamaGithub


text:
package org.apache.ignite.plugin;

import java.util.UUID;
import org.apache.ignite.IgniteException;

/**
 * Plugin validation exception.
 */
public class PluginValidationException extends IgniteException {
    /** */
    private static final long serialVersionUID = 0L;

    /** Offending node ID. */
    private UUID nodeId;

    /** Error message to send to the offending node. */
    private String rmtMsg;

    /**
     * Constructs invalid plugin exception.
     *
     * @param msg Local error message.
     * @param rmtMsg Error message to send to the offending node.
     * @param nodeId ID of the offending node.
     */
    public PluginValidationException(String msg, String rmtMsg, UUID nodeId) {
        super(msg);

        this.nodeId = nodeId;
        this.rmtMsg = rmtMsg;
    }

    /**
     * @return Offending node ID.
     */
    public UUID nodeId() {
        return nodeId;
    }

    /**
     * @return Message to be sent to joining node.
     */
    public String remoteMessage() {
        return rmtMsg;
    }
}


text:
  * [Introduction](#introduction)
    + ["Can I use this SDK to detect beacons?"](#can-i-use-this-sdk-to-detect-beacons)
    + ["Do I need to build an app to configure my beacons?"](#do-i-need-to-build-an-app-to-configure-my-beacons)
  * [Requirements](#requirements)
  * [Installation](#installation)
    + [Connecting Fleet Management SDK to your Estimote Cloud account](#connecting-fleet-management-sdk-to-your-estimote-cloud-account)
  * [Bulk Updater](#bulk-updater)
  * [Configuring individual beacons](#configuring-individual-beacons)
  * [API documentation (AKA JavaDocs)](#api-documentation-aka-javadocs)
  * [Feedback, questions, issues](#feedback-questions-issues)
  * [Changelog](#changelog)

## Introduction

Estimote Fleet Management SDK allows you to **configure and update your Estimote Beacons via your own Android app**, for example:

 - enable Estimote Monitoring and Estimote Telemetry
 - enable iBeacon, and change its UUID, major, minor, transmit power
 - update beacon's firmware
 - etc.

You can [configure your beacons one by one](#configuring-individual-beacons), or use Estimote Cloud to queue "pending settings" on your beacons and apply these settings with the [Bulk Updater](#bulk-updater).

Integrating this SDK into your app means the users of your app can automatically propagate any configuration changes to your beacons. Say, you deployed the beacons, but the initial usage suggests you need to bump the transmit power up a notch, or maybe make the Telemetry advertise more frequently. With Bulk Updater integrated into the app, any user of the app in range of a "pending settings" beacon will apply the new settings.

(Settings that live entirely in Estimote Cloud, like the beacon's name, tags, and attachments, are always updated instantly, without the need to propagate settings to beacons.)

### "Can I use this SDK to detect beacons?"

Short version: no, use the [Proximity SDK](https://github.com/Estimote/Android-Proximity-SDK) instead.

Longer version: this SDK was previously known as "Estimote SDK", and it included APIs for detecting your beacons, which you could use to show notifications, etc. **These APIs are now deprecated and are no longer supported.** They have been replaced with the [Estimote Proximity SDK for Android](https://github.com/Estimote/Android-Proximity-SDK), powered by [Estimote Monitoring](https://community.estimote.com/hc/en-us/articles/360003252832-What-is-Estimote-Monitoring-).

You can, and are encouraged to, use the Fleet Management SDK alongside the Proximity SDK: Proximity SDK for driving the proximity-based events in your app, and Fleet Management SDK for remotely managing your beacons.

### "Do I need to build an app to configure my beacons?"

No, you can use our [Estimote Android app](https://play.google.com/store/apps/details?id=com.estimote.apps.main&hl=en) to change the most common settings, and to apply "pending settings" to individual beacons. Connecting to the beacon in the app automatically applies the latest settings from Estimote Cloud.

If you have more Estimote devices, [Estimote Deployment app](https://itunes.apple.com/us/app/estimote-deployment/id1109375679?mt=8) can apply "pending settings" in bulk. At this time, it's available on iOS only.

## Requirements

Android 4.3 or later, and an Android device with Bluetooth Low Energy.

The minimum Android API level this SDK will run on is 9 (= Android 2.3), but the Bluetooth-detection features (which is most of them) won't work. You can handle this gracefully in your app by not using the fleet management features if you detect Android < 4.3, or no Bluetooth Low Energy available.

Bluetooth Low Energy scanning on Android also requires the app to obtain the location permissions from the user, and "location" must also be enabled system-wide. Chances are, if your app is using beacons (e.g., via the Estimote Proximity SDK), [you already have this permission](https://developer.estimote.com/proximity/android-tutorial/#request-location-permissions).

## Installation

This SDK is distributed via JCenter repository. Most of the time, you'll already have JCenter repo configured in your Android project, with these lines in the Project build.gradle:

```gradle
allprojects {
    repositories {
        jcenter()
        // ...
    }
}
```

If not, add `jcenter()` inside `repositories`, as shown above. Then, in the Module build.gradle, add:

```gradle
dependencies {
    implementation 'com.estimote:mgmtsdk:1.4.6'
    implementation 'com.estimote:coresdk:1.3.4'
    // if using an older version of Gradle, try "compile" instead of "implementation"
}
```

### Connecting Fleet Management SDK to your Estimote Cloud account

This SDK needs to be able to access your Estimote Cloud account in order to configure your beacons.

To do that, register your mobile app in Estimote Cloud in the "Mobile Apps" section. You'll get an App ID and App Token, which you can use to initialize the SDK:

```java
// do this before you use any of the fleet management features
EstimoteSDK.initialize(applicationContext, "my-app-bf6", "7bcabedcb4f...");
```

Your Estimote Cloud account needs to have a fleet management subscription. As of now, there's a free, indefinite trial available if you have less than 20 devices.

## Bulk Updater

This is how to set up the Bulk Updater: (we recommend doing this in an Application subclass)

```java
private BulkUpdater bulkUpdater;

@Override
protected void onCreate() {
    super.onCreate();

    Context context = getApplicationContext();
    bulkUpdater = new BulkUpdaterBuilder(context)
        .withFirmwareUpdate()
        .withCloudFetchInterval(1, TimeUnit.HOURS)
        .withTimeout(0)
        .withRetryCount(3)
        .build()
}
```

And this is how to use it:

```java
bulkUpdater.start(new BulkUpdater.BulkUpdaterCallback() {
    @Override
    public void onDeviceStatusChange(ConfigurableDevice device,
            BulkUpdater.Status newStatus, String message) {
        Log.d("BulkUpdater", device.deviceId + ": " + newStatus);
    }

    @Override
    public void onFinished(int updatedCount, int failedCount) {
        Log.d("BulkUpdater", "Finished. Updated: " +
                updatedCount + ", Failed: " + failedCount);
    }

    @Override
    public void onError(DeviceConnectionException e) {
        Log.d("BulkUpdater", "Error: " + e.getMessage());
    }
});
```

One more thing: you need to feed the BulkUpdater with data from the beacons' Connectivity packets:

```java
private BeaconManager beaconManager;

// ...

beaconManager = new BeaconManager(context);

// this will make the beacon attempt to detect Connectivity packets for 10 seconds,
// then wait 50 seconds before the next detection, then repeat the cycle
beaconManager.setForegroundScanPeriod(10000, 50000);

// this connects to an underlying service, not to the beacon (-;
beaconManager.connect(new BeaconManager.ServiceReadyCallback() {
    @Override
    public void onServiceReady() {
        beaconManager.setConfigurableDevicesListener(new BeaconManager.ConfigurableDevicesListener() {
            @Override
            public void onConfigurableDevicesFound(List<ConfigurableDevice> configurableDevices) {
                bulkUpdater.onDevicesFound(configurableDevices);
            }
        });
    }
});
beaconManager.startConfigurableDevicesDiscovery();
```

To stop, and clean up after the BulkUpdater, do:

```java
beaconManager.stopConfigurableDevicesDiscovery()
bulkUpdater.stop();
bulkUpdater.destroy();
```

## Configuring individual beacons

If you want to individually configure a beacon, you'll need to connect to it first: [Connecting to beacons](https://github.com/Estimote/Android-Fleet-Management-SDK/blob/master/Docs/DOC_deviceConnection.md).

Once connected, you can read and write settings, as well as update the beacon's firmware: [Basic operations on connected device](https://github.com/Estimote/Android-Fleet-Management-SDK/blob/master/Docs/DOC_deviceConnection.md#basic-operations-on-connected-device) and [Advanced operations on connected device](https://github.com/Estimote/Android-Fleet-Management-SDK/blob/master/Docs/DOC_deviceConnection.md#advanced-operations-on-connected-device).

## API documentation (AKA JavaDocs)

… is available here:

<http://estimote.github.io/Android-Fleet-Management-SDK/JavaDocs/>

## Feedback, questions, issues

Post your questions and feedback to [Estimote Forums](https://forums.estimote.com), we'd love to hear from you!

Report issues on the [issues page](https://github.com/Estimote/Android-Fleet-Management-SDK/issues).

## Changelog

See [CHANGELOG.md](CHANGELOG.md).


text:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Orm on Web/Ruby on Rails/Golang developer; London, UK</title>
    <link>//ikennaokpala.com/tags/orm/</link>
    <description>Recent content in Orm on Web/Ruby on Rails/Golang developer; London, UK</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 21 Jan 2015 23:38:54 +0000</lastBuildDate>
    <atom:link href="//ikennaokpala.com/tags/orm/index.xml" rel="self" type="application/rss+xml" />

    <item>
      <title>Object Oriented Mapping in Golang</title>
      <link>//ikennaokpala.com/posts/object-oriented-mapping-in-golang/</link>
      <pubDate>Wed, 21 Jan 2015 23:38:54 +0000</pubDate>

      <guid>//ikennaokpala.com/posts/object-oriented-mapping-in-golang/</guid>
      <description>
Today, I gave a talk on ORMs in Golang at the London Golang Meetup.

Thanks to everyone who turned up and for those who could not make it, here is the video link https://skillsmatter.com/skillscasts/6162-orms-with-golang.

I started my talk by defining what Object Relational Mapping is with a slight detour on its brief history thus far (mostly from what I have witnessed).

Then I went on to talk about WHY? ORMs are important and HOW? useful they are.

I continued with some insights on Go&rsquo;s philosophy, well from a newbie&rsquo;s perspective (I am only just a few weeks into practical Golang coding, counting by nights).

Prior to this, I had some earlier introduction to Golang from Seyi Ogunyemi from our podcast episode on Golang and after a few years later had a chat with David Hernandez as well.

Thanks guys for sharing your knowledge with me and BigUps to Seyi for reviewing my slides for this talk.

Some of the experiences I shared in this talk were based on a small REST API (v1) I built with Golang.

The idea with this REST API is to trim down a somewhat monolithic wordpress database to the bare essentials and enough to cater for a mobile/tablet apps et al.

So here it is, an opportunity to give Golang a go, yay!!.

I will be probably be posting progress as I continue to progress the REST API (v2).

Thanks to my friends (Wendy, Nick, Paul, et al) at Skills Matter for making it possible that this talk was recorded.

Here is the Video Link: https://skillsmatter.com/skillscasts/6162-orms-with-golang

</description>
    </item>

  </channel>
</rss>


text:
package org.elasticsearch.gateway;

import com.carrotsearch.hppc.cursors.ObjectCursor;
import org.elasticsearch.cluster.*;
import org.elasticsearch.cluster.block.ClusterBlock;
import org.elasticsearch.cluster.block.ClusterBlockLevel;
import org.elasticsearch.cluster.block.ClusterBlocks;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.cluster.metadata.MetaData;
import org.elasticsearch.cluster.node.DiscoveryNodes;
import org.elasticsearch.cluster.routing.RoutingTable;
import org.elasticsearch.cluster.routing.allocation.AllocationService;
import org.elasticsearch.cluster.routing.allocation.RoutingAllocation;
import org.elasticsearch.common.component.AbstractLifecycleComponent;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.discovery.DiscoveryService;
import org.elasticsearch.rest.RestStatus;
import org.elasticsearch.threadpool.ThreadPool;

import java.util.concurrent.atomic.AtomicBoolean;

/**
 *
 */
public class GatewayService extends AbstractLifecycleComponent<GatewayService> implements ClusterStateListener {

    public static final ClusterBlock STATE_NOT_RECOVERED_BLOCK = new ClusterBlock(1, "state not recovered / initialized", true, true, RestStatus.SERVICE_UNAVAILABLE, ClusterBlockLevel.ALL);

    public static final TimeValue DEFAULT_RECOVER_AFTER_TIME_IF_EXPECTED_NODES_IS_SET = TimeValue.timeValueMinutes(5);

    private final Gateway gateway;

    private final ThreadPool threadPool;

    private final AllocationService allocationService;

    private final ClusterService clusterService;

    private final DiscoveryService discoveryService;

    private final TimeValue recoverAfterTime;
    private final int recoverAfterNodes;
    private final int expectedNodes;
    private final int recoverAfterDataNodes;
    private final int expectedDataNodes;
    private final int recoverAfterMasterNodes;
    private final int expectedMasterNodes;

    private final AtomicBoolean recovered = new AtomicBoolean();
    private final AtomicBoolean scheduledRecovery = new AtomicBoolean();

    @Inject
    public GatewayService(Settings settings, Gateway gateway, AllocationService allocationService, ClusterService clusterService, DiscoveryService discoveryService, ThreadPool threadPool) {
        super(settings);
        this.gateway = gateway;
        this.allocationService = allocationService;
        this.clusterService = clusterService;
        this.discoveryService = discoveryService;
        this.threadPool = threadPool;
        // allow to control a delay of when indices will get created
        this.expectedNodes = this.settings.getAsInt("gateway.expected_nodes", -1);
        this.expectedDataNodes = this.settings.getAsInt("gateway.expected_data_nodes", -1);
        this.expectedMasterNodes = this.settings.getAsInt("gateway.expected_master_nodes", -1);

        TimeValue defaultRecoverAfterTime = null;
        if (expectedNodes >= 0 || expectedDataNodes >= 0 || expectedMasterNodes >= 0) {
            defaultRecoverAfterTime = DEFAULT_RECOVER_AFTER_TIME_IF_EXPECTED_NODES_IS_SET;
        }

        this.recoverAfterTime = this.settings.getAsTime("gateway.recover_after_time", defaultRecoverAfterTime);
        this.recoverAfterNodes = this.settings.getAsInt("gateway.recover_after_nodes", -1);
        this.recoverAfterDataNodes = this.settings.getAsInt("gateway.recover_after_data_nodes", -1);
        // default the recover after master nodes to the minimum master nodes in the discovery
        this.recoverAfterMasterNodes = this.settings.getAsInt("gateway.recover_after_master_nodes", settings.getAsInt("discovery.zen.minimum_master_nodes", -1));

        // Add the not recovered as initial state block, we don't allow anything until
        this.clusterService.addInitialStateBlock(STATE_NOT_RECOVERED_BLOCK);
    }

    @Override
    protected void doStart() {
        clusterService.addLast(this);
        // check we didn't miss any cluster state that came in until now / during the addition
        clusterService.submitStateUpdateTask("gateway_initial_state_recovery", new ClusterStateUpdateTask() {

            @Override
            public ClusterState execute(ClusterState currentState) throws Exception {
                checkStateMeetsSettingsAndMaybeRecover(currentState);
                return currentState;
            }

            @Override
            public boolean runOnlyOnMaster() {
                // It's OK to run on non masters as checkStateMeetsSettingsAndMaybeRecover checks for this
                // we return false to avoid unneeded failure logs
                return false;
            }

            @Override
            public void onFailure(String source, Throwable t) {
                logger.warn("unexpected failure while checking if state can be recovered. another attempt will be made with the next cluster state change", t);
            }
        });
    }

    @Override
    protected void doStop() {
        clusterService.remove(this);
    }

    @Override
    protected void doClose() {
    }

    @Override
    public void clusterChanged(final ClusterChangedEvent event) {
        if (lifecycle.stoppedOrClosed()) {
            return;
        }
        checkStateMeetsSettingsAndMaybeRecover(event.state());
    }

    protected void checkStateMeetsSettingsAndMaybeRecover(ClusterState state) {
        if (state.nodes().localNodeMaster() == false) {
            // not our job to recover
            return;
        }
        if (state.blocks().hasGlobalBlock(STATE_NOT_RECOVERED_BLOCK) == false) {
            // already recovered
            return;
        }

        DiscoveryNodes nodes = state.nodes();
        if (state.blocks().hasGlobalBlock(discoveryService.getNoMasterBlock())) {
            logger.debug("not recovering from gateway, no master elected yet");
        } else if (recoverAfterNodes != -1 && (nodes.masterAndDataNodes().size()) < recoverAfterNodes) {
            logger.debug("not recovering from gateway, nodes_size (data+master) [" + nodes.masterAndDataNodes().size() + "] < recover_after_nodes [" + recoverAfterNodes + "]");
        } else if (recoverAfterDataNodes != -1 && nodes.dataNodes().size() < recoverAfterDataNodes) {
            logger.debug("not recovering from gateway, nodes_size (data) [" + nodes.dataNodes().size() + "] < recover_after_data_nodes [" + recoverAfterDataNodes + "]");
        } else if (recoverAfterMasterNodes != -1 && nodes.masterNodes().size() < recoverAfterMasterNodes) {
            logger.debug("not recovering from gateway, nodes_size (master) [" + nodes.masterNodes().size() + "] < recover_after_master_nodes [" + recoverAfterMasterNodes + "]");
        } else {
            boolean enforceRecoverAfterTime;
            String reason;
            if (expectedNodes == -1 && expectedMasterNodes == -1 && expectedDataNodes == -1) {
                // no expected is set, honor the setting if they are there
                enforceRecoverAfterTime = true;
                reason = "recover_after_time was set to [" + recoverAfterTime + "]";
            } else {
                // one of the expected is set, see if all of them meet the need, and ignore the timeout in this case
                enforceRecoverAfterTime = false;
                reason = "";
                if (expectedNodes != -1 && (nodes.masterAndDataNodes().size() < expectedNodes)) { // does not meet the expected...
                    enforceRecoverAfterTime = true;
                    reason = "expecting [" + expectedNodes + "] nodes, but only have [" + nodes.masterAndDataNodes().size() + "]";
                } else if (expectedDataNodes != -1 && (nodes.dataNodes().size() < expectedDataNodes)) { // does not meet the expected...
                    enforceRecoverAfterTime = true;
                    reason = "expecting [" + expectedDataNodes + "] data nodes, but only have [" + nodes.dataNodes().size() + "]";
                } else if (expectedMasterNodes != -1 && (nodes.masterNodes().size() < expectedMasterNodes)) { // does not meet the expected...
                    enforceRecoverAfterTime = true;
                    reason = "expecting [" + expectedMasterNodes + "] master nodes, but only have [" + nodes.masterNodes().size() + "]";
                }
            }
            performStateRecovery(enforceRecoverAfterTime, reason);
        }
    }

    private void performStateRecovery(boolean enforceRecoverAfterTime, String reason) {
        final Gateway.GatewayStateRecoveredListener recoveryListener = new GatewayRecoveryListener();

        if (enforceRecoverAfterTime && recoverAfterTime != null) {
            if (scheduledRecovery.compareAndSet(false, true)) {
                logger.info("delaying initial state recovery for [{}]. {}", recoverAfterTime, reason);
                threadPool.schedule(recoverAfterTime, ThreadPool.Names.GENERIC, () -> {
                    if (recovered.compareAndSet(false, true)) {
                        logger.info("recover_after_time [{}] elapsed. performing state recovery...", recoverAfterTime);
                        gateway.performStateRecovery(recoveryListener);
                    }
                });
            }
        } else {
            if (recovered.compareAndSet(false, true)) {
                threadPool.generic().execute(() -> gateway.performStateRecovery(recoveryListener));
            }
        }
    }

    class GatewayRecoveryListener implements Gateway.GatewayStateRecoveredListener {

        @Override
        public void onSuccess(final ClusterState recoveredState) {
            logger.trace("successful state recovery, importing cluster state...");
            clusterService.submitStateUpdateTask("local-gateway-elected-state", new ClusterStateUpdateTask() {
                @Override
                public ClusterState execute(ClusterState currentState) {
                    assert currentState.metaData().indices().isEmpty();

                    // remove the block, since we recovered from gateway
                    ClusterBlocks.Builder blocks = ClusterBlocks.builder()
                            .blocks(currentState.blocks())
                            .blocks(recoveredState.blocks())
                            .removeGlobalBlock(STATE_NOT_RECOVERED_BLOCK);

                    MetaData.Builder metaDataBuilder = MetaData.builder(recoveredState.metaData());
                    // automatically generate a UID for the metadata if we need to
                    metaDataBuilder.generateClusterUuidIfNeeded();

                    if (recoveredState.metaData().settings().getAsBoolean(MetaData.SETTING_READ_ONLY, false) || currentState.metaData().settings().getAsBoolean(MetaData.SETTING_READ_ONLY, false)) {
                        blocks.addGlobalBlock(MetaData.CLUSTER_READ_ONLY_BLOCK);
                    }

                    for (IndexMetaData indexMetaData : recoveredState.metaData()) {
                        metaDataBuilder.put(indexMetaData, false);
                        blocks.addBlocks(indexMetaData);
                    }

                    // update the state to reflect the new metadata and routing
                    ClusterState updatedState = ClusterState.builder(currentState)
                            .blocks(blocks)
                            .metaData(metaDataBuilder)
                            .build();

                    // initialize all index routing tables as empty
                    RoutingTable.Builder routingTableBuilder = RoutingTable.builder(updatedState.routingTable());
                    for (ObjectCursor<IndexMetaData> cursor : updatedState.metaData().indices().values()) {
                        routingTableBuilder.addAsRecovery(cursor.value);
                    }
                    // start with 0 based versions for routing table
                    routingTableBuilder.version(0);

                    // now, reroute
                    RoutingAllocation.Result routingResult = allocationService.reroute(
                            ClusterState.builder(updatedState).routingTable(routingTableBuilder.build()).build(),
                            "state recovered");

                    return ClusterState.builder(updatedState).routingResult(routingResult).build();
                }

                @Override
                public void onFailure(String source, Throwable t) {
                    logger.error("unexpected failure during [{}]", t, source);
                    GatewayRecoveryListener.this.onFailure("failed to updated cluster state");
                }

                @Override
                public void clusterStateProcessed(String source, ClusterState oldState, ClusterState newState) {
                    logger.info("recovered [{}] indices into cluster_state", newState.metaData().indices().size());
                }
            });
        }

        @Override
        public void onFailure(String message) {
            recovered.set(false);
            scheduledRecovery.set(false);
            // don't remove the block here, we don't want to allow anything in such a case
            logger.info("metadata state not restored, reason: {}", message);
        }

    }

    // used for testing
    public TimeValue recoverAfterTime() {
        return recoverAfterTime;
    }

}


text:
import config from 'config';
import DatabaseFactory from './DatabaseFactory';

var factory = new DatabaseFactory(config.get('database'));

export default factory.getDatabase();


text:
require 'test_helper'

class TIFFTest < Test::Unit::TestCase
  def setup
    @t = TIFF.new(f('nikon_d1x.tif'))
  end

  def test_initialize
    all_test_tiffs.each do |fname|
      assert_nothing_raised do
        TIFF.new(fname)
      end
      assert_nothing_raised do
        open(fname) { |rd| TIFF.new(rd) }
      end
      assert_nothing_raised do
        TIFF.new(StringIO.new(File.read(fname)))
      end
    end
  end

  def test_raises_malformed_tiff
    assert_raise MalformedTIFF do
      TIFF.new(StringIO.new("djibberish"))
    end
  end

  def test_multiple_images
    assert_equal 2, @t.size
  end

  def test_size
    assert_equal 269, @t.image_width
    assert_equal 269, @t.image_length
    assert_equal 269, @t.width
    assert_equal 269, @t.height
    assert_equal 120, @t[1].image_width
    assert_equal 160, @t[1].image_length
    assert_equal 120, @t[1].width
    assert_equal 160, @t[1].height

    @t = TIFF.new(f('plain.tif'))
    assert_equal 23, @t.image_width
    assert_equal 24, @t.image_length
    assert_equal 23, @t.width
    assert_equal 24, @t.height
  end

  def test_enumerable
    assert_equal @t[1], @t.find { |i| i.f_number.nil? }
  end

  def test_misc_fields
    assert_equal 'Canon PowerShot G3', TIFF.new(f('canon-g3.exif')).model
  end

  def test_dates
    (all_test_tiffs - [f('weird_date.exif'), f('plain.tif'), f('endless-loop.exif')]).each do |fname|
      assert_kind_of Time, TIFF.new(fname).date_time
    end
    assert_nil TIFF.new(f('weird_date.exif')).date_time
  end

  def test_orientation
    tested = 0 # count tests because not all exif samples have an orientation field
    all_test_exifs.each do |fname|
      orientation = TIFF.new(fname).orientation
      if orientation
        assert [
          TIFF::TopLeftOrientation,
          TIFF::TopRightOrientation,
          TIFF::BottomRightOrientation,
          TIFF::BottomLeftOrientation,
          TIFF::LeftTopOrientation,
          TIFF::RightTopOrientation,
          TIFF::RightBottomOrientation,
          TIFF::LeftBottomOrientation
        ].any? { |c| orientation == c }, 'not an orientation'
        assert orientation.respond_to?(:to_i)
        assert orientation.respond_to?(:transform_rmagick)
        tested += 1
      end
    end
    assert tested > 0
  end

  def test_gps
    t = TIFF.new(f('gps.exif'))
    assert_equal "\2\2\0\0", t.gps_version_id
    assert_equal 'N', t.gps_latitude_ref
    assert_equal 'W', t.gps_longitude_ref
    assert_equal [5355537.quo(100000), 0.quo(1), 0.quo(1)], t.gps_latitude
    assert_equal [678886.quo(100000), 0.quo(1), 0.quo(1)], t.gps_longitude
    assert_equal 'WGS84', t.gps_map_datum

    (all_test_exifs - %w(gps user-comment out-of-range negative-exposure-bias-value).map{|v| f("#{v}.exif")}).each do |fname|
      assert_nil TIFF.new(fname).gps_version_id
    end
  end

  def test_ifd_dispatch
    assert @t.respond_to?(:f_number)
    assert @t.respond_to?('f_number')
    assert @t.methods.include?('f_number')
    assert TIFF.instance_methods.include?('f_number')

    assert_not_nil @t.f_number
    assert_kind_of Rational, @t.f_number
    assert_not_nil @t[0].f_number
    assert_kind_of Rational, @t[0].f_number
  end

  def test_avoid_dispatch_to_nonexistent_ifds
    assert_nothing_raised do
      all_test_tiffs.each do |fname|
        t = TIFF.new(fname)
        TIFF::TAGS.each { |tag| t.send(tag) }
      end
    end
  end

  def test_to_hash
    all_test_tiffs.each do |fname|
      t = TIFF.new(fname)
      TIFF::TAGS.each do |key|
        assert_literally_equal t.send(key), t.to_hash[key.to_sym], "#{key} not equal"
      end
    end
  end

  def test_old_style
    assert_nothing_raised do
      assert_not_nil @t[:f_number]
    end
  end

  def test_yaml_dump_and_load
    require 'yaml'

    all_test_tiffs.each do |fname|
      t = TIFF.new(fname)
      y = YAML.dump(t)
      assert_literally_equal t.to_hash, YAML.load(y).to_hash
    end
  end

  def test_jpeg_thumbnails
    count = 0
    all_test_tiffs.each do |fname|
      t = TIFF.new(fname)
      unless t.jpeg_thumbnails.empty?
        assert_nothing_raised do
          t.jpeg_thumbnails.each do |n|
            JPEG.new(StringIO.new(n))
          end
        end
        count += 1
      end
    end
    assert count > 0, 'no thumbnails found'
  end

  def test_should_not_loop_endlessly
    TIFF.new(f('endless-loop.exif'))
    assert true
  end

  def test_user_comment
    assert_equal "Manassas Battlefield", TIFF.new(f('user-comment.exif')).user_comment
  end

  def test_handle_out_of_range_offset
    assert_nothing_raised do
      assert 'NIKON', TIFF.new(f('out-of-range.exif')).make
    end
  end

  def test_negative_exposure_bias_value
    assert_equal -1.quo(3), TIFF.new(f('negative-exposure-bias-value.exif')).exposure_bias_value
  end
end


text:
 export interface SnackbarProps {
    actionHandler?: (props?: SnackbarProps) => void;
    actionText?: string;
    deleteMessage: () => void;
    messageId: string;
    message: string;
    type: string;
}

export default function Snackbar(props: SnackbarProps): React.ReactElement<any>


text:
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgbRatingConfig } from './rating-config';
import { NgbRating } from './rating';
export { NgbRating } from './rating';
export { NgbRatingConfig } from './rating-config';
export var NgbRatingModule = (function () {
    function NgbRatingModule() {
    }
    NgbRatingModule.forRoot = function () { return { ngModule: NgbRatingModule, providers: [NgbRatingConfig] }; };
    NgbRatingModule.decorators = [
        { type: NgModule, args: [{ declarations: [NgbRating], exports: [NgbRating], imports: [CommonModule] },] },
    ];
    /** @nocollapse */
    NgbRatingModule.ctorParameters = [];
    return NgbRatingModule;
}());
//# sourceMappingURL=rating.module.js.map


text:
#include "scheduler.h"

threadpool_t* threadpoolCreate(int thread_count, Journal_t** journal_array) {
	threadpool_t* threadpool = malloc(sizeof(threadpool_t));
	ALLOCATION_ERROR(threadpool);
	threadpool->thread_count = thread_count;
	threadpool->threads = malloc(thread_count * sizeof(pthread_t));
	threadpool->journal_array = journal_array;
	ALLOCATION_ERROR(threadpool->threads);
	if ((pthread_mutex_init(&(threadpool->lock), NULL) != 0) || (pthread_cond_init(&(threadpool->cond), NULL) != 0)) {
		fprintf(stderr, "Mutex allocation Error\n");
		exit(EXIT_FAILURE);
	}
	if ((pthread_mutex_init(&(threadpool->lock_end), NULL) != 0) || (pthread_cond_init(&(threadpool->cond_end), NULL) != 0)) {
		fprintf(stderr, "Mutex allocation Error\n");
		exit(EXIT_FAILURE);
	}
	threadpool->queue = createQueue();
	int i = 0;
	for (i = 0; i < thread_count; i++) {
		if (pthread_create(&(threadpool->threads[i]), NULL, jobConsumer, threadpool) != 0) {
			fprintf(stderr, "Error creating thread %d\n", i);
			exit(EXIT_FAILURE);
		}
	}
	return threadpool;
}

void* jobConsumer(void *arg) {
	while(1){
		threadpool_t * threadpool = (threadpool_t *) arg;
		if (pthread_mutex_lock(&(threadpool->lock)) != 0) {
			fprintf(stderr, "Mutex locking Error\n");
			exit(EXIT_FAILURE);
		}
		//Critical section start

		while (isQueueEmpty(threadpool->queue)) {
			pthread_cond_wait(&(threadpool->cond), &(threadpool->lock));
		}
		ValidationQueries_t* validation = popJob(threadpool->queue);
		if(checkValidation(threadpool->journal_array, validation)){
			uint64_t position = validation->validationId - threadpool->first_val_id;
			threadpool->result_array[position] = 1;
		}
		//Second CS
			if (pthread_mutex_lock(&(threadpool->lock_end)) != 0) {
				fprintf(stderr, "Mutex locking Error\n");
				exit(EXIT_FAILURE);
			}

			threadpool->num_of_validations--;
			if(threadpool->num_of_validations == 0)
				pthread_cond_signal(&(threadpool->cond_end));

			if (pthread_mutex_unlock(&threadpool->lock_end) != 0) {
				fprintf(stderr, "Mutex locking Error\n");
				exit(EXIT_FAILURE);
			}
		//Second CS

		//Critical section end
		if (pthread_mutex_unlock(&threadpool->lock) != 0) {
			fprintf(stderr, "Mutex locking Error\n");
			exit(EXIT_FAILURE);
		}
	}
	return NULL;
}

void threadpoolBarrier(threadpool_t* threadpool){
	if (pthread_mutex_lock(&(threadpool->lock_end)) != 0) {
		fprintf(stderr, "Mutex locking Error\n");
		exit(EXIT_FAILURE);
	}

	while (threadpool->num_of_validations > 0) {
		pthread_cond_wait(&(threadpool->cond_end), &(threadpool->lock_end));
	}

	if (pthread_mutex_unlock(&threadpool->lock_end) != 0) {
		fprintf(stderr, "Mutex locking Error\n");
		exit(EXIT_FAILURE);
	}
	return;
}

/* scheduler producer */
void threadpoolAdd(threadpool_t *threadpool, ValidationQueries_t* v) {
	if (pthread_mutex_lock(&(threadpool->lock)) != 0) {
		fprintf(stderr, "Mutex locking Error\n");
		exit(EXIT_FAILURE);
	}

	pushJob(threadpool->queue, v);
	pthread_cond_broadcast(&(threadpool->cond));

	if (pthread_mutex_unlock(&threadpool->lock) != 0) {
		fprintf(stderr, "Mutex locking Error\n");
		exit(EXIT_FAILURE);
	}
}

void threadpoolFree(threadpool_t *threadpool) {
	if (threadpool == NULL) {
		fprintf(stderr, "threadPool is null\n");
		exit(EXIT_FAILURE);
	}
	if (threadpool->threads != NULL) {
		free(threadpool->threads);
		pthread_mutex_destroy(&(threadpool->lock));
		pthread_cond_destroy(&(threadpool->cond));
	}
	free(threadpool);
}

void pushJob(job_queue *queue, ValidationQueries_t* v) {
	job_node_t *node = malloc(sizeof(job_node_t));
	ALLOCATION_ERROR(node);
	node->v = v;
	node->next = NULL;
	queue->jobs++;
	if (queue->list_start == NULL) {
		queue->list_start = node;
		queue->list_end = node;
		return ;
	}
	queue->list_end->next = node;
	queue->list_end = node;
}

ValidationQueries_t* popJob(job_queue *queue) {
	job_node_t *node = queue->list_start;
	if (queue->list_start == NULL) {
		return NULL;
	}
	queue->jobs--;
	if (queue->jobs == 0) {
		queue->list_start = NULL;
	} else {
		queue->list_start = queue->list_start->next;
	}
	ValidationQueries_t* v = node->v;
	free(node);
	return v;
}

bool isQueueEmpty(job_queue *queue) {
	return (queue->jobs) ? false : true;
}

job_queue* createQueue(void) {
	job_queue* queue = malloc(sizeof(job_queue));
	ALLOCATION_ERROR(queue);
	queue->jobs = 0;
	queue->list_start = NULL;
	queue->list_end = NULL;
	return queue;
}


text:
[Temperature sweep](results/clean_ising_norm/template.md)

[Magnetic Hysteresis](results/clean_ising_hysteresis/template.md)

[Striped state](results/metropolis_striped_200x200/template.md)

[Sweep dependence](results/metropolis_equi/template.md)

# [](#header-3) Random Field Ising Model

[Hysteresis, with minor loops](results/rfim2/template.md)

[Hystersis, resistance](results/rfim_res2/template.md)

[Hystersis, 3D](results/rfim_res2/template.md)

# [](#header-3) Random Bond Ising Model

[Hysteresis](results/rbond_1/template.md)

[Hysteresis, resistance](results/rbond_1/template.md)


text:
class TestCase {
  boolean a = true;
  boolean b = false;
  boolean x = newMethod();

    private boolean newMethod() {
        return a && b;
    }
}


text:
#ifndef SYNTHMARK_SYNTHMARK_H
#define SYNTHMARK_SYNTHMARK_H

#define SYNTHMARK_MAJOR_VERSION        1
#define SYNTHMARK_MINOR_VERSION        4

#ifndef SYNTHMARK_MAX_VOICES
// This may be increased without invalidating the benchmark.
#define SYNTHMARK_MAX_VOICES           512
#endif

#ifndef SYNTHMARK_NUM_VOICES_LATENCY
#define SYNTHMARK_NUM_VOICES_LATENCY   4
#endif

#ifndef SYNTHMARK_NUM_VOICES_JITTER
#define SYNTHMARK_NUM_VOICES_JITTER    4
#endif

// The number of frames that are synthesized at one time.
#ifndef SYNTHMARK_FRAMES_PER_RENDER
#define SYNTHMARK_FRAMES_PER_RENDER    8
#endif

// The number of frames that are consumed by DMA or a mixer at one time.
#ifndef SYNTHMARK_FRAMES_PER_BURST
#define SYNTHMARK_FRAMES_PER_BURST     192
#endif

#ifndef SYNTHMARK_SAMPLE_RATE
#define SYNTHMARK_SAMPLE_RATE          48000
#endif

#ifndef SYNTHMARK_TARGET_CPU_LOAD
// 0.5 = 50% target CPU utilization
#define SYNTHMARK_TARGET_CPU_LOAD      0.5
#endif

#ifndef SYNTHMARK_NUM_SECONDS
#define SYNTHMARK_NUM_SECONDS          10 // 10 seconds
#endif

// These should not be changed.
#define SYNTHMARK_MILLIS_PER_SECOND  ((int64_t)1000)
#define SYNTHMARK_MICROS_PER_SECOND  ((int64_t)1000000)
#define SYNTHMARK_NANOS_PER_MICROSECOND  ((int64_t)1000)
#define SYNTHMARK_NANOS_PER_SECOND   ((int64_t)1000000000)

typedef float synth_float_t;

/**
 * A fractional amplitude corresponding to exactly -96 dB.
 * amplitude = pow(10.0, db/20.0)
 */
#define SYNTHMARK_DB96    (1.0 / 63095.73444801943)
/** A fraction that is approximately -90.3 dB. Defined as 1 bit of an S16. */
#define SYNTHMARK_DB90    (1.0 / (1 << 15))

#endif // SYNTHMARK_SYNTHMARK_H


text:
{% extends "base.html" %}

{% load mezzanine_tags static blog_tags accounts_tags %}

{% block meta_title %}My Health Peace of Mind{% endblock %}

{% block main %}
    {# Begin Maintenance Warning #}
    {% with page.get_content_model as cm %}
        {% if cm.can_show_message %}
            {% if cm.message_type|lower == 'warning' %}

            {% else %}

            {% endif %}
            <button type="button" class="close" data-dismiss="alert">x</button>
            {{ cm.content|striptags }}.

        {% endif %}
    {% endwith %}
    {# End Maintenance Warning #}
    {% if user.is_anonymous %}

Join Today to Express Your Wishes

                            {{ settings.XDCI_SITE_NAME_LONG }} gives you a place to plan and communicate important information about your future healthcare wishes to those closest to you and those who provide medical care to you.

                        Sign up now

    {% endif %}

Join Today To Start Sharing

Share your health information profile and future healthcare wishes
                            as a gift to your family and for your peace of mind.

Complete Your Advance Directives

Completing your advance directives (healthcare power of attorney and
                            living will documents) are important steps to having peace of mind.

Connect with Others

Connect your health information, in part or in full, with the people you choose:
                            family, physicians, attorneys and friends.

Join Today for Your Peace of Mind

My Health Peace Of Mind enables your healthcare planning, in your home,
                            with your family, and for your peace of mind.

            Previous

            Next

How it works

1

Create

                            Create your profile to start your
                                                                              journey toward peace of mind.

2

Describe and Plan

                            Describe and plan for your future health care
                                                                              needs to gain peace of mind.

3

Upload

                            Upload your healthcare directives
                                                                              to gain peace of mind.

4

Share

                            Share your information with people you
                                                                              trust to gain peace of mind.

MyHPOM Helps You To:

	Share your health information
                                                                                with those who care about you
                                                                                and those who care for you.

	Manage who has access
                                                                                to your information.

	Access, share and discover
                                                                                information relevant to you.

	Make your advance directives
                                                                                available wherever you go, 24/7.

	Improve the chances that your
                                                                                healthcare wishes will be honored.

	Get peace of mind knowing that you
                                                                                have taken the necessary steps.

                        {# Image credit: Android Design. Used under Creative Commons license. http://developer.android.com/design/style/devices-displays.html #}

Available on all your devices

{% endblock %}


text:
//
//  MDAStorySummary.h
//
//
//  Created by Karl Monaghan on 07/02/2014.
//  Copyright (c) 2014 Crayons and Brown Paper. All rights reserved.
//

#import "MDASummary.h"

/**
 *  A summary of a Marvel story.
 */
@interface MDAStorySummary : MDASummary

@property (nonatomic, strong) NSString *role;
/**
 *  The type of the story (interior or cover).
 */
@property (nonatomic, strong) NSString *type;

@end


text:
using System.Data;
using System.Globalization;

namespace Quartz.Util
{
    /// <summary>
    /// Extension methods for simplified <see cref="IDataReader" /> access.
    /// </summary>
    public static class DataReaderExtensions
    {
        /// <summary>
        /// Returns string from given column name, or null if DbNull.
        /// </summary>
        public static string? GetString(this IDataReader reader, string columnName)
        {
            object columnValue = reader[columnName];
            if (columnValue == DBNull.Value)
            {
                return null;
            }
            return (string)columnValue;
        }

        /// <summary>
        /// Returns int from given column name.
        /// </summary>
        public static int GetInt32(this IDataReader reader, string columnName)
        {
            object columnValue = reader[columnName];
            return Convert.ToInt32(columnValue, CultureInfo.InvariantCulture);
        }

        /// <summary>
        /// Returns long from given column name.
        /// </summary>
        public static long GetInt64(this IDataReader reader, string columnName)
        {
            object columnValue = reader[columnName];
            return Convert.ToInt64(columnValue, CultureInfo.InvariantCulture);
        }

        /// <summary>
        /// Returns long from given column name, or null if DbNull.
        /// </summary>
        public static long? GetNullableInt64(this IDataReader reader, string columnName)
        {
            object columnValue = reader[columnName];
            if (columnValue == DBNull.Value)
            {
                return null;
            }
            return Convert.ToInt64(columnValue, CultureInfo.InvariantCulture);
        }

        /// <summary>
        /// Returns decimal from given column name.
        /// </summary>
        public static decimal GetDecimal(this IDataReader reader, string columnName)
        {
            object columnValue = reader[columnName];
            return Convert.ToDecimal(columnValue,CultureInfo.InvariantCulture);
        }
    }
}


text:
dojo.registerModulePath("plugins","../../plugins");
dojo.registerModulePath("t","../../t/unit");

// DOJO TEST MODULES
dojo.require("doh.runner");
//dojo.require("dojoc.util.loader");

// Agua TEST MODULES
dojo.require("t.doh.util");

// TESTED MODULES
dojo.require("plugins.core.Agua")

// GLOBAL Agua VARIABLE
var Agua;
var home;

dojo.addOnLoad(function(){

// SET UP
Agua = new plugins.core.Agua( {
	cgiUrl 		:	dojo.moduleUrl("plugins", "../../../cgi-bin/agua/")
	, database	: 	"aguatest"
	, dataUrl	: 	"test.json"
});
Agua.cookie('username', 'testuser');
Agua.cookie('sessionid', '9999999999.9999.999');
Agua.loadPlugins([
	"plugins.data.Controller",
	"plugins.files.Controller",
	"plugins.home.Controller"
]);

// REMOVE EXISTING home TAB
var oldHome = Agua.controllers["home"].tabPanes[0];
Agua.tabs.removeChild(oldHome.mainTab);

// CREATE NEW home TAB
home = Agua.controllers["home"].createTab();

// REMOVE BOTTOM PANE
dojo.destroy(home.bottomPane);

// SET PROGRESS PANE
var progressPane = home.progressPane;
console.dir({progressPane:progressPane});

// SET PACKAGE COMBO
var username = Agua.cookie('username');
console.dir({username:username});
Agua.data.packages[0].username = username;
home.setPackageCombo();

// RUN TESTS
doh.register("t.plugins.admin.hub.test", [
{
	name	: 	"progressPane-show",
	timeout	:	30000,
	runTest	: function(){

		// SET DEFERRED OBJECT
		var deferred = new doh.Deferred();

		// SHOW PROGRESS PANE
		setTimeout(function() {
			try {
				console.log("runTests    DOING progressPane.show()");

				var version = Agua.data.packages[0].version;
				console.log("runTests    version: " + version);
				home.progressPane.set('title', "Agua " + version + " Upgrade Log");
				home.progressPane.set('content', "TESTING upgrade log progress pane");

				console.log("runTests    DOING home.progressPane.show()");
				home.progressPane.show();
				home.resizeProgress();

				var visibility = dojo.style(progressPane.domNode, "visibility");
				console.log("runTests    visibility: " + visibility);
				var display = dojo.style(progressPane.domNode, "display");
				console.log("runTests    display: " + display);

				doh.assertTrue(visibility == "visible");
				doh.assertTrue(display == "block");

				deferred.callback(true);

			} catch(e) {
			  deferred.errback(e);
			}
		}, 1000);

		return deferred;
	}
}

,

{

	name	: 	"progressPane-minimize",
	timeout	:	30000,

	runTest	: function(){

		// SET DEFERRED OBJECT
		var deferred = new doh.Deferred();

		console.log("runTests    DOING home.progressPane.minimize()");
		home.progressPane.minimize();

		// MINIMIZE PROGRESS PANE
		setTimeout(function() {
			try {
				var visibility = dojo.style(home.progressPane.domNode, "visibility");
				console.log("runTests    home.progressPane.domNode.visibility: " + visibility);
				var display = dojo.style(home.progressPane.domNode, "display");
				console.log("runTests    home.progressPane.domNode.display: " + display);

				doh.assertTrue(visibility == "hidden");
				doh.assertTrue(display == "none");

				deferred.callback(true);

			} catch(e) {
			  deferred.errback(e);
			}
		}, 5000);

		return deferred;
	}
}

,

{

	name	: 	"progressPane-dockNode",
	timeout	:	30000,

	runTest	: function(){

		// SET DEFERRED OBJECT
		var deferred = new doh.Deferred();

		// HIDE PROGRESS PANE
		setTimeout(function() {
			try {
				var search = ".homeDockNode";
				console.log("runTests    DOING dojo.query(" + search + ")");
				var dockNode = dojo.query(search)[0];
				//console.log("runTests    dockNode:");
				//console.dir({dockNode:dockNode});

				var visibility = dojo.style(dockNode, "visibility");
				console.log("runTests    dockNode.visibility: " + visibility);
				var display = dojo.style(dockNode, "display");
				console.log("runTests    dockNode.display: " + display);

				doh.assertTrue(visibility == "visible");
				doh.assertTrue(display == "list-item");

				deferred.callback(true);

			} catch(e) {
			  deferred.errback(e);
			}
		}, 5000);

		return deferred;
	}
}

]);	// doh.register

//Execute D.O.H. in this remote file.
doh.run();

});


text:
package bio.terra.app.configuration;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestClientBuilder;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ElasticSearchConfiguration {

  @Bean
  public RestHighLevelClient client(
      @Value("${elasticsearch.hostname}") String hostname,
      @Value("${elasticsearch.port}") int port) {
    RestClientBuilder builder = RestClient.builder(new HttpHost(hostname, port));
    return new RestHighLevelClient(builder);
  }
}


text:
BEGIN TRAN

INSERT
    Localization.Dictionary
    (
        LanguageId,
        EntryKey,
        Value
    )
VALUES

('en', 'message_LoginSuccess', 'Login Successful!'),
('en', 'message_PasswordMismatch', 'Passwords do not match!'),
('en', 'message_EmailInUse', 'Email is already in use!'),
('en', 'message_EmailIsRequired', 'Email is required!'),
('en', 'message_RegistrationSuccess', 'Registration Successful!'),
('en', 'message_AuthRequestNotRecognized', 'Couldn''t validate permissions. Please log in again.'),
('en', 'message_InsufficientPrivileges', 'You do not have sufficient privileges to perform this action.'),
('en', 'message_UserDeleted', 'User successfully deleted!'),
('en', 'message_UserNotFound', 'User not found!'),
('en', 'message_UpdateUserSuccess', 'User successfully updated!'),
('en', 'message_InvalidPassword', 'Invalid Password.'),

('es', 'message_LoginSuccess','Autenticacion Exitosa!'),
('es', 'message_PasswordMismatch', 'La contraseña no coincide.'),
('es', 'message_EmailInUse','Este correo se encuentra en uso.'),
('es', 'message_EmailIsRequired', 'El correo electrónico es requerido!'),
('es', 'message_RegistrationSuccess', 'Registracion exitosa!'),
('es', 'message_AuthRequestNotRecognized', 'No se pudieron validar los permisos. Por favor realize la autenticacion nuevamente.'),
('es', 'message_InsufficientPrivileges', 'No tiene suficientes privilegios para realizar esta operacion.'),
('es', 'message_UserDeleted', 'Usuario borrado exitosamente!'),
('es', 'message_UserNotFound', 'No se pudo encontrar el usuario!'),
('es', 'message_UpdateUserSuccess', 'Usuario actualizado exitosamente!'),
('es', 'message_InvalidPassword', 'Contra contraseña es invalida.'),

('fr', 'message_LoginSuccess', 'Connexion Réussie!'),
('fr', 'message_PasswordMismatch', 'Les mots de passe ne correspondent pas!'),
('fr', 'message_EmailInUse', 'Cet email est déjà utilisé!'),
('fr', 'message_RegistrationSuccess', 'Inscription Réussi!'),

('de', 'message_LoginSuccess', 'Anmeldung erfolgreich!'),
('de', 'message_PasswordMismatch', 'Passwoerter stimmen nicht ueberein!'),
('de', 'message_EmailInUse', 'E-mail ist bereits Einsatz!'),
('de', 'message_RegistrationSuccess', 'Registrierung erfolgreich!')

COMMIT
--ROLLBACK


text:
module Excon

  VERSION = '0.32.1'

  CR_NL = "\r\n"

  DEFAULT_CA_FILE = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "data", "cacert.pem"))

  DEFAULT_CHUNK_SIZE = 1048576 # 1 megabyte

  # avoid overwrite if somebody has redefined
  unless const_defined?(:CHUNK_SIZE)
    CHUNK_SIZE = DEFAULT_CHUNK_SIZE
  end

  DEFAULT_RETRY_LIMIT = 4

  FORCE_ENC = CR_NL.respond_to?(:force_encoding)

  HTTP_1_1 = " HTTP/1.1\r\n"

  HTTP_VERBS = %w{connect delete get head options patch post put trace}

  HTTPS = 'https'

  NO_ENTITY = [204, 205, 304].freeze

  REDACTED = 'REDACTED'

  UNIX = 'unix'

  USER_AGENT = 'excon/' << VERSION

  VALID_REQUEST_KEYS = [
    :body,
    :captures,
    :chunk_size,
    :debug_request,
    :debug_response,
    :expects,
    :headers,
    :idempotent,
    :instrumentor,
    :instrumentor_name,
    :method,
    :middlewares,
    :mock,
    :path,
    :persistent,
    :pipeline,
    :query,
    :read_timeout,
    :request_block,
    :response_block,
    :retries_remaining, # used internally
    :retry_limit,
    :write_timeout
  ]

  VALID_CONNECTION_KEYS = VALID_REQUEST_KEYS + [
    :ciphers,
    :client_key,
    :client_cert,
    :certificate,
    :certificate_path,
    :private_key,
    :private_key_path,
    :connect_timeout,
    :family,
    :host,
    :omit_default_port,
    :nonblock,
    :reuseaddr,
    :password,
    :port,
    :proxy,
    :scheme,
    :socket,
    :ssl_ca_file,
    :ssl_verify_peer,
    :ssl_version,
    :tcp_nodelay,
    :uri_parser,
    :user
  ]

  unless ::IO.const_defined?(:WaitReadable)
    class ::IO
      module WaitReadable; end
    end
  end

  unless ::IO.const_defined?(:WaitWritable)
    class ::IO
      module WaitWritable; end
    end
  end

end


text:
<!doctype html>

<meta charset="utf-8">

<title>Internet Explorer Voodoo Doll / Puppe - mediavrog</title>

<meta property="og:locale" content="en-US">
<meta property="og:site_name" content="mediavrog">
<meta property="og:title" content="Internet Explorer Voodoo Doll / Puppe">

  <link rel="canonical" href="https://mediavrog.net/blog/2007/09/28/browser/internetexplorer/internet-explorer-voodoo-doll-puppe">
  <meta property="og:url" content="https://mediavrog.net/blog/2007/09/28/browser/internetexplorer/internet-explorer-voodoo-doll-puppe">

  <meta property="og:description" content="  Es geht mal wieder um den Internet Explorer seine immensen Qualen, welche er uns auferlegt.Durch mangelhafte Konformität bei der Implementierung von CSS hat er bestimmt jedem von uns schon einmal ans Beingepinkelt. Mit der IE Voodoo Doll wird jetzt abgerechnet!">

  <meta property="og:type" content="article">
  <meta property="article:published_time" content="2007-09-28T11:09:24+09:00">

    <link rel="next" href="https://mediavrog.net/blog/2007/10/17/xhtml/javascript-mit-cdata-korrekt-in-xhtml-einbinden" title="Javascript mit CDATA korrekt in XHTML einbinden">

    <link rel="prev" href="https://mediavrog.net/blog/2007/08/27/innovation/content-aware-image-resizing-inhaltsabhangiges-skalieren-von-bildern" title="Content aware image resizing / Inhaltsabhängiges Skalieren von Bildern">

<link href="https://mediavrog.net/feed.xml" type="application/atom+xml" rel="alternate" title="mediavrog Feed">

<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="stylesheet" href="https://mediavrog.net/assets/css/main.css">

<meta http-equiv="cleartype" content="on">

<link rel="webmention" href="https://webmention.io/www.mediavrog.net/webmention" />

        <button>

</button>

mediavrog

About

Blog

Projects

Maik Buchmeyer

Full stack & mobile engineer. CTO at AIR at en-japan

    <button class="btn btn--inverse">Follow</button>

 Tokyo

 Twitter

 Github

    <meta itemprop="headline" content="Internet Explorer Voodoo Doll / Puppe">
    <meta itemprop="description" content="  Es geht mal wieder um den Internet Explorer seine immensen Qualen, welche er uns auferlegt.Durch mangelhafte Konformität bei der Implementierung von CSS hat er bestimmt jedem von uns schon einmal ans Beingepinkelt. Mit der IE Voodoo Doll wird jetzt abgerechnet!">
    <meta itemprop="datePublished" content="September 28, 2007">

Internet Explorer Voodoo Doll / Puppe

	  less than 1 minute read

Es geht mal wieder um den Internet Explorer seine immensen Qualen, welche er uns auferlegt.
Durch mangelhafte Konformität bei der Implementierung von CSS hat er bestimmt jedem von uns schon einmal ans Bein
gepinkelt. Mit der IE Voodoo Doll wird jetzt abgerechnet!

Mit der IE-Voodoo Puppe – handgefertigt! kann sich der nähbegabte Webentwickler rächen:

Als Anleitung sei ihm dieses Tutorial von chisa ans Herz gelegt, welches in unbekümmerter Nüchternheit die Erstellung einer solchen Puppe näherbringt. Ich habe meine schon gebastelt und mich auch schon an ihr ausgelassen >:)

Verwendete Materialien:

Bastelfilz (natürlich in blau; für 43x100cm ca. 3,50€)

1 scharfe Schere

blaue und weiße Baumwollfäden (je 1,80€)

Hochbausch Füllwatte (50g für 0,9 € – reicht bestimmt für 100 IE Voodoo Dolls)

1 Nadelset (war halt mein erstes Nähprojekt :) )

Das Resultat

(leider nur ein Handybild, aber man erkennt schön dieses jämmerliche Winseln)

JEDER WEBENTWICKLER SOLLTE EINE HABEN!

     Tags:

      hobby,

      voodoo

     Categories:

      internetexplorer

 Published on  <time datetime="2007-09-28T11:09:24+09:00">September 28, 2007</time>

   Found a mistake?

    Please fix it
    Thanks :)

Share on

   Twitter

   Facebook

   Google+

   LinkedIn

      Previous

      Next

Comments

  Leave a comment
  —
  Edit this page on github and issue a PR for your comment please.
  HowTo?

You May Also Enjoy

Headhunted - Not

	  2 minute read

When to be careful to not just pass on your data to any recruiter.

Read-only for bootstrap datepicker calendar popup

	  less than 1 minute read

Small js to simulate read only in the calendar popup.

kompare - ein Widget zum einfachen vergleichen von Preisen released

	  less than 1 minute read

Vor ein paar Tagen ging das kompare Widget nun endlich im [Play Store][1] live.

kompare - Android widget for price comparison released

	  less than 1 minute read

The kompare price comparison widget was released to the Play Store just a few days ago.

Follow:

 GitHub

 Feed

© 2018 Maik Buchmeyer. Powered by Jekyll & Minimal Mistakes.


text:
var should = require('should');
var lib = require('..');

describe('Clear and Load', function() {
    it('should work', function() {
        true.should.be.ok;
    });
});