Drawing a triangle using only bash Ask Programming |
- Drawing a triangle using only bash
- Does anyone define functions within functions?
- How can I use Throws with multiple if/else conditions?
- Is there such low level code that cannot have a higher level version?
- Building my portfolio site
- Random problems with proper type inference in Kotlin?
- A few basic questions (Environment, apt-get, CSS, github).
- C# sending a string from three (Separate) secondary forms into the one main form.
- How to extract stack traces from Bugzilla open repositories?
- [Java][Simple] Need help with inheritance
- [Python] Travel Heatmap
- Physical Key State - Python
- When does a program or file become classed as a virus according to anti-virus processes?
- [JavaScript] Making an array that styles div's, and making an array that checks for "bad words" in an input
- Programming beginner, need to "write a batch file."
- Converting MATLAB to PsychoPy (python)?
- How to compare 3 strings using the comapreTo method without using || and &&
- Utilizing a random number generator from a object/element class in the driver class
- [C] Print out the words for any given integer
- Google Rich Cards or Something Else?
- Copy file from Windows CE (MTP) to Folder on C:\
- Tic Tac Toe checking for a win (C#)
- What's the best practice for transition from dev environment to test to production, and remembering the changes that need to be made?
- is sonarqube git awreness?
- How to find the largest group of unconnected members in a tree?
Drawing a triangle using only bash Posted: 01 Mar 2018 08:12 PM PST Arguably the hardest part of most OpenGL tutorials out there is setting up the IDE to get all of the correct static libraries and link in your OpenGL wrappers etc. The problem is all of these only discuss how to do that within a specific IDE. I would like to create a c++ executable that uses OpenGL to do image processing within the terminal. The goal is that you could do something like the following:
and have that injected into the final line of a fragment shader so that an output image could be generated based on the two images passed in and a function between them. If this could work on any platform that can run Bash that would be great but it is mostly for my usage on MacOS. I want to also try to build it without a dedicated IDE just so I can learn how to add parameters to my build and write make files. Is there a tutorial out there that covers the process to setup an opengl context in c++ just using the bash terminal? [link] [comments] |
Does anyone define functions within functions? Posted: 01 Mar 2018 12:05 PM PST As far as I know most programming languages allow function definitions within other functions. I don't know why this thought crossed my mind, but cross my mind it I did. I'm curious to know whether anyone knows of someone who uses this fact, and what their reasons are. Thanks edit: Does anyone know someone who sometimes defines functions within other functions? (not for the purposes of building a framework or extending the language, such as in the case of javascript modules) [link] [comments] |
How can I use Throws with multiple if/else conditions? Posted: 01 Mar 2018 04:40 PM PST My code is checking whether a person object has the correct first name Test 1, or the correct surname Test 2, if not throw exception A or B, these exceptions will be dealt by ExceptionA.class and ExceptionB.class, code further on then adds the person into a group if they pass both conditions. The problem is of course is that if the first if/else block fails my second never gets executed, is there an alternative way to approach this problem? [link] [comments] |
Is there such low level code that cannot have a higher level version? Posted: 01 Mar 2018 07:06 PM PST For a while operating systems were being written in assembly rather than a higher level language, and I was wondering why there was such resistance, especially because compiled languages would get translated to machine code anyway, so I'm guessing performance was not the cause. For example, the way C++ gives us direct access to memory, multiple inheritance, friend classes, etc, none of which are usually available in managed languages, are there any features of machine code/assembly that are not available in C? [link] [comments] |
Posted: 01 Mar 2018 12:23 PM PST Hello! [link] [comments] |
Random problems with proper type inference in Kotlin? Posted: 01 Mar 2018 02:30 PM PST So I am stepping in to try to finish a piece of software on my team, I am not an Android programmer. As far as I can tell though, Kotlin seems to be having and issue where it's type inference doesn't;t recognize that an object is actually a subclass of that object. In this case we are using Parse and I am dealing with a List<Recipe> where Recipe is a ParseObject Subclass. Sometimes it works, but run it again and it decides that it cannot cast ParseObject to Recipe. Has anyone else dealt with anything like this? [link] [comments] |
A few basic questions (Environment, apt-get, CSS, github). Posted: 01 Mar 2018 09:09 AM PST Hi. I am not a programmer, but I like to dabble. Some things have been bugging me for some time now. Sorry, if the questions seem dumb.
Thanks! [link] [comments] |
C# sending a string from three (Separate) secondary forms into the one main form. Posted: 01 Mar 2018 04:27 PM PST Hi, I think this diagram will provide more explanation than words. I want the user to go through three forms, each will contain one variable inputted by the user which will be sent to the final (blue) form. Now how can I pass those variables? get the blue form to accept multiple variables. Or even let it save the variable in the background while the user goes through the rest of the forms. Do the variables get saved in the cache? does that happen automatically? [link] [comments] |
How to extract stack traces from Bugzilla open repositories? Posted: 01 Mar 2018 12:17 PM PST I am currently on a project where I have to analyze stack traces to predict the severity of bugs. I need stack traces for that. How to I parse huge stack traces from Bugzilla repository? Or is there any other ways?? Help me. [link] [comments] |
[Java][Simple] Need help with inheritance Posted: 01 Mar 2018 12:01 PM PST Basically, I have an abstract class ChildNode and a parent node Then I would run this like My issue is, I want parent nodes and child nodes to be able to be part of [link] [comments] |
Posted: 01 Mar 2018 02:56 PM PST So, I was trying to do an "travel heatmap " similar to this one, after I saw it on this reddit post, but re-adjusting to me. However, when I run the program, I obtain just a blank map For this project I used Spyder (pandas & gmplot) e this is the code that I utilized: [link] [comments] |
Posted: 01 Mar 2018 02:14 PM PST Hello, I am attempting to detect the physical state of a mouse button, but I cannot find a function in windows api (GetKeyState and GetAsyncKeyState do not work) that will allow me to do it. Is there any other module I can download that has this functionality? AHK has this functionality in their GetKeyState function, but I cannot find the equivalent for python, thoughts? [link] [comments] |
When does a program or file become classed as a virus according to anti-virus processes? Posted: 01 Mar 2018 04:52 AM PST |
Posted: 01 Mar 2018 04:20 PM PST
The second part of the assignment:
[link] [comments] |
Programming beginner, need to "write a batch file." Posted: 01 Mar 2018 08:37 AM PST I'm in an intro college course in programming. The teacher is ... well, not great, but today (Thursday) he told us to go "download" visual basic (NOT Studio) and to look up some youtube videos, learn VB, and write a "batch file" to execute on a computer in class on Tuesday. Now, a quick google shows me that Visual Basic support ended 10 years ago. I've been learning basic Python in my other intro computing class, but this professor has given ZERO instruction as to how VB works. I have no idea what he wants, how to do it, or even how to get started. Please help??? [link] [comments] |
Converting MATLAB to PsychoPy (python)? Posted: 01 Mar 2018 07:51 AM PST Hi, I was wondering if there was any program or something that assists with converting a MATLAB task (specifically a stop signal paradigm) to PsychoPy (application for psychology experiments that uses Python)? Thanks! [link] [comments] |
How to compare 3 strings using the comapreTo method without using || and && Posted: 01 Mar 2018 07:50 AM PST For one of my projects I need to compare srt1 (abcd) , srt2 (pqrs), and srt3 (wxyz) in alphabetical order. Now the only way I can think of completing this is by using if statements with || and &&, which is not acceptable. Can anyone offer some insight? [link] [comments] |
Utilizing a random number generator from a object/element class in the driver class Posted: 01 Mar 2018 11:36 AM PST I'm so confused how this works. In my object/element class I have: public void randomChannel(int randChanNum) I'm trying to use this method in my driver class to generate a random number between 3 and 99 and print it. Any ideas? [link] [comments] |
[C] Print out the words for any given integer Posted: 01 Mar 2018 05:09 AM PST For the range -2 billion to +2 billion. Ex: Enter an integer: 18476 = eighteen thousand four hundred seventy six I would not like someone to write the code for me, however, some insight into solving this problem would be greatly appreciated. Im not too sure where to get started. All I can think of is having four billion else if statements, but I know there have to be better ways. Thank you guys! EDIT: Without the use of arrays [link] [comments] |
Google Rich Cards or Something Else? Posted: 01 Mar 2018 10:52 AM PST Hello all, I'm trying to create a more impressive link to my page on google, but I'm not sure how to go about it. I'm trying to create a link block that shows all of my pages (links to my pages). For example, if you google Amazon, the primary link to their page (not ads) shows a number of pages you can jump to, e.g., Your Account, Books, Amazon Aws, etc. I thought Google Rich Cards would do the trick, but I can't find any examples of the this type of layout - I only see layouts for Images (like recipes, movies, etc.). If it's not Rich Cards, I don't know what else it could be. Any help would be appreciated! [link] [comments] |
Copy file from Windows CE (MTP) to Folder on C:\ Posted: 01 Mar 2018 06:23 AM PST Hey guys, i am automating file transfer between a PDA running windows CE to a folder on a windows 10 PC. The issue I am having is the PDA not being a mounted drive therefore I cannot specify a path to copy from and to. Is there a way using powershell to get the files out of a MTP, alternatively is there a c++/python script that can get the files out, either by mounting it to a drive or any other way. Thanks in advance. [link] [comments] |
Tic Tac Toe checking for a win (C#) Posted: 01 Mar 2018 06:20 AM PST I'm trying to make a tic tac toe game and the win check wont work, anyone have a more efficient way of doing this? [link] [comments] |
Posted: 01 Mar 2018 01:59 AM PST I have a web development project that I'm working on. My current workflow is: develop and do rudimentary testing on my machine, deploy via git and codecommit to my AWS test environment, deploy from there to my production environment. The problem I am having is that there are a bunch of things that need to be different with my code when it's running on my machine and the production environment. For example, HTTPS has to be disabled as do secure cookies. Debugging has to be enabled as does some verbose error printing. Obviously none of this can ever get to production, but I don't see an easy way to make sure of that. How do I remember to reset all those things in the code before deploying to production? My project is written in Django, managed with git and deployed on AWS Elastic Beanstalk. [link] [comments] |
Posted: 01 Mar 2018 09:21 AM PST I am trying to just show bugs/code smells for the commit, instead of the entire code base [link] [comments] |
How to find the largest group of unconnected members in a tree? Posted: 01 Mar 2018 04:53 AM PST I'm praticing problem solving with the problems of a competition from last year. For this one I have no idea how to even start, other than iterating through all the possibilities. But it has to work for large inputs and there is a time limit (100 ms) for the program to run, so there has to be a better way. Here is the problem if you want to read the made-up story. There is also an example input and output. I translated it the best I could. https://www.scribd.com/document/372642657/Gang I'm using python 3.6, so help in that would be even better. [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment