1,359 Posted Topics
Re: No one here is going to open up some random Word document in MS Word, where there could be random macro viruses in it. Fortunately for you, I use LibreOffice instead, and the macros are all disabled. So, let me post the code for you as you were requested to … | |
Re: Did you have a question, or need assistance in some way? | |
Re: You might want to try the [OSDev Forums](https://forum.osdev.org/) as they have more specialized knowledge. However, you might want to read [this wiki page first](https://wiki.osdev.org/Languages), as it voices some of the issues faced in using Python (and other languages which are usually interpreted rather than compiled) for OS-Dev. I would also … | |
Re: You would need some sort of server-side scripting (PHP, ASP.NET, Node.js, Django, Ruby on Rails - something like those) to query the database and insert the dataset into the page before it is served. Even if you do some of the work client-side (e.g., with AJAX), you would still need … | |
Re: It would have been better if you'd posted more details in the threads you'd already started, rather than re-posting mre or less the same thing in a new post each time. While you've given us some more details, it still isn't enough to do anything with, I'm afraid. We really … | |
Re: Let's step back and look at the details, such as * What sort of game are we talking about? The mention of tokens makes it sound like it is suppose to be a simulated slot machine or arcade machine, but the 'online billing' part is a bit confusing. * What … | |
Re: Wait, what? You mentioned Perl in the thread title, but then you added tags for C, C++, and Python. Which is it? Also, the description doesn't match the illustrative example. How do you need it laid out? Assuming you do indeed mean Perl, and that you are in shell rather … | |
Re: A [quick search](https://www.letmegooglethat.com/?q=free+python+books) finds [this list of free books on Python](https://pythonbooks.org/free-books/). Of these, I would recommend _Think Python_ personally, though I don't know all of the others so there may be a better one in the list if you check. As for videos, I would suggest [Tech With Tim's "Complete … | |
![]() | Re: If you don't mind me asking, do you have a publicly accessible version-control repository for your code? It would make it much easier for us to review the program, if necessary. However, I suspect that the problem isn't with the program itself, but rather with the installer - especially if … |
Re: As an aside, do you mind if I ask how happen to be working in VB6? Is this a legacy application? | |
Re: Rather than eliminating code, in this case you need to add a line just above the first `while()` statement (line 20): head = newNode; This sets the head of the list, which you'll need in order to access the list as it progesses. There's a problem within the `while()` loop … | |
Re: What exactly are you taking the average of - the rows, the columns, or all of the values together? | |
Re: The [msqli_multiquery()](https://www.php.net/manual/en/mysqli.multi-query.php) function returns a boolean value, but you seem to be expecting a query dataset ([mysqli_result](https://www.php.net/manual/en/class.mysqli-result.php)). To get the first query's dataset, you would use [mysqli_next_result()](https://www.php.net/manual/en/mysqli.next-result.php) followed by either [mysqli_store_result()](https://www.php.net/manual/en/mysqli.store-result.php) or [mysqli_use_result()](https://www.php.net/manual/en/mysqli.use-result.php). | |
Re: Is the function `pest()` in a different source file, or the same one, and in either case, where does it get called? I did copy the source code (into two separate files, since the `FmiAPI` only need to run once), and when running `pest()` I got the following error and … | |
Re: The code doesn't do what you think it does. It generates a 3x3 array and then populates it with random values. Frankly, it isn't very good code in general, but the main problem is that it doesn't do what it claims to. | |
Re: If you don't mind me asking, how are you running this? I am assuming that you are in a course on assembly language (or at the very least trying to learn from an old textbook), and that you are using DOSBox or something similar, but I am curious about the … | |
Re: I am no expert on either PHP or MySQL, but I am fairly certain that that won't work, at least as you describe it. You would have to do a separate query to retrieve the value of `receiptno` for `id = 1` first, then increment that value, *then* use the … | |
Re: I would recommend copying and pasting the code in the forum using the Code Block (`</>`) button, rather than posting a screen shot. I get that in this case you wanted to highlight what the editor was telling you, but even so, it is hard for us to work with … | |
Re: If I might be blunt: what *idiot* taught you to use `goto` like that? The `goto` statement and labels do have some legitimate uses. These are not those. It is an extremely bad idea to use `goto` indiscriminately like this. If your instructor has taught an introductory class to use … | |
Re: We'd really need to see more of the code than you've posted, with the code for rendering and refreshing the window. As things stand, we don't even know what windowing toolkit you are using; I would assume that you are using the standard Tk library, but if so, we'd need … | |
Re: Which assembler are you using, and which specific platform (e.g., Raspberry Pi, Apple M1, etc.) is this to run on? While the use of the C library routines makes this generally less important, it is still relevant, as there are differences both in the syntax of specific ARM assemblers, and … | |
Re: Has the course (or any previous ones) discussed sorting algorithms, yet? Given the vagueness of the instructions, something very simple such as Bubble Sort or Gnome Sort should be sufficient, but I know that just saying that won't help much if you haven't studied those before. As an aside, you … | |
Re: >what does dest[i]=src[i] mean (Note that I corrected your original, incorect line of `dest[I] = to src[]`, which is syntactically wrong and semantically nonsense.) It copies the current `i` element of the array pointed to by `src` to the equivalent location pointed to by `dest`. There, that should be a … | |
Re: Dumping an assignment to a post without at least saying that is what you are doing isn't the most polite way to start a conversation, especially if you don't show any of your own effort to solve the problem. It also isn't the safest approach, since plenty of professors regularly … | |
Re: plzzzzzzz don't commit thread necromancy. If you need help, start a new thread. That having been said, your question is too general, and isn't necessarily connected to the original post, which was about a specifc (and very, very, outdated) library that originally came with Turbo C++ for DOS. You will … | |
Re: To elaborate on RProffitt's answer: the error message is saying that you are trying to read the whole array `phy` rather than a specific (indexed) element of `phy`. The error is saying that there is no defined `cin>>` operator for reading an entire array of `int`. Since this clearly isn't … | |
Re: Not without a lot more details as to what you want, no. I can't promise we'd be able to with those details, but I can guarantee we can't without them. I mean, you don't even mention what platform the app is for - while you tagged C, Java, and Windows, … | |
Re: Dumping an assignment to a post without at least saying that is what you are doing isn't the most polite way to start a conversation, especially if you don't show any of your own effort to solve the problem. It also isn't the safest approach, since plenty of professors regularly … | |
Re: Just what do you mean by 'changeable'? Does it have to be able to view different websites, rather than the hardcoded one? Or something else? Also, are you sure you want to be mixing TkInter and Qt like that? I'm not certain that that would really work consistently. If you … | |
Re: Actually, I suspect that the opposite is the problem: the object was declared, but never initialized, and thus has a value of `Nothing`. | |
Re: One more possibility (of many) that comes to my mind is that the environment of the cloud server differs from that of the development system, and that there is either some subtle dependency which is lacking, or some added feature on the server which is blocking the script from functioning. … | |
Re: Would you mind sharing a copy of `sample.txt`, please? I am trying to test the program but I don't have the data file to run it. | |
Re: **rajii93**: I think you missed a few salient points about rubberman's response. First off, he was not seriously proposing that you pay him to do the work (though AFAIK that is indeed his going rate for such projects). The offer was sarcastic; what he was really saying is, if this … | |
Re: You've checked the boot order in the BIOS, correct? Speaking of which, since you mentioned that this is an older system: is it UEFI, or Legacy BIOS? Also, how did you install Ubuntu originally (assuming it was installed already and that the error message is from the HDD boot)? Did … | |
![]() | Re: I gather that you are upgrading an older program from pyMySQL.connect to MySQL/Connector. What version of MySQL are you using, and if it is an older database, is it using the older security model from prior to MySQL 4.1? Going by the [official documentation regarding the connection arguments](https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html), *"MySQL Connector/Python … |
Re: Which RDBMS are you using (MySQL, MS SQL Server, Oracle, SQLite, PostgreSQL, MS Access, etc.)? While SQL is standardized, no RDBMS follows the standard exactly, and most have some extensions to the standard which might affect our answer. It might also be useful to know if the SQL statements are … | |
Re: Sounds fairly straightforward. What have you done so far, and where are you stuck? There is one question I would ask: can you use NumPy homogenous integer arrays, or do you need ot use default lists? | |
Re: While there is no tab control widget built into TKInter, there are a [number of ways to implement one](https://duckduckgo.com/?q=python+tkinter+tab+control&t=canonical&ia=web), with the best option probably being to use a `Notebook` widget as the parent for a `TabControl` class. | |
Re: `DpSdkOps.dll` is apparently a driver for DigitalPersona fingerprint readers. I would get in touch with [HID Corp.](https://www.hidglobal.com/products/software/digitalpersona/digitalpersona) about it if you can, since they seem to be the developers of the drivers. | |
Re: What is the data type of `Invoices.notes`? Specifically, is it either a `BLOB` or `[VAR]BINARY`, rather than `[VAR]CHAR` or `TEXT`? I know it is unlikely, but it was something I thought worth asking about. For that matter, has anyone had a problem printing a `TEXT` value? That was actually my … | |
Re: Why are you planning to do this? What purpose does minimizing the browser serve? Also, [ActiveX](https://en.wikipedia.org/wiki/ActiveX) has been deprecated for over fifteen years - you shouldn't be using it at all. Internet Explorer 10 and later (circa 2012) dropped support for it,. and neither Firefox nor Chrome ever supported it … | |
Re: While I have some other thoughts about how to improve this code, my immediate thought regarding the left/right and up/down movements of the missile is something like so: if (y.Left > enemy.Left) { y.Left += 10; } else if (y.Left < enemy.Left) { y.Left -= 10; } else { // … | |
Re: The date format in question appears to be from MS Excel, which uses 1899-12-30 for the Date Zero; Excel in turn seems to have taken this from Lotus 1-2-3, back in the day. The page I linked to below opines that it was supposed to be 1900-01-01 but that someone … | |
Re: Ideally, you don't use a thirty year old compiler and IDE in the first place, especially since it won't work on any modern version of Windows (without resorting to something such as DOSBox, that is). However, if you are being forced to use it by a professor, and complaints to … | |
Re: You mean the compiler? Which one do you need - [GCC](https://gcc.gnu.org/), [Visual C++](https://visualstudio.microsoft.com/vs/features/cplusplus/), [LLVM/Clang](https://clang.llvm.org/), some other one? There are several, but the three I mentioned are the most common ones. While all three of those complete the translation from C++ source code to executable by default, most C++ compilers have … | |
Re: Dumping an assignment to a post without at least saying that is what you are doing isn't the most polite way to start a conversation, especially if you don't show any of your own effort to solve the problem. It also isn't the safest approach, since plenty of professors regularly … | |
Re: To the best of my knowledge, there's no way to do that purely in HTML and CSS - HTML is a markup language, while CSS defines the styling of said markup. I am pretty sure you would need to use a JavaScript script to do anything dynamic like this. | |
Re: It isn't that `$winner_list_temp` is `null`; it is that while it is declared as an `array`, you haven't populate that array yet. It is the `lottery_draw_id` member of `$winner_list_temp[$i_key]` that is `null`, as there is no actual entry for `$winner_list_temp[$i_key]` at that point. At least, that is my impression; I … | |
Re: These two lines if (strcmp (day,"Monday")|| (day, "Tuesday")|| (day, "Wednesday")|| (day, "Thursday")|| (day,"Friday")) and else if (strcmp (day, "Saturday")|| (day,"Sunday")) are both wrong. They should read if (strcmp (day,"Monday")|| strcmp (day, "Tuesday")|| strcmp (day, "Wednesday")|| strcmp (day, "Thursday")|| strcmp (day,"Friday")) and else if (strcmp (day, "Saturday")|| strcmp (day,"Sunday")) I'm surprised … | |
Re: > can i put my vars in a txt like this: var1=something1 var2=something2 > and access them from python? Would it be acceptable to use a Python file with these as globals, and then `import` the data that way? It would leverage the Python package system to avoid having to … |
The End.