Re: [PLUG] New vim highlight problem

2017-04-05 Thread Paul Mullen
On Wed, Apr 05, 2017 at 04:50:58PM -0400, Paul Heinlein wrote:
> Regardless of the 'filetype' or 'syntax' setting of the editing
> window (e.g., dosini, perl, puppet, sh), I'm getting stray
> highlighting on strings that match this regex:
> 
>=.*$

Have you taken a look at your ~/.viminfo file?  Moving that file out
of the way (and letting vim create a fresh copy) is my first resort
when attempting to troubleshoot vim.  It stores all of your run-time
history in that file (searches, undo stack, etc.).


-- 
Paul Mullen
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] New vim highlight problem

2017-04-05 Thread Nat Taylor
Check your .vimrc , check out the contents of ~.vim, look into vundle or
pathogen
I haven't tried neovim.

On Wednesday, April 5, 2017, Paul Heinlein  wrote:

> This is new and odd.
>
> I do almost all text editing in vim, typically in color-capable
> iTerm2 windows on my Mac. As far as I know, the system vim
> installation hasn't been updated or altered in any way for quite some
> time, perhaps since the OS was installed two years ago.
>
> In the past couple days, however, I've seen a new thing. Regardless of
> the 'filetype' or 'syntax' setting of the editing window (e.g.,
> dosini, perl, puppet, sh), I'm getting stray highlighting on strings
> that match this regex:
>
>=.*$
>
> It'll match the first equal sign in the string and continue to the end
> of the line.
>
> Worst of all is that the highlighted block shows up with a yellow
> background and dark gray text, meaning it's obnoxious in addition to
> unwanted.
>
> The effect is limited to vim, but it's not limited to iTerm2; the
> Apple Terminal app shows the same symptoms. If I ssh in the same
> terminal window to another host and run vim remotely, I don't see the
> same problem. I've logged out and rebooted and the problem has
> persisted.
>
> Any ideas as to the culprit?
>
> Anyone wishing to suggest emacs or another editor as a solution can
> send replies to root@localhost. :-)
>
> --
> Paul Heinlein <> heinl...@madboa.com  <>
> http://www.madboa.com/
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org 
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] USB enclosures

2017-04-05 Thread John Jason Jordan
On Wed, 5 Apr 2017 16:06:21 -0700
Chuck Hast  dijo:

>I guess one thing about the parallel wiring system usually you use a
>make after break double throw switch so you cannot put power on the
>mains.
>
>The switch is designed such that it cannot make both contacts at the
>same time. I wonder why you did not go that route?

I considered the idea of a double throw switch, but rejected it because
it would require a permit, and I doubt I could talk my way out of it.
Moreover, it would require working with really fat wires, which I hate.
I would probably end up hiring an electrician, and those people are not
cheap.
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] USB enclosures

2017-04-05 Thread Chuck Hast
I guess one thing about the parallel wiring system usually you use a make
after break double throw switch so you cannot put power on the mains.

The switch is designed such that it cannot make both contacts at the same
time. I wonder why you did not go that route?

Before I moved out here, I lived in FL. I was getting ready to put in a gen
set
and have backup power. Storms take out the power all of the time, lot of
ESD,
and FL lightning is pretty famous, always sacrifice at least 4 golfers in
the early
part of the rainy season to the lightning god. Indeed Tampa or someplace
near-
by (it moves around the area year by year) is considered the lightning
capital of
the country.

I was getting ready to get one of those switches and install it. Since the
install-
ation was behind the meter and meter switch box I could put it in my self
and
have a certified electrician check my work. That was it. Big thing was that
the
switch be designed to where it could not connect gen set power to the mains.
Those switches are very common. That is what I would have done and that
way not have to go around moving all of the plugs. I would have
non-essential
parts of the home on circuits that I can isolate out so I am not powering a
bunch of stuff I do not need. I was going to use a manual transfer as I
wanted
to be able to do a quick gander at things prior to doing the transfer. All
of the
important stuff was on UPS anyhow so it was not a big deal.

On Wed, Apr 5, 2017 at 2:43 PM, Denis Heidtmann 
wrote:

> Very innovative wiring, John.  And I like the idea of a natural gas
> generator.  Much less hassle and maintenance than gasoline.  I have a small
> gasoline generator but it has not been run in a number of years.  Hard to
> justify spending the $ for a switch to natural gas.
>
> -Denis
>
> On Tue, Apr 4, 2017 at 8:33 PM, John Jason Jordan  wrote:
>
> > On Tue, 4 Apr 2017 18:47:32 -0700
> > Denis Heidtmann  dijo:
> >
> > >Both your main storage and your backup run from the same power line in
> > >the same house.  What is the likelihood lightning or some other major
> > >event could affect both at the same time?  Low, but backups are
> > >intended as insurance for low-likelihood events.  Then there is
> > >crypto-lock.  I do not know about how that works and how different
> > >backup schemes protect against it.
> >
> > First, my house has a 7500 watt natural gas powered generator on the
> > covered back patio. It is not wired to a transfer switch that
> > automatically turns it on and switches the house wiring to it in the
> > event that PGE fails to send me its usual electrons. Instead, it is
> > wired to various outlets around the house that say 'generator only on
> > the cover plate. If the power from PGE fails then I have to go out to
> > the back patio, turn on the generator, then go back inside and move
> > everything that I need to have running to a 'generator only' outlet.
> >
> > In the meantime, the computers, routers, switches, internet devices, and
> > even the stereo are all running on major APC UPS systems - three of
> > them. They will power the electronics for a couple hours, so I don't
> > need to be in a hurry to turn on the generator. And to keep the
> > electronics running after I decide that I need to turn on the
> > generator, all I need to reconnect to the 'generator only' outlets is
> > the power cords from these UPS devices, plus the refrigerator,
> > freezer, and some table lamps. I chose to wire the generator this way
> > rather than using an automatic transfer switch is because 1) automatic
> > transfer switches are expensive and, 2) automatic transfer switches
> > require a permit.
> >
> > Regarding the permit, I had a very heated debate with the City of
> > Portland, which ultimately I won. My major point was that my wiring was
> > not connected in any way to the grid, hence it was impossible for it to
> > electrocute a lineman working on a power pole out in the street. It is
> > a completely private system. It helped my argument that I did all the
> > wiring in my house myself and it all passed code inspections.
> >
> > As for lightning strikes, since all the electronics are running off the
> > UPSs, and they have pretty good surge protection, I am not overly
> > worried.
> >
> > Now, it's possible for something to happen that I have not foreseen,
> > but then, you take some risks getting out of bed in the morning. You
> > even take risks if you stay in bed. In the final analysis, we are all
> > dead. In the meantime, I am satisfied with the precautions that I have
> > taken. :)
> > ___
> > PLUG mailing list
> > PLUG@lists.pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



-- 

Chuck Hast  -- KP4DJT --
Glass, five 

Re: [PLUG] USB enclosures

2017-04-05 Thread Denis Heidtmann
Very innovative wiring, John.  And I like the idea of a natural gas
generator.  Much less hassle and maintenance than gasoline.  I have a small
gasoline generator but it has not been run in a number of years.  Hard to
justify spending the $ for a switch to natural gas.

-Denis

On Tue, Apr 4, 2017 at 8:33 PM, John Jason Jordan  wrote:

> On Tue, 4 Apr 2017 18:47:32 -0700
> Denis Heidtmann  dijo:
>
> >Both your main storage and your backup run from the same power line in
> >the same house.  What is the likelihood lightning or some other major
> >event could affect both at the same time?  Low, but backups are
> >intended as insurance for low-likelihood events.  Then there is
> >crypto-lock.  I do not know about how that works and how different
> >backup schemes protect against it.
>
> First, my house has a 7500 watt natural gas powered generator on the
> covered back patio. It is not wired to a transfer switch that
> automatically turns it on and switches the house wiring to it in the
> event that PGE fails to send me its usual electrons. Instead, it is
> wired to various outlets around the house that say 'generator only on
> the cover plate. If the power from PGE fails then I have to go out to
> the back patio, turn on the generator, then go back inside and move
> everything that I need to have running to a 'generator only' outlet.
>
> In the meantime, the computers, routers, switches, internet devices, and
> even the stereo are all running on major APC UPS systems - three of
> them. They will power the electronics for a couple hours, so I don't
> need to be in a hurry to turn on the generator. And to keep the
> electronics running after I decide that I need to turn on the
> generator, all I need to reconnect to the 'generator only' outlets is
> the power cords from these UPS devices, plus the refrigerator,
> freezer, and some table lamps. I chose to wire the generator this way
> rather than using an automatic transfer switch is because 1) automatic
> transfer switches are expensive and, 2) automatic transfer switches
> require a permit.
>
> Regarding the permit, I had a very heated debate with the City of
> Portland, which ultimately I won. My major point was that my wiring was
> not connected in any way to the grid, hence it was impossible for it to
> electrocute a lineman working on a power pole out in the street. It is
> a completely private system. It helped my argument that I did all the
> wiring in my house myself and it all passed code inspections.
>
> As for lightning strikes, since all the electronics are running off the
> UPSs, and they have pretty good surge protection, I am not overly
> worried.
>
> Now, it's possible for something to happen that I have not foreseen,
> but then, you take some risks getting out of bed in the morning. You
> even take risks if you stay in bed. In the final analysis, we are all
> dead. In the meantime, I am satisfied with the precautions that I have
> taken. :)
> ___
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] New vim highlight problem

2017-04-05 Thread Paul Heinlein
This is new and odd.

I do almost all text editing in vim, typically in color-capable 
iTerm2 windows on my Mac. As far as I know, the system vim 
installation hasn't been updated or altered in any way for quite some 
time, perhaps since the OS was installed two years ago.

In the past couple days, however, I've seen a new thing. Regardless of 
the 'filetype' or 'syntax' setting of the editing window (e.g., 
dosini, perl, puppet, sh), I'm getting stray highlighting on strings 
that match this regex:

   =.*$

It'll match the first equal sign in the string and continue to the end 
of the line.

Worst of all is that the highlighted block shows up with a yellow 
background and dark gray text, meaning it's obnoxious in addition to 
unwanted.

The effect is limited to vim, but it's not limited to iTerm2; the 
Apple Terminal app shows the same symptoms. If I ssh in the same 
terminal window to another host and run vim remotely, I don't see the 
same problem. I've logged out and rebooted and the problem has 
persisted.

Any ideas as to the culprit?

Anyone wishing to suggest emacs or another editor as a solution can 
send replies to root@localhost. :-)

-- 
Paul Heinlein <> heinl...@madboa.com <> http://www.madboa.com/
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug