bash regex doesn’t match dots if regex is a string?

This question already has an answer here:

I attempted to do a bash regex with an inline string, like if [[ $var =~ "...abc..." ]] but the dot operator doesn’t seem to work? It does work as expected if I assign it as a variable first, here’s an example:

regex="...abc..."
var="123abc123"

if [[ "$var" =~ $regex ]]
then
    echo "matches when used as var" # it gets here
else
    echo "doesn't match!"
fi

if [[ "$var" =~ "$regex" ]]
then
    echo "matches"
else
    echo "doesn't match when used as string?" # it gets here
fi

Same result if I use =~ "...abc..."

It appears to only match the “period character” not the regex style match any char style…

hemmrhoids get rid of

First tip: use a “squatta potty” style.

These style of bathrooms are popular in asia.  And instead of a toilet it’s just a hole in the ground (that still flushes) and you squat over it.

Doing something similar in the US: “squat” over the top of your toilet, with your feet on the top.  You’ll have to clean off the footprints when you’re done, and you may need to experiment with holding onto something “in front” or “to the side” or “behind” you but, it seemed to help a lot to allow that crap to come out!

For me it meant “you need to stop getting such crappy sleep, where you wake up with a headache and still feel tired” (then they seemed to go away, seemed related or causal to me).

 

Is there a free or open source equivalent to VAC? [closed]

originally from https://superuser.com/questions/98720/is-there-a-free-or-open-source-equivalent-to-vac

Is there a free or open-source equivalent to Virtual Audio Cable for Windows?

I want to install a virtual sound card on Windows XP so I can stream the sound of a monitoring software on an ESX virtual machine which doesn’t have a sound card.

deleted by Sathya? Jul 4 ’14 at 10:20

closed as off-topic by Kevin Panko, Tog, random? Feb 25 ’14 at 1:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • “Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you’re trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question.” – Kevin Panko, Tog, random

If this question can be reworded to fit the rules in the help center, please edit the question.

I just stumbled upon this, which I believe is basically donationware (free) VAC with one end point: vb-audio.pagesperso-orange.fr/Cable/index.htm (free/donationware)

ffsplit may also have an audio capture as well. audacity also has a loopback capture option using WASAPI

mintsim can you tether

Their support said this about it(I didn’t find it mentioned in the terms of use???)

Thank you for contacting MINT customer Care. My name is Ryan and i will be assisting you today.

MintSIM does not technically support tethering. However, on some android devices customers can use the tethering feature. For iPhones, use Bluetooth tethering, connect one device at a time.

openssh

Hunk #6 succeeded at 1994 with fuzz 2 (offset -10 lines).

Hunk #7 succeeded at 2167 (offset 61 lines).

Hunk #8 succeeded at 2250 (offset 61 lines).

patching file sshd_config

Hunk #1 succeeded at 116 (offset 6 lines).

patching file version.h

Error: Failure while executing: patch -g 0 -f -p1 -i /private/tmp/openssh-gssapi-hpn–patch-20180406-71592-9fq7zy/openssh-7_6_P1-hpn-KitchenSink-14.14.diff

RogerPackMBP:homebrew-openssh-gssapi packrd$

 

meant “can’t apply both keychain and HPN patches…easily anyway” 😐

ffmpeg cross woe

nice: cannot set niceness: Permission denied
cd . && /bin/bash /home/rdp/ffmpeg-windows-build-helpers/sandbox/win32/mfx_dispatch_git/missing automake-1.15 –foreign
configure.ac:48: error: required file ‘./compile’ not found
configure.ac:48: ‘automake –add-missing’ can install ‘compile’
Makefile:480: recipe for target ‘Makefile.in’ failed
make: *** [Makefile.in] Error 1

 

meant “nuke that mfx_dispatch_git folder and start over” (then it worked…hrm…)

psql woe

syntax error at or near “’”

LINE 1: …d where x between ‘2018-01-01’ and ‘201…

 

meant “you are using funky UTF-8 backticks, replace those with normal apostrophes”

eclipse mat woe

java.vendor=Oracle Corporation

BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

Framework arguments:  -application org.eclipse.mat.api.parse /mnt/share/packrd/java_pid3350.hprof org.eclipse.mat.api:suspectsf

Command-line arguments:  -os linux -ws gtk -arch x86_64 -consolelog -application org.eclipse.mat.api.parse /mnt/share/packrd/java_pid3350.hprof org.eclipse.mat.api:suspectsf

!ENTRY org.eclipse.ui 4 0 2018-03-30 19:12:13.641

!MESSAGE FrameworkEvent ERROR

!STACK 0

java.lang.IllegalStateException: BundleContext is no longer valid

        at org.eclipse.osgi.internal.framework.BundleContextImpl.checkValid(BundleContextImpl.java:983)

        at org.eclipse.osgi.internal.framework.BundleContextImpl.removeBundleListener(BundleContextImpl.java:334)

        at org.eclipse.ui.plugin.AbstractUIPlugin$2.bundleChanged(AbstractUIPlugin.java:620)

        at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)

        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

 

meant “I spelled api:suspectsf wrong” (see that f)

hsql woe

Caused by: org.hsqldb.HsqlException: unexpected token: GROUP
at org.hsqldb.error.Error.parseError(Unknown Source)
at org.hsqldb.ParserBase.unexpectedToken(Unknown Source)
at org.hsqldb.ParserDQL.XreadSimpleValueExpressionPrimary(Unknown Source)
at org.hsqldb.ParserDQL.XreadAllTypesValueExpressionPrimary(Unknown Source)
at org.hsqldb.ParserDQL.XreadAllTypesPrimary(Unknown Source)
at org.hsqldb.ParserDQL.XreadAllTypesFactor(Unknown Source)
at org.hsqldb.ParserDQL.XreadAllTypesTerm(Unknown Source)
at org.hsqldb.ParserDQL.XreadAllTypesCommonValueExpression(Unknown Source)
at org.hsqldb.ParserDQL.XreadValueExpression(Unknown Source)
at org.hsqldb.ParserDQL.XreadOrderBy(Unknown Source)
at org.hsqldb.ParserDQL.XreadOrderByExpression(Unknown Source)
at org.hsqldb.ParserDQL.XreadQueryExpression(Unknown Source)
at org.hsqldb.ParserDQL.compileCursorSpecification(Unknown Source)
at org.hsqldb.ParserCommand.compilePart(Unknown Source)
at org.hsqldb.ParserCommand.compileStatement(Unknown Source)
at org.hsqldb.Session.compileStatement(Unknown Source)
at org.hsqldb.StatementManager.compile(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
… 38 more

 

meant “don’t use order by group” (can’t name it group since that’s an sql reserved keyword) rename it to “group_name” “order by group_name”

Roger's meanderings, notes to himself, bug reports, and other things