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

IRC log for #mojo, 2016-03-27

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

All times shown according to UTC.

Time Nick Message
00:01 jberger There is a c library like redis called vedis or something
00:01 jberger I've been thinking it might be fun to make an embedded xs module for it
00:01 jberger Like dbd sqlite
00:01 sri pure-perl would be cool, so you can distribute it as a tarball that doesn't even require installation
00:02 odc i've already been looking for alternatives to redis. The 2 most interesting ones I found were Cache::FastMmap and BerkeleyDB
00:02 jberger I have no idea what it is capable of, is just a thought
00:02 odc they're both extremely fast
00:02 jberger Something on the giant stack of todos
00:02 odc BerkeleyDB is more stable tho
00:02 jberger sri: yeah that's true
00:03 sri sqlite is the safe choice
00:03 jberger Though for me cpan distributable is good enough
00:03 jberger That's why galileo defaults to sqlite
00:03 sri jberger: for me too, but the tarball would reach people outside the echo chamber
00:04 jberger Assuming you could bundle an interpreter
00:04 sri well, every server has perl ;p
00:04 jberger Has anyone tried to use PAR::Packer on a mojo app?
00:05 jberger sri: every server does sure, but i thought we were talking about convos for personal use
00:06 sri oh, i mean personal use as in a tiny linux vm account on linode or whatever
00:06 nicomen jberger: every mac and linux has perl. for windows you could probably bundle strawberry perl and the users wouldn't notice/care ;D
00:06 sri you get your tiny account, copy over the tarball, start the script, and get an always connected web irc client
00:10 jberger Sure but at that point installing redis isn't hard
00:10 jberger It has no config that you need to set
00:14 sri it is something extra that needs to be managed though
00:15 sri not sure why exactly, but for me it's reason enough not to try it
00:15 sri i guess sqlite i wouldn't mind
00:15 nicomen I'd go for a good enough default, if you want to boost it allow it to work with fancy stuff
00:15 sri maybe it's the managing an extra server aspect
00:16 nicomen sqlite is fast enough
00:16 nicomen possiblt bdb too
00:16 nicomen I guess what they would need is a pubsub service that works like redis, the backend would be irrelevant
00:18 jberger Actually Mercury and sqlite would be interesting
00:18 sri convos doesn't really need multiple processes
00:18 sri so, a tiny little eventemitter would be enough for pubsub
00:18 jberger True, a message broker is only for preforking
00:19 jberger sri: have you looked at mercury yet?
00:19 sri nope
00:19 jberger Worth a peek imo
00:19 jberger Interesting patterns for future reference
00:20 sri well, i do like the music of queen, so it got that going for it
00:21 preaction i should've picked Hermes, to continue the futurama theme
00:23 jberger Hahaha I'm consistent
00:23 jberger I was rereading the doc for the bus and i saw that it doesn't echo to the sender and i thought
00:23 jberger "Oh that's too bad i would really like that"
00:24 jberger And then i remembered working on the echo parameter with you
00:24 jberger Hahaha
00:25 nicomen jberger: are you paying any attention to West Saturday btw?
00:25 jberger ?
00:26 jberger I don't know what that is
00:26 nicomen *Western Saturday
00:26 nicomen primaries
00:26 jberger Oh
00:26 jberger No haven't gotten to the news yet
00:26 * jberger feels the bern
00:26 nicomen ok, just wondering why the HI results are being delayed
00:26 * preaction finds the cream
00:27 nicomen ;)
00:27 * nicomen is hoping for a hat-trick ;)
00:27 jberger I won't repeat it here, but the libertarian response to feel the bern is really funny (in a certain kinds of humor)
00:28 nicomen I recently discovered there is an "American shopping party" in Hawaii ;)
00:28 nicomen Wonder if Paris Hilton is their presidency candidate
00:29 jberger Arrrr Pirate Party!!
00:30 nicomen we have that here in Norway, I know many of the founders and active people, heh
00:31 nicomen I'm a tad more pro-copyright to embrace it
00:47 sri politics in germany are going down the drain
00:48 sri nobody trusts merkel anymore and in protest the far right gets tons of votes
00:48 nicomen yeah, but still 1.5 year left no?
00:49 nicomen how about the SPD?
00:49 nicomen or FDP?
00:50 sri yes, she still has a little time, but it doesn't look like she will do anything with it
00:50 sri SPD could come back, but they don't have anyone people care about
00:50 sri FDP is dead
00:51 nicomen ok, then AfD it is!
00:51 nicomen ;)
00:51 sri those are mostly literal nazis :(
00:52 sri think our only hope would be SPD+green party
00:52 nicomen I think it's not very strange that people cling to such parties when they are afraid
00:53 sri i understand why people vote that way, i'm mostly angry with merkel for letting it come to this
00:53 nicomen the key is to acknowledge the fear and address it in a sensical way, without being fascist about it
00:54 nicomen many socialist parties seem to just label people bad things, and end up alienating them instead
00:54 sri norway has a similar problem?
00:54 nicomen sure
00:55 sri think i read it somewhere
00:55 nicomen I would not call the rightmost popular party nazis though. But let's say a more egocentric world view
00:56 nicomen but it's a bit funny because regarding refugees the social democrats have been as strict and rigid as the liberal party, they just have different rhethorics. And ironically the liberal party is part of the ruling coalition, and the country has never let in as many people to the country as during this period.
00:56 nicomen so, I think our fights are mostly about rhethorics
00:58 nicomen but I don't know when you have swedish and german police covering up statistics etc. for people's own safety, and they get busted, I understand how people go even further to the right
00:59 nicomen do you guys vote before the US?
00:59 sri us votes this year i think, no?
00:59 nicomen if the US get Trump that might have a chilling effect and some correction in DE
01:00 sri trump... that would be something
01:00 nicomen ah right
01:00 nicomen trump is ironicallky the most sane republican candidate at the moment
01:00 nicomen (and for a while)
01:00 nicomen or let'ssay least crazy
01:01 sri sanders does seem very sympathetic
01:01 asarch joined #mojo
01:02 nicomen I agree
01:02 ashimema joined #mojo
01:03 sri pretty old though, gotta be careful not to make frank underwood his vp -.-
01:03 nicomen hahaha
01:03 nicomen did you watch season 4?
01:03 sri yea
01:04 sri much better than season 3, but at the end it didn't feel like anything had really happened
01:04 nicomen I enjoyed it, picked up a bit compared to 3
01:04 nicomen haha, you are right!
01:05 jberger Agreed
01:06 jberger And i still don't think that if trump gets the nomination that he can win
01:06 jberger His unfavorables nationally are still way too high to get elected
01:07 jberger Of course something crazy could happen like hillary getting the nomination and then getting indicted for the emails thing
01:07 sri clinton seems pretty evil too, but in the end it's just more of the same?
01:08 jberger Yeah, she's the corporate center that everyone hates but only quietly
01:08 sri hillary underwood
01:08 jberger Hahaha
01:08 nicomen I am thinking hillary wins, then gets Sanders as an actual acting VP, is that even possible? (If not could Sanders break out as an independent if he wins the popular vote, but still loses?)
01:08 sri whatever she does, she reminds me of that show
01:08 pink_mist I know people who would rate the options 1: sanders, 2: trump, 3: anyone but hillary, 4: hillary
01:08 jberger The show is clearly about the Clintons
01:09 jberger But making them a little more evil than they really are to be fair
01:09 sri bill clinton doesn't seem so evil, but that might just be show
01:09 jberger Anyone who puts trump above last i don't care about their opinion
01:10 nicomen haha
01:10 jberger He is totally unqualified let alone an embarrassment
01:10 nicomen but srlsy, why is hwaii being such a drama queen, I don't see any rsults anywhere
01:10 jberger He'd show up the first day and ask what a situation room is
01:10 nicomen he would be a comic relief, like bush
01:11 nicomen until he wages war
01:11 pink_mist jberger: tbh bush jr didn't seem any better
01:11 jberger Maybe because they are several hours behind?
01:11 jberger They are much farther west than you think
01:11 nicomen jberger: the polls closed / pm E.T that's midnight CET, and it's now 03:11 here
01:11 nicomen = 7
01:11 jberger pink_mist: even he i think thought he was doing what was best for the country
01:11 jberger Insane as it was
01:12 pink_mist nicomen: considering we skipped 02:00 and went straight to 03:00 here in CET...
01:12 jberger Trump i don't think he has any thought for the presidency beyond what it does for him
01:12 pink_mist nicomen: or rather: CEST
01:12 jberger No matter what his rhetoric
01:13 sri honestly, obama doesn't seem much better than bush jr
01:13 sri the way he built up the drone program, that's his legacy
01:13 jberger http://everytimezone.com
01:14 nicomen pink_mist: oh you are right, I forgot
01:14 nicomen 03:11 CEST
01:14 jberger Yeah obama was a disappointment, and not for the reasons that fox news would say
01:14 pink_mist jberger: well that page is wrong, vienna is also in CEST, not CET :P
01:14 jberger Then again i never expected much, i remembered his senate election campaign (i am from Chicago after all)
01:15 jberger All I'm saying is that it is only 3:15 in Hawaii
01:16 pink_mist ... now I'm curious whether it'll get london correct in 45 minutes when they change to BST
01:16 nicomen wtf. you are right, why does it say ET everywhere, they even have HAST - www.timeanddate.com/worldclock/usa/honolulu
01:17 jberger Hahaha keep watching i guess
01:17 nicomen ok, I 'm not waiting 4 more hours at least
01:18 jberger Hawaii is far enough west that i got actual jet lag going there
01:18 jberger Nothing like Europe or Asia
01:18 jberger But noticeable
01:19 nicomen abs(CEST - HAST) = 12 ;)
01:19 nicomen that's easy
01:25 sri that response was better than i expected https://www.reddit.com/r/perl/comments/4bvdny/die_if_fork_eq_hostile/d1eorpb
01:26 nicomen ;)
01:37 sri jberger: so your news overlords don't like sanders? i see lots of tweets complaining about news channels showing documentaries when he's winning
01:39 jberger I mean they follow every minute of trump
01:40 jberger Sanders is a good speaker, but trump speeches are a train wreck that the news stations can't cut away from
01:41 jberger I usually watch one hour of news a week
01:41 jberger Sunday morning, This Week on ABC
01:42 jberger Watch it with a critical eye, you can actually get some news
01:42 nicomen I think this will change, but in the meantime, the black out helps Sanders
01:46 sri jberger: wait, not last week tonight? :o
01:46 jberger Other than that it's all preach to the choir infotainment
01:46 jberger Oh that too
01:46 sri :)
01:46 jberger But i count that differently
01:46 jberger Back to reddit, chromatic came in to land the punch i didn't throw
01:48 sri hehe
01:48 sri he's not wrong
01:50 sri indefinite backwards compatibility is crazy expensive
01:51 preaction nah. just put the version in the module names :p
01:51 sri ;p
01:55 sri jberger: did you actually see a fork on cpan that has managed to keep up with our releases?
01:55 nicomen had to butt in
01:56 sri thinking back, every single one i've seen was outdated
01:56 sri that's a pretty bad track record for forks so far
02:02 mtths joined #mojo
02:21 jberger Can't say i was looking that closely
02:23 thowe joined #mojo
02:50 noganex joined #mojo
05:08 melo joined #mojo
05:17 atom I have a file that's in a non public path, from the docs it looks like I can serve it with $c->reply->static( '/path/to/image.png' );
05:17 atom when the browser is asking for in the request header:  "Accept: image/webp,image/*,*/*;q=0.8
05:17 atom "
05:19 atom how does Mojolicious hookup the route?  I tried... $c->reply->static( '/path/to/image.png', format => 'png' ); ... based off the docs I read but I think I'm missing something
05:19 atom I keep getting 404 page not found
05:22 nicomen uh oh not sure. try asking again at a different time of day and people will be awake
05:27 atom this plugin worked like a champ:  Mojolicious::Plugin::RenderFile
05:58 kaare joined #mojo
06:42 salva joined #mojo
08:14 Vandal joined #mojo
11:53 sugar joined #mojo
12:10 jberger atom: I'm guessing you don't have the file in the public/ directory
12:37 pink_mist jberger: yeah, that's what he said
12:38 pink_mist "<atom> I have a file that's in a non public path, [...]"
12:38 mitya joined #mojo
12:44 asarch joined #mojo
12:54 jberger I think reply static requires being in the static paths
12:55 jberger Otherwise you can reply asset and manually slurp it iirc
13:27 Adura joined #mojo
15:02 neilhwatson joined #mojo
15:46 PryMar56 joined #mojo
16:19 jontaylor joined #mojo
16:28 dod joined #mojo
16:33 dod joined #mojo
16:40 dvinciguerra joined #mojo
17:04 bradjm joined #mojo
17:16 dvinciguerra joined #mojo
17:20 pink_mist I'd suggest $c->reply->asset(Mojo::Asset::File->new(path => $path));
17:22 cpan_mojo Mojolicious-Plugin-QuickPg-1.2 by AZJADFTRE https://metacpan.org/release/AZJADFTRE/Mojolicious-Plugin-QuickPg-1.2
17:24 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Custom-responses
17:29 sri wonder if the fork policy should also have a section for users of forks
17:29 pink_mist oh hey, that looks almost exactly like my suggestion :P
17:29 sri like warning them that so far no fork has managed to stay up to date
17:31 odc could be useful for new users
17:55 good_news_everyon joined #mojo
17:55 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vVfx1
17:55 good_news_everyon mojo/master c8569aa Sebastian Riedel: address users of forks as well
17:55 good_news_everyon left #mojo
17:55 sri does that sound reasonable?
17:55 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Contributing#FORK-POLICY
18:01 good_news_everyon joined #mojo
18:01 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vVfpU
18:01 good_news_everyon mojo/master 3faf552 Sebastian Riedel: developers, not users
18:01 good_news_everyon left #mojo
18:02 jberger deveopers
18:02 sri argh!
18:03 good_news_everyon joined #mojo
18:03 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vVfpG
18:03 good_news_everyon mojo/master 358d6b0 Sebastian Riedel: DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS...
18:03 good_news_everyon left #mojo
18:03 jberger Hahaha
18:04 sri https://www.youtube.com/watch?v=rRm0NDo1CiY
18:12 sri \o\
18:12 sri /o/
18:19 dod joined #mojo
18:24 dod joined #mojo
18:28 dvinciguerra joined #mojo
18:51 bradjm joined #mojo
19:01 sri has anyone here played firewatch yet?
19:07 jantore yes
19:07 jantore it's short, but oh so pretty
19:08 sri good story?
19:09 sri it seems to be getting great reviews everywhere, but the description makes it seem a little boring
19:09 jantore it didn't engage me very much, but I was happy just walking around ;-)
19:09 sri hmm
19:13 meredith i enjoyed firewatch, played straight through overnight
19:13 meredith i liked the atmosphere a whole lot -- gorgeous nature and a feeling of isolation
19:15 jantore yep, they got the atmosphere just right
19:15 jantore and I certainly wouldn't say it got boring in the six hours I put into it
19:15 meredith i'd read this not long before, and it really brought the same feeling i had reading it:  http://www.otherhand.org/home-page/search-and-rescue/the-hunt-for-the-death-valley-germans/
20:03 mitya joined #mojo
20:31 lluad joined #mojo
20:36 bradjm joined #mojo
21:10 dvinciguerra joined #mojo
21:19 jberger Firewatch looks cool
21:20 jberger I'd give that a try
21:27 meshl joined #mojo
23:07 jabberwok joined #mojo

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