This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| import java.io.BufferedReader; | |
| import java.io.Closeable; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.util.NoSuchElementException; | |
| public class ShadReader implements Closeable { | |
| private static final int BUFFER_SIZE = 1024; |
| hsqldb - select 1 from INFORMATION_SCHEMA.SYSTEM_USERS | |
| Oracle - select 1 from dual | |
| DB2 - select 1 from sysibm.sysdummy1 | |
| mysql - select 1 | |
| microsoft SQL Server - select 1 (tested on SQL-Server 9.0, 10.5 [2008]) | |
| postgresql - select 1 | |
| ingres - select 1 | |
| derby - values 1 | |
| H2 - select 1 | |
| Firebird - select 1 from rdb$database |
| create database sonarqube character set 'utf8'; | |
| create user 'sonarqube'@'localhost' identified by 'password'; | |
| grant all privileges on sonarqube.* TO 'sonarqube'@'%'; | |
| flush privileges; |
| I want to implement a simple simulator (Cellular automaton) and can use both java.util.concurrent.* or java.util.stream.* for parallel execution (later produces nicer code). With Java9 I want to execute on the GPU. Which package to use to prepare for GPU computation? Will there be a .parallelGPUStream()? |
| all: calc | |
| calc: parser lexer | |
| CC lexer.c parser.c -o calc | |
| lexer: | |
| flex -o lexer.c lexer.l | |
| parser: | |
| bison -d -o parser.c parser.y |
| apply plugin:'java' | |
| apply plugin:'idea' | |
| repositories { mavenCentral() } | |
| dependencies { | |
| testCompile 'junit:junit:4.11' | |
| } | |
| task makeDirs(description:'make all dirs for project setup') << { |
| import org.junit.Test; | |
| import java.util.Arrays; | |
| public class IntToBitesTest { | |
| @Test | |
| public void intToBytes() throws Exception { | |
| int n = 1234567890; | |
| byte[] a = new byte[4]; |
| set spell |
| gpg --export -a |