• Breaking News

    Friday, July 5, 2019

    What should I learn to help you do your job better? Ask Programming

    What should I learn to help you do your job better? Ask Programming


    What should I learn to help you do your job better?

    Posted: 05 Jul 2019 02:00 PM PDT

    Hi Reddit!

    I recently became upper management at a small tech company. I am currently overhauling all their normal business protocols and systems but will be working with their developers and am helping them find a new CTO.

    Here is the thing, both the CEO and I are not really up to speed with the technology we are using. We do not have a background in tech.

    My question to you all is if it even makes sense:

    If I was your manager, what would you recommend I should learn/catch-up on first to help make this process a smooth one. I want to have a good working relationship with my developers and future CTO to be able to judge what makes sense to ask of them and how to evaluate their performance.

    Some project background for you to get a sense of what I am working with:

    Using website scrappers to get the data we need and then use bots to reach out to customers on our clients behalf.

    Some languages, frameworks and tools we use:

    Laravel -> PHP

    Node.JS

    Angular 7

    MySQL

    AWS/Lambda

    Git/GitHub

    Thank you for your time!

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

    What is the sneakierlst Easter Egg you've discovered in code, or a EULA for software?

    Posted: 05 Jul 2019 01:00 PM PDT

    My go to here is that when installing iTunes it tells you that you must not use iTunes:

    You also agree that you will not use these products for any purposes prohibited by United States law, including, without limitation, the development, design, manufacture or production of nuclear, missiles, or chemical or biological weapons.

    Here the product you're using is iTunes, but it makes me wonder, as most people just hit accept, what other programs have Easter eggs like this?

    Who has played around in source code and discovered Easter eggs like this?

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

    Beginners Help

    Posted: 05 Jul 2019 07:05 PM PDT

    Hello everybody

    I have just started a course in BitDegree on Java, I am on my third class, but I ran into a problem, the instructor is using a Mac to write, compile his code, I have a PC, i downloaded Notepadd++ to write my codes and I had no problem doing it, he uses a program called Terminator for Apple to compile and run his codes, I have tried to use CMD, i needed to set the path to use javac and java, I have successfully done it, but it cannot find my class, HelloWorld.java, what is a similar terminator for PC so i can better follow the classes?

    Thank you very much

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

    Type that may have one of several specific values?

    Posted: 05 Jul 2019 10:26 AM PDT

    A soft question here, but anyway... I'm looking for a word/concept to describe a type that may take one of several specific, known values. Kind of like a enum, but where the values are not named or specially distinguished. Or perhaps like a union, but with values instead of types. What would you refer to it as?

    For example: a way to describe an integer type whose value could only be one of 3, 16, or 459.

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

    So if software engineering/development is such a hot job/career to pursue, why is it that so little coding is actually done on a daily basis?

    Posted: 05 Jul 2019 08:42 PM PDT

    Like, I know someone who worked for Google developing web apps. I asked him how much coding he actually did on a daily basis and, even though it depended on the project and stuff like that, maybe like 20 or 30 new lines. I was like "Seriously?!".

    I mean, these are people making beaucoup bucks who don't even code that much during an 8 hour work day.

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

    re: GitHub

    Posted: 05 Jul 2019 07:54 PM PDT

    What type of repositories should I upload onto my account if the purpose is to showcase my skill to a potential employer? My good friend from college majored in Information Technology, and he uploads terminal commands. I'm learning how to program with Python3, and I noticed there were some differences in syntax between the repositories uploaded by other users on GitHub and the material I am using to study. Why is that?

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

    Is it Possible to Use DOM elements in Javascript Class Methods?

    Posted: 05 Jul 2019 05:15 PM PDT

    This is my first time using JavaScript Classes. I'm trying to create a class that stores a DOM element in a variable to be used in one of its methods, but the variable is coming up as undefined.

    class MyScroll{ constructor(target){ this.target = target; this.targetContainer = $('#'+target); this.targetContainerTop = this.targetContainer.position().top } scrollStart(){ document.addEventListener("scroll",this.scrollUp); } scrollUp(){ var windowTop = $(window).scrollTop(); var newPos =this.targetContainerTop - windowTop; document.getElementById(this.target).style.transform = 'translate3d('+this.newPos+'px,' + 0 + 'px, 0)' } } var test = new MyScroll('testDiv'); test.scrollStart() 

    this.target in scrollUp shows up as undefined in console.log()

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

    Help understanding API- custom input to req.write field

    Posted: 05 Jul 2019 05:06 PM PDT

    Hi guys,

    I have a hard time understanding how this API works and how I can feed it user form input to the req.write('{ "upc":"604214384507"}') field . Any help would be greatly appreciated!

    const https = require('https')
    var opts = {
    hostname: 'api.upcitemdb.com',
    path: '/prod/trial/lookup',
    method: 'POST',
    headers: {
    "Content-Type": "application/json",
    }
    }
    var req = https.request(opts, function (res) {
    console.log('statusCode: ', res.statusCode);
    console.log('headers: ', res.headers);
    res.on('data', function (UPCoutput) {
    var UPCparsed = JSON.parse(UPCoutput);
    console.log('Product: ' + UPCparsed.items[0].title);
    console.log('UPC: ' + UPCparsed.items[0].upc);
    console.log('Image: ' + UPCparsed.items[0].images[0]);
    console.log('Price: ' + UPCparsed.items[0].offers[0].price);
    })
    })
    req.on('error', function (e) {
    console.log('problem with request: ' + e.message);
    });
    req.write('{ "upc":"604214384507"}')
    req.end()

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

    Is there inheritance for HTML?

    Posted: 05 Jul 2019 12:16 PM PDT

    So i have a header and a footer that i want to have on several pages. I do not know how many pages I will have to make. Is there a way i can store the properties of the header and footer and just call them up rather than just copy->paste all the time?

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

    Web-Page Script questions

    Posted: 05 Jul 2019 03:52 PM PDT

    I'm relatively new to HTML and CSS and I have a question about a script that I'm using within my web page to control a navigation menu. Currently the script is in the body and this is because I'm following W3schools tutorials and that's where they placed it.. Why is it that when I move this particular script into the head that it no longer works? I've been trying to style my code so that it is easy to navigate, so my second question is: if the script must be in the body is the convention to place scripts at the top of the body or at the bottom of the body? Thank you for any help!

    HTML:

    <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="webv2CSS.css"> ####### Why can't I move the script here? ########## </head> <body> <div class="header"> <h2>Scroll Down</h2> <p>Scroll down to see the sticky effect.</p> </div> <div id="navbar"> <a class="active" href="javascript:void(0)">Home</a> <a href="javascript:void(0)">News</a> <a href="javascript:void(0)">Contact</a> </div> <div class="content"> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> <p>FINALLY SOME GOOD FUCKING CONTENT</p> </div> <div class="footer"> <p>This is a Footer</p> </div> <script> window.onscroll = function() {myFunction()}; var navbar = document.getElementById("navbar"); var sticky = navbar.offsetTop; function myFunction() { if (window.pageYOffset >= sticky) { navbar.classList.add("sticky") } else { navbar.classList.remove("sticky"); } } </script> </body> </html> 

    CSS:

    body { margin: 0; font-size: 28px; font-family: Arial, Helvetica, sans-serif; } .header { background-color: #f1f1f1; padding: 30px; text-align: center; } #navbar { overflow: hidden; background-color: #333; } #navbar a { float: left; display: block; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; } #navbar a:hover { background-color: #ddd; color: black; } #navbar a.active { background-color: #4CAF50; color: white; } .content { padding: 16px; } .sticky { position: fixed; top: 0; width: 100%; } .sticky + .content { padding-top: 60px; } 
    submitted by /u/Joe_SU
    [link] [comments]

    Create a client like League of Legends that supports motion design (airbnb), where do I start for a barebones version? Can anyone provide a tutorial roadmap? What do I start to learn? (I have some Wes Bos courses I bought, should I start there?)

    Posted: 05 Jul 2019 03:41 PM PDT

    I stumbled through learning AngularJS to put together a calculator for damage for League of Legends. It was a lot of fun! I'm interested in making a client that supports animation like the League of Legends client as a personal project.

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

    What program would be the best for collecting webpage links?

    Posted: 05 Jul 2019 10:21 AM PDT

    Hi, I need to collect a lot of webpage links and paste them into a notepad or some other text file. Essentially what I need it to do would be to go on to a page like youtube (example) and be able to click on a video get the link, put into into a text file, then go back to the original page and do the same for a second, third, ect video.

    Edit: maybe URL's is a better way to say link

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

    Will Intellji get the company I'm in co op for in trouble if I used an education license?

    Posted: 05 Jul 2019 01:54 PM PDT

    I'm doing my co op and I really like Pycharm's professional IDE for development. I was wondering if would be an issue if I personally chose to use it with the education license.

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

    Areas of linear algebra to brush up on?

    Posted: 05 Jul 2019 07:19 AM PDT

    Hi, I'm gonna start learning opengl and it's clear one needs a good knowledge of linear algebra for this. What areas of linear algebra from college should I brush up on? Is it mainly transformations and rotations?

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

    Tabs or spaces?

    Posted: 05 Jul 2019 12:27 PM PDT

    I'm new.

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

    What coding language and libraries to use to build simple 2d games?

    Posted: 04 Jul 2019 11:39 PM PDT

    I want to build some games like lumosity, brain games, arithmetic flash cards, etc to aid our teachers

    The game will run on a browser (chrome/safari/edge). trying not to use any flash/etc, just so it's accesible to all parents

    Simple 2d designs, nothing too heavy

    Will have to code in some algorithms that create questions. Wil need to record data and input data from a form

    What languages and libraries can we use?

    HTML5?

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

    What is the most efficient way of running regular expressions?

    Posted: 05 Jul 2019 05:31 AM PDT

    Hello!

    So, I'm not exactly a seasoned programmer, but need to implement this code that basically changes strings into other strings. I need it to run as fast as possible. Does anyone have hints on libraries or specific ways of implementing this? I'm a quick learner, so I'm willing to work with any language that is most suitable for this. Thanks in advance!

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

    Frequency in an array [C language]

    Posted: 05 Jul 2019 05:06 AM PDT

    How can i write this with only including <stdio.h>

    i first ask user to list the array then i tell what's the most repeated element of this array

    Output:

    array: 7 5 13 7 2 5 7 5 7

    Frequency: 7

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

    For loop conventions

    Posted: 05 Jul 2019 04:50 AM PDT

    Should you have a for loop in which the contents need to start at 1, what would be (in your opinion, obv.) best practice?

    1. Adjusting the loop to start at 1 and end one later

    2. i + 1 everywhere

    3. Other

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

    I need to study a DLL file that is a hack to a videogame i play to try to make a counter to it. Pls help me start this, by knowing what steps i must take.

    Posted: 05 Jul 2019 03:13 AM PDT

    The file is dsound.dll and i downloaded it from this:

    https://www.mpgh.net/forum/showthread.php?t=938564

    If you cant access it i made it available through wetransfer:

    https://we.tl/t-wokEd4w38z

    The file is a dll which seems encoded. I have no idea how to decode it or decrypt it. And I would like to know what can i do to reveal it, and understand it.

    https://pastebin.com/CnTCiM24

    This is the copy paste raw from the file opened with notepad.

    Please let me know the steps i must take to decypher this in its raw language, because all of that looks alien.

    Thanks

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

    What database should I use for a Queueing System built in C#?

    Posted: 05 Jul 2019 01:52 AM PDT

    I want to create a Queueing System for a school's administration office. I am confused in regards to the back-end side of things lmao. I dont know anyone in my life to ask about this so here we go. :^(

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

    Lane Line Labelling

    Posted: 04 Jul 2019 11:22 PM PDT

    Hi so I'm working on a project that automates annotation of road lane lines. The output will be an array containing detected lane lines as shapes and each lane line has an array of points. The question now is how to I create the logic to be able to determine the labelling of the lines. e.g. leftleft, left, middle(lane changing scenarios), right, rightright. The output lines are not in order so based on the x,y coordinates of the few lines I have to determine which line is which. The program can detect a maximum of 5 lines as I stated the naming above. If no lane change 4 lines maximum. Thank you.

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

    No comments:

    Post a Comment