• Breaking News

    Saturday, December 28, 2019

    Confused about what ideas I'm allowed to "copy" Ask Programming

    Confused about what ideas I'm allowed to "copy" Ask Programming


    Confused about what ideas I'm allowed to "copy"

    Posted: 28 Dec 2019 05:07 PM PST

    I'm starting to get into developing mobile games but there's so many similar and even direct copies of games on the play store that I'm confused about what ideas I'm allowed to use. Like if I search Flappy Bird on the play store then hundreds of copies "sloppy bird", "flappy crow", etc.. all pop up that's the exact same game with a different colored bird.

    What's stopping me from just copying the exact idea of a popular game and placing ads on it?

    Obviously I don't want to do that but I'm just wondering what the rules are.

    Thanks!

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

    Child component does not re-render

    Posted: 28 Dec 2019 11:27 AM PST

    I'm working with react and two functional react components where I'm passing an id(the state) of a clicked item down to a child component via a prop.

    Problem

    The id does render in the child component, but when the state is updated in the parent the child component creates a new render instead of updating the previous render. So eg. the child component displays the id1 and when another item is clicked the child component displays both 1 and new id

    Parent class:

    import ReactDOM from "react-dom"; import React from "react"; import TreeView from "@material-ui/lab/TreeView"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; import ChevronRightIcon from "@material-ui/icons/ChevronRight"; import TreeItem from "@material-ui/lab/TreeItem"; import Test from "./test"; const { useState, useCallback } = React; export default function MyTreeItem(props) { const [childNodes, setChildNodes] = useState(null); const [expanded, setExpanded] = React.useState([]); const [activeItemId, setActiveItemId] = useState(); function fetchChildNodes(id) { return new Promise(resolve => { setTimeout(() => { resolve({ children: [ { id: "2", name: "Calendar" }, { id: "3", name: "Settings" }, { id: "4", name: "Music" } ] }); }, 1000); }); } const handleChange = (event, nodes) => { const expandingNodes = nodes.filter(x => !expanded.includes(x)); setExpanded(nodes); if (expandingNodes[0]) { const childId = expandingNodes[0]; fetchChildNodes(childId).then(result => setChildNodes( result.children.map(node => <MyTreeItem key={node.id} {...node} />) ) ); } }; const renderLabel = item => ( <span onClick={event => { console.log(item.id); setActiveItemId(item.id); // if you want after click do expand/collapse comment this two line event.stopPropagation(); event.preventDefault(); }} > {item.name} </span> ); return ( <div> <TreeView defaultCollapseIcon={<ExpandMoreIcon />} defaultExpandIcon={<ChevronRightIcon />} expanded={expanded} onNodeToggle={handleChange} > {/*The node below should act as the root node for now */} <TreeItem nodeId={props.id} label={renderLabel(props)}> {childNodes || [<div key="stub" />]} </TreeItem> </TreeView> <Test test={activeItemId} /> </div> ); } const rootElement = document.getElementById("root"); ReactDOM.render(<MyTreeItem id="1" name="Applications" />, rootElement); 

    Child class:

    import React, { useState, useEffect } from "react"; export default function Test({ test }) { return <h1>{test}</h1>; } 

    To reproduce the problem: https://codesandbox.io/s/material-demo-5kfbl

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

    Small local project tools !

    Posted: 28 Dec 2019 02:19 PM PST

    Hello guys !

    I just started programming and i have a project to do which is creating a local website ( no need to be hosted online) for absence management in my institute , i was thinking of using phpmyadmin to manage the database and php to design the website ! What do you think guys ? Do you have another suggestions Thank you so much!

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

    What programming language should I learn first? 15M high school freshman

    Posted: 28 Dec 2019 05:57 PM PST

    Hello everyone, I a freshman who recently feel in love with programming and I want to learn more. I am really interested in AI and machine learning. I am apart of our robotics club which programs in Java, computer repair club, computer science club, architectural engineering and contruction club (ACE). And our computer science club. Our school mainly only teaches Java but right now in level 1 programming we are doing C#. What languages would you recommend me to start and learn. I have a bunch of courses bookmarked but don't know where to start or what language to start. I am also interested in a bunch of up and coming languages like Kotlin python and Golang. But I don't really what each languages is made to do if I want to be a backend software developer.

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

    How do I test code and keep a backup on GitHub simultaneously?

    Posted: 27 Dec 2019 10:47 PM PST

    I'm not sure if this has been asked before but I have encountered a silly problem. Basically I have a program which I wanna test on my machine locally. I also have a copy of it on GitHub publicly but it doesn't have my API keys and configurations on it.

    Is there a way to test my code and then push it without it publishing my code on GitHub?

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

    What's the best way or most common way timezones are handled in score keeping apps?

    Posted: 28 Dec 2019 04:50 AM PST

    Let's say I have an app that keeps a daily score of something or even more complicated keeps a leaderboard based on some interval, let's say 7 days. How do most apps determine when an interval should start?

    I could ask for location info from a user when they signup and assume they'll change timezones very little. I myself don't leave my timezone very often. Take duolingo for example which keeps a daily challenge for you to meet. Am I correct in assuming if I suddenly traveled to Spain (I live in the US) my score would still be based on UTC -6 time?

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

    Building something akin to Grammar.ly's chrome add-on

    Posted: 28 Dec 2019 08:35 AM PST

    Hi guys. I guess most of you are already familiar with what grammarly is and for those of you that aren't - it's a ML based plugin that reads the text you are writing, does a semantic analysis and turns back a suggestion about how to fix your sentence if there are errors.

    My problem - TL:DR :
    I'm building something very similar to this with the core function being semantic analysis. I know the frontend part will be built in JS but since I have to make calls to a server and there should be some ML algorithm running there should I still use JS or Python for the back-end? I'm not sure if JS has the appropriate libraries for sentence analysis yet.

    Please give me your suggestions! Thank you!!!

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

    multiplicity in REST API e.g. delete (or add) multiple items in one call

    Posted: 28 Dec 2019 02:34 AM PST

    If my API has a library and I want to delete two books, at the moment I'll

    DEL /books/bookA DEL /books/bookB 

    But if I want to delete a thousand books, how do I acheive that? I could implement a call, with a body that contains both books, (and possibly send that as a DELETE/POST/PUT) but I think I'm breaking a fundamental.

    If it matters this will be implemented in MVC ASP.NET.

    Thanks,

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

    Knowing who's talking in Youtube automatic subtitles

    Posted: 28 Dec 2019 02:00 AM PST

    Hi,

    For a university project, I extracted a few hundred hours of youtube automatic subtitles (interview format), which I have to put into dialogue form. But youtube subtitles don't identify the voices, don't put punctuation.

    I want to tell who is speaking each sentence (at least to be able to tell "that's the reporter/interviewee").

    Do you know of any projects that have dealt with similar issues?

    Any ideas on how to do it?

    For the moment, here the ideas I had to figure out when it changes from one person to another:

    - find the silences (working poorly, when someone takes a breath, for example).

    - voice frequencies (and match timecodes with auto subtitle timecodes) (not yet tested)

    Thanks a lot,

    Alexandre R.

    PS : I hope my english is understandable.

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

    How to retreive multiple id's from firebase?

    Posted: 28 Dec 2019 02:49 AM PST

    I have admin area which collects all data from firebase and updates comment for every special document. My problem is on function comment (the last one). My goal is to update for multiple documents from firebase and the problem is in the .doc('id of document'). I want program to recognize id for multiple documents so i can update it. Also i have problem with momentjs, i need to get multiple posted_at values when was something posted, so not one posted_at value.

    Btw i am using vuejs.

    Link for code: https://pastebin.com/raw/Rt30eDYC

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

    Question regarding entry-level IOS developing jobs

    Posted: 28 Dec 2019 01:40 AM PST

    I'm currently learning swift and I wanna know if it's a promising language to learn for post graduation to land me a decent pay above average. I currently know university level java, basics of python, some HTML to design basic websites, and enough css to style my webpages lol. I guess the question I'm asking is whether or not I'm fit enough for entry level programming positions. I see job requirements and they seem intense and I let my anxiety get the best of me, I'm average a 75+ in my BSC computer science degree at ubco, and I'm entering the half way point of my junior year. I'm getting very anxious because all the portfolio work I've done is published on my personal website and it's very basic mobile applications such as calculators and/or trivia or fun fact simple single view apps. I don't know swift enough as these entry level jobs are demanding and I know I have some time to do the learning which I plan but at Tim's I feel like I don't even know where to start or what I need to know for employment ... can someone give a young programmer some insight please.

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

    No comments:

    Post a Comment