4,905 Posted Topics
Re: Sounds a lot like homework. We don't do homework. | |
Re: This is essentially the same question as posted [here](https://www.daniweb.com/programming/databases/threads/538198/please-help-with-python-code). You get the same answer. Show us what you have so far, and where you are having problems. You said you attached the code but I don't see it. Please post it inline using the code block tool `</>`. This makes … | |
Re: The first thing I would do is look up the definition of a table. It usually has both rows and columns. Your example has only a list. The second thing I would do is write and debug the code for `isVariant(a, b)` which should return `True` if `a` is a … | |
Re: That sounds like the perfect scenario to create a thread that generates the random numbers. That would allow the generation to be done concurrently with your game. The thread could maintain a queue of n random numbers, automatically generating new numbers to maintain the pool as you make pull requests. … | |
I've seen multiple write-ups and videos on how super-easy it is to install and configure JellyFin Media Server. My experience has been the opposite. It has a lot of really nice features, one of which is the automatic fetching of meta data. It's so nice, in fact, that I thought … | |
Re: First of all, show us what you have tried so far. The answer also depends on the format of your data. Are you processing a file line-by-line, or are you processing a list of lines where each list element is one line of text? Also, instead of giving us the … | |
Re: Easiest way to find out is to google things like mysql python sqlite python I've used it with sqlite only. Connection is easy. For a step by step check out [this tutorial](https://www.tutorialspoint.com/sqlite/sqlite_python.htm). If you are more into video tutorials you can watch [this one](https://www.youtube.com/watch?v=byHcYRpMgI4). | |
Re: Nice to see a new face. While I am far from being a Python pro I should be able to help with the simpler stuff. Welcome to Daniweb and thanks for sharing. | |
My son uses Anaconda so I thought I'd install it so we could collaborate. I downloaded and installed the latest version. When I ran Anaconda Navigator, the first thing it told me was "there is a new version available". That's when I started having misgivings, but I downloaded and installed … | |
Re: Why not just get another 8 gig of the same memory you already have? | |
Re: Please keep in mind that if you ask politely for help you are more likely to get an answer. Look at it this way. If you were to ask someone if they could babysit your dog for a few days while you were out of town, which would be more … | |
Re: I can't recommend a course but I highly recommend the book *Beginning Python: From Novice to Professional* by [Magnus Lie Hetland](https://www.ntnu.edu/employees/mlh). | |
Re: What have you got so far, and what version of Python are you using? Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
Re: There are so many things wrong with this post. - You posted a demand for a solution - You didn't actually post a question - You didn't show the work, if any, that you have done so far - Read the forum rules and try again Please read the [Daniweb … | |
Re: Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). What you probably want is a login form that is presented to the user before allowing the main form to display. You'll either have to maintain a database of user roles, or if you are working with a Windows … | |
Re: Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). What language are you writing it in and what do you have so far? There are different techniques depending on the actual specs. If you are reading in the number, you can process it as a string. To convert … | |
Re: You want a high mark but you don't want to actually do the work or learn anything. Would you also pay someone to go to the gym for you and expect to get ripped? That's not how life works. | |
Re: You tagged this thread with "C". I added "Python" as a tag and removed "C". Is your problem with the actual logic of the code (which we won't write for you), or is it with the scheduling (which you can do with the Windows Task Scheduler), which we *can* help … | |
Re: Seriously? After Ukraine and numerous cyber attacks you'd trust anything Russian? Shame on you. Time to resort to your backup. If you don't have a backup then double shame on you. You should have a backup image of your system partition for just this event (I recommend Macrium Reflect). At … | |
Re: Start with Python. 1. It is easy to learn the basics 2. There are lots of online tutorials 3. There are people here who can help 4. It is not a niche language | |
Re: A little late to the party but, I suggest you start with Python. It is relatively simple for beginners to pick up and the online resources for all levels are plentiful. Using the built in coding environment (idle) you have a decent (for a beginner) editor plus an interactive shell … | |
Re: Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). Nobody here will do your homework for you. If you want to ask a question I suggest you state it as a request rather than a demand. | |
I discovered, after upgrading to Python 3.10, that wxPython no longer worked. Fortunately, a kind soul at wxpython.org suggested I try installing a snapshot build of wxpython via the command pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython So far my existing wxPython scripts run just fine. If you are wondering … | |
Re: Google `tutorial vb.net splitters` and watch the top hits. | |
Re: Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
Re: I never look at anything on the front page. | |
Re: In 1971 (almost before the invention of tech) I was in first year engineering (was going to be chemical) and I sucked at physics labs. A professor let me use his computer account to tinker with BASIC and I ended up writing some code to generate my physics lab results. … | |
Re: You are trying to access a property as a method. You should be using `X.content` instead of `X.content()`. Methods use parentheses. Properties do not. | |
Re: I've been running nothing but Windows Defender on all the machines I've set up for many years now with no problems. I **HAVE** updated several friends' anti-virus when they complained about high CPU load when running: 1. Trend Micro 2. Norton Antivirus 3. McAfee | |
Videolan.org has a section in their forums for "VLC media player Feature Requests". I have been using VLC for many years and, other than being a tad light on documentation, I find it pretty damn awesome. But there is one small thing that always bothered me. If you are watching … | |
Re: We won't do your homework for you. Please post your code and indicate where you are having a problem. In the meantime, please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
Re: How are you storing the date? The answer depends on whether you are storing it as a string (and what date format the string is in) or a date/time. If you could post the query you used to create the database that would be very helpful. I could use it … | |
Re: Do you have a USB that you can boot from to check your hard drive? Linux Live or Macrium Reflect for example? | |
Re: My guess is that it was removed because it is provably B.S. | |
Re: Any GUI programming I do in Python is done with [wxPython](https://wxpython.org/), which is built on [wxWidgets](https://www.wxwidgets.org/). This is a cross platform set of components which causes all controls to be rendered in the target system's control set. That means that the application will look like a native application no matter … | |
Re: If you can afford it, and you think it will encourage worthwhile posts, then by all means. As in the past, I will not redeem any bonuses earned. I do it for the love of the craft. | |
Re: You have to adjust the value for `num1` so that the next time you click `=` you get the correct answer. If you want `ans` to be the sum of `num1` and `num2` the first time, then `num2` and `ans` the next time, you'll have to assign `ans` to `num1`. … | |
Re: I recall from an incident a few years back that Windows uses drive IDs (serial numbers) when allocating drive letters. In my scenario we were taking daily drive images of our online servers, and applying them to backup (offline) servers so that in the event of a catastrophic failure we … | |
Re: Problems with your post: 1. You hijacked/revived a four-year-old thread 1. You posted undocumented code 1. You didn't post that code properly 1. You demanded that someone do your work for you You are basically acting rude and entitled. Good luck getting help with this. | |
Re: Lacking a screen-saver (which is no longer required to save your display) why not just download a fireworks video and have it play full-screen on repeat? | |
Re: Looks like pretty basic linked list manipulation. If you understand how linked lists work you should be able to step through the code with a little elbow grease. If you don't understand linked lists then you'll have to do some reading first. | |
[This item](https://arstechnica.com/information-technology/2022/03/sabotage-code-added-to-popular-npm-package-wiped-files-in-russia-and-belarus/) was in the news a few days ago. I'd like to know people's thoughts. I'm torn. On the one hand, it erodes trust in all open source software. On the other hand, it selectively targets the aggressor nations in an illegal and immoral war. But where do we … | |
Re: Since a password is associated with a username, it would make more sense to use an associative array, or as Python calls it, a dictionary. Also, since you pretty much wrote it out in (almost) pseudo-code, why not do it in actual pseudo-code in indented format? That will get you … | |
Re: What is giving you the problem? Is it the I/O, or is it the math? | |
Re: >Creators would have initial control to get it off the ground but would give up 100% once/if it did. If I read this correctly, you are saying that the people who actually do the work will eventually have zero ownership? Isn't that the opposite of >I envision a Reddit that … | |
Re: The letter "r" identifies the string as a raw string. This allows entering a path & file name with single backslashes instead of having to escape them (double backslashes). Try using pd.read_csv | |
Re: Why don't you tell us a little more about what services you offer? That would help us narrow down what might be suitable names. Judging by what little you have told us, I gather you do out-patient surgery (duh). What specific areas do you specialize in. Oral surgery? Cosmetic surgery? … | |
Re: For starters, because you hard coded that part of the print statement, no matter what input you give it you will always print out 17 and 3. | |
Re: Welcome to Daniweb. I joined back in 2010 and I can't even see 40 in the rear view mirror. | |
Re: Hint. It's a single line of code. |
The End.