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

Tag: lua

LUA – How to build a custom tool from the Premake build script?

I use protocol buffers for data serialization in my C application. I want to add a call to the protoc code generator in my premake build script (to ensure that the generated class The latest state,

October 5, 2021By Simo Lua build, customize, How, lua, Premake, run, Script, toolLeave a Comment

Lua saves the string to the file

I started to use Lua to go to school, I want to know if it is possible to save the string to a txt file?

That is

I have a string called shroom, which is equal to mushy.

I am in th

October 5, 2021By Simo Lua file, lua, saving, string, willLeave a Comment

Lua gets the file name according to the path

require “lfs”

function dirpath(path)
for file in lfs.dir(path) < span style="color: #0000ff;">do — lfs.dir according to Path to get the file name under the path
if file ~= ‘.’ and file ~= ‘

October 5, 2021By Simo Lua according to, acquisition, File Name, lua, pathLeave a Comment

LUA variable lookup and global variable

1. Speaking of hello world When the print(“Hello World!”) is executed, it is obvious that a specific function of printing a string to the standard output is required. So the first thing involved he

October 5, 2021By Simo Lua Global, look, lua, variableLeave a Comment

How to pass the lua function to the C function and perform Lua functions multiple times?

What I want to do is create a function that will iterate some objects and call a function for each function. I am using BlitzMax, not C, but other than that , Because it has a complete Lua C functi

October 5, 2021By Simo Lua execution, function, How to, lua, multiple, transferLeave a Comment

Lua String.upper does not use stress characters?

I am trying to convert some French text to uppercase letters in lua, it will not convert accented characters. Do you know why?

Test script:

print(‘échelle’)
print(string.upper(‘échelle

October 5, 2021By Simo Lua Characters, do not make, lua, Sound, string, STRING.UPPER, UpperLeave a Comment

Rawset function in Lua

The rawset function in Lua is generally to pass the table, index and value, but I encountered this code:

rawset(tbl,name,()) and

rawset(tbl,name, function() end) Rawset The function ret

October 5, 2021By Simo Lua function, lua, Rawset, ZhongLeave a Comment

Find a random number in Lua

I tried to use lua to generate a random number, but it just spit out the lowest value. For example, if I run:

x = math.random(17,41)
print(x) It returns:

17 what happened?

You c

October 5, 2021By Simo Lua Find, in, lua, one, random numberLeave a Comment

How do I check if a matching text is found in the string in Lua?

If at least one specific matching text is found in the text string, I need to make the condition true, for example:

str = “This is some text containing the word tiger.”
if string.match(str, “

October 5, 2021By Simo Lua Find, How to check, in, in the string, lua, match, Text, whetherLeave a Comment

How to call a function in C DLL from Lua?

I have a DLL written in C. It is legacy code and the source code cannot be modified. I want to be able to call some functions inside the DLL from Lua.

— My Lua File
include(myCppDll.dll)
fun

October 5, 2021By Simo Lua call, DLL, function, How, lua, middleLeave a Comment

Posts navigation

Page 1 … 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