Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Holy crap. Great to see you in the forums again. I've had not a great year. More surgery in January and 7 weeks of radiation in March/April but things have settled down again and we've beaten the wolf back from the door. I have been trying to hunt down ddanbe because he hasn't checked in in a while. He hasn't been responding to his regular email. While I was checking up on him it occurred to me that we haven't heard from you in ages. How have you been? I'm sure you'll notice a big difference since the last time you were here.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Looking at the posting activity you, rproffitt, and I may be the only active remanents

Ahem...

rproffitt commented: Hey you. And you and others. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The Deutsche Bank executive who signed off on Trump's loans has committed suicide, possibly in anticipation of being called to testify during the impeachment hearings. I suppose an obvious question would be was this an Epstein-style suicide?

rproffitt commented: I'd take that bet. Along with another one on Randy Andy. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The most important skill you will learn in school is the ability to learn on your own. If you can't pick up new skills in school with a teacher then you likely will fail at this on your own. In today's high tech world that would put you a lot lower on the employable scale than someone who doesn't lack that ability. In your career you will be asked to do many things you have little or no interest in doing. Get used to it.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

What error message, and on what line?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Try changing your constraint to

CONSTRAINT  CheckDebute   CHECK (DebuteDate  Between 1950 and 2099),
CONSTRAINT  CheckDisband  CHECK (DisbandDate Between 1950 and 2099));

I had to insert the rows separately as sqlite doesn't support the same multi-row insert syntax but I did not get any duplication errors. You also might want to use varchar(100) instead of char(100). You'll save a lot of space.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Can you be clearer? Are you trying to add up the number of checked checkboxes on a form? If so, are all of the checkboxes at the same level on the form or do some appear in one or more GroupBoxes?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

How do you teach those who fall off the official wagon?

To use your metaphor, what kind of lesson is giving a drink to an alcoholic? We don't teach people the value of work by doing it for them.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The proper way to get rid of windows.old is to use the Windows Disk Cleanup utility. You have to select Clean Up System Files.

2019-11-20_171943.jpg

2019-11-20_172004.jpg

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

That would imply I want to take the time to register on that site and learn the local biome. I'm quite happy here. I'd rather a google search lead people to Daniweb. Feel free, however, to recommend Daniweb and this tutorial on that site.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

It may be gone from IE/Edge but it still works as a local-machine scripting language. Still very useful for those who don't yet know Python.

vinnapanda commented: Y +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

By the way, if you click the Inspect button you can expand the object tree to locate any object in the application. Once you are focused, you can modify that object in the lower inspect panel and see the results in the application. For example, below I have modified the fg/bg colours of the upper left button in the first tile

2019-11-20_131109.jpg

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can change the colour of the text by changing the foregroundcolour. For example, in Class Tile you could do

def NewButton(self, index):
    """ Create a button, assign some default values and connect the event
    handler.
    """

    button = wx.Button(self, wx.ID_ANY, label=str(index+1))
    button.SetMinSize(BUTTONSIZE)
    button.name  = str(index+1)
    button.index = index
    button.ForegroundColour = (255,255,255,255)
    button.BackgroundColour = (100,100,100,255)
    button.Bind(wx.EVT_BUTTON, self.Button_OnClick)
    self.buttons.append(button)
    return button

I'm still learning so if I find a better way I'll post it.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You might want to adopt a leaner style regarding use of whitespace. Doublespacing your code makes it harder to read, not easier.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You haven't shown us what you have done to solve this yourself, but for the first one, for problems of this type I suggest you work with a specific example. Take a number, like 7, then write out the number of each character that needs to be output per line

3 spaces plus 1 asterisk
2 spaces plus 1 asterisk plus 1 space  plus 1 asterisk
1 space  plus 1 asterisk plus 3 spaces plus 1 asterisk
etc

Then figure out what loop(s) you need to generate those numerical values. Once you have this for a specific number you can generalize it for any odd number.

The second question suffers from spec error (and was asked by another user). A negative number both generates an error and causes an average to be calculated. Rewrite the spec.

ImmutableIcarus commented: Thank you, I got the question done yesterday. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

According to me Mozilla Firefox (google chrome) is best for SEO.

A response like that is completely useless without supporting info to back it up.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Is there a question?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If you ask a specific question I'd be happy to offer a specific answer. In the future, please post code as text rather than as a blurry screencap.

Henry_28 commented: I was hoping the picture will give a better insight into what i wanted. the problem is mostly with the environment +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Seriously? You couldn't be bothered to even fire up VB and copy/paste the variables to see if they got flagged. If you are this incredibly lazy I suspect you won't go far in programming, let alone life.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Your specs don't make sense. A negative number results in ERROR but -1 performs an action. Last I checked, -1 was a negative number. Do we take the spec from your text or from your code? They can't both be correct.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If you come across a specific code problem feel free to post the code and ask questions. Keep in mind that the more detailed your question, the more likely you are to get an answer.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Start by taking mainloop out of the class. Make other methods (like login) actual class methods. Put your loop in the main line as

while True:
    print('-'*50)
    print('              The Royal Mint Of Spain')
    print('-'*50+'\n')
    print('  Enter Input [1-4]')
    print('1) Login')
    print('2) Open Account')
    print('3) Exit\n')
    choice = input('>>>')
    if choice   == '1': test.login()
    elif choice == '2': test.newAccount()
    elif choice == '3': sys.exit()
    else:
        print('[Invalid Input]')
TickleMeElmo commented: Much Appreciated, I'll try this later! I'll be sure to credit you in the final code +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

And it was posted in the hardware-and-software forum.

rproffitt commented: And let's not mention the tag used above. +15
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

GOP legislators flatly deny that Trump is guilty of "X" no matter what "X" is. It's telling that when they are instead asked, would it be illegal if a president did "X", they refuse to say either yes or no. If they answer "no" then they are admitting that they believe Trump is above the law. They can't answer "yes" because they know that Trump is guilty of "X" and a yes answer would cause enormous blowback later.

rproffitt commented: Still debated "The king can do no wrong" or "Sovereign Immunity." +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You should have a look at this combobox tutorial and see if that gives you the information you need.

Joshua Louiz commented: Okay.. Thanks +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

That's odd. I'm in Canada (Winnipeg) and I had no trouble. As for linux/Windows, the headers on the python components are linux style

#!/usr/bin/env python

They have a forum where you can post questions if there are problems. They are very responsive. Did he/she try to install it by

pip install spleeter

I just went for the simple install. Apparently, if you have an nvidia gpu there is a way to install/setup so that most of the work is done on the gpu. They claim it runs about 100 times faster that way.

rproffitt commented: Thanks. Will send this along to Surrey, BC. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I suggest you post your schema and data here. Whatever you posted above isn't of any help. Keep in mind that if anyone wants to run a test against your schema/data it is much easier to set up the test when we can copy/paste data - something we can't do from a jpg screencap.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You might try the fix suggested here.

Jiby_1 commented: I am using Linux machine.Libusb is properly installed +1
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I highly recommend the book "Commander in Cheat : How Golf Explains Trump" by Rick Reilly. It's not only enlightening but also amusing, especially for golfers, but you don't have to be one to enjoy it.

I see Trump is running out of sporting events he can attend. He got booed at the World Series, then again (only worse) at the UFC match. Of course, his supporters are spinning it so he appears even more popular than ever. Perhaps he will soon be limited to golf, and only on his courses. He should be able to get tee time as his venues are being boycotted more and more.

rproffitt commented: Along with others I would not play golf with are V. Putin, K. Jong-Un, and most leaders. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You'll likely get as much effort back as you put into asking. In this case, very little.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Cooper seems back to normal now although we are keeping him on the meds for two weeks as per Dr.'s orders. He's back out of the bathroom and sleeping on his bed in the bedroom again. The fire situation in CA is looking pretty grim from what we can see on the news up here in the GWN. Looks like nothing in your immediate area but I'm sure the air quality is terrible. I'm keeping my fingers crossed for all of you down there.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I never crate trained her

Crate training is a good idea for every dog. The dog learns that the crate is their safe space. It should not be a place where you put your dog as punishment. If you ever need to travel and you are able to take the crate along (our crate is collapsible), the dog will still have a familiar place to sleep.

she chews carpet and rugs until their [sic] bald

This is not unusual puppy behaviour. We have a newel post that has teeth marks. One of our setters liked to slowly pull the fuzz off tennis balls. He would also hold my father-in-law's foot down and, one-by-one, yank out the hairs.

rproffitt commented: "No one expected the Spanish Setter Dog inquisition." +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

PLUS his example is in vb, not C/C++.

PLUS his example is the equivalent of "count all the hooves and divide by four".

PLUS he doesn't believe in comments, white space or indentation in his code.

By all accounts, it is over-designed and just all around a bad example of how to write code.

rproffitt commented: So it is as good as free beer. +15
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Try taking out the comma at the end of

municipio_fk    CHAR(2),
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

We never covered micro code and how a bus works because back then the first home computers were only just coming out in kit form in my last year (Cromemco, Zilog, etc.) and a bus was something commuters used to get to work. I remember one undergrad coming in and asking a prof why his kit wasn't working. He must have been using a soldering iron the size of a horse's leg because he had solder puddles the size of quarters on his motherboard.

rproffitt commented: "If it smells like chicken, you're holding it wrong." +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

We've had one or more dogs since 1981. Most of the dogs were Irish Setters and mostly they just needed lots of exercise. Fortunately we are at the very edge of the city. There are literally (in the actual definition of the word) no houses once you go out our back gate. Just a highway, and once you cross that there is the Red River Floodway with a miles long bike/foot path and open grassy hills which is great for exercising dogs. Our current dog is an 8 year old golden retriever who is not nearly as active as the setters. But we're at the age (60 something) where we're not as active either. We also have a cat so they keep each other amused.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I think the term "hacker/hack" has been watered down to the point where it has returned to its original meaning. It was originally what you stated, then it became associated with the black-hats. Now it is so over used it has lost its negative connotation. Life hack? Seriously? What's wrong with the words "advice" or "tip"?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Maybe the 2020 G7 meeting won't be at the Trump National Doral Miami.

Thousands of bedbugs will be going to bed hungry. Of course, in true Trump fashion, instead of admitting it was a bad idea he is blaming the Dems and the corrupt media.

rproffitt commented: . +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Bill Maher likes to play the "What if Obama did it" game. What happened was an interesting exercise in watching Trump's toadies run in circles trying to justify how, once again, there was nothing wrong with what he did.

rproffitt commented: "Nothing to see here. Move along." More Cunning Stunts to be seen soon. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You might start by adding some code to call your functions. What change do you want to make?

Imran_28 commented: I want to make a new function and the functions job should be to change file. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

It doesn't work because it is not valid code.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The answer is "it depends". My laptop (Windows 10 Home) is partitioned as follows:

  • 120 gB C:
  • 1.7 tB D:

C: is reserved for OS, applications, and some user folders. After I installed Windows I relocated My Documents, My Pictures, My Videos, My Music and Downloads to equivalent folders on D:. After installing Firefox, Thunderbird and Chrome I also relocated the profile folders for each to D: as well.

I set up Macrium Reflect (free edition) to do a full image of C: to an Images folder on D: on the first of every month. I also do an automatic differential of C: every day. At some point I plan to buy a copy of Macrium Reflect because that will allow me to do incremental images daily (much less space).

Because settings are stored helter skelter there is no way, other thann a full image, to guarantee all settinngs are backed up. I have had many occasions to restore a C: image in order to undo inadvertant damage.

If you allow Macrium Reflect to modify your boot, you can have it set up a boot image so that when you boot your computer you will have the option to boot directly into Macrium Reflect rather than Windows. This means you will almost never have to create or go looking for emergency boot media (unless your entire disk is toast).

PS: Never rely on Windows System Restore. It doesn't really do what you think it does. In fact, disable …

rproffitt commented: I think MSFT and apps store settings in more place than any squirrel does for their winter nuts. +15
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Lindsey Graham has just floated the idea of having Republicans sign a pledge that they would never vote to remove Trump from office. I presume this is to show support. What it really says is "no matter what evidence you put before us, no matter what crimes you can absolutely prove Trump has committed, we will find him not guilty." Sort of like a kangaroo court on the Bizarro world.

rproffitt commented: There's a story where the king said they could not commit a crime. Didn't turn out well for him. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The tag says php but the format of the query string does not depend on the language, just on the specific db engine.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Nobody here will do your homework for you. However, if you show some effort and get stuck you can post your questions.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If they can make a list of 20 impeachable offenses and his shysters manage to knock off even 20% that still leaves a good number for prosecution. If I were hunting the great pumpkin I'd like as many bullets in my gun as I could fit. I wouldn't want just one and run the risk of a misfire.

rproffitt commented: Or that was the plan all along? +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Since you are comparing op to '!' is there any particular reason you declared it as int rather than char?

forbesm commented: i know it should be declared as char but when declared as char it says that i need to declare op. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I use Macrium Reflect (free home edition) and I have it set to automatically do a full image of C: at the start of the month and a differential every day.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Here's a thought. Assuming Trump is successfully impeached and removed from office, and further assuming that he can then be charged with federal crimes, the Democrats should ensure that those charges are not laid until a Democrat sits as president. We don't want another Nixon fiasco where Ford pardoned him of all crimes. Any crimes, however, that are charged at the state level (are you listening, New York) could proceed immediately since the president can only pardon federal crimes.