OpenLLM-France/wikimedia huggingface dataset:
# Pinyin/UK

Search Pinyin UK
The United Kingdom of Great Britain and Northern Ireland, also called the United Kingdom, GB or UK, is a sovereign state in Western Europe. It is made up of 4 countries: England, Northern Ireland, Scotland and Wales. It is a member of the European Union, the United Nations, the Commonwealth, NATO and the G8. It has the sixth largest economy in the world.
Dah Britain Liarnher Warngguor her Beei Ireland, yee jiaohzuoh Liarnher Warngguor, GB huoh UK, shih Xi Ou d zhuuquarn guorjia. your 4'g guorjia zuucherng: England, Beei Ireland, Scotland her Wales. shih Ouzhou Liarnmerng, Liarnherguor, Yingliarnbang, NATO her G8 d cherngyuarn. shih shihjieh dih-6 dah jingjihtii.
# Mazda Guide/Protege 5
## How-To

* Programming Key Fobs

## Mods

* Stereo
** Removing Factory Stereo
** Installing Aftermarket Stereo
** Auxmod
* Headlights
** Headlight Blackout
* Windshield Washer Nozzle
** Tribute Nozzles

## References

* 2002 Owners Manual
* 2003 Owners Manual
* Protege 5 Workshop Manual(Mirror) (PDF Mirror) (One Large Download) (49.3 MB)
* Mazda Protege 5 Parts Catalog (One Large Download) (38.7 MB)
* The Protege FAQ
# MeGUI

MeGUI is a video conversion application for Windows, which was primarily designed to be a DVD ripper, but is capable of many transcoding tasks. It is essentially a frontend for many free tools, but also includes a number of utilities to enhance the conversion process. MeGUI is a free program which has many ties with doom9.org.

## Contents

* Presentation
* Installation
* Configuration - how to setup MeGUI. (Outdated)
* FAQ
* Glossary - to retrieve all MeGUI keywords.

### Guides

* MeGUI Basic Guide to ripping a DVD - to learn the basics of this program. (Slightly outdated)
* MeGUI iPod Conversion Guide - for encoding iPod compatible files.
* HDTV Transcoding Guide - a more advanced conversion walkthrough for digital TV caps. (Slightly outdated)
* Berrinam's guide is an introduction to automated encoding with MeGUI, with both AutoEncode and One Click Encoder modes. (Very outdated!)
* Calculating bitrate

### Documentation

* The documentation for the tools in the menu "Tools" are available at Tools.
* The documentation for the main window is available at Main Window. (Silghtly outdated)

### Other

* Computer movie files - anatomy of a video file on your computer.
* FFDShow reference - detailed information on various FFDShow settings and configuration.
* x264 Settings - a comprehensive guide to options in x264.

## Further reading

There is now a page of links to video encoding related topics.
# Mazda Guide/Protege 5/Tribute Nozzles
## What You Need

* Tribute Nozzles, part number EC01-67-50YA
* 10mm deep socket wrench

## Removing A Nozzle

* Open your hood
* Remove the bonnet insulator
* Disconnect the hose from the nozzle
* Remove the nozzle using the socket wrench from underneath the bonnet

## Installing A Nozzle

* Connect the hose to the nozzle (through the hole)
* Push the nozzle into the hole
* Adjust the aim
# MeGUI/Aspect Ratio Signalling in AviSynth Scripts

MeGUI supports aspect ratio signalling in AviSynth scripts, which will allow MeGUI to read the aspect ratio you set in the script without you having to tell MeGUI. This is analogous to AR signalling in Matroska and MP4; however, since AviSynth works by emulating AVI files (which have no native support for AR signalling) a workaround is required.

### Where to find the AR settings in MeGUI

MeGUI currently doesn't let you set the SAR -- you have to set the DAR. This setting is available from the video preview window in the main form.

### Setting the DAR within an AviSynth script

You can add DAR signals directly to your Avisynth script with two specially-named globals: MeGUI_darx and MeGUI_dary. For example, you might have:
and MeGUI will interface with Avisynth to get the values of the variables. So you can even do something funky like
to allow AviSynth to do some DAR calculations.

#### Some helper functions

Because cropping preserves SAR and resizing preserves DAR, it is useful to be able to use the most suitable one for any calculations you make. These AviSynth functions convert between SAR and DAR, and set the DAR so that MeGUI can read it out.
An example of using these functions in a script:
# Mazda Guide/Canada
## Canada

* Order Canadian Parts Online

## Alberta
### Edmonton

* Edmonton Mazda Club
# Mazda Guide/Protege 5/Programming Key Fobs
## Instructions

(MIRROR) Lost key fob for keyless entry and replaced with new need to program to module

## Notes

* You can program either one, two, or three key fobs
* Obviously, do not start the car
* The drivers side door switch is the small button that detects if the door is closed
* The doors will lock and unlock on their own, do not press the lock or unlock button on your door
* Your key fob should have part number (P/N) BL8D 37 5RY and model 41706
# Mazda Guide/Protege 5/Removing Factory Stereo
## What You Need

* Small flathead screwdriver - This is used to pop off the faceplate edges
* Electrical Tape - This is used to prevent scratching
* Ford Key - This is used to pop the stereo out
** Don't have one? don't worry, you can easily build one

## Steps

* Take the screwdriver and wrap the tip with a single layer of electrical tape
** Make sure that your screwdriver is thin enough to fit between the edge and the trimming
* Stick the screw driver in between the faceplate edge and the trimming and pry off the edges
** This should not take much force, I found best results when prying from the top and bottom
** If you do not have the tape player or the MD then do this for the small plate as well
* Use the ford key by sticking it into the hole and the slot as shown
* Note: The photo shows the key in the middle and lower holes, but the key must be used in the upper and lower holes.*
** If you only have two keys, do one side first then the other side next
* Now pull the radio out while applying force on the keys towards the door
** If you removed the small plate, this should be pretty easy, if not you will have to be creative
* Tada! your factory stereo has now been removed. Just unplug and do what you want with it.

## Building A Key

All you need to build your own set of keys is a metal coat hanger and some tools I used a Dremel to do the work, but I'm sure there are many other ways to go about building the key
* Measure the bottom of the coat hanger into four approximately equal sized pieces
* Use the Dremel (with a sandpaper disc) to cut the coat hanger at the leftmost and rightmost edges
** You should end up with a piece falling off from the middle
* Now try and cut the hanger again so that you will have a U-shaped key with segments of equal length
* finally, sand down the sharp edges and taper the points on one side
* for the straight piece that you cut first, you can either use this to build another (just use pliers to fold it into a U) or you can toss it.

## Images

** Notice the small panel has been removed
** The disc was used for cutting, the cylinder was used for tapering
# Puzzles/Action sequences/Sharing Milk

Puzzles | Action sequences | Sharing Milk
You have an 8 liter bucket full of milk and two empty buckets, one with a 5 liter volume and the other with a 3 liter volume. You have no means of measurement other than the buckets themselves, which are not calibrated.
How can you evenly distribute the milk into two portions of precisely 4 liters?
Solution
# Puzzles/Action sequences/Sharing Milk/Solution

Puzzles | Action sequences | Sharing Milk | Solution
| Move | 8 l | 5 l | 3 l |
| Start | 8 | 0 | 0 |
| 8 l to 5 l | 3 | 5 | 0 |
| 5 l to 3 l | 3 | 2 | 3 |
| 3 l to 8 l | 6 | 2 | 0 |
| 5 l to 3 l | 6 | 0 | 2 |
| 8 l to 5 l | 1 | 5 | 2 |
| 5 l to 3 l | 1 | 4 | 3 |
| 3 l to 8 l | 4 | 4 | 0 |
# Puzzles
## Foreword

There are many books in the market nowadays that have written about the puzzles BUT most of the books only dealt with narrow scope of that particular puzzles only.
For this Wikibook, it is the intention of the contributors to give the readers some tidbits/history and examples related to that puzzles mentioned and of course there are some puzzles which provided entertainment / interactive question for readers themselves at the end of the page. If you got stuck after trying, it wouldn't hurt to take a peek on how to solve the puzzles itself (after all puzzles is supposed to be fun).
Hence all said, please enjoy these puzzle collection, avoid any frustration, and fight boredom.

## Table of contents
### Games & Graphical Puzzles

* Two-player games
* Chess puzzles
* Tower of Hanoi
* Seven Bridges of Königsberg
* Four colour map
* Bongard problems
* Subdivisions

### Grid Puzzles

* /Symbols/
* /Shading/
* /Segregation/
* /Stripe/

### Language puzzles

* Analogies
* Odd-one-out
* Rebus
* Riddles
* Word-In-Word

### Mathematical puzzles

* Action sequences
* Analytical puzzles
* Arithmetical puzzles
* Bertrand’s Box
* Decision puzzles
* Geometric puzzles
* Luoshu Squares
* Number sequences
* Set theory puzzles
* Statistical & combinatorics puzzles

### Logic puzzles

* Logic puzzles
* River Crossing
* Rubik's cube (3x3x3)

### Real life problems

* How do you ... ?
* Lateral puzzles
* Non-scientific puzzles
* Physics puzzles

### About puzzles

* Puzzles in science
* Solving puzzles

## Puzzle resources

* Jim Loy's Puzzle Pages
* Riddles–Wu:Riddles
* Aha! Puzzles - Original creative puzzles by Lloyd King
* Puzzles from the Princeton undergraduate mathematics student society.
* rec.puzzles Archive
* ResultsAbout Riddles: Collection of links to other riddle web sites.
* Mathpuzzle: Puzzle blog of Ed Pegg Jr.
* PuzzlePicnic: Hundreds of deduction puzzles.
* Puzzles.com
# Puzzles/Action sequences

Puzzles | Action sequences
* Sharing Milk
* Three Bottles
* Crossing the River
* Crossing the River II
* Barrel of Ale
# Puzzles/Action sequences/Barrel of Ale/Solution

Puzzles | Action sequences | Barrel of Ale | Solution
There are 6 operations that can be done in any order to arrive at one pint. These are: Filling the 5 pint mug, filling the 3 pint mug, pouring the contents of the 5 pint mug into the 3 pint mug, pouring the contents of the 3 pint mug into the 5 pint mug, emptying the 3 pint mug (presumably by drinking it), and emptying the 5 pint mug. Using these operations, there are two ways to arrive at 1 pint.
| | 5 Pint Mug | 3 Pint Mug |
| 1 | 5 | 0 |
| 2 | 2 | 3 |
| 3 | 2 | 0 |
| 4 | 0 | 2 |
| 5 | 5 | 2 |
| 6 | 4 | 3 |
| 7 | 4 | 3 |
| 8 | 4 | 0 |
| 9 | 1 | 3 |
Or, much more quickly:
| | 5 Pint Mug | 3 Pint Mug |
| 1 | 0 | 3 |
| 2 | 3 | 0 |
| 3 | 3 | 3 |
| 4 | 5 | 1 |
# Puzzles/Action sequences/Crossing the River II/Solution

Puzzles | Action sequences | Crossing the River II | Solution
Label the fathers A, B and C, the sons a, b and c, river . and boat < >.
# Puzzles/Action sequences/Barrel of Ale

Puzzles | Action sequences | Barrel of Ale
You have a barrel full of ale, a 5 pint mug, and a 3 pint mug. Your task is to measure out precisely 1 pint of ale.
(please note that this puzzle has at least two different solutions)
Solution
# Puzzles/Action sequences/Crossing the River

Puzzles | Action sequences | Crossing the River
A farmer wants to cross a river and take with him a wolf, a goat, and a cabbage. There is a boat that can fit himself plus either the wolf, the goat, or the cabbage. If the wolf and the goat are alone on one shore, the wolf will eat the goat. If the goat and the cabbage are alone on the shore, the goat will eat the cabbage.
How can the farmer bring the wolf, the goat, and the cabbage across the river?
Solution
# Puzzles/Action sequences/Crossing the River/Solution

Puzzles | Action sequences | Crossing the River | Solution
Label the farmer F, wolf W, goat G, cabbage C, river . and boat < >.
# Puzzles/Action sequences/Crossing the River II

Puzzles | Action sequences | Crossing the River II
There are six persons on the shore: Three fathers and each of them has a son. The sons are afraid to be nearby a different father (or fathers) if their own father is not there (both at the boat and the either of shores). There is a boat that can hold a maximum of two persons (you can assume that the sons are able to row the boat).
How can the six people get across the river?
Solution
# Mizar32/Models and Specifications

| Model | Flash memory | Internal SRAM | SDRAM |
| Mizar32 A | 512KB | 64KB | 32MB |
| Mizar32 B | 256KB | 64KB | 32MB |
| Mizar32 C | 128KB | 32KB | 32MB |
* Main processor: AVR32 UC3A0 @ 66 MHz
* Internal fast SRAM: 32KB or 64KB with single-cycle access time
* On-board SDRAM: 32MB with 2-cycle access time
* Internal Flash memory: 128/256/512KB with single-cycle access time
* External Flash memory: up to 4GB on micro SD card.
* Internal operating Voltage: 3.3V with 5V input tolerant I/O
* Digital I/O Pins: 66
* Timer/Counter: 3 channel, 16-bit.
* Analog-to-Digital input pins: 8 with 10-bit resolution measuring 0-3.3v at up to 384,000 samples per second
* Stereo audio bitstream Digital-to-Analog Converter with 16 bit resolution at up to 48kHz
* Pulse Width Modulation channels (PWM): 7
* Universal Sync/Async RX/TX (USART): 2
* Serial Periperal Interface (SPI): 2
* Two-Wire Interface (TWI): 1, I2C-compatible at up to 400kbit/s
* Universal Serial Bus (USB): 1 OTG host with dedicated cable.
* Debug Port: JTAG connector
* Ethernet MAC 10/100: 1 (requires add-on hardware module)
* Oscillators: 2 (12MHz and 32768Hz)
* Buttons: Reset button, user button
* LEDs: Power LED, User LED
* Power supply: 5V USB or 7.5V-35V DC, 80mA (base board) to 222mA (with all add-on modules)
* Dimensions: 96,5mm x 63,5mm
* Weight: 42.5 grams
* Temperature range: -45 to +85°C

## Embedded Hardware interfaces

* MicroSD
* USB
* JTAG
* Add-on bus connectors 1-6 interfaces on the Add-on Bus
* 12 General Purpose I/O pins
* 2 UARTs: one basic, one with modem control signals
* 2 SPI
* I2C interface with 2-way splitter
* 8 ADC inputs
* 3 high-resolution timers
* Ethernet

# Optional Stacked Modules

* Ethernet and Real Time Clock
* RS232 serial port
* 16x2-character LCD display
* VGA display, PS/2 keyboard + mouse and audio output
* PHT protoboard
* SMD protoboard
# Introduction

The Real Time Clock chip on Mizar32's add-on ethernet board keeps track of the time of day and the date, whether the Mizar32 is powered on or not. It does this by having a small rechargeable battery and a crystal that vibrates at 32768 cycles per second, which it divides down to get a pulse that beats exactly once per second and uses this signal to keep the seconds, minutes and hours up to date, as well as the date, month and year.

# Hardware view

The ethernet board has a 32768 Hz crystal and a DS1337 or a PCF8563 chip which is connected on the I2C bus. The two different chips have the same pin-out and almost identical functions; the reason we support both is due to a production error by one of our suppliers who printed DS1337 on the casing of a batch of PCF8563 chips.
Which actual chip is present is identified by the slave address that it responds to in the main I2C bus: the DS1337 responds to 7-bit decimal address 104, while the PCF8563 responds to slave address 81.
Both chips respond up to a speed of up to 400kHz on the I2C bus. We recommend using 100kHz, the default I2C that is set in eLua.
For the register layout and how to address the devices using the raw I2C protocol, please see their datasheets.

# Software view

SimpleMachines has added a module to Alcor6L to set the time and to read it.
Note: This module is included from Mizar32's 2013 firmware release of eLua 0.9.

## Setting the time

You set the time using the functions:
| Language | Function |
| eLua | mizar32.rtc.set(t) |
| PicoLisp | (mizar32-rtc-set param value) |
In Lua, t is a table which can have any of the following fields present:
| Field | Value | Meaning |
| sec | 0-59 | Seconds |
| min | 0-59 | Minutes |
| hour | 0-23 | Hours (24-hour clock) |
| day | 1-31 | Day of month |
| month | 1-12 | Calendar month |
| year | 1900-2099 | Year |
| wday | 1-7 | Day of week |
In PicoLisp, param is field to set and value is the value at which param is set.
For example (in eLua),
In PicoLisp,
When some fields are present but not others, mizar32.rtc.set sets those parts of the time and date and leaves the other parts with the same value as they had before.
The day of the week field, wday, uses the following values to represent the seven days of the week:
| Value | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| Meaning | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
It is up to you to write the correct value into this field if you wish to use it; it is not set automatically from the date.

## Reading the current time and date

The following functions can be used to read time:
| Language | Function | Return value | Example: Print year |
| eLua | mizar32.rtc.get | A Lua table with the seven fields described above | t = mizar32.rtc.get; print("Year: ", t.year) |
| PicoLisp | (mizar32-rtc-get) | A list with the seven fields described above | (prinl "Year: " (car (nth (mizar32-rtc-get) 3)) ) |
The following code example makes a clock appear on the LCD display.

# Further reading

* The manual for the mizar32.rtc eLua module
* The DS1337 datasheet
* The PCF8563 datasheet
# Main board

What is connected to each pin of the connectors?
| P2 / BUS3 BUS_LEFT_EXT | P4 / BUS2 BUS_LEFT_DOWN | Pin | P3 / BUS1 BUS_LEFT_UP |
| POWER | POWER | 1 | POWER |
| GND | GND | 2 | GND |
| UART1_RX | ETHERNET | 3 | REF_CLK |
| UART1_TX | MDC | 4 | TX_EN |
| UART1_DCD | RX0 | 5 | TX0 |
| UART1_DSR | RX1 | 6 | TX1 |
| UART1_DTR | RX_ER | 7 | RX_DV |
| UART1_RI | MDIO | 8 | PWM2 |
| UART1_CTS | X (was GPIO58) | 9 | VDDANA |
| UART1_RTS | SDA | 10 | GNDANA |
| SPI1_CS1 | SCL | 11 | ADDON1 |
| SPI0_CS0 | BUS_SDA_L | 12 | SPI0_CS0 |
| SPI0_MISO | BUS_SCL_L | 13 | SPI0_MISO |
| SPI0_MOSI | RESET_N | 14 | SPI0_MOSI |
| SPI0_SCK | VCC5 | 15 | SPI0_SCK |
| P7 / BUS6 BUS_RIGHT_EXT | P6 / BUS5 BUS_RIGHT_DOWN | Pin | P5 / BUS4 BUS_RIGHT_UP |
| PWM3 | VCC5 | 1 | GND |
| PWM4 | RESET_N | 2 | X (was ADDON2) |
| PWM5 | BUS_SDA_R | 3 | UART0_RX |
| ADC4 | BUS_SCL_R | 4 | UART0_TX |
| ADC5 | ADC0 | 5 | UART0_RTS |
| ADC6 | ADC1 | 6 | UART0_CTS |
| ADC7 | ADC2 | 7 | PWM0 |
| X (was GPIO61) | GPIO49 | 8 | PWM1 |
| GPIO62 | GPIO50 | 9 | SPI1_SCK |
| GPIO63 | GPIO71 | 10 | SPI1_MOSI |
| GPIO82 | GPIO2 | 11 | SPI1_MISO |
| GPIO85 | GPIO7 | 12 | SPI1_CS2 |
| GPIO88 | EXT_INT | 13 | VCC3.3 |
| GND | GND | 14 | GND |
| POWER | POWER | 15 | POWER |
Legend
* X = No connection
# Quick Start Guide

Let's make sure your Mizar32 works OK. You will need:
* A Mizar32 base board (any model: A, B or C)
* A micro SD card
* A PC that can read and write the SD card (you will probably need a micro-to-normal-size SD card adapter or a micro-SD-to-USB adapter to do this)
* A PC-to-Mizar32 micro USB 'mini-B' lead like the ones used with most phones or a 7.5V power supply.

## Apply power to the Mizar32

The Mizar32 base board can be powered in two different ways: from its USB socket or from its DC power jack. There is a three-pin header on the main board, "JP1", just behind the user button "SW2", which selects the power source that the Mizar32 will run from.
One option is to power the Mizar32 from your PC via a USB cable plugged into the Mizar32's USB connector "J2". To take power from here, the jumper on JP1 needs to be on the two pins furthest from the power jack, pins 1 and 2, which are the pins on the right when you are looking at the board from the side of the power socket and user button.
Alternatively, you can use an external power supply plugged into the power jack "J1". In this case, JP1's jumper needs to be connecting the two pins closest to the power jack (pins 2 and 3).
* The external power voltage needs to be at least 7.4 volts but can be anything up to 35V. The centre pin of the power connector needs to be the positive one but the Mizar32 will not be damaged if you accidentally get the positive and negative connections the wrong way round.
* The current needed by the base board is 80 milliAmps. The serial board takes another 5mA, the ethernet board 50mA, the LCD display 7mA and the VGA board 80mA.
When the Mizar32 is correctly powered and the jumper is in the right position, a red light on the main board will be lit next to the user button "SW2".

## Program the Mizar32 to flash its on-board LED

Let's try running a little program on the Mizar32 to make sure everything is working correctly. This should make it flash the blue light next to the red power light.
If you're using Lua as your language on the Mizar32, then try this:
On your PC, use a text editor to create a file called "autorun.lua" containing this:
If you're using PicoLisp on your board, create a file called "autorun.l" with the following content:
Now, copy the file to a micro SD card. "Safely remove" the SD card and put it in the Mizar32's SD card slot. Now, when you apply power to the Mizar32 (or when you press its Reset button, SW1), the blue LED next to the red one should start flashing once per second.
Now you know how to supply electrical power to the Mizar32 and how to write a program for it, load it onto the board and make it run. If this example didn't work for you, please contact us and we'll find out why.
# Policy-based Resilience Simulator with OMNeT++/Building Distack

Distack compiles successfully on 64-bit systems (or says so) but on trying to access the library, it gives an error (associated with libdistack.so). That is why I recommended to go for a 32-bit OS at the beginning.

## Install Dependencies

You need to install few dependencies before building distack:

## Download and Extract

Download Distack Source tar ball from here (ID #7). Extract it to the omnetpp folder.

## Patching ReaSE

Now copy distack-1.2.3-dev/etc/patches/rease/distack_rease.patch to omnetpp folder in Home (parent directory of "ReaSE" folder) and navigate to that directory in terminal and to apply the patch, do the following:
You should see an output like this:
If, by any chance, the files are created in a temporary directory, for e.g., ReaSE_patched, make sure you copy these files into the ReaSE/src directory.

## Rebuilding ReaSE

Now go to OMNeT++ IDE, Right Click on ReaSE in Project Explorer, click "Clean Project" and then build it pressing Ctrl +B or Project > Build All.

## Building Distack

In terminal, navigate to distack folder and run:
In following command, replace <your_username> with your username:
Then run
The Distack libraries will be in the directory: /distack/src/.libs/ Now you need to patch INET and ReaSE.
← ReaSE and XML-RPC · Patching INET and ReaSE →