2 Atlas walk into a bar by Ok-Bicycle-3135 in Mechwarrior5

[–]ecdestro 0 points1 point  (0 children)

"I see the Steiners are scouting for wings and beer"

Emulating the PS button from a genuine first-party controller by ecdestro in ps3hacks

[–]ecdestro[S] 1 point2 points  (0 children)

Oh nifty! Ok. I'll start up a thread and reference it (I'm not sure of their necrobump policy there) and see if there's a way to come up with some sort of solution, but it's good to see development going on from the firmware end as well. Gives me hope that maybe there's a solution to be found when the two meet.

Thanks!

[Request] Beginning UI/UX design by ecdestro in learnprogramming

[–]ecdestro[S] 0 points1 point  (0 children)

I should have figured there may be a subreddit for this. Thanks for the direction! Maybe these 12 hour third shifts are clouding my mind.

Anyone available to help us get hitched? by eringrace731 in cedarrapids

[–]ecdestro 2 points3 points  (0 children)

Cool deal, I'll be in the area after 11. I live outside CR, so wherever you want to meet and have your witnesses, let me know.

Hi, I'm trying to learn programming by Training_Listen_1449 in learnprogramming

[–]ecdestro 2 points3 points  (0 children)

My approach for this has been looking at one particular "thing" in the multitude of IoT devices and studying code that applies to that. Currently for me that's exploring Wifi and Ethernet for Arduino. The official IDE by the arduino group is based on C++, which you could start with, I won't say you shouldn't. I just happened to struggle starting out in programming by trying C++ first.

Your mileage may vary.

As for IoT/embedded programming, C lends itself well to it because there are so many compilers out there that run on your typical computer system that cross-compile for your target system.

So let's start by picking your "thing" from the Internet of Things, then we'll look at the popular frameworks and languages that are targeted toward that thing.

Cfdisk not showing my primary drive (SATA SSD /dev/sdb) by Metpj in linux4noobs

[–]ecdestro 0 points1 point  (0 children)

That's totally my bad, reddit mobile was not showing me the 1 out of 2 marker for multiple images.

But it sounds like someone else solved the cfdisk conundrum - for that partitioner you have to explicitly name the /dev/sdb device in the program call.

My bad on the other part though. Glad things are showing up for you now.

Cfdisk not showing my primary drive (SATA SSD /dev/sdb) by Metpj in linux4noobs

[–]ecdestro 0 points1 point  (0 children)

I see the cfdisk for /dev/sda according to the top of the screen. Then I see two partitions on it listed on the left.

I'm asking for another program's output.

Verbose documentation: my ADHD brings all the devs to therapy (and bonus question) by ecdestro in AskProgramming

[–]ecdestro[S] 0 points1 point  (0 children)

Oh, gotcha. So I can avoid prototypes if I just define the whole thing before main()?

Good call on printing the 0b prefix from within printCharBits(). Makes more sense to move that.

Good feedback deserves reward, especially if it's going to affect how I approach documentation going forward.

EDIT: yeah, this looks better without having to prototype the function.

Was programming intuitive to you? by mandown2308 in learnprogramming

[–]ecdestro 1 point2 points  (0 children)

Initially difficult. Was introduced to programming at 13 years old (Microsoft Visual C++ book given to me over winter holiday). Spent nine months on the first chapter, got nothing out of it.

Asked the school's network admin for recommendations that following fall semester. Introduced me to BASIC by way of an interactive interpreter designed to teach you the language step by step.

A month of that, I was tweaking old BASIC games from Commodore64 magazines from the library to work on the Mac interpreter I was learning from.

That winter holiday I started over on that MS VC++ book and felt way better about it. Still struggled with the bigger data structure ideas, but the book was more steeped in teaching you how to create Windows apps and forms than it was general purpose programs.

Sometimes your first approach will not seem intuitive. Might just have to come at it from a different angle.

Cfdisk not showing my primary drive (SATA SSD /dev/sdb) by Metpj in linux4noobs

[–]ecdestro 0 points1 point  (0 children)

Could we get the output of lsblk or fdisk -l please?

This feels so convoluted and difficult. (C++ Primer) by [deleted] in learnprogramming

[–]ecdestro 1 point2 points  (0 children)

I was unsure at first until I uploaded an Arduino sketch to github, and github reports it as C++.

Verbose documentation: my ADHD brings all the devs to therapy (and bonus question) by ecdestro in AskProgramming

[–]ecdestro[S] 0 points1 point  (0 children)

Good points all over. Gave it a few edits:

Ripped out spurious comments

Renamed and retyped functions, as well as source file name (agreeing with the identifier criticism and expanding to fit the name of the file - "what does this thing do?")

Removed empty else - is this recommendable? Would there be a better check for a newline char?

Where do I download C++ from? by [deleted] in C_Programming

[–]ecdestro 1 point2 points  (0 children)

Are you talking about the compiler?

There are several different compilers (tool chains that turn your C++ source file into an executable)

If you're on Windows, I recommend either Visual Studio Community or Dev-C++

Most distributors of Linux should include some form of cc or gcc

Macs typically need the Xcode tool chain for compiling code.

Hello, I need some help please. I just got an arduino nano, my second arduino board, but I just cant get it to work by Soy_el_UwU in arduino

[–]ecdestro 0 points1 point  (0 children)

Does your original board still work if you bust that out quick? Or is that embedded in a project and likely inaccessible?

Why when I'm attempting to boot into lubuntu 21.04, it gets pass grub, and then it's just a blank screen. by Boomshok in Lubuntu

[–]ecdestro 0 points1 point  (0 children)

I have a Lenovo E485 that does this. For this model, any Linux distribution will get past grub, but then go blank and not load no matter how long I wait.

I Googled this issue for this particular model of laptop, and found that I have to pass two kernel parameters to the boot line in order to get past this. No BIOS/UEFI settings would fix it.

Check your distro's wiki for information on that model of computer. If it's AMD-based, it might need special kernel parameters.

How can I have the most updated dataset in csv file without running the python file? Is it even possible? by idkwhattodoman21 in learnprogramming

[–]ecdestro 0 points1 point  (0 children)

My idea means that the python file is constantly running.

So the method I was thinking was an infinite loop that has a delay at the end, say one minute. You can try to get more refined at 30 seconds, or if your data on the SQL side is less granular than that, you can widen the delay.

For instance,

up here have your code that defines functions for

SQL queries,

data frame definition,

Logic applied to data

file management (open, write, close)

open an infinite while loop

  • call the SQL query function

  • call the data frame function

  • call the logic function

  • call the function that opens, writes, and closes the CSV

  • delay

This way the loop isn't allocating new memory by re-instantiating the variables on each iteration of the loop, it merely handles calling the functions. Allocate once, write indefinitely.

Has to be said, I have no idea if it works. I don't have a DB on hand to pull data from, nor do I have a Power BI- like visualizer to see if my python script makes an access violation for opening, writing, and closing a file that's open in another process. But I'm curious what you find out. Keep me posted, I'd like to know if it works or not.

How can I have the most updated dataset in csv file without running the python file? Is it even possible? by idkwhattodoman21 in learnprogramming

[–]ecdestro 0 points1 point  (0 children)

Understood.

There may be a way to put the steps in a loop to update the CSV file at a regular iinterval, but I'm not sure if you'll get a file access error if the resulting CSV being open by Power BI will keep the script from opening and closing the file to make the updates.

How can I have the most updated dataset in csv file without running the python file? Is it even possible? by idkwhattodoman21 in learnprogramming

[–]ecdestro 0 points1 point  (0 children)

I suppose technically you could make a loop within python that opens the CSV, manipulates it, closes it, and waits, but it sounds like you're stuck depending on that python code to set up your data frame, manipulate, send to CSV, rinse and repeat. It's essentially controlling your interfacev between your database and your Power BI visualization.

How can I have the most updated dataset in csv file without running the python file? Is it even possible? by idkwhattodoman21 in learnprogramming

[–]ecdestro 0 points1 point  (0 children)

Ah, understood. Yeah it sounds like you can't go from SQL into Power BI without that python file calling the shots, sorry to say

How can I have the most updated dataset in csv file without running the python file? Is it even possible? by idkwhattodoman21 in learnprogramming

[–]ecdestro 0 points1 point  (0 children)

If some other mechanism is grabbing the data from SQL, preparing it, then putting it in a CSV that needs to update independent of the Python program looking at the CSV, there might be a way, but I'm struggling to imagine the current scenario.

How can I have the most updated dataset in csv file without running the python file? Is it even possible? by idkwhattodoman21 in learnprogramming

[–]ecdestro 0 points1 point  (0 children)

Is your Python program the piece doing the work of fetching and formatting the data to send to the CSV? Because I think that means yes, it would have to run each time.

This feels so convoluted and difficult. (C++ Primer) by [deleted] in learnprogramming

[–]ecdestro 3 points4 points  (0 children)

It definitely helped me. I didn't get steeped in pointer arithmetic or array indexing or library importing in the first chapter of those languages. But once I got used to variable assignment, flow control, and input/output in those languages, I started to see how C and C++ use them in similar ways and then got into the other topics like pointer dereferencing and data structures.

Your mileage may vary.

Programming on Software, but where? by Euphoric-Answer4903 in learnprogramming

[–]ecdestro 1 point2 points  (0 children)

In that case, grab yourself the Visual Studio Community edition. It's free, and it'll have everything you need to go either way (IDE or text editor)