| 1 | /* =========================================================== | |
| 2 | * JFreeChart : a free chart library for the Java(tm) platform | |
| 3 | * =========================================================== | |
| 4 | * | |
| 5 | * (C) Copyright 2000-2010, by Object Refinery Limited and Contributors. | |
| 6 | * | |
| 7 | * Project Info: http://www.jfree.org/jfreechart/index.html | |
| 8 | * | |
| 9 | * This library is free software; you can redistribute it and/or modify it | |
| 10 | * under the terms of the GNU Lesser General Public License as published by | |
| 11 | * the Free Software Foundation; either version 2.1 of the License, or | |
| 12 | * (at your option) any later version. | |
| 13 | * | |
| 14 | * This library is distributed in the hope that it will be useful, but | |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
| 16 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public | |
| 17 | * License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU Lesser General Public | |
| 20 | * License along with this library; if not, write to the Free Software | |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, | |
| 22 | * USA. | |
| 23 | * | |
| 24 | * [Java is a trademark or registered trademark of Sun Microsystems, Inc. | |
| 25 | * in the United States and other countries.] | |
| 26 | * | |
| 27 | * ----------------------- | |
| 28 | * ChartProgressEvent.java | |
| 29 | * ----------------------- | |
| 30 | * (C) Copyright 2003-2010, by Object Refinery Limited. | |
| 31 | * | |
| 32 | * Original Author: David Gilbert (for Object Refinery Limited); | |
| 33 | * Contributor(s): -; | |
| 34 | * | |
| 35 | * Changes | |
| 36 | * ------- | |
| 37 | * 14-Jan-2003 : Version 1 (DG); | |
| 38 | * 20-Jan-2010 : Fixed bug in constructor (DG); | |
| 39 | * | |
| 40 | */ | |
| 41 | ||
| 42 | package org.jfree.chart.event; | |
| 43 | ||
| 44 | import org.jfree.chart.JFreeChart; | |
| 45 | ||
| 46 | /** | |
| 47 | * An event that contains information about the drawing progress of a chart. | |
| 48 | * | |
| 49 | */ | |
| 50 | public class ChartProgressEvent extends java.util.EventObject { | |
| 51 | ||
| 52 | /** Indicates drawing has started. */ | |
| 53 | public static final int DRAWING_STARTED = 1; | |
| 54 | ||
| 55 | /** Indicates drawing has finished. */ | |
| 56 | public static final int DRAWING_FINISHED = 2; | |
| 57 | ||
| 58 | /** The type of event. */ | |
| 59 | private int type; | |
| 60 | ||
| 61 | /** The percentage of completion. */ | |
| 62 | private int percent; | |
| 63 | ||
| 64 | /** The chart that generated the event. */ | |
| 65 | private JFreeChart chart; | |
| 66 | ||
| 67 | /** | |
| 68 | * Creates a new chart change event. | |
| 69 | * | |
| 70 | * @param source the source of the event (could be the chart, a title, an | |
| 71 | * axis etc.) | |
| 72 | * @param chart the chart that generated the event. | |
| 73 | * @param type the type of event. | |
| 74 | * @param percent the percentage of completion. | |
| 75 | */ | |
| 76 | public ChartProgressEvent(Object source, JFreeChart chart, int type, | |
| 77 | int percent) { | |
| 78 | super(source); | |
| 79 | this.chart = chart; | |
| 80 | this.type = type; | |
| 81 | this.percent = percent; | |
| 82 | } | |
| 83 | ||
| 84 | /** | |
| 85 | * Returns the chart that generated the change event. | |
| 86 | * | |
| 87 | * @return The chart that generated the change event. | |
| 88 | */ | |
| 89 | public JFreeChart getChart() { | |
| 90 |
1
1. getChart : mutated return of Object value for org/jfree/chart/event/ChartProgressEvent::getChart to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return this.chart; |
| 91 | } | |
| 92 | ||
| 93 | /** | |
| 94 | * Sets the chart that generated the change event. | |
| 95 | * | |
| 96 | * @param chart the chart that generated the event. | |
| 97 | */ | |
| 98 | public void setChart(JFreeChart chart) { | |
| 99 | this.chart = chart; | |
| 100 | } | |
| 101 | ||
| 102 | /** | |
| 103 | * Returns the event type. | |
| 104 | * | |
| 105 | * @return The event type. | |
| 106 | */ | |
| 107 | public int getType() { | |
| 108 |
1
1. getType : replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE |
return this.type; |
| 109 | } | |
| 110 | ||
| 111 | /** | |
| 112 | * Sets the event type. | |
| 113 | * | |
| 114 | * @param type the event type. | |
| 115 | */ | |
| 116 | public void setType(int type) { | |
| 117 | this.type = type; | |
| 118 | } | |
| 119 | ||
| 120 | /** | |
| 121 | * Returns the percentage complete. | |
| 122 | * | |
| 123 | * @return The percentage complete. | |
| 124 | */ | |
| 125 | public int getPercent() { | |
| 126 |
1
1. getPercent : replaced return of integer sized value with (x == 0 ? 1 : 0) → NO_COVERAGE |
return this.percent; |
| 127 | } | |
| 128 | ||
| 129 | /** | |
| 130 | * Sets the percentage complete. | |
| 131 | * | |
| 132 | * @param percent the percentage. | |
| 133 | */ | |
| 134 | public void setPercent(int percent) { | |
| 135 | this.percent = percent; | |
| 136 | } | |
| 137 | ||
| 138 | } | |
Mutations | ||
| 90 |
1.1 |
|
| 108 |
1.1 |
|
| 126 |
1.1 |


Lyco is a 17 year-old Programming Student, Currently the Founder and CEO of Maharlika Hosting, specialized on Game/Standalone Server Software
Lyco love to do Programming, since he was a kid, he has a passion on computers and programs, thats
why Lyco like to pursue Technology Related Courses.
Lyco has a background too on Customer Support, AV
Integration and Live Production Technician.
Hi I'm Aaron John villanueva im 19 Years Old, Currently studying in Informatics College Northgate doing my best to learn and improve
And currently learning to become good at programing, Despite my lacking of skills in that field im gonna work ard and do my best
Goinnah is a 17 year old Programming student
Goinnah love to play Chess and Sudoku, since she was a kid. She has a passion on computer, that's why Goinnah like to pursue IT profession.


| 050:039 Khan | : |
So bear with patience (O Muhammad SAW) all that they say, and glorify the Praises of your Lord, before the rising of the sun and before (its) setting (i.e. the Fajr, Zuhr, and 'Asr prayers). |
| 050:039 Maulana | : |
So bear with what they say, and celebrate the praise of thy Lord before the rising of the sun and before the setting. |
| 050:039 Pickthal | : |
Therefor (O Muhammad) bear with what they say, and hymn the praise of thy Lord before the rising and before the setting of the sun; |
| 050:039 Rashad | : |
Therefore, be patient in the face of their utterances, and praise and glorify your Lord before sunrise, and before sunset. |
| 050:039 Sarwar | : |
(Muhammad), exercise patience against what they say. Glorify your Lord with His praise before sunrise and sunset. |
| 050:039 Shakir | : |
Therefore be patient of what they say, and sing the praise of your Lord before the rising of the sun and before the setting. |
| 050:039 Sherali | : |
So bear with patience what they say, and celebrate the praises of thy Lord, before the rising of the sun and before its setting; |
| 050:039 Yusufali | : |
Bear, then, with patience, all that they say, and celebrate the praises of thy Lord, before the rising of the sun and before (its) setting. |
Concepts/Themes Covered: أركان الإسلام > التوحيد > توحيد الله تعالي > حمد الله تعالى وتسبيحه والثناء عليه Pillars of Islam> Islamic> Oneness of Allah> Praise be to Him أركان الإسلام > الصلاة > أداء الصلاة > الحض عليها Pillars of Islam> The Prayers>Performing the Prayers> The Incitement to Pray الإنسان والعلاقات الأخلاقية > الأخلاق الحميدة > الصبر Man and The Moral Relations> Good Morals>Patience
This tool uses eight English parallel translations for the Holy Quran imported from Mr. Clay Smith. You can also visit Qurany Concepts for browsing the Quran themes or topics. If you want to search the Holy Quran for keywords, please visit Qurany Keywords.


Class: ActiveRecord::ConnectionAdapters::PostgreSQLTypeMetadata
| Relationships & Source Files | |
| Inherits: |
ActiveRecord::ConnectionAdapters::SqlTypeMetadata
|
| Defined in: | activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb |
Class Method Summary
Instance Attribute Summary
Instance Method Summary
- #==(other) (also: #eql?)
-
#eql?(other)
Alias for #==.
- #hash
- #sql_type
Constructor Details
.new(type_metadata, oid: nil, fmod: nil) ⇒ PostgreSQLTypeMetadata
Instance Attribute Details
#array (readonly)
[ GitHub ]#fmod (readonly)
[ GitHub ]#oid (readonly)
[ GitHub ]Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb', line 22
def ==(other) other.is_a?(PostgreSQLTypeMetadata) && attributes_for_hash == other.attributes_for_hash end
#eql?(other)
Alias for #==.
# File 'activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb', line 26
alias eql? ==
#hash
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb', line 28
def hash attributes_for_hash.hash end
#sql_type
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/postgresql/type_metadata.rb', line 18
def sql_type super.gsub(/\[\]$/, "".freeze) end


Domain Name System (DNS)
{% include cardv2.html
title="OpenNIC - Service"
image="/assets/img/tools/OpenNIC.png"
description="OpenNIC is an alternate network information center/alternative DNS root which lists itself as an alternative to ICANN and its registries. Like all alternative root DNS systems, OpenNIC-hosted domains are unreachable to the vast majority of the Internet."
website="https://www.opennic.org/"
forum="https://forum.privacytools.io/t/discussion-opennic/338"
github="https://github.com/OpenNIC"
%}
{% include cardv2.html
title="Njalla - Domain Registration"
image="/assets/img/provider/Njalla.png"
description="Njalla only needs your email or jabber address in order to register a domain name for you. Created by people from The Pirate Bay and IPredator VPN. Accepted Payments: Bitcoin, Litecoin, Monero, DASH, Bitcoin Cash and PayPal. A privacy-aware domain registration service."
website="https://njal.la/"
tor="http://njalladnspotetti.onion"
forum="https://forum.privacytools.io/t/discussion-njalla/339"
%}
{% include cardv2.html
title="DNSCrypt - Tool"
image="/assets/img/tools/DNSCrypt.png"
description="A protocol for securing communications between a client and a DNS resolver. The DNSCrypt protocol uses high-speed high-security elliptic-curve cryptography and is very similar to DNSCurve, but focuses on securing communications between a client and its first-level resolver."
website="https://dnscrypt.info/"
forum="https://forum.privacytools.io/t/discussion-dnscrypt/340"
github="https://github.com/jedisct1/dnscrypt-proxy"
%}
Worth Mentioning
- NoTrack - A network-wide DNS server which blocks Tracking sites. Currently works in Debian and Ubuntu.
- Namecoin - A decentralized DNS open source information registration and transfer system based on the Bitcoin cryptocurrency.
- Pi-hole - A network-wide DNS server for the Raspberry Pi. Blocks advertising and tracking domains for all devices on your network.
- ICANN DNS resolvers with support for encrypted DNS
- AdGuard DNS - A commercial, anycast DNS resolver with ad-blocking and support for DNS over HTTPS (DoH), DNS over TLS (DoT), and DNSCrypt. Warnings
- BlahDNS - A small hobby ad-blocking DNS project with DoH, DoT, and DNSCrypt support. Servers located in Switzerland, Japan, and Germany. Warnings
- PowerDNS - A best effort DoH service. Servers located in the Netherlands.
- Quad9 DNS - A non-profit, anycast DNS provider founded by IBM, PCH, and Global Cyber Alliance. Provides malicious domain filtering and supports DoH, DoT, and DNSCrypt. Warnings


Sharaf Makahleh
|
|
A graduated student
currently studying coding
have studied Graphic Design
|
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo molestiae excepturi architecto vero distinctio. Vitae, sint sapiente! Asperiores, autem veniam iste sapiente doloremque tenetur neque consequuntur dicta! Vel, tempore quos?
Courses and Certificates
- Graphic Design Courses
- Photos Manipulating
- UI&UX design
- The ultimate design course
Hoppies
- Chess
- Volleyball
- Martial Arts
Skills
| Html ⭐⭐
|
| Photoshoping ⭐⭐⭐⭐⭐
|


Introduction to Java Programming, Includes Data Structures, Eleventh Edition,
Y. Daniel Liang
This quiz is for students to practice. A large number of additional quiz questions is available for instructors from the Instructor's Resource Website.
Chapter 36 Internationalization
Section 36.2 The Locale Class
36.1
How do you set a button jbt's text to a character with the Unicode 13AE?
A.
jbt.setText("13AE");
B.
jbt.setText("\13AE");
C.
jbt.setText("\u13AE");
D.
jbt.setText("/u13AE");
E.
jbt.setText('\u13AE');
36.2
How do you create a locale for the United States?
A.
new Locale("en", "US");
B.
new Locale("US", "en");
C.
Locale.US;
D.
Locale.getLocale("en", "US")
36.3
Which of the following methods is defined in the Locale class?
A.
getLanguage()
B.
getCountry()
C.
getVariant()
D.
getCountryVariant()
36.4
Which of the following methods is correct to obtain the available locales in the classes Calendar, Collator, DateFormat, and NumberFormat?
A.
getLocales()
B.
getAllLocales()
C.
getAvailableLocales()
D.
availableLocales()
36.5
Which of the following classes have the getAvailableLocales() method?
A.
Calendar
B.
Collator
C.
DateFormat
D.
NumberFormat
Section 36.3 Processing Date and Time
36.6
Which of the following set of code lines displays the current time in locale sensitive format?
A.
GregorianCalendar gcal = new GregorianCalendar(); System.out.println(gcal.toString());
B.
Date d = new Date(); System.out.println(d.toString());
C.
GregorianCalendar gcal = new GregorianCalendar(new TimeZone("CST")); System.out.println(gcal.toString());
D.
GregorianCalendar gcal = new GregorianCalendar(); DateFormat myFormat = DateFormat.getDateTimeInstance(); myFormat.setTimeZone(TimeZone.getTimeZone("CST")); System.out.println(myFormat.format(gcal.getTime()));
36.7
Which of the following code is correct to obtain hour from a Calendar object cal?
A.
cal.getHour();
B.
cal.hour();
C.
cal.get(Hour);
D.
cal.get(Calendar.HOUR);
36.8
Which of the following code is correct to set a time zone in a Calendar object?
A.
cal.timeZone("CST");
B.
cal.setTimeZone("CST");
C.
cal.getTimeZone();
D.
cal.get(Calendar.HOUR);
36.9
Which of the following constants are the valid date and time format?
A.
DateFormat.SHORT
B.
DateFormat.MEDIUM
C.
DateFormat.LONG
D.
DateFormat.FULL
36.10
Which of the following statements are true?
A.
SimpleDateFormat is a subclass of DateFormat.
B.
DateFormatSymbols is a subclass of SimpleDateFormat.
C.
SimpleDateFormat enables you to choose any user-defined pattern for date and time formatting.
D.
You can obtain localizable date-time formatting data, such as the names of the months, the names of the days of the week, and the time zone data, from an instance of DateFormatSymbols.
36.11
Suppose DateFormatSymbols symbols = new DateFormatSymbols(), Which of the following statements is correct to return month names?
A.
String[] monthNames = symbols.getMonths();
B.
String[] weekdayNames = symbols.getWeekdays();
C.
String[] eras = symbols.getEras();
D.
String[] eras = symbols.getAmPmStrings();
36.12
Which of the following are in the java.text package?
A.
DateFormatSymbols
B.
DateFormat
C.
SimpleDateFormat
D.
Date
E.
Locale
Section 36.4 Formatting Numbers
36.13
Which of the following code is correct to create an instance for formatting numbers?
A.
NumberFormat.getInstance();
B.
NumberFormat.getNumberInstance(locale);
C.
NumberFormat.getInstance(locale);
D.
NumberFormat.getNumberFormatInstance(locale);
36.14
Which of the following code is correct to create an instance for formatting numbers in currency?
A.
NumberFormat.getCurrencyInstance(locale);
B.
NumberFormat.getCurrencyInstance();
C.
NumberFormat.currencyInstance(locale);
D.
NumberFormat.currencyInstance();
36.15
Which of the following code is correct to create an instance for formatting numbers in percent?
A.
NumberFormat.getPercentInstance(locale);
B.
NumberFormat.getPercentInstance();
C.
NumberFormat.percentInstance(locale);
D.
NumberFormat.percentInstance();
36.16
Which of the following are valid methods in NumberFormat?
A.
format(double)
B.
format(long)
C.
setMaximumIntegerDigits(int)
D.
setMinimumIntegerDigits(int)
36.17
Which of the following code displays the numbers with at least two digits before and after the decimal point?
A.
NumberFormat numberForm = NumberFormat.getNumberInstance(); DecimalFormat df = (DecimalFormat)numberForm;
df.applyPattern("00.00");
B.
NumberFormat numberForm = NumberFormat.getNumberInstance(); numberForm.setMaximumFractionDigits(2); numberForm.setMinimumFractionDigits(2);
C.
NumberFormat numberForm = NumberFormat.getNumberInstance();
numberForm.setMaximumFractionDigits(2);
36.18
Suppose that NumberFormat currencyFormat = NumberFormat.getCurrencyInstance(Locale.US). Which of the following statement is legal?
A.
Number number = NumberFormat.parse("$5,000.56");
B.
Number number = currencyFormat.parse("$5,000.56");
C.
Number number = currencyFormat.parseCurrency("$5,000.56");
D.
Number number = currencyFormat.parse("5,000.56");
36.19
Which of the following statements are true?
A.
DecimalFormat is a subclass of NumberFormat.
B.
You can create an instance of DecimalFormat using new DecimalFormat(Local).
C.
You can create an instance of NumberFormat using new NumberFormat(Local).
D.
You can create an instance of NumberFormat using the static factory methods in NumberFormat.
E.
An instance created using the static factory methods in NumberFormat is also an instance of DecimalFormat.
36.20
Which of the following statements are true regarding DecimalFormat?
A.
A pattern can specify the minimum number of digits before the decimal point and the maximum number of digits after the decimal point.
B.
The characters '0' and '#' are used to specify a required digit and an optional digit, respectively.
C.
The optional digit is not displayed if it is zero.
D.
If there are more actual digits before the decimal point, all the digits are displayed.
E.
If there are more digits after the decimal point, the digits are rounded.
36.21
Suppose you apply the pattern "00.0##" on a DecimalFormat object f using f.applyPattern("00.0##"). What is the return value from decimalFormat.format(111.2226)?
A.
11.223
B.
111.222
C.
111.223
D.
11.2226
36.22
Suppose you apply the pattern "00.0##%" on a DecimalFormat object f using f.applyPattern("00.0##%"). What is the return value from decimalFormat.format(111.2226)?
A.
11.223%
B.
111.222%
C.
11122.3%
D.
1122.3%
E.
11122.26%
Section 36.5 Resource Bundles
36.23
A resource bundle is ___________.
A.
a Java source code that contains image, audio, and text files
B.
a Java class file or a text file that provides locale-specific information
C.
an image file
D.
an audio file
36.24
Which of the following code is correct to create an instance of ResourceBundle?
A.
ResourceBundle.getBundle();
B.
ResourceBundle.getBundle(locale);
C.
ResourceBundle.getBundle(resourcefilename);
D.
ResourceBundle.getBundle(resourcefilename, locale);


services.py
[MS-SCMR] use to manipulate windows services. It supports start, stop, delete, status, config, list, create and change.
DCE-RPC connection
# [MS-SCMR] services common functions for manipulating services
usage: services.py [-h] [-debug] [-hashes LMHASH:NTHASH] [-no-pass] [-k]
[-aesKey hex key] [-dc-ip ip address]
[-target-ip ip address] [-port [destination port]]
target {start,stop,delete,status,config,list,create,change}
...
Windows Service manipulation script.
positional arguments:
target [[domain/]username[:password]@]<targetName or address>
{start,stop,delete,status,config,list,create,change}
actions
start starts the service
stop stops the service
delete deletes the service
status returns service status
config returns service configuration
list list available services
create create a service
change change a service configuration
optional arguments:
-h, --help show this help message and exit
-debug Turn DEBUG output ON
authentication:
-hashes LMHASH:NTHASH
NTLM hashes, format is LMHASH:NTHASH
-no-pass don't ask for password (useful for -k)
-k Use Kerberos authentication. Grabs credentials from
ccache file (KRB5CCNAME) based on target parameters.
If valid credentials cannot be found, it will use the
ones specified in the command line
-aesKey hex key AES key to use for Kerberos Authentication (128 or 256
bits)
connection:
-dc-ip ip address IP Address of the domain controller. If ommited it use
the domain part (FQDN) specified in the target
parameter
-target-ip ip address
IP Address of the target machine. If ommited it will
use whatever was specified as target. This is useful
when target is the NetBIOS name and you cannot resolve
it
-port [destination port]
Destination port to connect to SMB Server


Description: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Mollitia neque assumenda ipsam nihil, molestias magnam, recusandae quos quis inventore quisquam velit asperiores, vitae? Reprehenderit soluta, eos quod consequuntur itaque. Nam.
Timings: March 22nd, 2018. From 9am to 3pm
Location: Near the basketball courts
Close EventDescription: The Piedmont Park Conservancy presents the 5th Year Anniversary of the Doggie Dash! This year, we are hosting a shorter “Dash” in addition to our 5K! This dog friendly event invites participants with and without dogs to experience the Park alongside four-legged friends to benefit the Piedmont Park Dog Parks. Flapping ears and wagging tails are encouraged. After the dash and 5K, hand out in the sponsor circle for cool swag and information from our dog vendors. All proceeds will be used to maintain and enhance the Piedmont Park Dog Parks.
Timings: March 11 @ 9:00 am - 11:00 am, 8:00 AM – Registration Opens
Location: The walk/run begins at the Promenade at Piedmont Park.
Close EventDescription: Grab your mat and head into Piedmont Park at 7pm for Free Yoga in the Promenade. This outdoor opportunity is presented by Sprouts and hosted by the Piedmont Park Conservancy.
Timings: Every fourth Monday of the month
Location: In the Promenade
Close EventDescription: Lorem ipsum dolor sit amet, consectetur adipisicing elit. Mollitia neque assumenda ipsam nihil, molestias magnam, recusandae quos quis inventore quisquam velit asperiores, vitae? Reprehenderit soluta, eos quod consequuntur itaque. Nam.
Timings: March 22nd, 2018. From 9am to 3pm
Location: Near the basketball courts
Close Event Description: T
HE PROMENADE AT LEGACY FOUNTAIN AT PIEDMONT PARK
11:00 AM – SOCIAL
11:30 AM UNTIL 1:00 PM – LUNCHEON AND PROGRAM
For more than two decades, hundreds of Atlantans have gathered under the tent every spring to support beautiful Piedmont Park. This year we will celebrate The Power of Play and its important role in the vitality of our community. And with the city’s largest off-the-leash Dog Parks, two playgrounds, picturesque sports fields, and 200+ acres to explore, it’s no wonder Piedmont Park is Atlanta’s chosen place to play – hosting more than 4 million park visitors annually!
Close Event
A lot goes into maintaining and enhancing Atlanta’s favorite urban green space! With more than 4 million visitors annually, we need your help to keep Piedmont Park beautiful. Pitch in by picking up litter in the park.  Every stray straw, plastic bottle, bottle cap, and chip bag collected makes a difference!
Tuesdays and Thursdays from 9am – 11am
Project takes place outdoors
This opportunity is self-guided
Age requirement: 5 and up. Volunteers under the age of 18 must have a parent, legal guardian, or adult chaperone volunteer with them
All volunteers must sign a liability waiver
Volunteers under the age of 18 must have this waiver signed in advance by their parent or legal guardian


{% load static %}
The premier source for financial, economic, and alternative datasets, serving investment professionals. Quandl’s platform is used by over 400,000 people, including analysts from the world’s top hedge funds, asset managers and investment banks. More on what we do.
We bring undiscovered data from non-traditional publishers to investors seeking unique, predictive insights. We leverage exclusive relationships to deliver these alpha-generating datasets to our customers.
Quandl delivers market data from hundreds of sources via API, or directly into Python, R, Excel and many other tools. Save time and money by getting the data you need in the format you want.


Captured Mandela without shoes, Fela’s drummer — 7 things to know about Smart-Cole, veteran photographer
by James OjoSunmi Smart-Cole, Nigerian celebrated photographer, is a man whose name rings bell to many. But few people probably did not know that the 78-year-old multi-award winner rose from obscurity to stardom.
Here are five things you should to know about Smart-Cole:
Learnt English through radio
When Sunmi Smart-Cole was born on September 25, 1941, he had no inkling of what fate had in stock for him. With a relatively poor family background, all he could get was a primary school education.
After he completed his primary education, he decided to make the most of his inability to get a secondary school education. With the little money he earned from a working as teacher in a rural school in Port Harcourt, he bought a transistor radio and subsequently started listening to BBC World Service.
With that, he was able to equip himself with sophisticated vocabularies and an English accent that few of his contemporaries who attended higher schools could boast of.
“Every morning, I got up early and tuned the radio, and they read the news every hour on the hour. They had a programme called News of the African World,” he said. “I was in love with the British accent,” he told BBC.
Had a Cambridge University girlfriend
“I had a girlfriend who went to Cambridge. Her father was a professor and her mother a professor. She said she was so surprised about my story and would not have believed it if I did not tell it to her,” he said.
He was sacked for having no school certificate
His grasp of English language would eventually pave way for his rise to fame. Not without a cost though as many firms he attempted to work for rejected him because he had not school certificate.
“He trained as a draughtsman and got a job designing buildings, but was sacked months later when an audit of his personnel file showed that he had no school certificate. Many other organisations refused him employment for the same reason,” BBC wrote.
But that didn’t discourage him.
He once cut hair for a living
During his visit to Lagos, Nigeria’s economic hub, Smart-Cole decided to set up a barber’s shop and met his friend’s dad to help with the initial capital — a development that did not go down well with his friend’s father.
“He said he had always used me as an example to his sons, that I spoke very well. He told them to emulate me and now I wanted to go and do a low-class job,” he said.
He later got £20 with which he was able to set a barbing business which later became a pristine destination for many popular figures in the city.
Captured Nelson Mandela with no shoes on
Shortly after Smart-Cole set-up his barbing business, he began to swim on fortune when he met Jesse Jackson, a US civil rights activist — a meeting which shot him into the international limelight.
Smart-Cole then considered taking a career in photography by enrolling in a community college in 1976 — a career that has brought him immense fame till date.
From a rookie photographer, Smart-Cole subsequently gained global attention especially for street photographs which captures emotions and moments.
One of his stand-out photos was a shot of Nelson Mandela, South Africa’s anti-apartheid hero, tagged: ‘Nelson Mandela at ease’. The picture had shown Mandela in a relatively relaxed state without his shoes on.
Smart-Cole also took other outstanding pictures during his stint at the upper echelons of power — during the Nigeria’s military era. Some of them include a portrait picture of Maryam Babangida, former first lady, with Halima, her daughter, during her one-year-old birthday celebration in 1991.
Fela Kuti’s drummer and musician
Aside his stint in the photography landscape, Smart-Cole was a musician. He was one of the drummers for Fela Kuti, late Nigerian musician and fearless human rights activist, while pushing for a lifeline in Lagos. He was also a member of different jazz and soul bands.
First photographer to circulate Babangida’s coup victory worldwide
Another highlight of his photography journey is his ability to circulate fresh shots across the globe. In 1985, he was the first photographer to circulate a photo of Ibrahim Babangida, former head of state, to the international audience after a military coup victory.
Copyright 2019 TheCable. All rights reserved. This material, and other digital content on this website, may not be reproduced, published, broadcast, rewritten or redistributed in whole or in part without prior express written permission from TheCable.
Follow us on twitter @Thecablestyle


WE ARE EXPERTS IN
LEARN MORE
WE BELIEVE IN TEAMWORK.
TAJ LOODU
MARKETING
SÉBASTIEN GIGARD
SOFTWARE DEVELOPMENT
MUSIC COMPOSER
MOHAMED BACHROUCH
WEB DEVELOPMENT
MUSIC PRODUCER
ANISA AHMED
GRAPHIC DESIGN
GÉRAUD NDAGANG
QUALITY ASSURANCE
CONTACT US


Database
| # | Name of Recipient | Instituition | Department | Interests | Country | City | Delete | |
|---|---|---|---|---|---|---|---|---|
| {{ professor.index }} | {{ professor.name }} | {{ professor.email }} | {{ professor.university }} | {{ professor.department }} | {{ professor.interests }} | {{ professor.country }} | {{ professor.city }} |


It is committed to organize all its operations keeping in mind the ultimate objective of the development and serving the society at large extent .We have excellent manufacturing and machining units. Our Team is experienced in producing components ,sub assemblies ,fabricating equipment for over two decades in various fields.
Continuous process improvement is the main feature of TMPs experience. Constant learning and indepth study of requirements of precise and heavy fabrication and machining jobs have enabled Engineers and techninians at TMP to meet the varying demands of different Clients. The immense knowledge generated over past several years on the Engg Industry, aids the company in educating the new comers and in guiding them to comfortably execute their projects. The reliability and consistent performance of jobs supplied, have assisted "us" in booking successful repeat orders from many of the satisfied customers. With the valuable support of our esteemed clientele, we have been registering a growth rate of 40 -50% every year for the past 4 years. We wish to reach the same this year and we believe that "The Sky Is Our Limit."
The huge achievement of an event that took place the first time ever at TMP.  Our engineers took the challenge of machining the job and successfully completed with close tolerances and limits according to the prescribed time suggested by the customer, on our huge horizontal boring machine.
We achieved this achievement "RIGHT" the first time.
Let us celebrate this success and get ready to take on more challenges now!!
Photo of head stock Hitech Baramati.


Note: User Assignment is one way process. If you want
to
assign user from Other employee to yourself, please contact respective employee to assign
perticular user to your project.
link_off
trending_flat
Note: You can remove assignments between only those employees which belong to any of projects and your Projects


About BioKIDS:
It is increasingly important for all American students to become
sophisticated thinkers of science. The BioKIDS/DeepThink research
group is engaged in educational research to improve science learning
in high-poverty, urban, elementary and middle school classrooms,
with particular focus on the Detroit Public Schools. Our work centers
on the fourth through eighth grades, a period when the performance
of American students in science falls behind that of students in
other countries. We work in two areas:


--- layout: page title: About header-img: "img/about-bg.png" ---
Curious adventure traveler, cultivated hospitality professional and aspiring web developer passionate about building genuine connections.


Triggers and conditions and actions! Oh My!
Automations in Home Assistant can seem a little daunting at first. You look at the documents, and it can seem overwhelming.
Automations in Home Assistant can seem a little daunting at first. You look at the documents, and it can seem overwhelming.
I talked about the people who try (and usually fail) to make things work by banging the rocks together, but there’s another, more common, group. These are th...
A question that comes up regularly with people new to HA seems to be what brand of kit should I buy to use with Home Assistant. That’s the wrong question to ...
NB: Since writing this a lot has changed, I’m leaving this for historical reasons, but the information here is terribly outdated.
So, you’re running Home Assistant, you’ve opened it up to the Internet, and you’re worried about security? You’re not alone, so read on and see what you can...


Generate new "javascript" keys
Encrypt a message from javascript to java
Encrypt a message from java to javascript
Decrypt a message from java (encrypted on server) to javascript


---
layout: default
title: Hack Ideas
permalink: /hack-ideas/
subtitle: "Don't have a project idea? Use these Hack Ideas to help guide you."
image: "/img/placeholder.png"
useContainer: true
description: Hack Ideas to help guide your project at this year's RevolutionUC
---
{% for topic in site.data.hack-ideas %}
{{ idea.idea }}
{% endfor %}


Delete Savefile
Current Force Amount:
0
Upcoming Events
Resources in
Testing Location
Buildings in
Testing Location
Create new Buildings in
Testing Location


The Assert.Throws method is pretty much in a class by itself. Rather than comparing values, it attempts to invoke a code snippet, represented as a delegate, in order to verify that it throws a particular exception.
It's also in a class by itself in that it returns an Exception, rather than void, if the Assert is successful. See the example below for a few ways to use this.
Assert.Throws may be used with a constraint argument, which is applied to the actual exception thrown, or with the Type of exception expected. The Type format is available in both both a non-generic and (in the .NET 2.0 version) generic form.
Assert.DoesNotThrow simply verifies that the delegate does not throw an exception.
Assert.Throws( Type expectedExceptionType, TestDelegate code ); Assert.Throws( Type expectedExceptionType, TestDelegate code, string message ); Assert.Throws( Type expectedExceptionType, TestDelegate code, string message, params object[] parms); Assert.Throws( IResolveConstraint constraint, TestDelegate code ); Assert.Throws( IResolveConstraint constraint, TestDelegate code, string message ); Assert.Throws( IResolveConstraint constraint, TestDelegate code, string message, params object[] parms); Assert.Throws<T>( TestDelegate code ); Assert.Throws<T>( TestDelegate code, string message ); Assert.Throws<T>( TestDelegate code, string message, params object[] parms); Assert.DoesNotThrow( TestDelegate code ); Assert.DoesNotThrow( TestDelegate code, string message ); Assert.DoesNotThrow( TestDelegate code, string message, params object[] parms);
In the above code TestDelegate is a delegate of the form void TestDelegate(), which is used to execute the code in question. Under .NET 2.0, this may be an anonymous delegate.
The following example includes four equivalent ways of writing the same test.
[TestFixture] public class AssertThrowsTests { [Test] public void Tests() { Assert.Throws( typeof(ArgumentException), new TestDelegate(MethodThatThrows) ); Assert.Throws<ArgumentException>( new TestDelegate(MethodThatThrows) ); Assert.Throws( typeof(ArgumentException), delegate { throw new ArgumentException(); } ); Assert.Throws<ArgumentException>( delegate { throw new ArgumentException(); } ); } void MethodThatThrows() { throw new ArgumentException(); }
This example shows use of the return value to perform additional verification of the exception.
[TestFixture] public class UsingReturnValue { [Test] public void TestException() { MyException ex = Assert.Throws<MyException>( delegate { throw new MyException( "message", 42 ); } ); Assert.That( ex.Message, Is.EqualTo( "message" ) ); Assert.That( ex.MyParam, Is.EqualTo( 42 ) ); }
This example does the same thing using the overload that includes a constraint.
[TestFixture] public class UsingConstraint { [Test] public void TestException() { Assert.Throws( Is.Typeof<MyException>() .And.Message.EqualTo( "message" ) .And.Property( "MyParam" ).EqualTo( 42 ), delegate { throw new MyException( "message", 42 ); } ); }
Use the form that matches your style of coding.
When used with a Type argument, Assert.Throws requires that exact type to be thrown. If you want to test for any derived Type, use a constraint. See the following code for examples:
// Require an ApplicationException - derived types fail! Assert.Throws( typeof(ApplicationException), code ); Assert.Throws<ApplicationException>()( code ); // Allow both ApplicationException and any derived type Assert.Throws( Is.InstanceOf( typeof(ApplicationException), code ); Assert.Throws( Is.InstanceOf<ApplicationException>(), code );


Gotibandhu
on 2011-09-23 11:29:57
Hi,
please check out this link.......
http://mindstick.com/Articles/0864994b-563d-4180-87bd-b6e3bea77c26/?Function%20in%20Java%20Script
Thanks !!!
Gotibandhu
on 2011-09-23 11:28:17
Hi,
function start() {
document.write("This is start function which is called when the document is loaded in browser.
");
document.write("This is non parametrize function.
");
document.write("I am going to call a parametrize function which return addition of two number.
");
var num1 = 45, num2 = 66;
var res = getAddition(num1, num2);
document.write("Addition of two number is : " + res + "
");
}
For more details please check out the following link .............
Thanks a lot!!!!!


/*
Copyright 2016 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const gulp = require('gulp');
const eslint = require('gulp-eslint');
gulp.task('lint:repo', () => {
return gulp.src(['{gulp-tasks,lib,templates,test,utils}/**/*.js', '*.js'])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError())
// See https://github.com/adametry/gulp-eslint/issues/36#issuecomment-109595391
.on('data', () => {});
});
gulp.task('lint', ['lint:repo'], () => {
return gulp.src([`packages/${global.projectOrStar}/**/*.js`])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError())
// See https://github.com/adametry/gulp-eslint/issues/36#issuecomment-109595391
.on('data', () => {});
});


---
layout: default
path: home
title: Icons
---
THE FIVE ICONS OF
Discipleship
{% set cmsContent = collections.mainpages | findBySlug('home')%}
{{cmsContent.templateContent | safe}}
{% include "./_includes/partials/content.html" %}
{% markdown cmsContent.data.after %}


DataBuiltin datasets and functions to load data |
|
|---|---|
Load Dataset Provided by This Package |
|
TCGA: Organ Data |
|
Toil Hub: TCGA Clinical Data |
|
Toil Hub: TCGA Survival Data |
|
TCGA: Genome Instability Data |
|
Toil Hub: Merged TCGA GTEx Selected Phenotype |
|
TCGA: Purity Data |
|
TCGA Subtype Data |
|
TCGA: TMB (Tumor Mutation Burden) Data |
|
ABSOLUTE Result of CCLE Database |
|
Phenotype Info of CCLE Database |
|
Toil Hub: TCGA TARGET GTEX Selected Phenotype |
|
Data QueryFunctions to query data from UCSC Xena data hubs in single molecular level. The functionality of functions below may overlap, we rank them by importance. |
|
Get Molecule or Signature Data Values from Dense (Genomic) Matrix Dataset of UCSC Xena Data Hubs |
|
Query Single Identifier or Signature Value from Pan-cancer Database |
|
|
|
Fetch Identifier Value from Pan-cancer Dataset |
Obtain ToilHub Info for Single Molecule |
|
Show Available Hosts |
|
Analysis and Visualiation for Pan-Cancer StudyFunctions to analyze and visualize data mainly from TCGA and CCLE |
|
TCGA Survival Analysis |
|
Analyze Association between Gene (Signature) and Drug Response with CCLE Data |
|
Visualize Gene and Drug-Target Association with CCLE Data |
|
Analyze Difference of Drug Response (IC50 Value (uM)) between Gene (Signature) High and Low Expression with CCLE Data |
|
Visualize Gene and Drug Response Difference with CCLE Data |
|
Visualize CCLE Gene Expression |
|
Visualize CCLE Gene Expression Correlation |
|
Heatmap for Correlation between Gene and Tumor Immune Infiltration (TIL) |
|
Heatmap for Correlation between Gene and Immune Signatures |
|
Visualize Gene-Gene Correlation in TCGA |
|
Visualize Gene-Gene Correlation in a TCGA Cancer Type |
|
Visualize Correlation between Gene and Tumor Stemness |
|
Visualize Correlation between Gene and TMB (Tumor Mutation Burden) |
|
Visualize Correlation between Gene and MSI (Microsatellite instability) |
|
Visualize Single Gene Expression in Anatomy Location |
|
Visualize Pan-cancer TPM (tumor (TCGA) vs Normal (TCGA & GTEx)) |
|
Visualize Gene TPM in Single Cancer Type (Tumor (TCGA) vs Normal (TCGA & GTEx)) |
|
Visualize Single Gene Univariable Cox Result from Toil Data Hub |
|
General Analysis and VisualiationFunctions to analyze and visualize general data, i.e., any valid data from UCSC Xena or users |
|
Visualize Identifier-Identifier Correlation |
|
Visualize Correlation for Multiple Identifiers |
|
Visualize Comparison of an Molecule Identifier between Groups |
|
Visualize Identifier Group Survival Difference |
|
Run Correlation between Two Variables and Support Group by a Variable |
|
Run correlation between two variables in a batch mode and support group by a variable |
|
Run partial correlation |
|
Shiny AppFunctions related to Xena Shiny App |
|
Run UCSC Xena Shiny App |
|
OthersOther docs |
|
Xena Shiny App |
|
Keep Only Columns Used for Sample Selection |


[Game pieces] "Primary egg" indicator (which egg rotates about which egg, puyo uses a blinking white outline)
[Concept art] Work on new character sketches, including Foxy in other outfit.
Week 2 - Sept 4-10, 2000
[Game pieces] Crumbling stone, 3 states plus tweens.
[Game pieces] Match animation. Eggs hatch and little birds (dinosaurs, toys, whatever - may vary for different types/colors of eggs) fly off the screen. Remaining egg shell pieces fade out. Possibly something a bit simpler than that.
[Backdrop] Turkey Lurkey location
Frame overlay graphic, defines playing areas...
[UI] Mouse cursors
[UI] Menu system font (large, textured)
Week 3 - Sept 11-17, 2000
[Characters] Finish in-game character animations for Turkey Lurkey and Chicken Little
Week 4 - Sept 18-24, 2000
Title screen
Week 5 - Sept 25-29, 2000
Post-alpha 1
Character artwork (cartoony, animated).
Concept sketches
Portrait - winning, losing, neutral, tweens
Full body - for cutscene, animated talking and movement
Game pieces (3d rendered, animated).
Textured eggs
Treasure chest closed, opened to reveal each bonus (paint brush, horseshoe, gold), opening frames.
Special events
Fire ball - horizontal from left or right (additive blend)
Ice storm - hail with movement trail (additive blend)
Quake - "eats" up one column of eggs (overlayed animation)
Backdrops. Very colorful, high quality, some animation. Shared between cutscenes and puzzle backdrops.
One for each level of story mode (6).
UI elements
Standard dialogs font ("Connecting to host", etc., re-colorizeable)
Story scenes - use backdrops and characters used in the game.


NSDate(Utils) Category Reference
| Declared in | NSDate+Utils.h |
Overview
Various utilities for NSDate. Some of these are fairly specific to some needs I had. Many could be improved. Your mileage may vary. Offer void where prohibited by law.
Tasks
-
+ todayAtMidnight
Returns a date set to midnight today.
-
+ tomorrowAtMidnight
returns a date set to midnight tomorrow.
-
+ dateWithYYYYMMDD:
Converts a string of the form YYYYMMDD to an NSDate
-
+ dateWithYYYYMMDDhhmmss:
Converts a string of the form YYYYMMDDhhmmss to an NSDate.
-
+ dateWithISO8601Date:
Converts a string formatted using in compliance with ISO8601 to an NSDate
-
– dateAtMidnight
Returns a new NSDate object with the same date as the receiver, but with the time set to midnight.
-
– niceDescription
Returns a string designed to be used for user interaction.
-
– niceDescriptionWithTime
Returns the same thing as niceDescription but includes the time.
-
– toYYYYMMDD
Converts the receiver to a string of the form YYYYMMDD
-
– toYYYYMMDDhhmmss
Converts the receiver to a string of the form YYYYMMDDhhmmss
-
– toISO8601
Converts the receiver to a string in compliance with ISO8601
-
– dateByAddingDays:
Returns an NSDate which is inDays (+/–) days different from sender.
-
– sameDayAsDate:
Returns YES if inDate is the same date as the receiver.
-
– isLaterThanDate:
Returns YES if otherDate is later in time than the receiver.
-
– isEarlierThanDate:
Returns YES if otherDate is earlier in time than the receiver.
Class Methods
dateWithISO8601Date:
Converts a string formatted using in compliance with ISO8601 to an NSDate
+ (id)dateWithISO8601Date:(NSString *)inDateString
Discussion
Converts a string formatted using in compliance with ISO8601 to an NSDate
Declared In
NSDate+Utils.h
dateWithYYYYMMDD:
Converts a string of the form YYYYMMDD to an NSDate
+ (id)dateWithYYYYMMDD:(NSString *)inDateString
Discussion
Converts a string of the form YYYYMMDD to an NSDate
Declared In
NSDate+Utils.h
dateWithYYYYMMDDhhmmss:
Converts a string of the form YYYYMMDDhhmmss to an NSDate.
+ (id)dateWithYYYYMMDDhhmmss:(NSString *)inDateString
Discussion
Converts a string of the form YYYYMMDDhhmmss to an NSDate.
Declared In
NSDate+Utils.h
Instance Methods
dateAtMidnight
Returns a new NSDate object with the same date as the receiver, but with the time set to midnight.
- (NSDate *)dateAtMidnight
Discussion
Returns a new NSDate object with the same date as the receiver, but with the time set to midnight.
Declared In
NSDate+Utils.h
dateByAddingDays:
Returns an NSDate which is inDays (+/–) days different from sender.
- (NSDate *)dateByAddingDays:(NSInteger)inDays
Discussion
Returns an NSDate which is inDays (+/–) days different from sender.
Declared In
NSDate+Utils.h
isEarlierThanDate:
Returns YES if otherDate is earlier in time than the receiver.
- (BOOL)isEarlierThanDate:(NSDate *)otherDate
Discussion
Returns YES if otherDate is earlier in time than the receiver.
Declared In
NSDate+Utils.h
isLaterThanDate:
Returns YES if otherDate is later in time than the receiver.
- (BOOL)isLaterThanDate:(NSDate *)otherDate
Discussion
Returns YES if otherDate is later in time than the receiver.
Declared In
NSDate+Utils.h
niceDescription
Returns a string designed to be used for user interaction.
- (NSString *)niceDescription
Discussion
Returns a string designed to be used for user interaction.
If the receiver is the same date as today, it will return "Today"
If the receiver is yesterday, it'll return "Yesterday"
If the receiver is within 1 week prior to today, it'll return the day of the week (Monday, Tuesday, etc)
Otherwise, it returns the date printed according to the locale settings.
Declared In
NSDate+Utils.h
niceDescriptionWithTime
Returns the same thing as niceDescription but includes the time.
- (NSString *)niceDescriptionWithTime
Discussion
Returns the same thing as niceDescription but includes the time.
Declared In
NSDate+Utils.h
sameDayAsDate:
Returns YES if inDate is the same date as the receiver.
- (BOOL)sameDayAsDate:(NSDate *)inDate
Discussion
Returns YES if inDate is the same date as the receiver.
Declared In
NSDate+Utils.h
toISO8601
Converts the receiver to a string in compliance with ISO8601
- (NSString *)toISO8601
Discussion
Converts the receiver to a string in compliance with ISO8601
Declared In
NSDate+Utils.h


Margins, Borders, and Padding!
Oh my! January 4th, 2015
Margins, Borders, and Padding are essential in formatting your website. Without these three commands all your texts, your boxes, and your links could get jumbled together into a mess of text and colors.  Forever.
Just kidding.
Keep your website clean by separating everything. Let's break each of them down:
- Borders are the defining lines that separate content between one and another. It falls between the margins and padding. This can be changed to anything from a solid line to a dashed line:
- Margins. These guys keep these boxes away from each other. It gives them a break so you can easily tell when one box is separate from another. This will allow you to move elements around and give everything some personal space, like so:
- Padding. This will expand the orange box out a little bit so that the text can look comfortable wherever you place it. Check it out:
There are multiple different borders that can be applied.
See how the boxes are so close together though? Lets separate them using...
Now see how that text is super squished in that orange box? Lets give it some more...
This is the best way for me to simplify the differences of margins, paddings, and borders. Hope this has been helpful!


| | |
- _XMLMapper(__builtin__.object)
-
- AdditionalData
- Address
- Assessment
- EventData
- Flow
- HistoryItem
- IODEF_Document
- Impact
- Incident
- System
class AdditionalData(_XMLMapper) |
| |
class storing additional custom data
attributes:
- data: str
- dtype: enum of str
- ext_dtype: str
- formatid: str
- meaning: str
- restriction: enum of str |
| |
- Method resolution order:
- AdditionalData
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, data=None, dtype=None, ext_dtype=None, formatid=None, meaning=None, restriction=None, from_xml=None)
- __str__(self)
- from_xml(self, xml)
- to_xml(self)
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Address(_XMLMapper) |
| |
The Address class represents a hardware (layer-2), network (layer-3),
or application (layer-7) address.
attributes:
- address: str
- category: enum of str
- ext_category: str
- vlan_name: str
- vlan_num: str (int in RFC 5070) |
| |
- Method resolution order:
- Address
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, address=None, category='ipv4-addr', ext_category=None, vlan_name=None, vlan_num=None, from_xml=None)
- constructor for Address class
- see class attributes
- from_xml: Element object (XML) to be parsed
- __str__(self)
- from_xml(self, xml)
- to_xml(self)
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Assessment(_XMLMapper) |
| |
class storing the assessment of an incident
attributes:
- occurence: enum of str
- restriction: enum of str |
| |
- Method resolution order:
- Assessment
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, occurence=None, restriction=None, impacts=None, from_xml=None)
- __str__(self)
- from_xml(self, xml)
- to_xml(self)
Data and other attributes defined here:
- ImpactClass = <class 'iodeflib.Impact'>
- class storing the impact assessment of an incident
attributes:
- description: str
- lang: enum of str
- severity: enum of str
- completion: enum of str
- type: enum of str
- ext_type: str
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class EventData(_XMLMapper) |
| |
The EventData class describes a particular event of the incident for
a given set of hosts or networks. This description includes the
systems from which the activity originated and those targeted, an
assessment of the techniques used by the intruder, the impact of the
activity on the organization, and any forensic evidence discovered.
attributes:
- description: list of str
- start_time: str
- detect_time: str
- end_time: str
- restriction: enum of str
- additional_data: list of AdditionalData objects
- flows: list of Flow objects |
| |
- Method resolution order:
- EventData
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, descriptions=None, start_time=None, detect_time=None, end_time=None, restriction=None, additional_data=None, flows=None, from_xml=None)
- constructor for EventData class
- __str__(self)
- from_xml(self, xml)
- parse an Element object (XML) to populate this object
- get_sources(self)
- return list of systems with category='source', in all flows
- get_targets(self)
- return list of systems with category='target', in all flows
- to_xml(self)
- convert the object to XML, return an Element object
Data and other attributes defined here:
- AdditionalDataClass = <class 'iodeflib.AdditionalData'>
- class storing additional custom data
attributes:
- data: str
- dtype: enum of str
- ext_dtype: str
- formatid: str
- meaning: str
- restriction: enum of str
- FlowClass = <class 'iodeflib.Flow'>
- The Flow class groups related the source and target hosts.
attributes:
- systems: list of System objects
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Flow(_XMLMapper) |
| |
The Flow class groups related the source and target hosts.
attributes:
- systems: list of System objects |
| |
- Method resolution order:
- Flow
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, systems=None, from_xml=None)
- constructor for Flow class
- systems: list of System objects
- from_xml: Element object (XML) to be parsed
- __str__(self)
- from_xml(self, xml)
- parse an Element object (XML) to populate this object
- get_sources(self)
- return list of systems with category='source'
- get_targets(self)
- return list of systems with category='target'
- to_xml(self)
- convert the object to XML, return an Element object
Data and other attributes defined here:
- SystemClass = <class 'iodeflib.System'>
- The System class describes a system or network involved in an event.
The systems or networks represented by this class are categorized
according to the role they played in the incident through the
category attribute. The value of this category attribute dictates
the semantics of the aggregated classes in the System class. If the
category attribute has a value of "source", then the aggregated
classes denote the machine and service from which the activity is
originating. With a category attribute value of "target" or
"intermediary", then the machine or service is the one targeted in
the activity. A value of "sensor" dictates that this System was part
of an instrumentation to monitor the network.
This iodeflib.System class also contains the IODEF Node class, because there
is a one-to-one mapping:
The Node class names a system (e.g., PC, router) or network.
attributes:
- category: enum of str, source/target/intermediary/sensor
- ext_category: str
- descriptions: list of str
- interface: str
- spoofed: enum of str
- additional_data: AdditionalData
- restriction: enum of str
- node_datetime: str
- node_location: str
- node_names: list of str
- node_addresses: list of Address objects
- node_roles: list of NodeRole objects
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class HistoryItem(_XMLMapper) |
| |
The History class is a log of the significant events or actions
performed by the involved parties during the course of handling the
incident.
The level of detail maintained in this log is left up to the
discretion of those handling the incident.
The HistoryItem class is an entry in the History log
that documents a particular action or event that occurred in the
course of handling the incident. The details of the entry are a
free-form description, but each can be categorized with the type
attribute.
attributes:
- action: enum of str
- additional_data: AdditionalData
- datetime: str
- description: list of str
- ext_action: str
- restriction: enum of str |
| |
- Method resolution order:
- HistoryItem
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, action=None, additional_data=None, datetime=None, descriptions=None, ext_action=None, restriction=None, from_xml=None)
- __str__(self)
- from_xml(self, xml)
- to_xml(self)
Data and other attributes defined here:
- AdditionalDataClass = <class 'iodeflib.AdditionalData'>
- class storing additional custom data
attributes:
- data: str
- dtype: enum of str
- ext_dtype: str
- formatid: str
- meaning: str
- restriction: enum of str
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class IODEF_Document(_XMLMapper) |
| |
IODEF Document class
attributes:
- lang: language, such as 'en'
- version: version, such as '1.00' |
| |
- Method resolution order:
- IODEF_Document
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, lang='en', version='1.00', incidents=None, from_xml=None)
- __str__(self)
- from_xml(self, xml_str)
- to_xml(self)
- to_xml_str(self, pretty_print=False)
Data and other attributes defined here:
- IncidentClass = <class 'iodeflib.Incident'>
- Incident class
attributes:
- lang: language, such as 'en'
- purpose: purpose of report, such as 'reporting'
- id: unique identifier of the report
- id_name: name of originator of the report, or namespace where id is unique
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Impact(_XMLMapper) |
| |
class storing the impact assessment of an incident
attributes:
- description: str
- lang: enum of str
- severity: enum of str
- completion: enum of str
- type: enum of str
- ext_type: str |
| |
- Method resolution order:
- Impact
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, description=None, lang=None, severity=None, completion=None, type=None, ext_type=None, from_xml=None)
- __str__(self)
- from_xml(self, xml)
- to_xml(self)
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Incident(_XMLMapper) |
| |
Incident class
attributes:
- lang: language, such as 'en'
- purpose: purpose of report, such as 'reporting'
- id: unique identifier of the report
- id_name: name of originator of the report, or namespace where id is unique |
| |
- Method resolution order:
- Incident
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, lang='en', purpose='reporting', id=None, id_name=None, report_time=None, detect_time=None, start_time=None, end_time=None, descriptions=None, restriction=None, ext_purpose=None, assessments=None, additional_data=None, history=None, history_restriction=None, event_data=None, from_xml=None)
- __str__(self)
- add_impact(self, description=None, lang=None, severity=None, completion=None, type=None, ext_type=None, occurence=None, restriction=None)
- helper method to add a new Assessment and Impact object
(does not check if existing Assessment/Impact objects are present)
- add_system(self, category='source', name=None, address=None, location=None, description=None, event_data=None, flow=None)
- Add a System object to the incident, such as a source or a target of the
incident.
If event_data or flow is provided, the corresponding object is used as
parent, else the first EventData or Flow object is used, or created if
not present.
- category: str, 'source' or 'target'
- name: str, hostname
- address: str (IP address) or list of str
- location: str
- description: str
- event_data: EventData or None
- flow: Flow or None
- from_xml(self, xml)
- get_first_impact(self)
- helper method to get the first Impact object from the Assessment objects
- get_sources(self)
- return list of systems with category='source', in all event_data/flows
- get_targets(self)
- return list of systems with category='target', in all event_data/flows
- to_xml(self)
Data and other attributes defined here:
- AdditionalDataClass = <class 'iodeflib.AdditionalData'>
- class storing additional custom data
attributes:
- data: str
- dtype: enum of str
- ext_dtype: str
- formatid: str
- meaning: str
- restriction: enum of str
- AssessmentClass = <class 'iodeflib.Assessment'>
- class storing the assessment of an incident
attributes:
- occurence: enum of str
- restriction: enum of str
- EventDataClass = <class 'iodeflib.EventData'>
- The EventData class describes a particular event of the incident for
a given set of hosts or networks. This description includes the
systems from which the activity originated and those targeted, an
assessment of the techniques used by the intruder, the impact of the
activity on the organization, and any forensic evidence discovered.
attributes:
- description: list of str
- start_time: str
- detect_time: str
- end_time: str
- restriction: enum of str
- additional_data: list of AdditionalData objects
- flows: list of Flow objects
- HistoryItemClass = <class 'iodeflib.HistoryItem'>
- The History class is a log of the significant events or actions
performed by the involved parties during the course of handling the
incident.
The level of detail maintained in this log is left up to the
discretion of those handling the incident.
The HistoryItem class is an entry in the History log
that documents a particular action or event that occurred in the
course of handling the incident. The details of the entry are a
free-form description, but each can be categorized with the type
attribute.
attributes:
- action: enum of str
- additional_data: AdditionalData
- datetime: str
- description: list of str
- ext_action: str
- restriction: enum of str
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class System(_XMLMapper) |
| |
The System class describes a system or network involved in an event.
The systems or networks represented by this class are categorized
according to the role they played in the incident through the
category attribute. The value of this category attribute dictates
the semantics of the aggregated classes in the System class. If the
category attribute has a value of "source", then the aggregated
classes denote the machine and service from which the activity is
originating. With a category attribute value of "target" or
"intermediary", then the machine or service is the one targeted in
the activity. A value of "sensor" dictates that this System was part
of an instrumentation to monitor the network.
This iodeflib.System class also contains the IODEF Node class, because there
is a one-to-one mapping:
The Node class names a system (e.g., PC, router) or network.
attributes:
- category: enum of str, source/target/intermediary/sensor
- ext_category: str
- descriptions: list of str
- interface: str
- spoofed: enum of str
- additional_data: AdditionalData
- restriction: enum of str
- node_datetime: str
- node_location: str
- node_names: list of str
- node_addresses: list of Address objects
- node_roles: list of NodeRole objects |
| |
- Method resolution order:
- System
- _XMLMapper
- __builtin__.object
Methods defined here:
- __init__(self, category=None, ext_category=None, descriptions=None, interface=None, spoofed=None, restriction=None, additional_data=None, node_datetime=None, node_location=None, node_names=None, node_addresses=None, from_xml=None)
- constructor for System class
- see class attributes
- from_xml: Element object (XML) to be parsed
- __str__(self)
- from_xml(self, xml)
- get_addresses(self)
- return list of addresses for this system/node (e.g. all IP addresses)
The result is a list of strings containing the address attribute of
all the Address objects for this System/Node.
- to_xml(self)
Data and other attributes defined here:
- AdditionalDataClass = <class 'iodeflib.AdditionalData'>
- class storing additional custom data
attributes:
- data: str
- dtype: enum of str
- ext_dtype: str
- formatid: str
- meaning: str
- restriction: enum of str
- AddressClass = <class 'iodeflib.Address'>
- The Address class represents a hardware (layer-2), network (layer-3),
or application (layer-7) address.
attributes:
- address: str
- category: enum of str
- ext_category: str
- vlan_name: str
- vlan_num: str (int in RFC 5070)
Data descriptors inherited from _XMLMapper:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |


The comparison group data was refreshed on {{ tilesData?.meta.lastUpdated | date: 'd MMMM y' }}.
Your selected comparison group is a maximum {{ tilesData?.meta.staffGoodCqc | number }} staff from {{ tilesData?.meta.workplacesGoodCqc | number }} workplaces using ASC-WDS, rated as good or outstanding CQC providers and providing {{ workplace.mainService.name | serviceName | lowercase }} in {{ tilesData?.meta.localAuthority | formatAmpersand }}.
Your selected comparison group is a maximum {{ tilesData?.meta.staff | number }} staff from {{ tilesData?.meta.workplaces | number }} workplaces using ASC-WDS and providing {{ workplace.mainService.name | serviceName | lowercase }} in {{ tilesData?.meta.localAuthority | formatAmpersand }}.


Methods summary
public
|
|
public
integer
|
|
public
|
#
setSubject( string $subject )
Set the subject of this message.
Set the subject of this message.
Parameters
Implementation of
|
public
string
|
#
getSubject( )
Get the subject of this message.
Get the subject of this message.
Returns
string
Implementation of
|
public
|
#
setDate( integer $date )
Set the date at which this message was created.
Set the date at which this message was created.
Parameters
Implementation of
|
public
integer
|
#
getDate( )
Get the date at which this message was created.
Get the date at which this message was created.
Returns
integer
Implementation of
|
public
|
#
setReturnPath( string $address )
Set the return-path (the bounce address) of this message.
Set the return-path (the bounce address) of this message.
Parameters
Implementation of
|
public
string
|
#
getReturnPath( )
Get the return-path (bounce address) of this message.
Get the return-path (bounce address) of this message.
Returns
string
Implementation of
|
public
|
#
setSender( string $address, string $name = null )
Set the sender of this message. This does not override the From field, but it
has a higher significance.
Set the sender of this message. This does not override the From field, but it
has a higher significance.
Parameters
- $address
string $sender
- $name
string $name optional
Implementation of
|
public
string
|
#
getSender( )
Get the sender of this message.
Get the sender of this message.
Returns
string
Implementation of
|
public
|
#
addFrom( string $address, string $name = null )
Add a From: address to this message.
Add a From: address to this message.
If $name is passed this name will be associated with the address.
Parameters
- $address
string $address
- $name
string $name optional
|
public
|
#
setFrom( string $addresses, string $name = null )
Set the from address of this message.
Set the from address of this message.
You may pass an array of addresses if this message is from multiple
people.
If $name is passed and the first parameter is a string, this name will be
associated with the address.
Parameters
- $addresses
string $addresses
- $name
string $name optional
Implementation of
|
public
string
|
#
getFrom( )
Get the from address of this message.
Get the from address of this message.
Returns
string
Implementation of
|
public
|
#
addReplyTo( string $address, string $name = null )
Add a Reply-To: address to this message.
Add a Reply-To: address to this message.
If $name is passed this name will be associated with the address.
Parameters
- $address
string $address
- $name
string $name optional
|
public
|
#
setReplyTo( string $addresses, string $name = null )
Set the reply-to address of this message.
Set the reply-to address of this message.
You may pass an array of addresses if replies will go to multiple people.
If $name is passed and the first parameter is a string, this name will be
associated with the address.
Parameters
- $addresses
string $addresses
- $name
string $name optional
Implementation of
|
public
string
|
#
getReplyTo( )
Get the reply-to address of this message.
Get the reply-to address of this message.
Returns
string
Implementation of
|
public
|
#
addTo( string $address, string $name = null )
Add a To: address to this message.
Add a To: address to this message.
If $name is passed this name will be associated with the address.
Parameters
- $address
string $address
- $name
string $name optional
|
public
|
#
setTo( array $addresses, string $name = null )
Set the to addresses of this message.
Set the to addresses of this message.
If multiple recipients will receive the message and array should be used.
If $name is passed and the first parameter is a string, this name will be
associated with the address.
Parameters
- $addresses
array $addresses
- $name
string $name optional
Implementation of
|
public
array
|
#
getTo( )
Get the To addresses of this message.
Get the To addresses of this message.
Returns
array
Implementation of
|
public
|
#
addCc( string $address, string $name = null )
Add a Cc: address to this message.
Add a Cc: address to this message.
If $name is passed this name will be associated with the address.
Parameters
- $address
string $address
- $name
string $name optional
|
public
|
#
setCc( array $addresses, string $name = null )
Set the Cc addresses of this message.
Set the Cc addresses of this message.
If $name is passed and the first parameter is a string, this name will be
associated with the address.
Parameters
- $addresses
array $addresses
- $name
string $name optional
Implementation of
|
public
array
|
#
getCc( )
Get the Cc address of this message.
Get the Cc address of this message.
Returns
array
Implementation of
|
public
|
#
addBcc( string $address, string $name = null )
Add a Bcc: address to this message.
Add a Bcc: address to this message.
If $name is passed this name will be associated with the address.
Parameters
- $address
string $address
- $name
string $name optional
|
public
|
#
setBcc( array $addresses, string $name = null )
Set the Bcc addresses of this message.
Set the Bcc addresses of this message.
If $name is passed and the first parameter is a string, this name will be
associated with the address.
Parameters
- $addresses
array $addresses
- $name
string $name optional
Implementation of
|
public
array
|
#
getBcc( )
Get the Bcc addresses of this message.
Get the Bcc addresses of this message.
Returns
array
Implementation of
|
public
|
#
setPriority( integer $priority )
Set the priority of this message. The value is an integer where 1 is the
highest priority and 5 is the lowest.
Set the priority of this message. The value is an integer where 1 is the
highest priority and 5 is the lowest.
Parameters
- $priority
integer $priority
|
public
integer
|
#
getPriority( )
Get the priority of this message. The returned value is an integer where 1 is
the highest priority and 5 is the lowest.
Get the priority of this message. The returned value is an integer where 1 is
the highest priority and 5 is the lowest.
Returns
integer
|
public
|
#
setReadReceiptTo( array $addresses )
Ask for a delivery receipt from the recipient to be sent to $addresses
Ask for a delivery receipt from the recipient to be sent to $addresses
Parameters
- $addresses
array $addresses
|
public
string
|
#
getReadReceiptTo( )
Get the addresses to which a read-receipt will be sent.
Get the addresses to which a read-receipt will be sent.
Returns
string
|
public
|
|
public
|
|
public
string
|
|
public
string
|
#
toString( )
Get this message as a complete string.
Get this message as a complete string.
Returns
string
Overrides
Implementation of
|
public
|
|
protected
|
|


|
YAX.Math
1.0
The standalone version of YAX's (and by extension XNA's) math utility classes.
|
Public Member Functions | |
| Vector2 (float val) | |
| Vector2 (float x, float y) | |
| void | Normalize () |
| Normalizes the vector, maintaining direction but reducing its length to 1. | |
| float | Length () const |
| Gets the length of the vector. | |
| float | LengthSquared () const |
| Gets the squared length of the vector. | |
| Vector2 & | operator+= (const Vector2 &) |
| Vector2 & | operator-= (const Vector2 &) |
| Vector2 & | operator*= (const Vector2 &) |
| Vector2 & | operator*= (float) |
| Vector2 & | operator/= (const Vector2 &) |
| Vector2 & | operator/= (float) |
Static Public Member Functions | |
| static Vector2 | Barycentric (const Vector2 &p1, const Vector2 &p2, const Vector2 &p3, float b2, float b3) |
| Performs a barycentric interpolation over a triangle defined by three Vector2s. More... | |
| static Vector2 | CatmullRom (const Vector2 &p1, const Vector2 &p2, const Vector2 &p3, const Vector2 &p4, float t) |
| Performs a Catmull-Rom interpolation between the second and third points of a spline. More... | |
| static Vector2 | Clamp (const Vector2 &point, const Vector2 &min, const Vector2 &max) |
| Clamps a Vector2's components between a min and max value. More... | |
| static float | Distance (const Vector2 &p1, const Vector2 &p2) |
| Calculates the signed distance between two points represented by Vector2s. | |
| static float | DistanceSquared (const Vector2 &p1, const Vector2 &p2) |
| Calculates the squared distance between two points represented by Vector2s. | |
| static float | Dot (const Vector2 &v1, const Vector2 &v2) |
| Calculates the dot product between two Vector2s. | |
| static Vector2 | Hermite (const Vector2 &p1, const Vector2 &t1, const Vector2 &p2, const Vector2 &t2, float w) |
| Performs a Hermite Spline interpolation between two points. More... | |
| static Vector2 | Lerp (const Vector2 &p1, const Vector2 &p2, float t) |
| Performs a linear interpolation between two points. More... | |
| static Vector2 | Max (const Vector2 &v1, const Vector2 &v2) |
| Finds the maximum of each component between two Vector2s. More... | |
| static Vector2 | Min (const Vector2 &v1, const Vector2 &v2) |
| Finds the minimum of each component between two Vector2s. More... | |
| static Vector2 | Normalize (Vector2 vec) |
| Normalizes a given vector. More... | |
| static Vector2 | Reflect (const Vector2 &vec, const Vector2 &normal) |
| Reflects a Vector2 across a given normal;. More... | |
| static Vector2 | SmoothStep (const Vector2 &v1, const Vector2 &v2, float t) |
| Performs a Cubic Hermite interpolation between two Vector2s. More... | |
| static Vector2 | Transform (const Vector2 &v, const Matrix &m) |
| Transforms a Vector2 by a matrix. More... | |
| static Vector2 | Transform (const Vector2 &v, const Quaternion &q) |
| Rotates a Vector2 by a quaternion. More... | |
| static void | Transform (const std::vector< Vector2 > &source, ui32 sourceIdx, const Matrix &mat, std::vector< Vector2 > &dest, ui32 destIdx, ui32 count) |
| Transforms a list of Vector2s by a matrix and stores them in another list. More... | |
| static void | Transform (const std::vector< Vector2 > &source, ui32 sourceIdx, const Quaternion &q, std::vector< Vector2 > &dest, ui32 destIdx, ui32 count) |
| Rotates a list of Vector2s by a quaternion and stores them in another list. More... | |
| static void | Transform (const std::vector< Vector2 > &source, const Matrix &mat, std::vector< Vector2 > &dest) |
| Transforms all of the Vector2s in a list by a matrix. More... | |
| static void | Transform (const std::vector< Vector2 > &source, const Quaternion &q, std::vector< Vector2 > &dest) |
| Rotates all of the Vector2s in a list by a quaternion and stores them in another list. More... | |
| static Vector2 | TransformNormal (const Vector2 &normal, const Matrix &mat) |
| Transforms a normal vector by a matrix without applying translation. More... | |
| static void | TransformNormal (const std::vector< Vector2 > &source, ui32 sourceIdx, const Matrix &mat, std::vector< Vector2 > &dest, ui32 destIdx, ui32 count) |
| Transforms a list of normals by a matrix without applying translation. More... | |
| static void | TransformNormal (const std::vector< Vector2 > &source, const Matrix &mat, std::vector< Vector2 > &dest) |
| Transforms all of the normals in a list by a matrix. More... | |
Public Attributes | |
| float | X |
| float | Y |
Static Public Attributes | |
| static const Vector2 | One = Vector2(1) |
| static const Vector2 | UnitX = Vector2(1, 0) |
| static const Vector2 | UnitY = Vector2(0, 1) |
| static const Vector2 | Zero = Vector2(0) |
|
static |
Performs a barycentric interpolation over a triangle defined by three Vector2s.
| p1 | The first point of the triangle |
| p2 | The second point of the triangle |
| p3 | The third point of the triangle |
| b2 | The weight factor of the second point |
| b3 | The weight factor of the third point |
Definition at line 38 of file Vector2.cpp.
|
static |
Performs a Catmull-Rom interpolation between the second and third points of a spline.
| p1 | The first point of the spline |
| p2 | The second point of the spline |
| p3 | The third point of the spline |
| p4 | The fourth point of the spline |
| t | The interpolation weight |
Definition at line 43 of file Vector2.cpp.
|
static |
Clamps a Vector2's components between a min and max value.
| point | The Vector2 to clamp |
| min | The minimum values for each coordinate |
| max | The maximum values for each coordinate |
Definition at line 50 of file Vector2.cpp.
|
static |
Performs a Hermite Spline interpolation between two points.
| p1 | The first point of the spline |
| t1 | The slope of the spline at the first point |
| p2 | The second point of the spline |
| t2 | The slope of the spline at the second point |
| w | The interpolation weight |
Definition at line 72 of file Vector2.cpp.
Performs a linear interpolation between two points.
| p1 | The first point |
| p2 | The second point |
| t | The interpolation weight |
Definition at line 79 of file Vector2.cpp.
Finds the maximum of each component between two Vector2s.
Definition at line 84 of file Vector2.cpp.
Finds the minimum of each component between two Vector2s.
Definition at line 92 of file Vector2.cpp.
Reflects a Vector2 across a given normal;.
| vec | The vector to reflect |
| normal | The normal to reflect across |
Definition at line 106 of file Vector2.cpp.
Performs a Cubic Hermite interpolation between two Vector2s.
Definition at line 113 of file Vector2.cpp.
Transforms a Vector2 by a matrix.
| v | The vector to transform |
| m | The transformation matrix |
Definition at line 120 of file Vector2.cpp.
|
static |
Rotates a Vector2 by a quaternion.
| v | The Vector2 to rotate |
| q | The quaternion to apply |
Definition at line 131 of file Vector2.cpp.
|
static |
Transforms a list of Vector2s by a matrix and stores them in another list.
| source | The list of Vector2s to transform |
| sourceIdx | The index of the first Vector2 in source to transform |
| mat | The transformation matrix |
| dest | The list to insert the transformed Vector2s into |
| destIdx | The index of the first Vector2 in dest to replace |
| count | The number of Vector2s to transform |
Definition at line 138 of file Vector2.cpp.
|
static |
Rotates a list of Vector2s by a quaternion and stores them in another list.
| source | The list of Vector2s to rotate |
| sourceIdx | The index of the first Vector2 in source to rotate |
| q | The quaternion to apply |
| dest | The list to insert the rotated Vector2s into |
| destIdx | The index of the first Vector2 in dest to replace |
| count | The number of Vector2s to transform |
Definition at line 146 of file Vector2.cpp.
|
static |
Transforms all of the Vector2s in a list by a matrix.
| source | The list of Vector2s to transform |
| mat | The transformation matrix |
| dest | The list to insert the transformed Vector2s into |
Definition at line 154 of file Vector2.cpp.
|
static |
Rotates all of the Vector2s in a list by a quaternion and stores them in another list.
| source | The list of Vector2s to rotate |
| q | The quaternion to apply |
| dest | The list to insert the rotated Vector2s into |
Definition at line 159 of file Vector2.cpp.
Transforms a normal vector by a matrix without applying translation.
| normal | The Vector2 to transform |
| mat | The transformation matrix |
Definition at line 164 of file Vector2.cpp.
|
static |
Transforms a list of normals by a matrix without applying translation.
| source | The list of Vector2s to transform |
| sourceIdx | The index of the first Vector2 to transform |
| mat | The transformation matrix |
| dest | The list to insert the transformed Vector2s into |
| destIdx | The index of the first Vector2 in dest to replace |
| count | The number of Vector2s to transform |
Definition at line 173 of file Vector2.cpp.
|
static |
Transforms all of the normals in a list by a matrix.
| source | The list of Vector2s to transform |
| mat | The transformation matrix |
| dest | The list to insert the transformed Vector2s into |
Definition at line 181 of file Vector2.cpp.


{% extends 'base.html' %} {% block contents %}
You are already registered. Are you sure you wish to register again?
There was a problem registering. Review the errors below and try again.


1 : /*
2 : * rdswitch.c
3 : *
4 : * Copyright (C) 1991-1996, Thomas G. Lane.
5 : * This file is part of the Independent JPEG Group's software.
6 : * For conditions of distribution and use, see the accompanying README file.
7 : *
8 : * This file contains routines to process some of cjpeg's more complicated
9 : * command-line switches. Switches processed here are:
10 : * -qtables file Read quantization tables from text file
11 : * -scans file Read scan script from text file
12 : * -qslots N[,N,...] Set component quantization table selectors
13 : * -sample HxV[,HxV,...] Set component sampling factors
14 : */
15 :
16 : #include "cdjpeg.h" /* Common decls for cjpeg/djpeg applications */
17 : #include <ctype.h> /* to declare isdigit(), isspace() */
18 :
19 :
20 : LOCAL(int)
21 0: text_getc (FILE * file)
22 : /* Read next char, skipping over any comments (# to end of line) */
23 : /* A comment/newline sequence is returned as a newline */
24 : {
25 : register int ch;
26 :
27 0: ch = getc(file);
0: branch 0 not taken
0: branch 1 not taken
28 0: if (ch == '#') {
29 : do {
30 0: ch = getc(file);
0: branch 0 not taken
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
31 0: } while (ch != '\n' && ch != EOF);
32 : }
33 0: return ch;
34 : }
35 :
36 :
37 : LOCAL(boolean)
38 0: read_text_integer (FILE * file, long * result, int * termchar)
39 : /* Read an unsigned decimal integer from a file, store it in result */
40 : /* Reads one trailing character after the integer; returns it in termchar */
41 : {
42 : register int ch;
43 : register long val;
44 :
45 : /* Skip any leading whitespace, detect EOF */
46 : do {
47 0: ch = text_getc(file);
0: branch 0 not taken
0: branch 1 not taken
48 0: if (ch == EOF) {
49 0: *termchar = ch;
50 0: return FALSE;
51 : }
0: branch 1 not taken
0: branch 2 not taken
52 0: } while (isspace(ch));
53 :
0: branch 1 not taken
0: branch 2 not taken
54 0: if (! isdigit(ch)) {
55 0: *termchar = ch;
56 0: return FALSE;
57 : }
58 :
59 0: val = ch - '0';
0: branch 1 not taken
0: branch 2 not taken
60 0: while ((ch = text_getc(file)) != EOF) {
0: branch 1 not taken
0: branch 2 not taken
61 0: if (! isdigit(ch))
62 0: break;
63 0: val *= 10;
64 0: val += ch - '0';
65 : }
66 0: *result = val;
67 0: *termchar = ch;
68 0: return TRUE;
69 : }
70 :
71 :
72 : GLOBAL(boolean)
73 0: read_quant_tables (j_compress_ptr cinfo, char * filename,
74 : int scale_factor, boolean force_baseline)
75 : /* Read a set of quantization tables from the specified file.
76 : * The file is plain ASCII text: decimal numbers with whitespace between.
77 : * Comments preceded by '#' may be included in the file.
78 : * There may be one to NUM_QUANT_TBLS tables in the file, each of 64 values.
79 : * The tables are implicitly numbered 0,1,etc.
80 : * NOTE: does not affect the qslots mapping, which will default to selecting
81 : * table 0 for luminance (or primary) components, 1 for chrominance components.
82 : * You must use -qslots if you want a different component->table mapping.
83 : */
84 : {
85 : FILE * fp;
86 : int tblno, i, termchar;
87 : long val;
88 : unsigned int table[DCTSIZE2];
89 :
0: branch 1 not taken
0: branch 2 not taken
90 0: if ((fp = fopen(filename, "r")) == NULL) {
91 0: fprintf(stderr, "Can't open table file %s\n", filename);
92 0: return FALSE;
93 : }
94 0: tblno = 0;
95 :
0: branch 1 not taken
0: branch 2 not taken
96 0: while (read_text_integer(fp, &val, &termchar)) { /* read 1st element of table */
0: branch 0 not taken
0: branch 1 not taken
97 0: if (tblno >= NUM_QUANT_TBLS) {
98 0: fprintf(stderr, "Too many tables in file %s\n", filename);
99 0: fclose(fp);
100 0: return FALSE;
101 : }
102 0: table[0] = (unsigned int) val;
0: branch 0 not taken
0: branch 1 not taken
103 0: for (i = 1; i < DCTSIZE2; i++) {
0: branch 1 not taken
0: branch 2 not taken
104 0: if (! read_text_integer(fp, &val, &termchar)) {
105 0: fprintf(stderr, "Invalid table data in file %s\n", filename);
106 0: fclose(fp);
107 0: return FALSE;
108 : }
109 0: table[i] = (unsigned int) val;
110 : }
111 0: jpeg_add_quant_table(cinfo, tblno, table, scale_factor, force_baseline);
112 0: tblno++;
113 : }
114 :
0: branch 0 not taken
0: branch 1 not taken
115 0: if (termchar != EOF) {
116 0: fprintf(stderr, "Non-numeric data in file %s\n", filename);
117 0: fclose(fp);
118 0: return FALSE;
119 : }
120 :
121 0: fclose(fp);
122 0: return TRUE;
123 : }
124 :
125 :
126 : #ifdef C_MULTISCAN_FILES_SUPPORTED
127 :
128 : LOCAL(boolean)
129 0: read_scan_integer (FILE * file, long * result, int * termchar)
130 : /* Variant of read_text_integer that always looks for a non-space termchar;
131 : * this simplifies parsing of punctuation in scan scripts.
132 : */
133 : {
134 : register int ch;
135 :
0: branch 1 not taken
0: branch 2 not taken
136 0: if (! read_text_integer(file, result, termchar))
137 0: return FALSE;
138 0: ch = *termchar;
0: branch 0 not taken
0: branch 1 not taken
0: branch 3 not taken
0: branch 4 not taken
139 0: while (ch != EOF && isspace(ch))
140 0: ch = text_getc(file);
0: branch 1 not taken
0: branch 2 not taken
141 0: if (isdigit(ch)) { /* oops, put it back */
0: branch 1 not taken
0: branch 2 not taken
142 0: if (ungetc(ch, file) == EOF)
143 0: return FALSE;
144 0: ch = ' ';
145 : } else {
146 : /* Any separators other than ';' and ':' are ignored;
147 : * this allows user to insert commas, etc, if desired.
148 : */
0: branch 0 not taken
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
0: branch 4 not taken
0: branch 5 not taken
149 0: if (ch != EOF && ch != ';' && ch != ':')
150 0: ch = ' ';
151 : }
152 0: *termchar = ch;
153 0: return TRUE;
154 : }
155 :
156 :
157 : GLOBAL(boolean)
158 0: read_scan_script (j_compress_ptr cinfo, char * filename)
159 : /* Read a scan script from the specified text file.
160 : * Each entry in the file defines one scan to be emitted.
161 : * Entries are separated by semicolons ';'.
162 : * An entry contains one to four component indexes,
163 : * optionally followed by a colon ':' and four progressive-JPEG parameters.
164 : * The component indexes denote which component(s) are to be transmitted
165 : * in the current scan. The first component has index 0.
166 : * Sequential JPEG is used if the progressive-JPEG parameters are omitted.
167 : * The file is free format text: any whitespace may appear between numbers
168 : * and the ':' and ';' punctuation marks. Also, other punctuation (such
169 : * as commas or dashes) can be placed between numbers if desired.
170 : * Comments preceded by '#' may be included in the file.
171 : * Note: we do very little validity checking here;
172 : * jcmaster.c will validate the script parameters.
173 : */
174 : {
175 : FILE * fp;
176 : int scanno, ncomps, termchar;
177 : long val;
178 : jpeg_scan_info * scanptr;
179 : #define MAX_SCANS 100 /* quite arbitrary limit */
180 : jpeg_scan_info scans[MAX_SCANS];
181 :
0: branch 1 not taken
0: branch 2 not taken
182 0: if ((fp = fopen(filename, "r")) == NULL) {
183 0: fprintf(stderr, "Can't open scan definition file %s\n", filename);
184 0: return FALSE;
185 : }
186 0: scanptr = scans;
187 0: scanno = 0;
188 :
0: branch 1 not taken
0: branch 2 not taken
189 0: while (read_scan_integer(fp, &val, &termchar)) {
0: branch 0 not taken
0: branch 1 not taken
190 0: if (scanno >= MAX_SCANS) {
191 0: fprintf(stderr, "Too many scans defined in file %s\n", filename);
192 0: fclose(fp);
193 0: return FALSE;
194 : }
195 0: scanptr->component_index[0] = (int) val;
196 0: ncomps = 1;
0: branch 0 not taken
0: branch 1 not taken
197 0: while (termchar == ' ') {
0: branch 0 not taken
0: branch 1 not taken
198 0: if (ncomps >= MAX_COMPS_IN_SCAN) {
199 0: fprintf(stderr, "Too many components in one scan in file %s\n",
200 : filename);
201 0: fclose(fp);
202 0: return FALSE;
203 : }
0: branch 1 not taken
0: branch 2 not taken
204 0: if (! read_scan_integer(fp, &val, &termchar))
205 0: goto bogus;
206 0: scanptr->component_index[ncomps] = (int) val;
207 0: ncomps++;
208 : }
209 0: scanptr->comps_in_scan = ncomps;
0: branch 0 not taken
0: branch 1 not taken
210 0: if (termchar == ':') {
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
0: branch 4 not taken
211 0: if (! read_scan_integer(fp, &val, &termchar) || termchar != ' ')
212 : goto bogus;
213 0: scanptr->Ss = (int) val;
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
0: branch 4 not taken
214 0: if (! read_scan_integer(fp, &val, &termchar) || termchar != ' ')
215 : goto bogus;
216 0: scanptr->Se = (int) val;
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
0: branch 4 not taken
217 0: if (! read_scan_integer(fp, &val, &termchar) || termchar != ' ')
218 : goto bogus;
219 0: scanptr->Ah = (int) val;
0: branch 1 not taken
0: branch 2 not taken
220 0: if (! read_scan_integer(fp, &val, &termchar))
221 0: goto bogus;
222 0: scanptr->Al = (int) val;
223 : } else {
224 : /* set non-progressive parameters */
225 0: scanptr->Ss = 0;
226 0: scanptr->Se = DCTSIZE2-1;
227 0: scanptr->Ah = 0;
228 0: scanptr->Al = 0;
229 : }
0: branch 0 not taken
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
230 0: if (termchar != ';' && termchar != EOF) {
231 : bogus:
232 0: fprintf(stderr, "Invalid scan entry format in file %s\n", filename);
233 0: fclose(fp);
234 0: return FALSE;
235 : }
236 0: scanptr++, scanno++;
237 : }
238 :
0: branch 0 not taken
0: branch 1 not taken
239 0: if (termchar != EOF) {
240 0: fprintf(stderr, "Non-numeric data in file %s\n", filename);
241 0: fclose(fp);
242 0: return FALSE;
243 : }
244 :
0: branch 0 not taken
0: branch 1 not taken
245 0: if (scanno > 0) {
246 : /* Stash completed scan list in cinfo structure.
247 : * NOTE: for cjpeg's use, JPOOL_IMAGE is the right lifetime for this data,
248 : * but if you want to compress multiple images you'd want JPOOL_PERMANENT.
249 : */
250 0: scanptr = (jpeg_scan_info *)
251 0: (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
252 : scanno * SIZEOF(jpeg_scan_info));
253 0: MEMCOPY(scanptr, scans, scanno * SIZEOF(jpeg_scan_info));
254 0: cinfo->scan_info = scanptr;
255 0: cinfo->num_scans = scanno;
256 : }
257 :
258 0: fclose(fp);
259 0: return TRUE;
260 : }
261 :
262 : #endif /* C_MULTISCAN_FILES_SUPPORTED */
263 :
264 :
265 : GLOBAL(boolean)
266 0: set_quant_slots (j_compress_ptr cinfo, char *arg)
267 : /* Process a quantization-table-selectors parameter string, of the form
268 : * N[,N,...]
269 : * If there are more components than parameters, the last value is replicated.
270 : */
271 : {
272 0: int val = 0; /* default table # */
273 : int ci;
274 : char ch;
275 :
0: branch 0 not taken
0: branch 1 not taken
276 0: for (ci = 0; ci < MAX_COMPONENTS; ci++) {
0: branch 0 not taken
0: branch 1 not taken
277 0: if (*arg) {
278 0: ch = ','; /* if not set by sscanf, will be ',' */
0: branch 0 not taken
0: branch 1 not taken
279 0: if (sscanf(arg, "%d%c", &val, &ch) < 1)
280 0: return FALSE;
0: branch 0 not taken
0: branch 1 not taken
281 0: if (ch != ',') /* syntax check */
282 0: return FALSE;
0: branch 0 not taken
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
283 0: if (val < 0 || val >= NUM_QUANT_TBLS) {
284 0: fprintf(stderr, "JPEG quantization tables are numbered 0..%d\n",
285 : NUM_QUANT_TBLS-1);
286 0: return FALSE;
287 : }
288 0: cinfo->comp_info[ci].quant_tbl_no = val;
0: branch 0 not taken
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
289 0: while (*arg && *arg++ != ',') /* advance to next segment of arg string */
290 : ;
291 : } else {
292 : /* reached end of parameter, set remaining components to last table */
293 0: cinfo->comp_info[ci].quant_tbl_no = val;
294 : }
295 : }
296 0: return TRUE;
297 : }
298 :
299 :
300 : GLOBAL(boolean)
301 0: set_sample_factors (j_compress_ptr cinfo, char *arg)
302 : /* Process a sample-factors parameter string, of the form
303 : * HxV[,HxV,...]
304 : * If there are more components than parameters, "1x1" is assumed for the rest.
305 : */
306 : {
307 : int ci, val1, val2;
308 : char ch1, ch2;
309 :
0: branch 0 not taken
0: branch 1 not taken
310 0: for (ci = 0; ci < MAX_COMPONENTS; ci++) {
0: branch 0 not taken
0: branch 1 not taken
311 0: if (*arg) {
312 0: ch2 = ','; /* if not set by sscanf, will be ',' */
0: branch 0 not taken
0: branch 1 not taken
313 0: if (sscanf(arg, "%d%c%d%c", &val1, &ch1, &val2, &ch2) < 3)
314 0: return FALSE;
0: branch 0 not taken
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
0: branch 4 not taken
0: branch 5 not taken
315 0: if ((ch1 != 'x' && ch1 != 'X') || ch2 != ',') /* syntax check */
316 0: return FALSE;
0: branch 0 not taken
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
0: branch 4 not taken
0: branch 5 not taken
0: branch 6 not taken
0: branch 7 not taken
317 0: if (val1 <= 0 || val1 > 4 || val2 <= 0 || val2 > 4) {
318 0: fprintf(stderr, "JPEG sampling factors must be 1..4\n");
319 0: return FALSE;
320 : }
321 0: cinfo->comp_info[ci].h_samp_factor = val1;
322 0: cinfo->comp_info[ci].v_samp_factor = val2;
0: branch 0 not taken
0: branch 1 not taken
0: branch 2 not taken
0: branch 3 not taken
323 0: while (*arg && *arg++ != ',') /* advance to next segment of arg string */
324 : ;
325 : } else {
326 : /* reached end of parameter, set remaining components to 1x1 sampling */
327 0: cinfo->comp_info[ci].h_samp_factor = 1;
328 0: cinfo->comp_info[ci].v_samp_factor = 1;
329 : }
330 : }
331 0: return TRUE;
332 : }
Generated: 2016-04-07 18:20 by zcov


Preparation time
1-2 hours
Cooking time
1 to 2 hours
Serves
Serves 4
James Martin’s version of traditional roast dinner, with best beef, rich red wine gravy and his special Yorkshire puddings.
Equipment and preparation: for this recipe you will need a 3cm/1¼in diameter pastry cutter.
First make the batter for the Yorkshire puddings. Put the flour in a bowl and season with salt and freshly ground black pepper. Add the eggs and milk and whisk to make a smooth batter. Cover and place in the fridge to chill for at least one hour, but preferably overnight.
For the red cabbage, heat a large saucepan until hot, add the butter and red cabbage and fry for 1-2 minutes, or until just softened. Add the red wine and bring to the boil. Reduce the heat to a simmer and cook until the volume of liquid has reduced by half. Add the remaining ingredients and bring to a simmer, then cover with a lid and continue to cook for 40-45 minutes, stirring occasionally, until the cabbage is tender.
To cook the beef, preheat the oven to 60C/140F/Gas ¼. Heat half the vegetable oil in a frying pan over a medium-high heat. Add the beef fillet and fry until browned on all sides - this should take no more than two minutes in total. Remove the beef from the pan and set aside to cool.
Wrap the cooled beef fillet in cling film and place onto a roasting tray. Roast in the oven for 30 minutes. Set aside and keep warm. Warm through before serving if necessary, but remove the cling film if using a higher heat.
For the fondant potatoes, preheat the oven to 200C/400F/Gas 6.
Cut the large potatoes in half widthways. Using a 3cm/1¼in diameter pastry cutter, cut two cylinders out of each potato.
Heat a deep, ovenproof saucepan and add a little vegetable oil. Place the potatoes in the pan standing on end and fry gently until golden-brown at the base. Add the chicken stock and bring it up to the boil. Add the garlic, thyme and butter. Place in the oven for 20-30 minutes, or until the potatoes are tender. Set aside and keep warm.
To cook the Yorkshire puddings, preheat the oven to 220C/450F/Gas 7.
Divide the dripping or lard between the holes of a 12-hole muffin tin or Yorkshire tin. Place the tin in the oven for ten minutes, or until smoking hot.
Carefully pour the batter into the tin, filling the holes two-thirds full. Cook for 20 minutes. Do not open the door during this time.
After 20 minutes, open the door to allow any steam to escape and turn the temperature down to 190C/375F/Gas 5. Continue to cook until the Yorkshire puddings are golden-brown and crisp.
To make the red wine gravy, heat the red wine in a small pan. Bring to the boil, then reduce the heat and simmer until the volume of liquid has reduced by half.
Add the beef stock and simmer until the volume of liquid has reduced by two-thirds. Season, to taste, with salt and freshly ground black pepper and whisk in the butter.
To serve, slice the beef and place on serving plates alongside the Yorkshire pudding, cabbage, fondant potatoes and gravy.