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

This does not appear to be about the iostream limitation but about design. That is, your assignment is to craft/create this mini-app. So I can't write code for you but share that you need to step back and design before code.

That is, you know you need an outer loop to keep going till exit. Then an inner loop to hold that menu and perform those actions. I don't see you using any loop construct. Look up do and while on the usual tutorials.

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

Spamming in hopes of a faster reply rarely works. But without mention of what your system is, I can't start to guess as any guess would be a bad guess.

Finally, why the tags c++ and css? I didn't know pygame needed those.

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

Besides the GUI report here's the example text about a stick I have. It has the part number and more which makes it easy to find a match.

Memory SPD DIMM # 1
SMBus address 0x51
Memory type DDR4
Module format UDIMM
Module Manufacturer(ID) Micron Technology (2C00000000000000000000000000)
SDRAM Manufacturer (ID) Micron Technology (2C00000000000000000000000000)
Size 16384 MBytes
Max bandwidth DDR4-3200 (1600 MHz)
Part number 16ATF2G64AZ-3G2J1
Serial number 28D64510
Manufacturing date Week 26/Year 20
Nominal Voltage 1.20 Volts
EPP no
XMP no
AMP no

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

We can get more data on the old stick. How? Go get and see the report with https://www.cpuid.com/softwares/cpu-z.html

Since you appear to be in the US, is Amazon or Newegg OK?

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

I don't see said code so I can't offer much except you would add a variable or two to hold the start time and end time then a little more code to print that out.
For Linux I use the time command. Example document at https://www.faqforge.com/linux/how-to-measure-the-execution-time-of-a-command-in-linux/

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

There are no set limits as you can request to have them raised if they don't automatically raise. Example: https://www.ebay.com/help/selling/listings/selling-limits?id=4107

The company I wrote about was not reselling or flipping. They had product, did shipping and all the other work involved such as returns and more. Flipping sounds dangerous as what if you flipped a high value item like a macbook and it was drop shipped then found out to be nothing but a brick? For me this sounds like a dead end.

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

While not something I've worked with, https://help.anaplan.com/db641832-285c-41f7-a2e3-459859cb065e-Upload-a-text-or-CSV-file did not mention such a limitation.

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

Sorry but what line fails with what error? Also, why tag this with VB6?

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

I have doubt that the c tag is correct here. But for visual basic the code will likely change as you change which of the dozen versions of visual basic are out now. OK, a MP3 player in VB.net? Let's find a few: https://www.google.com/search?client=daniweb&q=mp3+player+in+vb.net

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

Since images are not text I don't see how that would work. I did work in VB that made barcodes but I used another method. I would use a Barcode Font for the text display box. Never used images since the barcode font approach worked so well.

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

I can't guess if you had a question here but it appears that Python connects with OpenCV now.
Examples at https://www.google.com/search?&q=image+distortion+python+opencv

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

Numbers in variables or memory are 8, 16 bits for most assemblers. When you output, that's text so you need routines to take a memory location and output the text in the base you want. Same for input. Characters or text is input and you deal with conversion to a number to be held in memory.

No x86 CPU has instructions to do this for us. Hence we write code.

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

For work I would write this in C, capture the compiler's assembler output and use that for the function. For decades we haven't resorted to assembler except for the smallest of processors or for the lower level of a driver. This is something you will write in C.

Maybe this was homework but that was not told.

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

Have to write no. If I press and hold the power button long enough, both iPhone and Android will power down. Locked or not. To override this would require a change to the hardware on the phone. Why is this in hardware? Computers can lock up so there needs to be a way to power down in spite of what the CPU wants to do.

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

What is the answer to the total occurrences when the string is "aaaaaaaaa" and the substring is "aa"? For some it will be 5 and others will be around 8.

That aside https://www.w3schools.com/python/ref_string_find.asp doesn't do this count. You would have to wrap find() with code to step through the string and increment a count on each success of find().

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

How much is being paid for this app?

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

Example might be UNCBOT. I don't want to promote any company that sells ads Maybe google "ad resellers for Telegram"

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

Thoughts:

  1. Use your display() function as a template for code to write to a file instead of cout.
  2. Read https://www.tutorialspoint.com/cplusplus/cpp_files_streams.htm on how to write to a file.
rproffitt 2,701 https://5calls.org Moderator

Given only what you wrote/asked, why not change line 47 to honey(); ?

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

What scale are we talking about? I know a small business that whips up their invoices on Excel sheets. Another uses QuickBooks and the big companies I've worked with outsource it to big accounting firms with Cloud based apps for employees and vendors.

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

There's too much missing here. Given that you have Javascript I think this is already on a web page of either htm or html so maybe and this is guessing as the entire code base is not up for introspection (yes, I meant to use that word here) my thought is you need a web/page object to write what you want to write so it's visible without opening the console.

Here's a tutorial on how to change text in an textarea object: https://www.w3schools.com/jsref/prop_textarea_value.asp
Doesn't look took hard as it's one line of code.

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

For Reverend Jim,
Great question. It's for a factory production line and uses those USB to RS232 USB adapters which can be a pain to get working in a VM. Also, I didn't tell all. This was the last time we agreed to do an update so it will be the last update. Then again if management gets their price for an update (it's been doubling each year!) then we may have to do it again. The price is so high that buying some old dual core laptop on ebay is not a concern.

For the OP, I can't guess why anyone else would run Windows XP today outside of curiosity.

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

Windows XP SP3 here only took 20 minutes to reinstall. The target was one of our last Windows XP SP3 machines that we kept around for client support of a legacy app that was not going to be updated for any newer version of Windows. We don't bother with an antivirus because it's used for just one thing which is to edit the client's app, compile and ship out the new version.

The Internet is dead as it can be on this old XP laptop because everything is secure beyond what XP SP3 can offer.

Can you share your reason to run XP SP3 today?

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

I guess you want to ask https://www.google.com/search?q=linux+mount+without+sudo to which you could edit the fstab to add the user option.
Or you would use sudo.

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

In your debugger, examine again to see what it is at line 53.

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

Since you would bring project management skills to the game, yes. I've worked in many tech fields over time and project management is something of a constant that I used in electronics, software, documentation and product design. It's doubtful you will write that much code at a company that sells cloud products. My encounters with cloud companies seems to find half the staff is in sales, with the rest in tech support and not so many in development. All were buying their cloud equipment from major vendors, not one created it from scatch.

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

This is a fine example of poorly documented code as well as not much written in the design document. Yes, this is just a forum but as presented there's so much missing that any guess will likely be a bad guess.

I can't guess what the requirements are for 'id' so skipping over that, why not log what id is in your php code so you can inspect what is happening?

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

What a terrible course and assignment. Using a non-existent computer design from 1946? No wonder I see grads that can't break free from punch tape handcuffs.

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

The last reply doesn't appear to be what you asked above. Anyhow, the firewall rules will be in place shortly after a boot but sure, you can do that. Nod to priors like https://unix.stackexchange.com/questions/134682/iptables-add-rule-for-interface-before-it-comes-up HOWEVER this can be distro dependent.

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

Wait, isn't this in your book about Vijay IT or Victory? I used a Bengali to English translator and it appears you have your answers in your book.

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

I think I'll have to know what you mean by objects and data. Rows in the database are what many refer to as data. Schema would be a table. Since most SQL deals with one or a few tables at a time, there is no real impact if a SQL server has hundreds of tables. Finally, thousands of rows is a very small database so any performance issue is either a host issue, improper indexing or other.

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

Where in this code is that id number? I didn't find it.

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

Sometimes these ideas are not financially viable. We are seeing this in the USA where folk are asking for a livable wage and companies saying they don't want to pay that. Same problem for you. If you can't make enough to live on, do you blame your SEO?

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

Today I took a car in for repair. Not digital.
On the way back we picked up breakfast at Taco Bell. Not digital.
A few days ago I fueled up a car. Not digital.

Also, no digital marketing was considered or used. Are you sure that every business is digital because my experience in the past few days tells me otherwise.

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

Via E-Mail: "Brother, for further reading about this post you can check our blog in our website. than i hope you,ll change your mind."

Insta has other issues. It keeps asking me to log in over and over so it's unfriendly for me to use Insta to look at products. I'm sure that there are companies that want to sell sellers the idea that Insta is how to promote products. Maybe for those fashion items like clothing and makeup but my example of a solar power inverter is where I went to the maker's site to gather up the documents and specifications. I don't see Insta helping us here.

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

When I check on products I have yet to use Insta. I am usually at the maker or sellers site and for a recent bit of research I was back to the maker to find their product specifications, field setup and more for a solar power inverter. Insta is not where I go for finding new products. What an odd claim you have here.

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

Given the mention of SQL, why not have 3 tables?

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

No source, no way to see where it may be broke. Even so, it appears your code is pointing to the wrong string and missing a possible LF or CR+LF (which is OS dependent.)