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

The subject question is how to create Java program. The discussion follows with what looks like an assignment which was copy/pasted and no questions.

Usually the course instructor shares how to create Java programs with a suggested editor and/or IDE. To create such you use that system.
Here's one I see students using today: https://en.wikipedia.org/wiki/BlueJ

As to the assignment please read about such at https://www.daniweb.com/welcome/rules

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

You tagged this with Java but I see no Java code. Where's the code?

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

There's untold story here.

  1. If the pictures are external.
  2. If the pictures were assigned in the IDE.
  3. If we can swap the object locations.

I can think of a number of solutions so tell more so I can offer a better fit.

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

It appears the main method is on lines 49 to 65. Then you appear to start writing code but without declaring the new method.

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

Maybe I should have simply written for you to explain what you meant to ask. The better your question the more likely others will respond.

Muhammad Hassan_1 commented: if compiler print "welcome Student " then he will come to class and print the list given above. +0
rproffitt 2,701 https://5calls.org Moderator

You posted 20 items there. What do you want to discuss?

Time to pare down and get one thing done at a time. Sometimes you get to say, build a house. You can't do everything at one time. Example: You create the foundation and home before you put on the roof.

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

That's an odd post here. Take more time to explain what you meant to ask.

Muhammad Hassan_1 commented: how much time to take? +0
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

The function f appears to put the value 2 into the second argument.
You can test that out as need be. No conversion appears to be required as I would toss function f and set j to 2. Done.

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

You asked that elsewhere. The answer was 1 or more million USD due to not only the app cost but servers, promotion and more.

If you feel it shouldn't cost that much, go ahead and submit what you want to companies that write apps. Sadly you will find that even if you had the app you still need the servers and the code for the backend!

PS. Found your other post at https://www.techrepublic.com/forums/discussions/how-much-does-it-cost-to-build-an-app-like-clubhouse/ (Has answers!)

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

Maybe I'm not understanding the problem. I took this system was the usual two or more board system with some serial comms to send messages around.

But then you write "I am finding it difficult to send data from another tab via ESP-NOW."

Hold up, I wonder if you are running the code on some PC on two boards and want the code development IDE to send data across a tab?
Something's not jiving here.

My usual system in the end doesn't use any PC as the code is installed on the boards, the boards are connected and the PC is no longer connected. Sometimes I have to pull out the oscilloscope to check if the comms are good.

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

Here's an understatement at that link:

If you’re a Linux user, then your VirtualBox USB support set-up will be a bit different.

After you install the extension pack, more (arcane?) commands follow.

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

Ahh, Virtual Box and getting at the USB ports can be annoying. At the moment I don't have that setup so I can't write anything about that area except it was a few trips to the settings for that VM.

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

That would be your code. I can find the module easily but if you maintain it's a module failure you are posting in the wrong place.

I've been more than patient here. What is taking you so long to share the failing code?

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

https://www.mobileread.com/forums/showthread.php?t=327873 notes a few things.

The keyword here is KLUNKY.

rproffitt 2,701 https://5calls.org Moderator
  1. So you want to sort a structure: I see hints at http://www.cprogrammingnotes.com/question/sorting-structure-array.html
    Remember no one here will write your code.
    Sorting can solve for task 1.
  2. and 3. As to the next task you should be able to write more code to search as noted.
rproffitt 2,701 https://5calls.org Moderator

You mention Linux in a reply and not at the top. I must be reading the wrong web page on the Kobo. Is there a Linux app?

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

Sorry I meant questions. No code so I can't check if there's some spelling or other error.

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

I found no one and no document that says you can send to device. Here's some text from a seller of the Kobo on Amazon:

Kobo uses its own store, so it won't take amazon purchases. Furthermore, Kobo also uses a different propietary ebook format and DRM, different to the kindle propietary format. If you're using Kobo, you can either use Kobo's store ebooks, or ebooks purchased anywhere that is not kindle store (Kobo supports epub, the most widespread standard for ebooks besides kindle's closed format). see less
By Jon I. on August 19, 2016
Yes but it involves a few steps. I do this for my Kobo Aura H20 for Kindle books. First, install Calibre (https://calibre-ebook.com). Second, install the DeDRM plugin (https://apprenticealf.wordpress.com/2012/09/10/calibre-plugins-the-simplest-option-for-removing-most-ebook-drm). Third, install the Kindle for PC ap… see more
By Rob Fargher on January 26, 2017
Not sure about the purchases. I use Calibre to manage my library, convert files up and down load to my current Kobo, it worked well with a Kindle too. As I said not sure about the purchases of kindle books.
By Nick on August 18, 2016

Be sure to follow the maker's documentation on how to install books to this one.

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

You never answered my question so we're at a standstill.

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

Does it do what you expected it to do as well as get a passing grade by the instructor? If so, then yes.

Be sure to remove extraneous commented out code to not upset the reviewer.

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

That's a directory listing. No code and no answer about if you installed the mechanize module.

yorekaa819 commented: I already installed mechanize but when I start the program it said there that theres no module name +0
rproffitt 2,701 https://5calls.org Moderator

Read https://github.com/s0md3v/Striker/issues/30

Did you install it?

PS. You didn't supply ANY of your code for us to see.

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

Let's see your code. Without it, no one can tell you much more.

PS. I see a prior at https://github.com/s0md3v/Striker/issues/30

Question: Did you install this module?

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

Without code to look at, you would be looking for that word (mechanize) in your code.

yorekaa819 commented: How can I do that? +0
rproffitt 2,701 https://5calls.org Moderator

So there are more php scripts than what you shared in your top post? That means we don't see the entire system and can't comment.

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

If it's just cost, then you can compare those. To keep this thread from being a spam thread, let's keep it link free.

Long ago I went with GoDaddy over and over. Never seemed "costly." What was costly was, a very long story about consultants that told the companies they needed to go full custom then spent years in development. Finally they came around to how that wasn't required and went back to GoDaddy. Their sites came online in a week.

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

The assignment looks to be what is given after many classes on the subject matter as well as drawing from your prerequisite coursework.

If you need clarification on the assignment that would be from the instructor as I didn't give out the assignment.

As you know supplying for the answer rarely happens. But you can start a discussion on something specific such as what is Python etc. But again you must show some evidence you are working on the subject.

1427_Sharupya commented: he told us not to disturb him. +0
rproffitt 2,701 https://5calls.org Moderator

Remember "Do provide evidence of having done some work yourself if posting questions from school or work assignments"

You posted 20 items there. What do you want to discuss?

1427_Sharupya commented: I could not understand this assignment . +0
rproffitt 2,701 https://5calls.org Moderator

If anyone did the conversion for you then any questions by the prof would be unanswerable from what I read above. I think you understand that.

Some students pay others to do their homework or have others complete such on the web, they eventually have problems later as well, they can't pass the final or such.

I don't mind giving up ideas on how to convert or what I would do at work (please note my first reply.) But in the end it's your work you must show and understand.

rproffitt 2,701 https://5calls.org Moderator
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

Assignments can be for work which I take it you are IRL and won't assume otherwise.

OK, since it's homework then let's tackle this two ways but first a question. What good is that c++ code since it's not your code?
If you use that, then you won't be able to explain "how does this work?" to your prof.

Moving past that, converting from c++ can't be that hard. Take it line by line and work out the code.

  1. Line 5 could be as simple as writing n = 5 or as complex as https://www.oreilly.com/library/view/python-cookbook/0596001673/ch05s16.html depending on if you want n to be immutable. Only YOU can make that determination. For me n = 5 would get the job done but remember I'm from the real world where we must "get it done" in terms of cost and time.

Now what line of code stops you now?

  1. Let's say you take the equation and you want to create code. That's a fine way to learn that sort of work. Again this is your homework so I can't do that for you. Besides you must understand the math plus Python to get this done which may be the entire purpose of this assignment. Also it's a fine way to test if the students have learned what has been given so far.
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

So this is "it doesn't work" code/question. I see in the top post at line 58, 59 the error message and ErrorInfo but no mention this was seen along with the ErrorInfo.

Beyond sharing this information you know to insert var_dump where needed to see if all is ready for the $mail->send(); on line 53.

Tutorial at https://www.w3schools.com/php/func_var_var_dump.asp

I can't send this without noting that one person left out they succeeded on their home server but not on the actual host. Details like that are needed.

Mannan_3 commented: I'm sorry, I don't understand what you're trying to say as I am a beginner at PHP. ] +0
rproffitt 2,701 https://5calls.org Moderator

The process/method of sending email varies with each site and host. You'll need to determine the method used for your current host. I can't tell you this. You must get that information from your hosting provider.

-> When you do your first email via code, don't mix it in with all your other code at first. Write a small thing that sends you a test email so you know you got the method/steps correct for your site/host.

Mannan_3 commented: Hi there, I have done this within a separate file and I can confirm that it does work. I just don't know how to integrate it with registration form +0
rproffitt 2,701 https://5calls.org Moderator

You should tell us what's not working. A quick look at the code doesn't tell me what is broken.

Mannan_3 commented: The main issue is that the email doesn't automatically send. The email functionality doesn't work but the registration process does. +0
rproffitt 2,701 https://5calls.org Moderator

Me? Decades of embedded design and code. But I do not have your board/system to look at so moving on with my current thought.

  1. I'm guessing the post above is incomplete code. That's why I can't find this or that. Moving on.
  2. Here's where I'm going next:
    You write "send that data to a slave ESP-32 using the ESP-NOW protocol." Do you have any communication working?

Sometimes I find the serial comms to be an embedded worker's undoing. There are tutorials about ESP NOW so I'll end with a search for some.
https://duckduckgo.com/?q=send+that+data+to+a+slave+ESP-32+using+the+ESP-NOW+protocol.

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

Would not take code at all. Here's why. In such a system picking random numbers against a (random) lottery would have no better odds than taking your favorite set of numbers and playing it every game.

Finally you didn't show your efforts so far along with what stopped you.

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

Please correct those code submissions. All those extra blank lines distract and show not much care here.

My background does include DSP work which had FFT in various languages but your lack of care has me not write much more than about your code so far.

Also, your program's goals are untold. I see more than a FFT here with what looks to be graphical output. That is a lot more work as for "C" we'd have to pick our graphics library and more. There is no easy conversion. Maybe if we moved to C# or such but hey, you didn't tell enough to start discussing possible development ideas.

shiv.manoj23 commented: I'm sorry about the extra blank spaces however the basic requirement of this code is to read the data from excel sheet calculate FFT and plot graph. +0
rproffitt 2,701 https://5calls.org Moderator

Asking multiple times may not be getting you replies. Read https://www.daniweb.com/members/1202822/jiye

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

So it's homework/assignment. That said the class should have given you the skills to do this in prior classroom instruction and assignments.

But hey, let's discuss how we store data in a file. Remember there is NO STANDARD here or far too many so I take it you're going to do this in the way/method that you would never do in apps later.

Here goes.

You collect data from the user and write it to a file. Done!

Editing said data?
Read all the data from the file into your arrays and such.
Ask the user for the changes.
Change that array entry.
Write all that data out to that file (overwrites old file.)

Simple but never something you should do IRL except for small use cases.

Nymphalys08 commented: Thank you for your answer, rproffitt. Will look at this. +0
rproffitt 2,701 https://5calls.org Moderator

My advice is to forgo the old data in a file for this app. Use a database.

Nymphalys08 commented: Hi sir rproffitt, we are required to do a file handling.. can you help advice me on this? Thanks +0
rproffitt 2,701 https://5calls.org Moderator

Your lack of effort here is concerning. But hey, there's a Daniweb post about something that might apply.

Read https://www.daniweb.com/programming/software-development/code/217180/simple-equation-solver-in-c

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

Just a reminder that "Reusable Code Snippet" is used when you want to share working code along with a tutorial.

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

Via an e-mail alert you wrote:

So this also works for numbers as well?

The items in this control are text so the number is text here so yes to that question via email.

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

Queries may take time. Maybe after line 35 you can do some data dump to see what came back?

Full disclosure. Not an area I've used but have run into Google API limits and speed bumps over the years.

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

Here's what I'm reading:

You are limited to 4 concurrent queries