Lua - Part 5

https://github.com/slact/lua-feedparser

Feb 9, 2018:
luarocks install feedparser

will use feedparser to parse rss and atom files. it requires the lxp or lua expat module to be installed too, which i did above.


https://learnxinyminutes.com/docs/yaml/


http://lua-users.org/wiki/SplitJoin

Arduino starter kits

https://www.arduino.cc/

https://www.amazon.com/Arduino-Starter-Kit-English-Official/dp/B009UKZV0A

https://www.amazon.com/Arduino-Ultimate-Starter-Circuit-Learning/dp/B00BT0NDB8

https://www.makeuseof.com/tag/4-best-starter-kits-arduino-beginners/

Hardware-related links

http://sawv.org/2017/07/04/hardwarerelated-programming-links.html

https://www.elecrow.com/wiki/index.php?title=ESP8266_IOT_Board(Arduino_IDE_or_NodeMCU_Lua_Programming)

https://stackoverflow.com/questions/31669507/how-do-i-run-lua-script-using-arduino-ide-using-an-arduino-uno-board-as-the-s

http://www.instructables.com/id/How-to-Program-NodeMCU-on-Arduino-IDE/

http://www.instructables.com/id/Get-Started-with-ESP8266-Using-AT-Commands-NodeMCU/

RegEx

Lua's builtin string.match is okay for light work, but I'll occasionally need more Perl-like power.

Feb 14, 2018 on my DO Droplet:

Ubuntu Linux:

apt-get update
apt-get install libpcre3 libpcre3-dev

Lua:

luarocks install lrexlib-pcre

https://www.cyberciti.biz/faq/debian-ubuntu-linux-install-libpcre3-dev/

I need to compile few application and I need Perl 5 Compatible Regular Expression Library (PCRE). Under CentOS I can use a package called pcre-devel, but Debian do not have the same. How do I install pcre-devel under Debian / Ubuntu Linux?

Perl-compatible regular expression library. PCRE has its own native API, but a set of “wrapper” functions that are based on the POSIX API are also supplied in the library libpcreposix. Note that this just provides a POSIX calling interface to PCRE: the regular expressions themselves still follow Perl syntax and semantics. The header file for the POSIX-style functions is called pcreposix.h. To install PCRE, type thy following command:

https://luarocks.org/modules/rrt/lrexlib-pcre

http://rrthomas.github.io/lrexlib/

http://rrthomas.github.io/lrexlib/manual.html

https://www.geek.co.il/~mooffie/mc-lua/docs/html/modules/regex.html

HTML Entities

Feb 15, 2018

luarocks install html-entities

https://luarocks.org/modules/tiagodanin/html-entities

https://tiagodanin.github.io/htmlEntities-for-lua/#fh5co-main

StdLib

Something to consider. I'll probably need this. Have not installed it yet as of Feb 15, 2018. Looks interesting.

https://luarocks.org/modules/gvvaughan/stdlib
https://github.com/lua-stdlib/lua-stdlib/
http://lua-stdlib.github.io/lua-stdlib/

someone else's helper functions for lists:
https://github.com/ggcrunchy/tektite_core/blob/def1371076b3f2bf5180a9aad4c9bd421796c3b1/array/funcs.lua

OOP

https://kallanreed.wordpress.com/2015/03/15/class-modules-in-lua/

http://hisham.hm/2014/01/02/how-to-write-lua-modules-in-a-post-module-world/

https://blog.separateconcerns.com/2014-01-03-lua-module-policy.html

http://lua-users.org/wiki/ModulesTutorial

http://lua-users.org/wiki/ObjectOrientedProgramming

Meta tables and metamethods

https://www.lua.org/pil/13.3.html

March 2018

"Urn: A Lisp implementation for Lua"
http://urn-lang.com
https://news.ycombinator.com/item?id=16566825

March 21, 2018

CGI Lua:
https://luarocks.org/modules/tomasguisasola/cgilua

luarocks install cgilua

installed cgilua-5.2.1-1 on Mar 21.

https://keplerproject.github.io/cgilua/
https://keplerproject.github.io/cgilua/manual.html
https://github.com/keplerproject/cgilua


web projects to view in the future.
http://www.keplerproject.org

did this on mar 21, 2018:

luarocks install wsapi-xavante

and this:

luarocks install wsapi

trying to resolve an error in cgilua.

/usr/local/share/lua/5.3/cgilua.lua:93: attempt to index a nil value (upvalue 'SAPI')

This guy had the same error 4 months ago, but his post received no replies.

https://stackoverflow.com/questions/46919889/sapi-is-nil-on-cgilua-lua93

tried installing this but it won't build because of fcgi .h file missing. https://luarocks.org/modules/mascarenhas/wsapi-fcgi
i may need https://github.com/eatonphil/fastcgi-development-kit if i want to continue with this crap.

Xavante is a webserver written in pure Lua. To use the Xavante connector, install the "wsapi-xavante" rock