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

Georgia is also a leader in data scientists it seems. See their graph:
GeorgiaCovidGraph.PNG

Yes, they did publish a new one. This one however will live on as a fine example of how to show bad data in a good light(?)

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

That's a great assignment they gave you. However up till this point the classes and work should have been preparing you for this so you may have to revisit your prior classwork, books and research to fill in what you didn't retain (knowledge.)

I'm an electronics designer first and later as microprocessors came into the design learned how to code, first in assembly and then higher level languages so my view on this problem is that it is NOT a C++ issue yet.

So what is it?

The problem is first how would you do this yourself and put that into repeatable steps. In fact such a design does NOT have to create a good circuit every time since you can randomly create such then test if it meets the other criteria. Or you may have an epiphany on how to create a good circuit then every time.

For example you could code up SIX routines as you randomly pick a number from 3 to 8 that know in advance the circuit network. Since the number of resistors is random then this may be the simplest to design.

Finally since these are resistors the only real answer to "expressed by a circuit" is that any selection and connection is a circuit since a circuit can be open as in no current so unless the assignment has a requirement that the circuit carry current through all paths, then you have an easier time here. As many will tell you …

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

What was the value for $birthdate when this failed? Hint: Echo, print, log, dumpvars, etc. to find out.

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

It appears to be buggy. Read https://forums.lenovo.com/t5/T400-T500-and-newer-T-series/How-can-we-use-the-built-in-Web-Cam-on-T500/td-p/877927

Try another camera like those from Logitech.

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

While the code is OK, it's not pared down to the minimum but I understand why.

So to reference an item on another form the format is simple once it sinks in.

form_name.theobject.thevalue

You do this on line 18 sans the form name. So to get or set the object text the full name of the object and value of line 18 is:
Form2.label1.Text

To set that it from form1 or another form would be:
Form2.label1.Text = "Message from Earth!";

To get the text this would be:
somestring = Form2.label1.Text

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

Small world as long ago I had apps on Windows Mobile version 6.5 if I recall. Windows Phones are a rare sighting so I'd seek out if there are Windows Phone specific forums. We couldn't follow Microsoft to Windows Phone for many reasons and it seems the app industry felt about the same. The consumers made the final vote.

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

Here's a think we ran into at the shop. Too many Ultimate versions were cracked or pirate copies and what was done for the crack breaks the upgrade process. That aside and you should know if that applied there are a few old PCs with virus boot protection which must be disabled as well as removing old antivirus suites before the upgrade.

In closing you write about "lose the data". Are you revealing there are no backups? If so, do not upgrade until there are backups. Also you can't install to another drive if there is an OS there. Can't? Yes. I will not enter a debate about workarounds as I use the straight and narrow path without hacks.

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

This sounds like an odd question. To sell products you set up your site to do that. As to SEO, that's something you work just like a million other folk. There are some million discussions about SEO so you should see what is being discussed today and avoid another SEO discussion.

Back to selling. The basics have yet to change. Have the product folk want. Have excellent service and return policies like Amazon. Price is secondary to almost anything else including SEO. SEO does not make the sale.

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

I received your message. Can you supply a pair of pared down code examples? One would be for the one form and the other would be for the second form then I could give you a single line example of how I change content on another form or get a value from the other form.

However this assumes both forms are active. If they are not then you may have to put the value or such into a global variable.

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

You ask "how to connect labels in one form with strings and integers in the other,"?

But I don't know your design. It's not common to have more than one form active so given I don't know your design how about how to change a title in a function/method to a specific form element?

You probably have seen or should know how to use Me.title.text etc. So for when I need to change Form1's title while in a method or another form's code I would reference it like this" Form1.title.text = "What I want."

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

Right now, AFAIK you get those from your MSDN subscription. From what I've read, NBD (no big deal). There are folk that are generally upset with Microsoft, Windows and more. To those my usual reply is "Time for more Linux or Apple."

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

You noted that this is in "c" and to get a mouse, graphics and connecting the mouse click on such will be highly dependent on the libraries and IDE used. As such there can be no answer until more is revealed.

Reverend Jim commented: The tag says c and the title says c# so ??? +14
l1bero commented: Sorry for making you confused, that's all in C#, Visual Studio. +0
rproffitt 2,701 https://5calls.org Moderator

I think I need to comment about BartPE. I could be wrong about the exact number of minutes but let's go.

  1. BartPE does not give you complete machine support. You use it to "run" Windows in a limited fashion. Might find no support for WiFi, printers etc.
  2. For the versions I used, it would only run for 60 minutes then shut down.

Conclusion: This is not the Windows you may be looking for.

Now for most of us we just need a bootable OS to get at a crashed system's data. For that I gave up advice a few years ago about Linux since it fits on CD/DVD/USB-Sticks and for such use I contend we don't learn Linux. Quick read at http://tips.oncomputers.info/archives2004/0401/2004-Jan-11.htm

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

Since you can post code here, post the relevant code and write what line(s) it fails on.

Also, a tried and true method to debug is to either single step in a nice IDE like Visual Studio so you can watch variables and see why a call or function blows up or go old school and print out the variables prior to the line that crashes.

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

Small world. Long ago we would use such in circuit simulation to randomly pick values for a circuit and see how a million circuits with variable parts would perform.

As such you are an expert do you know about Gausseian versus the other types?

  1. https://en.wikipedia.org/wiki/Random_number_generation
  2. https://www.doc.ic.ac.uk/~wl/papers/07/csur07dt.pdf
rproffitt 2,701 https://5calls.org Moderator

If you are looking for hire a programmer, state not only the price but supply a longer design document. If this is a task for work, ask for more team members. If this is homework, then use what you learned so far along with your design document to build the code. Code comes AFTER the design.

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

In regard to "game slows down" that's a great topic in game design.

I can't write at length about this but there are different approaches to getting a game to run at a steady clip. The main one I recall and mind you this was something we worked decades ago was to set a timer as so many times a second and effects, movement and such would be made during each tick of the timer.

If you don't have a timer you run into the problem that it speeds or slows down as you move, fire and more.

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

Keeping in mind this is your homework, posting the assignment has never resulted in anyone writing the app, documentation and a tutorial for you to stand up to your professor grilling you with "Now why did you do that here?"

That out of the way, what's stopping you from getting any item completed?

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

This sounds like Berzerk!

Sure enough there is source code for PyGame for Berzerk.

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

This sounds like Berzerk!

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

Keeping in mind this is your homework, posting the assignment has never resulted in anyone writing the app, documentation and a tutorial for you to stand up to your professor grilling you with "Now why did you do that here?"

That out of the way, what's stopping you from getting any item completed?

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

OK, I've read these exchanges and there are cultural differences that to me explain why it's OK for some and not for others.

For Reverend Jim, let's take "this is my girlfriend" and sure enough in Japan you can rent them and more. How about an entire family? (example: https://www.youtube.com/watch?v=dLBNO33bMX0 )

So given the global reach of Daniweb you can see that some may think it's perfectly acceptable to buy follows, likes or whatever those thumbs up are per platform.

Let such folk chase the rabbit (reference to gray hound racing where they never, hardly ever? get the rabbit.)

There are entire businesses built around behaviors that are not that good for us. Gambling, smoking and what else?

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

You'll have to tell more such as is this your site, on Faceobok, Tweeter or other?

Your site would have you implement it. Other sites? I'm going with no.

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

This just in: VP Pence delivers empty boxes of Personal Protection Equipment.
https://twitter.com/LeeHolly81/status/1258755220034785280

Reverend Jim commented: Unfortunately that is completely believable. +0
rproffitt 2,701 https://5calls.org Moderator

For Yusaf_13.

You asked "what link would you recommend using to get some bootable USB version of Windows? what is the Windows Go to version? what are the google workarounds?"

I had hope you would research some of that on your own. I do not want to make you feel bad here but here are the research methods I would use.

Remember that Windows does not perform well on USB drives so you don't do this except for a short time while you fix the problems with your PC>

  1. what link would you recommend using to get some bootable USB version of Windows? A: https://www.google.com/search?&q=bootable+USB+version+of+Windows
  2. what is the Windows Go to version? A: https://www.google.com/search?&q=what+is+the+Windows+To+Go+version
  3. what are the google workarounds? A: https://www.google.com/search?&q=bootable+USB+version+of+Windows

Now that you asked I'm going to have to revise my answer about the To Go version as there is news about that which I missed:

The May 2019 update of Windows 10, also known as version 1903, will be the last Windows client operating system to have support for Windows To Go, Microsoft announced recently.

I will no longer write about To Go given it's end.

wpidn.com commented: This is what I wanted to know. Thank you! +0
rproffitt 2,701 https://5calls.org Moderator

"light grey text on a white background"

Yes, that was verboten years ago. If you can select your own color scheme, then fine, but some sites just want you to squint as far as I can tell.

I've been at this too long as well. Pre-DOS, WordStar on CP/M and before that AppleWriter, teletypes and paper tape.

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

I have not done this on Android but even on the mobile systems I did I was sure to not call for the battery level, state and more too often. Let's read what Google writes about this:

Generally speaking, the impact of constantly monitoring the battery level has a greater impact on the battery than your app's normal behavior, so it's good practice to only monitor significant changes in battery level—specifically when the device enters or exits a low battery state.

Unless your activity stays in that activity for say 15 or more minutes then I'd display the last known battery level in those activities and then update when we go back to main. Constantly checking the battery constantly creates more power use so use it once in a while. I've seen code where they read it many times a second.

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

I hear you. But here's the deal. Visual Studio is a huge Swiss Army Knife so my view now is that beyond any tutorial you have to find focus on what you want to do with this monster of a dev system.

My work was mostly with an older version but even there I had apps for Windows Mobile, command line tools, factory automation apps and so on. With each effort I was using somewhat and very different areas of Visual Studio. For me it was great to be able to do all that with one big dev system but new users may feel lost.

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

I see Reverend Jim copy out a real doozie of a code passage which reminds me of an old saying:

When I wrote this only God and I understood this. Now, only God knows.

That code is a fine example where comments or more are mandatory since only the author may grasp what is going on.

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

While that's quite the demand you made there, I have to ask:

  1. Where are you stuck?
  2. Why all those tags? What does ASP, C, C++ and well all those have to do with MARIE?
rproffitt 2,701 https://5calls.org Moderator

Sorry but not yet and maybe no. While I've worked with such over the years, in all cases the device is known (make, model, etc.) as well as the maker supplying drivers and API examples.

There is no known generic solution to what you ask given what you told so far.

What to do next? Ask the maker how to transfer data. Tell others what this device make, model and maker's web site is if you want to have any hope that others will offer ideas.

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

You write you want it to be the last 15 days. Now that you know about the WHERE clause and have your documentation on date and time functions you only need to work out the code for this. To me this would be something like this but I leave the actual coding to you.

Take your line 13, add WHERE then statement/code something like order_date > (NOW - 15 days).

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

While this would make a fine example of coding for failures, checkdnsrr() relies on the DNS functioning. I can't know which DNS your server uses but DNS failures do occur and if you happen to be using the DNS while the provider (ISP, Google, etc.) is performing maintenance then I see how you can get many failures.

Depending on how often this happens or other questions your choice on how to handle this one.

  1. Maybe for this case you add a checkdnsrr() error counter as a tripwire to abort the check when it exceeds some threshold.
  2. If you run your own DNS then you look into its log files.
rproffitt 2,701 https://5calls.org Moderator

I'm going with no. You can google your topic but I think this answer told us why:

Answer:

Here's the problem; even though your client offers two services, they are both served at one location. Google's way of doing things is to offer ONE business listing per physical location, with a few exceptions such as doctors offices, multiple office locations, etc. In those situations, each business must have unique contact data for each listing including phone, postal, etc.

From what we're seeing by looking at your website, it's not multiple businesses, merely multiple services. Unfortunately, that won't qualify for more than one Google My Business listing

Of course this will upset those that want things to work differently than how Google demands it to be.

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

Dani, you bring us the best broken things.

Anyhow, and this is a stretch, did the email address include more than one period mark "."?

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

To this I really want to write the one word answer of "Yes."

So yes to what you asked to try as well as consider using tar. The tar command is older than a lot of users yet I find Linux users ignoring tar. I can't explain why.

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

Let's hear what OS you were using. Windows in the most common versions does not support this. If you want some bootable USB version of Windows it's not cheap. You want the "Windows To Go" version. Or you google workarounds which from what I've seen are pretty awful as they break then the user is asking for support which never happens.

Now about Linux. That's NBD! (no big deal.)

Yusuf_13 commented: what link would you recommend using to get some bootable USB version of Windows? what is the Windows Go to version? what are the google workarounds? +0
rproffitt 2,701 https://5calls.org Moderator

My initial thought is about line 12. If you want a certain date range I'd consider adding a WHERE date is in the range you desire.

If fact, the first example at https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html shows this idea.

nishita_1 commented: Dear sir, thank you for your co-operation. sir i want auto range. sale every day update then last 15 days automatically show. then what should i do. +0
rproffitt 2,701 https://5calls.org Moderator

Not yet. You should show the code in question along with details about the line that errors such as what values it uses at the time of error.

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

I have a question.

When you write these assignments, do you make sure your name and company logo is submitted along with the papers?

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

I noted that it looked to me you read the text file more than one time. Give me a quick overview of how you think your code works.

Since you only need to read the text file one time, speed should't be that bad. UNLESS you do it more than once.

My method for a commercial work I published and used by thousands (service industry) was to only read the text file when it was updated. Then the startup would take a bit longer as I read, parsed and created a file that could be read directly into the data space (arrays) without parsing or conversions from text to numbers.

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

Let me write that your code above is incomplete but even if it was YOU need to tell me about your design. To me and I'm guessing since I only see the code above I think I see your code read the text file everytime you scan a file. That would be a huge overhead.

In psuedo and again you must tell the forum your design to avoid reverse engineering and guessing I think you are getting a list of files to scan then.

  1. reading the text file.
  2. reading the scan file.
  3. doing md5 and such.
  4. if not done, go to step 1.

If you are reading the text file every time then you have lost a lot of time. Those signatures need to be in some array that you read the text file one time and one time only.

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

I consider this to be two discussions.

  1. Speed. As in "How do I speed up my __?" As in functional areas like that text read and hash creation.
  2. Crashing. That is where YOU crash the app while running it from Visual Studio and find which line failed and then think about why. You have the onus here as you have your Visual Studio all good to go and would see what line as well as being able to set a break point on that line to inspect what you are passing to calls in that line or the math.

I'm going to chat about your first slab of code where you read the text file. These are notoriously slow so in a few apps I only read the text file when it changes. If I see the file is the same as before I read a pre-digested, pre-converted file into my array or structure. This way the slowdown on that area only happens on updates.

In parting antivirus apps have moved far beyond the method you are implementing so I take it this is not a serious attempt to write an antivirus but a learning exercise.

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

My SO wanted a COVID-19 test. Now does not want a COVID-19 test. https://imgur.com/gallery/ibRxcKG

Is this the US standard for testing? Must be.

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

I take it this is not homework. If I needed this in Prolog I'd look at what has been submitted at https://rosettacode.org/wiki/Fibonacci_sequence#Prolog

In parting, my Prolog is long gone. Last seen about 1990.

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

I was following you along till I read the word "tag" in your question. In the past I used https://www.google.com/search?client=opera&q=play%2Fpause+button+on+a+html5+video for examples. But why you put tag in your question eludes me.

Explain!

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

In the link you supplied there's https://www.geeksforgeeks.org/prims-mst-for-adjacency-list-representation-greedy-algo-6/ which looks like C code to me.

Reverend Jim commented: It's like me. Completely classless. +14
rproffitt 2,701 https://5calls.org Moderator

OK, you have code but I can't find what has stopped you. We have plenty of prior examples to work from if we didn't want to dig through the C# help system.

But posting code is a little hard on first time users. I can't guess how new you are to computers but since this is Visual Studio is the copy paste method unknown to you? I can find a tuturial for that if that's what you need. If it's how to post code to Daniweb, Reverend Jim steps up to the podium at https://www.daniweb.com/posts/jump/2160679

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

Can you clarify where you are stuck? Do you need a compiled ready to use app or can you share the code section that you have trouble with?

Tonny_3 commented: in form1 i have buttons: draw, move, remove and etc (what can you do with shapes), in form2 you can select shape and input the lengths of sides. +0