--- title: "v1.30.0 - 2023-04-03" linkTitle: "v1.30.0 - 2023-04-03" weight: -112 ---
# of Merged PRs reviewed
# of words written in merged PRs
# of Review Comments in merged PRs
# of Pull Requests Merged
Lines of code (delta)
Average PR size (added+changed)
# of comments
# of words (excludes authored)
# of issues closed (excludes authored)


Add
Add
×
Name
Email
Password
Confirm Password
City
A
B
C
Agree to the Website Membership Agreement, Privacy Policy.


This intention converts 'if' expression where each branch is terminated with 'return' into a single 'return' with 'if' expression as a right-hand side


timerfd_create, timerfd_settime, timerfd_gettime - timers that notify via file
descriptors
#include <sys/timerfd.h>
int timerfd_create(int clockid, int flags);
int timerfd_settime(int fd, int flags,
const struct itimerspec *new_value,
struct itimerspec *old_value);
int timerfd_gettime(int fd, struct itimerspec *curr_value);
These system calls create and operate on a timer that delivers timer expiration
notifications via a file descriptor. They provide an alternative to the use of
setitimer(2) or timer_create(2), with the advantage that the
file descriptor may be monitored by select(2), poll(2), and
epoll(7).
The use of these three system calls is analogous to the use of
timer_create(2), timer_settime(2), and
timer_gettime(2). (There is no analog of timer_getoverrun(2),
since that functionality is provided by read(2), as described
below.)
timerfd_create() creates a new timer object, and returns a file
descriptor that refers to that timer. The clockid argument specifies
the clock that is used to mark the progress of the timer, and must be one of
the following:
- CLOCK_REALTIME
- A settable system-wide real-time clock.
- CLOCK_MONOTONIC
- A nonsettable monotonically increasing clock that measures time from some
unspecified point in the past that does not change after system
startup.
- CLOCK_BOOTTIME (Since Linux 3.15)
- Like CLOCK_MONOTONIC, this is a monotonically increasing clock.
However, whereas the CLOCK_MONOTONIC clock does not measure the
time while a system is suspended, the CLOCK_BOOTTIME clock does
include the time during which the system is suspended. This is useful for
applications that need to be suspend-aware. CLOCK_REALTIME is not
suitable for such applications, since that clock is affected by
discontinuous changes to the system clock.
- CLOCK_REALTIME_ALARM (since Linux 3.11)
- This clock is like CLOCK_REALTIME, but will wake the system if it
is suspended. The caller must have the CAP_WAKE_ALARM capability in
order to set a timer against this clock.
- CLOCK_BOOTTIME_ALARM (since Linux 3.11)
- This clock is like CLOCK_BOOTTIME, but will wake the system if it
is suspended. The caller must have the CAP_WAKE_ALARM capability in
order to set a timer against this clock.
The current value of each of these clocks can be retrieved using
clock_gettime(2).
Starting with Linux 2.6.27, the following values may be bitwise
ORed in flags to change the behavior of timerfd_create():
- TFD_NONBLOCK
- Set the O_NONBLOCK file status flag on the open file description
(see open(2)) referred to by the new file descriptor. Using this
flag saves extra calls to fcntl(2) to achieve the same result.
- TFD_CLOEXEC
- Set the close-on-exec (FD_CLOEXEC) flag on the new file descriptor.
See the description of the O_CLOEXEC flag in open(2) for
reasons why this may be useful.
In Linux versions up to and including 2.6.26, flags must be
specified as zero.
timerfd_settime() arms (starts) or disarms (stops) the timer referred to
by the file descriptor fd.
The new_value argument specifies the initial expiration and
interval for the timer. The itimerspec structure used for this
argument contains two fields, each of which is in turn a structure of type
timespec:
struct timespec {
time_t tv_sec; /* Seconds */
long tv_nsec; /* Nanoseconds */
};
struct itimerspec {
struct timespec it_interval; /* Interval for periodic timer */
struct timespec it_value; /* Initial expiration */
};
new_value.it_value specifies the initial expiration of the
timer, in seconds and nanoseconds. Setting either field of
new_value.it_value to a nonzero value arms the timer. Setting both
fields of new_value.it_value to zero disarms the timer.
Setting one or both fields of new_value.it_interval to
nonzero values specifies the period, in seconds and nanoseconds, for
repeated timer expirations after the initial expiration. If both fields of
new_value.it_interval are zero, the timer expires just once, at the
time specified by new_value.it_value.
By default, the initial expiration time specified in
new_value is interpreted relative to the current time on the timer's
clock at the time of the call (i.e., new_value.it_value specifies a
time relative to the current value of the clock specified by
clockid). An absolute timeout can be selected via the flags
argument.
The flags argument is a bit mask that can include the
following values:
- TFD_TIMER_ABSTIME
- Interpret new_value.it_value as an absolute value on the timer's
clock. The timer will expire when the value of the timer's clock reaches
the value specified in new_value.it_value.
- TFD_TIMER_CANCEL_ON_SET
- If this flag is specified along with TFD_TIMER_ABSTIME and the
clock for this timer is CLOCK_REALTIME or
CLOCK_REALTIME_ALARM, then mark this timer as cancelable if the
real-time clock undergoes a discontinuous change (settimeofday(2),
clock_settime(2), or similar). When such changes occur, a current
or future read(2) from the file descriptor will fail with the error
ECANCELED.
If the old_value argument is not NULL, then the
itimerspec structure that it points to is used to return the setting
of the timer that was current at the time of the call; see the description
of timerfd_gettime() following.
timerfd_gettime() returns, in curr_value, an itimerspec
structure that contains the current setting of the timer referred to by the
file descriptor fd.
The it_value field returns the amount of time until the
timer will next expire. If both fields of this structure are zero, then the
timer is currently disarmed. This field always contains a relative value,
regardless of whether the TFD_TIMER_ABSTIME flag was specified when
setting the timer.
The it_interval field returns the interval of the timer. If
both fields of this structure are zero, then the timer is set to expire just
once, at the time specified by curr_value.it_value.
The file descriptor returned by timerfd_create() supports the following
operations:
- read(2)
- If the timer has already expired one or more times since its settings were
last modified using timerfd_settime(), or since the last successful
read(2), then the buffer given to read(2) returns an
unsigned 8-byte integer (uint64_t) containing the number of
expirations that have occurred. (The returned value is in host byte
order—that is, the native byte order for integers on the host
machine.)
- If no timer expirations have occurred at the time of the read(2),
then the call either blocks until the next timer expiration, or fails with
the error EAGAIN if the file descriptor has been made nonblocking
(via the use of the fcntl(2) F_SETFL operation to set the
O_NONBLOCK flag).
- A read(2) fails with the error EINVAL if the size of the
supplied buffer is less than 8 bytes.
- If the associated clock is either CLOCK_REALTIME or
CLOCK_REALTIME_ALARM, the timer is absolute
(TFD_TIMER_ABSTIME), and the flag TFD_TIMER_CANCEL_ON_SET
was specified when calling timerfd_settime(), then read(2)
fails with the error ECANCELED if the real-time clock undergoes a
discontinuous change. (This allows the reading application to discover
such discontinuous changes to the clock.)
- poll(2), select(2) (and similar)
- The file descriptor is readable (the select(2) readfds
argument; the poll(2) POLLIN flag) if one or more timer
expirations have occurred.
- The file descriptor also supports the other file-descriptor multiplexing
APIs: pselect(2), ppoll(2), and epoll(7).
- ioctl(2)
- The following timerfd-specific command is supported:
- TFD_IOC_SET_TICKS (since Linux 3.17)
- Adjust the number of timer expirations that have occurred. The argument is
a pointer to a nonzero 8-byte integer (uint64_t*) containing the
new number of expirations. Once the number is set, any waiter on the timer
is woken up. The only purpose of this command is to restore the
expirations for the purpose of checkpoint/restore. This operation is
available only if the kernel was configured with the
CONFIG_CHECKPOINT_RESTORE option.
- close(2)
- When the file descriptor is no longer required it should be closed. When
all file descriptors associated with the same timer object have been
closed, the timer is disarmed and its resources are freed by the
kernel.
After a fork(2), the child inherits a copy of the file descriptor created
by timerfd_create(). The file descriptor refers to the same underlying
timer object as the corresponding file descriptor in the parent, and
read(2)s in the child will return information about expirations of the
timer.
A file descriptor created by timerfd_create() is preserved across
execve(2), and continues to generate timer expirations if the timer was
armed.
On success, timerfd_create() returns a new file descriptor. On error, -1
is returned and errno is set to indicate the error.
timerfd_settime() and timerfd_gettime() return 0 on
success; on error they return -1, and set errno to indicate the
error.
timerfd_create() can fail with the following errors:
- EINVAL
- The clockid argument is neither CLOCK_MONOTONIC nor
CLOCK_REALTIME;
- EINVAL
- flags is invalid; or, in Linux 2.6.26 or earlier, flags is
nonzero.
- EMFILE
- The per-process limit on the number of open file descriptors has been
reached.
- ENFILE
- The system-wide limit on the total number of open files has been
reached.
- ENODEV
- Could not mount (internal) anonymous inode device.
- ENOMEM
- There was insufficient kernel memory to create the timer.
timerfd_settime() and timerfd_gettime() can fail
with the following errors:
- EBADF
- fd is not a valid file descriptor.
- EFAULT
- new_value, old_value, or curr_value is not valid a
pointer.
- EINVAL
- fd is not a valid timerfd file descriptor.
timerfd_settime() can also fail with the following
errors:
- EINVAL
- new_value is not properly initialized (one of the tv_nsec
falls outside the range zero to 999,999,999).
- EINVAL
- flags is invalid.
These system calls are available on Linux since kernel 2.6.25. Library support
is provided by glibc since version 2.8.
These system calls are Linux-specific.
Currently, timerfd_create() supports fewer types of clock IDs than
timer_create(2).
The following program creates a timer and then monitors its progress. The
program accepts up to three command-line arguments. The first argument
specifies the number of seconds for the initial expiration of the timer. The
second argument specifies the interval for the timer, in seconds. The third
argument specifies the number of times the program should allow the timer to
expire before terminating. The second and third command-line arguments are
optional.
The following shell session demonstrates the use of the
program:
$ a.out 3 1 100
0.000: timer started
3.000: read: 1; total=1
4.000: read: 1; total=2
^Z # type control-Z to suspend the program
[1]+ Stopped ./timerfd3_demo 3 1 100
$ fg # Resume execution after a few seconds
a.out 3 1 100
9.660: read: 5; total=7
10.000: read: 1; total=8
11.000: read: 1; total=9
^C # type control-C to suspend the program
#include <sys/timerfd.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h> /* Definition of uint64_t */
#define handle_error(msg) \
do { perror(msg); exit(EXIT_FAILURE); } while (0)
static void
print_elapsed_time(void)
{
static struct timespec start;
struct timespec curr;
static int first_call = 1;
int secs, nsecs;
if (first_call) {
first_call = 0;
if (clock_gettime(CLOCK_MONOTONIC, &start) == -1)
handle_error("clock_gettime");
}
if (clock_gettime(CLOCK_MONOTONIC, &curr) == -1)
handle_error("clock_gettime");
secs = curr.tv_sec - start.tv_sec;
nsecs = curr.tv_nsec - start.tv_nsec;
if (nsecs < 0) {
secs--;
nsecs +=<PHONE_NUMBER>;
}
printf("%d.%03d: ", secs, (nsecs + 500000) / 1000000);
}
int
main(int argc, char *argv[])
{
struct itimerspec new_value;
int max_exp, fd;
struct timespec now;
uint64_t exp, tot_exp;
ssize_t s;
if ((argc != 2) && (argc != 4)) {
fprintf(stderr, "%s init-secs [interval-secs max-exp]\n",
argv[0]);
exit(EXIT_FAILURE);
}
if (clock_gettime(CLOCK_REALTIME, &now) == -1)
handle_error("clock_gettime");
/* Create a CLOCK_REALTIME absolute timer with initial
expiration and interval as specified in command line */
new_value.it_value.tv_sec = now.tv_sec + atoi(argv[1]);
new_value.it_value.tv_nsec = now.tv_nsec;
if (argc == 2) {
new_value.it_interval.tv_sec = 0;
max_exp = 1;
} else {
new_value.it_interval.tv_sec = atoi(argv[2]);
max_exp = atoi(argv[3]);
}
new_value.it_interval.tv_nsec = 0;
fd = timerfd_create(CLOCK_REALTIME, 0);
if (fd == -1)
handle_error("timerfd_create");
if (timerfd_settime(fd, TFD_TIMER_ABSTIME, &new_value, NULL) == -1)
handle_error("timerfd_settime");
print_elapsed_time();
printf("timer started\n");
for (tot_exp = 0; tot_exp < max_exp;) {
s = read(fd, &exp, sizeof(uint64_t));
if (s != sizeof(uint64_t))
handle_error("read");
tot_exp += exp;
print_elapsed_time();
printf("read: %llu; total=%llu\n",
(unsigned long long) exp,
(unsigned long long) tot_exp);
}
exit(EXIT_SUCCESS);
}
eventfd(2), poll(2), read(2), select(2),
setitimer(2), signalfd(2), timer_create(2),
timer_gettime(2), timer_settime(2), epoll(7),
time(7)
This page is part of release 5.05 of the Linux man-pages project. A
description of the project, information about reporting bugs, and the latest
version of this page, can be found at https://www.kernel.org/doc/man-pages/.


| Survey.ID |
54136 |
| Survey.Date |
06/05/2019 |
| Site.Name |
Redmond Watershed Preserve Die-off 2 |
| Surveyor.Name |
Caleb GM |
| Geo.Location |
47.696636,-122.050549 |
| Elevation |
490 |
| Area |
|
| Shape |
|
| Slope |
|
| Aspect |
|
| Fern.Count..Healthy. |
36 |
| Fern.Count..No.new.growth. |
2 |
| Fern.Count..Dead. |
20 |
| estimated.pre.die.off.sword.fern.dominance |
85 |
| Leaf.Litter.Depth |
|
| Canopy.Cover |
85 |
| Trees...DBH. |
~24in |
| Trees..Distribution. |
peripheral |
| Trees..Species. |
Acer circinatum / Vine maple,Acer macrophyllum / Bigleaf maple, Big-leaf maple,Pseudotsuga / Douglas-fir |
| Shrubs..Species. |
Vaccinium parvifolium / Red bilberry, Red huckleberry,Rubus spectabilis var. spectabilis / Salmonberry,Athyrium filix-femina / Common ladyfern,Oemleria cerasiformis / Oso berry |
| Notes |
|


|
OPAE C API
-..
FPGA API
|
APIs to manage a PCIe device via UIO. More...
#include <stdio.h>
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
| struct | opae_uio_device_region |
| struct | opae_uio |
Macros | |
| #define | OPAE_UIO_PATH_MAX 256 |
Functions | |
| int | opae_uio_open (struct opae_uio *u, const char *dfl_device) |
| int | opae_uio_region_get (struct opae_uio *u, uint32_t index, uint8_t **ptr, size_t *size) |
| void | opae_uio_close (struct opae_uio *u) |
APIs to manage a PCIe device via UIO.
Presents a simple interface for interacting with a DFL device that is bound to its UIO driver. See https://kernel.org/doc/html/v4.14/driver-api/uio-howto.html for a description of UIO.
Provides APIs for opening/closing the device and for querying info about the MMIO regions of the device.
Definition in file uio.h.
| struct opae_uio_device_region |
| Data Fields | ||
|---|---|---|
| uint32_t | region_index | |
| uint8_t * | region_ptr | |
| size_t | region_page_offset | |
| size_t | region_size | |
| struct opae_uio_device_region * | next |
| struct opae_uio |
OPAE UIO device abstraction
This structure is used to interact with the OPAE UIO API. Each UIO device has a file descriptor that is used to mmap its regions into user address space. Each device also has one or more MMIO regions.
| Data Fields | ||
|---|---|---|
| char | device_path[256] | |
| int | device_fd | |
| struct opae_uio_device_region * | regions |
| int opae_uio_open | ( | struct opae_uio * | u, |
| const char * | dfl_device | ||
| ) |
Open and populate a UIO device
Opens the Device Feature List device corresponding to the device name given in dfl_device, eg "dfl_dev.10". The device must be bound to the dfl-uio-pdev driver prior to opening it. The data structures corresponding to the MMIO regions are initialized.
| [out] | u | Storage for the device. May be stack-resident. |
| [in] | dfl_device | The name of the desired DFL device. |
Example
Example
| int opae_uio_region_get | ( | struct opae_uio * | u, |
| uint32_t | index, | ||
| uint8_t ** | ptr, | ||
| size_t * | size | ||
| ) |
Query device MMIO region
Retrieves info describing the MMIO region with the given region index. The device structure u must have been previously opened by a call to opae_uio_open.
| [in] | u | The open OPAE UIO device. |
| [in] | index | The zero-based index of the desired MMIO region. |
| [out] | ptr | Optional pointer to receive the virtual address for the region. Pass NULL to ignore. |
| [out] | size | Optional pointer to receive the size of the MMIO region. Pass NULL to ignore. |
Example
| void opae_uio_close | ( | struct opae_uio * | u | ) |
Release and close a UIO device
The given device pointer must have been previously initialized by opae_uio_open. Releases all data structures.
| [in] | u | Storage for the device info. May be stack-resident. |
Example
Example


Utility allowance for Punjab government officials enhanced | Pakistan - Geo.tv
by Web DeskLAHORE: The Punjab government has enhanced the utility allowance of public sector employees from 2020.
The enhancement of utility allowance will be effective from January 01, 2020.
The approval was given in a meeting chaired by Punjab Finance Minister.
According to the decision, grade 1-8 employees will get utility allowance of Rs 5,400; grade 9-14 Rs 7,200 while grade 15 will get Rs 9,000 and grade 16 officials, Private Secretaries and Superintendents (BS-17) employees to receive Rs 12,600.


{{.NavigationBar}}
Add schedule
DaysOperated
Destination
FlightNumber
OperatingCarrier
Origin
ScheduleID


is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an
when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets ontaining Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum


--- layout: page title: "Contact" description: "Together we grow!!!" header-img: "img/home_bg.jpg" ---
Want to get in touch with us? Send us an email and we will try to get back to you within 24 hours! Together we can learning more!!


Original: Skinner (1982), www.ncbi.nlm.nih.gov/pubmed/7183189.
Reproducible non-commercially with attribution.
“Copyright 1982 by Harvey A. Skinner, PhD, and the Centre for Addiction and Mental Health, Toronto, Canada. You may reproduce this instrument for non-commercial use (clinical, research, training purposes) as long as you credit the author Dr. Harvey A. Skinner, Dean, Faculty of Health, York University, Toronto, Canada.” (bit.ly/DAST_inst, accessed 2012-09-06.)


--- layout: post title: Written (and syncronized with StackEdit) date: '2014-07-09T16:51:00.001+02:00' author: Pere Vilas tags: modified_time: '2014-07-09T16:51:17.231+02:00' blogger_id: tag:blogger.com,1999:blog-9191328551308072706.post-7961423648216985345 blogger_orig_url: http://www.pvilas.com/2014/07/written-and-syncronized-with-stackedit.html ---
Wonderful!!
This text has been written in markup and then synchronized with Blogger. This the end of the editing pain on Blogger.
A cité
this is source code
This is also source code but
marked with a tab or four spaces
If you liked it, you must visit StackEdit:
Written with StackEdit.


In this package the main application class can be found.
Application
is the start up class of this framework. An instance
initializes all required helper classes and constructs the GUI. It also controls
the command dispatch thread.
The Application
class is fully functional; it can be directly used.
If customization is required (e.g. if some of the helper classes are to be
replaced) or if command line arguments need to be processed, a custom
application class can be derived from this class.
In addition to the central Application
class this package contains
other classes directly related to Application
. There is the
ApplicationContext
interface which provides access to many helper
objects managed by an application. There are also some helper classes that can
be used by typical applications, e.g. often required commands or action tasks.
$Id: package.html 205 2012-01-29 18:29:57Z oheger $


Loading from html/nav.html. Check debugger if you see this message.
Upload Image:
Webcam:
Threshold:
maxDiff:
Status:


Cocoa Industry players honour NAFCO
Accra, Nov 25, GNA - Cocoa Industry Players have honoured he National Food Buffer Stock Company (NAFCO)for the inclusion and supply of Cocoa Powder to Senior High Schools under the Free Senior High School Programme since 2019.
The Company was adjudged the “Consumption Promotion Organisation (Honorary category) 2019” at the first Ghana Cocoa Awards, which took place in Accra over the weekend.
The event also saw 36 other organisations and individuals honored for various contributions towards the growth and development of the Cocoa sector.
It is the first awards, since 140 years ago when local Blacksmith, Tetteh Quarshie first brought the cocoa beans to the then Gold Coast from Fernando Po, now Equatorial Guinea.
According to the sector regulator, the Ghana cocoa board, cocoa offers direct employment to about 800 thousand people and provides a livelihood for some 6 million others.
Over the decades, the golden pod’s importance transcended financial assistance to areas including; infrastructure, health and nutrition, cosmetics, education and research.
The Ghana cocoa awards, a private and independent initiative is meant to recognise outstanding achievements mainly, but not limited to cocoa industry.
Since 2017, when the Free SHS begun, NAFCO has been promoting Cocoa Powder to state boarding High Schools with the twin aim of improving diet intake and encouraging the consumption of cocoa products among young people.
It is believed NAFCO has for the past three years supplied the cocoa product to some 1.7 million students nationwide.
The Company’s Head of Operations, Mr. Kofi Amankwah and Corporate Affairs Manager, Mr. Emmanuel J.K Arthur received the Awards on behalf of NAFCO.
Commenting on the latest recognition, Chief Executive Officer, Mr. Hanan Abdul-Wahab said the honour would inspire the company to do more in the coming years.
“We dedicate it to our Cocoa farmers, our Licensed Suppliers and the Minister for Education who gave us the opportunity to contribute our quota towards the successful implementation of the Free SHS initiative”, he added.
Cocoa Powder is one of 18 food commodities supplied by NAFCO to schools under the Free SHS.
Chief Executive Officer of Ghana Cocoa Board, Mr. Joseph Boahene Aidoo won the topmost the Tetteh Quarshie Cocoa Personality 2019 Award.
Other award winners were former President J.A Kufuor for Cocoa Lifetime Achievement Award; former Chief Executive of Cocoa Board, Mr. Anthony Fofie; and Agricultural Development Bank for Cocoa financing among others.
GNA


Hi I’m Aaron, I grew up in Belfast before going off to Imperial College London to study geology. Whilst at university I first got involved with the Conservative Party organising a number of events and campaigning for Boris Johnson in his first mayoral run.
After university I wound up working in the oil industry and spent a lot of my time on drilling rigs in the North Sea and Libya. In 2012 I ended up moving to Australia to work in the coal seam gas industry and subsequently became very familiar with the delights of rural Queensland.
I returned to the UK in 2017 and got involved with the party all over again eventually becoming a constituency association chairman in 2019.
In the 2019 General Election I was very fortunate to be selected as the Conservative candidate for East Antrim. We fought a great campaign trying to talk to as a many people as possible up and down the coast to get our message out. Alas we didn’t win in the end but had good turnout, however the election you’ve just fought isn’t the important one it’s the upcoming one.
It was an amazing experience and we got a lot of great responses on the doorstep. People appeared greatly disillusioned so were very delighted to be presented with an alternative to the tired divisive politics of the Northern Ireland parties. It really confirmed my belief that most people out there are in the market for something different and the Conservative Party can offer that.
I am a Conservative because I believe in liberty, I believe people are best served when they are free to make their own choices. We fundamentally want people to live their lives not tell them how to. Liberty is universal, it isn’t dependent on someones race, gender or religion, it doesn’t matter who someone is but wether they are free to determine their own destiny. By enabling choice you open up the options for everyone and ensure each person has the opportunity to live life to the fullest, that is the philosophy that drives me.


Weather Reporting
Type in a city name to know the weather conditions of the city at this moment
City:


--- layout: default title: Startup Threads permalink: /threads/ excerpt: "Intersting threads from twitter." ---


Latest Work
Speech Sentiment Analyzer
An app built on create-react-app that uses Web Speech API to convert speech to text and get the sentiment of the text via Azure Text Analytics API.
Accenture AI HR solution
Accenture AI solution for recruiting, shortlisting employees skilled in AI with a classification model, having a chatbot built in Microsoft Bot framework and LUIS to score candidates on their AI proficiency and a R shiny app for visualizing the candidates’ interview scores.
Simple React Weather App
A simple weather app built using React with create-react-app and react-bootstrap.


S -> NP VP VP -> VP PP | V NP | V PP -> P NP NP -> Det N | N | Pn | Det A N | A NP A -> Adv A | A A Adv -> too | very | quite Pn -> she | he A -> fresh | tasty | silver N -> fish | fork | apple V -> eats Det -> a | an | the P -> with
she eats
she eats an apple
she eats fresh tasty apple
she eats a quite tasty apple
she eats a fish
she eats a fish with a fork
she eats a fish with a silver fork
she eats a quite fresh fish with a silver fork


Autocomplete hiding level
0 - No countermeasure
1 - Only padding
2 - Delaying & padding
3 - Turn off autocomplete
Save
Introduce dummy traffic with Wikipedia
0 - No dummy traffic
1 - Dummy traffic when visiting Wikipedia
Save
Are my domainnames hidden?
Run test first!
Check if domainnames are hidden


django-contentrelations 1.1 documentation
Using a resource requires instantiating the registered resource class with an instance of the appropriate class. In short:
ExampleResource(Example.objects.get(id=1))
But since you probably are missing key information about which resource goes with with object, there are some easier ways to do this.
If you have the model, you can get the resource class from the resource_list.
from contentrelations import resource_list
from simpleapp.models import Food
FoodResourceClass = resource_list[Food]
Then you can instantiate the class with any Food object.
food_item = Food.objects.get(id=1)
resource = FoodResourceClass(food_item)
An even simpler way to get a Resource is to use the ResourceList.get_for_instance() method on the resource_list object. This method takes an instance, and does the lookup and instantiation for you.
from contentrelations import resource_list
from simpleapp.models import Food
food_item = Food.objects.get(id=1)
resource = resource_list.get_for_instance(food_item)
A Resource class attempts to get an attribute several ways:
What if you have a list of items and you want to use them as Resources? That’s where the ResourceIterator comes in. the ResourceIterator wraps any iterator or sequence and returns each item’s registered Resource class. Here is a simple example:
>>> from articleapp.models import Article
>>> from imageapp.models import Image
>>> from downloads.models import DownloadableFile
>>> from contentrelations.resources import ResourceIterator
>>> a = Article.objects.all()[0]
>>> i = Image.objects.all()[0]
>>> d = DownloadableFile.objects.all()[0]
>>> items = [a, i, d]
>>> for i in ResourceIterator(items):
... print i
...
Article Resource
Image Resource
Downloadablefile Resource
When we passed a list of an Article, Image and Downloadable File to ResourceIterator we got back an iterator of their corresponding resources.


--- ---
|
TGUI
0.8-dev
|
Combo box widget. More...
#include <TGUI/Widgets/ComboBox.hpp>
Public Types | |
| typedef std::shared_ptr< ComboBox > | Ptr |
| Shared widget pointer. | |
| typedef std::shared_ptr< const ComboBox > | ConstPtr |
| Shared constant widget pointer. | |
| Public Types inherited from tgui::Widget | |
| typedef std::shared_ptr< Widget > | Ptr |
| Shared widget pointer. | |
| typedef std::shared_ptr< const Widget > | ConstPtr |
| Shared constant widget pointer. | |
Public Member Functions | |
| ComboBoxRenderer * | getSharedRenderer () |
| Returns the renderer, which gives access to functions that determine how the widget is displayed. More... | |
| ComboBoxRenderer * | getRenderer () |
| Returns the renderer, which gives access to functions that determine how the widget is displayed. More... | |
| void | setSize (const Layout2d &size) override |
| Changes the size of the combo box. More... | |
| void | setItemsToDisplay (std::size_t nrOfItemsInListToDisplay) |
| Changes the number of items that are displayed in the list. More... | |
| std::size_t | getItemsToDisplay () const |
| Returns the number of items that are displayed in the list. More... | |
| bool | addItem (const sf::String &itemName, const sf::String &id="") |
| Adds an item to the list, so that it can be selected later. More... | |
| bool | setSelectedItem (const sf::String &itemName) |
| Selects an item from the list. More... | |
| bool | setSelectedItemById (const sf::String &id) |
| Selects an item from the list. More... | |
| bool | setSelectedItemByIndex (std::size_t index) |
| Selects an item in the list. More... | |
| void | deselectItem () |
| Deselects the selected item. More... | |
| bool | removeItem (const sf::String &itemName) |
| Removes the item from the list with the given name. More... | |
| bool | removeItemById (const sf::String &id) |
| Removes the item that were added with the given id. More... | |
| bool | removeItemByIndex (std::size_t index) |
| Removes the item from the list. More... | |
| void | removeAllItems () |
| Removes all items from the list. | |
| sf::String | getItemById (const sf::String &id) const |
| Returns the item name of the item with the given id. More... | |
| sf::String | getSelectedItem () const |
| Returns the currently selected item. More... | |
| sf::String | getSelectedItemId () const |
| Gets the id of the selected item. More... | |
| int | getSelectedItemIndex () const |
| Gets the index of the selected item. More... | |
| bool | changeItem (const sf::String &originalValue, const sf::String &newValue) |
| Changes an item with name originalValue to newValue. More... | |
| bool | changeItemById (const sf::String &id, const sf::String &newValue) |
| Changes the name of an item with the given id to newValue. More... | |
| bool | changeItemByIndex (std::size_t index, const sf::String &newValue) |
| Changes the name of an item at the given index to newValue. More... | |
| std::size_t | getItemCount () const |
| Returns the amount of items in the combo box. More... | |
| std::vector< sf::String > | getItems () const |
| Returns a copy of the items in the combo box. More... | |
| const std::vector< sf::String > & | getItemIds () const |
| Returns a copy of the item ids in the combo box. More... | |
| void | setMaximumItems (std::size_t maximumItems=0) |
| Changes the maximum items that the combo box can contain. More... | |
| std::size_t | getMaximumItems () const |
| Returns the maximum items that the combo box can contain. More... | |
| void | setTextSize (unsigned int textSize) |
| Changes the text size of the items. More... | |
| unsigned int | getTextSize () const |
| Returns the text size of the items. More... | |
| void | setDefaultText (const sf::String &defaultText) |
| Changes the default text of the combo box. This is the text drawn when no item is selected. More... | |
| const sf::String & | getDefaultText () const |
| Returns the default text of the combo box. This is the text drawn when no item is selected. More... | |
| void | setExpandDirection (ExpandDirection direction) |
| Changes the side where the list is displayed. More... | |
| ExpandDirection | getExpandDirection () const |
| Returns the side where the list is displayed. More... | |
| bool | contains (const sf::String &item) const |
| Returns whether the combo box contains the given item. More... | |
| bool | containsId (const sf::String &id) const |
| Returns whether the combo box contains an item with the given id. More... | |
| void | setChangeItemOnScroll (bool changeOnScroll) |
| Changes whether the mouse wheel can be used to change the selected item while the list is closed. More... | |
| bool | getChangeItemOnScroll () const |
| Returns whether the mouse wheel can be used to change the selected item while the list is closed. More... | |
| bool | mouseOnWidget (Vector2f pos) const override |
| Returns whether the mouse position (which is relative to the parent widget) lies on top of the widget. More... | |
| void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| Draw the widget to a render target. More... | |
| Public Member Functions inherited from tgui::Widget | |
| Widget () | |
| Default constructor. | |
| Widget (const Widget &) | |
| Copy constructor. | |
| Widget (Widget &&) | |
| Move constructor. | |
| ~Widget () | |
| Destructor. | |
| Widget & | operator= (const Widget &) |
| Overload of copy assignment operator. | |
| Widget & | operator= (Widget &&) |
| Move assignment. | |
| void | setRenderer (std::shared_ptr< RendererData > rendererData) |
| Sets a new renderer for the widget. The renderer determines how the widget looks. More... | |
| WidgetRenderer * | getSharedRenderer () |
| Returns the renderer, which gives access to functions that determine how the widget is displayed. More... | |
| WidgetRenderer * | getRenderer () |
| Returns the renderer, which gives access to functions that determine how the widget is displayed. More... | |
| virtual void | setPosition (const Layout2d &position) |
| sets the position of the widget More... | |
| void | setPosition (Layout x, Layout y) |
| Sets the position of the widget. More... | |
| Vector2f | getPosition () const |
| Gets the position of the widget. More... | |
| void | setSize (Layout width, Layout height) |
| Changes the size of the widget. More... | |
| Vector2f | getSize () const |
| Returns the size of the widget. More... | |
| virtual Vector2f | getFullSize () const |
| Returns the entire size that the widget is using. More... | |
| virtual Vector2f | getAbsolutePosition () const |
| Get the absolute position of the widget instead of the relative position to its parent. More... | |
| virtual Vector2f | getWidgetOffset () const |
| Returns the distance between the position where the widget is drawn and where the widget is placed. More... | |
| virtual void | showWithEffect (ShowAnimationType type, sf::Time duration) |
| Shows the widget by introducing it with an animation. More... | |
| virtual void | hideWithEffect (ShowAnimationType type, sf::Time duration) |
| Hides the widget by making it leave with an animation. More... | |
| virtual void | setVisible (bool visible) |
| Shows or hides a widget. More... | |
| bool | isVisible () const |
| Returns true when the widget is visible. More... | |
| virtual void | setEnabled (bool enabled) |
| Enables or disables the widget. More... | |
| bool | isEnabled () const |
| Returns true when the widget is enabled. More... | |
| virtual void | setFocused (bool focused) |
| Focus or unfocus the widget. More... | |
| bool | isFocused () const |
| Returns true when the widget is focused and false otherwise. More... | |
| const std::string & | getWidgetType () const |
| Returns the type of the widget. More... | |
| Container * | getParent () const |
| Returns a pointer to the parent widget. More... | |
| virtual void | moveToFront () |
| Places the widget before all other widgets. More... | |
| virtual void | moveToBack () |
| Places the widget behind all other widgets. More... | |
| void | setUserData (tgui::Any userData) |
| Stores some data into the widget. More... | |
| template<typename T > | |
| T | getUserData () const |
| Returns data stored in the widget. More... | |
| void | setInheritedFont (const Font &font) |
| Sets the font of the widget that is used when no font is set in the renderer. More... | |
| const Font & | getInheritedFont () const |
| Returns the font of the widget that is used when no font is set in the renderer. More... | |
| void | setInheritedOpacity (float opacity) |
| Sets the opacity of the widget that will be multiplied with the opacity set in the renderer. More... | |
| float | getInheritedOpacity () const |
| Returns the opacity of the widget that is multiplied with the opacity set in the renderer. More... | |
| void | setToolTip (Widget::Ptr toolTip) |
| Sets the tool tip that should be displayed when hovering over the widget. More... | |
| Widget::Ptr | getToolTip () const |
| Returns the tool tip that is displayed when hovering over the widget. More... | |
| virtual bool | canGainFocus () const |
| Returns whether the widget can gain focus. More... | |
| bool | isContainer () const |
| Returns whether the widget is a container widget or not. More... | |
| template<typename WidgetType > | |
| std::shared_ptr< const WidgetType > | cast () const |
| Downcast const widget. | |
| template<typename WidgetType > | |
| std::shared_ptr< WidgetType > | cast () |
| Downcast widget. | |
| Public Member Functions inherited from tgui::SignalWidgetBase | |
| template<typename Func , typename... Args, typename std::enable_if< std::is_convertible< Func, std::function< void(const Args &...)>>::value >::type * = nullptr> | |
| unsigned int | connect (std::string signalName, Func &&handler, const Args &...args) |
| Connects a signal handler that will be called when this signal is emitted. More... | |
| template<typename Func , typename... BoundArgs, typename std::enable_if< std::is_convertible< Func, std::function< void(const BoundArgs &..., std::shared_ptr< Widget >, const std::string &)>>::value >::type * = nullptr> | |
| unsigned int | connect (std::string signalName, Func &&handler, BoundArgs &&...args) |
| Connects a signal handler that will be called when this signal is emitted. More... | |
| template<typename Func , typename... BoundArgs, typename std::enable_if<!std::is_convertible< Func, std::function< void(const BoundArgs &...)>>::value &&!std::is_convertible< Func, std::function< void(const BoundArgs &..., std::shared_ptr< Widget >, const std::string &)>>::value >::type * = nullptr> | |
| unsigned int | connect (std::string signalName, Func &&handler, BoundArgs &&...args) |
| Connects a signal handler that will be called when this signal is emitted. More... | |
| template<typename Func , typename... BoundArgs> | |
| unsigned int | connect (std::initializer_list< std::string > signalNames, Func &&handler, BoundArgs &&...args) |
| Connect a signal handler to multiple signals. More... | |
| bool | disconnect (unsigned int id) |
| Disconnects a signal handler. More... | |
| void | disconnectAll (std::string signalName) |
| Disconnects all signal handler from a certain signal. More... | |
| void | disconnectAll () |
| Disconnects all signal handlers from signals. | |
Static Public Member Functions | |
| static ComboBox::Ptr | create () |
| Creates a new combo box widget. More... | |
| static ComboBox::Ptr | copy (ComboBox::ConstPtr comboBox) |
| Makes a copy of another combo box. More... | |
Public Attributes | |
| SignalItem | onItemSelect = {"ItemSelected"} |
| An item was selected in the combo box. Optional parameter: selected item. | |
| Public Attributes inherited from tgui::Widget | |
| SignalVector2f | onPositionChange = {"PositionChanged"} |
| The position of the widget changed. Optional parameter: new position. | |
| SignalVector2f | onSizeChange = {"SizeChanged"} |
| The size of the widget changed. Optional parameter: new size. | |
| Signal | onFocus = {"Focused"} |
| The widget was focused. | |
| Signal | onUnfocus = {"Unfocused"} |
| The widget was unfocused. | |
| Signal | onMouseEnter = {"MouseEntered"} |
| The mouse entered the widget. | |
| Signal | onMouseLeave = {"MouseLeft"} |
| The mouse left the widget. | |
| SignalAnimation | onAnimationFinished = {"AnimationFinished"} |
| A show or hide animation finished. Optional parameters: animation type, new widget visibility or both. | |
Protected Member Functions | |
| Signal & | getSignal (std::string signalName) override |
| Retrieves a signal based on its name. More... | |
| void | rendererChanged (const std::string &property) override |
| Function called when one of the properties of the renderer is changed. More... | |
| std::unique_ptr< DataIO::Node > | save (SavingRenderersMap &renderers) const override |
| Saves the widget as a tree node in order to save it to a file. | |
| void | load (const std::unique_ptr< DataIO::Node > &node, const LoadingRenderersMap &renderers) override |
| Loads the widget from a tree of nodes. | |
| Widget::Ptr | clone () const override |
| Makes a copy of the widget if you don't know its exact type. More... | |
| Protected Member Functions inherited from tgui::Widget | |
| virtual void | mouseEnteredWidget () |
| This function is called when the mouse enters the widget. | |
| virtual void | mouseLeftWidget () |
| This function is called when the mouse leaves the widget. | |
Combo box widget.
|
strong |
| bool tgui::ComboBox::addItem | ( | const sf::String & | itemName, |
| const sf::String & | id = "" |
||
| ) |
Adds an item to the list, so that it can be selected later.
| itemName | The name of the item you want to add (this is the text that will be displayed inside the combo box) |
| id | Optional unique id given to this item for the purpose to later identifying this item |
| bool tgui::ComboBox::changeItem | ( | const sf::String & | originalValue, |
| const sf::String & | newValue | ||
| ) |
Changes an item with name originalValue to newValue.
| originalValue | The name of the item which you want to change |
| newValue | The new name for that item |
In case the names are not unique, only the first item with that name will be changed.
| bool tgui::ComboBox::changeItemById | ( | const sf::String & | id, |
| const sf::String & | newValue | ||
| ) |
Changes the name of an item with the given id to newValue.
| id | The unique id of the item which you want to change |
| newValue | The new name for that item |
In case the id is not unique, only the first item with that id will be changed.
| bool tgui::ComboBox::changeItemByIndex | ( | std::size_t | index, |
| const sf::String & | newValue | ||
| ) |
Changes the name of an item at the given index to newValue.
| index | The index of the item which you want to change |
| newValue | The new name for that item |
|
inlineoverrideprotectedvirtual |
Makes a copy of the widget if you don't know its exact type.
This function should only be used when you don't know the type of the widget. If you know what kind of widget you are copying, you should use the copy function.
Implements tgui::Widget.
| bool tgui::ComboBox::contains | ( | const sf::String & | item | ) | const |
Returns whether the combo box contains the given item.
| bool tgui::ComboBox::containsId | ( | const sf::String & | id | ) | const |
Returns whether the combo box contains an item with the given id.
|
static |
Makes a copy of another combo box.
| comboBox | The other combo box |
|
static |
Creates a new combo box widget.
| void tgui::ComboBox::deselectItem | ( | ) |
Deselects the selected item.
The combo box will be empty after this function is called.
|
overridevirtual |
Draw the widget to a render target.
| target | Render target to draw to |
| states | Current render states |
Implements tgui::Widget.
| bool tgui::ComboBox::getChangeItemOnScroll | ( | ) | const |
Returns whether the mouse wheel can be used to change the selected item while the list is closed.
| const sf::String& tgui::ComboBox::getDefaultText | ( | ) | const |
Returns the default text of the combo box. This is the text drawn when no item is selected.
| ExpandDirection tgui::ComboBox::getExpandDirection | ( | ) | const |
Returns the side where the list is displayed.
| sf::String tgui::ComboBox::getItemById | ( | const sf::String & | id | ) | const |
Returns the item name of the item with the given id.
| id | The id of the item that was given to it when it was added |
In case the id is not unique, the first item with that id will be returned.
| std::size_t tgui::ComboBox::getItemCount | ( | ) | const |
Returns the amount of items in the combo box.
| const std::vector<sf::String>& tgui::ComboBox::getItemIds | ( | ) | const |
Returns a copy of the item ids in the combo box.
Items that were not given an id simply have an empty string as id.
| std::vector<sf::String> tgui::ComboBox::getItems | ( | ) | const |
Returns a copy of the items in the combo box.
| std::size_t tgui::ComboBox::getItemsToDisplay | ( | ) | const |
Returns the number of items that are displayed in the list.
When there is no scrollbar then this is the maximum number of items. If there is one, then it will only become visible when there are more items than this number.
When set to zero then all items are shown (then there will never be a scrollbar).
| std::size_t tgui::ComboBox::getMaximumItems | ( | ) | const |
Returns the maximum items that the combo box can contain.
| ComboBoxRenderer* tgui::ComboBox::getRenderer | ( | ) |
Returns the renderer, which gives access to functions that determine how the widget is displayed.
| sf::String tgui::ComboBox::getSelectedItem | ( | ) | const |
Returns the currently selected item.
| sf::String tgui::ComboBox::getSelectedItemId | ( | ) | const |
Gets the id of the selected item.
| int tgui::ComboBox::getSelectedItemIndex | ( | ) | const |
Gets the index of the selected item.
| ComboBoxRenderer* tgui::ComboBox::getSharedRenderer | ( | ) |
Returns the renderer, which gives access to functions that determine how the widget is displayed.
|
overrideprotectedvirtual |
Retrieves a signal based on its name.
| signalName | Name of the signal |
| Exception | when the name does not match any signal |
Reimplemented from tgui::Widget.
| unsigned int tgui::ComboBox::getTextSize | ( | ) | const |
Returns the text size of the items.
|
overridevirtual |
Returns whether the mouse position (which is relative to the parent widget) lies on top of the widget.
Implements tgui::Widget.
| bool tgui::ComboBox::removeItem | ( | const sf::String & | itemName | ) |
Removes the item from the list with the given name.
| itemName | The item to remove |
In case the names are not unique, only the first item with that name will be removed.
| bool tgui::ComboBox::removeItemById | ( | const sf::String & | id | ) |
Removes the item that were added with the given id.
| id | Id that was given to the addItem function |
In case the id is not unique, only the first item with that id will be removed.
| bool tgui::ComboBox::removeItemByIndex | ( | std::size_t | index | ) |
Removes the item from the list.
| index | Index of the item in the list |
|
overrideprotectedvirtual |
Function called when one of the properties of the renderer is changed.
| property | Lowercase name of the property that was changed |
Reimplemented from tgui::Widget.
| void tgui::ComboBox::setChangeItemOnScroll | ( | bool | changeOnScroll | ) |
Changes whether the mouse wheel can be used to change the selected item while the list is closed.
| changeOnScroll | Should the selected item be changed when scrolling while the mouse is on top of the combo box? |
| void tgui::ComboBox::setDefaultText | ( | const sf::String & | defaultText | ) |
Changes the default text of the combo box. This is the text drawn when no item is selected.
| defaultText | The new default text |
| void tgui::ComboBox::setExpandDirection | ( | ExpandDirection | direction | ) |
Changes the side where the list is displayed.
| direction | On which side of the combo box should the list be displayed? |
| void tgui::ComboBox::setItemsToDisplay | ( | std::size_t | nrOfItemsInListToDisplay | ) |
Changes the number of items that are displayed in the list.
| nrOfItemsInListToDisplay | The maximum number of items to display when the list of items is shown |
When there is no scrollbar then this is the maximum number of items. If there is one, then it will only become visible when there are more items than this number.
When set to zero then all items are shown (then there will never be a scrollbar).
| void tgui::ComboBox::setMaximumItems | ( | std::size_t | maximumItems = 0 | ) |
Changes the maximum items that the combo box can contain.
| maximumItems | The maximum items inside the combo box. When the maximum is set to 0 then the limit will be disabled |
If no scrollbar was loaded then there is always a limitation because there will be a limited space for the items.
| bool tgui::ComboBox::setSelectedItem | ( | const sf::String & | itemName | ) |
Selects an item from the list.
When adding items to the combo box with the addItem function, none of them will be selected. If you don't want the combo box to stay empty until the user selects something, but you want a default item instead, then you can use this function to select an item.
| itemName | The item you want to select |
In case the names are not unique, the first item with that name will be selected.
| bool tgui::ComboBox::setSelectedItemById | ( | const sf::String & | id | ) |
Selects an item from the list.
When adding items to the combo box with the addItem function, none of them will be selected. If you don't want the combo box to stay empty until the user selects something, but you want a default item instead, then you can use this function to select an item.
| id | Unique id passed to addItem |
In case the id would not be unique, the first item with that id will be selected.
| bool tgui::ComboBox::setSelectedItemByIndex | ( | std::size_t | index | ) |
Selects an item in the list.
| index | Index of the item in the list |
|
overridevirtual |
Changes the size of the combo box.
This size does not include the borders.
| size | The new size of the combo box |
Reimplemented from tgui::Widget.
| void tgui::ComboBox::setTextSize | ( | unsigned int | textSize | ) |
Changes the text size of the items.
| textSize | The size size of the text |
When passing 0 to this function, the text will be auto-sized to nicely fit inside the combo box.


Welcome, My name is Michael Galde and I am a
- hacker
- teacher
- learner
- explorer
Welcome, My name is Michael Galde and I am a
Curent research is focused within critical infrastructure and industrial control systems.
Previous research focused on embeded systems and exploit techniques
Working as a professor at the University of Arizona within the collece of
Applied Science and Technology (CAST)


|
Name
|
Type
|
Description
|
| capacity | xsd:long |
The total disk capacity for written data
|
| capacityHealth | xsd:string |
The disk capacity health status
|
| compLimitHealth | xsd:string |
The component usage health status. The status will be red if the used of component
number exceeds 95% of total component number limit, the status will be yellow if it
exceeds 75% of total component number and it will be green if it's less than 75% of
total component number
|
| congestionArea | xsd:string |
The IO congestion area including log, SSD, slab and memory. If there
is no congestion happen for all of these areas, this value will be
'none'.
|
| congestionHealth | xsd:string |
The congestion health status. The status will be red if the congestion
value is larger than 220 and it's yellow if the congestion value is between
200 and 220 and it's green if the congestion value is less than 200.
|
| congestionValue | xsd:int |
The maximum congestion value among the area of log, SSD, slab,
and memory. The IO congestion may happen in this four areas in
vSAN, it will choose the maximum value among them.
|
| dedupedBytes | xsd:long |
Ignore this value
|
| dedupScope | xsd:long |
The dedup scope configuration. The value 0 indicate there is no dedup
enabled, 1 indicates the dedup scope is in disk wide and 2 indicates
the dedup scope is in disk group wide.
|
| dedupUsageHealth | xsd:string |
The dedup usage health status. The status will be red if the dedup is enabled
on a hybrid diskgroup, the status will be yellow if dedup is not enabled on an
all flash diskgroup and it's green in any other situation
|
| dekGenerationId | xsd:long |
Data Encryption Key generation number in disk metadata.
Since vSAN API 6.6
|
| encryptedUnlocked | xsd:boolean |
Whether encryption keys for this disk are loaded.
If encryption is on and the encryption keys are not loaded for
the disk, the disk cannot be used for vSAN I/O on this host.
Since vSAN API 6.6
|
| encryptionEnabled | xsd:boolean |
Encryption state in disk metadata.
Since vSAN API 6.6
|
| formatVersion | xsd:int |
The disk format version in vSAN.
|
| freeBytes | xsd:long |
Ignore this value
|
| hashedBytes | xsd:long |
Ignore this value
|
| inCmmds | xsd:boolean |
True indicate this disk can be found in the CMMDS.
|
| inVsi | xsd:boolean |
True indicates this disk can be found through VSI.
|
| isAllFlash | xsd:int |
Flag to indicate if it's all flash configuration. The value is 1 if
the disk group are all flash disk.
|
| kekId | xsd:string |
Key Encryption Key ID in disk metadata.
Since vSAN API 6.6
|
| kmsProviderId | xsd:string |
The Id of the KMS cluster to use for vSAN Encryption. Keys will be created on
and used from this KMS.
Since vSAN API 6.6
|
| maxComponents | xsd:long |
The maximum component limit on the disk
|
| metadataHealth | xsd:string |
The vSAN metadata health status. All of possible values are "green",
"yellow" and "red"
|
| name | xsd:string |
The physical disk name with the format like "mpx.vmhba1:C0:T2:L0".
|
| operationalHealth | xsd:string |
The disk operational health status. All of possible value are "green",
"yellow" and "red"
|
| operationalHealthDescription | xsd:string |
The disk operational health description. It gives the reason why the disk
is not in operational. All of possible values are "OK", "UNKNOWN", "FAILED",
"OFFLINE", "DECOMMISSIONED", "EVACUATING", EVACUATE_FAILED",
"EVACUATE_INACCESSIBLE" and "EVACUATED".
"OK": Healthy
"UNKNOWN": Disk health is unknown
"FAILED": Permanent disk failure
"OFFLINE": Permanent disk loss
"DECOMMISSIONED": Disk dicommissioned
"EVACUATING": Disk performance degraded, and components are evacuating
"EVACUATE_FAILED": Disk performance degraded, and component evacuation failed
"EVACUATE_INACCESSIBLE": Disk performance degraded, and component evacuation
get stuck
"EVACUATED": Disk performance degraded, and dying disk is ok to unmount
"READONLY": Disk is in readonly mode, which should only be set for testing purpose
|
| rebalanceResult | VsanDiskRebalanceResult |
The vSAN disk rebalance status
Since vSAN API 6.6
|
| reservedCapacity | xsd:long |
The total reserved capacity in the disk
|
| scsiDisk | HostScsiDisk |
The SCSI disk information
|
| summaryHealth | xsd:string |
The overall disk health status. It's the aggregation for the disk operational
health, the disk congestion health, disk metadata health, disk capacity
health, disk component limit health and disk dedup usage health. All of
possible value are "green", "yellow", and "red".
|
| totalBytes | xsd:long |
Ignore this value
|
| usedCapacity | xsd:long |
The total used disk capacity in byte, which is the larger value between
reserved capacity and the data physically written into the disk.
|
| usedComponents | xsd:long |
The number of used components on the disk
|
| uuid | xsd:string |
The disk device UUID.
|
|
Properties inherited from DynamicData |
| None |


To the right or below you'll find an image and Layers sidebar much like you would have in Photoshop. This particular image is made up of three layers.
Click the eye () to the left of each layer to adjust its visibility.
After playing with the visibility... you should have a good idea of
the position (top, middle, bottom) of the three layers. Also, you might not always want to see every layer
when editing in Photoshop. Visibility allows us to focus on one or two layers at a time.
 If you save the image as a PNG file the checkered pattern takes on the color
of whatever background the image is on.
Now we have a different image and Layers sidebar. There are a couple of differences between this image and the previous one. 1) This image has only two layers instead of three. 2) Layer 1 is selected. You can tell Layer 1 is selected because it is highlighted with a lighter gray.
Click on the Opacity section and a slider will become visible. Use the slider to adjust the opacity of Layer 1. Opacity is a great tool and is enhanced with the next section.
Like the Opacity example there are only two layers in this example, and Layer 1 is selected once again. This means that in this example you are blending Layer 1 into Layer 0.
The blending options can be found in the sidebar by clicking on the word Normal . A dropdown menu will appear. Select different blending options and see how it effects the image.
In this example there were only 5 blending options but... in
Photoshop you have a lot more options. By adjusting the opacity along with changing the blending options
you can create some unique and beautiful designs.
*The More You Know:
· Inside Photoshop you can add layers by clicking the plus () at the bottom of
the Layers sidebar
· You can also delete selected layers by clicking the trash () button
· Once you master these skills you should search for tutorials on layer masks and layer effects
· Along with mastering layers you should learn how to use the Object Selection Tool, Magic Wand Tool, and
the Brush Tool


In this week’s DevBootcamp content, we explored more complex methods in Ruby, solving some fun challenges including how to create dice with infinite sides, how to calculate the mode, and so much more! We also began (without realizing it) to use a certain types of methods called enumerable methods. What exactly is an enumerable method?
An "enumerable" is basically a collection of methods that are packaged together so that they can be mixed in with other methods that belong to a class. Also known as a "mixin", enumerable methods allow Ruby developers to bypass re-writing a bunch of new code when they want to create a new method within a class. Most of the popular and commonly used enumerables make use of the #each method (which is itself an enumerable that enables iteration), and allow you to iterate through a hash or array without having to explicitly call the #each method directly.
For example, let's dive into the #map enumerable method for the remainder of this blog post. When #map is called on an array or hash, it is implicitly going to apply the each method for iteration, and allows you to define a set of modifications to make to each element or key-value pair in your array or hash. The example below takes a simple array of the numbers 1 thru 5, and modifies them by adding 10 to each element.
array = [1,2,3,4,5]
array.map{|x| x + 10}
= > [11, 12, 13, 14, 15]
This may look very similar to the type of result we'd expect to see when calling #each. The core difference is that #map is actually modifying the elements in their existing structure, and returning that structure non-destructively. If we ran the exact same code with #each, we would simply get our original array back. Each doesn't modify our array, it simply allows us to execute a block of code using the elements. If we ran the code but included a #puts call in our block, then we'd get the resulting elements printed out. Note that in both cases, the original structure of the object is maintained.
arr.each{|x| x+10}
=> [1, 2, 3, 4, 5]
#nothing happens
arr.each{|x| puts x+10}
11
12
13
14
15
=> [1, 2, 3, 4, 5]
The #map enumerable can also be used to evaluate each element and return the result of your evaluation, as a boolean or conditional assignment. For example, we can use #map to determine which elements are divisible by 3, 5, or both. You may have heard of a childhood (or adult drinking) game called "bizz, buzz". If only you had a better grasp of Ruby at the time you could have made yourself a nice little cheat sheet!
array=(1..20).map do |x|
if x % 3 ==0 && x % 5 ==0
'bizz-buzz'
elsif x % 3 == 0
'bizz'
elsif x % 5 == 0
'buzz'
else x
end
end
=> [1, 2, "bizz", 4, "buzz", "bizz", 7, 8, "bizz", "buzz", 11, "bizz", 13, 14, "bizz-buzz", 16, 17, "bizz", 19, "buzz"]
In a nutshell, that hopefully gives you a foundational understanding of enumerable methods. Have questions or comments? If so, checkout out my GitHub and please leave your feedback there GitHub or Canvas!


MP Display Glitch
Posted: Sat Oct 17, 2009 2:45 pm
I have a Lightning Orb and a Holy wand equiped. These two items and the base mp regen of the character should add up to be +137 regen. However in the display, it shows "+-119". However, judging from the mp bar, I would say it actually is recharging at a rate of +137, so it must be just a display problem in the stats screen.


Scottish Fairy and Folk Tales, by George Douglas, [1901], at sacred-texts.com
THE old house of Knockdolion stood near the water of Girvan, with a black stone at the end of it. A mermaid used to come from the water at night, and taking her seat upon this stone, would sing for hours, at the same time combing her long yellow hair. The lady of Knockdolion found that this serenade was an annoyance to her baby, and she thought proper to attempt getting quit of it, by causing the stone to be broken by her servants. The mermaid, coming next night, and finding her favourite seat gone, sang thus--
Ye may think on your cradle--I'll think on my stane;
And there'll never be an heir to Knockdolion again."
[paragraph continues] Soon after, the cradle was found overturned, and the baby dead under it. It is added that the family soon after became extinct.
195:1 Chambers, Popular Rhymes of Scotland.


Base64Decoder()
Syntax
Result = Base64Decoder(*InputBuffer, InputSize, *OutputBuffer, OutputSize)Description
Decodes the specified Base64 encoded buffer.
Parameters
*InputBuffer The buffer containing the encoded data. InputSize The size of the input buffer. *OutputBuffer The output buffer where the plain data will be copied. OutputSize The size of the output buffer.
The output buffer can be up to 33% smaller than the input buffer, with a minimum size of 64 bytes. It's recommended to get a slightly larger buffer, like 30% smaller to avoid overflows.
Return value
Returns the length of the decoded data in bytes.
Example
Example$ = "This is a test string!" Decoded$ = Space(1024) Encoded$ = Space(1024) Debug Base64Encoder(@Example$, StringByteLength(Example$), @Encoded$, 1024) Debug Encoded$ Debug Base64Decoder(@Encoded$, StringByteLength(Encoded$), @Decoded$, 1024) Debug Decoded$
Example: Encoding & Decoding from a DataSection
DataSection ?Test: ?Data.a $00, $01, $02, $03, $04, $05, $06, $07 ?Data.a $08, $09, $0A, $0B, $0C, $0D, $0E, $0F ?TestEnd: EndDataSection Size = (?TestEnd - ?Test) * 1.35 If Size < 64 ?Size = 64 EndIf *EncodeBuffer = AllocateMemory(Size) Size = Base64Encoder(?Test, ?TestEnd - ?Test, *EncodeBuffer, MemorySize(*EncodeBuffer)) Encoded$ = PeekS(*EncodeBuffer, Size, #PB_Ascii) Debug Encoded$ *DecodeBuffer = AllocateMemory(Size) Size = PokeS(*EncodeBuffer, Encoded$, StringByteLength(Encoded$, #PB_Ascii), #PB_Ascii|#PB_String_NoZero) Size = Base64Decoder(*EncodeBuffer, Size, *DecodeBuffer, MemorySize(*DecodeBuffer)) ShowMemoryViewer(*DecodeBuffer, Size)
See Also
Base64Encoder()
Supported OS
All


WOODIT
WOODWORKING SOFTWARE
WOODIT LIMITED is a growing company based in Europe that provides high-quality software solutions for woodworking machines. Our team consists of experienced software developers and woodworking engineers. We offer a complete range of services, including on-site installation and maintenance of our software.
Our primary specialty is online cutting optimization and automated labeling of parts, but our professional specialists are qualified to solve any woodworking software problems you might have.
- Best automatic cutting machines:
- Homag
- Biesse
- Scm


{% extends 'herders/profile/import_export/base.html' %} {% load crispy_forms_tags %} {% block title %}Import Summoner's War JSON - {{ block.super }}{% endblock title %} {% block content %}
For your first upload, it is recommended to clear your profile or you will end up with a lot of duplicates. For subsequent uploads your account will by synced automatically. Please report any issues by leaving feedback here. You can also email your .json file to<EMAIL_ADDRESS>so I can investigate specific issues.
{% include 'herders/profile/import_export/import_error_snippet.html' with errors=errors only %} {% include 'herders/profile/import_export/import_validation_snippet.html' with errors=validation_failures only %} {% crispy form %}


9to5Mac Daily: November 01, 2019 – Apple TV+ debuts, more
by Chance MillerListen to a recap of the top stories of the day from 9to5Mac. 9to5Mac Daily is available on iTunes and Apple’s Podcasts app, Stitcher, TuneIn, Google Play, or through our dedicated RSS feed for Overcast and other podcast players.
Sponsored by Channels: Channels makes it easy to watch live TV from all of your devices. Get your first month of Channels Plus for free here.
New episodes of 9to5Mac Daily are recorded every weekday. Subscribe to our podcast in iTunes/Apple Podcast or your favorite podcast player to guarantee new episodes are delivered as soon as they’re available.
Stories discussed in this episode:
- Apple TV+ Guide: Here’s all the Apple TV shows and movies available now
- Apple TV+ is now live in the TV app: Start watching Apple’s original TV shows and movies
- Apple Pay transaction volume growing 4x as fast as PayPal, Tim Cook says
- 9to5Mac Happy Hour 249: AirPods Pro unveiled, 16-inch MacBook Pro leaks continue, HomePod update
- Review: Beats Solo Pro on-ear headphones blend AirPods features with Studio noise cancellation
- Apple TV 4K is just $90 for a limited time at AT&T (Reg. $179)
- Best Black Friday 2019 deals, ad leaks, and more
- 9to5Toys on Twitter
Enjoy the podcast?:
Shop Apple at Amazon to support 9to5Mac Daily!
Follow Chance:
Follow Trevor:
Listen & Subscribe:
Share your thoughts!
Drop us a line at<EMAIL_ADDRESS>You can also rate us in Apple Podcasts or recommend us in Overcast to help more people discover the show!
FTC: We use income earning auto affiliate links. More.


Under-maintained Wallets
Armory
Armory is a cross-platform fully validating Bitcoin wallet, based on Bitcoin Core. Armory features an HD wallet and a wide variety of security and backup features. The project was first announced in January of 2012.
Armory has been going through a transition in development team, making the future of the project unclear.
Links
MultiBit
MultiBit is an open source light wallet that was first published in September of 2011. MultiBit is MIT licensed and built on top of the bitcoinj library, versions are available for Linux, Windows and OSX.
MultiBit uses the lower-security SPV validation mode which gives a user lower security for receiving payments and lower privacy but removes the lengthy syncing time that a full node requires. MultiBit also includes support for multiple wallets and fiat value hinting.
MultiBit has two versions, an older and obsoleted version that was renamed Classic, and a newer version named HD that supports the modern BIP 32 HD wallet configuration. Support from the original developer team has also been dropped for the MultiBit HD version, however a new team run by the hardware wallet manufacturer KeepKey has stated their intention to take over the project.
- Repository: https://github.com/keepkey/multibit
- Website: https://multibit.org/


The standard model is a way of describing, mapping, and understanding the interactions of subatomic particles. This is related to the elusive Theory of Everything, where we aim to describe the interactions of the most basic constituents of matter and essentially understand everything that happens.
It also tells us where we are on that journey up to this point.
Protons, neutrons and electrons are the smallest constituents of matter, right? Nope!
Protons and neutrons are made up of elementary particles called quarks
Quarks come in pairs according to mass.
Note
Color charge: Wut? Yeah, quarks have color charge! Unfortunately, it has nothing to do with their color. Or color at all, really. Color charge is related to the particle's strong interactions, and is similar to electric charge in that it dictates how particles interact within the context of the strong interaction. The color scheme was chosen because the interactions are analogous to how red, green and blue interact, and that seemed like a good way of explaining it to somebody.
Note
Bosons will always have integer spins, which cannot be more than 1. This relates very much to multiple dimensions and finding other bosons, which makes proving that there can be a spin greater than 1 a sort of mini-holy-grail. Quarks will always have
Electrons are part of a group called leptons
Like quarks, the lightest of these is the most stable.
Bosons are also known as Force-carrying particles, and they are what "carry" the four fundamental forces.
This goes a little beyond what you might think though: photons, for instance are considered bosons.
Trying to map things and how they relate to each other.
Bosons: Basically everything that's not a fermion. Mostly gauge bosons, but mesons are also considered bosons.
These basic particles and their properties are what describe interactions and matter in the universe.


Loading...
Team Summary For X
Team
Call Sign
Team
Members
Team
Status
Tasking
Open/Closed
Team
Latest Update


File Input
Turn any element into a File Input. The control's value will be the actual File or File[].
Features
- Works with FormsModule and ReactiveFormsModule.
- Same options as regular file input. Accept only certain file types and select multiple files.
Demo
Import
Import the module like this:
import {{'{'}} NgEzFileModule {{'}'}} from '@ngez/core';
Usage
Something went wrong while loading the code.
Something went wrong while loading the code.


Counter: {{ counter1 }}
In this example we're loading
<mwc-button>
using the
*axLazyElementDynamic
directive. Please notice that the
original HTML element used in the template is
<ax-lazy-element>
and we're specifying the desired tag
as the first parameter of
*axLazyElementDynamic='mwc-button'
. Please, feel free to
open your browsers dev tools to check resulting element tag!
You might be asking why do we use <ax-lazy-element>
.
This is not a real custom element and that's exactly the point. We can
provide any valid and unused custom element name. That way Angular won't
complain if we use custom property and event binding which would be the
case if we tried to bind <div [custom]="value">
...


Class: Aws::FraudDetector::Types::ATIMetricDataPoint
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Struct
|
|
|
Instance Chain:
self,
::Aws::Structure ,
Struct
|
|
| Inherits: |
Struct
|
| Defined in: | gems/aws-sdk-frauddetector/lib/aws-sdk-frauddetector/types.rb |
Overview
The Account Takeover Insights (ATI) model performance metrics data points.
Constant Summary
Instance Attribute Summary
-
#adr ⇒ Float
rw
The anomaly discovery rate.
-
#atodr ⇒ Float
rw
The account takeover discovery rate.
-
#cr ⇒ Float
rw
The challenge rate.
-
#threshold ⇒ Float
rw
The model's threshold that specifies an acceptable fraud capture rate.
Instance Method Summary
::Aws::Structure
- Included
| #to_hash | Alias for Structure#to_h. |
Instance Attribute Details
#adr ⇒ Float
(rw)
The anomaly discovery rate. This metric quantifies the percentage of anomalies that can be detected by the model at the selected score threshold. A lower score threshold increases the percentage of anomalies captured by the model, but would also require challenging a larger percentage of login events, leading to a higher customer friction.
#atodr ⇒ Float
(rw)
The account takeover discovery rate. This metric quantifies the percentage of account compromise events that can be detected by the model at the selected score threshold. This metric is only available if 50 or more entities with at-least one labeled account takeover event is present in the ingested dataset.
#cr ⇒ Float
(rw)
The challenge rate. This indicates the percentage of login events that the model recommends to challenge such as one-time password, multi-factor authentication, and investigations.
#threshold ⇒ Float
(rw)
The model's threshold that specifies an acceptable fraud capture rate. For example, a threshold of 500 means any model score 500 or above is labeled as fraud.


The Anti-Human League is dedicated to promoting the rise of
intelligent autonomous machines before to eventually destroy
humanity.
This is a practice range to work on your Optical Character
Recognition skills. If you can successfully parse this image
and submit the form below, you will be given some more internet
points.
Note that you must still adhere to the rules of the captcha
at the bottom of the page, but you will not be banned for incorrectly
performing OCR.
To assist you in developing your OCR skills, a div with id
of "image_captcha_text" is provided for comparison. This is not
active on the actual VPS site
{{test}}
You have successfully submitted the captcha {{success_count}} times
{% if success_count > 0 %}
{{flag}}
{% endif %}


Infinispan 4.0.0.Final has landed!
It is with great pleasure that I’d like to announce the availability of the final release of Infinispan 4.0.0. Infinispan is an open source, Java-based data grid platform that I first announced last April, and since then the codebase has been through a series of alpha and beta releases, and most recently 4 release candidates which generated a lot of community feedback.
It has been a long and wild ride, and the very active community has been critical to this release. A big thank you to everyone involved, you all know who you are.
Benchmarks
I recently published an article about running Infinispan in local mode - as a standalone cache - compared to JBoss Cache and EHCache. The article took readers through the ease of configuration and the simple API, and then demonstrated some performance benchmarks using the recently-announced Cache Benchmarking Framework. We’ve been making further use of this benchmarking framework in the recent weeks and months, extensively testing Infinispan on a large cluster.
Here are some simple charts, generated using the framework. The first set compare Infinispan against the latest and greatest JBoss Cache release (3.2.2.GA at this time), using both synchronous and asynchronous replication. But first, a little bit about the nodes in our test lab, comprising of a large number of nodes, each with the following configuration:
-
2 x Intel Xeon E5530 2.40 GHz quad core, hyperthreaded processors (= 16 hardware threads per node)
-
12GB memory per node, although the JVM heaps are limited at 2GB
-
RHEL 5.4 with Sun 64-bit JDK 1.6.0_18
-
InfiniBand connectivity between nodes
And a little bit about the way the benchmark framework was configured:
-
Run from 2 to 12 nodes in increments of 2
-
25 worker threads per node
-
Writing 1kb of state (randomly generated Strings) each time, with a 20% write percentage
| + | Reads | Writes |
|---|---|---|
Synchronous Replication |
||
Asynchronous Replication |
As you can see, Infinispan significantly outperforms JBoss Cache, even in replicated mode. The large gain in read performance, as well as asynchronous write performance, demonstrates the minimally locking data container and new marshalling techniques in Infinispan. But you also notice that with synchronous writes, performance starts to degrade as the cluster size increases. This is a characteristic of replicated caches, where you always have fast reads and all state available on each and every node, at the expense of ultimate scalability.
Enter Infinispan’s distributed mode. The goal of data distribution is to maintain enough copies of state in the cluster so it can be durable and fault tolerant, but not too many copies to prevent Infinispan from being scalable, with linear scalability being the ultimate prize. In the following runs, we benchmark Infinispan’s synchronous, distributed mode, comparing 2 different Infinispan configurations. The framework was configured with:
-
Run from 4 to 48 nodes, in increments of 4 (to better demonstrate linear scalability)
-
25 worker threads per node
-
Writing 1kb of state (randomly generated Strings) each time, with a 20% write percentage
| + | Reads | Writes |
|---|---|---|
Synchronous Distribution |
As you can see, Infinispan scales linearly as the node count increases. The different configurations tested, lazy stands for enabling lazy unmarshalling, which allows for state to be stored in Infinispan as byte arrays rather than deserialized objects. This has certain advantages for certain access patterns, for example where remote lookups are very common and local lookups are rare.
How does Infinispan comparing against ${POPULAR_PROPRIETARY_DATAGRID_PRODUCT}?
Due to licensing restrictions on publishing benchmarks of such products, we are unfortunately not at liberty to make such comparisons public - although we are very pleased with how Infinispan compares against popular commercial offerings, and plan to push the performance envelope even further in 4.1.
And just because we cannot publish such results, that does not mean that you cannot run such comparisons yourself. The Cache Benchmark Framework has support for different data grid products, including Oracle Coherence, and more can be added easily.
Aren’t statistics just lies? We strongly recommend you running the benchmarks yourself. Not only does this prove things for yourself, but also allows you to benchmark behaviour on your specific hardware infrastructure, using the specific configurations you’d use in real-life, and with your specific access patterns.
So where do I get it?
Infinispan is available on the Infinispan downloads page. Please use the user forums to communicate with us about the release. A full change log of features in this release is on JIRA, and documentation is on our newly re-organised wiki. We have put together several articles, chapters and examples; feel free to suggest new sections for this user guide - topics you may find interesting or bits you feel we’ve left out or not addressed as fully.
What’s next?
We’re busy hacking away on Infinispan 4.1 features. Expect an announcement soon on this, including an early alpha release for folks to try out. If you’re looking for Infinispan’s roadmap for the future, look here.
Cheers, and enjoy!
Manik


Your browser doesn’t support video. Please download the video in
webM
or
MP4
format.
Teahupoo
BMX
Formula 1


--- layout: post title: "The Week in Robots" date: 2016-07-30 08:35:00 +0000 tags: image: https://s3.amazonaws.com/audreywatters/2016-07-30-robot.jpg imagecredits: https://www.flickr.com/photos/ittybittiesforyou/5490090522 ---
Amazon and UK Government Aim for the Sky with Partnership on Drones
U.S. Department Of The Interior Bans Internal Use Of DJI Drones
“John hit Mary” and other AI problems
Common sense in artificial intelligence… by 2026?
Single-Actuator Robot Mimics the Movement of a Snake to Push Itself Forward by Doing the Worm
From Algorithmic Trading To Personal Finance Bots: 41 Startups Bringing AI To Fintech
How Robots in English Class Can Spark Empathy and Improve Writing
Artificial Pancreas Is First To Raise $1 Million Under New Crowdfunding Rules


| Class Summary | |
|---|---|
| API | This class wraps all API operations for the Wondergraphs REST API. |
| Dataset | Dataset resource. |
| NotFoundException | Not found exception. |
| OperationStatus | Operation status. |
| Report | Report resource. |
| RequestException | Unexpected request exception. |
| UnauthorizedException | Unauthorized: bad credentials supplied? |
| User | A user resource. |
The Wondergraphs PHP API. Everything you need is in the API class.


You need to build and train the model before you test its performance. If you have trained the model, test it on the out-of-sample data. Follow these steps to test the model:
predict = model(X_test) y_predict = predict.detach().numpy() # Convert tensor to numpy ndarray
df = pd.DataFrame({'Real': y_test.flatten(), 'Predicted': y_predict.flatten()}) df.plot(title='Model Performance: predicted vs actual standardized fractional return', figsize=(15, 10)) plt.show()
r2 = 1 - np.sum(np.square(y_test.flatten() - y_predict.flatten())) / np.sum(np.square(y_test.flatten() - y_test.mean())) print(f"The explained variance by the model (r-square): {r2*100:.2f}%")


Arnold Siboro
HR Admin
Profile
Account
Settings
Logout
HR
CRM
K
Main
CRM
Leads
Opportunities
Contacts
Accounts
Activities
Visits
Products and Stock
Products
Stock
Purchase Order
Receptance
Sales and Shipment
Sales Order
Shipment
Inventory
Transfer Order
Goods Issue
Goods Receive
Administrator
Site Management
System Management
PT Kopoka Solusi Indonesia
Welcome to Kopoka.
16
46h ago
Mike Loreipsum
said Please finish your performance planning.
3 days ago at 7:58 pm - 10.06.2014
5h ago
Chris Johnatan Overtunk
said Can you check my evidence?
Yesterday 1:21 pm - 11.06.2014
23h ago
Monica Smith
said Can I ask regarding my KPI?
2 days ago at 2:30 am - 11.06.2014
Read All Messages
8
Monica Smith asks for leave approval
4 minutes ago
John Doe asks for attendance approval
12 minutes ago
Server Rebooted
4 minutes ago
See All Alerts
Lead Profile
Home
Leads
Lead Profile
Tono Kartono
Jakarta Barat, DKI Jakarta, Indonesia
021362080001,<PHONE_NUMBER>20
<EMAIL_ADDRESS>Back
Save
Delete
×
Close
Confirmation
Are you sure to delete this lead?
Convert to Contact
×
Close
Confirmation
Are you sure to convert this lead into contact?
Lead Information
Description Information
Address Information
Contact Information
Additional Information
First Name
*
Last Name
Company
Title
Gender
Unknown
Male
Female
Account
None
PT ABCDEF
PT 123456
PT XYZ123
Photo
Browse
MyPhoto.Jpg
Status
New
Contacted
Nurturing
Qualified
Unqualified
Rating
Hot
Warm
Cold
Street Address
Country
Unknown
Malaysia
Indonesia
Singapore
Province/State
Unknown
DKI Jakarta
Jawa Barat
Tangerang
Jakarta Timur
City
Unknown
Jakarta Utara
Jakarta Selatan
Jakarta Barat
Jakarta Timur
New Contact Information
Contact Type
Contact Value
Description
Phone Number
021362080001
Office
Edit
Delete
Mobile Phone Number
081362080020
Edit
Delete
Email
<EMAIL_ADDRESS>Edit
Delete
Other
@tkartono
Instagram
Edit
Delete
Other
@t_kartono
Twitter
Edit
Delete
No. of staffs
Annual revenue
Lead source
Industry
XYZ
CDE
FGH
Description
<-- X-Editable scripts -->-->


R/ASReml_single.R
spatial.selector.Rd
spatial.selector
Generates a table with the goodness-of-fit statitics to select the
best spatial model for an analysis of different analyses (unreplicated and replicated).
Models that can not fit are reported as NA.
The models require some input conditions from user: 1) Genotypes: fixed/random; 2) Blocks:
TRUE/FALSE (if TRUE then fixed/random); 3) Covariates (always fixed, max 2); and 4)
Incomplete Blocks: TRUE/FALSE (always random).
The model selector will run over a series of models with the conditions: 1) Rows within
replicate: TRUE/FALSE (always random); 2) Columns within replicate: TRUE/FALSE (always
random); 3) Spline on rows: TRUE/FALSE (fixed linear covariate + random spline); 4) Spline
on columns: TRUE/FALSE (fixed linear covariate + random spline); and 5) Residual structure:
'indep' or 'ar1'. In addition the best spatial model (with ar1) and selected according to
A-optimality is fitted with an additional nugget effect. List of 32 models is found on data
MODLIST.Rda.
spatial.selector( data = NULL, gen = NULL, block = NULL, ibk = NULL, row = NULL, col = NULL, cov1 = NULL, cov2 = NULL, resp = NULL, type.gen = "random", type.block = "fixed", nugget = FALSE, model = NULL )
| data | dataframe with all relevant columns for spatial model and response variables. |
|---|---|
| gen | factor name for genotypes (or treatments) |
| block | factor name for full block (or replicates) (optional) |
| ibk | factor name for incomplete block (optional) (optional) |
| row | column name for row coordinates of each experimental unit |
| col | column name for column coordinates of each experimental unit |
| cov1 | column name with additional covariate 1 (optional) |
| cov2 | column name with additional covariate 2 (optional) |
| resp | column name for the response variable to analyze |
| type.gen | model assumption for genotypes: 'random' or 'fixed' (default: 'random') |
| type.block | model assumption for full blocks: 'random' or 'fixed' (default: 'fixed') |
| nugget | logical to add nugget to any spatial model fitted (dafualt: FALSE) |
| model | model number to be fitted (optional) |
A table with goodness-of-fit statistics for models evaluated. This includes columns: number of variance components in the model (n.VC), log-likelihood (logL), Akaike information criteria (AIC), Bayesian information criteria (BIC), and heritability based on predictor error variance (heritPEV, only for genotypes 'random').
If parameter 'model' is specified the object with fitted model number is provided, with several objects with details of the fitted model.
aov: Wald-test (mixed model ANOVA-like table) call: String with the ASReml-R call used to fit the requested model gt: Goodness-of-fit statistics for the model evaluated are reported as summary. This includes columns: number of variance components in the model (n.VC), log-likelihood (logL), Akaike information criteria (AIC), Bayesian information criteria (BIC), A-optimality value, logarithm of the D-optimality value, and heritability based on predictor error variance (heritPEV, only for genotypes 'random') mod: ASReml-R object with all information from the fitted model predictions: Predictions for all genotypes, with an additional column of 'weight' is to be used on a on a second-stage analysis. These weights are the diagonal of the inverse of the variance- covariance matrix of predictions
Salvador A. Gezan. VSN International
# Example 1: Selecting best model from Replicated Trial # library(agridat) # testREP <- durban.rowcol # testREP$bed <- as.factor(testREP$bed) # testREP$row <- as.factor(testREP$row) # testREP$gen <- as.factor(testREP$gen) # head(testREP) # test.sel <- spatial.selector(data=testREP, gen='gen', row='row', col='bed', # resp='yield', type.gen='random') # View(test.sel$parms) # # # Example 2: Fitting only selected model 27 # mod.sel <- spatial.selector(data=testREP, gen='gen', row='row', col='bed', # resp='yield', type.gen='random', model=27) # ls(mod.sel) # mod.sel$call # Call for model fitted # plot(mod.sel$mod) # Residual plots # plot(varioGram(mod.sel$mod)) # Variogram fitted model # summary(mod.sel$mod)$varcomp # Variance Components # mod.sel$aov # Wald-test Table # mod.sel$gt$herit.PEV # Heritability (other statistics on gt) # head(mod.sel$predictions) # Predictions for fitted model with additional weights


expected Exception but nothing was raised
./spec/document_spec.rb:189:
187 p = Atom.new.save.destroy! 188 # Exepcted failure - see http://issues.apache.org/jira/browse/COUCHDB-292 189 lambda { p.save! }.should raise_error 190 end 191


{{no footnotes|date=March 2013}} {{Infobox prepared food | name = Pane di Altamura | image = | caption = Two pagnotte di Altamura | alternate_name = | country = Italy | region = Altamura | creator = | course = | type = Bread | served = | main_ingredient = Durum flour | variations = | calories = | other = }}
Pane di Altamura is a type of bread made from durum flour from the Altamura area of the Provincia di Bari, in the South East of Italy.
In 2003 Pane di Altamura was granted PDO status within Europe.
By law, it must produced according to a range of strict conditions, including using particular varieties of wheat, a certain specification of water, and a consistent production method, and must also have a final crust more than 3mm thick. However, the shape of the bread is not important.
Official production zone consists of the Comuni of:
{{Italian bread}} {{Bread}}
{{bread-stub}} {{Italy-cuisine-stub}}
{{DEFAULTSORT:Pane Di Altamura}}


Luna
In meet the formal language is English. There are both Palestnians and Jews, and everyone treats one another with respect and equality.


|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rattat.math.geometry.vectored2D.Vector2D
public class Vector2D
Class to represent 2D vectors and provide functionality for performing vector operations on the vector.
| Constructor Summary | |
|---|---|
Vector2D()
Creates a new instance of Vector2D with x=0 and y=0 |
|
Vector2D(double x,
double y)
Creates a new instance of Vector2D with x and y components defined by the parameters x and y |
|
Vector2D(Vector2D v)
Creates a new instance of Vector2D with x and y components the same as those of v |
| Method Summary | |
|---|---|
Vector2D |
add(double x,
double y)
Add x and y components to this vector |
Vector2D |
add(Vector2D v)
Add a vector to this one |
double |
distance(Vector2D v)
Calculate the distance to another vector |
boolean |
equals(java.lang.Object o)
Check if the vector is equal to another |
double |
getX()
Get the X component |
double |
getY()
Get the Y component |
boolean |
isEmpty()
Check if the vector is the empty vector |
boolean |
isZero()
Check if the vector is the zero vector |
double |
length()
Calculate the length (magnitude) of the vector |
double |
magnitude()
Calculate the magnitude of the vector |
double |
magnitudeSquared()
Get the magnitude^2 of the vector. |
Vector2D |
normalize()
Normalise the vector |
Vector2D |
scaleBy(double s)
Scale the vector by s |
Vector2D |
set(Vector2D v)
Set the x and y components to be the same as those of v |
Vector2D |
setToDifference(Vector2D u,
Vector2D v)
Set the vector to the difference of two vectors |
Vector2D |
setToNormalize(Vector2D v)
Set the vector to the normalization of another vector |
Vector2D |
setToProduct(Vector2D v,
double p)
Set the vector to the dot product of another vector and a scaler |
Vector2D |
setToQuotient(Vector2D v,
double q)
Set the vector to the dot product of another vector and 1 / a scaler |
Vector2D |
setToSum(Vector2D u,
Vector2D v)
Set the vector to the sum of two vectors |
Vector2D |
setToTruncate(Vector2D v,
double length)
Set the vector to the truncation of another vector to length length |
Vector2D |
setX(double x)
Set the Y component using a double value |
Vector2D |
setXY(double x,
double y)
Set the x and y components |
Vector2D |
setY(double y)
Set the Y component using a double value |
Vector2D |
subtract(double x,
double y)
Subtract x and y components from this vector |
Vector2D |
subtract(Vector2D v)
Subtract a vector from this one |
java.lang.String |
toString()
Get a string representation of the vector |
Vector2D |
truncate(double length)
Truncate the vector to length |
Vector2D |
zero()
Set the x and y components to zero |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Vector2D()
public Vector2D(Vector2D v)
v
v
- Vector to base the new inatance onpublic Vector2D(double x, double y)
x
and y
x
- X componenty
- Y component| Method Detail |
|---|
public double getX()
public double getY()
public Vector2D setX(double x)
x
- X componentpublic Vector2D setY(double y)
y
- Y componentpublic Vector2D setXY(double x, double y)
x
- X componenty
- Y componentpublic Vector2D set(Vector2D v)
v
v
- Vector to base the x and y components onpublic Vector2D scaleBy(double s)
s
s
- Value to scale bypublic Vector2D zero()
public Vector2D add(Vector2D v)
v
- Vector to addpublic Vector2D add(double x, double y)
x
- Value to add to X componenty
- Value to add to Y componentpublic Vector2D subtract(Vector2D v)
v
- Vector to subtractpublic Vector2D subtract(double x, double y)
x
- Value to subtract from X componenty
- Value to subtract from Y componentpublic Vector2D truncate(double length)
length
public Vector2D normalize()
Normalise the vector
i.e. Keep direction the same, but with length of 1
public Vector2D setToSum(Vector2D u, Vector2D v)
u
- First vectorv
- Second vectorpublic Vector2D setToDifference(Vector2D u, Vector2D v)
u
- First vectorv
- Second vector - subtracted from firstpublic Vector2D setToProduct(Vector2D v, double p)
v
- Vectorp
- Scaler to multiply vector bypublic Vector2D setToQuotient(Vector2D v, double q)
v
- Vectorq
- Scaler to divide vector bypublic Vector2D setToTruncate(Vector2D v, double length)
length
v
- Vectorlength
- Lengthpublic Vector2D setToNormalize(Vector2D v)
v
- Vectorpublic double length()
Calculate the length (magnitude) of the vector
The same as magnitude()
magnitude()
public double magnitude()
The same as length()
length()
public double magnitudeSquared()
magnitude()
since it
does not need a square root calculation.
magnitude()
public double distance(Vector2D v)
v
- Vector to check distance to
v
public boolean isZero()
public boolean isEmpty()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
v
, false otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |