rproffitt 2,701 https://5calls.org Moderator

This is the rather old issue of how numbers are represented in these standard number formats. I won't pretend to hold class about what numbers fit into each number type but when you get into this you have to use a number format that works, adjust your own scaling or move to systems that support your numbers.

It's been many years since I've use BIGNUM in C but for Python it's over at https://pypi.org/project/BigNumber/
The PHP BIGNUM library might be at https://github.com/hpez/PHPBignum

However, in statistics any number past a few decimal places is not telling us much. You didn't make it clear how many digits would be the correct value for 1/3 or even Pi. Those are never ending so how do you intend to deal with this?

rproffitt 2,701 https://5calls.org Moderator

Finance? As in money? Then use Integer or Fixed Point types. No one in finance would select a floating point until it's about statistics.

rproffitt 2,701 https://5calls.org Moderator

Share the number type. Read https://dev.mysql.com/doc/refman/8.0/en/numeric-types.html
Given this is usually a floating point number, almost every language will convert that to an internal floating point format and you'll lose digits after the decimal point. That's normal but let's hear why you need all the digits.

Found a fiddle for you to test with: http://www.sqlfiddle.com/#!9/a23a9/1

rproffitt 2,701 https://5calls.org Moderator

I think you're the first to write "deriving" when it comes to app creation. Tell more.

Right now I like TABNINE when I code. It's been a hoot to see how that works. What modern day tech are you using?

rproffitt 2,701 https://5calls.org Moderator

Tell more about this rewriter. Why I ask is this is the year I'm seeing the rise of real AI (I call it ML) tools for writing, art and voice work.

Why I mention this is it may not be spam but competition from the new AI tools we have today.

I've been surprised with the rapid adoption of AI Art by Microsoft adding Dalle to Office and Shutterstock as well. It's not just Google that is seeing a seismic shift and rapid adoption of AI/ML here. I see rewriting tools powered by AI up for reoffer as well.

rproffitt 2,701 https://5calls.org Moderator

This is usually homework. Feel free to share what you have so far and share what is stopping you.

rproffitt 2,701 https://5calls.org Moderator

Maybe it's one line?

Input value and units used such as 0C and print out the conversion is similar units such as Kelvin and Fahrenheit. Add support for other weights and meassures.

rproffitt 2,701 https://5calls.org Moderator

Sure, let's do this one better!
https://rosettacode.org/wiki/Factorial shows solutions in over 300 languages!
https://rosettacode.org/wiki/Factorions shows the harder trick of Factorions!
https://rosettacode.org/wiki/Sum_of_a_series shows summing up a series of numbers in over 160 languages.

So let's get the PRETENTIOUS FACTOR up to 10 and say "The truth is out there!"

rproffitt 2,701 https://5calls.org Moderator

Are you Carol?

rproffitt 2,701 https://5calls.org Moderator

That's a bit vague. Some will want graphics, some are ok with ascii output. But hey, did you see if there's a ready to use open source version? I'll try.
https://github.com/carlosmccosta/Dominoes is interesting as it claims to have an AI component!

rproffitt 2,701 https://5calls.org Moderator

The last time I scraped websites it was with curl. See https://www.google.com/search?client=daniweb&q=crawl+using+curl

rproffitt 2,701 https://5calls.org Moderator

I did find a nice old missile silo in Kansas. But my SO knew I was joking. I haven't bought a simple thing off a SocMe campaign and wanted to note how many scams there were there. It's not just me but the folk I know but hey, that could be the circles I'm in.

It doesn't help it when you read what abortion rights groups are spending there.

rproffitt 2,701 https://5calls.org Moderator

l, I am talking about a tool which work for all online stores like Etsy, Alibaba, Walmart, etc.

I've read such requests before and see why it's hard. Not only would it take a lot of work for the app's author but changes by the online stores means the app has to be revised more often. On top of that, I continue to find folk want this for free or low cost. These reasons mean there hasn't been an all-in-one app for all stores.
But hey, maybe this is your opportunity to code such and see if it can make money?

rproffitt 2,701 https://5calls.org Moderator

First we'll have to define those terms: From a Wikipedia, "Assume that we need to estimate average number of votes for each candidate in an election. Assume that country has 3 towns: Town A has 1 million factory workers, Town B has 2 million office workers and Town C has 3 million retirees. We can choose to get a random sample of size 60 over entire population but there is some chance that the random sample turns out to be not well balanced across these towns and hence is biased causing a significant error in estimation. Instead if we choose to take a random sample of 10, 20 and 30 from Town A, B and C respectively then we can produce a smaller error in estimation for the same total size of sample. (Source: Wikipedia)

Here, each town is a Strata."

In your case you need to work on what you define as a random date and then run the risk of no matches for that date. You will likely have to DEFINE how many samples you want then call for a random date and then keep calling until you get the number of samples you DEFINED as the sample size. This won't be a simple one line of code but something you'll think about then write down as psuedo code before you code. As such I can't begin to write any code that would tackle your problem. But I can see why you are stuck.

Go back to …

rproffitt 2,701 https://5calls.org Moderator

I won't write code for this for a few reasons. The first is .NET doesn't reveal the language we would be using and second, I can't divine what the app in question is intended to do. Big picture matters so if I was doing research about tokens, refresh and my choice would be C# but I can't tell what the app's intent is, even still I'd read https://auth0.com/blog/use-refresh-tokens-in-aspnet-core-apps/ to see if there's clues to be had for ASP.NET.

rproffitt 2,701 https://5calls.org Moderator

While I never do this on laptops because, my choice to have a stable laptop over one the BSODs, I suggest another audience for the question. Try https://www.reddit.com/r/overclocking/

rproffitt 2,701 https://5calls.org Moderator

This is like the other question "How long is a piece of string?"

Time to develop can't be estimated without a lot more detail which as you may guess would be a lot of detail. If the game is simple like Tic-Tac-Toe, then you give the developer a day, maybe more if they want a smartphone version. If it's something like World Of Warcraft, then a few years.

rproffitt 2,701 https://5calls.org Moderator

For Dani. I took the time to go to the site which writes "Intension or popularly known as database schema is used to define the description of the database and is specified during the design of the database and mostly remains unchanged."

So with that defined I extended that concept to include the English dictionary "the internal content of a concept" as well as how a database schema can also give us a view of the intention of said database.

Seems clear to me.

rproffitt 2,701 https://5calls.org Moderator

I must be in a weird circle. The only reason I and my friends have facebook is to take our page before some scammer does. I might check facebook every other month or less. I never found it to be interesting or necessary.

Then again there's a joke about the 12 users on Meta now.

rproffitt 2,701 https://5calls.org Moderator

I'm going to answer that intension, while explained at the web site you finally linked to appears to be much like "intention." I feel the English dictionary definition will suffice here.

rproffitt 2,701 https://5calls.org Moderator

My only worry would be if my new app was too close an imitation of say Doordash. Doordash might take offense and I'd be dealing with a cease and desist order. There are also concerns of copyright issues. But hey, there appears to be a market for such things. Let's hope that your choice of clone script isn't buggy!

rproffitt 2,701 https://5calls.org Moderator

This is why in my example I added code to work around the issue. Your choice to understand your code or add code to avoid the problem.

Also I find a lot of newer programmers don't know to add debug statements to help understand what happens. For example you could log the open and close calls to see if there was a mismatch. But I can't know if this is all worth it when a fix could be as simple as changing the close to have an IF OPEN THEN CLOSE statement.

rproffitt 2,701 https://5calls.org Moderator

Sorry if I was unclear but the code has little in the way of comments and looks incomplete so again, the error message is what I see when a close is performed on a closed object. I wrote above one method I used when I had no time to do a complete code analysis or when I'm only working with a subset of the code.

Again, if the object is closed, calling close will result in a error. Either trace your code out or put in a test to see if it object is open.

sankar2000 commented: Yes, you are right, the problem is that this happens in a threading enviroment so is hard to track down where the problem is +0
rproffitt 2,701 https://5calls.org Moderator

From what I see above it looks like an incomplete code reveal. But I try anyway. I was dealing with a huge code base written by someone no longer with the company. I was just another consultant called in to see if I could "make it work." They were not interested in a rewrite but hey, they did fly me to another continent so let's give it a shot.

My suspect was the not unlike the above as in a call to close is made and the object is already closed. So I added a global variable to track the open and close of the file then added a test such as if file is open then close(). That solved that little problem but I bet some may tell me I did it wrong. When you only have so much time, you only have so much time.

Now if you have a Python method of checking if the file is open you can test for the object is open before the close.

sankar2000 commented: so i the code is trying to use a resoruce when is already closed, this sounds to me like a racing condition +0
rproffitt 2,701 https://5calls.org Moderator

Keep in mind I am not an expert on Python but I do know that if you close a file that isn't open, that's the error message that I've seen.
I am guessing the entire code wasn't shared because I can't seem to find the open and close code. Maybe it's buried in there but do examine your open and close pairs.
Now the following is about an entirely different system but I found we couldn't hold the SQL connection open forever. My workaround with a minor speed hit was to implement the data write as open, write, close which for that job worked.

sankar2000 commented: i think is a problem related to threading, like an exception messes all code, but i don't know where +0
rproffitt 2,701 https://5calls.org Moderator

There's a lot left out in your requirements. For example I can't tell what coordinate system you use. Also, what defines best?

Anyhow I was on a team on a GPS tracking system which we built from almost scratch (we didn't launch satellites but used an off the shelf GPS module connected to our custom board.)

To find the usual distance using lat and long we use the Haversine function. I see https://www.google.com/search?&q=distance+gps+haversine has many discussions and on my search there is code for Python and most languages.

rproffitt 2,701 https://5calls.org Moderator

I shared the gist of how we did this since about 1972 (when C came out.) What's stopping you now?

rproffitt 2,701 https://5calls.org Moderator

Is this in raw native c++? No GUI or extra libraries?
Maybe the old print a numbered list and you accept input in a string then parse to see what numbered items were selected.

Martin_53 commented: No GUI, no extra libraries just raw native c++. +0
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

All good but many games, especially online ones specifically call out bots as a way to get banned. The video appears to use content from such games and hence my warning.

YT_AIGamer commented: True. I'll have to think about how to avoid that. I also don't want to ruin the gamer experience for others. +0
rproffitt 2,701 https://5calls.org Moderator

Incredible.
whovotedno.png

rproffitt 2,701 https://5calls.org Moderator

I must write that if your company which I did look at doesn't have the answer, how are you staying in business?

Or is this just spam?

rproffitt 2,701 https://5calls.org Moderator

Strange you would mention iOS. It's been over a decade since we evaluated using iPhone or Android for an app to configure our product which is a niche to say the least. Before Android phones we use Palm Pilots and the serial communication over Bluetooth which made the future possible for other devices because we used a Bluetooth standard.

So with Palm Pilots on the way out we took time to look at the Apple phone and Android.

To our surprise Apple changed their serial comm support over Bluetooth and was non-standard. We were never going to change close to a million controllers to include Apple's Bluetooth chip. We went with Android and never looked back.

To this day it has remained a mystery why Apple did that.

rproffitt 2,701 https://5calls.org Moderator

Or you could circle it with a big sharpie?

rproffitt 2,701 https://5calls.org Moderator

Sorry but no. The GOP has taken a weird turn to automatically vote against measures in almost all cases and move to strip us of our rights.

Another example was to remove Obamacare but they never would reveal what the new plan was. Actually for me it was very simple. Have no affordable care because it's best for companies!

-> In the latest twist GOP voted against funding Hurricane response and when the support came, claimed it was their efforts that obtained it.

You might get away with such with your base, but the hypocrisy is hard to ignore.

rproffitt 2,701 https://5calls.org Moderator

For inspiration see the 111 (one hundred and eleven) or more solutions at https://rosettacode.org/wiki/Strip_whitespace_from_a_string/Top_and_tail

rproffitt 2,701 https://5calls.org Moderator

Sounds like that's plenty to make such a site.

rproffitt 2,701 https://5calls.org Moderator

My bookshelf is small now. About 2010 I moved from Boston area to here and it was my impetus to cull the library. While there's about 4 more books such as Horowitz and Hill's The Art Of Electronics and a 1907 textbook Euclid Book I-III Hall & Stevens not shown I too find myself not wanting to add more to the collection.

The reason for the 1907 book was because it's been interesting to use as source material for those that worked on a project I was on. Developers would tell me they found a new way to do something so I would remember it was in the 1907 textbook. Many projects used C and when folk would tell me how hard it was I would pull down a copy of K&R to have them show me the hard parts.

As to Redis, it's likely there are not many books out there in print. For example https://rdg.ent.sirsidynix.net.uk/client/en_GB/library/search/results?q=redis&ln=en_GB&lm=EXCL_LR2&submit=Search+Enterprise found mainly if not all were electronic resources. Note the dates of 2014 and 2018.

Parting shot of my now downsized collection:

IMG_20220930_172314620.jpg

rproffitt 2,701 https://5calls.org Moderator

With a steep decline in the use of books, today I read about "Chuck Finley" and how the people behind this scheme tried to save library books from being burned in Florida.

If you have want to have books in the future, you may want to find a way to support libraries soon.

rproffitt 2,701 https://5calls.org Moderator

Found the meme for Jim! https://imgur.com/gallery/W6VoXSe
d4.jpeg

Reverend Jim commented: I'm getting that tattooed on my back. +15
rproffitt 2,701 https://5calls.org Moderator

Must be some black box homework assignment. I used 74xx and 74xxx parts decades ago and remember this to be a 3 to 8 decoder. https://www.ti.com/lit/ds/symlink/sn54ls138-sp.pdf shows this and the truth table.

There are 2 enables.

rproffitt 2,701 https://5calls.org Moderator

My brother and I installed Solar power systems recently so things that you would never imagined to have BlueTooth (BT) or WiFi now connects to our network and web so we can manage energy use.

In my case it's my EVSE (car charger) which is on Wifi so I programmed it to charge one hour after sun up till one hour before sun down. I wanted to avoid using grid power.
My brother has an EVSE but also a new Heat Pump Water Heater which he programmed to ramp up the temperature prior to 4PM then backoff till 9PM (higher grid rates) and then shutdown from 11P to 6AM. For him this works great. Now his refrigerator has BT and WiFi so it can chill a little more before 4PM to again use more solar power and less grid power.

The results of these are low to zero electric bills. Here we are reading and hearing a lot about sky high electric utility bills but my brother and I are not seeing these bills increase. For him it's running 10 to 20 a month and for me after one year it looks like I paid zero for my electric bill.

Yes, there's a reason to get connected appliances and car chargers.

rproffitt 2,701 https://5calls.org Moderator

As I have worked on projects that used JavaScript (JS) it has always amazed me how poorly the equality == operator works. For reference read https://algassert.com/visualization/2014/03/27/Better-JS-Equality-Table.html which tries to say "it isn't that bad." I love the first graphic:
d1.png
Later we see the less than operator isn't much better:
d2.png

So if you decide to go with JavaScript, pay attention to these areas or you'll suffer later.
Here's a rearranged table for equality. These tables remind me of what we might see in Game Of Life displays.
d3.png

rproffitt 2,701 https://5calls.org Moderator

I took a quick look at Humhub which is Open Source and uses the following languages:

PHP 90.7% JavaScript 7.1% Less 1.2% CSS 0.9% HTML 0.1% Batchfile 0.0%

Looks like you'll be doing a lot of PHP and for the database, your choice.

rproffitt 2,701 https://5calls.org Moderator

I cheated last time. I kept my old WiFi SSID and password on the new router to avoid setting up all the smart stuff.

rproffitt 2,701 https://5calls.org Moderator

This looks to be "well done." I'm looking at https://github.com/topics/venues with over 25 Github projects ready for you to review and pick out to move forward with.

Why create this again?

rproffitt 2,701 https://5calls.org Moderator

While I use Google drive for images, the images are all far too large (pixel count, x by y size) to be what I'd use on a web site. My camera and screenshots can be 4K or larger images so I would expect them to be awful if I put them up on a web page.

After addressing the image dimensions then I recall the use of Google Drive for image hosting to be unstable. Maybe it still is.

rproffitt 2,701 https://5calls.org Moderator

Is this yours?

Dec 28, 2021 — A cloned application gives the original developer full access to edit and customise the applications according to their requirement

I'm now retired but all our apps were custom. There was nothing to clone because no one had written an app to configure equipment using an Android phone before. The process and protocol was proprietary so all we had to work with was code from years past. Said code ran on Palm Pilots! It was also in C and the new way was Google's dev kit which is something close to Java.

Anyhow, back to your blog. From what I read you have to keep your content fresh. If it's static, it sinks.

rproffitt 2,701 https://5calls.org Moderator

There's so much missing here that any guess will be a guess. I know that we don't want to use Windows 7 for such because reasons (too many to list) and you can run Windows 10 or Linux for free. Windows 10 will run fine without the license or activation.
Over at https://www.apachefriends.org I see the current version is 8.something so I'd start with the usual uninstall of the old XAMPP then try the current version. Consider this part of the lesson of running any server apps.

Finally I can't guess what you did as well as what the error message is here. The more you write the more I have to work with.
There's also a change in Windows that almost forbids you installing to the root or top folder. It's about security so see what a clean install wants to install to next time. It might not be C:\xampp.

rproffitt 2,701 https://5calls.org Moderator

This may be version dependent. For me on Windows 10 (current version) the function works but the small window appears top-center of the screen. However I have heard reports that this feature fails on Window PCs that have more than one monitor. As such I suggest you use better screen shot apps. I'd try Greenshot from Ninite at https://ninite.com/greenshot/ so it's a clean install without add ons like toolbars or something else you didn't want.

The Greenshot Wikipedia page writes: Is Greenshot legit?
Greenshot is a free and open-source screenshot program for Microsoft Windows. It is developed by Thomas Braun, Jens Klingen and Robin Krom and is published under GNU General Public License, hosted by GitHub. Greenshot is also available for macOS, but as proprietary software through the App Store.

You can try the following as well:

Click Start -> Settings to enter into Windows Settings screen.
Click Apps -> Apps & features.
Click Snip & Sketch in the right window and click Advanced Options link.
Click Reset button in the pop-up Snip & Sketch window to reset this Windows 10 screen capture tool.