Grab information from a website Ask Programming |
- Grab information from a website
- What language should I learn?
- Running Visual Studio project on another PC leads to index out of bounds error.
- Looking to draw the window contents of a child process in opengl
- PHP: MySQL Query Not Executing
- Compilation error in Java
- I am doing an assignment for my AP computer science class and I need help with one of my files
- Getting two errors, and can't submit form to firebase. Why are the submit function and update function not doing anything?
- EDI Help
- How do I open the WinForm designer for a form that I created inside the script for another WinForm?
- QA Testing
- Best practices for storing passwords you need to reuse?
- I need help programming a vex clawbot
- stuck-at-0/1 fault in circuits
- Having trouble implementing Bidirectional Search in Python
- Dice Roll Game in C++
- Connecting to an old HDD from a laptop - Best practice
- Bridge Desktop app(in laptop) to the web(in phone) using python web API
- Looking for help on homework in visual studio, will pay.
- Stuck in "top" command of raspberry pi, how do I exit it?
Grab information from a website Posted: 11 Mar 2018 06:30 PM PDT Hi! What is the best way to grab information from a website? like, i want to be notified when someone twitter me and get the text. Another example is to scan a website when they have updated with new object like apartments for example. Currently, i download the html page with curl and search for a specific line or object to determine if it has updated or not, but is there a better way? [link] [comments] |
Posted: 11 Mar 2018 07:16 PM PDT Hello there! I'm a pretty new programmer, and I've been challenging myself with random little pointless projects to try to improve, but I never stick with just one language. Normally I randomly rotate through just Python, or using JavaScript with HTML and CSS. I think it would be more beneficial if I just stuck with one language, but I don't know which would be best to learn. I'm leaning more towards JavaScript, HTML, or CSS but I don't know if I should start with JavaScript first, HTML first, or CSS first. What should I start with? Or should I start with an entirely different language? Thanks ahead of time! [link] [comments] |
Running Visual Studio project on another PC leads to index out of bounds error. Posted: 11 Mar 2018 06:47 PM PDT I've been using Visual Studio and I've made a project that compiles just fine on my main computer. It runs and it does what its supposed to do. Then I transfered my project to another PC, and opening it leads to me getting an index out of bounds error. It doesn't make much sense, since I there isn't anything wrong with the syntax and I suspect the problem is lying somewhere else. Main computer has visual studio version 15.5.3 and the secondary computer has version 15.3.2, so I wouldn't imagine the problem occuring because of a difference in versions. Does anyone have any idea as to whats going on? EDIT: Gave the whole project and it worked for him. Seems like the error is definitely unrelated to the syntax. [link] [comments] |
Looking to draw the window contents of a child process in opengl Posted: 11 Mar 2018 05:48 PM PDT I'm working on building a window manager of sorts for linux. Using glfw3 and have put together some simple text editor and file manager functions. Having a blast. The next thing I'd like to tackle is to figure out how to run a program like firefox or vlc, and render the contents of the window of that program in mine. My first thought is to start it as a child process, then just take what would be the framebuffer of the program and feed it into glDrawPixels() and be done with it. Mouse and keyboard handling comes later, but I'd like to get this part done first. I've taken apart the dwm window manager source code and my first thought is that twice the code I've already written would be dedicated just to pulling in the window contents of a child process. Is there a dead simple way of doing this? I've seen the stuff about running X11 headless, but that seems a little kludgey. Thanks! [link] [comments] |
PHP: MySQL Query Not Executing Posted: 11 Mar 2018 07:57 PM PDT In the code below, I have a function to query the database, however when it is called, nothing happens. When I try an INSERT statement, no new data is entered into the database and there are no error messages printed to the error log. Any idea what I am doing wrong? [link] [comments] |
Posted: 11 Mar 2018 07:57 PM PDT Working on some homework and almost done, but have run into a bit of a snag. I have a problem where I am trying to close a file in Java. I get the following error: Here is the main method: If I remove the try/catch clause from here: I get an error in my main method saying that the closeFile(); method throws an IOException. Making the closeFile(); method static seems to fix it, but the professor specifically said to use only non-static methods. Any ideas as to what I'm doing wrong? I can post the entire code in the comments if needed. [link] [comments] |
I am doing an assignment for my AP computer science class and I need help with one of my files Posted: 11 Mar 2018 05:10 PM PDT So i am doing an assignment that asks me to make two classes, boxcar which is for individual boxcars on a train. The second class is called FreightTrain which represents a train carrying multiple boxcars. My Boxcar class is good but i am having trouble getting started with my FreightTrain class. Here is the information for the code: Variables ArrayList<Boxcar> train - An ArrayList that stores a train with boxcars. Methods FreightTrain() - Default constructor that sets train to an ArrayList holding one boxcar containing 5 gizmos, that is not in repair. FreightTrain(int n) - A constructor that sets train to an ArrayList of size n, holding n boxcars each containing 5 gizmos and not in repair. If n ≤ 0, then the train should be set to size one, with a single boxcar holding 5 gizmos and not in repair. String toString() - This method returns a String representation of the Boxcar objects in the train, one per line. void setCargo(String c) - This method sets the the cargo type of all the boxcars in the entire train. The cargo variable is set to c only if c is "gizmos", "gadgets", "widgets", or "wadgets". It should ignore the case of the value in c. If c holds any value other than "gizmos", "gadgets", "widgets", or "wadgets", cargo will be set to "gizmos". void setMultiCargo() - This method sets the boxcars to the alternating pattern "gizmos", "gadgets", "widgets", "wadgets", "gizmos", "gadgets", "widgets", "wadgets", ... until the end of the train. void fillTrain() - This method fills all boxcars in the train to the maximum capacity of 10. void callForRepair(int i) - This method sets the repair variable of the Boxcar at location i to true. This is a link to the file with the starter code in it for the FreightTrain class: https://s3.amazonaws.com/term.2/week04/FreightTrain.java first question is kind of stupid, but how the hell do i set train to an arraylist holding one boxcar containing 5 gizmos, that is not in repair. here is the code from the boxcar class in case you need it: public class Boxcar { private String cargo = ""; private int numUnits; private boolean repair; } Any help at all would be great. Thank you in advance if you are able to help. [link] [comments] |
Posted: 11 Mar 2018 02:13 PM PDT So I am trying to complete this project but now the web app form that I created no longer submits or I can't edit any of the previously saved information all I can do is delete. Running the app I inspected it and it gave me two errors Error #1 heres the code: Error #2: Things I've done: -Restarted the web app numerous times please help I ran through multiple tests and nothing seems to work. Programming Language used: Angular5 Database: Firebase [link] [comments] |
Posted: 11 Mar 2018 09:16 PM PDT Hi /r/AskProgramming , I'm going for a job interview tomorrow as an EDI analyst. This is for my first job position, and I have past experience with SQL and HTTP/CSS from two recent internships (HRIS analyst and web developer, studied MIS and HR Mgmt, currently completing MBA). What should I look up and have ready for the interview? They know I do not have experience in EDI, but are interested in seeing what I can bring to the table with my other previous expriences. To prepare so far, I've been focusing heavily in reviewing my SQL terminology and programming, as I was told they would be asking technical questions on SQL. Any tips would be greatly appreciated! The company uses x12 and EDIFACT Format, according to their website. [link] [comments] |
How do I open the WinForm designer for a form that I created inside the script for another WinForm? Posted: 11 Mar 2018 05:11 PM PDT So I created a WinForm app, and I have a button that opens another winform. How do I use the designer to design that winform? [link] [comments] |
Posted: 11 Mar 2018 04:41 PM PDT I am not sure if this is the right subreddit to ask so if it's not I apologize but I was wondering if anyone here has ever done QA testing specifically with video games and has any tips or things I should know before applying that I can add to my resume, I don't have money for college at the moment and heard QA testing is pretty entry level and is a good way to get into the video game industry and earn money for formal classes. Thanks [link] [comments] |
Best practices for storing passwords you need to reuse? Posted: 11 Mar 2018 09:47 AM PDT I'm writing an application that manages IoT devices on a LAN. I need to store credentials for these devices. I've always just stored hashes, so I'm not sure of the best way to do this. I was thinking maybe encrypting them with the key being a user supplied password thats entered every time you open the manager, but that doesn't solve the problem of storing them for background 24/7 daemon type processes that might need to reconnect. Does anyone have any advice? [link] [comments] |
I need help programming a vex clawbot Posted: 11 Mar 2018 11:37 AM PDT Hi, I am in the process of programming a vex robot that is using 6 motors, 5 of the motors are 2-wire 393 vex motors and one is a vex servo motor. I am having trouble finding a programming code that I could program the robot using a vex 2.0 cortex. 4 of the motors of used for omni wheels, one is used to open and close the claw and one is used to move the arm up and down. The servo motors is used to rotate a camera. If you know something that may help me or know anyone else that could help it would be greatly appreciated!! [link] [comments] |
stuck-at-0/1 fault in circuits Posted: 11 Mar 2018 02:31 PM PDT I have no idea how to solve these type of questions. Here is an example from a previous exam: https://i.imgur.com/uJ2hKxr.png I'm assuming I take '1' at 's' and then work backwards? But in the answer there is a '1' right before the not gate at 's'. [link] [comments] |
Having trouble implementing Bidirectional Search in Python Posted: 11 Mar 2018 03:23 AM PDT I'm having trouble in implementing a bidirectional search in python. This is my unidirectional search. It returns a list of pixels which in turn the program draws a line in a map made of hexagons. And it works just fine. Now after some googling I tried to implement the bidirectional search like this But it keeps giving me the incorrect path. Can anyone give me some insight in what I'm doing wrong? The program functions like this: 1. You click on an hexagon to select the starting point 2. You click on an hexagon selecting the final point 3. The search algorithm selects the best path 4. The program draws the path on the map. For example this is the result for the unidirectional search. In this case the road is less costly than the grass. The starting point is the left one while the finish point is on the right Now this is what I get when i run it with the bidirectional code that I provided Here are some other examples, it always gets really messy: [link] [comments] |
Posted: 11 Mar 2018 09:43 AM PDT Hey guys, so I am having trouble creating a dice roll game. The code I am writing is not doing exactly what I am intending it to do and was wondering if anyone could guide me in the right direction or point out any mistakes that I might have made. Essentially, there is a dice game where it is computer versus human (I have not fully finished the computer intelligence portion but wanted to resolve this issue with the while loop) and rolling a 1 will always result in loss of turn. What should happen is that rolling a 1 will result in loss of turn, passing the turn to the opponent but when I implemented this into the source code, I found that I was stuck in an infinite loop that produced the same result each time. I have the code here at https://pastebin.com/cxL9KZnt but I cannot seem to figure out why this is happening yet. [link] [comments] |
Connecting to an old HDD from a laptop - Best practice Posted: 11 Mar 2018 09:14 AM PDT Not an expert in hardware, I have an old HDD from a laptop from ~2010. Better to connect with a basic SATA cable or one of those enclosure devices? Also restrictions on access? - Would having a password to the computer mean there is a password for the HDD [link] [comments] |
Bridge Desktop app(in laptop) to the web(in phone) using python web API Posted: 11 Mar 2018 03:00 AM PDT I have a software which generates a QR code for each unique user it has. I select a user and it generates a QR code for that user.What I need to do is to find a way to securely connect the Web browser in our phone with this application on the desktop and how to make them interact securely with low latency. i.e to find a way to have the QR code in my phone's browser in a secure way from the desktop app. This can be done using some web API but I need to know a detailed explanation on how can I implement it. I am thinking of using a lightweight web framework like Flask for this purpose. Any help would be appreciated. [link] [comments] |
Looking for help on homework in visual studio, will pay. Posted: 11 Mar 2018 02:32 PM PDT Add me on discord at Ratking #5113. Or DM me here. I would like to get in touch in discord at some point. [link] [comments] |
Stuck in "top" command of raspberry pi, how do I exit it? Posted: 10 Mar 2018 10:38 PM PST |
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