• Breaking News

    Sunday, June 24, 2018

    Send message through USB to smartphone Ask Programming

    Send message through USB to smartphone Ask Programming


    Send message through USB to smartphone

    Posted: 24 Jun 2018 08:06 PM PDT

    I'm trying to create an app that pops a message on a USB connected smartphone display (kinda receiving instructions when plugging it into a USB hub). Is this possible? Any ideas on how to address this?

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

    Tips for protecting a wiki site from vandalism?

    Posted: 24 Jun 2018 10:11 PM PDT

    I'm not 100% sure this is the best place to ask this as it more relates to design rather than the coding itself so feel free to point me to a better place to ask it.

    I am begin the construction of a site from scratch that will allow for anyone to add and edit information, what are some good tips to limit the damage that a single person or group of people with an agenda can do to the information on the site?

    Are there any resources of how some of the larger wiki sites have approached and dealt with this aspect?

    submitted by /u/Loyal-North-Korean
    [link] [comments]

    Is there a way I can scrape the average views of a youtube channel for last month with google sheets?

    Posted: 24 Jun 2018 10:00 PM PDT

    I can find total views and subs of a channel with this google apps script

    https://www.benlcollins.com/spreadsheets/import-social-media-statistics/#youtube

    This is groovy and all but I just need one more piece of info in order to make better decisions, that is the average of the views of all the channel's videos for the previous month.

    Im imagining that i just need to play around with the functions to do this?

    Also this is a longshot but would it be possible to scrape a channel's email as well?

    THanks!

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

    Help me consider my stack?

    Posted: 24 Jun 2018 09:51 PM PDT

    hi all,

    I'm planning to start working on some POC level work on an e-commerce application that will do a couple buy/sell & inventory related tasks. To do this I was thinking about doing the project in Java (to learn the language) and use MySQL where necessary for the DB with both of these running probably on centos/RHEL DEV copy. This application will need an interface, but will primarily perform tasks automatically with various APIs on a server. HOWEVER, I wonder

    1. What would an Ideal stack look like for a project like this?
      1. Linux, MySQL, Java
      2. Linux, MySQL, Python
      3. Other
    2. Could you suggest an ORM if one might be necessary?
    3. Would a framework like Django be good for this if done in python?
    4. Would containerizing this application have any tangible benefits.

    any insight would be sincerely appreciated!

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

    Store locator app

    Posted: 24 Jun 2018 09:16 PM PDT

    Hey reddit! I'm building a store locator type app for fun (Yay!) and would like some tips and guidance.

    First of all, the app must be cross platform. So I decided to build an android app, an iOS app and an HTML5 web app.

    Those apps are to pull store types and locations from a server, and overlay them in the UI on for the client, selecting the closest ones, and displaying an icon on top of a map. From there, the client will select the closest store and interact with some options (to be developed).

    I would like guidance in selecting the best language and libraries to serve these stores, since I have zero experience in back-end. I've set up a Red Hat server, where I'm leaning towards using node.js and postgre. What else do I need?

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

    [C++] Can't declare array in constexpr function with the size based on another function?

    Posted: 24 Jun 2018 09:16 PM PDT

    Here's a super simplified version of what I'm trying to do:

    constexpr auto getArr(std::wstring_view x) { wchar_t r[x.length()] = {}; return r; } 

    wstring_view.length() seems to be a constexpr function. So why am I running into error C2131: expression did not evaluate to a constant on the array initialization line? This is my first time really working with constexpr, so maybe it's something stupid but I can't figure it out.

    submitted by /u/whyam-i-onreddit
    [link] [comments]

    [HTML][JavaScript] Making added list items clickable

    Posted: 24 Jun 2018 08:04 PM PDT

    Hey there,

    What I've gotten so far is to create an expandable list. Now, I've been trying to make these items clickable (links, etc). I've tried window.location.href and such, but can't seem to get it to work. I'm quite new to using JavaScript, so I'm also not quite sure what goes where, haha.

    Here is what I have so far:

    HTML

     <ul id="room-list"></ul> <input type="text" id="yikes"/> <button onclick="addRoom()">Add room</button> <button onclick="removeRoom()">remove room</button> <script src="jvs.js"></script> 

    JavaScript:

    function addRoom(){ var ul = document.getElementById("room-list"); var yikes = document.getElementById("yikes"); var li = document.createElement("li"); li.setAttribute('id',yikes.value); li.appendChild(document.createTextNode(yikes.value)); ul.appendChild(li); } function removeRoom(){ var ul = document.getElementById("room-list"); var yikes = document.getElementById("yikes"); var room = document.getElementById(yikes.value); ul.removeChild(room); } 

    This is how it looks at the moment

    Any help or guidance would be greatly appreciated :)

    Thanks!

    edit: added jsfiddle link

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

    Ideas for Python based web crawler

    Posted: 24 Jun 2018 07:08 AM PDT

    I am an undergraduate and I have gotten very interested in web crawling by python. I want to learn more while doing something fun, but I don't have an Idea that can indulge me completely! Do you have any Ideas to do with python crawlers? anything on your mind?thanks :)

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

    Safari ad-don

    Posted: 24 Jun 2018 04:49 PM PDT

    Hey, I want to write a simple add-on for safari which implements code to the website like it would be part of the source. Is there already an existing add-on or and how should I write my own?

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

    Help for Scala project setup process

    Posted: 24 Jun 2018 10:38 AM PDT

    Hi,
    This is my first post in reddit. Sorry if the question is not clear/off topic.
    I want to run this project github repository. In section Usage (in ReadMe), I want a simple guideline elaborating how to do these steps? if I want to run it in my local machine

    to be more specific how elasticsearch can be used in these steps? and how to run this scala project

    Thanks

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

    Node-RED questions, beginner

    Posted: 24 Jun 2018 01:51 PM PDT

    So I have to make this project using a lot of new stuff I am not familiar with, I'll try to explain in detail and any help you can provide is very much appriciated.

    Basically I need to send out some information from imaginary sensors through MQTT every random amount of time. Have that information written to a DB using node-RED and when that is done have a web page that will take the data out from the DB and present it live through a graph or something simmilar. If anyone is willing to provide some assistance I am very grateful.

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

    How is a local program, an api, and a heroku app used together?

    Posted: 24 Jun 2018 09:54 AM PDT

    I am building a messenger program similar to Slack through an online tutorial. I understand that an API is a library of data, and that a program connects to the heroku app's endpoints. What is the api connected to? This is a very unclear area for me so if you could answer or even send me a link to a good article that would be great! Thanks

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

    Windows form to transfer files

    Posted: 24 Jun 2018 09:24 AM PDT

    There are files (txt) and pdf files with the same file numbers (may be in different file locations but most are in the same folder. I am looking into a very simple form where a file name is typed into a forms text field and it automatically copies that file to another folder and opens the pdf with the same name. Then when another is opened it closes the current pdf and empties the destination folder before sending the new one. Any direction will be helpful. Off the bat I was thinking VB but does it handle file transfers as well as other languages?

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

    How do I change this JSON text in Angular/HTML/JS??

    Posted: 24 Jun 2018 08:53 AM PDT

    Hey all,

    I am pulling some JSON data in, but the date is coming in this format

    2018-09-16T11:22:00.000Z

    How can I split up the string so I can style each one individually in Angular or HTML or JS??

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

    I need help in my code, there are no syntax errors, it shows segmentation faults. Please help.

    Posted: 24 Jun 2018 02:10 PM PDT

    Creating a database and login/signup system

    Posted: 24 Jun 2018 07:02 AM PDT

    I've recently built a website (with HTML, CSS and Javascript) and I now want to add a login/signup system where users can create an account and later come back with their saved progress. I figured I might need to learn a new language that can sync up a database and my Javascript code. The problem is I don't know how to create a database or even what language I should use. How should I proceed?

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

    Competitive Tools Website

    Posted: 24 Jun 2018 06:53 AM PDT

    I can't find any website that helps in visualization of competitive programming questions such as DP,trees and thinking of making one myself. Any Suggestions to what tools u need. Here's a link to similar
    webpage

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

    Help with creating a menu for a game with Java Swing.

    Posted: 24 Jun 2018 06:18 AM PDT

    I have a task to somehow improve a game from zetcode.com and a game of my choice was SpaceInvaders: http://zetcode.com/tutorials/javagamestutorial/spaceinvaders/ - full code can be found here. I first want to create menu for it, however i keep getting exception errors and i assume i'm having a bad approach. What i wrote so far(in the SpaceInvaders.java class):

    package SpaceInvaders; import java.awt.; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.security.PrivateKey; import javax.swing.;

    public class SpaceInvaders extends JFrame implements Commons {

    public SpaceInvaders() { initUI(); } private void initUI() { add(new Board()); setTitle("Space Invaders"); setDefaultCloseOperation(EXIT_ON_CLOSE); setSize(BOARD_WIDTH, BOARD_HEIGHT); setLocationRelativeTo(null); setResizable(false); setLayout(new BorderLayout()); JButton button1 = new JButton("Start Game"); JButton button2 = new JButton("Info"); JButton button3 = new JButton("Quit"); Container c = getContentPane(); c.add(button1, BorderLayout.NORTH); c.add(button2, BorderLayout.CENTER); c.add(button3, BorderLayout.SOUTH); button1.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { c.add(new Board()); } }); } public static void main(String[] args) { EventQueue.invokeLater(() -> { SpaceInvaders ex = new SpaceInvaders(); ex.setVisible(true); }); } 

    }

    The following solution doesn't work, since whenever i press "Start Game"i get a gazillion exceptions.. I'm not very familiar with Swing on top of not being familiar with the code i did not wrote myself therefore i am getting desperate. Can someone please give me some help or guidance on how should i approach this? Would be super appreciated.

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

    Automating routine tasks

    Posted: 23 Jun 2018 11:59 PM PDT

    So I am pretty much new to any programming language or technology, and I am willing to learn new stuff. So I want to automate a task of getting user input, and then based on that input, either add or not add that user to a group on Linux. For example, it could be a shell asking user to answer a couple of questions, and depending on user's answers, he/she will be automatically added to a group (Linux group). Or instead of this, it could be a web page asking those questions, and then adding user to a group.

    I am a little lost and do not know where to start. I thought of writing shell scripts, Python etc. Does anyone have a good idea on what language/technology might be really helpful in accomplishing my task and where to start?

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

    What tool you recommend for interviewing front end developers?

    Posted: 24 Jun 2018 05:30 AM PDT

    I realised that in person technical interviews with onsite technical test are just waste of time and resources. I am want to move to technical tests that many big companies are doing so: homework type of tests. I want to be able to give candidate a HTML/CSS/JS test that he can complete all in browser on his or her machine with restricted time frame (counting should start from the moment they start the test). Can you recommend any such tools I could use?

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

    Should I delete this? My pc has been slow and knowing me my pc has a bug.

    Posted: 24 Jun 2018 12:11 PM PDT

    C# / .NET virtual file (system) library

    Posted: 24 Jun 2018 04:18 AM PDT

    So basically i want to give the program that tries to read my file a stream of the virtual contents of the file. A virtual file system (like onedrive) where i can give a list of files would also be nice.

    I tried Dokany but it gives me an exception (something like Module not found in dokan1.dll) and SharpFileSysten just does nothing at all.

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

    No comments:

    Post a Comment