ras's recent activity
-
19 votes
-
Comment on Thrice announce ‘The Artist In The Ambulance’ 20th anniversary tour and revisited LP in ~music
-
Thrice announce ‘The Artist In The Ambulance’ 20th anniversary tour and revisited LP
5 votes -
Comment on What are you reading these days? in ~books
ras Coincidentally, I'm reading White Noise by Dom DeLillo. I had no idea they were releasing a movie based on it. I'm almost finished and I like it. It's been on my to-read list for a long time and I...Coincidentally, I'm reading White Noise by Dom DeLillo. I had no idea they were releasing a movie based on it. I'm almost finished and I like it. It's been on my to-read list for a long time and I saw a used copy at the bookstore for a couple of bucks. It's been hitting a lot of areas of my life that are relevant right now.
Maybe I'll even get around to watching the movie.
Next up for me is Ragtime by E.L. Doctorow. No reason, really. It was a book that was always on our bookshelf at my mom's house, so I finally borrowed it.
-
Wizards of the Coast releases SRD under Creative Commons license
14 votes -
Comment on Day 6: Tuning Trouble in ~comp.advent_of_code
ras Today's was nice and easy. Solution - Parts 1 and 2 - JavaScript import { readFileSync } from "fs"; const input = readFileSync("input.txt", "utf8").toString().split("\n"); const MARKER_SIZE = 4;...Today's was nice and easy.
Solution - Parts 1 and 2 - JavaScript
import { readFileSync } from "fs"; const input = readFileSync("input.txt", "utf8").toString().split("\n"); const MARKER_SIZE = 4; // const MARKER_SIZE = 14; const findMarker = (buffer) => { for (let i = 0; i < buffer.length; i++) { let s = new Set(); let x = [...buffer.slice(i, i + MARKER_SIZE)]; for (const i of x) { s.add(i); } if (s.size === MARKER_SIZE) return i + MARKER_SIZE; } }; input.forEach((item, index) => { console.log(findMarker(item)); });
-
Comment on Day 4: Camp Cleanup in ~comp.advent_of_code
ras JavaScript solution, both parts import { readFileSync } from "fs"; const input = readFileSync("./input.txt", "utf-8").toString(); const groups = input.split("\n"); // Put numbers into an array...JavaScript solution, both parts
import { readFileSync } from "fs"; const input = readFileSync("./input.txt", "utf-8").toString(); const groups = input.split("\n"); // Put numbers into an array const expandNumbers = (start, end) => { let numbers = []; for (let index = Number(start); index <= Number(end); index++) { numbers.push(index); } return numbers; }; // Check if either number contains the other completely const containsAll = (left, right) => { return ( left.every((number) => right.includes(number)) || right.every((number) => left.includes(number)) ); }; // Check if any of the numbers overlap const containsSome = (left, right) => { return ( left.some((number) => right.includes(number)) || right.some((number) => left.includes(number)) ); }; let part1 = 0; let part2 = 0; groups.forEach((group) => { const [first, second] = group.split(","); const [firstStart, firstEnd] = first.split("-"); const [secondStart, secondEnd] = second.split("-"); const firstExpanded = expandNumbers(firstStart, firstEnd); const secondExpanded = expandNumbers(secondStart, secondEnd); if (containsAll(firstExpanded, secondExpanded)) part1++; if (containsSome(firstExpanded, secondExpanded)) part2++; }); console.log(part1); console.log(part2);
-
Comment on Day 4: Camp Cleanup in ~comp.advent_of_code
-
Comment on Looking for lessons in the ‘She Said’ box-office beatdown in ~movies
ras Same, never saw any marketing for this movie. At all.Same, never saw any marketing for this movie. At all.
-
Comment on Alright, I finally want to jump ship and join Mastodon. Can anyone post some getting started guides? in ~tech
ras Trying to explain to my friends that "you send a text to 40404" and then other people can see it on the web was pretty cryptic back in '07.Trying to explain to my friends that "you send a text to 40404" and then other people can see it on the web was pretty cryptic back in '07.
-
Comment on Mike Massé and Jeff Hall - Africa (Acoustic Toto cover, 2010) in ~music
ras You nailed it. The harmonies are what caught my ear. They add a lot of punch to the song.You nailed it. The harmonies are what caught my ear. They add a lot of punch to the song.
-
Comment on ‘Westworld’ canceled at HBO after four seasons in ~tv
ras I tried watching Westworld many times but it just never clicked for me. I probably should've given Season One more time, but I have a hard time when I don't enjoy the first couple of episodes.I tried watching Westworld many times but it just never clicked for me. I probably should've given Season One more time, but I have a hard time when I don't enjoy the first couple of episodes.
-
Comment on How are things in your country right now? in ~talk
ras Southern US here. Things are relatively normal here. Covid isn't really talked about or acknowledged here anymore. I've only seen one sign about masks in the past three months or so and that was...Southern US here. Things are relatively normal here. Covid isn't really talked about or acknowledged here anymore. I've only seen one sign about masks in the past three months or so and that was at the public library. I'm a moderate democrat living in a deep red Trump county. No one really talks about what's going on with the former president, only how bad the current guy is. I've cut my news media diet WAY back, so I'm pretty out of the loop when it comes to most things that don't make it through my filters. I occasionally see things trending on Twitter like "Civil War", but where I live it's not something I've heard anyone talk about seriously.
-
Visiting Canada’s $50 million 1980s ghost town
12 votes -
Comment on Seasonal beverages in ~food
ras Here in the American south it occupies that three day time period between Winter and Summer.Here in the American south it occupies that three day time period between Winter and Summer.
-
Comment on Meet the covid super-dodgers in ~health
ras My immediate family are in this group. As far as we know none of the five of us have had COVID yet. I don't have any theories as to why. I go to work in an office three times a week. Our kids play...My immediate family are in this group. As far as we know none of the five of us have had COVID yet. I don't have any theories as to why. I go to work in an office three times a week. Our kids play with other kids and have gone to camps all summer. In fact, our daughter went to a camp two weeks ago where it seems everyone else that attended tested positive. I'd have to imagine that at least one of us has had at least an asymptomatic case by this point in the pandemic.
-
Meet the covid super-dodgers
11 votes -
Comment on Where do you acquire books? in ~books
ras I've moved away from acquiring and gone back to using my local library. It's close to my house and I can request books through the entire state library system. Sometimes I have to wait a while for...I've moved away from acquiring and gone back to using my local library. It's close to my house and I can request books through the entire state library system. Sometimes I have to wait a while for it to come in, but for the most part it takes a couple of days for my requests to arrive.
I have so many books in my house, taking a break from acquiring an endless stream of books (and if I'm being honest, not all of them have been read or ever will be) has done some good for both my wallet and clutter in general.
-
Comment on 40% of Americans believe in creationism in ~humanities
ras We had some shutters installed in our house a while back and the guy who did the install just talked non-stop about how the earth is only around 7000 years old. I was so gobsmacked I didn't even...We had some shutters installed in our house a while back and the guy who did the install just talked non-stop about how the earth is only around 7000 years old. I was so gobsmacked I didn't even really know how to engage with him. I didn't think I'd ever met someone that held this belief, but according to this poll, I've probably met several people.
-
40% of Americans believe in creationism
33 votes
It's hard for me to believe that this album is 20 years old. It came out at a very tumultuous time of my life and I wore it out. Hopefully I'll get a chance to go see them perform it on this tour.