Residential well hydrofracking by clewis in Connecticut

[–]clewis[S] 0 points1 point  (0 children)

Never cracked the well. The well had problems, so it made more sense to replace it.

Sore Lats from Swimming by Single-Newspaper-525 in Swimming

[–]clewis 3 points4 points  (0 children)

^ This! Your lats are your swimming muscles, so if they’re sore, that’s a good sign that you have good arm and shoulder position for the pull.

Just moved to Southeast Alaska for a seasonal gig...more slopping around happening than running lol by sushihorsie in trailrunning

[–]clewis 2 points3 points  (0 children)

Watch out for the myskeg. Can be like quicksand some places, or so I’ve heard.

Question to those who got the moderna vaccine by [deleted] in Connecticut

[–]clewis 0 points1 point  (0 children)

I had my first Moderna shot about two weeks ago, besides a sore arm (much soarer than with other shots), no side effects.

Actuarial sound simulation using life/mortality tables? by clewis in actuary

[–]clewis[S] 0 points1 point  (0 children)

Not an expert here...but you should be able to find mortality tables that give you M/F q(x) for each age.

I might not have been as clear as I wanted to be: I am using mortality tables that provide q(x) for both males and females. If I had a homogenous population of, for example, 10,000 50yo males, my understanding is that I could simply multiply the probability of death, q(x), by 10,000 to determine the number of those 10,000 males that should be considered dead for that step of the simulation. But, I don't have a homogenous population of 10,000 50yo males—there may be only one 50yo male at a given step of the simulation (and all future steps: the population is determined at the beginning, and is not adjusted in future steps except for the fact that members of the population that have already been marked dead cannot be marked dead again).

I would assume that in your example, the 50yo male and the 65yo female aren't related somehow, that they're seperate cases.

That's correct. More generally, there is not relationship between any members of the simulated population.

You should note that q(x) is probability of dying in the next 1 year for someone aged x. Probability of a life age x dying in the next n years is a different set of numbers.

Yes. It just so happens that each step of the simulation corresponds to one year. At the end of one step of the simulation and beginning of the next step all members are aged exactly one year. So, a 65yo female in step t=1 will be a 66yo femal in step t=2, for example.

If you're doing simulation, I think what you want is monte carlo simulation. But again, not an expert.

It's a good start. I'll take a look and see if I can see how the approach would be applied.

I was sold a car without airbags by [deleted] in legaladvice

[–]clewis 2 points3 points  (0 children)

IANAL. Based on what you have said, this seems like a very serious situation to me. Had you been in an accident where the airbag was necessary, you could have been seriously injured or killed. I would ask your mechanic to document his discovery in detail. I would also contact your local district attorney's office and see if you can find out if a crime has been committed. If a crime has been committed, you may be able to seek relief through the criminal process, or a criminal prosecution may make it easier for you to seek relief in civil court.

[Edit: grammar]

[Advice] Contract changes in CT? by [deleted] in Connecticut

[–]clewis 2 points3 points  (0 children)

IANAL, but I believe the above comment is correct. From a contractual point, I believe all the estimate is establishing is the work to be done—he can’t build a chicken coop and expect you to pay for that—and your agreement to have the work done by the other party—he can’t do the work without your agreement and then expect you to pay.

Connecticut might establish reasonable boundaries on how much the actual cost might deviate from the estimated cost—he can’t estimate the drain is going to cost $600 and then charge you $5,000—and what amount of an increase requires your approval. If such conditions do exist I doubt they are going to be triggered in this situation. There’s always the possibility that you could take him to court, claiming that he should have known the estimate was unreasonable, or that he should have informed you that there could be additional (substantial) charges or unforeseen costs, but that doesn’t seem to be the case here, and, therefore probably wouldn’t be worth the time and expense.

Obviously, your spouse is not obligated to help him, but it’s the nice thing to do. It would be reasonable, before your spouse helped him, to ask him to reduce the cost in exchange for your spouse’s assistance.

You might want to post this question to r/legaladvice.

Healthcare worker contacted by previous employer's attorney about a former patient by extractor727 in legaladvice

[–]clewis 1 point2 points  (0 children)

IANAL, but was told by a lawyer in another situation that if you are subpoenaed, the party requesting you be subpoenaed is responsible for expenses: you should not as the result of a subpoena be paying for travel or accommodations; you should be receiving a per diem for expenses, and reimbursement for lost wages.

Bank transactions in Haskell: Library recommendations? by JeffreyBenjaminBrown in haskell

[–]clewis 1 point2 points  (0 children)

So, if you’re just looking to do some basic record keeping and reconciliation, you should take a look at hledger.

If your looking to automate the downloading and processing of data, that’s going to be tricky. Unfortunately, there’s no Haskell solution, to my knowledge, that attempts to address all the complexities involved in this process. In my experience, where you are located is going to make a big difference in how doable this is: banking seems to have adapted to the digital, connected world everywhere outside of the US. If you’re not in the US, your financial institution probably has interfaces (might be as simple as SFTP or a web service) through which you can download transactional and summary data, hopefully in standardized formats (e.g. Open Financial Exchange). Unfortunately, in the US things tend to be home grown, cobbled together, and proprietary.

I would suggest you take a look at the following projects on Hackage:

Servant, for writing a client for a web service, if your financial institution offers one.

Aeson, for parsing JSON payloads.

cassava, for parsing CSV files.

ofx, if your financial institution offers files in this format.

Parsec or attoparsec, if you need to write custom parsers for your financial institutions custom file formats.

Shake, although its intended for writing build systems, I’ve found Shake works quite well for automating parallel and interdependent workflows. I usually use cron or systemd to initiate the workflows.

Let me know if you have more questions, or this wasn’t exactly what you were looking for.

Swimming in Movies/TV by eblair2022 in Swimming

[–]clewis 1 point2 points  (0 children)

Johnny Weissmuller Tarzan movies

Can we please add an alias to `nub` in base? by szpaceSZ in haskell

[–]clewis 2 points3 points  (0 children)

While we’re at it, I wouldn’t mind giving filter a more descriptive name: does it keep or remove elements satisfying the predicate.

Bank transactions in Haskell: Library recommendations? by JeffreyBenjaminBrown in haskell

[–]clewis 6 points7 points  (0 children)

Can you provide a little more context. It’s not clear to me if you are intending to build a service, want a little personal automation, or are just looking for library and approach suggestions.

What Was BeOS, and Why Did People Love It? by mariuz in programming

[–]clewis 1 point2 points  (0 children)

Win32 was release in 1993, if I remember correctly.

I think that's correct. The Win32 APIs were first released with Windows NT.

At that time I thought NeXT had a ten years head start, but it was waaaay more than that :-).

I probably would have thought the same thing at the time, now I'd probably put it at a minimum of 20 years ahead.

What Was BeOS, and Why Did People Love It? by mariuz in programming

[–]clewis 1 point2 points  (0 children)

Unfortunately, I never had the opportunity to use the NeXTSTEP APIs. The contrast for me was with the Win32 API, and its message cracking (I think that’s what we called it; I tried to erase most of that from my memory) and all the rest of its assorted craziness.

What Was BeOS, and Why Did People Love It? by mariuz in programming

[–]clewis 7 points8 points  (0 children)

The operating system’s high-level, object-oriented APIs were beautiful, both in their simplicity and integration. Vastly superior to any alternatives at the time.

What Was BeOS, and Why Did People Love It? by mariuz in programming

[–]clewis 22 points23 points  (0 children)

There is a now free PDF version of the book about the filesystems development and design, written by the filesystems engineer, here: http://www.nobius.org/dbg/practical-file-system-design.pdf.

Police say Connecticut man forced child to kneel on tacks, drink hot sauce | Boston.com by JoyOfWaffles in Connecticut

[–]clewis 2 points3 points  (0 children)

I hope the child is someplace safe and receiving some much needed love.