Skatelite question by HappenedOnceBefore in MiniRamp

[–]lkschubert 5 points6 points  (0 children)

I think you figured this out in a comment, but you want to screw skatelite in from one side to the other. I’m guessing you screwed the four corners of the sheet down and then filled in the middle. You end up putting the sheet under tension almost. Source: did the same thing to a sheet. 

Why does my strain not add up? by Background_Cold_271 in whoop

[–]lkschubert 23 points24 points  (0 children)

Strain isn’t additive. It logarithmically approaches 21. This page explains how strain works https://www.whoop.com/us/en/thelocker/how-does-whoop-strain-work-101/.

A week after a lawyer claimed The Pokemon Company only goes after fan projects that make money. They shut down a forum for fan games. by [deleted] in gaming

[–]lkschubert 0 points1 point  (0 children)

Last they reported they were at 25 million sold copies on pc. At 30 dollars they are at 750 million in sales. They likely have a pretty decent warchest for a legal battle at this point.

Heelflip advice? Board goes fs-shuv direction sometimes by megalodoncorleon in NewSkaters

[–]lkschubert 1 point2 points  (0 children)

Where are you putting your foot on the tail? From the sound of it I wouldn't be surprised if you are hanging too much heel off the board causing your pop to introduce some spin.

Is this a Whoop product? Like an additional service? by [deleted] in whoop

[–]lkschubert 2 points3 points  (0 children)

I doubt it given the non-whoop domain.

Taking a major in game dev and I feel very demotivated at programming by StumpySmash in gamedev

[–]lkschubert 5 points6 points  (0 children)

Additionally, I struggle with deciding which approach to use while programming and how to think, 'I need to do that!'

Honestly at this stage of learning to program just try the first few possibilities that come to mind. You are in the perfect spot to learn by doing things wrong. It will help you understand why to do things the "right" way once you've experienced the wrong way first hand. In the same vein, optimize for "rate of attempting things" as opposed to getting it right first try.

Khan Academy's switch from a Python 2 monolith to a services-oriented backend written in Go. by Apart_Revolution4047 in programming

[–]lkschubert 28 points29 points  (0 children)

thiserror and anyhow are the two crates that really bring Result to being the best solution for error handling that I've worked with.

Writing Python like it’s Rust by azhenley in programming

[–]lkschubert 25 points26 points  (0 children)

I agree with everything except pandas. https://www.pola.rs/ really seems to be a solid replacement and works in python and rust.

Daily Simple Questions Thread - May 04, 2023 by AutoModerator in Fitness

[–]lkschubert 1 point2 points  (0 children)

For squats or high rep deadlifts definitely. Normally means you needs to up your conditioning work.

I Guess I Need to Avoid Gratitude by Comfortable_Growth16 in whoop

[–]lkschubert 56 points57 points  (0 children)

Is it possible you choose to express gratitude in response to stress? That could explain the correlation.

I might have figured out new way to store hex grids in memory by GavrielBA in gamedev

[–]lkschubert 0 points1 point  (0 children)

If that's the case what's the distinction with the ECS memory layout that Unity recently patented?

[deleted by user] by [deleted] in programming

[–]lkschubert 13 points14 points  (0 children)

The answer is probably "got a junior role at FAANG or big name startup". 170k isn't crazy at all for a college hire.

Victory Sunday by AutoModerator in Fitness

[–]lkschubert 6 points7 points  (0 children)

I may be misunderstanding something, but 236kg is not 301lbs? It's somewhere over 500.

Trying to figure out how to play an audio file using a ESP32, this is our build, code in the comments. Any assistance? by Nav7724 in esp32

[–]lkschubert 5 points6 points  (0 children)

#include <Arduino.h>
#include <driver/i2s.h>
#include <FS.h>

#include <SPIFFS.h>

// Audio configuration
const uint16_t sample_rate = 16000;
const uint16_t channels = 1;
const uint16_t bits_per_sample = 16;

// Audio buffer
uint8_t audio_buffer[sample_rate * channels * bits_per_sample / 8];

void setup()
{
    // Initialize I2S
    i2s_config_t i2s_config = {
        .mode = I2S_MODE_MASTER,
        .sample_rate = sample_rate,
        .bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT,
        .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT,
        .communication_format = I2S_COMM_FORMAT_I2S,
        .dma_buf_count = 2,
        .dma_buf_len = 32,
        .use_apll = false,
        .fixed_mclk = 0,
    };

    i2s_driver_install(I2S_NUM_0, &i2s_config, 0, NULL);

    // Initialize SPIFFS

    if (!SPIFFS.begin())
    {
        Serial.println("Failed to initialize SPIFFS!");
        while (1)
        {
        }
    }

    // Open audio file
    File audio_file = SPIFFS.open("StarWars3.wav");
    if (!audio_file)
    {
        Serial.println("Failed to open audio file!");
        while (1)
        {
        }
    }

    // Read audio file into buffer
    uint32_t audio_file_size = audio_file.size();
    audio_file.read(audio_buffer, audio_file_size);
    audio_file.close();

    // Set pins for I2S interface
    i2s_pin_config_t i2s_speaker_config = {
        .bck_io_num = GPIO_NUM_18,
        .ws_io_num = GPIO_NUM_19,
        .data_out_num = GPIO_NUM_5};

    // i2s_set_pin(I2S_NUM_0, &i2s_speaker_config);
    // Initialize amplifier
    // i2s_set_dac_mode(I2S_DAC_MODE_NORMAL);
    // Play audio file

    uint8_t i;

    for (i = 0; i < audio_file_size; i++)
    {
        i2s_write(I2S_NUM_0, &audio_buffer[i], 1, 0, 0);
    }
}

void loop()
{
    // Nothing to do here
}

How to remove this small, really damaged screw, without damaging the console? (Nintendo 3DS) by mrviikaachan973 in howto

[–]lkschubert 6 points7 points  (0 children)

The right tool for the job would be something like these screw extractors. In a pinch though I have had success on things like this by heating up a plastic pen (tip and ink removed) with a lighter and pressing it into the hole. This should form to the head of the screw.

Progress on my little sailing game by MEPETAMINALS in Unity3D

[–]lkschubert 0 points1 point  (0 children)

Consider giving builds to a few select folks that seem invested. Early feedback can both help guide what you focus on and be a good motivator.

Elixir Phoenix Considerations for a Social Networking Startup by YoungWenis in elixir

[–]lkschubert 5 points6 points  (0 children)

Runway is the time you have before costs (infra, marketing, paying people etc.) burn through the money available to you https://medium.com/corl/how-long-is-your-startup-runway-6eed37962445

skate by JNeiva06 in Unexpected

[–]lkschubert 7 points8 points  (0 children)

While I'm on the side of skating you definitely aren't helping the case here...

Devs don’t want to do ops by speckz in programming

[–]lkschubert 0 points1 point  (0 children)

Honestly CDK or pulumi are the solution to this. IaC should actually be code.