Halfloaf's recent activity
-
Comment on A few questions about replacing our clothes washing machine in ~life
-
Comment on A few questions about replacing our clothes washing machine in ~life
Halfloaf Hey! As someone that has worked in the Laundry space before, I’d first recommend you check out the warranty for your unit! The front glass of your washing machine should be tested well beyond the...Hey! As someone that has worked in the Laundry space before, I’d first recommend you check out the warranty for your unit!
The front glass of your washing machine should be tested well beyond the maximum water temperature setting, and for thousands of cycles! If that shattered under normal use, it should absolutely be covered under warranty. Both 5-year and 10-year warranties are common, so I’d check and see what you have, or what the manufacturer offers.
Side story, I had an LG dryer’s front glass shatter on me while doing competitive testing. It was so unexpected, but yeah, glass was absolutely everywhere.
-
Comment on What have you spent "too much time" trying to fix or streamline? in ~talk
Halfloaf I don’t have a ton of experience here, as I did focus on US-style vented dryers. One thing that may be an option, depending on your dryer design, is to clean dust and lint from the heat exchanger!...I don’t have a ton of experience here, as I did focus on US-style vented dryers.
One thing that may be an option, depending on your dryer design, is to clean dust and lint from the heat exchanger! Having a clean surface there would greatly improve performance!
-
Comment on What have you spent "too much time" trying to fix or streamline? in ~talk
Halfloaf One thing that might be worth trying is just removing the exhaust hose completely for a test. You might get a bit of lint behind your unit (which should be cleaned up afterwards), but you’d get to...One thing that might be worth trying is just removing the exhaust hose completely for a test.
You might get a bit of lint behind your unit (which should be cleaned up afterwards), but you’d get to harvest a fair amount of warm, moist air in the winter!
-
Comment on What have you spent "too much time" trying to fix or streamline? in ~talk
Halfloaf That looks like one of these: https://www.digikey.com/en/ptm/c/cantherm/disc-bimetallic-thermostats Unfortunately, I believe they come in both “permanent” and “self-resetting” types. A big word of...That looks like one of these:
https://www.digikey.com/en/ptm/c/cantherm/disc-bimetallic-thermostats
Unfortunately, I believe they come in both “permanent” and “self-resetting” types.
A big word of caution here, though. That sort of device only trips if the region gets too hot. If you bypass that, then temperatures could easily rise to the point where a fire is possible. It’s better to try to troubleshoot why it’s getting too hot in the first place.
My main guess is that you don’t have enough air flow - either your fan isn’t operating, or there’s a blockage upstream or downstream.
A secondary guess is that your replacement heating element is the wrong wattage. I’d say that’s pretty unlikely though, if you bought a replacement kit specific to your dryer.
-
Comment on What have you spent "too much time" trying to fix or streamline? in ~talk
Halfloaf Former dryer design engineer here! One thing that really affects dry rate is airflow - make sure the connection to the wall is as kink-free as possible - I’ve seen little S-curves in the...Former dryer design engineer here!
One thing that really affects dry rate is airflow - make sure the connection to the wall is as kink-free as possible - I’ve seen little S-curves in the attachment tube block airflow by 90%.
If you have poor airflow, that would explain the first drying problem. It would also explain the tripping of the thermal protection under your drum, as the air next to the heater can easily get way too hot.
One thing to note- in US dryers, the thermal protection there will often have multiple parts - one thermal fuse that requires a new part, but usually there will be a resettable switch there too - that looks like a little cylinder with a black button on top.
If you all have any other questions, let me know!
-
Comment on Day 3: Mull It Over in ~comp.advent_of_code
Halfloaf Hello there! This was a really easy one for me - I've used a bunch of regex in the past, but I did have to figure out some little details of how python's re library worked. I also tripped myself...Hello there!
This was a really easy one for me - I've used a bunch of regex in the past, but I did have to figure out some little details of how python's
re
library worked.I also tripped myself up a little bit, and didn't realize that the example for the second part was slightly different than the example for the first part.
Part 2 (and one) solution
import re import click class Day3Solver(): def __init__(self, filename): with open(filename) as txtfile: self.text = txtfile.read() def solve(self): pattern = r"mul\(\d\d?\d?,\d\d?\d?\)|do\(\)|don't\(\)" mul_matches = re.findall(pattern, self.text) out = 0 calculate = True for mul in mul_matches: if 'mul' in mul: if calculate: values = mul[4:-1].split(',') out = out + int(values[0])*int(values[1]) elif 'do()' in mul: calculate = True elif "don't()" in mul: calculate = False # print(f"match: {mul}, calculate = {calculate}") return out @click.command() @click.argument('filename') def main(filename): p = Day3Solver(filename) print(p.solve()) if __name__=="__main__": main()
-
Comment on Day 2: Red-Nosed Reports in ~comp.advent_of_code
Halfloaf I'm back with a Python solution! Day 2 was a little trickier than day 1, but not horribly! I did go a little over the top today to give it a command line interface, but it was a fun bit of...I'm back with a Python solution!
Day 2 was a little trickier than day 1, but not horribly!
I did go a little over the top today to give it a command line interface, but it was a fun bit of practice. I also did it purely with vim, which was a fun departure from my normal vscode.
My partner is an excel whiz, and she's been playing around with them too. She's always been tempted to learn Python, but she's been a little intimidated with it so far.
solution
import numpy as np import click from os import PathLike import copy class Day2Solver(): def __init__(self, filepath: PathLike): with open(filepath) as infile: lines = infile.read().splitlines() self.reports = [] for line in lines: self.reports.append([int(x) for x in line.split()]) def solve(self): num_safe = 0 for r in self.reports: if is_slow_monotonic(r): num_safe += 1 else: for i in range(len(r)): new_report = copy.copy(r) del new_report[i] if is_slow_monotonic(new_report): num_safe += 1 break return num_safe def is_slow_monotonic(line): diffs = [] if len(line) == 0: return False for i in range(len(line)-1): diffs.append(line[i+1]-line[i]) if not (all(d > 0 for d in diffs) or all(d < 0 for d in diffs)): return False if all(np.abs(d) >= 1 for d in diffs) and all(np.abs(d) <= 3 for d in diffs): return True else: return False @click.command() @click.argument('filename') def main(filename): p = Day2Solver(filename) print(p.solve()) if __name__=="__main__": main()
-
Comment on Day 2: Red-Nosed Reports in ~comp.advent_of_code
Halfloaf Julia has been really tempting to me as well - I come from a MATLAB background, and julia does have a really nice Control System library available.Julia has been really tempting to me as well - I come from a MATLAB background, and julia does have a really nice Control System library available.
-
Comment on Day 1: Historian Hysteria in ~comp.advent_of_code
Halfloaf I’m a relative newbie to properly organized code - thank you for this write-up! A question on this solution - what is the StrSplitSolution superclass being used for in this case? For organization...I’m a relative newbie to properly organized code - thank you for this write-up!
A question on this solution - what is the
StrSplitSolution
superclass being used for in this case? For organization in the future?Edit: ah ha! I see your template structure! I’m reading through it now!
-
Comment on Day 1: Historian Hysteria in ~comp.advent_of_code
Halfloaf Oh awesome! Thank you for the tip!! I'm coming into more of a programming role from an Electrical Engineering -> Data Science -> Signal Processing route, which got me to work with a lot of...Oh awesome! Thank you for the tip!!
I'm coming into more of a programming role from an Electrical Engineering -> Data Science -> Signal Processing route, which got me to work with a lot of dataframes. I just love pandas' read_csv function - it does so dang much.
feedback is really welcome - I want to build my confidence in programming in general here - I feel so much impostor syndrome when working with people that have used Python for a decade!
-
Comment on Day 1: Historian Hysteria in ~comp.advent_of_code
Halfloaf I wanted to play around with an object oriented version: My OO solution import pandas as pd import numpy as np class Day1Solver(): left = [] right = [] def __init__(self, datafile: str=None): if...I wanted to play around with an object oriented version:
My OO solution
import pandas as pd import numpy as np class Day1Solver(): left = [] right = [] def __init__(self, datafile: str=None): if not datafile is None: df = pd.read_csv(datafile, sep=" ",names=["left","right"], engine='python') self.left = df['left'].sort_values() self.right = df['right'].sort_values() def get_distance(self): return np.sum([np.abs(l-r) for l,r in zip(self.left, self.right)]) def get_similarity(self): counts = self.right.value_counts() return np.sum([counts.get(l, default=0)*l for l in self.left]) if __name__=="__main__": p = Day1Solver("aoc/day1/input_data.txt") print(p.get_distance()) print(p.get_similarity())
-
Comment on Day 1: Historian Hysteria in ~comp.advent_of_code
Halfloaf (edited )LinkI did my first advent of code! It was pretty easy, but I want to go back and do it in a different way. I finished it first with a jupyter notebook, but I want to get comfortable doing it in raw...I did my first advent of code!
It was pretty easy, but I want to go back and do it in a different way. I finished it first with a jupyter notebook, but I want to get comfortable doing it in raw python, as I want to get a little more comfortable in that sort of development.
My basic python solution for both parts!
import pandas as pd import numpy as np def main() -> None: df = pd.read_csv("aoc/day1/input_data.txt",sep=' ',names=['left','right']) ls = df['left'].sort_values() rs = df['right'].sort_values() total_distance = 0 similarity_score = 0 r_val_counts = rs.value_counts() for l,r in zip(ls,rs): total_distance = total_distance + np.abs(l-r) similarity_score = similarity_score + l*r_val_counts.get(l, default=0) print(f"total distance:\n\t{total_distance}\nsimilarity:\n\t{similarity_score}")
-
Comment on Hi, how are you? Mental health support and discussion thread (November 2024) in ~health.mental
Halfloaf I'm in a weird space this month. I started a new highly technical job, the election happened, we traveled a lot for the completion of a multi-year project, and my birthday got a little glossed...I'm in a weird space this month.
I started a new highly technical job, the election happened, we traveled a lot for the completion of a multi-year project, and my birthday got a little glossed over in the middle of all of that, not to mention travel again in a couple of days.
I'm lucky that the left-wing segments of my family are the ones that we're going to see this week, otherwise I would be a ball of stress over whether or not to subject myself to them. (The December holidays are currently up in the air for this)
But, the culmination of the business of the last few weeks, the stress of the election, and glossing over an important day for me has done a number on my mood. I feel like my ability to focus is at such a low point, and I fear the upcoming political climate so much that I question whether or not trying is worthwhile. I logically know it is worthwhile, but it's hard to feel hopeful.
I hope I can get my focus back again. So far, work has been really understanding, but I don't know if that will stay true.
Blech.
-
Comment on How the heck do you go about moving cross country? in ~life
Halfloaf I think I would trust Internet-level searches for some rough ideas on neighborhood quality, or places to see in person, but I’d also take a chance to drive / transit around a little in between...I think I would trust Internet-level searches for some rough ideas on neighborhood quality, or places to see in person, but I’d also take a chance to drive / transit around a little in between rental showing appointments, if possible. I really don’t know how to optimize it better, unfortunately.
Do you have your destination narrowed down to a region or a city?
-
Comment on How the heck do you go about moving cross country? in ~life
Halfloaf I recently completed a move from the Midwest to the east coast for a job, and we basically split it into a couple of parts. Before even accepting the job offer, my partner and I flew to the city...I recently completed a move from the Midwest to the east coast for a job, and we basically split it into a couple of parts.
Before even accepting the job offer, my partner and I flew to the city for a weekend to take a look at possible housing options. Friday and Saturday morning were spent scoping out neighborhoods, while Saturday afternoon and Sunday morning were then scoping out potential rental options.
It was a lot, but we’re really glad we did that much physical research. We really like the place that we picked (and got lucky enough to get), and I don’t know how we would’ve done it without going there in person to scope everything out.
-
Comment on I was brusque with my family today in ~society
Halfloaf That was a very meaningful read. As someone else with a familial experience similar to OP, thank you for sharing it!That was a very meaningful read. As someone else with a familial experience similar to OP, thank you for sharing it!
-
Comment on Donald Trump nominates Fox News host and Army National Guard Major Pete Hegseth for US defense secretary in ~society
Halfloaf Related absurd update - now Matt Gaetz (Florida congressman currently under investigation for drug use and sex with a minor) is his nominee for Attorney General....Related absurd update - now Matt Gaetz (Florida congressman currently under investigation for drug use and sex with a minor) is his nominee for Attorney General.
https://www.cnbc.com/2024/11/13/trump-taps-rep-matt-gaetz-as-attorney-general.html
-
Comment on Donald Trump nominates Fox News host and Army National Guard Major Pete Hegseth for US defense secretary in ~society
Halfloaf The only concerns that I have with that approach are: The collateral damage along the way The “shooting the moon” chance that Trump actually attempts a full military takeover, which comes to mind...I'm convinced Democrats just need to stand back and let Trump burn it all to the ground. That's the only way we're going to end MAGA and Trumpism.
The only concerns that I have with that approach are:
- The collateral damage along the way
- The “shooting the moon” chance that Trump actually attempts a full military takeover, which comes to mind with the recent draft executive order, which I fear would be on the path to a full dictatorship.
-
Comment on 2024 United States election megathread in ~society
Halfloaf I’m very much worried about my expected consequences.I’m very much worried about my expected consequences.
I like your friend’s thoughts! If the glass is contacting the frame directly, the vibrations from an imbalance can be reallllllllly intense!
Fun fact, the acceleration experienced by clothing during the highest speed of a spin (on many machines) is 800 G’s!