[活動]《我的包包,裝我的旅行》今年暑假,送你去度假!(8/28 得獎名單公佈)[公告] 豐掌櫃《超級吸金王》活動賽況排行及得獎名單 (8/16第四批名單公佈)[公告] 即日起,MIB也能變購物金囉![公告] 豐掌櫃《最佳銷售王》賽況排行 (6/15 得獎名單公佈)[公告] 痞客邦 PIXNET MIB(MONEY IN BLOG)部落格廣告分潤計劃申請流程調整

田馥甄《小幸運》吉他譜

 

作詞:徐世珍/吳輝福 CAPO:0

作曲:JerryC

    

F    G7    C7    F

 

F                       G7

我聽見雨滴落在青青草地

C7                       F

我聽見遠方下課鐘聲響起

Dm7                      Gsus4 G

可是我沒有聽見你的聲音

     C7                 F            

認真 呼喚我姓名

 

F                       G7

愛上你的時候還不懂感情

C7                       F

離別了才覺得刻骨銘心

Dm7                     Gsus4

為什麼沒有發現遇見了你

     C7                 F  

是生命最好的事情

 

             Bb                  C

也許當時忙著微笑和哭泣

            Am                Dm

忙著追逐天空中的流星

                Bb

人理所當然的忘記

   G                      C

是誰風裏雨裏一直默默守護在原地

 

                 F                   C

原來你是我最想留住的幸運

                       Dm                    Am

原來我們和愛情曾經靠得那麼近

                       Bb

那為我對抗世界的決定

           F

那陪我淋的雨

          G                C

一幕幕都是你 一塵不染的真心

 

F                     C   

與你相遇 好幸運

                       Dm                 Am

可我已失去為你淚流滿面的權利

                       Bb

但願在我看不到的天際

          F

你張開了雙翼

         G

遇見你的註定

C                F    G    C    C

她會有多幸運

 

F                       G

青春是段跌跌撞撞的旅行

C                       F

擁有著後知後覺的美麗

Dm                    G

來不及感謝是你給我勇氣

        C              F

讓我能做回我自己

 

             Bb                  C

也許當時忙著微笑和哭泣

            Am                Dm

忙著追逐天空中的流星

                Bb

人理所當然的忘記

   G                      C

是誰風裏雨裏一直默默守護在原地

 

                 F                   C

原來你是我最想留住的幸運

                       Dm                    Am

原來我們和愛情曾經靠得那麼近

                       Bb

那為我對抗世界的決定

           F

那陪我淋的雨

          G                C

一幕幕都是你 一塵不染的真心

 

F                     C   

與你相遇 好幸運

                       Dm                 Am

可我已失去為你淚流滿面的權利

                       Bb

但願在我看不到的天際

          F

你張開了雙翼

         G

遇見你的註定

 

Bb   C                  F    G    C    F

OH~  她會有多幸運

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

Linux Observability Tools  

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

想要知道眼前的迷霧裡到底有什麼?

在原地猜呀猜,等人先去看再告訴你?

最快的方法還是往前走過去探索。

 

解決問題也是一樣,深入了解問題才能找到解決方法。

 

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

人生應該多勇敢挑戰困難的事、不懂的事

而不是一直做自己會的事而沾沾自喜

 

 

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

 

Mr. Crowley - Ozzy Osbourne

Mr. Crowley, what went on in your head?
Oh, Mr. Crowley, did you talk to the dead?
Your life style to me seemed so tragic
With the thrill of it all
You fooled all the people with magic
Yeah, you waited on Satan's door

Mr. Charming, did you think you were pure?
Mr. Alarming, in nocturnal rapport
Uncovering things that were sacred
Manifest on this Earth
Conceived in the eye of a secret
And they scattered the afterbirth

Mr. Crowley, won't you ride my white horse?
Mr. Crowley, it's symbolic, of course
Approaching a time that is classic
I hear that maiden's call
Approaching a time that is drastic
Standing with their backs to the wall

Was it polemically sent
l want to know what you meant
I want to know, I want to know what you meant, yeah

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

如果程式沒有把參數用設定檔寫好的話,這個參數值可能就會用在很多程式碼中

突然參數值要改的話,就必需個檔一個檔開起來改很費時間

下面這個指令可以幫你找出所有副檔名是.php的檔,其中有包含 "要被取代的字" 的檔名有哪些,最後針對這些檔案做文字取代:

 

find . -name "*.php" | xargs grep "要被取代的字" | awk -F: '{print $1}' | uniq | xargs sudo sed -i "s/要被取代的字/取代後的字/g"

, , , , , , , , ,

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

有時候在command line打包好一個檔,卻又懶的用 ftp 或 sftp抓的時候,可以直接用mail指令寄到信箱

先看看用法

Usage: mail -eiIUdEFntBDNHRV~ -T FILE -u USER -h hops -r address -s SUBJECT -a FILE -q FILE -f FILE -A ACCOUNT -b USERS -c USERS -S OPTION users

 

簡單寄檔案:

> echo "As Attached" | mail -s "標題哥" -a "/檔案路徑/檔名.tar" receiver@mail.com

, , , , , , , , , ,

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

有時候PDO物件連線,然後程式在處理大量資料時,Mysql等太久最後timeout斷線了

這時執行query就會需到Mysql Server has gone away的錯誤 (uncaught exception)

一昧的加大timeout,不如直接Catch這個Exception

範例程式如下:

失敗後重連線一次

 /** 
截取我的程式的一部分
$this->Connect是我的PDO物件*/

function executeQuery($query) {
$sth = $this->Connect->prepare($query); try {
$sth->execute($params);//執行query
} catch (PDOException $e) {

/** 這邊會抓到PDO的Exception */ $this->connect(); //重新連線
/** 這邊也可以用遞迴 $this->executeQuery($query)*/ $sth=$this->Connect->prepare($query); $sth->execute($params);

}
.
(略)
.
.
}

補充,你可以判斷Exception的種類看是不是真的是Mysql Server has gone away,然後做是否重連線執行query的決定。

當然你也可以設retry,用遞迴的方式把retry的次數繼續往下帶:

 

 /** 
遞廻方式
*/

function executeQuery($query, $retry = 3) {

if ($retry == 0) {
return false;
}
$sth = $this->Connect->prepare($query); try {
$sth->execute($params);//執行query
} catch (PDOException $e) {

/** 這邊會抓到PDO的Exception */
$this->connect(); //重新連線
$sth=$this->executeQuery($query, $retry--);

}
.
(略)
.
.
}

 

, , , , , , , , , , ,

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

此範例來自

http://www.php.net/manual/en/function.pcntl-fork.php

通常用在需要大量呼叫SOAP API或RestfulAPI時使用

比方說我有1000張照片,我要用API取得這1000張照片的資訊,每呼叫一次api就需要1秒

1000張就約需要1000秒

如果用multi-process,一次送25個request,相當於速度提升25倍(不考慮其他因素如cpu、memory、api端的loading)

 

<?php 
declare(ticks=1); 
//A very basic job daemon that you can extend to your needs. 
class JobDaemon

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

相信有用PHP輸出CSV報表的人都有遇過中文亂碼的問題吧

有的人開起來正常,有的人開起來亂碼

解法就是把檔案輸出成XLS的格式就沒問題了-使用套件PHPExcel (http://phpexcel.codeplex.com/)

程式邏輯想像你今天用Office Excel做CSV轉檔成XLS,就是用Excel打開一個CSV檔並另存新檔成XLS

 

, , , , ,

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

國內的虛擬主機價格過高,又不能自己ssh進去coding (我用VIM)

朋友推薦這個國外主機就自由多了,可以ssh進去,又便宜又有固定IP

而且還是SSD : https://www.digitalocean.com/?refcode=08b0aaf45cc4

Digital Ocean, 一個月最便宜的專案是 5美金/月

 

 

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()



譜請按繼續閱讀 

 Google幫你找: https://www.google.com.tw/search?q=filetype%3Apdf+while+my+guitar+gently+weeps+jake
 

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

When I was playing in Los Angeles a few years ago I remember a jazz saxophonist telling me that rockabilly was too simple, it usually only had three chords. Then he listened to more of it and agreed with me that yes it has three chords but the feel and groove of how you play those three chords is not nearly as simple as it may seem. 

Rockabilly comes from a time in which music had a big swing feel which was necessary for the dancers who wished to "dance to the bop", and has a kind of hillbilly approach to playing swing that gives it its own special rhythm. Let's try this in the key of E over standard 12-bar blues changes. 

I have two basic rhythms to get started with. This one is an arpeggio style and the other in the following lesson is single 8th notes on low strings.

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

Now we will use different types of pick-style approaches to "stylize" the previous video's "upper-register common-tone" progressions. This video focuses on picking techniques inspired by Dave Matthews and Neil Young, and features some other arpeggiation approaches.

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()

If I had to use one word to describe the overall sound of Gilmour's lead playing it would be "epic". He has played many great and original solos over the years, but in my opinion "epic" is what come to mind for most people. In this lesson I'll break down a solo in his style that incorporates many of the elements that make his soloing "epic".

Posted by Oscar at 痞客邦 PIXNET Guestbook(0) 引用(0) 人氣()