iovxw

博客更新完成

两年前的坑

总算是把两年前的坑给填了

虽然和原始设计有小小的出入(中途弄丢了源码)

而且也没重写静态博客生成器

但是就这样吧(摊手

Clojure - Functional Programming for the JVM 中文版

懒得翻译了

基于原先徐明明翻译的版本,替换了最新的英文版到里面

一些大段的更新就干脆没翻译了,如果有愿意翻译的,就 fork https://github.com/Bluek404/Clojure-Article 然后自己翻译吧

给 Chrome for Android 设置顶栏颜色以及图标

Starting in version 39 of Chrome for Android on Lollipop, you’ll now beable to use the theme-color meta tag to set the toolbar color—this means no more Seattle gray toolbars! The syntax is pretty simple: add ametatag to your page’s<head>with thename="theme-color", and set thecontentto any valid CSS color.

使用 Docker 运行 AnyConnect 时出现 DTLS handshake failed 的解决方法

是个坑

第一步:

设置 Docker 内 AnyConnect 的端口和母机映射的端口相同

Let's Encrypt is Trusted

终于啊终于

We’re pleased to announce that we’ve received cross-signatures from IdenTrust, which means that our certificates are now trusted by all major browsers. This is a significant milestone since it means that visitors to websites using Let’s Encrypt certificates can enjoy a secure browsing experience with no special configuration required.

Git 取消跟踪文件和重新跟踪文件

笔记

有时候需要让 git 忽略某个文件的更新,比如配置文件。配置文件里经常有各种涉及隐私的东西,一般只提交一个模板上去,如果把自己的配置提交上去了……被盗用的例子也不少了(比如这个这个这个

解决方法也很简单,让 git 忽略这个文件的变更就行了

Elixir 入门指南中文版

年代久远

Elixir Logo

https://bluek404.gitbooks.io/programming-elixir

把别人翻译的整理了一下

Github: https://github.com/Bluek404/programming-elixir

英文: http://elixir-lang.org/getting-started/introduction.html

块密码的 CTR 计数器模式

简单到不用讲。异或!XOR!

块加密流加密之类的就不说了,只是单独说一下这个加密模式

换了个代码高亮主题

Elixir

算是和现在用的 VIM 的配色比较接近了

VIM

defrecord Person, first_name: nil, last_name: "Dudington" do
  def name record do # huh ?
    "#{record.first_name} #{record.last_name}"
  end
end

defrecord User, name: "José", age: 25

guy = Person.new first_name: "Guy"
guy.name

defmodule ListServer do
  @moduledoc """
  This module provides an easy to use ListServer, useful for keeping
  lists of things.
  """
  use GenServer.Behaviour
  alias Foo.Bar

  ### Public API
  @doc """
  Starts and links a new ListServer, returning {:ok, pid}

  ## Example

    iex> {:ok, pid} = ListServer.start_link

  """
  def start_link do
    :gen_server.start_link({:local, :list}, __MODULE__, [], [])
  end

  ### GenServer API
  def init(list) do
    {:ok, list}
  end

  # Clear the list
  def handle_cast :clear, list do
    {:noreply, []}
  end
end

{:ok, pid} = ListServer.start_link
pid <- {:foo, "bar"}

greeter = fn(x) -> IO.puts "hey #{x}" end
greeter.("Bob")

被百度取消收录了?

只是想发篇文章而已

意料之外,情理之中

就把右侧一直懒得换的百度换成了 Google

夏天过去了,人却依旧懒