234 research outputs found
Extending Honeytrap with Lua scripting: Honeytrap LUA implementation
This report describes the process, motivation and design choices made during the Bachelor End Project in collaboration with DutchSec. The project consists of implementing Lua-scripting into Honeytrap, which is programmed in Go. The following chapters will discuss which design choices were made, how the research was performed and how the final functionalities were implemented. A detailed system verification is done with proof of added value and besides that the system testing methods are described. Furthermore a conclusion is given that discusses what the project has achieved, what the use-cases are and whether it does what the client wants it to do.Computer Scienc
Lua-tuen toteuttaminen pelimoottoriin
Opinnäytetyön tavoitteena oli oppia ymmärtämään, miten korkeatasoisen ohjelmointikielen lisäys tapahtuu C++-kielellä kirjoitettuun pelimoottoriin. Aiheeseen valittiin korkeatasoiseksi ohjelmointikieleksi Lua niminen komentosarjakieli. Opinnäytetyön aihe oli kirjoittajan itselleen antama oppimistehtävä.
Opinnäytetyö käy läpi pelinkehityksessä huomattavat komentosarjakielien ja pelimoottorien vahvuudet ja heikkoudet, jotka ilmenevät niiden yhteisestä ja erillisestä käytöstä. Opinnäytetyön yhteydessä toteutettiin testiprojekti, jolla testattiin opittuja menetelmiä. Testiprojektin tavoitteena oli luoda ja hallita pelimoottorin piirtämiä 3D-objekteja Lua-komentosarjoja käyttäen. Erilliset työn vaiheet olivat 3D-objektin luonti, sen sijainnin muokkaus sekä Lua-komentosarjan kautta rakennetun päivitysfunktion asettaminen ja kutsuminen. Työn toteutuksessa käytettiin Visual C++ Express 2010- ja Visual Studio 2010 -ohjelmia sekä Lua-kielen kehittäjien sivuilta saatavaa Luan omaa virtuaalikonetta. Pelimoottoriksi valittiin Kajaanin ammattikorkeakoulun Pelimoottori II-kurssilla ohjatusti kirjoitettu moottori. Testiprojekti toteutettiin Windows 7 -ympäristössä.
Tuloksena huomattiin, että kirjallisen teorian oppiminen on edelleen suurin ajan viejä uuden asian oppimisessa. Testiprojektissa toteutettiin onnistuneesti sille listatut tavoitteet yhdelle objektille. Tulevaisuuden hyödyn kannalta testiprojektin tekeminen ja sen lopputulos antoivat tarpeellisen perusosaamisen komentosarjakielten ja pelimoottoreiden välisestä kommunikoinnista. Se tarjosi myös tarpeellista tietoa Lua-komentosarjakielen kirjoittamisesta ja hallitsemisesta C++-ympäristössä.The purpose of this thesis was to learn to understand how a high level programming language is embedded to a game engine, more precisely, to a game engine written in C++ language. The high level language used in the thesis was chosen to be Lua scripting language. The topic of the thesis was chosen by the author as a learning experience.
The thesis goes through the strengths and weaknesses of game engines and scripting languages, whether they are used together or separately. The practical part of the thesis consists of creating a test project to test embedding mechanisms which were learnt during the research. The goal of the test project was to create and control objects drawn by the engine via scripting. The practical part includes the creation of a 3D-object, changing position of the 3D-object, setting a scripted update function for the object, and calling it in the engine. The project was created by using Microsoft Visual C++ Express 2010 and Visual Studio 2010 programs. The virtual machine for Lua was taken from its official website. The project used the author's own game engine which was created during the Kajaani UAS course "Game Engine Project II".
At the end of the thesis it was noticed that the author still has problems in learning new things through reading. During the test project only one object could be created and controlled. For the future benefits, the test project gave necessary know-how on the communication between scripting languages and game engines. It also offered knowledge of Lua-scripting and how to control it in the C++ environment
Creating Lua : An Exploration of the Actor's Process for the Production of Travels with Lua at the Turn of the Century
vi, 120 p.The author describes her experience preparing and performing the role of the Victorian Era leader of the Bahai faith, Lua Getsinger in the play Travels with Lua at the Turn of the Century
A Two-Way Pushdown Automaton for the Lua Language
abstract: A two-way deterministic finite pushdown automaton ("2PDA") is developed for the Lua language. This 2PDA is evaluated against both a purpose-built Lua syntax test suite and the test suite used by the reference implementation of Lua, and fully passes both
ScanCSV – Lua knihovna pro zpracování CSV souborů ConTeXtem a LuaLaTeXem
summary:Tento článek popisuje možnosti použití jazyka Lua pro vytvoření knihovny Lua funkcí, které mohou zajímavým způsobem zpřístupnit ConTeXtu, LuaTeXu a LuaLeTeXu textové databázové údaje, uložené v CSV souborech. Prioritou při tvorbě popisované luaknihovny bylo, aby mohla být používána i uživateli bez sebemenších znalostí jazyka Lua. Kdo zvažuje, že si "něco začne" s Lua, má příležitost zjistit, jak Lua funguje. Kdo chce zůstat "ryzím TeXistou", má možnost používat popisovanou knihovnu formou „blackboxu“, tj. do zdrojového textu ConTeXtu (PlainTeXu, LeTeXu) zapsat několik řádků Lua kódu, zkompilovat zdroják odpovídajícím formátem a koukat, jak to celé krásně funguje. Pro vážnější zájemce jsem připravil ke stažení řadu pokročilých ukázek, demonstrujících zajímavé možnosti praktického použití knihovny. Ačkoliv je Lua knihovna primárně určena pro použití v ConTeXtu, přichystal jsem řadu ukázek použití v LaTeXu, který bude zřejmě čtenáři tohoto článku preferován.summary:Data stored in CSV (Comma Separated Values) files are often used in data processing. This article describes the author's scancsv.lua library, its origin and demonstrates practical examples of its usage in ConTeXt MKIV and LuaLATeX. Author shows how easily and quickly create print reports, letters, forms, certificates, invitations, cards, business cards, double-sided cards, tables, animations etc. using external CSV text databases. Users of ConTeXt MKIV (but LuaLATeX and LuaTeX as well) can easily use data from external CSV tables in their own documents via the library, using the TeX macros built on the library and make this data available in an attractive and very simple and natural way
Mathematical models to analyze Lua hybrid tables
Lua (Ierusalimschy et al., 1996) is a well-known scripting language, popular among many programmers, most notably in the gaming industry. Remarkably, the only data-structuring mechanism in Lua is given by associative arrays, called tables. With Lua 5.0, the reference implementation of Lua introduced hybrid tables to implement tables using both a hashmap and a dynamically growing array combined together: the values associated with integer keys are stored in the array part, when suitable, everything else is stored in the hashmap. All this is transparent to the user, who gets a unique simple interface to handle tables. In this paper we carry out a theoretical analysis of the performance of Lua's tables, by considering various worst-case and probabilistic scenarios. In particular, we uncover some problematic situations for the simple probabilistic model where we add a new key with some fixed probability p > 1/2 and delete a key with probability 1-p: the cost of performing T such operations is proved to be O(TlogT) with high probability, where linear complexity would be assumed for such data structure. If there is no deletion, we prove that the tables behave better overall. In particular, we establish that inserting the T integers from 1 to T in a random order is done in an essentially linear time.The work of the first author has been supported by funds from project MOTION (Project PID2020-112581GB-C21) of the Spanish Ministry of Science & Innovation MCIN/AEI/10.13039/501100011033.Peer ReviewedPostprint (author's final draft
Sangue de Lua: reflexôes sobre espíritos e eclipses
Moon’s blood: reflections on spirits and eclipses. In 2003, the author witnessed a partial eclipse of the moon in the Kuikuro village of Ipatse (Upper Xingu, Brazil), which was followed by a series of ritual actions. These activities were documented by a team of Indigenous film-makers who produced a documentary video about the event. Taking this ethnographic and cinematographic experience as his starting point, the author reflects on the meaning of the eclipse for the Kuikuro, focusing on the explicit cosmological knowledge conveyed by them, on the nature of their adherence to a belief system, and on some mytho-ritual themes that, lacking a native exegesis, can only be understood through a comparative perspective.Sang de Lune: réflexions sur les esprits et les éclipses. En 2003, l’auteur a été témoin d’une éclipse partielle de la lune chez les Kuikuro (Haut-Xingu, Brésil), laquelle a été à l’origine d’une série d’actions rituelles. Ces rituels ont été filmés par une équipe de cinéastes kuikuro sous la forme d’un documentaire vidéo. S’appuyant sur cette expérience ethnographique et cinématographique, l’auteur propose une réflexion sur la signification de l’éclipse pour les Kuikuro, en se focalisant sur les connaissances cosmologiques oralement explicitées, la nature de leur adhésion à un système de croyances et quelques thèmes mythico-rituels qui, n’ayant pas une exégèse indigène, peuvent seulement être compris dans une perspective comparative.Sangue de Lua: reflexôes sobre espíritos e eclipses. Em 2003, o autor presenciou um eclipse parcial da lua na aldeia Kuikuro de Ipatse (Alto Xingu, Brasil), ao qual uma série de ações rituais se seguiram. Estas ações foram documentadas pela equipe de cinegrafistas indígenas que produziram um vídeo documentário sobre o evento. A partir dessa experiência etnográfica e cinematográfica, o autor busca refletir sobre o significado do eclipse para os Kuikuro, focalizando o conhecimento cosmológico verbalmente explicitado, a natureza da adesão a um sistema de crenças e alguns temas mítico-rituais que, não tendo uma exegese nativa, só podem ser compreendidos de uma perspectiva comparada
História Das Viagens à Lua: Um Percurso E Uma Apresentação De Man In The Moone De Francis Godwin
Resumo: A história das viagens à Lua inicia-se com Plutarco, com Sobre a face visível da órbita da Lua. No entanto, deste pioneiro, os posteriores escritores aproveitarão apenas a ida à Lua, visto que sua viagem é inteiramente regida pelo mote da religião grega. Somente serão inseridos nas viagens à Lua os elementos que hoje mais as enriquece: a sátira, encontrada em Icaromenipo e Narrativas Verdadeiras de Samósata, a crítica social, em The first Man in the Moonde H.G Wells, a visão distanciada do mundo e a consideração científica e astronômica, de Kepler emSomniuim e John Wilkins, em The Discovery of a World in the Moone. Francis Godwin, bispo anglicano autor deThe Man in the Moone (1638) herdará a tradição das viagens à Lua luciânicas, e na sua narrativa procurará oferecer um projeto político para o reinado de Jaime I, ficando no impasse entre a saudação dos tempos augustos do governo de Elisabete I e a reformulação do modelo de governo monárquico.Palavras-chave: viagem à lua, Francis Godwin, Stuart. Abstract: The history of the journeys to the Moon begins with Plutarch’s The visible face of the moon's orbit. However, from this pioneer, the later writers will use just going to the moon, since your trip is entirely governed by the motto of the Greek religion. Only be inserted in trips to the moon the elements that are today the most enriching, satire, found in Icaromenipo and TrueNarratives of Samosata, social criticism, in The First Man in the Moon of H. G. Wells, a detached view of the world and scientific consideration and astronomy in Kepler'sSomniuim and John Wilkins’s Discovery of a World in the Moone. Francis Godwin, Anglican Bishop author of theThe Man in the Moone (1638) inherits the Luciano tradition of journey to the Moon in its narrative and seek to offer a political project for the reign of James I, being in deadlock salute times august government of Elizabeth I and the reformulation of the model of monarchy.Keywords: journeys to the moon, Francis Godwin, Stuart.32
O que significava quando os sábios Hopi chamavam o chefe da lua de Qahopi?
This study uses the methodology of the history of scientific ideas to critically examine several aspects of an unpublished ethnographic discussion in which Alexander Stephen describes nineteenth-century Hopi understandings of the Moon. As is common in the interpretation of early texts, we draw insights into a text\u27s meaning from other writings by the author and his contemporaries.
The Moon Chief is a man—& is so called (Müriyawû Moñwi) but does not seem to be held in much veneration, in fact they say he is Kaho’pi = foolish. He has no house– although like the Sun, he carries the Moon on his arm, shield fashion; during his journey [across the sky].
Alexander M. Stephen, (1891-84, 18 Jan. 1894)
Here we draw especially on the ethnographic writings of Alexander Stephen to shed light on how he interpreted Hopi astronomical conceptions of the Sun and the Moon and how he understood the terms Moon Chief and qahopi.
First, we ask what kind of being did Stephen and his knowledgeable Hopi mean when they spoke of the Moon Chief? Next, we ask what does the word qahopi mean or, to use specific examples, what did a Hopi mean when they said that a man or a woman or the Moon Chief or a kind of behavior was qahopi? After having clarified the general meaning of qahopi and identified the nature of the Moon Chief as a spiritual being who carried the Moon across the sky, we ask what aspects of the Moon Chief \u27s behavior did Stephen\u27s Hopi experts consider to be qahopi? We then ask how, or whether, the qahopi aspects of the Moon Chief \u27s behavior influenced the form of the Hopi\u27s successful luni-solar calendar. Finally, what light does the fact that some knowledgeable Hopi considered the Moon Chief to lack a house and therefore to be qahopi shed on our understandings of Hopi astronomy and of the astronomy of the Hopi\u27s protohistoric Pueblo predecessors?
In this final section we draw on early studies of astronomies in prehistoric cultures to shed light on the astronomical concepts – principally the lunar standstills – that illuminate the Moon’s lack of a house in Hopi astronomy.Este estudio utiliza la metodología de la historia de las ideas científicas para examinar críticamente varios aspectos de una discusión etnográfica inédita en la que Alexander Stephen describe la comprensión hopi de la Luna en el siglo XIX. Como es común en la interpretación de textos antiguos, extraemos información sobre el significado de un texto de otros escritos del autor y sus contemporáneos.
El Jefe de la Luna es un hombre —y se llama así (Müriyawû Moñwi) pero no parece ser muy venerado, de hecho dicen que es Kaho’pi = tonto. No tiene casa— aunque como el Sol, lleva la Luna en su brazo, a modo de escudo; durante su viaje [a través del cielo]. Alexander M. Stephen, (1891-94, 18 de enero de 1894)
Aquí nos basamos especialmente en los escritos etnográficos de Alexander Stephen para arrojar luz sobre cómo interpretó las concepciones astronómicas Hopi del Sol y la Luna y cómo entendió los términos Moon Chief y qahopi.
En primer lugar, preguntamos a qué tipo de ser se referían Stephen y sus sabios Hopi cuando hablaban del Jefe de la Luna. A continuación, preguntamos qué significa la palabra qahopi o, para usar ejemplos específicos, ¿qué quiso decir un Hopi cuando dijo que un hombre o una mujer o el Jefe de la Luna o un tipo de comportamiento era qahopi? Después de haber aclarado el significado general de qahopi e identificado la naturaleza del Jefe de la Luna como un ser espiritual que llevaba la Luna a través del cielo, preguntamos qué aspectos del comportamiento del Jefe de la Luna consideraron qahopi los expertos Hopi de Stephen. Luego preguntamos cómo, o si, los aspectos qahopi del comportamiento del Jefe de la Luna influyeron en la forma del exitoso calendario luni-solar de los Hopi. Finalmente, ¿qué luz arroja sobre nuestra comprensión de la astronomía hopi y de la astronomía de los antecesores pueblo protohistóricos de los hopis el hecho de que algunos hopis informados consideraran que el Jefe de la Luna carecía de una casa y, por lo tanto, era qahopi?
En esta sección final nos basamos en estudios tempranos de astronomía en culturas prehistóricas para arrojar luz sobre los conceptos astronómicos, principalmente las paradas lunares, que iluminan la falta de una casa de la Luna en la astronomía Hopi.Este estudo utiliza a metodologia da história das ideias científicas para examinar criticamente vários aspectos de uma discussão etnográfica inédita, na qual Alexander Stephen descreve a compreensão Hopi da Lua no século XIX. Como é comum na interpretação de textos antigos, extraímos informações sobre o significado de um texto a partir de outros escritos do autor e de seus contemporâneos.
O Chefe da Lua é um homem – e é chamado assim (Müriyawû Moñwi), mas não parece ser muito venerado, de fato dizem que ele é Kaho’pi = tolo. Ele não tem casa— embora, como o Sol, ele carregue a Lua em seu braço, como um escudo; durante sua viagem [através do céu]. Alexander M. Stephen, (1891-94, 18 de janeiro de 1894)
Aqui nos baseamos especialmente nos escritos etnográficos de Alexander Stephen para lançar luz sobre como ele interpretou as concepções astronômicas Hopi do Sol e da Lua e como ele entendeu os termos Chefe da Lua e qahopi.
Em primeiro lugar, perguntamos que tipo de ser Stephen e seus sábios Hopi estavam se referindo quando falavam do Chefe da Lua. A seguir, perguntamos o que significa a palavra qahopi ou, para usar exemplos específicos, o que queria dizer um Hopi quando disse que um homem, uma mulher, o Chefe da Lua ou um tipo de comportamento era qahopi? Depois de esclarecer o significado geral de qahopi e identificar a natureza do Chefe da Lua como um ser espiritual que carregava a Lua através do céu, perguntamos quais aspectos do comportamento do Chefe da Lua os especialistas Hopi de Stephen consideraram qahopi. Em seguida, perguntamos como, ou se, os aspectos qahopi do comportamento do Chefe da Lua influenciaram a forma do bem-sucedido calendário luni-solar dos Hopi. Finalmente, que luz lança sobre nossa compreensão da astronomia Hopi e da astronomia dos ancestrais proto-históricos dos Hopi o fato de que alguns Hopi informados consideraram que o Chefe da Lua não tinha uma casa e, portanto, era qahopi?
Nesta seção final, baseamo-nos em estudos iniciais de astronomia em culturas pré-históricas para lançar luz sobre os conceitos astronômicos, principalmente as paradas lunares, que esclarecem a falta de uma casa da Lua na astronomia Hopi
A desire for history: Alain Touraine's sociology of work (1948-1973)
Este artigo buscará problematizar a primeira fase da produção teórica de Alain Touraine, que estende-se do seu estudo sobre as fábricas Renault (1948) à publicação de Production de la Société (1973). Durante essa fase, o autor desenvolveu inúmeros e extensos programas de pesquisas empíricas sobre o mundo da indústria e do trabalho tendo como uma de suas preocupações centrais a problemática da consciência operária. Destacaremos a importância dessas pesquisas, pouco conhecidas pelo público acadêmico, assim como a relação que Touraine estabeleceu com a América Latina - em particular o Brasil e o Chile - na formação de sua teoria sociológica. Visa-se mostrar que a teoria que o autor produziu nessa fase buscou responder à necessidade de uma suposta modernização da sociedade ocidental, fosse ela o centro ou a periferia1066596This article will seek to problematize the first phase of Alain Touraine's theoretical production, from his study on the Renault factories (1948) to the publication of Production de la Société (1973). During this phase, the author developed numerous and extensive empirical research programs on the world of industry and work, and had the problem of worker consciousness as one of his central concerns. We will emphasize the importance of these studies, little known by the academic public, as well as the relationship that Touraine established with Latin America, in particular Brazil and Chile, in the formation of his sociological theory. We will try to show that the theory that the author produced in this phase sought to respond the need for a supposed modernization of Western society, whether the center or the peripher
- …
