• Breaking News

    Saturday, August 3, 2019

    Advice Needed: Creating a home wifi landing page for family or something similar? Ask Programming

    Advice Needed: Creating a home wifi landing page for family or something similar? Ask Programming


    Advice Needed: Creating a home wifi landing page for family or something similar?

    Posted: 03 Aug 2019 10:25 AM PDT

    I'm a novice web dev student, having some familiarity with JS, Node JS, and API's.

    I really want to start working on projects ideas I have to improve my skills, and one idea is to build a home landing page for the wife and kids. The idea would be a website they see whenever they hop on the internet, and it will list different things that are of interest to everyone in the house. (i.e. Weather, Family Calendar, Ongoing Projects, etc.) I understand a bit of how I can make the website work with js and some API's.

    The part I do not understand is how to make this webpage appear whenever they get on the internet. Something with DNS server connections, maybe? Am i totally misguided on this idea? If anyone could help point me in the right direction, I'd appreciate it.

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

    Could someone help me out and explain this MATLAB code to me?

    Posted: 03 Aug 2019 08:18 PM PDT

    Hi, I've got a school project where I need to translate this MATLAB code into Javascript but I've never worked with MATLAB (Or Javascript) I've only done Java (I'm inexperienced, too. So that's not helpful.)

    Any help in explaining what this code is doing, or even better some tips on how to build it's equivalent in Javascript, is greatly appreciated. The parts I REALLY don't understand are:

    g(find(g<0))=0;

    and

    VO2(find(negGrade<0))=VO2dec(find(negGrade<0));

    Here is the full code...

    function [ VO2 ] = calcMonster( s,g ,t) VO2rest=3.05; %3.05 N=20, 3.21 N=32; %3.21 paper emprical %3.26 used in spread sheet VO2walkmin=3.28; C1=0.32; C2=0.19; C3=2.66; Cdecline=0.73; negGrade=g; g(find(g<0))=0; %Find any gradients that are less than 0 and make them 0 VO2move=((C1.*g)+VO2walkmin)+((1+(C2.*g)).*(C3.*(s.^2))); VO2inc=VO2rest+(t.*VO2move); VO2dec=VO2rest+(Cdecline.*(t.*VO2move)); VO2=VO2inc; VO2(find(negGrade<0))=VO2dec(find(negGrade<0)); end 
    submitted by /u/Moist-Von-Lipvig
    [link] [comments]

    Good ASP.NET Core book

    Posted: 03 Aug 2019 07:28 PM PDT

    I'm looking for a good ASP.NET Core book, has anyone read one and recommend it? Or is there a common website for these type of questions on programming books?

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

    How can do this in C++;

    Posted: 03 Aug 2019 08:31 PM PDT

    for(int i = 0; i < lengthOfArray; i++){ int newLocation = (i + (lengthOfArray - shiftAmount)) % lengthOfArray; a[newLocation] = in.nextInt(); }

    a[newLocation] = in.nextInt();

    This line?

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

    REGEX - Using java split, matching one or more occurrences for a set of characters, but TWO or more occurrences for another character

    Posted: 03 Aug 2019 06:42 PM PDT

    Hi all,

    if I had "Hello / Reddit / Hello World", and I wanted to split it so it becomes (the array returned) [Hello, Reddit, Hello World], how would I go about doing that? I tried things like "[^ A-Za-z]+[ ]{2}" as the regex in the string.split to no avail, and can't find many answers online for this.

    Any help is appreciated, thanks!

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

    Super Beginner Python Question

    Posted: 03 Aug 2019 05:51 PM PDT

    I just got to learning about the difference between strings and integers.

    So the practice wants me to convert between the two using the functions:

    converted_var = str(var) and converted_var = int(var)

    >>> butthole = 30

    >>> butthole / 30

    1.0

    >>> converted_butthole = str(butthole)

    >>> butthole / 30

    1.0

    >>>

    If everything is working correctly, after I turn 'butthole' into a string the division operation shouldn't work anymore? What's wrong?

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

    How to start learning Java?

    Posted: 03 Aug 2019 03:37 AM PDT

    I would like to start learning Java by my self and I'm kinda confused how do I start, I mean what Java version should I learn and what good resources should I use ? I prefer books If there is any recommended books i appreciate that

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

    Firebase: how do I go about communicating with my database ?

    Posted: 03 Aug 2019 03:09 PM PDT

    I want the data base to change and push data to the current logged in user. So do I use a singleton to do this so I don't have to repeat it call the methods every time I need to use the database. Is this the correct way to do it? I'm using firebase with Unity by the way. Or does the firebase sdk do something different?

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

    Running pathing code that wraps c++ on hadoop

    Posted: 03 Aug 2019 02:10 PM PDT

    Hello, I am developing a natural language processing library in c++ and nim for work. I need to make python wrappers for my c++ api and use it to run on our hadoop cluster.

    How do I go about running this sort of thing? I've been told this is not possible, however many deep learning libraries are just cpp wrapped with python so this is obviously possible. I'm new to hadoop, I have mainly a robotics/ml background.

    Edit: thanks phone now it says pathing not python

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

    How to represent these class relationships in C++

    Posted: 03 Aug 2019 01:13 PM PDT

    Say we have classes for:

    1. Company
    2. Department
    3. Project
    4. Employee
    • And we need to track which employees are in which department, what projects does a company have - etc.
    • And also we need to read and write these to a file.

    Would you use UUID variables in each object and have references to it in all the others? I tried that but ran in some weird C++ compiling problems (like what headers I need and how to #include properly) and got stuck.

    I'm thinking I could use strings and keep the classes separate? E.g. a company (object) "ABC" has an employee "John Smith" (string) and an employee (object) "John Smith" has a company (string) "ABC", and when a query for employees comes in I loop through all the employees but only print the matching ones. (It doesn't need to be scalable).

    As this is a school assignment, the idea is to use classes and no databases :(

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

    Emoji rendering as black box

    Posted: 03 Aug 2019 11:56 AM PDT

    I have noticed that certain emojis render as boxes, for example the eye emoji. This is on Chrome Version 75.0.3770.142 running on Windows 7 Home Premium, Service Pack 1. I installed the extension Chromoji, which has allowed some emojis to render properly and in color, but others still appear as black boxes.

    If I copy and paste the eye emoji I can see it, but then when the html renders it goes back to the black box.

    Example at https://imgur.com/a/0xal6vW

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

    Want to build a web site that is essentially just live streaming some content that I host locally

    Posted: 03 Aug 2019 11:33 AM PDT

    Imagine I have about 10 different video files stored locally. I want to rotate through them on repeat, and have this play so that if you visit my site, you will tune in to wherever the stream is playing at.

    I think I just need a video player capable of handling a live stream, but I'm not sure how I'd stream the video to the player.

    Any thoughts or help would be appreciated.

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

    I just finished laying out a website with Grid for the first time, do you see anything I can improve on?

    Posted: 03 Aug 2019 09:44 AM PDT

    You can see my site live here: remodelingprostx.com I haven't optimized the site for mobile or responsiveness for now I'm just trying to get the Grid part down.

    There are some obvious things I notice, like the middle picture under "Some of Our Work" is off center a bit. And on mobile there's a big white space to the left of the content that throws it off center.

    What do you see that I can improve on?

    <html lang="en"> <head> <meta charset="utf-8"/> <title>Kitchen Remodeling Pros Arlington, TX</title> <link rel="icon" href="icon.png"/> <link rel="stylesheet" href="stylesheet.css"/> </head> <body> <div class="layout"> <header class="header"> <img class="logo-header" src="logo.png"/> <button class="button-header"> Button </button> </header> <nav class="nav nav-header"> <p class="nav-home1">Home</p> <p class="nav-portfolio1">Portfolio</p> <p class="nav-testimonials1">Testimonials</p> <p class="nav-services1">Services</p> <p class="nav-contact-us1">Contact Us</p> <p class="nav-about-us1">About Us</p> </nav> <main class="main"> <h1 class="main-heading">The Best Remodeling in Arlington, TX</h1> <h2 class="main-subheading">Providing professional and high end quality service for over 40 years</h2> <img class="main-img" src="main-700.jpg"/> </main> <section class="portfolio"> <h2 class="portfolio-heading">Some of Our Work</h2> <figure class="portfolio1"> <img src="p1-576.jpg"/> <figcaption> In nisi turpis, mollis eget finibus at, varius vel lacus. Nam aliquet. </figcaption> </figure> <figure class="portfolio2"> <img src="p2-576.jpg"/> <figcaption> Aliquam mollis turpis malesuada vestibulum porta. Vestibulum tincidunt arcu id efficitur commodo. </figcaption> </figure> <figure class="portfolio3"> <img src="p3-576.jpg"> <figcaption> Sed pellentesque et ligula in tempor. Maecenas sodales nulla at nibh pellentesque. </figcaption> </figure> </section> <section class="testimonials"> <h2 class="testimonials-heading">What Our Customers Have to Say</h2> <div class="testimonial testimonial1"> <img class="testimonial-img" src="dog1-300.jpg"/> <p class="testimonial-name">Lois Walker</p> <p class="testimonial-area">Interlochen Estates</p> <p class="testimonial-text">Nulla tristique viverra volutpat. Cras ac iaculis erat. Pellentesque fermentum tortor sed orci consectetur rhoncus. Sed semper vulputate sem, ut aliquet felis elementum ac. Phasellus mattis et ligula non pulvinar.</p> </div> <div class="testimonial testimonial2"> <img class="testimonial-img" src="dog2-300.jpg"/> <p class="testimonial-name">Annie Lopez</p> <p class="testimonial-area">West Park Row</p> <p class="testimonial-text">Suspendisse orci sem, consequat eget ipsum in, suscipit vulputate quam. Nullam nec consectetur nunc, eget bibendum ante. Praesent imperdiet quam a tortor porta pulvinar at sed libero. Mauris eget convallis.</p> </div> <div class="testimonial testimonial3"> <img class="testimonial-img" src="dog3-300.jpg"/> <p class="testimonial-name">Gerald Campbell</p> <p class="testimonial-area">Vitruvian</p> <p class="testimonial-text">Sed ac orci sem. Nam aliquet sodales nibh, id porttitor neque. Etiam a imperdiet ante, id ornare massa. Nunc convallis consequat lacus a eleifend. Curabitur interdum scelerisque leo, sed finibus.</p> </div> </section> <section class="services"> <h2 class="services-heading">Our Services</h2> <img class="services-img" src="services-576.jpg"/> <div class="services-text"> <p>Vivamus fringilla sagittis risus non aliquet. Quisque venenatis odio sit amet odio vehicula porta. Nullam consequat non sapien vitae tempus. Quisque ut risus malesuada. Aenean et dignissim nibh.</p> <p>Fusce vel iaculis neque, sodales dapibus quam. Suspendisse pellentesque leo a velit accumsan sollicitudin. Curabitur quis pellentesque nisl. Duis volutpat. In scelerisque, dolor et mollis porttitor, nisi neque pulvinar libero, a blandit mi velit non ante. Pellentesque porttitor non tellus ut varius. Cras vestibulum.</p> </div> </section> <nav class="nav nav-footer"> <p class="nav-home2">Home</p> <p class="nav-portfolio2">Portfolio</p> <p class="nav-testimonials2">Testimonials</p> <p class="nav-services2">Services</p> <p class="nav-contact-us2">Contact Us</p> <p class="nav-about-us2">About Us</p> </nav> <footer class="footer"> <img class="logo-footer" src="logo.png"/> <button class="button-footer"> Button </button> </footer> </div> </body> </html> 

    .layout { width: 60%; margin: 0 auto; display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(8, auto); grid-template-areas: "header" "nav-header" "main" "portfolio" "testimonials" "services" "nav-footer" "footer"; } /*----------HEADER/FOOTER----------*/ .header { grid-area: header; } .footer { grid-area: footer; } .header, .footer { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-areas: "logo button-header"; } .logo-header, .logo-footer { display: flex; justify-self: start; } .button-header, .button-footer { display: flex; justify-self: end; } /*----------NAVIGATION----------*/ .nav { width: 80%; margin: 0 auto; display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; } .nav-header { grid-area: nav-header; } .nav-footer { grid-area: nav-footer; } /*----------MAIN----------*/ .main { grid-area: main; display: grid; grid-template-columns: auto; grid-template-rows: repeat(3, auto); grid-template-areas: "main-heading" "main-subheading" "main-img"; justify-items: center; } .main-heading { grid-area: main-heading; } .main-subheading { grid-area: main-subheading; } .main-img { grid-area: main-img; } /*----------PORTFOLIO----------*/ .portfolio { grid-area: portfolio; display: grid; grid-template-columns: auto; grid-template-rows: repeat(4, auto); grid-template-areas: "portfolio-heading" "portfolio1" "portfolio2" "portfolio3"; justify-items: center; } .portfolio-heading { grid-area: portfolio-heading; } .portfolio1 { grid-area: portfolio1; } .portfolio2 { grid-area: portfolio2; } .portfolio3 { grid-area: portfolio3; } figcaption { width: 50%; margin: 0 auto; } /*----------TESTIMONIALS----------*/ .testimonials { grid-area: testimonials; display: grid; grid-template-columns: auto; grid-template-rows: repeat(4, auto); grid-template-areas: "testimonials-heading" "testimonial1" "testimonial2" "testimonial3"; justify-items: center; } .testimonials-heading { grid-area: testimonials-heading; } .testimonial1 { grid-area: testimonial1; } .testimonial2 { grid-area: testimonial2; } .testimonial3 { grid-area: testimonial3; } .testimonial { width: 60%; margin: 0 auto; } .testimonial-img { border-radius: 50%; float: left; } /*----------SERVICES----------*/ .services { grid-area: services; display: grid; grid-template-columns: auto; grid-template-rows: repeat(3, auto); grid-template-areas: "services-heading" "services-img" "services-text"; justify-items: center; } .services-heading { grid-area: services-heading; } .services-img { grid-area: services-img; } .services-text { grid-area: services-text; width: 70%; } 
    submitted by /u/sea_place
    [link] [comments]

    What’s a good book for getting to grips with gritty platform specific aspects of C++?

    Posted: 03 Aug 2019 09:41 AM PDT

    https://github.com/kimwalisch/libpopcnt/blob/master/libpopcnt.h

    I came across this library because I wanted to know how many bits were 1 in an integer. Clearly this is a task with a bunch of hardware optimisations and compiler builtins that are not cross-platform.

    Having read a few books on writing expressive, safe C++17, I feel I am lacking a bit in the grittier elements of the language. For example I definitely didn't know you could do a 64 byte memory copy in a single machine instruction or that you might work code around that instruction.

    A simplistic question with the same spirit: are there any good books where I could look at that libpopcnt.h and it would make total sense?

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

    Anybody got a list of employers that don't skimp out on tools for their developers?

    Posted: 03 Aug 2019 08:38 AM PDT

    So my company is extremely stingy about what tools we are allowed to use. If we want to use a new one, we have to write a justification for it, have it go to a board of lawyers, and go through a bunch of other steps before our administrators are allowed to download and install any of it. And it's not due to price, since it seems especially difficult for open source tools. Sometimes it takes longer than a year and by then the tool is already old.

    So I'm authoring a memo that argues to our management that this is terrible practice. That we would be much more efficient if we were allowed to use our own judgment and use tools that we think would help us do our job better (especially when they are free/open source). I could understand if a developer is asking for a $1M dollar suite or something, but not when it's free.

    I read an article in the past about Google's development process, and I understand that they are extremely lenient on what tools developers are allowed to us. I wish I could find that article, but I cannot anymore. Is anybody aware of an article that would help me make my case? Is there a list somewhere of (successful) companies that are lenient on such things that I can use as examples that my company should aspire to?

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

    How to move files from many folders to one place & rename it all?

    Posted: 03 Aug 2019 08:33 AM PDT

    I have a main folder, inside which I have 53 folders("1. ABC" .... "53. XYZ"). From each of the folder, I want to copy out the ".xls" files. Its about 3-6 files in each folder and each files is named like: "<single digit s. no.>. <the name>.xls" eg: "1. Purchase Supplier ABC.xls" The numbering is reset to 1 for each folder.

    So, I want to take out each of the files and store in other folder named "xls". Then rename the numbering

    I am using a mac. So what kind of language should I use? I dont know where to start from.

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

    When do you determine the version of a release? Before you start development of whatever you intend to add/change/fix or after you've finished and about to release? Is it the same for every type of release (i.e. major, minor, patch)

    Posted: 03 Aug 2019 07:26 AM PDT

    What should i use for writing a JSON to video converter?

    Posted: 03 Aug 2019 01:47 AM PDT

    I asked this question over on stackexchange but have yet to recieve an answer. Now, im a complete rookie at programming, i only know the absolute basics but i have a pretty clear idea of what i want. I don't know for sure if its possible but i would like to create a program that would allow me to convert a JSON data file into a video.

     

    The JSON file is a chatlog from Twitch.com with userid's, timestamps and everything necessary, see image for clarification.

     

    The only thing missing are the custom emotes and badges which i assume could be fixed by identifying the keywords and replacing it with the corresponding emote? My goal is to somehow convert this in to a video of the chat, with a transparent background allowing me to overlay it on top of the gameplay.

     

    My question is what software/language would be best suited for this, and how hard would it be to do?

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

    Is it possible to get a hold of the Reddit API? If so, do you think I can add to it?

    Posted: 03 Aug 2019 12:40 AM PDT

    Like my own features so I can make my own modified version of Reddit.

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

    No comments:

    Post a Comment