Hopbot log for 2008-03-03 - Helma IRC channel: #helma on irc.freenode.net

2008-03-03:

[14:44] <To> hey
[14:44] <zumbrunn> hi
[14:46] <To> I'm trying to do an ftp list checker tool
[14:46] <To> do I have to install Helma to use the ftp funtions?
[14:46] <To> guess the ftp funtions are not available in javascript
[14:47] <To> *functions
[14:47] <zumbrunn> right
[14:47] <zumbrunn> these are for *server-side* javascript
[14:47] <zumbrunn> if you are talking about these here...
[14:47] <zumbrunn> http://helma.zumbrunn.com/reference/helma.Ftp.html
[14:48] <To> yep thats it
[14:48] <zumbrunn> helma runs on the server-side
[14:48] <To> ok
[14:49] <To> this is just a local tool
[14:49] <zumbrunn> instead of php or whatever you would otherwise use
[14:49] <zumbrunn> as a local tool it would work as well, of course
[14:49] <zumbrunn> you could build a local web app
[14:49] <To> yes thats what im trying to do
[14:49] <zumbrunn> but it's not for *client-side* javascript
[14:50] <To> with php I think it would be more complicated
[14:50] <zumbrunn> you would need to download and run helma on your local machine
[14:50] <zumbrunn> don't know about php
[14:51] <To> if someone wants to use the tool then he has to install helma too
[14:53] <To> how does Helma works? just install and use the functions?
[14:57] <zumbrunn> what's your goal? a local app?
[14:59] <To> yep just do a local app
[15:00] <zumbrunn> in combination with something like prism or air you could make that work, maybe
[15:00] <zumbrunn> or do you already have a specific web app container in mind?
[15:01] <zumbrunn> (yes, the user would need to have a local copy of helma)
[15:02] <To> Its not to be much complicated, its build with html and javascript
[15:02] <zumbrunn> helma would endup being basically a part of the app that the user installs
[15:02] <zumbrunn> so, just local html pages that the user drags to a web browser?
[15:02] <To> and I missed the ftp functions...
[15:03] <zumbrunn> then you wouldn't be able to use helma
[15:03] <To> not draging.. I have a list of ftp and I need to check each of them
[15:03] <zumbrunn> somehow the use needs to have a local copy of helma and it needs to be running
[15:04] <zumbrunn> well, how do you invoke your javascript code?
[15:04] <To> :\
[15:05] <To> how?? in the html with funtion_something()
[15:06] <zumbrunn> and how do you invoke the html?
[15:06] <To> lol
[15:06] <zumbrunn> ;-)
[15:06] <To> run it
[15:06] <To> index.html
[15:06] <To> enter!
[15:06] <To> whats your point?
[15:06] <zumbrunn> double click the local html or drag it to the browser, I guess
[15:07] <To> just doubleclick
[15:07] <zumbrunn> right, ok :-)
[15:07] <zumbrunn> yeah, then it won't work
[15:07] <zumbrunn> unless you have some way to make sure helma is there and running
[15:09] <To> strange... I have to drag the page?
[15:09] <zumbrunn> lol :-)
[15:09] <zumbrunn> no, either way it won't work
[15:10] <To> why?
[15:10] <zumbrunn> just running the local html page inside a local web browser doesn't give you access to the helma environment
[15:10] <zumbrunn> you would need to run helma
[15:11] <zumbrunn> which would basically provide you with a local server
[15:11] <zumbrunn> running for example on http://localhost:8080/
[15:12] <To> ok I have it running now
[15:12] <To> how do I access the environment and functions?
[15:15] <zumbrunn> inside the helma directory you have an apps.properties file, right?
[15:16] <To> yes
[15:16] <zumbrunn> edit that and add the name of your new app to it on a new line
[15:16] <zumbrunn> anything you like
[15:17] <zumbrunn> like "mytest" or whatever
[15:17] <zumbrunn> after you save the change you should see an empty directory with that name inside of ./helma/apps
[15:18] <zumbrunn> that's where you would put the code files that use the ftp functions
[15:18] <zumbrunn> do you see the empty directory of you "mytest" or whatever app?
[15:19] <zumbrunn> *your* "mytest" or whatever app
[15:19] <To> no...
[15:20] <To> let me try again
[15:20] <zumbrunn> maybe you have to stop and start helma
[15:20] <zumbrunn> you shouldn't need to, though
[15:21] <To> hmm just have to write "mytest" anywere in the file apps.properties?
[15:21] <zumbrunn> on a line of its own, yes
[15:22] <zumbrunn> and save the change ;-)
[15:23] <zumbrunn> plus helma needs to be running or you have to start it
[15:23] <To> yes.. but its not working
[15:23] <zumbrunn> do you see something when you access http://localhost:8080/ ?
[15:25] <To> I see the Welcome to Helma! webpage
[15:25] <zumbrunn> ok, good
[15:25] <To> with some more links
[15:25] <zumbrunn> then what i described should work, I think
[15:25] <To> its not showing a new folder..
[15:26] <zumbrunn> your checking inside the apps dir, right?
[15:26] <zumbrunn> ./helma-1.6.0/apps/
[15:26] <To> yep
[15:27] <zumbrunn> ok let's try something else...
[15:27] <zumbrunn> take a look at apps/welcome/code/Root/main.hac
[15:27] <To> are u sure I just have to write some lines in the file?
[15:27] <To> try yourself if u can
[15:27] <zumbrunn> yes
[15:28] <zumbrunn> paste your apps.properties file into the pastebin once
[15:28] <zumbrunn> http://helma.pastebin.com/
[15:29] <To> http://helma.pastebin.com/m599fe319
[15:30] <zumbrunn> ok, sorry
[15:30] <zumbrunn> without the quotes
[15:30] <To> I think i've tryed that too
[15:30] <zumbrunn> plus that's not the apps.properties file
[15:31] <zumbrunn> that looks more like the app.properties file of the manage app, or somehting
[15:32] <zumbrunn> apps.properties != app.properties
[15:32] <zumbrunn> I know, that's unfortunately a bit confusing
[15:32] <zumbrunn> but they are not in the same location either
[15:33] <zumbrunn> the one you want is inside the ./helma-1.6.0 directory
[15:33] <zumbrunn> not anywhere further down
[15:33] <To> hmmm
[15:33] <To> i've edit all the files
[15:33] <To> no sucess
[15:34] <To> lol
[15:34] <To> got it now
[15:34] <To> new folder there
[15:35] <To> :)
[15:35] <zumbrunn> ok, then create a file called main.hac inside that folder
[15:35] <To> ok
[15:35] <zumbrunn> inside that file, put...
[15:35] <zumbrunn> res.write('hello world')
[15:36] <To> ok
[15:36] <zumbrunn> then go to http://localhost:8080/mytest
[15:36] <zumbrunn> so far so good?
[15:36] <To> Error in application mytest
[15:36] <To> Action not found
[15:36] <zumbrunn> did you call your app mytest?
[15:37] <To> yes its my test
[15:37] <To> mytest
[15:37] <zumbrunn> and you have a file called apps/mytest/main.hac ?
[15:37] <To> sure
[15:38] <zumbrunn> hmm
[15:38] <To> whats the problem here?
[15:38] <zumbrunn> there shouldn't be one
[15:39] <zumbrunn> most likely problem is a typo on your side, I think
[15:39] <zumbrunn> but there isn't much that could be misspelled
[15:40] <To> guess yes too
[15:40] <zumbrunn> which package did you download?
[15:40] <zumbrunn> helma-1.6.0 ?
[15:40] <To> 1.6.1
[15:41] <zumbrunn> oh, right we are at 1.6.1 :-)
[15:41] <zumbrunn> ok, good
[15:41] <zumbrunn> can't think of what it could be
[15:41] <zumbrunn> oh, an idea...
[15:42] <zumbrunn> does http://localhost:8080/mytest/ behave differently?
[15:42] <zumbrunn> with the slash at the end
[15:42] <To> its the same
[15:42] <To> I'll try it later again
[15:43] <To> thanks for the support
[15:43] <zumbrunn> ok, I'm afk for a few minutes anyway
[15:43] <To> bbl
[15:43] <To> cya
[15:43] <zumbrunn> I'll be back later
[16:49] <zumbrunn> hmm... ok, I'm an idiot
[16:49] <zumbrunn> just noticed I said apps/mytest/main.hac
[16:50] <zumbrunn> what I meant is apps/mytest/Root/main.hac
[16:50] <zumbrunn> no wonder it didn't work
[16:59] <jkridner> Hopefully he'll be back.

 

 

In the channel now:

Logs by date: