Dear Mr. Arnell,
Thank you for the lovely volumes, which I
looked over with great interest. They proved
very useful for an idea for the décor for a
sequence in my next picture.
- Federico Fellini
Dear Mr. Arnell,
Thank you for designing the lorem ipsum
dolor sit amet, consectetur adipsicing elit.
- Jaqueline Onassis
One of the great brand
impresarios of our age
- Newsweek


Module: ActiveModel::Serializers::JSON
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
::ActiveRecord::Base ,
ActiveRecord::InternalMetadata,
ActiveRecord::SchemaMigration,
::ActiveRecord::Serialization
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::ActiveSupport::Concern
|
|
|
Instance Chain:
|
|
| Defined in: | activemodel/lib/active_model/serializers/json.rb |
Overview
Active Model JSON Serializer
Class Method Summary
::ActiveSupport::Concern
- Extended
Instance Method Summary
-
#as_json(options = nil)
Returns a hash representing the model.
-
#from_json(json, include_root = include_root_in_json)
Sets the model
attributes
from aJSON
string.
::ActiveModel::Serialization
- Included
| #serializable_hash | Returns a serialized hash of your object. |
DSL Calls
included
[ GitHub ]12 13 14 15 16
# File 'activemodel/lib/active_model/serializers/json.rb', line 12
included do extend ActiveModel::Naming class_attribute :include_root_in_json, instance_writer: false, default: false end
Instance Method Details
#as_json(options = nil)
Returns a hash representing the model. Some configuration can be passed through options
.
The option include_root_in_json
controls the top-level behavior of as_json
. If true
, as_json
will emit a single root node named after the object’s type. The default value for include_root_in_json
option is false
.
user = User.find(1)
user.as_json
# => { "id" => 1, "name" => "Konata Izumi", "age" => 16,
# "created_at" => "2006/08/01", "awesome" => true}
ActiveRecord::Base.include_root_in_json = true
user.as_json
# => { "user" => { "id" => 1, "name" => "Konata Izumi", "age" => 16,
# "created_at" => "2006/08/01", "awesome" => true } }
This behavior can also be achieved by setting the :root
option to true
as in:
user = User.find(1)
user.as_json(root: true)
# => { "user" => { "id" => 1, "name" => "Konata Izumi", "age" => 16,
# "created_at" => "2006/08/01", "awesome" => true } }
Without any options
, the returned ::Hash
will include all the model’s attributes.
user = User.find(1)
user.as_json
# => { "id" => 1, "name" => "Konata Izumi", "age" => 16,
# "created_at" => "2006/08/01", "awesome" => true}
The :only
and :except
options can be used to limit the attributes included, and work similar to the attributes
method.
user.as_json(only: [:id, :name])
# => { "id" => 1, "name" => "Konata Izumi" }
user.as_json(except: [:id, :created_at, :age])
# => { "name" => "Konata Izumi", "awesome" => true }
To include the result of some method calls on the model use :methods
:
user.as_json(methods: :permalink)
# => { "id" => 1, "name" => "Konata Izumi", "age" => 16,
# "created_at" => "2006/08/01", "awesome" => true,
# "permalink" => "1-konata-izumi" }
To include associations use :include
:
user.as_json(include: :posts)
# => { "id" => 1, "name" => "Konata Izumi", "age" => 16,
# "created_at" => "2006/08/01", "awesome" => true,
# "posts" => [ { "id" => 1, "author_id" => 1, "title" => "Welcome to the weblog" },
# { "id" => 2, "author_id" => 1, "title" => "So I was thinking" } ] }
Second level and higher order associations work as well:
user.as_json(include: { posts: {
include: { comments: {
only: :body } },
only: :title } })
# => { "id" => 1, "name" => "Konata Izumi", "age" => 16,
# "created_at" => "2006/08/01", "awesome" => true,
# "posts" => [ { "comments" => [ { "body" => "1st post!" }, { "body" => "Second!" } ],
# "title" => "Welcome to the weblog" },
# { "comments" => [ { "body" => "Don't think too hard" } ],
# "title" => "So I was thinking" } ] }
#from_json(json, include_root = include_root_in_json)
Sets the model attributes
from a JSON
string. Returns self
.
class Person
include ActiveModel::Serializers::JSON
attr_accessor :name, :age, :awesome
def attributes=(hash)
hash.each do |key, value|
send("#{key}=", value)
end
end
def attributes
instance_values
end
end
json = { name: 'bob', age: 22, awesome:true }.to_json
person = Person.new
person.from_json(json) # => #<Person:0x007fec5e7a0088 @age=22, @awesome=true, @name="bob">
person.name # => "bob"
person.age # => 22
person.awesome # => true
The default value for include_root
is false
. You can change it to true
if the given JSON
string includes a single root node.
json = { person: { name: 'bob', age: 22, awesome:true } }.to_json
person = Person.new
person.from_json(json, true) # => #<Person:0x007fec5e7a0088 @age=22, @awesome=true, @name="bob">
person.name # => "bob"
person.age # => 22
person.awesome # => true
# File 'activemodel/lib/active_model/serializers/json.rb', line 138
def from_json(json, include_root = include_root_in_json) hash = ActiveSupport::JSON.decode(json) hash = hash.values.first if include_root self.attributes = hash self end


Learn what the top caterers are doing to create consistent business, find their ideal clients, and keep their customers coming back again and again!
Find Out MoreNo matter what part of your catering business you want to improve, Cater Greater has step-by-step tutorials from top-rated catering professionals to help you get the most out of your business!
Get Started!Keep business going year-round and book more referrals.
Make yourself the first caterer people think of for their event.
Offer more of the services your customers want.
Book more repeat business with your customers.


If you too are also wondering what's coming..
Sit back, relax and scroll your way through the Muchunku Portfolio experience
Here we go!
Im currently working to expand my Information Systems
Development
background to acquire new skills in the following Software
Engineering Specializations:
My line of work encompasses the entire Information Systems Development Process
which involves carrying out all Information Systems development processes
which include the analysis, design and modelling of Information Systems
at all the stages of development which preceed the Implementation stage i.e.
the Software Development or if you like the 'Programming' stage.
As indicated in the section detailing my present occupation my intention is to expand the scope of my profession to be all-round, multi-skilled Information Systems Software Developer.
The following are the academic qualification certifications I have attained corresponding to my Career Profession.
Having been working in the ICT sector I have been able to acquire the following technical capacities and competencies:
While considering the nature of what a hobby is it dawned on me while living through the reality of a pandemic that the most valuable and rewarding thing that tops even the most entertaining hobby we enjoy spending our time doing, is actually the time we spend with family / loved ones.
Beyond quality family time my hobbies include:
The practice of my Catholic Faith deserves its own dedicated mention
as it's more of a daily commitment to live as God intends and expects of me.
As such it is a high calling the extent of which cannot even begin
to be captured in the definition of an interest.
The following list would a more aptly capture what I'd consider as my interests:


hello world first day at work my first post Metis Projects overfishing words and power classification Data playing nice with the google bigquery python client library gender equality in the cinema: part 1 your own image classification network: part I but why 'learning'? let the machines decide a couple of apis, an app and some animals model validation NIPS 2016 thoughts from the frontier Hello World where do we go from here?


I'm a student who Studying Bachelor of Computer Application under West Bengal University of Technology, Keen Mozilla follower, Tech Geek, Open Source Evangelist. I make things. I am a Mozilla Rep, Movie Buff, Foodie and one of the bunch full of Indians listed in the Firefox browser's credits....


Print + Sign Specialists is your one stop print and sign shop. It’s our goal to develop long term relationships with our customers by providing the best services for the lowest price with fast turnaround. Owner, Leon Odendaal brings over 30 years of experience in the printing industry. We offer the highest quality digital printing and specialize in rush delivery. No matter the quantity of printed materials you need, we are ready to help you make a great impression.
Quality: We understand that you have many options when it comes to choosing among the area printers, which is why we are constantly exploring new ways to provide the highest quality. Great Price: We offer competitive pricing and strive to always give you the highest quality at the lowest price. Service: Customer Service is our top priority. It’s our goal to build long–term partnerships with our customers. We accommodate every client with a customized (personalized?) program that works for them. Experience: Since 1996, Leon Odendaal has been involved in the print industry. Prior to owning a print shop Leon had experience repairing print and copy machines. He brings a customer service perspective along with the technical background to ensure the highest quality print product. In 2007 he purchased PDQ Printing Services in Champaign, IL and has been involved in the print industry in Champaign and Vermilion Counties since.
Let us be your in-house printing department. We will provide the services you need to handle all of your printing projects. Never worry about ink, toner, paper, and equipment maintenance again! Our unique blend of capabilities, production expertise and creative problem solving will assist you in improving your brand.


package client2server
Type Members
- final class AnonymousAudienceChatFromClientAE extends AnonymousAudienceChatFromClientAnalysisEngine
- final class BoardAE extends BoardAnalysisEngine
- final class BuildVillageAE extends BuildVillageAnalysisEngine
- final class ChatFromClientAE extends ChatFromClientAnalysisEngine
- final class ErrorFromClientAE extends ErrorFromClientAnalysisEngine
- class JAnonymousAudienceChatFromClientAE extends AnonymousAudienceChatFromClientAnalysisEngine
- class JBoardAE extends BoardAnalysisEngine
- class JBuildVillageAE extends BuildVillageAnalysisEngine
- class JChatFromClientAE extends ChatFromClientAnalysisEngine
- class JErrorFromClientAE extends ErrorFromClientAnalysisEngine
- class JLeaveWaitingPageAE extends LeaveWaitingPageAnalysisEngine
- class JOnymousAudienceBoardAE extends OnymousAudienceBoardAnalysisEngine
- class JOnymousAudienceChatFromClientAE extends OnymousAudienceChatFromClientAnalysisEngine
- class JOnymousAudienceScrollAE extends OnymousAudienceScrollAnalysisEngine
- class JReadyAE extends ReadyAnalysisEngine
- class JReceivedChatMessageAE extends ReceivedChatMessageAnalysisEngine
- class JReceivedFlavorTextMessageAE extends ReceivedFlavorTextMessageAnalysisEngine
- class JReceivedSystemMessageAE extends ReceivedSystemMessageAnalysisEngine
- class JScrollAE extends ScrollAnalysisEngine
- class JStarAE extends StarAnalysisEngine
- class JVoteAE extends VoteAnalysisEngine
- final class LeaveWaitingPageAE extends LeaveWaitingPageAnalysisEngine
- final class OnymousAudienceBoardAE extends OnymousAudienceBoardAnalysisEngine
- final class OnymousAudienceChatFromClientAE extends OnymousAudienceChatFromClientAnalysisEngine
- final class OnymousAudienceScrollAE extends OnymousAudienceScrollAnalysisEngine
- final class ReadyAE extends ReadyAnalysisEngine
- final class ReceivedChatMessageAE extends ReceivedChatMessageAnalysisEngine
- final class ReceivedFlavorTextMessageAE extends ReceivedFlavorTextMessageAnalysisEngine
- final class ReceivedSystemMessageAE extends ReceivedSystemMessageAnalysisEngine
- final class ScrollAE extends ScrollAnalysisEngine
- final class StarAE extends StarAnalysisEngine
- final class VoteAE extends VoteAnalysisEngine


Web Designer & Font-end,Back-End Developer
Get StartedI'm a web Developer & Designer. My name is Nahid Hossain, and I'm studying Computer Science & Engineering at University of Asia Pacific(UAP),Dhaka. I love to solve problems and the challenge of finding a way and discovering solutions. Maybe that's why I love writing and the satisfaction that comes from finding just the rignt word. I build open source projects and write the missing instruction manuals of the web.
Photoshop . HTML CSS. Web Design. Database
I'm freshman studying Computer Science & Engineering at University of Asia Pacific(UAP),Dhaka.I have an insatiable curiosity for AI – particularly deep learning – applications and their potential to change the technology landscape.
It's a simple game by using C++ and GUI, where the car ignore obstacles by jumping
LThe Bank Account Management System is an application for maintaining a person's account in a bank.
It's a project for our country's rural people by using MySQL/Database.
It's a rating site where people can rate phones which one is exist in our site.
If you want contact me send me a message!


Package algorithms.graphs
Class StarStructure
- java.lang.Object
-
- algorithms.graphs.StarStructure
-
public class StarStructure extends java.lang.Object
implementing a star structure and related methods following the algorithms presented as pseudocode inComparing Stars: On Approximating Graph Edit Distance Zeng, Tung, Wang, Feng, and Zhou 2009, Proceedings of the VLDB Endowment, Volume 2, Issue 1, August 2009 pp 25–36 https://doi.org/10.14778/1687627.1687631
Additionally have added edge labels and modifications to the edit distance costs for them. For use with attributed graphs. Fernandez and Valiente 2001: Attributed relational graphs, introduced in Tsai and Fu, 1979), extend the notion of labeled graph by allowing the value of several attributes as labels of vertices and edges.- Author:
- nichole
-
-
Field Summary
Fields Modifier and Type Field Description int[]
eLabels
root to V[i] edge labels, sorted by the vLabel sortingstatic int
eps
ε is a special label indicating that the vertex is virtualint[]
origVIndexes
the indexes w.r.t.int
rootIdx
index of root; label of rootint
rootLabel
int[]
vLabels
the adjacent vertexes of root in V[i] treated as leaves.
-
Constructor Summary
Constructors Constructor Description StarStructure(int rIdx, int rLabel, int[] vLabels, int[] eLabels, int[] vIndexes)
StarStructure(ApproxGraphSearchZeng.Graph g, int rootIndex)
convert the graph vertex rootIndex and it's immediate neighbors into a star structure.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
calculateEditDistance(StarStructure s1, StarStructure s2)
Lemma 4.1static int
calculateEditDistanceNoRelabeling(StarStructure s1, StarStructure s2)
the edit distance for use with sub-graph search.static int
calculateEditDistanceNoRelabelingV(StarStructure s1, StarStructure s2)
for the graph model with vertex labeling, but no edge labeling, calculate the edit distance for use with sub-graph search.static int
calculateEditDistanceV(StarStructure s1, StarStructure s2)
for the graph model with vertex labeling, but no edge labeling, calculate the edit distance between star structures s1 and s2.static int
calculateSupport(StarStructure[] sg, int vIdx)
calculate the sum of the degree of the vertices which are adjacent to vertex v, i.e., support (v) = s(v) = ∑ d(u).StarStructure
copy()
static StarStructure[]
copy(StarStructure[] s)
static double[][]
createDistanceMatrix(StarStructure[] sg1, StarStructure[] sg2)
create edit distance matrix for S(g_1) to S(g_2) from StarStructure.calculateEditDistance.static double[][]
createDistanceMatrixNoRelabeling(StarStructure[] sg1, StarStructure[] sg2)
create edit distance matrix for S(g_1) to S(g_2) for use with approx sub-graph search and graphs with vertex and edge labels.static double[][]
createDistanceMatrixNoRelabelingV(StarStructure[] sg1, StarStructure[] sg2)
for the graph model with vertex labeling, but no edge labeling, create edit distance matrix for S(g_1) to S(g_2) from StarStructure.calculateEditDistance.static double[][]
createDistanceMatrixV(StarStructure[] sg1, StarStructure[] sg2)
for the graph model with vertex labeling, but no edge labeling, create edit distance matrix for S(g_1) to S(g_2) from StarStructure.calculateEditDistance.static StarStructure[]
createStarStructureMultiset(ApproxGraphSearchZeng.Graph g)
create multi-set of |V| star structures from graph g with |V| verticesprotected void
sortAndSet(int rIdx, int rLabel, int[] vLabels, int[] eLabels, int[] vIndexes)
node and edge labeling functions which can be overridden with specialization.
-
-
-
Field Detail
-
eps
public static final int eps
ε is a special label indicating that the vertex is virtual- See Also:
- Constant Field Values
-
rootIdx
public int rootIdx
index of root; label of root
-
rootLabel
public int rootLabel
-
vLabels
public int[] vLabels
the adjacent vertexes of root in V[i] treated as leaves. vLabels values are labels. vLabels is sorted by value already.
-
eLabels
public int[] eLabels
root to V[i] edge labels, sorted by the vLabel sorting
-
origVIndexes
public int[] origVIndexes
the indexes w.r.t. the graph's vertexes, which is the indexes of the array of star structures. the original indexes in V[i] are the indexes of vLabels before re-ordered by sorting
-
-
Constructor Detail
-
StarStructure
public StarStructure(ApproxGraphSearchZeng.Graph g, int rootIndex)
convert the graph vertex rootIndex and it's immediate neighbors into a star structure.- Parameters:
g
-rootIndex
- the vertex index in g that will be the root of the star structure.
-
StarStructure
public StarStructure(int rIdx, int rLabel, int[] vLabels, int[] eLabels, int[] vIndexes)
- Parameters:
rIdx
-rLabel
-vLabels
-eLabels
-vIndexes
-
-
-
Method Detail
-
sortAndSet
protected void sortAndSet(int rIdx, int rLabel, int[] vLabels, int[] eLabels, int[] vIndexes)
node and edge labeling functions which can be overridden with specialization. default is to sort but not to alter the values in vLabels and eLabels. This method sorts vLabels, eLabels, and the array of original indexes [0, 1, 2, ..vLabels.length - 1] by ascending sort on vLabels. All results are stored in this instance. NOTE: the design uses specialization of labeling, but could be refactored to use composition.- Parameters:
rIdx
-rLabel
-vLabels
-eLabels
-vIndexes
- indexes of the vertexes of vLabels in the context of the original graph g.
-
calculateEditDistance
public static int calculateEditDistance(StarStructure s1, StarStructure s2)
Lemma 4.1- Parameters:
s1
-s2
-- Returns:
- edit distance for transforming s1 into s2. the cost includes vertex insert, delete, and substitutions, and edge substitutions.
-
calculateEditDistanceV
public static int calculateEditDistanceV(StarStructure s1, StarStructure s2)
for the graph model with vertex labeling, but no edge labeling, calculate the edit distance between star structures s1 and s2. Lemma 4.1- Parameters:
s1
-s2
-- Returns:
- edit distance for transforming s1 into s2. the cost includes vertex insert, delete, and substitutions, and edge substitutions.
-
calculateEditDistanceNoRelabeling
public static int calculateEditDistanceNoRelabeling(StarStructure s1, StarStructure s2)
the edit distance for use with sub-graph search. section 5.2.1 of Zeng et al. 2009.- Parameters:
s1
-s2
-- Returns:
-
calculateEditDistanceNoRelabelingV
public static int calculateEditDistanceNoRelabelingV(StarStructure s1, StarStructure s2)
for the graph model with vertex labeling, but no edge labeling, calculate the edit distance for use with sub-graph search. section 5.2.1 of Zeng et al. 2009.- Parameters:
s1
-s2
-- Returns:
-
createDistanceMatrix
public static double[][] createDistanceMatrix(StarStructure[] sg1, StarStructure[] sg2)
create edit distance matrix for S(g_1) to S(g_2) from StarStructure.calculateEditDistance. for use with approx full-graph search and graphs with vertex and edge labels.- Parameters:
sg1
-sg2
-- Returns:
-
createDistanceMatrixV
public static double[][] createDistanceMatrixV(StarStructure[] sg1, StarStructure[] sg2)
for the graph model with vertex labeling, but no edge labeling, create edit distance matrix for S(g_1) to S(g_2) from StarStructure.calculateEditDistance. for use with approx full-graph search and graphs with vertex labels and no edge labels.- Parameters:
sg1
-sg2
-- Returns:
-
createDistanceMatrixNoRelabeling
public static double[][] createDistanceMatrixNoRelabeling(StarStructure[] sg1, StarStructure[] sg2)
create edit distance matrix for S(g_1) to S(g_2) for use with approx sub-graph search and graphs with vertex and edge labels.- Parameters:
sg1
-sg2
-- Returns:
-
createDistanceMatrixNoRelabelingV
public static double[][] createDistanceMatrixNoRelabelingV(StarStructure[] sg1, StarStructure[] sg2)
for the graph model with vertex labeling, but no edge labeling, create edit distance matrix for S(g_1) to S(g_2) from StarStructure.calculateEditDistance. for use with approx sub-graph search and graphs with vertex labels, but no edge labels.- Parameters:
sg1
-sg2
-- Returns:
-
createStarStructureMultiset
public static StarStructure[] createStarStructureMultiset(ApproxGraphSearchZeng.Graph g)
create multi-set of |V| star structures from graph g with |V| vertices- Parameters:
g
- graph holding adjacency map, vertex labels, and edge labels. Note that g must use vertices 0 through g.vLabels.size() - 1, inclusive.- Returns:
- star structures for each vertex
-
copy
public static StarStructure[] copy(StarStructure[] s)
- Parameters:
s
-- Returns:
-
copy
public StarStructure copy()
- Returns:
-
calculateSupport
public static int calculateSupport(StarStructure[] sg, int vIdx)
calculate the sum of the degree of the vertices which are adjacent to vertex v, i.e., support (v) = s(v) = ∑ d(u).- Parameters:
sg
- the graph as an array of star structures.vIdx
- the index of vertex v in the star structure array sg.- Returns:
-
-


*** User 2017-05-05 19:49:04.329 ***
19:49:04.329 [info] Disabling blocking sync...
*** User 2017-05-05 19:49:04.334 ***
19:49:04.334 [info] Configured peer_service_manager partisan_default_peer_service_manager on node 'node-1@MacBook-Pro-de-Anne-France'
*** User 2017-05-05 19:49:05.864 ***
19:49:05.864 [info] Enabling membership...
*** User 2017-05-05 19:49:05.865 ***
19:49:05.865 [info] Disabling blocking sync...
*** User 2017-05-05 19:49:05.871 ***
19:49:05.871 [info] Configured peer_service_manager partisan_default_peer_service_manager on node 'node-2@MacBook-Pro-de-Anne-France'
*** User 2017-05-05 19:49:07.389 ***
19:49:07.388 [info] Enabling membership...
*** User 2017-05-05 19:49:07.390 ***
19:49:07.390 [info] Disabling blocking sync...
*** User 2017-05-05 19:49:07.395 ***
19:49:07.395 [info] Configured peer_service_manager partisan_default_peer_service_manager on node 'node-3@MacBook-Pro-de-Anne-France'
*** User 2017-05-05 19:49:07.661 ***
Joining node: 'node-3@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53809
*** User 2017-05-05 19:49:07.662 ***
Joining issued: 'node-3@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53809
*** User 2017-05-05 19:49:07.663 ***
Joining node: 'node-2@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53793
*** User 2017-05-05 19:49:07.663 ***
Joining issued: 'node-2@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53793
*** User 2017-05-05 19:49:07.664 ***
Joining node: 'node-1@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53780
*** User 2017-05-05 19:49:07.664 ***
Joining issued: 'node-1@MacBook-Pro-de-Anne-France' to 'runner@MacBook-Pro-de-Anne-France' at port 53780
*** User 2017-05-05 19:49:07.726 ***
Waiting for join to complete with manager: partisan_default_peer_service_manager
*** User 2017-05-05 19:49:07.727 ***
Finished.
*** CT 2017-05-05 19:49:07.727 *** COVER INFO
Adding nodes to cover test: ['runner@MacBook-Pro-de-Anne-France']
*** CT 2017-05-05 19:49:07.735 *** COVER INFO
Successfully added nodes to cover test: []
*** User 2017-05-05 19:49:07.787 ***
Case finished: monotonic_read_test
*** User 2017-05-05 19:49:14.833 ***
19:49:14.833 [info] Application lasp exited with reason: stopped
*** User 2017-05-05 19:49:14.833 ***
19:49:14.833 [info] Application partisan exited with reason: stopped
=== Ended at 2017-05-05 19:49:14
=== successfully completed test case
=== Returned value: ok
Test run history
| Top level test index


statsmodels.sandbox.regression.gmm.LinearIVGMM.fit¶
-
LinearIVGMM.
fit
(start_params=None, maxiter=10, inv_weights=None, weights_method='cov', wargs=(), has_optimal_weights=True, optim_method='bfgs', optim_args=None)¶ Estimate parameters using GMM and return GMMResults
TODO: weight and covariance arguments still need to be made consistent with similar options in other models, see RegressionResult.get_robustcov_results
Parameters: start_params : array (optional)
starting value for parameters ub minimization. If None then fitstart method is called for the starting values.
maxiter : int or ‘cue’
Number of iterations in iterated GMM. The onestep estimate can be obtained with maxiter=0 or 1. If maxiter is large, then the iteration will stop either at maxiter or on convergence of the parameters (TODO: no options for convergence criteria yet.) If maxiter == ‘cue’, the the continuously updated GMM is calculated which updates the weight matrix during the minimization of the GMM objective function. The CUE estimation uses the onestep parameters as starting values.
inv_weights : None or ndarray
inverse of the starting weighting matrix. If inv_weights are not given then the method start_weights is used which depends on the subclass, for IV subclasses inv_weights = z’z where z are the instruments, otherwise an identity matrix is used.
weights_method : string, defines method for robust
Options here are similar to
statsmodels.stats.robust_covariance
default is heteroscedasticity consistent, HC0currently available methods are
- cov : HC0, optionally with degrees of freedom correction
- hac :
- iid : untested, only for Z*u case, IV cases with u as error indep of Z
- ac : not available yet
- cluster : not connected yet
- others from robust_covariance
wargs` : tuple or dict,
required and optional arguments for weights_method
- centered : bool, indicates whether moments are centered for the calculation of the weights and covariance matrix, applies to all weight_methods
- ddof : int degrees of freedom correction, applies currently only to cov
- maxlag : int number of lags to include in HAC calculation , applies only to hac
- others not yet, e.g. groups for cluster robust
has_optimal_weights: If true, then the calculation of the covariance
matrix assumes that we have optimal GMM with . Default is True. TODO: do we want to have a different default after onestep?
optim_method : string, default is ‘bfgs’
numerical optimization method. Currently not all optimizers that are available in LikelihoodModels are connected.
optim_args : dict
keyword arguments for the numerical optimizer.
Returns: results : instance of GMMResults
this is also attached as attribute results
Notes
Warning: One-step estimation, maxiter either 0 or 1, still has problems (at least compared to Stata’s gmm). By default it uses a heteroscedasticity robust covariance matrix, but uses the assumption that the weight matrix is optimal. See options for cov_params in the results instance.
The same options as for weight matrix also apply to the calculation of the estimate of the covariance matrix of the parameter estimates.


Please Support Try Ruby!
First, I'd like to thank the over 365,345 (three hundred sixty five thousand three hundred fourty five) people who have used Try Ruby (globally) over 508,600 (five hundred eight thousand six hundred) times in the last two years!
It has been an honor and a privlege to help restore such a fantastic resource.
Because of the fun nature of Try Ruby, it only makes sense to allow it to reach its full potential.
Specifically, Try Ruby must have lessons for the full language.
A partial list includes
- Blocks, Lambdas, Closures, and Procs
- Object Model (DrX with a live svg front end)
- Metaprogramming
- Sandboxing
- Standard lib
- Unit Testing & Outside in Behavior Driven Development
- The Ruby VM (Garbage Collection, Tuning, etc)
- Try Ruby Offline & Mobile versions.
I have gladly covered the hosting expense (currently amazon ec2 small instance, and before that a dedicated box) for the last two years.
The smile people have when experiencing the beauty of Ruby has been more than worth it. :-)
However, in order allow Try Ruby's potential to flourish- muchless stay online- I am currently raising funds. I have never placed ads or sold any information collected by Try Ruby. Please donate to help this site reach its full potential.
If all goes well, I will have weekly lessons, much in the spirit of Railscasts.
Obviously these would be interative lessons.
Last, I'd like to thank David Miani for helping me reassemble Try Ruby when _why disappeared*. Also, a thanks goes out to Adrian aka "Orangea" for his eairly work in finding security holes and helping with other misc issues. A deep thanks also goes out to everyone who has ever reported a bug or issue with Try Ruby.
Thank You.
Respectfully,
Andrew McElroy
Got 15 minutes? Give Ruby a shot right now!
Ruby is a programming language from Japan
(available at ruby-lang.org)
which is revolutionizing the web.
The beauty of Ruby is found in its balance between simplicity and power.
Try out Ruby code in the prompt above. In addition
to Ruby's builtin methods, the following commands are available:
- help
Start the 15 minute interactive tutorial. Trust me, it's very basic!
- help 2
Hop to chapter two.
- clear
Clear screen. Useful if your browser starts slowing down.
Your command history will be remembered.
- back
Go back one screen in the tutorial.
- reset
Reset the interpreter if you get too deep. (or Ctrl-D!)
- next
Allows you to skip to the next section of a lesson.
- time
A stopwatch. Prints the time your session has been open.
If you happen to leave or refresh the page, your session will still be here for
unless it is left inactive for ten minutes.
Trapped in double dots? A quote or something was left open. Type: reset or hit Ctrl-D.


{{/* One of the two main page types, jumbo is used for: - terms/ - privact/ - apps/ - modules/ Notes: - Home is also based on jumbo but the header with 3D book is customised - 404 page is also a Jumbo but must be included separately for Hugo to render it */}}


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object thinwire.ui.Hyperlink
public class Hyperlink
A
Hyperlink
is a screen component that acts like a standard
hyperlink.
Example:
Hyperlink hl = new Hyperlink("Custom Credit Systems Home Page", "http://www.customcreditsystems.com"); hl.setBounds(25, 25, 175, 20); MessageBox.confirm("", "Hyperlink Test", hl, "OK");
Keyboard Navigation:
| KEY | RESPONSE | NOTE |
| Enter | Fires Action( Action = Hyperlink.ACTION_CLICK ) | Only if the component has focus. |
| Field Summary | |
|---|---|
static java.lang.String
|
PROPERTY_LOCATION
|
| Fields inherited from interface thinwire.ui. TextComponent |
|---|
PROPERTY_TEXT
|
| Fields inherited from interface thinwire.ui. Component |
|---|
ACTION_CLICK
,
ACTION_DOUBLE_CLICK
,
PROPERTY_ENABLED
,
PROPERTY_FOCUS
,
PROPERTY_FOCUS_CAPABLE
,
PROPERTY_HEIGHT
,
PROPERTY_LIMIT
,
PROPERTY_USER_OBJECT
,
PROPERTY_VISIBLE
,
PROPERTY_WIDTH
,
PROPERTY_X
,
PROPERTY_Y
|
| Constructor Summary | |
|---|---|
Hyperlink
()
|
|
Hyperlink
(java.lang.String text)
Constructs a new Hyperlink displaying the specified text. |
|
Hyperlink
(java.lang.String text,
java.lang.String location)
|
| Method Summary | |
|---|---|
void
|
addActionListener
(java.lang.String[] actions,
ActionListener
listener)
Adds a
ActionListener
to this component that will be notified when any of the specified actions occur.
|
void
|
addActionListener
(java.lang.String action,
ActionListener
listener)
Adds a
ActionListener
to this component that will be notified when the specified action occurs.
|
void
|
addDropListener
(
Component
[] dragComponents,
DropListener
listener)
|
void
|
addDropListener
(
Component
dragComponent,
DropListener
listener)
|
void
|
addKeyPressListener
(java.lang.String[] keyPressCombos,
KeyPressListener
listener)
Adds a
KeyPressListener
that will be notified when any of the specified key press combinations occur.
|
void
|
addKeyPressListener
(java.lang.String keyPressCombo,
KeyPressListener
listener)
Adds a
KeyPressListener
that will be notified when the specified key press combination occurs.
|
void
|
addPropertyChangeListener
(java.lang.String[] propertyNames,
PropertyChangeListener
listener)
Adds a
PropertyChangeListener
to this component that will be notified when any of the specified properties
change.
|
void
|
addPropertyChangeListener
(java.lang.String propertyName,
PropertyChangeListener
listener)
Adds a
PropertyChangeListener
to this componetn that will be notified when the specified property changes.
|
void
|
fireAction
(
ActionEvent
ev)
Programmatically signals an action which triggers the appropriate listener which calls the desired method. |
void
|
fireAction
(java.lang.String action)
A convenience method that is equal to this.fireAction(new ActionEvent(this, action)); |
void
|
fireAction
(java.lang.String action,
java.lang.Object source)
A convenience method that is equal to this.fireAction(new ActionEvent(this, action)); |
void
|
fireDrop
(
Component
dragComponent)
|
void
|
fireDrop
(
Component
dragComponent,
java.lang.Object dragObject)
|
void
|
fireDrop
(
DropEvent
ev)
|
void
|
fireKeyPress
(
KeyPressEvent
ev)
Allows you to programmatically trigger a key press combination. |
void
|
fireKeyPress
(java.lang.String keyPressCombo)
A convenience method that is equal to this.fireKeyPress(new KeyPressEvent(keyPressCombo, this)); |
protected boolean
|
firePropertyChange
(java.lang.Object source,
java.lang.String propertyName,
boolean oldValue,
boolean newValue)
|
protected boolean
|
firePropertyChange
(java.lang.Object source,
java.lang.String propertyName,
int oldValue,
int newValue)
|
protected boolean
|
firePropertyChange
(java.lang.Object source,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
Container
|
getContainer
()
Returns the parent
Container
of this
Component
.
|
int
|
getHeight
()
Returns the height of this
Component
.
|
Label
|
getLabel
()
Returns the
Label
assigned to this
Component
.
|
java.lang.Object
|
getLimit
()
Gets the layout limit that controls the bounds of this component within the context of the parent
Container
's layout.
|
java.lang.String
|
getLocation
()
|
java.lang.Object
|
getParent
()
Returns the parent
Object
of this
Component
.
|
Style
|
getStyle
()
Returns a
Style
object representing this
Component
's current style settings.
|
java.lang.String
|
getText
()
This method will return the text in the field as a String. |
java.lang.Object
|
getUserObject
()
Returns the user defined
Object
for this
Component
.
|
int
|
getWidth
()
Returns the width of this
Component
.
|
int
|
getX
()
Returns the X coordinate of this
Component
.
|
int
|
getY
()
Returns the Y coordinate of this
Component
.
|
boolean
|
isEnabled
()
Returns whether this
Component
is enabled and therefore supports user interaction.
|
boolean
|
isFocus
()
Returns whether this
Component
has the input focus.
|
boolean
|
isFocusCapable
()
Returns whether this
Component
supports gaining focus.
|
boolean
|
isVisible
()
Returns a boolean value indicating whether this
Component
may be displayed in a window.
|
static void
|
openLocation
(java.lang.String location)
|
static void
|
openLocation
(java.lang.String location,
java.lang.String target)
|
void
|
removeActionListener
(
ActionListener
listener)
Unregister an
ActionListener
from all action event notifications from this component.
|
void
|
removeDropListener
(
DropListener
listener)
|
void
|
removeKeyPressListener
(
KeyPressListener
listener)
Removes the specified
KeyPressListener
from the component.
|
void
|
removePropertyChangeListener
(
PropertyChangeListener
listener)
Removes the specified
PropertyChangeListener
from the component.
|
Component
|
setBounds
(int x,
int y,
int width,
int height)
Assigns the specified width, height, X and Y values to this
Component
atomically, in one operation.
|
void
|
setEnabled
(boolean enabled)
Assigns whether this
Component
is enabled and therefore supports user interaction.
|
void
|
setFocus
(boolean focus)
Assigns whether this
Component
has the input focus.
|
void
|
setFocusCapable
(boolean focusCapable)
Assigns whether this
Component
supports gaining focus.
|
void
|
setHeight
(int height)
Assigns the specified height to this
Component
.
Default: 0 Events: |
Component
|
setLimit
(java.lang.Object limit)
Sets a layout limit that controls the bounds of this component within the context of the parent
Container
's layout.
|
void
|
setLocation
(java.lang.String location)
|
Component
|
setPosition
(int x,
int y)
Assigns the specified X and Y coordinates to this
Component
atomically, in one operation.
|
Component
|
setSize
(int width,
int height)
Assigns the specified width and height to this
Component
atomically, in one operation.
|
void
|
setText
(java.lang.String text)
This method places the text in the String passed into the text field. |
void
|
setUserObject
(java.lang.Object userObject)
Assigns a user defined
Object
to this
Component
.
|
void
|
setVisible
(boolean visible)
Assigns a boolean value indicating whether this
Component
may be displayed in a window.
|
void
|
setWidth
(int width)
Assigns the specified width to this
Component
.
Default: 0 Events: |
void
|
setX
(int x)
Assigns the specified X coordinate to this
Component
.
Default: 0 Events: |
void
|
setY
(int y)
Assigns the specified Y coordinate to this
Component
.
Default: 0 Events: |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
| Methods inherited from interface thinwire.ui. Component |
|---|
addActionListener
,
addActionListener
,
addDropListener
,
addDropListener
,
addKeyPressListener
,
addKeyPressListener
,
addPropertyChangeListener
,
addPropertyChangeListener
,
fireAction
,
fireAction
,
fireAction
,
fireDrop
,
fireDrop
,
fireDrop
,
fireKeyPress
,
fireKeyPress
,
getContainer
,
getHeight
,
getLabel
,
getLimit
,
getParent
,
getStyle
,
getUserObject
,
getWidth
,
getX
,
getY
,
isEnabled
,
isFocus
,
isFocusCapable
,
isVisible
,
removeActionListener
,
removeDropListener
,
removeKeyPressListener
,
removePropertyChangeListener
,
setBounds
,
setEnabled
,
setFocus
,
setFocusCapable
,
setHeight
,
setLimit
,
setPosition
,
setSize
,
setUserObject
,
setVisible
,
setWidth
,
setX
,
setY
|
| Field Detail |
|---|
public static final java.lang.String PROPERTY_LOCATION
| Constructor Detail |
|---|
public Hyperlink ()
public Hyperlink (java.lang.String text)
text
-
public Hyperlink (java.lang.String text, java.lang.String location)
| Method Detail |
|---|
public static void openLocation (java.lang.String location)
public static void openLocation (java.lang.String location, java.lang.String target)
public void setLocation (java.lang.String location)
public java.lang.String getLocation ()
public java.lang.String getText ()
TextComponent
getText
in interface
TextComponent
public void setText (java.lang.String text)
TextComponent
setText
in interface
TextComponent
text
- the text to place in this TextField
public void addPropertyChangeListener (java.lang.String propertyName, PropertyChangeListener listener)
Component
PropertyChangeListener
to this componetn that will be notified when the specified property changes.
Adding a property listener to a component allows your code to react to a state change within the component.
final TextField tf = new TextField(); tf.setEnabled(false); CheckBox cb = new CheckBox("Check me to enable the TextField."); cb.addPropertyChangeListener(CheckBox.PROPERTY_CHECKED, new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent pce) { if (pce.getNewValue() == Boolean.TRUE) { tf.setEnabled(true); } else { tf.setEnabled(false); } } });
addPropertyChangeListener
in interface
Component
propertyName
- the name of the property that the listener will receive change events for.
listener
- the listener that will receive
PropertyChangeEvent
objects upon the property changing.
PropertyChangeListener
,
PropertyChangeEvent
public void addPropertyChangeListener (java.lang.String[] propertyNames, PropertyChangeListener listener)
Component
PropertyChangeListener
to this component that will be notified when any of the specified properties
change. This method is equivalent to calling
Component.addPropertyChangeListener(String, PropertyChangeListener)
once
for each property you want to listen to.
addPropertyChangeListener
in interface
Component
propertyNames
- a string array of property names that the listener will receive change events for.
listener
- the listerner that will receive
PropertyChangeEvent
objects anytime one of the specified
propertyNames of this component change.
Component.addPropertyChangeListener(String, PropertyChangeListener)
,
PropertyChangeListener
,
PropertyChangeEvent
public void removePropertyChangeListener ( PropertyChangeListener listener)
Component
PropertyChangeListener
from the component. If the listener was added for multiple
properties, it will be removed for all of them. NOTE: An exception is NOT thrown if you attempt to remove a listener that
does not exist on this component.
removePropertyChangeListener
in interface
Component
listener
- the listener to remove from the component.
PropertyChangeListener
protected final boolean firePropertyChange (java.lang.Object source, java.lang.String propertyName, int oldValue, int newValue)
protected final boolean firePropertyChange (java.lang.Object source, java.lang.String propertyName, boolean oldValue, boolean newValue)
protected final boolean firePropertyChange (java.lang.Object source, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public void addActionListener (java.lang.String action, ActionListener listener)
Component
ActionListener
to this component that will be notified when the specified action occurs.
addActionListener
in interface
Component
action
- the action to specficially be notified of.
listener
- the event listener that will receive notification.
public void addActionListener (java.lang.String[] actions, ActionListener listener)
Component
ActionListener
to this component that will be notified when any of the specified actions occur.
addActionListener
in interface
Component
actions
- the actions to specficially be notified of.
listener
- the event listener that will receive notification.
public void removeActionListener ( ActionListener listener)
Component
ActionListener
from all action event notifications from this component.
removeActionListener
in interface
Component
listener
- the listener that should no longer receive action event notifications.
public void fireAction ( ActionEvent ev)
Component
fireAction
in interface
Component
ev
- the event to signal
public void fireAction (java.lang.String action)
Component
fireAction
in interface
Component
action
- the action to perform on the component.
public void fireAction (java.lang.String action, java.lang.Object source)
Component
fireAction
in interface
Component
action
- the action to perform on the component.
public void addDropListener ( Component dragComponent, DropListener listener)
addDropListener
in interface
Component
public void addDropListener ( Component [] dragComponents, DropListener listener)
addDropListener
in interface
Component
public void removeDropListener ( DropListener listener)
removeDropListener
in interface
Component
public void fireDrop ( DropEvent ev)
fireDrop
in interface
Component
public void fireDrop ( Component dragComponent)
fireDrop
in interface
Component
public void fireDrop ( Component dragComponent, java.lang.Object dragObject)
fireDrop
in interface
Component
public void addKeyPressListener (java.lang.String keyPressCombo, KeyPressListener listener)
Component
KeyPressListener
that will be notified when the specified key press combination occurs.
For a description and list of valid
keyPressCombo
strings, see the documentation for
KeyPressEvent.encodeKeyPressCombo(boolean, boolean, boolean, String)
.
Establishing keyboard shortcuts for certain features can be a highly effective way to improve the efficiency of your
application. If your application has a
Menu
, then typically the best way to establish such shortcuts is to
simply set the
keyPressCombo
property for each
Menu.Item
. Second to that, using this method to
establish shortcuts on the
Frame
or a
Dialog
will have a similar wide reaching effect.
Occasionally, based on the requirements of your application, you may also use this method to establish shortcuts that are
only valid when a given component has focus.
When a user presses a key and/or combination, the event bubbles up the component hierarchy from the component that currently
has focus and is absorbed by the first
Component
that has a listener asking to be notified of that event.
Therefore, if both a
Component
and a
Container
up the hierarchy are listening for the same
event, only the
Component
will receive notification. There is currently no way to cause the event to continue
bubbling.
Additionally, the keyboard navigation of each
Component
cannot be overridden and you cannot receive
notification of such events. As an example, establishing a
KeyPressListener
for "Space" key on the
CheckBox
, will have no effect because the "Space" key toggles the checked state of that component.
NOTE ON WEBBROWSERS: If no
Component
is listening for a given key press, then the default behavior that the
browser has associated with that key press will occur. Additionally, certain key press events in certain browsers cannot be
entirely circumvented. In such a case, both the action defined by a listener and the browser's default behavior will occur.
An example of this is the F1 key in Internet Explorer. If you establish a listener for the F1 key, the IE help file will open
in addition to whatever action you may have defined.
Application.current().getFrame().addKeyPressListener("Ctrl-Alt-M", new KeyPressListener() { public void keyPress(KeyPressEvent kpe) { MessageBox.confirm("You pressed the following key combination: " + kpe.getKeyPressCombo()); } });
addKeyPressListener
in interface
Component
keyPressCombo
- a key press combo in any dash separated format supported by
KeyPressEvent.normalizeKeyPressCombo(String)
.
listener
- the listener that will receive
KeyPressEvent
objects upon the key press occurring.
KeyPressListener
,
KeyPressEvent
,
KeyPressEvent.encodeKeyPressCombo(boolean, boolean, boolean, String)
,
KeyPressEvent.normalizeKeyPressCombo(String)
public void addKeyPressListener (java.lang.String[] keyPressCombos, KeyPressListener listener)
Component
KeyPressListener
that will be notified when any of the specified key press combinations occur.
For a description and list of valid
keyPressCombo
strings, see the documentation for
KeyPressEvent.encodeKeyPressCombo(boolean, boolean, boolean, String)
.
See
Component.addKeyPressListener(String, KeyPressListener)
for a full semantic description.
addKeyPressListener
in interface
Component
keyPressCombos
- a string array of key press combos, each in any dash separated format supported by
KeyPressEvent.normalizeKeyPressCombo(String)
.
listener
- the listener that will receive
KeyPressEvent
objects when any of the key presses occur.
Component.addKeyPressListener(String, KeyPressListener)
,
KeyPressListener
,
KeyPressEvent
,
KeyPressEvent.encodeKeyPressCombo(boolean, boolean, boolean, String)
,
KeyPressEvent.normalizeKeyPressCombo(String)
public void removeKeyPressListener ( KeyPressListener listener)
Component
KeyPressListener
from the component. If the listener was added for multiple
key press combinations, it will be removed for all of them. NOTE: An exception is NOT thrown if you attempt to remove a listener that
does not exist on this component.
removeKeyPressListener
in interface
Component
listener
- the listener to remove from the component.
KeyPressListener
public void fireKeyPress ( KeyPressEvent ev)
Component
KeyPressEvent
being generated. As a result, all
KeyPressListener
's that are registered on
the specified
keyPressCombo
will be notified.
For a description and list of valid
keyPressCombo
strings, see the documentation for
KeyPressEvent.encodeKeyPressCombo(boolean, boolean, boolean, String)
.
A
KeyPressEvent
that is generated programmatically via this mechansim may, under some circumstances, have a
slightly different behavior than one generated by user activity. The reason for this is that the event is only propagated
within the framework itself and does not actually occur in the client. In general, this should never be an issue because the
desired response to a keypress will be expressly defined by a given
KeyPressListener
and therefore there would be
no dependence on any such side-effect. However, an example of one such
difference, is in terms of a browser's default behavior for a specific key press combination. If you use this mechanism
to trigger an F1 keypress, the browser's default behavior (typically bringing up a help window), will not occur.
fireKeyPress
in interface
Component
ev
- a KeyPressEvent that represents the key press combo you want to signal has occured.
public void fireKeyPress (java.lang.String keyPressCombo)
Component
fireKeyPress
in interface
Component
keyPressCombo
- a key press combo in any dash separated format supported by
KeyPressEvent.normalizeKeyPressCombo(String)
.
KeyPressEvent.encodeKeyPressCombo(boolean, boolean, boolean, String)
,
KeyPressEvent.normalizeKeyPressCombo(String)
public java.lang.Object getParent ()
Component
Object
of this
Component
. If you specifically need the parent
Container
of this
Component
use
Component.getContainer()
instead.
Under the majority of situations, the returned value is either a
Container
or
null
since a
Component
will either be a child of a
Container
or not attached to any object. However, in some
cases the parent of the
Component
may be another
Component
, or a completely different kind of
Object
. For example, in the case of the
DropDownGridBox
, there is an actual
GridBox
that is a child of the drop down. Therefore, the parent of that
GridBox
would be the
DropDownGridBox
. Another situation exists when you use a multi-tiered
GridBox
, meaning a
GridBox
that has one or more "pop-up" child
GridBox
's. Under that scenario, the parent of the
child's
GridBox
is actually an instance of
GridBox.Row
and the parent of the row is the
GridBox
.
getParent
in interface
Component
Object
of this
Component
, or
null
if no parent exists.
Component.getContainer()
public Container getContainer ()
Component
Container
of this
Component
. Unlike
getParent()
, this
method guarantees that if a non-null value is returned, it will be a
Contaienr
.
getContainer
in interface
Component
Container
of this
Component
, or
null
if no parent exists.
Component.getParent()
public Label getLabel ()
Component
Label
assigned to this
Component
. This property is part of a two-way relationship
that is established by the
Label.setLabelFor(Component)
property. There is no
setLabel
method, instead use
Label.setLabelFor(Component)
.
getLabel
in interface
Component
Label
assigned to this
Component
.
public java.lang.Object getUserObject ()
Component
Object
for this
Component
.
getUserObject
in interface
Component
Object
for this
Component
, or null if no value has been specified.
Component.setUserObject(Object)
public void setUserObject (java.lang.Object userObject)
Component
Object
to this
Component
. This property has no direct effect
on the state of the
Component
. Instead, it provides a general purpose storage
mechanism to the developer that allows any kind of data to be associated to this
Component
.
For complex applications, alternate methods of associating state to a
Component
will likely
serve your design more thoroughly. However, there are a number of cases where this flexibility could be useful
and therefore the framework supports the concept.
Refer to the documenation on
Application.addGlobalPropertyChangeListener(String, PropertyChangeListener)
for an
example of a potential use of this property.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_USER_OBJECT ) to be generated.
setUserObject
in interface
Component
userObject
- an
Object
of any type that is to be associated with this
Component
.
Component.getUserObject()
,
Application.addGlobalPropertyChangeListener(String, PropertyChangeListener)
,
Component.PROPERTY_USER_OBJECT
,
PropertyChangeEvent
public boolean isEnabled ()
Component
Component
is enabled and therefore supports user interaction.
isEnabled
in interface
Component
Component
supports user interaction, false otherwise.
Component.setEnabled(boolean)
public void setEnabled (boolean enabled)
Component
Component
is enabled and therefore supports user interaction.
The form of user iteraction this property controls, depends on the specific kind of
Component
itself. However, in general, all keyboard interaction and mouse interaction is disabled by
setting this property to false.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_ENABLED ) to be generated.
setEnabled
in interface
Component
enabled
- true to allow user interaction, false to disallow it.
Component.isEnabled()
,
Component.PROPERTY_ENABLED
,
PropertyChangeEvent
public boolean isFocusCapable ()
Component
Component
supports gaining focus.
Divider
,
Image
and
Label
.
isFocusCapable
in interface
Component
Component
supports gaining focus, false otherwise.
Component.setFocusCapable(boolean)
,
Component.setFocus(boolean)
public void setFocusCapable (boolean focusCapable)
Component
Component
supports gaining focus.
Divider
,
Image
and
Label
.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_FOCUS_CAPABLE ) to be generated.
setFocusCapable
in interface
Component
focusCapable
- true to allow this component to receive focus, false to disallow it.
Component.isFocusCapable()
,
Component.PROPERTY_FOCUS_CAPABLE
,
Component.setFocus(boolean)
,
PropertyChangeEvent
public final boolean isFocus ()
Component
Component
has the input focus. If this is a
Container
, then this method
will return true if a child
Component
has the focus. In such a case, you can use the
Container.getChildWithFocus()
method to get a reference to that child. Similarly, if you want to find the
child
Component
that has the focus anywhere in the current
Frame
or
Dialog
, you
can use the
Container.getComponentWithFocus()
method.
Default: false. However, at rendering time, if no component in the window has focus, the first focus capable component is given focus.
See the
Component.setFocus(boolean)
method for a full description of focus details.
isFocus
in interface
Component
Component
has the input focus, false otherwise.
Component.setFocus(boolean)
,
Container.getComponentWithFocus()
,
Container.getChildWithFocus()
public void setFocus (boolean focus)
Component
Component
has the input focus. When this
Component
has the input focus, it will receive all keyboard events generated by the user. Therefore,
if this
Component
supports text editing and it has focus, the user can type a value
into it's field. Additionally, any keyboard navigation supported by this
Component
or keyboard shortcuts added by a developer become available upon gaining focus. Conversely, when this
Component
no longer has
focus, it will receive no keyboard events.
Default: false. However, at rendering time, if no component in the window has focus, the first focus capable component is given focus.
Details:
The simplest of all cases, is when this
Component
has not yet been added to a
Container
.
In that scenario, the focus property is simply set to true and no other effect occurs. Later, when this
Component
is added to a
Container
it will be given the focus according to the guidelines
that follow.
As a general rule,
only a single
Component
can have the focus per
Frame
or
Dialog
container hierarchy. In terms of the user interface, only a single
Component
will actually
have the focus regardless of whether a
Dialog
and the
Frame
have components with focus.
In such a case, the actual focus is determined based on which window is currently active.
Since only one
Component
per window can have focus, giving this
Component
focus
will cause the prior
Component
of the window to lose focus. In the most common case, both this
Component
and the
Component
losing focus will be siblings in the same
Container
.
In that case, the focus property of the
Component
losing focus is simply set to false whereas the
focus property of this
Component
is set to true.
More complex scenarios arise when the
Component
losing focus and this
Component
are
not siblings in the same
Container
. In those cases, the order in which focus is lost and gained
occurs as follows:
Container
between both the
Component
losing focus
and this
Component
is found. This shared parent and any
Container
above it in the hierarchy will be left alone.
false
for each
Container
in the hierarchy that contains the
Component
losing focus, as well as the
component itself. This is done in top down order, so that the top most
Container
loses focus first, followed
by every container between it and the
Component
losing focus next, and with the component itself losing focus last.
for each
Container
in the hierarchy that contains this
Component
, as well as the
component itself. This is done in top down order, so that the top most
Container
gains focus first, followed
by every container between it and the
Component
gaining focus next, and with this component gaining focus last.
The final case to be aware of is if you directly set this
Component
's focus to false. In that case,
the same loss of focus rules outlined above apply. There is simply no gaining of focus that occurs by any component.
Therefore you cause the window to have no
Component
with focus, with the except of the parent
Container
of this
Component
.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_FOCUS ) to be generated. Additionally,
similar event generation may occur for other components according to the details outlined above.
setFocus
in interface
Component
focus
- true to give this
Component
and it's parent containers focus, false otherwise.
Component.isFocus()
,
Container.getComponentWithFocus()
,
Container.getChildWithFocus()
public Style getStyle ()
Component
Style
object representing this
Component
's current style settings. NOTE: This method
will never return null.
getStyle
in interface
Component
Style
object representing this
Component
's current style settings.
Style
public int getX ()
Component
Component
.
getX
in interface
Component
Component
Component.setX(int)
public void setX (int x)
Component
Component
.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_X ) to be generated.
setX
in interface
Component
x
- the x coordinate (in pixels) to assign to this
Component
Component.getX()
,
Component.setPosition(int, int)
,
Component.setBounds(int, int, int, int)
,
Component.PROPERTY_X
,
PropertyChangeEvent
public int getY ()
Component
Component
.
getY
in interface
Component
Component
Component.setY(int)
public void setY (int y)
Component
Component
.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_Y ) to be generated.
setY
in interface
Component
y
- the y coordinate (in pixels) to assign to this
Component
Component.getY()
,
Component.setPosition(int, int)
,
Component.setBounds(int, int, int, int)
,
Component.PROPERTY_Y
,
PropertyChangeEvent
public Component setPosition (int x, int y)
Component
Component
atomically, in one operation.
Aside from the convienence provided by this method, it also guarantees that both of the provided
X and Y coordinates are legal values before the values are committed. The primary benefit of this
is that no
PropertyChangeEvent
's will be generated until both values have been set.
Events:
This method may generate
PropertyChangeEvent
's. See the documenation of
setX
and
setY
for more details.
setPosition
in interface
Component
x
- the x coordinate (in pixels) to assign to this
Component
y
- the y coordinate (in pixels) to assign to this
Component
Component
so that you can perform operations like container.getChildren().add(new Button().setPosition(x, y))
Component.setX(int)
,
Component.setY(int)
,
Component.setBounds(int, int, int, int)
,
Component.PROPERTY_X
,
Component.PROPERTY_Y
,
PropertyChangeEvent
public int getWidth ()
Component
Component
.
getWidth
in interface
Component
Component
Component.setWidth(int)
public void setWidth (int width)
Component
Component
.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_WIDTH ) to be generated.
setWidth
in interface
Component
width
- the width (in pixels) to assign to this
Component
Component.getWidth()
,
Component.setSize(int, int)
,
Component.setBounds(int, int, int, int)
,
Component.PROPERTY_WIDTH
,
PropertyChangeEvent
public int getHeight ()
Component
Component
.
getHeight
in interface
Component
Component
Component.setHeight(int)
public void setHeight (int height)
Component
Component
.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_HEIGHT ) to be generated.
setHeight
in interface
Component
height
- the height (in pixels) to assign to this
Component
Component.getHeight()
,
Component.setSize(int, int)
,
Component.setBounds(int, int, int, int)
,
Component.PROPERTY_HEIGHT
,
PropertyChangeEvent
public Component setSize (int width, int height)
Component
Component
atomically, in one operation.
Aside from the convienence provided by this method, it also guarantees that both of the provided
width and height are legal values before the values are committed. The primary benefit of this
is that no
PropertyChangeEvent
's will be generated until both values have been set.
Events:
This method may generate
PropertyChangeEvent
's. See the documenation of
setWidth
and
setHeight
for more details.
setSize
in interface
Component
width
- the width (in pixels) to assign to this
Component
height
- the height (in pixels) to assign to this
Component
Component
so that you can perform operations like container.getChildren().add(new Button().setSize(width, height))
Component.setWidth(int)
,
Component.setHeight(int)
,
Component.setBounds(int, int, int, int)
,
Component.PROPERTY_WIDTH
,
Component.PROPERTY_HEIGHT
,
PropertyChangeEvent
public Component setBounds (int x, int y, int width, int height)
Component
Component
atomically, in one operation.
Aside from the convienence provided by this method, it also guarantees that all of the provided
values are legal before they are committed. The primary benefit of this
is that no
PropertyChangeEvent
's will be generated until all values have been set.
Events:
This method may generate
PropertyChangeEvent
's. See the documenation of
setX
,
setY
,
setWidth
and
setHeight
for more details.
setBounds
in interface
Component
x
- the x coordinate (in pixels) to assign to this
Component
y
- the y coordinate (in pixels) to assign to this
Component
width
- the width (in pixels) to assign to this
Component
height
- the height (in pixels) to assign to this
Component
Component
so that you can perform operations like container.getChildren().add(new Button().setBounds(x, y, width, height))
Component.setX(int)
,
Component.setY(int)
,
Component.setWidth(int)
,
Component.setHeight(int)
,
Component.setBounds(int, int, int, int)
,
Component.PROPERTY_X
,
Component.PROPERTY_Y
,
Component.PROPERTY_WIDTH
,
Component.PROPERTY_HEIGHT
,
PropertyChangeEvent
public java.lang.Object getLimit ()
Component
Container
's layout.
getLimit
in interface
Component
Container
's layout, or null if no limit is specified.
Component.setLimit(Object)
,
Container.getLayout()
,
Container.setLayout(thinwire.ui.layout.Layout)
,
Layout
public Component setLimit (java.lang.Object limit)
Component
Container
's layout.
The type of limit object that is acceptable depends on the
Layout
that is specified for the parent
Container
.
Default:
null
setLimit
in interface
Component
limit
- a layout limit to use for the
Container
's layout, or null to clear the limit.
Component
so that you can perform operations like container.getChildren().add(new Button().setLimit(...))
Component.PROPERTY_LIMIT
,
Component.getLimit()
,
Container.getLayout()
,
Container.setLayout(thinwire.ui.layout.Layout)
,
Layout
,
PropertyChangeEvent
public boolean isVisible ()
Component
Component
may be displayed in a window. See
the documentation of
Component.setVisible(boolean)
for further details about this property.
Dialog
and
Frame
containers.
isVisible
in interface
Component
Component
may be displayed, fasle otherwise
Component.setVisible(boolean)
public void setVisible (boolean visible)
Component
Component
may be displayed in a window.
Dialog
and
Frame
containers.
This
Component
will not actually be displayed unless it is visible and added to a
Container
hierarchy in which all of the containers are also visible and the top-level
Container
is a visible
Frame
or
Dialog
. Once a
Component
has been displayed, toggling this property
results in a light-weight operation that simply hides/shows this
Component
. This may sound trivial, but the
difference is important when you need to maximize the performance of your application. For instance, it is a faster to toggle
the visibility of components then it is to add/remove the components from a displayed
Container
. This is
because the first time a
Component
is displayed, the entire state must be rendered. In contrast, when you
toggle visibility, the
Component
remains in memory in a fully rendered form, it is just not visible to the
user.
If the prior value and new value differ, setting this property causes a
PropertyChangeEvent
( propertyName = PROPERTY_VISIBLE ) to be generated.
setVisible
in interface
Component
visible
- true to indicate this
Component
may be displayed, false otherwise
Component.isVisible()
,
Component.PROPERTY_VISIBLE
,
Container.getChildren()
,
PropertyChangeEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Home
Edit Account
Email
-----
-----
Address
Address 2
City
State
Choose...
...
Zip
Timezone
Choose...
...
Email
Email
Contact Type
Phone
Area Code
Line Number
Contact Type
Address


PLAY
Wagers
Tournaments
LEADERBOARD
SUPPORT
SHOP
Daniyal
General setting
Profile Settings
My Bank
Logout
PREVIOUS
NEXT
Slide and Select the Game of your choice!


InvoiceCreate
class InvoiceCreate extends AbstractInvoice
Create a new accounts receivable invoice record
Traits
Methods
Initializes the class with the given parameters.
Details
in AbstractFunction at line line 35
getControlId()
Get control ID
in AbstractFunction at line line 46
setControlId($controlId = null)
Set control ID
in AbstractFunction at line line 67
__construct(string $controlId = null)
Initializes the class with the given parameters.
at line line 33
writeXml(XMLWriter $xml)
in CustomFieldsTrait at line line 33
array
getCustomFields()
Get custom fields
in CustomFieldsTrait at line line 43
setCustomFields(array $customFields)
Set custom fields
in AbstractInvoice at line line 104
int|string
getRecordNo()
Get record number
in AbstractInvoice at line line 114
setRecordNo(int|string $recordNo)
Set record number
in AbstractInvoice at line line 124
string
getCustomerId()
Get customer ID
in AbstractInvoice at line line 134
setCustomerId(string $customerId)
Set customer ID
in AbstractInvoice at line line 144
DateType
getTransactionDate()
Get transaction date
in AbstractInvoice at line line 154
setTransactionDate(DateType $transactionDate)
Set transaction date
in AbstractInvoice at line line 164
DateType
getGlPostingDate()
Get GL posting date
in AbstractInvoice at line line 174
setGlPostingDate(DateType $glPostingDate)
Set GL posting date
in AbstractInvoice at line line 184
string
getAction()
Get action
in AbstractInvoice at line line 195
setAction(string $action)
Set action
in AbstractInvoice at line line 205
int|string
getSummaryRecordNo()
Get summary record number
in AbstractInvoice at line line 215
setSummaryRecordNo(int|string $summaryRecordNo)
Set summary record number
in AbstractInvoice at line line 225
string
getInvoiceNumber()
Get invoice number
in AbstractInvoice at line line 235
setInvoiceNumber(string $invoiceNumber)
Set invoice number
in AbstractInvoice at line line 245
string
getDescription()
Get description
in AbstractInvoice at line line 255
setDescription(string $description)
Set description
in AbstractInvoice at line line 265
string
getExternalId()
Get external ID
in AbstractInvoice at line line 275
setExternalId(string $externalId)
Set external ID
in AbstractInvoice at line line 285
string
getBaseCurrency()
Get base currency
in AbstractInvoice at line line 295
setBaseCurrency(string $baseCurrency)
Set base currency
in AbstractInvoice at line line 305
string
getTransactionCurrency()
Get transaction currency
in AbstractInvoice at line line 315
setTransactionCurrency(string $transactionCurrency)
Set transaction currency
in AbstractInvoice at line line 325
DateType
getExchangeRateDate()
Get exchange rate date
in AbstractInvoice at line line 335
setExchangeRateDate(DateType $exchangeRateDate)
Set exchange rate date
in AbstractInvoice at line line 345
float
getExchangeRateValue()
Get exchange rate value
in AbstractInvoice at line line 355
setExchangeRateValue(float $exchangeRateValue)
Set exchange rate value
in AbstractInvoice at line line 365
string
getExchangeRateType()
Get exchange rate type
in AbstractInvoice at line line 375
setExchangeRateType(string $exchangeRateType)
Set exchange rate type
in AbstractInvoice at line line 385
boolean
isDoNotPostToGL()
Get do not post to general ledger
in AbstractInvoice at line line 395
setDoNotPostToGL(boolean $doNotPostToGL)
Set do not post to general ledger
in AbstractInvoice at line line 405
DateType
getDueDate()
Get due date
in AbstractInvoice at line line 415
setDueDate(DateType $dueDate)
Set due date
in AbstractInvoice at line line 425
string
getPaymentTerm()
Get payment term
in AbstractInvoice at line line 435
setPaymentTerm(string $paymentTerm)
Set payment term
in AbstractInvoice at line line 445
string
getReferenceNumber()
Get reference number
in AbstractInvoice at line line 455
setReferenceNumber(string $referenceNumber)
Set reference number
in AbstractInvoice at line line 465
boolean
isOnHold()
Get on hold
in AbstractInvoice at line line 475
setOnHold(boolean $onHold)
Set on hold
in AbstractInvoice at line line 485
string
getBillToContactName()
Get bill to contact name
in AbstractInvoice at line line 495
setBillToContactName(string $billToContactName)
Set bill to contact name
in AbstractInvoice at line line 505
string
getShipToContactName()
Get ship to contact name
in AbstractInvoice at line line 515
setShipToContactName(string $shipToContactName)
Set ship to contact name
in AbstractInvoice at line line 525
string
getAttachmentsId()
Get attachments ID
in AbstractInvoice at line line 535
setAttachmentsId(string $attachmentsId)
Set attachments ID
in AbstractInvoice at line line 545
AbstractInvoiceLine[]
getLines()
Get invoice lines
in AbstractInvoice at line line 555
setLines(AbstractInvoiceLine[] $lines)
Set invoice lines


Mrinal Kanti Das is police observer for Jharkhand
by Special CorrespondentA day after four policemen were killed in a Naxal attack in Jharkhand, the Election Commission (EC) on Saturday appointed a retired IPS officer as a special police observer for the Assembly election in the State.
Mrinal Kanti Das, an IPS officer of the 1977 batch, retired as Manipur’s Director-General of Police.
He was deputed as the special observer for Tripura and Mizoram during the 2019 Lok Sabha election.
“The Election Commission took the decision in light of the specific challenges of Left-Wing Extremism affecting the law and order situation in Jharkhand.”
“Mr. Das will reach Ranchi today [Saturday] to take up his responsibility and oversee the deployment [of forces] and [deal with] other security issues,” the Election Commission said in a statement.


Skype version 8.54 update now available with Translated Conversations feature
by PradeepMicrosoft yesterday announced the release of Skype version 8.54. This new update comes with improvements to Translated Conversations which will allow you to chat with people all over the world in a different languages. With this update, the Skype Translator bot will be retired and replaced with Translated Conversations. This update also brings improved detection of missing permissions for screen sharing on macOS users. Like every other update, Microsoft has also included some bug fixes and stability improvements as well.
Microsoft Skype team mentioned the following known issue for Skype users in Brazil.
If you are using Skype in Brazil and if your chat message timestamps are one hour off from your system time, we are aware of this issue and working on fixing it. You can use Skype for Web in Chrome or Edge as a temporary workaround.
Source: Microsoft


| strings2factors {car} | R Documentation |
Converts the character variables (or a subset of these variables) in a data frame to factors, with optional control of the order of the resulting factor levels.
strings2factors(object, which, not, exclude.unique, levels, verbose, ...) ## S3 method for class 'data.frame' strings2factors(object, which, not, exclude.unique=TRUE, levels=list(), verbose=TRUE, ...)
object |
a data frame or an object inheriting from the |
which |
an optional character vector of names or column numbers of the character variables to be converted to factors; if absent, all character variables will be converted, except as excluded by the |
not |
an optional character vector of names or column numbers of character variables not to be converted to factors. |
exclude.unique |
if |
levels |
an optional named list, each element of which is a character vector of levels of the corresponding factor. This argument allows you to control the order of levels of the factor; if omitted, or if a particular factor is omitted from the list, the levels will be in the default alphabetic order. |
verbose |
if |
... |
not used. |
a data frame with (some) character variables replaced by corresponding factors.
John Fox<EMAIL_ADDRESS>M <- Moore # from the carData package M$partner <- as.character(Moore$partner.status) M$fcat <- as.character(Moore$fcategory) M$names <- rownames(M) # values are unique str(M) str(strings2factors(M)) str(strings2factors(M, levels=list(partner=c("low", "high"), fcat=c("low", "medium", "high")))) str(strings2factors(M, which="partner", levels=list(partner=c("low", "high")))) str(strings2factors(M, not="partner", exclude.unique=FALSE))


Use AWS Config to evaluate the configuration settings of your AWS resources. You do this by creating AWS Config rules, which represent your ideal configuration settings. AWS Config provides customizable, predefined rules called managed rules to help you get started. You can also create your own custom rules. While AWS Config continuously tracks the configuration changes that occur among your resources, it checks whether these changes violate any of the conditions in your rules. If a resource violates a rule, AWS Config flags the resource and the rule as noncompliant.
For example, when an EC2 volume is created, AWS Config can evaluate the volume against a rule that requires volumes to be encrypted. If the volume is not encrypted, AWS Config flags the volume and the rule as noncompliant. AWS Config can also check all of your resources for account-wide requirements. For example, AWS Config can check whether the number of EC2 volumes in an account stays within a desired total, or whether an account uses AWS CloudTrail for logging.
The AWS Config console shows the compliance status of your rules and resources. You can see how your AWS resources comply overall with your desired configurations, and learn which specific resources are noncompliant. You can also use the AWS CLI, the AWS Config API, and AWS SDKs to make requests to the AWS Config service for compliance information.
By using AWS Config to evaluate your resource configurations, you can assess how well your resource configurations comply with internal practices, industry guidelines, and regulations.
AWS Config provides AWS managed rules, which are predefined, customizable rules that AWS Config uses to evaluate whether your AWS resources comply with common best practices. For example, you could use a managed rule to quickly start assessing whether your Amazon Elastic Block Store (Amazon EBS) volumes are encrypted or whether specific tags are applied to your resources. You can set up and activate these rules without writing the code to create an AWS Lambda function, which is required if you want to create custom rules. The AWS Config console guides you through the process of configuring and activating a managed rule. You can also use the AWS Command Line Interface or AWS Config API to pass the JSON code that defines your configuration of a managed rule.
You can customize the behavior of a managed rule to suit your needs. For example, you can define the rule’s scope to constrain which resources trigger an evaluation for the rule, such as EC2 instances or volumes. You can customize the rule’s parameters to define attributes that your resources must have to comply with the rule. For example, you can customize a parameter to specify that your security group should block incoming traffic to a specific port number.
After you activate a rule, AWS Config compares your resources to the conditions of the rule. After this initial evaluation, AWS Config continues to run evaluations each time one is triggered. The evaluation triggers are defined as part of the rule, and they can include the following types:
Configuration changes – AWS Config triggers the evaluation when any resource that matches the rule’s scope changes in configuration. The evaluation runs after AWS Config sends a configuration item change notification.
Periodic – AWS Config runs evaluations for the rule at a frequency that you choose (for example, every 24 hours).
AWS Config allows you to remediate noncompliant resources that are evaluated by AWS Config Rules. AWS Config applies remediation using AWS Systems Manager Automation documents. These documents define the actions to be performed on noncompliant AWS resources evaluated by AWS Config Rules. You can associate SSM documents by using AWS Management Console or by using APIs.
AWS Config provides a set of managed automation documents with remediation actions. You can also create and associate custom automation documents with AWS Config rules.
To apply remediation on noncompliant resources, you can either choose the remediation action you want to associate from a prepopulated list or create your own custom remediation actions using SSM documents. AWS Config provides a recommended list of remediation action in the AWS Management Console.
In the AWS Management Console, you can either choose to manually or automatically remediate noncompliant resources by associating remediation actions with AWS Config rules. With all remediation actions, you can either choose manual or automatic remediation.


git scp
Copy files from the current working tree to the working directory of a remote repository.
Part of `git-extras`. Uses `rsync` to transfer files.
More information: home page
- Copy unstaged files to a specific remote:
git scp remote_name
- Copy staged and unstaged files to a remote:
git scp remote_name HEAD
- Copy files that has been changed in the last commit and any staged or unstaged files to a remote:
git scp remote_name HEAD~1
- Copy specific files to a remote:
git scp remote_name path/to/file1 path/to/file2 ...
- Copy a specific directory to a remote:
git scp remote_name path/to/directory


III. Objects and the DOM
Created by Ben Glassman / github.com/benglass
Objects let us store a related values together in one place.
var task1 = {
name: 'Grocery Shopping',
priority: 1,
isComplete: false
};
var task2 = {
name: 'Walk the dog',
priority: 2,
isComplete: true
};
The different pieces of data associated with an object are called properties. You can reference them using a period and then the property name. This is called "dot notation".
var task1 = {
name: 'Grocery Shopping',
priority: 1,
isComplete: false
};
console.log(task1.name); // 'Grocery Shopping'
You can also use "bracket notation" (like arrays)
console.log(task1['name']); // 'Grocery Shopping'
You can use dot or bracket notation to change properties
var task1 = {
name: 'Grocery Shopping',
priority: 1,
isComplete: false
};
task1.isComplete = true;
Add new properties
task1.dateCompleted = '03/07/2015';
Remove properties
task1.isComplete = false;
delete task1.dateCompleted;
Since arrays can hold any type of value, they can also hold objects
var taskList = [
{ name: 'Grocery Shopping', isComplete: false },
{ name: 'Wash the dog', isComplete: true },
{ name: 'Learn to code', isComplete: false }
];
for (var i = 0; i < taskList.length; i++) {
var task = taskList[i];
if (task.isComplete) {
console.log(task.name + ' is complete');
} else {
console.log(task.name + ' is not complete');
}
}
Just like other data types, objects can be passed into functions:
var describeTask = function(task) {
var status = '';
if (task.isComplete) {
status = 'complete';
} else {
status = 'incomplete';
}
console.log('The task ' + task.name + ' is ' + status);
}
var myTask = {
name: 'Grocery Shopping',
isComplete: false
};
describeTask(myTask);
Lets update the renderTask function to accept a task object as an argument instead of just the task name.
Since object properties can be any types of value, they can also be functions. When object properties are functions they are called methods. Inside an object method, the variable this refers to the object.
var task = {
name: 'Grocery Shopping',
isComplete: false,
complete: function() {
this.isComplete = true;
}
};
You can call object methods using dot notation:
task.complete();
Have you noticed any problems with how we have been creating task objects?
Since functions can have return values we can write a function that creates an object and returns it. This keeps all the code for creating the object in one place so it can be changed easily.
var createTask = function(taskName) {
var task = {
name: taskName,
isComplete: false,
complete: function() {
this.complete = true;
}
};
return task;
}
var task1 = createTask('Grocery Shopping');
var task2 = createTask('Wash the Dog');
JS provides several built-in objects with built-in methods and properties:
Math.floor(14.5)
new Date()
or for a specific date using new Date(1982, 2, 25)
Use the built in Date object to track the date and time a task was completed.
var renderTaskList = function(taskList) {
for (var i = 0; i < taskList.length; i++) {
var task = taskList[i];
renderTask(task);
}
}
var taskList = [
createTask('Grocery Shopping'),
createTask('Wash the Dog')
];
renderTaskList(taskList);
An HTML page is referred to by javascript as the document. Javascript uses an object called document
to access and modify the HTML page. The DOM (Document Object Model) is the name for this approach of representing HTML pages as an object. The DOM gives us a way to access and modify the HTML.
<!DOCTYPE html>

<title>Test Page</title>

My Page

Hello World!

The web browser creates an variable called document that holds an object which represents the DOM for the HTML page. The document object has properties that allow us to access and modify parts of the HTML page.
console.log(document.head); // The  tag
console.log(document.title); // Contents of the title tag
console.log(document.head.children); // Array of the html tags inside the
console.log(document.body); // The body tag
console.log(document.body.innerHTML); // The HTML inside the body tag
You can find HTML elements by id using the method:
document.getElementById('id');
To find:
We would use:
var taskListElement = document.getElementById('task-list');
You can find all HTML elements based on tag (All paragraph tags) using this method:
document.getElementsByTagName('p');
To find:

Daisy

Tulip

We would use:
var listItems = document.getElementsByTagName('li');
for (var i =0; i < listItems.length; i++) {
var listItem = listItems[i];
}
In newer browsers, you can use other methods too.
Available in IE9+, FF3.6+, Chrome 17+, Safari 5+:
document.getElementsByClassName('is-complete');
Available in IE8+, FF3.6+, Chrome 17+, Safari 5+:
document.querySelector('.some-class'); // Find the first matching element
document.querySelectorAll('.another-class'); // Find all matching elements
Any method that starts with "getElement" will return a single node.
document.getElementById('uniqueID'); //returns a single node
Any method that starts with "getElements" will return a array of nodes. To modify a single node, you will need to use bracket notation to select the correct one.
document.getElementsByTagName('p'); //returns multiple nodes
var specficParagraph = document.getElementsByTagName('p')[2];
You can access and change attributes of DOM nodes using dot notation.
To get this text box value:
<input type="text" class="task-name-field" value="User entered value" />
We could get the value attribute this way:
var taskNameField = document.querySelector('.task-name-field');
console.log(taskNameField.value);
Events happen when the user interacts with your web page. For example clicking on a link. What other events can you think of?
We can run a function when events happen on an HTML element. A function that runs when an event happens is called an event handler or listener.
var taskNameField = document.querySelector('.task-name-field');
taskNameField.onchange = function() {
console.log('task name field value was changed!');
};
Just like inside of object methods, this has a special meaning in event handlers. It refers to the element where the event was triggered.
var taskNameField = document.querySelector('.task-name-field');
taskNameField.onchange = function() {
console.log('Task name is :' + this.value);
};
Sometimes we need to prevent the default behavior that would occur after an event. You can do this by returning false from the event handler.
var btnSubmit = document.querySelector('.btn-submit');
btnSubmit.onsubmit = function() {
console.log('We stopped the form submission!');
return false;
};
Another way of doing this is using the event object that is passed into your event handler.
btnSubmit.onsubmit = function(event) {
console.log('We stopped the form submission!');
event.preventDefault();
};


globallogic
Businessmodel of GlobalLogic
Customer Segments
GlobalLogic has a mass market business model, with no significant differentiation between customer segments. It targets its offerings at firms across industries that need product development services.
Value Proposition
GlobalLogic offers four primary value propositions: accessibility, convenience, performance, and brand/status.
The company creates accessibility by offering a wide variety of options. It has acquired numerous firms since its founding. These include offshore software R&D services vendors Lambent Technologies, InterObject, and Cubika; Rofous Software, a content engineering firm; and Method Incorporated, a brand experience agency. These additions have greatly expanded its capabilities.
The company creates convenience by simplifying operations for its clients. It provides automated solutions for pattern detection, optical character recognition, semantic analytics, and more, with tools that analyze video, text, and imaging layer media. It also offers real-time monitoring services to assists customers in the management of their social media and collaborative content.
The company has demonstrated strong performance through tangible results. High-profile examples of specific positive outcomes for customers include the following:
- Stellar, an aviation startup, used GlobalLogic’s services to build a Minimum Viable Product (MVP) app and a connected operator system, resulting in three operators signing on as investors
- Innovative Interfaces used GlobalLogic’s services to build Innovative India, a service, support, and development center, resulting in the resolution of over 10,000 support tickets within a year
- Avid, a digital media firm used GlobalLogic’s services to supplement its R&D personnel, resulting in a 50% reduction in labor costs and annual savings of as much as $20 million
- Pollogen, a provider of medical aesthetic solutions, used GlobalLogic’s services to develop the graphical user interface for its geneO+ appliance, resulting in over 1,000 unit sales
-
Fluid, a digital shopping site builder, used GlobalLogic’s services to develop new products Fluid Socialize and Fluid Configure, which outperformed other online retail solutions by 150-200% The company has established a strong brand due to its performance. It has more than 10,000 employees who work with hundreds of companies worldwide, delivering over 1,500 projects annually. Its clients include many *Fortune *500 firms, such as Microsoft, Coca-Cola, Amazon, Verizon, Cisco Systems, and Samsung. Lastly, it has won many honors, including the following:
- Recognition as one of the“50 Best Companies To Work For” by SiliconIndia (2014)
- Recognition as one of the “Top 25 Companies for Work-Life Balance” by Glassdoor (2013)
- Recognition as a “Top 100 Global Services Provider“ by Global Services Media (2012)
- Recognition as an AlwaysOn Global 250 Company (2010)
- Ranking on the “Technology Fast 50 Fastest Growing Companies“ list by Deloitte (2008) ### Channels
GlobalLogic’s main channel is its direct sales team. The company promotes its offering through its website, social media pages, and participation in trade shows, forums, summits, and conferences.
Customer Relationships
GlobalLogic’s customer relationship is primarily of a dedicated personal assistance nature. Employees work closely with customers as they assist them with their product development activities. That said, there is a self-service component. The company’s website features a “News and Insights” section that includes self-help resources such as white papers, blogs, and videos.
Key Activities
GlobalLogic’s business model entails designing and developing its services for customers.
Key Partners
GlobalLogic does not maintain any formal partnership programs.
Key Resources
GlobalLogic’s main resources are its human resources, namely the R&D employees that design and develop its services. Its staffers work out of “Delivery Centers” in the U.S., India, Ukraine, Argentina, Poland, Slovakia, and Croatia and “Method Studios” in the U.S. and UK. As a startup it has relied heavily on funding from outside parties, raising $42 million from two investors as of October 2013.
Cost Structure
GlobalLogic has a value-driven structure, aiming to provide a premium proposition through significant personal service and frequent product enhancements.
Its biggest cost driver is likely cost of services, a variable expense. Other major drivers are in the areas of product development, research/development, and sales/marketing, all fixed costs.
Revenue Streams
GlobalLogic has one revenue source: revenues from the contracts clients sign to obtain its portfolio of services. Sales staff must be contacted directly for pricing as it varies by client and other factors.


{% trans 'This is used in your code and must be a valid C identifier.' %}
{% trans 'Each Published media item must have a unique ID.' %}
{% trans 'This references the image which will be displayed if this Published Media is used as the icon of an AppGlanceSlice.' %}
{% trans 'This references the resource images which will be displayed if this Published Media is used for the various sizes of a timeline icon. Tiny, small and large must have sizes of 25x25, 50x50 and 80x80 respectively.' %}


CreatePlane ( [sub_divs][,parent] )
Parameters:
| sub_divs - sub divisions of plane parent (optional) - parent entity of plane |
Description:
| Creates a plane entity and returns its handle. A plane entity is basically a flat, infinite 'ground'. It is useful for outdoor games where you never want the player to see/reach the edge of the game world. The optional sub_divs parameter specified how sub divisions of polygons the plane will have. Although a plane is flat and so adding extra polygons will not make it smoother, adding more polygons will allow more vertices to be lit for more detailed lighting effects. The optional parent parameter allow you to specify a parent entity for the plane so that when the parent is moved the child plane will move with it. However, this relationship is one way; applying movement commands to the child will not affect the parent. Specifying a parent entity will still result in the plane being created at position 0,0,0 rather than at the parent entity's position. See also: CreateMirror. |
| ; CreatePlane Example ; ------------------- Graphics3D 640,480 SetBuffer BackBuffer() camera=CreateCamera() PositionEntity camera,0,1,0 light=CreateLight() RotateEntity light,90,0,0 ; Create plane plane=CreatePlane() grass_tex=LoadTexture( "media/mossyground.bmp" ) EntityTexture plane,grass_tex While Not KeyDown( 1 ) If KeyDown( 205 )=True Then TurnEntity camera,0,-1,0 If KeyDown( 203 )=True Then TurnEntity camera,0,1,0 If KeyDown( 208 )=True Then MoveEntity camera,0,0,-0.05 If KeyDown( 200 )=True Then MoveEntity camera,0,0,0.05 RenderWorld Text 0,0,"Use cursor keys to move about the infinite plane" Flip Wend End |


Grid based design refers to media that is designed in a grid, like most print media, and most websites. Grid based designs helps us read and navigate webpages easily.
Responsive webpages are adaptive to display on different devices, and responsive design means often changing grid layouts to be optimised for the use of different devices.
Semantic structure is represented by semantic tags, e.g;


Some quick example text to build on the card title and make up the bulk of the card's content.
ConectarSome quick example text to build on the card title and make up the bulk of the card's content.
ConectarSome quick example text to build on the card title and make up the bulk of the card's content.
ConectarSome quick example text to build on the card title and make up the bulk of the card's content.
ConectarSome quick example text to build on the card title and make up the bulk of the card's content.
ConectarSome quick example text to build on the card title and make up the bulk of the card's content.
ConectarSome quick example text to build on the card title and make up the bulk of the card's content.
ConectarSome quick example text to build on the card title and make up the bulk of the card's content.
ConectarSome quick example text to build on the card title and make up the bulk of the card's content.
Conectar


MPAs fished MPA growth fishing fish inside age populations reefs shifts protected Sci life-history size Fish length phenotypic {border-style Ecol Marine Sciences individuals population px;} #ffffff;} San marine reef Farm rates Mar N/A Salvador Taklobo associated maturity species Bani asymptotic changes evolution striatus Heino areas compared multifasciatus observed traits Biol Fig Prog Ser coral exploited nigrofuscus Dieckmann Proc fishery fishes harvested maturation phenotypes populations. pressure reefs. reproductive Appl Biology Coral Life MPAs, data harvest mortality outside Bertalanffy Evol Reefs Russ Von analysis bold collected effects larger populations, protection px; responses size-selective stocks using values {font-family ./rspb.. Aquat Table Writing benefits body-size conducted demonstrated disparities ecological evolutionary fisheries font-size greater recovery time ./j.-...x However, Lower Populations Reef Upper additional cod confidence did double; frequencies impacts increased inf intervals likely models nigrofuscus, no-take promote result review selection trends (%) Acanthurus Click Fidler LINK Methodology Science alterations average beneficial border-color border-width collection, collections coral-reef critical editing environmental fecundity file. fisheries-induced higher however, length, life long-term necessary otolith patterns plastic potential relative results significantly smaller solid; stocks. striatus, studies variation {font-style {font-weight ./journal.pone. Additionally, Anatomy Aquatic Atlantic Biology: Bull Ctenochaetus Dunlop Earth Fished Fisheries-induced Formal Gadus Gonads Investigation Lin MPAs. Masinloc, USA ability adjacent analyses behavioral caught courier; density-dependent differed differences driven em; estimates evidence exhibited fishes. fitness-relevant genetic history increases increasing indicated largest larval lengths management mature morhua) movement natural oldest package produce pt;} range rate rate, reefs, regarding reserves resilience sizes stock used vary