1,359 Posted Topics

Member Avatar for vaishnavi_13

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 …

Member Avatar for indraagarwal
0
80
Member Avatar for vaishnavi_13
Member Avatar for Thulan

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 …

Member Avatar for jwenting
1
180
Member Avatar for Grace_17

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 …

Member Avatar for Schol-R-LEA
0
83
Member Avatar for David_239

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 …

Member Avatar for Hemangi_2
1
71
Member Avatar for David_239

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 …

Member Avatar for rproffitt
0
138
Member Avatar for bandanasc

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 …

Member Avatar for Schol-R-LEA
0
84
Member Avatar for vorlic

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 …

Member Avatar for wpeckham
0
140
Member Avatar for RalphGarner

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 …

Member Avatar for pritaeas
2
249
Member Avatar for Anand_31

As an aside, do you mind if I ask how happen to be working in VB6? Is this a legacy application?

Member Avatar for Schol-R-LEA
0
168
Member Avatar for existinglady

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 …

Member Avatar for Roy_264
0
6K
Member Avatar for Zerrin_1

What exactly are you taking the average of - the rows, the columns, or all of the values together?

Member Avatar for Schol-R-LEA
0
165
Member Avatar for nur_721

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).

Member Avatar for Schol-R-LEA
0
158
Member Avatar for Vevo

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 …

Member Avatar for Vevo
0
863
Member Avatar for SusBro

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.

Member Avatar for Schol-R-LEA
0
36
Member Avatar for infinit44

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 …

Member Avatar for Schol-R-LEA
0
322
Member Avatar for forgot

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 …

Member Avatar for Schol-R-LEA
0
57
Member Avatar for Tom_380

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 …

Member Avatar for Schol-R-LEA
0
226
Member Avatar for Nicksen

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 …

Member Avatar for Schol-R-LEA
0
346
Member Avatar for ミツキ 上野

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 …

Member Avatar for Schol-R-LEA
0
48
Member Avatar for macikayx13

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 …

Member Avatar for Schol-R-LEA
0
2K
Member Avatar for MohdAleeRehman

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 …

Member Avatar for Schol-R-LEA
0
87
Member Avatar for sasha12

>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 …

Member Avatar for Schol-R-LEA
0
51
Member Avatar for Hamza_52

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 …

Member Avatar for Reverend Jim
0
220
Member Avatar for logicslab

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 …

Member Avatar for James_163
2
27K
Member Avatar for Chinmay_4

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 …

Member Avatar for Schol-R-LEA
2
111
Member Avatar for Mausam_1

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, …

Member Avatar for AkkiWorkz
2
246
Member Avatar for Priya_37

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 …

Member Avatar for Schol-R-LEA
0
54
Member Avatar for razstec

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 …

Member Avatar for razstec
0
348
Member Avatar for kasmar45

Actually, I suspect that the opposite is the problem: the object was declared, but never initialized, and thus has a value of `Nothing`.

Member Avatar for kasmar45
1
195
Member Avatar for Lynn_10

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. …

Member Avatar for Lynn_10
0
69
Member Avatar for razstec

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.

Member Avatar for Schol-R-LEA
2
542
Member Avatar for rajii93

**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 …

Member Avatar for Dorian_3
1
379
Member Avatar for Xozz

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 …

Member Avatar for Xozz
0
166
Member Avatar for DB12

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 …

Member Avatar for yqqwe123
0
207
Member Avatar for varmela

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 …

Member Avatar for Schol-R-LEA
0
66
Member Avatar for Harry cruise

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?

Member Avatar for Schol-R-LEA
0
320
Member Avatar for razstec

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.

Member Avatar for Schol-R-LEA
0
501
Member Avatar for John Michael_2

`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.

Member Avatar for Schol-R-LEA
0
102
Member Avatar for ianhaneybs

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 …

Member Avatar for Schol-R-LEA
0
122
Member Avatar for iscjm

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 …

Member Avatar for rproffitt
0
97
Member Avatar for Onion13

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 { // …

Member Avatar for tinstaafl
1
285
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
835
Member Avatar for SKCOMPUTERS

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 …

Member Avatar for rproffitt
1
197
Member Avatar for Ahsaan

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 …

Member Avatar for Schol-R-LEA
0
44
Member Avatar for 22Usama190

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 …

Member Avatar for Schol-R-LEA
0
59
Member Avatar for Julia P.

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.

Member Avatar for jedimatt
0
111
Member Avatar for jai0007dev

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 …

Member Avatar for Schol-R-LEA
0
84
Member Avatar for Muhamad_7

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 …

Member Avatar for Schol-R-LEA
0
130
Member Avatar for razstec

> 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 …

Member Avatar for Husoski
0
106

The End.