最近在找可以呈現投影片(slideshow)與影片的方式,
本來打算自己架一個wordpress server,
但是,
最後發現Blogger網路上就有許多資源,而且自己還不用架站,
影片就放在youtube再導到Blogger,
圖片放在google drive
目前找到一個喜歡的是
https://btemplates.com/2016/blogger-template-superhero/demo/
最後發現下面這一個更符合我的需求~
因為它的slider可以有兩個描述
而且最後我還發現這個slider可以超連結
https://btemplates.com/2016/blogger-template-healthyliving/demo/
接著我想要讓這一些slider可以直接讀取google drive的圖檔
這個就可以參考下面這一個影片的教學
Embed videos from Google Photos or Drive on your blog or website
發現一個更簡單可以加入slideshow的方式,
而且下面的文章可以直接引用facebook,
並且可以直接預覽
https://bloggerslider.shuvojitdas.com/2015/12/how-to-add-responsive-slideshow-widget-to-blogger.html
來試試看~~
簡單的slideshow
https://www.nosegraze.com/how-to-add-an-image-slider-to-your-blogger-blog/
參考:
https://btemplates.com/
Embed videos from Google Photos or Drive on your blog or website
http://imagesliderforblogger.blogspot.com/
2019年5月8日 星期三
發現有許多template for Blogger
search article by multiple labels
為了方便尋找文章,
通常會在文章後面加入label或tags
但是,如何設定,可以讓我們尋找多個條件的文章呢?
只要在blogger左上角搜尋的欄位輸入多個要尋找的標
Reference:
Blogger multiple label search
2019年5月7日 星期二
2018年8月5日 星期日
2018年7月18日 星期三
透過QNAP的虛擬主機功能架設多個網站
最近因為工作需要,
必需要學習PHP程式語言,
剛好之前買了一台QNAP,
可以拿來架PHP Server,
又剛好發現它有一個虛擬主機功能,
使用 QNAP NAS 虛擬主機功能架設多個網站
因此很貪心的想在上面架多個網站,
例如:
Joomla, WordPress和phpBB3
因為目前架在區域網路裡面,
同時使用windows 7,
因此最簡單的方法就是去修改
C:\Windows\System32\drivers\etc\hosts
這一個檔案~
一如預期的成功了。
但是,這個方法換個電腦就沒有效了,
因此暝生了在QNAP上架一個DNS Server,
印象中QNAP之前好像有一個DNS的套件,
現在去找竟然找不到。
還好在網路上還是有看到其它方式可以在QNAP上架DNS Server
DNS SERVER ON QNAP-TS-231.
看完之後,
覺得有一些細節還是不太清楚是什麼意思,
因此,同時也參考了
DNS 伺服器的詳細設定
這之中要透過putty連到QNAP NAS,
很簡單,就直接連而已。
最後的網路架構是
Router的DNS設定為QNAP NAS的IP位址(內部網路),
QNAP NAS的上層DNS為Google DNS(8.8.8.8 and 8.8.4.4)
然後,當我在家的裝置透過WIFI或實體網路線取得的網路設定,
其DNS就會是Router's IP address。
用例子來說明,
若我要查詢:
site2.mysite.com
會先跟router's查詢,
不過,我想router應該只是bypass給QNAP DNS Server,
若在QNAP DNS Server有查到,
就會直接回傳IP位址,
若沒有查到的話,
會再傳給Google DNS查詢。
/opt/etc/bind/db.dns
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA AdaCaspar. admin.AdaCaspar. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
@ IN A 127.0.0.1
;
; Add customer DNS setting
;
phplearning IN A 192.168.20.25
joomlacms IN A 192.168.20.25
phpbb3 IN A 192.168.20.25
wordpress IN A 192.168.20.25
Reference:
DNS SERVER ON QNAP-TS-231
2017年7月15日 星期六
SUBST指令
Associates a path with a drive letter.
SUBST [drive1: [drive2:]path]
SUBST drive1: /D
drive1: Specifies a virtual drive to which you want to assign a path.
[drive2:]path Specifies a physical drive and path you want to assign to
a virtual drive.
/D Deletes a substituted (virtual) drive.
Type SUBST with no parameters to display a list of current virtual drives.
參考資料:
Show Google Drive in Windows as a Local Hard Drive
Microsoft Windows Subst command
Make A Virtual Drive
mklink指令
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.