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:
- SE-Radio Episode 239: Andrew Clay Shafer on Modern Platform-as-a-Service
- FLOSS Weekly 357: Prometheus
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 Archive
- Newer Entries
- 2015 November
- 2015 December
- 2016 January
- 2016 February
- 2016 March
- 2016 April
- 2016 May
- 2016 June
- 2016 July
- 2016 August
- 2016 September
- 2016 October
- 2016 November
- 2016 December
- 2017 January
- 2017 February
- 2017 March
- 2017 April
- 2017 May
- 2017 June
- 2017 July
- 2017 August
- 2017 September
- 2017 October
- 2017 November
- 2017 December
- 2018 January
- 2018 February
- 2018 March
- 2018 April
- 2018 May
- 2018 June
- 2018 July
- 2018 August
- 2018 September
- 2018 October
- 2018 November
- 2018 December
- 2019 January
- 2019 February
- 2019 March
- 2019 April
- 2019 May
- 2019 July
- 2019 October
- 2019 November
- 2019 December
- 2020 August
- 2020 September
- 2020 October
- 2020 November
- 2020 December
- 2021 January
- 2021 February
- 2021 March
- 2021 April
- 2021 May
- 2021 June
- 2021 August
- 2021 September
- 2021 December
- 2022 March
- 2022 April
- 2022 May
- 2022 June
- 2022 July
- 2022 August
- 2022 September
- 2022 October
- 2022 November
- 2022 December
- 2023 January
- 2023 February
- 2023 March
- 2023 April
- 2023 July
- 2023 August
- 2023 September
- 2023 October
- 2023 November
- 2023 December
- 2024 January
- 2024 February
- 2024 March
- 2024 April
- 2024 May
- 2024 June
- 2024 August
- 2024 September
- 2024 October
- 2024 November
- Older Entries
- 2015 September
- 2015 August
- 2015 July
- 2015 June
- 2015 May
- 2015 April
- 2015 March
- 2015 February
- 2015 January
- 2014 December
- 2014 November
- 2014 October
- 2014 September
- 2014 August
- 2014 March
- 2014 February
- 2014 January
- 2013 December
- 2013 October
- 2013 July
- 2013 June
- 2013 May
- 2013 March
- 2013 February
- 2013 January
- 2012 December
- 2012 November
- 2012 October
- 2012 September
- 2012 August