Jump to content
Sign in to follow this  

About This Club

Have any questions about Web Development? Ask here!

  1. What's new in this club
  2. Hi Бесконечное, Can you specify the version number of laravel? Also, the laravel 8 was made available last year which have some really features from time testing helpers to model factory classes. Before the laravel installation of any version, I will suggest you to keep a look and benchmark the important features and improvements.
  3. As far as I know, the only way to deal with it at this time is to set container height manually.
  4. Is there any good solution for fixing the Cumulative Layout Shift (CLS) caused by Google AdSense? How do you deal with it?
  5. I spent some time finding this solution, so I decided to share it with you. There is no sleep() or delay() functions in JS but you can easily implement it on your own using promises in combo with setTimeout(): function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } Usage: await sleep(2000); // Sleep for 2 seconds or sleep(2000).then(() => { // Sleep for 2 seconds and then run the code from this block });
  6. jQuery and Axios are remnants of the past. Fetch API is better: Native support in all modern browsers Better stability and performance No need to download libraries what speeds up page loading and saves traffic Compatible with older browsers (Like IE 10 and 11) thanks to lightweight fetch polyfill and promise polyfill
  7. ZIP support is built into most operating systems by default. Therefore, distributing archives in ZIP format, their authors can be sure that customers can open them. For 7z archives, installation of an archiver is required.
  8. WordPress, Invision Community etc. All of them are distributed in zip archives. Why? As far as I know, the 7z format in the 7zip archiver is much better than zip.
  9. Thank you! Indeed! I'm really tried to connect to MySQL version higher than 8.0.4 and my mysql-connector-java in DBeaver was outdated. I installed a new version of mysql-connector-java and it worked! Many thanks for your help! 🙏🙏🙏
  10. For Laravel 5.8: Run this command in your project directory right after installation of laravel: php artisan preset none
  11. If your application doesn’t need registration, you may disable it by removing RegisterController and modifying your route declaration: Auth::routes(['register' => false]);
  12. I need to disable registration in my laravel app, because i want to have only one user. How can i do that?
  13. This question is quite frequent in a last few days, so here is the instruction. Simplest way to do this on Apache web server is: Add this code into your .htaccess file (must be placed in root directory of your website): <IfModule mod_headers.c> Header set Strict-Transport-Security "max-age=604800; includeSubDomains; preload" env=HTTPS </IfModule> Check if everything OK on your website and subdomains. WARNING: ALL subdomains MUST be accessible by HTTPS if you want to include your domain into preload list. Adding to preload list will make your domain and all its subdomains inacessible by HTTP protocol in all modern browsers. Your users will be forced to use HTTPS only. If everything is OK and you're 100% sure what you're ready to enable HSTS for longer period and be added to preload list, increase you max-age value to 63072000 and add "preload" directive. Your code in .htaccess should look like this: <IfModule mod_headers.c> Header set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" env=HTTPS </IfModule> Finally add your website to the preload list on https://hstspreload.org/
  14. Open command line (CMD) Run this command to change current directory to the target directory: cd E:\Dir_Where_You_Need_To_Rename_Your_Files\ Run this command to rename all your .html files to .php recursively: for /R %x in (*.html) do ren "%x" *.php
  15. How can i perform recursive rename in Windows? I need to change all my .html files to .php Changing only extension and keeping original filenames.
  16. Trying to start nginx container i got this error. Error response from daemon: driver failed programming external connectivity on endpoint nginx Error starting userland proxy: mkdir *** input/output error. How to fix?
  • Create New...