https://github.com/steelejay/LowkeySpeech
Monday, March 20, 2023
ADB logCat
C:\Program Files\Unity\Hub\Editor\2021.3.6f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools
adb connect 127.0.0.1:62001
adb logcat -s "Unity"
WebRPC implement server Photon
https://forum.photonengine.com/discussion/10728/webrpcs-and-authcookie
Thursday, March 2, 2023
Fix bug android res obsolete using AAR instead
https://forum.unity.com/threads/exception-obsolete-providing-android-resources-in-assets-plugins-android-assets-was-removed.1171829/
For anyone blocked, here's a semi automatic way to unblock you.
* Place this script https://github.com/todi1856/Android...rader/Assets/Editor/AndroidPluginsUpgrader.cs into Assets/Editor folder
* Restart Editor
* Open project
* If you have Assets/Plugins/Android/<res, assets> folder present, you'll see a dialog asking about upgrade
* Basically Unity will move Assets/Plugins/Android/<res, assets> -> Assets/Plugins/Android/<res, assets>-legacy and upon export/build will manually copy Assets/Plugins/Android/<res, assets>-legacy to unityLibrary/src/main/<res, assets> folder (excluding .meta files)
2023-02-27: Upgraded code to also upgrade assets directory, similarly like gagasik code does.
Wednesday, March 1, 2023
Create AAR by command line
How To Pack Resources Into Single AAR file¶
Overview¶
If you use Gradle build system to assemble your Unity Android application, you can not simply put the Android resources to Assets/Plugins/res/... You have to put all your resources into a single .aar file and link it to your project.
Tutorial¶
- Create an empty directory and go inside it.
Create file
AndroidManifest.xmlinside directory with following content:<manifest package="im.getsocial.sdk.resources"> </manifest>Create directory
res. Inside it create directorydrawable.- Put all the image resources to the
res/drawable. Go back to the directory where
AndroidManifest.xmlis placed. Example structure of your directory:├─── AndroidManifest.xml └─── res └─── drawable ├─── my_drawable.png └─── my_drawable1.pngRun the
jar cvf getsocial_resources.aar -C . .inside directory.
https://docs.getsocial.im/knowledge-base/pack-resources-to-aar/
Friday, February 24, 2023
Thursday, February 2, 2023
Python library from Linkend
I reviewed 1,000+ Python libraries and discovered these hidden gems I never knew even existed.
Here are some of them that will make you fall in love with Python and its versatility (even more). (Please find the full list here: https://bit.ly/py-gem-libs)
1) Mito: Analyze data in Jupyter by editing a spreadsheet.
Link: https://bit.ly/mito-ds
2) Sourcery: Automated code refactoring to make code clearer and concise.
Link: https://bit.ly/py-sourcery
3) Bashplotlib: Draw plots in the terminal.
Link: https://bit.ly/bshplt
4) Xonsh: Use IPython and a UNIX shell together.
Link: https://bit.ly/xonsh
5) Rebound: Fetch Stack Overflow answers in case of errors during runtime.
Link: https://bit.ly/py-re
6) Livepython: Watch your Python code run like a movie.
Link: https://bit.ly/live-py
7) Reloading: Modify Python code during run-time.
Link: https://bit.ly/py-chng
8) PyQRCode: Convert any text/URL/Image to a QR code.
Link: https://bit.ly/qrpy
9) PyWhatKit: Automate sending messages on WhatsApp.
https://bit.ly/wtsappy
10) Pytube: Download YouTube videos.
Link: https://bit.ly/pyutube
11) SymPy: Perform symbolic computations in python to solve/print mathematical equations.
Link: https://bit.ly/py-spy
12) Rembg: Remove background from images.
Link: https://bit.ly/rem-bg
13) Grip: Preview the README file locally as it will appear on GitHub.
Link: https://bit.ly/grip-py
14) getpass: Hide passwords while typing them in scripts.
Link: https://bit.ly/getpass-py
15) returns: Make your functions return something meaningful, typed, and safe!
Link: https://bit.ly/py-rtns
16) faster-than-requests: Speed up the requests module in Python.
Link: https://bit.ly/fast-rqsts
17) Camelot: Extract tables from PDFs. Especially useful for complex tables.
Link: https://bit.ly/pycamelot
18) Ftfy: Get rid of junk characters and other problems with Unicode.
Link: https://bit.ly/py-ftfy
19) Numerizer: Convert natural language numbers into digits.
Link: https://bit.ly/numerizer
20) Humanize: Turn a number into words, and many more.
Link: https://bit.ly/py-humanize
21) textstat: Get stats for text data such as word count, reading time.
Link: https://bit.ly/py-textstat
22) isort: Automatically sort imports, and separate them into sections and by type.
Link: https://bit.ly/py-isort
23) DotMap: Supercharge python dictionaries with dot notation.
Link: https://bit.ly/py-dotmap
24) Panel: Create interactive data dashboards and applications.
Link: https://bit.ly/py-panel
25) more-itertools: Supercharged itertools.
Link: https://bit.ly/moreiter
26) Pendulum: Intuitive date-time manipulations in Python.
Link: https://bit.ly/py-pendulum
That’s a wrap!!
What cool Python libraries would you add to this list?
👇 Drop your suggestions in the replies below 👇
👉 Check out my daily newsletter to learn something new about Python and Data Science every day: https://bit.ly/DailyDS.