• Breaking News

    Tuesday, September 1, 2020

    What was so fundamentally wrong about Flash and right about Javascript? Ask Programming

    What was so fundamentally wrong about Flash and right about Javascript? Ask Programming


    What was so fundamentally wrong about Flash and right about Javascript?

    Posted: 01 Sep 2020 01:57 PM PDT

    Transferring User Data Folders from Nextcloud Ubuntu Box to a NAS

    Posted: 01 Sep 2020 04:11 PM PDT

    Each user's folder ranges 10kb to 40gb, with each containing subfolders, some PSTs, mostly PDF and Text files.

    I believe the term I need to know is "recursive" directory upload, to make sure that everything within the folder gets copied/moved..

    Box A (Source): Ubuntu Nextcloud, all data in /mnt/ncdata, total ~1TB

    Box B (Destination): Netgear ReadyNAS with the following Network Access protocols available: SMB, NFS, AFP, FTP, RSYNC, HTTP, DLNA, iTunes..)

    As a test, I was able to get curl to copy a file over but not yet a directory.

    Few questions:

    1. Which protocol is best for copying files from Box A to Box B?
    2. Is packaging (TAR file?) something I should consider?
    3. Is there a way to automate this, potentially even with bandwidth limitations, so it could run until completed?

    Thanks for reading

    submitted by /u/pork-belly
    [link] [comments]

    Some people use POST requests as GET requests. Why?

    Posted: 01 Sep 2020 05:02 PM PDT

    My programming mentor mentioned to me in a conversation about HTTP that sometimes people use POST requests as GET requests. I asked him to explain why, but I did not understand his answer, nor remember it.

    Just wondering, does anyone else agree with his claim, and can someone answer my question? Thanks!

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

    Why choose an ORM over database?

    Posted: 01 Sep 2020 07:01 AM PDT

    So I took a job at a new company. Its a startup and things are done the way the owners want it to be. Which means just about everything in the application besides the user interface is done in SQL. We have a server running but its more of a simple bridge from the browser to SQL. I come from a company that used Entity framework and server side logic along with SQL. As I understand it this is more of the norm. So I'm curious what reasons you all could see for leaning one way or another for application development. Is it better in your opinion to rely heavily on SQL or is using an ORM better or worse?

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

    Confused between Competitive programming or project based learning.

    Posted: 01 Sep 2020 09:51 AM PDT

    Hello, I currently work in IT support. But want to do some contribution toopen-source projects. I would like to know what approach will be great for me to achieve skills in coding. Shall I try for competitive programming or do shall I do debug a small GitHub project

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

    comp. systems performance, which profession?

    Posted: 01 Sep 2020 08:40 PM PDT

    I've been studying queueing theory and comp. systems performance analysis and I wanted to ask, which profession(s) focuses or prioritizes this field of study?

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

    Smoothest path?

    Posted: 01 Sep 2020 08:30 PM PDT

    There seems to be so many languages and ways to go about learning how to code, i know pretty much nothing about coding right now and was wondering what is the best path (best can mean either fastest, easiest, or just generally the smoothest i guess) i can take to get my foot in the door and get a job as someone without a degree or experience. Basically what should i learn first?

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

    Best way to build a unique panel that manages different websites for different clients

    Posted: 01 Sep 2020 03:57 PM PDT

    There is this company and they build web apps for their client. But they want to provide a way for each client to modify information in their own website such as update a title, add images and things like that. For that we should build a PANEL that will be accesible for everyone (only difference is that when they login they will only have access to change their website stuff). But it turns out that the websites are very different form each other, they can have similar stuff but in general the business logic is diferent, therefore each customer has its own database and its own table. This shit is kinda like a Wordpress. So I was wondering what is the best approach to create a system like that?

    I was thinking in a front-end (Angular) and back-end (Node or something like that) and in the front-end we create de components and we load only the ones that the client needs. In the back-end we create an API that the front-end can access and manage to find the database for each client. It this idea correct?

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

    [R] simple recursion task - output each level to a list

    Posted: 01 Sep 2020 11:36 AM PDT

    Let's say I have the classic recursion problem of the factorial. I want to edit this so it returns a list of each level of the recursion, so for factorial(4) it would output a list like this: (1,2,6,24). The function is below.

    factorial <- function(n) {

    if (n == 0) {

    return(1)

    } else {

    return(n*factorial(n-1))

    }

    }

    Any ideas? Thank you

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

    Is it possible to hack a game coded in c#

    Posted: 01 Sep 2020 06:38 PM PDT

    As you can tell from the title, I'm very new to coding. I was wondering whether or not it is possible to hack a game that is coded using the language C#. Thanks for any help!

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

    Web App Testing - What sort of access level do you have for your test accounts?

    Posted: 01 Sep 2020 02:41 PM PDT

    Hello All,

    We're trying to improve our testing in our project which contains a lot of applications. We don't really have any actual app testing other than testing if it's up and can connect to the database. Everything is AD managed as far as accounts and access goes. So how do you test your applications? At first, I thought giving the testing account read only access which would allow navigation, but it wouldn't allow any other functionality tests.

    Unfortunately, we don't manage the AD service accounts, and the client's security department has required any new service accounts have their passwords reset every 90 days. So having an individual testing account per application would be a major headache every 90 days. My initial thought was to give one account access to all apps and be read only, as I am concerned about security. However, due to the limited access, we're almost no better at testing that way than we currently are by making sure the app is up and all resources are up (APIs, DBs, etc).

    So what is your testing strategy at your employer? What's good and bad about it?

    Thank you in advance for your time!

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

    Smooth scroll

    Posted: 01 Sep 2020 04:30 PM PDT

    I've been searching for a smooth scrolling app but i cant seem to find any. i have found one thats called literally smoothscroll but it has a trial period.

    does anyone if i can do this programmatically?

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

    Carpal tunnel syndrome setting in - what do?

    Posted: 01 Sep 2020 01:34 AM PDT

    When I was a young lad of 20 I was working in construction. My first gigs were all demolition - so think brandishing all sorts of sledgehammers for 8 hours straight, and dragging 120 kilo I-beams around. Needless to say, my right wrist was shot long before I ever got a chance to get an office job.

    Now I'm 32, and there it is. Burning sensation in my fingers after using the mouse for too long. Carpal tunnel syndrome, the bane and the nightmare of anyone working with computers. It already started when I was at school, which prompted me to learn VIM - since just click-clacking at the keyboard doesn't cause it to flare as much as using the mouse. But I'm worried that even that is temporary. I'm thinking of switching to left-hand for the mouse, and getting a more ergo keyboard. My long-term plan is to try to move into management or something, cause I can't keep clacking at the keyboard for the rest of my career. But what other ways to alleviate it are there? I know some people are using wrist braces - how effective are those? What exercises are effective? And in general, what's the outlook? Did any of yall manage your symptoms to the point that you can manage to go about your day-to-day job?

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

    Should I start with projects?

    Posted: 01 Sep 2020 02:58 PM PDT

    Ive been hearing that its alot easier to learn coding by actually doing. Is this really the case with programming? If so, what are some projects that I can do that will help me learn?

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

    How do you track/log/manage your interface and API dependencies?

    Posted: 01 Sep 2020 02:45 PM PDT

    Hello All,

    My project is trying to work on our documentation, and we're wanting to make something that helps track shared resources like interfaces, APIs, and databases. Right now we track servers, but not individual units. We're wanting something that we can create an entry as an endpoint (i.e. API), and then for other applications to be able to choose that endpoint as a used resource. That way, if the team responsible for that endpoint makes changes, they're able to see what applications we currently have that utilize that API. Right now, almost all of our resource tracking is in Sharepoint, but this wouldn't necessarily have to be. I believe within the next year, there are some things that will be consolidated to Service Now, but not sure they have a resource tracker for something like this. So what do your teams use? What's good and bad about it?

    Thank you all in advance!

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

    Help with C# programming

    Posted: 01 Sep 2020 12:38 PM PDT

    I'm going into A-Levels now and have some c# visual studio programming to do where I have to program a password generating and checking software.

    I am very very stuck on this and really don't know how to do this. I've been trying for days now and have got little progress.

    Would anyone be able to help me with this as I am unsure of it

    I would be very grateful for any help 😊

    Thank you and take care

    submitted by /u/315AHPRO
    [link] [comments]

    Is an old Macbook Pro good enough for doing web development - mainly front end?

    Posted: 01 Sep 2020 12:33 PM PDT

    I'm looking to get an old 15-inch 2018 Macbook Pro to start my journey into web development. My friend is willing to sell me hers for really cheap, but I'm wondering if it'd be worth the investment. Should I get something more powerful?

    I'm new to programming and have only recently started learning HTML and CSS. I want to be a front end developer, but I've heard that I'd need a fairly powerful computer if I ever end up delving into doing 60FPS animations and 3D animations later down the line. Will the aforementioned computer be good enough?

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

    Still trying to wrap my head around the halting problem

    Posted: 01 Sep 2020 12:21 PM PDT

    So I'm watching this video with some neat illustrations about the halting problem.

    https://www.youtube.com/watch?v=92WHN-pAFCs

    I makes sense, up until around 4:48 when they introduced a negating machine that negates the output of the halting machine, so no matter what the halting machine outputs, it will be negated by the negating machine, and therefore wrong. I don't understand the purpose of the negation.. I read the FAQ for the video, and it says

    Our goal is prove that H is not perfect, i.e., that there exists some inputs that cause it print the wrong answer. For this goal, it is enough to show one such input. X is especially designed for this purpose. Its special construction is guaranteed to cause H to fail. It is true of course that if we take out the N, then H will not fail, but we are not interested in an example where H succeeds, we are interested in an example where H fails. 

    Which to me sounds like a being bias against the halting machine. Someone please give me some insight..

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

    Unit testing tool suggestions

    Posted: 01 Sep 2020 11:48 AM PDT

    I am looking for some suggestions on unit testing tools. Some background. I currently create and maintain regression and runtime tests for industrial controls. My company mainly uses National Instruments hardware and software for that, so LabVIEW (I know). That is mainly what I have used for most of my career. So this is somewhat new to me. I haven't done any unit testing other than a little in school a decade ago.

    I was recently tasked with researching tools to use for unit testing a new platform we are creating that will be SIL certified. The code will mainly be written in C, with some parts using Cpp.

    I just need a starting point, maybe some tools to look into at first. Are any you have used and liked? Or disliked? Why? Maybe things to consider that might not be obvious at first. I do believe a past project used an old version of Vectorcast and the engineer using it did not like it, but I don't remember why.

    Any suggestions to get me started is appreciated. Thanks.

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

    Veteran Programmers of this sum, what's the fastest way to get to your level?

    Posted: 01 Sep 2020 05:22 AM PDT

    How do you make "shortcut" commands for scripts or specific task?

    Posted: 01 Sep 2020 02:57 AM PDT

    Hello, I'd like to know how do I make a "shortcut" word or command for a specific task. For example, I would like to use something like "updatepip" and run this

    "pip3 list --outdated --format=freeze | grep -v '-e' | cut -d = -f 1 | xargs -n1 pip3 install -U --user" That i use to update/upgrade all the packages since pip doesn't haves a command for that.

    Thanks for your time.

    Btw i'm on windows 10, and i use Cmder with chocolatey.

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

    Java calculator with roman numeral

    Posted: 01 Sep 2020 11:52 AM PDT

    The calculator can perform operations of addition, subtraction, multiplication and division with two numbers: a + b, a - b, a * b, a / b.

    The calculator must accept numbers from 1 to 10 inclusively, no more. At the output, the numbers are not limited in size and can be any. (Roman (I, II, III, IV, V ...) numbers)

    The calculator can only work with whole numbers.

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

    Anybody know any good tutorial videos on writing high-quality code? preferably in java

    Posted: 01 Sep 2020 01:53 AM PDT

    Lets say you wanna make a forward style dp. Is it okay to implement it recursively like this?

    Posted: 01 Sep 2020 03:42 AM PDT

    intialize dp with -1(); void make_dp(states) { if (dp[states] != -1) return; for (transitions) { dp[nextdp] = best(dp[nextdp] , nextval); make_dp(nextdp); } } 

    What are some other ways of doing it, if this isn't best?

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

    No comments:

    Post a Comment