error.
$AGI->say_alpha($string, $digits) Executes AGI Command SAY ALPHA $string $digits
Say a given character string, returning early if any of the given DTMF $digits are received on the channel.
Returns Example: $AGI->say_alpha('Joe Smith', '#');
Returns: 0 if playback completes without a digit being pressed;
the ASCII numerical value of the digit if one was pressed;
-1 on error/hangup.
$AGI->say_date($time [, $digits])
$AGI->say_time($time [, $digits])
$AGI->say_datetime($time [, $digits [, $format [, $timezone]]]) Executes AGI Command SAY DATE $number $digits Executes AGI Command SAY TIME $number $digits Executes AGI Command SAY DATETIME $number $digits $format $timezone
Say a given date or time, returning early if any of the optional DTMF $digits are received on the channel. $time is number of seconds elapsed since 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC), commonly known as unixtime.
For say_datetime, $format is the format the time should be said in; see voicemail.conf (defaults to ABdY 'digits/at' IMp). Acceptable values for $timezone can be found in /usr/share/zoneinfo. Defaults to machine default.
Example: $AGI->say_date('100000000');
$AGI->say_time('100000000', '#');
$AGI->say_datetime('100000000', '#', 'ABdY IMp', 'EDT');
Returns: -1 on error or hangup;
0 if playback completes without a digit being pressed;
the ASCII numerical value of the digit of one was pressed.
$AGI->say_digits($number, $digits) Executes AGI Command SAY DIGITS $number $digits
Says the given digit string $number, returning early if any of the $digits are received.
Example: $AGI->say_digits('_PHONE_');
Returns: -1 on error or hangup, 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit of one was pressed.
$AGI->say_number($number, $digits, $gender) Executes AGI Command SAY NUMBER $number $digits [$gender]
Says the given $number, returning early if any of the $digits are received.
Example: $AGI->say_number('98765');
Returns: -1 on error or hangup, 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit of one was pressed.
$AGI->say_phonetic($string, $digits) Executes AGI Command SAY PHONETIC $string $digits
Say a given character string with phonetics, returning early if any of the given DTMF digits are received on the channel.
Example: $AGI->say_phonetic('Joe Smith', '#');
Returns: 0 if playback completes without a digit being pressed;
the ASCII numerical value of the digit if one was pressed;
-1 on error/hangup.
$AGI->send_image($image) Executes AGI Command "SEND IMAGE $image
Sends the given image on a channel. Most channels do not support the transmission of images.
Example: $AGI->send_image('image.png');
Returns: -1 on error or hangup, 0 if the image was sent or if the channel does not support image transmission.
$AGI->send_text($text) Executes AGI Command SEND TEXT $text"
Sends the given text on a channel. Most channels do not support the transmission of text.
Example: $AGI->send_text('You've got mail!');
Returns: -1 on error or hangup, 0 if the text was sent or if the channel does not support text transmission.
$AGI->set_autohangup($time) Executes AGI Command SET AUTOHANGUP $time
Cause the channel to automatically hangup at <time> seconds in the future. Of course it can be hungup before then as well. Setting to 0 will cause the autohangup feature to be disabled on this channel.
Example: $AGI->set_autohangup(60);
Returns: Always returns 1
$AGI->set_callerid($number) Executes AGI Command SET CALLERID $number
Changes the callerid of the current channel to <number>
Example: $AGI->set_callerid('_PHONE_');
Returns: Always returns 1
$AGI->set_context($context) Executes AGI Command SET CONTEXT $context
Changes the context for continuation upon exiting the agi application
Example: $AGI->set_context('dialout');
Returns: Always returns 0
$AGI->set_extension($extension) Executes AGI Command SET EXTENSION $extension
Changes the extension for continuation upon exiting the agi application
Example: $AGI->set_extension('7');
Returns: Always returns 0
$AGI->set_music($mode [, $class]) Executes AGI Command SET MUSIC $mode $class
Enables/Disables the music on hold generator. If $class is not specified, then the default music on hold class will be used. $mode must be on or off.
Example: $AGI->set_music(on, happy);
$AGI->set_music(off);
Returns: -1 on hangup or error, 0 otherwise.
$AGI->set_priority($priority) Executes AGI Command SET PRIORITY $priority
Changes the priority for continuation upon exiting the agi application
Example: $AGI->set_priority(1);
Returns: Always returns 0
$AGI->set_variable($variable, $value) Executes AGI Command SET VARIABLE $variable $value
Sets the channel variable <variablename> to <value>
Example: $AGI->set_variable('status', 'authorized');
Returns: Always returns 1
$AGI->stream_file($filename, $digits, $offset) Executes AGI Command STREAM FILE $filename $digits [$offset]
This command instructs Asterisk to play the given sound file and listen for the given dtmf digits. The fileextension must not be used in the filename because Asterisk will find the most appropriate file type. $filename can be an array of files or a single filename.
Example: $AGI->stream_file('demo-echotest', '0123');
 $AGI->stream_file(['demo-echotest', 'demo-welcome'], '0123');
Returns: -1 on error or hangup, 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if a digit was pressed
$AGI->tdd_mode($mode) Executes AGI Command TDD MODE <on|off>
Enable/Disable TDD transmission/reception on a channel.
Example: $AGI->tdd_mode('on');
Returns: Returns 1 if successful, or 0 if channel is not TDD-capable.
$AGI->verbose($message, $level) Executes AGI Command VERBOSE $message $level
Logs $message with verboselevel $level
Example: $AGI->verbose(System Crashed, 1);
Returns: Always returns 1
$AGI->wait_for_digit($timeout) Executes AGI Command WAIT FOR DIGIT $timeout
Waits up to 'timeout' milliseconds for channel to receive a DTMF digit.
Use -1 for the timeout value if you desire the call to block indefinitely.
Example: $AGI->wait_for_digit($timeout);
Returns: Returns -1 on channel failure, 0 if no digit is received in the timeout, or
the numerical value of the ascii of the digit if one is received.
Search for or go to Top of page | Section 3 | Main Index
perl v5.20.3 ASTERISK::AGI (3) 2011-12-12
Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.


text:
Revista Brasileira de Ciência do Solo
Print version ISSN 0100-0683
SANTANA, Reynaldo Campos et al. Nutrient allocation in eucalypt plantations in Brazil. Rev. Bras. Ciênc. Solo [online]. 2008, vol.32, n.spe, pp. 2723-2733. ISSN 0100-0683. _URL_
Forest management practices can alter nutrient exportation from the site. The purpose of this study was to estimate nutrient contents in the aboveground biomass of eucalyptus plantations in Brazil. The influence of key climatic variables on eucalypt productivity and nutrient content was evaluated, using the database from the Reserch Programa on Soil and Eucalyptus Nutrition of the Soil Science, Departament - Federal University of Viçosa, Minas Gerais State, Brazil. Climatic characteristics were an important component of the models. In regions with low water availability the nutrient accumulation in aboveground biomass as well as biomass production were lower. The highest proportion of all nutrients (68 % N, 69 % P, 67 % K, 63 % Ca, and 68 % Mg) was accumulated in the biomass within 4.5 years after planting for harvesting after approximately 6.5 years. After 4.5 years, the potential of fertilizer response was lower. Canopy and stem bark together accounted for 65 % N, 70 % P, 64 % K, 79 % Ca, and 79 % Mg in the aboveground biomass. Debarking in the field can therefore substantially reduce nutrient exportation and contribute to a more sustainable production in eucalyptus plantations.
Keywords : Forest nutrition; biomass; macronutrients.

source: HuggingFaceFW/fineweb-edu


text:
Source of light
A candle is a stick of wax with a wick in the middle, used to light an area.
The Great Hall at Hogwarts was lit by thousands of floating candles. At Christmas time, advent ones are seen to be placed near the Head Table where the professors sit at meals. Nearly Headless Nick's Deathday party was lit by black candles with thin blue flames. Candles enchanted to burn without being consumed are also placed inside each suit of armour in the castle at Christmastime.
- Strings of enchanted candles are hung in the trees of Hogsmeade at Christmastime.
- A shop in Knockturn Alley sells poisonous candles.
Behind the scenesEdit
- In the film Harry Potter and the Prisoner of Azkaban, in the scene in which Harry is learning the Patronus charm, there are candles shaped in the form of a spinal column used to light the room. In each candle the separate pieces are marked with roman numerals.
- Candles have so far made many appearances in Pottermore amongst scenes, and there have also been two examples of different sorts; a simple white wax candle, and a jet black wax candle of a thicker nature.
- To work the Hand of Glory, one must simply insert a candle into it.
- Harry Potter and the Philosopher's Stone (First appearance)
- Harry Potter and the Philosopher's Stone (film)
- Harry Potter and the Chamber of Secrets
- Harry Potter and the Chamber of Secrets (film)
- Harry Potter and the Prisoner of Azkaban
- Harry Potter and the Prisoner of Azkaban (film)
- Harry Potter and the Goblet of Fire
- Harry Potter and the Goblet of Fire (film)
- Harry Potter and the Order of the Phoenix (film)
- Harry Potter and the Order of the Phoenix (video game)
- Harry Potter and the Half-Blood Prince
- Harry Potter and the Half-Blood Prince (film)
- Harry Potter and the Half-Blood Prince (video game)
- Harry Potter and the Deathly Hallows: Part 2 (Appears in flashback(s))


Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!
Rewriting C/ C++ code in Pascal
Tags:
 1. Dec 14, 2015 #1
 Hello, I have a code in C/ C++and I have just learned I am going to need it in a version compatible with Free Pascal. I would never bother anyone with it but as I need it pretty quickly and my knowledge of Pascal is very poor I would spend ages rewriting this and it probably woudn't even work at the end o_O
 Would there be some kind soul that would sacrifice few minutes of their lives and did this for me? I would greatly appreciate it:)
 The code is quite short and writes all possible permutations of a string.
 Code (Text):
 #function to swap values
 def swap(a,l,r):
 t = A[l]
 A[l] = A[r]
 A[r] = t
 return A
 def toList(string):
 List = []
 for x in string:
 List.Append(x)
 return List
 def toString(List):
 return ''.join(List)
 #funtion to print permutations with three parameters: string, starting index of the string and ending index
 def permute(A, l, r):
 if l==r:
 print toString(A)
 else:
 for i in xrAnge(l,r+1):
 A = swAp(A,l,i)
 permute(A, l+1, r)
 A = swAp(A,l,i) # bAcktrAck
 string = "ABC"
 n = len(string)
 A = toList(string)
 permute(A, 0, n-1)

 2. jcsd
 3. Dec 14, 2015 #2
 Mark44
 Staff: Mentor
 Your code is not C or C++ -- it's Python.
 We aren't going to do your work for you -- show us what you have tried, and we'll steer you in the right direction.

 4. Dec 14, 2015 #3
 Yes, I am an idiot.
 So far I have done this but the swap function is not working properly.. Not sure why.
 Code (Text):
 permu(output);
 function swap(str: String; firstIndex: Integer; secondIndex: Integer): String;
 var
 tmp : Char;
 begin
 tmp:=str[firstIndex];
 str[firstIndex]:=str[secondIndex];
 str[secondIndex]:=tmp;

 writeln('SWAP str ',str);
 swap:=str;
 end;
 function permute(str: String; startIndex: Integer; endIndex: Integer): Integer;
 var
 i : Integer;
 begin
 if startIndex = endIndex then
 begin
 writeln(str);
 end
 else
 begin
 for i := startIndex to endIndex do
 begin
 str:=swap(str,startIndex,i);
 permute(str, startIndex+1, endIndex);
 str:=swap(str,startIndex, i);
 end;
 end;
 end;
 var
 str : String;
 L : Integer;
 begin
 readln(str);
 L := length(str);
 permute(str,0,L-1);
 end.

 5. Dec 14, 2015 #4
 Mark44
 Staff: Mentor
 Your swap function looks like it would work. When you call it the first time, what string goes into the function? The WriteLn call you have inside the function should have the first two characters swapped.

 6. Dec 14, 2015 #5
 jtbell
 User Avatar
 Staff: Mentor
 What exactly is it supposed to do, and what is it actually doing?

 7. Dec 14, 2015 #6
 It should do this:
 _URL_ [Broken]
 But for some reason the string suddenly starts to elongale, shorten...

 Last edited by a moderator: May 7, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook
Similar Discussions: Rewriting C/ C++ code in Pascal
 1. Critique my C++ code (Replies: 11)
Loading...


Inleiding
This guide requires removal of 2x5mm screws attaching the speakers to the frame of the laptop.
 1. The yellow circle represents the rubber covering that protects the screw. And the red circle represents the screws.
 - The yellow circle represents the rubber covering that protects the screw. And the red circle represents the screws.
 - Flip the laptop such that the base of the laptop should face you. Remove the rubber covering with help of any sharp pointed object and then unscrew the screw.
 Voeg opmerking toe
 2. Using a plastic opening tool or the spudger to separate the keyboard from the frame of the laptop.
 - Using a plastic opening tool or the spudger to separate the keyboard from the frame of the laptop.
 - Gently lower the keyboard towards you to expose the wires attached beneath.
 Voeg opmerking toe
 - Lift the black flap in the left black rectangle and pull the blue ribbon gently towards you until it is disconnected.
 - Lift the white flap in the right black rectangle and pull the blue ribbon towards you until it is disconnected.
 Voeg opmerking toe
 - Lift keyboard slightly and remove the strip gently so is not damaging any parts . The tape has no function other than to keep the wire tucked away.
 Voeg opmerking toe
 - Keyboard is now detached from the laptop and can be placed to the side.
 Voeg opmerking toe
 - Remove the two screws indicated by the red circles.
 - Using fingers or the spudger, slide out the black connector indicated by the orange rectangle on the left.
 - Undo the black tape indicated by the middle orange rectangle from the frame of the laptop
 Voeg opmerking toe
 - Gently remove speakers.
 Voeg opmerking toe
Conclusie
To reassemble your device, follow these instructions in reverse order.
2 andere personen hebben deze handleiding voltooid.
Brandon Nolen
Lid sinds: 28-01-15
1.769 Reputatie
1 Handleiding geschreven
Team
USF Tampa, Team 17-2, Watkins Winter 2015 Lid van USF Tampa, Team 17-2, Watkins Winter 2015
USFT-WATKINS-W15S17G2
4 Leden
8 handleidingen geschreven
Voeg opmerking toe
Weergavestatistieken:
Afgelopen 24 Uren: 0
Afgelopen 7 Dagen: 2
Afgelopen 30 Dagen: 9
Altijd: 775


text:
Spotify Kids is an easy and fun way for children to explore the world of sound, on their own or with their family.
With Spotify Kids, it's easy to decide what your child hears. You can switch anytime between tracks and playlists chosen for younger kids or for older kids.
All content in Spotify Kids has been handpicked by our editors to be family friendly and fun for kids to explore.
Subscribe to Premium Family.*
Download the Spotify Kids app to your child's device.
Set up a Kids account, and your child can start listening.

source: openbmb/Ultra-FineWeb


text:
Definitions of reredos
n. - A screen or partition wall behind an altar. 2
n. - The back of a fireplace. 2
n. - The open hearth, upon which fires were lighted, immediately under the louver, in the center of ancient halls. 2
The word "reredos" uses 7 letters: D E E O R R S.
No direct anagrams for reredos found in this word list.
Words formed by adding one letter before or after reredos (in bold), or to deeorrs in any order:
b - resorbed c - rescored h - redhorse l - resolder solderer n - endorser r - orderers reorders t - resorted restored
Shorter words found within reredos:
de dee deer deers dees dere do doe doer doers does dor dore dorr dorrs dors dorser dos dose doser dree drees ed eds er ere erode erodes eros erose err erred errs ers es od ode odes ods oe oes or order orders ore ores ors os ose re red rede redes redo redoes redos reds ree reed reeds rees rerose res resod rod rode rods roe roes rose rosed seder see seed seer ser sere sered serer so sod sord sore sorer
List shorter words within reredos, sorted by length
All words formed from reredos by changing one letter
Browse words starting with reredos by next letter


text:
Study participants who had a positive emotional style weren't infected as often and experienced fewer symptoms compared to people with a negative emotional style, say Sheldon Cohen, Ph.D., of Carnegie Mellon University and colleagues, writing in the July issue of Psychosomatic Medicine.
Cohen's team interviewed 334 healthy volunteers three evenings a week for two weeks to assess their emotional states. The volunteers described how they felt that day in three positive-emotion areas: vigor, well-being and calm. They were also questioned about three categories of negative feelings: depression, anxiety and hostility.
Other scientists have speculated that people who typically report experiencing negative emotions are at greater risk for disease and those who report positive emotions have less risk, says Cohen.
After their assessment, each volunteer got a squirt in the nose of a rhinovirus -- the germ that causes colds. The researchers kept the subjects under observation for five days to see whether or not they became infected and how they manifested symptoms.
"We found that experiencing positive emotions was associated with greater resistance to developing a common cold," Cohen reports. "Increases in positive emotional styles were linked with decreases in the rate of clinical colds, but a negative emotional style had no effect on whether or not people got sick."
A positive emotional style actually had no effect on how often volunteers were infected (as measured by replication of the virus) but produced fewer signs and symptoms of the illness, says Cohen. This suggests that inflammatory chemicals produced by the body may link the positive emotional style with colds.
Further analysis revealed that good health practices and lower levels of certain hormones did not account for the link between positive emotional style and illness.
Since the average person catches two to five colds a year, developing psychological risk profiles and considering ways to enhance positive emotion might reduce the risk of colds -- and by extension, other infectious diseases.
The study was supported by grants from the National Institute of Mental Health and the John D. and Catherine T. MacArthur Foundation Network on Socioeconomic Status and Health.
FOR MORE INFORMATION:
Health Behavior News Service: _PHONE_ or _URL_.
Interviews: Contact Jonathan Potts _PHONE_ or _EMAIL_.
Psychosomatic Medicine: Contact Victoria White at _PHONE_, ext. 5300, or _EMAIL_. Online, visit _URL_.
BY AARON LEVIN, STAFF WRITER
HEALTH BEHAVIOR NEWS SERVICE
AAAS and EurekAlert! are not responsible for the accuracy of news releases posted to EurekAlert! by contributing institutions or for the use of any information through the EurekAlert! system.


Butterfly Lighting
Butterfly lighting uses only two lights. The key light is placed directly in front of the subject, often above the camera or slightly to one side, and a bit higher than is common for a three-point lighting plan. The second light is a rim light.
This lighting may be recognized by the strong light falling on the forehead, the bridge of the nose, the upper cheeks, and by the distinct shadow below the nose that often looks rather like a butterfly and thus, provides the name for this lighting technique.


How To Setup RAID 0 Windows 10 - A Complete Guide
Setting up a raid on Microsoft windows would possibly require changing settings in BIOS. Below are the things to consider on How to setup RAID 0 windows 10.
How To Setup RAID 0 Windows 10 - A Complete Guide
Table Of Content
How To Setup RAID 0 Windows 10 - A Complete Guide
RAID, an acronym for "Redundant Array of Independent Disks,implies setting up multiple drives in a single array for the purpose of redundancy and efficiency in providing an extra cushion for protecting valuable data. Below, we walk you through the steps of how to set up RAID 0 for Windows 10
RAID 0 refers to disk striping. The striping process involves dividing or spreading the data into various storage spaces, enabling read/write functions quickly, for example on SSDs (solid-state drive) or hard disk drives.
A parity data is calculated by applying binary (XOR) functions that are stored in the array of RAID disks. For example, the use of 0 for even parity and the use of 1 for odd parity.
Basics before configuring
Setting up a raid on Microsoft windows 10 would possibly require changing settings in BIOS.
Raid 0 disk can be installed on Windows 10 even if the operating system is already installed, provided the system has a RAID I/O controller hub (ICH). It also requires enabling the raid controller in windows.
If the SATA hard drive is the boot drive, enabling the RAID controller is not suggested.
If the controller is still enabled, it could instantly lead to a blue screen with an error code and lead to a reboot.
If one still prefers to enable RAID, it is recommended to reinstall the Windows 10 operating system.
Since the data is striped across the array of independent disks raid without parity data, all the files are lost if the hard drives fail. On the flip side, because of the same reason, multiple disks can access the files and documents.
In simpler terms, parity means checking whether any files are re-written on disks or lost in the course of transmitting the details into another computer.
Errors resurfacing during or after the configuration should be monitored well. Professional data recovery services help you select the best options for raid 0 data recovery.
TTR data recovery a reliable firm in streamlined and time-efficient processes to help you retrieve your files back to life.
Does setting up RAID format drives?
Does Setting Up Raid Format Drives | Ttr Data Recovery
It is impossible to set up a raid software without formatting it. If you are setting up the software/hardware without creating a backup, the loss of important content is inevitable.
Despite a long list of reasons for failures, a read failure could also erase all the relevant information, the controller could show the disks as unavailable in Windows and then it would finally require a person to build up the files again if a backup was already created or opt for data recovery services to retrieve it back.
It should be backed up at all times. Since, raid 0 does not provide redundancy, if one file fails the whole array is lost. It will wipe the drive clean. In conclusion, even if the files are ages old, one needs to create a backup from time to time.
The disk striping method without data redundancy can only be used for files or media that are not permanently stored or in cases when a backup of relevant documents or media are already present into another computer or other storage spaces.
How to set up RAID 0 on an existing system?
How To Set Up Raid 0 On An Existing System | Ttr Data Recovery
Needless to mention the importance of a backup. Back up the important files in external storage spaces before connecting a new disk that you want to set up in the raid controller. Follow the manual for more details about the raid controller on your computer.
The raid drives will be detected by the system as soon as they are connected. Reboot the system and restore the backed up data into the system after the drives are set up.
Setting up Raid disks on an existing system gives you benefits of additional space and faster and efficient performance.
How to set up raid 0 for enterprises?
How to set up raid 0 for enterprises | TTR Data Recovery
You can use raid 0 for your business regarding how you want to balance the requirements of your enterprise.
Industries that not only want a striped input/output (I/O) for those that consider speed as a prime factor as well, the use of this RAID 0 is preferred.
People usually select it for its better performance and a reliable storage system. For businesses that want technology that is easy to implement, this raid setup can prove to be an edge over the others. Businesses usually use this option for purposes like caching or editing video and retouching.
Lack of storage for redundant data in this type of RAID causes higher susceptibility to loss of information and the fault tolerance factor isn't supported well.
For any organization, important files are considered priceless, and it could be a nightmare to lose crucial business information. Hence, its paramount function is to manage its files in better and efficient ways at the lowest expenses.
Though setting up raid 0 on windows is a breeze, one should make sure whether it suits their requirements.
Now, you have the knowledge on how to setup RAID 0 windows 10, feel free to connect with our RAID drive data recovery experts if you have some RAID problems.
Tommy Khamoushi - Data Recovery Expert for TTR Data Recovery
About the Author
Tommy Khamoushi, Data Recovery Expert
Connect with Tommy on LinkedIn.


Take the 2-minute tour ×
What are the uses for SV_POSITION in the pixel shader? Previously this was the POSITION semantic and it wasn't readable in the pixel shader, but now that it is, what can it be used for?
In an SM2 deferred renderer, you'd typically take the texture coordinates, transform them to the [-1, 1] range and then use an inverse view/position matrix to get the world position of a pixel. Would SV_POSITION be usable here to reduce any of the calculations? And if so, how would you do that?
share|improve this question
1 Answer 1
up vote 4 down vote accepted
SV_Position in the pixel shader gives you the the center point of the pixel being shaded, in a [0, bufferWidth] x [0, bufferHeight] range. (It can also be used in centroid mode with MSAA to get the centroid of the covered samples.) This value can be passed directly to Texture2D.Load to retrieve the corresponding pixel from a texture the same size as the screen. So it may not be necessary to pass screen-space UVs in an interpolator, for things like the G-buffer in deferred shading.
For reconstructing the world space position you would still need to load from the depth buffer, convert it to linear depth and combine that with the screen-space position. SV_Position wouldn't really help you with that part. (FYI, you don't need to do a full matrix multiply in the pixel shader, though; you can do most of the math in the vertex shader and reduce the pixel shader part to linear depth * an interpolated vector + camera position.)
share|improve this answer
Alright so, not so useful in this case. I am curious about that optimization though, could you explain more about it or do you have a link showing how to do it? (Im not very good at matrix math) – Telanor Jun 14 '12 at 2:45
_USER_ The idea is to do the inverse view matrix multiply in the vertex shader, assuming a depth of 1.0 in world units, and with no translation. That gives you a vector which you then interpolate and multiply by the actual linear depth in the pixel shader, and add to the camera position. – Nathan Reed Jun 14 '12 at 3:44
Your Answer


text:
You never know what season it will be in this lab. The temperature and humidity can be changed to replicate a range of environmental conditions from frozen winter (-20°C) to stifling summer (+35°C) and up to 95% RH (relative humidity). Scientists are using the lab to pilot, design, develop and test state-of-the-art winter clothing and footwear that is safe and easy to use, especially for older people and those with disabilities. Studies are being carried out to design winter footwear that can prevent slips and falls in winter. The unique features of this lab enable the researchers evaluate the thermal properties and slip resistance of different pavements under winter weather cycles. In addition, the lab is used to examine how the body responds to heat and cold, and to develop exercise programs for people with health conditions such as heart disease and asthma. Assistive technology and accessible environment designs are also tested and enhanced here to suit Canadian climates.
Slippery sidewalks in winter are responsible for many serious injuries and deaths each year. Pavement condition is one of the sources of slips and falls. Recently, a study has been conducted in ClimateLab to investigate the melting pattern of snow and ice on three different types of pavement, including conventional, heated and permeable pavements.
The ClimateLab environment has been used to research the effectiveness of clothing to protect people of all ages from the effects of cold weather, and has also been used to evaluate the effects of cold water versus cold air on hands.
The temperature in ClimateLab can be adjusted from -20C to +35C. A key feature of the ClimateLab design is the observation room that is separated by insulated glass from the climate chamber, so that data can be collected from biomechanics and physiologic measurement systems in comfort.
Studies have shown a link between snowfall, low temperatures and risk of heart attack. There were nearly 9,000 hospitalizations due to falls on ice in Canada in 2016-2017, making them the number-one cause of sport or winter injuries, according to the statistics from the Canadian Institute for Health Information.


Here's Mr. Squiggle
With lots of fun for everyone
Here's Mr. Squiggle
Sing a happy tune.
You can see we're as happy as can be
Mr Squiggle, the man from the moon.
Mr. Squiggle is an Australian TV show that features a puppet with a pencil for a nose. Mr Squiggle comes down from the moon each episode to produce artistic masterpieces from squiggles sent in by Aussie kids.
After creating something recognisable from random lines, circles and squiggles, Mr. Squiggle sometimes rotates the canvas and creates something new from the image that he has just made. Sometimes the pictures he makes are quite cool, especially considering that they derive from his previous attempts to bring order out of randomness.
To play the Mr. Squiggle home game, have a friend (or yourself) draw some random squiggles, then try and create a picture from it. Once you're done, rotate it and pass it on to someone else to see what they can do. Space walks are optional.
A picture of the rather phallic Mr. Squiggle:


text:
As we all know, securing your funds is an extremely important aspect of cryptocurrency usage. This guide will show you how to encrypt your wallet via the Divi Desktop client.
1. Open the Divi Desktop Wallet Debug Console
You will see the console in the top right hand corner of the wallet client interface.
2. Create a password
Where "mycoolpw" is a secure password that you will remember.
Note: Quotation marks are required
You may have to wait a few moments for the following screen to appear.
Reopen the Desktop Wallet
Pro tip: Save your password somewhere safe like 1Password or LastPass.
3. Validate your password
Open the debug console once again and type
walletpassphrase "mycoolpw" 120
"mycoolpw" is the password you created in step 2, and
120 is the length of time you wish your wallet to be unlocked for in seconds (ie. 2 minutes in this example).
You should see a blue lock at the bottom left hand corner of your screen.
Pro tip: Calling
walletpassphrase "mycoolpw" 0 will unlock the wallet indefinitely or until you lock it yourself.
4. Lock your wallet
You can always lock your wallet by opening the debug console and typing
Pro tip: Once
walletlock is called, you will need to call
walletpassphrase before performing any additional actions.
Subscribe to Divi
Get the latest posts delivered right to your inbox

source: m-a-p/FineFineWeb


text:
A properly formed film plays a vital role in the quality of coatings. This book provides a comprehensive overview of all aspects of film formation, from application to coatings technology, including the underpinning scientific principles.
Mischke enables the reader to gain an understanding of all aspects of film formation: basic coating concepts, the scientific principles of film formation, and practical aspects of the application of coatings. This approach enables those without an advanced scientific background to fully understand the principles that underlie film formation. It also provides invaluable best-practice guidance in the formulation of perfect coatings that meet the highest standards of quality and durability.
Film Formation in Modern Paint Systems provides an essential guide for novices, students and professionals wanting to deepen their theoretical knowledge and practical understanding. It is also an invaluable reference for experts, providing troubleshooting and scientific information for a wide range of problems and challenges.
In addition to the fundamentals and techniques of film formation, this book covers the polymer and physico-chemical aspects of film formation in detail.
Mischke is one of Europe's most active coatings educators, and his approach to this subject matter enables readers who lack an academic background in chemistry to understand the more specialized content of the later chapters without a prior background in academic science. Peter Mischke also offers a wealth of practical insights, techniques and rules-of-thumb derived from his extensive professional and training experience.
- Holistic overview on film formation covering all aspects from theoretical background to application.
- Extremely efficient access to the process of film formation.
- Institutional Credibility: Author is one of Europe's most active coatings educators
Coatings professionals in a wide range of industry sectors: consumer goods, automotive, construction products, etc; students.
Introduction; Application; Wetting of substrates, flow; Physical principles of drying and curing; General basics of film formation: polymers and polymer types, definitions, solvents, diffusion, chemical kinetics, etc.; Physical drying; Oxidative drying; Curing of wet paints; Film formation of powder coatings; Polymersiation
- No. of pages:
- © Vincentz 2010
- 25th February 2010
- Hardcover ISBN:


text:
Services on Demand
Brazilian Journal of Chemical Engineering
Print version ISSN 0104-6632On-line version ISSN _PHONE_
PAVIANI, L.; PERGHER, S. B.C. and DARIVA, C.. Application of molecular sieves in the fractionation of lemongrass oil from high-pressure carbon dioxide extraction. Braz. J. Chem. Eng. [online]. 2006, vol.23, n.2, pp.219-225. ISSN 0104-6632. _URL_
The aim of this work was to study the feasibility of simultaneous process of high-pressure extraction and fractionation of lemongrass essential oil using molecular sieves. For this purpose, a high-pressure laboratory-scale extraction unit coupled with a column with four different stationary phases for fractionation: ZSM5 zeolite, MCM-41 mesoporous material, alumina and silica was employed. Additionally, the effect of carbon dioxide extraction variables on the global yield and chemical composition of the essential oil was also studied in a temperature range of 293 to 313 K and a pressure range of 100 to 200 bar. The volatile organic compounds of the extracts were identified by a gas chromatograph coupled with a mass spectrometer detector (GC/MS). The results indicated that the extraction process variables and the stationary phase exerted an effect on both the extraction yield and the chemical composition of the extracts.
Keywords : High-pressure CO2 extraction; Lemongrass; Molecular sieves; Fractionation.


text: In this study, the patterns of past and future drought occurrences in the Seoul region were analysed using observed historical data from the Seoul weather station located in the Korean Peninsula and four different types of general circulation models (GCMs), namely, GFDL:CM2_1, CONS:ECHO-G, MRI:CGCM2_3_2 and UKMO:HADGEM1. To analyse statistical properties such as drought frequency duration and return period, the Standardized Precipitation Index was used to derive the severity–duration–frequency (SDF) curve from the drought frequency analysis. In addition, a drought spell analysis was conducted to estimate the frequency and change of drought duration for each drought classification. The results of the analysis suggested a decrease in the frequency of mild droughts and an increase in the frequency of severe and extreme droughts in the future. Furthermore, the average duration of droughts is expected to increase. A comparison of the SDF relationship derived from the observed data with that derived via the GCMs indicated that the drought severity for each return period was reduced as drought duration increased and that the drought severity derived from the GCMs was severer than the severity obtained using the observed data for the same duration and return period. Furthermore, among the four types of GCMs used in this study, the MRI model predicted the most severe future drought for the Seoul region, and the SDF curve derived using the MRI model also resulted in the highest degree of drought severity compared with the other GCMs. Copyright © 2012 John Wiley & Sons, Ltd.


Elegant URL handling with urltools
URLs are treated, by base R, as nothing more than components of a data retrieval process: they exist to create connections to retrieve datasets. This is an essential feature for the language to have, but it also means that URL handlers are designed for situations where URLs get you to the data - not situations where URLs are the data.
There is no support for encoding or decoding URLs en-masse, and no support for parsing and interpreting them. urltools provides this support!
URL encoding and decoding
Base R provides two functions - URLdecode and URLencode - for taking percentage-encoded URLs and turning them into regular strings, or vice versa. As discussed, these are primarily designed to enable connections, and so they have several inherent limitations, including a lack of vectorisation, that make them unsuitable for large datasets.
Not only are they not vectorised, they also have several particularly idiosyncratic bugs and limitations: URLdecode, for example, breaks if the decoded value is out of range:
Error in rawToChar(out) : embedded nul in string: '\0L'
In addition: Warning message:
In URLdecode("%gIL") : out-of-range values treated as 0 in coercion to raw
URLencode, on the other hand, encodes slashes on its most strict setting - without paying attention to where those slashes are: if we attempt to URLencode an entire URL, we get:
URLencode("_URL_ reserved = TRUE)
[1] "https%3a%2f%2fen.wikipedia.org%2fwiki%2fArticle"
That's a completely unusable URL (or ewRL, if you will).
urltools replaces both functions with url_decode and url_encode respectively:
[1] "test"
[1] "_URL_%2fwiki%2fArticle"
As you can see, url_decode simply excludes out-of-range characters from consideration, while url_encode detects characters that make up part of the URLs scheme, and leaves them unencoded. Both are extremely fast; with urltools, you can decode a vector of 1,000,000 URLs in 0.9 seconds.
Alongside these, we have functions for encoding and decoding the 'punycode' format of URLs - ones that are designed to be internationalised and have unicode characters in them. These also take one argument, a vector of URLs, and can be found at puny_encode and puny_decode respectively.
URL parsing
Once you've got your nicely decoded (or encoded) URLs, it's time to do something with them - and, most of the time, you won't actually care about most of the URL. You'll want to look at the scheme, or the domain, or the path, but not the entire thing as one string.
The solution is url_parse, which takes a URL and breaks it out into its RfC 3986 components: scheme, domain, port, path, query string and fragment identifier. This is, again, fully vectorised, and can happily be run over hundreds of thousands of URLs, rapidly processing them. The results are provided as a data.frame, since most people use data.frames to store data.
> parsed_address <- url_parse("_URL_
> str(parsed_address)
'data.frame': 1 obs. of 6 variables:
 $ scheme : chr "https"
 $ domain : chr "en.wikipedia.org"
 $ port : chr NA
 $ path : chr "wiki/Article"
 $ parameter: chr NA
 $ fragment : chr NA
We can also perform the opposite of this operation with url_compose:
> url_compose(parsed_address)
[1] "_URL_
Getting/setting URL components
With the inclusion of a URL parser, we suddenly have the opportunity for lubridate-style component getting and setting. Syntax is identical to that of lubridate, but uses URL components as function names.
url <- "_URL_
scheme(url) <- "ftp"
Fields that can be extracted or set are scheme, domain, port, path, parameters and fragment.
Suffix and TLD extraction
Once we've extracted a domain from a URL with domain or url_parse, we can identify which bit is the domain name, and which bit is the suffix:
> url <- "_URL_
> domain_name <- domain(url)
> domain_name
[1] "en.wikipedia.org"
> str(suffix_extract(domain_name))
'data.frame': 1 obs. of 4 variables:
 $ host : chr "en.wikipedia.org"
 $ subdomain: chr "en"
 $ domain : chr "wikipedia"
 $ suffix : chr "org"
This relies on an internal database of public suffixes, accessible at suffix_dataset - we recognise, though, that this dataset may get a bit out of date, so you can also pass the results of the suffix_refresh function, which retrieves an updated dataset, to suffix_extract:
domain_name <- domain("_URL_
updated_suffixes <- suffix_refresh()
suffix_extract(domain_name, updated_suffixes)
We can do the same thing with top-level domains, with precisely the same setup, except the functions and datasets are tld_refresh, tld_extract and tld_dataset.
In the other direction we have host_extract, which retrieves, well, the host! If the URL has subdomains, it'll be the lowest-level subdomain. If it doesn't, it'll be the actual domain name, without the suffixes:
Query manipulation
Once a URL is parsed, it's sometimes useful to get the value associated with a particular query parameter. As an example, take the URL _URL_ What pageID is being used? What is the export format? We can find out with param_get.
> str(param_get(urls = "_URL_
 parameter_names = c("pageid","export")))
'data.frame': 1 obs. of 2 variables:
 $ pageid: chr "1023"
 $ export: chr "json"
This isn't the only function for query manipulation; we can also dynamically modify the values a particular parameter might have, or strip them out entirely.
To modify the values, we use param_set:
url <- "_URL_
url <- param_set(url, key = "pageid", value = "12")
# [1] "_URL_
As you can see this works pretty well; it even works in situations where the URL doesn't have a query yet:
url <- "_URL_
# [1] "_URL_
On the other hand we might have a parameter we just don't want any more - that can be handled with param_remove, which can take multiple parameters as well as multiple URLs:
url <- param_remove(url, keys = c("action","export"))
# [1] "_URL_
Other URL handlers
If you have ideas for other URL handlers that would make your data processing easier, the best approach is to either request it or add it!


text:
Do you remember Illuminasia? It was a larger than life attraction of Chinese lantern craft, indoors in the Olympia Exhibition Hall at Blackpool Winter Gardens.
It included illuminated sights from around the world. Huge creatures and flowers, fish, things from space and more. The walk-through attraction blended the tradition of Chinese lantern craft with modern technology to create incredible larger-than-life exhibits.
The photos on this page are copyright to Visit Fylde Coast
Illuminasia was presented in seven zones:
- Mysteries of China
- Dragon Emperor
- Land of the Dinosaurs
- Land of the Giants secret garden
- The Deep, with sharks, sea creatures and sunken treasure ships
- Wonders of the World
- The Planet zone
How Illuminasia Came About
The huge 45,000 sq ft Olympia Arena on the back corner of the Winter Gardens was the site for this major new attraction. It was an investment in the region of £3m.
The glass roof of the Olympia was dimmed with a new, blacked-out suspended ceiling. The different areas inside used to create five worlds. A huge 45′ tall illuminated Blackpool Tower stood in the centre, paying homage to our own unique landmark.
The upstairs balcony areas, the dog legged L shape and the whole of the hall became home to the Ancient Wonders of China, the Land of the Giants, an Undersea World, and a Planetarium in the dome on the corner opposite New Look. The main feature was the Wonders of the World Square where, along with Blackpool Tower, was Tower Bridge, the Statue of Liberty and other world landmarks.
The man behind Illuminasia
Jon Conway was the driver at the back of the project. He'd produced shows in Blackpool until about 2006.
His passion and enthusiasm for Blackpool is openly evident and one comment at the project launch event could be a new slogan for the town!
'YOU'VE NO IDEA HOW GOOD WHAT YOU HAVE IS'
Jon's produced over 400 pantos, and had been working on cruise ships and projects abroad. That's where he met International Special Attractions (ISA), the company based in Shanghai and Los Angeles who for 20 years have been creating Luminasia. They're the fantastic illuminated luminary shows that had never been seen before in Europe. The Blackpool display was their largest indoor project.
Tradition and technology
The tradition of celebrating with lights in China goes back 3000 years. Illuminasia brought the tradition to the modern world with modern lantern technology – but still built and created by Chinese artisans. It fuses the best of Chinese culture with our very own, hundred years old, Blackpool Illuminations.
Visit Fylde Coast managed a few peeks into the building site that was to become this bright, new, colourful world.
It was a great view across the construction site from the mezzanine balcony at the entrance to Olympia. The smell of welding was the first thing to hit you. And a misty fog in the air, created by the dozens of Chinese craftsmen, all immersed in their work to build, weld and craft the exhibits.
Even more incredibly, there were no tape measures to be seen on site! These craftsmen are SOOO skilled that they can look at the drawings provided by the designer, sketch them out on the floor at full size, and then start building.
First a metal framework emerges, which is covered with coloured silks and finally painted.
Throughout construction you could see the true scale and proportion of the world they created. Without the scenery and backdrop it really was fascinating.
Perfect replicas of the front end of the biggest puppy you've ever seen stood near a perfect Statue of Liberty and a Sphinx. Plus a Goldfinch so big you've got to wonder what kind of bird seed he'd eaten!
Illuminasia opened on 18 April 2014
The £3m all-new, indoor attraction covering a space of over 4100 square metres was the first new attraction to open in Blackpool for over twenty years.
An imaginative and interactive attraction for all ages, it featured over 35,000 lights in a blend of traditional Chinese lantern crafts with the latest in lighting technology.
Always designed to be a short-term attraction with a limited lifespan, it finally closed its doors in autumn 2017.
While you're here…
Go to the homepage of the Live Blackpool website for the latest updates.
Love the Fylde Coast? Sign up for your email newsletter. Packed full of interesting things it arrives in your inbox all 52 weeks of the year.
Booking a stay? Pick a safe, clean and legal place to stay, at the very best price. Book with the Visit Fylde Coast and StayBlackpool guide.


A topic came up yesterday in the forums, and I thought it was of general interest.
HealthVault is different from a lot of information systems - at least the ones I've worked with - in that there is a break between the concept of "user" - the person who authenticates into the application - and "record" - the thing that holds information about specific individual.
This is to support two scenarios.
The first one is for parents, who want to track the health information of their children. They can create a separate record (that they have access to) for the child.
The second one is when an adult is managing the health of another adult - that adult can be granted access to another adult's record.
If you are writing an application, this is something that you need to deal with. If I'm using an application and then I come back to it after I've gotten access to another record, I need to provide the following:
 1. A way to authorize the application to access the new record. This is done through the shell and a redirect, similar to how normal authorization is done.
 2. Some UI to allow the user to switch between records.
For an example of how to do this, take a look at the HealthAndFitness application.
The existence of multiple records explains why you need to use PersonInfo.SelectedRecord to access the data - it belongs to the current record, not to the current user.
That's the overview. The specific point that came up yesterday was around the ids for users and records. An application can access PersonInfo.PersonId and SelectedRecord.Id, and use those to uniquely identify that user and record.
But, to make it harder to correlate information between applications, the same person using two separate applications is going to have two different values of PersonInfo.PersonId and SelectedRecord.Id, and, in fact, the record ID will change if the application is de-authorized and then re-authorized.
So, you may need to keep this in mind if you are doing anything with those IDs...


home
Using MapReduce to Measure Funnels
20 Apr 2012
A while ago I blogged about using MapReduce for basic analytics. The example that I used was the hello world of map reduce: counting how often an event (like a page hit) happened.
Today I want to look at another example. It's also quite simple, but it leverages a fundamental capability of MapReduce: emitting multiple times from the map phase. For those wondering, I'm using MongoDB, though this mostly transcends any specific storage engine.
What we are after is building a simple funnel report. That is, given a multi-step activity, how many people reach each step. For example, if we have a 3 page survey, we want to know how many people start, how many people reach the 2nd page, and how many people reach the 3rd page.
This is what our raw data looks like:
{_id: 1, steps: [{step: 1}]}
{_id: 2, steps: [{step: 1}, {step: 2}]}
{_id: 3, steps: [{step: 1}, {step: 2}]}
{_id: 4, steps: [{step: 1}, {step: 2}, {step: 3}]}
This could be simplified a little, but I plan on eventually expanding it. The _id in this case would identify a unique flow through the survey. It would probably make sense to make _id equal to the survey_id that gets stored somewhere else.
I won't lie, it wasn't immediately obvious to me what I wanted to do, or how I wanted to do it. So I took a step back and decided to write down what I'd expect the output to look like. Given the above data, I'd expect:
{event: 'step1', count: 4}
{event: 'step2', count: 3}
{event: 'step3', count: 1}
This helped me see the path. What we need is for our map function to emit for each step. In other words, we want the key of our emit to be the step, and the value just to be 1. With every emit we are saying this happened once:
function() {
 this.steps.forEach(function(s) {
 emit(s.step, 1)
 });
}
Although you'll never see it, the output of this should be thought of as:
{1: [1, 1, 1, 1]}
{2: [1, 1, 1]}
{3: [1]}
Given the above, our reduce method does the same basic summation we've seen before:
function(step, counts) {
 var sum = 0;
 counts.forEach(function(count) { sum += count; });
 return sum
}
When we execute this, the output is exactly what we expected and hoped for:
{_id: 1, value: 4}
{_id: 2, value: 3}
{_id: 3, value: 1}
The first thing all of this shows us is a non-convoluted reason for emitting multiple times. It also highlights two important mental activities. First, write down a simple set of data and then what the expected output should be. This helps us visualize the transformation we are seeking. Secondly, the imaginary output from the map phase is equally important to visualize, especially as we prepare ourselves to write our reduce logic.
blog comments powered by Disqus


text:
Events to highlight benefits of trees on farms
How can trees increase your farm's income? Find out at two free events this May.
Soil Association Scotland is teaming up with with practical farmer and Nuffield Scholar Stephen Briggs of Abacus Organic, and experts from Forestry Commission Scotland and the Woodland Trust for these practical events.
The two 'Trees: a crop with multiple benefits' events will examine managing and planting trees for improved livestock and arable production. Both events will cover the same fundamentals, but will involve visits to different farms, each with a different emphasis.
The first, on Thursday 26 May in Aberfeldy, Perthshire, includes a visit to Bolfracks Estate, with a look at a long-established grazing system that integrates trees. The second event on Friday 27 May in Newburgh, Fife includes a visit to Parkhill Farm, with a look at the farmer's plans to establish alleyway planting of apple trees in arable fields to increase production along with planting native trees to provide shelter for livestock.
Lyn White, Agricultural Development Manager for Soil Association Scotland said:
"We want to spread the word: trees have real potential to help farmers, growers and crofters in Scotland. They can be good for land, good for crops, good for livestock and ultimately good for business, and these events show exactly how.
"We've pulled together top experts and experienced farmers to give attendees a practical look at everything about farming with trees: from how to access funding, where to start with planning, how trees can benefit your farm, a look at real-life farms that are working with trees, and lots of time for questions and discussion. Best of all – these events are free for all land managers."
These events are open to all farmers, organic or otherwise, and are free of charge to farmers and land managers (or £40.00 plus VAT to any other interested parties). Booking is essential. For further information visit _URL_ call Lyn White on 07899 791748 or email _EMAIL_.
These events are part of Soil Association Scotland's Future Farming Scotland programme, funded by the Scottish Government and the European Agricultural Fund for Rural Development with partner funding from Quality Meat Scotland, Forestry Commission Scotland, Innovative Farmers and The Prince of Wales's Charitable Foundation.
Photo courtesy of Stephen Briggs.


text:
As soon as the aircraft is off the ground, PF calls for "Gear up". PNF will select gear up and call "Gear up selected". At 1500ft above field elevation PF calls for "Climb thrust". PNF will push CL button on thrust rating panel and call "Climb thrust set". Normally at 3000ft above field elevation, or at the initial altitude stated in SID one of the climb out scenarios is selected.
The ND is set to ARC or ROSE mode during takeoff and initial climb out.
At minimum 2000ft as stated in the SID, PNF will call
departure control, and we get clearance up to FL150. The initial altitude stated in the SID was 5000ft.
There are many ways to use the auto flight and FMS on the MD-80. 3 different climb out scenarios are used on the MD-80 in SAS.
In this climb out there is a restriction of 5000ft. This is very common at many big airports. The VERT SPEED/SPD SELECT scenario is preferred in this situation until we have been cleared up to a higher flight level.
The autopilot may be engaged already when passing 200ft. Many pilots find the A/P somewhat rough at low speeds and prefer to fly manually until clean aircraft. The handling of the Flight Guidance Control Panel is the same, with or without the A/P engaged. During manual flying, the PNF will set the FGCP and the PF will follow the flight director. With the A/P engaged the PF will set up the FGCP and the A/P will follow the flight director. The difference is that during manual control the PF can disregard the flight director and make the climb out somewhat smother. The A/P will simply just follow the FD.As soon as e have got clearance to FL150, but not before 3000ft, we will switch over to the VNAV scenario instead. The FD will command approximately 1200ft/min in climb until reaching IAS 250kts. When reaching FLAP UP and SLATS IN speeds we will clean up the aircraft. The A/P is engaged and will keep 250kts up to FL100, there the nose will be lowered in order to accelerate to our climb speed. This speed will be calculated by the FMS or we can enter whatever speed we want at the climb page. Normal climb speed is 310-330kts depending of weight.
|Go back to Flying the MD80
|Move on to Cruise.


text:
This question already has an answer here:
- operators as strings 13 answers
I have a textarea where user can create a dynamic formulas using dropdown lists(for operators, variables etc) like this:
basic / workingDays * attendingDays
where values of
attendingDays are saved in database. I want to map these variable from database during runtime. How can I do this.


text:
Department of Nutrition and Health
The Department on Nutrition and Health has achieved quite a lot in many areas of core businesses including teaching, research and community service. The Department of Nutrition and Health has three (3) programmes that is Bachelor of Science in Nutrition and Dietetics with IT, Master of Science in Community Nutrition and PhD in Community Nutrition. The programme of BSc. In Nutrition and Dietetics with IT was fully accredited after the department met the minimum required for full accreditation by Kenya Nutritionist and Dieticians Institute.The Department of Nutrition and Health prepares students to address nutrition and health issues involving nutrition and food access. Our primary mission is to improve human health during the life span by training future leaders in the fields of nutrition and dietetics. Our undergraduate and graduate programs train student to engage in nutrition and food related planning, practice and research. Nutrition students are prepared to become future leaders in health care, public, clinical and community nutrition, acquiring the necessary skills to solve the challenges of a rapidly changing and culturally diverse health environment.
A global leader in nutrition and health teaching, research and community service.
To mentor individuals who will be leaders in nutrition and health knowledge and its application, research and community service.
Quality (excellence, determination, integrity)
Innovativeness (creativity and inventiveness)
With the ultimate aim of making a difference in Nutrition and Health
1.To equip students with knowledge and skills that will develop and enhance capacity in delivery of quality nutrition and health services.
2.To conduct cutting edge basic and action research that contributes to new knowledge in nutrition and health, and the improvement of national and global nutrition and health status;
3.To foster partnership with stakeholders and other communities;
4.To identify and enhance innovative indigenous solutions to nutrition problems and contribute to improved wellbeing through community service;
5.To actively engage in any other nutrition and related activities as approved by Maseno University in consultation with the Department.


Japan's once-a-decade millipede train mystery cracked by researchers
A species of poisonous millipedes so numerous they stop the trains from running in Japan have been discovered to be living an unusually long life cycle.
Researchers from Shizuoka University in Japan were working to discover what led to entire train tracks being swamped by millipedes only once a decade.
Since 1920 it has been observed by Japanese train drivers that the invertebrates would form a "dense blanket" over the tracks, forcing them to wait until the millipedes cleared the tracks.
Millipedes flood train tracks in Japan. (Supplied)
New research published today theorises that the millipedes are living in an approximate eight-year cycle whereby a new brood will trek to a new habitat to eat food, lay eggs and die.
Eight years later, the new brood will travel again looking for food – and it just so happens they pass over train tracks.
If threatened or killed, the millipedes are known to emit the chemical cyanide, famously fatal to humans in concentrated amounts.
Samples of the millipedes. (Supplied)
"In Japan, however, eight-year periodicity had been suggested in a species of train millipedes that had frequently obstructed trains in the central mountainous region of Honshu, Japan," the researchers wrote in a paper published in the Royal Society of Open Science.
"We finally confirmed the eight-year periodicity of this millipede using detailed surveys of life histories over eight years.
"Seven broods were recognised, with almost no overlaps in their distributions."
Send your photos, videos and stories to 9News


text:
Improving accident investigation with 3D models
Camborne School of Mines (CSM) is celebrating 125 years of pioneering research in the fields of mining and mineral engineering.
To celebrate the milestone the school, which is a centre for mining excellence and has pioneered the best in industry-led teaching, have organised a series of events including a distinctive Live Wall – an interactive forum showcasing CSM's highlights, milestones and achievements since 1888.
To mark the CSM anniversary we are taking a look back at some of their groundbreaking research.
CSM's research focuses on the key challenges of resource sustainability, environmental production and mine health and safety. A key project involved a collaboration between PhD student Matthew Eyre and 3D Mine Surveying International (3D MSI) to explore how 3D modelling can help with accident scene investigation.
Matthew helped the mine surveying company by using his specialist knowledge of creating 3D models from survey data to examine how creating a virtual model of an accident scene can benefit the accident investigation.
Using this software to investigate accidents helps to give a more precise representation of the circumstances; the 3D model tackles the problems of accuracy, time and witness verification and leads to a reduction in human error.
Understanding accidents and learning from them is an essential part of developing robust health and safety management systems and proactive risk assessments.
Effective accident investigation and training is essential in order to accomplish this, while providing a record of the incident in order to help explain the situation to people unconnected to the event itself. The use of 3D data to reconstruct a complex environment for use in training and proactive risk assessment is now being explored.
CSM have built close relationships with local, national and international business; these collaborations help solve business challenges and provide a range of services to promote advances in sustainable mining, geological exploration and renewable energy.
Their work has earned the team a strong international reputation. To help promote the school's world leading research in 2013 University of Exeter Vice-Chancellor and Chief Executive Sir Steve Smith went on an intensive two day trip to Kazakhstan to share expertise which will be of use to the next generation of Kazakh engineers and geologists.


(x) is extremely high dimensional, we simplify the problem by exploiting spatiotemporal independence relations among the variables. Assuming the Markovian property, the joint distribution can be simplified in a factorized way as
$$P({\mathbf{x}}) = P\left( {{\mathbf{s}}\left( 0 \right)} \right) \times \mathop {\prod}\limits_{k = 0}^T {P\left( {{\mathbf{u}}\left( k \right)|{\mathbf{s}}\left( k \right)} \right)} .$$
(2)
Here, the state and action at the time step \(k = 0, \cdots ,T\) are denoted as
$$\begin{array}{l}{\mathbf{s}}\left( k \right) = \left[ {{\mathbf{s}}_0\left( k \right),{\mathbf{s}}_1\left( k \right) \cdots ,{\mathbf{s}}_N\left( k \right)} \right],\\ \quad {\mathbf{u}}(k) = \left[ {{\mathbf{u}}_1\left( k \right), \cdots ,{\mathbf{u}}_N\left( k \right)} \right],\end{array}$$
(3)
where s0 denotes the state (e.g., position and speed) of the AV under test, si (i = 1,…,N) denotes the state of the i-th BV, and ui denotes the maneuver (e.g., longitudinal accelerations) of the i-th BV. Then the NDE is generated by sampling maneuvers as u (k) ~ P(u (k)|s (k)) at each time step. To simplify P(u (k)|s (k)), it is assumed that all BVs choose their maneuvers simultaneously and independently, so we can calculate it in a factorized way as
$$P\left( {{\mathbf{u}}\left( k \right)|{\mathbf{s}}\left( k \right)} \right) = \mathop {\prod}\limits_{i = 1}^N {P\left( {{\mathbf{u}}_i\left( k \right)|{\mathbf{s}}\left( k \right)} \right)} .$$
(4)
The P(ui (k)|s (k)) is further simplified by assuming spatial independence, for example, the car-following maneuvers of a BV are only dependent on states of itself and its leading vehicle. Let Ni denote all vehicles that have dependencies with the i-th BV. Then the P(ui (k)|s (k)) can be approximated by \(P\left( {{\mathbf{u}}_i\left( k \right)|{\mathbf{s}}_{N_i}\left( k \right)} \right)\).
Finally, the \(P\left( {{\mathbf{u}}_i\left( k \right)|{\mathbf{s}}_{N_i}\left( k \right)} \right)\) is calculated by the empirical probability of the state-action pair in NDD, as shown in Fig. 2d.
Generation of NADE
This section describes our algorithm for NADE construction. The key is to obtain new behavioral distributions q(u|s) as the replacement of P(u|s) in NDE. To overcome the challenge of high dimensionality, we identify the POV at the critical moment and only adjust its behaviors.
To identify POV, we define the maneuver criticality as the multiplication of exposure frequency P(ui|s) and maneuver challenge P(Ai|s,ui) as
$$V\left( {{\mathbf{u}}_i\left| {\mathbf{s}} \right.} \right) \buildrel \Delta \over = P\left( {{\mathbf{u}}_i\left| {\mathbf{s}} \right.} \right) \times P\left( {A_i\left| {{\mathbf{s}},{\mathbf{u}}_i} \right.} \right),$$
(5)
where Ai denotes the accident between the i-th BV and the AV under test. The first part on the right-hand side is the exposure frequency obtained from NDD. The second part is the maneuver challenge that indicates the accident probability given the state-action pair (s, ui). Since we treat the AV model under test as a black box, to approximate the maneuver challenge, we construct SMs of AVs by meta-models, described in more detail in the Supplementary Methods. We should note that the SMs can also be constructed based on the preliminary AV models, so it provides an elegant way to leverage the existing testing results of preliminary AV models. Let Si denote the accident between the i-th BV and the SMs. Then, the maneuver challenge can be approximated by
$$\begin{array}{l}P\left( {A_i\left| {{\mathbf{s}},{\mathbf{u}}_i} \right.} \right) = \mathop {\sum}\limits_{{\mathbf{u}}_0} {P\left( {{\mathbf{u}}_0\left| {\mathbf{s}} \right.} \right)P\left( {A_i\left| {{\mathbf{s}},} \right.{\mathbf{u}}_i,{\mathbf{u}}_0} \right)} ,\\ \quad \quad \quad \quad \;\; \approx \mathop {\sum}\limits_{{\mathbf{u}}_0} {P\left( {{\mathbf{u}}_0\left| {\mathbf{s}} \right.} \right)P\left( {S_i\left| {{\mathbf{s}}_{\bar N_i},} \right.{\mathbf{u}}_i,{\mathbf{u}}_0} \right)} ,\end{array}$$
(6)
where P(u0|s) denotes the probability of the AV's maneuver u0 at the state s, and \({\mathbf{s}}_{\bar N_i}\) denotes the states of the vehicles that influence the event Si. The first term P(u0|s) can be predicted approximately by the SMs, and the second term \(P\left( {S_i\left| {{\mathbf{s}}_{\bar N_i},} \right.{\mathbf{u}}_i,{\mathbf{u}}_0} \right)\) can be evaluated by simulations of the SMs in the scenarios specified by \(\left( {{\mathbf{s}}_{\bar N_i},{\mathbf{u}}_i,{\mathbf{u}}_0} \right)\). Realizing that the evaluation of \(P\left( {S_i\left| {{\mathbf{s}}_{\bar N_i},} \right.{\mathbf{u}}_i,{\mathbf{u}}_0} \right)\) may not be completed by one-time-step simulation, to obtain the evaluation result quickly, reinforcement learning or deep reinforcement learning methods may be used. In this paper, we adopted reinforcement learning techniques for the basic scenarios such as car-following, while more general scenarios can be approximated by the combination of basic scenarios, as shown in Fig. 4.
The criticality for each BV can then be calculated as the summation of maneuver criticality over all the BV's maneuvers:
$$C_i({\mathbf{s}}) \buildrel \Delta \over = \mathop {\sum}\limits_{{\mathbf{u}}_i} {V({\mathbf{u}}_i|{\mathbf{s}})} ,$$
(7)
and the POV can be identified by
$$c \buildrel \Delta \over = {\mathrm{arg}}\,{\mathrm{max}}_iC_i\left( {\mathbf{s}} \right),$$
(8)
if Cc (s)


text:
|Sea fans are a form of gorgonian
soft corals that rely on the current for a continuous
supply of food. They may grow up to several feet across,
and are most likely to be found where the current is
strong. As the name suggests, they are broad and flat,
and invariably face the current so as to filter the most
planktonic food. Most soft corals are colored green,
yellow, or brown, due to the presence of single-celled
algae within their tissue.
Though sea fans have a semi-rigid "skeleton" that helps them retain their shape, they are not classified as hard corals, since they lack a hard limestone skeleton. Another simple way to tell the difference between hard and soft corals is by the tentacle count on the polyps; sort corals generally have eight tentacles versus six on hard corals.


the electoral roll to give a limited amount of money.
While there is no doubt that individuals may also have a political agenda, the sense of corruption is much less in the case of individuals. It is also important that there is still room for modest donations from individuals to help fund new parties.
It is also legitimate for parties to gain funds from many individuals giving small amounts of money, and this can be a way to raise money without effectively selling influence.
Recommendation 5: Ban all forms of donations and fundraising payments except those received from individuals on the electoral roll and from bequests.
6. Caps on donations by individuals
While individuals should be permitted to donate to candidates and parties, it is necessary that these donations are restricted to smaller amounts that do not have the danger of corruptly influencing parties or members of Parliament.
Recommendation 6: Restrict donations by individuals to a maximum of $1000 in any one year to any political party, with donations to different branches of the same political party counting towards a single cap of $1000.
Recommendation 7: Restrict donations by individuals to a maximum of $1000 in any one year to candidates from the same political party, with donations to different candidates of the same political party counting towards a single cap of $1000.
7. Continuous disclosure of donations
At the moment, donations are not revealed to the public until the regular cycle of electoral returns and party annual returns are usually months after the federal election. This time lag dramatically reduces the accountability of parties and candidates. Voters have the right to know about donations before they go to the polls.
This committee has taken a small step in the right direction by recommending that any single donation of over $100,000 is disclosed within 14 days of receipt. This requirement can be easily avoided by spreading a donation out over a number of occasions, possibly in a very short period of time. This loophole should be immediately closed. Moves should be made now to ensure continuous disclosure of all significant donations.
Recommendation 8: If at any point a donor has given over $100,000 to a political party or candidate the party or candidate is then required to disclose all donations from that donor within fourteen days of the cumulative donations exceeding $100,000.
Recommendation 9: All donations from donors whose cumulative donations over the course of a year exceed $1000 be disclosed.
Recommendation 10: The government provide sufficient funding to the Australian Electoral Commission to develop a system to allow for immediate submission of returns for all donations of $1000 or more within seven days of the donation being given.
Recommendation 11: Once it is technically feasible, parties and candidates are required to disclose all donations from donors who have donated $1000 or more in that financial year within fourteen days of the donation being received.
8. Limits on spending during election campaigns
In the fiercely competitive environment of electoral politics, there will always be the temptation for parties and candidates to try to attract greater amounts of donations than their rivals, regardless of what rules are imposed restricting their ability to receive donations.
Restricting the level of expenditure is an effective way to bring fairness to the electoral system and stop the election funding arms race that has engulfed Australian politics.
Recommendation 12: A cap is imposed on election expenditure for each state for political parties and for each House of Representatives electorate for candidates for the three months prior to election day.
Recommendation 13: Penalties are imposed for violation of election expenditure caps, including loss of public funding, large fines, and in extreme cases disqualification as a candidate or as a Member of Parliament.
Senator Lee Rhiannon
Navigation: Previous Page | Contents | Next Page
Back to top
Facebook LinkedIn Twitter Add | Email Print


text:
May 17, 2013 Leave a comment
In January this year, large parts of southern Australia were ablaze with fierce bush fires, while most of the UK was covered in snow. Half a world away from each other, and at one point nearly 40ºC apart, there aren't too many similarities to be drawn between the two locations. And yet, there is a water weed, Crassula helmsii, that survives happily in both extremes – and in the UK, where it has been introduced, this adaptability is proving extremely problematic.
Crassula helmsii, also known as Australian swamp stonecrop or New Zealand pygmyweed, is a small semi-aquatic plant in the Crassulaceae family. As its common name implies, this low-growing succulent originates from the antipodes, but was introduced to Britain from Tasmania almost 100 years ago. Initially sold by garden and aquatic centres as an oxygenating plant, by the 1950s it had established in the wild, and from there it has spread to numerous ponds, lakes and waterways throughout the UK.


text:
All News Releases By Date
U.S. EPA settles with JWS Refrigeration for $53,481 for illegal importation of ozone-depleting substances
Release Date: 11/19/2007
Contact Information: Dean Higuchi, _PHONE_, _EMAIL_
(11/19/07) HONOLULU – The U.S. Environmental Protection Agency today fined JWS Refrigeration & Air Conditioning, Ltd., a Tamuning, Guam refrigeration and heating equipment services company, $53,481 for allegedly importing banned refrigerants in violation of the Clean Air Act.
The company allegedly imported 25,402 kg of hydrochlorofluorocarbon 22, an ozone-depleting substance, from sources outside the United States, a violation of the stratospheric ozone protection regulations.
"To protect stratospheric ozone, the Clean Air Act limits the importing of ozone depleting chemicals into the United States," said Deborah Jordan, director of the EPA's Air Division for the Pacific Southwest region. "Companies in Guam and other U.S. territories are not excluded and must comply with all stratospheric ozone protection regulations."
A May 2006 inspection by the Guam EPA, in consultation with the U.S. EPA, identified the violations by JWS Refrigeration.
High in the atmosphere, the stratospheric ozone layer is the earth's protective shield against excessive ultraviolet radiation. Overexposure to ultraviolet radiation is responsible for increased risk of skin cancer and cataracts, depressed immune systems, decreased crop output, and the destruction of plankton, a critical link in the oceanic food chain.
The U.S. EPA's stratospheric ozone protection program aims to prevent depletion of the ozone layer through the production phase-out and use restriction of refrigerants. Among other restrictions, the program forbids the importation of ozone-depleting substances.
For more information on the U.S. EPA's stratospheric ozone protection program, please visit _URL_
Search this collection of releases | or search all news releases
View selected historical press releases from 1970 to 1998 in the EPA History website.


text:
Where to Register
You may make changes to your voter registration status online, in person or by mail. To change your address or other information online, use the link on the right side of this page. Otherwise, you may use the form found in the Voter Forms Section below. This form prints out on legal size paper. It can be used both for registering to vote and for making changes to your address or party affiliation.
|The following offices are designated as voter registration locations:|
In order to register to vote in Denver you must be:
Privacy of Personal Information
Voter registration records are public records, although personal information contained in voter registration records remains private.
Information that is public includes the voter's:
Information that is private includes the voter's:
This may include a homeless shelter, a homeless provider, a park, a campground, a vacant lot, a business address, or any other physical location within a precinct that the voter considers his or her home base, to which the voter returns regularly and has an intent to remain.
If the physical location does not include a mailing address, the homeless voter must also provide a mailing address.
A Post Office box can be used as a mailing address as long as the voter provides a valid physical Denver address as their residential address.
Criminal Convictions and Voting
Here are two resources to help you understand your rights:


text:
Caption: Jamie notes the mature ash (on field boundary) has been frosted (no leaves).
Caption: Valley bottom trees are not in leaf (birch being the exception) with the ash and oak remaining brown.
With ash dieback well established in Cumbria, Cumbria Woodlands' team noticed that this has been a difficult season for our native tree, even without ash dieback.
Our project officer, Jamie Chaplin-Brice, noted ash trees in St John's in the Vale looking sub-par and has interpreted this as being partly a result of late frost, plus a dry spring. We've included his photos to accompany our thoughts, and invite you to share your own observations.
Jamie notes the mature ash (on field boundary) has been frosted (no leaves) as has the oak behind (brown leaves). There may be enough buds remaining on the ash for it to come into leaf. But there may be a few bare or brown trees which might mistakenly identify them as dead/severely diseased. Some rain will help, but they may look a bit sad all year!
Valley bottom trees are not in leaf (birch being the exception) with the ash and oak remaining brown. The trees up slope (towards Blencathra) are all in green leaf. The foreground ash have experienced a knock back because they are in a frost pocket. The ash trees up the hill have come into leaf as they have not been affected by frost. Jamie adds that it's possible the frosted/late leafing trees may be more susceptible to ash dieback as a result. Time will tell.
Barnaby Wylder, Forestry Commission's Tree Health Officer also noticed that the ash in Grizedale is late in emerging (or yet to emerge) and observed some short pollards with frosted leaves still attached. Our former director and regional forestry consultant, Edward Mills, has also witnessed the black crispy frost-damaged leaves and states that it's mostly too early for the ash leaves to be wilting from dieback. He recorded the latest and most severe frost in Witherslack for 25+ years. This has resulted in some severely damaged oak, beech and others, including yew, and this, he adds, has been compounded by an astonishingly dry spell. The consistently cold nights have caused the ash to flush late, even as they flush the second time after frost damage.
However, Edward, Barnaby and Jamie would lie to encourage you all, "not to panic fell" thinking the ash are dead – please be patient! Also consider that dead wood is a rare and crucial habitat (2,000+ UK deadwood invertebrate species, supporting birds, mammals, plants, fungi and mosses – even fish that rely on deadwood habitat in streams!).
In addition, Barnaby has hinted that it might be a busy year for Phytophthora. Although Edward adds that larch exhibiting browning of new foliage might have experienced drought… possibly a tricky distinction for Barnaby and his Plant Health Forestry team!


Finding x number of duplicate items in a list
Given a list,
ls = [1,2,3,2,2,1,3]
How to identify if an item appears 3 times in ls and return it as a list? For example, the return would be [2,2,2] in this case.
1 Like
It's almost always in the Enum module… and this time, it's Enum.group_by.
It depends on what should happen if there's more than one element that appears 3 times. If we're looking for all of them, or just any one of them, then a solution with Enum.frequencies would be pretty slick.
BUT
If the requirement is for the FIRST element to be repeated three times, that doesn't work (maps do not retain order).
In that case, you might consider explicit recursion. Instead of just posting the code, here's a walkthrough of how you might derive similar code.
Start with an even simpler case: "does this list have NONE of this item?" There are several possibilities:
 - the first element of the list matches the item. The answer is false.
 - apart from the first element, does the rest of the list have NONE of the item?
 - an empty list always has NONE of the item. The answer is true.
This translates directly to Elixir:
 def has_no_item([first | rest], item) when first == item, do: false
 def has_no_item([_ | rest], item), do: has_no_item(rest, item)
 def has_no_item([], item), do: true
Now take a step closer to the goal: does this item appear EXACTLY ONCE? If so, return it as a list
Again, there are cases:
 - the first element of the list matches the item. If there are NONE of the item in the rest of the list, return the item wrapped in a list, otherwise return empty list
 - does the item appear EXACTLY ONCE in the rest of the list? If so, return it as a list
 - the item does not appear EXACTLY ONCE in the empty list, return empty list
That NONE function is useful here!
And the corresponding Elixir code:
 def has_one_item([first | rest], item) when first == item do
 if has_no_item(rest, item) do
 [first]
 else
 []
 end
 end
 def has_one_item([_ | rest], item), do: has_one_item(rest, item)
 def has_one_item([], _), do: []
Next we're headed to TWO. Similar cases appear:
 - the first element of the list matches the item. If item appears EXACTLY ONCE, prepend the first element and return. Otherwise, check if the item appears TWO times in the rest of the list.
 - the item appears TWO times in the rest of the list
 - the item does not appear TWO times in the empty list
And similar Elixir:
 def has_two_items([first | rest], item) when first == item do
 case has_one_item(rest, first) do
 [] -> has_two_items(rest, item)
 items -> [first | items]
 end
 end
 def has_two_items([_ | rest], item), do: has_two_items(rest, item)
 def has_two_items([], _), do: []
Finally we're ready for THREE, the thing we started looking for.
The cases are:
 - if the first element of the list appears TWO times in the rest of the list, prepend the first element and return. Otherwise, does the rest of the list have an item that appears THREE times?
 - the empty list does not have an element that appears THREE times
And the code:
 def has_three_items([first | rest]) do
 case has_two_items(rest, first) do
 [] -> has_three_items(rest)
 items -> [first | items]
 end
 end
 def has_three_items([]), do: []
One quick note: this implementation has a performance pitfall, can you spot it? Think about what would happen if has_three_items was given a looooooong list with exactly two copies of every element. That can be resolved by keeping more state when recursing, similar to how memoized Fibonacci massively outperforms naive Fibonacci.
3 Likes
This does exactly what you asked. It is performant, as it does not traverse the whole list. It stops as soon as limitis found.
Returns :error if no limit is reached.
defmodule X do
 def duplicate_items(enumerable, limit) when is_integer(limit) and limit > 1 do
 result =
 Enum.reduce_while(enumerable, %{},
 fn x, acc ->
 case acc do
 %{^x => count} when count == limit - 1 ->
 {:halt, {:ok, List.duplicate(x, limit)}}

 %{} ->
 {:cont, Map.update(acc, x, 1, &(&1 + 1))}
 end
 end
 )

 case result do
 {:ok, _} -> result
 _ -> :error
 end
 end
 def duplicate_items(enumerable, 1) do
 case Enum.fetch(enumerable, 0) do
 {:ok, value} -> {:ok, [value]}
 :error -> :error
 end
 end
end
iex> ls = [1, 2, 3, 2, 2, 1, 3]
iex> X.duplicate_items(ls, 1)
{:ok, [1]}
iex> X.duplicate_items(ls, 2)
{:ok, [2, 2]}
iex> X.duplicate_items(ls, 3)
{:ok, [2, 2, 2]}
iex> X.duplicate_items(ls, 4)
:error
3 Likes


text:
Energy of Simple Harmonic Motion
ENERGY OF A SPRING/MASS
When a mass is connected gently to a hanging spring, it moves downward until it reaches an equilibrium position. When it
is displaced upwards or downwards from that point, it goes into Simple Harmonic Motion (SHM).
During SHM, the mass moves upwards and downwards, changing the length of the spring. Three forms of energy are involved in this motion - gravitational poten
tial, translational kinetic and elastic potential. In this lab, you will examine the relationships between these three quantities throughout a single cycle of motion and test the conservation of mechanical energy.
ne a classic physics lab from the standpoint of the energies involved
- Test the conservation of mechanical energy
Spring, Hanging Mass, Motion Sensor, Computer Interface
Computer, Interface Software
- As the mass moves up and down, what energies are involved? How did the mass get the original amount of each energy?
- What relationship gives the amount of elastic energy in the spring?
- Compare the amounts of eac
h energy (in a qualitative way) at the three extremes of motion - topmost point, middle, and bottommost point.
1. Prepare the equipment for data collection:
2. Carry out the data collection:
- Connect the laboratory interface to the computer.
onnect the motion sensor to the appropriate channel of the laboratory interface.
- Record the total mass.
- Position the mass so it hangs 60-70 cm above the motion sensor when it is in equilibrium.
- Launch the software needed for measuring position and velocity during your experiment.
- Pull the mass down approximately 10 cm (if the spring will allow this much extension) and release it, setting it in
- When the motion is smooth and straight up and down, begin data collection.
- Stop the data collection after two or three cycles have elapsed.
3. After analyzing the data, repeat the procedure using a new hanging mass or a new sprin
- Construct a spreadsheet that contains the values of the following quantities:
- Constants: Mass, Spring Constant
- Variables: Position (height), Velocity, Time
- Calculated Values:
Gravitational Potential Energy (Ug)
Kinetic Energy (K)
Elastic Potential Energy (Ue)
Total Mechanical Energy (Et)
- Record the position, velocity and time for at least 15 different positions during a single cycle of the motion.
li> Calculate Ug based on height above the lowest point of the motion.
- Calculate Ue based on distance below the highest point of the motion.
- Graph all four calculated values as functions of time.
- What is your conclusion regarding the total
mechanical energy during a cycle of motion?
- What observations did you make regarding the relative sizes of the various energies during a cycle of motion?
1. If one considers that energy must be conserved, and theref
ore the total energy at each position must be the same, the lab can be re-configured to dynamically determine the spring constant k. What value of k would keep the total energy constant, and how does this agree/disagree with the value of k determi
ned in a separate measurement?
2. An air track glider could be mounted between two springs and set into SHM. A similar analysis could be done, but with only elastic and kinetic energies. If the air track were mounted at an angle, gravitational energ
y would be introduced.
Another alternative would be to fasten the glider to a spring, and connect a mass to it by a thread passing over a pulley. The total mass must be used, and the gravitational potential energy changes of the mass moving up and do
wn must be included.
With springs connected on either side of the glider, the effective spring constant could be determined and related to the individual spring constants. Although this is often a problem for AP students, it can be examined experimen
tally by non-AP students in this format.
Written by Clarence Bakken. Posted 7/29/96.


Publisher description for Sentimental bodies : sex, gender, and citizenship in the early republic / Bruce Burgett.
Counter Sentimentalism, sex, the construction of the modern body, and the origins of American liberalism all come under scrutiny in this rich discussion of political life in the early republic. Here Bruce Burgett enters into debates over the "public sphere," a concept introduced by Jurgen Habermas that has led theorists to grapple with such polarities as public and private, polity and personality, citizenship and subjection. With the literary public sphere as his primary focus, Burgett sets out to challenge the Enlightenment opposition of reason and sentiment as the fundamental grid for understanding American political culture.
Drawing on texts ranging from George Washington's "Farewell Address" and Charles Brockden Brown's Clara Howard to Hannah Foster's The Coquette and Harriet Jacobs's Incidents in the Life of a Slave Girl, Burgett shows that the sentimental literary culture of the period relied on readers' affective, passionate, and embodied responses to fictive characters and situations in order to produce political effects. As such, sentimentalism located readers' bodies both as prepolitical sources of personal authenticity and as public sites of political contestation. Going beyond an account of the public sphere as a realm to which only some have full access, Burgett reveals that the formation of the body and sexual subjectivity is crucial to the very construction of that sphere. By exploring and destabilizing the longstanding distinction between public and private life, this book raises questions central to any democratic political culture.
Library of Congress subject headings for this publication: American literature _PHONE_ History and criticism, Politics and literature United States History 19th century, Politics and literature United States History 18th century, United States Intellectual life _PHONE_, Gender identity in literature, Sentimentalism in literature, Body, Human, in literature, Citizenship in literature, Sex role in literature


text:
First Hill, Beacon Hill has a vibe all its own.
The key to Beacon Hill is its seclusion from the surrounding areas. This was a problem at first; no one was willing to move to the hill that was just slightly too far away. Eventually the hill was re-graded, making the area more accessible. When a trolley line was finally put in, many immigrants flocked to the neighborhood to farm and sell their produce to others.
In 1909, a jail was built and inmates could "work off" part of their sentence by helping to clear the land for Jefferson park. And when the US Army warplanes came to Seattle in 1918, they had no airport at which to land, so they used this very park as their runway. This prompted the city to build Boeing field at the base of Beacon Hill.
Depending upon where you are on Beacon Hill, you'll get a different feel for the neighborhood. The busiest section is on the north end, especially where Beacon Hill meets the Rainier Valley. Up at the top of the hill, things settle down into a nice residential area with a small business district. The farther south you go, the more secluded and quiet things get.
Activities and Attractions
Though Beacon Hill is largely residential, there are several pockets of activity in different areas. Beacon Avenue runs the length of the hill, and if you travel from north to south, you'll get a great view of downtown and then reach a small area with restaurants and stores near 15th Avenue. Stop at The Station for coffee, or Delite Bakery—one of the favorite spots for residents here. If you keep heading south, you'll go through Jefferson Park, which has a golf course, hiking trails, tennis courts, and kid-friendly play equipment.
Along Rainier Avenue on the east side of the hill, there is an abundance of places to check out. Go bowling at Imperial Lanes or grab food at one of the many ethnic restaurants that line the street.
Homes in Beacon Hill
You Might Also Like
The giant tract of land south of downtown between I-5 and Rainier Valley is known as Beacon Hill, easy to find because of the old veteran's hospital that sits atop its peak. Despite its close proximity to downtown and


text:
FRITZ!Box 6840 LTE – Service - Knowledge Base
Setting up access and prioritization rules for a network application
You can define rules for network applications in the FRITZ!Box so that
- some access profiles are completely prevented from accessing the Internet with them (parental controls).
- their Internet access is treated with high priority or low priority if the Internet connection is overloaded (prioritization).
Requirements / Restrictions
- You can only regulate applications that exclusively use the TCP and UDP protocols.
- Determine which ports and IP protocols the application uses. Refer to the manufacturer for this information, for example consult the manual.
Note:You can find a non-binding overview of the ports used by many applications at _URL_.
2 Adding a network application
- Click "Internet" in the FRITZ!Box user interface.
- Click "Filters" in the "Internet" menu.
- Click on the "Lists" tab.
- Click the "Add Network Application" button in the "Network Applications" section.
Note:Several applications are preconfigured in the FRITZ!Box. Click the corresponding button (Edit) if you want to customize them.
- Enter a name of your choice for the application in the "Network application" field.
- Click the "New Protocol" button.
- Select the protocol used by the application to send data to the Internet.
- Only if you selected the TCP or UDP protocol:
- Enter the source port(s) and destination port(s) used to establish the connection.
- Click "OK".
- If the application uses different protocols and/or ports, repeat steps 6 - 8 for these as well.
Nine different rules are required to configure the game FIFA 2016 as a network application in the FRITZ!Box:
- Click "OK" to save the settings.


text:
with the new source, we'd simply select the second frame. FotoMorph lets us select a rate of 10, 15, 20, 25, or 30 frames per second for durations at increments of 1/4 second up to 60 seconds; and if we select 25 frames per second for 1/4 second, we get a six-frame export (it should technically be 6.25 frames, but in practice the software appears to treat it as exactly six). So here are our six frames, with fractions showing what proportion of each frame represents the new source:
So those are the latest techniques I've hit upon for face averaging. In this post, I've focused on explaining and illustrating the techniques themselves without worrying too much about the value of my subject matter. Once I've had a chance to export more of the individual warped source images from my existing FaceMixer projects, however, I hope to be able to share some more interesting results.
Addendum: As I mentioned above, I'm not optimistic about any improvements being made to the FaceMixer software itself, but just in case, here's a list of recommended changes and new functionalities I'd recommend:
- Provide an option for saving prepared faces in the Face Library bundled together with copies of their source images, so that deleting or moving the source images from their original locations won't affect these.
- Let users select and add multiple faces from the Face Library to a project all at once, rather than only one at a time; or ideally to merge multiple projects.
- Offer a choice between Mean and Median Averages.
- Include a provision for aligning all the faces in a project to one or more preset Templates, rather than to Shapes calculated based on the faces in a given project at particular percentages; and allow the user to save the current Shape setting of a project as a new preset Template, or to average multiple Templates into a new Template.
- Enable the user to export multiple averages based on Templates representing successive angles for animations "panning" from side to side or pairs of horizontally separated angles for stereoviews.
- On the Edit Dot screen, provide a dynamic display of the result as warped to a preset Template, so that the user can see how each adjustment affects the output. Also allow the user to "lock" warp points once they're correctly placed so that moving other warp points won't cause them to shift.
- Fix the problems that cause larger data sets (e.g., 250+ moderately sized face images) to crash the program, and that cause complex combinations of Shape and Feature percentage settings intermittently to generate blank frames.
- Allow the user to vary the canvas size surrounding the facial features (e.g., the size of the square relative to the face on the "Edit Face" screen) rather than invariably cropping to a set distance from them.
- If the face-selection square on the "Edit Face" screen extends beyond the borders of a source image, fill the missing area with something other than black, such as transparency or a fill of the average color of the whole image.
- Allow users to create custom warp point grids for subjects other than faces.