What percent of of the code bases you have worked would you consider "good"? Ask Programming |
- What percent of of the code bases you have worked would you consider "good"?
- What route to take to become a digital nomad?
- [Java] Extreme amount of flashing in Java game
- Need an easy modification for an RPG Maker MV script call (maybe Java?) LESS THAN 10 LINES
- HTML cannot find JavaScript function in <script>
- [mac terminal] When altering the info of a file, is it possible to find if I used terminal to make those changes?
- Need help understanding how I should use Dependency Inversion in my project
- How different is linux from windows in therms of code and architecture?
- Need help on Assignment for C
- Need help with a programming assignment
- Looking for public database of SMS messages to train a NN..
- [C#] Visual Basic - How do you find the batting average of players in an XML file (xml includes atBats and hits) using a linq statement
- How to debug a program that speeds up after waking a computer from sleep?
- Looking for software to help manage filesystem
- Sending data larger than a singed byte over UDP in Java
- Cannot play MPEG-Dash stream in Kodi
- Programming Hub app. Is it good?
- How do I make buttons go to links when clicked on in HTML?
- Strange compilation errors using Lombok with IntelliJ
- How to add a study below a stock?
- What exactly is the 'NEW' keyword in SQL?
- C++ help regarding arrays
- PHP setting a counter.. How?
What percent of of the code bases you have worked would you consider "good"? Posted: 28 Mar 2018 02:57 PM PDT Keep in mind that what is "good" to one programmer is *** **** to another. [link] [comments] |
What route to take to become a digital nomad? Posted: 28 Mar 2018 03:54 PM PDT Hello guys, I have a good knowledge of Javascript and PHP but no real experience. I also know wordpress and some html/css and how to use pagebuilders to build websites, but honestly I'm not very gifted in designing. I'm a bit confused about how to get from here. I guess the fastest way to work remotely is to offer to build websites on fiverr ? But then I don't really advance in my PHP/Javascript skills. I know it's subjective but what would you recommend me to do? Or what questions should I ask myself? My main goal is to work remotely as fast as I can while developing my skills. I love programming more than designing websites, but not sure how to get a remote job without experience. Thanks a lot in advance! [link] [comments] |
[Java] Extreme amount of flashing in Java game Posted: 28 Mar 2018 09:46 PM PDT That's the program "Game Main" is the main method. I've googled very hard but I'm struggling to fix my problem. Also the program lies. Press up to begin not space. [link] [comments] |
Need an easy modification for an RPG Maker MV script call (maybe Java?) LESS THAN 10 LINES Posted: 28 Mar 2018 09:46 PM PDT Hey there, First of all sorry if this isn't the right place to ask, and even more sorry if this isn't Java. I'm working on an RPG Maker game but barely know anything about programming language, so yeah, I don't know what I'm doing. I'm having a lot of fun tho! This is what I need edited. Long story short, when the player presses UP or DOWN, they move in a direction. Instead I would like to have them look UP and DOWN instead of moving. It seems to be an easy modification to do. IF POSSIBLE, too, I would appreciate if you could shorten the lines to 10. That's the maximum lines the software can get but I've seen guys shrink so much code into a line I'm quite sure it shouldn't be an issue. Thanks for your time and if there's anything I can do to help, please tell me! Thanks a lot. [link] [comments] |
HTML cannot find JavaScript function in <script> Posted: 28 Mar 2018 02:56 PM PDT I am attempting to make a button run a script called 'start', but whenever I choose to call it, if there is anything else other than the 'start' function, it'll say "Uncaught ReferenceError: start is not defined at HTMLButtonElement.onclick" Nothing I do seems to work, so I'm assuming I just don't know how to do functions in java. Can anybody help me out here? Excerpt of code: [link] [comments] |
Posted: 28 Mar 2018 02:28 PM PDT I altered the 'creaated' date on one of my files. I'm wondering if it's possible for me to find the true date of creation or to find if I even altered the date in the first place. Thanks, heaps :) [link] [comments] |
Need help understanding how I should use Dependency Inversion in my project Posted: 28 Mar 2018 07:24 PM PDT I have a project for work I'm writing in c++. To explain briefly, this project uses an infrared sensor connected to a raspberry pi to take measurements for tree fruit research to then put in a csv file and push to dropbox. My original version of the project had the higher level App wrapper class dependent directly upon the lower level driver for the sensor, namely, the MLX90614. After reading about Dependency Inversion and Dependency Injection, I thought I would apply this to my project for the next iteration. So in this case, App should only depend upon an ISensor interface which MLX90614 implements. This works to decouple the App class from the MLX90614 class, but this leads to another issue that I'm trying to figure out how to solve. The driver for the MLX90614 is extremely useful and can be re-used in multiple projects. I'd like to port it over to it's own separate package or repo, but the problem is if I do, I have to carry the interface library it depends on with it. This is problematic as these interfaces are really specific to the system I'm implementing and other people probably won't need to use them ever. So if this is the case, why package them together? The solution I came up with was to create a separate adapter class that would implement the ISensor interface and forward the MLX90614 functions to use. This way, the MLX90614 class is completely decoupled and not dependent on anything. But after reading it seems that adapters should only really ever be used in situations where interfaces are mismatched. So now I'm confused as to whether this is bad practice or not. Could anyone with more experience give me some tips? [link] [comments] |
How different is linux from windows in therms of code and architecture? Posted: 28 Mar 2018 06:27 PM PDT My level of knoweldge in c# and java, just that, and not too far. If someone knows some good article that explains it will work too. The quetion is refered to the code and atchitecture, not the functionality. [link] [comments] |
Posted: 28 Mar 2018 06:25 PM PDT Hi AskProgramming! I am writing a program that will output the total gross salary of an employee. I have most of the code down, but one part is stumping me. It's the Years of Service - The description says that for service from 0-10 Years, add 5% of the base pay to the salary calculation. That was no trouble. What I don't understand is the next part which says - For above 10 years of service, in addition to 5% of base pay, add 1% for each year above 10 years. Maximum service can only be 50 years. How do I write the code for that? Pastebin for that section: https://pastebin.com/rtZpeRu0 [link] [comments] |
Need help with a programming assignment Posted: 28 Mar 2018 06:09 PM PDT Hello all, the error I am getting is when the user enters a data point formatted the way I want(i.e. Jane Austen, 6) I get this error message: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 13 at java.lang.String.charAt(String.java:658) at DataVisualizer.main(DataVisualizer.java:64) [link] [comments] |
Looking for public database of SMS messages to train a NN.. Posted: 28 Mar 2018 02:11 PM PDT Where can I find a public database of real SMS messages. Any suggestions would be appreciated. I saw the following study took place, but I can't find the actual data: https://www.forbes.com/sites/kashmirhill/2012/04/18/a-texas-universitys-mind-boggling-database-of-teens-daily-text-messages-emails-and-ims-over-four-years/#6eada8576a16 Something like this would be appreciated [link] [comments] |
Posted: 28 Mar 2018 05:46 PM PDT |
How to debug a program that speeds up after waking a computer from sleep? Posted: 28 Mar 2018 08:54 AM PDT I'm working on a Python project that uses PyBox2D (platform is Windows 10). As I understand it, PyBox2D is a Python wrapper for Box2D, which is written in C++, and that seems to be causing an issue that I've never come across before. The simulation usually runs fairly slowly, but I recently figured out that, for about 80 seconds after waking my computer from sleep, the program runs significantly faster. Then, for no apparent reason, the program slows down to its usual pace. The speedup occurs whether I start the program before or after putting the computer to sleep. I've done some preliminary benchmarking, which points to Box2D being the issue, but I'm not sure where to go from here. First of all, I checked Task Manager. When the program is running slowly, Python is using about 8% of the CPU. When the program is running quickly, it uses 25% (i.e. a full core) consistently. Then, I ran it through cProfile to see which functions were slowing things down. Here are the stats for the 5 most time consuming functions when the program is running normally/slowly: Here are the stats when the program is running quickly. Clearly, it's a problem with Box2D's World_Step method, but since it's a library that wraps C++ code I can't figure out what to do next. If it were just supposed to be slow, I'd be fine with that, but there's something wrong that is fixed by waking up the computer, and I want to figure out how to replicate that without actually putting the computer to sleep. Here are the relevant pieces of code: simulator.py main.py [link] [comments] |
Looking for software to help manage filesystem Posted: 28 Mar 2018 12:13 PM PDT Hello, I am currently studying CS and I've been looking at many different youtube videso to learn more and see how others think/problem solve while programming and doing all this I noticed that I have so many different languages, applications, etc installed and it annoys me that my file-system is so "messy". I've been using virtual machines to fix this, where I create a new machine and thereby keep everything tidy, but it is slow to create / start up a new VM every time and also it eats up hard disk storage. I've come across docker and I really like it, however I was wondering if there was something like docker but "bigger" with GUI almost like a VM / Vagrant. It's hard for me to explain, but I guess the closes thing I can come up with is "git branches" for the OS. So I'd create a new branch and there I could install new languages and applications, manages and whatever I want, and the other files from other languages would be "hidden" from me. Does this make sense? Is there any software that does this? For example, folders and subfolders would work well for scripts/files, but I want to do this with entire applications. So I could try installing node.js and p5js and Atom (or whatever) and have a clean "branch" to work on and if I don't like it I could just delete the branch and all related files would be deleted / uninstalled. [link] [comments] |
Sending data larger than a singed byte over UDP in Java Posted: 28 Mar 2018 11:42 AM PDT We are working on an app for Android that communicates with a device in GDL90 protocol over a UDP connection. The problem is that the data we need to send can often be larger than a signed byte, the device is already set up to communicate with our iOS app that sends data in unsigned bytes and unsigned chars. We currently have the UDP connection set up with a DatagramPacket datatype but this requires a byte in the constructor, so since Java datatypes ate always Two's Complement I only have 7-bits to send the data and I really need 8-bits. I thought of the following solutions:
Thanks for reading, any advice or thoughts on approaching this issue from another angle would be appreciated. Relatively new to programming "professionally", Java, and especially Android. [link] [comments] |
Cannot play MPEG-Dash stream in Kodi Posted: 28 Mar 2018 10:41 AM PDT Hi, I am working on a project where I need to stream an MPEG-Dash stream(.mpd) using Kodi. I am new to Kodi and found that the inputstream adaptive is only available in the windows version. I am using windows 10 and I enabled inputstream adaptive and RTMP in Kodi. However if it try to run a .mpd file or a .strm file using kodi if shows the message "Cannot find next item to play". Please tell me how to fix this problem in kodi or can I use any other player or open source set top box software that can do the same? [link] [comments] |
Programming Hub app. Is it good? Posted: 28 Mar 2018 02:10 PM PDT Hi! I'm looking on expanding my novice knowledge of programming and I stumbled upon that app. The reviews are good and the subscription is on sale now so I'm really considering buying it but I don't know if it is worthy the money. Does anyone here uses it? Can you tell me if it is worth the investment? Thank you! [link] [comments] |
How do I make buttons go to links when clicked on in HTML? Posted: 28 Mar 2018 10:22 AM PDT I made some buttons but I don't know how to code them so they redirect you to another webpage when clicked on. Here's what I currently have on NotePad++ copied and pasted onto a google doc And here's a picture of what my webpage looks like when run in chrome [link] [comments] |
Strange compilation errors using Lombok with IntelliJ Posted: 28 Mar 2018 07:38 AM PDT We have an application using Sprint Boot with Ivy for dependency management. We use IntelliJ as our IDE. First, the app compiles without errors. However, we're getting "compilation errors" (quoted because they look like compilation errors in the IDE but the app still compiles) such as "cannot resolve symbol" and "cannot resolve method" when it comes to trying to access getters/setters/etc created with Lombok. Here's some addition info:
If anyone has any ideas we're all ears. Thanks! [link] [comments] |
How to add a study below a stock? Posted: 28 Mar 2018 10:34 AM PDT Many stock trading platforms have these things called "studies" that appear below the stock chart and scale with it. I would like to embed a stock chart and a study below it in a website. There are various languages used for stock charts, and the simplest seems to be javascript. Other languages are welcome. How to make a study scale with a stock chart? [link] [comments] |
What exactly is the 'NEW' keyword in SQL? Posted: 28 Mar 2018 12:56 AM PDT I was trying to input a query into my database that allows it to copy value off multiple fields in one table and putting it into another field in another table. I tried doing this : The code compiles without an error, but when i insert a value into the purchase table, Error 1109 (Unknown table 'purchase' in field list) occurred Then i change my code to this : And for some reason, it works. My question is, what exactly does the NEW keyword do? Shouldn't my code runs just fine if i substitute NEW with the name of the table? [link] [comments] |
Posted: 28 Mar 2018 07:32 AM PDT Hello, i've been trying to get the size of a string entered by user into a character array and i've been trying to use strlen() but it keeps on giving me error! Although I've included the header <cstring> so whats the problem please help! Thanks [link] [comments] |
Posted: 28 Mar 2018 01:00 AM PDT Hey fellow Programmer, I want to make a 'counter' that is calculated to from the current time and from the deadline '12:00 am'.. But by the love of php I can´t find a way. Additionally it should be always updating without load the wholse site new. Thank you! [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