• Breaking News

    Monday, May 6, 2019

    [C++] How can I read unicode input in the windows console Ask Programming

    [C++] How can I read unicode input in the windows console Ask Programming


    [C++] How can I read unicode input in the windows console

    Posted: 06 May 2019 06:50 PM PDT

    Using SetConsoleOutputCP(CP_UTF8) and SetConsoleCP(CP_UTF8) I am able to print unicode strings (u8"Exámplè") and read from files unicode characters, but I can't read unicode character from "std::cin".

    I am in Windows 10, using Visual Studio 2019.

    Example:

    #include <windows.h> #include <iostream> #include <string> int main() { SetConsoleOutputCP(CP_UTF8); SetConsoleCP(CP_UTF8); std::string word; std::cout << "Example of being able to print: " << u8"Exámplè" << std::endl; std::cout << "Give me some word: "; std::cin >> word; std::cout << "This is your word: " << word << std::endl; system("pause"); } 

    This prints something like this:

    Example of being able to print: Exámplè Give me some word: Exámplè This is your word: Ex mpl 
    submitted by /u/Datwaftx
    [link] [comments]

    What's a good way to manage multiple repos?

    Posted: 06 May 2019 05:27 PM PDT

    I have a C++ game that is a standalone program. It compiles to Javascript and also runs in the browser.

    I also have a website (in Flask, if that's relevant). It's largely just static pages. But one of those pages should be the HTML/JS generated by Emscripten for my C++ game.

    These projects are otherwise completely independent.

    What's the right way to manage this dependency? My first thought is to just check in the JS output of the C++ game and wget that down as a build step for the website. But surely there is a more... professional way of doing things?

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

    My employer has offered to pay for me to take a course to develop software skills. I’m leaning towards learning C++. Any advice as to which I should take?

    Posted: 06 May 2019 07:57 AM PDT

    I hope that the title isn't too vague or the question isn't too overasked (I promised I searched the sub history before posting). I'm in my first potential career job so I've never really had an opportunity like this. We primarily use C++, and my programming knowledge and education in general has been very informal (mostly self-taught) so refining foundational computer architecture skills would be valuable too. Do you all have any recommendations for an online course that I could really get a lot out of? Cost is relevant of course, but I'm not on a super tight budget.

    Thanks!

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

    Setting up a dev env on Windows 10 Home Edition

    Posted: 06 May 2019 06:11 PM PDT

    I just built a windows machine for gaming and I am entering the fray from a Mac OS/Linux background. What sort of dev tools do I have available for setting up an ENV? Ideally I would like something akin to a docker/ansible where I can create a config once and provision indefinitely afterwards. I've hit some snags using WSL and being on the Home edition do not have access to Docker Desktop.

    I planned to add an Ubuntu boot drive anyways, but it would be nice to be able to just open up an editor and go to localhost for sandboxing stuff or quickly spinning up virtual hosts.

    What sort of options do I have? Are they worth it? I'd ideally like to be able to set up Apache, PHP, and MySQL.

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

    Future of Data Processing and Sharing Survey

    Posted: 06 May 2019 08:59 PM PDT

    Dear Programming Redditors!

    I am a researcher at SBA Research investigating current data processing and sharing trends with an online survey and a subsequent interview on how people currently combine policy requirements (security policies, GDPR, etc) with their need of data processing and sharing for their business. The results will be used to help to design data processing systems that take these policies into account, yet still allow to extract value from data for businesses.

    Please complete the brief pre-questionnaire below to participate in the interview. If you partake in the interview you will receive a compensation in the form of a 20 EUR Amazon voucher for, at most, one hour of your time.

    https://de.surveymonkey.com/r/PDGXBM5

    The pre-questionnaire should only take 3-5 minutes. The subsequent interview will be one hour at most and both your responses as part of the questionnaire and the interview are completely anonymous.

    Feel free to share this information with colleagues and acquaintances that you think might be interested to participate. On behalf of science I would really appreciate your input to this study!

    submitted by /u/usable-security-sba
    [link] [comments]

    Working on a Character Creation software using C#

    Posted: 06 May 2019 05:29 PM PDT

    Like the title says, I'm trying to create a character creation software for an RPG system, and am trying to make the program save what you put into the data so you can edit it later when you need to. I want to have it list on the first form, where you can click it and hit "edit". The problem is, I'm rather new to coding and not sure what that would look like in code speak.

    You'd have something like a name that gets saved, gets put on a list and you can click on that name to edit the data.

    EDIT: I may have forgotten to specify that this is for Tabletop RPGs, like D&D or OVA.

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

    When I'm seeding a torrent, how my computer is chosen ?

    Posted: 06 May 2019 03:10 PM PDT

    Lile when there is many seeders (let's say 400) for a single dude downloading that torrent

    Is there an algorithm behind this or is it between proximity between clients ?

    submitted by /u/0smoze
    [link] [comments]

    Strongly connected components detection help?

    Posted: 06 May 2019 03:04 PM PDT

    Hey everyone, I'm trying to write a method that detects the strongly connected components of a directed graph. Unfortunately, I've hit a small roadblock with my code. I believe it's in the DFS method that I made, can anyone help me diagnose it and make sure it a proper DFS, or if it's a problem with findSCC? With my unit tests, I have the correct amount of SCCs, just not the exact same elements within them. Thanks!

    Link

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

    Testing Java Skills

    Posted: 06 May 2019 08:55 AM PDT

    I'm currently working as a software test developer where I'm required to create software to test other software using Java. I graduated college with a math major and a computer science minor. I learned Java in school and have minimal Java programming experience in the "real world". My employer informed me I have the option to take Java courses or training to help me brush up on Java as needed. I myself feel like I know the basics of Java but, I'm having trouble designing and planning the software. I'm looking for an intermediate Java class/training to help ramp up my skills. My question is, is there any way I can determine my exact Java skills to determine what level class to take? I like to think I'm intermediate level but sometimes I wonder if should take a beginner class to gain my confidence more and be sure all my basics are covered. Would appreciate the help. Thanks in advance!

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

    YAML: Hello what does it mean ''serialization''?

    Posted: 06 May 2019 06:34 AM PDT

    Hello what does it mean ''serialization''? I am getting into YUML language, I still can't understand some of the words used there

    example:

    ''Serialization

    Serialization process is required in YAML that eases human friendly key order and anchor names. The result of serialization is a YAML serialization tree. It can be traversed to produce a series of event calls of YAML data.

    An example for serialization is given below''

    consumer:

    class: 'AppBundle\Entity\consumer'

    attributes:

    filters: ['customer.search', 'customer.order', 'customer.boolean']

    collectionOperations:

    get:

    method: 'GET'

    normalization_context:

    groups: ['customer_list']

    itemOperations:

    get:

    method: 'GET

    normalization_context:

    groups: ['customer_get']

    Questions:

    1. what are ''human friendly key and anchor names''?

    1. what are calls to YAML data?

    class: 'AppBundle\Entity\consumer'

    3) what does it mean?

    4) attributes:

    filters: ['customer.search', 'customer.order', 'customer.boolean']

    4) and this?

    5) What is trying to do in this whole code above? Why that ''GET'' method?

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

    CSV to fillable PDF

    Posted: 06 May 2019 01:53 PM PDT

    Hello everyone,

    This may have been asked before, but I can't find a concrete answer. What would be the easiest way to batch convert CSV files into a fillable PDF? Ideally, I would like to generate a couple hundred reports a month from different CSV data into a PDF template.

    Any help is welcomed, thanks in advance!

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

    How to go about building a website version of Lumosity?

    Posted: 06 May 2019 07:09 AM PDT

    I want to recreate games like lumosity to work on chrome and other browsers as a project

    Below are design considerations and I don't know too much about coding, decent with vba is all.

    Design considerations: Very responsive, touch screen focused design, pulling questions from a question bank, tag types of questions to do analysis, maybe an algo to increase difficulty with progression rather than hard coding levels.

    To start planning I need input on things like:

    Programming language,

    modules/resources to use, things not to do (some general tips for good design, responsiveness, etc)

    Thoughts?

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

    Is it possible to apply real life rocket's codes to a simulation of that same rocket?

    Posted: 06 May 2019 12:50 PM PDT

    Selenium Python. How to click on the image as a button

    Posted: 06 May 2019 07:27 AM PDT

    I have to click on this HTML element

    <img src="/images/spacer.gif" width="16" height="16" style="background:transparent url(/images/coral/ico_arrow.png) no-repeat 0px 0px; cursor:pointer;" border="0" onclick="ReservationSearch_ExpandNode('1406999');">

    but driver.find_element_by_xpath("//*[@id='ReservationSearch_1406999_row']/td[1]/img").click(); doesn't work

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

    Looking for algorithms

    Posted: 06 May 2019 07:07 AM PDT

    Hey everyone,

    Can anyone give me a link to the Algorithms for 'RankBrain or PageRank', are they available to the public? I couldn't really find them and do not know where to look for them. This is for a high school extended essay based on computer science. Any help will be great

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

    How many people with college degrees wrote an app for a course assignment or thesis?

    Posted: 06 May 2019 09:03 AM PDT

    This comment says

    I might also add that "developing a game" or writing a VR app could fly for a simple course assignment or thesis at best. It's part of the package with the degree, and we haven't even covered co-op programs yet.

    What kind of apps are people developing that are simple enough to do as part of a course assignment? Are these full featured, production ready, commercial apps we're talking about one person building as part of a course assignment?

    Can someone please clarify for a student deciding between writing their own apps or going to get a college degree?

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

    What makes a language reliable?

    Posted: 05 May 2019 11:52 PM PDT

    I just watched a talk wherein Bjarne Stroustrup listed amongst C++'s strengths "reliability" and I'm not sure what he meant since I was always warned against C++'s footguns. He specifically hedged that you can't freely use new or use exceptions, and specifically mentioned GC pauses as an unreliability. What are other major issues and how languages and language sects deal with them?

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

    Project planning to build tools similar to Lumosity

    Posted: 05 May 2019 10:34 PM PDT

    I want to recreate games like lumosity to work on chrome and other browsers as a project

    Below are design considerations and I don't know too much about coding, decent with vba is all.

    Design considerations: Very responsive, touch screen focused design, pulling questions from a question bank, tag types of questions to do analysis, maybe an algo to increase difficulty with progression rather than hard coding levels.

    To start planning I need input on things like:

    Programming language,

    modules/resources to use, things not to do (some general tips for good design, responsiveness, etc)

    Thoughts?

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

    No comments:

    Post a Comment