What programming concepts can be used to optimize your day to day life? Ask Programming |
- What programming concepts can be used to optimize your day to day life?
- I am fairly fluent in Python & would like to build my resumé. Long story short I have decided to pick up Java & would like to know if there are any free online books for beginners. Any other helpful input is appreciated even if not related to the book. Thanks!
- Add stringbuilder's index's values together for every index and store the values in a list
- [Netbeans] [Java] [JavaFx] I have a JavaFx gui project, and a database Java project I want to combine into one project? How do you do this?
- Why does garbage collection affect performance so much and will we ever see tripple A fps games in a garbage collected language?
- In your professional experience, after how many hours a week do diminishing returns begin? After how many hours do negative returns begin?
- Novice Programmer looking for webdev starter kit and projects to dive into to learn.
- ¿How can I store tree nodes data?
- How to populate object when initialized without using a constructor?
- Producer-Consumer Problem In Python
- What are some tech jobs that are more design orientated?
- Any hash function gurus here? JavaScript MurmurHash3 vs my custom 64-bit hash
- Why should I not use a single table for database?
- New to C++, struggling with OOP/ inheritance
- Does this school's curriculum look worth it?
- [x-post] Good textbooks/references for software testing philosophies?
- How do you make a batch file overwrite certain files with something?
- I want to write my own MIDI hardware/software code. Where should I begin?
- VBA Userform script editing
- Need help fixing an undefined identifier
- Rules/Etiquette on Pull Requests because of spelling errors.
- (HELP) What language should I learn next???!!!
- Can you suggest the best language and development setup to program biomechanical simulations?
- How to find a programmer/partner?
- How to hide these elements in YouTube using Tampermonkey?
What programming concepts can be used to optimize your day to day life? Posted: 04 Apr 2018 01:24 PM PDT Do you use any concepts from programming/logic/computer science to be more efficient in your day to day life? If so which ones, and how do you implement them? [link] [comments] |
Posted: 04 Apr 2018 07:53 PM PDT |
Add stringbuilder's index's values together for every index and store the values in a list Posted: 04 Apr 2018 09:31 PM PDT [link] [comments] |
Posted: 04 Apr 2018 09:06 PM PDT |
Posted: 04 Apr 2018 01:33 PM PDT .. where the game created in ex C# or Java . Unity as I understand it has a C++ core that is scripted (no jit) with C# . I'm talking GCed language for all parts except shaders. [link] [comments] |
Posted: 04 Apr 2018 10:22 AM PDT If you already know what "diminishing returns" and "negative returns" mean, skip this paragraph: For some amount of time, work hours and production output scales linearly. Work X hours, get X work done. At some point, the point of diminishing returns, the curve is no longer linear. Work X more hours, get X/Y work done (where Y > 1). Then at some later point in time, the point of negative returns begins, where you begin writing more hours worth of bugs to fix than it took to write. Or, for X hours worked, get -Y work done (where Y >= 0). In your professional experience, around what hour-mark per week do these points occur? [link] [comments] |
Novice Programmer looking for webdev starter kit and projects to dive into to learn. Posted: 04 Apr 2018 07:18 PM PDT Hey all, I'm a novice programmer, meaning I'm familiar with HTML/CSS and learning JavaScript. I want to be a Full-Stack developer eventually. But I'm now trying to teach myself JavaScript by building a web app. I learn best by doing. I've tried codeacademy but can't seem to focus. I find it so monotonous. So I thought I'd just build a project from scratch to learn. So can anyone recommend projects to just jump into and learn by trial and error? And a webdev set up (kit)? I use windows btw. [link] [comments] |
¿How can I store tree nodes data? Posted: 04 Apr 2018 06:32 PM PDT Sorry for the misleading title, I didn't know how to express myself. My problem is: I have a list that I read from a file.txt, and each element in a list contain children. These children are defined with an indent. Example of file.txt:
If I have to read a list like that and store it in an hashmap, array or whatever is the best option, how do I do it? Edit: I've been thinking to do it this way: 1.- Read the indent of n line and store it in a node var 2.- Read the indent of n+1 line. If n+1 line indent is > than n indent, then n+1 line is a child of n. But if n+1 line indent is < than n line indent then n+1 is a child of n-1 line. Is that a good way? I don't know if that will work I haven't try it yet. [link] [comments] |
How to populate object when initialized without using a constructor? Posted: 04 Apr 2018 05:54 PM PDT I have an object, which is a data structure. Issue is, I need the data structure to be populated with other objects upon creation and initialization. Normally, I'd do this all in the constructor, but it's a long piece of code to even do this. (In short, I have to pull information from a url (ie. Use a try-catch) and convert it into an object, then toss this object into the arraylist with a for each loop. How do I go about this? Will I have to create a separate class that creates the final, populated arraylist and pass it to my other class? Should I be calling methods in the constructor? This is in Java, by the way. [link] [comments] |
Producer-Consumer Problem In Python Posted: 04 Apr 2018 05:45 PM PDT I'm stuck trying to get this to work and new to the whole concept. If anyone could help that swells. The program has Producer and Consumer threads, which currently do not synchronize themselves between each thread of the same type and also between Consumer and Producer. The program processes a file, which contain 3 fields per line: <transaction id>,<sleep time in ms for the consumer>,<sleep time in ms for the producer>. The transaction must be processed in a FIFO manner between the producer and the consumer. When a producer threads reads a transaction, it increments the idCounter, puts it in the FIFO, then sleeps the number of producer ms specified in the transaction. When a consumer threads gets a transaction from the FIFO, it then sleep the number of consumer ms specified in the transaction before trying to obtain the next transaction from the FIFO. [link] [comments] |
What are some tech jobs that are more design orientated? Posted: 04 Apr 2018 05:42 PM PDT I'm still in school and have decided my shift my major towards to be something programming related. I'd love to have a career programming but I think I would be more interested in something that is on the design side such as web designers or graphic interfaces. What are some other jobs that I could look into? [link] [comments] |
Any hash function gurus here? JavaScript MurmurHash3 vs my custom 64-bit hash Posted: 04 Apr 2018 03:45 PM PDT JavaScript absolutely sucks for hash functions. The The bottom line is: I want a fast (as fast as possible) hash function with the collision probability matching at least 64-bit. 32-bit is not good enough. If it's 128-bit and still fast? Fine with me. My use case? Checksum or error detection. Collisions need to be minimized at all costs. I implemented MurmurHash3 (32-bit) here and it's significantly faster than even this so-called "optimized" version of the same algorithm. The only difference is it uses I implemented MurmurHash3_x86_128 and it's immesely faster (benchmark) than this JavaScript implementation. Sadly, this specific function seems to be flawed. My version is slightly modified to circumvent the inherent flaw, but I don't have much confidence in it. I also implemented: MurmurHash2_160 (unofficial), xxHash_32 and Jenkin's lookup3.c. They perform quite well, but 32-bit MurmurHash1 and MurmurHash2 are the absolute fastest of the bunch. I modified MurmurHash2 to squeeze out performance which is pretty much the fastest now. Building from that, I made a 64-bit version, which is even faster than my already fast 32-bit MurmurHash3 implementation. Here it is: Is this a good hash function? Are It passed my own basic collision and avalanche tests. Can anyone test it on SMHasher or any thorough benchmark? I have no idea how to compile that thing. [link] [comments] |
Why should I not use a single table for database? Posted: 04 Apr 2018 09:37 AM PDT I understand that normalizing your database is the most efficient way, but why not a single table for centralized data? [link] [comments] |
New to C++, struggling with OOP/ inheritance Posted: 04 Apr 2018 05:44 AM PDT Can someone take a look at my code and explain why it is not running as well as how to fix the problem to get it running? Thank you. [link] [comments] |
Does this school's curriculum look worth it? Posted: 04 Apr 2018 02:50 PM PDT Hey this is my first post here so I'm not sure how valid of a question this is but I'm wondering if my local university's computer science program looks like it's worth the money and time investment. Alternatively there is also a local community college program that I might also be interested in if it's spectacular looking to you all. With the research I've down however, I've heard associates degrees are usually a waste of time in computer science. I know it'll be important for me to have projects outside of school that will look better on my resume and show me passion for programming. I'm just wondering if this specific schools program looks good compared to what others have learned or just in general. I've been interested in learning software development for about year now and after learning via Treehouse and Codeacademy I think this is something I want to pursue as a career. Any help is appreciated. [link] [comments] |
[x-post] Good textbooks/references for software testing philosophies? Posted: 04 Apr 2018 02:49 PM PDT Note: I previously posted this on /r/learnprogramming and got no responses.Hello there, When I currently develop software, I generally conduct testing by exhaustive unit testing. While this works, I assume it is rather inefficient in the sense that I'm trying to think of every possible test scenario and end up dwelling on small features. I'm curious if there are good textbooks/references to software testing philosophies so I could improve my efficiency and effectiveness. Thanks. [link] [comments] |
How do you make a batch file overwrite certain files with something? Posted: 04 Apr 2018 02:22 PM PDT For example: I want to overwrite all files named ''kitty.gif'' with a file called ''penis.gif'' (which is located in the path C:\Windows\penis.gif) . How will I do that? I'm using a Windows 98SE virtual machine. [link] [comments] |
I want to write my own MIDI hardware/software code. Where should I begin? Posted: 04 Apr 2018 10:34 AM PDT Let me begin by saying i have zero knowledge in coding. My background has always been in design/audio production. Having said that I think I have always been inclined to see how the machine works. I am good at problem solving (thanks google) but more importantly I want to understand the hardware and software that I use in a deeper level. I use Ableton Live 9 and Pro Tools 11 and have access to both Mac and Windows platforms. I want to design my own MIDI controllers or modify my own. My questions are what coding langues should i focus on? Is there a specific degree that would be applicable to this? Or should I focus on learning the code from an online source? [link] [comments] |
Posted: 04 Apr 2018 01:33 PM PDT Hello guys, I'm trying to make this code open specific sheets in excel using the exact sheet name as an input to get to it. If the sheet name is not there or spelled incorrectly it should display the "Please use another Sheet name" message. I have this so far. I appreciate your help. { Private Sub CommandButton1_Click() Dim Sheetname As String whichSheet = InputBox("In which sheet do you wish to enter data? Specify sheet number as Toner, Copy Paper,etc.", "Input") Dim ws As Worksheet For Each ws In Worksheets Select Case ws.CodeName Case "Toner", "Copy Paper", "Mail Package", "Alteration", "Gloves", "Special Requests" Worksheets(whichSheet).Activate ws.Name Case Else MsgBox "Please use another Sheet name" Exit Sub End Select Next ws Worksheets(whichSheet).Activate Dim lastrow lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row lastrow = lastrow + 1 Cells(lastrow, 1) = TextBox1 If Application.WorksheetFunction.CountIf(Range("A2:A" & lastrow), Cells(lastrow, 1)) > 1 Then MsgBox "Submitting Entry" Cells(lastrow, 1) = "" Cells(lastrow, 1) = TextBox1.Text Cells(lastrow, 2) = TextBox2.Text Cells(lastrow, 3) = TextBox3.Value Cells(lastrow, 4) = TextBox4.Text Cells(lastrow, 5) = TextBox5.Text End If End Sub } [link] [comments] |
Need help fixing an undefined identifier Posted: 04 Apr 2018 12:47 PM PDT I hope this is the right place to ask but I've hit a wall. For some reason, my identifier used in my if-statement within my for loop ("i") is undefined and I don't know why. Can anyone shed some light on my idiocy? [link] [comments] |
Rules/Etiquette on Pull Requests because of spelling errors. Posted: 04 Apr 2018 12:15 PM PDT I wanted others opinions on this. Say if I'm reading through documentation on a repository and I see a spelling error in a code sample: Although this example is minor to what I found. Would you submit a PR to fix this? I'm conflicted in that: A. There may be more spelling errors. Although I noticed this one, I don't want to feel obligated now to run the whole thing through a spell checker B. Maybe it's just me but I'm worried that projects will be overwhelmed with multiple 1 change PR because someone accidentally misspelled something. This might be able to be lumped into a more meaningful code change. C. I read https://yihui.name/en/2013/06/fix-typo-in-documentation/, although it mentions it's good practice for people that want to get familiar with Git and Pull Requests. I'm already familiar with this process. What do you guys think? [link] [comments] |
(HELP) What language should I learn next???!!! Posted: 04 Apr 2018 12:11 PM PDT I am currently enrolled in an AP computer science class at my high school and I have learned python and am just finishing up the intro to JavaScript. Next year I am learning java and was wondering if I should begin learning it on my own over the summer and my free time or if I should pick a different language. The other thing is that I don't know of any good courses (preferably free) that I could use learn it. If anyone has any suggestions that would be appreciated! [link] [comments] |
Can you suggest the best language and development setup to program biomechanical simulations? Posted: 04 Apr 2018 12:03 PM PDT What I need to do will look somewhat similar to this, but moving: Basically, I'll need to "animate" very simple shapes with code. I tried using GameMaker Studio, but its array- and map-related abstractions are very low - and I gonna use lots of arrays and hashes. I was hoping there's a better option - I was thinking Ruby-based, or Python. Basically, I'll need to do very little 2D graphics, but quite a lot of relatively complex programming. Can you advise the best language and "graphical" library for this task? [link] [comments] |
How to find a programmer/partner? Posted: 04 Apr 2018 09:54 AM PDT I'm interested in finding a good/new programmer who can develop systems or ideas with me. There are many simple tools and systems I need for my business that could easily be resold as a business on a subscription basis. I have had bad luck finding reliable programmers in the past, even with pay upfront. Is there even a market for this? Anyone interested? I'm not sure where to start so any advice is appreciated. [link] [comments] |
How to hide these elements in YouTube using Tampermonkey? Posted: 04 Apr 2018 08:40 AM PDT If you click the top left "3 lines" icon, the following tab opens up. I want to hide the red circled elements because I don't really use them. Most likely, it can be done using "GM_addStyle" but I can't select these elements without affecting other parts of the website. [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