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

IRC log for #mojo, 2016-01-28

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

All times shown according to UTC.

Time Nick Message
00:01 genio because their markdown syntax doesn't do code blocks.  and <pre><code class="prettyprint"> is supposedly how you get syntax highlighting, yet that doesn't happen in the preview (which is an ugly, no frills, white page that doesn't give you any indication of how your post will actually look)
00:01 Grinnz_ as far as HTML, <pre> says it's preformatted structure, <code> says it's code
00:01 pink_mist also I'm sure I've seen properly formatted code blocks on blogs.perl.org 0_o
00:01 Grinnz_ so it's just allowing full-on HTML?
00:02 Grinnz_ this is how you get javascript injections...
00:03 jberger genio: you can tell it to render markdown
00:04 zax k guys, ill try with the helper, tnx
00:08 jberger genio: four space indent is code block in markdown
00:08 genio ok, maybe I'm complaining because I'm used to github markdown where I can wrap it in ``` code_here ```
00:09 genio let me open this up in an editor where I can more easily edit this text
00:09 Grinnz_ yeah every markdown is slightly different
00:09 Grinnz_ it's fun stuff
00:10 jberger genio: yeah code "fence" is non-standard
00:10 jberger Often called github flavored markdown
00:11 Grinnz_ also, the fact that it allows full-on HTML explains why I saw <> disappearing in other people's comments
00:11 Grinnz_ *sigh*
00:11 jberger Html is valid markdown
00:12 Grinnz_ that's dumb IMO
00:12 jberger Markdown was explicitly written for generating html, that was it's explicit intention
00:13 Grinnz_ right, so was bbcode
00:13 Grinnz_ both are often used in contexts where users have no concept of HTML, and thus <> should be treated as literal <>
00:14 Grinnz_ fortunately, the code block mechanisms avoid the problem most of the time
00:15 jberger I'm reminded of common mark and wondering why after all that hype I haven't heard anything lately
00:15 Grinnz_ aha, i vaguely remember that
00:15 jberger "both are often used in contexts where users have no concept of HTML"
00:15 jberger I disagree
00:16 jberger That was not markdown's intention
00:16 Grinnz_ maybe not, but on github and such it is
00:16 jberger The intention was to aid generating html, sometimes that's easier by using html
00:16 Grinnz_ reddit and other comment systems, etc
00:17 jberger Right, it has become a thing beyond that
00:17 Grinnz_ "aid generating html" -- meh, thats what templates are for, is my thought :P
00:22 jberger Hmm perhaps my next Galileo should use common mark
00:22 jberger Currently I have to store both the markdown and the generated html
00:23 Grinnz_ that's what i've ended up doing with bbcode anyway, usually
00:23 jberger With common mark I could just store the markup
00:23 jberger I'm assuming there's a common mark renderer on cpan
00:23 * jberger checks
00:23 Grinnz_ i see two wrappers of the C library, lol
00:24 Grinnz_ https://metacpan.org/pod/CommonMark and https://metacpan.org/pod/Text::CommonMark
00:25 Grinnz_ doesnt look like either bundles it unfortunately
00:28 jberger Time for an alien module
00:28 Grinnz_ 👽
00:28 bowtie joined #mojo
00:31 jamadam joined #mojo
00:35 bowtie_ joined #mojo
00:36 sri_ 🍺
00:42 preaction jberger: why can't you do it with Text::Markup?
00:43 preaction i was excited about CommonMark till the branding troubles and the contribution troubles I had
00:43 preaction er.. Text::Markdown
00:52 disputin joined #mojo
00:54 jberger Because I don't want to have to validate between the js generated html and the perl generated
00:57 jberger Github down?
00:57 lluad Github is down, yeah.
00:58 lluad Startup companies across the valley have stalled; developers emerge, blinking, into the daylight.
00:58 Grinnz heh
00:58 Grinnz It's 5PM there, not much daylight left
00:59 jberger Like a thousand open source developers crying out as one and then suddenly silent
01:00 jontaylor joined #mojo
01:00 Grinnz maybe they should enact some kind of .... time change to save the daylight
01:09 * genio stabs Grinnz
01:10 genio :)
01:16 genio \o/ first ever blog post done
01:17 Grinnz that's one more than me!
01:17 RichiH joined #mojo
01:17 RichiH Grinnz: heh
01:20 vicash jberger: and thousands closed source paying for Github developers crying out as well
01:21 Grinnz at least github being down reminds us of the benefits of decentralized source control, right :P
01:25 vicash Grinnz: yes a cron job running git clone --mirror every half hour or so, always backing up whatever's on github
01:31 nicomen I wish they had some more info that the generic text
01:31 zax joined #mojo
01:37 RichiH if anyone has a minimal web server which answers to requests and reads from a file
01:37 RichiH if anyone has a minimal web server which answers to requests and reads from a file via events which i could steal from, please highlight me with a link
01:37 * RichiH will drop dead, now
01:39 preaction jberger: create a webservice that takes in markdown and builds html, so all markdown is generated server-side
01:42 Grinnz or reimplement Text::Markdown in js! :D
01:43 genio jberger: Thanks again for all the help and putting up with my annoying, incessant questions
01:44 mcsnolte joined #mojo
01:45 Grinnz or: https://gfx.github.io/perl.js/
01:46 Grinnz (stop me before i come up with more horrible ideas)
02:27 mattp Grinnz: "per.js"
02:27 jberger genio: no worries
02:28 mattp actually that was easy enough. sent pr
02:28 Grinnz i think thats just a typo lol
02:29 Grinnz also apparently github is working now
02:30 mattp not really. its failing to let me fork this project :)
02:36 jberger Any word yet as to the cause?
02:36 jberger Is it the Great Cannon again?
02:39 kaare joined #mojo
03:07 jamadam joined #mojo
03:31 preaction aren't they linode-hosted? hasn't linode basically been under attack for a month?
03:34 jasanj joined #mojo
03:37 jamadam joined #mojo
03:39 noganex joined #mojo
04:05 jamadam joined #mojo
04:09 jberger Github doesn't have it's own racks by now?
04:11 preaction i thought that was the cloud promise: you'd never have to worry about physical machines ever again. the "as-a-Service" part is forever!
04:19 binlei joined #mojo
04:24 jamadam joined #mojo
04:26 binlei joined #mojo
04:30 inokenty-w joined #mojo
04:50 c--_ joined #mojo
05:02 jamadam joined #mojo
05:06 jamadam sri: thanks for the fix!
05:29 jamadam joined #mojo
05:45 binlei joined #mojo
06:13 sugar joined #mojo
06:52 Vandal joined #mojo
07:22 dod joined #mojo
07:23 dod joined #mojo
07:28 dod joined #mojo
07:31 Kogurr joined #mojo
07:48 denny joined #mojo
08:03 binlei joined #mojo
08:22 AndrewIsh joined #mojo
08:34 bowtie joined #mojo
08:34 trone joined #mojo
08:44 trone joined #mojo
08:56 vanHoesel joined #mojo
08:59 vanHoesel1 joined #mojo
08:59 trone joined #mojo
09:05 Shaeto joined #mojo
09:59 berov joined #mojo
10:00 trone joined #mojo
10:51 jontaylor joined #mojo
11:02 * sri_ yawns
11:16 CandyAngel Morning sri
11:17 gregf joined #mojo
11:24 sri o/
11:33 CandyAngel How are you today?
11:35 nic When I worked with foreign-language students I often heard that question pronounced "Who are you today?", which I feel is somewhat more interesting
11:40 kaare joined #mojo
11:41 CandyAngel Well, some days I wish I could be other people, so I could use their skills :P
11:44 CandyAngel But that's one of those questions isn't it? If you could be anyone, who would it be? If you could meet anyone, who would it be? etc.
11:46 sri today i'm a pirate
11:46 sri arrrr
11:48 sri http://www.viciouspotato.net/
11:49 marcus totally playing that for the rest of the day.
11:49 * marcus has the pirate flag on his office wall
11:54 marcus Ok. It's already getting a little annoying after 5 minutes :(
11:55 sri back to nyancat?
11:56 coolo hihi. I read "When I worked with foreign-language students" as students using C# - had to read it twice to get it ;)
12:17 Caldrin joined #mojo
12:17 Caldrin Hello!
12:19 nic Hi Caldrin!
12:21 Caldrin When I have Mojolicious render JSON with $self->render(json => {url => $url}) the remote side gets a URL with all slashes escaped like this "http:\/\/www.google.com". I know that the JSON spec allows it but does not require. I look for a way to deactivate the quoting. This is because without quoting my users could easily cut-and-paste the URL in their browser.
12:21 Caldrin Is there any way to achieve this?
12:22 nic $self->render(text => {url => $url})
12:23 sri use a different json module
12:24 Caldrin nic: This does not help. The hash given to render is bigger data structure.
12:24 Caldrin sri: Can you please point me to documentation on how to achieve this?
12:24 sri http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Rendering-data
12:25 Caldrin Thank you
12:45 * CandyAngel borrows sri's brain
12:45 CandyAngel I won't break it, I promise!
12:46 jberger Today I'm James Brown, but you know, alive
12:47 CandyAngel Hey jberger
12:47 * CandyAngel also borrows his brain
12:50 CandyAngel http://i.kinja-img.com/gawker-media/image/upload/s--cXAs4ztF--/hyldghf0r49osy2ljpaq.png
12:50 CandyAngel sri's is on the left
12:51 CandyAngel jbergers on the right
13:00 sri :O
13:01 CandyAngel By their powers combined, I will code a decent solution!
13:01 CandyAngel Mwhaaha
13:01 jberger But in the meantime I can be James Brown, right?
13:01 CandyAngel And then put them back, of course
13:02 marcus sri: jazz nyancat https://www.youtube.com/watch?v=AaEmCFiNqP0
13:02 CandyAngel I'm okay with that :P
13:02 CandyAngel Be who you want to be!
13:02 marcus I think my officemate might kill me soon. He seems to be plotting.
13:02 jberger https://youtu.be/v5z34QComMo
13:03 nic the point of sharing offices is to keep each other awake, and plotting is the most efficient form of that, ergo
13:04 nic marcus: Have you seen Shallow Grave?
13:05 marcus nic seriously old school.
13:05 nic :)
13:07 CandyAngel I think I have a solution to the problem
13:07 * CandyAngel returns the brains.. for now
13:07 jberger Aaaaaaaaaaa still no stickers!
13:08 marcus http://imgur.com/a/SJ1jG
13:14 kes joined #mojo
13:30 ajr_ joined #mojo
13:44 abra joined #mojo
13:52 neilhwatson joined #mojo
13:57 abra_ joined #mojo
14:00 mullagain joined #mojo
14:03 asarch joined #mojo
14:08 sri yes, he might be plotting something
14:14 ajr_ joined #mojo
14:20 cschwenz joined #mojo
14:23 cschwenz given "www.example.com/foo/", where will Mojolicious look for "/foo/"?  (also, point to where in the documentation this is covered is also appreciated.)
14:23 ajr_ joined #mojo
14:34 cschwenz left #mojo
15:01 ajr_ joined #mojo
15:02 jberger cschwenz: is that a static file or a template or a row handled by a controller?
15:02 jberger s/row/route/
15:05 vanHoesel joined #mojo
15:07 vanHoesel1 joined #mojo
15:10 binlei joined #mojo
15:22 ajr_ joined #mojo
15:38 lluad joined #mojo
15:49 jb360 joined #mojo
15:55 ajr_ joined #mojo
15:58 Kogurr joined #mojo
16:11 bowtie joined #mojo
16:15 dragos joined #mojo
16:30 good_news_everyon joined #mojo
16:30 good_news_everyon [mojo] kraih pushed 1 new commit to master: https://git.io/vz5iN
16:30 good_news_everyon mojo/master 2e52faf Sebastian Riedel: local is more elegant
16:30 good_news_everyon left #mojo
16:36 bowtie_ joined #mojo
16:40 jb360 joined #mojo
17:16 disputin joined #mojo
17:21 vicash jberger: when we install Mojo we get the jquery.js file installed as well. does that automatically get picked up if I reference it or do I need to copy that into my app's public/ directory ?
17:22 jberger vicash: that jquery is for internal use only
17:22 jberger we reserve the right to update/change/remove it at will
17:22 Grinnz_ probably not a good idea to rely on it anyway, as it's updated at mojo's discretion
17:22 preaction vicash: use npm to get a local copy, and use assetpack to bundle it up in your app
17:23 vicash thanks. i will just use the jquery cdn for now. i don't have nodejs installed, i assume npm is for that
17:24 Grinnz_ for just jquery, it's probably overcomplication
17:24 preaction npm is for node, but the js community is also putting browser libs in there, because it's not terrible like power
17:24 preaction if you want a local copy, i'm saying, without having to commit it to your repository
17:25 vicash preaction: interesting, i will look into that as an option for deployment in prod.
17:25 jberger often I just use the google cdn
17:26 preaction cdnjs is my favorite, but i've got lots of projects (weirdly) where cdns don't work / aren't allowed
17:26 jberger https://developers.google.com/speed/libraries/#jquery
17:26 Grinnz_ "speeeeed" - jeremy clarkson
17:26 vicash also, is it better to serve static files through Nginx/Apache vs the Mojo app server ?
17:27 jberger assetpack is probably the best option, but I usually develop using cdns for my ease of use
17:27 jberger vicash: once you get going, nginx, but don't prematurely optimize either
17:27 vicash got it.. right now still in development, production is weeks away
17:31 dod joined #mojo
17:35 mcsnolte joined #mojo
17:36 jberger I have a websocket test that fails on rare occaisons
17:36 jberger its a finish_ok which tests for a certain finish code
17:36 jberger and when it fails the finish code is some very unexpect and very high up number
17:36 jberger like  WebSocket closed with status 19041
17:37 jberger any ideas?
17:37 Grinnz_ is that... a process id? lol
17:38 jberger I'm expecting 4500, I've adopted using standard HTTP codes with a 4 in front
17:38 jberger because <4000 is reserved by the websocket RFP
17:38 jberger RFC even
17:38 pink_mist jberger: is it always the same high number or is it different each time?
17:39 jberger I believe its different
17:39 jberger it fails rarely so I don't remember for sure
17:39 * jberger runs many times
17:42 jberger once it was 19041 again
17:42 jberger once it was 31314
17:43 bradjm joined #mojo
17:43 jberger 19041 again, this time on a test expecting 4429
17:44 jberger 21582
17:44 sri shouldn't be too hard to track down
17:50 jberger sri: if you have ideas I'd be interested to hear them
17:50 sri nope
17:50 sri but the code is easy to follow
17:50 jberger I'm assuming something else is getting encoded into the finish status
17:55 ajr_ joined #mojo
18:24 PopeFelix joined #mojo
18:25 PryMar56 joined #mojo
18:29 disputin joined #mojo
18:45 bradjm joined #mojo
18:46 berov1 joined #mojo
18:51 disputin joined #mojo
19:01 gtodd joined #mojo
20:02 odc joined #mojo
20:03 bowtie joined #mojo
20:09 gtodd joined #mojo
21:04 tempire This seems like it would be worth reading: http://www.cs.mcgill.ca/~martin/papers/icse2016a.pdf
21:05 tempire @jberger: I nominate you since you almost made a career out of reading poorly presented research papers
21:05 tempire I've spent too much time on slack
21:05 tempire jberger: ^
21:06 * jberger wonders if that was a compliment
21:08 jberger nothing better than writing about writing
21:08 marcus any oher mojoers coming to fosdem this weekend?
21:08 jberger not I
21:08 marcus I'm shocked. Shocked, I say!
21:08 jberger I'm starting to agitate for YAPC::EU though
21:09 jberger since I can't make ::NA
21:09 jberger (then again, I still have a Brazilian visa)
21:15 marcus Doubt I'll make it to YAPC this year :-/
21:20 jberger marcus: even EU?
21:23 jb360 joined #mojo
21:41 marcus jberger: It's been a while since my last YAPC.
21:42 marcus and it's not really relevant to my current work.
21:43 disputin joined #mojo
21:46 jberger even with your AnsibleModule stuff?
21:57 sri sidekiq just got multi process support, guess minion was ahead there :)
21:57 sri they made it a commercial only feature though
22:07 jberger minion++
22:13 disputin joined #mojo
22:54 disputin joined #mojo
22:57 PryMar56 joined #mojo
23:00 bpmedley joined #mojo
23:13 bpmedley joined #mojo
23:47 bpmedley joined #mojo
23:47 bpmedley joined #mojo

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