-
Content Count
55 -
Joined
-
Last visited
Awards
This user doesn't have any awards
About RandleMcmurphy
-
Title
Member
Recent Profile Visitors
760 profile views
-
Need help for this easily fixable C program
RandleMcmurphy replied to suriya2210's topic in Programming
My pure C is a bit rusty. -
Need help for this easily fixable C program
RandleMcmurphy replied to suriya2210's topic in Programming
I completely agree, 90% of the C++ alternatives are safer, and switching between types is a pain. void see_safe() { //When input is 123456789 char buff[9]; scanf("%8s", buff); //Buffer overflow's can't exist } -
Need help for this easily fixable C program
RandleMcmurphy replied to suriya2210's topic in Programming
I did use C++, I should have made that clear so the OP wasn't confused. and using <cstdio> is perfectly valid, its still technically a part of C++. You should post a code snip-it for comparison, adding relevant content will benefit everyone. -
Need help for this easily fixable C program
RandleMcmurphy replied to suriya2210's topic in Programming
Fixed? -
Some Arduino code.
-
-
-
#include <random> #include <fstream> #define SIZE /*1kb*/ 1024 //size of rnd file #define O_F_NAME "out.bin" //output file name int main() { printf("Here's a tissue\n"); size_t _meow = 0; char *rnd = new char[SIZE] {0x00}; std::random_device rd; std::mt19937 generator(rd()); std::uniform_int_distribution<char> distribution(0,255); while(_meow < SIZE) rnd[_meow++] = distribution(generator); std::ofstream output(O_F_NAME, std::ofstream::binary | std::ofstream::trunc); if(output.is_open()) output.write(rnd, SIZE); else printf("fail\n
-
Anyone got any idea how to factory reset this thing?
RandleMcmurphy replied to LinusTech's topic in Hobby Electronics
Info dump: More information would be appreciated. "Basically its got a configuration loaded", how? was it working in the past, if so, what changed. Is it a new board? -
-
Ebay, That's where I get all my chem's. Just don't wind up on a watch list. https://www.ebay.com/itm/Copper-Sulfate-Pentahydrate-Crystals-99-Pure-5-lbs-Bag/132132964114?hash=item1ec3bd0712:g:~xoAAOSwjDZYYq65 https://chemistry.stackexchange.com/questions/60590/what-is-the-difference-between-copper-sulfate-and-copper-sulfate-pentahydrate
-
yeah, no worries, glad ya got it working.
-
Just pay super close attention to this clip https://youtu.be/v7A_fFHfN_c?t=60 notice, when the rest button is pressed, the devices com port changes from 36 to 37. The run time com port is 36, the bootloader com port is 37. You need the bootloader com port to be active when uploading.
-
I don't know what else to try, sorry I couldn't help ya out.