Questions tagged [lua]

Lua stands out as a versatile, rapid, and compact scripting language that can be easily integrated into various applications. Known for its dynamic typing and ability to interpret bytecode on the fly, Lua also includes automatic garbage collection. Its efficiency is a key factor in its popularity among those involved in machine learning. Lua is commonly recognized as an "extensible extension language" due to its flexibility and ease of customization.

What is the best way to send a JSON string from a Corona SDK app to a PHP server?

I'm in the process of building an app with Corona SDK. I'm facing an issue where I am sending null values to a mySQL server even though the variable on the app side has a value in the form of a json string. The php code works fine for entering data into ...

The Corona Simulator ceased to function properly once it established a connection with the server

Having an issue with two server files when working with the Corona simulator. One file is functioning properly while the other isn't. I am struggling to identify the difference between these two files. Below is the code for both servers: Non-working ...

Need help with redirecting after a form post using the scrapy_splash package?

I am working with Python, Scrapy, Splash, and the scrapy_splash package to extract data from a website. After successfully logging in using the SplashRequest object in scrapy_splash, I obtain a cookie that grants me access to a portal page. Everything has ...

Utilize the cjson Lua module in Openresty to handle JSON parsing with omitted fields

My goal is to parse a JSON payload sent through a POST request to an NGINX/Openresty location. I achieved this by utilizing Openresty's content_by_lua_block along with its cjson module in the following manner: # other locations above location /test { ...

What is the best way to interpret a .lua file that contains various tables?

Greetings, I am new to Lua and I have a task of converting a .lua file into JSON format. I successfully achieved this with a file containing a single table structured like this: return { ["Thing"] = { ["SubThing"] = {} } } However, I'm facing diffic ...