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

Category: Language

Programming language is a formal language used to define computer programs. It is a standardized communication technique used to issue instructions to a computer. A computer language allows programmers to accurately define the data that the computer needs to use, and precisely define the actions that should be taken in different situations.

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

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

Delphi – Read from the log file changed per second

I need to read from a .log file that is constantly changing from another application. (Adding more data often)

So I started from the beginning:

var
LogFile: TStrings;
Stream: TStream;

October 5, 2021By Simo Delphi Delphi, file, log, reading, transformationLeave a Comment

Pointer – How to create a pointer to existing data using Luajit FFI?

I know there are some examples of using LuaJIT FFI to create pointers, but most of them do not point to existing data. One example is:
How to pass a pointer to LuaJIT ffi to be used as out argume

October 5, 2021By Simo Lua creation, data, Existing, FFI, how to use, Luajit, pointer, pointers, pointingLeave 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

Another method of the class is called Lua

When I try to call a method of another class from another class, it will display an error message,

Attempt to call field’LoadShift’ (a nil value) This is my code,
loginpage1.lua

local L

October 5, 2021By Simo Lua Another, called Lua, class, methodLeave a Comment

Posts navigation

Page 1 … Page 37 Page 38 Page 39 … Page 73
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