guissmo's recent activity
-
Comment on Never forgive them - On digital platforms vs users in ~tech
-
Comment on Day 17: Chronospatial Computer in ~comp.advent_of_code
guissmo This took some time but it was fun. I also regrettably asked a friend for their test case to see if my program would work and it didn't. So I decided to modify mine to account for both (and now...This took some time but it was fun.
I also regrettably asked a friend for their test case to see if my program would work and it didn't. So I decided to modify mine to account for both (and now hopefully ALL) test cases that they could throw out.
Details of this journey are here.
-
Comment on Never forgive them - On digital platforms vs users in ~tech
guissmo For someone who’s complaining about how technology is working against the user, having a popup to subscribe to their newsletter in the middle of the read feels disingenuous. Quickly exited after that.For someone who’s complaining about how technology is working against the user, having a popup to subscribe to their newsletter in the middle of the read feels disingenuous.
Quickly exited after that.
-
Comment on Day 16: Reindeer Maze in ~comp.advent_of_code
guissmo Just the right problem to stop getting rusty with graph traversals. Here my write-up for the last four days worth of problems.Just the right problem to stop getting rusty with graph traversals.
Here my write-up for the last four days worth of problems.
-
Comment on Day 13: Claw Contraption in ~comp.advent_of_code
guissmo Woke up early today by chance. Parsing def parse_13(filename='./data/13.in'): with open(filename) as file: ret = [] for line in file: ret.append(line.strip()) return ret parse_13() Solution import...Woke up early today by chance.
Parsing
def parse_13(filename='./data/13.in'): with open(filename) as file: ret = [] for line in file: ret.append(line.strip()) return ret parse_13()
Solution
import re def solution_13a(data=None, filename=None): if not data: lines = parse_13(filename) else: lines = data def get_test_case(a, b, p): coords = [] matches = re.match(r"Button A: X\+([0-9]+), Y\+([0-9]+)", a) x = int(matches[1]) y = int(matches[2]) coords.append((x, y)) matches = re.match(r"Button B: X\+([0-9]+), Y\+([0-9]+)", b) x = int(matches[1]) y = int(matches[2]) coords.append((x, y)) matches = re.match(r"Prize: X=([0-9]+), Y=([0-9]+)", p) x = int(matches[1]) y = int(matches[2]) coords.append((x, y)) return tuple(coords) def get_test_cases(lines): return [get_test_case(a, b, p) for a, b, p in zip(lines[0::4], lines[1::4], lines[2::4])] def get_solution(test_case): a, b, p = test_case x1, y1 = a x2, y2 = b x, y = p det = x1*y2 - x2*y1 if det == 0: return (None, None) m = (y2*x -x2*y)/det if m != int(m): return (None, None) n = (-y1*x + x1*y)/det if n != int(n): return (None, None) return (int(m), int(n)) def solve_test_case(test_case): a, b = get_solution(test_case) if a is None or b is None: return 0 else: return 3*a + b ret = 0 for test_case in get_test_cases(lines): ret += solve_test_case(test_case) return ret
Discussion
That PhD in Math do be paying off lmao.Solution works for both parts (just add that ridiculously large number at the appropriate place).
-
Comment on Day 12: Garden Groups in ~comp.advent_of_code
guissmo It took me some time to understand how your Part 2 solution worked. My solution involved blowing up the figure, taking its outline, and then counting the corners in a very particular way. Yours is...It took me some time to understand how your Part 2 solution worked.
My solution involved blowing up the figure, taking its outline, and then counting the corners in a very particular way.
Yours is much cleaner although I took a while to understand because I wasn't expecting to use complex numbers for directions. Maybe that could come in handy to other grid problems. :) Thanks for sharing!
-
Comment on Anyone interested in trying out Kagi? in ~tech
guissmo Well I guess the system I ended up with is to just comment to whom I sent invites to that way the others could keep track. Pinging @Arbybear and @GodzillasPencil so you’re in the loop:)Well I guess the system I ended up with is to just comment to whom I sent invites to that way the others could keep track.
Pinging @Arbybear and @GodzillasPencil so you’re in the loop:)
-
Comment on Anyone interested in trying out Kagi? in ~tech
-
Comment on Anyone interested in trying out Kagi? in ~tech
-
Comment on Anyone interested in trying out Kagi? in ~tech
-
Anyone interested in trying out Kagi?
Edit: I have sent my link to three different people and I am out. Assuming they sign up. However, a lot of people also have invite links that commented. I guess a system would be for the...
Edit: I have sent my link to three different people and I am out. Assuming they sign up. However, a lot of people also have invite links that commented. I guess a system would be for the invite-giver to reply to the comment of the invite-receiver to keep track?
—-
I received a link during Thanksgiving that lets me invite several people to a free trial of Kagi.
I tried convincing friends to try it out but most of them were not even interested in a free trial to a paid search engine.
If any of you are interested, please let me know.
I'll give you my link in private and you can register yourself to the free trial.
Posting just in case people are on the same boat as me.
--
Also, I hope it's appropriate to start a topic on this?
Let me know if this is frowned upon.58 votes -
Comment on Day 10: Hoof It in ~comp.advent_of_code
guissmo Same! In trying to solve part 1, I actually solved part 2! Lol. Code here.Same! In trying to solve part 1, I actually solved part 2! Lol. Code here.
-
Comment on Day 6: Guard Gallivant in ~comp.advent_of_code
guissmo I took too much time on this because I tried to optimize and while doing so missed something. TLDR: My optimization was to just start from the point in the path where I put the obstacle, but that...I took too much time on this because I tried to optimize and while doing so missed something.
TLDR: My optimization was to just start from the point in the path where I put the obstacle, but that doesn't account for when the obstacle would be counted earlier...
-
Comment on How Bluesky, the rival of Elon Musk’s X, is seizing the moment in ~tech
guissmo How about tech or software dev? How does one even find starter packs? Edit: Never mind I found your other commentHow about tech or software dev? How does one even find starter packs?
Edit: Never mind I found your other comment
-
Comment on AirPods or not? in ~music
guissmo Thanks for replying either way. Refreshing to know I'm not alone in this boat. :)Thanks for replying either way. Refreshing to know I'm not alone in this boat. :)
-
AirPods or not?
Hi, here is me asking for some advice. I currently have the Sennheiser CX True Wireless but I feel like they are too heavy, big, and uncomfortable for my ears to the point that I feel my earholes...
Hi, here is me asking for some advice.
I currently have the Sennheiser CX True Wireless but I feel like they are too heavy, big, and uncomfortable for my ears to the point that I feel my earholes are being stretched.
I am looking at AirPods right now despite not being committed to the whole Apple eco-system. They seem to be light enough and good quality enough, but I fear getting them is too expensive for what I'm getting given that I would want to use them with my Ubuntu desktop and my Android phone.
What alternatives could you suggest? Or is AirPods the best bang-for-your-buck even if you are not really into the Apple eco-system?
25 votes -
Comment on Hello to Reddit folks from /r/selfhosted in ~talk
guissmo Others have beat me to it but I also have invites. :)Others have beat me to it but I also have invites. :)
-
Comment on The Vatican’s anime mascot is now an AI porn sensation in ~tech
guissmo Ahh sucks. I just subscribed. Their podcast is great imo.Ahh sucks. I just subscribed. Their podcast is great imo.
-
Comment on DebunkBot in ~science
guissmo I tried to give it a shot but it got boring. Plus using it in mobile wasn’t good. I wanted to go back one step by clicking the back button and it restarted the whole thing. Frustrating.I tried to give it a shot but it got boring. Plus using it in mobile wasn’t good. I wanted to go back one step by clicking the back button and it restarted the whole thing. Frustrating.
-
Comment on Omnivore alternatives? in ~tech
guissmo Thanks, I'm trying it out now! I've since deployed Wallabag on my VPS and downloaded / installed compatible iPhone apps to read. I am trying a setup where I have FreshRSS to collect the feeds and...Thanks, I'm trying it out now!
I've since deployed Wallabag on my VPS and downloaded / installed compatible iPhone apps to read.
I am trying a setup where I have FreshRSS to collect the feeds and Wallabag to bag the articles I'm interested in. Dunno if that would work.
I see where you’re getting at and sure everyone can do whatever they want with their website and if that’s how they earn money, why not.
I think them doing a variant of what they are complaining about is actually harming their credibility.
I also don’t think that the reasoning of “it could have been worse” it is not compelling enough to defend it.