韌館-LearnHouse

在Mac OS X上用Homebrew安裝ffmpeg和ffplay

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安裝Homebrew:

brew info ffmpeg

查看ffmpeg安裝參數

brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265

推薦安裝參數

brew update && brew upgrade ffmpeg

升級

brew install ffmpeg --with-ffplay

安裝ffplay
Read more...

2017年5 月 posted by admin in 程式&軟體 and have No Comments

藍寶石公主號-Day3 石垣島、船上表演&Day4回航

雖說是4天3夜的一個旅程,但第四天早上7:00就到港準備梯次下船,所以充其量也只有3天的行程
第三天雖然要在石垣島下船,但因為海象不佳,所以除了一位要緊急就醫的乘客,其他都只能待在船上
不過不用擔心虧到了,沒下船的行程會退錢給你,一人退25美金,我選擇直接退現金。

Read more...

2017年5 月 posted by admin in 生活日記 and have No Comments

藍寶石公主號-Day2 遊輪上的日常&沖繩那霸

前天晚上可以填寫房間早餐單子掛在門口,讓服務生將早餐送至客房,不過要記得因為第二天是用日本時間,但填寫單子的時候是台灣時間。日本可是比台灣快一個小時。

Read more...

2017年5 月 posted by admin in 生活日記 and have No Comments

藍寶石公主號-Day1 基隆港出航&船上第一晚

遲來的母親節禮物終於正式要上演了,站長人老了現在都不多話,就直接用照片記錄行程吧


Read more...

2017年5 月 posted by admin in 生活日記 and have No Comments

[iOS]UITextField常用設定

設置邊框樣式,只有設置了才會顯示邊框樣式
text.borderStyle = UITextBorderStyleRoundedRect;

typedef enum {
UITextBorderStyleNone,
UITextBorderStyleLine,
UITextBorderStyleBezel,
UITextBorderStyleRoundedRect
} UITextBorderStyle;

Read more...

2017年2 月 posted by admin in 程式&軟體 and have No Comments

[iOS]Objective-C常用的Cocoa Touch API

dispatch_async

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    // 耗时的操作
    dispatch_async(dispatch_get_main_queue(), ^{
        // 更新界面
    });
}); 

Read more...

2017年1 月 posted by admin in 程式&軟體 and have No Comments