• Breaking News

    Thursday, January 14, 2021

    Music or No music while coding? Ask Programming

    Music or No music while coding? Ask Programming


    Music or No music while coding?

    Posted: 14 Jan 2021 12:33 PM PST

    As I've noticed, some devs see music as a distraction and absolutely hate it, while some won't write a single line of code without headphones on ears.

    Which type of person are you and could you please elaborate a bit on your reasons behind it?

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

    I've written a program that works in principle, but it will take 600 years in my estimation to complete. Now what?

    Posted: 14 Jan 2021 09:40 PM PST

    Sorry if this is in the wrong place.

    My code is brute forcing through a set of permutations looking for matches. The total number of of permutations is about 1e14. My computer was able to go through about 6 million permutations in about 8 minutes.

    Can I just buy some computer time to run the code for me? How much would this cost?

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

    React or Vanilla JS

    Posted: 14 Jan 2021 06:28 AM PST

    Hi,

    I'm in the process of learning JavaScript and planned to make a website within 3 weeks using vanilla JS. Should I build it in vanilla JS or learn react and use that to build the site, keeping in mind the 3 week deadline? The website is supposed to be slightly complicated.

    Thank you

    submitted by /u/Otherwise-Royal9230
    [link] [comments]

    How to learn web development for my situation

    Posted: 14 Jan 2021 05:21 PM PST

    I was hoping to get some guidance for how I could approach learning web development for my situation. So I have minimal coding experience. I am a small business owner that is almost entirely a website based product. The majority of the website is allowing users to navigate to different pages that display data pulled from our database in tables and graph forms. There is also many filters that allow them to filter through the data to see what they want. We have all the data in a database through Sql. I currently have a website development team.

    However, once the website is completely developed, I would like to have enough coding knowledge to be able to update or create new pages on the website in an appealing way when needed. For my situation, here a few questions:

    1. How should I go about learning web development for this situation?
    2. What resources should I use?
    3. Where do I begin?
    4. Is this possible to learn in about a year if I dedicate anywhere from 4-8 hours a week learning?
    submitted by /u/joshk613
    [link] [comments]

    Should I take this job?

    Posted: 14 Jan 2021 07:39 PM PST

    Hello everyone! I am new to the world of coding and programming. My knowledge about coding is very basic, to put it simply, it's just a "tip of the iceberg" level. I took up a 2 weeks course for Web Design and another 2 weeks course for Web Development. Over the span of that time, I learned basic HTML, CSS, and JavaScript. The courses are also in my local language so I understood the lessons well enough.

    At the end of my course, we were required to create a project that utilizes the lessons taught to us and I pretty much made a nice impression to my instructor. Recently, he contacted me saying he recommended me to someone he knew who's looking for a web developer. So my question is should I take the offer considering I only have a month or so experience in coding? I'm asking this because I'm pretty torn about deciding. I want to take the offer but I'm also afraid. What if I'm not able to deliver what they're asking? What if I mess the job? I don't want to hurt my instructor's reputation because he's the one who made a recommendation.

    I'm sorry for the long post and advance thank you for all the answers.

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

    Is there a script to mass-unsend instagram DMs?

    Posted: 14 Jan 2021 07:26 PM PST

    Is there a script to mass-unsend instagram DMs?

    Not delete, but unsend. Found a few which are old and don't work with updated versions of IG.

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

    How would I go about creating a character stat system (as in any rpg) in Javascript? And how do I store the data?

    Posted: 14 Jan 2021 07:22 PM PST

    So far I have a variable for each stat with a value that is displayed using .innerHTML, in order for me to style it later with css. A button would be set to add +1 increment to the value each time you press it. What's the best way to go about storing this information? I know that I could either do this with a database/server or with local host but I'm not sure which is better or how to go about doing either.

    submitted by /u/66_longjon_99
    [link] [comments]

    Automated script to fill out input fields on website on a daily basis?

    Posted: 14 Jan 2021 07:13 PM PST

    Hey all, my apt complex recently changed over to using a service that requires me to log my friends' license plate numbers and car makes/models into a site once every 24 hours assuming they are staying over. What's the best way to automate this, and is there a way to create a script so that it runs in the background once every 24 hours without having to manually run it?

    I've looked a bit at Selenium and I have a small amount of Java/Python coding experience. This just seemed like a fun little project to work on.

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

    Best way to make a devlog/binnacle of a project that will lead my portfolio?

    Posted: 14 Jan 2021 02:50 PM PST

    Lately, I got a bit tired of hearing people asking myself for my developer portfolio, so I had to put hands on and I just started developing a bunch of apps that interacts with each other. My project core is a Spring server (Java 8) but it may include Thymeleaf, Python, and even a Android app that consumes all this back-end if I get enough time and I feel like it. Clearly, the purpose is to show what I can do, maybe implementing some interesting ideas.... you know.

    The point why I got here is because I´d like to not only write the code and git-push it, but also make/keep a record of all the stuff I do every time I sit on my computer to work on this.

    I don't want to make a "how to" of my project, but I'll maybe explain why I took some decisions while designing or developing a feature, keep trace of my backlog/roadmap, make evaluations of expectations-reality of a feature maybe, tell some problems I found, say what I had to learn at what point, etc.

    I don't know if an IT recruiter will spend many time reading this kind of stuff, but I feel it adds aggregate values to my project, and it can even be useful for someone else or educational purposes.

    So here comes the concrete questions:

    • Do you like my idea? Do you think it worth it?
    • How would you do this?
      • Would you use any social media for this purpose? Or maybe other kind of websites like Blogger?
      • I feel that making a video-log is a bit overkill for my purpose, but would you prefer videos over text stuff?
    • Any suggestion you are chewing in the mouth and you would like to say?
    submitted by /u/thechexmo
    [link] [comments]

    Hey guys I need help

    Posted: 14 Jan 2021 05:20 PM PST

    Is there a program that figures out which files a app is using? An example is I play ark but I think it is loading other maps for some reason but I cant check, and Im not good enough to make my own program

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

    Understanding the reason for segmentation fault in the code snippet below

    Posted: 14 Jan 2021 05:10 PM PST

    I am trying to find out the longest peak length in an array.

    Example:

    Array: [1, 2, 3, 2, 1, 1]

    Peak Length: 5 *(1,2,3,2,1)*

    I have used the following code to find out the longest peak in an array:

    int longestPeak = 0; int idx = 1; 

    //In the while loop below, if I change the condition to (idx < (array.size() - 1)), it throws a segmentation fault'

    while (idx < int(array.size() - 1)){` `bool isPeak = array[idx] > array[idx - 1] and array[idx] > array[idx + 1];` `if (!isPeak){` `idx += 1;` `continue;` `}` `int leftIdx = idx - 2;` `while (leftIdx >= 0 and array[leftIdx] < array[leftIdx + 1])` `leftIdx -= 1;` `int rightIdx = idx + 2;` `while (rightIdx < array.size() and array[rightIdx] < array[rightIdx - 1])` `rightIdx += 1;` `int currentPeak = rightIdx - leftIdx - 1;` `longestPeak = max(currentPeak, longestPeak);` `idx = rightIdx;` `}` `return longestPeak;`} 

    **In the first while loop below, if I change the condition to (idx < (array.size() - 1)), it throws a segmentation fault.*\*

    Please help me understand the reason behind this issue.

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

    Can I "build" a VS solution on Linux or Windows without VisualStudio

    Posted: 14 Jan 2021 11:07 AM PST

    Hypothetically if you have a .sln from from a project but don't have Visual Studio and want to just build the project as-is, can it be done?

    The project is in C and is supposed to target Windows x64.

    Update:

    Installed MSbuild tools from the 2019 installer Was able to build after I figured how to target the correct project, configuration and platform.

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

    CSS and SCSS help

    Posted: 14 Jan 2021 03:56 PM PST

    Hello I'm fairly new to coding in CSS and have recently come upon SCSS when looking for a creative way to create my webpage title. I currently have a CSS file that contains my styling and would like to make my title like this example I found. I dont know how to incorporate that code example. Is there anyway I can incorporate it into my existing CSS code or do I need to do something else? I understand how to add the HTML code but not the styling part.

    For reference this is my CSS code:

    html, body { height: 100%; } body { margin: 0; font: 16px Sans-Serif; display: flex; flex-direction: column; } h1 { margin: 0 0 20px 0; } footer { background: #161616; color: white; line-height: 50px; padding: 0 20px; } .top-container { background: #0f0c29; /* fallback for old browsers */ background-image: url("blueGeo_1.png"); text-align: center; } /*This customizes the container that holds the navigation buttons*/ .navBar{ background-color: #0B0C10; } #navButtons { overflow: hidden; background-color: #0B0C10; /*#333;*/ } #navButtons a { float: left; display: block; color: #818181; border: 2px solid #45A29E; text-align: center; padding: 14px 16px; text-decoration: none; font-family: couriernew; font-size: 17px; } #navButtons a:hover { background-color: #ff4d4d; /*#fbff85;*/ color: black; } #navButtons a.active { background-color: #1F2833; border: 2px solid #66FCF1; color: white; } .sticky{ position: fixed; top: 0; width: 100%; } .sticky + .content { padding-top: 100px; } .content { flex: 1 0 auto; /* Prevent Chrome, Opera, and Safari from letting these items shrink to smaller than their content's default minimum size. */ padding: 20px; } .footer { flex-shrink: 0; /* Prevent Chrome, Opera, and Safari from letting these items shrink to smaller than their content's default minimum size. */ padding: 20px; } 
    submitted by /u/Joe_SU
    [link] [comments]

    Timestamp Verification

    Posted: 14 Jan 2021 02:52 PM PST

    Hello. I am coding a decentralized messaging app and wanted to have posts expire after a certain period of time. To implement this, I wanted to have each post include a publicly-accessible unpredictable random number for the purposes of verifying that the post was created after a certain time. (This number would be digitally signed to prevent alteration). I was thinking something like an API for the last block mined for bitcoin or another cryptocurrency would be perfect. However, there are probably better ways of doing this. Does anyone have any ideas on this or an alternative method I could use?

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

    Miscellaneous mouse questions

    Posted: 14 Jan 2021 02:24 PM PST

    This question is on Linux. As I understand (please correct me) every time you move the mouse,

    1. Hardware interrupt occurs
    2. Switch to kernel space, interrupt dispatched to device driver
    3. Device driver notifies listeners of mouse events (which is just X)
    4. Return from interrupt

    If you continuously move the mouse, interrupts are continuously generated (at which rate, idk). The reason we're able to get smooth mouse movements without noticeable load increase is because of the incredible clock frequency the CPU operates at.

    My questions:

    • Correct the above if it's wrong
    • What rate are interrupts generated when continuously moving the mouse? Where could I find this information?
    • Was there a time when moving the mouse imposed a noticeable load on the machine? For instance if you ran a computation it would run slower (wall time) if you kept moving the mouse?
    submitted by /u/extremeaxe5
    [link] [comments]

    What advice would I give for new beginners in software development?

    Posted: 14 Jan 2021 01:48 PM PST

    1. Learn by repeating it:From the very beginning, I kept on redoing the work over and over again. Till I could explain it to others in a way they could understand. The reason why, it's because, by the time I get to the very end of a book, I would forget how functions or simple loops work. That did happen to me at first, I was not able to recall the knowledge. So I had to go back and reread the topic again. Use your time wisely and don't rush yourself. Keep covering the same topic multiple times till you get sick of it and reuse it in your next topic.
    2. Successful developers learned their fundamentals:I have worked with a number of professionals and to this day, I still encounter developers that make mistakes because of not having a good understanding of fundamentals. I strongly encourage beginners from the very beginning, try to spend as much time as you need to understand the foundation as it will help you in the long term of your career.
    3. Practice by doing walkthroughs:The idea behind walkthroughs is for you to read some piece of code and identify the exacted output. Repeating this process weekly will help you to speed up your learning curve plus it will pinpoint what you still need to work on. For this part, I would recommend printing walkthroughs on a piece of paper and write the new value for each variable. If you get the same result as it was expected, that means you have mastered the material and you should proceed to the next material.

    These are my top 3 advice for new beginners in software development. This is something I was doing it and it helped me to become a software developer much faster with much fewer knowledge gaps. I hope this can help you to speed up your learning process or it gives you an idea of what you could do instead.

    Subscribe to my youtube channel DevPool as my goal is to help beginners and juniors to succeed in the tech industry.

    https://www.youtube.com/channel/UC03vw5F2isFkbJhyEZU5bvg

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

    Help With virtual studio code

    Posted: 14 Jan 2021 09:24 AM PST

    Hi guys,

    Im new using virtual studio code+gcc and I am not able to use my program after compiling with debugging it just dont finish debugging

    I already tried to install everything again but nothing...

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

    Just finished a junior web development course, what should I do?

    Posted: 14 Jan 2021 03:20 AM PST

    So I finished a java junior web development course (Java, Spring, MySQL, Js) and I am currently looking for a job, so what should I do in the meantime, what should I be writing and what sould I be learning, I was thinking about learning nonsql databases but I really don't know. And what should I put on github for the hr to see?

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

    How do you launch apps?

    Posted: 14 Jan 2021 12:33 PM PST

    I've seen different approaches on devs launching apps: from the use of terminal to built-in search in the Start menu or launching from the desktop icons / pinned stuff in the taskbar.

    I'm on Windows and lately I've been using a tool called Keypirinha.

    What are your methods of launching apps?

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

    What fullstack framework to choose, HELP

    Posted: 14 Jan 2021 12:10 PM PST

    Alright, im going to be quick about this. im a 3rd year computer sience bachelor, they teach object oriented and embedded programming, but not web developing. right now i have to create a dynamic website for a "customer" between now and sunday night at 19:00 ( CET ). i have some experience with HTML/CSS and just learned how to create and talk to a mySQL database with php. for local hosting and testing im using WAMP. now i've heard here and there that its really easy to get into a framework, but can someone please help me with chosing one? ive heard of django, vue.js and Angular but have no clue which one is easiest to pick up and program with. can someone help me along the way?

    Thanks in advance guys!

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

    Seeking advice for development of cloud server for desktop app

    Posted: 14 Jan 2021 12:07 PM PST

    Hi all. I'm a dev by trade but don't have much experience with servers or the hardware and security elements involved. Despite this I am starting work on a project requiring a server that clients will connect to to register and log in, store user settings etc.

    Basically I want to avoid writing this from scratch if possible and recently learned about the existence of low-code solutions or similar. I see these as a potentially good way to get a good head start on this project and was wondering if anyone here has got any good experience with any of these types of solutions.

    These are the main features I am looking for:

    • host public REST APIs
    • communicate with external web services
    • host custom databases
    • run custom code to implement business logic and glue all of the above together

    Any advice is welcome! :)

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

    Difference between CTF style competition and ICPC?

    Posted: 14 Jan 2021 08:19 AM PST

    I have a very basic understanding of programming but I'm trying to change that. I've been listening to some podcasts and in this one episode, narrator is interviewing a 4 time DEFCON CTF winner and the way he makes it sound is like wining that event basically means you are the best team of "hackers" around that year.

    I'm interested in how much CTF style competitions differ from "standard" competitive programming like ICPC or Code Jam?

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

    Finding passion for programming as time goes on?

    Posted: 14 Jan 2021 11:18 AM PST

    I've come to the realization that there's a chance I have "fallen in love with the idea of the craft and not the craft itself". The possibility that it's merely the idea of being a competent programmer/the idea of the beautiful things programming can create that brings joy, moreso than the hours spent programming itself. That said, I'm in University, have only been programming for little over a year, and know few pursuits in life are going to be bliss all the way through. This makes me wonder ー have you found yourselves rather indifferent and not filled with excitement in your early/starting years programming, but found yourselves authentically passionate with the work itself later on, perhaps as your skills progressed?

    I'd like to think that even if I find myself procrastinating or, simply put, not passionate with the work itself right now, there is still possibility I will become passionate about it later on.

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

    Processing Data from PDF?

    Posted: 14 Jan 2021 10:45 AM PST

    I'm trying to find a good library to process data from a PDF. I'm fairly language agnostic. Strongest in JS, Python and PHP, with reasonable aptitude in C/C++, Java, Scheme, Prolog and Perl. Like, what would libraries in any language would best reveal the underlying data structures in a PDF?

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

    No comments:

    Post a Comment