DIG
Section: BIND9 (1)Updated: Jun 30, 2000
Index Return to Main Contents
NAME
dig - DNS lookup utilitySYNOPSIS
-
dig [@server] [-b address] [-c class] [-f filename] [-k filename] [-m] [-p port#] [-q name] [-t type] [-x addr] [-y [hmac:]name:key] [-4] [-6] [name] [type] [class] [queryopt...]
- dig [-h]
- dig [global-queryopt...] [query...]
- dig [-h]
DESCRIPTION
dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried. Most DNS administrators use dig
Although dig is normally used with command-line arguments, it also has a batch mode of operation for reading lookup requests from a file. A brief summary of its command-line arguments and options is printed when the -h option is given. Unlike earlier versions, the BIND 9 implementation of dig allows multiple lookups to be issued from the command line.
Unless it is told to query a specific name server, dig will try each of the servers listed in /etc/resolv.conf.
When no command line arguments or options are given, dig will perform an NS query for "." (the root).
It is possible to set per-user defaults for dig via ${HOME}/.digrc. This file is read and any options in it are applied before the command line arguments.
The IN and CH class names overlap with the IN and CH top level domains names. Either use the -t and -c options to specify the type and class, use the -q the specify the domain name, or use "IN." and "CH." when looking up these top level domains.
SIMPLE USAGE
A typical invocation of dig looks like:
-
dig @server name type
where:
server
- is the name or IP address of the name server to query. This can be an IPv4 address in dotted-decimal notation or an IPv6 address in colon-delimited notation. When the supplied server argument is a hostname, dig resolves that name before querying that name server. If no server argument is provided, dig consults /etc/resolv.conf and queries the name servers listed there. The reply from the name server that responds is displayed.
name
- is the name of the resource record that is to be looked up.
type
- indicates what type of query is required --- ANY, A, MX, SIG, etc. type can be any valid query type. If no type argument is supplied, dig will perform a lookup for an A record.
OPTIONS
The -b option sets the source IP address of the query to address. This must be a valid address on one of the host's network interfaces or "<IP_ADDRESS>" or "::". An optional port may be specified by appending "#<port>"
The default query class (IN for internet) is overridden by the -c option. class is any valid class, such as HS for Hesiod records or CH for Chaosnet records.
The -f option makes dig operate in batch mode by reading a list of lookup requests to process from the file filename. The file contains a number of queries, one per line. Each entry in the file should be organized in the same way they would be presented as queries to dig using the command-line interface.
The -m option enables memory usage debugging.
If a non-standard port number is to be queried, the -p option is used. port# is the port number that dig will send its queries instead of the standard DNS port number 53. This option would be used to test a name server that has been configured to listen for queries on a non-standard port number.
The -4 option forces dig to only use IPv4 query transport. The -6 option forces dig to only use IPv6 query transport.
The -t option sets the query type to type. It can be any valid query type which is supported in BIND 9. The default query type is "A", unless the -x option is supplied to indicate a reverse lookup. A zone transfer can be requested by specifying a type of AXFR. When an incremental zone transfer (IXFR) is required, type is set to ixfr=N. The incremental zone transfer will contain the changes made to the zone since the serial number in the zone's SOA record was N.
The -q option sets the query name to name. This useful do distinguish the name from other arguments.
Reverse lookups --- mapping addresses to names --- are simplified by the -x option. addr is an IPv4 address in dotted-decimal notation, or a colon-delimited IPv6 address. When this option is used, there is no need to provide the name, class and type arguments. dig automatically performs a lookup for a name like <IP_ADDRESS>.in-addr.arpa and sets the query type and class to PTR and IN respectively. By default, IPv6 addresses are looked up using nibble format under the IP6.ARPA domain. To use the older RFC1886 method using the IP6.INT domain specify the -i option. Bit string labels (RFC2874) are now experimental and are not attempted.
To sign the DNS queries sent by dig and their responses using transaction signatures (TSIG), specify a TSIG key file using the -k option. You can also specify the TSIG key itself on the command line using the -y option; hmac is the type of the TSIG, default HMAC-MD5, name is the name of the TSIG key and key is the actual key. The key is a base-64 encoded string, typically generated by dnssec-keygen(8). Caution should be taken when using the -y option on multi-user systems as the key can be visible in the output from ps(1) or in the shell's history file. When using TSIG authentication with dig, the name server that is queried needs to know the key and algorithm that is being used. In BIND, this is done by providing appropriate key and server statements in named.conf.
QUERY OPTIONS
dig provides a number of query options which affect the way in which lookups are made and the results displayed. Some of these set or reset flag bits in the query header, some determine which sections of the answer get printed, and others determine the timeout and retry strategies.
Each query option is identified by a keyword preceded by a plus sign (+). Some keywords set or reset an option. These may be preceded by the string no to negate the meaning of that keyword. Other keywords assign values to options like the timeout interval. They have the form +keyword=value. The query options are:
+[no]tcp
- Use [do not use] TCP when querying name servers. The default behavior is to use UDP unless an AXFR or IXFR query is requested, in which case a TCP connection is used.
+[no]vc
- Use [do not use] TCP when querying name servers. This alternate syntax to +[no]tcp is provided for backwards compatibility. The "vc" stands for "virtual circuit".
+[no]ignore
- Ignore truncation in UDP responses instead of retrying with TCP. By default, TCP retries are performed.
+domain=somename
- Set the search list to contain the single domain somename, as if specified in a domain directive in /etc/resolv.conf, and enable search list processing as if the +search option were given.
+[no]search
- Use [do not use] the search list defined by the searchlist or domain directive in resolv.conf (if any). The search list is not used by default.
+[no]showsearch
- Perform [do not perform] a search showing intermediate results.
+[no]defname
- Deprecated, treated as a synonym for +[no]search
+[no]aaonly
- Sets the "aa" flag in the query.
+[no]aaflag
- A synonym for +[no]aaonly.
+[no]adflag
- Set [do not set] the AD (authentic data) bit in the query. This requests the server to return whether all of the answer and authority sections have all been validated as secure according to the security policy of the server. AD=1 indicates that all records have been validated as secure and the answer is not from a OPT-OUT range. AD=0 indicate that some part of the answer was insecure or not validated.
+[no]cdflag
- Set [do not set] the CD (checking disabled) bit in the query. This requests the server to not perform DNSSEC validation of responses.
+[no]cl
- Display [do not display] the CLASS when printing the record.
+[no]ttlid
- Display [do not display] the TTL when printing the record.
+[no]recurse
- Toggle the setting of the RD (recursion desired) bit in the query. This bit is set by default, which means dig normally sends recursive queries. Recursion is automatically disabled when the +nssearch or +trace query options are used.
+[no]nssearch
- When this option is set, dig attempts to find the authoritative name servers for the zone containing the name being looked up and display the SOA record that each name server has for the zone.
+[no]trace
- Toggle tracing of the delegation path from the root name servers for the name being looked up. Tracing is disabled by default. When tracing is enabled, dig makes iterative queries to resolve the name being looked up. It will follow referrals from the root servers, showing the answer from each server that was used to resolve the lookup.
+[no]cmd
- Toggles the printing of the initial comment in the output identifying the version of dig and the query options that have been applied. This comment is printed by default.
+[no]short
- Provide a terse answer. The default is to print the answer in a verbose form.
+[no]identify
- Show [or do not show] the IP address and port number that supplied the answer when the +short option is enabled. If short form answers are requested, the default is not to show the source address and port number of the server that provided the answer.
+[no]comments
- Toggle the display of comment lines in the output. The default is to print comments.
+[no]stats
- This query option toggles the printing of statistics: when the query was made, the size of the reply and so on. The default behavior is to print the query statistics.
+[no]qr
- Print [do not print] the query as it is sent. By default, the query is not printed.
+[no]question
- Print [do not print] the question section of a query when an answer is returned. The default is to print the question section as a comment.
+[no]answer
- Display [do not display] the answer section of a reply. The default is to display it.
+[no]authority
- Display [do not display] the authority section of a reply. The default is to display it.
+[no]additional
- Display [do not display] the additional section of a reply. The default is to display it.
+[no]all
- Set or clear all display flags.
+time=T
- Sets the timeout for a query to T seconds. The default timeout is 5 seconds. An attempt to set T to less than 1 will result in a query timeout of 1 second being applied.
+tries=T
- Sets the number of times to try UDP queries to server to T instead of the default, 3. If T is less than or equal to zero, the number of tries is silently rounded up to 1.
+retry=T
- Sets the number of times to retry UDP queries to server to T instead of the default, 2. Unlike +tries, this does not include the initial query.
+ndots=D
- Set the number of dots that have to appear in name to D for it to be considered absolute. The default value is that defined using the ndots statement in /etc/resolv.conf, or 1 if no ndots statement is present. Names with fewer dots are interpreted as relative names and will be searched for in the domains listed in the search or domain directive in /etc/resolv.conf.
+bufsize=B
- Set the UDP message buffer size advertised using EDNS0 to B bytes. The maximum and minimum sizes of this buffer are 65535 and 0 respectively. Values outside this range are rounded up or down appropriately. Values other than zero will cause a EDNS query to be sent.
+edns=#
- Specify the EDNS version to query with. Valid values are 0 to 255. Setting the EDNS version will cause a EDNS query to be sent. +noedns clears the remembered EDNS version.
+[no]multiline
- Print records like the SOA records in a verbose multi-line format with human-readable comments. The default is to print each record on a single line, to facilitate machine parsing of the dig output.
+[no]onesoa
- Print only one (starting) SOA record when performing an AXFR. The default is to print both the starting and ending SOA records.
+[no]fail
- Do not try the next server if you receive a SERVFAIL. The default is to not try the next server which is the reverse of normal stub resolver behavior.
+[no]besteffort
- Attempt to display the contents of messages which are malformed. The default is to not display malformed answers.
+[no]dnssec
- Requests DNSSEC records be sent by setting the DNSSEC OK bit (DO) in the OPT record in the additional section of the query.
+[no]sigchase
- Chase DNSSEC signature chains. Requires dig be compiled with -DDIG_SIGCHASE.
+trusted-key=####
-
Specifies a file containing trusted keys to be used with
+sigchase. Each DNSKEY record must be on its own line.
If not specified, dig will look for /etc/trusted-key.key then trusted-key.key in the current directory.
Requires dig be compiled with -DDIG_SIGCHASE.
+[no]topdown
- When chasing DNSSEC signature chains perform a top-down validation. Requires dig be compiled with -DDIG_SIGCHASE.
+[no]nsid
- Include an EDNS name server ID request when sending a query.
MULTIPLE QUERIES
The BIND 9 implementation of dig supports specifying multiple queries on the command line (in addition to supporting the -f batch file option). Each of those queries can be supplied with its own set of flags, options and query options.
In this case, each query argument represent an individual query in the command-line syntax described above. Each consists of any of the standard options and flags, the name to be looked up, an optional query type and class and any query options that should be applied to that query.
A global set of query options, which should be applied to all queries, can also be supplied. These global query options must precede the first tuple of name, class, type, options, flags, and query options supplied on the command line. Any global query options (except the +[no]cmd option) can be overridden by a query-specific set of query options. For example:
-
dig +qr www.isc.org any -x <IP_ADDRESS> isc.org ns +noqr
shows how dig could be used from the command line to make three lookups: an ANY query for www.isc.org, a reverse lookup of <IP_ADDRESS> and a query for the NS records of isc.org. A global query option of +qr is applied, so that dig shows the initial query it made for each lookup. The final query has a local query option of +noqr which means that dig will not print the initial query when it looks up the NS records for isc.org.
IDN SUPPORT
If dig has been built with IDN (internationalized domain name) support, it can accept and display non-ASCII domain names. dig appropriately converts character encoding of domain name before sending a request to DNS server or displaying a reply from the server. If you'd like to turn off the IDN support for some reason, defines the IDN_DISABLE environment variable. The IDN support is disabled if the variable is set when dig runs.
RETURN CODES
Dig return codes are:
- 0: Everything went well, including things like NXDOMAIN
- 1: Usage error
- 8: Couldn't open batch file
- 9: No reply from server
- 10: Internal error
FILES
/etc/resolv.conf
SEE ALSO
host(1), named(8), dnssec-keygen(8), RFC1035.
BUGS
There are probably too many query options.
COPYRIGHT
Copyright © 2004-2010 Internet Systems Consortium, Inc. ("ISC")
Copyright © 2000-2003 Internet Software Consortium.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- SIMPLE USAGE
- OPTIONS
- QUERY OPTIONS
- MULTIPLE QUERIES
- IDN SUPPORT
- RETURN CODES
- FILES
- SEE ALSO
- BUGS
- COPYRIGHT
This document was created by man2html, using the manual pages.
Time: 05:29:03 GMT, December 24, 2015


Post edited 1 x times, last by
BrainFooLong
Administrator
Topicstarter
What about a new filter named "Locked" that includes untaken dogtags and taken but not unlocked dogtags?
Hi
Already requested
http://getbblog.com/en/board/topic/52316/1/Extra-filters-for-dogtags
Topicstarter
Ah, ok. Sorry. Didn't see that!


--- permalink: /partnerships --- {% include head.html %} {% include navbar.html %}
The Electronic Access Foundation and Laptop Upcycle are both charity organizations that donate refurbished laptops
for charitable projects. Ben was fortunate to get their support for running his Python coding class for middle
school students in July 2018. They provided 6 refurbished MacBook Pros for the students who graduated from that
class. Many of the students did not have their own devices at home for school work or programming, so they were all
very excited to receive laptops that they could keep at the end of the class. The NJCSSA is grateful to have these
organizations as partners.
The Electronic Access Foundation website: e-access.org
Laptop Upcycle website: laptopupcycle.org
Link Community Charter School is a charter school in Newark, NJ serving grades 5-8. They focus on providing a quality
education to students in Newark, Irvington, East Orange, and other surrounding towns. They have a proven track record
of sending students with economic hardships to prestigious boarding schools, private schools, and public magnet schools.
The NJCSSA has been fortunate to work with Link for the past two years. They have been extremely generous to the NJCSSA.
This year they provided free breakfast and lunch to all students in the program. Both years, they allowed us to use their
computer lab for the month-long course. The NJCSSA hopes to keep working with Link Charter School in the future.
Link's Website: linkschool.org


{{question.title}}
{{user.first_name}} has sent you recommendations.
place{{question.places[0].name}}
scheduleTiming: 7:00am to 9:00 pm
call"Telephone not available"


Sections of the StatPages.net web site
|
{{ x.Name }}
|
About this Web Site
The Interactive Statistical Pages project represents an ongoing
effort to develop and disseminate statistical analysis software in the form
of web pages. Utilizing HTML forms, CGI and Perl scripts,
Java, JavaScript and other browser-based technologies, each
web page contains within it (or invokes) all the programming needed to perform
a particular computation or analysis.
These pages use various techniques to accomplish their magic:
-
Some use HTML forms to send your data back to the web server, which
runs CGI scripts to perform the computations and sends the results back to
you as a new page. They should work on any browser that supports HTML forms.
-
Others, including all of my own JavaStats pages, use
JavaScript. Each page contains within it all the programming
needed to do the computations. These are flagged as
(JavaScript), and should run on any
JavaScript-capable browser, such as Netscape v2 and above, or MS Internet
Explorer v3 and above.
-
Still others invoke Java applets to carry out the computations.
They are flagged as (Java), and require a Java-capable
browser, such as Netscape v3 and above, or MS Internet Explorer v4 and above.
These pages have been created by volunteers contributing their expertise
and efforts. They reside on computers all over the world, interlinked into
a comprehensive statistical analysis package that's freely accessible over
the Internet. It is a practical embodiment of the concept of distributed
software, and exemplifies the finest tradition and spirit of the Internet
-- people making their knowledge freely available worldwide.
Your contributions to this collection are most welcome. Please let me know
of any interactive statistical calculating pages you have created (or have
encountered on the Web) that aren't on this site, and I'll add links to them.
Or just send me your comments and suggestions for making this web site more
useful.
E-mail to statpages.org@gmail.com


public class Matrix
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFERZONE
The height of the buffer zone.
|
static int |
MATRIX_WIDTH
Playfield matrix width
|
static int |
PLAYFIELD_HEIGHT |
static int |
SKYLINE
The line which separates he visible area from the hidden buffer zone
|
| Constructor and Description |
|---|
Matrix()
Generates a new Playfield with default width and height
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMoveDown()
Check if the current Tetrimino can move down
|
boolean |
canMoveDown(Tetrimino tetrimino)
Check if a Tetrimino can move down one cell
|
boolean |
canMoveSideways(int direction,
Tetrimino tetrimino)
Check of the Tetrimino can move left or right one cell
|
int |
clearMarkedLines()
This actually deletes all lines which are marked to be cleared.
|
Matrix |
clone()
Deep copy of the Matrix.
|
void |
debugPrintMatrix()
Prints the Matrix to System.out for debugging
|
int |
drop()
Drops the Tetrimino and returns the lines dropped.
|
TetrisColor |
getBackgroundColor(int xi,
int yi) |
TetrisColor |
getCell(int x,
int y)
Returns the TetrisColor of a specified cell.
|
int |
getColumns() |
Tetrimino |
getCurrentTetrimino() |
Tetrimino |
getLastTetrimino() |
int |
getVisibleRows() |
int |
markLinesToBeCleared()
This marks all lines which are full to be cleared later
|
void |
merge()
Merges the current Tetrimino in play into the background
|
void |
merge(Tetrimino tetrimino)
Merges a Tetrimino in play into the background
|
boolean |
moveDown()
Move the current Tetrimino down one cell and checks if it has landed on a surface.
|
boolean |
moveDown(Tetrimino tetrimino)
Move a Tetrimino down one cell and checks if it has landed on a surface.
|
boolean |
moveSideway(int direction)
Move the current Tetrimino left (-1) or right (1) one cell, If blocked does not move and returns true
|
boolean |
moveSideway(int direction,
Tetrimino tetrimino)
Move a Tetrimino left (-1) or right (1) one cell, If blocked does not move and returns true
|
boolean |
spawn(Tetrimino next)
Spawns a new Tetrimino.
|
java.lang.String |
toString()
Returns the matrix a string representation
|
boolean |
turnMove(int direction)
Turns a Tetrimino after collision checks.
|
boolean |
turnMove(int direction,
Tetrimino tetrimino)
Turns a Tetrimino after collision checks.
|
public static final int SKYLINE
public static final int BUFFERZONE
public static final int MATRIX_WIDTH
public static final int PLAYFIELD_HEIGHT
public Matrix()
_backgroundMatrix
- public boolean spawn(Tetrimino next)
next
- public boolean moveDown()
public boolean moveDown(Tetrimino tetrimino)
public boolean canMoveDown()
public boolean canMoveDown(Tetrimino tetrimino)
_currentTetrimino2
- public int drop()
public boolean moveSideway(int direction)
direction
- public boolean moveSideway(int direction, Tetrimino tetrimino)
direction
- tetrimino
- public boolean canMoveSideways(int direction, Tetrimino tetrimino)
direction
- public boolean turnMove(int direction)
direction
- public boolean turnMove(int direction, Tetrimino tetrimino)
direction
- tetrimino
- public void merge()
public void merge(Tetrimino tetrimino)
public int markLinesToBeCleared()
public int clearMarkedLines()
public TetrisColor getCell(int x, int y)
x
- - starts at 0 to width-1y
- - starts at 0 to height-1public int getColumns()
public int getVisibleRows()
public TetrisColor getBackgroundColor(int xi, int yi)
xi
- yi
- TetrisColor
of the given cellpublic Tetrimino getCurrentTetrimino()
public Tetrimino getLastTetrimino()
public java.lang.String toString()
toString
in class java.lang.Object
public void debugPrintMatrix()
public Matrix clone()
clone
in class java.lang.Object


--- layout: default title: Overview ---
Housing data has its origin in real-world needs – the needs of the community, of developers, of the environment – all of which legislation and regulation tries to balance.
Legislation gives rise to what we term land and housing ‘concerns’, of which there are more than 300.
These comprise:
These concerns are legislation’s attempts to address real world needs. People involved with land and housing must submit data to comply with these concerns.
Legislation lays out some requirements for each concern. It doesn’t dictate specifics on how and what is submitted: exact fields and labelling, order, format, licence etc. Many different organisations submit data, so there’s very little consistency. How often data is updated is also inconsistent and often unclear. These points of friction make data difficult to find, use and trust.
One solution to overcoming data inconsistency is to map the useful data from individual publications into datasets that are consistent. Doing this work after the fact is inefficient and time consuming. We’re developing guides and tools to make it less so. The Digital Land Explorer demonstrates how data that’s been mapped can be used.
A better solution is to fix data at the source. Policymakers working with legislation can work with data modellers to set standards, but to be fit-for-purpose standards must meet validated needs of users.


The Chaser is now Weekend Prompts—questions to unpack the weekend and start conversations. Questions for this week’s service are below.
Get these questions and challenges sent right to your group.
{% if site.chaser_message %}
Step 1: Download the Crossroads App
Step 2: Create a group chat with your group
Step 3: Turn on Weekend Prompts
Still not sure? Check out this video tutorial


This problem was proposed to us during cliw lab, you can find more about it here.
Create a MV * mini-framework for the development of vector-driven vector-based web applications at the client level. As an actual case study, it will be used to implement a Tamagotchi game simulator. At the very least, each authenticated user will manage one or more characters he will take care of (nourish, educate, amuse). The Web application will provide an interactive way to create and configure these characters, plus sharing them to users. Bonus: Implementing a level message routing system client to build SPA-Single Page Applications.
As it is written here, the project evaluation has three parts:
For the first part, we developed the prototype of the Web interface according to the requirements. It can be found on our repository, together with the corresponding html scholarly report.
For second part of the evaluation, we established the architecture of our application and made some diagrams for a better understanding of it, by taking into account the ideas we had when we worked for the first part of the evaluation.
For this part of the evaluation we had to deliver the functional solution, based on what we already established in the previous stages:the user interface and the architecture. Excepting some insignificant changes, the application follows the ideas we established during the semester.
Our high-level goals were to:
Here is a reminder of our sketches which helped us make the application.
In order to understand the structure of our application, we present the main concepts regarding the architecture.
We created an js engine for working with svg that is able to run animations on color, transform, size or text type animations. The framework is created respecting the svg structure and each node is called nodeSVG into it. The framework allows to draw any type of form by circle/elipse/rect/path. The framework also treats the events like hover and onclick. We used this framework to create/edit the tamagotchis and to interact with them.
A single page application interacts with the user by dynamically rewriting the current page rather than loading new pages. This type of application is popular among the developers because of several advantages, such as avoiding interruption of user experience, although it might be more difficult to create. There are various techniques which can be used when creating such applications: use of some JavaScript frameworks, AJAX, Websockets, Browser plugins.
In our application, we use JS in order to dinamically modify what the user can see in the page, in order to simulate the routing experience. Each "page" is managed as a div and its presence and content are dinamically modified based on how the user is using the app. We also check whether the user is authentified.
The modules are built according to the functionalities offered by our application. The following list contains the main modules, together with the corresponding submodules.
Login submodule has the role of authenticating the existing users, in order to give them access to all the facilities offered by our application. It has to be provided the user credentials.
Register submodule has the role of creating new accounts, based on the forms submitted by the persons who wish to sign up.
Create tamagotchi submodule has the role of inserting new tamagotchies into the database, by using the data provided by the authenticated users. The data consists of features selected by the users for the new tamagotchies, such as color or body shape.
Edit tamagotchi submodule is similar to the previous one, but the users need to select an existing tamagotchi and modify some of its features. The characteristics of the tamagotchi will be updated in the database.
View tamagotchi submodule lets the users visualise a selected tamagotchi and perform several actions such as feeding or entertaining.
Remove tamagotchi submodule lets the users delete a tamagotchi from their account in the database.
Share tamagotchi submodule makes possible the sharing among users of their tamagotchies, by entering the user who the current user would like to give a tamagotchi.
The modules/submodules interact with each other in different ways, depending on the use-cases. However, there is a permanent dependence between the two main modules - the users management module decides, by whether authenticating a user or not, which actions can be performed by the tamagotchi management module for a certain user.
The functions of each module, the way they interact with each other/the user and the way the user can access each function in the interface are detailed in the following sections, using diagrams and written explanations when necessary.
The following diagrams display how the user can access the facilities of our application in the Web interface and the relations between different actions. Based on them, we created our application, with some minor changes.
The following diagrams present the use-cases in our application. Essentially, the actions performed by some users depend on either they are authenticated or not.
Regarding the data exchange in our application, the submodules that are in charge of the users management interact mainly with the database because it keeps track of the existing users and their accounts, but also with mail servers, due to the fact that every account requires an email address at creation time.
Who wishes to register first needs to complete a form with some personal information, including an email address. The data is verified (especially the validity of the email address). If something is wrong the user is notified, otherwise he/she gets a confirmation email. After the user confirms, an account is created and inserted into the database, and now the user can enjoy the facilities of our application.
An existing user may login into our application by entering his/her credentials. The login process queries the database and if the requested account is found and the password is correct, the user is granted access into the application, otherwise an error is returned.
All the data flows described in the above paragraphs can be visualised in the Authentication diagram.
An authenticated user can enjoy the facilities of our application. The tamagotchi management modules intermediate the transfer of data between the user and the database, considering that the database is storing the properties of the tamagotchies created by the users and also some animations which make the tamagotchi more fun.
When a user wants to create a new tamagotchi, he/she needs to set its properties. Some of them are mentioned below:
When the user presses the save button, the data is collected in order to be used at tamagotchi creation. After the new tamagotchi is created and inserted into the database it becomes available to the user.
Editing is similar, except the user modifies an existing tamagotchi. Therefore, the corresponding tamagotchi in the database will be updated with the new data collected from the user.
When a user needs to view a tamagotchi, the application queries the database and after the tamagotchi is found, it will be loaded in the view page.
Tamagotchies can also be removed from the database, at the user's request.
Another facility is the sharing of tamagotchies among users via user IDs.
The data flow described in the above paragraphs can be seen in the Tama Management diagram.
Firebase Realtime Database is a NoSql cloud database developed by Google. It has several features, like data syncronization in realtime, the ability to work even offline (when the connection is reestablished the client gets the changes from the server) or scaling. More details can be found here.
We will use the database to keep the track of the existing users, their tamagotchies, and also some animations associated with the tamagotchies.
For the validation part we used w3c validators online for css and html. For internal purposes we are going to use selenium or any other frontend testing tool available for the next phases.
At this moment statistics are:
Our team would like to thank to this list of great people or companies that provided free open source software for us to be used, but also to our teacher for letting us use only the software that is marked as plain css html EcmaScript:


Kogi/Bayelsa Decides 2019: Live Updates - The Nation Newspaper
by https://www.facebook.com/CheerfulpraisePhotos: Jonathan, wife celebrate Lyon’s victory with APC leaders
Former President Goodluck Jonathan, wife, pictured celebrating with Jigawa Governor Badaru, Chairman APC Campaign Organisation with Senator Ita Enang during a visit to their residence on Saturday evening.
INEC declares Kogi West Senatorial rerun inconclusive
The Independent National Electoral Commission (INEC) is to announce the date for the supplementary in Saturday’s Kogi West Senatorial District rerun.
While Senator Smart Adeyemi of the All Progressives Congress (APC) has 80,118, Senator Dino Melaye of the Peoples Democratic Party (PDP) polled 59,548, a winner has yet to be declared.
The Returning Officer (RO), Prof. Olayide Lawal declared the Kogi West Senatorial election as inconclusive and that supplementary election will be conducted.
Affected are 53 polling units and 46,127 registered voters, as INEC decide on the new date for the supplementary poll.
BREAKING: INEC declares Lyon winner in Bayelsa
The Independent National Electoral Commission (INEC) has declared the All Progressive Congress APC gubernatorial candidate Chief David Lyon, winner of the Bayelsa 2019 Governorship election.
Jubilation rocks the state, as the All Progressive Party (APC) ends the Peoples Democracy Party (PDP)’s twenty years reign.
Total Number of votes: (Bayelsa)
APC – 124,803
APC: 352557
PDP: 143172
APC wins Ekeremor with 21,489 votes
The All Progressives Congress (APC) has won the Nembe Local Government Area, Bayelsa State with its candidate, Chief David Lyon, scoring 21,489 to trounce his PDP’s counterpart, Senator Douye Diri, who polled 18,344.
EKEREMOR LGA (Bayelsa)
APC– 21489
PDP – 18344
Southern Ijaw LGA (Bayelsa)
APC – 124,803
PDP – 4,898
BREAKING: INEC adjourns final collation of Kogi results to Monday
The Independent National Electoral Commission(INEC) has announced the adjournment of collation of Kogi results to 9am on Monday.
The results of only Ibaji and Lokoja local government areas are outstanding with Governor Yahaya Bello in clear lead in 11 local governments.
His closest opponent Engr Musa Wada of the People Democratic Party(PDP), who has rejected the outcome of the exercise, is leading in eight local governments.
Remaining two LGAs in Bayelsa
Dekina LGA (Kogi)
APC – 8, 948 PDP – 16, 575
Nembe LGA (Bayelsa)
APC 83,041 PDP 874
Yenagoa (Bayelsa)
APC 24,607 PDP 19,184
Kolokuma LGA (Bayelsa)
APC 8,934 PDP 15,360
Brass LGA (Bayelsa)
APC 23,831 PDP 10,410
Ogbia LGA (Bayelsa)
APC 68,016 PDP 13,763
Sagbama LGA (Bayelsa)
The local government has 109,460 registered voters while accredited voters were 70,111. Votes scored by parties are; APC: 7,831 PDP: 60,339
Three LGAs in Kogi left to be collated. Collation is to resume by 6:30pm
Bassa LG (Kogi) APC – 8386 PDP – 9724
Ofu LGA (Kogi)
APC– 11, 006 PDP – 12,264 Ankpa LGA (Kogi) APC – 11, 268 PDP – 28,108
Yagba West
APC – 7, 868
PDP – 8, 860
Okehi LGA
APC – 36,954
PDP – 478
Olamaboro LGA APC – 16,876 PDP – 8,155 Rejected – 819 Dr Ibrahim Dauda Mohammed, the Returning Officer in the area said this was due to issues of over voting and card readers problems. In Ichala ward, polling unit 002 had 356 votes cancelled while another polling unit 05 had 301 votes cancelled. In Ogbegene ward, another polling unit had 356 votes cancelled.
Idah LGA APC – 4,602 PDP 13,962 1013 votes were cancelled in three polling units in two wards in Idah local government area.
Ajaokuta LGA APC 17,952 PDP 5,565
Mopamoro LGA
APC – 4,953 PDP – 3,581 914 votes cancelled in Mopamuro LGA due to ballot box snatching Returning Officer for Mopamuro local government area in the Kogi governorship elections, Dr Isa Mohammed Nurudeen, says 915 votes were cancelled in two wards due to ballot box snatching and vandalization. In the election in the LGA which has 9, 093 accredited voters out of 23, 030 registered voters, the APC got 4, 953 while the PDP got 3, 581
Okehi LGA
APC – 36, 954
PDP – 478
Yagba East
APC – 6,735
PDP – 7546
Kogi/Koton-Karfe LGA
APC – 14,097
PDP – 9,404
Minister of State for FCT, Hajia Ramatu Ali arrived the state collation centre at the INEC headquarters in Lokoja at about 11.56am to witness the collation of results.
She was immediately ushered into the venue even though majority of accredited journalists were denied access.
Kabba-Bunu LGA
APC – 15,364
PDP – 8,084
Returning Officer asked to go and reconcile his summary…
Okene LGA
APC -112,764
PDP – 139
No cancelled votes.
Igalamela/Odolu
APC – 8,075
PDP – 11,195
Results from 5 PUs were cancelled over alleged vote-buying, over voting and disruption of exercise.
Adavi LGA
APC – 64,657
PDP – 366
Ogori Magongo (Kogi Governorship Poll)
APC – 3679
PDP – 2145
Lyon leads in Bayelsa
The governorship Candidate of the All Progressives Congress (APC) in Bayelsa State, Chief David Lyon is ahead of his counterpart in the Peoples Democratic Party (PDP), Senator Douye Diri as unit results trickled in after Saturday’s governorship election.
Generally, unit results showed that Lyon was leading the PDP Candidate, Douye Diri, in Southern Ijaw, Nembe, Brass, Ogbia, Ekeremor, and most areas in Yenagoa, local government areas.
The results further showed that Diri was not doing well at his Kolokuma-Opokuma Local Government Area as most units especially in Odi and Kaiama voted for Lyon. Read More: Lyon leads in Bayelsa
Jonathan’s kinsmen celebrate PDP’s defeat
Photos: Diri, wife cast votes
2: 30pm
BREAKING: Two shot in Kogi
Two persons have been shot at Egume Police Station Polling Unit, Dekina LGA.
It was also gathered that violence has broken out in at least four polling centres in Lokoja, the state capital.
1: 30pm
Lyon hails INEC, says process peaceful
The Bayelsa State Governorship Candidate of the All Progressives Congress (APC), Chief David Lyon, has described the ongoing election in the state as peaceful.
Lyon, who hailed the Independent National Electoral Commission (INEC) for the conduct so far, advised the people to remain peaceful throughout the exercise.
Casting his vote at Olugbobiri Ward 4, Unit 1, in Southern Ijaw Local Government Area, Lyon said nobody should create problems to disrupt the poll.
1:10 pm
INEC official abducted in Lokoja
An unidentified official of the Independent National Electoral Commission (INEC) has been abducted in SUBEB polling unit in Lokoja.
The abduction occured after gunmen shot sporadically into the air while voting was going on.
It was gathered voters scampered for safety before the gunmen went away with the official.
Meanwhile, voting has ended at Bishop Crowther LGEA Primary School Lokoja.
Sorting of votes and counting of ballots will commence by 2pm.
1:00 pm
Hoodlums shoot, snatch ballot box in Anyigba
Some political thugs have stormed some polling units and snatched away ballot boxes in Anyigba in Dekina local government area of Kogi State
Anyingba, believed to be a volatile area, it was observed has the highest level of security presence in the entire local government.
According to a source in the area thugs arrived the polling units in cars shooting sporadically, scaring voters and making away with the ballot boxes.
12: 53 pm
Burn fire made by youths at Dino Melaye’s ward 4 unit 1 polling unit in Ayetoro Gbede, Ijumu LGA on Saturday
12:20 pm
Bayelsa: children conveying people to Diri’s polling unit in Sampou
12:12 pm
Voting ends in Kogi LG
Some of the polling units in Kabba Bunu have concluded voting and awaiting the official closing time of 2.00 pm before the commencement of vote counting.
Aside from the incident in Ayetoro Gbede, The Nation can report that the election has been generally peaceful in most areas of Kogi West, especially in Kabba Bunu and Ijumu local government areas
11:59am
Ballot paper with a 2015 date at Odu Market Square polling unit in Dekina LGA Kogi state
11: 40am
Jonathan, wife vote
Former president, Goodluck Jonathan and wife has voted at their Polling Unit 39, Ward 13, in Otuoke, Ogbia Local Government Area (LGA) of Bayelsa.
He had earlier decried the late arrival of election materials in his unit.
11:32 am
Kogi youths attack Journalists
Youths of Ayetoro Gbede in Ijumu attacked a group of Journalists at Dino’s polling unit and broke the windscreen of the Sienna space bus they were travelling with.
The youths also made burn fire and blocked the roads with heavy stones and sticks.
At the time of this report, many of the youths were seen gathered in clusters discussing the development, while a team of policemen were seen heading to the town.
The Nation noticed that the box containing votes cast for the Senatorial election was broken and left behind while that of the governorship was taken away.
Senator Melaye could not be reached for his comment even though he was within the town.
11:28 am
SDP candidate, Natasha Akpoti votes at her Ihima, Okehi LG polling unit.
10: 50am
Smart Adeyemi prepares to vote
Smart Adeyemi, the APC Kogi west senatorial candidate, waiting in line to cast his vote at PU 002, Iyara ward, Ijumu LGA.
10: 40 am
Accreditation and voting going on smoothly at Gbeleko Unit 005, Egbeda Ward, Kabba/Bunu, Kogi West.
10: 30 am
Hoodlums attack Dino Melaye’s polling unit
Thugs have just attacked the polling unit where Dino Melaye voted.
The hoodlums broke one of the ballot boxes and carted away the other, shooting into the air.
10: 20 am
Fake policeman arrested in Kogi
A fake police officer has been arrested by men of the Nigeria Police Force at the Igala Unity Square area in Anyigba, Dekina local government area of Kogi State.The fake policemen, dressed in black T-shirt and black trousers with a black jacket with SARS inscribed on it was accosted by a team of actual Special Anti Robbery Squad officers who were on patrol in the area.
When accosted and upon inquiry, it was realised he was not a policeman as he claimed to be and was immediately arrested and taken away in the bus.
10:10 am
Kogi: Dino Melaye prepares to vote
Dino Melaye being accredited to cast his vote at The Apostolic Church polling unit, at Ayetoro Gbede, Ijumu LGA
10:00 am
Kogi polls: Large turnout of voters witnessed at Ward 01, Yagba West
A large turnout of voters is being witnessed at Ward 01, Polling Unit 003, Rest House One, Agbada, Yagba West, as the citizens trooped out to exercise their franchise in the governorship election in Kogi.
Accreditation of the voters has already begun at the ward and other polling centres in the township, and the process is going on smoothly.
A voter, Bayo Ajayi, described the exercise as “very peaceful at the moment, as there is no distraction from any where”.
9:45 am
Diri prepares to come out, vote
The governorship candidate of Peoples Democratic Party (PDP) in Bayelsa State Sen. Douye Diri said he is waiting for signal that everything is ready before he makes a move.
9:36 am
Accreditation ongoing at Abujabare unit, Anyigba, Kogi state
9:30am
Kogi poll: Accreditation commences at Ward A Lokoja peacefully
Accreditation at Ward A Polling Station, Growther/ Sabongari, Lokoja, was on at 8.35 a.m. when a correspondent of the News Agency of Nigeria (NAN) visited the polling station.
Voters were seen checking their names on the register pasted on the walls of Growther Memorial College, Lokoja, while others lined up, orderly, to be accredited.
The exercise was peaceful and orderly.
Men and officers of the Nigeria Police, Federal Road Safety Commission(FRSC), Nigeria Security and Civil Defence Corps, the Customs Service, among other security outfits kept vigil to ensure maintenance of law and order.
09:20am
Musa Wada votes
Governorship candidate of the Peoples Democratic Party (PDP) in Kogi has just voted.
According to him, the election has been peaceful so far.
09: 10 am
Voting yet to commence at Diri’s LGA
Raymond Mordi
Bayelsa: Voting is yet to commence at Sampou, Kolokuma LG the village of the People’s Democratic Party (PDP) Douye Diri.
The community is flooded and the electoral officials have been displaced.
They are still trying to set up.
09:01am
Bello casts his vote
Governorship candidate of the All Progressives Party (APC) and incumbent governor of Kogi State Yahaya Bello has voted.
He voted at his Agasa, Okene LG polling unit, along side his wife at exactly 8.50am.
08:57am
Kogi: At Okoro Gbede Primary school, voting started at about 8.00am with the elderly taking the lead, while others line up patiently waiting for their turn.
Security at the unit was relaxed as the voters conducted themselves in a peaceful manner.
However, some of the agents who were not comfortable with the polling officers folding the ballot papers before handing it over to the people, complained about it
08:49 am
Kogi: Early accreditation/voting in Okene, as voters were seen in orderly queue in areas of Kuroko in Okehi LGA of Kogi Central.
08: 39 am
Voting begins in Kogi
Voting has commenced in Kogi state.
There are more women present at the Okebukun central market polling units
Voters turned out in large number at the Okebukun central market and the two polling units in the primary school in the town.
When The Nation got to the polling unit at about 8.02am, the polling agents and security men were already on ground.
The people were busy trying to identify their names on the list of registered voters pasted at the gate.


Maker.js, a
Microsoft Garage
project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.
View project on
GitHub
Features
Demos
Documentation
Source Code
Star
{{ content }}


blowout.Blowout¶
-
class
blowout.
Blowout
(z0=100, d0=0.1, substance={'composition': ['methane', 'ethane', 'propane', 'toluene', 'benzene'], 'masses': array([0.2 , 0.03, 0.02, 0.25, 0.5 ])}, q_oil=20000.0, gor=0.0, x0=0.0, y0=0.0, u0=None, phi_0=-1.5707963267948966, theta_0=0.0, num_gas_elements=10, num_oil_elements=25, water=None, current=array([0.1, 0. , 0. ]))[source]¶ Class to facilitiate creating simulations using the bent_plume_model
Class to help set up all of the elements necessary to run a blowout simulation using the
TAMOC
bent_plume_model. This includes creating the ambient.Profile object, defining an oil and gas composition using the dbm.FluidMixture and dbm.FluidParticle objects, and generating particle lists with initial conditions for the gas bubble and oil droplet size distributions at the orifice.This class is designed for use in subsea oil well blowouts, hence, flow rates of oil and gas can be specified using dead oil rates in bbl/d and gas-to-oil ratio (GOR) in ft^3/bbl.
- Parameters
- z0float, default=100
Depth of the release point (m)
- d0float, default=0.1
Equivalent circular diameter of the release (m)
- substancestr or list of str, default=[‘methane’]
The chemical composition of the released petroleum fluid. If using the chemical property data distributed with TAMOC, this should be a list of TAMOC chemical property names. If using an oil from the NOAA OilLibrary, this should be a string containing the Adios oil ID number (e.g., ‘AD01554’ for Louisiana Light Sweet).
- q_oilfloat, default=20000.
Release rate of the dead oil composition at the release point in stock barrels of oil per day.
- gorfloat, default=0.
Gas to oil ratio at standard surface conditions in standard cubic feet per stock barrel of oil
- x0float, default=0
x-coordinate of the release (m)
- y0float, default=0
y-coordinate of the release (m)
- u0float, default=None
Exit velocity of continuous-phase fluid at the release. This is only used when produced water exits. For a pure oil and gas release, this should be zero or None.
- phi_0float, default=-np.pi / 2. (vertical release)
Vertical angle of the release relative to the horizontal plane; z is positive down so that -pi/2 represents a vertically upward flowing release (rad)
- theta_0float, default=0.
Horizontal angle of the release relative to the x-direction (rad)
- num_gas_elementsint, default=10
Number of gas bubble sizes to include in the gas bubble size distribution
- num_oil_elementsint, default=25
Number of oil droplet sizes to include in the oil droplet size distribution
- watervarious
Data describing the ambient water temperature and salinity profile. See Notes below for details.
- currentvarious
Data describing the ambient current velocity profile. See Notes below for details.
Notes
The spilled substance can either be taken from the NOAA OilLibrary or can be created from individual pseudo-components in TAMOC. The user may define the substance in one of two ways:
- substancestr
Provide a unique OilLibrary ID number from the NOAA Python OilLibrary package
- substancedict
Use the chemical properties database provided with TAMOC. In this case, use the dictionary keyword composition to pass a list of chemical property names and the keyword masses to pass a list of mass fractions for each component in the composition list. If the masses variable does not sum to unity, this function will compute an equivalent mass fraction that does.
Likewise, the ambient water column data can be provided through several different options. The water variable contains temperature and salinity data. The user may define the water in the following ways:
- waterNone
Indicates that we have no information about the ambient temperature or salinity. In this case, the model will import data for the world-ocean average.
- waterdict
If we only know the water temperature and salinity at the surface, this may be passed through a dictionary with keywords temperature and salinity. In this case, the model will import data for the world-ocean average and adjust the data to have the given temperature and salinity at the surface.
- water‘netCDF4.Dataset’
If a ‘netCDF4.Dataset’ object already contains the ambient CTD data in a format appropriate for the ambient.Profile object, then this can be passed. In this case, it is assumed that the dataset includes the currents; hence, the currents variable will be ignored.
- waterambient.Profile object
If we already created our own ambient Profile object, then this object can be used directly.
- water = str
If we stored the water column profile in a file, we may provide the file path to this file via the string stored in water. If this string ends in ‘.nc’, it is assumed that this file contains a netCDF4 dataset. Otherwise, this file should contain columns in the following order: depth (m), temperature (deg C), salinity (psu), velocity in the x-direction (m/s), velocity in the y-direction (m/s). Since this option includes the currents, the current variable will be ignored in this case. A comment string of # may be used in the text file.
Finally, current profile data can be provided through several different options. The user may define the current in the following ways:
- currentfloat
This is assumed to be the current velocity along the x-axis and will be uniform over the depth
- currentndarray
This is assumed to contain the current velocity in the x- and y- (and optionally also z-) directions. If this is a one-dimensional array, then these currents will be assumed to be uniform over the depth. If this is a multi-dimensional array, then these values as assumed to contain a profile of data, with the depth (m) as the first column of data.
- Attributes
- z0float, default=100
Depth of the release point (m)
- d0float, default=0.1
Equivalent circular diameter of the release (m)
- substancestr or list of str, default=[‘methane’]
The chemical composition of the released petroleum fluid. If using the chemical property data distributed with TAMOC, this should be a list of TAMOC chemical property names. If using an oil from the NOAA OilLibrary, this should be a string containing the Adios oil ID number (e.g., ‘AD01554’ for Louisiana Light Sweet).
- q_oilfloat, default=20000.
Release rate of the dead oil composition at the release point in stock barrels of oil per day.
- gorfloat, default=0.
Gas to oil ratio at standard surface conditions in standard cubic feet per stock barrel of oil
- x0float, default=0
x-coordinate of the release (m)
- y0float, default=0
y-coordinate of the release (m)
- u0float, default=None
Exit velocity of continuous-phase fluid at the release. This is only used when produced water exits. For a pure oil and gas release, this should be zero or None.
- phi_0float, default=-np.pi / 2. (vertical release)
Vertical angle of the release relative to the horizontal plane; z is positive down so that -pi/2 represents a vertically upward flowing release (rad)
- theta_0float, default=0.
Horizontal angle of the release relative to the x-direction (rad)
- num_gas_elementsint, default=10
Number of gas bubble sizes to include in the gas bubble size distribution
- num_oil_elementsint, default=25
Number of oil droplet sizes to include in the oil droplet size distribution
- watervarious
Data describing the ambient water temperature and salinity profile. See Notes below for details.
- currentvarious
Data describing the ambient current velocity profile. See Notes below for details.
- profileambient.Profile object
An ambient.Profile object containing the ambient CTD and current information
- T0float
Ambient water temperature (K) at the release
- S0float
Ambient water salinity (psu) at the release
- P0float
Ambient water pressure (Pa) at the release
- gasfloat
A dbm.FluidParticle object defining the gas-phase fluid at the release
- liqfloat
A dbm.FluidParticle object defining the liquid-phase fluid at the release
- d_gasndarray
Equivalent spherical diameters (m) of the gas bubbles at the release
- vf_gasndarray
Volume fraction of gas in each of the diameters stored in d_gas
- d_liqndarray
Equivalent spherical diameters (m) of the liquid droplets at the release
- vf_liqndarray
Volume fraction of liquid in each of the diameters stored in d_liq
- disp_phaseslist
List of bent_plume_model.Particle objects that define each gas bubble and liquid droplet released from the orifice
- bpmbent_plume_model.Model object
A bent_plume_model.Model object that contains the simulation run defined by the present class object.
Methods
plot_all_variables
(self[, fignum])Plot all variables for the bent_plume_model solution
plot_state_space
(self[, fignum])Plot the bent_plume_model state space solution
save_sim
(self, fname, profile_path, profile_info)Save the bent_plume_model complete solution in netCDF format
save_txt
(self, base_name, profile_path, …)Save the bent_plume_model state space in ascii text format
simulate
(self)Run a bent_plume_model simulation for the present conditions
update_current_data
(self, current)Change the ambient current profile data
update_gor
(self, gor)Change the gas-to-oil ratio (std ft^3/bbl) to use in a model simulation
update_horizontal_orientation
(self, theta_0)Change the horizontal orientation (rad) of the release
update_num_gas_elements
(self, num_gas_elements)Change the number of gas bubbles to include in the simulation
update_num_oil_elements
(self, num_oil_elements)Change the number of oil droplets to include in the simulation
update_orifice_diameter
(self, d0)Change the orifice diametr (m) to use in a model simulation
update_produced_water
(self, u0)Change the amount of produced water (m/s) exiting with the oil and gas through the orifice
update_q_oil
(self, q_oil)Change the oil flow rate (bbl/d) to use in a model simulation
update_release_depth
(self, z0)Change the release depth (m) to use in a model simulation
update_substance
(self, substance)Change the OilLibrary ID number to use in a model simulation
update_vertical_orientation
(self, phi_0)Change the vertical orientation (rad) of the release
update_water_data
(self, water)Change the ambient temperature and salinity profile data
-
__init__
(self, z0=100, d0=0.1, substance={'composition': ['methane', 'ethane', 'propane', 'toluene', 'benzene'], 'masses': array([0.2 , 0.03, 0.02, 0.25, 0.5 ])}, q_oil=20000.0, gor=0.0, x0=0.0, y0=0.0, u0=None, phi_0=-1.5707963267948966, theta_0=0.0, num_gas_elements=10, num_oil_elements=25, water=None, current=array([0.1, 0. , 0. ]))[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(self[, z0, d0, substance, q_oil, …])Initialize self.
plot_all_variables
(self[, fignum])Plot all variables for the bent_plume_model solution
plot_state_space
(self[, fignum])Plot the bent_plume_model state space solution
simulate
(self)Run a bent_plume_model simulation for the present conditions
update_current_data
(self, current)Change the ambient current profile data
update_gor
(self, gor)Change the gas-to-oil ratio (std ft^3/bbl) to use in a model simulation
update_horizontal_orientation
(self, theta_0)Change the horizontal orientation (rad) of the release
update_num_gas_elements
(self, num_gas_elements)Change the number of gas bubbles to include in the simulation
update_num_oil_elements
(self, num_oil_elements)Change the number of oil droplets to include in the simulation
update_orifice_diameter
(self, d0)Change the orifice diametr (m) to use in a model simulation
update_produced_water
(self, u0)Change the amount of produced water (m/s) exiting with the oil and gas through the orifice
update_q_oil
(self, q_oil)Change the oil flow rate (bbl/d) to use in a model simulation
update_release_depth
(self, z0)Change the release depth (m) to use in a model simulation
update_substance
(self, substance)Change the OilLibrary ID number to use in a model simulation
update_vertical_orientation
(self, phi_0)Change the vertical orientation (rad) of the release
update_water_data
(self, water)Change the ambient temperature and salinity profile data


Improve this Doc
A toggle is an input component that holds a *boolean* value. Like the [checkbox](#checkbox), toggles are often used to allow the user to switch a setting on or off. Attributes like `value`, `disabled`, and `checked` can be applied to the toggle to control its behavior.
_For more information, Check out the [API docs](../api/components/toggle/Toggle)._
Basic Usage
Demo
Demo Source
```html
Sam
```


HTTP is the way modern applications network. It’s how we exchange data & media. Doing HTTP efficiently makes your stuff load faster and saves bandwidth.
OkHttp is an HTTP client that’s efficient by default:
OkHttp perseveres when the network is troublesome: it will silently recover from common connection problems. If your service has multiple IP addresses OkHttp will attempt alternate addresses if the first connect fails. This is necessary for IPv4+IPv6 and for services hosted in redundant data centers. OkHttp initiates new connections with modern TLS features (SNI, ALPN), and falls back to TLS 1.0 if the handshake fails.
Using OkHttp is easy. Its request/response API is designed with fluent builders and immutability. It supports both synchronous blocking calls and async calls with callbacks.
OkHttp supports Android 2.3 and above. For Java, the minimum requirement is 1.7.
This program downloads a URL and print its contents as a string. Full source.
OkHttpClient client = new OkHttpClient(); String run(String url) throws IOException { Request request = new Request.Builder() .url(url) .build(); Response response = client.newCall(request).execute(); return response.body().string(); }
This program posts data to a service. Full source.
public static final MediaType JSON = MediaType.parse("application/json; charset=utf-8"); OkHttpClient client = new OkHttpClient(); String post(String url, String json) throws IOException { RequestBody body = RequestBody.create(JSON, json); Request request = new Request.Builder() .url(url) .post(body) .build(); Response response = client.newCall(request).execute(); return response.body().string(); }
You'll also need Okio, which OkHttp uses for fast I/O and resizable buffers. Download the latest JAR.
The source code to OkHttp, its samples, and this website is available on GitHub.
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>(insert latest version)</version>
</dependency>
compile 'com.squareup.okhttp3:okhttp:(insert latest version)'
If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.
When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also make sure your code compiles by running mvn clean verify
.
Before your code can be accepted into the project you must also sign the Individual Contributor License Agreement (CLA).
Copyright 2016 Square, Inc. 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.


Demonstrates how you can notify an app that integrates with the Cached File Updater
contract that you have changed a file. This scenario requires that you have the
File Picker Contracts Sample app.
Steps:
1) Launch the file save picker with the "Get save file" button
2) Select "File picker contracts sample" app from the list of locations
3) Select scenario "3) Save to a cached file"
4) Click Save button in the picker
5) Select "Write to file" button


Phantomαs Web
Load the app
Other resources
Start a new model from scratch
or load an example:
Basic phantom
13 fanning bundles
3 bundles crossing at 60º
3 bundles kissing at 90º
Phantom used at 2013 HARDI reconstruction challenge
Authors:
Guillem González Vela and Emmanuel Caruyer<EMAIL_ADDRESS>User documentation
Developer documentation
License - BSD 2-Clause License
External links:
This app is Open Source and
may be forked in GitHub.
Pull requests are welcome!
Phantomαs' homepage
Phantomαs' GitHub
Phantomαs' API Documentation
HARDI reconstruction challenge 2013 homepage


I am team leader.Our team create Myanmar Language Tools.My role is Team leading, Lead Dev and DevOps
I am team member.Our team create Myanmar Language Tools.My role is developer responsibility.
I am team member.We create Myanmar Language Tools.My role is developer responsibility.
I am UI/UX leader.We create Myanmar Language Tools.My role is UI/UX design.
I am team member.We create Myanmar Language Tools.My role is UI/UX design.
I am team member.We create Myanmar Language Tools.My role is Test & Documentation


Morse Code App
Message to transmit
Hello World
Code:
Audio
Flash
Screen Flash
Repeat
Transmit
Advanced Settings
Words per minute
-
+
Dot Duration
in milliseconds
-
+
Audio waveform
sine
triangle
sawtooth
square
Audio frequency
-
+
Source Code
Add App to Homescreen


I am a professional director and chair, entrepreneur, inventor, visionary, experienced CEO and investor. With over 20 years of experience in starting, building, and growing New Zealand companies to the US and Europe. I bring a unique set of skills, current and relevant experience, and an intense passion for innovation and governance.
After 15 years travelling, living, and working in the US and Europe I’m back in NZ to help organisations innovate and take on the world. To help entrepreneurs reach their potential through coaching, consulting, and governance. To develop international market entry and growth strategies, preparing for and raising VC/PE capital, attracting the right talent, and building a world class organization.


GET /scrub/api/v1/links
Headers
{"X-Api-Key": <invoice_key>}
Body (application/json)
Returns 200 OK (application/json)
[<pay_link_object>, ...]
Curl example
curl -X GET {{ request.base_url }}scrub/api/v1/links?all_wallets=true
-H "X-Api-Key: {{ user.wallets[0].inkey }}"
GET
/scrub/api/v1/links/<scrub_id>
Headers
{"X-Api-Key": <invoice_key>}
Body (application/json)
Returns 200 OK (application/json)
{"id": <string>, "wallet": <string>, "description":
<string>, "payoraddress": <string>}
Curl example
curl -X GET {{ request.base_url }}scrub/api/v1/links/<pay_id>
-H "X-Api-Key: {{ user.wallets[0].inkey }}"
POST /scrub/api/v1/links
Headers
{"X-Api-Key": <admin_key>}
Body (application/json)
{"wallet": <string>, "description": <string>,
"payoraddress": <string>}
Returns 201 CREATED (application/json)
{"id": <string>, "wallet": <string>, "description":
<string>, "payoraddress": <string>}
Curl example
curl -X POST {{ request.base_url }}scrub/api/v1/links -d '{"wallet":
<string>, "description": <string>, "payoraddress":
<string>}' -H "Content-type: application/json" -H "X-Api-Key: {{
user.wallets[0].adminkey }}"
PUT
/scrub/api/v1/links/<pay_id>
Headers
{"X-Api-Key": <admin_key>}
Body (application/json)
{"wallet": <string>, "description": <string>,
"payoraddress": <string>}
Returns 200 OK (application/json)
{"id": <string>, "wallet": <string>, "description":
<string>, "payoraddress": <string>}
Curl example
curl -X PUT {{ request.base_url }}scrub/api/v1/links/<pay_id>
-d '{"wallet": <string>, "description": <string>,
"payoraddress": <string>}' -H "Content-type: application/json"
-H "X-Api-Key: {{ user.wallets[0].adminkey }}"
DELETE
/scrub/api/v1/links/<pay_id>
Headers
{"X-Api-Key": <admin_key>}
Returns 204 NO CONTENT
Curl example
curl -X DELETE {{ request.base_url
}}scrub/api/v1/links/<pay_id> -H "X-Api-Key: {{
user.wallets[0].adminkey }}"


FAQ:
Q: MIDI Input is already supported by DefleMask?
A: Yes!, under Options you will find the MIDI button. It will list all available MIDI devices.
Q: How can I associate the files extension with DefleMask?
A: DefleMask automatically associate files extension under Windows, in Windows 7 you should start it as Administrator to let DefleMask to write into the registry. In Linux you should done the association manually.
Q: I saved a track in VGM format, but there are some problems with the playback of the file, why?
A: Remember that DefleMask can export in various versions of the VGM Format, some players maybe do not support the desired format. The latest in_vgm Winamp Plugin is included in extras folder, with it every track should sound fine.
Q: I made a Skin for DefleMask and some Textures are not loaded, what I'm doing wrong?.
A: Remember that you need to copy all textures from the default skin, if some texture is missing, DefleMask will simply load the default skin. If the problem persist, make a thread on the forum and explain your problem.
Q: How can I speed up the performance of DefleMask?
A: You could try to increase the Buffer's size, under options menu. Also you can try to decrease the max_fps value inside the config.ini file.
Q: My computer crashed, my work is lost?
A: DefleMask saves automatically a backup module in the folder where the executable is located. You should search for "backup.dmf", it is the latest module played.
Q: I done a skin, but it don't load, how can I solve this?
A: Maybe you miss a texture file. Check that your skin have all the textures that the default skin have. Maybe there is a new texture added in a update and your skin needs it.
Q: The volume of the channels are quieter after a Macro, why?
A: The latest value of volume is used as a reference for the next volume macro, so if you want to reset the volume to the standard you have to put in the volume column the max volume of the current system (F, for example).
Q: I can not run DefleMask, I got a "Impossible to create the Window. CODE: 0xF4E7372F" in the ERROR.log file.
A: This should be a problem in the OpenGL drivers or video drivers, try to search for an OpenGL installation package and to update the video drivers and the problem should be fixed.
Q: On my Linux DefleMask won't start, why?
A: This is usually due to a missing library, remember to get OpenGL (sudo apt-get install freeglut3), if you are on a 64Bits distro you have to Download 32Bits libraries (sudo apt-get install ia32-libs) and maybe you will need also SDL libraries and lib32asound2-plugins.
Q: On my Mac OS X I get "Library not loaded: /usr/local/lib/libSDL-1.2.0.dylib" and DefleMask won't start, why?
A: You have to move libSDL-1.2.0.dylib file included with DefleMask to usr/local/lib to correctly load the Library.
Q: Can I make other questions to you?.
A: Of course, you should register on the forum and ask anything you need to know.


Buildings
BRICKS AND MORTAR: MOFFITT AND MEDICAL SCIENCES
by Nancy Rockafellar
by Nancy Rockafellar
The cross-shaped, fourteen-story teaching hospital was designed by architects Timothy and Milton T. Pflueger and the multi-story Medical Sciences building would adjoin both the new teaching hospital and the clinics building located west on Parnassus. It was designed by the supervising architectural firm for the medical center: Blanchard and Maher.
The two buildings were intended to function as an integrated unit, with direct access between basic research facilities and the teaching hospital's clinical facilities. The Medical center was to be funded with $20 million from state funds, $1 million from the U. S. Public Health Service and private grants.


Video QML Type
A convenience type for showing a specified video. More...
| Import Statement: | import QtMultimedia 5.8 |
| Inherits: |
Properties
- audioRole : enumeration
- autoLoad : bool
- autoPlay : bool
- availability : enumeration
- bufferProgress : real
- duration : int
- error : enumeration
- errorString : string
- fillMode : enumeration
- hasAudio : bool
- hasVideo : bool
- loops : int
- metaData : object
- muted : bool
- notifyInterval : int
- orientation : int
- playbackRate : real
- playbackState : enumeration
- playlist : Playlist
- position : int
- seekable : bool
- source : url
- status : enumeration
- volume : real
Signals
Methods
- pause()
- play()
- seek(offset)
- stop()
- supportedAudioRoles()
Detailed Description
Video
is a convenience type combining the functionality of a MediaPlayer and a VideoOutput into one. It provides simple video playback functionality without having to declare multiple types.
Video { id: video width : 800 height : 600 source: "video.avi" MouseArea { anchors.fill: parent onClicked: { video.play() } } focus: true Keys.onSpacePressed: video.playbackState == MediaPlayer.PlayingState ? video.pause() : video.play() Keys.onLeftPressed: video.seek(video.position - 5000) Keys.onRightPressed: video.seek(video.position + 5000) }
Video
supports untransformed, stretched, and uniformly scaled video presentation. For a description of stretched uniformly scaled presentation, see the fillMode property description.
See also MediaPlayer and VideoOutput.
Property Documentation
This property holds the role of the audio stream. It can be set to specify the type of audio being played, allowing the system to make appropriate decisions when it comes to volume, routing or post-processing.
The audio role must be set before setting the source property.
Supported values can be retrieved with supportedAudioRoles().
The value can be one of:
- MediaPlayer.UnknownRole - the role is unknown or undefined.
- MediaPlayer.MusicRole - music.
- MediaPlayer.VideoRole - soundtrack from a movie or a video.
- MediaPlayer.VoiceCommunicationRole - voice communications, such as telephony.
- MediaPlayer.AlarmRole - alarm.
- MediaPlayer.NotificationRole - notification, such as an incoming e-mail or a chat request.
- MediaPlayer.RingtoneRole - ringtone.
- MediaPlayer.AccessibilityRole - for accessibility, such as with a screen reader.
- MediaPlayer.SonificationRole - sonification, such as with user interface sounds.
- MediaPlayer.GameRole - game audio.
This QML property was introduced in Qt 5.6.
This property indicates if loading of media should begin immediately.
Defaults to true, if false media will not be loaded until playback is started.
This property determines whether the media should begin playback automatically.
Setting to true
also sets autoLoad to true
. The default is false
.
Returns the availability state of the video instance.
This is one of:
| Value | Description |
|---|---|
| MediaPlayer.Available | The video player is available to use. |
| MediaPlayer.Busy | The video player is usually available, but some other process is utilizing the hardware necessary to play media. |
| MediaPlayer.Unavailable | There are no supported video playback facilities. |
| MediaPlayer.ResourceMissing | There is one or more resources missing, so the video player cannot be used. It may be possible to try again at a later time. |
This property holds how much of the data buffer is currently filled, from 0.0 (empty) to 1.0 (full).
This property holds the duration of the media in milliseconds.
If the media doesn't have a fixed duration (a live stream for example) this will be 0.
This property holds the error state of the video. It can be one of:
- MediaPlayer.NoError - there is no current error.
- MediaPlayer.ResourceError - the video cannot be played due to a problem allocating resources.
- MediaPlayer.FormatError - the video format is not supported.
- MediaPlayer.NetworkError - the video cannot be played due to network issues.
- MediaPlayer.AccessDenied - the video cannot be played due to insufficient permissions.
- MediaPlayer.ServiceMissing - the video cannot be played because the media service could not be instantiated.
This property holds a string describing the current error condition in more detail.
Set this property to define how the video is scaled to fit the target area.
- VideoOutput.Stretch - the video is scaled to fit
- VideoOutput.PreserveAspectFit - the video is scaled uniformly to fit without cropping
- VideoOutput.PreserveAspectCrop - the video is scaled uniformly to fill, cropping if necessary
Because this type is for convenience in QML, it does not support enumerations directly, so enumerations from VideoOutput
are used to access the available fill modes.
The default fill mode is preserveAspectFit.
This property holds the number of times the media is played. A value of 0
or 1
means the media will be played only once; set to MediaPlayer.Infinite
to enable infinite looping.
The value can be changed while the media is playing, in which case it will update the remaining loops to the new value.
The default is 1
.
This QML property was introduced in Qt 5.9.
This property holds the meta data for the current media.
See MediaPlayer.metaData for details about each meta data key.
See also QMediaMetaData.
The interval at which notifiable properties will update.
The notifiable properties are position and bufferProgress.
The interval is expressed in milliseconds, the default value is 1000.
This QML property was introduced in Qt 5.9.
The orientation of the Video
in degrees. Only multiples of 90 degrees is supported, that is 0, 90, 180, 270, 360, etc.
This property holds the rate at which video is played at as a multiple of the normal rate.
This read only property indicates the playback state of the media.
- MediaPlayer.PlayingState - the media is playing
- MediaPlayer.PausedState - the media is paused
- MediaPlayer.StoppedState - the media is stopped
The default state is MediaPlayer.StoppedState.
playlist : Playlist |
This property holds the playlist used by the media player.
Setting the playlist property resets the source to an empty string.
This QML property was introduced in Qt 5.6.
This property holds whether the playback position of the video can be changed.
If true, calling the seek() method will cause playback to seek to the new position.
source : url |
This property holds the source URL of the media.
Setting the source property clears the current playlist, if any.
This property holds the status of media loading. It can be one of:
- MediaPlayer.NoMedia - no media has been set.
- MediaPlayer.Loading - the media is currently being loaded.
- MediaPlayer.Loaded - the media has been loaded.
- MediaPlayer.Buffering - the media is buffering data.
- MediaPlayer.Stalled - playback has been interrupted while the media is buffering data.
- MediaPlayer.Buffered - the media has buffered data.
- MediaPlayer.EndOfMedia - the media has played to the end.
- MediaPlayer.InvalidMedia - the media cannot be played.
- MediaPlayer.UnknownStatus - the status of the media cannot be determined.
This property holds the audio volume.
The volume is scaled linearly from 0.0
(silence) to 1.0
(full volume). Values outside this range will be clamped.
The default volume is 1.0
.
UI volume controls should usually be scaled nonlinearly. For example, using a logarithmic scale will produce linear changes in perceived loudness, which is what a user would normally expect from a volume control. See QtMultimedia.convertVolume() for more details.
Signal Documentation
This signal is emitted when playback is started or continued.
The corresponding handler is onPlaying
.
Method Documentation
Returns a list of supported audio roles.
If setting the audio role is not supported, an empty list is returned.
This QML method was introduced in Qt 5.6.
See also audioRole.


{% extends "base/base.html" %} {% load bootstrap_tags %} {% load i18n admin_static %} {% block breadcrumb %}
{% trans 'Your password was changed.' %}


This is a demo application exemplifying the use of Thymeleaf for creating and sending several kinds of HTML email in a Spring application.
Note that, although for educational purposes this is a web application developed with Spring MVC and HTML5, these same techniques would work perfectly in a standalone application with no web interface at all.
In order to run the application to should configure your SMTP server correctly. You can do this by modifying the values on src/main/resources/configuration.properties and src/main/resources/javamail.properties.
| Examples | ||
|---|---|---|
|
Plain text email |
This example shows how to send a plain TEXT email using Thymeleaf text syntax. |
See example |
|
Simple HTML email |
This example shows how to send a simple HTML email with no attachments or images. |
See example |
|
HTML email with attachment |
This example shows how to send an HTML email with a file attachment. |
See example |
|
HTML email with inline image |
This example shows how to send an HTML email with an inlined image. |
See example |
|
Editable HTML email |
This example shows how to send an HTML email composed with a rich text editor. |
See example |


% rebase('base')
Hi, I'm Marcos Castro. I have interest in machine learning, web development, education and entrepreneurship. :-)


{% extends 'base.html' %} {% block content %} Recruiter Profile {{ detail.first_name }} Home Organizational Details Personal Details Post Job


Scottish club not interested in signing former Derby County defender - report
Latest Derby County transfer news | The former Rams defender is a free agent after leaving the club in the summer
by Mark WakefieldFormer Derby County defender Efe Ambrose is on the lookout for a new club following the expiration of his contract at Pride Park.
Reports earlier this week linked with 31-year-old centre-back with Scottish Premiership duo St Johnstone and former club Hibernian.
However, the Daily Record claim that Hibs are not interested in bringing their former defender back to the club on a free transfer.
The experienced centre-back signed for the Rams on a short-term deal in February as a free agent, shortly after his contract at Hibs has expired.
Ambrose was signed as defensive cover to centre-backs Richard Keogh and Fikayo Tomori, but left Pride Park in the summer without a single first-team appearance to his name.
Derby County latest
This is your round up of all things Derby; the one-stop shop that will keep you updated on the latest goings on at Pride Park and beyond.
Transfers, injuries, match-days and managers, we’ve got you covered.
We’ll be bringing the very latest on the Rams throughout the week and around the clock.
Make sure you keep yourself updated with our handy daily catch up...
Must reads...
- 'I'm my biggest critic' - former Derby midfielder opens up on his form
- 'Not a surprise' - this is what's holding Derby County back in search for identity
- History lesson that points to serious concern for Derby County's top-six hopes
- 'Most difficult' - Derby County boss reveals key role for Wayne Rooney and its more than fans will expect
- 'We have been looking' - latest on new investment plans for Derby County
For all your latest Rams news, opinion, analysis and transfer gossip, click here
You can follow our Rams reporter Steve Nicholson on Twitter, and his email address is<EMAIL_ADDRESS>Ambrose made 81 appearances for Hibs before leaving the club in January of this year.
Hibs have a new manager at the helm as former Sunderland boss Jack Ross was appointed as Paul Heckingbottom replacement last week.


This window prompts the status of your email, if the email was successfuly delivered to the recipients.


-
Exploring the Homebrew Codebase #0
Hello, there! I’ve decided to write a series of blogs to document my experience of going through the Homebrew/brew repository. Hopefully, it should turn out as a pretty good starting point for someone planning to explore the Homebrew codebase. For starters, Homebrew is the best package manager for macOS out...
-
Hello World
Hello Everyone. Eiusmod excepteur sint ut labore ipsum cupidatat aute ut veniam sit aute nostrud eu sunt nisi occaecat occaecat. Tempor aliquip fugiat ullamco sunt esse enim aliqua aliquip nulla est nisi. Sit in culpa anim eu labore cillum consequat enim ullamco ex mollit cupidatat veniam veniam aliqua magna. Exercitation...


Suddenly President Trump Dies
The time has come for President Trump to die. He is sent to the fires of Hell. Suddenly everything is different. This happens very soon. Today is the 4th of July 2020