Thursday, October 01, 2015

even though cloudflare provides a very good service for free. cdn, dns, ssl and more. but I don't like their partnership with baidu (china), I'm worried, so I terminated the cloudflare service.

ssl will use self-signed certificate, and waiting for Let's Encrypt becomes available.

Saturday, October 03, 2015

some notes from my old tweets:

regex trick

it's difficult to exclude something using regex, but not any more with this trick:

"Tarzan"|(Tarzan)

Match Tarzan but not "Tarzan" (from The Best Regex Trick)

nginx http/2

nginx http/2 support is here, i'm going to give it a try following this article: Enable HTTP/2 in Nginx

percona xtradb cluster

after MariaDB Galera Cluster, Aphyr also did a test with Percona XtraDB Cluster.

I was reading some cluster solutions for mysql months ago, my decision was simply go with MySQL Cluster, but the MariaDB one looks interesting too.

nomad and otto

Nomad and Otto are two new products from hashicorp. so besides mesos and kubernetes, nomad is another choice.

i like hashicorp's solutions, they are made for developers, put them between my infrastructure on the cloud and applications.

cli typewriter

found two interesting tools Fbterm and Speed keys from this post: How to: make a CLI typewriter

aws news

CloudFormation Designer and Amazon Elasticsearch Service

i still couldn't find a easy solution for monitoring, i like ELK stack but want to try using a queue (kafka) first.

web development

two news about the web, Subresource Integrity and FLIF - Free Lossless Image Format.

i super like the idea of FLIF, one image for all different clients.

Tuesday, October 13, 2015

for monitoring, checking out few options:

also reading some Time series database

Wednesday, October 14, 2015

reading few books recently, basically new books from local library:

bought a android tv, Kodi is all you need, especially with SuperRepo.

before install kodi, was trying to setup a media server with Serviio, but it's way too difficult to get it running inside a docker container.

Friday, October 16, 2015

The League of Extraordinary Packages are solid, well tested and modern php libraries.

two cache libraries for java, tCache and Caffeine, similar to guava cache

after read How is NSA breaking so much crypto? (paper (pdf)), generated the dh group following this guide: Logjam: PFS Deployment Guide

also working on a queue worker program, using Semaphore. Clojure have very good concurrent models (Pulsar is an interesting one for example), however this time I want to write one with jdk only.

upgraded to nginx 1.9.5, mainly for http/2 support. (dockerfile here).

Thursday, October 22, 2015

picking up old podcasts:

reading some nginx microcache, you can cache php result on nginx, even one or two seconds cache lifetime will be better than nothing. the best thing is it supports https comparing to varnish.

MariaDB 10.1 can do 1 million queries per second, as mentioned in hacker news, TokuDB is an interesting engine, will definitely try it.

Tuesday, October 27, 2015

the nginx location directive ordering is a bit tricky, this page has the best explaination:

| Location | Modifiers | Match Type                          | Stops search on match |
|----------+-----------+-------------------------------------+-----------------------|
| 1st      | =         | Simple string                       | Yes                   |
| 2nd      | ^~        | Simple string                       | Yes                   |
| 3rd      | (None)    | Simple string                       | No                    |
| 4th      | ~         | Perl Compatible Regular Expressions | Yes (first match)     |
| 4th      | ~*        | Perl Compatible Regular Expressions | Yes (first match)     |
| N/A      | @         | Simple string                       | Yes                   |

did a little bit tuning to achieve 100/100 on google pagespeed insights, the difficult one is the above-the-fold optimization, but using the javascript here to load css will pass the test.

since assets are not blocking on http2, so these kind of tricks are not longer needed. just for fun.

Thursday, October 29, 2015

reading Nginx Essentials, there're not many books about nginx, this one is the best one so far. nginx: A Practical Guide to High Performance maybe another good one but not released yet.

having a little bit trouble with ruby version and gem dependencies. I heard a lot about headache of ruby versions and knew it will be tricky when you need something (rvm) to manage a runtime version.

that's why now I prefer jvm than any other interpreters. jar deployment is simple and it works.

talking about java, JavaOne 2015 is on, collect slides later.

Friday, October 30, 2015

here are Slide decks from JavaOne 2015


Blog Archives

Search Blog: