OpenLLM-France/wikimedia huggingface dataset:
# XQuery/SMS tracker
## Motivation

BrightKite provides a service to micro-blog your location and message to a service to geocode the address, map it, find other tweeters nearby and forward to other micro-blogs.
However for UK users the service lacks the availability of an SMS service. The following scripts provide a basic SMS tracker service, allowing a user to text an address and a message to an SMS service and see that location on a generated map. This simple application does not provide the social aspects of BrightKite, being confined to creating a simple track.

## Implementation
### Dependencies
#### eXist-db Modules

* xmldb - to update the track
* datetime - for date formatting
* util - serialize to convert XML to CDATA

#### Other

* an SMS two-way service
* GoogleGeocoding service
* kml-based mapping such as GoogleMap or GoogleEarth

## The Track structure

Each track is represented as a single XML file, containing a unique name, a title, one or more mobile phone numbers and a list of events. Each event is time-stamped and contains the original address, its latitude and longitude when geo-coded and a message. A local namespace is used for the XML data and for associated functions. Full address geo-coding is not supported in the UK due to copyright restrictions on full addresses and postcodes.

## In-bound messages

Inbound messages have the structure:
SMS messages are sent to the UWE SMS two-way service described in here. The router uses the first word to route the message to the associate service, in this case track2sms.xq. This service is invoked viat HTTP, passing the prefix ('prefix), the originating mobile number (from) and the text of the message (text) following the prefix.
The script uses the originating mobile number to find the associated track. If there is one, the message is parsed into the address and message text. The address is passed to the Google geocoding service. If the address is recognised, a new event is created and appended to the rest of the events in the track and a confirmation returned to the originator (via the SMS two-way service).

## Generating the Map

The track is identified by name and a KML file of the events on the track is generated.

## Example Map

Google Map
Note that one address has been miscoded but the feedback allowed the address to be changed and resent.

## To do

* edit track to remove or correct bad geo-coding
* add events from a browser
# XQuery/Quantified Expressions
## Motivation

You have a list of items in a sequence and you want to test to see if any or all of the items match a condition. The result of the test on the sequence will be either true or false.

## Method

Quantified expressions have a format very similar to a FLWOR expression with the following two changes
* instead of the word for you will use either the words some or every
* instead of the where/order/return you will use the word satisfies
The quantified expression always takes a sequence as its input and returns a boolean true/false as its output.
Here is an example of a quantified expression which checks to see if there are any books that contain the word "cat".
Assume you have a collection of books, each book has a single XML file with a title attribute such as this:

## Examples of Quantified Expressions

The XQuery expression to limit books with the string "cat" somewhere in the title would be:
Test for at least one "cat book" in a collection of books
This expression will return true as long as one book contains the word "cat" in the title.
Test for that all books are cat books
This expression will return true only if ALL books contain the string "cat" in the title.
Note that the quantified expression can not be used to indicate which book title contains the word "cat", only that the word "cat" occurs in at least one title in your collection.
Quantified expressions can often be rewritten by a single XPath expression with a predicate. In the above case the expression would be:
The variable $has-a-cat-book will be set to true if any book contains the word "cat".
Some XQuery parsers can optimize quantified expressions better and some people feel that quantified expressions are more readable then a single XPath expression.
# XQuery/Registered Modules
## Motivation

You want to check to see if an module is loaded in your runtime systems.

## Method

Some modules that you may need are not loaded into the runtime engine when the server starts. If this is the case you may have to dynamically load a module.

## Listing current modules in the runtime

Run
# XQuery/Reindex a Collection
## Motivation

You would like a command line function that will reindex a collection.

## Method

We will use an Apache Ant task that will call an XQuery script that will run the reindex XQuery function.

## Running your Ant Target

To run the command just use the ant command

## Discussion

This should work both under Windows and UNIX systems.
# Traditional Chinese Medicine/Resolving Dampness With Aromatic Herbs

* Huo Xiang Zheng Qi San
* Chang Pu Yu Jin Tang
back to :
# Traditional Chinese Medicine/Rescuing The Collapse By Invigorating Qi

| No. | Name of Formula in Pinyin |
| 1 | Bu Zhong Yi Qi Tang |
| 2 | Ju Yuan Jian |
back to :
# Traditional Chinese Medicine/San Ao Tang

The formula San Ao Tang (Three Crude Drugs Decoction), designed to treat cough with dyspnea due to exogenous wind-cold, consists of the following:
| No. | Pinyin | Simplified Chinese | Grams |
| 1 | Ma Huang | 麻黄(草麻黄) | 6 |
| 2 | Xing Ren | 杏仁 | 9 |
| 3 | Zhi Gan Cao | 炙甘草 | 6 |
back to :
* Relieving Cough By Dispersing The Lung
* Formula Design
* Glossaries
* Prescriptions
# Traditional Chinese Medicine/Ren Shen Yang Rong Tang

The formula Ren Shen Yang Rong Tang, designed to replenish qi and enrich blood, to nourish the heart and tranquilize the mind, consists of the following:
| No. | Pinyin | Simplified Chinese | Grams |
| 1 | Bai Shao Yao | 白芍药 | 9 |
| 2 | Dang Gui | 当归 | 9 |
| 3 | Ju Pi | 橘皮(陈皮) | 6 |
| 4 | Zhi Huang Qi | 炙黄芪 | 9 |
| 5 | Rou Gui | 肉桂 | 3 |
| 6 | Ren Shen | 人参 | 9 |
| 7 | Bai Zhu | 白术 | 9 |
| 8 | Zhi Gan Cao | 炙甘草 | 9 |
| 9 | Shu Di Huang | 熟地黄 | 9 |
| 10 | Wu Wei Zi | 五味子(北五味子) | 6 |
| 11 | Fu Ling | 茯苓 | 6 |
| 12 | Yuan Zhi | 远志 | 6 |
| 13 | Sheng Jiang | 生姜 | 3 |
| 14 | Da Zao | 大枣 | 3 |
back to :
* Both Invigorating Qi And Tonifying Blood
* Formula Design
* Prescriptions
# Traditional Chinese Medicine/Restoring Yang For Resuscitation

* Si Ni Tang
* Shen Fu Tang
back to:
# Traditional Chinese Medicine/Resolving Phlegm By Clearing Away Heat

* Qian Jin Wei Jing Tang
* Xiao Xian Xiong Tang
* Qing Qi Hua Tan Wan
* Huang Lian Wen Dan Tang
* Zhu Ru Wen Dan Tang
* Qing Fei Tang
* Wu Hu Er Chen Tang
* Xin Yi Qing Fei Tang
back to :
# Traditional Chinese Medicine/Restoring Physiological Coordination Between The Heart And The Kidney

* An Shen Ding Zhi Wan
* Jiao Tai Wan
back to :
# Traditional Chinese Medicine/Run Chang Wan

The formula Run Chang Wan, designed to moisten the intestines and relax the bowels, nourish yin and tonify the blood, consists of the following:
| No. | Pinyin | Simplified Chinese | Grams |
| 1 | Dang Gui | 当归 | 9 |
| 2 | Shu Di Huang | 熟地黄 | 30 |
| 3 | Tao Ren | 桃仁 | 9 |
| 4 | Ma Zi Ren | 麻子仁 | 15 |
| 5 | Zhi Qiao | 枳壳 | 9 |
back to :
* Relieving Constipation By Loosening The Bowels
* Formula Design
* Prescriptions
# Traditional Chinese Medicine/San Jiao Meridian

Lung Meridian | Large Intestine Meridian | Stomach Meridian | Spleen Meridian | Heart Meridian | Small Intestine Meridian | Urinary Bladder Meridian | Kidney Meridian | Pericardium Meridian | San Jiao Meridian | Gallbladder Meridian | Liver Meridian | Ren Mai | Du Mai | Head And Neck Acupuncture Points | Chest And Abdomen Acupuncture Points | Back Acupuncture Points | Upper Extremities Acupuncture Points | Lower Extremities Acupuncture Points
The acupuncture points of the Triple Warmer or San Jiao Meridian (手少阳三焦经) include:
| Chinese Name | Pinyin | Acupoint |
| 关冲 | guān chōng | SJ 1 |
| 液门 | yè mén | SJ 2 |
| 中渚 | zhōng zhǔ | SJ 3 |
| 阳池 | yang chí | SJ 4 |
| 外关 | wài guān | SJ 5 |
| 支沟 | zhī gōu | SJ 6 |
| 会宗 | huì zōng | SJ 7 |
| 三阳络 | sān yang luò | SJ 8 |
| 四渎 | sì dú | SJ 9 |
| 天井 | tiān jǐng | SJ 10 |
| 清冷渊 | qīng lěng yuān | SJ 11 |
| 消泺 | xiāo luò | SJ 12 |
| 臑会 | nào huì | SJ 13 |
| 肩髎 | jiān liáo | SJ 14 |
| 天髎 | tiān liáo | SJ 15 |
| 天牖 | tiān yǒu | SJ 16 |
| 翳风 | yì fēng | SJ 17 |
| 瘈脉 | chì mài | SJ 18 |
| 颅息 | lú xī | SJ 19 |
| 角孙 | jiǎo sūn | SJ 20 |
| 耳门 | ěr mén | SJ 21 |
| 耳和髎 | ěr hé liáo | SJ 22 |
| 丝竹空 | sī zhú kōng | SJ 23 |
back to: Acupuncture
# Traditional Chinese Medicine/San Sheng San

San Sheng San consists of the following:
* Fang Feng (Radix Saposhnikoviae) : 5gm
* Gua Di (Pedicellus Cucumeris), chao (dry-fried) till yellow : 5gm
* Li Lu (Radix et Rhizoma Veratri) : 2gm
In TCM, this prescription is used to dispel wind-phlegm. It has been used for patients with zhong feng (wind stroke) and bi zheng (closed disorder), showing symptoms such as loss of voice, facial paralysis with deviation of the eyes and mouth, unconsciousness, locked jaws, and a superficial, slippery and excess pulse. This formula has also been used for treating poisoning when the offending agent is still in the stomach.
# Unicode/Character reference/F0000-10FFFF

Legend: :
| Unicode 1.0 | Unicode 4.0 |
| Unicode 1.1 | Unicode 4.1 |
| Unicode 2.0 | Unicode 5.0 |
| Unicode 2.1 | Unicode 5.1 |
| Unicode 3.0 | Unicode 5.2 |
| Unicode 3.1 | Unicode 6.0 |
| Unicode 3.2 | Private Use |
| Reserved | Noncharacter |
| Notes 1.^ As of Unicode version 6.0 ||
Unicode Characters :
| 0000–0FFF | 8000–8FFF | 10000–10FFF | 20000–20FFF | 28000–28FFF |
| 1000–1FFF | 9000–9FFF | 11000–11FFF | 21000–21FFF | 29000–29FFF |
| 2000–2FFF | A000–AFFF | 12000–12FFF | 22000–22FFF | 2A000–2AFFF |
| 3000–3FFF | B000–BFFF | 13000–13FFF | 23000–23FFF | 2B000–2BFFF |
| 4000–4FFF | C000–CFFF | 16000–16FFF | 24000–24FFF | |
| 5000–5FFF | D000–DFFF | 1B000–1BFFF | 25000–25FFF | |
| 6000–6FFF | E000–EFFF | 1D000–1DFFF | 26000–26FFF | |
| 7000–7FFF | F000–FFFF | 1F000–1FFFF | 27000–27FFF | 2F000–2FFFF |
| Notes 2.^ As of Unicode version 6.0 ||||||
<noinclude>
# Adventist Youth Honors Answer Book/Camping/Food storage

The most important thing you must remember about storing food on a campout is that it should never be stored in a tent where people will sleep. Animals will smell your food, and if it's in your tent, they will find a way in. Instead, store the food outside the tent.
If you have a vehicle available at your campsite, you may store the food inside, but be sure to seal it tightly. A determined bear can get inside a locked vehicle, and if he decides that's what he wants to do, the car will sustain heavy damage. On the other end of the animal spectrum, are mice, which can also enter a locked car - even the trunk. It is therefore important to seal the food tightly so that the aroma does not draw unwanted attention from unwanted visitors.
If you do not have a vehicle or a trailer in which to store your food, you may place it in a bag and suspend it at least 15 feet (4.5 meters) above the ground by tying the bag to a rope and hanging it over a tree branch. Black bears can and do climb trees, so make sure the bag is well out of their reach - away from the trunk, and at least 4 feet (1.2 m) below the branch from which it is suspended.
# Adventist Youth Honors Answer Book/Camping/Group gear

These are things that will be needed by the group. Usually, a Pathfinder club will purchase these items.
* First aid kits
* Medical release forms (signed by guardians)
* Sleeping tents - enough to separate the boys and girls.
* Kitchen tent/canopy
* Dining tent/canopy
* Camp stoves
** Fuel for the stoves
* Dishes
** Plates
** Cups
** Bowls
** Eating Utensils
** Mesh hosiery bags, clothes pins, and clothes line - the dishes go in the mesh bags after washing them, and then the bags clip to the clothesline. This allows them to dry. Each plate, cup, bowl, knife, fork, and spoon should be numbered with a permanent marker, and each camper (including staff) should be assigned a number. This will make every camper accountable for their own dishes.
* Cooking Supplies
** Pots and pans
** Spatula
** Ladle
** Serving/stirring spoons
** Salad bowls
** Can opener
** Knives
** Cutting board
* Fire Equipment
** Matches or lighter
** Firewood, kindling, tinder
** Fire Extinguisher
** Axe/saw/hatchet
** Shovel
* Storage tubs - These should be numbered, and an alphabetized list of the contents of each should be attached. If the tubs are clear, the lists can be taped to the inside and read from the outside. A master alphabetized list denoting in which tub an item belongs should also be kept in the kitchen. This makes finding things a lot easier. It does require discipline though. Storage tubs can double as dish sinks.
* Broom/dustpan
* Tarps
* Large water jugs
* Coolers and ice
* Food
* Tool kit
* Duct tape
# Adventist Youth Honors Answer Book/Camping/Latrine

There are two components to a camping latrine: the "commode", and an enclosure.

## Enclosure

    The purpose of the enclosure is to provide privacy. It can be as simple as hanging tarps from rope stretched between trees and well-secured. You can also make a teepee from tarps and poles, or build a more elaborate structure from poles using lashings, and covering that with tarps. Another possibility is to use an old tent with its floor removed.

## Commode

    There are many ways to build the commode portion of a latrine. One common approach is to mount a toilet seat on some sort of structure, such as a small log cabin-like structure built using 3-inch (8 cm) diameter logs. It is also possible to build a structure from lumber fastened together with hinges so that it can be collapsed at will (but remain uncollapsed otherwise!) for transport. Another way to build the commode is by lashing poles together to make a couple of horizontal rails - one for sitting on, and another as a back rest. However the commode is built, it is almost always situated over a hole dug in the ground to hold the waste. The depth of this hole depends on how much usage the latrine is expected to accommodate. Leave the dirt pile and a shovel inside the enclosure so that the waste may be gradually buried as it is created. This will hold down the smell. Be sure to completely bury the hole when breaking camp.
# Adventist Youth Honors Answer Book/Camping/Frying

Foods that are prepared by frying include
* Pancakes
* Scrambled or fried eggs
* French toast
* Vegetarian sausages
* Veggie burgers
* Grilled cheese sandwiches
# Adventist Youth Honors Answer Book/Camping/Gathering firewood

If camping at a commercial campground, bring your own wood or buy some at the camp store. Do not gather firewood from the surrounding forest! Most campgrounds have rules against this, and it is not only so they can sell you expensive wood. In a heavily camped area, the forest simply cannot sustain that level of use. Rule breakers will already have depleted enough of the forest - don't add to their sins!
If there was already a fire ring present, if it is allowed, and you are in the wilderness, gather firewood well away from the campsite. Do not cut down any trees, live or dead. Dead trees are an important habitat for many forest creatures. Instead, look for fallen limbs that are not lying in full contact with the ground and use those. Wood that is lying fully on the ground will likely be too wet to use as firewood.
# Adventist Youth Honors Answer Book/Camping/Keeping food cool

One way to keep food cool without ice while on a camping trip is to place the food in a mesh bag and secure it in a stream or brook. Another way is to put the food in a bag, cover it with several layers of burlap, wet the burlap, and suspend it from a tree branch. As the water evaporates from the burlap, it will cool the food. You have to re-wet the bag occasionally.
# Adventist Youth Honors Answer Book/Camping/Fire/Wet weather

The hardest problem to overcome when trying to build a fire in wet weather is finding dry fuel. Even in the wettest weather, dry fuel can be found by splitting open a log and taking the wood from the center of it. You can get both your kindling and your fuel from this source. Another place to find dry fuel is on the underside of dead branches - especially those still on a tree.
Before you begin gathering your fuel, you will need to set up a dry place to store it as you collect it. A tarp can be used for this if you lay it out on the ground, place the wood on it, and fold the tarp over it. This will keep the wood off the wet ground and keep rain off it as well. If it is windy, you should place a few rocks on top to hold down the tarp.
Once you have your fuel, you can begin gathering tinder. If you have some with you, you're good to go, but remember, that because your kindling may be slightly wet, you will need more than the usual amount of tinder. If you need to collect it, there are still several options for finding some. Milkweed seed pods are fairly waterproof, and the fibers inside are pretty easy to ignite. Pocket lint is another possibility, but you may have difficulty getting enough of it to light your kindling. You can also make wood shavings from the same wood you're using as kindling. If available, birch bark can be lit even when wet.
Once you have your fuel, kindling, and tinder, you are ready to lay the fire. This is done as with any other fire. You may wish to place a tea candle in the tinder pile as well, as this will help keep things going long enough for the kindling to catch.
Once your fire is lit and the fuel is burning, you can lay wet logs next to the fire to dry them out before trying to use them. The heat from a good hot fire can drive the moisture out of even the wettest logs. You may need to turn them over periodically to dry all sides.
# Adventist Youth Honors Answer Book/Camping/Knife safety

* Keep your blades sharp. A dull knife is difficult to push through wood, requiring additional force. When the wood finally gives, the blade keeps going.
* Always push the blade away from you, and constantly consider where the blade will go.
* Keep your fingers clear of the blade at all times.
* When splitting wood with a knife, do not hammer on the back of the blade. This weakens the attachment to the handle and deforms the blade.
* Close a pocket knife when it's not in use or when you are carrying it.
* Keep all blades away from heat. Heat will remove the temper, softening the blade. A soft blade will not hold an edge, making it nearly impossible to keep it sharp.
# Adventist Youth Honors Answer Book/Camping/Lost

The best advice about being lost, is - DON'T! And the best way to keep from getting lost is to stay on the path.
If you suddenly realize that you do not know where you are, then here are some things to do:
* Don't panic. You can't think clearly when you panic, so take a deep breath and relax.
* Pray. You may not know where you are, but God does, so talk to Him.
* Stay where you are. It is a lot easier for someone to find you if you stay put.
* Listen for the sounds of other campers, traffic, waterfalls, rivers, airplanes or anything that might help you find your way back.
* Look around - maybe you'll recognize something that can guide you back to civilization.
* If you have a whistle, blow on it. If you don't have a whistle, yell loudly. Someone in your party might hear you. Repeat this every 15 minutes or so and be sure to listen after each sounding. (three of anything is universally recognized as a call for help, so three whistle blasts, or three shouts)
* If you have a map and compass, try to locate your position by looking for hills valleys or streams.
* You can try to relocate the trail, but you do not want to get any further away from your last known location. Mark your location with something - a backpack, hat, or a large rock - but make sure it's something unmistakable. Then venture 10 meters out, and circle your marker, all the while looking about to see if you recognize the trail or a landmark, and always keeping your marker in view. If you do not see anything you recognize, widen the circle by another 10 meters and repeat. Continue circling your marker at ever wider intervals, but stop when continuing would cause you to lose sight of the marker.
* Climb a tree or hillside. A higher vantage point might reveal a landmark you missed from a lower elevation.
* If it's an hour or less until sunset, prepare to spend a comfortable evening. Make a shelter, and light a fire. Things will look better in the morning, and your fire may attract a rescuer.
# Adventist Youth Honors Answer Book/Camping/No compass
## North Star

    In the northern hemisphere on a clear night you can determine which direction is north by finding Polaris (the North Star). You can find Polaris by following the two "pointer stars" in the Big Dipper. Unfortunately, this method is only effective on clear nights.

## Using a Watch

    You can use an analog watch to figure out which way is south during the day. To do this, it is easiest if you remove the watch from your wrist first. Hold the watch so that the face is pointing upwards. Then rotate it until the hour hand points to the sun. You can use a blade of grass to cast a shadow on the watch face to make this easier - just line the hour hand up with the shadow. Once the hour hand is pointing towards the sun, you can find south by bisecting the angle between the hour hand and the 12 o'clock position. In other words, if it is 4:00pm, south will lie in the 2:00 o'clock direction (because 2:00 is halfway between 4:00 and 12:00). At 7:00 am, south will lie in the 9:30 direction (because 9:30 is halfway between 7:00 and 12:00).

## Using a shadow

    Find a straight stick at least 12 inches long (30 cm) and drive it into the ground such that it points directly at the sun. You can tell the stick is pointing directly at the sun because its shadow will disappear. Then wait until the earth rotates enough so that you can see the shadow. The shadow will point directly east.
# 99 Elm Problems/Problem 94

94.a) Generate K-regular simple graphs with N nodes
94. b) In a K-regular graph all nodes have a degree of K; i.e. the number of edges incident in each node is K. How many (non-isomorphic!) 3-regular graphs with 6 nodes are there?
# # # THIS IS A STUB # # #
Result:
Solutions
# 99 Elm Problems/Problem 95

Output an integer in full English words, for example write 175 as “one hundred seventy-five”.
# # # THIS IS A STUB # # #
Result:
Solutions
# 99 Elm Problems/Problem 88

Output a depth-first order graph traversal of a graph given the starting node. The output should be a list of nodes that are reachable from the starting point and sorted in depth-first order.
# # # THIS IS A STUB # # #
Result:
Solutions
# 99 Elm Problems/Problem 9

Pack consecutive duplicates of list elements into sublists. If a list contains repeated elements they should be placed in separate sublists. Elements that are not repeated should be placed in a one element sublist.
Result:
Solutions
# 99 Elm Problems/Problem 90

Place eight queens on a chessboard so that no two queens are attacking each other; i.e., no two queens are in the same row, the same column, or on the same diagonal.
Hint: Represent the positions of the queens as a list of numbers 1..N. Example: [4,2,7,3,6,8,5,1] means that the queen in the first column is in row 4, the queen in the second column is in row 2, etc. Use the generate-and-test paradigm.
# # # THIS IS A STUB # # #
Result:
Solutions
# 99 Elm Problems/Problem 92

Graceful Labeling
# # # THIS IS A STUB # # #
Result:
Solutions
# 99 Elm Problems/Problem 93

Given a list of integer numbers, find a correct way of inserting arithmetic signs (operators) such that the result is a correct equation, if possible. Example: [2,3,5,7,11] we can form the equations 2-3+5+7 = 11 or 2 = (3*5+7)/11 (and ten others).
Division should be interpreted as operating on rationals, and division by zero should be avoided.
# # # THIS IS A STUB # # #
Result:
Solutions
# 99 Elm Problems/Problem 89

Determine whether a given graph is bipartite.
# # # THIS IS A STUB # # #
Result:
Solutions
# 99 Elm Problems/Problem 9/Solutions

Solution 1: Recursive version