Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-07

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

All times shown according to UTC.

Time Nick Message
00:11 lukep joined #mojo
00:45 batman_ joined #mojo
01:09 scott joined #mojo
01:21 laouji joined #mojo
01:30 scott joined #mojo
01:30 laouji_rouge joined #mojo
01:49 amirite joined #mojo
01:49 nicomen sri: seems it kind of sucks, just per-project not per-repo
01:51 d4rkie joined #mojo
02:41 asarch joined #mojo
02:43 Psyche^ joined #mojo
02:50 xaka joined #mojo
03:01 noganex joined #mojo
03:04 arpadszasz joined #mojo
03:14 amirite left #mojo
03:22 jnap joined #mojo
03:25 GitHub60 joined #mojo
03:25 GitHub60 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/cd​b0ad373baad47b404131b91ff2d73bc3cb0292
03:25 GitHub60 [mojo/master] added appcache MIME type - Sebastian Riedel
03:25 GitHub60 left #mojo
03:33 sri gotta have those html5 features covered :)
03:38 amirite joined #mojo
03:39 amirite how to implement authentication with mojolicious lite
04:10 tempire I don't know enough about zeromq to recommend it.  But I do think it's interesting.
04:10 tempire it's already added, apparently, but I support ogg
04:11 tempire I had to support it for mojocasts
04:11 tempire don't remember which browser required it
04:12 tempire marcus: when is your irc product going to be released?
04:12 * tempire demands progress
04:16 rwstauner joined #mojo
04:36 rwstauner joined #mojo
05:26 laouji joined #mojo
05:32 ovnimancer joined #mojo
05:39 Britzel joined #mojo
06:59 Vandal joined #mojo
07:06 batman_ joined #mojo
07:11 zoo-zed joined #mojo
07:13 marcus tempire: batman and me spent 4 hours on it yesterday, so we are getting closer.
07:14 batman and it was f***** awesome!
07:14 marcus (note, I now also have accomplices)
07:14 batman no way to be boring when you put awesomeness together ;)
07:15 omega what irc product?
07:16 batman a web frontend with extra functionality using irc as communication channel in backend
07:24 zhutingting joined #mojo
07:25 zhutingting :)
07:26 marcus a redis powered irc proxy with an awesome web frontend :)
07:27 laouji_rouge joined #mojo
07:27 zhutingting using Pod::HTML can not parse pod to html like http://mojolicio.us/perldoc/ show
07:28 zhutingting which module is used in generate the doc of mojolicio.us?
07:32 batman zhutingting: https://metacpan.org/module/Mo​jolicious::Plugin::PODRenderer
07:34 zhutingting batman: I konw that. But http://mojolicio.us/perldoc/Mojolicious/Lite is really awesome and different with that plugin generated.
07:34 batman then i don't get the question.
07:35 batman is it more awesome because of styling...?
07:35 zhutingting the html show in mojolicio.us/perldoc is more pretty than the PODRenderer generate
07:36 batman oh. it's probably because of http://mojolicio.us/css/prettify-mojo.css and the page styling included in the html
07:36 zhutingting <a class="podlinkpod" href="/perldoc/Mojolicious">Mojolicious</a>
07:37 batman joined #mojo
07:38 batman_ left #mojo
07:40 batman joined #mojo
07:40 zhutingting :-D sorry for my poor English
07:40 batman sorry for getting disconnected
07:40 zhutingting :-D
07:40 batman empathy-- # =?)(/&%¤"
07:41 zhutingting plugin generate <pre>xxxx</pre>
07:41 batman marcus: can you hook me up with some test data i can manipulate to get connected with wirc?
07:41 batman :)
07:41 zhutingting i want <pre class="xxx">xxx</pre>
07:41 zhutingting what is the easiest way to do that?
07:41 batman zhutingting: $('pre').appendClass('xxx'); # :)
07:41 batman js/jquery ^
07:43 marcus batman: yes
07:43 batman but the plugin generates <pre class="prettyprint"></pre>
07:43 cosmincx joined #mojo
07:43 zhutingting :) you mean decorate the html use js, rather than parsing pod to do that?
07:43 batman sorry addClass()
07:44 batman marcus had me up all night, so my head is a bit fuzzy :)
07:44 marcus lies. I was in bed by 1am
07:45 zhutingting 8-) I think mojoer maybe has a super module can parse pod in any way you want
07:45 batman marcus:D
07:45 batman zhutingting: podrenderer is just an example. fork it
07:45 zhutingting in official site it also has a TABLE OF CONTENTS.
07:46 batman zhutingting: which mojo version do you have?
07:46 batman sounds like you're running 0.01 instead of 3.20 :)
07:46 fhelmber_ joined #mojo
07:46 taryk joined #mojo
07:46 pau4o joined #mojo
07:47 zhutingting :-D
07:52 spleenjack joined #mojo
07:56 zhutingting ;-) yeah, I got that~
07:56 zhutingting http://search.cpan.org/~dwheeler/Pod-Si​mple-3.22/lib/Pod/Simple/HTML.pm#index
07:57 zhutingting this module has many function i don't konw before
07:57 zhutingting http://search.cpan.org/pod2html awesome
07:59 zhutingting thx batman++
08:16 Leandr joined #mojo
08:42 berov joined #mojo
09:02 amirite joined #mojo
09:25 arpadszasz joined #mojo
09:39 pau4o joined #mojo
09:42 zhutingting left #mojo
10:19 daxim joined #mojo
12:10 cosmincx joined #mojo
12:20 rem_lex joined #mojo
12:50 amirite joined #mojo
13:03 rem_lex joined #mojo
13:16 inokenty joined #mojo
13:29 gryphon joined #mojo
13:36 jnap joined #mojo
13:47 CromeDome joined #mojo
13:52 * sri yawns
13:57 daniel_ joined #mojo
14:32 mire joined #mojo
14:49 Lucas1 joined #mojo
14:50 rem_lex|pivo joined #mojo
15:24 tm joined #mojo
15:24 tm afternoon ;)
15:29 labrown joined #mojo
15:42 xaka joined #mojo
15:48 * sri waves
15:52 d4rkie joined #mojo
15:53 * whee flaps
16:09 Leandr joined #mojo
16:13 Britzel joined #mojo
16:18 pau4o left #mojo
16:21 xaka joined #mojo
16:42 mire joined #mojo
17:03 daniel_ joined #mojo
17:18 Mikey hm.. all it takes to add an application-specific command is to make a MyApp::Command::command_name module?
17:19 crab yep.
17:19 Mikey that use Mojo::Base 'Mojolicious::Command'; ?  and implements run()
17:24 batman joined #mojo
17:40 berov joined #mojo
17:43 lungching left #mojo
17:44 GitHub163 joined #mojo
17:44 GitHub163 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/4e​10c5d4f44631d355f3dc0a6f34771e6b6e92a0
17:44 GitHub163 [mojo/master] explain how to make commands application specific - Sebastian Riedel
17:44 GitHub163 left #mojo
17:44 sri Mikey: that should help
17:45 sri http://mojolicio.us/perldoc/Mojolicious/Gui​des/Cookbook#Adding_commands_to_Mojolicious
18:10 GitHub21 joined #mojo
18:10 GitHub21 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/56​9c10f24a19c5119c66aa9f149da6c659483469
18:10 GitHub21 [mojo/master] better type detection tests - Sebastian Riedel
18:10 GitHub21 left #mojo
18:14 noganex oh for christs sake... i spent hours debugging that closed-source thingy and kept wondering why it doesn't work with mojo and now i found it: it segfaults when it sees an X- http header...
18:14 noganex :(
18:14 sri lol
18:17 noganex and now it seems like there isn't a sane way to disable/unload the plugin.
18:24 noganex mh... perharps i should put the mojo app behind a proxy (and that java crap behind some firewall as well)
18:24 berov Hi,.. just curious... why you removed  -b from perltidyrc?
18:24 berov https://github.com/kraih/mojo/commit/76​00cf5dd8293855c11dd294188f3b586a7f396c
18:25 sri newer perltidy required it i believe
18:25 noganex nah.
18:25 sri noganex: why not just remove the X- header?
18:25 noganex there's still -b
18:25 noganex but it makes no sense to put it in a perltidyrc, since it does not formatting. it controls i/o.
18:26 sri requires as in incompatible with other options we use
18:27 noganex sri: is it safe? can i be sure that this plugin won't be reloaded at some point? :/
18:27 sri wat?
18:28 berov noganex: so I have to add -b if I make a change to a file  and run perltidy?\
18:28 fhelmber_ joined #mojo
18:29 Leandr joined #mojo
18:29 noganex berov: -b causes perltidy to backup the file to $filename.-bext and replace the original file.
18:30 noganex if there is no stdin or -html and so on
18:30 berov I know - it was so convenient :)
18:30 mire joined #mojo
18:31 bc547 joined #mojo
18:31 noganex you could just create a custom option which expands to all the options you need and pass it in after -pro
18:32 rem_lex joined #mojo
18:39 rem_lex|pivo joined #mojo
18:40 Mikey ahh had to add the namespace to commands->namespaces
18:40 Mikey ty alls <3
18:54 sri \o\
18:54 sri /o/
18:54 rem_lex| joined #mojo
18:55 noganex sri: i used hook around_dispatch to remove the http header. i guess that's good enough. thanks. :)
18:57 rem_lex joined #mojo
18:58 sri before_dispatch would be easier
19:04 sri hmm, would be nice if we could speed up some tests
19:04 sri we are barely under a minute in my test runs :/
19:05 sri ioloop.t, reactor_poll.t, user_agent.t and longpolling_lite_app.t might be the best candidates
19:06 sri some timeouts there are pretty generous
19:09 lammel2 joined #mojo
19:13 asarch joined #mojo
19:16 cfouts left #mojo
19:21 rem_lex|pivo joined #mojo
19:32 bc547 what is the best way for a mojo lite app to return a dynamically generated .png?
19:35 berov joined #mojo
19:37 sri hmm, i managed to reduce make test time by almost 10 seconds
19:38 sri some reductions might be a bit risky on slow machines though, really hard to say :S
19:39 vervain joined #mojo
19:41 asarch joined #mojo
19:47 sri it's 10 seconds for a normal make test run, and about 1 second with j9
19:48 sri tempire, marcus, crab: worth it?
20:03 GitHub95 joined #mojo
20:03 GitHub95 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/c4​37831f9d136524e7b680e095d01de07ed383ec
20:03 GitHub95 [mojo/master] speed up tests - Sebastian Riedel
20:03 GitHub95 left #mojo
20:03 xaka joined #mojo
20:03 sri please test!
20:03 sri especially if you have a really old and slow machine
20:10 GitHub75 joined #mojo
20:10 GitHub75 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/2d​5cd2d2e953bec422caf8e11c31f2a8a1eb3395
20:10 GitHub75 [mojo/master] slow down reactor test a little - Sebastian Riedel
20:10 GitHub75 left #mojo
20:27 xaka sri: you really need virtualbox or so, allocate 10Mhz for VM and test mojo against it :)
20:28 xaka that would be hell-a slow and enough for like 10 hours of testing (and playing Diablo 3)
20:29 sri too bad diablo 3 sucks :(
20:30 xaka blizzard is getting older (
20:30 edenc I think diablo 3 is awesome
20:31 sri it is nowhere near as good as diablo 2
20:32 Mikey best practices q: where's the best place to put utility code?  loading everything as helpers seems to make the most sense... but it's not as pretty as tucking it away into a utility class
20:32 Mikey like if i have something i need to be available app wide, in many controllers, that has access to the app itself
20:32 sri blizzard got too greedy, they are dumbing down all their games way too much these days
20:33 Mikey i got bored of d3
20:33 marcus sri: Sorry, my machine is way too fast ;)
20:33 sri with the exception of starcraft i guess
20:34 sri marcus: :(
20:34 sri Mikey: utility helper plugins?
20:34 edenc sri: in what sense is d3 dumber than d2?
20:35 batman marcus: can we change Mojo::Redis to do on(error => sub {}) and simply -not- call the callback if an error occur?
20:35 batman on(error => CODE) instead of on_error(...)
20:35 edenc at every single d2 patch, there are only two viable classes to play with
20:35 marcus batman: I suppose so.
20:35 edenc at least all d3 classes are viable
20:35 sri edenc: hardcore mode has actually been finished already
20:36 marcus batman: I also want to add proper support for multi/exec
20:36 edenc sri: by professional players playing non-stop since day one, yes
20:36 batman i don't like to test for success inside a callback that is supposed to get data... but it could be just me
20:36 edenc when d2 came out, the concept of "professional players" barely existed
20:36 batman marcus: i have no idea what you're talking about: just opened redis.io now :)
20:37 edenc but very few casual players, ie people who have lives, have finished d3 inferno, let alone hardcore inferno
20:37 marcus batman: if you do multi, all your calls will be postponed until you do exec, and the exec will get the return values from all the calls.
20:38 batman ok
20:38 batman it will be implemented:)
20:41 GitHub111 joined #mojo
20:41 GitHub111 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/7b​3eea47c9e4408921c41987b7db9e8b3d0b1a7d
20:41 GitHub111 [mojo/master] slowed down timeout tests again - Sebastian Riedel
20:41 GitHub111 left #mojo
20:42 arpadszasz joined #mojo
20:45 Mikey sri: thanks again
20:50 GitHub117 joined #mojo
20:50 GitHub117 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/60​1fe8dbd93ec2817b24762489085b66e3c15ba5
20:50 GitHub117 [mojo/master] speed up WebSocket tests - Sebastian Riedel
20:50 GitHub117 left #mojo
20:51 sri that speeds up j9 by 2 seconds :)
20:53 sri normal make test is down by 12 seconds
20:53 sri lets hope it survives cpantesters
20:55 * marcus crosses fingers and toes
20:58 * sri breaks a mirror
21:04 sri http://mailtrap.io # oh that's neat
21:10 amirite joined #mojo
21:12 batman cool!
21:14 batman why is it for free?
21:44 lukep joined #mojo
21:53 * sri would be interested in some "time cpanm Mojolicious" times for 3.24
21:54 sri 9,17s user 4,30s system 79% cpu 54,680 total
21:55 sri (plain reinstall with j1)
21:56 noganex cpanm Mojolicious  38.77s user 4.43s system 74% cpu 58.071 total
21:56 noganex os x 10.7 perl-5.16.0
21:56 * sri wins o/
21:57 noganex hab firefox offen ;)
21:57 sri 10.8 perl-5.16.0 (compiled with clang) here
21:59 noganex cpanm Mojolicious  27.31s user 1.51s system 72% cpu 39.952 total
21:59 sri -.-
22:00 noganex openbsd 5.1 with perl 5.14.2 and an old intel cpu
22:05 noganex cpanm Mojolicious  27.40s user 1.52s system 71% cpu 40.205 total
22:06 noganex debian sueeze with perl 5.10 o_O
22:06 noganex they still ship 5.10...
22:06 tm and it still works well
22:07 noganex tell that developers that have to handle a lot of utf8 data ;)
22:07 noganex they'll be happy
22:08 tm fair enough :D
22:12 noganex cpanm Mojolicious  132.52s user 8.62s system 93% cpu 2:31.36 total
22:13 noganex on my diy hylafax fax server =D
22:13 sri :o
22:14 noganex it's perl 5.10.1 there
22:16 noganex mh... i'd say 2:30 is fine for a via eden with 1 GHz
22:20 tm guess how many hosts say their http server is --> Mojolicious (Perl)
22:20 tm worldwide
22:21 tm current data
22:21 noganex i doubt you'd be able to tell.
22:21 tm I am :D
22:21 noganex what's with private networks you can't test?
22:21 noganex or ports you couldn't reach?
22:21 tm there's one guy/company that scans the whole public IPv4 space
22:21 tm public services I mean
22:22 tm he scans tcp and udp... whole IPv4 in UDP every 7h... 24/7 for many months now :D
22:22 sri many also hide or change the Server header
22:22 noganex every ip address and every port? mh... quite a few i'd say...
22:23 tm yup but how many have default header as 'Mojolicious (Perl)'?
22:23 noganex yes, like people who write crappy software that crashes when it sees X-* headers
22:23 noganex ;-)
22:23 sri i'd hope not too many, use reverse proxies people!
22:23 tm sri: apache revproxy doesn't touch header :D
22:24 tm ok... anybody wants to take a guess?
22:25 noganex tm: i've got five mojo apps running and only my dev machine sends X-Powered-By
22:25 tm ok, it's not a definite answer ... and it's not 42... but I think you may be surprised how many hosts show this header
22:26 noganex mh... i'm surprised people use X- headers in production environments.
22:26 tm guess/no guess?
22:26 tm oh they do :D
22:28 noganex weren't they experimental stuff only?
22:28 sri does that "guy/company" have a website?
22:28 tm ok some hits were picked up by shodan at shodanhq.com but this is waaaay below what was deteceted by the other guy as research
22:28 tm sri: yes, in a minute :D
22:28 dwierenga joined #mojo
22:28 tm Mojolicious (Perl) -- matched 370,106 hosts
22:29 sri no fucking way :o
22:29 tm mostly USA, then Germany, Argentina, UK, Russia
22:29 tm go figure
22:30 tm to put his work in context... he's a security researcher - quite well known
22:30 tm HD Moore
22:30 tm to know what/why... http://www.youtube.com/watch?v=Tg9Z​Avynjdk&amp;list=UU4PBNDLlS4d75MP0x​xcukGA&amp;index=7&amp;feature=plcp - his talk from BSides Las Vegas this year
22:31 noganex germany... that's where all the botchers come from ;-)
22:31 sri i'd like to see some more data
22:31 tm there's little, just UI for data
22:31 tm https://io.critical.io
22:31 tm bsides / bsides
22:32 tm jeeez, even american samoa has 1 hit!
22:32 tm oh lol, wait,...
22:32 tm damn logic trick
22:32 tm aaaaarghhhh - shoot me pls...
22:32 noganex ahm
22:33 sri haha... 203 hosts
22:33 tm space sign in search... OR not AND
22:33 noganex china? you are sure that those aren't just spammers?
22:33 * tm crawls back to his dark corner
22:33 sri but the whole data seems pretty bad
22:33 sri nginx gets just 2 million
22:33 tm shodanhq.com says 177
22:34 sri google only 200k
22:34 tm oh what a day of fail today :D
22:34 sri that's very very far from netcraft results
22:36 noganex i guess i'd use something like this to get some 'real' data: http://www.bryceboe.com/2011/02/21/using-stack​overflows-api-to-find-the-top-web-frameworks/
22:36 iFail I'll better get away from code for today and grab a drink - neutralize myself before I make any more (serious) damage :D
22:48 tqm out of curiosity... anybody here using/owns YubiKey?
22:48 noganex wow... that's a lot: http://data.stackexchange.com/stacko​verflow/revision/76661/86966/#graph
22:48 noganex (i really like the graph feature)
23:29 sri funny, by making tests faster i actually found a few new bugs :)
23:33 tqm I'm back to the code for my pet project... fixing/adding stuff as well ;)
23:46 GitHub0 joined #mojo
23:46 GitHub0 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/ca​a15b941a93a6c814569399370c8b4dd061602b
23:46 GitHub0 [mojo/master] fixed cleanup bug in Mojo::Server::Daemon and Mojo::UserAgent - Sebastian Riedel
23:46 GitHub0 left #mojo
23:49 sri that's also another second i believe :)
23:56 * noganex couldn't care less.
23:56 * noganex selects the software he uses by the number of available test cases.
23:57 noganex that thing with the X-Powered-By today wasted nearly three hours.
23:57 sri you think you don't care, but you get just as frustrated as the rest of us when something just doesn't want to finish its instalaltion ;)
23:58 noganex there's always the option to skip tests
23:58 noganex and i'm updating my packages usually when i'm sleeping ;)
23:59 sri that's what we do by default :)
23:59 sri "curl get.mojolicio.us | sh" installing mojolicious in less than 10 seconds is a pretty awesome experience
23:59 noganex nah... i'm always running the tests. how else can i be sure the software works the way it should?

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