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

IRC log for #mojo, 2015-10-31

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

All times shown according to UTC.

Time Nick Message
00:07 lluad joined #mojo
00:09 janus joined #mojo
01:25 aborazmeh joined #mojo
01:27 nicomen Grinnz: close!
01:27 nicomen $ perl -MLWP::UserAgent -MMojo::Message::Response -wle 'print Mojo::Message::Response->new->parse(LWP::UserAgent->new->get("http://www.google.com")->as_string)->headers->header("Date");'
01:27 nicomen Sat, 31 Oct 2015 01:27:37 GMT
01:28 nicomen thanks ;)
01:43 nnutter joined #mojo
03:05 zivester joined #mojo
03:12 asarch joined #mojo
04:51 irqq joined #mojo
05:14 kaare_ joined #mojo
06:51 robinsmidsrod joined #mojo
07:29 irqq_ joined #mojo
08:15 Vandal joined #mojo
08:28 robinsmidsrod joined #mojo
08:50 robinsmidsrod joined #mojo
10:06 KindOne joined #mojo
10:33 sh4 joined #mojo
11:28 batman Hi. Any feedback on this? http://thorsen.pm/perl/2015/10/31/how-i-write-web-apps.html
11:28 batman Typos or anything ;)
11:32 geheimnis` joined #mojo
11:33 stryx` joined #mojo
12:04 Nemix batman: as a novice the article gave me a good overview what look like valuable components....would have been difficult to navigate that otherwise....thanks for writing it
12:28 bd batman: use Swagger in another blog post. => 404
12:29 Craftsmanship joined #mojo
13:18 carneirao joined #mojo
13:42 zivester joined #mojo
13:44 trone joined #mojo
14:06 jes joined #mojo
14:07 jes I'm working on a mojolicious application with unit tests
14:07 jes using Test::Mojo
14:07 jes I've made the code die in a specific place
14:07 jes and the unit test fails, as expected
14:07 jes what is the best way to get hold of the die message?
14:07 jes it doesn't appear in the development log or on stderr
14:11 jes aha, HARNESS_IS_VERBOSE=1 does the trick
14:20 nicomen prove -lv ?
14:20 nicomen ah you are running make test?
14:21 nicomen you might want to even check that something dies or not with Test::Exception or check what the error output is with Test::Output
14:30 Grinnz batman, cool article :)
14:32 kanishka joined #mojo
14:42 punter joined #mojo
14:43 odc joined #mojo
15:00 jberger batman++
15:07 lluad joined #mojo
15:30 PryMar56 joined #mojo
15:30 ajr_ joined #mojo
15:40 kes joined #mojo
15:40 kes Hi, all
15:45 Adura joined #mojo
15:56 crab hum, what's the best way to redirect from ANY .rss url on my site to a .atom one instead?
15:59 jes joined #mojo
15:59 jberger crab: I might do that in nginx config, but you can do it in a hook or under early on too
16:00 crab hum, well. i guess i'll do it in nginx config then.
16:13 kes The default generated application has no 'src="/mojo/noraptor.png">' for 404 pages
16:18 batman Nemix: thanks :)
16:18 batman bd: aiai. Will fix that at once.
16:20 batman Grinnz, jberger: thanks.
16:51 crab hmm. if i'm in a lite app, but not inside an action, how can i do the equivalent of $c->render_to_string(inline => $blah)?
16:52 crab i don't think i've ever needed to do this before. i guess app->renderer->render and feed it a Mojolicious::Controller->new
16:56 crab guess if i'm creating a controller, i might as well use its render method.
16:57 crab if i can
17:01 crab that seems to work, if i do app->build_controller(Mojolicious::Controller->new), but then $c->render_to_string doesn't seem to pick up helpers. hum.
17:09 kes where the 'log' directory must be created to view logs if I create my app like: mount '/' => MyApp->new->start, under Plack?
17:09 crab crud, build_controller does something entirely different from what i thought it did based on grepping for Mojolicious::Controller->new.
17:11 crab but app->build_controller->render_to_string is supposed to work.
17:12 crab and it does. i was just defining the helper wrong. duh.
17:51 robinsmidsrod joined #mojo
17:59 crab great. this works nicely.
18:06 punter joined #mojo
18:26 kes I generate default my_app and run it under PSGI environment. I have delete MyApp/Controller folder, but it still working.
18:27 kes where the MyApp get controller module??
18:28 kes bulder{ MyApp->new->start }
18:30 robinsmidsrod joined #mojo
18:43 jberger joined #mojo
18:56 shadowpaste "kes" at 217.168.150.38 pasted "why 'welcome' page is displayed with empty 'startup'?" (16 lines) at http://paste.scsys.co.uk/500687
19:35 Craftsmanship joined #mojo
19:35 lluad joined #mojo
20:27 lluad joined #mojo
20:33 jberger oh man, I switched from my ADSL that had been prone to dropping on me
20:33 jberger to cable
20:34 jberger and while it wasn't dropping, the modem/router they provided (at only $10/mo rental) had so much context switching latency that it was barely usable, for all the bandwidth I now had
20:34 jberger so I bought my own modem/router and finally everything is responsive
20:34 * jberger wipes brow, opens more tabs
20:44 FatalNIX interesting. Somebody was telling me that they were using mojo to create apps for their Android phones.. Wat
20:45 FatalNIX Jberger: is a well known fact that most of those combo modern routers aren't designed to handle the traffic
20:45 FatalNIX :)
20:47 jberger I did buy a combo router, but a nice one
20:48 ajr_ joined #mojo
20:48 jberger but it was an open box, so it knocked off a big chunk too
20:49 FatalNIX ...
20:49 FatalNIX Apparently my fiance is a wine box for Halloween
20:51 FatalNIX Jberger: my concept of a home network is a rack in a closet or the basement with a core switch.. Maybe a later 3 switch and a switch on every floor.. Modern sperate and operating in bridge more or something..
20:51 FatalNIX With eBay you can get Cisco respondent for cheap
20:52 FatalNIX Equipment* I like me some nice Cisco catalyst switches
20:53 FatalNIX Jberger it may be that I am a sys admin so maybe it's just habit?
20:57 jberger hehe, perhaps
20:58 jberger I'm a scientist turned backend dev, sysadmin is still mostly black arts to me
20:59 FatalNIX I'm going for my second degree, in electrical engineering
20:59 jberger I hopefully have all the degrees I'm going to need
21:01 jberger https://archive.org/details/ultrafast_electron_microscopes_berger_phd_thesis.pdf
21:07 jberger neat, this thing can interface against noip.com for me
21:37 Craftsmanship Does anyone have string preference for building APIs? it seems like M:P:Swagger2 could be the most legit option other than doing it by hand like a savage...
21:51 meshl joined #mojo
22:02 mattp_ batman: are you thorsten?
22:02 mattp_ whois confirms yes. nevermind :)
22:05 meshl joined #mojo
22:09 jberger oh no, batman, your secret is out!
22:16 jberger someone asked for me to port Galileo to bootstrap3 but I see bootstrap4 is already in alpha
22:16 jberger anyone closer to the situation know if I should wait for that to come out (christmas?)
22:27 jberger wow, I barely knew mojo when I wrote Galileo it seems :o
22:27 jberger https://github.com/jberger/Galileo/blob/master/lib/Galileo/files/templates/user_menu.html.ep#L7-L10
22:27 jberger eeep
22:30 batman mattp_: "thorsen"
22:31 * batman has been to a prodigy concert with marcus
22:31 batman it was awesome
22:31 batman jberger: i don't know when it will be stable, but there's no harm in doing bs3
22:35 mattp_ batman: my bad
22:36 batman mattp_: why do you ask?
22:37 mattp_ batman: saw you link to your blog post a page or two up asking for feedback
22:37 batman ok.
22:38 batman Grinnz: can't you do "insert into ... set foo=?" with SQLite?
22:38 batman seems like it only handles (foo) values (?)
22:41 jberger prodigy?! <3
22:42 batman jberger: Oh! Yeah! :D
22:42 jberger jealous
22:44 batman they played a lot of good songs, from "experience" to "the day is my enemy"
22:44 batman but... at some point i wonder if it was playback :/
22:45 batman hope i'm wrong
22:58 jberger dear lazy web: what's the word that means "to do things in the commonly accepted way"
22:58 mattp_ 'best practice'?
22:58 jberger like "improve the code to (look like I know what I'm doing)"
22:59 mattp_ cargocult?
22:59 jberger no ....
23:01 jberger say I had some code that was old/bad and I've improved it since I know better now, I've made the code more (as if written by an expert in the field)
23:02 jberger the word is on the tip of my tongue and its killing me
23:05 mmp joined #mojo
23:05 jberger hahahaha http://www.twitch.tv/twitchinstallsarchlinux
23:25 Nemix jberger: I am not sure if the word you are looking for is the same as what I can't think of..but it is now torturing me.  It is something that I would expect to see in a manual for a technical device translated from japanese.
23:25 jberger well now at least I'm not suffering alone
23:39 jberger twitter wins!
23:39 jberger idiomatic
23:40 jberger https://twitter.com/schmonz/status/660600325443854337
23:41 mmp jberger: ahhh
23:43 jberger Nemix: ^^
23:45 jberger so I think at this point I can probably get rid of the flat page routes requirement for Galileo then
23:48 mmp_ joined #mojo
23:58 mmp_ joined #mojo
23:59 meshl joined #mojo

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