Camelia, the Perl 6 bug

IRC log for #mojo, 2013-01-20

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:01 jzawodn joined #mojo
00:05 mattastrophe joined #mojo
00:12 Molaf_ joined #mojo
00:27 ilbot2 joined #mojo
00:27 Topic for #mojo is now Mojolicious real-time web framework 3.0 🌈 http://mojolicio.us 🌈 http://irclog.perlgeek.de/mojo/today 🌈 Now with 50% more refracted light!
00:35 Mike-PerlRecruiter_ joined #mojo
00:35 jiyuperl joined #mojo
00:36 trone joined #mojo
01:00 Molaf__ joined #mojo
01:11 Miked joined #mojo
01:11 Mike-PerlRecruiter_ joined #mojo
01:42 good_news_everyone joined #mojo
01:42 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/ZQ50Ew
01:42 good_news_everyone mojo/master cf6b807 Sebastian Riedel: small optimizations
01:42 good_news_everyone left #mojo
02:17 anaio joined #mojo
02:19 anaio left #mojo
02:21 anaio joined #mojo
02:43 mattastrophe joined #mojo
03:23 good_news_everyone joined #mojo
03:23 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/RdgUgw
03:23 good_news_everyone mojo/master 38fd46d Sebastian Riedel: a few comment tweaks
03:23 good_news_everyone left #mojo
03:49 TitanOfOld joined #mojo
04:01 noganex joined #mojo
04:17 good_news_everyone joined #mojo
04:17 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/-aafWw
04:17 good_news_everyone mojo/master 894cf80 Sebastian Riedel: more comment tweaks
04:17 good_news_everyone left #mojo
05:44 xaka joined #mojo
05:52 Miked joined #mojo
06:01 ka2u joined #mojo
06:03 Vandal joined #mojo
06:38 ladnaV joined #mojo
06:53 heytrav joined #mojo
07:13 mojobot36112 joined #mojo
07:14 mojobot36119 joined #mojo
07:16 russum joined #mojo
07:16 russum test
07:17 russum left #mojo
07:19 yakudza joined #mojo
07:25 heytrav joined #mojo
07:37 ka2u joined #mojo
07:40 dod joined #mojo
07:58 heytrav joined #mojo
08:11 dod joined #mojo
08:19 dotan joined #mojo
08:26 Vandal joined #mojo
08:31 ladnaV joined #mojo
08:59 lammel2 joined #mojo
09:06 dpetrov_ joined #mojo
09:10 ObseLeTe joined #mojo
09:14 d4rkie joined #mojo
09:15 dotan joined #mojo
09:41 rem_lex|pivo joined #mojo
10:02 ObseLeTe joined #mojo
10:03 ObseLeTe joined #mojo
10:16 rem_lex| joined #mojo
11:50 basic6 joined #mojo
11:52 Miked joined #mojo
11:58 mattastrophe joined #mojo
12:34 sh9 joined #mojo
12:36 sh4 joined #mojo
12:57 ObseLeTe joined #mojo
13:01 dabudabu joined #mojo
13:08 Mike-PerlRecruiter_ joined #mojo
13:34 yakudza joined #mojo
14:02 gtodd can stash store a hash?
14:07 DaniBunn1 joined #mojo
14:12 ka2u joined #mojo
14:16 ZadYree why not storing a hashref?
14:27 GabrielVieira joined #mojo
15:02 amirite joined #mojo
15:03 ka2u joined #mojo
15:05 gtodd ZadYree: hmm how to reference it ?  ... I guess what I want to do is be able to "manually" add a section in the script of a Lite app that holds an array/hash bunch of data (a list of animals, numbers or names => phone-numbers ) and then access it later in the app.  But often I get "Global symbol $whatever requires explicit package name at template ..." blabla ...  ... using "my" doesn't seem to help.
15:09 Miked joined #mojo
15:10 gtodd I think I need to just slowly walk through the machinery of how mojo handles requests so I can figure out where things are coming from.  I recall the early versions of Django's documents had a nice illustrative example of request handling that sort was like a guided read through of the code.
15:11 ZadYree how about using the $hash = {'foo' => 'bar}  form? It's way easier after to pass objects
15:11 gtodd If I try to write a similarplay-by-play maybe I will grok better ...
15:11 gtodd hmm
15:12 gtodd well here e.g. is what I have that works:
15:12 gtodd $self->stash(animal => "carcajou");
15:12 gtodd $self->render('list');
15:12 gtodd then list.html.ep has:
15:13 gtodd Hello <%= $animal %> from <%= $self->tx->remote_address %>.
15:13 gtodd simple
15:13 gtodd after bit of  my $self = shift; dancing about ....
15:15 gtodd but if I try to pull in a "data set" consisting of things like:
15:15 gtodd Family: Mustelidae , Species: Wolverine
15:15 gtodd Family: Mustelidae , Species: Weasel
15:15 gtodd etc etc
15:16 gtodd a text file with 100-200 similarish entries separated by CR
15:16 Britzel_ joined #mojo
15:16 gtodd and try to reference it in my route and then template ....
15:17 gtodd not so simple
15:18 gtodd maybe I should put it all in a "real" DB and try getting at it that way
15:19 gtodd the idea was to try to use a little Mojo web UI app to let people view review and update some data over the web and then export/convert it to JSON
15:22 gtodd easy enough to convert to JSON with awk or perl of course ... just thought mojo would let me make something in 5 minutes that people could use help/improve/review the data with a simple little web GUI
15:23 gtodd but now a day later I am learning another framework and jolting old perl brain cells back to life :-)
15:28 Mithaldu joined #mojo
15:38 ka2u joined #mojo
15:39 jberger gtodd, can you pastebin what you have? I think what you are asking for is easy, but I'm not sure how to communicate it to you
15:45 jberger gtodd: http://pastie.org/5736457
16:09 bluescreen joined #mojo
16:22 d4rkie joined #mojo
16:39 ka2u joined #mojo
16:46 gtodd jberger: thanks a lot
16:46 gtodd that will help :)
16:48 gtodd I just have to do some housekeeping where I read in the data
16:48 gtodd e.g. the my $data = {
16:48 gtodd foo => 'bar',
16:48 gtodd baz => 'bat',
16:48 gtodd };
16:48 gtodd part of your example
16:48 jberger yep, but thats just Perl not really mojolicious as such
16:49 jberger except maybe for getting the requested name from the path or query parameters
16:49 gtodd it's small enough I can just do normal perl stuff to create my data structure from a text file
16:51 gtodd yeah ... not sure why I  thought there had to be some fancy or radically simplified mojo way I should be doing things "correcly"
17:02 human39 joined #mojo
17:11 sri gtodd: please don't paste code into the channel
17:23 Vandal joined #mojo
17:29 good_news_everyone joined #mojo
17:29 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Evdapg
17:29 good_news_everyone mojo/master c7b4d67 Sebastian Riedel: small optimizations
17:29 good_news_everyone left #mojo
17:31 ladnaV joined #mojo
17:39 ka2u joined #mojo
18:12 BeDa joined #mojo
19:14 kitt_vl joined #mojo
19:14 MihailRussu joined #mojo
19:20 tempire hmm
19:20 tempire http://parsleyjs.org/
19:20 tempire it's super-free!
19:24 ObseLeTe joined #mojo
19:25 rem_lex| joined #mojo
20:03 lukep joined #mojo
20:14 marty joined #mojo
21:23 ObseLeTe joined #mojo
21:23 ObseLeTe joined #mojo
21:53 mattastrophe joined #mojo
22:32 Miked joined #mojo
22:36 mojobot95368 joined #mojo
22:39 bluescreen joined #mojo
22:44 mojobot95388 joined #mojo
22:44 gtodd ?
22:45 gtodd tempire: thanks for that :)
22:46 gtodd the more javascript "frameworks" there are the more likely one will be good and easy to use
22:53 ObseLeTe joined #mojo
22:55 sivoais joined #mojo
23:08 mattastrophe joined #mojo
23:08 marcus joined #mojo
23:09 bluescreen_ joined #mojo
23:41 [1]alnewkirk joined #mojo

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary