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

I don't expect errors on the form. The error when it happens when you run your app in Visual Studio will stop and well, I have to pause here and ask if you know Visual Studio well enough to run your code there and use its debug capabilities? Your answer to where you are in your training and what tutorial I may look up next.

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

Which line threw the error and when you examine that line, what were the variables you passed in?

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

This is a homework assignment so rarely will anyone write this for you. Instead we ask you to share what you have and tell us where you are stuck.

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

As I read https://www.w3schools.com/python/python_dictionaries.asp I worry that the limitations and restrictions may blow up how you think this works.

I see there are priors on reading CSV files so can you share your code so far and point out where you think the problems are?

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

Sure can do. I see 200 solutions for this at https://rosettacode.org/wiki/Greatest_element_of_a_list

I worry here. It seems you are not even trying to find solutions to your coding needs.

rproffitt 2,701 https://5calls.org Moderator
anas_abuhajar commented: it's good but i have many algorithms is this website going to help me? +0
rproffitt 2,701 https://5calls.org Moderator

The usual is we try it on another computer. I have yet to find a hub that is only for Apples (and USB.)

If it doesn't work elsewhere it's a warranty issue.

Be sure to use the cable it came with, then another cable and finally tell us what is plugged into said hub. I have encountered folk trying to run HDDs on USB hubs and they are mostly hairless.

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

This looks like homework. In fact I find many pages like https://www.cbseguess.com/ebooks/xii/computer_science1/constructors_destructors6.php which confirms this is your homework.

"This just appears to be a homework assignment. Please show your code of what you have so far and where you're stuck, so we can help you. We won't just do all of your work for you." is the common reply to posts with just homework.

Also, the rest of the code is missing so this alone does not tell what the lesson and assignment is trying to teach you.

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

That issue is usually hardware. There's not enough detail here to call out what it could be. And even with all the details I might have to write either a clean install of the OS or replace the motherboard. KEEP IN MIND THIS: In spite of this I will share what I would try next.

  1. Perform the usual canned air cleaning routine. Canned air, what is and how to use is on many web pages today.
  2. Be sure the laptop's fans are working like new.
  3. After 1 and 2, try a fresh install of the OS or running a Live OS from some USB stick as a test.
rproffitt 2,701 https://5calls.org Moderator

The pen doesn't seem to show the issue. But did make me write this reply over your text and box colors. The text in the boxes was unreadable.
Nod to https://www.htmlvalidator.com/htmlval/fontsandcolors.html

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

That's for you to write. Remember this is your assignment so let's see what you have so far along with where/what stopped you.

For example I would find it hard to believe you can't write the part about displaying the menu. Output of text is usually in the first few weeks.

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

You wrote in another discussion:

I suggest you to use some tools for that purpose like ahrefs and Moz.

Are you reporting these are not very good or something else? To me your post could be spam.

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

Let's see your work so far as well as you telling us where you are stuck. If you need to outsource this work, tell how much you are paying.

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

Please show your work so far but more importantly where or what has stopped you from completing your assignment.

mahmoud_37 commented: i can't do it could you help me to make this adrees book ? +0
rproffitt 2,701 https://5calls.org Moderator

PS. Remember that beyond my comment about Try+Catch you may have other issues to think about such as:

  1. Textbox and numbers. To put a number in a textbox you have to turn it back into a string. Example: TextBox.Text = somevariable.ToString
  2. Access of objects on other forms or in your case Tabs. To address this I asked you to perform a simple test with TextBox3.Text = TextBox1.Text so I can address that on its own.
vplay41 commented: Value from textBox3 = textBox4. textBox3 it is in tabPage1, textBox4 it is in tabPage2. TK +0
M.Lingo commented: Is this the Robert Proffitt who use to be a submarine captain? +0
rproffitt 2,701 https://5calls.org Moderator

The search continues. But when you get an error you head to the source which in this case is apertium.org

Next, consider what other companies do.

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

I read your post twice and wonder if you are telling us of your site problems or something else. Then I found https://www.behance.net/marilubray and it seems you are attempting to share what you think are common problems with some sites.

I suggest you work up a tutorial next time so it's clear what you are writing about.

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

Tell me what happens with simply:

TextBox3.Text = TextBox1.Text

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

Keeping in mind all the prior discussions about this I will not duplicate that here.

In short, look at "Offline, Desktop" at https://wiki.apertium.org/wiki/Installation

Saboor880 commented: apertium has two problems. I ran it and downloaded one language pair. After that when I clicked on Run button, following error occured: +3
rproffitt 2,701 https://5calls.org Moderator

I'd find tutorials about this. https://www.digitalocean.com/community/tutorials/js-modules-es6 for example.

Can you share what lead you to ask this?

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

Per your question in the last comment. Yes. I've used try/catch or similar in the languages mentioned so far.

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

First you appear to have mark this solved.

Second, you mention "output" a second time yet you neglect to share what the output was and share what you wanted the output to be.

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

"Does not generate the same random word twice."

Consider an array the size equal to the number of words. Start with.

  1. The array with the number 1 in array location 1 and so on till the end.
  2. Now shuffle the array. (Google shuffle an array for many prior discussions.)

For each game you increment a game counter and that is used to look up the next random word and there will be no duplicates.
Test for when you've exchausted your word count and then your choice to repeat step 1 and 2 or start at position 1.

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

Not something I'm familiar with but https://forum.sencha.com/forum/showthread.php?99649-SOLVED-JSON-response-with-keys-that-contain-quot-quot-hyphen-character-ref-error looks to mention this along with why and a possible fix.

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

Line 12 seems to input floats. But your reply now writes you can not get the exact output you wanted but didn't share what happened versus what you wanted.

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

Too many ways to figure this out.

  1. Take the file extension fo its word. MP3 is MP3, JPEG is JPEG, etc.
  2. Consider the Linux file command. https://man7.org/linux/man-pages/man1/file.1.html
  3. "files don't really have types." so you get to define what you are asking further.
rproffitt 2,701 https://5calls.org Moderator

I'm reading https://wiki.freepascal.org/mORMot and given the scope of it can't say what you are asking is too broad.
Did you need help with Pascal, Client-Server concepts or something else?

That is, I doubt there is a single tutorial that will encompass everything mentioned there.

Me? Spent a lot of years back on Turbo Pascal and then more elsewhere.

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

I wish this one had a do-this or simple answer. This question has so many dependencies that I would start with
https://social.msdn.microsoft.com/Forums/en-US/2467f505-331e-4149-a130-42c6b13d5528/the-system-cannot-find-the-file-specified-exception-from-hresult-0x80070002?forum=biztalkgeneral

Then research more priors since I read ten priors (then stopped) as I found ten different fixes. Your fix will be what it takes to fix yours.

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

I can't guess the complexity of the code or if this is some homework or assignment from your workplace.

Let me ask what is stopping you?

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

Per topic I see no database reference in the code.

But the error and line 1 would have me read https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.datagridview.currentrow?view=net-5.0 since how do you know what the currentrow is?

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

This one doesn't look too hard. Just some text, variables and logic. Why not start writing it in Java from scratch?

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

If I had to do such I take it line by line. I'll start with line 1. That would be commented out as I don't know what includes or libraries I need yet.

You can work the next line then the next until done. Even badly formatted this looks like something a first year C programmer should be able to do.

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

@vplay. I can't because I don't have your app in the IDE to be sure of the exact syntax. But as I did note, the if statements are gone if you use Try/Catch. Simpler code for you to work on.

vplay41 commented: Thk for yours time. In c# is possible? PLEASE! +0
rproffitt 2,701 https://5calls.org Moderator

Why bother with those two IF lines. Just TextBox3.Text = CDbl(TextBox1.Text) + CDbl(TextBox2.Text) but wrap this with Try/Catch, as we read at:
https://www.tutorialspoint.com/vb.net/vb.net_exception_handling.htm

vplay41 commented: A happy new year in 2021. Thanks for the reply. Please can you tell me the code for TabPage2. +0
rproffitt 2,701 https://5calls.org Moderator

When I click on HOME at your link, I get a 404 message. Might want to fix that.

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

As to VB6: how we get more speed on Graphics? my answer has two answers.

  1. Move to another dev system.
  2. Consider that graphics speed is not always possible if the host PC does not have dedicated graphics.

Furthermore VB6 is a legacy system. This is no expectation it will leverage what a modern PC has. Yet you will encounter crusty demanding older developers that will insist it "should have" or "should use" the GPU and more. Best to nod and let them be.

Your other post is actually more on point about speed but I neglected to write about testing if that's the speed bottleneck (the loops and the U and L bound calls.) I don't do this work for others but at work I had to profile our app to determine where the bottlenecks were so we knew where to look for the optimizing.

How do you know the U and L bound calls are the speed hits here and not the more usual areas? Did you profile and measure the times spent on each operation?

PS. If the discussion title is changed I must remove some of my answers as they would no longer apply. My vote is to leave the title as-is. My suggestion is that you work on your other post where the code was revealed as well as discuss and reveal what the host PC looks like. Sometimes I've run into developers that are on decade plus old dual core PCs with onboard …

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

No. Why? First we don't know what credentials looks like in line 1.
Second, this looks like homework or an assignment. Here you show your work and tell why you think it fails.
If you are looking to pay for work on apps, then you would have to state that plus the rate and more just like you do on fiverr.

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

I read your post twice and can't find your question. It's like you didn't research what this place is.

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

This looks like an assignment or homework problem. Per policy, show your work on your homework and point out where you think your solution's problem is.

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

I would like to see what that link has but I get "This site can’t be reached" so I can't. Daniweb allows code and images to be put in your discussion so next try supplying that here.

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

Sadly, replies via comments like that is limited. Try a full reply with your code as well as point out what line you think is the problem as well as what the problem is. Unlike some places, we don't complete assignments and homework but will look at issues and share how one might solve them so that in the end you can claim you did the work.

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

The logic in playingSP is where I see this fail. There's much to be done there.

  1. Why bother with else on line 30? To me you can forgo that and make your code simpler.
  2. Some sort of loop for invalid choices by either player isn't evident.
rproffitt 2,701 https://5calls.org Moderator

That sounds like your homework. Try sharing what you have so far and what you think is broken.

Nikita_14 commented: import wx class my_window(wx.Frame): def __init__(self, parent, id): #error __int__ wx.Frame.__init__(self,parent,id,' Search', size=(30 +0
rproffitt 2,701 https://5calls.org Moderator

What our techs usually find is the range extender has failed. Remember I take it you know how to factory reset and deploy your hardware.

Another thing, we do not support extenders. We refit the network with better solutions such as powerline kits with WiFi.

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

Even as a new programmer, you would have to learn about limitations. I shared a bit about how a 16 bit signed number has limits. This applies to your issue and is why there is no instant fix.

New or not, you learn how to work around limits.

Just like you do when you need 2 gallons of water and you have a 1 gallon jug. You get a second 1 gallon jug. That's the simple concept of working with more data than you can fit in one file.

For example if you were programming up a phone number database and you had the 32,767 limit but you wanted to hold all of the USA you have to think of how to use more 1 gallon jugs.
A first cut workaround would be to place all names that start with the letter a into the datafile called "a.dat", then for folk with the name with b into "b.dat" and so on. While that only extended our possible data set to 851,942 it is a start and may be enough for a particular dataset.

Then we have QB64 which may extend those limits.

QB64 looks very much like QB45. It's over at https://www.qb64.org/portal/
Here's a screenshot:

foo2.png

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

Your screenshots don't match what I see at https://docs.microsoft.com/en-us/visualstudio/data-tools/add-new-data-sources?view=vs-2019

I wonder if you have some old VB.NET or you didn't complete the steps at the link noted.

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

By redesigning your app to stay inside the limits. It's programming knowledge that you can't change a single signed 16 bit integer to be greater than 32767 but you could use two 16 bit signed integers to extend the mythical apps range. Same here. You break up your database so data into more files which don't exceed the limits yet let's you continue with QB45.

Or you move to another language/dev-system.

Why isn't a look at QB64 worth your time?

PS. I did not find documentation to confirm if QB64 extended this area. I leave that to you and the QB64 authors and their forums. I find it nice there is an alternative but documentation is a little lacking as is usual with such things.

paydata commented: BTW: I'm not sure how I answered you the first time I need help! Newbe! +0
rproffitt 2,701 https://5calls.org Moderator

For me, this has been all too easy. Did not add any apps. I set the ringtone I want on the iPhone.

Why clutter my PC and phone with your app?

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

Sounds correct as I recall the Integer limits (32767 to -32768) apply to the seek command.

You have to ask if QB64 extended those limits or break your data up into more files.

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

That clears up why/what you are asking along with me reading https://www.vbforums.com/showthread.php?889830-VB6-how-can-i-speed-up-my-draw-pixel-function-DIB-s

As UBound() I only see it called one time at line 49 so it's one call and unless we measure I'll write that's to be left as-is.
But in the For loop from line 49 to about 90? we see UBound() inside the loop and IF (I take your word it's big overhead here) that is so, I would use:
xboundvariable = UBound(DrawPixelPoints) - 1 just before line 49 so line 59 could be:
For x = 0 To xboundvariable

Remember I did not read this code multiple times. Some fault me here but it's Christmas Eve, our dog passed a day ago and other things are going on. Some say I shouldn't try under such conditions but try I will.

To wit, a very optimizing compiler might do such optimizing for us but hey, it's VB6 and not GCC.

With that out of the way, I think I see every pixel being handled so that's a lot of time in loops and more. I can't quite reverse engineer what this code is doing so I can't connect it to some possible API call that would (usually) best your own code. Let me elaborate with a bad example.

We need a line drawn through a bitmap. We can either slog through the bitmap and set bits as need be. Or we paint the bitmap onto the screen area then draw a line on top. Back then the …