• Breaking News

    Tuesday, April 30, 2019

    Generate graph of include files in Visual Studio Community 2019 Ask Programming

    Generate graph of include files in Visual Studio Community 2019 Ask Programming


    Generate graph of include files in Visual Studio Community 2019

    Posted: 30 Apr 2019 02:55 PM PDT

    I wanted to "Generate the grpah of include files" in my C++ project, using Visual Studio 2019 Community, but that option doesn't appear when I right click, despite appearing (with the same project) in another PC, with Visual Studio 2017. Did they remove it this year?

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

    Have an nginx webserver with an index.html page that I want to run locally on localhost, using Docker, stumped on how to do so.

    Posted: 30 Apr 2019 09:01 PM PDT

    So I have an nginx webserver that I created as a Docker container and it has an html page on it, index.html that I want to be able to view on my local machine.

    I am able to get to the default nginx splash page so I know I have my ports set up correctly to the server, but I am completely stumped how load a .html file located on the server in home/WDC which has this .html file.

    I am really new to this and have been trying to figure this out but have kind of hit a dead end.

    Is this possible to do? Any reccomendations are greatly appreciated!

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

    Learning Java

    Posted: 30 Apr 2019 05:12 PM PDT

    What are some websites that are mostly free that I can learn Java? I know about sololearn, and I'm wanting to look for something more. Also what should I do to continue learning more about Java Any help would be greatly appreciated !

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

    Getting Triangle Count, and Volume of An STL File in php?

    Posted: 30 Apr 2019 08:47 PM PDT

    I am working on a project for my High school engineering department and I have a script that sort of works but it is written in python. This works out well but with the security issues that go along with passing a command through the Shell Exec Command or an true execute command is a real threat and something that I don't want to risk especially if this is dealing with payments to any degree. I have done a quick search for things and cant really find anything that would work Seamlessly and be as effective as the current system that I have now. Is there anything out there that would do this, I have no clue how STL files store data so It might take a while to program that. Yes I also know that PHP is outdated but I found it very easy to use and I used the Huge Framework to speed up the process for Development.

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

    Suggestion for books for building visually appealing websites without CSS Frameworks

    Posted: 30 Apr 2019 07:11 PM PDT

    Hello AskProgramming,

    I am looking for recommendations on books that teach CSS, and design that allow for the creation of appealing websites.

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

    How to get min/max of up to three values while handling invalid inputs?

    Posted: 30 Apr 2019 06:27 PM PDT

    I am implementing a downheap algorithm and I'm trying to get the min/max values from up to three node objects: parent, LChild, and RChild. The children nodes are at position 2n+1 and 2n+2 of my list, so there's a possibility that there is no child and calling the 2n+1'th position will throw an out of bounds error. What is the easiest way to compare the three values but also disregard any non-valid children without throwing an error?

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

    Good tool for finding broken links?

    Posted: 30 Apr 2019 04:26 AM PDT

    HTML 5 code for adding a picture not showing up on website not displaying properly in my practice website?

    Posted: 30 Apr 2019 06:19 PM PDT

    here's the code I used

    <img src="sitemap.jpg" alt="SiteMap" width="500" height="333">

    and i save the picture as sitemap.jpg to my dekstop

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

    Should I become a web developer or a system/software developer?

    Posted: 30 Apr 2019 06:01 PM PDT

    I've been learning C++ at university and I have found difficulties in doing my projects not because of thinking or idea problems, but because of the language itself. I always make segmentation faults for example that I don't know how to solve because the code is very difficult to read and realise where the problem is.

    I also tried Java on my own from reading the online documentation. It's very similar to C++ but much easier (no pointers and stuff like that). At least, for console applications and system programming. In fact I have no idea about GUI apps that could also run on mobile phones or games. My dream is to make a game in Java but I just can't understand how to make one even from tutorials.

    On the other hand, I learned and made a lot of HTML apps using JavaScript, mainly because a webpage is a lot like a GUI app and it's very easy to make one. I even made a simple JavaScript game. However, I think I'm deceiving myself because a webpage isn't a GUI app. It's a file that ideally needs to be put in the web, not in a single computer for someone's personal use.

    And that's why I'm having this dilemma. I'd like to work on computer and mobile applications but it seems rather difficult and I won't be good at it. Web development seems easier but I don't think it's actually what I'm looking for.

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

    C++ read from a file using a for loop

    Posted: 30 Apr 2019 05:27 PM PDT

    So I'm used to using a while loop to read from a file but I'm being required to use a for loop instead. COuld anyone link a short example of a demo?

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

    Can someone help me how to render immediately after the put and delete request in react

    Posted: 30 Apr 2019 04:57 PM PDT

    class App extends Component { constructor() { super(); this.state = { currentProduct: null, items: [], }; this.handlepostSubmit= this.handlepostSubmit.bind(this); } componentDidMount() { axios.get('http://localhost:3000/api/v1/products.json') .then(res => { const items = res.data; this.setState({ items }); })} handlepostSubmit = event => { event.preventDefault(); const product = { name: event.target[0].value, style_no: event.target[1].value, color: event.target[2].value, material: event.target[3].value, origin: event.target[4].value, }; let token = document.querySelector('meta[name="csrf-token"]').getAttribute('content'); axios.defaults.headers.common['X-CSRF-Token'] = token; axios.defaults.headers.common['Accept'] = 'application/json' axios.put(`http://localhost:3000/api/v1/products/${this.state.currentProduct.id}`, {product}) .then(res => { console.log(res); console.log(res.data); }) } handleSubmit = event => { event.preventDefault(); axios.delete (`http://localhost:3000/api/v1/products/${this.state.currentProduct.id}`) .then(res => { }) } render() { const products = [] this.state.items.map(person => products.push(person)) return ( <div> <div> <Sidebar products={products} onSelect={product => this.setState({currentProduct: product})}/> </div> <div> <Form product={this.state.currentProduct} /> </div> <div> <form onSubmit={this.handlepostSubmit}> <label>Name:<input type="text" /></label> <label>Style_no:<input type="text"/></label> <label>Color:<input type="text" /></label> <label>material<input type="text" /></label> <label>Orgin<input type="text" /></label> <input type="submit" value="Edit" /> </form> </div> <button onClick={this.handleSubmit}>Delete</button> </div> );}} export default App 

    Right now, I am facing difficulties with how to render the component after the put and delete request. In the code above, after I click the edit and delete button, it does not render on the page immediately. I have to refresh the page to get the new information. Can someone give me information how to do this kind of stuff.

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

    Database question

    Posted: 30 Apr 2019 04:49 PM PDT

    Hi all,

    I am looking to create a very basic database for alumni of our program to be able to find and connect with one another more readily, based on affiliation, location, area of expertise, etc. I was thinking I might be able to use Google sheets to start with - is there any reason this wouldn't work?

    Thanks for any advice you can give me!

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

    What is the best way to transition from beginner to intermediate?

    Posted: 30 Apr 2019 04:16 PM PDT

    TLDR: how do you get over the beginners hump, where you know loops, lists, other basic data structures and the oop concepts, but are unsure where to go from there.

    Hi,

    I have completed one year of my computer science degree. We did python as our main language and some assembly. This coincided with systems analysis and computer architecture (which I found the most interesting!) I was blown away with just how complicated the inner workings of computers really is.

    While learning python I found the use of functions very helpful but found I was interested in learning what was going on under the hood. This led me to the conclusion that learning c would be useful as I would have to do a lot of the actual coding and problem solving myself, rather than using inbuilt functions. So I got c and c++ books to work though.

    Next year we are going to be using Java and the Django framework. I wouldn't class myself as the most intelligent person in the world so I am going to be working over the summer on these languages.

    I find working through the Java book a bit tedious as I already understand the concepts of oop and how loops work. When learning a new language, are there any books which just give you the syntax of a language rather than explaining everything from the beginning?

    I have been giving myself small tasks to work through but I am unsure if they are testing me or just keeping my level the same. I am also looking to learn and understand the theory of every language I learn (things like, python is pass by object reference)

    I would really appreciate any advice anyone could offer, I have been looking for intermediate books, but have found they are either beyond me or exactly where I am at. Any good book or source on any languages would be much appreciated. Although I will mostly be doing Java and Django this summer, I will be trying to learn as many languages as I can and what I have found so far is the more languages you learn, the easier new ones are to learn.

    Apologies if my post is not well written, I only know enough to know that I know nothing!

    Thanks for reading.

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

    Personal Development Environment (Mac or Windows)

    Posted: 30 Apr 2019 10:36 AM PDT

    I'm thinking about getting a new laptop for my web development (dotnet core and js frameworks). I've always used Windows computers but recently I've heard that Macs are the new preferred computer for development. I'm also interested in getting an iPhone so that'd be another plus for a Mac.

    What do y'all use and why not the other one?

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

    Chart or tutorial that can teach the general structure of a game for C++

    Posted: 30 Apr 2019 09:32 AM PDT

    I've been programming with Python for science related projects for over 2 years. Like most other people I started programming I had a dream of making games. But I couldn't do anything about that because I 've been distracted by Web Designing, Web applications and Data Science. I need a source that can show me the general structure of a game. For example the tutorial for teaching a JS student DOM. That seems simple but I have no idea how does object oriented programming for games work. Thanks. (Also would appreciate some useful online tutoriols etc.)

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

    Good places/resources to practice coding?

    Posted: 29 Apr 2019 11:40 PM PDT

    As the title mentions, I am looking for good places where I can practice my coding. I feel like I'm fairly proficient in Java and C#, however, I have knowledge of all the basics/intermediate topics for both languages and want to put it to use but I am horrible at figuring out what small tasks to accomplish with my knowledge to practice my coding. Do you guys use any websites that provide you mock problems you need to solve with programming? Do you have any places where they prompt you with simple tasks like "Make a program that can do ____"? Any guidance would be cool, thank you!

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

    Can you consolidate all files in an Xcode project to a single folder in the macOS file system?

    Posted: 30 Apr 2019 09:27 AM PDT

    I'm writing a project and I've done a lot of chopping and changing, adding files from various test projects into the main one. The main project now includes different files of the same name from different projects, and these files can be modified from different projects.

    There are about 40 files in the project. Making a new project from scratch, creating new source files and headers and copy-pasting the text contents by hand works, but it is quite tedious. Is there a 'consolidate project' button that copies files into a new project folder?

    My actual issue is that declaring a never-used bool variable inside a function changes the runtime behaviour of my program. The question above is just a guess at what might fix this.

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

    I need some help writing a MIPS assembly program

    Posted: 30 Apr 2019 09:25 AM PDT

    As the title says I need some help writing an assembly program. These are all the directions I've been given.

    A message has been encoded using the following 5-bit character set:

    A 00000 B 00001 C 00010 D 00011 ..... Y 11000 Z 11001 . 11010 , 11100 ! 11101 - 11110 ' 11111

    The message is encoded into the following seven 32-bit words. Write a MIPS assemble program to decode and display the message.

     .data 

    chars: .ascii "ABCDEFGHIJKLMNOPQRSTUVWXYZ .,!-'"

    msg1:
    .word 0x93EA9646, 0xCDE50442, 0x34D29306, 0xD1F33720

     .word 0x56033D01, 0x394D963B, 0xDE7BEFA4 

    msg1end:

    Note: remember the byte order. 46 is at address msg1, 96 is at msg+1, etc.

    I don't really know where to start or what to do. This is my last assignment for my class and I am desperate for any help

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

    Python using .txt to save progress in a game.

    Posted: 30 Apr 2019 09:19 AM PDT

    I made a clicker game with python and the tkinter GUI. I am also able to write down my e.g. gold variables in a .txt with this code

    save = open(saveFile, 'w')

    save.write("gold: \n ")

    save.write(str(cash))

    save.close()

    i can also read the values of the variable with:
    save = open(saveFile, 'r')
    print(save.readlines())
    But how do i take the amount of cash in the .txt to the actual game? any help is apreciated. i googled a bit, do i really need json for this? i havent worked with that before.

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

    [Question] How would you store this relationship/what's the name of it?

    Posted: 30 Apr 2019 07:43 AM PDT

    Let's say I have a relational database, storing products and special discounts. I want to give users special discounts based on the content of their cart, i.e. if a user has Product A and Product B in their cart, they get Discount X. If they have Product C and either Product D or E, they get Discount Y. If they have both Product F and G with either Product H, I or J, they get discount Z.

    How would you store these kind of dynamic relations between different things? Pointers in the correct direction or the name of this kind of relationship would be more than appreciated. I'm using the database with a .NET (C#) and a Dart client, if that matters, but I'd prefer a language agnostic solution.

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

    Other than which pieces of executable are hated by the most people, and other than the normal rules of an OS like dont access another programs memory, what kind of programs does an antivirus stop?

    Posted: 30 Apr 2019 07:39 AM PDT

    No comments:

    Post a Comment