|
||||||||||||||||||||||||||||||
SQL Server - Tips from the Trenches by Cameron Townshend Topics to cover are:
Hardcore LINQ to Entities by Adam Cogan Adam will take a deep dive into LINQ to Entities showing you best practices, pitfalls to avoid, and answers to the most frequently asked questions, telling you exactly what you need to know. Adam will pull apart all the key components of the LINQ to Entities framework, discussing and showing how each part integrates with each other, and how you can quickly create and modify your data access conceptual schema. This session will provide samples on how you can use the power of LINQ plus the new ADO.NET Entity Framework, to build advanced and fully featured data access layers immediately, without pain. See You There!!!| Sorry I can't make itSee the new facebook group for the latest news.
|
Canberra .NET User Group -
|
7 days to go!
Canberra .NET Developers User Group |
Hardcore LINQ to Entities by Adam Cogan
Adam will take a deep dive into LINQ to Entities showing you best practices, pitfalls to avoid, and answers to the most frequently asked questions, telling you exactly what you need to know. Adam will pull apart all the key components of the LINQ to Entities framework, discussing and showing how each part integrates with each other, and how you can quickly create and modify your data access conceptual schema.
This session will provide samples on how you can use the power of LINQ plus the new ADO.NET Entity Framework, to build advanced and fully featured data access layers immediately, without pain.
See You There!!! | Sorry I can't make it8th September
Scott Hanselman. Save the date!
 SSW Code Auditor is a tool that allows developers to take control of your code, ensuring large, complex source code can be simplified, cleaned and maintained. The built-in rules focus on the most popular .NET languages (C#, VB.NET) for both Windows Forms and ASP.NET; however, the flexibility of SSW Code Auditor allows the developer to add their own rules to target any language in any text file.
If you would like to advertise your product or service with
SSW or would like to find out more about various advertising
opportunities, please email your enquiry to
736f7068696562656c6c65407373772e636f6d2e6175
or call: +61 2 9953 3000.
July 2008 |
||||||||||
Tech Breakfast
Adam will take a deep dive into LINQ to Entities showing you best practices, pitfalls to avoid, and answers to the most frequently asked questions, telling you exactly what you need to know. Adam will pull apart all the key components of the LINQ to Entities framework, discussing and showing how each part integrates with each other, and how you can quickly create and modify your data access conceptual schema. This session will provide samples on how you can use the power of LINQ plus the new ADO.NET Entity Framework, to build advanced and fully featured data access layers immediately, without pain.
Now that we have heard what Silverlight can do for our web
sites, lets get down to writing some real code and implement
a real Silverlight based web application, that you can use
on your web sites. To get the most out of the session, attendees should bring their own development laptop.
Eric Phan and Adam Cogan show you how to streamline your project management and development cycles with Project Server 2007. In this session we will be stepping into the roles of the Project Manager, Developer, Account Manager and Client to see how these roles interact within a project. We will integrate with Microsoft Team Foundation Server 2008 and the Project Server 2007 Outlook Add-in Features covered:
|
||||||||||
EmploymentDue to the tremendous growth that our business has experienced over the last few months, we are seeking enthusiastic people to join the SSW team. Our Company is based in Neutral Bay which is one of the most elegant and scenic areas of Sydney. SSW is an Australian owned progressive consulting firm specialising in building, implementing and maintaining Microsoft .NET software applications. We are currently strongly looking for a SharePoint Developer. We are also currently looking for:
|
| Copyright ?SSW 1990-2007. All Rights Reserved. | Proudly developed by SSW Sydney Web Design | |||||
|


Example: excitations¶
Note
This example continues from the ground-state example and requires an optimized ground state to start from.
Here we demonstrates how to use the adpeps
package for computing excited states of the 2D Heisenberg model.
The configuration file examples/heis_D2_exci.yaml contains the following settings:
# Base configuration file for iPEPS simulation
# See the individual config modules for more information
# Simulation options
# -> ipeps/config.py
D: 2
chi: 40
model: 'heisenberg'
# Prefix for output file
out_prefix:
# Resume earlier simulation if found
resume: True
model_params:
J: 1
# Set to 0 to suppress all output besides printing each step
disp_level: 1
# CTM convergence criterium (singular values norm difference)
ctm_conv_tol: 1.e-6
# Minimal number of CTM steps
ctm_min_iter: 4
# Maximal number of CTM steps
ctm_max_iter: 20
# Flush output (prints with print(*args, flush=True))
flush_output: True
# Unit cell pattern (Neel order)
pattern:
[
[0,1],
[1,0],
]
# Excitations
momentum_path: 'Bril1'
Note that many of the options are the same as for the ground-state simulation, with the addition of the adpeps.ipeps.config.momentum_path
setting, which controls which path through the Brillouin zone will be taken.
In the configuration for excited states you do not explicitly set the momentum, but choose a preset path of points in momentum space and pass the index for each simulation.
If we now start the simulation, we get the following response:
>>> python -m adpeps exci 'heis_D2_exci' --p_ix=1
...
Running excited-state sim
...
Base file .../exci/heisenberg_D2_X40.base.npz not found.
Prepare the simulation first by running with option '-i'
What happened is that we first need to make some preparations for the simulation. For excited-state simulations, we require the following:
Well-converged CTM boundary tensors
A basis for the excited-state tensors, orthogonal to the ground state
The preparations for the simulation need to be performed only once, resulting in a base simulation file that will be used by the simulations for every momentum.
>>> python -m adpeps exci 'heis_D2_exci' -i
...
Running excited-state sim
...
| CTM step 1 conv: 1.036e-01 time: 3.64 obj: -0.665574
| CTM step 2 conv: 3.137e-03 time: 4.23 obj: -0.662436
| CTM step 3 conv: 7.887e-05 time: 4.0 obj: -0.662515
| CTM step 4 conv: 1.388e-06 time: 2.2 obj: -0.662514
| CTM step 5 conv: 2.455e-07 time: 1.35 obj: -0.662514
| CTM step 6 conv: 3.044e-08 time: 1.35 obj: -0.662514
| CTM step 7 conv: 4.673e-09 time: 1.37 obj: -0.662514
| CTM step 8 conv: 4.467e-10 time: 1.36 obj: -0.662514
| CTM step 9 conv: 5.029e-11 time: 1.35 obj: -0.662514
| CTM step 10 conv: 5.612e-11 time: 1.38 obj: -0.662514
| CTM step 11 conv: 2.801e-11 time: 1.36 obj: -0.662514
| CTM step 12 conv: 1.204e-11 time: 1.65 obj: -0.662514
| CTM step 13 conv: 4.936e-12 time: 1.42 obj: -0.662514
| CTM step 14 conv: 1.989e-12 time: 1.39 obj: -0.662514
GS norm 3.5890188873039093
GS norm 1.0
Substracting -0.33125703308289145 from Hamiltonian
Several steps have been performed: first a full CTM contraction of the ground-state network, followed by a normalization of the ground-state tensors. Then the Hamiltonian is shifted by the ground-state energy expectation value, in order for the excitations to have energies relative to the ground state. Finally, the basis is prepared and we have everything to get started.
>>> python -m adpeps exci 'heis_D2_exci' --p_ix=0
...
Running excited-state sim
...
Starting simulation of basis vector 1/62
Performing CTM
| CTM step 1 conv: 4.236e+00 time: 3.19 obj: 5.173629
| CTM step 2 conv: 3.539e-02 time: 1.38 obj: 5.138237
| CTM step 3 conv: 6.139e-03 time: 1.27 obj: 5.132099
| CTM step 4 conv: 2.116e-04 time: 1.24 obj: 5.132310
| CTM step 5 conv: 6.148e-05 time: 1.28 obj: 5.132249
| CTM step 6 conv: 3.704e-04 time: 1.25 obj: 5.131879
| CTM step 7 conv: 2.493e-04 time: 1.25 obj: 5.131629
Energies: 0.04418993415167889 1.5450126399606245e-10
Norm: 0.008611083119254162
==========
Finished basis vector 1/62
-
Starting simulation of basis vector 2/62
Performing CTM
| CTM step 1 conv: 2.004e+00 time: 0.99 obj: 3.335621
| CTM step 2 conv: 6.150e-02 time: 1.26 obj: 3.397117
| CTM step 3 conv: 2.017e-02 time: 1.28 obj: 3.376950
| CTM step 4 conv: 3.838e-03 time: 1.26 obj: 3.380788
| CTM step 5 conv: 3.650e-04 time: 1.3 obj: 3.380423
| CTM step 6 conv: 1.246e-03 time: 1.29 obj: 3.381669
| CTM step 7 conv: 1.288e-03 time: 1.31 obj: 3.380380
Energies: 0.4285335373465171 1.5450126399606245e-10
Norm: 0.12679967208649232
==========
Finished basis vector 2/62
...
In this version of the algorithm, the full energy and norm overlap matrices will be computed. Each of the basis vectors, as seen in the output above, is used as input in a separate CTM summation and the program will continue to run until all basis vectors have been used.


---
layout: page
---
Page not found
Unfortunately the page you were looking for could not be found. It might have been removed, lost or never existed. You could try and find it using the box (top right corner), browse the archives or go to the frontpage.


Northanger Abbey
by Jane Austen
Chapter VI
Additional Information
- Year Published: 1817
- Language: English
- Country of Origin: England
- Source: Austen, J. (1817). Northanger Abbey.London, England: J. Murray.
-
Readability:
- Flesch–Kincaid Level: 12.0
- Word Count: 1,807
- Genre: Satire
- Keywords: 19th century literature, british literature, jane austen, northanger abbey
- ✎ Cite This
Downloads
The following conversation, which took place between the two friends in the pump–room one morning, after an acquaintance of eight or nine days, is given as a specimen of their very warm attachment, and of the delicacy, discretion, originality of thought, and literary taste which marked the reasonableness of that attachment.
They met by appointment; and as Isabella had arrived nearly five minutes before her friend, her first address naturally was, “My dearest creature, what can have made you so late? I have been waiting for you at least this age!”
“Have you, indeed! I am very sorry for it; but really I thought I was in very good time. It is but just one. I hope you have not been here long?”
“Oh! These ten ages at least. I am sure I have been here this half hour. But now, let us go and sit down at the other end of the room, and enjoy ourselves. I have an hundred things to say to you. In the first place, I was so afraid it would rain this morning, just as I wanted to set off; it looked very showery, and that would have thrown me into agonies! Do you know, I saw the prettiest hat you can imagine, in a shop window in Milsom Street just now — very like yours, only with coquelicot ribbons instead of green; I quite longed for it. But, my dearest Catherine, what have you been doing with yourself all this morning?  How delightful! Oh! I would not tell you what is behind the black veil for the world! Are not you wild to know?”
“Oh! Yes, quite; what can it be? But do not tell me — I would not be told upon any account. I know it must be a skeleton, I am sure it is Laurentina’s skeleton. Oh! I am delighted with the book! I should like to spend my whole life in reading it. I assure you, if it had not been to meet you, I would not have come away from it for all the world.”
“Dear creature! How much I am obliged to you; and when you have finished Udolpho, we will read the Italian together; and I have made out a list of ten or twelve more of the same kind for you.”
“Have you, indeed! How glad I am!  Castle of Wolfenbach, Clermont, Mysterious Warnings, Necromancer of the Black Forest, Midnight Bell, Orphan of the Rhine, and Horrid Mysteries. Those will last us some time.”
“Yes, pretty well; but are they all horrid, are you sure they are all horrid?”
“Yes, quite sure; for a particular friend of mine, a Miss Andrews, a sweet girl, one of the sweetest creatures in the world, has read every one of them. I wish you knew Miss Andrews, you would be delighted with her. She is netting herself the sweetest cloak you can conceive. I think her as beautiful as an angel, and I am so vexed with the men for not admiring her! I scold them all amazingly about it.”
“Scold them! Do you scold them for not admiring her?”
“Yes, that I do. There is nothing I would not do for those who are really my friends. I have no notion of loving people by halves; it is not my nature. My attachments are always excessively strong. I told Captain Hunt at one of our assemblies this winter that if he was to tease me all night, I would not dance with him, unless he would allow Miss Andrews to be as beautiful as an angel. The men think us incapable of real friendship, you know, and I am determined to show them the difference. Now, if I were to hear anybody speak slightingly of you, I should fire up in a moment: but that is not at all likely, for you are just the kind of girl to be a great favourite with the men.”
“Oh, dear!” cried Catherine, colouring. “How can you say so?”
“I know you very well; you have so much animation, which is exactly what Miss Andrews wants, for I must confess there is something amazingly insipid about her. Oh! I must tell you, that just after we parted yesterday, I saw a young man looking at you so earnestly — I am sure he is in love with you.” Catherine coloured, and disclaimed again. Isabella laughed. “It is very true, upon my honour, but I see how it is; you are indifferent to everybody’s admiration, except that of one gentleman, who shall be nameless. Nay, I cannot blame you” — speaking more seriously — “your feelings are easily understood. Where the heart is really attached, I know very well how little one can be pleased with the attention of anybody else. Everything is so insipid, so uninteresting, that does not relate to the beloved object! I can perfectly comprehend your feelings.”
“But you should not persuade me that I think so very much about Mr. Tilney, for perhaps I may never see him again.”
“Not see him again! My dearest creature, do not talk of it. I am sure you would be miserable if you thought so!”
“No, indeed, I should not. I do not pretend to say that I was not very much pleased with him; but while I have Udolpho to read, I feel as if nobody could make me miserable. Oh! The dreadful black veil! My dear Isabella, I am sure there must be Laurentina’s skeleton behind it.”
“It is so odd to me, that you should never have read Udolpho before; but I suppose Mrs. Morland objects to novels.”
“No, she does not. She very often reads Sir Charles Grandison herself; but new books do not fall in our way.”
“Sir Charles Grandison! That is an amazing horrid book, is it not? I remember Miss Andrews could not get through the first volume.”
“It is not like Udolpho at all; but yet I think it is very entertaining.”
“Do you indeed! You surprise me; I thought it had not been readable. But, my dearest Catherine, have you settled what to wear on your head tonight? I am determined at all events to be dressed exactly like you. The men take notice of that sometimes, you know.”
“But it does not signify if they do,” said Catherine, very innocently.
“Signify! Oh, heavens! I make it a rule never to mind what they say. They are very often amazingly impertinent if you do not treat them with spirit, and make them keep their distance.”
“Are they? Well, I never observed that. They always behave very well to me.”
“Oh! They give themselves such airs. They are the most conceited creatures in the world, and think themselves of so much importance! By the by, though I have thought of it a hundred times, I have always forgot to ask you what is your favourite complexion in a man. Do you like them best dark or fair?”
“I hardly know. I never much thought about it. Something between both, I think. Brown — not fair, and — and not very dark.”
“Very well, Catherine. That is exactly he. I have not forgot your description of Mr. Tilney — ‘a brown skin, with dark eyes, and rather dark hair.’ Well, my taste is different. I prefer light eyes, and as to complexion — do you know — I like a sallow better than any other. You must not betray me, if you should ever meet with one of your acquaintance answering that description.”
“Betray you! What do you mean?”
“Nay, do not distress me. I believe I have said too much. Let us drop the subject.”
Catherine, in some amazement, complied, and after remaining a few moments silent, was on the point of reverting to what interested her at that time rather more than anything else in the world, Laurentina’s skeleton, when her friend prevented her, by saying, “For heaven’s sake! Let us move away from this end of the room. Do you know, there are two odious young men who have been staring at me this half hour. They really put me quite out of countenance. Let us go and look at the arrivals. They will hardly follow us there.”
Away they walked to the book; and while Isabella examined the names, it was Catherine’s employment to watch the proceedings of these alarming young men.
“They are not coming this way, are they? I hope they are not so impertinent as to follow us. Pray let me know if they are coming. I am determined I will not look up.”
In a few moments Catherine, with unaffected pleasure, assured her that she need not be longer uneasy, as the gentlemen had just left the pump–room.
“And which way are they gone?” said Isabella, turning hastily round. “One was a very good–looking young man.”
“They went towards the church–yard.”
“Well, I am amazingly glad I have got rid of them! And now, what say you to going to Edgar’s Buildings with me, and looking at my new hat? You said you should like to see it.”
Catherine readily agreed. “Only,” she added, “perhaps we may overtake the two young men.”
“Oh! Never mind that. If we make haste, we shall pass by them presently, and I am dying to show you my hat.”
“But if we only wait a few minutes, there will be no danger of our seeing them at all.”
“I shall not pay them any such compliment, I assure you. I have no notion of treating men with such respect. That is the way to spoil them.”
Catherine had nothing to oppose against such reasoning; and therefore, to show the independence of Miss Thorpe, and her resolution of humbling the sex, they set off immediately as fast as they could walk, in pursuit of the two young men.


Note: To complete these procedures, you must be assigned a role having the necessary permissions. To determine your role, follow the directions in Participant roles. For a basic understanding of roles and permissions, see Permissions and roles: Overview.
In a course site or project site, when you click
Site
Info
in the menubar, you will see a
participant list if you have the appropriate permissions. The list
contains names and usernames and may contain a user's class, section,
ID, credits, role, and status.
To edit the participant list, see Adding, editing, or removing participants.


Cultural Blog, Sprint 3: Process over Product and Meditation
How did the 'process over product' concept affect the way you tackled the site redesign and rebuild?
To be honest... After a while I completely forgot about this. I do in general like to make sure code is structed correctly so that was always an element of it, but I did get carried away in perfectionism trying to make individual elements look and act the way I wanted them to. I will bear this in mind in the future though.
What did you think about meditation before reading chapter 2?
I think it's a common misconception to associate meditation with new age hippies, pseudoscience, etc, so I've found it interesting to have that perception debunked. I've also used it before to calm down or go to sleep but I didn't know it had such scientifically evidenced benefits in general.
What new things have you learnt about meditation?
Primarily I had no idea that mindfulness meditation can improve attention- given I've mentioned my ADHD before the benefits from that are obvious and I'm looking forward to seeing that improve! (I also really like the fact that it views getting distracted as an inevitable opportunity for growth, rather than something to reprimand yourself over, which is a positive thing to carry across to all work.)
Did any of the suggested meditation techniques stand out to you?
I personally prefer the "easy way" of focussing on breathing- I'm used to doing that already. It also means I can listen to soothing music while meditating (I have tinnitus that distracts me endlessly if I don't have sound of some kind), and can focus on aligning my breathing with the music.
Any other musings?
Obviously this is a part of this course and I could view it as a course requirement, but I honestly think this is something that will really help me in the long term in multiple areas and I'm really glad it's been included in the course curriculum!


Police were called to the scene in Upton upon Severn, Worcestershire, at around 8am after the body was discovered.
Detective Inspector Jim Bayliss said: ‘Our enquiries are very much in their early stages and at this stage the woman’s death is being treated as suspicious.
‘A man has been arrested and is currently in police custody.
‘Extra officers will be in the area, both to carry out enquiries and to offer reassurance.’
The 25-year-old woman’s next of kin has been informed.
Got a story for Metro.co.uk?
Get in touch with our news team by emailing us at<EMAIL_ADDRESS>For more stories like this, check our news page.


SPLASH, SPLASH! SPLISH, SPLASH! SPLISH, SPLASH, SPLISH! Listen to the Wizard with the apple-red cheeks!
Once on a time, a poor man went into the woods to the riverbank. He chopped down a tree, chop! chop! As he chopped, crick! crack! the axehead fell from its handle, splash! into the deep water of the river.
The poor man cried out, "Oh-o-o-o-o! My axe! A-a-a-a-a-a-a! Who will fish it out for me?
Just then, limpity, limpity! limp! a very very old man came limping up, and asked:
"Why do you yell so loud? What has happened to you?"
"Oh-o-o-o-o! My axehead is gone. It has fallen into the water, and I have nothing to buy another with. I am so poor! How can I chop down trees now, and earn bread for my children?"
"Be quiet! Stop yelling! I will fish it out for you."
And then--rip! rip! rip! the old man tore off his coat, and sprang, splish, splash! into the water. After a while, hippity, hop! he stood up in the water, and held Out a golden axehead.
"There! Take it! Isn't that your axe?"
"O no! O no! It isn't mine," answered the poor man.
Again, splish, splash! the old man dived under the water. After a while, hippity, hop! he stood up with an axehead of silver.
"It isn't mine!" cried the poor man hardly looking at it at all.
The third time, splish, splash! into the water, and the old man brought up the iron axehead.
"That is my little axe! That is my little axe!"  "Thanks be to you, that I have it again!"
He grasped the axe, snitch, snatch! from the old man's hand. Then right about face! Forward march! He started for his home. But:-
"Hi, there!" cried the old man after him.
When the poor man reached home, chit! chat! chit! how he chattered about it all! And a neighbor heard him, a greedy man, a Never-Enough.
The Never-Enough thought a bit, ran! rin! ran into the woods, and Aha! chopped a tree, chip! chop! in the same place. His axehead, which he had loosened, fell splash! into the water.
Then he began to yell, "Oh-o-o-o-o-o-o-o!"
Limpity, limpity! limp! the old man stood there.
"What has happened to you?"
"My own little axehead, splash! has fallen into the water and sunk. Who will find it for me?"
"I will!" cried the old man, and sprang splish, splash! into the water.
After a while, hippity, hop! there he was again in the water, with the iron axehead.
"Here is your axe."
"That isn't mine! That isn't mine! answered the Never-Enough.
Again, splish, splash! the old man in the water, and hippity, hop! after a while back again with the silver axehead!
"Is that yours?"
"It's not mine! Mine was different."
The third time, splish, splash, splish! the old man in the water, and hippity, hop! out of the water again with the golden axehead!
"That is mine!" cried the greey Never-Enough, full of joy.
And because he lied so shamelessly, hi there! the old man dived into the water, and did not come back.
As for the golden axehead, zip! it passed close to the nose of the Never-Enough. He kept on waiting, waiting, for some one to bring him a diamond axehead!
And maybe he is waiting there still!


App made with <3 in JS by
$author, 2018
If you find an error or some kind of mistake, don't hesitate to
open an issue on Github or contact me via
the e-mail.
Disclaimer: Please note this is the beta version and the real numbers can be different - I reserve scale up to ~ ±3
Version:
$version


|
||||||||
| PREV NEXT | FRAMES NO FRAMES |
call
method here.
createBindings
method here.
eval
method here.
eval
method here.
finalize
method here.
get
method here.
getBindings
method here.
getContext
method here.
getEngineName
method here.
getEngineVersion
method here.
getFactory
method here.
getLanguageName
method here.
getLanguageVersion
method here.
getMethodCallSyntax
method here.
getOutputStatement
method here.
getParameter
method here.
getProgram
method here.
getScriptEngine
method here.
Jep
instance.
Jep
instance.
Jep
instance.
Jep
instance.
JepException
instance.
JepException
instance.
JepException
instance.
main
method here.
propertyChange
method here.
put
method here.
set
method here.
set
method here.
set
method here.
set
method here.
set
method here.
set
method here.
set
method here.
set
method here.
set
method here.
set
method here.
set
method here.
setBindings
method here.
setContext
method here.
terminate
method here.
|
||||||||
| PREV NEXT | FRAMES NO FRAMES |


--- layout: default title: Community permalink: /forum/ --- Note: you can access this forum also from the Google Groups page.


Discover Your ITEC Major the First Time Around!
Software Development major focuses on the creation, maintainability, and testing of software systems. with the emphasis on team communication. Students will learn Object-oriented programming (OOP) and multiple projects will encourage these learning essentials.
Digital media major introduces students to a life of creativity. with the main focus on creating beautiful animations, videos, and photos. in addition, students will acquire the knowledge of various professional editing tools to help them fulfill their editing goals.
System and security majors enforce the need for a strong infrastructure. students will be responsible for pinpointing the vulnerability of the system in order to prevent attacks to the network
Enterprise systems major is the Business side of information technology. these roles include organizing and running operations in order to help maintain and manage an organization's IT department Communication and Leadership skills are key to succeed in the field


Flash object for a player sitting at a trick-taking card game. This is a placeholder for
something nicer, so only the interface is documented in detail.
protected var _background:Bitmap
protected var _caption:Text
protected var _captionColor:uint
protected var _captionOutlineColor:uint
protected var _headShot:HeadShotContainer
protected var _height:int
protected var _id:int
protected var _timer:TimerMovie
protected var _turn:Boolean
protected var _warningColor:uint
public function PlayerSprite(table:Table, id:int, width:int, height:int, timer:TurnTimer, timerMovie:Class, timerPos:Point, background:Class, textColor:uint, outlineColor:uint, warningColor:uint, captionColor:uint, captionOutlineColor:uint)
Create a new player.
Parameters
| table:Table — the table for the game the player is playing
|
| |
| id:int — the id of the player this sprite represents
|
| |
| width:int — the turn timer model object
|
| |
| height:int — the embedded movie for the turn timer
|
| |
| timer:TurnTimer — the position of the timer relative to the center of the player sprite
|
| |
| timerMovie:Class — the embedded background object
|
| |
| timerPos:Point — the color of the text of the player's name
|
| |
| background:Class — the color of the outline of the text
|
| |
| textColor:uint — the width of the background image
|
| |
| outlineColor:uint — the height of the background image
|
| |
| warningColor:uint — the color of the caption text when it is a warning
|
| |
| captionColor:uint — the color of the caption text normally
|
| |
| captionOutlineColor:uint — the color of the outline of the caption text
|
public function setHeadShot(headShot:DisplayObject):void
Set the player head shot.
Parameters
public function setTurn(turn:Boolean):void
Update to reflect the turn status.
Parameters
| turn:Boolean — indicates whether it is this player's turn |
public function showCaption(str:String, warning:Boolean = false):void
Display a warning for this player.
TODO: make protected and listen for warning events in subclasses.
Parameters
| str:String |
| |
| warning:Boolean (default = false )
|
protected function turnTimerListener(event:TurnTimerEvent):void
Parameters
protected static const DROP_SHADOW_MAX_ALPHA:Number = 0.5


Read on to find out more about me, how to get in touch, or take a listen to a few instrumentals that I've produced.
About Me
In May of 2017, I graduated from Penn State Behrend with BA in Computer Engineering. I am currently working for GE while being enrolled in their software Edison Leadership program. Take a look at my complete resume below. Feel free to email me any questions!
Contact Me
Instrumentals
For free downloads send me an email using the above section!


300 Years of History:
New Bern, North Carolina
Rachel Metcalf
July 27, 2015
Home
142
CH ➵ NB
largest
city in Craven County
2nd Oldest
(Bath, NC = the oldest)
more...
Brad's Drink
(AKA Pepsi-Cola)
Sparks
(author of romance novels)
!
1st
permanent
capitol
Colonial Beginnings
Est. 1710
North Carolina
▶▶
1767
New Bern = govt.
NEW
(also expensive)
1775
Governor Martin = gone
(Revolutionary War continues)
The First State Capitol
1783-1794
1794
> Twenty Years
1798
Tryon Palace
160+ years later...
houses and businesses and highways, oh my!
video
PSA = good for NC Historic Sites
video
(it's been through a lot)
Thanks for watching!
Sources


{# ``base.html`` is the template all our other templates derive from. While Flask-Bootstrap ships with its own base, it is good form to create a custom one for our app, as it allows customizing some aspects. Deriving from bootstap/base.html gives us a basic page scaffoling. You can find additional information about template inheritance at http://jinja.pocoo.org/docs/templates/#template-inheritance #} {%- extends "bootstrap/base.html" %} {# We also set a default title, usually because we might forget to set one. In our sample app, we will most likely just opt not to change it #} {% block title %}SKTimeline{% endblock %} {# While we are at it, we also enable fixes for legacy browsers. First we import the necessary macros: #} {% import "bootstrap/fixes.html" as fixes %} {% import "bootstrap/wtf.html" as wtf %} {# Then, inside the head block, we apply these. To not replace the header, ``super()`` is used: #} {% block head %} {{super()}} {#- Docs: http://pythonhosted.org/Flask-Bootstrap/macros.html#fixes The sample application already contains the required static files. #} {{fixes.ie8()}} {%- endblock %} {# Adding our own CSS files is also done here. Check the documentation at http://pythonhosted.org/Flask-Bootstrap/basic-usage.html#available-blocks for an overview. #} {% block styles -%} {{super()}} {# do not forget to call super or Bootstrap's own stylesheets will disappear! #} {% endblock %} {# Finally, round things out with navigation #} {% block navbar %}


Curated news content garantying positive news and solution oriented coverage to current worlwide problems.
How many times a week do we sit and complain about a bad situation but yet we fail to see what we can actually do to change the situation... This is why we added the Challenge feature to help me and you connect with others who care in our local communities so that we together can have a positive impact in the World.
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima maxime quam architecto quo inventore harum ex magni, dicta impedit.
Co-Founder
Co-Founder
???
???
Lead Developer
???


{% load i18n %}{% load molly_utils %}{% load molly_maps %}{% load compressed %}
{% blocktrans count p_and_r.routes|length as num_routes with p_and_r.routes|join:', ' as route_numbers and p_and_r.start.title as start and p_and_r.origin_stop.entity.title as origin_stop %}At {{ start }} take service {{ route_numbers }} from {{ origin_stop }}.{% plural %}At {{ start }} take any of services {{ route_numbers }} from stop {{ origin_stop }}.{% endblocktrans %}
{% blocktrans with p_and_r.closest_stop.title as end %}When the service reaches {{ end }}, disembark and continue by foot using the directions below.{% endblocktrans %}
{% endif %}{% blocktrans with first_directions.total_time|humanise_seconds as time and first_directions.total_distance|humanise_distance as distance %}This route will take {{ time }} and cover {{ distance }}.{% endblocktrans %}
{% blocktrans with stop.directions_to.total_time|humanise_seconds as time and stop.directions_to.total_distance|humanise_distance as distance %}This route will take {{ time }} and cover {{ distance }}.{% endblocktrans %}
{{ waypoint.instruction }}
{{ waypoint.additional }}
{% render_map waypoint.map 'printable' %}
{% render_location_map stop.entity.location 'printable' %}
{% if stop.description %}{{ stop.description }}{% endif %} {% endfor %}{% trans 'Please note that the route information provided should be followed at your own risk.' %}
{% url maps:osm-about as about_link %}{% blocktrans %}Maps © OpenStreetMap and contributors, CC-BY-SA{% endblocktrans %}


Package io.fluentlenium.core.conditions
Class RectangleConditionsImpl
- java.lang.Object
-
- io.fluentlenium.core.conditions.AbstractObjectConditions<org.openqa.selenium.Rectangle>
-
- io.fluentlenium.core.conditions.RectangleConditionsImpl
-
- All Implemented Interfaces:
Conditions<org.openqa.selenium.Rectangle>
,ConditionsObject<org.openqa.selenium.Rectangle>
,RectangleConditions
public class RectangleConditionsImpl extends AbstractObjectConditions<org.openqa.selenium.Rectangle> implements RectangleConditions
Conditions for rectangle.
-
-
Field Summary
-
Fields inherited from class io.fluentlenium.core.conditions.AbstractObjectConditions
negation, object
-
-
Constructor Summary
Constructors Constructor Description RectangleConditionsImpl(org.openqa.selenium.Rectangle rectangle)
Creates a new conditions object on rectangle.RectangleConditionsImpl(org.openqa.selenium.Rectangle rectangle, boolean negation)
Creates a new conditions object on rectangle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dimension(int width, int height)
Check that rectangle has the given dimension.IntegerConditions
height()
Add advanced conditions on rectangle height.boolean
height(int height)
Check that rectangle has the given height.protected RectangleConditionsImpl
newInstance(boolean negationValue)
Creates a new instance of this condition.RectangleConditionsImpl
not()
Negates this condition object.boolean
position(int x, int y)
Check that rectangle has the given (x, y) position.boolean
positionAndDimension(int x, int y, int width, int height)
Check that rectangle has the given psition and dimension.IntegerConditions
width()
Add advanced conditions on rectangle width.boolean
width(int width)
Check that rectangle has the given width.IntegerConditions
x()
Add advanced conditions on rectangle x position.boolean
x(int x)
Check that rectangle has the given x position.IntegerConditions
y()
Add advanced conditions on rectangle y position.boolean
y(int y)
Check that rectangle has the given y position.-
Methods inherited from class io.fluentlenium.core.conditions.AbstractObjectConditions
getActualObject, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fluentlenium.core.conditions.Conditions
verify
-
-
-
-
Constructor Detail
-
RectangleConditionsImpl
public RectangleConditionsImpl(org.openqa.selenium.Rectangle rectangle)
Creates a new conditions object on rectangle.- Parameters:
rectangle
- underlying rectangle
-
RectangleConditionsImpl
public RectangleConditionsImpl(org.openqa.selenium.Rectangle rectangle, boolean negation)
Creates a new conditions object on rectangle.- Parameters:
rectangle
- underlying rectanglenegation
- negation value
-
-
Method Detail
-
newInstance
protected RectangleConditionsImpl newInstance(boolean negationValue)
Description copied from class:AbstractObjectConditions
Creates a new instance of this condition.- Specified by:
newInstance
in classAbstractObjectConditions<org.openqa.selenium.Rectangle>
- Parameters:
negationValue
- negation value- Returns:
- new instance of this condition
-
not
public RectangleConditionsImpl not()
Description copied from interface:Conditions
Negates this condition object.- Specified by:
not
in interfaceConditions<org.openqa.selenium.Rectangle>
- Specified by:
not
in interfaceRectangleConditions
- Overrides:
not
in classAbstractObjectConditions<org.openqa.selenium.Rectangle>
- Returns:
- a negated condition object
-
x
public boolean x(int x)
Description copied from interface:RectangleConditions
Check that rectangle has the given x position.- Specified by:
x
in interfaceRectangleConditions
- Parameters:
x
- x position- Returns:
- true if rectangle has the given x position, false otherwise
-
x
public IntegerConditions x()
Description copied from interface:RectangleConditions
Add advanced conditions on rectangle x position.- Specified by:
x
in interfaceRectangleConditions
- Returns:
- advanced conditions builder on rectangle x position
-
y
public boolean y(int y)
Description copied from interface:RectangleConditions
Check that rectangle has the given y position.- Specified by:
y
in interfaceRectangleConditions
- Parameters:
y
- y position- Returns:
- true if rectangle has the given y position, false otherwise
-
y
public IntegerConditions y()
Description copied from interface:RectangleConditions
Add advanced conditions on rectangle y position.- Specified by:
y
in interfaceRectangleConditions
- Returns:
- advanced conditions builder on rectangle y position
-
position
public boolean position(int x, int y)
Description copied from interface:RectangleConditions
Check that rectangle has the given (x, y) position.- Specified by:
position
in interfaceRectangleConditions
- Parameters:
x
- x positiony
- y position- Returns:
- true if rectangle has the given (x, y) position, false otherwise
-
width
public boolean width(int width)
Description copied from interface:RectangleConditions
Check that rectangle has the given width.- Specified by:
width
in interfaceRectangleConditions
- Parameters:
width
- width- Returns:
- true if rectangle has the given width, false otherwise
-
width
public IntegerConditions width()
Description copied from interface:RectangleConditions
Add advanced conditions on rectangle width.- Specified by:
width
in interfaceRectangleConditions
- Returns:
- advanced conditions builder on rectangle width
-
height
public boolean height(int height)
Description copied from interface:RectangleConditions
Check that rectangle has the given height.- Specified by:
height
in interfaceRectangleConditions
- Parameters:
height
- height- Returns:
- true if rectangle has the given height, false otherwise
-
height
public IntegerConditions height()
Description copied from interface:RectangleConditions
Add advanced conditions on rectangle height.- Specified by:
height
in interfaceRectangleConditions
- Returns:
- advanced conditions builder on rectangle height
-
dimension
public boolean dimension(int width, int height)
Description copied from interface:RectangleConditions
Check that rectangle has the given dimension.- Specified by:
dimension
in interfaceRectangleConditions
- Parameters:
width
- widthheight
- height- Returns:
- true if rectangle has the given dimension, false otherwise
-
positionAndDimension
public boolean positionAndDimension(int x, int y, int width, int height)
Description copied from interface:RectangleConditions
Check that rectangle has the given psition and dimension.- Specified by:
positionAndDimension
in interfaceRectangleConditions
- Parameters:
x
- x positiony
- y positionwidth
- widthheight
- height- Returns:
- true if rectangle has the given dimension, false otherwise
-
-


PCT Manager - Time Tracker
Loading time tracker, please wait.
Viewing:
View by:
Total
-
Today
-
Last 7 Days


Pizza!
What size would you like your pizza?
Choose size:
Personal 8"
Medium 12"
Large 18"
Giant 22"
Choose your toppings:
Pepperoni
Onions
Mushrooms
Banana Peppers
Chicken
Submit your order!


--- title: Israel shot 158 date: 2004-06-07T00:00:00.000Z filepathOriginal: photos/IMG0229.jpg filepathThumbnail: photos/IMG0229.thumbnail.jpg filepathPreview: photos/IMG0229.preview.jpg ---
View of Eilat and Aqaba from Mt Herkezila


Quiz - The risk of money laundering
Which of the following is NOT an anti-money
laundering obligation shared by reporting
entities?
Correct answer: Destroy business records periodically
Which of the following is NOT a requirement for
AML/CTF programs?
Correct answer: It must encourage employees to avoid
customer due diligence where possible
Which of the following is true in relation to the
tailored format of AML/CTF programs?
Correct answer: Reporting entities are best placed to
assess the risks posed by their customers, products and
services
Organisations should assess their ML/TF risk
based on which of the following factors?
Correct answer: All of the above
Which of the following statements about
beneficial owners is false?
Correct answer: They are thought to pose a low risk of
money laundering
Which of the following statements about non-
bank financial institutions is true?
Correct answer: They are potentially extreme-risk
customers
Before accepting a customer, what should
reporting entities do?
Correct answer: Check both the DFAT blacklist and the
Criminal Code Regulations
Which the following is NOT a politically exposed
person?
Correct answer: A schoolteacher
Which of the following statements about
employees is true?
Correct answer: They could pose a significant risk of
money laundering and terrorism financing to the
organisation
Which of the following does NOT suggest a high
risk of money laundering?
Correct answer: The source of funds is a regular and
known source
Fill in the blank. Collecting information is vital to
___ ML/TF risks.
Correct answer: … determining the nature of your
business relationships and mitigating…
What factor will NOT help you determine the
control structure of a corporate customer?
Correct answer: The annual revenue of the parent
company
Which of the following are designated service
types?
Correct answer: All the above
Complete the sentence. Countries with a low
level of anti-money laundering regulation…
Correct answer: … pose higher risks than countries with
a high level of regulation
Non-face to face delivery of a designated service
will generally pose a greater level of ML/TF risk
than face-to-face delivery. True or false?


Test cf-kv-db via Pages
A Simple Database using Cloudflare KV
For details see
https://github.com/NaNorNull/cfkvdb
See also a
Workers version of this page with dynamic authorization
Base Workers url =


{{/* Takes in variables: date: with format "2021-02-13" or "YYYY-MM-DD" index: the day number like "01", "02", "03" inner: can be either text or short code component "comp-schedule-event" */}}


This group of functions simplifies the creation of linked micromap plots.
| Version: | 1.9.3 |
| Depends: | R (≥ 2.10), maptools, RColorBrewer, rgdal, sp |
| Imports: | ggplot2 (≥ 2.0.0), grid |
| Suggests: | knitr, rgeos |
| Published: | 2018-02-08 |
| Author: | Quinn Payton [aut], Tony Olsen [aut], Marc Weber [ctb], Michael McManus [ctb], Tom Kincaid [ctb], Marcus W. Beck [cre, ctb] |
| Maintainer: | Marcus W. Beck <marcusb at sccwrp.org> |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: | http://www.jstatsoft.org/v63/i02/ |
| NeedsCompilation: | no |
| Citation: | micromap citation info |
| Materials: | NEWS |
| In views: | Spatial |
| CRAN checks: | micromap results |
| Reference manual: | micromap.pdf |
| Vignettes: |
Introduction to the micromap package |
| Package source: | micromap_1.9.3.tar.gz |
| Windows binaries: | r-devel: micromap_1.9.3.zip, r-release: micromap_1.9.3.zip, r-oldrel: micromap_1.9.3.zip |
| OS X binaries: | r-release: micromap_1.9.3.tgz, r-oldrel: micromap_1.9.3.tgz |
| Old sources: | micromap archive |
Please use the canonical form https://CRAN.R-project.org/package=micromap to link to this page.


Eleven Asian countries reach consensus on armyworm prevention
BEIJING, Nov 17 (Reuters) -
* China and some Asian countries recently reached agreement on control and prevention of a destructive pest at an international industry workshop in Kunming, the Agriculture Ministry said on Sunday.
* Eleven countries including Cambodia, Japan, Indonesia and Laos agreed to carry out regional joint monitoring of armyworm and establish information exchange mechanism, according to the Ministry of Agriculture and Rural Affairs of China.
* The countries also vowed to strengthen policy and financial support on the treatment of armyworm, the agricultural ministry said.
* Fall armyworm, which feasts in large numbers on the leaves and stems of many plant species, can infest and damage hundreds of hectares of crops in a single night.
* Bangladesh, Cambodia and Laos have suffered severe corn damage from armyworm this year. China also sees 1.1 million hectares of its land infested by the pest, according to the agricultural ministry. (Reporting by Min Zhang and Norihiko Shirouzu, editing by Louise Heavens)
© Copyright Thomson Reuters 2019. Click For Restrictions - http://about.reuters.com/fulllegal.asp


I am an ENFJ. I love building software. I have a Baccalaureate degree in Electronics and currently working assiduosly towards my Masters degree in Computer Sciences and Information Technology I love learning new technologies currently revolving around the DATA (Hmm. You know it's a big deal nowadays).


Pluto was discovered in 1930 and designated as a planet.
In 2006, Pluto was reclassified as a dwarf planet.
Pluto is the farthest planet from the Sun.


This site features the nearest Privately Owned Public Outdoor Spaces within San Francisco. Use the map below to deternine where the nearest location is for you and check out the information about the locations below the map. Feel free to add any locations at the bottom of the page. Reviews for each Pub Hub are welcomed and encouraged!
Made with ❤ by MALU & CARLYNN


Before Change
*args,
**kwargs):
if isinstance(inputs, (list, tuple)):
concatenated = (
tf.keras.layers.Concatenate(axis=-1)(inputs)
if len(inputs) > 1
else inputs[0])
else:
concatenated = inputs
out = concatenated
After Change
name=None,
*args,
**kwargs):
if not isinstance(input_shapes[0], (list, tuple)):
raise NotImplementedError(
"TODO(hartikainen): feedforward_model currently expects a list of"
" shapes as an input. It might be possible that you passed in a"
" list/tuple of dimension objects. Those should be accepted"
" but have not yet been implemented.")
inputs = [
tf.keras.layers.Input(shape=input_shape)
for input_shape in input_shapes
]
if len(inputs) > 1:
out = tf.keras.layers.Concatenate(axis=-1)(inputs)
else:


Module: Component¶
Overview¶
This module provides a GUI Component programming model for web application. It is inspired by Facebook’s React (https://facebook.github.io/react/) and uses a Virtual DOM implementation for its rendering engine. While it follows the general ideas of React, it does some things very differently.
A Component represents a GUI element. It is conceived of a current state and its visual representation. Let’s assume a GUI element for a navigation menu. The navigation menu contains some menu items which direct the user to different parts of the web application. Additionally it contains a “Change language” dropdown that let’s the user choose a translation for the web application. If the user switches to another language, the navigation menu itself shows in the new language according to the entire web application.
In this example, the current state of the navigation menu consists of at least all the menu items and the currently selected language to highlight in the language dropdown. Furthermore, the current translation of the navigation menu is also part of its current state.
Thus, the current state of the navigation menu component is represented by:
- the menu items
- the currently selected language
- all available languages
In Javascript the current state could be collected in a simple object like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | var state = {
language: {
selected: 'en',
available: ['de','en']
},
menu: {
about: 'http://...',
contact: 'http://...',
register: 'http://...',
login: 'http://...'
},
translation: {
about: 'About',
contact: 'Contact',
register: 'Sign up',
login: 'Login'
}
};
|
The visual representation of this state could be something like this:

About

Contact

Sign up

Login

English

Deutsch

In mathematical terms the visual representation is a function of the state:
F(state) = HTML
If the current state changes, its visual representation changes accordingly. Let’s say the user selects another language. This should change the state to:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | var state = {
language: {
selected: 'de',
available: ['de','en']
},
menu: {
about: 'http://...',
contact: 'http://...',
register: 'http://...',
login: 'http://...'}
},
translation: {
about: 'Über uns',
contact: 'Kontakt',
register: 'Registrieren',
login: 'Login'
}
};
|
The new state renders to a new visual representation:
1 2 3 4 5 6 7 8 9 10 11 12 |

Über uns

Kontakt

Registrieren

Login

English

Deutsch

|
Because state changes automatically lead to a change of their visual representation, the visual representation is never altered directly by e.g. manipulating the DOM tree. Instead state changes are triggered through a well-defined set of state transitions and the automated process of transforming the state to its visual representation is triggered whenever a state transition occurs.
In practical terms, the Component exposes a render function which receives the current state and creates a HTML representation. This representation is compared to the current state of the DOM tree which is altered to match the new representation.
current state -> render() -> new HTML -> diff'ed to DOM -> patch the DOM
Dependencies¶
This module uses the following libraries and modules:
| Module | Repository | AMD module alias |
|---|---|---|
| morphdom | https://github.com/patrick-steele-idem/morphdom | morphdom |
| superagent | https://github.com/visionmedia/superagent | superagent |
| jQuery | https://jquery.com | $ |
| underscore | http://underscorejs.org/ | _ |
All dependencies are provided in the dist
directory at https://github.com/datenwelt/cargo-js.git. Additionally
an implementation of the Promise/A+ specification is needed (which is provided by all modern browsers).
Code example / Usage¶
As a practical example, the navigation menu component from above is built from scratch with requirejs for dependency management. Let’s start with an empty HTML page and a placeholder for the nav menu. This is pretty much requirejs boilerplate.
Project structure¶
The overall project structure is:
index.html
js/app.js
js/lib/component.js
js/lib/third-party/jquery.js
js/lib/third-party/morphdom.js
js/lib/third-party/requirejs.js
js/lib/third-party/superagent.js
js/lib/third-party/handlebars.js
js/lib/third-party/underscore.js
html/nav.html
The file index.html
is the web page which loads app.js
via requirejs. The files in
js/lib
come from the cargo repository, everything under js/lib/third-party
comes
from third party vendors.
The file html/nav.html
is an empty HTML-file for now and will carry the HTML template of
the navigation menu later.
We do not use any CSS or other styling for clarity. You can add it later if you want.
Setting up the boilerplate¶
Within index.html
we define an element which later receives the rendered navigation menu. Note that
we load jQuery as a global and not by requirejs. Technically, this is not necessary but as most HTML frameworks require
jQuery it is needed as a global anyways.
index.html
<!DOCTYPE html>

<meta charset="UTF-8">
<title>Component.js - example project</title>

In js/app.js
we load all required dependencies and provide a starting point.
js/app.js
1 2 3 4 5 6 7 8 9 10 11 12 13 | require.config({
paths: {
'cargo.Component': 'lib/component',
'morphdom': 'lib/third-party/morphdom',
'Handlebars': 'lib/third-party/handlebars',
'superagent': 'lib/third-party/superagent'
'underscore: 'lib/third-party/underscore
}
});
require(['cargo.Component'], function(Component) {
});
|
Next we define a global object TRANSLATIONS
containing the English and German translations to
have them at hand when needed.
js/app.js
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | require(['cargo.Component'], function(Component) {
var TRANSLATIONS = {
'de': {
about: 'Über uns',
contact: 'Kontakt',
register: 'Registrieren',
login: 'Login'
},
'en': {
about: 'About',
contact: 'Contact',
register: 'Sign up',
login: 'Login'
}
}
});
|
Defining and attaching a component¶
Let’s define the navigation menu component and attach it to the
element in the web page. The
cargo.Component
module provides a builder to achieve this. Additionally we need a first action,
that constitutes the initial state of the component.
js/app.js
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | /* ... */
var state = {
language: {
selected: 'en',
available: ['de', 'en']
},
menu: {
about: '#about',
contact: '#contact',
register: '#register',
login: '#login'
},
translation: TRANSLATIONS['en']
};
var component = new Component();
var renderer = component.attach('#id');
renderer.render(state);
|
In line 50-51 we attach the component to the
element. Attaching the component to the DOM
marks the selected nodes - in this case the  `` element - as rendering targets for a renderer which is
returned by the ``attach()
method. This renderer has a method render()
which receives the current state and
renders its HTML representation to the DOM.
If we run this example, we should see the current state as a JSON representation at the place where the placeholder

element was. That is the default behaviour of a component when it is not tied to a template yet.
Visualizing state changes¶
But let’s try something else before we connect the component to a template. We change the state and watch the GUI
update the <nav
element accordingly. We can attach another rendering operation with a different state inside a timer.
js/app.js
46 47 48 49 50 51 52 | /* ... */
window.setInterval(function() {
state.language.selected = state.language.selected === 'en' ? 'de' : 'en';
state.translation = TRANSLATIONS[state.language.selected];
renderer.render(state);
}, 3000);
|
If we run this example, the component should change the language from English to German back and forth every
3 seconds. A timer changes the state within the callback and calls the render()
with the new state. Accordingly the
visual representation changes as well. Note that, this happens without any direct DOM manipulation.
Adding an HTML template¶
Let’s connect an HTML template to have a real visual representation for the navigation menu. First we define the template in a separate HTML file and load this file.
html/nav.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <!DOCTYPE html>

<template>

{{translation.about}}

{{translation.contact}}

{{translation.register}}

{{translation.login}}

English

Deutsch

</template>

|
Component.js uses the Handlebars template engine (s. http://handlebarsjs.com) and applies the current
state as context to the template. In short, there are placeholders which are enclosed in moustache like
braces which correspond to the properties of the state object. For instance, the state object holds
a property menu
which is an object itself. The menu
object contains the properties about
, contact
etc. which hold the link targets for the menu item. In the template these link targets are referenced
by the placeholders {{menu.about}}
and {{menu.contact}}
.
Let’s load the template into a variable and pass it to the builder. This connects the template
to the component. In the following code block we show the complete file js/app.js
omitting some
details for brevity and a better overview.
Additionally we add a method to the renderer which changes the language.
js/app.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | require.config({
paths: {
/* ... */
}
});
require(['cargo.Component', 'cargo.Template'], function (Component, Template) {
/* ... */
Template.load("html/nav.html").then(function(template) {
var comp = new Component(template);
var state = { /* ... */ };
var renderer = comp.attach('#nav');
renderer.changeLanguage = function(lang) {
state.language.selected = lang;
state.translation = TRANSLATIONS[lang];
return renderer.render(state);
};
window.setInterval(function() {
var lang = state.language.selected === 'en' ? 'de' : 'en';
renderer.changeLanguage(lang);
}, 3000);
});
});
|
The Template
module of Component.js has a static function load()
which receives an URL as argument.
The function loads and compiles the file from the URL. Because loading the file is an asynchronous operation,
the function returns a Promise which is fulfilled with the template instance which can be used as input
to the Component
constructor.
If we run the code so far, a (rather unstyled) HTML representation of the navigation menu should be displayed in the web page. It consists of two unnumbered lists - one for the menu itself and another for the language options. The language should change every 3 seconds from English to German back and forth all over again.
Adding interactivity¶
To add some interactivity, lets remove the timer and add a click handler to the language menu instead.
We could add the click handler in js/app.js
as soon as the component has rendered but there are
two problems with this approach. First, we have no way to determine when the HTML finishes rendering and
cannot register the event handler before the respective elements have been attached to the DOM.
The second problem may be even more important. Adding event handlers outside of the template, loses us some flexibility. The event handler has to be attached to some specific element defined in the template. If we reference this element outside of the template, we cannot change the HTML without at least paying attention to the Javascript code and checking back the references between both files.
The cleaner approach would be not to reference the component’s DOM within its Javascript code at all. That’s why we provide a way to define event handlers and DOM related stuff in the HTML template. Let’s see it in our example template:
html/nav.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <!DOCTYPE html>

<template>

{{translation.about}}

{{translation.contact}}

{{translation.register}}

{{translation.login}}

English

Deutsch

</template>

|
There is a script
tag in the body of the template with the class attach
. This script
is executed once when the component is attached to the DOM. It is the right place to
setup event handlers and other DOM related things that need to be executed before the
component is used. There are two more script classes - update
and detach
. update
is executed whenever the component is re-rendered on state changes and detach
is called
once when the component is destroyed.
In the execution context of these scripts, this
is defined as a reference to the renderer and
a special variable node
is defined as a reference to the DOM node of the component. You
can use this
to access all methods of the renderer and trigger some interactive behaviour.
Pre-compiling templates¶
There is gulp plugin for compiling templates for Module: Component. It compiles an  template file to a pure
Javascript template to use in the constructor of Module: Component. This is an example how to use it in a
gulpfile.js
.
var compile = require('./dist/node/index').compileTemplate;
gulp.task('build_example', function () {
gulp.src('example/templates/LanguageMenu.html')
.pipe(compile())
.pipe(rename('LanguageMenu.js'))
.pipe(gulp.dest('example/templates/'));
});
This gulp task reads the template file from “LanguageMenu.html” and compiles it to a Javascript file “LanguageMenu.js”. The generated file is a UMD-wrapped Javascript implementation of the HTML template.
Please note, that the generated template requires a Handlebars runtime when used. The runtime is a version of Handlebars
which does not include the compiler and is much smaller in size (about 80% reduced) - see here
for details. Additionally the template is “ready to use” and does not require the compilation step which is necessary
when loading a template on the fly with Template.load()
. An example how to use the compiled template in the browser
with require.js:
1 2 3 4 5 6 7 | define(['Component', './templates/LanguageMenu.js'], function(Component, template) {
var component = new Component(template);
component.attach(/* ... */);
/* ... */
});
|
The template is one of the dependencies in the define(...)
function (line #1) and available from a parameter
template
within the wrapper function. This parameter variable is inserted into the constructor of
Component
at line #3.
Conclusion¶
By separating the component’s behaviour from its visual appearance and by accessing the behaviour through state transitions as a well-defined interface, we think that we provided a solution for writing large GUI applications in a more comprehensive and more concise manner.
We use modern concept’s from the Javascript world like Promises, Flux and React-style application architecture to provide a clear data flow between the applications model and it’s visual representation and try to avoid the syntactical overhead of JSX.
Our approach is very close to the up-coming “Web components” technology and may easily be transformed into a programming model making use of them.
Please feel free to check the API documentation for a more in-depth look at our technology.
API¶
constructor: new Component(options)¶
var component = new Component(
{
renderState: function(state) { return "
...
"; },
onAttach: function(node) {},
onUpdate: function(node) {},
onDetach: function(node) {}
}
);
Creates a new instance of Component
. The first and only argument to the constructor is an object with the follwing
options.
Parameter: options
options.renderState
A template function which receives the current state as input and renders an HTML string as return value. Most template engines e.g. Handlebars provide such a function. The HTML must consist of exactly one element which may contain an arbitrary number of child nodes. Whitespace before and after this element is removed.
If no renderState
method is provided, the DOM node is rendered as a

element containing a JSON representation
of the current state.
options.onAttach
A callback function which is called once when the first rendering happened and the original DOM node has been
replaced with the rendered HTML. The this
keyword is the Renderer
instance of the component. The first parameter
to onAttach
is the DOM node which has been rendered. If the CSS selector of the component includes more than one
DOM node, the onAttach
callback is called once for each DOM node.
The onAttach
callback can be used to register event handlers to the DOM node.
options.onUpdate
A callback function which is called whenever the component’s DOM node has been
rendered and updated within the DOM. This includes the first rendering after onAttach
has been called.
The this
keyword is the Renderer
instance of the component. The first parameter to onUpdate
is the DOM node
which has been rendered. If the CSS selector of the component includes more than one DOM node, the onUpdate
callback
is called once for each DOM node whenever the node is updated.
options.onDetach
A callback function which is called once when the component’s DOM node has removed from the DOM. The this
keyword
is the Renderer
instance of the component. The first parameter to onDetach
is the DOM node which has been
rendered. If the CSS selector of the component includes more than one DOM node, the onDetach
callback is called
once for each DOM node.
The onDetach
callback can be used to remove any event listeners previously registered in the onAttach
callback.
static: Template.load(templateURL, options)¶
var handlebars = Handlebars.create();
handlebars.registerHelper(/*...*/);
Template.load("template.html", handlebars).then(function(template) {
var comp = new Component(template);
comp.attach('#id');
/* ... */
});
Loads a template file and creates a Component instance based on it. The template file is an HTML file and should
contain a <template id="template">
element with an Handlebars template enclosed. This template is automatically
compiled using the (optionally provided) Handlebars environment from the second parameter. If this parameter is omitted,
the default environment is used. The resulting template function is used for rendering the state of the component.
Additionally the template file may contain
Since loading the template file is an asynchronous operation, this function returns a Promise which resolves with the component instance.
Example template file.
<!DOCTYPE html>

<meta charset="UTF-8">
<title>Title</title>

<template id="template">

English / English

German / Deutsch

</template>

Parameters
templateURL
The URL of the template file which can be absolute or relative to the base URI of the website.
options
(optional)
An options object to specify further dependencies and parameters for loading and compliling the template.
options.handlebars
(optional)
A Handlebars environment to use for compiling the template section of the file. (A separate environment can be retrieved
from Handlebars.create()
.) If this parameter is omitted, the default Handlebars environment is used.
Return value
A Promise which resolves with the Component``instance, when the template file has been loaded and compiled. If the file
cannot be loaded or fails compiling, the Promise is rejected with an ``Error
instance.
static: Template.compile(dom, options)¶
Compiles a DOM node with a <template>
element and optional


Welcome to the Main page.
Hello there, awesome person!
National Park Service
Wiktionary
Internet Archive: Wayback Machine


{% extends 'ctflex/game/game.template.html' %} {% block header %} {{ block.super }} {% endblock %} {% block content %}
Your team’s {% include 'ctflex/text/timer_length.adjective.txt' %} timer for this round has expired!
You will be able to look at this round’s problems again when the round ends on {{ window.end|date:'F j, Y' }} at {{ window.end|date:'g:i A e' }}.
For now, you can:


Psalm 143
A psalm of David.
1 Hear my prayer, Yahweh; listen to my pleas.
Because of your faithfulness and righteousness, answer me!
2 Do not enter into judgment with your servant,
for in your sight no one is righteous.
3 The enemy has pursued my soul;
he has pushed me down to the ground;
he has made me to live in darkness like those who have been dead for ages.
4 My spirit is overwhelmed within me;
my heart despairs.
5 I call to mind the old days;
I meditate on all your deeds;
I reflect on your accomplishments.
6 I spread my hands out to you in prayer;
my soul thirsts for you in a parched land.
Selah
7 Answer me quickly, Yahweh, because my spirit faints.
Do not hide your face from me,
or I will become like those who go down into the pit.
8 Let me hear your covenant faithfulness in the morning,
for I trust in you.


A Main target is a user-defined named entity that can be built, for example an executable file. Declaring a main target is usually done using one of the main target rules described in the section called “Builtin rules”. The user can also declare custom main target rules as shown in the section called “Main target rules”.
Most main target rules in Boost.Build have the same common signature:
rule rule-name
(
main-target-name :
sources + :
requirements * :
default-build * :
usage-requirements * )
main-target-name
is the name used
to request the target on command line and to use it from
other main targets. A main target name may contain
alphanumeric characters, dashes
(‘-
’), and underscores
(‘_
’).
sources
is the list of source files and other main
targets that must be combined.
requirements
is the list of properties that must always
be present when this main target is built.
default-build
is the list of properties that will be used
unless some other value of the same feature is already
specified, e.g. on the command line or by propagation from a dependent target.
usage-requirements
is the list of properties that will be
propagated to all main targets that use this one, i.e. to all its
dependents.
Some main target rules have a different list of parameters as explicitly stated in their documentation.
The actual requirements for a target are obtained by refining requirements of the project where a target is declared with the explicitly specified requirements. The same is true for usage-requirements. More details can be found in the section called “Property refinement”
The name of main target has two purposes. First, it's used to refer to this target from other targets and from command line. Second, it's used to compute the names of the generated files. Typically, filenames are obtained from main target name by appending system-dependent suffixes and prefixes.
The name of a main target can contain alphanumeric characters, dashes, undescores and dots. The entire name is significant when resolving references from other targets. For determining filenames, only the part before the first dot is taken. For example:
obj test.release : test.cpp : <variant>release ; obj test.debug : test.cpp : <variant>debug ;
will generate two files named test.obj
(in two different directories), not
two files named test.release.obj
and test.debug.obj
.
The list of sources specifies what should be processed to
get the resulting targets. Most of the time, it's just a list of
files. Sometimes, you'll want to automatically construct the
list of source files rather than having to spell it out
manually, in which case you can use the
glob
rule. Here are two examples:
exe a : a.cpp ; # a.cpp is the only source file exe b : [ glob *.cpp ] ; # all .cpp files in this directory are sources
Unless you specify a file with an absolute path, the name is considered relative to the source directory — which is typically the directory where the Jamfile is located, but can be changed as described in the section called “Projects”.
The list of sources can also refer to other main targets. Targets in the same project can be referred to by name, while targets in other projects must be qualified with a directory or a symbolic project name. The directory/project name is separated from the target name by a double forward slash. There's no special syntax to distinguish the directory name from the project name—the part before the double slash is first looked up as project name, and then as directory name. For example:
lib helper : helper.cpp ; exe a : a.cpp helper ; # Since all project ids start with slash, ".." is directory name. exe b : b.cpp ..//utils ; exe c : c.cpp /boost/program_options//program_options ;
The first exe uses the library defined in the same project. The second one uses some target (most likely library) defined by Jamfile one level higher. Finally, the third target uses some C++ Boost library, referring to it by absolute symbolic name. More information about target references can be found in the section called “Dependent Targets” and the section called “Target identifiers and references”.
Requirements are the properties that should always be present when building a target. Typically, they are includes and defines:
exe hello : hello.cpp : <include>/opt/boost <define>MY_DEBUG ;
There is a number of other features, listed in the section called “Builtin features”. For example if a library can only be built statically, or a file can't be compiled with optimization due to a compiler bug, one can use
lib util : util.cpp : <link>static ; obj main : main.cpp : <optimization>off ;
Sometimes, particular relationships need to be maintained
among a target's build properties. This can be achieved with
conditional
requirements. For example, you might want to set
specific #defines
when a library is built as shared,
or when a target's release
variant is built in
release mode.
lib network : network.cpp
: <link>shared:<define>NEWORK_LIB_SHARED
<variant>release:<define>EXTRA_FAST
;
In the example above, whenever network
is
built with <link>shared
,
<define>NEWORK_LIB_SHARED
will be in its
properties, too.
You can use several properties in the condition, for example:
lib network : network.cpp : <toolset>gcc,<optimization>speed:<define>USE_INLINE_ASSEMBLER ;
A more powerful variant of conditional requirements is indirect conditional requirements. You can provide a rule that will be called with the current build properties and can compute additional properties to be added. For example:
lib network : network.cpp : <conditional>@my-rule ; rule my-rule ( properties * ) { local result ; if <toolset>gcc <optimization>speed in $(properties) { result += <define>USE_INLINE_ASSEMBLER ; } return $(result) ; }
This example is equivalent to the previous one, but for complex cases, indirect conditional requirements can be easier to write and understand.
Requirements explicitly specified for a target are usually combined with the requirements specified for the containing project. You can cause a target to completely ignore specific project's requirement using the syntax by adding a minus sign before a property, for example:
exe main : main.cpp : -<define>UNNECESSARY_DEFINE ;
This syntax is the only way to ignore free properties from a parent, such as defines. It can be also useful for ordinary properties. Consider this example:
project test : requirements <threading;>multi ; exe test1 : test1.cpp ; exe test2 : test2.cpp : <threading;>single ; exe test3 : test3.cpp : -<threading;>multi ;
Here, test1
inherits project requirements and will always
be built in multi-threaded mode. The test2
target
overrides project's requirements and will
always be built in single-threaded mode. In contrast, the
test3
target removes a property
from project requirements and will be built either in single-threaded or
multi-threaded mode depending on which variant is requested by the
user.
Note that the removal of requirements is completely textual: you need to specify exactly the same property to remove it.
The default-build
parameter
is a set of properties to be used if the build request does
not otherwise specify a value for features in the set. For example:
exe hello : hello.cpp : : <threading>multi ;
would build a multi-threaded target unless the user explicitly requests a single-threaded version. The difference between requirements and default-build is that requirements cannot be overridden in any way.
The ways a target is built can be so different that describing them using conditional requirements would be hard. For example, imagine that a library actually uses different source files depending on the toolset used to build it. We can express this situation using target alternatives:
lib demangler : dummy_demangler.cpp ; # alternative 1 lib demangler : demangler_gcc.cpp : <toolset>gcc ; # alternative 2 lib demangler : demangler_msvc.cpp : <toolset>msvc ; # alternative 3
In the example above, when built with gcc
or msvc
, demangler
will use a source file specific to the toolset. Otherwise, it
will use a generic source file,
dummy_demangler.cpp
.
It is possible to declare a target inline, i.e. the "sources" parameter may include calls to other main rules. For example:
exe hello : hello.cpp [ obj helpers : helpers.cpp : <optimization>off ] ;
Will cause "helpers.cpp" to be always compiled without
optimization. When referring to an inline main target, its declared
name must be prefixed by its parent target's name and two dots. In
the example above, to build only helpers, one should run
bjam hello..helpers
.
When no target is requested on the command line, all targets in the
current project will be built. If a target should be built only by
explicit request, this can be expressed by the
explicit
rule:
explicit install_programs ;


Africa is the world's second-largest and second-most populous continent, after Asia in both cases. At about 30.3 million km2 (11.7 million square miles) including adjacent islands, it covers 6% of Earth's total surface area and 20% of its land area.
One of the most popular suggestions for the origins of the term 'Africa' is that it is derived from the Roman name for a tribe living in the northern reaches of Tunisia, believed to possibly be the Berber people. The Romans variously named these people 'Afri', 'Afer' and 'Ifir'.Aug 27, 2019