The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2013-11-12

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

All times shown according to UTC.

Time Nick Message
00:48 sri hmm, i guess bson_raw() or so could be quite useful
00:48 sri to embed pre-serialized bson into another bson document
00:49 sri bson_encode {foo => bson_raw($bson_bytes)}
00:49 Adurah https://pay.reddit.com/r/programming/comments/1qefy9/why_you_should_never_use_mongodb/ Never knew it was that evil.
00:50 * sri yawns
00:51 sri and perl is dead... yada yada yada... now get the hell out of here
00:52 Adurah The article seems to have a point about their specific usage case.
00:52 beyondcreed joined #mojo
00:54 Adurah I guess the DB part of MongoDB threw them off.
00:58 chansen sri: which editor do you use?
00:58 sri TM2
00:58 sri http://i.imgur.com/EbM6gWN.png
00:59 chansen I'm currently using both TM1 and TM2, I still prefer TM1
01:03 chansen I'm not sure I like the new file browser
01:05 laouji joined #mojo
01:05 mst also ...
01:05 purl also ... are you telling me to avoid relationships or just relationship attributes?
01:06 mst sri: do I misremember, or is Mongo really fast for 'select multiple docs given an array of ids' ?
01:07 sri sure
01:09 sri find(_id => {'$in' => [...]})
01:13 mst right, it's just it strikes me that a lot of what that article complained about
01:13 mst would still have made retrieving a document only a couple of queries
01:13 mst you'd just need to traverse for all user ids and then issue a single find and weave them back together
01:14 mst Adurah: I have lots of reasons why I dislike MongoDB but that article is a classic example of "you used it completely wrong"
01:23 chansen Yeah, he even says so himself in the end of the article
01:30 mire joined #mojo
01:32 Adurah Some sarcasm in the text after my link.
01:44 d4rkie joined #mojo
02:11 basic6 joined #mojo
02:45 duncanthrax2 joined #mojo
02:50 maxhq joined #mojo
03:00 TitanOfOld joined #mojo
03:00 laouji joined #mojo
03:09 laouji joined #mojo
03:58 laouji joined #mojo
04:18 preflex_ joined #mojo
04:29 laouji joined #mojo
04:56 laouji joined #mojo
05:28 hesperaux joined #mojo
05:29 hesperaux_ joined #mojo
06:04 beyondcreed joined #mojo
06:19 dotandimet joined #mojo
06:32 Vandal joined #mojo
06:35 ladnaV joined #mojo
06:55 Britzel joined #mojo
06:59 ver joined #mojo
07:13 marty_ joined #mojo
07:13 Vandal joined #mojo
07:13 bpmedley_ joined #mojo
07:15 phillipadsmith joined #mojo
07:15 basiliscos joined #mojo
08:07 Vandal joined #mojo
08:09 denis_boyun joined #mojo
08:10 iSlug joined #mojo
08:41 denisboyun joined #mojo
08:47 DrGkill joined #mojo
08:50 trone joined #mojo
08:55 dod joined #mojo
08:59 dod joined #mojo
08:59 dod joined #mojo
08:59 themage joined #mojo
09:08 fhelmber_ joined #mojo
09:12 diegok Adurah: sure, I use mongoDB daily and can fill many pages of complaints but none are on this verbose rant :-/
09:26 denisboyun joined #mojo
09:47 laouji joined #mojo
09:49 marty_ sri: is it possible to do full text search with mango?
09:51 laouji_ joined #mojo
11:30 iSlug joined #mojo
11:44 stephan48 joined #mojo
11:49 maxhq joined #mojo
12:08 dotandimet joined #mojo
12:10 highflying joined #mojo
12:15 hrupp joined #mojo
12:16 rem_lex|pivo joined #mojo
12:17 laouji joined #mojo
12:26 laouji joined #mojo
12:32 highflying joined #mojo
12:33 basiliscos joined #mojo
12:39 denis_boyun joined #mojo
12:41 punter joined #mojo
12:56 basiliscos joined #mojo
13:10 dpetrov_ joined #mojo
13:12 denis_boyun joined #mojo
13:19 dotandimet joined #mojo
13:19 highflying joined #mojo
13:33 miket joined #mojo
13:49 nicomen how would you do this, I have a list of four links in a template, and I want the active one to be selected based on the url, preferably I would use the route names, but can I access them from the template?
13:49 nicomen current_route?
13:51 miket hi, I just started a new mojo project, using plugin('tt_renderer'), but my default layout is still using the ep renderer ... any ideas?  I think it'd be better if layout was also .tt
13:53 bpmedley miket: $self->renderer->default_handler('tt');
13:55 D4RK-PH0ENiX joined #mojo
13:56 fhelmber_ joined #mojo
13:58 Dandre hello,
14:02 Dandre is there in mojo some library to set data in a json structure in a way similar to Mojo::JSON::Pointer->get for getting data?
14:11 arthas joined #mojo
14:22 dsteinbrunner joined #mojo
14:22 d4rkie joined #mojo
14:30 sh4 joined #mojo
14:35 batman Dandre: you can look at https://metacpan.org/source/JHTHORSEN/Mandel-0.10/lib/Mandel/Document.pm#L313 if you want to copy/paste some code
14:41 Dandre ok thanks
14:42 fhelmber_ joined #mojo
14:43 modred joined #mojo
14:49 tianon marty: there's a command line flag to enable the currently-experimental full-text search, but it's not recommended for production yet
14:50 bluescreen joined #mojo
14:50 tianon marty: see http://docs.mongodb.org/manual/tutorial/enable-text-search/ and then http://docs.mongodb.org/manual/core/text-search/
14:53 btyler joined #mojo
15:01 denis_boyun joined #mojo
15:16 basiliscos joined #mojo
15:17 iSlug joined #mojo
15:45 mire joined #mojo
15:53 KindTwo joined #mojo
15:55 gryphon joined #mojo
16:01 denisboyun joined #mojo
16:06 cfedde joined #mojo
16:16 KindOne joined #mojo
16:18 mire joined #mojo
16:22 cfedde joined #mojo
16:24 Britzel joined #mojo
16:29 marty tianon: thx.  I have no problem using text search from the mongo shell.  I was more interested in whether we could use mango to issue a runCommand against a collection which as a text index.
16:29 marty s/as/has/
16:29 tianon ah, I see :)
16:32 cfedde joined #mojo
16:39 mst marty: aTHX, dTHX or pTHX ?
16:41 marty mst: lol.  That's beyond my scope man.   :)
16:43 cfedde THX 1138
16:44 nicolaas joined #mojo
17:09 basiliscos joined #mojo
17:12 russum joined #mojo
17:13 beyondcreed joined #mojo
17:14 sri marty: http://mojolicio.us/perldoc/Mango/Database#command
17:19 marty sri: Yes, I've seen that.   I must not understand something since I cannot see a way to issue the command against a single collection.   I'll research some more and try and educate myself.   Thanks for the pointer.
17:20 dod joined #mojo
17:22 sri it's trivial, let me add an example... just need to find a good command
17:23 sri once you get it it's obvious that the command method is enough to do just about anything in mongodb
17:28 sri well... why not text
17:28 marty I remember you mentioning that the ->command could be used for a lot of things.  I just could not grok it.
17:29 sri marty: updated http://mojolicio.us/perldoc/Mango/Database#command
17:29 sri all commands are just a bson_doc... *ALL*
17:29 marty Ya, that a perfect example!   (selfishly motivated agreement)
17:29 * marty looking...
17:30 marty omg!   That is too easy!!   sri++
17:31 marty the light is now on.
17:31 sri :)
17:34 sri all that matters is that the command is the first key in the document
17:35 sri so only bson_doc and no {}
17:51 fhelmber_ joined #mojo
18:01 cfedde is anyone working with jquery DataTable or another data grid using a mojo server and server side processing?  I'm looking for recommendations before I embark on doing this on my own.
18:19 abra joined #mojo
18:22 abra joined #mojo
18:43 Britzel_ joined #mojo
18:53 marty cfedde:  I'm using Kendoui with Mojo and Mango and it works great.  especially when you implement the kendo dataSource.
19:01 cfedde looks interesting.
19:01 * cfedde goes to read
19:02 dsteinbrunner kendo is a knockoutjs knockoff
19:02 dsteinbrunner with their own ui controls
19:02 dsteinbrunner big with .Net types
19:08 cfedde I have yet to get my head around the whle knockout angular backbone approach.
19:08 cfedde whole.
19:10 cfedde maybe it's just me but they seem to duplicate type metadata at every level.
19:10 r0b3rt I'm using DataTable (with server side processing) in some Perl CGI apps.  Works well.
19:12 cfedde I see a couple cpan bits.
19:13 Mike-PerlRecruiter_ joined #mojo
19:14 cfedde but my russian is not good enough to make much use of the doc.
19:17 punter joined #mojo
19:44 gtodd joined #mojo
20:07 tianon joined #mojo
20:10 zivester joined #mojo
20:27 marty joined #mojo
20:32 themage joined #mojo
20:39 alnewkirk cfedde: there is a bit of duplication but rendering those bits with a template makes it less of an issue
20:41 bowtie_ joined #mojo
20:43 lukep joined #mojo
20:48 dotandimet joined #mojo
20:56 cfedde alnewkirk: the issue is viewing into tables that have 100s of K of rows.
20:59 alnewkirk cfedde: why is that an issue?
21:01 cfedde why is what an issue?
21:01 punter joined #mojo
21:01 cfedde server side processing for paging, sorting, filtering etc.
21:02 cfedde I'm not sure how templates makes that easier.
21:02 alnewkirk that too, if you're saying that's an issue
21:02 alnewkirk ... but I was talking specifically about
21:02 alnewkirk 15:52 < cfedde> alnewkirk: the issue is viewing into tables that have 100s of K of rows.
21:03 cfedde I guess I'll have to remain confused.
21:05 alnewkirk I was agreeing with you saying that client-side frameworks such as backbone, ember, angular (but not really, depends on how you use it), etc tend to have you duplicate object properties when creating models, views, and controllers
21:05 alnewkirk what I meant by using a template is ...
21:05 cfedde ah.
21:06 alnewkirk ... when you render the initial page, you can use a server-side template to render different "initial" configurations of those objects
21:06 alnewkirk from a single entity
21:06 alnewkirk e.g. dbic object -> template-toolkit -> render client-side js model, view, controller objects
21:07 alnewkirk initially
21:07 cfedde sure.
21:07 alnewkirk then let the async stuffs get updates, etc
21:09 cfedde thanks.
21:14 alnewkirk np
21:35 bluescreen joined #mojo
21:36 bluescreen joined #mojo
21:47 hesperaux joined #mojo
21:47 jberger_ joined #mojo
21:47 denis_boyun joined #mojo
21:48 russum joined #mojo
21:51 jberger_ o/ from Curitiba Brazil!
21:54 denis_boyun joined #mojo
21:59 sri \o
21:59 thomason joined #mojo
22:01 thomason I have a routing question, mainly about finding out the current route. I know that there's a ->current_route method, but it only returns the name of the current route. But is there any way to get at the actual route object itself?
22:02 thomason What I actually want to do is find a sibling route. So if I had /foo/list, I would want to find /foo/view.
22:02 thomason So I'm thinking of something like this: $controller->current_route_obj->parent->find('view');
22:38 hummeleBop joined #mojo
22:46 iSlug joined #mojo
23:01 mire joined #mojo
23:03 marty joined #mojo
23:58 dotandimet joined #mojo

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