|
Micro Focus Content Manager SDK 9.3
|
Public Member Functions | |
| SearchClauseOrFieldDef () | |
| Construct a SearchClauseOrFieldDef that encapsulates a standard search clause definition. More... | |
| SearchClauseOrFieldDef (SearchClauseIds clauseId) | |
| Construct a SearchClauseOrFieldDef that encapsulates a standard search clause definition. The database parameter allows the item access to any customized captions. More... | |
| SearchClauseOrFieldDef (SearchClauseIds propId, Database forDatabase) | |
| Construct a SearchClauseOrFieldDef that encapsulates a standard search clause definition. More... | |
| SearchClauseOrFieldDef (SearchClauseDef clauseDef) | |
| Construct a SearchClauseOrFieldDef that encapsulates a FieldDefinition object. More... | |
| SearchClauseOrFieldDef (FieldDefinition Field) | |
| bool | IsAvailableForType (BaseObjectTypes trimObjectType) |
| Gets a boolean value indicating whether this search method is available for the nominated type of TRIM object. If the function returns false, the ErrorMessage property will contain an informational message indicating why the search method is unavailable. More... | |
| bool | IsActivatedForType (BaseObjectTypes trimObjectType) |
| Gets a boolean value indicating whether this search method is available for the nominated type of TRIM object. It also checks if it is linked to a product feature and whether that product feature is activated. If the function returns false, the ErrorMessage property will contain an informational message indicating why the search method is unavailable. More... | |
| string | GetTooltip (BaseObjectTypes whenUsedForObjectType) |
| Gets a string containing a tool tip for this search clause. More... | |
| string | GetParametersTooltip (BaseObjectTypes whenUsedForObjectType) |
| Gets a string containing a tool tip about the parameters required for this search clause. More... | |
| bool | CanSort (BaseObjectTypes whenUsedForObjectType) |
| Gets a boolean value indicating whether this search clause can be used a sort criteria for searching for the specified object type. More... | |
| string | GetSortTooltip (BaseObjectTypes whenUsedForObjectType) |
| Gets a string containing a tool tip when using this search clause for sorting. More... | |
| Public Member Functions inherited from HP.HPTRIM.SDK.TrimSDKObject | |
| TrimSDKObject () | |
Static Public Member Functions | |
| static int | Compare (SearchClauseOrFieldDef itemToTest1, SearchClauseOrFieldDef itemToTest2) |
| Compares two ApiSearchClauseOrFieldDef objects, using the caption as a sort sequence More... | |
| static SearchClauseOrFieldDefList | GetAllSearchClausesOrFields (Database withinDatabase, BaseObjectTypes forObjectType) |
| Gets an array of ApiSearchClauseOrFieldDef objects consisting of all standard search clause definitions for the specified object type, followed by all the searchable user defined fields for the specified object type. More... | |
| static SearchClauseOrFieldDefList | GetAllSearchClausesOrFields (TrimObject forObject) |
| Gets an array of ApiSearchClauseOrFieldDef objects consisting of all standard search clause definitions for the specified TrimObject, followed by all the searchable user defined fields for the specified TrimObject. More... | |
| static SearchClauseOrFieldDefList | GetFavoriteSearchClausesOrFields (Database withinDatabase, BaseObjectTypes forObjectType) |
| Gets an array of ApiSearchClauseOrFieldDef objects consisting of the current users selected favorite search methods for the specified object type. More... | |
| static SearchClauseOrFieldDefList | GetFavoriteSearchClausesOrFields (TrimObject forObject) |
| Gets an array of ApiSearchClauseOrFieldDef objects consisting of the current users selected favorite search methods for the specified object. More... | |
| static SearchClauseOrFieldDefList | GetRecentSearchClausesOrFields (Database withinDatabase, BaseObjectTypes forObjectType) |
| Gets an array of ApiSearchClauseOrFieldDef objects consisting of all current users most recently used search methods for the specified object type. More... | |
| static SearchClauseOrFieldDefList | GetRecentSearchClausesOrFields (TrimObject forObject) |
| Gets an array of ApiSearchClauseOrFieldDef objects consisting of all current users most recently used search methods for the specified object. More... | |
| static void | SetFavoriteSearchClausesOrFields (TrimObject forObject, SearchClauseOrFieldDefList searchMethodArray) |
| Sets an array of ApiSearchClauseOrFieldDef objects as the list of favorite search methods for the current user and object. More... | |
| static void | SetFavoriteSearchClausesOrFields (Database withinDatabase, BaseObjectTypes forObjectType, SearchClauseOrFieldDefList searchMethodArray) |
| Sets an array of ApiSearchClauseOrFieldDef objects as the list of favorite search methods for the current user and object type. More... | |
| static void | SetRecentSearchClausesOrFields (TrimObject forObject, SearchClauseOrFieldDefList searchMethodArray) |
| Sets an array of ApiSearchClauseOrFieldDef objects as the list of recent search methods for the current user and object. More... | |
| static void | SetRecentSearchClausesOrFields (Database withinDatabase, BaseObjectTypes forObjectType, SearchClauseOrFieldDefList searchMethodArray) |
| Sets an array of ApiSearchClauseOrFieldDef objects as the list of recent search methods for the current user and object type. More... | |
Properties | |
| bool | IsASearchClause [get] |
| Gets a boolean value indicating whether this object represents a standard search clause definition (as opposed to a field). More... | |
| bool | IsAField [get] |
| Gets a Boolean value indicating whether this object represents a user field (as opposed to a standard search clause definition). More... | |
| SearchClauseIds | ClauseId [get] |
| Gets a SearchClauseIds enumeration value containing the SearchClauseId associated with this object, if it is a standard search clause definition. More... | |
| SearchClauseDef | ClauseDef [get] |
| Gets the SearchClauseDef object associated with this SearchClauseOrFieldDef, if it is a standard search clause definition. More... | |
| TrimURI | FieldUri [get] |
| Gets the unique identifier of the FieldDefinition associated with this object, if it is a user field. More... | |
| FieldDefinition | Field [get] |
| Gets or sets the FieldDefinition object associated with this SearchClauseOrFieldDef, it if is a user field More... | |
| SearchParameterFormats | SearchParameterFormat [get] |
| Gets a SearchParameterFormats enum value indicating the generic format of this search method . More... | |
| SearchClauseGroup | MethodGroup [get] |
| Gets a SearchClauseGroup enumeration value indicating the particular group of search clauses that this method belongs to. Search methods grouped in this way to aid in presentation, in some cases. More... | |
| string | ClauseName [get] |
| Gets a short format search method name that can be used in the string searching syntax More... | |
| string | Caption [get] |
| Gets the caption corresponding to this property or field. More... | |
| Properties inherited from HP.HPTRIM.SDK.TrimSDKObject | |
| string | ErrorMessage [get] |
| All TRIM SDK objects have an ErrorMessage property which can be used to examine any error that may have occurred in the most recent method call. More... | |
| TrimException | Error [get] |
| All TRIM SDK objects have an Error property which can be used to examine any error that may have occurred in the most recent method call. More... | |
| HP.HPTRIM.SDK.SearchClauseOrFieldDef.SearchClauseOrFieldDef | ( | ) |
Construct a SearchClauseOrFieldDef that encapsulates a standard search clause definition.
| HP.HPTRIM.SDK.SearchClauseOrFieldDef.SearchClauseOrFieldDef | ( | SearchClauseIds | clauseId | ) |
Construct a SearchClauseOrFieldDef that encapsulates a standard search clause definition. The database parameter allows the item access to any customized captions.
| HP.HPTRIM.SDK.SearchClauseOrFieldDef.SearchClauseOrFieldDef | ( | SearchClauseIds | propId, |
| Database | forDatabase | ||
| ) |
Construct a SearchClauseOrFieldDef that encapsulates a standard search clause definition.
| HP.HPTRIM.SDK.SearchClauseOrFieldDef.SearchClauseOrFieldDef | ( | SearchClauseDef | clauseDef | ) |
Construct a SearchClauseOrFieldDef that encapsulates a FieldDefinition object.
| HP.HPTRIM.SDK.SearchClauseOrFieldDef.SearchClauseOrFieldDef | ( | FieldDefinition | Field | ) |
| bool HP.HPTRIM.SDK.SearchClauseOrFieldDef.CanSort | ( | BaseObjectTypes | whenUsedForObjectType | ) |
Gets a boolean value indicating whether this search clause can be used a sort criteria for searching for the specified object type.
|
static |
Compares two ApiSearchClauseOrFieldDef objects, using the caption as a sort sequence
|
static |
Gets an array of ApiSearchClauseOrFieldDef objects consisting of all standard search clause definitions for the specified object type, followed by all the searchable user defined fields for the specified object type.
|
static |
Gets an array of ApiSearchClauseOrFieldDef objects consisting of all standard search clause definitions for the specified TrimObject, followed by all the searchable user defined fields for the specified TrimObject.
|
static |
Gets an array of ApiSearchClauseOrFieldDef objects consisting of the current users selected favorite search methods for the specified object type.
|
static |
Gets an array of ApiSearchClauseOrFieldDef objects consisting of the current users selected favorite search methods for the specified object.
| string HP.HPTRIM.SDK.SearchClauseOrFieldDef.GetParametersTooltip | ( | BaseObjectTypes | whenUsedForObjectType | ) |
Gets a string containing a tool tip about the parameters required for this search clause.
|
static |
Gets an array of ApiSearchClauseOrFieldDef objects consisting of all current users most recently used search methods for the specified object type.
|
static |
Gets an array of ApiSearchClauseOrFieldDef objects consisting of all current users most recently used search methods for the specified object.
| string HP.HPTRIM.SDK.SearchClauseOrFieldDef.GetSortTooltip | ( | BaseObjectTypes | whenUsedForObjectType | ) |
Gets a string containing a tool tip when using this search clause for sorting.
| string HP.HPTRIM.SDK.SearchClauseOrFieldDef.GetTooltip | ( | BaseObjectTypes | whenUsedForObjectType | ) |
Gets a string containing a tool tip for this search clause.
| bool HP.HPTRIM.SDK.SearchClauseOrFieldDef.IsActivatedForType | ( | BaseObjectTypes | trimObjectType | ) |
Gets a boolean value indicating whether this search method is available for the nominated type of TRIM object. It also checks if it is linked to a product feature and whether that product feature is activated. If the function returns false, the ErrorMessage property will contain an informational message indicating why the search method is unavailable.
| bool HP.HPTRIM.SDK.SearchClauseOrFieldDef.IsAvailableForType | ( | BaseObjectTypes | trimObjectType | ) |
Gets a boolean value indicating whether this search method is available for the nominated type of TRIM object. If the function returns false, the ErrorMessage property will contain an informational message indicating why the search method is unavailable.
|
static |
Sets an array of ApiSearchClauseOrFieldDef objects as the list of favorite search methods for the current user and object.
|
static |
Sets an array of ApiSearchClauseOrFieldDef objects as the list of favorite search methods for the current user and object type.
|
static |
Sets an array of ApiSearchClauseOrFieldDef objects as the list of recent search methods for the current user and object.
|
static |
Sets an array of ApiSearchClauseOrFieldDef objects as the list of recent search methods for the current user and object type.
|
get |
Gets the caption corresponding to this property or field.
|
get |
Gets the SearchClauseDef object associated with this SearchClauseOrFieldDef, if it is a standard search clause definition.
|
get |
Gets a SearchClauseIds enumeration value containing the SearchClauseId associated with this object, if it is a standard search clause definition.
|
get |
Gets a short format search method name that can be used in the string searching syntax
|
get |
Gets or sets the FieldDefinition object associated with this SearchClauseOrFieldDef, it if is a user field
|
get |
Gets the unique identifier of the FieldDefinition associated with this object, if it is a user field.
|
get |
Gets a Boolean value indicating whether this object represents a user field (as opposed to a standard search clause definition).
|
get |
Gets a boolean value indicating whether this object represents a standard search clause definition (as opposed to a field).
|
get |
Gets a SearchClauseGroup enumeration value indicating the particular group of search clauses that this method belongs to. Search methods grouped in this way to aid in presentation, in some cases.
|
get |
Gets a SearchParameterFormats enum value indicating the generic format of this search method .


| Fig 1 |
Study site. (a) The location of Santa Cruz Island in the cen ... |
| Fig 2 |
Potential distribution of guava and passion fruit on Santa C ... |
| Fig 3 |
The distribution of guava and passion fruit plants in vegeta ... |
| Fig 4 |
The probability of presence of guava and passion fruit plant ... |


Microsoft expands Azure price reservations
Open source databases and storage join the deep discount program.
by Simon SharwoodMicrosoft has offered another signal that it greatly desires its customers to make long-term Azure commitments, adding another half-dozen services to its reservations program, the offer that sees it drop prices steeply if customers commit to one or three years of Azure assets.
The program now covers Azure database for MySQL, PostgresSQL and MariaDB, plus three types of Azure storage.
Microsoft has made reserved Azure instances not just the cheapest way to consume its cloud, but also makes software licences more portable for those that sign up for its long-term deals.
Reserved instances initially required up-front payments for all planned consumption, making them look an awful lot like conventional capital expenditure.
The prepayment move raised eyebrows because one of the main accounting benefits of cloud is the ability to shift computing expenses onto the operational expenditure side of the corporate ledger where they are immediately tax effective and simpler and easier to expense.
In September 2019 Microsoft added an option for monthly payments, bringing reserved instances into line with its general preference for as-you-go pricing.
Microsoft is refreshingly up-front with its motivation for the big discounts reserved capacity carries: it says that its own planning gets easier if it knows customers have committed to consume certain levels of resources. The company also expects users of reserved instances to use Azure on an ad-hoc basis too.
Sixteen Azure offerings are now offered with reserved purchasing options and there’s no sign Microsoft won’t apply the pricing plan to plenty more.


Home Page
Technical Blog
Core Blog
Sprint 1: Identity, Values, and Strengths Exploration
Sprint 2: Learning Plan
Sprint 3: Emotional Intelligence
Link to my github
Connect with me on LinkedIn :)
Core Blog
Below are links to my core blogs from different sprints:
Sprint 1: Identity, Values, and Strengths Exploration
Sprint 2: Learning Plan
Sprint 3: Emotional Intelligence


Implements the Bayesian and likelihood methods proposed in Imai, Lu, and Strauss (2008 <doi:10.1093/pan/mpm017>) and (2011 <doi:10.18637/jss.v042.i05>) for ecological inference in 2 by 2 tables as well as the method of bounds introduced by Duncan and Davis (1953). The package fits both parametric and nonparametric models using either the Expectation-Maximization algorithms (for likelihood models) or the Markov chain Monte Carlo algorithms (for Bayesian models). For all models, the individual-level data can be directly incorporated into the estimation whenever such data are available. Along with in-sample and out-of-sample predictions, the package also provides a functionality which allows one to quantify the effect of data aggregation on parameter estimation and hypothesis testing under the parametric likelihood models.
| Version: | 4.0-1 |
| Depends: | R (≥ 2.0), MASS, utils |
| Published: | 2017-08-01 |
| Author: | Kosuke Imai [aut], Ying Lu [aut, cre], Aaron Strauss [aut], Hubert Jin [ctb] |
| Maintainer: | Ying Lu <ying.lu at nyu.edu> |
| BugReports: | https://github.com/kosukeimai/eco/issues |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: | https://github.com/kosukeimai/eco |
| NeedsCompilation: | yes |
| Citation: | eco citation info |
| Materials: | ChangeLog |
| In views: | Bayesian, Environmetrics |
| CRAN checks: | eco results |
| Reference manual: | eco.pdf |
| Package source: | eco_4.0-1.tar.gz |
| Windows binaries: | r-devel: eco_4.0-1.zip, r-release: eco_4.0-1.zip, r-oldrel: eco_4.0-1.zip |
| OS X binaries: | r-release: eco_4.0-1.tgz, r-oldrel: eco_4.0-1.tgz |
| Old sources: | eco archive |
Please use the canonical form https://CRAN.R-project.org/package=eco to link to this page.


Home
Updates
About
Projects
Contact
MineToUnlock
Updates
6.4.18: Added tons of stuff.
Added Skillbars on Homepage
Added tons of styles
Fixed typos on Updates page
Fixed issues in styling.css
Added About page
5.4.18: Basic Site developed


Ongoing Hypotheses
| # | Name | Feature Endpoint | Engine |
|---|---|---|---|
| [[hypothesis.id]] | [[hypothesis.title]] | [[hypothesis.endpoint]] | [[hypothesis.engine]] |
Percent Completed
73%
Revamped Dashboard-Stickiness
73%
Revamped Dashboard-Virality
83%
VC-Matcher


- Http Method
- End Point
-
| Placeholder |
Description |
Example |
|
|
|
- Query Parameters
-
| Parameter |
Description |
Required |
Example |
|
|
|
|
- Request Body
-
- Content Type
- application/json
- Example
- Response
-
- Operation Successful
-
- Status Code
- 200
- Response Body
- Operation Failed
-
- Status code
- Status code other than 200 indicating the error type
- Response Body
- Error detail of content type "text/plain"
- cURL Example
-
Resources
- Content Type
- application/json
- Example


Guess what letter I'm thinking of? Press a letter key to start playing!
wins:
losses:
guesses left:
guesses so far:


Compliance Report
Compliance Report
S.1. The required number of faculty have experience and graduate degrees appropriate and relevant to HRM and allied programs (TM/HM/TrM) namely:
S.1.1. Master's degree in Business/Hospitality Management or Business-related fields; and
S.1.2. three (3) - year professional experience in the field of specialization or the industry.
S.2. Other qualifications such as the following are considered:
S.2.1. relate professional experience;
S.2.2. technical/pedagogical skills and competence;
S.2.3. National Certification (NC) provided by TESDA and other competency based assessment tests given by the concerned agencies (if required-Occupational Health and Safety, OHS); and
S.2.4. special abilities, computer literacy, research productivity.
S.3.Faculty handling OJT/practicum courses have had at least three (3) years of teaching and industry-based experience in the field. ;
S.4. At least 50% of the faculty have relevant graduate degrees.
I.1. The faculty demonstrate professional competence and are engaged in any or a combination of the following:
I.1.1. instruction;
I.1.2. research;
I.1.3. extension;
I.1.4. production;
I.1.5. consultancy and expert service; and
I.1.6. publication, creative and scholarly works.
I.2. At least 50% of the faculty teach full-time.
O.1. The institution has qualified and competent faculty.
S.1. There is an institutional Human Resource Development Plan/Program designed for faculty recruitment.
I.1. Recruitment and selection of faculty is processed by the Faculty Selection Board using the following criteria:
I.1.1. academic qualifications;
I.1.2. personal qualities;
I.1.3. communication skills;
I.1.4. teaching ability;
I.1.5. medical examination result;
I.1.6. pyschological examination result;
I.1.7. relevant professional experiences (if any);
I.1.8. previous record of employment (if any);
I.1.9. technical/special skills and abilities; and
I.1.10. previous performance rating (if any).
I.2. The hiring system adopts an open competitive selection, based on the CSC-approved Merit System of the institution published and well-disseminated through various means of communication:
I.2.1. print media (newspaper, flyers, CSC Bulletin of vacant positions);
I.2.2. broadcast media (TV, radio);
I.2.3. website;
I.2.4. bulletin boards; and
I.2.5. others (please specify)_____________.
I.3.A Screening Committee selects and recommends the best and most qualified applicants.
I.4. Measures to avoid professional in-breeding are observed.
I.5. The institution conducts orientation for newly-hired faculty on its institutional vision and mission, CSC, PRC, DBM, and administration policies on their duties, responsibilities, benefits and other academic concerns.
O.1. The most qualified faculty are selected.
S.1. Faculty-student ratio is in accordance with the program requirements and standards as follows:
S.1.1. lecture (1:40), maximum of 1:50; and
S.1.2. laboratory (1:25), maximum of 1:30.
S.2. There is a provision for incentives of overload teaching in accordance with the CMO of the program and/or institutional guidelines.
S.3. There are full-time faculty classified by rank, subject/specialization.
S.4. Faculty schedule has time for preparation of lessons, scoring of test papers, record-keeping, class evaluation and other instruction-related activities.
S.5. Workload Guidelines contain sufficient time for teaching and/or research, extension, production and other assigned tasks.
S.6.There is equitable, measurable and fair distribution of teaching load and other assignments.
I.1. The maximum total load is assigned to regular full-time faculty in accordance to the CMO of the program and institutional guidelines.
I.2. A Faculty Manual is published formalizing faculty policies, standards and guidelines.
I.3. Professional subjects are handled by specialists in the discipline/program.
I.4. The faculty are assigned to teach their major/minor fields of specialization, with none of them assigned more than four (4) different preparations within a semester.
I.5. Administrative arrangements are adopted whenever vacancies/leaves of absence occur during the term.
I.6. No less than 60% of the professional subjects in Hotel and Restaurant Management/TM/HM/TrM Program are handled by full-time faculty.
I.7. Teaching schedule does not allow more than six (6) hours continuous teaching.
I.8. Administrative, research and/or professional assignment outside of regular teaching are given credit.
I.9. Consultation, tutorial, remedial classes, expert services, and other instruction-related activities are given credit in consonance with faculty workload guidelines.
I.10. Workload assignments and number of preparations follow existing workload guidelines.
I.11. Part-time HRM/TM/HM/TrM faculty teach a maximum of 12 units.
O.1. The faculty are efficient and effective, with sufficient time for instruction, research, extension, and other assigned tasks.
S.1. The institution has a system of promotion in rank and tenure based on official issuances.
S.2. The institution has a policy on probationary status of employment.
S.3. At least 50% of the full-time faculty teaching the professional courses are permanent/regular.
I.1. The institution implements the system of promotion in rank and salary based on existing policies and issuances (e.g. NBC 461).
I.2. Retirement, separation or termination benefits are implemented in accordance with institutional and government (CSC, GSIS/DBM) policies and guidelines.
I.3. The faculty are officially informed of their rank and tenure after evaluation of the credential and performance.
I.4. the faculty concerned are officially informed of the extension, renewal, or termination of their appointments.
I.5. The institution implements a CSC - approved Strategic Performance Management System (SPMS) which emphasizes quality teaching performance, research, creative work, extension and production services.
I.6. The probationary period or temporary status required before a permanent status is granted to the faculty is in accordance with Civil Service and institutional policies and guidelines.
O.1. The faculty are satisfied with their rank and employment status.
S.1. The institution has an approved and sustainable Faculty Development Program.
S.2. There are policies on faculty academic recognition and grant of scholarships/ fellowships and awards.
S.3. Every faculty member has at least one active membership in professional/scientific organization or honor society relevant to his/her assignment and field of specialization.
S.4. The budget allocation for faculty development is adequate and wisely utilized.
I.1. The institution implements a sustainable Faculty Development program based on identified priorities/needs.
I.2. The institution supports the professional growth of the faculty through attendance in educational lectures, symposia, seminars, workshops, conferences and other forms of training.
I.3.The institution conducts in-service training program regularly at least once per term.
I.4. Selection of deserving faculty to be granted scholarships, fellowships, seminars, conferences and/or training grants is done objectively.
I.5. The budget for faculty development is adequately allocated.
I.6. The budget for faculty development is wisely utilized.
I.7. The Faculty Development Program is implemented with the following provisions
I.7.1.adequate and qualified supervision of faculty;
I.7.2. scholarships, fellowships, sabbatical leaves, and research grants;
I.7.3.financial support for active membership in professional organizations;
I.7.4. deloading to finish the faculty's thesis/dissertation;
I.7.5. attendance in continuing professional education (CPE) programs such as seminars, workshops and conferences or some training courses;
I.7.6. conducting research related activities to the program;
I.7.7. publishing scholarly articles and research outputs; and
I.7.8. production of instructional materials(IMs).
I.8. Opportunities for the faculty to attend/participate in capability-building and enhancing activities are fairly distributed.
I.9. Tuition fee privilege and other forms of assistance are available for faculty pursuing advanced (Master's and doctoral) degrees.
I.10. Faculty are given incentives for book writing, manuals, handbooks, compilations and instructional materials and keep up with new knowledge and techniques in the field of specialization.
O.1. The faculty are trained and competent to serve the institution.
O.2. The faculty are committed to serve and support the programs and projects of the institution.
S.1. The institution has a system of evaluating the faculty on the following:
S.1.1. professional performance; and
S.1.2. scholarly works.
I.1. demonstrate skills and competencies in all of the following:
I.1.1. knowledge of the program objectives/outcome(s)
I.1.2. reflecting the program outcomes clearly in the course objectives;
I.1.3. knowledge/mastery of the content, issues and methodologies in the discipline;
I.1.4. proficiency in the use of the language of instruction;
I.1.5. the use of higher orders thinking skills such as analytical, critical, creative and innovative and problem solving;
I.1.6. innovativeness and resourcefulness in the different instructional processes;
I.1.7. integration of values and work ethic in the teaching-learning process; and
I.1.8. integration of Gender and Development (GAD) activities.
I.2. promptly submit required reports and other academic outputs.
I.3. update lecture notes through an interface of relevant research findings and new knowledge.
I.4. serve as resource person/lecturer/consultant in the field HRM/TM/HM/TrM.
I.5. present papers in local/regional/national and/or international fora.
I.6.publish papers in regional, national and international magazines and journals.
I.7. conduct research and publish outputs in refereed journals of national and international circulation.
I.8. conduct extension and outreach activities.
I.9. regularly update respective course syllabi.
I.10. utilize ICT and other resources in the enhancement of the teaching-learning process.
I.11. produce instructional materials, e.g., workbooks, manuals, modules, audio-visual aids, etc. to facilitate teaching and learning.
O.1. The faculty performance is generally satisfactory.
O.2. The scholarly works of the faculty are commendable.
S.1. The institution has a system of compensation and rewards to its faculty and staff.
I.1. The following fringe benefits are granted:
I.1.1. maternity leave/paternity leave with pay;
I.1.2. sick leave;
I.1.3. study leave (with or without pay);
I.1.4. vacation leave;
I.1.5. tuition fee discount for faculty dependents;
I.1.6. clothing/uniform allowance;
I.1.7. performance based bonus (PBB);
I.1.8. anniversary bonus;
I.1.9. honoraria/incentive for conducting research or for the production of scholarly works;
I.1.10. housing privilege (optional);
I.1.11. sabbatical leave;
I.1.12. compensatory leave credit;
I.1.13. deloading to finish thesis/dissertation;
I.1.14. thesis/dissertation aid; and
I.1.15. others, (please identify) __________.
I.2. Policies on salaries /benefits and other privileges are disseminated to the faculty.
I.3. Salaries are paid regularly and promptly.
I.4. Teaching assignments beyond the regular load are compensated (e.g., overload pay. service credits, etc.)
I.5. Faculty who are actually involved in the production of scholarly materials are given credits for their work.
I.6. Faculty with outstanding performance are given recognition/awards and incentives.
O.1. The faculty are satisfied with their compensation and rewards.
S.1. There are approved SUC Code and SUC Faculty Manual that define the policies, guidelines, rules and regulations affecting the faculty.
I.1. responsibly observe the following:
I.1.1. regular and prompt attendance to classes;;
I.1.2. participation in faculty meetings and college/university activities;
I.1.3. completion of assigned tasks on time;
I.1.4. submission of all required reports promptly; and
I.1.5.decorum at all times.
I.2. follow the Code of Ethics of the Profession, the Code of Ethical Standards for Government Officials and Employees (RA6713).
I.3. exercise academic freedom judiciously.
I.4. show commitment and loyalty to the instruction as evidenced by:
I.4.1. observance of official time;
I.4.2. productive use of official time;
I.4.3. performance of other tasks and assignments, with or without compensation; and
I.4.4. compliance with terms of agreements/contracts (e.g., scholarship and training)
I.5. maintain harmonious interpersonal relations with superiors, peers, students, parents and the community.
I.6. demonstrate knowledge of recent educational trends/issues/resources in the field of Hotel and Restaurant Management/TM/HM/TrM.
I.7. show evidence of professional growth through further and continuing studies.
I.8. engage in practices which enable the faculty to demonstrate harmonious interpersonal relations with the students, parents and the community.
O.1. The corps of the faculty manifests a commendable level of professionalism.


Skylar's Stage 0 Notes'
Stage Zero
Important Concepts
How the web works
The web is a bunch of computers that communicate with each other. A web browser on your computer communicates with the server with HTTP. The server frinds the correct HTML document and sends it back to your browser. The computer interprets the page and
displays it on your screen.
The web is a collection of HTML pages.
HTML
HTML stands for Hypertext Markup Language. It is the basis for everything on the web.
 Like the enter key when typing for a new line.
Inline vs Block
Inline are tags that are displayed without line breaks. Block tags have an invisible box around them, and normally start and end with a new line. The following are inline elements: a, br, em, b, img, span The following are block elements:
p, div, and form.
HTTP
HTTP is browser communication between servers
HTML document example
< ! Doctype html > - doctype= what kind of html it is.
< html > - surrounds entire document
< head > - meta data like java and CSS
< title > title < / title > - title of page
< / head>
< body > contents of document
contents
< / body >
< /html >
Important things to take away from Stage Zero
What is a web page?
A web page is a text document written in HTML, or Hyper Text Markup Language. Web browsers read these documents, then interpret and display them.
How does coding work?
Programmers write text in a language that a computer can understand.

Don't forget to close tags! The computer thinks literally, and won't catch mistakes.
Progammers can't remember everything!
Use google or ask for help if you are stuck.
Basic HTML vocab
Tag: contained with angled brackets. > <
Opening Tag: < content >
Closing Tag: < / content >
Void Tags: Tags that don't require closing tags, like < br> or < img>
Element: Everything within a set of opening and closing tags.
Attribute:A property of an HTML element.


This is Heading 1
This is first para in first div
This is first para in first div
1
2
3
4
Click Me
Hide p even
li


{% with widget=widget.subwidgets.0 %}{% include widget.template_name %}{% endwith %}
{% with widget=widget.subwidgets.1 %}{% include widget.template_name %}{% endwith %}
{% with widget=widget.subwidgets.2 %}{% include widget.template_name %}{% endwith %}
{% with widget=widget.subwidgets.3 %}{% include widget.template_name %}{% endwith %}


hashCode()
which access
non-final
variables. Such access may result in hashCode()
returning different values at different points in an object's lifecycle, which may in turn cause problems when
using the standard collection classes.
Example:
class Drink { String name; Drink(String name) { this.name = name; } @Override public int hashCode() { return Objects.hash(name); //warning } } ... Drink coffee = new Drink("Coffee"); priceMap.put(coffee, 10.0); coffee.name = "Tea"; double coffeePrice = priceMap.get(coffee); //not found
The quick-fix tries to make the field final:
class Drink { final String name; ... }


Welcome to Idea Notebook¶
The Idea Notebook is list of novel project ideas with brief information about implementation and outcome.
The details are described through following components.
Title
- Application Domain
- area/s of application e.g. agriculture, remote sensing, GIS, etc.
- Research Domain
- domain/s in which research will be required to achieve set objective
- Synopsys
- brief introduction / flowchart explaining about selected idea
- Expected Deliverables
- list of deliverables / outcomes
- Status
- current status of execution
- list of publications / link to software repository, etc.
- To do
- list of set objectives to be completed while design / development / deployment phase
- Intellectual property details:
- list of persons who contributed during conceptualization
- consists author/s, date and details
Contents:
- 1: Python and R script to create the shapefiles / RDBMS SQL files from CSV files and pre-existing GIS layers
- 2: DSS based on spatial interpolation techniques for Crop Yield Estimation
- 3: Android based service for crop yield estimation
- 4. Arduino based Wireless Sensor Network for precision Agriculture Monitoring (KrushiSense/SenseTube++)
- 5. Book on: Python for Agriculture Engineers
- 6. Machine vision based crop pest/disease intensity prediction and geospatial analysis tool


The Apprentice's Ryan-Mark reveals he 'would never' date Lottie Lion
Ryan-Mark Parsons has finally opened up about the rumours that he’s dating Lottie Lion – and unfortunately they’re not true.
The 19-year-old, who was the latest candidate to be fired from the BBC show has previously shared with his followers that the pair were dating.
Although he has now come clean and revealed that he was actually joking.
Following his exit the womenswear consultant told Metro.co.uk: ‘We were just messing around, it was just a little joke.
‘I would never ever date Lottie she is the complete opposite of what I am interested in.
‘We will stay close friends though as she is in London sometimes.’
It all began when a fan of The Apprentice tweeted Ryan-Mark after last Wednesday show to comment on their friendship.
They tweeted: ‘Just watched last night’s episode of the apprentice, another brilliant episode. My favourites so far are
@LottieLion1 @ryanmarkparsons and @ImLewisEllis.
Advertisement Advertisement
‘I’ve noticed Lottie and Ryan-Mark have quite the friendship.’
Ryan-Mark then added fuel to the fire by responding: ‘We’re actually dating. EXCLUSIVE.’
Lottie then weighed in confirming the news as she tweeted: ‘Public Service Announcement after much speculation’
Fans were quick to respond to the news – and it’s safe some people found it funny – and others were just a bit confused.
Lottie, who was in the centre of a ‘racism’ storm at the beginning of this Apprentice series, has also been responding to fans on social media who are calling for her to go into the Australian jungle for I’m A Celebrity… Get Me Out Of Here in 2020.
And while the librarian has been retweeting the calls to ‘get her in the jungle’, she hasn’t responded as to whether she would take part or not.
One questioned: ‘You like the idea then Lottie?’
Another tweeted: ‘Lottie needs to be in I’m A Celeb next year’
The Apprentice airs on Wednesday at 9pm on BBC1.
Got a showbiz story?
If you've got a story, video or pictures get in touch with the Metro.co.uk Entertainment team by emailing us<EMAIL_ADDRESS>calling 020 3615 2145 or by visiting our Submit Stuff page - we'd love to hear from you.


{% extends "../layout/base.html" %} {% include "style/bootstrap.html" %} {% load static %} {% block content %}
No posts available.
You haven't login yet. Please login first. Login here


{% if reg_error %}
Registration Error
{{reg_error}}
{% else %}
Networkr
Sign up for the new social network
{% endif %}
First Name:
Last Name:
Email:
Password:
State:
Already have an account?
Sign in.


SA Tree Salvage started operating 16 years ago by Chris & Kallan.
Initially the intention was to slow down the shear waste of an important resource going into landfill or chipped into garden mulch. Fortunately trees can no longer go into landfill but the chippers have got bigger!
We are still operating salvaging trees/logs as best as we can, the passion for saving the trees will never wane. The business has a no waste policy thus we process the log into sawn boards or full width slabs and the usual 10 to 20% waste that comes off this process goes into firewood supply.
Value adding after those processes gave us the ability to manufacture any objects and furniture which then give the saved tree/log a extended life into seats, tables, cladding, kitchens and even as a structural item , pergola, fence, window frames.
Join our newsletter:


--- layout: post title: no title date: '2016-08-10T18:11:46-07:00' tags: - frombrett - programming - trafficmap tumblr_url: http://beekley.xyz/post/148765381331/nothing-too-exciting-to-update-i-tried-doing-a ---
Nothing too exciting to update. I tried doing a for-loop to break up my list of origins into a list of list of origins, each shorter than Gmap’s limit. But the asynchonousity of the API call is a little tricky. My next plan is to make it recurse,so the callback calls another API call.
Previous trafficmap updates and github.


Toggle navigation
On the Road
Home
destinations
plan
Diary
Gallery
myBlog
Login
Frequently Asked Questions
Travel Countdown
Your tavel will start in:
9 days
23 hours
56 min
20 sec
Sign Up
Enter your email to set up a travel reminder
OK
Join Our Mailing List
© 2015
On the Road
About Us
Contact Us
FAQ
Sign In
Register
Username:
Password:
Remember me
Sign In
Email:
Password:
Re-enter:
Sign Up


| 1 | package fr.sii.ogham.testing.assertion.internal.matcher; | |
| 2 | ||
| 3 | import org.hamcrest.BaseMatcher; | |
| 4 | import org.hamcrest.Description; | |
| 5 | import org.springframework.beans.BeansException; | |
| 6 | import org.springframework.context.ApplicationContext; | |
| 7 | ||
| 8 | /** | |
| 9 | * Matcher that checks if the tested object is the same instance as the bean | |
| 10 | * registered in Spring context. | |
| 11 | * | |
| 12 | * <p> | |
| 13 | * If no bean is declared, then it will fail. | |
| 14 | * | |
| 15 | * <p> | |
| 16 | * If a bean is declared but not same instance, then it will fail. | |
| 17 | * | |
| 18 | * | |
| 19 | * @author Aurélien Baudet | |
| 20 | * | |
| 21 | * @param <T> | |
| 22 | * Type of the tested object | |
| 23 | */ | |
| 24 | public class IsSpringBeanInstance<T> extends BaseMatcher<T> { | |
| 25 | private final ApplicationContext context; | |
| 26 | private final Class<?> beanClass; | |
| 27 | private boolean beanExists; | |
| 28 | ||
| 29 | /** | |
| 30 | * This matcher requires the Spring context and which bean to retrieve. It | |
| 31 | * is helpful to avoid handling {@link BeansException} when bean is not | |
| 32 | * registered at all. | |
| 33 | * | |
| 34 | * @param context | |
| 35 | * the Spring application context | |
| 36 | * @param beanClass | |
| 37 | * the bean to retrieve | |
| 38 | */ | |
| 39 | public IsSpringBeanInstance(ApplicationContext context, Class<?> beanClass) { | |
| 40 | super(); | |
| 41 | this.context = context; | |
| 42 | this.beanClass = beanClass; | |
| 43 | } | |
| 44 | ||
| 45 | @Override | |
| 46 | public boolean matches(Object item) { | |
| 47 | try { | |
| 48 | Object bean = context.getBean(beanClass); | |
| 49 | beanExists = true; | |
| 50 |
2
1. matches : negated conditional → RUN_ERROR 2. matches : replaced boolean return with true for fr/sii/ogham/testing/assertion/internal/matcher/IsSpringBeanInstance::matches → RUN_ERROR |
return bean == item; |
| 51 | } catch (BeansException e) { // NOSONAR | |
| 52 | beanExists = false; | |
| 53 |
1
1. matches : replaced boolean return with true for fr/sii/ogham/testing/assertion/internal/matcher/IsSpringBeanInstance::matches → RUN_ERROR |
return false; |
| 54 | } | |
| 55 | } | |
| 56 | ||
| 57 | @Override | |
| 58 | public void describeTo(Description description) { | |
| 59 |
1
1. describeTo : negated conditional → NO_COVERAGE |
description.appendText(beanExists ? "bean not registered" : "bean registered but not same instance"); |
| 60 | } | |
| 61 | ||
| 62 | } | |
Mutations | ||
| 50 |
1.1 2.2 |
|
| 53 |
1.1 |
|
| 59 |
1.1 |


All Packages Class Hierarchy This Package Previous Next Index
Class com.jclark.xml.parse.DocumentParser
java.lang.Object
|
+----com.jclark.xml.parse.DocumentParser
- public class DocumentParser
- extends Object
A parser for XML documents.
-
DocumentParser()
-
-
parse(OpenEntity, EntityManager, Application, Locale)
- Parses an XML document.
DocumentParser
public DocumentParser()
parse
public static void parse(OpenEntity entity,
EntityManager entityManager,
Application application,
Locale locale) throws ApplicationException, IOException
- Parses an XML document.
- Parameters:
- entity - the document entity of the XML document; the InputStream
of the document entity will be closed after parsing
- entityManager - the EntityManager to be used to access external
entities referenced in the document
- application - the Application which will receive information
about the XML document
- locale - the Locale to be used for error messages
- Throws: NotWellFormedException
- if the document is not well-formed
- Throws: IOException
- if an IO error occurs
- Throws: ApplicationException
- if any of the
Application
methods throw an Exception
All Packages Class Hierarchy This Package Previous Next Index


Created by Chris Cruz
| Who? | Introductions |
|---|---|
| Why? | Unique features and functionality |
| What? | Integrated Web App |
| How? | Install Navigation in 3 Steps |
| What's Next? | Navigation & Feedback |
Create navigation that will allow users to easily navigate back and forth while tracking their dashboard journey via breadrcumbs
Tried Dashboard Buttons
...Tableau Actions
...but ultimately decided... Tableau Extensions.
“What makes the write-back extensions so enticing is Tableau’s beautiful UI and ease-of-use. Why can’t I just update the data here? People ask. The data is right here. I want to update it here on the dashboard. Hearts melt. And the rest is history!”
Write data to browser via cookies
Read Cookies from Browser
Save actions to database
Read Navigation Options From SharePoint
Behave differently in EXE and Par
An extension is essentially a web application that can be embedded in tableau dashboard and create , interact with other vizs on the dashboard.
Manifest + Web Page + Tableau (Server)
1) Download Extension Trex File from go/tableau-extension
2) Click Extension Object from Dashboard Page
3) Click on Import ...and... Done.
4) Submit Form
Extensions expand dashboard functionality with the help of web applications.


Billing profiles
Create billing profile
You have not added any billing information yet.
ID
Email
Description
Paid subscriptions
Free subscriptions
${page.pageNumber}
${customer.id}
${customer.email}
${customer.description}
${customer.paid}
${customer.free}


job_stream.inline¶
An intuitive way of specifying data flow using imperative programming techniques.
For example, to count the average word length in a string:
from job_stream import inline
# Begin a new job_stream, treating each word in the string as a piece
# of work.
with inline.Work("Hello there world, how are you?".split()) as w:
@w.job
def getLen(w):
# Transform each word into its length.
return len(w)
# A reducer combines the above answers; the result from the reducer
# will be the stored cumulative length divided by the number of words,
# or in other words the mean length.
@w.reduce(emit = lambda store: store.len / store.count)
def findAverage(store, inputs, others):
# Initialize the data store if it hasn't been.
if not hasattr(store, 'init'):
store.init = True
store.count = 0
store.len = 0.0
# Add each word's length to ours, and increment count.
for i in inputs:
store.len += i
store.count += 1
# Merge with another reducer, adding their count and length to
# our own.
for o in others:
store.len += o.len
store.count += o.count
@w.result
def printer(result):
# Print out the emit'd average.
print(result)
The main class interacted with in inline
code is
job_stream.inline.Work
, which provides methods for decorating Python
functions and remembers how the code was organized so that things are executed
in the right order. See job_stream.inline.Work
’s documentation for
more information.
Hierarchy of job_stream.inline
Pipes¶
Sometimes, code follows a common skeleton with some parallel code in the
middle. The job_stream.baked
library is an example of this;
job_stream.baked.sweep()
returns a context manager that yields a
job_stream.inline.Work
object used to tell sweep
what operations
the user wishes to perform:
from job_stream.baked import sweep
import numpy as np
with sweep({ 'a': np.arange(10) }) as w:
@w.job
def square(id, trial, a):
return { 'value': a*a + np.random.random() }
It is recommended that if a user class has functionality that can be added
within a job_stream
pipe, it should expose that functionality in an
@classmethod
as jobs_{name}
:
from job_stream.inline import Args, Work
class MyClass:
def classify(inputs):
return inputs[0]
@classmethod
def jobs_classify(w):
@w.job
def _classify(classifier, inputs):
return classifier.classify(inputs)
with Work([ Args(MyClass(), [i]) for i in range(10) ]) as w:
MyClass.jobs_classify(w)
Members¶
-
class
job_stream.inline.
Args
(*args, **kwargs)[source]¶ Bases:
object
Automatically fans-out args and kwargs to the caller. For example, the below will print out “Got 1, 2, 3, 4”:
from job_stream.inline import Args, Work with Work([ Args(1, 2, d=4, c=3) ]) as w: @w.job def handle(a, b, c, d): print("Got {}, {}, {}, {}".format(a, b, c, d))
-
class
job_stream.inline.
Multiple
(workList)[source]¶ Bases:
object
If some inline code wants to emit or recur multiple pieces of work, an instance of this class is the way to do it. For instance:
return Multiple([ 1, 2, 3 ])
-
class
job_stream.inline.
Work
(initialWork=[], useMultiprocessing=True, **runKwargs)[source]¶ Bases:
object
Represents a job_stream pipeline. Similar to traditional imperative coding practices,
Work
passes work in the same direction as the source file. In other words, the system starts with something like:import job_stream.inline as inline with inline.Work([1, 2, 3]) as w: # ...
This code will distribute the numbers 1, 2, and 3 into the system. Once in the system, any decorated methods will process the data in some way. The ordering of the decorated methods matters! For instance, running:
with inline.Work([1]) as w: @w.job def first(w): print("a: {}".format(w)) return w+1 @w.job def second(w): print("b: {}".format(w))
Will print
a: 1
andb: 2
. If the list toWork
were longer, then morea:
andb:
lines would be printed, one pair for each input to the system.Note
Multiprocessing
Python has the GIL in the default implementation, which typically limits pure-python code to a single thread. To get around this, the
job_stream
module by default uses multiprocessing for all jobs - that is, your python code will run in parallel on all cores, in different processes.If this behavior is not desired, particularly if your application loads a lot of data in memory that you would rather not duplicate, passing
useMultiprocessing=False
to theWork
object’s initializer will force all job_stream activity to happen within the original process:Work([ 1, 2 ], useMultiprocessing=False)
This may also be done to individual jobs / frames / reducers:
@w.job(useMultiprocessing=False) def doSomething(work): pass
May be passed a list or other iterable of initial work, as well as any of the following flags:
Parameters: - initialWork (list) – The token(s) or bits of work that will be processed. Each will be processed independently of the others; results might be joined late in the pipeline depending on its configuration.
- useMultiprocessing (bool) – If True (the default), then all job_stream work will be handled in child processes spawned via Python’s multiprocessing module. This is used to get around the limitations of the GIL, but if your application’s setup (not the jobs themselves) uses a lot of memory and your computation is handled by either non-GIL protected code or in another process anyway, it is appropriate to turn this off.
- checkpointFile (str) – Obsolete; use the ``job_stream`` binary. If specified, job_stream will run in checkpoint mode, periodically dumping progress to this file. If this file exists when run() is called, then simulation will be resumed from the state stored in this file.
- checkpointInterval (float) – Obsolete; use the ``job_stream`` binary. Time, in seconds, between the completion of one checkpoint and the beginning of the next.
- checkpointSyncInterval (float) – Debug / test usage only. Time, in seconds, to wait for sync when taking a checkpoint.
-
_assertFuncArgs
(func, i, isMin=False)[source]¶ Ensures that the function func takes exactly i args. Makes error messages more friendly.
-
_listCall
(boundMethod, results)[source]¶ Calls boundMethod (which is something like Job.emit) for each member of results, if results is Multiple.
Returns True if the boundMethod was called at all (non-None result), False otherwise.
-
finish
(func=None)[source]¶ Decorates a method that is called only once on the primary host, after all jobs have finished.
The decorated method takes a single argument, which is a list of all results returned from the jobs within the stream.
Anything returned within the decorated method will be emitted from the job_stream, meaning it will be returned by run(). User code should not typically rely on this; it is used mainly for e.g. IPython notebooks.
Cannot be used if Work.result is used. Work.result is preferred, if your job stream’s output can be processed one piece at a time (more efficient in that results can be discarded after they are processed).
-
frame
(func=None, **kwargs)[source]¶ Decorates a function that begins a frame. A frame is started with a single piece of work, and then recurses other pieces of work into itself until some stopping condition.
Frames (and their cousins Reducers) are the most complicated feature in job_stream. A frame is appropriate if:
- A while loop would be used in non-parallelizable code
- Individual pieces of work need fan-out and fan-in
Frames have three parts - an “all outstanding work is finished” handler, an aggregator, and everything in between, which is used to process recurred work.
For example, suppose we want to sum all digits between 1 and our work, and report the result. The best way to design this type of system is with a Frame, implemented in inline through
frame()
andframeEnd()
. The easiest way to think of these is as the two ends of awhile
loop -frame()
is evaluated as a termination condition, and is also evaluated before anything happens.frameEnd()
exists to aggregate logic from within thewhile
loop into something thatframe
can look at.from job_stream.inline import Work, Multiple w = Work([ 4, 5, 8 ]) @w.frame def sumThrough(store, first): # Remember, this is called like the header of a while statement: once at # the beginning, and each time our recurred work finishes. Anything # returned from this function will keep the loop running. if not hasattr(store, 'value'): # Store hasn't been initialized yet, meaning that this is the first # evaluation store.first = first store.value = 0 return first # If we reach here, we're done. By not returning anything, job_stream knows # to exit the loop (finish the reduction). The default behavior of frame is # to emit the store object itself, which is fine. # Anything between an @frame decorated function and @frameEnd will be executed # for anything returned by the @frame or @frameEnd functions. We could have # returned multiple from @frame as well, but this is a little more fun @w.job def countTo(w): # Generate and emit as work all integers ranging from 1 to w, inclusive return Multiple(range(1, w + 1)) @w.frameEnd def handleNext(store, next): # next is any work that made it through the stream between @frame and # @frameEnd. In our case, it is one of the integers between 1 and our # initial work. store.value += next @w.result def printMatchup(w): print("{}: {}".format(w.first, w.value)) w.run()
Running the above code will print:
$ python script.py 4: 10 8: 36 5: 15
Note that the original work is out of order, but the sums line up. This is because a frame starts a new reduction for each individual piece of work entering the @frame decorated function.
Parameters: - store – The storage object used to remember results from the frame.
- first – The first work that began this frame.
Any results returned are recursed into the frame.
- Decorator kwargs:
store - The constructor for a storage object. Defaults to inline.Object emit - A function taking a storage object and returning the work that
should be forwarded to the next member of the stream. Defaults to emitting the store itself.
-
frameEnd
(func=None)[source]¶ Ends a frame. The decorated function should accept two arguments:
Parameters: - store – The storage object used to remember results from the frame
(same as in the
frame()
decorated method). - next – The next result object that ran through the frame.
Any results returned are recursed into the frame.
- store – The storage object used to remember results from the frame
(same as in the
-
init
(func=None)[source]¶ Decorates a method that is called only once on the primary host before any jobs run. The method is never run when continuing from a checkpoint.
Useful for e.g. creating folders, deleting temporary files from previous runs, etc.
-
job
(func=None, **kwargs)[source]¶ Decorates a job. The decorated function must take one argument, which is the work coming into the job. Anything returned is passed along to the next member of the stream.
You may also call
job()
asw.job(useMultiprocessing=False)
to disable multiprocessing for this job.Warning
I/O Safety
It is not safe to write non-unique external i/o (such as a file) within a job. This is because jobs have no parallelism guards - that is, two jobs executing concurrently might open and append to a file at the same time. On some filesystems, this results in e.g. two lines of a csv being combined into a single, invalid line. To work around this, see
result()
.
-
reduce
(func=None, **kwargs)[source]¶ Decorates a reducer. Reducers are distributed (function does not run on only one machine per reduction). Typically this is used to gather and aggregate results. Any set of work coming into a reducer will be emitted as a single piece of work.
The decorated function should take three arguments: store - The storage object on this machine. works - A list of work coming into the reducer others - A list of storage objects being joined into this reducer from
other sources.Any return value is recurred as work into the reducer.
Decorator kwargs: store - Constructor for the storage element. Defaults to inline.Object emit - Function that takes the store and returns work to be forwarded
to the next element in the stream.
-
result
(func=None, **kwargs)[source]¶ Decorates a result handler, which is called only on the primary host exactly once for each piece of work that exits the system. This is the safest place for I/O!
The handler receives a single argument, which is the piece of work exiting the system.
If no result handlers are decorated, then inline will use a collector that gathers the results and returns them in a list from the run() method (run() will return None on machines that are not the primary host).
-
class
job_stream.inline.
_ForceCheckpointAndGoJob
((object)arg1) → None :[source]¶ Bases:
job_stream.common.Job
Used for tests; execution continues after checkpoint.
- C++ signature :
- void __init__(_object*)
__init__( (object)arg1) -> None :
- C++ signature :
- void __init__(_object*)
-
_forceCheckpoint
((Job)arg1, (bool)arg2) → None :¶ Force a checkpoint after this work. If True is passed, cause the program to crash afterwards.
- C++ signature :
- void _forceCheckpoint(PyJob {lvalue},bool)
-
emit
((Job)arg1, (object)arg2) → None :¶ Emit to only target
- C++ signature :
- void emit(PyJob {lvalue},boost::python::api::object)
- emit( (Job)arg1, (object)arg2, (str)arg3) -> None :
Emit to specific target out of list
- C++ signature :
- void emit(PyJob {lvalue},boost::python::api::object,std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
-
handleWork
(work)[source]¶ Handle incoming work, maybe call self.emit() to generate more work for jobs further down the pipe.
-
postSetup
()¶ Called when self.config is set and the Job is fully ready for work, but before any work is accepted.
-
class
job_stream.inline.
_ForceCheckpointJob
((object)arg1) → None :[source]¶ Bases:
job_stream.common.Job
Used for tests; raises exception after checkpoint.
- C++ signature :
- void __init__(_object*)
__init__( (object)arg1) -> None :
- C++ signature :
- void __init__(_object*)
-
_forceCheckpoint
((Job)arg1, (bool)arg2) → None :¶ Force a checkpoint after this work. If True is passed, cause the program to crash afterwards.
- C++ signature :
- void _forceCheckpoint(PyJob {lvalue},bool)
-
emit
((Job)arg1, (object)arg2) → None :¶ Emit to only target
- C++ signature :
- void emit(PyJob {lvalue},boost::python::api::object)
- emit( (Job)arg1, (object)arg2, (str)arg3) -> None :
Emit to specific target out of list
- C++ signature :
- void emit(PyJob {lvalue},boost::python::api::object,std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
-
handleWork
(work)[source]¶ Handle incoming work, maybe call self.emit() to generate more work for jobs further down the pipe.
-
postSetup
()¶ Called when self.config is set and the Job is fully ready for work, but before any work is accepted.
-
class
job_stream.inline.
_UnwrapperJob
((object)arg1) → None :[source]¶ Bases:
job_stream.common.Job
Job to make processing after a reducer possible and sensical for inline.
- C++ signature :
- void __init__(_object*)
__init__( (object)arg1) -> None :
- C++ signature :
- void __init__(_object*)
-
_forceCheckpoint
((Job)arg1, (bool)arg2) → None :¶ Force a checkpoint after this work. If True is passed, cause the program to crash afterwards.
- C++ signature :
- void _forceCheckpoint(PyJob {lvalue},bool)
-
emit
((Job)arg1, (object)arg2) → None :¶ Emit to only target
- C++ signature :
- void emit(PyJob {lvalue},boost::python::api::object)
- emit( (Job)arg1, (object)arg2, (str)arg3) -> None :
Emit to specific target out of list
- C++ signature :
- void emit(PyJob {lvalue},boost::python::api::object,std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
-
handleWork
(work)[source]¶ Handle incoming work, maybe call self.emit() to generate more work for jobs further down the pipe.
-
postSetup
()¶ Called when self.config is set and the Job is fully ready for work, but before any work is accepted.
-
job_stream.inline.
map
(func, *sequence, **kwargs)[source]¶ Returns [ func(*a) for a in sequence ] in a parallel manner. Identical to the builtin map(), except parallelized.
kwargs - Passed to job_stream.inline.Work().
This implementation differs from job_stream.map() so that it can demonstrate the functionality of the inline module. The behavior is identical.


Preparation time
less than 30 mins
Cooking time
30 mins to 1 hour
Serves
Serves 4
For the coriander Puy lentils, heat half of the butter and all of the olive oil in a frying pan over a medium heat. Add the shallot, garlic and thyme leaves and fry for 2-3 minutes, or until softened.
Add the cumin seeds and ground coriander and cook for a further minute, or until the spices are fragrant.
Add the Puy lentils and stir well, then add the red wine and bring the mixture to a simmer. Continue to simmer the mixture, stirring well, until the volume of liquid has reduced by one-third.
Add the stock and bring the mixture to the boil. Reduce the heat until the mixture is simmering and continue to cook for 25-30 minutes, or until the lentils are tender and have absorbed the liquid.
Add the remaining butter and the Cabernet Sauvignon vinegar to the pan. Stir well, until the butter has melted, then season, to taste, with salt and freshly ground black pepper. Keep warm.
Meanwhile, for the red snapper, heat the oil and butter in a frying pan over a medium to high heat. When the butter is foaming, add the red snapper fillets, skin-side down, and fry for 3-4 minutes, or until crisp and golden-brown.
Carefully turn the red snapper fillets over and continue to fry for a further 1-2 minutes, or until cooked through. Remove from the pan and set aside on a warm plate.
For the braised shallots, heat the oil and butter in a separate frying pan over a medium heat. When the butter is foaming, add the shallots and fry for 3-4 minutes, or until just coloured.
Add the sugar and water and stir well until the sugar has dissolved. Bring the mixture to a gentle simmer and continue to cook for 5-8 minutes, or until the shallots are tender and the majority of the liquid has evaporated. Season, to taste, with salt and freshly ground black pepper.
Just before serving, sprinkle the coriander over the Puy lentils and cook for one minute, stirring well, or until the mixture is warmed through.
To serve, divide the coriander Puy lentils equally among four serving plates. Place one piece of red snapper fillet on top of each serving. Dot the braised shallots around the edge of each plate and drizzle a little olive oil over them.


Dynamic MRI Analysis
We are developing novel methods for analyzing dynamic MRI, including dynamic susceptibility (DSC) MRI and dynamic contrast-enhanced MRI (DCE). We evaluate the accuracy and repeatability of common dynamic MRI modeling schemes under clinically-relevant scanning conditions, and create digital reference objects and noise correction algorithms to address errors in these schemes. Recently, we have been applying recurrent neural networks to dynamic MR data to predict patient outcomes and tease out relationships with other imaging modalities, such as PET imaging.
Project links:
Latest publication ●
Recent publication ●
QTIM DCE ●
QTIM Phantoms


A meatgrinder is not made of currywurst.
There seems to be a controversy about when to add cardinalities and when not.
The answer is, as always: it depends.
The purpose of the diagram is what counts, so apply separation of concerns in the diagrams
you make in analysis and design too.
That does not mean that analysis is about data, and design is about the software system, but that the
aspect you are dealing with in your model will decide what kind of information is needed in a diagram.
The purpose of modeling is communication
A model in any form is a simplification of reality. Model is the art of leaving out details that are not relevant. Not relevant for the purpose of the model. Modeling in this sense also implies that there can be more models of the same reality. Each of these models can then highlight different aspects of interest for what you want to communicate. You want to express these aspects to communicate a meaning, relation, dependency, composition etcetera. A model is always about abstraction because it never IS the real thing but only describe some of it’s aspects.
Models can have different form. Formulas in math, screenplay or scripts for a movie, descriptive text, and diagrams. In UML we have many model types. The trick is to choose the correct model type for the aspects you want to discover. Drawing can be done with a pencil and paper is willing, so you can easily become confused about syntax and semantics of the modeling language, in particular on what to use when.
A natural order of modeling, diagram wise, is something like this:
-
A sketch of the things involved, or a picture, which serves as an initial model. This is what you collect in an interview.
-
The UML equivalent is an Object diagram, in which you can simply draw 6 dogs if that is what fits in a kennel.
-
Or simplify it and draw 1 dog and and add 6 to say that you have six. It makes the model simpler and still have the same information.
-
You want to model relations between objects, like ownership or space to live. In an object diagram that is a line between objects, and as far as dogs and owner goes the 'direction' of the line goes both ways, because 'you know your boss, don’t you George?'.
-
Drawing many owners and dogs becomes tedious, so you need another simplification to leave details out. This gets you to an entity relation diagram or domain model. The diagram does what the name implies: objects and their associations. So one icon to represent dog and owner plus the connecting line suffices. Add multiplicites to express that an owner can have multiple dogs, but no less than one, less he/she not be an owner. As far as the dog is concerned there is only one real pack leader at any time. The graphical syntax you use (lines and boxes) can look a lot like an object diagram. The relevant details are in the relations and multiplicities or cardinalities at the ends.
-
A next abstraction is wanting to reason about types a.k.a. classes in UML. The class diagram actually has the wrong name, it should have been called the type diagram. Its purpose is to find the relations between types, who uses whom or who determines what. It is about dependencies and further abstraction. For instance, both a dog and child should be able to listen, so they have a commonality you want to express, like
Obeyor
which is not a word but expresses what you want the sub-types to do. It does not change dog nor child but extracts the detail you want to reason about.
Modeling serves to highlight the important aspects. Choose the proper kind of diagram and try to closely stick to the syntax and semantics of the diagram and its purpose, so it helps the understanding of the details you DO want to communicate.
Modeling is always about leaving out details. Making things simpler.
Do not add details to a diagram that make no sense.
To paraphrase someone famous Everything should be made as simple as possible, but no simpler.
The above implies that the situation is not black or white, but some shade of gray.
That grayness is the reason of the confusion, because there is not one answer that fits in all situations.
It also means that you do not have to draw all diagrams all of the time, but only the diagrams that are needed. The question of
course is: How do you know that it is needed? The answer is: as soon as you want to discover or explain something.
Discovering is explaining to yourself. In a course where you need to learn the syntax and semantics of a language you must
of course practice it and use the "words" (icons, lines) to form proper sentences (models, diagrams).
A model is a kind of plan and help to keep oversight, both overall and in the details, where required.
Let me explain:
First you should consider the purpose of the diagram.
-
If you want to play out a scenario, you need objects (instances), and a box and line or stick model actors suffices. Boxes often will do because they are easily drawn (simplification).
-
Object diagram could be the next step.
Then
-
If it is about data analysis, a.k.a. domain modeling, relations between entities, then multiplicities DO matter.
-
A domain model show the relations between data elements. These relations often go two ways, and is natural, hence there is no prevalent direction.
-
If it is about designing your system architecture, then the directions of the associations (is-A, uses, or has-A) take precedence.
-
A proper class diagram of a software system is a directed graph. The relations need to have a direction, so you can discover what should or can go where, or can’t. The directions are especially important because in dependencies (which is what these arrows show), you are not allowed to have cycles.
-
In a software system class diagram, that serves to find potential reuse (using an already existing idea or type etc), cardinalities have no meaning.
-
Its suffices to know the types (class, interface) and their relation, and you rarely need to specify how many instances you will have.
-
If you do need to specify a number, then typically enum is the solution, which implicitly also serves as Singleton.
-
Let us use metaphores. Sausage and Sausage Machines.
-
A domain model is about the data. It is about sausage.
-
In the domain you specify what proportions of meat, fat, spicing, and skin you use. This is called the recipe. The processing takes place in machines.
-
-
A system design is about the sausage machines.
-
What type of bolts and nuts do we need. What is the type of steel for the grinder, and what is it’s shape etc. You need only one design ( ==template, class ) of each.
-
The size (diameter) and consistency of the sausage matter, but for the rest it is metal, wood, plastic, rubber etc.
-
The temperature and preparation time of course also matter, but that is how you use the machine.
-
-
The assembly process of the machine is the last part as far as producing machines goes.
-
In the assembly you need to know the number of bolts, grinder wheels etc. Meat nor sausage is involved, unless you hit yourselves with a spanner. The sausages will be involved in the test lab. (Think test scenarios).
-
You will find places where count matters, like a GUI that shows items of a varying number.
But than also, that count comes from the data. (Show the customers in a GUI list). -
In all other cases the GUI widgets will have names. These names can be applied to the system components. Those are specialized by for instance inheritance or composition but also by configuration, like the colour of the handle of the meat grinder or the text on a label. Or even applying plugins like in a meat grinder by replacing the grind wheel and extruder to get a different sausage type.
-
Transformation of the domain model into the system class diagram sounds reasonable,
but is in fact a fallacy.
It would be as if you could turn sausage into a sausage machine. I’m pretty sure your Butcher will tell you different when you would propose such a solution.
Quiz: What UML diagram type describes the images above best?
The sausages come close to an object diagram. Not much details is shown, which is proper for sausages. You do not want to known. The model is there to express yummy none-the-less.
The meat grinder picture is actually also an object diagram, it is the model to be used for assembly. It does have type names though, and luckily for my case only uses one of each. Ikea build plans are different.
Lucy, where is that Alan-wrench?
Sometimes it helps to go from the meta level to metaphors, to explain things, because \(\text{meta} = \text{abstract}^2\).
Do so if you have to explain something, but once the abstraction has been understood by the reader, you can stop simplifying.
It is easier to model sausages than dogs, because the former sit still.
That concludes this intermezzo on currywurst.


{% extends "timepiece/business/base.html" %} {% load timepiece_tags markup %} {% load url from future %} {% block title %}{{ business.name }}{% endblock %} {% block crumbs %} {{ block.super }}
| Short name: | {{ business.short_name }} |
|---|---|
| Email: | {{ business.email }} |
| Description: | {{ business.description|linebreaks }} |
| Notes: | {{ business.notes|linebreaks }} |


I whipped up this quick url + webpage that we can add information about club creation, participation, and important dates for budgets etc in! I know Oliver just mentioned it recently, but I figured it would be good to get at least some basic info out before the fall semester starts. If any of you think of anything particular you want to add, you can email the content to me or bring it up at a meeting. Also, if you have experience with html/css/git, I can add your github account to this website project so that you can update the website as well :)
See you soon!! - hal


composer
A package-based dependency manager for PHP projects.
More information: home page
- Interactively create a `composer.json` file:
composer init
- Add a package as a dependency for this project, adding it to `composer.json`:
composer require user/package_name
- Install all the dependencies in this project's `composer.json` and create `composer.lock`:
composer install
- Uninstall a package from this project, removing it as a dependency from `composer.json`:
composer remove user/package_name
- Update all the dependencies in this project's `composer.json` and note versions in `composer.lock` file:
composer update
- Update composer lock only after updating `composer.json` manually:
composer update --lock
- Learn more about why a dependency can't be installed:
composer why-not user/package_name
- Update composer to its latest version:
composer self-update


About Kyle
Links:
I am a software engineer in the United States, and I deal mostly with C and python. I am fascinated by information security, data mining, and natural language processing (although just getting started with the latter two). Lately, I’ve been rocking a lot more Clojure and getting back to functional programming.
Some of my writing
Working Introduction to Cryptography is a quick introduction to the subject, illustrated with Python. It is aimed at introducing basic cryptography topics to programmers who are unfamiliar with cryptography and the PyCrypto library. I ended up writing this after the combination of having to use the library heavily for work (and thereby gaining a high level of proficiency with it) and having some friends who wanted to do some cryptography work without understanding the basics of cryptography and what it provides.
Basic Set Theory and Using Set Theory: a coder’s introduction to set theory. Illustrated with Python and Clojure.
Suddenly Enlightenment describes git hooks and how to use them.
Coders (Should) Do Much More Than Code talks about some of the other skills that go into being a successful programmer.
My Docs Got Dropped is a post that made it to the front page of Hacker News. While it made it there because it was New Year’s weekend (and therefore a slow night), but it happened to be posted in a timely manner (i.e. right after the Stratfor notices went out).
Contact information
I have a development GnuPG key:
1 2 |
|
I also have a PGP key with current contact information:
1 2 |
|
Both keys are available from the MIT PGP Public Key Server.
(I’ve omitted the uid display to prevent my email addresseses from being harvested for spam).
I can also be found lurking on freenode in #devious (the channel for the BSD public shell server I help run) and #clojure. I go by vimja, emacsdaddy, or kyle_dev.
I can also be reached on XMPP, Skype, and iMessage; you can get those from one of the other contact methods.


Change log¶
version 1.7.6¶
2019-06-05
- Added attributes
_ATOL
and_RTOL
to facilitate subclassing. - Fixed bug in
Field.convert
. - Fixed bug in
core.constructs.new_identifier
.
version 1.7.5¶
2019-05-15
- New methods:
Datum.nc_has_variable
,Datum.nc_get_variable
,Datum.nc_has_variable
,Datum.nc_set_variable
(issue #3).
version 1.7.4¶
2019-05-14
- Changed behaviour of
Constructs.filter_by_axis
. - New methods:
Data.has_units
,Data.has_calendar
,Data.has_fill_value
. - New keyword ‘constructs’ to
Field.transpose
. - Keyword ‘axes’ to Field.set_data is now optional.
- Added the ‘has_bounds’ method to constructs that have data but can’t have bounds.
- New methods:
DomainAxis.nc_is_unlimited
,DomainAxis.nc_set_unlimited
. - Made Data a virtual subclass of Array.
- Deprecated methods:
Field.nc_unlimited
,Field.nc_clear_unlimited
,Field.nc_clear_unlimited
. - Fixed bug when writing new horizontal coordinate reference for the vertical datum.
- Fixed bug in
del_data
methods. - Fixed bug with in-place operations.
- Fixed bug with position in some
insert_dimension
methods. - Fixed bug that sometimes made duplicate netCDF dimensions when writing to a file.
- Added _shape keyword to
Field.set_data_axes
to allow the data shape to be checked prior to insertion. - Added the ‘_custom’ attribute to facilitate subclassing.
- New class
mixin.NetCDFUnlimitedDimension
replacesmixin.NetCDFUnlimitedDimensions
, which is deprecated. - New method
CFDMImplementation.nc_is_unlimited_axis
replacesCFDMImplementation.nc_get_unlimited_axes
, which is deprecated. - New method
CFDMImplementation.nc_set_unlimited_axis
replacesCFDMImplementation.nc_set_unlimited_dimensions
, which is deprecated.
version 1.7.3¶
2019-04-24
- New method:
Constructs.filter_by_size
. - New method:
Data.uncompress
. - Changed the default behaviours of the
Construct.filter_by_axis
,Construct.filter_by_size
,Construct.filter_by_naxes
,Construct.filter_by_property
,Construct.filter_by_ncvar
,Construct.filter_by_ncdim
,Construct.filter_by_method
,Construct.filter_by_measure
methods in the case when no arguments are provided: Now returns all possible constructs that could have the feature, with any values. - Renamed the “underlying_array” methods to “source”
- Added _field_data_axes attribute to
Constructs
instances. - Added _units and _fill_value arguments to get_data method.
- Moved contents of cfdm/read_write/constants.py to
NetCDFRead
andNetCDFWrite
. - Fixed bug in
CoordinateReference.clear_coordinates
. - Fixed bug in
Field.convert
(which omitted domain ancillaries in the result). - Added **kwargs parameter to
CFDMImplementation.initialise_Data
, to facilitate subclassing. - Added
NetCDFRead._customize_read_vars
to facilitate sublcassing. - Added
NetCDFWrite._transform_strings
to facilitate sublcassing.
version 1.7.2¶
2019-04-05
- New “mode” parameter options to
Constructs.filter_by_axis
: ‘exact’, ‘subset’, ‘superset’. - Enabled setting of HDF5 chunksizes.
- Fixed bug that caused coordinate bounds to be not sliced during subspacing (issue #1).
version 1.7.1¶
2019-04-02
- New methods
Constructs.clear_filters_applied
,Constructs.filter_by_naxes
. - Changed behaviour of
Constructs.unfilter
andConstructs.inverse_filters
: added depth keyword and changed default.


Hi! My name is Jonathan Rivera, and I'm a Cyber Security major from Kean University.
Over the past few years, I've had a part in numerous projects and experiences that
have helped me learn many great and amazing skills, and today, I'm still enthusiastic
to learn and train more. This website is dedicated to showing off all the work I have
been a part of, as well as acting as my own learning experience on how to create
cleaner websites.
From websites that use CGI programs to handle requests to a full demo bank system and more, here are a few projects that I'm really proud of! If you would like to see more, please visit my main page, as well as my github!
This is my Demo Bank System project! Using PHP with mySQL in the backend, this demo website can handle secure user logins as well as allow users to make and edit transactions, and see transaction history. (Planning to add CSS in the future)
These are my Web CGI Programs! I took part in this project to learn more about how to handle web requests, and each program uses their own language, allowing me to learn the pros and cons to each. From PHP to Python to Java, these websites can use the power of well established languages to handle user requests.
If you would like to view more of my projects, click here to visit my main page! This website, hosted by my school Kean University, is open 24/7, and recieves updates frequently. Come check it out!
Click The button below to see one of my favorite games!


var heatmap = h337.create({
container: domElement
});
heatmap.setData({
max: 5,
data: [{ x: 10, y: 15, value: 5}, ...]
});
"One to rule them all: Heatmap.js is great! Besides allowing us to make beautiful heatmaps, it also gives us independence to use different maps library, such as leaflet and google map."
- Rodrigo Saad, PhD. Eng. in HPC and System Dependability


Last time we talked about logistic regression, but I did not give a very overview idea about what the classification problem is and how can we classify different classification methods. So let us talk them this time!
Most classification models can be categorized as generative or discriminative. What is the difference?
Generative models focus on modeling the $P(X,Y)$ and then use $\hat{Y(X)}$ as a classifier where:
$$\hat{Y(X)} = \arg \max_{Y} P(Y|X) = \arg \max \frac{P(X|Y)P(Y)}{\sum_i P(X|Y_i)P(Y_i)} = \arg \max_Y P(X|Y)P(Y)$$
Example includes linear discriminant analysis (LDA), quadratic discriminant analysis (QDA) and Naive Bayes
Discriminative methods focus on modeling $P(Y|X)$ directly. So these methods aim to minimize the loss directly without making any assumptions about $P(X, Y)$ or $P(Y|X)$. Most of the classification methods belong to this category such as the logistic regression we talked before, and also SVMs, knn and classification trees.
1. Introduction
I will cover three generative classification models in the next several posts: LDA, QDA and Naive Bayes. Here are their basic differences:
- LDA and QDA assume Gaussian density for $P(X|Y)$, but LDA needs the variance for each class to be the same, and QDA does not.
- Naive Bayes assumes $P(X|Y) = \prod_j P(X_j|Y)$
2. Bayes Classifier
Before we talk about Naive Bayes, let us review what is bayes classifier first.
Suppose we know $P(Y|X)$, then given an input, we could predict the response:
$$\hat{y_0} = \arg\max_y P(Y=y|X=x_0)$$
and it is the best classifier under the expected 0-1 loss, Why? Here is the brief proof: (I think this part is very necessary to know)
The 0-1 binary loss function has the following form:
$$ l_\boldsymbol{x}(\hat s, s^*) = 1 - \delta_{\hat ss^*} = \begin{cases} 1 & \text{if} \quad \hat s \ne s^* \\ 0 & \text{otherwise} \end{cases} $$
where $\delta$ is the Kronecker Delta function. (...) the expected loss is:
$$ \begin{align} \mathcal{L}_\boldsymbol{x}(\hat s) &= \sum_{s^*} l_\boldsymbol{x}(\hat s, s^*) \; P(s = s^* \mid \boldsymbol{x}) \\ &= \sum_{s^*} (1 - \delta_{\hat ss^*}) \; P(s = s^* \mid \boldsymbol{x}) \\ &= \sum_{s^*} P(s = s^* \mid \boldsymbol{x}) - \sum_{s^*} \delta_{\hat ss^*} P(s = s^* \mid \boldsymbol{x}) \\ &= 1 - P(s = s^* \mid \boldsymbol{x}) \end{align} $$
So we could see, minimize the expected 0-1 loss equals to maximize the $P(s=s^*|\boldsymbol{x})$ and if we want to find $\arg \min_s \mathcal{L}_\boldsymbol{x}(\hat s)$, it equals to find $\arg \max_s P(s = s^*|\boldsymbol{x})$.
After knowing the relationship between 0-1 loss and bayes classifier, we then could have a much clear understanding of naive bayes.
Finally, Since these "true" probabilities are essentially never known, the Bayes Classifier is more a theoretical concept and not something that we can actually use in practice.
3. Naive Bayes Classifier
Naive Bayes Classifier could be seen as a simple case of Bayes Classifier. Since Bayes Classifier is hard to calculate in practical, Naive Bayes make some assumptions to make it computable: it assumes that the features are independent conditional on the class $Y$.
It is a strong and generally unrealistic assumption but naive Bayes still often works very well in practice.
3.1 Model Construction
We start from the basic generative model:
$$\hat{Y(X)} = \arg \max_{Y} P(Y|X) = \arg \max \frac{P(X|Y)P(Y)}{\sum_i P(X|Y_i)P(Y_i)} = \arg \max_Y P(X|Y)P(Y)$$
And for naive bayes model, we have (suppose we have p features):
$$\hat{Y} = \arg \max_Y P(X|Y)P(Y) = \arg \max_Y P(x_1,...,x_p|Y)P(Y)= \arg \max_Y \prod_{i=1}^p P(x_i|Y)P(Y)$$
- The distribution $P(Y)$ is easy to estimate from training data: $$ P(y) = \frac{\# \ of \ observations \ in \ class\ y}{\# \ of\ observations}$$
- The class conditionals $P(x_i|Y=y)$ usually requires a distribution assumption. When dealing with continuous data, a typical assumption is normal distribution; for discrete data, we always use multinomial distribution. Then we will use MLE to estimate the parameters.
3.2 Model Implementation
This time I compare my Naive Bayes classifier's result with sklearn.naive_bayes.GaussianNB
's result, and they both have an 87% accuracy, which is pretty good. Here is my code for Naive Bayes Classifier from scratch:
Jupyter Notebook For Naive Bayes Classifier
Let us talk other generative classification methods next time!


|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Activity net.hockeyapp.android.UpdateActivity
public class UpdateActivity
Copyright (c) 2012 Codenauts UG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Field Summary | |
|---|---|
protected DownloadFileTask |
downloadTask
Task to download the .apk file. |
protected VersionHelper |
versionHelper
Helper for version management. |
| Constructor Summary | |
|---|---|
UpdateActivity()
|
| Method Summary | |
|---|---|
protected void |
configureView()
Configures the content view by setting app name, the current version and the listener for the download button. |
protected void |
createDownloadTask(java.lang.String url,
DownloadFileListener listener)
|
void |
enableUpdateButton()
Enables the download button. |
java.lang.String |
getAppName()
Returns the app's name. |
int |
getCurrentVersionCode()
Returns the current version of the app. |
ViewGroup |
getLayoutView()
Creates and returns a new instance of UpdateView. |
void |
onClick(View v)
Called when the download button is tapped. |
void |
onCreate(Bundle savedInstanceState)
Called when the activity is starting. |
java.lang.Object |
onRetainNonConfigurationInstance()
Detaches the activity from the download task and returns the task as last instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DownloadFileTask downloadTask
protected VersionHelper versionHelper
| Constructor Detail |
|---|
public UpdateActivity()
| Method Detail |
|---|
public void onCreate(Bundle savedInstanceState)
savedInstanceState
- Data it most recently supplied in
onSaveInstanceState(Bundle)protected void configureView()
public java.lang.Object onRetainNonConfigurationInstance()
protected void createDownloadTask(java.lang.String url, DownloadFileListener listener)
public void enableUpdateButton()
public int getCurrentVersionCode()
getCurrentVersionCode
in interface UpdateInfoListener
public ViewGroup getLayoutView()
getLayoutView
in interface UpdateActivityInterface
public java.lang.String getAppName()
public void onClick(View v)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Susan Granger's review of "DANCING AT LUGHNASA" (Sony Pictures Classics)
Give two-time Academy Award winner Meryl Streep a juicy role with a foreign accent and, once again, she delivers a performance that shimmers with Oscar gold. In this screen adaptation of Brian Friel's Irish play about five unmarried sisters living in Donegal in 1936, she plays the self-righteous eldest, an imperious schoolteacher whose determination holds the family together - until, one magical August, everything changes. After spending 25 years as a missionary priest in Africa, their befuddled brother (Michael Gambon) returns. It's a family reunion complicated by the re-appearance of the wandering Welshman father of the eight year-old love-child of one of the sisters (Catherine McCormack) and the festival of Lughnasa, a pagan ritual to celebrate the harvest with music and dance. All of this emotional upheaval is set against a time of change - the first radio, which brings music into the modest farmhouse - and the industrial revolution, which puts an end to two sisters' occupation of knitting woolen gloves at home. Director Pat O'Connor not only delves into the hardscrabble beauty of the rural Irish landscape - aided by the magnificent cinematography of Kenneth MacMillan - but also elicits remarkably strong performances from each of the actors. Nevertheless, this is primarily a cerebral piece, not a cinematic one - which may prevent it from reaching a wider audience. How does the film compare with the play? It's better in that, on-stage, several of the Irish actors spoke with such thick brogues that - while the concept was clear - individual speeches were often indecipherable. On-screen, with the added advantage of close-ups, each word is easily understandable. On the Granger Movie Gauge of 1 to 10, "Dancing at Lughnasa" is an eloquent 7, a gritty tale of hardship and heartbreak.
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Hi! Nice to meet you, my name is Miguel Gallardo
I like soccer ⚽, tacos 🌮🌮🌮 and burgers 🍔
Want to learn more?
Click here!


https://github.com/jordanduran/Portfolio2/blob/master/src/index.html
A New York City based full-stack developer with a passion for creating beautiful user interfaces. I enjoy problem solving, the creative freedom, and the opportunity to see the projects I’ve worked on come to life! I pride myself in being a hardworking, self-disciplined person who is also very easy to work with. When I'm not computer coding, chances are I'm either playing video games, or skateboarding.
View ResumeScenic Forests is a beautifully designed landing page that created for people who want to take a nice vacation away from the city. It displays cabin homes in different areas along with the amenities. This landing page was designed with HTML5, CSS3, & JavaScript.
Teaplace is another beautifully designed landing page but this one is much simpler. The landing page is of course related to Tea! This was created using HTML5, CSS3, and JavaScript.
DevSpace is a full-stack social application created for developers anywhere in the world to be able to create their own profile along with their portfolio, and create posts. Created with HTML5, CSS3, SaaS, React, Express, PostgreSQL, Heroku, and ZEIT for deployment.
Shopzilla is a full-stack E-commerce application where users are able to create an account to showcase their business. Sellers can provide their shop details and upload products to their page. Buyer accounts can explore the available shops and save items to their wishlist. This application was built with HTML5, CSS3, JavaScript, React, Nodejs, Express, and PostgreSQL for the database.
Pig is a two player game played with Dice where each player can roll the dice as many times as they want. If they hold, the score is added to their total. If a one is rolled, the score is not added to their total and the turn is now the opposing player. The application was created with HTML5, CSS3, and vanilla JavaScript. Hosted on Netlify.
TinDog is a Tinder clone but for dogs! This is a fully responsive starter landing page with a title section, feature section, a carousel for the testimonials, pricing section, and a Call to Action where users can download the app. Tools used to create this landing page are HTML5, CSS3, and Bootstrap.
Github Finder is an application that allows a user to search for any existing Github user, and view their profile along with their latest repos and other information. Created with CSS3, React, React Hooks, and the ContextAPI.
Grubclub is an application utilizing the Zomato API to display important restaurant information such as reviews, menu, photos, address, and more. The user inputs a type of food along with a location, a list of restaurants are then displayed with the important details. Created using HTML, CSS, Javascript, and JQuery.
A responsive react application that manages folders which can contain multiple notes. Aside from React this application also utilized React Router, JSX, CSS3, Node and PostgreSQL. The Front-End client is deployed on Github Pages and the Back-End server is deployed on Heroku.
Google Keep is a note-taking service developed by Google. This is a cloned version using vanilla JavaScript. The user is able to create, edit, and delete notes. The user also has the ability to change the note's background color. All notes are saved using localStorage.
Quote generator is an application where users are greeted with a quote upon site load, and have the ability to tweet the current quote, or request a new one. This application was created with HTML5, CSS3, and pure vanilla JavaScript!
GitHub Jobs is an application where users can search for the currently listed jobs on GitHub. This app was created using the GitHub Jobs API, as well as React Hooks and React Bootstrap.
Have a question or want to work together?
Email Me


| Property Name |
Data Type |
Required |
Default |
Description |
| type |
String |
Yes |
"DBTreeView" |
Must be: DBTreeView
|
| dataset |
String/jslet.data.Dataset |
Yes |
|
Dataset name or Dataset object.
|
| displayFields |
String |
|
|
Display fields, it's a js expresssion, like: "[code]+'-'+[name]". |
| hasCheckBox |
Boolean |
|
false |
Identify if there is checkbox on tree node. |
| correlateCheck |
Boolean |
|
false |
True - when you check one tree node, its children and its parent will check too. |
| correlateCheck |
Boolean |
|
false |
True - when you check one tree node, its children and its parent will check too. |
| readOnly |
Boolean |
|
false |
Checkbox is readonly or not, ignored if hasCheckBox = false. |
| keyField |
String |
|
|
Key field, it will use 'keyField' and 'parentField' to construct tree nodes. |
| parentField |
String |
|
|
Parent field, it will use 'keyField' and 'parentField' to construct tree nodes. |
| expandLevel |
Integer |
|
|
Identify the nodes which level is from 0 to "expandLevel" will be expanded when initialize tree. |
| iconClassField |
String |
|
|
If icon class is stored one field, you can set this property to display different tree node icon. |
| onGetIconClass |
Event |
|
|
You can use this event to customize your tree node icon flexibly. Event handler:
function(keyValue, level, isLeaf) {...};
Parameters:
keyValue: String, key value of tree node;
level: Integer, tree node level;
isLeaf: Boolean, Identify if the tree node is the leaf node.
Return:
String, icon class name;
|
| onCreateContextMenu |
Event |
|
|
Fire before show context menu, you can add your own context menu in this event. Example:
tabObj.onCreateContextMenu = function(menuItems) {
var menuObj = {id: "copy", name: "Copy",
onClick: doClick};
menuItems.push(menuObj);
}
Event handler:
function(menuItems) {...};
Parameters:
menuItems: Array of menu item.
Return:
void;
|


SmartCambridge SmartPanel
{% for stylesheet in stylesheets %}
{% endfor %}
{% for script in scripts %}
{% endfor %}
SmartPanel
{% with grid_columns=layout.design.grid.columns|default:6 %}
{% with grid_rows=layout.design.grid.rows|default:4 %}
{# Note we are providing fallback to layout.design contains list of widgets. Newer version has them in layout.design.widgets #}
{% for widget_id, value in layout.design.widgets.items|default:layout.design.items %}


@import uk.gov.hmrc.govukfrontend.views.html.components._
@this(govukInput : GovukInput)
@()
@govukInput(Input(
id = "vat-registration-number",
name = "vat-registration-number",
label = Label(
content = Text("VAT registration number")
),
hint = Some(Hint(
content = Text("This is 9 numbers, sometimes with ‘GB’ at the start, for example 123456789 or GB123456789. You can find it on your VAT registration certificate.")
)),
classes = "govuk-input--width-10"
))


This example demonstrates video decoding capability of Cortex-A8 core using MPEG-4 codec. The Multimedia framework used is GStreamer and gst-ffmpeg plug-in is used to call into open source FFmpeg codec libraries. The data file resolution has been modified to retain the original aspect ratio of 16:9.
gst-launch
|_ mpeg4videoparse
|_ ffdec_mpeg4
|_ v4l2/fbdev sink