Best gift for the advanced programmer? Ask Programming |
- Best gift for the advanced programmer?
- What is Microsoft's endgame with VS Code?
- How does one become "literate" in a programming language?
- [Javascript] Populating a page with random div elements given dropdown selection
- What is the difference between these two pieces of same functioning code?
- How to seperate the text file input into two different variables [C++]?
- [C] Can't add information to an array
- Is this site a clone of another? Is there an open source variant/base?
- Writing tests for a large django restful api. Limited time and $ in start up mode. What advice do you have for me to get the most bang for my buck?
- [Java/Android] CountdownTimer running in Service isn't displaying
- Question about external libraries being added to code and inner workings of this?
- Does something like this already exist? A domain-specific language for cooking recipes.
- Word document based on dynamic input
- How do I put an OR in to an else if in Java?
- How can I get the HTML code for a website based on a user's search? (Java)
- what are some side-projects for cs major students
- C++ ifstream reading from a file.
- [Request] Programmers dialogue for story Part II
- What would be the purpose of passing in an event in JS?
- How can I use my Stylebot plugin in Chrome to highlight certain number ranges (i.e. viewer count > 2,000 is bold and green) on Youtube results?
- Advice on rapidly scaling my team and deliverables
- React frontend for PHP server (Laravel)
- What's the best platform to program with C?
Best gift for the advanced programmer? Posted: 03 Dec 2017 03:16 PM PST I'm looking for a xmass gift for my father who is an extremely gifted programer but because he runs a business doesn't get to do it as often as he would like. Is there a website or game that presents challenging coding questions that he could work on for fun? [link] [comments] |
What is Microsoft's endgame with VS Code? Posted: 03 Dec 2017 08:50 AM PST So I discovered VS Code around a month ago, and have been using it pretty much exclusively since (seriously, it's great!). However, I am incredibly skeptical of how good of a deal it seems to be. It is free (as in freedom, MIT license), available for not just Windows, but also OSX and Linux, and managed by a large enterprise company. By default, it collects data on you, but this can very easily be disabled in Settings, and Microsoft is very clear that it collects data and how to optionally disable it. So, what possible reason could Microsoft have for doing this? I fail to see how this could possibly generate any revenue for them, and am incredibly wary of anything like this that is created by a corporation but is purportedly "free". Any idea what's going on here? [link] [comments] |
How does one become "literate" in a programming language? Posted: 03 Dec 2017 06:13 PM PST I am finishing up an introductory programming course that teaches basic languages (Python, JavaScript, CSS/HTML) and I have been getting good scores on exams because I am able to memorize most of the code that helps me answer the questions. I realize HTML/CSS is markup language rather than coding language, but it looks like the same principles apply. How do I "become literate?" [link] [comments] |
[Javascript] Populating a page with random div elements given dropdown selection Posted: 03 Dec 2017 09:14 PM PST I have a page which I am trying to populate a page with html div "penguins" multiple times based on the number selected in a dropdown menu. However I cant seem to get my javascript loop to display anything given a users selection. Only classes listed in my html document under the gameholder will appear. I have 8 different penguins I want to randomly display multiple times based on dropdown selection. Each with their own images as seen in the css file. This is the source project I am working from. html: css: javascript: } [link] [comments] |
What is the difference between these two pieces of same functioning code? Posted: 03 Dec 2017 07:40 PM PST I have been tinkering and programming for years, and have just started studying OOP. I am learning Java, and need some help understanding the difference and uses of two pieces of code that both do the same thing. My question is when do I use which, and what benefits does each have? I wrote both, on my own, without any help, and mostly without understanding. Code piece 1: public class Dog { private String name; private int age; public Dog() { name=""; age=0; } public String getname() { return name; } public void setname(String nm) { name=nm; //Also, why is this line necessary, why cant I just declare name=name and change the parameter variable } public int getage() { return age; Code Piece 2: public class Dog { private String name; private int age; public Dog(String nm,int ag) { name=nm; age=ag; [link] [comments] |
How to seperate the text file input into two different variables [C++]? Posted: 03 Dec 2017 08:00 AM PST In my Project I need to get data about circuit from a text file then I need to parse it and produce to output data. Here is a sample data for the text file
now I need to read the component name first which is easy: But for the second part I need to read another string from file and seperate that data into two parts: ComponentName - thOutput. first part will be string and second part is will be integer. for example for AND2-1 it will be --> compName=AND2 , thOutput=1 so how can I seperate it like before/after "-" symbol. Sorry for my poor English not a Native Speaker. and since the Project is large I didn't put unnecessary codes above. [link] [comments] |
[C] Can't add information to an array Posted: 03 Dec 2017 05:26 PM PST Relevant code: Then I scanf less than 20 first names, last names, and GPAs to the array and display it in a table. That part works. I have an int variable, length, that shows how many sets of information are in the array students. I want to add a predetermined set of data to the array, not something the user enters. Here's my failed attempt at that. I get the errors E0137 and C2106 on the lines where I try to add the first and last name of the new student. "expression must be a modifiable value" and ""=": left operand must be l-value". What did I do wrong here? Thanks! [link] [comments] |
Is this site a clone of another? Is there an open source variant/base? Posted: 03 Dec 2017 05:00 PM PST So I ran into this site. Long story short, it's nothing special, users can upload images with groups of options (with a maximum of ten options per group), set the number of groups, which will add the amount of random number generators to it, and then make it usable for others - the site then adds the option to generate the numbers. It's pretty similar in some terms to the typical Facebook "viral" images, where you have to take your first name's first letter, last name's first letter, day of month of your birthday, et cetera, to get your "vampire name" etc. - but here all the values are randomly generated. The site itself looks kinda like if it was made in an open-source manner, and I was wondering if it was a clone of something open source. [link] [comments] |
Posted: 03 Dec 2017 03:25 PM PST Basically all in the title. I've tested before, but never specifically dedicated myself to it. My test cases have often ended up too trivial or too specific and left gaping holes. TDD is great, but the code is already here on this project and there is a good chunk of it. Thanks in advance. [link] [comments] |
[Java/Android] CountdownTimer running in Service isn't displaying Posted: 03 Dec 2017 03:06 PM PST Edit: I got it to show but now I'm having the problem that if I go in and out of the screen, the countdown reverts back to its starting value. Updated my cod I'm trying to make a countdown timer that will continue to run in the background. To do this I'm using a timer and broadcasting the data to the textview in the main activity. But when I run it nothing shows up. Any ideas? Service class } Main activity XML [link] [comments] |
Question about external libraries being added to code and inner workings of this? Posted: 03 Dec 2017 02:35 PM PST
I'm really not sure what is being asked here - what does it mean by the places in which libraries are added to the code? Do they mean the libraries that are imported at the top of the code or what? [link] [comments] |
Does something like this already exist? A domain-specific language for cooking recipes. Posted: 03 Dec 2017 10:29 AM PST I'm interested in doing some programming relating to cooking & kitchen management, and one idea that's occurred to me is that recipes are already written in a style of English that's quite stilted, so it seems like it wouldn't be too much of a jump to create a machine-readable language spec for recipes that would also be natural, albeit even more stilted, English. Has anyone already attempted something like this? I've searched around on the general internet, reddit, and HN but I've not found anything. [link] [comments] |
Word document based on dynamic input Posted: 03 Dec 2017 10:07 AM PST Hi All, I'm not sure if this is the right sub and/or if this question is appropriate (if not let me know and I'll delete the post) but I'd like to ask you all for some input from this community on where to start. Basically I'd like to create a small simple program thats easy to use that will create word documents and pdf documents based on selections users can make. I'd like the user interface / program to have dynamic input (e.g. when you select a radio button, the next couple of buttons/dropdowns/text fields appear on what you select and you work your way down untill all is answered and then you can select create document). I'd like the style to be more like an app. I think it should be really straightforward and relatively simply but i could be wrong. I have found a couple of options (like VBA which I'm not fond of and C++ which might be way over the top for this purpose) so before I'm going to commit to a specific language I thought to ask here and maybe get some insights in what you think the best language would be. I have a basic understanding of programming (started 25 years ago on my dad's old MSX and the basic web stuff) but nothing fancy.. Any and all help/tips/advise is greatly appreciated! [link] [comments] |
How do I put an OR in to an else if in Java? Posted: 03 Dec 2017 01:25 PM PST So as part of an assignment I have to do this: Write a Processing sketch that implements the following functionality: When the user clicks the mouse on the: Upper left quadrant of the screen, a green circle is drawn at the mouse position. Upper right quadrant of the screen, a red square is drawn at the mouse position. Lower left quadrant of the screen, a blue rectangle is drawn at the mouse position. Lower right quadrant of the screen, an orange circle OR triangle is drawn at the mouse position. I can do it all but the last bit, I don't know how to make it randomly one or the other. This is my code at the moment: void draw() { } void mouseClicked() { if(mouseX < 50 && mouseY < 50) { } else if(mouseX > 50 && mouseY < 50) { } { } { } } [link] [comments] |
How can I get the HTML code for a website based on a user's search? (Java) Posted: 03 Dec 2017 12:42 PM PST For example: I want the user to search for a term like "apple" or "banana" and I want to get the HTML code from Wikipedia so I can parse data from it. Hope this was clear. Any help would be really appreciated. [link] [comments] |
what are some side-projects for cs major students Posted: 03 Dec 2017 12:33 PM PST I am majoring cs and wanting to work on a side project. I only took two java programming classes. I learned most of the data structure and algorithms (queue, stack, linked list, tree, maps, etc.). I don't know anything about GUI and making android/ios applications yet. What are some side projects that I can work on within my knowledge? Edit: well not most of the data structure... [link] [comments] |
C++ ifstream reading from a file. Posted: 03 Dec 2017 07:58 AM PST My question is: Can I not use a string as the character array argument??? if it helps, this is what the function I am having trouble with looks like with a * next to the erroneous line. any help would be greatly appreciated! [link] [comments] |
[Request] Programmers dialogue for story Part II Posted: 03 Dec 2017 06:25 AM PST Hello again, considering the success of my last request, I figured I'd be so bold to make a second request. The story is the same, but the scenario this time around is that my leading character is out shopping around for clients. Her business isn't making money, so she goes out to convince companies/people that her software company has the skills and knowledge to make things happen. But things don't pan out because of stigma against her gender, so they give her a pop quiz which she aces. So, much like the last time I'll give you the dialogue and highlight where I need your input :-) Karen: So yes, my company has just started and while the staff is small, they're both skilled and eager to prove themselves. Client: But you have no formal education yourself, correct? K: ...Yes, I'm self-taught for the most part. C: The problem with being self-taught, Ms. Starr, is that many tend to skip the basics. Such as [basic technobabble problem]. K: You can avoid that by [technobabble solution]. C: Uhm, yes. But our systems are bigger, more complex than that you understand. Systems like [system name] have [medium technobabble problem], which is hard to sort out. K: If you use [system name], then I'd [technobabble solution A]. Or perhaps [technobabble solution B], depending on your setup. C: Yes, yes. Even my son who's in high school knows that. K: Smart kid... C: But what we're really after, is someone that can handle [trick technobabble problem]. K: Well gentlemen, I can't help you there. C: We're sorry to hear that. K: In fact, I don't think anyone can, since after all [technobabble that exposes their trick question]. Feel free to juggle around with the dialogue if needed, it's just a basic draft to give you an idea of what I'm after rather than something set in stone. If something is unclear or you need more information, please don't hesitate to ask and I'll answer as best I can. [link] [comments] |
What would be the purpose of passing in an event in JS? Posted: 03 Dec 2017 08:57 AM PST My professor created an assignment for my class, and he created html that includes a submit button (after user enters in a username and a password), and in the html he includes <input type="submit" value="Login" class="btn btn-primary pull-right" onclick="login(event)">. "login( event )" is a JS function I am supposed to create, but I'm struggling to figure out why he would be passing in the event? I feel like it is unnecessary, as my understanding is that an event is the button click, any ideas? [link] [comments] |
Posted: 03 Dec 2017 08:45 AM PST Normally I would just use Youtube's sort feature, but it really sucks. So I would rather just use my own highlighting method on my userside w/ a little bit of JavaScript. [link] [comments] |
Advice on rapidly scaling my team and deliverables Posted: 03 Dec 2017 06:04 AM PST I'm in a situation where I need to scale up very quickly and be able to deliver a great deal of productivity within about a six month time frame. For some background:
The current situation:
My Plan:
I am in the Raleigh/Durham area so while there is a pool of talent, it seems there are more jobs than developers. This is kind of like a job for a turnaround specialist. I'm looking for any advice. Since there is a great deal of ramp up time, I'm hoping the diverse skillset helps balance out the weaknesses and they can support each other, so I'm not spending all of my time explaining things. Can anyone provide any advice and done anything similar? [link] [comments] |
React frontend for PHP server (Laravel) Posted: 03 Dec 2017 02:52 AM PST Hey all, I've been doing some research and I'm fairly confident I understand React's premise and the way it is intended to be used, as a modular godsend. I come from a pre-ES6 JS background, using Angular 1.x. I've worked with REST API servers to negotiate logins, make requests, and update data locally/remotely, but something seems missing in my understanding of React. In Angular 1.x it was easy enough to create a service internally to handle login state, and make listeners through the JS frontend to respond to changes or request logic be performed, but I do not quite understand how React is supposed to be used in this way. It seems to be all about essentially socket-style connections and listeners, pub/sub style connectivity, so I was wondering if someone could answer this question for me now that I've waffled on: Would it be reasonable to use React to create a web/mobile application that depends on a PHP based REST server for data? Or should I focus on Node.JS and work with that instead? I don't want to get part way through development to find that I've created a monster. Thanks! [link] [comments] |
What's the best platform to program with C? Posted: 03 Dec 2017 01:08 AM PST Hi! I haven't programmed for a while now and I'm going back to business soon. I wondered what is the best platform to program with C, and I mean by that to either Ubuntu or Visual Studio. Are ubuntu skills needed? Is it unnecessary? Thanks! [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