Wednesday, April 21, 2021

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

 

View Example Here


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

https://prnt.sc/110jjr9

 

 

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:

Project Setup

Editing, Unable to scrub, Choppy, Unreliable

Export Project: 

Duration: 04m+!!

result: Res: 3840X2160 Rat: 16:9 fps: 30fps bitrate:30Mb/s

videoproc:

Project Setup

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

produce: 15 sec (OK)

VideoPad

Project: 80% Useless, Choppy, Delays, Scrubbing Kind of works, 

  Export: Need $ to export 4K

Export: 25 Sec (GOOD) 


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) 

3. Export Settings: 


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





Monday, December 7, 2020

Bookmark Management Productivity Tool Review: Focus on YouTube Time Stamp bookmarks.

Summary:

I am seeking an easy to use, feature rich yet clean link management tool with some basic collaboration features and video timestamp compatibility functionality. In short I need a tool to help save video time stamps, take notes on those time stamps and organize the links into categories. This helps with research and/or education activities. Specifically I need a tool that allows me to save YouTube time stamp bookmarks and then easily play them back. I compared several tools in 2020. Below are ratings for most of the tools that I used including comments on usage & screen recordings that demo each app. Specifically I am seeking the following features:

1) Link management : save, tag, organize links

2) Has an Android App

3) Has a PC App / Chrome Extension

4) Allow Save and Play of time stamped video links.

5) Basic collaboration

Winners : Diigo and KeepLink

get an Intro into the world of Bookmarking Tools

Details

1. Linkeep:

Rating: 3

Android App: Y; Chrome Extension: N; Web App: N; PC Install: Y

Comments: Android basic functionality, no share to option. PC requires an install.

Screen Recording Demos:

Android Usage:
PC Usage:

2. KeepLink: LinksSaver

Rating: 2

Android App: Y; Chrome Extension: N; Web App: N; PC Install: Y

Comments: Copy of Linkeep, looks and functions almost 100% the same. Only colors on UI are different.

Screen Recording Demos:

Android Usage:
PC Usage:

3. MyLinks

Rating: 3

Android App: Y; Chrome Extension: N; Web App: N; PC Install: N

Comments: Android app is great, integration between NewPipe, YouTube is clean and the UI is clean and concise with Categories and Links, The only complaint I have is search is limited to Categories only. On the PC side: I could not find any way to access links. I would use this app if it had a PC option?

Screen Recording Demos:

Android Usage:

4. Keeplink: Links/Bookmarks

Rating: 2

Android App: Y; Chrome Extension: N; Web App: N; PC Install: Y

Comments: Seems like a clone of another link app like Keep Link Links Saver or vice versa. The integration with NewPipe & YouTube does not work; you can not share to KeepLink. Thus I had to create links manually, that on top of the mediocre UI and not PC option leaves me no option except to give it a 2 or 3.

Screen Recording Demos:

Android Usage:

5. Pocket

Rating: 3.5

Android App: Y; Chrome Extension: Y; Web App: N; PC Install: Y

Comments: Very feature rich productivity tool that includes more than just link management: this tool allows user to save, share and manage articles & links in lists. Its does exactly as it claims “Save the articles, new stories and videos you want to read and watch later to Pocket. “ Pocket also integrates ok with NewPipe and YoutTube, however there are some gotchas. Each list item has a category and includes tagging & favorite features plus more. On the PC side, a Chrome Extension provides near identical functionality to the app. If you are looking for a producutivy app to manage articles & vidoes this is an alternative to Diigo. IMHO it is not as feature rich as Diigo.

Cons: However, there are 2 BIG issues that prevent me from using pocket: 1) Saving a video link:No description/notes when saving a link and 2) Opening a Video Link: When I open it link in Andorid or PC the video goes to the 00:00 ignoring my timestamp. The Timestamp is only used if I share the list item to YouTube.

When saving a link (NewPipe or YouTube Share to Pocket) I can select a tag and nothing else. In short this tool is not timestamp friendly if you are saving several links in the same video.

Screen Recording Demos:

Android Usage:
PC Usage

6. Keep Link

Rating: 4

Android App: Y; Chrome Extension: Y; Web App: N; PC Install: Y

Comments: Save bookmarks from anywhere easily and quickly. KeepLink is great at saving links. The Android app is very clean and it does 1 job very well: Saving & managing book marks. The UI in Android is modern and clean, rounded corners & searching is a great feature in this tool allowing multiple fields to search on. Bookmarked items include description, title, tag and category. Tag and category properties are extensible allowing user defined values for each.

Cons: There is only 1 list in the Lists. Having 100’s of items may become unwieldy. There is no PC / Chrome Extension I could in thus I was unable to use the bookmarks on a PC without copying/sharing from my phone to my email & opening on a PC. Hopefully this will be resolved in the future.

Screen Recording Demos:

Android Usage:

7. Diigo

Rating: 5

Android App: Y; Chrome Extension: Y; Web App: Y; PC Install: N

Comments: Extremely feature rich link, annotation and collaboration tool that includes all of my requested functionality and more. Annotations, tagging, description, notes, collaboration groups and seamless Android integration are all included in Diigo. The only tool that comes close is Pocket in terms of number of features and KeepLink in terms of the UI. Diigo does exactly what it claims to do and more: “Diigo Browser allows you to save, annotate and share bookmarks easily!”. Saved bookmark items including title, url, description, tag & group. Tag and group properties are extensible allowing user defined values for each. Group permits customizable authorization via an Admin setting, this feature permits expanded collaboration on items, articles, notes and annotations. This allows multiple users to edit an item, great for small teams working on research.

In android, sharing from NewPipe and YouTube to Diigo for time stamped links works perfectly and playing time stamped links open to the correct time marker on both PC and android.

Cons: The android app is a little clunky, due to it being its own browser. It just takes a little time to get use to. I recommend using the Chrome Extension first then using the Android app, this will decrease the learning curve.

Screen Recording Demos:

Android Usage using Saved Link

Android Usage saving a Link:
PC Usage

More Info:

Overview of Similar Tools

Diigo Guide: Its awesome!