code logs -> 2020 -> Mon, 13 Jul 2020< code.20200712.log - code.20200714.log >
--- Log opened Mon Jul 13 00:00:30 2020
00:03 Kindamoody is now known as Kindamoody[zZz]
00:16 himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
00:36
< Mahal>
I managed to get the local dev team to be helpful this time
00:40 catalyst_ [catalyst@Nightstar-nsboj8.dab.02.net] has joined #code
00:43 catalyst [catalyst@Nightstar-j5e580.dab.02.net] has quit [Ping timeout: 121 seconds]
01:03 catalyst_ is now known as catalyst
02:01 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
02:01 mode/#code [+o himi] by ChanServ
02:25 Degi [Degi@Nightstar-r40nev.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
02:26 Degi [Degi@Nightstar-s7ms7p.dyn.telefonica.de] has joined #code
03:04 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
04:01 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
04:50 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
05:29 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Ping timeout: 121 seconds]
05:33 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
05:33 mode/#code [+o Alek] by ChanServ
06:42 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [Ping timeout: 121 seconds]
06:54 celticminstrel [celticminst@Nightstar-79nr02.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:04 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
07:04 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
07:04 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
07:06 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code
07:06 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
07:13 catalyst [catalyst@Nightstar-nsboj8.dab.02.net] has quit [Ping timeout: 121 seconds]
08:06 mac is now known as macdjord|slep
08:14
<~Vorntastic>
Projection is too much work. I can just use the clamped upscale texture like I do for the smoothing anyway, and then just clamp whatever hit I find to the actual box
08:17 catalyst_ [catalyst@Nightstar-lvdbve.dab.02.net] has joined #code
08:26 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [[NS] Quit: ]
08:27 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
08:27 mode/#code [+o Alek] by ChanServ
08:32
<~Vorntastic>
Love it when corner cases disappear
08:46 catalyst_ is now known as catalyst
09:07 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
09:07 mode/#code [+o himi] by ChanServ
09:23
<@Alek>
... so apparently display:block is old news and doesn't always work, but now there's object-fit:<keyword>, which sounds ideal, and putting only width in the img tag and specifying a max-width, max-height, and width and height auto in the style takes care of the rest.... hopefully. will try this afternoon.
09:24
<@Alek>
ideally scale-down keyword...
09:36 Kindamoody[zZz] is now known as Kindamoody
12:05 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [[NS] Quit: Leaving]
12:22 Kindamoody is now known as Kindamoody|afk
13:32 celticminstrel [celticminst@Nightstar-79nr02.dsl.bell.ca] has joined #code
13:33 mode/#code [+o celticminstrel] by ChanServ
13:41 catalyst_ [catalyst@Nightstar-qspdla.dab.02.net] has joined #code
13:44 catalyst [catalyst@Nightstar-lvdbve.dab.02.net] has quit [Ping timeout: 121 seconds]
15:00
<@sshine>
Alek, things change so fast. it's only been a few years since I touched Python, and now it appears type annotations work without enabling some language extension library.
15:01
<@sshine>
Alek, modern CSS very much like this also.
15:01
<@sshine>
any MacOS users here?
15:02
<@sshine>
I did 'brew install bash' to get bash >3 and now I have /usr/local/Cellar/bash/5.0.18/bin/bash -- but I really don't like to put in something with a version number in my PATH! what if I upgrade?
15:02
<@sshine>
is there some smart way in MacOS / using Homebrew to point the default bash to this without manually maintaining what the most recent version is? something like asking Homebrew to maintain a symlink.
15:03 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:04 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:13 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
15:13 mode/#code [+o mac] by ChanServ
15:14 Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
15:16 macdjord|slep [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
16:01 catalyst_ is now known as catalyst
16:01
<~Vornicus>
okay in order for this to work I need to ... 1. figure out the triangle I'm in; 2. pull in the points from that triangle; 3. normalize the input coordinates to line up and make the linalg easier; 4. do that math
16:05
<~Vornicus>
The square is broken into four triangles with the inequalities x + y > 1 and x > y (assuming x, y < 1, which is to say they're really from p - floor(p) , and floor(p) alone gets you the square)
16:06
<~Vornicus>
Which means I can actually, using these two facts to reflect inputs -- and fetch coordinates -- across the line in question
16:11
<&McMartin>
sshine: Normally brew puts symlinks into /opt/bin or something. However, this may be one of the cases where it doesn't so as to not interfere with broader system operation.
16:16
<~Vornicus>
This also suggests in particular that I should set it up so the *center* point is the one I put at the origin
16:54 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
16:54 mode/#code [+o Reiv] by ChanServ
16:57 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
17:24 Kindamoody|afk is now known as Kindamoody
18:39
< ErikMesoy>
o_O https://twitter.com/sharifshameem/status/1282676454690451457 Here comes the future.
18:42
< ErikMesoy>
Likelihood it's a hoax?
18:42
< ErikMesoy>
I want to believe - GPT3 has been turning out a lot of surprisingly good stuff elsewhere.
19:43
<&jerith>
sshine: brew-installed things are usually symlinked into /usr/local/bin.
19:43
<&jerith>
You can probably 'brew link bash' or something if that hasn't happened for some reason.
19:49 Kindamoody is now known as Kindamoody|afk
20:09
<@sshine>
McMartin, yep, they put it in /opt/bin with a 'g' for coreutils. in bash'es case I really need for 'bash' to be in my PATH for this installer to work.
20:10
<@sshine>
ah, /usr/local/opt/bash/bin/bash :)
20:10
<@sshine>
*adds*
20:10
<@sshine>
I'll look in /usr/local/opt another time, thanks!
20:11
<@sshine>
jerith, ah, and thanks for your 'brew link' thing!!
20:11 catalyst_ [catalyst@Nightstar-mr8gia.dab.02.net] has joined #code
20:13 catalyst [catalyst@Nightstar-qspdla.dab.02.net] has quit [Connection closed]
20:17
<@Alek>
GRR
20:17
<&jerith>
GrrrrrrOWF!
20:17
<@Alek>
how do I limit a container to browser display width, so that it will not expand horizontally?
20:18
<@Alek>
fixed width isn't responsive, and 100% just lets it spread infinitely
20:19
<~Vornicus>
container max width
20:20
<&jerith>
sshine: Oh, right. Installed packages get symlinked into /usr/local/opt/<name> to give you a stable version-independent path. Executables also usually get symlinked into /usr/local/bin, but only if they don't conflict with a system-installed thing.
20:21
<@Alek>
container max width, yeah, how do I make sure it doesn't?
20:21
<@Alek>
100% just lets it spread, while a fixed number isn't responsive.
20:21
<@Alek>
even 95% lets it spread.
20:21
<@Alek>
or something.
20:22
<~Vornicus>
you ...define both width and max-width?
20:22
<@Alek>
max width 100%, width auto?
20:22
<~Vornicus>
Noooo
20:22
<@Alek>
and the logo part already works like I wanted it to, only I can't find where that's defined to see what it's doing.
20:23
<@Alek>
hm. maybe... *tests a long shot*
20:24
<~Vornicus>
width 100% max-width (whatever you want it to give up at)
20:26
<@Alek>
ahh
20:27
<@Alek>
aaaand no, that doesn't do anything
20:29
<@abudhabi>
ErikMesoy: I want /b/ to leave.
20:30
<@Alek>
neither my long shot nor what you said
20:31
<@Alek>
I tried max-width 1280 or 1280px, the contained image still stretches out to over 4k
20:32
<~Vornicus>
https://jsfiddle.net/sm5rzkjc/
20:32
<~Vornicus>
I mean. It works for me.
20:34
<@Alek>
it trims them for you, I want the contained images to shrink to fit instead of spreading beyond the borders of the screen
20:34
<@Alek>
horizontally
20:34
<@Alek>
if they spread vertically that's okay
20:34
<~Vornicus>
perhaps you should put this up somewhere where I can see this, perhaps so I can point and laugh at it. But like - what you've said so far suggests that you're working in a tool that doesn't know what you're up to and won't point out CSS errors immediately
20:37
<~Vornicus>
your best bet for style fuxxing is to do it in an inspector. Chrome is good; Firefox Developer Edition is top notch
20:39
<@Alek>
dreamweaver
20:39
<@Alek>
is what I'm using
20:40
<@Alek>
cannibalized a free template that didn't already support an image gallery, which is what I'm trying to add
20:40
<~Vornicus>
last time I poked at dreamweaver - which I grant was over a decade ago, and several years before I became a professional web developer - it was bad at actually doing the thing you want it to do
20:54
<@Alek>
ugh. gonna take a break.
21:14 * Vornicus solves alek's problem in like 3 minutes once he gets to properly look at it.
21:30 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
21:30 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
21:38
<@Alek>
>_>
21:39
<@Alek>
I need to drop stuff and take the html5 and css online classes on SoloLearn. then javascript.
21:39
<@Alek>
it's been way too long since my xhtml classes and way too much of that is obsolete now.
21:43 Kindamoody|afk is now known as Kindamoody
21:56 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [[NS] Quit: Leaving]
22:35 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
22:36 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
22:36 mode/#code [+o Reiv] by ChanServ
23:06 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
23:06 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
23:21
<~Vornicus>
or I could *still* be working too hard and should jsut pick the points and not fuck with reflections and just grab the three points and do it the old fashioned way with just plain barycentrics like I know what graphics are
23:34
<@Reiv>
None of that made any sense
23:34
<@Reiv>
And yet I know exactly what mood you were conveying~
23:36 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Operation timed out]
23:38
<~Vornicus>
doing work on a function that calculates, given a location, the height of a heightfield at that point. to do this it figures out what triangle it's in, then it needs to interpolate between the corners of that triangle.
23:38
<~Vornicus>
my previous attempt had me, once i found the triangle, manipulating the triangle in a particular way to make it so it works in a particular direction
23:39
<~Vornicus>
but that's ... dumb, because you need a bunch of special casing to get it to line up right.
23:39
<~Vornicus>
using a thing called barycentric coordinates you just ...load the corners' coordinates into a single matrix, invert, multiply by the input, done
23:44
<~Vornicus>
because fuck special cases in the eye
--- Log closed Tue Jul 14 00:00:31 2020
code logs -> 2020 -> Mon, 13 Jul 2020< code.20200712.log - code.20200714.log >

[ Latest log file ]