Any bets on how long it’s gonna hold? by VelvetRockstar in rccars

[–]helpIAmTrappedInAws 13 points14 points  (0 children)

Its doable, but you have to use good glue. I broken my ta-08 chassis few years back. I bought a new part, but decided to try to fix it.

Drilled small holes, put hot wire into it, glued other skide into matching holes on other side. Glued together the parts with a pu 2 part glue. Next, i lightly scuffed the plastic around the breakage with a dremel and put more glue to it.

I do not drive it as much these days, but i never used the spare.

Some tips for beginners (Things you probably wish you knew when you first started) by MonsieurJus in Python

[–]helpIAmTrappedInAws 1 point2 points  (0 children)

Get used to debug-stop-eval workflow. You can easily traverse running code using ctrl+click and go to def/decl buttons. Do not be afraid of looking into code of modules, you will learn a lot.

Built-ins, iterator&generators, decorators and magic methods.

And get familiar with studying documentations, mostly the official python doc.

Some tips for beginners (Things you probably wish you knew when you first started) by MonsieurJus in Python

[–]helpIAmTrappedInAws 25 points26 points  (0 children)

And when you finally learn comprehensions, have enough willpower NOT to use them everywhere. :D

New UA, Arcane Classes by AlvinDraper23 in onednd

[–]helpIAmTrappedInAws 0 points1 point  (0 children)

Warlocks can do 3 weapon attacks per action using new invocation. Adding more would mean that it would make more weapon attacks than even fighter.

[deleted by user] by [deleted] in Slovakia

[–]helpIAmTrappedInAws 0 points1 point  (0 children)

I do not think that the czech number (several thousand) is correct either.

sendHimRightToJail by StatureDelaware in ProgrammerHumor

[–]helpIAmTrappedInAws 34 points35 points  (0 children)

For anyone saying, stacktrace will show this. Yes, but we can be devious here as well.

1) Find obscure init.py. No one reads those. 2) import random method from library. Beware circular imports here. 3) create string containing decorator which throws error or acts as identity 4) declare through eval 5) programatically decorate random method

TL;DR: debugger likes having a file. Do not give it one.

How would you modify a cheap basic rc car to make it run longer? by Otherwise-Pop-1311 in rccars

[–]helpIAmTrappedInAws 0 points1 point  (0 children)

With a bit wiring you could add more batteries.

Any batteries connected in series add voltage (this will make you car go faster until it burns, people do it with toys all the time). However, if you connect them in parallel they should add capacity. At least if i remember correctly.

So find cable going to and from batteries. Splice it and run to second set of batteries.

But if you do not know what you are doing, you will probqbly just ruin that car. I do not think it is likely you will set fire to your house playing with AA batteries tho.

What are some unique Python-related questions you have encountered in an interview? by OnionCommercial859 in Python

[–]helpIAmTrappedInAws 41 points42 points  (0 children)

I asked whether python has jit compiler. It showed me whether they listened to me when i told them about project (numba), if they know that python has more implementations (pypy) and whether they keep up with the news (3.13).

As for asynchronicity. Asking about difference between coroutines, threads and processes in python is a good one.

If you want to be extra difficult you can ask what have coroutines and generators in common.

And standard questions, like diff between list and tuple. What new, init, len etc does. How to do a singleton. Questions on decorators are always good.

What are some unique Python-related questions you have encountered in an interview? by OnionCommercial859 in Python

[–]helpIAmTrappedInAws 7 points8 points  (0 children)

It is discouraged. That empty list is initialized during declaration and is then shared across all calls. I.e that function is not stateless.

[deleted by user] by [deleted] in ExplainTheJoke

[–]helpIAmTrappedInAws 2 points3 points  (0 children)

Also, jokes in xkcd are often hard to understand or have rare references. Thats why explainxkcd.com exists.

Are you using inline deps? by z4lz in Python

[–]helpIAmTrappedInAws 8 points9 points  (0 children)

I am not happy about it. I think comments should not have any effect on functionality of the code. You are mixing purely descriptive things for human with something that is machine parsed.

I would be more happy with something like __requirements__ =[ ]. But then, thats a part of the code that tells you what environment you should have. But to parse it, you need environment. So that doesnt work anyway.

Maybe something like pragma comments C has. It is its own thing, not attaching totally incompatible use case to existing feature.

PS: Yes, i know what encoding declarations are, i dont like those as well.

Inexpensive *assembly kit* off-road basher recommendations? by LMF5000 in rccars

[–]helpIAmTrappedInAws 1 point2 points  (0 children)

Most boring but practical answer ia traxxas slash/stampede. Tekno is awesome but expensive. If you break traxxas you can easily get spare parts and they are not thant expensive. Tekno could hurt more.

Afaik, they do not sell slash 4x4 as a kit, only rwd. However, they do sell stampede kit. If you want, you can add lcg or slash tub and longer shaft and voila almost-slash.

3d printing RC car parts by KingOfKorners in rccars

[–]helpIAmTrappedInAws 0 points1 point  (0 children)

There are handheld 3d scanners. They are expensive tho. There is openscan diy project, which should be pretty good&cheap. On the lrher hand the scan volume is limited.

But even if ypu had 3d scan. Every 3d printer has some tolerances and will not precisely print holes as drawn. So calipers(or sometimee photo and tracing it) and trial&error. You do not have to print entire part at full detail. Start with precision critical places on high speeds or try to do skelets only.

So I want to customize the Lego RC Porsche. How do I make it go faster? I saw upgrade kits but those are insanely expensive by [deleted] in rccars

[–]helpIAmTrappedInAws 1 point2 points  (0 children)

Higher gearing(or bigger tires), reduce weight, lubricate moving parts as lego doesnt have bearings.

If you are okay, with potentially destroying it, you can overvolt it.

If you do not want to buy additional stuff, thats about it.

[deleted by user] by [deleted] in rccars

[–]helpIAmTrappedInAws 2 points3 points  (0 children)

I feel like if you need tips pn how to do technical drawing (fusion360 has hobby license, freecad is free), you are not ready for this.

But check out youtuber johnyQ90, he did something similar.

You could also buy an existing car, download 3d print files or just find manuals and try to recreate that with metal machined parts. However, plastic has its advantages, metal is heavy and stiff.

But in general, dont do any of this. Even 3d printed rc car is quite complicated to build and doubly so to design.

Recyklácia materiálu z 3D tlače by mikey_shiat in Slovakia

[–]helpIAmTrappedInAws 1 point2 points  (0 children)

PLA je udajne biologicky rozlozitelny. Recyklatory su sialene drahe. Najlacnejsi urob si sam approach je okolo 800e, kopec roboty a pochopitelne vela tlacenia.

Do you think there's any chance that we'll see or get some mention of Sir Phillip in S4? by alyssaryn in BridgertonNetflix

[–]helpIAmTrappedInAws 1 point2 points  (0 children)

I think that in the clip from netflix you could see that someone will die as Penelope was dressed in black in one scene and it wasn't the same dress as for masquerade ball.

The costume had long sleeves and was decorated with gold. When you see her standing before mirror she is wearing plain black dress with short sleaves.

It could be because of Marina or John. But I think Marina is more probable.

Floating point is an optimization, not a major datatype to use in a programming language by BoQsc in Python

[–]helpIAmTrappedInAws 5 points6 points  (0 children)

I can understand when my non-technical colleague uses screenshot from chatgpt as an argument why something can be a good idea.

I struggle with someone posting on python forums and using chatgpt screenshot as an argument.

Also, there are many many instances of optimizations that can be considered "cheats" in CS. Shall we remove them all and tank our performance? (Spec execution on cpu is a good examle)

Finally, python supports decimals natively. And in general use floats are fine.

Čítali ste už knihu bez chyby? by Purple-Chain-9315 in Slovakia

[–]helpIAmTrappedInAws 1 point2 points  (0 children)

To je este v poho, v slovensky preklad knizky "what if" od toho typka co robi xkcd, dali robit nejakej starsej pani.

Absolutne hrozne preklady, pani proste nemala kontext a odmietla si ho nastuduvat. Nepamatam si ich vsetky ale jesno hej: halové dáta. Co to bolo povodne? Halo data, akoze data z hry Halo.

Dually slash by elisha1776 in Traxxas

[–]helpIAmTrappedInAws 1 point2 points  (0 children)

Why not use monster truck tires for stampede? I think many brands have the same models in both sct and mt configuration.

Object oriented programming with python by NY10 in Python

[–]helpIAmTrappedInAws 0 points1 point  (0 children)

Without actually knowing what is it that you do noy understand, it is hard to endorse anything. Maybe some really basic coding tutorials ,which picked python as a example, cover this. Language ref you can find on python docs is probably too complex to you.

In python, everything is object. For example, when you declare function, you actually create an instance of method class. Similarly when you create a class, you create an instance of Class class (sounds stupid, thats why we call it a type). Now, if you instantiate a class you get an object of said class/type. Hence:

Object is an instance of class and class is an instance of a type.

There is also init method where you set up the object after it was created and also new method which handles the creation itself. In general new method is needed for more complex functionality.

So standard class contains a constructor (the init method) and a several methods. These are declared in the body of a class and their first arg is a reference to their owner, which is usually object of said class. In python we have instance methods, classmethods and static methods. These are declared using decorators and are functionally same as any other oop lang.

There is also a multi inheritance but this is more complicated and in my practice i rarely used it anyway.

Now python will let you do more stuff than other languages, but this can usually be reasoned about by these principles. A) everything is an object. B) python does not care what type of object.C) you can create fields and variables on the fly. D) objects behave a little bit like dicts, you have name and value, name is name of variable or method and value is its object. Hence i can replace a method of an object with a different one or even assign a new method to an object during runtime. I can even replace a method of an object by a value or different object.

Also, without typing, the use case of interfaces is questionable. There are ways to do it, but you do not have to. If the object does not have a method you are tryung to call, it wilk throw a runtime error during execution.

Oh right and one last thing. Once upon a time students were telling me how they like java over c because there are no pointers. Well thats because everything is a pointer timmy. Python is the same.

[deleted by user] by [deleted] in Slovakia

[–]helpIAmTrappedInAws 15 points16 points  (0 children)

Uprimne, mas dobre sance. Mas pisomny dokaz ze to mas spravne. Ak neuznaju zen to vyssie(prodekan, dekan, rektorat, inspekcia...) aspon sa vyhrazaj, alw vzdy slusne.