4,911 Posted Topics
Re: So you could go to the effort of typing "what are the different relational operators in python" into Daniweb but you couldn't be bothered to google "what are the different relational operators in python" and get the results instantly? Unbelievable. | |
Re: It's a simple program. Show us what you have tried so far. ASAP: Short for "I left my homework until the last minute and now I want someone to do it for me." | |
Re: I'm a little confused. In a PM you asked about doing a differential image. I assumed you were talking about a disk image. For that you would need disk imaging software such as Macrium Reflect or Acronis. I can only help you with Macrium Reflect as I have been using … | |
Re: I had the same problem with my Dell. There was a (default) hotkey combo set when I installed Windows 7. I disabled it by going to Control Panel -> Region and Language -> Keyboards and Languages click on Change Keyboards... select the Advanced Key Settings tab You can set or … | |
Re: I've been developing software since the mid 70s (retired since 2008) and I recently switched from vb.Net to Python/wxPython. I know you wanted to develop to exe but there is a tool that will generate an exe from Python. While creating a GUI with wxPython is more challenging than with … | |
Re: I had to download the Fall Creator's Update (which I call FU) about 8 times. I think it was about 4 gig a pop. Fortunately, at home, I have a 160 gig cap. I have to disable all updates at the cottage. It is difficult to do this and not … | |
Re: And of course we have to ask the obvious - what, specifically do you need help with? | |
Re: I see a lot of unnecessary code. For example, every one of your If cmbModel.SelectedItem . . End If blocks clears the value of `txtDate.Text` before setting it to a new value. You don't have to clear it before assigning a new value. Furthermore, no matter what the user selects … | |
Re: You could start by looking at this [Microsoft walkthrough](https://docs.microsoft.com/en-us/dotnet/framework/winforms/controls/walkthrough-authoring-a-composite-control-with-visual-basic). | |
Re: I don't believe so although I have little experience with Android Studio. You could set up a batch file on the USB drive that would set an environment variable before starting Android Studio. You should be able to specify that environment variable in the A.S. configuration. | |
I have been wrestling with this for two days now and getting nowhere. Something is broken, either the GridSizer control or me. I'm hoping it's me and someone can show me the problem. I've stripped my app of non-essentials. What I am building is a Sudoku app which consists of … | |
Re: Please see my answer [here](https://www.daniweb.com/software-development/vbnet/threads/495104/vb-net-search-family-) to another user with the same question. | |
Re: Welcome to Daniweb. I am also learning Python but for my own enjoyment (and not for anything web related). I'm hoping to pick it up quickly enough so that I can answer questions here from people who are still behind me on the learning curve. We used to have a … | |
Re: I strongly recommend starting with the user interface. In my experience, it doesn't matter, from the user's perspective, what's under the hood if the part the user sees is confusing or just butt ugly. Yes, the hidden stuff is critical, but the customer will likely refuse anything that 1. Doesn't … | |
Re: It's not my favourite interface but you can't please everyone. Personally, for short posts I just create the post in TextPad then copy/paste into Daniweb. For anything longer I create the post in MarkdownPad, then copy/paste. It allows me to get the formatting right before posting and it also keeps … | |
Re: All you are doing is setting a hidden propertyt to a list of one string. The fact that the string has the value '__base__' is of no consequence. Set it to some other value and you will get the same result for `foo.__base__`. | |
Re: 1. That's not pseudocode. 1. I don't take orders. | |
Re: You can remove items from a list by index or by content. Assuming a list named `deck` and a card named `card` that has been randomly selected from the deck (let's assume at position `p`) you can remove the card from the deck by del deck[p] or deck.remove(card) | |
Re: Here's a completely off the wall idea. Have you considered learning an old programming language? While everyone is concentrating on learning the latest and greatest and trying to keep ahead of the curve, there is still a demand for COBOL programmers. There is a shit-ton of COBOL code still in … | |
I think we can all agree (this will likely provoke disagreement) that a voting machine that records a vote electronically without a way to do a manual verification is a bad idea. How then should a proper voting machine work. My suggestion is to have a touch screen on which … | |
Re: The short answer is to learn C++. You'll likely get a longer answer if you put more effort into doing it yourself first. In the mean time, 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: You have four lists. One is the master list and the others are specialty lists. There is no guarantee that a person will be added to anything but the master list, and may be added to only one of the specialty lists. However, when you do a create_assignment, you remove … | |
Re: Howie Mandel in his early stand-up comedy days. 1. OK. Now we're going to do some improv. 1. Give me an occupation. 1. Give me a place. 1. Give me a location. 1. Now give me some funy things to say. If you want help with something specific then post … | |
![]() | Re: This is your third post asking us to do all the work for you. 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) before posting again. |
Re: That's pretty low level stuff that you should be able to handle just by rereading your class notes. If you don't know how to flowchart a simple if-then structure then you've probably been sleeping in class. What, specifically, is giving you problems? | |
Re: I've never had much luck working with XML and I'm sure there is a better way to do this via Linq but you could try a regular expression approace as in Private Function GetField(name As String) As String Dim pattern = name & "=""(.*?)""" Dim rex = New Regex(pattern) Dim … | |
Re: You are allowed to edit your post within 30 minutes of iniitially posting it. | |
Re: Do you really think this 9-year-old post warrants further input? | |
Re: I know nothing about the package you are using, but since the problem is with a conversion you could try taking return int(projectionMatrix.reshape(projectionMatrix.shape[0] / self.numberOfDotsPerFrame, self.numberOfDotsPerFrame, 2)) and break it down into components like a = projectionMatrix.shape[0] b = self.numberOfDotsPerFrame c = projectionMatrix.reshape((a/b, b, 2) print("a=",a,"type=",type(a)) print("b=",b,"type=",type(b)) print("c=",c,"type=",type(c)) return int(projectionMatrix.reshape(a … | |
Re: I installed pyCharm and found it difficult to get used to. I found the debugging capabilities of Visual Studio 2019 much more intuitive. | |
Re: You don'y need to enable the admin account. You can create a shkrtcut to an elevated task via the task scheduler. See [here](https://winaero.com/blog/create-elevated-shortcut-to-skip-uac-prompt-in-windows-10/) for details. | |
Re: Have you considered it might be because your key has a space? Look at the following: >>> data_2012 = {} >>> data_2012['DeathRate '] = "some data" >>> data_2012['DeathRate '] 'some data' >>> data_2012['DeathRate'] Traceback (most recent call last): File "<pyshell#4>", line 1, in <module> data_2012['DeathRate'] KeyError: 'DeathRate' >>> You might … | |
As I continue my conversion from vbScript to Python I am finding the gotchas. For example... A lot of my utility scripts take a file name or a file pattern as a parameter. My script, bitrate.vbs, for example allows me to invoke it as bitrate file bitrate pattern Technically file … | |
Re: >infinite scrolling on articles I tend to stay on a site longer with this feature. I like to finish things and "end of page" is sort of like a finish point. With infinite scrolling there is no logical stopping point so I just keep reading. Same thing with books. I … | |
I'm having a problem with my python installation. The packages that came with the installation work just fine but when I try to use other installed packages I run into problems. For example, I installed a package `pymsgbox` using pip from an admin shell. When I run a sample script … | |
Re: It's a combination of syntax and addressing. Try const int NUMSTUDENTS = 10; int main() { int marks[2][NUMSTUDENTS]; printf("Enter the marks of the %d students :\n",NUMSTUDENTS); for (int i = 0; i < NUMSTUDENTS; i++) { printf("\nEnter the marks of student :%d", i+1); printf("\nAssignment Mark :"); scanf("%d", &marks[0][i]); printf("Exam Mark … | |
Re: There is a lot of the same old mindless drivel about SEO, backlinks and such, and a lot of homework posting. There was one interesting discussion a while back in the former geeks-lounge re Quebec's proposed religious symbols legislation. Aside from java questions (which I am not qualified to answer) … | |
![]() | Re: You use it like it says. nlist_it filename.ext Run it with the name of a text file as a parameter and it will list that file to the console. I compiled and ran it and it works as it is supposed to. By the way, no book will teach you … ![]() |
Re: As I recall from my old SQL days, the syntax is not WHEN fld='value' THEN var='other value' it's SELECT fld1, fld2, CASE WHEN fld2='val1' THEN 'new val1' WHEN fld2='val2' THEN 'new val2' This maps database values for fld2 onto user specified values. Sorry I can't actually try this out. I … | |
Re: Welcome to Daniweb. | |
Re: What kind of help are you looking for? If you need it ASAP then I suggest you provide the following ASAP 1. Proof that you have put some effort into doing it yourself 1. Indication as to where you are having a problem So far the only effort I have … | |
Re: Generally, a control will have a `Visible` property. Just set it to `False`. | |
Re: You ***can*** use [Virtual CloneDrive](https://www.elby.ch/en/products/vcd.html) by Elaborate Bytes. It is freeware. I used it for years on Windows 7. It allows you to mount an iso (actually several formats of images) as a drive. | |
Re: Or you could install ImageMagick and if the uploaded image is too large it could automatically resize it. That's what I use to auto-resize/shrink images when I email them. It's a simple one-line command. | |
Re: If the diagnostics don't show anything you might try `sfc /scannow` from an admin cmd session. Scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions. SFC [/SCANNOW] [/VERIFYONLY] [/SCANFILE=<file>] [/VERIFYFILE=<file>] [/OFFWINDIR=<offline windows directory> /OFFBOOTDIR=<offline boot directory> [/OFFLOGFILE=<log file path>]] /SCANNOW Scans integrity of … | |
Re: What I suggest you do **not** do is make a lot of posts on Daniweb that contain links to your web site. | |
Re: >"I've never backed up, why is that my problem?" And yet the same person, if you asked him why he locks his house when he leaves for work would just look at you like you were a moron. | |
The End.