code logs -> 2017 -> Wed, 13 Dec 2017< code.20171212.log - code.20171214.log >
--- Log opened Wed Dec 13 00:00:24 2017
00:00 Jessikat` [Jessikat@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed]
00:09
<@Alek>
>_>
00:59 Kindamoody is now known as Kindamoody[zZz]
01:30 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
01:30 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [The TLS connection was non-properly terminated.]
01:30 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
01:41
<@himi>
[R]: if you get a good answer about calendaring I'd love to see it
01:42
<@himi>
The webcams sound like a good start
01:46 Derakon [Derakon@Nightstar-fr5qel.ca.comcast.net] has joined #code
01:46 mode/#code [+ao Derakon Derakon] by ChanServ
03:23
<&[R]>
himi: Currently looking at sogo
03:23
<&[R]>
https://sogo.nu/
03:39
<@himi>
That looks quite nice . . .
03:43 * Mahal swears grumpily
03:43
< Mahal>
I am trying to make my own version of this in Powershell
03:43
< Mahal>
and I CAN'T FIND ONE THAT WORKS and I can't get my own working and WAH.
03:43
< Mahal>
http://www.windowstricks.in/online-windows-guid-converter
04:24 Derakon is now known as Derakon[AFK]
04:49 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has quit [Operation timed out]
06:47 Vornlicious [Vorn@Nightstar-jq9cq8.sub-174-210-7.myvzw.com] has joined #code
06:50 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Ping timeout: 121 seconds]
07:36 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Connection closed]
07:38 Vornlicious [Vorn@Nightstar-jq9cq8.sub-174-210-7.myvzw.com] has quit [Ping timeout: 121 seconds]
07:41 Vorntastic [Vorn@Nightstar-lvr3ln.sub-174-210-1.myvzw.com] has joined #code
07:43
<&McMartin>
Blargh
07:43
<&McMartin>
Part 2 of tonight's AoC requires some Actual Math.
07:58
<@abudhabi>
[R]: Rainlendar2.
08:16 Jessikat [Jessikat@Nightstar-kvq2qd.dab.02.net] has joined #code
08:18
< Vorntastic>
I haven't even seen part 2 yet but if it's what I think it is, it'll be annoying either way
08:19
<&McMartin>
Once I sat down to Do The Math I got a proper solution than I am happy with.
08:19
<&McMartin>
(It is, indeed, what you almost certainly think it is: "how long do you delay your start so that you will never be caught")
08:20
< Vorntastic>
(indeed)
08:21
<&McMartin>
(A brute force attempt on that with my input would require worst-case a half-billion attempts.)
08:21
<&McMartin>
(I got my Correct program working before it got to the actual answer.)
08:23
< Vorntastic>
Yeah screw that noise
08:23
<&McMartin>
Do let me know when you solve it; I thought I knew what I was using to get my answer, but I was wrong
08:24
< Vorntastic>
That'll be in the morning, since I'm at work.
08:25
<&McMartin>
That's totally fine
08:30
<&McMartin>
I should to bed soon anyhow
09:07 * Vorntastic fiddles with conditional formatting. Wonder if it's possible to get it to do stuff only when the data is sorted a certain way
09:24 Alek [Alek@Nightstar-7or629.il.comcast.net] has quit [Ping timeout: 121 seconds]
09:27 Alek [Alek@Nightstar-7or629.il.comcast.net] has joined #code
09:27 mode/#code [+o Alek] by ChanServ
10:36
< simon_>
gah! in C#/Java I can at least have a bunch of overloaded database get functions with slightly varying parameters. in Perl without overloading I'm facing the combinatorics of all possible inputs, and throwing in some odd combination just seems wrong (since in C# it'd result in a type error when some combination doesn't exist)
10:36
< simon_>
making all combinations possible is a bit heroic and seems wrong when they're not called anywhere anyway.
10:39
< simon_>
I've got this local function in my MVC controller that I'd like to factor into the database layer:
10:39
< simon_>
sub _get_companyprofiles_with_ads ($self, $companyid, $firstdate, $lastdate) {
10:39
< simon_>
my @ads = JIX::CompanyIndex::Ad->select_company( $companyids, $firstdate, $lastdate );
10:40
< simon_>
my @filtered_companyids = uniq( map { $_->companyid } @ads );
10:40
< simon_>
my @companyprofiles = JIX::CompanyIndex::Profile->fetch({
10:40
< simon_>
companyid => \@filtered_companyids,
10:40
< simon_>
filter => 'all',
10:40
< simon_>
});
10:40
< simon_>
return \@companyprofiles;
10:40
< simon_>
}
10:42
< simon_>
there is actually a function with the right name that has some code overlap, too, called fetch_paid_profiles. ("profiles with ads" and "paid profiles" aren't exactly the same, but it turns out that "paid profiles" has actually become wrong over time, but never mind)
10:43
< simon_>
the only drawback is that fetch_paid_profiles doesn't accept a $firstdate and $lastdate, but rather a $datetime, and @ads in it becomes the ones where $datetime is in the showing interval defined for those ads.
10:47
< Vorntastic>
Something something dictionary parameters
10:47
< simon_>
so if I'm gonna use fetch_paid_profiles, I need to extend it so it supports either $firstdate/$lastdate *or* $datetime. but then there's another parameter called $filter that can be 'active' or 'all' (meaning active+inactive). so I've suddenly got a bunch of combinations, some of which are not in use. (all, companyids, datetime), (active, companyids, datetime), (all, [], datetime), (active, [], datetime) were
10:47
< simon_>
the ones it already supported. and the one I want to add is (all, companyids, firstdate/lastdate). but I end up with this vast space of combinations that aren't in use, just because I can't overload fetch_paid_profiles to work with particular combinations.
10:48
< simon_>
Vorntastic, but I'd have this subroutine that throws an exception on unsupported combinations rather than give a warning about wrong types, wouldn't I?
10:48
< Vorntastic>
Point
10:49
< simon_>
I don't like it.
10:49
< Vorntastic>
Mh. How do you use datetime if its just one
10:50
< simon_>
then it's "ads where this datetime is in the interval of the start/end of the ad"
10:50
< simon_>
I'm not sure when you'd want that. search boxes always have a start and an end, and only specifying one of them is equivalent to that.
10:50
< Vorntastic>
Ok and how do you use the first/last when you have both?
10:51
< simon_>
I actually do the first/last anytime I have either. the datetime thing is used elsewhere in the codebase.
10:52
< simon_>
changing the rest of the codebase to only have first/last and have datetime simply mean {first => datetime, last => undef} is too much scope creep in my first month of work. :P
10:53
< Vorntastic>
Okay. Make it so your thing will duplicate the lone date into two if you only get one? So the interface remains the same but a single time works the same as an interval
10:53
< simon_>
Vorntastic, when I have both of first/last, it means "if the intervals of the ads overlap with the first/last interval".
10:53
< Vorntastic>
Right, so exactly the same mechanics then
10:53
< simon_>
Vorntastic, yep, just with matching intervals with intervals, rather than matching a point with an interval. but it's just a generalization.
10:54
< Vorntastic>
Right. This generalization doesn't change anything with either mechanics so it will work with both without any downstream changes
10:55
< simon_>
Vorntastic, yeah, that'd reduce handling datetime separately, so one dimension fewer. thanks.
10:57 * TheWatcher grumbles at the MediaWiki devs
10:57
<@TheWatcher>
... would be nice if they explicitly listed breaking sodding changes...
11:07
< Vorntastic>
Probably pull out maybe_datetime_to_interval as its own function
11:08
< Vorntastic>
Don't like that name too much though
11:59 Jessikat` [Jessikat@Nightstar-hl1ud7.dab.02.net] has joined #code
12:01
<@Tamber>
"maybe" concerns me.
12:02 Jessikat [Jessikat@Nightstar-kvq2qd.dab.02.net] has quit [Ping timeout: 121 seconds]
12:10
< Vorntastic>
That's why I don't like it, "maybe" tends to have a somewhat different meaning - thing or null
12:46 Kindamoody[zZz] is now known as Kindamoody
13:01 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection reset by peer]
13:01 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
13:01 mode/#code [+o Kindamoody] by ChanServ
13:21 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection reset by peer]
13:21 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
13:21 mode/#code [+o Kindamoody] by ChanServ
14:23 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection reset by peer]
14:24 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
14:24 mode/#code [+o Kindamoody] by ChanServ
14:48 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Connection reset by peer]
14:49 Degi [Degi@Nightstar-nheacj.dyn.telefonica.de] has joined #code
15:02 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
15:02 mode/#code [+o Kindamoody|autojoin] by ChanServ
15:34
< simon_>
% if (param('mode')) {
15:34
< simon_>
% if (param('mode') eq 'mail') {
15:34
< simon_>
% layout 'mail_page';
15:34
< simon_>
% } else {
15:34
< simon_>
% layout 'basic_page' if param('mode');
15:34
< simon_>
% }
15:37
< simon_>
this guy takes one day off a week to work on his Standard ML SaaS.
15:37 Jessikat` is now known as Jessikat
15:37 * TheWatcher twitch
15:38
<@Tamber>
So... *squint* What if it's not param('mode'), but it is by the time it gets to that else?!
15:38 * Tamber ducks.
15:39
< simon_>
what he means is:
15:40
< simon_>
% layout 'basic_page' if param('mode') eq 'print';
15:40
< simon_>
% layout 'mail_page' if param('mode') eq 'mail';
15:40
< simon_>
Tamber, yeah, better check twice!
15:57 Vorntastic [Vorn@Nightstar-lvr3ln.sub-174-210-1.myvzw.com] has quit [Connection closed]
15:57 Vorntastic [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
15:58 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has joined #code
15:58 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:17 Kindamoody|autojoin is now known as Kindamoody
16:29 Jessikat [Jessikat@Nightstar-hl1ud7.dab.02.net] has quit [Ping timeout: 121 seconds]
16:50 Vornicus [Vorn@Nightstar-1l3nul.res.rr.com] has quit [Operation timed out]
17:17 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
20:43 * abudhabi invents new and cruel ways to do element spacing in HTML wrong.
20:44
<@abudhabi>
Today: opacity 0 horizontal rule.
20:53
<@TheWatcher>
.... whyyyy?
20:57
<@abudhabi>
It was the first solution that did what I wanted.
20:58
<@abudhabi>
Also tried: inline margin styling, liberal peppering with <p> and <br>.
21:00
<@ErikMesoy>
What about <pre> ?
21:00
<@abudhabi>
I'll add it to my toolbox.
21:03 * mac feeds abudhabi to a regex parser
21:07
<@abudhabi>
A regex parser isn't powerful enough to validate abudhabi!
21:10
<@mac>
abudhabi: But is it powerful enough to crush your tiny body between its mighty gears?
21:18
<@gnolam>
I am slightly disappointed that there's no XML parser called "You're It".
21:18 * mac defenestrates gnolam
21:35 Alek [Alek@Nightstar-7or629.il.comcast.net] has quit [Ping timeout: 121 seconds]
21:38 Alek [Alek@Nightstar-7or629.il.comcast.net] has joined #code
21:38 mode/#code [+o Alek] by ChanServ
22:49 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
22:49 mode/#code [+o Reiv] by ChanServ
23:05 Jessikat [Jessikat@Nightstar-qssmmv.dab.02.net] has joined #code
23:44 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
--- Log closed Thu Dec 14 00:00:24 2017
code logs -> 2017 -> Wed, 13 Dec 2017< code.20171212.log - code.20171214.log >

[ Latest log file ]