This tutorial uses Homebrew to install colima and Docker.
It was tested on Apple MacBook Pro (13-inch, M1, 2020) 8G and macOS Monterey version 12.1 (21C52).
Make sure you have fully uninstall any versions of Docker. You can check using:
podTemplate(label: 'builder', | |
containers: [ | |
containerTemplate(name: 'jnlp', image: 'larribas/jenkins-jnlp-slave-with-ssh:1.0.0', args: '${computer.jnlpmac} ${computer.name}'), | |
containerTemplate(name: 'docker', image: 'docker', command: 'cat', ttyEnabled: true), | |
containerTemplate(name: 'kubectl', image: 'ceroic/kubectl', command: 'cat', ttyEnabled: true), | |
containerTemplate(name: 'maven', image: 'maven:3.3.9-jdk-8-alpine', ttyEnabled: true, command: 'cat') | |
], | |
volumes: [ | |
hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock'), | |
secretVolume(secretName: 'maven-settings', mountPath: '/root/.m2'), |
package com.jbirdvegas.testing; | |
import java.util.List; | |
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.ThreadPoolExecutor; | |
import java.util.concurrent.TimeUnit; | |
public class ThreadPoolWorkHandler { | |
private static final int QUEUE_SIZE = 50; |
syntax on " enable syntax highlighting | |
set background=dark " we like it dark! | |
try | colorscheme gruvbox | catch | endtry " use this awesome theme if possible | |
highlight Pmenu ctermbg=black guibg=black | " fix popup color so it's easier to read | |
filetype plugin on " load plugins based on file type | |
filetype indent on " load indent settings based on file type | |
set shiftwidth=2 " number of spaces to use for indenting | |
set softtabstop=2 " number of spaces to use when inserting a tab | |
set tabstop=2 " show tabs as 2 spaces | |
set expandtab " convert tabs into spaces |
// VSCode: Place your settings in this file to overwrite the default settings | |
{ | |
"http.proxy": "http://user:pass@proxy.com:8080", | |
"https.proxy": "http://user:pass@proxy.com:8080", | |
"http.proxyStrictSSL": false | |
} |
Picking the right architecture = Picking the right battles + Managing trade-offs
This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).
Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.
Switch to the master branch and make sure you are up to date:
function g = sigmoid(z) | |
g = sigmoid = 1.0 ./ (1.0 + exp(-z)); | |
end | |
function g = sigmoidGradient(z) | |
g = sigmoid(z) .* (1 - sigmoid(z)); | |
end |