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

That line with As Integer may fail for reasons such as strict is on or what's in the textbox is out of range (emits Type Mismatch.)

You omitted what error you are seeing so I can't offer much more. Read this tutorial now: https://www.oreilly.com/library/view/vbnet-language-in/0596003080/re73.html

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

I'd be guessing here that the current output spacing is a little off. Please state what is wrong with the current output.

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

Without a design, this code might be reverse engineered which is asking a lot. When I need help I have to supply a mimimum viable example of the issue and in situations where there is over a screen full of code, a design. Here I would have to pick through your design to find where the data lives to create your report.
But that's your work.

So let me recap: Think of the receipt as a data report. Your data lives somewhere. You are writing a small routine to access then print/report the needed output.

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

My thought here is you have coded before your design was complete. Your code doesn't reveal your design without reverse engineering.

Did you create your data and design document and can you post that?

Nicksen commented: I just code while looking at the output given by my lecturer. I did not create a data and design tho +0
rproffitt 2,701 https://5calls.org Moderator

I have to ask why do this. I've been watching users for years and they don't care what the URL is if they are shopping.

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

Just so you know, this has both ENCODE and DECODE at one of my favorite sites:

  1. Encode in over 150 languages -> https://www.rosettacode.org/wiki/Roman_numerals/Encode
  2. Decode in over 123 languages -> https://www.rosettacode.org/wiki/Roman_numerals/Decode

In your case, the correct way is what you decide as long as it works. What else could the answer be?

Quest123 commented: Thank you very much. This if of great help. +0
rproffitt 2,701 https://5calls.org Moderator

When I read this, I think "this looks like a job for AutoHotkey (AHK.)" Such as https://autohotkey.com/board/topic/37947-turn-keyboard-into-mouse/

You can assign these moves as you see fit and I recall AHK allows you to move the mouse pointer to absolute coordinates.

If you ask me which keyboard key to use, I can't answer since it's not me that will be using this.

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

Small issue here. You didn't ask a question or tell us what the error was on what line.

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

Sorry if this belongs in that other thread:

  1. I click on https://www.daniweb.com/articles/latest/recommended
  2. The Oops screen comes up.
  3. The Continue button link is https://www.daniweb.com/articles/latest/articles

Remember the spinning The End. will not occur in this sequence. Look up to see the sequence to get the spinning The End.

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

I don't think that's it either. But it's all of the 2 steps I wrote above. The old(?) thread is at https://www.daniweb.com/community-center/meta-daniweb/threads/535848/the-end-shows-when-reading-latest-daniweb-articles-on-chrome-and-opera

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

I doubt that it's connected but I still see that bug with the spinning circle.

  1. Go to https://www.daniweb.com/articles/latest/articles
  2. Press the End keyboard button.

image_2021-09-18_090120.png

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

I'm comparing your line 2 with line 806 at https://github.com/pymupdf/PyMuPDF/blob/master/fitz/helper-geo-py.i and no match.
That is, you appear to have added a few spaces.

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

Thanks Dani, I forget that some don't know to use new media. Long ago at the shop the client said the same and they were trying to burn to their old AudioCDs. "Why can't I burn to any CD?"

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

Line 1 produced an error for me. Maybe you need to tell me more why you declared this in this way.

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

Did you read the Wikipedia on these. I read one at least if not more and felt they did an excellent job of explaining how they work.

But understanding how they work may not give a beginning programmer all they need to know to "code it up." Remember you didn't reveal this is homework as well as what the assignment was. Imagine the poor student that was assigned yet another Time Complexity piece of homework but wrote what you did and left out what they really needed to do. Nod to https://en.wikipedia.org/wiki/Time_complexity

As to learn these two algorithms, in all the classes I took over the year the algorithms were in the text that was part of the course. Today we can supplement that with the web but did the prof forget to supply "source material"?

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

I read the Wikipedia on this and came back that I would not code this at all but use the search calls/APIs that are currently in whatever language I'm coding in now. If I felt one method was better than the next I would test it using each supplied search against a few test sets and be done with it by days end.

Maybe there's some homework assignment here but that was not told.

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

I don't believe you here. 200 MB today would be well under a minute to backup.

https://www.quora.com/How-long-will-it-take-to-transfer-a-1-GB-file-size-on-a-USB-2-0-and-a-USB-3-0-drive notes that a mediocre USB drive is a slow 10 MB per second so about a 10 second wait.

Maybe you feel this is a long time?

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

I'd like to hear more about this PC, the make, model, age of the DVDRW along with any other messages from say IMGBURN.

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

To Schol-R-LEA, it appears it is but to the question my quick research only found solutions to their question for sale.

Since the protocol is open it would make a fine topic for an open source solution.

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

Seems there is. However the code looks to be for sale and the quick research I did here didn't find an open source solution.

Looks like a great project for you to create and make a name for yourself?

Schol-R-LEA commented: But is SWIFT MT103 itself an open protocol? I wouldn't be surprised if it isn't. +14
rproffitt 2,701 https://5calls.org Moderator

I see the Question Solved? has been removed.

Now if this was my task I'd check out https://www.w3schools.com/jsref/met_win_focus.asp

This method makes a request to bring the current window to the foreground. It may not work as you expect in all browsers, due to different user settings.

But due to browser settings and how this works IRL you can NEVER EXPECT THIS TO WORK everywhere and everytime. Thank those that used this and other schenigans to pop adverts at folk.

iscjm commented: This doesn't work with me! Anyway, thanks for your advice! +0
rproffitt 2,701 https://5calls.org Moderator

This is marked solved. Can you share the fix?

iscjm commented: Oh my gob! I have made a mistake +0
rproffitt 2,701 https://5calls.org Moderator

It looks to me you would duplicate the code starting at about DWORD dwData = 6 to where this code section ends (remember I take it this is your code, not found in the wild and that you write code) and paste that above the return 0; and make changes as you wish.

Next time pay attention to code formatting in your post so there are line numbers and better code formatting.

에프 commented: Thank you sir. I find the solution similar to your answer. Have a good day. +0
rproffitt 2,701 https://5calls.org Moderator

Who? Flat top?

Here come old flat top

rproffitt 2,701 https://5calls.org Moderator
patk570 commented: Amazing! Just what I needed! +3
rproffitt 2,701 https://5calls.org Moderator

Thanks for the report back. Please mark this as solved.

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

OK we can use the various loops and IF. Remember we have many design choices here but the goal is NOT to design well here as the assignment forbid arrays.

So we know we have 10 data lines to output so the first ten lines would be our loop.

I can't write code for you since that's your work so psuedo code will suffice.

for row from 10 to 1 
{
 output row and a space
 if n1 => row print a star and space else print two spaces.
 if n2 => row print a star and space else print two spaces.
 if n3 => row print a star and space else print two spaces.
 if n4 => row print a star and space else print two spaces.
 if n5 => row print a star.
 print the newline
} 
Print " 1 2 3 4 5"
saadbangashh commented: Thank you. It worked perfectly. +0
rproffitt 2,701 https://5calls.org Moderator

So the if statement can't be used? Harsh assignment there. Remember I have to take your words as they fell.

saadbangashh commented: We can use if statement and other basic tools +0
rproffitt 2,701 https://5calls.org Moderator

It appears that many have used ncurses to write a tictactoe game.

Here's how I found them: https://www.google.com/search?&q=tictactoe+ncurses

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

PS. Please mark threads solved so others know. +1 to Husoki.

rproffitt 2,701 https://5calls.org Moderator
clementer commented: Yes +0
rproffitt 2,701 https://5calls.org Moderator

Again no to getting this with the IP or MAC address. But in the interest of answering how a router gets that information:
Read https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Options and pay attention to Field 12.

Since your app can (eventually) get some IP and MAC address you might be able to get vendor information but for the name, it appears you have to ask the router. And that is going to change from router to router as there is no known API for that.

What you may want to research is the OpenWRT source code to see how they did this in that router code. I'm leaving such research up to you.

rproffitt 2,701 https://5calls.org Moderator
  1. Your top post asked for "device's name".
  2. Later reply muses about dns.gethostentry failures. (not presented as "why does this fail now?")
  3. Later you may be asking but didn't something else.
  4. Finally you tell about the old MAC addresse to vendor lookup which as you can guess with some billion devices out now can less than 100% a sure thing.

I don't mind discussing something but please make it clear what we are going to discuss. What is the question.

rproffitt 2,701 https://5calls.org Moderator
  1. MAC address: Read https://www.quora.com/What-info-can-you-get-from-mac-address
    So no, you can't get the device name.
  2. IP address: https://www.quora.com/What-information-can-be-gleaned-purely-from-an-IP-address
    Again no device name.
  3. https://en.wikipedia.org/wiki/Domain_controller covers a bit but is not in play here.
    Now if the machine information is surrendered say to some domain controller, then you ask there.
rproffitt 2,701 https://5calls.org Moderator

Attribution to http://www.liangshunet.com/en/202005/494917182.htm
Read more there but here's their Javascript attempt (seems to work.)

<script type="text/javascript">
              function ChangeImgSrcWithoutId() {
                     var arrImg = document.images;
                     for (var i = 0; i < arrImg.length; i++) {
                            if (arrImg[i].getAttribute("tSrc") != undefined) {
                                   arrImg[i].src = arrImg[i].getAttribute("tSrc");
                            }
                     }
              }
              ChangeImgSrcWithoutId(); // Call
       </script>
rproffitt 2,701 https://5calls.org Moderator

Let's say you want to use that bank. Then they would be asked how to add this to shopify or some other system.

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

I see over 10 supported payment systems at https://www.shopify.com/payment-gateways/macao-sar

Why work hard here?

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

That's over 500 lines so it's best if you call out what fails and what lines you feel need a closer look.

ComSciNum7 commented: Completely understandable! I think the main problem is in in the remove and insert functions, everything else tends to stem from those two functions? +0
rproffitt 2,701 https://5calls.org Moderator

Say hi to Mr. Burns for me!

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

That method looks to have flaws.

  1. Doesn't count words. (counts what it counts.)
  2. A double space would throw it off and more.
  3. A very well done app. Read https://github.com/coreutils/coreutils/blob/master/src/wc.c
rproffitt 2,701 https://5calls.org Moderator

Thanks for the comment. That makes me think you need to use the following function to convert numerics to strings.

Read https://www.php.net/manual/en/function.strval.php

Dani commented: PHP is an untyped language. You can just use substr() on the number with no need to convert it to a string. -8
RC_820 commented: thanks bro i already found the result where i want +0
rproffitt 2,701 https://5calls.org Moderator

I can't see how any combination of the variables given results in 9213 or such. Maybe your examples were incorrect?

RC_820 commented: must take 1 by 1 number from variable example like this $num1 = 9; $num2 = 2; $num3 = 1; $num4 = 3; and combine $num1.$num2.$num3.$num4 = 9213 and etc +0
rproffitt 2,701 https://5calls.org Moderator

I can't tell you what it is this time so I related where I find things to read and try. Also shared last week's drive testing that spewed so many error messages on the bad drives.

Is there something not-so-stock with this Ubuntu?

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

I see this question has a lot of prior discussions found with https://www.google.com/search?&q=polkit+authority+not+available

Lots of ways to tackle this one.

PS. Last week I took a day to test out about 20 laptop drives (mostly HDDs and a few SSDs. It was slow going and "interesting" errors showed up on two bad drives. There was nothing wrong with the OS or adapter. These few drives were just bad. Most of the drives were from the office where we had upgraded our last HDDs to SSD. A few were unknown condition so we wanted to find out so we could see what to keep as spares for really cheap repairs and what to get rid of because failing drives can cause techs to spend days trying to find out what's wrong.

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

You've written something new with your last reply about the timer. Look at that line with timer1.Interval at 249.

I wonder here about that value since it's in ResetGameAfterDeath. How was timer1.Interval set when the game first ran?

Maybe you are in Visual Studio and the timer1.Interval value was from the IDE and then later in this function you set it.

-> Again, what's different from the working first round to the failing second round?

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

Must read: https://en.wikipedia.org/wiki/Dragon_Ball_Online

This is not open source from what I can tell. Most likely leaked or stolen code.

Share where the owners gave up the rights to avoid this discussion vanishing.

Sph_1 commented: well as u want .. ty for the help +0
rproffitt 2,701 https://5calls.org Moderator

I received a few comments via email. You claim other servers work. Use what works.

Sph_1 commented: what i mean wiht taht is on compiling like i where compiling character server, chat server , login server ... all worked and auth isnt compiling its +0
rproffitt 2,701 https://5calls.org Moderator

It's more than specifics. Many of such apps needed a specific build environment and settings.

If you leave out all the details you are pretty much on your own unless you get lucky.

So yup, you do have to tell a lot. Especially where the system was found, what compile was used successfully and more.

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

"failing to recompile on visualstudio 2019 with the fatal error C1075 [closed]"

You appear to have what I call in found code. You dumped such here without telling where the source came from so I can check if there are build/compile instructions.

Unlike elsewhere we try to give you a chance to supply the missing information.

Sph_1 commented: thats why i posted this here , soo if i can get help from any experienced C++ dev.. +0
rproffitt 2,701 https://5calls.org Moderator

Think of what differs from the new game to the code for next level. Maybe that UpdateStyles?