<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by daihase on Medium]]></title>
        <description><![CDATA[Stories by daihase on Medium]]></description>
        <link>https://medium.com/@daihase_88?source=rss-d90d0185b699------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0VTIx0rgcBxlm1y9LTHQ7A.png</url>
            <title>Stories by daihase on Medium</title>
            <link>https://medium.com/@daihase_88?source=rss-d90d0185b699------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:53:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@daihase_88/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Unified management of access permission to iOS cameras and albums]]></title>
            <link>https://medium.com/@daihase_88/unified-management-of-access-permission-to-ios-cameras-and-albums-b686000d4921?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/b686000d4921</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Fri, 06 Jul 2018 16:14:12 GMT</pubDate>
            <atom:updated>2018-07-06T16:14:12.732Z</atom:updated>
            <content:encoded><![CDATA[<p>When accessing the camera with the iOS App or pulling the picture from the album, there are some things to consider such as approval of access to the camera.</p><p>Prior to iOS7 there was no restriction on the use of the camera.<br>In other words, developer decided to write the processing for camera access as you wanted and can call it, but from iOS8 onwards you can control the functions of that side with terminal settings, that is privacy setting It was.</p><p>As a result, when accessing cameras and albums, developers have to consider several points, if the user has restricted access, the screen may become dark.</p><p>There are the following four statuses of access permission.</p><ul><li><strong>authorized: Allowed (camera and photo can be used)</strong></li><li><strong>restricted: Usage restriction (usage restricted by setting -&gt; general -&gt; function restriction)</strong></li><li><strong>denied: explicit deny (setting -&gt; usage restricted by privacy)</strong></li><li><strong>notDetermined: a state where neither permission nor refusal is done</strong></li></ul><p>It is troublesome to write similar processing every time you access a camera or photo. I have summarized these statuses in PhotoAuthorization.swift. Also, I set PhotoRequestManager.swift as a method for accessing camera / photo.</p><p>Basically put these two classes in your project. <br>After that, how to access the camera and photos? I wrote a simple sample code and see it so please try it.</p><pre>import UIKit</pre><pre>class ViewController: UIViewController {<br>    private let photoImageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 200, height: 200))</pre><pre>override func viewDidLoad() {<br>        super.viewDidLoad()</pre><pre><br>        let cameraButton: RoundedButton = {<br>            let buttonX = (UIScreen.main.bounds.width / 2) - 100<br>            let buttonY = UIScreen.main.bounds.height - 150<br>            let button = RoundedButton(frame: CGRect(x: buttonX, y: buttonY, width: 200, height: 40))</pre><pre>button.setTitleColor(UIColor.white, for: .normal)<br>            button.setTitle(&quot;Launch Camera&quot;, for: .normal)<br>            button.titleLabel?.font = UIFont.systemFont(ofSize: 12)<br>            button.addTarget(self, action: #selector(self.setImageFromCamera(_:)), for: .touchUpInside)</pre><pre>return button<br>        }()</pre><pre>        let galleryButton: RoundedButton = {<br>            let buttonX = (UIScreen.main.bounds.width / 2) - 100<br>            let buttonY = UIScreen.main.bounds.height - 100<br>            let button = RoundedButton(frame: CGRect(x: buttonX, y: buttonY, width: 200, height: 40))</pre><pre>button.setTitleColor(UIColor.white, for: .normal)<br>            button.setTitle(&quot;Launch Photo Library&quot;, for: .normal)<br>            button.titleLabel?.font = UIFont.systemFont(ofSize: 12)<br>            button.addTarget(self, action: #selector(self.setImageFromPhotos(_:)), for: .touchUpInside)</pre><pre>return button<br>        }()</pre><pre>        photoImageView.contentMode = .scaleAspectFit<br>        photoImageView.layer.position.x = UIScreen.main.bounds.width / 2<br>        photoImageView.layer.position.y = (UIScreen.main.bounds.height / 2) - (photoImageView.bounds.size.height / 2)<br>        photoImageView.layer.borderColor = UIColor.lightGray.cgColor<br>        photoImageView.layer.borderWidth = 1.0</pre><pre>view.addSubview(cameraButton)<br>        view.addSubview(galleryButton)<br>        view.addSubview(photoImageView)<br>    }</pre><pre>    <a href="http://twitter.com/objc">@objc</a> fileprivate func setImageFromCamera(_ sender: Any) {<br>        PhotoRequestManager.requestPhotoFromCamera(self){ [weak self] result in<br>            switch result {<br>            case .success(let image):<br>                self?.setImage(image)<br>            case .faild:<br>                print(&quot;failed&quot;)<br>            case .cancel:<br>                break<br>            }<br>        }<br>    }</pre><pre>    <a href="http://twitter.com/objc">@objc</a> private func setImageFromPhotos(_ sender: Any) {<br>        PhotoRequestManager.requestPhotoLibrary(self){ [weak self] result in<br>            switch result {<br>            case .success(let image):<br>                self?.setImage(image)<br>            case .faild:<br>                print(&quot;failed&quot;)<br>            case .cancel:<br>                break<br>            }<br>        }<br>    }</pre><pre>    private func setImage(_ image: UIImage) {<br>        photoImageView.image = image<br>    }</pre><pre>override func didReceiveMemoryWarning() {<br>        super.didReceiveMemoryWarning()<br>    }<br>}</pre><pre>final class RoundedButton: UIButton {<br>    override init(frame: CGRect) {<br>        super.init(frame: frame)<br>        layer.backgroundColor = UIColor.darkGray.cgColor<br>        layer.cornerRadius = frame.size.height / 2<br>        clipsToBounds = true<br>    }</pre><pre>required init?(coder aDecoder: NSCoder) {<br>        fatalError(&quot;init(coder:) has not been implemented&quot;)<br>    }</pre><pre>override func layoutSubviews() {<br>        super.layoutSubviews()<br>        layer.cornerRadius = bounds.height / 2<br>    }</pre><pre>override var isHighlighted: Bool {<br>        didSet {<br>            if isHighlighted {<br>                layer.backgroundColor = UIColor.darkGray.withAlphaComponent(0.8).cgColor<br>            } else {<br>                layer.backgroundColor = UIColor.darkGray.cgColor<br>            }<br>        }<br>    }<br>}</pre><p>Next, let’s look at PhotoRequestManager.swift which summarizes methods for accessing cameras and photos.</p><pre>import Foundation<br>import UIKit</pre><pre>enum PhotoRequestResult {<br>    case success(UIImage)<br>    case faild(PhotoAuthorizedErrorType)<br>    case cancel<br>}</pre><pre>typealias PhotoResquestCompletion = ((PhotoRequestResult) -&gt; Void)</pre><pre>final class PhotoRequestManager: NSObject, UIImagePickerControllerDelegate, UINavigationControllerDelegate {<br>    fileprivate static let shared: PhotoRequestManager = PhotoRequestManager()<br>    fileprivate var completionHandler: (PhotoResquestCompletion)?</pre><pre>// PhotoLibrary access<br>    static func requestPhotoLibrary(_ parentViewController: UIViewController, completion: PhotoResquestCompletion?) {<br>        shared.requestPhoto(parentViewController, sourceType: .photoLibrary, completion: completion)<br>    }</pre><pre>// Camera access<br>    static func requestPhotoFromCamera(_ parentViewController: UIViewController, completion: PhotoResquestCompletion?) {<br>        shared.requestPhoto(parentViewController, sourceType: .camera, completion: completion)<br>    }</pre><pre>// SavedPhotosAlbum<br>    static func requestPhotoFromSavedPhotosAlbum(_ parentViewController: UIViewController, completion: PhotoResquestCompletion?) {<br>        shared.requestPhoto(parentViewController, sourceType: .savedPhotosAlbum, completion: completion)<br>    }</pre><pre>private func requestPhoto(_ parentViewController: UIViewController, sourceType: UIImagePickerControllerSourceType , completion: PhotoResquestCompletion?) {<br>        if !UIImagePickerController.isSourceTypeAvailable(sourceType) {<br>            completion?(PhotoRequestResult.faild(.denied))<br>            return<br>        }</pre><pre>let resultBlock: PhotoAuthorizedCompletion = { [unowned self] result in<br>            switch result {<br>            case .success:<br>                let imagePickerController : UIImagePickerController = UIImagePickerController()<br>                imagePickerController.sourceType = sourceType<br>                imagePickerController.allowsEditing = true<br>                imagePickerController.delegate = self</pre><pre>self.completionHandler = completion</pre><pre>parentViewController.present(imagePickerController, animated: true, completion: nil)<br>            case .error(let error):<br>                completion?(PhotoRequestResult.faild(error))<br>            }<br>        }</pre><pre>switch sourceType {<br>        case .camera:<br>            PhotoAuthorization.camera(completion: resultBlock)<br>        case .photoLibrary, .savedPhotosAlbum:<br>            PhotoAuthorization.photo(completion: resultBlock)<br>        }<br>    }<br>}</pre><pre>// MARK: - UIImagePickerControllerDelegate<br>extension PhotoRequestManager {<br>    func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {<br>        guard let image = info[UIImagePickerControllerEditedImage] as? UIImage else { return }<br>        picker.dismiss(animated: true) { [unowned self] in<br>            self.completionHandler?(PhotoRequestResult.success(image))<br>            self.completionHandler = nil<br>        }<br>    }</pre><pre>func imagePickerControllerDidCancel(_ picker: UIImagePickerController) {<br>        picker.dismiss(animated: true) { [unowned self] in<br>            self.completionHandler?(PhotoRequestResult.cancel)<br>            self.completionHandler = nil<br>        }<br>    }<br>}</pre><p>Finally, look at PhotoAuthorization.swift which manages permissions.</p><pre>import Foundation<br>import UIKit<br>import AVFoundation<br>import Photos</pre><pre>enum PhotoAuthorizedErrorType {<br>    case restricted<br>    case denied<br>}</pre><pre>enum PhotoAuthorizedResult {<br>    case success<br>    case error(PhotoAuthorizedErrorType)<br>}</pre><pre>typealias PhotoAuthorizedCompletion = ((PhotoAuthorizedResult) -&gt; Void)</pre><pre>final class PhotoAuthorization {<br>    private init() {}</pre><pre>static func media(mediaType: String, completion: PhotoAuthorizedCompletion?) {<br>        let status = AVCaptureDevice.authorizationStatus(for: AVMediaType(rawValue: mediaType))<br>        switch status {<br>        case .authorized:<br>            completion?(PhotoAuthorizedResult.success)<br>        case .restricted:<br>            completion?(PhotoAuthorizedResult.error(.restricted))<br>        case .denied:<br>            completion?(PhotoAuthorizedResult.error(.denied))<br>        case .notDetermined:<br>            AVCaptureDevice.requestAccess(for: AVMediaType(rawValue: mediaType)) { granted in<br>                DispatchQueue.main.async() {<br>                    if granted {<br>                        completion?(PhotoAuthorizedResult.success)<br>                    } else {<br>                        completion?(PhotoAuthorizedResult.error(.denied))<br>                    }<br>                }<br>            }<br>        }<br>    }</pre><pre>static func camera(completion: PhotoAuthorizedCompletion?) {<br>        self.media(mediaType: AVMediaType.video.rawValue, completion: completion)<br>    }</pre><pre>static func photo(completion: PhotoAuthorizedCompletion?) {<br>        switch PHPhotoLibrary.authorizationStatus() {<br>        case .authorized:<br>            completion?(PhotoAuthorizedResult.success)<br>        case .restricted:<br>            completion?(PhotoAuthorizedResult.error(.restricted))<br>        case .denied:<br>            completion?(PhotoAuthorizedResult.error(.denied))<br>        case .notDetermined:<br>            PHPhotoLibrary.requestAuthorization() { status in<br>                DispatchQueue.main.async() {<br>                    if status == PHAuthorizationStatus.authorized {<br>                        completion?(PhotoAuthorizedResult.success)<br>                    } else {<br>                        completion?(PhotoAuthorizedResult.error(.denied))<br>                    }<br>                }<br>            }<br>        }<br>    }<br>}</pre><p><a href="https://github.com/daihase/PhotoRequestManager">Here</a> is a sample of the project on GitHub.</p><p><strong>PhotoRequestManager.swift</strong> and <strong>PhotoAuthorization.swift</strong>,<br>these two files are available as soon as you move to the project.<br>We can easily manage complex access permission handling.</p><p>Have a good development life!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b686000d4921" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple example of displaying alerts with UIAlertController]]></title>
            <link>https://medium.com/@daihase_88/simple-example-of-displaying-alerts-with-uialertcontroller-bd132f347ecd?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd132f347ecd</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Wed, 25 Jan 2017 05:51:38 GMT</pubDate>
            <atom:updated>2017-01-25T05:51:38.266Z</atom:updated>
            <content:encoded><![CDATA[<p>Well, today I will introduce the UIAlertController which will almost certainly be implemented when making applications with iOS (Swift). As you all know, UIAlertView has been deprecated from iOS 8 and UIAlertController has appeared.</p><p>When you started to develop iOS, I think you often write similar code every time you display an alert (although that may not exist …)</p><p>This time I introduce a simple utility class using such UIAlertController.<br>Although there are various patterns even if it is called UIAlertController, here I introduce a pattern composed of common title, message content, Cancel, OK as an example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5H5ya9jxLLfSmOp7GH10A.png" /></figure><p>When implementing this, the general method looks like the following.</p><pre>let alert = UIAlertController(title: &quot;Default Style&quot;, message: &quot;A standard alert.&quot;, preferredStyle: .alert)<br>        <br> alert.addAction(UIAlertAction(title: &quot;OK&quot;, style: .default, handler: nil))<br> alert.addAction(UIAlertAction(title: &quot;Cancel&quot;, style: .cancel, handler: nil))<br>        <br>present(alert, animated: true, completion: nil)</pre><p>For example, it is painful to write a similar code every time you display an alert. So, I summarized the common Cancel, OK format as a utility class.</p><p><a href="https://github.com/daihase/iOS_Sample">daihase/iOS_Sample</a></p><p>I made a simple example project called UIAlertControllerSample in the iOS_Sample repository. Usage is easy. Just call at the place you want to display the dialog as follows.</p><p>ViewController.swift</p><pre>let alertTitle = &quot;Title&quot;</pre><pre>let alertMessage = &quot;message1\nmessage2&quot;</pre><pre>let positiveButtonText = &quot;OK&quot;</pre><pre>let negativeButtonText = &quot;Cancel&quot;</pre><pre>Util.sharedInstance.showAlertView(title: self.alertTitle , message: self.alertMessage, actionTitles: [self.negativeButtonText, self.positiveButtonText], actions: [</pre><pre>{()-&gt;() in</pre><pre>print(self.negativeButtonText)</pre><pre>},</pre><pre>{()-&gt;() in</pre><pre>print(self.positiveButtonText)</pre><pre>}]</pre><pre>)</pre><p>Util.swift (for reference, this is a UIAlertController summarized as Util)</p><pre>import UIKit</pre><pre>class Util: NSObject {</pre><pre>var rootWindow: UIWindow!</pre><pre><em>// Singleton.</em></pre><pre>class var sharedInstance: Util {</pre><pre>struct Static {</pre><pre>static let instance: Util = Util()</pre><pre>}</pre><pre>return Static.instance</pre><pre>}</pre><pre>private override init() {}</pre><pre><em>// show alert.</em></pre><pre>func showAlertView(</pre><pre>title: String? = nil,</pre><pre>message: String,</pre><pre>actionTitles: [String],</pre><pre>actions: [() -&gt; ()]?) {</pre><pre><em>// create new window.</em></pre><pre>let window = UIWindow(frame: UIScreen.main.bounds)</pre><pre>window.backgroundColor = UIColor.clear</pre><pre>window.rootViewController = UIViewController()</pre><pre>Util.sharedInstance.rootWindow = UIApplication.shared.windows[0]</pre><pre><em>//create alertview.</em></pre><pre>let alert = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.alert)</pre><pre>for title in actionTitles {</pre><pre><em>//add action.</em></pre><pre>let action = UIAlertAction(title: title, style: .default, handler: { (action : UIAlertAction) -&gt; Void in</pre><pre>if let acts = actions {</pre><pre>if acts.count &gt;= actionTitles.count {</pre><pre>acts[actionTitles.index(of: title)!]()</pre><pre>}</pre><pre>}</pre><pre>DispatchQueue.main.async(execute: { () -&gt; Void in</pre><pre>alert.dismiss(animated: true, completion: nil)</pre><pre>window.isHidden = true</pre><pre>window.removeFromSuperview()</pre><pre>Util.sharedInstance.rootWindow.makeKeyAndVisible()</pre><pre>})</pre><pre>})</pre><pre>alert.addAction(action)</pre><pre>}</pre><pre>window.windowLevel = UIWindowLevelAlert</pre><pre>window.makeKeyAndVisible()</pre><pre>window.rootViewController?.present(alert, animated: true, completion: nil)</pre><pre>}</pre><pre>}</pre><p>As a method argument, specify a title, a message body, a button corresponding to Cancel, and a button corresponding to OK with a character string. Incidentally, the argument actions is an array that allows you to set closures, so you can easily do other processing after push the OK Button.</p><p>If you want to display only the OK button, specify OK string only for actions.</p><p>I hope this helps those studying Swift and iOS App.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd132f347ecd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[App review passed]]></title>
            <link>https://medium.com/@daihase_88/app-review-passed-8ec163af27c5?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ec163af27c5</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[ipv6]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Thu, 29 Dec 2016 15:10:04 GMT</pubDate>
            <atom:updated>2016-12-29T15:10:04.573Z</atom:updated>
            <content:encoded><![CDATA[<p>The problem that I had suffered for a long time at last was solved. The application crashes under that IPv6 environment …</p><p>Conclusion IPv6 was not directly related to crash. Perhaps no crash occurred in our environment, so I think that it was caused by the communication environment on the apple side.</p><p>I have not been able to investigate the details yet, but I was glad that the app could be released anyway.</p><p><strong>Have a Happy New Year !</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ec163af27c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Just a soliloquy.]]></title>
            <link>https://medium.com/@daihase_88/just-a-soliloquy-499d86b8b565?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/499d86b8b565</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[dns]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Sat, 17 Dec 2016 16:20:17 GMT</pubDate>
            <atom:updated>2016-12-17T16:20:17.494Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been in contact with Apple’s technical support since last month. The content is the IPv6 problem previously mentioned here. I contacted the support center several times by e-mail, but the message that came to the end is below.</p><blockquote>You’ve indicated that when you test your application using the macOS NAT64 test environment, there is no connection problem. There is a known issue with the macOS NAT64 environment which can lead to a false positive. The macOS NAT64 implementation always processes a DNS lookup request from the client process and synthesizes an IPv6 address from the server’s IPv4 address. Per RFC 6147 &lt;<a href="https://tools.ietf.org/html/rfc6147">https://tools.ietf.org/html/rfc6147</a>&gt; which specifies the Network Address Translation process from IPv6 clients to IPv4 servers, the proper course of action for the lookup process is to first query for a type AAAA record. If your DNS server responds with the type AAAA record, then that address is returned to the client application to use while establishing a connection. <br>An issue can arise as some servers fail to respond to the connection request when it is sent to the IPv6 address. However, a connection generally works if the connection request is sent to the synthesized IPv6 address which is based on the IPv4 address. In this case, the solution is to work with your internet service provider to make sure that the server responds to the connection request when sent to the IPv6 address. This problem cannot be detected by trying to establish a connection across the macOS NAT64 test environment.</blockquote><p>Hmmm….. I don’t feel like I can solve these problems. Perhaps my server side is bad. But I don’t know where to fix. I use Nginx for the web server, but it may be because the reverse proxy setting is incorrect. I have released many iOS applications so far. Although I received reject from Apple many times, the report that it crashes under this IPv6 environment is the most difficult to solve.</p><p>I have to solve this problem during the month. I fixed a few suspicious points, so I will issue a review request again next week. I hope this will fix the problem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=499d86b8b565" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Movie Independence day, it was one of masterpieces for me.]]></title>
            <link>https://medium.com/@daihase_88/the-movie-independence-day-it-was-one-of-masterpieces-for-me-6346b6bcb598?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/6346b6bcb598</guid>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[independence-day]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Mon, 28 Nov 2016 08:53:10 GMT</pubDate>
            <atom:updated>2016-11-28T08:53:10.834Z</atom:updated>
            <content:encoded><![CDATA[<p>The other day, the movie Independence Day Resurgence (DVD/Blue-ray) was released.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*xq5ju4nHTuY3DQD9ZBa_OA.png" /></figure><p>By the way, although the content of the previous Independence Day is very simple, it is one of my masterpieces. For me of a big fan of a previous work, the content of this time was a little disappointing.</p><p>The reason is as follows.</p><ul><li><strong>Many scenes are similar to those of the previous work.</strong></li><li><strong>Human civilization has developed too much and there is no tension.</strong></li><li><strong>It’s the most disappointing that Will Smith is not appearing.</strong></li></ul><p>As the impact of the previous work presidential speech scene was also great, we could not get any further impression in this work.</p><p>And the second point that the civilization has developed too much. Suddenly a huge spaceship appeared on Earth in the previous work, human beings were in such a state that they could not do anything until they attacked. It was the first time for human beings that the alien was attacking, and the fear attracted the viewers.</p><p>However, as the civilization was too developed this time, it was predicted that the alien will attack again. And when the spaceship could be confirmed from the earth, the attack had already begun.</p><p>And finally, the most disappointing thing was that Will Smith was not appearing. His son is not bad, but something is missing in him. Like Terminator 3, the movie that the cast of the previous work has refused does not go well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BD7gzvZVCjAZyQ0AJNyF2g.png" /><figcaption>CG has the highest quality in the movies I have ever seen.</figcaption></figure><p>Moreover, it is said that part 3 will come out … At that time, the earth may not come out anymore. To the main movie of the universe …</p><p>It is no longer Independence Day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6346b6bcb598" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to introduce and configure zsh.]]></title>
            <link>https://medium.com/@daihase_88/how-to-introduce-and-configure-zsh-cff6952f1f52?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/cff6952f1f52</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[zsh]]></category>
            <category><![CDATA[mac]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Sun, 27 Nov 2016 07:59:29 GMT</pubDate>
            <atom:updated>2016-11-27T07:59:29.866Z</atom:updated>
            <content:encoded><![CDATA[<p>What do you use shell? A shell named bash is installed in Mac from the beginning. There is a way to check which shell you are using.</p><p>In order to confirm, it is necessary to start the software called terminal first. Here, I will introduce useful terminal software.</p><p><a href="https://www.iterm2.com/">iTerm2 - macOS Terminal Replacement</a></p><p>This iTerm2 can customize various looks, but this time I will not do it. Then terminal starts, please enter ps and press return key.</p><pre>$ ps<br>PID TTY           TIME CMD<br>48488 ttys000    0:00.02 -bash</pre><p>It’s displayed as “-bash”. (By the way, ps is a command to display running processes)</p><p>Before converting bash to zsh, what is zsh? Briefly, zsh is a more functional and more usable shell than bash. Since the login shell now knows that it is bash, let’s check to see what other shells are available. Please enter the following at the terminal.</p><pre>$ cat /etc/shells</pre><p>A list of several shells will appear. (There are differences in display depending on the environment)</p><pre><em># List of acceptable shells for chpass(1).<br># Ftpd will not allow users to connect who are not using<br># one of these shells.</em></pre><pre>/bin/bash<br>/bin/csh<br>/bin/ksh<br>/bin/sh<br>/bin/tcsh<br>/bin/zsh<br>/usr/local/bin/zsh</pre><p>There is / bin / zsh.<br>Then try entering the following command to change the login shell to zsh.</p><pre>$ chsh -s /bin/zsh</pre><p>When you enter it, you will be prompted for a password. Please enter the password for logging into Mac. Let’s restart the terminal again. Then enter ps command again to see if the shell really switched.</p><pre>$ ps<br>PID TTY           TIME CMD<br>54101 ttys000    0:00.47 -zsh</pre><p>It has changed to -zsh!<br>You have successfully changed the login shell from bash to zsh.</p><p>You switched to zsh, but since it is the default setting, you may not know what is useful. So how do you set that up? To do that, you need to create a file called “.zshrc”.</p><p>Let’s create it from the terminal.</p><pre>$ cd // Move to home directory<br>$ touch .zshrc</pre><p>“touch” is a command to change the timestamp of the file, but if there is no such file, create an empty file.<br>In this way .zshrc was created in the home directory. If you write various setting contents to this .zshrc, it becomes very useful when using zsh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*W4vzImv9RaOnYb_bgPfk-g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cff6952f1f52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Currently developing applications]]></title>
            <link>https://medium.com/@daihase_88/currently-developing-applications-6d30453747ac?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d30453747ac</guid>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Sat, 26 Nov 2016 10:42:40 GMT</pubDate>
            <atom:updated>2016-11-26T10:52:30.046Z</atom:updated>
            <content:encoded><![CDATA[<p>Today my family went out to play so I had been crazy about the development of the application I am making now. Actually, I’m currently developing an iOS version of Android application developed in the past.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*TqLtNGo0v6yi_ZAhx2DzhA.jpeg" /><figcaption>Currently only available on google play.</figcaption></figure><p><a href="https://play.google.com/store/apps/details?id=com.libraproject.app.doodlemaker&amp;hl=en">Doodle Maker 〜kids Paint〜 - Android Apps on Google Play</a></p><p>This is the Android application I first developed. At that time, I only knew the server side Java, and since I didn’t have any Android know-how, I had a lot of trouble.</p><p>Actually this is also compatible with Android 2.3. At that time the smartphone was also poor so memory correspondence was very difficult. Fortunately, despite the application I developed for the first time, many people played. (Recently it has not been downloaded much. . .)</p><p>By the way, this iOS version, it is very easy compared with Android. The iPhone(iOS) is much more advanced than Android of those days, and Xcode of the development environment is very easy to handle, so it will proceed smoothly.</p><p>I’d like to release it in January next year. I’ll do my best.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d30453747ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Buffy the Vampire slayer, that is my favorite American drama.]]></title>
            <link>https://medium.com/@daihase_88/buffy-the-vampire-slayer-that-is-my-favorite-american-drama-32a438fac830?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/32a438fac830</guid>
            <category><![CDATA[buffy-the-vampire-slayer]]></category>
            <category><![CDATA[television]]></category>
            <category><![CDATA[drama]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Fri, 25 Nov 2016 02:42:12 GMT</pubDate>
            <atom:updated>2016-11-25T02:42:12.345Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I’d like to talk about my favorite drama. It’s name is Buffy the Vampire slayer.</p><p><a href="http://www.imdb.com/title/tt0118276/">Buffy the Vampire Slayer (TV Series 1997-2003)</a></p><p>It is a TV drama produced in the United States from 1997 to 2003, and there are seven seasons in total. <strong>Sarah Michelle Gellar</strong>, who played the leading role, become a popular actress in this work.</p><p>By the way, I am a fan of her, but I watched this drama and became a fan.</p><p>Unfortunately, in Japan in which I live, this Buffy’s series is only available for season 2 on DVD. Therefor, I know the contents only up to Season 2. Nevertheless this drama is content that is sufficiently interesting.</p><p>The reason is that this drama depicts high school life that everyone experiences once. Love, friendship, betrayal, jealousy, these things are interwoven in the story of this, and a horror called Vampire is added there. It must be fun.</p><p>Another reason why is very fun is that not only the leading role but also all other characters are humor. For example, <strong>Buffy’s</strong>(Sarah Michelle Gellar) classmate <strong>Xander</strong>(Nicholas Brendo). He is in love with Buffy who came to his school as a transfer student. At first he was a man that he could not rely on, but he become a reliable man while living school life with her. Especially his joke leave them cold.</p><p>There are many other attractive characters. One of them is Buffy’s best friend <strong>Willow Rosenberg</strong>(Alyson Hannigan). She is a childhood friend of Xander. Initially, she was an inconspicuous existence at school, but like Xander, she grows steadily with school life with Buffy. She initially uses computer knowledge to support them, but she will begin to use magic in the second half of the story. More than anything, she is as cute and charming as Buffy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpHj1DAz56E0lTh74b8sXg.png" /><figcaption>Reference Links: <a href="http://www.avclub.com/article/10-episodes-that-show-how-ibuffy-the-vampire-slaye-89781">http://www.avclub.com/article/10-episodes-that-show-how-ibuffy-the-vampire-slaye-89781</a></figcaption></figure><p>There are many other attractive characters besides them. Currently this drama season 3 and beyond are not sold in Japan. It seems difficult for these to be sold in Japan. I’d like to see them by all means but it seems to be difficult. Of course I can watch it if I purchase it abroad, but I don’t understand English completely, so there are some uneasy parts without Japanese subtitles. For that I also have to study English more and more.</p><p>Let’s call it a day.<br>I would like to introduce works that I though were also interesting next time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32a438fac830" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I am bothered by IPv6 support.]]></title>
            <link>https://medium.com/@daihase_88/i-am-bothered-by-ipv6-support-2441a2ce2e7a?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/2441a2ce2e7a</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Thu, 24 Nov 2016 05:51:51 GMT</pubDate>
            <atom:updated>2016-11-24T05:51:51.899Z</atom:updated>
            <content:encoded><![CDATA[<p>As I mentioned in the title, I am developing a chat type application right now and have been pointed out by Apple that our application is not compatible with IPv6.</p><p>Currently Apple’s Review Guidelines are that all released applications need to be IPv6 compliant.</p><p><a href="https://developer.apple.com/app-store/review/guidelines/">App Review Guidelines - Apple Developer</a></p><p>The following contents are sent form iTunes Connect(Resolution Center), but naturally we confirm that our application does not crash under IPv6 environment.</p><pre>Your app crashed on iPad and iPhone running iOS 10.1.1 connected to an IPv6 network when we:<br><br>Logged in to your app with the provided demo account.<br><br>This occurred when your app was used:<br><br>- Offline<br>- On Wi-Fi<br><br>We have attached detailed crash logs to help troubleshoot this issue.</pre><p>This problem baffles me. Actually, not only this application, other applications are rejected for the same reason. I tried it in my own environment and did not crash and I reported it at the Resolution Center. But it will not solve it.</p><p>What are we gonna do?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2441a2ce2e7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The game which is popular now in the indie game industry in Japan, it is Urban Nuckle.]]></title>
            <link>https://medium.com/@daihase_88/the-game-which-is-popular-now-in-the-indie-game-industry-in-japan-it-is-urban-nuckle-f2bbf1ae0b45?source=rss-d90d0185b699------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2bbf1ae0b45</guid>
            <category><![CDATA[indie-game]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[daihase]]></dc:creator>
            <pubDate>Wed, 23 Nov 2016 13:50:24 GMT</pubDate>
            <atom:updated>2016-11-23T13:50:24.140Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I’d like to introduce the application I am currently playing.</p><p>It’s name is …</p><h3>Urban Nuckle!!!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*xqlWV5eVVuLHpCRyFlAwpQ.png" /></figure><p>Currently this game is on the <a href="https://itunes.apple.com/us/app/abannakkuru/id1172674450?mt=8&amp;ign-mpt=uo%3D2">App Store</a> and <a href="https://play.google.com/store/apps/details?id=sleepnel.urban&amp;hl=ca">Google Play</a>. Urban Nuckle was produced by a developer inspired by the game “URBAN CHAMPION” released in Japan on November 14, 1984 from Nintendo. This Urban Nuckle was developed by a game production team named <a href="http://sleepnel.strikingly.com/">SleepNel</a> based in Japan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*__pgql4G2mRQpJsuoC2osw.png" /></figure><p>The main programmer of this team, <a href="https://twitter.com/pouhiroshi">pouhiroshi</a>, is a friend of mine. He develops games everyday to communicate Japanese good old game culture not only in Japan but also abroad.</p><p>Sadly, in Japan now social games are preferred to these good old games. The social game itself is a wonderful game, but problems arise due to users’ using more money than expected in recent years. We are not such a social game, but I’d like to develop a game that will be available for a long time through it is a fee.</p><p>Whoops, I’m wandering from the subject! Let’s get back on track.</p><p>The content of Urban Nuckle is very simple, punching and kicking, and also a game that kills an enemy using a killer technique. However, unlike URBAN CHAMPION, Urban Nuckle is made in 3D, so It has become a very powerful game. Please watch it on video once.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwJA4edtdRMQ%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwJA4edtdRMQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FwJA4edtdRMQ%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bd179110a3c6942200724e950387a484/href">https://medium.com/media/bd179110a3c6942200724e950387a484/href</a></iframe><p>This Urban Nuckle is currently open for a fee. But it is worth paying for that price. According to the developers, various stories will be added in the future as well, so please download and try playing by all means.</p><p>I’d like to introduce more fun games and apps made by Japanese developers from now on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2bbf1ae0b45" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>