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

IRC log for #mojo, 2015-03-29

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

All times shown according to UTC.

Time Nick Message
00:44 Zoffix Hum
00:44 Zoffix batman, would be neat if the app died if there were SASS parsing errors... :)
01:02 ashimema joined #mojo
01:33 mattastrophe joined #mojo
01:42 absolut_todd joined #mojo
01:58 klapperl joined #mojo
02:03 woz joined #mojo
02:21 noganex_ joined #mojo
03:06 basic6_ joined #mojo
03:18 vmbrasseur joined #mojo
03:52 woz joined #mojo
04:14 vmb joined #mojo
04:26 kaare joined #mojo
04:47 absolut_todd joined #mojo
05:25 vmbrasseur joined #mojo
05:28 jberger joined #mojo
05:33 Oleg joined #mojo
05:35 Grinnz joined #mojo
05:38 dotandimet joined #mojo
05:43 GabrielVieira joined #mojo
06:05 reneeb joined #mojo
06:38 reneeb joined #mojo
06:42 melo joined #mojo
06:46 vmbrasseur joined #mojo
06:48 vmb joined #mojo
07:02 zacts joined #mojo
07:11 atom123 joined #mojo
07:21 Vandal joined #mojo
07:29 woz joined #mojo
07:42 batman Zoffix: Instead of generating the error asset?
07:43 csson joined #mojo
08:28 dod joined #mojo
08:34 dod joined #mojo
08:58 trone joined #mojo
09:18 berov joined #mojo
09:26 okcomputer joined #mojo
09:35 ryozi joined #mojo
09:44 dexter joined #mojo
10:14 woz joined #mojo
10:24 punter joined #mojo
10:36 meshl joined #mojo
11:30 sh4 joined #mojo
11:32 amon joined #mojo
11:33 reneeb joined #mojo
11:42 AndrewIsh joined #mojo
11:51 cpan_mojo Ado 0.86 by Krasimir Berov - http://metacpan.org/release/BEROV/Ado-0.86 (depends on Mojolicious)
12:04 reneeb joined #mojo
13:08 Oleg joined #mojo
13:10 asarch joined #mojo
13:45 gryphon joined #mojo
13:53 Zoffix batman, oh, didn't realize there was an error asset. Then there's a bug: error asset isn't generated when the error is not in the first .scss file.
13:54 Zoffix I'm including them here: https://github.com/zoffixznet/Ignorant-Designer/blob/master/IgnorantDesigner.pl#L13
13:55 Zoffix If I make an error in /main.scss, I do get an error asset, but if I make it in /mobile.scss, then nothing happens. There's an error in the log, but no assets.
13:56 batman Zoffix: Can you file an issue on github?
13:56 Zoffix Sure.
13:56 batman I'm currently waiting on the train.
13:57 batman Would be nice if you could supply files/code for a minimal test cases as well.
13:57 batman Especially since I have a hard time understanding how it's possible :/
14:16 disputin joined #mojo
14:33 disputin joined #mojo
14:50 juikuen joined #mojo
14:54 zivester joined #mojo
14:54 doby joined #mojo
15:02 memowe joined #mojo
15:27 disputin joined #mojo
15:31 Zoffix batman, never mind. There's no bug with error assets, but I think there might be one with fallback. I had production mode on, so when I was editing second file and it errored out, fallback to the non-errored version happened. But if the error happens in the first file, fallback doesn't fallback and the error shows up in the regular file (there's no .err in the filename)
15:31 * Zoffix tries to make a small testcase
15:33 cpan_mojo Mojo-MySQL5 0.03 by HARRYL - http://metacpan.org/release/HARRYL/Mojo-MySQL5-0.03
15:33 cpan_mojo Mojo-mysql 0.09 by HARRYL - http://metacpan.org/release/HARRYL/Mojo-mysql-0.09
15:51 sri can someone explain this to me? https://github.com/jhthorsen/mojo-mysql/pull/14
15:53 disputin joined #mojo
15:55 sri that _utf8_off seems very sketchy too
15:56 jberger why do they want to parse the migrations anyway?
15:56 jberger don't you just execute that blob on the sql engine?
15:58 sri maybe mysql can't handle multiple statements at once?
15:59 PotatoGim^Home joined #mojo
16:01 sri of course i never understood why Mojo::mysql::Migrations exists in the first place, it's terrible with mysql
16:01 jberger I suppose its just such a huge selling point of Mojo::Pg
16:06 sri one mistake and you end up with a half finished migration
16:08 sri point of Mojo::Pg::Migrations was specifically that you always stay in a stable state, if one statement fails, the whole migation gets rolled back
16:08 jberger I get that, I'm just saying, that is likely the motivation
16:51 woz joined #mojo
17:02 memowe joined #mojo
17:26 sri damn you china
17:28 jberger yeah, I'm having issues too
17:28 sri having github issue actions time out is awesome...
17:28 jberger I had better luck the other day with the https connection than the ssh
17:28 sri think i might mirror the projects china hates so much on mojolicio.us
17:29 jberger a show of protest?
17:29 sri yea, they've basically declared war on us
17:29 Grinnz what projects are those?
17:30 Adura I'm officially no longer going to buy products made in China!
17:30 sri https://github.com/greatfire/
17:30 sri https://github.com/cn-nytimes/
17:30 Grinnz Adura, good luck lol
17:30 Grinnz wtf? alert("WARNING: malicious javascript detected on this domain")
17:31 sri that's github fighting back
17:32 sri china used their great firewall to rewrite all requests for baidu from outside china
17:33 sri they inserted a script that loads those github projects in an infinite loop
17:33 Grinnz lol
17:33 sri so random people on the internet were ddosing github
17:33 Grinnz fucking china
17:34 sri apparently baidu has an analytics product like google and stuff, that was rewritten
17:34 sri github was fighting back pretty well though, now they are just using everything they got
17:35 sri like a dozen different ddos ttack vectors
17:35 preaction it's an interesting story when an entire country is attacking someone
17:36 sri and you hear nothing about it in the news
17:36 jberger just rt-ed a wsj article
17:36 jberger but yeah
17:36 sri it's the most public attack i've ever heard about
17:38 sri looks like github is now actually down, not just slow
17:39 sri that wsj article requires a login to be able to read it...
17:40 jberger hmmmm, guess I should have tried reading it before rt-ing
17:40 jberger oh well
17:40 sri the register has a good article
17:40 sri http://www.theregister.co.uk/2015/03/27/github_under_fire_from_weaponized_great_firewall/
17:46 jwang joined #mojo
17:48 jberger tweeted
17:51 sri i'm kinda glad it doesn't get mainstream media attention though... could be used very easily to justify more great firewalls
17:52 sri this is fun to look at http://www.digitalattackmap.com/#anim=1&color=0&country=ALL&list=0&time=16521&view=map
17:55 sri not sure about this issue https://github.com/kraih/mojo/pull/773
18:02 meshl joined #mojo
18:16 meshl joined #mojo
18:19 vmbrasseur joined #mojo
18:24 jberger I'm curious though
18:25 jberger https://status.github.com/ hasn't changed much, when clearly they are having trouble
18:27 meshl joined #mojo
18:32 vmbrasseur joined #mojo
18:42 jberger xdg just showed this map too: http://map.ipviking.com/
18:43 Grinnz its a map of world war 3!
18:43 sri world war cyber
18:44 preaction CSI: Cyber!
18:44 sri next week on csi cyber!
18:44 Grinnz wtf all of a sudden massive attacks from south korea
18:45 kaare_ joined #mojo
18:45 sri this one was funny too, your politicians never disappoint http://www.theverge.com/tldr/2015/3/27/8299577/john-carter-the-internet-is-a-series-of-cyber-poundings
18:46 Grinnz lol
18:47 jberger only the idiots are willing to put up with the process of becoming an elected official
18:47 jberger honestly I think about running for something every now and again, and then I remember that I would hate the process so much that its not worth it
18:48 dod joined #mojo
18:52 jberger clicking through from something I got to this! Fun with APIs! http://www.theverge.com/2015/3/27/8299689/tinder-app-hack-uk-catfish-man-in-the-middle
19:03 hummeleBop joined #mojo
19:11 jabberwok when the Mojo::DOM::HTML docs say the tree() structure "should be only be used very carefully since it is very dynamic" - what does that even mean? That the structure is subject to change? Or that the function is like Batman and Robin...
19:12 preaction it's not a safe clone, probably. it's the internal data structure
19:13 jberger all kinds of weakened internal references
19:16 jabberwok is this a new meaning of "dynamic structure" i am not familiar with
19:19 dotandimet joined #mojo
19:19 jberger also probably means that the structure itself is not considered stable
19:19 sri the strucutre will change between releases, like when Mojo::DOM learns to repair HTML better in some way
19:19 jberger ie. don't write auxiliary functions to munge the tree directly
19:19 jberger what sri said
19:22 sri maybe it shouldn't be public anymore, but that would make testing a bit harder
19:22 sri Mojolicious::Routes::Pattern and Mojo::Template have a similar strucutre
19:23 sri both have changed in the past too, like when Mojo::Template got smarter about optimizing successive text lines into one op
19:24 jberger I have found it handy for debugging
19:25 jberger I suppose you don't need a public accept for that though
19:25 jberger assessor
19:25 jberger fuck
19:25 jberger accessor
19:25 purl accessor is a method
19:25 * jberger punches purl in the nose
19:25 sri at least for Mojo::DOM, the tree can be passed to Mojo::DOM::CSS and Mojo::DOM::HTML
19:26 sri it's kind of their entire public api ;p
19:29 rwp joined #mojo
19:29 jabberwok ok.  i am digging through the code.  i have a find('div.content')->each where i want to extract the content-divisions, but exclude nested content-divisions... within the 'each' sub i'm doing  $_->find('div.content')->each(sub {$_->remove;}); which seems to work but i'm nervous about whether that's making lots of extra copies, or modifying things i don't intend.
19:31 jabberwok in essence i'm rebuilding, in a few lines, my ancient system that turns one massive nested site.html into a database of html 'pages'.  this should then be easy to serve with one or multiple mojo routes.
19:31 sri ->grep(sub { !$_->at('div.content') })
19:31 jberger I always think of the original dom object as the canonical one
19:31 jberger modify anything that came from that and the canonical one is updated too
19:31 sri yea, no cloning is performed, ever
19:32 sri only way to clone a Mojo::DOM is to stringify and reparse it
19:33 jberger I guess that's a more sane way of saying that
19:36 jabberwok ahh.  makes sense.  the only thing to consider, then, is whether 'each' will properly iterate across all the originally-defined elements from 'find' even if you delete them during the operation of that 'each'
19:37 sri each is not commonly used like that
19:38 sri if all you want is to find something, you shouldn't have to modify the DOM
19:40 jabberwok it does seem to work as i expect.  What i am doing is finding each <div class="content"> and extracting the content.  However such a div may contain zero or more nested such divs, whose content is nested pages and need to be removed recursively and saved hierarchically.
19:43 jabberwok in ancient days, i used something like HoTMetaL or nVu to create entire sites from a single HTML file, and my system would automatically add link rel='s and turn #links into subfile.html#link , resize jpegs, add sitemaps, and altogether ensure a functional collection of static html files.  sort of WordPress-in-batch-mode.
20:02 juikuen joined #mojo
20:28 woz joined #mojo
21:11 punter joined #mojo
21:58 sri anyone here seen this too? https://github.com/kraih/mojo-pg/issues/4
22:02 sri too bad Mojo::Util::_global_destruction is private, or i would just throw that at the problem
22:04 davido_ joined #mojo
22:41 davido_ joined #mojo
23:48 Adura If only git was decentralized.
23:53 jberger :o I have a CPANPR dist next month!
23:54 Zoffix huh?
23:54 Zoffix CPANPR Challenge?
23:55 jberger yeah
23:55 jberger I just got an email
23:55 Zoffix \o/
23:55 jberger I
23:55 Zoffix I'm in that challenge too
23:55 jberger I'm curious what it is
23:56 jberger I'm actually not in it
23:56 jberger one of my dists is going to be given you one of the participants
23:56 jberger s/you/to/
23:57 Zoffix Oh
23:58 Zoffix You get assigned a dist and you have 1 month to submit at least one Pull Request to it. http://cpan-prc.org/
23:58 jberger I thought about joining up, but I have plenty on my own dists that don't get enough attention :-/
23:58 Zoffix :)
23:58 Zoffix Join us! Join US! :D
23:58 Zoffix You could squeeze in on PR a month still.
23:58 jberger plus Test::Mojo::Phantom is .... coming .... sometime
23:59 * jberger looks at Test::More longingly

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