Visual Basic and MySQL [closed] - mysql

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I need to build an application in Visual Basic 2010 to connect to a MySQL database. I saw many examples for that, but i've a question:
should the login form be the first or the splashscreen ??
should i check the connection before the login form appears ou after ?
since the application it's going to be used by many people in different places should i implement a secondary authentication method to avoid the non-authorized copy of application ?
Any sugestion or help regarding this matter is appreciated.

It's a legitimate question and from experience this is how I would approach it
When launching the application I would first show the splash screen during that time I would check the connection and determine if they are connected appropriately. If they are connected appropriately I would then show the login screen. If not then show a non-authorized screen. I would also implement a second authentication since your application is used by different sets of users.

Related

Web scraping with Laravel [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
Welcome, all
I would like to create a small web application, which needs to scrape data from another website and save the results to a database.
So, currently, I have Laravel 8 installed on my local windows machine, and I made a connection to the database, where I have "items" in the table that I need to save the data in
And the data may be changed from another website so I need this change in the database as well,
and need to scrape many items from another website so I need to know id or something else to distinguish one item from another
Now, the question is, what is the best way to do this? I've tried some tutorials but I haven't.
You can use a package Goutte or domcrawler, first you need to do a request of a url for that you can use GuzzleHttp or get the portion of html content and filter it and then save all this data on a table of your database.
You can read more information about those libraries.
Another library that is more customizable is domcrawler Dom_Crawler,
Goutte

Should each website have a different MySQL user for a single database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
If I have multiple websites that access the same MySQL database - should each website use a different MySQL user, or is it ok to use the same user for all of the website?
The database and websites are on the same server.
Are there any pros or cons for each configuration?
I think it depends if you're the only one that's accessing the database, and what kind of website it is. If you're making websites for clients with WordPress for example, or any other CMS where the database credentials are saved in an accessible file (like wp-config), you definitely want to have different databases.
In case you're the only one accessing the database and the websites are all your own, I guess you could use the same user. I think I'd use different ones, even if it's just for clarity, but there is something to say for having just one account regarding security. Having just one account with a strong password means there are less accounts that could get hacked.

Offline Data Entry [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Here's my situation:
My client has an very large database. Currently, they fill out Inspection Forms by hand and manually put them into the database after the inspection. The forms are mostly checkboxes with very few areas for text input. They want to migrate from paper to tablets which are not specific to a single OS. When on the job site, the tablets will usually not be connected to the Internet.
I've been racking my brain for a few days trying to think of a solution. In what way could we record the offline data entry? Is there a way to synchronize the data when reaching an Internet source or would we be better off saving the current information and entering it into the db by hand when the inspectors are back at the office?
I was thinking to use HTML5/JS/PHP as it can easily be used on an android based, iPad, or Windows tablet and be cross compatible. I may be ruling out PHP as neither device should be able to run it locally.
Let me know if more information is needed.
Thanks in advance.
This might help you mate.
Getting Started with HTML5 Local Databases

creating open source online game [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I started creating online open source game as a project in school. It will be server with n connected clients. But now I have a problem with "security". What to do if one client would used modified source code for changing some restrictions? How can I prevent it? My first idea was make client only for connection to server and server would send all necessary files but I don't like this idea very much. Can you advise me something better? Thank you.
You need to keep your validations in the server. The server should check each client move, and if it's not allowed according to the server's rules - reject it.
You should still keep validations in the client, too, so that users who don't mess with the client code can get speedier responses.

Application notice software [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
What is the name where the application shows messages of any updates available whenever the update is available?
Is it called web service?
For example, I have installed an antivirus (avast); sometimes a small popup message shows that an update is available.
I have very vague idea about it, it must be contacting the server periodically for checking the new updates are available or not.
I do not know what the application name is so I was not able to search.
It's called an auto-update software feature. It's part of the software itself usually - If you'd like to look at some API's regarding implementing them into your application, find out more here. WinSparkle is also something you could look into if your doing Windows development.
Those are vendor dependant solutions. It is usually not a separate software checking for updates. All they do is query a web service that replies with the 'current' version. At least as long as talking about MS-Windows. More elegant and efficient solutions exist in the Linux environment.