ionic input field with side button

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>

Firebase Firestore add item issue

When 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…

decode websphere {xor} in python

import 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