We describe here a Finite Element algorithm for the approximation of the one-dimensional fractional Laplacian $(-d_x^2)^s$ on the interval $(-L,L)$, $L>0$ and for the numerical resolution of the following fractional Poisson equation
This algorithm has also been emploied in [2,3] for the numerical controllability of fractional parabolic problems (see our previous entries in the DyCon Blog, WP3_P0001 and WP3_P0022).
We recall that the fractional Laplacian is defined, for all $s\in(0,1)$ and any function $u$ regular enough, as the following singular integral
with $c_s$ an explicit normalization constant given by
$\Gamma$ being the usual Euler Gamma function.
The starting point of the FE method is the definition of a bilinear form associated to the fractional Laplace operator $(-d_x^2)^s$ and the introduction of the variational formulation corresponding to the elliptic problem \eqref{Fl_Poisson}.
This variational formulation is given as follows: find $u\in H_0^s(-L,L)$ such that the identity
is satisfied for any function $v\in H_0^s(-L,L)$. In \eqref{variational}, with $H_0^s(-L,L)$ we indicate the space
$H^s(\mathbb{R})$ being the usual fractional Sobolev space. Moreover, the bilinear form
is defined as
Let us describe how, starting from the above bilinear form, we can obtain our FE approximation. For simplicity, in what follows we will take $L=1$, although the methodology remains the same for any real $L>0$.
Let us take a uniform partition of the interval $(-1,1)$ as follows:
with $x_{i+1}=x_i+h$, $i=0,\ldots N$. We call $\mathfrak{M}$ the mesh composed by the points ${x_i\,:\, i=1,\ldots,N}$, while the set of the boundary points is denoted $\partial\mathfrak{M}:={x_0,x_{N+1}}$.
Now, define $K_i:=[x_i,x_{i+1}]$ and consider the discrete space
where $\mathcal{P}^1$ is the space of the continuous and piece-wise linear functions. Hence, we approximate \eqref{variational} with the following discrete problem: find $u_h\in V_h$ such that
for all $v_h\in V_h$. If now we indicate with
a basis of $V_h$, it will be sufficient that the above equality is satisfied for all the functions of the basis, since any element of $V_h$ is a linear combination of them. Therefore the problem takes the following form
Clearly, since $u_h\in V_h$, we have $u_h(x) = \sum_{j=1}^N u_j\phi_j(x)$, where the coefficients $u_j$ are, a priori, unknown. In this way, \eqref{WFD} is reduced to solve the linear system $\mathcal A_h u=F$, where the stiffness matrix $\mathcal A_h\in \mathbb{R}^{N\times N}$ has components
while the vector $F\in\mathbb{R}^N$ is given by $F=(F_1,\ldots,F_N)$ with
Moreover, the basis
that we will employ is the classical one in which each $\phi_i$ is the tent function with $supp(\phi_i)=(x_{i-1},x_{i+1})$ and verifying $\phi_i(x_j)=\delta_{i,j}$. In particular, for $x\in{x_{i-1},x_i,x_{i+1}}$ the $i^{th}$ function of the basis is explicitly defined as (see Figure 1)
Figure 1. Basis function $\phi_i$ on its support $(x_{i-1},x_{i+1})$.
We now start building the stiffness matrix $\mathcal A_h$ approximating the fractional Laplacian. This will be done in three steps, since the values of the matrix can be computed differentiating among three well defined regions: the upper triangle, corresponding to $j\geq i+2$, the upper diagonal corresponding to $j=i+1$ and the diagonal, corresponding to $j=i$. In each of these regions the intersections among the support of the basis functions are different, thus generating different values of the bilinear form.
We present below an abridged explanation of how to compute the entries of $\mathcal{A}_h$. Complete details may be found in [2].
Step 1: $j\geq i+2$
In this case we have $supp(\phi_i)\cap supp(\phi_j) =\emptyset$ (see also Figure 2). Hence, \eqref{stiffness_nc} is reduced to computing only the integral
Figure 2. Basis functions $\phi_i(x)$ and $\phi_j(x)$ for $j\geq i + 1$. The supports are disjoint.
Taking into account the definition of the basis function \eqref{basis_fun}, the integral \eqref{elem_noint_app} becomes
Let us introduce the following change of variables:
Then, rewriting (with some abuse of notations since there is no possibility of confusion) $\hat{x}=x$ and $\hat{y}=y$, we get
This integral can be computed explicitly, and we obtain
Notice that, when $s=1/2$, both the numerator and the denominator of the expression above are zero. In this case, the value of $a_{i,j}$ can be obtained by taking the limit $s\to 1/2$ and we get
if $k\neq 2$ and
Step 2: $j= i+1$
This is the most cumbersome case, since it is the one with the most interactions between the basis functions (see Figure 3).
Figure 3. Basis functions $\phi_i(x)$ and $\phi_{i+1}(x)$. In this case, the intersection of the supports is the interval $[x_i,x_{i+1}]$.
Using the symmetry of the integral with respect to the bisector $y=x$, we have
Also in this case, the terms $Q_i$, $i=1,\ldots,6$, can be computed explicitely, by noticing also the following facts:
- $Q_1=Q_6=0$ since $\phi_i = 0$ on the domain of integration.
- $Q_2=Q_5$ due to symmetry.
Then, the elements $a_{i,i+1}$ are given by the sum $2Q_2+Q_3+Q_4$ and we have
Step 3: $j= i$
As a last step, we fill the diagonal of the matrix $\mathcal A_h$, which collects the values corresponding to $\phi_i(x)=\phi_j(x)$ (see Figure 4).
Figure 4. Basis functions $\phi_i(x)=\phi_j(x)$.
In this case, we have
Once again, the terms $R_i$, $i=1,\ldots,7$ can be computed explicitely, by taking also into account that $R_1=R_3=R_6=R_7=0$ because the corresponding integration domains are all away from the support of the basis functions.
The result of these computations gives the values
Step 4: building of $\mathcal A_h$
Summarizing, we have the following values for the elements of the stiffness matrix $\mathcal{A}_h$: for $s\neq 1/2$
For $s=1/2$, instead, we have
Numerical results
We present the numerical simulations corresponding to the algorithm previously described.
First of all, we test numerically the accuracy of our method for the resolution of the elliptic equation \eqref{Fl_Poisson} by applying it to the following problem
In this particular case, the unique solution $u$ can be computed exactly and it is given by
where $\chi_{(-1,1)}$ indicates the characteristic function of the interval $(-1,1)$.
The solution of \eqref{poisson} in the case $s=0.1$ and $N=50$ is computed with the following script which emploies the function FEFractionalLaplacian.m ginving the FE discretization of $(-d_x^2)^s$.
s = 0.1;
N = 50;
L = 1;
x = linspace(-L,L,N+2);
x = x(2:end-1);
h = x(2)-x(1);
f = @(x) 1+0*x;
Phi = @(x) 1-abs(x);
F = zeros(N,1);
for i=1:N
xx = linspace(x(i)-h,x(i)+h,N+1);
xx = 0.5*(xx(2:end)+xx(1:end-1));
B1 = f(xx).*(Phi((xx-x(i))/h));
F(i) = ((2*h)/N)*sum(B1);
end
A = FEFractionalLaplacian(s,L,N);
sol = A\F;
In Figure 5, we show a comparison for different values of $s$ between the exact solution \eqref{real_sol} and the computed numerical approximation.
Figure 5. Real and numerical solution.
One can notice that when $s=0.1$ (and also for other small values of s), the computed solution is to a certain extent different from the exact solution. Notwithstanding, it is well-known that the notion of trace is not defined for the spaces $H^s(-1,1)$ with $s\leq 1/2$. Hence, it is somehow natural that we cannot expect a point-wise convergence in this case.
Furthermore, the accuracy of our algorithm is validated by a simple error analysis.
The computation of the error in the space $H_0^s(-1,1)$ can be readily done by using the definition of the bilinear form, namely
where have used the orthogonality condition $a(v_h,u-u_h)=0$ for all $v_h \in V_h$.
For this particular test, since $f\equiv 1$ in $(-1,1)$, the problem is therefore reduced to
where the right-hand side can be easily computed, since we have the closed formula
and the term corresponding to $\int_{-1}^1u_h$ can be carried out numerically. Moreover, we have the following convergence result.
Theorem [2] For the solution $u$ of \eqref{WFD} and its FE approximation $u_h$ given by \eqref{WFD}, if $h$ is sufficiently small, the following estimates hold
where $\mathcal{C}$ is a positive constant not depending on $h$.
In Figure 6, we present the computational errors evaluated for different values of $s$ and $h$, which can be obtained with the following function.
function [h,e] = error_fl(s,N)
x = linspace(-1,1,N+2);
x = x(2:end-1);
h = x(2)-x(1);
f = @(x) 1+0*x;
Phi = @(x) 1-abs(x);
F = zeros(N,1);
for i = 1:N
xx = linspace(x(i)-h,x(i)+h,N+1);
xx = 0.5*(xx(2:end)+xx(1:end-1));
B1 = f(xx).*(Phi((xx-x(i))/h));
F(i) = ((2*h)/N)*sum(B1);
end
A = FEFractionalLaplacian(s,1,N);
sol = A\F;
val = pi/(2^(2*s)*gamma(s+0.5)*gamma(s+1.5));
valnum = h*sum(sol);
e = sqrt(val-valnum);
Figure 6. Computational error in logarithmic scale in terms for different values of $s$.
The rates of convergence shown are of order (in $h$) of $1/2$, and this convergence rate is maintained also for small values of $s$. This confirms the accuracy of our approximation. In particular, the behavior shown in Figure 6 is not in contrast with the known theoretical results.
References
[1] G. Acosta, F. Bersetche and J. P. Borthagaray, A short FE implementation for a 2d homogeneous Dirichlet problem of a Fractional Laplacian. Comput. Math. Appl., Vol. 74, No. 4 (2017), pp. 784-816.
[2] U. Biccari and V. Hernández-Santamarı́a, Controllability of a one-dimensional fractional heat equation: theoretical and
numerical aspects. IMA J. Math. Control. Inf, to appear, 2018.
[3] U. Biccari, M. Warma and E. Zuazua, Controllability of the one-dimensional fractional heat equation under positivity constraints. Submitted.


Citizen Card Testing
Please insert a Citizen Card!!
Value
First name
Surname
Birth date
Card number
Civilian Id number
Tax number
Health number
Social security number


| Element {webdriver} | R Documentation |
HTML element
e <- s$findElement(css = NULL, linkText = NULL, partialLinkText = NULL, xpath = NULL) e$findElement(css = NULL, linkText = NULL, partialLinkText = NULL, xpath = NULL) e$findElements(css = NULL, linkText = NULL, partialLinkText = NULL, xpath = NULL) e$isSelected() e$getValue() e$setValue(value) e$getAttribute(name) e$getClass() e$getCssValue(name) e$getText() e$getName() e$getData(name) e$getRect() e$isEnabled() e$click() e$clear() e$sendKeys(...) e$moveMouseTo(xoffset = NULL, yoffset = NULL) e$executeScript(script, ...) e$executeScriptAsync(script, ...)
An Element
object.
A Session
object.
Css selector to find an HTML element.
Find
HTML elements based on their
innerText
.
Find
HTML elements based on their
innerText
. It uses partial matching.
Find HTML elements using XPath expressions.
String scalar, named of attribute, property or css key.
For getData
, the key of the data attribute.
Horizontal offset for mouse movement, relative to the
position of the element. If at least of of xoffset
and
yoffset
is NULL
, then they are ignored.
Vertical offset for mouse movement, relative to the
position of the element. If at least of of xoffset
and
yoffset
is NULL
, then they are ignored.
Value to set, a character string.
For sendKeys
the keys to send, see
key
. For executeScript
and
executeScriptAsync
argument to supply to the script.
To create Element
objects, you need to use the findElement
(or findElement
) method of a Session
object.
e$findElement()
finds the next HTML element from the
current one. You need to specify one of the css
, linkText
,
partialLinkText
and xpath
arguments. It returns a new
Element
object.
e$findElements()
finds all matching HTML elements starting from
the current element. You need to specify one of the css
,
linkText
, partialLinkText
and xpath
arguments.
It returns a list of newly created Element
objects.
e$isSelected()
returns TRUE
is the element is currently
selected, and FALSE
otherwise.
e$getValue()
returns the value of an input element, it is a
shorthand for e$getAttribute("value")
.
e$setValue()
sets the value of an input element, it is
essentially equivalent to sending keys via e$sendKeys()
.
e$getAttribute()
queries an arbitrary HTML attribute. It is
does not exist, NULL
is returned.
e$getClass()
uses e$getAttribute
to parse the
‘class’ attribute into a character vector.
e$getCssValue()
queries a CSS property of an element.
e$getText()
returns the innerText
on an element.
e$getName()
returns the tag name of an element.
e$getData()
is a shorthand for querying data-*
attributes.
e$getRect()
returns the ‘rectangle’ of an element. It is
named list with components x
, y
, height
and
width
.
e$isEnabled()
returns TRUE
if the element is enabled,
FALSE
otherwise.
e$click()
scrolls the element into view, and clicks the
in-view centre point of it.
e$clear()
scrolls the element into view, and then attempts to
clear its value, checkedness or text content.
e$sendKeys()
scrolls the form control element into view, and
sends the provided keys to it. See key
for a list of
special keys that can be sent.
e$uploadFile()
uploads a file to a <input type="file">
element. The filename
argument can contain a single filename,
or multiple filenames, for file inputs that can take multiple files.
e$moveMouseTo()
moves the mouse cursor to the element, with
the specified offsets. If one or both offsets are NULL
, then
it places the cursor on the center of the element. If the element is
not on the screen, then is scrolls it into the screen first.
e$executeScript()
and e$executeScriptAsync()
call the method of the same name on the Session
object.
The first argument of the script (arguments[0]
) will always
hold the element object itself.


Once she was back in the wagon, Nynaeve changed into a decent dress, with a few exasperated mutters for having to undo one set of buttons and do up another by herself. The plain gray wool, fine and well cut yet hardly elaborate, would pass without comment almost anywhere, but it was decidedly warmer. Still, it felt good to be decently garbed again. And somehow odd, as if she were wearing too many clothes. It must be the heat.
Quickly she knelt in front of the small brick stove with its tin chimney and opened the iron door on their valuables.
The twisted stone ring was fast nestled into her belt pouch beside Lan’s heavy signet ring and her gold Great Serpent. The small gilded coffer containing the gems Amathera had given her went into the leather scrip with the pouches of herbs taken from Ronde Macura in Mardecin and the small mortar and pestle for preparing them; she fingered through the latter just to remind herself what each contained, from healall to that dreadful forkroot. The letters-of-rights went in as well, and three of the six purses, none quite as fat as it had been after paying the menagerie’s way to Ghealdan. Luca might not be interested in his hundred marks, but he had had no qualms about collecting his expenses. One of the letters authorizing the bearer to do whatever she wished in the name of the Amyrlin Seat joined the rings. No more than vague rumors of some sort of trouble in Tar Valon had reached Samara; she might find a use for it, even with Siuan Sanche’s signature. The dark wooden box she left where it sat, next to three of the purses, as well as the rough jute bag containing the a’dam—that, she certainly had no wish to touch—and the silver arrow Elayne had found the night of the calamitous encounter with Moghedien.
For a moment she frowned at the arrow, contemplating Moghedien. It was best to do whatever was necessary to avoid her. It was. I bested her once! And had been hung up like a sausage in the kitchen the second time. If not for Birgitte . . . She made her own choice. The woman had said so, and it was true. I could defeat her again. I could. But if I failed . . . If she failed . . .
She was only trying to avoid the washleather purse stuffed right to the back, and she knew it, yet there was not a hair’s difference for ugliness between the purse and the thought of losing to Moghedien again. Drawing a deep breath, she gingerly reached in and took it up by the drawstrings, and knew she had been wrong. Evil seemed to bathe her hand, stronger than ever, as if the Dark One really was trying to break through the cuendillar seal inside. Better to dwell all day on defeat by Moghedien; there was a world of difference between thought and reality. It had to be imagination—there had been no such feeling in Tanchico—but she wished she could let Elayne carry that, too. Or leave it there.
Stop being foolish, she told herself firmly. It holds the Dark One’s prison shut.   The silken parcel went into the middle of a bundle of clothes she was taking with her, inside her good gray traveling cloak. A few inches’ distance was enough to take away the sensation of dark bleakness, but she still wanted to wash her hand. If only she did not know it was there. She was being foolish. Elayne would laugh at her, and Birgitte, as well. And rightly.
Actually, the clothes she wanted to keep made two packages, and she regretted every stitch she had to leave behind. Even the low-cut blue silk. Not that she ever wanted to wear anything like it again—she did not intend to touch the red dress, certainly, until she handed the intact packet to an Aes Sedai in Salidar—but she could not help totting up the cost of clothes, horses and wagons abandoned since leaving Tanchico. And the coach, and the barrels of dye. Even Elayne would have winced if she had ever thought of it. That young woman believed there would always be coin when she reached into her purse.
She was still making the second bundle when Elayne returned and silently changed into a blue silk dress. Silently, except for mutters when she had to double her arms behind her to fasten the buttons. Nynaeve would have helped, had she been asked, but since she was not, she examined the other woman for bruises while she changed. She thought she had heard a scream only minutes before Elayne arrived, and if she and Birgitte had actually come to blows . . . She was not certain she was glad to find none. A riverboat would be just as confining as this wagon in its own way, and less than pleasant if the two women were at one another’s throats. But then again, it might have helped had they worked off some of their beastly tempers.
Elayne said not a word while she gathered her own belongings, not even when Nynaeve asked, quite amiably, where she had gone haring off to as if she had sat on a cockleburr. That got only a raised chin and a chilly stare, as though the girl thought she was already on her mother’s throne.
Sometimes Elayne was even more silent, in a way that said far more than words could. Finding three purses remaining, she paused before taking them, and the temperature in the wagon lowered considerably, though the purses were only her share. Nynaeve was tired of the carping over how she doled out coins; let the woman watch them dribble away and realize there might be no more for some time. When Elayne realized the ring was gone, though, and the dark box still sitting there . . .
Elayne hefted the box and opened the lid, pursing her lips as she studied the contents, the other two ter’angreal they had carried all the way from Tear.  Either could be used to enter Tel’aran’rhiod, though not so easily or so well as could the ring; to use either it was necessary to channel Spirit, the sole one of the Five Powers that could be channeled in sleep. It had seemed only right to Nynaeve, leaving them for Elayne, since she was taking charge of the ring. Closing the box with a sharp click, Elayne stared at her, absolutely expressionless, then stuffed it into one of her bundles alongside the silver arrow. Her silence was thunderous.
Elayne also made two bundles, but hers were larger; she left nothing out except the spangled coats and breeches. Nynaeve refrained from suggesting that she had overlooked them; she should have, with the sulking that was going on, but she knew how to promote harmony. She limited herself to one sniff when Elayne ostentatiously added the a’dam to her things, though from the look she got in return, you would have thought she had made her objections known at length. By the time they left the wagon, the quiet could have been chipped and used to chill wine.
Outside, the men were ready. And muttering to themselves, and throwing impatient looks at her and Elayne. It was hardly fair. Galad and Uno had nothing to prepare. Thom’s flute and harp hung on his back in leather cases, along with a small bundle, and Juilin, notched sword-breaker at his belt and leaning on his head-high staff, wore an even smaller bundle, neatly tied. Men were willing to wear the same clothes until they rotted off.
Of course, Birgitte was ready, too, bow in hand, quiver at her hip, and a cloak-wrapped bundle at her feet not much smaller than one of Elayne’s. Nynaeve would not have put it past Birgitte to have Luca’s dresses in there, but it was what she wore that gave a moment’s pause. Her divided skirts could have been the voluminous trousers she had worn in Tel’aran’rhiod, except for being more gold than yellow and not being gathered at the ankles. The short blue coat was identical in cut.
The mystery of where the garments had come from was solved when Clarine scurried up, chattering that she had taken too long, with two more of the skirts and another coat to fold into Birgitte’s bundle. She stayed to say how sorry she was that they were leaving the show, and she was not the only one to take a few moments from the bustle of hitching horses and packing up. Aludra came with wishes for a safe journey, wherever they were going, in her Taraboner accents. And with two more boxes of her firesticks. Nynaeve tucked them into her scrip with a sigh. She had made a point of leaving the others behind, and Elayne had pushed them to the back of the shelf, behind a sack of beans, when she thought Nynaeve was not looking. Petra offered to help escort them to the river, pretending not to see his wife’s eyes tighten with concern, and so did the Chavanas, and Kin and Bari, the jugglers, though when Nynaeve told them there was no need, and Petra frowned, they could barely hide their relief. She had to speak quickly, for Galad and the other men looked on the point of accepting. Surprisingly, even Latelle appeared briefly, with words of regret, smiles, and eyes that said she would carry their bundles if it saw them gone any sooner. Nynaeve was surprised Cerandin did not come, though in a way she was just as glad. Elayne might get on famously with the woman, but since the incident where she had been assaulted, Nynaeve had felt a tension whenever she was around her, perhaps the more because Cerandin gave no outward sign of the same.
Luca himself was the last, thrusting, a handful of pitiful, drought-dwarfed wildflowers at Nynaeve—the Light alone knew where he had found them—with protestations of undying love, extravagant praises for her beauty, and dramatic vows to find her again if he had to travel to the corners of the world. She was not sure which made her cheeks grow hotter, but her frosty stare wiped the grin from Juilin’s face and astonishment from Uno’s. Whatever Thom and Galad thought, they had enough sense to keep their features smooth. She could not make herself look at Birgitte or Elayne.
The worst was that she had to stand there and listen, wilted flowers drooping over her hand, her face growing redder. Trying to send him away with a flea in his ear would likely only have sparked him to greater efforts, and given the others more fodder than they already had.
She held on to the flowers, striding ahead of the others so she did not have to see their faces and angrily shoving bundles back into place when they shifted, until she was out of sight of the wagons around the canvas wall. Then she threw the bedraggled blossoms down so violently that Ragan and the rest of the rough-clad Shienarans, squatting halfway across the meadow to the road, exchanged glances. Each had a blanket-wrapped bundle on his back—small, of course!—alongside his sword, but they were hung about with enough water bottles to last for days, and every third man had a pot or kettle dangling somewhere. Fine. If there was cooking to be done, let them do it! Not waiting for them to decide whether she was safe to approach, she stalked out to the dirt road alone.
Valan Luca was the source of her fury—Humiliating her that way! She should have thumped his head and the Dark One take what anyone thought!—but its target was Lan Mandragoran. Lan had never given her flowers. Not that that was of any account. He had expressed his feelings in words deeper and more heartfelt than Valan Luca could ever manage.  Still, flowers would have been nice. Nicer than another explanation of why their love could never be, certainly. Men and their word! Men and their honor! Wedded to death, was he? Him and his personal war with the Shadow! He was going to live, he was going to wed her, and if he thought differently on either point, she intended to set him straight. There was only the small matter of his bond to Moiraine to deal with. She could have screamed in frustration.
She was a hundred paces down the road before the others caught up, glancing at her sideways. Elayne only sniffed loudly while struggling to readjust the two large bundles on her back—she would have to take everything—but Birgitte strode along pretending to speak under her breath yet quite audibly muttering about women who rushed off like Carpan girls leaping from a river cliff. Nynaeve ignored them equally.
The men spread out, Galad in the lead flanked by Thom and Juilin, the Shienarans in a long file to either side, wary eyes searching every withered bush and fold in the ground. Walking in the middle of them, Nynaeve felt foolish—you would have thought they expected an army to rise up out of the ground; you would have thought she and the other two women were helpless—especially when the Shienarans silently followed Uno’s lead and unlimbered their swords. Why, there was not a human being in sight; even the shanty villages appeared abandoned. Galad’s blade remained in its scabbard, but Juilin began hefting his thumb-thick staff instead of using it for a walking stick, and knives appeared in Thom’s hands and vanished as if he was unconscious of what he was doing. Even Birgitte fitted an arrow to her bow. Nynaeve shook her head. It would take a brave mob to come in eyeshot of this lot.
Then they reached Samara and she began to wish she had accepted Petra’s offer, and the Chavanas’, and anyone else’s she could have found.
The gates stood open and unguarded, and six black columns of smoke rose above the gray town walls. The streets beyond were still. Shattered glass from broken windows crunched underfoot; that was the only sound except for a distant buzz, like monstrous swarms of wasps scattered through the city. Furniture and bits of clothing littered the paving stones, pots and pottery, things dragged from shops and homes, whether by looters or by people fleeing there was no way to tell.
Not only property had been destroyed. In one place a corpse in a fine green silk coat hung half out of a window, limp and unmoving; in another a fellow garbed in rags dangled by his neck from the eaves of a tinsmith’s shop. Sometimes, down a side street or alley, she caught a glimpse of what might have been discarded bundles of old clothes; she knew they were not.
In one doorway, where the splintered door hung crazily by a single hinge, small flames licked up around a wooden staircase, smoke just beginning to trickle out. The street might be empty now, but whoever had done that was not long gone. Head swiveling, trying to watch every way at once, Nynaeve took a firm hold on her belt knife.
Sometimes the angry buzz grew louder, a wordless guttural roar of rage that seemed no more than one street over, and sometimes it faded to a dull murmur; yet when trouble came, it came suddenly and silently. The mass of men stalked around the next corner but one, like a pack of hunting wolves, jamming the street from side to side, soundless but for the thud of boots. The sight of Nynaeve and the others was a torch tossed into a haystack. There was no hesitation; as one they surged forward, howling and rabid, waving pitchforks and swords, axes and clubs, anything that could be taken to hand for a weapon.
Enough anger still clung in Nynaeve for her to embrace saidar, and she did it without thinking, even before she saw the glow spring up around Elayne. There were a dozen ways she could halt this mob by herself, a dozen more she could destroy it if she chose. If not for the possibility of Moghedien. She was not sure whether the same thought held Elayne. She only knew that she hung on to her anger and the True Source with equal fervor, and it was Moghedien more than the onrushing rabble that made it hard. She hung on to them, and knew she dared do nothing. Not if there was any other chance. Almost, she wished she could cut the flows being woven by Elayne. There had to be some other chance.
One man, a tall fellow in a ragged red coat that had belonged to someone else once by its green-and-gold embroidery, ran out in front of the others on long legs, shaking a wood-axe overhead. Birgitte’s arrow took him through one eye. He went down in a sprawling heap and was trampled by the others, all contorted faces and wordless screams. Nothing was going to stop them. With a wail, half outrage, half pure fear, Nynaeve jerked her belt knife free and at the same time prepared to channel.
Like a wave striking boulders, the charge splintered on Shienaran steel. The top-knotted men, not much less ragged than those they fought, worked their two-handed swords methodically, craftsmen at their craft, and the onslaught went no farther than their thin line. Men fell screaming for the Prophet, but more scrambled over them. Juilin, the fool, was in that row, flat-topped conical cap perched on his dark head, thin staff a blur that deflected stabs, broke arms and cracked skulls. Thom worked behind the line, his limp strong as he darted from place to place to confront the few who managed to wriggle through; only a dagger in either hand, yet even swordsmen died on those blades. The gleeman’s leathery face was grim, but when one bulky fellow in a blacksmith’s leather vest nearly reached Elayne with his pitchfork, Thom snarled as viciously as any in the mob and very nearly cut the man’s head off while slitting his throat. Through it all Birgitte calmly shifted from spot to spot, every arrow finding an eye.
Yet if they held the mob, it was Galad who broke them. He faced their charge as though awaiting the next dance at a ball, arms folded and unconcerned, not even bothering to bare his blade until they were almost on top of him. Then he did dance, all his grace turned in an instant to fluid death. He did not stand against them; he carved a path into their heart, a clear swath as wide as his sword’s reach. Sometimes five or six men closed in around him with swords and axes and table legs for clubs, but only for the brief time it took them to die. In the end, all their rage, all their thirst for blood, could not face him. It was from him that the first ran, flinging away weapons, and when the rest fled, they divided around him. As they vanished back the way they had come, he stood twenty paces from anyone else, alone among the dead and the groans of the dying.
Nynaeve shivered as he bent to clean his blade on a corpse’s coat. He was graceful, even doing that. He was beautiful, even doing that.
She had no idea how long it had taken. Some of the Shienarans were leaning on their swords, panting. And eyeing Galad with a good deal of respect. Thom was bent over with one hand on his knee, trying to fend Elayne off with the other while telling her he just had to catch his breath. Minutes, an hour; it could have been either.
For once, looking at the injured men lying on the pavement here and there, the one crawling away, she felt no desire to Heal, no pity at all. Not far off was a pitchfork, where someone had flung it; a man’s severed head was impaled on one tine, a woman’s on another. All she felt was queasy, and grateful that it was not her head. That, and cold.
“Thank you,” she said aloud, to no one in particular and to everyone. “Thank you very much.” The words grated a little—she did not like confessing something she had not been able to do for herself—but they were fervent. Then Birgitte nodded in acknowledgment, and Nynaeve had to struggle with herself. But the woman had done as much as anyone. Considerably more than she herself. She thrust her belt knife back into its sheath. “You . . . shot very well.”
With a wry grin, as if she knew exactly how difficult those words had been, Birgitte set about recovering her arrows. Nynaeve shuddered and tried not to watch.
Most of the Shienarans had wounds, and Thom and Juilin both wore their own blood in places—miraculously, Galad was untouched; or perhaps not so miraculously, remembering how he had handled his sword—but, manlike to the bitter end, every one of them insisted that his hurts were not serious. Even Uno said they had to keep moving, him with one arm hanging and a gash down the side of his face whose scar would nearly mirror the first if it was not Healed soon.
In truth, she was not reluctant to go, despite telling herself that she should be seeing to injuries. Elayne put a supporting arm around Thom; he responded by refusing to lean on her and beginning to recite a tale in High Chant, so flowery it was difficult to recognize the story of Kirukan, the beautiful soldier queen of the Trolloc Wars.
“She had a temper like a boar caught in briars at the best,” Birgitte said softly to no one in particular. “Not at all like anyone close by.”
Nynaeve ground her teeth. Catch her complimenting the woman again, no matter what she did. Come to think of it, any man in the Two Rivers could have shot as well at that range. Any boy.
Rumbles followed them, distant roars from other streets, and often she had the feeling of eyes watching from one of the vacant, glassless windows. But word must have spread, or else the watchers had seen what happened, because they saw no one else living until suddenly two dozen Whitecloaks stepped into the street in front of them, half with drawn bows, the rest with bared blades. The Shienarans’ blades were up in a heartbeat.
Quick words between Galad and a fellow with a grizzled face beneath his conical helmet passed them through, though the man did eye the Shienarans doubtfully, and Thom and Juilin, and for that matter Birgitte. It was enough to rankle Nynaeve. All very well for Elayne to march along with her chin raised, ignoring the Whitecloaks as though they were servants, but Nynaeve did not like being taken for granted.
The river was not far. Beyond a few small stone warehouses under slate roofs, the town’s three stone docks barely reached water over the dried mud. A fat vessel with two masts sat low at the end of one. Nynaeve hoped there would be no problem obtaining separate cabins. She hoped it would not heave too badly.
 Two more Whitecloaks stood right at the dock. The children hid their faces in their mothers’ skirts, but the adults gazed yearningly at the ship. The sight wrenched at Nynaeve’s heart; she remembered the same gazes, many more of them, in Tanchico. People desperately hoping for a way to safety. She had not been able to do anything for those.
Before she could do anything for these, Galad had seized her and Elayne by the arm and hustled them along the dock and down an unsteady gangplank. Six more stern-faced men in white cloaks and burnished mail stood on the deck, watching a cluster of barefoot and mostly bare-chested men squatting in the bluff bows. It was close whether the captain at the foot of the plank gazed at the Whitecloaks more sourly or at the motley party that trooped onto his ship.
Agni Neres was a tall, bony man in a dark coat, with ears that stood out and a dour cast to his narrow face. He paid no mind to the sweat rolling down his cheeks. “You paid me passage for two women. I suppose you want me to take the other wench and the men for free?” Birgitte eyed him dangerously, but he seemed not to see.
“You shall have your fare money, my good captain,” Elayne told him coolly.
“As long as it’s reasonable,” Nynaeve said, and ignored Elayne’s sharp glance.
Neres’ mouth thinned, though it hardly seemed possible, and he addressed Galad again. “Then if you’ll get your men off my craft, I’ll sail. I like being here in daylight now less than ever.”
“As soon as you take your other passengers on,” Nynaeve said, nodding to the people huddled ashore.
Neres looked for Galad only to find that he had moved away to speak with the other Whitecloaks, then eyed the folk ashore and spoke at the air above Nynaeve’s head. “Any who can pay. Not many in that lot look like they can. And I could not take the lot if they could.”
She raised herself on tiptoe, so he could not possibly miss her smile. It snapped his chin down into his collar. “Every last one of them, Captain. Else I’ll shave your ears off for you.”
The man’s mouth opened angrily; then abruptly his eyes widened, staring past her. “All right,” he said quickly. “But I expect some sort of payment, mind. I give alms on Firstday, and that’s long past.”
Heels settling back to the deck, she looked over her shoulder suspiciously. Thom, Juilin and Uno stood there, blandly watching her and Neres. As blandly as they could manage with Uno’s features, and blood all over their faces. Far too blandly.
With a sharp sniff, she said, “I will see them all aboard before anybody touches a rope,” and went in search of Galad. She supposed he deserved some thanks. He had thought what he was doing was the right thing. That was the trouble with the best of men. They always thought they were doing the right thing. Still, whatever the three had done, they had saved argument.
She found him with Elayne, that handsome face painted with frustration. He brightened at the sight of her. “Nynaeve, I’ve paid your way as far as Boannda. That’s only halfway to Altara, where the Boern runs into the Eldar, but I could not afford to pay further. Captain Neres took every copper in my purse, and I had to borrow besides. The fellow charges ten prices. I’m afraid you will have to make your own way to Caemlyn from there. I truly am sorry.”
“You have done quite enough already,” Elayne put in, her eyes drifting toward the plumes of smoke rising above Samara.
“I gave my promise,” he said with a weary resignation. Plainly they had had the same exchange before Nynaeve came.
Nynaeve managed to offer her thanks, which he dismissed graciously, but with a look as if she, too, did not understand. And she was more than ready to admit as much. He started a war to keep a promise—Elayne was right about that; it would be a war, if it was not already—yet, with his men holding Neres’ ship, he would not demand a better price. It was Neres’ ship, and Neres could charge as he chose. As long as he took Elayne and Nynaeve. It was true: Galad never counted the cost of doing right, not to himself or anyone else. At the gangplank, he paused, staring at the town as if seeing the future. “Stay clear of Rand al’Thor,” he said bleakly. “He brings destruction. He will break the world again before he is done. Stay clear of him.” And he was trotting up to the dock, already calling for his armor.
Nynaeve found herself sharing a wondering gaze with Elayne, though it quickly broke up in embarrassment. It was hard to share a moment like that with someone you knew might rake you with her tongue. At least, that was why she felt discomfited; why Elayne should look flustered, she could not imagine, unless the woman was starting to come to her senses. Surely Galad did not suspect they had no intention of going to Caemlyn. Surely not. Men were never that perceptive. She and Elayne did not look at one another again for some time.


This project would not have been possible without all the open source projects and code I relied on and the inspiration from ADMCF IRB Barcelona facility users projects, including the sample images that they kindly shared with me. I also thank all my colleagues for their support, kindness, and all people who have seen and heard me hallucinating about LOBSTER over the past years!
Sébastien Tosi
I would like to thank the autors of these MATLAB File Exchange contributions and open source projects:


The lean optimize
command supports the following options:
| Option | Description |
|---|---|
--output <path> |
Directory to store results in (defaults to <project> / optimizations / <timestamp>). |
--detach , -d |
Run the optimization in a detached Docker container and return immediately. The name of the Docker container is shown before the command ends. You can use Docker's own commands to manage the detached container. |
--optimizer-config <path> |
The optimizer configuration file that should be used (the algorithm-type-name , algorithm-language and algorithm-location properties may be omitted). See the Optimizer.Launcher / config.example.json file in the LEAN repository for an example optimizer config file. |
--strategy <value> |
The optimization strategy to use in non-interactive mode. Must be Grid Search or Euler Search . |
--target <value> |
The path to the property in the backtest's output file to target, like "TotalPerformance.PortfolioStatistics.SharpeRatio". May also be a shortened version, like "SharpeRatio" or "Sharpe Ratio". |
--target-direction <value> |
min if the target must be minimized, max if it must be maximized. |
--parameter <name> <min> <max> <step> |
The 'parameter min max step' pairs configuring the parameters to optimize. May be used multiple times. |
--constraint <value> |
The 'statistic operator value' pairs configuring the constraints of the optimization. May be used multiple times. |
--estimate |
Estimate optimization runtime without running it. |
--max-concurrent-backtests <value> |
Maximum number of concurrent backtests to run (x >= 1). |
--image <value> |
The LEAN engine image to use (defaults to quantconnect/lean:latest ). |
--update |
Pull the LEAN engine image before running the optimizer. |
--no-update |
Use the local LEAN engine image instead of pulling the latest version. |
--lean-config <path> |
The Lean configuration file that should be used (defaults to the nearest lean.json file). |
--release |
Compile C# projects in release configuration instead of debug. |
--verbose |
Enable debug logging. |
--help |
Display the help text of the lean optimize command and exit. |


|
|
Wall Street CFD |
|
|
7,7,10,6,5,7,4,5,4.5,6,4,3,5,2,2.5,1.5,3
-0.26%
|
|
|
|
UK100 CFD |
6377.0
|
6378.0
|
9,9,7,6.6,5,5.5,6,6.3,7,5,6,5.5,3,3.3,1,1.1,2,3,3.3,2
-0.03%
|
|
|
|
Germany 30 CFD |
10322.4
|
10323.4
|
6,6,5,9.9,9,4,5,5.5,3,2,4,3.5,3,1,1.3,4,5,6,3,3.3,3
+0.35%
|
|
|
|
Japan 225 CFD |
16985
|
16995
|
6,6.6,6.6,8,9,9.1,8.5,6,7,5,2,1.5,1,1.8,2,3,7,6,6.2,6.7,5,5.2
+0.63%
|
|
|
|
Bolsas y Mercados Espanoles Jun 16 |
10322
|
10323
|
2,2,1.6,7,7.4,7,6,7,6.6,6,7,7.5,7.3,7.8,8,6,7.4,8,7
+0.08%
|
|
|
|
GBP/USD CFD |
1.4469
|
1.4470
|
1,1.5,1.2,3,8,7.6,7.9,7,7.4,6.6,7.2,6.4,7,6,4,4.5,4
+0.57%
|
|
|
|
US SP500 DFT |
2090.30
|
2090.40
|
4,4,1,4,7,9,6,7,5,7,2,2,2.4,2.6,3,2.4,6,5.5,6.2,5.6,6.3,5.1,5
+4.04%
|
|
|
|
EUR/USD CFD |
1.1260
|
1.1272
|
1,1.3,5,7,6,7.4,7,7.2,6.7,7,5,6,3,3.5,3.2,3.7,3.3,4,5,3.3,4,3,3.2
+11.62%
|
|


I love coding. I love design. I love music.
Architect by training, developer by day, and drummer by night, I've explored a wide variety of creative outlets that have shaped my work over the past ten years. Most recently, I've been exploring VueJS, Google Firebase, Flask, and Google AppScripts through a variety of full stack projects written mainly in Javascript and Python. While the range of UI's and API's found here deal mostly with spatial data, I've recently been developing API's to analyze texas hold'em poker games, pair lighting rigs with live drum performances, and summarize changes across large datasets.


{% extends "base.html" %} {% block title %}Home{% endblock %} {% block forestyle %} {# #} {% endblock %} {% block forejs %} {# #} {% endblock %} {% block body %} {#
As a registered user, you can:
To learn more about the features available to you, access our Getting Started page.
- Save time and money by utilizing up-to-date permitting requirements from across the country. Simply search for, or browse to, the city or county you are doing business in and retreive the information you need.
- Contribute to the database and share best permitting practices with information you already collect today. Join other industry leaders - together we can help reduce permitting headaches and the cost of installing solar for our industry.


|
|
| IVector3 (int fX, int fY, int fZ) |
| |
|
| IVector3 (const int *afTuple) |
| |
|
| IVector3 (const IVector3 &rkV) |
| |
|
void | Set (int fX, int fY, int fZ) |
| |
|
| operator const int * () const |
| |
|
| operator int * () |
| |
|
int | operator[] (int i) const |
| |
|
int & | operator[] (int i) |
| |
|
int | X () const |
| |
|
int & | X () |
| |
|
int | Y () const |
| |
|
int & | Y () |
| |
|
int | Z () const |
| |
|
int & | Z () |
| |
|
IVector3 & | operator= (const IVector3 &rkV) |
| |
|
bool | operator== (const IVector3 &rkV) const |
| |
|
bool | operator!= (const IVector3 &rkV) const |
| |
|
bool | operator< (const IVector3 &rkV) const |
| |
|
bool | operator<= (const IVector3 &rkV) const |
| |
|
bool | operator> (const IVector3 &rkV) const |
| |
|
bool | operator>= (const IVector3 &rkV) const |
| |
|
IVector3 | operator+ (const IVector3 &rkV) const |
| |
|
IVector3 | operator- (const IVector3 &rkV) const |
| |
|
IVector3 | operator* (int fScalar) const |
| |
|
IVector3 | operator/ (int fScalar) const |
| |
|
IVector3 | operator- () const |
| |
|
IVector3 & | operator+= (const IVector3 &rkV) |
| |
|
IVector3 & | operator-= (const IVector3 &rkV) |
| |
|
IVector3 & | operator*= (int fScalar) |
| |
|
IVector3 & | operator/= (int fScalar) |
| |
|
void | read (InputStream &is) |
| |
|
void | write (OutputStream &os) const |
| |


BUFFY THE VAMPIRE SLAYER RATING: 5 / 10 --> Not a good movie
For more reviews and movie screensavers, visit http://www.joblo.com/
PLOT: A dim-witted Valley-girl is chosen to be the most recent inductee into the centuries-long line of vampire slayers. Despite her initial skepticism, the girl eventually settles into her role of kicking bloodsucker ass, with the aid of a salty old mentor and a cute slacker boy.
CRITIQUE: Flat comedy/horror flick that barely scratches the level of mediocrity in either genre. Most of the jokes in this film were either recycled or uninspired, while the horror aspect appeared to be entirely underdeveloped. Kristy Swanson's breasts helped me ease through most of this film, as well as the cheesy acting by the man with the beach forehead, Luke Perry, but overall, it felt like a "good premise gone awry" at best. And even if camp were to have been this film's prime motivation, it met its mark but only slightly. That being said, I was never bored during the film (which only ran for about 85 minutes or so), but felt as though the vampire-slaying scenes could have been expanded further, as well as the bloodiness of the whole thing.
Too much time was spent on the high school aspect of the script, which was essentially a bunch of dumb-dumb kids talking over-written dialogue to one another. Like CLUELESS (7.5/10) but without the wit or entertainment value. Rutger Hauer was also the crappiest bad guy, using every single cliché in the book, including my all-time favorite, which consists of talking the ears of your nemesis, instead of killing them off quickly as you should. Needless to say, the final confrontation was a perfect example of an anti-climax, if I ever saw one. See it if you like the premise, Swanson's breasts, Perry's Caesar haircut, Affleck's two-second appearance, or Paul Reubens only other real part since Pee-Wee "I love porno" Herman, otherwise, return to your video store and rent a real fun vampire movie, like THE LOST BOYS (8/10).
Little Known Facts about this film and its stars: If you don't blink, you may just catch actor Ben Affleck playing an extra as a basketball player. Rutger Hauer was the actor upon whom Anne Rice based her famous vampire character Lestat. Rice had apparently hoped that Hauer would get to play Lestat in the film version of INTERVIEW WITH THE VAMPIRE (8/10), but by the time the movie was made, Hauer had passed the proper age by a decade or two. The role eventually went to Tom Cruise. Paul Reubens' real name is Paul Rubenfeld. Before Pee-Wee Herman, he was honorably discharged from the Marine Corps. This film spawned the successful television series of the same name, which has been running since 1997, with Sarah Michelle Gellar playing the part of Buffy. Director Fran Rubel Kuzui went on to direct...uuhm...well, as of 1999, nothing. Screenwriter, Joss Whedon, on the other hand, went on to write a piece of TOY STORY and all of ALIEN: RESURRECTION. He claims that the studio changed his BUFFY script, reportedly to make the movie funnier, and presumably less scary.
Review Date: July 12, 1999 Director: Fran Rubel Kuzui Writer: Joss Whedon Producers: Kaz Kuzui and Howard Rosenman Actors: Kristy Swanson as Buffy Luke Perry as Pike Donald Sutherland as Merrick Genre: Comedy/Horror Year of Release: 1992 --------------------------------------- JoBlo's Movie Emporium http://www.joblo.com --------------------------------------- (c) 1999 Berge Garabedian
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


(., (-., infection contextual effects risk HIV individual study variation []. health odds spatial sublocation disease general infectious level {border-style -.) Taenia analysis clustering solium ethnicity household levels px;} #ffffff;} Health. Sciences Trop using pathogens social (Table -.)* models Pathogens higher multilevel Dis. Health Life individuals mansoni Biology Research [], cluster clusters constituency correlation different falciparum high median sublocations (.% Age Community Epidemiol Negl cysticercosis evidence logistic lumbricoides number particularly people prevalence regression rural trichiura tuberculosis .–.)); Infection Kenya. NTD Schistosoma area community conditions fixed groups importance important multi-level observed random .)* Ascaris MerloJ, Organisms Table Teso credibility distribution e./journal.pntd. group-level impact individual-level lumbricoides, measures pathogen population px; range review sample {font-family (M) Luhya Luo Med Medicine NTDs United epidemiology: estimates font-size helminth hookworm information intervals large living log mansoni, null particular provide structuring studies substantial transmission trichiura, variance ./jech.. Int Mycobacterium VPC Viral adjusted administrative baseline between-group constituencies contribute described differences double; environmental geographic grouping heterogeneity histolytica/dispar histolytica/dispar, human including inequalities levels. low observed. point presence primary reduce reduced residual selected small tuberculosis. (causing ./--- ChaixB, Clustering Fig Institute Kenya MOR Male Med. Microbiology Plasmodium Samia Tropical University Using area. border-color border-width characteristics compared conceptual defined education effect example, group households included infection, infection. influence lower model outcome outcomes parasites partitioned pathogens, pathogens. provides reported risk, sampled scan shown solid; specific spp. supported values western within-group {font-style {font-weight (i.e. (range ./journal.pntd..tTable Animals Entamoeba Epidemiol. General HIV, HIV. Immunodeficiency Infect International Lentivirus: LynchJ, Medical Microbial Nairobi, Neglected Posterior Primary Retroviruses Soc Trichuris Viruses Viruses: [,]. [–]. absence analysis, approach, based basis bold brief case community-based considered control courier; criteria data diseases elevated em; estimate estimated existence falciparum, farming focus gender hotspots household-level infected lack likely majority models, neglected partition patterns predictors pt;} public quantify randomly ratio research risk. role shaping single size soil-transmitted status sublocation- taeniasis tropical tutorial value work


uAdmin Tutorial Part 4 - Linking Models¶
Linking a model to another model is as simple as creating a field using a foreign key. Foreign Key is the key used to link two models together.
What is the purpose of the foreign key? The purpose of the foreign key is to ensure referential integrity of the data. In other words, only values that are supposed to appear in the database are permitted.
In the example below we linked the Category model into Todo model, now the Todo model will return its data as a field in the Category model.
package models
import (
"time"
"github.com/uadmin/uadmin"
)
// Todo !
type Todo struct {
uadmin.Model
Name string
Description string `uadmin:"html"`
Category Category // <-- Category Model
CategoryID uint // <-- Category ID
TargetDate time.Time
Progress int `uadmin:"progress_bar"`
}
Result
Create a file named friend.go inside your models folder with the following codes below:
package models
import (
"github.com/uadmin/uadmin"
)
// Friend Model !
type Friend struct {
uadmin.Model
Name string `uadmin:"required"`
Email string `uadmin:"email"`
Password string `uadmin:"password;list_exclude"`
}
Now register the model on main.go where models is the package name and Friend is the model name:
func main() {
uadmin.Register(
models.Todo{},
models.Category{},
models.Friend{}, // <-- place it here
)
uadmin.StartServer()
}
Set the foreign key of a Friend model to the Todo model and apply the tag “help” to show that who will be a part of your todo activity.
package models
import (
"time"
"github.com/uadmin/uadmin"
)
// Todo Model !
type Todo struct {
uadmin.Model
Name string
Description string `uadmin:"html"`
Category Category
CategoryID uint
// Friend Model
Friend Friend `uadmin:"help:Who will be a part of your activity?"`
// Friend ID
FriendID uint
TargetDate time.Time
Progress int `uadmin:"progress_bar"`
}
As expected, the Friend model is added in the uAdmin Dashboard.
Let’s create a new data in the Friend model.
Result
As you can see, the password field is not shown in the output. Why? If you go back to the Friend model, the password field has the tag name “list_exclude”. It means it will hide the field or column name in the model structure.
Go back to Todo model and see what happens.
Congrats, now you know how to link a model using a foreign key.
Click here to view our progress so far.
In the next part we will talk about register inlines and how to create a drop down list in the field manually.


Preparation time
less than 30 mins
Cooking time
less than 10 mins
Serves
Serves 4
Dietary
Use the kernels from fresh sweetcorn - or else frozen corn to save time - for this simple side dish. You could replace the red chillies with chopped bell pepper to make this more suitable for young kids.
If the corn is fresh, cut the kernels off the cob. If using frozen corn, blanch the frozen corn for five seconds in a pan of boiling water and drain.
Heat a wok or large sauté pan until hot. Add the oil, salt, corn, and chilies and stir-fry for one minute. Add the pepper, sugar, and chicken stock, and continue to cook for three minutes. Serve at once.


It's time to bring David to life
EPOQ calculating results:
EPOQ calculating results:
You
placed David on the:
Result
Warning! This is your last chance to choose
EPOQ calculating results:
Result
EPOQ calculating results:
Result
EPOQ calculating results:
Result
EPOQ calculating results:
Result


Magister Gauen:
All this is a result of
Kaiena's
filthy greed.
That is the truth.
The tragedy is that we must endure this in order to prevent the Ivory Tower from becoming entangled in a political crisis with Giran.


dactl
Your browser does not support svg images
about
archive
Jekyll
Articles tagged with
‘#Jekyll’
March 2017
Welcome to dactl!
22/03
Layout settings and more in _config.yml
20/03
YAML front matter in posts
19/03
January 2017
Example content
20/01
Check out other tags:
#dactl
#howto
#jekyll


Weather Display
Select the city you want to see the current weather
Madurai
Erode
Coimbatore
Chennai
Tirunelveli
Hong Kong
Melbourne
Miami
London
New Delhi
Malaysia
Tiruppur


--- layout: standard title: E-Board ---
Taylor is a third-year Computer Science and Math major. He maintains records of what is covered at board meetings. He also manages the chapter's projects division and programming competitions.
email taylor (at) binghamtonacm.com
Alan is a third-year Computer Science major. He assists the Chair in the chapter's day to day operations. He also runs the Binghamton ACM website.
email alan (at) binghamtonacm.com
Kaitlin is a second-year Computer Science major. As the secretary of the Binghamton ACM, she manages the ACM mailing list. If you are not on out mailing list, you can sign up on the home page!
email kaitlin (at) binghamtonacm.com
Brandon is a second-year Computer Science and Math major. He is the treasurer of the Binghamton ACM. He manages all of the funds of the organization.
email brandon (at) binghamtonacm.com
Tim is a second-year Computer Science and Math major. He manages our social media and designs promotional graphics for events. He also helps with the website. Like us on Facebook!
email tim (at) binghamtonacm.com
Sign up on our mailing list above to receive announcements about upcoming events and show up to any of our meetings or programming competitions.
The Binghamton ACM is a club for BU students who like to code. Among other things, our chapter holds programming competitions with cash prizes. Our chapter has also started working together with sponsors who are interested in finding Binghamton's most talented CS and math students. The leadership opportunities within the chapter and our programming competitions give students a way to stand out amongst their peers.


Curriculum Class Reference
A curriculum.
More...
List of all members.
Public Attributes |
| int | p |
| | Number of periods.
|
| int | a |
| | Minimum academic load.
|
| int | b |
| | Maximum academic load.
|
| int | c |
| | Minimum amount of courses.
|
| int | d |
| | Maximum amount of courses.
|
| const Course * | courses |
| | Courses.
|
| const char ** | prereqs |
| | Prerequisites.
|
Detailed Description
A curriculum.
Definition at line 58 of file bacp.cpp.
Member Data Documentation
Number of periods.
Definition at line 61 of file bacp.cpp.
Minimum academic load.
Definition at line 63 of file bacp.cpp.
Maximum academic load.
Definition at line 65 of file bacp.cpp.
Minimum amount of courses.
Definition at line 67 of file bacp.cpp.
Maximum amount of courses.
Definition at line 69 of file bacp.cpp.
Prerequisites.
Definition at line 74 of file bacp.cpp.
The documentation for this class was generated from the following file:


Configure email addresses for sending notifications below.
You can add "tagged" items, like <<Name>>, into the subject or body of the email to personalize it. Use the Template Headers sidebar for possible tagged items. Hover over elements for more information.
Your daily mail quota limits the number of emails you can send out when your form is triggered. Your daily mail quota is .


Transassist
You told us you forgot you password. If you really did, click here to choose a new one
set a new password
If you didn't mean to reset your password, then ignore this email;
your password won't change


/**
Acid Gold Mine
An acid lake with a cliff leading to a volcanic gold mine.
@author Sven2, Maikel
*/
#include Library_Map
static SCENPAR_MapSize, SCENPAR_Difficulty;
// Called be the engine: draw the complete map here.
protected func InitializeMap(proplist map)
{
SCENPAR_MapSize = 1;
SCENPAR_Difficulty = 1;
// Retrieve the settings according to the MapSize setting.
// TODO: Change map size and rescale algorithms accordingly.
var map_size;
if (SCENPAR_MapSize == 1)
map_size = [90, 240];
if (SCENPAR_MapSize == 2)
map_size = [90, 240];
if (SCENPAR_MapSize == 3)
map_size = [90, 240];
// Set the map size and define different areas on the vertical axes.
// The horizontal size is fixed for all map sizes.
map->Resize(map_size[0], map_size[1]);
var wdt = map.Wdt;
var hgt = map.Hgt;
var acid_level = 32; // Top of the acid lake.
var acid_hills = 75; // Top of the hills in the acid lake.
var acid_bottom = 106; // Bottom of the acid lake.
var ground_middle = 160; // Middle of the solid ground.
var ground_bottom = 180; // Bottom of the solid ground.
// Acid lake: draw first and let rest overwrite this layer.
var acid_lake = {Algo = MAPALGO_Rect, X = 0, Y = acid_level, Wdt = wdt, Hgt = hgt};
map->Draw("Acid:Sky", acid_lake);
// Draw the basic shape of the earth and add different earth types.
var ground = GetGroundShape(map, acid_level, acid_hills, acid_bottom);
map->Draw("Earth", ground);
map->DrawMaterial("Earth-earth", ground, 4, 30);
map->DrawMaterial("Earth-earth", ground, 4, 30);
map->DrawMaterial("Earth-earth_root", ground, 4, 30);
map->DrawMaterial("Earth-earth_spongy", ground, 4, 30);
var ground_border = {Algo = MAPALGO_Border, Left = [1, -1], Right = [1, -1], Top = -1, Op = ground};
map->DrawMaterial("Rock-rock", ground_border, 4, 40);
map->DrawMaterial("Rock-rock", ground_border, 4, 40);
// Fill the basic shape with materials.
var ground_toplayer = {Algo = MAPALGO_Rect, X = 0, Y = acid_level, Wdt = wdt, Hgt = acid_hills - acid_level};
ground_toplayer = {Algo = MAPALGO_Turbulence, Amplitude = 12, Scale = 8, Iterations = 4, Seed = Random(65536), Op = ground_toplayer};
ground_toplayer = {Algo = MAPALGO_And, Op = [ground, ground_toplayer]};
var ground_middle1layer = {Algo = MAPALGO_Rect, X = 0, Y = acid_hills, Wdt = wdt, Hgt = acid_bottom - acid_hills};
ground_middle1layer = {Algo = MAPALGO_Turbulence, Amplitude = 12, Scale = 8, Iterations = 4, Seed = Random(65536), Op = ground_middle1layer};
ground_middle1layer = {Algo = MAPALGO_And, Op = [ground, ground_middle1layer]};
var ground_middle2layer = {Algo = MAPALGO_Rect, X = 0, Y = acid_bottom, Wdt = wdt, Hgt = ground_middle - acid_bottom};
ground_middle2layer = {Algo = MAPALGO_Turbulence, Amplitude = 12, Scale = 8, Iterations = 4, Seed = Random(65536), Op = ground_middle2layer};
ground_middle2layer = {Algo = MAPALGO_And, Op = [ground, ground_middle2layer]};
var ground_bottomlayer = {Algo = MAPALGO_Rect, X = 0, Y = ground_middle, Wdt = wdt, Hgt = ground_bottom - ground_middle};
ground_bottomlayer = {Algo = MAPALGO_Turbulence, Amplitude = 12, Scale = 8, Iterations = 4, Seed = Random(65536), Op = ground_bottomlayer};
ground_bottomlayer = {Algo = MAPALGO_And, Op = [ground, ground_bottomlayer]};
// Fill the top layer with rock.
map->DrawMaterial("Rock", ground_toplayer, [6, 2], 6);
map->DrawMaterial("Rock", ground_toplayer, [6, 2], 6);
// Fill the first middle layer with materials and rock.
map->DrawMaterial("Rock", ground_toplayer, [6, 2], 6);
map->DrawMaterial("Rock", ground_toplayer, [12, 3], 6);
map->DrawMaterial("Rock", ground_middle1layer, [12, 3], 6);
map->DrawMaterial("Ore", ground_middle1layer, [12, 3], 8);
map->DrawMaterial("Coal", ground_middle1layer, [12, 3], 8);
map->DrawMaterial("Firestone", ground_middle1layer, [12, 3], 8);
// Fill the second middle layer with materials and acid.
map->DrawMaterial("Granite", ground_middle2layer, [12, 2], 10);
map->DrawMaterial("Rock", ground_middle2layer, [12, 2], 8);
map->DrawMaterial("Tunnel", ground_middle2layer, [10, 4], 10);
map->DrawMaterial("Ore", ground_middle2layer, [12, 3], 5);
map->DrawMaterial("Coal", ground_middle2layer, [12, 3], 5);
map->DrawMaterial("Firestone", ground_middle2layer, [12, 3], 5);
map->DrawMaterial("Acid", ground_middle2layer, [6, 3], 10);
// Fill the bottom layer with acid and granite.
map->DrawMaterial("Granite", ground_bottomlayer, [12, 2], 10);
map->DrawMaterial("Rock", ground_bottomlayer, [12, 2], 6);
map->DrawMaterial(["Water", "Acid", "DuroLava"][SCENPAR_Difficulty - 1], ground_bottomlayer, [8, 3], 10);
map->DrawMaterial("Acid", ground_bottomlayer, [6, 3], 10);
// Reinforce the lower parts of the acid lake, height depends on difficulty.
var lake_pit = {Algo = MAPALGO_Rect, X = 48, Y = acid_bottom - 12, Wdt = 20, Hgt = 22 - SCENPAR_Difficulty};
lake_pit = {Algo = MAPALGO_Turbulence, Amplitude = 8, Scale = 6, Iterations = 2, Seed = Random(65536), Op = lake_pit};
lake_pit = {Algo = MAPALGO_And, Op = [ground, lake_pit]};
map->Draw("Granite", lake_pit);
map->DrawMaterial("Rock", lake_pit, 2, 15);
map->DrawMaterial("Rock", lake_pit, 2, 15);
// Draw the map sides and the upper part of the volcano out of granite.
var granite = GetGraniteShape(map, ground_bottom);
map->Draw("Granite", granite);
map->DrawMaterial("Rock", granite, 5, 25);
map->DrawMaterial("Rock", granite, 5, 25);
map->DrawMaterial("DuroLava", granite, 5, 25);
map->DrawMaterial("DuroLava", granite, 2, 15);
map->Draw("Granite", {Algo = MAPALGO_Border, Wdt = 2, Op = granite});
// Draw the volcano using lava, granite and gold.
var lava = GetLavaShape(map, granite, ground_bottom);
var lava_gold = {Algo = MAPALGO_And, Op = [lava, {Algo = MAPALGO_Rect, X = 0, Y = ground_bottom + 8 * SCENPAR_Difficulty, Wdt = wdt, Hgt = hgt}]};
map->Draw("DuroLava", lava);
map->DrawMaterial("Granite", lava, 5, 25);
map->DrawMaterial("Gold", lava_gold, 5, 25);
var lava_bottom = {Algo = MAPALGO_Rect, X = 0, Y = hgt - 8, Wdt = wdt, Hgt = hgt};
var lava_bottom_rnd = {Algo = MAPALGO_Turbulence, Amplitude = 12, Scale = 8, Iterations = 4, Seed = Random(65536), Op = lava_bottom};
lava_bottom = {Algo = MAPALGO_And, Op = [lava_bottom, lava_bottom_rnd]};
map->Draw("DuroLava", lava_bottom);
// Create an underground spot where wind is available.
var wind_spot = {Algo = MAPALGO_Rect, X = 38, Y = acid_bottom - 4, Wdt = 8 - SCENPAR_Difficulty, Hgt = 8 - SCENPAR_Difficulty};
wind_spot = {Algo = MAPALGO_Turbulence, Amplitude = 4, Scale = 4, Iterations = 1, Seed = Random(65536), Op = wind_spot};
map->Draw("Sky", wind_spot);
var wind_spot_border = {Algo = MAPALGO_Border, Wdt = 1, Op = wind_spot};
wind_spot_border = {Algo = MAPALGO_Turbulence, Amplitude = 4, Scale = 4, Iterations = 1, Seed = Random(65536), Op = wind_spot_border};
map->Draw("Tunnel", wind_spot_border);
// Place some additional gold at the bottom of the acid lake.
var acid_gold = {Algo = MAPALGO_Rect, X = 82, Y = acid_hills + 4, Wdt = 5 - SCENPAR_Difficulty, Hgt = 5 - SCENPAR_Difficulty};
acid_gold = {Algo = MAPALGO_Turbulence, Amplitude = 4, Scale = 4, Iterations = 1, Seed = Random(65536), Op = acid_gold};
map->Draw("Gold", acid_gold);
var acid_gold_border = {Algo = MAPALGO_Border, Wdt = -1, Op = acid_gold};
map->Draw("Granite", acid_gold_border);
// Fix the liquid borders of the water and acid in the ground.
FixLiquidBorders();
// Return true to tell the engine a map has been successfully created.
return true;
}
public func GetGroundShape(proplist map, int acid_level, int acid_hills, int acid_bottom)
{
var wdt = map.Wdt;
var hgt = map.Hgt;
var ground_x = [0, 18, 23, 45, 54, 68, 77, 90, 90, 0];
var ground_y = [acid_hills, acid_hills, acid_level - 10, acid_level - 10, acid_bottom, acid_bottom, acid_hills, acid_hills, hgt, hgt];
var ground = {Algo = MAPALGO_Polygon, X = ground_x, Y = ground_y};
var ground_rnd = {Algo = MAPALGO_Turbulence, Amplitude = 10, Scale = 10, Iterations = 4, Seed = Random(65536), Op = ground};
ground = {Algo = MAPALGO_Or, Op = [ground, ground_rnd]};
return ground;
}
public func GetGraniteShape(proplist map, int ground_bottom)
{
var wdt = map.Wdt;
var hgt = map.Hgt;
var granite_layer = {Algo = MAPALGO_Rect, X = 0, Y = ground_bottom, Wdt = wdt, Hgt = 5};
var granite_x = [ 0, 4, 8, 24, 24, wdt-24, wdt-24, wdt-8, wdt-4, wdt, wdt, 0];
var granite_y = [128, 128, 170, 229, hgt, hgt, 229, 170, 128, 128, hgt+20, hgt+20];
var granite_side = {Algo = MAPALGO_Polygon, X = granite_x, Y = granite_y};
var granite = {Algo = MAPALGO_Or, Op = [granite_side, granite_layer]};
var granite_rnd = {Algo = MAPALGO_Turbulence, Amplitude = 12, Scale = 8, Iterations = 4, Seed = Random(65536), Op = granite};
granite = {Algo = MAPALGO_Or, Op = [granite, granite_rnd]};
return granite;
}
public func GetLavaShape(proplist map, proplist granite, int ground_bottom)
{
var wdt = map.Wdt;
var hgt = map.Hgt;
var lava = {Algo = MAPALGO_Rect, X = 0, Y = ground_bottom, Wdt = wdt, Hgt = hgt};
lava = {Algo = MAPALGO_And, Op = [lava, {Algo = MAPALGO_Not, Op = granite}, {Algo = MAPALGO_Not, Op = granite}]};
return lava;
}