• Breaking News

    Friday, January 28, 2022

    Are there telltale signs (however subtle) of code that has been written by an AI rather than a human? Ask Programming

    Are there telltale signs (however subtle) of code that has been written by an AI rather than a human? Ask Programming


    Are there telltale signs (however subtle) of code that has been written by an AI rather than a human?

    Posted: 28 Jan 2022 07:21 AM PST

    I'm not a coder, but I would imagine that AI-written code would tend to have certain structures that marked it as different from human code.

    If you were tasked with evaluating whether a block of code was written by an AI or a human, what would you look for?

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

    Is there a Package on Ubuntu that can allow the user to compile code for macs?

    Posted: 28 Jan 2022 05:10 AM PST

    Does anyone know any compilers that can cross-compile source code for macs and Linux in Ubuntu?

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

    Python project in PyCharm. I want to make it with entries and utilize a GUI. How do I do this?

    Posted: 28 Jan 2022 03:38 AM PST

    The project is dependent on other repositories which also depend on other repositories.

    I want to be able to click an exe file. Then import what I need, and see a command prompt or other for output text box in case of errors.

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

    Need Help With My weather application

    Posted: 28 Jan 2022 08:38 AM PST

    Hi, I would really appreciate any help or guidance with my project.. I am creating a weather application that takes weather data from an API, stores the weather data in a database, sorts the weather into the best weather in a region and then displays this information on a webpage.

    I am initially thinking to use Java to create the API call and then store the information in a MySQL database?

    How would I go about doing this?

    I have also thought about using Nodejs for this application.

    How would you design it and what languages would you use?

    Thanks for any help in advance.

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

    How should I deal with rounding errors during testing?

    Posted: 28 Jan 2022 04:47 AM PST

    EDIT: This is in JavaScript

    I've got a function that determines the start and end angles of an arc. I give it a centre angle, and a width of the arc. The start is centerAngle - width/2, the end is centerAngle + width/2. If the centerAngle is 0, then startAngle is a negative number (0 - (width/2)). To fix this, I add 2 Rad (makes it a positive), then modulo 2 Rad (giving me the correct angle, but positive):

    let arcStart = ((2 * Math.PI) + (centerArc - halfWidth)) % (2 * Math.PI);

    I would expect ((2 * Math.PI) + (1.25 * Math.PI)) % (2 * Math.PI) to be the same as (1.25 * Math.PI), but

    If you hit F12 and plug those in, you'll see that:

    ((2 * Math.PI) + (1.25 * Math.PI)) % (2 * Math.PI) = 3.9269908169872423

    and

    (1.25 * Math.PI) = 3.9269908169872414

    So my test fails. I understand that it's a rounding error, but what's the consensus on how it should be handled (to pass the test)?

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

    python constants and loops, performance

    Posted: 28 Jan 2022 01:00 AM PST

    Basically i have a loop where i calculate a term with variables x and y. x and y never change during runtime but python doesnt know that ( i think? ).

    Does python fetch these variables from main memory every iteration? Is there some way to avoid that, i.e. declare x and y as constants? Does this negatively impact performance?

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

    Language + Framework Advice

    Posted: 28 Jan 2022 08:20 AM PST

    I need to develop a desktop app that will mainly run on windows, but must be multi-platform by design, so with a single code stack.

    The app needs to be compiled or semi-compiled, at least with some level of obfuscation.

    The UI should be modern and must be able to support interactive 3d rendering.

    The programming language should be broadly supported and with a big community.

    Given these requirements, do you think that the combo Java + JavaFX + CSS would fit well my use case? Or is there a better way?

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

    Differences in programming languages

    Posted: 28 Jan 2022 04:17 AM PST

    This may be an very silly question but what are the reak difference between languages like Java, Python or C?

    I've learned a bit Java in College (not that much just a bit about Classes and Object etc.) and when i'm now looking at Python i could use the same Code that i've wrote in Java to run the Programm in Python (of course with adapted syntax). The logic behind it stays the same. I know there are some difference in compiling and Interpreter but thats something i dont need to care that much as an Software Devolper. So what are the real difference between an Java, Python or C developer?

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

    Few Questions About Self-teaching Python

    Posted: 28 Jan 2022 07:23 AM PST

    In short I want to start learning Python, but have a few questions to make the learning process more efficient.

    1. I've read that the best way to learn is practice - working on basic projects, but I can't start coding with zero theorethical knowledge, right? So how much theory should I learn before working on practical projects? How to go about it?

    2. How much hours each day should I dedicate for learning? I mean our brain can only absorb that much information so how many hours should I spend daily to not burn out and to be efficient? 7? 5? 3?

    3. Similar to the first question - what is a good balance between theory and practice?

    Thanks in advance

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

    How to deal with angles between coordinates in python ?

    Posted: 28 Jan 2022 07:07 AM PST

    So Im developing a new cheat to a game but Im kind of stuck on this, my code can already identify every element on the screen and its relevant attributes but now I need to get the angle relation between those objects and the player.

    https://imgur.com/fsLc4eM

    I want to get the angle to be between the player(red dots) positive X(red line) and smallest distance possible to the objects(black lines)

    Can someone help me ? Thanks.

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

    How to pass value from controller to ascx?

    Posted: 28 Jan 2022 03:19 AM PST

    I am building this widget in Sitefinity CMS. This is my controller

    namespace SitefinityWebApp.Api.Controllers { public class ATMBranchLocatorController : ApiController { [DefaultValue("Enter Title")] [DisplayName("Branch & ATM")] public string Title { get; set; } [DefaultValue("Enter description")] [DisplayName("Accessing the ATM / Branch features easy")] public string Paragraph { get; set; } public ActionResult Index() { var model = new ucATMLocator(); model.Title = this.Title; model.Paragraph = this.Paragraph; return View(model); } } } 

    And I want to pass title and paragraph Dynamically, when they are entered on the backend, to my ascx file

    <div class="atmsearch-form"> <h4><%= Title %></h4> <p><%= Paragraph %></p> </div> 

    I am getting a "The name 'View' does not exist in the current context" error Do I have to pass a asp:TextBox in my ascx file? And how can I pass it from my api controller to my ascx file Dynamically.

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

    Need a mentor

    Posted: 28 Jan 2022 06:55 AM PST

    Hello im new to programming and i really need a mentor for my projects. I get lost especially on loops sometimes.

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

    Masters After Working?

    Posted: 27 Jan 2022 01:20 PM PST

    I've heard this mentioned at times; However I would love to confirm this with someone who actually went this path.

    Essentially you work in the field for 5 years after graduation, then leave and come back to do a masters at a university. That's the high level overview. However if anyone has anything similar to this situation or knows any details, how does this actually work?

    Do you just plop by a university and hand them your resume of work and previous GPA? Curious to hear any stories or answers.

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

    Files not recognising changes after Changing to new Mac?

    Posted: 28 Jan 2022 05:42 AM PST

    Hey, I've recently updated to a new mac (using the M1 Max processor). I'm running into an issue where programs don't seem to recognise changes in the same way they used to.

    Basically I make a change to a file, and then in SourceTree it will not recognise the change unless I either close and re-open the program, or do something like stage/un-stage a file to staging. If I use Git Status through the command line it shows the change immediately.

    Similarly with IntelliJ if I make changes and try to do something like Building/Running the service, it will often not recognise the changes until I do gradle clean.

    A couple of months ago I upgraded to an M1 mac and did not have this issue, if I changed a file SourceTree and IntelliJ would generally just recognise and use the changes immediately. I Do have "Autiomatically Refresh File on Changes" enabled. I've given Full Disk Access to the programs, which helped the issue but it still happens all the time when it used to basically never happened.

    Found it quite hard to google for this issue so hopefully anyone have some idea of what is going on or what I can do to fix it because its a bit annoying.

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

    Hypothetical: What are some ways a sophisticated coder could tell if an opponent was AI vs. human

    Posted: 27 Jan 2022 06:57 PM PST

    This is a scifi scenario, so it doesn't necessarily have to be 100% accurate, at least by today's standards.

    Part of the story involves a main character (coder) finally realizing that the main bad guy is actually an AI rather than another human being. The bad guy obviously has never shown his face, but communicates with subordinates. The coder has access to some intelligence files containing timestamped transcripts of these conversations.

    Would love to hear your thoughts on how our coder hero could figure it out!

    What patterns might be clues to its identity?

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

    what to code when you have no ideas?

    Posted: 28 Jan 2022 04:48 AM PST

    yes i did search 'what to code when bored' but all are either stupid or too easy

    im looking for mediocre projects that have nothing to do with web or data science

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

    For cross-platform apps (Desktop, Web, and Mobile) which version to make first?

    Posted: 28 Jan 2022 01:47 AM PST

    In your opinion, which version of an app is it better to make first? Desktop, Web, or Mobile?

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

    For a mechanical engineer who is interested in becoming a software engineer, what is the best route to take? Masters in CS? Bootcamp? Self Learn?

    Posted: 27 Jan 2022 09:40 AM PST

    Currently close to working two years as a systems engineer and want to get into a mech design position, or maybe start the journey to become a software engineer, given their inflated compensation and WFH opportunities.

    I have minor to intermediate experience with VBA and python.

    What would be the best route? I'm thinking a bootcamp paired with my mech background could help me land a software job and wouldn't take nearly as much time as a masters

    What boot camps do you suggest?

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

    If I know I will never change my ORM, what is the point of making a repository?

    Posted: 27 Jan 2022 09:43 PM PST

    I need help with determining the dominant term (Big O Notation)

    Posted: 27 Jan 2022 03:46 PM PST

    I have the following formula:

    O(1) + O(E/3) * O( (E - 1) / 2) + O(E/3) * O( (E - 1) / 2) * O( log2 V ) + O( V^4 )

    and need to find the dominant term.

    Note that E = V^2

    Thanks for your help in advance

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

    Trouble deciding between a reapplication to medical school and a computer science degree

    Posted: 27 Jan 2022 05:30 PM PST

    Hello, I'm 23 years old, living in the US, and I just graduated with my bachelors in Healthcare Studies. I have already applied to medical school but have had little responses from schools. I was able to get an interview but I got waitlisted. Tbh I'm kind of having doubts about med school: the stress, the debt, not working until I'm 32. And even my parents think it will be too much for me. I'm choosing computer science as a backup since I genuinely enjoy the field and it is in demand. I personally want to get into the automotive industry and help program car features like infotainment and maybe even car performance (ECU, Steering, etc). That said, I also have doubts about CS. Part of me feels like I'm giving up too soon but what's the point of reapplying if I end up deciding not to go into medicine?

    I talked to several people including my advisors who are saying to apply to medical school one more time and then make a decision. The trouble is, I would have to take my MCAT again and I'm not sure if I can get a better score.

    I would much rather get a CS degree since I suck at self-teaching.

    Has anyone here made the decision from medicine to tech and what made you decide? How far in the process were you? Do you have any regrets? Even if you haven't, any advice is welcome!

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

    Help using CSV files in JS?

    Posted: 27 Jan 2022 05:30 PM PST

    I'm trying to import a local CSV into my JS code and turn it into a JavaScript object. I've only worked with data in Python before, and most of the tutorials online seem to be for a user uploading files. I'm just using vanilla JS.

    submitted by /u/FunkyCold-Medina
    [link] [comments]

    Need advice on where to start, any input would be appreciated! (cross posted)

    Posted: 27 Jan 2022 05:23 PM PST

    I'm currently a med student that has toyed with the idea of learning coding/programming for a long time but never actually took any steps on how to pursue it. I've googled/researched for quite a while and found answers to some of my questions but I think a big part of my lack of action is still my lack of clarity and direction which is why I came here in the hopes that you all could answer a few lingering questions I have;

    1. I don't have one specific project in mind but I have a few potential ideas, and don't intend to switch careers into a coding/programming related field. I'd be learning this purely as a hobby with the hope that one day I may be better equipped to solve a problem I encounter in my career as a student/resident/physician. That being said, is it worth it? Personal anecdotes about how learning to code/program came in surprisingly handy either in your career or daily life are more than welcome!
    2. One of the aforementioned ideas is developing a software that can analyze data from CT images, MRIs, X-Rays, EKGs, EEGs or other diagnostic tools to assess for disease risk based on a predetermined collection of data from standardized scans. I know there are multiple variations of this idea out there already but I'm hoping if I know how to approach actually developing it myself I'll be able to find a previously unrecognized way to aid in diagnosis and improve patient outcomes. Its definitely a bit of a pipe dream, but a part of me figures its better to know the required coding/programming and end up not needing to use it than needing it and having to learn later. Apologies for the ramble, but my relevant question is which language is best suited to analyze the kind of data described above? Most places I've read said it doesn't matter much which language you start out with and that Python is a good place to start. But I'd like to know which language is best suited for this specific project I have in mind.
    3. Where should I start? I've always been an independent learner, even through out med school I didn't benefit much from lectures and taught myself almost everything with periodic guidance. So I'd appreciate any advice on free resources I can use to begin learning. Specifically good introductory courses to coding/programming/the language of choice as well as practical exercises/mini projects.
    4. I love tinkering and working with my hands so I'd also appreciate any suggestions on affordable robotics kits/boards/anything else that can help me apply the small bits of knowledge I acquire along the way in a fun/interactive way.

    I apologize for the long post but I figured more information is better than less. I'd genuinely appreciate any advice, input, or guidance you can offer to any part of my post.

    Thank you all in advance!

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

    Start with C++ or Python?

    Posted: 27 Jan 2022 05:07 PM PST

    I have to learn C++ for engineering, but I also have to learn Python for CCNP. Which one would be better to start with?

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

    Mentors.

    Posted: 27 Jan 2022 04:37 PM PST

    How do some of you go about finding mentors? What characteristics and skills do y'all look for? Especially as a beginner.

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

    No comments:

    Post a Comment