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: 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,631 07-26-2008, 12:07 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,631 07-26-2008, 12:54 PM
  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,631 07-31-2008, 07:01 AM
  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,631 08-01-2008, 02:31 AM
  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,084 08-09-2008, 02:01 PM
  Thread: continue statement
Post: RE: continue statement

Thanks, John. murgaLua rocks!
asafp MurgaLua - General 6 10,084 08-12-2008, 10:41 AM
  Thread: continue statement
Post: RE: continue statement

Say you have a loop where you are reading through a database. Some records require extensive processing, some minimal processing, and some no processing at all. The conditions for checking which lev...
asafp MurgaLua - General 6 10,084 08-15-2008, 03:32 PM
  Thread: luasocket help
Post: luasocket help

I'm trying to do a HTTP POST and can't figure out how to send the postdata. Doc http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/http.html states "source: simple LTN12 source to provi...
asafp MurgaLua - General 5 9,549 02-14-2008, 02:06 PM
  Thread: luasocket help
Post: RE: luasocket help

ltn12.source.string(postdata) syntax did seem to work. thanx. However, in order to get the results I want, I need to be able to handle cookies. Doesn't seem to be much doc or examples out there. ...
asafp MurgaLua - General 5 9,549 02-15-2008, 03:13 AM
  Thread: luasocket help
Post: RE: luasocket help

I have built a rudimentary cookie parser intended for use in client side HTTP applications using luasocket. It has met my needs for some simple applications. It lacks handling of expires, domain, an...
asafp MurgaLua - General 5 9,549 02-18-2008, 04:55 AM
  Thread: Mac and MurgaLua
Post: Mac and MurgaLua

Pardon my ignorance. I've never used an Apple computer in my life. I have someone who needs a script to run on Mac OS X. Will murgalua run there? Are there any installation issues with libraries l...
asafp MurgaLua - General 5 9,003 03-14-2008, 01:28 PM
  Thread: Mac and MurgaLua
Post: RE: Mac and MurgaLua

That's fantastic. Thanks. Just out of curiosity, does anyone know if Python runs on Mac? Are there installation issues with it? What scripting languages are commonly used on Mac?
asafp MurgaLua - General 5 9,003 03-14-2008, 02:44 PM
  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,549 06-30-2008, 04:58 AM
  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,549 06-30-2008, 09:57 AM
  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,378 07-18-2008, 10:02 AM
  Thread: murgaLua.sleep
Post: RE: murgaLua.sleep

Linux version 0.6.6. Windows 0.6.0
asafp MurgaLua - General 5 8,378 07-18-2008, 10:05 PM
  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,378 07-19-2008, 04:51 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,378 07-19-2008, 09:58 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,378 07-20-2008, 07:14 AM
  Thread: User Prompt
Post: User Prompt

Does anyone know how to prompt a user for input from a console application? Ideally, it would be able to mask the input for a password type field.
asafp MurgaLua - General 4 9,342 02-27-2008, 08:04 AM