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

I'm starting from "not on Daniweb". To get to Daniweb I have to either type the address into the address bar or click on a link to it. I count that as "step one". If I'm already on Daniweb then, yes, I can go to the hamburger but that still takes a minimum of two clicks and if I go to a forum I still have to turn off the filter. Most of the time I just go to Latest Topics anyway though. Since youy added the Mark As Read context menu I very seldom go to the individual forums.

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

My way

  • Click on Daniweb bookmark bar folder
  • Click on the (for example) Hardware & Software link

Your way

  • Click a link to go to Daniweb home page
  • Click on hamburger
  • Click on Hardware and Software
  • Click on latest topics
  • Click on Filterd By
  • Click on Remove Filter

or

  • Click a link to go to Daniweb home page
  • Scroll down
  • Click Hardware
  • Click on Filterd By
  • Click on Remove Filter

Even if I don't want to remove the filters it's still more steps.

To just get to latest you would

  • Go to Daniweb home page
  • Click hamburger
  • Click latest topics

That requires that I wait for two pages to load. My way always requires two clicks but only one page load, and it's the same method (click the folder, click a link) no matter where I want to go. I don't consider this a foolish consistency.

Also, I feel I can't properly do my job as a mod unless I see every thread. I'm not suggesting you change anything. I'm just saying what works for me.

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

Eric Schmitt, the Republican attorney general for Missouri, is suing the Chinese government. In his official statement he says "The Chinese government lied to the world about the danger and contagious nature of Covid-19, silenced whistleblowers, and did little to stop the spread of the disease. They must be held accountable for their actions."

Time to get out the old irony meter.

2008-12-23_Irony.jpg

rproffitt commented: Let's not talk about government workers fired for reporting back in 2019 to present day about COVID-19. +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I just created a folder on my bookmarks bar for Daniweb with a link (filters disabled) to each forum.

2020-05-07_110401.jpg

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

I suggest you start here with the python turtle module.

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

I didn't say it was her fault. I said I was blaming her.

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

Trump tours Honeywell plant in Arizona maskless while the sound system blares out "Live and Let Die". A cease and desist order from Paul McCartney is likely forthcoming.

rproffitt commented: 'We've got a mad captain sailing this boat' - Paul McCartney +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Still probably better to put it in a script file even if you only have to do it once. That way you can check for typos. The more file names you type the higher the chances of typing one incorrectly. Type - proof read - execute.

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

an 80 year old driver might think the idea of controlling their car with a gamepad as completely unintuitive and blame it on a horrible UI.

Is the gamepad an intuitive interface or is it just one that was learned by a large number of people? English is not a sensible, consistent, or easily learned language. Just because a lot of people speak it doesn't make it so. Esperanto, on the other hand, has logical and consistent rules. It is spoken by a very small number of people. So if you were judging Esperanto vs English on the basis of intuitiveness which would be superior?

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

In a recent interview regarding Covid-19, Mike Pompeo stated both that

  • The “best experts” think it was “manmade".
  • He believes and trusts the Intelligence Community which says it was not.

Does that clear things up?

rproffitt commented: Thank you for my daily briefing. +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Fine example of uncommented code

I especially liked

if (head == NULL) { cout << “ empty list “;   return false; }
Term<T>* prev = NULL;       Term <T>* cur = head;
while (cur && cur - > data !=coffiecnt) { prev = cur;    cur = cur->next; }
if (cur == NULL) { cout << “not fount to remove “;   return false; }
if (prev == NULL && cur != NULL) { removeFront();       return true; }
prev->next = cur->next;
delete cur;
count--;
return  true;
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Some devices offer a setting that allows Windows to automatically assign a drive letter when the device is mounted.

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

Minimal code, in a format that we have to jump through hoops to look at and it is uncommented and right justified. When I load it up every line starts with a semi-colon. Please post the code properly using the code insert tool, </>.

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

I'd hate to disappoint you. A warm welcome to Daniweb bonnieposs.

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

Let's examine, step by step, what you have done so far:

  1. Posted your homework assignment.

I think I see your problem. You haven't actually tried to do it yourself. How about you show us what you have done.

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

Can't you select a USB device as your first boot option in your BIOS/EUFI settings? Do you need to boot from external so frequently that just pressing the boot options key when you boot is not an option?

Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
  • The world is in the grip of a pandemic.
  • Donald Trump is an idiot.
  • Japanese giant hornets are now in North America.
  • Tom Hanks is still pretty awesome.

You are now updated.

rproffitt commented: "And that's the way it is." Walter Cronkite +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I spent the last 8 hours sorting screws, nails, and whatever. My younger son moved into my father-in-law's old house and we have been cleaning out his crap since mid January. He never threw out anything and saved about a billion drywall screws (which he absolutely loved to use to build anything) and every nail he ever bought or pulled (bent, rusty, or not). And of course everything was mixed up with everything else. But now it's done and my son and I each have our own tray consisting of sorted compartments of various lengths and types of screws and nails, and an assortment of metal washers.

Can anyone tell me the rationale behind Phillips head screws? Pop loved to use them and his technique was to drive them in with a variable-speed drill on high speed until the screw was stripped. It seems to me that square hole screws offer better drive (they don't pop out) and are much harder to strip, and easier to remove. And don't get me started on slot type screws.

We do find the occasional treasure. For example, he owned three belt sanders. I suppose he either forgot he alrready owned one or couldn't find it when he needed in. He also sa ved (in six different places) six pieces of diamond willow which we used to make this.

Diamond_Willow_Mobile.JPG

rproffitt commented: 3 belt sanders? Sounds like a sand belt racing team to me. +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Kind of hard to do that without seeing the code.

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

Show us what you have so far and where you are stuck. You might want to watch How to create notepad in vb.net first.

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

Welcome back. You'll notice a few changes.

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

So you're a Flat Earther?

Living where I am it's hard to dispute based solely on direct observation, unless you discount things like the shadow of the Earth on the moon, etc.

rproffitt commented: As you may have guessed, I was joshing you there. But it does sound flatter than a pancake. +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Think of it as evolution in action.

These groups of people are defying the stay-at-home directives:

  1. Evangelical Christians
  2. Hardcode Trump supporters

Basically, people who are completely out of touch with reality. These people are going to increase the spread of Covid-19. Fortunately, they appear to have minimal contact with those of us who know that a fact is something that still exists even when you don't believe it.

I just hope they don't take too many of the rest of us down with them.

To wit.

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

You cold also check out this article on the difference between machine learning and AI.

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

It takes under 10 seconds to cross two lanes. Remember, I live on the prairies where you can stand on your front doorstep and watch your dog run away from home for four days.

Well, maybe not, but you can see cars coming from a long long way off. You can get the idea by following my google maps link and doing a street view.

rproffitt commented: So you're a Flat Earther? +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Nope. There are always breaks when it's safe to cross. We're talking Manitoba highways, not California highways.

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

I find that proofreading/spell-checking does a lot more toward making a document readable than adding a redundant space.

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

If you go to the link I PMed you you can see there is lots of open space behind our house for dog walking. Even more if I want to cross the highway.

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

I'm assuming that because the OP was too lazy to try this on his own first, he was also too lazy to expand WAP to "Write A Program".

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

The tub insert was done in February before the lockdown and we also picked up the laminate a few weeks prior. We didn't rip out carpets or lay the flooring until after things hit the fan. It was nice to have a project to keep us busy (and safe and at home/nearby) when things got crazy. Renting a dumpster was not a problem since they could drop it off in the driveway then pick it back up a week later with no actual contact. Less physical interaction than we have with our regular garbage pickup.

Living so close to the in-laws had good points and bad points. It was good for our boys to have the grandparents so close but there were odd times when tensions ran a bit high. For the most part we got along well, which is good because we saw them all summer at the cottage at Shebandowan as well. Our lot there is quite large. We had the cottage and the in-laws had a house trailer so everyone had their own space.

Manitoba is at 62 known active cases now.

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

Welcome to Daniweb. There are a few of us dinosaurs always lurking about. I take it you are posting from Montana?

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

We've been keeping busy doing a renovation on my father-in-law's old house. He moved out in January. So far we have ripped out the carpets on the upper two levels (it's a three level back split) and put in laminate, retiled the upstairs bathroom, replaced the tub/shower with a new insert (we had a contractor come in), installed a central vac, and repainted the basement ceiling/walls.

We had to rent a dumpster (twice) to get rid of all the crap he piled up. Tha man never threw out anything. He added a sun-room when he moved in (1985) and we almost filled one dumpster with all the crap he had stored under it. I'd say we are about 98% done. I know we are all supposed to be staying at home but it's only four houses down and we can walk back and forth without getting close to anyone.

Manitoba is now down to 61 active cases of Covid-19 so there is talk of relaxing some of the restrictions over the next few weeks.

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

I've always used a single space after a sentence. What do you think of the Oxford comma?

Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
datetime.date.today() - datetime.timedelta(days=100)

gives you the date - 100 days.

>>> import datetime
>>> datetime.date.today()
datetime.date(2020, 4, 24)
>>> datetime.date.today() - datetime.timedelta(days=100)
datetime.date(2020, 1, 15)

You can see the month is 1.

rproffitt commented: Sorry for the +1 a month late but here it is. +15
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You need to use the code tool </> to insert blocks of code. What you posted is not posted as code and without proper indentation it is meaningless.

Radroad commented: Thank you Ill do that +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can download the first two chapters of Michael Driscoll's latest book, Creating GUI Applications with wxPython, here as a free sample from the publisher. And you can look at the code samples here.

JamesCherrill commented: Will do, thanks for the lead +15
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I've only dabbled in tkinter and that was a few years ago. I really don't recall much about it. I found a lot more information/books are available for wxPython, particularly those bt Michael Driscoll. WxPython in Action is also good if a tad outdated. It's by Robin Dunn who runs the wxpython forum (and who created the wxpython wrapper).

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

I'll have to have a look at PyCharm. tkinter is the default but my understanding is that it hasn't been updated in years. Wxpython is current and is a python wrapper for the wxwidgets tool set. Wxwidgets uses the native look and feel of the host OS so if you run your app on Mac it looks like a Mac app; on Windows it looks like a Windows app, etc. Wxpython also has a decent forum for user questions.

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

I'll give anothet thumbs up to Komodo and also further suggest that if you need to create a GUI you look at wxPython rather than tkinter.

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

Welcome to Daniweb. I removed the spammy link to the online casino. We don't look kindly on spammers so please avoid posts that are thinly veiled spam.

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

An obvious first guess would be a failed power supply.

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

Trump is leaving it to the governors to decide when to re-open things, but he has stated he wants things to open up sooner rather than later.

Trump is pissed at New York for keeping things locked down (he is encouraging protests).

Trump is pissed at Georgia for wanting to re-open.

It seems he hates Democratic governors who want to keep people safe and Republican governors who want them to get sick.

But if blue states get sicker their economies will collapse faster.

Blue (have) states fund most red (have not) states through federal taxes.

If blue states can't pay federal taxes because their economies have collapsed then red states suffer.

Nothing makes sense any more. Maybe that movie quote was right. Some people just want to watch the world burn.

rproffitt commented: Nero fiddles, Trump golfs. +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I don't know if this would work but how about creating a textbox and making it invisible? You could use that textbox as your variable. Then you could attach on OnChange handler to it that would trigger whenever it is updated. As for how to trigger an event when it is read, I don't know how you could do that. I also don't know why you would do that. What is the point in doing extra processing when a variable is read?

I'll try this in vb after I walk the dog. If it works in vb it should work in c#

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

PS. Code Snippet is to be used only for working (debugged), commented, and documented code.

Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
  1. Why are you calling the multiplication result sum?
  2. Why are you storing an integer result in a Double?
  3. Why aren't you reading the user response from the console?
  4. Why are you comparing a and b?

Use the StrDup method instead of using a loop.

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

Some US hospitals have had PPE shipped in grocery trucks (smuggled) in order to prevent shipments being seized by the FBI or DHS.

In other news, Manitoba's active cases dropped below 100 (to 99) yesterday and to 97 today. Woo hoo!!!

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

I see three mains, actually.

rproffitt commented: Thanks. I stopped reading after the second then {}'s looked unbalanced. Not much needed to fix if that's it. +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If you are stuck at the flowchart then you don't know anything about flowcharts. You just need a couple of boxes and a decision block (diamond). Go to wikipedia and look up flowchart. I'm not going to explain it here just because you don't want to go to the trouble of looking it up yourself.

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

Please post the code. If you are creating the query on the fly then please post the resulting query.

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

The only way to permanently disable it is to never connect to the internet.

danialvin commented: hmm +0
rproffitt commented: That's about the only way. I've seen folk try many things, this works. Also, Linux. +15
streamvn commented: hahaaaa +0