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: Function to return the current directory
Post: RE: Function to return the current directory

As I said I don't have any idea if it works on Windows or Mac, but it *should* do the same on Linux and MacOS...grab everything from the beginning of a string to the final slash (i haven't thought to ...
mikshaw MurgaLua - General 24 45,641 07-17-2007, 11:34 PM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

Soooo.....does it work? Anyone have any feedback on whether (and how) it can be made better, more efficient/portable? The dirname variable on my local copy has been changed to 'd' to avoid confusion...
mikshaw MurgaLua - General 24 45,641 07-17-2007, 03:32 AM
  Thread: Browser Interaction with URLs
Post: RE: Browser Interaction with URLs

I don't know about the "best" way, but I would recommend using os.execute() along with a user-defined variable. If the variable is nil, or is set incorrectly, inform the user that it needs to be chang...
mikshaw MurgaLua - General 9 12,306 07-17-2007, 01:13 AM
  Thread: (very) basic slideshow
Post: RE: (very) basic slideshow

current state is still not ideal, but it handles one or two of the issues the previous it had. I would still love to be able to test for various filename extensions using regualr expressions rather t...
mikshaw MurgaLua - General 9 22,137 07-16-2007, 12:06 PM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

Here's one possible solution. It works in Unix systems, but I think a forward slash will not translate to Windows. The gsub function will probably need to be modified or replaced for something more un...
mikshaw MurgaLua - General 24 45,641 07-16-2007, 03:29 AM
  Thread: io.write() vs. my_output:write()
Post: RE: io.write() vs. my_output:write()

I see. I tried redirecting stderr to stdout thinking that maybe print() was being sent to stderr instead. It makes sense that print() would be a special case. [quote]This is great when used as a d...
mikshaw MurgaLua - General 4 7,143 07-16-2007, 02:26 AM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

I have had the same desire, and so far have not found a reasonable solution. For an application that would be targeted to Linux systems, I have wrapped up the lua script inside a shell script, having...
mikshaw MurgaLua - General 24 45,641 07-16-2007, 02:12 AM
  Thread: Fonts in murgaLua (or FLTK)
Post: RE: Fonts in murgaLua (or FLTK)

Unless you have a truetype or opentype version of fixed, I don't know that it would work with the standard xft-enabled MurgaLua. Hopefully this is not the case, and I just have more learning and exper...
mikshaw MurgaLua - General 8 11,739 07-15-2007, 04:33 PM
  Thread: io.write() vs. my_output:write()
Post: RE: io.write() vs. my_output:write()

Thanks for the explanation. I had a feeling that it was opening a standard output, but some tests made me wonder. For example, if you do this: [code]io.output("filename.txt") print("some text")[/co...
mikshaw MurgaLua - General 4 7,143 07-15-2007, 04:13 PM
  Thread: Fonts in murgaLua (or FLTK)
Post: RE: Fonts in murgaLua (or FLTK)

Both of those examples are in murgaLua syntax, so should work as is. They both change the built-in courier font constant to your desired font (4 is equivalent to fltk.FL_COURIER). Then to use it, jus...
mikshaw MurgaLua - General 8 11,739 07-15-2007, 09:05 AM
Question Thread: io.write() vs. my_output:write()
Post: io.write() vs. my_output:write()

I wonder if someone could help me understand when to choose one over the other. Consider the following: [code]my_output=io.open("filename.txt","w+") if my_output then my_output:write("some stuff"...
mikshaw MurgaLua - General 4 7,143 07-15-2007, 04:19 AM
  Thread: Does Luac work ?
Post: RE: Does Luac work ?

[quote]Lua obfuscates pretty well[/quote]Do you know of any available examples to see? I'm not one to use obfuscation myself, but I find the concept interesting. [quote]YES, it is true...sometimes ...
mikshaw MurgaLua - General 5 8,350 07-13-2007, 11:10 PM
  Thread: Does Luac work ?
Post: RE: Does Luac work ?

I was waiting to see if someone else would respond to this, since I honestly don't know whether or not I understand your question. It sounds like luac might be similar to LuaJIT, which was mentioned h...
mikshaw MurgaLua - General 5 8,350 07-13-2007, 01:35 PM
  Thread: [WIP] MurgaLua Reference Tool
Post: RE: [WIP] MurgaLua Reference Tool - a little help?

[quote]a list of relevant links are on one side of the page and the content that it links to pops up on the other side of the page. [/quote]That sounds like frames, which I have grown to dislike great...
mikshaw MurgaLua - General 109 1,257,291 07-13-2007, 05:40 AM
  Thread: [WIP] MurgaLua Reference Tool
Post: RE: [WIP] MurgaLua Reference Tool - a little help?

That's not a bad idea. I'm not sure what the term "indexed HTML" means, but it could at least export text files with little trouble. Any formatting to other types of text could be added at any time in...
mikshaw MurgaLua - General 109 1,257,291 07-13-2007, 01:59 AM
  Thread: [WIP] MurgaLua Reference Tool
Post: RE: [WIP] MurgaLua Reference Tool - a little help?

Thank you. There is much in DSL that has greatly impressed me. The Lua-FLTK reference package was quite a bit different than this one, particularly in the sense that this one will be read-only rather...
mikshaw MurgaLua - General 109 1,257,291 07-12-2007, 08:18 AM
  Thread: [WIP] MurgaLua Reference Tool
Post: RE: [WIP] MurgaLua Reference Tool - a little help?

Wow, that's really cool. I had no idea there were so many drawing functions available. As far as the links go, I just ran it through sed to remove all instances of the leading directory path, saved...
mikshaw MurgaLua - General 109 1,257,291 07-11-2007, 03:22 PM
  Thread: Fonts in murgaLua (or FLTK)
Post: RE: Fonts in murgaLua (or FLTK)

After messing with this a little more, it does appear to work using the font name (without the .ttf extension) for some fonts. The truetype fonts that were installed with my distribution do not seem ...
mikshaw MurgaLua - General 8 11,739 07-11-2007, 08:44 AM
  Thread: [WIP] MurgaLua Reference Tool
Post: RE: [WIP] MurgaLua Reference Tool - a little help?

[quote]You can definately use anything I post.[/quote]Thank you =o) [quote]My work is not 'well commented' because I don't know what I'm doing well enough to explain it someone else.[/quote]Notice ...
mikshaw MurgaLua - General 109 1,257,291 07-11-2007, 01:56 AM
Smile Thread: [WIP] MurgaLua Reference Tool
Post: [WIP] MurgaLua Reference Tool

Latest update: 1 April 2008 In the Days Before MurgaLua [last year =o)], I had built a gui tool for Lua-FLTK reference. It was designed to display various types of FLTK widgets along with the scr...
mikshaw MurgaLua - General 109 1,257,291 07-10-2007, 05:00 PM