I hereby claim:
- I am ilopmar on github.
- I am ilopmar (https://keybase.io/ilopmar) on keybase.
- I have a public key ASD5nf1nCSWIZcqJEYFWOu-lYbIql4gjQcahbrFDlCUz8wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Below are the Big O performance of common functions of different Java Collections. | |
List | Add | Remove | Get | Contains | Next | Data Structure | |
---------------------|------|--------|------|----------|------|--------------- | |
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array |
[ExifTool] ExifToolVersion : 10.80 | |
[File:System] FileName : DSC08743.JPG | |
[File:System] Directory : . | |
[File:System] FileSize : 8.6 MB | |
[File:System] FileModifyDate : 2019:05:25 11:39:25+02:00 | |
[File:System] FileAccessDate : 2019:06:03 00:32:58+02:00 | |
[File:System] FileInodeChangeDate : 2019:06:03 00:25:59+02:00 | |
[File:System] FilePermissions : rw-r--r-- | |
[File] FileType : JPEG | |
[File] FileTypeExtension : jpg |
// http://mybatis.googlecode.com/svn/trunk/src/test/java/org/apache/ibatis/submitted/sptests/SPTest.java | |
Class.forName("org.hsqldb.jdbcDriver"); | |
conn = DriverManager.getConnection("jdbc:hsqldb:mem:sptest", "sa", ""); | |
Reader reader = Resources.getResourceAsReader("org/apache/ibatis/submitted/sptests/CreateDB.sql"); | |
ScriptRunner runner = new ScriptRunner(conn); | |
runner.setDelimiter("]"); | |
runner.setLogWriter(null); |
#!/bin/bash | |
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf |
04fc849bffb84762d5f716ca2f662c36c051a6ec908c46cd3f3cc4cac23d50e19c56b76dc2011b61b28a535b44b7e0bdd896531fe624d399cc7fe94af68084187e |
Working on Grails 3 I realized that I no longer can specify external configuration using the standard grails.config.locations
property in Config.groovy
file.
Reason is obvious! There is no Config.groovy
now in Grails 3. Instead we now use application.yml
to configure the properties. However, you can't specify the external configuration using this file too!
What the hack?
Now Grails 3 uses Spring's property source concept. To enable external config file to work we need to do something extra now.
import org.jooq.util.jaxb.* | |
import org.jooq.util.* | |
ext.db = [ | |
url: 'jdbc:postgresql://host/db', | |
user: 'user', | |
password: 'user', | |
schema: 'schema' | |
] |