Backtrader: Data Replay
One of the reasons backtesting often does not provide an accurate indication of real-world performance is that we receive a large chunk of information all at the same time. Specifically, the open, high, low and close data for a given time period. As such, we are missing important information about what happened between the open and the close. We know the highs price reached but we don't know how it got there. Was price action volatile? Was it a steady climb? Did price hit the lows first? The higher the timeframe you trade on, the more information you are missing. This is where replaying data from a lower time-frame can help add an extra layer of realism to your backtests (assuming you can find the lower time-frame data). Replaying data works in a similar fashion to re-sampling but with one key advantage. The lower time-frame data that you are using to create the higher time frame candle is used to paint a picture of what happened between the open and close. For example, you can work on the daily timeframe but also know that price dipped before reaching the high of the day by replaying minute data. Another benefit is that replaying data addresses an issue some of you may have encountered where both a stop loss and a take profit are hit on the same bar. This is usually due to a large volatile movement in one candle. The reason they can be both triggered is that the engine has no idea if the take profit was hit first or the stop loss. It only knows that price crossed both of the thresholds during that bar. When replaying data, this will not happen as one will be triggered first as the bar is built. As with everything, replaying data is not without its downsides. There are some added complexities introduced and things to be aware of when replaying data. Therefore, I think tackling these points is where this post can add some value.
Official Docs
The good news is, getting setup and replaying data is very straightforward. The official documentation gives some good examples and can be found here:
Candles are built with each tick of the lower time-frame
The first thing you need to be aware of when replaying data is that candles are built gradually. If you are referencing theHighLoworclose of a candle, the values can and will update with every tick of the data. Replaying data ticking through the day This might appear to be obvious when written down but it is easy to overlook. Especially if you are used to working on a higher time-frame and of reference[0]. This is because…
Next() is called on every tick of the lower time-frame
The next()method is called every time a bar on the input data is replayed. For example, if you replay data on the daily time-frame and using minute data, next()will be called every minute. The example image above was created by just printing OHLC data on each call ofnext(). Since next()is called so many times, we cannot simply run a script written for a higher timeframe. We must first add a few lines that prevent us from making entries/exits as the candle forms. More on that in a bit.
Bar numbers/data length only increase on when a bar is complete
In Backtrader, you can easily find out which bar number you are looking at by callinglen( Usually, (when not replaying data) the bar number will increase with each call ofnext(). However, when replaying data, it will only increase when each bar on the higher timeframe is complete. This allows you to identify when a bar is complete and a new one is starting. This also means that referencing the index position[-1] will return a full bar's worth of OHLC data for the candle that has just closed on the higher timeframe. On the other hand, referencing the index position [0] will only return data for a tick of the lower time frame. As mentioned above, it is a constantly evolving value with every call ofnext().
Identifying when you have a new bar
The following is a simple example of the next() method that can be copied into your own strategy to determine when to take actions on the higher timeframe.
 def __init__(self):
 _TAG_ tracking HTF
 self.last_bar = len(self)
 def next(self):
 bar = len(self)
 _TAG_ we are not in a new position and we have a bar on HTF.
 if not self.position and bar > self.last_bar:
 self.last_bar = bar
As you can see it is pretty straightforward. We are just checking whether the current bar is greater than the last bar recorded. Since self.last_baris recorded with every tick, bar will only be different to self.last_baron the first tick of the new bar. Furthermore, you can reference index [-1]to get the full OHLC of the most recent full bar since it will only be called once per bar.
But I want the work on the last tick of the bar
If you prefer to work from the last tick of the bar, then you will need to have a counter. With each call of next, increase the counter by one. Then once a new bar is identified, reset the counter. You can then perform actionsif self.counter = x:. For example, if you are replaying minute data on the hourly timeframe you could perform an action every time the counter == 60.
Find This Post Useful?


Kahlua Shelf Life: Can It Go Bad?
If you're craving for a delicious adult beverage, there's no better way to scratch that itch than with a nice bottle of Kahlua.
Table Of Contents
You reach into your cupboard to make your favorite White Russian and find the bottle of Kahlua from a party you had last Christmas. As you grab the bottle and look for an expiration date, you might be wondering, "does Kahlua go bad?"
Whether you buy Kahlua regularly for yourself or you only get it every now and then for entertainment, knowing the shelf life of Kahlua is important.
What is Kahlua?
Kahlua is a rum-based liqueur that is meant to taste just like coffee. It is commonly used in alcoholic cocktails and is a great way to add some flavor and excitement to your cocktail parties.
Kahlua contains ingredients such as rum, vanilla bean, arabica coffee, and sugar. It first came on the scene in 1936 and is named after the Veracruz Nahuatl word of the same name, which means "House of the Acolhua people."
The alcohol content of Kahlua is about 20%, although there are some special versions of Kahlua that offer a lower viscosity and a higher alcohol content. Because of this, they are usually less sweet, too.
Kahlua can be consumed by itself, usually neat or on ice, or it can be used in cocktails. It is often used in desserts and as a topping for ice cream, cheesecakes, and cakes, too. Since it's made out of coffee beans, it also contains caffeine. Kahlua is used in some of the following popular cocktails:
 - Espresso Martini
 - White and Black Russians
 - Baby Guinness
 - Colorado Bulldog
 - Spanish coffee
 - Mudslide
Kahlua Shelf Life
Kahlua doesn't have the same long shelf life as other spirits, like whiskey, vodka, Tequila or rum. However, its shelf life might surprise you – it's longer than you think.
Does Kahlua Expire?
To determine the shelf life of your Kahlua, start by determining its production date. Usually, this will be indicated on the back of the bottle, toward the lower edge of the label. The lot number will include a lengthy list that is a combination of letters and numbers.
The first four digits of this combination are what you need to pay attention to. The first four digits represent the year in which the Kahlua was bottled and sent to the stores.
Usually, you'll see the letter L as the first in the sequence, which simply standards for "the last digit of the production year," while the number immediately following that will represent the year. If the number is a 6, it means it was produced in 2016.
How Long Does Kahlua Last?
Once you know the production date, you can determine the shelf life. Original Kahlua has an average shelf life of four years, while Flavored Kahlua usually lasts around two years. Ready to Mix Kahlua has the shortest shelf life – it typically only lasts about a year.
What's important to note is that these dates are better indicators of freshness and quality than they are of safety. You can easily use the liquor after these dates, but it won't have the best possible flavors. Six-year-old Kahlua, if unopened, is probably safe to use, but it won't taste as good as a bottle that's brand new.
Once you open a bottle of Kahlua, these dates become expedited. If you have a bottle of four-year-old Kahlua that's been open for three weeks, it's not going to taste good as a fresh bottle that you just barely opened.
How to Store Kahlua
There are several types of Kahlua on the market, including Original, Flavored, and Ready-to-Drink. Luckily, you don't need to memorize different storage rules for all three – storing any type of Kahlua is usually the same.
When you have an unopened bottle of this liquor, you can store it in any dark, cool place – just as you would a bottle of rum. Usually, a pantry, basement, or cellar is a great option, but you could even stash it in the back of the liquor cabinet for the kitchen cupboard, too. Just keep it cool.
You are more than welcome to store Kahlua in the refrigerator, but if it has not been opened, this is not necessary.
Does Kahlua Need to Be Refrigerated After Opening?
While unopened Kahlua can easily be stored in any cool, dry location, Kahlua that has been opened needs to be stashed in a colder environment.
Once your bottle of Kahlua has been open for a few hours, it needs to be moved to the refrigerator. Not only will it taste best chilled, but this also preserves its shelf life, too.
Make sure you seal your bottle using the original cap. This will provide the best possible seal.
There are people out there who will tell you that Kahlua does not need to be refrigerated after opening. Technically, this is true, as you won't see a difference in how safe it is to drink if it is not refrigerated. However, if you use Kahlua on a regular basis, you are going to want to keep it in the fridge. Not only will it improve its taste and quality, but you won't have to chill it before each serving, either.
How to Tell if Kahlua Has Spoiled
Like other common types of alcohol-based liqueurs (such as amaretto), it's pretty uncommon for Kahlua to truly go bad.
The exception to this is if you are storing Kahlua for a lengthy period of time. If that's the case, you will want to keep an eye out for common signs of spoilage like a strange smell, discoloration, bad taste, or even mold. If you notice these, get rid of the liqueur immediately.
As long as the Kahlua seems normal, you're probably fine to give it a state. If it still has all of its original flavors and aromas, it's perfectly safe to drink.
Can you use Kahlua after the expiration date?
Kahlua, like many types of alcohol, often does not have an expiration date. Therefore, it can be difficult to determine whether it has actually gone bad or not. Instead of an expiration date, it might have a production date, a processing date, a packing date, or a bottling date that will tell you when the product was created.
Otherwise, most manufacturers recommend that Kahlua be consumed within four years of the production date.
Does Kahlua Mudslide go bad?
A Mudslide is simply a drink that is commonly made with Kahlua and other ingredients. There are also premade Mudslide blenders that include ingredients such as nondairy creamers. These mixers go bad a bit more quickly than regular Kahlua, so you will want to pay attention to the dates on the labels. In addition, watch out for signs of spoilage like chunks and odors, too.
Can old Kahlua make you sick?
It is rare for any kind of liqueur or cordial to go bad. The alcohol and the sugar will both serve as preservatives. The brown glass of the bottle can also help keep you safe, as it will prevent sunlight or heat from wreaking havoc with the contents. At the very worst, you might get an upset stomach by drinking old Kahlua.
Up Next: Can Baileys Irish Cream Go Bad?
kahlua shelf life
*Photo by dcwcreations/depositphotos
Scroll to Top


Bombing of Plaza de Mayo
From Wikipedia, the free encyclopedia
Jump to: navigation, search
Bombing of Plaza de Mayo
Civilian casualties on June 16, 1955
Date June 16, 1955 (1955-06-16)
Location Plaza de Mayo
Participants Argentine Naval Aviation
Argentine Air Force
Outcome Failed coup
Deaths 150-364[1]
At 12:40 pm, a number of aircraft from the Argentine Navy and Air Force strafed and bombed Plaza de Mayo square in Buenos Aires, in what remains to this day the largest aerial bombing ever on the Argentine mainland. The attack targeted the adjacent Casa Rosada, the official seat of government, as a large crowd was expressing support for president Juan Perón. The strike took place during a day of official public demonstrations to condemn the burning of a national flag allegedly carried out by detractors of Perón during the recent procession of Corpus Christi. The action was to be the first step in an eventually aborted coup d'état.
Thirty-four Argentine Naval Aviation and Air Force airplanes, consisting of 22 North American AT-6, five Beechcraft AT-11, three Consolidated PBY Catalina flying boats, and four Air Force Gloster Meteor joined the attack.
A total of 9.5 tonnes of ordnance were dropped, killing 150-364[2] (mostly civilians) and injuring more than 800. Fire ceased at 5:20 pm local time. Three planes were shot down by hastily-mounted anti-aircraft guns. Nineteen Mounted Grenadiers, members of the presidential guard, were killed in action. One AT-6 was shot down by a loyal Gloster Meteor over the Río de la Plata.
Meanwhile, Argentine marines attempted an assault on Casa Rosada, but were repelled by loyal forces. The rebels withdrew towards the premises of the Ministry of the Navy, where they were forced to surrender in the evening along with the leader of the ill-fated coup, Vice-Admiral Samuel Toranzo Calderón. His second in command, Vice-Admiral Benjamín Gargiulo, committed suicide.
That night, angry crowds burnt down eight churches and a cathedral.
After the failure of the intended coup (as neither the Army nor the bulk of the Air Force joined in), the pilots received orders to fly towards Uruguay and ask for asylum.
In September of that year, the bulk of the armed forces would join in the Revolución Libertadora, which overthrew president Perón and started a period of military rule that ended in the 1958 presidential elections, won by Arturo Frondizi of the UCRI. Even though the Peronist party was not allowed to enter the ballot, Frondizi's victory was influenced by Perón's instructions to his loyal base, given from his exile in Madrid, to tactically vote for Frondizi.
One of the naval pilots who took part in the bombings, Máximo Rivero Kelly was promoted and was second-in-command of the Argentine Navy during the presidency of Raúl Alfonsín. He claims the naval pilots aimed to hit the presidential palace but that one aircraft missed, causing about 20 killed among the civilians.[3]
Bullet and shrapnel marks are still visible on some buildings on the south side of the square as of 2013.
See also[edit]
Coordinates: 34°36′30″S 58°22′19″W / 34.60833°S 58.37194°W / -34.60833; -58.37194
 1. ^ Bombas sobre Buenos Aires: Gestación y desarollo del bombardeo aéreo sobre la Plaza de Mayo del 16 de junio de 1955, Daniel E. Cichero, p.163, Vergara Grupo Zeta, 2005.
 3. ^ Testimonios del Bombardeo


Clio Logo
This small building was constructed circa 1820 and served as a stopover for a stagecoach route that passed through Danville. Nathaniel Webster, the third cousin to Daniel Webster and the town's first postmaster, operated the post office from this building. Passengers could buy refreshments at this location while their horses rested and carriages repaired. Early customer accounts remain intact, written on the wall. The history of this stagecoach stop demonstrates the importance of the stagecoach for travel, commerce, and mail delivery.
This building was a stagecoach stop operated by Nathaniel Webster, a cousin of Daniel Webster, throughout most of the 19th century. Nathaniel was the first designated postmaster of Danville (then Hawke), from 1825 to 1836. Webster conducted postal operations from his homestead, and maintained a small general store in this small building. Town history describes it as being a layover for scheduled stagecoach routes passing through Danville and delivering the mail, where coach passengers could buy refreshments and provisions while the horses were being rested, watered and fed in the adjoining stable.
The stable was removed and reconstructed elsewhere in the 1980s. Thanks to local preservationists, the stagecoach building remains essentially as it was built, providing a snapshot of the site of the first recorded postal activity in town, as well as a facet of early public transportation in a by-gone era. It is possible, although not confirmed, that the building may be the last remaining of such structures in New Hampshire in its original state.
Town of Danville Heritage Commission, Webster Stagecoach and Store. Accessed March 19th 2020.


How to Install a Dual Fuel Range
Worker Removes Appliance Dolly from New Kitchen Range
What You'll Need
Electric outlet and wiring
Hose or pipes (for gas source)
Adjustable wrench
Dual fuel ranges have grown in reputation as the importance of proficient model home kitchens has increased. Installing dual fuel ranges can provide cooks with the benefits of more than one kind of fuel in preference to the restrictions of a solitary fuel range.
Dual fuel ranges, known as duel fuel stoves, have developed into a well-liked option for people whose budget and home design can contain them. Installing dual fuel ranges is easy provided you follow the proper steps and safety precautions.
Step 1 - Familiarize Yourself with Fundamentals of Dual Fuel Ranges
The dual fuel range is a stove which combines various fuels for cooking: electricity and gas. Gas is a clammy heat, and it provides enhanced temperature regulation for top-of-the-stove cooking. Great chefs tend to favor gas cooktops. Gas-fueled cooking has a lower operating cost compared to electric-fueled cooking, thus by using a gas-fueled cooktop one possibly saves on operating costs. The oven is typically operated by electricity.
Step 2 - Install Dual Fuel Range
pot heating on a gas burner
Clean and check the area where the old stove was placed. Ensure you have new electric lines for the oven. Inspect the quality of pipes for the gas source. Usually, dual-fuel ranges work with the existing 120 Volt outlet, so no need to have a specialized outlet for it. You need to ensure that the gas pipes from the source to the cooktops are firmly and safely fastened. Follow other reminders indicated in the owner's manual to ensure everything was set up correctly.
Step 3 - Install Gas Hose
If your home has no basement, the shutoff needs to be along the wall at an access panel's back. You need to take out the cap of the gas line using an adjustable wrench, if a gas range was never used before. Next, wrap the fitting on top of the stove while the gas pipe is coming up through the floor, using Teflon tape. Screw a flex hose end to the fitting along the gas stove, then tighten it using an adjustable wrench. After this, screw the other flex hose end onto the gas pipe coming up through the floor and tighten it using the wrench. Switch on the dual fuel range gas supply.
Step 4 - Take the Final Considerations
range with an open oven door
When it comes to selecting among various kinds of fuel for your range, always consider your safety while cooking. Also, in existing houses the kitchen design may limit your choice either to electricity alone or to gas alone as your cooking fuel. On the other hand, some existing houses do have the capability for dual-fueling of the preferred range. Budgeting also begs consideration: dual fuel ranges include higher purchase costs as well as higher maintenance costs than ranges which are either electric-fueled or gas-fueled only. Installation of the dual fuel range is a straight-forward job, which is normally guided by the manual provided by the manufacturer. Typically, the only concern of the dual fuel range purchaser is the piping for the gas source and the wiring for the electricity line.


text:
Are you ready to unleash your inner earth goddess? Look no further than stunning moss agate earrings. With their natural beauty and powerful energy, moss agate earrings can help connect you to the earth, promote growth and abundance, and bring balance to your life. But with so many options available, how do you choose the perfect pair? As a copywriter and digital marketing expert, I've done the research and compiled a guide to help you find the moss agate earrings that speak to your unique style and energy. From dainty studs to statement hoops, there's a pair of moss agate earrings out there for everyone. Let's dive in and discover the perfect pair to unleash your inner earth goddess.
What is Moss Agate?
Moss agate is a variety of chalcedony, a mineral in the quartz family. It is named for its moss-like green inclusions, which are actually mineral impurities such as iron and manganese. These inclusions create unique patterns and designs, making each moss agate stone one-of-a-kind. Moss agate is found all over the world, but some of the most highly prized specimens come from India, Brazil, and the United States.
Moss agate is a stone with a long history of use in jewelry and healing. It has been used for centuries to promote growth and abundance, both in the natural world and in our personal lives. It is said to enhance mental clarity and promote emotional balance, making it a popular stone among those seeking to connect with their inner selves and the earth.
Understanding the Different Styles of Moss Agate Earrings
Moss agate earrings come in a variety of styles, from dainty studs to statement hoops. Here are a few of the most popular styles:
Moss agate studs are a classic, timeless choice. They are perfect for everyday wear and can be dressed up or down.
Moss agate dangle earrings feature a stone or stones that hang from a hook or wire. They come in a variety of lengths and styles, from delicate to bold.
Moss agate hoop earrings are a statement piece. They come in a variety of sizes and styles, from small and simple to large and ornate.
Moss agate chandelier earrings are a dramatic choice. They feature multiple stones that hang from a central point, creating a cascading effect.
When choosing the style of your moss agate earrings, consider your personal style and the occasion. Dainty studs are perfect for everyday wear, while chandelier earrings are better suited for special events.
How to Care for Your Moss Agate Earrings
Moss agate is a relatively hard stone, but it can be scratched or damaged if not cared for properly. Here are a few tips to keep your moss agate earrings looking their best:
- **Avoid harsh chemicals:**
Avoid exposing your moss agate earrings to harsh chemicals such as bleach or ammonia. These chemicals can damage the stone and cause it to lose its luster.
- **Clean with a soft cloth:**
To clean your moss agate earrings, simply wipe them down with a soft cloth. Avoid using abrasive materials such as steel wool or harsh cleaners.
- **Store properly:**
When you're not wearing your moss agate earrings, store them in a soft cloth or jewelry box to protect them from scratches and damage.
With proper care, your moss agate earrings will last for years to come.
The Benefits of Wearing Moss Agate Earrings
In addition to their natural beauty, moss agate earrings are said to have a number of benefits for the wearer. Here are just a few:
- **Connection to the earth:**
Moss agate is a stone that is said to help connect us to the earth and promote a sense of grounding and stability.
- **Promotion of growth and abundance:**
Moss agate is also said to promote growth and abundance in all areas of life, from personal growth to financial abundance.
- **Enhanced mental clarity:**
Moss agate is believed to enhance mental clarity and promote emotional balance, making it a popular choice among those seeking to connect with their inner selves.
Whether you wear moss agate earrings for their natural beauty or their healing properties, they are sure to make a statement wherever you go.
Moss Agate Earrings as a Gift Idea
Moss agate earrings make a wonderful gift for any occasion, from birthdays to anniversaries to holidays. Here are a few ideas for gifting moss agate earrings:
Give the gift of moss agate earrings to celebrate a loved one's birthday. Choose a pair that reflects their personal style and energy.
Moss agate is said to promote growth and abundance, making it the perfect gift for an anniversary. Choose a pair of earrings that symbolize your love and commitment to one another.
Moss agate earrings make a unique and thoughtful gift for any holiday. Choose a pair that reflects the season, such as green for St. Patrick's Day or red for Christmas.
No matter the occasion, moss agate earrings are a gift that will be treasured for years to come.
When choosing moss agate earrings, there are a few factors to consider:
Consider the size of the earrings in relation to your face and the occasion. Dainty studs are perfect for everyday wear, while larger hoops or chandelier earrings are better suited for special events.
Choose a style that reflects your personal style and energy. Do you prefer simple, understated earrings or bold, statement-making pieces?
Moss agate comes in a variety of colors, from light green to dark green to brown. Choose a color that complements your skin tone and personal style.
Look for high-quality moss agate earrings that are well-made and durable. Choose a reputable jeweler who specializes in natural gemstones.
With these factors in mind, you're sure to find the perfect pair of moss agate earrings to unleash your inner earth goddess.
Moss agate earrings are a beautiful and powerful accessory that can help connect you to the earth, promote growth and abundance, and bring balance to your life. With so many styles and options available, there's a pair of moss agate earrings out there for everyone. Whether you choose dainty studs for everyday wear or bold hoops for a special occasion, moss agate earrings are sure to make a statement wherever you go. So why not unleash your inner earth goddess today with a stunning pair of moss agate earrings?

source: m-a-p/FineFineWeb


text:
... including targeted forecasts at the time of your arrival to each point!
Whitefield, Bury experiences all four seasons throughout the year. In the winter months, temperatures typically range from 0-7°C (32-45°F), with occasional snowfall. Spring temperatures range from 8-14°C (46-57°F). During the summer months, temperatures can reach as high as 22°C (72°F), with occasional thunderstorms. In the autumn months, temperatures range from 8-13°C (46-55°F). The area experiences an average of 890 millimeters (35 inches) of rain per year, and the average humidity is around 80%.
As of 2020, the city population is 23283.
This map shows the current & 7-day weather forecast, weather alerts, and weather radar for Whitefield, Bury.


Tree – Determining Age
Q: I am trying to find out the age of several live oak trees at my father-in-law's house in north Florida. Is there some general way to determine their age based on their diameter?
A: According to Certified Arborist Brian Arnold _PHONE_), determining the age of the oaks through non-invasive observation would be almost impossible. The diameter of the trunk is influenced by many factors, including soil conditions, rainfall and sun exposure. The trunk of a hundred year old tree growing in a good spot might be twice the size of an equally aged tree growing in poor conditions.
It is possible to count tree rings using a tool called an increment borer. The tool bores a hole in the tree trunk and removes a slender core of tissue reaching the center of the trunk. Brian advises against the borer tool because the hole can give insects and diseases access to the trunk interior.
Maybe your best bet is to try contacting previous owners of the house to ask about their earliest memories of the trees.
Tags For This Article:,,,,,


3. Select when the timer should end
In the section labelled Time remaining, select a countdown time. There are two methods to select from.
Countdown Timer
The countdown timer begins counting down from a specified time (e.g. 12 hours) when the visitor to the store loads the product page.
The current time is stored locally so that if the visitor reloads the page, the timer will continue.
If the repeat timer on loop setting is enabled, when the timer reaches zero, it will begin again from the original time.
Date Timer
Clicking on the Date field will open a date picker that will a date and time to be selected. The timer will count down to the selected date and time.


text:
Views: 1 Author: Site Editor Publish Time: 2019-07-12 Origin: Site
The buoyancy regulation system of the oil bladder not only provides power for the dive and floating of the water glider, but also the inner layer of the depth control. In order to achieve fast and accurate buoyancy adjustment, it is necessary to measure the net buoyancy value as the feedback amount, and the buoyancy controller. And the buoyancy control system forms a closed loop.
The buoyancy control system of the water glider essentially changes the net buoyancy by changing the volume of the external oil bladder.
At present, there are two types of methods for changing the volume of the water glider: one is the hydraulic method of using the hydraulic pump to change the volume of the external oil bladder. The other is a heat engine method that changes the volume of the external oil bladder by thermal expansion and contraction of the phase change material. The heat engine method can directly obtain the energy required to achieve its own ups and downs from the environment, greatly reducing the energy consumption of itself. It is limited by the depth of the main stratosphere in different sea areas.
Hydraulic methods are also available in a variety of forms, including single-stroke piston pump and reciprocating piston pumps. The system is a closed electro-hydraulic system consisting of a DC motor, a two-way pump, a check valve, an electromagnetic on-off valve, an internal cylinder and an external oil bladder. The internal cylinder is sealed in a pressure chamber and the external oil bladder is exposed to the outside seawater.
When the oil/fuel in the internal cylinder is delivered to the external oil bladder, the external oil bladder expands and the water glider receives positive buoyancy under the condition of constant mass, and the carrier will float. The process of positive buoyancy is reversed. The one-way valve is combined with the on-off valve to provide an oil path for outward oil discharge and oil return. When the buoyancy is stopped, the check valve and the closed electromagnetic switch valve act as a long-term pressure keeping. At this time, the power of the buoyancy regulating system is turned off to achieve the purpose of energy saving.


text:
Sugar gliders and guinea pigs have in common that they're both adorable and furry small animals, although that's generally where their similarities end. Although it's definitely OK to have both types of critters in your home, they don't belong in the same enclosures.
Sugar Gliders and Guinea Pigs Together
Sugar gliders and guinea pigs alike are highly social creatures, but as animals from different species with totally different lifestyle needs, should not reside in the same cages. They undoubtedly can handle living in a single room, however, as long as their cages aren't shared.
Sugar Glider Living Arrangements
Sugar gliders tend to thrive when they're kept in duos with buddies from their own species. Being around others comes naturally to sugar gliders, because it's how they do things in nature. If you have the means to maintain more than two sugar gliders, the more the merrier. If a sugar glider lives on his own, however, his human caretaker needs to give him a minimum of two hours daily interplay. Note that if you keep individuals of both genders in the same enclosures, reproduction is inevitable, unless they're neutered and spayed.
Guinea Pig Living Arrangements
Guinea pigs are companionable critters, too, typically flourishing in tiny and cozy units of fellow members of their species. If guinea pigs have sufficient personal room, they usually manage well. Female guinea pigs living together often are successful. A fixed male can work alongside a female, or perhaps even a pair of females. Male guinea pigs together can sometimes get a little fierce and aggressive unless they're both neutered. Guinea pig siblings who have been together since birth, regardless of sex, usually get along just fine. Always make a point to keep mature males away from juveniles.
Other Types of Animals
Although sugar gliders usually can live happily in the same rooms as guinea pigs, that definitely doesn't apply to all types of pets. Noisy, shrieking pet birds, for example, aren't usually a good idea for life alongside sugar gliders. Remember, sugar gliders in nature are preyed on by owls, and parrots' calls can sometimes remind them of the innate menaces of predation. Be careful about cats and dogs, too. If the presence of sugar gliders -- through a cage -- brings out a cat or dog's prey drive, then it's time to switch the cage to a more inaccessible location. Be just as deliberate in making living arrangements for guinea pigs. Like sugar gliders, guinea pigs also often feel apprehensive when close to cats and dogs.
- Nelson Road Veterinary Clinic: Sugar Gliders
- West Valley Animal Hospital: Guinea Pig Healthcare
- American Animal Hospital Association Healthy Pet: Guinea Pig Care
- Michigan State University Veterinary Teaching Hospital: Feeding and Caring for Your Guinea Pig
- Heritage Animal Hospital: Sugar Gliders
- Sugar Gliders; Caroline Wightman
- RSPCA: Appropriate Company for Guinea Pigs
- SmallAnimalChannel.com: Guinea Pigs and Other Animals
- Photo Credit Michael Blann/Photodisc/Getty Images

source: openbmb/Ultra-FineWeb


text:
Sangho Ha and Heunghwan Kim+
Department of Computer Science
Asan 336-745, Korea
+ Department of Computer Science
Cheongju 360-742, Korea
Multithreading is attractive in that it can tolerate latency and synchronization by effectively overlapping communication with computation. While several compiler techniques have been developed to produce multithreaded codes from functional language programs, it is very difficult to find effective loop implementation for multithreaded computation. In this paper, we will suggest a loop unfolding scheme, KU-Loop. In this scheme, parallel loops can be implemented more efficiently than sequential loops by effectively overlapping loop-setup with loop execution. In addition, we suggest equations to statically approximate the optimal loop unfolding degree for each loop class using profile information. Finally, we will analyze our loop unfolding scheme by means of simulation over several benchmarks and compare simulation results with the results of the equations.
Keywords: multithreading, loop unfolding, loop unfolding degree, synchronization, communication
Received May 1, 1997; revised November 20, 1997.
Communicated by Chung-Ta King.
* This paper was supported by the Korea Science & Engineering Foundation.


Executing NuoDB SQL Statements
The NuoDB SQL client, nuosql, is a command line tool for executing SQL statements against a database. You can experiment with nuosql by executing statements on the SQL QuickStart sample database that contains hockey data. By default, the database is named test on your local machine, with a user named dba whose password is goalie. This user has administrator privileges.
Note: If you did not already create the SQL QuickStart test database. go to Running the SQL QuickStart and then return here.
Open a terminal window. To start the nuosql command line tool, enter the following command. Substitute as necessary if you customized any parameters when you created the sample hockey database (test).
$ nuosql test@localhost --user dba --password goalie
SQL>
If you are successful then you see the SQL> prompt. On some platforms, specification of @localhost is optional.
After nuosql starts, you can execute standard SQL commands as you normally would with any SQL database. To see what tables are in the HOCKEY schema, try the following:
SQL> USE hockey;
SQL> SHOW tables;
 Tables in schema HOCKEY
 HOCKEY
 PLAYERS
 SCORING
 TEAMS
 VW_PLAYER_STATS is a view
SQL>
HOCKEY, PLAYERS, SCORING, and TEAMS are the sample tables and VW_PLAYER_STATS is the view created when you execute the SQL QuickStart.To display what is in the TEAMS table, run the following command:
SQL> SELECT * FROM teams ORDER BY name;
YEAR TMID CONFID DIVID RANK PLAYOFF G W L T OTL NAME
----- ----- ------- ------ ----- -------- -- -- -- -- ---- -------------------------------------
1916 TOB 0 0 4 0 14 7 7 0 0 228th Battalion
1972 ALB 0 WW 5 0 78 38 37 3 0 Alberta Oilers
2010 AND WC PC 2 CQF 82 47 30 0 5 Anaheim Ducks ...
Type help to display a list of NuoDB SQL commands:
SQL> HELP
ALTER SEQUENCE Change definition of a sequence
ALTER TABLE Change definition of a table
ALTER TRIGGER Change definition of a trigger
ALTER USER Change definition of a user
...
Furthermore, you can type HELP followed by a command to get more information about that command:
SQL> HELP UPDATE
NAME
 UPDATE
SYNOPSIS
 UPDATE [schema.]table SET column = expression [, ...]
 [WHERE condition ]
DESCRIPTION
 UPDATE changes the values of the columns specified for all rows that meet
 the requirements specified by the WHERE condition clause. You are required
 only to specify the columns to be modified.
 Columns not specified by SET remain unchanged.
 You must have write access to the table in order to modify it, as well as
 read access to any table whose values are specified in the WHERE condition.
SQL>
Exit nuosql by typing quit at the SQL> prompt:
SQL> quit
For more information: SQL Statements.


text:
One Gene Linked with Hearing Loss, Tooth Decay
July 31, 2014
By Nancy Volkers
InteliHealth News Service
INTELIHEALTH - A gene that can cause hearing loss may also lead to a higher risk of tooth decay, says a new study.
The study focused on the estrogen-related receptor beta (ESRRB) gene. Mutations in this gene are known to cause hearing loss.
Researchers studied 1,731 people, including 2 families with ESRRB mutations that cause hearing loss. They found that certain mutations in ESRRB were linked with higher levels of tooth decay.
As part of the study, researchers tested the hardness of 100 extracted teeth from people in the study. They compared their results with the results of DNA testing to see if people with certain ESRRB mutations also had differences in their teeth. The authors concluded that some mutations in ESRRB might change the way that tooth enamel is formed, making it softer and more vulnerable to decay.
The study appears in the July issue of the journal BMC Medical Genetics.


text:
KJM5911 Lab Exercise 3 - Gamma Spectroscopy
After completing this exercise you should:
- Understand the processes by which gamma radiation is absorbed in the detector.
- Understand how the detector (and it's electronics) transform the absorbed energy from the gamma rays into electrical pulses which is continuously sorted according to pulse height and presented as a histogram (number of events vs. energy) - a "spectrum".
- Know the basic parameters of a spectroscopy system (spectrum, real time, life time, dead time, channels, etc.).
- Know the relationship between channel number and energy, how to derive this relationship ("energy calibration") and be able to evaluate it's uncertainty.
- Recognise the different parts of a gamma-ray spectrum.
- Know how "peaks" in the spectrum are analysed and understand the results (you should understand terms like: ROI, gross count, net count, peak fitting, FWHM, etc.). You should understand how the software calculate and subtract the background under the peaks.
- Know the relationship between number of counts and gamma-rays emitted by the source (and the disintegration rate). I.e. how to perform an efficiency calibration.
- Introduction to Gamma Radiation
- Gamma Spectroscopy and Detectors
- The Theory behind Calibration of a Gamma Detector


text: This paper describes a systematic shape tuning procedure of adaptive structures for MEMS actuator applications. Due to fabrication process variations, MEMS devices can have different shapes with varied deflections. Such shape variations should be corrected for specific applications. As a result, it is necessary to establish a shape tuning procedure. Finite element modeling and optimization approach were used to minimize the shape variations. The procedure integrated Python programming, ABAQUS, and optimization algorithm for engineering applications. It used the powerful Python scripts programming, the vast library of ABAQUS functions, and a robust preexisting optimization algorithm, NLPQL, which provides more efficient, flexible, and systematic tools for optimization problems. Optimization was used in the adaptive structural designs and the shape tuning procedure after the assembly. Using this approach, three bimorph, gold-on-polysilicon, samples with different initial shapes were studied for shape tuning. The shape was characterized by maximum tip deflection resulting from thermo-mechanical deformations. The standard deviation of the shape variations was reduced from 1.21 to 0.05 μm after tuning. This reduction was verified by experimental data. Another case with ten devices was studied to confirm the effectiveness of the procedure. The standard deviation of the deflections was reduced from 0.81 to 0.02 μm after tuning. These results demonstrated the effectiveness of the optimum procedure for shape tuning. This general-purpose systematic methodology can be applied to adaptive structures for a variety of aerospace applications.


text:
Faith-Rooted Organizing: Mobilizing the Church in Service to the World, Rev. Alexia Salvatierra and Peter Heltzel. Downers Grove, IL: InterVarsity Press, 2014.
Summary: Most advocacy and activism efforts have been organized around secular principles. The authors explore what organizing and advocacy work that is deeply and thoroughly rooted in Christian principles would look like and illustrate this from their years of experience.
Many community advocacy efforts have been organized around principles first developed by Saul Alinsky in the 1930's. They hinge on an oppositional model that sees the other as "enemy" who needs to be forced or compelled to act justly by law or the pressure of a people movement.
Salvatierra and Heltzel do not deny the place of these efforts and in fact talk about both "serpent" and "dove" power as Christians make common cause with other activists. But they also contend that Christians have deep resources in their faith in which their organizing activities ought and may be rooted.
They begin with a historical survey of three justice movements: the civil rights movement, justice movements in Latin America and Cesar Chavez work in advocating for migrant crop workers. And one of the revelations of this book to me was to learn what a deeply spiritual man Chavez was, regularly fasting, and living at the level of those for whom he advocated.
The book then takes each step in the organizing process and re-roots it in faith-based practices:
- Goal setting as dreaming God's dreams.
- Starting place: hearing the call of the poor, which if done well results in a dance of solidarity between poor and privileged.
- Strategy: discerning the kairos issue at the root of the deep lies that perpetuate injustice and combating these with the truth. This also means addressing issues of power and hope and speaking prophetically.
- Recruitment: what does it mean to both practice and mobilize Christ-centered community, mobilizing all the gifts of that community.
- Leadership development: this not only involves discerning the gifts and calling of others but modeling the servant leadership crucial to organizing.
- Sustainability: the importance of cultivating the deep spiritual practices and rhythms that sustain hope and energy.
As mentioned in the summary the authors illustrate their principles with stories from their years of organizing. At the end of each chapter, Alexia addresses a "letter" to her daughter and another young woman that sums up the chapter in her hopes for their organizing work.
It has struck me increasingly that a significant form of gospel witness is when Christians come alongside others making common cause around matters of justice and human flourishing and thoughtfully and graciously contribute the distinctive perspective that is shaped by their faith. Salvatierra and Hetzel give us a marvelous example of what this looks like in the nitty-gritty of organizing.
Editor's Note: Thank-you to Bob Trube for sharing his reviews with Emerging Scholars! Bob first posted the above review on Bob on Books. As you may remember, Faith-Rooted Organizing is part of Campus Resources from InterVarsity Press: 2015-2016 Academic Year Edition. If you're still searching for books to read this summer and/or prepare a reading group for the fall, be sure to check out this list with attention to the Four Commitments and the Focused Ministries of InterVarsity Graduate & Faculty Ministries. Enjoy. To God be the glory! ~ Thomas B. Grosh IV, Associate Director, Emerging Scholars Network
Bonus: InterVarsity Press interview of Rev. Alexia Salvatierra (3 minute, 14 seconds).


text:
Game Type: Group game
Age: All ages
Number of Teams: 0
Playing Area: large indoor space or outdoor
Equipment or Supplies: Fruit or pictures of fruit
Object of Game: To stay out of the middle.
HOW TO PLAY FRUIT BASKET TURNOVER:
Each member of the group will pick a fruit. There can be no repeats. For the remainder of the game, that person will be known for his/her fruit. One student will go in the middle. Someone in the middle will start the game. The person in the middle will try to tag the fruit that was called upon before they can call on someone else. If they do, the tagged student will switch places with him.
STEP BY STEP DIRECTIONS:
- All students will sit in a circle. Going around the circle, each student will pick a fruit.
- One student will go into the center.
- The play will start with the youngest student. The student will begin by saying the name of their fruit, then someone else's fruit. (EX, if the student is "Watermelon", she might say, "Watermelon Kiwi.")
- The person she called on will then have to call someone else's fruit. (EX. "Kiwi Orange". Now it's orange's turn).
- The person in the middle will try to tag one of the players before he/she can call on another fruit.
- If she does, the two players switch places. The person that was in the middle starts the game.
FRUIT BASKET TURNOVER is a fun game to be playing while teaching about the importance of spiritual fruits. Below are a few examples
- Matthew 7:15-20 – Jesus teaches that people know You by your fruit
- Galatians 5:22-23 – The fruit of the Spirit


text:
Compression and End-Gas Temperatures from Iodine Absorption Spectra
THIS paper discusses a method of measuring compression temperature by means of the absorption of light. An optical-electronic system measures the change in color of a trace of iodine gas that has been added to the intake mixture. From these measurements the temperature of the iodine and by inference, the temperature of the gases, is determined. The apparatus used is described briefly and the test results obtained in measuring compression and end-gas temperatures in a spark-ignition engine are also presented.


text:
Supported by the Graduate School of Peking University, the PKU-Harvard International Symposium on Evolutionary Dynamics was held in the South Conference Room of the Main Library on October 12.
The symposium was organized by Professor Long Wang of the PKU College of Engineering and emceed by Feng Fu, a Ph.D. candidate from the College of Engineering.
At the beginning of the symposium, Professor Shaoqiang Tang, vice dean of COE, gave a brief introduction about the college. Five world famous experts on evolutionary dynamics from Harvard University, Tibor Antal, David G. Rand, Thomas Pfeiffer, Daniel I. Rosenbloom, and Michael Manapat, attended the symposium, and Professor Tianguang Chu was also present.
The five experts gave special lectures on hot topics in this field, including the application of evolutionary dynamics in cancer, punishment, metabolic systems, evolutionary origins and vaccination. Their lectures attracted nearly 50 teachers and students from PKU, Tsinghua University, and the Chinese Academy of Sciences. Faculty and students alike exchanged ideas and had deep discussions with the experts following their lectures.
The symposium sought to enhance the exchange and understanding between PKU and other world top research institutes in the field of evolutionary dynamics. Its organizers believed that this symposium can improve the research level of Ph.D. candidates in this field, and it can also promote the cooperation between PKU and other world renowned universities.


text:
Blowing stuff up
It was for a class, no really, there was actual scientific research being performed when Dr. Henry Kowalski and four students, blew stuff up at the end of last semester (the students got actual credit for it too).
Doc K used students as an excuse to blow something up again. This time he did it with the blessing, and help, of the Michigan State Police Bomb Squad. (KetteringUniversitywhere you can blow stuff up in the name of scientific research!)
In truth, Doc K, also known as Dr.Henry Kowalski, professor of Mechanical Engineering, and four senior students in his Experimental Mechanics class, performed research on detonator cord for the Bomb Squad as the students' final class project.
They tested the commonly held theory that when blowing up something to open it or crush it (to reduce its danger potential), having water behind the detonator creates a more powerful explosion.
The testing they did on detonator cord (a la the popular Discovery Channel TV show Mythbusters) attempted to prove or disprove the theory. The State Police Forensic Science Division operated on the theory without knowing if it was true or not.
Ryan Gebs, of Preston, Idaho, Kay Bareiss, of Wesensteig, Germany, Michael Pedigo, of Hartland, Mich., and Kyle Kibbey, of Mason, Mich., blew up force plates with detonator cord on Friday, June 12 on the Kettering baseball diamonds.
"Force plates measure the force of an explosion, similar to a scale. Strain gauges inside measure tension or compression," said Gebs. The students attached the force plates to an oscilloscope to log data for analysis and used a high speed video camera to capture the results visually.
Detective Sergeant Rick Bekemeier, bomb technician and Sergeant Scott Hasse, bomb squad, assisted the students in setting up the tests and managed the detonator cord and explosions.
To test whether water behind the explosion increased the force of the blast, the group fired detonator cord without water and with IV bags lying on top of the cord. The IV bags were used because they provided a compact portable source of water.
"The IV bag holds down the detonator cord," explained Gebs, "without it the blast goes out in a 360 degree radius. Because the IV holds down the detonator cord it concentrates the blast downward onto the board, intensifying it in that direction," he added.
According to the data collection equipment, the first blast, without water, exerted about 4,000 pounds of force. The first blast with water was estimated to exert more then 10,000 pounds of force on the board.
The cord without water ripped through the first few layers of the plywood sheet used to protect the force plates, cutting through a few layers. The explosions with water behind them penetrated through four or more layers of the plywood and actually cracked a cement cinder block in half during one blast. Theory proved – there was about six times the penetration into wood with water behind the blast and much better penetration into the cinder block.
Doc K said he would like to secure the donation of a newer high speed video camera because he wants to see how paint balls explode. He'll probably claim THAT'S in the name of scientific research, too.
Written by Dawn Hibbard

source: HuggingFaceFW/fineweb-edu


Export (0) Print
Expand All
Assembly.LoadFrom Method (String, Evidence, Byte[], AssemblyHashAlgorithm)
Loads an assembly given its file name or path, security evidence hash value, and hash algorithm.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
public static Assembly LoadFrom(
 string assemblyFile,
 Evidence securityEvidence,
 byte[] hashValue,
 AssemblyHashAlgorithm hashAlgorithm
Type: System.String
Type: System.Security.Policy.Evidence
Evidence for loading the assembly.
Type: System.Byte[]
The value of the computed hash code.
Type: System.Configuration.Assemblies.AssemblyHashAlgorithm
Return Value
Type: System.Reflection.Assembly
The loaded assembly.
assemblyFile is null.
A file that was found could not be loaded.
The securityEvidence is not ambiguous and is determined to be invalid.
assemblyFile is not a valid assembly.
The assemblyFile parameter is an empty string ("").
The assembly name is longer than MAX_PATH characters.
Whether certain permissions are granted or not granted to an assembly is based on evidence. The rules for assembly and security evidence merging are as follows:
 - When you use a LoadFrom method with no Evidence parameter, the assembly is loaded with the evidence that the loader supplies.
 - When you use a LoadFrom method with an Evidence parameter, pieces of evidence are merged. Pieces of evidence supplied as an argument to the LoadFrom method supersede pieces of evidence supplied by the loader.
 - If you call this method more than once on the same assembly but with a different evidence specified, the common language runtime does not throw a FileLoadException because the equality and integrity of the different evidence specifications cannot be determined. The evidence that first succeeds is the evidence that is used.
 - When you use a LoadFrom method with a Byte[] parameter to load a common object file format (COFF) image, evidence is combined. Zone, Url and Site are inherited from the calling assembly, and Hash and StrongName are taken from the COFF assembly.
 - When you use a LoadFrom method with a Byte[] parameter and Evidence to load a COFF image, only the supplied evidence is used. Evidence of the calling assembly and evidence of the COFF image is ignored.
.NET Framework
Supported in: 3.5, 3.0, 2.0, 1.1
Community Additions
© 2014 Microsoft


text:
January 10, 2012
On December 7, 2011, Neil deGrasse Tyson tweeted:
Need a distraction today? Not only does 12+1=11+2, but the letters "twelve plus one" rearrange to give you "eleven plus two"
Mitchell Perilstein forwarded that tweet to me and suggested that it would form the basis of an exercise for Programming Praxis.
Your task is to write a program that finds equations similar to Tyson's that form anagrams both in their symbols and in their letters. When you are finished, you are welcome to read or run a suggested solution, or to post your own solution or discuss the exercise in the comments below.
Pages: 1 2


text:
Teak wood is devided into several grades,which each grade has different quality. Those grades are grade A, grade B, and grade C, on which highest level of quality is grade A. the Indonesian Mininstry of Forestry conduct teakwood plantation on lots of areas in Indonesia to maintain availability of teak wood material. Because teak wood is one of Indonesian important commodity. Moreover, today the numbers of furniture manufacturers that has been using certified wood material is increasing, to participate in conservation and to maintain the availability of raw wood materials, which obviously affect the continuity of the furniture industry.
Furthermore, mostly buyers and importers from abroad, especially


Bluebells with beech trees in oak woods
Beeches and oaks
Beeches and oaks are best known for their edible fruits. From an oak tree's acorns to the nuts of beech and chestnut trees, these fruits are part of the diet of many animals, including humans. Also recognisable are the alternately arranged, and often lobed, simple leaves and the seperate male and female flowers (catkins). Beeches, oaks and their relatives make up this family of flowering plants that can be deciduous or evergreen and grow either as trees or shrubs. There are around 1,000 species, the majority being oaks, with a wide distribution predominately in the broadleaf forests of the northern hemisphere.
Scientific name: Fagaceae
Rank: Family
Common names:
Beech family
Explore this group
The following habitats are found across the Beeches and oaks distribution range. Find out more about these environments, what it takes to live there and what else inhabits them.
Additional data source: Animal Diversity Web
When they lived
 1. Life
 2. Plants
 3. Flowering plants
 4. Dicotyledons
 5. Fagales
 6. Beeches and oaks


text:
Jeddah is one of the rich tourist areas with many different tourist attractions, and it is considered one of the most beautiful areas in Saudi Arabia, so it is called the Red Sea Bride in Saudi Arabia, and Jeddah is famous for its diversity and multiplicity of museums, and we will present to you the best museums in Jeddah
The most important museums in Jeddah
Abdel Raouf Khalil Museum
Museums in Jeddah This museum is considered one of the most famous museums that exist in Jeddah, and this museum is located in one of the vibrant vibrant areas in Jeddah, where it is near King Fahd Hospital as well as the Mosque of Sayyid al-Shuhada, and this museum was opened in 1996, and this museum is distinguished With its simple designs, this museum contains many artifacts and artifacts, which belong to many different civilizations, including the Chinese, European, and various Islamic civilizations, and many other civilizations, and the museum also includes many impressive figures of animals, in addition to In addition to that it contains many precious holdings, and the museum was divided into several major sections or buildings, namely the mosque, as well as the Islamic Heritage House, in addition to the Arab Heritage House, alongside the World Heritage House and at the end the General Heritage Gallery, In addition to many other buildings, this museum includes about 18 halls for displaying various artifacts, the most important of which are the King Abdulaziz Hall and the Hall of Minerals and Stones among others.Read:Various activities you can do in (Dammam Waterfront)
The Home Arts Museum in Jeddah
Museums in Jeddah: The Museum of Home Arts in Jeddah is one of the most important and best museums in Jeddah, and this museum is considered one of the most important tourist attractions that attract many visitors to it, and this museum is considered one of the unique museums, as it is specialized in displaying home arts and working on creativity In coordinating the different colors and collectibles inside the house, this museum is considered one of the most important landmarks of tourism because it shows visitors how to work on arranging their homes, palaces and villas. Besides that this museum includes among its sides many precious artifacts, which date back more than seventy years past, and this museum is unique in displaying a complete complete picture of the way homes are established wonderfully, and work to take into account the taste in interior designs with what is in line with culture Each community, it displays a set of different designs that suit different Arab countries as well as foreign. In addition to that this museum contains many different sculptures that explain the features of the Kingdom of Saudi Arabia, and includes among its aspects the first covering of the Kaaba in addition to artistic and mural Different.Read:Tabuk parks … 5 of the most beautiful and most visited Tabuk parks by families
Jeddah Sculptures Museum
Museums in Jeddah This museum is considered one of the international museums, and it is a product of cooperation between both the private sector and the public sector in Jeddah, and this museum contains many different holdings, as it contains 20 works restored out of 400 works purchased from international giants, including Alexander Calder, as well as Henry Moore, and other famous sculptor artists, who were bought by the Mayor of Jeddah Governorate, Mr. Mohammed Saeed Farsi. This group is one of the largest collections of models and models in the whole world, and twenty works are displayed in the open museum on an area of 7 km , And this space is a boundary A beautiful collar known as the Alhambra, and specialists work on developing and constantly updating the museum and working to provide it with various holdings through the restoration of the remaining figures, and work on the use of new figures as well, so this museum is one of the most important and best museums in Jeddah.
Al Tayebat International Museum for Science and Knowledge
The museums in Jeddah, the Museum of the city of Al-Tayebat International Science and Knowledge is considered the largest historical monument to Jeddah and Saudi Arabia, and was founded by Abdul Raouf Hassan Khalil, and the construction of this museum continued for a very large period of not less than fifteen years, as it includes many aspects of culture and Saudi civilization In addition to some traditional crafts, this museum consists of many pavilions and one of these pavilions is a pavilion of general culture, and this pavilion contains many wonderful traditional mural paintings, and these paintings are graded from ancient to modern, so the museum offers paintings that date back to the Stone Age For the different ages and up to the modern era. As for the second wing, it is the wing of Islamic civilization and contains many monuments and Islamic artifacts that date back to the previous 15 century. Among the most important things that are included in this suite are manuscripts and Qur'ans. In addition to the Saudi wing, it presents the environment and building style for many different countries. In the Kingdom of Saudi Arabia and other different wings.Read:Hail markets and malls, where shopping and entertainment are two sides of the same coin
Khuzam Palace Museum
Museums in JeddahThe Khuzam Palace is considered one of the high-end royal palaces, which was inhabited by King Abdulaziz, and King Abdul Aziz used this palace as a bureau of the most important bureaus of the state in which he met officials and guests of the Kingdom of Saudi Arabia, and after the death of King Abdul Aziz, this palace was elevated in many The sites for various government positions, and in the end it was converted into a museum, and it was called the Jeddah Regional Museum. And this museum became one of the official museums in Jeddah when King Fahd bin Abdulaziz ordered to move the museum to the Antiquities and Museums Agency and that was in 1981, and it became a museum Officially opened For the public in 1995. This museum contains many holdings and exhibits dating back to ancient historical times, and this museum was divided into six different halls, the first hall which is more like the foyer, while the second includes a group of holdings before the advent of Islam, and the third from the emergence of Islam until the era The Hadith, the fourth is for King Abdulaziz, the fifth is for King Saud bin Abdulaziz, and the sixth is for the popular neighborhoods in the Kingdom.
The museums in Jeddah, Nassif's house is one of the private houses of a Saudi sheikh, which has been converted into a museum over the years, and that was by order of King Faisal bin Abdul Aziz, and he bought this palace with three million five hundred, and transformed it into one of the important museums in Jeddah, The importance of this palace lies in its building and huge architecture taken from the Ottoman style and this palace is considered the first palace that was designed in this style at that time, and this palace is considered one of the most important museums and cultural centers in Jeddah, which includes many rare collections, manuscripts and historical photos, so this museum is considered a beacon from Jeddah beacons, and so p N. Nassif House Museum and one of the most important and best museums in Jeddah, do not hesitate to visit.


text:
2001 Volume 42 Issue 4 Pages 201-206
This paper presents a new interactive guidance system for passengers. The system developed for the visually disabled consists of a cane, a portable information terminal, and radio tag-installed Braille blocks. The tag reader at the tip of the cane reads the location data in the tag and transmits it to the portable information terminal by radio waves. The information terminal generates appropriate guide and navigation messages by utilizing geographical information and personal data of the user. The user can interactively acquire the messages by communicating with the system. We carried out a field test to evaluate the system at a station in Tokyo. In this test, a number of visually disabled persons used the system in the actual conditions. The results of the test have shown good availability of the system.


Author School Visits
Princess Shayna Goes to School
Author-School-VisitsYour students will laugh and learn about how Princess Shayna's Vision Quest relates to their lives when Sheila visits your school and classrooms. Through Princess Shayna's absorbing story, students learn about people's different Brain Colors. They see how all the colors are powerful, beautiful and necessary.
Sheila will explain how she:
 1. Developed the characters from her personal life
 2. Employed metaphors and symbols within the fairy tale
 3. Created the four Kingdom of Kindness four villages to correspond with the Brain Colors
 4. Used the Disney Storyboarding and Mind Mapping methods to write her books
 5. Uses a non-judgmental "Language of Color" to help students explain their feelings and thoughts
19aMax-holding-little-Green-Brain-Color-note-book-150x150"I want you to know how much of an author you mean to me.
You are an author who brightened my path, who let me think,
who made me be strong, and who let me be the way I am. Thank you!"
M.F. (a Green Brainer)
Contact Sheila"This book is one of the greatest tools for educators and their students. Princess Shayna's Invisible Visible Gift and the Gift Giver's Guide promotes acceptance of differences with peers. Students learned about the villages and how they represent different types of people. Through discussions and group projects, they were able to determine their Brain Colors and to tap into different Brain Color qualities when needed."
Susan E. Cook, 3rd grade teacher, Verne W Critz Elementary School
Take a Brain Color Quiz
Schedule a Program
Buy the Books
What Color Is Your Brain?
What Color Is Your Brain? When Caring for Patients
Princess Shayna/a Invisible Visible Gift
Teacher's Activity Guide for Princess Shayna's Invisible Visible Gift
Purr-fect Pals
Portuguese-What Color Is Your BrainChinese-What Color Is Your Brain?
No Bunk Just BS


text:
Exhibition of "The Frozen Tombs of the Altai Mountains"
Open to the public from Monday to Friday 9 a.m. to 6 p.m.
The towering, jagged Altai Mountains stretch some 2,100 km across China, Mongolia, Russia and Kazakhstan, the Russian section of this mountain range having been inscribed as a natural site on the World Heritage List in 1998. The Altai Mountains bear unique witness to the ancient Scythian culture that flourished in the Eurasian steppe during the 1st millenium BCE.
Today, however, the permafrost of the Altai Mountains is endangered by climate change, and the frozen tombs are particularly threatened. Alerted by these developments, archaeologists, climatologists, geographers and geocryologists drew UNESCO's attention to this urgent issue and requested its assistance. Subsequently, a project, the Preservation of the Frozen Tombs of the Altai Mountains, was set up under the UNESCO/Flanders Funds-in-Trust in 2005.
This project proposed the drawing up of an inventory of the kurgans (burial mounds) in the Altai Mountains and the production of accurate maps using advanced satellite imaging techniques.
This exhibition will showcase the environment of the Altai Mountains, the UNESCO project outputs as well as various research projects in this field.
World Heritage Properties
- World Heritage Sub-regional Consultative Workshop for Promotion of Transbounday co-operation Sep 2, 2008 - Sep 5, 2008
Tuesday, April 8, 2008
Monday, April 21, 2008
Salle des Pas Perdus, UNESCO House, Paris, France
Junhi Han (UNESCO)


dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
 1. #1
 Join Date
 Feb 2010
 Posts
 4
 Recognize a picture and make a command
 Hi there professional guys,
 Im sitting here and Im facinated by C++ and Im eager to learn more about this wonderful program.
 So, I have a couple of friends that also want to learn about this and we have been given eachother different taskt so we learn about different things to teach eachother.
 My task is to make a small program that recognize different parts on the screen and depending on the picture of screen to make a click on a specified place on the screen or make a command that does the same thing (im not sure how that works)
 Why this task:
 A friend of a friend of me created a small game, and this task is going to be a kind of bot to play the game by itself.
 So is there any possibility to make such a bot with C++?
 If not, can you give me a suggestion to a program that allow me to make it?
 Thanks in advance!
 Flashbolt
 2. #2
 Join Date
 Sep 2004
 Location
 Holland (land of the dope)
 Posts
 4,123
 Re: Recognize a picture and make a command
 So is there any possibility to make such a bot with C++?
 Sure... you can make anything you want with C++
 My task is to make a small program that recognize different parts on the screen
 This is not always a easy task. Google for image recognition techniques, and you will see that there are a lot of possibilities. It's more important to understand the problem than building it.
 3. #3
 Join Date
 Feb 2010
 Posts
 4
 Re: Recognize a picture and make a command
 Quote Originally Posted by Skizmo View Post
 Google for image recognition techniques, and you will see that there are a lot of possibilities. It's more important to understand the problem than building it.
 Well, thanks for two uplifting answers, but as you might understand, I am a newbie in C++, and I have only tried it a little stuff.
 Is there anyway we can talk, on skype, msn etc or if you could help me through teamviewer because Im totally in for this project but I dont have the skills to do it by myself, hehe
 Flashbolt
 4. #4
 GCDEF is offline Elite Member Power Poster
 Join Date
 Nov 2003
 Location
 Florida
 Posts
 12,518
 Re: Recognize a picture and make a command
 You're putting the cart before the horse. Work through a tutorial and get the basics down first. Image recognition isn't a task for beginners.
 5. #5
 Join Date
 Feb 2010
 Posts
 4
 Re: Recognize a picture and make a command
 Im watching some of tutorials now, and i dont expect to get a pro the first day, but I have plenty of time to work this task out but Im doing what I can to get the best start.
 6. #6
 Join Date
 Sep 2004
 Location
 Holland (land of the dope)
 Posts
 4,123
 Re: Recognize a picture and make a command
 Quote Originally Posted by Flashbolt View Post
 Im watching some of tutorials now, and i dont expect to get a pro the first day, but I have plenty of time to work this task out but Im doing what I can to get the best start.
 I can't really help with the problem, but I'm a bit curious... what are you trying to recognize ?
 7. #7
 Join Date
 Feb 2010
 Posts
 4
 Re: Recognize a picture and make a command
 Its a small cardgame (player vs player) so that a card (as a normal playing card) should come up for each, and you can choose to keep the card, take a new one or bet you have a higher card than the opponent.
 The scores will be saved and I want the bot to recognize each card and decide by itself to keep it, take a new one or bet.
 So my goal is to make one. Dont blame me for beeing a noob that is trying to learn something difficult, but Im in for this, even if it will take a long time to make.
 8. #8
 Join Date
 Apr 1999
 Posts
 27,449
 Re: Recognize a picture and make a command
 Quote Originally Posted by Flashbolt View Post
 So my goal is to make one. Dont blame me for beeing a noob that is trying to learn something difficult, but Im in for this, even if it will take a long time to make.
 To add what GCDEF states:
 To write such a thing that you're trying to write requires many goals to be accomplished, and writing many programs that may have absolutely nothing to do with card games and face recognition. Learning C++ programming doesn't work that way, where you focus on one application and everything is geared to this one "ultimate goal".
 A person who could write the program that you described would be able to write any C++ program. As long as that person knows the field of study he or she is in, C++ is just a tool to get something accomplished.
 Regards,
 Paul McKenzie
 9. #9
 Lindley is offline Elite Member Power Poster
 Join Date
 Oct 2007
 Location
 Seattle, WA
 Posts
 10,895
 Re: Recognize a picture and make a command
 As I see it, there are three steps here:
 1) Acquire a screengrab from a program other than the one running. Probably possible, but I don't know the details on how you'd do it.
 2) Search the screengrab for a particular image. Depending on how precisely you know the scale and contents of this sub-image, there are several possible approaches. If you know it precisely, an MSE search over an image pyramid would probably do it. This would be a fairly straightforward task....for someone who knows the theory of image pyramids and is familiar with C++. For a newbie, it's likely to be a major hurtle.
 3) If the image is detected, send some kind of message to the window where it was found. Again, probably doable but not my area of expertise.
Tags for this Thread
Posting Permissions
 - You may not post new threads
 - You may not post replies
 - You may not post attachments
 - You may not edit your posts
 -
Windows Mobile Development Center
Click Here to Expand Forum to Full Width
On-Demand Webinars (sponsored)
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.


EZ-Face - Multiple Face Recognition Made Easy
5,564
82
3
Introduction: EZ-Face - Multiple Face Recognition Made Easy
EZ-Face: Making multiple face recognition - easy!
EZ-Face performs multiple face recognition. It has an interface for training faces and assigning names.
When the application sees faces that are recognized the names are displayed and visually you'll see boxes around the faces with the names assigned. As seen in the main application picture - EZ-Face was trained to recognize the character "Sarah Connor" from the movie "Terminator". Her face is surrounded by a red box and because her face was recognized her name is also displayed.
If a face is detected but not recognized there will be a display of a box around the face with no name. The more pictures of a face you train, the easier it is for the application to recognize a face.
This is a stand alone application I myself developed in C# under Visual Studio.NET 2013. It does require .NET framework 4.5 and should be run on Windows7 and Windows8.x systems. The project is open source, all source code is included.
EZ-Face is designed to connect with 3rd party robotics applications like EZ-Builder from _URL_. EZ-Face can pass variables such as the name of the person's face to EZ-Builder or other 3rd party applications that can send and receive commands on a TCP channel.
Teacher Notes
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Download
Step 1: Download the latest version of this open source project from my website at: _URL_
Once you download it you'll have access to my EZ-Face application run time and source code files. You can run the software as it is. If you choice to modify the code you can use the free Microsoft Express versions of Visual Studio. You can obtain a copy from Microsoft here: _URL_
Step 2: Watch the Instructional Video
Step 2: Watch the instructional video I made on YouTube at: _URL_
This video walks you through how to download, setup, run, configure, train and use my EZ-Face application. EZ-Face is designed to work with other 3rd party robotics applications that use TCP communications such as EZ-Robot's EZ-Builder (_URL_) software. The video demonstrates everything you'll need to get started.
If you encounter problems or have questions or need help integrating EZ-Face into your robotics application please use the Contact US feature from my website at: _URL_ and include "EZ-Face" in the subject line.
Thank you!
Happy Roboting!
-Justin Ratliff
P.S. Stay tuned for my next Instructables project the "DIY Dancing Cup Cake Robot" dedicated to the folks at Instructables.
Robot Contest
Participated in the
Robot Contest
Be the First to Share
 Recommendations
 - Backyard Contest
 Backyard Contest
 - Silly Hats Speed Challenge
 Silly Hats Speed Challenge
 - Finish It Already Speed Challenge
 Finish It Already Speed Challenge
 3 Discussions
 0
 Eros_c
 Eros_c
 4 years ago
 Hello, very cool. Can I change to recognize vechicle plates?
 Can you hlep me?
 _EMAIL_
 0
 robojrr
 robojrr
 Reply 4 years ago
 I'm sorry. I don't know how to assist with that. I think you would be better off starting with a different project or building a new one that details with character recognition. Good luck with your project.
 0
 dschulpius
 dschulpius
 6 years ago on Introduction
 Outstanding! This is something we've all been waiting for for a long, long time! Pure genius!


text:
2.1. Longitudinal magnetic field measurements
The longitudinal magnetic field represents the disc-integrated line-of-sight component of the magnetic field. Observations of the longitudinal fields of HD 12288 and HD 14437 were obtained at the Special Astrophysical Observatory of the Russian Academy of Sciences (SAO) and at the University of Western Ontario Elginfield Observatory (UWO).
2.1.1. SAO measurements
Thirteen longitudinal field measurements of HD 12288 and 28 measurements of HD 14437 were obtained at the SAO, using the 6 metre telescope and main stellar spectrograph equipped with an achromatic circular polarisation analyser. SAO magnetic data obtained before JD _PHONE_ were recorded on Kodak IIaO photographic plates, with a reciprocal linear dispersion of . Those obtained after JD _PHONE_ were measured from CCD spectra, recorded using the spectroscopic CCD with a reciprocal linear dispersion of . The longitudinal field was inferred from measurements of the relative displacement of spectral lines in the left and right circular polarisation spectra. Quoted uncertainties are at the 1 level, and were computed from the distribution of the displacement measurements. The SAO equipment and observing technique are described by Glagolevski et al. (1986) and Borisenko et al. (1991).
In addition to the spectropolarimetric measurements, two measurements of HD 14437 obtained on JD _PHONE_ and _PHONE_ were acquired using the SAO photoelectric Balmer line magnetometer. This instrument is similar in principle to the UWO photoelectric polarimeter described below.
2.1.2. UWO measurements
Seven longitudinal field measurements of HD 12288 and 6 measurements of HD 14437 were obtained at UWO. The UWO photoelectric polarimeter was used as a Balmer line Zeeman analyser at the UWO 1.2 metre telescope. The polarimeter measures the fractional circular polarisation in the wings of H, isolated using narrowband interference filters, at Å from line centre. It has been shown (Landstreet 1982) that the polarisation thus measured is linearly related to the mean longitudinal magnetic field. For these observations, mean conversion factors G and G per percent circular polarisation were found respectively for HD 12288 and HD 14437 from H line scans. Uncertainties associated with the UWO measurements were determined from photon counting statistics, and are at the 1 level. A more detailed description of the instrument and observing technique is given by Landstreet (1980).
As will become apparent, the different measurement techniques described above can result in systematic differences between the longitudinal field as measured using metallic lines (denoted ) and that measured using Balmer lines (denoted ). We will retain these different symbols to help reinforce that the two methods do in fact measure somewhat different quantities, and we should therefore not expect them to be fully consistent.
2.2. Mean magnetic field modulus measurements
Respectively 28 and 32 spectroscopic observations of HD 12288 and HD 14437 were obtained by Mathys et al. (1997) and Mathys et al. (1999) in the context of a larger study of magnetic fields in Ap stars. From these spectra measurements of the mean magnetic field modulus were obtained. The field modulus, which represents the disc integrated strength of the magnetic field, was inferred from fits to the magnetically split components of the Fe II Zeeman doublet. The relevant observing, reduction and analysis procedures are described in detail by Mathys et al. (1997).
For HD 12288 the mean value of is 7978 G, with a minimum measured value of 7439 G and a maximum value of 8496 G, while for HD 14437 the mean value of is 7665 G, with a minimum measured value of 7024 G and a maximum value of 8219 G. For HD 14437 Mathys et al. (1997) estimate the uncertainty of individual measurements to be about 200 G. While Mathys et al. do not estimate the uncertainty of individual measurements for HD 12288, they do provide the rms deviations (120 G) about the best-fit curve. We provisionally adopt this value as the 1 uncertainty of individual measurements.
2.3. HIPPARCOS photometry
Respectively 164 and 100 photometric measurements of HD 12288 and HD 14437 were obtained in the context of the HIPPARCOS mission, in the HIPPARCOS photometric system described in Volume 1 of The HIPPARCOS and Tycho Catalogues (ESA 1997). The measured magnitude (in the HIPPARCOS photometric system) of HD 12288 is 7.779 with an rms scatter of 0.016 mag, while that of HD 14437 is 7.258 with an rms scatter of 0.013 mag. The photometry is available in Volume 17 of the HIPPARCOS Catalogue, CD-ROM no. 3 (ESA 1997). In the following analysis a single spurious observation of HD 14437 (obtained on JD _PHONE_.510) and two spurious observations of HD 12288 (obtained on JD _PHONE_.534 and JD _PHONE_.639) have been removed.
© European Southern Observatory (ESO) 2000
Online publication: March 21, 2000


text:
LIFE IN ST. LOUIS DURING WORLD WAR II
At the start of World War II in 1941, only eleven or twelve Japanese families were known to have settled in St. Louis. No evacuations to internment camps took place in Missouri. Life was closer to normal for Japanese families living in St. Louis, although surely it was not business as usual. Although racism was probably not as bad as it was on the West Coast, it was likely existent in St. Louis during the war.
In the following excerpt, Mae Marshall, a life-long St. Louis resident, explains how the FBI came into her father's store on Market Street.
1948 Family Photo
Mary Alyea Beck, Ben Kadowaki, Bob, Herb, and Mae


text:
Hybrid optical switching (HOS) is a switching paradigm that aims to combine optical circuit switching, optical burst switching, and optical packet switching on the same network. This paper proposes a novel integrated control plane for an HOS core node. The control plane makes use of a unified control packet able to carry the control information for all the different data formats and employs an appropriate scheduling algorithm for each incoming data type. Three possible node architectures are presented and an analytical model is introduced to analyze their power consumption. Also, the concept of increase in power efficiency is introduced to compare the considered architectures. The performance and power consumption analysis of the node have been carried out through the use of a simulation model developed specifically for the scope. The obtained results show the effectiveness of HOS networks.
©2011 Optical Society of AmericaFull Article | PDF Article
OSA Recommended Articles
Matteo Fiorani, Maurizio Casoni, and Slavisa Aleksic
J. Opt. Commun. Netw. 5(5) 484-497 (2013)
J. Opt. Commun. Netw. 1(3) 245-258 (2009)
Andreas Drakos, Theofanis G. Orphanoudakis, and Alexandros Stavdas
Opt. Express 20(16) 17421-17439 (2012)


text:
Researchers have developed a new protein-based sensor that can detect lanthanides, the rare earth metals used in smartphones and other technologies, in a more efficient and cost-effective way. The sensor changes its fluorescence when it binds to these metals. The protein undergoes a shape change when it binds to lanthanides, which is key for the sensor's fluorescence to "turn on", said the study.
To develop the sensor, the researchers used a protein they recently described and subsequently used to explore the biology of bacteria that use lanthanides.
Rare earth metals are found in varying quantities in smartphones. Neodymium, dysprosium, praseodymium, terbium, gadolinium and lanthanum are found inside displays and other electronic components of smartphones. These are further re-purposed in making components for cars, airplanes, lasers and even next-generation armour plating.
Researchers develop a new protein-based sensor that can detect lanthanides, the rare earth metals.
"Lanthanides are used in a variety of current technologies, including the screens and electronics of smartphones, batteries of electric cars, satellites, and lasers," said Joseph Cotruvo, Assistant Professor. "These elements are called rare earths, and they include chemical elements of atomic weight 57 to 71 on the periodic table," Cotruvo added.
Extracting rare earths from the environment or from industrial samples, like waste water from mines or coal waste products, is generally very challenging and expensive. They developed a protein-based sensor that can detect tiny amounts of lanthanides in a sample, letting us know if it's worth investing resources to extract these important metals.
China has a monopoly over rare earths, with an annual production of 105,000 metric tonnes. For comparison, its closest competitor, Australia, generates only 20,000 metric tonnes of rare earth metals. Further, China will impose restrictions rare earths production beginning in 2020. The US-China trade war has made matters worse for electronics manufacturers. This has forced them to resort to recycling these metals.


text:
2013 State of the Strait Conference
Setting Ecological Endpoints and Restoration Targets
The 2013 conference focused on progress in setting ecological endpoints and restoration targets for the Detroit River and western Lake Erie. Talks focused on candidate indicators that are data rich and have a sound scientific rationale for identifying quantitative targets and desired endpoints. Another focus was on the quantitative targets and endpoints that are being used to guide management programs like the Detroit River Remedial Action Plan, the Comprehensive Conservation Plan for the Detroit River International Wildlife Refuge, the Lake Erie Lakewide Management Plan, watershed management plans, and others. Each talk evaluated the current state of development of each proposed indicator against a set of criteria to assess its adequacy, utility, and relevance (e.g., scale/responsiveness, feasibility, standardized methods, responsiveness, etc.). The conference concluded with a panel discussion of next steps from both a science and management perspective.
The conference was held on October 28th, 2013 at the University of Windsor, Windsor, Ontario.


ThingM Project Feature: BlinkM in The MEAL Project
BlinkM in The MEAL Project Creator: Corinna Sherman
For the distracted diner who wants a subtle reminder to assess how full he or she is while eating, the MEAL dish is a weight-sensing dish that illuminates with colored light to give the user a sense of how much food has been eaten since the meal began. Normal dishware provides no feedback, placing the burden of self-monitoring entirely on the individual. Mealtime distractions pose less of an issue, however, when responsive MEAL dishes help people mind their own sense of satiety with subtle, pleasant cues via ambient light.
How It Works:
1. Plug the Arduino into wall outlet and press the power button on the base unit to register the minimum weight of the empty dish.
2. Fill the dish with food. 3 RGB LEDs that are located inside the base unit will pulse red when the minimum amount of weight has been added to enable subsequent monitoring.
3. Press the calibration button on the base unit to register the maximum weight.
4. Each of the dish's three legs sits upon a load sensor. The sensors connect to the Arduino, which monitors the total weight sensed over time. As food is eaten from the dish, the Arduino translates the sensed weight change into a hue shift in the LEDs from red (a color shown to stimulate appetite) to blue (a color shown to promote relaxation).
Downloadable PDF:
link to more information:
Leave a Reply


Cloud Pak for Data Group
Send and receive streaming data via REST with IBM Streams
By NATASHA D'SILVA posted Mon December 07, 2020 07:48 PM

When you use IBM Streams to analyze data in real time, your application typically produces a continuous stream of the results. For example, you might use Streams to monitor financial transactions in real time, and then flag potentially fraudulent transactions as they occur.
Two common questions from Streams developers are, "How can I access the results of the Streams application", and , "How can I send data to the Streams application?" Continuing the fraud application example, you might want to access the latest results to display it in a dashboard, like shown above. Or you might wish to send new data to the Streams application for processing.
Streams Jobs as a Service
Prior to Cloud Pak for Data 3.5, the answer was to send the data from Streams to one of the over a dozen supported messaging systems and databases, like Apache Kakfa, or RabbitMQ, and then connect to that system to retrieve the results. This method still works and scales very well.
In the latest version of Streams on Cloud Pak for Data, you can now enable REST access to the data from a running Streams application, or job. This is done by allowing Streams jobs to become services in Cloud Pak for Data. Once the job is running as a service, it provides REST API endpoints that can be used to send/receive data.
This post has a demo of this feature as well as some code examples for using it in SPL and Python applications.
Table of contents
See it in action
Watch this video to see how to enable REST access to the data in a Streams application running in Cloud Pak for Data 3.5.
How to use it
To enable a job as a Cloud Pak for Data service, you must invoke one of the new EndpointSource/EndpointSink operators to the application.
These operators can be invoked from SPL and Python applications. When a job containing at least one of the new operators is submitted, the Streams runtime enables REST API access to the job from outside the OpenShift cluster. Data retrieved from the Streams application is in JSON format, as must be any data sent to the application. Each Streams tuple consumed or produced by the application is a JSON object.
These are the 3 basic steps to start sending/receiving data via REST.
 1. Use the operators to enable the REST endpoints:
 - Modify the Streams application to add the EndpointSink or EndpointSource operator.
 For example, to enable REST access to the stream ResultStream, add the following code snippet:
 () as RESTSink = EndpointSink(ResultStream){
 }

 - Build and submit the application, noting the job id
 2. Get the URLs from the service instance in the CPD UI: Once the application is running, find the REST endpoints.
 1. From the Cloud Pak for Data console, go to Services > Instances.
 2. Find the new job service in the list of instances. Under Type it will have "streams-application" and the Name will be of the form <streams_instance.space_name.jobid>, where streams_instance is the instance name, space_name is the deployment space name, and job_id is the id of the submitted job.
 3. Click the job service to go to the Swagger Documentation page.
 4. Find the URL for the GET or POST endpoint(s) listed under Data access endpoints.
 3. Use the URL to access data, the final URL will be <CPD_URL> + <GET/POST URL>.
 Note: In this initial release, only the user who submits the job can see the job service in their Instances list. Other users can access the data via the REST API URL. To have access, each user needs to be added to the deployment space where the job was submitted. See the documentation to learn how to add a user to a deployment space.
Examples
SPL example
Make data avaialble via REST:
For example, to make the data on the ScoredDataStream available via REST, send it to the EndpointSink operator:
 stream<DataSchemaOut> ScoredDataStream = com.ibm.spss.streams.analytics::SPSSScoring(data)
{
}
() as RESTSink = EndpointSink(ScoredDataStream)
{
//optional, comment out to use buffer size
/*param
bufferSize: 10000; //number of tuples to keep in memory
*/
}
Python example
Make data avaialble via REST:
Use the EndpointSink class. Note that the input stream to the EndpointSink must have a StructuredSchema. This means that it must use a named tuple as its schema, or an instance of StreamSchema.
Below is an example of using a named tuple.
from streamsx.service import EndpointSink
class Readings(typing.NamedTuple):
 reading: float
 index: int
 address: str
 timeStamp: int

def readings() -> typing.Iterable[Readings] :
 counter = 0
 while True:
 #time.sleep(0.1)
 address = "A7" + str(random.randint(14, 40)) + "_"+ chr(random.randint(65,123))
 timeStamp = int(datetime.datetime.now().timestamp())
 yield Readings(random.randint(1,100), counter, address, timeStamp)
 counter = counter + 1
source = sender_topology.source(readings)
## Send the stream to the Endpoint Sink
source.for_each(EndpointSink(buffer_size=100000), name="REST Sink")
 You can follow one of the following tutorials for more complete examples. The documentation also has more code snippets.
Tutorials
Here are some tutorials to get started:
 Documentation
 The documentation has more examples and more information about how this feature works.
 #Highlights
 #Highlights-home
 0 comments
 699 views
 Permalink


text:
The Tasmania Fire Service's Community Education Unit delivers a number of programs to the community to enhance community safety. These programs are free-of-charge.
The School Fire Education Program delivers fire safety information to all Tasmanian primary school students, promoting awareness of fire safety and fire hazards, and steps to take if fire breaks out in the home.
The Juvenile Fire Lighter Intervention Program is for children who engage in unsafe fire lighting behaviour at home or in the bush. Program content is tailored to the age and maturity of the children attending.
Project Wake Up! provides opportunities for people with disabilities and aged people to get advice from firefighters about fire safety matters in their homes, and when necessary, to have free smoke alarms installed.


text:
In 2012 the City of Melbourne released its Urban Forest Strategy. The strategy outlines the importance of the urban forest and green open spaces in cooling the city and adapting to climate change.
At this time, several of the trees in Burston Reserve had either been removed or were in very poor health. The reserve was upgraded to increase its green footprint and open space and to become a water sensitive landscape.
The park redesign included:
- Expanding turf and garden areas and reducing the width of surrounding footpaths.
- Installation of three new raingarden tree pits to capture stormwater runoff from Macarthur Street.
- Installation of two soaker pits to capture runoff and direct it to four new trees.
- Removing and replacing declining trees and planting additional trees.
At Stop 1 you can see the three raingarden tree pits within the pavement. These trees are younger than most of the other trees in the reserve.
How do the raingarden tree pits work?
Each raingarden tree pit works like a small raingarden. When it rains, stormwater runs off road surfaces and into the gutters.
The raingarden tree pits are set into the kerb along Macarthur Street. They intercept and clean the water before it goes into the drain.
Each pit contains layers of substrate that work with the tree's root system to filter pollution from the stormwater. This includes nitrogen, phosphorus and oils.
The tree pits also include a rock mulch layer to retain moisture in the soil and prevent erosion during rain.
A grate sits around the base of the tree, flush with the pavement. This protects the tree pit from damage and ensures that pedestrians don't trip over it.
A pipe is located at the bottom of the well. It allows cleaned stormwater to drain back into the drainage system.
This is the end of the tour!