Camelia, the Perl 6 bug

IRC log for #mojo, 2013-10-07

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

All times shown according to UTC.

Time Nick Message
00:20 laouji joined #mojo
00:23 dqw7 joined #mojo
00:53 shmuel joined #mojo
02:00 d4rkie joined #mojo
02:01 d4rkie joined #mojo
02:30 d4rkie joined #mojo
03:04 dotandimet joined #mojo
03:56 preflex_ joined #mojo
04:17 d4rkie joined #mojo
04:21 dqw7 joined #mojo
05:22 basic6_ joined #mojo
05:53 hummeleBop joined #mojo
05:57 Lee joined #mojo
06:22 Vandal joined #mojo
06:25 * sri yawns
06:27 fannymay joined #mojo
06:28 fannymay Hi all, I am currently working on a few mojo apps that make use of a database via DBIx::Class. I am wondering, for this would it be better to use helpers or to make a plugin?
06:29 mst I would've thought that anything that gets you easy access to your $schema would be fine
06:31 fannymay Hm, OK.
06:31 fhelmber_ joined #mojo
06:31 fannymay I think I am just looking at this incorrectly, because I am currently trying to build a package for this.
06:31 fannymay heh
06:32 fannymay I am in over my head I think.
06:32 highflying joined #mojo
06:34 crab take a deep breath... oh, wait.
06:34 fannymay haha
06:34 buu fannymay: I just did $app->add_helper( resultset => sub { $schema->resultset($_[0]) } )
06:35 buu fannymay: Then I get to do $self->resultset('foo')->search() everywhere
06:35 mst seriously though, everything in DBIx::Class is gettable at from the $schema
06:35 mst so all that really matters is (a) creating the $schema
06:35 mst (b) putting it somewhere you can get at it
06:35 mst whatever way works for you to do that is probably fine
06:35 fannymay ohh, I think I get the MojoExample then.
06:56 fannymay Is there a DBIx::Class channel?
06:57 mst https://metacpan.org/module/​DBIx::Class#HOW-TO-GET-HELP
06:58 batman jberger: what did you do to .git/config ?
06:58 batman add remote..?
07:00 batman buu: i think you mean $_[1] ..?
07:00 fannymay thanks ;)
07:01 batman fannymay: i would do what buu suggested. i use resultset() 99.999% of the time, so i would have a helper which easily give me a $rs
07:02 kwa fannymay: I think this is still applicable: http://toroid.org/ams/etc/mojolicious-db-handles
07:02 batman $app->helper(resultset => sub { shift; $schema->resultset(shift)->search(@_) }); # $c->resultset(user => { uid => $c->session('uid') })->next;
07:02 kwa fannymay: I use the helper method at the bottom.
07:03 mst batman: I'd go for search_rs rather than search there
07:03 batman mst: i totally agree! thanks
07:04 mst actually, I'd probably go for not having the search bit at all, but that's a matter of taste whereas I think search_rs is obviously better
07:04 batman mst: i've changed relationships to objects in mandel now. haven't figured out belongs_to yet. was there something else that i've forgotten?
07:04 mst don't think so
07:04 batman ok.
07:05 mst of course I could've forgotten too :)
07:05 batman yeah, hehe
07:05 batman tba: you should do ln -s lib/MangoX/Queue.pm README.pod
07:06 batman tba: that way, github can render the pod from your module when people visit the project.
07:06 mst oooh, it follows symlinks?
07:06 mst I didn't realise it did that
07:06 batman https://github.com/ian-kent/MangoX-Queue <-- this is not informative
07:06 batman mst: yup
07:07 batman wonder if i need the README file in my dists... i would really like "rm README" :)
07:08 mst I generate it during distdir
07:08 dod joined #mojo
07:09 fannymay kwa: awesome link! Thank you so much :D
07:09 batman it's automatic for me as well, but i like to have as few files as possible
07:09 kwa fannymay: yw :)
07:09 mst batman: well I mean the file only ever goes into the dist
07:10 mst and it's traditional to have one
07:10 batman ah! right.
07:10 batman of course. thanks.
07:11 mst fannymay: using that approach to create a $schema is safe
07:11 mst fannymay: using it for DBI would be awful; DBIx::Connector should be used for that sort of purpose
07:12 kwa mst: Good to know. How come it's bad for DBI? Because it won't automatically reconnect if the connection is lost?
07:12 mst and it won't be fork/thread safe
07:12 mst hence why he says "don't use this during startup"
07:13 mst OTOH using DBIx::Connector, using it during startup would work fine
07:13 fannymay mst: I have a single SQLite table that this is pulling data from. No relationships whatsoever. Is it true then that DBIx::Class would be pointless to use?
07:13 mst DBIx::Connector is about 3/4 of the DBIx::Class reconnect logic
07:13 kwa mst: But it also says that it does lazy loading (for attr and helper) so it's not connected to unless it's needed?
07:13 kwa (Which will be in the forked process?)
07:13 mst kwa: right, so if you're really careful it's only half broken
07:13 kwa :)
07:14 batman kwa: that's one dangerous assumption
07:14 crab what's a dangerous assumption?
07:14 mst fannymay: er. what?
07:14 kwa batman: I'm using DBIC and I use DBIx::Class when connecting. I was just trying to learn me something.
07:15 fannymay I'm using DBIx::Class to learn as well, but the tutorial states that you may as well use DBI if you don't have any relationships.
07:15 sri http://www.w3.org/community/webappscp/ # rofl
07:15 mst fannymay: which tutorial?
07:16 batman kwa: just saying that assuming something is not used during startup is... it will break :)
07:16 crab sri: ...
07:17 sri GO HOME W3C YOU'RE DRUNK!
07:17 batman fannymay: dbic is always useful when doing blocking operations against a database
07:17 fannymay http://search.cpan.org/~jrobinson/DBIx-Class-Tu​torial-0.0001/lib/DBIx/Class/Tutorial/Part1.pod
07:17 marcus sri: oh noes :(
07:17 kwa batman: Well, that assumption was based on my coding. I'd never connect to a database in startup in any of my apps. So I would have assumed it wouldn't have made a DBI connection before it was forked. :)
07:18 kwa batman: But I know what assume does. :P
07:18 marcus Because web developers never hope their web apps are easily copied by others.
07:18 batman kwa: you're so funny. "I'd never" <-- this statement is false
07:18 marcus other people of course, hope that their web pages are easily copied by other.
07:18 mst fannymay: it's saying that if you -have- relationships, you should declare them, because otherwise what's the point
07:19 batman sri: this morning was good until that link.
07:19 mst fannymay: you appear to be confusing turn of phrase with an instruction
07:19 batman it's messed up. had to check if the url actually contained w3.org multiple times :(
07:19 kwa batman: Fill me in, you like contractions? :/
07:19 marcus kwa: PUSH
07:19 marcus oops, sorry, etoomanybirths
07:20 mst kwa: you mean "I'd never -intentionally- write code that"
07:20 batman kwa: assuming you will never do something is... you will eventually screw things up with that mindset.
07:20 mst kwa: also, I guess you've never thought about testing your connection works during startup, or in caching common static lookup tables
07:20 batman believe me.
07:21 mst both of which are -good- reasons to connect before fork()
07:21 kwa mst, batman: shit, it's too early for this. I've not actually done this yet, but I know not to do it. Anyone want a coffee?
07:21 kwa *now know
07:21 mst kwa: I've just told you why you might -want to- do it :)
07:22 * kwa 's head pops
07:22 mst and yes, I'll take two :)
07:22 mst you make the coffee, I'll pass round the vodka
07:22 batman kwa: i believe you. i also think you're human. and i'm 101% sure you will screw up some way down the line.
07:22 marcus mst: still recovering from vodka shots with russians here.
07:24 batman marty: haha
07:24 batman oops!
07:24 batman marcus: haha
07:24 batman marcus: tab completion is broken :(
07:24 marcus batman: grr :(
07:25 marcus batman: probably in more than one way. I also noticed that it will prefer my own nick to mst if I've typed something on m<tab>
07:25 batman yup. completion completely broken
07:26 mst marcus: I'm post all nighter so russian coffee is a necessity
07:26 marcus batman: make an issue?
07:26 kwa mst: Do you go to the north west meetup drinks? Been thinking about going to the next one, and it seems like a good idea to avoid a round with you.
07:27 fannymay Northwest as in Pacific Northwest?
07:27 marcus kwa: mst is mostly harmless.
07:27 marcus fannymay: uk
07:28 kwa fannymay: As in pies and Coronation Street.
07:28 fannymay aww dang
07:28 themage joined #mojo
07:28 kwa marcus: "mostly"?
07:28 fannymay I think merlyn and Linus Torvalds live here, but I've yet to have a beer with either :D
07:29 mst kwa: ... ... ... HITCH HIKERS DAMNIT
07:29 marcus kwa: http://en.wikipedia.org/wiki/Phrases_from_The_Hi​tchhiker%27s_Guide_to_the_Galaxy#Mostly_Harmless
07:29 kwa lol
07:30 mst marcus++ # english culture will survive in spite of the english
07:30 kwa kwa-- # the shame
07:31 arthas joined #mojo
07:32 kwa I have a pair of these: http://a.tgcdn.net/images/products/additi​onal/large/killer_bunny_slippers_add1.jpg does that make up for it?
07:34 marcus kwa: they sure look fearsome
07:35 * marcus has booked a Tesla test drive now.
07:35 marcus batman: you've already had a ride?
07:35 marcus (Think I saw something on fb)
07:36 kwa marcus: Very. http://youtu.be/XcxKIJTb3Hg?t=1m12s # rabbit in action
07:37 marcus kwa: Python lover, eh?
07:37 marcus ;)
07:37 kwa haha, not written anything in it yet. :P
07:38 batman marcus: i was in the passenger seat.
07:38 batman still fun :)
07:38 marcus batman: I want one±
07:38 marcus Drove a hybrid rental this weekend. Prius+. Was fun too
07:38 batman marcus: hehe. it's a sweet ride
07:39 mst kwa: also, I still don't really understand your previous comment
07:39 mst kwa: if you want to avoid a round ... buy your own beer ...
07:39 kwa marcus: Also, very nice on the Tesla test drive. I read on reddit that the Auto Association (or w/e) in America is trying to stifle Tesla, which is a bit shit.
07:39 crab marcus: you want one±? so you'd be happy with 0.93 or 1.02 teslas?
07:39 marcus crab: should have been!
07:40 kwa mst: It sounded that getting into a round with you could be dangerous. You drink vodka (which I do) and you do all nighters (which I don't). Once I'm in a round, I'm in for the long haul.
07:40 crab mst: maybe he means he knows you'll drink him under the table
07:41 kwa mst: Everyone knows rounds are efficient, as it cuts down the amount of time you have to stand up.
07:41 * kwa hates standing up
07:41 mst ah, that's not so much of a risk with a manchester meet since I have to get back to lancaster
07:41 dod joined #mojo
07:41 basiliscos joined #mojo
07:44 kwa Lancaster? Nice. You from there, or stay there after Uni?
07:44 mst neither
07:45 mst but you should've known I was there given shadowcat is :)
07:45 * marcus is going to uk first week of november.
07:45 marcus For a wedding in Wales.
07:46 mst I'm ... sorry.
07:46 marcus mst: scary?
07:46 marcus or just bad.
07:46 kwa mst: You strike me as the kind of person who has a helicopter. So wouldn't be restricted to where your business is. :)
07:47 kwa marcus: Depends where in Wales. The further South you go, the worse the Welsh are to 'outsiders'.
07:48 marcus kwa: well, it's the wedding of a norwegian friend of mine, to a girl from wales. :)
07:48 marcus It'll be at this place http://llch.co.uk/
07:48 mst llch ... typical welsh lack of vowels, check
07:49 marcus mst: it's actually Llansantffraed
07:49 marcus so there are some vowels in there. :)
07:49 mst sounds like a footballer clearing his throat
07:49 marcus oh, they have a helipad, so you can come, mst ;)
07:50 marcus http://historypoints.org/uploads/mp​3/llansantffraed/llansantffraed.mp3
07:51 mst kwa: I'm an inveterate pedestrian
07:51 kwa marcus: It's pretty south. Avoid the local amenities and you'll be fine. Also, don't make eye contact - even with the vegetation.
07:51 mst this is why I can drink russian coffee at my desk
07:51 kwa :)
07:52 marcus kwa: I'm a viking, I'm not afraid!
07:52 trone joined #mojo
07:52 * marcus makes sure to grow out his beard in preparation.
07:52 mst generally, it's being english that's hazardous
07:54 kwa Yeah, but if he speaks English well, they'll think he's from somewhere further away than Liverpool.
07:59 sri btw. any thoughts on this validation change? https://github.com/kraih/mojo/commit/d2​cce28a54eb3e73d75fed0c2734b34de03ed5d3
08:01 yakudza joined #mojo
08:02 sri the idea was to be able to hook in existing validation modules that can fail in different ways which need to be communicated somehow
08:03 sri so it's now my ($check, $result, @args) = @{$validation->error('foo')};
08:04 tba_ joined #mojo
08:05 fhelmbe__ joined #mojo
08:06 russum1 joined #mojo
08:06 ladnaV joined #mojo
08:08 basic6_ joined #mojo
08:09 omega joined #mojo
08:09 BinGOs joined #mojo
08:09 preflex joined #mojo
08:09 jzawodn joined #mojo
08:09 cosimo_ joined #mojo
08:09 migo joined #mojo
08:09 plu joined #mojo
08:09 da5id joined #mojo
08:10 tianon joined #mojo
08:10 dwierenga joined #mojo
08:10 _sri joined #mojo
08:11 HtbaaPi joined #mojo
08:11 larryk78 joined #mojo
08:11 akiym joined #mojo
08:11 mst joined #mojo
08:11 wsri joined #mojo
08:11 salparadise joined #mojo
08:11 Lee joined #mojo
08:11 themage joined #mojo
08:11 highflying joined #mojo
08:11 stephan48 joined #mojo
08:11 keedi joined #mojo
08:11 cstamas joined #mojo
08:11 jberger joined #mojo
08:11 garu joined #mojo
08:11 kwa joined #mojo
08:11 memowe joined #mojo
08:11 mtths joined #mojo
08:11 perlite joined #mojo
08:11 mikegrb joined #mojo
08:11 cottoo joined #mojo
08:11 batman joined #mojo
08:11 trone joined #mojo
08:11 espen joined #mojo
08:11 hummeleBop joined #mojo
08:11 Ralesk joined #mojo
08:11 graf joined #mojo
08:11 basiliscos joined #mojo
08:11 arthas joined #mojo
08:11 fannymay joined #mojo
08:11 dvinciguerra joined #mojo
08:11 jmmills joined #mojo
08:11 buu joined #mojo
08:11 zackiv31 joined #mojo
08:11 alnewkirk joined #mojo
08:11 stokachu joined #mojo
08:11 sjn joined #mojo
08:11 marcus joined #mojo
08:11 ivan joined #mojo
08:11 bayashi joined #mojo
08:11 inokenty joined #mojo
08:11 bowtie joined #mojo
08:11 Jonis joined #mojo
08:12 maxhq joined #mojo
08:13 bc547 joined #mojo
08:13 Bender joined #mojo
08:14 KindOne joined #mojo
08:14 _sri of course there's a netsplit the moment i ask something :o
08:15 dpetrov_ joined #mojo
08:15 larryk78 any Mojo::UserAgent gurus online?
08:16 larryk78 i've got a redirection problem
08:16 moritz just ask your question
08:16 sri you need to be one with your user agent
08:17 larryk78 yeah, how can i debug the response headers in a followed redirection
08:17 larryk78 looks like i can hook the start event for outgoing (request) headers
08:17 larryk78 but not the response
08:18 larryk78 problem is that Mojo::UA is dropping out some part of the URL to a #fragment and it's getting lost in a chain of redirects
08:18 kwa sri: I like the idea of it, but can't quite visualise how it would work using another form validator with it.
08:18 larryk78 whereas a desktop browser is working properly
08:18 sri kwa: it doesn't *just work*, it's just a hook to make it possible
08:19 sri you still need something on the other side to check the result
08:19 larryk78 i think Mojo::UA is URL-decoding a %23 (or maybe a -%23) when it shouldn't
08:19 moritz larryk78: have you tried the MOJO_USERAGENT_DEBUG environment variable?
08:20 moritz at least that's the first thing I'd try
08:20 kwa "A true value may be used to pass along additional information which can then be retrieved with L<Mojolicious::Validator::Validation/"error">." So you can get more information from error other than "this value is bad"?
08:21 sri yes, you can return anything that's true
08:21 larryk78 great - that shows me the headers
08:21 sri return ['this', 'value', 'was', 'bad']
08:22 larryk78 so now i can see for sure that the Location header is being URL-decoded
08:23 larryk78 there's a %23 in there that desktop browsers do not decode, but Mojo::UA is decoding
08:23 mire_ joined #mojo
08:23 larryk78 so when the redirect is followed, the query content beyond the %23 is treated as a URL fragment
08:23 larryk78 and then in subsequent redirects, that is lost
08:24 larryk78 eventually there's a HTTP 400 error because that data is missing from the request
08:24 larryk78 course it works fine in a regular browser
08:24 larryk78 how to raise a bug on Mojo::UserAgent?
08:25 sri don't think i would accept a bug report without more details
08:25 moritz larryk78: seems like https://github.com/kraih/mojo/issues
08:26 sri just because browsers do something doesn't make it right
08:26 sri anyway, this is where you can find the redirect code https://github.com/kraih/mojo/blob/mast​er/lib/Mojo/UserAgent/Transactor.pm#L73
08:26 larryk78 i will certainly put details to the bug report
08:27 sri and here are the tests https://github.com/kraih/mojo/b​lob/master/t/mojo/transactor.t
08:27 sri when i say details i mean affected spec sections and a trace to where mojolicious changes the query
08:28 sri alternatively to the trace a unit test would be fine too
08:28 larryk78 might be in #83... Mojo::URL->new($location)
08:29 larryk78 or ...Response->headers->location
08:29 larryk78 i need to get into the Response object to find out
08:29 sri btw. http://mojolicio.us/perldoc/Mojolicio​us/Guides/Contributing#REPORTING_BUGS
08:29 larryk78 how can i hook the intermediate responses?
08:29 larryk78 the debug env variable dumps it to the console
08:30 sri $tx->previous->previous...
08:30 sri no need to hook
08:30 larryk78 excellent, thanks
08:30 larryk78 i'll be back later
08:34 crab joined #mojo
09:01 perlite joined #mojo
09:01 KindOne joined #mojo
09:02 hummeleBop joined #mojo
09:02 plu joined #mojo
09:06 memowe joined #mojo
09:06 preflex joined #mojo
09:06 Bender joined #mojo
09:06 larryk78 joined #mojo
09:06 akiym joined #mojo
09:06 mst joined #mojo
09:06 wsri joined #mojo
09:06 salparadise joined #mojo
09:06 Lee joined #mojo
09:06 themage joined #mojo
09:06 highflying joined #mojo
09:06 stephan48 joined #mojo
09:06 keedi joined #mojo
09:06 cstamas joined #mojo
09:06 jberger joined #mojo
09:06 garu joined #mojo
09:23 marcus joined #mojo
09:23 wsri joined #mojo
09:24 Lee joined #mojo
09:24 espen joined #mojo
10:03 sixBB joined #mojo
10:03 chansen joined #mojo
10:17 mfontani joined #mojo
10:18 mfontani sri: any easy way to do (Mango) $collection->distinct('key', { search_criteria() }); or any similar collection-specific "command" (http://docs.mongodb.org/manual/reference/command/)
10:22 sri http://mojolicio.us/perldoc/Mango/Cursor#distinct
10:25 mire__ joined #mojo
10:25 larryk78 sri: it's like i thought earlier
10:25 mfontani Sorry I missed that... thank you very much sri
10:25 larryk78 the location header in the http response is being URL decoded
10:26 larryk78 so when Mojo::UserAgent follows that URL automatically, the should-be encoded parts are being treated literally
10:26 larryk78 which defeats the purpose of encoding
10:27 larryk78 would that qualify as a bug?
10:27 sri i'vr still not seen the information i asked about earlier
10:27 larryk78 can you repeat? i don't still have the logs from earlier
10:27 sri see topic
10:28 batman mfontani: you can do it with Mandel :)
10:28 larryk78 sorry - what does "see topic" mean? i'm new here
10:28 sri http://irclog.perlgeek.de/mojo/2013-10-07
10:33 larryk78 ok, i'll try to create a test case to illustrate the issue
10:33 larryk78 needs a client and server aspect to it
10:33 larryk78 is there an example test case i can start with?
10:33 sri why does it require a server?
10:33 larryk78 it's about automatically following redirections so it needs to "flow" at least through REQ->RES->REQ->RES
10:34 sri i linked to much simpler redirect tests earlier too
10:34 larryk78 transactor.t, right
10:34 larryk78 i'll check it out
10:35 sri if that's too hard, a oneliner to demonstrate the problem might do too if you post it here
10:35 sri if there's a live server to demonstrate it with
10:36 larryk78 unfortunately it's a secure system so i can't post a one-liner
10:37 larryk78 this is in the middle of a login flow
10:37 larryk78 with multiple redirects
10:38 larryk78 and with Mojo::UA, the login always ends in failure due to missing data
10:39 larryk78 based on observation i can see that the location header is being decoded and then followed automatically
10:39 larryk78 but the decoding is turning an escaped # (%23) into a literal #
10:40 larryk78 so data after that becomes a URL fragment and disappears when the request is processed
10:40 denisboyun joined #mojo
10:41 sri more explanations are pointless
10:41 sri i need to be able to replicate the problem
10:41 larryk78 i'll see what i can do
10:44 good_news_everyone joined #mojo
10:44 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/xpRw-w
10:44 good_news_everyone mojo/master a6f4821 Sebastian Riedel: added a few more redirect tests
10:44 good_news_everyone left #mojo
10:44 sri that's the kind of test i meant, there doesn't appear to be a problem though
10:47 sri larryk78: what does "mojo version" say?
10:54 larryk78 3.97 Rainbow
10:55 sri ...
10:55 sri http://mojolicio.us/perldoc/Mojolicio​us/Guides/Contributing#REPORTING_BUGS
10:55 sri i should just throw that link into peoples faces and be done with it
10:56 batman larryk78: that's an ancient version
10:58 larryk78 i'll see if the latest version has the same issue
10:58 sri you should have done that before saying anything here
11:00 larryk78 yeah, it was a bit silly not to check the version
11:00 larryk78 do you have to be quite so rude about it though?
11:01 larryk78 "throw"ing things to people's faces
11:01 sri you just made me waste a lot of time
11:01 larryk78 "should have done X before [daring] to ask for help"
11:01 sri that's what i call rude
11:01 larryk78 in what way did i waste your time?
11:02 larryk78 by describing my problem?
11:02 batman please. just stop.
11:03 larryk78 sure... my apologies for wasting anyone's time
11:03 sixBB joined #mojo
11:06 sri this is mostly me being angry at myself for assuming it was really a bug
11:08 mst larryk78: if people are too fucking stupid to upgrade their libraries before reporting a 'bug', then they should just be glad that what's thrown in their face is a link rather than a lovingly sharpened brick
11:08 mst (I do not speak for #mojo but for the amount of contributor time wasted by this shit in general)
11:09 mst (i.e. don't blame anybody else for me being a grumpy fucker, please, that's all me :)
11:09 larryk78 i haven't reported a bug yet - i'm just working out how to...
11:09 mst your first words in the channel included 'possible bug'
11:09 mst people, foolishly, assumed that meant you'd tested against the latest version
11:10 mst sri is currently annoyed at being foolish
11:10 mst I'm annoyed at you wasting people's time and then complaining they're rude
11:10 mst you want polite when you waste people's time? buy a support contract so they're getting paid to put up with that sort of shit :)
11:15 batman s/fucking stupid/not quite as sweet as a butterfly/
11:17 sri of course there's also a simple oneliner to demonstrate that it works with the latest mojolicious
11:17 sri perl -Mojo -E 'a(sub { $_->redirect_to("/test?f%23oo=bar") })->start' get / -r -v
11:18 sri for future reference
11:18 * sri waves at the people stumbling over this in the channel history o/
11:23 sri or less verbose
11:23 sri perl -Mojo -E 'a(sub { $_->redirect_to("/test?f%23oo=bar") })->start' get / -r -v title text
11:23 * mst waves a running chainsaw at the same people to remind them to upgrade
11:23 * sri nods
11:44 denisboyun joined #mojo
11:48 bjoernfan larryk78: Yeah, it makes you afraid to say anything in this channel at all.
11:49 Adurah Pleasantness not guaranteed!
11:51 larryk78 i don't have anything against being a disgruntled developer... i'm quite happy to play that card myself too on occasion
11:51 sixBB joined #mojo
11:52 larryk78 i guess the hostility just caught me off-guard today
11:52 larryk78 as a relative newbie to the (rather good) Mojo libraries
11:53 larryk78 i thought the IRC channel would be full of hippies, peace and love ;)
11:53 larryk78 anyway, turns out i have more than one set of Mojo libs in my env
11:53 sri if you try to help enough people you'll get bitter too
11:53 larryk78 so i need to do some cleanup to make sure what's in use
11:54 larryk78 i'm sure i would, sri :)
11:54 larryk78 thanks for the one-liner
11:57 sri bjoernfan: you're welcome to answer more questions, then i don't have to
12:08 mst larryk78: it wasn't hostility initially, it was simple frustration
12:08 mst larryk78: then you called the frustration rude, and things devolved
12:09 mst larryk78: the trouble with people is ... if they're currently aggravated with the situation, and you decide to take it personally, they tend to automatically then end up aggravated at you
12:09 mst larryk78: this is entirely unfair, but it's also exactly what always happens
12:09 mst larryk78: welcome to humans. we all suck.
12:32 batman larryk78: think of the hostility as people trying to lift you up from *fucking stupid* :P
12:32 batman at least that's the way i've manged to survive mst
12:33 batman and then we drink beer :)
12:33 batman mst++ # http://www.youtube.com/watch?v=aJxrX42WcjQ
12:34 batman ;)
12:34 mire__ joined #mojo
12:35 * batman will shut up now before spreading more insanity
12:35 mst I add an alias to my irssi config a while back under /learning
12:35 mst learning to program is fundamentally (a) become less stupid (b) discover how much more stupid you are than you originally thought (c) goto a
12:36 batman hahaha
12:37 batman i'm a bit tired of #b
12:37 mst that's my favourite part
12:38 mst the rest is grinding for XP, (b) is the sensation immediately after you level up
12:39 batman i feel like a hundred times more stupid when i level up.
12:39 mst that's because you suddenly realise how many XP it's going to be to the next level :D
12:39 batman 1-1 would be nicer :)
12:39 batman haha. could be. doesn't feel like it though
12:39 mst oh, come on, it's *always* more XP to the next level than it was to the last one
12:40 batman yeah. isn't it the number of xp combined to go to the next level?
12:40 mst systems vary.
12:40 batman true.
12:40 batman i think mandel will be my level up.
12:40 batman at least i hope so.
12:41 mst or it'll turn out to be a fractal of bad design
12:41 mst ... no, wait, that's PHP ...
12:41 basiliscos joined #mojo
12:41 batman i'm to novice to understand what "fractal of bad design" even mean :P
12:42 mst it was mostly a reference to Mandelbrot sets
12:42 mst but also there's a blog post hating on PHP called that
12:43 batman :)
12:45 batman http://planet.mongodb.org/po​st/524efb6b15cba73e4d3d7e63 # uhm...? MongoDB's $150 Million Funding Round: It's about the Customer Experience
12:49 mst well it's not like it was ever going to be about the not losing your data, it's already blindingly fucking obvious they're unclear on the concept there
12:51 maxhq joined #mojo
12:53 moritz and losing data is part of the customer experience, right? :-)
12:53 diegok moritz: sure... by default :-)
12:55 mst I think the idea is to make sure MySQL users feel at home
13:04 asarch joined #mojo
13:11 sri hard to believe the competition still insists on terrible usability after the success of mongodb
13:12 sri riak had a good chance, but they just don't capitalize on the document db aspect
13:12 sri instead basho started spamming people on twitter :S
13:17 hrupp joined #mojo
13:20 Adurah Siri, is there a central location for environment variables used?
13:20 mst sri: there are different dimensions of usability
13:21 mst a lot of the trouble I think is that people who're good at building solid core tech tend to focus on manipulexity to the detriment of whipuptitude
13:21 denisboyun joined #mojo
13:21 sri true
13:23 sri although a lot of stuff basho did was rather stupid too... like number of bitcask keys being limited to memory
13:23 dqw7 joined #mojo
13:24 sri now they're just reusing leveldb... same as the loudmouth author of hyperdex
13:24 kwa Good old Larry.
13:24 mst yeah, I'm talking general principle rather than specifics
13:25 mst certainly it's something my APIs tend to be horribly guilty of
13:40 jpn joined #mojo
13:44 dvinciguerra joined #mojo
13:46 btyler joined #mojo
14:08 mst tba++ # making bdfoy feel like he still has a point
14:18 crab ?
14:19 Adurah Slowest Siri ever.
14:19 mst he did a modulelist registration for MangoX::Queue
14:25 ryozi joined #mojo
14:28 denisboyun joined #mojo
14:31 sh4 joined #mojo
14:41 batman haha
14:55 d4rkie joined #mojo
15:01 rem_lex| joined #mojo
15:04 cullum joined #mojo
15:15 cullum joined #mojo
15:16 d4rkie joined #mojo
15:20 cullum joined #mojo
15:31 KindTwo joined #mojo
15:32 cullum joined #mojo
15:33 theSmallAirline joined #mojo
15:33 perlite_ joined #mojo
15:34 _sri joined #mojo
15:35 D4RK-PH0ENiX joined #mojo
15:36 trone joined #mojo
15:36 hummeleBop joined #mojo
15:36 cullum joined #mojo
15:36 sjn joined #mojo
15:36 espen joined #mojo
15:36 jmmills joined #mojo
15:38 btyler_ joined #mojo
15:38 zad-perl joined #mojo
15:39 ivan joined #mojo
15:41 tokuhirom joined #mojo
15:41 augensalat joined #mojo
15:41 akiym joined #mojo
15:42 Ralesk joined #mojo
15:42 robinsmidsrod joined #mojo
15:42 buu joined #mojo
15:42 maxhq joined #mojo
15:43 cottoo joined #mojo
15:47 mire__ joined #mojo
15:47 mtths joined #mojo
15:47 Zx3 joined #mojo
15:47 plu joined #mojo
15:47 nic joined #mojo
15:47 jberger_ joined #mojo
15:47 rem_lex| joined #mojo
15:47 preflex joined #mojo
15:47 crab joined #mojo
15:47 jzawodn joined #mojo
15:47 go|dfish joined #mojo
15:47 Daga2 joined #mojo
15:47 howitdo joined #mojo
15:47 Mad_Dud- joined #mojo
15:47 xtetsuji joined #mojo
15:48 batman joined #mojo
15:48 migo joined #mojo
15:48 bowtie joined #mojo
15:49 d^_^b joined #mojo
15:50 da5id joined #mojo
15:50 Kundun joined #mojo
15:50 Mikey joined #mojo
15:50 wsri joined #mojo
15:51 inokenty joined #mojo
15:52 drift joined #mojo
15:52 bayashi joined #mojo
15:52 marcus joined #mojo
15:53 tianon joined #mojo
15:53 alnewkirk joined #mojo
15:54 btyler joined #mojo
15:54 winslow4 joined #mojo
15:54 mfontani joined #mojo
15:55 cstamas joined #mojo
15:55 arthas joined #mojo
15:55 cosimo joined #mojo
15:55 bzero joined #mojo
15:55 asarch joined #mojo
15:55 memowe joined #mojo
15:55 ryozi joined #mojo
15:55 stephan48 joined #mojo
15:55 stokachu joined #mojo
15:55 Vandal joined #mojo
15:57 Jonis joined #mojo
15:59 Bender joined #mojo
16:00 highflying joined #mojo
16:00 keedi joined #mojo
16:00 salparadise joined #mojo
16:00 jwang joined #mojo
16:00 caeles joined #mojo
16:00 hrupp joined #mojo
16:00 dvinciguerra joined #mojo
16:00 bobkare joined #mojo
16:00 mikegrb joined #mojo
16:00 zackiv31 joined #mojo
16:04 mst joined #mojo
16:08 garu joined #mojo
16:26 btyler joined #mojo
16:28 dqw7 joined #mojo
16:38 bowtie_ joined #mojo
16:41 bowtie_ joined #mojo
17:00 basiliscos joined #mojo
17:17 denis_boyun joined #mojo
17:45 tba_ batman: agreed, haven't had a chance to sort out the readme - didn't realise about the symlink thing though, will get to it! (http://irclog.perlgeek.de/​mojo/2013-10-07#i_7680859)
17:48 batman :)
17:48 batman not often i'm in a position to give away tricks.
17:48 batman feels good :)
17:53 tba_ batman: really cool trick, will remember that - just updated https://github.com/ian-kent/MangoX-Queue - and realised how over the top my synopsis is :o
17:53 batman haha!
17:54 batman you might want to put the description -before- the synopsis, since it's that long
17:54 tba_ maybe, think I might just shorten it - its basically the entire pod without the helpful comments, definite overkill!
17:55 tba_ though perhaps both would work better (wonder how many commits I'll rack up doing this lol)
17:56 tba_ ahh thats a bit better - will have to relook at the pod though, the synopsis includes some syntax the real documentation misses
17:56 Mad_Dud joined #mojo
17:57 dotandimet joined #mojo
18:04 denis_boyun joined #mojo
18:05 batman what magic enable the url_for('route_name') to add stuff like stash("id") from "/:id/edit" back into the path?
18:06 batman i don't get how "my ($generated, $ws) = $self->match->path_for($target, @_);" in ::Controller::url_for() gets information from the current request
18:08 batman what i want is to do <%= link_to 'Edit', 'edit' %> but set a default "id" when :id is not found in path
18:13 dod joined #mojo
18:14 batman $c->match->stack->[-1]{id} = $id; <-- looks a bit hackish...
18:16 dotandimet joined #mojo
18:23 _sri url_for('route_name', id => $id)
18:24 batman right. but i want to avoid setting it *everywhere*
18:24 batman ...if possible
18:25 _sri btw. changing the stask is not particularly hackish
18:26 _sri just advanced, you should be aware of what you're doing
18:26 batman excellent!
18:26 batman thanks
18:28 _sri s/stask/stack/
18:34 batman (off topic) anyone who knows what "18px/30px" in "font: normal 18px/30px serif" means?
18:39 dotandimet joined #mojo
19:05 tianon batman: means font-size: 18px; line-height: 30px;
19:07 btyler joined #mojo
19:17 mire__ joined #mojo
19:32 punter joined #mojo
19:34 batman tianon: oh! thanks :)
19:34 batman when did that happen?
19:41 tianon that's pretty ancient, as far as I know :)
19:42 tianon but it might be CSS3
19:42 tianon http://www.w3.org/TR/css3-fonts/#propdef-font
19:43 tianon yep, CSS1: http://www.w3.org/TR/REC-CSS1/#font
19:43 tianon @batman
19:43 tianon :)
19:43 batman wow. crazy :)
19:44 batman wonder why i haven't seen it before...
19:45 tianon lol, because the smushed one-line syntaxes get insane, so they're usually avoided :)
19:57 batman could be :)
20:40 lukep joined #mojo
20:51 jpn joined #mojo
21:39 d4rkie joined #mojo
21:58 perlite_ joined #mojo
22:15 punter Shouldn't there be a way for Hypnotoad to be configured to not create a .pid file? Because Ubic creates one for it.
22:30 punter What exactly does the 'proxy' setting of Hypnotoad do? All the documentation says is: allows for the X-Forwarded-For and X-Forwarded-HTTPS headers to be picked up automatically
22:30 punter What does "picked up" mean in this context?
22:45 jpn joined #mojo
23:19 dvinciguerra joined #mojo
23:21 tianon joined #mojo

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