tutorial

Some Best Practices for Writing Dockerfiles

Some Best Practices for Writing Dockerfiles

When writing Dockerfiles for PHP and MySQL, it's important to focus on security, efficiency, and maintainability. Here are some best practices specific to Dockerfiles for PHP and MySQL environments: 1. Use Official Base Images 2. Minimize PHP Extensions and Packages 3. Optimize PHP Configuration 4. Leverage Multi-Stage Builds for PHP 5. Configure MySQL for Production 6. Persist MySQL Data Using Volumes 7. Use .dockerignore for PHP Projects 8. Keep the Image Lean 9. Use Supervisord for Managing Multiple Processes Why: If your PHP container needs to run multiple services (e.g., PHP-FPM and a cron job), use supervisord to manage them…
Read More
Google Authentication in a Chrome Extension with Firebase

Google Authentication in a Chrome Extension with Firebase

We're writing this guide because the official guide by Google is missing a few important steps, we've linked in below: Authenticate with Firebase in a Chrome extension This will work on any operating system. For the purposes of this guide we'll be using Mac OS Prerequisites Google Chrome browser A Google account A Chrome web store developer account ($5 one time fee) Node.js and npm installed Step 1: Create the Project Structure a) Create a new directory for your project: mkdir firebase-chrome-auth cd firebase-chrome-auth Enter fullscreen mode Exit fullscreen mode b) Create two subdirectories: mkdir chrome-extension mkdir firebase-project Enter fullscreen…
Read More
The new wave: Top 10 emerging .NET content creators

The new wave: Top 10 emerging .NET content creators

Whether you’re diving into .NET best practices, learning about architectural principles, or trying to wrap your head around microservices, there’s always someone willing to break things down in a way that clicks. The wealth of knowledge available in .NET community —from newsletters and blogs to vlogs and technical articles—makes it easier to keep growing and stay current. We’ve grown accustomed to names like Scott Hanselman, Mary Jo Foley, Richard Campbell, and Tim Corey. Influencers that have become staples, not just in social media but also on conference stages, in magazine articles, and beyond. But who are some of the newer…
Read More
Training A Public FLUX Style LoRA — All Process Will Be Shared

Training A Public FLUX Style LoRA — All Process Will Be Shared

I started training a public LoRA style (2 seperate training each on 4x A6000). Experimenting captions vs non-captions. So we will see which yields best results for style training on FLUX. Generated captions with multi-GPU batch Joycaption app. I am showing 5 examples of what Joycaption generates on FLUX dev. Left images are the original style images from the dataset. I used my multi-GPU Joycaption APP (used 8x A6000 for ultra fast captioning) : https://www.patreon.com/posts/110613301 I used my Gradio batch caption editor to edit some words and add activation token as ohwx 3d render : https://www.patreon.com/posts/108992085 The no caption dataset…
Read More
Mastering Laravel Password Reset Customization: A Comprehensive Guide

Mastering Laravel Password Reset Customization: A Comprehensive Guide

Introduction Password reset functionality is a critical component of any modern web application. While Laravel provides a robust out-of-the-box solution, there are times when you need to tailor this process to meet specific requirements or enhance user experience. In this tutorial, we'll dive deep into customizing Laravel's password reset workflow, covering everything from basic modifications to advanced techniques. A Brief History of Laravel Authentication Before we delve into customization, let's take a quick trip down memory lane to understand how Laravel's authentication solutions have evolved: Laravel UI: The first iteration of a complete auth solution in Laravel, which served the…
Read More
Golang Struct Field Scopes

Golang Struct Field Scopes

Struct Field Scopes Exported Fields In other languages, this would be similar to the public access qualifier. If you come from Ruby like me, this would be defining attributes with attr_accessor If the field (i.e. attribute) of the struct starts with an upper case, it would mean that that field is exported, thus accessible outside of the package. Assume we have the following files in Go project: main.go /library /book.go Enter fullscreen mode Exit fullscreen mode We would define book.go in it's own package. // library/book.go // Assume we have a package called "library" which contains a book. package library…
Read More
Buy verified BYBIT account

Buy verified BYBIT account

https://dmhelpshop.com/product/buy-verified-bybit-account/Buy verified BYBIT accountIn the evolving landscape of cryptocurrency trading, the role of a dependable and protected platform cannot be overstated. Bybit, an esteemed crypto derivatives exchange, stands out as a platform that empowers traders to capitalize on their expertise and effectively maneuver the market. This article sheds light on the concept of Buy Verified Bybit Accounts, emphasizing the importance of account verification, the benefits it offers, and its role in ensuring a secure and seamless trading experience for all individuals involved. What is a Verified Bybit Account?Ensuring the security of your trading experience entails furnishing personal identification documents and participating…
Read More
Hash Map using Javascript

Hash Map using Javascript

Introduction A Hash Map, also known as a Hash Table, is a data structure that implements an associative array abstract data type, a structure that can map keys to values. It uses a hash function to compute an index into an array of buckets or slots, from which the desired value can be found. The primary advantage of a Hash Map is its efficiency. Operations like inserting a new key-value pair, deleting a key-value pair, and looking up a value given a key are all very fast, often taking constant time on average. Implementing a Simple Hash Map in JavaScript…
Read More
#51 - Get Rankings of Excel Rows in Each Group While Retaining the Existing Order

#51 - Get Rankings of Excel Rows in Each Group While Retaining the Existing Order

Problem description & analysis: We have an unordered Excel table, where the 1st column is the grouping column and the 2nd column contains dates. Task: Get rankings of rows in each group and write them in the 3rd column while retaining the existing order of the rows. The expected result is as follows: Solution: Use SPL XLL to do this: =spl("=E(?).derive(#:id,rk).sort(#1,#2).run(rk=rank(#2;#1)).sort(id).(rk)",A1:B14) Enter fullscreen mode Exit fullscreen mode As shown in the picture below: Explanation: E()function converts the Excel data range to a table. derive() function adds a new column. rank() function gets rankings of records in each sorted group. #…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.