Camelia, the Perl 6 bug

IRC log for #mojo, 2012-10-17

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

All times shown according to UTC.

Time Nick Message
00:05 mandreacchio joined #mojo
00:10 drift joined #mojo
00:32 mandreacchio_ joined #mojo
00:45 Averna joined #mojo
00:48 mandreacchio joined #mojo
01:06 mandreacchio joined #mojo
01:10 bc547 joined #mojo
01:14 laouji joined #mojo
01:15 mandreacchio joined #mojo
01:15 robinsmidsrod joined #mojo
01:16 spacebat joined #mojo
01:29 d4rkie joined #mojo
01:53 Foxcool joined #mojo
01:56 bc547 joined #mojo
02:13 bc547_ joined #mojo
02:17 davido joined #mojo
02:18 mandreacchio joined #mojo
02:42 mandreacchio joined #mojo
02:46 noganex_ joined #mojo
03:00 bc547 joined #mojo
03:06 mandreacchio_ joined #mojo
03:20 vel joined #mojo
04:29 xaka joined #mojo
04:47 alnewkirk how should I deal with variables in the template that may not exist?
04:51 mandreacchio joined #mojo
05:09 crab if (stash('...')) { ... }
05:18 vishwanathms_ joined #mojo
05:20 alnewkirk oh cool
05:20 alnewkirk thanks crab
05:42 kevouze joined #mojo
06:07 dpetrov_ joined #mojo
06:09 mandreacchio joined #mojo
06:10 ovnimancer joined #mojo
06:14 spleenjack joined #mojo
06:48 DaTa hm... i have $r->route("/latest")->name("latest"); ->uri_for("latest", format=>"xml") results in /latest/.xml, any idea how to ged rid of the second slash?
06:50 marcus O/
06:55 marcus Mooo
06:56 tempire *tips*
06:56 DaTa s/uri_for/url_for/;s/ged/get/;
06:57 DaTa ENOSLEEP
07:01 Vandal joined #mojo
07:05 thaljef joined #mojo
07:05 arthas joined #mojo
07:07 Kwa joined #mojo
07:07 thaljef1 joined #mojo
07:14 yakudza_ joined #mojo
07:16 batman joined #mojo
07:20 Mike-PerlRecruiter_ joined #mojo
07:23 duncanthrax_work joined #mojo
07:39 pau4o joined #mojo
07:39 fhelmber_ joined #mojo
07:43 Mad_Dud joined #mojo
07:54 cosmincx joined #mojo
07:57 heytrav joined #mojo
08:37 yakudza__ joined #mojo
08:37 rhaen_ithreads joined #mojo
08:38 rhaen_ithreads Good morning
08:38 purl Lies!
08:38 rhaen_ithreads Was?
08:38 purl (not was)
08:38 rhaen_ithreads I like this channel bot.
09:07 buu It peers into your soul.
09:24 yakudza_ joined #mojo
09:28 rem_lex|pivo joined #mojo
09:30 pau4o joined #mojo
09:31 crab through your ears?
09:37 crab wait, maybe i don't want to know.
09:40 gensym joined #mojo
09:43 Britzel joined #mojo
09:52 kitt_vl joined #mojo
10:29 abra joined #mojo
10:39 AmeliePoulain joined #mojo
10:45 ObseLeTe joined #mojo
10:57 spleenjack joined #mojo
12:03 daxim joined #mojo
12:13 kitt_vl joined #mojo
12:14 d4rkie joined #mojo
12:14 baton8 joined #mojo
12:17 Lucas1 joined #mojo
12:24 sri \o\
12:24 sri /o/
12:31 basic6 joined #mojo
12:48 * sri assumes crab and marcus are neutral on the prompt thing
12:52 jnap joined #mojo
12:52 jnap_ joined #mojo
13:14 batman sri: i think you posted a link about steps a while back. do you remember the url?
13:17 sri nope
13:18 sri i can onlt think of http://mojolicio.us/perldoc/Mojoliciou​s/Guides/Cookbook#Backend_web_services
13:18 sri s/t/y/
13:40 gryphon joined #mojo
13:43 michaelfung joined #mojo
13:44 michaelfung Good morning!
13:44 purl Lies!
13:47 batman sri: i was thinking about how it was done in js, ruby ++
13:47 batman maybe i'm not remembering correctly
13:48 michaelfung I need to develop a push app server to handle 100K clients(mostly idle). Can mojolicious scale to that number?
13:49 batman michaelfung: don't think that's possible. you only have 65k ports on a computer
13:50 batman sorry!
13:50 batman don't listen to me
13:50 * batman hides
13:50 michaelfung Hi batman, the server listens on one port only, so no 65k limit.
13:51 batman <--- what a complete moron
13:51 batman michaelfung: then i guess it's only one way to find out...
13:52 michaelfung so...
13:52 nicomen you should be able to emulate that using two boxes ;)
13:54 michaelfung I know, but I am lazy and want quick answer from other's experience, :)
13:57 batman michaelfung: if nothing happens, then mojo should not do much either
13:57 jnap joined #mojo
13:58 batman so i guess the interesting part is what EV::run(EV::RUN_ONCE) does with all those sockets
13:58 michaelfung I don't know how it handles the huge no. of sockets...
13:58 batman nevermind that line. oh. crapy. i really need to get som sugar :(
13:58 batman *bbl*
14:00 michaelfung i have test with AE and found the loop eats much resource.
14:00 michaelfung and AE use EV.
14:02 vishwanathms joined #mojo
14:02 vishwanathms_ joined #mojo
14:10 sh4 joined #mojo
14:16 Foxcool joined #mojo
14:26 sri michaelfung: if you have the RAM there shouldn't be a problem, just make sure EV is compiled to use epoll/kqueue
14:27 sri i don't actually know if 100k fds works with poll(), but should be rather slow even if it does
14:28 sri with hypnotoad you of course have the advantage of scaling to multiple workers, so 10 workers would result in 10k for each worker
14:29 sri 100 workers = 1k per worker... that should work ok even with poll()
14:30 sri so if your server is configured right, the only limit is RAM
14:32 * sri rarely gets to test and profile mojolicious at such scales though, there may still be many optimizations that can be made in mojolicious
14:32 sri batman: https://github.com/creationix/step
14:32 nicomen michaelfung: if you bother to do some testing, please publish the results ;)
14:33 sri with details about the server configuration!
14:33 batman sri: thanks
14:34 sri i imagine it is very easy to set a wrong kernel parameter and have the whole thing fall over pretty easily
14:41 knshaum joined #mojo
14:54 mauriez joined #mojo
14:56 mauriez Hi! when trying to deploy to Heroku, I keep getting a message saying there is no key at Heroku yet (while there is) and then when trying to upload that i'm getting some nasty uninitialized values..  - http://pastebin.com/8E49x0vU
14:56 mauriez any idea ?
14:56 purl any idea is welcomed.
15:19 michaelfung sri: many thanks!
15:29 pau4o left #mojo
15:41 labrown joined #mojo
15:58 xaka joined #mojo
16:10 thaljef joined #mojo
16:19 vishwanathms joined #mojo
16:19 vishwanathms_ joined #mojo
16:39 vishwanathms_ joined #mojo
16:40 vishwanathms joined #mojo
16:42 inokenty joined #mojo
16:56 marcus o/
16:56 sri \o
16:56 * marcus is at a pub to download Revenge s2e3
16:56 sri :o
16:56 marcus (and drink beer)
16:57 sri that's not too soapy for you?
16:57 sri new walking dead episode was the best in the whole series
16:58 marcus oh, thought you meant the beer first :D
16:58 sri :)
16:58 marcus I've soo given up on walking dead
16:58 marcus wife is a huge revenge fan, so it's allright with me.
16:58 sri it is good now!
16:58 marcus it's not so bad
16:58 marcus might get new homeland too
16:58 sri also pretty good
16:59 sri but seriously, watch the walking dead episode, they've changed everything
16:59 marcus ok, but I'm not going to get olga to watch it regardless.
16:59 marcus I'll check it out I guess.
17:00 sri no more talking, just zombie killing
17:02 sri guess i should watch Arrow too
17:10 marcus I still manage to get UV to segfault btw :)
17:10 sri /o\
17:39 tempire mauriez: screenshot/paste of the command you're typing in, and all the output.  or a screenr capture.
17:52 thaljef joined #mojo
18:18 mauriez tempire: http://pastebin.com/vg9kePi8
18:18 mauriez tnx :)
18:22 mauriez heroku does have my keys.. dont understand why i need re-add them
18:25 alester joined #mojo
18:35 yakudza joined #mojo
18:57 Adura Where'd Imptoved tests go?!
19:04 batman joined #mojo
19:06 tempire mauriez: it's reading your api key from ~/.heroku/credentials
19:06 tempire does that file exist, and does it have the username/api key in it?
19:09 tempire also, if you want to specify a name, you want the -n option
19:19 fhelmber_ joined #mojo
19:20 vervain joined #mojo
19:21 Mike-PerlRecruiter_ joined #mojo
19:32 mauriez tempire: file is there, only has my email address.. specified the name and api-key using -n and -a gives me the same error
19:33 ObseLeTe joined #mojo
19:43 good_news_everyone joined #mojo
19:43 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/g8kNdQ
19:43 good_news_everyone [mojo/master] added synopsis example for Mojo::HelloWorld - Sebastian Riedel
19:43 good_news_everyone left #mojo
19:48 tempire mauriez: remove the credentials file, try again
19:49 tempire it should retrieve the api key, place it in the file, and do everything for you
19:50 mauriez will do that
19:51 * sri wonders if this method gets used already http://mojolicio.us/perldoc/​Mojo/UserAgent/CookieJar#all
19:52 tempire hmm
19:52 tempire looks like heroku has changed their api
19:52 sri bad heroku!
19:57 batman is it so that if something is scheduled at the same time, then it is random for which event that is executed?
19:58 batman like $loop->timer(0 => sub { warn 1 }); $loop->timer(0 => sub { warn 2 });
19:58 batman looks like warn 1 might come after 2
19:58 sri i believe it's undefined
19:58 batman ok.
19:59 sri better not to make guarantees if we want to support more event loops
19:59 batman no problem. just curious
20:04 tempire nevermind.  heroku did not change their api.  just deprecated the bamboo stack.
20:04 tempire mauriez: don't disappear - I'm going to need some more information from you since I can't duplicate the issue.
20:05 thaljef joined #mojo
20:08 batman sri: yay! i'm watching the udp sockets with mojo-reactor now :)
20:08 batman ...in my Mojo::SNMP module
20:08 batman i think it's ready for CPAN :)
20:08 sri \o/
20:09 xaka joined #mojo
20:09 batman https://github.com/jhthorsen/mojo-snmp/blo​b/master/lib/Mojo/SNMP/Dispatcher.pm#L133
20:09 batman oh! i need to check for memory leaks...
20:11 sri batman: what do you think about the reactor api, usable?
20:12 sri (aside from it being pretty low level of course)
20:14 batman except of the order of io() and watch() i think it's super simple
20:15 batman i wish i had it a loooooong time ago, so i didn't have to learn myself poe :(
20:15 sri what about the order?
20:15 batman it's not intuitive to me that you can't do watch() before io().
20:15 batman but it's no big deal
20:16 sri i see, but what would an i/o watcher do without a callback? :)
20:17 batman sri: we've had this discussion before :)
20:17 batman when i was writing my "wheel" or "run" module @work
20:17 sri hmm, that could be
20:17 sri like months ago i believe
20:18 batman yes
20:18 batman i just think the api is almost too simple. it's super thin and super smooth to work with.
20:18 sri that must have been when i added the better synopsis examples :)
20:19 batman "Note that this method requires an active I/O watcher."
20:19 batman yeah
20:21 batman hm... looks like Net::SNMP is leaking :S
20:22 good_news_everyone joined #mojo
20:22 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/Kbyapg
20:22 good_news_everyone [mojo/master] better reactor example for Mojo::IOLoop - Sebastian Riedel
20:22 good_news_everyone left #mojo
20:22 batman https://gist.github.com/3907913
20:23 batman am i reaking that right^ ?
20:23 batman *reading
20:24 sri if it says there is a leak there is a leak
20:24 batman but it's inside Net::SNMP right?
20:25 sri hard to say, i suck at reading those cycle reports
20:25 batman :)
20:36 lukep joined #mojo
20:42 batman yup. it's leaking :( better open a ticket then..
20:46 gryphon joined #mojo
21:06 thaljef joined #mojo
21:11 thaljef joined #mojo
21:28 batman https://github.com/jhthorsen/mojo-snmp#description <-- does the DESCRIPTION sell? :)
21:37 rhaen_fork joined #mojo
21:37 rhaen_fork hep!
21:44 rhaen_fork hm, here is a simple question. Can I use ojo to dump the full request on stdout (shell) - as a testing method what parameters are passed in a request from web server?
21:44 batman MOJO_USERAGENT_DEBUG=1
21:44 purl i heard MOJO_USERAGENT_DEBUG=1 was such a simple thing, but it makes M::UA better for client work than every library in every language.
21:45 rhaen_fork oh, I want to start a server - not using a request.
21:45 batman MOJO_DAEMON_DEBUG=1
21:45 rhaen_fork so for debugging purposes I want to start a server and have another server proxying a request to it.
21:45 rhaen_fork stupid me.
21:46 batman ?
21:47 rhaen_fork ok, this is a lot output as I see the server anwer, too.
21:47 rhaen_fork Actually I only need the req.
21:48 batman do you have a callback or something? print $self->req->as_string; ?
21:48 batman $self = $_[0], $c, shift or something...
21:48 rhaen_fork oh, lemme check the daemon docs
21:48 batman the controller object
21:49 rhaen_fork hang on. I have several web servers who are used as a proxy for other web servers.
21:49 rhaen_fork one way to look inside their traffic is by using tcpdump
21:49 rhaen_fork or mod_dumpio
21:49 batman sorry. it's to_string() not as_string()
21:49 rhaen_fork So I want to use a simple Mojo one liner to fire up a web server, receive the req and dump it.
21:50 rhaen_fork so that I can look into the x-forwarded headers
21:51 vervain joined #mojo
21:55 batman perl -Mojo -E 'a("/*any"=>sub{print $_[0]->req->headers->to_st​ring;$_[0]->render_text("i am a proxy")})->start' daemon
21:55 rhaen_fork thanks.
21:56 rhaen_fork ah. got the error in my thinking.
21:58 ObseLeTe joined #mojo
22:01 ObseLeTe joined #mojo
22:02 kevouze joined #mojo
22:06 mandreacchio joined #mojo
22:12 rhaen_fork huh. Bedtime!
22:12 purl Okay, enough. Bedtime for you!
22:12 rhaen_fork cya later!
22:26 jzawodn joined #mojo
22:59 Averna joined #mojo
22:59 yakudza joined #mojo
23:10 sri oh, meteor now has authentication, interesting http://www.meteor.com/blog/2012/10/18/meteor-0​50-authentication-user-accounts-new-screencast
23:12 mandreacchio joined #mojo
23:21 sri pretty impressive screecast too http://www.meteor.com/authcast
23:22 sri the example code is almost impossible to read, but the result is pretty :)
23:28 tempire they really need to do something about that website.
23:29 sri the background is cute though
23:29 tempire it's too much
23:30 tempire why is meteor not going to take over the world?
23:30 tempire you had a theory, I thought.
23:30 sri that theory is out the window now
23:31 sri i think they are killing rails
23:31 sri mongodb api on the client side, client/server sync for everything, authentication...
23:32 sri pretty sure my theory was lack of authentication
23:33 tempire there was also the having to use javascript.
23:33 sri ultimately that will be an advantage
23:33 tempire I think so too.
23:34 tempire especially with all the compile to javascript stuff
23:34 sri with all the kids learning to code with javascript from khan academy now
23:34 tempire oh yeah, that khan academy stuff is so cool.
23:34 * sri always said client/server sync is huge, if you make it work with auth you win
23:35 sri they migth just be a little early though
23:35 tempire the hardest part is getting people to understand.
23:35 tempire that will take a while, I think.
23:35 sri the workd is not ready for heavy browser apps
23:35 sri *world
23:37 tempire does postgres to map/reduce?
23:38 tempire *do
23:40 tempire oh dear
23:40 tempire that is quite the block of example code.
23:41 tempire they need to level up their screencasts, too
23:41 mandreacchio joined #mojo
23:41 tempire they're making too many assumptions.
23:41 tempire I guess this is more of announcement, though.
23:42 sri the more i learn about mongodb the more stupid the rants sound
23:42 tempire the rants about how mongodb is dumb?
23:42 sri yea
23:43 tempire I'm tired of programming.
23:43 tempire what else is there?
23:43 tempire maybe botany
23:45 sri lets start a landscaping business
23:45 tempire I would need to figure out a way to apply all my algorithm knowledge to plants.
23:46 sri hedge maze design?
23:47 * tempire wonders if hedge maze firms care about the probable time needed for someone to get through the maze.
23:48 tempire I could plant some flowers according to name in n log n time
23:48 * tempire updates his resume
23:49 tempire I've been thinking about taking the next to year to study design
23:56 sri do it while you're still young
23:56 tempire old people can't learn design?
23:58 sri hard to change careers for old people
23:59 tempire I can just use the sri™ method
23:59 tempire remove all online pictures of myself

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