• Breaking News

    Friday, December 28, 2018

    What are your thoughts on the idea that some people just don't have the ability to code or don't have a logical enough mind for understanding the syntax and logic of programming languages? Ask Programming

    What are your thoughts on the idea that some people just don't have the ability to code or don't have a logical enough mind for understanding the syntax and logic of programming languages? Ask Programming


    What are your thoughts on the idea that some people just don't have the ability to code or don't have a logical enough mind for understanding the syntax and logic of programming languages?

    Posted: 28 Dec 2018 03:49 PM PST

    I've heard this in a few places both across the web and also from a CS professor I once had. It was for a web dev class and he basically said on day one "I don't expect you to master JavaScript and HTML by tomorrow, but I'll know by the time of the first exam if some of you are meant for programming and some of you aren't", or something like that.

    And so I was just wondering what you all think about this?

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

    UDP packets from home network not received, but they reach the computer

    Posted: 28 Dec 2018 03:57 PM PST

    I spent many hours trying to fix this, but I'm lost.

    I'm trying to send UDP packets from another machine in home network (second computer and phone). It works - Wireshark reports received packets.

    But the program never receives anything.

    This is Ruby program I use to listen:

    require 'eventmachine' EM.run do puts "EM.run" EM.open_datagram_socket '0.0.0.0', 9100 do |server| puts "socket open" def server.receive_data(data) puts "data received: #{data}" send_data("sending back: #{data}") end end end 

    I tried with Go, too: https://gist.github.com/SshPwd/51fb5b1e61004014c616b26e17380e3b

    Both Ruby and Go programs receive UDP packets from localhost properly, just not from remote machines (but I can see them properly delivered in Wireshark). Funny thing is, when I send some packets from localhost with UDP sender, right after that Ruby program will start to receive packets from remote computer, but Go program won't.

    All firewalls are off. Any ideas where should I look? Thanks a lot.

    PS. I posted this question to stackoverflow too, but to no avail.

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

    Scared to work in the industry

    Posted: 28 Dec 2018 06:13 PM PST

    So I'm about to finish uni doing a games technology course. I really would like to work in industry and I'm worried I won't last. I get pretty average grades and a lot of people on my course are a lot better, I'm worried even if I got a job I wouldn't be able to keep up. Any tips or experiences that might help? Thanks.

    submitted by /u/12nathanb
    [link] [comments]

    Quick question about social media app and user instance

    Posted: 28 Dec 2018 08:30 PM PST

    Should I create a strict/class global instance or Singleton to keep track of the user and help communicate with my data base or ?

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

    Programming job with more social interaction?

    Posted: 28 Dec 2018 07:58 PM PST

    After working a programming internship I quickly learned that 8 hours a day with only maybe one short meeting is not enough social interaction for me. Are there any related jobs that are more social? I've been thinking business analyst or similar jobs may fit the bill but it seems like a waste to go to school for such a hard degree for that.

    Thanks

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

    Making an App from Someone's Idea

    Posted: 28 Dec 2018 07:43 PM PST

    While I'm browsing Reddit, I come along the words, "Someone should make an app about that", and I was wondering: If I were to implement an App based off of someone's idea, do I owe them anything? Is it mine, theirs, both?

    What if the App made it big (unlikely), could they just turn around and attempt to sue my pants off for taking their napkin/notepad idea?

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

    Self Signed Certificates vs. Certificate Authority Issued Certificates in SSL

    Posted: 28 Dec 2018 07:11 AM PST

    Hello!

    I am having some trouble understanding the different schemes which which certificates are issued and used for authentication purposes. My current understanding is as follows:

    Let's imagine three entities, the client wishing to authenticate to some service, the server hosting the aforementioned service, and a third party certificate authority.

    The client and certificate authority each have their own pair of private/public keys.

    In a self-signed scheme, the client generates the certificate, which includes the public key, and a signature which is a message encrypted using the client's private key. Using the public key on the certificate, the server can decrypt the message and verify that it was signed with a particular private key.

    Where does the message come from? Is it advertised by the server? Is there some standard message to be encrypted that is widely used in industry?

    In a Certificate Authority signed scheme, it seems that only one thing changes. The certificate still contains the client's public key, but the signature consists of the message signed with the certificate authority's private key. The server then authenticates against that signature using the certificate authority's public key, and then knows for future communications that the public key provided is valid for the client.

    Is this understanding correct? Any help is appreciated. Thanks!

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

    How can I change the background color that backgrounds only some text, in a PDF?

    Posted: 28 Dec 2018 06:40 PM PST

    With vision disorders, my grandpa can't read text whenever backgrounded by dark color, almost every page in the lengthy books beneath. It's obviously too unproductive to remove ecah use of the dark background color one-by-one. Thus how can I, in one brisk stroke? Please see this screenshot.

    McKendrick backgrounds with only 1 color (dark blue), but Craig backgrounds with 2 colors (grey and dark blue). I've Adobe Acrobat DC Pro, Foxit PhantomPDF, and Nitro Pro.

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

    Quick question about "Wake on LAN".

    Posted: 28 Dec 2018 08:51 AM PST

    If I enable "Wake on LAN" on a PC or Mac, will it wake up for any arbitrary packet?

    That is to say, could I wake up a sleeping (or hibernating) laptop by pinging it?

    I'm trying to repurpose an old laptop as a headless server, I want to be able to wake it up without going to the closet, opening the lid and pushing the power button.

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

    What do you guys think are some of the most mathematically intensive paths in programming.

    Posted: 28 Dec 2018 09:47 AM PST

    I'm about to start college soon and just wanted know some mathematically challenging career paths for programming to go down, the two I can think of off the top of my head to try are Data Science, and Machine Learning/AI. Any other suggestions?

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

    Best language for procedural programming?

    Posted: 28 Dec 2018 08:28 AM PST

    Please help me find a language that ticks as many boxes as possible from the following (hopefully all):

    • is well suited to procedural programming (I want as little as possible OOP, preferably none)
    • works well on Windows
    • is compiled (makes standalone EXEs)
    • isn't too verbose (meaning that I don't want to write 100 lines of includes and declarations just for a "Hello World")
    • is easy to iterate in (meaning that I want to be able to edit, compile and run fast)
    • is as high level as possible

    Please don't judge. I want to do this for my personal enjoyment.

    I've considered C (not very high level) and Free Pascal. Any other ideas?

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

    "initialize weights randomly with mean 0"

    Posted: 28 Dec 2018 02:03 PM PST

    So I'm working on understanding this python script that I found for a super simple neural net (located here), but I'm not really sure what these lines mean:

    22. # initialize weights randomly with mean 0 23. syn0 =2*np.random.random((3,1)) -1 

    I assume that it's generating an array of numbers and then trying to make their mean equal to 0 (which it then assigns as weights to the "neurons"), but I calculated the mean and it doesn't equal 0, so I'm not really sure what's going on.

    Can anyone help with this?

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

    Any patterns for extracting tooling from multiple repositories?

    Posted: 28 Dec 2018 08:34 AM PST

    I'm working on a project where an increasing number of small mini apps all share nearly the same tooling - makefiles, dockerfiles, jenkinsfiles and webpack configs, along with a couple of scripts, are all rigged for each project to give a standard set of dev tools for each project.

    This is becoming increasingly difficult, as updates to the build process mean changing what is essentially the same file in each project in order to keep them all inline and working. I'd like to get them into their own repo, but the tools, especially make and docker, are very dependent on their location in the file structure. I'm tempted to use another makefile that just templates in what's needed to populate all of these files in the correct places, but that feels a little bootleg.

    Have you worked with extracting project tooling like this? If so, how did you work around the requirements of these tools?

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

    Does recycling an app pool in IIS cause the associated sites' constructor methods to be re-executed?

    Posted: 28 Dec 2018 05:11 PM PST

    Transcribe TwitchTv Past Broadcasts' Audio to Text

    Posted: 28 Dec 2018 08:27 AM PST

    I'm a phd student trying to do some research using a sample of TwitchTv broadcasters by analyzing their speech through text analysis. You can measure things like positive, negative emotions, authenticity, etc. Would really appreciate any help. I was wondering if there is a way to easily transcribe all the audio from past broadcasts to text without having to have my computer recording the entire audio to transcribe for, say a 5 hour stream? Ideally, I would like to have the audio transcribed to text across say 20-40 prior broadcasts, for 2-300 streamers. For example, with youtube, if I'm understanding correctly, you can use their api to download transcribed text transcripts for any videos. So either I'm trying to figure out if there's a way to either run all of those transcriptions automatically using amazon web services or something that might not cost an arm and a leg. Or, maybe there's some other solution because it's not really feasible to collect that much data just having a computer to be constantly transcribing. I haven't done much coding in the past, so I'm sorry if these are dumb questions! I could pay a few hundred bucks to be able to do this but I'm a pretty poor student, so not much more. Thank you.

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

    Looking for some pointers on developing a map GUI for a project

    Posted: 28 Dec 2018 09:41 AM PST

    Basically, as part of a Uni project I'm developing a route finding desktop application. I've been working on the back-end - creating graphs of a road network and searching them for the shortest route, and drawing individual map tiles to image files - but now I need to start building the front-end, the display of the map and the route on top of it.

    It's a desktop application coded in Java. What I need to create is a map interface that can be scrolled left/right/up/down and zoomed in and out of, and have a specific route super-imposed on top of it. I've done next to no Java GUI work before. There are loads of tutorials out there, but as time is limited I'm don't want to just learn everything about GUIs in Java, if half of that isn't going to be relevant to my particular project.

    Can anyone point me towards some tutorials or resources about GUI programming in Java that would be particularly suited to my application? Hopefully I've presented it clearly enough. Any advice is much appreciated.

    submitted by /u/Jay-Em
    [link] [comments]

    Need Guidance: Web Dev

    Posted: 28 Dec 2018 11:43 AM PST

    helo. i am currently trying to teach myself how to code. heavily investing my time on freecodecamp. my goal is to be a full stack web developer someday.

    but well, i don't really have that much time to spend on just learning. if possible, i want to make money the soonest. my location doesn't offer any programming jobs so i plan to just freelance online.

    i'm thinking about these routes:

    NODE.JS

    1. learn front end dev(html,css,js,react)

    2. once mastering front end, look for freelance jobs

    3. start taking the fullstack route and start learning node js and databases and all related stuff

    *i prefer this route because it gives me the option to learn react native(mobile dev) and electron(desktop) more easily. i just really wonder if i can get freelance jobs asap with this because i think wordpress is more preferred in freelance industry

    PHP

    1. learn front end(html,css,js)

    2. learn wordpress

    3. learn basic php

    4. look for jobs

    5. learn more php and start fullstack

    so yeah. i may know some of these stuff already but really im still a beginner and badly need of an advice.

    THANKS.

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

    [node] express app getting hit multiple times after next()

    Posted: 28 Dec 2018 03:00 PM PST

    I'm trying to figure out how to get this to behave. Currently even after it hits return next(), it gets hit a couple times. Basically I see a bunch of additional runs after a successful credential

    auth called auth called auth called auth called auth called 

    I've tried to wrap this a few ways to be asynchronous, but I keep failing.

    app.use(function (req, res, next) { console.log('auth called') // Create an auth object var nodeSSPIObj = new NodeSSPI({ retrieveGroups: true }) // Authenticate it nodeSSPIObj.authenticate(req, res, function (err) { if (req.connection.userGroups != null) { req.connection.userGroups.some(function (el) { var isauthgrp = settings.authorizedgroups.includes(el) if (isauthgrp === true) { return next() } }) } if (err != null) { console.log(err) } }) }) 

    I could use some advice. Callbacks and promises are wearing me out.

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

    return statment

    Posted: 28 Dec 2018 05:33 PM PST

    if my self defined function returns 0; and if it didn't work it won't return 0 ; it will return 1; ior nothing at all but 0; otherwise

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

    Looking for a way to send reminders to clients for appointments

    Posted: 28 Dec 2018 09:43 AM PST

    Hello,

    I am not sure if this the right thread to post this on but I am representing a patio construction company and I was wondering how I could send out reminders to clients letting them know that they have an estimate at a specific date and time. An example that I could use is when the doctor's office sends out reminders via email reminding patients of appointments. Another thing is that the person who would be sending them out isn't very tech saavy in the sense that they probably couldn't read source code and understand how to configure a program. I am looking for a way that they only need to supply emails and the program will send out reminders to those emails. I hope that made sense, lol. If there is a more appropriate thread please feel free to let me know! I have added a link to a reference we would like to use from a local doctor's office.

    https://imgur.com/a/HDWRPUZ

    Thank you,

    Sleepy3005

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

    So I really want to get into data science but there's so many choices on where to start. So I found a few courses online and was wondering if any of you here think they're a good starting point or if I should move to something else

    Posted: 28 Dec 2018 03:36 AM PST

    Full disclosure: I do not come from an engineering or CS background like so many people on r/datascience. And the only programming experience I do have was through a web development course I had to take as part of a university requirement

    So in terms of the courses I have lined up, there's ones by Jose Portilla on Udemy that introduce R, Python and SQL. They all seemed interesting and it seemed like if I finished them, I could walk away with enough knowledge to practice those languages on my own and move on to more advanced stuff

    Then there's an introductory statistics course taught by 365 Careers. It just gives an overview of introductory stats and applies them to the real world. This is also on Udemy

    And then there's Data Science A-Z taught by Kirill Eremenko. This course seems more in-depth and also focuses on SQL and SQL Server as well as learn things like data mining, analysis, regression, etc.

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

    I want to create a word-map generator like this, but with 1 language and 1 word per country. I would want to colorize the map based on the background of a word (e.g. from Germanic/Latin/etc) - How would I start and do this technically?

    Posted: 28 Dec 2018 05:08 AM PST

    No comments:

    Post a Comment