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

Month: October 2021

Pit in the regular expression in Lua

When I use OpenResty to write Lua code, I need to use Lua regular expressions, where the pattern is like this,

–Water heater setting time
local s = ’12:33′
local pattern = “(20|21|22|23|[01

October 5, 2021By Simo Lua expression, lua, Medium, pit, regularLeave a Comment

Error handling – Lua error handling

I am new to lua.

I tried to use
http://keplerproject.github.io/luafilesystem/examples.html< br>and it throws an error on the inaccessible directory.

This seems to be caused by luaL_erro

October 5, 2021By Simo Lua error, lua, ProcessingLeave a Comment

Extend the library class with your own method in Delphi Pascal

I would like to know if there is a way to add custom methods for existing/included class components in Delphi Pascal.

I want to use it to look like Rotate StringGrid like this:

StringGr

October 5, 2021By Simo DelphiLeave a Comment

Lua – ‘End’ expect (close the ‘function’), don’t miss the ‘end’

I received an error saying that the “end” is missing, but I looked at the entire code without seeing it.

local Grid = {}
Grid.__index = Grid
function Grid.new(w, h) do
t = {}
setmetatable(t

October 5, 2021By Simo Lua close, don't, end, expected, function, lua, miss, nearbyLeave a Comment

Get Lua runtime error in the script

I don’t know how to debug scripts effectively. I need stack output like Python, but Lua/C doesn’t have this by default. I don’t know how to enable it. Or simply put , How to get the error output fr

October 5, 2021By Simo Lua acquired, lua, Medium, runtime error, ScriptLeave a Comment

Lua 4.0 Unconfirmed variables and conditional statements

This code confuses me.

print(gogo)
if (gogo == true) then
print(“yes”)
elseif (gogo == false) then
print(“no”)
end Why gogo evaluates to true ? Shouldn’t it produce an error?

print(tr

October 5, 2021By Simo Lua 4.0, condition, lua, no declaration, statement, variableLeave a Comment

Delphi: Can’t find the field ‘false’. Only happened to my computer

I have a TCustomClientDataSet (in memory), which is used to perform some filtering in a Delphi program.

My filtering code is as follows:

CDSFilteredGroup.Filter :=’ACP_type = 1 AND ACP_

October 5, 2021By Simo Delphi Computer, Delphi, False, Field, found, my, occurrenceLeave a Comment

LUA can support uncounting method calls?

I am using Lua as the data description language for my C application. I have a bunch of C classes that are bound to Lua using SLB 2.0. I have binding methods such as’SetPos ‘Or’SetName’. I use a ta

October 5, 2021By Simo Lua call, can, case sensitive, lua, method, supportLeave a Comment

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

Sort Array in Lua

Hi, I am very new to Lua, I need to sort the array in Lua.

So I have the following code

local distances = {2,3,1}
table.sort(distances) Now I understand

>distance[1 ] –> 1
>Distan

October 5, 2021By Simo Lua array, middle, Of the arrayLeave a Comment

Posts navigation

Page 1 … Page 290 Page 291 Page 292 … Page 369
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