• Breaking News

    Monday, November 2, 2020

    Does randomness really exist in computers, where everything has to be an output of a logical calculation at the core of a computer's hardware? Is it really a random result that a random number picker out of a set of numbers gives you? Ask Programming

    Does randomness really exist in computers, where everything has to be an output of a logical calculation at the core of a computer's hardware? Is it really a random result that a random number picker out of a set of numbers gives you? Ask Programming


    Does randomness really exist in computers, where everything has to be an output of a logical calculation at the core of a computer's hardware? Is it really a random result that a random number picker out of a set of numbers gives you?

    Posted: 02 Nov 2020 02:46 PM PST

    Thank you

    submitted by /u/Nand-X
    [link] [comments]

    What is going on on this (presumably) fake plagiarism site?

    Posted: 02 Nov 2020 07:44 PM PST

    I posted this on r/Scams as well, but thought maybe someone here could help clarify for me.

    What is actually going on with this website that purports to be a plagiarism checker? It says it accepts some 1000s of words but maxes out at 900, does nothing to the text, and makes you fill a google captcha. It also says it uses AI, but from what I can tell changes nothing in the text.

    https://www.plagiarism-remover.com/

    Is there a use they may have in making you fill google captchas on their own site? I apologize if this is slightly off topic for this reddit, just thought I would ask if there is something shady going on from a tech perspective with the page itself.

    submitted by /u/koji_nakamura
    [link] [comments]

    Newby

    Posted: 02 Nov 2020 07:37 PM PST

    Hey I'm teaching my self swift through a course on Udemy and I understand everything that I'm learning I just don't know how to use it for myself or by myself. Does anyone have any tips or any idea of what I'm doing wrong and what I could be doing to help me grasp the material for personal use?

    submitted by /u/acethewise
    [link] [comments]

    Need to Understand Operator Overloading in C#

    Posted: 02 Nov 2020 09:54 PM PST

    While studying Polymorphism in C#, I am finding it difficult to understand operator overloading. Can someone help me understand what is it and why we used it?

    Thanks!

    submitted by /u/SandyCoder
    [link] [comments]

    [PAID] Looking for Programmers (VR mech game IRON REBELLION)

    Posted: 02 Nov 2020 11:36 AM PST

    We are Black Beach Studio

    And we are looking to bring onboard a part-time or full-time generalist programmer to work remotely with a passionate indie studio.

    What we do

    Iron Rebellion is on a mission to bring virtual mech games to the front stage of VR shooters and combat games. We are currently developing the most engaging and immersive mech game world has ever seen. Steam Demo here

    What we're looking for

    • Strong programming background and C# knowledge.
    • Ability to quickly build internal tools, and prototypes to aid the exploration of game mechanics, modes, and core gameplay loops.
    • Develop robust VR interactions such as buttons, levers and other various hand controls.
    • Have a prior background with VR interaction.
    • Good understanding of how to maintain systems and keep them organized and optimized for frame rate and ability to debug.
    • Bonus if you have Independently launched games.
    • Extra bonus if you have an understanding of networking.

    If you would like to join the team!

    submitted by /u/justinspice
    [link] [comments]

    I wrote unit tests, how should I be using them when refactoring/bug fixes.

    Posted: 02 Nov 2020 05:12 PM PST

    Rewriting code that is extremely slow and has an infinite loop. (No comments doesn't help)

    So I have the luxury of starting from scratch, and I wrote a (bunch of) unit tests.

    Will I be waiting until my program "works" to run unit tests? Or will there be reasons to use sooner? Link's to wikipedia also appreciated

    submitted by /u/icandoMATHs
    [link] [comments]

    Do you actively post content on LinkedIn?

    Posted: 02 Nov 2020 04:38 PM PST

    If so, what do you guys post?

    submitted by /u/codingXXX
    [link] [comments]

    Can i write a software on Kindle ebook reader?

    Posted: 02 Nov 2020 04:18 AM PST

    Hello guys,

    i am using kindle paperwhite and i was wondering if its possible to write a software that takes all the parts of my books that i highlighted and pastes in a document (possibly with some details about the book next to it). I think it would be pretty cool bc i always highlight my favorite parts and i really like looking up those short sections after i finish the book. I dont think its possible but a guy can dream.

    submitted by /u/ShiverTimbers
    [link] [comments]

    How do you debug (purposely) infinite loops?

    Posted: 02 Nov 2020 04:02 PM PST

    Working on 2 apps that both have an infinite loop, 1 is essentially a timer, the other is a simple game.

    Logging/console of any sort kinda sucks since it could be 100's of messages to weed through to find the issue. Currently what I'm doing.

    Any other suggestions? 1 is in Python the other in JS, so many options are available, but I'm not seeing a good one. Especially when timing matters, any pause will break the code.

    submitted by /u/VirtualLife76
    [link] [comments]

    Need advice on how to get a programming job

    Posted: 02 Nov 2020 03:45 PM PST

    Hello,

    I was studying electrical engineering for 2 years in a highly ranked university in my country. It took me 1 year just to get accepted to it. Then certain life events led me to be a very bad student, eventually causing me to drop off last year. I wasted all the money I had, and too many years of my life there in the academy.

    Then I had to find a job and I did, but it was not related to computers. and I was fired because of COVID-19. Now I'm on welfare. I do love the field of CS and programming and computers and in general, cyber and so on. I wanted to know what can I do if I want to get a job in this field if I do not have a degree? Online courses on Coursera, Udemy.. etc? But then I have no idea how do interviews work. What kind of questions. Any place prepares you for interviews in this field? Anything that teaches you specific things at a good level enough to be accepted to a job in this field? For example I took Coursera Android Development but I just don't feel I'm good enough to go to an interview and do good there (Of course it doesn't have to be Android development, it was only an example for something I did)

    Thanks

    submitted by /u/MisterJellyLegs
    [link] [comments]

    Printing ID Cards from a Zebra Printer through a Web Application

    Posted: 02 Nov 2020 10:53 AM PST

    Background: I'm familiar with writing PHP web applications and have been tasked with writing an application which automatically prints ID cards based on form information, which is then stored in a database. The form/database aspect is no problem, but I am not sure how to go about communicating with the Zebra printer to print and format the ID card based on the information entered.

    Is anyone familiar with this? I have done applications which print PDFs automatically on known network printers and this is similar, but an ID card printer adds another level of complexity. I have looked into the Java SDK for Zebra printers but I am not very familiar with Java SDKs and it seems like overkill. It would be much easier if I were able to just organize the form data with PHP and send it directly to the printer. Maybe a web application is not the correct route and a desktop app would make more sense? Any advice is appreciated.

    submitted by /u/yungH0bbit
    [link] [comments]

    How to write a jump rope counter for the smart phone camera?

    Posted: 02 Nov 2020 02:04 PM PST

    Hi,
    I want to ask for general advice on how to make a jump rope counter. I know there are some products out there, utilizing motion sensors in your phone/watch.
    But how do I recognize the jumping motion with the camera? Ideally the app turns on your front camera, calibrates a few jumps, then shows a counter as you jump in front of the phone. I had a short experience with TeachableMachine some time ago. And from what I remember it's fine for static images, but not suitable for motion detection.
    My go to language is JS, I would like to make a web app for private use. Don't mind learning other languages or make a phone app though.

    submitted by /u/MinorDelight
    [link] [comments]

    Programm that blurrs certain words or things while you are on a website

    Posted: 02 Nov 2020 02:00 PM PST

    Hey guys, I am relatively new to programming, I have some experience with c++ and python from studying physics and I have been wondering the following:

    Can I write a programm that I would activate while I am on youtube that blurrs out comments?

    I know you can disable comments on your own videos but I lately encountered the problem that I waste so much time reading youtube comments and lose all my hope for humanity reading them.

    So I thougt maybe I could disable comments on all videos and make a cool project out of it.

    So the main question: Is it possible? If so is there a library or something that lets my code "see" the screen?

    submitted by /u/sklckdwn
    [link] [comments]

    What do I need to learn before I can learn software engineering?

    Posted: 02 Nov 2020 07:49 AM PST

    Making computer simulations and all of those thing sound nice. so what is required to know before starting software engineering?

    submitted by /u/alon55555
    [link] [comments]

    Question on Twitter Apps/Bots

    Posted: 02 Nov 2020 01:13 PM PST

    Solved

    I've been learning Python so I decided to try my hand at creating a Twitter bot. I applied for and was accepted as a Twitter developer under my long-running personal Twitter account. The idea behind my app is to scrape some data from my state's (US) official website periodically and tweet it out programmatically using a Twitter/Python library for ease.

    What I can't figure out is how to tweet from an account other than the one I started my developer account with (my personal account). I've created another account that I'd like to use to actually send the tweets but I haven't figured out how to have my app tweet from that account. Do I need to apply as a developer under that account too? Just seems a little odd since I can create many apps in my developer account, you would think that someone might want to Tweet from different accounts from their various apps. Am I missing something?

    submitted by /u/anh86
    [link] [comments]

    Is the CS Degree or a Bachelors degree in general, worth it?

    Posted: 02 Nov 2020 12:22 PM PST

    (Posting on multiple subs)

    I'm suppose to start my BS CS degree next week (It will take about 2 ish years to complete it in total). I'm 23, I work full time, and I'm fully on my own. I am suppose to also do the program full time and I'm taking out some federal loans to help cover the degree costs. I currently only hold an associates degree and I've been self teaching software development for the past few months.

    I know the decision ultimately up to me - however, I am so conflicted. Is this worth it for me to do this degree and the loans, or should I just continue to self learn? I want to work in the tech industry as a software engineer/developer.

    I'm so worried about making the wrong decision. Both sides make good arguments (self taught versus boot camps versus degrees) and I just want to create stability for my self and future career.

    submitted by /u/yogacoder1
    [link] [comments]

    Bug with abstract generic class in C++

    Posted: 02 Nov 2020 12:20 PM PST

    Hello guys, I have a task to write generic abstract class List which allows storage arbitrary number of arbitrary elements (of the same type) in C++. The size of list is not limited.

    I've implement the methods.

    And now I need to implement class ArrayList from the class List and I need to implement all of the abstract methods (I must use C++ array, using vector, deque, lists is not allowed)

    I don't know what is wrong with my code because in main I get infinite loop and it just prints random numbers and zeros.

    Here is the code:

    #include <iostream> template <typename Type> class List { public: List() {} virtual ~List() {} virtual int number_of_elements() = 0; virtual Type current_element() = 0; virtual bool previous() = 0; virtual bool next() = 0; virtual void head() = 0; virtual void tail() = 0; virtual void remove() = 0; virtual void insertBefore(const Type &el) = 0; virtual void insertAfter(const Type &el) = 0; }; template <typename Type> class ArrayList : public List<Type> { protected: int capacity, size, current_element_index; Type *list; public: explicit ArrayList(int max_capacity = 50) : capacity(max_capacity), size(0), current_element_index(0), list(nullptr) { list = new Type[capacity]; } ~ArrayList() { delete[] list; list = nullptr; capacity = size = current_element_index = 0; } int number_of_elements() override { return size; } Type current_element() override { return list[current_element_index]; } bool previous() override; bool next() override; void head() override { current_element_index = 0; } void tail() override { current_element_index = size - 1; } void remove() override; void insertBefore (const Type &el) override; void insertAfter(const Type &el) override; }; template <typename Type> bool ArrayList<Type>::previous() { if(current_element_index == 0) return false; else { current_element_index--; return true; } } template <typename Type> bool ArrayList<Type>::next() { if(current_element_index == size - 1) return false; else { current_element_index++; return true; } } template <typename Type> void ArrayList<Type>::remove() { for(int i = 0; i < size; i++) if(i == current_element_index) { if(current_element_index == size - 1) current_element_index--; for(int j = i; j < size - 1; j++) list[j] = list[j + 1]; size--; break; } } template <typename Type> void ArrayList<Type>::insertBefore(const Type &el) { if(size == 0) { list[current_element_index++] = el; size++; } else { for(int i = 0; i < size; i++) if(i == current_element_index) { for(int j = size; j >= i; j--) list[j] = list[j - 1]; list[i] = el; current_element_index++; size++; break; } } } template <typename Type> void ArrayList<Type>::insertAfter(const Type &el) { if(size == 0) { list[current_element_index++] = el; size++; } else { for(int i = 0; i < size; i++) if(i == current_element_index + 1) { for(int j = size; j >= i; j--) list[j] = list[j - 1]; list[i] = el; size++; break; } } } int main() { List<int> *l; l = new ArrayList<int>; for(int i(0); i <= 5; i++) l->insertAfter(i); do { std::cout << l->current_element() << " "; } while(l->next()); delete l; return 0; } 

    Can someone tell me what is wrong with my code and how to fix it? Thank you in advance.

    submitted by /u/temp000321
    [link] [comments]

    Is a timezone attribute redundant in object oriented design?

    Posted: 02 Nov 2020 11:41 AM PST

    is putting a class member called timezone redundant in a data model which has other datetime fields?

    There are other classes with purchase date and booking date on them.

    The reason for a new field called timezone was to determine location and if the behaviour of the data model should change if it is in a different timezone

    Is that bad practice because language like rails can synchronize datetime without having to looking up an explicit class?

    submitted by /u/Bulbasaur2015
    [link] [comments]

    How much Python do I need to know in order to get a programming job?

    Posted: 02 Nov 2020 07:40 AM PST

    Hello, I have just started to learn python with this video. Are the concepts taught in 'beginners' tutorials enough to land a job? What is the general yardstick used to determine if someone has the sufficient programming skills required for a programming job? Thank you.

    submitted by /u/Sayonara-Life
    [link] [comments]

    Anyone change careers in their 30s?

    Posted: 02 Nov 2020 07:40 AM PST

    I'm really contemplating changing career paths. I got an associate's degree in EET in 2017. So far my experience is in electronics/maintenance technician roles. This consists of a lot less actual electronics than I anticipated. I'm not fulfilled or mentally stimulated in my job most days. I have been giving some serious thought to going into either networking or programming. Both are interesting to me and I have a basic understanding of them, but mostly because there is a better job market where I'm from and also the possibility of working remotely in the future appeals to me.

    Just wondering if anyone else has found themselves in this position.

    submitted by /u/hungovercaveman
    [link] [comments]

    python online uploading

    Posted: 02 Nov 2020 09:50 AM PST

    so, I've been searching for 45 mins for a onine python thgie that lets me uplaod so i can open .mp3's or .mp4's (mostly mp3's) Becuase im plaaning to make a yt video with python, some one help me or im GONNNA GO INSAAAAAAAAAAAAA- server: richmail was kicked for screaming

    submitted by /u/richmailYT
    [link] [comments]

    Why does this random number generator generate the same first number?

    Posted: 02 Nov 2020 08:31 AM PST

    // Online C compiler to run C program online

    #include <stdio.h>

    #include <time.h>

    #include <time.h>

    #include <math.h>

    #include <stdlib.h>

    int main() {

    int N = 5;

    double array[N];

    int lower = 280, upper = 420, i;

    double range = upper - lower;

    double div = RAND_MAX / range;

    double value;

    srand(time(NULL));

    for (i=0; i<N; i+=1) {

    value = lower + (rand()/div);

    array[i] = value;

    printf("\n%.2lf", array[i]);

    }

    return 0;

    }

    submitted by /u/robsseventhaccount
    [link] [comments]

    [Android - Java] Looking for explanation why do some function calls work and some don't

    Posted: 02 Nov 2020 08:14 AM PST

    Hello everyone,

    I've been given a task of recreating an Android app that connects to a smart watch and transfers data to a database based on the available SDK. I'm a bit confused about the function calls because it appears the same format of function call sometimes works and sometimes it doesn't. As I'm not as experienced in Android programming, any feedback would be greatly appreciated.

    For instance,

    This function works fine,

    YCBTClient.healthHistoryData(0x0506, new BleDataResponse() {@SuppressLint("SetTextI18n")@Overridepublic void onDataResponse(int i, float v, HashMap hashMap) {if (hashMap != null) {ArrayList<Character> data = (ArrayList<Character>) hashMap.get("data");long heartRateValue = getKeyValue(data, "heartValue");//Temp int valuelong timeStamp = getKeyValue(data, "heartStartTime");syncHisHr();heartRate.setText("Heart rate: " + Long.toString(heartRateValue) + ", time: " + String.valueOf(timeStamp));}}});

    defined in the SDK as

    /**

    dataType (step 0x0502,sleep 0x0504,HR,0x0506, BP 0x0508, Blood oxygen/HRV/CVRR and Temp 0x0509)

    dataResponse

    */

    public static void healthHistoryData(int dataType, BleDataResponse dataResponse)

    but something like this isn't accessed

    YCBTClient.settingHandWear( 0x00, new BleDataResponse() {@Overridepublic void onDataResponse(int i, float v, HashMap hashMap) {Log.e("device", "left-hand");}});

    eventhough the SDK user guide defines the function as

    /***

    * Setting of Left and Right hand

    * @param leftOrRight 0x00: Left hand 0x01: Right hand

    * @param dataResponse

    */

    public static void settingHandWear(int leftOrRight, BleDataResponse dataResponse)

    Edit:
    I just ran through the code in debugger using the Force Step Into feature in Android Studio and the code is executed correctly. I'm truly baffled at this point as to what is happening.

    submitted by /u/merahxes
    [link] [comments]

    No comments:

    Post a Comment