GoPro 5 Black is here!

關注於動作攝影機已有兩三年了吧,一直在Sony 與 GoPro之間遊蕩。為了即將開始的Road Trip,有恰當的理由可以入手了!可以錄起我最愛的運動:衝浪,滑板,滑雪,潛水!

IMG_8816.JPG
car charger, 3 way stick, GoPro 5, 2 batteries(Wasabi) with charger, head strap, quick clip.

Choice of memory card for 4K recording

71jd1eygcol
SanDisk Extreme 128GB
proplus64g_001_front_darkgrey
Samsung Pro Plus 64GB

I bought the SanDisk Extreme 128GB first, then I found out that it is incompatible with GoPro 5 Black. After searching online, it seems that every SanDisk card with UHS-speed 3 has issue.
Then I got another one which is Samsung Pro plus 64GB, which works well.

 

Whilst using SanDisk Extreme, I had to insert and remove the SD card 4 or 5 times to get it work when the GoPro is on. This is very annoying and it is impossible to do that when you are doing sports.


 

Updated: After the firmware v1.57 of GoPro5, SanDisk Extreme 128GB works really well!!!

Advertisements

Osaka Universal Studio 大阪 環球影城

歡迎來到 Universal Studio

當時因在早稻田留學,幸運地認識了一位很好的朋友。當學期才剛開始,我們便去了熊本、阿蘇火山。這次從福岡坐夜行巴士,花了七小時之多,才抵達大阪梅田。先獻上一張梅田的夜景。

img_7058

這是在梅田空中庭院上拍的,空中庭園下面就是夜行巴士的車站。當我們抵達售票口時,恰好是結束售票的時間。幸好一旁的工作人員,帶我們到隔壁的商店買票入場。人生第一次看到如此光亮的城市,從各個方位看出去,光一直延續到地平面才消失,嘆為觀止。

門票的部分,我們在網路上已經先訂好了Express 7,可以快速通關七項遊樂設施。進場時,出示QR Code便可以,不需有紙本票根。如果有購買快速通關的話,就不需要花太多時間排隊囉,真的挺貴的。但是逆轉世界這項遊樂設施還是排了挺久的,一個多小時吧。如果沒有快速通關大概要兩三小時吧….

img_6879
魔鬼終結者2

魔鬼終結者的劇場大概有挺久的歷史了,但其視覺效果震撼度,有閃光,火焰,氣體。是所有劇場最好刺激的。而且居然不用排隊,實在太幸運了。

img_6910
來到侏儸紀世界必吃的豬肋排要價1300円

img_6906

在侏羅紀樂園,恐龍會不時的出沒,並且遊走在街上,嚇壞小朋友。管理員會拿散彈槍嚇阻恐龍。

侏羅紀這區最有名的就是飛天翼龍了,只可惜我沒玩到,因為我們買的快速通關中沒有包含這個設施。還有風太大的時候不會營運唷。

img_6932

很多麻瓜來USJ,大概都是為了來參觀一下霍格華滋吧!

霍格華滋提供了軌道列車搭載4K3D影院,感覺就像法國迪士尼的L’Aventure Totalement Toquée de Rémy 料理鼠王的實境歷險。不過霍格華滋的刺激度更上一層樓,坐完可能會暈眩唷,因人而異。這項設施有快速通關的話,可以節省不少時間,我幾乎沒有花到什麼等待的時間。

img_6927
麻瓜們看著魔法師展現漂浮術
img_6964
巷子裡可有驚喜呢!
img_6951
這個遊樂設施跟逆轉世界比…等待的時間也挺久的 >_<
img_6940
個人覺得最有趣的遊行就是小小兵消防隊啦,可愛的程度吸引不少人向前自拍呢。

這趟大阪之行,目標就是對準環球影城而來,並沒有去其他的景點了。

開學中,抓緊空閒的一天,衝去很遠的地方玩,一天來回坐夜巴,利用年輕的本錢,如此盡興地玩。

時光雖短卻記憶猶新。

Intel Galileo 2 FTDI cable serial connection tutorial on Mac OS X

First of all, you will need

  • Intel Galileo 2 (Linux installed)
  • FTDI  TTL-232R cable

Step 1.

Install FTDI VCP driver from here

Step 2.

Reboot your computer

Step 3.

Connect FTDI Cable to your computer

Step 4.

Open terminal.app

ls /dev/tty.*

You should now see

/dev/tty.usbserial-XXXXXXXX

Step 5.

screen /dev/tty.usbserial-XXXXXXXX 115200 -L

 

Step 6.

If you see blank, press Enter twice.

Then you will see the login request.

Step 7.

Login as root

Step 8.

You are now connected to Intel Galileo 2.

 

Notes:

With Mac OS 10.9 (Mavericks) and later, Apple has built their own version of the FTDI VCP driver into the operating system (AN134). However, there seems to be some conflict between drivers from FTDIchip.com and the ones inherent to Apple. Luckily, there is a solution to this problem, and it comes from FTDI directly.

If you have that issues, solution is referred to this site: https://learn.sparkfun.com/tutorials/how-to-install-ftdi-drivers/mac

 

Fukui Dinosaur museum 福井県恐竜博物館

Fukui Dinosaur museum is one of the three biggest dinosaur museums in the world along with Royal Tyrrell museum and Zigong museum. In the early 1900s, people did not believe that dinosaur existed in Japan until 1986. A high school girl found a tooth in Fukui which had been identified as a dinosaur tooth later. After the discovery, more research had begun  and more discoveries had been found. Seven new species has been discovered, including Fukuiraptor, Fukuisaurus, Fukuititan, and Fukuivenator. The museum was built in 2000. Its shape looks like an egg. However, it was designed as it required a huge space to display dinosaurs fossils. To make the space look better, they did not want to have any pillars near the dinosaurs. The main hall is divided in two sections, one is most for carnivore, and the other is for herbivore.

IMG_7914.JPG

In the main hall, there are three floors. The basement is main entry, a simple hall way displaying fossils.

IMG_7752.JPG

On the first floor, the T-rex is brought to life! This vivid t-rex is showing its fury. It is said that dinosaur lays eggs from the excretory organ. IMG_7757.JPG

The bones are used to estimate the dinosaur’s age. It touches like tree. IMG_7758.JPG

Hadrosauridae has crest on its skull. It was used for making sound.

IMG_7769.JPG

Tarbosaurus’ eyes are not facing in the front unlike Tyrannosaurus Rex.

IMG_7887.JPG

Tyrannosaurus Rex!! Its skull is the most complicated part of all exhibited dinosaurs.

IMG_7886.JPG

Fukuiraptor. It is said that the color of dinosaur is hard to define. We can only predict it.

IMG_7825.JPG

Pterosaur

IMG_7862.JPG

How do we know it is a dinosaur?  Dinosaur was evolved from Archosauria. A dinosaur’s skull has a large opening in the front of eye socket. Dinosaur can stand with their legs straight. Their tooth has its own socket. People misunderstand dinosaur. Pterosaur, Ichthyosaur, MosasauridaePelycosauria are not dinosaur! Is all dinosaur cold-blooded? No! Some are ware-blooded.

IMG_7868.JPG

A view from second floor. It is just amazing to see so many huge dinosaur walking around! It reminded me “Night at museum”. The T-Rex was chasing Ben Stiller.

IMG_7867.JPG

Taking photos of these 30m dinosaur is so difficult!

IMG_7895.JPG

Ouranosaurus
A series pf elongate dorsal neural spines form a “sail”, which might have been used for thermoregulation or visual identity.

IMG_7907.JPG

One of my favorite! Albertaceratops is so cute, isn’t?

IMG_7909.JPG

This dinosaur museum is located 4 hours by train from Osaka. I recommend to stay a night before visiting the museum. In the next morning, go to take the earlier train from Fukui station to Katsuyama station. It takes almost an hour. Once arriving the station, you will need to take a bus from station! It is a long way trip. However, the dinosaur won’t let you down!! It totally worths it! By the way, you can buy a ticket combo from Fukui station, which includes the tickets of train, museum, and bus, around 2000 Yen.

 

IBM Bluemix MobileFirst Services Starter for Cordova Tutorial 教學

Create an account on https://new-console.ng.bluemix.net/
Search the template: MobileFirst Services Starter, and create it.
螢幕快照 2016-06-04 11.22.21

After that, download the source code from https://github.com/ibm-bluemix-mobile-services/bms-samples-cordova-helloworld

Before installing Cordova, you will require node.js which is downloaded from https://nodejs.org/en/

If you do not have Cordova installed, then type

npm install -g cordova

Update Cordova

sudo npm update -g cordova

Go to the directory of source code, add cordova platform

cordova platform add android
cordova platform add ios

Install the IBM Bluemix plugin
cordova plugin add ibm-mfp-core

Go to /project-dir/www/js/index.js, paste your route & GUID
route: https://your-proj-name/mybluemix.net
GUID: can be found in the first line of Cloud Foundry’s log in the panel

route: ""
GUID: ""

Open xcodeproj in /project-dir/platform/ios/
If it prompts to update latest swift version, cancel it.
Go to build settings tab and edit Objective-C Bridging Header
/your-proj/plugins/ibm-mfp-core/src/ios/Bridging-Header.h
Find Runpath search Path, and add
@executable_path/Frameworks

Build Cordova
cordova build
Then run
cordova run android

Run iOS platform on Xcode
yayconnected


Cloud Foundry

Install CF CLI from https://github.com/cloudfoundry/cli/releases

Install Bluemix CLI from http://clis.ng.bluemix.net/ui/home.html

If this error occurs

panic: Config error: open config.json: permission denied

type

sudo chmod -R 777 ~/.cf

If this error occurs

panic: no supported languages found []string{“zh_TW.UTF-8”}

go to ~/.cf/config.json

set “Local” : “zh-Hant”

Download your project source code

螢幕快照 2016-06-04 12.11.58

go to /proj-dir , type

bluemix login -a https://api.ng.bluemix.net

push your project

cf your-project-name

Now you are ready to build your own project.

ASO 阿蘇 Helicopter Tour in カドリー・ドミニオン

I always like to go to countryside to see the beauty of the Earth. I dreamed to appreciate it while flying in sky as a bird. At this time, as soon as I heard there was a helicopter tour around ASO mountain I couldn’t hide the excitement. All I wanted to do was take the ride and experience the splendid nature in sky.

First, the helicopter tour is located in Cuddly Dominion. Map
This is a zoo with over 2 hundreds bears as Showanshinzan Kumabokujo in Hokkaido. Tourists can feed bears with toast, bear food, and chicken (Only for brown bears).

IMG_6735
Brown Bears pleasing for food
IMG_6737
Japanese black bears

This slideshow requires JavaScript.

This slideshow requires JavaScript.

Fee

mini tour: 2 minutes. Adult ¥2900, Child ¥2500

米塚 tour: 4 minutes. Includes mountain. Adult ¥4800, Child ¥4500

volcano tour: 7 minutes. Includes volcano. Adult ¥7500, Child ¥7000

super tour: 10 minutes. Includes mountains, grassland, volcano. Adult ¥12500, Child ¥11500

IMG_6704
Me!

jQuery DataTables plugin with PHP and MS SQL

I hereby provided the code for server-side processing for PHP and MS SQL.

The environment I used was PHP 5.5 and MS SQL 2008

Since PHP 5.5 no longer supports mssql extension, hence, I used sqlsrv extension instead on Window.

<?php
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Easy set variables
*/
 
/* Array of database columns which should be read and sent back to DataTables. Use a space where
* you want to insert a non-database field (for example a counter or static image)
*/
// add your columns here!!!
$aColumns = array( 'columnName1', 'columnName2' );
 
/* MSSQL Database infomation */
$host = 'localhost';
$connectionInfo = array("Database"=>"yourdb", "UID"=>"yourUser", "PWD"=>"yourPassword", "CharacterSet"=>"UTF-8");
$conn = sqlsrv_connect($host,$connectionInfo);
if($conn){
 //echo "Connection Established";
}else{
 echo "Connection could not be Established";
 die ( 'Can not connect to server' );
}
 
/* Indexed column (used for fast and accurate table cardinality) */
$sIndexColumn = "id";
 
/* DB table to use */
$sTable = "Your Table";
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* If you just want to use the basic configuration for DataTables with PHP server-side, there is
* no need to edit below this line
*/
 
/*
* Local functions
*/
function fatal_error ( $sErrorMessage = '' )
{
header( $_SERVER['SERVER_PROTOCOL'] .' 500 Internal Server Error' );
die( $sErrorMessage );
}
 
 
/* Ordering */
$sOrder = "";
if ( isset( $_POST['order'] ) )
{
 $sOrder = "ORDER BY ";
 if ( $_POST['columns'][0]['orderable'] == "true" )
 {
 $sOrder .= "".$aColumns[ intval( $_POST['order'][0]['column'] ) ]." ".
 ($_POST['order'][0]['dir']==='asc' ? 'asc' : 'desc');
 }
}
 
/* escape function */
function mssql_escape($data) {
if(is_numeric($data))
return $data;
$unpacked = unpack('H*hex', $data);
return '0x' . $unpacked['hex'];
}
 
/* Filtering */
$sWhere = "";
if ( isset($_POST['search']['value']) && $_POST['search']['value'] != "" ) {
$sWhere = "WHERE (";
for ( $i=0 ; $i<count($aColumns) ; $i++ ) {
$sWhere .= $aColumns[$i]." LIKE '%".addslashes( $_POST['search']['value'] )."%' OR ";
}
$sWhere = substr_replace( $sWhere, "", -3 );
$sWhere .= ')';
}
/* Individual column filtering */
for ( $i=0 ; $i<count($aColumns) ; $i++ ) {
if ( isset($_POST['columns'][$i]) && $_POST['columns'][$i]['searchable'] == "true" && $_POST['columns'][$i]['search']['value'] != '' ) {
if ( $sWhere == "" ) {
$sWhere = "WHERE ";
} else {
$sWhere .= " AND ";
}
$sWhere .= $aColumns[$i]." LIKE '%".addslashes($_POST['columns'][$i]['search']['value'])."%' ";
}
}
 
/* Paging */
$top = (isset($_POST['start']))?((int)$_POST['start']):0 ;
$limit = (isset($_POST['length']))?((int)$_POST['length'] ):5;
$sQuery = "SELECT TOP $limit ".implode(",",$aColumns)."
FROM $sTable
$sWhere ".(($sWhere=="")?" WHERE ":" AND ")." $sIndexColumn NOT IN
(
SELECT TOP $top $sIndexColumn FROM
$sTable $sOrder
)
$sOrder";
$rResult = sqlsrv_query($conn, $sQuery);
if($rResult === false){
 die(sqlsrv_errors(SQLSRV_ERR_ERRORS));
}
 
/* Data set length after filtering */
$sQueryCnt = "SELECT * FROM $sTable $sWhere";
$rResultCnt = sqlsrv_query($conn, $sQueryCnt );
$iFilteredTotal = sqlsrv_num_rows( $rResultCnt );
 
/* Total data set length */
$sQuery = "
SELECT COUNT(id)
FROM $sTable
";
$rResultTotal = sqlsrv_query($conn, $sQuery );
$aResultTotal = sqlsrv_fetch_array($rResultTotal, SQLSRV_FETCH_NUMERIC);

$iTotal = $aResultTotal[0];
 
 
/* Output */
$output = array(
"draw" => intval($_POST['draw']),
"recordsTotal" => $iTotal,
"recordsFiltered" => $iFilteredTotal,
"data" => array()
);
 
 
while ( $aRow = sqlsrv_fetch_array( $rResult, SQLSRV_FETCH_ASSOC) )
{
 $row = array();
 for ( $i=0 ; $i<count($aColumns) ; $i++ )
 {
 /* General output */
 $row[$aColumns[$i]] = $aRow[ $aColumns[$i] ];
 }
 $output['data'][] = $row;
}
 
echo json_encode( $output );
 
?>