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

Here's a good example where I'd turn to Rosettacode at https://rosettacode.org/wiki/Number_names
There are over 91 implementations of this task in almost all the computer languages we have today.

jnbgames.dev commented: I would say that mine is more detailed and general than the Rosettacode example. But good point, thank you for sharing! +0
rproffitt 2,701 https://5calls.org Moderator

Looking at https://rosettacode.org/wiki/Perfect_numbers#C I wonder if line 154 needs a change.

jnbgames.dev commented: Great point! I took a different approach in my code; instead of having a max value, I used just the number N to loop for divisors. +0
rproffitt 2,701 https://5calls.org Moderator

From https://www.reddit.com/r/ProgrammerHumor/comments/wupbvb/python_runtime/
image_2022-08-22_115014356.png

As time passed it looked to me that Python evolved past a C framework.

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

I won't write much about this but the short version is that many sites won't load if you block too much.

If you want to dig into why sites don't load that's going to be you doing that work, I can't write more because each site differs on what you must allow for the site to function.

nightfancy commented: It seems, as a DNS server, adguardhome can't resolve the domain alone. is this right? +0
uzzalhossen36 commented: I am a Professional SEO Expert +0
rproffitt 2,701 https://5calls.org Moderator

Where's the code?

In vb.net if I want to get a property's value or text the code would look like (remember I can't write code for you given no code above and besides it's your app) :
valueofProperty.Text = My_Usercontrol1.Text

Remember it's English so I might have that reversed but I can't tell what you want here due to a lack of code and what you want it to do which the button is clicked. We're talking about a single line of code to be written so it can't be that hard.

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

What is "the circle"?

奇_925 commented: I mean that "the circle" is just like a group of classes +0
rproffitt 2,701 https://5calls.org Moderator

Given the tags asp.net and C# I don't know of a quick as in ready to code solution. Now if you had PHP on the backend, there are PDF utilities to create PDFs. What have you found for asp.net so far?

mtyide commented: They are all costly solutions. Need something quick and free, can't find one. +3
rproffitt 2,701 https://5calls.org Moderator

Or replace D7 with a Schottky diode to minimize the drop and adjust your voltage divider to cancel out more of the error introduced by the source reverse polarity protection.

R2 and R3 could likely be 10X higher in value to avoid throwing off the Vin voltage. I don't know everything about your application but if protecting the node that contains U18 pin 3 is the goal, then a very small capacitor there in the order of say around 100pF might be added from U18 pin three to GND.

If you think there is noise on what looks like a voltage divider of R7, 6 and 7, you can add small filter caps to quiet that section.

I'm just a gray hair electronics designer.

F1dark commented: Your given solution is quite clear and simple. +0
rproffitt 2,701 https://5calls.org Moderator

I'm leaving my typo as-is. I take it this is on Daniweb. Link to the content please?

pritaeas commented: Any chat message, but I tried to delete the phone number in the programming chat room +0
rproffitt 2,701 https://5calls.org Moderator

No power is also a motherboard function. A Volt meter is used to check if the +5V StandBy is present and then we know the motherboard is the one to call for power on the green wire (see Green Wire PSU Test on google) but hey, if you feel it's the PSU, a little cheaper than most motherboards so why not get a good one?
At the shop the tech bench always has a spare to swap to test for this area. As a PC repair person you can't go far without good spares.

Alpha_6 commented: Yeah you are right. I guess I have to take it to some repair person, they might look better into it +0
rproffitt 2,701 https://5calls.org Moderator

"2." I meant what I wrote. DO NOT FILL THE DATABASE. Start with zero entries until you get a query then go find that via some web API and add that to your database. It's highly likely that in a short amount of use you'll get repeats and not have to go find new data.

sankar2000 commented: if i search for ip_hex: '0x234504252ca1000000000567567323b5' in 102 mil results ... i don't think is a good idea ... it will go into full text search +0
rproffitt 2,701 https://5calls.org Moderator

So the BIOS setting has been changed, the new CMOS battery installed, CMOS values set to default except for fast boot and it fails. The usual is a failed motherboard.

Alpha_6 commented: Can't it be the PSU? Cause mine is a chinese PSU and I was already facing no power issue sometimes, like when I press power button nothing happens. +0
rproffitt 2,701 https://5calls.org Moderator

Try the solution at https://forums.tomsguide.com/threads/no-windows-no-uefi-just-a-black-screen-and-short-ticking-every-3-seconds.111128/
But at this age board, we try a few things then replace the board and whatever else is required if we have to change to a board that doesn't support the old CPU and RAM.

Also, we always pop in a new CMOS battery at such age because the battery is 25 CENTS in bulk. Troubleshooting low CMOS batteries is many dollars so we never do that. Put in new. Still, once in a while a tech will get upset at popping in a fresh 25 cent battery. Chalk it up to being a new tech?

Alpha_6 commented: In my case fastboot is already disabled. I am really confused because I have the same motherboard and same issue, but I can't solve it +0
rproffitt 2,701 https://5calls.org Moderator

Which page? What editor?

Daniweb hasn't implemented a "copy code" feature that you see elsewhere.

pritaeas commented: I smell a feature request ;) +0
rproffitt 2,701 https://5calls.org Moderator

The omission of all PC details means I'll stick with the usual fix which is a new motherboard.
Example: https://forums.tomshardware.com/threads/my-pc-wont-start-until-i-remove-and-reinsert-my-ram-or-turn-off-psu-after-shutdown-then-turn-it-on.3141531/

Alpha_6 commented: Pc specs: Processor: Intel i5 4590 Motherboard: GA-H81M (2 ram slots) Ram: 2x4gb ddr3 +0
rproffitt 2,701 https://5calls.org Moderator

To @Felonely. Code does what the code does and not always what we want. Unless we see your code along with you telling what it did and what you want, no one can guess what was going on.

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

All that but no indication of where you are stuck or if you wanted others to write this app for you.
This sounds like homework so let's hear:

  1. Where are you stuck?
  2. Show the relevant code section along with the error if there is one.
Felonely commented: I have actually tried writing some stuffs but it never seem to work the way i want. +0
rproffitt 2,701 https://5calls.org Moderator

Weird assignment. No bank I know would code this in C++ today. It would be some web server and backend systems.
But hey who said what they teach you in school would be what is used today?

As per the Community Rules, show your work and if not at least tell where you are stuck. You should be at the point you can write code to present the menu at the very least.

Schol-R-LEA commented: Agreed on what you said about how unrealistic this is, but as you say, no one ever sais class assignments had to be realistic. +15
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

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

What is this "documenet"?

PS. Hi Lew!

lewashby commented: I'm a morron! +6
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

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

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

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

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'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

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

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

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

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

Is this dated? I've lost count of the number of times I've found SELECT * to cause performance issues.
What you also discover is a lot of SQL classes and textbooks continue to teach this. Shouldn't complain as one year had 5 figures income from a few clients over this small problem.

PS: To clarify. 5 figures from just that one client. It was a very good year. There were other issues other than the select statement but that was quite the performance drain which for some strange reason continues to be taught.

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

Given the language you tagged is C there is no way to remove an array element then resize the array. Put another way there is no delete() function for C arrays.
So how I handled this was to set the array element to either zero or INT_MIN and for the code that would traverse the array, code so that I knew that zero or INT_MIN meant to skip that value.

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

All too easy. Tested and passed at https://www.w3schools.com/cpp/

#include <iostream>
using namespace std;

int main() {
  cout << "P\r\nPR\r\nPRO\r\nPROG\r\nPROGR\r\nPROGRA\r\nPROGRAM\r\nROGRAM\r\nOGRAM\r\nGRAM\r\nRAM\r\nAM\r\nM";
  return 0;
}
Reverend Jim commented: Congratulations, Captain Obvious. +15
rproffitt 2,701 https://5calls.org Moderator

For the question of how many listings on eBay I'm thinking of a company which I won't name but they had thousands of listings. It was maintained by two full time employees.

As to the US question, since the company and items was in the USA the advantage was all about shipping costs and currency exchange.

The products were mostly odd lots or returns. Prior to eBay the company would sell all this off to a jobber. With eBay it became practical to sell the returns, discontinued items and odd lots themselves.

Failure rate? They had a set discount system so if items stuck around too long they would reduce the price till it sold.

AndersLarsson commented: About the discount system. I'm sure if EBay had one, influencers would probably not tell people about it. I mean if there is a referrer commission +0
rproffitt 2,701 https://5calls.org Moderator

Besides what you wrote in your comment about digging out that, what if you try to use base 2 in assembler is well, how to put this. Your software design spec is lacking here. You didn't tell the range you need to cover. For example this might be trivial if the value is from 0 to 255 base 10. It's one eight bit memory location so you take the ascii input to be in whatever base you decided on and write code to convert the STRING of input characters to a number. The CPU you noted has basic math but your input and output is in ASCII so a pile of work to go from text to a number.

https://www.google.com/search?q=assembly+text+to+number finds a lot of priors so no need for me to write your code here. Now you can alter the search to find how folk handles other bases. Or design then write your own. Me? I'll write this in C because for work we must get it done quickly and on time.

LZS_405 commented: i think it wasn't text to number. Bases to Bases like *11 Base 03 = 10 Base 04 +0
rproffitt 2,701 https://5calls.org Moderator

This is not in my wheelhouse but there is a way. Adverts are rotated in and out so if some company did pay this, they resell their ad spot to others and rotate in ads from other companies without the 2 million price tag. While I doubt you will recoup the cost of ads there are lower cost ways to do this but never will be free. Look up "uncbot" to get started and find such companies.

relevarvalery commented: Could you please clarify what companies are you talking about? +0
rproffitt 2,701 https://5calls.org Moderator

As Reverend Jim asks, why C++? Today if I need to do a thing I'm off to the land of Python.

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

Not to set up a debate on that but strict voter identification is something fairly right wing here. Most countries don't do that. Why do you think it's required? Also, with all the studies done on this are you inventing a wheel here.

Finally I can't help but point out XKCD at https://www.explainxkcd.com/wiki/index.php/2030:_Voting_Software

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

There are open source voting systems today. Only a student might try to create yet another system.
Finally, encrypted databases are plentiful and free. That is not the real problem.

Bree_1 commented: you're exactly right, the real problem is 2.8 million Libyans need biometric scanning (which I'm hoping to team up with some professors on that) +0
rproffitt 2,701 https://5calls.org Moderator

While your tags including linux the specific shell wasn't called out. So for you to proceed you'd have to find which shell you want to write for as not all shells use the same language or syntax. Example: https://en.wikipedia.org/wiki/Comparison_of_command_shells

After that you would code each line as you wrote above.

riahc3 commented: I think bash would work +7
rproffitt 2,701 https://5calls.org Moderator

Topic question doesn't appear to match your question in the text that follows. Also, we state what we want the firewall to do then write the rules but you seem to have put the cart before the horse.

That is, you have the rules before you determined why you have these rules. Let's start over. What did you need iptables to do here?

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