We had a nice rest in Iwakuni City, Yamaguchi Prefecture, Japan.
A symbol of Iwakuni City is Kintaikyo-Bridge.
Kintaikyo-Bridge is a historical arch brdige and spans the Nishiki River near Iwakuni Castle.
It was built in 1673. It was broken by floodwaters three times and it was rebuild by original method each time.
It was fine today and the view from Kintaikyo-Bridge were very well.
Nishiki River's water is very clean.
There are many Cherry Blossoms around Kintaikyo-Bridge and they are full in bloom between Late March and the beginning of April.
I went to Iwakuni Castle after Kintaikyo-Bridge.
Iwakuni Castle is on the top of Yokoyama Mountain and it is also called "Yokoyama-Castle".
Iwakuni Castle was built in 1608, but it was dismantled as per the Ikkoku-Ichijyo(One Castle Per Province) order established by the Tokugawa Shogunate in 1615.
Iwakuni Castle Castle Tower was rebuild in 1962.
There is the rope way for visitors to the top of Yokoyama Mountain.
It is 5 minutes from the rope way station to Iwakuni Castle.
There is the dry moat around Iwakuni Castle.
It is Iwakuni Castle Castle Tower.
The inner part of Castle Tower is museum and old swords are displayed.
The view of Iwakuni City from the top of Castle Tower is beautiful.
It teaches me that Iwakuni City was made along Nishiki River.
The foot of Yokoyama Mountain was the residence of Iwakuni Domain in the edo period and it is Kikkou Park now.
The admission ticket of Kintaikyo-Bridge, the rope way and Iwakuni Castle is sold at the entrance of Kintaikyo-Bridge.
It is 940 yen(about 8 US $).
I recommend "Itsutsubashi-no-sato", a hot spring in Iwakuni Kokusai Kanko Hotel near Kintaikyo-Bridge.
Both hotel's guests and day-trippers can get into this hot spring.
You can see Kintaikyo-Bridge at the viewing place of this hot spring.
I went to Asakusa, Tokyo, Japan today.
I like Asakusa because Asakusa has preserved its distinctive character.
This is Senso-ji temple, the most famous place of Asakusa.
This gate's name is "Kaminari-Mon"(Thunder Gate).
The statue of Fujin,a Shinto god of wind is located on the east side on the gate and the statue of Raijin,a Shinto god of thunder is located on the west side on the gate. And "FujinRaijin-Mon" is the formal name of Kaminari-Mon.
The Nakamise-dori is a shopping street between Kaminarimon and Hozomon.
There are 54 shops on the east side of the Nakamise-dori and 35 shops on the west side of the Nakamise-dori.
Hozomon(Treasure House Gate) is appeared beyond Nakamise-dori.
This is five story pagoda of Senso-ji temple. It's fine building.
I ate eel at Unagi-Yakko.
Unagi-Yakko is a long-established restaurant in Asakusa.
Unadon(a bowl of eel and rice) of Unagi-Yakko is very delicious.
Funawa is a Japanese sweet shop in Asakusa.
Funawa's 1F is a shop that sell Japanese sweets,such as sweet-potato paste and mitsumame topped with bean jam, and Funawa's 2F and 3F is Japanese cafe.
I ate ishobe-mochi(seaside mochi) and abekawa-mochi(roasted-soybean-powdered mochi) today. These are very delicious.
I feel elegance within the sound of wind chimes.
I went to "IYOTETSU SHOP AKIHABARA" in Akihabara, Tokyo today.
"IYOTETSU SHOP" is the souvenir shop of Matsuyama City, Ehime Prefecture, Japan, and "IYOTETSU SHOP AKIHABARA" is the first store in Tokyo.
This shop is open only on Fridays and Saturdays and Sundays.
I hear that sales person is coming to Tokyo from Ehime only on weekends.
I bought these foods and goods.
Four kinds of mandarine orange is used for the jelly.
I had the day off today and I went to Misaki Port in Miura City, Kanagawa Prefecture, Japan, to eat tuna.
This is Keikyu train's "Misaki Tuna Tickets" .
This tickets is very good ticket because it includes round trip train and bus fee, tuna dish tickets, leisure facility ticket, and it is only 3500 yen.
I went to Misaki-Guchi Station from Shinagawa Station by Keikyu train.
I went to Misaki Port from Misaki-Guchi Station by Keikyu bus.
There are many tuna restaurants in Misaki Port.
I visited Senmiraku, a restaurant managed by a tuna wholesale marchant.
This is "Senmiraku-don".
It includes various type of tuna meats, Akami, Chu-Toro, Negi-Toro, Nakaochi, Bin-Toro and it is very delicious.
It is "Nijiirosakana-go", a pleasure boat that can see fish underwater.
There are Girella punctata and Sacura margaritacea in Misaki Port.
Next, I crossed the Jogashima Island by a small ferry "Sanshiro".
It arrived in about 10 minutes.
This is Jyogashima Lighthouse, a famous place of Jyogashima Island.
It's the view from Jyogashima Lighthouse.
This is Jyogashima Keikyu Hotel.
It has a one-day hot spring "Kirara-no-Yu" and its fee is 1000 yen.(Towel rental is separately 300 yen)
It's the view in front of Jyogashima Keikyu Hotel.
We can see this view from an open-air bath of "Kirara-no-Yu".
I introduce Matsuyama City, Ehime Prefecture, Japan.
It is a temperate region and it has a lot of sightseeing spots.
Nagaoka Fireworks Festival started from August,1946 for purpose of remembrance of the dead of World War II.
It holds near Ote big bridge along Shinano River every August 2and 3, and it has many big fireworks.
This fireworks' name is "Phoenix" and it was started for praying recovery from Nigata Chuetsu Earthquake.
Its background music is "Jupiter" sung by Ayaka Hirahara.
This fireworks' name is "Kome Hyappyo Fireworks and measure ball 100 firing".
It is famous fireworks of Nagaoka Fireworks Festival, too.
Its background music is "Try looking up the sky" sung by Chikako Sawada.
It is the venue of Nagaoka Fireworks Festival near Ote big bridge along Shinano River.
We can buy tickets for reserved seat on the day of the fireworks festival.
I ate boiled ayu with salt.
It was fat and delicious.
I stayed Aore Nagaoka until beginning of Nagaoka Fireworks Festival.
Aore Nagaoka is Nagaoka City Hall and event venue near Nagaoka Station and it was designed by Mr.Kengo Kuma,an architect of Japan.
I ate "Gohei-mochi",a famous food of Nigata Prefecture, at stall.
It is a big mochi(rice cake) with miso and it is delicious.
I will introduce how to change stacking order of view as below picture.
Environment : Android Studio 2.2.1, API 19
In the case of Android, remove view from layout and set view to layout again.
Then index is set 0 and view move to back. Index is not set and view move to front.
I will introduce the famous tourists famous places in Kochi Prefecture this time.
There are a lot of nice places, for example, Katsurahama Beach.
Katsurahama Beach is a national scenic area.
In summer the sunshine is strong at Katsurahama Beach.If we forget to put on sunscreen and bask in the sun for a long time, there's a possibility that get sunburn.
The scenery of Katurahama Beach is expansive.
This pic is a statue of Ryoma Sakamoto.
There are a lot of ice-cream stalls in Kochi in summer.
This is a sherbet ice.
Katsurahama Aquarium is near Katsurama Beach.
It's a small aquarium but we can enjoy very much because the show of dolphins and sea lions are held and there are corners that we can touch fishes and see stars.
This pic is Japanese lates, a big fish living in Shimanto-gawa River.
This is Muroto-misaki Cape, a nice scenic area as equal to Katsurahama Beach.
There is an observation tower near Muroto-misaki Cape, and we can see a full view of Muroto-misaki Cape.
And there is Muroto Dolphin Center near Muruto-misaki Cape.
Cute dolphins receive persons with a smile.
We can touch dolphins in there.
Dolphins performed several acrobatics.
There is "Kitagawa Villeage Monet's Garden Marmottan" in Kitagawa Villeage, Aki Country, Kochi Prefecture.
Claude Monet, a founder of French Impressionist paintings, is known for making "Water Garden" with many water lilies and "Flower Garden" with many colorful flowers in his house at Giverny, France. Kitagawa Villeage made Monet's Garden in collaboration with Geverny.
This is "Water Garden" with many water lilies.
This scenery is reminiscent of Monet's masterpiece,"Water Lilies".
This is "Flower Garden".
It is most beautiful during Spring.
This building is Gallery & Shop.
It has some reproduction paintings of Monet and souvenirs.
There is a cafe and we can take a rest after waling around gardens.
I ate a chiffon cake and drank orange juice this time.
There are many pictures and statues of Anpanman's characters in it.
Especially, big pictures of Anpanman, Shokupanman, Currypanman and Bikinman are very wonderful.
It is a suitable place for the family with the children.
There is Kaida-Ya, a eel restaurant along Prefecture Root 14 that go to Katsurahama Beach from Kochi Airport and it is in Nangoku City in Kochi Prefecture.
It's signal flag is a signboard of cessna plane.
A lot of people visit it and we must wait for two hours at lunchtime.
This pic is "Unajyu"(a broiled eel served over rice in a lacquered box).
Some eel cook broil eel carefully and heartily.An eel's skin is crisp.
This pic is Ms.Michelle Sung Wie, an American professional golf player.
She visited this restaurant before.
This restaurant is one of famous restaurants in Kochi.
I did sightseeing in Kochi City, the capital of Kochi Prefecture after Ekin Festival.
I will introduce the famous tourists places in Kochi City.
This is Kochi Castle, a symbol of Kochi City.
Kochi Castle's Castle Tower was build in Early-Edo period and it retains its original structure.
This castle's white wall is beautiful.
This pic is the scenery from Kochi Castle's Castle Tower.
Sunday Market is held along Ottesuji, a street near Kochi Castle every sunday.
Fresh vegetables and craft objects are sold at this market.
There is "Hirome Ichiba(Market)" near Kochi Castle.
It has many restaurants serving Kochi's foods.
There are already a lot of people at 11 o'clock.
I recommend "bonito tataki",a famous food of Kochi.
My most favorite restaurant is "Myojinmaru".
It is known as performance of baking bonito with straws.
This is Myojinmaru's bonito tataki.
The front is set of bonito tataki sauce and salt.
The back is bonito tataki sushi.
They are very delicious.
Tramcar(it is operated by Tosaden Traffic Co.,Ltd.) is useful for sightseeing around Kochi City.
A flat fare of 200 yen is charged on tramcar in Kochi City.
There are various color types of tramcars.
"Ekin Festival" is held in Akaoka,Konan City,Kochi Prefecture,Japan every Saturday and Sunday in 3rd Week of July.
"Ekin" is Kinzo Hirose's nickname and he is a painter of late-Edo period and early-Meiji period.
Ekin was born in Tosa domain(Kochi Prefecture) in 1812 and he became chief retainer of Tosa domain in his young age.
But he was suspected to copy a famous Kano school's work and he was discharged from Tosa domain.
After that he lived in Akaoka and became a town painter.
He painted a lot of Shibaie-byobu(Kabuki story based picture) at town's people request.
Ekin Festival was started from 1977.
Ekin's masterpieces are awakened once a year during July, when they appear at the annual Suruta-Hachimangu Shrine Grand Festival.
Ekin's masterpieces are decollated in Akaoka at 19:00.
The sun descend at 20:00 and Ekin's masterpieces are very fantastic.
The owner explains the Ekin's picture.
There are a lot of street stall along the street of the town.
Lanterns heap up the festival.
I found "Toyonoume",a local sake(an alcoholic beverage of Japanese origin that is made from fermented rice) of Akaoka at Ekin Festival.
It is called "Ginjyo-Shu of Tosa's summer" and it tastes dry and light.I think it is perfect for summer.
It is perfect fit for seared bonito slice,a famous fish based-cooking of Kochi Prefecture.
Nisikawaya is a long established Japanese confectioner in Akaoka.
This shop was established in 1688.
It is at street where Ekin Festival is held and it has some arts of Edo-Period and we can see them.
This pic is Japanese-style confectionery and green tea and it is 500 yen.
This confectionery is include chestnuts and it's name is "Kanoka".
This is "Ekin-Gura", a building in which to store Ekin's masterpieces.
Bentenza,a theater,is behind Ekin-Gura.
People in Akaoka Town play Kabuki which become model for Ekin's masterpieces in Bentenza at Ekin Festival.
Berry dance and bingo game are held at a live place.
It is full of excitement.
I will introduce how to set gradation on a background color of View and round corners of View and on Android.
Environment：Android Studio 2.2.1, API 19
Use GradientDrawable for setting color gradation and rounding corners.
Set gradient colors to GradientDrawable's argument and declare gradation direction using Orientation.
Use setCornerRadius for rounding corners of View.
Use setCornerRadius for rounding corners of View.
I will introduce how to set gradation on a background color of View and round corners of View on iOS.
Environment：Xcode 8, Swift 3
Use CAGradientLayer to set color gradation to UIView on iOS.
Set gradient colors to CAGradientLayer's colors method and set gradation direction using startPoint and endPoint of CAGradientLayer.
At last, set CAGradientLayer to UIView's layer using insertSublayer.
Use cornerRadius of UIView's CALayer for rounding corners of UIView.
I will introduce delicious restaurants and cafe I found in Kamakura.
There are some famous beef stew restaurants in Kita-Kamakura, Kanagawa Prefecture, Japan.
Kyoraian is the most famous beef stew restaurant in Kita-Kamakura.
Kyoraian has a fine garden.
Hydrangea is blooming.
Kyoraian opens at eleven,but there is a line in front of the entrance of Kyoraian at eleven.
I recommend to come to Kyoraian a little ahead of an opening time.
This is beef stew set of Kyoraian.
This beef is very soft and beef stew is very delicious.
Coffee that is served at the end of beef stew is delicious.
Kamakura Tetra serves classic Hon-Warabimochi.
This cafe makes Hon-Warabimochi after taking an order and it takes about 15 minutes to cook it.
But it is very delicious and I don't mind waiting.
I ate Hon-Warabimochi with soybean flour and I enjoyed its texture.
Enoshima Electric Railway's train is running close by Mushinan
This is Anmitsu, a popular food of this cafe.
It is very sweet and delicious.
I recommend to go to this cafe early time, because this cafe is very popular and customers wait for two hours even if it is weekday.
June is the season of hydrangea in Japan.
I went to Kamakura City, a famous place of hydrangea.
Hasedera is Buddhist temple of Jodo shu and it is on the foot of Kannon mountain.
Hasedera is known as a famous place of hydrangea.
Hasedera has the circuit style garden and two ponds,Myouchiike pond and Houjyouike pond, near the entrance.
There is Kannon-do hall on the middle of Kannon mountain and it has Kannon Buddhisattva with Eleven Headed.
There is walking pass from the side of Kannon-do hall.There are 2500 hydrangeas around walking pass and it is called "Ajisai-no-komichi(hydrangea road)".
It is very crowded on July, the season of hydrangea in Japan, and we need to take a number.
Hydrangeas of "Ajisai-no-komichi(hydrangea road)" are very beautiful.
We can see Yuigahama from the top of "Ajisai-no-komichi(hydrangea road)".
Next, I went to Engaku-ji near JR Kita-Kamakura Station.
Engaku-ji has a lot of hydrangeas.
Engaku-ji has many buildings,gardens and ponds,and we can enjoy to see them.
- Sanmon Gate(Main Gate)
- Butsu-den(Buddha hall)
- Hojo(Abbot's quarters)
Hojo's Japanese garden
- Myoukouchi pond
I went to Meigetsu-in after Engaku-ji.
Another name of Meigetsu-in is "Ajisai-dera(Hydrangea Temple)" and it has a lot of hydrangeas.
Meigetsu-in is a Rinzai Zen temple of the Kencho-ji school.
It has Japanese garden in Hojo(Abbot's quarters) like another Zen temples.
I went to Uwajima City,Ehime Prefecture,Japan.
The loard of Uwajima was Date Family in Edo Period, and there are two places made by Date Family in Uwajima City.
This is Uwajima Castle's Castle Tower.
Uwajima Castle's Castle Tower has been remaining from Edo Period, and it is one of "The 12 Castles of Existing Castle Towers".
The first Castle Tower was made by Takatora Todo in 1602, and Munetoshi Date rebuilt it in 1666.
These pictures are the inside of Castle Tower.
It is the view from Castle Tower.
We can see a full view of Uwajima City from Castle Tower.
Next, I moved to Tenshaen near Uwajima Castle.
Munetoshi Date, the second lord of Uwajima Domain, made Hamagoten in 1672.
And Munetoshi Date rebuilt the part of Hamagoten and made big garden called "Tenshaen".
Tenshaen has beautiful ponds and gardens.
The origin of "Tenshaen" comes from Chinese poetry of Masamune Date.
Iris was in full bloom on every May.
I introduce how to capture screen on Android this time.
環境：Android Studio 2.2.1, API 19
You can capture screen every views on Android.
And you must use setDrawingCacheEnabled(false) after getting view's capture.
Sample code is below.
I introduce how to capture screen and make a bitmap image on iOS this time.
Environment：Xcode 8.3, Swift 3
Sample code is below.
At first, use UIGraphicsBeginImageContextWithOptions, and make context of bitmap for capturing screen.
And write screen's objects' info at context.("self.view.layer.render(in:context)")
And use UIGraphicsGetImageFromCurrentImageContext, and get UIImage from context.
At last, use UIGraphicsEndImageContext, and close context.
You can use Sqlite for saving data on Android.
Environment: Android Studio 2.2.1, API 19
Make class extended SqLiteOpenHelper and declare database layout.
You can define table layout to use "Create Table" in onCreate method.
You can change table layout to use "Alter Table" in onUpgrade method, when application version is up.
When you want to save Bitmap data, define BLOB data type.
2.How to Insert data
Use getWritableDatabase method of class which is made by SQLiteOpenHelper, and you can get writable SQLiteDatabase class.
When you execute InsertOrThrow method of SQLiteDatabase class, and new data is inserted in Sqlite.
And you'd better not use Insert method of SQLiteDatabase class, because this method don't return Exception class when error occur.
Use ContentValues to set field names and values.
If you want to save Bitmap Data, you must change Bitmap to byte data type.
3.How to update data.
Use update method of SQLiteDatabase class, you can update data in Sqlite.
You can use ContentValues to set field names and values like inserting data.
You can set your search criteria to the third argument and the fourth argument of update method.
4.How to delete data
Use delete method of SQLiteDatabase class, you can delete data in Sqlite.
Method of setting your search criteria is the same as updating data.
5.How to select data
When you select data in Sqlite, execute getReadableDatabase method of class which is made by SQLiteOpenHelper, and get SQLiteDatabase class(read only).
After, Use rawQuery method of SQLiteDatabase class, and you can select data in Sqlite.
You can do database programming by Core Data, O/R mapping tool for Sqlite, on iOS.
Environment: Xcode 8.3, Swift 3
At first, Check "Use Core Data" when project is created.
And code of Core Data Objects are created in AppDelegate.
Next, select "[project name].xcdatamodeld" and define table layout.
To save UIImage, select "Binary Data" in Type and check "Allow External Storage".
When the size of UIImage is big, URL of UIImage is saved in Core Data.
When you don't check "Allow External Storage", the time of saving core data will take and memory utilization will be increase instantly, and an application will crash.
After table layout definition, execute [Editor]-[Create NSManagedObject Subclass] on Xcode.
And class of table layout definition, NSManagedObject is created.
At last, declare "import Core Data" at the top of class using Core Data.
2.How to INSERT
At first, Make NSManagedObjectContext in AppDelegate.
Next, Make NSManagedObject from NSManagedObjectContext.
Let's see code for inserting new data by Core Data.
2.How to SELECT
Let's see code for selecting data by Core Data.
Use NSPredicate for designating searching options.
Use NSSortDescriptor and ascending option for designation sort options.
If you road UIImage, check UIImageOrientation.
If UIImageOrientation is down, you must invert UIImage.
3.How to UPDATE
Update value of data which is read.
Let's see code for updating data by Core Data.
4.How to DELETE
Delete data which is read.