answer
stringlengths
15
1.25M
package microsoft.exchange.webservices.data; /** * Defines the scope of FindFolders operations. */ public enum FolderTraversal { // Only direct sub-folders are retrieved. /** The Shallow. */ Shallow, // The entire hierarchy of sub-folders is retrieved. /** The Deep. */ Deep, // Only soft deleted folders are retrieved. /** The Soft deleted. */ SoftDeleted }
<?php namespace Ongoing; class FileSearchValues { /** * @var int $GoodsOwnerId */ protected $GoodsOwnerId = null; /** * @var string $GoodsOwnerCode */ protected $GoodsOwnerCode = null; /** * @var string $ArticleNo */ protected $ArticleNo = null; /** * @var string $ArticleName */ protected $ArticleName = null; /** * @var string $OrderNumber */ protected $OrderNumber = null; /** * @var int $OrderId */ protected $OrderId = null; /** * @var int $ArticleSystemId */ protected $ArticleSystemId = null; public function __construct() { } /** * @return int */ public function getGoodsOwnerId() { return $this->GoodsOwnerId; } /** * @param int $GoodsOwnerId * @return \Ongoing\FileSearchValues */ public function setGoodsOwnerId($GoodsOwnerId) { $this->GoodsOwnerId = $GoodsOwnerId; return $this; } /** * @return string */ public function getGoodsOwnerCode() { return $this->GoodsOwnerCode; } /** * @param string $GoodsOwnerCode * @return \Ongoing\FileSearchValues */ public function setGoodsOwnerCode($GoodsOwnerCode) { $this->GoodsOwnerCode = $GoodsOwnerCode; return $this; } /** * @return string */ public function getArticleNo() { return $this->ArticleNo; } /** * @param string $ArticleNo * @return \Ongoing\FileSearchValues */ public function setArticleNo($ArticleNo) { $this->ArticleNo = $ArticleNo; return $this; } /** * @return string */ public function getArticleName() { return $this->ArticleName; } /** * @param string $ArticleName * @return \Ongoing\FileSearchValues */ public function setArticleName($ArticleName) { $this->ArticleName = $ArticleName; return $this; } /** * @return string */ public function getOrderNumber() { return $this->OrderNumber; } /** * @param string $OrderNumber * @return \Ongoing\FileSearchValues */ public function setOrderNumber($OrderNumber) { $this->OrderNumber = $OrderNumber; return $this; } /** * @return int */ public function getOrderId() { return $this->OrderId; } /** * @param int $OrderId * @return \Ongoing\FileSearchValues */ public function setOrderId($OrderId) { $this->OrderId = $OrderId; return $this; } /** * @return int */ public function getArticleSystemId() { return $this->ArticleSystemId; } /** * @param int $ArticleSystemId * @return \Ongoing\FileSearchValues */ public function setArticleSystemId($ArticleSystemId) { $this->ArticleSystemId = $ArticleSystemId; return $this; } }
package uk.co.cogitolearning.cogpar.functions; import uk.co.cogitolearning.cogpar.Complex; /** * * @author kaloch */ public class DEtaFunction extends <API key> { public DEtaFunction() { super(); } @Override public Complex evaluate(Complex argument) { return argument.dirichlet_eta(); } }
'use strict' let fs = require('fs') let path = require('path') let _ = require('isa.js') let Structurer = require('./generator/Structurer') let Injector = require('./generator/Injector') global.done = function ( message ) { console.log( message || 'Done.' ) process.exit( -1 ) } global.forceExit = function ( err ) { console.error( _.isString(err) ? new Error(err) : err ) process.exit( -1 ) } global.printUsage = function printUsage () { let content = fs.readFileSync( path.join(__dirname, 'usage.list' ), {encoding: 'utf8'}) global.forceExit( content ) } function createStructure ( structure, name, options, commands ) { if ( structure === 'project' ) { return Structurer.createProject( name, options ) } else if ( structure === 'entity' ) { return Structurer.createEntity( name, options ) } else if ( structure === 'service' ) { if ( commands.length < 4 ) { return global.printUsage() } return Structurer.createService( name, commands[3], options ) } global.printUsage() } function createCode ( codeType, options, commands ) { if ( codeType === 'test' ) { if ( options.mocha ) return Injector.createMochaCode( options ) } global.printUsage() } let optionsAccepted = [ 'force', 'gulp', 'mocha', 'folder', 'amqp', 'mqtt', 'sqs', 'rest', 'websocket', 'projectFolder', 'entityName', 'appName', 'servicePort', 'web' ] function readCommand ( commands, command ) { for ( let i = 0; i < commands.length; ++i ) { if ( commands[i] === command ) return true if ( commands[i].startsWith( command + '=' ) ) return commands[i].substring( commands[i].indexOf('=') + 1 ) } return false } function collectOptions ( commands ) { let res = {} optionsAccepted.forEach(function ( option ) { res[ option ] = readCommand(commands, '--' + option) }) return res } module.exports = { execute: function ( ) { let commands = arguments if ( commands.length < 3 ) { return global.printUsage() } let options = collectOptions( commands ) switch ( commands[0] ) { case 'create': return createStructure( commands[1], commands[2], options, commands ) case 'generate': return createCode( commands[1], options, commands ) default: return global.printUsage() } } }
class SessionsController < <API key> def new redirect_to profile_path(@current_user) if signed_in? end def create user = User.find_by_username(params[:session][:user_name]) if user && user.authenticate(params[:session][:password]) login(user) redirect_to profile_path(user), notice: 'Oturum Açıldı' else flash[:error] = "Kullanıcı adı yada parola hatalı." redirect_to login_path end end def destroy session[:user_id] = nil redirect_to login_path, notice: "Oturumunuz Sonlandırıldı"; end end
/* ** ** datetime.js ** ** Yahya Ayash Luqman ** yaluqman@gmail.com ** */ // install dependencies var React = require('react'); // nice date var niceDate = function( date ) { if ( !date ) { return ""; } var x = new Date( date ); return x.toDateString(); } // the date of each post module.exports = React.createClass( { render : function () { return ( <span className='datetime'>{niceDate(this.props.dt)}</span> ); } } );
<?php defined("_VALID_ACCESS") || die('Direct access forbidden'); class <API key> extends ModuleCommon { public static function applet_caption() { return __('Messenger alarms'); } public static function applet_info() { return __('Displays last alarms'); } public static function <API key>($m) { $ret = DB::Execute('SELECT id FROM <API key> WHERE parent_module=%s',array($m)); while($row = $ret->FetchRow()) DB::Execute('DELETE FROM <API key> WHERE message_id=%d',array($row['id'])); DB::Execute('DELETE FROM <API key> WHERE parent_module=%s',array($m)); } public static function delete_by_id($id) { $mid = md5($id); $ret = DB::Execute('SELECT id FROM <API key> WHERE page_id=\''.$mid.'\''); while($row = $ret->FetchRow()) DB::Execute('DELETE FROM <API key> WHERE message_id=%d',array($row['id'])); DB::Execute('DELETE FROM <API key> WHERE page_id=\''.$mid.'\''); } public static function get_alarms($id) { return DB::GetAssoc('SELECT id, alert_on FROM <API key> WHERE page_id=%s', array(md5($id))); } public static function update_time($id, $time) { DB::Execute('UPDATE <API key> SET alert_on=%T WHERE id=%s', array($time, $id)); } public static function add($id,$parent_type,$message,$alert_on, $callback_method,$callback_args=null,$users=null) { $callback_args = isset($callback_args)?((is_array($callback_args))?$callback_args:array($callback_args)):array(); if(!isset($users)) $users = Acl::get_user(); DB::Execute('INSERT INTO <API key>(page_id,parent_module,message,callback_method,callback_args,created_on,created_by,alert_on) VALUES(%s,%s,%s,%s,%s,%T,%d,%T)',array(md5($id),$parent_type,$message,serialize($callback_method),serialize($callback_args),time(),Acl::get_user(),$alert_on)); $id = DB::Insert_ID('<API key>','id'); if(is_array($users)) { foreach($users as $k) { if(is_numeric($k) && (<API key>::get('Utils_Messenger','allow_other',$k) || Acl::get_user()==$k)) DB::Execute('INSERT INTO <API key>(message_id,user_login_id) VALUES (%d,%d)',array($id,$k)); } } elseif(is_numeric($users)) DB::Execute('INSERT INTO <API key>(message_id,user_login_id) VALUES (%d,%d)',array($id,$users)); } public static function notification() { $arr = DB::GetAll('SELECT m.* FROM <API key> m INNER JOIN <API key> u ON u.message_id=m.id WHERE u.user_login_id=%d AND u.done=0 AND m.alert_on<%T',array(Acl::get_user(),time())); $ret = array(); $tray = array(); foreach($arr as $row) { ob_start(); $m = <API key>(unserialize($row['callback_method']),unserialize($row['callback_args'])); ob_clean(); $ret['messenger_'.$row['id']] = __('Alert on: %s',array(<API key>::time2reg($row['alert_on'])))."<br>".str_replace("\n",'<br>',$m).($row['message']?"<br>".__('Alarm comment: %s',array($row['message'])):''); $tray['messenger_'.$row['id']] = array('title'=>__('Alert on %s: %s', array(<API key>::time2reg($row['alert_on']), $row['message'])), 'body'=>$m); } return array('alerts'=>$ret, 'tray'=>$tray); } public static function user_settings(){ return array(__('Alerts')=>array( array('name'=>'mail','label'=>__('E-mail'),'type'=>'text','default'=>'', 'rule'=>array('type'=>'email', 'message'=>__('Invalid e-mail address'))), array('name'=>'always_follow_me','label'=>__('Always follow me'),'type'=>'bool','default'=>0, 'rule'=>array('type'=>'callback', 'func'=>array('<API key>','check_follow'), 'message'=>__('E-mail required if you want to be followed.'), 'param'=>'__form__')), array('name'=>'allow_other','label'=>__('Allow other users to set up alerts for me'),'type'=>'bool','default'=>0) )); } public static function check_follow($v, $f) { if(!$v) return true; return $f->exportValue('<API key>')!=''; } public static function cron() { return array('cron2'=>1); //run every 1 minute } public static function cron2() { $interval = DB::is_postgresql() ? DB::qstr('4 minute') : '4 minute'; $arr = DB::GetAll('SELECT m.*,u.* FROM <API key> m INNER JOIN <API key> u ON u.message_id=m.id WHERE u.follow=0 AND m.alert_on+INTERVAL ' . $interval . ' <%T',array(time())); foreach($arr as $row) { Acl::set_user($row['user_login_id']); $always_follow = <API key>::get('Utils_Messenger','always_follow_me'); if(!$always_follow && $row['done']) continue; ob_start(); $fret = <API key>(unserialize($row['callback_method']),unserialize($row['callback_args'])); ob_end_clean(); DB::Execute('UPDATE <API key> SET follow=1 WHERE message_id=%d AND user_login_id=%d',array($row['id'],$row['user_login_id'])); $mail = <API key>::get('Utils_Messenger','mail'); if($mail) { $msg = __('Alert on: %s',array(<API key>::time2reg($row['alert_on'],2)))."\n".$fret."\n".($row['message']?__('Alarm comment: %s',array($row['message'])):''); Base_MailCommon::send($mail,'Alert!',$msg); } Acl::set_user(); } return ''; } public static function menu() { if (Base_AclCommon::check_permission('Messenger Alerts')) return array(_M('Messenger Alerts')=>array( '__function__'=>'browse')); return array(); } public static function turn_off($id) { DB::Execute('UPDATE <API key> SET done=1,done_on=%T WHERE user_login_id=%d AND message_id=%d',array(time(),Acl::get_user(),$id)); } } eval_js_once('utils_messenger_on = true; <API key> = function(){'. 'if(utils_messenger_on) new Ajax.Request(\'modules/Utils/Messenger/refresh.php\',{method:\'get\'});'. '};setInterval(\'<API key>()\',180000);<API key>()'); ?>
#!/usr/bin/env python # coding: utf-8 import sys import os import time import random import string import requests import json import re import stat import hashlib import subprocess #import sqlite3 from os.path import dirname import zbxtg_settings class Cache: def __init__(self, database): self.database = database def create_db(self, database): pass class TelegramAPI: tg_url_bot_general = "https://api.telegram.org/bot" def http_get(self, url): answer = requests.get(url, proxies=self.proxies) self.result = answer.json() self.ok_update() return self.result def __init__(self, key): self.debug = False self.key = key self.proxies = {} self.type = "private" # 'private' for private chats or 'group' for group chats self.markdown = False self.html = False self.<API key> = False self.<API key> = False self.reply_to_message_id = 0 self.tmp_dir = None self.tmp_uids = None self.location = {"latitude": None, "longitude": None} self.update_offset = 0 self.image_buttons = False self.result = None self.ok = None self.error = None self.<API key> = False def get_me(self): url = self.tg_url_bot_general + self.key + "/getMe" me = self.http_get(url) return me def get_updates(self): url = self.tg_url_bot_general + self.key + "/getUpdates" params = {"offset": self.update_offset} if self.debug: print_message(url) answer = requests.post(url, params=params, proxies=self.proxies) self.result = answer.json() if self.<API key>: print_message("Getting updated from file getUpdates.txt") self.result = json.loads("".join(file_read("getUpdates.txt"))) if self.debug: print_message("Content of /getUpdates:") print_message(json.dumps(self.result)) self.ok_update() return self.result def send_message(self, to, message): url = self.tg_url_bot_general + self.key + "/sendMessage" message = "\n".join(message) params = {"chat_id": to, "text": message, "<API key>": self.<API key>, "<API key>": self.<API key>} if self.reply_to_message_id: params["reply_to_message_id"] = self.reply_to_message_id if self.markdown or self.html: parse_mode = "HTML" if self.markdown: parse_mode = "Markdown" params["parse_mode"] = parse_mode if self.debug: print_message("Trying to /sendMessage:") print_message(url) print_message("post params: " + str(params)) answer = requests.post(url, params=params, proxies=self.proxies) if answer.status_code == 414: self.result = {"ok": False, "description": "414 URI Too Long"} else: self.result = answer.json() self.ok_update() return self.result def update_message(self, to, message_id, message): url = self.tg_url_bot_general + self.key + "/editMessageText" message = "\n".join(message) params = {"chat_id": to, "message_id": message_id, "text": message, "<API key>": self.<API key>, "<API key>": self.<API key>} if self.markdown or self.html: parse_mode = "HTML" if self.markdown: parse_mode = "Markdown" params["parse_mode"] = parse_mode if self.debug: print_message("Trying to /editMessageText:") print_message(url) print_message("post params: " + str(params)) answer = requests.post(url, params=params, proxies=self.proxies) self.result = answer.json() self.ok_update() return self.result def send_photo(self, to, message, path): url = self.tg_url_bot_general + self.key + "/sendPhoto" message = "\n".join(message) if self.image_buttons: reply_markup = json.dumps({"inline_keyboard": [[ {"text": "R", "callback_data": "graph_refresh"}, {"text": "1h", "callback_data": "graph_period_3600"}, {"text": "3h", "callback_data": "graph_period_10800"}, {"text": "6h", "callback_data": "graph_period_21600"}, {"text": "12h", "callback_data": "graph_period_43200"}, {"text": "24h", "callback_data": "graph_period_86400"}, ], ]}) else: reply_markup = json.dumps({}) params = {"chat_id": to, "caption": message, "<API key>": self.<API key>, "reply_markup": reply_markup} if self.reply_to_message_id: params["reply_to_message_id"] = self.reply_to_message_id files = {"photo": open(path, 'rb')} if self.debug: print_message("Trying to /sendPhoto:") print_message(url) print_message(params) print_message("files: " + str(files)) answer = requests.post(url, params=params, files=files, proxies=self.proxies) self.result = answer.json() self.ok_update() return self.result def send_txt(self, to, text, text_name=None): path = self.tmp_dir + "/" + "zbxtg_txt_" url = self.tg_url_bot_general + self.key + "/sendDocument" text = "\n".join(text) if not text_name: path += "".join(random.choice(string.ascii_lowercase + string.digits) for _ in range(10)) else: path += text_name path += ".txt" file_write(path, text) params = {"chat_id": to, "caption": path.split("/")[-1], "<API key>": self.<API key>} if self.reply_to_message_id: params["reply_to_message_id"] = self.reply_to_message_id files = {"document": open(path, 'rb')} if self.debug: print_message("Trying to /sendDocument:") print_message(url) print_message(params) print_message("files: " + str(files)) answer = requests.post(url, params=params, files=files, proxies=self.proxies) self.result = answer.json() self.ok_update() return self.result def get_uid(self, name): uid = 0 if self.debug: print_message("Getting uid from /getUpdates...") updates = self.get_updates() for m in updates["result"]: if "message" in m: chat = m["message"]["chat"] elif "edited_message" in m: chat = m["edited_message"]["chat"] else: continue if chat["type"] == self.type == "private": if "username" in chat: if chat["username"] == name: uid = chat["id"] if (chat["type"] == "group" or chat["type"] == "supergroup") and self.type == "group": if "title" in chat: if sys.version_info[0] < 3: if chat["title"] == name.decode("utf-8"): uid = chat["id"] else: if chat["title"] == name: uid = chat["id"] return uid def <API key>(self, to): if self.type == "private": print_message("User '{0}' needs to send some text bot in private".format(to)) if self.type == "group": print_message("You need start a conversation with your bot first in '{0}' group chat, type '/start@{1}'" .format(to, self.get_me()["result"]["username"])) def update_cache_uid(self, name, uid, message="Add new string to cache file"): cache_string = "{0};{1};{2}\n".format(name, self.type, str(uid).rstrip()) # FIXME if self.debug: print_message("{0}: {1}".format(message, cache_string)) with open(self.tmp_uids, "a") as cache_file_uids: cache_file_uids.write(cache_string) return True def get_uid_from_cache(self, name): if self.debug: print_message("Trying to read cached uid for {0}, {1}, from {2}".format(name, self.type, self.tmp_uids)) uid = 0 if os.path.isfile(self.tmp_uids): with open(self.tmp_uids, 'r') as cache_file_uids: cache_uids_old = cache_file_uids.readlines() for u in cache_uids_old: u_splitted = u.split(";") if name == u_splitted[0] and self.type == u_splitted[1]: uid = u_splitted[2] return uid def send_location(self, to, coordinates): url = self.tg_url_bot_general + self.key + "/sendLocation" params = {"chat_id": to, "<API key>": self.<API key>, "latitude": coordinates["latitude"], "longitude": coordinates["longitude"]} if self.reply_to_message_id: params["reply_to_message_id"] = self.reply_to_message_id if self.debug: print_message("Trying to /sendLocation:") print_message(url) print_message("post params: " + str(params)) answer = requests.post(url, params=params, proxies=self.proxies) self.result = answer.json() self.ok_update() return self.result def <API key>(self, callback_query_id, text=None): url = self.tg_url_bot_general + self.key + "/answerCallbackQuery" if not text: params = {"callback_query_id": callback_query_id} else: params = {"callback_query_id": callback_query_id, "text": text} answer = requests.post(url, params=params, proxies=self.proxies) self.result = answer.json() self.ok_update() return self.result def ok_update(self): self.ok = self.result["ok"] if self.ok: self.error = None else: self.error = self.result["description"] print_message(self.error) return True def markdown_fix(message, offset, emoji=False): offset = int(offset) if emoji: offset -= 2 message = "\n".join(message) message = message[:offset] + message[offset+1:] message = message.split("\n") return message class ZabbixWeb: def __init__(self, server, username, password): self.debug = False self.server = server self.username = username self.password = password self.proxies = {} self.verify = True self.cookie = None self.basic_auth_user = None self.basic_auth_pass = None self.tmp_dir = None def login(self): if not self.verify: requests.packages.urllib3.disable_warnings() data_api = {"name": self.username, "password": self.password, "enter": "Sign in"} answer = requests.post(self.server + "/", data=data_api, proxies=self.proxies, verify=self.verify, auth=requests.auth.HTTPBasicAuth(self.basic_auth_user, self.basic_auth_pass)) cookie = answer.cookies if len(answer.history) > 1 and answer.history[0].status_code == 302: print_message("probably the server in your config file has not full URL (for example " "'{0}' instead of '{1}')".format(self.server, self.server + "/zabbix")) if not cookie: print_message("authorization has failed, url: {0}".format(self.server + "/")) cookie = None self.cookie = cookie def graph_get(self, itemid, period, title, width, height, version=3): file_img = "{0}/{1}.png".format(self.tmp_dir, "".join(random.choice(string.ascii_letters) for e in range(10))) title = requests.utils.quote(title) colors = { 0: "00CC00", 1: "CC0000", 2: "0000CC", 3: "CCCC00", 4: "00CCCC", 5: "CC00CC", } drawtype = 5 if len(itemid) > 1: drawtype = 2 zbx_img_url_itemids = [] for i in range(0, len(itemid)): itemid_url = "&items[{0}][itemid]={1}&items[{0}][sortorder]={0}&" \ "items[{0}][drawtype]={3}&items[{0}][color]={2}".format(i, itemid[i], colors[i], drawtype) zbx_img_url_itemids.append(itemid_url) zbx_img_url = self.server + "/chart3.php?" if version < 4: zbx_img_url += "period={0}".format(period) else: zbx_img_url += "from=now-{0}&to=now".format(period) zbx_img_url += "&name={0}&width={1}&height={2}&graphtype=0&legend=1".format(title, width, height) zbx_img_url += "".join(zbx_img_url_itemids) if self.debug: print_message(zbx_img_url) answer = requests.get(zbx_img_url, cookies=self.cookie, proxies=self.proxies, verify=self.verify, auth=requests.auth.HTTPBasicAuth(self.basic_auth_user, self.basic_auth_pass)) status_code = answer.status_code if status_code == 404: print_message("can't get image from '{0}'".format(zbx_img_url)) return False res_img = answer.content file_bwrite(file_img, res_img) return file_img def api_test(self): headers = {'Content-type': 'application/json'} api_data = json.dumps({"jsonrpc": "2.0", "method": "user.login", "params": {"user": self.username, "password": self.password}, "id": 1}) api_url = self.server + "/api_jsonrpc.php" api = requests.post(api_url, data=api_data, proxies=self.proxies, headers=headers) return api.text def print_message(message): message = str(message) + "\n" filename = sys.argv[0].split("/")[-1] sys.stderr.write(filename + ": " + message) def list_cut(elements, symbols_limit): symbols_count = symbols_count_now = 0 elements_new = [] element_last_list = [] for e in elements: symbols_count_now = symbols_count + len(e) if symbols_count_now > symbols_limit: limit_idx = symbols_limit - symbols_count e_list = list(e) for idx, ee in enumerate(e_list): if idx < limit_idx: element_last_list.append(ee) else: break break else: symbols_count = symbols_count_now + 1 elements_new.append(e) if symbols_count_now < symbols_limit: return elements, False else: element_last = "".join(element_last_list) elements_new.append(element_last) return elements_new, True class Maps: def __init__(self): self.key = None self.proxies = {} def <API key>(self, address): coordinates = {"latitude": 0, "longitude": 0} url_api = "https://maps.googleapis.com/maps/api/geocode/json?key={0}&address={1}".format(self.key, address) url = url_api answer = requests.get(url, proxies=self.proxies) result = answer.json() try: coordinates_dict = result["results"][0]["geometry"]["location"] except: if "error_message" in result: print_message("[" + result["status"] + "]: " + result["error_message"]) return coordinates coordinates = {"latitude": coordinates_dict["lat"], "longitude": coordinates_dict["lng"]} return coordinates def file_write(filename, text): with open(filename, "w") as fd: fd.write(str(text)) return True def file_bwrite(filename, data): with open(filename, "wb") as fd: fd.write(data) return True def file_read(filename): with open(filename, "r") as fd: text = fd.readlines() return text def file_append(filename, text): with open(filename, "a") as fd: fd.write(str(text)) return True def external_image_get(url, tmp_dir, timeout=6): image_hash = hashlib.md5() image_hash.update(url.encode()) file_img = tmp_dir + "/external_{0}.png".format(image_hash.hexdigest()) try: answer = requests.get(url, timeout=timeout, allow_redirects=True) except requests.exceptions.ReadTimeout as ex: print_message("Can't get external image from '{0}': timeout".format(url)) return False status_code = answer.status_code if status_code == 404: print_message("Can't get external image from '{0}': HTTP 404 error".format(url)) return False answer_image = answer.content file_bwrite(file_img, answer_image) return file_img def age2sec(age_str): age_sec = 0 age_regex = "([0-9]+d)?\s?([0-9]+h)?\s?([0-9]+m)?" age_pattern = re.compile(age_regex) intervals = age_pattern.match(age_str).groups() for i in intervals: if i: metric = i[-1] if metric == "d": age_sec += int(i[0:-1])*86400 if metric == "h": age_sec += int(i[0:-1])*3600 if metric == "m": age_sec += int(i[0:-1])*60 return age_sec def main(): tmp_dir = zbxtg_settings.zbx_tg_tmp_dir if tmp_dir == "/tmp/" + zbxtg_settings.zbx_tg_prefix: print_message("WARNING: it is strongly recommended to change `zbx_tg_tmp_dir` variable in config!!!") print_message("https://github.com/ableev/Zabbix-in-Telegram/wiki/<API key>") tmp_cookie = tmp_dir + "/cookie.py.txt" tmp_uids = tmp_dir + "/uids.txt" tmp_need_update = False # do we need to update cache file with uids or not rnd = random.randint(0, 999) ts = time.time() hash_ts = str(ts) + "." + str(rnd) log_file = "/dev/null" args = sys.argv settings = { "zbxtg_itemid": "0", # itemid for graph "zbxtg_title": None, # title for graph "zbxtg_image_period": None, "zbxtg_image_age": "3600", "zbxtg_image_width": "900", "zbxtg_image_height": "200", "tg_method_image": False, # if True - default send images, False - send text "tg_chat": False, # send message to chat or in private "tg_group": False, # send message to chat or in private "is_debug": False, "is_channel": False, "<API key>": False, "location": None, # address "lat": 0, # latitude "lon": 0, # longitude "is_single_message": False, "markdown": False, "html": False, "signature": None, "signature_disable": False, "graph_buttons": False, "extimg": None, "to": None, "to_group": None, "forked": False, } url_github = "https://github.com/ableev/Zabbix-in-Telegram" url_wiki_base = "https://github.com/ableev/Zabbix-in-Telegram/wiki" url_tg_group = "https://t.me/ZbxTg" url_tg_channel = "https://t.me/Zabbix_in_Telegram" <API key> = { "itemid": {"name": "zbxtg_itemid", "type": "list", "help": "script will attach a graph with that itemid (could be multiple)", "url": "Graphs"}, "title": {"name": "zbxtg_title", "type": "str", "help": "title for attached graph", "url": "Graphs"}, "graphs_period": {"name": "zbxtg_image_period", "type": "int", "help": "graph period", "url": "Graphs"}, "graphs_age": {"name": "zbxtg_image_age", "type": "str", "help": "graph period as age", "url": "Graphs"}, "graphs_width": {"name": "zbxtg_image_width", "type": "int", "help": "graph width", "url": "Graphs"}, "graphs_height": {"name": "zbxtg_image_height", "type": "int", "help": "graph height", "url": "Graphs"}, "graphs": {"name": "tg_method_image", "type": "bool", "help": "enables graph sending", "url": "Graphs"}, "chat": {"name": "tg_chat", "type": "bool", "help": "deprecated, don't use it, see 'group'", "url": "<API key>"}, "group": {"name": "tg_group", "type": "bool", "help": "sends message to a group", "url": "<API key>"}, "debug": {"name": "is_debug", "type": "bool", "help": "enables 'debug'", "url": "<API key>"}, "channel": {"name": "is_channel", "type": "bool", "help": "sends message to a channel", "url": "Channel-support"}, "<API key>": {"name": "<API key>", "type": "bool", "help": "disable web page preview", "url": "<API key>"}, "location": {"name": "location", "type": "str", "help": "address of location", "url": "Location"}, "lat": {"name": "lat", "type": "str", "help": "specify latitude (and lon too!)", "url": "Location"}, "lon": {"name": "lon", "type": "str", "help": "specify longitude (and lat too!)", "url": "Location"}, "single_message": {"name": "is_single_message", "type": "bool", "help": "do not split message and graph", "url": "<API key>"}, "markdown": {"name": "markdown", "type": "bool", "help": "markdown support", "url": "Markdown-and-HTML"}, "html": {"name": "html", "type": "bool", "help": "markdown support", "url": "Markdown-and-HTML"}, "signature": {"name": "signature", "type": "str", "help": "bot's signature", "url": "Bot-signature"}, "signature_disable": {"name": "signature_disable", "type": "bool", "help": "enables/disables bot's signature", "url": "Bot-signature"}, "graph_buttons": {"name": "graph_buttons", "type": "bool", "help": "activates buttons under graph, could be using in ZbxTgDaemon", "url": "Interactive-bot"}, "external_image": {"name": "extimg", "type": "str", "help": "should be url; attaches external image from different source", "url": "<API key>"}, "to": {"name": "to", "type": "str", "help": "rewrite zabbix username, use that instead of arguments", "url": "<API key>"}, "to_group": {"name": "to_group", "type": "str", "help": "rewrite zabbix username, use that instead of arguments", "url": "<API key>"}, "forked": {"name": "forked", "type": "bool", "help": "internal variable, do not use it. Ever.", "url": ""}, } if len(args) < 4: do_not_exit = False if "--features" in args: print(("List of available settings, see {0}/Settings\n---".format(url_wiki_base))) for sett, proprt in list(<API key>.items()): print(("{0}: {1}\ndoc: {2}/{3}\n--".format(sett, proprt["help"], url_wiki_base, proprt["url"]))) elif "--show-settings" in args: do_not_exit = True print_message("Settings: " + str(json.dumps(settings, indent=2))) else: print(("Hi. You should provide at least three arguments.\n" "zbxtg.py [TO] [SUBJECT] [BODY]\n\n" "1. Read main page and/or wiki: {0} + {1}\n" "2. Public Telegram group (discussion): {2}\n" "3. Public Telegram channel: {3}\n" "4. Try dev branch for test purposes (new features, etc): {0}/tree/dev" .format(url_github, url_wiki_base, url_tg_group, url_tg_channel))) if not do_not_exit: sys.exit(0) zbx_to = args[1] zbx_subject = args[2] zbx_body = args[3] tg = TelegramAPI(key=zbxtg_settings.tg_key) tg.tmp_dir = tmp_dir tg.tmp_uids = tmp_uids if zbxtg_settings.proxy_to_tg: proxy_to_tg = zbxtg_settings.proxy_to_tg if not proxy_to_tg.find("http") and not proxy_to_tg.find("socks"): proxy_to_tg = "https://" + proxy_to_tg tg.proxies = { "https": "{0}".format(proxy_to_tg), } zbx = ZabbixWeb(server=zbxtg_settings.zbx_server, username=zbxtg_settings.zbx_api_user, password=zbxtg_settings.zbx_api_pass) zbx.tmp_dir = tmp_dir # workaround for Zabbix 4.x zbx_version = 3 try: zbx_version = zbxtg_settings.zbx_server_version except: pass if zbxtg_settings.proxy_to_zbx: zbx.proxies = { "http": "http://{0}/".format(zbxtg_settings.proxy_to_zbx), "https": "https://{0}/".format(zbxtg_settings.proxy_to_zbx) } try: if zbxtg_settings.zbx_basic_auth: zbx.basic_auth_user = zbxtg_settings.zbx_basic_auth_user zbx.basic_auth_pass = zbxtg_settings.zbx_basic_auth_pass except: pass try: zbx_api_verify = zbxtg_settings.zbx_api_verify zbx.verify = zbx_api_verify except: pass map = Maps() # api key to resolve address to coordinates via google api try: if zbxtg_settings.google_maps_api_key: map.key = zbxtg_settings.google_maps_api_key if zbxtg_settings.proxy_to_tg: map.proxies = { "http": "http://{0}/".format(zbxtg_settings.proxy_to_tg), "https": "https://{0}/".format(zbxtg_settings.proxy_to_tg) } except: pass zbxtg_body = (zbx_subject + "\n" + zbx_body).splitlines() zbxtg_body_text = [] for line in zbxtg_body: if line.find(zbxtg_settings.zbx_tg_prefix) > -1: setting = re.split("[\s:=]+", line, maxsplit=1) key = setting[0].replace(zbxtg_settings.zbx_tg_prefix + ";", "") if key not in <API key>: if "--debug" in args: print_message("[ERROR] There is no '{0}' method, use --features to get help".format(key)) continue if <API key>[key]["type"] == "list": value = setting[1].split(",") elif len(setting) > 1 and len(setting[1]) > 0: value = setting[1] elif <API key>[key]["type"] == "bool": value = True else: value = settings[<API key>[key]["name"]] if key in <API key>: settings[<API key>[key]["name"]] = value else: zbxtg_body_text.append(line) tg_method_image = bool(settings["tg_method_image"]) tg_chat = bool(settings["tg_chat"]) tg_group = bool(settings["tg_group"]) is_debug = bool(settings["is_debug"]) is_channel = bool(settings["is_channel"]) <API key> = bool(settings["<API key>"]) is_single_message = bool(settings["is_single_message"]) if args[0].split("/")[-1] == "zbxtg_group.py" or "--group" in args or tg_chat or tg_group: tg_chat = True tg_group = True tg.type = "group" if "--debug" in args or is_debug: is_debug = True tg.debug = True zbx.debug = True print_message(tg.get_me()) print_message("Cache file with uids: " + tg.tmp_uids) log_file = tmp_dir + ".debug." + hash_ts + ".log" #print_message(log_file) if "--markdown" in args or settings["markdown"]: tg.markdown = True if "--html" in args or settings["html"]: tg.html = True if "--channel" in args or is_channel: tg.type = "channel" if "--<API key>" in args or <API key>: if is_debug: print_message("'<API key>' option has been enabled") tg.<API key> = True if "--graph_buttons" in args or settings["graph_buttons"]: tg.image_buttons = True if "--forked" in args: settings["forked"] = True if "--tg-key" in args: tg.key = args[args.index("--tg-key") + 1] <API key> = {"latitude": None, "longitude": None} if settings["lat"] > 0 and settings["lat"] > 0: <API key> = {"latitude": settings["lat"], "longitude": settings["lon"]} tg.location = <API key> else: if settings["location"]: <API key> = map.<API key>(settings["location"]) if <API key>: settings["lat"] = <API key>["latitude"] settings["lon"] = <API key>["longitude"] tg.location = <API key> if not os.path.isdir(tmp_dir): if is_debug: print_message("Tmp dir doesn't exist, creating new one...") try: os.makedirs(tmp_dir) open(tg.tmp_uids, "a").close() os.chmod(tmp_dir, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) os.chmod(tg.tmp_uids, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO) except: tmp_dir = "/tmp" if is_debug: print_message("Using {0} as a temporary dir".format(tmp_dir)) <API key> = False # issue75 to_types = ["to", "to_group", "to_channel"] <API key> = {"to": "private", "to_group": "group", "to_channel": "channel"} multiple_to = {} for i in to_types: multiple_to[i]=[] for t in to_types: try: if settings[t] and not settings["forked"]: # zbx_to = settings["to"] multiple_to[t] = re.split(",", settings[t]) except KeyError: pass # example: # {'to_channel': [], 'to': ['usr1', 'usr2', 'usr3'], 'to_group': []} if (sum([len(v) for k, v in list(multiple_to.items())])) == 1: # if we have only one recipient, we don't need fork to send message, just re-write "to" vaiable tmp_max = 0 for t in to_types: if len(multiple_to[t]) > tmp_max: tmp_max = len(multiple_to[t]) tg.type = <API key>[t] zbx_to = multiple_to[t][0] else: for t in to_types: for i in multiple_to[t]: args_new = list(args) args_new[1] = i if t == "to_group": args_new.append("--group") args_new.append("--forked") args_new.insert(0, sys.executable) if is_debug: print_message("Fork for custom recipient ({1}), new args: {0}".format(args_new, <API key>[t])) subprocess.call(args_new) <API key> = True if <API key>: sys.exit(0) uid = None if tg.type == "channel": uid = zbx_to if tg.type == "private": zbx_to = zbx_to.replace("@", "") if zbx_to.isdigit(): uid = zbx_to if not uid: uid = tg.get_uid_from_cache(zbx_to) if not uid: uid = tg.get_uid(zbx_to) if uid: tmp_need_update = True if not uid: tg.<API key>(zbx_to) sys.exit(1) if tmp_need_update: tg.update_cache_uid(zbx_to, str(uid).rstrip()) if is_debug: print_message("Telegram uid of {0} '{1}': {2}".format(tg.type, zbx_to, uid)) # add signature, turned off by default, you can turn it on in config try: if "--signature" in args or settings["signature"] or zbxtg_settings.zbx_tg_signature\ and not "--signature_disable" in args and not settings["signature_disable"]: if "--signature" in args: settings["signature"] = args[args.index("--signature") + 1] if not settings["signature"]: settings["signature"] = zbxtg_settings.zbx_server zbxtg_body_text.append(" zbxtg_body_text.append(settings["signature"]) except: pass # replace text with emojis <API key> = False if hasattr(zbxtg_settings, "emoji_map"): <API key> = [] for l in zbxtg_body_text: l_new = l for k, v in list(zbxtg_settings.emoji_map.items()): l_new = l_new.replace("{{" + k + "}}", v) <API key>.append(l_new) if len("".join(zbxtg_body_text)) - len("".join(<API key>)): <API key> = True zbxtg_body_text = <API key> if not is_single_message: tg.send_message(uid, zbxtg_body_text) if not tg.ok: if tg.error.find("migrated") > -1 and tg.error.find("supergroup") > -1: migrate_to_chat_id = tg.result["parameters"]["migrate_to_chat_id"] tg.update_cache_uid(zbx_to, migrate_to_chat_id, message="Group chat is migrated to supergroup, " "updating cache file") uid = migrate_to_chat_id tg.send_message(uid, zbxtg_body_text) # another case if markdown is enabled and we got parse error, try to remove "bad" symbols from message if tg.markdown and tg.error.find("Can't find end of the entity starting at byte offset") > -1: markdown_warning = "Original message has been fixed due to {0}. " \ "Please, fix the markdown, it's slowing down messages sending."\ .format(url_wiki_base + "/" + <API key>["markdown"]["url"]) <API key> = 0 while not tg.ok and <API key> != 3: offset = re.search("Can't find end of the entity starting at byte offset ([0-9]+)", tg.error).group(1) zbxtg_body_text = markdown_fix(zbxtg_body_text, offset, emoji=<API key>) + \ ["\n"] + [markdown_warning] tg.<API key> = True tg.send_message(uid, zbxtg_body_text) <API key> += 1 if tg.ok: print_message(markdown_warning) if is_debug: print((tg.result)) if settings["zbxtg_image_age"]: age_sec = age2sec(settings["zbxtg_image_age"]) if age_sec > 0 and age_sec > 3600: settings["zbxtg_image_period"] = age_sec message_id = 0 if tg_method_image: zbx.login() if not zbx.cookie: text_warn = "Login to Zabbix web UI has failed (web url, user or password are incorrect), "\ "unable to send graphs check manually" tg.send_message(uid, [text_warn]) print_message(text_warn) else: if not settings["extimg"]: zbxtg_file_img = zbx.graph_get(settings["zbxtg_itemid"], settings["zbxtg_image_period"], settings["zbxtg_title"], settings["zbxtg_image_width"], settings["zbxtg_image_height"], version=zbx_version) else: zbxtg_file_img = external_image_get(settings["extimg"], tmp_dir=zbx.tmp_dir) zbxtg_body_text, is_modified = list_cut(zbxtg_body_text, 200) if tg.ok: message_id = tg.result["result"]["message_id"] tg.reply_to_message_id = message_id if not zbxtg_file_img: text_warn = "Can't get graph image, check script manually, see logs, or disable graphs" tg.send_message(uid, [text_warn]) print_message(text_warn) else: if not is_single_message: zbxtg_body_text = "" else: if is_modified: text_warn = "probably you will see <API key> error, "\ "the message has been cut to 200 symbols, "\ "https://github.com/ableev/Zabbix-in-Telegram/issues/9"\ "#<API key>" print_message(text_warn) if not is_single_message: tg.<API key> = True tg.send_photo(uid, zbxtg_body_text, zbxtg_file_img) if tg.ok: settings["zbxtg_body_text"] = zbxtg_body_text os.remove(zbxtg_file_img) else: if tg.error.find("<API key>") > -1: if not tg.<API key>: tg.<API key> = True text_warn = "Zabbix user couldn't get graph (probably has no rights to get data from host), " \ "check script manually, see {0}".format(url_wiki_base + "/" + <API key>["graphs"]["url"]) tg.send_message(uid, [text_warn]) print_message(text_warn) if tg.location and <API key>["latitude"] and <API key>["longitude"]: tg.reply_to_message_id = message_id tg.<API key> = True tg.send_location(to=uid, coordinates=<API key>) if "--show-settings" in args: print_message("Settings: " + str(json.dumps(settings, indent=2))) if __name__ == "__main__": main()
layout: page title: "Sarah Deveau" comments: true description: "blanks" keywords: "Sarah Deveau,CU,Boulder" <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script> <!-- <script src="../assets/js/highcharts.js"></script> --> <style type="text/css">@font-face { font-family: "Bebas Neue"; src: url(https: } h1.Bebas { font-family: "Bebas Neue", Verdana, Tahoma; } </style> </head> # TEACHING INFORMATION **College**: College of Music **Classes taught**: EMUS 1237, MUSC 3176 # EMUS 1237: WOMEN'S CHORUS **Terms taught**: Fall 2007, Spring 2008, Fall 2008, Spring 2009 **Instructor rating**: 5.36 **Standard deviation in instructor rating**: 0.48 **Average grade** (4.0 scale): 3.86 **Standard deviation in grades** (4.0 scale): 0.05 **Average workload** (raw): 1.99 **Standard deviation in workload** (raw): 0.02 # MUSC 3176: CONDUCTING I **Terms taught**: Fall 2009 **Instructor rating**: 5.8 **Standard deviation in instructor rating**: 0.0 **Average grade** (4.0 scale): 3.74 **Standard deviation in grades** (4.0 scale): 0.0 **Average workload** (raw): 1.8 **Standard deviation in workload** (raw): 0.0
# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' #require 'rspec/autorun' require 'shoulda/matchers' require 'capybara/poltergeist' Capybara.register_driver :poltergeist_debug do |app| Capybara::Poltergeist::Driver.new(app, inspector: true, js_errors: false) end # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[Rails.root.join("spec/support*.rb")].each { |f| require f } # Checks for pending migrations before tests are run. # If you are not using ActiveRecord, you can remove this line. ActiveRecord::Migration.<API key>! RSpec.configure do |config| config.<API key> = false config.<API key> = false config.order = "random" config.mock_with :rspec do |c| c.syntax = [:should, :expect] end config.expect_with(:rspec) { |c| c.syntax = [:should, :expect] } config.<API key>! config.before(:suite) do # So it does not clean migrations DatabaseCleaner.clean_with(:truncation, { except: %w(schema_migrations) }) end config.before(:each) do DatabaseCleaner.strategy = :transaction end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end config.include FactoryGirl::Syntax::Methods config.include Request::JsonHelpers, type: :controller config.include AuthMacros, type: :controller end
#import "NSObject.h" @class NSArray, NSError, NSObject<OS_dispatch_queue>, NSString, _UIAsyncInvocation, <API key>; // Not exported @interface <API key> : NSObject { _Bool _useXPCObjects; id _handler; NSString *<API key>; NSString *<API key>; NSArray *<API key>; _Bool _legacyAppearance; id <API key>; id <<API key>> <API key>; _UIAsyncInvocation *<API key>; <API key> *_connectionInfo; NSObject<OS_dispatch_queue> *_queue; _Bool <API key>; NSError *_error; _UIAsyncInvocation *<API key>; } + (id)<API key>:(id)arg1 <API key>:(id)arg2 <API key>:(id)arg3 legacyAppearance:(_Bool)arg4 useXPCObjects:(_Bool)arg5 <API key>:(id)arg6 <API key>:(id)arg7 connectionHandler:(id)arg8; - (id)_cancelWithError:(id)arg1; - (void)<API key>; - (void)<API key>; - (void)<API key>; - (void)<API key>; - (void)<API key>; - (void)<API key>; - (void)<API key>; - (void)<API key>; - (void)<API key>:(id)arg1 orType:(id)arg2 <API key>:(id)arg3 successHandler:(id)arg4; - (void)<API key>:(id)arg1; - (void)dealloc; @end
package at.fhjoanneum.ippr.communicator.akka.actors.parse; import java.util.HashMap; import java.util.Map; import java.util.UUID; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Isolation; import org.springframework.transaction.annotation.Transactional; import akka.actor.AbstractActor; import akka.actor.ActorRef; import akka.japi.pf.ReceiveBuilder; import at.fhjoanneum.ippr.communicator.akka.config.SpringExtension; import at.fhjoanneum.ippr.communicator.akka.messages.events.<API key>; import at.fhjoanneum.ippr.communicator.akka.messages.parse.commands.<API key>; import at.fhjoanneum.ippr.communicator.akka.messages.parse.commands.ParseMessageCommand; import at.fhjoanneum.ippr.communicator.akka.messages.parse.commands.<API key>; import at.fhjoanneum.ippr.communicator.akka.messages.parse.events.<API key>; import at.fhjoanneum.ippr.communicator.akka.messages.parse.events.ParsedMessageEvent; @Transactional(isolation = Isolation.READ_COMMITTED) @Component("<API key>") @Scope("prototype") public class <API key> extends AbstractActor { private final static Logger LOG = LoggerFactory.getLogger(<API key>.class); @Autowired private SpringExtension springExtension; private final Map<String, ActorRef> actors = new HashMap<>(); public <API key>() { receive( ReceiveBuilder.match(<API key>.class, this::<API key>) .match(<API key>.class, this::<API key>) .match(ParsedMessageEvent.class, this::<API key>) .match(<API key>.class, this::<API key>) .matchAny(o -> LOG.warn("Unhandled message [{}]", o)).build()); } private void <API key>(final <API key> cmd) { final String id = UUID.randomUUID().toString(); final ActorRef actor = getContext().actorOf(springExtension.props("ParseMessageActor"), id); actor.tell(cmd, self()); actors.put(id, actor); } private void <API key>(final <API key> evt) { final ActorRef actor = actors.get(evt.getActorId()); actor.tell(new ParseMessageCommand(evt.getId()), self()); } private void <API key>(final ParsedMessageEvent evt) { final ActorRef actor = actors.get(evt.getActorId()); actor.tell(new <API key>(evt.getId()), self()); } private void <API key>(final <API key> evt) { final ActorRef actor = actors.get(evt.getActorId()); getContext().stop(actor); actors.remove(evt.getActorId()); } }
layout: post date: 2017-03-19 title: "Houghton Galina Long Sleeves Floor-Length Aline/Princess" category: Houghton tags: [Houghton,Aline/Princess ,V-neck,Floor-Length,Long Sleeves] Houghton Galina Just **$259.99** Long Sleeves Floor-Length Aline/Princess <table><tr><td>BRANDS</td><td>Houghton</td></tr><tr><td>Silhouette</td><td>Aline/Princess </td></tr><tr><td>Neckline</td><td>V-neck</td></tr><tr><td>Hemline/Train</td><td>Floor-Length</td></tr><tr><td>Sleeve</td><td>Long Sleeves</td></tr></table> <a href="https: <!-- break --><a href="https: <a href="https: Buy it: [https:
/** * @file * This file contains details of the model used by the system, * mainly by including other files. * * * */ #ifndef __MODEL_H #define __MODEL_H #include <stdint.h> #include "patch.h" A patch library, which is a bunch of patches class PatchLibrary { integer-keyed hash of patches IntKeyedHash<Patch> patches; public: PatchLibrary(){ printf("constructing patch library at %p\n",this); active = NULL; } create a new patch in the library Patch *create(uint32_t id){ Patch *p = patches.set(id); // will run a constructor p->library = this; return p; } get the patch associated with a given ID, or NULL Patch *get(uint32_t id){ if(patches.find(id)) return patches.getval(); else return NULL; } delete a patch - and deconstruct it, and its instances. bool del(uint32_t id){ return patches.del(id); } delete and deconstruct all patches and instances void clear(){ patches.clear(); } the currently running patch instance if any PatchInstance *active; attempt to instantiate this patch. If a patch is running running, destroy the previous instance. void instantiateAsActive(uint32_t id); run any active patch within this library - the actual "do something" method! void run(){ if(active) active->run(); } read a load of server commands from a file using a controller with a dummy Responder instead of a real server. void readFile(const char *fn); }; #endif /* __MODEL_H */
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <title>Joshua 20 (KJV-VN)</title> <link href="../../../build/mobile.css" rel="stylesheet" /> <script src="../../../build/mobile.js"></script> </head> <body dir="ltr" class="section-document"> <div class="header"><div class="nav"> <a class="name" href="JS.html">KJV-Vietnamese Version</a><a class="location" href="JS.html">Joshua 20</a><a class="prev" href="JS19.html">&lt;</a> <a class="home" href="index.html">=</a> <a class="next" href="JS21.html">&gt;</a> </div></div> <div class="section chapter JS JS20 vn_kjv eng " dir="ltr" lang="en" data-id="JS20" data-nextid="JS21" data-previd="JS19"> <div class="c">20</div> <div class="p"> <span class="v-num v-1">1&nbsp;</span><span class="v JS20_1" data-id="JS20_1"><l s="H3068">Đức <span class="yhwh">Chúa Trời</span></l> <l s="H1696" m="strongMorph:TH8762">also spake</l> <l s="H3091">unto Giô-suê</l>, <l s="H559" m="strongMorph:TH8800">saying</l>,</span> <span class="v-num v-2">2&nbsp;</span><span class="v JS20_2" data-id="JS20_2"><l s="H1696" m="strongMorph:TH8761">Speak</l> <l s="H1121">to the children</l> <l s="H3478">của Y-sơ-ra-ên</l>, <l s="H559" m="strongMorph:TH8800">saying</l>, <l s="H5414" m="strongMorph:TH8798">Appoint out</l> <l s="H5892">for you cities</l> <l s="H4733">của refuge</l>, <l s="H1696" m="strongMorph:TH8765">whereof I spake</l> <l s="H3027">unto you by the hand</l> <l s="H4872">của Môi-se</l>:</span> <span class="v-num v-3">3&nbsp;</span><span class="v JS20_3" data-id="JS20_3"><l s="H7523" m="strongMorph:TH8802">That the slayer</l> <l s="H5221" m="strongMorph:TH8688">that killeth</l> <span class="add">any</span> <l s="H5315">person</l> <l s="H7684">unawares</l> <span class="add">và</span> <l s="H1847">unwittingly</l> <l s="H5127" m="strongMorph:TH8800">may flee</l> <l s="H4733">thither: và they shall be your refuge</l> <l s="H1350" m="strongMorph:TH8802">from the avenger</l> <l s="H1818">của blood</l>.</span> <span class="v-num v-4">4&nbsp;</span><span class="v JS20_4" data-id="JS20_4"><l s="H5127" m="strongMorph:TH8804">và when he that doth flee</l> <l s="H259">unto one</l> <l s="H5892">của those cities</l> <l s="H5975" m="strongMorph:TH8804">shall stand</l> <l s="H6607">at the entering</l> <l s="H8179">của the gate</l> <l s="H5892">của the city</l>, <l s="H1696" m="strongMorph:TH8765">và shall declare</l> <l s="H1697">his cause</l> <l s="H241">trong the ears</l> <l s="H2205">của the elders</l> <l s="H5892">của that city</l>, <l s="H622" m="strongMorph:TH8804">they shall take</l> <l s="H5892">him into the city</l> <l s="H5414" m="strongMorph:TH8804">unto them, và give</l> <l s="H4725">him a place</l>, <l s="H3427" m="strongMorph:TH8804">that he may dwell</l> among them.</span> <span class="v-num v-5">5&nbsp;</span><span class="v JS20_5" data-id="JS20_5"><l s="H1350" m="strongMorph:TH8802">và if the avenger</l> <l s="H1818">của blood</l> <l s="H7291" m="strongMorph:TH8799">pursue</l> <l s="H310">after</l> <l s="H5462" m="strongMorph:TH8686">him, then they shall not deliver</l> <l s="H7523" m="strongMorph:TH8802">the slayer</l> <l s="H3027">up into his hand</l>; <l s="H5221" m="strongMorph:TH8689">because he smote</l> <l s="H7453">his neighbour</l> <l s="H1847 H1097">unwittingly</l>, <l s="H8130" m="strongMorph:TH8802">và hated</l> <l s="H8032 H8543">him not beforetime</l>.</span> <span class="v-num v-6">6&nbsp;</span><span class="v JS20_6" data-id="JS20_6"><l s="H3427" m="strongMorph:TH8804">và he shall dwell</l> <l s="H5892">trong that city</l>, <l s="H5975" m="strongMorph:TH8800">until he stand</l> <l s="H6440">before</l> <l s="H5712">the congregation</l> <l s="H4941">for judgment</l>, <span class="add">và</span> <l s="H4194">until the death</l> <l s="H1419">của the high</l> <l s="H3548">priest</l> <l s="H834">that</l> <l s="H3117">shall be in those days</l>: <l s="H7523" m="strongMorph:TH8802">then shall the slayer</l> <l s="H7725" m="strongMorph:TH8799">return</l>, <l s="H935" m="strongMorph:TH8804">và come</l> <l s="H5892">unto his own city</l>, <l s="H1004">và unto his own house</l>, <l s="H5892">unto the city</l> <l s="H5127" m="strongMorph:TH8804">from whence he fled</l>.</span> </div> <div class="p"> <span class="v-num v-7">7&nbsp;</span><span class="v JS20_7" data-id="JS20_7"><l s="H6942" m="strongMorph:TH8686">và they appointed</l> <l s="H6943">Kedesh</l> <l s="H1551">trong Galilee</l> <l s="H2022">trong mount</l> <l s="H5321">Naphtali</l>, <l s="H7927">và Shechem</l> <l s="H2022">trong mount</l> <l s="H669">Ephraim</l>, <l s="H7153">và Kirjath–arba</l>, which <span class="add">is</span> <l s="H2275">Hebron</l>, <l s="H2022">trong the mountain</l> <l s="H3063">của Giu-đa</l>.<span class="note" id="note-1"><a class="key" href="#footnote-1">1</a></span></span> <span class="v-num v-8">8&nbsp;</span><span class="v JS20_8" data-id="JS20_8"><l s="H5676">và on the other side</l> <l s="H3383">Jordan</l> <l s="H3405">by Jericho</l> <l s="H4217">eastward</l>, <l s="H5414" m="strongMorph:TH8804">they assigned</l> <l s="H1221">Bezer</l> <l s="H4057">trong the wilderness</l> <l s="H4334">upon the plain</l> <l s="H4294">out of chi-phái</l> <l s="H7205">của Reuben</l>, <l s="H7216">và Ramoth</l> <l s="H1568">trong Gilead</l> <l s="H4294">out of chi-phái</l> <l s="H1410">của Gad</l>, <l s="H1474">và Golan</l> <l s="H1316">trong Bashan</l> <l s="H4294">out of chi-phái</l> <l s="H4519">của Manasseh</l>.</span> <span class="v-num v-9">9&nbsp;</span><span class="v JS20_9" data-id="JS20_9"><l s="H5892">These were the cities</l> <l s="H4152">appointed</l> <l s="H1121">for all the children</l> <l s="H3478">của Y-sơ-ra-ên</l>, <l s="H1616">và for the stranger</l> <l s="H1481" m="strongMorph:TH8802">that sojourneth</l> <l s="H8432">among</l> <l s="H5221" m="strongMorph:TH8688">them, that whosoever killeth</l> <span class="add">any</span> <l s="H5315">person</l> <l s="H7684">at unawares</l> <l s="H5127" m="strongMorph:TH8800">might flee</l> <l s="H4191" m="strongMorph:TH8799">thither, và not die</l> <l s="H3027">by the hand</l> <l s="H1350" m="strongMorph:TH8802">của the avenger</l> <l s="H1818">của blood</l>, <l s="H5975" m="strongMorph:TH8800">until he stood</l> <l s="H6440">before</l> <l s="H5712">the congregation</l>.</span> </div> </div> <div class="footnotes"> <span class="footnote" id="footnote-1"><span class="key">1</span><a class="backref" href="#note-1">20:7</a><span class="text">appointed: Heb. sanctified</span></span> </div> <div class="footer"><div class="nav"> <a class="prev" href="JS19.html">&lt;</a> <a class="home" href="index.html">=</a> <a class="next" href="JS21.html">&gt;</a> </div></div> </body> </html>
<html> <head> <script src='js/jquery-1.4.4.min.js' type='text/javascript'></script> <script src='js/jquery.url.min.js' type='text/javascript'></script> <script src='js/app.js' type='text/javascript'></script> <script type='text/javascript'> // hook into tab url changes to check if we need to block it chrome.tabs.onUpdated.addListener(shouldBlockSite); </script> </head> </html>
// of this software and associated documentation files (the 'Software'), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // all copies or substantial portions of the Software. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // 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. using System; namespace Sharpex2D.Plugin { [Developer("ThuCommix", "developer@sharpex2d.de")] [TestState(TestState.Untested)] public abstract class ProxySource : MarshalByRefObject { <summary> Gets the LifetimeService. </summary> <returns>ILease object.</returns> public new virtual object GetLifetimeService() { return base.GetLifetimeService(); } } }
/* * Description: * What is this file about? * * Revision history: * xxxx-xx-xx, author, first version * xxxx-xx-xx, author, fix bug about xxx */ # include "asio_rpc_session.h" # ifdef __TITLE__ # undef __TITLE__ # endif # define __TITLE__ "net.boost.asio" namespace dsn { namespace tools { asio_rpc_session::~asio_rpc_session() { } void asio_rpc_session::set_options() { if (_socket->is_open()) { try { boost::asio::socket_base::send_buffer_size option, option2(16 * 1024 * 1024); _socket->get_option(option); int old = option.value(); _socket->set_option(option2); _socket->get_option(option); dinfo("boost asio send buffer size is %u, set as 16MB, now is %u", old, option.value()); boost::asio::socket_base::receive_buffer_size option3, option4(16 * 1024 * 1024); _socket->get_option(option3); old = option3.value(); _socket->set_option(option4); _socket->get_option(option3); dinfo("boost asio recv buffer size is %u, set as 16MB, now is %u", old, option.value()); } catch (std::exception& ex) { dwarn("network session 0x%x:%hu set socket option failed, err = %s", remote_address().ip(), remote_address().port(), ex.what() ); } } } void asio_rpc_session::do_read(int sz) { add_ref(); void* ptr = _parser->read_buffer_ptr((int)sz); int remaining = _parser-><API key>(); _socket->async_read_some(boost::asio::buffer(ptr, remaining), [this](boost::system::error_code ec, std::size_t length) { if (!!ec) { derror("asio read from %s failed: %s", _remote_addr.to_string(), ec.message().c_str()); on_failure(); } else { int read_next; message_ex* msg = _parser-><API key>((int)length, read_next); while (msg != nullptr) { this->on_message_read(msg); msg = _parser-><API key>(0, read_next); } start_read_next(read_next); } release_ref(); }); } void asio_rpc_session::write(uint64_t signature) { std::vector<boost::asio::const_buffer> buffers2; int bcount = (int)_sending_buffers.size(); // prepare buffers buffers2.resize(bcount); for (int i = 0; i < bcount; i++) { buffers2[i] = boost::asio::const_buffer(_sending_buffers[i].buf, _sending_buffers[i].sz); } add_ref(); boost::asio::async_write(*_socket, buffers2, [this, signature](boost::system::error_code ec, std::size_t length) { if (!!ec) { derror("asio write to %s failed: %s", _remote_addr.to_string(), ec.message().c_str()); on_failure(); } else { on_send_completed(signature); } release_ref(); }); } asio_rpc_session::asio_rpc_session( <API key>& net, ::dsn::rpc_address remote_addr, std::shared_ptr<boost::asio::ip::tcp::socket>& socket, std::shared_ptr<message_parser>& parser, bool is_client ) : rpc_session(net, remote_addr, parser, is_client), _socket(socket) { set_options(); if (!is_client) start_read_next(); } void asio_rpc_session::on_failure() { if (on_disconnected()) { try { _socket->shutdown(boost::asio::socket_base::shutdown_type::shutdown_both); _socket->close(); } catch (std::exception& ) { /*dwarn("network session %s exits failed, err = %s", remote_address().to_ip_string().c_str(), static_cast<int>remote_address().port(), ex.what() );*/ } } } void asio_rpc_session::connect() { if (try_connecting()) { boost::asio::ip::tcp::endpoint ep( boost::asio::ip::address_v4(_remote_addr.ip()), _remote_addr.port()); add_ref(); _socket->async_connect(ep, [this](boost::system::error_code ec) { if (!ec) { dinfo("client session %s connected", _remote_addr.to_string() ); set_options(); set_connected(); on_send_completed(); start_read_next(); } else { derror("client session connect to %s failed, error = %s", _remote_addr.to_string(), ec.message().c_str() ); on_failure(); } release_ref(); }); } } } }
package org.jabref.logic.exporter; import java.io.IOException; import java.io.Writer; import org.jabref.model.strings.StringUtil; /** * Class to write to a .bib file. Used by {@link <API key>} */ public class BibWriter { private final String newLineSeparator; private final Writer writer; private boolean <API key> = false; private boolean somethingWasWritten = false; private boolean lastWriteWasNewline = false; /** * @param newLineSeparator the string used for a line break */ public BibWriter(Writer writer, String newLineSeparator) { this.writer = writer; this.newLineSeparator = newLineSeparator; } /** * Writes the given string. The newlines of the given string are converted to the newline set for this clas */ public void write(String string) throws IOException { if (<API key>) { writer.write(newLineSeparator); <API key> = false; } string = StringUtil.unifyLineBreaks(string, newLineSeparator); writer.write(string); lastWriteWasNewline = string.endsWith(newLineSeparator); somethingWasWritten = true; } /** * Writes the given string and finishes it with a line break */ public void writeLine(String string) throws IOException { this.write(string); this.finishLine(); } /** * Finishes a line */ public void finishLine() throws IOException { if (!this.lastWriteWasNewline) { this.write(newLineSeparator); } } /** * Finishes a block */ public void finishBlock() throws IOException { if (!somethingWasWritten) { return; } if (!lastWriteWasNewline) { this.finishLine(); } this.somethingWasWritten = false; this.<API key> = true; } }
package gui; import java.awt.BorderLayout; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JDialog; import javax.swing.JPanel; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.border.EmptyBorder; import automato.*; import expressaoRegular.<API key>; import gui.Facade; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; public class REinsertWindow extends JDialog { private final JPanel contentPanel = new JPanel(); private JTextField txtRe; private JTable mainWindowTable; private boolean left; static int numErGeradas = 1; /** * Create the dialog. */ public REinsertWindow() { createContents(); } public REinsertWindow(JTable table, boolean _left) { createContents(); mainWindowTable = table; left = _left; } private void createContents() { setBounds(100, 100, 344, 109); getContentPane().setLayout(new BorderLayout()); contentPanel.setLayout(new FlowLayout()); contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5)); getContentPane().add(contentPanel, BorderLayout.CENTER); { txtRe = new JTextField(); contentPanel.add(txtRe); txtRe.setColumns(20); } { JPanel buttonPane = new JPanel(); buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT)); getContentPane().add(buttonPane, BorderLayout.SOUTH); { JButton okButton = new JButton("OK"); okButton.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { Automato eab = new <API key>(txtRe.getText()); Facade.autLeft = eab; String name = "From ER " + numErGeradas++; Facade.salvos.put(name, eab); MainWindow.updateComboBox(name); eab.print(); Facade.showTable(mainWindowTable, left); setVisible(false); } }); okButton.setActionCommand("OK"); buttonPane.add(okButton); getRootPane().setDefaultButton(okButton); } { JButton cancelButton = new JButton("Cancel"); cancelButton.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { setVisible(false); } }); cancelButton.setActionCommand("Cancel"); buttonPane.add(cancelButton); } } } }
#import <Foundation/Foundation.h> #import "AFNetworkTaskHelper.h" #import "<API key>.h" #import "AFNetworkAdapter.h" typedef void (^<API key>)(AFNetworkMsg * _Nonnull msg,id _Nullable originalObj,id _Nullable data) NS_AVAILABLE_IOS(7_0); @interface AFNetworkMsg: NSObject @property (nonatomic,assign) AFNetworkStatusCode errorCode; @property (nonatomic,assign) NSInteger httpStatusCode; @property (nonatomic,strong) NSDictionary *_Nullable responseHeaders; -(BOOL)isSuccess NS_AVAILABLE_IOS(7_0); -(void)recyle; @end @interface AFNetworkTask : NSObject - (instancetype _Nonnull)initWithTaskSession:(<API key> * _Nonnull)session; -(void)addDataAdapter:(<API key> * _Nonnull)adapter; -(void)addDefaultStructure:(Class _Nonnull)clazz; -(void)addDataBlock:(<API key> _Nullable)dataBlock; #pragma mark - GET -(void)GET:(NSString * _Nonnull)url finishedBlock:(<API key> _Nullable)finishedBlock; -(void)GET:(NSString * _Nonnull)url data:(id<<API key>> _Nullable)data finishedBlock:(<API key> _Nullable)finishedBlock; -(void)GET:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form finishedBlock:(<API key> _Nullable)finishedBlock; #pragma mark - POST -(void)POST:(NSString * _Nonnull)url data:(id<<API key>> _Nullable)data finishedBlock:(<API key> _Nullable)finishedBlock; -(void)POST:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form finishedBlock:(<API key> _Nullable)finishedBlock; -(void)POST:(NSString * _Nonnull)URLString data:(id<<API key>> _Nullable)data files:(NSDictionary * _Nullable)files finishedBlock:(<API key> _Nullable)finishedBlock; -(void)POST:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form files:(NSDictionary * _Nullable)files finishedBlock:(<API key> _Nullable)finishedBlock; -(void)POST:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form files:(NSDictionary * _Nullable)files progressBlock:(<API key> _Nullable)progressBlock finishedBlock:(<API key> _Nullable)finishedBlock; #pragma mark - PUT -(void)PUT:(NSString * _Nonnull)url data:(id<<API key>> _Nullable)data finishedBlock:(<API key> _Nullable)finishedBlock; -(void)PUT:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form finishedBlock:(<API key> _Nullable)finishedBlock; -(void)PUT:(NSString * _Nonnull)URLString data:(id<<API key>> _Nullable)data files:(NSDictionary * _Nullable)files finishedBlock:(<API key> _Nullable)finishedBlock; -(void)PUT:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form files:(NSDictionary * _Nullable)files finishedBlock:(<API key> _Nullable)finishedBlock; -(void)PUT:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form files:(NSDictionary * _Nullable)files progressBlock:(<API key> _Nullable)progressBlock finishedBlock:(<API key> _Nullable)finishedBlock; #pragma mark - PATCH -(void)PATCH:(NSString * _Nonnull)url finishedBlock:(<API key> _Nullable)finishedBlock; -(void)PATCH:(NSString * _Nonnull)url data:(id<<API key>> _Nullable)data finishedBlock:(<API key> _Nullable)finishedBlock; -(void)PATCH:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form finishedBlock:(<API key> _Nullable)finishedBlock; #pragma mark - DELETE -(void)DELETE:(NSString * _Nonnull)url finishedBlock:(<API key> _Nullable)finishedBlock; -(void)DELETE:(NSString * _Nonnull)url data:(id<<API key>> _Nullable)data finishedBlock:(<API key> _Nullable)finishedBlock; -(void)DELETE:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form finishedBlock:(<API key> _Nullable)finishedBlock; #pragma mark - DOWNLOAD -(void)DOWNLOAD:(NSString * _Nonnull)url finishedBlock:(<API key> _Nullable)finishedBlock; -(void)DOWNLOAD:(NSString * _Nonnull)URLString data:(id<<API key>> _Nullable)data finishedBlock:(<API key> _Nullable)finishedBlock; -(void)DOWNLOAD:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form finishedBlock:(<API key> _Nullable)finishedBlock; -(void)DOWNLOAD:(NSString * _Nonnull)URLString data:(id<<API key>> _Nullable)data progressBlock:(<API key> _Nullable)progressBlock finishedBlock:(<API key> _Nullable)finishedBlock; -(void)DOWNLOAD:(NSString * _Nonnull)URLString form:(NSDictionary * _Nullable)form progressBlock:(<API key> _Nullable)progressBlock finishedBlock:(<API key> _Nullable)finishedBlock; -(void)cancel; @end
using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Primitives; using PeterJuhasz.AspNetCore.Extensions.Security; using System; using System.Linq; using System.Threading.Tasks; namespace Microsoft.AspNetCore.Builder; public static partial class <API key> { <summary> Adds the Public-Key-Pinning header to all responses. </summary> <param name="app"></param> [Obsolete] public static void <API key>(this IApplicationBuilder app) { app.UseMiddleware<<API key>>(); } [Obsolete] public static IServiceCollection <API key>(this IServiceCollection services, Action<<API key>> configure) { services.AddSingleton<<API key>>(); var options = new <API key>(); configure(options); services.AddSingleton(options); return services; } internal sealed class <API key> : IMiddleware { public <API key>(<API key> options) { if (!options.Pins.Any()) throw new <API key>("At least one fingerprint have to be pinned."); Options = options; _headerValue = Options.ToString(); } private readonly StringValues _headerValue; public <API key> Options { get; } public async Task InvokeAsync(HttpContext context, RequestDelegate next) { context.Response.OnStarting(() => { HttpResponse response = context.Response; response.Headers["Public-Key-Pins"] = _headerValue; return Task.CompletedTask; }); await next.Invoke(context); } } }
package dog_pool import "fmt" import "github.com/alecthomas/log4go" // Worker for running Redis Commands serially in a go routine type <API key> struct { Logger *log4go.Logger "Logger for logging updates, errors, etc" Connection *RedisConnection "Connection to Redis" BatchSize uint "Number of RedisBatchCommand's to process at once" CommandQueue <-chan *RedisBatchCommand "Output only queue" } // Make a new instance of <API key>, or return an error func <API key>(logger *log4go.Logger, connection *RedisConnection, batch_size uint, queue <-chan *RedisBatchCommand) (*<API key>, error) { p := &<API key>{ Logger: logger, Connection: connection, CommandQueue: queue, BatchSize: batch_size, } switch { case nil == p.Logger: return nil, fmt.Errorf("[<API key>][Make] Nil logger!") case nil == p.Connection: return nil, fmt.Errorf("[<API key>][Make] Nil redis connection!") case nil == p.CommandQueue: return nil, fmt.Errorf("[<API key>][Make] Nil queue!") case 0 == p.BatchSize: return nil, fmt.Errorf("[<API key>][Make] BatchSize must be greater than 0!") default: return p, nil } } // Poll the Queue for commands func (p *<API key>) Run() { for { // Pop any pending commands cmds, queue_is_open := p.popCommands() // Run any commands we have collected if len(cmds) > 0 { p.runCommands(cmds) } // The queue is closed, exit the go routine if !queue_is_open { return } } } // Pop a RedisBatchCommand from the queue, blocks until a command is available or the queue is closed: // Returns: // ptr, true --> Got a command, the queue is open // nil, false --> The queue is closed func (p *<API key>) mustPopCommand() (*RedisBatchCommand, bool) { select { // Will only execute once there is a command or the queue is closed: case cmd, queue_is_open := <-p.CommandQueue: return cmd, queue_is_open } panic("[<API key>][mustPopCommand] Should never get here") return nil, false } // Pop a RedisBatchCommand from the queue if possible: // Returns: // ptr, true --> Got a command, the queue is open // nil, true --> No commands left in the queue, the queue is open // nil, false --> The queue is closed func (p *<API key>) mayPopCommand() (*RedisBatchCommand, bool) { select { case cmd, queue_is_open := <-p.CommandQueue: // Will only execute once there is a command or the queue is closed: return cmd, queue_is_open default: // The queue is empty, continue ... return nil, true } } // Pop a collection of commands from the queue // Returns: // ptrs, true --> We recieve commands and the queue is open // ptrs, false --> We recieve commands and the queue is closed // [], true --> The queue is empty and open // [], false --> The queue is empty and closed func (p *<API key>) popCommands() (RedisBatchCommands, bool) { commands := make([]*RedisBatchCommand, p.BatchSize)[0:0] cmd, ok := p.mustPopCommand() switch { case !ok: // The queue is closed return nil, false case nil != cmd: // We got a command commands = append(commands, cmd) default: // nil == cmd panic("[<API key>][popCommands] Should never get here") return nil, false } for i := uint(1); i < p.BatchSize; i++ { cmd, ok = p.mayPopCommand() switch { case !ok: // The queue is closed, return what we have and exit return commands, false case nil != cmd: // We got a command commands = append(commands, cmd) default: // nil == cmd // The queue is empty & open, return what we have return commands, true } } // We have filled up the commands buffer, exit now return commands, true } // Execute a batch of commands and log the results func (p *<API key>) runCommands(cmds RedisBatchCommands) { // Execute the batch and log any high-level errors: if err := cmds.ExecuteBatch(p.Connection); nil != err { p.Logger.Critical("[<API key>][Run] Error processing Redis Batch: err=%v", err) } // Iterate the commands and log the command + results: for i, cmd := range cmds { switch err := cmd.Reply().Err; { case nil != err: p.Logger.Critical("[<API key>][Run][%v] Error processing Redis Command: err=%v, cmd=%v", i, err, cmd) default: p.Logger.Info("[<API key>][Run][%v] Success processing Redis Command: cmd=%v", i, cmd) } } }
// Karma configuration // Generated on Mon Sep 29 2014 13:20:26 GMT+0200 (W. Europe Daylight Time) module.exports = function (config) { 'use strict'; config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use frameworks: ['jasmine'], // list of files / patterns to load in the browser files: [ 'bower_components/angular/angular.js', 'bower_components/angular-route/angular-route.js', 'bower_components/angular-mocks/angular-mocks.js', 'src*.js', 'test*-spec.js' ], // list of files to exclude exclude: [ 'src/util/<API key>.js' ], // preprocess matching files before serving them to the browser preprocessors: {}, // test results reporter to use // possible values: 'dots', 'progress' reporters: ['dots'], // web server port port: 9876, // enable / disable colors in the output (reporters and logs) colors: true, // level of logging // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG logLevel: config.LOG_WARN, // enable / disable watching file and executing tests whenever any file changes autoWatch: true, // start these browsers browsers: ['Chrome'], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: false }); };
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>PastPurchases | @storefront/flux-capacitor</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">@storefront/flux-capacitor</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="<API key>"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="<API key>" checked /> <label class="tsd-widget" for="<API key>">Inherited</label> <input type="checkbox" id="<API key>" checked /> <label class="tsd-widget" for="<API key>">Externals</label> <input type="checkbox" id="<API key>" /> <label class="tsd-widget" for="<API key>">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="store.html">Store</a> </li> <li> <a href="store.pastpurchases.html">PastPurchases</a> </li> </ul> <h1>Module PastPurchases</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section tsd-is-external"> <h3>Interfaces</h3> <ul class="tsd-index-list"> <li class="tsd-kind-interface <API key> tsd-is-external"><a href="../interfaces/store.pastpurchases.pastpurchasecount.html" class="tsd-kind-icon">Past<wbr>Purchase<wbr>Count</a></li> <li class="tsd-kind-interface <API key> tsd-is-external"><a href="../interfaces/store.pastpurchases.pastpurchaseproduct.html" class="tsd-kind-icon">Past<wbr>Purchase<wbr>Product</a></li> <li class="tsd-kind-interface <API key> tsd-is-external"><a href="../interfaces/store.pastpurchases.<API key>.html" class="tsd-kind-icon">Past<wbr>Purchase<wbr>Refinement</a></li> <li class="tsd-kind-interface <API key> tsd-is-external"><a href="../interfaces/store.pastpurchases.pastpurchasesort.html" class="tsd-kind-icon">Past<wbr>Purchase<wbr>Sort</a></li> </ul> </section> </div> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class="current tsd-kind-module tsd-is-external"> <a href="store.html">Store</a> <ul> <li class=" tsd-kind-module <API key> tsd-is-external"> <a href="store.autocomplete.html">Autocomplete</a> </li> <li class=" tsd-kind-module <API key> <API key> tsd-is-external"> <a href="store.indexed.html">Indexed</a> </li> <li class="current tsd-kind-module <API key> tsd-is-external"> <a href="store.pastpurchases.html">Past<wbr>Purchases</a> </li> <li class=" tsd-kind-module <API key> tsd-is-external"> <a href="store.personalization.html">Personalization</a> </li> <li class=" tsd-kind-module <API key> tsd-is-external"> <a href="store.recommendations.html">Recommendations</a> </li> <li class=" tsd-kind-module <API key> tsd-is-external"> <a href="store.zone.html">Zone</a> </li> </ul> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> <li class=" tsd-kind-interface <API key> tsd-is-external"> <a href="../interfaces/store.pastpurchases.pastpurchasecount.html" class="tsd-kind-icon">Past<wbr>Purchase<wbr>Count</a> </li> <li class=" tsd-kind-interface <API key> tsd-is-external"> <a href="../interfaces/store.pastpurchases.pastpurchaseproduct.html" class="tsd-kind-icon">Past<wbr>Purchase<wbr>Product</a> </li> <li class=" tsd-kind-interface <API key> tsd-is-external"> <a href="../interfaces/store.pastpurchases.<API key>.html" class="tsd-kind-icon">Past<wbr>Purchase<wbr>Refinement</a> </li> <li class=" tsd-kind-interface <API key> tsd-is-external"> <a href="../interfaces/store.pastpurchases.pastpurchasesort.html" class="tsd-kind-icon">Past<wbr>Purchase<wbr>Sort</a> </li> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li> <li class="<API key>"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function <API key>"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="<API key>"><span class="tsd-kind-icon">Index signature</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> <li class="<API key>"><span class="tsd-kind-icon">Enumeration member</span></li> <li class="tsd-kind-property <API key>"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method <API key>"><span class="tsd-kind-icon">Method</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface <API key>"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="<API key> <API key>"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property <API key>"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method <API key>"><span class="tsd-kind-icon">Method</span></li> <li class="<API key> <API key>"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class <API key>"><span class="tsd-kind-icon">Class with type parameter</span></li> <li class="<API key> <API key>"><span class="tsd-kind-icon">Constructor</span></li> <li class="tsd-kind-property <API key>"><span class="tsd-kind-icon">Property</span></li> <li class="tsd-kind-method <API key>"><span class="tsd-kind-icon">Method</span></li> <li class="tsd-kind-accessor <API key>"><span class="tsd-kind-icon">Accessor</span></li> <li class="<API key> <API key>"><span class="tsd-kind-icon">Index signature</span></li> </ul> <ul class="tsd-legend"> <li class="<API key> <API key> tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li> <li class="tsd-kind-property <API key> tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li> <li class="tsd-kind-method <API key> tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li> <li class="tsd-kind-accessor <API key> tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property <API key> tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li> <li class="tsd-kind-method <API key> tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li> <li class="tsd-kind-accessor <API key> tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property <API key> tsd-is-private"><span class="tsd-kind-icon">Private property</span></li> <li class="tsd-kind-method <API key> tsd-is-private"><span class="tsd-kind-icon">Private method</span></li> <li class="tsd-kind-accessor <API key> tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-property <API key> tsd-is-static"><span class="tsd-kind-icon">Static property</span></li> <li class="<API key> <API key> tsd-is-static"><span class="tsd-kind-icon">Static method</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="http://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> <script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script> </body> </html>
'use strict'; import * as assert from 'assert'; import { <API key> } from 'vs/workbench/parts/preferences/browser/settingsTree'; suite('SettingsTree', () => { test('<API key>', () => { assert.deepEqual( <API key>('foo.bar'), { category: 'Foo', label: 'Bar' }); assert.deepEqual( <API key>('foo.bar.etc'), { category: 'Foo.Bar', label: 'Etc' }); assert.deepEqual( <API key>('fooBar.etcSomething'), { category: 'Foo Bar', label: 'Etc Something' }); assert.deepEqual( <API key>('foo'), { category: '', label: 'Foo' }); }); test('<API key> - with category', () => { assert.deepEqual( <API key>('foo.bar', 'foo'), { category: '', label: 'Bar' }); assert.deepEqual( <API key>('foo.bar.etc', 'foo'), { category: 'Bar', label: 'Etc' }); assert.deepEqual( <API key>('fooBar.etcSomething', 'foo'), { category: 'Foo Bar', label: 'Etc Something' }); assert.deepEqual( <API key>('foo.bar.etc', 'foo.bar'), { category: '', label: 'Etc' }); assert.deepEqual( <API key>('foo.bar.etc', 'something.foo'), { category: 'Bar', label: 'Etc' }); assert.deepEqual( <API key>('bar.etc', 'something.bar'), { category: '', label: 'Etc' }); assert.deepEqual( <API key>('fooBar.etc', 'fooBar'), { category: '', label: 'Etc' }); assert.deepEqual( <API key>('fooBar.somethingElse.etc', 'fooBar'), { category: 'Something Else', label: 'Etc' }); }); });
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <title>Numbers 21 (ASV)</title> <link href="../../../build/mobile.css" rel="stylesheet" /> <script src="../../../build/mobile.js"></script> </head> <body dir="ltr" class="section-document"> <div class="header"><div class="nav"> <a class="name" href="NU.html">American Standard Version</a><a class="location" href="NU.html">Numbers 21</a><a class="prev" href="NU20.html">&lt;</a> <a class="home" href="index.html">=</a> <a class="next" href="NU22.html">&gt;</a> </div></div> <div class="section chapter NU NU21 eng_asv eng " dir="ltr" lang="en" data-id="NU21" data-nextid="NU22" data-previd="NU20"> <div class="c">21</div> <div class="p"> <span class="v-num v-1">1&nbsp;</span><span class="v NU21_1" data-id="NU21_1">And the Canaanite, the king of Arad, who dwelt in the South, heard tell that Israel came by the way of Atharim; and he fought against Israel, and took some of them captive. </span> <span class="v-num v-2">2&nbsp;</span><span class="v NU21_2" data-id="NU21_2">And Israel vowed a vow unto Jehovah, and said, If thou wilt indeed deliver this people into my hand, then I will utterly destroy their cities. </span> <span class="v-num v-3">3&nbsp;</span><span class="v NU21_3" data-id="NU21_3">And Jehovah hearkened to the voice of Israel, and delivered up the Canaanites; and they utterly destroyed them and their cities: and the name of the place was called Hormah. </span> </div> <div class="p"> <span class="v-num v-4">4&nbsp;</span><span class="v NU21_4" data-id="NU21_4">And they journeyed from mount Hor by the way to the Red Sea, to compass the land of Edom: and the soul of the people was much discouraged because of the way. </span> <span class="v-num v-5">5&nbsp;</span><span class="v NU21_5" data-id="NU21_5">And the people spake against God, and against Moses, Wherefore have ye brought us up out of Egypt to die in the wilderness? for there is no bread, and there is no water; and our soul loatheth this light bread.</span> <span class="v-num v-6">6&nbsp;</span><span class="v NU21_6" data-id="NU21_6">And Jehovah sent fiery serpents among the people, and they bit the people; and much people of Israel died.</span> <span class="v-num v-7">7&nbsp;</span><span class="v NU21_7" data-id="NU21_7">And the people came to Moses, and said, We have sinned, because we have spoken against Jehovah, and against thee; pray unto Jehovah, that he take away the serpents from us. And Moses prayed for the people.</span> <span class="v-num v-8">8&nbsp;</span><span class="v NU21_8" data-id="NU21_8">And Jehovah said unto Moses, Make thee a fiery serpent, and set it upon a standard: and it shall come to pass, that every one that is bitten, when he seeth it, shall live. </span> <span class="v-num v-9">9&nbsp;</span><span class="v NU21_9" data-id="NU21_9">And Moses made a serpent of brass, and set it upon the standard: and it came to pass, that if a serpent had bitten any man, when he looked unto the serpent of brass, he lived. </span> </div> <div class="p"> <span class="v-num v-10">10&nbsp;</span><span class="v NU21_10" data-id="NU21_10">And the children of Israel journeyed, and encamped in Oboth.</span> <span class="v-num v-11">11&nbsp;</span><span class="v NU21_11" data-id="NU21_11">And they journeyed from Oboth, and encamped at Iye-abarim, in the wilderness which is before Moab, toward the sunrising.</span> <span class="v-num v-12">12&nbsp;</span><span class="v NU21_12" data-id="NU21_12">From thence they journeyed, and encamped in the valley of Zered.</span> <span class="v-num v-13">13&nbsp;</span><span class="v NU21_13" data-id="NU21_13">From thence they journeyed, and encamped on the other side of the Arnon, which is in the wilderness, that cometh out of the border of the Amorites: for the Arnon is the border of Moab, between Moab and the Amorites.</span> <span class="v-num v-14">14&nbsp;</span><span class="v NU21_14" data-id="NU21_14">Wherefore it is said in the book of the Wars of Jehovah,</span> </div> <div class="q"> <span class="v NU21_14" data-id="NU21_14">Vaheb in Suphah,</span> </div> <div class="q"> <span class="v NU21_14" data-id="NU21_14">And the valleys of the Arnon,</span> </div> <div class="q"> <span class="v-num v-15">15&nbsp;</span><span class="v NU21_15" data-id="NU21_15">And the slope of the valleys</span> </div> <div class="q"> <span class="v NU21_15" data-id="NU21_15">That inclineth toward the dwelling of Ar,</span> </div> <div class="q"> <span class="v NU21_15" data-id="NU21_15">And leaneth upon the border of Moab.</span> </div> <div class="p"> <span class="v-num v-16">16&nbsp;</span><span class="v NU21_16" data-id="NU21_16">And from thence <span class="add">they journeyed</span> to Beer: that is the well whereof Jehovah said unto Moses, Gather the people together, and I will give them water. </span> </div> <div class="p"> <span class="v-num v-17">17&nbsp;</span><span class="v NU21_17" data-id="NU21_17">Then sang Israel this song:</span> </div> <div class="q"> <span class="v NU21_17" data-id="NU21_17">Spring up, O well; sing ye unto it:</span> </div> <div class="q"> <span class="v-num v-18">18&nbsp;</span><span class="v NU21_18" data-id="NU21_18">The well, which the princes digged,</span> </div> <div class="q"> <span class="v NU21_18" data-id="NU21_18">Which the nobles of the people delved,</span> </div> <div class="q"> <span class="v NU21_18" data-id="NU21_18">With the sceptre, <span class="add">and</span> with their staves.</span> </div> <div class="m"> <span class="v NU21_18" data-id="NU21_18">And from the wilderness <span class="add">they journeyed</span> to Mattanah;</span> <span class="v-num v-19">19&nbsp;</span><span class="v NU21_19" data-id="NU21_19">and from Mattanah to Nahaliel; and from Nahaliel to Bamoth;</span> <span class="v-num v-20">20&nbsp;</span><span class="v NU21_20" data-id="NU21_20">and from Bamoth to the valley that is in the field of Moab, to the top of Pisgah, which looketh down upon the desert.</span> </div> <div class="p"> <span class="v-num v-21">21&nbsp;</span><span class="v NU21_21" data-id="NU21_21">And Israel sent messengers unto Sihon king of the Amorites, saying,</span> <span class="v-num v-22">22&nbsp;</span><span class="v NU21_22" data-id="NU21_22">Let me pass through thy land: we will not turn aside into field, or into vineyard; we will not drink of the water of the wells: we will go by the king’s highway, until we have passed thy border.</span> <span class="v-num v-23">23&nbsp;</span><span class="v NU21_23" data-id="NU21_23">And Sihon would not suffer Israel to pass through his border: but Sihon gathered all his people together, and went out against Israel into the wilderness, and came to Jahaz; and he fought against Israel.</span> <span class="v-num v-24">24&nbsp;</span><span class="v NU21_24" data-id="NU21_24">And Israel smote him with the edge of the sword, and possessed his land from the Arnon unto the Jabbok, even unto the children of Ammon; for the border of the children of Ammon was strong.</span> <span class="v-num v-25">25&nbsp;</span><span class="v NU21_25" data-id="NU21_25">And Israel took all these cities: and Israel dwelt in all the cities of the Amorites, in Heshbon, and in all the towns thereof. </span> <span class="v-num v-26">26&nbsp;</span><span class="v NU21_26" data-id="NU21_26">For Heshbon was the city of Sihon the king of the Amorites, who had fought against the former king of Moab, and taken all his land out of his hand, even unto the Arnon. </span> <span class="v-num v-27">27&nbsp;</span><span class="v NU21_27" data-id="NU21_27">Wherefore they that speak in proverbs say,</span> </div> <div class="q"> <span class="v NU21_27" data-id="NU21_27">Come ye to Heshbon;</span> </div> <div class="q"> <span class="v NU21_27" data-id="NU21_27">Let the city of Sihon be built and established:</span> </div> <div class="q"> <span class="v-num v-28">28&nbsp;</span><span class="v NU21_28" data-id="NU21_28">For a fire is gone out of Heshbon,</span> </div> <div class="q"> <span class="v NU21_28" data-id="NU21_28">A flame from the city of Sihon:</span> </div> <div class="q"> <span class="v NU21_28" data-id="NU21_28">It hath devoured Ar of Moab,</span> </div> <div class="q"> <span class="v NU21_28" data-id="NU21_28">The lords of the high places of the Arnon.</span> </div> <div class="q"> <span class="v-num v-29">29&nbsp;</span><span class="v NU21_29" data-id="NU21_29">Woe to thee, Moab!</span> </div> <div class="q"> <span class="v NU21_29" data-id="NU21_29">Thou art undone, O people of Chemosh:</span> </div> <div class="q"> <span class="v NU21_29" data-id="NU21_29">He hath given his sons as fugitives,</span> </div> <div class="q"> <span class="v NU21_29" data-id="NU21_29">And his daughters into captivity,</span> </div> <div class="q"> <span class="v NU21_29" data-id="NU21_29">Unto Sihon king of the Amorites.</span> </div> <div class="q"> <span class="v-num v-30">30&nbsp;</span><span class="v NU21_30" data-id="NU21_30">We have shot at them; Heshbon is perished even unto Dibon,</span> </div> <div class="q"> <span class="v NU21_30" data-id="NU21_30">And we have laid waste even unto Nophah,</span> </div> <div class="q"> <span class="v NU21_30" data-id="NU21_30">Which <span class="add">reacheth</span> unto Medeba.</span> </div> <div class="p"> <span class="v-num v-31">31&nbsp;</span><span class="v NU21_31" data-id="NU21_31">Thus Israel dwelt in the land of the Amorites.</span> <span class="v-num v-32">32&nbsp;</span><span class="v NU21_32" data-id="NU21_32">And Moses sent to spy out Jazer; and they took the towns thereof, and drove out the Amorites that were there.</span> </div> <div class="p"> <span class="v-num v-33">33&nbsp;</span><span class="v NU21_33" data-id="NU21_33">And they turned and went up by the way of Bashan: and Og the king of Bashan went out against them, he and all his people, to battle at Edrei. </span> <span class="v-num v-34">34&nbsp;</span><span class="v NU21_34" data-id="NU21_34">And Jehovah said unto Moses, Fear him not: for I have delivered him into thy hand, and all his people, and his land; and thou shalt do to him as thou didst unto Sihon king of the Amorites, who dwelt at Heshbon.</span> <span class="v-num v-35">35&nbsp;</span><span class="v NU21_35" data-id="NU21_35">So they smote him, and his sons and all his people, until there was none left him remaining: and they possessed his land.</span> </div> </div> <div class="footnotes"> </div> <div class="footer"><div class="nav"> <a class="prev" href="NU20.html">&lt;</a> <a class="home" href="index.html">=</a> <a class="next" href="NU22.html">&gt;</a> </div></div> </body> </html>
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var AdjectiveSchema = new Schema({ name: String }); module.exports = mongoose.model('Adjective', AdjectiveSchema);
module Gitlab module QuickActions # This class takes an array of commands that should be extracted from a # given text. # extractor = Gitlab::QuickActions::Extractor.new([:open, :assign, :labels]) class Extractor attr_reader :command_definitions def initialize(command_definitions) @command_definitions = command_definitions end # Extracts commands from content and return an array of commands. # The array looks like the following: # ['command1'], # ['command3', 'arg1 arg2'], # The command and the arguments are stripped. # The original command text is removed from the given `content`. # Usage: # extractor = Gitlab::QuickActions::Extractor.new([:open, :assign, :labels]) # msg = %(hello\n/labels ~foo ~"bar baz"\nworld) # commands = extractor.extract_commands(msg) #=> [['labels', '~foo ~"bar baz"']] # msg #=> "hello\nworld" def extract_commands(content) return [content, []] unless content content = content.dup commands = [] content.delete!("\r") content.gsub!(commands_regex) do if $~[:cmd] commands << [$~[:cmd].downcase, $~[:arg]].reject(&:blank?) '' else $~[0] end end content, commands = <API key>(content, commands) [content.strip, commands] end private # Builds a regular expression to match known commands. # First match group captures the command name and # second match group captures its arguments. # It looks something like: # /^\/(?<cmd>close|reopen|...)(?:( |$))(?<arg>[^\/\n]*)(?:\n|$)/ def commands_regex names = command_names.map(&:to_s) @commands_regex ||= %r{ (?<code> # Code blocks: # Anything, including `/cmd arg` which are ignored by this filter ^``` .+? \n```$ ) | (?<html> # HTML block: # <tag> # Anything, including `/cmd arg` which are ignored by this filter # </tag> ^<[^>]+?>\n .+? \n<\/[^>]+?>$ ) | (?<html> # Quote block: # Anything, including `/cmd arg` which are ignored by this filter ^>>> .+? \n>>>$ ) | (?: # Command not in a blockquote, blockcode, or HTML tag: # /close ^\/ (?<cmd>#{Regexp.new(Regexp.union(names).source, Regexp::IGNORECASE)}) (?: [ ] (?<arg>[^\n]*) )? (?:\n|$) ) }mix end def <API key>(content, commands) return unless content <API key> = self.command_definitions.select do |definition| definition.is_a?(Gitlab::QuickActions::<API key>) end <API key>.each do |substitution| match_data = substitution.match(content.downcase) if match_data command = [substitution.name.to_s] command << match_data[1] unless match_data[1].empty? commands << command end content = substitution.<API key>(self, content) end [content, commands] end def command_names command_definitions.flat_map do |command| next if command.noop? command.all_names end.compact end end end end
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class KelolaPepak extends CI_Controller { public function _construct() { parent::_construct(); $this->load->helper('url'); $this->load->helper('form'); $this->load->library('input'); $this->load->library('form_validation'); $this->load->library('session'); } public function index() { $this->load->model('pepak_models/PepakModels'); $data['listPepak'] = $this->PepakModels->get_data_pepak(); $this->load->view('skin/admin/header_admin'); $this->load->view('skin/admin/nav_kiri'); $this->load->view('content_admin/kelola_pepak', $data); $this->load->view('skin/admin/footer_admin'); } //Delete Data public function delete_pepak()//$id_produk { $id_pepak = $_POST['id_pepak']; $this->load->model('pepak_models/PepakModels'); $this->PepakModels->delete_pepak($id_pepak); $this->index(); } //Delete Data detail produk public function delete_detail_pepak($id_pepak) { $this->load->model('pepak_models/PepakModels'); $this->PepakModels->delete_pepak($id_pepak); $this->index(); } //Lihat detail produk public function lihat_detail_pepak($id_pepak) { $this->load->model('pepak_models/PepakModels'); //Ambil id_agenda yang akan diedit $data['id_pepak'] = $this->PepakModels->select_by_id_pepak($id_pepak)->row(); $this->load->view('skin/admin/header_admin'); $this->load->view('skin/admin/nav_kiri'); $this->load->view('content_admin/detail_pepak', $data); $this->load->view('skin/admin/footer_admin'); } //Validasi pepak public function validasi_pepak() { $this->load->model('pepak_models/PepakModels'); $data['listPepak'] = $this->PepakModels->get_data_pepak_pend(); $this->load->view('skin/admin/header_admin'); $this->load->view('skin/admin/nav_kiri'); $this->load->view('content_admin/validasi_pepak', $data); $this->load->view('skin/admin/footer_admin'); } //Setujui pepak public function setuju_pepak() { $id_pepak = $_POST['id_pepak']; $this->load->model('pepak_models/PepakModels'); $this->PepakModels->setuju_pepak($id_pepak); $sub_setuju = "Youth pepak"; $msg_setuju = "Posting yang anda masukan di Youth pepak telah disetujui"; $this->kirim_email($sub_setuju,$msg_setuju); $this->validasi_pepak(); } //Setujui pepak public function setuju_detail_pepak($id_pepak) { $this->load->model('pepak_models/PepakModels'); $this->PepakModels->setuju_pepak($id_pepak); $sub_setuju = "Youth pepak"; $msg_setuju = "Posting yang anda masukan di Youth pepak Soon telah disetujui"; $this->kirim_email($sub_setuju,$msg_setuju); $this->validasi_pepak(); } //Tolak Data public function tolak_pepak() { $id_pepak = $_POST['id_pepak']; $this->load->model('pepak_models/PepakModels'); $this->PepakModels->delete_pepak($id_pepak); $sub_tolak = "Youth pepak"; $msg_tolak = "Posting yang anda masukan di Youth pepak Soon telah ditolak"; $this->kirim_email($sub_tolak,$msg_tolak); $this->validasi_pepak(); } //Tolak Data public function tolak_detail_pepak($id_pepak) { $this->load->model('pepak_models/PepakModels'); $this->PepakModels->delete_pepak($id_pepak); $sub_tolak = "Youth pepak"; $msg_tolak = "Posting yang anda masukan di Youth pepak Soon telah ditolak"; $this->kirim_email($sub_tolak,$msg_tolak); $this->validasi_pepak(); } //kirim email function kirim_email($sub,$msg) { $config['protocol'] = 'smtp'; $config['smtp_host'] = 'ssl://smtp.gmail.com'; //change this $config['smtp_port'] = '465'; $config['smtp_user'] = 'youthsuaramerdeka@gmail.com'; //change this $config['smtp_pass'] = 'suaramerdeka'; //change this $config['mailtype'] = 'html'; $config['charset'] = 'iso-8859-1'; $config['wordwrap'] = TRUE; $config['newline'] = "\r\n"; //use double quotes to comply with RFC 822 standard $this->load->library('email'); // load email library $this->email->initialize($config); $this->email->from('youthsuaramerdeka@gmail.com', 'admin'); $this->email->to('abdulazies.k@gmail.com'); $this->email->subject($sub); $this->email->message($msg); if ($this->email->send()) echo "Mail Sent!"; else show_error($this->email->print_debugger()); } //tambah pepak soon public function tambah_pepak() { $this->load->model('pepak_models/PepakModels'); $this->load->view('skin/admin/header_admin'); $this->load->view('skin/admin/nav_kiri'); $this->load->view('content_admin/tambah_pepak'); $this->load->view('skin/admin/footer_admin'); } function tambah_pepak_check() { $this->load->model('pepak_models/PepakModels'); $this->load->library('form_validation'); $tambah = $this->input->post('submit'); if ($tambah == 1) { $this->form_validation->set_rules('kata_jawa', 'Kata Jawa', 'required'); $this->form_validation->set_rules('kata_indonesia', 'Kata Indonesia', 'required'); $this->form_validation->set_rules('deskripsi_jawa', 'Deskripsi', 'required'); /*if ($this->form_validation->run() == TRUE) {*/ $data_pepak=array( 'jawa'=>$this->input->post('kata_jawa'), 'indonesia'=>$this->input->post('kata_indonesia'), 'deskripsi_jawa'=>$this->input->post('deskripsi_jawa'), 'status'=>1 ); $data['datapepak'] = $data_pepak; if($this->db->insert('pepak', $data_pepak)) { $this->session->set_flashdata('msg_berhasil', 'Data Youth pepak berhasil ditambahkan'); redirect('KelolaPepak'); } else { $this->session->set_flashdata('msg_gagal', 'Data Youth pepak Soon gagal ditambahkan'); $this->load->view('skin/admin/header_admin'); $this->load->view('skin/admin/nav_kiri'); $this->load->view('content_admin/tambah_pepak', $data); $this->load->view('skin/admin/footer_admin'); } /*} else { $this->session->set_flashdata('msg_gagal', 'Data Youth pepak gagal ditambahkan'); $this->tambah_pepak_check(); }*/ } else { $this->load->view('skin/admin/header_admin'); $this->load->view('skin/admin/nav_kiri'); $this->load->view('content_admin/tambah_pepak'); $this->load->view('skin/admin/footer_admin'); } } function cari_kata($kata) { $kata=str_replace('%20',' ',$kata); header('<API key>: *'); header('Content-type: text/xml'); //var_dump($search_term); exit(); $get_kata=$this->db->like('jawa',$this->db->escape_like_str($kata))->get('pepak'); $this->load->helper('xml'); $xml_out = '<kosakata>'; if ($get_kata->num_rows()>0) { foreach ($get_kata->result() as $row_kata) { $xml_out .= '<kata '; $xml_out .= 'id="' . xml_convert($row_kata->id_pepak) . '" '; $xml_out .= 'jawa="' . xml_convert($row_kata->jawa) . '" '; $xml_out .= 'indonesia="' . xml_convert(($row_kata->indonesia)) . '" '; $xml_out .= 'deskripsi_jawa="' . xml_convert(($row_kata->deskripsi_jawa)) . '" '; $xml_out .= '/>'; } } $xml_out .= '</kata>'; echo $xml_out; } }
<template name="accessDenied"> <div class="alert alert-error">You can't go here. Please log in.</div> </template>
namespace Outlook02AddinCS4 { partial class SamplePane { <summary> Erforderliche Designervariable. </summary> private System.ComponentModel.IContainer components = null; <summary> Verwendete Ressourcen bereinigen. </summary> <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Vom <API key> generierter Code <summary> Erforderliche Methode für die Designerunterstützung. Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.UsageTimer = new System.Windows.Forms.Timer(this.components); this.UsageLabel = new System.Windows.Forms.Label(); this.UsageBar = new System.Windows.Forms.ProgressBar(); this.SuspendLayout(); // UsageTimer this.UsageTimer.Interval = 400; this.UsageTimer.Tick += new System.EventHandler(this.UsageTimer_Tick); // UsageLabel this.UsageLabel.AutoSize = true; this.UsageLabel.BackColor = System.Drawing.Color.Transparent; this.UsageLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(161))); this.UsageLabel.ForeColor = System.Drawing.Color.Blue; this.UsageLabel.Location = new System.Drawing.Point(126, 8); this.UsageLabel.Name = "UsageLabel"; this.UsageLabel.Size = new System.Drawing.Size(48, 13); this.UsageLabel.TabIndex = 7; this.UsageLabel.Text = "<Empty>"; this.UsageLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // UsageBar this.UsageBar.Dock = System.Windows.Forms.DockStyle.Fill; this.UsageBar.Location = new System.Drawing.Point(0, 0); this.UsageBar.Name = "UsageBar"; this.UsageBar.Size = new System.Drawing.Size(300, 30); this.UsageBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.UsageBar.TabIndex = 8; // SamplePane this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.UsageLabel); this.Controls.Add(this.UsageBar); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ForeColor = System.Drawing.Color.Blue; this.Margin = new System.Windows.Forms.Padding(0); this.Name = "SamplePane"; this.Size = new System.Drawing.Size(300, 30); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Timer UsageTimer; private System.Windows.Forms.Label UsageLabel; private System.Windows.Forms.ProgressBar UsageBar; } }
var Util = require('./../src/Util'); var s = require("underscore.string"); var reverse = function(){ this.properties = { inline: true, onlyInline: true, shortDescription: "Reverse any text.", fullHelp: "Only available inline.\n`reverse <text>`" }; this.on("inline_query", function (query, reply){ var matchRv = Util.parseInline(query.query,["reverse","rv"], { joinParams: true }); if(matchRv) { if(matchRv[1]){ revs = s(matchRv[1]).reverse().value(); var results = [{id:"0", type:'article', message_text: revs, title: revs}]; reply(results); } } }); }; module.exports = reverse;
from datetime import datetime from collections import defaultdict from todo.models.calendar import Calendar from todo.models.event import Event from todo.models.stat import Stat from todo.models.user import User def rollup_users(): rollup = defaultdict(lambda: defaultdict(int)) for user in User.get_all(): (year, week, day) = user.created.isocalendar() rollup[year][week] += 1 def gen(): for year in sorted(rollup): for week in sorted(rollup[year]): yield (year, week) cum = 0 for year, week in gen(): cum += rollup[year][week] Stat.create_or_update('user-count', year, week, cum) def rollup_todos(): created = defaultdict(lambda: defaultdict(lambda: defaultdict(int))) engaged = defaultdict(lambda: defaultdict(lambda: defaultdict(int))) for event in Event.query(): user = event.key.parent().parent().id() (year, week, day) = event.created.isocalendar() created[year][week][user] += 1 (year, week, day) = event.updated.isocalendar() engaged[year][week][user] += 1 for year, weekly in created.iteritems(): for week, users in weekly.iteritems(): Stat.create_or_update('user-created-event', year, week, len(users.keys())) for year, weekly in engaged.iteritems(): for week, users in weekly.iteritems(): Stat.create_or_update('user-engaged-event', year, week, len(users.keys())) def do_rollup(): rollup_users() # rollup_todos()
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=cyrillic,cyrillic-ext,latin-ext"); html, body, a { padding: 0; margin: 0; } html { font-size: 100%; max-width: 100vw; transition: all 0.15s linear; box-sizing: border-box; font-family: "Open Sans", sans-serif; line-height: 1.7rem; color: black; } * { box-sizing: inherit; color: inherit; transition: inherit; font-family: inherit; font-size: inherit; } body { overflow-y: scroll; } h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.3rem; } .clearfix::after { content: ""; clear: both; display: table; } /*# sourceMappingURL=reset.css.map */
import socket import plugin import ssl import user import os class bot(object): def __init__(self, server): self.server = server self.port = 6667 self.ssl = None self.channels = [] self.connectedChannels = [] self.nick = 'default_nick' self.realName = 'default_nick default_nick' self.socket = None self.debugger = True self.allowedCommands = { 'ping': self.ping, 'privmsg': self.privmsg, 'invite': self.invite, 'join': self.join, '433': self.f433, '307':self.f307, '353':self.f353} self.autoInvite = True self.plugins = plugin.Plugin(self.rawSend) self.userlist = {} def debug(self, line): if self.debugger is not None: print(line) def connect(self): self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if self.ssl is not None: self.socket = ssl.wrap_socket(self.socket) self.socket.connect((self.server, self.port)) self.authenticate() def authenticate(self): self.rawSend('NICK', self.nick) self.rawSend('USER', ' '.join((self.nick, self.nick, self.realName))) def joinChannel(self, channel = None): if channel is not None: self.channels.append(channel) for chan in self.channels: chan = chan.lower() if chan not in self.connectedChannels: self.rawSend('JOIN', chan) self.connectedChannels.append(chan) def rawSend(self, command, content, dest = ''): line = ' '.join((command, dest, content, '\r\n')) self.debug(line) self.socket.send(bytes(line, 'UTF-8')) def splitLine(self, line): datas_dict = {} if line.startswith(':'): datas_dict['from'], line = line[1:].split(' ', 1) datas_dict['from'] = datas_dict['from'].split('!')[0] datas = line.split(' ', 1) datas_dict['command'] = datas[0] if datas_dict['command'].isdigit(): # numeric commands are server response and don't follow any logic. annoying :/ # so we just put the whole line into content. Parsing is done in functions datas_dict['content'] = datas[1] else: splited = datas[1].split(':', 1) if len(splited) > 1: datas_dict['to'] = splited[0].strip().lower() datas_dict['content'] = splited[1] else: datas_dict['to'], datas_dict['content'] = splited[0].split(' ', 1) return datas_dict def parseLine(self, line): self.debug(line) datas = self.splitLine(line) self.debug(datas) if datas['command'].lower() in self.allowedCommands.keys(): self.allowedCommands[datas['command'].lower()](datas) if datas['command'] == 'MODE': self.joinChannel() pass def listen(self): queue = '' while(1): raw = self.socket.recv(1024).decode('UTF-8', 'replace') queue = ''.join((queue, raw)) splited = queue.split('\r\n') if len(splited) > 1: for line in splited[:-1]: self.parseLine(line) queue = splited[-1] # received commands def ping(self, datas): self.rawSend('PONG', datas['content']) def invite(self, datas): if self.autoInvite: self.joinChannel(datas['content']) def privmsg(self, datas): if(datas['to'] in self.connectedChannels): # get first word, to check if it's a plugin word = datas['content'].split(' ', 1)[0] if(word.startswith('!') and word[1:].isalnum()): self.plugins.execute(datas, self.userlist) def join(self, datas): self.whois(datas['from']) def f433(self, datas): # nickname is already in use. self.debug('nick utilise. Adding a _') b.nick = b.nick+'_' self.authenticate() def f307(self, datas): # user is identified user = datas['content'].split()[1] self.userlist[user].identified = True self.debug(self.userlist) def f353(self, datas): # list users connected to a channel users = datas['content'].split(':')[1].split() for user in users: self.whois(user) # send commands def whois(self, username): username = username.strip('+&@~') self.rawSend('WHOIS', '', username) self.userlist[username] = user.user(username) if __name__ == '__main__': conf_file = open(os.path.dirname(os.path.realpath(__file__))+'/config.ini').readlines() config = {} for line in conf_file: if line.strip()[0] is not ' splited = line.split('=', 1) config[splited[0].strip()] = splited[1].strip() b = bot(config['server']) b.nick=config['nick'] b.ssl = config['ssl'] b.port = int(config['port']) for chan in config['channels'].split(','): b.channels.append(chan.strip()) b.connect() b.listen()
@typedef {Object} geo.types.LayerOptions LayerOptions @parent geo.types @option {String} type The openlayers layer class to use as the layer. Currently supported types are: - TileWMS - Group - OSM - ImageWMS @option {Object} sourceOptions The options to pass to the openlayers source. This is specific to the type of openlayers layer source. @description The `LayerOptions` object is similar to the default openlayers layer options and can include any properties accepted by the layer constructor. Each layer requires the properties `type` and `sourceOptions`. The only exception is the layer type `group` which does not require the `sourceOptions`. Additional properties are documented by the [openlayers layer base api docs](http://openlayers.org/en/master/apidoc/ol.layer.Base.html) New layer types can easily be added to the LayerFactory, or the layer object itself can be provided. The layer factory automatically checks to see if the object is an instance of ol.layer before generating a new one.
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin>>n; if(n&1) printf("1\n"); else printf("2\n"); return 0; }
<?php namespace Sylius\Bundle\ResourceBundle\Controller; use Sylius\Bundle\ResourceBundle\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\PropertyAccess\PropertyAccess; class ParametersParser { /** * @var ExpressionLanguage */ private $expression; public function __construct(ExpressionLanguage $expression) { $this->expression = $expression; } /** * @param array $parameters * @param Request $request * * @return array */ public function parse(array &$parameters, Request $request) { foreach ($parameters as $key => $value) { if (is_array($value)) { $parameters[$key] = $this->parse($value, $request); } if (is_string($value) && 0 === strpos($value, '$')) { $parameters[$key] = $request->get(substr($value, 1)); } if (is_string($value) && 0 === strpos($value, 'expr:')) { $parameters[$key] = $this->expression->evaluate(substr($value, 5)); } } return $parameters; } /** * @param array $parameters * @param object $resource * * @return array */ public function process(array &$parameters, $resource) { $accessor = PropertyAccess::<API key>(); if (empty($parameters)) { return array('id' => $accessor->getValue($resource, 'id')); } foreach ($parameters as $key => $value) { if (is_array($value)) { $parameters[$key] = $this->process($value, $resource); } if (is_string($value) && 0 === strpos($value, 'resource.')) { $parameters[$key] = $accessor->getValue($resource, substr($value, 9)); } } return $parameters; } }
import sys import ceph_medic import logging from ceph_medic import runner, collector from tambo import Transport logger = logging.getLogger(__name__) def as_list(string): if not string: return [] string = string.strip(',') # split on commas string = string.split(',') # strip spaces return [x.strip() for x in string] class Check(object): help = "Run checks for all the configured nodes in a cluster or hosts file" long_help = """ check: Run for all the configured nodes in the configuration Options: --ignore Comma-separated list of errors and warnings to ignore. Loaded Config Path: {config_path} Configured Nodes: {configured_nodes} """ def __init__(self, argv=None, parse=True): self.argv = argv or sys.argv @property def subcommand_args(self): # find where `check` is index = self.argv.index('check') # slice the args return self.argv[index:] def _help(self): node_section = [] for daemon, node in ceph_medic.config.nodes.items(): header = "\n* %s:\n" % daemon body = '\n'.join([" %s" % n for n in ceph_medic.config.nodes[daemon]]) node_section.append(header+body+'\n') return self.long_help.format( configured_nodes=''.join(node_section), config_path=ceph_medic.config.config_path ) def main(self): options = ['--ignore'] config_ignores = ceph_medic.config.file.get_list('check', '--ignore') parser = Transport( self.argv, options=options, check_version=False ) parser.catch_help = self._help() parser.parse_args() ignored_codes = as_list(parser.get('--ignore', '')) # fallback to the configuration if nothing is defined in the CLI if not ignored_codes: ignored_codes = config_ignores if len(self.argv) < 1: return parser.print_help() # populate the nodes metadata with the configured nodes for daemon in ceph_medic.config.nodes.keys(): ceph_medic.metadata['nodes'][daemon] = [] for daemon, nodes in ceph_medic.config.nodes.items(): for node in nodes: node_metadata = {'host': node['host']} if 'container' in node: node_metadata['container'] = node['container'] ceph_medic.metadata['nodes'][daemon].append(node_metadata) collector.collect() test = runner.Runner() test.ignore = ignored_codes results = test.run() runner.report(results) #XXX might want to make this configurable to not bark on warnings for # example, setting forcefully for now, but the results object doesn't # make a distinction between error and warning (!) if results.errors or results.warnings: sys.exit(1)
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Abcoin</source> <translation></translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Abcoin&lt;/b&gt; version</source> <translation>&lt;b&gt;&lt;/b&gt;</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http: This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http: <translation> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http: This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http: </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation></translation> </message> <message> <location line="+0"/> <source>The Abcoin developers</source> <translation>Abcoin-qt </translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation></translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation></translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation></translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation></translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Abcoin 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></translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation></translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Abcoin address</source> <translation></translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation></translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation></translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation></translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation>&amp;</translation> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Abcoin address</source> <translation></translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>&amp;</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Abcoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation></translation> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation> &amp;</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation></translation> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation></translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation> (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation></translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation> %1</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation></translation> </message> <message> <location line="+0"/> <source>Address</source> <translation></translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>()</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation></translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation></translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation></translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation></translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>&lt;br/&gt;&lt;b&gt;10&lt;/&gt;&lt;b&gt;8&lt;/b&gt;</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation></translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation></translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation></translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation></translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation></translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation></translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation></translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation></translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR BITCOINS&lt;/b&gt;!</source> <translation>&lt;b&gt;&lt;/b&gt;</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation></translation> </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></translation> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation></translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation></translation> </message> <message> <location line="-56"/> <source>Abcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source> <translation> </translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation></translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation></translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation></translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation></translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation></translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation></translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation></translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>&amp;...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation></translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation></translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation></translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation></translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation></translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation></translation> </message> <message> <location line="+4"/> <source>Show information about Abcoin</source> <translation></translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation> &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>...</translation> </message> <message> <location line="-347"/> <source>Send coins to a Abcoin address</source> <translation></translation> </message> <message> <location line="+49"/> <source>Modify configuration options for Abcoin</source> <translation></translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation></translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation></translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>&amp;</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation></translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>&amp;...</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>Abcoin</source> <translation></translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation></translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation>&amp;</translation> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation>&amp;</translation> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation>&amp;</translation> </message> <message> <location line="+22"/> <source>&amp;About Abcoin</source> <translation>&amp;</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp; / </translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation></translation> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation></translation> </message> <message> <location line="+7"/> <source>Sign messages with your Abcoin addresses to prove you own them</source> <translation></translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Abcoin addresses</source> <translation></translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation></translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+47"/> <source>Abcoin client</source> <translation></translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Abcoin network</source> <translation><numerusform>%n</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation>No block source available...</translation> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation>%1 / %2 </translation> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation> %1 </translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation><numerusform>%n </numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n </numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation><numerusform>%n </numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation> %1 </translation> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation> %1</translation> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation></translation> </message> <message> <location line="+22"/> <source>Error</source> <translation></translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation></translation> </message> <message> <location line="+3"/> <source>Information</source> <translation></translation> </message> <message> <location line="+70"/> <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>%1</translation> </message> <message> <location line="-140"/> <source>Up to date</source> <translation></translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation></translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation></translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation></translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>: %1 : %2 : %3 : %4 </translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>URI </translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Abcoin address or malformed URI parameters.</source> <translation>URIURI</translation> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>&lt;b&gt;&lt;/b&gt;&lt;b&gt;&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>&lt;b&gt;&lt;/b&gt;&lt;b&gt;&lt;/b&gt;</translation> </message> <message> <location filename="../abcoin.cpp" line="+111"/> <source>A fatal error occurred. Abcoin can no longer continue safely and will quit.</source> <translation></translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation></translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation></translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation></translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;</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></translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation></translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation></translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation></translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation></translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation> &quot;%1&quot; </translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Abcoin address.</source> <translation> &quot;%1&quot; .</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation></translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Abcoin-Qt</source> <translation>Abcoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation></translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation></translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation></translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>UI</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>, &quot;de_DE&quot; (: )</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation> </translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation> (: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation></translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;</translation> </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.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation> &amp;</translation> </message> <message> <location line="+31"/> <source>Automatically start Abcoin after logging in to the system.</source> <translation></translation> </message> <message> <location line="+3"/> <source>&amp;Start Abcoin on system login</source> <translation>&amp;</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation></translation> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation></translation> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>&amp;</translation> </message> <message> <location line="+6"/> <source>Automatically open the Abcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation> UPnP </translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation> &amp;UPnP </translation> </message> <message> <location line="+7"/> <source>Connect to the Abcoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>(Tor)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>&amp;Socks:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>&amp;IP:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>IP ( 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>( 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>Socks &amp;</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>Socks ( 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation></translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;</translation> </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></translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation></translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>&amp;:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Abcoin.</source> <translation></translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation></translation> </message> <message> <location line="+9"/> <source>Whether to show Abcoin addresses in the transaction list or not.</source> <translation></translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation></translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation></translation> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation></translation> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation></translation> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation></translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Abcoin.</source> <translation></translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation></translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation></translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Abcoin network after a connection is established, but this process has not completed yet.</source> <translation>. .</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation></translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation></translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation></translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation></translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation></translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation></translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>, </translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation></translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start abcoin: click-to-pay handler</source> <translation></translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation></translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation></translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation></translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation></translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation></translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation> URI .</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation></translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>URI , /.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation></translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG(*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation></translation> </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="+339"/> <source>N/A</source> <translation></translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation></translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>OpenSSL</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation></translation> </message> <message> <location line="+29"/> <source>Network</source> <translation></translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation></translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation></translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation></translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation></translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation></translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation></translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation></translation> </message> <message> <location line="+7"/> <source>Show the Abcoin-Qt help message to get a list with possible Abcoin command-line options.</source> <translation>Bitcoin</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>&amp;</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation></translation> </message> <message> <location line="-104"/> <source>Abcoin - Debug window</source> <translation> - </translation> </message> <message> <location line="+25"/> <source>Abcoin Core</source> <translation></translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation></translation> </message> <message> <location line="+7"/> <source>Open the Abcoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation></translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation></translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Abcoin RPC console.</source> <translation> RPC .</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>, &lt;b&gt;Ctrl-L&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation> &lt;b&gt;help&lt;/b&gt; .</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation></translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation></translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation></translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation></translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation> &amp;</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation></translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation></translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation></translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation></translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation> %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation> </translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation></translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation></translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation> %1 </translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>, .</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation></translation> </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>: . </translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation></translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation></translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>&amp;</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. <API key>)</source> <translation> ( <API key>)</translation> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation></translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation></translation> </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></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></translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Abcoin address (e.g. <API key>)</source> <translation> (: <API key>)</translation> </message> </context> <context> <name><API key></name> <message> <location filename="../forms/<API key>.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation> - /</translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>&amp;</translation> </message> <message> <location line="+6"/> <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></translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. <API key>)</source> <translation>(: <API key>)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation></translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation></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></translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation></translation> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation></translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Abcoin address</source> <translation></translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation></translation> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation></translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation> &amp;</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>&amp;</translation> </message> <message> <location line="+6"/> <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></translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. <API key>)</source> <translation>(: <API key>)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Abcoin address</source> <translation></translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation></translation> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation></translation> </message> <message> <location filename="../<API key>.cpp" line="+27"/> <location line="+3"/> <source>Enter a Abcoin address (e.g. <API key>)</source> <translation> (: <API key>)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>““</translation> </message> <message> <location line="+3"/> <source>Enter Abcoin signature</source> <translation></translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation></translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation></translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation></translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation></translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation></translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation></translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation></translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation></translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation></translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation></translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation></translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation></translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Abcoin developers</source> <translation>Abcoin-qt </translation> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation> %1 </translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1 / </translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 </translation> </message> <message> <location line="+18"/> <source>Status</source> <translation></translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform> %n </numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation></translation> </message> <message> <location line="+7"/> <source>Source</source> <translation></translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation></translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation></translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation></translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation></translation> </message> <message> <location line="-2"/> <source>label</source> <translation></translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation></translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform> %n </numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation></translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation></translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation></translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation></translation> </message> <message> <location line="+6"/> <source>Message</source> <translation></translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation></translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 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 &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>120“”</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation></translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation></translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation></translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation></translation> </message> <message> <location line="+1"/> <source>true</source> <translation></translation> </message> <message> <location line="+0"/> <source>false</source> <translation></translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, </translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation><numerusform>Open for %n more block</numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation></translation> </message> </context> <context> <name><API key></name> <message> <location filename="../forms/<API key>.ui" line="+14"/> <source>Transaction details</source> <translation></translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation></translation> </message> </context> <context> <name><API key></name> <message> <location filename="../<API key>.cpp" line="+225"/> <source>Date</source> <translation></translation> </message> <message> <location line="+0"/> <source>Type</source> <translation></translation> </message> <message> <location line="+0"/> <source>Address</source> <translation></translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation></translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation><numerusform>Open for %n more block</numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation> %1 </translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation> (%1 )</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation> (%1 / %2 )</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation> (%1 )</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation><numerusform> %n </numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation></translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation></translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation></translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation></translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation></translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation></translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation></translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(n/a)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation> </translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation></translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation></translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation></translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation></translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation></translation> </message> <message> <location line="-15"/> <source>Today</source> <translation></translation> </message> <message> <location line="+1"/> <source>This week</source> <translation></translation> </message> <message> <location line="+1"/> <source>This month</source> <translation></translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation></translation> </message> <message> <location line="+1"/> <source>This year</source> <translation></translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation></translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation></translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation></translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation></translation> </message> <message> <location line="+1"/> <source>Other</source> <translation></translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation></translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation></translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation></translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation></translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation></translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation></translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation></translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation></translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation></translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>(*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation></translation> </message> <message> <location line="+1"/> <source>Date</source> <translation></translation> </message> <message> <location line="+1"/> <source>Type</source> <translation></translation> </message> <message> <location line="+1"/> <source>Label</source> <translation></translation> </message> <message> <location line="+1"/> <source>Address</source> <translation></translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation></translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation></translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation> %1</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation></translation> </message> <message> <location line="+8"/> <source>to</source> <translation></translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation></translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation></translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation></translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>(*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation></translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>.</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation></translation> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation></translation> </message> </context> <context> <name>abcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>Abcoin version</source> <translation></translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation></translation> </message> <message> <location line="-29"/> <source>Send command to -server or bitcoind</source> <translation> bitcoind </translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation> </translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation> </translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation> </translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: abcoin.conf)</source> <translation> ( abcoin.conf) </translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: bitcoind.pid)</source> <translation> pid ( bitcoind.pid) </translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation> </translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation> (: 25MB)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 8333 or testnet: 18333)</source> <translation> &lt;port&gt; (: 8333 or testnet: 18333)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation> &lt;n&gt; (: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>, </translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation></translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Threshold for disconnecting misbehaving peers (: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Number of seconds to keep misbehaving peers from reconnecting (: 86400)</translation> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>RPC%u, IPv4:%s</translation> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332 or testnet: 18332)</source> <translation>JSON-RPC&lt;port&gt; (8332testnet18332)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation> JSON-RPC </translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation> </translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation> </translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation> (: -proxy or -connect 1)</translation> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=bitcoinrpc 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 &quot;Abcoin Alert&quot; admin@foo.com </source> <translation>%s, rpcpassword: %s : rpcuser=bitcoinrpc rpcpassword=%s () ! ! : alertnotify=echo %%s | mail -s &quot;Abcoin Alert&quot; admin@foo.com </translation> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>IPv6RPC %u IPv4: %s</translation> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation>IPIPv6[host]:port </translation> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Abcoin is probably already running.</source> <translation> %s</translation> </message> <message> <location line="+3"/> <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>wallet.dat</translation> </message> <message> <location line="+4"/> <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>%s</translation> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation> %s </translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation> ( %s )</translation> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</translation> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation> - - </translation> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>-paytxfee </translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation></translation> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Abcoin will not work properly.</source> <translation></translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>wallet.dat</translation> </message> <message> <location line="+3"/> <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>wallet.dat! %s{timestamp}.bak </translation> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>wallet.dat</translation> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation></translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation></translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation> -reindex</translation> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>IP(: -externalip 1)</translation> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation></translation> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation></translation> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation>Error initializing wallet database environment %s!</translation> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation></translation> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation></translation> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation>!</translation> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation></translation> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation> -listen=0 </translation> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation>coin</translation> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation></translation> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation></translation> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation>DNS(1 -connect )</translation> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation>(2880=)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation>How thorough the block verification is (0-4, default: 3)</translation> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>blk000??.dat</translation> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation> RPC 4</translation> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation>...</translation> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation>...</translation> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation>blk000??.dat</translation> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation></translation> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation> -tor &apos;%s&apos; </translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation>(0)</translation> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>&lt;n&gt;*1000 (5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>&lt;n&gt;*1000 (1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation></translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>&lt;net&gt;(IPv4, IPv6 Tor)</translation> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation> -debug* </translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation></translation> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation></translation> </message> <message> <location line="+5"/> <source>SSL options: (see the Abcoin Wiki for SSL setup instructions)</source> <translation>SSL(Bitcoin WikiSSL)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>Socks (4 5, : 5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>/debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>/ debugger</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>(250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>(:0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>debug.log(no-debug1)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>(5000)</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation></translation> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>UPnp(: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>UPnp(: 1)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>( -proxy)</translation> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>JSON-RPC </translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation></translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation></translation> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation>You need to rebuild the databases using -reindex to change -txindex</translation> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat</translation> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>JSON-RPC </translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>IPJSON-RPC </translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>IP &lt;ip&gt; (: 127.0.0.1) </translation> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation> ( %s )</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation></translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation> &lt;n&gt; (: 100) </translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation> </translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation> JSON-RPC OpenSSL (https)</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation> ( server.cert) </translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation> ( server.pem) </translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation> ( TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH) </translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation> </translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation> %s ( %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation> socks </translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation> -addnode, -seednode -connectDNS</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>wallet.dat</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Abcoin</source> <translation>wallet.datBitcoin</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Abcoin to complete</source> <translation>Bitcoin</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation> -onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>socks: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation> -bind : &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation> -externalip : &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation> -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation></translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation></translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation></translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Abcoin is probably already running.</source> <translation> %s . .</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>1KB</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation></translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation></translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation></translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation> %s </translation> </message> <message> <location line="-74"/> <source>Error</source> <translation></translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation> rpcpassword : %s .</translation> </message> </context> </TS>
package java.beans; import java.lang.ref.Reference; /** * A BeanDescriptor provides global information about a "bean", * including its Java class, its displayName, etc. * <p> * This is one of the kinds of descriptor returned by a BeanInfo object, * which also returns descriptors for properties, method, and events. */ public class BeanDescriptor extends FeatureDescriptor { private Reference beanClassRef; private Reference customizerClassRef; /** * Create a BeanDescriptor for a bean that doesn't have a customizer. * * @param beanClass The Class object of the Java class that implements * the bean. For example sun.beans.OurButton.class. */ public BeanDescriptor(Class<?> beanClass) { this(beanClass, null); } /** * Create a BeanDescriptor for a bean that has a customizer. * * @param beanClass The Class object of the Java class that implements * the bean. For example sun.beans.OurButton.class. * @param customizerClass The Class object of the Java class that implements * the bean's Customizer. For example sun.beans.OurButtonCustomizer.class. */ public BeanDescriptor(Class<?> beanClass, Class<?> customizerClass) { beanClassRef = createReference(beanClass); customizerClassRef = createReference(customizerClass); String name = beanClass.getName(); while (name.indexOf('.') >= 0) { name = name.substring(name.indexOf('.')+1); } setName(name); } /** * Gets the bean's Class object. * * @return The Class object for the bean. */ public Class<?> getBeanClass() { return (Class)getObject(beanClassRef); } /** * Gets the Class object for the bean's customizer. * * @return The Class object for the bean's customizer. This may * be null if the bean doesn't have a customizer. */ public Class<?> getCustomizerClass() { return (Class)getObject(customizerClassRef); } /* * Package-private dup constructor * This must isolate the new object from any changes to the old object. */ BeanDescriptor(BeanDescriptor old) { super(old); beanClassRef = old.beanClassRef; customizerClassRef = old.customizerClassRef; } }
class Stick < TriMesh # line => Line, :thickness => Numeric, :segments => Fixum def initialize(line, params = {}) raise StandardError, "first value have to be a FiniteLine" if not line.kind_of? FiniteLine raise StandardError, ":thickness have to be a Numeric" if not params[:thickness].nil? and not (params[:thickness].kind_of? Numeric) raise StandardError, ":segments have to be a Fixnum" if not params[:segments].nil? and not (params[:segments].is_a? Fixnum) raise StandardError, ":segments have to be greater than 2" if not params[:segments].nil? and not (params[:segments] > 2) r = params[:thickness].nil? ? 0.5 : (params[:thickness] / 2) s = params[:segments].nil? ? 4 : params[:segments] h = line.length dir = line.end_point - line.start_point cyl_dir = Vector3.new(0, 0, h) x_rot = dir.angle(cyl_dir) * 180 / Math::PI z_rot = Vector3.new(dir.x, dir.y, 0).angle(Vector3.new(dir.x, 0, 0)) * 180 / Math::PI stick = Cylinder.new :radius => r, :height => h, :segments => s stick = rotate stick, :axis => :y, :degree => x_rot, :vector => Vector3.new(0,0,0) stick = rotate stick, :axis => :z, :degree => -z_rot, :vector => Vector3.new(0,0,0) stick = translate stick, :vector => line.start_point super(stick.vertices, stick.tri_indices) end end
<! Unsafe sample input : Get a serialize string in POST and unserialize it Uses a number_int_filter via filter_var function File : unsafe, use of untrusted data in a script <!--Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following three paragraphs appear in all copies of this software. IN NO EVENT SHALL AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTHORS SPECIFICALLY DISCLAIM ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND AUTHORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. <!DOCTYPE html> <html> <head> <script> <?php $string = $_POST['UserData'] ; $tainted = unserialize($string); $sanitized = filter_var($tainted, <API key>); if (filter_var($sanitized, FILTER_VALIDATE_INT)) $tainted = $sanitized ; else $tainted = "" ; //flaw echo $tainted ; ?> </script> </head> <body onload="xss()"> <h1>Hello World!</h1> </body> </html>
`Paoding-Rose` `Paoding-Rose``Rose` RoseJavaRosewebGrailsRoseJavaRose RoseRose RoseSpring @Autowired Rose applicationContext-xxx.xmlRose SpringSpringSpring * [http: * [http: * [https:
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace GUI { static class Program { <summary> The main entry point for the application. </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.<API key>(false); Application.Run(new LogPage()); } } }
using NetOffice.ExcelApi; namespace Sample.AddIn.Ribbon { public class AddinContext { public static Application ExcelApp { get; set; } } }
import React from 'react'; import Navigation from './Navigation'; import { Grid, Row, Column } from '../../../lib'; let PageLayout = ({ children }) => ( <Grid> <Row column={1}> <Column> <Navigation /> </Column> </Row> <div className="ts fluid container"> <div className="ts container"> {children} </div> </div> </Grid> ); export default PageLayout;
#include "pch.h" #include "Bullet.h" #include "SpriteManager.h" #include "Collider.h" namespace DirectXGame { const std::float_t Bullet::<API key> = -512 + 124 + 3; const std::float_t Bullet::<API key> = -384 + 47 + 3; const std::float_t Bullet::<API key> = 512 - 128 - 3; const std::float_t Bullet::<API key> = -384 + 47 + 3; const float_t Bullet::sColliderOffsetX = -3; const float_t Bullet::sColliderOffsetY = -3; const uint32_t Bullet::sColliderWidth = 6; const uint32_t Bullet::sColliderHeight = 6; const std::uint32_t Bullet::sMaxBulletCount = 3; const std::float_t Bullet::sBulletSpeed = 520.0f; const std::float_t Bullet::sFiringAngleOffset = 65.0f; const std::float_t Bullet::sBulletReloadTime = 1; const std::float_t Bullet::sMaxBulletHeight = 384 + 3; const double Bullet::sPI = 3.14159265; std::vector<Bullet*> Bullet::sPlayerABullets; std::vector<Bullet*> Bullet::sPlayerBBullets; bool Bullet::sRequiresReloadA = false; bool Bullet::sRequiresReloadB = false; double Bullet::<API key> = 0; double Bullet::<API key> = 0; Bullet::Bullet(BulletOwner owner) : mCanBeFired(true) { AttachCollider(sColliderWidth, sColliderHeight, sColliderOffsetX, sColliderOffsetY); InitializeMembers(owner); AttachSprite(); GetSprite()->SetSprite(SpriteName::Bullet); } void Bullet::Update(const DX::StepTimer& timer) { GameObject::Update(timer); CheckForCanBeFired(); Reload(timer); } void Bullet::Fire(std::float_t angle, BulletOwner owner) { if (owner == BulletOwner::PlayerA) { auto it = sPlayerABullets.begin(); auto end = sPlayerABullets.end(); if (!sRequiresReloadA) { for (; it != end; ++it) { if ((*it)->mCanBeFired) { FireBullet(angle, **it); sRequiresReloadA = true; break; } } } } else if (owner == BulletOwner::PlayerB) { auto it = sPlayerBBullets.begin(); auto end = sPlayerBBullets.end(); if (!sRequiresReloadB) { for (; it != end; ++it) { if ((*it)->mCanBeFired) { FireBullet(angle, **it); sRequiresReloadB = true; break; } } } } } void Bullet::InCollision(Collider& otherCollider) { if (mOwnerPlayer == BulletOwner::PlayerB && otherCollider.GetColliderTag() == Collider::ColliderTag::Player_A_Plane) { ResetBullet(); } else if (mOwnerPlayer == BulletOwner::PlayerA && otherCollider.GetColliderTag() == Collider::ColliderTag::Player_B_Plane) { ResetBullet(); } } void Bullet::FireBullet(std::float_t angle, Bullet& bullet) { bullet.mCanBeFired = false; angle += sFiringAngleOffset; bullet.SetVelocity(sBulletSpeed * static_cast<float_t>(cos(angle * sPI / 180)), sBulletSpeed * static_cast<float_t>(sin(angle * sPI / 180))); } void Bullet::Reload(const DX::StepTimer& timer) { if (sRequiresReloadA) { std::uint32_t count = static_cast<std::uint32_t>(sPlayerABullets.size()); <API key> += timer.GetElapsedSeconds(); if (<API key> / count >= sBulletReloadTime) { <API key> = 0; sRequiresReloadA = false; } } if (sRequiresReloadB) { std::uint32_t count = static_cast<std::uint32_t>(sPlayerBBullets.size()); <API key> += timer.GetElapsedSeconds(); if (<API key> / count >= sBulletReloadTime) { <API key> = 0; sRequiresReloadB = false; } } } void Bullet::ResetBullet() { mCanBeFired = true; SetVelocity(0, 0); SetPosition(mSpawnPositionX, mSpawnPositionY); } void Bullet::InitializeMembers(BulletOwner owner) { switch (owner) { case Bullet::BulletOwner::PlayerA: mOwnerPlayer = BulletOwner::PlayerA; mSpawnPositionX = <API key>; mSpawnPositionY = <API key>; mTransform.SetPosition(mSpawnPositionX, mSpawnPositionY); sPlayerABullets.push_back(this); GetCollider()->SetColliderTag(Collider::ColliderTag::Player_A_Bullet); break; case Bullet::BulletOwner::PlayerB: mOwnerPlayer = BulletOwner::PlayerB; mSpawnPositionX = <API key>; mSpawnPositionY = <API key>; mTransform.SetPosition(mSpawnPositionX, mSpawnPositionY); sPlayerBBullets.push_back(this); GetCollider()->SetColliderTag(Collider::ColliderTag::Player_B_Bullet); break; default: break; } } void DirectXGame::Bullet::CheckForCanBeFired() { if (!mCanBeFired) { if (mTransform.Position().y > sMaxBulletHeight) { ResetBullet(); } } } }
// Analysis package // e-mail: miguel.ramos.pernas@cern.ch // Description: // Implements the class to make one-dimensional adaptive binning // histograms. The construction can be made given a set of vectors // or a TTree object and the name of the leaves. #ifndef ADAPTIVE_BINNING_1D #define ADAPTIVE_BINNING_1D #include "AdaptiveBinning.hpp" #include "Definitions.hpp" #include "Bin1D.hpp" #include "TH1D.h" #include "TTree.h" #include <iostream> //<API key> namespace isis { class AdaptiveBinning1D: public AdaptiveBinning { public: // Main constructor AdaptiveBinning1D() : AdaptiveBinning() { }; // Constructor given vectors of values AdaptiveBinning1D( size_t occ, double vmin, double vmax, const Doubles &values, const Doubles &weights = Doubles() ); // Destructor ~AdaptiveBinning1D() { }; // Return an empty histogram with the adaptive binning structure TH1D* getStruct( const char *name = "", const char *title = "" ) const; // Returns the maximum value for the histogram range inline const double getMax() const { return fMax; } // Returns the minimum value for the histogram range inline const double getMin() const { return fMin; } protected: // Maximum of the histogram double fMax; // Minimum of the histogram double fMin; }; } #endif
'use strict'; var tests = Object.keys(window.__karma__.files).filter(function (file) { return (/\.spec\.js$/.test(file)); }); requirejs.config({ // Karma serves files from '/base' baseUrl: '/base', paths: { 'flight': 'bower_components/flight', 'flight-attach': 'lib/flight-attach' }, // ask Require.js to load these files (all our tests) deps: tests, // start test run, once Require.js is done callback: window.__karma__.start });
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>CMD xref</title> <link type="text/css" rel="stylesheet" href="../../stylesheet.css" /> </head> <body> <div id="overview"><a href="../../../apidocs/app/cmd/CMD.html">View Javadoc</a></div><pre> <a class="jxr_linenumber" name="L1" href="#L1">1</a> <strong class="jxr_keyword">package</strong> app.cmd; <a class="jxr_linenumber" name="L2" href="#L2">2</a> <a class="jxr_linenumber" name="L3" href="#L3">3</a> <strong class="jxr_keyword">import</strong> app.MyImage; <a class="jxr_linenumber" name="L4" href="#L4">4</a> <strong class="jxr_keyword">import</strong> tools.TwoPoint; <a class="jxr_linenumber" name="L5" href="#L5">5</a> <a class="jxr_linenumber" name="L6" href="#L6">6</a> <em class="jxr_javadoccomment">/**</em> <a class="jxr_linenumber" name="L7" href="#L7">7</a> <em class="jxr_javadoccomment"> *</em> <a class="jxr_linenumber" name="L8" href="#L8">8</a> <em class="jxr_javadoccomment"> * Interface which is designed for manipulating MyImage objects using</em> <a class="jxr_linenumber" name="L9" href="#L9">9</a> <em class="jxr_javadoccomment"> * information from TwoPoint.</em> <a class="jxr_linenumber" name="L10" href="#L10">10</a> <em class="jxr_javadoccomment"> *</em> <a class="jxr_linenumber" name="L11" href="#L11">11</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L12" href="#L12">12</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">interface</strong> <a href="../../app/cmd/CMD.html">CMD</a> { <a class="jxr_linenumber" name="L13" href="#L13">13</a> <a class="jxr_linenumber" name="L14" href="#L14">14</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">void</strong> execute(<a href="../../app/MyImage.html">MyImage</a> img, <a href="../../tools/TwoPoint.html">TwoPoint</a> area); <a class="jxr_linenumber" name="L15" href="#L15">15</a> <a class="jxr_linenumber" name="L16" href="#L16">16</a> } </pre> <hr/> <div id="footer">Copyright & </body> </html>
class Doogle::Displays::<API key> < Doogle::DoogleController filter_access_to :all, :context => :<API key> def index @display = parent_object @spec_versions = @display.spec_versions.by_version_desc.paginate(:page => params[:page], :per_page => 20) end def new @display = parent_object @spec_version = build_object end def create @display = parent_object @spec_version = build_object @spec_version.updated_by = current_user if @spec_version.save @spec_version.maybe_sync_to_web redirect_to <API key>(@display) else render :action => 'new' end end def edit @display = parent_object @spec_version = current_object end def update @display = parent_object @spec_version = current_object @spec_version.updated_by = current_user if @spec_version.update_attributes(params[model_name]) @spec_version.maybe_sync_to_web redirect_to <API key>(@display) else render :action => 'edit' end end protected def model_name :spec_version end def current_object @current_object ||= Doogle::SpecVersion.find(params[:id]) end def parent_object @parent_object ||= Doogle::Display.find(params[:display_id]) end def build_object @current_object ||= parent_object.spec_versions.build(params[model_name]) end end
<!DOCTYPE html> <html> <head> <title>Rescued by Pebble Settings</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="//code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css" /> <script src="//code.jquery.com/jquery-1.9.1.min.js"></script> <script src="//code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script> </head> <body> <div data-role="page" id="main"> <div data-role="header" class="jqm-header"> <h1>Rescued by Pebble Settings</h1> <h2>v1</h2> </div> <div data-role="content"> <div data-role="fieldcontain"> <label for="api-key">RescueTime API key:</label> <input type="text" id="api-key" name="api-key"/> </div> </div> <div class="ui-body ui-body-b"> <fieldset class="ui-grid-a"> <div class="ui-block-a"><button type="submit" data-theme="d" id="button-cancel">Cancel</button></div> <div class="ui-block-b"><button type="submit" data-theme="a" id="button-submit">Save</button></div> </fieldset> </div> </div> <script> function getSettings() { return { 'apiKey': $('#api-key').val() }; } function saveSettings(settings) { localStorage.setItem("apiKey", settings.apiKey); } var apiKey; $(document).ready(function () { console.log("Loaded settings page, initialising values!"); apiKey = localStorage.getItem("apiKey"); if(apiKey) { $('#api-key').val(apiKey); } }); $(function() { $('#button-cancel').click(function() { document.location = 'pebblejs://close'; }); $('#button-submit').click(function() { var settings = getSettings(); saveSettings(settings); console.log("settings: " + JSON.stringify(settings)); document.location = 'pebblejs://close#' + encodeURIComponent(JSON.stringify(settings)); }); }); </script> </body> </html>
/* eslint no-process-env: 0 */ import ReadableId from 'funky-sloth-42'; import Express from 'express'; import Bunyan from 'bunyan'; import bunyantcp from 'bunyan-logstash-tcp'; import NodeGeocoder from 'node-geocoder'; import Env from 'require-env'; import expressValidator from 'express-validator'; import bodyParser from 'body-parser'; import Elica from 'elica.js'; import Weather from '../weather'; import AppSingleton from './appsingleton'; import createLogger from './log/createLogger'; function config() { const sharedInstance = AppSingleton.getInstance(); sharedInstance.serviceName = process.env.SERVICE_NAME || 'elica-weather'; sharedInstance.serverId = ReadableId(); sharedInstance.bot = new Elica.Bot({ intents: require('./intents.json'), triggers: require('./triggers.json'), config: require('./config.json'), routePrefix: '/weather', key: process.env.API_KEY || '<API key>' }); sharedInstance.bunyan = Bunyan.createLogger({ name: sharedInstance.serviceName, serializers: Bunyan.stdSerializers, streams: [ { stream: process.stdout, level: process.env.STDOUT_LEVEL || 'debug' }, // level: 'debug', // type: 'raw', // stream: bunyantcp.createStream({ // host: process.env.LOGSTASH_HOST || '127.0.0.1', // port: process.env.LOGSTASH_PORT || 5000 ], index: `${sharedInstance.serviceName}-${sharedInstance.serverId}` }); sharedInstance.log = createLogger(sharedInstance.bunyan); sharedInstance.geocoder = NodeGeocoder({ provider: 'google', httpAdapter: 'https', apiKey: Env.require('GOOGLE_API_KEY'), formatter: null }); sharedInstance.darksky = `https://api.darksky.net/forecast/${Env.require('DARKSKY_API_KEY')}/`; // Creating a server instance sharedInstance.server = Express(); sharedInstance.server.use(bodyParser.json()); sharedInstance.server.use(expressValidator()); // Attach bot sharedInstance.server.use(sharedInstance.bot.handler.bind(sharedInstance.bot)); sharedInstance.bot.intent('<API key>', Weather.runIntent); sharedInstance.bot.intent('text', Weather.processText); sharedInstance.bot.session('LOCATION', Weather.saveLocation); } export default { config };
class TweetsController < <API key> def index if logged_in? @campaign = Campaign.find(params[:campaign_id]) else redirect_to root_url end end end
var EventEmitter = require('events').EventEmitter, util = require('util') var xycrypt = require('./xycrypt') //var xycrypt = require('../build/Release/xycrypt') function Decrypter() { } util.inherits(Decrypter, EventEmitter) Decrypter.prototype.decrypt = function(buffer, data) { var out = null, error data = data || {} try { out = xycrypt.decrypt(buffer) } catch (e) { error = e } if (out) { data.pkx = out this.emit('pkx', out, data) } else { this.emit('pkx_failed', error, data) } } exports.Decrypter = Decrypter
title: "39 - Installation under Red Hat" menu: main: name: "Installation under Red Hat" identifier: "sysadmin/installation/redhat" parent: "sysadmin" weight: -999 # Installation Please follow the [prerequisites](../../requirements) for the installation in advance. This is the installation under Red Hat Enterprise Linux (RHEL) 8.1. For Debian and Ubuntu see [here](../). ## podman plugin easydb needs translation of DNS names into container IP addresses, inside containers. Therefore install the [dnsname plugin](https://github.com/containers/dnsname/blob/master/README_PODMAN.md). First make sure that you have up to date packages, or else the dnsname plugin might not work: dnf update Then, install the dnsname plugin: dnf install <API key> dnsmasq dnf module install go-toolset dnf group install "Development Tools" cd /usr/src git clone https://github.com/containers/dnsname cd dnsname make all make install PREFIX=/usr this creates `/usr/libexec/cni/dnsname` ## create container network podman network create easydb_default this creates `/etc/cni/net.d/easydb_default.conflist`. If this file does not contain the following: { "type": "dnsname", "domainName": "dns.podman" }, then your version of <API key> may not be new enough. `dns.podman` seems to be just an arbitrary name, though. Add into the file `/etc/containers/libpod.conf` ... cni_default_network = "easydb_default" or else the mapped ports are not working (`curl <API key>` works, but not `curl main-host-IP`, both from the podman host system) ## Download the easydb software to your server {#download} You will receive from us the username, password and the name of your "solution". Here is an example: bash KONTONAME=kunde1234 SOLUTION=base mkdir /root/.containers podman login --username=$KONTONAME --authfile=/root/.containers/auth.json docker.easydb.de The above command will request you to enter your password. Do not forget to replace `kunde1234`. The following commands will then be authorized. Please continue with them: bash podman pull --authfile=/root/.containers/auth.json docker.easydb.de/pf/server-$SOLUTION podman pull --authfile=/root/.containers/auth.json docker.easydb.de/pf/webfrontend podman pull --authfile=/root/.containers/auth.json docker.easydb.de/pf/elasticsearch podman pull --authfile=/root/.containers/auth.json docker.easydb.de/pf/eas podman pull --authfile=/root/.containers/auth.json docker.easydb.de/pf/postgresql-11 podman pull --authfile=/root/.containers/auth.json docker.easydb.de/pf/fylr If you bought the pdf-creator plugin you also have to pull the `chrome` container image: bash podman pull --authfile=/root/.containers/auth.json docker.easydb.de/pf/chrome Between 4 to 10 gigabytes are thus downloaded. Please provide sufficient space under `/var/lib/containers`. Please note: Whenever you want to download easydb updates, repeat the above commands. To complete the update process, you then just need to re-create the containers (see below, `maintain restart`). Take care: The storage requirement will quickly increase with updates if old container data and old container images are not cleaned up regularly. ## Define the data store {#mount} In this example, we use the directory `/srv/easydb` for all data that is generated. Please adjust the first line to your requirements: bash BASEDIR=/srv/easydb mkdir -p $BASEDIR/config cd $BASEDIR mkdir -p webfrontend eas/{lib,log,tmp} elasticsearch/var pgsql/{etc,var,log,backup} easydb-server/{nginx-log,var} fylr/objectstore chmod a+rwx easydb-server/nginx-log elasticsearch/var eas/tmp; chmod o+t eas/tmp touch config/eas.yml config/fylr.yml config/elasticsearch.yml chown 1000:1000 fylr/objectstore chown 33:33 eas/{lib,log} ## Adjustments Adjustments are made in the directory $BASEDIR/config. Please add at least the following lines to `$BASEDIR/config/easydb-server.yml`: yaml server: external_url: http://hostname.as.seen.in.browser.example.com extension: <API key>: true Please note: The last two lines are only valid for the "base" solution ([documented here](../../../solutions/base)). trust between the components podman network inspect easydb_default|sed -n 's/.*"subnet":/trusted-net:/p'|tr -d '"' > config/eas.yml results in an `eas.yml` like: trusted-net: 10.89.0.0/24 elasticsearch memory bash echo vm.max_map_count=262144 > /etc/sysctl.d/<API key>.conf sysctl --load /etc/sysctl.d/<API key>.conf ## container creation scripts The components of the easydb are separated into one container each and are created with one command per container. In this example, we put them into separate scripts: bash BASEDIR=/srv/easydb SOLUTION=base cat >$BASEDIR/run-pgsql.sh <<EOFEOFEOF if podman run -d -ti \\ --name easydb-pgsql \\ --net easydb_default \\ --volume=$BASEDIR/config:/config:z \\ --volume=$BASEDIR/pgsql/etc:/etc/postgresql:Z \\ --volume=$BASEDIR/pgsql/log:/var/log/postgresql:Z \\ --volume=$BASEDIR/pgsql/var:/var/lib/postgresql:Z \\ --volume=$BASEDIR/pgsql/backup:/backup:Z \\ --restart=always \\ docker.easydb.de/pf/postgresql-11 then /srv/easydb/maintain systemd-integrate easydb-pgsql fi EOFEOFEOF chmod a+rx $BASEDIR/run-pgsql.sh cat >$BASEDIR/run-elasticsearch.sh <<EOFEOFEOF if podman run -d -ti \\ --name <API key> \\ --net easydb_default \\ --volume=$BASEDIR/config:/config:z \\ --volume=$BASEDIR/elasticsearch/var:/var/lib/elasticsearch:Z \\ --restart=always \\ docker.easydb.de/pf/elasticsearch then /srv/easydb/maintain systemd-integrate <API key> fi EOFEOFEOF chmod a+rx $BASEDIR/run-elasticsearch.sh cat >$BASEDIR/run-eas.sh <<EOFEOFEOF if podman run -d -ti \\ --name easydb-eas \\ --net easydb_default \\ --volume=$BASEDIR/config:/config:z \\ --volume=$BASEDIR/eas/lib:/var/opt/easydb/lib/eas:Z \\ --volume=$BASEDIR/eas/log:/var/opt/easydb/log/eas:Z \\ --restart=always \\ docker.easydb.de/pf/eas then /srv/easydb/maintain systemd-integrate easydb-eas fi EOFEOFEOF chmod a+rx $BASEDIR/run-eas.sh cat >$BASEDIR/run-server.sh <<EOFEOFEOF if podman run -d -ti \\ --name easydb-server \\ --net easydb_default \\ --cap-add SYS_PTRACE \\ --volume=$BASEDIR/config:/config:z \\ --volume=$BASEDIR/easydb-server/var:/easydb-5/var:Z \\ --volume=$BASEDIR/easydb-server/nginx-log:/var/log/nginx:Z \\ --restart=always \\ --security-opt seccomp=unconfined \\ docker.easydb.de/pf/server-$SOLUTION then /srv/easydb/maintain systemd-integrate easydb-server fi EOFEOFEOF chmod a+rx $BASEDIR/run-server.sh cat >$BASEDIR/run-webfrontend.sh <<EOFEOFEOF if podman run -d -ti \\ --name easydb-webfrontend \\ --net easydb_default \\ --volume=$BASEDIR/config:/config:z \\ -p 80:80 \\ --restart=always \\ docker.easydb.de/pf/webfrontend then /srv/easydb/maintain systemd-integrate easydb-webfrontend fi EOFEOFEOF chmod a+rx $BASEDIR/run-webfrontend.sh cat >$BASEDIR/run-fylr.sh <<EOFEOFEOF if podman run -d -ti \ --name easydb-fylr \\ --net easydb_default \\ --volume=$BASEDIR/config:/config:z \\ --restart=always \\ docker.easydb.de/pf/fylr then /srv/easydb/maintain systemd-integrate easydb-fylr fi EOFEOFEOF chmod a+rx $BASEDIR/run-fylr.sh The call `/srv/easydb/maintain systemd-integrate` ensures that the containers are started together with Linux. These are the dependencies: * easydb-eas depends on easydb-postgresql * easydb-server depends on easydb-postgresql and <API key> * easydb-webfrontend depends on easydb-server During their startup, these containers are waiting for their dependencies to come up. After the dependencies are up, this initial waiting is finished and will not be repeated if the dependencies go down again. Thus, if you e.g. restart easydb-postgresql you have to manually restart easydb-eas and easydb-server (with `systemctl restart easydb-eas easydb-server`). ## maintenance script bash touch $BASEDIR/maintain chmod a+x $BASEDIR/maintain vi $BASEDIR/maintain maintain consists of: bash #!/bin/bash # purpose of this script: execute maintenance tasks around easydb: # - create containers using podman using the run-*.sh scripts ("start") # - integrate with systemd so that containers start during boot # - stop and remove containers and remove them from systemd ("stop") # - backup sql # - update easydb via podman and preserve previous state # - cleanup superfluous podman files ("cleanup") # usage: # $0 status # shows running containers # $0 update # downloads newest easydb version # $0 update-auto # dito plus restart and log into $UPDATELOG # $0 backup # dumps sql into /srv/easydb/pgsql/backup # # is also part of update and update-auto # $0 cleanup # is also part of update and update-auto # $0 systemd-integrate fylr # create & enable service file for running(!) container (e.g. fylr) # $0 stop # stops & removes easydb containers and service-files # # Danger: stop will be in effect even after reboot. # $0 start # calls the run-*sh scripts, which should # # create and start the containers, call systemd-integrate # $0 restart # both of the above # $0 clear_ip_lock abcdef # remove ip reservations for container abcdef # Data directory with the subdirectories "config", "easydb-server", etc.: BASEDIR=/srv/easydb # Which variant of the image easydb-server shall be used: SOLUTION=base # Space-separated list of names of dbs in postgres in container "easydb-pgsql" to dump: DBS="eas easydb5" # Of each DB in $DBS keep this many newest dumps: KEEPDBS=7 # Where to write log messages to while doing update-auto: UPDATELOG=/var/log/easydb-update.log # read local values: [ -e /etc/default/easydb5 ] && . /etc/default/easydb5 ## functions to shorten the script: stop(){ systemctl stop $1 # if systemd-integration somehow does not work, stop it anyway: if /usr/bin/podman ps --format="{{.Names}}" | grep -qw $1; then /usr/bin/podman stop $1 fi } <API key>(){ systemctl disable $1 rm /etc/systemd/system/$1.service systemctl daemon-reload } remove(){ <API key> "$1" if /usr/bin/podman ps -a | grep -q $1; then /usr/bin/podman rm -v $1 else echo "WARNING: no $1 present to remove" fi } get_id(){ /usr/bin/podman inspect $1|sed -n 's/"Id"://p'|tr -d '[:space:]",' } case "$1" in start) set -e $BASEDIR/run-elasticsearch.sh $BASEDIR/run-pgsql.sh $BASEDIR/run-eas.sh $BASEDIR/run-server.sh $BASEDIR/run-webfrontend.sh $BASEDIR/run-fylr.sh ;; stop) if [ -z "$2" ] ; then stop easydb-webfrontend remove easydb-webfrontend stop easydb-server remove easydb-server stop easydb-eas remove easydb-eas stop <API key> remove <API key> stop easydb-fylr remove easydb-fylr stop easydb-pgsql remove easydb-pgsql else stop "$2" remove "$2" fi ;; restart) $0 stop 2>&1 | sed '/Network easydb.* not found/d' $0 start ;; systemd-integrate) if [ -z "$2" ] ; then echo "ERROR: no container given as 2nd argument, ABORTING" exit 14 fi if /usr/bin/podman ps --format="{{.ID}} {{.Names}}" | grep -qw $2; then ID=`get_id $2` /usr/bin/podman generate systemd $2 \ | sed '/^ExecStart=/iExecStartPre=/bin/bash -c "'"$BASEDIR"'/maintain clear_ip_lock '$ID'"' \ > /etc/systemd/system/$2.service systemctl daemon-reload systemctl enable $2 2>&1|grep -vE '^Created ' systemctl start $2 # does not start a 2nd one but instead recognizes that it is started else echo "WARN: no container '$2' running, nothing done" fi ;; <API key>) if [ -z "$2" ] ; then echo "ERROR: no container given as 2nd argument, ABORTING" exit 14 fi <API key> "$2" ;; status) /usr/bin/podman ps ;; update) if $0 backup then $0 tag $0 cleanup $0 pull else echo "ERROR: backup failed - not updating!">&2 fi ;; update-auto) echo ___start___ >> $UPDATELOG date >> $UPDATELOG if $0 backup >> $UPDATELOG then $0 tag >> $UPDATELOG $0 cleanup >> $UPDATELOG $0 pull >> $UPDATELOG date >> $UPDATELOG $0 restart 2>&1 >>$UPDATELOG |tee -a $UPDATELOG |grep -v '^Creating' # prevent lines starting with "Creating" # from reaching cron mails, because # they're neither warnings nor errors #^^^^^^^^^^^^^^^^^ put stderr into LOG #^^^^^^^^^^^^ put stdout into LOG(does NOT affect stderr) #^^^^ put stderr where stdout currently points to. (make it reach cron mails) else echo "ERROR: backup failed - not updating!">> $UPDATELOG echo "ERROR: backup failed - not updating!">&2 fi ;; backup) # do sql backup of all sql dbs $DBS (one per instance and one for eas) # Note: there are only $KEEPDBS kept - repeating this quickly removes all old backups (on this host) ! cd $BASEDIR/pgsql/backup || exit 2 /usr/bin/podman ps|grep -q 'easydb-pgsql$' || exit 3 for DB in $DBS; do $0 sqldump $DB || exit 4 done exit 0 ;; sqldump) # do sql backup of one given sql db name (inside container "easydb-pgsql") DB="$2" TIME=`date +%Y-%m-%d_%Hh%Mm%Ss` FILE=$DB."$TIME".pgdump /usr/bin/podman exec easydb-pgsql pg_dump -U postgres -v -Fc -f /backup/$FILE $DB > $FILE.log 2>&1 EXCODE=$? if [ $EXCODE -gt 0 ] ; then rm $FILE &>/dev/null mv $FILE.log $FILE.log.FAIL &>/dev/null echo "pg_dump $DB exited with $EXCODE. Logfile is $BASEDIR/pgsql/backup/$FILE.log.FAIL" echo "pg_dump $DB exited with $EXCODE. Logfile is $BASEDIR/pgsql/backup/$FILE.log.FAIL" >&2 exit 4 else # rotate so that only the last $KEEPDBS valid dumps remain. Also for logs. ls -1 --color=no $DB.*s.pgdump |sort -r|tail -n +$((KEEPDBS+1))|while read i; do rm $i; done ls -1 --color=no $DB.*s.pgdump.log|sort -r|tail -n +$((KEEPDBS+1))|while read i; do rm $i; done fi exit 0 ;; tag) # tag the current image version as "previous" - good before an update if you want to go back. # Danger: this will overwrite the "previous"ly preserved image version! /usr/bin/podman tag docker.easydb.de/pf/server-$SOLUTION:latest docker.easydb.de/pf/server-$SOLUTION:previous /usr/bin/podman tag docker.easydb.de/pf/webfrontend:latest docker.easydb.de/pf/webfrontend:previous /usr/bin/podman tag docker.easydb.de/pf/eas:latest docker.easydb.de/pf/eas:previous /usr/bin/podman tag docker.easydb.de/pf/elasticsearch:latest docker.easydb.de/pf/elasticsearch:previous /usr/bin/podman tag docker.easydb.de/pf/postgresql-11:latest docker.easydb.de/pf/postgresql-11:previous /usr/bin/podman tag docker.easydb.de/pf/fylr:latest docker.easydb.de/pf/fylr:previous ;; pull) /usr/bin/podman pull -q --authfile=/root/.containers/auth.json docker.easydb.de/pf/server-$SOLUTION /usr/bin/podman pull -q --authfile=/root/.containers/auth.json docker.easydb.de/pf/webfrontend /usr/bin/podman pull -q --authfile=/root/.containers/auth.json docker.easydb.de/pf/elasticsearch /usr/bin/podman pull -q --authfile=/root/.containers/auth.json docker.easydb.de/pf/eas /usr/bin/podman pull -q --authfile=/root/.containers/auth.json docker.easydb.de/pf/postgresql-11 /usr/bin/podman pull -q --authfile=/root/.containers/auth.json docker.easydb.de/pf/fylr ;; clear_ip_lock) # delete files that lock IP addresses for a given container-id if [ -z "$2" ] ; then echo "WARNING: no container id given" >&2 exit 0 fi
package seedu.address.logic.parser; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static seedu.address.commons.time.<API key>.UNIX_EPOCH; import static seedu.address.testutil.TestUtil.assertThrows; import java.time.LocalDate; import java.time.LocalTime; import java.util.Optional; import org.junit.Before; import org.junit.Test; import seedu.address.logic.commands.Command; import seedu.address.logic.commands.EditDeadlineCommand; public class <API key> { private EditDeadlineParser parser; @Before public void setupParser() { parser = new EditDeadlineParser(UNIX_EPOCH); } @Test public void parse() throws ParseException { // No modifications assertParse("d1", 1, null, null); // Date assertParse("d2 dd-4/5/2016", 2, LocalDate.of(2016, 5, 4), null); // Time assertParse("d3 dt-5:32am", 3, null, LocalTime.of(5, 32)); // Date and Time assertParse("d4 dd-7/8 dt-4:00pm", 4, LocalDate.of(1970, 8, 7), LocalTime.of(16, 0)); // Index cannot be negative assertIncorrect("d-1"); // Invalid flags assertIncorrect("d8 invalid-flag"); } private void assertParse(String args, int targetIndex, LocalDate newDate, LocalTime newTime) throws ParseException { final Command command = parser.parse(args); assertTrue(command instanceof EditDeadlineCommand); final EditDeadlineCommand editCommand = (EditDeadlineCommand) command; assertEquals(targetIndex, editCommand.getTargetIndex()); assertEquals(Optional.ofNullable(newDate), editCommand.getNewDate()); assertEquals(Optional.ofNullable(newTime), editCommand.getNewTime()); } private void assertIncorrect(String args) { assertThrows(ParseException.class, () -> parser.parse(args)); } }
namespace <API key>.Channels { internal class <API key> { public bool IsSuccessful { get; } public string ConnectionId { get; } public <API key>(string connectionId) { ConnectionId = connectionId; IsSuccessful = !string.IsNullOrEmpty(connectionId); } } }
package nl.yoink.api.domain.base; public class AbstractCustomer { public Long id; public String firstName; public String lastName; }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sr" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About QUEDOS</source> <translation>О QUEDOS-у</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;QUEDOS&lt;/b&gt; version</source> <translation>&lt;b&gt;QUEDOS&lt;/b&gt; верзија</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http: This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http: <translation type="unfinished"/> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The QUEDOS developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Адресар</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Кликните два пута да промените адресу и/или етикету</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Прави нову адресу</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Копира изабрану адресу на системски клипборд</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Нова адреса</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your QUEDOS 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>Ово су Ваше QUEDOS адресе за примање уплата. Можете да сваком пошиљаоцу дате другачију адресу да би пратили ко је вршио уплате.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Prikaži &amp;QR kod</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a QUEDOS address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;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="+27"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified QUEDOS address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Избриши</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your QUEDOS addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Извоз података из адресара</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Зарезом одвојене вредности (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Грешка током извоза</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Није могуће писати у фајл %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Етикета</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(без етикете)</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>Унесите лозинку</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Нова лозинка</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Поновите нову лозинку</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Унесите нову лозинку за приступ новчанику.&lt;br/&gt;Молимо Вас да лозинка буде &lt;b&gt;10 или више насумице одабраних знакова&lt;/b&gt;, или &lt;b&gt;осам или више речи&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Шифровање новчаника</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Ова акција захтева лозинку Вашег новчаника да би га откључала.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Откључавање новчаника</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Ова акција захтева да унесете лозинку да би дешифловала новчаник.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Дешифровање новчаника</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Промена лозинке</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Унесите стару и нову лозинку за шифровање новчаника.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Одобрите шифровање новчаника</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR QUEDOSS&lt;/b&gt;!</source> <translation>Упозорење: Ако се ваш новчаник шифрује а потом изгубите лозинкзу, ви ћете &lt;b&gt;ИЗГУБИТИ СВЕ QUEDOS-Е&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Да ли сте сигурни да желите да се новчаник шифује?</translation> </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="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Новчаник је шифрован</translation> </message> <message> <location line="-56"/> <source>QUEDOS will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your QUEDOSs from being stolen by malware infecting your computer.</source> <translation>QUEDOS će se sad zatvoriti da bi završio proces enkripcije. Zapamti da enkripcija tvog novčanika ne može u potpunosti da zaštiti tvoje QUEDOSe da ne budu ukradeni od malawarea koji bi inficirao tvoj kompjuter.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Неуспело шифровање новчаника</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Настала је унутрашња грешка током шифровања новчаника. Ваш новчаник није шифрован.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Лозинке које сте унели се не подударају.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Неуспело откључавање новчаника</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Лозинка коју сте унели за откључавање новчаника је нетачна.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Неуспело дешифровање новчаника</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Лозинка за приступ новчанику је успешно промењена.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Синхронизација са мрежом у току...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Општи преглед</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Погледајте општи преглед новчаника</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Трансакције</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Претражите историјат трансакција</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Уредите запамћене адресе и њихове етикете</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Прегледајте листу адреса на којима прихватате уплате</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>I&amp;zlaz</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Напустите програм</translation> </message> <message> <location line="+4"/> <source>Show information about QUEDOS</source> <translation>Прегледајте информације о QUEDOS-у</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>О &amp;Qt-у</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Прегледајте информације о Qt-у</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>П&amp;оставке...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Шифровање новчаника...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Backup новчаника</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>Промени &amp;лозинку...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation type="unfinished"/> </message> <message> <location line="-347"/> <source>Send coins to a QUEDOS address</source> <translation>Пошаљите новац на QUEDOS адресу</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for QUEDOS</source> <translation>Изаберите могућности QUEDOS-а</translation> </message> <message> <location line="+9"/> <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>Мењање лозинке којом се шифрује новчаник</translation> </message> <message> <location line="+6"/> <source>&amp;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="-4"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-165"/> <location line="+530"/> <source>QUEDOS</source> <translation type="unfinished"/> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>новчаник</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About QUEDOS</source> <translation>&amp;О QUEDOS-у</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign messages with your QUEDOS addresses to prove you own them</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified QUEDOS addresses</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Фајл</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Подешавања</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>П&amp;омоћ</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Трака са картицама</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+47"/> <source>QUEDOS client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to QUEDOS network</source> <translation><numerusform>%n активна веза са QUEDOS мрежом</numerusform><numerusform>%n активне везе са QUEDOS мрежом</numerusform><numerusform>%n активних веза са QUEDOS мрежом</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <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="-140"/> <source>Up to date</source> <translation>Ажурно</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Ажурирање у току...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Послана трансакција</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Придошла трансакција</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Datum: %1⏎ Iznos: %2⏎ Tip: %3⏎ Adresa: %4⏎</translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid QUEDOS address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Новчаник јс &lt;b&gt;шифрован&lt;/b&gt; и тренутно &lt;b&gt;откључан&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Новчаник јс &lt;b&gt;шифрован&lt;/b&gt; и тренутно &lt;b&gt;закључан&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. QUEDOS can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Измени адресу</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Етикета</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>&amp;Address</source> <translation>&amp;Адреса</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="+21"/> <source>New receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>New sending address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Унешена адреса &quot;%1&quot; се већ налази у адресару.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid QUEDOS address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Немогуће откључати новчаник.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation type="unfinished"/> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>QUEDOS-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation>верзија</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Korišćenje:</translation> </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 &quot;de_DE&quot; (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>Поставке</translation> </message> <message> <location line="+16"/> <source>&amp;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.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start QUEDOS after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start QUEDOS on system login</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the QUEDOS 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 &amp;UPnP</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Connect to the QUEDOS network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;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>&amp;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 &amp;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>&amp;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>&amp;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&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;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 QUEDOS.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Јединица за приказивање износа:</translation> </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 QUEDOS addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <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 QUEDOS.</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>Форма</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the QUEDOS network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-124"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Непотврђено:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>новчаник</translation> </message> <message> <location line="+107"/> <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="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Недавне трансакције&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <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 filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start QUEDOS: click-to-pay handler</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>Zatraži isplatu</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Iznos:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>&amp;Етикета</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Poruka:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Snimi kao...</translation> </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="+339"/> <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>&amp;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>&amp;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 QUEDOS-Qt help message to get a list with possible QUEDOS command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>QUEDOS - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>QUEDOS 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 QUEDOS 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="-30"/> <source>Welcome to the QUEDOS RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; 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="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Слање новца</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Ukloni sva polja sa transakcijama</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Потврди акцију слања</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;Пошаљи</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Да ли сте сигурни да желите да пошаљете %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>и</translation> </message> <message> <location line="+23"/> <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 type="unfinished"/> </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> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Форма</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. <API key>)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Етикета</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Izaberite adresu iz adresara</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a QUEDOS address (e.g. <API key>)</source> <translation>Unesite QUEDOS adresu (n.pr. <API key>)</translation> </message> </context> <context> <name><API key></name> <message> <location filename="../forms/<API key>.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <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. <API key>)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <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 QUEDOS address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <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. <API key>)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified QUEDOS address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../<API key>.cpp" line="+27"/> <location line="+3"/> <source>Enter a QUEDOS address (e.g. <API key>)</source> <translation>Unesite QUEDOS adresu (n.pr. <API key>)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter QUEDOS 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>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The QUEDOS developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Otvorite do %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/nepotvrdjeno</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 potvrde</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><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>datum</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>етикета</translation> </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><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 120 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 &quot;not accepted&quot; and it won&apos;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="+3"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>iznos</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="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, nije još uvek uspešno emitovan</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>nepoznato</translation> </message> </context> <context> <name><API key></name> <message> <location filename="../forms/<API key>.ui" line="+14"/> <source>Transaction details</source> <translation>detalji transakcije</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Ovaj odeljak pokazuje detaljan opis transakcije</translation> </message> </context> <context> <name><API key></name> <message> <location filename="../<API key>.cpp" line="+225"/> <source>Date</source> <translation>datum</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>tip</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>iznos</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Otvoreno do %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Offline * van mreže (%1 potvrdjenih)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Nepotvrdjeno (%1 of %2 potvrdjenih)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Potvrdjena (%1 potvrdjenih)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Ovaj blok nije primljen od ostalih čvorova (nodova) i verovatno neće biti prihvaćen!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Generisan ali nije prihvaćen</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Primljen sa</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Primljeno od</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Poslat ka</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Isplata samom sebi</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Minirano</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(n/a)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Status vaše transakcije. Predjite mišem preko ovog polja da bi ste videli broj konfirmacija</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Datum i vreme primljene transakcije.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Tip transakcije</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Destinacija i adresa transakcije</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Iznos odbijen ili dodat balansu.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Sve</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Danas</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>ove nedelje</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Ovog meseca</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Prošlog meseca</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Ove godine</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Opseg...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Primljen sa</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Poslat ka</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Vama - samom sebi</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Minirano</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Drugi</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Navedite adresu ili naziv koji bi ste potražili</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Min iznos</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>kopiraj adresu</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>kopiraj naziv</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>kopiraj iznos</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>promeni naziv</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Izvezi podatke o transakcijama</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Зарезом одвојене вредности (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Potvrdjen</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>datum</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>tip</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Етикета</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Адреса</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>iznos</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Грешка током извоза</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Није могуће писати у фајл %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Opseg:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>do</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>Слање новца</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+193"/> <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> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>QUEDOS version</source> <translation>QUEDOS верзија</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>Korišćenje:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or QUEDOSd</source> <translation>Pošalji naredbu na -server ili QUEDOSid </translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Listaj komande</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Zatraži pomoć za komande</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Opcije</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: QUEDOS.conf)</source> <translation>Potvrdi željeni konfiguracioni fajl (podrazumevani:QUEDOS.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: QUEDOSd.pid)</source> <translation>Konkretizuj pid fajl (podrazumevani: QUEDOSd.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Gde je konkretni data direktorijum </translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 8392 or testnet: 18392)</source> <translation>Slušaj konekcije na &lt;port&gt; (default: 8392 or testnet: 18392)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Održavaj najviše &lt;n&gt; konekcija po priključku (default: 125) </translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8398 or testnet: 18398)</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Prihvati komandnu liniju i JSON-RPC komande</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>Radi u pozadini kao daemon servis i prihvati komande</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>Koristi testnu mrežu</translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=QUEDOSrpc 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 &quot;QUEDOS Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <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="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. QUEDOS is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <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="+4"/> <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="+3"/> <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>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <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="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong QUEDOS will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <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="+3"/> <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="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <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="+2"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>SSL options: (see the QUEDOS Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <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="+5"/> <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="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <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="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>Korisničko ime za JSON-RPC konekcije</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>Lozinka za JSON-RPC konekcije</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Dozvoli JSON-RPC konekcije sa posebne IP adrese</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Pošalji komande to nodu koji radi na &lt;ip&gt; (default: 127.0.0.1)</translation> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Odredi veličinu zaštićenih ključeva na &lt;n&gt; (default: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Ponovo skeniraj lanac blokova za nedostajuće transakcije iz novčanika</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Koristi OpenSSL (https) za JSON-RPC konekcije</translation> </message> <message> <location line="-26"/> <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>privatni ključ za Server (podrazumevan: server.pem)</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Prihvatljive cifre (podrazumevano: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Ova poruka Pomoći</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>učitavam adrese....</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of QUEDOS</source> <translation type="unfinished"/> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart QUEDOS to complete</source> <translation type="unfinished"/> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Učitavam blok indeksa...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. QUEDOS is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Новчаник се учитава...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Ponovo skeniram...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Završeno učitavanje</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; 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>
#include <stdlib.h> #include "../readstat.h" #include "test_readstat.h" long <API key>(long format_code) { long version = -1; if (format_code == RT_FORMAT_DTA_104) { version = 104; } else if (format_code == RT_FORMAT_DTA_105) { version = 105; } else if (format_code == RT_FORMAT_DTA_108) { version = 108; } else if (format_code == RT_FORMAT_DTA_110) { version = 110; } else if (format_code == RT_FORMAT_DTA_111) { version = 111; } else if (format_code == RT_FORMAT_DTA_114) { version = 114; } else if (format_code == RT_FORMAT_DTA_117) { version = 117; } else if (format_code == RT_FORMAT_DTA_118) { version = 118; } else if (format_code == RT_FORMAT_DTA_119) { version = 119; } return version; }
Label Verifier plugin for Jenkins ============================== [![Jenkins Plugin](https: [![GitHub release](https: [![Jenkins Plugin Installs](https: This plugin allows system administrator to programmatically verify the label assignment correctness on agents.It is useful to prevent a human error in label assignment when you have a larger number or self-organizing agents, and generally as a means to make sure your Jenkins cluster is healthy. ## Usage Go to the label configuration page of the label whose assignment you want to validate. For example, http://yourserver/jenkins/label/foo/configure. You can associate "label verifies" through this UI, as follows: ![Verifier Configuration](/docs/images/config.png) The script specified here gets executed every time an agent with this label comes online. If the script returns a non-zero exit code, the label assignment is considered illegal, and Jenkins will mark the agent as offline to prevent it from getting used for a build. ## Extension points `LabelVerifier` is an extension point that can be implemented by other plugins, to perform the check in other means. See [this page](https://jenkins.io/doc/developer/extensions/label-verifier/#labelverifier) to get a list of existing implementations. ## Changelog See [GitHub Releases](https://github.com/jenkinsci/<API key>/releases)
#!/usr/bin/ruby print("ABCDE\n")
#!/bin/bash set -e -o pipefail if [ "$USE_CLOUD" = "true" ]; then ./scripts/sauce/<API key>.sh fi
<?php namespace BioscoopBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\<API key>\Configuration\Method; use Sensio\Bundle\<API key>\Configuration\Route; use Sensio\Bundle\<API key>\Configuration\Template; use BioscoopBundle\Entity\movietogenre; use BioscoopBundle\Form\movietogenreType; /** * movietogenre controller. * * @Route("/movietogenre") */ class <API key> extends Controller { /** * Lists all movietogenre entities. * * @Route("/", name="movietogenre") * @Method("GET") * @Template() */ public function indexAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('BioscoopBundle:movietogenre')->findAll(); return array( 'entities' => $entities, ); } /** * Creates a new movietogenre entity. * * @Route("/", name="movietogenre_create") * @Method("POST") * @Template("BioscoopBundle:movietogenre:new.html.twig") */ public function createAction(Request $request) { $entity = new movietogenre(); $form = $this->createCreateForm($entity); $form->handleRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->persist($entity); $em->flush(); return $this->redirect($this->generateUrl('movietogenre_show', array('id' => $entity->getId()))); } return array( 'entity' => $entity, 'form' => $form->createView(), ); } /** * Creates a form to create a movietogenre entity. * * @param movietogenre $entity The entity * * @return \Symfony\Component\Form\Form The form */ private function createCreateForm(movietogenre $entity) { $form = $this->createForm(new movietogenreType(), $entity, array( 'action' => $this->generateUrl('movietogenre_create'), 'method' => 'POST', )); $form->add('submit', 'submit', array('label' => 'Create')); return $form; } /** * Displays a form to create a new movietogenre entity. * * @Route("/new", name="movietogenre_new") * @Method("GET") * @Template() */ public function newAction() { $entity = new movietogenre(); $form = $this->createCreateForm($entity); return array( 'entity' => $entity, 'form' => $form->createView(), ); } /** * Finds and displays a movietogenre entity. * * @Route("/{id}", name="movietogenre_show") * @Method("GET") * @Template() */ public function showAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('BioscoopBundle:movietogenre')->find($id); if (!$entity) { throw $this-><API key>('Unable to find movietogenre entity.'); } $deleteForm = $this->createDeleteForm($id); return array( 'entity' => $entity, 'delete_form' => $deleteForm->createView(), ); } /** * Displays a form to edit an existing movietogenre entity. * * @Route("/{id}/edit", name="movietogenre_edit") * @Method("GET") * @Template() */ public function editAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('BioscoopBundle:movietogenre')->find($id); if (!$entity) { throw $this-><API key>('Unable to find movietogenre entity.'); } $editForm = $this->createEditForm($entity); $deleteForm = $this->createDeleteForm($id); return array( 'entity' => $entity, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), ); } /** * Creates a form to edit a movietogenre entity. * * @param movietogenre $entity The entity * * @return \Symfony\Component\Form\Form The form */ private function createEditForm(movietogenre $entity) { $form = $this->createForm(new movietogenreType(), $entity, array( 'action' => $this->generateUrl('movietogenre_update', array('id' => $entity->getId())), 'method' => 'PUT', )); $form->add('submit', 'submit', array('label' => 'Update')); return $form; } /** * Edits an existing movietogenre entity. * * @Route("/{id}", name="movietogenre_update") * @Method("PUT") * @Template("BioscoopBundle:movietogenre:edit.html.twig") */ public function updateAction(Request $request, $id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('BioscoopBundle:movietogenre')->find($id); if (!$entity) { throw $this-><API key>('Unable to find movietogenre entity.'); } $deleteForm = $this->createDeleteForm($id); $editForm = $this->createEditForm($entity); $editForm->handleRequest($request); if ($editForm->isValid()) { $em->flush(); return $this->redirect($this->generateUrl('movietogenre_edit', array('id' => $id))); } return array( 'entity' => $entity, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), ); } /** * Deletes a movietogenre entity. * * @Route("/{id}", name="movietogenre_delete") * @Method("DELETE") */ public function deleteAction(Request $request, $id) { $form = $this->createDeleteForm($id); $form->handleRequest($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('BioscoopBundle:movietogenre')->find($id); if (!$entity) { throw $this-><API key>('Unable to find movietogenre entity.'); } $em->remove($entity); $em->flush(); } return $this->redirect($this->generateUrl('movietogenre')); } /** * Creates a form to delete a movietogenre entity by id. * * @param mixed $id The entity id * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm($id) { return $this->createFormBuilder() ->setAction($this->generateUrl('movietogenre_delete', array('id' => $id))) ->setMethod('DELETE') ->add('submit', 'submit', array('label' => 'Delete')) ->getForm() ; } }
/** * Compares two specificity vectors, returning the winning one. * * @param {Array} vector a * @param {Array} vector b * @return {Array} * @api public */ function compareSpecificity(a, b) { let i; for (i = 0; i < 4; i++) { if (a[i] === b[i]) { continue; } if (a[i] > b[i]) { return a; } return b; } return b; } /** * CSS property constructor. * * @param {String} property * @param {String} value * @param {Selector} selector the property originates from * @api public */ module.exports = (prop, value, selector) => { let o = {}; /** * Compares with another Property based on Selector#specificity. * * @api public */ const compare = property => { const a = selector.specificity(); const b = property.selector.specificity(); const winner = compareSpecificity(a, b); if (winner === a && a !== b) { return o; } return property; }; o = { prop, value, selector, compare }; return o; };
#ifndef <API key> #define <API key> #include "common.h" namespace ncv { namespace imgproc { void Subdiv2dInit(Local<Object> &target); } } #endif // <API key>
<div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div class="col-md-12"> <h5 class="greyText"> <i class="fa fa-pencil-square-o"></i> &nbsp; Edit properties : </h5> </div> </div> <div class="marginTopFivepixels"></div> <div class="row"> <div class="col-lg-12 col-md-12"> <label for="<API key>" class=" control-label greyText editPropertiesLabel"> Add new options : </label> </div> </div> <div class="row"> <div> <div class="form-group"> <div class="col-sm-9 col-xs-9 col-md-9 col-lg-9"> <input type="text" class="form-control" id="<API key>" placeholder="add new option" ng-model="leftPanelCtrl.<API key>.saisie"> </div> <div class="col-sm-3 col-xs-3 col-md-3 col-lg-3"> <button class="btn btn-primary" ng-click="leftPanelCtrl.<API key>()"> add </button> </div> </div> </div> </div> <div class="row"> <div class="col-lg-12 col-md-12"> <label class=" control-label greyText editPropertiesLabel"> Edit/Remove options : </label> </div> </div> <div class="row"> <div class="form-group"> <div class-"col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="container"> <div ng-if="leftPanelCtrl.<API key>.rows.length === 0"> <h5 class="text-center greyText"> <em> - no option : add new options - </em> </h5> </div> <table ng-if="leftPanelCtrl.<API key>.rows.length > 0" class="table table-striped"> <thead> <tr> <th st-ratio="20"> order </th> <th st-ratio="55"> option </th> <th st-ratio="25"></th> </tr> <tr> <th st-ratio="20"></th> <th st-ratio="55"> <input ng-model="leftPanelCtrl.basicSelectFilter" placeholder="search for option" class="input-sm form-control" type="search" /> </th> <th st-ratio="25"></th> </tr> </thead> <tbody> <tr ng-repeat="basicSelectRow in leftPanelCtrl.<API key>.rows | filter:basicSelectFilter as basicSelectRow"> <td st-ratio="20"> {{$index}} </td> <td st-ratio="55"> {{basicSelectRow.option}} </td> <td st-ratio="25"> <div class="pull-right"> <button class="btn btn-primary" ng-click="leftPanelCtrl.upThisRow($index)"> <i class="fa fa-arrow-up"></i> </button> <button class="btn btn-primary" ng-click="leftPanelCtrl.downThisRow($index)"> <i class="fa fa-arrow-down"></i> </button> <button class="btn btn-danger" ng-click="leftPanelCtrl.removeRow($index)"> <i class="fa fa-trash-o"></i> </button> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> <div class="marginTopFivepixels"></div> <div class="row"> <div class="form-group"> <div class="col-md-12"> <label for="DescriptionUpdate" class="control-label greyText editPropertiesLabel"> Description : </label> <div class=""> <input type="text" class="form-control" ng-model="leftPanelCtrl.proxyModel.temporyConfig.formlyDescription" id="DescriptionUpdate" placeholder="Add / edit description here"> </div> </div> </div> </div> </div> <<API key> /> </div>
<?php namespace Earls\RhinoReportBundle\Module\Table\Actions\ItemAction\Column; use Earls\RhinoReportBundle\Module\Table\Actions\ItemAction\Column\Action; /* * Earls\RhinoReportBundle\Module\Table\Actions\ItemAction\Column\SprintfAction * */ class SprintfAction extends Action { public function setData() { $data = array(); foreach ($this->options['arg_dataIds'] as $columnName) { $data[] = $this->rowData[$columnName]; } foreach ($this->options['arg_displayIds'] as $columnName) { $columnArg = $this->rowObject->getColumn($columnName); if ($columnArg != null || !empty($columnArg)) { $data[] = $columnArg->getData(); } else { throw new \<API key>('Error on column \''.$columnName.'\''.' in \''.$this->column->getDefinition()->getPath().'\''); } } $data = vsprintf($this->options['format'], $data); return $data; } public function getOptions() { return array( 'arg_dataIds' => array(), 'arg_displayIds' => array(), 'format' => null ); } }
package spatial.models package characterization import java.io.PrintWriter import scala.util._ import argon.util.Report._ object Modeling { import LabeledPairs._ import Regression._ lazy val SPATIAL_HOME: String = sys.env.getOrElse("SPATIAL_HOME", { error("SPATIAL_HOME was not set!") error("Set top directory of spatial using: ") error("export SPATIAL_HOME=/path/to/spatial") sys.exit() }) val target = spatial.targets.Zynq val FIELDS = target.FIELDS implicit def AREA_CONFIG: AreaConfig[Double] = target.AREA_CONFIG implicit def LINEAR_CONFIG: AreaConfig[LinearModel] = target.LINEAR_CONFIG type Area = AreaMap[Double] type Model = AreaMap[LinearModel] def header(nParams: Int): String = "Benchmark," + List.tabulate(nParams){i => s"Param #$i"}.mkString(",") + "," + FIELDS.mkString(",") val baselines = s"$SPATIAL_HOME/results/baselines.csv" val benchmarks = s"$SPATIAL_HOME/results/characterization.csv" val benchmarks2 = s"$SPATIAL_HOME/results/characterization3.csv" val saved = s"$SPATIAL_HOME/results/benchmarks.csv" val MODELS_FILE = s"$SPATIAL_HOME/spatial/core/resources/models/${target.name}_raw.csv" def writeFile(file: String, areass: Seq[Seq[_<:AreaMap[_]]]): Unit = { val output = new PrintWriter(file) val maxParams = areass.map(areas => (0 +: areas.map(_.params.length)).max).max //output.println(XilinxArea.superHeader(maxParams).mkString(", ")) output.println(header(maxParams)) areass.foreach{areas => areas.sortBy(_.fullName).foreach{area => output.println(area.toPrintableString(maxParams)) } } output.close() } def keyRemap(x: String): String = x match { case "RAMB18E1" => "RAM18" case "RAMB36E1" => "RAM36" case "F7 Muxes" => "MUX7" case "F8 Muxes" => "MUX8" case "Register as Flip Flop" => "Regs" case _ => x } def main(args: Array[String]): Unit = { /*val (bases, areas) = try { println("Attempting to load saved...") val (bases, areas) = Benchmarks.fromSaved(saved) (bases, areas) } catch {case _:Throwable =>*/ //println("Failed. Creating from file instead") val files = Seq(baselines, benchmarks, benchmarks2) val benchs = files.flatMap{file => Benchmarks.fromFile(file) } .map{area => area.renameEntries(keyRemap) } val allBenchs = benchs.groupBy(p => (p.name, p.params.map(_.trim).filterNot(_ == "").toSet)).mapValues(_.last).values.toSeq val (bases, areas) = allBenchs.partition{p => p.name.startsWith("Unary") || p.name.startsWith("Static") } writeFile(saved, Seq(bases, areas)) //(bases, areas) val (fringe, fringe2, argIn, argOut) = { val b = (0,"b") val n = (1,"n") val (fringeModel, argOutModel) = createLm("Static", Nil, bases, n | b*n | n + b*n) // | n + n*n | b*n + b*n*n) //((0,"b")*(1,"n") + (1,"n")) | ((0,"b")*(1,"n") + (1,"n") + (1,"n")*(1,"n")) ) val fringe: Area = fringeModel.copy(name = "Fringe") val argOut = argOutModel.copy(name = "ArgOut") val (fringe2, argsModel) = createLm("Unary", Nil, bases, n | b*n | n + b*n, baseline=Some(_ => fringe)) // n + b | n + n*n | b*n + b*n*n, baseline = Some(_ => fringe)) //((0,"b")*(1,"n") + (1,"n")) | ((0,"b")*(1,"n") + (1,"n") + (1,"n")*(1,"n")), baseline = Some(_ => fringe)) val argIn = (argsModel - argOut).copy(name = "ArgIn") //val argOut = (argsModel / 2).copy(name = "ArgOut") (fringe, fringe2, argIn, argOut) } def model(name: String, params: Seq[(Int,String)], labels: Seq[PatternList]): Model = { createLm(name, params, areas, labels, None)._2 } def removeArgs(area: Model, b: Int, in: Int, out: Int, dbg: Boolean = false) = { val args = argIn.partial("b" -> b)*in + argOut.partial("b" -> b)*out if (dbg) println(args) area <-> args } def makeModel(name: String, params: Seq[(Int,String)], labels: Seq[PatternList], b: Int, in: Int, out: Int, dbg: Boolean = false) = { val model1 = model(name, params, labels) if (dbg) println(model1) removeArgs(model1, b, in, out, dbg) } // TODO: Would be nice to automate, but need to associate with # of inputs val IntOps = Array("Inv"->1, "Neg"->1, "Abs"->1, "Min"->2, "Add"->2, "Sub"->2, "Div"->2, "Mod"->2, "Or"->2, "And"->2, "XOr"->2, "Lt"->2, "Leq"->2, "Neq"->2, "Eql"->2) val FloatOps = Array("Neg"->1, "Abs"->1, "Min"->2, "Add"->2, "Sub"->2, "Div"->2, "Mod"->2, "Lt"->2, "Leq"->2, "Neq"->2, "Eql"->2) val BitOps = Array("Not"->1, "And"->2, "Or"->2, "XOr"->2, "Eql"->2) val intModels = IntOps.map{case (op,in) => val b = (0,"b") val n = (2,"n") val int8 = makeModel("Int", Seq(0->"8", 1->op), n, 8, in, 1).eval("n" -> 1).copy(name="Int"+op, params=Array("8")) val int16 = makeModel("Int", Seq(0->"16", 1->op), n, 16, in, 1).eval("n" -> 1).copy(name="Int"+op, params=Array("16")) val int32 = makeModel("Int", Seq(0->"32", 1->op), n, 32, in, 1).eval("n" -> 1).copy(name="Int"+op, params=Array("32")) // TODO: Put this back when fixed //val int64 = makeModel("Int", Seq(0->"64", 1->op), n, 64, in, 1).eval("n" -> 1).copy(name="Int"+op, params=Array("64")) val model = createLm("Int"+op,Nil,Seq(int8,int16,int32), b | b*b, addIntercept = false)._2 model.copy(name="Fix"+op).cleanup } // Special case multipliers because of DSPs val intMuls = { val n = (2,"n") val intMul8 = makeModel("Int", Seq(0->"8", 1->"Mul"), n, 8, 2, 1).eval("n" -> 1).copy(name="IntMul8").cleanup val intMul16 = makeModel("Int", Seq(0->"16", 1->"Mul"), n, 16, 2, 1).eval("n" -> 1).copy(name="IntMul16").cleanup val intMul32 = makeModel("Int", Seq(0->"32", 1->"Mul"), n, 32, 2, 1).eval("n" -> 1).copy(name="IntMul32").cleanup // TODO: Add 64 bit back //val intMul32 = makeModel("Int", Seq(0->"64", 1->"Mul"), n, 64, 2, 1).eval("n" -> 1).copy(name="IntMul64").cleanup Array(intMul8, intMul16, intMul32) } def simpleModel(opPos: Int, nPos: Int, bits: Int, in: Int, out: Int)(name: String, op: String, eqs: Seq[PatternList]): Option[Area] = { val benchs = areas.getAll(name, opPos->op) try { if (benchs.length > 1) { Some(makeModel(name, Seq(opPos -> op), eqs, bits, in, out).eval("n" -> 1).copy(name = name + op, params = Seq.empty).cleanup) } else if (benchs.length == 1) { println(s"Only one benchmark exists for $name - $op") val bench = benchs.head val n = bench.params(nPos).toInt val args = argIn.eval("b" -> bits, "n" -> n) * in + argOut.eval("b" -> bits, "n" -> n) Some(((bench - args) / n).copy(name = name + op, params = Seq.empty).cleanup) } else { println(s"Not enough information to make model for $name-$op") None } } catch {case _: Throwable => println(s"Not enough information to make model for $name-$op") None } } val floatModels = FloatOps.flatMap { case (op, in) => val n = (1,"n") simpleModel(opPos = 0, nPos = 1, bits = 32, in = in, out = 1)("Float", op, n) } val bitModels = BitOps.flatMap{case (op,in) => val n = (1,"n") simpleModel(opPos = 0, nPos = 1, bits = 1, in=in, out=1)("Bit", op, n) } val muxModel = { val n = (1,"n") def makeMuxModel(bits: Int) = { val mod = model("Mux", Seq(0->bits.toString), n) val rem = removeArgs(removeArgs(mod, bits, 2, 1), 1, 1, 0) rem.eval("n" -> 1).copy(name = "Mux", params=Array(bits.toString)) } val mux8 = makeMuxModel(8) val mux16 = makeMuxModel(16) val mux32 = makeMuxModel(32) val mux64 = makeMuxModel(64) val b = (0,"b") val (i,m) = createLm("Mux",Nil,Seq(mux8,mux16,mux32,mux64), b | b*b) val mc = m.zip(i){(a,b) => a + b}.copy(name="Mux").cleanup Array(mux8, mux16, mux32, mux64, mc) } val fracModels = Array("Ceil", "Floor").flatMap{op => val n = (3,"n") val q8 = makeModel("Q", Seq(2->op), n, 16, 1, 1).eval("n"->1).copy(name="Q"+op, params=Array("8","8")) val q16 = makeModel("Q", Seq(2->op), n, 32, 1, 1).eval("n"->1).copy(name="Q"+op, params=Array("16","16")) val q32 = makeModel("Q", Seq(2->op), n, 64, 1, 1).eval("n"->1).copy(name="Q"+op, params=Array("32","32")) val i = (0,"i") val f = (1,"f") val (inter,m) = createLm("Q"+op,Nil,Seq(q8,q16,q32), i + f) val mc = m.zip(inter){(x,y) => x + y}.copy(name="Fix"+op).cleanup Array(q8, q16, q32, mc) } val regModel = { val b = (0,"b") val d = (1,"d") val n = (2,"n") def regModels(bits: Int): Model = { val models = List.tabulate(7){d => val depth = d + 1 makeModel("Reg", Seq(0->bits.toString,1->depth.toString), n, bits, 1, 1).eval("n"->1).copy(name="Reg", params=Array(depth.toString)) } val d = (0,"d") val (inter,m) = createLm("Reg", Nil, models, d) m.copy(name = "Reg", params=Array(bits.toString)) } val reg8 = regModels(8) //makeModel("Reg", Seq(0->"8",1->"2"), n, 8, 1, 1).eval("n"->1).copy(name="Reg", params=Array("8")) val reg16 = regModels(16) //makeModel("Reg", Seq(0->"16",1->"2"), n, 16, 1, 1).eval("n"->1).copy(name="Reg", params=Array("16")) val reg32 = regModels(32) //makeModel("Reg", Seq(0->"32",1->"2"), n, 32, 1, 1).eval("n"->1).copy(name="Reg", params=Array("32")) val reg64 = regModels(64) //makeModel("Reg", Seq(0->"64",1->"2"), n, 64, 1, 1).eval("n"->1).copy(name="Reg", params=Array("64")) Array(reg8.copy(name="Reg8"), reg16.copy(name="Reg16"), reg32.copy(name="Reg32"), reg64.copy(name="Reg64")) } val fifoModel = { val b = (0,"b") val d = (1,"d") val p = (2,"p") val n = (3,"n") val fifo8 = makeModel("FIFO", Seq(0->"8",2->"1",3->"50"), d, 8, 0, 1).copy(name="FIFO", params=Array("8","d")) val fifo16 = makeModel("FIFO", Seq(0->"16",2->"1",3->"50"), d, 16, 0, 1).copy(name="FIFO", params=Array("16","d")) val fifo32 = makeModel("FIFO", Seq(0->"32",2->"1",3->"50"), d, 32, 0, 1).copy(name="FIFO", params=Array("32","d")) //val fifo64 = makeModel("FIFO", Seq(0->"64",2->"1",3->"50"), d, 16, 0, 1).copy(name="FIFO", params=Array("64","d")) val fifo8d = fifo8.eval("d" -> 1).copy(name="FIFO", params=Array("8")) val fifo16d = fifo16.eval("d" -> 1).copy(name="FIFO", params=Array("16")) val fifo32d = fifo32.eval("d" -> 1).copy(name="FIFO", params=Array("32")) val fifoModel = createLm("FIFO", Nil, Seq(fifo8d, fifo16d, fifo32d), b)._2.copy(name="FIFO", params=Array("b","d")) * "d" Array(fifo8.copy(name="FIFO8"), fifo16.copy(name="FIFO16"), fifo32.copy(name="FIFO32"), fifoModel.fractional) } val regFileModel = { def depths1D(name: String): Seq[Area] = (1 to 3).flatMap{d => val c = (1,"c") Try(makeModel(name, Seq(0->d.toString, 2->"1"), c, 32, 0, 1).eval("c" -> 1).copy(name = name, params=Array(d.toString, "c"))) match { case Success(model) => Some(model) case Failure(except) => println(s"Not enough information to make model $name, d = $d") None } } def depths2D(name: String): Seq[Area] = (1 to 3).flatMap{d => val r = (1,"r") val c = (2,"c") Try(makeModel(name, Seq(0->d.toString, 3->"1",4->"1"), r*c, 32, 0, 1).eval("r" -> 1, "c" -> 1).copy(name = name, params=Array(d.toString+"XXX", "r", "c"))) match { case Success(model) => Some(model) case Failure(except) => println(s"Not enough information to make model $name, d = $d") None } } val rf1 = depths1D("RegFile1D") val rf2 = depths2D("RegFile2D") (rf1 ++ rf2).toArray } val transferModels = { val d = (0,"d") // Number of dimensions val w = (1,"w") val p = (2,"p") val n = (3,"n") val pars = Seq(1, 4, 8, 16) def modelTx(name: String, params: Seq[(Int,String)], eq: Seq[PatternList], vv: Boolean = false): (Model, Area) = { val parModels = pars.flatMap { par => val benchs = areas.getAll(name, params:_*).getAll(name, 2 -> par.toString) println(s"CREATING MODEL FOR $name, $params, par = $par") //benchs.foreach{bench => println(bench.name + ", " + bench.params.mkString(", ") + ": " + bench) } val varyingNs = benchs.map(_.params.apply(3)).distinct.length //benchs.foreach{bench => println(bench.params.last + ", " + bench("LUT5")) } if (benchs.length > 1 && varyingNs > 1) { //makeModel(name, params, eq, 32, 1, 0).partial("n" -> 1) val (offset, model) = createLm(name, params, benchs, n, baseline = None, useMaxOnly = true, baselineIfNegative = Some(fringe)) val offsetParModel = offset.copy(name = name, params = Seq(par.toString)) val parModel = model.copy(name = name, params = Seq(par.toString)) if (vv) { println(par + ": ") println("SLOPE: " + model) println("OFFSET: " + offset) } Some((parModel, offsetParModel)) } else None } val models = parModels.map(_._1).map(_.eval("n"->1)) val offsets = parModels.map(_._2) /*models.zip(offsets).foreach{case (model,offset) => println("MODEL " + model.name + " " + model.params.mkString(", ") + ":") println(" " + model.cleanup) println("OFFSET " + offset.name + " " + offset.params.mkString(", ") + ":") println(" " + offset.cleanup) }*/ val p = (0,"p") val (offset,offsetModel) = createLm(name, Nil, offsets, p, baselineIfNegative = Some(fringe)) val (modelOffset, model) = createLm(name, Nil, models, p | p*p) if (vv) { println("OFFSET: " + offset) println("OFFSET MODEL: " + offsetModel) println("MODEL OFFSET: " + modelOffset) println("MODEL: " + model) } (modelOffset + model, offset - fringe) /*else if (benchs.length == 1) { println("Only one benchmark exist for " + name) val bench = benchs.head val n = bench.params(3).toInt val args = argIn.eval("b" -> 32, "n" -> n) + fringe val area = (bench - args) / n val model = area.map{x => LinearModel(Seq(Prod(x,Nil)),Set.empty) } (model, fringe) } else { throw new Exception(s"Not enough information to make model for $name $params") }*/ } val (alignLd1,fringeAL1) = modelTx("AlignedLoad", Seq(0->"1"), n | n + n*p) val (alignLd2,fringeAL2) = modelTx("AlignedLoad", Seq(0->"2"), n | n + n*p) val (unalignLd1,fringeUL1) = modelTx("UnalignedLoad", Seq(0->"1"), n | n + n*p) val (unalignLd2,fringeUL2) = modelTx("UnalignedLoad", Seq(0->"2"), n | n + n*p, vv = true) val (alignSt1,fringeAS1) = modelTx("AlignedStore", Seq(0->"1"), n | n + n*p) val (alignSt2,fringeAS2) = modelTx("AlignedStore", Seq(0->"2"), n | n + n*p) val (unalignSt1,fringeUS1) = modelTx("UnalignedStore", Seq(0->"1"), n | n + n*p) val (unalignSt2,fringeUS2) = modelTx("UnalignedStore", Seq(0->"2"), n | n + n*p) Seq( alignLd1.copy(name = "AlignedLoad1", params=Seq.empty), alignLd2.copy(name = "AlignedLoad2", params=Seq.empty), unalignLd1.copy(name = "UnalignedLoad1", params=Seq.empty), unalignLd2.copy(name = "UnalignedLoad2", params=Seq.empty), alignSt1.copy(name = "AlignedStore1", params=Seq.empty), alignSt2.copy(name = "AlignedStore2", params=Seq.empty), unalignSt1.copy(name = "UnalignedStore1", params=Seq.empty), unalignSt2.copy(name = "UnalignedStore2", params=Seq.empty), fringeAL1.copy(name = "FringeAL1"), fringeAL2.copy(name = "FringeAL2"), fringeUL1.copy(name = "FringeUL1"), fringeUL2.copy(name = "FringeUL2"), fringeAS1.copy(name = "FringeAS1"), fringeAS2.copy(name = "FringeAS2"), fringeUS1.copy(name = "FringeUS1"), fringeUS2.copy(name = "FringeUS2") ) } val argInModel = argIn.partial("n" -> 1).cleanup.copy(name="ArgIn", params=Array("b")) val argOutModel = argOut.partial("n" -> 1).cleanup.copy(name="ArgOut", params=Array("b")) val argModels = Array(argInModel, argOutModel) writeFile(MODELS_FILE, Seq( Array(fringe), argModels, intModels, intMuls, floatModels, bitModels, muxModel, fracModels, regModel, fifoModel, regFileModel, transferModels )) //println(modelX("Int", Seq(1->"Add"), (0,"b")*(2,"n") + (2,"n") + (2,"n")*(2,"n") + (0,"b")*(2,"n")*(2,"n") )) //println( (areas.getFirst("Int32", 0->"Add",1->"200") - bases.getFirst("Unary", 0->"32", 1->"200")) / 200) } }
class CreateActivities < ActiveRecord::Migration def change create_table :activities do |t| t.references :trackable, polymorphic: true, index: true t.references :owner, polymorphic: true, index: true t.string :action t.string :ip_address t.text :parameters t.timestamps end end end
'use strict'; describe('Service: Dreams', function () { // load the service's module beforeEach(module('realizeChangeApp')); // instantiate service var Dreams; beforeEach(inject(function (_Dreams_) { Dreams = _Dreams_; })); // it('should do something', function () { // expect(true).toBe(true); });
# <API key>: true module StoreRequestId module Defaults module Storage DEFAULT_KEY = 'X-Request-Id'.freeze private_constant :DEFAULT_KEY class << self def generate_key header_key.downcase.tr('-', '_').to_sym end private def header_key request_id_class = ::ActionDispatch::RequestId defined?(request_id_class::X_REQUEST_ID) ? request_id_class::X_REQUEST_ID : DEFAULT_KEY end end end end end
<?php /** * Form type for the book entity * * @author Christian Wasser <christian.wasser@chwasser.de> * @since 2016-02-18 **/ namespace Cwasser\BookShopBundle\V1\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\<API key>; use Symfony\Component\OptionsResolver\<API key>; class BookType extends AbstractType { /** * @param <API key> $builder * @param array $options */ public function buildForm(<API key> $builder, array $options) { $builder ->add('title') ->add('description') ->add('author') ->add('publisher') ->add('isbn') ->add('language') ->add('price'); } /** * @param <API key> $resolver */ public function setDefaultOptions(<API key> $resolver) { $resolver->setDefaults(array( 'data_class' => 'Cwasser\BookShopBundle\V1\Entity\Book', 'csrf_protection' => false, //Needs to be false for API Ajax calls )); } /** * @return string */ public function getName() { return ''; } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cofoundry.Domain { public enum PasswordHashVersion { <summary> Original version (SHA1, 32-bit salt). </summary> <remarks> This has never been used in Cofoundry and is only here for compatibility with very very (probably non-existent) systems implemented with a prior product. </remarks> V1 = 1, <summary> Version used in Cofoundry prior to v0.10. PBKDF2 with HMAC-SHA1, 192-bit salt, 64000 iterations </summary> V2 = 2, <summary> Uses Microsoft.AspNetCore.Identity.PasswordHasher to defer the algorithm choice to the one that is implemented by the .NET Core security team. As of v3 uses "PBKDF2 with HMAC-SHA256, 128-bit salt, 256-bit subkey, 10000 iterations". </summary> V3 = 3 } }
require 'edgecase' def my_global_method(a,b) a + b end class AboutMethods < EdgeCase::Koan def <API key> assert_equal 5, my_global_method(2,3) end def <API key> result = my_global_method 2, 3 assert_equal 5, result end # (NOTE: We are Using eval below because the example code is # considered to be syntactically invalid). def <API key> eval "assert_equal 5, my_global_method(2, 3)" # ENABLE CHECK # Ruby doesn't know if you mean: # assert_equal(5, my_global_method(2), 3) # assert_equal(5, my_global_method(2, 3)) # Rewrite the eval string to continue. end # NOTE: wrong number of argument is not a SYNTAX error, but a # runtime error. def <API key> exception = assert_raise(ArgumentError) do my_global_method end assert_match(/wrong number of arguments/, exception.message) exception = assert_raise(ArgumentError) do my_global_method(1,2,3) end assert_match(/wrong number of arguments/, exception.message) end def <API key>(a, b=:default_value) [a, b] end def <API key> assert_equal [1, :default_value], <API key>(1) assert_equal [1, 2], <API key>(1, 2) end def <API key>(*args) args end def <API key> assert_equal [], <API key> assert_equal [:one], <API key>(:one) assert_equal [:one, :two], <API key>(:one, :two) end def <API key> :a_non_return_value return :return_value :<API key> end def <API key> assert_equal :return_value, <API key> end def <API key> :a_non_return_value :return_value end def <API key> assert_equal :return_value, <API key> end def <API key>(a, b) a * b end def <API key> assert_equal 12, <API key>(3,4) end def <API key> assert_equal 12, self.<API key>(3,4) end def my_private_method "a secret" end private :my_private_method def <API key> assert_equal "a secret", my_private_method end def <API key> exception = assert_raise(NoMethodError) do self.my_private_method end assert_match /#{"private method `my_private_method' called "}/, exception.message end class Dog def name "Fido" end private def tail "tail" end end def <API key> rover = Dog.new assert_equal "Fido", rover.name end def <API key> rover = Dog.new assert_raise(NoMethodError) do rover.tail end end end
var clone = require('clone'); var Subscriber = function (hashParams, cb) { 'use strict'; var _subscriptions = hashParams; var _cb = cb; var notify = function (params) { _cb.call(this, params); }; return { subscriptions: _subscriptions, notify: notify }; }; var Hash = (function () { 'use strict'; // Init var _fn = { hash: '', hashParams: {}, subscribers: [], subscribedPerParams: {}, history: window.history, muted: false, interval: null }; /** * @function init * @description Called to initialize, optionally giving a default hash * * @param defaultHash - Object | String - default hash * **/ var init = function (defaultHash) { // Setup if (<API key>()) { if (window.addEventListener) { window.addEventListener('hashchange', <API key>, false); } else if (window.attachEvent) { window.attachEvent('onhashchange', <API key>); } } else { // Change Opera navigation mode to improve history support. if (_fn.history.navigationMode) { _fn.history.navigationMode = 'compatible'; } _fn.interval = setInterval(<API key>, 50); } // First default hash ( direct access or default ) var curHash = getHash(); if (curHash !== '') { <API key>(); } else if (defaultHash) { setHash(defaultHash); saveHash(Hash.getHash()); } }; /** * @function destroy * @description Destroys current Hash & subscribers **/ var destroy = function () { // Setup if (<API key>()) { if (window.addEventListener) { window.removeEventListener('hashchange', <API key>); } else if (window.attachEvent) { window.detachEvent('onhashchange', <API key>); } } else { clearInterval(_fn.interval); } // Destroy subscribers _fn.subscribers = []; // Destroy hash setHash(''); // history.pushState('', document.title, window.location.pathname); }; /** * @function isArr * @description Is the element an array * @param obj - Object - is object an array? * @returns boolean **/ var isArr = function (obj) { return Object.prototype.toString.call(obj) === '[object Array]'; }; /** * @function areEqual * @description Are two values equal? * @returns boolean **/ var areEqual = function (obj1, obj2) { // If new obj2 is undefined or null -> new param if (typeof obj2 === 'undefined' || obj2 === null) { return true; } // Strings ? if (typeof obj1 === 'string') { return obj1 === obj2; // Arrays ? } else if (isArr(obj1) && isArr(obj2)) { if (obj1.length !== obj2.length) { return true; } return obj1.sort().join() !== obj2.sort().join(); } }; /** * @function getHash * @description Gets current hash * @param keepHash : boolean - default: false * whether or not to keep the hash character in return string * @returns string **/ var getHash = function (keepHash) { keepHash = keepHash || false; return window.location.hash.slice(keepHash ? 0 : 1); }; /** * @function <API key> * @description Checks if hash changed is supported * @returns boolean **/ var <API key> = function () { var eventName = 'onhashchange'; var isSupported = (eventName in document.body); if (!isSupported) { document.body.setAttribute(eventName, 'return;'); isSupported = typeof document.body[eventName] === 'function'; } // documentMode logic from YUI to filter out IE8 Compat Mode (which generates false positives). return isSupported && (document.documentMode === undefined || document.documentMode > 7); }; /** * @function <API key> * @description Checks if hash changed **/ var <API key> = function () { var curHash = getHash(); if (curHash !== _fn.hash && !_fn.muted) { // Hash has changed hashHasChanged(curHash); } // Save for later saveHash(curHash); if (_fn.muted) { unmute(); } }; // Save hash for later var saveHash = function (curHash) { _fn.hash = curHash; _fn.hashParams = clone(getParamsFromHash(curHash)); }; /** * @function setHash * @description Sets hash * @param newHash - string - new hash **/ var setHash = function (newHash) { // Type if (typeof newHash !== 'string') { newHash = buildHashFromParams(newHash); } else { if (newHash !== '' && newHash.charAt(0) !== ' newHash = '#' + newHash; } } if (newHash === _fn.hash) { return; } window.location.hash = newHash; }; /** * @function getParamsFromHash * @description Build hash params array from hash string * @param hashStr - string - hash * @returns Array of hash params (names & values) **/ var getParamsFromHash = function (hashStr) { // Use current hash if not specified hashStr = hashStr || getHash(); var currHashParams = {}; if (hashStr.length > 0) { var cutParamType = hashStr.split('&'); for (var j in cutParamType) { var paramObj = cutParamType[j].split('='); if (paramObj[1].length > 0) { var paramValues = paramObj[1].split(','); currHashParams[paramObj[0]] = paramValues; } } } return currHashParams; }; /** * @function getParams * @description Get hash params * @returns Object of hash params **/ var getParams = function () { var tmpHashParams = getParamsFromHash(); return getChangedParams(tmpHashParams, false); }; /** * @function getParam * @description Get one hash param values * @param key - hash param * @returns Array of values | false if param doesn't exist **/ var getParam = function (key) { if (!key) { return false; } var tmpHashParams = getParamsFromHash(); if (!(key in tmpHashParams)) { return false; } return tmpHashParams[key]; }; /** * @function updateHashKeyValue * @description Updates hash key value * @param key - hash param * @param value - hash param value **/ var updateHashKeyValue = function (key, value) { var curParams = clone(_fn.hashParams); curParams[key] = value; // Set hash params setHash(curParams); }; /** * @function deleteParam * @description Deletes hash param(s) * @param key - string|array - hash param(s) name(s) **/ var deleteParam = function (params) { if (!params) { return false; } params = params.constructor !== Array ? [params] : params; var curParams = clone(_fn.hashParams); for (var i in params) { delete curParams[params[i]]; } // Set has params setHash(curParams); }; /** * @function buildHashFromParams * @description Build hash from params * @param hashParamsObj - Object - Hash parameters * @returns string **/ var buildHashFromParams = function (hashParamsObj) { var hashParams = []; for (var i in hashParamsObj) { hashParams.push(i + '=' + (isArr(hashParamsObj[i]) ? hashParamsObj[i].join(',') : hashParamsObj[i])); } return hashParams.join('&'); }; /** * @function hashHasChanged * @description Called when hash has changed * @param curHash - string - current hash **/ var hashHasChanged = function (curHash) { var tmpHashParams = getParamsFromHash(curHash); var changedParams = getChangedParams(tmpHashParams); _fn.hashParams = clone(tmpHashParams); if (Object.keys(changedParams).length > 0) { notifySubscribers(changedParams); } }; /** * @function getChangedParams * @description Get the paramaters that changed since last hash change * @param params - Object - hash parameters * <API key> - Boolean - include parameters changed status - default true * @returns Array of changed params **/ var getChangedParams = function (params, <API key>) { var finalParams = {}; // For each param for (var p in params) { finalParams[p] = { values: clone(params[p]) }; if (<API key> !== false) { finalParams[p].changed = areEqual(params[p], _fn.hashParams[p]); } } return finalParams; }; /** * @function subscribe * @param hashParams - Array - array of hash parameters names * @param cb - function - callback function * @description subscribe to hash **/ var subscribe = function (hashParams, cb) { // New subscriber var subscriber = new Subscriber(hashParams, cb); var subscriberIdx = _fn.subscribers.push(subscriber); // Register params that subscriber is subscribing to for (var p in hashParams) { var paramName = hashParams[p]; if (paramName in _fn.subscribedPerParams === false) { _fn.subscribedPerParams[paramName] = []; } _fn.subscribedPerParams[hashParams[p]].push(subscriberIdx - 1); } }; /** * @function notifySubscribers * @description Notify subscribers if one of the parameters they subscribed to has changed * @param params - Array **/ var notifySubscribers = function (params) { for (var s in _fn.subscribers) { var subscriptions = _fn.subscribers[s].subscriptions; var paramsToNotify = {}; for (var ss in subscriptions) { var subscription = subscriptions[ss]; if (subscription in params) { paramsToNotify[subscription] = params[subscription]; } } if (Object.keys(paramsToNotify).length > 0) { _fn.subscribers[s].notify(paramsToNotify); } } }; /** * @function mute * @description mute subscription **/ var mute = function () { _fn.muted = true; }; /** * @function unmute * @description unmute subscription **/ var unmute = function () { _fn.muted = false; }; return { getInstance: function () { if (!this._instance) { this._instance = Hash; } return this._instance; }, subscribe: subscribe, getHash: getHash, setHash: setHash, getParams: getParams, getParam: getParam, updateHashKeyValue: updateHashKeyValue, deleteParam: deleteParam, init: init, mute: mute, unmute: unmute, destroy: destroy }; })(); module.exports = Hash.getInstance();
package main import ( "fmt" "io/ioutil" "math/rand" "net/http" "regexp" "time" ) func handler(w http.ResponseWriter, r *http.Request) { rand.Seed(time.Now().UnixNano()) body, _ := ioutil.ReadAll(r.Body) // Create a regexp to be able to generate unique devicenames re := regexp.MustCompile("[A-Za-z]*$") fmt.Printf("Connection: %v %v %v %v\n", time.Now(), string(body), r.Host, re.FindString(string(body))) fmt.Fprintf(w, `<?xml version="1.0" encoding="UTF-8" standalone="no"?> <soapenv:Envelope xmlns:soapenv="http: <soapenv:Body> <ns1:<API key> xmlns:ns1="http: <ArrayOfCounterInfo xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" soapenc:arrayType="ns1:CounterInfoType[40]" xsi:type="soapenc:Array"> <item xsi:type="ns1:CounterInfoType"> <Name xsi:type="ns1:CounterNameType">\\%[1]v\%[4]v(%[5]v_Trunk_1)\CallsInProgress</Name> <Value xsi:type="xsd:long">%[2]v</Value> <CStatus xsi:type="xsd:unsignedInt">1</CStatus> </item> <item xsi:type="ns1:CounterInfoType"> <Name xsi:type="ns1:CounterNameType">\\%[1]v\%[4]v(%[5]v_Trunk_2)\CallsInProgress</Name> <Value xsi:type="xsd:long">%[3]v</Value> <CStatus xsi:type="xsd:unsignedInt">1</CStatus> </item> <item xsi:type="ns1:CounterInfoType"> <Name xsi:type="ns1:CounterNameType">\\%[1]v\%[4]v(%[5]v_Trunk_1)\PRIChannelsActive</Name> <Value xsi:type="xsd:long">%[2]v</Value> <CStatus xsi:type="xsd:unsignedInt">1</CStatus> </item> <item xsi:type="ns1:CounterInfoType"> <Name xsi:type="ns1:CounterNameType">\\%[1]v\%[4]v(%[5]v_Trunk_2)\PRIChannelsActive</Name> <Value xsi:type="xsd:long">%[3]v</Value> <CStatus xsi:type="xsd:unsignedInt">1</CStatus> </item> <item xsi:type="ns1:CounterInfoType"> <Name xsi:type="ns1:CounterNameType">\\%[1]v\%[4]v(%[5]v_Trunk_1)\CallsActive</Name> <Value xsi:type="xsd:long">%[2]v</Value> <CStatus xsi:type="xsd:unsignedInt">1</CStatus> </item> <item xsi:type="ns1:CounterInfoType"> <Name xsi:type="ns1:CounterNameType">\\%[1]v\%[4]v(%[5]v_Trunk_2)\CallsActive</Name> <Value xsi:type="xsd:long">%[3]v</Value> <CStatus xsi:type="xsd:unsignedInt">1</CStatus> </item> </ArrayOfCounterInfo> </ns1:<API key>> </soapenv:Body> </soapenv:Envelope>`, r.Host, rand.Intn(100), rand.Intn(100), string(body), re.FindString(string(body))) } func main() { http.HandleFunc("/", handler) http.ListenAndServe(":8080", nil) }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>minic: 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.7.0 / minic - 8.10.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> minic <small> 8.10.0 <span class="label label-info">Not compatible </span> </small> </h1> <p> <em><script>document.write(moment("2022-03-04 08:05:14 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-04 08:05:14 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base camlp5 7.14 <API key> of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.7.0 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.06.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.06.1 Official 4.06.1 release ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/minic&quot; license: &quot;LGPL 2.1&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/MiniC&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;keyword: denotational semantics&quot; &quot;keyword: compilation&quot; &quot;category: Computer Science/Semantics and Compilation/Semantics&quot; ] authors: [ &quot;Eduardo Giménez and Emmanuel Ledinot&quot; ] bug-reports: &quot;https://github.com/coq-contribs/minic/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/minic.git&quot; synopsis: &quot;Semantics of a subset of the C language&quot; description: &quot;&quot;&quot; This contribution defines the denotational semantics of MiniC, a sub-set of the C language. This sub-set is sufficiently large to contain any program generated by lustre2C. The denotation function describing the semantics of a MiniC program actually provides an interpreter for the program.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/minic/archive/v8.10.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </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-minic.8.10.0 coq.8.7.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.7.0). The following dependencies couldn&#39;t be met: - coq-minic -&gt; coq &gt;= 8.10 Your request can&#39;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-minic.8.10.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: </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>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>io-system: 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.1 / io-system - 2.4.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> io-system <small> 2.4.0 <span class="label label-info">Not compatible</span> </small> </h1> <p><em><script>document.write(moment("2021-04-06 21:49:33 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-04-06 21:49:33 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.11.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.11.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.11.1 Official release 4.11.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.1 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;dev@clarus.me&quot; homepage: &quot;https://github.com/clarus/io-system&quot; dev-repo: &quot;git+https://github.com/clarus/io-system.git&quot; bug-reports: &quot;https://github.com/clarus/io-system/issues&quot; authors: [&quot;Guillaume Claret&quot;] license: &quot;MIT&quot; build: [ [&quot;./configure.sh&quot;] [make &quot;-j%{jobs}%&quot;] ] install: [ [make &quot;install&quot;] ] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.4pl4&quot;} &quot;coq-function-ninjas&quot; &quot;coq-list-string&quot; {&gt;= &quot;2.0.0&quot;} &quot;coq-io&quot; {&gt;= &quot;3.2.0&quot; &amp; &lt; &quot;4&quot;} &quot;coq-io-system-ocaml&quot; {&gt;= &quot;2.2.0&quot;} ] tags: [ &quot;date:2015-07-04&quot; &quot;keyword:effects&quot; &quot;keyword:extraction&quot; &quot;logpath:Io.System&quot; ] synopsis: &quot;System effects for Coq&quot; url { src: &quot;https://github.com/coq-io/system/archive/2.4.0.tar.gz&quot; checksum: &quot;md5=<API key>&quot; } </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-io-system.2.4.0 coq.8.11.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.11.1). The following dependencies couldn&#39;t be met: - coq-io-system -&gt; coq-io (&gt;= 3.2.0 &amp; &lt; 4) -&gt; coq &lt; 8.6~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq-io 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-io-system.2.4.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"> <small>Sources are on <a href="https: </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>
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="it"> <head> <!-- Generated by javadoc (1.8.0_111) on Sun Oct 22 23:05:38 CEST 2017 --> <title>T-Index</title> <meta name="date" content="2017-10-22"> <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style"> <script type="text/javascript" src="../script.js"></script> </head> <body> <script type="text/javascript"><! try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="T-Index"; } } catch(err) { } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar.top"> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li>Use</li> <li><a href="../overview-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="index-15.html">Prev Letter</a></li> <li><a href="index-17.html">Next Letter</a></li> </ul> <ul class="navList"> <li><a href="../index.html?index-files/index-16.html" target="_top">Frames</a></li> <li><a href="index-16.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.top"> </a></div> <div class="contentContainer"><a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">E</a>&nbsp;<a href="index-4.html">F</a>&nbsp;<a href="index-5.html">G</a>&nbsp;<a href="index-6.html">H</a>&nbsp;<a href="index-7.html">I</a>&nbsp;<a href="index-8.html">J</a>&nbsp;<a href="index-9.html">L</a>&nbsp;<a href="index-10.html">M</a>&nbsp;<a href="index-11.html">N</a>&nbsp;<a href="index-12.html">P</a>&nbsp;<a href="index-13.html">Q</a>&nbsp;<a href="index-14.html">R</a>&nbsp;<a href="index-15.html">S</a>&nbsp;<a href="index-16.html">T</a>&nbsp;<a href="index-17.html">X</a>&nbsp;<a name="I:T"> </a> <h2 class="title">T</h2> <dl> <dt><span class="memberNameLink"><a href="../xpeppers/interview/strategy/<API key>.html#tax-double-">tax(double)</a></span> - Method in class xpeppers.interview.strategy.<a href="../xpeppers/interview/strategy/<API key>.html" title="class in xpeppers.interview.strategy"><API key></a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../xpeppers/interview/strategy/<API key>.html#tax-double-">tax(double)</a></span> - Method in class xpeppers.interview.strategy.<a href="../xpeppers/interview/strategy/<API key>.html" title="class in xpeppers.interview.strategy"><API key></a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../xpeppers/interview/strategy/ExemptTaxStrategy.html#tax-double-">tax(double)</a></span> - Method in class xpeppers.interview.strategy.<a href="../xpeppers/interview/strategy/ExemptTaxStrategy.html" title="class in xpeppers.interview.strategy">ExemptTaxStrategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../xpeppers/interview/strategy/<API key>.html#tax-double-">tax(double)</a></span> - Method in class xpeppers.interview.strategy.<a href="../xpeppers/interview/strategy/<API key>.html" title="class in xpeppers.interview.strategy"><API key></a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../xpeppers/interview/strategy/Item.html#tax--">tax()</a></span> - Method in class xpeppers.interview.strategy.<a href="../xpeppers/interview/strategy/Item.html" title="class in xpeppers.interview.strategy">Item</a></dt> <dd> <div class="block">Returns the tax rate for this item specified by a TaxStrategy.</div> </dd> <dt><span class="memberNameLink"><a href="../xpeppers/interview/strategy/<API key>.html#tax-double-">tax(double)</a></span> - Method in interface xpeppers.interview.strategy.<a href="../xpeppers/interview/strategy/<API key>.html" title="interface in xpeppers.interview.strategy"><API key></a></dt> <dd> <div class="block">Return the tax rate.</div> </dd> <dt><a href="../xpeppers/interview/strategy/TaxStrategyHelper.html" title="class in xpeppers.interview.strategy"><span class="typeNameLink">TaxStrategyHelper</span></a> - Class in <a href="../xpeppers/interview/strategy/package-summary.html">xpeppers.interview.strategy</a></dt> <dd>&nbsp;</dd> <dt><span class="memberNameLink"><a href="../xpeppers/interview/strategy/TaxStrategyHelper.html#TaxStrategyHelper--">TaxStrategyHelper()</a></span> - Constructor for class xpeppers.interview.strategy.<a href="../xpeppers/interview/strategy/TaxStrategyHelper.html" title="class in xpeppers.interview.strategy">TaxStrategyHelper</a></dt> <dd>&nbsp;</dd> <dt><a href="../xpeppers/interview/strategy/<API key>.html" title="interface in xpeppers.interview.strategy"><span class="typeNameLink"><API key></span></a> - Interface in <a href="../xpeppers/interview/strategy/package-summary.html">xpeppers.interview.strategy</a></dt> <dd> <div class="block">The Interface <API key>.</div> </dd> <dt><span class="memberNameLink"><a href="../xpeppers/interview/input/json/JSONItemConverter.html#toItem-org.json.JSONObject-">toItem(JSONObject)</a></span> - Static method in class xpeppers.interview.input.json.<a href="../xpeppers/interview/input/json/JSONItemConverter.html" title="class in xpeppers.interview.input.json">JSONItemConverter</a></dt> <dd> <div class="block">Tries to parse a well-formatted JSON to Item.</div> </dd> <dt><span class="memberNameLink"><a href="../xpeppers/interview/strategy/Item.html#toString--">toString()</a></span> - Method in class xpeppers.interview.strategy.<a href="../xpeppers/interview/strategy/Item.html" title="class in xpeppers.interview.strategy">Item</a></dt> <dd>&nbsp;</dd> </dl> <a href="index-1.html">A</a>&nbsp;<a href="index-2.html">B</a>&nbsp;<a href="index-3.html">E</a>&nbsp;<a href="index-4.html">F</a>&nbsp;<a href="index-5.html">G</a>&nbsp;<a href="index-6.html">H</a>&nbsp;<a href="index-7.html">I</a>&nbsp;<a href="index-8.html">J</a>&nbsp;<a href="index-9.html">L</a>&nbsp;<a href="index-10.html">M</a>&nbsp;<a href="index-11.html">N</a>&nbsp;<a href="index-12.html">P</a>&nbsp;<a href="index-13.html">Q</a>&nbsp;<a href="index-14.html">R</a>&nbsp;<a href="index-15.html">S</a>&nbsp;<a href="index-16.html">T</a>&nbsp;<a href="index-17.html">X</a>&nbsp;</div> <div class="bottomNav"><a name="navbar.bottom"> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> </a> <ul class="navList" title="Navigation"> <li><a href="../overview-summary.html">Overview</a></li> <li>Package</li> <li>Class</li> <li>Use</li> <li><a href="../overview-tree.html">Tree</a></li> <li><a href="../deprecated-list.html">Deprecated</a></li> <li class="navBarCell1Rev">Index</li> <li><a href="../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="index-15.html">Prev Letter</a></li> <li><a href="index-17.html">Next Letter</a></li> </ul> <ul class="navList"> <li><a href="../index.html?index-files/index-16.html" target="_top">Frames</a></li> <li><a href="index-16.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <a name="skip.navbar.bottom"> </a></div> </body> </html>
layout: post title: 2017-04-14 gnusocial mastodon tags: journal date: 2017-04-14 22:00 published: true <div class="news"><a href="http://narumi.blog.jp/archives/70152095.html" target="_blank"> #dongurifm : Blog @narumi</a> <div class="newscomme"></div> </div> <div class="news"><a href="http: <div class="newscomme"></div> </div> <div class="news"><a href="http: <div class="newscomme"></div> </div> <div class="news"><a href="http://anond.hatelabo.jp/20170413052527" target="_blank">59</a> <div class="newscomme"></div> </div> <div class="news"><a href="https://blog.cardina1.red/2017/04/13/<API key>/" target="_blank">gnusocial mastodon - </a> <div class="newscomme"></div> </div> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">………… <a href="https: <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">… <a href="https: <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">…</p>&mdash; (@d_d_osorezan) <a href="https://twitter.com/d_d_osorezan/status/852186687497134081">April 12, 2017</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">SP4/11</p>&mdash; (@inyou_te) <a href="https://twitter.com/inyou_te/status/852474975642501120">April 13, 2017</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr"></p>&mdash; (@u5u) <a href="https://twitter.com/u5u/status/852528559348359169">April 13, 2017</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">40km/h40km/h <a href="https://twitter.com/hashtag/%E3%82%8C%E3%81%99%E3%81%8B%E3%82%93?src=hash"> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">×</p>&mdash; (@u5u) <a href="https://twitter.com/u5u/status/852704322588516352">April 14, 2017</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr"> <a href="https: <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr"> <a href="https: <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr">…</p>&mdash; (@ikazombie) <a href="https://twitter.com/ikazombie/status/852125409995087873">April 12, 2017</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr"> <a href="https: <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> <blockquote class="twitter-tweet"><p lang="ja" dir="ltr"><a href="https: <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
var Processor, mixable, processor, stacker; require('highland-array'); mixable = require('../mixable'); stacker = require('../helpers/stacker'); processor = require('../helpers/processor'); /** * Represents a processor. * * A simple implement of proto/processor. * * @param *task */ module.exports = Processor = (function() { /** * Constructor. */ function Processor() { var task, _i, _len; for (_i = 0, _len = arguments.length; _i < _len; _i++) { task = arguments[_i]; this.task(task); } } /** * A stack of tasks. * * @type {Function} */ Processor.prototype.task = stacker('_tasks'); /** * The processor. * * @type {Function} */ Processor.prototype._process = processor(); /** * Consume tasks with the processor. */ Processor.prototype.consume = function(done) { var stream; stream = this._process(this.task().shiftToStream()); if (done == null) { return stream; } stream.on('error', done); stream.toArray(function(res) { return done(null, res); }); return this; }; return Processor; })(); /** * Mixins. */ mixable(Processor);
require "semantic_range/version" require "semantic_range/pre_release" require "semantic_range/range" require "semantic_range/comparator" module SemanticRange BUILDIDENTIFIER = /[0-9A-Za-z-]+/ BUILD = /(?:\+(#{BUILDIDENTIFIER.source}(?:\.#{BUILDIDENTIFIER.source})*))/ NUMERICIDENTIFIER = /0|[1-9]\d*/ <API key> = /[0-9]+/ <API key> = /\d*[a-zA-Z-][a-zA-Z0-9-]*/ <API key> = /#{<API key>.source}|x|X|\*/ <API key> = /(?:#{<API key>.source}|#{<API key>.source})/ PRERELEASELOOSE = /(?:-?(#{<API key>.source}(?:\.#{<API key>.source})*))/ XRANGEPLAINLOOSE = /[v=\s]*(#{<API key>.source})(?:\.(#{<API key>.source})(?:\.(#{<API key>.source})(?:#{PRERELEASELOOSE.source})?#{BUILD.source}?)?)?/ HYPHENRANGELOOSE = /^\s*(#{XRANGEPLAINLOOSE.source})\s+-\s+(#{XRANGEPLAINLOOSE.source})\s*$/ <API key> = /(?:#{NUMERICIDENTIFIER.source}|#{<API key>.source})/ PRERELEASE = /(?:-(#{<API key>.source}(?:\.#{<API key>.source})*))/ XRANGEIDENTIFIER = /#{NUMERICIDENTIFIER.source}|x|X|\*/ XRANGEPLAIN = /[v=\s]*(#{XRANGEIDENTIFIER.source})(?:\.(#{XRANGEIDENTIFIER.source})(?:\.(#{XRANGEIDENTIFIER.source})(?:#{PRERELEASE.source})?#{BUILD.source}?)?)?/ HYPHENRANGE = /^\s*(#{XRANGEPLAIN.source})\s+-\s+(#{XRANGEPLAIN.source})\s*$/ MAINVERSIONLOOSE = /(#{<API key>.source})\.(#{<API key>.source})\.(#{<API key>.source})/ LOOSEPLAIN = /[v=\s]*#{MAINVERSIONLOOSE.source}#{PRERELEASELOOSE.source}?#{BUILD.source}?/ GTLT = /((?:<|>)?=?)/ COMPARATORTRIM = /(\s*)#{GTLT.source}\s*(#{LOOSEPLAIN.source}|#{XRANGEPLAIN.source})/ LONETILDE = /(?:~>?)/ TILDETRIM = /(\s*)#{LONETILDE.source}\s+/ LONECARET = /(?:\^)/ CARETTRIM = /(\s*)#{LONECARET.source}\s+/ STAR = /(<|>)?=?\s*\*/ CARET = /^#{LONECARET.source}#{XRANGEPLAIN.source}$/ CARETLOOSE = /^#{LONECARET.source}#{XRANGEPLAINLOOSE.source}$/ MAINVERSION = /(#{NUMERICIDENTIFIER.source})\.(#{NUMERICIDENTIFIER.source})\.(#{NUMERICIDENTIFIER.source})/ FULLPLAIN = /v?#{MAINVERSION.source}#{PRERELEASE.source}?#{BUILD.source}?/ FULL = /^#{FULLPLAIN.source}$/ LOOSE = /^#{LOOSEPLAIN.source}$/ TILDE = /^#{LONETILDE.source}#{XRANGEPLAIN.source}$/ TILDELOOSE = /^#{LONETILDE.source}#{XRANGEPLAINLOOSE.source}$/ XRANGE = /^#{GTLT.source}\s*#{XRANGEPLAIN.source}$/ XRANGELOOSE = /^#{GTLT.source}\s*#{XRANGEPLAINLOOSE.source}$/ COMPARATOR = /^#{GTLT.source}\s*(#{FULLPLAIN.source})$|^$/ COMPARATORLOOSE = /^#{GTLT.source}\s*(#{LOOSEPLAIN.source})$|^$/ ANY = {} MAX_LENGTH = 256 class InvalidIncrement < StandardError; end class InvalidVersion < StandardError; end class InvalidComparator < StandardError; end class InvalidRange < StandardError; end def self.ltr?(version, range, loose: false, platform: nil) outside?(version, range, '<', loose: loose, platform: platform) end def self.gtr?(version, range, loose: false, platform: nil) outside?(version, range, '>', loose: loose, platform: platform) end def self.cmp(a, op, b, loose: false) case op when '===' a = a.version if !a.is_a?(String) b = b.version if !b.is_a?(String) a == b when '!==' a = a.version if !a.is_a?(String) b = b.version if !b.is_a?(String) a != b when '', '=', '==' eq?(a, b, loose: loose) when '!=' neq?(a, b, loose: loose) when '>' gt?(a, b, loose: loose) when '>=' gte?(a, b, loose: loose) when '<' lt?(a, b, loose: loose) when '<=' lte?(a, b, loose: loose) else raise 'Invalid operator: ' + op end end def self.outside?(version, range, hilo, loose: false, platform: nil) version = Version.new(version, loose: loose) range = Range.new(range, loose: loose, platform: platform) return false if satisfies?(version, range, loose: loose, platform: platform) case hilo when '>' comp = '>' ecomp = '>=' when '<' comp = '<' ecomp = '<=' end range.set.each do |comparators| high = nil low = nil comparators.each do |comparator| if comparator.semver == ANY comparator = Comparator.new('>=0.0.0', loose) end high = high || comparator low = low || comparator case hilo when '>' if gt?(comparator.semver, high.semver, loose: loose) high = comparator elsif lt?(comparator.semver, low.semver, loose: loose) low = comparator end when '<' if lt?(comparator.semver, high.semver, loose: loose) high = comparator elsif gt?(comparator.semver, low.semver, loose: loose) low = comparator end end end return false if (high.operator == comp || high.operator == ecomp) case hilo when '>' if (low.operator.empty? || low.operator == comp) && lte?(version, low.semver, loose: loose) return false; elsif (low.operator == ecomp && lt?(version, low.semver, loose: loose)) return false; end when '<' if (low.operator.empty? || low.operator == comp) && gte?(version, low.semver, loose: loose) return false; elsif low.operator == ecomp && gt?(version, low.semver, loose: loose) return false; end end end true end def self.satisfies?(version, range, loose: false, platform: nil) return false if !valid_range(range, loose: loose, platform: platform) Range.new(range, loose: loose, platform: platform).test(version) end def self.filter(versions, range, loose: false, platform: nil) return [] if !valid_range(range, loose: loose, platform: platform) versions.filter { |v| SemanticRange.satisfies?(v, range, loose: loose, platform: platform) } end def self.max_satisfying(versions, range, loose: false, platform: nil) versions.select { |version| satisfies?(version, range, loose: loose, platform: platform) }.sort { |a, b| rcompare(a, b, loose: loose) }[0] || nil end def self.valid_range(range, loose: false, platform: nil) begin r = Range.new(range, loose: loose, platform: platform).range r = '*' if r.nil? || r.empty? r rescue nil end end def self.compare(a, b, loose: false) Version.new(a, loose: loose).compare(b) end def self.compare_loose(a, b) compare(a, b, loose: true) end def self.rcompare(a, b, loose: false) compare(b, a, loose: true) end def self.sort(list, loose: false) # TODO end def self.rsort(list, loose: false) # TODO end def self.lt?(a, b, loose: false) compare(a, b, loose: loose) < 0 end def self.gt?(a, b, loose: false) compare(a, b, loose: loose) > 0 end def self.eq?(a, b, loose: false) compare(a, b, loose: loose) == 0 end def self.neq?(a, b, loose: false) compare(a, b, loose: loose) != 0 end def self.gte?(a, b, loose: false) compare(a, b, loose: loose) >= 0 end def self.lte?(a, b, loose: false) compare(a, b, loose: loose) <= 0 end def self.valid(version, loose: false) v = parse(version, loose: loose) return v ? v.version : nil end def self.clean(version, loose: false) s = parse(version.strip.gsub(/^[=v]+/, ''), loose: loose) return s ? s.version : nil end def self.parse(version, loose: false) return version if version.is_a?(Version) return nil unless version.is_a?(String) stripped_version = version.strip return nil if stripped_version.length > MAX_LENGTH rxp = loose ? LOOSE : FULL return nil if !rxp.match(stripped_version) Version.new(stripped_version, loose: loose) end def self.increment!(version, release, identifier, loose: false) Version.new(version, loose: loose).increment!(release, identifier).version rescue InvalidIncrement, InvalidVersion nil end def self.diff(a, b) a = Version.new(a, loose: false) unless a.kind_of?(Version) b = Version.new(b, loose: false) unless b.kind_of?(Version) pre_diff = a.prerelease.to_s != b.prerelease.to_s pre = pre_diff ? 'pre' : '' return "#{pre}major" if a.major != b.major return "#{pre}minor" if a.minor != b.minor return "#{pre}patch" if a.patch != b.patch return "prerelease" if pre_diff end def self.to_comparators(range, loose: false, platform: nil) Range.new(range, loose: loose, platform: platform).set.map do |comp| comp.map(&:to_s) end end class << self # Support for older non-inquisitive method versions alias_method :gt, :gt? alias_method :gtr, :gtr? alias_method :gte, :gte? alias_method :lt, :lt? alias_method :ltr, :ltr? alias_method :lte, :lte? alias_method :eq, :eq? alias_method :neq, :neq? alias_method :outside, :outside? alias_method :satisfies, :satisfies? end end
// Package tock provides a Ticker which is API-compatible with a // time.Ticker, but also allows the caller to stop, restart, and adjust // duration with which the Ticker ticks. // Receivers can listen on the same channel for all of the above // operations. Ticker is safe for use by multiple goroutines. package tock import ( "errors" "time" ) // ErrDuration is returned if a non-positive duration is given to a // Ticker. var ErrDuration = errors.New("non-positive interval provided") // A Ticker holds a channel that delivers ticks of a clock at // intervals. // A Ticker's tick interval can be adjusted, and the Ticker can be // restarted once stopped. Sends to C will cease when the Ticker is // stopped and begin again when the Ticker is restarted. type Ticker struct { C <-chan time.Time // The channel on which the ticks are delivered. c chan time.Time t *time.Ticker dc chan time.Duration } // NewTicker returns a new Ticker containing a channel that will send // the time with a period specified by the duration argument. // It adjusts the intervals or drops ticks to make up for slow // receivers. The duration d must be greater > 0; if not, // NewTicker will panic. // Adjust the ticker to change the tick duration; Restart the Ticker to // start a previously stopped Ticker. func NewTicker(d time.Duration) *Ticker { if d <= 0 { panic(errors.New("non-positive interval for NewTicker")) } t := &Ticker{ c: make(chan time.Time, 1), t: time.NewTicker(d), dc: make(chan time.Duration, 1), } t.C = t.c go t.start(d) return t } func (t *Ticker) start(initial time.Duration) { var ( tick *time.Ticker d = initial ) for { tick = t.t select { case nextd := <-t.dc: if t.t != nil { t.t.Stop() } // We wish to resume or change the Ticker. if nextd >= 0 { if nextd > 0 { // Adjusting the Ticker to a new duration. d = nextd } if d > 0 { // Create a new time.Ticker with the given duration. t.t = time.NewTicker(d) } } case tm := <-tick.C: // non-blocking send will drop tm on the floor if there are // slow receivers select { case t.c <- tm: default: } } } } // Stop turns off a Ticker. // Stop does not close Ticker.C, to prevent a read from the channel // succeeding incorrectly. func (t *Ticker) Stop() { t.dc <- time.Duration(-1) } // Resume resumes a previously stopped Ticker. // When a channel is resumed, ticks will continue to be sent down C. func (t *Ticker) Resume() { t.dc <- time.Duration(0) } // Adjust changes the duration period that the ticker sends the // time on. // Adjust returns an error if d is non-positive. The existing duration // is maintained in this case that an invalid duration is provided. func (t *Ticker) Adjust(d time.Duration) error { if d <= 0 { return ErrDuration } t.dc <- d return nil }
<html><body> <h4>Windows 10 x64 (18362.418)</h4><br> <h2><API key></h2> <font face="arial"> +0x000 Ttbr0 : <a href="./_LARGE_INTEGER.html">_LARGE_INTEGER</a><br> +0x008 Ttbr1 : <a href="./_LARGE_INTEGER.html">_LARGE_INTEGER</a><br> +0x010 Mair0 : Uint4B<br> +0x014 Mair1 : Uint4B<br> +0x018 InputSize0 : UChar<br> +0x019 InputSize1 : UChar<br> +0x01a CoherentTableWalks : UChar<br> +0x01b TranslationEnabled : UChar<br> </font></body></html>
#pragma once #include <ostream> #include <boost/graph/adjacency_list.hpp> #include "periodic.hpp" #include "ctab.hpp" // MOL file format (aka CTable) struct AtomVertex{ Code code; // temporaries for DFS that is used to find linear descriptors boost::default_color_type color; int path; // deduced as part of FCSP algorithm int valence; // effective valence int piE; // number of PI-electrons bool inAromaCycle; // is part of aromatic cycle? AtomVertex(){} AtomVertex(Code code_): code(code_), path(0), valence(0), piE(0), inAromaCycle(false){} }; struct Bound{ int type; Bound(){} Bound(int type_) :type(type_){} }; template<typename V, typename E> using Graph = boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, V, E>; using ChemGraph = boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, AtomVertex, Bound>; using vd = ChemGraph::vertex_descriptor; using ed = ChemGraph::edge_descriptor; ChemGraph toGraph(CTab& tab); ChemGraph& addHydrogen(ChemGraph& graph); int getValence(ChemGraph& graph, ChemGraph::vertex_descriptor vertex); void dumpGraph(ChemGraph& graph, std::ostream& out); template<class T, class EdgeMap> std::vector<vd> cycleToChain(std::vector<T>& ic, EdgeMap&& mapper) { typename std::vector<vd> vc; auto seed = mapper(ic.front()); vc.push_back(seed.first); vc.push_back(seed.second); while (vc.front() != vc.back()) { bool found = false; for (auto e : ic) { auto p = mapper(e); //has common vertex with back of chain and not == second one if (p.first == vc.back() && p.second != vc[vc.size() - 2]) vc.push_back(p.second); else if (p.second == vc.back() && p.first != vc[vc.size() - 2]) vc.push_back(p.first); //has common vertex with front of chain and not == second one else if (p.first == vc[0] && p.second != vc[1]) vc.insert(vc.begin(), p.second); else if (p.second == vc[0] && p.first != vc[1]) vc.insert(vc.begin(), p.first); else continue; found = true; break; } assert(found); } vc.pop_back(); return vc; } template<class T> inline bool operator<(const std::pair<T,T>& a, std::pair<T,T>& b){ return a.first < b.first || (a.first == b.first && a.second < b.second); } struct Cycle{ public: std::vector<vd> chain; std::vector<std::pair<vd, vd>> edges; // ordered vertices (first<second) bool aromatic_; public: // From set of edges Cycle(std::vector<std::pair<vd, vd>> edges_); // From chain of vertices Cycle(std::vector<vd> chain); // True if there is intersection of this and that cycle bool intersects(const Cycle& that)const; // Get set of edges of the intersection of this and that std::vector<std::pair<vd,vd>> intersection(const Cycle& c)const; // True if this cylce is aromatic bool aromatic()const{ return aromatic_; } // Chemical notion of size - number of edges size_t size()const{ return edges.size(); } // sets aromatic flags on atoms and cycle itself iff aromatic Cycle& markAromatic(ChemGraph& graph); // output as chain friend std::ostream& operator<<(std::ostream& stream, const Cycle& cycle); }; std::ostream& operator<<(std::ostream& stream, const Cycle& cycle); // Obtain minimal cycle basis std::vector<Cycle> minimalCycleBasis(ChemGraph& graph); // Impl class template<class Vertex, class Edge> struct ConnectedComponents{ using G = Graph<Vertex,Edge>; ConnectedComponents(G& graph): components(), g(graph),labels(boost::num_vertices(graph)), label(0){ findComponents(); } std::vector<G> components; private: void findComponents(){ using namespace boost; auto const V = num_vertices(g); for(size_t v=0; v<V; v++){ if(!labels[v]){ ++label; //start new component dfs(v); } } if(label == 1){ components.push_back(g); return; } components.resize(label); // for each component map global --> component std::vector<std::vector<size_t>> g2c(label); for(auto & vec : g2c) vec.resize(V); // map vertices to components and record positions for(size_t v=0; v<V; v++){ int lbl = labels[v] - 1; g2c[lbl][v] = add_vertex(g[v], components[lbl]); } // use map to copy over edges for(size_t v=0; v<V; v++){ auto adj = adjacent_vertices(v, g); for(auto p=adj.first; p!=adj.second; p++){ auto w = *p; if (w < v){ //deduplicate continue; } int lbl = labels[v] - 1; auto e = edge(v, w, g).first; add_edge(g2c[lbl][v], g2c[lbl][w], g[e], components[lbl]); } } } void dfs(size_t v){ labels[v] = label; auto adj = adjacent_vertices(v, g); for(auto p = adj.first; p != adj.second; p++){ auto w = *p; if(!labels[w]){ dfs(w); } } } G& g; std::vector<int> labels; int label; }; // Will copy g if it's the only component template<class V, class E> std::vector<Graph<V,E>> connectedComponents(Graph<V,E> &g) { return ConnectedComponents<V,E>(g).components; }
@import url('https://fonts.googleapis.com/css?family=Playfair+Display'); @import url('https://fonts.googleapis.com/css?family=Montserrat');
// Show a list of all existing NNTP groups 'use strict'; module.exports = function (N, apiPath) { N.validate(apiPath, {}); N.wire.on(apiPath, async function nntp_groups_list(env) { env.res.head.title = env.t('title'); let groups = await N.models.nntp.Group.find() .sort('name') .lean(true); let rebuild_in_progress = {}; await Promise.all(groups.map(group => { let task_id = `nntp_group_rebuild_${group.type}:${group._id}`; return N.queue.getTask(task_id).then(task => { if (task?.state !== 'finished') { rebuild_in_progress[group._id] = true; } }); })); env.res.groups = groups; env.res.rebuild_in_progress = rebuild_in_progress; env.res.menu = N.config.menus?.admin?.nntp ?? {}; }); };
"use strict"; /** * Generates randomized boolean value. * * @returns {boolean} */ function booleanGenerator() { return Math.random() > 0.5; } module.exports = booleanGenerator;
export { default, timeScale } from 'ember-d3-scale/helpers/time-scale';
package libsass import ( "errors" "fmt" "image/color" "reflect" "strconv" "strings" "github.com/wellington/go-libsass/libs" ) var ( ErrSassNumberNoUnit = errors.New("SassNumber has no units") ) type SassValue struct { value libs.UnionSassValue } func (sv SassValue) Val() libs.UnionSassValue { return sv.value } func NewSassValue() SassValue { return SassValue{value: libs.NewUnionSassValue()} } func unmarshal(arg SassValue, v interface{}) error { sv := arg.Val() //Get the underlying value of v and its kind f := reflect.ValueOf(v) if f.Kind() == reflect.Ptr { f = f.Elem() } k := f.Kind() t := f.Type() if k == reflect.Interface { switch { case libs.IsNil(sv): f.Set(reflect.ValueOf("<nil>")) return nil case libs.IsString(sv): k = reflect.String case libs.IsBool(sv): k = reflect.Bool case libs.IsNumber(sv): k = reflect.Struct case libs.IsList(sv): k = reflect.Slice t = reflect.SliceOf(t) case libs.IsError(sv): // This should get implemented as type error k = reflect.String case libs.IsColor(sv): k = reflect.Struct default: return errors.New("Uncovertable interface value.") } } switch k { case reflect.Invalid: return errors.New("Invalid SASS Value - Taylor Swift") case reflect.String: if libs.IsString(sv) || libs.IsError(sv) { gc := libs.String(sv) //drop quotes if t, err := strconv.Unquote(gc); err == nil { gc = t } if strings.HasPrefix(gc, "'") && strings.HasSuffix(gc, "'") { gc = gc[1 : len(gc)-1] } if !f.CanSet() { return errors.New("Can not set string") } switch t := f.Kind(); t { case reflect.String: f.SetString(gc) case reflect.Interface: f.Set(reflect.ValueOf(gc)) } } else { return <API key>(arg, "string") } case reflect.Bool: if libs.IsBool(sv) { b := libs.Bool(sv) f.Set(reflect.ValueOf(b)) } else { return <API key>(arg, "bool") } case reflect.Struct: switch { case libs.IsColor(sv): col := libs.Color(sv) f.Set(reflect.ValueOf(col)) case libs.IsNumber(sv): u, err := getSassNumberUnit(arg) if err != nil { return err } sn := libs.SassNumber{ Value: libs.Float(sv), Unit: u, } f.Set(reflect.ValueOf(sn)) default: return <API key>(arg, "color.RGBA or SassNumber") } case reflect.Slice: if !libs.IsList(sv) { return <API key>(arg, "slice") } libs.Slice(arg.Val(), v) default: return errors.New("Unsupported SassValue") } return nil } // Decode converts Sass Value to Go compatible data types. func Unmarshal(arg SassValue, v ...interface{}) error { var err error sv := arg.Val() var l int if libs.IsList(sv) { l = libs.Len(sv) } if arg.Val() == nil { return errors.New("I can't work with this. arg UnionSassValue must not be nil. - Unmarshaller") } else if len(v) == 0 { return errors.New("Cannot Unmarshal an empty value - Michael Scott") } else if len(v) > 1 { if len(v) < l { //check for optional arguements that are not passed and pad with nil return fmt.Errorf( "Arguments mismatch %d C arguments did not match %d", l, len(v)) } for i := 0; i < l; i++ { val := libs.Index(sv, i) err = unmarshal(SassValue{value: val}, v[i]) if err != nil { return err } } return err } else if libs.IsList(sv) && getKind(v[0]) != reflect.Slice && l == 1 { //arg is a slice of 1 but we want back a non slice val := libs.Index(sv, 0) return unmarshal(SassValue{value: val}, v[0]) } else if libs.IsList(sv) && getKind(v[0]) == reflect.Slice && libs.IsList(libs.Index(sv, 0)) && l == 1 { //arg is a list of single list and we only want back a list so we need to unwrap val := libs.Index(sv, 0) return unmarshal(SassValue{value: val}, v[0]) //return unmarshal(C.sass_list_get_value(arg, C.size_t(0)), v[0]) } else { return unmarshal(arg, v[0]) } } func getKind(v interface{}) reflect.Kind { f := reflect.ValueOf(v) if f.Kind() == reflect.Ptr { f = f.Elem() } return f.Kind() } func noSassNumberUnit(arg SassValue) bool { u := libs.Unit(arg.Val()) return u == "" || u == "none" } func getSassNumberUnit(arg SassValue) (string, error) { u := libs.Unit(arg.Val()) var err error if noSassNumberUnit(arg) { return u, ErrSassNumberNoUnit } if _, ok := libs.SassUnitConversions[u]; !ok { return u, fmt.Errorf("SassNumber units %s are unsupported", u) } return u, err } func Marshal(v interface{}) (SassValue, error) { return makevalue(v) } // make is needed to create types for use by test func makevalue(v interface{}) (SassValue, error) { f := reflect.ValueOf(v) var err error switch f.Kind() { default: return SassValue{value: libs.MakeNil()}, nil case reflect.Bool: b := v.(bool) return SassValue{value: libs.MakeBool(b)}, nil case reflect.String: s := v.(string) return SassValue{value: libs.MakeString(s)}, nil case reflect.Struct: //only SassNumber and color.RGBA are supported if sn, ok := v.(libs.SassNumber); ok { return SassValue{ value: libs.MakeNumber(sn.Float(), sn.UnitOf()), }, err } else if sc, ok := v.(color.RGBA); ok { return SassValue{value: libs.MakeColor(sc)}, nil } else { err = errors.New(fmt.Sprintf("The struct type %s is unsupported for marshalling", reflect.TypeOf(v).String())) return SassValue{value: libs.MakeNil()}, err } case reflect.Slice: // Initialize the list lst := libs.MakeList(f.Len()) for i := 0; i < f.Len(); i++ { t, er := makevalue(f.Index(i).Interface()) if err == nil && er != nil { err = er } libs.SetIndex(lst, i, t.Val()) } return SassValue{value: lst}, err } } func <API key>(arg SassValue, expectedType string) error { var intf interface{} unmarshal(arg, &intf) svinf := libs.Interface(arg.Val()) return fmt.Errorf("Invalid Sass type expected: %s got: %T value: %v", expectedType, svinf, svinf) }
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^login/$', views.login, name='login'), url(r'^register/$', views.register, name='register'), url(r'^logout/$', views.logout, name='logout'), url(r'^plaza/$', views.plaza, name='plaza'), ]
var assert = require('assert') var bindArgs = require('../bind-args') bindArgs(func1, 'a', 2)('c', 4) function func1 (a, b, c, d) { assert.strictEqual(a, 'a') assert.strictEqual(b, 2) assert.strictEqual(c, 'c') assert.strictEqual(d, 4) }
require_relative '../extensions' module Asciidoctor module Question class <API key> < Extensions::BaseProcessor <API key> :shuffle def process(parent, source, tag) id = tag[:id] err = nil question = Array.new answers = Array.new ['[options=interactive]'] switch = false source.lines.each do |line| switch = true if line =~ /^-\s?\[/ if switch answers.push line else question.push line end end answers = <API key> answers attrs = {'id' => "question_#{id}_type=mc"} attrs['id'] += '_shuffle' unless tag[:shuffle].nil? new_parent = Asciidoctor::Block.new parent, :open, {:attributes => attrs} reader = Asciidoctor::Reader.new(question) loop do block = Asciidoctor::Parser.next_block reader, new_parent break if block.nil? new_parent.blocks.push block end reader = Asciidoctor::Reader.new(answers) answers_block = Asciidoctor::Parser.next_block reader, new_parent if answers_block.nil? err = 'Es sind keine Antworten vorhanden!' end if err.nil? new_parent.blocks.push prepare_answers answers_block, tag post_answers new_parent, tag else process_error_push new_parent, err, answers end new_parent end def <API key>(lines) lines end def prepare_answers(answers_block, tag) answers_block.blocks.shuffle! if tag[:shuffle] answers_block end end class <API key> < <API key> def prepare_answers(answers_block, tag) super unless tag[:solution] answers_block.blocks.each do |answer| answer.attributes.delete('checked') end end answers_block end def post_answers(parent, tag) end end class <API key> < <API key> def <API key>(lines) lines.map! do |answer| if answer =~ /^-\s?\[/ then answer.sub ']', '] +++ <span/> +++' else answer end end lines end def prepare_answers(answers_block, tag) id = tag[:id] aid = -1 answers_block.attributes['id'] = "answers_mc_ answers_block.blocks.each do |answer| answer.attributes['id'] = "answer_mc_#{id}_#{aid += 1}" end answers_block end end end end
""" Functions related to writing to and retrieving from cache files """ import os import numpy as np from log_yatsm import logger _image_ID_str = 'image_IDs' def get_line_cache_name(dataset_config, n_images, row, nbands): """ Returns cache filename for specified config and line number Args: dataset_config (dict): configuration information about the dataset n_images (int): number of images in dataset row (int): line of the dataset for output nbands (int): number of bands in dataset Returns: str: filename of cache file """ path = dataset_config['cache_line_dir'] filename = 'yatsm_r{l}_n{n}_b{b}.npy.npz'.format( l=row, n=n_images, b=nbands) return os.path.join(path, filename) def <API key>(row, nbands, regex=False): """ Returns a pattern for a cache file from a certain row This function is useful for finding all cache files from a line, ignoring the number of images in the file. Args: row (int): line of the dataset for output nbands (int): number of bands in dataset regex (bool, optional): return a regular expression instead of glob style (default: False) Returns: str: filename pattern for cache files from line `row` """ wildcard = '.*' if regex else '*' pattern = 'yatsm_r{l}_n{w}_b{b}.npy.npz'.format( l=row, w=wildcard, b=nbands) return pattern def test_cache(dataset_config): """ Test cache directory for ability to read from or write to Args: dataset_config (dict): dictionary of dataset configuration options Returns: (read_cache, write_cache): tuple of bools describing ability to read from and write to cache directory """ # Try to find / use cache read_cache = False write_cache = False cache_dir = dataset_config.get('cache_line_dir') if cache_dir: # Test existence if os.path.isdir(cache_dir): if os.access(cache_dir, os.R_OK): read_cache = True if os.access(cache_dir, os.W_OK): write_cache = True if read_cache and not write_cache: logger.warning('Cache directory exists but is not writable') else: # If it doesn't already exist, can we create it? try: os.makedirs(cache_dir) except: logger.warning('Could not create cache directory') else: read_cache = True write_cache = True logger.debug('Attempt reading in from cache directory?: {b}'.format( b=read_cache)) logger.debug('Attempt writing to cache directory?: {b}'.format( b=write_cache)) return read_cache, write_cache def read_cache_file(cache_filename, image_IDs=None): """ Returns image data from a cache file If `image_IDs` is not None this function will try to ensure data from cache file come from the list of image IDs provided. If cache file does not contain a list of image IDs, it will skip the check and return cache data. Args: cache_filename (str): cache filename image_IDs (iterable, optional): list of image IDs corresponding to data in cache file. If not specified, function will not check for correspondence (default: None) Returns: np.ndarray, or None: Return Y as np.ndarray if possible and if the cache file passes the consistency check specified by `image_IDs`; else None """ try: cache = np.load(cache_filename) except IOError: return None if _image_ID_str in cache.files and image_IDs is not None: if not np.array_equal(image_IDs, cache[_image_ID_str]): logger.warning('Cache file data in {f} do not match images ' 'specified'.format(f=cache_filename)) return None return cache['Y'] def write_cache_file(cache_filename, Y, image_IDs): """ Writes data to a cache file using np.savez_compressed Args: cache_filename (str): cache filename Y (np.ndarray) image_IDs (iterable): list of image IDs corresponding to data in cache file. If not specified, function will not check for correspondence """ np.savez_compressed(cache_filename, **{ 'Y': Y, _image_ID_str: image_IDs }) # Cache file updating def update_cache_file(images, image_IDs, old_cache_filename, new_cache_filename, line, reader, reader_kwargs={}): """ Modify an existing cache file to contain data within `images` This should be useful for updating a set of cache files to reflect modifications to the timeseries dataset without completely reading the data into another cache file. For example, the cache file could be updated to reflect the deletion of a misregistered or cloudy image. Another common example would be for updating cache files to include newly acquired observations. Note that this updater will not handle updating cache files to include new bands. Args: images (iterable): list of new image filenames image_IDs (iterable): list of new image identifying strings old_cache_filename (str): filename of cache file to update new_cache_filename (str): filename of new cache file which includes modified data line (int): the line of data to be updated reader (callable): GDAL or BIP image reader function from `yatsm.readers` reader_kwargs (dict): additional keyword arguments for `reader` other than the filenames to read and the line to read Raises: ValueError: Raise error if old cache file does not record `image_IDs` """ images = np.asarray(images) image_IDs = np.asarray(image_IDs) # Cannot proceed if old cache file doesn't store filenames old_cache = np.load(old_cache_filename) if _image_ID_str not in old_cache.files: raise ValueError('Cannot update cache.' 'Old cache file does not store image IDs.') old_IDs = old_cache[_image_ID_str] old_Y = old_cache['Y'] nband, _, ncol = old_Y.shape # Create new Y and add in values retained from old cache new_Y = np.zeros((nband, image_IDs.size, ncol), dtype=old_Y.dtype.type) new_IDs = np.zeros(image_IDs.size, dtype=image_IDs.dtype) # Check deletions -- find which indices to retain in new cache retain_old = np.where(np.in1d(old_IDs, image_IDs))[0] if retain_old.size == 0: logger.warning('No image IDs in common in old cache file.') else: logger.debug(' retaining {r} of {n} images'.format( r=retain_old.size, n=old_IDs.size)) # Find indices of old data to insert into new data idx_old_IDs = np.argsort(old_IDs) sorted_old_IDs = old_IDs[idx_old_IDs] idx_IDs = np.searchsorted(sorted_old_IDs, image_IDs[np.in1d(image_IDs, old_IDs)]) retain_old = idx_old_IDs[idx_IDs] # Indices to insert into new data retain_new = np.where(np.in1d(image_IDs, old_IDs))[0] new_Y[:, retain_new, :] = old_Y[:, retain_old, :] new_IDs[retain_new] = old_IDs[retain_old] # Check additions -- find which indices we need to insert insert = np.where(np.in1d(image_IDs, old_IDs) == False)[0] if retain_old.size == 0 and insert.size == 0: raise ValueError('Cannot update cache file 'no data retained or added') # Read in the remaining data from disk if insert.size > 0: logger.debug('Inserting {n} new images into cache'.format( n=insert.size)) insert_Y = reader(images[insert], line, **reader_kwargs) new_Y[:, insert, :] = insert_Y new_IDs[insert] = image_IDs[insert] np.testing.assert_equal(new_IDs, image_IDs) # Save write_cache_file(new_cache_filename, new_Y, image_IDs)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/4.0 (compatible; BlitzBot)</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="../circle.css" rel="stylesheet"> </head> <body> <div class="container"> <div class="section"> <h1 class="header center orange-text">User agent detail</h1> <div class="row center"> <h5 class="header light"> Mozilla/4.0 (compatible; BlitzBot) </h5> </div> </div> <div class="section"> <table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>Browscap<br /><small>6014</small><br /><small>vendor/browscap/browscap/tests/fixtures/issues/issue-900.php</small></td><td>Default Browser 0.0</td><td>unknown unknown</td><td>unknown unknown</td><td style="border-left: 1px solid #555">unknown</td><td>unknown</td><td>unknown</td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Browscap result detail</h4> <p><pre><code class="php">Array ( [Comment] => Default Browser [Browser] => Default Browser [Browser_Type] => unknown [Browser_Bits] => 0 [Browser_Maker] => unknown [Browser_Modus] => unknown [Version] => 0.0 [MajorVer] => 0 [MinorVer] => 0 [Platform] => unknown [Platform_Version] => unknown [<API key>] => unknown [Platform_Bits] => 0 [Platform_Maker] => unknown [Alpha] => [Beta] => [Win16] => [Win32] => [Win64] => [Frames] => [IFrames] => [Tables] => [Cookies] => [BackgroundSounds] => [JavaScript] => [VBScript] => [JavaApplets] => [ActiveXControls] => [isMobileDevice] => [isTablet] => [isSyndicationReader] => [Crawler] => [isFake] => [isAnonymized] => [isModified] => [CssVersion] => 0 [AolVersion] => 0 [Device_Name] => unknown [Device_Maker] => unknown [Device_Type] => unknown [<API key>] => unknown [Device_Code_Name] => unknown [Device_Brand_Name] => unknown [<API key>] => unknown [<API key>] => unknown [<API key>] => unknown ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td>Mozilla </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.003</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>JenssegersAgent result detail</h4> <p><pre><code class="php">Array ( [browserName] => Mozilla [browserVersion] => [osName] => [osVersion] => [deviceModel] => [isMobile] => [isRobot] => [botName] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555">yes</td><td></td><td><i class="material-icons">close</i></td><td>0.21401</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>NeutrinoApiCom result detail</h4> <p><pre><code class="php">stdClass Object ( [<API key>] => 0 [is_mobile] => [type] => robot [mobile_brand] => [mobile_model] => [version] => [is_android] => [browser_name] => unknown [<API key>] => unknown [<API key>] => [is_ios] => [producer] => [operating_system] => unknown [mobile_screen_width] => 0 [mobile_browser] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td></td><td style="border-left: 1px solid #555">yes</td><td></td><td></td><td>0.003</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>PiwikDeviceDetector result detail</h4> <p><pre><code class="php">Array ( [client] => [operatingSystem] => [device] => Array ( [brand] => [brandName] => [model] => [device] => [deviceName] => ) [bot] => Array ( [name] => Bot ) [extra] => Array ( [isBot] => 1 [isBrowser] => [isFeedReader] => [isMobileApp] => [isPIM] => [isLibrary] => [isMediaPlayer] => [isCamera] => [isCarBrowser] => [isConsole] => [isFeaturePhone] => [isPhablet] => [<API key>] => [isSmartDisplay] => [isSmartphone] => [isTablet] => [isTV] => [isDesktop] => [isMobile] => [isTouchEnabled] => ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td><API key><br /><small>6.0.1</small><br /></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555">yes</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4><API key> result detail</h4> <p><pre><code class="php">Array ( [browser] => Sinergi\BrowserDetector\Browser Object ( [userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/4.0 (compatible; BlitzBot) ) [name:Sinergi\BrowserDetector\Browser:private] => unknown [version:Sinergi\BrowserDetector\Browser:private] => unknown [isRobot:Sinergi\BrowserDetector\Browser:private] => 1 [isChromeFrame:Sinergi\BrowserDetector\Browser:private] => [isFacebookWebView:Sinergi\BrowserDetector\Browser:private] => [isCompatibilityMode:Sinergi\BrowserDetector\Browser:private] => ) [operatingSystem] => Sinergi\BrowserDetector\Os Object ( [name:Sinergi\BrowserDetector\Os:private] => unknown [version:Sinergi\BrowserDetector\Os:private] => unknown [isMobile:Sinergi\BrowserDetector\Os:private] => [userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/4.0 (compatible; BlitzBot) ) ) [device] => Sinergi\BrowserDetector\Device Object ( [name:Sinergi\BrowserDetector\Device:private] => unknown [userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object ( [userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/4.0 (compatible; BlitzBot) ) ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555">yes</td><td>BlitzBot</td><td><i class="material-icons">close</i></td><td>0.005</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UAParser result detail</h4> <p><pre><code class="php">UAParser\Result\Client Object ( [ua] => UAParser\Result\UserAgent Object ( [major] => [minor] => [patch] => [family] => BlitzBot ) [os] => UAParser\Result\OperatingSystem Object ( [major] => [minor] => [patch] => [patchMinor] => [family] => Other ) [device] => UAParser\Result\Device Object ( [brand] => Spider [model] => Desktop [family] => Spider ) [originalUserAgent] => Mozilla/4.0 (compatible; BlitzBot) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555">yes</td><td>BlitzBot</td><td>Crawler</td><td>0.056</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>UserAgentStringCom result detail</h4> <p><pre><code class="php">stdClass Object ( [agent_type] => Crawler [agent_name] => BlitzBot [agent_version] => [os_type] => unknown [os_name] => unknown [os_versionName] => [os_versionNumber] => [os_producer] => [os_producerURL] => [linux_distibution] => Null [agent_language] => [agent_languageTag] => ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td>Netscape Navigator 4.0</td><td> </td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.23701</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhatIsMyBrowserCom result detail</h4> <p><pre><code class="php">stdClass Object ( [<API key>] => [<API key>] => [<API key>] => Netscape Navigator 4 [browser_version] => 4 [extra_info] => Array ( ) [operating_platform] => [extra_info_table] => Array ( ) [layout_engine_name] => [detected_addons] => Array ( ) [<API key>] => [<API key>] => [<API key>] => [<API key>] => Array ( ) [browser_name_code] => netscape-navigator [<API key>] => [<API key>] => [is_abusive] => [<API key>] => [<API key>] => Array ( ) [<API key>] => [operating_system] => [<API key>] => [<API key>] => [browser_name] => Netscape Navigator [<API key>] => [user_agent] => Mozilla/4.0 (compatible; BlitzBot) [<API key>] => 4.0 [browser] => Netscape Navigator 4 ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555">yes</td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>WhichBrowser result detail</h4> <p><pre><code class="php">Array ( [device] => Array ( [type] => bot ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td> </td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555">yes</td><td></td><td><i class="material-icons">close</i></td><td>0</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Woothee result detail</h4> <p><pre><code class="php">Array ( [name] => misc crawler [category] => crawler [os] => UNKNOWN [version] => UNKNOWN [vendor] => UNKNOWN [os_version] => UNKNOWN ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td></td><td style="border-left: 1px solid #555">yes</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.015</td><td> <!-- Modal Trigger --> <a class="modal-trigger btn waves-effect waves-light" href="#<API key>">Detail</a> <!-- Modal Structure --> <div id="<API key>" class="modal modal-fixed-footer"> <div class="modal-content"> <h4>Wurfl result detail</h4> <p><pre><code class="php">Array ( [virtual] => Array ( [is_android] => false [is_ios] => false [is_windows_phone] => false [is_app] => false [is_full_desktop] => true [is_largescreen] => true [is_mobile] => false [is_robot] => 1 [is_smartphone] => false [is_touchscreen] => false [is_wml_preferred] => false [<API key>] => false [is_html_preferred] => true [<API key>] => [<API key>] => [advertised_browser] => [<API key>] => [<API key>] => Robot Bot or Crawler [device_name] => Robot Bot or Crawler [form_factor] => Desktop [is_phone] => false [is_app_webview] => false ) [all] => Array ( [brand_name] => Robot [model_name] => Bot or Crawler [unique] => true [<API key>] => [is_wireless_device] => false [<API key>] => true [has_qwerty_keyboard] => true [<API key>] => true [uaprof] => [uaprof2] => [uaprof3] => [nokia_series] => 0 [nokia_edition] => 0 [device_os] => [mobile_browser] => [<API key>] => [device_os_version] => [pointing_method] => mouse [release_date] => 2000_january [marketing_name] => [model_extra_info] => [nokia_feature_pack] => 0 [<API key>] => false [is_tablet] => false [manufacturer_name] => [is_bot] => true [is_google_glass] => false [proportional_font] => false [<API key>] => false [card_title_support] => false [softkey_support] => false [table_support] => false [numbered_menus] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [access_key_support] => false [wrap_mode_support] => false [<API key>] => false [<API key>] => false [<API key>] => false [wizards_recommended] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => none [<API key>] => false [emoji] => false [<API key>] => false [<API key>] => false [imode_region] => none [<API key>] => tel: [chtml_table_support] => true [<API key>] => true [<API key>] => true [<API key>] => false [<API key>] => false [<API key>] => true [<API key>] => true [<API key>] => true [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [xhtml_nowrap_mode] => false [<API key>] => false [<API key>] => #FFFFFF [<API key>] => #FFFFFF [<API key>] => false [<API key>] => true [<API key>] => utf8 [<API key>] => false [<API key>] => none [<API key>] => text/html [xhtml_table_support] => false [<API key>] => none [<API key>] => none [xhtml_file_upload] => supported [cookie_support] => true [<API key>] => true [<API key>] => full [<API key>] => true [<API key>] => play_and_stop [<API key>] => true [ajax_manipulate_css] => true [<API key>] => true [<API key>] => true [ajax_xhr_type] => standard [ajax_manipulate_dom] => true [ajax_support_events] => true [<API key>] => true [<API key>] => none [xhtml_support_level] => 4 [preferred_markup] => html_web_4_0 [wml_1_1] => false [wml_1_2] => false [wml_1_3] => false [<API key>] => true [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [html_web_3_2] => true [html_web_4_0] => true [voicexml] => false [multipart_support] => false [<API key>] => false [<API key>] => false [resolution_width] => 800 [resolution_height] => 600 [columns] => 120 [max_image_width] => 800 [max_image_height] => 600 [rows] => 200 [<API key>] => 400 [<API key>] => 400 [dual_orientation] => false [density_class] => 1.0 [wbmp] => false [bmp] => true [epoc_bmp] => false [gif_animated] => true [jpg] => true [png] => true [tiff] => false [<API key>] => false [<API key>] => false [svgt_1_1] => true [svgt_1_1_plus] => false [greyscale] => false [gif] => true [colors] => 65536 [webp_lossy_support] => false [<API key>] => false [post_method_support] => true [basic_<API key>] => true [<API key>] => true [emptyok] => false [nokia_voice_call] => false [wta_voice_call] => false [wta_phonebook] => false [wta_misc] => false [wta_pdc] => false [https_support] => true [phone_id_provided] => false [max_data_rate] => 3200 [wifi] => true [sdio] => false [vpn] => false [has_cellular_radio] => false [max_deck_size] => 100000 [<API key>] => 128 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [max_no_of_bookmarks] => 0 [<API key>] => 0 [<API key>] => 0 [max_object_size] => 0 [downloadfun_support] => false [<API key>] => false [inline_support] => false [oma_support] => false [ringtone] => false [ringtone_3gpp] => false [<API key>] => false [<API key>] => false [ringtone_imelody] => false [ringtone_digiplug] => false [<API key>] => false [ringtone_mmf] => false [ringtone_rmf] => false [ringtone_xmf] => false [ringtone_amr] => false [ringtone_awb] => false [ringtone_aac] => false [ringtone_wav] => false [ringtone_mp3] => false [ringtone_spmidi] => false [ringtone_qcelp] => false [ringtone_voices] => 1 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [wallpaper] => false [wallpaper_max_width] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [wallpaper_resize] => none [wallpaper_wbmp] => false [wallpaper_bmp] => false [wallpaper_gif] => false [wallpaper_jpg] => false [wallpaper_png] => false [wallpaper_tiff] => false [wallpaper_greyscale] => false [wallpaper_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [screensaver] => false [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [screensaver_resize] => none [screensaver_wbmp] => false [screensaver_bmp] => false [screensaver_gif] => false [screensaver_jpg] => false [screensaver_png] => false [<API key>] => false [screensaver_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [picture] => false [picture_max_width] => 0 [picture_max_height] => 0 [<API key>] => 0 [<API key>] => 0 [picture_resize] => none [picture_wbmp] => false [picture_bmp] => false [picture_gif] => false [picture_jpg] => false [picture_png] => false [picture_greyscale] => false [picture_colors] => 2 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [video] => false [<API key>] => false [<API key>] => false [<API key>] => false [streaming_video] => false [streaming_3gpp] => false [streaming_mp4] => false [streaming_mov] => false [<API key>] => 0 [<API key>] => none [streaming_flv] => false [streaming_3g2] => false [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => none [<API key>] => none [streaming_wmv] => none [<API key>] => rtsp [<API key>] => none [wap_push_support] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => false [utf8_support] => true [ascii_support] => false [iso8859_support] => false [expiration_date] => false [j2me_cldc_1_0] => false [j2me_cldc_1_1] => false [j2me_midp_1_0] => false [j2me_midp_2_0] => false [doja_1_0] => false [doja_1_5] => false [doja_2_0] => false [doja_2_1] => false [doja_2_2] => false [doja_3_0] => false [doja_3_5] => false [doja_4_0] => false [j2me_jtwi] => false [j2me_mmapi_1_0] => false [j2me_mmapi_1_1] => false [j2me_wmapi_1_0] => false [j2me_wmapi_1_1] => false [j2me_wmapi_2_0] => false [j2me_btapi] => false [j2me_3dapi] => false [j2me_locapi] => false [j2me_nokia_ui] => false [j2me_motorola_lwt] => false [<API key>] => false [<API key>] => false [j2me_heap_size] => 0 [j2me_max_jar_size] => 0 [j2me_storage_size] => 0 [<API key>] => 0 [j2me_screen_width] => 0 [j2me_screen_height] => 0 [j2me_canvas_width] => 0 [j2me_canvas_height] => 0 [j2me_bits_per_pixel] => 0 [<API key>] => false [<API key>] => false [<API key>] => false [<API key>] => none [j2me_http] => false [j2me_https] => false [j2me_socket] => false [j2me_udp] => false [j2me_serial] => false [j2me_gif] => false [j2me_gif89a] => false [j2me_jpg] => false [j2me_png] => false [j2me_bmp] => false [j2me_bmp3] => false [j2me_wbmp] => false [j2me_midi] => false [j2me_wav] => false [j2me_amr] => false [j2me_mp3] => false [j2me_mp4] => false [j2me_imelody] => false [j2me_rmf] => false [j2me_au] => false [j2me_aac] => false [j2me_realaudio] => false [j2me_xmf] => false [j2me_wma] => false [j2me_3gpp] => false [j2me_h263] => false [j2me_svgt] => false [j2me_mpeg4] => false [j2me_realvideo] => false [j2me_real8] => false [j2me_realmedia] => false [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [j2me_clear_key_code] => 0 [<API key>] => false [<API key>] => false [receiver] => false [sender] => false [mms_max_size] => 0 [mms_max_height] => 0 [mms_max_width] => 0 [built_in_recorder] => false [built_in_camera] => false [mms_jpeg_baseline] => false [<API key>] => false [mms_gif_static] => false [mms_gif_animated] => false [mms_png] => false [mms_bmp] => false [mms_wbmp] => false [mms_amr] => false [mms_wav] => false [mms_midi_monophonic] => false [mms_midi_polyphonic] => false [<API key>] => 0 [mms_spmidi] => false [mms_mmf] => false [mms_mp3] => false [mms_evrc] => false [mms_qcelp] => false [mms_ota_bitmap] => false [mms_nokia_wallpaper] => false [<API key>] => false [<API key>] => false [<API key>] => false [mms_rmf] => false [mms_xmf] => false [mms_symbian_install] => false [mms_jar] => false [mms_jad] => false [mms_vcard] => false [mms_vcalendar] => false [mms_wml] => false [mms_wbxml] => false [mms_wmlc] => false [mms_video] => false [mms_mp4] => false [mms_3gpp] => false [mms_3gpp2] => false [mms_max_frame_rate] => 0 [nokiaring] => false [picturemessage] => false [operatorlogo] => false [largeoperatorlogo] => false [callericon] => false [nokiavcard] => false [nokiavcal] => false [sckl_ringtone] => false [sckl_operatorlogo] => false [sckl_groupgraphic] => false [sckl_vcard] => false [sckl_vcalendar] => false [text_imelody] => false [ems] => false [<API key>] => false [ems_imelody] => false [ems_odi] => false [ems_upi] => false [ems_version] => 0 [siemens_ota] => false [siemens_logo_width] => 101 [siemens_logo_height] => 29 [<API key>] => 101 [<API key>] => 50 [gprtf] => false [sagem_v1] => false [sagem_v2] => false [panasonic] => false [sms_enabled] => false [wav] => false [mmf] => false [smf] => false [mld] => false [midi_monophonic] => false [midi_polyphonic] => false [sp_midi] => false [rmf] => false [xmf] => false [compactmidi] => false [digiplug] => false [nokia_ringtone] => false [imelody] => false [au] => false [amr] => false [awb] => false [aac] => false [mp3] => false [voices] => 1 [qcelp] => false [evrc] => false [flash_lite_version] => [fl_wallpaper] => false [fl_screensaver] => false [fl_standalone] => false [fl_browser] => false [fl_sub_lcd] => false [full_flash_support] => true [<API key>] => true [css_border_image] => none [css_rounded_corners] => none [css_gradient] => none [css_spriting] => true [css_gradient_linear] => none [is_transcoder] => false [<API key>] => user-agent [rss_support] => false [pdf_support] => true [<API key>] => true [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [<API key>] => -1 [playback_real_media] => none [playback_3gpp] => false [playback_3g2] => false [playback_mp4] => false [playback_mov] => false [playback_acodec_amr] => none [playback_acodec_aac] => none [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => 0 [<API key>] => false [playback_wmv] => none [<API key>] => false [html_preferred_dtd] => html4 [viewport_supported] => false [viewport_width] => <API key> [<API key>] => [<API key>] => [<API key>] => [<API key>] => [mobileoptimized] => false [handheldfriendly] => false [canvas_support] => none [image_inlining] => true [is_smarttv] => false [is_console] => false [nfc_support] => false [ux_full_desktop] => true [jqm_grade] => A [is_sencha_touch_ok] => true ) ) </code></pre></p> </div> <div class="modal-footer"> <a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a> </div> </div> </td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td> <td colspan="12" class="center-align red lighten-1"> <strong>No result found</strong> </td> </tr></table> </div> <div class="section"> <h1 class="header center orange-text">About this comparison</h1> <div class="row center"> <h5 class="header light"> The primary goal of this project is simple<br /> I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br /> <br /> The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br /> <br /> You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/<API key>">ThaDafinser/<API key></a><br /> <br /> The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a> </h5> </div> </div> <div class="card"> <div class="card-content"> Comparison created <i>2016-05-10 08:11:17</i> | by <a href="https://github.com/ThaDafinser">ThaDafinser</a> </div> </div> </div> <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script> <script> $(document).ready(function(){ // the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered $('.modal-trigger').leanModal(); }); </script> </body> </html>
(function (app) { 'use strict'; app.registerModule('dispositivos'); }(<API key>));