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

I am so sorry to hear that. Concentrate on getting better and we'll keep an eye on things here.

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

Welcome to Daniweb.

Remember to please read the Daniweb Posting Rules and Suggestions For Posting Questions.

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

Sure. Three things:

  1. You should start a new thread for this
  2. You should show us what you have so far
  3. You should tell us where you are stuck
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
rproffitt commented: Read what Cynthia Lummis views have been from 2020 to today. In short, advocate turned to "more regulation" +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Crypto trading giant Binance has been charged with mishandling funds and deceiving federal regulators.

rproffitt commented: "Book'em Danno" (Hawaii 5-0 reference.) +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Here's a general outline of how you can achieve this:

I think you left a little bit out of that outline.

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

clients don't know what they actually want

As a software maintainer/developer, I used to get requests from our control centre by email or memo. My response was always to reword the request in my own (more specific, with weasel words removed) terms and email that back with "As I understand it, this is what you are requesting." I would not proceed until I got a yay or nay response.

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

claiming contradictions in it and moving off topic from the End Time Prophcies. This is what andreRet is referring to as an attack on a Religion.

I started out showing how the prophesies were extremely vague, and according to what I agreed were sensible criteria for determining the validity of a prophecy, I pointed out how they failed to live up to reasonableness.

Pointing out inconsistencies in the Quran is not an attack on a religion. As I said, pointing out that when a math book claims 2 + 2 = 4 is not an attack on mathematics. It is simply pointing out that the book is incorrect. Pointing out inaccuracies and contradictions in the Quran (or any other religious text) does not invalidate that religion. It merely points out that the book got it wrong. If you claim that the Quran is the perfect word of Allah and therefore infallible then I think I can quite rightly ask you how you can justify that.

In any case, with the vagueness of the prophecies I don't think I'll be running for cover anytime soon.

I have gathered, even though Reverend Jim has not stated he is not a Muslim, that he is a Christian and maybe a Protestant. His Username says it all.

Actually I am a dyed in the wool atheist. I don't have any use for any particular religion. You are free to believe whatever you like as long as you don't try to …

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

Thanks for the feedback. The Geeks Lounge, as far as I know, was intended for discussions on practically any topic, computer or otherwise.

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

Can you cite an example of something in this thread that is sexist or racist? As for religiously prejudiced, it is obvious that borobhaisab and I share different views on religion. By definition that makes us both biased, but I don't think bias is necessarily the same thing as prejudice. As far as I can tell we have attacked each other's views and arguments, but we have not made any personal attacks.

It is a common response, when someone criticizes religious ideas (in this case Islam) to cry "Islamophobe". That is not a valid defense against criticism. No ideas should be immune from critical examination. In any case, I am only pointing out problems in a book. To continue my earlier analogy, pointing out a mathematical error (2 + 2 = 5) in a math book does not necessarily invalidate all of mathematics. It just brings into question the validity of that particular book. That is not disrespectful.

Incidentally, I could just as easily have pointed out inconsistencies, and outright errors in the Old and New Testaments, but that falls out of the scope of this thread, at least for now.

I personally take offence to this entire post being on Daniweb, especially after it started to become a back and forth discussion of enforcing certain beliefs!

You have the right to be offended, but your feelings don't invalidate anything discussed in this thread. You also have the right to flag this thread for violating one or more …

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

How would you do this step-by-step on paper with a specific set of inputs?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Fulfilled Prophecies of The Holy Quran?

As detailed at Al Islam

I'll preface this posting by quoting the above site.

“Some criteria are needed in order to distinguish cases of lucky guesses from those of true prophecy. Let us define a genuine prophecy as one that satisfies the following five criteria:

  1. The prophecy must be clear, and it must contain sufficient detail to make its fulfillment by a wide variety of possible events unlikely.
  2. The event that can fulfill the prophecy must be unusual or unique.
  3. The prophecy must be known to have been made before the event that is supposed to be its fulfillment.
  4. The event foretold must not be of the sort that could be the result of an educated guess.
  5. The event that fulfills the prophecy cannot be staged, or the relevant circumstances manipulated, by those aware of the prophecy in such a way as to intentionally cause the prophecy to be fulfilled.”
Finger Prints

“Their skins will bear witness against them as to what they have been doing” (41:21)

The finger prints system at borders, criminal investigation cells and immigration centres prove the fulfillment of this Quranic prophecy.

Fails 1 and 2. This could also refer to any injury sustained during the commission of a crime being used as evidence. For example, if a suspect was shot, stabbed, burned in the course of a criminal act.

Pollution

“Corruption has spread on land and sea because of what men’s hands have wrought” (30:42)

One …

borobhaisab commented: You are not a Scientist. No Phycist. No Biologist. So far, no pHD scientist have complained against the Science in the Qur'aan. Lol! +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Better at/for what?

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

Separating what is wanted from what is needed. That comes before figuring out the logic and organizing your code. It all starts with the specs.

I learned very early on that my job as a programmer was not to write code. It was to provide solutions. The best solution was often the one requiring the least coding.

AndreRet commented: 100% correct, without the proper planning and maps there is no app! +15
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

They only have value when the institute backing it up survives. When the institute is dead, so dies the value of their invented currency. The bubble bursts.

The institute backing the US dollar is the US government. Granted, the GOP is doing its damnedest to blow up the economy, and possibly the global one as well, but crypto-currencies are backed by essentially nobody. A country did not have to fall for SBF to go belly up.

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

Personally, I prefer to write my own code. While it is true that more and more packages (I'm talking Python here) are available to free me from the grunt work, I still prefer to glue everything together myself. It helps me to keep my mind and skills sharp and also gives me satisfaction.

borobhaisab commented: Same here buddy! +0
AndreRet commented: Agreed, We all search fro advice on our coding on a constant basis which is the norm. Where we search or how we get to solutions I suppose is up to us +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

There is an old comp sci saying... "I had a problem and was told it could be solved with a regular expression. Now I have two problems."

Glad to help.

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

Still working on it, but to match one or more occurrences of string/ starting at the beginning of the string you would specify

^(string/){1,}

then if you replaced the matched expression with "" you would end up with what you want.

Dani commented: Thanks! That worked :) +34
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

It still comes down to picking a currency that

  1. is backed by the US government
  2. is backed by nothing

I pick no. 1 regardless of if/when WW III is coming. But I think we kind of went off the rails with the whole Armageddon thing.

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

Another possible test if you are so inclined is to boot off a linux live usb and check the bluetooth with that.

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

You could uninstall the latest update and see if that fixes it. It could also be a coincidence where your Bluetooth hardware has failed. The problem with uninstalling is that Windows Update will just download an reinstall the update so in order to prevent that you could do one of two things

  1. pause updates for a period
  2. disable updates with gpedit.msc

Windows Home users do not typically have access to gpedit.msc, however, it can be enabled. Copy the following lines into the file enable-gpedit.cmd then run it in an admin shell window:

dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

You can then run gpedit by typing gpedit.msc. Expand

Local Computer Policy
    Computer Configuration
        Administrative Templates
            Windows Components
                Windows Update
                    Manage end user experience

Double click in the right panel on Configure Automatic Updates then select the Disabled radio button. Note that this will disable all updates to remember how you did this so you can re-enable it later.

GPedit lets you tweak a pile of things that would otherwise require registry hacking.

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

Details would help, like

  1. what type of information
  2. frequency of updates
  3. frequency and type of access
  4. scope of access
  5. how large is "large"
  6. single user, or multi-user

Typically "large" amounts of data are stored in one or more databases such as SQL Server.

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

Only Brits

And Canuks. I had British friends growing up, and I've watched a lot of British TV starting with the classics like Monty Python, Fawlty Towers, and The Two Ronnies.

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

OK. How about this. A compiled program is one you use without having access to the source code. It's also a program that does not have to be repeatedly parsed during execution.

rproffitt commented: Bytecode, machine code, etc. is slicing it thinly as it's is possible to have a CPU that understands bytecode. Look at Intel microcode updates. +17
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

As far as I know, Python compiles scripts into a folder with a name like pycache. The sorta-compiled code is actually bytecode which is easier for the runtime to process, but the bytecode is still interpreted. When you install python you are given the option to pre-compile the standard packages.

Dani commented: PHP also caches scripts in memory +34
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

A compiled language (C, FORTRAN,...) is converted to a directly machine executable form once before it is executed many times. An interpreted language (BASIC, Python,...) is converted at every execution. In some cases source files are converted once to an intermediate form (bytecode, etc) and saved before execution so that subsequent runs can be performed more efficiently. But this intermediate form is still not directly executable like a compiled program.

For the record, you could have just typed that same question into Google.

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

Nine to one against? Not sure I understand what you are asking.

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

The destructor is automatically called when an object goes out of scope

Let's distinguish between an object and a reference to it. An object can be garbage collected when there are no more references to it. You can have more than one reference to an object.

>>> a = [1,2,3]
>>> b = a
>>> a
[1, 2, 3]
>>> b
[1, 2, 3]
>>> del a
>>> b
[1, 2, 3]
>>> a = None
>>> b
[1, 2, 3]
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I presume the reasoning is the same as that for copy/deep copy. If you have a complicated structure, making a simple copy does not duplicate the nested objects. Because the lambda creates a nested object reference, deleting the object does not delete the lambda reference so the del does not get triggered and the object will not be released by garbage collection. In my last example I deleted the embedded reference, then deleted the object and the del was then called.

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

The problem is the self.b in the lambda. If you first delete self.a then it works as expected. Try

class Exp:
    def __init__(self):
        print('__init__')
        self.b = 1
        self.a = lambda: self.b

    def __del__(self):
        print('__del__')

obj = Exp()
obj.a = None
obj = None
darwin.scribe commented: well, yes, but what happen in second example? +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

For more info see Python del

darwin.scribe commented: it's not even a lambda.it's about assigning a class method to an attribute same class. Like in second example. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Yes. But like most technological changes it will create new jobs.

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

There is no need to do an explicit del obj. Python does a __del__ automatically as soon as you do obj = None. If you comment out the lambda line you will get what you expect. I can't explain why the lambda line screws things up. I hate lambdas and never use them. Typically a lambda involves a parameter which is used in the calculation of the returned value like

x = lambda a: a * 2

In your case you are using self.b for a reason I do not understand but which seems irrelevant to your example.

darwin.scribe commented: I'm sorry, i forgot to remove line with "obj None". I use self.b just for example. And i either can't understatnd why this happen. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

For example, if you do a breakpoint at the line after

rental_days_text = rental_label_days.cget('text')

you'll find that rental_days_text actually has the value

How many days do you plan on renting the car for?:

I don't use tkinter (I use wxPython) so I can't tell you the correct tkinter code but it looks like you are getting the value of the label rather than the value of the entry field.

Additionally, when I run your code, all of the radio buttons for car size selection are selected by default. Again, not knowing tkinter I would guess that these three radio buttons should be put inside a container so that they behave like they should (only one selectable at a time).

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

Unless the way you do the duration is required, I suggest you instead ask the user to select a start and end date. Typically a person would say "I need a car from April 7 to May 10".

Corey_5 commented: This is one of the requirements, unfortunately: 3. Duration of rental (1 day, 1 week, 1 month) and associated cost (£30 + VAT, £95 + VAT, £270 + VAT). +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

G'day Bruce.

On first glace it seems visually appealing. No monolithic blocks of text and good use of white space. I wasn't peppered with pop-ups or drop down banners that covered up what I might be interested in.

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

I recently fell victim to the latest Windows 11 update - KB5023706. The symptom was intermittent BSODs (blue screen of death). It wasn't until after I had done a thorough slate of hardware and system diagnostics that I came across an online tech article explaining the problem's likely origin. After I uninstalled the update and rebooted, Windows Update merrily downloaded and installed it again. Microsoft Tech Support was almost helpful in telling me to switch to a metered wifi connection and pausing updates. Their update hide/show tool refused to let me hide KB5023706 so they suggested I disable updates in the interim using the group policy editor (gpedit.msc) which they should have known has not been available on Windows Home systems for many years.

However, even though gpedit.msc does not come enabled with Windows x Home, it still actually comes bundled, but disabled. If you want to enable access to gpedit.msc, save the following script to enable-gpedit.bat and run it from an admin shell. Once you do that, and reboot, you can run it from the command line or the menu run command by typing gpedit.msc

@echo off 

pushd "%~dp0"

:: Enables gpedit.msc for Windows Home systems
::
:: Must be run from an admin shell

dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

You can disable updates by navigating to

Local Computer Policy   
    Computer Configuration
        Administrative Templates
            Windows Components
                Windows Update
                    Manage end user experience
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Exactly. The comment tool is for brief comments that do not significantly add to the conversation. There is no character limit when actually replying.

rproffitt commented: A comment with an up vote appears to be worth more "points." +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I'm not a great programmer. I'm an average programmer with great habits.

Then you are well on the way to greatness. Welcome to Daniweb.

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

Two more, if you want thought provoking try The Man From Earth and Arrival.

pritaeas commented: The Man From Earth is a must-see! +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Nope. I opened it from within VSCode. I also tried right clicking and the default Open option has the VSCode icon. Doesn't matter now. We have it working fine.

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

why you call it buggy whip

Buggy whips are a metaphor. When everyone rode horses/buggies, buggy whips were used to encourage the horse to ride faster. As cars took over from horses, buggy whips were no longer required so the buggy whip manufacturers either started making something else or they went out of business.

Then again, considering this perhaps there is still a market.

rproffitt commented: That and things that work fine until they don't. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Completely off topic but...

In the summer session between university terms I used to drive a tractor for the city cutting ditches and fields. It was a great break from studying. There were times at Manitoba Hydro when I would be at my cubicle (window cubicle) where I would wish I was working outside in the sun and fresh air, so I can understand going from office work with the BS politics and <rude word> bosses to an outside job.

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

Yeah. They call it flair on reddit. A term that I believe they got from the movie, Office Space. Incidentally, the actual company that they were spoofing in the movie ended up dropping the flair requirement because people kept telling them how stupid it was.

rproffitt commented: I love error messages like "PC Load Letter." I owned a LaserJet+ that did that! +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Run EaseUS as administrator. In Windows 11, right-click the app and select "Run as Administrator: from the popup. In Windows 10, press WinKey and start typing EaseUS. You can then select run as administrator from the menu.

andrewecook commented: Yes, i used EaseUS and it helped me solve my problem. thanks +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Topic adjacent, youtube video shows timeline for language popularity. Pascal peaked in 1980 then dropped out in the mid 90s.

Husoski commented: "Delphi/Object Pascal" is listed at #13 on the Tiobe index today, putting it ahead of Ruby, Rust and Swift. +2
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Welcome to Daniweb

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

Again, we can't offer any solution or explanation without seeing the source. Imagine if you'd said "When I add 25 and 40 in Python I get a result of zero but I can't show you the code.

Can you post the spreadsheet file so I can load it up locally?

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

I'm assuming that zero is the incorrect answer? Can you please post an example with screen shot? Please include the calculation that is being used.