|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joone.engine.SpatialMap
SpatialMap is intended to be an abstract spatial map for use with a GaussianLayer. Custom SpatialMap's need to extend the ApplyNeighborhood method and implement it based on their own spatial shape implementation. The Gaussian spatial size is updated if the current epoch is less than the ordering phase, it is also reduced over the ordering phase based on the time constant.
| Field Summary | |
(package private) double |
TimeConstant
|
| Constructor Summary | |
SpatialMap()
|
| Method Summary | |
abstract void |
ApplyNeighborhoodFunction(double[] distances,
double[] n_outs,
boolean isLearning)
Applies the neighborhood strategy based on this spatial maps implementation. |
protected double |
distanceBetween(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
Calculates the squared distance between vector (x1,y1,z1) and (x2,y2,z2) and returns the result. |
protected void |
extractWinner(double[] distances)
Extracts the X,Y,Z co-ordinates of the winning neuron in this spatial map. |
double |
getCurrentGaussianSize()
Gets the current gaussian size of the spatial neighborhood. |
double |
getInitialGaussianSize()
Gets the size of the spatial neighborhood. |
int |
getMapDepth()
Gets the depth of this spatial map. |
int |
getMapHeight()
Gets the height of this spatial map. |
int |
getMapWidth()
Gets the width of this spatial map. |
int |
getOrderingPhase()
Getter for property orderingPhase. |
double |
getTimeConstant()
Getter for property TimeConstant. |
int |
getTotalEpochs()
Gets the total number of epochs for the current session. |
protected int |
getWinnerX()
Returns the X Co-ordinate of the current winning neuron. |
protected int |
getWinnerY()
Returns the Y Co-ordinate of the current winning neuron. |
protected int |
getWinnerZ()
Returns the Z Co-ordinate of the current winning neuron. |
void |
init(int total_epochs)
Initialises this spatial map according to the total number of epochs/cycles. |
void |
setCurrentGaussianSize(double size)
Sets the current guassian size of the spatial neighborhood. |
void |
setInitialGaussianSize(double size)
Sets the initial guassian size of the spatial neighborhood. |
void |
setMapDepth(int d)
Sets the depth of this spatial map. |
void |
setMapDimensions(int x,
int y,
int z)
Sets the dimensions of the spatial map. |
void |
setMapHeight(int h)
Sets the height of this spatial map. |
void |
setMapWidth(int w)
Sets the width of this spatial map. |
void |
setOrderingPhase(int orderingPhase)
Setter for property orderingPhase. |
void |
setTimeConstant(double TimeConstant)
Setter for property TimeConstant. |
void |
updateCurrentGaussianSize(int current_epoch)
Updates the current Gaussian Size depending on the current epoch and the time constant. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
double TimeConstant
| Constructor Detail |
public SpatialMap()
| Method Detail |
public final void init(int total_epochs)
Initialises this spatial map according to the total number of epochs/cycles.
total_epochs
- The total number of epochs that will be used.public final int getTotalEpochs()
Gets the total number of epochs for the current session.
public final void setInitialGaussianSize(double size)
Sets the initial guassian size of the spatial neighborhood.
size
- The size of the neighborhood.public final double getInitialGaussianSize()
Gets the size of the spatial neighborhood.
public final void setCurrentGaussianSize(double size)
Sets the current guassian size of the spatial neighborhood.
size
- The current guassian size of the spatial neighborhood.public final double getCurrentGaussianSize()
Gets the current gaussian size of the spatial neighborhood.
public final void updateCurrentGaussianSize(int current_epoch)
Updates the current Gaussian Size depending on the current epoch and the time constant.
current_epoch
- The current epoch or cycle.public abstract void ApplyNeighborhoodFunction(double[] distances, double[] n_outs, boolean isLearning)
Applies the neighborhood strategy based on this spatial maps implementation.
distances
- The euclidean distances between input and weights calculated by previous
synapse.n_outs
- The outputs of this spatial maps neighborhood strategy.isLearning
- Is the network in the learning phase.protected final void extractWinner(double[] distances)
distances
- The distances between the input and weights vector, this should be passed in by the
previous synapse.protected final int getWinnerX()
Returns the X Co-ordinate of the current winning neuron.
protected final int getWinnerY()
Returns the Y Co-ordinate of the current winning neuron.
protected final int getWinnerZ()
Returns the Z Co-ordinate of the current winning neuron.
public final void setMapDimensions(int x, int y, int z)
Sets the dimensions of the spatial map. Allows dimension setting in one call.
x
- The x size or width of the map.y
- The y size or height of the map.z
- The z size of depth of the map.public final void setMapWidth(int w)
w
- The width or x size of the map.public final void setMapHeight(int h)
h
- The height or y size of the map.public final void setMapDepth(int d)
d
- The depth or z size of the map.public final int getMapWidth()
Gets the width of this spatial map.
public final int getMapHeight()
Gets the height of this spatial map.
public final int getMapDepth()
Gets the depth of this spatial map.
protected final double distanceBetween(int x1, int y1, int z1, int x2, int y2, int z2)
Calculates the squared distance between vector (x1,y1,z1) and (x2,y2,z2) and returns the result.
x1
- The x location of the first vector.y1
- The y location of the first vector.z1
- The z location of the first vector.x2
- The x location of the second vector.y2
- The y location of the second vector.z2
- The z location of the second vector.
public int getOrderingPhase()
public void setOrderingPhase(int orderingPhase)
orderingPhase
- New value of property orderingPhase.public double getTimeConstant()
public void setTimeConstant(double TimeConstant)
TimeConstant
- New value of property TimeConstant.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


| Assigned: | Friday, October 3 |
| Quiz: | Tuesday, October 14 |
| Due: | Friday, October 17 |
| Grace period ends: | in your first lab section following the due date |
Goals: By the end of this lab, you should...
Directions: Consider the following class definition (as presented in lecture) and then answer the questions below.
class ListItem { public int number; public ListItem next; ListItem(int number, ListItem next) { this.number = number; this.next = next; } public String toString() { if (next == null) return "" + number; else return number + " " + next; } }
ListItem a, b, c, d; a = new ListItem(1,null); b = new ListItem(2,null); b.next = a; c = new ListItem(3,b); d = new ListItem(4, new ListItem(5, new ListItem(6, b))); c = c.next; Terminal.println("a = (" + a + ")"); Terminal.println("b = (" + b + ")"); Terminal.println("c = (" + c + ")"); Terminal.println("d = (" + d + ")");
| Memory Address | Memory Contents |
|---|---|
| 100 | 107 |
| 101 | 0 |
| 102 | 112 |
| 103 | 116 |
| 104 | 134 |
| 105 | 118 |
| 106 | 109 |
| 107 | 100 |
| 108 | 103 |
| 109 | 114 |
| 110 | 116 |
| 111 | 106 |
| 112 | 111 |
| 113 | 102 |
| 114 | 116 |
| 115 | 0 |
| 116 | 122 |
| 117 | 114 |
| 118 | 0 |
| 119 | 110 |
Seeing your data structures on the canvas: The CS101Canvas provided with this assignment has a method showData that draws box-and-arrow diagrams for data structures. A reference to any object can be passed as a parameter to the showData method. For example, if you pass a ListItem, you'll see the its number and its reference to the next item, which in turn will contain a number and a next, and so on. (For long lists, the layout may not be the best, but dragging the objects around with the mouse may help.)
In this lab, the ListItem constructor is written to show every ListItem on the canvas. If the ListItem changes later, the display will update accordingly. Well-placed "sleep" calls in your program can be used to slow things down so you can see the data structures change as they are being built or modified. (Note that showData will only show the values of the public instance variables. It does not show private instance variables, and it does not show local variables.) If the canvas becomes cluttered with too many different lists, you may want to create a fresh canvas on at different points in your test program. To do this, call the method ListItem.startNewDisplay().
length
that takes no parameters and returns the number of elements in the list.
For example, the list (3 5 9 3 2 4) would have length 6.
duplicate
that takes no parameters and returns a new ListItem that begins a
list containing the same numbers (but not the same ListItem objects)
as the original list.
reverseRecurse
that takes no
parameters and returns a ListItem. The return value should be
a new list structure that contains the same numbers as this list, but
in the reverse order. (Hint: Use a helper procedure with an extra
parameter that accumulates the reversed list.)
reverseLoop
that takes no
parameters and returns a ListItem. The return value should be
a new list structure that contains the same numbers as this list, but
in the reverse order. (Hint: Create a loop variable that's a ListItem reference
to keep track of your current position in the list.)
stretch
that takes a positive number n
as a parameter and returns a new ListItem beginning a
list in which each of the numbers in the original
list is repeated n
times. For example, if the original
list is ( 6 7 6 9 ) and the parameter value is
2, then the new list returned is ( 6 6 7 7 6 6 9 9 ).
find
that takes an integer target
and returns the first ListItem in the list that contains the given number.
If the target does not occur in the list, then null
is returned.
evenElements
PARAMETERS: a ListItem reference, ls RETURN VALUE: a ListItem at the beginning of a list structure containing copies of the even numbers in given list. for example, given input list ( 3 2 6 9 ), the return value would be the list ( 2 6 )
pairwiseSum
PARAMETERS: two ListItem references, ls1 an ls2 RETURN VALUE: a ListItem at the front of a new list containing the pairwise sum of the elements in ls1 and ls2 for example, given lists ( 3 2 6 ) and ( 1 4 2), the return value would be the list ( 4 6 8 )You may assume that the given lists are the same length.
smallElements
PARAMETERS: a ListItem reference, ls an integer n RETURN VALUE: a new list identical to the given list, except that it contains no occurrences of numbers greater than n. for example, given input list ( 3 2 6 3 4 ) and 3, the return value would be the list ( 3 2 3 )
scale
PARAMETERS: a ListItem reference, ls an integer n RETURN VALUE: none (void) the procedure mutates the list by multiplying each number in the list by the given number n. for example, given input lists ( 3 2 6 3 4) and the number 3, the modified list would be ( 9 6 18 9 12 ).
insertAfter
PARAMETERS: a ListItem reference, ls two integers i and j (not equal) RETURN VALUE: none (void) the procedure mutates the list by inserting the given number i after each occurrence of j. for example, given input lists ( 3 2 6 3 4) and the number 5 and 3, the modified list would be ( 3 5 2 6 3 5 4 ).Be sure to do this by creating new list items only for the inserted numbers. Modifying the
next
references in the existing
ListItem objects to insert the new items in the right places.
Don't create a whole new list structure.
run
method in the file Lab6.java,
make calls to all the methods and procedures
you have written to demonstrate that they work properly.
Be sure to test them on a variety of lists.
Part II: Staple together the following items by the due date:
Demo: Bring your lab packet to a TA and demonstrate what your program does. The TA will ask you to modify your program in a certain way and predict what will happen before you run it. Your demo grade will be based on whether or not you are able to accurately predict what will be shown on the canvas and what will be output to the terminal. Be sure to complete your demo no later than your next lab section immediately following the due date. If you plan to do your demo during lab section, your lab packet must be turned in to a TA within the first 15 minutes of the lab section.


| DOSE: T+ 0:00 |
50 mg |
oral |
bk-MDEA |
(powder / crystals) |
| T+ 0:45 |
25 mg |
oral |
bk-MDEA |
(powder / crystals) |
| T+ 0:00 |
4 hits |
inhaled |
Inhalants |
(powder / crystals) |
| T+ 0:00 |
15 mg |
oral |
bk-MDEA |
(powder / crystals) |
| T+ 0:00 |
80 mg |
oral |
Methylone |
(powder / crystals) |
| T+ 0:00 |
20 mg |
oral |
2C-I |
(powder / crystals) |
| T+ 0:00 |
20 mg |
insufflated |
MDMA |
(powder / crystals) |
| T+ 0:00 |
35 mg |
oral |
Pharms - Venlafaxine |
(pill / tablet) |
Subject:
Male, age 22, 65 kg, Western Europe, student
Substances:
bk-MDEA (Ethylone) approx. 90 mg
Methylone approx. 80 mg
2-CI approx. 20 mg
MDMA (powder) approx. 40 mg
Isobutyl nitrate (poppers) inhaled 4 times
Ingestion:
All consumed orally in the course of four hours by taking on the tongue and swallowing with water. The main dose of 2-CI was rolled up in toilet paper and ingested. Less than 10 mg of MDMA was insufflated. Popper was inhaled, of course.
Duration:
Coming up: 2 hours, plateaus and peaks in the next 2.5 hours, long return to baseline in 4 to 5 hours.
Medications:
Low dose of Claritin (anti-histamine).
Five weeks off an SSRI, after halving doses several times over the course of several months. Currently on something herbal. Vegecaps with St. John’s Wort, Siberian Ginseng, Gingko Biloba, Coleus Forskolii; vitamins B3, B6 and folic acid.
Preparations:
I drank several cups of tea with anti-oxidant properties and made sure to eat fruits. I had a light meal around 18.00. I did some cleaning, meditating, stretching and light physical exercise before taking a shower.
Experience:
At 19.30 I ingested 50 mg of ethylone. 45 minutes later I still felt nothing so I took a 25 mg booster. I noticed a very slight change of perception but I doubted whether it was placebo or real. I tried to attain a breakthrough by inhaling some isobutyl nitrate but it did not seem to do much. During the wait I was at my computer, preparing a play list, surfing and chatting.
30 minutes later my head was spinning a bit, breathing became more intense and I noticed a feeling around the very top of my head. Some call it the crown chakra or Sahasrara. This crown chakra feeling usually pairs with light euphoria that I can experience on other substances as well. Also, I had to burp lightly which is typical for these research chemicals. From there on I did not keep track of things that much anymore. I went into my other room to meditate and stretch. In the course of the next three hours I took booster doses of ethylone, and small doses of methylone and 2-CI at irregular intervals. Rather than taking them at once, I took them in 4 or 5 times, taking very small dabs of the powder on my tongue each time. A minor dose of MDMA was snorted, a dose of about 10 mg 2-CI was swallowed in toilet paper.
I had gone back to my computer. “Uf dem Anger” from Orff’s “Carmina Burana” sounded celestial. Orbital, goa trance and other electronic music all passed by. I have a very broad taste in music and it all sounded good. After 11.30 I turned off my computer because I craved stimulation that was more natural.  The 2-CI was now clearly the predominating substance.
First clearly distinguishable OEVs: I saw a breathing sky and crystalline webs forming, these looked like those ice crystals on windows. I also experienced double vision and fuzzy vision and I was unable to focus on objects. Later in the trip these latter three would become dominant features. I knew I had to be very careful moving about.
I snuck outside to walk in the grass barefoot and to stare at the sky some more. It felt so good. There was slight paranoia when I thought someone inside had turned on the lights, but what I saw were the lights that I had turned on and that had been amplified as lights in general seemed brighter. At first I did not know how long I was out there. It turned out to be ten to fifteen minutes. Time seemed to be stretching. I went back in to wash my feet and watch some TV. I thought I saw very small bugs on the stone floor but I knew better. I looked again and they were gone. The pattern of the natural stone was still fascinating, though.
After 01.00 I decided to live out the rest of my trip in my bed. I closed my eyes. CEVs looked a lot like psychedelic art. They were sometimes kaleidoscopic and spiraling but mostly symmetric, looking like glass-in-lead church windows. For brief moments I lost awareness of my body. Some time after the CEVs and OEVs had faded I was still awake. My body was tired and demanded sleep but my mind kept blabbing on. I was not able to sleep until 07.00. I attribute this mostly to the ethylone.
Aftermath:
Upon coming down I took my herbal meds. Later that day I also took approx. 35 mg of Effexor, an SNRI. (Like I would take an SSRI after a night on MDMA, except I had no SSRIs around). Some hours later I was really talkative because of it so I knew it was working. The hangover was less significant than the one I would get from MDMA alone at a larger dose. I drank tea and ate some fruits just like the day before. It has been over a week now and I have not experienced an MDMA-type crash.
Reflections:
Mentioned dosages should not be taken as a norm. I admit I am a fool for eyeballing doses and not even using alternative weighing methods and this was the main reason I took very small doses at a time. It could be possible that my past and current medications slightly weakened my experiences. Maybe I should have gotten a xanax or something similar as well, to get myself to sleep sooner. Lastly, I could have used a vegecap instead of toilet paper.
Most of the revelations came in the comedown. I (re)learnt a lot about myself, my personality, but these revelations are personal so I am not mentioning them here.
I thank you for your time and attention and I hope this report will be useful to many.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


This is the height of nonsensical mutterings a sane man can be allowed to live with.  I say put it down.


Download the contents of a page and display it. One way to test Cancel functionality is to change the hostname in the Address from localhost to a name that does not exist. To test cache control, change the cache read behavior or the cache write behavior.
Read Behavior
Write Behavior


Release notes
- New modern look & feel on the entire web interface, components and icons
- PostgreSQL: OmniDB now uses PostgreSQL server-side cursors whenever possible to always keep low OmniDB memory usage
- PostgreSQL: User now can enable/disable autocommit
- PostgreSQL: Status of the backend is shown to the user
- PostgreSQL: If autocommit is disabled or user starts a transaction, user can either COMMIT or ROLLBACK
- PostgreSQL: New full-featured autocomplete component for PostgreSQL
- PostgreSQL: Support to HASH partitions (SQL templates, treeview, properties and DDL)
- PostgreSQL: Improved SELECT template for views and materialized views
- New User options to set CSV encoding and delimiter
- Save title of Query Tabs
- Fixed: PostgreSQL: High memory usage when returning very large dataset (using server-side cursors)
- Fixed: Oracle/MySQL/MariaDB: QueryBlock not displaying first row of every block
- Fixed: Click on removed node on the treeview: "Can only transpose a table with a single row"
- Fixed: Export to XLSX does not respect locale
- Fixed: Editor loses focus after Alt-Tab
- OmniDB debugger: Different RPM for CentOS 6 and 7
- OmniDB plugin API: Adapted to new OmniDB look & feel
- OmniDB plugin API: Support to pglogical, Postgres-BDR 1.0 and Postgres-XL removed from core and are now separated open source plugins


|
AceTime
2.3.0
Date and time classes for Arduino that support timezones from the TZ Database.
|
Utility functions for setting, retrieving, and converting the current epoch. More...
#include <Epoch.h>
Static Public Member Functions | |
| static int16_t | currentEpochYear () |
| Get the current epoch year. | |
| static void | currentEpochYear (int16_t year) |
| Set the current epoch year. | |
| static int32_t | daysFromInternalEpoch (int16_t year) |
| Return number of days to the given {year}-01-01 from the converter epoch of 2000-01-01. | |
| static int32_t | daysToCurrentEpochFromInternalEpoch () |
| Number of days from the internal epoch (2000-01-01) to the current epoch. More... | |
| static int32_t | daysToCurrentEpochFromUnixEpoch () |
| Return the number of days from the Unix epoch (1970-01-01T00:00:00) to the current epoch. | |
| static int64_t | secondsToCurrentEpochFromUnixEpoch64 () |
| Return the number of seconds from the Unix epoch (1970-01-01T00:00:00) to the current epoch. More... | |
| static int16_t | epochValidYearLower () |
The smallest year (inclusive) for which calculations involving the 32-bit epoch_seconds and time zone transitions are guaranteed to be valid without underflowing or overflowing. More... | |
| static int16_t | epochValidYearUpper () |
The largest year (exclusive) for which calculations involving the 32-bit epoch_seconds and time zone transitions are guaranteed to be valid without underflowing or overflowing. More... | |
Utility functions for setting, retrieving, and converting the current epoch.
Normally, the default epoch is 2050-01-01T00:00:00 UTC. It can be changed by calling the currentEpochYear(year)
function.
|
inlinestatic |
|
inlinestatic |
The smallest year (inclusive) for which calculations involving the 32-bit epoch_seconds
and time zone transitions are guaranteed to be valid without underflowing or overflowing.
Valid years satisfy the condition year >= validYearLower()
. This condition is not enforced by any code within the library. The limit is exposed for informational purposes for downstream applications.
A 32-bit integer has a range of about 136 years, so the half interval is 68 years. But the algorithms to calculate transitions in zone_processing.h
use a 3-year window straddling the current year, so the actual lower limit is probably closer to currentEpochYear() - 66
. To be conservative, this function returns currentEpochYear() - 50
. It may return a smaller value in the future if the internal calculations can be verified to avoid underflow or overflow problems.
|
inlinestatic |
The largest year (exclusive) for which calculations involving the 32-bit epoch_seconds
and time zone transitions are guaranteed to be valid without underflowing or overflowing.
Valid years satisfy the condition year < validYearUpper()
. This condition is not enforced by any code within the library. The limit is exposed for informational purposes for downstream applications.
A 32-bit integer has a range of about 136 years, so the half interval is 68 years. But the algorithms to calculate the transitions in zone_processing.h
use a 3-year window straddling the current year, so actual upper limit is probably close to currentEpochYear() + 66
. To be conservative, this function returns currentEpochYear() + 50
. It may return a larger value in the future if the internal calculations can be verified to avoid underflow or overflow problems.
|
inlinestatic |


Secret Agent Collin:
What do you want? A pat on the head? A kick in the jacobs?

Get going.
"I want you to remove the spell."


| Track | Date Added | |
|---|---|---|
| {{track.Title}}
Title: {{track.Title}} File Name: {{track.fileName}} Owner: {{track.owner}} Writer: {{track.OwnerShipInfo.WRITER[0].Name}} Copyright Number: {{track.copyright_number}} Primary Genre: {{track.primary_genre}} Secondary Genre: {{track.secondary_genre}} Beats Per Minute: {{track.beats_per_minute}} Publishing Company: {{track.publishing_company}} |
{{track.dateAdded}} |


As Buffer writes, over 90% of our assessment of a product is made on color alone,
Chances are, if we don’t like the color palette, we’re not going to stay on the site for very long.
so it makes sense that color should be considered with care for every design decision, particularly on websites.
"I have over 10 years of experience in technology and have'nt come accross a better service."
"I have over 10 years of experience in technology and have'nt come accross a better service."


What's with the name, ~rogbeer?
Mr. Rogbeer was my colleague in a organisation where I worked on a couple of projects that involved programming.
It was around that time that I registered myself on tilde.town, and I was stumped for a username; I looked up from my laptop and saw his name-tag on display near his desk; I thought that was an interesting name.
No, I did not get his permission to snatch his surname (on tilde.town).
Bobs and pieces
- Mr. Rogbeer says he is from Mauritius
- As of 8th October 2018, I have only met two people who said they were from Mauritius
- The language Creole is spoken in Mauritius, so I’m told.
- The other person from Mauritius (that is, not Mr. Rogbeer) looked like she was from East Asia. If I am not mistaken, she told me that Mauritians don’t have any one look; there are a variety of ethnicities in Mauritius: she belongs to a minority there.


The goal of UThwigl is to compute closed- and open-system uranium-thorium (U-Th) ages of geological and archaeological samples. Closed-system U-Th dating follows the principles presented in Edwards et al. (2003), Richards and Dorale (2003) and Ludwig (2003). Open-system U-Th dating is based on the diffusion-adsorption-decay (DAD) model of Sambridge et al. (2012), which allows for advective and diffusive transport of uranium and thorium isotopes, while including synchronous radioactive decay.
The function, csUTh()
, calculates closed-system ages and uses 230Th/238U and 234U/238U activity ratios on a single analysis to return an age in thousands of years ago. The 232Th/238U or 230Th/232Th activity ratios are also needed for detrital correction.
The function, osUTh()
, calculates open-system ages and take the 230Th/238U and 234U/238U activity ratios collected along a transect perpendicular to the surface of the tooth or bone and return an age in thousands of years ago.
Please see the vignette for an example of how to use the functions in this package.
The package includes two web applications: one that runs osUTh()
in your browser where you can upload your CSV file, set the model parameters, run the model, and view the results, and a second app that does the same for csUTh()
. Choose this option is you are not familiar with R. Here’s a screenshot of the web app:
You can run the package functions in your browser by starting a binder instance. This will open RStudio in your browser, together with the contents of this GitHub repository.
To install the development version of UThwigl from GitHub on your computer, run:
if(!require("remotes")) install.packages("remotes")
remotes::install_github("tonydoss/UThwigl")


Top 10 Places to Visit
A man on the boat going towards Ulun Danu Bratan Temple
Visit these places if you want a relaxing vaction that you will remember.
New Orleans, Louisiana
Kerry, Ireland
Marrakesh, Morocco
Sydney, Australia
Click here to explore more of the Forbes Top 50 Destinations


|
This is Annie the Beagle. Annie has been a member of the family for three years. Children are much easier to raise. They don't don't think with their noses and their stomachs.  Annie also is known as "The Hound from Hell." She has been the topic of several columns. THE GROCERY LIST BEAGLES NEVER QUIT BEAGLES vs. WOLVES |
|
Potato Chips, Milk, Eggs, Beagle It all started because my partner in life put a grocery list on the refrigerator door. The list is posted every week on the refrigerator. Its there so if a family member thinks of something we need, she or he (me being the only he) can write it down. One Friday there was a new item on the list: "Beagle" When my mate asked if I had anything to do with the beagle order I assured her I was innocent. I have occasionally requested cauliflower or brussel sprouts or sardines, but never a beagle. Our eldest daughter eventually admitted responsibility. She noted that she has always considered the beagle a fascinating animal and had decided to put one on the list to see what would happen. Over the years, several dogs have passed through our lives. The first was a border collie who we raised from a pup. She was with us 13 years. No dog who followed her ever seemed to measure up. With the exception of the first, all the other dogs were grown by the time we got them and had previously acquired idiosyncrasies. Because of those problems I had vowed to stick with cats as pets. The beagle became a regular entry on the grocery list. And we regularly ignored it. One night my better half observed that there were beagle puppies advertised in the newspaper. I tried to ignore her. But the next day, I dropped by the place with the pups. Later, the two of us went back for a closer look. That night, when our eldest got home from work, Annie, an eight-week-old beagle puppy, was sleeping on her bed. The morning after we brought the pup home, I stopped by the home of a friend for coffee. I announced that we now have a beagle. "We know a guy who used to have a beagle," my friend said. "I was always surprised the dog lived as long as he did. Beagles march to a different drummer." On Monday I sought advice from the newsroom expert on dogs. "Beagles like to dig, you know," he said. I inquired as to the best way to break them of that habit. "Some say the best way is when they dig a hole, bury em in it." he advised. A couple of nights later I found a dog book containing a beagle profile "Beagles are cheerful and friendly, but with a tendency to willfulness.." said the book. "They cannot be left alone for too long." Despite the ominous warnings, Annie the Beagle is the main attraction at our house. Her mood can be gauged by her little, pointed tail. If the tail is pointing at the ground, Annie is sad. If it is straight up she is happy. And the faster it wags, the greater the degree of her happiness. The one family member who isnt impressed with the new arrival is KC the Cat. She is pressed into service as a companion for Annie the beagle when everyone else is gone. The pup seems to enjoy the company. KC, however, has expressed to us her belief that puppysitting is a job below the dignity of any cat with an ounce of self-respect. I gave her my solemn promise to keep her duties a secret from the general public. That seemed to make her feel better. Fortunately K.C. the Cat has never learned to read. © 1996 by Wayne Cornell Dog books and magazines always are packed with pictures of every imaginable variety of canine. I have noticed, however, that one breed is underrepresented. You dont see many photos of beagles in those publications. Theres a reason. Annie the Beagle recently celebrated her first anniversary as a member of our household. Her presence has been an educational experience. Weve learned there are certain things a beagle owner must accept as a part of life. If you look up the definition of the word persistence in the dictionary, Im sure you will see an editors note advising: "see beagle." All of our previous dogs like to roughhouse. But all of them had their limits. After a certain amount of chasing the stick or the ball or wrestling, your average dog either gets tired of just plain loses interest. But beagles never quit.   She has never voluntarily quit. You must either hide the stick or throw it as far as possible and then run inside before she can return. Beagles look like small dogs. A 40-lb. bar of lead is small, too. But that doesnt make it any easier to pick up.  When you combine a beagles size-to-weight ratio with its persistence, you have an animal that can be very tiring. If you wrestle with Annie the Beagle and try to fend off her charges, she uses her front paws and the weight behind them to push your arms out of the way.  And no matter how many time you push her away, she keeps coming back for more. Now one might think that the above qualities, plus their extraordinary sense of smell, would make beagles excellent candidates for police work. But they have a fatal flaw in their character. They will give up the hottest scent or the most savage attack for the proper incentive.. All the fugitive would have to say is, "Hey. Would you like a weenie?" Annie the Beagle is one of the worlds great eating machines.  Actually, Annie doesnt eat anything. She simply inhales anything chewable, burps and wants more. If Mother Nature gave beagles taste buds, the effort was wasted. They never keep anything in their mouths long enough to savor the flavor. Thats fortunate considering some of the other stuff they eat that I havent listed because of reader sensitivities. Some readers may think that my assessment of beagles is just a case of poor parenting -- that all the problems could be solved with some strict discipline. But those folks have never seen the changes that occur when the beagle owner attempts to be strict. At the first utterance of the words "bad dog!" Annie the Beagles head and tail droop until they almost touch the ground. She staggers heart-broken to her bed next to the fireplace and falls into it.  expression. No animal can match a beagle when it comes to being sad. And when Annie throws in a soft groan and a sigh, any sensitive, caring human would do exactly what we do -- offer her a weenie. Which also goes a long way toward explaining her weight. © 1996 by Wayne Cornell Annie the Beagle is rewriting the dictionary. Since she joined the family two years ago, Annie's favorite spot in our house has been her doggie bed in front of the fireplace hearth in the family room. Her abode is sometimes referred to as "the Beagle's Nest," On other occasions it is known as "The Den of the Filthy Beast." The Filthy Beast title came into being one day when this writer was watching an old Cary Grant Movie called Father Goose. Given some of the habits of our pet, the term seemed appropriate. From the Beagle's Nest, the Filthy Beast surveys her domain, constantly looking and listening. The dog's primary focus is the refrigerator, located on the far side of a counter that separates the kitchen from the family room. If she sees the refrigerator door open, she leaps from her bed and races to that location. She stands in front of the open refrigerator, wistfully gazing at its contents -- much like small boys of the 1950s devoured the pages of the toy section of the Montgomery Ward catalog as Christmas approached. The Filthy Beast's movements usually are restricted to two rooms by a folding wooden "child proof" gate that can be closed to keep her out of the rear portion of the house. That area is recognized as the domain of our two cats. Annie often acts like her hearing isnt one of her strong points. If she jumps up on the couch she cant hear a human yelling at her from a distance of five feet. But she has a selective impairment. Although Annie can't see the entrance to Cat Land from her nest, she can tell the difference between someone just pulling the gate across the doorway, and actually hooking it, even when shes asleep. If the dog doesn't hear the faint scraping sound made by the gate hook sliding into the catch, she immediately shifts to wide awake mode. As soon as the human who improperly closed the gate leaves the scene, Annie tip toes to the barrier, noses it open, and makes a run for the cat food dish. It takes the Filthy Beast about two seconds to inhale all the cat food. She does it quickly because she knows that the moment we discover what she is doing, we will yell "Bad Dog!" drag her to the back door and boot her out in the yard. Unfortunately, Annie's love of cat food is much greater than her fear of punishment. A some point in the past, someone coined the term "wolf" to describe people or animals who eat their food as quickly as possible. Because wolves run in packs, eating is a highly competitive business. The wolf that doesnt wolf its food goes hungry. I have seen films of packs of wolves wolfing their food. I have also seen Annie the Beagle eat. Beagles are pack animals, too. Based on my observations, I firmly believe that a much more accurate term for gluttony should be based on the latter animal rather than the former. Besides, "Beagling" a meal has a nicer ring to it that "wolfing." © 1996 by Wayne Cornell Beagles need less nose, more brains Mother Nature gave the beagle one of the most sensitive noses in the canine world. But Im suspicious the dog paid a high price for its keen sense of smell. Annie the Beagle is primarily a house dog. She spends much of the day asleep in her doggie bed in the family room, in front of the fireplace. She needs as much rest as possible because of what happens every time she steps into the back yard. If the beagles of the world had an official motto, it would be read "Born to smell." A beagles nose is its life. Whenever Annie goes outside, she believes she has an inherited obligation to determine who or what has been in the area since her previous patrol. Annies first chore is to take a fast lap to clear the yard of freeloading robins who are harvesting worms and insects from the grass. The birds scatter to nearby trees or the top of the back fence, screaming obscenities at their tormentor. With the robin patrol completed, Annie gets down to some serious smelling. Most dogs concentrate on one particular scent. Annie, however, uses the shotgun approach. She races back and forth across the grass, nose to the ground. Despite careful study, this writer has been unable to identify any logical pattern to the dogs search technique. Her head whips from side-to-side like a high-pressure hose that has slipped from the grasp of a fireman. When Annie is in full sniff, her nose makes a sound like a Huey helicopter approaching a hot landing zone during the Vietnam War - a low frequency thump that can be heard all over the neighborhood. What makes Annies search technique interesting is that at the same time she is thumping, which involves inhaling, she also is snorting, which requires her to exhale. The periodic snorting is necessary to expel grass, twigs, small insects and other assorted debris she accidentally sucks into her nose during the thumping process. Thumping and snorting at the same time is a pretty remarkable fete by any standard. But Annie takes smelling to a whole new level. For every 10 thumps and two snorts, she throws in an excited yelp, just to let us know shes hot on the trail of something. Weve come to accept Annies antics. But its embarrassing when someone from the neighborhood passes our residence during an evening stroll and spots our little brown, black and white Dervish whirling, thumping, snorting and yelping around the backyard, floppy ears flying. It would be even more embarrassing if the passersby knew that much of the time Annie is following her own scent. In other words, shes in hot pursuit of herself. It often requires thirty minutes or more for Annie to make a thorough sweep of the yard. But returning to the house creates another problem. In the dogs absence, humans have walked on the floors, and sat in chairs. The two resident cats have made their regular rounds. And all those new trails have to be fully traced and cataloged. That means more sniffing. And if a stranger has been in the house in Annies absence, we get the full whirling, thumping, snorting and yelping routine again. When she finally completes her interior security check, its back to her bed to rest up for the next patrol. Sometimes I find myself wishing Mother Nature would have given beagles a little less nose and a few more brains. © 1996 by Wayne Cornell Duke the Dog was a member of our household for about a year. Duke, who appeared to be part collie and part wolf, was eventually given to a nice lady who lived on a farm where he had more room to roam and dig holes.. We were driving past Dukes home recently when my partner in life observed that the change was a good one because the dog was too big and too smart for us to handle. I agreed, noting thats what makes Annie the Beagle, the perfect dog for our family. One of the reasons we adopted a beagle was that they arent very big But dimensions can be misleading. The only thing denser than a beagles body is a lead ingot of similar size.  But a beagles body isnt the only thing thats dense. Most dogs will fall for a trick a few times before getting wise. A beagle just keeps falling and falling and falling... Take the case of "Oh my gosh!" Our family room features a large picture window. The sill is only a couple of feet above the floor. This means Annie the Beagle can put her front feet on the sill and watch the world go by outside. Annie takes it personally when someone walks past on the street outside. That situation is cause for considerable baying, bellowing and yipping as she watches them from her lookout. Annie has better things to do, however, than stand in the window all day -- mainly sleep. Therefore, she depends on the other members of the household to keep her informed on whats going on outside. The trigger phrase is "Oh, my gosh!" The dog can be anywhere in the house, asleep or awake. But if someone utters the above three words, Annie lets out a bellow and makes a dash for the family room window. Our guardian always takes the most direct route to the window. If you happen to be dozing in an easy chair that is between the dog and the window, you run the serious risk of being trampled and deafened. If Annie gets to her observation post and discovers there really is somebody there, she shrieks for someone to open the back door as she races to that exit. Once outside, she shouts dog obscenities through the chain link fence until the passersby are out of sight. Nineteen times out of 20, however, there is nobody outside the window. The "Oh my gosh!" usually is uttered by one of our daughters just to liven the place up. The amazing thing is that no matter how many bogus alarms are issued, Annie never loses her enthusiasm. As I write this I have just finished yelling "Oh my gosh!" The dog is still up in the window, staring intently down the street. And if I say it again five minutes from now, shell be right back in the window. It doesnt take much to entertain Annie the Beagle. Obviously, it doesnt take much to entertain her human associates either. © 1996 by Wayne Cornell Net stardom hasnt changed family beagle Annie the Beagle, our Dog in Residence, has attained some notoriety in the neighborhood and the area since she joined us three years ago. Because I have written several columns about the trials and tribulations of being a beagle owner, people sometimes stop me on the street to ask about Annies health and mine. But recently, our poochs fame spread over a much wider area. We now sometimes refer to her as Annie the Electronic Beagle. It all started one evening when I was "surfing the net" browsing the Internet using my computer. During the course of my investigation, I bumped into a site titled, "Beagles on the Web," It includes an entire page of links to the home pages of beagle owners in the United States and Canada. Click on the name of a dog, and you usually get pictures and a description of that animal "Heres Barney as a puppy peering out of the sleeve of my husbands shirt. Heres Barney at six months eating my husbands shirt, etc. Some pages even include sound clips of beagles baying, barking or sniffing. After looking over Beagles on the Web page, I decided I could contribute. I rounded up several columns I have written on Life with Annie and put them together on apage on my web site (http://www.netnow.micron.net/~wcornell). I titled the collection, The Beagle Chronicles. Then I E-mailed Beagles on the Web and asked them to add Annie to their links. Things move fast in cyberspace. Within days, I started getting E-mail from web surfers. A couple in Chapin, S.C. said the Beagle Chronicles is a regular stop for them. They told me about their 15-year-old beagles, Ranger and Runner. That suggests we may have to put up with Annie 12 more years. A woman affiliated with the University of Kansas said shes convinced her beagle, Dizzy, is part cat because he spends all day looking out the window or sleeping. (Beagles are great sleepers). I even got a message from a guy in Lancaster, Va. who saw the Beagle Chronicles and wants to immortalize Annie by painting her picture on a pillow (for a price). But the best letter came from St. Johns Newfoundland. "I got a beagle in September and my life has not been normal ever since," wrote Melanie Watkins. "I sometimes wondered if our beagle was a little unusual. I am relieved to know he isnt the only one like it." Recently I learned The Beagle Chronicles was named the "Sniff of the week" on the Beagles on the Web page. Im guessing there are similar Internet sites for collies, German shepherds, Dobermans and most other dogs. But judging from the responses I have received to the Beagle Chronicles, I believe owners of that breed view the Internet connection differently -- as a support group. It gives me a warm feeling to know my columns about Annie are helping some of those folks realize their pets arent retarded they are just beagles. Annies new fame hasnt affected her in the least. She still leaps from her bed and races to the window to scream obscenities at passing joggers and neighborhood canines. She continues to scheme to steal the cats food. And she still spends hours tracking herself around the backyard. If she ever catches herself Ill have a great column.
|


Ethiopia's Sidama people vote on regional state
by AFPPeople in Ethiopia’s ethnic Sidama region voted on Wednesday in a referendum that could carve out a new federal state in a nation already struggling with community tensions.
With heavy security on the streets, the mood on Wednesday in the regional capital Hawassa appeared calm.
But the Sidama push for autonomy already triggered days of unrest in July that left dozens dead, and prompted the government to place Ethiopia's southern region under the control of soldiers and federal police.
Long queues at polling stations began gathering during the night, with some 2.3 million people registered to vote.
"This is a special day for me," said Fitsum Anbese, 32, a laboratory technician, who started queueing to vote two hours before daybreak, when polls opened. "I will be recognised for my identity, so I'm happy."
- 'Excitement' -
"I stayed up until late in the night," said 27-year old Fantahun Hatiso, after casting his ballot.
"The excitement of waiting for this day, which will bring liberty and peace to my people, kept me awake."
Away from the polling stations, the streets of Hawassa were much quieter than usual, with Wednesday declared a holiday for the vote.
With apparently overwhelming support among Sidamas to form their own state, people said they were keen to see a peaceful vote.
Many fear the harder test will come once final results are announced.
"I want all of us to respect each other and avoid divisions," said Hagersew Haso, a 30-year-old worker at the national telecommunications company.
"I want us to have and live in a peaceful, one Ethiopia."
The referendum on autonomy springs from a federal system designed to provide widespread ethnic self-rule in a hugely diverse country, Africa's second most populous, with more than 100 million people.
At present, Ethiopia is partitioned into nine semi-autonomous regional states -- with the Sidama voting for a potential tenth.
The constitution requires the government to organise a referendum for any ethnic group that wants to form a new entity.
- Inspiration for others -
The Sidama -- who number more than three million -- have agitated for years to leave the diverse Southern Nations, Nationalities, and Peoples' Region.
The dream gained fresh momentum after Prime Minister Abiy Ahmed, winner of this year's Nobel Peace Prize, took office last year.
At least 10 other groups in the south of the country have already launched plans for self-determination similar to that of the Sidama. Analysts fear it could unleash further ethnic violence.
Abiy has spent recent months trying to put a damper on other statehood bids, pleading for patience in meetings with leaders of ethnic groups trying to follow the Sidama example.
If, as many expect, the people in Sidama choose to form a new state, the implementation of the referendum is expected to raise a host of thorny issues.
One major sticking point is the status of Hawassa, which the Sidama are eyeing as the capital of their would-be state.
The city is ethnically diverse -- only about half the population is Sidama -- and up to now has served as the administrative centre for the entire southern region.
Polls opened at 6:00 am (0300 GMT) and close at 6:00 pm (1500 GMT). Preliminary results are expected on Thursday.


pips Red=154 White=144
(CorrectAnswer= 0/0, ErrorScore= 0)
As I often said before match play is much more difficult than money play because of the need to take into account the match score when making doubling decisions and checker plays.
I see three very common types of errors in match play: cashing a single point when playing on for the gammon is correct; overplaying the position when trailing, remember first when the game and then win the gammon; making money play decisions in match situations.
The last of these three is by far the most common. Firstly, let’s take a simple example. Your opponent holds a 2-cube and is trailing 0-2 in a match to 5. You reach a position where both players have four checkers on each of their 1- and 2-pts. Your opponent redoubles to 4 – what do you do?
For money this is an easy and well known take. At this match score taking would be a quadruple blunder because you need 33% game-winning chances to take. Having a simple understanding of match equity would enable you to make the right decision but time and again I see players taking such redoubles because they haven't dome their basic homework.
This week’s positions has Black to play a 52 at double match point (DMP). At DMP there are no gammons and the cube is out of use. You must win by moving the checkers to give you the best possible chance of winning the game.
Black failed the test in his match. He made the (correct) money play of 10/8, 6/1 but failed to ask himself the fundamental question: “How am I am going to win from here?”. Leaving three checkers stuck behind White’s broken prime with very little time to escape them is certainly not the right plan.
Red must play boldly and step up to White’s 4-pt with 23/21. The five should then be played 10/5 and not 8/3 which puts a checker out of play unnecessarily. The play is risky – it loses 5% more gammons than 10/8, 6/1 but crucially it wins 2.5% more games which is the only thing that matters.
It is sometimes difficult to get out of the money game mindset, especially if you play a lot of chouettes, but to be successful in tournaments you have to learn to make that vital adjustment and focus on what is important and that is nearly always the match score. You have been warned!
I see three very common types of errors in match play: cashing a single point when playing on for the gammon is correct; overplaying the position when trailing, remember first when the game and then win the gammon; making money play decisions in match situations.
The last of these three is by far the most common. Firstly, let’s take a simple example. Your opponent holds a 2-cube and is trailing 0-2 in a match to 5. You reach a position where both players have four checkers on each of their 1- and 2-pts. Your opponent redoubles to 4 – what do you do?
For money this is an easy and well known take. At this match score taking would be a quadruple blunder because you need 33% game-winning chances to take. Having a simple understanding of match equity would enable you to make the right decision but time and again I see players taking such redoubles because they haven't dome their basic homework.
This week’s positions has Black to play a 52 at double match point (DMP). At DMP there are no gammons and the cube is out of use. You must win by moving the checkers to give you the best possible chance of winning the game.
Black failed the test in his match. He made the (correct) money play of 10/8, 6/1 but failed to ask himself the fundamental question: “How am I am going to win from here?”. Leaving three checkers stuck behind White’s broken prime with very little time to escape them is certainly not the right plan.
Red must play boldly and step up to White’s 4-pt with 23/21. The five should then be played 10/5 and not 8/3 which puts a checker out of play unnecessarily. The play is risky – it loses 5% more gammons than 10/8, 6/1 but crucially it wins 2.5% more games which is the only thing that matters.
It is sometimes difficult to get out of the money game mindset, especially if you play a lot of chouettes, but to be successful in tournaments you have to learn to make that vital adjustment and focus on what is important and that is nearly always the match score. You have been warned!
1. Cubeful 2-ply 10/8 6/1 Eq.: -1.000 0.244 0.061 0.002 - 0.756 0.240 0.015 2. Cubeful 2-ply 23/21 10/5 Eq.: -1.000 (+0.000) 0.272 0.069 0.003 - 0.728 0.310 0.030 3. Cubeful 2-ply 10/5 8/6 Eq.: -1.000 (+0.000) 0.227 0.053 0.002 - 0.773 0.224 0.011 4. Cubeful 2-ply 23/21 8/3 Eq.: -1.000 (+0.000) 0.262 0.069 0.003 - 0.738 0.328 0.038 5. Cubeful 2-ply 13/8 10/8 Eq.: -1.000 (+0.000) 0.218 0.046 0.002 - 0.782 0.248 0.014


The current version is 1.1.6. 1.1.6 fixes several bugs in IEEE 754 arithmetic.
1.1 is a major upgrade that significantly improved jaxen's conformance to the underlying XPath 1.0 specification. This release is a vast improvement over 1.0, and all users are strongly encouraged to upgrade. With a few small exceptions (e.g. the document() function has moved to the org.jaxen.function.xslt package, the IdentityHashMap class has been deleted, and the ElectricXML navigator has been deleted) 1.1.6 is backwards compatible with code written to the 1.0 APIs.
The recommended build is 1.1.6:
You can grab a tarball of the current CVS head from FishEye if you like. To build Jaxen, you'll need to have maven installed. Assuming you do, you should be able to just type "maven jar" at the command line in the jaxen directory to create a JAR archive.


{% extends "layout.html" %} {% block body %}
This variant browser currently shows chromosome locations, alleles, VEP functional annotations, and allele frequencies for {{ config['NUM_VARIANTS'] }}.
If you have a question about this website, contact bioinformatics@uef.fi.


When enabled, the limitlines will be clipped to contentRect, otherwise they can bleed outside the content rect.
don't touch this direclty, use setter
don't touch this directly, use setter
the total range of values this axis covers
don't touch this direclty, use setter
don't touch this directly, use setter
axis label entries only used for centered labels
the number of decimal digits to use
the actual array of entries
the number of entries the legend contains
the total range of values this axis covers
default constructor
Adds a new LimitLine to this axis.
Disables the axis line to be drawn in dashed mode.
Disables the grid line to be drawn in dashed mode.
  Keep in mind that hardware acceleration boosts performance.
the length of the line pieces
the length of space in between the pieces
offset, in degrees (normally, use 0)
Enables the grid line to be drawn in dashed mode, e.g. like this "- - - - - -".  Keep in mind that hardware acceleration boosts performance.
the length of the line pieces
the length of space in between the pieces
offset, in degrees (normally, use 0)
Returns the color of the axis line (line alongside the axis).
returns the DashPathEffect that is set for axis line
Returns the width of the axis line (line alongside the axis).
get the custom line renderer
returns the Typeface used for the labels, returns null if none is set
{@link Font}
the force interval
the minimum erval between axis values
Returns the color of the grid lines for this axis (the horizontal lines coming from each label).
returns the DashPathEffect that is set for grid line
Returns the width of the grid lines that are drawn away from each axis label.
Returns the number of label entries the y-axis should have
returns the position of the y-labels
Returns the text alignment of the axis labels.
Returns the LimitLines of this axis.
Returns the longest formatted label (in terms of characters), this axis contains.
the maximum width that the axis can take (in dp).
the minimum width that the axis should take (in dp).
This is for HorizontalBarChart vertical spacing.
This is for normal (not horizontal) charts horizontal spacing.
Returns the bottom axis space in percent of the full range. Default 10
Gets extra spacing for axisMaximum
to be added to automatically calculated axisMaximum
Gets extra spacing for axisMinimum
to be added to automatically calculated axisMinimum
Returns the top axis space in percent of the full range. Default 10
Returns the text color that is set for the labels.
returns the text size that is currently set for the labels, in pixels
returns the Typeface used for the labels, returns null if none is set
{@link Font}
Returns the formatter used for formatting the axis labels.
Returns the used offset on the x-axis for drawing the axis or legend labels. This offset is applied before and after the label.
Returns the used offset on the x-axis for drawing the axis labels. This offset is applied before and after the label.
Returns true if the axis dashed-line effect is enabled, false if not.
Returns true if the axis max value has been customized (and is not calculated automatically)
Returns true if the axis min value has been customized (and is not calculated automatically)
Returns true if the line alongside the axis should be drawn.
returns true if drawing the bottom y-axis label entry is enabled
Returns true if drawing grid lines is enabled for this axis.
Returns true if drawing the labels is enabled for this axis.
returns true if drawing the top y-axis label entry is enabled
Returns true if this comonent is enabled (should be drawn), false if not.
true if granularity is enabled
Returns true if focing the y-label count is enabled. Default: false
true if granularity is enabled
Returns true if the grid dashed-line effect is enabled, false if not.
Returns true if we draw axis ignoring viewport offsets
If this returns true, the y-axis is inverted.
Returns true if autoscale restriction for axis max value is enabled
Returns true if autoscale restriction for axis min value is enabled
Returns true if this axis needs horizontal offset, false if no offset is needed.
Removes all LimitLines from the axis.
Removes the specified LimitLine from the axis.
By calling this method, any custom maximum value that has been previously set is reseted, and the calculation is done automatically.
By calling this method, any custom minimum value that has been previously set is reseted, and the calculation is done automatically.
Sets the color of the border surrounding the chart.
  Keep in mind that hardware acceleration boosts performance.
the DashPathEffect
Sets the width of the border surrounding the chart in dp.
Use setAxisMaximum(...) instead.
Set a custom maximum value for this axis. If set, this value will not be calculated automatically depending on the provided data. Use resetAxisMaxValue() to undo this.
Use setAxisMinimum(...) instead.
Set a custom minimum value for this axis. If set, this value will not be calculated automatically depending on the provided data. Use resetAxisMinValue() to undo this. Do not forget to call setStartAtZero(false) if you use this method. Otherwise, the axis-minimum value will still be forced to 0.
Centers the axis labels instead of drawing them at their original position. This is useful especially for grouped BarChart.
set a custom line renderer
Set this to true if the line alongside the axis should be drawn or not.
Set this to true to enable drawing the grid lines for this axis.
If this is set to false, the grid lines are draw on top of the actual data, otherwise behind. Default: true
Set this to true to enable drawing the labels of this axis (this will not affect drawing the grid lines or axis lines).
If this is set to true, the labels are drawn behind the actual data, otherwise on top. Default: false
If this is set to false, the LimitLines are not drawn otherwise on top. Default: false
If this is set to true, the LimitLines are drawn behind the actual data, otherwise on top. Default: false
set this to true to enable drawing the top y-label entry. Disabling this can be helpful when the top y-label and left x-label interfere with each other. default: true
Set this to true to draw the zero-line regardless of weather other grid-lines are enabled or not. Default: false
Set this to true if this component should be enabled (should be drawn), false if not. If disabled, nothing of this component will be drawn. Default: true
sets a specific Typeface for the labels
Set a forced interval.
Set a minimum erval for the axis when zooming in. The axis is not allowed to go below that limit. This can be used to a label duplicating when zooming in.
Enabled/disable granularity control on axis value ervals. If enabled, the axis erval is not allowed to go below a certain granularity. Default: false
Sets the color of the grid lines for this axis (the horizontal lines coming from each label).
  Keep in mind that hardware acceleration boosts performance.
the DashPathEffect
Sets the width of the grid lines that are drawn away from each axis label.
Set this to true to draw axis ignoring viewport offsets
If this is set to true, the y-axis is inverted which means that low values are on top of the chart, high values on bottom.
Returns the text alignment of the description.
Sets the maximum width that the axis can take (in dp).
Sets the minimum width that the axis should take (in dp).
sets the position of the y-labels
Sets the bottom axis space in percent of the full range. Default 10
Sets extra spacing for axisMaximum
to be added to automatically calculated axisMaximum
Sets extra spacing for axisMinimum
to be added to automatically calculated axisMinimum
Sets the top axis space in percent of the full range. Default 10
This method is deprecated. Use setAxisMinimum(...) / setAxisMaximum(...) instead.
Set a suggested maximum value for this axis. If set, this will be used as maximum is no value is greater than it.
Set a suggested minimum value for this axis. If set, this will be used as minimum is no value is smaller than it.
Sets the text color to use for the labels. Make sure to use getResources().getColor(...) when using a color from the resources.
sets the size of the label text in density pixels min = 6f, max = 24f, default 10
the text size, in DP
Îsets a specific Typeface for the labels
Sets autoscale restriction for axis max value as enabled/disabled
Sets autoscale restriction for axis min value as enabled/disabled
Sets the formatter to be used for formatting the axis labels. If no formatter is set, the chart will automatically determine a reasonable formatting (concerning decimals) for all the values that are drawn inside the chart. Use chart.getDefaultValueFormatter() to use the formatter calculated by the chart.
Sets the used x-axis offset for the labels on this axis.
Sets the used y-axis offset for the labels on this axis. For the legend, higher offset means the legend as a whole will be placed further away from the top.
Sets the color of the zero line
Sets the width of the zero line in dp
Generated using TypeDoc
Class representing the y-axis labels settings and its entries. Only use the setter methods to modify it. Do not access public variables directly. Be aware that not all features the YLabels class provides are suitable for the RadarChart. Customizations that affect the value range of the axis need to be applied before setting data for the chart.
Philipp Jahoda


BoA lives a New York City life in teaser for upcoming single 'Starry Night' featuring Crush
by danisurstBoA is gearing up to release a new song with R&B singer Crush!
On December 10 at midnight KST, SMTOWN released a music video teaser for her upcoming single "Starry Night." In the video, BoA lives a quiet life in New York - jogging by the river, writing down new song lyrics, and working on composing new music in her apartment. The background music pairs sentimental piano with an ethereal synth and drum part, giving fans a taste of the song's atmospheric track.
Meanwhile, "Starry Night" is set for release on December 11 at 6 PM.
Check out the music video teaser above!


Name must be at least 3 characters.
{{ vm.errors.name }}
Image URI is required.
CloudFormation Template is required.


Open the console (press F12 or Ctrl+Shift+I) to test the console. You can use-try-test the library in console.
// Try to display a grid in console with thoses lines of code :
var g = new Grid({
name:"My test map",
width:10,
height:10,
nbbombs:30
}).initMap().spawnRdmBombs().show();
See the official public repo on Github.
See the Get Started guide to learn how to use the library.


WebSocket connection:
Subscribe
Unsubscribe
Enter currecny pair:
Enter currecny pair:
Submit alert
Enter currecny pair:
Enter currecny pair:
Delete alert
Alerts


d4
A friendly charting DSL for d3
D4
D4 is a friendly DSL charting library for D3. The goal of D4 is to allow developers to quickly build data-driven charts with little knowledge of the internals of D3.
Quick Start
Either download d4 directly from the github repository or install it using a package manager like bower.
$ bower install d4
Once you have a local copy of d4 simply include it after d3 in your source file.
<!DOCTYPE html>
<html>
<head>
<!-- sensible defaults for styles -->
<link href="d4.css" rel="stylesheet" />
</head>
<body>
...
<script src="d3.js"></script>
<script src="d4.js"></script>
</body>
</html>
Hello World
Here is the most basic example, which uses many of the preset defaults provided by d4.
var data = [
{ x : '2010', y : 5 },
{ x : '2011', y : 15 },
{ x : '2012', y : 20 }
];
var columnChart = d4.columnChart();
d3.select('someDomElement')
.datum(data)
.call(columnChart);
Getting Fancy
d4 allows you to quickly build up sophisticated charts using a declaritive and highly contextual API that allows you to mixin or mixout features from your chart.
var data = [
{ x : '2010', y : 5 },
{ x : '2011', y : 15 },
{ x : '2012', y : 20 }
];
// Create a column chart without a yAxis, but with a grid in the background.
var columnChart = d4.columnChart()
.mixout('yAxis')
.mixin('grid', d4.features.grid, 0)
d3.select('someDomElement')
.datum(data)
.call(columnChart);
Additional Examples
There are many more examples of d4 in the examples site inside the source code repository. Simply clone the repo and
open the examples/
folder in your favorite web browser.
You can find a hosted version of the example site here: http://visible.io/
Philosophy
Many charting libraries do a poor job when it comes to separations of concerns. They attempt to be an all-in-one tool, which is at odds with how modern applications are built. Developers do not want a monolith that owns the data transformation, visual aesthetics, and interactivity. This leads to enormous libraries with huge config files, where every minutia about the chart must be decided upon beforehand. This typically means developers must first learn a specialized API in order to control even the most basic aspects of the chart. d4 believes many of these responsibilities would be better delegated to other technologies. If developers were woodworkers then d4 would be a jig, which allows complex cuts to be made in fraction of the time it would normally take.
CSS is for styling
Many charting libraries make internal decisions on visual aesthetics, which may remove control from the graphic designer, who may or may not understand JavaScript let alone a specialized charting API. Choices on visual design like the colors for data series and font sizes are best made in CSS. d4 exposes convenient hooks in the generated markup to allow visual designer to get precise control over the look and feel without needing deep knowledge of d4.
The chart does not own the data
Data is a stand-alone object, which can be relied upon by many other scripts on the page. Therefore, a charting library should not change the data object. It can make non-permanent transformations.
Context over configuration
There is a software design concept called "convention over configuration," which states that software should specify a collection of opinionated defaults for the developer. The goal of this approach is to lessen the number of obvious choices a developer must make before they are able to use the software. Instead, configuration should be saved for instances where the defaults do not apply. d4 extends this concept a bit and suggests that configuration should also be highly contextual to the object the developer needs changed. Instead of making choices in some abstract config file, developers instead use a highly declarative API to make changes directly to the object they want augment.
Terminology
d4 uses specific terms to describe the components of a chart.
Chart - The data rendered by d3 into a graphical representation.
Feature - A visual component of a chart, which helps convey meaning in the data.
Dimension - A segment of the data described by the chart.
Parser - A parser prepares the data for a chart.
Base Charts
- Area Chart (Coming Soon)
- Column Chart
- Grouped Column Chart
- Line Chart
- Mekko Chart (Coming Soon)
- Pie Chart
- Row Chart (Bar Chart)
- Scatter Chart
- Waterfall Chart
Chart Features (Mix-ins)
- Arrows
- Column Labels
- Column Series Connectors (Coming Soon)
- Grid
- Legend (Coming Soon)
- Line Series
- Reference Lines
- Row Labels
- Trend Line
- X Axis
- Y Axis
Inspiration
The inspiration of D4's modular and declarative structure came from Mike Bostock's article on writing reusable charts in d3.
Roadmap
- Allow mouse events
- Allow for multiple charts within the same SVG element
- Allow charts to specify min, max values which do not appear in the data series.


|
EmbeddedAi
|
#include <factor.h>
Public Member Functions | |
| virtual std::string | GetType () const =0 |
| Get Type of Object. | |
| virtual std::string | GetJson (VarDb &db) const =0 |
| Get JSON presentation of the object. | |
User access interface Presentation interface is Json based to allow interface to WEB based GUI


All Packages Class Hierarchy This Package Previous Next Index
Interface javax.servlet.ServletContext
- public interface ServletContext
The ServletContext interface gives servlets access to information about
their environment, and allows them to log significant events. Servlet
writers decide what data to log. The interface is implemented by
services, and used by servlets. Different virtual hosts should have
different servlet contexts.
Servlets get the ServletContext object via the getServletContext
method of ServletConfig. The ServletConfig object is provided to
the servlet at initialization, and is accessible via the servlet's
getServletConfig method.
- See Also:
- getServletConfig, getServletContext
-
getAttribute(String)
- Returns the value of the named attribute of the network service,
or null if the attribute does not exist.
-
getMimeType(String)
- Returns the mime type of the specified file, or null if not known.
-
getRealPath(String)
- Applies alias rules to the specified virtual path and returns the
corresponding real path.
-
getServerInfo()
- Returns the name and version of the network service under which
the servlet is running.
-
getServlet(String)
- Returns the servlet of the specified name, or null if not
found.
-
getServletNames()
- Returns an enumeration of the Servlet object names in this server.
-
getServlets()
- Returns an enumeration of the Servlet objects in this server.
Deprecated.
-
log(Exception, String)
- Write the stacktrace and the given message string to the
servlet log file.
-
log(String)
- Writes the given message string to the servlet log file.
getServlet
public abstract Servlet getServlet(String name) throws ServletException
- Returns the servlet of the specified name, or null if not
found. When the servlet is returned it is initialized and
ready to accept service requests.
Note: This is a dangerous method to call for the
following reasons.
- When this method is called the state of the servlet may not
be known, and this could cause problems with the server's
servlet state machine.
- It is a security risk to allow any servlet to be able to
access the methods of another servlet.
- Parameters:
- name - the name of the desired servlet
- Throws: ServletException
- if the servlet could not be initialized
getServlets
public abstract Enumeration getServlets()
- Note: getServlets() is deprecated.
Please use getServletNames in conjunction with getServlet
- Returns an enumeration of the Servlet objects in this server.
Only servlets that are accessible (i.e., from the same namespace)
will be returned. The enumeration always includes the servlet
itself.
Note: This is a dangerous method to call for the
following reasons.
- When this method is called the state of the servlet may not
be known, and this could cause problems with the server's
servlet state machine.
- It is a security risk to allow any servlet to be able to
access the methods of another servlet.
- See Also:
- getServletNames, getServlet
getServletNames
public abstract Enumeration getServletNames()
- Returns an enumeration of the Servlet object names in this server.
Only servlets that are accessible (i.e., from the same namespace)
will be returned. The enumeration always includes the servlet
itself.
Note: This is a dangerous method to call for the
following reasons.
- When this method is called the state of the servlet may not
be known, and this could cause problems with the server's
servlet state machine.
- It is a security risk to allow any servlet to be able to
access the methods of another servlet.
log
public abstract void log(String msg)
- Writes the given message string to the servlet log file.
The name of the servlet log file is server specific; it
is normally an event log.
- Parameters:
- msg - the message to be written
log
public abstract void log(Exception exception,
String msg)
- Write the stacktrace and the given message string to the
servlet log file. The name of the servlet log file is
server specific; it is normally an event log.
- Parameters:
- exception - the exception to be written
- msg - the message to be written
getRealPath
public abstract String getRealPath(String path)
- Applies alias rules to the specified virtual path and returns the
corresponding real path. For example, in an HTTP servlet,
this method would resolve the path against the HTTP service's
docroot. Returns null if virtual paths are not supported, or if the
translation could not be performed for any reason.
- Parameters:
- path - the virtual path to be translated into a real path
getMimeType
public abstract String getMimeType(String file)
- Returns the mime type of the specified file, or null if not known.
- Parameters:
- file - name of the file whose mime type is required
getServerInfo
public abstract String getServerInfo()
- Returns the name and version of the network service under which
the servlet is running. For example, if the network service was
an HTTP service, then this would be the same as the CGI variable
SERVER_SOFTWARE.
getAttribute
public abstract Object getAttribute(String name)
- Returns the value of the named attribute of the network service,
or null if the attribute does not exist. This method allows
access to additional information about the service, not already
provided by the other methods in this interface. Attribute names
should follow the same convention as package names. The package
names java.* and javax.* are reserved for use by Javasoft, and
com.sun.* is reserved for use by Sun Microsystems.
- Parameters:
- name - the name of the attribute whose value is required
- Returns:
- the value of the attribute, or null if the attribute
does not exist.
All Packages Class Hierarchy This Package Previous Next Index


4. Performing all calculations at once
To install pyAp, one can first download pyAp or clone from the github. Then change the working directory to your download folder, assume one downloaded from github as pyAp-main, for example:
$ cd pyAp-main
If you downloaded the lastest version of pyAp, there should be several directories including a setup.py
script, docs
, pyAp
, example
, contrib
and tutorial
folders.
Then one can run the python command to install setup.py
file in the folder as:
$ python setup.py install
pyAp includes a python script integrated all models and runs with command line. To use the script, one should change the working directory to the example folder:
$ cd example
Note that for windows users, the command line commands work in Anaconda prompt or shell like terminal. For Mac users, the commands can run directly in the terminal. Excute the script with a python command:
$ python run_all-in-one.py
Let us start!
Calculate mole fractions and a.p.f.u. ?(y/n):y
By choosing y
as yes and n
as no to continue or skip the calculation.
>> results saved to csv!
SI TI AL ... SR stoi,(Ca/P-5/3)/(5/3)*100% sample
0 0.017412 0.013097 0.020520 ... 0.010095 3.656599 Ap1
1 0.017514 0.013175 0.020641 ... 0.010155 3.656599 Ap2
2 0.017419 0.013103 0.020528 ... 0.010100 3.656599 Ap3
[3 rows x 19 columns]
Then we continue to plot the F-Cl-OH ternary diagram of apatite:
Plot F-Cl-OH ternary ?(y/n):y
Close the plot window for next step. Before closing it you could save the plot by clicking on the "save" button in the same window.
Calculate melt H 2 O concentration:
Calculate melt H2O concentraion?(y/n): y
Use mole fractions just calculated?(y/n): y
The MCS is also integrated in the script, the default is to run 1000 times:
Run MC for error propagation?(y/n): y
>> Simulation starts ...
>> Simulation completed
>> mc = 1000. All MC results are saved in csv file: outputs_melt_water_allin1.csv
MeltWater_calcfromF ... MeltWater_Cl_error,100%
0 1.101500 ... 48.146486
1 1.937091 ... 43.507000
2 0.744809 ... 35.141224
[3 rows x 9 columns]
>> The median and standard deviation of MC results are saved in csv file: outputs_melt_water_allin1.csv
Close the plot window for next step. Before closing it you could save the plot by clicking on the "save" button in the same window.


(For now) the latest episode, reminiscing the times of the podcast, and index woes.
Listen, Download, or see Show Notes
In which we talk about build systems, dependency graphs, conferences (who would've guessed), and XCTest.
Listen, Download, or see Show Notes
In this episode, we meet a "surprise" guest and talk about the last couple of months and what it is like to work at a big company (... called Apple).
Listen, Download, or see Show Notes
In this episode we discuss platform teams. What are they, when do you need them, how do they work. With Special Guest Patrick Balestra from Spotify.
Listen, Download, or see Show Notes
In this episode we discuss the pros and cons of switching to a management position. What is it like, can you still code, and how should you go about it. We discuss this topic with Cate Huston and Tammo Freese. Also: Great recommendations and raccoons in the show notes!
Listen, Download, or see Show Notes
In this episode, we initially discuss SwitUI and Apple documentation, but then dive off into a random discussion about pets, time travel, fireworks, and much more
Listen, Download, or see Show Notes
In which Bas announces leaving the podcast (for now), and Bene upgrades his setup. We also take a look back at all the episodes we've recorded in the last three years.
Listen, Download, or see Show Notes
Where we talk about Apple's October event, and the announced iPhone 12 and HomePod mini, as well as Apple Silicon.
Listen, Download, or see Show Notes
Where we talk about Swift for Windows, GUI development, ARM Macs, side projects and the recent Apple Event
Listen, Download, or see Show Notes
Where we talk about Swift for Windows, GUI development, ARM Macs, side projects and the recent Apple Event
Listen, Download, or see Show Notes
Where we talk about the history of NSSpain, looking for new jobs, and Bas makes an announcement.
Listen, Download, or see Show Notes
Where we talk about iOS development being not so easy, blogging, and in-app purchases.
Listen, Download, or see Show Notes
Where Pawel introduces his app CodeConf and we talk about how he managed to work on this side project.
Listen, Download, or see Show Notes
Where Bas has moved to Spain and Benedikt has been spending time at his mom's... and discussing WWDC.
Listen, Download, or see Show Notes
Where Benedikt finally reveals the application he's been working on in the last months.
Listen, Download, or see Show Notes
Where Benedikt is anticipating a new computer, and Bas is anticipating remote conferences. And Star Wars is anticipating Bas... and chocolate chip babka!
Listen, Download, or see Show Notes
In which we talk about all things remote, like organizing a meetup, conference, or work. We also take a look at our perfectly normal homescreens. Bene is considering building a silent computer. All this with Pedro Carrasco!
Listen, Download, or see Show Notes
We talk about open source projects and contributing to them. Where Bas forgets what a CNAME is, and Benedikt has to look it up for him.
Listen, Download, or see Show Notes
Benedikt asks himself "what door?" watching Westworld, and Bas has a surprise!
Listen, Download, or see Show Notes
Where Bas remembers his open source projects and previous talks, Benedikt finally shares more on his secret project... and sets someone up for an interesting challenge, our dear guest, John "Paul Hudson" Sundell.
Listen, Download, or see Show Notes
Where Bas still has no reason to buy new hardware, and Benedikt learned more about unicode than he wanted to. And both have an exciting year coming up. Live from CocoaHeads Hamburg on January 9, 2020.
Listen, Download, or see Show Notes
We talk with Donny Wals on his Advent of Swift project, Disney+, working on an SDK and more.
Listen, Download, or see Show Notes
We're talking about the new 16" MacBook, the new AirPods Pro, GitHub's new Mobile app, SwiftUI learnings and more.
Listen, Download, or see Show Notes
We're giving an overview over some of Europe's awesome iOS conferences in the last months.
Listen, Download, or see Show Notes
We're talking about our initial Xcode 11 thoughts as well as the joy of just using Apple's latest tech in a brand new project.
Listen, Download, or see Show Notes
We're talking about AwfulUI, a project which aims to re-implement the syntax of SwiftUI on top of UIKit in order to support iOS 12 or lower
Listen, Download, or see Show Notes
In which Benedikt explains Vim to Bas, new Apple hardware apparently is(n't) interesting, and interesting projects.
Listen, Download, or see Show Notes
We talk about the Swift Island and Swift Aveiro conferences, static site generators and puzzles in our personal projects, iPadOS windowing support, Catalyst woes, refactoring tools and Swift UI guides
Listen, Download, or see Show Notes
We start talking about WWDC announcements, notably SwiftUI and iPadOS
Listen, Download, or see Show Notes
We talk about our interests outside of work, like watchmaking, electronic music, coffee and chocolate.
Listen, Download, or see Show Notes
Benedikt and Bas talk about the upcoming WWDC, how to make the most out of the conference, and what to expect. Also, career changes!
Listen, Download, or see Show Notes
try! Swift Tokyo, Swift 5, Strings in Swift, Apple Subscriptions, and picks of the week
Listen, Download, or see Show Notes
On technical writing and editing, finding unused code, and more.
Listen, Download, or see Show Notes
Solving puzzles, algorithms, macros, and Swift 5.
Listen, Download, or see Show Notes
Talking about more conferences (because of course), iPad, and cool projects we've seen on the web.
Listen, Download, or see Show Notes
Starting fresh into the new year with a discussion on Xcode 10.2 beta 1, the Swift Community Podcast, and more
Listen, Download, or see Show Notes
A discussion on how we recently refactored our networking stack at XING, from planning to implementation. And emoji.
Listen, Download, or see Show Notes
An interview with Paul Hudson about his career, talking about journalism, books, Venn diagrams, conference speaking and diversity.
Listen, Download, or see Show Notes
A general discussion around iOS conferences: Why you should go there, what you should do there, and what to do if you want to give a talk. Also a short report on two conferences we just attended: NSSpain and Try Swift.
Listen, Download, or see Show Notes
Bas and Benedikt discuss what a "Pro" device represents at Apple, what a Mac Mini Pro could be, and why the Touchbar should not be in a Pro device.
Listen, Download, or see Show Notes
Where Bas and Benedikt discuss iPad, our awful static site engine, Swift scripting, Strings in Swift and Zelda.
Listen, Download, or see Show Notes
Where Bas and Benedikt discuss MacBook Keyboards, Swift's eighth birthday, Swift conferences, Mac Development, and Peanut-Butter Pizza.
Listen, Download, or see Show Notes


--- title: Proxy Clients shortTitle: Clients layout: page pageOrder: 3 section: 'Proxy' subsection: true sitemap: priority: 0.7 changefreq: 'monthly' lastmod: 2015-04-18T22:40:27+01:00 ---
MockServer Proxy has the following clients:
Note: It is not necessary to use the provided clients because the protocol is very simple JSON/HTTP web api.
All clients support:
Java Proxy Client
To simplest way to interact with proxy from Java is to use org.mockserver.client.proxy.ProxyClient which provides the following API:
public class ProxyClient {
/**
* Start the client communicating to the proxy at the specified host and port
* for example:
* ProxyClient mockServerClient = new ProxyClient("localhost", 1080);
*
* @param host the host for the proxy to communicate with
* @param port the port for the proxy to communicate with
*/
public ProxyClient(String host, int port);
/**
* Pretty-print the json for all requests / responses as Expectations to the log.
* They are printed into a dedicated log called mockserver_request.log
*/
public ProxyClient dumpToLogAsJSON();
/**
* Pretty-print the json for matching requests and their responses as Expectations to the log.
* They are printed into a dedicated log called mockserver_request.log
*
* @param httpRequest the http request that is matched against when deciding what to log if null all requests are logged
*/
public ProxyClient dumpToLogAsJSON(HttpRequest httpRequest);
/**
* Output Java code for creating all requests / responses as Expectations to the log.
* They are printed into a dedicated log called mockserver_request.log
*/
public ProxyClient dumpToLogAsJava();
/**
* Output Java code for creating matching requests and their responses as Expectations to the log.
* They are printed into a dedicated log called mockserver_request.log
*
* @param httpRequest the http request that is matched against when deciding what to log if null all requests are logged
*/
public ProxyClient dumpToLogAsJava(HttpRequest httpRequest);
/**
* Reset the proxy by clearing recorded requests
*/
public ProxyClient reset();
/**
* Stop the proxy gracefully (only support for Netty and Vert.X versions, not supported for WAR version)
*/
public ProxyClient stop();
/**
* Clear all recorded requests that match the httpRequest parameter
*
* @param httpRequest the http request that is matched against when deciding whether to clear recorded requests
*/
public ProxyClient clear(HttpRequest httpRequest);
/**
* Verify a request has been sent for example:
*
* mockServerClient
* .verify(
* request()
* .withPath("/some_path")
* .withBody("some_request_body")
* );
*
* @param httpRequest the http request that must be matched for this verification to pass
* @throws AssertionError if the request has not been found
*/
public ProxyClient verify(HttpRequest httpRequest); throws AssertionError
/**
* Verify a request has been sent for example:
*
* mockServerClient
* .verify(
* request()
* .withPath("/some_path")
* .withBody("some_request_body"),
* VerificationTimes.exactly(3)
* );
*
* Times supports multiple static factory methods:
*
* once() - verify the request was only received once
* exactly(n) - verify the request was only received exactly n times
* atLeast(n) - verify the request was only received at least n times
*
* @param httpRequest the http request that must be matched for this verification to pass
* @param times the number of times this request must be matched
* @throws AssertionError if the request has not been found
*/
public ProxyClient verify(HttpRequest httpRequest, Times times); throws AssertionError
/**
* Retrieve the recorded requests that match the httpRequest parameter as expectations, use null for the parameter to retrieve all requests
*
* @param httpRequest the http request that is matched against when deciding whether to return each expectation, use null for the parameter to retrieve for all requests
* @return an array of all expectations that have been recorded by the proxy
*/
public Expectation[] retrieveAsExpectations(HttpRequest httpRequest);
/**
* Retrieve the recorded requests that match the httpRequest parameter as a JSON array, use null for the parameter to retrieve all requests
*
* @param httpRequest the http request that is matched against when deciding whether to return each expectation, use null for the parameter to retrieve for all requests
* @return a JSON array of all expectations that have been recorded by the proxy
*/
public String retrieveAsJSON(HttpRequest httpRequest);
}
JavaScript Proxy Client
To interact with the proxy from JavaScript it is possible to use either:
To include this file is an HTML page use one of the following script tag to load the file from MaxCDN:
<script type="text/javascript" src="https://cdn.rawgit.com/jamesdbloom/mockserver/63e0a42396431720505d9f5730427c8a7f6de972/mockserver-client-javascript/src/main/javascript/proxyClient.js"></script>
To use the Node.js module add the following code to your node project:
var mockServer = require('mockserver-client'),
proxyClient = mockServer.proxyClient;
Both versions of proxyClient provide the same API as follows:
var proxyClient = function (host, port) {
"use strict";
/**
* Retrieve the recorded requests that match the httpRequest parameter as a JSON array, use null for the parameter to retrieve all requests
*
* @param request the http request that is matched against when deciding whether to return each expectation, use null for the parameter to retrieve for all requests
* @param a JSON array of all expectations that have been recorded by the proxy
*/
var retrieve = function (request),
/**
* Verify a request has been sent for example:
*
* client.verify({
* 'httpRequest': {
* 'method': 'POST',
* 'path': '/somePath'
* }
* }, 2, true);
*
* @param request the http request that must be matched for this verification to pass
* @param count the number of times this request must be matched
* @param exact true if the count is matched as "equal to" or false if the count is matched as "greater than or equal to"
* @throws an error is the verify fails detailing which requests have been sent
*/
verify = function (request, count, exact),
/**
* Verify a sequence of requests has been sent for example:
*
* client.verifySequence(
* {
* 'method': 'POST',
* 'path': '/first_request'
* },
* {
* 'method': 'POST',
* 'path': '/second_request'
* },
* {
* 'method': 'POST',
* 'path': '/third_request'
* }
* );
*
* @param arguments the list of http requests that must be matched for this verification to pass
* @throws an error is the verify fails detailing which requests have been sent
*/
verifySequence = function (),
/**
* Reset the proxy by clearing all recorded requests
*/
reset = function (),
/**
* Clear all recorded requests that match the specified path
*
* @param path the path to decide which expectations to cleared
*/
clear = function (path),
/**
* Pretty-print the json for all requests / responses that match the specified path
* as Expectations to the log. They are printed into a dedicated log called mockserver_request.log
*
* @param path the path to decide which expectations to dump to the log
*/
dumpToLogs = function (path);
return {
retrieve: retrieve,
verify: verify,
reset: reset,
clear: clear,
dumpToLogs: dumpToLogs
};
};
To interact with MockServer Proxy from Ruby use mockserver-client gem as follows:
Add the gem to the application Gemfile:
gem 'mockserver-client'
Or install the gem directly:
gem install mockserver-client
To write recorded requests to the logs as Java:
require "mockserver-client"
class SomeClass
include MockServer
include MockServer::Model::DSL
def writeToLogAsJava
ProxyClient.new('localhost', 1090).dump_log(request(:POST, '/login'), true)
end
end
To write recorded requests to the logs as JSON:
require "mockserver-client"
class SomeClass
include MockServer
include MockServer::Model::DSL
def writeToLogAsJSON
ProxyClient.new('localhost', 1090).dump_log(request(:POST, '/login'))
end
end
To verify a request has been sent:
require "mockserver-client"
class SomeClass
include MockServer
include MockServer::Model::DSL
def verifyRequest
client = ProxyClient.new('localhost', 1090)
client.verify(request(:POST, '/login') do |request|
request.body = exact({ username: 'foo', password: 'bar' }.to_json)
request.cookies = [cookie("sessionId", ".*")]
end)
end
end


{{.SteamName}}
steam id: {{.SteamID}}
{{range .Games}}
{{.Name}}
steam app id: {{.AppID}}
minutes played: {{.Playtime}}
{{end}}


Fast-track this {{ 'couple' if isPartnerFlow else 'person' }}
Claimant status
Redundant EEA citizen {{ 'with a qualifying partner' if isPartnerFlow}}
Evidence to collect
- passport – number, nationality, date of issue and expiry date
- redundancy letter from employer – date, reason for redundancy and other details
- payslips from the last 3 months – name of employer and earnings (including dates) or
- bank statement showing earnings from the last 3 months or
- contract or letter from employer confirming type and duration of contract, hours of work and earnings


Leadway Invest
Authentication Blocked
Incorrect Login Details
Network error
Processing
Authenticated
Sign In to your account
Sign In


Used to start and stop measurement collection.
Spawns a new thread that continuously invokes the measure() method at a configurable interval.
Spawns a new thread that continuously invokes the measure() method at a configurable interval.
Useful for collecting periodic measurements throughout the duration of a test.
Extend this class for collectors written in Java. Collectors written in scala can mix in ContinuousMeasurement.
Created by tomas.mccandless on 8/25/15.
Used to start and stop measurement collection.
Implementations of a measurement or measurement collection should extend this class, and probably mix in com.workday.warp.persistence.CorePersistenceAware. Note that the collection of a measurement may encompass a number of different types of operations. It may include such activities as collecting from JMX, scraping server logs, or as simple as starting and stopping a clock.
Created by tomas.mccandless on 8/13/15. Based on a java interface created by michael.ottati on 8/20/13.