Is it possible to interact with your computer through Lua? [closed] - lua

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I was wondering if it is possible to interact with your computer through Lua (Through SciTE or Sublime Text, I suppose...)? For instance, can you play a .mp3, or open a file with Lua?

Yes, through the use of the operating system library os.
You can use os.execute([command]) to run any command from the host operating system's shell (think terminal or command prompt).
There's more information on using this library in the Lua online reference manual.

Related

How to use bazel build a custom toolchain use a compiler installed at custom location? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
According to the wiki https://github.com/bazelbuild/bazel/wiki/Building-with-a-custom-toolchain, I can use bazel build hello.cc code. Now I have Installed the croos-tool compiler in local disk. So I want to create a custom CROSSTOOL use new_local_repository. What should I do? Thanks!
If you want to write a custom CROSSTOOL, and you have compiler/linker already installed, just follow the instructions in https://github.com/bazelbuild/bazel/wiki/Building-with-a-custom-toolchain and when you're done, you can use your crosstool by e.g. bazel build --crosstool_top=//tools/my_custom_crosstool:toolchain //src:hello.

Erlang run time environment [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can someone explain what is Erlang run time environment and what dose it contain? Dose it contain erlang VM, what else ?
Regards
MM
The Erlang runtime environment in particular contains the Erlang virtual machine, the kernel and the standard libraries.
Erlang in general provides a lot more tools (compiler, debugger, monitoring tools etc.).
For details, please have a look at the documentation at: http://www1.erlang.org/documentation/doc-4.8.2/doc/system_architecture_intro/sys_arch_intro.html

Lua related query i need solved [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
so I have just bought the PIL 3 (programming in Lua 3rd Edition). and have begun reading the eBook. however I am abit confused on the whole interpreter idea. how do I install the editor? I am talking about what do I install and what do I do with them.
An interpreter is simple a program that runs the source code usually used to refer to the interactive version of this functionality. In this case the environment you get when you run lua from a command prompt.
As to editing lua code there is no dedicated editor, no built-in IDE, no default experience of that sort. You can, and people do, write your code in anything you want so long as it can save it to a file so that you can run it later.

How to encrypt Lua codes [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I want to protect my Lua codes on my project, I'm using Corona SDK.
I saw some lua files being obfuscated like this one
https://github.com/ChartBoost/corona-sdk/blob/master/ChartboostSDK/chartboost.lua
Is there any application to protect my source code?
The file you mentioned is not encrypted: it's just precompiled bytecode for Lua 5.1. It can be read with luac -l -p (not in source form but in VM instructions, which are probably enough to reconstruct the source). If you want to reconstruct the source, try LuaDec for Lua 5.1.
You can precompile your code using luac or string.dump.

Can I run Sublime Text 2 from SSH on Ubuntu? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm trying to find the best way I can program using my iPad, I'm relatively new to ubuntu and I don't no it's limitations over SSH but I was curious to know if it were possible to install a text editor for instance Sublime Text 2 and open it using a SSH terminal from my iPad using iSSH.
Thanks a lot
iSSH ($9.99 on the US store) has an X server built in. You can install Sublime on your Ubuntu box and use iSSH to access it.

Resources