Blog

Add a new blog
May 25

add new code to new github repo

…or create a new repository on the command line $ echo "# your_project_git" >> README.md $ git init $ git add README.md $ git commit -m "first commit" $ git branch -M main $ git remote add origin git@github.com:yourusername/your_project_git.git $ git push -u origin main …or push an existing repository from the command line $ git remote add origin git@github.com:yourusername/your_project_git.git $ git branch -M main $ git push -u origin main NOTE: ...

May 17

How To Create a Django App and Connect it to a Database - MySQL

how to create a Django app and connect with MySQL: view this site ...


April 2

Django setup

In your python virtual env, install django 3.1.5 (or later version) $ pip install django==3.1.5 Check virtual env using pip $ pip freeze Run django-admin to create your django project $ django-admin startproject myproject_name Run your first django project, and you should be able to view your django project on http://127.0.0.1:8000 $ python manage.py runserver To migrate your database with django, run  $ python manage.py migrate Common commands for manage.py $ python manage.py startapp ...

April 2

Python VirtualEnv HowTo

Create python virtualenv in a dir for python3 $ cd codefolder $ python3 -m venv venv  (or, $ virtualenv -p python3 . ) Start your virtualenv again $ source yourvenv/bin/activate Exit python virtualevn $ deactivate Shorthand to create virtualenv and folder $ virtualenv yourvenv -p python3 Install django $ pip install django==3.1.5 ...

March 17

Uncommon Javascript Knowledge 1

#1, !! Converts Object to boolean. If it was falsey (e.g. 0, null, undefined, etc.), it will be false, otherwise, true. !oObject  // inverted boolean !!oObject // non inverted boolean so true boolean representation So !! is not an operator, it's just the ! operator twice. #2, ?? JavaScript nullish coalescing operator.   It returns the right operand (rightExpression) if the left operand (leftExpression) is null or undefined. let...

February 20

Renew IOS Distribution or Development Certificate

when you get the expire alert of your ios distribution. 1. on your mac, open keychain access app: 2. go to certificate assistant: 3. enter certificate user email info: 4. sve certificate signing request cert: 5. go to developer.apple.com:  6. go to account certificates, ids & profiles:  7. add certificates:  8. choose ios distribution app store ad hoc: 9. upload certificate signing request:  10. click download your ios distribution cert: 11. save your...

February 9

HTML5 Video Streaming from Google Drive

Using your current Google Drive as your video host. Using HTML5 video to play your videos from your Google Drive. First, get your google drive file ID for your video.  It’s important to share the video for public viewing. I created a public folder on my Google Drive, so I can easily track and manage my public files. To share the video: Select the...

December 7

Recover .jks file to update App on Google Play

For any reason that you might lose your .jks file to update your current app on google play, you can use following steps to recover or regenerate a new jks. View this link and follow the steps to recover the .jks:  https://medium.com/@doolatunde/recover-jks-file-to-update-app-on-google-play-1252d08bae16 ...

Send us a message. We will reply as soon as we can.