Camelia, the Perl 6 bug

IRC log for #mojo, 2012-09-24

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

All times shown according to UTC.

Time Nick Message
00:45 asarch joined #mojo
00:56 memowe_ joined #mojo
01:18 memowe joined #mojo
01:35 memowe joined #mojo
01:35 d4rkie joined #mojo
01:46 l3l1p joined #mojo
01:51 Foxcool joined #mojo
01:55 * tempire sizzles
01:56 * dross puts water on tempire to stop him from sizzling
02:09 mandreacchio joined #mojo
02:37 noganex_ joined #mojo
03:02 xaka joined #mojo
03:27 laouji joined #mojo
03:30 l3l1p joined #mojo
04:00 Foxcool joined #mojo
04:04 dross I can't remember which toolkit or page I was reading
04:04 dross if the file upload is a certain size, will it dump to a file for processing?
04:05 buu Yes, yes it will.
04:05 dross also, asset, I noticed the doc said the default was file but when I print it says Mojo::Asset::Memory=HASH(0x33645f8)
04:05 dross buu: am I wanting to use asset for processing?
04:05 dross i.e. I'm creating a CMS completely mongodb dependent
04:06 buu I have.. no idea! Sorry!
04:06 dross all pages will be stored in mongo
04:06 dross (with caching)
04:12 dross looks like someone already did the work ;)
04:12 dross https://gist.github.com/1044959
04:30 * dross is so happy, mojo is a pretty nice toolkit
05:39 spleenjack joined #mojo
05:43 alnewkirk does mojo support vanity URLs?
05:44 alnewkirk basically /welcome -> forwards-to -> / ...
05:44 Adura How much of the documentation have you read?
05:44 alnewkirk Adura: me?
05:44 purl you are, like, bored
05:45 Adura Yes.
05:45 alnewkirk not sure what you mean?
05:46 Adura Wondering how much of the Mojolicious documentation you've looked at.
05:46 alnewkirk i read some of the documentation
05:46 zpmorgan http://mojolicio.us/perldoc​/Mojolicious/Guides/Routing
05:47 alnewkirk dont do that
05:47 alnewkirk i asked a simple question
05:47 alnewkirk i simple yes or no would suffice
05:48 alnewkirk sri?
05:48 purl i heard sri was A PONIE!!1! and a  or no more a javascript noob or evil or a spelling guerilla or the temporary channelclown or a snob now or the perl guerilla or a small mouse with a big head aiming for world domination or the evil sith or has no clue about fuzzy logic or no longer a real hacker :/ or a copycat or pimp to many children or a holy man or looks a lot like pitr or puny or making Mojolicious delicious
05:48 Adura I've always felt IRC channels were for more... support-ish questions. But, yes.
05:48 Adura You can make any URL you want, ultimately.
05:48 alnewkirk Adura: you're right, I didn't phrase the question properly
05:50 alnewkirk does mojo support mapping routes to other routes
05:51 alnewkirk "i" call them vanity URLs
05:52 alnewkirk routes are resoure identifiers mapped to some controller and action whereas vanity urls are mapped to internal routes
05:52 alnewkirk i suppose they don't have to be internal but i digress
05:54 alnewkirk sure I could use a callback and foward, or simply map the vanity url to the same controller/action, but its best to only have to update the "real" handler in one spot
05:55 alnewkirk ... especially if there are many vanity URLs (for SEO purposes)
06:00 crab no
06:00 alnewkirk hey crab
06:00 alnewkirk ... be cool if it did, not sure if thats in the plans
06:00 crab no
06:01 Adura All to the same controller/action seems... logical enough.
06:03 crab you can easily write a routing shortcut that does ->aliases('/foo','/bar','/baz','/i-am-vain', ..., 'x#y') and creates the individual routes, if you like
06:05 Adura No imptoved things with the latest release!
06:05 crab what?
06:05 Adura 3.42 Had Imptoved tests.
06:07 crab ...ok
06:07 alnewkirk crab: why use a shortcut: $r->route($_)->to('thing#amabob') for (qw(...));
06:07 Adura Perl for ya.
06:08 alnewkirk i've been doing some consulting at rent.com and they use vanity URLs extensively
06:08 Adura Surprised that Musical is still popular.
06:08 Adura Caps on the brain.
06:08 alnewkirk lol, they're moving to catalyst which will make the seo/vanity url abstraction layer even more of a nightmare
06:15 crab alnewkirk: sure, do whatever you like
06:21 davido joined #mojo
06:23 arthas joined #mojo
06:41 davido Hot diggidy: with HARNESS_OPTIONS=j9 "time cpanm Mojolicious" ---- real 12.192s!
06:41 zpmorgan how many cores do you have?
06:41 davido 4.
06:42 zpmorgan can it go faster?
06:43 davido Maybe... think I should try j16? haha
06:43 zpmorgan only if a bunch of tests block.
06:45 davido There's a diminishing return.  At j16 I get 11.332s.
06:47 davido My dual-core laptop tops out at around 20.3 seconds.
07:07 rem_lex|pivo joined #mojo
07:09 crab which TEST_... options do you turn on?
07:09 omega you could try the state-saving and add slow
07:09 omega so it starts slow tests first
07:14 crab my machine finished just "make test" in 10s with -j16
07:14 crab but it takes nearly half a minute for all the TEST_BLAH i usually enable
07:26 Vandal joined #mojo
07:46 Britzel joined #mojo
07:55 heytrav joined #mojo
08:02 heytrav joined #mojo
08:09 heytrav joined #mojo
08:12 geira joined #mojo
08:18 Foxcool joined #mojo
08:53 Foxcool joined #mojo
08:56 fhelmber_ joined #mojo
08:59 heytrav joined #mojo
09:11 JiYu joined #mojo
09:13 batman joined #mojo
09:20 marcus good morning, fellow revelers.
09:31 Foxcool joined #mojo
09:34 heytrav joined #mojo
09:43 batman "good morning"? :)
09:43 batman well... it's not good and not morning, but hello to you to marcus
09:43 batman hehe
09:54 MidnighToker joined #mojo
10:00 heytrav joined #mojo
10:06 andrefs joined #mojo
10:10 Foxcool joined #mojo
10:20 mire joined #mojo
10:21 Foxcool joined #mojo
10:21 Lucas1 joined #mojo
10:25 zpmorgan joined #mojo
10:29 pau4o joined #mojo
10:30 memowe joined #mojo
10:51 Foxcool joined #mojo
10:55 daxim joined #mojo
11:04 asarch joined #mojo
11:23 mandreacchio joined #mojo
11:25 spleenjack joined #mojo
11:40 arpadszasz joined #mojo
12:03 ObseLeTe joined #mojo
12:41 ObseLeTe hi
12:41 purl que tal, ObseLeTe.
12:42 ObseLeTe i've litle problem for mojo: sudo -s 'curl -L cpanmin.us | perl - Mojolicious' -> mojo generate myProjectName -> -bash: mojo: command not found
12:43 gryphon joined #mojo
12:53 ObseLeTe ?
12:54 crab it's somewhere, if the installation completed successfully. maybe just not in your $PATH
12:54 ObseLeTe how add in my $PATH ?
12:57 crab obs: export PATH=$PATH:/path/to/bindir, but you have to find out where it is first
12:58 ObseLeTe this: /opt/local/libexec/perl5.12/sitebin/mojo ?
12:59 crab yes, that looks good. so you can export PATH=$PATH:/opt/local/libexec/perl5.12/sitebin
12:59 crab (and put that in your ~/.bashrc too)
13:01 ObseLeTe ho
13:01 ObseLeTe thanks
13:07 kitt_vl joined #mojo
13:16 jnap joined #mojo
13:32 ObseLeTe So, I my understanding is good, templates/layout/default.html.ep is the basic template, for header, footer and block code. and template/example/welcome.html.ep can a extension
13:32 ObseLeTe if*
13:47 memowe joined #mojo
13:48 d4rkie joined #mojo
13:58 dpetrov_ joined #mojo
13:59 atrodo joined #mojo
14:02 chansen joined #mojo
14:04 jnap_ joined #mojo
14:22 inokenty joined #mojo
14:24 Leandr joined #mojo
14:26 Britzel_ joined #mojo
14:26 knshaum joined #mojo
14:42 pau4o joined #mojo
14:47 bluescreen joined #mojo
14:55 dvinciguerra joined #mojo
14:57 sri crab: how is html_escape broken?
15:01 sri oh, it's an old ticket... my bad
15:05 Leandr joined #mojo
15:18 ryozi joined #mojo
15:25 jnap_ joined #mojo
15:25 labrown joined #mojo
15:54 xaka joined #mojo
16:05 dpetrov_ joined #mojo
16:08 crab sri: oh no, we are breaking the LAW!
16:08 purl okay, crab.
16:08 crab postel will beat us with a stick.
16:29 jzawodn joined #mojo
16:34 abra joined #mojo
17:04 ObseLeTe joined #mojo
17:25 usb2 joined #mojo
17:26 usb2 Hi!
17:27 usb2 I just installed Mojolicious, which kind of worked, but I can't run it
17:27 usb2 (command not found)
17:27 usb2 morbo
17:27 usb2 bash: morbo: Kommando nicht gefunden.
17:31 xaka how did you install it?
17:33 usb2 curl get.mojolicio.us | sh
17:33 usb2 (installed as root)
17:34 usb2 do I have to manually chmod +x or something?
17:44 Lucas1 joined #mojo
18:29 batman joined #mojo
18:32 batman left #mojo
19:01 vishwanathms_ joined #mojo
19:12 mire joined #mojo
19:17 tempire usb2: your perl bin folder must not be in your path
19:17 * tempire downloads source code pro
19:17 usb2 tempire: so what do I have to do?
19:18 tempire did you custom install your perl?
19:18 usb2 no
19:18 tempire os?
19:18 usb2 Arch Linux
19:18 purl Arch Linux is probably not as cool as demi linux.
19:18 usb2 o.O
19:19 tempire I don't know anything about arch.  there's probably a way to list all the files in the perl package with whatever package manager it uses, though.
19:19 tempire find the bin directory
19:19 tempire then add it to PATH in .bashrc
19:19 tempire or
19:19 inokenty I'm using Arch
19:20 inokenty And I have no any problems
19:20 tempire you could also just use perlbrew
19:20 tempire http://perlbrew.pl/
19:21 usb2 tempire: so say I want to stick with my perl install
19:21 inokenty usb2: Did you try cpanm?
19:21 usb2 tempire: I have to find the perl-binary?
19:22 usb2 inokenty: in a way... I used the standard curl get.mojolicio.us | sh
19:23 tempire I don't know how arch does things.  It's not a mojolicious-specific problem, though - it's just a matter of finding perl's bin path.
19:23 tempire which morbo
19:23 tempire locate morbo
19:24 usb2 tempire: /usr/bin/site_perl/morbo
19:24 tempire well there you go
19:25 inokenty usb2: Can you show your $PATH?
19:25 usb2 inokenty: theres only core_perl in there, no site_perl
19:25 usb2 ok, seems to work :)
19:26 tempire usb2: fyi - it's generally considered bad practice to use system perl for development.  it's ok to start with, but you'll want to switch to perlbrew at some point.
19:27 usb2 tempire: okay, I'll think about it
19:27 tempire http://cdn.memegenerator.net​/instances/400x/27292969.jpg
19:27 usb2 yay morbo works!
19:27 usb2 thanks a lot, guys!
19:28 tempire \o/
19:29 dpetrov_ Kommando gefunden :P
19:30 usb2 yea, i18n ftw.
19:30 dpetrov_ i18n++
19:40 marcus joined #mojo
20:10 xaka joined #mojo
20:12 ask joined #mojo
20:19 usb2 left #mojo
20:31 jnap_ joined #mojo
20:56 HtbaaPi joined #mojo
21:01 batman joined #mojo
21:09 andrefs joined #mojo
21:39 lukep joined #mojo
21:41 davido joined #mojo
21:47 batman joined #mojo
21:58 Adura joined #mojo
21:59 mire joined #mojo
22:06 Averna joined #mojo
22:22 good_news_everyone joined #mojo
22:22 good_news_everyone [mojo] kraih pushed 2 new commits to master: http://git.io/KrtM5A
22:22 good_news_everyone [mojo/master] Fixing minor typos in FAQ. - Paul Waring
22:22 good_news_everyone [mojo/master] Merge pull request #385 from pwaring/master - Sebastian Riedel
22:22 good_news_everyone left #mojo
22:24 good_news_everyone joined #mojo
22:24 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/XWY0qQ
22:24 good_news_everyone [mojo/master] updated Changes file - Sebastian Riedel
22:24 good_news_everyone left #mojo
22:42 davido There's a PerlMonks node where someone is asking what is the best way to fetch an HTML document and work with it.  I was about to demonstrate with Mojo::UserAgent and Mojo::DOM, but then I saw this detail: "The xml feed can be quite huge, (~150Gb max.)"
22:42 davido http://www.perlmonks.org/?node_id=995446
22:42 dross joined #mojo
22:43 davido Maybe it would be OK, given "When downloading large files with Mojo::UserAgent you don't have to worry about memory usage..."
22:45 sri that part is not a problem, you just can't parse it with Mojo::DOM
22:46 davido I suspected that would be the case as well.
22:47 davido XML::Twig
22:47 purl i heard XML::Twig was godsend. or broken with blead or perhaps relevant or 5 times slower than using XML::Parser
22:47 batman who has 150Gb html docs??!
22:47 sri xml
22:47 davido batman: Apparently someone named 'perl_gog'. :)
22:47 batman even so....
22:48 sri the dmoz xml file comes to mind
22:48 davido A PerlMonks user since five minutes ago. :)
22:49 allie joined #mojo
22:49 davido Anyway, I thought it was an interesting question.  Took a break from some work, saw the post, and thought.. hmm, maybe another opportunity for Mojolicious to shine.
22:50 sri using the read event to stream chunks directly into a sax parser would be the best solution i guess
22:50 sri http://mojolicio.us/perldoc/Mojolicio​us/Guides/Cookbook#Streaming_response
22:51 batman it just doesn't seem right nomatter which parser you would use...
22:51 sri it's not that much worse than a 150gb csv file
22:51 batman haha!
22:51 batman true
22:52 batman still insane way to store data
22:52 sri if the data is a tree structure using xml might make sense... even though the overhead is massive
22:53 allie pardon the interuption, can anyone recommend the perl(ish) worker daemon for mojolicious, like resque or beanstalkd, especially for use on heroku?
22:53 bpmedley allie: Gearman
22:53 sri there's a perl port of resque
22:54 allie the perl port of resque seems sort of an alpha release, unless I'm not looking at the right one
22:57 sri https://metacpan.org/module/Resque # it seems to be working for quite a few people, and the author is a regular here
22:57 davido Seems like a crazily large file to me too.  I think of the largest files I tend to generate, and they're all HD video.  ...and they're never even close to 10% of 150GB.
22:57 allie excellent, thanks sri and bpmedley
22:58 batman "worker daemon for mojolicous" <-- what's that?
22:59 dross worker daemon is awesome :3
22:59 dross you should totally read on it
23:00 allie its a process to handle async work being done by the backend server, initiated by some sort of queueing system
23:00 dross </doesn't really know what it is>
23:00 allie is that worker daemon from heroku itself?  I thought that was only for Ruby
23:00 batman so it's not for mojolicous. it's just a worker daemon?
23:00 batman i would use mojolicious as my worker daemon...
23:00 dross allie: ah, a process queue
23:02 batman anyway... i need to get some sleep
23:02 batman nite
23:02 allie mojolicious has no enqueue, dequeue, logging, etc... yes, I could build all of that USING mojo, of course, but I was looking for a turnkey like resque
23:02 * dross nods
23:03 allie thanks @sri but it looks like the perl port of resque is very alpha level and missing many features
23:03 dross allie: what do you mean, no loggnig?
23:03 dross Mojo::Log is available
23:04 dross it's automatic and you just need a log directory
23:05 allie yes, I stand corrected regarding logging... I meant to say "service interface"... resque has a great web interface for reviewing worker status, success, failure, instances, etc.
23:05 allie thanks for the help
23:07 mandreacchio joined #mojo
23:07 mandreacchio joined #mojo
23:09 Adura Reminds me of a little thing called cron.
23:32 mandreacchio_ joined #mojo
23:42 alliejr joined #mojo

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