Monday, August 01, 2016
I'm using lein ancient to check version of dependencies, it provides a handy way to upgrade all libraries:
if you want to skip tests:
$ lein ancient upgrade :interactive
$ lein ancient upgrade :interactive :no-tests
:check-clojureto upgrade clojure version as well.
Tuesday, August 02, 2016
added search function to blog contents (search box at the bottom of this page), now it's easier to find stuffs.
docker0 bridge cidr, the old way is add
but it's not working anymore after upgraded to ubuntu 16.04, of course it's because of systemd.
EnvironmentFile line and
EnvironmentFile=/etc/default/docker ExecStart=/usr/bin/docker daemon $DOCKER_OPTS -H fd://
$ systemctl daemon-reload $ service docker restart
Friday, August 05, 2016
returning to PHP, trying to catch up with new things...
after downloaded the installer, create a new symfony project is as simple as:
$ symfony new my_project 2.8
$ symfony new my_project lts
and running the app is easy too:
$ cd my_project $ php app/check.php $ php app/console server:run
I was like: "wow ..."
for VM, there is Laravel Homestead to help you quickly create a development machine, really cool.
Saturday, August 06, 2016
finally decided learn some react, I'm reading this: Hacking with React
Saturday, August 13, 2016
to resolve boot-clj repl cider problem:
WARNING: CIDER's version (0.13.0-snapshot) does not match cider-nrepl's version (nil). Things will break!
add these to
(require 'boot.repl) (swap! boot.repl/*default-dependencies* concat '[[cider/cider-nrepl "0.13.0-SNAPSHOT"]]) (swap! boot.repl/*default-middleware* conj 'cider.nrepl/cider-middleware)
Saturday, August 20, 2016
I'm busy finding a job, nothing much to update, some notable things from last couple weeks:
one interesting thing is Schemaless, their custom designed datastore built on top of MySQL.
I'm more interested in UDP than TCP, because of Joe Armstrong?
This is a really interesting one, but I don't have time to take a look yet.
the best comment found on hacker news by jgord:
When my son was 5 or 6 I had a great discussion about salt containers - the little one you have on the table, the big packet in the pantry, the pallet that gets delivered to the supermarket, the vast piles of salt at the salt mine, and all that salt in the ocean.
Next time we had an egg and he wanted salt I scratched my head and asked him what should we do .. take our egg to the supermarket or we could take a pack lunch to the beach, and maybe wave the egg around in the water ? "No daddy, remember, we have a little salt cache in the kitchen." hehe.
but you don't need java when you have kotlin:
supports http/2 and websocket, I don't have resources to check this thing out now, but layer 7 load balancing is definitely needed.
some history: Journey to HTTP/2
and the best comment from hackernews by morecoffee:
I work with HTTP/2 daily, and there are some pain points when running at high speeds:
- Headers are still head of line blocking. You must synchronize sending them to maintain the HPACK table state. At a high number of requests per second, this is a bottle neck
- Running over TLS is CPU bottleneck since encrypted messages are sequential. We get around this by making multiple TCP connections.
- Long lived HTTP/2 connections will often break because of NAT's (home internet), or changing IP address (mobile). A single dropped packet kills throughput for highspeed links too.
All of these are addressed by the QUIC protocol. I suspect that eventually HTTP/2 will be last major protocol over TCP because of most of the aforementioned problems come from running over it.
(QUIC is mentioned)
and another http/2 related: Real–world HTTP/2: 400gb of images per day
Go 1.7 is released, mainly compiler and performance optimizations, I like that. maybe I'll code some Go later this year.
a very funny blog post about the whole microservices and containerization thing: It’s The Future
I'm using docker and I agree most applications don't need containers.
I had an job interview weeks ago, when I heard the interviewer mentioned docker inside docker, I was like "wow..."
couple scalability article:
- 30K Page Views for $0.21: A Serverless Story
- How PayPal Scaled to Billions of Transactions Daily Using Just 8VMs
paypal one is nice, more details: squbs: A New, Reactive Way for PayPal to Build Applications
talking about reactive, I'm going to read this book: Functional Reactive Programming
even pure java is very high performance, check this article from 2013: 135 Million messages a second between processes in pure Java, and discussion on hacker news
jvm rocks, someone mentioned this slide: Shenandoah GC: Java Without The Garbage Collection Hiccups, no gc, I wanna see how it does that.
some interesting tools/libries:
- Meld, a visual diff and merge tool targeted at developers.
- ramswaroop/jbot: Make Slack, Facebook and Twitter Bots in Java in minutes.
- Colorized man pages: Understood and customized
- SAM, System Architecture Mapper, an interactive network-traffic mapping tool.
- ZFS High-Availability NAS
Monday, August 22, 2016
heard about few new libraries when reading this reddit thread: What does your dream Clojure stack look like?
- levand/quiescent: A lightweight ClojureScript abstraction over ReactJS
- tonsky/rum: Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript
- emil0r/reverie: A CMS for power users
but why so many cljs libraries?
I too think go is more suitable for scripting.
Tuesday, August 23, 2016
saw a very old link from hacker news: The Windows 95 User Interface: A Case Study in Usability Engineering
I like windows classic UI, so consistency and solid.
after reading that I switched my ubuntu to use gnome:
sudo apt-get install gnome-session-flashback
log out, on login box, click the ubuntu icon and select
gnome flashback (metacity), then login.
I was going to install this theme: Windows Classic GTK 3 (just un-tar it to
/usr/share/themes/), but found it doesn't look good.
however, gnome flashback is much faster than unity, I think I'll stick with it.
to customize, install few packages:
to add application shortcuts to the top panel, you'll need to use
alt + right click
to speed up, open
dconf-editor, follow the path:
org > gnome > metacity, and uncheck:
when I used
alt + tab under unity, it's so slow. now it switches instantly, so much better.
Wednesday, August 24, 2016
I heard the vulnerbility before, but never remember to update the site. thanks to the page I just added
rel="noopener noreferrer" to my
read the blog I Don't Need No Stinking API - Web Scraping in 2016 and Beyond, don't like it but learned a few things for selenium, especially antigate.
when I visited local library, saw a bunch of perl books. I read some chapters randomly, I kinda want to pick up perl again.
I still want to finish Higher-Order Perl
I think perl is perfect for devops, but the only link I found from recently is A Perl toolchain for building micro-services at scale
will try mojolicious as it got so many positive comments.
Wednesday, August 31, 2016
and onyx is complicated.
I may need to take a break from clojure.
didn't have time to finish them before, and will put reading notes online later.
docker is under fire since
v1.12 with swarm:
- The Sad State of Docker
- Docker Not Ready for Prime Time
- A Docker Fork: Talk of a Split Is Now on the Table
I agree that docker shouldn't fight kubernetes and should give up swarm.
- Older Entries
- 2016 July
- 2016 June
- 2016 May
- 2016 April
- 2016 March
- 2016 February
- 2016 January
- 2015 December
- 2015 November
- 2015 October
- 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
- Newer Entries
- 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