created a simple insult generator with pyhton. gave me ideas for my next project. now i have questions. Ask Programming |
- created a simple insult generator with pyhton. gave me ideas for my next project. now i have questions.
- How do you choose a language and get deeper with it?
- How do I make a program that displays some stuff?
- Need help with code for Diagonal Difference method in Java
- I have a question about tools to track my time for coding questions
- In an MVC architecture, where should I put data?
- Question about time complexity of an algorithm
- Want to make a simple webapp, have no idea where to start.
- I don't know what I'm looking for here.
- How to update data automatically (HTML/JQuery) plz help
- I want to move all the projects from my computer to a new one. Will uploading them to dropbox and downloading them on the new computer work just like cloning from GitHub? Any downside to this?
- Question about fbi/fim
- Can somebody help me make sense of these two codes
- I want to make a program that gleans information from e-mails and creates a spreadsheet from it. Preferably gmail to Google Sheets. What is a good way to go about this?
- Working through Bjarne Stroustrup's "Programming: Principles and Practice Using C++" and stuck on creating a word bleeper.
- confused on the asp.net /c# framework
- Is there an efficient data structure for finding the smallest number above a certain value?
- How to show coding skills on a profile/blog site
- Framework/Library/Something for desktop GUI?
- learning path for java or c# framework
- How to automate being alerted when a subreddit meets certain criteria...
- I am trying to create an Algorithm that can recommend users based on certain weighted attribute.
- Citrix Virtual Apps and Desktops alternative for SolidWorks
- How can I detect Hue smart light changes by listening to network traffic?
Posted: 30 May 2020 10:15 AM PDT Hey guys im new to coding but have learned html css and some javascript. im trying to learn python now and made a program that would insult my friends based on the name that they entered into the program. this gave me the idea to use my raspberry pi and use facial recognition to see who a person is and then have a robotic voice read them a compliment that i entered about them. the idea is my family lives across the country and i would love to send them the device and set it on a counter. maybe certain times of the day i can have it active so whoever steps in front of it will be recognized and have the voice compliment them for me as im away. lol is this a doable project? what can i focus on learning that will help me do this??? thank you so much! my neices will love it if i can finish it!! [link] [comments] |
How do you choose a language and get deeper with it? Posted: 30 May 2020 05:13 PM PDT As the title says, I think I become like those programmers who knows and learns a lot of programming languages yet never gets deeper with it/sticks to it, worst dont build softwares to it. I'm a fast learner and I can pick up languages faster, however once I feel: "Ah looks like I'm ok with this language and I know the basics of it time to jump into another language" instead of learning the language deeply. I'm amazed to other users here who knows their language very well and can explain why that function of that language acts like that. Also how do you pick a field in programming (web dev, software engineering, ml/ai, etc feel free to add some), do you just feel it or you try to do it and wait if you feel passionate about it? [link] [comments] |
How do I make a program that displays some stuff? Posted: 30 May 2020 10:19 PM PDT I want to make a program or a script that would show certain images or graphics based on the values from a webpage. For example, on random.org, if I press the the button "Generate", it would generate a random number between 1 and 100. I want if the number is below 50 to show a red circle or square on the screen, and if the number is over 50 to show a black circle or square... What's the easiest and fastest way to do this? [link] [comments] |
Need help with code for Diagonal Difference method in Java Posted: 30 May 2020 09:40 PM PDT The question is at https://www.hackerrank.com/challenges/diagonal-difference/problem as well Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example, the square matrix is shown below: The left-to-right diagonal 1 + 5 + 9 = 15. The right to left diagonal 3 + 5 + 9 = 17. Their absolute difference is | 15 - 17 | = 2. Function description Complete the diagonalDifference function in the editor below. It must return an integer representing the absolute diagonal difference. diagonalDifference takes the following parameter:
Input Format The first line contains a single integer, n, the number of rows and columns in the matrix arr.Each of the next lines describes a row, arr[i], and consists of n space-separated integers arr[i][j]. Constraints -100 <= arr[i][j] <= 100 Output Format Print the absolute difference between the sums of the matrix's two diagonals as a single integer. Sample Input Sample Output Explanation The primary diagonal is: Sum across the primary diagonal: 11 + 5 - 12 = 4 The secondary diagonal is: Sum across the secondary diagonal: 4 + 5 + 10 = 19 Difference: |4 - 19| = 15 Note: |x| is the absolute value of x This is my code: public static int diagonalDifference(List<List<Integer>> arr) { [link] [comments] |
I have a question about tools to track my time for coding questions Posted: 30 May 2020 05:38 PM PDT I've been practicing coding technical questions on different platforms (Leetcode and HackerRank). I've found my approach and the time it takes has been inconsistent with my experiences in actual interviews.
I want to simulate the process of problem-solving coding questions in technical interviews outside of mock interviews. Just practicing the coding technical question is not enough for me, as it is easier to solve the questions without any pressure. Thanks in advance! [link] [comments] |
In an MVC architecture, where should I put data? Posted: 30 May 2020 09:09 PM PDT I made a program in java that involves a student profile which has a course and a course has modules. Currently, the courses with all their modules are hardcoded and stored within the controller. I want to add a read from file function where the file contains the courses and modules. Where should I put this? Should I make a new class that stores all this? Where do I put that class? Normally I'd put data in a database but this time, it has to be inside the program (it's for university). [link] [comments] |
Question about time complexity of an algorithm Posted: 30 May 2020 04:45 PM PDT Below is an algorithm ripped straight from this leetcode question. I just had an interview and in it I was asked the question "Write a function to find the first unique character in a string, and return it's index". Although copied from leetcode solutions, this is almost the exact answer I came up with. When asked what the time complexity of this is, I said O(n). The interviewer said I was wrong, and while I was trying to figure out what else it could be he told me that it was O(n log n) because of hashmap accesses being O(log n). I don't think that makes any sense. Am I correct here? [link] [comments] |
Want to make a simple webapp, have no idea where to start. Posted: 30 May 2020 07:57 PM PDT I'm looking to make, basically, a contacts app as a web app, it'll allow you to sace contacts and notes. I know basic Python and havnt touched HTML+CSS in years (but I can pick it back up), but that's it. I've seen suggestions for Java script, react, Django, and so much more. Could someone please tell me what I need to create this project, so I can learn that and be a little more efficient than generally learning a bunch of languages? Thank you! [link] [comments] |
I don't know what I'm looking for here. Posted: 30 May 2020 01:28 PM PDT I'd like to create a web app that displays an animation of words being written on a digital scroll. Kind of eloquently. Like someone writing a book, but just the text being written, not the quill or hand. I would like to interact with it. Being able to click on specific sentence and have a small dialog pop up. How would I go about implementing such a thing? What software, code, or framework do I need to create this? I was thinking at one point I would need to learn to animate with after effects. I'd appreciate any help and guidance. [link] [comments] |
How to update data automatically (HTML/JQuery) plz help Posted: 30 May 2020 06:57 PM PDT So I am making a coronavirus tracking website, and I'm having a lot of trouble having my code update the data automatically. The data such as the number of cases will change when I refresh the page, but won't do it automatically. If anyone is able to help me out I would really appreciate it. Here is my JS code for the information: In the console of my website, it will say "Checking for updates" but it will never update the data until I refresh. The only thing I wrote was the var's to get the number and cases, I am still new to Jquery so I'm not sure exactly how it works. Here is my HTML code to show the data: Basically just using id="total_confirmed" etc. Do I need to call the update function in my HTML code for my data to update automatically? thanks [link] [comments] |
Posted: 30 May 2020 06:11 AM PDT What I mean is let's say I have project XYZ on laptop A. Then I upload XYZ to dropbox, download, and open it on laptop B. Is this the same as cloning from GitHub? I want to do this because I have this big folder called "coding" and it's gonna be a lot of work to commit all my changes on all projects and push them. I'd rather just put the folder on dropbox and open it up from my new computer. [link] [comments] |
Posted: 30 May 2020 03:46 PM PDT I've been working on a project to create a family pictures slideshow device using a Pi I own. I have a program running that downloads everything from a Google Photos account into a folder and I would like to auto-start a slideshow from that folder. My first approach was to use fbi which worked great, except it can't handle the number of photos in the folder (3000+). After that I tried using fim which works great with large quantities of files but doesn't automatically go full screen and I couldn't find any way to change that. Spent around 1-2 hours looking up stuff on line and couldn't find anything helpful. Does anyone know of a way to work around fbi throwing "argument list too long" errors when given a large quantity of files or a way to make fim go auto fullscreen? [link] [comments] |
Can somebody help me make sense of these two codes Posted: 30 May 2020 11:39 AM PDT output is snmneeevcgraevmae. Same thing for the code blow. But I don't see how you get to this. How does it jump to the second word after getting just one char from the first word? Are the indexees of char *text[] 0,1,2 for the three words or do the commas not matter at all? [link] [comments] |
Posted: 30 May 2020 11:21 AM PDT I have half an idea of how I would do using c++, java or python and locally stored email files and Excel. Read in the email file. Look for the relevant string forms (example: dates) and write out to a text file then import the data to a spread sheet or maybe write the data directly to a spread sheet file, but is there any way to do this between gmail and google sheets in the cloud? [link] [comments] |
Posted: 30 May 2020 10:35 AM PDT I'm new to programming and working through this book on my own time. So far I've had no trouble but I'm utterly stuck on Chapter 4's last Try This: Write a program that "bleeps" out words that you don't like; that is, you read in words using cin and print them again on cout. If a word is among a few you have defined, you write out BLEEP instead of that word. Start with one "disliked word." When that works, add a few more. The code that I have written in response is: I'm not receiving any errors running the program but when I enter in a sentence, it spits out nothing in return. As in, the cursor just enters to the line below it. I tried testing the program without the BLEEPing task but it still doesn't print the vector. What is the issue and how can I solve it? I read of a solution using booleans but I have not covered that topic in the book yet so I would prefer to refrain from using that technique. [link] [comments] |
confused on the asp.net /c# framework Posted: 30 May 2020 03:24 AM PDT student coming from react and node.js and wanting to learn asp.net core and c# What i understand is react is a framwork from js which is the programming language used to execute logic in your code.While node.js is sort of a backend server to call and build our own api's to be used in my main app. Would still use html and css to build our web pages. Now my question is asp.net core sort of a replacement for javascript, just that it's written in C#? and what would be a replacement for node.js in the asp.net ecosystem? [link] [comments] |
Is there an efficient data structure for finding the smallest number above a certain value? Posted: 30 May 2020 03:21 AM PDT I have a container where I want to push in values and find the largest value much like a heap. But I also want to be able to retrieve the smallest value greater than some argument. I'm trying to write a memory pool. I feel like this might be a sensible strategy. Options I've thought of so far: Store the values in a vector and insert values ensuring the list remains sorted (O(n) insertion, O(log(n) search). Store the values in a map where the hash function then search keys. (O(1) insertion, O(log(n)) search but with lots of hash function calls and loss of cache coherence. Store in a map with min-heap buckets. Round the hash values before assigning buckets. O(log(n/m)) insertion, O(log(m)*log(n/m)ish ~ log(n)ish) search. Am I barking up the wrong tree? Is there an efficient data structure for this task? [link] [comments] |
How to show coding skills on a profile/blog site Posted: 30 May 2020 01:04 PM PDT Hey I'm working on a technical profile/blog page. Any suggestions for showing my coding skills other than building little web apps and such... [link] [comments] |
Framework/Library/Something for desktop GUI? Posted: 30 May 2020 11:39 AM PDT Hi, I'm developing something of a personal project. It's a program with a core application that can connect with "frontends" using a very system-agnostic IPC. The core app itself is made in Go, same with the "CLI Frontend". I was looking for a framework or library or something for making a Desktop UI that can run other processes. The options I though were: - .NET Forms, but it's only for Windows (and I prefer something multi-platform) - Flutter, but support for Windows/Linux is in Alpha state - ReactNative, but (I think) doesn't support calling other apps - Electron, but is very overkill and heavy for just a dumb UI - QT/GTK, but both are in C/C++ (I mean, I could learn it, but I prefer not to) - Local REST API and Website, but I think it complicates the current design by a lot - JavaFX (this is what I currently see as best option of this list), but it's ugly by default and requires JVM installed Do you know any interesting and easy to use framework/library/package/whatever for desktop UIs? [link] [comments] |
learning path for java or c# framework Posted: 30 May 2020 11:12 AM PDT I was doing php and like to move into something more higher language like C# or Java and a good framework for a specific language. If you're using these stacks can you recommend me a good path [link] [comments] |
How to automate being alerted when a subreddit meets certain criteria... Posted: 30 May 2020 10:45 AM PDT How could I be alerted when:
etc. Is this possible in a simple-minded way? [link] [comments] |
I am trying to create an Algorithm that can recommend users based on certain weighted attribute. Posted: 30 May 2020 09:51 AM PDT I am not sure how to approach this, I tried creating some formula but It is not accurate. Anyone got suggestion how I can approach this? I am building an algorithm that helps my team go through support ticket. Each of us are specialized in certain skill that is represented by point from 1-5. I want the algorithm to automatically give suggestion to which of my colleague should pick up the next ticket based on (our skill score (weighted), total backlog of ticket). The tickets are also represented from severity from 1-5 so 5 being less importance (easy) to 1 being (hard). I am trying to develop this algorithm but my approach is very linear model, that is someone with skill score of 2 gets calculated same as someone with skill score of 4. And someone with 3 severity 1 cases gets counted same with someone with 3 severity 5 cases. So this won't work anymore. I need it so the calculation knows that someone with 4 severity 5 cases has it easier backlog than someone with 2 severity 1 AND someone with 2 skill score should receive less cases than someone with 5 skill score. [link] [comments] |
Citrix Virtual Apps and Desktops alternative for SolidWorks Posted: 30 May 2020 08:35 AM PDT Is there a budget method that allow for Remote Desktop Application (RDP), aka "remote access visualized SolidWorks." Other than paid Citrix Virtual Apps and Desktops subscription? It is required to have compatibility with Ryzen, X570, and Radeon (RX 5000) or Radeon Pro (300 USD budget). [link] [comments] |
How can I detect Hue smart light changes by listening to network traffic? Posted: 30 May 2020 07:57 AM PDT I've got a computer that communicates with a smart display via web sockets to display information about my home. I want the computer to monitor the network and observe when Hue lights change so that I can display that state change via a UI. Is this the right approach? [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