OpenLLM-France/wikimedia huggingface dataset:
# Lua Functional Programming/Introduction
## What is Lua?

Lua is a fast, powerful lightweight, embeddable scripting language. Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua has automatic memory management and incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

## Features of Lua

The features of the lua programming language include:
* Lua is an extension programming language
* Suitable for use as an embedded language within a host application
* Cross Platform Support
* Implemented in ANSI C
* Lightweight core occupies just 60k and executable footprint of just 140k
* Easy to use conventional scripting language
* Dynamic datatypes
* Powerful builtin support for text processing
* Interpreted bytecode compilation for fast and efficient execution
* Stack based virtual machine model
* Support for procedural, object oriented, functional and datadriven programming
* Supports coercion
* freeform syntax
* casesensitivity
* keywords

## History of Lua

Lua was first developed in an academic laboratory as a tool for inhouse software development but it was later adopted by several industrial projects around the world and is now widely used in the game industry.
# Lua Programming

Lua (/ˈluːə/ LOO-ə; from Portuguese: lua [ˈlu.(w)ɐ] meaning moon) is a lightweight, high-level, multi-paradigm programming language created in 1993 by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes.
Lua is implemented in C and has simple API which helps it interface easily with other languages.
This programming language is also related to (other than C/C++): Python, Java, JavaScript, as well as a few concepts of Perl, etc.
Lua is mainly used for embedded systems and for game development. Some games that are scripted in Lua include: World of Warcraft, Roblox games, Angry Birds (video game), etc.
Some other sources that use Lua include Nmap and Adobe Lightroom.
Lua's latest version is version 5.4.3 and was released @2020-1.
Some text editors that use Lua include: SciTE, Notepad++ with Autocompletion Plugin, Visual Studio with BabeLua Plugin, ZeroBrane Studio and Atom Editor with the Love-IDE collection of packages.
At first in its release it was used as home programming language then later appeared publicly. The most famous Lua book is by Roberto Ierusalimschy, the creator of Lua and it's called "Programming in Lua fourth edition"
According to 2021 statistics so far, Lua is used 0.47 percent out of all programming languages.

## Contents

This book is divided into the following chapters and appendices:

### Introduction

    This chapter introduces the Lua language and gives a brief overview of its purpose and history. It also introduces some programming concepts.

### Expressions

    This chapters provides comprehensive coverage of expressions, operators and types.

### Statements

    This chapter describes the statements available in Lua.

### Functions

    This chapter explains the purpose and usage of functions and describes the syntax for function definitions.

### Tables

    This chapter covers table constructors, metatables, iterators and sorting.

### Standard libraries

    This chapter describes the functionality offered by the standard libraries.

### Appendix: Software testing

    This appendix gives information about testing programs written in Lua.

### Glossary

    This glossary contains accurate definitions of all significant terms used in the book and relevant to the subject.

### Index

    This index contains a list of all the topics and functions covered in the book and references to the locations in the book where these topics and functions are described.
# Lua Programming/Contents

This book is divided into the following chapters and appendices:

## Introduction

    This chapter introduces the Lua language and gives a brief overview of its purpose and history. It also introduces some programming concepts.

## Expressions

    This chapters provides comprehensive coverage of expressions, operators and types.

## Statements

    This chapter describes the statements available in Lua.

## Functions

    This chapter explains the purpose and usage of functions and describes the syntax for function definitions.

## Tables

    This chapter covers table constructors, metatables, iterators and sorting.

## Standard libraries

    This chapter describes the functionality offered by the standard libraries.

## Appendix: Software testing

    This appendix gives information about testing programs written in Lua.

## Glossary

    This glossary contains accurate definitions of all significant terms used in the book and relevant to the subject.

## Index

    This index contains a list of all the topics and functions covered in the book and references to the locations in the book where these topics and functions are described.
# Managing your business with anyPiece/Order Management/Product/How to add product alias?

Product alias is use for managing multiple part number that might belong to same product.

## Impact

Once the product have turn into product alias, it won't be able to use over in staging area and receiving area

## Steps

* Go to Order Management > Product
* Select one of the existing product. Please do note that you are required to use the primary product. Primary product is the real product that will be use by staging area.
* Click on Product Alias
* Click [Add New]
* Type in the secondary product name.
* Click [Save]
* If you are doing correctly, try to search for secondary product name in the dashboard. The secondary product name will be shown like below

## What is Primary Product and Secondary Product

Primary product is the product that will be use back in staging
example In staging, you would like to store product no A-01-01 which is apple. During PO creation, you would like to call apple into "APPL - Super apple". Base on the example provide, A-01-01 apple is the primary product while APPL - Super apple is the secondary product name
# Managing your business with anyPiece/Supplier relationship management/Delivery Order/DO
## How do I import invoice into my Delivery Note?

Please do take note that this function is not available to all customers
* Go to supplier management > DO
* Click on New Delivery Order
* Click on "Import Invoice". If you know which invoice you wish to import from, just type in find or else, just click on "Find". It will take longer for those customer who have large collection of invoice
* Click "Yes" when you are done. All the content of the invoice will be imported to the DN
# Managing your business with anyPiece/WYSIWYG Web editor/End user
## Setup

* Setup extRouter

## Basic

* How to add new page?
* How to remove existing page?
* How to rollback my changes?

## FAQ
### How do I test my page on my web site?

Go to your website (which suppose to have extRouter) and type the Page ID. Below would be a sample. If my page id is called "page_1", i'll just have to type like below

### My website is not automatically updated after I have changed it. What happen?

In order to improve the performance and security of the website, the extRouter will contain certain caching in its own local database. If you decided that you wish to update the website base on what you have already configure in anyPiece, feel free to type /flush. Below would be the sample of the url
# Managing your business with anyPiece/WYSIWYG Web editor/End user/How to add new page?
## Introduction

Creating a new page in [CMS] is pretty simple. Most of the hardwork is already taken care by the designer and web developer while you just focus on what matter to you. The detail of the website.
There will be few types of pages which we will commonly group them
* Form style page
* Navigation page
* Article page
* Product page

## Form style page
### Introduction

This page called "Form style page" is meant for fixed page where there wouldn't be much changes to the basic layout. Example, about us page will only have one article to explain on the company history while one photo on the top for show case.
This is one of the favorite for our user as it pretty straight forward. What-you-see-what-you-get.

## Navigation page
### Introduction

This page called "Navigation type" usually is merely a page which contain links to others page (usually its child) which consist but not limited to Article or Form Style page. For example, if your company is having multiple projects and you would like to have a navigation page which will list out all child form style page. This will save your time to remove/add new projects from the list by focusing on the forms existing as child for this project navigation page.

## Basic step

* Go to Main Navigation > Web Editor
* Click "Create New Page" and you will be sent to a new tab/page (refer to screen shot on creating new page). screen shot on creating new page
* Please select the page type which is located at the arrow indicating "A". Please follow your company quick guide for more explanation on those since its totally customized
* Enter the page name and page id will be automatically entered for you
* Please do take note that page id can't be duplicate. If there is another page with the same id existed, the system will block you
* Master page is merely on how the page design should react. Just ignore it most of the time unless you know what you are doing. But again, you can always roll back your changes.
# Supplier management

* Quotation
* Invoice
* Purchase Order
* Credit Note or Debit Note
* Delivery Order/DO

## FAQ
### Why I can't find certain document to be imported to my new document like invoice or PO?

In general, you only can import document which is either send or print. Send will work when there is an email send to the particular customer and print is for to confirm that there are physical copies which we expect the user to fax or ship to them. Most of the time, the user decide to save (a.k.a DRAFT) for later viewing but not yet send/print to the customer/vendor for viewing. Due to this, we will not allow any document under DRAFT to be imported to another document.

### If I have do a mistake enter some of the data after sending to the customer, can I still change the content?

Yes. Just reject and enter the reason. After that, you will be able to edit the document again.

### How do I set my printing excluding the url?
#### Firefox

Go to the File \ Page Setup item on the menu, and then select the Margins & Header/Footer tab in the dialog. Change everything in header and footer as "--blank--"

### Why there are no print out?

Please make sure your browser have disable its pop up. Please refer to below

#### Firefox

* Go to Tools > Option
* Go to Content Tab
* If pop-up blocker is tick, click on "Exception"
* Add "www.anypiece.com" into the list
# Managing your business with anyPiece/Task management/Contact management/Setup new contact

In anyPiece task management, you will need two key information
* Company detail
* Company contact person *optional*
This information is shared among all the modules.

## Steps on creating new contact's company

* Go to Task Management > Dashboard Contact
* Click on [Create Contact]
* Fill in [Company Name]
* Fill in the [Initial]. This will play an important role later for easy finding for the company.
* Fill in the [Business Type]. If you wish to create new business type, you can click on Create Business Type tutorial
* Fill in the [Address], [Postcode], [State] and [Country]
* Click on [Update Company Detail] and if everything goes well, you will get [Update Complete]
* Click [OK]. Now you have complete enter your customer/vendor's company contact, you can choose to proceed on entering the company's personnel.

## Steps on creating company personnel

* Once you have completed on the steps above, you can click on [CONTACT] tab
* Click on [Add New Contact]
* Fill in First Name, Last Name and Init
* Once you are done, click [SAVE]
# Managing your business with anyPiece/WYSIWYG Web editor

In order to simplify the reading, please select the segment that you are planning to work on
* End user
* Web designer or programmer

### List/Guide

* Tag list

### Migration guide

* Shopping cart to anyPiece web editor
** ZenCart
# Organic Business Guide/About this book

The Organic Business Guide Developing sustainable value chains with smallholders
by Bo van Elzakker (Agro Eco Louis Bolk Institute, The Netherlands, (http://www.louisbolk.org) and Frank Eyhorn (Helvetas Organic & Fair Trade Competence Centre, Switzerland, (http://www.organicandfair.org)
Sales of organic products are steadily increasing, and so is organic production in low and middle income countries. For good reason: for farmers it is an opportunity to increase their income and manage their land in a more sustainable way. Getting the produce from the field to the market requires a certain level of organisation, management and finance; a well-functioning organic business. Whether set up in the form of a producer cooperative or a private company, the organic business needs to be efficient, well structured and profitable.
This guide is written for those who are actively engaged in setting up or managing organic businesses with groups of smallholders. It provides practical know-how and essential information for planning, managing and expanding such a business. Covering topics from designing production and internal control systems to business planning and marketing, it attempts to be a comprehensive reference book for organic entrepreneurs, cooperatives and facilitators.
The guide was developed in a participatory process involving people who are active and experienced in managing or supporting organic businesses in Africa, Asia, and Latin America. It draws on a wide range of practical examples and provides links to useful resources available on the internet.
In cooperation with:
* HELVETAS - Swiss Association for International Cooperation
* Agro Eco - Louis Bolk Institute
* ICCO - Dutch Interchurch Organisation for Development Co-operation
* UNEP - United Nations Environment Programme
English language editing: Sheila Taylor (Kulika, Uganda) Set-up of wikibook version: Patrick Bottermann
The Organic Business Guide provides you with several tools that will help you to get your business started and keep it running - some of which were already displayed in the Annex. The link below will take you to some "ready-to-use" word and excel documents, which are hosted on the website of the Organic and Fairtrade Competence Center:
Tools to The Organic Business Guide
Print copies of this publication are available via the IFOAM web shop at http://www.ifoam.org/bookstore. The tools in the Annex are available in electronic format from http://www.organicandfair.org -> Publications. Any reproduction in full or part of this publication is encouraged, but must identify the title of the publication and IFOAM as the publisher.
# Organic Business Guide/Foreword

What does organic mean for you? This question makes most people think, triggers emotions, and sparks the imagination. Seeing products branded as organic, the consumer expects a high level of ethics and integrity. It is clear for most consumers that organic may cost an extra price. At the same time it is also clear that the claims are expected to be true. Products ought to be of high quality, healthy and tasty; moreover, provisions should be made for animal welfare, the protection of biodiversity and a decent living for smallholders.
Organic developed into an internationally known and recognized philosophy of production and trade that is based on the organic principles of ecology, health, fairness and care, as articulated by IFOAM. Producers and consumers alike want sustainable systems in place that provide real solutions to global challenges such as hunger, loss of biodiversity, soil depletion and climate change. This only works if all stakeholders along the value chain are fairly treated and able to be competitive.
Smallholder farmers in low and middle income countries are at the core of IFOAM's attention. While they are the most important source for tropical organic products, they are also the group most vulnerable to poverty and malnutrition due to unsustainable practices. Organic is an opportunity for them. However, opportunities may fail if they are not properly managed and if they cannot be aligned with demand. Setting up an organic business is ambitious and requires skills. On the other hand, organic production is a successful model for millions of smallholders, who, taken together, are responsible for billions of dollars of consumer turnover around the world.
The recommendations and case studies in this guide are built upon a wealth of practical experience and in-depth research, and came out of a broad participation process. We are grateful to all those who committed to passing on their knowledge and hope to encourage and assist all those who strive for improvement or even dare to venture into organic businesses with smallholders in low and middle income countries.
We wish you good luck and prosperity!
Organically Yours,
Markus Arbenz Executive Director, IFOAM
# Organic Business Guide/Acknowledgements

The following people substantially contributed to the guide by writing parts of the text, contributing case studies or reviewing draft versions:
* Alastair Taylor (Agro Eco Louis Bolk Institute – Eastern Africa, Uganda) - review
* André Vording, Angelica Senders, Lisette van Benthum, Rob Witte (ICCO, The Netherlands) - concept, content, review
* Fabio Sagliocca (Claro Fair Trade, Switzerland) - photos
* Ghidey Gebremedhin Debessu (Tigray Agricultural Marketing Promotion Agency, Ethiopia) - content, examples
* Gideon Adeoye (Nigerian Organic Agriculture Network NOAN, Nigeria) - content, examples
* Gunnar Rundgren (Grolink, Sweden) - review
* Joachim Weber (Agri and Co-operative Training and Consultancy Services, Kenya) - content, examples
* Kees van den Berg (Oikocredit, Netherlands) - micro-finance aspects
* Lazare Yombi (Helvetas Burkina Faso) - ICS documents
* María Durán (Ecomercados, Nicaragua) - photos
* Martina Meckel, Louise Luttikholt (Fairtrade Labelling Organizations International) - Fair Trade aspects, photos
* Mirjam Güntert, Adrian Wiedmer (Gebana AG, Switzerland) - photos and tools
* Mohammed Suleman Khan (Chetna Organic Farmers Association, India) - content, examples
* Paul van den Berge (FiBL, Switzerland) -review
* Peter Lendi (Erboristi Lendi SA, Switzerland) - review
* Peter Schmidt, Jens Soth (Helvetas, Switzerland) - content, review
* Prachanda Man Shresta (Helvetas Nepal) - extension and ICS documents
* Rhiannon Pyburn (KIT - Royal Tropical Institute, The Netherlands) - gender aspects
* Robert Berlin, Lionnel Giron (Intercooperation, Switzerland) - review
* Simon Ferrigno (Consultant, UK) - review
* Steven de Vries Reilingh (Rabobank, The Netherlands) - financial aspects
This guide was produced with support of:
* ICCO - Dutch Interchurch Organisation for Development Co-operation
* SECO - Swiss State Secretariat for Economic Affairs
* SIDA - Swedish International Development Cooperation Agency
* UNEP - United Nations Environmental Program
# Microsoft Office/Logging In & Out (OS X)

* This page applies only to version 10.9 (“Mavericks”) of OS X.
For conceptual information on this topic, see the parent page.

### Step By Step: Logging In

* Confirm that you are currently seeing the login window. The login window looks like a gray screen with an Apple logo in the center. Below the Apple logo you will find either a series of small, circular picture frames, or a small circular silhouette of a group of people with two text entry fields below it.
* Do either of the following, as appropriate:
** If you see a picture frame with your name below it, click it. Then type your password into the text field that appears.
** Type your user name into the top text field, and your password in the bottom text field.
* Press Enter. If the text field shakes itself back and forth, you have entered an incorrect username or password. Try re-typing your password (and username, if you had to type that in as well).

### Step By Step: Logging Out

* From the Apple () menu in the top-left corner of the screen, choose the Log Out command. You can also press its keyboard shortcut, ⇧⌘Q.
* When you are prompted if you are sure you want to quit all applications and log out, click the blue Log Out button.
* All of the currently open programs will now quit, and you will be returned to the login window. (If any of the open programs have unsaved changes, you will be prompted to save or discard them before continuing.)

### Step By Step: Locking the Screen

If you wake the computer and your desktop appears immediately, consult your system or network administrator on the proper steps to take. If are working on sensitive files, please test to make sure that you will be prompted for your password before relying on this feature while your computer is unattended.
* From the Apple () menu in the top-left corner of the screen, choose the Sleep command.
* The computer’s monitor should shut off automatically.

### Step By Step: Unlocking a Locked Computer

* Wake the computer by pressing any key on the keyboard, or by moving the mouse.
* If your name is listed under a circular picture frame, type your password into the text entry field, and then click the right-pointing arrow button.
# Microsoft Office/Excel Terminology

* Workbook vs. Worksheet – when you open Excel, a new file is created called Book 1 (until you name it differently). It is called “Book” because it is a Workbook that is initially made up of three Worksheets. Think of a three ring binder with three sheets of paper in it. As with a binder, you can add sheets to your Workbook (Insert > Worksheet), delete them, and re-arrange them. Double click on the Worksheet title to rename it.
* Row – rows travel horizontally and are numbered.
* Column – columns travel vertically and are assigned letters.
* Cell – cells are the basic rectangular building blocks of a spreadsheet. They are assigned an address, generally referred to as a cell reference, according to their column and row (e.g. the cell in column B at row 3 is referenced as cell B3).
* Formula – a mathematical formula used to calculate a result based on data from one or more other cells. Often they consist of some combination of the standard mathematical operators ( +, -, *, /) (e.g.: =(A1+A5)/B13). But they may also include functions (see below). When you type a formula into a cell, that cell will generally display the result obtained by the formula, rather than the formula itself.
* Functions – pre-written formulae that perform common (and not so common) calculations, such as summation and averaging. You can combine many functions and operators in a single formula to obtain more complex results (e.g.: =SUM(A1:A13)).
# Modeling from A to Z/Modeling principles/V is for Vienna Development Method

VDM abbreviates the Vienna Development Method. The specification language was known as Meta-IV.
From the very beginning (around 1978) the intention was to use a language for modelling:
   "We stress here... that the meta-language is to be used, not for solving algorithmic problems (on a computer), but for specifying, in an implementation-independent way, the architecture (or models) of software. Instead of using informal English mixed with technical jargon, we offer you a very-high-level 'programming' language. We do not offer an interpreter or compiler for this meta-language. And we have absolutely no intention of ever wasting our time trying to mechanize this meta-language. We wish, as we have done in the past, and as we intend to continue doing in the future, to further develop the notation and to express notions in ways for which no mechanical interpreter system can ever be provided."

# Different schools — different philosophies

There are three basic schools of the VDM (listed in order of historical emergence):
* Danish school
* English school
* Irish school
We will take a brief look at each in turn.
# Modeling from A to Z
## Contents

Front Cover
* Modelling principles
** Alloy analyzer
** B-method
** OWL-DL
** VDM
** Z
* Model of Waste Management System
* NoWasteNoWant Firm
Back Cover