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

IRC log for #mojo, 2017-04-07

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

All times shown according to UTC.

Time Nick Message
00:36 dhg joined #mojo
01:21 sawtooth joined #mojo
01:22 disputin joined #mojo
01:23 sawtooth joined #mojo
01:43 dboehmer joined #mojo
02:29 noganex joined #mojo
02:50 froggy joined #mojo
02:51 froggy I'm currently using $self->req->uploads to upload files; I use $file->size for the file size. Is there a way to get the image dimensions (width and height in pixels?) Thanks. (Sorry, I cannot find the reference for this in the mojo files)
02:53 froggy (Note, I want width and height before calling ->move_to, not after). Thanks.
02:55 preaction i suspect you could put the image data into Imager and read the information that way
02:56 froggy I'm not sure what Imager is (but I will check it out). I have been using Image::Size, but I have to call ->move_to first to use it, and I want to avoid that.
02:58 froggy Yes, I see imager. It looks like overkill. I just need to read the size, so I may have to just use Image::Size .... not a problem. I thought there might be a way to do it via $self->req->uploads. Thank you!
02:58 preaction you're going to need to read the image data and give it to some other library that knows what an image is. so you'll have to find one that lets you read image data from memory
02:58 preaction mojolicious doesn't have any image libraries inside of it, no
03:00 froggy Yes, that's the thing. Hum... I suppose this actually works.
03:00 froggy http://mibpaste.com/UfBOca
03:00 froggy In the link, that is.
03:02 froggy http://mibpaste.com/jEr50P
03:03 disputin joined #mojo
03:03 froggy So from the previous link, how would I get $buf for the previous link?
03:03 froggy (So from the previous link (#2), how would I get $bug for the previous link before that (#1)?
03:03 froggy $buf that is ...
03:20 preaction my $bytes = $file->slurp; then give it a reference: \$bytes
03:21 froggy Thank you very much.
03:21 froggy That's great.
03:38 inokenty-w joined #mojo
04:04 dboehmer_ joined #mojo
04:55 disputin joined #mojo
05:20 dod joined #mojo
05:27 dod joined #mojo
05:57 janl joined #mojo
06:05 dod joined #mojo
06:25 irqq joined #mojo
06:37 Vandal joined #mojo
06:40 prg joined #mojo
06:59 AndrewIsh joined #mojo
07:15 dod joined #mojo
07:17 simbabque joined #mojo
07:21 trone joined #mojo
07:31 AndrewIsh joined #mojo
07:36 dod joined #mojo
08:31 rshadow joined #mojo
08:47 dod joined #mojo
08:48 VVelox joined #mojo
09:01 nic Is there a way for an app to prefer a different set of templates based on an env var?
09:01 nic I was thinking that something like MOJO_MODE=abc would get it to look for main.abc.html.ep before main.html.ep
09:02 nic but the more I look for this, the more I think it was all a dream
09:02 nic (if that's the case I really really need to eat more cheese before bedtimes)
09:03 dod joined #mojo
09:05 nic the only instance I know of (in the waking world) is {exception,not_found}.<mode>.html.ep
09:09 EFknockr joined #mojo
09:09 EFknockr plz go listen to EFNET NEWS by JASON BANDY! click here: https://youtu.be/UJkv2mAdFQQ - and after you're done check out vap0r's new track "staying up late" here: https://youtu.be/1c1XbL_XK9g - Join #EFNETNEWS on EFNET to complain about SPAM
09:09 EFknockr dod VVelox rshadow AndrewIsh trone simbabque prg Vandal irqq janl dboehmer_ inokenty-w noganex sawtooth webart stryx` salva go|dfish ksmadsen bobkare kamyl ribasushi Lee Peppaq nicomen jlaffaye ashimema dantti_laptop cfedde bc547 purl dotan_convos foursixnine elik tardisx hahainternet Sebbe
09:09 EFknockr jacobydave jabberwok mtj kaare vicash cng mattp mtths dabudabu _dave_ castaway sivoais abracadaniel HtbaaPi oalders nic Gedge a6502 haarg Jonis matt_ litwol iamb tianon cstamas ranguard mbudde geheimnis` pink_mist chandwki mishanti1 perlpilot genio plicease jnbek stephan48 augensalat eseyman
09:10 hahainternet left #mojo
09:13 prg wtf
09:13 prg so i guess spam is now a thing on irc, too?
09:19 odc i guess mojolicious users should read this: https://martinfowler.com/articles/session-secret.html
10:05 nic I think I can use http://mojolicious.org/perldoc/Mojolicious/Guides/Rendering#Template-variants just by querying an env var in startup and setting a defaults value
10:06 gregf_ joined #mojo
10:11 pink_mist prg: "now"? spam has been a thing on irc for as long as I've been on irc, so at least since 1996
10:12 prg i don't remember actual spam on irc in the nineties
10:12 prg sure, some stupid users flooding and stuff
10:13 pink_mist there were always people soliciting others to join their channel or their server
10:13 prg guess i hung out in the right channels :P
10:14 nic ...or your memory isn't what it used to be :D
10:14 prg :(
10:15 nic You know what they say... "If you can remember the Nineties, you were spending too much time on irc."
10:16 prg i've never heard that one before
10:16 prg but that reminds me, i wanted to watch T2...
10:16 nic I might be confusing it with the Sixties
10:17 nic damn, was sure you were going to say T4
10:18 prg hah, i guess that was ambiguous
10:18 prg was talking about trainspotting
10:18 prg but IMO terminator 2 was the last good one, couldn't make it through t3
10:19 prg but enough with the 90s nostalgia, back to work!
10:20 nic NOOOO, the prog on C4
10:21 nic My brother's mate got himself a part in T2, but haven't seen it yet
10:21 prg c4? you lost me
10:21 * nic head over to #nineties
10:22 prg c4 as in channel 4?
10:23 nic phew, yes
10:23 prg i'm not british :p
10:23 nic don't worry about it.  things will get better
10:24 prg ok...
11:21 tchaves joined #mojo
11:35 nic variant templates are indeed the awesome, https://gist.github.com/niczero/d1f8ba667458cfde7350165f40a42c57
11:53 osfabibisi joined #mojo
12:32 bwf joined #mojo
12:39 EFknockr joined #mojo
12:39 EFknockr HEY PUSSY COME JOIN #EFNETNEWS on irc.efnet.org UNLESS UR A PUSSY HEHEHEHEHEHHE SUCK MY DICK
12:39 EFknockr bwf osfabibisi tchaves gregf_ dod VVelox rshadow trone simbabque prg Vandal irqq janl dboehmer_ inokenty-w noganex sawtooth webart stryx` salva go|dfish ksmadsen bobkare kamyl ribasushi Lee Peppaq nicomen jlaffaye ashimema dantti_laptop cfedde bc547 purl dotan_convos foursixnine elik tardisx Sebbe
12:40 EFknockr jacobydave jabberwok mtj kaare vicash cng mattp mtths dabudabu _dave_ castaway sivoais abracadaniel HtbaaPi oalders nic Gedge a6502 haarg Jonis matt_ litwol iamb tianon cstamas ranguard mbudde geheimnis` pink_mist chandwki mishanti1 perlpilot genio plicease jnbek stephan48 augensalat eseyman
12:40 EFknockr left #mojo
12:59 coolo is there no network admin to fix this?
13:04 haarg there's only so much you can do, even as a network admin
13:05 gizmomathboy joined #mojo
13:24 orev joined #mojo
13:24 janl left #mojo
13:40 stryx` joined #mojo
13:40 dabudabu yay, i got highlighted
13:40 * dabudabu feels important
13:41 coolo all pussies were
13:56 orev craigslist looking for a mojo developer / sysadmin
14:37 jberger orev: is there still the requirement that it has to be in california?
14:37 orev yes, it was in the job listing
14:37 orev SF
14:37 jberger sadly, hard pass
14:38 jberger where is the listing
14:38 purl rumour has it the listing is the hash array i used
14:38 jberger ?
14:38 jberger purl: forget the listing
14:38 purl jberger: I forgot listing
14:38 orev https://sfbay.craigslist.org/sfc/sad/6055239319.html
14:40 sri yea, really too bad they are still limited to california
14:42 spicyjack unless you live in the bay area, it's hard to move there
14:42 spicyjack it's London expensive
14:43 spicyjack plus the people who have lived there longer than the current tech bubble are pissed that the tech people are coming in an gentrifying the city
14:45 jberger even if it weren't so expensive to live there, my family and my wife's family are all in chicago
14:45 jberger we joke about getting a small getaway place in hawaii, but we never really talk about moving away from here
14:45 berov joined #mojo
14:46 spicyjack don't get me wrong, San Francisco (aka San Frantastic) is a great city
14:46 spicyjack you just have to have the will to compete with everyone else there, and not be afraid to step on people to get things so that you can live
14:46 spicyjack housing, jobs, etc.
14:46 jberger oh I'm sure it is
14:47 berov Hi guys, I decided it is good to feature Mojolicious on MDN https://developer.mozilla.org/en-US/docs/Learn/Server-side/First_steps/Web_frameworks
14:47 sri craigslist could easily assemble a perl dream team if they were a little more flexible
14:47 jberger berov++
14:48 jberger as happy as I am at my job, it would be hard to pass up working at CL (and yes, my boss is on this channel :-P )
14:49 jberger so I guess its a good thing that it isn't an option
14:49 spicyjack it's an option, but one that you don't want to excercise
14:49 rshadow joined #mojo
14:53 zivester joined #mojo
14:56 rshadow joined #mojo
14:58 orev berov: maybe put (Perl) in the header like you have with the others like Django (Python)
14:58 berov OK
15:01 berov orev:  updated and published
15:28 perlpilot At TPC last year, I asked the craigslist people about that relocation requirement and they said that they were working on it to have remote employees.   I wonder how long it takes to get that through whatever bureaucracy they have to deal with
15:29 perlpilot (.... or maybe the guy I talked to was just telling my what I wanted to hear)
15:29 perlpilot *me
15:36 sri perlpilot: hehe, i remember jzawodny mentioning here that they were working on it like 4 years ago
15:39 jberger I've heard similar things for a while too
16:00 disputin joined #mojo
16:01 PryMar56 joined #mojo
16:01 Grinnz berov++
16:16 berov left #mojo
16:22 disputin joined #mojo
16:31 dod joined #mojo
16:47 disputin joined #mojo
16:52 PryMar56 joined #mojo
17:11 stryx` joined #mojo
17:26 disputin joined #mojo
17:32 stryx` joined #mojo
17:41 stryx` joined #mojo
17:51 gryphon joined #mojo
17:55 disputin joined #mojo
18:36 jabberwok this is probably more a SQL::Abstract question but using Mojo::Pg's insert method is there any recommended way to add an ON CONFLICT UPDATE clause?
18:48 Grinnz jabberwok: at that point you are probably better off constructing the query yourself
18:48 Grinnz SQL::Abstract is mostly only useful for specific simple queries
18:58 rshadow joined #mojo
19:05 disputin joined #mojo
19:13 ranguard dear lazy web, is there a nice CRUD (supporting relationships) plugin type thing for Mojoliscious :) ?
19:13 preaction DBIx::Class?
19:13 purl it has been said that DBIx::Class is a resultset-driven ORM with a Class::DBI compatiblity or http://lists.scsys.co.uk/mailman/listinfo/dbix-class or see 'dbic repo' or http://dbix-class.shadowcatsystems.co.uk/ or discussed on #dbix-class or a bit like handing an automatic rifle to a squirrel. or ilmari's mro orm or known to be slow at startup
19:13 preaction ... hate that bot so much...
19:13 ranguard with a web UI :) ?
19:13 * jberger hugs purl
19:13 purl jberger: bathe first
19:14 ranguard heh
19:14 jberger ranguard: I guess I don't know what you are asking for?
19:14 preaction RapidApp?
19:14 purl rumour has it RapidApp is an open-source web application framework based on Catalyst, ExtJS, Template::Toolkit and DBIx::Class for quickly creating interactive, data-rich webapps [their maketing blurb]
19:14 preaction huh, thought that was Mojolicious
19:15 jberger nope
19:15 jberger ranguard: is that the idea though?
19:15 ranguard jberger: I have a DB, I want a web UI to admin it
19:15 Grinnz so phpmyadmin
19:15 ranguard jberger: yep
19:15 jberger I don't believe there's anything like that for mojo, no
19:15 ranguard Grinnz: I guess
19:16 jberger but I could be wrong
19:16 Grinnz it would be pretty easy to build on Mojo::Pg or similar
19:16 Grinnz the hard part would be authentication
19:16 sri how is that hard?
19:16 jberger I was just going to ask
19:17 Grinnz well, more the "important" part
19:17 sri not at all
19:17 Grinnz as it would give raw DB access
19:17 ranguard Woo RapidApp looks interesting
19:17 sri just return a route that can be attached to an under for auth
19:18 sri like the minion admin skeleton i made https://github.com/kraih/minion/compare/admin
19:18 sri plugin returns a route you attach anywhere you like
19:19 sri guess the fact that most people are not aware of how easy this stuff is makes it even more of a reason to finally show it with a real minion admin plugin ;p
19:21 dod joined #mojo
20:25 tchaves joined #mojo
21:00 jberger \o/ https://pbs.twimg.com/media/C3PS4FxWEAEN5PG.jpg
21:03 stryx` joined #mojo
21:04 nic (the penguin guide to calculus)
21:15 disputin joined #mojo
22:22 PryMar56 joined #mojo
23:04 ChmEarl joined #mojo
23:19 asarch joined #mojo
23:22 PryMar56 joined #mojo
23:41 miller joined #mojo

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