Camelia, the Perl 6 bug

IRC log for #mojo, 2013-03-05

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

All times shown according to UTC.

Time Nick Message
00:03 jberger_ sri: could we add sortkeys to dumper helper?
00:12 Gedge joined #mojo
00:16 sri jberger_: why?
00:19 jberger_ I just like it better, more predictable
00:19 jberger_ I use dumper to write out the config file when changed
00:20 jberger_ its not a big deal, but if you are not opposed ...
00:21 sri i wasn't opposed to it until your use case ;p
00:21 jberger_ haha
00:21 jberger_ oop
00:21 jberger_ s
00:21 jberger_ http://blogs.perl.org/users/joel_berger/2013/03​/galileo-0023-has-a-pretty-web-setup-page.html
00:21 sri now i wonder if stuff would break if we change it
00:22 jberger_ it shouldn't, hash key order isn't guaranteed
00:22 jberger_ its easier on the reader
00:22 jberger_ if you do-load or eval it back, hash key order is random again
00:24 sri and of course if we make it sort, does that encourage people to do weird stuff with it that will prevent future changes :)
00:24 jberger_ like what?
00:24 sri like making tests that depend on order
00:25 jberger_ you mean like, use dumper to print a data structure and then regexp on it? they deserve to have that break
00:26 sri i've seen it, over and over :)
00:26 jberger_ oh lordy
00:27 jberger_ I once had an elder scientist tell me "you can plan for stupid, but you can't plan for damn stupid"
00:27 jberger_ :-)
00:28 jberger_ he manages a user-facility
00:28 sri that's why i'm a little paranoid now :S
00:28 sri the universe always makes better idiots!
00:28 * jberger_ looks over his shoulder
00:30 good_news_everyone joined #mojo
00:30 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/O-hRUQ
00:30 good_news_everyone mojo/master d8addd3 Sebastian Riedel: improved dumper helper to sort hash keys
00:30 good_news_everyone left #mojo
00:30 sri but yea, you're right it's more pleasant
00:32 jberger_ :-)
00:33 * sri looks at perl -Mojo -E 'say r g("search.twitter.com/search.json?q=perl")->json'
00:34 mattastrophe joined #mojo
00:34 jberger_ haha, I just ran it and wondered why it didn't sort! pull first dummy!
00:34 sri :)
00:39 jberger_ oh that looks so much nicer
00:41 sri so many tweets are geo tagged
00:42 jberger_ geo tagging still kinda creeps me out
00:42 jberger_ I know its the future, but ...
00:43 * sri too
00:43 jberger_ still my buddy Jeremy was wayyyyy ahead of that http://jeremycallner.com/whereisjeremy.html
00:43 sri geo tagging, face recognition...
00:43 sri haha
00:45 * jberger_ hates waiting for cpantester results
00:46 jberger_ I released Acme::Ford::Prefect like 3.5 hours ago! where are my Mac tests?! (other tests would be handy too, but I need Mac!
00:46 jberger_ )
00:46 shmuel joined #mojo
00:47 jberger_ and before you so kindly offer, its not mac I'm testing its CPAN::Reporter::Smoker on Mac that matters
00:48 jberger_ the difference between cpantesters and the real world breaks (broke?) Alien::Base
00:48 mattastrophe joined #mojo
00:58 phillipadsmith I'm stuck on trying to translate this mongodb query to Mango: https://gist.github.com/philli​padsmith/5139387976327b99b93b  Any help appreciated. :)
00:59 sri what's all the garbage in between?
01:00 phillipadsmith sri: heheheh… "garbage" meaning?
01:00 sri $db->collection('links')->update({_id => bson_oid('...')}, {'$push' => { tweets => {text => 'A test string'} }})
01:01 sri that's all
01:01 phillipadsmith I'm trying to figure out how to make this update; I'm not super-familiar with Mongo… so excuse the Neanderthal garbage!
01:01 phillipadsmith ah, bson_oid, that's new to me
01:01 sri perldoc Mango::BSON
01:01 sri all special types have a function
01:02 * phillipadsmith goes to read about special types...
01:03 sri mongodb is based on BSON, which has these data types http://bsonspec.org/#/specification
01:03 sri most map to native perl types, some don't, those have functions
01:04 * sri needs to add a translation table to Mango::BSON when he has some time
01:05 sri http://mojolicio.us/perldoc/Mango/BSON
01:06 hlin joined #mojo
01:06 phillipadsmith hrm...
01:08 * sri likes that you can just do stuff like $collection->find_one({foo => qr/test/i});
01:10 phillipadsmith I'm missing something… Can't locate object method "bson_oid" via package "Mango::BSON::ObjectID" at collector/fomo_extractor.pl line 90.
01:10 phillipadsmith Anyway, I'll poke away and paste if I can't figure it out… (dinner time)
01:10 sri use Mango::BSON ':bson';
01:11 sri but that's already an oid object, no need to wrap it again
01:12 ka2u joined #mojo
02:01 d4rkie joined #mojo
02:01 d4rkie joined #mojo
02:16 asarch joined #mojo
02:23 mattastrophe joined #mojo
02:40 phillipadsmith sri: not following you re: "that's already an kid object"
02:40 phillipadsmith s/kid/oid/
02:42 zdk joined #mojo
02:45 phillipadsmith okay, now I'm getting somewhere...
02:47 phillipadsmith bingo
02:51 phillipadsmith okay, so I don't actually need to use bson_oid
02:51 phillipadsmith it was just my syntax that was incorrect
03:02 hesperaux joined #mojo
03:16 phillipadsmith it was just my syntax that was incorrect
03:16 phillipadsmith whoops… bad paste!
03:42 phillipadsmith Okay, so next issue: https://gist.github.com/philli​padsmith/ca5758a142a0f19dd471
04:09 hesperaux_ joined #mojo
04:11 ZadYree joined #mojo
04:13 mfontani joined #mojo
04:28 arpadszasz joined #mojo
04:30 egopro joined #mojo
04:47 plu joined #mojo
04:57 preflex_ joined #mojo
05:05 jwang joined #mojo
05:07 xaka joined #mojo
05:07 ka2u joined #mojo
05:18 ka2u joined #mojo
05:20 Meiermann joined #mojo
05:21 mattastrophe joined #mojo
05:27 jpn joined #mojo
05:36 ver joined #mojo
05:39 basiliscos joined #mojo
05:51 phillipadsmith joined #mojo
05:58 chansen joined #mojo
06:27 alnewkirk joined #mojo
06:31 duncanthrax joined #mojo
06:37 mattastrophe joined #mojo
06:50 espent joined #mojo
07:00 spleenjack joined #mojo
07:00 hrupp joined #mojo
07:06 Mike-PerlRecruiter_ joined #mojo
07:18 yakudza joined #mojo
07:20 jzawodn joined #mojo
07:34 davido joined #mojo
07:50 Vandal joined #mojo
08:04 dpetrov_ joined #mojo
08:06 rwstauner joined #mojo
08:07 jpn joined #mojo
08:12 ObseLeTe joined #mojo
08:18 arthas joined #mojo
08:18 suy joined #mojo
08:19 dhg joined #mojo
08:38 dhg joined #mojo
08:48 rem_lex|pivo joined #mojo
09:04 daxim joined #mojo
09:05 hmepas joined #mojo
09:05 hmepas if you have an action name "view" in your controller, you gona have a bad time. Probably worth notice in documentation, if didn't already.
09:19 hmepas joined #mojo
09:22 ladnaV joined #mojo
09:25 maxhq joined #mojo
09:39 hmepas joined #mojo
09:40 egopro joined #mojo
09:46 jamesw joined #mojo
09:48 SirG joined #mojo
09:59 hmepas joined #mojo
10:09 fhelmber_ joined #mojo
10:11 hmepas joined #mojo
10:22 hmepas joined #mojo
10:24 SirG joined #mojo
10:29 mugenken joined #mojo
10:32 espent joined #mojo
10:36 arpadszasz joined #mojo
10:40 ObseLeTe joined #mojo
10:42 ObseLeTe joined #mojo
10:48 hmepas joined #mojo
10:56 ladnaV How to check value of input with Test::Mojo?
10:56 espent joined #mojo
10:56 memowe joined #mojo
10:58 Akron joined #mojo
10:59 hmepas joined #mojo
11:00 ladnaV I'm trying ->text_is('form > label' => 'Val'); but it isnt working
11:11 d4rkie joined #mojo
11:13 hmepas joined #mojo
11:24 hmepas joined #mojo
11:35 hmepas joined #mojo
11:37 ask joined #mojo
11:49 hmepas joined #mojo
12:00 hmepas joined #mojo
12:11 hmepas joined #mojo
12:22 SmokeMachine joined #mojo
12:23 hmepas joined #mojo
12:28 ACE joined #mojo
12:28 ACE_ joined #mojo
12:34 hmepas joined #mojo
12:45 hmepas joined #mojo
12:56 hmepas joined #mojo
13:07 hmepas joined #mojo
13:08 SmokeMachine joined #mojo
13:21 hmepas joined #mojo
13:32 hmepas joined #mojo
13:39 marty phillipadsmith:  I added a comment to your gist with the correct syntax for '$exists'
13:39 SmokeMachine joined #mojo
13:41 sri s/'false'/bson_false/
13:41 HtbaaPi_ joined #mojo
13:43 hmepas joined #mojo
13:47 ObseLeTe joined #mojo
13:48 ObseLeTe joined #mojo
13:51 mire joined #mojo
13:54 hmepas joined #mojo
14:04 mire joined #mojo
14:05 hmepas joined #mojo
14:09 sri don't forget to update your Encode to avoid leaks!
14:16 hmepas joined #mojo
14:20 sh4 joined #mojo
14:26 cub joined #mojo
14:27 hmepas joined #mojo
14:34 cub left #mojo
14:35 sh4|2 joined #mojo
14:38 mugenken_ joined #mojo
14:38 hmepas joined #mojo
14:43 asarch joined #mojo
14:49 hmepas joined #mojo
14:57 arpadszasz joined #mojo
14:58 zdk joined #mojo
15:00 hmepas joined #mojo
15:03 phillipadsmith marty: many thanks; greatly appreciated.
15:04 phillipadsmith Also, I've hit the point where I want to put a shiny Mojo HTML/JSON view on top of the data coming from Mango … so far so good, but I'm wondering about the best approach to cursoring through results.
15:05 phillipadsmith I see that I can set the size of the cursor, use a limit, and so on, but I'm wondering what the best pattern is for handling this?
15:06 phillipadsmith Ideally, I'd like to return say 50 results, then let the user page through the rest, either via explicitly getting a new route (e.g., /page/2 ) or maybe just doing that in the browser with JavaScript. I guess the route would need to be there either way, or some version of that. I think I read about a ->page_next or something in Mojo docs… maybe that's what
15:06 phillipadsmith I'm looking for?
15:10 gryphon joined #mojo
15:12 ryozi joined #mojo
15:21 spleenjack left #mojo
15:24 hmepas joined #mojo
15:32 btyler joined #mojo
15:35 hmepas joined #mojo
15:40 cosimo joined #mojo
15:46 hmepas joined #mojo
15:49 dhg joined #mojo
15:57 hmepas joined #mojo
16:04 sri marcus, tempire, jberger, crab: do you want to comment on this issue or should i close it right away? https://github.com/kraih/mojo/pull/464
16:05 sri oh
16:05 sri you're quick today :D
16:08 hmepas joined #mojo
16:12 cosimo_ joined #mojo
16:17 inokenty joined #mojo
16:17 sh4|2 joined #mojo
16:18 sri jberger: i imagine he wants a single file extension instead of .html.tt
16:19 jberger_ joined #mojo
16:19 hmepas joined #mojo
16:19 jberger_ ok, that makes more sense I guess.
16:19 jberger_ still a -1
16:23 sri jberger: https://github.com/kraih/mojo/​pull/464#issuecomment-14448985 # that should make it a clear -1 :)
16:24 jberger_ yeah
16:24 jberger_ nuke it
16:25 jberger_ my suggestion allows him to use file.html.ttml if he wants
16:25 jberger_ not sure why you would, but you know
16:25 jberger_ :-)
16:26 * sri thinks most renderers have an option where you can change the name
16:26 sri at least EP and EPL do
16:27 jberger_ ok, well back to $work
16:27 jberger_ :-/
16:32 btyler joined #mojo
16:33 SmokeMachine joined #mojo
16:35 SmokeMac_ joined #mojo
16:37 Mithaldu left #mojo
16:39 hmepas joined #mojo
16:43 yakudza joined #mojo
16:50 hmepas joined #mojo
16:56 xaka joined #mojo
17:01 hmepas joined #mojo
17:08 SmokeMachine joined #mojo
17:12 hmepas joined #mojo
17:20 bluescreen joined #mojo
17:23 hmepas joined #mojo
17:33 gryphon joined #mojo
17:34 hmepas joined #mojo
17:44 asarch joined #mojo
17:45 hmepas joined #mojo
17:47 ObseLeTe joined #mojo
18:02 basiliscos joined #mojo
18:02 hmepas joined #mojo
18:06 arpadszasz joined #mojo
18:08 labrown joined #mojo
18:13 sh4|2 joined #mojo
18:14 hmepas joined #mojo
18:25 hmepas joined #mojo
18:27 btyler joined #mojo
18:34 GabrielVieira joined #mojo
18:38 mattastrophe joined #mojo
18:40 testing joined #mojo
18:44 Tejler joined #mojo
18:53 ObseLeTe joined #mojo
18:55 btyler joined #mojo
18:56 ObseLeTe joined #mojo
19:06 Mike-PerlRecruiter_ joined #mojo
19:07 hmepas joined #mojo
19:18 hmepas joined #mojo
19:29 hmepas joined #mojo
19:32 GabrielVieira joined #mojo
19:43 hmepas joined #mojo
19:52 GabrielVieira2 joined #mojo
19:57 hmepas joined #mojo
20:03 mattastrophe joined #mojo
20:05 BeDa joined #mojo
20:08 hmepas joined #mojo
20:17 mattastrophe joined #mojo
20:17 bluescreen_ joined #mojo
20:20 hmepas joined #mojo
20:23 Tejler joined #mojo
20:25 preaction joined #mojo
20:37 hmepas joined #mojo
20:48 hmepas joined #mojo
20:59 hmepas joined #mojo
21:10 hmepas joined #mojo
21:12 xaka joined #mojo
21:24 hmepas joined #mojo
21:35 hmepas joined #mojo
21:47 hmepas joined #mojo
21:58 hmepas joined #mojo
21:58 bluescreen__ joined #mojo
22:11 bluescreen_ joined #mojo
22:12 hmepas joined #mojo
22:20 dvinciguerra_ joined #mojo
22:32 hmepas joined #mojo
22:34 tempire has anyone done any work for getting mojolicious to listen on a unix socket?
22:36 * tempire would be surprised.
22:39 sri tempire: long time ago we had support, but maintaining it sucked
22:43 mattastrophe joined #mojo
22:57 Meiermann joined #mojo
22:58 hmepas joined #mojo
23:02 sri a tiny non-blocking job queue based on mango could be nice
23:08 ka2u joined #mojo
23:10 hmepas joined #mojo
23:22 hmepas joined #mojo
23:33 hesperaux__ joined #mojo
23:33 hmepas joined #mojo
23:50 GabrielVieira joined #mojo
23:50 hmepas joined #mojo
23:57 diegok sri: how do you dispatch jobs from a collection non-blocking? (just thinking about this)

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