Camelia, the Perl 6 bug

IRC log for #mojo, 2012-08-03

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

All times shown according to UTC.

Time Nick Message
00:08 phillipadsmith joined #mojo
01:01 laouji joined #mojo
01:02 asarch joined #mojo
01:23 GitHub170 joined #mojo
01:23 GitHub170 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/50​2dae36e6805b5c2e6e2956aac32531e650551e
01:23 GitHub170 [mojo/master] added get_start_line and parse_start_line methods to Mojo::Message, Mojo::Message::Request and Mojo::Message::Response - Sebastian Riedel
01:23 GitHub170 left #mojo
01:24 laouji joined #mojo
01:24 sri best names i could come up with
01:25 alester_ joined #mojo
01:26 zhutingting joined #mojo
01:27 sri nobody will ever use those, it's just about correctness
01:57 d4rkie joined #mojo
01:57 GitHub163 joined #mojo
01:57 GitHub163 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/ef​57cfc88c7be9babce6eea91fb56bdfaa279958
01:57 GitHub163 [mojo/master] pass buffer reference to parse_start_line - Sebastian Riedel
01:57 GitHub163 left #mojo
02:05 noganex_ joined #mojo
02:11 GitHub23 joined #mojo
02:11 GitHub23 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/67​d0fba8676703476a4699ffaf02d9d8398ee069
02:11 GitHub23 [mojo/master] removed state management from parse_start_line - Sebastian Riedel
02:11 GitHub23 left #mojo
02:22 scott joined #mojo
02:37 Psyche^ joined #mojo
02:44 amirite joined #mojo
03:01 xaka joined #mojo
03:16 GitHub194 joined #mojo
03:16 GitHub194 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/ee​0f6bc90c14b40beb4341e5c45282ec48b57616
03:16 GitHub194 [mojo/master] Mojo::Message does not need to know about CGI environments - Sebastian Riedel
03:16 GitHub194 left #mojo
03:47 zhutingting joined #mojo
04:16 asarch joined #mojo
04:22 amirite how can i fork a process to do something in a non-blocking way from a mojo lite app
04:23 baton8 joined #mojo
04:58 xaka amirite: fork + sigchild + pipe + mojo::reactor are your friends
05:08 amirite tried it with a fork that does { sleep 10; write to a file; }, didn't consider sig{child} or sig{pipe}
05:08 amirite can you give me a conceptual example
05:14 laouji joined #mojo
05:15 xaka amirite: http://search.cpan.org/~bfg/Mo​joX-Run-0.15/lib/MojoX/Run.pm (old-style mojolicious plugin, but you learn a lot from it)
05:30 Britzel joined #mojo
05:32 xaka1 joined #mojo
05:46 zhutingting joined #mojo
05:58 zhutingting1 joined #mojo
06:00 Foxcool_ joined #mojo
06:10 ovnimancer joined #mojo
06:15 spleenjack joined #mojo
06:25 laouji joined #mojo
07:02 Leandr joined #mojo
07:12 Vandal joined #mojo
07:20 pau4o joined #mojo
07:28 taryk joined #mojo
07:30 zhutingting joined #mojo
07:36 zhutingting1 joined #mojo
07:41 fhelmber_ joined #mojo
07:41 zhutingting joined #mojo
07:42 Leandr joined #mojo
07:44 mire joined #mojo
07:45 davido joined #mojo
07:51 zhutingting joined #mojo
08:59 scott__ joined #mojo
09:01 marcus tempire: the heroku deploy thing keeps asking me for credentials every time?
09:01 marcus tempire: shouldn't it save it or something?
09:01 tempire it saves it in ~/.heroku/credentials
09:02 tempire saves the username & the api secret retrieved from heroku
09:02 marcus tempire: it doesn't seem to be able to read that here
09:02 marcus the heroku command works, but the deployment asks again every time
09:02 tempire does the file exist?
09:02 scott joined #mojo
09:02 marcus yes
09:03 tempire diego had that problem a while back as well
09:05 tempire works fine here...do you have a moment to help me debug it?
09:08 tempire Mojolicious/Command/deploy/heroku.pm, the problem would have to be in the save_local_api_key sub, line 239
09:12 tempire Oh, the ~/.heroku/credentials file should look like this: https://gist.github.com/3246144
09:13 tempire it reads the file @ line 256, in the local_api_keys ub
09:14 tempire *sub
09:15 scott joined #mojo
09:40 rem_lex joined #mojo
09:51 lukep joined #mojo
09:56 bjoernfan sri: Sent you a pull request on github, I hope i did things right. First time actually using github for something.
09:56 bjoernfan Documentation typo.
09:56 bjoernfan Just realised I never checked any branches for a fix, but I'm pretty sure you would have have merged it to master directly anyways, if you noticed it yourself.
10:02 GitHub120 joined #mojo
10:02 GitHub120 [mojo] amenonsen pushed 2 new commits to master: https://github.com/kraih/mojo/com​pare/ee0f6bc90c14...f9acff331b6e
10:02 GitHub120 [mojo/master] Fixed documentation typo (broken link) - Björn Pettersson
10:02 GitHub120 [mojo/master] Merge pull request #364 from bjoernfan/master - Abhijit Menon-Sen
10:02 GitHub120 left #mojo
10:02 bjoernfan Yaaay, now bjoernfan's the popular one!
10:03 marcus tempire: sorry, went into a meeting.
10:03 marcus tempire: my credentials file looks like that.
10:04 daxim joined #mojo
10:16 tempire is there a newline at the end of the api key?
10:16 tempire marcus: ^
10:17 cosmincx joined #mojo
10:22 tempire I have no idea what's wrong, but if you have the time, I would be sooo thankful if you could drop a debug statement at Mojolicious/Command/deploy/heroku.pm line 257, above the chomp.
10:22 tempire has to be something in that sub
10:25 zipkid left #mojo
10:28 cosmincx joined #mojo
10:29 mire joined #mojo
10:30 spleenjack joined #mojo
10:32 Lucas1 joined #mojo
11:23 marcus tempire: was out again, but I will.
11:58 mire joined #mojo
12:18 batman joined #mojo
12:18 bjoernfan joined #mojo
12:26 * sri yawns
13:07 CromeDome joined #mojo
13:11 sri is everyone ok with get_start_line and parse_start_line?
13:11 sri https://github.com/kraih/mojo/blo​b/master/lib/Mojo/Message.pm#L736
13:11 sri https://github.com/kraih/mojo/blo​b/master/lib/Mojo/Message.pm#L639
13:12 sri the relationship between get_start_line, get_start_line_chunk and build_start_line is a little odd
13:13 sri they are three different layers with get_start_line being the lowest
13:14 sri parse_start_line argument and return value might also seem a little odd between parse and parse_until_body
13:16 * sri pokes marcus, tempire and crab
13:16 sri design problem!
13:17 sri (both were previously private method that we also overloaded in subclasses, which was arguably even more odd)
13:17 sri *+s
13:18 crab i'll have a look after i return from the doctor.
13:25 vel joined #mojo
13:28 jnap joined #mojo
13:53 rem_lex joined #mojo
13:55 sri crab: hope it's nothing serious?
13:56 * sri thinks he would like get_start_line and parse_start_line more if their names somehow indicated that they are lower level than the other methods
13:57 gryphon joined #mojo
13:59 Lucas1 joined #mojo
14:39 sri interesting, restarted mountain lion and suddenly my perl is like 20% faster Oo
14:54 inokenty joined #mojo
15:04 batman joined #mojo
15:11 d4rkie joined #mojo
15:19 mire joined #mojo
15:29 zhutingting joined #mojo
15:42 pau4o left #mojo
15:43 d4rkie joined #mojo
15:50 xaka1 joined #mojo
16:05 d4rkie joined #mojo
16:09 crab sri: apparently some nerve is secreting a toxin that's killing off melanin-producing cells in my skin in a straight line along the nerve. but it's not serious(!)
16:13 Leandr joined #mojo
16:15 sri that sounds like a plot from House
16:42 GitHub48 joined #mojo
16:42 GitHub48 [mojo] kraih pushed 3 new commits to master: https://github.com/kraih/mojo/com​pare/f9acff331b6e...8e7056235cbc
16:42 GitHub48 [mojo/master] small optimizations - Sebastian Riedel
16:42 GitHub48 [mojo/master] improved multipart performance slightly - Sebastian Riedel
16:42 GitHub48 [mojo/master] better bytestream descriptions - Sebastian Riedel
16:42 GitHub48 left #mojo
16:45 sri how can nobody have an idea for better names than get_start_line and parse_start_line? :S
16:54 * sri really likes the typeface adobe open sourced
17:00 xaka1 wikipedia calls it request_line for requests and status_line for responses so that could be the names
17:00 sri but the base class is neutral
17:05 nic I need to write a server that kicks off jobs, but keeps them queued till job-specific db-centric criteria are met
17:06 nic (table isn't locked, qty threads below threshold, cpu load below threshold, etc)
17:06 nic MojoX::Run looks suitable
17:07 nic I guess I hook in a barrier that does an async call (with timeout) to the db server for that job
17:07 nic meanwhile looking through the queue for jobs whose barrier is 'open'
17:08 nic (I'm realising how much of the lingo I haven't picked up yet :) )
17:09 d4rkie joined #mojo
17:09 gryphon joined #mojo
17:09 nic ah, I suppose it's the same as having two queues
17:09 nic like a queue to place your order and a queue to pick up your meal
17:10 nic with the caveat that when you go to get your meal the may have lost your order and send you back to the other queue
17:10 nic hm, was going to ask about design ideas, but I'm also realising I need to think this through more
17:16 sri every now and then i want to add a way to spawn and manage child processes to mojolicious... but then i remember how much it would suck to make it portable
17:22 Britzel joined #mojo
17:49 labrown joined #mojo
17:51 amirite_ joined #mojo
17:58 GitHub25 joined #mojo
17:58 GitHub25 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/8d​59887a0c6edeb731d88f4f5f02d7c57788291a
17:58 GitHub25 [mojo/master] better crawler recipe - Sebastian Riedel
17:58 GitHub25 left #mojo
18:18 Lucas11 joined #mojo
18:49 asarch joined #mojo
18:53 spaceships joined #mojo
18:53 amirite joined #mojo
19:17 mire joined #mojo
19:30 d4rkie joined #mojo
19:48 GitHub179 joined #mojo
19:48 GitHub179 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/da​629178b0d221eb359cfb0d38495dac48916cf0
19:48 GitHub179 [mojo/master] improved end method in Mojo::IOLoop::Delay to return the number of remaining events - Sebastian Riedel
19:48 GitHub179 left #mojo
20:04 vel joined #mojo
20:13 xaka1 joined #mojo
20:41 gryphon joined #mojo
20:42 sri hmm, i guess get_start_line and parse_start_line stay
20:45 GitHub150 joined #mojo
20:45 GitHub150 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/bd​4769019646445de0cfd6a8aebb317141d5326a
20:45 GitHub150 [mojo/master] test multiple write calls - Sebastian Riedel
20:45 GitHub150 left #mojo
21:53 GitHub137 joined #mojo
21:53 GitHub137 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/64​682a70b32bb3b32ae2e37dbe43133a225d7bf4
21:53 GitHub137 [mojo/master] merged get_start_line and get_start_line_chunk methods - Sebastian Riedel
21:53 GitHub137 left #mojo
21:53 sri ok, that's cleaner :)
21:53 sri just need to figure out what to do with parse_start_line now
21:54 sri i really like the semantics, but the name is a little odd in context
22:37 alxt joined #mojo
23:23 daniel_ joined #mojo
23:25 mjy left #mojo
23:27 GitHub153 joined #mojo
23:27 GitHub153 [mojo] kraih pushed 1 new commit to master: https://github.com/kraih/mojo/commit/0d​571a99e6bc2dc8d3e97d62fc8073f7198b505c
23:27 GitHub153 [mojo/master] renamed parse_start_line method to extract_start_line - Sebastian Riedel
23:27 GitHub153 left #mojo
23:27 sri and solved :)

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