https://avatars.githubusercontent.com/u/6058558

程式狂想筆記

在XP上安裝chef

之前Ezgo11安裝vagrant都用的還滿順的 突然換到XP來用…,就發現麻煩的不少 沒法只能用XP來用 這次發現CHEFsupermarket改版了 連找cookbooks下載地方都找不太到 最後發現在右下角 = =||| Cookbooks網址:https://supermarket.getchef.com/

Fixing “The box ‘base’ could not be found.” (Vagrant)

vagrant box add base http://files.vagrantup.com/lucid32.box This is an indication that the the base virtual image is not configured, usually from forgetting to finish the installation. This image is copied, and modified to produce the desired virtualized environment. It’s easy to fix, by running the following: vagrant box add base http://files.vagrantup.com/lucid32.box It is also possible that you installed the box under a different name (the Vagrant website sometimes refers to lucid32). Instead of downloading a new box, in this case, you can edit Vagrantfile like so, changing the box name to whatever you called it on download:

[Python] 查詢本機IP

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 import urllib,random,re ip_regex = re.compile("(([0-9]{1,3}\.){3}[0-9]{1,3})") def public_ip(): ''' Returns your public IP address. Output: The IP address in string format. None if not internet connection available. ''' # List of host which return the public IP address: hosts = """http://www.

[CSS] CSS3 Animations動畫特效

最近我同學問我這個背景移動特效要怎麼用
他以為是JQuery寫出來的
結果我找了老半天,原來是CSS3

animation:160s linear 0s normal none infinite animatedBackground

1
2
3
name {
    animation: name duration timing-function delay iteration-count direction fill-mode play-state;
}