How can I use Amazon Comprehend in Lua? - lua

I want to use Amazon Comprehend to analyze some articles.
But there is no Lua SDK in the API Reference, neither Restful API. What should I do to use Amazon Comprehend in Lua code?

Option 1
Use the AWS SDK for C++ and Lua's C/C++ API to build bindings you can use from Lua.
Option 2
Hack together something using io.popen and the AWS CLI.

Related

How to setup cmusphinx with lua?

So I wanted to go about designing an add-on for a game I play, World of Warcraft and the game uses Lua scripts. The add-on involves speech recognition. I found a library that apparently adds voice recognition functionality to Lua.
Here is the link to the library: https://github.com/stuarch/speechtotxt-lua
The problem is, I have no idea how to set this up. It looks like they're using linux commands, but can I use this with Windows?
Also, do I have to put all these files in a certain place (pocketsphinx, sphinxbase) like a project folder, and then call them from Lua?
I'm sorry if this a noob question, I just can't find anything online about adding these libraries to Lua, and how to include the pocketsphinx and sphinx base. Any help would be greatly appreciated.
There is a difference between let's say running the full Lua interpreter under Windows and running a Lua interpreter as part of a software like WoW.
They usually restrict the use of Lua to what makes sense for the game. You don't have to reboot the system from within WoW, you also should not be able to manipulate files or even manipulate memory ....
Just imagine you install a WoW addon from the internet and it suddenly deletes all files on your computer. Whooops.
So they simply remove the standard Lua libraries like os, debug, io...
Of course they also don't want you to extend your power beyond those limitations by loading third party code. Hence they remove the require function.
So all you can do in WoW is run restricted Lua code and use the feature set they offer you.
Adding speach recognition to WoW is not possible through the embedded Lua interpreter.

The Garry's Mod Lua an API or a language itself?

Is the following documentation to an API or is it a language?
http://wiki.garrysmod.com/page/Main_Page
considering that this is an API:
http://docs.oxidemod.org/rust/#universal-hooks
I thought this might be too.
Lua is its own coding language. GLua is an API that uses Lua; see the GLua documentation for more details. In short, yes GLua is an API.

Most efficient way to integrate iOS push notifications?

I've heard of using Node.js w/symfony, using mamp/phpMyadmin, etc. Is there any easier way that involves less of a set up process such as a cocoa pod for server communication or something of the sort? Thanks!
You can implement a PHP script that uses a simple class like APNs PHP. It's really simple to use and you'll find full functioning sample code on google.
BUT you will have to write some code.

Corona sdk + xmpp

Does anyone know if there is some XMPP library I could use in Corona SDK, to build Android and iOS apps? I thought about verse library. But I am not sure if it is possible to use it in Corona SDK?
Verse is not pure Lua, and nor is Prosody (which is less impure), as they rely on LuaSocket and other extensions. Lua doesn't come with built-in network functionality. Corona does in fact include LuaSocket, so I'm guessing you can get Prosody to work with some effort, but it's not drop-in-and-go.

Implementing Thrift Server in iOS

How do you implement the server side in iOS using thrift? Using the thrift wiki, I was able to figure out how to write a client using thrift, but there seems to be no documentation in writing the server. Any example code would be greatly appreciated.
AFAIK You can't have the server in Objective C as only the client bindings are supported. You can however use the C/C++ server bindings. What is your use case? It seems odd to have the server on an iOS device.
Here is the link to the C++ usage docs.

Resources