What am I messing up with wxWidgets? Ask Programming |
- What am I messing up with wxWidgets?
- how to retrieve a list of playlist from the YouTube API?
- Help with switch statements in C++
- [HELP] I can't put multiples apppenChilds. JavaScript
- Spotify API, mobile web app to force play on mobile app?
- Guidance on the creation of a python interface to access a database
- Finding the Cumulative number of values per row
- Help on Algorithms Question
- Explanation of code please
- Is there a way to automate touchs on an android phone.
- What's a good alternative to Visual Studios?
- scanf function gets skipped when getting user input in C?
- What is a good pattern for passing a list of constant strings to front-end via GraphQL
- algorithms and data structures as a web developer
- Real-time dashboard on raspberry pi
- Knowing nothing else and starting python, 3 months 3 hours a day.
- [Description inside] What's the best/easiest way to go about learning and implementing my idea that will make my job a million times easier?
- 2D Array list cannot pick the right elements
- Why do pointer arithmetic and casting make it challenging for a compiler to optimize?
- Are there any settings in terms of, brightness, contrast, background color that is generally accepted as better for the eyes?
- Random geo coordinates within area? this site doesn't work anymore, alternatives?
- Device Orientation API In Web Using Javascript through the Browser
- What physical things or tools would you recommend, but feel not many know about?
What am I messing up with wxWidgets? Posted: 28 Sep 2020 02:14 PM PDT Ok,so I'm trying to build something using wxWidgets,just to get some practice in C++ and with GUI stuff ,I'm using MinGW and I've put the precompiled binaries in the MinGw/include/wx directory,I've followed a tutorial and I still can't get the damn thing to compile,even if I copy the tutorial text and compile from a single file. What the hell am I doing wrong?? did I f up the installation? am I using the wrong version of MinGW? should I just ditch MinGW as a whole? lol [link] [comments] |
how to retrieve a list of playlist from the YouTube API? Posted: 28 Sep 2020 09:38 PM PDT I am currently in the process of making an application using the YouTube API. I would like to return a list of playlist from a search. So if user enters a keyword, it returns all playlist containing this keyword. I have tinkered with the API samples but it isn't working for me. It needs a channel id but I don't want a playlist from a specific channel, just any playlist that contains the keyword. [link] [comments] |
Help with switch statements in C++ Posted: 28 Sep 2020 09:06 PM PDT I'm trying to make a switch statement in c++ where the switch is a Char But I keep getting a compilation error when I set my CASE (): as a letter But I don't understand how I could make a switch statement if I tried assigning the letters as Intergers. [link] [comments] |
[HELP] I can't put multiples apppenChilds. JavaScript Posted: 28 Sep 2020 08:59 PM PDT hi! if i do this::
two "li" elements are added to "#list"; but if i do this:
only one "li" element are added to "#list". what is the error of second way? why can't i do this? :
and add 20 "li" elements to my html. [link] [comments] |
Spotify API, mobile web app to force play on mobile app? Posted: 28 Sep 2020 02:52 PM PDT I want to make a web app using the spotify API with a tracker for something completely different. Is it possible to connect the spotify app to the web application on mobile? basically, so user logs into the site to use the tracker and music featuers all in one. When they play the song off the web app, it opens the installed spotify app to play. Then they can go back to the web app, use the tracker. Let's say, then they want to change music feature X in my web app, they do that, and select a song/playlist from the results. This would then be forced on to the spotify mobile app Is this possible? I've seen this work on desktop, not sure if spotify limits to desktop only [link] [comments] |
Guidance on the creation of a python interface to access a database Posted: 28 Sep 2020 08:32 PM PDT Hello guys, I'm about to start a project where the aim is to help the users access a database with information on university teachers, this interface should be able to take any query from the user and give back a filtered file with the data requested, in the same order of ideas, it should have a dashboard with some important indexes and graphs, I have some decent knowledge on python and a little knowledge on SQL, I was thinking to use a SQL to manage the database and python for the GUI, can you guys help me with a more precise pipeline recommendation, since this is my first programming job I would like some tips on this project, thanks on advance for any help. [link] [comments] |
Finding the Cumulative number of values per row Posted: 28 Sep 2020 07:08 PM PDT [C++] - I have a 1D array that can be pictured as a matrix. I have stored all values that are not a 1 into an array called numbers[]. The part that I'm having trouble with is I'm trying to store the cumulative number of non-one values from each row into an array (except for row 0 which is supposed to be 0). The array im taking from is: And the output of row_index[] should be (the first row will always be 0) To find out if I am at the end of the row I was trying to do something like: but I know that's incorrect, any help with this would be extremely helpful! [link] [comments] |
Posted: 28 Sep 2020 06:54 PM PDT Hey I was wondering if anyone could help me with any of these two questions shown below. If I understand correctly for a), it seems like the graph will be connected and not acyclic but I'm not sure how to prove formally. Would be great if someone could give me a counter example as I believe I would need one in this case. And for b), it seems like I could prove it using Prim's MST algorithm since it runs in the necessary time complexity but again I'm having trouble formatting the proof. Consider an undirected connected graph G = (V, E) with edge costs ce > 0 for e € E which are all distinct. (a) Let E' CE be defined as the following set of edges: for each node v, E' contains the cheapest of all edges incident on v, i.e., the cheapest edge that has v as one of its endpoints. Is the graph (V, E') connected? Is it acyclic? For both questions, provide a proof or a counter-example with explanations. (b) Consider the following outline for an algorithm, which starts with an empty set T of edges: Let E' contain the cheapest edge out of each connected component of (V,T). Add E' to T, and repeat until (VT) is connected. Show that this algorithm outputs a minimum spanning tree of , and can be implemented in time 0(m logn). [link] [comments] |
Posted: 28 Sep 2020 06:40 PM PDT Hey guys I'm doing a project and currently researching different ways an arduino uno can be used. I've watched some videos and found some common projects like this one, Measuring distance with sound. Most youtube vids discuss how to build the setup (which i can do without no problem) however not much of the code. So when I try to replicate the code on my own and implement eg a pushbottom I struggle. Can someone please provide a breakdown of the code. Possibly explaining what each line of the code does (This is the first time I'm using C++, normally use MATLAB) I have linked the tinkercad project that I found so you can have a look at the setup. https://www.tinkercad.com/things/cq4wGBhjVyr For those who don't have have tinkercad account here is the code // Created by The Electronic Guy // www.youtube.com/theelectronicguy #include <LiquidCrystal.h> #define echo 2 #define trig 3 long duration; float distance; LiquidCrystal lcd(13, 12, 11, 10, 9, 8); void setup() { pinMode(trig, OUTPUT); pinMode(echo, INPUT); Serial.begin(9600); lcd.begin(16, 2); } void loop() { time_Measurement(); distance = (float)duration * (0.0343) / 2; display_distance(); } void time_Measurement() { digitalWrite(trig, LOW); delayMicroseconds(2); digitalWrite(trig, HIGH); delayMicroseconds(10); digitalWrite(trig, LOW); duration = pulseIn(echo, HIGH); } void display_distance() { lcd.setCursor(0, 0); Serial.print("Distance in Cm: "); Serial.print(distance); Serial.println(); lcd.print("Distance in Cm: "); lcd.setCursor(5, 1); lcd.print(distance); delay(500); } [link] [comments] |
Is there a way to automate touchs on an android phone. Posted: 28 Sep 2020 05:00 PM PDT There is this thing that Samsung and The Global Goals teamed up for. You watch an ad and 1 cent goes to a charity of your choosing. I was wondering if there a way to automate watching these ads while I sleep or when I have to put my phone away. I know Java and C++ [link] [comments] |
What's a good alternative to Visual Studios? Posted: 28 Sep 2020 04:03 PM PDT I was going to start learning C# today but I can't sign into Visual Studios 2019. I think the reason is that some Microsoft services might be down right now. Are there any alternatives to Visual Studios that will allow me to write and run my code without having to sign in ahead of time? [link] [comments] |
scanf function gets skipped when getting user input in C? Posted: 28 Sep 2020 03:36 PM PDT In my program I have the user input a phrase, and I use the scanf function to retrieve it. My problem is when the user inputs a phrase with spaces in between, it not only counts the words after the space, it also skips over the 3rd Scanf function. What is the problem and how can I fix this? Here's my code: When I run it, choose 1 and enter a phrase it outputs this: When my goal output is this: [link] [comments] |
What is a good pattern for passing a list of constant strings to front-end via GraphQL Posted: 28 Sep 2020 02:46 PM PDT This is using Python and the Graphene library. I want to provide a list of constants to my front-end via GraphQL. I went down the route of using inspection, but it will only output the keys of the enum. Not the values. I learned that Graphene enums only contain name/description. this returns This is what the actual enum looks like Is there a preferred way of exposing a list of constants like this through GraphQL? Can introspection be modified with a resolver to read the value? I am taking a regular Python enum and registering it with Graphene using the Enum.from_enum function. [link] [comments] |
algorithms and data structures as a web developer Posted: 28 Sep 2020 02:37 PM PDT I'm self-taught and at first, I didn't know about algorithms and data structures so I move straight into the real world and learned front-end and the backend but now I feel I need to learn algorithms and that stuff. should I stop learning the web for now and go to algorithms for while or keep going the web path and complete my knowledge there first? [link] [comments] |
Real-time dashboard on raspberry pi Posted: 28 Sep 2020 02:35 PM PDT |
Knowing nothing else and starting python, 3 months 3 hours a day. Posted: 28 Sep 2020 10:26 AM PDT What's an honest goal for myself to turn this into a job. How long would it take before I am competent enough to turn this into consistent income. [link] [comments] |
Posted: 28 Sep 2020 01:33 PM PDT I know the basics of programming but I would like to start from scratch and learn Swift. But I understand what I'm trying to do is probably easier with other languages etc. What I'm trying to do it this: For work, my brother and I move a lot of furniture for a lady who stages high end homes for sell. We move the stuff from house to house or to storage etc. she has like 8 different storage units and they are all super packed with stuff stacked to the ceiling mostly. It makes it very difficult to find stuff sometimes and we waste a lot of time when she asks for "Chair X" and you have to spend an hour trying to get to the back of a unit and looking at everything in every unit trying to find it buried somewhere. I want to create a qr or barcode for each item and attach it on each item. Then use our phones to read the tag and be able to edit information such as unit location, and a picture. Then when she needs something we can just search for it's name or by picture etc. She can select all the stuff she wants on the web and submit it to us. So I'm thinking easiest way would be to use a qr code library or similar to process the image, then use a database to store the info and a website to display it all out nicely. We get NO RECEPTION in the storage unit so it has to be able to store it at least locally temporarily. So like let's say I have all my items on the database. Say there is 15 pieces of furniture at "house 3" and I'm moving it to storage unit c. My plan was to use the app to scan the QR code of the storage unit and then scan each item going into that unit and have it automatically change the information to reflect that in the database. We move hundreds of items a day like lots of paintings etc so it adds up. So it needs to be quick and automated. Can't be bothered to type the information on each item to where it moved to. What's the best way to do all of this and can you please list the resources I need etc for direction? Thank you! [link] [comments] |
2D Array list cannot pick the right elements Posted: 28 Sep 2020 01:10 PM PDT Hi, I do not know why but for some reason after I input values for the 2D array, I get wrong elements. My output in the terminal is the following. I am expecting to get 1,1,1 however it always gives me 1,4,3. I am very confused why the code is doing this. I would appreciate if someone can explain this to me. 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 4 3
[link] [comments] |
Why do pointer arithmetic and casting make it challenging for a compiler to optimize? Posted: 28 Sep 2020 12:17 PM PDT |
Posted: 28 Sep 2020 09:04 AM PDT For example, I turn down my brightness all the way to zero and now I feels like its a bit washed out and I'm wondering if this is actually worse for the eyes. I also recently started to code with a black background. But all said and done I'm just curious what others have done to relief eye strain. Thanks! [link] [comments] |
Random geo coordinates within area? this site doesn't work anymore, alternatives? Posted: 28 Sep 2020 07:19 AM PDT |
Device Orientation API In Web Using Javascript through the Browser Posted: 28 Sep 2020 03:31 AM PDT Device Orientation API In Web Using Javascript through the Browser. It allows a device to detect its physical orientation with respect to gravity. If you ever see that on rotating the screen the device shows the effects mostly on mobile phones. Orientation is measured using three sides – alpha, beta, and gamma. See the hidden gem that is Detecting device orientation in Web Using Javascript. you need to make sure your browser supports it. You can easily check caniuse.com. [link] [comments] |
What physical things or tools would you recommend, but feel not many know about? Posted: 28 Sep 2020 12:36 AM PDT |
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