2009-10-14:
[10:48] <monkey__> hi[10:48] <monkey__> I want to ask a question about clustered mysql[10:49] <monkey__> hmmm[10:53] <emilis_info> heh[10:53] <emilis_info> I want to ask a question about any mysql :)[10:54] <emilis_info> can you point me to any examples of using it under rhino/helma-ng?[12:13] <zumbrunn> emilis_info: did you see my response from a few days ago?[12:13] <zumbrunn> http://helma.serverjs.org/hopbot/2009-10-10[13:00] <emilis_info> zumbrunn, yes, but the "script with Java libraries" part is what interests me. Since I don't have much experience with Java, I don't know where to start...[13:07] <zumbrunn> well, I don't know which particular library to recommend for actually doing that[13:07] <zumbrunn> since I avoid anything rdbms like the pest[13:08] <zumbrunn> but I'm guessing you would want to work through some JDBC api[13:09] <zumbrunn> and a jdbc mysql driver behind that[13:09] <zumbrunn> basically, if you would look into which libraries and APIs you would use in Java[13:10] <zumbrunn> then access these classes directly through the Packages in rhino[13:11] <zumbrunn> and directly use the java APIs in your scripts[13:11] <zumbrunn> does that make any sense?[13:30] <emilis_info> zumbrunn, yes, that makes sense, but since I have nearly no experience with Java, I don't know where to look for JDBC api examples.[13:32] <emilis_info> On a side note: what would you recommend for an app that is mainly for doctypes >- documents ? tags kind of data?[13:33] <zumbrunn> Jackrabbit?[13:35] <emilis_info> what is that?[13:35] <zumbrunn> talking to Jackrabbit from helma-ng is pretty easy[13:35] <zumbrunn> but it might be overkill for what you need, don't know[13:35] <zumbrunn> Apache Jackrabbit[13:36] <zumbrunn> http://jackrabbit.apache.org/[13:37] <emilis_info> hmm[13:37] <emilis_info> thanks[13:38] <zumbrunn> actually, that's one more way to use mysql as well[13:38] <zumbrunn> because mysql could be used as a data backend behind jackrabbit[13:39] <emilis_info> hm :)[13:40] <zumbrunn> maybe Hannes already has some code for easily storing documents into the berkleystore/sleepycat[13:40] <zumbrunn> berkleystore would be a slimmer solution[13:41] <zumbrunn> and just using Lucene is another intriguing possibilty[13:42] <zumbrunn> Lucene is really a search engine[13:42] <zumbrunn> allows you to build indexes of data stored elsewhere[13:42] <emilis_info> hmh[13:42] <zumbrunn> but Lucene has the option of storing the indexed content inside its "db/index" as well[13:43] <zumbrunn> and then there is the file system[13:44] <zumbrunn> not a bad solution for storing documents either :-)[13:44] <emilis_info> It is so frustrating... all I tried to do was see if I could build a web-scrapper with server-side jquery quickly. Ran into some big roadblocks :-)[13:44] <emilis_info> hmm[13:44] <emilis_info> I like filesystem[13:45] <emilis_info> just not sure how I would implement documents ? tags thing, but I could think of something[13:45] <zumbrunn> maybe filesystem + lucene for indexing and tags/metadata[13:46] <zumbrunn> but essentially we are talking about the problem Jackrabbit is trying to solve[13:46] <emilis_info> nah... it had to be a quick project to make a demo. I have no experience with Lucene, so that would create a high risk of running into more roadblocks[13:47] <emilis_info> one thing, that I really like from all things I tried is Helma-NG :)[13:48] <emilis_info> I guess, I'll google for JDBC exapmles and if they wont work, will try to hack something with filesystem[13:48] <emilis_info> :)[13:48] <emilis_info> thanks for all the links[13:48] <zumbrunn> http://helma.serverjs.org/reference/helma.Search.html[13:48] <zumbrunn> http://helma.serverjs.org/reference/jala.IndexManager.html[13:50] <emilis_info> ah, but that's not in NG yet?[13:50] <zumbrunn> no[13:50] <zumbrunn> might not be difficult to get running as an ng module, though[13:51] <zumbrunn> (meaning, maybe its source code would work virtually unchanged in ng)[13:53] <zumbrunn> https://dev.helma.org/trac/helma/browser/apps/modules/trunk/helma/Search.js[13:54] <emilis_info> yes, I looked at the file[13:54] <emilis_info> would it work without exports in NG?[13:55] <zumbrunn> at least it would show you how you need to use the lucene jars[13:55] <zumbrunn> and there are two lucene jars you could use in the same directory[13:55] <zumbrunn> https://dev.helma.org/trac/helma/browser/apps/modules/trunk/helma[13:56] <emilis_info> hmm[13:59] <emilis_info> ah[13:59] <emilis_info> I can even look up DB examples from Helma 1.x[13:59] <emilis_info> great idea :)[14:00] <zumbrunn> well, the db code uses helma.objectmodel.db.DbSource[14:00] <zumbrunn> which is part of helma 1.x itself[14:00] <zumbrunn> unless you mean looking at the java source of helma 1.x[14:02] <emilis_info> well at least I've got some code to look through[14:02] <emilis_info> reading documentation is not that much of a help, when you are as inexperienced as me[14:02] <emilis_info> :)[14:07] <emilis_info> now... if only I could get jquery to work properly...[14:08] <zumbrunn> are you using env.js?[14:08] <zumbrunn> or how are you using jquery on the server-side?[14:08] <emilis_info> yes, I'm trying to make env.js work on my system[14:09] <zumbrunn> and where does it break?[14:10] <emilis_info> at first it failed to read document body of non-XHTML file[14:10] <zumbrunn> ok, so you have it running, but it chokes on the files you feed it[14:11] <emilis_info> I used Tidy to convert the HTML file, now I can't get out much of the DOM elements anyway[14:11] <emilis_info> It just seems unstable[14:11] <emilis_info> judging from the group archives it may be problems with env.js+Rhino1.7x[14:12] <zumbrunn> you know about htmlunit, right?[14:12] <zumbrunn> http://htmlunit.sourceforge.net/[14:13] <emilis_info> nope :)[14:14] <zumbrunn> well, now you do :-)[14:15] <emilis_info> :)[14:17] <emilis_info> uhm... ok I've got htmlunit/lib/ full of jar files[14:17] <emilis_info> where do I put them, and how do I use them in Helma-NG?[14:23] <zumbrunn> no idea :-)[14:23] <zumbrunn> I just know that's what I would try to figure out if I would want to do what you want to do ;-)[14:24] <zumbrunn> put them somewhere where they are in the CLASSPATH?[14:24] <zumbrunn> or add the ones you need with addToClasspath() in your helma-ng script[14:27] <emilis_info> I am now trying to add them to helma/lib/...[14:31] <zumbrunn> btw... I just tried out what the simplest possible way to talk to Jackrabbit from helma-ng would look like[14:31] <zumbrunn> http://helma.pastebin.com/f3b57f7c7[14:31] <zumbrunn> a barebones jackrabbit module for helma-ng[14:34] <emilis_info> hmm[14:34] <emilis_info> did you put jackrabbit-...jar into the app directory?[14:35] <zumbrunn> that's just talking to it via rmi[14:35] <zumbrunn> so, jackrabbit would need to be running side-by-side with helma-ng[14:36] <zumbrunn> embedding it would get a bit more involved[14:36] <zumbrunn> basically, I just dropped the jackrabbit jar into the helma-ng dir and double clicked it[14:37] <zumbrunn> and then started to talk to it with the above code[14:37] <emilis_info> aah... ok[14:37] <emilis_info> what is rmi?[14:38] <zumbrunn> http://en.wikipedia.org/wiki/Java_remote_method_invocation[14:57] <anton> hi someone listening, who is familiar with helma-ng and serving static content[14:57] <anton> ?[14:59] <anton> it seems that helma-ng is not following symlinks in the static content[15:02] <anton> ok, just a typo. problem solved![15:02] <anton> bye
In the channel now:
Logs by date: