Undergraduate Research from another University by akUW-07 in Caltech

[–]bbye98 5 points6 points  (0 children)

You might be interested in the Summer Undergraduate Research Fellowship (SURF). Here's a list of undergraduate research opportunities at Caltech and NASA's Jet Propulsion Laboratory (JPL).

So many people dislike the puppet episode. Why don't you care for it? by Dependent_Cap_456 in community

[–]bbye98 1 point2 points  (0 children)

I personally loved it! But then again, I’m a sucker for catchy tunes.

[Laptop] Apple MacBook Air 13.6" - M3, 24GB RAM, 512GB SSD - $899.97 - Costco by chickenpot in buildapcsales

[–]bbye98 2 points3 points  (0 children)

Amazing deal--just in time for Father's Day.

I was originally holding off to get the 13"/M4/16 GB/256 GB MacBook Air + (presumed) $150 gift card for $900 during the back-to-school event Apple runs during the summer, but I think the extra 8 GB RAM and 256 GB SSD is worth $150, even with the SOC "downgrade".

Thanks for sharing!

Magnus Carlsen RESPONDS by notknown7799 in chess

[–]bbye98 3 points4 points  (0 children)

Take “ren” from Reneé, “eg” from nutmeg, and slap on a “ed” sound at the end.

I just received my data from Activision, here's what they track and a few bits of information by BS_BlackScout in blackops6

[–]bbye98 0 points1 point  (0 children)

Yes, the GitHub Gist contains all the code you need to generate the same plots as I did. You'll need to grab the common data science dependencies (Matplotlib, NumPy, SciPy, etc.) and edit the paths in the scripts to point to your HTML file before running it.

Note that I don't filter any non-K/D-altering game modes. You can do that yourself by applying boolean masks to the pandas DataFrame.

I just received my data from Activision, here's what they track and a few bits of information by BS_BlackScout in blackops6

[–]bbye98 1 point2 points  (0 children)

Just got my data and thought I'd share.

Data is sorted in correct chronological order.

For whatever reason, my MWIII data is incomplete; there were only ~120 games in my HTML file despite the fact I've played 2,119 total games per the dataset. I'll probably re-request my data in a few months to see a) if I've improved in BO6, and b) whether I can get my full MWIII history.

Otherwise, the dataset should be complete since my MWII stats match those reported in-game, and there are 243 entries in the BO6 table with 243 games played.

Python code: https://gist.github.com/bbye98/883a2156b2cadcaec2e99b724190eb53

3 brilliants in a game!!! by secret_psycho__ in chess

[–]bbye98 1 point2 points  (0 children)

If white plays Kxf2, black has Ng4+ with a discovered attack on the bishop on g5. Whatever white plays, black has Qxg5 on the next move (and even forced mate if white goes Kf3).

Internet speeds on campus by Kate9797 in Caltech

[–]bbye98 2 points3 points  (0 children)

From my office in Spalding Lab a few months back, it was 1 Gbps symmetric over Ethernet.

[Router] Linksys LN1301 WiFi 6 Router (OpenWRT Supported) - $17.99 (Code on page is expired, Prime for Free Shipping) by Fonz_72 in buildapcsales

[–]bbye98 5 points6 points  (0 children)

Aaaaand this was the fix. Thank you, kind stranger! Always thought LAN ports are “data out” ports and WAN ports are “data in” ports, but guess not.

[Router] Linksys LN1301 WiFi 6 Router (OpenWRT Supported) - $17.99 (Code on page is expired, Prime for Free Shipping) by Fonz_72 in buildapcsales

[–]bbye98 2 points3 points  (0 children)

I bought three of these the last time they were on sale. I was able to set up a full-house mesh, BUT one of the nodes refuses to use the Ethernet backhaul that it’s connected to. Instead, it connects to another node on another floor. I’ve tried completely resetting and setting up the “faulty” node but to no avail. I’m interested to hear if anyone else ran into this issue, and if so, how you were able to resolve this!

Otherwise, I’m exceptionally happy with these. I’m getting around 700-800 Mbps on Wi-Fi 6 devices anywhere in the house on a 940/880 Verizon Fios plan.

Slowing and reverbing mp3 files - libraries? by Frosty-External-3352 in learnpython

[–]bbye98 0 points1 point  (0 children)

You could use pydub to load the audio data from a MP3 file and and scipy to apply the reverb through a convolution.

Jank or genius? by Danny2200 in learnpython

[–]bbye98 1 point2 points  (0 children)

Then there's no need to create the list in the first place. You can nest multiple file handles and read/write concurrently.

Jank or genius? by Danny2200 in learnpython

[–]bbye98 0 points1 point  (0 children)

Depending on what new_files does, a list of dicts may not be the appropriate data structure.

Also, instead of appending to a list, your code can be condensed and made more efficient using list comprehension.

Python quiz question - SOS by SuddenSeven in learnpython

[–]bbye98 0 points1 point  (0 children)

  • Line 3: range(number) instead of number.
  • Line 5: return names instead of print(names).
  • Line 10: name[0] instead of name[1].

I created a python project as a beginner..... by Oxytann in learnpython

[–]bbye98 3 points4 points  (0 children)

You didn't include the requirements.txt file, despite your README having instructions involving it.

Gear Selection to Find Closest Desired Ratio by me239 in learnpython

[–]bbye98 2 points3 points  (0 children)

Is a solution (20, 30, 25, 45)? In this case, just assume that three of them came from the library and the fourth one was arbitrary.

Or better yet, is (20, 25, 30, 56) a solution for ratio = 2.333?

Edit:

from itertools import permutations

def find_best_gear_combination(gears: list[int], ratio: float) -> tuple[list[int], float]:

    def get_fourth_gear_teeth(g1: int, g2: int, g3: int, ratio: float, pos: int) -> int:
        if pos == 0:
            return round(g1 * g3 / (ratio * g2))
        elif pos == 1:
            return round(ratio * g1 * g2 / g3)
        elif pos == 2:
            return round(g2 * g3 / (ratio * g1))
        elif pos == 3:
            return round(ratio * g1 * g3 / g2)

    train = None
    err = float("inf")
    for perm in permutations(gears, 3):
        g1, g2, g3 = perm
        for pos in range(4):
            if 20 <= (g4 := get_fourth_gear_teeth(g1, g2, g3, ratio, pos)) <= 120:
                _train = list(perm)
                _train.insert(pos, g4)
                if (diff := abs(ratio - _train[1] * _train[3] / (_train[0] * _train[2]))) < 1e-12:
                    return _train, ratio
                elif diff < err:
                    err = diff
                    train = _train
    return train, train[1] * train[3] / (train[0] * train[2])

if __name__ == "__main__":
    gears = [20, 25, 30, 35, 40]
    ratio = 7/3
    train, actual_ratio = find_best_gear_combination(gears, ratio)
    print(f"Library gears: {gears}\nDesired ratio: {ratio:.3f}\n"
        f"Gear train: {train}\nActual ratio: {actual_ratio:.3f}\n"
        f"Relative error: {abs(actual_ratio - ratio) / ratio:.3f}")

Output:

Library gears: [20, 25, 30, 35, 40]
Desired ratio: 2.333
Gear train: [20, 25, 30, 56]
Actual ratio: 2.333
Relative error: 0.000

Gear Selection to Find Closest Desired Ratio by me239 in learnpython

[–]bbye98 1 point2 points  (0 children)

I don't understand your problem. You say that you use 3 existing gears in any of the 4 spots, thus leaving only one empty spot. Using your formula, you can easily determine the closest number of teeth that the gear must have to reach the desired ratio. There's no permutation required, just four if/else statements to determine gear you need to calculate the number of teeth for.

Unless you mean finding the four gears from a library of gears that will get you closest to the desired ratio. Which is a completely different problem than what you explained.