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

I'm sure you can find the random function and more but it appears you want to scale and offset the result.
Given the return from the common random function is between 0 and 1 floating point you only need to take that result, multiple by the high minus the lower value and then add the lower value. In short, scale then offset.

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

Please comment about the Ethereum Merge and the fallout. I'm starting to see that graphic card prices have taken a tumble for a start. For example the Nvidia RTX 3090 fell from over 2,000USD to 899USD in a few weeks.

Also, there's https://web3isgoinggreat.com which shows how poorly or how scammy blockchain has become.

random_chat commented: I almost got scammed this way too. The merge scam looks professional, no idea the entitie(s) behind it. IMO proof-of-stake = < $graphic cards +0
rproffitt 2,701 https://5calls.org Moderator

As long as there is some warranty that you don't receive a dead laptop and you know these are used things that can fail because they are older and without any long warranty, why not this model?

MiaGracelevi commented: I didnt know these are used. This product is cheaper. I thought it would be great to buy from there since i cant afford higher price +0
rproffitt 2,701 https://5calls.org Moderator

Wait, you lead with you want to develop this but then ask for complete codes. What development would be left for you to do?

varcore commented: Exactly , how is he supposed to learn anything ? +0
rproffitt 2,701 https://5calls.org Moderator

Welcome to TechRepublic and Daniweb.

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

Why does this code look like what I see at https://snowscan.io/custom-encoder/# ?
If you feel the need to discuss Snowscan's code, I see contact information there.

When you post someone else's code, give attribution.

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

Sorry but I never did business with them or many others. Why? Hard disks and now SSD along with other storage devices have become too easy to source in the USA. For the sake of not promoting any company that starts with A or N let's just say I can get almost anything I want at Alice's Restaurant. Wait, no, I meant that with same day delivery from the usual companies, I can see that the Fremont company may have to find another way to promote their products.

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

Dani, great question. When we were evaluating possible designs a few were ARM SoC based with Linux and JRE implementations. Times change and before we would scale a solution picking chips, OS or even no OS, build prototypes and do the usual engineering samples to the field but with outsourcing and a wide array of designs that were very close to what we required we traveled about Taiwan meeting with various companies to see what they offered.
One or more of the devices in the run off had the ARM+Linux+JRE stack and the JRE made it fairly trivial to customize the product. Now the dev kit was a bit rough so I spent a week in Taiwan with the company to create an easy to deploy dev kit with a short manual on install and use.

We didn't need close control, just needed to keep it from needing more CPU or RAM.

I have another project that we needed absolute control so I used an Atmel 8 pin microcontroller with no RAM. The embedded software was assembler and ran great with a few spare registers left when done. Cost was key here so the micro came in at a hefty 26 cents.

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

I must take issue that Volkswagen is getting promoted here. Check out https://en.wikipedia.org/wiki/Volkswagen_emissions_scandal which covers the highlights of their nefarious operations. It's a shame they avoided jail time.

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

I think the no advantage was a remark to me. Even today, for embedded applications (now often called Internet of Things) we often have to turn to reduced footprint methods. The JDK server may incur an extra cost for more RAM. When you are dealing with devices such as GPS trackers, if you can slim down the RAM and CPU requirements you can drop a few dollars off the product cost and even reduce battery size or increase time on battery power.

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

Nice to see such efforts still going on.

As to if it's needed, a long time ago we had this GPS tracker and it run on a slimmed down Linux but the code for the app was Java. There was a mini-web server component as well.

This was a long time before the JDK supplied a web server and memory was not exactly plentiful. I think the whole thing ran on 1 megabyte with a single core ARM CPU.

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

When I have what is usually a small task/function to create I don't always turn to the web but may just write it if it's trivial or check the fine manual. Some get offended if you tell them RTFM but there's so many functions ready to use today. Sometimes I'll cherry pick something from the Linux source code, the fine manual, Rosettacode and other places since what we do don't have to be entirely created anew.

Sometimes a new coder fresh out of school being taught that all code they submit must be their out creation has a rough few days until they learn that it's OK to check out prior solutions.

And yes, I did encounter a professor that trash talked Wikipedia, Rosettacode and more. Different environment, different views.

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

This would seem to be outdated today as most systems are online. If I were to create a course I'll look to Teachable or Udemy.

jnbgames.dev commented: I would suggest this would be extremally useful for local school systems! +0
rproffitt 2,701 https://5calls.org Moderator

Here's a good example where I'd turn to Rosettacode at https://rosettacode.org/wiki/Number_names
There are over 91 implementations of this task in almost all the computer languages we have today.

jnbgames.dev commented: I would say that mine is more detailed and general than the Rosettacode example. But good point, thank you for sharing! +0
rproffitt 2,701 https://5calls.org Moderator

Sorry Dani, if folk must be spoon fed they need to outsource the work.

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

Small world. While there's a problem with VB6 being decades old an app I wrote is barcode scanner compatible. The barcode reader is just like someone that typed what's in the barcode into a text box and pressed the enter key.

I made nearly zero code changes to the app and the barcode reader works great.

I have to ask, did you test your app with the barcode reader? Sometimes folk ask without having a barcode reader to test with.

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

Looking at https://rosettacode.org/wiki/Perfect_numbers#C I wonder if line 154 needs a change.

jnbgames.dev commented: Great point! I took a different approach in my code; instead of having a max value, I used just the number N to loop for divisors. +0
rproffitt 2,701 https://5calls.org Moderator

This is now the classic "dead PC." For such the method or process is when you can't tell what failed is to strip it all down to the least number of parts and see if it will power up. We are not looking to boot any OS, maybe not even a video display. If there was no fan spin on the CPU I go for fan spin. If there was fan spin I go for beeps. If you don't have a motherboard speaker you get one and plug it in.

At the lowest number of parts we have no case, the motherboard on cardboard, the power supply, CPU, no RAM and HSF and the speaker. For about 99.99% of the machines out there, this will beep in protest. If it beeps then we can power down and add one part until we add a part that blocks the power up and beeping.

If there are no beeps and no power up then we are looking at the bad part or parts. You swapped the PSU so that would mean the motherboard or CPU has a problem.

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

Nice. I'm a fan of Grate Artiste! Why not put your works up on the usual sites and add that to your Daniweb Profile?

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

If Adguard does not resolve then it's doing exactly what it intended. The site or content remains blocked.

In my view, it's not broken but working as they intended. You may want something else here. I'll go ahead and share I use just a few things. If the browser has an adblocker, I use that. I did add Ublock Origin as well. I can't guess how far you need to go here as to advert blocking.
Daniweb only gets a few blocked items. Such as:

filter logger content

10:29:56​​​www.daniweb.com​1​xhr​https://www.daniweb.com/connect/ajax/sidebar/notifications
10:29:38​​​docs.google.com​0,1​script​https://docs.google.com/static/offline/client/js/33895200-offline_sw_bin_offline_main.js
10:29:38​​​docs.google.com​0,1​script​https://docs.google.com/offline/common/serviceworker.js?ouid=ubdcbb7128fc4a60e&oucvi=true
10:29:37​​​docs.google.com​0,1​xhr​https://clients6.google.com/batch/drive/v2internal?%24ct=multipart%2Fmixed%3B%20boundary%3D%22%3D%3D%3D%3D%3D68l4kw6dsjpb%3D%3D%3D%3D%3D%22&key=AIzaSyDrRZPb_oNAJLpNm167axWK5i85cuYG_HQ
10:29:36​​​docs.google.com​0,1​xhr​https://clients6.google.com/drive/v2internal/changes/getRemainingCount?openDrive=false&reason=301&syncType=0&errorRecovery=false&pageToken=48861&key=AIzaSyDrRZPb_oNAJLpNm167axWK5i85cuYG_HQ

Again, it seems Adguard is working fine.

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

From https://www.reddit.com/r/ProgrammerHumor/comments/wupbvb/python_runtime/
image_2022-08-22_115014356.png

As time passed it looked to me that Python evolved past a C framework.

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

I won't write much about this but the short version is that many sites won't load if you block too much.

If you want to dig into why sites don't load that's going to be you doing that work, I can't write more because each site differs on what you must allow for the site to function.

nightfancy commented: It seems, as a DNS server, adguardhome can't resolve the domain alone. is this right? +0
uzzalhossen36 commented: I am a Professional SEO Expert +0
rproffitt 2,701 https://5calls.org Moderator
  1. The bug was transitory.
  2. The example is to show what Daniweb does with attached code. This is On Topic since OP was having troubles sharing code.
  3. Said code was PHP. Why was it this file? Because it was the file I had on hand and top of the list when I went to find a file to show as example.
  4. Now who's pushing the line around on what's related/unrelated/keep it organized?
rproffitt 2,701 https://5calls.org Moderator

So when I show an example of an attached PHP file, and the OP is having trouble posting code that's a keep it organized problem? Some days I can't keep up!

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

Seems to be easy to find this one. Try https://www.goeduhub.com/5230/design-develop-implement-menu-driven-program-following-array

Hope it's not homework.

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

Where's the code?

In vb.net if I want to get a property's value or text the code would look like (remember I can't write code for you given no code above and besides it's your app) :
valueofProperty.Text = My_Usercontrol1.Text

Remember it's English so I might have that reversed but I can't tell what you want here due to a lack of code and what you want it to do which the button is clicked. We're talking about a single line of code to be written so it can't be that hard.

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

This is a very incomplete question. I'd write more but don't want to insult anyone today.

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

Or attach it as a file?
PS. For the curious, this was a file Daniweb was sending me when I clicked on "Read" on the top bar. Guess I caught Daniweb when it was behaving oddly.

Dani commented: Keep It Organized: Do not hijack someone else's topic with something completely unrelated -8
rproffitt 2,701 https://5calls.org Moderator

I'm too seasoned to go commando like that!

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

I have to ask. What IDE are you using? I like using IDEs that have syntax checking.
Example: https://www.activestate.com/products/komodo-ide/

Why do I use such things? Over the years I find myself writing in language after language and while I've written in what must be over a dozen (much more than that!) there's no way I will burden myself by using say Windows Notepad and go without a good IDE that does syntax checking.

Not only that, there are good free IDEs that do this today.

So what are you using?

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

I can't find an authoritative answer but it has been said such comes from Opera's own servers.
"So, there are https addresses for .jpe images hosted on Opera servers. If I edit this bookmarks file and replace a .jpe address with another image, when I launch Opera the replaced thumbnail doesn't change."

But to make it more confusing I made a new Speed Dial entry and it became a preview of what's at that link.
This rabbit hole is something I'll stop going down for now.

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

It was autogenerated when I saved the link in Opera. I don't know the mechanics there but my guess would be favicon?

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

Let me show you the start page of a browser looks like for me:
image_2022-08-19_161823383.png
A few you may recognize. TechRepublic bought up the C|NET forums which bought up MSN forums which bought up GEnie forums so that's my Ship of Theseus. Dgstats is where I can see recent solar installs in California as I do discuss rooftop solar over in r/solar. Imgur because that's how you post/share images on Reddit and elsewhere but strangely not here.

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

At the top of the DANIWEB editor, look for </> which is third from the left. Works for me.

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

Everybody is wired differently.

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

Same here. https://www.daniweb.com/articles/latest?sort=latest for me too. Everytime I look at the daniweb.com I think of Leslie Nelson when he says "Nothing to see here, please disperse."

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

Dani shared her garage cleanup somewhere and it did look nice. A lot has happened since then so maybe it's gone from the memory banks.

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

On the plus side, 1000+ new members!

Should I top post about my Lenny phone bot? I got tired of the spam calls so I looked at call attendant systems but for home use there are few less than hundreds of dollars. So I settled on Lenny.

I have the bathroom to finish up then maybe hire Dani to help with my garage (amazing job there) but I bet I'll have to deal with that and my office on my own.

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

How's your effort going as to joining their developer team? https://www.daniweb.com/programming/databases/threads/538221/how-do-you-join-the-open-source-database-community-to-contribute#post2286457

Given the troubles you have with OpenGauss, I'm not impressed at all. I'll stick with MySQL thank you.

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

I think the API approach was covered so I offer the free workaround so they are aware of how you get around such things.

My first real world use was decades ago in early PC days. The IT group would charge "connection time" so we programmed up a PC as a terminal and the program would login, press the keys for the human and get the data entered in about 10% or less time than a human. Big cost savings to our department. The IT group wanted to block such use but failed. We would just program up the app to deal with their changes. Weird days.

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

It's key pressing. I've used AutoHotKey for a very long time to automate work.
As to sending mass messages, we can automate keypresses to get a job done when there is no API.

On Apple you would use Automator for example.

AutoHotKey has a file that is plain text, ends with .AHK so a script could write the needed commands to the .AHK file, load that file and a timer in the AHK autofire the needed sequence.

It's a fairly easy system to learn too. No third party required.

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

What if you didn't use or develop a protocol? What if you automated the keystrokes with say AutoHotKey or your own app? Now it looks like you typing on the keyboard. Whatsapp is here on my PC on Opera so yup, very easy to automate but thankfully not easy for script-kiddies.

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

What is "the circle"?

奇_925 commented: I mean that "the circle" is just like a group of classes +0
rproffitt 2,701 https://5calls.org Moderator

Better than 1990's TV.

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

Little late here but the few times we needed to range limit values we did so with encapsulation.
Tutorial at https://www.w3schools.com/cpp/cpp_encapsulation.asp

In the get or set we could customize the range limit or almost any effect we required.

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

I have yet to see such a feature. https://kb.iu.edu/d/aews tells me it's just one more command line to securely copy in your key.

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

This would be a great place to start your contributions that you asked about at https://www.daniweb.com/programming/databases/threads/538221/how-do-you-join-the-open-source-database-community-to-contribute#post2286457

Dig into the source code to learn how their code works and why this happens.

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

What part is untrue?

Early PHP was not intended to be a new programming language, and grew organically, with Lerdorf noting in retrospect: "I don't know how to stop it, there was never any intent to write a programming language [...] I have absolutely no idea how to write a programming language, I just kept adding the next logical step on the way."[18] A development team began to form and, after months of work and beta testing, officially released PHP/FI 2 in November 1997.