Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: lua

OpenResty Lua-Resty-Redis Package

I searched for other people’s package code, and it feels not elegant enough, mainly because the timing of calling set_keepalive is not good.
The code below myself uses coroutine, and set_keepalive

October 5, 2021By Simo Lua lua, OpenResty, package, Redis, RestyLeave a Comment

Lua – reading documentation to an array

Sorry, I am still learning Lua. You can correct me, why the data in the file is not read line by line?

This is my sample data in the file points.txt:

lexxo:30:1
rey:40: 2
lion:40:2
prin

October 5, 2021By Simo Lua array, Document, lua, middle, progressive, readingLeave a Comment

Lua – Drag Physical Objects in Corona SDK

I am trying to drag a dynamic object with gravity = 0,0 in my scene. I have a dynamic square and a static image, but when on the image There is a little power when dragging the square, but it can e

October 5, 2021By Simo Lua Corona, Drag, lua, Objects, Physics, SDKLeave a Comment

LUA foundation

https://www.runoob.com/lua/lua-functions.html

Single line–

Multiple lines

–[[

]]

This is the simplest, only the value nil belongs to this class, which means an inval

October 5, 2021By Simo Lua foundation, luaLeave a Comment

LUA script date after writing

I am new to lua scripting. I have a startDate (“03-05-2014” as “dd-mm-yyyy”) and a span of days (2) anyone Can you help me how to get endDate based on startDate and span?

Example startDate sp

October 5, 2021By Simo Lua Date, days, lua, Script, writeLeave a Comment

Pass Lua scripts from C to Lua

I want to pass a Lua script (code that can be processed by the Lua interpreter) from C and return the result.

I looked at it on the Internet, but I found There are not any examples that can h

October 5, 2021By Simo Lua Delivery, lua, ScriptLeave a Comment

OOP – Lua – Try calling method ‘new’ (zero value)

Lua newbie, trying to figure out how to use middleclass library for OOP

main.lua:

Person.lua:

module(…, package.seeall)require’middleclass’
Person = class(‘Person’);
function Pe

October 5, 2021By Simo Lua call, lua, method, New, OOP, try, zero valueLeave a Comment

Type – LUA table in the table shows zero

I am learning the code in Lua and encountered a problem with my code. This is the first time I use a table. Whenever I call a specific table in another table, My type is nil, and the print table do

October 5, 2021By Simo Lua display, lua, table, type, zeroLeave a Comment

Use Lua to define NPC behavior in the C gaming engine

I am using Lua to perform NPC behavior in C game engine. I encountered some problems during the design process.

For those that require multiple frames to execute For everything, I want to use

October 5, 2021By Simo Lua behavior, Central, Defining, Engine, game, lua, NPC, UsingLeave a Comment

Lua traversal folder

1. Traverse all lua files under the file, This can be changed, only use luaforwindow to execute

1. Traverse all the lua files under the file, this can be changed, you need to use luaforwindow

October 5, 2021By Simo Lua folder, lua, traversalLeave a Comment

Posts navigation

Page 1 … Page 6 Page 7 Page 8 Page 9
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress