Camelia, the Perl 6 bug

IRC log for #mojo, 2012-02-19

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

All times shown according to UTC.

Time Nick Message
00:12 vel joined #mojo
00:53 GitHub119 joined #mojo
00:53 GitHub119 [mojo] kraih pushed 1 new commit to master: http://git.io/ErmKdg
00:53 GitHub119 [mojo/master] fixed bug that can prevent foreign event loops from being able to control Mojo::IOLoop - Sebastian Riedel
00:53 GitHub119 left #mojo
01:15 tempire joined #mojo
01:26 jnap joined #mojo
01:41 ccushing joined #mojo
02:01 GabrielVieira joined #mojo
02:18 alnewkirk joined #mojo
03:32 * tempire the air is rich down here, amongst all the Ts
03:32 * tempire shakes fist at all the operators
03:33 tempire we're coming for you!
03:47 garu tempire: there, there :)
03:48 tempire damnit.
03:48 * tempire sells out
04:23 tempire we really need an irc web app for the channel.
04:23 tempire something fully featured, or featured enough
04:24 tempire would be great to have people just link directly hear from the mojocasts
04:24 tempire *here
04:24 tempire maybe it's time I finally took the time to care about websockets
04:27 hshong joined #mojo
04:51 tempire is xantus' irc thing the latest web socket example for mojolicious on the webs?
04:54 tempire other than the mojolicious provided examples, of course
05:29 Kulag joined #mojo
05:33 jamesw joined #mojo
05:41 jamesw joined #mojo
06:05 alnewkirk joined #mojo
06:07 AoEKiller joined #mojo
06:45 ki0 joined #mojo
07:52 Foxcool joined #mojo
08:05 hshong joined #mojo
08:08 kaare joined #mojo
08:32 hshong joined #mojo
09:16 xantus[] joined #mojo
10:03 black joined #mojo
10:40 yko joined #mojo
11:02 tempire finally.  http://stylebootstrap.info/
11:32 apsodkasd joined #mojo
11:32 apsodkasd Hi!
11:33 apsodkasd I have a problem with Morbo...
11:35 apsodkasd "Can't create listen socket: Indirizzo già in uso at /usr/local/share/perl/5.12.4/Mojo/IOLoop.pm line 154
11:35 apsodkasd at /usr/local/share/perl/5.12.4/Mojo/IOLoop/Server.pm line 123" How can I fix?
11:35 marty joined #mojo
11:39 mattastrophe joined #mojo
11:41 trone apsodkasd: your 3000 port is already in use. use -l option to change it.
11:41 apsodkasd trone, An example?
11:44 trone apsodkasd: morbo  --help provide example. morbo -l "http://*:3001" app ← if you have 3001 not in use. You should know which ports you are using...
11:44 apsodkasd But my port 3000 is already used by morbo istance!
11:44 apsodkasd *instance
11:45 trone apsodkasd: indeed: 12:41 < trone> apsodkasd: your 3000 port is already in use. use -l option to change it.
11:46 apsodkasd But I want kill morbo instance. Killall not work.
11:46 GitHub33 joined #mojo
11:46 GitHub33 [mojo] kraih pushed 1 new commit to master: http://git.io/n-AyxQ
11:46 GitHub33 [mojo/master] removed experimental status from drain event in Mojo::Content - Sebastian Riedel
11:46 GitHub33 left #mojo
11:47 trone apsodkasd: your problem isn't morbo...
11:48 apsodkasd trone, explain please.
11:54 xantus[] find the pid and send a kill -TERM
11:54 apsodkasd ok thanks.
12:04 inokenty joined #mojo
12:09 black joined #mojo
12:12 sri tempire: a small bugfix release might be nice, the ioloop thing could cause a lot of trouble
12:13 sri stuff like a blocking user agent request crashing an anyevent based server
12:16 d4rkie joined #mojo
12:22 marcus sri: I can do it?
12:22 sri marcus++
12:26 briang joined #mojo
12:30 noganex_ joined #mojo
12:32 marcus it is done
12:33 sri \o/
12:33 marcus pushed,tagged and tweeted.
12:33 sri marcus++
12:38 GitHub147 joined #mojo
12:38 GitHub147 [mojo] kraih pushed 1 new commit to master: http://git.io/i-t33Q
12:38 GitHub147 [mojo/master] renamed AUTHOR section to PROJECT FOUNDER - Sebastian Riedel
12:38 GitHub147 left #mojo
12:43 bobkare joined #mojo
12:46 GitHub37 joined #mojo
12:46 GitHub37 [mojo] kraih pushed 1 new commit to master: http://git.io/3mOI6A
12:46 GitHub37 [mojo/master] better description of Mojo::IOWatcher behavior - Sebastian Riedel
12:46 GitHub37 left #mojo
12:46 crab does hypnotoad --stop ./myapp also call startup?
12:47 sri yes
12:49 crab well.
12:50 sri configuration is stored in the app, so we need a full start
12:50 jamesw joined #mojo
12:50 sri not to mention the fact that it ensures the app is in a stable state before doing anything
12:51 crab i'd better figure out some way to make my startup a bit smarter.
12:56 sri i would very much advice against long running tasks during startup
12:57 sri or you will have to extend zero downtime restart timeouts, making them much less useful
13:14 d4rkie joined #mojo
13:19 trone http://pastebin.ca/2119952 ← looking for a more elegant way (if exists) to avoid the redirect /wedds to /wedds/… . Unfortunately, I believe to need this to show the html static file with the right relative hyperlink … Advices?
13:28 alnewkirk joined #mojo
13:38 inokenty joined #mojo
13:38 inokenty left #mojo
13:49 hshong joined #mojo
13:56 marty joined #mojo
14:33 briang joined #mojo
14:44 cbetti joined #mojo
14:46 * sri wonders if to_psgi should be renamed to to_psgi_app
14:47 cbetti new to mojo, and I just discovered form_for.
14:47 sri Mojo::Server::PSGI->new->to_psgi vs Mojo::Server::PSGI->new->to_psgi_app
14:48 Netfeed create_app?
14:49 sri Netfeed: explain
14:49 Netfeed we already know that it's a psig app from the class name?
14:49 Netfeed psgi*
14:50 sri how do we know create_app is not about the Mojo app?
14:50 sri the class inherits ->app and ->app_class from Mojo::Server
14:50 sri not to mention ->load_app
14:50 cbetti I put 'form_for xxx => @attrs => begin' in a template reached from controller "A", but I want to submit the for to action 'xxx' on controller "B". The url generated goes to "A::xxx". Is there a way to specify this?
14:51 Netfeed sri: well, that's true
14:52 Poundyz joined #mojo
14:52 Poundyz hi all
14:53 Poundyz does anyone here tried dbix::custom with sql function on the where clause ?
14:53 Poundyz e.g., "SELECT * FROM <table> WHERE DATE_TRUNC('month' FROM lastupdate) = ?"
14:55 GitHub113 joined #mojo
14:55 GitHub113 [mojo] kraih pushed 1 new commit to master: http://git.io/2AnQww
14:55 GitHub113 [mojo/master] renamed to_psgi method in Mojo::Server::PSGI to to_psgi_app - Sebastian Riedel
14:55 GitHub113 left #mojo
14:55 sri that makes the most sense imo
14:59 crab sri: the task in question is seeding my PRNG with "good" quality randomness from /dev/random
14:59 sri crab: and that takes long?
14:59 crab sri: and doing it more often than necessary is both impolite and horrendously slow on systems (VMs in particular) with limited entropy availability.
14:59 sri i see
15:00 crab on this particular VM, it takes ~2 *minutes* to run hypnotoad --stop ./app sometimes.
15:00 sri Oo
15:03 boo joined #mojo
15:18 d4rkie joined #mojo
16:03 ki0 joined #mojo
16:11 batman joined #mojo
16:29 crab i wonder what to do about it. i can't think of an easy solution.
16:40 crab it's one thing that i *want* to do before i fork, i can't just read from /dev/random whenever i feel like.
16:42 vervain crab: Do you need random or would urandom suffice?
16:43 crab i need random.
16:44 crab i wouldn't be reading from random if urandom would suffice (not that it wasn't a good idea for you to ask, of course).
16:46 vervain nod
16:46 cbetti have you determined if /dev/random is slow in your case because you've exhausted the kernel's entropy pool, or because each call is too slow?
16:47 Elraraniel joined #mojo
16:48 cbetti crab: ah, I see your earlier comment about entropy availability.
16:49 cbetti crab: I think you're out of luck if you can't run an entropy collection daemon on the machine.
16:52 crab well, there must be some way to avoid exhausting the pool fro nothing when i run hypnotoad --stop
16:53 crab i'll figure something out eventually.
17:03 crab what's a suitably modern entropy collection daemon, anyway?
17:04 sri crab: you could also just use the signal ;)
17:05 crab sri: yes, that's what i started doing, but still
17:06 sri if you start messing around with env vars it just gets messy
17:06 crab yes. i experimented with a $ENV{FAST_STARTUP} for command-line utils that load up the app just to get configuration data
17:07 crab but ti wasn't very easy to decide what to fast-startup and what not.
17:07 sri personally, i would always want fast startup
17:07 sri and work towards that goal
17:08 sri it's not just --stop, your zero downtime deploys will take minutes too
17:08 crab yeah.
17:08 crab yeah, they do.
17:10 sri for cleanup tasks i suppose you could even use a timer to push them down to a worker
17:11 sri have a small lock so only the first worker does the work, while the others already start handling requests :)
17:11 * sri gets creative
17:22 bobkare joined #mojo
17:39 Mad_Dud joined #mojo
17:54 crab hm. i wouldn't mind doing that. less setup if one doesn't have to stick things in a crontab.
18:27 baton8 joined #mojo
18:40 baton8 joined #mojo
19:10 yko joined #mojo
19:17 black joined #mojo
19:37 mattastrophe joined #mojo
19:48 yko joined #mojo
20:22 perlite joined #mojo
20:37 lukep joined #mojo
21:04 * tempire channels sri: https://github.com/seedifferently/the-​great-web-framework-shootout/issues/6
21:05 * sri quickly vanishes in a cloud of smoke again
21:06 sri anyone taking that serious, please don't ever talk to me again :)
21:12 migo joined #mojo
21:28 Mad_Dud joined #mojo
21:33 Mad_Dud- joined #mojo
21:34 omf_ What ever happened to actual benchmarks that meant something? With controlled variables, a proper write and of course the scientific method?
21:38 sri http://www.youtube.com/watch?featur​e=player_embedded&amp;v=bzkRVzciAZg # that happened :)
21:53 omf_ This video is awesome
21:59 migo joined #mojo
21:59 lukep joined #mojo
21:59 mattastrophe joined #mojo
21:59 baton8 joined #mojo
21:59 marty joined #mojo
21:59 AoEKiller joined #mojo
21:59 ccushing joined #mojo
21:59 kitt_vl joined #mojo
21:59 Netfeed joined #mojo
21:59 mateu joined #mojo
21:59 geira joined #mojo
21:59 rafl joined #mojo
21:59 memowe joined #mojo
21:59 tholen42 joined #mojo
21:59 fhelmber_ joined #mojo
21:59 gabiruh joined #mojo
21:59 mattp joined #mojo
21:59 cxreg joined #mojo
21:59 tinx joined #mojo
21:59 ereslibre joined #mojo
21:59 dryman joined #mojo
21:59 jmmills joined #mojo
21:59 ruz joined #mojo
21:59 charsbar_ joined #mojo
21:59 nuba joined #mojo
21:59 DaTa joined #mojo
21:59 atrodo joined #mojo
21:59 hernan joined #mojo
21:59 diegok joined #mojo
21:59 mikegrb_ joined #mojo
21:59 robinsmidsrod joined #mojo
21:59 pooka joined #mojo
21:59 marcus joined #mojo
21:59 paul joined #mojo
21:59 maluco joined #mojo
21:59 sherr_ joined #mojo
21:59 janus joined #mojo
21:59 jegade joined #mojo
21:59 junkpiano joined #mojo
21:59 keedi joined #mojo
22:06 kkrev joined #mojo
22:31 trek1s joined #mojo

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