1/14/2020
1/11/2020
How to clean up none docker images
11:09 PM
docker, docker image, how to remove none docker images, none docker images
No comments
<none> docker images during building a docker container. So cleaning up would be good for your local development environment because they might take your local storage. There are two ways that you can clean up.
docker rmi $(docker images -f "dangling=true" -q)
If you are using Docker API(higher than 1.25) and you can use prune command. docker image prune
By the way be careful to type it. If you add -a option it will remove all your Docker images.12/14/2019
Cannot distribute via Testflight using fastlane in Jenkins
1:11 AM
fastlane -20101, ios distribution, ios testflight distribution jenkins, testflight fastlane, testflight jenkins
No comments
I have been struggled to distribute our beta software via fastlane. It used to say that I put an incorrect username or password. But I already assigned the environment variable like below.
env["FASTLANE_USER"] = "xxxxxxx@xxxxx.com"
env["FASTLANE_PASSWORD"] = "xxxxxxxxx"
- The error log
Your Apple ID or password was entered incorrectly. (-20101)
In my case I just added another line to reassign the env["FASTLANE_PASSWORD"] before it uploads the file to Testflight.
By the way I feel that it takes too much time to process a build in Apple Testflight. So I have thought about moving to another service for my beta software release.
12/06/2019
Magic Mouse doesn't scroll properly. Stuck in certain places
12:57 AM
magic mouse, magic mouse dual display issue, magic mouse reset, magic mouse scroll error, magic mouse stuck, mouse scroll, stuck to scroll in a certain places
No comments
Today I have got a strange issue on my Apple Magic Mouse. The symptom was like I tried to scroll a certain place in the screen then the scroll was stuck on the edge of the area. So I tried setting displays on the preference option. But it was no luck.
Then I started to suspect the mouse. So I changed my Magic Mouse to another Magic Mouse and it works! So the issue was my Magic Mouse has a software issue I guess. Then you need to reset your Magic Mouse connection with your Mac and try it again.
11/20/2019
How to launch Xcode in macos catalina terminal zsh
3:31 PM
launch xcode terminal, macos catalina terminal zsh, xcode macos catalina terminal
No comments
Apple changed the default shell to ZSH. So I would like to run Xcode in the Terminal. So here is the brief instruction for you.
Open
.zshrcfilevim ~/.zshrcAdd an alias at the bottom.
alias xcode="open -a Xcode"Source
.zshrcor relaunch the terminalsource ~/.zshrcRun the command using the alias.
xcode example.xcworkspace
Bye Slack, Meet Teams
2:46 AM
Daily Active Users, Microsoft Teams, Microsoft Teams DAU, Office365, Slack, Teams
No comments
I have been a long time user for Slack. The thing that I don’t like Slack is getting heavier and getting slower.
Today I read a new article saying Microsoft Teams got over 2M daily active users in their Teams service. I think that they bundled it as a part of Microsoft Office 365 and it could be a booster to acquire enterprise users.
It is interesting to see what Microsoft has been doing in the recent years. Then I feel that I become a fan of Microsoft. So next time if I have a chance to build a new team I would like to try Microsoft solution for our teams.
11/18/2019
Git ignore vs Git exclude
5:22 PM
exclude, gitignore, ignore, react native, source control
No comments
If you are a developer you might have used git to manage your source repository. Then you might use .gitignore file to exclude files or folders that you don’t want to sync with your remote repository.
.gitignore
If you specifies files or folders in .gitignore file, you can exclude files or folders messed up by an unexpected situation. Because it syncs with your remote repository which means all your team members share this configuration for a project.
exclude
git ls-files --others --exclude-from=.git/info/exclude
When I work on a React Native project then I need to be careful not to affect Android sources. In this case exclude file could be a solution for you. The scope of exclude file is for your machine which means that you exclude folders or files in your machine not to sync with the remote repositories.
11/17/2019
React Native - launch an app on iOS device and quit immediately without errors
3:42 PM
ios device closes automatically, ios device crash, ios device crash without errors, ios device launch error, reactnative
1 comment
- No loading from React native testing server
- The app launched and quit automatically without errors in the Xcode console
After I fix the library link in Xcode and it works fine. I hope it helps someone who faced this kind of error.
11/12/2019
When you try to import a library or a framework in your project you might face an issue saying clang: error: linker command failed with exit code 1 (use -v to see invocation)
3:39 AM
architecture arm64, ios build error, ios linker error, linker command failed, x86_64 error
1 comment
clang: error: linker command failed with exit code 1 (use -v to see invocation)I can't say that my solution is the answer for you. But it could an answer for someone. In my case I did below.
First
- Select your target project and go Frameworks, Libraries, and Embedded Content section.
- Make Embed column Embed & Sign
- Clean and build your project again
Second
- Remove the derived data
- Clean and build your project again
Third
- Go Project > Build Settings
- Update Enable Bitcode to
No - Go Targets > Build Settings
- Update Enable BitCode to
No
11/05/2019
Bitbucket authentication error, Invalid username and password
7:22 PM
bitbucket, bitbucket authentication, bitbucket invalid username, bitbucket invalid username and password
1 comment
Invalid username and password
I tried to change my password in Bitbucket and it didn’t work. Also, I tried to reset Bitbucket related keychain in mac os. It still didn’t work. Remove all your keys in Keychain Access
Most answers in the web suggests you to remove all your keys in Keychain Access app on your Mac. I did it, too. Before you take it below try this at the first.
Using SSH in Shell
I recreated a private/public key pair using below.ssh-keygen -t ed25519 -C "email@example.com"
Then I added the public key to Bitbucket account. Then I tried to test it using SSH-Agent. ssh -T git@bitbucket.org
Then I went back to Sourcetree and tried it again. It finally worked.
It was a strange that I didn’t get any issue on Github and Gitlab. I think that the experience of Bitbucket is getting more complicated than other Git cloud services. 10/29/2019
Updating Godaddy's name servers? Good luck
7:01 PM
domain, godaddy, godaddy default nameserver, nameserver
No comments
I have used Godaddy for a long time. By the way I have got a critical issue when I update name servers of a domain.
Today I tried to update the name servers of a domain to Godaddy’s default name servers and then it was messed up. The existed name servers were mixed up with Godaddy’s default name servers and then I cannot use the domain anymore.
Then I called Godaddy’s customer support and they said they had an issue on it. As a result, they said that I have to wait for 5 days to get the domain working. It was my second time to face this issue.
Someone who uses their Godaddy domain for a critical use has to think about updating name servers seriously. I think that Godaddy has a big problem on their system. It happens twice and they haven’t fixed it.
I will try to transfer all my domains to other service provider as soon as possible.
10/22/2019
Free iPad Pro Duel screen? Give up using Sidecar
12:38 PM
Apple Sidecar, Astropad, Duel Screen, DuetDisplay, Free iPad Pro Duel screen app, iPad Pro
No comments
I have used Duet or Astropad for making iPad Pro as a second display. Then I tried to use Apple’s Sidecar which is a new feature of Mac OS Catalina. By the way it seems too unstable.
I frequently meet a freezing issue, a black screen and so on. Eventually I changed to Duet Display which provides much better reliability. Also, it provides more high-end resolution. But I don’t think whether or not this feature needs. Because the size of texts is too small to read.
I feel that Apple makes their product quality worse since Steve Jobs was gone. As a long Apple fan, I feel disappointed.
Still Touch ID is better than Face ID
8:03 AM
FaceID, iPhone 11, iPhone 11 Face ID, iPhone 8 Plus Touch ID, iPhone X, TouchID
No comments
When iPhone X was launched I bought and used it and then it took a short time to change from it to iPhone 8 Plus which has Touch ID. The reason why I changed was because Face ID wasn’t reliable and better than Touch ID. After several years my iPhone 8 Plus was broken and I bought iPhone 11.
Still Touch ID is better than Face ID. I don’t know how difficult putting Touch ID into the screen of iPhone is. Then I think that Apple is still working on it. Recently Samsung tried it and then I read comments saying many users do not satisfy with it.
10/17/2019
Apple iPad Pro Sidecar with Mac OS Catalina
3:50 PM
catalina, ipados, ipadpro, macOS, sidecar, sidecar error
No comments
After Apple released the official version of macOS Catalina and I tried to use Sidecar with my iPad Pro. It seems okay. But it doesn’t work sometimes. For example, sometimes iPad Pro screen became just a black screen and I have to change the display option between Mirroring and Separated mode.
Today I updated the latest Mac OS Catalina and iPadOS 13.1.3 and now it feels more stable than before. If you have any issue like me please try updating your Mac OS and iPadOS.
10/08/2019
@Published property wrapper in a subclass doesn't send a callback
6:49 AM
@Published, Combine, objectwillchange, observableobject, observedobject, Swift 5.1, Swift Property Wrapper, SwiftUI
No comments
I worked on an app using SwiftUI and Combine framework. Then I used @Published property wrapper to publish a stream data from a property in a ViewModel class.
By the way when I assign a new value to the property and it doesn’t send a callback to the counterpart SwiftUI view. Then I looked through a similar question in the stack overflow.
Then I followed the answer. But it doesn’t work in my case. So I declared objectWillChange in the subclass and now it works.
I think that SwiftUI and Combine framework are not stable yet. So you might have this kind of issue.
// ViewModel
var objectWillChange = PassthroughSubject<Void, Never>()
var value: String = "Select" {
willSet {
self.objectWillChange.send()
}
}
// View
var body: some view {
Text(self.viewModel.value)
}
9/20/2019
Cannot receive a user's email using Sign in with Apple
6:47 PM
development, facebook login, iOS, ios 13, sign in with apple, signin with Apple
No comments
By the way I faced an issue that I couldn't get a user's email after the initial sign up. Then I found a link that Apple engineer answered.
So if you are testing Sign in with Apple feature go to iOS Settings and remove the previous sign in permission. Then you might save the user information such as the email address into your database.
Another issue that I found in Sign in with Apple
Apple said that they generated a fake email address that redirects an email to a user’s iCloud email address. By the way this issue could cause a duplicated signup if a user uses the email address in other service such as Facebook. So Apple’s approach is like pushing your app to use the only Sign in with Apple feature. But according to Apple’s guideline you have to provide “Sign in with Apple” if you use other service such as Facebook login.9/03/2019
Wordpress Redirection Error after Wordpress migration
11:47 PM
docker, kubernetes, Migration, redirection error, Wordpress
No comments
Recently I tried to migrate Wordpress website into Kubernetes environment using Docker. After I did set them all I got an error that redirects a new domain to an old domain. So I checked all the sources and database records. But there was nothing related to the old domain.
The solution was too simple. I needed to clean up Browser Cache.
8/22/2019
Troubleshooting Kubernetes - failed to pull an image from a private registry
2:40 PM
development, devops, docker, kubernetes, no basic auth credentials, registry
No comments
I was struggled to pull a docker image from a private registry in Kubernetes environment. But everything seems okay. I added a secret to Kubernetes and then the secret information works well in my local. But when I tried to deploy a pod using an image ** no basic auth credentials ** error happened.
Then I finally fixed it. I didn’t create the credentials(secret) with a same namespace in Kubernetes environment. If you use a namespace for your k8s deployment you must know that all the objects related to the deployment should use the same namespace.
Why did Google announce Flutter?
2:35 PM
android, development, flutter, Google, iOS, reative native
No comments
Kotlin itself is largely dependent on Java. So Google needs a completely different alternative which helps them get rid of it entirely (That’s one of the reasons for the existence of Fuchsia). The Dart programming language used in the Flutter framework is one of the first steps taken by Google to do the same.I am still thinking between Reative Native and Flutter. Actually I prefer developing an app using a native code. So recently I looked through Kotlin and Android native platform. By the way it seems that Google might give up Kotlin in the future in according to this article.
8/07/2019
Docker connection is refused in Jenkins
3:09 AM
devops, docker, docker daemon was refused, jenkins
No comments
The issue was from Docker configuration. In Ubuntu 18.04 Docker configuration is located in /lib/systemd/system/docker.service Then I need to update to enable Docker daemon connection from Jenkins.
ExecStart=/usr/bin/docker daemon -H fd://
I updated the configuration above to a new configuration below.
ExecStart=/usr/bin/docker daemon -H fd:// -D -H tcp://0.0.0.0:2375
The I restarted Docker daemon.
sudo systemctl daemon-reload
sudo systemctl restart docker
Now it worked. Jenkins can connect the Docker daemon now.