• Breaking News

    Tuesday, September 29, 2020

    Lead Engineer was just drafted Ask Programming

    Lead Engineer was just drafted Ask Programming


    Lead Engineer was just drafted

    Posted: 29 Sep 2020 03:00 PM PDT

    I am the lead scientist at a company that develops machine learning solutions.

    We just on boarded a brilliant engineer who has worked with all of our tech, was flying through his assignments, contributed to discussions actively...it was a dream.

    ...he lives in Armenia and has been drafted to go to war.

    What can I do to support him?

    I'm still shocked. He told me less than an hour ago.

    edit: management has told me that i can tell him he'll have a job waiting for him when the war is over.

    edit: Im an American, a Socialist.

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

    Real talk: why do we call them "machine"s?

    Posted: 29 Sep 2020 06:52 AM PDT

    The longer I've been in programming, the more I switch from using "computer" to "machine" because that's what everyone else does. i know it sounds more Professional ™ but is there an actually compelling reason other than to just make lay people feel insecure?

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

    I'm currently learning node/express js, and I'm confused which style should I use : async/await or promises ?

    Posted: 29 Sep 2020 10:56 PM PDT

    most of the tutorial I've seen (2-3 years old) use the promises yet some courses I've taken recommend using async/await. even when importing the modules (common js vs es6). and I feel like using the two things at the same time is going to be confusing

    submitted by /u/kamel-not-camel
    [link] [comments]

    Human Benchmark Visual Memory

    Posted: 29 Sep 2020 08:14 PM PDT

    https://humanbenchmark.com/tests/memory

    I'm trying to modify the application (presumably after downloading all the files) so I can skip the first x-levels of this exercise so I can drill the more difficult levels. Looking through the source I see a few javascript applications but I really am baffled as to which one this could possibly be. Any ideas?

    I haven't gotten a response from humanbenchmark contact email.

    Thanks!

    submitted by /u/lexan-adler
    [link] [comments]

    I'm having a problem with a render command in PyCharm.

    Posted: 29 Sep 2020 07:42 PM PDT

    I'm recently got a new computer and had to reinstall PyCharm the project I'm working on is giving me issues because it says that the render command is an unresolved reference. I don't know how to resolve this reference issue.

    submitted by /u/Wiseman-no
    [link] [comments]

    [C] Check if input is number or not

    Posted: 29 Sep 2020 12:03 PM PDT

    Hey!

    So I was messing around in C, and I want to use scanf() to get an integer from the user, and if the user inputs something else (like a string or a character etc) it would loop back and ask the user again for a new input. Now the first request for input works flawlessly, however when the user gives an incorrect value, the loop just goes on and on, without stopping, repeating the "please input a number" text over and over again.

    Is this a flaw of C or a flaw in my logic? In the while loop I used scanf()'s return value, where 0 means unsuccessful and 1 means successful. When the while gets a 0, it should loop back to asking again, waiting for input, but it just never stops to wait for a second input, just keeps looping the question text.

    Thanks in advance!

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

    I thought Bootstrap didn't require jQuery anymore. Why is it throwing an error?

    Posted: 29 Sep 2020 01:13 PM PDT

    I included latest boostrap.min.css and bootstrap.bundle.min.js and I thought Boostrap did away with jQuery but it's throwing an error saying jQuery is required

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

    Not sure wich language to start with.

    Posted: 29 Sep 2020 01:07 PM PDT

    I searched the internet and i found that the best two to start with are Python and JavaScript, btw I'm a total beginner i know nothing about it, Any suggestions.

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

    Best way to read arbitrary data from standard input and write it to a file in C language.

    Posted: 29 Sep 2020 12:45 PM PDT

    Clarifications on how to set up a backend with a database and back up

    Posted: 29 Sep 2020 03:59 PM PDT

    I have experience programming, but I never have to set up a backend myself.

    What I want is to make a backend with a database that I can backup for posterity.

    The most basic use for what I want to do right now is having an Arduino with a sensor send info to a rest API, and the backend save the database in a way I could backup for the future. I know Arduino and how to send html requests, also know Node and Rails for the backend framework. Just don't know how using a service like AWS or Asure to host the webapp, and to host a database I could back up and read it later.

    Can someone explain to me please? Or at least point me on how to research it?

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

    calculating time complexity

    Posted: 29 Sep 2020 03:46 PM PDT

    Hi guys!

    how do you calculate the time complexity of this algorithm?

    function sortByHeight(a) {
    var s = a.filter(h => h > 0).sort((a, b) => a - b)
    return a.map(p => {
    if (p !== -1) {
    return s.shift();
    }

    return -1;
    })
    }

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

    How does CPython's performance compare to other languages that run in a VM like languages that target CLR and JVM?

    Posted: 29 Sep 2020 03:39 PM PDT

    Additionally, if CLR/JVM targeted apps run faster than CPython ones, does that mean that IronPython or Jython outperform CPython?

    Sorry for what probably seems like a trivial question. Googling this question leads to incredibly lackluster results.

    submitted by /u/1337InfoSec
    [link] [comments]

    Developing a script to interact with chrome, then DM results to iPhone.

    Posted: 29 Sep 2020 03:23 PM PDT

    Hello everyone, so I'm essentially looking for some advice on where to start to create a script I can run to 'read' live results on a website, more info below, then direct message the link the website provides to my twitter account, or some other app that allows messaging from PC to iPhone. The website is itemalert.com and it alerts you when new eBay items are listed that fit my search terms, it's one of the ways I source items for my business. Example of the site. The website has a built in setting to email whenever new results are shown, but the problem is it doesn't show photos, just the eBay title. It works great when I'm at the computer I can just tab over when a new result sounds, but I would like to have it when I am away. It's important for me to see photos as opposed to just titles is because if something good is listed it can sell very quickly within a minute or two, and reading each title is difficult if I get more than one result in the 30 second which is the period of time that the site updates any new results. I did some digging and when new results popup they are tagged as div class "media result resultnew". What I need to do is have some way for a script to scan for new results with that tag, then copy the hyperlink that is within that div that links to the eBay item, and subsequently message that to my phone whether it's via twitter, WhatsApp, or some other way. The reason I saw twitter or WhatsApp specifically is because when I tested manually DM'ing some item link through both of those apps, it includes a photo of the item alongside the link, and also importantly a push notification. Anyways, I'm just looking for someone to possibly give me a jumping off point on where to start, some ideas.

    Thank you all for any input.

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

    Is there a semantic encoding language, similar to Unicode but for meaning instead of characters?

    Posted: 29 Sep 2020 09:18 AM PDT

    A discussion about vague icons on mobile devices lead to the question of auto-translating "meaning codes" to local languages. Quote:

    Maybe we need something like Unicode for meaning instead of just pictograms. Pictograms can convey meaning, but are limited in that regard, especially for non-nouns.

    For example, the code 1230 could mean "show" or "display". 1234 could mean "all", 1235 could mean "next", and 1236 for "previous" etc.

    The UI designer would specify "[1230][1234]" and the device's local language settings would lookup the words to get "Show All" for English speakers, for example. I suppose the word order may be different in other languages, but it's still likely better than confusing icons...

    I suppose we could use Esperanto as the standard, but that may require too much parsing. Plus, usage of parentheses and other grouping characters could reduce reference ambiguities often found in written languages, such as "I spotted a telescope on the hill" where "on" can refer to either noun. The equivalent of the sentence diagram could be unambiguous, at least in terms of a tree structure: "(I (location is on hill))(spotted)(one telescope)".

    I couldn't find such a proposed standard on the "GoogleBings", but merely intermediate encodings used inside translating engines.

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

    Serverless VS Docker application

    Posted: 29 Sep 2020 02:57 PM PDT

    Hello Everyone,

    My company currently has gotten a new client where we will need to design and implement a brand new architecture for a high-coupled PM/CRM tool.

    Traditionally, we have always built our apps using Serverless Architecture. Nothing we have built needed an RDS and everything has almost always been "on the fly". The Serverless architecture suited us very well for this.

    However, going forward with this new contract, we will need to build a system that is highly coupled application. For this reason we are using an RDS (Obviously).

    My question is:

    Have any of you had experience with using AWS Lambda/API Gateway with an RDS instance? How was your experience?

    Some of my concerns are:

    - Is Lambda meant to handle huge robust RDS backends?

    - RDS connection pool with the instance of multiple Lambdas being spun-up at the same time (I know AWS has RDS proxy which manages this, however, they do state that with high loads performance takes a hit)

    - Worried that the management and coordination between all of the Serverless functions will become a tough job for a robust application

    Thanks Guys!

    More Details

    - NodeJs /Typescript

    - SQLServer,Postgres, Aurora

    - GraphQL

    -ORM (Have been looking at TypeORM lately)

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

    Doubts about my career

    Posted: 29 Sep 2020 02:12 PM PDT

    Hello, i'm a physics student and i'm really doubtful about my career. I know C# and python, however, like i said, i'm in school for physics. After three years in college, i found out that i don't really like physics, and i enjoy statistics, ML, programming and maths in general way more than physics specific stuff (material science, thermo, electromag). But i feel like it's too late to drop out now, since i graduate at the end of the next year. Can i get a job or a masters and phD, something like that in the fields that i enjoy more, even though i'll be graduated in physics? Can i get a job related to programming with my degree?

    Thanks in advance!

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

    How do you develop on a remote machine?

    Posted: 29 Sep 2020 01:51 PM PDT

    I have been ssh-ing/ftp-ing into my EC2s, downloading files and editing them locally, then pushing them back to the remote machines.

    Is there a better way? Does VScode, for example, have a good way of allowing one to develop directly on a remote instance?

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

    How does a website stores its metric ton of content ? How does online 3D rendering tools work ?

    Posted: 29 Sep 2020 04:59 AM PDT

    Hello !

    I am a junior Web Dev, like I've just finished a JavaScript and VueJS 1 year course, and I would like to develop an interior design tool like the one found on https://roomstyler.com . I like interior design.

    RoomStyler basically give you a dashboard where you have your projects. You can click to start a new project or to view your past projects, resume your work, edit them, etc.

    This raised some question on my part as I don't fully understand how these things work yet.

    First, where do I store all that data ? One user can have a ton of projects. Where do I put those ? How does that work ? I assume it has something to do with databases and/or Content management systems, but I don't know how storage memory works with these. Every rendered image will have to be stored somewhere to be retrieved by the user's account on demand. I would love to understand these concepts. As a matter of fact, how does Pinterest store all its content ? One user can upload a ton of images. Where ? How ?

    Secondly, how does the rendering tool works ? You put some walls and some furniture in the workspace and baaaam, the tool renders it in 3D for you and you can download the rendered images. How ? Is there an API somewhere that can be used to render 2D plans into 3D rooms, because I couldn't find anything online (probably because I have no idea what to search for) ?

    Thirdly, I would like to know this from all perspectives, like server side, client side, database side, hosting side, developing side, all sides basically.

    This is all from me. I hope I was coherent.

    I would love to hear from you. I am very interested in developing online tools, not just plain, simple websites.Thank you very much !

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

    SEO with Angular Universal for Better Performance

    Posted: 29 Sep 2020 04:46 AM PDT

    Server-side rendering (SSR) with Angular Universal is better for performance as well as other factors. Angular Universal is a technology that renders the application on the server.

    In a normal scenario, the application executes in the browser and renders pages in DOM. While in Angular universal static pages gets from the server and that gets bootstrapped into the client. This means the initial page will be rendered very quickly and it will improve the performance of the application.

    1. Why Server-side rendering?
      1. Web Crawlers (Search Engine Optimization)
      2. Improve performance on mobile devices and other platforms
      3. First contentful paint (FCP) – Show the first page quickly
    2. Installation
      1. Angular Universal in Action
    3. Important Links
    submitted by /u/geekstrick
    [link] [comments]

    Help with Python/Rasberry Pi |Program breaks when I set it to run at boot.

    Posted: 29 Sep 2020 01:03 PM PDT

    Hi, I need some help, I wrote a small program to play a .wav file after a button press using pygame. I then added this line to the /etc/rc.local file so that it runs at boot:

    python /home/pi/myprogram.py &

    Doing this broke my program's ability to play the sound file. I have a LED set to light up, which it does on boot, but then pressing the button makes the speakers make a small noise but my file doesn't play. Using my code in Thonny however, still works just fine. Any help is greatly appreciated!

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

    Correct way of composing a Dockerfile which uses a Java application and the Matlab Runtime Compiler

    Posted: 29 Sep 2020 09:06 AM PDT

    At the moment I have a Spring Boot/Java application that uses code that I successfully exported out of Matlab using the Library Compiler SDK. At the moment I am able to use the code locally but want to move this to a docker environment. I first tried to use a simple Dockerfile for the Java application to achieve this that looks like this:

    FROM openjdk:8-jdk-alpine ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} app.jar ENTRYPOINT ["java","-jar","/app.jar"] 

    But doing so results in an error when the Matlab function is called:

    [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.UnsatisfiedLinkError: Failed to find the required library libmwmclmcrrt.so.9.8 on java.library.path. This library is typically installed along with MATLAB or the MATLAB Runtime. Its absence may indicate an issue with that installation or the current path configuration, or a mismatch with the architecture of the Java interpreter on the path. MATLAB Runtime version this component is attempting to use: 9.8. Java interpreter architecture: glnxa64. ] with root cause java.lang.UnsatisfiedLinkError: Failed to find the required library libmwmclmcrrt.so.9.8 on java.library.path. This library is typically installed along with MATLAB or the MATLAB Runtime. Its absence may indicate an issue with that installation or the current path configuration, or a mismatch with the architecture of the Java interpreter on the path. MATLAB Runtime version this component is attempting to use: 9.8. Java interpreter architecture: glnxa64. 

    It appears to use the Matlab function properly the Matlab Runtime is needed. Luckily I was able to find the following link that builds the runtimes in an image: https://github.com/demartis/matlab_runtime_docker

    Based on the link above I am able to make a Docker image for the Matlab Compiler Runtime:

    FROM debian:stretch-slim MAINTAINER Riccardo De Martis <riccardo@demartis.it> ENV DEBIAN_FRONTEND noninteractive RUN apt-get -q update && \ apt-get install -q -y --no-install-recommends \ xorg \ unzip \ wget \ curl && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Download the MCR from MathWorks site an install with -mode silent RUN mkdir /mcr-install && \ mkdir /opt/mcr && \ cd /mcr-install && \ wget --no-check-certificate -q http://ssd.mathworks.com/supportfiles/downloads/R2020a/Release/0/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2020a_glnxa64.zip && \ unzip -q MATLAB_Runtime_R2020a_glnxa64.zip && \ rm -f MATLAB_Runtime_R2020a_glnxa64.zip && \ ./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \ cd / && \ rm -rf mcr-install # Configure environment variables for MCR ENV LD_LIBRARY_PATH /opt/mcr/v98/runtime/glnxa64:/opt/mcr/v98/bin/glnxa64:/opt/mcr/v98/sys/os/glnxa64:/opt/mcr/v98/extern/bin/glnxa64 ENV XAPPLRESDIR /etc/X11/app-defaults 

    The problem I am facing right now is what the correct way is to compose a single Dockerfile that incorporates both projects. I tried to make a single multi-stage build that looks like this but still it generates the error mentioned above:

    FROM openjdk:8-jdk-alpine ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} app.jar ENTRYPOINT ["java","-jar","/app.jar"] FROM debian:stretch-slim MAINTAINER Riccardo De Martis <riccardo@demartis.it> ENV DEBIAN_FRONTEND noninteractive RUN apt-get -q update && \ apt-get install -q -y --no-install-recommends \ xorg \ unzip \ wget \ curl && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Download the MCR from MathWorks site an install with -mode silent RUN mkdir /mcr-install && \ mkdir /opt/mcr && \ cd /mcr-install && \ wget --no-check-certificate -q http://ssd.mathworks.com/supportfiles/downloads/R2020a/Release/0/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2020a_glnxa64.zip && \ unzip -q MATLAB_Runtime_R2020a_glnxa64.zip && \ rm -f MATLAB_Runtime_R2020a_glnxa64.zip && \ ./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \ cd / && \ rm -rf mcr-install # Configure environment variables for MCR ENV LD_LIBRARY_PATH /opt/mcr/v98/runtime/glnxa64:/opt/mcr/v98/bin/glnxa64:/opt/mcr/v98/sys/os/glnxa64:/opt/mcr/v98/extern/bin/glnxa64 ENV XAPPLRESDIR /etc/X11/app-defaults 

    So I am wondering what is the way to create an image that would be able to install the runtime and make so that the Java application can use that runtime.

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

    Which solution is cheaper?

    Posted: 29 Sep 2020 08:39 AM PDT

    Dear programming community. I work for a bank and our ebanking system ( for computers) is a separate programm which can only be installed on Mac OS or Windows 8.

    As far as I know, and I can only speak for my country, every other bank's ebanking is accessed via browser on the bank's website.

    My question is: In terms of costs (maintenance, updates etc.) are the costs lower if you are developping a programm which relies on a user's operating system, then creating a solution that only depends on a user's browser?

    I'm a total noob, a layman with no knowledge of programming, so if my question is not completely clear, please tell me so.

    Thank you

    submitted by /u/the_e-nygma
    [link] [comments]

    I could really use some help.

    Posted: 29 Sep 2020 12:19 PM PDT

    I need to do a program in ARM assembly language. Does anyone here know this?

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

    Assembly Language

    Posted: 29 Sep 2020 12:00 PM PDT

    Where is the best place to learn x86 assembly language and the MASM assembler?

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

    Weird installer solution/ help plz

    Posted: 29 Sep 2020 11:37 AM PDT

    Hello,

    I have a small curve ball for you wonderful people. I'm trying to make my job easier and so I need to find a way to help dummy proof a process. Basically the process requires me making sure that a few files and folders go to the right place to update charting information for a trading platform.

    However, the issue is that the user might be using 2 different brandings of the same program and either one could be installed on the PC or sometimes even both.

    So, my question is how can I make a dumb dumb simple installer that detects which branding of the program(s) are installed and extracts the correct files as needed? I don't think that a simple SFX will work but you know... I would very much like some guidance to make my everyone's life easier.

    Thank you in advance!

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

    No comments:

    Post a Comment