C or Java or Python as first programming language? Ask Programming |
- C or Java or Python as first programming language?
- How to query Firestore to create a user timeline?
- How do I learn Python in depth?
- Can you help me with a idea for my last college work?
- PLCC Programming
- Struggling to find/invent a good algorithm to solve this problem efficiently (Nearest Feature Transform)
- What is the most difficult thing in programming to understand?
- Does anyone have any experience using the asp.net mvc framework to program a web application? And if so do you know the best practices for streaming videos? (Currently, hosting on azure).
- Learning new programming languages
- I like the setup I have with my computer now, and I'd like to try to reproduce it on other computers. Do any of you happen to know if it is possible to save a modified operating system to a .iso? If so, please tell me the means by which to achieve this goal.
- Programm for delivery
- Accessing a database from another computer and version control help
- Can anyone recommend some good books or websites with some fun and interesting programming challenges?
- Theres a list of "software design patterns" on wikipedia but seems to mostly be about what happens on 1 computer. Whats the large scale form of that?
- Advice on Python Progra, for extracting information from PDF
- I am looking for a light weight Java IDE
- Alternatives to Large Enumeration Files
- What is the difference between encoding, parsing and serialization?
- How do you make hyperlinks underlined by default in Firefox version 73.0.1 on Ubuntu 18.04.4 LTS?
- Java BufferWriter
C or Java or Python as first programming language? Posted: 02 Mar 2020 02:27 AM PST Hello, everyone. I'm a 31 year old without a computer degree from India, I want to learn programming for a better future. I'm interested in Backend Web Development & Android Development. Can you please help me! Edit: Thank you everyone! I'll start with Python first. [link] [comments] |
How to query Firestore to create a user timeline? Posted: 02 Mar 2020 09:19 PM PST So basically I am trying to create a user timeline that shows all posts within a certain radius of the user while also ordering them by the number of favorites they have as well as some other filters. I'm currently querying with: Db.collection(x).whereField(X, isEqualTo: Y).whereField(W, areayContains: [Z]).order(...).getDocuments() And it works EXCEPT I want to also only get the posts that fall within some distance of the user location. I could do this with a range filter and a geo hash on the posts (which they have along with lat and long) except Firestore doesn't allow for range filters on fields that are different from the count fields. I'm at a loss how to get this functionality while preserving my use of Firestore. Any ideas welcome. [link] [comments] |
How do I learn Python in depth? Posted: 02 Mar 2020 08:51 PM PST |
Can you help me with a idea for my last college work? Posted: 02 Mar 2020 02:55 PM PST Hi! Pretty much the title. Right now i can't think of anything that hasn't been done yet it seems. Thanks in advance guys! Edit: I work mostly with python and Android. Getting into Flutter right now too [link] [comments] |
Posted: 02 Mar 2020 02:04 PM PST IC Programmers of Reddit . I am not sure if I am in the right section but I hope I am . I am trying to modify a code inside an old Intel PLCC chipset . However I have been able to read from the chipset the chipset using XELTEX 6100N programmer then save the file as BIN but I can rewrite into it . I bought new chipset which is empty and then and only I have been able to write on the chipset one time and cant write on it anymore . My question how can I erase the chipset to blank so I can reprogram it again . The chipset model is Intel AN87C196KT Thank you [link] [comments] |
Posted: 02 Mar 2020 12:57 PM PST I'm looking for an algorithm to perform the following task: Given a map* which defines a 2D array of points, which are either coloured or black, output a map which replaces every black point with the colour of the nearest coloured point: https://i.imgur.com/j3H7qyU.png This is usually known, as far as I can tell, as a Nearest Feature Transform. *I've called it a map because, for reasons given below, "image" is a bit restrictive. I'm currently using an algorithm which does two passes or sweeps of the image, first top-left to bottom-right, then bottom-right to top-left, which "spreads" the coloured pixels out, keeping track of distances so that closer colours override further ones. This works well, but it's a bit slow, and uses a lot of memory (32 bits per pixel, and I want this to work on billion+ pixel images). It does very few calculations per pixel, because the data is spread only from the neighbouring pixels (4 on each pass), but it does them for every pixel and it needs to store every result. I'm trying to find a way to improve on this, and I feel like my best hope lies with the fact that the initial "image" is not stored as pixels but as a run-length encoding. For example, the top line of the example image, before infilling, would be stored as "101 black, 88 teal, 103 black" (this is equivalent to knowing the positions of every vertical edge in the map). So I'm hoping the output image can be calculated without decompressing, or at least without having to treat every pixel separately. But I'm hitting brick walls in my brain, so I'm posting this in the hope that someone might come up with an idea that jogs my brain into gear. Another algorithm I've read about involves calculating the nearest pixels in the two vertical directions along each row, and then culling the list and working along the row, but it's hard to get my head around: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.37.2692&rep=rep1&type=pdf and I suspect it's bound to be much slower. Anyone have any ideas? I'm using C++, although I don't think that should be relevant as it's a general algorithm/programming question. [link] [comments] |
What is the most difficult thing in programming to understand? Posted: 02 Mar 2020 06:58 AM PST I figured if I know I can learn the most difficult programming concepts then everything else should be relatively easy. [link] [comments] |
Posted: 02 Mar 2020 12:30 PM PST The video formats are .mov, Bit rate is about 5000kbps, and Resolution is 720 Need help improving video speed on mobile devices [link] [comments] |
Learning new programming languages Posted: 02 Mar 2020 12:12 PM PST I would like to ask your opinion redditors about the best way to learn a new programming technology, specially the fastest and the most efficient way, recently I started using developer documentation as my main source of knowledge, which one you guys use? [link] [comments] |
Posted: 02 Mar 2020 03:27 AM PST |
Posted: 02 Mar 2020 12:06 PM PST Hey, I'm not sure if this is the right subreddit and if it isn't is appreciate if you could tell me where I should ask. I was wondering if there is a program that helps keeping delivery times at a minimum. To make it easier to explain. Person A orders something. Driver drives to person A to deliver. Person B orders something. Driver still drives to person A to deliver. Person C orders. Programm detects it would save time if the driver would drive to person C first and then to A. Driver does exactly that and so on. If you scale up those numbers, it would be great if the program could also detect that saving maybe 4 minutes is not worth it to let person a wait another 15 minutes. I hope it's understandable what I'm trying to say. Thanks in advance [link] [comments] |
Accessing a database from another computer and version control help Posted: 02 Mar 2020 12:03 PM PST Hello, I am working on a project that will use a SQL Server database. I have my main computer on home, but I would like to still be able to work on this project on my laptop when I'm out and about. Right now, from my understanding, that would involve having two versions of the same database on each computer that I would have to keep updating to ensure both are the same. I know there has to be a better way to do this so I would appreciate any help. If I am able to create a database on my main computer that my laptop could access in someway, it would be nice. I was thinking of having my project on Github so I could pull the latest version whenever I need to work on it in either location. I'd appreciate any help or advice on what I'm trying to do. [link] [comments] |
Posted: 02 Mar 2020 09:47 AM PST I've been burned out working on personal projects and haven't been finding work very interesting lately, so I'm looking to try some fun problems that will force me to think outside the box and (re)learn some algorithms and paradigms along the way. [link] [comments] |
Posted: 02 Mar 2020 09:10 AM PST |
Advice on Python Progra, for extracting information from PDF Posted: 02 Mar 2020 07:26 AM PST Hello, I am looking for guidance on how to tackle a project. I apologize for the long explanation. --------------------------- I am currently doing an internship at a company and I wanted to write a program to help me automatize one of my tasks and I thought you guys could maybe help me figure out a way to do this. Basically, every week we receive reports from another company that helps the firm looking for prospect. The reports include a list of companies, divided by country, with a short summary about each one of them saying whether they are interested in certain products. My current task is to go through each report and find the companies that could be interested in our firm/ products and write them in an excel file with the following format: Date | Country | Name | Interest | Text (Body) Each field is a column in excel. What I would like to do would be to write a program that loads the file into python from a folder containing the files in questions, scans through the document looking for certain keywords. If it finds the keyword, it should then return the above information for the respective company in which text the key word was found. An example of this could be: Key Word = 'banana', 'kiwis' Text: Date 02/28/2020 United States: Company X is looking to buy apples. Company Y would like to buy bananas in large quantity over the next quarter. Germany: Company VX is interested in acquiring kiwis; its budget is 100 euros. Company CT is not interested in acquiring fruits at the moment. The program should find Company Y and VX as interested and add those companies in an excel (csv) file with the format described above. Note: potentially I would like to be able to do this automatically for all the documents in the folder and in a simple way, so that even when I'll be gone; the next intern could just do the entire process By simply pressing a button. --------------------------- So far I've been figuring out how to extract the text from the pdf using PyPDF2 and I'm currently reading as much as I can on Natural Language processing and Parsing to gain more knowledge but any recommendations would be highly appreciated. Thank you very much! [link] [comments] |
I am looking for a light weight Java IDE Posted: 02 Mar 2020 07:22 AM PST Could you guys recommend me some? I use an average at best small notebook and I am using code blocks for c++. However I have her to find a similariky light and fast ide for Java, I'd love to hear your suggestions. Thank you [link] [comments] |
Alternatives to Large Enumeration Files Posted: 01 Mar 2020 11:37 PM PST Essentially, I want to be able to define a large number of colors, which store a name, an RGB value, and some other stuff. The current solution (which I've inherited) is using an enum that has over 1000 lines of code, which is obviously not great. I'm working with Java. There are some functions that it must perform. I've considered a few solutions, like splitting up the enum into a bunch of enums that inherit from a base Color class, but I'm not sure how that would affect the rest of the codebase. I'd like to minimize changes to the rest of the program, but I'm willing to do a lot of manual rewriting if need be. [link] [comments] |
What is the difference between encoding, parsing and serialization? Posted: 01 Mar 2020 11:29 PM PST Title. I read so many blogs but I still don't get it. Could someone explain it to me with an example? Thanks [link] [comments] |
How do you make hyperlinks underlined by default in Firefox version 73.0.1 on Ubuntu 18.04.4 LTS? Posted: 02 Mar 2020 02:57 AM PST |
Posted: 02 Mar 2020 02:52 AM PST Hey, i'm pretty new to java so I have just been playing around with some stuff. I was trying to make a little program where you enter a password, it is stored in a .txt file, and then the program asks for you to enter a password. If the password is on the txt. list, it should say password valid and if not, invalid however I am having a new problem. 1) Every time I run the program it overrides the last password saved in the .txt file whereas i want it to save the password every time it is run. 2) I don't think that my method for checking if the password is on one of the lines is right and if it is wrong how would I fix it?and 3) When I run this the password that is on the .txt at the current time doesn't work. Any help to get me on the right path o solutions would be greatly appreciated. Thanks. import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.Scanner; public class Main { static int i; public static void main(String[] args) { try { Scanner scanner = new Scanner(System.in); System.out.println("Please choose a password: "); String password = scanner.nextLine(); File file = new File("Password.txt"); file.createNewFile(); FileWriter fw = new FileWriter(file); BufferedWriter bw = new BufferedWriter(fw); bw.newLine(); bw.write(password); bw.flush(); bw.close(); FileReader fr = new FileReader(file); BufferedReader br = new BufferedReader(fr); String line; System.out.println("Enter your password: "); String attempt = scanner.nextLine(); while((line = br.readLine()) != null){ if(line == attempt){ i = 1; } if(i == 1){ System.out.println("Password Valid"); }else{ System.out.println("Password Invalid"); } catch(IOException e){ e.printStackTrace(); } } } [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