How to set up multiple websites on docker-compose To set up multiple websites on Docker Compose, you’ll need to create a docker-compose.yml file for each website. A docker-compose.yml file defines the services that make up your website, such as a web server and a database, and how they are connected. Here’s an example docker-compose.yml file…
Category: code
Docker Notes #1
How do you setup docker for multiple projects? To set up Docker for multiple projects, you’ll need to create a new Dockerfile for each project. A Dockerfile is a text file containing instructions for Docker on building and setting up your project’s environment. To create a Dockerfile for your project, follow these steps: You can…
When installing Visual Studio on a Mac
My Connection was fine. Annoyingly bad servers, the “Retry” button was pushed plenty of times.
html css game of thrones
FTP easter egg
So this just happened. I do trust my computer. Gotta love easter eggs. A bit unnerving though gotta say.
PHP – 10 helpful PHP functions and snippets
Sanitize database inputs When inserting data in your database, you have to be really careful about SQL injections and other attempts to insert malicious data into the db. The function below is probably the most complete and efficient way to sanitize a string before using it with your database. function cleanInput($input) { $search = array(…
Augmented Reality Developer Platform
How exciting! magic leaps Augmented Reality SDK. P.S Sex, Porn, Strip app under way
java – Create a Dictionary from a text file.
It takes a text file as input and outputs all the words in that file in alphabetical order, one word per line, ignoring duplicates. [cc lang=”java” tab_size=”2″ lines=”105″] import java.io.*; import java.util.*; public class Dictionary { public static void main(String[] args) { try{ FileReader fr = new FileReader(“words.txt”); BufferedReader br = new BufferedReader(fr); String s;…
Java – How to add a spell checker to Swing GUI text components JOrtho Library and Wikitionary Dictionaries
This tutorial uses JOrtho, a Java based spell checker, to implement a spell checker in a Swing based application. We are going to use an English dictionary throughout this guide, though other languages are available by downloading your language dictionary from http://www.wiktionary.org/ JOrtho (Java Orthography) is an Open Source spell-checker entirely written in Java. Its…