• Breaking News

    Monday, December 30, 2019

    What terminology should I be using for the area of programming that allows you to create images out of other images? Ask Programming

    What terminology should I be using for the area of programming that allows you to create images out of other images? Ask Programming


    What terminology should I be using for the area of programming that allows you to create images out of other images?

    Posted: 30 Dec 2019 12:21 PM PST

    God such a stupidly terribly worded question, I'm so sorry, but I have no idea what to even CALL this, which is where most of my frustration stems from. I'm trying to learn how to do this but since I don't even know what it's called, I don't even know what to research and learn.

    I have a basic understanding of programming and a little experience, but thus far I have no idea how to accomplish this (I assume?) relatively simple task?

    Say I have a few different art assets - different layers of images in Photoshop that can be mixed and matched. I want to write web-based code that combines the different images together into one image based on some other code. The image that is created wouldn't exist beforehand - it would have to be created out of other images and then it would become its own image with its own path. What is that even called?

    Think of all those virtual pet sites out there that have like a base image and then they mix and match different colors/shapes/clothing items/what have you into a new image. That's the idea.

    What is that called in programming? I've wanted to know this for years so that I can begin learning how to do it. Please help point me down the right path!

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

    What is better for making a 3D game engine, Java or C++?

    Posted: 30 Dec 2019 06:51 AM PST

    I have seen a few things about this online but I am still very conflicted. Most articles tell me to use C++ but I always see games made using Java? Just wanting to hear your thoughts on this.

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

    Is it possible to ultimately secure a jar file and make it unreverseengineerable (without running it)?

    Posted: 30 Dec 2019 06:50 PM PST

    So I found an free, ultimate open-source obfuscator that obfuscates code reeeaally well. Then there's a program from that encrypts the jar file with 256bit AES encryption and loads the program with it's own classloader. The AES key is loaded from a sub-program written in C (this is at least how I understood it), so it's not reverseengineerable. The program doesn't interference with obfuscation.

    Let's suppose that it's not possible to get into the program without running it (correct me if you think it is). Now, the only way I can think of that you could see the code is to hack the code of Java itself and let the program load whenever you want and read the code from there. How hard could it be? And do you think there is another way to get into the program?

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

    Find adjacent rooms in a hotel

    Posted: 30 Dec 2019 03:43 PM PST

    Lets say you have a request from a big family to order three rooms. The task is to book three rooms at your hotel which are as closely positioned as possible to each other. Which algorithm is the best in order to find this? The data structure of the rooms and the floors isnt so important, I am just wondering which method would be best? This might be more of a mathematical question though..

    My initial thoughts was clustering, like K means or something like that? Any ideas?

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

    mysql 8.0.18, Join statement not working (super wired)

    Posted: 30 Dec 2019 09:31 PM PST

    Hey guys I just installed latest version of mysql community edition on my Mac v.8.0.18and a simple join statement like this:

    SELECT * FROM navigation JOIN groups on groups.nav_id = navigation.id 

    or

    SELECT g.id group_id, n.*, g.* FROM navigation n JOIN groups g ON g.nav_id = n.id WHERE n.parent_id = 3 AND n.link <> 'event_schedule.php' ORDER BY n.number 

    doesn't work and gives this error:

    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'groups on groups.nav_id = navigation.id LIMIT 0, 25' at line 1 

    what am I missing ?

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

    If C++ is meant to be used for writing system software, why is it so often used for writing applications?

    Posted: 30 Dec 2019 06:42 PM PST

    How to split many gifs into individual frames?

    Posted: 30 Dec 2019 05:21 PM PST

    Hello, I have around 240 gifs that I would like to split into their individual frames. There are online tools for doing this one gif at a time but I'd like to automate it. I've attempted to write scripts in Java, Python, and C# using the following stack overflow posts as guides:

    And others that are now lost in my search history. All of them seem to have the issue of blurred or messed up results. All I want is a tool that can replicate the functionality of this website: https://ezgif.com/split and I am shocked that I can't get any of the Python image libraries to handle it. Does anybody have any tips on how to accomplish this?

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

    Wondering whether I should make this a desktop or web app

    Posted: 30 Dec 2019 09:48 AM PST

    Hello, someone close asked me out of the blue to build a simple app for their business and I thought I may as well accept it to build my resume. Anyway this is a simple crud app that is meant for internal use. I'm wondering whether I should make it a web app or a desktop app. I have way more experience developing websites in Django and apparently desktop apps are dying. However I dunno if it still makes sense for it to be a site if its just going to be for offline internal use. My client isnt tech savvy too so I want a quick setup which seems to favor desktop apps since you just need to click and install right?

    What do you guys think? I'm looking at pyqt for desktop and django for web. Thanks!

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

    I'm training for my programming interview *in the future* and it looks that recursive makes sense to me than the iterative one .. performance wise is it still O(log n) ?

    Posted: 30 Dec 2019 09:28 AM PST

    int binarySearchRecursive(int[] arr, int x, int left, int right) {

    if (left <= right) {

    int mid = (left + right) / 2;

    if (arr[mid] == x)

    return mid;

    if (arr[mid] > x)

    return binarySearchRecursive(arr, x, left, mid - 1);

    return binarySearchRecursive(arr, x, mid + 1, right);

    }

    return -1; }

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

    Arduino Display Code - please help

    Posted: 30 Dec 2019 01:50 PM PST

    Components using: Adafruit LIS3DH and SparkFun OLED flexible greyscale (LCD-14060)

    I am an undergrad working on a space ambulance research project. I am terrible at coding but am trying my best. ANY help is appreciated, I need this thing up and running by early Feb. I have spent time working with basic 16x2 LCDs and a GY251, I have the LCD displaying and updating XYZ accel values.

    I need help on the next part of the project please, I'm using different components than what I am familiar with.

    Hooking up the two components in the title to an Arduino Uno- I need to create a few different displays on the SparkFun flexible display based on the acceleration values from LIS3DH.

    I have gone through the basic SparkFun product demos (pong, the creepy monkey etc.) but am having a hard time coding what I need on my own.

    I would like help creating:

    -Script that turns the sensor into an exclamation point (vertically oriented) when any of the acceleration values exceed a threshold (and the capability to define the threshold based on LIS3DH values). (Eg. if x y or z (or a combo of any) accel is greater than 10m/s2 each, the screen will turn into a giant exclamation point).

    -script that turns the sensor into a bar graph with a line representing the max. Acceleration threshold. As the user moves the LIS3DH faster, the bar graph will adjust based on x,y, and z accel values.

    Thank you in advance!

    EDIT: grammar

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

    Is airpod code changeable?

    Posted: 30 Dec 2019 01:12 PM PST

    Hello, complete noob here. I bought some fake airpods (because I'm cheap), and they're amazing in all ways except 1. Whenever they connect or disconnect, they play a loud beep chime. Is there any way of changing this? Sorry if this question sounds idiotic or out of place. I really want to change it but don't know if there's any way of doing it.

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

    Finance Web Application(Bank API)

    Posted: 29 Dec 2019 10:19 PM PST

    Hello All,

    Recently I have been working with a team on a finance web application and the purpose of the application is to collect dues from different members and transfer the payments into the organization bank account.

    I have found two ways of transferring.

    1. Credit Card/Debit Card(2.9%)
    2. Bank API Services, example: Plaid.com

    Would love to be able to get some input on potential cheaper ways of achieving the transfer process, Thank you!

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

    What language/architecture is best to build a personal finance platform (for personal use)?

    Posted: 30 Dec 2019 11:58 AM PST

    I'm thinking about migrating my personal finance tracking from a rudimentary Google Spreadsheets file to something a bit more sophisticated, and use it as a chance to build something that one could show in a projects portfolio.

    I'd like the platform to have the following features:

    • It must be a web application, so I can access it anywhere (the UX must be responsive so I can use it in my cellphone)
    • It must help me keep track of the money I spend, allowing me to enter a new spending. The spendings will be categorized and timestamped.
    • It must have a module in which I can visualize my spendings, the evolution by category, date, and any interesting insight I can capture from them.
    • It must help me keep track of my investments and savings, updating the daily price of the assets I have, allowing me to enter new assets as I buy them and calculate financial costs for each operation (I'll try to see if I can somehow integrate it with my broker's webpage).
    • It should notify me of any price variation I may want to keep track of, whether it's of an asset I own or one I'm interesting in.
    • Ideally, it should allow me to set automatic trade operations for stocks and bonds, though I should probably research if that sort of service even exists in my country

    I'm most experienced in C# and Node.js as backend technologies, but I also know Java, Python and C/C++. I don't know if C/C++ is sort of mandatory for low-latency operations like the last feature I listed or if it's something other languages are also good with.

    I assume I'd use bootstrap and some JS framework/library for the front-end, like Angular 2+ or React (which I already have experience with), plus d3.js for the "analytics" module.

    As far as architecture goes, I don't know if there's any reason why I wouldn't use the traditional MVC + Layers architecture, though if there's another interesting architecture that you'd recommend exploring, I'd be glad to hear about it.

    Any recommendations?

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

    C++ / OpenFrameworks exercises

    Posted: 30 Dec 2019 09:08 AM PST

    Is anyone interested in helping me with simple visual / sorting ( Heap Sort, Gnome Sort, etc ) tasks? Its a total of 4 exercises and the reward is 20$, or 5$ per exercise.

    PM me if interested.

    submitted by /u/capital-man
    [link] [comments]

    Looking for a crash course and/or resources on using Windows Services.

    Posted: 30 Dec 2019 08:47 AM PST

    Hello,

    I am looking for some good resources on how to use Windows Services to run/launch custom applications. Eventual goal is to create a new Windows Services application using C# that will be able to launch other .NET applications at specific times and on certain machines.

    I am completely new to Windows Services so if anyone can point me in the right direction it would be much appreciated! Or if anyone can think of a better alternative to Windows Services I am open to suggestions. Environment is Windows 10 if that matters at all.

    Thanks!

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

    Middle-square method

    Posted: 30 Dec 2019 07:30 AM PST

    So, in javascript or python, how do I choose middle numbers when number is multiplied on itself(in case of three-numbered digit)? For example, if I multiply 125 on itself, how does computer pick 562 and the perform the operation for given amount of time?

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

    What’s a naive way to create a fixed price eBay clone?

    Posted: 30 Dec 2019 03:02 AM PST

    I want to add a simple buy/sell feature to my app. What are all the pieces I need? Not an auction. Fixed price is fine.

    Something like offer up. Can someone give me some pseudo schemas?

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

    Mongod v4.2.2 will not change dbPath option on Windows 10

    Posted: 29 Dec 2019 11:07 PM PST

    I cannot get mongod to run properly, because no matter what I do it keeps looking for some F:/MongoDB directory that doesn't exist to use as its dbPath.

    I've tried running mongod with the -dbpath flag set to a different directory, and I also tried changing the config file in MongoDB's installation path, but to no avail.

    Why can I not change the dbPath variable when trying to run mongod?

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

    Appending fetched data

    Posted: 30 Dec 2019 02:38 AM PST

    I'm trying to build a treeview component in react where data for the tree is fetched based on the nodes expanded by the user.

    Problem

    I want to replace the code inside handleChangewith data from my server, so that I append the data i fetch to the treestate. How can I achieve this with react?

    The data i get can look like this:

    { "children": [ { "id": "2212", "parentId": "3321", "name": "R&D", "address": "homestreet" }, { "id": "4212", "parentId": "3321", "name": "Testing", "address": "homestreet" } ] } 

    My Code: (editable version in: https://codesandbox.io/s/material-demo-h6zfe )

    import React, { useState } from "react"; import { makeStyles } from "@material-ui/core/styles"; 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"; const useStyles = makeStyles({ root: { height: 216, flexGrow: 1, maxWidth: 400 } }); export default function FileSystemNavigator() { const classes = useStyles(); const initialData = { root: [ { id: "1", label: "Applications" } ], }; const [tree, setTree] = useState(initialData); const handleChange = (event, nodeId) => { setTimeout(() => { const newTree = { ...tree, [nodeId]: [ { id: "2", label: "Calendar" }, { id: "3", label: "Settings" }, { id: "4", label: "Music" } ] }; setTree(newTree); }, 1000); // simulate xhr }; const renderTree = children => { return children.map(child => { const childrenNodes = tree[child.id] && tree[child.id].length > 0 ? renderTree(tree[child.id]) : [<div />]; return ( <TreeItem key={child.id} nodeId={child.id} label={child.label}> {childrenNodes} </TreeItem> ); }); }; return ( <TreeView className={classes.root} defaultCollapseIcon={<ExpandMoreIcon />} defaultExpandIcon={<ChevronRightIcon />} onNodeToggle={handleChange} > {renderTree(tree.root)} </TreeView> ); } 
    submitted by /u/nielsjens123
    [link] [comments]

    Angel List scraping -- Need a little help & guidance.

    Posted: 29 Dec 2019 10:31 PM PST

    Hi, I am trying to get the company names and direct website url for Angel List companies into a CSV format. This might not be possible to achieve for all (too many) companies from any Parser available out there (for free) is what I have realized. Also, I do not have much coding experience (even though I have been toying with Python & BS4 for a few days trying to learn whatever I can). I would appreciate some help on this, if anybody would be interested. Thanks!

    Also, I found this, if some could help me get this running that would be wonderful as well.

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

    No comments:

    Post a Comment