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

Let me comment it's been over a decade since I tried a DirectX library for Visual Basic 6 BUT it did help. I bought said library, book and CD at some technical book store sometime in the years 2000 to 2005. I can't recall what it's title was but it did tap what juice DirectX could offer and was 10 to 100 times faster than raw VB6.

Other thoughts.

  1. DirectX tutorials are out there such as https://gamedev.net/forums/topic/430026-directx-with-visual-basic-6/430026/
  2. If a code area is slow, I used my thoughts about how things work. That is, if I need the array size then I precompute that outside the heavy loops.
  3. If sin() and cos() are used I would precompute a lookup table. However I don't do that on PCs anymore since most PCs are GHz and more so the speed payoff isn't as much as it used to be. Story time: This was back in the 1990's and folk were impressed with this trick's performance boost which was on the order of 100 times.
  4. If you are doing graphic work, demand a dedicated graphics card. No matter which Intel/AMD with onboard graphics, all were many times slower than dedicated graphics.
rproffitt 2,701 https://5calls.org Moderator

I may have an advantage since I was researching mRNA vaccines in February 2020 for stock investment purposes.

I'll note that back then three companies had the mRNA vaccine "blueprint" and samples so the work has been going on for longer than most know.

mRNA vaccines have been in development for a very long time. 1989 is noted at https://en.wikipedia.org/wiki/RNA_vaccine

I disagree with articles calling this "new."

My brother participated in the trials and I'll take it when available.

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

I'm going to write you may have left out why you are not using UBound() and LBound(). Maybe the array is uninitialized but you failed to reveal that and this is your real question about how to handle that.

Read https://www.daniweb.com/programming/software-development/threads/233842/try-catch-feature-for-vb6-vba-vbscript where the On Error is mentioned along with a Try Catch solution to handle a failed U or L Bound().

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

If you are obtaining a dataset then the supplier should answer what you may use it for. (AKA usage rights.)

This from Wikipedia as we go down the rabbit hole:

Some images may contain trademarked logos incidentally (or purposely if the image is either freely licensed, covered under freedom of panorama, or being too simple to be copyrightable). If this is the case, please tag it with {{trademark}}. Copyrighted elements may also be present in de minimis in photographs, where the copyrighted element is visible but not the focus of the photograph. In such cases, de minimis copyrighted elements do not affect the copyright of the photograph; such a photo may still be licensed freely. For example, a photograph of Times Square can be considered free despite the numerous advertising signs in sight, as these ads are considered to be de minimis.

  • Wikipedia.

Why I posted that is because cars often have trademarked logos. Also because of new laws coming along with the acts I noted above it has become even more complicated. Again some will dismiss this, others will be in other countries so US law does not apply.

-> I can't guess what your final site will be like but have you considered what other sites like cars.com do for car photos? They have some stock ones for many and then take photos of the ones for sale which up until this new law was a non-issue.

You might want to drop an email …

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

This just in. https://www.commondreams.org/news/2020/12/21/atrocious-congress-crams-language-criminalize-online-streaming-meme-sharing-5500#

It appears the rules are changing.

As The Verge's Makena Kelly reported:

The CASE Act would create a quasi-judicial tribunal of "Copyright Claims Officers" who would work to resolve infringement claims. As outlined in the bill, copyright holders could be awarded up to $30,000 if they find their creative work being shared online.

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

As to the Programmable web, you have to check their use policy. You see some of the copyrights and more called out at https://www.kaggle.com/terms

At https://www.programmableweb.com/terms you see they absolve themselves of this issue and more.

Remember I only bring this up since a few I know didn't listen, got hit with a takedown notice and had to re-do a lot of their site. If they had done their homework up front about all this, maybe they wouldn't have lost all those months of work. Then again one of the lot was in full denial that images could be copyrighted.

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

Not really. While I have used a few WAMPs and LAMPs, all have me configure MySQL and the other items. I get the feeling you want the WAMP to do all this for you but that's not really possible since any decent MySQL must have us setup users and passwords. Otherwise folk might install such things without any security.

Again, all the WAMPs and LAMPs I've used over the years worked fine but not one has us skip learning how to configure.

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

That's a tough one because many images have copyright issues so you have to pay for some rights (along with the images) or build your own. I know folk that just scraped the webs for such images only to learn later with a takedown order from the image owners.

Here's a nod to https://www.google.com/search?&q=open+source+car+images but be sure to read the usage limitations when you look at these.

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

There is no close button noted at https://www.tutorialspoint.com/wxpython/wx_dialog_class.htm
Either that or you meant only that top right X? I can't tell from your post.

Given only what you wrote so far I am guessing you want no buttons at all. Try:
wx.MessageBox('Nothing to see here.', ' ',0)

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

Find out which MySQL you have and read https://www.tutorialspoint.com/how-to-resolve-the-error-1115-42000-unknown-character-set-utf8mb4
That tutorial shows how to show the version and character sets.

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

Looking at the source I see HTML and Javascript.

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

Tambola is another name for the game of Bingo, Housey, or Housie.

  • Wikipedia

Also, how would getting us to supply you code help with your exam? You would be saddled with someone else's code and unable to stand up to a code reveiw since it wasn't your work.

If you are stuck on something specific, share what that is with examples so that can be addressed.

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

Sure. Here's one at https://gist.github.com/AhmedEid1995/5b983a984ee9c61dc95f

Not sure how that could be used for an exam but hey, code!

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

Ahh, maybe you forgot to set and config the password in MySQL and phpMyAdmin?

https://www.google.com/search?&q=phpmyadmin+config+mysql+password finds many priors so I stop here.

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

Try 9.1.1 from https://github.com/microsoft/mssql-jdbc/releases .

There are no easy words since you are on a very old SQL Server, the newest (AFAIK) Java so you install what appears to support Java 11 and test.

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

I don't see your followup question here. What I got via email was:

what does the compiler do with images, files and sound fragments. Do they come in a separate file and are installed on the client pc?

There are many tutorials on this so I'll note http://www.csharp411.com/embedded-image-resources/ which is one place the resource could be. There's code to test if it's in that area. I'll also note in passing tools that let us explore the usual EXE and DLL files.
https://www.mitec.cz/exe.html
http://www.pe-explorer.com/

I'm sticking with my short answer here that such is "compiled into" the app's EXE and DLL files. That said a commercial app I did long ago externalized the resources so the company could change the logo bitmap without having to edit the EXE or DLL or contracting me to issue a new version of the app. Again, this goes beyond my short answer so I pause here.

andre.jonker commented: thank you for your answer and tutorails, now everything is clear +0
rproffitt 2,701 https://5calls.org Moderator

No big plans. We are keeping our bubble intact but I will pick up a turkey and more to make a Christmas dinner.

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

http://www.uwamp.com/en/ shows it has MySQL. I can't guess how you installed it or what options. See the image at
http://www.uwamp.com/en/images/screen_1.png and right there is where you select which MySQL you want.

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

Tell us what you mean by setup. I see UwAMP already packed in MySQL.

WampServer refers to a solution stack for the Microsoft Windows operating system, created by Romain Bourdon and consisting of the Apache web server, OpenSSL for SSL support, MySQL database and PHP programming language. Wikipedia

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

Remember what you mix something very old and new you end up having to test to see if it works.

https://github.com/microsoft/mssql-jdbc/releases has me write to try 9.1.1 since Java 15 support was only added in 9.1.0.

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

The resources are compiled into the app if we are talking about the usual Visual Studio C# system.

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

As you've heard before: Show your work. Explain what the issue is.

Also, I have doubt about the "pure" part. Did you posit this would not use any libraries or graphics?

PS. Also, it's been done before. I looked at https://github.com/fjsj/programming-challenges/blob/master/Minesweeper.c

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

As you've heard before: Show your work. Explain what the issue is.

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

Think about how you do this now. Then automate that in your backend. Remember that ideas about this are within easy reach i.e. research so I won't duplicate that here but note the usual how I tackled such in the past.

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

Since you know each php set of code works why didn't you merge the two? Remember I take it you are a programmer since you didn't put this out as a for hire piece of work.

For example, in your database.php code, at line 27 you have your database updated so at that point you insert the relevant code (with changes to variable names if need be) from your email.php.

Remember I don't know folk's skill levels or expectations unless they call it out. But it appears you have all the code you need right now. You only need to create a new do-it-all both log to the database (you got that) then after line 27 in database.php perform the email steps from email.php.

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

I wonder if you are stuck on the idea of simultaneously. For most of us, doing one thing then doing the next thing will do nicely.

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

This area is well done. But there is no fitting answer because we don't know what email services your web host provides. Reveal a bit more about the web site hosting so I can check them out.

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

Just for fun I put something similar in to the online compiler at https://godbolt.org
I set the code type to C and the output to MIPS. Example follows:

// Note that If is now if.
int  f (int a, int b, int c, int d) {
    if ((a + b) > (c + d))
        return (a + b);
    return  (c + d);
}

int main() {
    int i;
    i = f (1,2,3,4);
}

And the resulting MIPS assembler output is:

f(int, int, int, int):
        daddiu  $sp,$sp,-32
        sd      $fp,24($sp)
        move    $fp,$sp
        move    $8,$4
        move    $4,$5
        move    $3,$6
        move    $2,$7
        sll     $5,$8,0
        sw      $5,0($fp)
        sll     $4,$4,0
        sw      $4,4($fp)
        sll     $3,$3,0
        sw      $3,8($fp)
        sll     $2,$2,0
        sw      $2,12($fp)
        lw      $3,0($fp)
        lw      $2,4($fp)
        addu    $2,$3,$2
        move    $3,$2
        lw      $4,8($fp)
        lw      $2,12($fp)
        addu    $2,$4,$2
        slt     $2,$2,$3
        beq     $2,$0,.L2
        nop

        lw      $3,0($fp)
        lw      $2,4($fp)
        addu    $2,$3,$2
        b       .L3
        nop

.L2:
        lw      $3,8($fp)
        lw      $2,12($fp)
        addu    $2,$3,$2
.L3:
        move    $sp,$fp
        ld      $fp,24($sp)
        daddiu  $sp,$sp,32
        j       $31
        nop

main:
        daddiu  $sp,$sp,-48
        sd      $31,40($sp)
        sd      $fp,32($sp)
        sd      $28,24($sp)
        move    $fp,$sp
        lui     $28,%hi(%neg(%gp_rel(main)))
        daddu   $28,$28,$25
        daddiu  $28,$28,%lo(%neg(%gp_rel(main)))
        li      $7,4                        # 0x4
        li      $6,3                        # 0x3
        li      $5,2                        # 0x2
        li      $4,1                        # 0x1
        ld      $2,%got_disp(f(int, int, int, int))($28)
        move    $25,$2
        nop

        sw      $2,0($fp)
        move    $2,$0
        move    $sp,$fp
        ld      $31,40($sp)
        ld      $fp,32($sp)
        ld      $28,24($sp)
        daddiu  $sp,$sp,48
        j       $31
        nop
rproffitt 2,701 https://5calls.org Moderator

The last MIPS project we had at the office used a C compiler so there would be little to no changes.

Maybe you wanted something else but didn't ask. Also, the MIPS C compiler would create an assembler file if need be.

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

So why not https://www.tiny.cloud/docs/integrations/wordpress/ then show your clients your work and see what they think?

It doesn't matter what I think as I'm going to say "Oh great, another editor."

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

Hello again!

OK, for that APU we always make sure the RAM is dual channel as the graphics and more take a double digit loss when it's single channel.

As to over speed, we eject all the old HDDs and slip in the new light-speed-engines called Solid State Drives (SSD.)

Small world it is, I just worked over a neighbor's i3 desktop and the HDD was one of those slugs. Boot time was about 45 minutes and after the change and clean install of the OS is now just under 21 seconds.

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

Here we are primarily an English forum Google Translate offers me this:

The software writes me an error on the word
strndup
Maybe someone knows if this varies in versions of Visual Studio and how can this be arranged?

If I'm reading https://en.cppreference.com/w/c/experimental/dynamic/strndup correctly you are missing a few free() statements so the code as-is is broken.

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

You omitted make, model and year made. Even so, it appears it's not one and done. That is, you may not find a ready to use distro where you install and use it.

Examples abound at https://www.google.com/search?&q=Z3735F+linux+touchscreen+support

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

Why not use the Max() function at https://www.freepascal.org/docs-html/current/rtl/math/max.html

Also why use else statements? Here's a straight line brute force solution.

Try: (psuedo code follows)

max := a
if (b>max) then max:=b
If (c>max) then max:=c

writeln('the highest is ', max);

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

I'd start with www.google.com/search?&q=API+for+Deepfake

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

Hold up. You want examples in FIVE languages? That's a bit of work so pick one language then supply your coding attempt for all to see what can be done.

Even so, everyone I know heavily discourages any new work in visual-basic-6.

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

Here's a short bit from the web about Powershell oddities in this regard:

  • backtick to escape instead of \
  • regex must be in "double quotes"
  • must either use single quotes or escapes to have capture groups work in the replacement string

There may be more but my answer is yes that powershell may not match regex101. Either make a cheat sheet of how powershell differs or search out more about how powershell differs.

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

I don't see how to condense all you would need to know in this space. Looking at https://pythoninchemistry.org it appears you spend quite a few months working at this.

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

New or not, when you approach a problem that seems too big, make it smaller. Don't worry about reading 50 files right now. Start with 1 and then grow the solution as you learn.

And again, break down the problem to manageable steps. Don't try to read 10 lines, just learn how to open the file, read a single line and print that on the screen. Now you can research how to write that line to a file.

Keep expanding your skills and knowledge as you grow your solution. If you are stuck, then share your code, explain what isn't working for all to see and comment.

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

If I were to setup a VR rig I'd look at Half-Life: Alyx. YouTube where a teacher used it: https://www.youtube.com/watch?v=R3g9jrqjOZs

Not sure if you can pick and choose your experience there but hey, looks great.

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

Folk I know think of them as cannon fodder and while it's an industry, is it a good industry?

Can you do this and pay your rent, buy a home, send your kids to college or does your income evaporate with a change by Google, Amazon, Facebook, etc?

And do they offer added value? Do they help you configure the widget, wongle, or whatever it is? If not, not much if any value to me.

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

Regarding being a non-producer. There's a biblical reference I could offer here but if they dont' add value then they are often relegated to being treated like the money changers in the temples.

Another view is from Benny Hill if we want a more comedic angle which is "cut out the middle man." If we are buying from a reseller, then we are paying a middleman and all too often going to be added to some email spam list.

To mfasetu, what value are you adding?

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

I must say that not much has changed since that was last asked. But as to the mobile app I see folk have tired of installing an app specific to a company. My advice is to make sure your web site is mobile friendly.

Finally, what good is that traffic without sales? Are you spending your time making the best product you can or are you yet another reseller of plastic?

Dani commented: Not relevant to his question. -8
rproffitt 2,701 https://5calls.org Moderator

Rather than PHP you could entertain pushing the data around on the other side. Here's a tutorial: https://www.tutorialrepublic.com/javascript-tutorial/javascript-cookies.php

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

My thought here is to fix what you have. As you are the author of the PHP what do you think is the problem?
Is it some code that is failing?
Why not fix that?

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

I've been told it's important that students must become self-motivating and take charge of their learning.

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

This may vary with some hosting plans but as I read https://answers.uillinois.edu/illinois/page.php?id=91468 it looks complete enough for most webmasters.

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

There are so many today. Many are free. Even I can get the community version of Visual Studio for free and on Linux, so many, and it's been a year but Apple issues a free development kit with ... code editor.

I would have to guess why you asked. Tell more.

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

I'd start with tutorials. Almost every tutorial at some point ends up with you having to write an application.