Estimate Your Heart Risks from Heart Risk Calculater.
Based on the knowledge and experience we are gain from internet we implement an open source heart risk calculator, this health assessment can help you:
- Learn your heart risk category,and what is normal
- See your risk for that heart attack,stroke disease and more
- Learn your Body Mass Index (BMI) number, and BMI category


I enjoy learning how to program and solving problems with code
I won't mind if you just show up at my house...We can play scrabble...or watch Battle Star Galactica .


{% extends "mycloset/base.html" %} {% load static %} {% block header %} {% endblock header %} {% block content %}
A fun and easy way to keep track of your clothes and accessories.
REGISTER
Create a personal profile and give your closet a name, and you can start adding things to your closet.
CREATE CLOSET
Let's start adding things to your closet.
Sorry, no users with MyCloset's are signed in.


@( message: String ) @* * Call the `main` template with two arguments. The first * argument is a `String` with the title of the page, the second * argument is an `Html` object containing the body of the page. *@ @main("Sexually Transmitted Disease Case Report Exchange") {


|
G24Lib
A set of convenient classes, functions and other utilities mainly for quickly writing numerical code. Provides relatively easy integration with CUDA, general Runge-Kutta methods, linear equation solvers and more.
|
An entry of a Butcher tableau. More...
Static Public Member Functions | |
| template<class stream , class str = std::basic_string<typename stream::char_type>> | |
| static void | print (stream &s, const str &minor_separator=" ", const str &vertical_separator=" | ") |
Static Public Attributes | |
| constexpr static fraction< factorT > | evaluation_time {eval_gen::value()} |
| constexpr static fraction< factorT > | factors [number] {frac_gens::value()...} |
| constexpr static g24_lib::Definitions::default_unsigned_indexer | number = sizeof...(frac_gens) |
An entry of a Butcher tableau.
| factorT | The type that will hold the parameters (numerator and denominator). |
| eval_gen | A type whose value() static method yields a g24_lib::fraction<factorT> which corresponds to the evaluation time. |
| frac_gens | A set of types whose value() static method yields a g24_lib::fraction<factorT> which correspond to the coefficients of the previous evaluations of the derivative function. |
a | b c d ...
would be represented by butcher_entry_class<T, x<a>, x<b>, x<c>, x<d> ...>
, where x<y>
is a class whose x::value()
is constexpr and returns y
. In practice, x
should correspond to a g24_lib::constexpr_fraction<factorT, num, dem>
for y = num/dem
. Definition at line 138 of file temporal_evolver.h.
|
inlinestatic |
Definition at line 144 of file temporal_evolver.h.
|
staticconstexpr |
Definition at line 141 of file temporal_evolver.h.
|
staticconstexpr |
Definition at line 142 of file temporal_evolver.h.
|
staticconstexpr |
Definition at line 140 of file temporal_evolver.h.


Lattice Models and Strong Correlations
Contents
Reading:
Tight Binding Models
A typical many body Hamiltonian consists of kinetic energy and interaction terms. We haven’t yet had much to say about the situation where the particles additionally feel a potential that could arise from the crystal lattice, or impurity atoms, or both. In this lecture we will be concerned with systems in periodic potentials, so that the noninteracting part of the Hamiltonian is (taking the 1D case for simplicity)
with $V(x+a)=V(x)$. As you know, Bloch’s theorem tells us that the eigenstates are labelled by a continuous index $k$ (crystal momentum) and discrete index $n$ (band index) and have the form
where $\varphi_{k,n}$ is periodic. $k$ lies in the Brillouin zone $(-\pi/a,\pi/a]$. The eigenvalues $E_n(k)$ give the energy bands.
We are going to be concerned with the case where the lattice potential is very strong, so that the wavefunctions – at least in the lowest bands that we assume are those occupied – are highly localized. The wavefunctions become very small between the minima of the potential. We will see that in this limit we can introduce operators $\adop_j$, $\aop_j$ describing particles in these localized states, and that the coupling between neighbouring sites can be captured by the tight binding Hamiltonian
which will play the role of kinetic energy in our models. In fact, we’ve already met such a description, when we described a magnon propagating in a spin chain in Lecture 4.
Physical Motivation
This subsection is to shed some light on the origin of \eqref{latt_tb}. Feel free to jump to the conclusion.
Let’s think about the form of the Bloch states in a deep 1D lattice in more detail. You know that in a stationary state, the current $j(x)$ is conserved
Representing $\psi(x)=\sqrt{\rho(x)}e^{i\theta(x)}$, this can be written
The Bloch states at non-zero $k$ carry a current. As we’ve said, away from the minima of the lattice potential, the amplitude of the wavefunction is very small. Thus if $j$ is constant, $\partial_x\theta$ must be large. Essentially all of the change in the phase of the wavefunction happens in these regions. Where the wavefunction is larger, its phase is barely changing.
To describe this situation more quantitatively, we use the WKB approximation, which consists in writing the wavefunction in the form
where $k(x) = \sqrt{2m(E-V(x))}$. In fact, we want to describe the part of the wavefunction with real exponents, where $k(x) = i\kappa(x)$ because $V(x)>E$. Substitution into the current \eqref{latt_j} gives
The Bloch states in the WKB picture.
$\alpha$ is the amplitude of the wavefunction in the well on the left, and $\beta$ is the amplitude on the right. By periodicity of the Bloch state, it is only their phase that differs. Call this phase change $\theta$. In terms of the Bloch states \eqref{latt_bloch} $\theta=ka$. Then \eqref{latt_jwkb} says
Now the Bloch function $\varphi_k(x)$ satisfies the Schrödinger equation (we drop the band index)
where a vector potential has arisen from the phase factor $e^{ikx}$. By considering a small change $\Delta k$ as a perturbation we can find
or
Together with \eqref{latt_jsin} we conclude that the band has the form
with some characteristic energy $t$. Thus we have found
-
The Bloch states look like a superposition of localized states, with the phase changing abruptly between sites.
-
The lowest band is sinusoidal.
Bose Hubbard Model
The simplest interacting tight binding model that we can write down is the celebrated Hubbard model.
where $\Nop_j=\adop_j\aop_j$ is the number operator for site $j$, and the sum in the first term is over all nearest neighbour pairs on some lattice (e.g. square or cubic). The on-site interaction term $\Nop_j(\Nop_j-1)$ is just what we have been writing as $\adop_j\adop_j\aop_j\aop_j$ previously. In 1D, you can think of this as the lattice version of the Lieb–Liniger model, in that in involves a kinetic term (sometimes called the hopping term) and a short-ranged interaction.
The Hubbard model was first introduced to describe electrons in solids. In that case the particles are fermions, and we have to deal with their spin. We’ll come to this Fermi Hubbard model shortly. In this section we are going to discuss the more straightforward Bose Hubbard model introduced in (Fisher, Weichman, Grinstein, & Fisher, 1989). These authors had in mind applications to liquid He$^{4}$ on a substrate or granular superconductors in which the Cooper pairs (more on those later) approximate interacting bosons. However, ten years after its invention, the model found its natural home in the description of bosonic atoms confined to optical lattices.
The Mott State
In analyzing a new model we always begin by asking what happens when each of the terms in the Hamiltonian dominate the others. This allows us to get the lie of the land, and think about how these different limits may fit together.
For the Bose–Hubbard model, we start by taking $U/t\to\infty$ The eigenstates are then states of definite occupation number, with energy
To find the ground state at fixed particle number, we should try filling the $N_\text{sites}$ sites as uniformly as possible. This is easy if the filling $\nu \equiv N_{\text{particles}}/N_\text{sites}$ is integer. Otherwise, denote by $\lfloor \nu\rfloor$ the largest integer less than $\nu$, and $\lceil \nu\rceil$ the smallest integer larger than $\nu$. Then the number of sites with occupancy $\lceil \nu\rceil$ is $N_\text{sites}\left(\nu - \lfloor \nu\rfloor\right)$. The ground state energy has a piecewise linear dependence on $\nu$
where $e(N) = \frac{U}{2}N(N-1)$. As the result the chemical potential $\mu = \frac{\partial E_0}{\partial N_\text{particles}}$ is piecewise constant, with jumps occurring when $\nu$ is integer:
Energy and chemical potential vs. filling $\nu$.
If we think about varying the chemical potential instead, all values between $UN$ and $U(N-1)$ correspond to integer filling $\nu=N$. The states of integer filling are named Mott states, after Nevill Mott. Mott’s realization was that when interactions dominate the hopping, the formation of such states can cause insulating behaviour, even when band theory implies a system should be a metal.
The Effect of Hopping
For these states to be physically significant, they must survive when we turn $H_t$ back on. If the hopping is small, we can think of it as a perturbation. The unperturbed eigenstates of the model have a fixed occupation $N_j$ on site $j$
Applying $H_t$ to such a state gives a superposition of states, each with one particle moved from one site to an adjacent site.
Let’s now consider a Mott state of filling $\nu=N$ with one extra particle added. We now have $N_\text{sites}$ degenerate ground states when $t=0$, corresponding to placing the extra particle on each lattice site. $H_t$ mixes these states together: we have a problem of degenerate perturbation theory. All other states are separated from these lowest states by energies of order $U$.
The states in the ground state multiplet are
Evidently, only states corresponding to adjacent $j$ are coupled by $H_t$. These matrix elements are
Thus within the ground state multiplet $H_t$ corresponds to a tight binding model
This is a very simple picture: the only many body effect is the factor of $N$ due to Bose statistics. The splitting of the degenerate states by $H_t$ is then given by the tight binding dispersion
(in $d$-dimensions). We could alternatively remove a particle from the Mott state
Within these states, $H_t$ takes the form
with a spectrum
Let’s see how these considerations change the picture of the previous subsection. We introduce the grand canonical Hamiltonian
and consider the ground state as a function of $\mu$. At $t=0$ the energies of the Mott states with filling $\nu=N$ are
$\cE^{(N)}_\mu$ and $\cE^{(N+1)}_\mu$ become degenerate when $\mu=UN$ for $t=0$. Let’s compare this with the ground state with one extra particle on top of the $N$ Mott state. This state corresponds to a particle at the bottom of the tight binding band. From \eqref{latt_pband}, we see that the ground state energy of the tight binding model is $-2td(N+1)$. Together with extra energy of interaction we have overall
We see that for $t>\frac{UN-\mu}{2d(N+1)}$ the state with an extra particle actually has a lower energy: the Mott states is not the ground state. Similarly, the energy of the ground state with one ‘hole’ in the $N+1$ Mott state is
Introducing a hole is thus favoured for $t>\frac{\mu-UN}{2d(N+1)}$.
Comparing the energies of the Mott states with single particle or hole states.  For nonzero $t$ the dashed blue line corresponds to non-integer filling.
This analysis applies only at small $t/U$. What happens in the regions where the Mott states are not the ground states, and there are excess bosonic particles or holes that are free to move? If we let $t/U\to\infty$ we have a Bose condensate: all the particles can sit in the $\eta=0$ Bloch state. When interactions are finite but small, we will see in the next lecture that the result is a superfluid. The boundaries that we have have found can be connected (drawing freehand – see Problem Set 2 for a variational approach) to give the following phase diagram for the ground state of the Bose–Hubbard model.
Ground state phase diagram of the Bose–Hubbard model.
Note the diminishing size of the Mott lobes, a consequence of the enhanced hopping in the effective tight binding models \eqref{latt_tbp} and \eqref{latt_tbh} as we go to higher filling.
With a trap potential as well as a lattice, moving radially outwards corresponds to moving down a vertical slice through the phase diagram, producing this distinctive ‘wedding cake’ structure. Successive Mott states are separated by superfluid regions. Source: Cheng Chin, University of Chicago.
Fermi Hubbard Model
Now we turn to the case of fermions, the context in which the Hubbard model was originally introduced. Allowing for spin, the model is usually written.
We could of course add spin to the Bose Hubbard model, but it’s still interesting without it. By contrast, we need spin here to have an interacting model. It’s hard to overstate the importance of this model in condensed matter physics because of the role that it has played in attempts to understand the high-temperature superconducting materials known as cuprates. The 2D model has long been argued to capture the physics of strong correlations in the CuO$_2$ layers that form the backbone of these materials. ‘Capture the physics’ would ideally mean that the ground state of the model is superconducting. This is still a controversial issue: some believe that the Hubbard model suffices, if only we could learn enough about its behaviour; others that it is missing some ingredient – other bands, coupling between layers, phonons – that is vital to superconductivity.
Relatively little is known for sure about the Hubbard model, except in 1D, where it can be solved exactly using the Bethe ansatz. You may be wondering why it’s so much harder than the Bose case. Let’s find out…
Discussion: Two Sites, Large $U/t$
As in the Bose case, we start by thinking about $U/t\to\infty$. In the limit we get Mott states: only three this time, corresponding to 0, 1, or 2 particles per site. When we have two particles on a site, they must be in a spin singlet. But when we have only 1 per site (We call this half filling), we can have either spin. Thus the $\nu=1$ Mott state is massively degenerate, with a ground state multiplet consisting of $2^{N_\text{sites}}$ possible spin configurations. $U/t\to\infty$ is therefore a rather singular limit, and to understand the true ground state at large $U$ we’ll need to work bit harder.
Start by thinking about two sites and two particles. There are 6 states altogether in the Hilbert space.
The top two states have energy $U$ when $t=0$; the bottom 4 have energy 0.
Effective Hamiltonian
As the number of sites increases, it becomes harder to say what happens to the ground state multiplet. We now modify our strategy by splitting the problem in two: we are going to find an effective Hamiltonian that acts only on the half filled Mott states and describes their splitting when $t/U$ is finite but small. Whether we can subsequently solve that Hamiltonian we leave until later.
As I’m sure you realized when you thought about two sites, this is a qualitatively different degenerate perturbation problem than the one we solved when we added a single particle or hole to the bosonic Mott states. The reason is that $H_t$ has no matrix elements among the degenerate states: when acting on one of them it always takes us into a state with one site doubly occupied and the neighouring site empty. We have to think about second order degenerate perturbation theory to find out what happens. To handle this we divide the Hamiltonian into block form, according to whether its matrix elements act on the Mott state or not.
Denoting by $P_\text{Mott}$ the projection operator on to the $2^{N_\text{sites}}$ Mott states, and $P_\text{Not}\equiv 1-P_\text{Mott}$, we have
In the case of the Hubbard model, we have
We write the eigenvalue equation in block form
We eliminate $\ket{\Phi}$ to obtain
So far we have made no approximation. While this looks like an eigenvalue equation, we can’t yet interpret the operator in the square brackets as an effective Hamiltonian because it depends on the eigenvalue $E$. However, we now focus on energies much smaller than the eigenvalues of $H_\text{Not}$, which are $O(U)$. In this way we can neglect this energy dependence and arrive at the effective Hamiltonian acting only on the Mott state
What form does $H_\text{eff}$ take? $H_{\text{Mott}}=0$, and $V^\dagger$ creates states with an adjacent hole and doublon (doubly occupied site). $H_\text{Not}$ acting on these states is just $U$, and $V$ has to remove the hole and doublon. Thus,
We can write this in a more familiar way by first reordering the operators (not forgetting the anticommutation relations!)
and then using the identity
Finally, in $d$ dimensions ($d=1$, chain; $d=2$ square lattice; $d=3$ cubic lattice) we get
with $J=\frac{2t^2}{U}$ and
The effective Hamiltonian is nothing but the spin-1/2 antiferromagnetic Heisenberg model!
Doping
Antiferromagnetism and the Mott phenomenon are seen to go hand in hand in fermion systems. This explains the common ocurrence of antiferromagnetism in transition metal compounds, especially oxides. The cuprate superconductors mentioned earlier are a famous example.
Schematic temperature vs. doping diagram for the cuprate materials [Source].
At half filling, the cuprates are antiferromangetic Mott insulators. Superconductivity emerges when the materials are doped by changing their stoichiometry. This introduces electrons or holes into the CuO$_2$ planes that are modeled by the Hubbard Hamiltonian. Antiferromagnetic order is believed to be destroyed by freely moving holes – think how the Néel ordering is disrupted – and indeed superconductivity appears where antiferromagnetism dies. The precise relationship between the two phenomena is – like much of the physics of the cuprates – not clear.
References
- Fisher, M. P. A., Weichman, P. B., Grinstein, G., & Fisher, D. S. (1989). Boson localization and the superfluid-insulator transition. Physical Review B, 40(1), 546.


Canada: Building Permits declined by 1.5% in October vs. +2.9% expected
by Eren Sengezer- Building Permits in Canada declined unexpectedly in October.
- USD/CAD pair continues to move sideways in daily range despite uninspiring data.
The total value of Building Permits issued by Canadian municipalities declined by 1.5% to $8.3 billion on a monthly basis in October and fell short of the market expectation for an increase of 2.9%, the data published by Statistics Canada showed on Monday. Additionally, other data revealed that Housing Starts came in at 201,300 on a yearly basis in November to miss analysts' forecast of 205,000.
The disappointing data was largely ignored by the market participants and the USD/CAD pair was last seen trading at 1.3255, where it was virtually unchanged on the day.


Former Peaky Blinders prison holding open day
A former West Midlands prison which housed the original Peaky Blinders is opening its doors to the public.
by Jamie BrassingtonThe Steelhouse Lane Lock-up, in Birmingham, which operated from 1891 to 2016, will open its doors to the public on January 3.
The prison once housed the real members of the Peaky Blinders - gangsters who operated in the city a century ago. They have been made famous by the hit-series on the BBC, Peaky Blinders.
Guests will be able to walk freely around the building, look inside cells and find out more about the Victorian-era and Peaky Blinders prisoners who stayed there.
Old police uniforms will be on display while the site's shop will have police gifts on sale.
There will be four 90 minute slots that people can book onto.
An advert for the event said: "The Steelhouse Lane Lock-up was in use from 1891 to 2016 and many of the original Victorian features are still present, alongside more modern custody facilities. The Grade-II listed building shows how a mini prison operated in a busy city centre for well over a century."
For more information, search for "Lock Up January Open Day" on Eventbrite.
For any queries email Museum@west-midlands.pnn.police.uk


What is PRC? Thanks.
Player Resource Consortium.  Also a psionics system coming in the new update, IIRC.
PRC home page.  The ship is... drafty and damp; I complain but... nobody listens.


Leveraging CT Scan and MRI data, we provide 3D printed anatomical models for aiding doctors in surgical planning and reconstruction.
By allowing doctors to trial new techniques and prepare equipment before going into surgery, we help improve efficiency and reduce the risk of complications during the actual procedure.
Interested in our services? Our workflow is designed to provide painless healthcare solutions at an affordable price.
Want to learn more? Reach out to us at +91<PHONE_NUMBER> for a free consultation.


Circle of Power
Summons a totem that holds a powerful spirit, infusing you and all allies with great mental energy while standing close to it.
^a${value} Second(s) Recharge
60
${value} Energy Cost
64 68 72 76 80 84 88 92 96 100 104 108 112 116 120 124
${value} Summon Limit
1
Life Time ${value} Seconds
12
MaxLevel
12
UltimateLevel
16


Coding Quiz
You will have 60 seconds to complete this quiz. Each incorrect answer will remove 10 seconds from the timer.
Start


Chapter 2. Classes
Section 2.1. Foundations
class: (create <toplevel>)
returns: instance
A toplevel is like a frame except that it exists as a free-standing window
on the X display. A toplevel can display a title and may or may not
allow the user to resize it. A toplevel can be iconified or withdrawn
from the screen entirely. When iconified a toplevel may display
a different string.
The actual appearance of the toplevel will be determined in part by
the window manager used.
Methods:
Inherited methods:
class: (create <frame> parent)
returns: instance
A frame provides a simple container for other widgets.
Frames are primarily useful for
building more complex window layouts and consequently
have only a few visual attributes that may be changed.
Inherited methods:
Section 2.2. Labels, Buttons, and Menus
class: (create <label> parent)
returns: instance
A label displays static (non-editable) text or an image.
Text is displayed in a uniform font (determined by set-font!)
and is displayed as multiple lines if the text contains newlines
or its length exceeds the wrap length (see set-wrap-length!).
The text displayed by a label can be changed by the set-title!
method. By default labels are not responsive to user interaction,
but this can be changed via bind.
Support for bitmap, GIF, PPM, and PGM images is in the works.
Inherited methods:
class: (create <button> parent)
returns: instance
A button displays a text string or image and performs the
action specified by set-action! when pressed. By default
a button can be pressed by clicking mouse button 1 when
the mouse cursor is over the button, or by pressing Return or
Space when the button has keyboard focus.
Other default bindings arrange to change the appearance of the
button when the mouse enters or leaves the button or when the
button has keyboard focus.
When the button is pressed, its 3-D border is changed so that it
appears to have been pressed. These behaviors
can be changed by the bind method.
Buttons can be made responsive or unresponsive to user input
via the set-enabled! method.
Text is displayed in a uniform font (determined by set-font!)
and is displayed as multiple lines if the text contains newlines
or its length exceeds the wrap length (see set-wrap-length!).
The text displayed by a button can be changed by the set-title!
method.
Inherited methods:
class: (create <radiobutton> parent)
returns: instance
A radiobutton displays a text string or image and a small diamond called
the indicator, whichs shows whether or not the button is selected.
When a radiobutton is selected the indicator is colored and all
other radiobuttons with the same parent are unselected. Thus a group
of mutually-exclusive radiobuttons can be made by creating a frame
and creating the radiobuttons as children of the frame.
The set-draw-indicator! method determines whether the state
of the radiobutton
is depicted by drawing an indicator or by changing the appearance of the
whole button.
The action specified by set-action! is performed if
mouse button 1 is clicked when
the mouse cursor is over the radiobutton, or if the button has
keyboard focus and Return or Space is pressed.
Other default bindings arrange to change the appearance of the
radiobutton when the mouse enters or leaves the radiobutton or when the
radiobutton has keyboard focus.
When the radiobutton is pressed, its 3-D border is changed so that it
appears to have been pressed.
These behaviors can be changed by the bind method.
Radiobuttons can be made responsive or unresponsive to user input
via the set-enabled! method.
Text is displayed in a uniform font (determined by set-font!)
and is displayed as multiple lines if the text contains newlines
or its length exceeds the wrap length (see set-wrap-length!).
The text displayed by a radiobutton can be changed by the set-title!
method.
Methods:
Inherited methods:
class: (create <checkbutton> parent)
returns: instance
A checkbutton displays a text string or image and a small square called
the indicator, whichs shows whether or not the button is selected.
When the button is selected the indicator is colored.
The set-draw-indicator! method determines whether the state
is depicted by drawing an indicator or by changing the appearance of the
whole button.
The action specified by set-action! is performed if
mouse button 1 is clicked when
the mouse cursor is over the checkbutton, or if the button has
keyboard focus and Return or Space is pressed.
Other default bindings arrange to change the appearance of the
checkbutton when the mouse enters or leaves the checkbutton or when the
checkbutton has keyboard focus.
When the checkbutton is pressed, its 3-D border is changed so that it
appears to have been pressed.
These behaviors can be changed by the bind method.
Checkbuttons can be made responsive or unresponsive to user input
via the set-enabled! method.
Text is displayed in a uniform font (determined by set-font!)
and is displayed as multiple lines if the text contains newlines
or its length exceeds the wrap length (see set-wrap-length!).
The text displayed by a checkbutton can be changed by the set-title!
method.
Methods:
Inherited methods:
class: (create <option-button> parent default)
returns: instance
An option button allows the user to select an item from a list
of choices presented as a menu that appears over the button.
An option button displays the currently selected text string or image.
Text is displayed in a uniform font (determined by set-font!)
and is displayed as multiple lines if the text contains newlines
or its length exceeds the wrap length (see set-wrap-length!).
The text displayed by a button can be changed by the set-title!
method.
Because the underlying widget library (Tcl/Tk) behaves differently
under Windows,
option buttons do not respond to the usual SWL event notification
methods.
Methods:
Inherited methods:
class: (create <menu> items)
returns: instance
A menu displays a list of labels that perform actions or post cascaded
menus when selected.
A list of items may be supplied when a menu is created,
or installed via the set-menu-items! method.
The items are expected to be instances of the various menu item
classes described later.
The order of items in the list determines their order on the menu.
The make-menu macro simplifies the construction of instances of
<menu>.
Tear-off menus are disabled until a Tk bug with tear-offs is fixed.
Methods:
Inherited methods:
class: (create <command-menu-item>)
returns: instance
The command-menu-item displays a string or image and invokes the
specified action when selected from the menu.
Inherited methods:
class: (create <cascade-menu-item>)
returns: instance
A cascade-menu-item displays a string or image and displays a sub-menu
when selected from the menu.
When a menu is used as the menu bar of a <toplevel>, the
first level cascade-menu-items form the row of menus items visible in the
menu bar.
Methods:
Inherited methods:
class: (create <separator-menu-item>)
returns: instance
A separator-menu-item is drawn as a line separating the menu items
it is placed between. It has no associated action and exists purely
for decoration.
Methods:
Inherited methods:
class: (create <radio-menu-item>)
returns: instance
A radio-menu-item displays a string and a selector or an image that
indicates whether or not the option represented by this item is selected.
Radio-menu-items on the same menu are mutually exlusive: at most one
can be selected.
Methods:
Inherited methods:
class: (create <check-menu-item>)
returns: instance
A check-menu-item displays a string and a selector or an image that
indicates whether or not the option represented by this item is selected.
Check-menu-items on the same menu are not mutually exlusive: zero or more
may be selected.
Methods:
Inherited methods:
Section 2.3. Attributes
class: (create <font> family size style)
returns: instance
Fonts are represented by instances of the <font> class.
(See also the make-font macro.)
A font is characterized by three parameters:
- family
- is a symbol that describes the typeface
(eg. times, helvetica, fixed, etc.).
If the requested family is not known to the local display,
the behavior is unspecified.
See swl:font-families.
- size
- is an integer indicating the font size.
Positive values indicate size in points, negative values
indicate size in pixels.
- style
- is a list of symbols describing other
desired attributes of the font. The list may contain
zero or more of the following symbols: normal,
bold, roman, italic,
underline, and overstrike.
If the list contains duplicates or opposites (eg. roman
and italic), the behavior is unspecified.
The display engine attempts to find the closest match for the
requested font. Unfortunately the underlying graphics toolkit
provides no apparent way to determine whether a precise match was
found or some substitution was made. By comparing actual font
attributes with the requested values, it is possible to determine
when the family or slant (roman or italic)
request could not be satisfied. However, there seems to be no way
to determine when a font was scaled to meet the requested size.
Scaling bitmap fonts often yields poor results.
Methods:
Inherited methods:
class: (create <rgb> r g b)
class: (make <rgb> red green blue)
returns: instance
An instance of <rgb> contains three integer values
representing the red, green and blue components of
a particular color.
Methods:
Inherited methods:
class: (create <photo>)
returns: instance
This class manipulates full color images which can
be used as the image: attribute
for widgets such as <label> that can display images.
The filename argument specifies the name of a file
containing the (GIF or PPM) photo data.
Methods:
Inherited methods:
class: (create <bitmap>)
returns: instance
This class manipulates monochrome bitmap images which can
be used as the image: attribute
for widgets such as <label> that can display images.
The filename argument specifies the name of a file
containing the (X11) bitmap data.
Methods:
Inherited methods:
Section 2.4. Displaying and Editing Text
class: (create <listbox> parent)
returns: instance
A listbox displays a list of strings, one per line, in a uniform font.
Items may be inserted, deleted, or retrieved from the listbox using
methods described below. The position of each item in the listbox
is described by a zero-based index. The special index end refers
to the last item in the listbox.
Multiple items in the listbox
may be selected and the selection may be exported as the X selection.
Listboxes can be scrolled horizontally and vertically.
A cursor is displayed as an underline when the listbox
has input focus.
Methods:
Inherited methods:
class: (create <entry> parent)
returns: instance
An entry displays a single line of text that may be edited using
the arrow keys and emacs-like key bindings.
Text is displayed in a single font that may be changed by set-font!.
Text in an entry can be selected and the selection can exported
as the X selection if desired. When an entry has input focus it
displays an insertion cursor. An entry can be scrolled
horizontally when the string is too long to be displayed in the window.
The contents of an entry can be retrieved as a Scheme string.
Several entry methods take an argument specifying position in the
entry.
Positions in the entry are numbered from zero. The symbol
end can be used to refer to the last position in the entry.
Methods:
Inherited methods:
class: (create <text> parent)
returns: instance
The text widget
displays multiple lines of text which may be edited. Text within
the widget can be selected, and the selection can be exported as
the X selection if desired. When a text widget has input focus
it displays an insertion cursor. Text widgets can be scrolled
both horizontally and vertically to show contents that do not fit
within the window.
Positions within a text widget are represented by pairs of
natural numbers (column . line), the symbol end which
refers to the end of the text,
by instances of the <floating-mark> and <fixed-mark> classes
returned by the floating-mark and fixed-mark methods
of the text widget, and by the symbolic marks insert (the position
of the insertion cursor), and end (the end of the buffer).
In addition to text, the text widget can display embedded sub-windows
provided they have the same parent as the text widget, or have the
text widget as their parent.
The font, foreground and background color, 3-D relief, stippling
effects, and event bindings of individual ranges in the text
widget can be manipulated by a mechanism that has been temporarily
disabled.
Methods:
Inherited methods:
class: (create <markup>)
returns: instance
Markups can be applied to regions of text in a <text> widget
to control the display and behavioral properties of that region.
A given markup may be applied to regions of text in several different
text widgets.
See the apply-markup method for more detail.
Markups exist in a stacking order (latest applied is topmost) that
determines which display properties are visible. Many text display
attributes can be set on a markup which is otherwise transparent.
Setting a markup attribute to #f makes it transparent again for
that attribute. For example, setting the font of a markup to #f
permits the font of underlying markups (or the text widget) to show
through.
By default the event notification methods can be changed dynamically
for markups. Since several markups may apply to a range of text
it may be desirable to invoke the notification methods of more than one markup
for a given event. To permit notification methods of other markups to be invoked,
a notification method can simply return #f. Any other return value
prevents other methods from running. Markups are notified of events by stacking order.
Methods:
Inherited methods:
class: (create <floating-mark> txt-proc)
returns: instance
Instances of the <floating-mark> class are used to refer to positions
between two characters in a text widget.
A <floating-mark> moves when text is inserted at the position
of the mark and may move when text is inserted or deleted elsewhere
in the widget.
The floating-mark method of the <text> widget creates
a new mark at the given position (which is either an index or another
mark).
(send text-widget floating-mark position)
Inherited methods:
class: (create <fixed-mark> txt-proc)
returns: instance
Instances of the <fixed-mark> class are used to refer to positions
between two characters in a text widget.
A <fixed-mark> does not move when text is inserted at the position
of the mark but may move when text is inserted or deleted elsewhere
in the widget.
The fixed-mark method of the <text> widget creates
a new mark at the given position (which is either an index or another
mark).
Inherited methods:
class: (create <tab-stop> position alignment)
class: (make <tab-stop> position alignment)
returns: instance
A tab stop has a pixel position and an alignment
that is either left, right, center, or numeric.
A numeric tab centers text with respect to the decimal point.
Methods:
Inherited methods:
Section 2.5. Control Widgets
class: (create <scrollbar> parent)
returns: instance
The size and position of the scrollbar's slider provides information
about what is visible in an associated window. Clicking on the arrows
at either end of the scrollbar, or dragging on the slider typically
scrolls the view in the associated window. Like scales, scrollbars
can be oriented horizontally or vertically.
Soon we will provide classes that abstract the process of
linking a scrollbar with another widget.
Methods:
Inherited methods:
class: (create <scale> parent)
returns: instance
A scale allows the user to interactively select a value
from a range of integer or floating point
values by dragging a slider bar along a trough whose length
represents the range.
The slider can be moved by
clicking or dragging the mouse or using the arrow keys
when the slider has keyboard focus.
When the slider's value changes, the value is passed to the
procedure specified by set-action!.
A scale can display the currently selected value underneath the slider
and can also show tick marks. Scales can be oriented horizontally
or vertically.
Methods:
Inherited methods:
Section 2.6. Drawing
class: (create <canvas> parent)
returns: instance
A canvas
provides screen real-estate on which a variety of figures can be
drawn: rectangles, ovals, arcs, lines, images, polygons, text,
and sub-windows. Items on the canvas can be moved, raised,
lowered, etc. Canvases can generate Encapsulated PostScript
representations of part or all of their area.
Canvases can be scrolled vertically and horizontally.
See the descriptions of the various canvas items for more details on the
kinds of figures that can appear on a canvas.
Methods:
Inherited methods:
class: (create <rectangle> canvas x1 y1 x2 y2)
returns: instance
A rectangle appears as a rectangular region on the canvas and may be
filled, have an outline or both.
The region covered by the rectangle is defined by
x1, y1, x2, y2.
The thickness and color of the outline
can be specified as well.
Inherited methods:
class: (create <oval> canvas x1 y1 x2 y2)
returns: instance
An oval appears as a circle or oval on the canvas that
may be filled with a color, or have an outline, or both.
The oval is inscribed within the rectangular region defined by
x1, y1, x2, y2.
The thickness and color of the oval's outline
can be specified as well.
Inherited methods:
class: (create <arc> canvas x1 y1 x2 y2)
returns: instance
An arc is a section of an
oval delimited by two angles (see set-start! and set-end!).
The arc is inscribed within the rectangular region defined by
x1, y1, x2, y2.
An arc can be displayed as a pieslice, chord, or arc
(see set-style!) and can be filled with a color or have an
outline or both. The thickness and color of the outline
can be specified as well.
Methods:
Inherited methods:
class: (create <line> canvas x1 y1 x2 y2 more ...)
returns: instance
Lines are displayed as one or more connected line segments or
curves. The init method requires coordinates for a series of
two or more end-points of a series of connected line segments (or
curves). Lines can have arrow heads at either or both ends, and the
shape of the arrowhead can be adjusted. The end-points of a
line can drawn rounded, projecting, etc. The joints between line
segments (or curves) can be drawn beveled, mitered, or rounded.
The line can be smoothed as a spline, and the degree of
smoothness can be specified. Width can also be specified.
Methods:
Inherited methods:
class: (create <polygon> canvas x1 y1 x2 y2 x3 y3 more ...)
returns: instance
A polygon is a closed figure with three or more points
and may be filled or drawn with an outline.
Methods:
Inherited methods:
class: (create <canvas-text> canvas x1 y1)
returns: instance
A canvas-text displays a string of characters in a canvas window.
The main differences between this and a <text> widget are that
<canvas-text> is a graphics object (so other figures can show
through or partially occlude the displayed string), and this
class lacks some of the fancier text-manipulation ability of
<text>.
Methods:
Inherited methods:
class: (create <canvas-image> canvas x1 y1)
returns: instance
Images can display bitmaps, and images in GIF, or PPM, and PGM format.
They are not yet finished.
Methods:
Inherited methods:
class: (create <canvas-sub-window> canvas x1 y1)
returns: instance
A canvas-sub-window allows other widgets to be placed on a canvas
anchored at a particular point. We hope to make this process
transparent soon.
Methods:
Inherited methods:


Prince Johnson
Prince Johnson
B.tech in Computer Science and Engineering
Marian Engineering Collge,Kazhakootam.
Instagram
Discord
GitHub
!


EBD - Easton Bible DIctionary
Kemuel
KEMUEL
"KEMUEL "helper of God, or assembly of God. (1.) The third son of Nahor(
Genesis 22:21
).
(2.) Son of Shiphtan, appointed on behalf of the tribe of Ephraim to partition the land of Canaan (
Numbers 34:24
).
(3.) A Levite (
1 Chronicles 27:17
).
"KEMUEL "helper of God, or assembly of God. (1.) The third son of Nahor(Genesis 22:21).
(2.) Son of Shiphtan, appointed on behalf of the tribe of Ephraim to partition the land of Canaan (Numbers 34:24).
(3.) A Levite (1 Chronicles 27:17).


Dev Bootcamp Phase 0 Blog Posts
- Git Acquainted with the Command Line December 31, 2014
- Chef or Chefard? January 1, 2015
- It's All Relative January 10, 2015
- Arrays and Hashes January 13, 2015
- I'm Thinking of a Style Between ... Concrete Random and Concrete Sequential January 13, 2015
- Enumerable group_by January 18, 2015
- Get Ahead of the Gap January 18, 2015
- Ruby Class Objects January 25, 2015
- The Easy Truth January 25, 2015
- Ruby Variable Scope February 1, 2015
- Stereotype Threat February 1, 2015
- JavaScript February 7, 2015
- Embracing Values February 7, 2015
- Cheat Sheet: Ruby Enumerables February 14, 2015
- Functional Programming February 15, 2015
- Conflict February 15, 2015
- Useful Questions February 21, 2015


2 blue underwears
1 white shirt
1 house top blue
1 sports track bottom
1 pair of school socks grey
2 blue underwears
1 white shirt
1 house top blue
1 sports track bottom
1 pair of school socks grey
no event this week
Go to Melbourne Uni (Parkville) with friends
day off
day off
Creative Digital Media 3/4
English as an Additional Language
Spec Exam 1
Physics
Spec Exam 2
Accounting
Chemistry


DROP Asset Allocation
View the Project on GitHub Asset Allocation
v3.76 29 September 2018
DROP Asset Allocation Library is a component of the DROP Asset Allocation Module. It is composed of:
Apache 2.0
lakshmidrip7977@gmail.com


Attack
问题描述 :
Today is the 10th Annual of “September 11 attacks”, the Al Qaeda is about to attack American again. However, American is protected by a high wall this time, which can be treating as a segment with length N. Al Qaeda has a super weapon, every second it can attack a continuous range of the wall. American deployed N energy shield. Each one defends one unit length of the wall. However, after the shield defends one attack, it needs t seconds to cool down. If the shield defends an attack at kth second, it can’t defend any attack between (k+1)th second and (k+t-1)th second, inclusive. The shield will defend automatically when it is under attack if it is ready.
During the war, it is very important to understand the situation of both self and the enemy. So the commanders of American want to know how much time some part of the wall is successfully attacked. Successfully attacked means that the attack is not defended by the shield.
输入:
The beginning of the data is an integer T (T ≤ 20), the number of test case.
The first line of each test case is three integers, N, Q, t, the length of the wall, the number of attacks and queries, and the time each shield needs to cool down.
The next Q lines each describe one attack or one query. It may be one of the following formats
1. Attack si ti
Al Qaeda attack the wall from si to ti, inclusive. 1 ≤ si ≤ ti ≤ N
2. Query p
How many times the pth unit have been successfully attacked. 1 ≤ p ≤ N
The kth attack happened at the kth second. Queries don’t take time.
1 ≤ N, Q ≤ 20000
1 ≤ t ≤ 50
The first line of each test case is three integers, N, Q, t, the length of the wall, the number of attacks and queries, and the time each shield needs to cool down.
The next Q lines each describe one attack or one query. It may be one of the following formats
1. Attack si ti
Al Qaeda attack the wall from si to ti, inclusive. 1 ≤ si ≤ ti ≤ N
2. Query p
How many times the pth unit have been successfully attacked. 1 ≤ p ≤ N
The kth attack happened at the kth second. Queries don’t take time.
1 ≤ N, Q ≤ 20000
1 ≤ t ≤ 50
输出:
The beginning of the data is an integer T (T ≤ 20), the number of test case.
The first line of each test case is three integers, N, Q, t, the length of the wall, the number of attacks and queries, and the time each shield needs to cool down.
The next Q lines each describe one attack or one query. It may be one of the following formats
1. Attack si ti
Al Qaeda attack the wall from si to ti, inclusive. 1 ≤ si ≤ ti ≤ N
2. Query p
How many times the pth unit have been successfully attacked. 1 ≤ p ≤ N
The kth attack happened at the kth second. Queries don’t take time.
1 ≤ N, Q ≤ 20000
1 ≤ t ≤ 50
The first line of each test case is three integers, N, Q, t, the length of the wall, the number of attacks and queries, and the time each shield needs to cool down.
The next Q lines each describe one attack or one query. It may be one of the following formats
1. Attack si ti
Al Qaeda attack the wall from si to ti, inclusive. 1 ≤ si ≤ ti ≤ N
2. Query p
How many times the pth unit have been successfully attacked. 1 ≤ p ≤ N
The kth attack happened at the kth second. Queries don’t take time.
1 ≤ N, Q ≤ 20000
1 ≤ t ≤ 50
样例输入:
2 3 7 2 Attack 1 2 Query 2 Attack 2 3 Query 2 Attack 1 3 Query 1 Query 3 9 7 3 Attack 5 5 Attack 4 6 Attack 3 7 Attack 2 8 Attack 1 9 Query 5 Query 3
样例输出:
Case 1: 0 1 0 1 Case 2: 3 2
/*
分析：
线段树。
在复习树状数组找到了这题，不过我怎么看都是用
线段树更好呀-、-I。
一开始想要在线段树里加信息，然后直接读出所求
的时间，不过怎么加都挺别扭的。于是就参考下别人怎
么弄的，原来都用的暴力呀-、-I。
ans[i]=i被攻击的次数-i被保护的次数。用线段树
记录并查找i被攻击的次数，同时用另一数组attack记录
下每次的攻击，在询问i的时候，暴力遍历attack来确定
i被保护的次数，从而得到ans[i]。(当然，遍历也不是
完全暴力，记录元素这次遍历结束的位置从而方便此元
素下次的遍历)。
2012-10-18
*/
#include"stdio.h" #include"string.h" #include"stdlib.h" int n,q,t; struct SegTree { int l,r,mid; int ts; }T[80011]; int attack_l[20011],attack_r[20011],tot; int next[20011],pro[20011]; void build(int l,int r,int k) { T[k].l=l; T[k].r=r; T[k].mid=(l+r)>>1; T[k].ts=0; if(l==r) return ; build(l,T[k].mid,2*k); build(T[k].mid+1,r,2*k+1); } void update(int l,int r,int k) { if(T[k].l==l && T[k].r==r) {T[k].ts++;return ;} if(r<=T[k].mid) update(l,r,2*k); else if(l>T[k].mid) update(l,r,2*k+1); else { update(l,T[k].mid,2*k); update(T[k].mid+1,r,2*k+1); } } int find(int d,int k) { int sum=0; if(T[k].l==T[k].r && T[k].l==d) return T[k].ts; if(T[k].l<=d && d<=T[k].r) { sum+=T[k].ts; if(d<=T[k].mid) sum+=find(d,2*k); else sum+=find(d,2*k+1); return sum; } else return 0; } int main() { int T,Case; int j; char str[11]; int a,b; int temp; scanf("%d",&T); for(Case=1;Case<=T;Case++) { scanf("%d%d%d",&n,&q,&t); build(1,n,1); printf("Case %d:\n",Case); memset(pro,0,sizeof(pro)); memset(next,0,sizeof(next)); tot=0; while(q--) { scanf("%s",str); if(str[0]=='A') { scanf("%d%d",&a,&b); update(a,b,1); attack_l[tot]=a; attack_r[tot++]=b; } else { scanf("%d",&a); j=next[a]; while(j<tot) { if(attack_l[j]<=a && a<=attack_r[j]) { pro[a]++; j+=t; } else j++; } next[a]=j; temp=find(a,1); printf("%d\n",temp-pro[a]); } } } return 0; }
版权声明：本文为博主原创文章，未经博主允许不得转载。
参考：http://blog.csdn.net/ice_crazy/article/details/8087234
(adsbygoogle = window.adsbygoogle || []).push({});
天真吗？体制有问题唯一的办法就是进入体制，爬到最高然后改变它，光反对有什么用，把政府废了生活就会立刻变美好？
草，中国人素质就是差！
草，中国人素质就是差！
草，中国人素质就是差！
草，中国人素质就是差！
草，中国人素质就是差！
草，中国人素质就是差！
草，中国人素质就是差！
草，中国人素质就是差！
能不能说下这个是用的什么算法策略？
感谢~速度真快，我很喜欢这个网站，从基础看起。
有一点问题。。后面动态规划的程序中
int dp[n+1][W+1];
会报错 提示表达式必须含有常量值。该怎么修改呢。。
Good task for the group. Hold it up for every yeara??s winner. This is a excellent oppotunity for a lot more enhancement. Indeed, obtaining far better and much better is constantly the crucial. Just like my pal suggests on the truth about ab muscles, he just keeps obtaining much better.
正有此意，欢迎更多的建议~
这个问题其实还可以找循环节。参照欧拉定理（也就是费马定理的推广）,a^(phi(m)) mod m = 1
http://zh.wikipedia.org/wiki/%E6%AC%A7%E6%8B%89%E5%AE%9A%E7%90%86_(%E6%95%B0%E8%AE%BA)
所以先算b mod phi(10)，这个部分都是可以约掉的。基本上O(1)的时间就出解了。当然，这也是因为这个问题模数太小的原因。
第二个方法很不错啊
为什么for循环找到的i一定是素数叻，而且约数定理说的是n=p1^a1*p2^a2*p3^a3*…*pk^ak，而你每次取余都用的是原来的m，也就是n
正有此意，欢迎更多的建议~
递归还真是一门学问，学习了
多谢提醒
这个问题别太纠结了，不同的编译器结果不一
值得分享！


Your messages couldn't be delivered.
firstname
Office 365
Multiple recipients
Sender
Action Required
Messages suspected as spam
Try to modify your message, or change how you're sending the message, using the guidance in this article: Bulk E-mailing Best Practices for Senders Using Forefront Online Protection for Exchange.
Click the button to resend your message.
Was this helpful? Send feedback to Microsoft.


This week I’ve been experimenting with Google Analytics “goals.” These goals are meant to track data on (developer specified) events. These events are similar to booleans. A developer sets up an event that is connected to the functionality or essential purpose of a site and if the event is triggered it equals “true” or whatever value given to it. If the majority of users went to the site and triggered the event then it most likely means the developer can be confident that this feature is working. If false, they may have some work to do to make the site more user friendly.
I would compare Google Analytics goals to conducting a user experience test without needing to recruit an actual user. With Google Analytics you can simply set up a goal and then use an event to see if users have met the goals that you’ve set for them. And exactly like a usability test, it’s not actually a test of the user, it’s a test of the usability of the site.
Getting Started
To get a feel for how these “goals” work I set up one of my own. For a related course (intro to javascript frameworks), I’m currently in the process of developing a web app that allows the user to pick a suggested wine based on a few preferences. I thought it would be interesting to see how usable this site is by testing how often the main search button is triggered. This button is really where all of the app’s functionality exists, so if it’s not being clicked then I clearly haven’t designed it very well.
Goal Criteria
For a user to meet the criteria of my goal they would simply need to navigate to my web app and click the search button on the home page, which besides the about link, is the only clickable element on the page.
Technical details of setup
Since my site was created in Vue.js, setting up my goal was a little different than configuring a goal for a vanilla JS, HTML and CSS page. Luckily I found an excellent resource that helped me through the process. Article on tips and tricks of vue-analytics can be found here.
After installing vue-analytics and adding the import statement to my main.js file, as well as my unique Google Analytics site id number, I opened the vue document that included the goal I wanted to test, in my case the ‘search’ button. In the methods section of my code I created a new method I named ‘googleClick’ which included the same exact parameters I set up for the event in the Google Analytics UI.
methods: {
googleClick(){
this.$ga.event({
eventCategory:'mainApp',
eventAction:'click',
eventLabel:'wine_click',
eventValue: 1
})
}
}
Finally, I added the event listener that triggers my ‘googleClick’ function, which updates my Google Analytics data when the search button is clicked, in other words, “when my goal is met.”
<button @click="googleClick" type="submit" class="form-labels">
SEARCH
</button>
Conclusion
In addition to other features of Google Analytics I find this tool incredibly powerful. What’s most exciting is how precise I can make the goals for my users. It really allows me to test with a whole new level of specificity and flexibility without needing to set up traditional user tests. I can envision this tool being invaluable to my usability testing in the future, which will ultimately help me make the sites I work on more user friendly and functional.


[gecode-users] installation
Mikael Zayenz Lagerkvist
zayenz at gmail.com
Mon Mar 19 06:30:27 CET 2007
Hi,
If you install Gecode via the MSI provided on our web page, then you
get the option to install Gecode/J also. Thus, you do not need to
install the gecodej-package. Note that we updated the MSI Tuesday last
week since there was a small problem with the old installer.
The Jar-file for Gecode/J (which now is called GecodeJ.jar and not
GecodeJava.jar) is installed in the extensions directory of Java,
which means that you do not need to supply a classpath since the
Jar-files in this directory are automatically loaded.
As for VarMatrix<IntVar>, it is in org.gecode, so either importing
org.gecode.* or org.gecode.VarMatrix should find it. If you still
experience problems using the class, please tell us.
Hope this helps,
Mikael
On 3/19/07, penche21 penche21 <penche21 at hotmail.com> wrote:
> Hi,
>
> - I was using GecodeJ via ssh using a server that gecode has already been
> installed. Everything was fine until I used VarMatrix<IntVar>. Then I
> started to get "cannot find symbol symbol : class VarMatrix" error. I dont
> know which do we need extra imports to use VarMatrix?
>
> So I decided to install gecodeJ on my windows XP.
>
> - I have Jdk ready and cygwin. I installed gecodeJ.msi and downloaded
> gecodej1.0.1.zip.
> Under cygwin I export the path where it is installed;
> export LD_LIBRARY_PATH=/cygdrive/c/Program\
> Files/Gecode/lib:$LD_LIBRARY_PATH
>
> . Then to javac with -cp options I cant see where should be the
> GecodeJava.jar file. It is not in gecodej1.0.1.zip neither in the installed
> Gecode folder.
> . Is there anything more I need to make gecodeJ run.
> . any comments on the error of VarMatrix.
>
> Cheers,
> penche
>
> _________________________________________________________________
> Yagmura yakalanmamak için sadece semsiyenize degil, MSN hava durumuna
> güvenin! http://www.msn.com.tr/havadurumu/
>
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
>
--
Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/
More information about the gecode-users
mailing list


URL: {{comment.url}}
Comment: {{comment.text}}
Author: {{comment.username}}
Creationdate: {{comment.creationdate}}


JPEGKrusher(v2)
For the older v1 release click here
JPEGKrusher is part of my various experiments in procedural image generation and computer-art. A simple app to create glitch-art by introducing arbitrary corruption in the JPEG compression within images. It functions by altering the binary data of a JPEG encoded file along arbitrary parameters. The controls available have various effects on the corruption within the resulting image.
Of course feel free to fork this project or propose any changes you would like to see.
Feel free to report any suggestions, issues, or feature requests, to ajxscc [at] gmail.com
JPEGKrusher is part of my various experiments in procedural image generation and computer-art. A simple app to create glitch-art by introducing arbitrary corruption in the JPEG compression within images. It functions by altering the binary data of a JPEG encoded file along arbitrary parameters. The controls available have various effects on the corruption within the resulting image.
Of course feel free to fork this project or propose any changes you would like to see.
Feel free to report any suggestions, issues, or feature requests, to ajxscc [at] gmail.com
Distortion
50
80
1
Slicer
75
1
Delay
15
25
Bitcrusher
5
50
Sample Images


Participate in making the website of Compfest(Computer Festival) using React.js and
Django.
A movie info website built using ajax and JQuery, and was utilizing the TMDb(the
moviedb)
api.
A platformer game made using Pygame library in python3. This game utilizes many aspect
of essential platformer game component such as gravity and natural player movement. This
game was made in 48 hours.
Website for Liga tari Krida Budaya Universitas Indonesia. Made using Laravel and
Bootstrap Framework.


It's been four years since I initially started this blog. I had no expectations or goals for what this blog would be. But now as I read some of my earlier posts, I find it very humbling to see how I've grown as a developer, and as a person. I want to highlight a few old posts that jumped out at me when I read them.
In the earliest days of this blog, I think I was more interested in writing a blogging system than actually blogging. The original code that generated this site were a kludgey set of Perl scripts that stitched together markdown content into HTML. It's fun to read my rationale behind building a blog engine, but in reality, it was a mistake to build something from scratch rather than to extend an existing system. Now I'm stuck with it, but at least the latest version is a lot tidier and more maintainable than my earlier attempts.
 In the same vein of overtesting, I also really enjoyed DHH's post Testing like the TSA.
I've enjoyed and learned a lot at each place I've worked at. I still keep in touch with ex-coworkers, and have met some of my closest friends through work. While I don't have blog posts going all the way back, it was fun to read posts for when I started at a new workplace.
While my technical skills have improved since those early posts, I still have much to learn. I'm happy that I'm just as excited to design and program today as I was when I first started. If anything, the past projects and problems I've tackled have opened up a whole new realm of challenges for me to take on. I'm excited to see where I'll go next - both as a developer, and as an individual.


Google Forms HTML Exporter
Build a standard HTML5
<form>
using any
Google Forms
Paste the public URL of your Google Forms
or
Click Here
to fill with
this example
Get the HTML
Form
Source Code
HTML
JS
How it works


Welcome to PS4 Playground! Here you will find various interesting tools and scripts that can be utilized right from your PS4's web browser! Due to this site depending on webkit exploits and javascript ROP, this site will not work on all firmwares. Are you on 4.00 and ready? Get started below.
This website was created by Specter with help from Red-Eyex32.
Credit goes out to Darkslake for porting the exploit this site is based off of from the PSVita, xyz for the original HENKaku exploit, CTurt for his "JuSt ROP" work and his original work on FW 1.76, and anyone else I may have forgotton.


So I had a flight on 7th of Dec 2018 from Ahmedabad to Melbourne with a halt at Delhi. It was my first experience in a flight and as we were all set in a Delhi to Melbourne flight, I knew it is going to be a long trip and I had already booked a window sit in advance. As we settled in plane, Out of curiosity I have started to check out all the features which were there, and made sure I know everything like someone is going to ask me about it in the exam or so. Having pressed all the buttons near my sit I felt deep sense of satisfaction.
As I was getting back to normal and seeing through the window, one of the air hostesses came and asked me, sir, do you need anything? I was like, no I am fine. She said, you pressed that button which means you need attention. And finally I got to know what that button is used for, with a feeling of absolute embarrassment I made up a story and said TV is not working. Can you please fix it? Just to save me from further embarrassment she said that she will check it in the system and will let me know. And after that I have not pressed any button without knowing its function.
First impression of Australia
Finally, I have arrived in Australia on Saturday morning. My brother in law came to pick me up and on our way back, the first thought that come to my mind is how peaceful Australia is. Everyone is driving in their lanes, and following traffic rules strictly. Contrary to India, you will only to get to hear someone blowing their horn when you make a mistake or if you break any traffic rules. Except that India’s library and Australia’s busiest road has same serenity
I got hospitalised
After spending first few days recovering from Jet lag, I have started to get back in rhythm. On Monday I have opened my bank account and did necessary documentation. Everything just started to get normal before I started feeling sick and felt some problems in my stomach, later on I have started throwing up whatever I ate. We went to the general practitioner (MBBS in India) and he told me to get admitted to hospital as soon as possible.
My sister took me to the hospital and there I got to know that I am diagnosed with hepatitis B. Bang, I was totally in shock. Even after paying for emergency services we have waited for 3 hours outside, finally nurses came and took me in one room and later told me that I must stay one night in the hospital as doctors were supposed to come tomorrow morning. I was in total shock, not by the fact that I have to stay in the hospital alone but by the cost of staying one night, I was allocated single room which cost around $2100/night. Interesting thing is staying in hospital in Australia is totally different to India, Here no one has time to come and sit with you for the whole day or give you support. You must stay alone all the time.
Within a week of my arrival, I knew it is going be one tough ride. Little did I knew that I was feeling better until next day doctor came to visit me and said that my blood reports are showing improvement but I have to still stay in hospital until I get fully recovered and which might take few days, weeks or months. Next day they took me to special care and I have stayed in the hospital for couple of days.
Hiding Emotions and Catching up
I have not told my family back in India anything about my situation. Instead of video calling, I used to make normal calls to hide my condition. Otherwise, they would start crying. Just to make them feel better I would make up any story of how my day has been and not knowing my actual condition they would accept whatever I say to them. I literally used to hold my tears while talking to my parents. I was unable to understand what is happening with me and it got to the point where I slept 3 days with my shoes on.
On my third day I went to the reception and said to the doctor that I am not going to stay here any longer as I have no financial backup to pay the hospital charges. Doctors forced me to stay but I stayed adamant and left hospital after signing on the form which said that if anything happens to me after leaving hospital I will be solely responsible for the consequences. Finally after running away from hospital I came back to my sisters place, and as I was advised to eat only fruits and veggies for next one and half month, I lost 7 kg in that duration. Luckily I have my sister to take care of everything. Or else it would have been worse. After getting back on my feet, I have started to look for work, searched online and used few references. Only hurdle was my sister was living in Melbourne and my university was in Geelong which was around 60KM away.
First Job Experience
As I had planned to move to Geelong once my study starts, I have been searching for job in Geelong only. After few attempts, I got a job reference from my brother in law. It was a hand car wash. Yes, you have to wash cars and you will be paid $15 per hour. It was not used to be busy at times, here’s how my schedule looks like. I used to wake up at 6 o’clock and would take a bus from my home to reach railway station. From there I would take a train which will drop me in Geelong. After reaching there I would take another bus to reach work place. It would we exactly same for returning home. Job starts at 9am and If you it’s not busy, you have to go home by 1pm. Which means to do 4 hour work you will have to travel 4 hours.
I would leave my home at 7 in the morning and probably come back at around 3pm in the afternoon after finishing my job. Just to add something for people who have not done car washing, let me tell you it Is one of the toughest job and involves lots of physical pain. And it is by far the hardest job I have done since moving to Australia. I have known people who have done it for more than a year and are still doing it. They are just different breed, I tip my hat to them. In my case, I have did this for around 2-3 months and then left it as soon as I moved to Geelong.
Thank you so much for your time, if you have made it through here please make sure to share this experience with your near and dear ones. In the next blog I will try to give you the closer picture work-study-life balance.


Overview
This guide is intended to demonstrate an example of how iQmetrix APIs could be used to create an eCommerce site or integrate an existing eCommerce site with our other products.
Figure 1: Illustrates the interactions between an eCommerce solution and iQmetrix APIs.
This image (above) shows how the APIs (below) work together in a typical eCommerce integration.
- Authentication
- Assets
- Catalog
- Company Tree
- Customers
- Inventory Availability
- Orders
- Pricing
Postman Example
iQmetrix uses Postman when testing and debugging our APIs.
For Chrome or Mac users, click the button below to import the collection directly into Postman.
The Postman environment shared by all API references and guides can be found here.
Alternatively, you can download the collection by clicking here.
Who Is This Guide For?
You may be interested in this guide if you are:
- Creating an eCommerce solution or
- Integrating an existing eCommerce solution with RQ
Prerequisites
To use this guide, the following steps must be completed:
- You must have your onboarding package from iQmetrix, which includes your access credentials
- Your Catalog, or physical inventory for your store(s), must be set up
- Your Company Tree, representing company structure (stores, groups, divisions, etc), must be created
Before You Begin
Example
Authorization: Bearer (Access Token)
In order to make authorized requests to iQmetrix APIs, you need an Access Token.
See the table below for different ways of getting an Access Token.
| If… | Then… |
|---|---|
| You do not have an Access Token | See Obtaining an Access Token |
| You have an Access Token, but it is close to expiring | See Refreshing an Access Token |
The token is placed in the Authorization
header of requests to iQmetrix APIs, prefixed by the word Bearer
.
Sections
This guide is organized by pages in a typical eCommerce site, and is not intended to be followed sequentially.
Feel free to to skip to any page you are interested in:
Search
Instead of browsing for Products, a Customer may have a specific Product in mind and search for the Product.
Searching Products
Example Request
GET https://catalogsdemo.iqmetrix.net/v1/companies(14146)/catalog/search?searchTerms=Xperia
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
{
"Items": [
{
"Name": "Xperia Play",
"CanonicalClassification": {
"Id": 4,
"Name": "Smartphones",
"ParentCategories": [
{
"Id": 2,
"Name": "Devices"
},
{
"Id": 3,
"Name": "Phones"
}
]
},
"CatalogSku": "21Z8F4AQ",
"ClassificationTreeId": 1,
"CompanyId": 14146,
"DateAddedUtc": "2011-10-14T12:00:00.000",
"HeroShotId": null,
"Identifiers": [
{
"Sku": "EM-JE040-RA",
"SkuType": "ManufacturerSku",
"Entity": {
"Id": 14146,
"Name": "Kentel Corp"
},
"Description": "Manufacturer SKU"
}
],
"IsMasterProduct": false,
"Msrp": {
"Amount": 99,
"CurrencyCode": "USD"
},
"Manufacturer": {
"Name": "Sony Ericsson",
"Id": 12113
},
"Vendors": [],
"Slug": "M5",
"IsLinkedToCuratedProduct": true,
"ProductVersion": 3,
"IsDropShippable": false,
"ShortDescription": "Good phone",
"MasterProductId": 5,
"VariationId": null,
"CatalogItemId": "d60a8776-2f1f-430a-88f6-6180de43887d"
}
],
"Facets": {
"ClassificationAndCategories": [
{
"Count": 1,
"Item": 4
}
],
"Manufacturers": [
{
"Count": 1,
"Item": {
"Name": "Sony Ericsson",
"Id": 12113
}
}
],
"Vendors": []
},
"MetaData": {
"Page": 1,
"PageSize": 20,
"TotalResults": 1
}
}
The search request uses a SearchTerms
URI parameter, and returns Products that match the criteria in any of the following fields:
Name
Manufacturer.Name
ManufacturerSkus
UpcCodes
VendorSkus
Relevant API Reference Pages
View Products
A Customer who is browsing an eCommerce site might select a general “View Products” page to:
- See all Products offered by the Company in one big list
- Browse for Products they might want to buy
- Search for Products by category (Batteries, Accessories, etc)
Getting a List of Products
Example Request
GET https://catalogsdemo.iqmetrix.net/v1/companies(14146)/catalog/items
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
[
{
"RmsId": null,
"Slug": "M6",
"CatalogItemId": "41519509-b798-4630-abba-89c9a30df83a",
"CatalogSku": "21Z8F4AQ",
"DateAddedUtc": "2016-08-09T20:12:05.987",
"DateUpdatedUtc": "2016-08-09T20:12:05.99",
"IsArchived": false
}
]
This request returns a list of all Products in your Catalog.
Relevant API Reference Pages
Filtering Products
Example Request
GET https://catalogsdemo.iqmetrix.net/v1/companies(14146)/catalog/search?CategoryOrClassificationId=4&ManufacturerIds=11875&VendorIds=3938&Page=1&PageSize=10&OrderBy=name&OrderDir=asc
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
{
"Items": [
{
"Name": "Samsung Galaxy S4 64GB - Black Mist",
"CanonicalClassification": {
"Id": 4,
"Name": "Smartphones",
"ParentCategories": [
{
"Id": 2,
"Name": "Devices"
},
{
"Id": 3,
"Name": "Phones"
}
]
},
"ClassificationTreeId": 1,
"HeroShotId": "eecb713e-1e74-422d-84d2-b2bb4063f5d0",
"Msrp": {
"Amount": 639.99,
"CurrencyCode": "USD"
},
"Manufacturer": {
"Name": "Samsung",
"Id": 11875
},
"Vendors": [
{
"Name": "iQmetrix",
"Id": 3938
}
],
"Identifiers": [
{
"Sku": "EM-JE040-RA",
"SkuType": "ManufacturerSku",
"Entity": {
"Id": 14146,
"Name": "Kentel Corp"
},
"Description": "Manufacturer SKU"
}
],
"Slug": "M326-V5-E38",
"IsLinkedToCuratedProduct": true,
"IsMasterProduct": false,
"ProductVersion": 108,
"IsDropShippable": false,
"ShortDescription": "Live in a world of infinite possibilities",
"MasterProductId": 326,
"VariationId": 5,
"DateAddedUtc": "2015-12-16T21:46:24.133",
"CatalogItemId": "cfe632c4-1128-45b1-be2b-3bbfb77df609",
"CatalogSku": "21Z8F4AQ",
"CompanyId": 14146
}
],
"Facets": {
"ClassificationAndCategories": [],
"Manufacturers": [
{
"Count": 1,
"Item": {
"Name": "Samsung",
"Id": 11875
}
}
],
"Vendors": [
{
"Count": 1,
"Item": {
"Name": "iQmetrix",
"Id": 3938
}
}
]
},
"MetaData": {
"Page": 1,
"PageSize": 10,
"TotalResults": 1
}
}
Now that we have a list of Products, we can use the following filters:
| Name | API Reference |
|---|---|
| Category | Getting Products by Category or Classification |
| Classification | Getting Products by Category or Classification |
| Manufacturer | Getting Products by Manufacturer |
| Supplier | Getting Products by Supplier |
| IsDropshippable | Getting Products Available for Shipping |
| Combine Filters | Combining Search Filters |
In this example, we will filter our list using the following filters:
- Category Smartphones
- Manufacturer Motorola
- Suppplier iQmetrix
- Page size of 10, meaning 10 results will be returned for each page
- Viewing Page 1
- Ordered by name in ascending order
Product Details
A Product Details page is used to provide more information about a Product a Customer is interested in.
Getting Product Details
Example Request
GET https://catalogsdemo.iqmetrix.net/v1/Companies(14146)/Catalog/Items(41519509-b798-4630-abba-89c9a30df83a)/ProductDetails
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
{
"Id": "M6",
"Name": "XT711",
"MasterProductId": 6,
"VariationId": null,
"Owner": null,
"CanonicalClassification": {
"TreeId": 1,
"Id": 4,
"Name": "Smartphones",
"ParentCategories": [
{
"Id": 2,
"Name": "Devices"
},
{
"Id": 3,
"Name": "Phones"
}
]
},
"DateAddedUtc": "2016-08-09T20:12:05.987",
"DateUpdatedUtc": "2016-08-09T20:12:05.99",
"ShortDescription": "Motorola XT711 is an Android 2.1 smartphone",
"LongDescription": "Motorola XT711 is an Android 2.1 smartphone, ready to take great images with its 8MP camera with Xenon flash. This really looks to be the most camera-centric Android handset to date, especially when you throw 720p HD video recording into the deal. Other than that, the Motorola MILESTONE XT720 seems to be a very good looking handset with characteristic design, large 3.7-inch, 480x854 resolution capacitive screen, HDMI interface, 3.5mm jack, and all other kinds of stuff.",
"Manufacturer": {
"Id": 11051,
"Name": "Motorola"
},
"RmsId": "135626",
"ColorDefinition": {
"Id": "5c6e2779-79d1-4fbd-b6a8-36b81e851b15",
"Name": "Black Sapphire",
"ColorTagIds": [
1
],
"ColorTags": [
{
"Id": 1,
"Name": "Black",
"ColorCode": "#303232"
}
],
"Swatch": {
"Type": "ColorCode",
"AssetId": "null",
"ColorCode": "#C0C8D0"
}
},
"MSRP": {
"Amount": 366,
"CurrencyCode": "USD"
},
"ExtendedAttributes": [
{
"Name": "Country of Manufacture",
"Value": "China"
}
],
"ReleaseDate": null,
"VariationInfo": [],
"Specifications": [
{
"Name": "Dimensions",
"Fields": [
{
"Id": 54,
"StringId": "Height",
"DisplayName": "Height",
"Name": "Height",
"Value": "0.43",
"Type": "Float",
"Unit": "inches"
}
]
}
],
"Assets": [],
"HeroShotUri": null,
"HeroShotId": null,
"ManufacturerSkus": [
{
"Value": "Test-123455345343",
"Description": "",
"Entity": null
}
],
"VendorSkus": [
{
"Value": "test20439485744393",
"Description": "",
"Entity": null
}
],
"UpcCodes": [
{
"Value": "test93832744985",
"Description": "",
"Entity": null
}
],
"Region": null,
"Entity": null,
"IsLinkedToCuratedProduct": true,
"IsSaleable": true,
"IsArchived": false,
"Version": 2
}
Most of the Product information we want can be obtained through this request.
In the example below, we get Product details for a XT711 smartphone.
Relevant API Reference Pages
Getting Assets
Example Request
GET https://amsdemo.iqmetrix.net/assets/7443d13e-dc14-4b30-833b-2919d765964e
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
{
"width": 679,
"height": 1900,
"id": "7443d13e-dc14-4b30-833b-2919d765964e",
"href": "https://amsdemostorage.blob.core.windows.net/assets/7443d13e-dc14-4b30-833b-2919d765964e.png",
"md5Checksum": "d9394badc0926762d24e647a2e4e0b67",
"name": "53221171-d62b-4f34-838c-583273b476a8.png",
"mimeType": "image/png"
}
If a Product has a HeroShotId
or other Assets, we can get the appropriate image using this request.
Relevant API Reference Pages
Getting Stock Levels
Example Request
GET https://availabilitydemo.iqmetrix.net/v1/companies(14146)/CatalogItems(41519509-b798-4630-abba-89c9a30df83a)/Availability
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
{
"Id": "41519509-b798-4630-abba-89c9a30df83a",
"CompanyId": "14146",
"EntityId": 14202,
"Quantity": 15,
"IsSerialized": false,
"IsDropShippable": false
}
This request can be used to display stock levels for the Product in every Location in the Company.
Notes
- For RQ clients, availability is accurate within 5 minutes of being changed in RQ.
Relevant API Reference Pages
Getting Regular and Sale Pricing for a Location
Example Request
GET https://pricingdemo.iqmetrix.net/v1/Companies(14146)/Entities(14202)/CatalogItems(41519509-b798-4630-abba-89c9a30df83a)/Pricing
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
[
{
"Id": 15323,
"CompanyId": 14146,
"EntityId": 14202,
"CatalogItemId": "41519509-b798-4630-abba-89c9a30df83a",
"FloorPrice": null,
"IsDiscountable": true,
"PricingTermId": null,
"RegularPrice": 60,
"OriginalPrice": 55,
"OverridePrice": null,
"OverridePriceId": null
}
]
This request can be used to get Pricing for a single Location for a Product.
Notes
- For RQ clients, pricing is accurate within 5 minutes of being changed in RQ.
- Two types of prices are supported: regular price (
RegularPrice
) and sale price (OverridePrice
) - Multiple currencies are not supported, default retailer currency is implied
- Pricing information for products can be set up at any level in the Company Tree
- Term-based pricing is available to accommodate for scenarios where price varies based on contractual commitment
Relevant API Reference Pages
Getting a Pricing Term
Example Request
GET https://pricingdemo.iqmetrix.net/v1/companies(14146)/PricingTerm(78)
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
{
"Id": 78,
"Active": true,
"CanFinance": true,
"CarrierEntityId": 9,
"DisplayName": "2 Year Plan",
"EntityId": 14146,
"Name": "2 Year Plan",
"NumberOfPayments": 1,
"TermLengthInYears": 3
}
If the Pricing for this Product has a PricingTermId
, we can use this request to get the Pricing Term information.
Relevant API Reference Pages
My Profile
A Customer may visit a “My Profile” page to:
- Create an account
- Update their address
- Change their contact number
Creating a Customer
Example Request
POST https://crmdemo.iqmetrix.net/v1/Companies(14146)/CustomerFull
Authorization: Bearer (Access Token)
Accept: application/json
{
"CustomerTypeId": "2",
"PrimaryName": "Samantha",
"FamilyName": "Brown",
"Title": "Miss",
"Addresses": [
{
"AddressTypeId": 2,
"CountryCode": "CA",
"PostalCode": "94043",
"StateCode": "AB",
"Locality": "Edmonton",
"StreetAddress1": "1600 Amphitheatre Pkwy"
}
]
}
Example Response
HTTP 201 Content-Type: application/json
{
"Id": "4dad1b60-5bed-407f-b3ed-8517fcd0dc4a",
"PrimaryName": "Samantha",
"AlternateName": null,
"MiddleName": null,
"FamilyName": "Brown",
"Addresses": [
{
"Id": "7754df58-6539-44b7-aae5-73e1c7176ff5",
"CustomerId": "4dad1b60-5bed-407f-b3ed-8517fcd0dc4a",
"AddressTypeId": 2,
"AddressType": "Home",
"Default": false,
"DoNotContact": true,
"CountryCode": "CA",
"Country": "Canada",
"Locality": "Edmonton",
"StateCode": "AB",
"State": "Alberta",
"PostalCode": "94043",
"PostOfficeBoxNumber": null,
"StreetAddress1": "1600 Amphitheatre Pkwy",
"StreetAddress2": null,
"Notes": null,
"Version": 1,
"AttentionTo": null,
"Phone": null,
"Email": null
}
],
"ContactMethods": [],
"CustomerExtensions": [],
"RelatedCustomers": [],
"MemberOf": [],
"CustomerTypeId": 2,
"CustomerType": "Person",
"Title": "Miss",
"DateOfBirth": null,
"Notes": null,
"Disabled": false,
"DoNotContact": true,
"Version": 1
}
This request could be used in a checkout flow, or when logging into to an eCommerce site.
Relevant API Reference Pages
Getting a Customer
Example Request
GET https://crmdemo.iqmetrix.net/v1/Companies(14146)/CustomerFull(659c2a38-d083-4421-9330-46d779702f85)
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
{
"Id": "659c2a38-d083-4421-9330-46d779702f85",
"PrimaryName": "Princess",
"AlternateName": null,
"MiddleName": null,
"FamilyName": "Jasmine",
"Addresses": [
{
"Id": "a08b0640-606a-41f0-901a-facaf50e75dd",
"CustomerId": "659c2a38-d083-4421-9330-46d779702f85",
"AddressTypeId": 2,
"AddressType": "Home",
"Default": false,
"DoNotContact": false,
"CountryCode": "CA",
"Country": "Canada",
"Locality": "Yellowknife",
"StateCode": "NT",
"State": "Northwest Territories",
"PostalCode": "X1A 3X7",
"PostOfficeBoxNumber": null,
"StreetAddress1": "4702 Anderson-Thomson Blvd",
"StreetAddress2": null,
"Notes": null,
"Version": 1,
"AttentionTo": null,
"Phone": null,
"Email": null
}
],
"ContactMethods": [
{
"Id": "b25dd8b2-a24d-4107-8fbe-9c7b21e18137",
"CustomerId": "659c2a38-d083-4421-9330-46d779702f85",
"ContactMethodCategoryId": 1,
"ContactMethodCategory": "Phone",
"ContactMethodTypeId": 5,
"ContactMethodType": "Pager",
"Value": "(306) 222-3333",
"DoNotContact": true,
"Default": true,
"Notes": "After 6pm",
"Version": 1
}
],
"CustomerExtensions": [
{
"Id": "74b87ece-5f70-454d-9991-7952127146b0",
"Value": "Customer115",
"CustomerId": "659c2a38-d083-4421-9330-46d779702f85",
"ExtensionTypeId": 2,
"ExtensionType": "CorrelationId",
"Version": 1
}
],
"RelatedCustomers": [],
"MemberOf": [],
"CustomerTypeId": 2,
"CustomerType": "Person",
"Title": "Ms",
"DateOfBirth": "2014-05-08T16:53:12.15",
"Notes": "Interested in iPhone 6",
"Disabled": false,
"DoNotContact": false,
"Version": 2
}
This request can be used to get all the information about a Customer in one request.
Relevant API Reference Pages
Updating a Customer
Example Request
PUT https://crmdemo.iqmetrix.net/v1/Companies(14146)/CustomerFull(659c2a38-d083-4421-9330-46d779702f85)/ContactMethods(b25dd8b2-a24d-4107-8fbe-9c7b21e18137)
Authorization: Bearer (Access Token)
Accept: application/json
Content-Type: application/json
{
"Id": "b25dd8b2-a24d-4107-8fbe-9c7b21e18137",
"CustomerId": "659c2a38-d083-4421-9330-46d779702f85",
"ContactMethodCategoryId": 1,
"ContactMethodCategory": "Phone",
"ContactMethodTypeId": 5,
"ContactMethodType": "Pager",
"Value": "(306) 111-8877",
"DoNotContact": true,
"Default": true,
"Notes": "",
"Version": 2
}
Example Response
HTTP 201 Content-Type: application/json
{
"Id": "b25dd8b2-a24d-4107-8fbe-9c7b21e18137",
"CustomerId": "659c2a38-d083-4421-9330-46d779702f85",
"ContactMethodCategoryId": 1,
"ContactMethodCategory": "Phone",
"ContactMethodTypeId": 5,
"ContactMethodType": "Pager",
"Value": "(306) 111-8877",
"DoNotContact": true,
"Default": true,
"Notes": "",
"Version": 3
}
The request to update a Customer depends on what needs to be changed.
| Change | API Reference |
|---|---|
| Change to: customer name, birthday, notes, title | Updating a Customer |
| Adding a new address | Adding a Customer Address |
| Updating an address | Updating a Customer Address |
| Removing an address | Removing an Address from a Customer |
| Change to: phone number, email, fax, website, pager | Adding a Customer Contact Method |
| Add a new contact method | Updating a Customer Contact Method |
| Removing a contact method | Removing a Customer Contact Method |
The example below demonstrates updating an existing Contact Method, specifically a Customer updating their phone number.
Find a Store
A Customer might visit a “Find a Store” page to find:
- Store hours
- Phone number for a store
- Address of the nearest store
Getting a List of Stores
Example Request
GET https://entitymanagerdemo.iqmetrix.net/v1/Companies(14146)/Locations
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
[
{
"Id": 14202,
"Name": "Dufferin Mall",
"LocationType": null,
"LocationSubType": null,
"Address": {
"AddressLine1": null,
"AddressLine2": null,
"City": "Toronto",
"StateCode": "ON",
"StateName": "Ontario",
"CountryCode": "CA",
"CountryName": "Canada",
"Zip": null
},
"Contacts": [],
"StorePhoneNumbers": [],
"Area": null,
"StoreHours": {
"Monday": null,
"Tuesday": null,
"Wednesday": null,
"Thursday": null,
"Friday": null,
"Saturday": null,
"Sunday": null
},
"Geography": null,
"TimeZone": null,
"Description": "",
"Roles": [
{
"Name": "Location"
}
],
"Role": "Location",
"SortName": "dufferin mall",
"Attributes": {},
"Relationships": [
{
"Id": 6320,
"Definition": 12,
"Source": 14166,
"Destination": 14202,
"CreatedUtc": "2015-11-20T19:01:56.447Z",
"Version": 1
}
],
"Version": 1,
"CreatedUtc": "2015-11-20T19:01:56.447Z",
"LastModifiedUtc": "2015-11-20T19:01:56.447Z",
"CorrelationId": null,
"ClientEntityId": null,
"TypeId": null,
"Logo": null
}
]
This request returns information for every Location in a Company.
Relevant API Reference Pages
Order History
A customer might go to this page to:
- View previous orders
- Make a change to an order
- Check the status of an order
Getting All Orders
Example Request
GET https://orderdemo.iqmetrix.net/v1/Companies(14146)/OrderFull?$filter=State eq 'Pending' and EntityId eq 14202
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
[
{
"Items": [
{
"ItemExtensions": [],
"Id": "e21a8c58-7f66-41c3-9703-5c4d769959b2",
"OrderId": "f026299b-270e-4a99-a16b-b3df3784e0f1",
"ItemTypeId": 1,
"ItemType": "DropShip",
"ItemStatusId": 1,
"ItemStatus": "New",
"ProductId": "1",
"SupplierEntityId": 0,
"Quantity": 2,
"Cost": 5.99,
"ListPrice": 12.99,
"SellingPrice": 9.99,
"Index": 0,
"Description": "LG G3 phone case",
"SKU": "00001",
"Notes": "",
"SerialNumbers": [
"abc123",
"abc321"
],
"SupplierReference": "10",
"TrackingInformation": [],
"ShippingOptionId": null
}
],
"Id": "f026299b-270e-4a99-a16b-b3df3784e0f1",
"OrderTypeId": 1,
"OrderType": "Sales",
"State": "Pending",
"PrintableId": "79114V2",
"Name": "Galaxy S4 and Accessories Order",
"TenderId": null,
"TenderOrigin": null,
"EntityId": 14202,
"ShippingEntityId": 0,
"CustomerId": "00000000-0000-0000-0000-000000000000",
"BillingCustomerId": "659c2a38-d083-4421-9330-46d779702f85",
"ShippingCustomerId": "00000000-0000-0000-0000-000000000000",
"ShippingAddressId": "a08b0640-606a-41f0-901a-facaf50e75dd",
"BillingAddressId": "a08b0640-606a-41f0-901a-facaf50e75dd",
"EmployeeId": 0,
"DiscountCode": null,
"DiscountDescription": null,
"DiscountAmount": 0,
"CreatedDateUtc": "2015-12-16T22:14:59.603",
"OrderExpiryHours": 72,
"OrderExpiryDate": "2015-12-19T22:14:59.603"
}
]
This request could be used to make an “Order history” page, with a list of Orders the customer has previously made.
The following filters are available:
| Filter | Example |
|---|---|
| OrderState | /Companies(14146)/OrderFull?$filter=State eq 'Pending' |
| EntityId (Pick up Location) | /Companies(14146)/OrderFull?$filter=EntityId eq 14202 |
| Name | /Companies(14146)/OrderFull?$filter=substringof(Name, 'iPhone') |
| PrintableId | /Companies(14146)/OrderFull?$filter=PrintableId eq '2042068' |
| CreatedDateUtc | /Companies(14146)/OrderFull?$filter=CreatedDateUtc gt '2015-12-01T23:11:07.057' |
The example below demonstrates using the following filters:
- State of
Pending
- Dufferin Mall pick-up location (EntityId
14202
)
Relevant API Reference Pages
Updating an Order
Example Request
PUT https://orderdemo.iqmetrix.net/v1/Companies(14146)/Orders(f026299b-270e-4a99-a16b-b3df3784e0f1)
Authorization: Bearer (Access Token)
Accept: application/json
Content-Type: application/json
{
"Items": [
{
"ItemExtensions": [],
"Id": "e21a8c58-7f66-41c3-9703-5c4d769959b2",
"OrderId": "f026299b-270e-4a99-a16b-b3df3784e0f1",
"ItemTypeId": 1,
"ItemType": "DropShip",
"ItemStatusId": 1,
"ItemStatus": "New",
"ProductId": "1",
"SupplierEntityId": 0,
"Quantity": 2,
"Cost": 5.99,
"ListPrice": 12.99,
"SellingPrice": 9.99,
"Index": 0,
"Description": "LG G3 phone case",
"SKU": "00001",
"Notes": "",
"SerialNumbers": [
"abc321",
"abc123"
],
"SupplierReference": "10",
"TrackingInformation": [],
"ShippingOptionId": null
}
],
"Id": "f026299b-270e-4a99-a16b-b3df3784e0f1",
"OrderTypeId": 1,
"OrderType": "Sales",
"State": "Pending",
"PrintableId": "79114V2",
"Name": "Galaxy S4 and Accessories Order",
"TenderId": null,
"TenderOrigin": null,
"EntityId": 14202,
"ShippingEntityId": 0,
"CustomerId": "00000000-0000-0000-0000-000000000000",
"BillingCustomerId": "659c2a38-d083-4421-9330-46d779702f85",
"ShippingCustomerId": "00000000-0000-0000-0000-000000000000",
"ShippingAddressId": "a08b0640-606a-41f0-901a-facaf50e75dd",
"BillingAddressId": "a08b0640-606a-41f0-901a-facaf50e75dd",
"EmployeeId": 0,
"DiscountCode": null,
"DiscountDescription": null,
"DiscountAmount": 0,
"CreatedDateUtc": "2015-12-16T22:14:59.603",
"OrderExpiryHours": 72,
"OrderExpiryDate": "2015-12-19T22:14:59.603"
}
Example Response
HTTP 201 Content-Type: application/json
{
"Items": [
{
"ItemExtensions": [],
"Id": "e21a8c58-7f66-41c3-9703-5c4d769959b2",
"OrderId": "f026299b-270e-4a99-a16b-b3df3784e0f1",
"ItemTypeId": 1,
"ItemType": "DropShip",
"ItemStatusId": 1,
"ItemStatus": "New",
"ProductId": "1",
"SupplierEntityId": 0,
"Quantity": 2,
"Cost": 5.99,
"ListPrice": 12.99,
"SellingPrice": 9.99,
"Index": 0,
"Description": "LG G3 phone case",
"SKU": "00001",
"Notes": "",
"SerialNumbers": [
"abc123",
"abc321"
],
"SupplierReference": "10",
"TrackingInformation": [],
"ShippingOptionId": null
}
],
"Id": "f026299b-270e-4a99-a16b-b3df3784e0f1",
"OrderTypeId": 1,
"OrderType": "Sales",
"State": "Pending",
"PrintableId": "79114V2",
"Name": "Galaxy S4 and Accessories Order",
"TenderId": null,
"TenderOrigin": null,
"EntityId": 14202,
"ShippingEntityId": 0,
"CustomerId": "00000000-0000-0000-0000-000000000000",
"BillingCustomerId": "659c2a38-d083-4421-9330-46d779702f85",
"ShippingCustomerId": "00000000-0000-0000-0000-000000000000",
"ShippingAddressId": "a08b0640-606a-41f0-901a-facaf50e75dd",
"BillingAddressId": "a08b0640-606a-41f0-901a-facaf50e75dd",
"EmployeeId": 0,
"DiscountCode": null,
"DiscountDescription": null,
"DiscountAmount": 0,
"CreatedDateUtc": "2015-12-16T22:14:59.603",
"OrderExpiryHours": 72,
"OrderExpiryDate": "2015-12-19T22:14:59.603"
}
This request can be used to make changes on an Order before it enters the Processed
state.
In the example below, we are adding a Shipping Address (ShippingAddressId
) to the Order to match the Billing Address.
Compatible Products
This page is generally within the checkout flow or when browsing products, and displays a list of Products that work well with other Products.
For example, if a customer has a Galaxy S4 Order, the Compatible Products page might include appropriate cases or screen protectors.
Getting Compatible Products
Example Request
GET https://catalogsdemo.iqmetrix.net/v1/companies(14146)/catalog/items(cfe632c4-1128-45b1-be2b-3bbfb77df609)/compatible
Authorization: Bearer (Access Token)
Accept: application/json
Example Response
HTTP 200 Content-Type: application/json
{
"Items": [
{
"Name": "Samsung Galaxy S4 Nafrotiti",
"Slug": "M276",
"CatalogItemId": "334561cb-4304-472e-9457-40f03d03454c",
"CatalogSku": "F4VPEFHH",
"HeroShotId": "5c23eaf8-0eec-4ce1-8abb-e0b936def643"
},
{
"Name": "Samsung Galaxy S4 Standard Battery",
"Slug": "M1119-E14146",
"CatalogItemId": "b85cb879-bb5f-4847-a856-8287de0a92d5",
"CatalogSku": "H4G27G8HH",
"HeroShotId": null
}
]
}
This request is used to get a list of Compatible Products for a Product.


Books and Music
Available in store
Kissed By A Fox
Women Writing the West
Willa Literary Award Winner
Miles Goes West
The Boss Always Sits In The Back
Amelia Caroline
Sona
Dancing the Snow: A Guide to Snow For an Old Man
$25
John Bullock and his Clone Orchestra: Step Into My Mind
$10
In Paradise we Will Become Music
Gary Brower reads poems about revolution and war
Malpaís Review, Poetry Journal
Current issues and prior issues in stock
Lonely River Village: A Novel of Secret Stories
$14
Here On Earth
$12
Ten Shoes Up
Firecracker Soup: Poems 1980-1987
$9.95
Jémez Hijinks
$20
Placitas Particular
$20
Santa Fe Solo
$20
Life in the Full Upright and Locked Position
$9
The Hampton Court Murders
$20
The Further Adventures of a Lucky Dog
$17.95
Placitas Del Sol: A Poetic Places Journal
$20
Pilgrims and Promises: A Poetic Places Journal
$20
When East Was North
$16
Our Most Treasured Tails: Sixty Years of Pet Rescue
$20
The Proud Little Burro
$16.99
A Little Bird Told Me... Me lo dijo un pajarito...
$20
Leaving Cairo: As If It Were a Dream
$20
Coon Lake Tales
Secrets of the Plumed Saint: A Tale of Intrigue From Northern New Mexico
$15.95
The Book Of Knots
$10
Planting Trees in Incognita
$10
Joe's New Religion
Amadito and Spider Woman
$15.95
Great Dinners on a Shoestring
Amelia Caroline
The Gift Of Wonder


Bootstrap is the free open source and is the most popular css, html and javascript framework to develope the responsive web pages.
Bootstrap is the free open source and is the most popular css, html and javascript framework to develope the responsive web pages.


2:00 - 2:50 PM @ EDU 347
Topic: Grammar of R
Prerequisites: None
Presenter: Shalome Hanisha Anand Tatapudi
Sign Up Sheet Jupyter Notebook3:00 - 3:50 PM @ EDU 347
Topic: Linear Models & Model Selection
Prerequisites: Familiarity with R
Presenter: Nazmus Sakib
Sign Up Sheet Jupyter Notebook4:00 - 5:00 PM @ EDU 347
Topic: Trees & Ensemble Models
Prerequisites: Familiarity with R & Model Selection
Presenter: Daniel Romero Rodriguez
Sign Up Sheet Jupyter Notebook9:00 - 9:50 AM @ ENB 118
Topic: Grammar of Python 3
Prerequisites: None
Presenter: Aigerim Bogyrbayeva
Sign Up Sheet Jupyter Notebook10:00 - 11:45 AM @ ENB 118
Topic: Introduction to Pandas, Numpy, Matplotlib, Scikit Learn & Linear Models
Prerequisites: Familiarity with Python 3
Presenter: Hung Nguyen
Sign Up Sheet Jupyter Notebook12:30 - 1:30 PM @ ENB 118
Topic: Trees & Ensemble Models
Prerequisites: Familiarity with Python 3 & PyData Stack
Presenter: Zulqarnain Haider
Sign Up Sheet Jupyter Notebook1:45 - 3:15 PM @ ENB 118
Topic: Introduction to XGBoost
Prerequisites: Familiarity with Python 3, PyData Stack, Linear Models & Trees
Presenter: Aritra Pal
Sign Up Sheet Jupyter Notebook


When starting out with Types and Providers for Puppet it’s common to misunderstand when something is a Parameter and when something is a Property.
Properties
Properties are anything that will modify a resource. In other words, attributes of a type that will change how that resource type exists on your system. A property is a charactaristic of a resource. A property does not change what a resource is, which is where the confusion usually begins.
For example, let’s take the file resource (anyone who has had the opportunity of taking Extending Puppet for Developers might find this redundant).
file {'/tmp/test':
ensure => file,
path => '/tmp/test', # $namevar
owner => 'root',
group => 'root',
checksum => 'md5',
content => 'foo',
}
Any ideas which attributes are parameters and which are properties? Let’s start with
ensure => file,
The ‘ensure’ attribute is actually created by the ‘ensurable’ method from the Puppet::Type class. Any attribute calling ‘ensurable’ gets the default ‘present'and 'absent’ values telling the type to call from the provider ‘exists?()’ then based on output from ‘exists?’ evaluates ‘creates()’ or ‘destroy()’.
Ensure modifies the resource, but does not change the definition of what that resource is to the system, therefore ensure is a property.
Other properties of file are
owner
group
content
Content? Yes, content. On a file system the content of the file does not define the file, the $path to the file is the definition of a file. Therefore content is just a charactaristic of that file, making that attribute a property as well.
Parameters
Parameters are used by Puppet to provision the resource onto the system. Parameters are resource attributes that can be retrieved and are used to create, or define the resource as it exists on the system.
path => '/tmp/testing',
For example, the $namevar of the the file resource is the $path. That’s because the $path of a file defines the resource on the system. You can query the path of a file, however if you change the path of a file you define an entierly new file. Therefore, $path is a parameter.
Another parameter of file would the checksum attribute. The checksum type is used when determining whether to replace a file’s contents. If your md5 checksum does not match the md5 checksum of the file on the system your file will be created; if it does match your file will not be updated if it exists; if it doesn’t exist if will be provisioned. Checksum defines what the file should look like on the system; it’s used by Puppet to provision the file but not stored as part of the file resource.


This small town provides the only secure harbour in the north of the islands. It is situated at the northern end of the fjord of Sundini.
Location: 62°17'48"N, 7°5'29"W
The main quays are in the NW of the harbour, but are exposed to the south. A better berth may be found on the small boat pontoons, with local assistance.
There is water on the quay and a supermarket close to the harbour.


|
Summary of API Changes Since EPP-04 |
| EppAddress |
The maximum length of the street, city and state/provice fields was initially
defined as 32 in EPP-04, then extended by NeuLevel to 64, and finally specified
as 255 in EPP-1.0.
|
| EppAuthInfo |
The "ext" type is not implemented in the release.
|
| EppContact |
New status values have been defined for EPP-1.0, however, NeuLevel has no immediate plan for using them in the near future:
Access methods have been added for setting/getting contact data in internationalized
form and localized form. This is to replace the old "ascii" and "i18d" contact data
respectively:
Access methods have been added for setting/getting contact data disclosure setting:
|
| EppContactData |
The maximum length of the name and org fields of a postal line was initially
defined as 32 in EPP-04, then extended by NeuLevel to 64, and finally specified
as 255 in EPP-1.0.
|
| EppContactDisclose |
New class.
|
| EppContactType |
No change.
|
| EppDataCollectionPolicy |
New class.
|
| EppDataCollectionStatement |
New class.
|
| EppDomain |
New status values have been defined for EPP-1.0, however, NeuLevel has no immediate plan for using them in the near future:
The following status value, defined in EPP-04, have been removed for EPP-1.0:
Accesses methods have been added for handling name servers as "host attributes",
specified via EppHostAttribute objects:
|
| EppE164 |
The maximum length of an ITU E.164 phone number have been extended to 17 in EPP-1.0,
from 15 in EPP-04.
|
| EppEntity |
No change
|
| EppError |
EPP result code 1301 has been assigned with a fixed text message in EPP-1.0.
Sucessful responeses for pending actions should use EPP result code 1001,
which is added in EPP-1.0. Also, the meaning of EPP result code 2501 has been
changed in EPP-1.0.
|
| EppGreeting |
Access methods have been added for setting/getting an
EppDataCollectionPolicy object:
|
| EppHello |
No change.
|
| EppHost |
New status values have been defined for EPP-1.0, however, NeuLevel has no immediate plan for using them in the near future:
|
| EppHostAttribute |
New class.
|
| EppIpAddress |
No change.
|
| EppObject |
No change.
|
| EppParser |
No change.
|
| EppPeriod |
No change.
|
| EppServiceMenu |
Access methods have been added for adding/getting service extensions:
The services or service extensions must be specified via URIs in EPP-1.0,
instead of special "svc" tags in EPP-04.
|
| EppStatus |
No change.
|
| EppSvcsub |
No change, although new status values may be added in the future.
|
| EppSvcsubParam |
No change.
|
| EppTransactionId |
No change
|
| EppUnspec |
No change, although this has become a special class for handling NeuLevel's EPP extension
with full name space specification required in the XML representation.
|
| EppUtil |
No change.
|