Class: Aws::ECS::Types::Service
| Inherits: |
Struct
|
| Defined in: |
(unknown) |
Overview
Details on a service within a cluster
Returned by:
Instance Attribute Summary collapse
-
#cluster_arn ⇒ String
The Amazon Resource Name (ARN) of the cluster that hosts the service.
-
#created_at ⇒ Time
The Unix time in seconds and milliseconds when the service was created.
-
#deployment_configuration ⇒ Types::DeploymentConfiguration
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
-
#deployments ⇒ Array<Types::Deployment>
The current state of deployments for the service.
-
#desired_count ⇒ Integer
The desired number of instantiations of the task definition to keep running on the service.
-
#events ⇒ Array<Types::ServiceEvent>
The event stream for your service.
-
#load_balancers ⇒ Array<Types::LoadBalancer>
A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
-
#pending_count ⇒ Integer
The number of tasks in the cluster that are in the
PENDING
state. -
#role_arn ⇒ String
The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with a load balancer.
-
#running_count ⇒ Integer
The number of tasks in the cluster that are in the
RUNNING
state. -
#service_arn ⇒ String
The Amazon Resource Name (ARN) that identifies the service.
-
#service_name ⇒ String
The name of your service.
-
#status ⇒ String
The status of the service.
-
#task_definition ⇒ String
The task definition to use for tasks in the service.
Instance Attribute Details
#cluster_arn ⇒ String
The Amazon Resource Name (ARN) of the cluster that hosts the service.
#created_at ⇒ Time
The Unix time in seconds and milliseconds when the service was created.
#deployment_configuration ⇒ Types::DeploymentConfiguration
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
#deployments ⇒ Array<Types::Deployment>
The current state of deployments for the service.
#desired_count ⇒ Integer
The desired number of instantiations of the task definition to keep running on the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.
#events ⇒ Array<Types::ServiceEvent>
The event stream for your service. A maximum of 100 of the latest events are displayed.
#load_balancers ⇒ Array<Types::LoadBalancer>
A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
#pending_count ⇒ Integer
The number of tasks in the cluster that are in the PENDING
state.
#role_arn ⇒ String
The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with a load balancer.
#running_count ⇒ Integer
The number of tasks in the cluster that are in the RUNNING
state.
#service_arn ⇒ String
The Amazon Resource Name (ARN) that identifies the service. The ARN
contains the arn:aws:ecs
namespace, followed by the region of the
service, the AWS account ID of the service owner, the service
namespace, and then the service name. For example,
arn:aws:ecs:region:012345678910:service/my-service
.
#service_name ⇒ String
The name of your service. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a region or across multiple regions.
#status ⇒ String
The status of the service. The valid values are ACTIVE
, DRAINING
, or
INACTIVE
.
#task_definition ⇒ String
The task definition to use for tasks in the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.


{% load drop_images %}
Title ad dropdown comes from a ModelForm for a custom Gallery. In real production you'll keep the select hidden.


File: ../store/addon/-private/ts-interfaces/identifier.ts
/** @module @ember-data/store */ import { symbol } from '../ts-interfaces/utils/symbol'; // provided for additional debuggability export const DEBUG_CLIENT_ORIGINATED: unique symbol = symbol('record-originated-on-client'); export const DEBUG_IDENTIFIER_BUCKET: unique symbol = symbol('identifier-bucket'); export interface Identifier { lid: string; clientId?: string; } /** * An Identifier specific to a record which may or may not * be present in the cache. * * The absence of an `id` DOES NOT indicate that this * Identifier is for a new client-created record as it * may also indicate that it was generated for a secondary * index and the primary `id` index is not yet known. */ export interface RecordIdentifier extends Identifier { id: string | null; type: string; } /** * Used when an Identifier is known to be the stable version * * @internal */ export interface StableIdentifier extends Identifier { [DEBUG_IDENTIFIER_BUCKET]?: string; } /** * Used when a RecordIdentifier is known to be the stable version * * @internal */ export interface StableRecordIdentifier extends StableIdentifier { id: string | null; type: string; [DEBUG_CLIENT_ORIGINATED]?: boolean; } /** A method which can expect to receive various data as its first argument and the name of a bucket as its second argument. Currently the second argument will always be `record` data should conform to a `json-api` `Resource` interface, but will be the normalized json data for a single resource that has been given to the store. The method must return a unique (to at-least the given bucket) string identifier for the given data as a string to be used as the `lid` of an `Identifier` token. This method will only be called by either `getOrCreateRecordIdentifier` or `createIdentifierForNewRecord` when an identifier for the supplied data is not already known via `lid` or `type + id` combo and one needs to be generated or retrieved from a proprietary cache. `data` will be the same data argument provided to `getOrCreateRecordIdentifier` and in the `createIdentifierForNewRecord` case will be an object with only `type` as a key. */ export type GenerationMethod = (data: Object, bucket: string) => string; /* A method which can expect to receive an existing `Identifier` alongside some new data to consider as a second argument. This is an opportunity for secondary lookup tables and caches associated with the identifier to be amended. This method is called everytime `updateRecordIdentifier` is called and with the same arguments. It provides the opportunity to update secondary lookup tables for existing identifiers. It will always be called after an identifier created with `createIdentifierForNewRecord` has been committed, or after an update to the `record` a `RecordIdentifier` is assigned to has been committed. Committed here meaning that the server has acknowledged the update (for instance after a call to `.save()`) If `id` has not previously existed, it will be assigned to the `Identifier` prior to this `UpdateMethod` being called; however, calls to the parent method `updateRecordIdentifier` that attempt to change the `id` or calling update without providing an `id` when one is missing will throw an error. */ export type UpdateMethod = (identifier: StableIdentifier, newData: Object, bucket: string) => void; /* A method which can expect to receive an existing `Identifier` that should be eliminated from any secondary lookup tables or caches that the user has populated for it. */ export type ForgetMethod = (identifier: StableIdentifier, bucket: string) => void; /* A method which can expect to be called when the parent application is destroyed. If you have properly used a WeakMap to encapsulate the state of your customization to the application instance, you may not need to implement the `resetMethod`. */ export type ResetMethod = () => void;


The Department of Technology Promotion and Coordination
University of Computer Studies
Second Year (B.C.Sc/B.C.Teach)
Final Examination
Computer Application Techniques II(CS-205)
September, 2017
Zone III
- Answer the following questions.(10 marks)
- Write JavaScript statements that add the "click" event handler fot the given button using the DOM level 0 methods. When user clicks this button, an alert pops up to say "YOU CLICKD ME!".
<-----Enter Photo------>
- Write the output of follwig JavaScrip Statements.
<----Enter Photo------>
- Write JavaScript statements that stop the flow of an event throuh DOM structure immediately, canceling any futher event capturing or bubbling befor it occurs. (Use DOM event object of the button click event. Button's id is myBrn.)
- Write JavaScript statements that prevent the default behavior of following text link by suing Internet Explorer event object.
<----Enter photo----->
- Write JavaScript statements and html code for following.(15 marks)
- Create an HTML page with a form and a text box. Add event handlers to text box in the form. When user sets focus the input field (text box of FORM), a function is triggered which change the background color of text box to yellow. When user leaves the input field, a function is triggeered which change the background color of text box to default. Use Dom Level 2 event method. (Don't use EventUtil.js file)
- Write JavaScript statements that will load the external JavaScript file (example.js) when loading the window. When the file has been loaded, displays an alert "Loaded!" Assume that "example.js" file has already existed in your folder.
- Create an external JavaScript file EventUtil.js with EventUtil object for Cross-Browser way. This object includes following methods.
-addHandler() method: to use the DOM levl 0 approach, the DOM levl 2 approach, or the Internet Explore approach to adding elements, depending on which is available.
-removeHandler() method: to remove a previously added event Handler.
-
- Create an html page that has a division with given style (style = "background-color:#D94A38; width:120px; height:20px; padding:40px;) and text "Mouse Over Me". Create a function to handle 3 event: first, change the background color of target with "blue" when user clicks on it; second, change the text of target with "Thank You!" when the mouse is moved over it; third, change the target with original text and color when the mouse is moved away from it. Assign these three events into the division mentioned above.(7 Marks)
- Create an html page with following design. When user clicks the "Store" button, user entered information in text boxes is stored in localStorage. When user clicks the "Display" button, displays the informaton in the alert box as shown below. Use a desired Event Handler Method.(8 Marks)
<------Enter Photo------->
- Create an html page with following. Use EventUtil.js file.(10 marks)
-Create and call an anonymous function that test to see if the browser supports the "email" input type. If the browser supports the email input type, display the text "Your browser supports the email input type" in the document. Otherwise, display the text "Your browser does not support the email input type."
-Create a form with a text box and three buttons. The email text box must have a value of email.
-When user submit the valid form, pops up an alert with "Form submitted".
-Add a click event handler to "Check Validity" button that pops up an alert with return value of checkValidity() method of element.
-Add a clidk event handler to "Will Validate?" button that pops up an alert with the value of willValidate property of element.
<------Enter photo----->
- Fill in the blanks.(5 marks)
(a). Virtual reality systems and ___________ visualization which have special interaction and display devices.
(b).More details of windowing system used to build the _________ interface.
(c).Almost all interaction design includes some form of iterations of _________.
(d).There are five major senses: _________, hearing, touch, taste and smell.
(e). A _________ interactive system is a system that relies on the use of multiple human communication channels.
- Choose the correct answer of the following:(10 Marks)
- A person can react to an auditory signal in approximately:
(a).150ms (b).200ms (c).250ms (d).700ms
- The design rules with high generality and low authority are
(a).principles (b).guidelines (c).standards (d).patterns
- Which techinques do not use in knowledge representation for adaptive help system?
(a).Rule-based (b).Model-based (c).Frame-based (d).scrollbar
- A small picture used to represent a closed window is called an
(a).radio buttons (b).chech boxes (c).icon (d).scrollbar
- _________ of the user-system dialog allows for interaction to support more than one task as a time.
(a).Multi-threading (b).Concurrent multi-treading (c).Interleaved multi-threading (d)None of the above
- The results of ovservation and interview need to be ordered in some way to bring out key issues and communicate with later stages of design.
(a).Requirements (b)Analysis (c)Design (d)Iteration and prototyping
- Which of a design demonstrates the customer's requirements satisfaction within the various activities?
(a).validation (b).specification (c).operation (d).integration
- Combine different motivies to build up a specific action is.
(a).Earcons (b).Compound earcons (c).Family earcons (d).All of the above
- The question that ask the user to provide his own unprompted opinion on a question is called
(a)General (b)Open-ended (c)Scalar (d)Ranked
- A single computer could support multiple users, this is the concept of
(a).paralled processing (b).time sharing (c)load balancing (d)multi-threading
-
Answer the following short questions.
- Explain the deductive reasoning with example.(2 Marks)
- Distinguish between principles, guidelines and standares.(2 Marks)
- What is the heuristic evaluation?(2 Marks)
- What are the basic categories of the Smith and Mosier guidelines?(3 Marks)
- Briefly explain about issue-based information system.(3 Marks)
- What are the factors in the physical environment that directly affect the quality of the interaction and the user's performance?(3 Marks)
- Express three main categories of usability principles. And, explain summary of principles affecting flexibility.(5 Marks)
- Descibe four factors that can limit the speed of an nteractive system and explain any one factor.(5 marks)
- List the techniques that have been used in dialog modeling in UIMS and explain ANY ONE of them.(5 marks)
- Explain the two main types of query technique and list the number of styles of question in the questionnaire?(5 Marks)


Hello Dear, This mail might come to you as a surprise and the temptation to ignore it as unserious could come into your mind but please consider it a divine wish and accept it with a deep sense of humility. I am Mr. Usman Sankara, the manager in charge of Auditing department of Bank of Africa (B.O.A)Ouagadougou Burkina Faso in West Africa, with due respect and Regard, I have decided to contact you on a business transaction that will be very beneficial to both of us at the end of the transaction. During our investigation and auditing in this Bank, my department came across a very huge sum of money belonging to one of our deceased customer who died on July 30th 2002 of a ghastly motor accident and the fund has been dormant in his account with this bank without any claim of the fund in our Custody either from his family or relation before our discovery to this development. Although personally, I keep this information secret to enable the whole plans and idea be Profitable and successful during the time of execution, the said amount is Fifteen million three hundred thousand United States dollars(US$15.3m), as it may interest you to know, I got your impressive information on my search for a reliable partner, I contacted you to be my partner and person to be reliable and capable to champion a business of such magnitude without any problem. Meanwhile all the arrangement to put claim over this fund as the next of kin to the deceased, get the required approval and transfer this money to a foreign account has been put in Place and directives and needed information will be relayed to you as soon as you indicate your interest and willingness to assist me and also benefit your self to this great business opportunity, In fact I could have done this deal alone but because of my position in this country as a civil servant and we are not allowed to operate a foreign account and would eventually raise eye brow on my side during the time of transfer because I work in this bank. This is the actual reason why it will require a second party or fellow who will forward claims as the next of kin with affidavit of trust of oath to the bank and also present a foreign account where he will need the money to be re-transferred into on his request as it may be after due verification and clarification by the correspondent branch of the bank where the whole money will be remitted from to your own designation bank account. I will not fail to inform you that this transaction is 100% risk free, on smooth conclusion of this transaction, you will be entitled to 30% of the total sum as gratification, while 5% will be set aside to take care of expenses that may arise during the time of transfer, while 65% will be for me, please you have been advised to keep "Top Secret" as I am still in service and intend to retire from service after we conclude this deal with you. I will be monitoring the whole situation here in this bank Until you confirm the money in your account, and ask us to come down to your country for subsequent sharing of the fund according to percentages previously indicated and further Investment, either in your country or any country you advice us to invest in and all other necessary vital information will be send to you when I hear from you. I suggest you get back to me As soon as possible and also include your personal phone/mobile and fax numbers for easy communication. Yours faithfully, Mr. Usman Sankara The manager in charge of Auditing department of Bank of Africa (B.O.A) Ouagadougou Burkina Faso. _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/


Spy or Not?
Score -
Native correctly identified:
Native incorectly rejected:
The fuzzy middle:
The fuzzy middle:
Non-native correctly rejected:
Non-native incorrectly accepted:
Not from
From
Loading...


Trikatuka
Spotify migration tool
{{user1.data.display_name || user1.data.id}}
sign in
sign out
Old user
New user
{{user2.data.display_name || user2.data.id}}
sign in
sign out
If you found it useful
you can buy me a beer
| Trikatuka v2.5 by
akn


Created by Jason Sich / @jasich
// Install the express generator
$ npm install -g express-generator
// Create a new express app that uses Less & Jade!
$ express helloGrNodeDev
$ cd ./helloGrNodeDev
// Install dependencies for express
$ npm install
// Run it!
$ npm start
...
Express server listening on port 3000
While running the express generator I had 2 issues that I had to fix before being able to load the main page.
There are a ton of modules out there, but not all of them get updated in a timely manner.
When dependencies break your app it can be painful to fix.
public => Static directory to serve up files from - images - javascripts - stylesheets routes => Define your routing here views => Contains html views app.js => Express server package.json => Normal npm pacakge file
This structure can be modified to suit your needs. Express does not force any conventions on you.
var express = require('express');
var app = express();
app.get('/hello', function(req, res){
res.send('Hello World');
});
var server = app.listen(3000, function() {
console.log('Listening on port %d', server.address().port);
});
var path = require('path');
// Serve static files directly from the 'public' directory
app.use(express.static(path.join(__dirname, 'public')));
// Sets the location of our template files for views
// This is where all the jade templates go
app.set('views', path.join(__dirname, 'views'));
// Sets the view engine to 'jade' because we're so Emo
app.set('view engine', 'jade');
// For HTTP GET requests serve up the index view
// Set the title to 'Express'
app.get('/', function(req, res){
res.render('index', { title: 'Express' });
});
var express = require('express'),
path = require('path');
var app = express();
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(express.static(path.join(__dirname, 'public')));
app.get('/', function(req, res){
res.render('index', { title: 'Express' });
});
app.listen(3000, function() {
console.log('Listening on port %d', server.address().port);
});
// index.jade doctype html html head title= title link(rel='stylesheet', href='/stylesheets/style.css') body h1= title p Welcome to #{title}
Let's say we are using a front-end JS framework and need to serve up some data in JSON.
// Registers a handler for an HTTP GET request to '/animals'
app.get('/animals', function(req, res){
var animals = [
{ name: 'Shark Owl' },
{ name: 'Liger' },
{ name: 'Zebroid' }
];
// Just send the array as a response
res.send(animals);
});
.
app.use(express.bodyParser());
.
// Registers a handler for an HTTP POST request to '/animals'
app.post('/animals', function(req, res){
var newAnimal = req.body;
// let the know that things are cool
res.send(201, {success: true});
});
It registers middleware in your Express application. Middleware is additional functionality injected into request handling.
There is an order to middleware. If one piece of middleware services a request, the request is considered handled and the rest of the middleware is not used.
app.use(express.static(path.join(__dirname, 'public')));
app.use(function(req, res, next) {
if (!req.get('authorization')) {
res.Send(403, "Not Allowed Son, Better Luck Next Time");
} else {
next();
}
});


#include "_doctype.html"
How we intend/hope this project to proceed: SUBTITLE(1. Measure and Benchmark Existing API)
The random seed and N must be able to be specified to be able to repeat the exact same set in a subsequent invoke, but in general testing we must vary the seed in order to not exhaust the same hosts.
libcurl should most likely be built with c-ares support.
Use debug builds to be able to generated memory-trace logs to fully track and check amount of memory used per connection.
Compare the memory usage measurements with the amount of memory installed in the development machines so that we remain testing within the amount of available system RAM.
- Port the test program from phase 1 to the new API.
- Run measurements and benchmarks SUBTITLE(3. Implement HTTP pipelining support)
Make sure that:
To make benchmarks, identify high-latency high-bandwith servers that allow pipelining to get a feel for "optimal" performance boosts. #include "_footer.html"


 PLEASE MODIFY THE ORIGINAL SOURCE IN THE https://github.com/apache/incubator-skywalking-data-collect-protocol REPO source_repo: https://github.com/apache/incubator-skywalking-data-collect-protocol title: Apache SkyWalking description: Adapter to deliver metrics to Apache SkyWalking. location: https://istio.io/docs/reference/config/policy-and-telemetry/adapters/apache-skywalking.html layout: partner-component generator: protoc-gen-docs provider: Apache SkyWalking contact_email<EMAIL_ADDRESS>support_link: source_link: https://github.com/apache/incubator-skywalking latest_release_link: https://skywalking.apache.org/downloads/ helm_chart_link: istio_versions: "1.0.3, 1.0.4, 1.1.0, 1.1.1" supported_templates: metric logo_link: https://github.com/apache/incubator-skywalking-website/raw/master/docs/.vuepress/public/assets/logo.svg number_of_entries: 1 ---
The SkyWalking adapter uses the Istio bypass
adapter to collect metrics and make them available to
Apache SkyWalking. SkyWalking provides a topology map and metrics graph
to visualize the whole mesh.
This adapter supports the metric template.
Follow the official Apache Skywalking documentation for details on configuring the Istio bypass adapter.


|
Scintillator
v0.0.1 at 1b5c195
Documentation specific to the C++-based scinsynth
|
#include <Async.hpp>
Public Member Functions | |
| Async (std::shared_ptr< base::Archetypes > archetypes, std::shared_ptr< Compositor > compositor, std::shared_ptr< vk::Device > device) | |
| void | run (size_t numberOfWorkerThreads) |
| void | sync (std::function< void()> callback) |
| void | stop () |
| void | vgenLoadDirectory (fs::path path, std::function< void(int)> completion) |
| void | scinthDefLoadDirectory (fs::path path, std::function< void(int)> completion) |
| void | scinthDefLoadFile (fs::path path, std::function< void(int)> completion) |
| void | scinthDefParseString (std::string yaml, std::function< void(int)> completion) |
| void | sleepFor (int seconds, std::function< void()> completion) |
| void | readImageIntoNewBuffer (int bufferID, std::string filePath, int width, int height, std::function< void()> completion) |
Private Attributes | |
| std::shared_ptr< base::Archetypes > | m_archetypes |
| std::shared_ptr< Compositor > | m_compositor |
| std::shared_ptr< vk::Device > | m_device |
| std::atomic< bool > | m_quit |
| std::vector< std::thread > | m_workerThreads |
| std::thread | m_syncThread |
| std::mutex | m_jobQueueMutex |
| std::condition_variable | m_jobQueueCondition |
| std::deque< std::function< void()> > | m_jobQueue |
| std::condition_variable | m_activeWorkersCondition |
| size_t | m_numberOfActiveWorkers |
| std::mutex | m_syncCallbackMutex |
| std::condition_variable | m_syncActiveCondition |
| std::deque< std::function< void()> > | m_syncCallbacks |
| std::mutex | m_stagingMutex |
| std::unordered_set< size_t > | m_activeStaging |
| size_t | m_stagingSerial |
| std::condition_variable | m_activeStagingCondition |
Maintains a thread pool and provides facilities to run all async functions on those threads.
| void scin::comp::Async::readImageIntoNewBuffer | ( | int | bufferID, |
| std::string | filePath, | ||
| int | width, | ||
| int | height, | ||
| std::function< void()> | completion | ||
| ) |
Async read an image into a newly allocated image buffer.
| bufferID | The ID of the newly created buffer. Will clobber any existing buffer with this ID. |
| filePath | A path to the image file to decode. |
| width | The requested buffer width, can be -1 to respect original image width. |
| height | The requested buffer height, can be -1 to respect original image height. \completion The function to call on completion of loading. |
| void scin::comp::Async::run | ( | size_t | numberOfWorkerThreads | ) |
Nonblocking. Starts the worker threads and the sync thread, then returns.
| numberOfWorkerthreads | Number of worker threads to start. Should be > 0. |
| void scin::comp::Async::scinthDefLoadDirectory | ( | fs::path | path, |
| std::function< void(int)> | completion | ||
| ) |
| void scin::comp::Async::scinthDefLoadFile | ( | fs::path | path, |
| std::function< void(int)> | completion | ||
| ) |
Async load ScinthDefs from a file.
| path | The yaml file path to load ScinthDefs from. |
| completion | The function to call on completion of loading. The completion argument is the number of valid ScinthDefs loaded. |
| void scin::comp::Async::scinthDefParseString | ( | std::string | yaml, |
| std::function< void(int)> | completion | ||
| ) |
| void scin::comp::Async::sleepFor | ( | int | seconds, |
| std::function< void()> | completion | ||
| ) |
Puts on of the async worker threads to sleep for the provided number of seconds. Useful for testing.
| seconds | The number of seconds to sleep for. |
| void scin::comp::Async::stop | ( | ) |
Signals all threads to exit, even if there's work remaining in the queue.
| void scin::comp::Async::sync | ( | std::function< void()> | callback | ) |
Adds the callback to a queue to be called the next time all worker threads are idle and the job queue is empty.
| callback | A function to call when the Async jobs are complete. |
| void scin::comp::Async::vgenLoadDirectory | ( | fs::path | path, |
| std::function< void(int)> | completion | ||
| ) |
Async load all VGen yaml files at path.
| path | The file path to load VGen yaml data from. |
| completion | The function to call on completion of loading. The completion argument is the number of valid VGens loaded. |


Why You Should Read 'The God Delusion'
A preeminent scientist - and the world's most prominent atheist - asserts the irrationality of belief in God and the grievous harm religion has inflicted on society, from the Crusades to 9/11. With rigor and wit, Dawkins examines God in all his forms, from the sex-obsessed tyrant of the Old Testament to the more benign (but still illogical) Celestial Watchmaker favored by...
goodreads.com


This post is about how to use Kmeans to classify various market regimes or to use Kmeans to classify financial observations.
Financial markets have the tendency to change their behavior over time, which can create regimes, or periods of fairly persistent market conditions. Investors often look to discern the current market regime, looking out for any changes to it and how those might affect the individual components of their portfolio’s asset allocation. Modeling various market regimes can be an effective tool, as it can enable macro-economically aware investment decision-making and better management of tail risks.
With K-means we are trying to establish groups of data that are homegenous and distinctly different from other groups. The K- stands for the number of clusters we will create.
The concept of distance comes in when deciding if a data point belongs to a cluster. The most common way to measure distance is the Euclidean Distance .
With multivariate data set, it is important to normalize the data.
A usual rule of thumb is to set the number of clusters as the square root of the number of observation.
Using R
Load up packages and read data
library (readr) # load and read .csv file
library (glue) # concatenate strings together
library (dplyr) # the tidy plyr tool for data wrangling
library (tidyr) # to use the drop_na function
the_path <- here:: here ()
df <- read_csv (glue (the_path, "/raw_data/AMD.csv" )) |>
rename (adj_close = 'adjClose' ) |>
select (date, high, low, close, adj_close)
glimpse (df)
Rows: 5,611
Columns: 5
$ date <date> 2023-04-21, 2023-04-20, 2023-04-19, 2023-04-18, 2023-04-17,…
$ high <dbl> 89.8000, 91.5795, 90.5400, 92.1600, 90.6900, 92.9700, 93.160…
$ low <dbl> 88.0550, 88.7300, 88.2200, 89.3300, 88.3000, 90.5000, 91.830…
$ close <dbl> 88.43, 90.11, 89.94, 89.78, 89.87, 91.75, 92.09, 92.33, 94.0…
$ adj_close <dbl> 88.43, 90.11, 89.94, 89.78, 89.87, 91.75, 92.09, 92.33, 94.0…
Feature engineering
library (TTR) # The technical analysis package
yo <- aroon (df[, c ('high' , 'low' )], n = 23 )
df$ aroon <- yo[, 3 ]
yo <- CCI (df[, c ('high' , 'low' , 'close' )], n = 17 )
df$ cci <- yo
yo <- chaikinVolatility (df[, c ('high' , 'low' )], n = 13 )
df$ chaikinVol <- yo
df1 <- df |>
select (date, aroon, cci, chaikinVol, adj_close) |>
mutate (across (c (aroon, cci, chaikinVol), ~ as.numeric (scale (.)))) |>
drop_na ()
skimr:: skim (df1 %>% select (- date))
Data summary
Name
df1 %>% select(-date)
Number of rows
5586
Number of columns
4
_______________________
Column type frequency:
numeric
4
________________________
Group variables
None
Variable type: numeric
aroon
0
1
0.00
1.00
-1.49
-0.94
-0.19
0.90
1.65
▇▆▂▆▆
cci
0
1
0.00
1.00
-4.66
-0.78
-0.08
0.80
4.06
▁▂▇▅▁
chaikinVol
0
1
0.00
1.00
-2.49
-0.70
-0.10
0.59
4.37
▂▇▅▁▁
adj_close
0
1
22.27
28.78
1.62
5.45
11.48
23.12
161.91
▇▁▁▁▁
# also good to check for correlation between variables.
library (corrr)
df1 |> select (- date, - adj_close) |>
correlate () |>
rearrange () |>
shave ()
# A tibble: 3 × 4
term cci aroon chaikinVol
<chr> <dbl> <dbl> <dbl>
1 cci NA NA NA
2 aroon 0.564 NA NA
3 chaikinVol 0.212 0.223 NA
These 3 variables seem to complete each other well as little to-no correlation.
Create clusters
library (purrr) #use the map function
library (broom) #use the glance function on kmeans
df1sc <- df1 %>% select (- date, - adj_close)
kclusts <- tibble (k = 1 : 9 ) |>
mutate (kclust = map (k, ~ kmeans (df1sc, centers = .x, nstart = 30 , iter.max = 50L)),
glanced = map (kclust, glance),
augmented = map (kclust, augment, df1))
kclusts |> unnest (cols = c ('glanced' ))
# A tibble: 9 × 7
k kclust totss tot.withinss betweenss iter augmented
<int> <list> <dbl> <dbl> <dbl> <int> <list>
1 1 <kmeans> 16755. 16755. -3.27e-10 1 <tibble [5,586 × 6]>
2 2 <kmeans> 16755. 9842. 6.91e+ 3 1 <tibble [5,586 × 6]>
3 3 <kmeans> 16755. 7916. 8.84e+ 3 3 <tibble [5,586 × 6]>
4 4 <kmeans> 16755. 6425. 1.03e+ 4 4 <tibble [5,586 × 6]>
5 5 <kmeans> 16755. 5492. 1.13e+ 4 5 <tibble [5,586 × 6]>
6 6 <kmeans> 16755. 4626. 1.21e+ 4 5 <tibble [5,586 × 6]>
7 7 <kmeans> 16755. 4199. 1.26e+ 4 5 <tibble [5,586 × 6]>
8 8 <kmeans> 16755. 3791. 1.30e+ 4 6 <tibble [5,586 × 6]>
9 9 <kmeans> 16755. 3477. 1.33e+ 4 5 <tibble [5,586 × 6]>
There are several ways to choose the ideal number of clusters. One of them is the elbow method, another one is the Silhouette Method.
The tot.withinss is the total within-cluster sum of square. This is the value used for the eblow method.
For the Silhouette Method, we can use the cluster package.
avg_sil <- function (k) {
kmeans_object <- kmeans (df1sc, centers = k, iter.max = 50L)
silh = cluster:: silhouette (kmeans_object$ cluster, dist (df1sc))
mean (silh[, 3 ])
}
# Compute and plot wss for k = 2 to k = 15
yo <- tibble (k_values = 2 : 9 ) |>
mutate (avg_sil_values = map_dbl (k_values, avg_sil))
yo
# A tibble: 8 × 2
k_values avg_sil_values
<int> <dbl>
1 2 0.378
2 3 0.345
3 4 0.286
4 5 0.312
5 6 0.296
6 7 0.284
7 8 0.295
8 9 0.279
A more elegant way to do that, using this post from SO
yo <- kclusts |>
mutate (silhouetted = map (augmented, ~ cluster:: silhouette (as.numeric (levels (.x$ .cluster))[.x$ .cluster], dist (df1sc)))) |>
select (k, silhouetted) |> unnest (cols= c ('silhouetted' )) |>
group_by (k) %>%
summarise (avg_sil_values = mean (silhouetted[,3 ]))
yo
# A tibble: 9 × 2
k avg_sil_values
<int> <dbl>
1 1 NA
2 2 0.378
3 3 0.345
4 4 0.293
5 5 0.313
6 6 0.320
7 7 0.305
8 8 0.298
9 9 0.273
Some visualizations
Elbow method
library (ggplot2)
kclusts |>
unnest (cols = c ('glanced' )) |>
ggplot (aes (k, tot.withinss)) +
geom_line (alpha = 0.5 , size = 1.2 , color = 'midnightblue' ) +
geom_point (size = 2 , color = 'midnightblue' )
Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.
Based on the elbow method, I would be tempted to choose to 5 clusters (2 seems another obvious one).
Silhouette Method
yo |> ggplot (aes (k, avg_sil_values)) +
geom_line (alpha = 0.5 , size = 1.2 , color = 'midnightblue' ) +
geom_point (size = 2 , color = 'midnightblue' )
Warning: Removed 1 row containing missing values (`geom_line()`).
Warning: Removed 1 rows containing missing values (`geom_point()`).
2 is the winner ;-)
Plotting the stocks with clustered observations
library (lubridate)
yo <- kmeans (df1 |> select (- date, - adj_close), centers = 2 )
augment (yo, df1) |> filter (date >= today () - 500 ) |>
ggplot (aes (x = date, y = adj_close)) +
geom_line (alpha = 0.5 , color = 'midnightblue' ) +
geom_point (aes (color = .cluster)) +
theme (legend.position = 'none' )
yo <- kmeans (df1 |> select (- date, - adj_close), centers = 3 )
augment (yo, df1) |> filter (date >= today () - 500 ) |>
ggplot (aes (x = date, y = adj_close)) +
geom_line (alpha = 0.5 , color = 'midnightblue' ) +
geom_point (aes (color = .cluster)) +
theme (legend.position = 'none' )
yo <- kmeans (df1 |> select (- date, - adj_close), centers = 6 )
augment (yo, df1) |> filter (date >= today () - 500 ) |>
ggplot (aes (x = date, y = adj_close)) +
geom_line (alpha = 0.5 , color = 'midnightblue' ) +
geom_point (aes (color = .cluster)) +
theme (legend.position = 'none' )
Using python
Original blog post
import yfinance as yf #only to download data
data = yf.download("AMD" )
data.to_csv("../../raw_data/AMD.csv" )
import pandas as pd
py_df = pd.read_csv("../../raw_data/intc.csv" , names = ['date' , 'open' , 'high' , 'low' , 'close' , 'adj_close' , 'volume' ]).iloc[1 : , :]
py_df.tail()
py_df.info()
py_df.shape
py_df_melt = py_df.melt(id_vars = 'date' , value_vars = ['open' , 'high' , 'low' , 'close' ], value_name = 'prices' , var_name = 'price_point' )
py_df_melt.info()
py_df_melt.shape
Let’s graph the last year of data
import matplotlib.pyplot as plt
ta_df2 = ta_df.tail(250 ).copy()
ta_df2['adj_close' ] = py_df['adj_close' ]
ta_df2['date_time' ] = pd.to_datetime(ta_df2['date_time' ], utc= True )
ta_df2['adj_close' ] = pd.to_numeric(ta_df2['adj_close' ])
fig = plt.figure(figsize = (12 , 8 ))
gs = fig.add_gridspec(3 , hspace= 0 )
axs = gs.subplots(sharex= True )
#plt.figure(figsize = (12, 8))
axs[0 ].plot(ta_df2['date_time' ], ta_df2['adj_close' ])
axs[0 ].set_ylim(25 , 55 )
#axs[0].set_title('INTC price')
axs[1 ].plot(ta_df2['date_time' ], ta_df2['aaron' ], 'tab:green' )
axs[1 ].set_ylim(- 105 , 105 )
#axs[1].set_title('Aaron ind.')
axs[2 ].plot(ta_df2['date_time' ], ta_df2['ht' ], 'tab:red' )
axs[2 ].set_ylim(- 50 ,320 )
for ax in axs:
ax.label_outer()
plt.show()
from sklearn.metrics import silhouette_score
from sklearn.cluster import KMeans
inertia = []
sil_score = []
ta_df.pop('date_time' )
for n_clusters in range (2 , 14 ):
kmeans = KMeans(n_clusters = n_clusters, random_state= 0 )
preds = kmeans.fit_predict(ta_df)
inertia.append(kmeans.inertia_ / n_clusters)
sil_score.append(silhouette_score(ta_df, preds))
inertias = pd.DataFrame({n_clusters: range (2 , 14 ), "inertia" : inertia})
sil_scores = pd.DataFrame({n_clusters: range (2 , 14 ), "sil_score" : sil_score})
print (inertias)
print (sil_scores)


[1]
staying there will enjoy the 2 bathrooms , the bedroom and one off the living room .
[2]
lounge -lrb-/-lrb- if you have access -rrb-/-rrb- has a nice buffet breakfast in the a. m .


Preparation time
less than 30 mins
Cooking time
10 to 30 mins
Serves
Serves 4
Preheat the oven to 220C/430F/Gas 7.
For the kebabs, place all the kebab ingredients in a large bowl. Season generously with plenty of salt and freshly ground black pepper and mix together really well.
Divide the mixture into eight rough sausage shapes then put each onto a skewer, ensuring they are firmly wrapped around the skewers. Refrigerate until ready to use. In the meantime, prepare the flatbreads and dressing.
When you're ready, heat a large frying pan or flat griddle until smoking hot and cook the kebabs for 4-5 minutes or until cooked through.
For the flatbreads, place the flour in a bowl and mix in the sugar, salt, oregano and chilli flakes.
Make a well in the centre of the flour mix and pour in the dried yeast. Add enough of the tepid water to form a rough dough.
Drizzle the olive oil over the dough and knead for about ten minutes.
Place the flatbreads on lightly greased baking trays that have been pre-heated in the oven. Prick all over really well then place in the oven and cook for three minutes on each side.
For the dressing, place all the dressing ingredients into a blender and blend to form a smooth paste.
To serve, lay a flatbread on a serving plate with a couple of kebabs on top, drizzle with the dressing and garnish with some of the lemon-soaked onions and fresh mint leaves.


Setup
Once again we need to create a work file. This will be a file that will act as our file to be encrypted while we create the macro.
1. Close files you already have open (if any) then use File/New to open the New File dialog.
2. In the New File dialog select the "Fill with: Hex" option and enter "00" for the hex value.
3. Select the "Size: Specified" option and enter "1000" for the size.
4. Make sure the "Prompt for disk file name" check box is off and click OK.
5. Make sure the file is not read-only (ie, in RW mode) and is also in OVR mode.
6. Use the Tools/Calculator menu item to display the calculator.
Now we will record the macro. The first thing this macro will do is display a message to the user telling him/her what it does and how it should be used. This should tell the user that no other files should be open.
7. Use Tools/Record to start macro recording, and check that the "REC" status is on.
8. Select Tools/Macro Message command to open the Message dialog.
9. Enter a message describing what the macro does and any requirements.
In particular, you need to mention that the file to be encrypted must be the only file open and that it must be writeable and in OVR mode. Also remind the user that the original contents of the file will be overwritten and that they will need to save the contents of the generated random file in order to decrypt the file again
Pressing the Enter key will close the dialog. To add a new-line to the message press Ctrl+Enter.
Figure 4.1 The Macro Message dialog.
Next we get the file length of the open file and create a new file of the same length filled with random bytes.
10. In the calculator click the "C" (clear) button and set "Bits:" to 64 bit mode.
11. Then click the EOF button to load the length of the file (1000 or 3E8h) into it.
12. Then click the "=" button (below the "3" button) in the calculator.
Calculator operations are only stored in keystroke macros when an operation is performed, not when a value is simply entered or loaded. Unless you click the "=" button the macro will not remember to load the file length into the calculator.
13. Use File/New to open the New File dialog.
14. Select "Size: Take size from Calculator" and "Fill with: Random". Leave "0-255" in the random byte range.
Figure 4.2 Creating the random file.
15. Click OK to create the random file.
16. Use Window/Next Window to move back to the original file.
Now we just call the nested macro.
17. Open the Replay Macro dialog by pressing F9 (or using the Tools/Play command).
18. Select the nested macro (_XOR_nested_macro) from the list and click OK.
The macro may take a while to run and then displays the message "error encountered in macro execution" which just indicates that it stopped trying to run when it reached the end of file.
In order to decrypt the file again the user needs to keep a copy of the random file.
19. Use Window/Next Window to move to the random file.
20. Use Tools/Macro Message to display this message: "Please save your random file.".
21. Use File/Save As... to allow the user to save the file. Enter a file name and click Save.
Use any temporary file name when saving during recording. This name will not be recorded in the macro; instead the user will have to enter a name when the macro runs.
22. A message is displayed about losing undo information when saving in a macro. Click OK.
Figure 4.3 Click OK to save the file.
Finally we ask the user if they want to overwrite the original file with the encrypted version.
23. Use Window/Next Window to move to the original (now encrypted) file.
24. Use Tools/Macro Message to display this message: "Do you want to save this encrypted file? Click Cancel if not!".
25. Use File/Save to save the file. Click OK to continue when warned about undo information.
26. Press F7 to turn off recording.
27. Close the two files since we have finished with them. You might also like to delete the copies saved to disk.
In the next step we will finish up.


|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RememberMeManager
A RememberMeManager is responsible for remembering a Subject's identity across that Subject's sessions with the application.
| Method Summary | |
|---|---|
void |
forgetIdentity(SubjectContext subjectContext)
Forgets any remembered identity corresponding to the subject context map being used to build a subject instance. |
PrincipalCollection |
getRememberedPrincipals(SubjectContext subjectContext)
Based on the specified subject context map being used to build a Subject instance, returns any previously remembered principals for the subject for automatic identity association (aka 'Remember Me'). |
void |
onFailedLogin(Subject subject,
AuthenticationToken token,
AuthenticationException ae)
Reacts to a failed authentication attempt, typically by forgetting any previously remembered principals for the Subject. |
void |
onLogout(Subject subject)
Reacts to a Subject logging out of the application, typically by forgetting any previously remembered principals for the Subject. |
void |
onSuccessfulLogin(Subject subject,
AuthenticationToken token,
AuthenticationInfo info)
Reacts to a successful authentication attempt, typically saving the principals to be retrieved ('remembered') for future system access. |
| Method Detail |
|---|
PrincipalCollection getRememberedPrincipals(SubjectContext subjectContext)
Subject.Builder
implementation.
See the SubjectFactory
class constants for Shiro's known map keys.
subjectContext
- the contextual data, usually provided by a Subject.Builder
implementation, that
is being used to construct a Subject
instance.
null
if none could be acquired.void forgetIdentity(SubjectContext subjectContext)
Subject.Builder
implementation.
See the SubjectFactory
class constants for Shiro's known map keys.
subjectContext
- the contextual data, usually provided by a Subject.Builder
implementation, that
is being used to construct a Subject
instance.void onSuccessfulLogin(Subject subject, AuthenticationToken token, AuthenticationInfo info)
subject
- the subject that executed a successful authentication attempttoken
- the authentication token submitted resulting in a successful authentication attemptinfo
- the authenticationInfo returned as a result of the successful authentication attemptvoid onFailedLogin(Subject subject, AuthenticationToken token, AuthenticationException ae)
subject
- the subject that executed the failed authentication attempttoken
- the authentication token submitted resulting in the failed authentication attemptae
- the authentication exception thrown as a result of the failed authentication attemptvoid onLogout(Subject subject)
subject
- the subject logging out.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Hello World!
Start Search
Search Next
Stop Search
below is an iframe, and we're on match
Start Search
Search Next
Stop Search
below is another iframe


>
This is part of the old website. New website begins at fontforge.github.io
Are you a web developer? Help us migrate this page on Github
You must insure that you have the both the X11 server and the Xcode toolchain installed on your system. This process is slightly different on OS/X 10.3 & 10.4
Continue
until you get to the pane "Custom Install
on "Macintosh HD""
Continue
You may also want to install the fink package which includes many useful libraries (see the dependencies section below for more info on this)
You must then start up a Terminal window (the Terminal Application also lives in the Utilities sub-folder of the Applications folder) and be prepared to type commands in that window (I know, it's very un-mac-like).
OS/X has evolved over time. Certain system calls have changed. The current source distribution should work on any 10.3+ system.
If you wish to build on a 10.2 system you must say
$ ./configure --with-regular-link
(Rather than just saying ./configure
)
You must download the cygwin environment. You will need
Caveat: cygwin has a different
approach to the file system than Windows. A filename like
C:\windows\fonts\arial.ttf
will be called
/cygdrive/c/windows/fonts/arial.ttf
under cygwin (backslashes
are replaced by slashes, and the initial drive "C:
" becomes
"/cygdrive/c
"
Having done that you should now be ready to build. Open a cygwin terminal window and be prepared to type commands in it.
There are two basic ways to obtain a source distribution. One is by downloading an entire source tree from the web, and the other is by using the git utility to maintain a source tree on your machine which will be as up to date as possible. The former solution provides more stability, the latter provides access to cutting edge bugs.
Sourceforge's file release system will contain a tarball (a file with the extension for .tar.bz2).
After you have downloaded one of these packages, either copy the tarball to where you are, or move to the directory containing the tarball (I can't provide explicit instructions here, because I don't know where your browser put the file) and type (do not type "$"):
$ bunzip2 fontforge*.tar.bz2 $ tar xf fontforge*.tar $ cd fontforge-*
git is another version control system. To set up your own (local, read-only) copy of the git repository (including documentation), create a new directory, cd into it and type the following (do not type "$", when it asks for a password, just hit return):
$ https://github.com/fontforge/fontforge.git
You can also browse the git repository online. Or read the git documentation.
The cvs repository is no longer up to date. It still exists (for now) for historical purposes (and in case something goes wrong with git) but it is no longer in active service and no commits have been made to it since 13-Feb-2011. You really want to use git, above.
cvs is a nifty set of utilities which allows concurrent access to a
source tree by many users. To set up your own (local) copy of the cvs tree
(including documentation), create a new directory, cd into it and type the
following (do not type "$", when it asks for a password, just hit
return):
$ cvs -d:pserver:anonymous@fontforge.cvs.sourceforge.net:/cvsroot/fontforge login CVS password: $ cvs -d:pserver:anonymous@fontforge.cvs.sourceforge.net:/cvsroot/fontforge checkout fontforge $ cd fontforge
Once you have established a directory you may update it to obtain the
most recent version of the source by typing:
$ cd fontforge $ cvs -d:pserver:anonymous@fontforge.cvs.sourceforge.net:/cvsroot/fontforge login CVS password: $ cvs -d:pserver:anonymous@fontforge.cvs.sourceforge.net:/cvsroot/fontforge update
You can also
browse
the CVS tree online. Or see
sourceforge's description
for more information, or read the
CVS manual.
Now you have the source installed on your system and you should be positioned at the top directory of that tree. You need to configure your package (this is a little program that figures out how to use your system), and then build it (do not type the "$"):
$ ./configure $ make
Having done this you will probably want to install what you have built. This should be done as root:
$ su password: ****** # make install
On the mac the process is slightly different:
$ sudo make install password: ******
While on cygwin, where there is no root, you just say:
$ make install
The configure script allows you to turn off and on various features of fontforge that might not be appropriate for your system. Type
$ ./configure --help
for a complete list of options. Some of the most useful are described below.
If you don't want to install X11 on your system, you can use fontforge as a command line tool which can execute scripts to manipulate fonts. FontForge's scripting language is described in detail in the section on scripting, or the section on python scripting.
$ ./configure --without-x
FontForge generally uses floats to represent coordinates. If you need greater accuracy...
$ ./configure --enable-double
FontForge has a command which lets you tile a pattern along a path. Generally this is disabled as it isn't what most fonts will use, but for some decorative fonts it can be useful.
$ ./configure --enable-tilepath
If you want to write python scripts in normal python (as opposed to within the python embedded in fontforge)
$ ./configure --enable-pyextension
/usr/local
If you want to install fontforge in a different directory (say in /usr/bin)
$ ./configure --prefix=/usr
If you have a copy of the git repository on your system then you should be able to type
# make install_docs
Again you will probably need to be root to do this install too. Use either "su" or "sudo" as appropriate for your system (see above).
From time to time someone will report a bug or request a feature and I will reply by sending a patch which purports to fix the bug or implement the feature. But how do you use the patch file I sent?
patch is a standard unix utility (Try typing $ man patch, for more info) which will make changes to text files. I use it to modify the source files of FontForge.
So before you can apply the patch you must have the source code available to you. If you choose to download from the git repository, then, in all probability, the patch will already have been applied (so you don't need to do anything with it). But if you download one of my tarballs then you will need to apply the patch:
$ bunzip2 fontforge*.tar.bz2 $ tar xf fontforge*.tar $ cd fontforge-*/fontforge $ patch <foobar.patch $ cd .. $ ./configure $ make $ make install
FontForge tries to avoid hard dependencies. If a library is missing then fontforge will (in most cases, but not on cygwin) be able to continue to run, it will just lack whatever functionality the library provides. So if you don't need to import tiff images, you don't need libtiff. If you don't need to handle SVG fonts you don't need libxml2, etc.
If you want to do autotracing around character images you should also download either
None is required for the proper compilation/execution of FontForge, if the libraries are not present they will not be used. (If the machine on which your executable was build didn't have them, then you must not only install the libraries, but rebuild fontforge from source) If your machine doesn't have them and you want them they are available from:
--enable-extra-encodings
, as FontForge requires Shift-JIS.
| Some of FontForge's commands depend on you
compiling freetype with the byte code interpreter enabled. It
used to be disabled by default because of some
patents
granted to Apple. Now that they have expired, you no longer
need to worry about this, unless your setup happens to use an old
library version. Then you may enable the interpreter by setting
the appropriate macro in .../include/freetype/config/ftoption.h
before you build the library (see the README.UNX file on the top
level of the freetype distribution).
To enable the truetype debugger, FontForge needs to have the freetype source directories available when it is built (there are some include files there which it depends on) |
If you want to edit CID keyed fonts you need these character set descriptions. (These were last updated 22-Dec-2004)
Once upon a time, fontforge only used X11 bitmap fonts, on most systems in now uses fontconfig.
There seem plenty of good unicode outline fonts, so I shan't provide any suggestions. To install them you simply create a subdirectory called .fonts in your home directory, and then copy the font file into that subdirectory.
Warning for mac users: pango uses opentype to layout complex scripts. Most fonts on the macintosh are in a different format -- glyphs from them will display fine (so they work for latin, greek cyrillic, japanese, chinese, etc.) but more complex features will probably not work (so Arabic and Indic scripts may not be displayed properly).
In the old days there weren't many bitmap fonts with good unicode coverage so I provided a list of suggested fonts. That's not nearly as important now.
To install these, put them in a directory, and in that directory type:
$ mkfontdir $ xset fp+ `pwd`
You should make sure that the xset line happens whenever X is started on your machine (put it in your .xsession file).
The complete fontforge manual is available online.
See the general comments on the git repository to
see how to access this.
See the section on installing git
documentation to see how to install the docs from the git tree
Once you have downloaded the documentation tarball as described above, you should move to the directory containing it, and type:
$ su password: ****** # mkdir -p /usr/local/share/doc/fontforge # mv fontforge_htdocs*.tar.bz2 /usr/local/share/doc/fontforge # cd /usr/local/share/doc/fontforge # tar xfj fontforge_htdocs*.tar.bz2 # rm fontforge_htdocs*.tar.bz2
After doing this fontforge will be able to find the docs on your system when you press the [F1] (or [Help]) key. If you don't do this fontforge will attempt to find documentation online.
(on some strict unix systems you may need to do the following instead)
$ su password: ****** # mkdir -p /usr/local/share/doc/fontforge # mv fontforge_htdocs*.tar.bz2 /usr/local/share/doc/fontforge # cd /usr/local/share/doc/fontforge # bunzip2 fontforge_htdocs*.tar.bz2 # tar xf fontforge_htdocs*.tar # rm fontforge_htdocs*.tar


CNBackstageController Class Reference
| Inherits from | NSWindowController |
| Declared in | CNBackstageController.h |
Overview
The use of CNBackstageController
is quite simple and straight forward. Normally with CNBackstageController
you create a
so called agent app. They do not appear in the Dock or the Force Quit window. To create an agent app a special property in your
Info.plist must be set. Its name is LSUIElement
and its value must be YES
.
And now just follow these steps:
- Open Xcode and create a new Cocoa Application project.
 One will be our backstage controller, the other one will be our
NSViewController
from step 3.@property (strong) CNBackstageController *backstageController; // your backstage controller @property (strong) CNApplicationViewController *appController; // your application view controller
Now you create instances for these two properties:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { [...] self.appController = [[CNApplicationViewController alloc] initWithNibName:@"CNApplicationView" bundle:nil]; self.backstageController = [CNBackstageController sharedInstance]; self.backstageController.applicationViewController = self.appController; }
After these five steps you will have a fully functional backstage controller. Play around with all the other properties and
see the results. You may also take a look at the Example project.
Related Sample Code
Tasks
Backstage Controller Creation
-
+ sharedInstance
Returns the singleton instance of
CNBackstageController
. -
applicationViewController
An instance of
propertyNSViewController
that contains your application view. -
delegate
Property for getting and setting the receivers delegate.
property
Animation, Effects & Sizing
-
toggleEdge
The edge where the view of
propertyapplicationWindow
should appear. -
toggleSize
Property that defines the toggle width and height the view of applicationViewController should appear on activation.
property -
toggleSizeMin
Property that defines the minimum size the applicationView can be resized to.
property -
toggleDisplay
Specifies the display to show the
propertyapplicationView
on. -
toggleVisualEffect
Specifies the visual effects, while the display is toggling.
property -
toggleAnimationEffect
Specifies the animation effects, while the display is toggling.
property -
resizingAllowed
Boolean property that indicates whether the user can resize the coverage of the applicationView or not.
property
Managing the Layout
-
backgroundColor
Property to set the background color of the applicationView.
property -
overlayAlpha
Property that gets and/or sets the opacity value of the screen snapshot overlays.
property -
shouldUseShadows
Boolean property to control the drawing of shadows on applicationView.
property -
shadowIntensity
Specifies the intensity of the aplicationView’s shadow drawing.
property
API
-
– toggleViewState
Changes the current view state of applicationView, dependent on the currentViewState.
-
– expand
Shows
CNBackstageController
s applicationView. -
– collapse
Hides
CNBackstageController
s applicationView. -
– currentViewState
Returns the current view state of applicationView.
Properties
applicationViewController
An instance of NSViewController
that contains your application view.
@property (strong, nonatomic) NSViewController<CNBackstageDelegate> *applicationViewController
Discussion
The applicationViewController can be any derivate of NSWindowController
. CNBackstageController
will handle its view as your application view.
When you set this property CNBackstageController
will automatically set its delegate to the applicationViewController. Later you can overwrite the delegate dependent on your needs.
Declared In
CNBackstageController.h
backgroundColor
Property to set the background color of the applicationView.
@property (strong, nonatomic) NSColor *backgroundColor
Discussion
The value of this property will be assigned to backgroundColor property of the enclosing window.
The default value is [NSColor darkGrayColor]
.
Declared In
CNBackstageController.h
delegate
Property for getting and setting the receivers delegate.
@property (strong) id<CNBackstageDelegate> delegate
Return Value
The receivers delegate.
Declared In
CNBackstageController.h
overlayAlpha
Property that gets and/or sets the opacity value of the screen snapshot overlays.
@property (assign) CGFloat overlayAlpha
Parameters
- overlayAlpha
Any valid value in the range between
0
and1
.
Discussion
The default value is 0.75f
.
Declared In
CNBackstageController.h
resizingAllowed
Boolean property that indicates whether the user can resize the coverage of the applicationView or not.
@property (assign, getter=isResizingAllowed) BOOL resizingAllowed
Parameters
- YES
The user can resize the applicationView by dragging its coverage.
- NO
Resizing of the applicationView is disabled.
Discussion
The default value is YES
.
Declared In
CNBackstageController.h
shadowIntensity
Specifies the intensity of the aplicationView’s shadow drawing.
@property (assign) CNShadowIntensity shadowIntensity
Discussion
There are just three constant values available. These values are defined as follows:
typedef enum {
CNShadowIntensityNormal = 0,
CNShadowIntensityLighter,
CNShadowIntensityDarker
} CNShadowIntensity;
CNShadowIntensityNormal
is defined as [NSColor colorWithCalibratedWhite:0.000 alpha:0.550]
.
CNShadowIntensityLighter
is defined as [NSColor colorWithCalibratedWhite:0.000 alpha:0.350]
.
CNShadowIntensityDarker
is defined as [NSColor colorWithCalibratedWhite:0.000 alpha:0.750]
.
Declared In
CNBackstageController.h
shouldUseShadows
Boolean property to control the drawing of shadows on applicationView.
@property (assign) BOOL shouldUseShadows
Parameters
- YES
Shadows will be drawn on top of the applicationView.
- NO
No shadows will be drawn.
Discussion
The default value is YES
.
Declared In
CNBackstageController.h
toggleAnimationEffect
Specifies the animation effects, while the display is toggling.
@property (assign) CNToggleAnimationEffect toggleAnimationEffect
Discussion
Each time if the applicationView
is shown, the animation can make use of different effects while toggling. The supported
effects are specified in CNToggleAnimationEffect
.
typedef enum {
CNToggleAnimationEffectStatic = 0,
CNToggleAnimationEffectFade,
CNToggleAnimationEffectSlide
} CNToggleAnimationEffect;
CNToggleAnimationEffectStatic
While the controller is toggling, the content of the application view keep staying on its place.
CNToggleAnimationEffectApplicationContentFade
While the controller is toggling, the content of the application view will be fade in.
CNToggleAnimationEffectApplicationContentSlide
While the controller is toggling, the content of the application view will be slide in.
The default value is CNToggleAnimationEffectStatic
.
Declared In
CNBackstageController.h
toggleDisplay
Specifies the display to show the applicationView
on.
@property (assign) CNToggleDisplay toggleDisplay
Discussion
The max. number of displays CNBackstageController
currently supports is 16. This number is defined by the constant kCNMaxNumberOfSupportedDisplays
.
For a quick and easy usage there are four constants representing the first 4 displays (0 to 3):
typedef enum {
CNToggleDisplayMain = 0, // Main Display means where the system statusbar is placed
CNToggleDisplaySecond,
CNToggleDisplayThird,
CNToggleDisplayFourth
} CNToggleDisplay;
CNToggleDisplayMain
The default value. Main display means that display where the system statusbar is placed.
%note%
Note: These are just constants for four displays. You may of course own more than four displays, andCNBackstageController
will provide them all!
Declared In
CNBackstageController.h
toggleEdge
The edge where the view of applicationWindow
should appear.
@property (assign, nonatomic) CNToggleEdge toggleEdge
Discussion
This property is controlled by one of four possible values:
typedef enum {
CNToggleEdgeTop = 0,
CNToggleEdgeBottom,
CNToggleEdgeLeft,
CNToggleEdgeRight,
CNToggleEdgeSplitHorizontal,
CNToggleEdgeSplitVertical
} CNToggleEdge;
CNToggleEdgeTop
The applicationView will appear from the top side of the screen that was selected by the property toggleDisplay
.
This is the default value.
CNToggleEdgeBottom
The applicationView will appear from the bottom side of the screen that was selected by the property toggleDisplay
.
CNToggleEdgeLeft
The applicationView will appear from the left side of the screen that was selected by the property toggleDisplay
.
CNToggleEdgeRight
The applicationView will appear from the right side of the screen that was selected by the property toggleDisplay
.
CNToggleEdgeSplitHorizontal
The aplicationView will appear in the horizontal middle of the screen. The overlaid screen content will be splitted into a left and a right half that slides apart.
CNToggleEdgeSplitVertical
The aplicationView will appear in the vertical middle of the screen. The overlaid screen content will be splitted into a top and a bottom half that slides apart.
Declared In
CNBackstageController.h
toggleSize
Property that defines the toggle width and height the view of applicationViewController should appear on activation.
@property (assign, nonatomic) CNToggleSize toggleSize
Discussion
To set its value you should make use of the convenience function CNMakeToggleSize(NSUInteger aWidth, NSUInteger aHeight)
.
The CNToggleSize data type
typedef struct {
NSUInteger width;
NSUInteger height;
} CNToggleSize;
To set the width and height attributes of toggleSize you can use any value that is in the range of your displays resolution. These are absolute values.
Furthermore you can choose between five constants to set relative values for toggleSize.width
and toggleSize.height
. Dependent on your display size the absolute values related to these constants are calculated in real time.
The predfined CNToggleSize constants to set relative values
enum {
CNToggleSizeHalfScreen = 0,
CNToggleSizeQuarterScreen,
CNToggleSizeThreeQuarterScreen,
CNToggleSizeOneThirdScreen,
CNToggleSizeTwoThirdsScreen
};
So, the usage of that convenience function may look different, because it’s allowed to mix absolute and relative values.
Examples for the use of CNMakeToggleSize()
CNBackstageController *myController = [CNBackstageController sharedInstance];
// by setting toggleEdge to CNToggleEdgeTop just toggleSize.height with the
// value of 300 pixel is relevant
myController.toggleEdge = CNToggleEdgeTop;
myController.toggleSize = CNMakeToggleSize(650, 300);
//
myController.toggleEdge = CNToggleEdgeRight;
myController.toggleSize = CNMakeToggleSize(450, CNToggleSizeQuarterScreen);
//
myController.toggleSize = CNMakeToggleSize(CNToggleSizeHalfScreen, CNToggleSizeOneThirdScreen);
What will happen on these three examples? So, let me explain a bit more.
First example
It will set the toggleSize.width
to 650 pixel and the toggleSize.height
to 300 pixel. Width and height are used related to the value of the toggleEdge property. The toggleSize.width
attribute finds use if toggleEdge has the value CNToggleEdgeLeft
, CNToggleEdgeRight
or CNToggleEdgeSplitHorizontal
. The toggleSize.height
attribute will be used if toggleEdge has the value CNToggleEdgeTop
, CNToggleEdgeBottom
or CNToggleEdgeSplitVertical
.
Second example
It uses an absolute value of 450 pixel for toggleSize.width
and a relative value of CNToggleSizeQuarterScreen
for toggleSize.height
. That relative value will be automatically converted to an absolute pixel value in the moment the applicationView will appear.
Third example
It use relative values for both, toggleSize.width
and toggleSize.height
. Both relative values will be automatically converted to an absolute pixel value in the moment the applicationView will appear.
Constant description
CNToggleSizeHalfScreen
The applicationView will appear using the half screen width or height (depending on the value given in toggleEdge
).
CNToggleSizeQuarterScreen
The applicationView will appear using the quarter screen width or height (depending on the value given in toggleEdge
).
CNToggleSizeThreeQuarterScreen
The applicationView will appear using three quarter of a screen (height or width, depending on the value given in toggleEdge
).
CNToggleSizeOneThirdScreen
The applicationView will appear using one third of a screen (height or width, depending on the value given in toggleEdge
).
CNToggleSizeTwoThirdsScreen
The applicationView will appear using two thirds of a screen (height or width, depending on the value given in toggleEdge
).
Default value
The default value of toggleSize is CNMakeToggleSize(CNToggleSizeQuarterScreen, CNToggleSizeQuarterScreen)
.
Declared In
CNBackstageController.h
toggleSizeMin
Property that defines the minimum size the applicationView can be resized to.
@property (assign) NSSize toggleSizeMin
Discussion
Dependend on the current toggleEdge the width attribute (CNToggleEdgeLeft
, CNToggleEdgeRight
or CNToggleEdgeSplitHorizontal
)
or the height attribute (CNToggleEdgeTop
, CNToggleEdgeBottom
or CNToggleEdgeSplitVertical
) will be used.
The default value is NSMakeSize(200.0f, 120.0f)
.
Declared In
CNBackstageController.h
toggleVisualEffect
Specifies the visual effects, while the display is toggling.
@property (assign) CNToggleAnimationEffect toggleVisualEffect
Discussion
On toggling the application view in and out you can use visual effects to focus the users attention more or less on its application view.
The supported effects are specified in CNToggleVisualEffect
. You can use multiple of these effects, combined using the C bitwise OR operator.
typedef enum {
CNToggleVisualEffectNone = 0,
CNToggleVisualEffectOverlayBlack = 1 << 0,
CNToggleVisualEffectGaussianBlur = 1 << 1
} CNToggleVisualEffect;
CNToggleVisualEffectNone
There is no visual effect over Finder snapshot area.
 Its alpha value can be manipulated using the
property overlayAlpha.
CNToggleVisualEffectGaussianBlur
Spreads pixels of the screen snapshot by a Gaussian distribution.
Default Value
CNToggleVisualEffectOverlayBlack
%warning%
Warning: Using theCNToggleAnimationEffectGaussianBlur
will decrease the animation performance!
See Also
Declared In
CNBackstageController.h
Instance Methods
collapse
Hides CNBackstageController
s applicationView.
- (void)collapse
Discussion
Changes the currentViewState to CNToggleStateCollapsed
.
Declared In
CNBackstageController.h
currentViewState
Returns the current view state of applicationView.
- (CNToggleState)currentViewState
Return Value
If the applicationView is visible the return value will be CNToggleStateExpanded
, otherwise CNToggleStateCollapsed
.
Declared In
CNBackstageController.h
expand
Shows CNBackstageController
s applicationView.
- (void)expand
Discussion
Changes the currentViewState to CNToggleStateExpanded
.
Declared In
CNBackstageController.h
toggleViewState
Changes the current view state of applicationView, dependent on the currentViewState.
- (void)toggleViewState
Discussion
If the currentViewState has the value CNToggleStateCollapsed
, then CNBackstageController
will open the applicationView.
Otherwise it will be closed.
Declared In
CNBackstageController.h


Well here it is, the big "soon" project - Call of Duty: Warzone has come to Sym.gg. While several Call of Duty games had been featured on the old symthic.com, Call of Duty now makes a triumphant return to Sym with a new page style and an abundance of data. Gunsmith-esque weapon builder, precise statistical breakdowns, and charts to the heart's content. Sym.gg now hosts the most accurate and in-depth Call of Duty: Warzone data available, and all for free!
This has been perhaps the largest undertaking so far by everyone here at Sym, though I'd particularly like to shout-out Robenter and new face, ExaltedVanguard. Robenter's continued expertise and continued efforts in bringing the data to life cannot be understated, so please send him your thanks should you spot him on Twitter or the Sym Discord. Then enter ExaltedVanguard, whose knowledge within the realm of Call of Duty gave this project the foundation it needed to get started. His understanding of the game and its inner-workings is what guarantees the site's peerless accuracy. A huge thanks to both these individuals, as none of this would have been possible without their hard work. There were many others that also contributed while developing and testing these pages, and their efforts are greatly appreciated.
Be sure to follow Sym.gg on Twitter, and until next time,
- Incarnate


Policy Improvement¶
DQN Update¶
Deep Q-Learning policy improvement.
-
class
wintermute.policy_improvement.dqn_update.
DQNPolicyImprovement
(estimator, optimizer, gamma, target_estimator=None, is_double=False, loss_fn='MSELoss')[source]¶ Bases:
object
Object doing the Deep Q-Learning Policy Improvement step.
As other objects in this library we override
__call__
. During a call as the one in the example below, several things happen:Put the batch on the same device as the estimator,
Compute DQN the loss,
Calls the callback if available (eg.: when doing prioritized experience replay),
Computes gradients and updates the estimator.
Example:
# construction policy_improvement = DQNPolicyImprovement( estimator, optim.Adam(estimator.parameters(), lr=0.25), gamma, ) # usage for step in range(train_steps): # sample the env and push transitions in experience replay batch = experience_replay.sample() policy_improvement(batch, cb=None) if step % target_update_freq == 0: policy_improvement.update_target_estimator()
- Parameters
estimator (nn.Module) – Q-Values estimator.
optimizer (nn.Optim) – PyTorch optimizer.
gamma (float) – Discount factor.
target_estimator (nn.Module, optional) – Defaults to None. This assumes we always want a target network, since it is a DQN update. Therefore if None, it will clone estimator. However if False the update rule will use the online network for computing targets.
is_double (bool, optional) – Defaults to False. Whether to use Double-DQN or not.
-
wintermute.policy_improvement.dqn_update.
get_dqn_loss
(batch, estimator, gamma, target_estimator=None, is_double=False, loss_fn=MSELoss())[source]¶ Computes the DQN loss or its Double-DQN variant.
- Parameters
batch (list) – The (states, actions, rewards, next_states, done_mask) batch.
estimator (nn.Module) – The online estimator.
gamma (float) – Discount factor γ.
target_estimator (nn.Module, optional) – Defaults to None. The target estimator. If None the target is computed using the online estimator.
is_double (bool, optional) – Defaults to False. If True it computes the Double-DQN loss using the target_estimator.
loss_fn (torch.nn.Loss) – Defaults to torch.nn.MSELoss. Custom loss function, eg.: torch.nn.SmoothL1Loss.
- Returns
A simple namespace containing the loss and its byproducts.
- Return type
-
class
wintermute.policy_improvement.dqn_update.
DQNLoss
[source]¶ Bases:
tuple
Object returned by
get_dqn_loss
.-
property
loss
¶ Alias for field number 0
-
property
q_targets
¶ Alias for field number 4
-
property
q_values
¶ Alias for field number 3
-
property
qsa
¶ Alias for field number 1
-
property
qsa_targets
¶ Alias for field number 2
-
property


About
Modder's Toolkit is an unofficial checker for errors and issues in osu beatmapsets! The current Modding Assistant created by Sieg is outdated and closed source. Modder's Toolkit aims to improve upon this Modding Assistant by providing smooth and up-to-date beatmapset checks. This is done by..
- Being Open Source
- Web Application-based
Github
Questions?
Feel free to message me on osu! or Discord (Rizen#7408)


5 Action Steps for Helping Someone in Emotional Pain
5 Action Steps for Helping Someone in Emotional Pain
1.Ask: “Are you thinking about killing yourself?”
It’s not an easy question but studies show that asking at-risk individuals if they are suicidal does not increase suicides or suicidal thoughts.
2.Keep them safe: Reducing a suicidal person’s access to highly lethal items or places is an important part of suicide prevention. While this is not always easy, asking if the at-risk person has a plan and removing or disabling the lethal means can make a difference.
3.Be there: Listen carefully and learn what the individual is thinking and feeling. Findings suggest acknowledging and talking about suicide may in fact reduce rather than increase suicidal thoughts.
4.Help them connect: Save the National Suicide Prevention Lifeline’s number in your phone so it’s there when you need it: 1-800-273-TALK (8255). You can also help make a connection with a trusted individual like a family member, friend, spiritual advisor, or mental health professional.
5.Stay Connected: Staying in touch after a crisis or after being discharged from care can make a difference. Studies have shown the number of suicide deaths goes down when someone follows up with the at-risk person.
More ideas Instant access: It may be helpful to save several emergency numbers to your cell phone. The ability to get immediate help for yourself or for a friend can make a difference.
1.The phone number for a trusted friend or relative
2.he non-emergency number for the local police department
3.The Crisis Text Line: 741741
4.The National Suicide Prevention Lifeline: 1-800-273-TALK (8255).
Social Media: Knowing how to get help for a social media friend can save a life. Contact the social media site directly if you are concerned about a friend’s updates or dial 911 in an emergency. Learn more on the NSPL’s website.


Physical inactivity, common in 1 out of 4 adults, has been identified as the fourth leading risk factor for global mortality. We propose that by adding physically-interactive storytelling, we can make digital technology the solution, rather than the problem. Stories That Move is an Augmented Reality (AR)-based story platform that will engage the user with a story, while simultaneously requiring the user to actively explore the physical world in order to move the story forward.
Users will need to traverse the physical environment while using the interface to move the story forward.
Users will need to listen to and watch the characters interact with their physical environment using context clues to extract information.
Users will need to manipulate items in their physical and virtual environment to complete in-story tasks.


--- layout: post title: '' categories: [] tags: [] status: draft type: post published: false meta: {} author: ---


|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ServletEndpointContext
provides an endpoint
context maintained by the underlying servlet container based
JAX-RPC runtime system. For service endpoints deployed on a
servlet container based JAX-RPC runtime system, the context
parameter in the ServiceLifecycle.init
method is
required to be of the Java type
javax.xml.rpc.server.ServletEndpointContext
.
A servlet container based JAX-RPC runtime system implements
the ServletEndpointContext
interface. The JAX-RPC
runtime system is required to provide appropriate session,
message context, servlet context and user principal information
per method invocation on the endpoint class.
| Method Summary | |
javax.servlet.http.HttpSession |
getHttpSession()
The getHttpSession method returns the current
HTTP session (as a javax.servlet.http.HTTPSession ). |
MessageContext |
getMessageContext()
The method getMessageContext returns the
MessageContext targeted for this endpoint instance. |
javax.servlet.ServletContext |
getServletContext()
The method getServletContext returns the
ServletContex t associated with the web
application that contain this endpoint. |
java.security.Principal |
getUserPrincipal()
Returns a java.security.Principal instance that
contains the name of the authenticated user for the current
method invocation on the endpoint instance. |
| Method Detail |
public MessageContext getMessageContext()
getMessageContext
returns the
MessageContext
targeted for this endpoint instance.
This enables the service endpoint instance to acccess the
MessageContext
propagated by request
HandlerChain
(and its contained Handler
instances) to the target endpoint instance and to share any
SOAP message processing related context. The endpoint instance
can access and manipulate the MessageContext
and share the SOAP message processing related context with
the response HandlerChain
.
MessageContext
, this method returns
null
.
java.lang.IllegalStateException
- if this method is invoked outside a
remote method implementation by a service endpoint instance.public java.security.Principal getUserPrincipal()
java.security.Principal
instance that
contains the name of the authenticated user for the current
method invocation on the endpoint instance. This method returns
null
if there is no associated principal yet.
The underlying JAX-RPC runtime system takes the responsibility
of providing the appropriate authenticated principal for a
remote method invocation on the service endpoint instance.
java.security.Principal
for the
authenticated principal associated with the current
invocation on the servlet endpoint instance;
Returns null
if there no authenticated
user associated with a method invocation.public javax.servlet.http.HttpSession getHttpSession()
getHttpSession
method returns the current
HTTP session (as a javax.servlet.http.HTTPSession
).
When invoked by the service endpoint within a remote method
implementation, the getHttpSession
returns the
HTTP session associated currently with this method invocation.
This method returns null
if there is no HTTP
session currently active and associated with this service
endpoint. An endpoint class should not rely on an active
HTTP session being always there; the underlying JAX-RPC
runtime system is responsible for managing whether or not
there is an active HTTP session.
The getHttpSession method throws JAXRPCException
if invoked by an non HTTP bound endpoint.
null
if there is no active session.
JAXRPCException
- - If this method invoked by a non-HTTP bound
endpoints.public javax.servlet.ServletContext getServletContext()
getServletContext
returns the
ServletContex
t associated with the web
application that contain this endpoint. According to
the Servlet specification, There is one context per web
application (installed as a WAR) per JVM . A servlet
based service endpoint is deployed as part of a web
application.
ServletContext
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


-
WhiteHat Security - Senior Network Administrator
hire.jobvite.com
Senior Network Administrator - WhiteHat Security has an immediate opening for a Senior Network Administrator in IT. You will spearhead managing our ...
-
Nexage acquired by Jumptap buyer Millennial Media for $108 million - ...
betaboston.com
Millennial Media has snapped up another Boston ad tech firm, Nexage, in a deal pegged at $107.5 million.
-
I Stand With Emma Watson
www.slate.com
On Saturday, Sept. 20, U.N. Women Goodwill Ambassador Emma Watson gave a stunning speech about women’s rights.* Stunning. In it, she talked about the ...
-
Join Our Rocketship - ShareThis.com
www.sharethis.com
ShareThis is hiring! Learn why we were ranked the #1 fastest growing company in the SF Bay Area.
-
Before Launching an Ad Campaign, Think Cross-Device
www.addthis.com
Improve your strategy by adding cross-device (mobile, tablet, and phone) to your traditional ad campaigns.
-
Apple’s dangerous game, part 3: Where do you draw the line, and what’s the ...
www.washingtonpost.com
Here are two questions for those who strongly favor widespread use of encryption that the government can't break, even with a judge-signed warrant. ...
-
This video of Poland winning the world volleyball championship is the best ...
ftw.usatoday.com
The Polish team stunned Brazil to win the world championships.
-
Ryder Cup captains are too nice to tell Rickie Fowler he looks ridiculous
ftw.usatoday.com
Fowler shaved "USA" into his head.
-
This video of Andy Reid dancing in the Chiefs locker room will make your ...
ftw.usatoday.com
Reid deserves a spot on "Dancing With The Stars."
-
Was the NFL's overtime rule unfair to Peyton Manning and the Broncos?
ftw.usatoday.com
Seattle scored a touchdown on its first possession. Peyton Manning never got the ball.
-
Zero downtime Clojure deployments
www.uswitch.com
We’re heavily into microservices at uSwitch , with many of them being Clojure Ring applications, and our infrastructure is hosted on Amazon AWS .
-
Don't wait! Trade in your old iPhone now
money.cnn.com
Apple is expected to launch the iPhone 6 in two weeks, but waiting until then to sell your old iPhone means you're way late to the game.
-
Fraud at the CDC uncovered, 340% risk of autism hidden from public
ireport.cnn.com
+*UPDATE, September 6*++: It has been found that “Translational Neurodegeneration” broken their own rules when they pulled Dr. Hookers research ...
-
A Four-Year-Old Reviews the French Laundry
nuzzel.com
Reviewing notable restaurants via the simple yet extremely judgmental palate of a four-year-old has kind of become a “thing” here at the Bold Italic. ...
-
Big news for Highrise by Jason Fried of Basecamp
signalvnoise.com
Today we have a major announcement to make regarding Highrise , our popular CRM tool. It’s a good one!
-
The anti-Facebook: one in four American neighborhoods are now using this ...
www.theverge.com
It was early in the morning when the flooding hit The Knolls, a neighborhood of about 500 homes in Columbus, Ohio. The sewer overflowed, dumping a ...
-
Your body language shapes who you are
www.ted.com
Body language affects how others see us, but it may also change how we see ourselves. Social psychologist Amy Cuddy shows how “power posing” -- ...
-
Python Data Analysis Library — pandas: Python Data Analysis Library
pandas.pydata.org
pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python ...
-
How to Overcome Feeling Under-qualified
www.disruption.vc
As an early hire to a startup you'll likely be in a position where you're underqualified for a certain job. Here are three things I've learned.
-
The 11 Risks VCs Evaluate
tomtunguz.com
Though the industry is called venture capital, the goal of a VC isn’t to maximize every risk. Instead, we try to understand all the risks a business ...
-
Wanna Build Your Own Google? Visit the App Store for Algorithms | WIRED
www.wired.com
Today’s internet is ruled by algorithms. These mathematical creations determine what you see in your Facebook feed, what movies Netflix recommends to ...
-
If You Think Big Data’s Big Now, Just Wait | TechCrunch
techcrunch.com
We've been hearing a great deal about the power of Big Data over the last couple of years. The hype says that as we gather more data, we will be able ...
-
The GSD Mentality Doesn't Make Your Startup Better
isaacmosquera.com
Very often we hear the term Get Shit Done (GSD) for employees who just do their work. I’m all for people who can get their work done, but if that’s ...
-
View out of a McDonald's in Austria
imgur.com
The most viral images on the internet, curated in real time by a dedicated community through commenting, voting and sharing.


A channel to discuss trading.
This operation is pending. You will be notified when when it has finished.
#bitcoin stock to flow model holds for 7 years now .. how many more?
Retweets
126
Likes
421
Caglio11-Aug-19 11:50 PM
I want to see komodo mooning like that
FlyingDutchman11-Aug-19 11:54 PM
dont we all
Gordon Komodo12-Aug-19 03:35 AM
so everybody in the alts world decided to make most alts green today?
Market manipulation at it's best
tolken12-Aug-19 03:43 AM
Hive brain
jspook1612-Aug-19 04:54 AM
What do you guys recommend to pick up at these levels, pirate or kmd?
blackjok3r12-Aug-19 05:06 AM
beer
house12-Aug-19 05:14 AM
@jspook16 ... i'd be willing to bet that Pirate makes a %100 move before komodo.
Both are great buys at this level though
Cryptoon12-Aug-19 06:56 AM
For sure
tolken12-Aug-19 07:19 AM
Beer... anyone still selling that?
mrtzmp312-Aug-19 08:19 AM
@Gordon Komodo dominance topped for now
Money flow into alts
Not sure how long
@house why has nobody forked or replicated pirate all private transactions yet ???
I own pirate but I am unsure , if it was so gamechanging where are the cloners
Oszy12-Aug-19 08:27 AM
well there's one that stole the name and brand at least, mr pirate cash from russia PoS + Bridge Dex forked he's so proud of himself
house12-Aug-19 09:01 AM
It’s not a mainstream thing @mrtzmp3 Private only transactions is a very niche project template. Of course you can easy fork it, but as we are the pioneers in the space I suspect people are watching to see how it pans out. As you can see, most people are in crypto for trading to make money, I can’t lie, so am I, but I value the technology and am sticking to my guns and putting my money where I believe the most innovation is taking place. As such, I see Komodo and Pirate as top of the heap. Let the kids play their trading games
mrtzmp312-Aug-19 09:09 AM
shrk12-Aug-19 11:37 AM
Want to sell my $ amazon gift cards for kmd or chips, pm me please if anyone interested
Use firefly to read divergence. Daily and weekly are not nearly as clear as 4hr, but the higher tf divergence has to be triggered sometime
FlyingDutchman12-Aug-19 06:13 PM
getting close to being up 7.77%
dan.12-Aug-19 06:46 PM
i find it unlikely this mini whale gets dumped on anytime soon
he just needs to keep on keepin on
bpkdasbaum12-Aug-19 06:47 PM
@phm87 purple line is support/resistance, if it closes above that on a timeframe you are confortable with and possibly retest it with confirmation, then it's a buy. https://www.tradingview.com/x/Qbn7FB7V/
alternatively, gamble to buy now with tight stop loss
all this is assuming btc doesn't rekt alts again in the next days
phm8712-Aug-19 06:49 PM
Thank you for the TA. I should have the same horizontal.
I have a bias because Iwas looking in 4H. Daily or weekly can give me the big picture
I believe it's a nice discount here anyway though for long term accumulation
phm8712-Aug-19 06:55 PM
Indeed but btcusd movements influence whole altbtc
Lumbi12-Aug-19 06:55 PM
let's see how usd does
phm8712-Aug-19 06:57 PM
I have a bias compared to traders because I have a mining pool and a Notary Node that are printing alts out of fresh air. I stillneed to decide when to sell, when to hold and sometimes buy
Caglio12-Aug-19 07:00 PM
moon mooon
lets go moon
Markus12-Aug-19 07:14 PM
not gonna moon
but it can go up abit yes, mooning would mean its too quick = sell quick
FlyingDutchman12-Aug-19 07:21 PM
current aim is to recover back to the 1.65ish area where it was stable like a month or teo ago
Bitfinger12-Aug-19 07:45 PM
Tips hat @siu - Chainmakers
CoinKing8812-Aug-19 08:08 PM
Any news or random pump?
hyperDEX12-Aug-19 08:08 PM
wasn't me
Looks like the bots are going to try to dump into that buy
CoinKing8812-Aug-19 08:49 PM
@hyperDEX is the atomicdex beta generating fee that is gonna be distributed to Dex holders?


What is this?
This is a site for deploying and checking completion of Solidity challenges for
SwampCTF. We need a way to securely verify
competitors have completed a challenge. Best way to see if competitors were able to understand and
execute an exploit for the challenge is to have them exploit an actual live contract on
the test network.
What do I need to play?
Create an Ethereum account using the MetaMask extension.
Change your network to Ropsten Test Network
. Copy the challenge contract code into a file on
Remix (or any tool which can interact with the Ropsten test net)
and paste the deployed contract's address into the At Address space in the Run tab. You can interact with
the contract through Remix. Make sure your environment in
Remix is Inject Web3
on Ropsten
and
you've set the correct compiler version listed at the top of the contract next to pragma solidity
. Get
Ether at Ropsten Faucet or MetaMask Faucet.
How do I play?
Navigate to the challenge page and click Deploy
. Once the transaction has completed and the
contract is deployed on the test net, the address will be returned. Interact with the on-chain contract and complete the
challenge. Each challenge goal is defined in the isComplete()
function of the contract. Click the Check Solution
button to verify you've completed the challenge, and once the verification has completed, click Get Flag
to
retrieve the flag to submit to CTFd.


mev - a program to report mouse events
The `mev' program is part of the gpm package. The information below is extracted from the texinfo file, which is the preferred source of information.
The `mev' program is modeled after `xev'. It prints to `stdout' the mouse console events it gets.
`mev''s default behaviour is to get anything, but command line switches can be used to set the various fields in the `Gpm_Connect' structure, in order to customize the program's behaviour. I'm using `mev' to handle mouse events to Emacs.
Command line switches for `mev' are the following:
-C number Select a virtual console to get events from. This is intended to be used for debugging.
-d number Choose a default mask. By default the server gets any events not belonging to the event mask. The mask can be provided either as a decimal number, or as a symbolic string.
-e number Choose the event mask. By default any event is received. The mask can be provided either as a decimal number, or as a symbolic string.
-E Enter emacs mode. In emacs mode events are reported as lisp forms rather than numbers. This is the format used by the t-mouse package within emacs.
-f Fit events inside the screen before reporting them. This options re-fits drag events, which are allowed to exit the screen border,
-i Interactive. Accepts input from `stdin' to change connection parameters.
-m number Choose the minimum modifier mask. Any event with fewer modifiers will not be reported to `mev'. It defaults to `0'. The mask must be provided either as a decimal number, or as a symbolic string.
-M number Choose the maximum modifier mask. Any event with more modifier than specified will not be reported to `mev'. It defaults to `~~0', i.e. all events are received. The mask must be provided either as a decimal number, or as a symbolic string.
-p Requests to draw the pointer during drags. This option is used by emacs to avoid invoking `ioctl()' from lisp code.
When the arguments are not decimal integers, they are considered lists of alphanumeric characters, separated by a single non-alphanumeric character. I use the comma (`,'), but any will do.
Allowed names for events are `move', `drag', `down' or `press', `up' or `release', `motion' (which is both `move' and `drag'), and `hard'.
Allowed names for modifiers are `shift', `leftAlt', `rightAlt', `anyAlt' (one or the other), `control'.
When the `-i' switch is specified, `mev' looks at its standard input as command lines rather than events. The input lines are parsed, and the commands `push' and `pop' are recognized.
The `push' command, then, accepts the options `-d', `-e', `-m' and `-M', with the same meaning described above. Unspecified options retain the previous value and the resulting masks are used to reopen the connection with the server. `pop' is used to pop the connection stack. If an empty stack is popped the program exits.
Other commands recognized are `info', used to return the stack depth; `quit' to prematurely terminate the program; and `snapshot' to get some configuration information from the server.
Beginning with release 1.16, mev no longer works under xterm. Please use the rmev program (provided in the sample directory) to watch gpm events under xterm or rxvt. rmev also displays keyboard events besides mouse events.
Alessandro Rubini<EMAIL_ADDRESS>Ian Zimmerman<EMAIL_ADDRESS>/dev/gpmctl The socket used to connect to gpm.
gpm(8) The mouse server
The info file about `gpm', which gives more complete information and explains how to write a gpm client.


Add art to your queue online
Receive art at your home in the order to specify
Keep the art for as long as you like. Buy only what you love
Return the art to receive the next piece in your queue


HTML attributes to manage layout and common styling properties for HTML elements.
Why? Because styling every HTML component with CSS/SCSS is tedious and hard to maintain. It leads to styling inconsistencies as project grows. Let's avoid that. Keep custom CSS/SCSS to the 20% of advanced styling needs. For the other 80%, use common style attributes.
npm install common-style-attributes
@import
'~common-style-attributes/styles/common-style-attributes';
@import '~common-style-attributes/styles/csa-typography';
~common-style-attributes/styles/csa-variables.scss
and import it to your project:
@import 'my-csa-variables';


Make new law on Sabarimala temple matter: Supreme Court to Kerala govt
The court had last week referred these review petitions to a larger seven-judge bench.
by ANINew Delhi: The Supreme Court on Wednesday asked the Kerala government to bring about a new law for Sabarimala temple matter in four weeks.
A three-judge bench headed by Justice N V Ramana, B R Gavai and Subhash Reddy asked the state government to file a draft in four weeks and adjourned the matter for the 3rd week of January 2020.
The apex court was hearing a petition filed by Pandalam Royal Family seeking the protection of their rights.
The royal family was one among the batch of petitioners who had challenged top court's September 28, 2018 judgment, which declared that women of all age groups could enter the shrine.
The court had last week referred these review petitions to a larger seven-judge bench.
The apex court verdict came on 65 petitions - including 56 review petitions, four fresh writ petitions, and five transfer pleas. The petitions challenged the authority of the court to intervene in a belief of the people.
They argued that the Sabarimala deity is a "Brahmachari" (celibate) and "centuries-old beliefs" should not be disturbed by the entry of menstruating women worshippers.
Catch the latest news, live coverage and in-depth analyses from India and World. Follow us on Facebook and Twitter.