How to find the missing number in Geometric Progression in Python
So, guys today we will learn How to find the missing number in Geometric Progression in Python. Let's do it together. We are basically supposed to find the number which is missing in GP. GP will be given the form of an array. GP is a progression of numbers with a constant ratio between each number and the one before.
You Guys may find it a bit difficult but don't worry it's too easy, let's dive deep into the code.
Finding the missing number in Geometric Progression in Python
We can find the missing element by literally traversing the array. It is one the simplest solution for which time complexity is O(N)
Another way of finding the missing number is by the binary search method. This is also simple but just the difference that time complexity changes that is O(logN)
Sample : A[] = {1, 5, 125, 625}
Ans : 25
Sample : B[] = {3, 9, 81, 243}
Ans : 27
def noMissed(sample, l, h, ratio):
 if (l >= h):
 return _PHONE_
 m = l + (h - l) // 2
 if (sample[m + 1] // sample[m]!= ratio):
 return (sample[m] * ratio)
 if ((m > 0) and (sample[m] / sample[m-1])!= ratio):
 return (sample[m - 1] * ratio)
 if (sample[m] == sample[0] * (pow(ratio, m)) ):
 return noMissed(sample, m+1, h, ratio)
 return noMissed(sample, l, m-1, ratio)
def find(sample, length):
 ratio = int(pow(sample[length-1] / sample[0], 1.0 / length))
 return noMissed(sample, 0, length-1, ratio)
sample = [3, 9, 81, 243]
length = len(sample)
ans=str(find(sample, length))
print("Missing Number in GP is " +ans)
Missing Number in GP is 27
Want to learn more! Have a look at some more amazing pieces of codes..!
What is Anagram Substring Search? Explain using program in Python
How to implement Navie String Searching Algorithm in Python
Leave a Reply


Two Pointer technique in Java
What is Two pointer technique?
A two pointer technique is a technique where given a sorted array we have two starting points or two points of consideration as they both move towards the middle of the array being iterated over, the two pointer technique is a useful tool to utilize when searching for pairs in a sorted array. Although not it's only use case, when used this technique can save both time and space complexity.
when iterating through the data in a linear fashion we usually have a single entry point and we move through the data in one direction.
Given a sorted array we need to find the pair of number which sums up to the given number x.
Approach 1: Brute Force Solution
In the brute force solution of the problem we use a loop within a loop to iterate over all of the elements in the array, forming every possible pair combination and having the time complexity of O(n^2)
This approach takes too much time to run, which can further be optimized to run in O(n) time complexity.
Approach 2: Two Pointer Solution
Now let's look how the two pointer solution works and gives a better time complexity than brute force solution,
We take two pointers one which points to the first element(low) and one which points to the last element(high) of the array now according to the problem statement given we add the last and the first values together and check if the sum matches with the provided sum (x) if the computed sum is less than the given sum(x) then we increment the low pointer and if the sum is greater the given sum(x) we decrement the high pointer, we do this till we get the desired sum or the low > high.
Boolean pairSum(int Arr[], int n, int x)
// represents first pointer
int low = 0;
// represents second pointer
int high = n - 1;
while (low < high) {
// If we find a pair
if (Arr[low] + Arr[high] == x)
return true;
// If sum of elements at current
// pointers is less, we move towards
// higher values by doing low++
else if (Arr[low] + Arr[high] < x)
// If sum of elements at current
// pointers is more, we move towards
// lower values by doing high--
return false;
For this algorithm to work effectively we assume that we are given a sorted array and we move the pointers toward the center of the array so we do not miss any pair and we move one pointer only if the above conditions are met so that no pair is left untouched and every pair is checked once.


Configuring Siebel Business Applications > Configuring the Customer Dashboard > Options to Update the Customer Dashboard >
Configuring a Button to Update the Customer Dashboard
The Customer Dashboard includes application programming interfaces (APIs) to pull information from or push information to the Customer Dashboard through Siebel Visual Basic script or Siebel eScript script. Because the Customer Dashboard resides in a separate frame, it requires a user interface event to update customer dashboard fields. To generate a user event, you must add a button to an applet that uses a script to call the Update Dashboard command.
To configure a button to update the Customer Dashboard
 1. In Siebel Tools, in the Object Explorer, click Applet.
 2. In the Applets list, locate the applet you must modify.
 3. In the Object Explorer, expand the Applet tree, and then click Control.
 4. In the Controls list, add a button as an applet control and set properties using values from the following table.
 Target View Frame
 5. Define the script for the new button.
 Your script must do the following:
 6. Compile and test your changes.
 For more information, see Using Siebel Tools.
Updating the Customer Dashboard With Data from a Virtual Business Component
An update to the Customer Dashboard requires a row ID. However, a virtual business component uses a virtual row ID. Therefore, to display information from a virtual business component in the customer dashboard, you must script the UpdateDashboard function.
Customer Dashboard Allows Only One Update for Each User Interface Event
The Customer Dashboard allows only one user interface update for each user interface event. For example, if you add a button to a view, then one click of that button is one user interface event. For that event, Siebel CRM can execute only one user interface update, such as updating the Customer Dashboard. The code behind a single button cannot include two user interface updates, such as updating the Customer Dashboard, and then displaying a new view in the main frame of the Siebel application.


text:
These spray paints were developed especially for decorating transparent polycarbonate bodies used in R/C car modeling. Each can contains 100ml of paint, which is the appropriate amount for finishing one complete model.
Painting polycarbonate bodies is done from the inside of the body shell as opposed to the outside of a traditional plastic model. When spraying body from the inside, keep the can about 30cm from the surface. After curing apply another coat as necessary. These paints are impervious to oil and fuels, so they can be safely used on gas-powered R/C bodies.
Warning: Never use these paints on plastic models.

source: openbmb/Ultra-FineWeb


text:
The construction sector in developing countries has propelled economic growth in the most recent period, yet analysis of growth performance has failed to take this into account. This article is a comparative analysis of the relationship between the construction sector and aggregate output for a panel of sub-Saharan African (SSA) countries using a panel generalized methods of moments (GMM). After accounting for the effects of institutional set up, cross sectional heterogeneity and non-linearity, our results revealed that the construction sector affects growth positively and most importantly, developing the right institutions could further enhance this impact. The intrinsically non-linear relationship between construction and output growth is very mute in our sample, suggesting that, SSA countries have not yet reached the stage of development where construction growth becomes trivial. We further show that East Africa experienced a robust impact of construction on economic growth compared to West and Southern Africa.
Construction, institutions and economic growth in sub-Saharan Africa
Working paper 622
Subscribe to new publication notifications (quarterly)


text:
Great Britain Historical Geographical Information System (GBHGIS)
2. hearth tax, 1664: surrey
The Hearth Tax returns of the 1660s and 1670s are another important historical source. It was levied twice a year at Lady Day and Michaelmas and was based on taxing each hearth at a rate of 2 shillings a year payable in two instalments. In collaboration with Prof. Margaret Spufford and Dr. Susan Rose of the Hearth Tax Centre at the Roehampton Institute, London we have been attempting to systematically map the Hearth Tax at parish level.
This work is still at an early stage but below we have an example of the location of one hearth households in Surrey on Lady Day, 1664. In this case all the data have been assigned to parishes, largely as a result of work done at the Roehampton Institute. On the map Southwark is unshaded as it was treated differently from the rest of the county, the other unshaded areas have no data as a result of damage to the original manuscript.
Having only one hearth was seen as a sign of relative poverty, this map therefore suggests that the area near London was relatively affluent while the areas further away, particularly in the south west of the county were relatively impoverished.

source: HuggingFaceFW/fineweb-edu


text:
Organic pest control methods can help rid your home of the common carpet beetle.
- Standard Common Name: Australian Carpet Beetle
- Size range: 2-3 mm
- Distribution: The Australian Carpet Beetle is found throughout Australia. (Really..?)
- Habitat: The Australian Carpet Beetle lives in urban areas, forests and woodlands.
- Feeding and Diet: The Carpet Beetle frequently invades homes, whose larvae then feeds on carpet and similar fabric.
- Other behaviours and adaptations: The larvae of the Australian Carpet Beetle are small hairy grubs whose hairs break off when handled and can cause allergic reactions in some people. Before we introduced household goods into their diet, carpet beetle larvae naturally fed on spider webs, dried animal skins or other dried protein material.
For more information on carpet beetle prevention and removal on the Sunshine Coast see Stuy at Pest Control Australia – your local pest control guy


Sentence for participated | Use participated in a sentence
A sentence using the word participated. University students, spelling bee organizers, and people looking to increase their vocabulary may enjoy the contents of this post. The lines of text below use participated in a sentence, and provide visitors a sentence for participated.
 - An odd world, where for the sin we have not participated in we must fib and continue fibbing, she reflected. (10)
 - Chump had not participated in the fact presented by ocular demonstration. (10)
 - He pretended to suppose that Dahlia, whose only reproach to him was her suffering, participated in the scheme to worry him. (10)
 - She saw my agitation; she participated in, and increased it. (6)
 - That being settled, some appearance of equanimity returned; she talked of the scarlet business as one she participated in as a distant spectator. (10)
Glad you visited this page with a sentence for participated. Perhaps also see a sentence for profiles and ways to use parsonage in a sentence. Now that you've seen how to use participated in a sentence hope you might explore the rest of this educational reference site to see many other example sentences which provide word usage information.
People looking for: "participated in sentences", visited this page.


Osanyin known in Afro-cuban practice as Osain, is the Orisa in charge of the knowledge of all herbs, more than any other deity and, therefore, carries the knowledge of all the medicines used to cure any type of disease. He is an Orisa very close to Orunmila and is the husband of Oriseje.
Who is Osanyin?
Osanyin is often described by the Yoruba as a cruel, impatient, and smug Orisa. Osanyin owns the omiero (Omi Ero or holy water), and is so powerful that he is in charge of activating the initiation of all the Orisa. In addition, it is responsible for approving any type of curse that is done to a person.
In the past people used to go to a babalawo who had herbal knowledge started in Osanyin for not only spiritual but also health improvements. They were the healers and they knew the medicines that allowed to alleviate from a headache to much more important health problems. And this is because each herb, trunk or root has its virtue and when these plants are mixed with other herbs, they form medicines that can be used for different purposes.
Osanyin is an Orisa with an eye, a leg, and an arm missing. This is said to have happened because of a war he had with Orunmila, where Orunmila sacrificed Sango and he sent thunder to punish Osanyin.
How to get initiated in Osanyin
Osanyin is a delicate Orisa, so not everyone should acquire his initiation. Only if Orunmila determines that his initiation will be favorable to him, does the learning continue. After the person who wishes to be initiated into Osanyin acquires the basic knowledge of this Orisa and is able to take care of it by himself, he can begin his initiation with the babalawo who is carrying out his learning. Divinations must be carried out to know what sacrifices are necessary before their initiation.
We must remember that in Traditional Yoruba practice the person interested in initiation must acquire knowledge before doing it. At Ilé Awo we help you check your knowledge of Ifá and the Orisa with the exclusive tests that you can find in Ojú Odù.
How to feed Osain
The purpose for which Osanyin is served can be both good and bad. It can be taken care of to cure a disease to a person, to obtain good luck, riches or even to achieve the destruction of an enemy. The preparation of medicines is done with powerful enchantments that have the name of Ofo Ase.
It can be served with guinea pepper, Obi abata (kola nut), roasted corn, and alcoholic beverages. Usually the person making the offering to Osain kneels on one leg at the time of propitiation. Once these medicines are prepared, they are placed in the Osun de Osanyin, for the Orisa to approve.
Some taboo
In many rituals the participation of women is prohibited, especially when they are menstruating. As well as, on many occasions, there are herbs that cannot be united since they can cause a detrimental effect. Should not be attended without the minimum knowledge so that care is not harmful.
Osanyin types in traditional practice
There is only one type of Osanyin, usually called "Eepa Osanyin". He is known as Elese Kan ti or le elese meji sare (The one-legged man who makes the two-legged man run).
However, the herbs used with this Orisa are classified into four groups, which correspond to the four elements of nature: water, air, earth and fire. These are: ewe afeefe (air – wind blades); ewe inon (blades of fire); ewe omi (water leaves); and ewe ile or ewe igbo (leaves from the ground or from the forest).
Aplicación descargada


Lesson 10.4: Bug Fix – Removing multiple items from GroupedInventory
Mickey noticed a bug in the code, from the changes in Lesson 10.2, adding a GroupedInventory property for LivingEntity.
When we try to remove multiple items, like when completing a quest, it only removed one item. This lesson will fix the bug.
Lesson Steps
Step 1: Modify Engine\Models\LivingEntity.cs
There is a problem getting the "groupedInventoryItemToRemove" object on lines 147-148.
For unique items, we want to get the item that exactly matches the parameter. If a player has multiple swords (which will be unique items), we want to get the exact item, and remove it.
For non-unique items, we only need to get the GroupedInventory object with an ItemTypeID that matches the parameter's ItemTypeID.
So, change lines 147-148 to this:
GroupedInventoryItem groupedInventoryItemToRemove = item.IsUnique?
GroupedInventory.FirstOrDefault(gi => gi.Item == item) :
GroupedInventory.FirstOrDefault(gi => gi.Item.ItemTypeID == item.ItemTypeID);
This is a "ternary operator". It evaluates the calculation before the question mark. If that calculation is "true", it returns the first result (the part before the ":"). If it is "false", it returns the second result (the part after the ":").
It's another way to do a simple "if…else" statement.
So, if the passed-in object is unique, we will look for the first item that completely matches it. If it is not unique, we will find the first item with the same ItemTypeID.
We really should have unit tests for this project. So, after I finish this batch of refactoring lessons, I'll start creating those.
Return to main page
2 thoughts on "Lesson 10.4: Bug Fix – Removing multiple items from GroupedInventory
 1. There's no real benefit. In fact, I would bet that both end up compiling into the exact same CLR (Common Language Runtime) code.
 I just like using the ternary operator when the condition of the "if" statement is not too long, and we're only using the "if" to assign a value to a single variable. It's fewer lines than writing an "if" statement with curly-braces (which is how I write all my "if" statements, to be consistent and clear), and slightly easier to understand the intent of the "if" (to set the value of a variable).
Leave a Reply


text:
If you are under the impression that your severely damaged car is no more of use then you are absolutely wrong. You would become glad to know that even these cars can be sold out in the market and buyers are available to purchase the same too. However, these cars are known as salvage car. Though selling your salvage car can be a little risky but it is legal and hence, you can proceed to auctioning without any hesitation. If you bid for your car then you will be able to see how various kinds of cars are being auctioned at the salvage car auctions program.
What is a salvage car?
Before getting into the details of how selling your salvage car is possible it is important for you to have a clear idea about the definition of a car that has salvage title. The cars that have any one of the features mentioned below can be described as salvaged cars:
- A car 75% of which is damaged or has no value
- A car is so severely damaged that its repairing costs are higher than the value of the vehicle itself
- A car that was either stolen or lost and now has been recovered after a long time
- A car which was in past a reason behind a dreadful accident or any other similar sorts of collisions
- A car that is now damaged due to a natural disaster took place like floods etc.
- If the car is repossessed by someone else preferable a financial institution due to the previous owner's inability to pay
What buyers look for in a salvaged car?
- Buyers check the following points very carefully before purchasing a salvaged car from the previous owner or a financial institution:
- First of all, which are the car parts damaged or completely ruined
- Secondly, whether the salvage title given to a particular is justified depending on its condition or not
- Sometimes they may even ask for a Car-Fax report. Though these reports do not contain all the valuable data but most of the information required by a buyer is available in it.
- Obtaining a qualified inspection is another important task performed by all the buyers.
What the sellers should do before bidding?
Selling your salvage car means you are dealing with a damaged vehicle. Hence, it is important to remain aware of the essential facts associated with the same. Being a responsible and honest seller, it is your responsibility to let your buyer know everything related to the condition of your car and the parts individually. For that the first thing you would need to do is learning about the basic things like what are those things that your state would want you to provide them. Each state has their own rules and regulation and being a devoted citizen you must abide by the same. Usually all states ask the sellers to submit a written notice so that a prospective buyer (if there is any) becomes alert of it.
There are four simple steps following which you can sell your salvaged car properly –
- Let the government do a lien search for your salvaged car – contacting the state's department of motor vehicles (DMV) you would need to provide a representative the Vehicle Identification Number (VIN) of your car.
- Price should be a justified amount – after making an extensive research of the value of your car you should fix the price for the same.
- Give advertisement – negotiating a sale can be done in the best way through advertisements. Give ad of your car in the classified sections of newspapers and auto magazines where details of such junk and salvaged are given usually.
- Have a conversation with the interested buyers – it is natural that the buyers would declare an amount as low as possible. However, keeping in mind your price you should negotiate until they offer something close to the price you have asked for.


Declaration of Dresden (1982)
ICOMOS Symposia
The Declaration of Dresden is concerned with the reconstruction of monuments destroyed by war. It calls for documentation of monuments as a means to ensure their protection in times of conflict and notes the reasons and techniques for reconstruction as well the importance of exchanging knowledge between nations as a way to ensure appreciation and protection of this heritage. The Declaration supports earlier recommendations by UNESCO and the ICOMOS General Assembly on the prevention of war and calls for international cooperation and disarmament in order to prevent war.


text:
- Published on Monday, 10 September 2012 09:16
- Written by Ed Holtgraver
Sub-arctic climates experience temperatures from 100° F (38° C) in the summer to –60° F (–51° C) in the winter (Figure 1). While there is nothing spectacular about the high end of the range, the low end impacts the functionality of pneumatic actuators.
WHAT CAN HAPPEN
There is never a good time for an actuator to fail, but a failure when the temperature is at 60 below or when a blizzard limits capacity for transporting repair parts could be especially troublesome. Careful selection of valve actuation is critical.
When considering safety integrity, one assesses what might cause failure in a product. To illustrate, let's begin with an off-the-shelf pneumatic actuator intended for normal service and then consider what may fail if applied at –60° F (–51° C). Our basic parameters are as follows:
- The actuator housing is steel.
- The drive shaft is a precipitation-hardened stainless steel.
- The seals are buna.
- The shaft bushings are Nylon 6.
With these parameters in mind, at –60° F (–51° C):
The steel housing has become brittle. It is not necessarily weaker, but a sudden impact or an imperfection that would have no effect on the metal when ductile, could result in a sudden fracture at these sub-zero temperatures because the temperature is below the brittle transition temperature of steel. The question "will it fail at –60° F?" cannot be answered without knowing if there will be sudden impact loading, but possibility of failure has increased there.
A normally ductile metal will yield before fracture while a brittle metal will fracture without yield (Figure 2).
The precipitation-hardened shaft material has also become brittle and may fracture given an impact load. If, for example, the driven valve resists opening and then breaks free, the resulting sudden impact may cause the actuator shaft to fail.
The shaft material will have contracted at a rate of 9.4 by 10–6 per inch of diameter per degree F, while the Nylon 6 bushings will contract at a rate of 44.2 x 10–6 per inch per degree F. If the original gap between the bushing bore and the shaft surface was.002 inches and if the shaft diameter was 3 inches, then 130° F (54° C) temperature change from 70° F (21° C) to –60° F (–51° C) would contract the shaft diameter to 2.996 inches and the 3.002 inches diameter bushing bore to 2.985 inches, causing binding and failure.
The buna seals have turned to stone. Their normal resiliency, which allows flowing into and sealing leak paths, is gone. The seals cannot flex and leakage will occur at all seal points resulting again in actuator failure.
Failure of the example standard actuator is a certainty in this case. While there is nothing in the above example that is not obvious to every designer and user, the solution to avoid failure is to apply what we know.
For example, metals that have a brittle transition temperature that falls within the range of possible application temperatures should not be used unless absolutely no impact loads can occur. Examples of suitable metals are 300 series stainless steel and aluminum—neither has brittle transition temperature. Because of its greater strength, stainless steel may be the best choice for larger actuators.
Figures 3 and 4 show a simplistic representative impact test performed on a notched steel bar. One end was locked in a vice, and a hammer blow served to provide an impact. At room temperature, the hammer blow bent the specimen, but there was no fracture.
Figures 5 and 6 show an identical specimen that was brought to a temperature of –60° F. (An interesting side note is that the air cans used to clean a keyboard, when turned over, emit a liquid that has a measured temperature of –60° F, which proved convenient for testing.)
If at all possible, where there is close fit between moving parts, select materials having the same coefficients of thermal expansion/contraction (Figure 7).
Select seal materials that retain adequate resiliency at the lowest temperatures to be encountered. Additionally, eliminate every possible seal via basic design. A seal that is removed by design cannot fail. Figure 8 shows a simple drop test where a bar is dropped against an O-ring at both room temperature and at –60° F. Basic buna, ethylene propylene diene monomer (EPDM), Viton and silicone O-rings were tested. All except Viton showed excellent "bounce" at room temperature but only silicone retained resiliency and bounce at –60° F. Suppliers show low-temperature options for each of these elastomers, but in-house testing is recommended.
Designers and users who read this may respond: "We've used essentially standard actuators and all we did was select a seal material that remained resilient at the low temperatures." This article is not stating such a combination will fail, only that it may fail—the steel plates of the Titanic may not have fractured if it had not hit the iceberg, and not all World War II Liberty ships cracked in half. But by considering the above suggestions, the supplier can greatly reduce the risk of failure.
Users, as well as designers, have responsibilities regarding pneumatic actuators under extreme cold conditions.
First, and most obvious, users should shelter the actuator from weather extremes where possible. Second, users must assure a dry air supply, at least 15° F (–9° C) below the lowest temperature that may be experienced since ice plays havoc with air flow and mechanical motion. Finally, users should assess the recommended actuator and whether all possible precautions have been incorporated by the supplier.
Clearly, pneumatic actuators can perform their intended functions despite having to operate in extreme temperatures. However, they need to be designed and manufactured properly, and users need to take responsibility to keep them functioning correctly.


text:
What is it about the French language that so prettifies commonplace notions? Devoré fabric refers to velvets that have been dissolved to create transparent patterns. In French, this literally means 'devoured'. More prosaically, in English this fabric is sometimes referred to as 'burnout', which conjures up some rather horrid images.
The process was first created in Europe in the 1920s, and requires velvet that has a blend of cellulose fibre – viscose, cotton, rayon – and a protein-based fibre such as silk. A chemical gel is applied in the desired pattern to the fabric, and the cellulose is dissolved away to leave behind the silk, which appears as a semi-transparent gauze, and thereby creating the pattern.
Devoré was popular during the 1920s unsurprisingly, as it was then invented, and the dresses of the time were so much more inventive with the use of this innovative fabric than the ubiquitous scarves and fringed kimonos of today.


Aquarius Temporary Tattoo
Aquarius temporary tattoos represent the zodiac eleventh sign symbolized by water bearer. Mostly, Aquarius is depicted as a pot that is spilling water or water alone. The water is usually presented with two horizontal zigzag lines piled on each other. Sometimes, the two lines feature the stars around them to denote an Aquarius constellation design. Furthermore, the water bearer is usually presented as a woman or a man carrying a pot of water.


text:
Location: Northern Greece, Macedonia
The vardar is a cold northwesterly wind blowing from the mountains down to the valleys of Macedonia. A type of ravine wind, enhanced by a channelling effect while blowing down through the Moravia-Vardar gap, bringing cold conditions from the north to the Thessaloniki area of Greece. Most frequent during winter, it is blowing in the rear of a depression when atmospheric pressure over eastern Europe is higher than over the Aegean Sea. In general, the vardar is similar to the mistral wind.
A strong vardar event occured on January 12 and 13, 2003. Compare the significant drop in maximum temperature by 17°C (from 19C down to 2C) with the darstic jump in prevailing wind direction from easterly to northerly and northwesterly, and the wind speed and peak gusts during this time period recorded at Thessaloniki.


formerly Transcendental dram
Cask Strength: The Ins and Outs
What is cask strength?
Is it how strong the cask is? Is it the stress it can withstand in a rick (barrel) house stack? Does the kind of wood the cask is made of determine its strength? Does high charring weaken a cask and reduce its long term usefulness? Is the strength of a cask measured in units of elephants? I jest, of course. Actually cask strength has nothing to do with any of these!
Cask strength (also known as barrel proof in the world of US whisky) is a term used to describe a spirits alcoholic strength. It is measured in alcohol by volume (ABV) or proof. Proof is always double the ABV. So a whisky labeled at say one hundred proof will have an ABV of fifty percent alcohol. The remaining fifty percent being predominantly water. The term proof originated in the British Navy where sailors were issued rum rations, a practice that ended only in the 1970s. The "proof" they treasured was that their rum had not been watered down. The test: would sample stop gun powder from igniting? Only a full proof spirit would ignite. Too much water and the rum would not ignite. There would be no bang, no happy sailors.
A whisky that has been bottled at the proof that the spirit ended up at after its aging period is cask strength. It goes directly from the cask to the bottle. No further water has been added to dilute and reduce the proof. It is generally considered the premium offering and purest expression of a distilleries flagship malt.
A distillate maybe diluted reducing ABV directly after distillation. It is common to add water and lower the ABV before cask aging begins. Taking the whisky down from anywhere around 160 proof to a more common 140 – 100 proof. There are the obvious business benefits to adding the water as the distilleries have more whisky to age, raising the amount the distilleries have to bottle. But more importantly it is and should be a question of style and flavor profile. Interestingly enough Buffalo Trace have just released a series called the Experimental Collection which takes the exact same whiskies and starts the barrel aging process at four different proofs, ninety through one hundred and twenty five.
If the lowering of proof has happened before the new make spirit is put into barrel, the resulting fully matured whisky can still be bottled and sold as cask strength, because that is what it will be.
I love drinking cask strength whisky. Its amazing how many aromatics are released with just a few drops of water or by chilling and diluting with some ice. I get myself set up at home with a dropper and a glass of water (if you don't have a dropper a straw and a thumb will do!) and settle down to experiment. When pouring a cask strength whisky look for the formation of small beads around the edge of the glass. It's an obvious sign of high alcohol content! I always nose and taste the whisky as it is straight from the bottle. Then I add a drop or two of water and see what happens. Has the nose changed? Is there more obvious sweet or fruit elements to the taste? Below are a few of of my favorite cask strength bottlings if you can make the time to experiment with these it will be fun and delicious. Cheers.
Longrow Red Cabernet Sauvignon 52.1% ABV
Aged initially for seven years in bourbon casks and then transferred into Cabernet Sauvignon hogsheads, this is a fantastic limited-run addition to the Longrow family from the Masters at Springbank. I am generally automatically suspicious of wine finishes on my single malts as I have been let down by them on occasions. It was the Rocks from Bruichladdich that restored my belief, and would Springbank ever disappoint? I think not! The Nose: complex and beautiful. Buttery smoked haddock, coal and soap come to mind. Adding a drop of water brings on a leathery citrus-rind element. The Palate: incredibly full, with rich peaty notes that combine with red fruit and licorice in a truly harmonious way.
Glen Spey 21 year 50.4% ABV
A limited Edition single malt from Glen Spey on Speyside. The Nose: full of ripe tree fruit tones apple, pear, peach and even a hint of plum. A little water brings out creamy vanilla and a touch of chocolate. The Palate: starts with coconut and vanilla. The fruit comes through nicely giving a beautiful round sweetness.
Glen Farclas 2001 59.7% ABV
This Glen Farclas is a single barrel example bottled at eleven years old. Its robust nature sets itself apart from most other sherry cask Speyside malts. The stills at Glen Farclas are still heated on a direct fire basis. Direct fire heated pot stills are rare now in Scotland and the caramel created on the hot spot is a Glen Farcals signature. The Nose:earthy vine fruit tones, walnut shell, mustard seed & touch of fresh sugar cane. The Palate: vine fruit, hazel nut, pudding malt notes, touch of caramel, baking spice intense nutmeg long finish slightly aggressive but completely delightful in nature.
Dun Bheagan Caol Ila 22 year Old 55.4% ABV
This is a single barrel private bottling from Dun Bheagan, something of a rarity as Caol Ila will not release single casks to private bottling companies now. The distillery is currently running at full capacity just to meet the demand for the mighty Johnnie Walker blends of which Caol Ila is a major part so they have not got the spare barrels or inclination to share! The Nose: sweet char, high toned floral components, salted mango. Left to sit a for a while notes of honey roasted bacon emerge. The Palate: spicy vine fruit, chimney ash, earthy honey, sweet bacon fat and finishing charred wood.
Old Weller 107 The Original Wheated Bourbon. 53.5% ABV
Last, but not least, the Buffalo Trace produced Weller Antique 107 wheated bourbon. This is fantastic juice that never fails to impress. The Nose: rich full of corn, caramel, brown sugar. The Palate: overall sweet grain, sweet spice and this amazing dark chocolate. This bourbon shines when served on the rocks.
About Author


Problem with hard drive clicking
From ThinkWiki
Jump to: navigation, search
The click sound is usually caused by the drive parking its head. There are multiple causes for that, including power management and shock detection (see below for fixes). However, it may also mean that your drive is about to die (the dreaded "click of death"); check /var/log/messages (or /var/log/syslog) for suspicious errors, and remember to backup!
The Hitachi Travelstar 5K80 series, which shipped with many T series Thinkpads, is reported to suffer from this problem in particular. The clicks occur rapidly, and are quiet but noticeable. While in use in a quiet environment, the clicks can be relatively loud and annoying. The clicks seem to happen when the drive is idle and the power has been on for a significant period of time. Western Digital drives (like the Scorpio series) are also known to exhibit pronounced clicks. The clicking is also reported on other vendors' laptop hard drives, and is therefore almost certainly hard drive related rather than laptop chassis related.
The clicking sound appears to occur only when the drive is idle. Forcing the drive to be busy silences the ticking. Launching programs that access the hard drive, such as searching or defragmenting the drive, helps for a time. Cycling the power on the hard drive, such as through a full power-off reboot of the system, stops the ticking for the moment. hdparm can be used to reset the drive without rebooting, or to set the power management settings.
Others recommend using Hitachi's drive feature tool to increase the acoustic management level.
Possible cause and speculation
Laptop drives (especially Hitachi Hitachi Travelstar 5K80, Hitachi Travelstar 5K100 and SAMSUNG MP0804H) can unload heads very often, producing a noticeable click. Some ThinkPad BIOSes can be very eager to program the HD Advanced Power Management feature (hdparm -B), even when told to always keep the HD in "Maximum Performance mode", and will do so every time AC state changes and when coming out of suspend (be it S3 or S4). Unless you reset the HD's APM mode, it will unload its heads eventually, thus producing the clicks.
Another possible cause is the drive firmware running a low level surface media check periodically during idle time.
It is not known whether the problem is a sign of impending drive failure. The root cause of the problem is not yet known. It is quite likely to be a normal mode of drive operation. The problem is very prevalent.
Do not confuse this with regular activity. Many daemons poll (config) files every few seconds. Despite files being cached, POSIX compliant filesystems like ext2 or ext3 must update (= write) the last access time. More details and a workaround in How to reduce power consumption#Hard_Drives.
Some vendors have extra power-saving timers that might be causing issues, such as the idle3 timer of some WD Green drives that controls the WD Intellipark feature.
Tracking down the cause of the clicks
Using "smartctl -A" (part of the the smartmontools package), it is possible to check if any of the drive's attributes related to platter spin-up/down or head unload are increasing when a click is heard. That can help pinpointing the cause of the clicks.
A shell script like this may help to see if the Load Cycle Count is affected (indicating head unloading):
while :
 newval='smartctl -A /dev/sda | awk '$2=="Load_Cycle_Count" {print $10}''
 if [[ $newval != $lastval ]] # i.e., anything has changed (here: load cycle count only)
 echo $newval
 sleep 30 # or some other interval
Possible solutions (Linux)
The clicking noise apparently occurs when the drive is parking its heads (and ramping them off the drive surface in the process) after a timeout after the last disk access. Temporary relief has been found by using hdparm to turn off power management for the drive:
# hdparm -B 255 /dev/sda
That should stop the drive from parking the heads except when turning off. You can also try
# hdparm -B 254 /dev/sda
which doesn't turn power management off, but is the least aggressive setting: it will still unload heads, but far less often. (The drives are prepared to withstand a great number of head unloads: 200,000 unloads are typical, and Hitachi drives tolerate about 600,000 unloads.)
To make these changes permanent, you have to ensure that the -B commands are reissued at every boot, after resuming from disk or RAM, after hotswapping, and every time the ThinkPad BIOS might try to override them. This is done in two steps: changing the default settings when the system boots, and changing the settings when the system resumes after the lid is closed and re-opened.
Start-up settings
On Debian, edit /etc/hdparm.conf (as root):
# vi /etc/hdparm.conf
Add the following lines:
# Change sda to hda if it's a PATA drive
/dev/sda {
 apm = 255
Then, to refresh the settings, run
# update-rc.d hdparm defaults
On Ubuntu 11.04, the script /usr/lib/pm-utils/power.d/95hdparm-apm (part of the hdparm package) sets the APM level to 128 when on battery and 254 otherwise (these defaults are part of the hdparm_options() function in /lib/hdparm/hdparm-functions). This may be overridden in hdparm.conf with the custom setting apm_battery:
/dev/sda {
 apm = 255
 apm_battery = 255
Alternatively, you can override the 95hdparm-apm script by creating an empty file with the same name in /etc/pm/power.d:
# touch /etc/pm/power.d/95hdparm-apm
On Arch Linux, edit /etc/rc.local instead and add:
hdparm -B 254 /dev/sda
Then reboot the system, and the clicking noise should be gone.
Wake-up settings
The clicking may resume when the lid is closed and re-opened. To fix this, create an executable file named 50_hdparm-pm in /etc/pm/sleep.d:
# vi /etc/pm/sleep.d/50_hdparm-pm
With the following content:
To make it executable, run:
# chmod +x /etc/pm/sleep.d/50_hdparm-pm
If this does not help, but manually setting hdparm -B 255 /dev/sda does, try the script below instead:
case "$1" in
 sleep 2
 hdparm -B 255 /dev/sda
exit $NA
On Ubuntu 8.10 (Linux Mint 6) on a T42, there seems to be something else setting a lower value in battery mode, which might be coming from the BIOS because it clicks during boot and stops with this in place. Make an executable file named "" (the important thing is it's starting with "99"), containing the following:
# Use a less aggressive hard disk power management to get rid of
# clicking noise when the drive is parking its heads
hdparm -B 255 /dev/sda
Then, copy this file to /etc/acpi/suspend.d/, /etc/acpi/resume.d/ and /etc/acpi/start.d/. Remember to make the files executable (chmod +x).
Otherwise, try to reset the drive with -w, but note that this may cause data loss, according to hdparm's man page. When used in the following way to stop the clicking, I have not seen any data loss. YMMV.
# hdparm /dev/sda
# sync
# sleep 5
# sync
# hdparm -w /dev/sda
Laptop mode
Yet another solution is to install the laptop-mode-tools package and have it handle the hard drive's settings. Note that by default, laptop-mode-tools will frequently spin down the hard drive to save power.
Edit /etc/laptop-mode/laptop-mode.conf, set CONTROL_HD_POWERMGMT=1 and ensure that hdparm sets -B 255.
Disable WD Intellipark
On WD Green drives where Intellipark might be causing the problem, you can try to use the idle3-tools utility to disable Intellipark.
Possible solution (Windows)
On a X41T, do BIOS, firmware and IBM updates. Then simply disable the ShockProtection of the hard drive. On a native X41T Windows installation, it solved the problem; one will hear a click only every hour. It seems that the problem is related to an aggressive setting that will try to park the head often to protect the drive, so the problem is not related with power management settings. Perhaps a similar approach also works under Linux. – WBonX (Hitachi drive)
Specific models
Hitachi C4K60 (HTC426060G9AT00)
On a Thinkpad X41 with a has a 60 GB Hitachi C4K60 (HTC426060G9AT00) hard disk that had the clicking problem (even in Windows), the hdparm solution above did not work. The problem was indeed caused by the hard disk unloading the heads when idle, and the Load_Cycle_Count SMART statistic could be seen increasing when the clicks occurred.
hdparm -B settings did not seem to help, and a check of the hard


text:
Invented by Ernest H. Wright, liquid smoke is a savory additive that adds a hint of smokiness to foods. Liquid smoke allows nonsmoked foods to have the same flavor as smoke-cured foods, such as ham. Originally produced by collecting the condensed smoke from the top of a stovepipe, you can make your own liquid smoke at home by forcing smoke to condense and then collecting the liquid.
Video of the Day
To condense your own smoke at home, use a smoker or a grill that has a chimney, such as a clay Mexican cooking oven. The type of wood you use will affect the flavor of your smoke, so choose your wood carefully. Frequently used woods include apple, olive, hickory and mesquite. Light charcoal, placing it in the chimney and then cover it with the wood or chips. Soak the chips or wood in water beforehand to ensure a good smoke. Place a Bundt pan on the top of the chimney, and cover it with an upside down metal mixing bowl. Place a bag of ice over the metal bowl. As the smoke rises up the chimney, through the hole in the pan, it will collect in the mixing bowl. The ice cools the mixing bowl, causing condensation to run down the sides of the bowl, into the pan.
Homemade Vs. Store-Bought
Homemade liquid smoke guarantees that there are no chemical additives for color or flavor — manufactured liquid smoke often contains little to no "real" smoke. Homemade liquid smoke also lets you control the flavor of your smoke, as you can choose what type of wood to use. It is also cleaner tasting than store-bought liquid smoke. However, making it yourself is a labor intensive process, and you will often get only a little bit of smoke after several hours.


アトラシアン コミュニティをご利用ください。
When you attempt to sort issues by Rank using the Issue Navigator, the issues do not appear to be sorted numerically. Users sometimes expect that issues will appear ordered by the Rank field, in consecutive order from 1 to the number of ranked issues.
In JIRA Agile 5.8 and later, ranking is based on a custom field called 'Rank' (of type Global Rank). Note that you can have multiple fields of type Global Rank, if you wish. Each Global Rank field is a linked list that contains every issue in JIRA in order (from highest rank to lowest rank).
The 'value' of a Global Rank field for an issue is not meaningful, though by co-incidence it contains the absolute index inside the linked list of issues in the system. The user is not meant to view this field (it is not shown on the View Issue screen or the Issue Navigator by default) because the absolute number does not mean anything except when compared to other issues in the search results. For example, the ranks in a system might look like the following:
If the user searched inside project PRO and ordered by the rank field they would get the correct order of issues (PRO-1, PRO-2, PRO-8, PRO-13) but would be confused by the numbers (2, 4, 6, 7). The fact that there are gaps is irrelevant because they probably do not care about TST at all. The end summary:
 - If you query issues with "order by rank asc" you will get the correct order of issues by rank.
 - The numbers shown (ie. the value of the Rank field) will often not be sequential, but their order is correct.
 - The exception to the above is that sub-tasks are ranked independently.
 - If you queried every issue in the system and ordered by Rank, then the rank field would begin at 1 and increase consecutively except for subtasks.
Special Note About Sub-Tasks
While sub-tasks are included in the global rank linked list, they are ranked first by their parent then by their own rank. Thus the logic for comparing two issues during a "sort by rank" is:
 1. If issue is a parent issue, compare index.
 2. If issue is a subtask,
 1. First compare parent index, return higher (if not subtasks of the same parent).
 2. Then compare subtask index (if the other issue is also a subtask of the same issue).
This means that subtasks are always ranked immediately next to their parent regardless of the absolute ranking index value. As a result, a search of all issues in a system with something like "order by rank asc" would correctly return the ordered list of issues but the rank value would only be consecutive for non sub-tasks (except for gaps where the sub-tasks consume index values). Here's an example:
4PRO-8 / PRO-16
6PRO-8 / PRO-19
9PRO-1 / PRO-4
If you searched only for project PRO with "order by rank asc" you would get PRO-8, PRO-16, PRO-19, PRO-4, PRO-1, PRO-4. The 'rank' values would be 1, 4, 6, 3, 7, 9.
最終更新日 2013 年 8 月 26 日
Powered by Confluence and Scroll Viewport.


Take the 2-minute tour ×
We have Lotus Notes based application, which is accessed by several users. We communicate with our users by using mailboxes which reside on Domino server. With mailboxes migrating from Lotus notes to Microsoft exchange. What are possible ways to continue communications categories mentioned below:
1) Send normal email containing attachment to users. - Is it possible to send email from lotusscript when mailbox resides on microsoft exchange server? Any other solution.
2) Send email with buttons to approve or reject - How will it be done through Lotus notes when mailbox is microsoft exchange? In case we do not migrate mailbox however our clients access outlook mailbox is it still possible to send email containing approval buttons etc?
3) Agents look up mailbox regularly to receive communication from backend - Is it possible to access Microsoft exchange mailbox from Lotus notes so that we can process incoming emails? Any other solution?
share|improve this question
add comment
1 Answer
1) You first need to setup your Notes Domain to be able to forward to an Exchange domain. Microsoft provides some help here: _URL_
As you migrate users, you'll change their person documents to point to "Other Internet Mail", and include their Exchange email address, so the Notes environment knows how to reach them. Up to this point, this is something a Notes Administrator would handle if you have one at your company.
After that, you can send to any Notes user normally from LotusScript. Attachments go through fine.
2) Approval buttons are not feasible because they require some level of interactivity to be sent back to Notes. When you send an email from Notes to Exchange, you're sending it over SMTP and usually in an HTML format. It's the same as if you send an email from Notes to someone across the globe - as soon as it leaves the Notes domain, the email is converted to a MIME-based email and Notes-specific buttons, embedded objects, etc won't be converted.
As an alternative, you could send a link to the Notes database and have the users click that first, then open up the database to approve. That's very easy if your Notes database is on Domino and accessible via a browser. If it's a database that requires the Notes client, and you're on Windows, you can programmatically create links to the documents using the Notes:// URL scheme, which can easily be sent in an email.
3) This is a "it depends" answer. What are you trying to accomplish? If you're reacting to emails sent from an application, you could perhaps send two emails - one to a user, one to the database within Lotus Notes that needs to run an action. Or, you can set up rules from Exchange that send emails to Notes to trigger actions. If you absolutely must react to emails sent to Exchange, you should look into using Rules in Outlook/Exchange, and perhaps VBA to gain finer control of what actions occur.
share|improve this answer
add comment
Your Answer


text:
What to Expect During a Barber School Inspection
Inspector(s) will arrive and introduce themselves and present state ID.
Inspector will ask to speak to the owner or manager. If neither is available, the inspector will notify the person in charge that the inspection will proceed.
The inspection will consist of the following:
Check for required postings:
- Consumer complaint sign
- Sanitation Rules
- Foot spa log (if applicable)
- Most recent inspection report
- Current school license
- Current instructors licenses (with current photo of licensee attached)
- Outside building in at least 10-inch letters "BARBER SCHOOL--STUDENT BARBERS."
- Signs containing "BARBER SCHOOL--STUDENT BARBERS "on each inside wall of the school.
Check building requirements:
- Square footage
- Classroom and practical areas
- Required equipment
Inspector will confirm there is a minimum of 10 student work stations that include a chair that reclines, a back bar, a wall mirror and a sink behind every two work stations.
Barber school must have one barber chair available for each student in attendance on the practical floor.
- A barber school must have at least one instructor for every 25 students on the school's premises.
- A school may not enroll more than three student instructors for each licensed instructor.
- Check that hours are being recorded in SHEARS.
- Check display of Student Permits at work stations, and in album.
- Check that the school is properly accounting for hours granted to students through monthly progress reports documenting daily attendance.
- Check that monthly progress reports are being retained in student file for 48 months.
Check for the implementation of Health and Sanitation standards and practices:
- Work stations
- Implements cleaned and sanitized before use on each client
- Wet disinfectants
- Dry storage areas
- Towel storage (clean, soiled)
- Shampoo bowls
- Hair swept up as soon as practicable
- Single use items being discarded after each use
- Trash receptacle covered
Check restrooms. (hot and cold running water, clean and in good repair, and no chemicals stored in restroom)
Check that furniture, floors, windows, ceilings, and equipment are clean and in good repair in accordance to sanitation rules.
Check manicure/pedicure area and facial area (if applicable) for compliance.
If school is providing manicure or pedicure nail services an autoclave, dry heat sterilizer or ultra violet sanitizer is required.
Check that prohibited products and not in the school and no prohibited practices are being performed.


Not logged in
uvc command
uvc - Interface to UVC cameras using libuvc
package require tcluvc
uvc option?arg...?
This command provides several operations to interface UVC USB cameras using the infrastructure provided by libuvc and libusb which is available on common Linux, FreeBSD, and MacOSX platforms and sometimes found working on Android devices. option indicates what to carry out. Any unique abbreviation for option is acceptable. The valid options are:
uvc close devid
Closes the device identified by devid which has been opened before using uvc open.
uvc convmode devid?flag?
Reports or modifies the conversion mode for frames acquired from the opened device identified by devid. Conversion mode 1 (on/true) performs frame format/color space conversions in the special UVC thread which controls the USB transfers, mode 0 (off/false) does this instead in the normal Tcl event loop. The default mode is 1.
uvc counters devid
Reports a three element list of statistic counters on the device identified by devid. The first element is the number of video frames received, the second the number of video frames processed with uvc image, and the third the number of video frames dropped.
uvc devices
Returns device information which can be used for uvc open as a list. Each device adds three elements to the list: the first element is the device name as a colon separated string with two or three fields being vendor ID (hexadecimal, 0x prefix is optional), product ID (hexadecimal, 0x prefix is optional), and bus/device numbers separated by a dot; the second and third list elements are the vendor name, and the product name. To open the device, its name (the colon separated string) must be used, the other two items are available for presentation purposes. If udev support is available (Linux specific), this list is refreshed on plug and unplug of devices. Otherwise, the list is a snapshot of suitable devices currently connected.
uvc format devid?index fps?
Returns or changes the frame format of the device identified by devid. The optional parameter index is an integer number giving the index of the frame format returned in uvc listformats. The optional parameter fps is the frame rate. If omitted, the currently active index and frame rate are returned. Changing the frame format and rate is only possible if the device is not capturing images.
uvc greyshift devid?shift?
Returns or sets the bit shift to be applied on grey images with a bit depth higher than 8 which are captured from device devid. The default value is 4, which is suitable for greyscale cameras with 12 bit resolution. The shift is not applied when the image subcommand retrieves raw byte array data.
uvc image devid?photoImage?
Copies the most recent captured image of the device devid into the photo image identified by photoImage and returns non-zero on success or zero if no data transfer has taken place. If photoImage is omitted, a four element list is returned with the first element being the image width, the second the image height, the third the number of bytes per pixel, and the last the image's RGB values with 3 bytes per pixel in red, green, blue order as a byte array. In this case an error is indicated by throwing an exception.
uvc info?devid?
Returns information on open devices. If devid is specified, a list of two elements is returned, the first being the device nameand the second the image callback command for that device, i.e. the same arguments which were used on uvc open. If devid is omitted, a list of devids, i.e. all currently opened devices is returned.
uvc listen?callback?
Retrieves or sets the callback command called on plug and unplug of devices. When a device is plugged or unplugged that callback is invoked with two additional arguments: the type of event (add or remove) and the device name (see uvc devices for the naming convention) which was added or removed. Only usable if udev support is available.
uvc listformats devid
Returns a dictionary keyed by a format index as integer with the values being another dictionary with information about the frame size and rate of the respective frame format. The returned indices can be used in in uvc format to switch to another frame size and/or to change the frame rate.
uvc mbcopy bytearray1 bytearray2 mask
Copies the content of RGB byte array bytearray2 into the byte array bytearray1 using an RGB mask. Both byte arrays must have identical length which must be a multiple of 3 (for RGB). The main purpose of this command is to combine images from two cameras into an anaglyph 3D, where (for a red-cyan anaglyph) the left camera image uses mask 0xFF0000 (red component) and the right camera image uses mask 0x00FFFF (green and blue components).
uvc mcopy photo1 photo2 mask
Copies the content of the photo image photo2 into the photo image photo1 using an ARGB mask. Both photo images must have identical width, height, and depth. The main purpose of this command is to combine images from two cameras into an anaglyph 3D, where (for a red-cyan anaglyph) the left camera image uses mask 0x00FF0000 (red component) and the right camera image uses mask 0x0000FFFF (green and blue components).
uvc mirror devid?x y?
Retrieves or sets flags to mirror captured images along the X or Y axis. Parameters x and y if specified must be boolean values.
uvc open devname callback
Opens the device with device name devname and establishes callback as command to be invoked on captured images and finally returns a devid, i.e. a handle to further deal with the device. An additional parameter is appended when callback is invoked: the devid of the device. For the format of devname see the description of uvc devices.
uvc orientation devid?degrees?
Retrieves or sets the orientation of captured images regarding image rotation. degrees if specified must be an integer number.
uvc parameters devid?key value...?
Returns or changes device parameters for the device identified by devid given as key-value pairs, e.g. brightness 100 will change the brightness setting of captured images to the device dependent value 100. The command returns the current device parameters (after the potential change, when keys and values were given) as a key-value list which can be processed with array set or dict get.
uvc record devid frame width height bpp bytearray
Transcodes the frame described by width, height, bpp, and bytearray to JPEG and writes the result to the recording file or stream. The recording must have been started with the -user option. An integer number is returned as result: 1 indicates successful write, 0 no write due to frame rate constraints, and -1 an error during the write.
uvc record devid pause
Pauses recording to a file or stream.
uvc record devid resume
Continues recording to a file or stream.
uvc record devid start options...
Starts recording to a file or stream. options control the data format, frames per second, and output channel. The option -fps specifies the approximate rate in frames per second as a floating point number. The option -chan specifies the channel to which the frames are written. This channel is detached from the Tcl interpreter and controlled solely by the uvc record command. The -boundary option specifies a MIME multipart boundary string and selects the MIME type multipart/x-mixed-replace suitable for streaming to a web browser. The content type delivered to the browser is image/jpeg. If the -boundary option is omitted, the output format is raw AVI and requires the channel to be seekable. The option -mjpeg forces the recorded data to JPEG format, i.e. a transcoding to JPEG will be performed in software, if the device doesn't already deliver a JPEG stream. The option -user turns off automatic frame write operations to the recording file or stream when a frame is delivered from the device. Instead, uvc record devid frame must be invoked in the callback function. The -user option implies -mjpeg.
uvc record devid state
Returns the current recording state as stop, recording, pause, or error. The state error indicates a write error on the file or stream. In this case no further frames will be written.
uvc record devid stop
Finishes recording to a file or stream and closes the underlying channel.
uvc start devid
Starts capturing images of the device identified by devid. When an image is ready, the callback command set on uvc open is invoked.
uvc state devid
Returns the image capture state of the device identified by devid. The result is the string capture if the device is started, stopped if the device is stopped, or error if an error has been detected while image capture was active.
uvc stop devid
Stop capturing images of the device identified by devid.
uvc tophoto width height bpp bytearray?rot mirrorx mirrory?
Makes the RGB (bpp is 3) or gray (bpp is 1) byte array bytearray of width times height pixels into a Tk photo image. Optionally, the data is rotated by rot degrees (possible values 0, 90, 180, 270) and/or mirrored along the X and/or Y axis as specified by the boolean values mirrorx and mirrory.
The uvc command tries to lazy load Tk, thus allowing to use it from


text:
Measuring tube sliding micrometer - Type: Standard
Measuring tube made of HPVC, telescopic coupling made of brass with high-precision conical measuring stop. Option: Water pressure-tight measuring tubes (double O-ring seal). Used for high-precision measurement axial displacement measurements in soil, rock and in boreholes in concrete structures.
1. Brass telescopic coupling mounted on HPVC measuring tube 2. Measurements in dam 3. Installation of measuring tube with injection packer


text:
Taking Risks and Doing Gender Among BASE Jumpers
In the arena of extreme sports, BASE jumping is among the most dangerous. BASE jumpers leap from fixed objects such as bridges, skyscrapers and cliffs, and freefall for several seconds before parachuting back to earth. Men On The Edge offers a wide-ranging sociological analysis of gender and voluntary risk taking as it unfolds in the context of BASE jumping. This book challenges highly individualistic accounts of voluntary risk taking and extends early attempts to explain the gendered participation in the sport by drawing on wider debates about modernization, individualization, community formation, gender relations and the sociology of the everyday.


Skip to main content
Whitepaper: Bidirectional Cross Filtering
Headshot of article author Kasper de Jonge
Bidirectional cross-filtering is a new feature for SQL Server 2016 Analysis Services and Power BI Desktop that allows modelers to determine how they want filters to flow for data using relationships between tables. In SQL Server 2014, filter context of a table is based on the values in a related table. With bidirectional cross-filtering, the filter context is propagated to a second related table on the other side of a table relationship. This can help you solve the many-to-many problem without writing complicated DAX formulas.
We just released a whitepaper that describes this feature in detail, available now for download. The whitepaper covers how the feature works and how it solves problems like the traditional many-to-many scenario. It also points out other interesting use cases such as using it for a date table, and how it solves dynamic security much easier than before.


text:
When I type "product.name" or "product.id" into a cell, it's auto–formatted as a URL (different colour, underlined, hover shows it as an external link). But it's not a URL, it's plain text.
Similar text like "product.periodLength" isn't converted to a URL.
- How to set a Google Docs Spreadsheet cell format to bare text?
- How can I stop Google Sheets formatting a Forms response as a date?
I've tried setting the formatting to plain text and using a leading single quote ('), but it doesn't stop the text being formatted as a URL.


text:
The Frank R. Turk Scholarship Fund, named after one of the founders of Youth Leadership Camp (YLC), provides scholarships to campers who may not have the means to cover the entire camp fee. The YLC program recognizes the importance of having a diverse group of campers from every background and from every part of the nation, and is grateful to donors and supporters who have made this Scholarship Fund possible. The Turk Scholarship Fund will be used to help defray the costs of camp tuition for eligible campers on an annual basis while maintaining the Fund for the long term.
Applicants will need to provide the following (a total of four required documents):
1. A detailed explanation of the financial hardship with supporting documentation (i.e. an approved Free or Reduced Lunch Application (FRLA) approved by your child's school food services).
2. Demonstration of Need and Income Verification. Submit one of the following documents below:
- Most recent federal income tax return
- A letter from your child's school verifying your income
- Three consecutive paychecks that are no older than 60 days
- Current social security benefits statement
- Current worker's compensation benefits statement
- Current disability benefits statement
- Current food stamp statement
3. An one-page nomination letter from the school justifying the financial hardship.
4. What is your most memorable accomplishment and why? Up to one or two paragraphs.
Please email all the four required documents to [email protected] by April 1, 2020.


text:
Date of this Version
Published in Environ Toxicol (2007) 22: 1–8. DOI 10.1002/tox.20227
The potential ecological impacts of anaerobic degradation of vegetable oil on freshwater sediments were investigated. Sediment toxicity was evaluated using two regulatory biotests: the Microtox® Solid Phase Test and an amphipod (Hyalella azteca) bioassay. The results of the Microtox test showed that the toxicity of the vegetable-oil-contaminated sediments (about 17–33 g oil/kg dry sediments) increased after 2 weeks incubation and then decreased to near background levels after incubation for 8 weeks under anaerobic conditions. The amphipod toxicity bioassay showed that the toxicity of fresh contaminated sediments decreased over time and returned to background levels within 8 weeks. These results suggest that the impact of vegetable oils on organisms within sediments may be limited. To account for the significance of environmental conditions, additional studies over a wide range of incubation conditions (e.g., temperature, nutrient concentration) and other test organisms at various trophic levels are recommended for both acute and chronic toxicity assessment.


The MPL3115A2 is a handy high precision barometric pressure that you can read from CircuitPython and Python code! This sensor provides pressure, temperature, and even calculates altitude (based on pressure) automatically for you. Best of all with a simple CircuitPython module you can read data from the sensor with ease. This guide shows how to connect a MPL3115A2 to a CircuitPython board and read data from it with Python code!
To follow this guide you'll need the following parts:
Connect your MPL3115A2 to your development board using a standard I2C connection. Here's an example of wiring a MPL3115A2 to a Feather M0 board:
 - Board 3.3V output to MPL3115A2 Vin
 - Board GND/ground to MPL3115A2 GND
 - Board SCL to MPL3115A2 SCL/I2C clock
 - Board SDA to MPL3115A2 SDA/I2C data
Installing Library
To use the MPL3115A2 you'll need to install the Adafruit CircuitPython MPL3115A2 library on your CircuitPython board.
Remember for non-express boards like the, you'll need to manually install the necessary libraries from the bundle:
 - adafruit_mpl3115a2.mpy
 - adafruit_bus_device
You can also download the adafruit_mpl3115a2.mpy from its releases page on Github.
Before continuing make sure your board's lib folder or root filesystem has the adafruit_mpl3115a2.mpy, and adafruit_bus_device files and folders copied over.
To demonstrate the usage of the sensor we'll initialize it and read the pressure and other values from the Python REPL.
import board
import adafruit_mpl3115a2
i2c = board.I2C()
sensor = adafruit_mpl3115a2.MPL3115A2(i2c)
Remember if you're using a board that doesn't support hardware I2C (like the ESP8266) you need to use the bitbangio module instead:
import board
import bitbangio
import adafruit_mpl3115a2
i2c = bitbangio.I2C(board.SCL, board.SDA)
sensor = adafruit_mpl3115a2.MPL3115A2(i2c)
 - pressure - The barometric pressure in Pascals.
 - temperature - The temperature in degrees Celsius.
 - altitude - The altitude as calculated using barometric pressure and returned in meters.
print('Pressure: {0:0.3f} pascals'.format(sensor.pressure))
print('Altitude: {0:0.3f} meters'.format(sensor.altitude))
print('Temperature: {0:0.3f} degrees Celsius'.format(sensor.temperature))
To make the altitude calculation more accurate you'll want to set the pressure at sea level for your current location and weather conditions. Barometric pressure sensors can only calculate altitude based on the pressure of air they detect and that pressure changes daily and with weather conditions. Look up your local weather forecast and it typically includes the pressure at sea level. Set the sealevel_pressure property (to a value in Pascals) to tell the chip this information and get the most accurate altitude measurements:
sensor.sealevel_pressure = 103040
That's all there is to using the MPL3115A2 with CircuitPython!
Here's a complete example that will print the pressure, altitude, and temperature every second. Save this as on your board and open the REPL to view the output. Remember to switch to the bitbangio module if necessary for your board:
# SPDX-FileCopyrightText: 2019 Tony DiCola for Adafruit Industries
# SPDX-License-Identifier: MIT
# Simple demo of the MPL3115A2 sensor.
# Will read the pressure and temperature and print them out every second.
import time
import board
import adafruit_mpl3115a2
# Create sensor object, communicating over the board's default I2C bus
i2c = board.I2C() # uses board.SCL and board.SDA
# Initialize the MPL3115A2.
sensor = adafruit_mpl3115a2.MPL3115A2(i2c)
# Alternatively you can specify a different I2C address for the device:
# sensor = adafruit_mpl3115a2.MPL3115A2(i2c, address=0x10)
# You can configure the pressure at sealevel to get better altitude estimates.
# This value has to be looked up from your local weather forecast or meteorological
# reports. It will change day by day and even hour by hour with weather
# changes. Remember altitude estimation from barometric pressure is not exact!
# Set this to a value in pascals:
sensor.sealevel_pressure = 102250
# Main loop to read the sensor values and print them every second.
while True:
 pressure = sensor.pressure
 print("Pressure: {0:0.3f} pascals".format(pressure))
 altitude = sensor.altitude
 print("Altitude: {0:0.3f} meters".format(altitude))
 temperature = sensor.temperature
 print("Temperature: {0:0.3f} degrees Celsius".format(temperature))
This guide was first published on Feb 20, 2018. It was last updated on Feb 20, 2018.


text:
Optional Arguments in VBScriptBy Francis Chau
A frequently asked question about VBScript is "How can I make an argument of a Function or Sub optional?" and matter of factly, it's been answered on ASPFAQs.com at _URL_ The answer to this question? VBScript does not support optional arguments, however, JScript does and the FAQ shows an example of this in JScript.
To circumvent this VBScript limitation, I will show you a technique that can be used to simulate optional arguments in VBScript that I call the Array-based approach. I'll also demonstrate the more widely accepted NULL-checking approach.
Using the Array-Based Approach
To see how to use the array-based approach for creating subroutines with optional arguments, let's start by an example subroutine:
Notice in the subroutine declaration, we've only defined one argument,
rArgs will be an array of values we would like to pass into our
The next few lines declare our local variables and initializes them to default values (empty
strings, in this case).
Next, we use the
UBound() function to determine the number of arguments passed.
Then assign the array elements to the local variables:
Since the array is zero-based, our first
Case branch assigns the first element to
v1 variable. As we need to add more arguments to our function, we can easily
We conclude our subroutine by printing out the values of our local variables.
To call this subroutine we need to create an array of the size based on the number of arguments we wish to pass into the function, and then populate this array with the values we wish to pass to the function. Finally, we pass along the created array as the single argument to the function:
Notice that you can also use the
Array constructor syntax like so:
Now that we have a way to pass only the arguments we choose using the array-based method, let's take a look at another approach at optional arguments: the NULL-checking approach, which we'll examine in Part 2.


text:
group ski lessons
12 pupils maximum
Children skiing lessons for beginner and advanced levels
Our ESF instructors are pleased to teach their skiing technique to your children all week long. In a fun and convivial atmosphere, your children will be able to improve at their own pace.
These group lessons allow your children to learn how to ski or to perfect their technique. The group is composed of 12 children maximum so that your children can improve in a friendly atmosphere.
- Group lessons 2 hours
- Group lessons 3 hours FUTURE CHAMPION: Bronze Star,Gold Star


Packaging Component
d_packaging component (compare with d_Component and d_Package)
A Packaging Component is an element that appears very similar to a Component in a diagram but behaves as a Package in the Project Browser (that is, it can be version controlled and can contain other Packages and elements). It is typically used in Component diagrams.
In the Project Browser, the three elements display as shown below:
The Component element cannot contain child Packages or Packaging Components.
Toolbox Icon


Abigail A Static Character In The Crucible
462 Words2 Pages
A static character is someone whose personality does not change as a story developes. An example of a static character is Abigail Williams from Arthur Miller's play The Crucible. Abigail keeps the same goals and motives as the play develops. Throughout the play Abigail is manipulative of others around her and lies to benefit herself. The first two acts of the play show how Abigail manipulates others and lies to prevent getting in trouble for what she did. In the first half of the play Abigail lies and threatens others to keep from getting in trouble when her uncle catches her and other girls dancing in the forest. Abigail was caught doing something strictly forbidden in her society and is scared that Betty, Abigail's cousin, may tell on her and hit Betty. The text states, "Betty, you will never say that again! You will never-' Smashes her across the face: 'Shut it! Now shut it!" Abigail is scared of what her uncle would do if he were to find out that she was dancing and drank blood. In act two of the play Abigail wants to be with Proctor but cannot and shows her jealousy of Goody Proctor. The text states, "Oh, I marvel…show more content…
Proctor knows that Abigail has accused his wife to try and get her killed so that Abigail can be with Proctor. The text states, "She thinks to dance on my wife's grave!" Abigail is deceiving the court by telling them that Goody Proctor is a witch and the court believes her since Abigail is believed to be a victim of witchcraft. As the play continues to Mary Warren is trying to tell the court that Abigail has been lying. To avoid getting in trouble Abigail uses her influence and lies that Mary sent spirits to attack her. The text state, "The wings! Her wings are spreading! Mary, please don't, don't-" Scared of getting in trouble Abigail says that Mary has cast her spirit on her. Throughout the play Abigail lies for her own benefit and manipulates
Open Document


Both, Boy Names, Girl Names baby nameSkylar
What does the name Skylar mean?
The different meanings of the name Skylar are:
 - English meaning: Eternal life and strength
 - Dutch meaning: A shelter
 - American meaning: The Sky; Guarded; scholar, learned one
The meaning of the name "Skylar" is different in several languages, countries and cultures and has more than one possibly same or different meanings available.
Additional information: The name Skylar is an English variation of the Dutch surname Schuyler. The origin of this name is Dutch ans is mainly used is US as a boy name, though it is not used in the Netherlands as a first name for boys.


text:
Activity Report: filtering by "is null" or "is not null" is ignored
On the Activity Details report, any filter that allows selecting "Is Null" or "Is Not Null" is broken (with the possible exception of the Source/Target/Assignee Contact filters).
- Go to the Activity Details report.
- Remove the "Activity Date is this month" default filter.
- Run the report. Observe the total number of activities in the database.
- Filter a field that allows null/not null (e.g. Location) to Is Null.
- Run the report again. Observe that the total number of activities is the same (but that could be legitimate).
- Filter the same field to Is Not Null.
- Run the report one more time. Observe that the total number of activities is still the same.
Filtering by "is null" or "is not null" is ignored.
Filtering by "is null" or "is not null" should work.
This was broken by the fix to CRM-18356. Since my initial attempts at fixing this reintroduced the bug described there, I wrote tests for both scenarios to lock both fixes in.


Take the 2-minute tour ×
the code that didn't work:
login_form = page.form_with(:method => 'post')
and code that works
login_form = page.form_with(:method => 'POST')
I inspected the form object via puts page.forms.inspect and got
 {name nil}
{method "POST"}
html source:

Members Login
Username
Password
Forgot your password?
share|improve this question
add comment
1 Answer
up vote 1 down vote accepted
Looking at the source, it could be that Mechanize is supposed to work like that. It forces the form method to uppercase when it fetches the form; you are expected to supply the method in uppercase when you want to match it. You might ping the mechanize person(s) and ask them if it's supposed to work like that.
Here in Mechanize.submit, it forces the form method to uppercase before comparing it:
def submit(form, button=nil, headers={})
 case form.method.upcase
 when 'POST'
 when 'GET'
and here again in Form.initialize, the method is forced to uppercase:
 def initialize(node, mech=nil, page=nil)
 _USER_ = (node['method'] || 'GET').upcase
But in page.rb is the code where mechanize is matching a form (or link, base, frame or iframe) against the parameters you gave, the parameter you passed in is not forced to uppercase, so it's a case sensitive match:
 def #{type}s_with(criteria)
 criteria = {:name => criteria} if String === criteria
 f = #{type}s.find_all do |thing|
 criteria.all? { |k,v| v === thing.send(k) }
 yield f if block_given?
Well, it's a case sensitive match if you pass in a string. But if you pass in a regex, it's a regex match. So you ought to be able to do this:
login_form = page.form_with(:method => /post/i)
and have it work fine. But I would probably just pass in an uppercase String, send the Mechanize person(s) an email, and move on.
share|improve this answer
_USER_ Conrad: thank you Wayne. Very nice explanation, even myself understood :-) – Radek Jan 30 '10 at 2:23
_USER_, My pleasure. – Wayne Conrad Jan 30 '10 at 2:31
add comment
Your Answer


eKiosk GmbH
Ceremonial handover of Germany's first citizens terminals with video function
presentation citizens terminal Neustadt
At 14.10 the first citizen kiosk of the State Saxony was put into operation in Neustadt. The formal presentation was made by Mr Justice Minister Jürgen Martens (FDP) to the mayor of Neustadt (Saxony ) Manfred Elsner.
Through the video interface and the remote control of scanners, printers, etc developed by eKiosk it is the first citizens terminal in Germany with these features and extends the eGouvernment landscape in Germany as an example. Minister in Justice Minister Jürgen Martens ( FDP) sees this project as a major project at the European level to support local communities.
The Citizens terminal will be used in the future as a branch of the county Saxon Switzerland.
So applications can be filled out and printed. Via video phone the Citizens are connected to an employee in the district headquarters in Pirna.
The device and 13 more in Saxony are tested for two years, and when the civil terminal is accepted by the population, is a major rollout.


Take the 2-minute tour ×
Is there some form of a lock that I could use?
Maybe something using doors and watersource...
share|improve this question
possible duplicate of How do you create a waterfall elevator? – badp Dec 15 '10 at 17:11
I don't think this qualifies as a duplicate question. The answer is the same, yes, but that closing it for that reason is like closing "what is 2 + 2?" as a duplicate of "What is 1 + 3?". – Raven Dreamer Dec 15 '10 at 18:02
If you don't mind modding, the finite liquid mod might allow you to construct a real water lock with pistons (or doors?) – Zommuter Aug 24 '13 at 7:15
2 Answers 2
up vote 24 down vote accepted
Current as of Retail 1.1
Okay so the key mechanic that broke the traditional waterfall elevator was that boats no longer travel upward in a waterfall. However, boats will move rapidly upward in source blocks.
So what is a source block? A source block (also known as "still water") is water that is created during map creation or placed with a bucket. Water that "flows" from this block is informally known as moving water. So in order to create a modern boat elevator, we need to create a shaft of only source blocks.
Here is my construction.
1: I created a canal with a glass wall and an "entranceway" fitted with signs. These signs prevent water from flowing past them but still allow boats through.
enter image description here
2: I build up a second layer of glass walls around my new shaft. Then I flood this layer with water. Note that I have to fill each of the four blocks in this layer of the shaft with water from the bucket - these are now all source blocks. Notice how none of them are moving. If the water is moving, you need to add more hits from your bucket.
enter image description here
3: I keep adding glass layers and each time I do, I add a layer of source water.
enter image description here
4: Here I've added a spillway at the top where the boat can float after it has risen up the shaft.
enter image description here
You can download this world here:
share|improve this answer
There is much win in this post. – Kenneth Posey Feb 1 '12 at 1:18
This applies to versions before Beta 1.6.4
share|improve this answer
Water won't pass through doors, open or closed. So your lock system would end up being more of a dam. – ElfSlice May 4 '11 at 0:27
_USER_ - "water cannot pass through doors". How does that disagree with your comment? – Raven Dreamer May 4 '11 at 0:36
_USER_ > I'm just not sure how you were planning to rig up a lock system using doors. :P – ElfSlice May 4 '11 at 1:13
_USER_ - you can easily get your boat's momentum high enough that you can travel through the air block without stopping. Same idea where you can put a switch (or other non-minecart track block) in the path of your minecart and still have it complete its circuit. – Raven Dreamer May 4 '11 at 2:28
_USER_ - honestly, I was only speaking from a "getting out" perspective. I haven't tried re-docking, as it were. – Raven Dreamer May 4 '11 at 4:39
Your Answer


Skip to definition.
Adjective: alloyed 'a,loyd
 1. (used of metals) debased by mixture with an inferior element
 2. (used of metals) blended to obtain a desired property
Verb: alloy 'a,loy
 1. (metallurgy) lower in value by increasing the base-metal content
 - debase
 2. (metallurgy) make an alloy of
See also: blended, impure
Type of: blend, coalesce, combine, commingle, conflate, devalue, flux, fuse, immix, meld, merge, mix
Encyclopedia: Alloyed
Alloy, West Virginia


unk UNK ( - )
1. unk UNK married unk WALLER.
unk WALLER was the son of Richard WALLER (bef1690- ) and Jane PIKE ( - ). He and unk UNK had the following children:
William WALLER (bef1759- )
Second Generation
2. William WALLER, son of unk WALLER and unk UNK, was born before 1759. He was an Ironmonger. He married Rebecca PRIOR on 2 February 1780 in Fareham.
Rebecca PRIOR and William WALLER had the following children:
Thomas WALLER (bef1786- )
Third Generation
3. Thomas WALLER, son of William WALLER and Rebecca PRIOR, was born before 1786. He was a Carpenter. He married Sarah BESWICK on 11 May 1807.
Sarah BESWICK was born in 1786. She died in 1786. She and Thomas WALLER had the following children:
Thomas Walter WALLER (_PHONE_). Thomas was born in 1808 in Bursledon, Hampshire. He was a Cabinet Maker. He died on 10 February 1872. He was buried in Southampton Cemetery.


text:
Department of Marine Ecology, Khoramshahr University of Marine Science and Technology, Khoramshahr, Iran
Department of Marine Biology, Faculty of Biological Science, Shahid Beheshti University, Tehran, Iran
The concentrations of mercury (Hg) and methyl mercury (MeHg) in sediment and tissues of Barbus grypus and Barbus esocinus fish species from Musa estuary, north part of the Persian Gulf, were measured. The order of Hg and MeHg concentrations in the sediment and tissues of the fish species was as follows: liver > gill > muscle > sediment. In the tissues of two fish species, the Hg and MeHg concentrations were highest in liver whereas lowest in the muscle. In the sediment, mean concentrations of Hg and MeHg were 0.83 and 0.437 µg g−1. Mean concentrations of Hg and MeHg in B. grypus were 1.2–0.624 µg g−1 and in all tissues of B. esocinus were 0.75 and 0.421 µg g−1. Significant correlation between heavy metal concentration in sediment and fish may be related to high variability of heavy metal in the sediment.


text:
Here's an easy way to weld all the letters of a word together in the Design Studio:
1) With the DS open and your cursor set on the mat where you want it, type the first word (all the letters) with no spaces between them. Then, in the kern box, type "-0.25" (without the quotes) and hit the apply button. This will overlap the letters. If they overlap too much, experiment to see what overlap you like by changing the kern number.
2) Then, highlight each letter and click weld.
Here's a tip: To highlight a letter or object in DS, click on a line segment of the letter or object. This will bring up the bounding box (the one with arrows). I spent many frustrated hours trying to get the letters to highlight.
Also, another tip: If you can't get the cursor to move on the mat, adjust your double click speed. It doesn't seem to handle super fast double clicking well. Slow it up a little bit and see if that helps.
One more thing, the DS program only allows ONE computer to cut your creations. So, if you have DS, you can load it on multiple computers, in order to create things, BUT you may only cut with one of them. I assume it is the FIRST one you load DS onto. I am really cranky about this because a day after I loaded DS onto my Windows laptop, it decided it wouldn't take a charge from the power cord anymore. Arrrgghh!


Boolean b1 = true;
Boolean b2 = true;
String b3 = 'b1 && b2';
Boolean b4 = Boolean.valueOf(b3);
system.debug('test Bool '+ b4);
 - I'm curious how you want to apply this, or what problem you need to solve? – pchittum Jan 29 '13 at 12:20
 - Would it help if you convert your conditions into a dynamic query and act on results from that? – Vid L May 3 '13 at 11:13
It is possible to mimic a Javascript eval() in Apex by making a callout to the executeAnonymous API method.
There are two common ways you can get a response back from executeAnonymous.
 1. Throw a deliberate exception at the end of the execute and include the response. Kevin covers this approach in EVAL() in Apex. Secure Dynamic Code Evaluation on the Salesforce1 Platform.
 2. I used a variation of this approach but returned the response via the debug log rather than an intentional exception. See Adding Eval() support to Apex.
Using my example the Apex would be something like:
string toEval =
 'Boolean b1 = true;' +
 'Boolean b2 = true;' +
 'boolean b3 = b1 && b2;' +
 'System.debug(LoggingLevel.Error, b3);';
boolean b4 = soapSforceCom200608Apex.evalBoolean( toEval );
system.debug('test Bool '+ b4);
 - You rock! Never known this is possible in Apex!!!! You have my vote up! – Patlatus Apr 16 '15 at 8:55
 - No. There are some native features that will evaluate your string such as Database.insert and other DML methods. But not an arbitrary expression. – pchittum Jan 29 '13 at 12:19
 - 2
I created an apex class on github to do this. Take a look at this... _URL_
List values = new List{
true, false, true, true, false, true, true, true
BooleanEvaluate boolEval = new BooleanEvaluate('1 && ( ( 2 || 3 ) && 6 ) && ( 4 && 5 || ( 7 && 8 ) )', values);
If someone wants to improve it, please fork! Hope it helps
 - 1
 please include the essentials of the link in your post, as is, this is a link only answer, although it might help, if the link becomes invalid, so will your answer. Please update accordingly and take some time to review How to Answer and take the tour. thanks! – glls Oct 27 '17 at 2:08
 - Hi _USER_, This is my first answer here, thank you for your tips – Heitor Araujo Nov 6 '17 at 2:12
Also you can try Script.apex(_URL_
Map context = new Map{ b1 => true, b2 => false };
Boolean result = (Boolean)ScriptEngine.getInstance().eval('b1 && b2', context);
Your Answer


Can Exadata take you Beyond "Infinity and Beyond" with Non-Numbers?
Let me clarify… in a previous post, I showed some of the arithmetic around some of Oracle's floating point literals and how that arithmetic didn't make much sense. But one of the other literals available helped me solve an issue with the optimizer, indexes, and Exadata: an anomaly with a smart phone app gave me an idea…
LEFT JOINs, NULLs, and Offloading on Exadata
I was investigating query performance, and the root cause appeared to be a join condition that also had a filter:
...
from table1
 left join table2
 on =
 and table2.cust_code IS NULL
Long story short, the join condition was rewritten without IS NULL like this:
 and nvl(table2.cust_code,-999) = -999
The problem is, there was no easy way to ensure that that column might not actually contain the value -999 short of adding a CHECK constraint, and it would have taken weeks to get a change like that into production.
Alternate Solution: A Number that's Not a Number
Instead of using a constant that might actually be valid data, why not use one of Oracle's built-in constants like BINARY_DOUBLE_NAN? The chances of the CUST_CODE column containing the value BINARY_DOUBLE_NAN are essentially zero because the UI for TABLE2 would not allow anything but numeric constants.
I tried out this method on a copy of DBA_TAB_COLS. The column DATA_PRECISION has a lot of NULL values; if I use NVL and the Oracle BINARY_DOUBLE_NAN constant to avoid the IS NULL construct, it works great:
select count(*)
from col_data
where nvl(data_precision,BINARY_DOUBLE_NAN) = BINARY_DOUBLE_NAN;
I get the same number of rows as if I had used the IS NULL construct.
What About Exadata Offloading?
The question I always ask is, "how does this work on Exadata?" The answer did not disappoint.
Of course, single-row functions such as NVL are in V$SQLFN_METADATA and marked with OFFLOADABLE=YES; constants such as BINARY_DOUBLE_NAN are treated as any other numeric value.
Using Oracle's built-in functionality including numeric constants representing very large numbers, very small numbers, and numbers that are actually not numbers can help you out of trouble with NULL values (which are also not numbers!). And Exadata will not get in your way using solutions like this either!
Leave a Reply
You are commenting using your account. Log Out / Change )
Google photo
Twitter picture
Facebook photo
Connecting to %s


text:
Crown of Thorns cactus
have had the plant for years always have trouble getting it to bloom now the plant has yellow spots all over all the leaves. It is almost 4 ft. tall. What is wrong. ( I have 8 more cr. of thorns but they all have smaller leaves, this one has large leaves0 what is the difference?
Certified GKH Gardening Expert
Newer cultivators have larger leaves then older varieties.
Crown of Thorns are susceptible to fungus issues. You can use a fungicide on the plants.
Bacterial leaf spot can also be found on these plants. The disease is characterized by circular gray to brown leaf
spots surrounded by distinct yellow halos. The infected leaves often turn
yellow and fall off the plants. Leafs should be removed from the plant and disposed of. Make sure the plants have adequate air circulation.
Avoid getting water on the leaves and stems.


If both parents names are on your birth certificate and they are not married, can you carry both their surnames putting your father's first and mother's surname last on your ID card?
If you are applying for your first National ID card and your parents were unmarried at the time of your birth you can have both their surnames placed on your card as your surname, provided that you can show proof that either;
(1) you have used the name throughout your school life by way of a letter from the school or examination certificate (s) or
(2) show other form of ID such as a Passport.
However if you already are in possession of a valid National ID card under either parents surname but you wish to now carry both surnames on your ID, a Protocol of Deed or Deed Poll is required.
Posted in


text:
Towards a Work-Related Turnover Risk Management in Manufacturing SMEs
Authors: Svenja Korder, Dominik Breuherr, Gunther Reinhart
Abstract: The shortage of skilled workers in Germany caused by demographic change steadily increases. In the manufacturing sector, this situation leads to difficulties filling vacant positions and thus to extended vacancy periods of jobs in companies. Therefore, the turnover of skilled workers becomes a problem, especially in small and medium-sized manufacturing enterprises, as individual positions are not filled redundantly. High costs due to temporary workers or the rejection of orders can be the consequences. Turnover research has been conducted for a long time, but there is a lack of a standardized method to capture the turnover risk of skilled workers. This paper presents an approach for the systematic assessment of turnover risk in manufacturing work. The method is based on an employee survey. The results are transferred into a risk matrix in order to derive the level of risk for work-related turnover of individual employees. To ensure a cost-, personneland time-efficient implementation in the operations of SMEs, the method will be transferred into a software application. In this way, the turnover risk can be made transparent. The user can select specific measures evaluated according to manufacturing-specific performance indicators. These measures should help SMEs prevent the turnover of critical specialists and avoid high costs caused by long vacancy periods of jobs.
Keywords: Risk assessment, Employee Turnover, Human-centric Manufacturing, Work system
Cite this paper: