Help! Programming, networking, career! Ask Programming |
- Help! Programming, networking, career!
- How to test chat program in one computer?
- Best practice for MySQL database connections in Python
- What kind of programming jobs could I get at 15?
- Why do GET request to different URL's use different amounts of upload bandwidth?
- C# help Urgent!
- Why does C++ have .cpp and .h files. Why cant it just have one that does both?
- Should I really finish my Computer Science degree?
- Should I use C#, Python or something else for my school project?
- Bitcoin transaction confusion
- C++ help with Template Functions working with both ints and strings
- Why using !! operator?
- Best way to store ssh/rdp details?
- How to extend a DLL file to log data?
- How does having multiple font-face works?
- MFA for simple web site
- help: i am wondering what is i am doing wrong in that program ?
- What is your biggest problem with code documentation?
- I get really frustrated when my code is not clean enough and obsess over making it cleaner by spending hours refactoring it. I recognize this isn't productive or healthy but seeing messy code really stresses me out. What can I do about this?
- How does reverse anime scene search engines like trace.moe work?
- Javascript object Merge keys with Longest Common Substring
- Trying to create a Calendarization of Content Availability - React Native / Expo
- C++ dependency management = ???
- Insert complex React components within a contentEditable
Help! Programming, networking, career! Posted: 26 May 2021 06:01 PM PDT Am a cs student in my second year, we've studied a lot of things so far including programming languages such c/c++ java,php, javascript, and networking and how operating systems work especially linux, l feel I am more interested to linux and network stuff and I am a Linux user,I love working just with commands, also I am comfortable with back-end programming and I am very bad when it comes to front end or design part, I would like to fucos just in one thing but am comfused! Any ideas or suggestions guys I'll appreciate and consider it to choose and start a career. Thank you! [link] [comments] |
How to test chat program in one computer? Posted: 26 May 2021 08:22 AM PDT I'm making a chatting using websocket. I can only test it with echo server now. I want to test it like there are two users. How can do it? [link] [comments] |
Best practice for MySQL database connections in Python Posted: 26 May 2021 06:34 PM PDT I've got a service created in Python reading electrical data into a mysql database, and there is only a moderate amount of async data flowing through (about 15 floats every 3 seconds). I have a database connection class that is instantialized four times (so four mysql connections). Although docs suggest that mysql should be able to handle multiple connections like this, I was wondering whether it is better practice to make this a single connection instance that queues database i/o from all four classes, or to leave it like it is with four seperate connection instances? Any experience and advice on this would be much appreciated, cheers. [link] [comments] |
What kind of programming jobs could I get at 15? Posted: 26 May 2021 05:22 PM PDT So I'm 15, but I've been programming in Python since I was 7, Arduino since I was 9, C++ since I was 10, and have been dabbling in a lot of various C-based and Java-based languages. I'm very good. I've built everything from automatic formula calculators to help in trig, to ray tracing and even rasterization engines. But I've been wondering if I could actually market my skills. Please keep in mind I have substantial experience designing graphical applications (mostly in tkinter, though I can export them as executables) and graphics engines (ray tracing, rasterization, and, slightly less useful, ray casting). What kind of positions (freelance or otherwise) would I be able to apply for with this skill set? [link] [comments] |
Why do GET request to different URL's use different amounts of upload bandwidth? Posted: 26 May 2021 08:15 PM PDT I am using postman to make GET request and noticed that each domain I make them to uses a different amount of upload bandwidth. My understanding was that once an initial GET request is made to a domain(upload), the web server returns the contents(download). Download would obviously vary for each sites content, but I can't understand why upload varies so much. A good friend suggested: "Distance between you and destination, anti-ddos protection, poor connectivity for the destination, host throttling on cheap hosting, and so on." Is this accurate, or is there more to it? P.S all dns lookups are handled at the router level and I'm measuring from the machine making the GET requests. [link] [comments] |
Posted: 26 May 2021 08:01 PM PDT i have a repo class and just added the getEmployeeById function but it says that it cannot implicit convert employee to a company type dont know why im getting this error. public Company GetCompanyById(int id) [link] [comments] |
Why does C++ have .cpp and .h files. Why cant it just have one that does both? Posted: 26 May 2021 06:27 AM PDT Dumb question. I know. Please don't be too hard on me. [link] [comments] |
Should I really finish my Computer Science degree? Posted: 26 May 2021 11:59 AM PDT Hi, idk if this is the adequate place to get some advices about career, but if someone can give their opinions about this I would be grateful. So I am a 21 year old guy, who lives in Portugal, that fell very soon in love with computer programming, I was about 12/13 when I started learning programming by myself. By the time of going to high school I already knew I wanted to be a programmer so decided to go to a specialized course about software development, did some internships, and one of the companies really liked my work and decided to get me a job there when I finished my high school degree. That was October 2018 till now, working as a web developer, mainly with backend and a little of system administration, which gives me about 2 years and 7 months of working experience.... However, when I started working there I got into university at the same time, I had a option in my cs degree to do it post-labour bc of people like me who work full time jobs... Meanwhile, I was starting to get a little stressed at my work, some of the co-workers started to be very toxic, the work wasn't so enjoyable and starting to get bored so I decided to quit, and now I am having only university classes again, but I am extremely bored and unmotivated, and Idk if I can really do this because I was never a very academic person, I like to do things that I like and find challenging, and because of my experience, college is just relearning the basics, maybe from 100% of the course content I am learning really 2.5% of things that I don't know right now... Is it really worth it for me to take this degree considering I already have experience in the field? Am I going to encounter much trouble later in my career bc I don't have a degree? Some people say that the degree only matters on getting the first job, but Idk if it really is like this here in Portugal. Notes: Here the college isn't that expensive, and I already saved some money to pay for it. To finish my degree I still have to take 2 years full of classes... The ones that I think will be more challenging are Computer Architecture bc goes very very low level and Operating systems bc it teaches basically how to do your own file systems and etc... reinventing the wheel... But I don't think I will ever need that to a standard software engineer career. [link] [comments] |
Should I use C#, Python or something else for my school project? Posted: 26 May 2021 08:22 AM PDT Hello guys, I would like to ask for your help in deciding which language to use for a project in my school. This project equal to a whole course (we do a project for a business and based on that we get our grades) and it's due on august (summer class). I have taken 3 programming classes so far in school and "learned" (not really, just the very basics) java, c# and c++. In my java and c++ classes we only programmed in console, meaning we didn't develop any GUIs. I used eclipse for java and visual studio for c++. I think the class I like the most was the c# because we developed some basic programs but we also created the interfaces and that helped me understand a lot better. In that course I used visual studio and the form designer. Although the interfaces looked very basic (some might say rudimentary), they were easy to make as you can add the buttons, checkboxes, labels, and other things manually and then program the functionality of them. And I didn't have to think a lot about the "design" and could focus on how the program works. For my project I have to make like a database for a doctor's office, but very basic, it only needs to: -save patients info (name, phone#, email) -save in a calendar the appointment -save patient payment -create report of month's appointment and payments -maybeee... send an email to the patient before the appointment (although this is extra, not required). Some other things: -A friend of mine recommended python and they said it's super easy to learn. -I like c# because of the design form -I don't like java -C++ is whatever I think I could use it, but then again I don't know if there's an IDE that would let me create the interface like visual studio with the design form. Sorry if I'm rambling I just want to get it all out. My questions are -I've been watching some python videos and it seems easier than the other languages I've learned in school, however is there an IDE that I can use to create an interface like visual studio with the design form?? I already searched things like "python interfaces" "how to create a python interface" "design form python" etc., but everything I found is about coding the interface which I think it will add a lot to my work. But I don't know, maybe it's worth it, what do you guys think? -Is visual studio good enough for python or would you guys recommend another IDE? -Do you guys think it's a good idea to program my project with C# although the interface looks kind of basic? I know maybe it's ok for school but if want to show it to a future employer will they see it and laugh at me? -In general, do you have any advice, a better option that you guys recommend for my to start my project? The class just started this week and the project is not due until august so I have some time! Thank you for your time reading all of this! [link] [comments] |
Posted: 26 May 2021 05:02 PM PDT Hey, I've been learning about UTXO and the overall bitcoin transaction process. I came across this transaction and I'm curious how to interpret it. Usually I see an unspent output with the same address as the input's previous output address, but in this scenario it looks like the unspent BTC is going into a new address. What's going on here? https://blockstream.info/tx/e5c256c4bcaab3c557227eed2c8941df1d978cf1de83c480075944503b17e7da [link] [comments] |
C++ help with Template Functions working with both ints and strings Posted: 26 May 2021 04:05 PM PDT I'm working with Template Functions and I'm having some trouble. The idea is to create a template function that will sort both ints and strings. My main issue appears to be the "getSmallest" function as according to my compiler, there's an overload error. Specifically, " main.cpp: In instantiation of 'void selectionSort(T*, int) [with T = int]': main.cpp:22:28: required from here main.cpp:82:29: error: call of overloaded 'getSmallest(int*&, int&, int&)' is ambiguous int smallest = getSmallest(arr, i, n); ~~~~~~~~~~~^~~~~~~~~~~ main.cpp:14:3: note: candidate: T getSmallest(T*, int, int) [with T = int] T getSmallest(T arr[], int start, int end); ^~~~~~~~~~~ main.cpp:65:5: note: candidate: int getSmallest(T*, int, int) [with T = int] int getSmallest(T arr[], int start, int end) { ^~~~~~~~~~~ main.cpp: In instantiation of 'void selectionSort(T*, int) [with T = std::__cxx11::basic_string<char>]': " So yeah, what am I missing? [link] [comments] |
Posted: 26 May 2021 05:27 AM PDT I am doing the Kotlin Koans course. I got stuck with this problem. I had to have a look at the solution. Add a custom getter to make the val 'lazy' really lazy. It should be initialized by invoking 'initializer()' during the first access. You can add any additional properties as you need. Do not use delegated properties! The given snippet:
The solution:
I know the !! operator is used for null safety. But I can't understand why the solution used this in the return statement. Any help will be much appreciated! [link] [comments] |
Best way to store ssh/rdp details? Posted: 26 May 2021 02:15 PM PDT Hello! So as someone who's just recently come into multiple projects where I must maintain ssh and rdp ips and their passwords along with the rsa keys yada yada... I was wondering if there was any wisdom of the crowd as to how to do so securely and conveniently. Right now I just have everything pasted into my password managers secure notes but it feels rather odd since it's very easy to delete things by mistake. (It's basically notepad with a password) Any tips on what I can do differently or better? [link] [comments] |
How to extend a DLL file to log data? Posted: 26 May 2021 02:00 PM PDT There's an embedded system that I don't have the code for. It connects to windows over USB, and there is a .dll client library to call getMessage and sendMessage functions, which get/send one complete message to it at a time. Over time my team made different programs to interact with the DLL, e.g. in C++, Python, C# etc. What I want to do is create a logging library that works consistently for all of them. Without making big changes to all these programs, I just want to log all the traffic to the embedded system for debugging. So what I have thought to do is write a wrapper around the original DLL. This would be an almost drop-in replacement except that it adds logging. It would export all the same functions as the original DLL, except that calls to getMessage and sendMessage would also be written to a file. e.g. I would just call fwrite() with the message data, and then pass through getMessage and sendMessage like everything else. Question is: Do you think there is an especially good pattern for doing this? e.g. Is there an existing way to extend a DLL? Maybe there is some Windows way to pass through all the functions from the original.dll without redeclaring them in my own .h file? [link] [comments] |
How does having multiple font-face works? Posted: 26 May 2021 01:20 PM PDT I'm working on an angular project that imports different fonts, some of them which its own font-face that include references To improve performance I want to stablish font-display swap, and I wonder if just doing it on the style.sccs file will work or if I have to look for every font-face in the different fonts that the project use? [link] [comments] |
Posted: 26 May 2021 01:19 PM PDT I have a configuration tool and related templates that are nothing more than CSS, HTML and JS. I want to secure this page with MFA so that users can't simply just share their login with a bunch of people. I understand that the code can be downloaded easily etc. I'm not especially concerned about that. (I make updates continuously so that wouldn't especially benefit anyone.) I currently am on Godaddy Linux hosting with PHP but I am happy to use another hosting service. What is the simplest scenario to surface a web page requiring MFA each time you access the page? I want the user to login and have to authenticate via SMS or phone app etc. [link] [comments] |
help: i am wondering what is i am doing wrong in that program ? Posted: 26 May 2021 12:50 PM PDT /* Jon Marius shouted too much at the recent Justin Bieber concert, and now needs to go to the doctor because of his sore throat. The doctor's instructions are to say "aaah". Unfortunately, the doctors sometimes need Jon Marius to say "aaah" for a while, which Jon Marius has never been good at. Each doctor requires a certain level of "aah" – some require "aaaaaah", while others can actually diagnose his throat with just an "h". (They often diagnose wrongly, but that is beyond the scope of this problem.) Since Jon Marius does not want to go to a doctor and have his time wasted, he wants to compare how long he manages to hold the "aaah" with the doctor's requirements. (After all, who wants to be all like "aaah" when the doctor wants you to go "aaaaaah"?) Each day Jon Marius calls up a different doctor and asks them how long his "aaah" has to be. Find out if Jon Marius would waste his time going to the given doctor.*/ /\ The input consists of two lines. The first line is the "aaah" Jon Marius is able to say that day.\nhe second line is the "aah" the doctor wants to hear.\nOnly lowercase 'a' and 'h' will be used in the input,\nand each line will contain between 0 and 999 'a's, inclusive,\nfollowed by a single 'h'.*/* sample input : aaah aaaaah output no sample input aaah ah output go
[link] [comments] |
What is your biggest problem with code documentation? Posted: 26 May 2021 12:16 PM PDT |
Posted: 26 May 2021 11:23 AM PDT |
How does reverse anime scene search engines like trace.moe work? Posted: 26 May 2021 10:15 AM PDT There is a reverse anime scene search engine that plays a clip at the exact moment where the anime screenshot was taken when we upload an anime screenshot to it. It is an opensource project but unfortunately, I am a novice and not quite capable of reading the source code and navigating to find the answers to questions listed below. GitHub: https://github.com/soruly/trace.moe The amazing part that differentiates with Google or bing reverse image search is that this service plays a 'clip' at the exact moment. I am wondering how that is done? I have some questions regarding that:
[link] [comments] |
Javascript object Merge keys with Longest Common Substring Posted: 26 May 2021 09:03 AM PDT there is a javascript object with a list of keys and each key has an array for its value if the keys have a common substring for example, "rootkey", "rootkey/subkeyA", "rootkey/subkeyAA", "rootkey/subkeyB" are four keys and merging will result in one key called "rootkey" how do you merge them in a javascript object and merge their values also? value is an array [] [link] [comments] |
Trying to create a Calendarization of Content Availability - React Native / Expo Posted: 26 May 2021 05:01 AM PDT Hello! For a university project i'm doing an app in react native where i am tasked of displaying a number videos in a specific date. Basically as soon as the user watches the first video i need to start some sort of timer until the second and subsequent videos are available to this user. E.G. - User A watches the first video at 00:00 and the second video should be only available to him 12 hours from this point. User B watches the first video at 12:00 and also needs a spacing of 12 hours between episodes. I'm fairly new to working with react native and expo and wanted to know what is the most direct way of pulling this off! Any help appreciated [link] [comments] |
C++ dependency management = ??? Posted: 26 May 2021 08:41 AM PDT I'd love to begin a game project using C++. The native speed is a real bonus compared to what I'm currently using for testing stuff. But the one thing keeping me away from moving to C++ is the fact that I have no clue how to manage cross-platform dependencies. In for example Java, I can use the LWJGL collection of native library bindings, and even though they have native parts, managing those dependencies is pure cheese with something like Maven or Gradle. Just add the dependencies to the list, and you're done. They handle downloading the prebuilt libraries from the repositories. In C++, though, that seems to just be a dream. Only ways I know of are to either get all the dependencies' binaries from their respective websites, hope that you can link to them properly and then handle them on different platforms god knows how, or get the sources and figure out how to add them to the mix. It would be really nice to properly start experimenting with C++, but that just doesn't feel possible right now. TL;DR C++ noob wants to know how 2 external library [link] [comments] |
Insert complex React components within a contentEditable Posted: 26 May 2021 08:23 AM PDT Here is a not so easy challenge for JavaScript / React developers 👀 It may not seem that complicated at first, but many have broken their teeth on it 😬 Let me explain ... The goal is to insert complex react components into a "contentEditable" div. * API calls * buttons * dropdown * ... These components should be inserted anywhere in the text like bullet points. It would work a bit like Gmail does: When an email address is validated in the recipient bar, it becomes a kind of object But in our case the object would contain more complex elements inside (fields, buttons, dropdown ...) Of course there should probably be some solutions in your mind But (there is always a but 😅 ) The more you dig the more you'll realize how difficult it is So we've created a page to meet this challenge To explain better the difficulties And to specify the ways to submit your answer So Are you ready to take the challenge? Here is the link http://en.thecodechallenge.com Don't hesitate to share with your friends! May the force be with you 💪 William [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