Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-15

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

All times shown according to UTC.

Time Nick Message
00:06 SmokeMachine_ joined #mojo
00:13 nich0s joined #mojo
00:47 jnap joined #mojo
01:00 laouji joined #mojo
01:15 scott joined #mojo
01:26 nich0s1 joined #mojo
01:26 nich0s1 left #mojo
01:41 xaka joined #mojo
02:00 d4rkie joined #mojo
02:38 GitHub178 joined #mojo
02:38 GitHub178 [mojo] kraih pushed 1 new commit to master: http://git.io/sisTCA
02:38 GitHub178 [mojo/master] relax shutdown tests a little for slow machines - Sebastian Riedel
02:38 GitHub178 left #mojo
02:52 xaka joined #mojo
02:54 noganex_ joined #mojo
03:18 Psyche^ joined #mojo
03:56 GitHub160 joined #mojo
03:56 GitHub160 [mojo] kraih pushed 1 new commit to master: http://git.io/gR7QiQ
03:56 GitHub160 [mojo/master] added accept_charset, accept_encoding and content_encoding methods to Mojo::Headers - Sebastian Riedel
03:56 GitHub160 left #mojo
04:19 xaka1 joined #mojo
04:20 xaka joined #mojo
04:25 GitHub112 joined #mojo
04:25 GitHub112 [mojo] kraih pushed 1 new commit to master: http://git.io/8h4IYA
04:25 GitHub112 [mojo/master] added origin and sec_websocket_extensions methods to Mojo::Headers - Sebastian Riedel
04:25 GitHub112 left #mojo
04:38 GitHub92 joined #mojo
04:38 GitHub92 [mojo] kraih pushed 1 new commit to master: http://git.io/FuXIew
04:38 GitHub92 [mojo/master] mention RFC for all special headers - Sebastian Riedel
04:38 GitHub92 left #mojo
05:19 Britzel_ joined #mojo
05:25 sri oh, new limechat with notification support :o
05:25 sri someone mention me! :)
05:28 omega sri, use irssi :p
05:28 sri never!
05:28 sri hmm, i guess this could get annoying if people poke me too often
05:36 laouji joined #mojo
06:08 D4RK-PH0ENiX joined #mojo
06:09 D4RK-PH0ENiX joined #mojo
06:39 spleenjack joined #mojo
06:49 Vandal joined #mojo
07:21 berov joined #mojo
07:29 cosmincx joined #mojo
07:30 batman_ joined #mojo
08:00 Psyche^ joined #mojo
08:03 mire joined #mojo
08:13 taryk joined #mojo
08:20 Psyche^ joined #mojo
08:20 marcus sri: ballsnack!
08:27 tempire sri: I'm a notification
08:28 sri /o\
08:30 * tempire updates limechat
08:30 * tempire awaits a notification
08:30 * tempire AWAITS A NOTIFICATION
08:31 Netfeed tempire: good enough?
08:31 * tempire feels popular again
08:31 Netfeed \o/
08:46 * marcus wants notifications too. damn you, textual!
08:48 marcus textual has had a shitload of commits recently tho
08:48 JiYu joined #mojo
08:56 Leandr joined #mojo
08:59 * Netfeed is happy with his lack of notifications
09:01 GitHub45 joined #mojo
09:01 GitHub45 [mojo] kraih pushed 1 new commit to master: http://git.io/Um6UIw
09:01 GitHub45 [mojo/master] improved Mojo::Headers documentation - Sebastian Riedel
09:01 GitHub45 left #mojo
09:02 * sri doesn't bother with textual anymore
09:03 sri <3 limechat with twilight theme
09:04 sri looks like i won't keep my "wait a few days between releases" promise, i want to see the test fix from earlier on cpantesters :o
09:07 sri Access-Control-Allow-Origin seems to become a rather popular header
09:10 marcus horrible
09:35 sri why would anyone run a smoker with Perl 5.11.2? http://www.cpantesters.org/cpan/report​/798d0304-e5c9-11e1-90a1-db9d1111614e
09:36 sri i wasted like half an hour looking through the test before i noticed the version...
09:52 cosmincx joined #mojo
09:54 jmmills joined #mojo
09:55 Vandal :)
10:08 jmmills joined #mojo
10:12 jmmills joined #mojo
12:02 Lucas1 joined #mojo
12:08 * sri wonders if the 80 char per line limit still makes sense
12:09 crab yes
12:09 crab it prevents neck trauma
12:09 sri i don't like unlimited length either, but something like 120 chars might make more sense
12:13 nic arbitrary jumps seem a bit random
12:13 nic you should set a policy of increasing it by 1 char each year (backdated)
12:14 crab it's nice to be able to have two side-by-side windows to look at source etc., and if the code is too wide that becomes a pain.
12:14 crab nic: hah
12:14 sri good argument
12:36 CromeDome joined #mojo
12:39 * sri keeps switching between TM2 and ST2 :S
12:44 Netfeed just go with chocolate
12:44 Netfeed :P
12:44 Netfeed chocolat
12:48 crab TM2 and ST2 sound like tv shows
12:49 nic or viruses
12:49 crab human viruses, right?
12:50 nic of course
12:50 Netfeed sounds like pokemon attacks
12:50 crab sri uses tm2!
12:50 Netfeed tm2 would in most cases be dragon claw(didnt know that off hand, thank god)
12:51 nic Dr doesn't know if sri has TM2 or ST2, but suggested to keep using the ointment and come back in a week
13:00 marcus I use TM2 too
13:01 * sri caught ST2 from marcus
13:02 sri maybe TM2 too :o
13:02 marcus I really like the vimish qualities of ST2, but I feel they don't work so great with some of the features.
13:03 sri i love ST2 with the soda dark theme
13:03 sri but search in project is sooooo awful
13:05 gryphon joined #mojo
13:07 vel joined #mojo
13:25 sri marcus: btw. the perltidy plugin doesn't always work
13:25 sri if you perltidy twice it jumps to the top
13:26 labrown joined #mojo
13:27 CromeDome joined #mojo
13:28 marcus don't do that then :)
13:29 sri that solved it! \o/
13:29 nic It's to protect people from developing OCD
13:29 sri too late for me :S
13:29 nic :)
13:30 sri OCD driven development
13:34 nic To qualify as a YAPC::Europe "Regular" attendee, do you need to go to the toilet often
13:34 nic How often?
13:35 nic "I have been eating a bowl of bran each morning and it saved me 340 euros"
13:42 ryozi joined #mojo
13:46 bjoernfan 15:30          @sri | OCD driven development
13:46 bjoernfan <3
14:15 jnap joined #mojo
14:38 alester joined #mojo
14:44 inokenty joined #mojo
14:46 CromeDome joined #mojo
15:04 GitHub8 joined #mojo
15:04 GitHub8 [mojo] none pushed 3 new commits to master: http://git.io/maJYFA
15:04 GitHub8 [mojo/master] added origin and sec_websocket_extensions methods to Mojo::Headers - Sebastian Riedel
15:04 GitHub8 [mojo/master] mention RFC for all special headers - Sebastian Riedel
15:04 GitHub8 [mojo/master] improved Mojo::Headers documentation - Sebastian Riedel
15:04 GitHub8 left #mojo
15:04 hypnotoad joined #mojo
15:04 hypnotoad [mojo] none pushed 3 new commits to master: http://git.io/maJYFA
15:04 hypnotoad [mojo/master] added origin and sec_websocket_extensions methods to Mojo::Headers - Sebastian Riedel
15:04 hypnotoad [mojo/master] mention RFC for all special headers - Sebastian Riedel
15:04 hypnotoad [mojo/master] improved Mojo::Headers documentation - Sebastian Riedel
15:04 hypnotoad left #mojo
15:04 sri ah :)
15:12 bjoernfan What was the recommended way of doing render to file? Something like https://github.com/koorchik/M​ojolicious-Plugin-RenderFile ?
15:29 Britzel_ joined #mojo
15:35 good_news_everyone joined #mojo
15:35 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/wROkoQ
15:35 good_news_everyone [mojo/master] small documentation tweaks - Sebastian Riedel
15:35 good_news_everyone left #mojo
15:50 osprey_ joined #mojo
15:54 xaka joined #mojo
16:11 tabbi joined #mojo
16:12 tabbi hi, is there a simple way in mojolicious to create a background-job which runs a long lasting task without blocking the whole mojolicious server?
16:17 vel joined #mojo
16:21 berov left #mojo
16:28 jeen joined #mojo
16:29 mire joined #mojo
16:29 xaka tabbi: check for MojoX::Run on cpan, it's quite out-dated, but full of food for though
16:40 tabbi xaka: thanks. i would only need to fork a process without the need of communication between child and parent. is there a simple way to realize it?
16:42 xaka tabbi: then just fork and do what do you want, but be sure use POSIX::_exit (not CORE::exit) at the end of the job + you need SIGCHLD to reap finished processes
16:43 nic oh, I didn't know that about POSIX::_exit
16:44 nic will you please educate me more slowly, I'm running out of notepaper here
16:44 osprey_ why need _exit?
16:45 tabbi one explanation could be read on the perlfork manpage: "On some operating systems, notably Solaris and Unixware, calling exit() from a child process will flush and close open filehandles in the parent, thereby corrupting the filehandles.  On these systems, calling _exit()  is suggested instead.  _exit()  is available in Perl through the  POSIX  module.  Please consult your system's manpages for more information on this."
16:48 xaka because when you call CORE::exit, it runs GC so it can close all of your parent process handles/connections/sockets/... that are inherited during the fork. POSIX::_exit just finished the process
16:49 xaka tabbi: https://gist.github.com/eb0558b216a97f383c2a something like that would work for simple cases
16:50 tabbi okay, thanks for the snippet!
16:51 tabbi xaka: is there anything to keep in mind with the use of database handles? i use DBIx::Class and want to use the database connection in both the parent and the child
16:52 xaka i'd not do that. if it keeps connection open after every request, you're on the way to corrupt that connection using it at the same time from different processes. open a new one in job
16:52 tabbi xaka, am i right that you sub job could be used to fork another sub easily by saying job(&mybackgroundjob) ?
16:53 xaka tabbi: i just updated the snipped, check it again for usage example
16:53 xaka tabbi: the answer is yes, you can do that
16:54 tabbi thanks for your helkp
16:54 tabbi i will try to use in it my application :-)
16:54 xaka i wish mojo had that in the core with parent-child communication
16:56 tabbi that would be very comfortable
16:56 sri never gonna happen
16:57 tabbi i sometimes need something like that in web applications where huge amounts of data needs to be processed and you dont want the user to wait that long without a response
16:58 sri portable pipes, signals and process management is a mess, the real event loops should take care of that
16:58 xaka yeah, i remember you were bothering than making it cross-platform would be pain in ...
16:58 sri forking inside a web app is stupid no matter what
16:58 sri just use resque
16:58 tabbi sri: do you have another strategy for long lasting operations?
17:00 sri seriously, just punch everyone on the nose who tells you to fork in a web app :)
17:01 xaka are you boxer or what? ;)
17:02 vel joined #mojo
17:09 Leandr joined #mojo
17:24 tempire http://www.khanacademy.org/cs/all​-glory-to-the-hypnotoad/966786689
17:25 sri ALL GLORY TO THE HYPNOTOAD!
17:32 vel joined #mojo
17:37 Vandal F33L TEH POWAR OF HYPNOTOAD!
17:44 fhelmber_ joined #mojo
18:03 rem_lex|pivo joined #mojo
18:37 fhelmber_ joined #mojo
18:40 nic wow, I just stared at that hypnotoad for about a minute and now I don't want a cigarette!
18:41 nic If it works like that on people who actually smoke, it could be pretty useful
18:42 sri :D
18:43 sri http://twitpic.com/ajtmk7/full # i love the dark soda theme
18:44 sri btw. if i perltidy more than two times it appears to jump back to the right place
18:44 sri yay for ocd! \o/
18:45 Britzel_ nic: It doesn't help :) <lightscigarette>
19:05 sri the soda theme really makes me not care that ST2 is not a native os x app
19:06 sri it doesn't feel that much different from tweetbot for mac actually, which is also a little different
19:10 tabbi left #mojo
19:30 jwang joined #mojo
19:32 gryphon joined #mojo
19:38 marcus sri: #textmate claims you just need to rename your repo to mojo.tmbundle to get it automatically included.
19:39 sri huh
19:39 sri lets find out
19:40 sri marcus: done
19:43 * sri has just deleted TM2 and will try ST2 exclusively for a few days
19:45 njlg sri: what color theme are you using for ST2?
19:45 sri Soda Dark and Twilight
19:45 njlg twilight... lemme check that out
19:46 * sri almost wrote "/me is a big twilight fan"...
19:46 marcus lolwut
19:46 njlg hmm. doesn't look good with my fonts. =( MacOS has the best font rendering
19:46 njlg haha
19:46 sri i use the Consolas font from windows :o
19:47 marcus I noticed that linux has really crappy font rendering when I tried it in parallels
19:47 marcus but then, I guess it's not fair doing it on a retina mbp
19:47 sri no fair
19:47 njlg no, i got native Linux and its crappy
19:47 njlg =)
19:54 marcus sri: btw, have you gotten the sublime text build system to work well? I tried hard to get it to run prove on unit tests, but no luck.
19:55 sri not tried that yet
19:55 sri still working on my basic workflow :)
19:56 marcus sri: re the textmate bundle, seems like api.textmate.org is secret sauce.
19:56 sri hmm
19:59 sri not sure i want to use the build system, have an open terminal window all the time anyway
20:02 vel joined #mojo
20:07 atom12 joined #mojo
20:12 marcus tempire: https://github.com/heroku/heroku-buildpack​-ruby/blob/0bca067617212f670cc6e1ea3fcbdba​0c04df3dc/lib/language_pack/rails3.rb#L32 <- should we be doing something like that in the mojolicious buildpack?
20:14 xaka joined #mojo
20:16 atom12 I have postgres database that is constatly getting new rows.  Evertime the DB gets a new row, I'd like it to push to a webpage.  I know I'd use a websocket, but how would the websocket monitor for a new DB entry?
20:17 atom12 Something like AnyEvent?
20:28 xaka joined #mojo
21:10 njlg joined #mojo
21:19 nich0s joined #mojo
21:29 gryphon joined #mojo
21:40 stephan48 atom12: deliver the id of the latest entry and then search for newer entrys than that
21:43 lammel2 joined #mojo
21:47 lukep joined #mojo
23:38 nich0s1 joined #mojo
23:53 batman_ joined #mojo
23:56 kthakore hello
23:57 kthakore what can I use to stress test a server ?

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