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

I may misunderstand your query but to me this looks like two steps.

  1. Convert the string to lowercase. Example: https://thispointer.com/converting-a-string-to-upper-lower-case-in-c-using-stl-boost-library/
  2. See if the word (string) is in the string. Example: https://www.cplusplus.com/reference/cstring/
rproffitt 2,701 https://5calls.org Moderator

Then hack at it using nothing but variables. remember that I can't supply you code according to the assignment. This will look terrible and is a very bad way to learn coding IMO. Frankly if it was my assignment I would code it with what I know and challenge the prof that learning this is teaching bad programming habits.

Reverend Jim commented: You know what they say. Malpractice makes malperfect. +15
rproffitt 2,701 https://5calls.org Moderator
  1. "You did not copy your friends’ codes and you do not let them copy your codes."
  2. I see no mention we can't use arrays or functions.

Since no one here can give you code, let's hear where you are stuck along with my question which is why can't we use arrays and functions.

Khairunnisa_2 commented: I don't learn array yet..my lecturer doesn't teach me yet that why i cannot use it +0
rproffitt 2,701 https://5calls.org Moderator

Last year we ended all support of our last VB6 apps. The signs are clear you no longer make any new apps in this now problematic but loved system.
Since it's a new app, time to pull forward to systems you can find today.

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

I've noticed that the Reddits I participate in have bots that auto-delete shortened URLs. As such I can't use them.

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

I get it now. Much of the site is tuned for SEO. I don't know why I keep forgetting that. Marking as solved.

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

Thanks Dani, you made me chuckle. I don't have a problem with you. The front page as you stated is only for regulars.

Where are those Recommended feeds?
Also, that Related Topics is always stale. Right now top item is from 8 years ago.

In all seriousness the reason I asked above is that it looks buggy to those I show this site to. I have to remember to log out before I show them the site.

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

Thanks for the great topic.

I took to electronics in the 60's and wrote some code in 1973 for the old GE-210/310 or similar during the last year of high school. Off to college and took some PL/1 and Fortran. Later landed a job in the defense industry which let me explore a lot of embedded design which was fairly new at that time. Fortunate to be on a microprocessor design team and so much more. So many stories over the years but that was my start which was pre-PC so I got to live the entire story of chips to today's computers and more.

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

There are some hundred plus Dell XPS desktop models. However if you feel yours had TPM 2.0 before the repair then you call up the repair company and ask for them to fix it right.
Since the full model is missing here I can't check what TPM it might have.

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

The front page seems to fill with duplicates. I'll paste what I'm seeing but here I am again finding the front page a place that I only check out to see if there's been any change for the better. Today, it's a reminder why I don't go there.
Examples:
image_2022-05-03_095315145.png
image_2022-05-03_095241769.png

rproffitt 2,701 https://5calls.org Moderator
  1. Turning red. "Nothing to see here, move along." Example prior: https://www.reddit.com/r/Amd/comments/ioiyjl/ryzen_master_cpu_power_turning_red_should_i_be/
  2. You omitted the motherboard make, model, revision and BIOS version.
  3. I always update the BIOS prior to a CPU change.
  4. After the CPU change we take the BIOS to defaults and work the settings. NO ONE CAN TELL YOU WHICH BIOS SETTINGS TO USE as there are too many variables such as if your motherboard, RAM and such may not support all possible settings. If you don't want to deal with this area, stick to defaults and if you suspect the defaults to be an issue you make a warranty or support claim to the motherboard maker.
  5. No mention of fresh heatsink compound. NEVER take a good temperature reading that this is not an issue.
  6. No mention if you are running the same install of the OS. Due to how Windows and drivers work today, you can't count on Windows to survive a CPU change.
  7. In spite of item 6 I have had success by updates of the BIOS, taking BIOS defaults then updates of the drivers for the system. NO "update driver" button or apps are used, ever since these are too unreliable. Updates are gathered from the maker then installed.
  8. Still crashing, make a warranty and support claim to the maker.
  9. Again, BIOS update: Example: https://www.quora.com/Does-a-B450M-DS3H-work-with-Ryzen-5-5600X You omitted the exact motherboard so you get back to the maker's website to check compatibility as well as get then install that BIOS update.
  10. Some fear BIOS …
rproffitt 2,701 https://5calls.org Moderator

A quick look sees unbalanced curly braces. But that's not important right now.

staffTWB is a structure and not an instance of the object.
See https://www.guru99.com/cpp-structures.html

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

So what do you think about Ole Musky's purchase?

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

With 66 solutions at https://rosettacode.org/wiki/Word_frequency it shouldn't be too hard to output the words with more than one instance.

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

https://www.w3schools.com/php/func_mail_mail.asp gives me a few ideas.

  1. /n vs /r/n
  2. Echo your strings before line 54 to verify what each item is.
  3. Use simple code that works before moving up to your full app.
rproffitt 2,701 https://5calls.org Moderator

No it doesn't. Our office is mainly embedded (no OS at all!) followed by Android and Windows apps. iOS was never a possibility because Apple decided to not include serial comms in their Bluetooth stack. That rather shortsighted decision meant we could never use any Apple product that ran iOS.

Also, Apple's DRACONIAN control over apps gave us a second reason why we never developed for any Apple product. Apple from our view was unfriendly to developers as well as RENT SEEKING. Just try to put an app up for free for iOS. Can't be done.

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

Having worked on projects that demanded ISO (pick a number) I came away with the view these are great ideas that you don't have to absolutely implement unless it's part of your contract or your sales depend on getting the certs. These certs cost money and why have certs you don't need.
Also, 14001 is one of over a dozen certs in the ISO 14000 suite. Why just this one? If you don't know, you don't need it.

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

My bet is the VB code is dependent on the OS so what you may get to reuse is the concepts/design which is valuable when going to another design.

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

I'd use the dev kit from Google. However the Apple approach may be to let Siri do the work. Example: https://www.howtogeek.com/725103/how-to-set-a-default-music-app-on-iphone-and-ipad/ where you say Siri, play Baby Shark in Carl's mp3 player.

For Android I'd integrate with Google Assistant noted at https://developers.google.com/assistant

Unless I misread that you already have your own voice command routines good to go.

PS. Apple has it's own free devkit so a nod to that as well as finding tutorials such as https://blog.appnation.co/add-siri-support-to-your-ios-app-in-minutes-using-swift-86970322286 Mind you that on both platforms I find getting the app into the Apple and Google store is a discussion you have all on its own.

Carl_17 commented: I do have a working speech controlled MP3 player written in VB, so I have some possibly re-usable code... +0
rproffitt 2,701 https://5calls.org Moderator

I had the code from internet

I'm at a loss why you would copy code from others and then use that as your term paper. But hey, there's a thriving business in selling term papers so maybe I'm out of touch of how college works today.

Back to the top. If I wrote it and explained it then you used that and defended it, it would not be your work and where is the lesson? Is that what they teach today?

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

Let me take the 40+ examples at rosettacode and posit that there is no correct way to write this or almost any function or app.

It's YOUR CODE. No one can guess what the review will look like but think back to all the other code that was reviewed. Did you learn what the prof's were looking for? Did you take these lessons and apply them to this code?

Валенти commented: I had the code from internet +0
rproffitt 2,701 https://5calls.org Moderator

You need to keep studying but hey, https://rosettacode.org/wiki/Minesweeper_game has over 40 implementations of Minesweeper for you to look and see how many others coded that up.

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

I see no reason to write this. https://www.numerade.com/ask/question/write-c-program-that-asks-the-user-to-enter-the-number-of-rooms-in-house-for-cach-room-the-user-must-be-prompted-to-enter-the-following-details-of-each-room-to-be-stored-as-attributcs-of-thc-79362/ for example appears to have it completed.

Maybe this is homework, maybe it's not but I can't tell from your writing so far.

If it is homework, avoid demands that others write it and tell what where you are stuck. Then we can discuss that.

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

Can you clarify your question? Visual Studio was correct to call out that line 2. It's incorrect for more than one reason.

Do we need to discuss the two reasons why Visual Studio called this out?
Or did you need this in some other development system?

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

OK, so I cheated and made a little test. I pressed Ctrl+H then Alt+2 and finally Ctrl+H and had no black bars. I guess we could gen up a script in Autohotkey to do this.

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

I apologize Jim. It was a long day and I whiffed the first reply. Afterwards I played around in VLC in it's deeper settings and could not find a way to achieve what you are asking for without unchecking the maintain aspect ratio. Now there is a rather long too much work than I'll bother with solution and that would be to write a pseudo video player that inspects the video details and then calls up VLC with the x and y size via command line or maybe the VLC API. I see a lot of the API at https://www.olivieraubert.net/vlc/python-ctypes/doc/vlc.MediaPlayer-class.html

But built into VLC? Nope. I fear the answer is a Python wrapper to query the video details and then play it with your selected preferences since it's not automatic in VLC.

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

You write x86 but that looks like x88 to me. Also, wrong register for x86.
Read https://www.aldeid.com/wiki/X86-assembly/Instructions/div

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

Check or uncheck the maintain aspect ratio?

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

I went down the rabbit hole. Sorry.

What about "Fit video to Player on Resize." Selecting "Fit video to Player on Resize" will automatically make the video fit the Media Player window.

Besides that there is some lock and unlock on aspect ratio.

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

Did you play around with interactive zoom? https://www.digitional.com/how-to-enable-interactive-zoom-in-vlc-player/ for example.

Might have to work the Crop too: See https://i.stack.imgur.com/REzY8.png

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

Thank you Dani for all this and more. Black Hat SEO is what I'm reading and how Google has a tripwire that if they are found out then it's game over.
-> Seems like it's time to forget that and find ways to get your SEO game on "inside the rules."

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

Thanks for putting your YouTube channel in your profile.

I have to ask: Why would we want to stay under the radar?
Is there something shady going on with PBNs?

AndersLarsson commented: What I mean by staying under the radar is doing things that will be detected by the Algorithm as a manipulation of ranking a website. +0
rproffitt 2,701 https://5calls.org Moderator

Here's the search I used to find examples: https://www.google.com/search?q=alphablend+bitmap+in+c%2B%2B

I can't guess why I'd write such today as I'd use a graphics library since, well, because I see no need to rewrite such or create what I consider a wheel. I bolt on wheels and functions today. Is there more to your story?

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

I've been on a few embedded MIPS dev teams. We used a C compiler. What little we did in assembly was to account for changes from the supplied BSP (board support package) to accommodate our custom board.

It's possible you are posting homework here and didn't tell so I'll take this as an honest question and share how we compiled C code to run on our MIPS boards.

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

Besides the fact we don't do your homework it matters which OS this runs on. The code to fork varies from Windows, Linux, BSD, Android, MacOS, AmigaOS and all the rest. My advice is to share what platform this is on and supply the code passage you are having trouble with along with what you think is wrong.

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

I don't see any code here. Maybe you are asking for code but it's unclear here as the tags don't mention what language you are using as well as you didn't supply the code you've written along with what stopped you.

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

It appears no one can answer for many reasons. No one can guess if you are using the nice visual AWS Glue Studio or you were trying to do this in hard core script. If you were trying to do this in script you would share the script for all to see. Frankly I'd stick to AWS Glue Studio.

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

The solution was to stay on Windows 8.1. No one was able to get Windows 10 installed on that old laptop.

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

Small world. There was a recent reddit on that and the conclusion was that the laptop was incompatible with Windows 10. The final advice was to run Windows 8 till the laptop dies. Said laptop was over 10 years old so it's not going to last much longer.

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

You commented it didn't work but didn't tell much more. Anyhow there are reasons it should not work. The #1 reason would be permissions or an ACL (access control list) restriction. As you are a programmer on Windows you must know about these topics. The restriction on the ACL has been around for a few decades. Example: https://www.techrepublic.com/forums/discussions/how-to-deny-create-folder-on-root-c/

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

There's a Reddit on that. What I've read is that Windows Defender is fine.

But. There are folk that think that an antivirus could save them from their own behavior. That is, some download cracked software and are searching for protection from the possible ransomware or worse. The answer to that is there is no such protection app or antivirus that will save them.
Example: https://www.reddit.com/r/Windows10/comments/neibhu/hi_windows_10_users_which_antivirus_software_do/

And because of recent global events, don't consider that AV from Russia.

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

This may be good news as no one I know will install that title. Get a refund and let's chat why you considered this rather awful antivirus.

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

That command could and should run into security issues. Besides why didn't you use the native vb6 mkdir code?
https://www.vbforums.com/showthread.php?415821-RESOLVED-How-do-you-create-a-folder-in-vb6 for example.

new2022 commented: I tried this way but it doesn't work +0
rproffitt 2,701 https://5calls.org Moderator

Why should it work on your system? I've worked with Bluetooth for decades now (apps for our company) and when it came to PCs, over and over I'd get a support ticket then find the problematic PC didn't have Bluetooth or it was disabled.
In your case there is so much to investigate that I am not able to supply a fix or do this. Get to that addon site and lodge a ticket to see what they offer.
-> It's not funny when I ask "What other apps are you running that use Bluetooth?" This question is just one of many where I am exploring the usual source of the failure. In your case you are the developer so you know to dig deeper.

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

That sounds incorrect. PHP code in some HTML file would not execute.
In short:

  1. HTML is what your web browser consumes.
  2. PHP runs back on said server, not in the web browser.
    Tutorial at https://www.instructables.com/How-to-Run-a-PHP-Script-With-Wamp-Server/
rproffitt 2,701 https://5calls.org Moderator

@James points out the other issue.

@OP, time to setup up your own projects folder. Also, get a decent IDE that won't rename your files to .txt

PS. Via EMAIL I find you may be using https://en.wikipedia.org/wiki/JCreator but you didn't leave your comment with that detail. Time to put your files in your own home/user folders.

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

If I were to bet there is no file called main.java
Many try to use the old Notepad and save the file as main.java but Notepad's saved file is actually "main.java.txt" which causes the file not found error.

  1. In Windows File Explorer be sure to display file extensions.
  2. Get a better editor or IDE.
Poweratgamer commented: this gets fixed when I uninstall/install the software again. but this prob always pops up after like 1 day +0