text:
Test Automation Framework. Serenity BDD: Getting Started
Following its subdued Latin origin, Serenity BDD is a real snatch for Test Automation Framework. Get familiar with this library from A to Z, as well as learn how to create simple projects and run the tests.
Following its subdued Latin origin, Serenity BDD (previously known as Thucydides) is a library for test automation which wraps and extends WebDriver/JUnit functionality. Serenity BDD is well documented and supported, but in references the old name can be used. The reason for changing the name is quite trivial: instead of wondering how Thucydides works, people were puzzled about how on earth to pronounce the word.
In the first part of my Test Automation Framework blog I described most of Serenity's features. In this article you'll get familiar with this library from A to Z, as well as learn how to create simple projects and run the tests. Keeping things simple and covering only the necessary steps, let's get started!
Serenity BDD (from now on let's only use this name) requires the following tools to be installed:
- Maven 3.0.x or higher
- Java 5 or higher
In this example Eclipse will be used as the Integrated Development Environment (IDE), but you can use any editor you like.
To launch your tests through a command line, edit the Maven settings file:
[MAVEN_INSTALL PATH]\apache-maven-3.x.x\conf\settings.xml. Inside settings block add pluginGroups:
There are two ways to create a simple Maven project for Selenium 2 and JUnit: from command line or through IDE. In this case, a common line is used and then imported as a Maven project.
- Create test folder (e.g.: D:\repo\test) and move to the folder through the command line
- Type the next command and press enter:
mvn archetype:generate -Dfilter=thucydides
- In the console window you will be asked to choose the type of the project, select:
3: remote -> net.thucydides:thucydides-simple-archetype (Thucydides automated acceptance testing project using Selenium 2 and JUnit)
- You will be prompted for a version: select the latest version of Serenity BDD and press Enter
- When asked about:
When you see the version prompt, press enter to accept the default value or set any custom values
- groupID (value which identifies your project) type some identifier, e.g.: com.thu.tests
- artifcatID (actually this value will be used as the name of your jar file): mytests
When you see the package prompt, press enter to accept the default value
When you see the Y:: prompt, press enter to accept default value
- Having pressed Enter, you should see the message: BUILD SUCCESS.
Generated Sample Overview
So, we have successfully generated a default test project. In case something goes wrong, you can download generated samples from repository. What do these sample tests actually do?
- Open Wiktionary
- Search for apple and verify search results
- Search for pear and verify search results
Importing Project into Eclipse IDE
- Open Eclipse IDE
Click File->Import->Maven-> Existing Maven project
Choose the project directory where your Maven project was generated
- Click Finish
Launching the Tests
Before we can run the tests, we need to add WebDriver dependency into Maven pom.xml file:
Edit pom.xml which is located in the root of your project and insert inside block:
Finally, we are ready to launch our tests: open the command prompt, go to your project and run the following command: mvn clean verify thucydides:aggregate
Tests will be launched in a Firefox browser by default. To run them in Internet Explorer use the following parameter:
NB: Serenity BD supports the following browsers: Firefox, Internet Explorer, Chrome, HTMLUnit.
Go to the folder [Project directory]\target\site\thucydides and open index.html file in any browser.
As you may see below, the reports look really fancy, yet are very informative:
Now let's take a look at the project structure:
Page objects. All your page object classes are stored here.
Tests. Tests consisting of detailed steps are stored here.
Test steps. Contains shared steps invoked from the tests.
Easy or not, we have managed to set up and launch our test, generate the report and get acquainted with the project structure. It was just an introductory tutorial on how to get Serenity BDD started to implement our tests with JUnit and WebDriver support. The next steps are to implement the same scenarios as BDD acceptance tests. More information and feature descriptions may be found on the home page of the project.


text:
Materials and Equipment
Leave (large enough for a sail)
Bushcraft Knife (Adults only)
- Get your kids to collect twigs of roughly the same diameter.
- Break the twigs to roughly 9 or 10 twigs of the same size.
- Wrap your string around the first twig and tie a knot then attach your second twig and knot to secure.
- Repeat this process for the remaining twigs, as shown in image 1.
- Next repeat this process along the centre and opposite side then trim off any loose ends. (shown in Image 2)
- Once you have the main body of your raft constructed, you will need two more twigs measuring slightly over the width of your raft. These will attach underneath your raft, placed in the opposite direction, along your original knot lines.
- Turn your raft so the underneath is facing you, then lay your first twig in the opposite direction and tie the twig around the original knots at one end, secure at two or three intervals as shown below.
- Repeat this step for your second twig, which should be placed parallel to the twig you've just secured at the opposite side, again attach it to the original knots to secure (see image 3 above).
- To make your boat a mast, find a straight 'ish' twig and approximately the same size as the length of your raft. Using your bushcraft Knife (ask an adult to help with this part) flatten around 2cm of your twig at either side, this will allow it to slot in between a gap at the centre of the raft (please NOTE the width should be slightly larger than the gap and be a tight fit to secure it in place).
- Find a large leaf for your mast. Then make two holes in the leaf one at the centre bottom and another one opposite at the top.
- To finish your raft thread the leaf through the holes on to your mast.
Congratulations!!! you've made your 1st twig raft, now have fun sailing!!!

source: openbmb/Ultra-FineWeb


Example sentence:
If someone is scared, he tries to keep his head down while he listens to others.
But I know head down means going south. So did I write the sentence correctly?
 - 1
 When you say "I'm going to head down", the word head is a verb. When you say "I felt ashamed and kept my head down", the word head is a noun. In your example sentence, there's the possessive determiner his: "his head". A determiner cannot occur before a verb. – CowperKettle Dec 3 '15 at 17:01
"To keep one's head down" literally means to hide in order to protect oneself. You can imagine that, in a war zone, you would not want to have your head exposed to the enemy. This phrase is frequently used figuratively to mean "To avoid drawing attention to oneself". It has the same meaning as "To keep a low profile".
"To head down" does not always refer to traveling south. You might say "I'm going to head down to the store today" even if the store is northwest of you. It's simply a colloquial way of saying that you're going somewhere. "Down" in this context is as in "Down the road". You can also say "Up the road", which has a slightly different connotation but the two phrases are often interchangeable.
 - 2
 I would add to your first sentence by saying that you can literally keep your head down but you can also figuratively do that by keeping quiet, or not drawing attention to yourself, ect. – Sam Harrington Dec 3 '15 at 17:19
 - but yeah that answer is correct and helpful – Sam Harrington Dec 3 '15 at 17:20
In this case, 'If one is scared, he keeps his head down...' refers to the physical process of trying to remain small and unobserved while danger is present. This could be literal, as in crouching behind a wall, or figurative, as in keeping quiet in an argument.
In your other usage, 'head' is being used as a synonym for 'go,' as in 'I'm going to head down to the cafe.' (Down implies either a lower floor in a building, a lower-numbered street, or a Southern direction.)
Another common use of 'head down' you may encounter is to indicate that someone is deeply concentrating or studying, e.g. 'She's been head down in that physics text all afternoon.'
Having your head down can also mean a form a submission or defeat. As in, "The losing team was all seen with their heads down." The servants bowed with their heads down upon the lord's return to the manor.
Your Answer


text:
Sosnitskii S. P.
Ukr. Mat. Zh. - 2009. - 61, № 11. - pp. _PHONE_
The second Lyapunov method is applied to the analysis of stability of triangular libration points in a three-dimensional restricted circular three-body problem. It is shown that the triangular libration points are unstable.
Ukr. Mat. Zh. - 2008. - 60, № 10. - pp. 1434–1440
We consider the special case of the three-body problem where the mass of one of the bodies is considerably smaller than the masses of the other two bodies and investigate the relationship between the Lagrange stability of a pair of massive bodies and the Hill stability of the system of three bodies. We prove a theorem on the existence of Hill stable motions in the case considered. We draw an analogy with the restricted three-body problem. The theorem obtained allows one to conclude that there exist Hill stable motions for the elliptic restricted three-body problem.
Ukr. Mat. Zh. - 2005. - 57, № 8. - pp. 1137 – 1143
For the three-body problem, we study the relationship between the Hill stability of a fixed pair of mass points and the Lagrange stability of a system of three mass points. We prove the corresponding theorem establishing sufficient conditions for the Lagrange stability and consider a corollary of the theorem obtained concerning a restricted three-body problem. Relations that connect separately the squared mutual distances between mass points and the squared distances between mass points and the barycenter of the system are established. These relations can be applied to both unrestricted and restricted three-body problems.
Ukr. Mat. Zh. - 2003. - 55, № 2. - pp. 255-263
We investigate the stability of an equilibrium state of gyroscopic coupled conservative systems in the case where the force function does not attain a local maximum in this state. We consider the situation where the gyroscopic coupling is weak with respect to a part of coordinates and strong with respect to the other part.
On the function of hamiltonian action for nonholonomic systems and its application to the investigation of stability
Ukr. Mat. Zh. - 1999. - 51, № 10. - pp. 1411–1416
For nonholonomic systems, we introduce the notion of the function of Hamiltonian action, with the use of which we investigate the stability of nonholonomic systems in the case where the equilibrium state under consideration is a critical point of the corresponding Lagrangian (Whittaker system).
Ukr. Mat. Zh. - 1999. - 51, № 3. - pp. 389–397
We establish a criterion of instability for the equilibrium state of nonholonomic systems, in which gyroscopic forces may dominate over potential forces. We show that, similarly to the case of holonomic systems, the evident domination of gyroscopic forces over potential ones is not sufficient to ensure the equilibrium stability of nonholonomic systems.
Ukr. Mat. Zh. - 1997. - 49, № 10. - pp. 1422–1428
Theorems on equilibrium instability of conservative systems with gyroscopic forces are proved. The theorems obtained are nonlinear analogs of the Kelvin theorem. The equilibrium instability of the Chaplygin nonholonomic systems is considered.
Ukr. Mat. Zh. - 1996. - 48, № 11. - pp. _PHONE_
We consider the relation between the Lyapunov instability of Lagrange equilateral triangle solutions and their orbital instability. We present a theorem on the orbital instability of Lagrange solutions. This theorem is extended to the planarn-body problem.
Ukr. Mat. Zh. - 1996. - 48, № 10. - pp. _PHONE_
We consider conservative systems with gyroscopic forces and prove theorems on stability and instability of equilibrium states for such systems. These theorems can be regarded as a generalization of the Kelvin theorem to nonlinear systems.
Ukr. Mat. Zh. - 1991. - 43, № 4. - pp. 440-447
Ukr. Mat. Zh. - 1989. - 41, № 8. - pp. 1100–1106
Ukr. Mat. Zh. - 1988. - 40, № 1. - pp. 95-101
Ukr. Mat. Zh. - 1987. - 39, № 2. - pp. 215–220
Ukr. Mat. Zh. - 1985. - 37, № 1. - pp. 124 – 127


The Crustor is an aggressive creature and will attack a player on sight. Unlike is smaller shell cousins, the Crustor is always standing and can be seen from afar due to it's large size. The creatures walks slowly towards a sighted player.
Combat and Tactics
The Crustor will not directly attack a player. It will instead slam it's fists on the ground and cause a fiery earthquake that does damage indirectly. When struck a few times, it will recoil on itself and briefly be invulnerable to all damage.
Deals Resists Vulnerable to
Fire Earth Water
The Crustor can be found on the following islands:


text:
The four seasons in the Japanese countryside, "SATOYAMA"
|"Satoyama" is a traditional form of agricultural
environment. "Sato" consists of "Mura" (village) and
"Nora" (paddy field). "Yama" means mountain. |
Traditional rural communities and their surroundings ("Satoyama") are sustainable natural environments, which have maintained a degree of complexity and diversity otherwise not seen nowadays. However, with rural depopulation and modern agricultural development, these environments have changed substantially.
Since the landscape in Satoyama is diversified with hills, woods, ponds, marshes, and brooks, etc., various kinds of life inhabit there. By the good combination of water and woods, nature in Satoyama is just like a patchwork; in other words, that is many lives' dwelling.
In Satoyama people and nature coexist side by side in harmony.
Here's some photos of the four seasons in the Satoyama in and around
Mt.Shigi-san, in western Nara Prefecture.
| SPRING | SUMMER | AUTUMN | WINTER |

source: HuggingFaceFW/fineweb-edu


Take the 2-minute tour ×
Logrotate can work on individual files or wildcarded files (*.log, for example) in a specified directory, but does it inherently have the ability to traverse a directory tree of arbitrary depth and process files it finds?
share|improve this question
1 Answer 1
up vote 1 down vote accepted
No, it doesn't. You can wildcard the directories though so if your tree has a small-ish known depth you could do something like:
 /a/* /a/*/* /a/*/*/* {
 rotate 5
If you only have logs at the leaf only /a/*/*/* is needed.
share|improve this answer
Your Answer


text:
" with a woman regardless if it is his wife or a prostitute.
The idea of "one flesh" does not mean that the man is exclusive to that woman. It means that they join themselves as if married. This is true regardless of who the man does this with.
This is also clear in Ephisians 6:16-17 (NIV)
16 Do you not know that he who unites himself with a prostitute is one with her in body? For it is said, "The two will become one flesh." 17 But whoever is united with the Lord is one with him in spirit.
It is clear that many believers can unite with the Lord as many prostitutes can unite with one man.
Furthermore, in John Skinner's Genesis: International Critical Commentary (T & T Clarke, Edinburgh, 1930) p. 70, Skinner notes that the word for "flesh" here is synonymous for "clan" or "family group"--both in the Hebrew and Arabic. This word for "flesh", in fact, is the same word used here in Leviticus 25:49
An uncle or a cousin or any blood relative in their clan may redeem them. Or if they prosper, they may redeem themselves.
Clearly, there is no restriction of one man becoming an exclusive single flesh with a woman.
There are many other arguments that can be heard and answered at BiblicalPolygamy.com


Sun Cluster Overview for Solaris OS
Failure Fencing
A major issue for clusters is a failure that causes the cluster to become partitioned (called split brain). When this situation occurs, not all nodes can communicate, so individual nodes or subsets of nodes might try to form individual or subset clusters. Each subset or partition might "believe" it has sole access and ownership to the multihost disks. Attempts by multiple nodes to write to the disks can result in data corruption.
Failure fencing limits node access to multihost disks by preventing access to the disks. When a node leaves the cluster (it either fails or becomes partitioned), failure fencing ensures that the node can no longer access the disks. Only current member nodes have access to the disks, ensuring data integrity.
The Sun Cluster system uses SCSI disk reservations to implement failure fencing. Using SCSI reservations, failed nodes are "fenced" away from the multihost disks, preventing them from accessing those disks.
When a cluster member detects that another node is no longer communicating over the cluster interconnect, it initiates a failure-fencing procedure to prevent the failed node from accessing shared disks. When this failure fencing occurs, the fenced node panics and a "reservation conflict" message is displayed on its console.


text:
Many system administrators do not want to be bothered with the work needed to ensure that their system is able to reach all the networks (and therefore systems) on all networks worldwide. Instead of doing so, they would rather relay all outgoing mail to another system that is known to be indeed ''smart''.
RELAY_HOST defines the UUCP hostname of such a smart neighboring system.
RELAY_MAILER defines the mailer used to relay the messages there.
It is important to note that setting these parameters results in your outgoing mail being forwarded to this remote system, which will affect the load of their system. Be certain to get explicit agreement from the remote Postmaster before you configure your system to use another system as a general purpose relay host.


text:
Step 24: Tuning
Due to variance in the individual motors / frame, you may need to alter the p and d values in the code above. The variable p controls how much the quadrotor will alter motor speeds to correct for an offset from the desired tilt. The variable d controls how much the quadrotor will resist sudden rotation. An incorrect ratio of p to d could cause the quadrotor to be unstable either by being less responsive than desired or by causing oscillations of increasing magnitude. Scaling up both p and d by the same value would increase the magnitude of the current effects.
Our tuning method involved a lot of trial and error. We would support 2 opposite corners of the quadrotor leaving the other 2 free to rotate. Then we would check for stability by first observing if the quadrotor was keeping itself level, then secondly by injecting disturbances to observe if it would return to a level position. If the p and d values permitted the quadrotor to pass both of these tests, we would repeat the procedure and on the other axis. When the quadrotor was stable on both axis, we then were ready to fly!


text:
What is the most important biomolecule and why?
Lipids are the responsible for energy storage in a cell and are the major component of the cell membrane. Among all these biomolecules, I would pick nucleic acids as the most important for life. There are two types of nucleic acids: DNA (deoxyribonucleic acid) and RNA (ribonucleic acid).
What is the most important biomolecule to the human body?
Why is protein the most important biomolecule?
Proteins are the most diverse biomolecules on Earth, performing many functions required for life. Protein enzymes are biological catalysts, maintaining life by regulating where and when cellular reactions occur. Structural proteins provide internal and external support to protect and maintain cell shape.
What biomolecule is the most important for a healthy person to eat?
Proteins are the building blocks of life. Every cell in the human body contains protein. The basic structure of protein is a chain of amino acids. You need protein in your diet to help your body repair cells and make new ones.
Why are biomolecules important to life?
Biomolecules are important for the functioning of living organisms. These molecules perform or trigger important biochemical reactions in living organisms. When studying biomolecules, one can understand the physiological function that regulates the proper growth and development of a human body.
Are biomolecules living things?
Biomolecule, also called biological molecule, any of numerous substances that are produced by cells and living organisms. Biomolecules have a wide range of sizes and structures and perform a vast array of functions. The four major types of biomolecules are carbohydrates, lipids, nucleic acids, and proteins.
What are 4 types of biomolecules?
There are four major classes of biological macromolecules (carbohydrates, lipids, proteins, and nucleic acids), and each is an important component of the cell and performs a wide array of functions.
Which biomolecule is the main source of energy?
Are vitamins biomolecules?
A diverse range of biomolecules exist, including: Small molecules: Lipids, fatty acids, glycolipids, sterols, monosaccharides. Vitamins.
What are the 13 vitamins your body needs?
There are 13 essential vitamins — vitamins A, C, D, E, K, and the B vitamins (thiamine, riboflavin, niacin, pantothenic acid, biotin, B6, B12, and folate). Vitamins have different jobs to help keep the body working properly.
Why vitamins are named as ABC and K?
The "e" at the end was later removed when it was recognized that vitamins need not be amines. The letters (A, B, C and so on) were assigned to the vitamins in the order of their discovery. The one exception was vitamin K which was assigned its "K" from "Koagulation" by the Danish researcher Henrik Dam.
Where are vitamins found?
Water-soluble vitamins (vitamin C, the B vitamins and folic acid) are mainly found in: fruit and vegetables. grains. milk and dairy foods.
What food is rich in Vit D?
Good sources of vitamin D
- oily fish – such as salmon, sardines, herring and mackerel.
- red meat.
- egg yolks.
- fortified foods – such as some fat spreads and breakfast cereals.
Which fruit has which vitamin?
Vitamin content of f ruit and vegetables
|Apple||Vitamin A Vitamin B1 Vitamin B2 Vitamin B6 Vitamin C Folate (folic acid)|
|Banana||Vitamin A Vitamin B1 Vitamin B2 Vitamin B6 Vitamin C Folate (folic acid)|
|Blackberries||Vitamin A Vitamin B1 Vitamin B2 Vitamin B6 Vitamin C Folate (folic acid)|
How many vitamins are there in total?
In humans there are 13 vitamins: 4 fat-soluble (A, D, E, and K) and 9 water-soluble (8 B vitamins and vitamin C). Water-soluble vitamins dissolve easily in water and, in general, are readily excreted from the body, to the degree that urinary output is a strong predictor of vitamin consumption.
What a human body needs daily?
Macronutrients include water, protein, carbohydrates, and fats. Keep reading for more information about where to find these nutrients, and why a person needs them. The six essential nutrients are vitamins, minerals, protein, fats, water, and carbohydrates.
Which is the most important vitamin?
Vitamin D is arguably the most important vitamin you could take. Vitamin D is actually a hormone; it's not even a vitamin and it affects our entire body.
How many vitamins can I take a day?
"Most people think it's fine to take as much as they want," says Rosenbloom. "I know people who take 10,000 mg a day." However, the upper tolerable limit is 2,000 mg a day. "People at risk for kidney stones can increase that risk; people also can get diarrhea.
What is the number 1 supplement in the world?
Is it OK to take many vitamins at once?
Combining supplements will not normally interfere with the way they work and in some cases may be beneficial, for example vitamin C helps iron absorption. However, certain supplements may interact with each other.
Are vitamins a waste of money?
Vitamins, supplements have no added health benefits, study contends. A new report says taking supplements could be a waste of money and may even be harmful to your health.
What vitamins are not good for you?
Potential risks of taking too many vitamins
- Vitamin C. Although vitamin C has relatively low toxicity, high doses of it can cause gastrointestinal disturbances, including diarrhea, cramps, nausea, and vomiting.
- Vitamin B3 (niacin).
- Vitamin B6 (pyridoxine).
- Vitamin B9 (folate).
Do vitamins really work?
The Vitamin Verdict. The researchers concluded that multivitamins don't reduce the risk for heart disease, cancer, cognitive decline (such as memory loss and slowed-down thinking) or an early death.
Which vitamins are worth taking?
According to Nutritionists, These Are the 7 Ingredients Your Multivitamin Should Have
- Vitamin D. Vitamin D helps our bodies absorb calcium, which is important for bone health.
- Magnesium. Magnesium is an essential nutrient, which means that we must get it from food or supplements.
- Vitamin B-12.
How do you know if a vitamin is good quality?
Which vitamins and herbal supplements can you trust?
- LOOK FOR "USP," "NSF," or "Consumer Lab" on the bottle.
- DO YOUR RESEARCH.
- KNOW THE PERCENTAGE OF THE KEY INGREDIENT TO LOOK FOR.
- KNOW WHICH PART OF THE PLANT YOU WANT.
- DON'T JUST GO BY THE COUNTRY.
- DON'T BELIEVE THE HYPE.
- DON'T BUY THE CHEAPEST SUPPLEMENT… OR THE MOST EXPENSIVE.
- BUT IS MY MULTIVITAMIN SAFE?
Are daily vitamins worth taking?
If you take a multivitamin, it's probably because you want to do everything you can to protect your health. But there is still limited evidence that a daily cocktail of essential vitamins and minerals actually delivers what you expect. Most studies find no benefit from multivitamins in protecting the brain or heart.
What is the best brand of vitamins?
Nature Made offer several vitamin and supplement products that are both USP certified and the #1 Pharmacist Recommended brand. The range of supplements that the company offer include: multivitamins. prenatal vitamins.
What vitamins help sexually?
Vitamin C. Vitamin C helps improve blood flow. Blood flow affects your erectile function, so vitamin C may help sexual function. Vitamin C can't be stored in the body, so you need to eat enough foods rich in vitamin C every day.
Are vitamins bad for your liver?
Even in high doses, most vitamins have few adverse events and do not harm the liver. Many vitamins are normally concentrated in, metabolized by and actually stored in the liver, particularly the fat soluble vitamins.
Should I take vitamin D every day?
If you're taking a vitamin D supplement, you probably don't need more than 600 to 800 IU per day, which is adequate for most people. Some people may need a higher dose, however, including those with a bone health disorder and those with a condition that interferes with the absorption of vitamin D or calcium, says Dr.


text:
Large-scale design optimization lab
The large-scale design optimization laboratory (LSDO lab) is part of the Department of Mechanical and Aerospace Engineering at the University of California San Diego.
Our research lab develops efficient optimization methods for the design and operation of engineering vehicles. We specialize in methods that solve large-scale optimization problems involving up to tens of thousands of design variables.
The Background page provides an introduction to large-scale optimization, reviews the state of the art, and highlights some of our previous work in this field. The Research page presents a more comprehensive description of our past and ongoing research topics.
Our vision for the future is optimization-based design of engineering systems. In many engineering applications (e.g., the design of commercial airliners), the computing age has enabled the gradual replacement or augmentation of physical experiments with simulations using computational models. Today, tools such as computational fluid dynamics and finite element analysis have become sufficiently robust and efficient that they are tightly integrated into the workflow of an industrial engineer. In the future, we envision large-scale numerical optimization having a similarly large role in practical engineering design. This would come with much larger potential benefits since optimization algorithms can automate certain parts of design, freeing the engineer's time and attention on higher level and more significant aspects of the design. The LSDO lab's past and future research is directed towards the improvements in efficiency, robustness, and simplicity of optimization methods, that are necessary to make this vision a reality.


text:
Intake Days and Survey Integration
One day of dietary intake data, collected in person in the Mobile Examination Center, was released. The Day 1 files include 9,701 individuals with a complete intake and 182 breastfed infants.
The 2001-2002 release represents the integration of two nationwide dietary intake surveys conducted by the U.S. Department of Agriculture and the Department of Health and Human Services. Survey integration of dietary data collection began in 2002.
The WWEIA 2002 data collection included a Day 2 telephone recall, in addition to the Day 1 in-person recall. The NHANES 2001 collection included only the Day 1 in-person recall. Because of confidentiality reasons concerning release of single-year data, dietary data for Day 2 were not publicly released. The 2002 Day 2 dietary data are available through the NCHS Research Data Center.
Data File Descriptions
Two dietary intake files are available.
- Individual Foods File: DRXIFF_B (Day 1)
The Individual Foods File contains one record for each food consumed by a participant. Each record identifies the intake day of week, the time and name of the eating occasion for the food, and the following food-specific data:
- Food, identified by a USDA food code
- Whether food was eaten in combination with other foods (for example, milk added to cereal)
- Amount of food consumed
- Amounts of food energy and 60 nutrients/food components provided by the food amount
Total Nutrient Intakes File: DRXTOT_B (Day 1)
The Total Nutrient Intakes File contains one record for each participant. Each record includes daily total intakes of food energy and 60 nutrients/food components, daily intake of water, salt use, and frequency of fish and shellfish consumption for population subsets.
The dietary intake data are collected in the Mobile Examination Center and all MEC participants are eligible for the dietary interview. The appropriate sampling weight variable to use with these data is WTMEC2YR (full sample 2-year MEC exam weight).


text:
49 ft 3 in
Bertha has a tonnage of 60 and is constructed of riveted iron with a timber superstructure.
The steam engine is a single cylinder double action engine and operates at a pressure of 40 pounds per square inch, steam is raised in a coal fired boiler of unknown vintage, the motion is transferred to the main drive shaft which can be recognised by the large flywheel by means of a single reduction spur wheel drive.
Sometimes mistakenly referred to as a dredger, Bertha is in fact a drag boat. Where as a dredger operates by lifting the mud and silt out of the water, a drag boat is rather like a floating bulldozer with a submerged blade which scrapes the material along the bottom.
Although steam powered Bertha has neither screw propeller nor paddle wheels but is moved by hauling herself along a chain, the ends of which are secured to quayside bollards.
Bertha is believed to have been designed by the eminent Victorian engineer Isambard Kingdom Brunel and has the distinction of being the oldest operational steam driven vessel in Britain - possibly the world.
Bertha was probably designed in Bristol and assembled in Bridgwater where her role was to keep the docks clear of mud and silt. To do this, the blade, mounted on a sliding pole, was lowered by means of a chain. The vessel then hauled herself along the main chain bringing with it the mud and silt which was dragged out into the river Parrett where it was carried away by the tide. The vessel then hauled herself back along a lighter chain and the procedure repeated.


Documentation Center
 - Trial Software
 - Product Updates
Discrete Event Signal to Workspace
Write event-based signal to workspace
SimEvents Sinks
This block writes its input to a structure or array in the base MATLAB® workspace when the simulation stops or pauses. One way to pause a running simulation is to select Simulation > Pause. Suspending the simulation during a debugger session does not cause this block to write data to the workspace. This block logs data at each sample time hit.
This block is similar to the To Workspace block in the Simulink® Sinks library but is tailored for use with event-based signals.
Output Format
The Save format parameter determines the output format. The Structure With Time output format is most appropriate for event-based signals because it indicates when the signal assumes each value. Updates of event-based signals are typically aperiodic.
If the signal has an initial value, the value is the first data value in the workspace variable. (An example of a signal that has no initial value is a signal inside an Atomic Subsystem that has an event-based input signal.) Depending on the topology of your model, initial values of the signal might account for multiple data values in the workspace variable.
To identify the first data value that represents a sample time hit of the event-based signal, insert the Initial Value block before this block. Set the Value until the first sample time hit parameter to a value you do not expect as a signal value at a sample time hit. To identify the initial value or values of the signal, remove the Initial Value block.
For scalar signals, you can convert a structure with time into a two-column matrix containing times in the first column and signal values in the second column. To do this, use an assignment like the one below. In place of simout, use the name specified in this block's Variable name parameter.
times_values = [simout.time, simout.signals.values];
For descriptions of all output formats, see the reference page for the To Workspace block.
Comparison with To Workspace Block
This block has no Sample time parameter because event-based signals do not have a true sample time.
The simulation times at which this block records data is typically unrelated to the variable that a model creates if you select Time in the Save to workspace section of the Data Import/Export tab of the Configuration Parameters dialog box. By default, this option is selected and the variable is called tout.
This block has one signal input port for the signal to write to the workspace.
The block has no entity ports, and no signal output port.
Dialog Box
Variable name
The name of the structure or array that holds the data.
Limit data points to last
The maximum number of input samples to be saved.
A positive integer, n, that specifies the decimation factor. The block ignores the last n–1 out of every n input samples.
Save format
Format in which to save simulation output to the workspace. The recommended format for event-based signals is Structure With Time.
Was this topic helpful?


Skip to main content
How long does it take to wash a load of laundry?
Laundry is hard. Laundry is tiring. Contrary to popular belief, laundry does not take long to do. A wash cycle takes about 30 minutes per load, give or take, and a dry cycle lasts up to an hour.
Let's Get It Fixed!
What Did You Think of This Article?
What Did You Think of This Article?
Shop Recommended ProductsShop HomeX Recommended Products


thus recalling effects without having to reconstruct them.
- add the ability to name and save configured tools, and the user will have a cross-document, visual and lexical record of unique ways a tool has been constructed and applied.
Relational concepts can be extended to a program's forms.
Page layout programs that handle picture frame and text frame placement must deal with various offset parameters. Pictured are two approaches to establishing a runaround and a margin (frame offsets established from the outside-in and inside-out respectively).
PageMaker's15 icon based dialog box approach is simple and intuitive. It portrays the interrelationship between runaround and margin. Pick the right runaround icon, and the available margin icons show up.
PageMaker's icon based runaround dialog box.
Quark XPress' more versatile runaround tool is simple and clean. However, it does not relate runaround to frame margins. Frame margins are established elsewhere.
Quark's runaround dialog box.
What are the disadvantages of these forms?
- Both approaches are modal (each form covers the document, can't be moved, and must be dismissed before you can see the results), both take up a lot of room. Neither can easily be extended to other offset features, such as frame-specific traps/spreads, which may be built into future product versions.
- Neither allows the user to affect multiple selected objects, to change unit measures individually, to incrementally modify one or all object offsets by a specific amount, to check to see if more than one objects have the same offset, to reset offsets to the same amount, in short to view and change offsets contextually.
Relational Forms
Quark XPress 3.0's Measurements Palette;, is a relational portent of forms to come. An interactive form, the palette reflects the characteristics of the currently chosen object(s). Nonmodal, its horizontal profile can be unobtrusively placed beneath highlighted objects.
Quark's Measurements Palette: An interesting testament to the relational approach is that users introduced to page layout through XPress 3.0 tend to rely on this form exclusively (and not go to the menu to access its modal object modification forms).
FrameMaker's16 Character Format and Paragraph Format dialog boxes provide similar functionality.
Applying similar principles to a runaround and margin offset form might result in the following. A modular form of this sort could easily be extended to show chokes and spreads.
This relational form permits the software designer to add interactive modules as more capabilities are added. The user can display selected extensions or portions of each extension (Show & Margins All Sides) on the document using colored guidelines. Within the form, the user can change selected dimensions, change unit measures, and lock or incrementally change dimensions (notice the arrows replacing the locks). (Note: the question mark indicates a dimensional disagreement among the selected set of objects. A more verbose form might show a range of dimensions.)
Tied to an interactive set of colored guidelines surrounding selected text frames this approach gives the user the option of changing attributes to each frame individually directly on the active page or absolutely/incrementally en-masse through the relational form.
Other Relational Forms
Nisus' search/replace form permits the user to set and view character attributes directly on the form.
Nisus search/replace function includes relational facilities ("or") and permits the user to incorporate different type styles, sizes, colors, and modes directly on the form. The word "time" appears jaggy because it connotes "any font."
Graphic relational forms include Digital Darkroom's form suite. Its Paste Control form interactively affects combined images as they are being applied and teach as well as demonstrate the complex interaction of selected colors and feather and dissolve settings as they apply to replace, blend, darken and lighten procedures.
Menus--once single level multi-button pulldowns permanently attached to menu bars--now can appear beneath dialog box buttons, application tools, and window widgets and borders; can cascade into sub-sub items; and can tear away to coexist on-screen as non-modal forms. Sensitive to screen edges and limited in cascadable depth, Apple-approved menu functionality is designed to be easy to understand and ergonomically stable enough to easily operate.
Depending on the application, menus, or menu pulldowns may change depending on currently selected objects and tools. Menus that change in unexpected ways can be disarming to the inexperienced operator.
Menu items tend to be recalled often. If those items are at the end of a long dropdown or hanging off a long cascading menu branching up from the long dropdown they can be difficult to repeatedly access. Menu entries calling up complex dialog boxes could allow entry sets to be named and cascaded from that menu item. A macro could assign a keycode to the item but that might require recoding another keyboard assignment or remembering an obtuse code. Relational menus could position recent selections on a new menu or alternate the existing menu configurations by stacking items based on frequency of use or last-up top-of-stack fashion. Of course, restacking could destroy a carefully designed and sorted menu. But if the interface split each menu item into a left, center, and right button area the user could have the choice of:
- left: accessing past menu choices (or past named dialog boxes),
- center: selecting a default entry, (or the standard dialog box) or
- right: selecting from the expected arrangement of sub-menu items (or the full set of named dialog boxes).
Digital Darkroom's visually consistent set of interactive forms affect the window image or selected image areas to preview visual effects.
The cascading "Font" menu reflects the full range of choices to the right and a chronological font selection to the left. The center could be used to select a default entry (indicated by the "*" next to Times)
The "Type" menu allows access to the standard dialog box or to a sub-menu of named Type designations.
Notice the horizontal lines next to Geneva and Palatino fonts. This is the relational device Apple's System 7.0 uses to designate multiple selections within the currently active area.
Relational menus could shrink the main menu to include only designated and previous choices or provide the user with a limited set of options that related directly to the task at hand. Such menus, could make menuing more efficient by reflecting what had been done to date.
Command Line Descriptions
As programs and environments get more complex, they are employing command line descriptions of some sort. Either tied to the cursor or appearing on a specified screen position these context sensitive titles, descriptions, and instructions serve to alert, name, describe, or instruct relative to currently active items. Apple's System 7.0 has added context sensitive Help bubbles to explain any item you point to with the cursor.
MiniCAD's smart cursor is a relational tool that describes and suggests.
The Sensitive and the Sensual
A graphical interface can communicate through digital or analog means.
If you consider interface a means of conveyance--a way of getting from here to there--and you compare interface tools to a railroad, digital is to analog as each staccato rail tie is to the source-to-destination rail line. Specifically, digital is how you construct, reconstruct, and remember--it's the parts that eventually make up the whole. Analog is how you enjoy--it's the whole expressed in parts. Walk alongside the tracks, dissecting every step of the journey and you're concentrated on the digital; travel the tracks by train and your senses are immersed in the analog.
Computers define reality digitally, using on/off logic. Software that emphasizes input by the numbers, numerical increments, ±, <, >, extend this digital logic to their interface. But showing a digital face is as much a matter of choice as using numbers rather than hands on an electronic watch. Interfacewise, digital and analog are two sides of the same coin.
Digital interfaces subtly affect the way we relate to reality. Digital interface provides precision and accuracy at the expense of contextual richness and relative understanding. Its effects aren't limited to the computer. Listeners can lose hard to find stations when they're forced to step through frequencies rather than tune-in stations. The implied message "It's just about quitting time" loses some of its timbre when your digital watch indicates "4:43" rather than showing a "about quarter of..." minute hand creeping toward the appointed hour. Gas pumpers trying to get the best of their local oil conglomerate no longer can get that tiny feeling of accomplishment by inching the gas meter up to the hairline below $5.01.
But the digital approach also has its advantages. The touch tone telephone takes less effort, is faster, provides more feedback, is more personal and secure, and is easier to build and customize than the dial model.
Analog interface alternatives have a more relational feel. And relational interfaces, because they relate to wholes rather than sift through parts--have a distinctly more sensual feel. They communicate a flow. Analog devices provide the tactile undercurrent that makes a friendly looking interface a friendly feeling interface.
As construction devices, interfaces that show objects with handles that can be stretched and shrunk may not be as precise as their key-in counterparts but relate much better to the person doing the constructing. Analog progress indicators include animated expanding and shrinking windows, turning balls, filling/emptying gauges, scrolling bars, etc. These devices move to indicate something is happening, and fill to indicate--in relative terms--the process is moving toward a goal, and it's approaching completion. Their digital counterparts--word lists, number countdowns, percentage readouts, -- may be the real grist of the mill, but are often as irrelevant to the task at hand as continually counting our heartbeats is to staying alive.
Which is not to say that--in the proper context--digital readouts can't be valuable adjuncts or


text:
PUSH is an abbreviation for:
Find a translation for PUSH in other languages:
Select another language:
What does PUSH mean?
- to press against (a thing) with force in order to move it away.
Use the citation below to add this abbreviation to your bibliography:
PUSH also stands for:
- People Understanding Severe Handicaps
- People Understanding The Severely Handicapped
- People Understanding The Severly Handicap
- People Understanding The Severly Handicapped
- People United To Save Healthcare
... and 13 more »


text:
Data Lists & Forms for Data Lists
The Data Lists app allows you to connect to databases, extract data from them, and publish that data in list-form on your websites.
The Data Lists app therefore consists of two components:
- An interface for connecting with data sources, creating lists, etc.
- An app for publishing the contents of a list in frontend.
This means that you can easily extract content from both internal and external databases and publish them in frontend.
The Forms for Data Lists app allows you to create forms which can be used to create database entries directly from frontend – either in existing system tables or in custom tables.
Together, Data Lists and Forms for Data Lists constitute a powerful framework for retrieving, publishing and creating data in Dynamicweb.
To get started go to Apps > Data Lists or Forms for Data Lists – this will open the Data Lists interface (Figure 1.1).
The interface consists of:
- A tree menu (1) from which you can create new connections, data lists, forms and XML publication templates
- A content pane (2) where e.g. list content and various creation forms are rendered
A Connection is simply a connection to an SQL database. By default, the Data Lists app is connected to the solution database – but you can easily create new connections.
To create a connection:
- Fold out the Connections node and click New connection
- Fill in the connection details in the connection settings (Figure 2.1)
- Name the connection
- Provide a server name and a database name
- Provide a user name and password for a user with access to the database – or check the Use trusted connection checkbox use windows authentication
Once you've connected to a database, you can create data lists by querying any table in the database and listing the retrieved data in frontend.
To create a data list:
- Fold out the Lists node
- Click New data list
- Name the list and select a connection and a table (Figure 3.1)
- Click OK
Once you've clicked OK, you can use the data list settings to limit the data retrieved (Figure 3.2).
You can use either the Design Wizard – as above – to select fields, operators and values to test against, or you can use the SQL statement mode, which allows you to create the SQL statement manually.
You can specify the sort order and the number of rows you want to retrieve below the conditions area.
To use dynamic test values, you can use the pencil icon to set a session variables or request variables. In that way, you can use e.g. user or page IDs retrieved from the session or request to filter the data displayed in frontend.
For example, if you want to be able to filter a list of manufacturers by name, you can add a request variable parameter and pass values to it through the query string; _URL_-list?Name=yourfiltervalue (Figure 3.3).
If you use the design wizard, the Select Field(s) button in the ribbon bar allows you to specify which fields from the database table you want to render in frontend when publishing the data list (Figure 4.1). Simply move the fields between the two lists until you have the desired configuration.
Publishing Data Lists
To publish a data list in frontend, attach the Data List app to a paragraph and use the app settings (Figure 5.1) to control the process.
- Use the Data list dropdown to select the data list you want to publish
- Use the layout section to select either a default layout or a custom (template-based) layout for the list
- Use the list data and detail data settings to select which fields to publish
- Use the publishing options to show column headers, link to the details view, or make columns sortable
- Use the paging settings to activate and control paging on the published list
The Edit data settings allow you to select a particular form (forms for data lists) which can be used to edit or create new data from. You must select the page with the form on it using the page selector, and check the display add row link and display edit row link checkboxes to render those in frontend. The setting Allow the form to update the existing data must be checked on the forms for data lists app if you want to enable the editing of data through a published form.
Forms for Data Lists
Forms for Data Lists are forms which can be used to create or edit data directly in a database table. Forms for data lists are created from the Data Lists interface, and may be created from an existing database table or by creating a new table and defining the fields manually.
To create a form from an existing database table:
- Fold out the Forms node
- Click New form from table
- Provide a name
- Select a connection and a database table
- Click OK
You will now see an automatically rendered list of form fields, including labels, system names, type specifications, a required checkbox and a description field (Figure 6.1).
The content of the type dropdown depends on the data type of the field in the database – so String fields have one set of controls available, Int32 another, and Boolean a third – and so forth.
Click on any of the fields to open the field settings (Figure 6.2) and configure the settings related to the field type.
To create a form manually:
- Fold out the Forms node and click New manual form
- Provide a name
- Select a connection
- Specify a table name of the table you want to create
- Click OK
You will then see a list of empty form fields which you can configure to suit your needs (Figure 6.3). You must select a data type for the field before you enter any field details.
Rendering the form in frontend
To render a form in frontend, attach the Forms for Data Lists app to a paragraph and use the app settings (Figure 7.1) to control the process.
- Select a form to render
- Select or create a template for rendering the form
- Decide what should happen after the form has been submitted – either use a confirmation template or redirect to a page
- If the form contains upload controls, select a destination folder for the uploaded files
- Decide whether to render submit and reset buttons, and what they should be labeled as
You can also use the form save events section to set up email receipts, email the form to someone on submit, or save the form date in a csv file. Check the appropriate checkbox and fill in the associated settings.
The contents of a data list can be published as an XML feed using the XML Publication feature.
To create an XML feed:
- Fold out the XML Publication node
- Click New publication
- Name the publication
- Select a data list to publish
- Select/create an XSLT file for generating the feed
Once you save the publication, an URL will be generated (Figure 8.1) – visit this URL to view the XML feed.


Indian Tribes Get Approval to Grow Pot
PotIn an announcement today, US Attorney Amanda Marshall from Oregon stated that Indian tribes are allowed to grow and sell marijuana on their lands. However, they are required to follow the same conditions set by the Federal government for states in which pot is legalized.
Although only a few tribes have shown interest in growing and selling pot at this time, they have had questions about how legalized marijuana would apply to their lands much the same as in states to include Colorado, Oregon, and Washington. As expressed by Marshall, these questions need to be addressed, specifically how the US as Federal partners help tribes protect families and children, businesses, and housing.
The other big question pertains to the way that the Indian County abuse of marijuana will be fought when there are not more states to partner with. Marshall added that the announcement is not to be taken as a green light to authorities of Indian tribes and that under Federal law, growing and selling it remains illegal.
The priorities of the US government's prosecution is on gang activity, violence, trafficking, and the sale to small children associated with marijuana. For tribes who have lands in states where pot is still illegal, various problems could arise because there is a strong chance that the drug would be sold outside of boundaries or transported.
Currently, the Federal government recognized 566 Indian tribes so in order for this to actually happen, a tremendous amount of discussions need to take place between Federal prosecutors and tribes. Because Indian tribes are sovereign nations, many maintain their own police. However, there are some tribes that rely on local and state police and enforcement under Federal law.
Marshall also said that minor cases will not be prosecuted by the Federal government because of the vast territory and limited resources.
This policy is based on the August 2013 "Cole Memo", which was named after the deputy attorney general who wrote it. This Justice Department memo states that as long as legalization states regulate the drug tightly and take appropriate measures to keep it from Federal property, criminal cartels, and children, the Federal government will not intervene.
In addition, US attorneys reserve the right to prosecute based on eight specific issues. These include the sale of marijuana to children, shipping the drug to states where it is deemed illegal, using the proceeds from sales for criminal enterprises, possessing pot on Federal land, making illegal sales, growing in public land, various public health issues such as drugged driving, and firearms and violence.
Leave a Reply
Skip to toolbar


text:
Discusses relationship between two countries Interest rates and Exchange;Rates. The Difference between Interest rates in two countries has a known;and predictable relationship with Exchange Rates.;Formally Stated;The Interest Rate differential between two countries, that do not have restrictions;on Capital flows, should equal the difference between the Spot and Forward;Exchange rates.;Example;Consider two countries, Say England and U.S.A.;Let the current Exchange rate be;Spot Rate 1 Pound = 1. 5 dollars;Let Annual Interest Rate of Risk free security in England be: 8%;Let Annual Interest Rate of Risk free security in USA be;4%;What should the three month Forward Exchange Rate be?;As per this theory [IRP], the forward exchange Rate should be;1 pound = 1.4853 dollars.;Why this should be so is explained by this theory.;Problem;We examine this from the perspective of an Investor in England.;Let us assume that one person in England has a 1 million pounds to invest on April;1, 2013. He wants to invest for 3 months till July 1, 2013. He has two choices.;Choice 1;He can invest in England on April 1, 2013 and get a return of 2%.;[Annual Return = 8%, Hence, three month Return = 2%];On July 1, 2013 he would have 1.02 million pounds.;Choice 2;Alternatively, he can convert his money to U.S. dollars on April 1, 2013. Given that;the Spot Exchange rate is 1 pound = 1.5 dollars, he would get, 1.5 million dollars.;He can then invest it in USA risk free securities for 3 months. He would get a return;of 1%. On July 1, 2013 he would have 1.515 million dollars.;This amount he can convert it back to British pounds. Since he can lock in the;forward exchange rates on April 1, 2013 itself, he can convert it to England at the;predetermined, locked-up exchange rate. The lock in exchange rate hence should be;at: 1 pound = 1.4853 dollars, Thus, and hence he will receive, 1.02 million pounds.;Spot Rate (dollar for pound);Forward Rate (dollar for pound);Forward Exchange Rate changes by;=;=;=;1.5;1.4853;2% - 1%;= 1%;FIRST VERSION Multiplying Spot Exchange Rate by this we arrive at the;SPOT EXCHANGE RATE 1 Pound = $ 1.5;Domestic Interest Rate = (UK 3 Month Rate) = 2%;Foreign Interest Rate = (USA 3 Month Rate) = 1%;Interest Rate Differenentials = Domestic Interest Rate Foreign Interest Rate;= [ 2 % -- 1 % ] = 1%;The New Forward Exchange rate, three months from today should be;Spot Exc. Rate x (100 difference in Interest) = Forward Exchange Rate;THEORETICAL EQUATION ONE;Switching Sides;Forward Exchange Rate = Spot Exc. Rate x (100 difference in Interest);PRACTICAL solution in the above problem from perspective of a British Investor;=;=;=;=;1.50 x (100% 1%);1.50 x (99%);1.50 x (99/100);1.485;LIMITATIONS: Other thing being Equal.;Important Note;This example is constructed from a British investor point of view. We can use the;same example from an American investor point of view. Then what we see as a;Forward Discount will become a Forward Premium;WHAT HAPPENS WHEN THE FORWARD RATE IS NOT 1.4850?;You have potential for Arbitrage, Make Riskless money;Say the three month forward rate is also 1.50 like the spot rate.;Say either you or your friend wants to invest $3,000,000 in US T.Bill market.;Instead of investing in USA T. Bill market ($3,000,000) in the USA, you;Convert the money to British Pounds, at the spot Exchange rate of 1.50, Get;2,000,000 British pounds, Invest it in UK for three months at the risk free;rate at 2%, Get 2,040,000 at the end of three months. At the same time you;Lock in the Forward Rate of 1.50 today. At the end of 3 months, you convert;your accumulated British Pounds to US Dollars. You will get $3,060,000.;Alternatively, If you had invested at USA T. Bill market you would have;gotten only, 1% return and you would have only $3,030,000.;You have made $30,000 extra money.;Covered Interest Rate Parity;No Risk Involved, all positions are locked up before entering into transactions.;Uncovered Interest Rate Parity;Risk involved, do not lock up the forward exchange rates.;Limitations to IRP;1.;2.;Transactions Costs imposed by Traders;Capital Controls imposed by Nations;STEPS IN SOLVING INTEREST RATE PARITY PROBLEM;1. Identify a country as Home Country and another as Foreign Country;2. Solve the problem from the perspective of Home Country Investor;3. Identify the Domestic Interest Rate for the time period in question;4. Identify the Foreign Interest Rate for the time period in question;5. Identify the Current Spot Rate;6. Solve for the Forward Rate;OTHER VERSIONS OF INTEREST RATE PARITY;IRP has been widely developed by many researchers and various formulations exist.;Here below we examine three different ways of calculating IRP and the Forward;Exchange rates. However, in problems use any one of the versions. You do not need;to use all of them. They all should give you the same results, Remember that some;are approximations and there may be small (very minute) differences.;[Why are we looking at Four different ways of doing the same thing?! Because some;books, or researchers use a different method, and I just wanted to make sure that;you recognize that it is the same concept, but analyzed and detailed a differnet way].;SECOND VERSION: Theoretical Interest Rate Parity is;[Spot Exc. Rate / Forward Exc. Rate] (1 + Forgn Int. Rate);= (1 + Dom Int. Rate);Rewriting the Equation;[Spot Ex. Rate / Forward Ex. Rate];=;(1 + Dom Int Rate) / (1 + Foreign Int Rate);Rewriting the Equation to Solve for Foreign Exc. Rate;Spot Ex. Rate [1 + Forgn Int. Rate] / [ 1 + Dom Int Rate] = Forward Ex. Rate;THEORETICAL EQUATION TWO;Switching Sides;Forward Exc. Rate = Spot Exc. Rate [1 + Forgn Int. Rate] / [ 1 + Dom Int Rate];PRACTICAL solution in the above problem from perspective of a British Investor;Solving for Forward Rate =;[Spot Exc. Rate x 1.01] / [1.02];= (1.50 x 1.01) / 1.02 = 1.485294;THIRD VERSION: Approximately: Interest Rate Parity is;THEORETICAL EQUATION THREE;(Forward Ex. Rate Spot Ex. Rate) / Spot Ex. Rate = Foreign Int Rate Dom Int Rate;Forward Ex. Rate Spot Ex. Rate = [Foreign Int Rate Dom Int Rate] X (Spot Ex. Rate);Forward Ex. Rate = [(Foreign Int Rate Dom Int Rate) X (Spot Ex. Rate)] + Spot Ex Rate;PRACTICAL solution in the above problem from perspective of a British Investor;Forward Ex. Rate = [(1% -- 2%) X (1.50)];+ [1.50];= [(-- 1 %) X 1.50] + 1.50;= - 0.015 + 1.50;= 1.4850;FOURTH VERSION;THEORETICAL EQUATION FOUR;Forward Exchange Rate Discount, or Premium = Difference in Interest Rates;If the difference is Positive, Your currency has appreciated;If the difference is Negative, Your currency has depreciated.;PRACTICAL solution in the above problem from perspective of a British Investor;Difference in Interest Rates = Foreign Interest Rates Domestic Interest Rates;= 1%;- 2 % = - 1%;Forward Exchange Rate therefore depreciates by 1% and goes to 1.485;Optional Homework Problem;1.;2.;3.;4.;5.;6.;Identify the Interest Rate for Brazil;Identify the Interest Rate for South Korea;Examine whether Interest Rate Parity Theorem holds for the last year?;What are the implications of this How do you make money?;What data do you need?;Where would you get the data?
Paper#34088 | Written in 18-Jul-2015Price : $57


text:
Children in Years 5 and 6 are taking part in the Read for My School competition.
Two children from each class will receive a goody bag packed with exciting prizes. The winners will be selected based on the number of books they have read and the quality of their book reviews.
Read for My School is the exciting new national schools reading competition from The Pearson Foundation and Booktrust, with support from the Department for Education
Reading for pleasure is at the heart of the initiative, which aims to generate excitement about books and cultivate long-lasting positive attitudes towards reading.
Read for My School is:
- free for all primary schools in England
- open to children in years 5 and 6
- running in 2013 from 21 January to 22 March
Children who attend participating schools will be encouraged to:
- read as much as they can
- explore a variety of genres and formats
- make their own choices as readers
- recommend titles to friends


text:
How to get rid of earwigs
Information, facts and resources to help you deal with an infestation of earwigs and, if the worst happens, how to destroy the earwigs and prevent this household pests return.
What does an earwig look like?
- Earwigs are typically reddish brown to black in colour.
- Earwigs are approxiamately 9 - 15 mm in length.
- Earwigs have short wings which do not cover the body.
- Earwigs have pincers at the rear of their bodies - they look dangerous but earwigs can do no harm to humans with these.
Where do earwigs live?
- Earwigs are found in damp places, in lawns, in crevices and amongst litter. Earwigs are mosty found outside but occasionally inside. Earwigs are found in plants, trees and buildings. Earwigs hibernate under paper, cardboard, wooden boards, bark, and also stones outside.
What are the signs of an earwig infestation?
- Earwigs are seen when moving items such as litter or damp clothes or damp cardboard that has been left undisturbed for a while.
What do earwigs eat?
- Earwigs eat and thrive on organic matter. Earwigs eat lichens, pollen, flowers, vegetables, plant matter and fruit.
- Earwigs also eat most household pantry items such as flour, biscuits, bread, and pastries.
Why must earwigs be controlled?
- Earwigs are a significant pest to gardeners.
- Earwigs (during an infestation) can be found in laundry, clothes, furniture, bread, the pantry or larder, and bedding. Earwigs are an unpleasant rather than dangerous household pest.
How can I get rid of earwigs?
- Good hygiene and the clearance of litter, clippings, organic materials is essential for the extermination of these pests.
How can I prevent earwigs from returning?
- Keep work areas in the kitchen and garden dry and free from litter to help control earwigs.
- Remove decaying vegetable matter from garden areas and around the house.
- Avoid leaving piles of piles of leaves or grass clippings lying around, or ANY pile of wet, damp organic matter which may encourage and feed earwigs.
- Repair downpipes and gutters that may contribute to the damp environment that earwigs need to thrive.
Earwig Poisons and Earwig Pesticides
- Proprietary earwig poisons and pesticides are vailable from hardware stores.
- Chemicals for the effective control of earwigs include: deltamethrin, cyfluthrin, lambda-cyhalothrin, cypermethrin, sumithrin and tralomethrin.
The "Green Option" - Environmentally friendly control of Earwigs
- Earwigs can be baited and sweet sticky substance will attract and hold them.
- Earwigs can be controlled with grooved board traps which are set in places earwigs are known to frequent. The earwig traps are checked regularly and any caught earwigs are disposed of.
- Place wet burlap bags or wet carpet, boards, newspapers or other cover material around the garden near the house. Collect the earwigs that congregate under the damp materials and dispose of the earwigs.
- Try poisoned bran sweetened with molasses to control earwigs.
Earwigs : Household Pests
Extermine common household pests; control and eradication information - online eradication of household pests!
(Press Ctrl and D - to bookmark)


text:
In this workshop, you'll find that the letter "H" is the perfect frame for a helmet. We'll rework a simple giant letter into a helmet for an imaginary sports team.
What you'll need:
15″ x 15″ cardstock
- Begin by cutting out one 6″ x 6″ square from the middle of both sides of the cardstock as shown in the diagram, to create an "H" shape.
2. Draw patterns on the remaining area that best express your imaginary sport.
3. Bend in the middle so that both sets of ends can overlap and size it up to the wearer's head. Use a hole punch to create a hole through both layers.
4. Fasten the layers with a brass fastener, making sure to have the two ends of the fastener point from the inside of the helmet to the outside. This way the two ends do not poke the wearer's head or catch his or her hair.
5. Use the rest of the materials to decorate the helmet with telling elements that will help you in your imaginary sport. For example: Does it need an antenna for communicating? Does it need wings for flying? Or does it need lenses to cover the eyes?
Share your helmet with us using _TAG_! How-To Tuesdays are published on our blog every other week, so check back soon for a new project!


Take the 2-minute tour ×
i want the numbers to be displayed in this format..
1 2 3 4 5 ^
where if i press 5, then it should display from 5 to 10
5 6 7 8 9 10
till the max records are available. i just want to know a how to do this for displaying numbers.
share|improve this question
What is your user interface framework? If it's the console then it's not so simple to do portable non-blocking I/O under Java. – trojanfoe Apr 2 '11 at 7:27
i have implemented using Spring MVC, where if i click on 1, it will display from 1 to 10 records. now the only problem is displaying numbers that are meaningfull. currently i have implemented showing numbers from 1 to 10 for 100 records. but if records increase, then the displaying numbers too will increase. so want to control this.. how do i do that? – Raju Apr 2 '11 at 7:36
i just want to know the logic of how this can be done. or if anybody can show with simple example for this calculation? – Raju Apr 2 '11 at 7:49
add comment
4 Answers
up vote 4 down vote accepted
Normally you want your database to do the heavy lifting for pagination and sorting. With MySQL for example you can get a page of sorted results by adding
to the end of your SQL query. If you use hibernate you can do this in a vendor-independent way using the criteria API:
(List) Criteria criteria = getSession()
To display a pagination navigation you also need to count the total number of results:
(Integer) Criteria criteria = getSession()
You can add restrictions to both searches, for example when you want to filter on lastname you could add:
.add(Restrictions.eq("lastname", "Smith")
(This needs to be added to both the count query and the list query).
When you know the total number of results, the pagesize and the current page number you can do something like this:
// TODO: execute the count query here to determine totalResults
int totalPages = Math.ceil(totalResults / pageSize);
// show first page by default
int first = 0;
if (currentPage >= 0 && currentPage < totalPages) {
 first = currentPage * pageSize;
// the number of items on the page might be less than the page size
int count = Math.min(pageSize, totalResults - first);
// TODO: execute the list query here to get a page of data
How you display the navigation is up to you. Some frameworks (like my favorite, Wicket) have standard components for that. Otherwise you will have to think of a way to handle huge amounts of pages. A common approach is to show a range of say 10 page numbers and forward/backward jump to start/jump to end links.
Hope this helps.
share|improve this answer
add comment
We cannot give the specific/exact answer you expected. The thing here is we can give you some advice for some logic ways to accomplish your request.
First thing is, read some documents for creating a well designed structure of your pagination. Here are some links that may help you in building the design of your pagination.
For my personal experience in designing my pagination and a large data will retrieve from a database. I'll use a LIMIT in my sql query to fasten retrieving the results. And I'll do things as follows.
 - First I do have a Model a class/object that will hold the pages that will display in my presentation layer.
 - The processing of query will process in a DAO/my business layer.
 - Now in my Services/Logic layer will process the assigning of values to my model. This where also the forwarding and requesting of data will be handle.
 - And in my presentation layer which the results of the query and the parameter for every links in pagination will display.
I know my explanation is not clear but I hope you get some point on it.
And now you could ask what's the relevant to your question. It is the process of how your presentation communication with your business layer. What I mean is the flow on how will you get the result you needed if some page number was call. Seems not really clear for that I'll make pseudo-codes that more related to you're question.
Since you don't have a ( First | Prev | page no here.... | Next | Last ) on your pagination. I'll make it short as possible.
First loading of the page with default pages. Assuming page data is from database and with the use of LIMIT
 1. DAO/Business - SELECT pagesContent/link FROM someTables LIMIT 0,5;..
 2. Services/Logic - Put links for page 1 and so on... and put it to pagination Model..
 3. Presentaton/Display - Display now the pages that stored in pagination Model.. Now in page5 or the last page you get the query you will pass another parameter that will change the starting limit of the query and you can pass also the nth page..
The logic here is, from your pagination display you will need to pass a value that your logic layer will understand what will be the next pages to be display. Another way is you can set a condition in you logic layer how to count the pages if it is not in the range of 1 - 4 or other thing you need to validate.
I hope this can be a help.
share|improve this answer
thank you for your reply. i have finished the part of access the and displaying the records. the only thing missing is the numbers that needs to be displayed. i tried this. if((currentPageNumber % 5 == 0) { firstPageNumber = currentPageNumber; endPageNumber = currentPageNumber + 5 ; if(endPageNumber >= totalRecords) endPageNumber = totalPages; } – Raju Apr 2 '11 at 9:51
that didnt work, if i click 6, it ll display from 1 to 5 again. need some logic to retain from 5 to 10 even if i click 6 or 7 or so.. – Raju Apr 2 '11 at 9:57
Your close to it.. Why it didn't work for 6.. maybe because you don't set the starting page to be displayed. Like I said there must be another parameter that can detect what will be the starting page. And for example a query like Select * FROM table LIMIT start-Page,nth-Page if you are using a query. But this can also apply to your process. Just play and analyze on your code and you will get it :) – ace Apr 2 '11 at 10:11
hmm thank you for all advice. :D – Raju Apr 2 '11 at 10:22
I think this was a great answer 1+ – sfrj Apr 2 '11 at 11:55
show 1 more comment
Last week i discovered primefaces, it has lots of cool tools and gadgets, here have a look _URL_ if what you do is desktop apps you can have a look at javaFX _URL_
share|improve this answer
Well you can also control that yourself with no need of a gadget. I think an idea could be making a custom component of your own that as input parameter takes the total number of records and also the selected paginator value. Then you would design an algorithm that will divide the ammount of records by the selected paginator choice. The result will be the number of pages. You will need exception handling to cover all options. The pages numbers can be represented as an array. – sfrj Apr 3 '11 at 16:53
add comment
If you have a List of records then you can do pagination using subList method of List.
List.subList(fromIndex, endIndex);
returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive
share|improve this answer
add comment
Your Answer


text:
Q Where is Svo2 (percentage of oxygen saturation in the pulmonary arterial blood) measured in the body?
Svo2 is measured in the pulmonary artery (PA), where venous blood mixes after circulating through the superior and inferior vena cavae, coronary sinuses, and the chambers in the right side of the heart. Although Svo2 is the percentage of oxygen saturation in the pulmonary arterial blood, Svo2 actually represents an average of all the venous oxygen saturations of the various organs and tissues.1
Q: Describe the technology used to measure Svo2.
The components of an Svo2 monitoring system include a flow-directed thermodilution PA catheter that has conventional hemodynamic monitoring capabilities in addition to fiber optics for transmitting light (Figure 1), an optical module that contains a light-emitting...


When someone asks a question along the lines:
Чей это кот? Чья это собака? Чьё это письмо? Чьи это очки?
I have the following two questions regarding the structure of these interrogative sentences:
1. What type of pronoun is чья/чей/чьё/чьи here? Is it a pronoun which replaces a noun, or a pronoun that replaces an adjective?
For example - "This is your car" -- here "your" takes the place of an adjective
"This car is yours" -- here "yours" takes the place of noun
So in these questions, does чьё/чья/чей/чьи mean "whose" in the sense of "Whose is this?" (replacing a noun) or "Whose car is this?" (replacing an adjective)?
2. I have an essentially analogous question about the function of "это" in this type of question.
In these questions, does "это" mean "this" in the sense of "Think about this" (takes the place of a noun) or "this" in the sense of "Think about this question" (takes the place of an adjective)?
My confusion is as follows: чей/чья/чьи/чьё declines with the noun in "...", but this isn't enough to tell us whether it is taking the role of a noun or adjective, because both of these types of pronouns decline the same in Russian -- i.e. "(Это) авто -- твоё." and "Это -- твоё авто." are both valid sentences, and "твоя" is declined the same way in both, despite the fact that it serves a different function in both.
But in German, one would have "Das Auto ist deins" and "Das ist dein Auto". In German one can tell from the declension of "dein" what function it is serving in each sentence, and from that infer what the function of "das" is (along with whether it is separated from the noun by the copular verb, which generally isn't used in Russian).
The only hint in Russian that allows one to differentiate between "Это авто твоё" and "Это твоё авто" (at least as far as I can tell) is the word order. But the rules for word order in questions are usually different from the rules for word order in regular sentences, so I really don't know what at all to make of "Чьё это авто". Hence any help would be greatly appreciated.
 - "Das Auto ist deines" is not correct. – Abakan Aug 29 '16 at 12:17
 - _USER_.S You're right, I thought "deins" was just an abbreviation for "deines" but it turns out that it is incorrect to use "deines" instead of "deins". I have fixed the post. – Chill2Macht Aug 29 '16 at 15:49
Russian is much easier than English or German in this aspect. We don't distinguish between posessive pronouns and adjectives (they are both called pronouns in modern English grammar btw). Neither have we different forms for them like my and mine. It will be мой,моя,мое in all cases,you will never make a mistake. As for Russian into English translating the rule is the same as in English. Just look whether you have a corresponding noun after the posessive in your sentence or not.
Это моя книга.--This is my book. Чья это книга?-- Моя.Whose book is this?--It's. mine.
 - This is correct but doesn't seem to answer my question -- would the translation be the equivalent of "your" or "yours"? Otherwise I don't understand how the various words in the sentence are acting. – Chill2Macht Aug 29 '16 at 20:43
 - 1
 See the examples and the last sentence. The functions in Russian are those of an adjective and a predicative. – V.V. Aug 30 '16 at 2:23
 - 1
 Чей это кот?--Whose cat is this? (Adjective )А кот чей?-Мой.(predicative ) – V.V. Aug 30 '16 at 2:32
 - this makes sense -- one more question -- if "чья" is modifying "книга", why does the word order in this question separate them? Wouldn't "Чья книга -- это?" or "это -- чья книга?" make more sense because they don't separate the words in the noun phrase? Or is this just one of those things for which "that just is the way it is" even if it doesn't really make sense? – Chill2Macht Aug 30 '16 at 2:34
 - 1
 Это чья книга?и Чья это книга?--Both have the same meaning with a stress on чья.You don't need a dash, the word order functioning instead. Чья книга?is usually used without это in a dialogue when you point to the book.Funny, I never thought of "just the way it is" but that seems to be the case. – V.V. Aug 30 '16 at 2:43
not sure i fully understand the crux but i'll try to give an answer and hopefully it'll help to arrive at a conclusion
 1. in the presented questions the interrogative pronouns point at a possessor of the object in question who (the possessor) is expressed with a possessive pronoun or a noun in Genitive case in the answer
Чей это кот?
A1 (possessive pronoun)
Это наш кот
A2 (noun in Genitive)
Это кот соседа
there's an obsolete form, yet still understandable, where a possessive adjective is used instead of a noun
Это соседов кот
a modern variant with a regular adjective would be
Это соседский кот
although it's less specific than the former because it doesn't point at possessor's gender and number
that said, a female form of a possessive adjective is still very much in use
Это соседкин кот
BUT correspond the grammatical form of this interrogative pronoun must with the object and not with the possessor
it's essentially a possessive pronoun itself and these always correspond with the object
 1. Это here is an demonstrative pronoun, which technically could be replaced by pronouns declined in accordance with the object of the question
Чей это кот? = Чей этот кот?
Чьи это очки? = Чьи эти очки?
though it sounds somewhat artificial and is rarely used
in order to arrive at a function of noun (by your terminology) for это in the answer, a question must be worded in a specific way
Q. Этот кот, (он) чей? A. Этот кот - наш / Он - наш but a regular answer Это наш кот is equally valid
however in a reversed situation an answer Он - наш to a question Чей это кот? sounds awkward, because a purpose of such type of question isn't to find out whom out of several potential owners the cat belongs to, but just to find out in general who the owner is
 - I really appreciate this thorough and helpful answer. Unfortunately it has confused me somewhat more than before however; what does the fact that it is grammatically correct to decline "это" in these sentences mean about its function? I want to know which one of the two words "чей, это" is acting like a noun, and which one of the two words "чей, это" is acting like an adjective. – Chill2Macht Aug 29 '16 at 20:45
 - 1
 i'm afraid i don't quite understand what you mean by the function of a noun, because neither of these words is noun or plays its grammatical role, they're all pronouns, one is demonstrative - это while another is possessive interrogative - чей, the noun here is кот, Чей это кот? = Whos cat is this?, neither whos and this acts like a noun either, don't they? – Баян Купи-ка Aug 29 '16 at 21:03
 - 1
 a question Чей этот кот? has an overtone of inquiry about a specific cat out of a few, seeking to find out who the owner is of that specific cat while disregarding the rest, and этот helps to single out a cat from the group, therefore when inquiring about a random lonely cat pronoun этот would be misplaced unlike это – Баян Купи-ка Aug 29 '16 at 21:11
 - 1
 the word or a combination thereof in response to чей? will be a predicate in the answer, called составное именное сказуемое, a question turned statement would look as follows Чей это кот? - Наш это кот/Соседа это кот, the word order doesn't make it sound very natural, but it's passable, where наш кот & соседа кот are compound predicates, составные именные сказуемые – Баян Купи-ка Aug 30 '16 at 7:17
 - 1
 for the record a question


text:
Dense clubmoss is a perennial evergreen, non-flowering herb that forms dense mats that rarely exceed 1-in. in height. Stems are compactly branched, leafy and lie along the soil surface. Leaves are simple and awn-tipped, are 1/10 of an inch. long and arranged in dense spirals along the stem.
Its roots are extremely fine, minutely branched and extend 1-2 in. into the soil. Despite their fineness, the extensive branching of dense clubmoss roots makes up as much as 85% of the plant's dry matter.


text:
During drilling operations, rock-bit interactions may cause a wide range of undesirable system vibrations. The induced vibrations subsequently reduce drilling efficiency and increase fatigue loads acting on drill bit. In this paper, a coupled torsional and axial drilling model is proposed. It can be used to predict the vibrations including bit bounce and stick-slip. Instead of using finite element (FEM) approach, the drill pipe is accurately modeled based on wave propagation theory. This results in time-delay equations in time domain and significantly reduces the computational complexity associated with FEM. The axial and torsional motions are coupled by bit-rock interactions. Different rock-bit interaction conditions are considered based on bit rotation and contact with formation. Simulations are conducted using the proposed model to analyze the impact of different applied weights on bit and surface rotary speeds on the system vibrations. This information provides insights into optimization of drilling operation.
- Dynamic Systems and Control Division
Modeling of Coupled Axial and Torsional Motions of a Drilling System
- Views Icon Views
- Share Icon Share
- Search Site
Ma, Z, & Chen, D. "Modeling of Coupled Axial and Torsional Motions of a Drilling System." Proceedings of the ASME 2015 Dynamic Systems and Control Conference. Volume 2: Diagnostics and Detection; Drilling; Dynamics and Control of Wind Energy Systems; Energy Harvesting; Estimation and Identification; Flexible and Smart Structure Control; Fuels Cells/Energy Storage; Human Robot Interaction; HVAC Building Energy Management; Industrial Applications; Intelligent Transportation Systems; Manufacturing; Mechatronics; Modelling and Validation; Motion and Vibration Control Applications. Columbus, Ohio, USA. October 28–30, 2015. V002T20A005. ASME. _URL_
Download citation file:


FAQ :: What is the difference between white and black magic?
I have heard this basic differentiation: Black magic is intended to cause harm and is evil; white magic seeks to heal, not harm. While that may be true, you have to ask the simple question, "What is the source of the power?" If it is anything but the power of Almighty God, then it is to be avoided at all costs.
God will never allow himself to be degraded to the point of being summoned to cast a spell or to levitate an object. I can promise you that will never happen. So, right away, you can rule out most "magic" as being of the devil.
Prayer calls on the power of God according to His good will and purposes. A prayerful heart says, "Lord I don't know best, but You do, so please help me." In contrast, magic calls on supernatural power for selfish gain or to cause harm, using occult rituals. The magic we are referring to is not the bunny in the hat, sleight-of-hand magic found at kid's birthday parties; it is an occult ritual that calls on the evil, supernatural powers of the devil.


Using Stream's Real-Time Messaging API with Amazon Translate
Is your chat going global? Worry less about the language barrier when you pair Amazon Translate with our real-time messaging API.
When powering a chat product in a global environment, multilingual support should be top-of-mind. Doing so allows you to ensure that the communication barrier between yourself and the user on the other end is not broken.
Adding multilingual functionality to Stream Chat is easy with the support that Stream provides. In this tutorial, I'll walk you through the inner workings of building multilingual chat with Stream Chat and Amazon Translate.
Here is a preview of what you will build at the end of this tutorial:
You can also find the complete code of this tutorial on GitHub.
To follow along with this tutorial, you will need to have the following:
 - A basic understanding of JavaScript
 - A basic understanding of Vue.js
 - You should also have Node installed on your system (version 8.9 or above — preferably the latest 12.x) and a basic understanding of Node
 - You should have yarn installed on your system
 - Have an understanding of how Vue sends data from a child to its parent component.
If you have all the above ready, then let's get started!
Set up the Client App – Create a New Vue App
Using the Vue CLI, we can easily create a new Vue app.
Accessing the URL displayed on your terminal will take you to a Vue default page.
Get Your API Keys
Stream Chat Keys
To start using the Stream Chat API, you need to have an API key. Create an account here or log in if you already have an account.
Then, from your dashboard:
 - Create a new app using any convenient name.
 - Fill in the App Name
Finally, submit the form by clicking on the Submit button to create the app
Once the app is created, you will be provided with a few options within your dashboard. Select Chat to go the Stream Chat dashboard.
Finally, create a.env file in the root directory of the project and add your Stream keys:
Remember to replace and with the correct app keys you have noted above.
AWS App Keys
Amazon Translate uses advanced machine learning technologies to provide high-quality translation on demand. We'll use the service to translate text from one language to another.
Now, head over to the Amazon website and create an account or log in if you already have an account.
 1. From your console, head to the My Security Credentials page:
 1. Click on Continue to Security Credentials for the pop that comes up.
 1. Click on the Access keys (access key ID and secret access key) tab and then click on Create New Account Key button.
 2. Copy your Access Key ID and Secret Account Key and then update and placeholders respectively in the.env file.
Set up the Server
We'll be using Node to power the server.
Create a new directory named server in the root directory of the project. Then open up a new terminal and then change your current directory to the server directory.
Next, install the following dependencies that we'll need for the server:
The above dependencies include:
 - express - A Node framework we are using to build our server
 - aws-sdk - AWS Translate Node SDK
 - dotenv - An npm package for parsing configs from.env files
 - cors,body-parser, anddotenv (all excellent npm packages)
Next, create an Express app by creating a new file named app.js to the server directory and then add the following code to it:
In the code above, after importing the packages that we have installed,
 - We created anExpress app using const app = express()**;**
 - Next, we initialize the Stream Chat SDK
 - Then finally, we created an endpoint - / (**app.get('/',…**) for testing to know if the app works. So, if you visithttp://localhost:3000/, you will get a message — { hello: 'World!'}
To initialize the Stream Chat SDK, it requires a valid token. Create a new endpoint for creating a token.
Next, create a new endpoint for translating messages:
To translate a message, we'll send a POST request to this endpoint passing along the language code of the language that we want to translate to (targetLanguage) and also the text that we want to translate (text).
Also, we are setting the SouceLanguageCode to auto so that the language is automatically detected.
The result of the request is a JSON object containing the translated text.
Finally, start up the server:
If it starts successfully, you will see a message printed to the terminal - "Node app listening on port 3000!"
Building the App Interface
For brevity's sake, we'll divide the app into four components:
 - Messages.vue - for listing messages
 - Login.vue - displays the login form
 - Channels - for listing channels
 - InputForm - renders a form for adding new messages
Create the files Messages.vue**, Login.vue**, Channels.vue, and Login.vue files into the src/components directory.
To keep the component file as minimal as possible, I have added all the CSS of the components to a single CSS file. Create the CSS file asApp.css in the src directory of the project and then add the below styles to it:
The Login Component
We are using the login form to get the username of a user which we'll use to generate a token for that user. Then the token is used for initializing the Stream Chat SDK. The username is meant to be unique for identifying users.
However, for simplicity sake, we are not doing real authentication. This is the better place for you to authenticate your users in your database if you want to limit access to only the users that you know.
Now, update the Login component with the below code:
The Messages Component
Next, add the messages component for listing messages for a given channel:
Here, we are passing the array of messages for a given channel as props to this component. Also, using the messageDirection function, we determine the direction to place a message to either left or right depending on who sent the message.
The InputForm Component
Next, add the code that defines the InputForm component for adding new messages:
The Channels Component
Next, add the code that defines the channels component:
In this component, we are listing the channels that we have on our app. Also, we added a form for creating a new channel.
The App Component
Finally, bring all the components together by replacing the content in the src/App.vue file with the below:
In the preceding code,
 - We import all the components that we have created and render them to the template section.
 - If authenticated is false, we render the login component else we render the chat interface.
 - In the select tag (


text:
Koala teeth provide insights into dietby Heidi Hall Aug. 22, 2018, 1:00 PM
Paleontologist Larisa DeSantis studies the teeth of ancient and modern mammals to determine how their diets changed across the millennia and, by extension, their responses to climate change.
But the question lingered: Is wear on teeth an indicator of what kangaroos and koalas ate or just how much gritty dust and dirt they consumed?
The Vanderbilt University professor's latest research, published today in the peer-reviewed journal PLOS ONE, confirms the shape of tooth wear best indicates what they were eating, not what was on it.
"We can investigate the teeth in modern animals, begin to understand exactly what they're recording and then take that information – a kind of Rosetta Stone – back into the fossil records and interpret the behavior of fossil animals," said DeSantis, assistant professor of earth and environmental science. "While we eventually aim to look at how diets have changed over long periods of climate change, this study focused on whether these teeth were recording diet or aridity."
DeSantis targeted Australian marsupials for her dental mesowear work because that continent has been drying out over millions of years, making it a rich environment to study how changing climate prompts animal evolution.
For this particular study, she and a team of Vanderbilt graduate and undergraduate students analyzed casts and photographs of teeth from koalas and kangaroos that died over the past few decades to compare with modern climate and dietary data.
The journal article is titled Effects of climate on dental mesowear of koalas and two broadly distributed kangaroos throughout their geographic range, and the research was funded by an NSF CAREER grant.