« first day (4225 days earlier)      last day (89 days later) » 

00:11
0
Q: How should my github workflow be?

dearn44I've come up with the following actions for my project. These came up by reading the relevant documentation and it's my first try at creating a proper workflow for managing my project. Are there any optimizations, or a more "standard" way of doing things. Additionally I found some popular actions...

00:21
REFRESH! There are 5335 unanswered questions (93.1141 answered)
 
9 hours later…
09:32
1
Q: Generating random bytes

marknikkyI implemented a simple function that generated random bytes Vec<u8> with given n size. Then I wondered how can I optimize this. Here is the first implementation: use rand::{Rng, RngCore, SeedableRng}; use rand_chacha::ChaCha20Rng; fn random_bytes(n: usize) -> Vec<u8> { let mut bytes = Vec::w...

 
3 hours later…
12:08
0
Q: Managing file paths in a python Data Science project

Alessandro CesaWhen doing Data Science projects, I often have to load data and metadata, and output results, plots, logs, etc. Therefore I have to handle all the file paths from where to load the input and write the output. I don't think that hardcoding the paths in the script is a good practice, therefore I wr...

12:58
Monking
13:09
@pacmaninbw Looks like I had the only answer to that question. :(
I was kind of expecting that.
I had to edit the question for people to even look at it.
I mean it has a lot of low-hanging fruit (even still), but it's structured somewhat incomprehensibly
There's even a comment on it right now that could be easily made into a strong answer
@DerKommissar Which one, the security comment or the navigation comment?
Security, I added a note about using Navigation properties in my answer
You should mention that to the commentor, and if they don't write an answer about that part by Monday then I will write a new one (or add it to mine)
Mentioned.
@DerKommissar Are you still using CLion or other tools by that provider?
13:23
Yeah, I still use Resharper, IntelliJ (puke), CLion, and Rider.
And DataGrip
On Linux I've started using Visual Studio Code.
I'm also trying to learn QT
I got worried about security from the provider of CLion.
I never used CLion with Qt, but I did use VS Code on Mac for a while. I prefer the IDE's more than the text editor
It really helps me with creating CMakeLists.txt
Not totally happy with how Intellisense is integrated into the editor.
@DerKommissar Did you ever try XCode?
Yeah, I never spent enough time learning the Apple App Model to make use of it
I played with Swift a few times, was neat, but had no functional applications for me.
I don't have a Mac any more.
13:29
My wife took mine, and my old job took theirs back, so me either lmao
My Mac was a 2010 17 inch MacBook pro. The mother board died 3 times.
I have a late 2015 iMac 27", still runs well enough for what she uses it for
My Linux system is a 2016 Lenovo P50. Still works well for Linux, it won't support Windows 11.
My Windows system is a Dell Power Laptop 7740. It can be upgrade to Windows 11, I'm still running Windows 10 on it.
Funny enough, I was literally setting up a VM to test some .NET Core stuff on just now.
:)
Are you primarily in customer support these days?
13:37
Not really, I am a manufacturing automation controls engineer for an OEM, we build machinery we then ship & install on customer sites
Most of my work is PLC's, HMI's & CNC's, I do a little .NET stuff for specialized applications yet.
Sounds interesting.
Also do some electrical circuitry work for certain aspects of our applications. (I.e. if we need a cheap step-down transformer for a lightweight DC device)
My first job in software engineering was at Teradyne. They make automatic test equipment for electronics. I worked in the semi-conductor test division, writing compilers and device drivers.
Ours is all glass processing equipment, so it's pretty straightforward. My work is primarily Yaskawa & Allen-Bradley PLC's, and Schneider HMI's.
Circuit work is going to be VHL or Verilog, what else are you using?
13:44
LTSpice, we just order the parts once it's been simulated to work as designed
Is it all controlled by Windows?
Depends. We have a Windows CNC program that we use to control everything if it gets a CNC, otherwise it's all just the PLC.
Generally, the PLC is the controller, the Windows PC is the HMI
Does it interface with CAD systems?
Are any of the PLCs FPGAs?
Define "CAD", because right now I'm thinking of the Computer Aided Drafting software and no, it does not interface with that at all
Yes, I was asking about Computer Aided Design.
13:49
PLC's are just OOTB platforms, Yaskawa MP3300-series or Allen-Bradley / Rockwell ControlLogix
At Teradyne a lot of our boards had FPGAs on them to control the board.
The high level controller started out as a Unix Computer and then switched to Windows, because Intel insisted.
Yeah the PLC controls it all here. We don't engineer the electricals unless it's something simple.
@DerKommissar It is good to have you back here. It's been too quite lately. I need to run. TTYL
14:12
possible answer invalidation by Alessandro Cesa on question by Alessandro Cesa: codereview.stackexchange.com/posts/294552/revisions
possible answer invalidation by Alessandro Cesa on question by Alessandro Cesa: codereview.stackexchange.com/posts/294552/revisions
possible answer invalidation by Alessandro Cesa on question by Alessandro Cesa: codereview.stackexchange.com/posts/294552/revisions
possible answer invalidation by Alessandro Cesa on question by Alessandro Cesa: codereview.stackexchange.com/posts/294552/revisions
possible answer invalidation by Alessandro Cesa on question by Alessandro Cesa: codereview.stackexchange.com/posts/294552/revisions
 
2 hours later…
16:20
0
Q: What is the best way to structure the directories in a Python ML project?

Alessandro CesaI would like to know the appropriate way to structure the directories for a ML python project; in order to make the project easy to read, mantain and get the imports of packages properly working. (i.e. having the imports run smoothly both when running from command line and from an IDE, without ha...

17:15
The directory structure one got a close vote, what is your opinion?
Monking
@konijn: I cast the downvote because the question has no code in it and it is asking for general best practices. Both of those reasons make the question off-topic, in my opinion.
I meant to say "close vote", not "downvote"
 
1 hour later…
18:25
@CaptainObvious Someone upvoted that...
@konijn I don't see any code to review.
We already have a meta post.
 
4 hours later…
22:11

« first day (4225 days earlier)      last day (89 days later) »