u/MStackoverflow

946 post karma · 4,269 comment karma · joined Mar 2020

MStackoverflow

Here are my requirements : - you need to watch a 15 minute training video to understand safety rules of the plant. - You need to wait for the electrician of the plant to come back from his smoke break for him to shutdown the main panel. - you need to ask around for the right screw drivers because yours got stolen in a previous campaign. - I would make it so you need to hold both mouse buttons and then scroll the wheel to simulate discomfort depending on the placement of the terminal. - Color coding should be misleading. You need to follow the wire to make sure what is connected to what and replace the bad tags if the customer has paid for it.

MStackoverflow

You can, but I like to have slimmer and less power hungry laptops.

Less weigh, more battery life.

MStackoverflow

No, but Gemini said you can infer it. Not sure if it's true. Maybe you can do a question/responde system also. If you see at least one other node, it should get Acked.

Gemini :

How to Infer ACK Status in SocketCAN (Indirectly):

While you cannot directly read the ACK bit, you can infer the success of message transmission and the presence of other nodes on the bus by utilizing SocketCAN features:

Loopback and Own Message Reception:

Enable CAN_RAW_LOOPBACK and CAN_RAW_RECV_OWN_MSGS socket options to receive your own transmitted messages back.

MSG_CONFIRM Flag:

When receiving your own transmitted messages, check the msg_flags member of the msghdr struct for the MSG_CONFIRM flag. This flag indicates that the message was successfully transmitted and acknowledged by at least one other node on the bus.

Absence of Confirmation:

If you send a message and do not receive a confirmation (i.e., no MSG_CONFIRM flag on your own message), it suggests that no other node acknowledged the transmission, potentially indicating an empty bus or an issue with a receiving node.

By observing these flags and the behavior of your transmitted messages, you can indirectly determine whether the ACK process was successful from the perspective of the transmitting node.

MStackoverflow

Ai is a tool, you can use it without it creating the code for you. Let's say you don't know about how to do a load balance algorithm, it could give you the answer in pseudo code.

Github Copilot is a good one for programming.

MStackoverflow

Useless bot, you're drunk, go home.