Using JSON in Postgres by example.
- Download and install: Docker Toolbox
- Open Docker Quickstart Terminal
- Start a new postgres container:
docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
Using JSON in Postgres by example.
docker run --name my-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres
// Disable VirtualBox authentication | |
VBoxManage setproperty websrvauthlibrary null | |
// Start SOAP service so REX-Ray can talk to VirtualBox from the container host VMs | |
/Applications/VirtualBox.app/Contents/MacOS/vboxwebsrv -H 0.0.0.0 -v | |
// Create a Swarm cluster | |
docker-machine create --driver=virtualbox default | |
eval $(docker-machine env default) | |
TOKEN=$(docker run --rm swarm create) |
Important: At the time of writing (2019-11-11) Immutable.js is effectively abandonware, so I can no longer recommend anyone to follow the advice given here. I'll leave the article here for posterity, since it's still getting some traffic.
Functional programming principles and with it immutable data are changing the way we write frontend applications. If the recent de-facto frontend stack of React and Redux feels like it goes perfectly together with immutable data, that's because it's specifically designed for that.
There's several interesting implementations of immutable data for JavaScript, but here I'll be focusing on Facebook's own Immutable.js, and specifically on one of i
<?php | |
namespace Ipark\ApplicationBundle\Messaging\ServiceBus\Infrastructure; | |
use Ipark\FrameworkBundle\Common\SecurityHelper; | |
use Prooph\Common\Messaging\NoOpMessageConverter; | |
use Prooph\ServiceBus\CommandBus; | |
use Prooph\ServiceBus\Plugin\Auditing\CommandAuditor; | |
use Prooph\ServiceBus\Plugin\Auditing\RawMessageSerializer; | |
use Prooph\ServiceBus\Plugin\Auditing\SecretMessageSerializer; | |
use Prooph\ServiceBus\Plugin\Router\RegexRouter; |
import groovy.transform.Field | |
import hudson.AbortException | |
import hudson.scm.SubversionSCM | |
import org.tmatesoft.svn.core.SVNDepth | |
import java.util.concurrent.ConcurrentHashMap | |
@Field int slaves = 4; | |
@Field int threadsPerSlave = 2; | |
@Field boolean coverageBuild = false |
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
const riot = require('riot') | |
<aws-uploader> | |
<div class='container'> | |
<form method="POST" action="/save-details"> | |
<input type="file" id="file-input" onchange={initUpload}> | |
<p id="status">Please select a file</p> | |
<section if={opts.imagefile === 'true'}> | |
<img style="border:1px solid gray;width:300px;" id="preview" src="/images/default.png"> | |
<input type="hidden" id="avatar-url" name="avatar-url" value="/images/default.png"> |
If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.
Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.
If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.
<?php | |
declare(strict_types = 1); | |
namespace Acme\Infrastructure\MongoDb; | |
use MongoDB\Client; | |
use MongoDB\Collection; | |
class MongoConnection |
<?php | |
declare(strict_types = 1); | |
namespace Acme\Model; | |
use Prooph\Common\Messaging\DomainMessage; | |
use Prooph\Common\Messaging\Message as ProophMessage; | |
class Message extends DomainMessage | |
{ |