OpenLLM-France/wikimedia huggingface dataset:
# XForms/Graph Viewer
## Motivation

Sometimes you need to have a form edit data structures that are recursive. In other words: a structure that references itself.
This example has nodes that have links. These links in turn point back to nodes. This is an example of a self-referential data structure. This is common when manipulating graphs. Workflow systems frequently use these structures.

## Link to Working Example

Graph Editor

## XML Schema

Here is a sample XML Schema with a recursive data type (a data type that includes an instance of itself):
graph.xsd

## XForms Example

This example allows you to view a graph of geographic regions.
Make sure to copy and past from the edit view of cookbook since the greater than symbols get converted.

## Discussion

Most of this is straight-forward XForms code.
But there is one very tricky line. This is when you click on a node listed in the list of links and you want to make the node you just selected the current node.
The trick is is to use the position to match the index value. When the position matches the index you can set the current-node-id equal to this node.
Thanks to Fraser for the tip!
# XForms/Form Designers

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xf:range bind="input-one-bind" start="1" end="5" step="1" incremental="true"> <xf:label>Input: </xf:label> </xf:range>
<xf:range bind="input-two-bind" start="1" end="5" step="1" incremental="true"> <xf:label>Input: </xf:label> </xf:range>
<xf:output bind="input-one-bind"/> * <xf:output bind="input-two-bind"/> = <xf:output bind="output-bind"/>
</html>
# XForms/Formatting Numbers
## Motivation

You want the view portion of your form to add formatting information to numbers. For example, you want your US currency to be stored in the model as 12345.6789 but the view to display at $12,345.68. Note that the dollar sign is used as a prefix, commas are added and the decimal is rounded to two digits.
Ideally, we would like to use a simple CSS function to indicate that all currency should be formatted using the standard number picture formats such as "$#,###.##".

## Method

If all browsers supported the XPath 2.0 format-number function, this would be trivial. Till then the developer will need to resort to workaround such as using JavaScript and the XML Binding language (XBL).

## References

Mozilla page on XForms custom controls
The following discussions on the XForms mailing lists might be helpful.
Dan McCreary's Post to the Mozilla XForms discussion group
John Boyer's Comments on Number Formatting in XForms
acknowledgement of the currency format needs in the 2001 working draft of XForms
# XForms/Formatting a date
## Motivation

XML stores dates in the format YYYY-MM-DD such as 2007-08-30. Unfortunately this is usually not the way users want to view their dates.
This example XForms program uses CSS to hide an input date and an XPath expression to get the date to display in the MM/DD/YYYY format typically used in the US.

## Link to XForm Example

Link to Date Format External Example

## Discussion

The CSS style sheet hides the input field. The input has the class="hidden" attribute.
The output is formatted using the following XPath expression:
Concat is the XPath concatenation operator. The input is in the format: "YYYY-MM-DD". We just need to reach in and get the correct characters out.
* The first substring goes to the 6th character and pulls out the two month (MM) characters.
* The second substring starts at the 9th character and gets two day (DD) characters.
* The last substring returns characters 1-4 which are the four year characters (YYYY).
You do not have to display all four letters in the year. By changing the last substring from:
to be
You will only get the last two digits of the year.
# XForms/Google Maps
## Motivation

You want to create an XForms application that displays Google Maps.
# XForms/FireFox Extension
## Motivation

Your users all can run the FireFox browser on MS-Windows and you want very fast XForms loading.

## The Mozilla Firefox Plugin

This plugin was developed over several years with the support of IBM and Novell. It is now obsolete and is no longer supported.
The official version is available from addons.mozilla.org.
Nightly and other (testing) builds are available at Philipp Wagner's Web Site

## References

* Mozilla FireFox XForms page Note that this web page was last updated in April 14th, 2014.
# XForms/Folding Menus
## Motivation

You want to display a complex list of choices in a tree structure where each branch could be opened and closed.

## Discussion

There are some interesteing XPath expressions in this example. For example the following counts the number of ancestor nodes of the current node:
The following gets all of the decendant groups within the instance data:
The following returns a "+" if the nodelist contains the value in the id attribute and a "-" if it does not.

## Credits

Thanks to Fraser for posting this on the Mozilla XForms developer newsgroup in Oct. of 2007
# Xbox 360/Undocumented Commands
### Reset video

To reset the video settings, boot from the Guide Button on a controller (wired or wireless) and then hold Y + RT.

### Clear download cache

To clear the download cache (updates):
* Go to the system blade and choose memory.
* Highlight your hard drive and press Y.
* Then press X, X, LB, RB, X, X. Do not switch the Xbox off!
* A dialog will appear asking if you wish to perform maintenance. Choose yes.
# Xbox 360/Xbox Motherboard Replacement
## Original Xbox Motherboard Replacement

Xboxes have special protection schemes to prevent their users from using them to run software other than Xbox games. Many people hack their Xboxes to overcome this protection and make them run other software, e.g., special editions of Linux. but hacking Xboxes may be illegal in some areas.
However there is another, legal, way to run Linux on an Xbox. Instead of hacking its original, non-standard motherboard, you just replace it with a standard PC motherboard. It then becomes a normal PC, and you can install any operating system designed for normal PCs on it, including any PC version of Linux. The modified Xbox cannot run Xbox games.

### Motherboard choice

The PC motherboard you install into the Xbox should be small in size. There's one such project called i64XBOX (unfortunately, it runs Windows 98) that involves use of a Mini-ITX motherboard , but any other motherboard that is small enough to fit into the Xbox case will also do. Due to size limitations, you probably won't be able to install anything into the motherboard slots, so the motherboard should have integrated video card (and sound card if you want sound, and network card if you want Ethernet, etc).

### Warranty, electrical safety and legal issues

This mod will definitely void your Xbox warranty, so it is better to modify a machine with warranty expired. You can cheaply buy a second-hand Xbox with defunct motherboard to perform this mod on it. Dumpster diving may also help if it is legal in your area.
When buying a second-hand Xbox for this mod, make sure that its defunct component is motherboard, not power supply, hard disk drive or anything else. Do not attempt to open the Xbox power supply, unless you have experience in repairing switchmode power supplies, as it has a lot of mains-connected components as well as capacitors which remain being charged even for some time after unplugging.
Please do not attempt to sell your Xbox modified this way, as while performing this mod is probably legal, selling it may still be illegal. See Retropod to get idea of what may happen.

## Overcoming the RAM limitations

With traditional way of installing Linux on Xbox, you can face a problem that it has only 64 MB of RAM. You can upgrade it to 128 MB, but this is also too low for most modern Linux distros. With Xbox motherboard replacement, you eliminate this problem, and can install as much RAM as your motherboard supports.

## External links

* i64XBOX - an example of successful mod.
* Xbox Dream - xbox 360 mod news.
* Xbox Modding Downloads & Support - Has downloads for many of the popular unofficial Dashboards.
# Xenosaga/About
## Wikibook history

Xenosaga Wikibook was started on December 18, 2005 by User:Deckiller~enwikibooks, primarily because of the limitations that Wikipedia had (I.E. too much fancruft and detail was shunned, and in-game info could not be included), but also because of the failed success of the Wikicities Xenosaga site, which could not get off the ground (Deckiller may go back to that later...).
On 7 August 2006 this Wikibook was nominated for deletion.
On July 11th, 2021 this Wikibook was restored.
# Xbox 360/Xbox 360 Models

* Xbox 360 Arcade
* Xbox 360 Pro
* Xbox 360 Elite
* Xbox 360 S
* Xbox 360 E

## Intro

The Xbox 360 came in a few major revisions, with a number of significant subversions.

## Original Xbox 360

Some models of the original Xbox 360 didn't have HDMI support, and could only output over console specific AV cables.
This was the only series of Xbox 360 console to feature memory card slots.
Models from this series, especially early models, are highly prone to eventual failure with use over time, resulting in the infamous "Red Ring of Death".

## Xbox 360 S

Some sources say that the S in the Xbox 360 S stands for Slim.

## Xbox 360 E

The Xbox 360 E was announced in 2013, and followed the same design style of the then new Xbox One series of game consoles.

## References

* 1 2 "How to Choose the Best Xbox 360 Console For You". Lifewire. Retrieved 13 July 2021.
* ↑ Bakalar, Jeff. "Microsoft Xbox 360 Slim review: Microsoft Xbox 360 Slim" (in en). CNET. https://www.cnet.com/reviews/microsoft-xbox-360-s-review/.
# Xbox 360/Xbox 360 Accessories
## Controllers
### Xbox 360 Controller

Official Xbox 360 Controllers came in a variety of styles. Some official controllers were wired, and others were wireless. Wireless controllers used a removable battery pack, typically one which used AA batteries.
A controller was required to use most Xbox 360 Functions.

### Xbox 360 Chatpad

A keyboard attachment was made for the Xbox 360 controllers.

## Multimedia
### HD DVD Player

* HD DVD Player front.
* HD DVD Player rear.
Early on an optional external HD DVD drive was offered. This is distinct from the standard DVD drive built into every console.
After Blu-Ray won the format war, the drive quickly fell into obscurity.

### Media Remote

A remote used for more optimized use of multimedia functions of the console.
# Xenosaga
## Introduction

Welcome to the Xenosaga Wikibooks, a collective effort to create the following:
* Walkthrough to every Xenosaga game, including:
** Xenosaga Episode I
** Xenosaga Episode II
** Xenosaga Episode III
** Pied Piper
** Xenosaga I & II
* Plot guide to the Xenosaga series and universe
* Trivia and other information

## Table of Contents
### Games

* Episode I
* Episode II
* Episode III
* I & II
* Pied Piper

### XenoCulture

This section is storyline-only information on the Xenosaga series. No measurements or stats will go here, nor will guides.
* Characters
* Locations
* Organizations
* Other
* Plot Summary
* Starships and Vehicles

## Meta

* About
# Xenosaga/Episode I/Woglinde

Turn your PS2 on, insert the Xenosaga: Episode I disk, and get ready for the adventure. In the opening menu, only "New Game" and "Continue" options appear; the game may be configured via the in-game menu. Upon selecting "New Game", you are presented with a series of introduction cutscenes. You may pause them by selecting "start". Also, from this menu you may skip the current cutscene by pressing the triangle button on your controller. Eventually, you will obtain control of Shion Uzuki.

## The KOS-MOS Simulator (Part I)

You will find yourself in a large white room with KOS-MOS right beside you. Walk up to her and press "circle" to begin the tutorial segment.
# UNO

UNO is probably the most-well known member of the shedding-type family of card games. The game was developed in 1971 by American barber Merle Robbins as a derivative of Crazy Eights, and he sold the rights to International Games Inc. in 1972. That company would later be acquired by Mattel in 1992. Today the game has sold around 151 million copies worldwide. This book will detail the rulesets for UNO and some of its most notable variations.
This is a collaborative book to which anyone can contribute.
* Official Rules
* House Rules
Notable Variations and Spin-Offs:
* UNO Flip!
* UNO All Wild
* UNO Flex
* UNO 50th Anniversary
* UNO Attack
* DOS
# UNO/House Rules

There are many house rules out there for UNO. This article will go over three of the most common ones.

## Stacking

When this house rule is being played Draw Two and Wild Draw Four cards are allowed to "stack" on each other, adding their penalties together.
When this house rule is being used and a player plays a Draw Two card, the next player in turn order may, if they have one, play a Draw Two of their own on top of the already-played Draw Two, with the result that the two cards' penalties will "stack" and add together. Then the stacked penalty is passed to the next player, who must play a Draw Two of their own or draw the total penalty number of cards.
Wild Draw Fours may be stacked in a similar manner, and Wild Draw Fours may be stacked on top of Draw Twos, but not vice versa.

## 7-0

This house rule effectively turns the 7 and 0 cards into action cards.
With this house rule, if a player plays a card with a 7 on it that player must choose another player and the two players exchange their hands. If via this exchange a player receives a hand of only one card they must still call "UNO" or risk drawing two penalty cards.
If a player plays a card with a 0 on it every player must pass their hand one player in the current direction of play.

## Jump-In

With this house rule active, if a player encounters the situation where the card on top of the discard pile is exactly the same as a card in their hand, then the player may "jump-in" and play said matching card immediately without waiting for their turn. Gameplay then passes from them as normal.
# USMLE Step 1 Review

This book is intended as a study guide for the United States Medical Licensing Examination (USMLE) Step 1. The exam is the first step towards licensing for medical doctors in the United States. It is heavily weighted towards the basic sciences, including anatomy, physiology, biochemistry, and pathology. These topics are covered for each of the major organ systems, including the cardiovascular, respiratory, renal, gastrointestinal, and musculoskeletal systems. This book will cover each of these topics in the detail required for the USMLE Step 1.

## Table of contents
### Overview

* Introduction

### Basic science

* Clinical decision-making
* Embryology
* Genetics and Biochemistry
* Microbiology
* Pharmacology
* Pathology
* Anatomy
* Free association

### Organ systems

* Cardiovascular
* Endocrine
* Gastrointestinal
* Musculoskeletal
* Neurology
* Psychiatry
* Renal
* Reproductive
* Respiratory
# UNIX Computing Security/Useful tools

Suggested topics: COPS, TIGER, sudo, md5, nfsbug, tripwire, OpenSSH, Linux Virtualization, SNORT, IDS/IPS, IPTables.
There are a number of commercial and free software tools available that are designed to help the System Administrator strengthen the security of their system. Depending on the security requirements, a number of these utilities can be employed on a regular basis to strength-check their system security, look for indications of an attack or a compromised system, and implement more secure procedures.

## COPS

This venerable package consists of a series of scripts and binaries that can be used to check some basic security configurations on a UNIX system. The last update to this package was version 1.04, released in 1991. hence this tool is starting to show its age, and may require some fine tuning to operate on a modern version of UNIX. The output will vary according to the UNIX vendor and OS version. (There is also a perl version included in the package, but was based on a much older version of perl and is known to have some bugs.)
The following groups of checks are performed by the COPS utility:
* Check selected system directories for world-write permissions.
* Check specific system files for world-write permissions.
* Check all files on the system for setuid status and note changes.
* Check for insecure entries in the /etc/passwd file.
* Check the format of the /etc/group file.
* Check the root account PATH, umask, and for a root entry in the /etc/ftpuser.
* Check for world-writeable files in /etc/rc*.
* Check for world-writeable files in /usr/lib/crontab.
* Check specific startup and configuration files in the user home directories.
* Use the U-Kuang rules-based expert system to check for potential security exploits.

## Checksum utilities

There are UNIX utilities such as cksum and md5 that can be used to read the contents of a file and produce a one-way hashed values, or checksums, as an output. The value of the resulting string will change whenever the contents of a file is changed, so this utility can be used to check whether a downloaded file has been tampered with inappropriately. The string can also be used to check whether a file was corrupted during the download process.
For example,
Whenever a System Administrator downloads a program or patch that will be executed on a UNIX system, it is important that the checksum of the file be compared with the value at a secure source. This will help to protect the system from illicit tampering. Many vendors will provide checksum values for the downloadable files that they make available. When possible, a stronger utility such as md5 should be used instead of cksum, as this will make it vastly more difficult for an attacker to produce a tampered file that has the same checksum.
Checksums can also be used to validate the binary commands on a system. Some integrity-checking utilities such as tripwire use multiple checksum programs to search for file modifications.
# XForms/Storing Tabs in the Model
## Motivation

You want to dynamically modify your tabs while the form is executing.

## Method

Rather than statically loading all your tabs in the form body it is also possible to store your tabs in the XForms model and then display each of them by using a repeat.

## Acknowledgments

This example was posted by Kurt Cagle on XML Today.
# XForms/Supply and Demand
## Motivation

You want to create a simple illustration of a concept using a dynamic graph. You want to use a range control to change in input and see the impact of that change on an output.

## Sample Program

This is not working yet with the range control. I wrote it with just SVG and JavaScript and I am in the process of porting it to XForms. I also need to use CSS to clean up the markup.
# XForms/Table Column Total
## Motivation

Frequently a form must display the total of a column. This can be accomplished using the bind function in the model.

## Discussion

This example uses div blocks for the table header and footer. The total will be updated each time the user tabs out of a field. New items are always added to the end but you can delete an existing item just by selecting it and pressing the "Delete item" button.
# XForms/Textarea
## Motivation

The user may enter more text than used in a typical single line input field and/or the programmer wants to use a large block of multi-line text to capture user input.

## Method

When you have text input that spans multiple lines you can use the <textarea> control. The format of the textarea control is the following:

## Discussion

One of the challenges is to be able to format the size of the textarea correctly. This is usually done in a style sheet.

## Aligning the labels

Some forms place textareas within tables. These tables put the labels on the left cell and the textarea input box on the right. The following CSS will then align the labels at the top of the row.
# XForms/Synonym Set Editor
## Motivation

You want to associate a synonym set with a single business term. A synonym set is a group of terms that have similar meaning or similar semantics. They are grouped together in a structure called a synonyms set. A term can be associated with one-and-only-one synonym set.
These tools are frequently used during the process of creating an enterprise-wide controlled vocabulary. These vocabularies are used for identifying data elements or expressing business rules in a consistent way across multiple organizations.

## Method

In this program we will have once instance that has an initial synonym set. We will have a button that reveals alternative synonyms using a switch/case. When you select a new synonym set it will copy the selected synonym set tree into the selected synonym set and close the case.
# XForms/Summary Details
## Motivation

You have a long list of items, each of which has around a half screen of item details to edit. You want to quickly scroll through a table of items and change the details for the selected item.

## Method

We will split our screen into two parts. The top part provides a tabular list list of items with each item displayed on a single line. As you select a single item, the details for that item will be shown on the lower part of the screen.

## Screen Image

Note that when the mouse is in the second row the inspector is focused on the second item.

## Sample Code

The way we get the bottom panel to change context to the selected row is to use a <xf:group> element that will always focus on the selected row.
In this example the index('item-repeat') function will always be set to the selected row. So when you are on the second row the index('item-repeat') will be set to 2 and the XPath expression will be instance('save-data')//item[2]
Here is the full source code:

## Discussion

Note that this pattern may be extended to use multi-line tables and a scrolling div in the top part of the form.
# XForms/Switch and Case
## Motivation

You want to conditionally display different areas of the screen based on static IDs.

## Screen Image

As you click on one of the three buttons on the top row, the view displayed below will change.

## Link to XForms Application

Switch and Case

## Discussion

XForms provides an easy ways to swap between views. This also shows how the XForms group and label can be used like the HTML fieldset and legend.
# XForms/Template
## Motivation

Why are you creating this example? Should start with "You want to..."

## Screen Image

A sample screen image. Many people do not have the ability to run the examples so this is critical.
Use this format:
Make SURE you label all images with a license.
Please use creative commons share alike with attribution if you can.

## Sample Code

* Please make the default namespace xhtml.
* Please use the xf as the namespace prefix for all XForms elements.
* Use spaces to indent, not tabs. Wikimedia and browsers use different setting for tab-stops. This can not be changed.
* Wrap your source code using the source element to give the code syntax highlighting:

## Auto navigation macro

Please place the following macro at the end of each example:
This allows readers to just page through the examples without using the back button.

## Discussion

Some analysis of the more difficult or unusual sections of the example. Any long complex XPath expressions should be explained on a step-by-step basis.

## Credits

Make sure you give credits to other examples that people have done. Our license is Sharealike with Attribution so we want to also give other developers attribution if they started some examples. Give a URL to the original author's code if you can.