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

Flip the equation. 2,500 soldiers have a 1 in 15K chance to fire per frame. or 2500 in 15000. To get to 15000 in 15000, that's 6 frames for a random arrow. Or 1/10th of a second per arrow.
I only need one random number every 1/10th of a second to select which soldier fired.

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

My thoughts:

  1. Don't create another wheel. Use prior projects like https://github.com/ip2location/ipinfodb-php
  2. Consider starting with NO initial values in the database. Add them if there is a query about an IP that is not found. Otherwise the database is likely 99.999% full of entries that will never be used.
sankar2000 commented: 2. you mean add all possible ips? for ipv4 might be possible, for ipv6 ... not a chance, i wonder if i can have them sorted already +0
rproffitt 2,701 https://5calls.org Moderator

Tony Robbins? Yep. You can keep him.

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

Thinking about this I would not use a typical browser. I would never be able to do this in C so I'm guessing you misspoke.

Instead make the usual Windows app with a browser frame/element in the app. Then you have complete control over your app and its elements. Since how to hide your app has been discussed for decades I won't write about that further. But here's Visual Studio and the browser element tutorial: https://www.instructables.com/Making-a-Web-Browser-in-Visual-Studio/

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

I think we need transcoding for playing in a browser. Unlike VLC Player, browsers can't decode most videos. So is this all videos that fail to play?

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

From memory I've seen this when the "over the network" play transcodes on the fly but local playback leans on the local audio video decoders.
BUT if you are using same OS+browser on both I'd expect consistency.

A few weeks back I setup the Lenny autoanswer machine. Good thing I knew a little about Linux services. That project isn't ready for the 99% of us. Yes, it's sort of out there on the fringe but hey, it's out there. I can't find a way to report a bug without what happened to you. See https://www.youtube.com/watch?v=BGrfhsxxmdE ?

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

I agree. Easy to use is confused with "it just works." Guns are easy to use too!

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

Which OS? Which C compiler? Also, why do this since it's something a malevolent app might do. Even so, you left out too many details to start looking at possible solutions.

chenbaoqing commented: Yes, Windows operating system, specified browser, or default browser,Visual Studio 2019 compiler,When a user uses my exe program, my exe program can +0
rproffitt 2,701 https://5calls.org Moderator

There are dozens if not over a hundred of these out there. There's no way for me to pick one for you. However there are a lot of folk trying to "script" their way into running sites without putting in the time to learn about what they are using. Google your title question and there are reviews of top 10 or so such templates that you can read about. Try a few until you find what fits for you.

Krisha03 commented: Sure +0
SanjayJoshi commented: WHy 5 calls +0
rproffitt 2,701 https://5calls.org Moderator

Many are discovering(?) that Visual Basic 6 support is non-existent. If that wasn't bad enough you are pushing the limits of the ODBC with what looks like a deprecated feature.
My advice is to forget VB6 and move on to something current. I know our office did so a few years ago. We had to as the cost to maintain the old VB6 apps climbed and clients weren't able to pay for the higher fees to add the features the clients were asking for. The apps do run, but adding new features is too expensive.

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

What is this "documenet"?

PS. Hi Lew!

lewashby commented: I'm a morron! +6
rproffitt 2,701 https://5calls.org Moderator

More detail required. For example https://autofac.org doesn't tell me enough along with your reference to HttpContext.Current and such.

"Self Hosting is a form of running your own website or application by setting up a server and network yourself."

For decades we could do this with the usual LAMP (tutorial: https://www.udemy.com/course/web-design-lab/ )

My answer is to learn about the usual Linux Apache MySQL and PHP setups. If you want to talk about autofac or such, supply more detail.

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

Please supply such details up front or as soon as possible. There's a big issue here is that VB6 is dead and gone. My memory of it is fading fast since we end of life'd the last apps 2 years ago. Yes we were open to keep going but the client thought since it was old the cost for support should be discounted. Sorry, no, just like petrol, the costs have gone up.

I can't guess why you are working on VB6 but my advice is it's over.

As to the Access, you can use SQL statements with Access as the database. It's been capable for decades.

-> Maybe you don't want guidance but are looking for code or the solution written for you? There's outsourcing like Fiverr and such for that.

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

If you wish to sum() then sum(). See https://www.w3schools.com/sql/sql_count_avg_sum.asp I would NOT write code to iterate over the list and sum it up.

Lieutenant_1 commented: i am using ms access 2016 as my database. +0
rproffitt 2,701 https://5calls.org Moderator

More detail is required. Turbo C and C++ was for DOS way back decades ago. What host OS are you trying this ancient compiler on? Also, why not a current IDE and compiler.

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

This is a hard way to learn why we don't use cleaners on any OS today. These can break systems and the only way back is to restore from backups or start over. This view is not just me. Just ask on the usual Reddits and Bleepingcomputer what folk think of system cleaners.

Yes, some will call Microsoft and pay for support but it's rarely worth the cost. Take it as a lesson learned.

complete commented: yup +5
rproffitt 2,701 https://5calls.org Moderator

Let's see what you have so far. Please read https://www.daniweb.com/welcome/rules too.
Maybe we can see what's wrong with what you have.

Also, does this need to work with files greater than 2GB? 4GB? or larger?

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

Google that number and see what's out there. This looks like your 311185-001 request and for hardware that beyond its service life. These also look expensive due to the simple reason only those that need them, need them. Why not replace these with something made today?

It's a big world, here in the US there appears to be some at the shops I see with a google.

PS. https://www.newegg.com/dell-401-aasm-1-2tb/p/1Z4-000J-00J86?Item=9SIAAEE7U02864 seems to be a good price. How many there? Ask them.

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

Why do that? https://developer.android.com/studio/install doesn't note installing a JDK.

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

Can you clarify your question? I'm reading https://square.github.io/retrofit/ and can't seem to see the connection.

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

While I can't guess why the c tag, you left out where the file is. That is, native C++ doesn't have the utilities to work with the web. Checking out https://www.codespeedy.com/how-to-download-files-from-internet-using-cpp/ confirms this.

You not only left out that but what if the file is on FTP server, web page or something else. How you approach this varies with where the file is now. As to the specific directory, that would be in your code. Given the first link in my reply the answer is yes. But simple? No.

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

Use getNumPages() and iterate over the pages to add to that text variable. Remember that 0 is page 1 of the PDF.

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

Sounds proper. One system may be using the WSL (Linux) subsystem and the other could be a Windows system. I don't expect the env variable to match because, different environments.
https://docs.microsoft.com/en-us/windows/wsl/basic-commands tells us we have to setup the WSL to be a specific user and well, that setup isn't known here.

Next time, open a command line (bash, etc) type env and see what's set there. Same for powershell.

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

I think I see 4 or more problems with this code.

  1. Unbalanced braces.
  2. No matter what happens prior to line 18, $html sets the string unconditionally to data not found.
  3. I see on line 7 you building the string but line 8 negates line 7.
  4. Also, line 16 sets $html to well, what you wrote there.

Check your braces and consider moving line 18 to line 5.

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

Even in Android Studio I don't think it's "pure" Java. Again I see no clear winner in which you choose. But if Kotlin is easier, go for that. I don't see them ending it for a very long time.

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

What little I could decode was it would create a PDF but that's as far as I got. It could do more but I don't have the 600K file and it's not work I do. I leave such to places like online scanners and r/Malware.

UnabashedGeek commented: Thanks for the additional info. I appreciate it. +2
rproffitt 2,701 https://5calls.org Moderator

I see two places that could be the reason.
Line 63 and line 377.

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

I've yet to see a HTML only emailer. Try adding a tag for the coding language in use and then the code you have so far.

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

I don't see a clear winner. What would make you choose one over the other?

Pekja commented: I think kotlin easier to understand. But since I'm not familiar with java, I think java have more tutorial than kotlin? +0
rproffitt 2,701 https://5calls.org Moderator

Why not use the free Android Studio? Many tutorials out there.

Pekja commented: I'm using android studio but, still consider which language to use either java or kotlin +0
rproffitt 2,701 https://5calls.org Moderator

There's a problem with Web 3.0. You can see recent updates at https://web3isgoinggreat.com
Right now it appears Web 3.0 is the basis for rug pulls, scams and more. After looking at 3.0 more than a few times I wouldn't get too excited unless you are the scammer.

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

I had a similar problem but I didn't want to keep track of a number like yours which would have me setup/use SQL to hold/update that number. My solution was to use the date and time for part of the filename. This way I had information I needed about the file in the filename and it was easy to get a listing of files for a day or days. If I had numbers, well, more work and not exactly what we needed.
Why did we go this way? The files were from an automatic tester so with a simple ls or dir command I could tell how many tests completed on a day. In parting, this is offered as a possible solution without any offer of writing your codes.

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

It looks like malware to me. But the real code looks to be in that 600K of characters. Decoding that is something I'd pass on to r/malware but first read their rules at https://www.reddit.com/r/Malware/comments/4ap1a7/please_view_before_posting_on_rmalware/

Did it damage your files? What did it do?

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

Too vague. I create CSV files with spreadsheets almost weekly.

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

Since you fixed it, you'll have to wait to see what causes it again. That's a very old version of Visual Studio so bugs are expected. The clues are not here as to what happened but rather than leave it here as-is, next time try a full compile. I didn't run VS2010 long enough for long term memories but as you use it a lot, look around for an option to clean the project then fully recompile.

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

Hey Jim, I hear you about that. I didn't write what they noted as the fix because my bet is the fix changes with each version.
The fix in that discussion was to install specific versions of this and that.

What is this? A jig-saw puzzle?

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

My opinion? It's broken. I'm reading https://github.com/spyder-ide/spyder/issues/7397#issuecomment-1104642008 and other discussions and this appears to be a work in progress.

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

Hmm, nothing there/here. What does https://www.hybrid-analysis.com report?

rproffitt 2,701 https://5calls.org Moderator
  1. While it's odd to see that old a version of VS2010, does the app work while you are in VS2010?
  2. I see no code and telling me so little does not give up many clues. Do other projects work?
  3. Create a very small project such as Hello World to see if your install and permissions are correct.
rproffitt 2,701 https://5calls.org Moderator

For hours less than 40 I see 2 print lines that will execute. Lines 5 and 14.
For hours 40 and over, only line 16 and 17 will print.

Your code does exactly what you told it to do.

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

Please add code for us to look at.

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

Remember I'm not there to see what you see and if I do help you find ONE issue, there can be more.

-> empposition.Text should be a text box's text. Since DailyPay is zero my bet is the text never matched in all those if's. Only you can examine this area.

Khadiiijah commented: Exactly, turned out the text is not matching the text in "If statements" cuz of some added space, Thank you +0
rproffitt 2,701 https://5calls.org Moderator

Title then that tag makes this question confusing. I know of webview in Android but not so much for "mac" or Apple OS. But that title that mentions chromium blows up what would be my guess as there is no code from you to examine. OK, if this is an Apple OS app, I'm reading https://developer.apple.com/forums/thread/123729 which if this is for Apple OS means you'll have to share code to see if anyone can see your issue. That and a better explanation of your app and what it runs on.

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

We're a trusting bunch here. If you post code we accept it's yours unless I google it and find it's on Chegg or such.

However you do need to write what's stopping you by sharing the code passage that gave you trouble and why you think it doesn't work.

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

Please read https://www.daniweb.com/welcome/rules since you must show evidence you are working on this. As it stands it sounds like you want this app good to go. I guess someone could make the .EXE and share that?

Mercy254 commented: Thank you for sharing the link I've read them I have already started programming it on dev c++. How am I supposed to show that its my work? +0
rproffitt 2,701 https://5calls.org Moderator

So you found DailyPay is zero. While at the breakpoint find out why by moving the mouse point over empposition.Text to see if you ever had a match. Tip: I would have added one more else to cover where there was no match for the empposition.

Remember this isn't the only issue I see in said code. For example, numbers may need to be converted to text strings before being used for Salary.Text. I won't have this version of VB.net so I leave that for you to explore.

Khadiiijah commented: Thank you, well I did that and it returned the last else value which means the problem is in the if else statement,but I still can't see what it is +0
rproffitt 2,701 https://5calls.org Moderator

Sorry but I should have written "YOU can mouse every variable and string to see what is wrong."

This is classic debugging skill. It can be hard the first time but gets easier.

Khadiiijah commented: Okay, so I did that and it says that in Integer.Parse(wdays.Text):ArgumentNullException/FormatingException/OverflowException +0
rproffitt 2,701 https://5calls.org Moderator

Not how I approach such. With reference material at https://docs.microsoft.com/en-us/dotnet/desktop/winforms/input-keyboard/events?view=netdesktop-6.0 my approach is to add an event handler (remember I take it you are a seasoned coder so I won't find a tutorial on basics) then in that keyboard event fire the event I want for the button in question.
That is, the keyboard event handler can click the button.

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

As to where to break, line 40 because I can mouse over every variable and string to see what could be wrong.

Khadiiijah commented: Okay I did it, but what comes after? +0
rproffitt 2,701 https://5calls.org Moderator

I suggest more than LinkedIn. You should have your presence on all the platforms such as web site, twitter, facebook and maybe instagram.

As you build that web site, be sure to read prior discussions about SEO. I will not write about SEO here as it's well done. As in, to ashes.