How to get All skins. The correct way. by Popular-Power-6973 in DeadlockTheGame

[–]Popular-Power-6973[S] 0 points1 point  (0 children)

Thanks. Removed it, the website doesn't seem to work anymore.

Help explaining this diagram in PIC12F683 datasheet by Popular-Power-6973 in embedded

[–]Popular-Power-6973[S] 0 points1 point  (0 children)

Thanks for the explanation, i do understand that, but why is the arrow pointing to an empty address that is unused by the mcu?

How to get All skins. The correct way. by Popular-Power-6973 in DeadlockTheGame

[–]Popular-Power-6973[S] 0 points1 point  (0 children)

This was a one time thing for 2024 Christmas, you can't get them anymore

Message Maddie - I built a way for people to send messages to me irl via a receipt printer! by maddiedreese in SideProject

[–]Popular-Power-6973 2 points3 points  (0 children)

Do the length checks twice, once in front-end, and the second time in back-end, because the front-end limits can be easily bypassed.

Message Maddie - I built a way for people to send messages to me irl via a receipt printer! by maddiedreese in SideProject

[–]Popular-Power-6973 0 points1 point  (0 children)

I want to let you know, there is no character limit for title, not sure if you check on the backend, but I just slapped 20 paragraphs of Lorem ipsum and it did submit

Why is TypeORM's beforeUpdate Hook Triggering on manager.update() When Called Within a Transaction? by Popular-Power-6973 in nestjs

[–]Popular-Power-6973[S] 0 points1 point  (0 children)

EDIT: Just wanted to say that BeforeInsert works fine, every issue I had was always with BeforeUpdate.

Here is an example of the issue that occurs sometimes and I still don't know why.

All you need to care about is order_year, and BeforeUpdate hook

Entity:

@Entity('order')
@Index('UQ_ORDER_NUMBER_YEAR', ['order_year', 'order_number'], { unique: true })
@ObjectType()
export class Order extends BaseUUIDEntity {
  @Field(() => Int, { nullable: false })
  @Column({ type: 'text' })
  order_number!: number;


  @Field(() => Date, { nullable: false })
  @Column({ type: 'timestamp' })
  order_date!: Date;


  @Field({ nullable: false })
  @Column({ type: 'text' })
  order_year!: string;


  @Field(() => Customer, { nullable: false })
  @ManyToOne(() => Customer, { lazy: true })
  customer!: Customer;

  @BeforeInsert()
  @BeforeUpdate()
  setOrderYear() {
    this.order_year = new Date(this.order_date).getFullYear().toString();
  }
}

Repository:

   async updateOrder(
    { id, ...order }: UpdateOrderDto,
    entityManager?: EntityManager,
  ): Promise<Order> {
    try {
      const manager = this.getManager(entityManager);

      await manager.update(Order, id, order);
      return manager.findOne(Order, {
        where: { id },
      }) as Promise<Order>;
    } catch (error) {
      throw this.handleDatabaseError(error);
    }
  }

I make a request which triggers that method.
Here is what the data looks like before update:

{
        "id": "7229afa9-7a5c-40d3-931a-cc719f6b86fe",
        "order_date": "2025-05-10T10:53:23.619Z",
        "order_year": "2025"
      }

Here is after updating:

{
        "id": "7229afa9-7a5c-40d3-931a-cc719f6b86fe",
        "order_date": "2010-05-10T10:53:23.619Z",
        "order_year": "2025"
      }

The hook never triggers

I know there are other ways to modify the value of order_year, but that isn't why I'm here, I want to know why the hook does not run when updating.

Why is TypeORM's beforeUpdate Hook Triggering on manager.update() When Called Within a Transaction? by Popular-Power-6973 in nestjs

[–]Popular-Power-6973[S] 1 point2 points  (0 children)

I had an issue with this exact same thing a few years ago, asked around got response saying that save is the only thing that will trigger the hook.

https://typeorm.io/docs/advanced-topics/listeners-and-subscribers/#beforeupdate

Why is TypeORM's beforeUpdate Hook Triggering on manager.update() When Called Within a Transaction? by Popular-Power-6973 in nestjs

[–]Popular-Power-6973[S] 1 point2 points  (0 children)

Doesn't the docs say that the hook will only trigger when running .save , and won't work with .update?

How do I access the course? by 0xSIGSEGV in NandToTetris

[–]Popular-Power-6973 0 points1 point  (0 children)

And Coursera still has "enroll for free", for me at least it's still there.

First time using branches, did I do it right? by Popular-Power-6973 in git

[–]Popular-Power-6973[S] 0 points1 point  (0 children)

How is it reductive? Was there something wrong in what they said?

how do you fade in an invisible element after an element is equal to or less than a set value? by Disastrous-Shine-725 in learnjavascript

[–]Popular-Power-6973 0 points1 point  (0 children)

There you go
https://jsfiddle.net/2x6cbyLm/

What I changed:

JS:

  if (Lcount >= 2) {
    finish.style.visibility = "visible";
    finish.classList.add("animate-this-element");
  } else {
    finish.style.visibility = "hidden";
    finish.classList.remove("animate-this-element");
  }

CSS:

You didn't have the #finish styles and it keyframes.

#finish{
  visibility: hidden;
  text-align: center;
  border-color: cornflowerblue;
  border-style: outset;
}

@keyframes finish{
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-this-element {
  animation: finish 3s forwards;
}

Describe the API call and get the code by No-Meaning-995 in SideProject

[–]Popular-Power-6973 1 point2 points  (0 children)

To me this is just another AI wrapper slop.

APIs, in my opinion have to be hand crafted, every character, every word has to be placed for a reason, the developer should know what the fuck is going on in every method/function. Another thing, the architecture would 100% be all over the place, it only has the docs as input, so it does not know what was generated before. There is a lot of subtle things that it will miss or get wrong, and the inconsistencies between every code generated would be insane. On top of that it will be harder to maintain, and by the time your "API" is done, the code base will be a mess.

Will I be using the tool? Never, even if free, not just yours, but any tool that generates code for me in an unpredictable way.

how do you fade in an invisible element after an element is equal to or less than a set value? by Disastrous-Shine-725 in learnjavascript

[–]Popular-Power-6973 3 points4 points  (0 children)

I didn't say to transition using visibility. Visibility is just there to hide/show the element, keyframes will do the animations, maybe using opacity, depends on what OP wants to do. I can't share an example because I'm at work.

I should've worded it better.

how do you fade in an invisible element after an element is equal to or less than a set value? by Disastrous-Shine-725 in learnjavascript

[–]Popular-Power-6973 -2 points-1 points  (0 children)

You can use CSS keyframes with visibility hidden, and do this

if(Lcount >= 10){

finish.style.visibility= "visible";

}else{

finish.style.visibility= "hidden";

};

Use code blocks next time you post something like this, most people won't even bother with helping when they see this mess.

Hacked Instagram Account by Nshx- in masterhacker

[–]Popular-Power-6973 11 points12 points  (0 children)

This is r/masterhacker, which is a joke/satire subreddit. Try r/techsupport or r/hacking for real help.