Docker Swarm is a popular infrastructure tool for running websites and web applications online. Here’s how to deploy WordPress on Docker Swarm. A journal. Source. This post extends https://blog.budhajeewa.com/docker-swarm-deploying-web-apps-and-sites/. We’ll refer to that as the “parent post” in this post. Setup Docker Swarm Set up a Docker Swarm as explained in the parent post. That post had an example that ...
Docker Swarm is a popular infrastructure tool for running websites and web applications online. Here’s how to deploy WordPress on Docker Swarm. A journal. Source. This post extends https://blog.budhajeewa.com/docker-swarm-deploying-web-apps-and-sites/. We’ll refer to that as the “parent post” in this post. Setup Docker Swarm Set up a Docker Swarm as explained in the parent post. That post had an example that ...
You can use Docker Swarm to deploy fully isolated web applications in to your cloud infrastructure, without also having to configure a web server in it too. Containers on a ship in a harbor. Source. A couple of years ago, I’ve used LXC to do the same thing. However, over the years, I have experienced that Docker has more adoption ...
Laravel only provide 2 relationship types out of the box, that supports more than one level of related models: hasOneThrough and hasManyThrough. They are not truly “multilevel” either, as they only support two levels. hasOneThrough allows you to define relationships like “A Country has one NationalFlag through Constitution.”. This works because a Country only has one Constitution, and a ...
About a month ago, I found a link to a post in a blog of IEEE in HackerNews. It discussed about the possibility of recreating one’s consciousness in a digital medium, after their death. The topic fascinated me, and it lead me to think a bit about it. I felt that the topic is a sensitive subject, and there should ...
About a month ago, I found a link to a post in a blog of IEEE in HackerNews. It discussed about the possibility of recreating one’s consciousness in a digital medium, after their death. The topic fascinated me, and it lead me to think a bit about it. I felt that the topic is a sensitive subject, and there ...
By default, Docker opens up multiple upload or download connections, so that it can move multiple layers of images at a given time. This is a performance boost, when used with a reliable connection. But if your network connectivity is not so reliable, doing one thing at a time and waiting for it to succeed can make sure the number ...
If you did a fresh installation on a new Ubuntu (~18.04) version, you may find that it is not possible to log in to MySQL with its root user, unless you do so as Ubuntu’s root user. Here’s how to fix it: Log in to MySQL using Ubuntu’s root user.: sudo mysql. Delete current root@localhost account.: DROP USER 'root'@'localhost';. Recreate ...
If you did a fresh installation on a new Ubuntu (~18.04) version, you may find that it is not possible to log in to MySQL with its root user, unless you do so as Ubuntu’s root user. Here’s how to fix it: Log in to MySQL using Ubuntu’s root user.: sudo mysql. Delete current root@localhost account.: DROP USER 'root'@'localhost';. ...
If you use (You should!) MySQL Prepared Statements, you may not be able to see how the final MySQL queries looks like, within your application, with all the bindings put into place. This is how to view them: Note This should never be done in production environments. Even in development environments, you should revert the changes as soon as ...
If you use (You should!) MySQL Prepared Statements, you may not be able to see how the final MySQL queries looks like, within your application, with all the bindings put into place. This is how to view them: Note This should never be done in production environments. Even in development environments, you should revert the changes as soon as you ...
Who makes most of their computing devices? A person who customizes the heck out of their hardware or software, or a person who use their devices ad delivered from the manufacturer? Although no one can use a device without no customization at all, I have recently started to prefer to use my operating systems and devices with as less customizations ...
Who makes most of their computing devices? A person who customizes the heck out of their hardware or software, or a person who uses their devices as delivered from the manufacturer? Although no one can use a device without no customization at all, I have recently started to prefer to use my operating systems and devices with as less ...
A problem I have encountered every time I use a USB drive as a Startup Disk, is that their block size get changed, and even gparted reports that it can’t fix the that. The following command will fix that. sudo dd if=/dev/zero of=/dev/sdX bs=2048 count=32 Be sure to replace sdX with the drive identified (Eg: sda, sdb, sdc, etc.). ...
A problem I have encountered every time I use a USB drive as a Startup Disk, is that their block size get changed, and even gparted reports that it can’t fix the that. The following command will fix that. sudo dd if=/dev/zero of=/dev/sdX bs=2048 count=32 Be sure to replace sdX with the drive identified (Eg: sda, sdb, sdc, etc.). And ...
Open the file /etc/bash.bashrc and uncomment the following lines, except the first one. # enable bash completion in interactive shells #if ! shopt -oq posix; then # if [ -f /usr/share/bash-completion/bash_completion ]; then # . /usr/share/bash-completion/bash_completion # elif [ -f /etc/bash_completion ]; then # . /etc/bash_completion # fi #fi The post Enabling Bash Autocompletion in LXCs appeared first on ...
Open the file /etc/bash.bashrc and uncomment the following lines, except the first one. # enable bash completion in interactive shells #if ! shopt -oq posix; then # if [ -f /usr/share/bash-completion/bash_completion ]; then # . /usr/share/bash-completion/bash_completion # elif [ -f /etc/bash_completion ]; then # . /etc/bash_completion # fi #fi The post Enabling Bash Autocompletion in LXCs appeared first on ...