/* Main https://stackoverflow.com/questions/56023037/forward-email-message-with-mailapp-instead-of-gmailapp */ function forwardForever() { Logger.log('forwardForever2() START '); var labelName = "Trash" var threads = GmailApp.search("in:trash label:" + labelName); Logger.log('forwardForever2() threads.length ' + threads.length); for (var i = 0; i < threads.length; i++) { Logger.log('forwardForever2() forward id ' + threads[i].getId()); try { // try this just in case //Gmail.Users.Messages.remove('me', threads[i].getId()); var firstThread = threads[i]; var message = firstThread.getMessages()[0]; Logger.log('forwardForever2() START forward ' + message.getSubject()); message.forward("1@yahoo.com"); Logger.log('forwardForever2() DONE forward ' + message.getSubject()); } catch(e){ Logger.log('forwardForever2() ERROR id ' + threads[i].getId()); Logger.log(e); } Logger.log('forwardForever2() NEXT...'); } }
O365, SharePoint, Android, C# , SQL , Software Development, Office Productivity, Visual Studio, Business Intelligence, Software Engineering , JavaScript , JQuery , Web Service, JS & .Net FW FUN!
Friday, June 25, 2021
GMail Forward Email for all items in label
Thursday, June 24, 2021
Android 11 / LG Bloatware Uninstall/Disable to boost performance
Android 11 / LG Bloatware Uninstall/Disable to boost performance :
Use as needed:
Adb Commands : Uninstall & Disable
https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
1. Disable:
Adb shell | pm disable com.lge.lgfota.permission
pm disable-user
2. UnInstall:
1. adb shell pm uninstall com.att.mobilesecurity
2. adb shell pm uninstall --user 0 com.att.mobilesecurity
These two flags respectively specify that the system app will only be uninstalled for the current user (and not all users, which is something that requires root access) and that the cache/data of the system application will be preserved
3. pm uninstall -k --user 0 com.android.service
keep app data
Disable OTA Updates:
1. Adb shell | pm disable com.lge.lgfota.permission
2. Developer Options | Disable Automatic Updates
3. Package Disabler | Disable LG Update Center
V60 Remove Bloatware
See :
*TMobile Bloat
pm uninstall -k --user 0 com.tmobile.pr.mytmobile
pm uninstall -k --user 0 com.tmobile.m1
pm uninstall -k --user 0 com.tmobile.pr.mytmobile
pm uninstall -k --user 0 com.tmobile.pr.adapt
pm uninstall -k --user 0 com.tmobile.rsuadapter.qualcomm
pm uninstall -k --user 0 com.tmobile.rsuapp
pm uninstall -k --user 0 com.tmobile.rsusrv
*Google/FB Bloat
pm disable-user com.nextradioapp.nextradio
pm disable-user com.google.android.music
pm disable-user com.google.android.videos
pm disable-user com.google.android.videos
pm disable-user com.google.android.videos
pm disable-user com.google.android.videos
pm disable-user com.facebook.system
pm disable-user com.facebook.appmanager
pm disable-user com.facebook.katana
*LG Bloat
pm uninstall -k --user 0 com.lge.theme.highcontrast
pm uninstall -k --user 0 com.lge.qmemoplus
pm uninstall -k --user 0 com.lge.qhelp
pm uninstall -k --user 0 com.lge.qhelp.application
pm uninstall -k --user 0 com.lge.bnr
pm uninstall -k --user 0 com.lge.bnr.launcher
pm uninstall -k --user 0 com.lge.music
pm uninstall -k --user 0 com.lge.email
pm uninstall -k --user 0 com.lge.exchange
pm uninstall -k --user 0 com.lge.sync
pm uninstall -k --user 0 com.lge.ia.task.informant
pm uninstall -k --user 0 com.lge.leccp
pm disable-user com.google.android.apps.tachyon //google pay
pm disable-user com.lge.fmradio
pm disable-user com.lge.lgbroadcastradioservice
pm uninstall -k --user 0 com.lge.lifetracker
pm uninstall -k --user 0 com.lge.lgworld
-- MISC TODO (Optional for me)
*Google Bloatware
pm uninstall -k --user 0 com.google.android.googlequicksearchbox
pm uninstall -k --user 0 com.google.android.gm
pm uninstall -k --user 0 com.google.android.apps.tachyon
pm uninstall -k --user 0 com.google.android.music
pm uninstall -k --user 0 com.google.android.apps.docs
pm uninstall -k --user 0 com.google.android.apps.maps
pm uninstall -k --user 0 com.android.chrome
pm uninstall -k --user 0 com.google.android.apps.photos
pm uninstall -k --user 0 com.google.vr.vrcore
pm uninstall -k --user 0 com.google.android.youtube
pm uninstall -k --user 0 com.google.android.videos
pm uninstall -k --user 0 com.google.android.talk
pm uninstall -k --user 0 com.google.android.apps.books
pm uninstall -k --user 0 com.google.android.apps.magazines
pm uninstall -k --user 0 com.google.android.apps.plus
* amazon
pm uninstall -k --user 0 com.amazon.mShop.android
pm uninstall -k --user 0 com.amazon.fv
pm uninstall -k --user 0 com.amazon.kindle
pm uninstall -k --user 0 com.amazon.mp3
pm uninstall -k --user 0 com.amazon.venezia
Enable Chrome+Edge Flags
chrome://flags/#smooth-scrolling
chrome://flags/#heavy-ad-privacy-mitigations
chrome://flags/#heavy-ad-privacy-mitigations
chrome://flags/#enable-android-dark-search
chrome://flags/#enable-force-dark
chrome://flags/#heavy-ad-privacy-mitigations
chrome://flags/#enable-zero-copy
chrome://flags/#enable-gpu-rasterization
chrome://flags/#smooth-scrolling
Friday, June 11, 2021
Android Disable System Updates : Disable the message "Install update keep device running smoothly"
Wednesday, April 21, 2021
Microsoft Edge Settings and Flags to boost performance : Part 1
Microsoft Edge Settings and Flags to boost performance : Part 1
Microsoft Edge on Windows 10 is great....but...can be slow sometimes.
Here is a word doc version of this post:
Summary
For me Edge Chromium on Windows 10/11 is an exceptional alternative to
Chrome & integrates nicely with Office365, however it can get slow over
time. For me on my SurfaceGo 1.6Ghz *GB Ram tablet this was especially the case.
Below is a list of tweaks applied to boost the load time, execution time, cpu usage
and RAM usage of the Edge Chromium browser on windows. Many settings can be
utilized with Chrome to, just replace edge:flags with chrome:flags and seek the
flag name. Some settings are platform specific such as the new Startup Boost
feature from MS for Edge, if I had time
I noted otherwise please be aware.
Settings
1. 1.Sync: Sync only whats needed, turn off sync when
not neede
2. Flags: Browse to edge://flags/
3. edge://flags/#enable-lazy-image-loading = enabled
4. edge://flags/#enable-heavy-ad-intervention = enabled
5. edge://flags/#enable-lazy-image-loading = enabled
6. edge://flags/#enable-heavy-ad-intervention = enabled
7. edge://flags/#allow-previews = disabled
8. edge://flags/#disable-accelerated-video-encode = disabled
9. edge://flags/#disable-accelerated-video-decode = disabled
10. edge://flags/#enable-quic = enabled
11. edge://flags/#lite-video-default-downlink-bandwidth-kbps = enabled
12. edge://flags/#back-forward-cache = enabled
13. edge://flags/#edge-experimental-tracking-prevention-features = enabled
14, Others:
edge://flags/#lite-video-default-downlink-bandwidth-kbps = 400
and
edge://flags/#quiet-notification-prompts = Enabled
15: Settings: edge://settings/system
16: New Performance Mode:
--enable-features=msPerformanceModeToggle
1.
First of all,
right-click on the Edge Canary desktop shortcut and select “Properties”.
2.
Navigate to the target
field in the Shortcut tab, add a space, and then paste the following
parameter: --enable-features=msPerformanceModeToggle
3.
Click the Ok button
and restart the browser to apply the latest changes.
4.
Finally, head to
Settings >> System >> and enable the “Performance Mode” toggle
button available under the Optimize Performance section.
Startup boost ad Kids Mode Discussed over here:
Extract IP address from text with regular expression and TextPad
I have a text file like the below, we want to extract the IP's from this :
[Service blocked: CP] from source 192.168.1.51, Wednesday, Apr 21,2021 04:19:16
[Service blocked: CP] from source 192.168.1.51, Wednesday, Apr 21,2021 04:19:03
[Service blocked: CP] from source 192.168.1.16, Wednesday, Apr 21,2021 04:18:52
[Service blocked: CP] from source 192.168.1.51, Wednesday, Apr 21,2021 04:18:40
[Service blocked: CP] from source 192.168.1.51, Wednesday, Apr 21,2021 04:18:12
[Service blocked: CP] from source 192.168.1.16, Wednesday, Apr 21,2021 04:17:47
[Service blocked: CP] from source 192.168.1.51, Wednesday, Apr 21,2021 04:17:39
[Service blocked: CP] from source 192.168.1.51, Wednesday, Apr 21,2021 04:17:00
[Service blocked: CP] from source 192.168.1.16, Wednesday, Apr 21,2021 04:16:42
[Service blocked: CP] from source 192.168.1.51, Wednesday, Apr 21,2021 04:16:38
[LAN access from remote] from 179.60.150.46:44350 to 192.168.1.15:5001, Wednesday, Apr 21,2021 04:16:27
To do this :
- Ctrl+H
- Find what:
^.+?((?:\d+\.){3}\d+).+$
- Replace with:
$1
- check Wrap around
- check Regular expression
- DO NOT CHECK
. matches newline
- Replace all
Explanation:
^ : beginning of line
.+? : 1 or more any character but newline
( : start group 1
(?: : start non capture group
\d+ : 1 or more digit
\. : a dot
){3} : end group, must appear 3 times
\d+ : 1 or more digit
) : end group 1
.+ : 1 or more any character but newline
$ : end of line
Replacement:
$1 : content of group 1 (ie. the IP)
Result for given example:
54.246.81.158
175.36.129.24
Wednesday, April 7, 2021
Keyboard Shortcuts for Android Emulator : srccpy
Summary
srccpy is a great screen mirroring application to emulate Android on a PC. Open Source, stable, well documented and feature rich are some of the highlights of srccpy making it one of the best choices for mirroring and/or remoting to Android from a PC.
Here are a list of PC keyboard shortcuts and the matching Android gestures, these are very important to augment & complete the experience of remote controlling an Android device from a PC.
Prerequisites
Here are 2 YouTube videos on how to setup scrcpy,
1) install and setup USB connection to Android and then
2) setup wireless connection to Android.
Keyboard Shortcuts
Click on HOME - Mouse Middle-click
Click on BACK - Mouse Right-click
Click on APP_SWITCH - Win+s
Click on MENU (unlock screen) - Win+m
Click on VOLUME_UP - Win+↑ (up)
Click on VOLUME_DOWN - Win+↓ (down)
Click on POWER - Win+p
Power on - Mouse Right-click
Turn the device screen off
but keep mirroring - Win+o
Turn device screen on - Win+Shift+o
Rotate device screen - Win+r
Expand notification panel - Win+n
Collapse notification panel - Win+Shift+n
Copy to clipboard - Win+c
Cut to clipboard - Win+x
Synchronize clipboards and paste - Win+v
Inject computer clipboard text - Win+Shift+v
Enable/disable FPS counter - Win+i
Pinch-to-zoom - Ctrl+click-and-move
Wednesday, March 31, 2021
Tasker Error edit or create a Profile: Attempt to invoke virtual method '..' Error
Summary
The following error started to appear in my Android tasker V
5.11.14 on Oreo any time I added or edited a Profile. This error results in the
inability to edit or create a profile tasker, thus a user is unable to do
automate any task. This is a major problem.
The following Resolution worked for me to resolve this
issue:
Error:
Error text:
Attempt to invoke virtual method 'android.os.IBinder
android.view.View.getApplicationWindowToken()' on a null
Depiction of Error
Resolution
Disable the Setting: Settings | Developer options | Toggle
the "Don't Keep Activities" setting
Wednesday, March 17, 2021
Breath Holding Exercises from David Blaine
How he did it?
For four months, David held the Guinness world record for oxygen-assisted static apnea (holding your breath after breathing pure oxygen): 17 minutes and 4.4 seconds. His record was then surpassed by Tom Sietas on September 19, 2008. David’s record for doing what I’ll describe is between 7 and 8 minutes.
What were the results of his training?
My first baseline test: 40 seconds.
15 minutes later: 3 minutes and 33 seconds (!!!).
Durign a TedTalk, out of roughly 12 attendees, all but one beat Harry Houdini’s lifelong record of 3 minutes and 30 seconds using David's technique!. One woman held her breath for more than 5 minutes.
Here’s how we did it…
The Technique
*This is the technique prescribed by David Blaine. There are plenty more out there but they all appear to involve a similar process and essentially the same breathing exercises.
- Deep breathing: 1:30
- Purging: 1:15
- Hold breath for target 1:30 (After 1:30: Take 3 semi-purge breaths)
- 1:30 deep breathing
- 1:30 purging
- Hold breath for target 2:30 (After 2:30: Take 3 semi-purge breaths)
- 2:00 deep breathing
- 1:45 purging
- Hold breath for as long as possible
Deep Breathing
Before holding your breath, inhale and exhale slowly from deep within your diaphragm. By doing this, you’re ridding your lungs of low-quality air. Spend five seconds breathing in, then hold the breath for one second, before breathing out for ten seconds. Exhaling for 10 seconds through your mouth through your almost-closed mouth with tongue pressed against your lower teeth. It should be a hissing exhalation and make a “tsssssss…” sound. All breathing and exercises are performed though the mouth.
Purging
Exhale forcefully, pushing as much air out of your lungs as possible. Puff out your cheeks as you do this, and imagine you are trying to blow a toy sailboat across a stretch of water. Once you have exhaled completely, inhale quickly and repeat. Try to keep your body as still as possible while you do this, to avoid expending any of the stored oxygen from the previous step.
*If you do this too hard you’ll feel like you’re going to pass out. If you keep going, you probably will. Slow down and take it a little easier.
Semi-purging: Breathing between the above two. More forceful than deep breathing but less forceful than full purging. Used for recovering after each time trial.
Additional Pointers
– Make sure you’re seated comfortably (not lying down) and move as little as humanly possible.
-One thing David himself does when he does his record attempts is mentally move through each muscle in his body and ensure it is completely relaxed.
-Personally, I found leaning forward a little rather than leaning right back helped when I started struggling at the 3min mark.
-Another recommendation from Mr Blaine that I certainly found useful was running through the alphabet, naming a celebrity/famous figure for each. You may find some ridiculous names pop into your head..
Sunday, January 24, 2021
Windows 10 File and Folder Tag Tool Reviews: Local and Network File and Folder Tagging
Seeking a tool to manage tagging of network and local files
and folders rendered in a clean and simple UI in short I reviewed tools to Tag
Files in Windows 10. Below are notes of my usage, not exhaustive only
summarizing my experience wit each as applicable to my use case: A stable,
clean and reluabel tool to tag local and network files and folder in Windows 10;
Here is what I found
Reference:
https://turbofuture.com/computers/Whats-the-Best-Software-for-Tagging-Files-A-Review
TABBLE : ($)
UI is TOO
busy, not intuitive, navigation is NOT natural, Folder items are merged with
file items ?
this tool
will require training, help docs, and watching tutorial if you have hours to
learn a new app then this may be the tool for you, else if you are looking for
a simple and clean tool to tag files Tabble is OVERKILL
Unable to
add network locations! (or it is so un-intuitive that I could not find the
feature in the 2 hours of use I performed)
Score: D
Tag Spaces: ($)
UI is
clean however:
Unable to
view folders in item detail >
Unable to
multi select and apply tags!!! ? (Deal breaker)
Folders
are not displayed in item view by default, Tooltip references a “perspective Toolbar”
to resolve which does not exist and/or is near impossible to find.
This app
creates extraneous files for tagging: it creates .ts flder in EVERY folder that I have tagged
files in! This is unreasonable for anyone who plans on tagging 1000's of files especially
on a NAS!!
Not worth
the $, maybe a scaled back FREE version would be worth it , as it stands the
paid version supplies too many unwanted functions for a price point to high.
SCore: D
Set tags:. ($)
UI is
1990s, looks like they added a band aid for cloud drives, UI looks like a
VB/MFC app
On start
we get a an immediate prompt asking if we want to create a “facet folder”; what
is that?.i
On first app usage we need to hot the
help files before doing ANYTHING else. Not a good sign'
useful
tool if you are only tagging local files and folders, NOT useful if you are
tagging any NETWORK files.
Score: C
XYExplorer: (Free)
Stable
UI, works fairly well support local and network file and folder tagging. Adding
tags, reading tags and managing tags this XnView competitor has clean,
intuitive & stable Tagging interface.
Rating
& Color don’t seem to work (perhaps my config needs a change)
Is a full
featured explorer UI interface, could supplement or even replace windows explorer.
Tagging
is a feature integrated within XyExlorer as a panel, as aforementioned tagging
stable, reliable and intuitive. Multi-Select
& tag is enabled
Score: B
Tag Explorer: (Windows Store, Free)
clean UI,
quick install
Allows tagging
of local & network files an folders,
allows multi select. Stable, intuitive
& clean UI are inviting and simple to navigate and infer flow. If you can
use Windows Photos App then this tool will fee similar as the developer seemingly
followed Fluent Design UI patterns that we see in MS Photos & other well known
Windows Store UWP Apps.
Stable,
does not crash, only slight delay when browsing folder, reading and writing
tags. Is fastest app of all tested
Tag
Explorer focuses on tagging and nothing else, is concise with NO frivolous
features to cause slows down.
Features
are strictly related to adding tags, reading tags and managing tags,
network
location operate same as local; Folder Management is similar to Windows Photos:
Add a Folder, then you can manage tags of items in added folder.
Score : A
If tagging is your goal for single user for network & local
files & folders then tag Explorer is the best tool in my opinion. All the other
are tools are overkill, unusable or provide features outside the requirements
for my Use Case of a single user / power user.
Friday, January 15, 2021
Surface Go Video Editor Comparison Notes
Reference Articles:
https://turbofuture.com/graphic-design-video/3-Free-Video-Editors-for-Slow-Computers
https://thetechtop10.com/10-video-editors-for-weak-computers/
Ranking, sorted by least HW requirements first
1. vsdc
2. videoPad
3. videoProc
4. shotcut
5. filmora
Surface Go Video Editor Comparison Notes
After spending far too long reviewing posts on lightweight editors that may work with Surface Go and some Surface Go Specific video editor reviews. I downloaded around 6 editors (per recommended articles) and executed a similar edit test case for each, including input clips, effects, edits and output. My Surface Go system specs are here 8G RAM, 128 GB HD, 1.61Ghz
Below are a summary of notes & observations, these are merely cliff notes of my experiences, I did not have time to capture every detail. A ubiquitous result was clear, Surface Go does NOT operate with so called light weight editors, instead only 2 editors were near operational for me, Fimora & VideoPad. Editing, scrubbing, program navigation and exporting are near impossible in all other editors.
If anyone else has differing results I would love to know if they deviated from the default editor install settings.
Surface Go Video Editor Comparison Notes,
Render test Summary:
Baseline editor android V405TA, Editor Action Director:
Project Input: 2 clips 4K 60fps, 3 transitions, 1 title, 2 edit cuts, 2 edit crop
Duration: 01m04s
result: Res: 3840X2160 Rat: 16:9 fps: 60fps Duration: 25s, bitrate: 50Mb/s
vsdc:
Editing, Unable to scrub, Choppy, Unreliable
Duration: 04m+!!
result: Res: 3840X2160 Rat: 16:9 fps: 30fps bitrate:30Mb/s
videoproc:
is NOT an editor without paying $$
Shotcut:
edit: useless, choppy, delays, scrub, edit, all tools have delay
Export: 3 min to export 25 sec
ActionDirector
Unusable: barely edits
VideoPad
Project: 80% Useless, Choppy, Delays, Scrubbing Kind of works,
Filmora.8.5
1. edit, smooth, not choppy, can scrub OK, some delay in effects, however it is the closest to android. 10X better than the closest VideoPad
2. Export, Slow, 25 sec, 2K clip took over 2 min (140sec)
Hardware Requirements Per
vsdc
Windows OS: XP SP3 / Vista / 7 / 8 / 10
Intel, AMD or compatible processor with the working frequency at 1.5 GHz or higher
Screen resolution: 1024x768 pixels with 16-bit color or higher
RAM 512Mb for the video editing software
Microsoft DirectX 9.0с or higher
300 MB of free disk space minimum
shotcut
Operating system: 32- or 64-bit Windows 7 - 10, Apple macOS 10.10 - 10.15, or 64-bit Linux with at least Glibc 2.19.
CPU: x86-64 Intel or AMD; at least one 2 GHz core for SD, 2 cores for HD, and 4 cores for 4K.
GPU: OpenGL 2.0 that works correctly and is compatible. On Windows, you can also use a card with good, compatible DirectX 9 or 11 drivers.
RAM 1. Minimum 4GB RAM for SD Editing 2. 8GB For HD Editin 3. 16GB For 4K Editing
GPU OpenGL 2.0 or DirectX9 or 11
Storage 1 GB Minimum For Installation
videopad
Windows OS 64 bit: 10, XP, Vista, 7, 8 and 8.1
Processor: 1.5 GHz
RAM: 4 GB
Disk space: 100 MB
filora
Operating System Windows- 7/8/8.1/10 (64-bit)
Mac– 10.7 to 10.15
RAM Windows– 4GB Minimum
Mac– 8GB Minimum
CPU Windows– Intel i3 with 2 GHz frequency
Mac– Intel i5 with 2 GHz frequency
GPU NVIDIA GeForce GTX 700 or later; Intel HD Graphics 5000 or later; AMD Radeon R5 or later.
Hard Disk At Least 10 GB
videoproc
System Requirements
Windows Version Microsoft Windows 7, Windows 8/8.1, Windows 10 or later (32-bit and 64-bit versions supported)
Mac Version Mac OS X Snow Leopard, Lion, Mountain Lion, Mavericks, Yosemite, El Capitan, macOS Sierra, High Sierra, Mojave, Catalina (10.15), Big Sur
Processor 1 GHz Intel® or AMD® processor (Minimum)
RAM 1GB RAM (Recommended: 2GB or above)
Hard Disk Space 200MB of hard-disk space for installation