text:
The Thermo Scientific™ Axia™ ChemiSEM™ Scanning Electron Microscope is unlike traditional SEMs in that it always collects EDS data in the background. It uses unique algorithms to process the SEM and EDS signals simultaneously, allowing it to display the morphology and elemental makeup of a sample together, in real time. It constantly processes EDS data in the background, giving you live updates on elemental data, as it is acquired. Elements found in your sample can be toggled on and off, allowing you to isolate areas of interest.
The Axia ChemiSEM Scanning Electron Microscope features a superior user experience enhanced by automation, such as SmartAlign technology for alignment-free operation, newly developed automatic functions, and live quantitative EDS mapping. This always-on processing make analysis twice as fast, compared to traditional methods. The Axia ChemiSEM Scanning Electron Microscope puts SEM/EDS analysis within reach of a wider scientific audience, speeds up your workflow, and saves time on training.
Check out the features of the Axia ChemiSEM


text:
The Theory Sound and light sensitivity
Can our hypothesis also explain the sound and light sensitivity of brain fatigue?
The brain has limitations in how much can be processed and reach conscious areas at a time. Therefore, proper sorting or filtering systems are needed. When repeating information, nerve cells in the healthy brain will reduce their intensity in signalling after a while and, for example, the sound is no longer recognised. We talk about adaptation of the signalling. This does not work for persons suffering from brain fatigue. They describe that everything is recognised, important as well as unimportant information, and that it becomes very tiring and difficult to handle all the impressions. The signalling does not adapt which explains why the affected are very easily disturbed and they cannot maintain focus. If the astrocytes' handling of glutamate is impaired, it means that incoming information becomes more nonspecific and is perceived as new. It is then not filtered out but reaches up to higher brain centres for processing. In this context, it is important that we are aware that today we know very little about the way the brain works.

source: openbmb/Ultra-FineWeb


text:
Franz Kafka in Prague
House of the Minute
Franz Kafka lived in this building, called
the House at the Minute, near the Old Town Square in Prague,
from 1889 to 1896. Kafka was a writer, whose most famous book
is entitled The Trial.
Church of Our Lady
Franz Kafka lived at one time in a house
behind the Church of Our Lady of Tyn. He worked as an insurance
clerk for most of his life and died of tuberculosis at the age
of 40. His 3 sisters died in the Holocaust. Kafka is buried in
the New Jewish Cemetery in Prague.
Location of the Birth
place of Franz Kafka in Prague
A Plaque marks the spot where Franz Kafka
was born on July 3, 1883 above the Batalion Schnapps bar at the
corner of Maiselova and Kaprova streets. The original building
has long since been torn down.
Kafka's most famous works, The Castle
and The Trial were not published until after his death
on June 3, 1924. The Nazis banned his books in 1933. After the
1968 Soviet invasion of Czechoslovakia, his books were not published
again until 1990, after the fall of Communism in 1989. This building
has photos of his life in Prague.
View through the window
of the Kafka Museum
This page was last updated on March 20,

source: HuggingFaceFW/fineweb-edu


Main Content
isequivalent
Determine if two numerictype objects have equivalent properties
Description
example
y = isequivalent (T1, T2) determines whether the numerictype object inputs have equivalent properties and returns a logical 1 (true) or 0 (false). Two numerictype objects are equivalent if they describe the same data type.
Examples
collapse all
Use isequivalent to determine if two numerictype objects have the same data type.
T1 = numerictype(1, 16, 2^-12, 0)
T1 =
 DataTypeMode: Fixed-point: slope and bias scaling
 Signedness: Signed
 WordLength: 16
 Slope: 2^-12
 Bias: 0
T2 = numerictype(1, 16, 12)
T2 =
 DataTypeMode: Fixed-point: binary point scaling
 Signedness: Signed
 WordLength: 16
 FractionLength: 12
isequivalent(T1,T2)
ans = logical
 1
Although the Data Type Mode is different for T1 and T2, the function returns 1 (true) because the two objects have the same data type.
Input Arguments
collapse all
Inputs to be compared, specified as numerictype objects.
See Also
| |
Introduced in R2014a


The Birds Directive and Wildlife and Countryside Act 1981
This piece of domestic legislation remains a very important statute relating to wildlife protection in Scotland.
The Birds Directive
The Birds Directive is the short name for Directive 2009/147/EC of the European Parliament and of the Council on the conservation of wild birds.
This Directive requires the classification of European sites known as Special Protection Areas for species on Annex I but also provides legal protection for all wild bird, their nests, eggs and habitats within the European community.
The Wildlife and Countryside Act
The Wildlife and Countryside Act 1981 was a fairly simple source of wildlife law in Great Britain when it was enacted to implement the Birds Directive and Bern Convention. But the legal picture is now more complex.
Firstly, the Habitats Regulations 1994 introduced a separate set of rules for those species (and habitats) protected under the Habitats Directive.
Secondly, devolution resulted in changes to the 1981 Act, through the:
Further, the Habitats Regulations in Scotland differ from those in England and Wales.
View the consolidated version of the Wildlife and Countryside Act 1981. This may not show all the amendments as they apply in Scotland.
The 1981 Act applies to our terrestrial environment and inshore waters (within 12 nautical miles of land).
Part 1 of the Act details a large number of offences in relation to the killing and taking of wild birds, other animals and plants.
Schedules attached to the Act categorise species. The level of protection given to a species depends on the schedule it's listed on.
The main schedules are:
NatureScot and the other country agencies must review Schedules 5 and 8 every five years.
You can also view a table of all of Scotland's protected species, which details the legislation under which each is protected.
As noted above, there are many offences in relation to the killing and taking of wild birds, other animals and plants. Some offences are specific and others more general. For example, it's an offence to commit or attempt to commit specific actions in relation to protected species of animal, bird and plant.
Corroborated evidence is usually needed to secure a conviction in Scotland. But a person may be convicted of taking or destroying birds' eggs on the evidence of a single witness.
Some offences require intentional or reckless behaviour on the part of the accused.
Other offences are of strict liability (e.g. the possession or sale of specimens). This means that the law expects accused persons to show their innocence. If you hold a protected species, you do so at your own risk.
There are various exceptions to – or defences against – the offences set out by the legislation, including licensing.
Discover the specific offences listed for each protected species.
Learn more about licensing.
Find out about wildlife crime.
Last updated:


Take the 2-minute tour ×
I have a generic N-ary expression tree and I want to convert the same to a binary tree. Is there any well defined algorithms to do the same?
I tried going thro' different algorithms of converting N-ary tree to expression tree like _URL_ but thats not going to work, as they don't worry about precedence and all.
share|improve this question
Can you expand on your requirements for the binary tree, vs the nary tree? Anything specific... or is your only requirement that children of a node, are simply still descendants of the same node? – ChrisCM Jun 4 '13 at 13:52
add comment
1 Answer
Simple answer.
Step 1: Convert N-ary expression tree with different levels of precedence into an N-ary tree where each node has only a single level of precedence.
Step 2: Convert that tree into a binary tree.
If you're seeking a straightforward solution rather than an efficient one, it may be easy to explode each node into levels matching your precedence, then after you have a binary tree collapse out the obviously useless nodes. If you want a more efficient solution, then you'll want to be more cautious in the initial expansion.
share|improve this answer
add comment
Your Answer


can use either straight Person object or an IModel that provides us the person. This feature can be achieved by implementing the Wicket's IChainingModel interface. We have two issues here though. First one is the type of the name model. We define that the name must be String, but actually the compiler cannot make sure that name is bound to a String getName() JavaBean property. The second issue comes from refactoring, we use a String value to define the property name. If you refactor the Person object with your IDE and hange the getName() method to getLastName(), your application will broke and again the compiler cannot notice this.
Let's stop here for a while to look at the IChainingModel interface. Its main purpose is to allow using of a plain object or a chained model as the model's content. The PropertyModel could be used with a model that provides a person or with plain person object. If you look at the PropertyModel's source code, you notice that implementing the IChainingModel requires casting and, in my opinion, boiler plate code. The PersonFriendsModel we created earlier could be refactored to implement IChainingModel so that instead of taking only a model in as the content, it would also support taking a person straight in. Is this really necessary? Not really. If we want to use plain person, we could create a new static model from the person providing us the same functionality as IChainingModel would provide.
CompoundPropertyModel adds even more magic to the model handling. It serves as root model for many components that can bind automatically to it by matching the property name to the component id.
public class PersonForm extends Form<Person> {

 public PersonForm(final String id, final IModel<Person> personModel) {
 super(id, new CompoundPropertyModel<Person>(personModel));

 add(new TextField<String>("name"));
 add(new TextField<Integer>("age"));
 }
}
Here we create a form to show input fields for the person's name and age. There is no model attached to either text field, but we are still able to bind the "name" component to the person's name and the "age" component to the person's age. The compound property model we created in the constructor is the root model for the form and automatically binds the form components to the object's properties by the component ids. The same issues apply with the compound property model that apply with the property model, but we even add one more. Now we lock the component id straight to the property name. This means that we have a dependency from the HTML template straight to the domain objects property name. This does not sound very reasonable.
It is up to you if you want to use property models, but in my opinion they should be avoided due to the issues explained earlier. There are projects like bindgen-wicket that try to achieve the behavior of property models without losing the type safety. But even bindgen does not work that well with refactoring. How we implement the name model in a type and refactoring safe way then?
public class NameModel implements IModel<String> {

 private IModel<Person> personModel;

 public NameModel(final IModel<Person> personModel) {
 this.personModel = personModel;
 }

 @Override
 public String getObject() {
 return personModel.getObject().getName();
 }

 @Override
 public void setObject(String object) {
 personModel.getObject().setName(object);
 }

 @Override
 public void detach() {
 personModel.detach();
 }
}
The model has a lot more lines than the property model. Yes, that is true, but do you want to lose type safety and refactoring features and potentially break your application very easily. The model is in different file so you can still use it as a one liner, so there is no difference if you use property model or the model we just created. And you can always remember the fact that Java is just very verbose language.
Wicket also provides us ResourceModel and StringResourceModel that provide a powerful tool of creating localized content for your components. I will not discuss them in this post, because Wicket in Action book has good reference for those. I tried to bring up some real life examples how to use different kind of models and what their purpose is. I hope this gave you some more knowledge about Wicket models and how they should be used properly.

Reference: A clean approach to Wicket models from our JCG partner Tapio Rautonen at the RAINBOW WORLDS blog.
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
2 Responses to "A clean approach to Wicket models"
 1. Kate says:
 MOAR! Nice to see new post on Wicket again. It seemed like no-one was using this framework anymore.
 2. RobAu says:
 I prefer the lamba4j approach. See here: _URL_ (somehere near the bttom)
Leave a Reply
2 × = fourteen
Java Code Geeks and all content copyright © 2010-2015, Exelixis Media Ltd | Terms of Use | Privacy Policy | Contact
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you two of our best selling eBooks for FREE!
Get ready to Rock!
You can download the complementary eBooks using the links below:
Close


text:
Theorem is the art of painting designs on velvet using stencils. Theorem painting was popular in the 1800's -- especially in New England -- but gradually declined after 1850, due to the increasing availability of Victorial floral prints. The word "theorem" means "a theory or analysis" and refers to the way an artist must analyze the picture he/she wants to paint and divide into numbered parts in order to create and cut a stencil. Primitive Beginnings theorem paintings are all hand made, one of a kind, and signed by the artist. All theorem painints are made in USA by American artists.
Results 1 - 2 of 2


CreateConnectionResponse Class
AWS SDK for .NET Documentation
CreateConnectionResponse Class
AmazonAmazon.DirectConnect.ModelCreateConnectionResponse Did this page help you? Yes No Tell us about it...
Returns information about the CreateConnectionResult response and response metadata.
Declaration Syntax
C#
public class CreateConnectionResponse : AmazonWebServiceResponse
Members
All MembersConstructorsMethodsProperties
IconMemberDescription
CreateConnectionResponse()()()()
Initializes a new instance of the CreateConnectionResponse class
ContentLength
Returns the content length of the HTTP response.
(Inherited from AmazonWebServiceResponse.)
CreateConnectionResult
Gets and sets the CreateConnectionResult property. A connection represents the physical network connection between the Direct Connect location and the customer.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
ResponseMetadata
Contains additional information about the request, such as the Request Id.
(Inherited from AmazonWebServiceResponse.)
ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
Inheritance Hierarchy
Object
AmazonWebServiceResponse
 CreateConnectionResponse
Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)


text:
Chicago recently unrolled its pedestrian safety plan, joining the ranks of cities such as Portland and New York, which have their own plans for preventing serious pedestrian accidents. The Chicago plan has 250 recommendations to prevent injuries and fatalities. Could Fort Lauderdale benefit from a similar plan? Some of the recommendations in the Chicago policy could help prevent Fort Lauderdale pedestrian accidents as well:
1) Chicanes. Chicanes are extra turns added to a roadway to slow traffic down. Since in many cases Fort Lauderdale traffic accidents are caused by speeding, reducing traffic speed can be a good way to slash the risk of accidents.
2) Pedestrian islands. In some cases, Fort Lauderdale pedestrian accidents occur because a car enters a pedestrian area. Pedestrian islands keep pedestrians separated from cars and discourage pedestrians from entering traffic.
3) Midblock curb bumpouts. These narrow portions of a street to slow traffic, usually by extending the curb. This is yet another way to reduce speed in order to help prevent Fort Lauderdale car accidents.
4) A system for repairing two high-collision areas and four dangerous intersections each year. The Chicago plan calls for authorities to find and address dangerous intersections and corridors annually. Fort Lauderdale also has high collision areas and areas that are considered especially dangerous. Identifying and rectifying these problems can help prevent traffic accidents.
5) Speed humps. Reducing speed with speed bumps is effective, according to experts, because speed bumps work whether there is enforcement or not. Most cars will slow down rather than taking speed bumps at a high speed, making them more effective than simply lowering the speed limits.
6) Pedestrian scrambles. A pedestrian scramble stops all vehicle traffic at an intersection and allows pedestrians to walk in every direction at the same time. Pedestrians can even walk diagonally. Pedestrian scrambles work because they prevent pedestrians and cars from sharing an intersection at the same time. It helps prevent Fort Lauderdale pedestrian accidents caused by cars turning into a pedestrian area.
7) Road diets. Road diets reduce the number of lanes on some roads, reducing traffic and therefore crashes. Former Florida Bicycle and Pedestrian Coordinator Dan Burden is a fan of road diets, noting that they improve road safety and may help prevent Fort Lauderdale bicycle accidents and Florida traffic accidents.
Roundabouts. These round intersections separate pedestrians from traffic entirely, by having pedestrians stay one car length outside of the intersection. When crossing this type of intersection, pedestrians only face oncoming traffic from one area and traffic is slowed down significantly in roundabouts, which could also reduce the risk of Fort Lauderdale traffic accidents.
9) An improved pedestrian network, including wayfinding systems and better walking access points to public transit. In some cases, Fort Lauderdale pedestrian accidents occur simply because pedestrians do not have safe areas to walk. For example, some neighborhoods do not have adequate sidewalks.


text:
Forest Service officials want to remind visitors that winter travel conditions on forest roads may be hazardous and people should travel with their personal safety in mind.
During the winter the Forest Service does not plow forest roads and visitors need to be cautious before traveling down a road that is unplowed. If a road has been plowed, visitors should expect large trucks or equipment operating on those roads and be cautious.
For the safety of all, visitors also are asked not to park in front of gates or block roadways while they recreate.
In general, the Forest Service urges people recreating in the winter to prepare for unexpected conditions by dressing warm, having extra food and water, and bringing equipment and supplies such as tire chains, sand and shovels in their car.
People should always let someone else know where they are going and when they plan to return.
And, finally, visitors should remember that being able to communicate to rescuers in an emergency is critical; however, cell phones may not always have service in the backcountry.


text:
14 Jun Get More From Your Core: Applying Artificial Intelligence to CT, Photo, and Well Log Analysis with Virtual Core
What: Presentation, demo, and Q&A with Brendon Hall, Director, Energy Solutions Group, Enthought
- Oil and gas industry professionals who are looking for ways to extract more value from expensive science wells
- Those interested in learning how artificial intelligence and machine learning techniques can be applied to core analysis
Other Blogs and Articles on Virtual Core:
- Scientists Use Enthought's Virtual Core Software to Study Asteroid Impact
- Weatherford Labs and Enthought Collaborate to Analyze Chicxulub Crater Core Believed to be Tied to Dinosaur Extinction Event
- The Latest Features in Virtual Core: CT Scan, Photo, and Well Log Co-visualization
- Geophysical Tutorial: Facies Classification using Machine Learning and Python
Geoscientists and petroleum engineers rely on accurate core measurements to characterize reservoirs, develop drilling plans and de-risk play assessments. Whole-core CT scans are now routinely performed on extracted well cores, however the data produced from these scans are difficult to visualize and integrate with other measurements.
Virtual Core automates aspects of core description for geologists, drastically reducing the time and effort required for core description, and its unified visualization interface displays cleansed whole-core CT data alongside core photographs and well logs. It provides tools for geoscientists to analyze core data and extract features from sub-millimeter scale to the entire core.
In this webinar and demo, we'll start by introducing the Clear Core processing pipeline, which automatically removes unwanted artifacts (such as tubing) from the CT image. We'll then show how the machine learning capabilities in Virtual Core can be used to describe the core, extracting features such as bedding planes and dip angle. Finally, we'll show how the data can be viewed and analyzed alongside other core data, such as photographs, wellbore images, well logs, plug measurements, and more.
What You'll Learn:
- How core CT data, photographs, well logs, borehole images, and more can be integrated into a digital core workshop
- How digital core data can shorten core description timelines and deliver business results faster
- How new features can be extracted from digital core data using artificial intelligence
- Novel workflows that leverage these features, such as identifying parasequences and strategies for determining net pay
Presenter: Brendon Hall, Enthought
Director, Energy Solutions Group


text:
Trapezoid Midsegment Investigation
How do you know the quadrilateral initially constructed is a trapezoid? (What postulate or theorem helps justify this?)
The thick black segment (with three tick marks) is called a median (or midsegment) of a trapezoid. Define the term median of a trapezoid without looking up its definition on another site.
What two facts/properties about the median of a trapezoid does this applet illustrate?
Suppose the bases of the trapezoid above measured 14 inches and 26 inches. What would the length of its median be?
Suppose a trapezoid has a median with length 35 inches and one base measuring 23 inches. What would the length of its other base be?
Now move any point so that one of the trapezoid's bases has length = 0. Then re-slide the slider. What other theorem(s) previously learned does this applet now show?


Photos, images, and video can be added — easily and productively — to any iWork for iPad document. There are two ways to insert photos and video into an iWork document: Use the Insert button at the right of the toolbar or use a template that includes a placeholder image. Because using a template with a placeholder image requires one more step than the Insert button, that's the technique described here.
Create a document based on a template that includes a placeholder image.
Some templates have several placeholder images on various pages, slides, or spreadsheets. Notice in the lower-right corner of the image that there's a button that matches the Insert button on the right side of the toolbar. This indicates that the image is a placeholder.
Tap the placeholder button to open a list of your photo albums.
You can browse photos you have saved on your iPad as well as albums you have created in iPhoto and synchronized to your iPad. Select the image you want to use instead of the placeholder.
Double-tap the image to show the masking control.
The masking control lets you resize the image.
Adjust the slider to change the image mask.
The slider adjusts the size of the image. It starts being the same size as the frame, but if you move it all the way to the right, the image is shown dimly filling the entire screen. You can drag the image around so that the part you want is inside the frame. You can also use the eight handles on the frame to change its size and shape.


Cardiovascular responses to brief static contractions in man with topical nervous blockade.
A. Lassen, J. H. Mitchell, D. R. Reeves, H. B. Rogers, N. H. Secher
Research output: Contribution to journalArticlepeer-review
19 Scopus citations
Abstract
1. We tested the hypothesis that afferent nerves from working muscles are important in determining the heart rate and blood pressure responses to brief maximal static exercise. 2. In twenty human subjects, the heart rate and arterial blood pressure responses to a brief maximal voluntary handgrip were studied before and after axillary nerve anaesthesia or to maximal one‐leg knee extension before and after epidural anaesthesia at L3‐L4. Maximal knee extension could not be accomplished without performing a 'Valsalva‐like' manoeuvre, but during handgrip it was possible to avoid the use of muscles other than those directly involved in the contraction. Heart rate and blood pressure were also monitored during a Valsalva manoeuvre of similar duration to the maximal voluntary contractions (4 s). 3. During handgrip with normal breathing, axillary nerve anaesthesia reduced the heart rate response but had no effect on the blood pressure response. 4. During a Valsalva manoeuvre, blood pressure increased but heart rate remained stable as long as expiratory pressure was maintained. During one‐leg knee extension, epidural anaesthesia reduced the blood pressure response; however, the reduction in blood pressure was probably due to a reduction in the simultaneously performed 'Valsalva‐like' manoeuvre. 5. The results of this study suggest that afferent input from the working muscles is of importance for the heart rate responses to brief static muscle contractions. That such influence may be important for the blood pressure response remains unproven.
Original languageEnglish (US)
Pages (from-to)333-341
Number of pages9
JournalThe Journal of Physiology
Volume409
Issue number1
DOIs
StatePublished - Feb 1 1989
ASJC Scopus subject areas
 - Physiology
Fingerprint Dive into the research topics of 'Cardiovascular responses to brief static contractions in man with topical nervous blockade.'. Together they form a unique fingerprint.
Cite this


Channels ▼
RSS
JVM Languages
How Non-Member Functions Improve Encapsulation
In addition, this approach is extensible. When the declarations for the functions making up a class's interface are spread across multiple header files, it becomes natural for clients creating application-specific sets of convenience functions to cluster those functions into a new header file and to #include that file as appropriate. In other words, to treat the application-specific convenience functions just like they treat the convenience functions provided by the author of the class. This is as it should be. After all, they're all just convenience functions.
Minimalness and Encapsulation
In Effective C++, I argued for class interfaces that are complete and minimal. Such interfaces allow class clients to do anything they might reasonably want to do, but classes contain no more member functions than are absolutely necessary. Adding functions beyond the minimum necessary to let clients get their jobs done, I wrote, decreases the class's comprehensibility and maintainability, plus it increases compilation times for clients. Jack Reeves has written that the addition of member functions beyond those truly required violates the open/closed principle, yields fat class interfaces, and ultimately leads to software rot. That's a fair number of arguments for minimizing the number of member functions in a class, but now we have an additional reason: failure to do so decreases a class's encapsulation.
Of course, a minimal class interface is not necessarily the best interface. I remarked in Effective C++ that adding functions beyond those truly necessary may be justifiable if it significantly improves the performance of the class, makes the class easier to use, or prevents likely client errors. Based on his work with various string-like classes, Jack Reeves has observed that some functions just don't "feel" right when made non-members, even if they could be non-friend non-members. The "best" interface for a class can be found only by balancing many competing concerns, of which the degree of encapsulation is but one.
Still, the lesson of this article should be clear. Conventional wisdom notwithstanding, use of non-friend non-member functions improves a class's encapsulation, and a preference for such functions over member functions makes it easier to design and develop classes with interfaces that are complete and minimal (or close to minimal). Arguments about the naturalness of the resulting calling syntax are generally unfounded, and adoption of a predilection for non-friend non-member functions leads to packaging strategies for a class's interface that minimize client compilation dependencies while maximizing the number of convenience functions available to them.
It's time to abandon the traditional, but inaccurate, ideas of what it means to be object-oriented. Are you a true encapsulation believer? If so, I know you'll embrace non-friend non-member functions with the fervor they deserve.
Acknowledgements
Thanks to Arun Kundu for asking the question that led to this article. Thanks also to Jack Reeves, Herb Sutter, Dave Smallberg, Andrei Alexandrescu, Bruce Eckel, Bjarne Stroustrup, and Andrew Koenig for comments on pre-publication drafts that weren't as good as they should have been. (That's why they were drafts.) Finally, great thanks to Adela Novak for organizing the C++ seminars in Lucerne (Switzerland) that led to the many hours on planes and trains that allowed me to write the initial draft of this article.
Scott Meyers is a recognized authority on C++; he provides consulting services to clients worldwide. He is the author of Effective C++, Second Edition (Addison-Wesley, 1998), More Effective C++ (Addison-Wesley, 1996), and Effective C++ CD (Addison-Wesley, 1999). Scott received his Ph.D. in Computer Science from Brown University in 1993.
Related Reading
More Insights
Currently we allow the following HTML tags in comments:
Single tags
These tags can be used alone and don't need an ending tag.

 Defines a single line break

 Defines a horizontal line
Matching tags
These require an ending tag - e.g. italic text
 Defines an anchor
 Defines bold text
<big> Defines big text

 Defines a long quotation

 Defines a table caption
 Defines a citation
 Defines computer code text
 Defines emphasized text
<fieldset> Defines a border around elements in a form

 This is heading 1

 This is heading 2

 This is heading 3

 This is heading 4

 This is heading 5

 This is heading 6
 Defines italic text

 Defines a paragraph

 Defines preformatted text
<q> Defines a short quotation
<samp> Defines sample computer code text
 Defines small text
 Defines a section in a document
<s> Defines strikethrough text
 Defines strikethrough text
 Defines strong text
 Defines subscripted text
 Defines superscripted text
 Defines underlined text
Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.

Video


text:
Fact Check: Is Chocolate Really Going 'Extinct' by 2050?
An alarming recent report by Business Insider claimed that chocolate would be extinct 40 years from now.
The story, which went viral, claimed that cacao plants are slated to disappear due to warmer weather and poor moisture conditions by as early as 2050.
Although climate change is an issue that concerns everybody, the report may not be entirely accurate.
The later half of the report talked about a new technology called CRISPR which seeks to tweak DNA of cacao plants to prevent diseases that are a potential threat to the production of chocolate.
Scientists at the University of California are teaming up with Mars, best known for their Snickers bars, to try to save the crop before it's too late, the report said, adding that the initiative will be headed by Myeong-Je Cho, the director of plant genomics at the Innovative Genomics Institute at UC Berkeley.
Soon after the Business Insider article was published, a press release by UC Berkeley clarified the matter and said:
Brian Staskawicz, Professor of Plant and Microbial Biology who works with Cho to generate sustainable crops from climate change and plant pathogens said, "Cacao can be afflicted with several devastating conditions. We're developing CRISPR editing technologies to alter the DNA in cacao plants to become more resistant to both viral and fungal diseases."
The BI report also referred to an NOAA report from 10 February 2016, which actually said that the leading producers are Côte d'Ivoire, Ghana, and Indonesia "will experience a 3.8°F (2.1°C) increase in temperature by 2050, and a marked reduction in suitable cultivation area" under a "business as usual scenario, quoting the 'Intergovernmental Panel on Climate Change (IPCC) Climate Change 2014: Impacts, Adaptation, and Vulnerability' report.
However, there are several other regions where cacao is cultivate such as Brazil and Ecuador, Cameroon, Papua New Guinea, etc.
The authors continued, "These changes in climatic suitability are predicted to take place over a time period of almost 40 years, so they will mostly impact the next rather than the current generation of cocoa trees and farmers. In other words, there is time for adaptation."
So although our favourite chocolate isn't going to disappear like the report said, unfavourable weather conditions may affect its production and its price if we don't take global warming seriously.
(The Quint is now on WhatsApp. To receive handpicked stories on topics you care about, subscribe to our WhatsApp services. Just go to _URL_ and hit the Subscribe button.)

source: m-a-p/FineFineWeb


text:
The Hardy Boys is a popular series of detective/adventure books for boys chronicling the fictional adventures of teenage brothers Frank and Joe Hardy. The original Hardy Boys series was produced between 1927 and 1979 by a group of authors under the pen name Franklin W. Dixon.
The Hardy Boys is a creation of the Stratemeyer Syndicate, the creators of dozens of successful book series such as the Rover Boys, the Bobbsey Twins and Tom Swift, and later, Nancy Drew. Edward Stratemeyer conceived of the Hardy Boys in 1926 with the creation of plot outlines that would become the first volume of the series. Various ghostwriters were employed, under contract of secrecy, to pen the actual stories. The first author was Leslie McFarlane, whose writing defined the literary style of the series, as well as the personalities and nuances of its characters. McFarlane authored volumes 1—16 and 22—24, which are generally regarded as the best works of the series. His 1976 autobiography, Ghost of the Hardy Boys, provides substantial background information on the series, as well as the Stratemeyer Syndicate as a whole.
From 1959 to the mid-70s, substantial revisions to the first 38 titles were made. This was done to modernize outdated vernacular, reduce story length, age the characters and remove the ethnic and racial stereotypes prevalent in many of the early books. The result of this process varied widely, with some books being changed only slightly while others had their entire plot and storyline thrown out. At any rate, the revised versions are those that are commonly found and are available here at Exodus.
The first 58 stories and the 38 revisions, along with the Detective Handbook and its revision, are considered by many collectors to form the Hardy Boys "canon."
These are decidedly not classics. The storylines are formulaic, with the two boys and their chums having all sorts of adventures—usually catapulted into a mystery by some crime or catastrophe. They track down clues, threatening the villain(s) with exposure. Eventually, they are usually captured and threatened with death. But the villain usually boasts about how the felony was committed before they somehow manage to escape and bring the police to their aid. (This is an area we appreciate: while many books have kids solving mysteries while rebelling against authority, the Hardy boys have the full support and assistance of their father and the police force.) While the books do include crimes like murder and theft, and occasionally dabble with occultic symbols, we are not too concerned about the content being dangerous for kids (for instance, occultic images are usually meant to be a scare tactic and can be explained scientifically). What we are concerned with is the triviality of the books. They are fun to read, but they are fluff, and little—either in terms of knowledge or in worldview—can be gained from them. Although we don't think it's necessary to prevent kids from reading these, we would recommend that parents keep the time spent reading them to a minimum!


text:
In the ever-evolving world of digital art, a new subgenre has taken root: speed art. This form of artistic expression thrives on its rapid creation, often captured and condensed into mesmerizing time-lapse videos. While speed art embraces a diverse range of subjects, one particular domain has become synonymous with this unique style: gaming fan art.
Fuelled by a passionate community of gamers and artists, gaming fan art through speed art has blossomed into a vibrant artistic landscape. This article delves into the essence of this phenomenon, exploring its motivations, methods, and impact on the gaming and art worlds.
Motivations Behind the Speed:
The impetus behind speed art is multifaceted. For some artists, it's a thrilling challenge, pushing their technical skills and artistic decision-making to their limits. The pressure of time forces them to be more decisive and spontaneous, leading to unexpected results and a unique sense of dynamism in their work.
For others, speed art serves as a form of entertainment and engagement with their audience. Capturing the entire creative process in a concise time-lapse video allows viewers to witness the artist's thought process and skill in real time, fostering a deeper connection and appreciation for the finished piece.
Beyond personal motivations, speed art offers an avenue for dedicated gamers to express their love and appreciation for their favorite characters, worlds, and narratives. By recreating iconic imagery or injecting their own creative interpretations, these artists contribute to the vibrant fan culture surrounding their chosen games.
Methods of the Speed Demon:
While the essence of speed art lies in its rapid creation, artists employ various methods to achieve their desired results. Some focus on pre-planning and preparation, meticulously sketching out their composition and color schemes beforehand. This approach ensures a smoother workflow and minimizes wasted time during the actual painting process.
Others favor a more improvisational approach, embracing the spontaneity and unpredictable nature of speed art. Using a limited palette or restricting themselves to specific tools, they allow their creativity to flourish in the moment, leading to organic and unexpected outcomes.
The digital tools employed by speed artists play a crucial role in their process. Software like Photoshop, Clip Studio Paint, and Krita offer a plethora of brushes, textures, and effects that can be manipulated with remarkable speed and fluidity. Drawing tablets and pressure-sensitive pens further enhance the artist's control and precision, allowing them to translate their vision onto the digital canvas with impressive dexterity.
Impact on the Gaming and Art Worlds:
The rise of speed art has had a significant impact on both the gaming qq alfa and art communities. For game developers, it offers valuable insights into player engagement and the artistic interpretations their creations inspire. Witnessing the passion and talent poured into fan art can be a deeply rewarding experience for developers, reinforcing their connection to their player base.
From an artistic perspective, speed art has democratized the art creation process, making it more accessible and engaging for a broader audience. Time-lapse videos offer a behind-the-scenes glimpse into the artistic workflow, demystifying the creative process and inspiring aspiring artists to embark on their own artistic journeys.
Furthermore, speed art fosters a sense of community and collaboration amongst artists. Platforms like Twitch and YouTube provide spaces for artists to share their work, offer constructive criticism, and learn from each other's techniques. This collaborative environment allows artists to hone their skills and push the boundaries of the speed art genre.
The art of speed art, particularly within the realm of gaming fan art, represents a fascinating convergence of passion, skill, and technology. It offers a unique window into the creative process, showcasing the impressive talent and dedication of artists within the gaming community. As this artistic form continues to evolve, it promises to further enrich the digital art landscape and inspire a new generation of creative minds.


text:
Aerodynamic and External Ballistic modelling of a Rocket Target with Two Motors in a Parallel Configuration
Keywords:Rocket target, ballistics, CFD, nose cone, solid propel-lant, RANS modelling, finite volume method
Rocket targets are essential for live-fire military training. RT-400 is a short-range rocket target. This rocket must be improvised for a longer range. So, two motors are used to upgrade the range of the rocket. as the dimensions of the rocket change, it is required to analyse the nose cone shape for the prediction of forces and coefficients. With obtained values, ballistic analysis is carried out to determine the theoretical maximum range and altitudes are obtained.
DYNAMICS OF MECHANICAL SYSTEMS


text:
Morphology in WordNet uses two types of processes to try to convert the string passed into one that can be found in the WordNet database. There are lists of inflectional endings, based on syntactic category, that can be detached from individual words in an attempt to find a form of the word that is in WordNet. There are also exception list files, one for each syntactic category, in which a search for an inflected form is done. Morphy tries to use these two processes in an intelligent manner to translate the string passed to the base form found in WordNet. Morphy first checks for exceptions, then uses the rules of detachment. The Morphy functions are not independent from WordNet. After each transformation, WordNet is searched for the resulting string in the syntactic category specified.
The Morphy functions are passed a string and a syntactic category. A string is either a single word or a collocation. Since some words, such as axes can have more than one base form (axe and axis ), Morphy works in the following manner. The first time that Morphy is called with a specific string, it returns a base form. For each subsequent call to Morphy made with a NULL string argument, Morphy returns another base form. Whenever Morphy cannot perform a transformation, whether on the first call for a word or subsequent calls, NULL is returned. A transformation to a valid English string will return NULL if the base form of the string is not in WordNet.
The morphological functions are found in the WordNet library. See morph(3WN) for information on using these functions.
If the word is not found in the exception list corresponding to the syntactic category, an algorithmic process using the rules of detachment looks for a matching suffix. If a matching suffix is found, a corresponding ending is applied (sometimes this ending is a NULL string, so in effect the suffix is removed from the word), and WordNet is consulted to see if the resulting word is found in the desired part of speech.
Verb collocations that contain prepositions, such as ask for it, are more difficult. As with single words, the exception list is searched first. If the collocation is not found, special code in Morphy determines whether a verb collocation includes a preposition. If it does, a function is called to try to find the base form in the following manner. It is assumed that the first word in the collocation is a verb and that the last word is a noun. The algorithm then builds a search string with the base forms of the verb and noun, leaving the remainder of the collocation (usually just the preposition, but more words may be involved) in the middle. For example, passed asking for it, the database search would be performed with ask for it, which is found in WordNet, and therefore returned from Morphy. If a verb collocation does not contain a preposition, then the base form of each word in the collocation is found and WordNet is searched for the resulting string.
Morphy will allow non-words to be converted to words, if they follow one of the rules described above. For example, it will happily convert plantes to plants.
Table of Contents


text:
A longitudinal analysis of transient flow between a river and an underlying aquifer is developed to calculate flow rates between the river and the aquifer and the location of groundwater seepage into the river as it changes over time. Two flow domains are defined in the analysis: an upstream domain of fluvial recharge, where water flows vertically from the river into the unsaturated portion of the aquifer and horizontally in saturated parts of the aquifer, and a downstream domain of groundwater seepage to the river, where groundwater flows parallel to the underlying impermeable base. The river does not necessarily penetrate completely through the aquifer. A one-dimensional, unsteady flow equation is derived from mass conservation, Darcy's law, and the geometry of the river-aquifer system to calculate the water table position and the groundwater seepage rate into the river. Models based on numerical and analytical solutions of the flow equation were applied to a reach of the Methow River in north central Washington. The calibrated models simulated groundwater seepage with a root-mean-square error less than 5% of the mean groundwater seepage rates for three low-flow evaluation periods. The analytical model provides a theoretical basis for a nonlinear exponential base flow recession generated by a draining aquifer, but not an explicit functional form for the recession. Unlike cross-sectional approaches, the longitudinal approach allows the analysis of the length and location of groundwater seepage to a river, which have important ecological implications in many rivers. In the numerical simulations, the length of the groundwater seepage varied seasonally by about 4 km and the upstream boundary of groundwater seepage was within 689 m of its location at a stream gage on 9 September 2001 and within 91 m of its location on 6 October 2002. To demonstrate its utility in ecological applications, the numerical model was used to calculate differences in length of groundwater seepage to the Methow River under an early runoff scenario and the timing of those differences with respect to life stages of chinook salmon.
Additional publication details
Longitudinal hydraulic analysis of river-aquifer exchanges


text:
Pasternak (plant): cultivation and care, useful properties. What does a parsnip plant look like
Vegetable culture, which has extremely beneficial properties and is not so widespread among consumers, is parsnips. The plant is known to man since the time of Pliny (I century BC. E.). Due to its pleasant smell, it is used by gourmets in most cases as a spice. Few people know that the main advantage of this plant is its excellent beneficial properties for the body, especially with diet food.
What does a parsnip plant look like?
This root is a relative of carrots and parsley, part of the umbrella family. Its distinctive characteristics:
- rich green elevated part;
- white root;
- nice smell.
It is almost impossible to establish the territory where parsnip first appeared.The plant is found in the Caucasus, Siberia, Europe.
In the old days, parsnips had a small size and rigidity. Nowadays there are several varieties of this plant:
- "A long".
- "Russian size".
- Other species.
Parsnip plant: useful properties
This plant is characterized by a rather useful composition, it contains:
- trace elements (phosphorus, calcium, copper, iron);
- vitamins (groups B, C);
- organic acids;
- mono - and disaccharides;
- essential oils;
- alimentary fiber.
Such a rich composition makes this root vegetable very nutritious and valuable for people on a diet. It should be noted that it is pasternak that is used for many diseases. Its useful properties are expressed in the fact that it:
- stimulates appetite and improves digestion;
- promotes the rapid absorption of food;
- has a diuretic effect;
- increases the potency;
- strengthens blood vessels;
- excellent antispasmodic for stone diseases of the kidneys and bladder;
- restores the body;
- causes restful sleep.
With the help of parsnip, many symptoms of diseases such as:
- stone kidney and bladder disease;
- nervous diseases;
- digestive system problems.
Such a rare skin disease, like vitiligo, is also treated by parsnips. The plant has analgesic and antimicrobial effect. This root is a wonderful tonic and prophylactic agent of multiple diseases.
Use of parsnip
The above root due to its excellent characteristics has been successfully used in many industries. Cookery, alternative medicine - among the many recipes of these categories is the plant parsnip. Its application here is as follows:
- as a fragrant spice for broths, soups, beer, side dishes;
- as the main vegetable with respect to low-calorie food;
- as a home remedy for various diseases (for example, a decoction of this root perfectly helps with coughing);
- as a feed crop for cows and pigs.
Also added to the preservation of vegetables is the plant parsnip. Using it when harvesting fruits for the winter is expressed in the use as a fragrant spice.
Planting plants at home
Pasternak is planted using the method of sowing seeds, which are quite large in size. Special rows are made, between which a distance of 40 cm should be maintained. In a line, seed from seed is planted at a distance of about 10 cm. In most cases, the necessary distance is provided later, when the seeds sprout, and they will be thinned.
An excellent time for planting is early spring. Seeds of this root crop are characterized by the following features:
- stand frost well;
- germinate within 20 days;
- love enough moist soil.
Poor germination is the main negative feature of parsnips.
This root is not very whimsical. Caring for the plant, it is important to remember the following recommendations:
- Shoots of parsnips need thinning and loosening of the soil.
- The plant prefers abundant watering only in dry weather. If it rained for some time, it is no longer necessary to water it, since an excessive amount of moisture is not at all desirable.
- This root crop does not attract pests, therefore it is not necessary to spray it with chemicals.
- Pasternak for a good harvest can be fed. As fertilizers, it is recommended to use biostimulants or special complexes.
Useful root can be obtained without much effort. It is important only to follow the above rules of plant care - and then it will please a rich harvest.
How to harvest parsnips?
Cleaning this root can be done in two ways:
- In late autumn, after all root crops, preferably in dry weather. The leaves are carefully cut, the root is dug out and dried. You need to store such a vegetable in dry cellars or in containers, sprinkled it with sand.
- In the autumn, cut the leaves, and the roots leave to overwinter and remove them from the field in early spring.
It is necessary to remember a few recommendations when choosing a parsnip:
- the whiter the root crop, the sweeter it is;
- it is desirable to choose only solid roots for cooking, without spoilage and spots, of not particularly large size, since in others the edible part is too veiny.
It is important to know that in no case should wild parsnip be eaten, as it is poisonous.
When preparing many dishes you can use parsnip. The plant, the recipes of which are simple, is used in most cases as an aromatic spice. It is added in the form of a hammer to homemade coffee, boiled on the basis of parsnip broths and soups. It blends well with other root vegetables, giving a refined taste, for example, stewed vegetables.
In England, parsnips cook festive dishes. For example, according to an old recipe, this plant must be fried in a dry frying pan on both sides. Then put it in a saucepan, pour boiling water and cook until ready. After this, make mashed potatoes. Serve it as a side dish for meat or fish.
Another, no less tasty, recipe involves frying parsnips, like potatoes. It needs to be peeled and cut into preferred slices and fried in olive oil. At the end of cooking add onions and tomatoes, salt. Tomatoes can be replaced by tomato juice. The dish turns out very tender, tasty and appetizing.
Also, this root, pre-moistened in olive oil, cooked on the grill.
From parsnip you can cook salads or mashed potatoes. There are many recipes, there would be a desire!
Contraindications to the use of parsnip
This root is strictly forbidden to be used for cooking or as a medicine for people with the following diseases:
- Skin inflammation - photodermatosis - is when the increased sensitivity of the skin to the sun's rays. The fact is that parsnip contains furocoumarins, which increase skin sensitivity to light.
- Individual intolerance.
Also this plant is contraindicated for people aged and young children.
Pasternak is a plant with excellent healing properties and taste. Grow it does not amount to special difficulties. But, applying it as a medicine, you must first consult with the doctor to avoid many difficult and unpleasant consequences.


How Do Snails Make Shells – How are They Formed
I was doing a bit of gardening recently when I came across a snail with a chunk of its shell missing. I thought to myself, how do these shells work? I wander if the little guy can grow another one…? I did some further digging, excuse the pun, and this is what I uncovered!
How do snails make shells?
Snails make their shells with a gland called the 'mucous pedal gland'. The function of this gland is to produce a calcium rich mucous which the snail spreads on the outer rim of the original shell. Over time this mucous hardens, at first forming a weak, soft edge that eventually becomes hard like the rest. This process is repeated as necessary to ensure the shell grows along with the snail. Land, garden and sea snails all follow the same shell growth process.
Through my research I also discovered that there are over forty thousand species of snail and some of them only live in water. Can you imagine that?! I also discovered just how important a role the shells play in the life of a snail and how some of their reproductive methods are totally crazy. Check this out!
Do snails have shells when they are born
All snails are born with a basic soft shell called a 'protoconch'. The shells are made of calcium carbonate, which is a chemical compound of calcium and protein also found in rocks, seashells and even dark green vegetables.
Where Do Snail Shells come from & How are Snail Shells Formed
As a snail reaches maturity, their original shell becomes the smallest part of the spiral we see in all snail shells. As the shell grows, it is pushed around the snail like an unwinding spring, this is the reason for the spiral shape. Because of the way the snail forms it's shell it is also capable of repairing it, the mucous excretion acting like glue to seal a wound – so I'm sure my little garden friend will be fine.
Now, given that the shell is made of calcium carbonate, you might have guessed that the main ingredient for the shell is calcium – this means that to grow a shell effectively, snails must consume large quantities of it to fuel their mucous production. All snails hatch from calcium dense eggs and instinct tells them to eat the eggshell after they hatch. This sets them on the path of seeking out calcium – from birth they hunt for anything and everything plant based containing this essential dietary ingredient (snails are omnivores with very few genetically exceptional species that may occasionally eat fish or other snails).
Land snails often look for green vegetables such as spinach and broccoli. Snails that spend their lives in the water have a diet primarily consisting of plants like algae and kelp.
Diet has a large impact on the pattern of the shell too! Snails with a diverse diet tend to have more vibrant and interesting patterned shell, which is why sea snails living in warmer climates tend to be the most eye-catching, due to the larger variety of available foods.
How Do Snails Make Shells
How Do Snails Make Shells
Why do snails have a shell?
The purpose of a snail's shell is very diverse and it's kind of like a little snail house, though it's technically a living part of the snail. Because of the genetic make-up of a snail, like all members of the gastropod family, their entire body is very moist – maintained by their mucous production mentioned earlier – as such, they require a moist environment to survive.
This is why we rarely see snails on the sidewalk when it's sunny and dry, it makes it very difficult and uncomfortable for the snail to move around as it has to produce far more mucous to do so. If it's really hot, then the shell acts as a very necessary sun shield where the snail can retreat into and stay nice and wet. Shells are also very useful as a means of defence against predators such as birds and fish – the strong shell being virtually impenetrable to many species.
They can also hide well as their shells often camouflage well with the environment in which they get their food from – as I mentioned earlier, the shell pattern and colour changes based on diet. If a snail feels threatened it can retract its entire body into the shell so that only very persistent and well-equipped predators can get at them. Birds like the song thrush will clasp a snail in its strong beak and repeatedly smash it against a solid object until they successfully break the hard shell.
Other large predators such as blue jays, ravens, hawks and owls will actually swallow smaller snails whole, in which case the shells are likely only to cause a minor stomach upset for their attackers…hardly a fair trade!
How are snails attached to their shells?
While we might look at the shell as the snail's home, it is attached from birth and cannot be removed. The shell should be considered as an extension of the snail itself, like a human's ribcage.
Can a snail live without its shell or Do Snails Die when their Shells Break?
The short answer is, sadly, no. So, if my little friend's shell was more severely damaged, he probably wouldn't have made it.
Imagine if your rib cage was on the outside of your body. Our ribcage is very important for our survival as it protects our important bits! Without our ribcage we couldn't survive as it supports our ability to breathe and it is the same for the snail. Not only does the snail breathe through a breathing hole in its shell, it simply wouldn't survive the elements without it. Who would have known that a snail's greatest defence mechanism is also one of its most vital organs!
Can snails regrow their shells?
As mentioned earlier, a snail can make minor repairs to their shell as needed, however, to regrow the entire shell would sadly be impossible because to lose the shell means death.
Where do snails come from? Reproduction and more!
One of the most interesting finds I came across in my search for snail information is that the majority of snails don't reproduce like humans, or many other mammals at that. In fact, their reproduction methods are incredibly rare in the sense that most snails are hermaphrodites. This means that the snail is both male and female – possessing all necessary elements required to produce both egg and sperm. This means that a snail can reproduce all by itself, isn't that crazy?! While it is possible for snails to reproduce by themselves, they generally prefer to find a mate, because the chance of survival for a baby snail that is self-fertilised is much lower than if they produce with a sexual partner.
One of the most fascinating discoveries I came across is that some species of snail use a mechanism commonly called a 'love dart'. Love darts are made up of calcium and contain hormones that help to enhance reproductive capability of the party that is 'shot' with the dart. Love darts are typically present in snails who have been sexually mature for a while and reproduced in the past. In the final stages of reproduction snails will shoot these love darts into their sexual partners as a part of the mating ritual.
The only problem is that sometimes these darts that are designed to help with successful reproduction, actually have the potential to pass right through the snail on impact and damage vital organs! It's a good thing these snails don't have thought processes like human beings – they are very instinct oriented beings. Otherwise these particular species would probably die out from fear of reproducing!
Save the snail shell!
What a journey that was – I hope you enjoyed learning about snails as much as I did! Remember that all snails are born with their shell and that it is vital for their survival. So, if you're ever in the garden and you see a snail with a cracked shell, you can help the snail by moving it out of the sun so that it doesn't dry out while it's repairing itself. Some people have been recorded to use glue or sticky tape successfully to help fix snail shells, but that might be a level of commitment you're not looking for with your little garden friends. (Or pests, depending on who you ask!)
Huge snail shell
Huge snail shell


text:
Familiarize baby with loved ones through pictures.
- Family photos (individual family photos are best if possible)
- Blu Tak / masking tape
- Frames (optional) OR
- Digital photo frame OR
- Family photo album
What to do:
- Put up photos of immediate and extended family on the wall, above nappy change area, on the front of a door where baby can see, at baby's eye level or in a digital picture frame.
- If adding pictures on a wall, as you pass the pictures with baby, point and name all the family members in the pictures. When sticking them at baby's level, point to and name the pictures. When baby looks at the pictures themselves, name who they are looking at "Yes, that's Uncle Sam" etc.
- Ask your baby where Grandpa is or where Uncle Brian is and see if your baby will point to their pictures, your baby may just look in the direction at the photo without pointing and babble. This shows that baby is able to recognize who you are referring too.
- As you make this a frequent activity, baby will begin to recognize, point and identify family members. It will also provide enhance memory skills as baby remembers each of the family members.
Hints and Tips:
- If you put pictures in your baby's room, you may want to hang some at baby's eye level to encourage standing. For those pictures just simply hang them on the wall using tape, a frame may fall and shatter causing injury to your baby.
- You could also cut these pictures out and hang them from the ceiling/cot (or make a mobile), directly over your baby's cot. Don't hang them to low because your baby might pull them off.
- When reading a story during the bedtime routine, have some pictures in an album, before reading the story, go through the album and name each person.
- When using a digital picture frame, put it somewhere the baby will see. Go through each picture and name each family member.


text:
This is the second article in a series on publishing text in Hebrew and Yiddish for genealogy books. The first article looked at Finding Hebrew Fonts. This article looks at using those fonts to publish Hebrew, Yiddish or any Right-to-Left (RTL) language using Adboe InDesign, without having to buy the more expensive Adobe InDesign ME (which has extensive support for RTL languages).
The standard software for professional publishing these days is Adobe InDesign. When publishing genealogy books there are genealogy programs that can output formatted reports and books (such as the book output options of Heredis and GEDitCOM II mentioned on Tuesday), but if you want a fully customized book that can be published professionally (or through an online publisher/printer like lulu.com) either you or someone else who is helping you will likely need to use InDesign. InDesign itself is not cheap (about $650), but if you want to use RTL languages like Hebrew, Yiddish, or Arabic, it costs hundreds of dollars more for the ME (Middle East) version.
Why would you want to use RTL languages in a genealogy book? Some examples include transcribing Jewish gravestones which in many cases are at least partially (and frequently wholly) in Hebrew, and transcribing handwritten Yiddish letters. You could just put in a translation of the texts, but adding the original text, especially when the orginal may be hard to read, is a nice touch.
There are actually two InDesign add-ons you can buy that will enable RTL features in standard InDesign, ScribeDOOR from WinSoft International and World Tools from In-Tools. The cheapest solution is still $99. Again, perhaps too expensive, especially if it's not for a copy of InDesign you own. So what if you could use RTL langauges in InDesign without an expensive plug-in? Well it turns out you can, with a little trick I'm going to show you.
Keep in mind this trick won't add all the RTL features that the ME version of InDesign offers, but it will let you insert RTL text that will lay out properly. For short texts like gravestone transcriptions, or simple texts like letters, this is more than enough. If you want to format complicated things like forms and complex layouts, chances are you'll need to spend the extra money and get one of the other solutions.
Technically this has been possible since InDesign CS4, but I believe it may have required some scripting to make it work. I'm using CS6 and there is nothing you need to get it working other than following the steps below.
Open InDesign, and go to the Paragraph settings. You want to select the Adobe World-Ready Paragraph Composer:
|Step 1: Select the Adobe World-Ready Paragraph Composer|
This is what defines the type of text-box you create when using the Type Tool in InDesign.
Next, select the Type Tool:
|Step 2: Select the Type Tool, and create a text box|
and with the Type Tool selected, create a text box on the page.
|Step 3: Command/Control Click and select 'Fill with Placeholder Text' from menu|
|Step 4: Select Hebrew from the pop-up menu|
|Hebrew Placeholder Text in the text box|
Now you just delete the Hebrew text and your cursor will be on the right side of the text box, ready to enter any RTL text, whether Hebrew, Yiddish or Arabic.
|Empty Text Box in RTL mode ready for text entry|
You can change your font, size, whatever – and it will now all work in this text box. Use any number of Hebrew fonts, like those I mentioned in my recent article Finding Hebrew Fonts.
If you use this tip, let me know. If you're interested in hearing more about publishing genealogy books, let me know in the comments.


Not using Time Doctor could be worse for you than smoking pot
It has been proven by researchers that multitasking can often double the amount of time it takes to accomplish a task, decreases your and effectiveness with each task AND even decreases your IQ – in one study the effects were worse than smoking pot.
In other words, when you multitask, you not only take longer to accomplish each task, but you are also less effective in accomplishing your tasks.
Time Doctor helps to reduce multitasking in a few different ways. Firstly there is the conscious attention of choosing exactly what you are working on. This is crucial. It's easy to go with the flow from activity to activity, but this makes you much more prone to interruptions. Time Doctor helps you to consciously direct your activities (and focus) to a specific task.
Also the activity bar on Time Doctor helps to remind users what task they should be working on.
Status Bar
The activity bar appears on the desktop screen at all times displaying the current priority.
Read more…


text:
Nickel is a silvery-white metal with a slight golden tinge that takes a high polish.
It is one of only four elements that are magnetic at or near room temperature.
Two thirds of nickel is used to make stainless steel. About 85% of metallic nickel is used in combination with other metals to make alloys and many other corrosion resistant alloys. Nickel is also used in coinage and for armor plating.


The Curious Origin of the Word 'Robot'
The interesting origins of a ubiquitous word
Here's a question for you: when did the word 'robot' first enter the English language? And where did it come from? There are a few misconceptions about the origins and various meanings of the term 'robot', so the issue is worth examining a little more closely. The most common definition of 'robot' is the one provided by the Oxford English Dictionary: 'An intelligent artificial being typically made of metal and resembling in some way a human or other animal.' But the story of how the word came to have this meaning is a curious one. Its origin, indeed, takes us back to nineteenth-century Europe.
'Robot' makes its debut in the English language, perhaps surprisingly, during the Victorian age: the first citation is from 1839. But it doesn't refer to the humanoid machines of a million science-fiction novels and films made since, but rather to a 'central European system of serfdom, by which a tenant's rent was paid in forced labour or service' (OED). This word came to English via the German, though the word ultimately derives from the Czech robota Rossum's Universal Robotsmeaning 'forced labour' or 'slavery'. Not a very pleasant etymology; though the Austrian Empire banned slavery in 1848, which is something.
The modern meaning of the word 'robot' has its origins in a 1920 play by the remarkable and fascinating Czech writer Karel Čapek. The play, titled R. U. R. (Rossum's Universal Robots), begins in a factory which manufactures artificial people, the 'universal robots' of the play's title. The robots are designed to serve humans and work for them, but the robots eventually turn on their masters, wiping out the human race (shades, or rather foreshadowings, of The Terminator here). This sense of 'robot' is taken from the earlier one defined above – namely, the Czech for 'slave worker' or 'drudge'. But Karel Čapek himself didn't coin the word. As we've already seen, the word was in existence before he wrote his play. But nor did Čapek come up with the idea of taking the word 'robot' and using it to describe the man-made beings that feature in R. U. R. (Rossum's Universal Robots). He originally called them labori, from the Latin for 'work', but it was his brother, Josef Čapek, who suggested roboti.
Curiously, the robots which feature in Rossum's Universal Robots aren't really robots – at least, not if we're being picky and technical. They are closer to androids or cyborgs than robots, because they can be mistaken for real people (again, think of the Terminator in his/her many incarnations). So the first 'robots' in literature to be so named were, in a sense, misnamed – or rather, we've been misusing the term ever since. Such is the way language develops.
In 1938, Čapek's play was adapted by the BBC, and became the first piece of television science fiction ever to be broadcast.
Science fiction author Isaac Asimov is credited with inventing the spin-off word 'robotic' – Asimov famously formulated the Three Laws of Robotics. Curiously, there are technically four Laws – a 'zeroth' law was added later (no doubt inspired by the Laws of Thermodynamics).
So there we have it: the origin of 'robot' is stranger than it might first seem. You can continue to explore the unusual stories behind well-known words with the surprising history behind the word 'blatant' and the long history of the now ubiquitous word 'unfriend'.
 1. Pingback: A Short History of the Word 'Serendipity' | Interesting Literature
 2. I'm fond of robots and am intrigued by the current debate regarding artificial intelligence.
 3. As I understand it, 'robota' is Russian for 'to work' so maybe the precursor of Czech word.
 4. there free download of r u r in many format at manybooks dot net. here link.
 5. Very interesting! I had no clue about the real meaning of the word robot.
 6. Thanks for the insight.
 7. I hear that South-Africans use "robot" to refer to stoplights. Would be interesting to see how that meaning came about.


text:
BY CULLEN BIRD • PHOTO OF STRATHMORE RADAR STATION COURTESY OF ENVIRONMENT CANADA
Farmers are always at the mercy of the weather, but short- and long-term weather prediction technology is better than ever, with major improvements now in development.
Advances include improved radar, better long-horizon computer models with which to create long-term forecasts and AI programs that produce immediate six-hour weather snapshots. This is an especially good thing for Alberta as the province's geography makes forecasting a perennial challenge. "The mountains do create a lot of havoc in terms of where these storm systems are coming in," said Dan Kulak, an Environment Canada and Climate Change Canada (ECCC) meteorologist based in Edmonton. While air masses and storms that move across the coast of British Columbia may be well defined by the weather monitoring systems in place there, these become poorly defined as they move across the Rockies, he added.
Modern meteorology uses a range of methods to gather data about the weather and create forecasts. Radar stations pick up physical matter such as precipitation or debris from storms and weather events. Satellite images illustrate the movement of clouds and storms while ground stations measure rainfall and soil moisture.
As it is, the current weather system network is set up to predominantly cover the major cities of the Prairies, said Kulak.
"The quality of forecast models for the region is notably less than it is for other places in the world," said Drew Lerner, senior meteorologist and founder of World Weather Inc., a U.S.-based weather analysis company that focuses on agriculture. "It's very difficult to get computer forecast models to be accurate for more than, let's say, five to seven days down the road; things change in the Prairies very quickly."
Besides the Rockies, many other factors feed into weather prediction on the Prairies, including Arctic air masses and moisture from the Gulf of Mexico, Lerner said. "If you go into Vancouver, Ottawa, Toronto, Montreal, what you're going to find is the weather data quality is many times better than it is on the Prairies." Canada could greatly improve its weather forecasting and analysis with the creation of a unified climate and weather data network, he added.
Weather data collection and historical climate databases are now fragmented, with each province creating its own system of varying quality and accessibility. "Alberta's got a terrific data set for agricultural weather, but you go to Saskatchewan and it's very different. It's not the same presentation, it's not the same quality and the network is lacking," said Lerner. "Among folks who use weather forecasts for various purposes, there's a lot of frustration out there that they can't get good quality outlook."
Major improvements to ECCC's radar station system will certainly improve the nation's weather forecasting. The department will spend more than $131-million to replace 27 of its 31 radar stations with new installations twice as large and powerful. One new radar site will be built in Fort McMurray.
Twelve of these new stations are now complete, while the remaining 16, including the Fort McMurray site, will be ready to go in the months leading up to 2023. The new facilities will have greatly increased range and employ dual polarization technology, which uses both horizontal and vertical radar pulses to build detailed 3D imagery of weather systems and anomalies.
This will help ECCC meteorologists distinguish between various types of precipitation and provide better advanced warning, said Kulak. Indiscernible to conventional radar, the new system can detect the hamburger shape of falling raindrops and the round shape of hail pellets.
NEW WEATHER MODELLING SYSTEMS
Short-horizon weather predictions are the focus of a new artificial intelligence (AI) "nowcasting" technology developed by Google. In January, Google announced it has developed a program that uses machine learning and historical image analysis to make one-to-six-hour rainfall predictions.
Traditional numerical computer models require up to six hours to analyze huge amounts of data to make long-term forecasts. "Optical flow" models use image analysis to predict a storm's path, but do not take into account how much power it naturally loses over time.
Google researchers claim the AI program outperforms both numerical and optical flow models when making predictions one hour into the future. However, numerical models outperformed the nowcasting AI with predictions six hours or more into the future.
Google announced the release of MetNet in March. The new forecasting tool utilizes nowcasting and can predict weather up to eight hours into the future across the continental U.S. The company has not announced if and when it might deploy MetNet in Canada.
Weather prediction models such as MetNet based on deep neural networks have the potential to benefit farmers and the agriculture sector by improving the overall quality of forecasts, said Google brain researcher Nal Kalchbrenner, a member of the Google deep learning AI team.
MetNet may also benefit farmers "by dramatically increasing the resolution of forecasts in terms of their spatial granularity and their interval frequency, and by being able to easily analyse weather data in combination with agricultural data. [This can produce] agriculture-specific predictions beyond the core weather domain," said Kalchbrenner.
While there are exciting possibilities in international meteorology, additional innovations are being made closer to home.
Gathering weather data is one thing, interpreting and analyzing it is another, said Lerner. "The Canadian government has opted to not adequately staff the relevant field offices across the Prairies," he said. This has been the situation for more than a decade, he added. Though ECCC employs the right people, the department doesn't have the manpower to provide comprehensive analysis and quality control for long-range forecasts, he said.
An ECCC representative said in an email that it is adequately staffed to meet its mandate and "exerts control" over its longterm forecasts. "Staffing levels at forecast centres nationwide allow the delivery of ECCC's mandate and during times of increased weather activity, additional staff from other locations may be called upon to assist with surge demand," the email read.
Overall, Canada's weather prediction technology has undergone big improvements. ECCC is working on forecast computer models very comparable to new models in other countries, according to Lerner. "We're definitely advancing and I don't want to give the impression that Canada is years behind the rest of the world; that's not the case," he said.
Despite the increase in data variety and quantity such radar improvements will bring, Kulak said he is not concerned about interpreting the date he receives. "In general, yes, there's going to be a lot of data coming in," he said, adding meteorologists will require more training to handle it appropriately. Lerner emphasizes the many improvements being made to weather forecasting are good news. "There's a lot to be excited about," he said.


Enjin to promote equality as high-ranking UN Global Compact member
NFT blockchain company Enjin (ENJ/USD), a pioneer in its field, has become the first NFT platform to join the United Nations Global Compact. Enjin joins as one of the highest-ranking members, which is Participant. Membership in the organization, which offers guidance in environment, human rights, and labour, comes with a serious commitment to equality and sustainability.
Enjin's remarkable accomplishments in environmental protection
Enjin's achievements in decarbonizing NFTs on Ethereum (ETH/USD) are nothing short of remarkable. The company joined the Crypto Climate Accord and launched JumpNet, an eco-friendly blockchain, to support the Global Compact's ninth Principle directly. This places emphasis on the diffusion and development of eco-friendly technologies. The blockchain consumes just 0.01% of the energy that Ethereum does, which remains the network NFTs most commonly use. Enjin is also developing the Polkadot-based (DOT/USD) Efinity, a sharded Proof of Stake parachain.
Irakli Beridze, Head of the UN AI and Robotics Centre, welcomed the partnership, saying:
"We are excited to work with Enjin to explore how blockchain and NFTs can contribute to the fulfilment of the United Nations Sustainable Development Goals. While we are struggling to recover from the global pandemic and its impacts, we are experiencing exponential growth of technologies like AI and blockchain. More than ever, we need to take advantage and harness the potential of these new technologies to ensure that we are better equipped and more united in the future, in order to make our planet a more liveable, equitable place for all."
Enjin will explore ways for NFT tech to become the monetization and financial backbone to combat climate change and deploy permission-less access to NFT markets to eliminate inequalities between different countries, making it possible for NFT users and creators to compete with equal standing across the globe.
Enjin CEO Maxim Blagov commented the development:
The company's membership comes against the backdrop of the understanding that social and environmental sustainability is key to unlocking trillions in value in the near future. Enjin has addressed highly publicized criticism against NFTs on account of their carbon footprint by establishing a detailed plan to enable carbon-neutral NFTs and releasing JumpNet.
The post Enjin to promote equality as high-ranking UN Global Compact member appeared first on Invezz.
Publication date:
07/20/2021 - 13:06


Back to top
ReQL command: distinct
Command syntax
sequence.distinct() → array
table.distinct([{index: }]) → stream
r.distinct(sequence) → array
r.distinct(table, [{index: }]) → stream
Removes duplicates from elements in a sequence.
The distinct command can be called on any sequence or table with an index.
While distinct can be called on a table without an index, the only effect will be to convert the table into a stream; the content of the stream will not be affected.
Example: Which unique villains have been vanquished by Marvel heroes?
r.table('marvel').concatMap(function(hero) {
 return hero('villainList')
}).distinct().run(conn, callback)
Example: Topics in a table of messages have a secondary index on them, and more than one message can have the same topic. What are the unique topics in the table?
r.table('messages').distinct({index: 'topics'}).run(conn, callback)
The above structure is functionally identical to:
r.table('messages')('topics').distinct().run(conn, callback)
However, the first form (passing the index as an argument to distinct) is faster, and won't run into array limit issues since it's returning a stream.
Get more help
Couldn't find what you were looking for?


- Please log in or register to access this feature.
SEARCH
SEARCH BY CITATION
Keywords:
 - acid tolerance;
 - bile tolerance;
 - microencapsulation;
 - probiotics
ABSTRACT: Eight strains of probiotic bacteria, including Lactobacillus rhamnosus, Bifidobacterium longum, L. salivarius, L. plantarum, L. acidophilus, L. paracasei, B. lactis type Bl-O4, and B. lactis type Bi-07, were studied for their acid, bile, and heat tolerance. Microencapsulation in alginate matrix was used to enhance survival of the bacteria in acid and bile as well as a brief exposure to heat. Free probiotic organisms were used as a control. The acid tolerance of probiotic organisms was tested using HCl in MRS broth over a 2-h incubation period. Bile tolerance was tested using 2 types of bile salts, oxgall and taurocholic acid, over an 8-h incubation period. Heat tolerance was tested by exposing the probiotic organisms to 65 °C for up to 1 h. Results indicated microencapsulated probiotic bacteria survived better (P < 0.05) than free probiotic bacteria in MRS containing HCl. When free probiotic bacteria were exposed to oxgall, viability was reduced by 6.51-log CFU/mL, whereas only 3.36-log CFU/mL was lost in microencapsulated strains. At 30 min of heat treatment, microencapsulated probiotic bacteria survived with an average loss of only 4.17-log CFU/mL, compared to 6.74-log CFU/mL loss with free probiotic bacteria. However, after 1 h of heating both free and microencapsulated probiotic strains showed similar losses in viability. Overall microencapsulation improved the survival of probiotic bacteria when exposed to acidic conditions, bile salts, and mild heat treatment.


text:
The Douglas O-2 was a 1920s American observation aircraft built by the Douglas Aircraft Company.
The Douglas O-2 was a conventional but reliable biplane, which attracted orders for 25 more aircraft: 18 O-2A equipped for night flying and six O-2B dual-control command aircraft for the US Army. Plus, there was one civil O-2BS modified for James McKee, who made a trans-Canada flight in September 1926. In 1927 the O-2BS was adapted as a three-seater with a radial engine.
The O-2H aircraft were an entirely new design but continued the same model number. Major differences were heavily staggered wings, a more compact engine installation, and clean landing gear secured to the fuselage. The fuselage was redesigned and a new tailplane was fitted, with staggered wings with unequal span. The O-2H incorporated the rigid-strut aileron interconnections of the O-2E and an improved split-axel landing gear. The USAAC received 101 O-2Hs between 1928 and 1930, and the National Guard had an additional 40-141 built.
Up to 2011 there were no O-2 aircraft were known to exist. However, in 2011 the wreckage of O-2H 29-163 that crashed out of Kelly Field Texas on March 16, 1933 has been positively identified. The only similar aircraft to exist is a restored Douglas M-2 mailplane and a follow-on derivative of the O-25 variant, an O-38.
* All downloadable drawings and photos are high resolution — 300 dpi


text:
MonoScan provides a non-contact ultrasonic answer for measuring the level of chemical solutions in KunMing Chemical company.
KunMing Qingshang Chemical is China's leading provider of a variety of chemical products. The company produces several types of chemical solutions such as, Ammonium Chloride (NH4CI), Niter (KNO3) and more. These solutions are stored in large vessels and need to be carefully controlled and monitored.
A number of problems may be encountered when measuring chemical solution levels:
- The environment inside the tank may be highly corrosive and therefore require vigorous measurement devices.
- The chemical solutions release gases which create a "blanket" of vapor covering the liquid solution, and impede accessibility to the solution's surface.
- The vapors can change the velocity of the sound waves passing through them, resulting in heavy interference in the measurement process.
- In the past, KunMing Chemical used contact devices that were not robust enough to withstand the corrosive environment inside the tanks. For that reason the company considered non-contact, ultrasonic devices which are robust and stable and can provide more accurate measurement results.


CodeIgniter 4 AJAX Tutorial
About Lesson
Creating my account system in CodeIgniter 4 involves several steps, including setting up the database, creating controllers, models, and views, and implementing user registration, login, and logout functionalities. Below is a simple tutorial to guide you through the process. Make sure you have CodeIgniter 4 installed on your server before starting.
Step 1: Database Setup
Create a database and a table to store user information.

Step 2: CodeIgniter Configuration
Make sure your CodeIgniter configuration files are set up correctly, especially the App/Config/Database.php configuration file with the database connection details.

Step 3: Controller
Create a controller for handling user registration, login, and logout. In your app/Controllers/myaccount/MyAccount.php file:
<?php
namespace App\Controllers\myaccount;
use App\Controllers\BaseController;
use App\Models\login\LoginModel;
class MyAccount extends BaseController {
public function __construct() {
$db = db_connect();
$this->session = \Config\Services::session();
$this->login = new LoginModel($db);
$this->ip_address = $_SERVER['REMOTE_ADDR'];
$this->datetime = date("Y-m-d H:i:s");
}
public function index() {
$this->myaccount();
}
public function myaccount() {
if($this->session->get('login_status')) {
$data = [];
$data ["result"] = $this->login->getEntry(['id' => $this->session->get('login_id')]);
$data ['content_title'] = 'My Account';
echo view('myaccount/myaccount', $data);
} else {
return redirect()->to(base_url('login'));
}
}
public function update() {
$id = $this->request->getPost('id');
$name = $this->request->getPost('name');
$email = $this->request->getPost('email');
$password = $this->request->getPost('password');
$mobile_number = $this->request->getPost('mobile_number');
$where = [
'email' => $email,
'id !=' => $id,
];
$has_account = $this->login->getEntry($where);
if($has_account) {
$json = [
'status' => false,
'message' => showDangerMessage("Entered email address is already registered"),
];
} else {
if($password) {
$data = [
'name' => $name,
'email' => $email,
'password' => md5($password),
'mobile_number' => $mobile_number,
'ip_address' => $this->ip_address,
];
} else {
$data = [
'name' => $name,
'email' => $email,
'mobile_number' => $mobile_number,
'ip_address' => $this->ip_address,
];
}
$result = $this->login->updateEntry(['id' => $id], $data);
if($result) {
$result = $this->login->getEntry(['id' => $id]);
if($result) {
$data = [
'login_id' => $result->id,
'login_email' => $result->email,
'login_name' => $result->name,
'login_mobile_number' => $result->mobile_number,
'user_status' => $result->status,
'login_status' => TRUE,
];
$this->session->set($data);
}
$json = [
'status' => true,
'message' => showSuccessMessage("Your account has been updated successfully"),
];
} else {
$json = [
'status' => false,
'message' => showDangerMessage("Something went wrong. Please try again!"),
];
}
}
echo json_encode($json);
}
}

Step 4: Views
Create views for user registration and login in the app/Views/myaccount directory
<?php $session = \Config\Services::session();
?>
<!DOCTYPE html>

<title><?php echo $content_title; ?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="_URL_

Step 5: Routes
Define the routes in app/Config/Routes.php:
// My Account Routes
$routes->group('myaccount', function($routes) {
$routes->get('/', 'myaccount\MyAccount::index', ['filter' => 'auth']);
$routes->post('update', 'myaccount\MyAccount


text:
Microsoft Azure Search is the default search engine for Sitecore, and is where Sitecore stores the content and analytics indexes. This topic describes:
Keeping costs low
Azure Search costs depend on the number and size of the documents that are ingested into search. If you are using xDB, you can keep your document count low by disabling indexing of anonymous contact data in the Contact Segmentation index.
You must look at the SKU size for your Azure Search solution. Each SKU size has several metric limitations but the main ones you must pay attention to are storage, index count, and document count. When designing your solution, you must keep these metrics in mind and monitor them, otherwise your search costs can grow faster than you might expect. The minimum SKU size you can use with Sitecore Azure Search is S1, this is because the sizes lower than S1 are limiting (for example, Basic only allows 100 fields in an index and Free is limited to three indexes).
There is no way to upgrade your existing Azure Search service to a different tier on the fly, so it is important you plan the right service capacity upfront. When you upgrade or downgrade, you must create a new service and rebuild all of the search indexes in Sitecore.
Understanding API keys
Sitecore communicates with Azure Search through its REST API; all calls to the API use an API key as the sole mechanism for authentication. When you deploy Sitecore with the ARM templates, a key is generated automatically for you and added to the
cloud.search connection string. You can always change the key if you need to and then update the
cloud.search connection string with the new value.
Scaling with Azure Search
Azure Search can scale in two dimensions: Partitions and Replicas. You can increase the number of documents you can store with Partitions, whereas with Replicas, you can achieve high availability and increase queries per second by copying your index to a new instance of the search service. You can use one or both scaling types, depending on your scaling requirements, but keep in mind that if you add an additional scaling type, then you increase your monthly costs. You can read about service administration for Azure Search in the Microsoft Azure portal and about how to scale resource levels for query and indexing workloads in Azure Search.
Monitoring your usage and metrics
Azure Search does not provide any form of traditional logging. However, you can obtain information about your service in the Azure portal on the service dashboard, through notifications, properties, and status messages.
On the dashboard, resource monitoring is limited to the information shown on the service dashboard and the metrics that you can obtain by querying the service. On the service dashboard, in the Usage section, you can quickly determine whether partition resource levels are adequate for your application.
You can use the Azure Search metrics: Search Latency, Search queries per sec., and Throttled queries percentage, to create alerts on the Azure Search and Monitor tabs. You can also create charts on the Monitor tab.
Search traffic analytics is another monitoring tool in Azure Search that gives you visibility of your search service and unlocks insights about your users and their behavior. When you enable this feature, you can copy your search service data to a storage account of your choice. You can process and manipulate this data from your search service logs and aggregated operational metrics, for further analysis.
Refer to the Microsoft Azure documentation website for more information about monitoring, usage, and query metrics in an Azure Search service; enabling and using Search Traffic Analytics; scaling resource levels for query and indexing workloads in Azure Search, and considerations about Azure Search performance and optimization.