2018年3月8日 星期四

[CSS]學習CSS網站,關於position屬性 & 30個須記住的選擇器

一個由保哥翻譯的學習CSS網站
關於position屬性

30個你必須記住的CSS選擇器

[JS]ES6網站資源及Emmet

ECMAScript 6 入门 作者:阮一峰
從ES6開始的JS學習生活
專為中學生寫的JS程式書

Emmet Documentation

[網站架設]附加服務選購:SSL

遇到廠商疑問,是否購買附加服務











不懂SSL重要性,被告知是 http -> https,
得知是安全性問題,便查了而知:
擁有「有效」SSL憑證的伺服器值得信任,和這類伺服器做SSL加密連線在內容資安上才有保障。
( 來源 https://www.evo-mailserver.com.tw/support/ssl_certificate.php )

表示有公信力、被側錄也有保護資訊成為亂碼,若無會出現不信任網站的畫面,
致瀏覽意願大幅降低。














參考 SSL數位憑證,我最不想見到的畫面

2018年1月25日 星期四

[Git]About 'git reset'

在 commit 時不小心多夾帶 (add) 一個檔案,
試著以
  1. 查節點代碼
  2. git reset 節點代碼
來取消  commit
但並沒有成功,不知道問題出在哪?
後來參考此篇:

問題暫時解決,也是解決的不明不白,晚些時候再看一次。

Git 版本控制系統(3) 還沒 push 前可以做的事
30 天精通 Git 版本控管 (23):修正 commit 過的版本歷史紀錄 Part 5 -保哥  iT 邦幫忙

2018年1月20日 星期六

[Ruby]Alpha camp 半年記事、Git pull、VS code Exrension

Alpha camp 課程自2017.09月底開始,
使用Ruby & Rails on Ruby,
因此也開始學會使用 Ubuntu on Windows system,
用的是 Oracle 的虛擬主機。

2018.01月中換筆電。
不經一事,不長一事:




考慮將來使用 Hexo 寫文
https://hexo.io/zh-tw/

一鍵部署

您只需要一個指令就能把網站部署到 GitHub Pages, Heroku 或其他網站。
參考網址
從 Blogger 搬家到 Hexo
https://rickhw.github.io/2015/01/15/Hexo/Hello-Hexo/
Migrate to Hexo
[Hexo] 快速上手 Hexo 網誌框架
Hexo + GitHub 搭建个人博客及反思
http://motion-express.com/blog/20141109-why-do-i-use-hexo
From Hexo to Rails

2017年8月24日 星期四

[CSS]Flex (Taker course)

https://www.everyonecanwebsite.com/blog/post/flexbox-basic?utm_source=facebook&medium=video-post&utm_content=flexbox

https://www.youtube.com/watch?v=epHSeA7OCZU

取代 flaot的平易近人新屬性,以上課程連結 (Taker)。

display: flex;
設定後除了本身,其所有子元素會自動帶有此屬性,但只限一層,再下去就沒有了。

main axis & cross axis: flex line 與 main axis平行
各自還有 start & end,預設上,寫一個"十"字可以理解。

flex 主要設定方向、寬度、對齊方式


  • flex container
    • about axis
    • about wrap
  • flex item


flex: 0 1 auto; /*defult
flex-grow: 值有(0,1);設定 item是否展開填滿容器,想像為是否要從樹成長成林
flex-shrink: 值有值有(0,1);設定 overflow時是否自動縮小
flex-basis: 單位有(px,%)還可設定為 auto;設定 item的寬度

2017年8月15日 星期二

[Git]完整學會Git GitHub Git Server 的24堂課 Unit.1~Unit.3

Unit. 1

git init

git add 'poem.txt' /* preparing add, can be files or file fold
git status

git commit -m 'description' --author='name <email>' /* acting adding

git commit --amend -m 'new description' --author='(changed) name <email>'
/* modifying description or author name/ email

gitk

exit
----

Unit. 2

git config alias.name 'full commend'

e.g.

git config alias.con 'config -l'

/* then,
/* git con = git config -l
----

Unit. 3

touch .gitignore

2017年8月8日 星期二

[jQM]Udemy Keen Cen 9語言0基礎 #165-#174 流水帳筆記

#168-#169
手機程序型網頁範例
但教學中是直接刪改官方檔案

將 .click 改為 .on("vclick", function())

減少裝置反應延遲

示範不切換網址切換內容頁面
可能會有網址列#1-1改#1-2內容卻沒切換的問題

#170-171
如何將 jQ 製成的程序轉換成不同平台(安卓、蘋果、win...)
由 node.js (網頁服務器)
cordova


2017年8月1日 星期二

[php]Udemy Keen Cen 9語言0基礎 #128-#146 流水帳筆記

#137
php 發送郵件若成功,會回傳 1,表 true

$emailTo="";
$subject="";
$body="";
$headers="";


mail($emailTo, $subject, $body, $headers)

#143-145 天氣預報網站範例
擷取外部網頁特定部分資料

background-position: center;
background-size: cover;

<?php

$city= $_GET['city'];

$city= str_replace(" ", "", $city); // 空格替換成沒有空格,從$city取出替換

$content= file_get_contents("http://www.weather-forecast.com/locations/San-Francisco/forcasts/latest");

preg_match("/3 Day Weather Forecast Summary:/i", $content, $matches);

print_r($matches)

?>