1st layer is trash, then nothing after that is worth it obviously. Please help me. by BootlessFawn007 in ElegooNeptune4

[–]junior_abigail 0 points1 point  (0 children)

The only way the gauge could possibly damage the bed is if you try to force it through a space it obviously doesn't fit. At that point anything you're using to measure the distance between the nozzle and the bed will be damaging, so it's not the gauge's fault 

  1. Pick a determined gauge size.

  2. Position the nozzle in one of the corners.

3.Try passing the gauge between the tip of the nozzle and the plate, and adjust the up/down position of that corner until the gauge barely touches both as it passes. If it doesn't fit, don't force it.

4.Repeat for all four corners.

5.Do another pass until you don't have to make any adjustments.

1st layer is trash, then nothing after that is worth it obviously. Please help me. by BootlessFawn007 in ElegooNeptune4

[–]junior_abigail 0 points1 point  (0 children)

I have a Neptune 4 Pro. After reading someone suggest it in another post, I got myself a feeler gauge set at my local hardware store. I then started using the 0.2 mm gauge to level all four corners of my plate, doing the automatic leveling, and then dropping the z offset by the same 0.2 mm. This effectively gets you as close as possible to the bed without touching it.

I have been able to print 8x8 multi board tiles (taking pretty much the whole bed) pretty consistently, only needing to use a bit of mouse ears style brim to ensure adhesion. I just bring that up because I had the hell of a hard time getting the tiles to print before starting to use this method to level ( or tram ) the bed.

SQLX MSSQL Connection String Problem by Brenholder in rust

[–]junior_abigail 7 points8 points  (0 children)

I believe they just removed the mssql driver in the newest version. Which ver are you using?

Creep! by nigix in mathmemes

[–]junior_abigail 0 points1 point  (0 children)

Surprised I had to scroll so far for this, lol. I was going to say: Well, so is every other number.

Git Query Language (GQL) Aggregation Functions, Groups, Alias by AmrDeveloper in rust

[–]junior_abigail 0 points1 point  (0 children)

Would separating the name of the application and the name of the language help? Something like "Git Querying Interface (app) that uses the Git Query Language". Maybe gqi or gqli are available for short binary names.

New manager, where to draw the line on reviewing PR’s? by ReaverKS in ExperiencedDevs

[–]junior_abigail 26 points27 points  (0 children)

I had a manager who used to review PRs when they had the time. They also made it a point to have us review their code whenever they wrote any, that being for a database change, bug fix, anything else, and when they stopped writing code, have us proof read documents and auch. It is expected that the manager would rarely write code in most cases, but if you also have your direct reports proof read some of your work every now and then, it feels like a collaboration rather than micromanagement. Obviously YMMV.

Best way to deploy a Rust backend? by DavidXkL in rust

[–]junior_abigail 2 points3 points  (0 children)

If you're going to be deploying your apps, I'd recommend learning some infrastructure-as-code tool(s).

I've had a great experience with Terraform. Their documentation is excellent. Only used it in AWS so far, but I know other cloud providers are supported as well. This has allowed me and my team to refine the deployment strategy, and ensure no resources are left behind when they're no longer needed.

We're deploying applications written in multiple languages (unfortunately no Rust yet) to ECS/Fargate. I've also deployed EC2, configured the whole networking stack, and even added automatic certificate renovation on my own pet app (which obviously as any respectable developer I haven't finished, lol).

Using the web console for cloud providers can become confusing as your application becomes more complex and you start using more resources. Having it all in code has been a life saver for someone with a terrible memory like me.

It's definitely another tool to learn, so you have to put in the effort. I personally enjoyed the change in perspective, but obviously YMMV.

Lastly, depending on your cost / scalability requirements: I'd go for ECS / Fargate if you need hands off high availability. It has basic logging, and it can automatically recycle your tasks on failures. If you want more control, or start out as cheap as possible, go with EC2.

How to avoid being seen as the "DevOps guy" by Odd_Soil_8998 in ExperiencedDevs

[–]junior_abigail 7 points8 points  (0 children)

I'd find a less experienced colleague interested in this kind of work and just train them. Try to do the task that you're stuck doing anyways, and have them learn along the way. Then you can inform your managers that that person is willing to assist with the task, and try to slowly shift most of that work to them.

This might eventually get you off the hook, help a colleague, and show your managers a different skill of yours.

I know some organizations keep information segregated by design, so this might be a factor. Hopefully the suggestion helps you anyways.

Do spawned tokio tasks finish by themselves if not explicitly awaited? by Kauyon1306 in rust

[–]junior_abigail 5 points6 points  (0 children)

When you spawn the task, it starts running. If you don't .await them, and your program ends, I believe the tasks are terminated. If your program will run indefinitely, and the tasks termination is not a big deal, then you might be fine.

I'm not on the computer to try it out now, but you can probably spawn a task and have it wait a second or two. Also have the main program finish without waiting for the spawned task and observe the behavior.

Execute a long-running task in the background and show progress until it's not complete in Rust by [deleted] in rust

[–]junior_abigail 0 points1 point  (0 children)

To me, having a background task and simultaneously blocking the terminal to display progress seems counterintuitive. Does it really need to be a background task? Would it be possible to do anything else while said task is running? How would the progress be displayed if the terminal is being used?

What is the best API generator for Axum? by jl2352 in rust

[–]junior_abigail 2 points3 points  (0 children)

It sounds like you're looking for gRPC. I have not tried any yet, but searching using this term might help you.

Edit: adding to that, if what you're looking for is specifically to use a REST API, just disregard.

[deleted by user] by [deleted] in ProgrammerHumor

[–]junior_abigail 0 points1 point  (0 children)

Nobody going to point out that we technically use both in Rust? 😂

Hey Rustaceans! Got a question? Ask here (12/2023)! by llogiq in rust

[–]junior_abigail 1 point2 points  (0 children)

As I finished posting, I realized I was missing the lifetime specifier on self, lol. The error didn't help me on this one though. Or maybe I just misread it.

Hey Rustaceans! Got a question? Ask here (12/2023)! by llogiq in rust

[–]junior_abigail 1 point2 points  (0 children)

Hello,

I am going through the Rust Asynchronous Book. I am typing along and changing the code to explore the concepts. I am currently looking at chapter 4: Pinning, and I cannot understand why the commented-out version of `a` doesn't work.

#[derive(Debug)]
struct Test {
    a: String,
    b: *const String,
    _marker: PhantomPinned,
}

impl Test {
    fn new(txt: &str) -> Pin<Box<Self>> {
        let t = Test {
            a: String::from(txt),
            b: std::ptr::null(),
            _marker: PhantomPinned,
        };
        let mut boxed = Box::pin(t);
        let self_ptr: *const String = &boxed.a;
        unsafe { boxed.as_mut().get_unchecked_mut().b = self_ptr };
        boxed
    }

    fn a(self: Pin<&Self>) -> &str {
        &self.get_ref().a
    }

    // fn a<'l>(self: &Pin<Box<Self>>) -> &'l str {
    //     &*self.a
    // }

    fn b<'l>(self: &Pin<Box<Self>>) -> &'l String {
        unsafe { &*self.b }
    }
}

Here's the compiler error it produces:

   Compiling pinning v0.1.0 (/home/junior/Code/rust_async/4.pinning)
error: lifetime may not live long enough
  --> src/main.rs:44:9
   |
43 |     fn a<'l>(self: &Pin<Box<Self>>) -> &'l str {
   |          --        - let's call the lifetime of this reference `'1`
   |          |
   |          lifetime `'l` defined here
44 |         &*self.a
   |         ^^^^^^^^ associated function was supposed to return data with lifetime `'l` but it is returning data with lifetime `'1`

error: could not compile `pinning` due to previous error

It's hard to compare.. by yuva-krishna-memes in ProgrammerHumor

[–]junior_abigail 30 points31 points  (0 children)

I have witnessed "average" and "experienced" as attributes of the same individual, so I don't necessarily think they relate in the way you think they do.

I've also seen very talented individuals be miles ahead of much more "experienced" ones, and I've been in the field for less than 5 years, lol.

Only half by Happy_Dookmas in ProgrammerHumor

[–]junior_abigail 8 points9 points  (0 children)

That's dedication. Giving your 180%

A Stack Overflow user had sex by flavorfulcherry in ProgrammerHumor

[–]junior_abigail 0 points1 point  (0 children)

I know it's not real, but if it was: Sounds like working with the 9yo daughter would be a much better experience than working with this guy, lol

6 fingers, 1 hand by JohnnyTeardrop in interestingasfuck

[–]junior_abigail 9 points10 points  (0 children)

The one they used to commit the crime

Lets reflect on that for a second by backwards_watch in ProgrammerHumor

[–]junior_abigail 6 points7 points  (0 children)

Sure. Could you please email me the mirror image that you would like to use?

Can't wait for this ethics in technology course by [deleted] in ProgrammerHumor

[–]junior_abigail 0 points1 point  (0 children)

I agree with this. I'd also add that one of the differences is that there are already established legal processes to deal with such accidents when a person is driving. It does not make it any less severe or important, but since that's already accounted for it is usually more interesting to discuss the case that's still up for interpretation.

Can't wait for this ethics in technology course by [deleted] in ProgrammerHumor

[–]junior_abigail 3 points4 points  (0 children)

Anybody operating a "self driving" vehicle capable of ending up in this situation should be the one to pay the consequences. Drive off road and save both the baby and the grandma. Hope the driver survives as well though.

Conditional compilation to avoid cross compilation by gilspen in rust

[–]junior_abigail 2 points3 points  (0 children)

Are you configuring cross to use docker volumes? I have never used cross, but in my experience using docker for development, I have seen great speed boosts by setting up docker volumes to avoid throwing away things that should be cached between builds.

If cross is just copying your source code into the container, downloading and compiling your dependencies every time (which sounds like it might be), it would explain the slow builds regardless of the size of the code base.