• Breaking News

    Friday, June 12, 2020

    Does anyone else get fatigued from being in "programming flow" for too long? Ask Programming

    Does anyone else get fatigued from being in "programming flow" for too long? Ask Programming


    Does anyone else get fatigued from being in "programming flow" for too long?

    Posted: 12 Jun 2020 01:08 PM PDT

    I'm excited about the project I'm working on, and I'm at a spot where I can work completely flexibly time-wise and really want to get it done. But I seem to have a constant pattern of:

    1. Take 15 minutes to get into flow
    2. work very efficiently for 2-3 hours
    3. crash strongly for 1-2 hours feeling quite dizzy
    4. Repeat 1-3 probably once more for the day, twice if I'm very energetic.

    With non-programming work (or even Data Science work where I don't have to hold software architecture in my head), I could take small breaks in between and use things such as Pomodoro timing (25 min work burst, 5 min rest). But with programming I get completely sucked in until I crash, and it feels really inefficient to interrupt myself every x minutes.

    Not sure if anyone else can relate / have any tips?

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

    Why is docker a thing?

    Posted: 12 Jun 2020 06:42 AM PDT

    I'm genuinely curious here, not trying to ask a loaded question, is just that... I don't really understand why is so widespread, so I'll just go with my particular case:

    I'm on $Big_Corp. We have many stuff obviously standardized, and for our web applications we have been told to use a dockerized database. I started a small project from scratch and to connect to a $Standard_Database I just downloaded $Standard_Database, installed it on my machine, configured it and began working with it.

    Of course, this is on a development environment, so more or less, who cares how I got this set up, but I'm approaching a point in which I got to "get real" with the database, which implies setting up a docker image of $Standard_Database.

    Now, for what I've seen and I'm reading, this is just some kind of container that will (in theory) only have that database, with docker itself running in memory for I don't really understand what. From the point of my application and my database-access program, I will only have to change the database connection info and I would be good to go.

    I kind of understand a potential need for having independent systems and all that, but, as someone who really love continuous integration and has spent lot of time making processes that deploy cleanly, I don't really see the point on making a new layer just to have this database for this application.

    Maybe I'm having here a too narrow view and in a bigger org is needed to keep things tidy (thus my case of use would be just "the way corporate has told us to do things", maybe I'm missing something here. And thus, I'm asking here about it.

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

    FREE Udemy C Programming Course - Master the Fundamentals of Programming in C Programming Language

    Posted: 12 Jun 2020 06:50 PM PDT

    Free Copy & Unlimited Claims - for 3 DAYS! Once you claim it, it's yours Forever! Stay home and improve your programming skills! <3

    Hello to the Amazing C Programmers!!

    I've been working for almost two years as a Lecturer and a Practitioner of a variety of courses at Computer Science and Electronic Engineering Faculties.

    And I always wanted to create my Online Course!

    So finally, after more than a year of Practicing & Perfecting - I'm glad to announce that it has been released.

    Yeah, it took some time to complete - BUT now this Course has:

    • Visualizations & Illustrations (that make difficult topics - EASY!).
    • General Explanations & Implementation in C Programing Language.
    • Over 30 Exercises (Challenges) + FULL Solution Videos!
    • Cool Milestones (Calculator, Weather Station, Password Guess, etc).
    • And additional EXTRA SECTIONS!

    That's my First Online Course and I want to SHARE it with you guys for FREE and hear your THOUGHTS & FEEDBACK on your Experience!

    This is a great time to invest in yourself and learn something new

    So ENROLL now for FREE! (After claiming the course - it's yours FOREVER)

    *******

    https://www.udemy.com/course/c-programming-for-beginners-programming-in-c/?couponCode=E1CBBC9594C17BF2F320

    *******

    Pay attention: This FREE Coupon expires in 3 days (the course will your forever). Feel free to enroll & share it with any of your friends/juniors/students who might need it.

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

    How can I represent an if-then-else statement in a Behavior Tree?

    Posted: 12 Jun 2020 10:36 PM PDT

    In a behavior tree, a sequence node with two child leaf nodes A (conditional) and B (action) represent "If A, Then B, Else Fail". A fallback node with two child leaf nodes A and B represent "If A, then Succeed, else B".

    If so, how do I represent the classical "If A, Then B, Else C" logic in a behavior tree? Is there a way w/o duplicating the conditional A?

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

    Will choosing the wrong graduate role limit my programming prospects in the future?

    Posted: 12 Jun 2020 04:20 PM PDT

    I am a recent grad, with experience in Java, JS,ReactJS, Python,Rust, to name a few and with a placement year of experience as a full-stack developer, using Java, ReactJS and Scala. As I apply for graduate jobs, I notice some use quite niche programming languages, while others seem quite vague with what languages they even use. My fear is that I'll end up too specialised in one language and thus, if I want to change jobs at a later point, lack the experience to do so. Is this the case? I'm at a point where I'm not entirely sure what development role I even want is, so part of me says to just try anything that sounds decent. In my eyes, programming experience is usually transferable, but I'm not sure if that would be the case after years of experience with one language.

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

    Just a quick question

    Posted: 12 Jun 2020 06:11 PM PDT

    Hi, I am an European who by incredible luck and good TOEFL test made it into a very very good university of IT in Netherlands. I just wanted to ask if the 4 upcoming years are goi to be even remotely possible for someone who has not touched programming ever. Also if you guys got any tips it would be appreciated !:)

    The University is the University of Groningen, Netherlands

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

    The polite way to say that programmer is inexperienced?

    Posted: 12 Jun 2020 03:26 PM PDT

    What is the polite way to say that programmer is inexperienced?

    "Newbie" looks rude to me. Maybe "newcomer" or something different?

    I cannot use the word "junior" because it's more about salary than experience :)

    English is not my native language. Cheers!

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

    Is there a way to avoid installing a common package every time my pipeline runs?

    Posted: 12 Jun 2020 05:57 PM PDT

    I'm trying to optimize some pipelines I've got running in Bitbucket using image Python:3.6.1, and I'm finding a lot of the time is spent fetching the latest info with aptitude, and then installing zip/unzip. Why is such a basic tool not included in these images? And alongside that, is there anyway I can speed that up? I'm hoping there's a trick to this I just haven't considered.

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

    Would perfectly written code using goto be faster than loops and other alternatives?

    Posted: 12 Jun 2020 09:21 AM PDT

    Just wondering if goto can be compiled into faster machine code than loops etc. Not saying we should use it even if it is lol.

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

    How can I get a list URL for of (almost) every page on the web (via Common Crawl or some other means)?

    Posted: 12 Jun 2020 10:56 AM PDT

    I'm trying to get a comprehensive list of web pages on the web. I don't want the HTML, just the URLs. I'm having a hard time making sense of the commoncrawl.org web site.

    I don't want to download the entire CommonCrawl database. I just need the urls.

    Is what I'm asking for reasonably doable?

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

    How should I process thousands of .tif images and split them according to colour? Is there any way to achieve this through programming without having to install tons of compilers or libraries? I also need it to work offline. Sorry if this is the wrong sub to ask.

    Posted: 12 Jun 2020 12:58 PM PDT

    I'd like to achieve something like this: stackoverflow.com/questions/48735574 . But I can't install OpenCV and Numpy. I already have Python installed. Yay admin rights.

    Unfortunately, I am as illiterate as one can be when it comes to image processing. (I learned C++ for three years in high school, but nothing of this kind.) Is there any alternative to what I found? I also have Visual Studio, but never used it.

    If this is the wrong sub to ask, please tell me where I should repost my question. Thanks a lot.

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

    How do I know when I'm ready to apply for a job or a project?

    Posted: 12 Jun 2020 08:01 AM PDT

    I have a solid knowledge of HTML and CSS, but not too advanced. I know how to use Bootstrap (even though I prefer vanilla CSS) and Sass, Flex, Grid, Animations, and very little JavaScript (I'm just starting to learn it).

    The thing is that... I have a tendency to be a perfectionist and I know that I'll try to master as many things as possible before I feel comfortable to apply even for a basic project, so I'd like to hear some of your experiences when it comes to 'being ready'.

    How did you know you were ready?

    submitted by /u/tac-88
    [link] [comments]

    Lorem Ipsum but for Programming Languages?

    Posted: 12 Jun 2020 12:26 AM PDT

    Hi folks,

    I was wondering, is there something like Lorem Ipsum for programming Languages?

    I'm working on a project and I need some dummy code. doesn't really matter what language. It should however look something like PHP or C#. Does something simular as dummy code exist?

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

    How do I use the maximum potential of my computer?

    Posted: 12 Jun 2020 06:37 AM PDT

    I am writing a neural network for a school project and I don't have the strongest computer. Is there a way in which I can use as much of my RAM and CPU power as possible? I know that the OS and other background applications take some power, how can I minimize this?

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

    How can I create a simple GUI for a CLI-command?

    Posted: 12 Jun 2020 09:21 AM PDT

    Hi,
    I'm not very experienced in programming. However, if I see some simple code and only have to change some variables I can usually solve the rest by myself.

    My problem: I have a command line for the software CloudCompare. The command starts CloudCompare, opens a file, does an operation to it and saves the result as a new file. This is the command:

    cloudcompare -O -GLOBAL_SHIFT AUTO "C:\test\test.las" -RASTERIZE -GRID_STEP 0.03 -PROJ AVG -EMPTY_FILL INTERP -OUTPUT_RASTER_RGB 

    Obviously, this command is only valid for the file C:\test\test.las.

    I would like to create a very simple GUI where I can select multiple files (all with different names but all in .las format) and also define the -GRID_STEP. The GUI should then call the command and batch run it for all files one after the other. Is there a simple way or software to do that?

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

    Driver Development for Win 8.1 : The 'Universal' target platform is not supported by the target OS 'WindowsV6.3' (0x0603)

    Posted: 12 Jun 2020 01:10 AM PDT

    Hello, I'm trying to learn more about Windows driver development. I was writing a Hello World KMDF driver with following this source.

    • Host machine: Windows 10 Pro
    • Target machine: Windows 8.1 Industry Pro (Build 9600)

    In Visual Studio, from Properties -> Driver Settings I choosed Target OS version Windows 8.1 and Target Platform Universal.

    But when I try to build it I get this error:

    Error The 'Universal' target platform is not supported by the target OS 'WindowsV6.3' (0x0603). KmdfHelloWorld C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets 

    If I change Target OS Version from "Windows 8.1" to "Windows 10 or higher", It buils without an error but I think I can't rely on that.

    I have read this Microsoft doc and I installed WDK 8.1 to my host computer but It didn't change anything.

    Other settings:

    • Windows SDK version: 10.0
    • Platform toolset: WindowsKernelModeDriver10.0 (If I chance this to "WindowsKernelModeDriver8.1", Visual Studio cannot find the platform toolset.)
    • Run WPP tracing: No

    What do you think about the solution?

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

    How can I build a website with database from scratch in less than 2 days with no prior experience?

    Posted: 11 Jun 2020 11:57 PM PDT

    I am a game dev, so I have no experience in web programming.

    I need to build a website as described in the title for university project. I don't need huge website ready for commercial, but not very simple website as well.

    Is there any good tutorials that I can rely on? Videos are preferable but if they are understandable standard tutorials are also fine.

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

    Recommendation for program and language to generate dynamic high resolution reports?

    Posted: 12 Jun 2020 07:49 AM PDT

    Multiple times in my career I've been asked to generate dynamic reports requiring a lot of custom coding. (If the mean of this is above the mean of that one generate this template. "Depending on how the user answers this questionnaire show or do not show these sections, and btw I need users to be able to insert their own questions to manage new sections that we will eventually need."

    I've never had trouble creating the various dynamic aspect of the report, but what I've found is that all these reports were being generated as either a PowerPoint or Excel file using VBA. This makes it possible to create good reports with all the functionality that they want but it lacks the ability to create a polished great report.

    Images would get compressed and their quality would drop, artifacts would appear in tables where lines would not line up perfectly. Lots of little issues would take a lot of programming time to get the report from ok to good.

    What programming language and and library / framework would you use that would give you the best chance at making an application that would allow an end user to generate great high quality dynamic reports?

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

    You can use the Montgomery multiplication trick to speed up modular exponentiation. Can I trivially extend this to elliptic curve operations?

    Posted: 12 Jun 2020 05:29 AM PDT

    I wrote an elliptic curve key exchange protocol in Python. It doesn't require any external libraries but takes advantage of whatever magic Python uses to speed up big integer maths. I wrote the same program naively in C++. The performance haemorrhaged. I read about Modular Montgomery Multiplication.

    To perform exponentiation, you do some preprocessing with numbers (once, but slow) You then perform exponentiation with specialised modular multiplication and addition operations (many operations but faster now). You then perform some post-processing. (Once but slow)

    Will this trick work with any operation? For example can I convert x and y coordinates of elliptic curve points into this form, do some elliptic curve exponentiation, and then convert x and y back?

    Of course there's also vectorisation and other clever optimisations I can look into, but this question is about Montgomery modular arithmetic.

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

    Anyone from South Africa heard of MIP holdings software company?

    Posted: 12 Jun 2020 01:29 AM PDT

    Hi. I applied for a software engineering internship at said company, It's first a 3 month learnership then internship. I did 2 assessments already(consisted of an encryption challenge and the lightbot game with 23 levels) . Was wondering if anyone knows the company or what to expect in the next stage. They just said a 3 hour assessment and I don't need to prep. I just been preparing with aptitude tests.

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

    Open source news API

    Posted: 12 Jun 2020 05:04 AM PDT

    Hi everyone !!

    I'm working on a SPA which consumes several open-source API like weather, quotes, news. I'm using newsapi which seems to work fine while development. However, today I deployed my application on Netlify, where the CORS issue persisted. Turns out API is only free for development locally but no unauthorized request can be made from any other domain.

    Would you please suggest me any other open-source NEWS API?

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

    No comments:

    Post a Comment