Ringobot log - RingoJS IRC channel: #ringojs on irc.freenode.net
2010-08-16:
[7:31] <hannesw> good morning[7:32] <oberhamsi> good monday!
[14:34] <emilis_info> is there a way to define options that are passed to java after -jar with -D?
[14:34] <emilis_info> I mean from javascript
[14:37] <hannesw> emilis_info can you explain some more?
[14:37] <hannesw> you mean java system properties?
[14:37] <emilis_info> I think so
[14:38] <emilis_info> :)
[14:38] <emilis_info> don't have enough experience with java to know if that's the exact term
[14:42] <emilis_info> I am loading some Solr classes and want to pass them an empty config, but I need to set root dir for it. My other script that starts Solr server has a -Dsolr.solr.home=./search option
[14:42] <emilis_info> this option is specified after -jar jarfile.jar option
[14:44] <emilis_info> ok, anyways
[14:44] <emilis_info> maybe what I'm doing is wrong
[14:50] <emilis_info> oh btw: what would you recommend for symetric encryption on Ringo?
[14:51] <emilis_info> I tried Stanford Javascript Crypto Library, but that works slow and has weird input/output parameters
[15:28] <hannesw_> emilis_info you can set java system properties from within ringo using System.setProperty()
[15:28] <emilis_info> hannesw_, thanks
[15:28] <emilis_info> :)
[15:28] <hannesw_> java.lang.System.setProperty("solr.solr.home", "./search")
[15:29] <hannesw_> regarding encryption, i've heard good things about google keyczar
[15:29] <hannesw_> http://code.google.com/p/keyczar/
[15:29] <hannesw_> also played a bit with it - it's nice, provides real-world tools for key management
[15:30] <hannesw_> would be great to have a ringo package for it
[15:32] <emilis_info> I don't want fancy stuff with encryption. I just need a fast symetric algorithm in a library that is simple to use and does not introduce a lot of dependencies
[15:32] <emilis_info> :)
[15:32] <emilis_info> I think I'll go implement some RC4 or something :)
[15:36] <emilis_info> I need to provide a url for people to unsubscribe from our emails. I want to get email from a url parameter, but want to prevent abuse
[15:36] <emilis_info> :)
[15:44] <earl> just generate a unique unsubscription key (by sha1summing a timestamp, for example) and store that key alongside your userdata
[15:44] <emilis_info> I don't have any userdata now
[15:44] <emilis_info> :)
[15:45] <emilis_info> and intend not to have it for as far as possible :)
[15:45] <earl> i guess you'll have to store your subscribed user addresses somewhere, no :) ?
[15:45] <emilis_info> subscribed yes
[15:46] <emilis_info> but for people who just want to block emails about someone clicking on "share by email" -- no
[15:47] <earl> ok
[15:48] <earl> JCE comes with RC4, RC5, AES, ...
[15:48] <earl> (javax.crypto)
[15:52] <emilis_info> earl, thanks!
