News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Search Results
Post Author Forum Replies Views Posted []
  Thread: continue statement
Post: continue statement

Lua has a break statement, but no continue like is commonly found in other languages. There are several references to this out there if you do a google search. One basically says it's not essential,...
asafp MurgaLua - General 6 10,191 08-09-2008, 02:01 PM
  Thread: LuaSocket image
Post: RE: LuaSocket image

Yes, it works great now. I knew it had to be something simple.
asafp MurgaLua - General 7 12,746 08-01-2008, 02:31 AM
  Thread: LuaSocket image
Post: RE: LuaSocket image

have to put a "b" after the "w" for binary mode on file open. fh=io.open(filename,'wb')
asafp MurgaLua - General 7 12,746 07-31-2008, 07:01 AM
  Thread: LuaSocket image
Post: RE: LuaSocket image

[code]function GetFile(urlin,headin,redirin,fid) local http=require('socket.http') local url=require('socket.url') local ltn12 = require("ltn12") local mime = require("mime") local urlname=urlin ...
asafp MurgaLua - General 7 12,746 07-26-2008, 12:54 PM
  Thread: LuaSocket image
Post: RE: LuaSocket image

This is from a Windows ASP server to a Windows XP x86 machine. Downloads fine with curl. I was thinking it was something in the request header. Tried a few different things. Always same result. ...
asafp MurgaLua - General 7 12,746 07-26-2008, 12:07 AM
  Thread: LuaSocket image
Post: LuaSocket image

I'm using luasocket HTTP to download an image (.jpg). It downloads without any error, but when I view it, it's all garbled. I realize this is a bit off topic, but would appreciate any suggestions.
asafp MurgaLua - General 7 12,746 07-25-2008, 09:52 AM
  Thread: murgaLua.sleep
Post: RE: murgaLua.sleep

alien.platform serves the same purpose, but it yields 'linux' and murgaLua.getHostOsName() yields 'linuxStatic'.
asafp MurgaLua - General 5 8,435 07-20-2008, 07:14 AM
  Thread: murgaLua.sleep
Post: RE: murgaLua.sleep

murgaLua.getHostOsName() returns "linuxStatic" on Linux. Documentation states 'Returns the OS murgaLua was build for, currently one of "linux", "windows" or "macos"'.
asafp MurgaLua - General 5 8,435 07-19-2008, 09:58 AM
  Thread: C/Invoke
Post: RE: C/Invoke

Alien Rocks! Just tried a basic example and it worked and it's simple enough that even I can understand it.
asafp MurgaLua - General 2 5,386 07-19-2008, 05:57 AM
  Thread: murgaLua.sleep
Post: RE: murgaLua.sleep

It does work with 0.6.8 downloaded from http://www.murga-projects.com/files/
asafp MurgaLua - General 5 8,435 07-19-2008, 04:51 AM
  Thread: murgaLua.sleep
Post: RE: murgaLua.sleep

Linux version 0.6.6. Windows 0.6.0
asafp MurgaLua - General 5 8,435 07-18-2008, 10:05 PM
  Thread: murgaLua.sleep
Post: murgaLua.sleep

On WinDoh!s, I get "[string "murgaLua"]:172: attempt to call field 'sleepMilliseconds' (a nil value)" On Linux, it seems to work, but murgaLua.sleep(7) seems to sleep for 7 seconds and not 7 millis...
asafp MurgaLua - General 5 8,435 07-18-2008, 10:02 AM
  Thread: C/Invoke
Post: C/Invoke

[url]http://www.nongnu.org/cinvoke/lua.html[/url] This is a project that claims to let you call C code from lua and other languages. The doc is sketchy and there doesn't seem to be any recent bina...
asafp MurgaLua - General 2 5,386 07-18-2008, 04:35 AM
  Thread: the future direction of murgaLua revisited
Post: RE: the future direction of murgaLua revisited

If it means anything, I'd like to say I appreciate all the effort John has put into this extremely powerful and yet tiny product. And znarf, I'd rather have my ass caned in Singapore than have to c...
asafp MurgaLua - General 4 6,739 07-10-2008, 01:15 PM
  Thread: concatenate nil
Post: RE: concatenate nil

I looked at metatables and couldn't get them to do anything right. I did read a lot about how great and wonderful and powerful and cool metatables are. I must be a moron as I couldn't get a single e...
asafp MurgaLua - General 1 5,942 07-08-2008, 10:43 AM
  Thread: concatenate nil
Post: concatenate nil

Most of you know that lua throws a conniption when you try to concatenate a nil value. Often, it's not a big deal to check for a nil value first. But I've got bitten in the rear end more than once w...
asafp MurgaLua - General 1 5,942 07-07-2008, 11:01 PM
  Thread: luasocket help
Post: RE: luasocket help

Problem seems to be in Privoxy or luasocket and not murgaLua. Some sites seem to work ok and others don't.
asafp MurgaLua - General 5 9,623 06-30-2008, 09:57 AM
  Thread: luasocket help
Post: RE: luasocket help

Does murgaLua contain the latest version of luasocket? Is there a way I can tell? According to this link, luasocket 2.0 (beta 3) fixes a bug where "http.PROXY wasn't working" and this is the probl...
asafp MurgaLua - General 5 9,623 06-30-2008, 04:58 AM
  Thread: os.execute
Post: RE: os.execute

Thanks mikshaw. That worked like a charm.
asafp MurgaLua - General 3 6,737 06-02-2008, 07:44 AM
  Thread: os.execute
Post: os.execute

Is there a way to run a system command and receive the standard output in a variable? os.execute returns only a status code.
asafp MurgaLua - General 3 6,737 05-31-2008, 11:30 AM