# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""This module defines a logging class based on the built-in logging module"""
from __future__ import print_function
import os
import sys
import logging
import warnings
from contextlib import contextmanager
from .config import ConfigurationItem
from . import config
from .utils.compat import inspect_getmodule
from .utils.console import color_print
from .utils.misc import find_current_module
__all__ = ['log', 'AstropyLogger', 'LoggingError']
# Initialize by calling _init_log()
log = None
[docs]class LoggingError(Exception):
"""
This exception is for various errors that occur in the astropy logger,
typically when activating or deactivating logger-related features.
"""
class _AstLogIPYExc(Exception):
"""
An exception that is used only as a placeholder to indicate to the
IPython exception-catching mechanism that the astropy
exception-capturing is activated. It should not actually be used as
an exception anywhere.
"""
# Read in configuration
LOG_LEVEL = ConfigurationItem('log_level', 'INFO',
"Threshold for the logging messages. Logging "
"messages that are less severe than this level "
"will be ignored. The levels are 'DEBUG', "
"'INFO', 'WARNING', 'ERROR'")
USE_COLOR = ConfigurationItem('use_color', True,
"Whether to use color for the level names")
LOG_WARNINGS = ConfigurationItem('log_warnings', True,
"Whether to log warnings.warn calls")
LOG_EXCEPTIONS = ConfigurationItem('log_exceptions', True,
"Whether to log exceptions before raising "
"them")
LOG_TO_FILE = ConfigurationItem('log_to_file', True,
"Whether to always log messages to a log "
"file")
LOG_FILE_PATH = ConfigurationItem('log_file_path', '',
"The file to log messages to. When '', "
"it defaults to a file 'astropy.log' in "
"the astropy config directory.")
LOG_FILE_LEVEL = ConfigurationItem('log_file_level', 'INFO',
"Threshold for logging messages to "
"log_file_path")
LOG_FILE_FORMAT = ConfigurationItem('log_file_format', "%(asctime)r, "
"%(origin)r, %(levelname)r, %(message)r",
"Format for log file entries")
def _init_log():
"""Initializes the Astropy log--in most circumstances this is called
automatically when importing astropy.
"""
global log
orig_logger_cls = logging.getLoggerClass()
logging.setLoggerClass(AstropyLogger)
try:
log = logging.getLogger('astropy')
log._set_defaults()
finally:
logging.setLoggerClass(orig_logger_cls)
return log
Logger = logging.getLoggerClass()
[docs]class AstropyLogger(Logger):
'''
This class is used to set up the Astropy logging.
The main functionality added by this class over the built-in
logging.Logger class is the ability to keep track of the origin of the
messages, the ability to enable logging of warnings.warn calls and
exceptions, and the addition of colorized output and context managers to
easily capture messages to a file or list.
'''
[docs] def makeRecord(self, name, level, pathname, lineno, msg, args, exc_info,
func=None, extra=None, sinfo=None):
if extra is None:
extra = {}
if 'origin' not in extra:
current_module = find_current_module(1, finddiff=[True, 'logging'])
if current_module is not None:
extra['origin'] = current_module.__name__
else:
extra['origin'] = 'unknown'
if sys.version_info[0] < 3 or \
(sys.version_info[0] == 3 and sys.version_info[1] < 2):
return Logger.makeRecord(self, name, level, pathname, lineno, msg,
args, exc_info, func=func, extra=extra)
else:
return Logger.makeRecord(self, name, level, pathname, lineno, msg,
args, exc_info, func=func, extra=extra,
sinfo=sinfo)
_showwarning_orig = None
def _showwarning(self, *args, **kwargs):
warning = args[0]
# Deliberately not using isinstance here: We want to display
# the class name only when it's not the default class,
# UserWarning. The name of subclasses of UserWarning should
# be displayed.
if type(warning) != UserWarning:
message = '{0}: {1}'.format(warning.__class__.__name__, args[0])
else:
message = unicode(args[0])
mod_path = args[2]
# Now that we have the module's path, we look through
# sys.modules to find the module object and thus the
# fully-package-specified module name. On Python 2, the
# module.__file__ is the compiled file name, not the .py, so
# we have to ignore the extension. On Python 3,
# module.__file__ is the original source file name, so things
# are more direct.
mod_name = None
if sys.version_info[0] < 3: # pragma: py2
for name, mod in sys.modules.items():
if getattr(mod, '__file__', '') == mod_path:
mod_name = mod.__name__
break
else: # pragma: py3
mod_path, ext = os.path.splitext(mod_path)
for name, mod in sys.modules.items():
path = os.path.splitext(getattr(mod, '__file__', ''))[0]
if path == mod_path:
mod_name = mod.__name__
break
if mod_name is not None:
self.warning(message, extra={'origin': mod_name})
else:
self.warning(message)
[docs] def warnings_logging_enabled(self):
return self._showwarning_orig is not None
[docs] def enable_warnings_logging(self):
'''
Enable logging of warnings.warn() calls
Once called, any subsequent calls to ``warnings.warn()`` are
redirected to this logger and emitted with level ``WARN``. Note that
this replaces the output from ``warnings.warn``.
This can be disabled with ``disable_warnings_logging``.
'''
if self.warnings_logging_enabled():
raise LoggingError("Warnings logging has already been enabled")
self._showwarning_orig = warnings.showwarning
warnings.showwarning = self._showwarning
[docs] def disable_warnings_logging(self):
'''
Disable logging of warnings.warn() calls
Once called, any subsequent calls to ``warnings.warn()`` are no longer
redirected to this logger.
This can be re-enabled with ``enable_warnings_logging``.
'''
if not self.warnings_logging_enabled():
raise LoggingError("Warnings logging has not been enabled")
if warnings.showwarning != self._showwarning:
raise LoggingError("Cannot disable warnings logging: "
"warnings.showwarning was not set by this "
"logger, or has been overridden")
warnings.showwarning = self._showwarning_orig
self._showwarning_orig = None
_excepthook_orig = None
def _excepthook(self, etype, value, traceback):
tb = traceback
while tb.tb_next is not None:
tb = tb.tb_next
mod = inspect_getmodule(tb)
# include the the error type in the message.
if len(value.args) > 0:
message = '{0}: {1}'.format(etype.__name__, str(value))
else:
message = unicode(etype.__name__)
if mod is not None:
self.error(message, extra={'origin': mod.__name__})
else:
self.error(message)
self._excepthook_orig(etype, value, traceback)
[docs] def exception_logging_enabled(self):
'''
Determine if the exception-logging mechanism is enabled.
Returns
-------
exclog : bool
True if exception logging is on, False if not.
'''
try:
ip = get_ipython()
except NameError:
ip = None
if ip is None:
return self._excepthook_orig is not None
else:
return _AstLogIPYExc in ip.custom_exceptions
[docs] def enable_exception_logging(self):
'''
Enable logging of exceptions
Once called, any uncaught exceptions will be emitted with level
``ERROR`` by this logger, before being raised.
This can be disabled with ``disable_exception_logging``.
'''
try:
ip = get_ipython()
except NameError:
ip = None
if self.exception_logging_enabled():
raise LoggingError("Exception logging has already been enabled")
if ip is None:
#standard python interpreter
self._excepthook_orig = sys.excepthook
sys.excepthook = self._excepthook
else:
#IPython has its own way of dealing with excepthook
#We need to locally define the function here, because IPython
#actually makes this a member function of their own class
def ipy_exc_handler(ipyshell, etype, evalue, tb, tb_offset=None):
# First use our excepthook
self._excepthook(etype, evalue, tb)
# Now also do IPython's traceback
ipyshell.showtraceback((etype, evalue, tb), tb_offset=tb_offset)
#now register the function with IPython
#note that we include _AstLogIPYExc so `disable_exception_logging`
#knows that it's disabling the right thing
ip.set_custom_exc((BaseException, _AstLogIPYExc), ipy_exc_handler)
#and set self._excepthook_orig to a no-op
self._excepthook_orig = lambda etype, evalue, tb: None
[docs] def disable_exception_logging(self):
'''
Disable logging of exceptions
Once called, any uncaught exceptions will no longer be emitted by this
logger.
This can be re-enabled with ``enable_exception_logging``.
'''
try:
ip = get_ipython()
except NameError:
ip = None
if not self.exception_logging_enabled():
raise LoggingError("Exception logging has not been enabled")
if ip is None:
#standard python interpreter
if sys.excepthook != self._excepthook:
raise LoggingError("Cannot disable exception logging: "
"sys.excepthook was not set by this logger, "
"or has been overridden")
sys.excepthook = self._excepthook_orig
self._excepthook_orig = None
else:
#IPython has its own way of dealing with exceptions
ip.set_custom_exc(tuple(), None)
[docs] def enable_color(self):
'''
Enable colorized output
'''
self._use_color = True
[docs] def disable_color(self):
'''
Disable colorized output
'''
self._use_color = False
def _stream_formatter(self, record):
'''
The formatter for standard output
'''
if record.levelno < logging.DEBUG or not self._use_color:
print(record.levelname, end='')
elif(record.levelno < logging.INFO):
color_print(record.levelname, 'magenta', end='')
elif(record.levelno < logging.WARN):
color_print(record.levelname, 'green', end='')
elif(record.levelno < logging.ERROR):
color_print(record.levelname, 'brown', end='')
else:
color_print(record.levelname, 'red', end='')
print(": " + record.msg + " [{0:s}]".format(record.origin))
@contextmanager
[docs] def log_to_file(self, filename, filter_level=None, filter_origin=None):
'''
Context manager to temporarily log messages to a file.
Parameters
----------
filename : str
The file to log messages to.
filter_level : str
If set, any log messages less important than ``filter_level`` will
not be output to the file. Note that this is in addition to the
top-level filtering for the logger, so if the logger has level
'INFO', then setting ``filter_level`` to ``INFO`` or ``DEBUG``
will have no effect, since these messages are already filtered
out.
filter_origin : str
If set, only log messages with an origin starting with
``filter_origin`` will be output to the file.
Notes
-----
By default, the logger already outputs log messages to a file set in
the Astropy configuration file. Using this context manager does not
stop log messages from being output to that file, nor does it stop log
messages from being printed to standard output.
Examples
--------
The context manager is used as::
with logger.log_to_file('myfile.log'):
# your code here
'''
fh = FileHandler(filename)
if filter_level is not None:
fh.setLevel(filter_level)
if filter_origin is not None:
fh.addFilter(FilterOrigin(filter_origin))
f = logging.Formatter(LOG_FILE_FORMAT())
fh.setFormatter(f)
self.addHandler(fh)
yield
fh.close()
self.removeHandler(fh)
@contextmanager
[docs] def log_to_list(self, filter_level=None, filter_origin=None):
'''
Context manager to temporarily log messages to a list.
Parameters
----------
filename : str
The file to log messages to.
filter_level : str
If set, any log messages less important than ``filter_level`` will
not be output to the file. Note that this is in addition to the
top-level filtering for the logger, so if the logger has level
'INFO', then setting ``filter_level`` to ``INFO`` or ``DEBUG``
will have no effect, since these messages are already filtered
out.
filter_origin : str
If set, only log messages with an origin starting with
``filter_origin`` will be output to the file.
Notes
-----
Using this context manager does not stop log messages from being
output to standard output.
Examples
--------
The context manager is used as::
with logger.log_to_list() as log_list:
# your code here
'''
lh = ListHandler()
if filter_level is not None:
lh.setLevel(filter_level)
if filter_origin is not None:
lh.addFilter(FilterOrigin(filter_origin))
self.addHandler(lh)
yield lh.log_list
self.removeHandler(lh)
[docs] def setLevel(self, level):
"""
Set the logging level of this logger.
"""
self.level = _checkLevel(level)
def _set_defaults(self):
'''
Reset logger to its initial state
'''
# Reset any previously installed hooks
if self.warnings_logging_enabled():
self.disable_warnings_logging()
if self.exception_logging_enabled():
self.disable_exception_logging()
# Remove all previous handlers
for handler in self.handlers[:]:
self.removeHandler(handler)
# Set levels
self.setLevel(LOG_LEVEL())
if USE_COLOR():
self.enable_color()
else:
self.disable_color()
# Set up the stdout handler
sh = logging.StreamHandler()
sh.emit = self._stream_formatter
self.addHandler(sh)
# Set up the main log file handler if requested (but this might fail if
# configuration directory or log file is not writeable).
if LOG_TO_FILE():
log_file_path = LOG_FILE_PATH()
# "None" as a string because it comes from config
try:
_ASTROPY_TEST_
testing_mode = True
except NameError:
testing_mode = False
try:
if log_file_path == '' or testing_mode:
log_file_path = os.path.join(
config.get_config_dir(), "astropy.log")
else:
log_file_path = os.path.expanduser(log_file_path)
fh = FileHandler(log_file_path)
except (IOError, OSError) as e:
warnings.warn(
'log file {0!r} could not be opened for writing: '
'{1}'.format(log_file_path, unicode(e)), RuntimeWarning)
else:
formatter = logging.Formatter(LOG_FILE_FORMAT())
fh.setFormatter(formatter)
fh.setLevel(LOG_FILE_LEVEL())
self.addHandler(fh)
if LOG_WARNINGS():
self.enable_warnings_logging()
if LOG_EXCEPTIONS():
self.enable_exception_logging()
# The following function is copied from the source code of Python 2.7 and 3.2.
# This function is not included in Python 2.6 and 3.1, so we have to include it
# here to provide uniform behavior across versions.
def _checkLevel(level):
'''
'''
if isinstance(level, int):
rv = level
elif str(level) == level:
if level not in logging._levelNames:
raise ValueError("Unknown level: %r" % level)
rv = logging._levelNames[level]
else:
raise TypeError("Level not an integer or a valid string: %r" % level)
return rv
# We now have to be sure that we overload the setLevel in FileHandler, again
# for compatibility with Python 2.6 and 3.1.
class FileHandler(logging.FileHandler):
def setLevel(self, level):
"""
Set the logging level of this handler.
"""
self.level = _checkLevel(level)
class FilterOrigin(object):
'''A filter for the record origin'''
def __init__(self, origin):
self.origin = origin
def filter(self, record):
return record.origin.startswith(self.origin)
class ListHandler(logging.Handler):
'''A handler that can be used to capture the records in a list'''
def __init__(self, filter_level=None, filter_origin=None):
logging.Handler.__init__(self)
self.log_list = []
def emit(self, record):
self.log_list.append(record)
def setLevel(self, level):
"""
Set the logging level of this handler.
"""
self.level = _checkLevel(level)


deprecated in 4.3.11 and removed from 5.0; as per
RFC 7578, Section 4.2,
an RFC 5987 style encoding should not be used for multipart/form-data requests.
Furthermore there should be no reason for applications to set this header
explicitly; for more details also read
HttpHeaders.setContentDispositionFormData(String, String)


 And all you need is one six-sided die and a way to keep score.
Pig is considered a jeopardy game, where you risk everything to see if you can win more. The numbers on the die (except for "1") each represent points that can accumulate—the winner is the first player to reach 100 points.
The game of Pig is best with two players, but it can work with more people. Just keep in mind that the downtime between turns grows longer with each additional player, which could be challenging for the little ones.
 The goal is to accumulate as many points as possible, adding up the numbers rolled on the die. However, if a player rolls a 1, the player's turn is over and any points they have accumulated during this turn are forfeited. Rolling a 1 doesn't wipe out your entire score from previous turns, just the total earned during that particular roll.
A player can also choose to hold (stop rolling the die) if they do not want to take a chance of rolling a 1 and losing all of their points from this turn. If the player chooses to hold, all of the points rolled during that turn are added to his or her score.
When a player reaches a total of 100 or more points, the game ends and that player is the winner.
Here are two examples of how to keep score in Pig:
Example 1: Sherri rolls a 3 and decides to continue rolling. She rolls seven more times, getting a 6, 6, 6, 4, 5, 6, and then 1. Because she rolled a 1, Sherri's turn is over and she earns 0 points for this turn.
Example 2: Craig rolls a 6 and decides to continue. He then chooses to roll four more times, getting a 3, 4, 2, and 6. He decides to hold (and not take a chance of getting a 1). Craig earns 21 points for this turn (6+3+4+2+6 = 21).
Pig is a simple dice game first described in print by John Scarne in 1945. As with many games of folk origin, Pig is played with many rule variations. Commercial variants of Pig include Pass the Pigs, Pig Dice, and Skunk. Pig is commonly used by mathematics teachers to teach probability concepts.
Pig is one of a family of dice games described by Reiner Knizia as "jeopardy dice games". For jeopardy dice games, the dominant type of decision is whether or not to jeopardize previous gains by rolling for potential greater gains. Most jeopardy dice games can be further subdivided into two categories: jeopardy race games and jeopardy approach games. In jeopardy race games, the object is to be the first to meet or exceed a goal score (e.g. Pig, Pass the Pigs, Cosmic Wimpout, Can't Stop). In jeopardy approach games, the object is to most closely approach a goal score without exceeding it.
Pig is a folk jeopardy dice game described by John Scarne in 1945, and was an ancestor of the modern game Pass the Pigs® (originally called PigMania®).
Pig often serves as a simple example for teaching probability concepts from the middle school level upwards. The game also provides exercises for teaching Computer Science in areas ranging from introductory courses to advanced machine learning material.
Skunk (or Think) is a variation of Two-Dice Pig that is played with large groups.
Rather than rolling in turn, all players begin the round standing. At any point in the round, a player may hold by sitting down. The round continues until a 1 is rolled, or all players have sat down. Skunk is played in five rounds, and scoring is recorded in a 5-column table with columns labeled with the letters of the word "SKUNK". The first round score is entered in the "S"-column, the next in the first "K"-column, and so on. After five rounds, the highest-scoring player is the winner.
This variation is the same as Pig, except:
This variation is the same as Two-Dice Pig, except:
HISTORY OF PIG_DICE
GO TO PIG_DICE GAME


Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law. -- [source]


| 012:084 Khan | : |
And he turned away from them and said: "Alas, my grief for Yusuf (Joseph)!" And he lost his sight because of the sorrow that he was suppressing. |
| 012:084 Maulana | : |
And he turned away from them, and said: O my sorrow for Joseph! And his eyes were filled (with tears) on account of the grief, then he repressed (grief). |
| 012:084 Pickthal | : |
And he turned away from them and said: Alas, my grief for Joseph! And his eyes were whitened with the sorrow that he was suppressing. |
| 012:084 Rashad | : |
He turned away from them, saying, "I am grieving over Joseph." His eyes turned white from grieving so much; he was truly sad. |
| 012:084 Sarwar | : |
(Jacob) turned away from them saying, "Alas, Joseph is lost!" He wept continuously in his grief until, in suppressing his anger, his eyes turned white. |
| 012:084 Shakir | : |
And he turned away from them, and said: O my sorrow for Yusuf! and his eyes became white on account of the grief, and he was a repressor (of grief). |
| 012:084 Sherali | : |
And he turned away from them and said, 'O my grief for Joseph ! ' And his eyes were filled with tears because of the grief, and he was suppressing his sorrow. |
| 012:084 Yusufali | : |
And he turned away from them, and said: "How great is my grief for Joseph!" And his eyes became white with sorrow, and he fell into silent melancholy. |
Concepts/Themes Covered:
This tool uses eight English parallel translations for the Holy Quran imported from Mr. Clay Smith. You can also visit Qurany Concepts for browsing the Quran themes or topics. If you want to search the Holy Quran for keywords, please visit Qurany Keywords.


Bored during lockdown? Use our generator to find movies or shows to watch! Search by Genre Action Classics Comedies Documentary Dramas Horror International Musicals Romance Search


<br/> Remote Procedure Calls for Dart
This module is a part of the Pip.Services polyglot microservices toolkit.
The rpc module provides the synchronous communication using local calls or the HTTP(S) protocol. It contains both server and client side implementations.
The module contains the following packages:
- Auth - authentication and authorisation components
- Build - HTTP service factory
- Clients - mechanisms for retrieving connection settings from the microservice’s configuration and providing clients and services with these settings
- Connect - helper module to retrieve connections for HTTP-based services and clients
- Services - basic implementation of services for connecting via the HTTP/REST protocol and using the Commandable pattern over HTTP
- Your first microservice in Dart
- Data Microservice. Step 5
- Microservice Facade
- Client Library. Step 2
- Client Library. Step 3
- API Reference
- Change Log
- Get Help
- Contribute
Use
Add this to your package's pubspec.yaml file:
dependencies:
pip_services3_rpc: version
Now you can install package from the command line:
pub get
Develop
For development you shall install the following prerequisites:
- Dart SDK 2
- Visual Studio Code or another IDE of your choice
- Docker
Install dependencies:
pub get
Run automated tests:
pub run test
Generate API documentation:
./docgen.ps1
Before committing changes run dockerized build and test as:
./build.ps1
./test.ps1
./clear.ps1
Contacts
The Dart version of Pip.Services is created and maintained by:
- Sergey Seroukhov
- Levichev Dmitry
- Aleksey Dvoykin
The documentation is written by:
- Mark Makarychev
- Levichev Dmitry


PMAP(1) User Commands PMAP(1) NAME pmap - report memory map of a process SYNOPSIS pmap [options] pid [...] DESCRIPTION The pmap command reports the memory map of a process or processes. OPTIONS -x, --extended Show the extended format. -d, --device Show the device format. -q, --quiet Do not display some header or footer lines. -A, --range low,high Limit results to the given range to low and high address range. Notice that the low and high arguments are single string separated with comma. -h, --help Display help text and exit. -V, --version Display version information and exit. EXIT STATUS 0 Success. 1 Failure. 42 Did not find all processes asked for. SEE ALSO ps(1), pgrep(1) STANDARDS No standards apply, but pmap looks an awful lot like a SunOS command. REPORTING BUGS Please send bug reports to<EMAIL_ADDRESS>procps-ng June 2011 PMAP(1)


Code for America is a 501(c)3 non-profit that envisions a government by the people, for the people, that works in the 21st century.
Our programs change how we participate in government by:
20
10
62
31
50+
The Fellowship is Code for America’s best known program and consists of a one year residency placing developers, designers and researchers within local governments. Over the course of the program, fellows and government partners build apps, inspire new thinking amongst public servants and tackle some of our country’s toughest problems.
56
18
75
14
The Brigade network is an ongoing effort to deploy, maintain and sustain civic technology and open data infrastructures. Each Brigade is comprised of local volunteers and government employees who connect for regular hack nights, discussions and app development.
12
3
100%
The Civic Startups program offers entrepreneurs mentorship in navigating the government procurement process and building sustainable businesses. Teams contribute to an emerging civic tech ecosystem where competition breeds innovation, governments get value for dollar, and most importantly, citizen needs are met.
55
81
14
The Peer Network is where government officials and public servants connect to share civic tech resources, best practices and open data policies. Through regular trainings, events and discussions, civic innovators are changing governments from within.


{% extends "base.html" %} {% block firsttitle %}CourSEarcher{% endblock %} {% block queryform %}
Find moocs, small lectures, related to science, maths, and any subject that interests you.
For now, Khan Academy, EdX, and MIT OCW (not whole) are indexed.
Made by Pranav.


The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:
| GroupId | ArtifactId | Version | Type | Licenses |
|---|---|---|---|---|
| ml.alternet | alternet-tools | 1.0 | jar | The MIT License (MIT) |
| org.apache.maven | maven-core | 3.3.9 | jar | Apache License, Version 2.0 |
| org.apache.maven | maven-plugin-api | 3.3.9 | jar | Apache License, Version 2.0 |
The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:
| GroupId | ArtifactId | Version | Type | Licenses |
|---|---|---|---|---|
| junit | junit | 4.8.2 | jar | Common Public License Version 1.0 |
| org.apache.maven | maven-compat | 3.3.9 | jar | Apache License, Version 2.0 |
| org.apache.maven.plugin-testing | maven-plugin-testing-harness | 3.3.0 | jar | Apache License, Version 2.0 |
| org.assertj | assertj-core | 3.9.1 | jar | Apache License, Version 2.0 |
| org.testng | testng | 6.14.2 | jar | Apache 2.0 |
The following is a list of provided dependencies for this project. These dependencies are required to compile the application, but should be provided by default when using the library:
| GroupId | ArtifactId | Version | Type | Licenses |
|---|---|---|---|---|
| org.apache.maven | maven-artifact | 3.3.9 | jar | Apache License, Version 2.0 |
| org.apache.maven.plugin-tools | maven-plugin-annotations | 3.5 | jar | Apache License, Version 2.0 |
The following is a list of transitive dependencies for this project. Transitive dependencies are the dependencies of the project dependencies.
The following is a list of compile dependencies for this project. These dependencies are required to compile and run the application:
The following is a list of test dependencies for this project. These dependencies are only required to compile and run unit tests for the application:
| GroupId | ArtifactId | Version | Type | Licenses |
|---|---|---|---|---|
| classworlds | classworlds | 1.1-alpha-2 | jar | - |
| com.beust | jcommander | 1.72 | jar | Apache 2.0 |
| commons-io | commons-io | 2.2 | jar | The Apache Software License, Version 2.0 |
| org.apache-extras.beanshell | bsh | 2.0b6 | jar | Apache License, Version 2.0 |
| org.apache.maven.wagon | wagon-provider-api | 2.10 | jar | Apache License, Version 2.0 |
| org.codehaus.plexus | plexus-archiver | 2.2 | jar | The Apache Software License, Version 2.0 |
| org.codehaus.plexus | plexus-container-default | 1.0-alpha-9-stable-1 | jar | - |
| org.codehaus.plexus | plexus-io | 2.0.4 | jar | The Apache Software License, Version 2.0 |
Eclipse Public License, Version 1.0: Aether API, Aether Implementation, Aether SPI, Aether Utilities, org.eclipse.sisu.inject, org.eclipse.sisu.plexus
The MIT License (MIT): Alternet Tools, Alternet Tools - Generator, Alternet Tools - Properties Binder Maven Plugin, PJBA (external library)
Apache Public License 2.0: Plexus Cipher: encryption/decryption Component, Plexus Security Dispatcher Component
Unknown: Default Plexus Container, classworlds
Apache 2.0: jcommander, testng
Apache License, Version 2.0: Apache Commons Lang, Apache Maven Wagon :: API, AssertJ fluent assertions, BeanShell, CDI APIs, Maven Aether Provider, Maven Artifact, Maven Builder Support, Maven Compat, Maven Core, Maven Model, Maven Model Builder, Maven Plugin API, Maven Plugin Testing Mechanism, Maven Plugin Tools Java 5 Annotations, Maven Repository Metadata Model, Maven Settings, Maven Settings Builder
COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0: JSR-250 Common Annotations for the JavaTM Platform
CDDL + GPLv2 with classpath exception: Expression Language 3.0 API
Public Domain: AOP alliance
The Apache Software License, Version 2.0: Commons IO, Google Guice - Core Library, Guava: Google Core Libraries for Java, Plexus :: Component Annotations, Plexus Archiver Component, Plexus Classworlds, Plexus Common Utilities, Plexus IO Components, Plexus Interpolation API, javax.inject
Common Public License Version 1.0: JUnit
| Filename | Size | Entries | Classes | Packages | Java Version | Debug Information |
|---|---|---|---|---|---|---|
| aopalliance-1.0.jar | 4.5 kB | 15 | 9 | 2 | 1.3 | Yes |
| classworlds-1.1-alpha-2.jar | 37.5 kB | 32 | 22 | 3 | 1.1 | Yes |
| jcommander-1.72.jar | 69.3 kB | 67 | 65 | 5 | 1.7 | Yes |
| guava-18.0.jar | 2.3 MB | 1719 | 1690 | 17 | 1.6 | Yes |
| guice-4.0-no_aop.jar | 423.6 kB | 344 | 329 | 8 | 1.6 | Yes |
| commons-io-2.2.jar | 173.6 kB | 126 | 108 | 6 | 1.5 | Yes |
| jsr250-api-1.0.jar | 5.8 kB | 16 | 11 | 2 | 1.5 | Yes |
| javax.el-api-3.0.0.jar | 73.1 kB | 57 | 46 | 1 | 1.7 | Yes |
| cdi-api-1.0.jar | 44.9 kB | 92 | 75 | 7 | 1.5 | Yes |
| javax.inject-1.jar | 2.5 kB | 8 | 6 | 1 | 1.5 | No |
| junit-4.8.2.jar | 237.3 kB | 267 | 230 | 30 | 1.5 | Yes |
| alternet-tools-1.0.jar | 226.3 kB | 204 | 180 | 10 | 1.8 | Yes |
| alternet-tools-generator-1.0.jar | 12.3 kB | 22 | 7 | 2 | 1.8 | Yes |
| ext-libs-pjba-1.0.jar | 242.6 kB | 241 | 210 | 17 | 1.8 | Yes |
| bsh-2.0b6.jar | 389 kB | 247 | 164 | 9 | 1.5 | Yes |
| commons-lang3-3.4.jar | 434.7 kB | 248 | 224 | 12 | 1.6 | Yes |
| maven-aether-provider-3.3.9.jar | 66.9 kB | 43 | 26 | 1 | 1.7 | Yes |
| maven-artifact-3.3.9.jar | 55 kB | 57 | 32 | 11 | 1.7 | Yes |
| maven-builder-support-3.3.9.jar | 14.9 kB | 24 | 10 | 1 | 1.7 | Yes |
| maven-compat-3.3.9.jar | 290.3 kB | 215 | 163 | 29 | 1.7 | Yes |
| maven-core-3.3.9.jar | 637.9 kB | 493 | 394 | 56 | 1.7 | Yes |
| maven-model-3.3.9.jar | 164 kB | 71 | 54 | 3 | 1.7 | Yes |
| maven-model-builder-3.3.9.jar | 177 kB | 154 | 121 | 16 | 1.7 | Yes |
| maven-plugin-api-3.3.9.jar | 47.5 kB | 48 | 27 | 6 | 1.7 | Yes |
| maven-repository-metadata-3.3.9.jar | 27.3 kB | 27 | 9 | 2 | 1.7 | Yes |
| maven-settings-3.3.9.jar | 44.3 kB | 35 | 19 | 2 | 1.7 | Yes |
| maven-settings-builder-3.3.9.jar | 43 kB | 53 | 32 | 5 | 1.7 | Yes |
| maven-plugin-testing-harness-3.3.0.jar | 51 kB | 36 | 17 | 3 | 1.6 | Yes |
| maven-plugin-annotations-3.5.jar | 14.3 kB | 22 | 7 | 1 | 1.6 | Yes |
| wagon-provider-api-2.10.jar | 53.5 kB | 60 | 39 | 8 | 1.5 | Yes |
| assertj-core-3.9.1.jar | 3.9 MB | 2627 | 2558 | 57 | 1.8 | Yes |
| plexus-archiver-2.2.jar | 185 kB | 137 | 112 | 12 | 1.5 | Yes |
| plexus-classworlds-2.5.2.jar | 52.7 kB | 52 | 37 | 5 | 1.6 | Yes |
| plexus-component-annotations-1.6.jar | 4.3 kB | 15 | 3 | 1 | 1.5 | No |
| plexus-container-default-1.0-alpha-9-stable-1.jar | 194.2 kB | 215 | 175 | 28 | 1.1 | Yes |
| plexus-interpolation-1.21.jar | 62.5 kB | 60 | 44 | 6 | 1.5 | Yes |
| plexus-io-2.0.4.jar | 58.3 kB | 62 | 43 | 5 | 1.5 | Yes |
| plexus-utils-3.0.22.jar | 244.9 kB | 129 | 104 | 9 | 1.5 | Yes |
| aether-api-1.0.2.v20150114.jar | 136.3 kB | 149 | 128 | 11 | 1.5 | Yes |
| aether-impl-1.0.2.v20150114.jar | 173 kB | 114 | 96 | 4 | 1.5 | Yes |
| aether-spi-1.0.2.v20150114.jar | 30.7 kB | 54 | 34 | 8 | 1.5 | Yes |
| aether-util-1.0.2.v20150114.jar | 146.9 kB | 126 | 101 | 13 | 1.5 | Yes |
| org.eclipse.sisu.inject-0.3.2.jar | 377.6 kB | 288 | 270 | 9 | 1.6 | Yes |
| org.eclipse.sisu.plexus-0.3.2.jar | 205.4 kB | 196 | 164 | 20 | 1.6 | Yes |
| plexus-cipher-1.4.jar | 13.5 kB | 20 | 6 | 1 | 1.4 | Yes |
| plexus-sec-dispatcher-1.3.jar | 28.6 kB | 31 | 13 | 3 | 1.4 | Yes |
| testng-6.14.2.jar | 809.5 kB | 590 | 574 | 24 | 1.7 | Yes |
| Total | Size | Entries | Classes | Packages | Java Version | Debug Information |
| 47 | 13 MB | 9908 | 8788 | 492 | 1.8 | 45 |
| compile: 32 | compile: 6.4 MB | compile: 5148 | compile: 4479 | compile: 261 | - | compile: 30 |
| test: 13 | test: 6.5 MB | test: 4681 | test: 4270 | test: 219 | - | test: 13 |
| provided: 2 | provided: 69.3 kB | provided: 79 | provided: 39 | provided: 12 | - | provided: 2 |


sea-ice ice Fig. Arctic sea algal model climate snow first-year changes latitudes production data models latitudinal CMIP season used GPP Sea drivers future increase primary ensemble {border-style conditions nutrient depth expected px;} seasonal #ffffff;} bloom projected scenario projections available biological physical timing RCP. algae biogeochemical blooms day extent historical phenology °N, density earlier freeze-up large maximum temperature time Ocean breakup probability warmer (i.e., Res. brine empirical ice, limited marine phenological response thickness trophic current extreme function functions light sympagic thinner area availability characterized different food growth mean minimum pan-Arctic simulated simulations spread (–) Geophys. Oceanogr. Prog. Sea-ice change cluster computed concentration considered days high month observations ocean px; relative results scenarios uncertainties {font-family (see Climate Lett. S). Tedesco distribution distributions font-size freezing higher ice. impact largest latitude levels lines) medians modeled multiyear near-surface overall percentiles phytoplankton potential productive recent salinity similar table thickness, use values variability variables winter Sci. Vichi analysis annual associated bare biomass cascades cover currently daily depth, dissolved double; dynamics latitudes, layer means nutrients observed obtained period permeable productivity representative seawater statistical surface temperature, trend variation °N). (table Arctic. BAL Cryosphere D). Given However, Research Science Sea, border-color border-width case century community concentrations considering corresponding coupling cover, date differences dominant driven duration ecological events expect fig. generally groups habitat indicate length local low peak pelagic production. quantitative radiation satellite shown shows single solid; studies typical web window {font-style {font-weight °N) (–, Antarctic BFM Beaufort Bitz Chang. Changes Clim. Figs. Future GPP. L.T. Leu M.V. Materials Methods Ocean. Snow Stroeve according advances air anticipated approach areas atmospheric background bold bulk chlorophyll climatic constrained courier; dates descriptors diatoms difference effect em; event example favorable given heterogeneity implications indicated integrated larger likely limit linearly mechanisms melt melting method microwave modeling monthly need occur original overview passive pennate precipitation provide pt;} pulses reduced representing responses seasons selected snow-covered study sub-ice th, thinning trends van volume wide years


[ aws . waf-regional ]
Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 500 requests, and you can specify any time range in the previous three hours.
get-sampled-requests returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, get-sampled-requests returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.
See also: AWS API Documentation
get-sampled-requests
--web-acl-id <value>
--rule-id <value>
--time-window <value>
--max-items <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
The WebACLId of the WebACL for which you want get-sampled-requests to return a sample of requests.
RuleId is one of two values:
- The RuleId of the Rule for which you want get-sampled-requests to return a sample of requests.
- Default_Action , which causes get-sampled-requests to return a sample of the requests that didn't match any of the rules in the specified WebACL .
The start date and time and the end date and time of the range for which you want get-sampled-requests to return a sample of requests. Specify the date and time in the following format: "2016-09-27T14:50Z" . You can specify any time range in the previous three hours.
Shorthand Syntax:
StartTime=timestamp,EndTime=timestamp
JSON Syntax:
{
"StartTime": timestamp,
"EndTime": timestamp
}
The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of MaxItems , get-sampled-requests returns information about all of them.
--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.
SampledRequests -> (list)
A complex type that contains detailed information about each of the requests in the sample.
(structure)
The response from a get-sampled-requests request includes a SampledHTTPRequests complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests contains one SampledHTTPRequest object for each web request that is returned by get-sampled-requests .
Request -> (structure)
A complex type that contains detailed information about the request.
ClientIP -> (string)
The IP address that the request originated from. If the WebACL is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:
- c-ip , if the viewer did not use an HTTP proxy or a load balancer to send the request
- x-forwarded-for , if the viewer did use an HTTP proxy or a load balancer to send the request
Country -> (string)
The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry ISO 3166-1 alpha-2 .URI -> (string)
The part of a web request that identifies the resource, for example, /images/daily-ad.jpg .Method -> (string)
The HTTP method specified in the sampled web request. CloudFront supports the following methods: DELETE , GET , HEAD , OPTIONS , PATCH , POST , and PUT .HTTPVersion -> (string)
The HTTP version specified in the sampled web request, for example, HTTP/1.1 .Headers -> (list)
A complex type that contains two values for each header in the sampled web request: the name of the header and the value of the header.
(structure)
The response from a get-sampled-requests request includes an HTTPHeader complex type that appears as Headers in the response syntax. HTTPHeader contains the names and values of all of the headers that appear in one of the web requests that were returned by get-sampled-requests .
Name -> (string)
The name of one of the headers in the sampled web request.Value -> (string)
The value of one of the headers in the sampled web request.Weight -> (long)
A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of 2 represents roughly twice as many CloudFront web requests as a result that has a weight of 1 .Timestamp -> (timestamp)
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).Action -> (string)
The action for the Rule that the request matched: ALLOW , BLOCK , or COUNT .
PopulationSize -> (long)
The total number of requests from which get-sampled-requests got a sample of MaxItems requests. If PopulationSize is less than MaxItems , the sample includes every request that your AWS resource received during the specified time range.
TimeWindow -> (structure)
Usually, time-window is the time range that you specified in the get-sampled-requests request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, get-sampled-requests returns the time range for the first 5,000 requests.
StartTime -> (timestamp)
The beginning of the time range from which you want get-sampled-requests to return a sample of the requests that your AWS resource received. Specify the date and time in the following format: "2016-09-27T14:50Z" . You can specify any time range in the previous three hours.EndTime -> (timestamp)
The end of the time range from which you want get-sampled-requests to return a sample of the requests that your AWS resource received. Specify the date and time in the following format: "2016-09-27T14:50Z" . You can specify any time range in the previous three hours.


About MyBox
This is GUI program based on JavaFx to provide simple and easy functions. It's free and open sources.
Project Main Page:
https://github.com/Mararsh/MyBox
User Guides:
https://github.com/Mararsh/MyBox/releases/download/v5.0/MyBox-UserGuide-5.0-Overview-en.pdf
https://github.com/Mararsh/MyBox/releases/download/v5.0/MyBox-UserGuide-5.0-ImageTools-en.pdf
https://github.com/Mararsh/MyBox/releases/download/v5.0/MyBox-UserGuide-5.0-PdfTools-en.pdf
https://github.com/Mararsh/MyBox/releases/download/v5.0/MyBox-UserGuide-5.0-DesktopTools-en.pdf
https://github.com/Mararsh/MyBox/releases/download/v5.0/MyBox-UserGuide-5.0-NetworkTools-en.pdf
MyBox is developed with NetBeans8.2 and JavaFX Scene Builder 2.0:
https://www.oracle.com/technetwork/java/javafxscenebuilder-1x-archive-2199384.html
It is based on following open sources softwares or libraries:
JavaFx https://docs.oracle.com/javafx/2/
PDFBox https://pdfbox.apache.org/
jai-imageio https://github.com/jai-imageio/jai-imageio-core
javazoom http://www.javazoom.net/index.shtml
log4j https://logging.apache.org/log4j/2.x/
Derby http://db.apache.org/derby/
ImageMeta2XML http://johnbokma.com/java/obtaining-image-metadata.html
GifDecoder https://github.com/DhyanB/Open-Imaging
EncodingDetect https://www.cnblogs.com/ChurchYim/p/8427373.html
Free Icons https://icons8.com/icons/set/home
Meta Data of Image
https://docs.oracle.com/javase/10/docs/api/javax/imageio/metadata/doc-files/standard_metadata.html
https://docs.oracle.com/javase/10/docs/api/javax/imageio/metadata/doc-files/gif_metadata.html
https://docs.oracle.com/javase/10/docs/api/javax/imageio/metadata/doc-files/jpeg_metadata.html
https://docs.oracle.com/javase/10/docs/api/javax/imageio/metadata/doc-files/png_metadata.html
https://docs.oracle.com/javase/10/docs/api/javax/imageio/metadata/doc-files/tiff_metadata.html
About Java Image I/O Technology
https://docs.oracle.com/javase/8/docs/technotes/guides/imageio/
https://docs.oracle.com/javase/8/docs/technotes/guides/imageio/spec/imageio_guideTOC.fm.html
https://docs.oracle.com/javase/tutorial/2d/index.html
https://www.javaworld.com/article/2076764/java-se/image-processing-with-java-2d.html
About Image Compression Type
| Type String | Description | Image Types |
|---|---|---|
| BI_RGB | Uncompressed RLE | <= 8-bits/sample |
| BI_RLE8 | 8-bit Run Length Encoding | <= 8-bits/sample |
| BI_RLE4 | 4-bit Run Length Encoding | <= 4-bits/sample |
| BI_BITFIELDS | Packed data | 16 or 32 bits/sample |
| BI_JPEG | JPEG encoded | grayscale or RGB image |
| Compression Type | Description | Reference |
|---|---|---|
| CCITT RLE | Modified Huffman compression | TIFF 6.0 Specification, Section 10 |
| CCITT T.4 | CCITT T.4 bilevel encoding/Group 3 facsimile compression | TIFF 6.0 Specification, Section 11 |
| CCITT T.6 | CCITT T.6 bilevel encoding/Group 4 facsimile compression | TIFF 6.0 Specification, Section 11 |
| LZW | LZW compression | TIFF 6.0 Specification, Section 13 |
| JPEG | "New" JPEG-in-TIFF compression | TIFF Technical Note #2 |
| ZLib | "Deflate/Inflate" compression | Adobe Photoshop® TIFF Technical Notes (PDF) |
| PackBits | Byte-oriented, run length compression | TIFF 6.0 Specification, Section 9 |
| Deflate | "Zip-in-TIFF" compression | ZLIB Compressed Data Format Specification, DEFLATE Compressed Data Format Specification |
| EXIF JPEG | EXIF-specific JPEG compression | EXIF 2.2 Specification (PDF), section 4.5.5, "Basic Structure of Thumbnail Data" |
About Multiple Frames Image File
It is a file which includes multiple independant images.
Currently MyBox supports multiple frames image files in formats of animated gif and tiff/tif.
About Animated Gif
http://giflib.sourceforge.net/whatsinagif/index.html
https://www.jianshu.com/p/df52f1511cf8
https://github.com/DhyanB/Open-Imaging
https://programtalk.com/python-examples/com.sun.media.imageioimpl.plugins.gif.GIFImageWriterSpi/
About Big Image
Big image is a picture that includes too many pixels to be loaded and displayed under limitation of current memory usage. For all operations which use image as input, big image should be concerned.
The pressure agianst memory is the pixels number of the image, instead of the bytes number of image file.
Example, a jpg file of 42M includes 65500x4504 pixels. Each pixel occupies 3 bytes, so the image data requires 844M bytes memory. If need load and display the whole image in interface of JavaFx, data will be tranferred between file, BufferedImage, and WritableImage, and at least 2.6G memory will be occupied. In my practice, at least 5G should be defined in "-Xmx" to display this image although about 2.3G is shown as the memory usage.
Another example, a png file of 52M includes 8101x4557 pixels, and it needs only 750M memory to load and display whole image in memory.
The principles of handling big images by MyBox are following:
Continually handling images may affect memory usage. Example, memory occupied by previous operation has not been collected by GC and then less memory can be required by current operation. So it is better to restart MyBox to handle big image because it can occupy most of available memory.
In order to handle big image interactively, user can extend the maximum memory for JVM.
About Image Sampling
There are 2 types of image sampling: Downsampling(Also called Subsampling) and Upsampling(Also called interpolating).
When the pixels number of image is very big, subsampling is helpful to load and display the image under limited memory.
The rule of subsampling is very simple: given the sampling ratio, the image pixels are selected to read. Example, when ratio is 3, only one pixel is read in adjacent matrix of width 3 and height 3.
Image subsampling is mainly used to handle big image. When sample ratio is 1, it acts same as "Crop". The difference between subsmapling and functions of "Crop"/"Size" in tool "Image Manufacture" is that subsampling only reads the required part of data in memroy and is writing while reading for big image. For small image, subsampling does same things as tool "Image Manufacture" and they both load all data and do operations in memory.
How to extend maximum memory of JVM
Any of following ways can be used to extend the maximum memory for MyBox: (Assume 5G available)
1) Run following command to launch MyBox:
java -Xmx5g -jar MyBox-xxx.jar
2) Set following system environment parameter(Or add this value into orignial JAVA_OPTS)
JAVA_OPTS=" -Xmx5000m "
Restart MyBox to make the parameter in effect.
About Image Grayscale
About Color Distance
How to get sepia image
About Image Blending
https://en.wikipedia.org/wiki/Blend_modes
https://baike.baidu.com/item/混合模式/6700481?fr=aladdin
About Convolution
https://en.wikipedia.org/wiki/Convolution
https://en.wikipedia.org/wiki/Kernel_(image_processing)
http://colah.github.io/posts/2014-07-Understanding-Convolutions/
About "Flood Fill" algorithm
About Charset and Encoding
Charset is the mapping between characters(For printing and displaying) and bytes(In memory or files). Encoding is the way about how to save bytes in memory or file.
https://en.wikipedia.org/wiki/UTF-8
Image Size
The following concepts are different:
Example, an image has original size 1000x500, loaded size 800x400, display size 600x300, and selected size 700x200.
By setting loaded size, large image can be read in memory while small image can be scaled to view.
Loaded size is different from zooming in interface. Loaded pixels determine memory usage, while interface zooming only affect pixels in screen.
How to pack execution program
Copy the compiled Jar file and application icon file to a temprary directory, like "D:\tmp\src". And execute following command, ("javapackager" is under bin path of JDK)
javapackager -deploy -native image -appclass mara.mybox.MyBox -srcdir D:\tmp\src -outdir D:\tmp\out -outfile MyBox -name MyBox -Bicon=D:\tmp\src\MyBox.ico
The exe files are generated under "D:\tmp\out\bundles".
If this command asks for extra tools, download them as its prompts.
Formal document:
https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/self-contained-packaging.html


Celebrity Dating Quiz! Find your soulmate by answering these simple questions!
Your love is ! We wish you a lifetime of happiness!


For more details and help see the SearchGUI home page: http://searchgui.googlecode.com.
To visualize and analyze SearchGUI results we recommend the use of PeptideShaker.
If you find any bugs or have any questions please contact the developers.
Please cite SearchGUI as Vaudel et al.: Proteomics 2011;11(5):996-9.


Now that you have the poker and roulette winnings nicely as named vectors, you can start doing some data analytical magic.
You want to find out the following type of information:
To get the answers, you have to do arithmetic calculations on vectors.
It is important to know that if you sum two vectors in R, it takes the element-wise sum. For example, the following three statements are completely equivalent:
c(1, 2, 3) + c(4, 5, 6)
c(1 + 4, 2 + 5, 3 + 6)
c(5, 7, 9)
You can also do the calculations with variables that represent vectors:
a <- c(1, 2, 3)
b <- c(4, 5, 6)
c <- a + b
A_vector
and B_vector
and assign it to total_vector
.total_vector
.
A_vector <- c(1, 2, 3)
B_vector <- c(4, 5, 6)
# Take the sum of A_vector and B_vector
total_vector <-
# Print out total_vector
A_vector <- c(1, 2, 3)
B_vector <- c(4, 5, 6)
# Take the sum of A_vector and B_vector
total_vector <- A_vector + B_vector
# Print out total_vector
total_vector
msg <- "Do not change the contents of `A_vector` or `B_vector`!"
test_object("A_vector", undefined_msg = msg, incorrect_msg = msg)
test_object("B_vector", undefined_msg = msg, incorrect_msg = msg)
test_object("total_vector", incorrect_msg = "Make sure that `total_vector` contains the sum of `A_vector` and `B_vector`.")
test_output_contains("total_vector", incorrect_msg = "Don't forget to print out `total_vector`! Simply write `total_vector` on a new line.")
success_msg("Good job! Continue to the next exercise.")
Use the +
operator to sum A_vector
and B_vector
. Use <-
to assign the result to total_vector
.


{% extends "angular/modal_confirm.html" %} {% block modal_title %}Unpublish Dataset{% endblock %} {% block modal_body %}
The dataset will be no longer be public. People with the link will no longer be able to access it. Do you confirm?
{% endblock %}


2 writes to _next
System.Management.Automation (2)
engine\ComInterop\InteropServices\ComEventsMethod.cs (2)
129
method.
_next
= methods;
153
current.
_next
= method._next;
5 references to _next
System.Management.Automation (5)
engine\ComInterop\InteropServices\ComEventsMethod.cs (5)
121
methods = methods.
_next
;
140
return methods.
_next
;
146
while (current != null && current.
_next
!= method)
148
current = current.
_next
;
153
current._next = method.
_next
;


tkgeom.geometry tutorial¶
tkgeom.geometry has an API similar to sympy, nevertheless, feign.geometry is not a symbolic module.
Every coordinate is meant in cm units.
The objects which might be used by the user are the following:
Point
Segment
Circle
Rectangle
Let’s import first the module.
[1]:
from tkgeom.geometry import *
Point()¶
A 2D Point is defined through its x,y coordinates. Its attributes are also x and y.
[2]:
p=Point(3,4)
q=Point(x=3.4,y=32)
[3]:
print(p)
print(p.x,p.y)
print(q)
print(q.x,q.y)
Point(3.000, 4.000)
3 4
Point(3.400, 32.000)
3.4 32
Methods may be used¶
While writing the input, two methods may come handy:
rotate: for rotating the point around (0,0) with alpha angle (in deg)
translate: translating the point with (xt,yt) vector.
Both methods will create a new object.
[4]:
p.rotate(45)
[4]:
Point(-0.707, 4.950)
[5]:
p.translate(2,1)
[5]:
Point(5.000, 5.000)
Other methods¶
There are some other methods
distance: distance between two points
inBetween: two decide whether a point lies on the same line as two other points, and whether it is between the two points
isEqual: to decide whether two points are the same.
[6]:
p.distance(q)
[6]:
28.00285699709942
[7]:
p.isEqual(q)
[7]:
False
[8]:
Point(1,2).inBetween(p,q)
[8]:
False
Segment()¶
A 2D Segment is defined through its end points p and q. Its attributes are p, q, points (list of [p,q]), slope, intercept. If the segment is vertically aligned, the slope is np.Inf, and the intercept becomes the intersection with the x axis.
[9]:
s=Segment(p,q)
print(s)
print(s.points)
print(s.p.x,s.p.y)
print(s.slope)
print(s.intercept)
print(Segment(Point(3,4),Point(3,6)).slope)
Segment(Point(3.000, 4.000),Point(3.400, 32.000))
[Point(3.000, 4.000), Point(3.400, 32.000)]
3 4
70.00000000000001
-206.00000000000006
inf
Methods may be used¶
While writing the input, one method may come handy:
rotate: for rotating the segment around (0,0) with alpha angle (in deg)
The method will create a new object.
[10]:
s.rotate(45)
[10]:
Segment(Point(-0.707, 4.950),Point(-20.223, 25.032))
Other methods¶
The segment class has one more method available:
intersection: intersection of two segments
[11]:
Segment(p,q).intersection(Segment(Point(-4.5,4.5),Point(5.5,4.5)))
[11]:
[Point(3.007, 4.500)]
Circle()¶
A 2D Circle is defined through its center c and radius r. Its attributes are also c, r.
[12]:
c=Circle(Point(4.5,4.5),5)
print(c)
print(c.c)
print(c.r)
Circle(C=(4.500, 4.500),R=5.000)
Point(4.500, 4.500)
5
Other methods¶
There are two available methods:
intersection: intersection with a segment
encloses_point: to decide whether a point is within the circle
[13]:
c.intersection(s)
[13]:
[Point(3.076, 9.293)]
[14]:
c.encloses_point(Point(5,5))
[14]:
True
Rectangle()¶
A 2D Rectangle is defined through its corner points p1, p2, p3, p4. Its attributes are the corner points p1, p2, p3, p4, corners a list of these poins, the side segments p1p2, p2p3, p3p4, p4p1, and sides a list of the side segments.
The corners have to be defined in a clockwise or counter-clockwise order.
In fact, a Rectangle() object can be a general convex quadritlateral, the choice of naming is only to avoid typos.
[15]:
r=Rectangle(Point(-3,-3),Point(-3,3),Point(3,3),Point(3,-3))
print(r)
print(r.p1,r.p2,r.p3,r.p4)
print(r.corners)
print(r.p1p2,r.p2p3,r.p3p4,r.p4p1)
print(r.sides)
Rectangle(Point(-3.000, -3.000),Point(-3.000, 3.000),Point(3.000, 3.000),Point(3.000, -3.000))
Point(-3.000, -3.000) Point(-3.000, 3.000) Point(3.000, 3.000) Point(3.000, -3.000)
[Point(-3.000, -3.000), Point(-3.000, 3.000), Point(3.000, 3.000), Point(3.000, -3.000)]
Segment(Point(-3.000, -3.000),Point(-3.000, 3.000)) Segment(Point(-3.000, 3.000),Point(3.000, 3.000)) Segment(Point(3.000, 3.000),Point(3.000, -3.000)) Segment(Point(3.000, -3.000),Point(-3.000, -3.000))
[Segment(Point(-3.000, -3.000),Point(-3.000, 3.000)), Segment(Point(-3.000, 3.000),Point(3.000, 3.000)), Segment(Point(3.000, 3.000),Point(3.000, -3.000)), Segment(Point(3.000, -3.000),Point(-3.000, -3.000))]
Methods may be used¶
While writing the input, one method may come handy:
rotate: for rotating the rectangle around (0,0) with alpha angle (in deg)
The method will create a new object.
[16]:
r.rotate(45)
[16]:
Rectangle(Point(-0.000, -4.243),Point(-4.243, 0.000),Point(0.000, 4.243),Point(4.243, -0.000))
Other methods¶
Similarly to Circle, Rectangles also have two more available methods:
intersection: intersection with a segment
encloses_point: to decide whether a point is within the rectangle
[17]:
r.intersection(Segment(Point(-3,-4),Point(3,4)))
[17]:
[Point(2.250, 3.000), Point(-2.250, -3.000)]
[18]:
r.encloses_point(Point(1,2))
[18]:
True


Post Malone dancing to Shania Twain at the AMAs is pure joy and relatable AF
Is there any bigger mood than Post Malone living his best life to Shania Twain?
Because if so, we’ve yet to find it.
The rapper was serving majorly relatable vibes as he owned his prerogrative to have a little fun at the American Music Awards while country legend Shania performed an epic medley.
Marking her upcoming Las Vegas residency – side note, booking flights to Sin City ASAP – Shania, 54, returned to the AMAs stage for the first time since 2003 to bless us with a medley of her own classics and other chart hits.
The pop-country star first delivered a medley of Twenty One Pilots’ Stressed Out, Taylor Swift’s Shake It Off and Drake’s God’s Plan – played on a glittering pink guitar – before seguing into her slow-set classic, You’re Still The One.
But the tempo soon ramped up, as Shania – dressed in a ruffled pink dress and an orange bodysuit and surrounded by line-dancing cowboys – then performed Any Man Of Mine, That
Advertisement Advertisement
Don’t Impress Me Much and girl power anthem Man! I Feel Like A Woman.
And it was the final tune that Post Malone, 24, was living for, as video from inside the Microsoft Theater in Los Angeles showed the Sunflower star dancing and singing every world as if he were at a particularly glitzy hen do.
The star, real name Austin Richard post, ditched his seat to dance around with a beer in hand, and you can practically feel the joy radiating off the screen.
While Shania’s medley was obviously the highlight of the night for Post, the rapper had a pretty great evening elsewhere too.
Post took to the stage with fellow rapper Travis Scott and rock legend Ozzy Osbourne for an epic performance of Take What You Want which saw the stage bathed in smoke and flames.
Then the Rock Star rapper made it back on stage as he beat Travis and Meek Mill to win Favourite Album – Rap/Hip-Hop for Hollywood’s Bleeding – and he gave a rather random speech to celebrate his win.
Post said: ‘Thank you very very very very much. I’m not too good at talking in front of people. But I just want to say thank you so much to everybody who’s shown love and support.
Advertisement Advertisement
‘Honestly, words cannot express how grateful and thankful I am for everything that y’all show me.
‘Thank you to all the camp and the team. Thank you for all the fans for showing love and support. We busted our a** for it.’
He concluded: ‘We love you very much and I love grapes.’
Don’t we all, Post, don’t we all.
American Music Awards winners 2019
Artist of the decade:
Taylor Swift
Artist of the year:
Taylor Swift
New artist of the year:
Billie Eilish
Collaboration of the year:
Shawn Mendes & Camila Cabello, Señorita
Tour of the year:
BTS
Favourite music video:
Taylor Swift, You Need to Calm Down
Favourite social artist:
BTS
Favourite male artist - pop/rock:
Khalid
Favourite female artist - pop/rock:
Taylor Swift
Favourite duo or group - pop/rock:
BTS
Favourite album - pop/rock:
Taylor Swift, Lover
Favourite song - pop/rock:
Halsey, Without Me
Favourite male artist - country:
Kane Brown
Favourite female artist - country:
Carrie Underwood
Favourite duo or group - country:
Dan + Shay
Favourite album - country:
Carrie Underwood, Cry Pretty
Favourite song - country:
Dan + Shay, Speechless
Favourite artist – rap/hip-hop:
Cardi B
Favourite album – rap/hip-hop:
Post Malone, Hollywood’s Bleeding
Favourite song – rap/hip-hop:
Lil Nas X ft. Billy Ray Cyrus, Old Town Road
Favourite male artist – soul/R&B:
Bruno Mars
Favourite female artist – soul/R&B:
Beyoncé
Favourite album – soul/R&B:
Khalid, Free Spirit
Favourite song – soul/R&B:
Khalid, Talk
Favourite artist – alternative rock:
Billie Eilish
Favourite artist – adult contemporary:
Taylor Swift
Favourite artist – Latin:
J Balvin
Favourite artist – contemporary inspirational:
Lauren Daigle
Favourite artist – electronic dance music (EDM):
Marshmello
Favourite soundtrack:
Bohemian Rhapsody by Queen


Next: APPLY Forms as Places, Previous: VALUES Forms as Places, Up: Kinds of Places
A the form can be used as a place, in which case the declaration is transferred to the newvalue form, and the resulting setf is analyzed. For example,
(setf (the integer (cadr x)) (+ y 3))
is processed as if it were
(setf (cadr x) (the integer (+ y 3)))


CHAPTER 6.1: Wireless and Mobile Networks
Wireless hosts. As in the case of wired networks, hosts are the end-system devices that run applications. A wireless host might be a laptop, palmtop, smartphone, or desktop computer. The hosts themselves may or may not be mobile.
Wireless links. A host connects to a base station (defined below) or to another wireless host through a wireless communication link. Different wireless link technologies have different transmission rates and can transmit over different distances.
Base station. The base station is a key part of the wireless network infrastructure. Unlike the wireless host and wireless link, a base station has no obvious counterpart in a wired network. Abase station is responsible for sending and receiving data (e.g., packets) to and from a wireless host that is associated with that base station.
Cell towers in cellular networks and access points in 802.11 wireless LANs are examples of base stations.
Hosts associated with a base station are often referred to as operating in infrastructure mode, since all traditional network services (e.g., address assignment and routing) are provided by the network to which a host is connected via the base station.
In ad hoc networks, wireless hosts have no such infrastructure with which to connect. In the absence of such infrastructure, the hosts themselves must provide for services such as routing, address assignment, DNS-like name translation, and more.
At the highest level we can classify wireless networks according to two criteria: (i) whether a packet in the wireless network crosses exactly one wireless hop or multiple wireless hops, and (ii) whether there is infrastructure such as a base station in the network:
- Single-hop, infrastructure-based
- Single-hop, infrastructure-less
- Multi-hop, infrastructure-based
- Multi-hop, infrastructure-less. There is no base station in these networks, and nodes may have to relay messages among several other nodes in order to reach a destination. Nodes may also be mobile, with connectivity changing among nodes—a class of networks known as mobile ad hoc networks (MANETs).


Class: ActionDispatch::Http::UploadedFile
| Relationships & Source Files | |
| Inherits: | Object |
| Defined in: | actionpack/lib/action_dispatch/http/upload.rb |
Overview
Models uploaded files.
The actual file is accessible via the #tempfile accessor, though some of its interface is available directly for convenience.
Uploaded files are temporary files whose lifespan is one request. When the object is finalized Ruby unlinks the file, so there is no need to clean them with a separate maintenance task.
Instance Attribute Summary
-
#content_type
rw
A string with the MIME type of the file.
-
#eof? ⇒ Boolean
readonly
Shortcut for
tempfile.eof?
. -
#headers
rw
A string with the headers of the multipart request.
-
#original_filename
rw
The basename of the file in the client.
-
#tempfile
(also: #to_io)
rw
A
Tempfile
object with the actual uploaded file. -
#to_io
readonly
Alias for #tempfile.
Instance Method Summary
-
#close(unlink_now = false)
Shortcut for
tempfile.close
. -
#open
Shortcut for
tempfile.open
. -
#path
Shortcut for
tempfile.path
. -
#read(length = nil, buffer = nil)
Shortcut for
tempfile.read
. -
#rewind
Shortcut for
tempfile.rewind
. -
#size
Shortcut for
tempfile.size
.
Instance Attribute Details
#content_type (rw)
A string with the MIME type of the file.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 16
attr_accessor :content_type
#eof? ⇒ Boolean
(readonly)
Shortcut for tempfile.eof?
.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 73
def eof? @tempfile.eof? end
#headers (rw)
A string with the headers of the multipart request.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 24
attr_accessor :headers
#original_filename (rw)
The basename of the file in the client.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 13
attr_accessor :original_filename
#tempfile (rw) Also known as: #to_io
A Tempfile
object with the actual uploaded file. Note that some of its interface is available directly.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 20
attr_accessor :tempfile
#to_io (readonly)
Alias for #tempfile.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 21
alias :to_io :tempfile
Instance Method Details
#close(unlink_now = false)
Shortcut for tempfile.close
.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 53
def close(unlink_now=false) @tempfile.close(unlink_now) end
#open
Shortcut for tempfile.open
.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 48
def open @tempfile.open end
#path
Shortcut for tempfile.path
.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 58
def path @tempfile.path end
#read(length = nil, buffer = nil)
Shortcut for tempfile.read
.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 43
def read(length=nil, buffer=nil) @tempfile.read(length, buffer) end
#rewind
Shortcut for tempfile.rewind
.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 63
def rewind @tempfile.rewind end
#size
Shortcut for tempfile.size
.
# File 'actionpack/lib/action_dispatch/http/upload.rb', line 68
def size @tempfile.size end


LQEnumerable Protocol Reference
| Conforms to | NSFastEnumeration |
| Declared in | LQEnumerable.h |
Overview
Common interface for all collections that can be enumerated. It is a heart of the library. This analog IEnumerable in .NET and represents LINQ to Objects part of .NET. In basics LINQ to Objects is a different approach to work with collections. In the old way you had to write forin loops in order to retrive data. In the LINQ you write declarative code that describes what you want to retrive from the collection.
In addition, LINQ queries offer three main advantages over traditional foreach loops:
1. They are more concise and readable, especially when filtering multiple conditions.
2. They provide powerful filtering, ordering, and grouping capabilities with a minimum of application code.
3. They can be ported to other data sources (XML, SQL, JSON) with little or no modification.
Tasks
-
select
Projects each element of a sequence into a new form.
property required method -
where
Filters a sequence of values based on a predicate.
property required method -
selectMany
Projects each element of a sequence to an id
property required methodand flattens the resulting sequences into one sequence. -
distinct
Returns distinct elements from a sequence by using isEqual method to compare items
property required method -
skip
Bypasses a specified number of elements in a sequence and then returns the remaining elements.
property required method -
skipWhile
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
property required method -
take
Returns a specified number of contiguous elements from the start of a sequence.
property required method -
takeWhile
Returns elements from a sequence as long as a specified condition is true.
property required method -
all
Determines whether all elements of a sequence satisfy a condition.
property required method -
any
Determines whether any element of a sequence satisfies a condition.
property required method -
aggregate
Applies an accumulator function over a sequence.
property required method -
aggregateWithSeed
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
property required method -
single
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
property required method -
singleWithPredicate
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
property required method -
singleOrNil
Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
property required method -
singleOrNilWithPredicate
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
property required method -
first
Returns the first element of a sequence.
property required method -
firstWithPredicate
Returns the first element in a sequence that satisfies a specified condition.
property required method -
firstOrNil
Returns the first element of a sequence, or a default value if the sequence contains no elements.
property required method -
firstOrNilWithPredicate
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
property required method -
last
Returns the last element of a sequence.
property required method -
lastWithPredicate
Returns the last element of a sequence that satisfies a specified condition. @params predicate – A function to test each element for a condition.
property required method -
lastOrNil
Returns the last element of a sequence, or a default value if the sequence contains no elements.
property required method -
lastOrNilWithPredicate
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.
property required method -
length
Returns the number of elements in a sequence.
property required method -
lengthWithPredicate
Returns a number that represents how many elements in the specified sequence satisfy a condition.
property required method -
ofClass
Filters the elements of an id
property required methodbased on a specified class. -
contains
Determines whether a sequence contains a specified element by using isEqual method to compare values.
property required method -
forEach
Enumerates the sequence and invokes the given action for each value in the sequence.
property required method -
concat
Concatenates two sequences.
property required method -
unions
Produces the set union of two sequences by using isEqual method as comparer
property required method -
except
Produces the set difference of two sequences by using isEqual method to compare values.
property required method -
intersect
Produces the set intersection of two sequences by using isEqual method to compare values.
property required method -
orderBy
Sorts the elements of a sequence in ascending order by using a specified comparer.
property required method -
orderByDescending
Sorts the elements of a sequence in descending order by using a specified comparer.
property required method -
min
Returns the minimum value in the enumerable sequence by using the specified comparer to compare values.
property required method -
max
Returns the maxmimum value in the enumerable sequence by using the specified comparer to compare values.
property required method -
minBy
Returns the elements with the minimum key value by using the default comparer to compare key values.
property required method -
maxBy
Returns the elements with the maxmimum key value by using the default comparer to compare key values.
property required method -
zip
Applies a specified function to the corresponding elements of two sequences, which produces a sequence of the results.
property required method -
join
Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
property required method -
joinWithComparator
Correlates the elements of two sequences based on matching keys. A specified NSComparator is used to compare keys.
property required method -
toLookup
Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.
property required method -
toArray
Creates a NSArray from a id
property required method. -
toDictionary
Creates a NSDictionary from an id
property required methodaccording to specified key selector and element selector functions. -
toSet
Creates a NSSet from a id
property required method.
Properties
aggregate
Applies an accumulator function over a sequence.
@property (readonly, nonatomic) LQAggregate aggregate
Parameters
- seed
- The initial accumulator value.
- aggregator
- An accumulator function to be invoked on each element.
Return Value
The final accumulator value.
Declared In
LQEnumerable.h
aggregateWithSeed
Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
@property (readonly, nonatomic) LQAggregateWithSeed aggregateWithSeed
Parameters
- aggregator
- An accumulator function to be invoked on each element.
Return Value
The final accumulator value.
Declared In
LQEnumerable.h
all
Determines whether all elements of a sequence satisfy a condition.
@property (readonly, nonatomic) LQAllBlock all
Parameters
- predicate
- A function to test each element for a condition.
Return Value
YES if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, NO.
Declared In
LQEnumerable.h
any
Determines whether any element of a sequence satisfies a condition.
@property (readonly, nonatomic) LQAnyBlock any
Parameters
- predicate
- A function to test each element for a condition.
Return Value
YES if at least one element of the source sequence passes the test in the specified predicate; otherwise, NO.
Declared In
LQEnumerable.h
concat
Concatenates two sequences.
@property (readonly, nonatomic) LQConcatBlock concat
Parameters
- second
- The sequence to concatenate to the first sequence.
Return Value
An id
Declared In
LQEnumerable.h
contains
Determines whether a sequence contains a specified element by using isEqual method to compare values.
@property (readonly, nonatomic) LQPredicate contains
Parameters
- value
- The value to locate in the sequence.
Return Value
YES if the source sequence contains an element that has the specified value; otherwise, NO.
Declared In
LQEnumerable.h
distinct
Returns distinct elements from a sequence by using isEqual method to compare items
@property (readonly, nonatomic) LQDistinctBlock distinct
Return Value
An id
Declared In
LQEnumerable.h
except
Produces the set difference of two sequences by using isEqual method to compare values.
@property (readonly, nonatomic) LQConcatBlock except
Parameters
- An
id
whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence.
Return Value
A sequence that contains the set difference of the elements of two sequences.
Declared In
LQEnumerable.h
first
Returns the first element of a sequence.
@property (readonly, nonatomic) ResultBlock first
Return Value
The first element in the specified sequence.
Exceptions
- InvalidOperationException
The source sequence is empty.
Declared In
LQEnumerable.h
firstOrNil
@property (readonly, nonatomic) ResultBlock firstOrNil
Return Value
nil if source is empty; otherwise, the first element in source.
Declared In
LQEnumerable.h
firstOrNilWithPredicate
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
@property (readonly, nonatomic) ResultWithPredicateBlock firstOrNilWithPredicate
Parameters
- predicate
- A function to test each element for a condition
Return Value
nil if source is empty or if no element passes the test specified by predicate; otherwise, the first element in source that passes the test specified by predicate.
Declared In
LQEnumerable.h
firstWithPredicate
Returns the first element in a sequence that satisfies a specified condition.
@property (readonly, nonatomic) ResultWithPredicateBlock firstWithPredicate
Parameters
- predicate
- A function to test each element for a condition. The first element in the sequence that passes the test in the specified predicate function.
Exceptions
- InvalidOperationException
No element satisfies the condition in predicate or The source sequence is empty.
Declared In
LQEnumerable.h
forEach
Enumerates the sequence and invokes the given action for each value in the sequence.
@property (readonly, nonatomic) LQForEachBlock forEach
Parameters
- actino
- Action to invoke for each element.
Declared In
LQEnumerable.h
intersect
Produces the set intersection of two sequences by using isEqual method to compare values.
@property (readonly, nonatomic) LQConcatBlock intersect
Parameters
Return Value
A sequence that contains the elements that form the set intersection of two sequences.
Declared In
LQEnumerable.h
join
Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
@property (readonly, nonatomic) LQJoinBlock join
Parameters
- inner
The sequence to join to the self sequence.
- outerKeySelector
A function to extract the join key from each element of the self sequence.
- inerKeySelector
A function to extract the join key from each element of the second sequence.
- resultSelector
A function to create a result element from two matching elements.
Return Value
An id
Example:
@interface Person
@property NSString* name;
+(id)makeWithName:(NSString*)name;
@end
@interface Pet
@property NSString* name;
@property Person* owner;
+(id)makeWithName:(NSString*)name andOwner:(Person*)owner;
@end
Person* magnus = [Person makeWithName:@"Hedlund, Magnus"];
Person* terry = [Person makeWithName:@"Adams, Terry"];
Person* charlotte = [Person makeWithName:@"Weiss, Charlotte"];
Pet* barley = [Pet makeWithName:@"Barley" andOwner:terry];
Pet* boots = [Pet makeWithName:@"Boots" andOwner:terry];
Pet* whiskers = [Pet makeWithName:@"Whiskers" andOwner:charlotte];
Pet* daisy = [Pet makeWithName:@"Daisy" andOwner:magnus];
NSArray* people = @[ magnus, terry, charlotte ];
NSArray* pets = @[ barley, boots, whiskers, daisy ];
// Create a list of Person-Pet pairs where
// each element is a NSDictionary type that contains a
// Pet's name and the name of the Person that owns the Pet.
id<LQEnumerable> query =
people.Join(pets,
^id(Person* person) { return person; },
^id(Pet* pet) { return pet.owner; },
^id(Person* person, Pet* pet) { return @{@"OwnerName": person.name, @"Pet": pet.name}; }
);
for(NSDictionary* obj in query) {
NSLog(@"%@ - %@", obj[@"OwnerName"], obj[@"Pet"]);
}
This code produces the following output:
Hedlund, Magnus - Daisy
Adams, Terry - Barley
Adams, Terry - Boots
Weiss, Charlotte - Whiskers
Declared In
LQEnumerable.h
joinWithComparator
Correlates the elements of two sequences based on matching keys. A specified NSComparator is used to compare keys.
@property (readonly, nonatomic) LQJoinWithComparatorBlock joinWithComparator
Parameters
- inner
The sequence to join to the self sequence.
- outerKeySelector
A function to extract the join key from each element of the self sequence.
- inerKeySelector
A function to extract the join key from each element of the second sequence.
- resultSelector
A function to create a result element from two matching elements.
- comparator
An LQEqualityComparer to compare keys.
Return Value
An id
Declared In
LQEnumerable.h
last
Returns the last element of a sequence.
@property (readonly, nonatomic) ResultBlock last
Return Value
The value at the last position in the source sequence.
Exceptions
- InvalidOperationException
The source sequence is empty.
Declared In
LQEnumerable.h
lastOrNil
@property (readonly, nonatomic) ResultBlock lastOrNil
Return Value
nil if the source sequence is empty; otherwise, the last element in the id
Declared In
LQEnumerable.h
lastOrNilWithPredicate
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.
@property (readonly, nonatomic) ResultWithPredicateBlock lastOrNilWithPredicate
Parameters
- predicate
- A function to test each element for a condition.
Return Value
nil if the sequence is empty or if no elements pass the test in the predicate function; otherwise, the last element that passes the test in the predicate function.
Declared In
LQEnumerable.h
lastWithPredicate
Returns the last element of a sequence that satisfies a specified condition. @params predicate – A function to test each element for a condition.
@property (readonly, nonatomic) ResultWithPredicateBlock lastWithPredicate
Return Value
The last element in the sequence that passes the test in the specified predicate function.
Exceptions
- InvalidOperationException
No element satisfies the condition in predicate or The source sequence is empty.
Declared In
LQEnumerable.h
length
Returns the number of elements in a sequence.
@property (readonly, nonatomic) LQCountBlock length
Return Value
The number of elements in the input sequence.
Declared In
LQEnumerable.h
lengthWithPredicate
Returns a number that represents how many elements in the specified sequence satisfy a condition.
@property (readonly, nonatomic) LQCountWithPredicateBlock lengthWithPredicate
Parameters
- predicate
- A function to test each element for a condition.
Return Value
A number that represents how many elements in the sequence satisfy the condition in the predicate function.
Declared In
LQEnumerable.h
max
Returns the maxmimum value in the enumerable sequence by using the specified comparer to compare values.
@property (readonly, nonatomic) LQMinMaxBlock max
Parameters
- comparer
- Comparer used to determine the maxmimum value
Return Value
MAximum value in the sequence.
Declared In
LQEnumerable.h
maxBy
Returns the elements with the maxmimum key value by using the default comparer to compare key values.
@property (readonly, nonatomic) LQMinMaxByBlock maxBy
Parameters
- keySelector
- Key selector used to extract the key for each element in the sequence.
- comparer
- Comparer used to determine the maxmimum key value.
Return Value
List with the elements that share the same maxmimum key value.
Declared In
LQEnumerable.h
min
Returns the minimum value in the enumerable sequence by using the specified comparer to compare values.
@property (readonly, nonatomic) LQMinMaxBlock min
Parameters
- comparer
- Comparer used to determine the minimum value
Return Value
Minimum value in the sequence.
Declared In
LQEnumerable.h
minBy
Returns the elements with the minimum key value by using the default comparer to compare key values.
@property (readonly, nonatomic) LQMinMaxByBlock minBy
Parameters
- keySelector
- Key selector used to extract the key for each element in the sequence.
- comparer
- Comparer used to determine the minimum key value.
Return Value
List with the elements that share the same minimum key value.
Declared In
LQEnumerable.h
ofClass
Filters the elements of an id
@property (readonly, nonatomic) LQOfClassBlock ofClass
Return Value
An id
Declared In
LQEnumerable.h
orderBy
Sorts the elements of a sequence in ascending order by using a specified comparer.
@property (readonly, nonatomic) LQOrderByBlock orderBy
Parameters
- keySelector
- A function to extract a key from an element.
- comparer
- A function to compare two values
Return Value
An id
Declared In
LQEnumerable.h
orderByDescending
Sorts the elements of a sequence in descending order by using a specified comparer.
@property (readonly, nonatomic) LQOrderByBlock orderByDescending
Parameters
- keySelector
- A function to extract a key from an element.
- comparer
- A function to compare two values
Return Value
An id
Declared In
LQEnumerable.h
select
Projects each element of a sequence into a new form.
@property (readonly, nonatomic) LQSelectBlock select
Parameters
- selector
- A transform function to apply to each element.
Return Value
- an id
whose elements are the result of invoking the transform function on each element of source.
Declared In
LQEnumerable.h
selectMany
Projects each element of a sequence to an id
@property (readonly, nonatomic) LQSelectManyBlock selectMany
Parameters
- selector:
- A transform function to apply to each element.
Return Value
An id
Declared In
LQEnumerable.h
single
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
@property (readonly, nonatomic) ResultBlock single
Return Value
The single element of the input sequence.
Exceptions
- InvalidOperationException
The input sequence contains more than one element or the input sequence is empty.
Declared In
LQEnumerable.h
singleOrNil
Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
@property (readonly, nonatomic) ResultBlock singleOrNil
Return Value
The single element of the input sequence, or nil if the sequence contains no elements. @exeption InvalidOperationException The input sequence contains more than one element.
Declared In
LQEnumerable.h
singleOrNilWithPredicate
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
@property (readonly, nonatomic) ResultWithPredicateBlock singleOrNilWithPredicate
Parameters
- predicate
- A function to test an element for a condition.
Return Value
The single element of the input sequence that satisfies the condition, or nil if no such element is found.
Declared In
LQEnumerable.h
singleWithPredicate
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
@property (readonly, nonatomic) ResultWithPredicateBlock singleWithPredicate
Parameters
- predicate
- A function to test an element for a condition.
Return Value
The single element of the input sequence that satisfies a condition.
Exceptions
- InvalidOperationException
No element satisfies the condition in predicate or more than one element satisfies the condition in predicate. or the source sequence is empty.
Declared In
LQEnumerable.h
skip
Bypasses a specified number of elements in a sequence and then returns the remaining elements.
@property (readonly, nonatomic) LQSkipBlock skip
Parameters
- count
- The number of elements to skip before returning the remaining elements.
Return Value
An id
Declared In
LQEnumerable.h
skipWhile
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
@property (readonly, nonatomic) LQSkipWithPredicateBlock skipWhile
Parameters
- predicate
- A function to test each element for a condition.
Return Value
An id
Declared In
LQEnumerable.h
take
Returns a specified number of contiguous elements from the start of a sequence.
@property (readonly, nonatomic) LQSTakeBlock take
Parameters
- count
- The number of elements to return.
Return Value
An id
Declared In
LQEnumerable.h
takeWhile
Returns elements from a sequence as long as a specified condition is true.
@property (readonly, nonatomic) LQSTakeWithPredicateBlock takeWhile
Parameters
- predicate
- A function to test each element for a condition.
Return Value
An id
Declared In
LQEnumerable.h
toArray
Creates a NSArray from a id
@property (readonly, nonatomic) LQArrayBlock toArray
Return Value
An array that contains the elements from the input sequence.
Declared In
LQEnumerable.h
toDictionary
Creates a NSDictionary from an id
@property (readonly, nonatomic) LQDictionaryBlock toDictionary
Parameters
- keySelector
- A function to extract a key from each element.
- valueSelector
- A transform function to produce a result element value from each element.
Return Value
A NSDictionary that contains values selected from the input sequence.
Declared In
LQEnumerable.h
toLookup
Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.
@property (readonly, nonatomic) LQLookupBlock toLookup
Parameters
- keySelector
A function to extract the key from each element of the sequence.
Return Value
A NSDictionary that maps key to id
Declared In
LQEnumerable.h
toSet
Creates a NSSet from a id
@property (readonly, nonatomic) LQSetBlock toSet
Return Value
A set that contains the elements from the input sequence.
Declared In
LQEnumerable.h
unions
Produces the set union of two sequences by using isEqual method as comparer
@property (readonly, nonatomic) LQConcatBlock unions
Parameters
- second
An id
whose distinct elements form the second set for the union.
Return Value
An id
Declared In
LQEnumerable.h
where
Filters a sequence of values based on a predicate.
@property (readonly, nonatomic) LQWhereBlock where
Parameters
- predicate
- A function to test each element for a condition.
Return Value
an id
Declared In
LQEnumerable.h
zip
Applies a specified function to the corresponding elements of two sequences, which produces a sequence of the results.
@property (readonly, nonatomic) LQZipBlock zip
Parameters
- second
- The second sequence to merge.
- resultSelector
A function that specifies how to merge the elements from the two sequences.
Return Value
An id
Declared In
LQEnumerable.h


Cryptocurrency is an emerging technology changing the way we transact money. Or is it? Since the emergence of the first cryptocurrency (Bitcoin) in 2009, banks have been on their feet to retain customers. Cryptocurrency is so different than any way we have ever managed our money because it is decentralized, meaning that no government owns cryptocurrencies, and therefore, no government can be in control of the currency. As well, cryptocurrencies can sustain transactions without ever having to use a bank.
But there are some questions we must ask, too. If there is no bank involved, who will ensure there isn’t any fraud? How can you track someone down if their transactions are anonymous? Our plenary prepares our generation - the first generation that will be fully immersed in this technology - for what we need to know to be prepared for the exponential increase of cryptocurrencies in the years to come.
More information on plenaries and programs are coming soon.


|
My Project
|
#include <v4l2-stream-stereo-device.h>
Public Member Functions | |
| V4LStreamStereoDevice (std::string vdev_right="/dev/video0", std::string vdev_left="/dev/video1", int width=640, int height=480) | |
| ~V4LStreamStereoDevice () | |
| int | grabOneFrame () |
| int | connectToDevice () |
| Public Member Functions inherited from VideoStreamStereoDevice | |
| VideoStreamStereoDevice () | |
| int | getFrameSize () const |
| int | getWidth () const |
| void | setWidth (int value) |
| int | getHeight () const |
| void | setHeight (int value) |
| void | getBuffers (struct videoStreamBuffer *left, struct videoStreamBuffer *right) |
Additional Inherited Members | |
| Protected Attributes inherited from VideoStreamStereoDevice | |
| int | width |
| int | height |
| char * | buffer_right |
| char * | buffer_left |
| int | buffer_right_len |
| int | buffer_left_len |
| V4LStreamStereoDevice::V4LStreamStereoDevice | ( | std::string | vdev_right = "/dev/video0" , |
| std::string | vdev_left = "/dev/video1" , |
||
| int | width = 640 , |
||
| int | height = 480 |
||
| ) |
| V4LStreamStereoDevice::~V4LStreamStereoDevice | ( | ) |
|
virtual |
Implements VideoStreamStereoDevice.
|
virtual |
Implements VideoStreamStereoDevice.


|
KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
The base connection using data actors More...
Public Member Functions | |
| Connection (ActorSystem actorSystem, string dataActorPath, TimeSpan? timeout, RequestContext context) | |
| async Task< MutationResult< TObject > > | Create (TObject newNode) |
| async Task< MutationResult< TObject > > | Delete (TId id) |
| async Task< QueryResult< TObject > > | Query (Expression< Func< TObject, bool >> filter, IEnumerable< SortingCondition > sort, int? limit, int? offset, ApiRequest apiRequest) |
| async Task< MutationResult< TObject > > | Update (TId id, TObject newNode, ApiRequest apiRequest) |
| Public Member Functions inherited from KlusterKite.API.Client.INodeConnection< TObject > | |
| Task< QueryResult< T > > | Query (Expression< Func< T, bool >> filter, IEnumerable< SortingCondition > sort, int? limit, int? offset, ApiRequest apiRequest) |
| Query the datasource for nodes More... | |
| Task< MutationResult< T > > | Create (T newNode) |
| Creates a new node More... | |
| Task< MutationResult< T > > | Update (object id, T newNode, ApiRequest request) |
| Updates a node More... | |
| Task< MutationResult< T > > | Delete (object id) |
| Removes a node from the data store More... | |
Static Protected Member Functions | |
| static MutationResult< TObject > | CreateResponse (CrudActionResponse< TObject > response) |
| Creates mutation response from actor response More... | |
Properties | |
| RequestContext | Context [get] |
| Gets the request context More... | |
| string | DataActorPath [get] |
| Gets the path to the data actor More... | |
| ActorSystem | System [get] |
| Gets the actor system More... | |
| TimeSpan | Timeout [get] |
| Gets the request timeout More... | |
The base connection using data actors
| TObject | The type of entity |
| TId | The type of object id |
TODO: remove TId type parameter and recover it from type data
| TObject | : | class | |
| TObject | : | IObjectWithId<TId> | |
| TObject | : | new() |
Definition at line 37 of file Connection.cs.
| KlusterKite.Data.CRUD.Connection< TObject, TId >.Connection | ( | ActorSystem | actorSystem, |
| string | dataActorPath, | ||
| TimeSpan? | timeout, | ||
| RequestContext | context | ||
| ) |
Definition at line 41 of file Connection.cs.
| async Task<MutationResult<TObject> > KlusterKite.Data.CRUD.Connection< TObject, TId >.Create | ( | TObject | newNode | ) |
Definition at line 70 of file Connection.cs.
|
staticprotected |
Creates mutation response from actor response
| response | The actor response |
Definition at line 179 of file Connection.cs.
| async Task<MutationResult<TObject> > KlusterKite.Data.CRUD.Connection< TObject, TId >.Delete | ( | TId | id | ) |
Definition at line 86 of file Connection.cs.
| async Task<QueryResult<TObject> > KlusterKite.Data.CRUD.Connection< TObject, TId >.Query | ( | Expression< Func< TObject, bool >> | filter, |
| IEnumerable< SortingCondition > | sort, | ||
| int? | limit, | ||
| int? | offset, | ||
| ApiRequest | apiRequest | ||
| ) |
Definition at line 102 of file Connection.cs.
| async Task<MutationResult<TObject> > KlusterKite.Data.CRUD.Connection< TObject, TId >.Update | ( | TId | id, |
| TObject | newNode, | ||
| ApiRequest | apiRequest | ||
| ) |
Definition at line 145 of file Connection.cs.
|
getprotected |
Gets the request context
Definition at line 52 of file Connection.cs.
|
getprotected |
Gets the path to the data actor
Definition at line 57 of file Connection.cs.
|
getprotected |
Gets the actor system
Definition at line 62 of file Connection.cs.
|
getprotected |
Gets the request timeout
Definition at line 67 of file Connection.cs.