« first day (2057 days earlier)      last day (1123 days later) » 

8:01 PM
It's so hard to do active learning from work.
 
yeah, was a quick mock-up (untested code) of what i was thinking would happen, then go backwards to a formula
thanks for working out a full function!
 
> # [Codecov](https://codecov.io/gh/rubberduck-vba/Rubberduck/pull/5347?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`next@c38ddae`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `0%`.


```diff
@@ Coverage Diff @@
## next #5347 +/- ##
=======================================
Coverage ? 61.67%
==================
 
I read up on something new and fill up my brain in about half the day, then I struggle to not fall asleep the other half.
 
@MathieuGuindon ...i was trying with replace and that wasn't cutting it for me. guess i'll give your substitute version a shot! thanks
 
Since you need to sleep to really integrate the information into your brain.
 
8:03 PM
@Duga I think that change actually worked.
 
@Hosch250 70-20-10, though... related to 1 task, 10 per cent is read, 20 per cent is mentorship, and 70 per cent is doing
 
[rubberduck-vba/Rubberduck] build for commit bd58d297 on unknown branch: 61.67% (target 0%)
[rubberduck-vba/Rubberduck] build for commit bd58d297 on unknown branch: 0% of diff hit (target 60%)
 
@Cyril Don't have much to do.
Basically, my current assignment is to study for an exam.
After my exam, they want me to help them shift from the G suite to Exchange/Office/OneDrive.
 
@Hosch250 oh, how adorable! They're growing up and graduating to more than just G-rated stuff!
 
ahh
@this as long as using Office doesn't progress to using R
 
8:07 PM
can you do R in Excel already?
I know for a fact you can in SQL Server
 
yes
 
well, then. It's already R.
sorry, kids, gonna be 18 and older to use Office!
 
We haven't unlocked that achievement yet.
 
lol
 
8:27 PM
@MathieuGuindon Wrapped that in another Left() and it worked. thanks again!
 
please tell me you kept the poop emoji :D
 
@MathieuGuindon does it even render so in Excel's formula?
 
:O
that is so disturbing on many levels
"can we count poop in Excel? YES!"
"can we sum up poop in Excel? YES!"
 
no, you can't do math, it's text
but you can absolutely count them!
 
8:35 PM
@MathieuGuindon i used | instead... didn't think i could quite use that in a work environment without getting some particular appeal
 
you can! =SUM(COUNTIF(<range>, <poop emoji>))
 
@Cyril the justification being "I used a character that could safely be assumed to never show up in a formula" :)
 
very true... doesn't change that people will literally be pasting shit
lol
 
that said :smiley: would have worked just as well
 
might backfire if you're copy'n'pasting text from emails
 
8:38 PM
| isn't crazy though
 
or you could use that cthultu text
 
@this oh wait Outlook did fix smileys rendering as random misplaced "J" chars right?
 
specific to the problem i was having trying to define my own combo-formula, replace() does need a range, while substiturd() can use a portion of a string
 
I think it's still Outlook, not sure.
 
if there's an option to turn off emoticons, i do that...
 
8:39 PM
@Cyril that annoys and confuses me. I do Replace in VBA but SUBSTITUTE in Excel formula... WHY.
 
yeah, i don't get it either. i forgot about substitute as a whole
 
it's as if the Excel and VBA teams had a spat that day
That's the only explanation why we have this incongruency between Excel's formulas and VBA's built-in functions.
 
VBA's built-in functions were VB6's stdlib functions before they were VBA functions
 
Did REPLACE & SUBSTITUTE predate the Excel4 macros?
I realized I don't know whether Excel4 macros used the same stdlib as VB* did.
 
probably not
 
8:46 PM
@Hosch250 BMI > 25.0 is considered obese. > 30.0 is morbidly obese.
Yes, it's a BS measurement. Yes, they calculate it for those in the Army and yes, most every one of them is > 30.0 and very, very few are actually obese.
 
if it's BS then why bother measuring? Why not come up with actually meaningful measurement?
 
They will take measurements of chest & waist if your BMI is "high". I'm not sure exactly what they're looking for, but I think it's a chest to waist ratio.
because the only meaningful measurement is body fat percentage and the only way to reliably calculate that is the dunk tank, but most people freak out when exhaling then getting dunked, so they can't get a good measurement
 
Do you really have to dunk?
 
My son's BMI is off the chart, but he's probably 4-6% body fat which is borderline too lean (unless you're a competitive body builder).
 
You should be able to calculate using displacement.
 
8:49 PM
Yup, fat floats. Muscle & bone don't.
 
You'd probably think most people would freak out being shot at too...
 
They can do it with electrical current and it's fairly close to a dunk, but not quite.
@Hosch250 you'd think. They train infantry to avoid being the target, not to avoid drowning...
Maybe they dunk'em in the Navy. I dunno...
 
Am I missing something? Displacement should be all you need to measure your buoyancy; no dunking needed.
 
No idea. I've heard the Navy has to know how to swim.
 
woudl be kind of silly to have a sailor who can't swim.
 
8:51 PM
If you'd like, I can give you the BMI calculation... I have to calculate it on people's biometrics all. stinking. day. :/
(no, I don't do it by hand - I do have a formula...)
 
@FreeMan human bones don't float; birds... that shit floats, they hollow (most birds... not all)
 
hence
2 mins ago, by FreeMan
Yup, fat floats. Muscle & bone don't.
 
Granted, swimming might not help so much if you're in submarine or fast moving / large ships.
In latter, you're basically going to just have to tread until the ship returns to retrieve you. In former, well, you're more likely to die than to survive, especially if you're submerged.
 
@this full body must be submerged for an accurate measure of ratio between mass and water displacement
 
@this it's simple math, though. How much do you weigh dry minus how much do you weigh under water = amount of fat
 
8:53 PM
@FreeMan yes but the point is that you can get the same result by measuring the water displaced.
I'm thinking about archimedes' principle where it shows there's a correlation between the submerged weight / unsubmerged weigh and the water displacement.
 
It's probably a lot easier to hang a scale over a tub, dunk a person and get a weight as opposed to carefully marking the water level, dunk a person, wait for the water to settle, mark the new level, pull the person out, hope he hasn't expired, do the math.
 
dim yourMass as double
yourMass = yourFatAssOnAScale
dim waterMass as double
waterMass = amountOfWaterYourFatAssDisplacesWhenFullySubmerged
%fat = [yourMass - waterMass] / yourMass
 
The mechanics of measuring the displaced water prior to the subject drowning might not be quite so simple.
 
with that being said, you're saying similar things, but technically measuring different criteria
 
Also, you have to exhale as much air as possible since air tends to make you buoyant, too.
 
8:57 PM
having done it twice a year for the three years i was in college, it's pretty simple. three measurements in freezing cold water for each time i had to go
 
@FreeMan "STOP MOVING!! YOU'RE MAKING WAVES, WE CAN'T SEE WHERE THE... aah, now that's better. There, done! Ok you can get out of the water now. Joe? JOE?!"
 
Most people would probably have to take 2 or 3 tries because the normal human reaction to submerging is to gulp as much air as possible.
@MathieuGuindon Thank you - that's so much more eloquent than the way I tried saying it.
 
fill vessel 100% full with water, now slowly add a person so their head submerged, count to 5 (enough time to have the displayed water mass calculated) then get out... now do the same thing 2 more times
the amount of air in the lungs is negligible in that scheme provided you are not less than 1% body fat
but it's recommended to exhale ebfore you submerge
i woudl put my hands on the walls to hold myself under whiel i counted then emerged
 
they measure what sloshes over the side? How do they account for what's still stuck to the outside of the tub and the grate you walked in on and the floor that hasn't yet made it down the drain to be measured and...
 
I was thiking that you just put the person in a tank that's already full to the brim, in which case, the water will overflow into another tank, and you can then measure that amount of water displaced.
 
9:00 PM
Full disclosure: I've never been weighed in a dunk tank, so I'm making some of this up as I go
 
@FreeMan yes, they measure the water that has been displaced, aka what has been removed from the vessel. the % error is the gradiant on the tank versus what was measured
 
ok
 
plus surface tension
 
I've found it's the tension below the surface that always gets ya'
 
so i had 4.8% bodyfat with a 5% error at my lowest body fat per cent
there's mroe science that goes into the rationale for cold water, the width of the opening, the material for the vessel, etc., so those are supposedly accounted for with the test
 
9:01 PM
This has been a not-productive day...
 
it was enoguh for the NCAA to accept that i was hydrated and not losing too much fat from the start to end of a wrestling season
 
Cold water: makes you go "AARRRRGGHHH!H!!!!" on the way in, helping to expel the last of the air from your lungs.
 
that + a piss test (piss test was weekly)
 
hmm. I see it now: Fighting childhood obesity: Dunking li'l Bobby
 
@Cyril Why? Do you get bragging rights if you are beating people up while dehydrated?
@this Next newspaper headline: Bobby is a Witch!
 
9:05 PM
@Hosch250 tbh, probably... the amount of people who say shit like "i won that after losing 20 lbs overnight" would definitely be the same people who say "i didn't drink for 3 days before that match"
 
 
20lb overnight? Dang, that's some serious fasting.
 
@Hosch250 most i've ever seen someone do was go from 134 to 112 from noon until 1000 the next morning
 
@MathieuGuindon Just got back... ^ that is funny as can be
 
What did they do? Have an amputation?
 
9:08 PM
it's honestly one of the stories i actively tell when people talk about weight loss
 
Also, it's really not good to lose it that fast, I've heard.
Really screws with your metabolism.
 
@Cyril so he'd have dropped a bracket or two?
 
brackets at the time were 103, 112, 119, 125, 130, 135. he would have dropped 5 brackets
 
oof
 
that's a lot of muscle and water
 
9:10 PM
he was our 112, i was 119 (i had just dropped from 135 the week before to be able to wrestle at sectionals/districts; have to have 1 match in regular season at a weightclass to be allowed to "register" for it)
 
What did he do, contract norovirus?
Or have an amputation?
 
it was the saturday after thanksgiving; he had decided to say fuck it and engorged himself so gained like 6 pounds from his monday weight
 
educate me - why do they insist on keeping weights close with thin margin? I've seen people out-wrestle others that are much heavier or lighter for fun.
 
so starting at noon on Friday, he was working his ass off, then gave up about 2300. didn't even show up for the bus the Saturday morning to get to the tournament
coach goes to his house, picks him up at 0500 and they drive together to the venue, where the kid had to sit in the backseat working out on the way there... 2.5 hour ride with the heat cranked in layers of clothes. both he and the coach walked in drenched in sweat
at ~2300 he was down from the 134 at noon to ~118 (i think he puked some of it up)
 
#NotHealthy
 
9:14 PM
why did coach even approve of that?
 
Dang. He's seriously lucky he didn't end up in the emergency room...
 
It's not just you. i As Range is criminal. — Mathieu Guindon 1 min ago
It's not just you. i As Range is horrible. — BigBen 1 min ago
 
@this my understanding is that weight classes are designed to not allow for unfair play. now, that concept predates modern wrestling by about 2k years. since then, people bulking the f up and keeping lean has changed a LOT... floating weight classes is now common, though not part of the design of weight classes
you will typically see those large fluctuations in high school, as opposed to college or middle school wrestling
 
@MathieuGuindon your edit was on point :-0
 
9:16 PM
@this i believe the question asked was "do you want to do this" and he said yes... his neighbor (the one who told our coach, our 145 lb'er) may have pressured him a little
he went on to place third in the tourney, so there's that
 
Still....
1 min ago, by Hosch250
Dang. He's seriously lucky he didn't end up in the emergency room...
 
from the years of experience and going through it, high school is the worst form of wrestling... so many degrees of maturity, technique, and skill... if you suck at 145 lbs but can throw people around, i fyou drop 10 lbs and can still throw that weight, you drop a class to get a few easier wins
 
@Cyril it does seem kind of a bummer since you will never get to know if the guy from one bracket below can out-wrestle that guy because he's much better with his technique.
@Cyril you're basically saying that even if I'm only 10 lbs heavier, your superior technique won't be enough to beat me. That also sucks.
 
@this this i f'ing know... lived it. i was set to go to states my junior year of high school and got eliminated by the previous year's state champ at 125 (was for 119 wt class) because he lost weight to "wrestle" a match, forfeit the match so he could make weight before the cutoff, then spent the next two weeks moderating that to a maintainable weight
@this yes
in a good amount of cases, the truly technical wrestler will almost always win. being able to get out of a bunch of moves is great, but when you get caught by gorilla-boy, you are really, really f'd with that strength
had a couple friends who were legit technical geniuses on the mat; i believe they only lost when they gave up (which was often because they simply didn't want to get hurt against some asshole)
 
I propose a new type of sport. Where you simply hug each other until one person's ribs break.
No movements, just a plain squeeze.
 
9:22 PM
but more times than i can count, an upper-classman (junior/senior) cuts to a lower weight class to beat up on underclassman, who haven't had the time to mature physically/mentally
@Hosch250 schrutenkassen, i believe that's called. scottish sport
 
Wow...
@Cyril Hopefully one of them knew Judo or something and took him down early.
 
you lock-up over-under and try to be the first one to knock the other over. the fatter guys just straight up squeeze
@Hosch250 even if they did, moves that are legal in one sport are possibly illegal in the other
a judo-lock/hold on the arm is 100% illegal in american wrestling
 
@Cyril True. But some of the throws should be similar enough?
 
if the person affected does not feel they can move on after the maneuver, you are disqualified
a few; hip toss in judo is very close, but also illegal because of landing
 
Hmmm. Would knowing Judo even give you an advantage in theory then?
 
9:25 PM
if you take you opponent off the ground in american wrestling, you must have a knee on the ground before they make contact. not the case for judo, as you land atop them
yes
better weight manipulation; i did san shou on the side of wrestling
as in throwing weight... handling other weight... the taoist principle
i can't do that move, but i'm more appropriately reacting when someone puts their hand on my neck, etc.
and time check... 15:26; i need to send out some credits to clients before i run. will catch you folks later
 
TTYL. Almost time for me to leave.
 
i tyically leave by 1500, but took a lunch today so i will leave abotu 1530
 
Traffic was bad, so I need to stay until 3:45 instead of 3:30...
 
@this does "The request failed to run because the batch is aborted, this can be caused by abort signal sent from client, or another request is running in the same session, which makes the session busy." ring any bell?
 
new to me - in what context?
that does not sound like SSMS
 
9:36 PM
@Vogel612 Thanks for the suggested edit to the codecov.yml. I think that did the trick.
I could not test it yesterday because I was in bed already.
 
@this remember I had to throttle HTTP requests to Shopify REST API? these intermittent exceptions make me feel like I now need to throttle the SQL Server commands....
basically I have too many things going on at the same time and SQL Server is freaking out
only happens when I bulk-load stuff
 
I'm not sure I follow. Are you saying that SQL Server is throwing exceptions in your C# code when you execute some stored procedure?
 
yes
randomly, only when it's being hammered
 
are you using any transactions?
 
9:39 PM
and are you actually cancelling or aborting any of requests?
 
(there's a linked server involved)
nope
SQL Server is aborting them on me
 
yeah but the message implies it got asked to abort
 
To me, the wording rather suggests that you pump too many commands through the same connection.
 
which doesn't jive, really.
 
@M.Doerner that's how I'm reading it too
 
9:40 PM
it's this part that bothers me:
"another request is running in the same session, which makes the session busy"
you shouldn't be issuing several requests to the same session.
 
Can you send the requests using more separate connections?
 
SQL Server cannot do multiple active statements. You can sort of with MARS but that's not really the same thing.
 
thing is, I have using (var connection = new SqlConnection(_connectionString)) blocks everywhere - no one is sharing connections
 
I agree w/ Max; you probably need separate connections.
 
got 'em
 
9:42 PM
@M.Doerner no worries :)
 
More likely, you're getting hit by the pooled connection getting reused.
 
^ that
 
Pooling is automagically done for you, so you have to fiddle iwth the pooling setting somehow.
 
lovely :)
 
as a dumb test, you could try disabling it totally and see if you get exceptions still.
 
9:43 PM
SO says it's a performance issue with some stored procedure, not sure if relevant
 
I guess, you could also hold onto each connection until the request has completed.
 
not that you want to do that -- that would be bad but it would help prove whether it's the problem or not.
 
Then, the connections should not be available in the pool again.
 
if I use OpenAsync without passing a CancellationToken, the default is CancellationToken.None, right?
 
Should be.
 
9:44 PM
@M.Doerner I don't know whether the pool will just make new connections indefinitely. It might be possible that it's going to throw; would need to read the docs.
 
What else could be the default?
 
yeah anything else makes no sense
 
@this usually the builtin connection pool will not make infinite connections.
it also shouldn't recycle connections that have not been "closed"
 
Full disclaimer: I am just guessing based on a general understanding on how things should work without any practical experience.
 
Hence why I was not sure if simply holding connections would suffice - it might just end up moving exceptions somewhere else.
 
9:46 PM
the part I'm missing is "session" -- is that just a new word for "connection" or it's something else?
 
It might actually reuse connections that have not been closed to improve performance.
 
well, when you connect to SQL SErver, you get a unique session id.
 
Back when I used the .NET connection pools, I recall that obtaining a new connection would get you a facade, where invoking "Close" would result in the connection being recycled into the connection pool
 
Opening a connection is a comparatively slow action.
 
commonly known as SPID
 
9:47 PM
oooh
 
In theory, a connection = a session but if you had closed the connection, then later re-opened, you have no guarantee it's still the same SPID
it might be now a new SPID (session).
 
law of leaky abstractions strikes again
 
I mean, opening a connection can take seconds.
 
But for now, you can pretend it's 1:1 between connections and sessions.
Obviously, that breaks down if you expect the session state to persist on your connection.
(e.g. you're starting a transaction or recording the SPID, then letting the connection out of scope, then later open it again and expect it to still have the trasnaction or same SPID; it wont.)
 
does server setting "Remote query timeout" override an SqlCommand.CommandtimeOut? I'd think it's the other way around, but I have that timeout set to 0 and the server setting says 600 (seconds... which ...is a lot... nevermind)
 
9:53 PM
not sure they're the same
need to check the docs but I think Remote Query Timeout applies to linked server queries, not your C#'s queries.
 
C# is invoking SPs that connect to linked servers
so.. it's not wildly inappropriate
 
Yep:
> This value applies to an outgoing connection initiated by the Database Engine as a remote query. This value has no effect on queries received by the Database Engine. To disable the time-out, set the value to 0. A query will wait until it completes.
so you need to set that separately. Your C#'s setting the SqlCommand.CommandTimeOut won't effect that.
 
10:11 PM
oh well. we have web hooks to configure, and then I'll have a scheduled script just plugging whatever holes the WinService leaves in the data
hey wait a minute... I'm opening the connection in HandleResponse, and then passing that connection to _repository.InsertUpdateAsync ....that makes no sense.
ah, it's because the base class is invoking the SP, and provides the connection to derived types for further processing... I'll just make it new up connections and see how it goes.
 
10:28 PM
I think once my inspections PR is merged, I will make two small adjustments to make RD usable even when encountering the problems in issue #5349.
 
LGTM, wasn't sure anyone else wanted to go through it
 
Well, I should not code the next days anyway.
I have some Japanese to learn.
 
The solution I have in mind for the issue is just to log and swallow COM exceptions at the right place and to a log and swallow all around the one point I identified at which we do not do that at the highest level.
After the changes, what will remain of the issue should be that the caption of the refresh button never changes.
 
10:34 PM
ok I can totally see how I'm sending way too many commands against the same reused connections now
only 34 errors left to fix
 
I missed a great pool/water discussion...
 
10:53 PM
Sorry, iven
 
Growing up at the beach made me unafraid of water.
Always found a fear of water to be an odd thing.
Replace words with an XKCD version.
People really can become Pineapples.
 
TBH, talking about Elf-Lord McConnell and Schumer makes it much more better.
 
11:14 PM
@IvenBach same. Though, I grew up on lake erie, not an ocean beach
 
Water wrestling really exposes those that have a fear of drowning. Got my dad kicked out of a party that way.
Learned not everyone can keep calm under water and some panic.
 
sooo, we need posters that says Keep calm and keep drowning?
 
Just stop trying to inhale the water!
 
Rubberduck's Hot Dog Stand theme is now officially here:
 
Dad: Why'd you nearly drown him son?
Iven: You told me not to put up with anyone's crap. He started it. I finished it.
Dad: You didn't have to hold him down so long.
Iven: Yes I did. If not he wouldn't have learned his lesson. Told him to quit 3 times already.
Dad: Don't tell mom I told you this but I'm proud of you right now. Let's get some ice cream.
@Cyril ^
@this Working on theme coloring for RD?
 
11:20 PM
New problem, though: I have to figure how to avoid designer errors. :(
Yeah, wanted a low-hanging fruit
 
I'm all for a dark theme.
 
@IvenBach that sounds appropriate
“She was asking for it”
”what? She’s a little girl, how would she be asking for it?”
”she was wearing purple”
Transcript from “The Grapist”
But yeah, @this dark theme is usually nice. Might even be worthwhile to ship with a dark vba version theme in addition to the rd windows
 
Pretty sure this will only be affecting RD an not the VBIDE itself.
Head to class time.</iven>
 
@Cyril VBIDE responds to Windows theme ok-ish
the problem is more that RD originally has colors and whatnots hard-coded so they aren't sensitive to Windows theme
so one way to help make RD play better w/ Windows theme is to have its coloring derive from various system colors
but for making VBIDE actually dark, a la VS, as opposed to messing with Windows theme, would require custom panes for sure because VBIDE is lame like that.
 

« first day (2057 days earlier)      last day (1123 days later) »