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

This sounds simarly to the old 15 puzzle game noted at https://rosettacode.org/wiki/15_Puzzle_Game with a few twists.

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

So that's one well worn code base. I mean if I look at https://rosettacode.org/wiki/Conway%27s_Game_of_Life I see over 100 implementations in 99 languages.

In your case you may wish to start with an array, fill it with the starting data or states then code to follow those rules and iterate (loop) over the rule the number of times you wish.

Finally you exit that loop and print out your array.

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

I'm going to guess you are new to VB. I see at line 38 the usual End Sub but can't find the beginning of said routine. You are also seem to be filling all the rows as bookedIcon in line 33 but I see in line 2 your command is to delete all the data. So anytime this un-named procedure runs (you don't tell how) that line 2 appears to be the clear the database command.

As you may be new to VB, tell me how you tied this unknown procedure to your reset button.

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

That's all well and good but you left out what line is giving you an issue.

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

As to the code, that would be the same code that you wrote to initialize the database. Maybe you need to share your code and point out where you are stuck as to line number or syntax. And to be clear I don't see members writing the code or system for you. They help you past the error or share ideas about the system but to get others to code it for you, you may have to post a help wanted with rates for the system you would pay.

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

Since I can't find a design specification, only you can decide what those buttons do.

Now to help move things along some observations and comments.

  1. I can't find a question in your top post. So it's hard for folk to guess what your question is.
  2. In such seating and reservation systems you have your admin and per user view. The admin would be capable of a full reset, the user should only reset their choices so far or commit to the seating but at no time would the user/buyer control all seating.
  3. As such another column may be who owns those seats so a reset from the user view would only uncommit their selected seats.
KIRTHANA commented: 1. I'm looking for help to code "Reset" button so that all the booked seats turn to available +0
rproffitt 2,701 https://5calls.org Moderator

Just a tip from my years working with accounting software. Skip storing your $3.50 as floating point and move to your lowest non-divisable unit or the penny. Then all display conversions are one way from pennies to dollars and cents and never from dollars to cents.

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

The last web designer I worked with could and did for a project setup a Tomcat server, write the code for the backend for vehicle GPS tracking and then the reporting backend, user interfaces, Java, Javascript, HTML and quite a long list if we keep going.

Are you going to do a lot more than what you listed? Otherwise you may be what I may call a graphic artist which would not be a web designer but a skill a web site can use.

PS. In other words, add to your stack. Example: https://www.daniweb.com/programming/web-development/threads/519207/how-can-i-become-a-full-stack-web-developer-in-half-a-year

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

So the old maxim that "we only lose what we don't backup" is still true?

I'm running into newer users of PCs, Apple, smart phones and more that feel this is a dinosaur of a problem and the fault is not theirs.

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

Your code is fuzzy and unreadable so I can't tell if you used the idea from https://www.w3schools.com/howto/howto_css_hide_scrollbars.asp

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

It appears you do this lock in code. Examples are out there so here's the google that notes how to lock items.
https://www.google.com/search?q=How+to+lock+Access+2010+record+after+it+has+been+saved

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

Recent events had me think of Franz Kafka. Specifically of changes to bureaucracy and legal actions to make it more challenging than necessary.

For a quick re-introduction to what Kafkaesque is, watch https://www.youtube.com/watch?v=wkPR4Rcf4ww

Another fine example of getting caught up in the bureaucracy is how we treat out homeless (arrest them, fine them, what else?) and immigrants. While I have little problem with illegal immigration if you listen closely many consider immigrants to be same as the illegals.

Our new immigration and asylum system is veering toward or now is "Kafkaesque" as the bureaucracy is set to reject them all.

The homeless which you can debate why this is rising is also becoming subject to Kafka ideas as not only did they lose it all but now they may be fined and get caught up in our legal system which is very expensive to deal with.

So that's two fronts our society is failing at which this thread's namesake is definitely not helping.

  1. Immigration. A key component to slowing immigration is to help countries keep their citizens. That used to be the State department but under the current admin it has been gutted and we as a nation have fallen to "America First" and other ideas that actually produce more immigrants and asylum seekers.

  2. Homeless. While there are many causes one stands out in the past year. Look at the cause of US personal bankruptcies and studies range from 62 to 68 % …

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

I was tooling around the webs today and an article codified a thought I had about your predicament. So what was the thought?

I wonder if your SQL updates are updating and accessing in the same order. Since I'm terrible at writing this up, here's the article's text and link.

Make changes to the application. In some cases, you could greatly reduce the frequency of deadlocks by splitting a long transaction into smaller ones, so locks are released sooner. In other cases, the deadlock rises because two transactions touch the same sets of data, either in one or more tables, with different orders. Then change them to access data in the same order, in another word, serialize the access. That way you would have lock wait instead of deadlock when the transactions happen concurrently.
From https://www.percona.com/blog/2014/10/28/how-to-deal-with-mysql-deadlocks/

Reading above you don't want to break up the long transaction so if there are multiple updates in action, do they "access data in the same order"?

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

Maybe with Python's index feature.

Tutorial at https://www.geeksforgeeks.org/python-list-index/

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

Incredibly off the mark. I wonder if you are really aware of how most programmers and creative minds work. Nope, I have to write you need more time at this work.

Take some time to get more courses in this area and then come back after you've completed your studies.

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

This is what they teach you at techmedacademy? Incredible and a sure sign no one should consider them for any course or service.

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

When you or others solve your question, please mark the discussion solved.

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

Next time share code so we can see it. Also tell what you wanted this line of code to do.

As a researcher I would also avail myself of prior discussions about that error. Most likely, your code is incorrect but as there is no code shared, only Karnac will know and tell all.

Mr. Lemic commented: forgot a semicolon +0
rproffitt 2,701 https://5calls.org Moderator

Sounds correct to me as the first is string + some other string.
The second example uses a minus sign gives up a clue it's math and it does such as math.

Also the following can really test a new developer.
jshell.png

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

This reads like a typical assignment so I'll only note that I would definitely use the JUMP ELSE somewhere in my solution.
Again, I can't provide code since that would be doing your homework.

ss00ss00ss00 commented: Load x Subt y Skipcond 800 Jump Else If, Load x Add y Store x Output x Clear Laod z add w store z Output z Else, Load y subt w store y +0
rproffitt 2,701 https://5calls.org Moderator

Remember I'm kicking it around and am only a sometimes MySQL programmer. It's my go-to solution for my factory test software that I developed long long ago. Sorry if I can't do more than this.

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

I took it as if the code reflected the need to retry on line 3, 4, 5. Since post counter as you say fails, that could be it's own transaction.

But what about logging deadlocks? https://dev.mysql.com/doc/refman/8.0/en/innodb-deadlocks.html seems to note we may be able to see the last deadlock and more.

I can't guess the current load on the servers but as others have noted the posting loss issue is recent. If there is some recent, most of us won't know that but one more thought.

https://dev.mysql.com/doc/refman/8.0/en/innodb-deadlock-detection.html notes https://dev.mysql.com/doc/refman/8.0/en/innodb-parameters.html#sysvar_innodb_lock_wait_timeout and 50 seconds feels like that long delay when I post and then it is lost. I can't imagine updates to your database taking that long and then just how often do posts occur?

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

In one case it's an US industry. So money?

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

Let's roll back to where you wrote "all users open in different tabs, when I click on one button."

How about simple? If your site allows something like www.somesite.com/?user=donnie then almost all browsers all you to create a folder of URLs with ?user=donnie then ?user=marie , ?user=osmonds and so on that in a browser I can use that group and open all tabs in that group.

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

So I take it that the insert into the post table fails. My thought is that if it fails once, it should fail the next time so deeper inspection of the insert and its data is required so one can try it manually to see if any error is thrown via a command line approach that isn't logged otherwise.

I had another thought is that what is being inserted may matter but that's unlikely to be the case since the losses I've experienced were all plain text without any embellishment, not even a word in bold.

TL;DR. When it fails, log that insert data to try again manually in hopes of more feedback. Capture any additional errors if possible.

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

I am not an expert on this but recall a few things. First, implementation, version and host OS dependent so you can not make a blanket statement except there are cycles consumed in any sleep() I've seen in decades. Now are said cycles consumed in sleep() entirely? Back to implementation, OS etc.

There are long priors here with lots of testing showing different results from different OSes including said Mint version X.YZ vs. X.YY.

And it gets very hard to measure with multiple core hosts. Sorry if this doesn't help. My thoughts here are only to share that the answer is not black and white or yes/no.

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

@P, isn't that fundamentally broken as by popup blockers and more?

Put another way, even if you got it to work, the user's browser settings could break it. I would not implement this just on these issues alone.

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

While it's poorly formatted (F rated), line 26 as presented doesn't make sense to me why there is a brace there. That is, you have your _Bool palindromes and it's left brace on line 2 and on line 24 it's closing right brace then you have an opening brace without a reason why. No new function or such so ... explain why you did that.

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

While I will repeat "It's been well over a decade since I worked with Xilinx, Atmel and other devices but for this level of support" you would be checking with the designer of the code for this FPGA.

I should not have to expand what FPGA stands for but since it is programmable no one but the designer and those that understand THIS design can answer this question.

I understand and used FPGAs for years but as I am not on the team for the design that loads into this FPGA, I can only supply less than the tip of the iceberg of information.

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

I'd call up Microchip's Field Engineers for this one. From Microchip's page:

Extensive Ecosystem:
Free Linux® distributions
MPLAB X Integrated Development Environment
MPLAB Harmony 3
Complete set of C examples for bare metal users
Multiple third-party software and hardware partners

You'll likely have to ask about that last item. Folk I know stick with MicroChip's dev kits and offerings.

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

Say Jim? My buddy in BC, Canada wrote back with this. Any clues what's up or down?

That's amazing!

I wasn't able to install it though. I've got a linux machine here with Python 2 and Python 3 on it, but nada! Says the package isn't actually available. Might be a US only thing.

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

Certainly sounds like your WordPress host needs to be asked why they are doing this.

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

Think about line 5. You declared an array of pointers. Then you parse your content and point at your field but then overwrite what is stored at field.

Since the only storage is field all pointers point at field. You'll have to rethink where the strings are stored at and where your pointers point to.

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

For me, ads have never been a big bother. What really brings down the quality are posts such as the member above along with
https://www.daniweb.com/members/1169854/alilufyan25
https://www.daniweb.com/members/1169853/baabrozreal
which are as close to drivel as they come. Both these members appear to be here just for the tagline spam. They show little to no care in the replies and if there was a wish maybe it would be as in Reddit where enough downvotes and their posts never show.

If there was a reason to be done here, it's accepting such behavior.

JamesCherrill commented: I agree with rproffitt (as usual) +15
rproffitt 2,701 https://5calls.org Moderator

I know a fellow that used USB on Microchip products. I'm very sure it was the chip you used. He has the gear to work this out. His fees are reasonable.

His LinkedIn is at https://www.linkedin.com/in/earl-schmidt-962a631/

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

Sorry but I should have added this as well.

https://www.daniweb.com/welcome/rules notes:

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

This way we can see how far you progressed plus you can ask a question like "Why does line 42 not tell me the answer to the ultimate question of life, the universe, and everything,

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

as a mod, you haven't ever been seeing what most see.

Which is why I use more than one browser. One is logged out so I get a better picture of what others are seeing.

And here is my apology if I upset you in any way. I truly hope this new feature helps those that want it. That out of the way, finding out what people want is as hard or harder than finding out what your puppy wants.

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

Why does this look so much like Homework 2 and 3 at http://c-class.weebly.com/homework.html

If anyone does this work for you, can we copy this to Art Wangperawong, PhD with your name too, just to be fair?

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

I thought I had shared a thought here so here goes again.

Just a few days ago an ad popped up for a performance in my town that I didn't know or hear about from others so I clicked through to learn more. Might go to that one.

Pretty rare to see something that I'll click on so in the years here I think I've clicked on two ads. So much for all that talk and articles about targetted advertising on the web.

As a mod I think I want to see what most see. Or if I pay I need to toggle it on/off which is more work for you.

If you want to see the present mood on pay to play or such, look up Fallout 1st such as https://falloutfirst.com/ and more on Reddit. I'm not saying it's a good or bad idea, but put on your fire suit.

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

Sounds correct for this site. Was there a question here?

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

So this is only when it's my post? I can't make this happen to this (your) post here?

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

I just tried this and it seems fine. Can you tell more about how to create the issue?

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

So you want to read numbers from a file and write to another file. That sounds like basic tutorial work.
https://www.google.com/search?q=c%2B%2B+tutorial+read+write+files+numbers would be how I supplement my class assignments if I didn't understand the teacher at this point.

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

You write you are documenting the project so let's see one of those documents to get an idea of what you want to see.

Here, in a real world and may I add a competitive environment we don't document the code beyond comments. It would be costly plus sink the project if we took the approach you might on a final year project.

PS. Nod to https://www.tutorialspoint.com/java/java_documentation.htm which is a good primer to JavaDoc.

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

My experiences with outsourcing is it's a lot more work up front by you or your company getting the specifications down on paper which is your contract with the outsourced house or developers.

Sometimes this is dismissed as not needed by the company and the entire development feels like it was rushed, things missed and more.

In house there is some leeway as your team members get input from you much more often or they grew up with you on the effort.

So point blank the question is: How do you expect the developers or outsource company to implement what you didn't write down?

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

Quick. See https://www.google.com/search?q=ER+diagram+for+package+courier+service+systems and you will find there is NO diagram to rule them all. YOUR DIAGRAM IS NOT THERE.

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

I see an issue with drawCone() as the cone won't be in the correct position for any width other than 5.

Might want to make drawCone() a bit smarter.

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

I'm unsure if you wanted others to write this for you including populating the textbox and listbox.

https://www.google.com/search?q=%22factorila%22 seems to find priors so can you share what you have so far and tell what stopped you.

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

Which Java are you using? I tried a recent Java and it complained.

> Compiling...

/str/JavaFiddle.java:19: error: class Interactive is public, should be declared in a file named Interactive.java
public class Interactive extends JPanel implements ActionListener{ 
       ^
/str/JavaFiddle.java:90: error: class Draw is public, should be declared in a file named Draw.java
public class Draw extends JPanel implements ActionListener{
       ^
2 errors
JamesCherrill commented: He just posted the files in one place. Each set of imports starts a new file. +15