My Blog
Mostly my technical notes about things I did and issues I solved.
Ionic input field with side button got answer from here https://stackoverflow.com/questions/36195858/ionic-adding-a-button-inside-a-input-field <ion-item> <ion-input type=”password” placeholder=”Password”></ion-input> <button clear item-right>Forgot</button> </ion-item>
Read MoreDeleting failed Bootcamp partition So after bootcamp failed and there is 2 bootcamp partitions that you cannot delete. Here is how to document by using diskutil command to help you remerge partition back to your mac main volume. first list all your partition diskutil list and then figure out which 2 to be deleted mine…
Read MoreNewly installed android studio has gradle access not set to execute. ending up with Error: spawn EACCES error message. using –verbose does not show details. but change mod to add execute permission fix the issue. chmod +x /Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle
Read MoreFire base rule using user authentication email This is to take note that in order to create rule base on auth email, this is how to access it. $(request.auth.token.email)
Read MoreLast time I posted way to set proxy into docker-machine. But as we need to change the corporate password once couple months, we need to change the proxy settings as they have password encoded in URL. We know that docker machine configuration is to set it into /var/lib/boot2docker/profile file. but changing the file on the…
Read MoreWhen you construct a custom type and trying to add to firestore. with the following text book code: constructor(private afs: AngularFirestore) { this.itemsCollection = afs.collection<Item>(‘items’); this.items = this.itemsCollection.valueChanges(); } add(item: Item){ this.itemsCollection.add(item); } There will be an error: Exception caught: (FirebaseError) : Function CollectionReference.add() requires its first argument to be of type object, but it…
Read Moreimport base64 #Decode xored = ‘KD4sPjsyNjE=’ plain = ”.join([chr(ord(c)^ord(‘_’)) for c in base64.b64decode(xored)]) #Encode enocoded = base64.b64encode(”.join([chr(ord(c)^ord(‘_’)) for c in plain])) ref: https://idmdepot.com/How_To/IBM_WebSphere_Application_Server_How_To.html
Read Moreusing protected keys in production does not actually increase the security much, if at all. This is because, once activated, private keys are kept unprotected in program memory; an attacker who can get to the server can get the keys from there with just a little more effort. Thus, passphrases should be viewed only as…
Read Morethis is how you reference docker image in openshift pointing to docker repo. –images=docker.io/your/image:tag
Read Moreionic has tons of issue of compatibility issue, just ran into another one where running ionic app in ios emulator, the input field cannot be focused. the solution is to simulator -> “Hardware” -> “Keyboard” -> “Toggle software keyboard”
Read More