• Breaking News

    Wednesday, October 6, 2021

    How to respond to "there's no documentation because it isn't complicated" ? Ask Programming

    How to respond to "there's no documentation because it isn't complicated" ? Ask Programming


    How to respond to "there's no documentation because it isn't complicated" ?

    Posted: 06 Oct 2021 10:40 AM PDT

    My team uses some stupidly complicated Excel workbooks to prepare some data. These workbooks use lots of links and macros.

    I'm trying to automate some of this work with Python and xlwings.

    I asked the guy who built all these Excel workbooks if there's any documentation.....and he said: it's not that complicated (and there's no documentation). This guy just joined a new team.....and will soon stop working on these workbooks entirely.

    I can probably do my work without any documentation.....so I don't really care.

    But should I point out that it's ridiculous to say "there's no documentation because it isn't complicated" ?

    I'm sure these Excel workbooks will fail at some point because no one understands those macros besides him.

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

    How much do job responsibilities deviate from coding interviews?

    Posted: 06 Oct 2021 09:57 PM PDT

    Pytorch Question

    Posted: 06 Oct 2021 09:53 PM PDT

    Is there a way to represent the following without a loop? Mask is a Pytorch tensor of type bool with four dimensions.

    for i in range(mask[0]): mask[:,i,i,:] = False 

    Assume that the 2nd and 3rd dimensions are of equal length.

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

    Somebody please help me with 13.1.3 Block Pyramid 2.0 CODEHS

    Posted: 06 Oct 2021 05:49 PM PDT

    I am legit clueless, and I have been attempting to solve this for almost 4 hours now and this is due in 3 hours. I need help ASAP, please. And if possible, can you help me explain what you did?

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

    Need Help

    Posted: 06 Oct 2021 03:29 PM PDT

    Hello, Ive been working on a personal project/prototype for a little while now and I have recently come to a road block. I have no clue how to code. I was wondering if anyone had any tip or trick about starting and where to start?

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

    Cannot read data from firebase in java

    Posted: 06 Oct 2021 09:02 PM PDT

    Mouseover

    Posted: 06 Oct 2021 02:41 PM PDT

    Hello, I am a student, and I am interested in creating my notes in a stratified fashion.

    Some background: I have problems with reading an online document because the inability to tell where I am, how much I have left, etc. bothers me a lot.

    I tried every way I know of, and the latest thing that is occurring to me is this nesting method I am going to ask about, and whether there's a software out there that can help me do it.

    In short, when you open folders in list format, then click on the arrow next to the one you want, it would show only the contents of that one while maintaining a view of the overall, still. I want something like that for my notes. Instead of looking at a 50 page document when I am studying for finals, what if there was a list of topics, then I can click on one and see subtopics, and then hover over a particular subtopic to read it, and then be able to back up and select another, or so on and so forth.

    If you know of a flowchart program that would allow me to build my notes this way, even if paid, or a way I could do it in word, I tried ScreenTip, but I do not know any html, or any programming to any level that may be useful, but would be willing to spend a few hours if it is a task I can get done in that long. I have exams every month, and they are pretty huge, so your help will contribute to my success.

    Thanks!

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

    Turning RASPBERRY PI 3 into a voice-to-midi device

    Posted: 06 Oct 2021 12:56 PM PDT

    Hello!

    I am very new to programming but I have this idea in my head that I really want to execute

    So I have a raspberry pi 3 and a Mini USB microphone for it. I found this script online:

    https://pypi.org/project/audio-to-midi/

    I basically want to put this on my PI 3 and when I am on the go, coming up with a melody I can just hum it into my PI 3 with the Mini USB Mic connected then it automatically saves it in my SD card, so I can later plug it in my computer and put the midi file into a DAW and use it for music

    Is this possible?

    (This might be the wrong flair, but thanks for any help!)

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

    Question about pip dependencies

    Posted: 06 Oct 2021 08:17 AM PDT

    This is a sorta dumb question and I THINK I know the answer, but I want to know for sure before i screw up a huge project and it's too specific to Google for.

    I am trying to install a pip dependency globally (I'm not using it for a specific project, and activating a venv doesn't make sense in my situation). Some dependencies of this dependency conflicts with other global dependencies I have.

    You see, when I first started a couple months ago, I wasn't using virtual environments because I didn't know better.

    If I overwrite these sub dependencies globally, it won't mess up my ongoing projects that are inside of virtual environments right?

    I'm like 75% sure I just want to be certain.

    And even if I messed up the dependencies in a given project, fixing it would be as simple as making a new venv and installing the dependencies from requirements.txt again right?

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

    Is it possible to live analyse a video stream?

    Posted: 06 Oct 2021 09:17 AM PDT

    Is there a tool or tools you can use to look at a video stream and determine elements of that stream in real time? Thinking specifically about an in browser video stream?

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

    What's the point of mongodb?

    Posted: 06 Oct 2021 03:48 PM PDT

    I'm a SE who's been working with MySQL, Oracle SQL, and Sql Server for a few years. What's the point of mongodb? I went through some examples and couldn't really get why I would want to use this over an RDBMS. The syntax seems a lot less readable (though perhaps easier to generate on the backend of a client SDK), and I'm turned off by the lack of static typing for the tables.

    I'm not opposed to mongodb or other nosql databases, it just doesn't seem to offer anything over RDBMSs at a glance.

    What's the point of MongoDB?

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

    How do you connect react front end with node/express backend ?

    Posted: 06 Oct 2021 05:06 AM PDT

    I have created an app using node , express and mysql . Now i want to learn and write an api for my app and create a react front end . I want to know how do i connect the front end and backend . How do i bundle the files together and do i need to run front end(react app server) and backend(express app server ) on different ports ?

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

    How to validate user input of random combinations of characters from a specific set of pre-determined characters in python

    Posted: 06 Oct 2021 11:21 AM PDT

    To elaborate on my question above,

    Write a program called that continuously prompts the user to input a DNA strand and checks if it is valid. In order for the strand to be valid, it must only be made up of the following characters: 'A', 'T', 'C', and 'G' (in any combination; case insensitive). The program should terminate when the user enters 'q' or 'Q'.

    Example:

    Enter a DNA strand (or 'q' to quit): AATCGCT

    Valid

    Enter a DNA strand (or 'q' to quit): GGCBT

    Invalid

    Enter a DNA strand (or 'q' to quit): aAcGGT

    Valid

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

    Which platform is best for practising competitive coding?? Any suggestions??

    Posted: 06 Oct 2021 10:25 AM PDT

    Making sure network drives are reachable in rsync backup?

    Posted: 06 Oct 2021 05:52 AM PDT

    I have a raspberry pi that is doing a periodic backup (every few min) from a local computer (connected to rpi with usb) to a network drive. Both shares are window samba shares. But I am not sure how to make my system robust.

    I was thinking of just doing an rsync dry run and catching everything and logging it if there are issues. However, I am not sure what happens if there are problems like the network drive not being reachable (maintenance, wifi down etc).

    I have the folders mounted just fine and I can check that with mountpoint in bash but that does not guarantee that the folders are actually reachable. I could ping the IPs but that seems... clunky?

    I actually had a bash script that did this already but it is a mess and I want to rewrite it in Python (+bash for rsync). In that script I just used ping.

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

    Removing \n from the string in C

    Posted: 06 Oct 2021 08:20 AM PDT

    I ran into the need to remove the newline character from the string after input via fgets.The solution I have found is:

    Name[strcspn(Name, "\n")] = 0;

    What does "= 0" means here?

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

    Backdoor for programming languages

    Posted: 06 Oct 2021 05:15 AM PDT

    Can a programming language have a backdoor accessed with assembly?

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

    AttributeError in Python(Quiz Game, importing dictionary)

    Posted: 06 Oct 2021 02:42 AM PDT

    Im making a python quiz game and I have some problem. The questions and answers is imported from a dictionary in another python file. But I run into this error: return correct.strip().lower() == answer.strip().lower() AttributeError: 'list' object has no attribute 'strip' I think I understand that the problem is that strip and lower only can be applied to strings, but I dont know where to put it elsewhere? Or is there an simpler way to do it? All I really want is that the user can print both "2" or "print" and get right.

    from questions import quiz print("------ Welcome to Python Quiz ------") def compare_answer(correct: str, answer: str) -> bool:return correct.strip().lower() == answer.strip().lower() score = 0 for question in quiz: print(quiz[question]['question']) user_answer = input("> ") correct_answer = quiz[question]["answer"] if compare_answer(correct_answer, user_answer): score += 1 print(f"Right!") else: print(f"Wrong, right answer is: {correct_answer}") print(f"You got {score} points of 3 possible!") This is one of the questions from the dictionary quiz = {1: {"question": "Question 1. Which function is used to type out things on the screen?"" \n 1. input \n 2. print \n 3. len","answer": [{"answer": "print", "correct": True}, {"answer": "2", "correct": True}]

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

    No comments:

    Post a Comment