Re: [gentoo-user] Re: Quick check on net-print/hplip-3.14.10

2015-09-17 Thread Mick
On Thursday 17 Sep 2015 01:45:14 walt wrote:
> On Wed, 16 Sep 2015 22:22:32 +0100
> 
> Mick  wrote:
> > Hi All,
> > 
> > I just noticed that the driver for my old printer no longer shows up
> > in cups, on one of my PCs.  Comparison with other PCs shows that this
> > one does *not* have the hpijs USE set.
> > 
> > Could someone who also does not have hpijs set in their hplip tell me
> > if the HP DeskJet 930C selection is missing, when they load up the
> > GUI via https://127.0.0.1:631 and then try to modify a printer?
> > 
> > Until this week there wasn't a problem with this PC so I am not sure
> > what changed ...
> > 
> > I've set it up with DeskJet 932c for now without USE=hpijs and it
> > seems to work, so I am in two minds if I need hpijs or if I need to
> > use the 930c driver anyway.
> 
> Sometime in the past few days hpijs came to my attention in a way that
> escapes me at the moment, but I remember being puzzled by it.  What is
> also puzzling is that hpijs doesn't show up here in the output of eix:
> 
> Installed versions:  2.0.4^t(06:49:33 AM 08/28/2015)(X acl dbus java
> pam python ssl systemd threads -debug -kerberos -lprng-compat -selinux
> -static-libs -usb -xinetd -zeroconf ABI_MIPS="-n32 -n64 -o32"
> ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32"
> ELIBC="-FreeBSD" LINGUAS="-ca -cs -de -es -fr -it -ja -pt_BR -ru"
> PYTHON_TARGETS="python2_7") Homepage:http://www.cups.org/
> Description: The Common Unix Printing System
> 
> When I run ufed, though, I do see an hpijs useflag described, because
> it's listed in /usr/portage/profiles/use.local.desc (dated today).
> Here is a good use for the new git-based portage tree (which I'm not
> using yet, BTW):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/
> 
> I just spent 10 minutes searching through the commits related to cups
> and I can't find anything about hpijs, but I know there's something
> strange going on with that useflag.

It is a flag for hplip rather than cups.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Quick check on net-print/hplip-3.14.10

2015-09-17 Thread Mick
On Thursday 17 Sep 2015 02:11:44 waben...@gmail.com wrote:
> Mick  wrote:
> > Hi All,
> > 
> > I just noticed that the driver for my old printer no longer shows up
> > in cups, on one of my PCs.  Comparison with other PCs shows that this
> > one does *not* have the hpijs USE set.
> > 
> > Could someone who also does not have hpijs set in their hplip tell me
> > if the HP DeskJet 930C selection is missing, when they load up the
> > GUI via https://127.0.0.1:631 and then try to modify a printer?
> > 
> > Until this week there wasn't a problem with this PC so I am not sure
> > what changed ...
> > 
> > I've set it up with DeskJet 932c for now without USE=hpijs and it
> > seems to work, so I am in two minds if I need hpijs or if I need to
> > use the 930c driver anyway.
> 
> I don't have USE flag hpijs set for hplip (3.14.10) and when I modify
> my printer, there are two lines for HP DeskJet 930C shown up:
> 
> HP Deskjet 930C Foomatic/cdj550 (en)
> HP Deskjet 930c, hpcups 3.14.10 (en)
> 
> My USE flags for hplip are:
> 
> X doc hpcups libnotify qt4 scanner snmp -fax -hpijs -kde -libusb0 -minimal
> -parport -policykit -static-ppds
> 
> --
> Regards
> wabe

Thank you wabe.  This is just how I recalled this should be and confirms my 
suspicions that hpijs is not needed.  I am at a loss as to why 930c suddenly 
disappeared from the list of available drivers.  I am also at the latest 
stable hplip-3.14.10.

Could this be btrfs playing up and messing up cups?  O_o

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Alan McKinnon
On 17/09/2015 05:38, james wrote:
>>   150914 Mobo : Gigabyte GA-970A-UD3P 970+SB950 DDR3 2000  :  119.99
>> >   2x PCI-Express x16 GLAN 6xSATA 6.0 Gb/s 4xUSB 3.0 14xUSB 2.0
> I have (3) of the Ggiabyte 990A-UD3P mobos:: I love mine
> 
> Very extensive wiring needs, plus you have to match the video card 
> power needs to the power supply. None of my older PS would fit the bill.
> Also, there has been a quiet revolution in power supply. The efficiency
> of the switching circuits will save you more money in the long run
> and those electronics will deliver the cleanest power to your other 
> electronics. PS have ratings so look at the efficiency and oversizing a bit
> from calculated loads is never a bad idea. 


+1

Don't be tempted to cut corners on the PSU. It's the one component in a
computer that can "wear out" so to speak, and aged PSUs are responsible
for more issues than anything else (except maybe dodgy RAM with a few
dud cells).

PSUs are not expensive and there's lots of other things one can save
cash on. I firmly believe cutting corners with PSUs is like saving money
by not replacing oil filters - you save some cash now, and cause
yourself enormous expense later

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Dale
Alan McKinnon wrote:
> On 17/09/2015 05:38, james wrote:
>>>   150914 Mobo : Gigabyte GA-970A-UD3P 970+SB950 DDR3 2000  :  119.99
   2x PCI-Express x16 GLAN 6xSATA 6.0 Gb/s 4xUSB 3.0 14xUSB 2.0
>> I have (3) of the Ggiabyte 990A-UD3P mobos:: I love mine
>>
>> Very extensive wiring needs, plus you have to match the video card 
>> power needs to the power supply. None of my older PS would fit the bill.
>> Also, there has been a quiet revolution in power supply. The efficiency
>> of the switching circuits will save you more money in the long run
>> and those electronics will deliver the cleanest power to your other 
>> electronics. PS have ratings so look at the efficiency and oversizing a bit
>> from calculated loads is never a bad idea. 
>
> +1
>
> Don't be tempted to cut corners on the PSU. It's the one component in a
> computer that can "wear out" so to speak, and aged PSUs are responsible
> for more issues than anything else (except maybe dodgy RAM with a few
> dud cells).
>
> PSUs are not expensive and there's lots of other things one can save
> cash on. I firmly believe cutting corners with PSUs is like saving money
> by not replacing oil filters - you save some cash now, and cause
> yourself enormous expense later
>


It's the one thing that is common to everything else.  Most good power
supplies have protection but let's say that 12 VDC rail went to 16
volts.  It would turn a perfectly working puter into a nice door stop,
pretty quick.  It would likely burn out every component in the rig that
uses the 12 volt line, which a lot of stuff does. 

Yea, skimping and getting a el cheapo power supply is a bad idea. 

Dale

:-)  :-) 



Re: [gentoo-user] Quick check on net-print/hplip-3.14.10

2015-09-17 Thread Dale
Mick wrote:
> On Wednesday 16 Sep 2015 23:43:51 Dale wrote:
>> Mick wrote:
>>> Hi All,
>>>
>>> I just noticed that the driver for my old printer no longer shows up in
>>> cups, on one of my PCs.  Comparison with other PCs shows that this one
>>> does *not* have the hpijs USE set.
>>>
>>> Could someone who also does not have hpijs set in their hplip tell me if
>>> the HP DeskJet 930C selection is missing, when they load up the GUI via
>>> https://127.0.0.1:631 and then try to modify a printer?
>>>
>>> Until this week there wasn't a problem with this PC so I am not sure what
>>> changed ...
>>>
>>> I've set it up with DeskJet 932c for now without USE=hpijs and it seems
>>> to work, so I am in two minds if I need hpijs or if I need to use the
>>> 930c driver anyway.
>> I was going to try and test this.  I try to help when ever I can.  Thing
>> is, the way CUPS works here, you have to have the printer connected to
>> set it up.  I can't find a option to set up a printer that is not
>> connected during the set up process.  Maybe I am missing something.  o_O
>>
>> Maybe someone else who has that printer can test it.  We hope.
>>
>> Dale
>>
>> :-)  :-)
> Thank you Dale,
>
> You don't have to complete the setup of the printer.  Just select Modify 
> printer and 'try' to change its driver from the dropdown selection.  You 
> don't 
> need to actually change it - just look in there if DeskJet 930c is listed.  
> Assuming of course that your hplip was compiled with USE="-hpijs".
>
> My 930C is a USB printer, but I have a little ethernet to USB printer server 
> that I access it through.  This is a monodirectional lpd server, so all the 
> hplip GUI to report printer status is not working.  It doesn't bother me as 
> printing is a rare occasion and all users know what to do if it runs out of 
> ink.
>
> Printing was all working fine on this PC until a couple of days ago, so I 
> wonder if I removed something in /etc/portage/* to cause this ...


I get the same option just trying to modify my current printer.  It
doesn't list anything, it just shows the printer I currently have set
up.  Even if I tell it I want to add another printer, it still shows my
current printer.  I can't find a way to get it to list them.  Maybe it
is a setting somewhere that I have that makes mine work different.

Dale

:-)  :-) 



Re: [gentoo-user] Gentoo net0 - auto resetting - very impressed

2015-09-17 Thread Alan McKinnon
On 17/09/2015 08:45, Stroller wrote:
> 
> On Wed, 16 September 2015, at 7:22 am, Alan McKinnon 
>  wrote:
> 
>> Their latest printers do not make that same
>> stupid mistake; mine is a recent colour laser and the cheapest in the
>> range. Doesn't even have a display or keyboard so it creates it's own
>> ad-hoc wifi connection so you can connect and configure in a browser.
>> Once it's on your real network, it all JustWorks(tm) and understands
>> postscript, PCL, SPL and ipp.
> 
> What model is this, please?


C410W

It's a simple basic home colour laser printer


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Gentoo net0 - auto resetting - very impressed

2015-09-17 Thread Stroller

On Wed, 16 September 2015, at 7:22 am, Alan McKinnon  
wrote:

> Their latest printers do not make that same
> stupid mistake; mine is a recent colour laser and the cheapest in the
> range. Doesn't even have a display or keyboard so it creates it's own
> ad-hoc wifi connection so you can connect and configure in a browser.
> Once it's on your real network, it all JustWorks(tm) and understands
> postscript, PCL, SPL and ipp.

What model is this, please?

Stroller.




Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Neil Bothwick
On Thu, 17 Sep 2015 08:29:38 +0200, Alan McKinnon wrote:

> Don't be tempted to cut corners on the PSU. It's the one component in a
> computer that can "wear out" so to speak, and aged PSUs are responsible
> for more issues than anything else (except maybe dodgy RAM with a few
> dud cells).

The important difference being that dodgy RAM only damages your software
(and sanity) whereas a faulty PSU can result in damage to components that
cost orders of magnitude more than it.

> I firmly believe cutting corners with PSUs is like saving money
> by not replacing oil filters - you save some cash now, and cause
> yourself enormous expense later

I must admit to never changing the oil filters on my computer, but I
agree with your sentiments...


-- 
Neil Bothwick

A friend in need may turn out to be a nuisance.


pgptrD1xmbpFE.pgp
Description: OpenPGP digital signature


[gentoo-user] bluetooth firmware problem

2015-09-17 Thread covici
Hi.  I have a Bluetooth usb dongle and I also have emerged
sys-kernel/linux-firmware  but I am getting the following message:
Sep 16 03:56:36 ccs.covici.com kernel: bluetooth hci0: Direct firmware
load for brcm/BCM920702 Bluetooth 4.0-0a5c-21e8.hcd failed with error -2

Now there is another file in that directory, but not that one.  I don't
know how important it is, but I wonder where I can get the correct file?

Thanks in advance for any suggestions.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Re: Can't paste from selection in gtk-3 apps

2015-09-17 Thread J. Roeleveld
On Wednesday, September 16, 2015 02:41:48 PM Grant Edwards wrote:
> On 2015-09-16, J. Roeleveld  wrote:
> > On Tuesday, September 15, 2015 06:57:36 PM Grant Edwards wrote:
> >> On 2015-09-15, Grant Edwards  wrote:
> >> > In most X11 apps I can select some text and then paste it somewhere
> >> > else with a middle-click, or dump it to stdout with the command 'xclip
> >> > -o'.  That doesn't work for highligted text in gtk-3 apps (meld,
> >> > evince, audacious, etc.).  After selecting text in a gtk-3 app, if I
> >> > middle-click in a terminal window it does nothing and 'xclip -o' just
> >> > hangs.  Selecting text elsewhere will deselect the text in the gtk-3
> >> > app, so gtk-3 isn't _completely_ ignoring X11 clipboards/buffers.
> >> > 
> >> > Any ideas why gtk-3 copy/paste is broken and how to fix it?
> >> 
> >> Ah, it turns out it's only a problem if you have multiple screens: you
> >> can only paste a gtk-3 selection if the destination is on the same X11
> >> screen as the source.  I'm pretty sure this is a known problem, but
> >> I'm having trouble finding it again in the Gnome bugtracker...
> > 
> > Must be related to gtk-3 then.
> > 
> > I use 2 screens extensively and never experienced any issues like you
> > describe.
> 
> And you can select/paste from one screen to another where the source
> is a gtk-3 app?

Not sure, need to test with a gtk-3 app.
I run KDE myself.

> I should clarify that I mean "screen" in the strict X11 usage.  Using
> Xinerama or the like to spread a single desktop across multiple
> monitors is still a single screen setup.  I'm trying to select text on
> DISPLAY=:0.0 and paste it on DISPLAY=:0.1

Not using my desktop atm.
What does Xorg do by default when it detects multiple screens?

> > Am surprised it would respond differently between GTK-3 and non-GTK-3
> > apps.
> 
> I'm not.  When somebody selects something, you've got to make onr or
> more Xlib function calls to grab control of the selection, and if
> you're naive and think that the screen where your program is running
> is the only one, then you only make the call to grab control of the
> selection for that screen. Apparently the gtk-3 developers never
> thought about the possibility that there are mutliple screens in an
> X11 session.

Bad design then, as systems with multiple screens have been around for years.

> > I don't configure anything special for multiple screens in the past
> > few years.
> 
> Are you really using multiple screens?  Or a single screen spread
> across mutliple monitors?  If you start an xterm on every monitor and
> do "echo $DISPLAY" in each one, do you get different results or are
> they all the same?

As I said, what's the default with Xorg?

--
Joost



Re: [gentoo-user] Syslog-ng "Failed to seek to the Cursor"

2015-09-17 Thread Helmut Jarausch
On 09/16/2015 09:19:58 PM, Fernando Rodriguez wrote:
> On Wednesday, September 16, 2015 3:05:55 PM Fernando Rodriguez wrote:
> > On Wednesday, September 16, 2015 8:52:21 PM Helmut Jarausch wrote:
> > > On 09/16/2015 06:55:00 PM, Alan McKinnon wrote:
> > > > On 16/09/2015 17:57, Helmut Jarausch wrote:
> > > > > I have syslog-ng-3.7.1 installed here.
> > > > > Syslog-ng fails to start with the message:
> > > > > Failed to seek to the Cursor cursor='', error='Success (0)'
> > > > >
> > > > > Does anybody know what's happening?
> > > > >
> > > > > Many thanks for a hint,
> > > > > Helmut
> > > > >
> > > > >
> > > >
> > > >
> > > > It has something to do with systemd's log thingy.
> > > >
> > > > The error only appears in one place in the syslog-ng source,
> > > > in modules/systemd-journal/journal-reader.c:
> > > >
> > > > static inline gboolean
> > > > __seek_to_saved_state(JournalReader *self)
> > > > {
> > > >   JournalReaderState *state =
> > > > persist_state_map_entry(self->persist_state,
> self->persist_handle);
> > > >   gint rc = journald_seek_cursor(self->journal, state->cursor);
> > > >   persist_state_unmap_entry(self->persist_state,
> > > > self->persist_handle);
> > > >   if (rc != 0)
> > > > {
> > > >   msg_warning("Failed to seek to the cursor",
> > > >   evt_tag_str("cursor", state->cursor),
> > > >   evt_tag_errno("error", errno),
> > > >   NULL);
> > > >   return __seek_to_head(self);
> > > > }
> > > >   journald_next(self->journal);
> > > >   return TRUE;
> > > > }
> > > >
> > > >
> > > > First step would appear to be to check systemd's built-in log
> thingy
> > > >
> > >
> > > Thanks Alan,
> > >
> > > but how to do that. I have systemd installed here but I haven't
> ever used
> it
> > since I'm using openrc.
> > > So, what can I do?
> > >
> > > Thanks,
> > > Helmut
> > >
> > >
> >
> > Look for file named syslog-ng.persist somewhere in /var and delete
> it, then
> try
> > restarting syslog-ng.
> >
> > I also recommend you start playing with journalctl. I hated it for a
> while
> but
> > mostly because I didn't knew how to use it. Now I love it and got
> rid of
> > syslog-ng.
> 
> Ops, I missed the part about not using systemd. If deleting that file
> doesn't
> fix it check if you have the systemd use flag enabled for syslog-ng
> and disable
> it. Are you using a systemd profile?
> 

Many thanks, Fernando, 
the systemd use-flag of syslog-ng was the culprit.
(no, I don't use a systemd profile)

Helmut.





Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Rich Freeman
On Thu, Sep 17, 2015 at 2:29 AM, Alan McKinnon  wrote:
>
> PSUs are not expensive and there's lots of other things one can save
> cash on. I firmly believe cutting corners with PSUs is like saving money
> by not replacing oil filters - you save some cash now, and cause
> yourself enormous expense later
>

++

Also, my sense is that vendors have realized they're starting to
really hit the practical limits on PC power consumption.  That means
that if you invest in a decent power supply now there is a good chance
that you'll get a lot more life out of it than in the past where they
seemed to double in capacity every other year.  Sure, maybe the next
AMD chip will pull 500W, the next GPU will pull another 750W, and the
peltier cooling for both will pull another 75W, but I think that when
people have to start running additional power lines to their office
and install an extra AC in the room or install a cooling tower they'll
draw the line.

-- 
Rich



[gentoo-user] Re: Can't paste from selection in gtk-3 apps

2015-09-17 Thread Grant Edwards
On 2015-09-17, Grant Edwards  wrote:
> On 2015-09-17, J. Roeleveld  wrote:
>
 I use 2 screens extensively and never experienced any issues like you
 describe.
>>> 
>>> And you can select/paste from one screen to another where the source
>>> is a gtk-3 app?
>>
>> Not sure, need to test with a gtk-3 app.
>>
>> I run KDE myself.
>
>>> I should clarify that I mean "screen" in the strict X11 usage.  Using
>>> Xinerama or the like to spread a single desktop across multiple
>>> monitors is still a single screen setup.  I'm trying to select text
>>> on DISPLAY=:0.0 and paste it on DISPLAY=:0.1
>>
>> Not using my desktop atm.
>> What does Xorg do by default when it detects multiple screens?
>
> Not sure -- I'll have to give it a try. IIRC, it just uses the first
> one.

At least on my machine, if I start up X11 without a configuration file
it only uses one of my three monitors.  That behavior may depend on
which boards are installed and which board/driver is found first.

-- 
Grant Edwards   grant.b.edwardsYow! I want to read my new
  at   poem about pork brains and
  gmail.comouter space ...




[gentoo-user] Re: new machine : case + power

2015-09-17 Thread james
Alan McKinnon  gmail.com> writes:


> I have yet to see a computer that draws 350W sustained 
> Spikes of brief duration yes, sustained no.[1]

Maleformed arguement here, pal. It was a 'generic example. Obviously
if his rig draws 200 W on a cheap/old 400W supply, it will be fine
until the components age.

> But now I'm being pedantic right after you tried so hard not to be.
Fine, let's dance, as one of my areas of expertise is fluid flow besides
EE.


> [1] Anyone who wants to know just how much power 350W really is,
> consider that your electric kettle is about 1000W and can boil 1.7l of
> cold water in 2 minutes. I know [CG]PUs get hot, but they don't get
> *that* hot.


Huh? You really should stay in  the E domain, for accuracy and not
confusing the readers.


Hook up some sophiticated electrical monitoring equipment that also
logs data points, (wave-forms) at say 100+ points per second resolution
and leave in on a computer for months. If it is heavily used, or your
utility is crappy (as they all are do to costs) you will see transients,
some of which pass right through the UPS (slow to react)  and the
PS (particularly if the filter stages are poorly design (which most are
as the designers are often not allows to use expensive components)
and they hit the components on the PC side. Over time there is a 
cumulative effect. Also, components "burn in" and then mostly offer
reliable performance until they reach the end-of-life, statistically.
AT the point some last longer, other have failed and still others accentuate
the effects of transients. Most system tolerate this for quite a while,
granted. But he is now talking about purchase of some expensive
components; for example a CPU that is running at a base speed of 4.3GHz.
That load is far more demanding than the same wattage load with a 2 GHz
CPU. Higher frequency components have much faster transients (skinnier
on a wave-trace). So they just pass right through crappy (low cost)
UPS and PS. Furthermore, they by nature of their clock speeds induce
transients behind the PS. Sometimes transients cancel and sometimes
they are additive. Now all of those circuits are becoming "distributed
parameters" and cannot be accurately characterized by lump sump analysis
methods. (such as I have previously describe using cheap technician tools
like multi meters and amp meters.


Ferro resonant UPS fix most of the this, at least from the utility side, but
they are hard to find in smaller USPS. A good old fashion 1-to-1 iron core
transformer in  the mix does the same thing, but the power loss is 3-15%
depending on many factors.

Sure there are micro components on the mobo to do some of the
same thing, but in cheaper mobo they do not do the job well.  Transients
penetrate (transgress) from the circuits where they are suppose to
be "contained" into the other circuits close to those hi freq sources
(4.3 GHz is Hi freq for a digital designer) and therein cause lots
of problems. You just can't see it. Now what is the freq of the DDR3-5
ram on the GPU?  The freq of the System ram?  Get the picture? I've design
quite a bit of gear, at various frequencies:: I should be 'in the market
for something really cool, say around 2K for nerds, just like you,
that like to show off at parties. Specs are done, but it will be approaching
3000 W, have 8 channels and should radically enhance your 'dance moves'!

Me, I would *never* put an old crappy standard 400 watt power supply
on a new 4.3 GHz system. ymmv

PPS, I really enjoy (too much) the pedantic beat down, but I'm done
on this one, so rave_on, ?


James









[gentoo-user] Re: new machine : case + power

2015-09-17 Thread james
Nikos Chantziaras  gmail.com> writes:


> However, note that PSUs tend to go bad after years of operation. An 8 
> years old PSU might start losing power or voltage stability. If you see 
> random machine resets or hangups, it's usually because the PSU is dying.

Very true. However, if you are "handy with electrical wiring", DC voltage
analysis, live, is quite simple. Just monitor the voltage outputs, under 
load with a "multi meter" and see if the voltages sags below the unload
rail (dc voltage level). Also the most common failure of PC style PS
is the fan and those can be changed for a few bucks. But electronics do age
and a good UPS will extend the life of your PS. UPS batteries, typical
a 7-10 Amp-hour are cheap to replace ever 2-4 years. Another simple way
to do this, and more cool, is the get an amp meter. Just convert the
wattage rating of the PS to an amp rating at a given voltage level. Clamp
around the power cord running to the PC and you can see the static (non
transient) voltage sag if it occurs as the amperage draw increases.
If you can find an old analog meter, with a needle on the dial, you can
see a transient energy draw by the fast movement of the needle on the dial.
Digital meters that can do this, or capture the traces (as in an
oscilloscope) are much more expensive, but makes for a fun lab to learn
about the operational characteristics of dynamic electrical energy flows.
(trying to keep this non-pedantic).




> With that GPU, you don't need more than 400W. And the amps on the 12V 
> rail are also not important, as that only comes into play with 
> higher-end GPUs. Other features can still be important though, like 
> protection against surges and such (think lightning strikes that can 
> potentially damage your PC, or some PSU malfunction that could do the same.)


True, but you are not considering transient voltage swings. If your rig
draws 350 W and you have a 400 W PS, you will get spikes and draw-downs
on the voltage during transient period of peak usage. This will kill a PS
over time, faster that if the 350W rig is running off a 500W supply.
Lots of quality capacitors in the PS minimize these effects. If the PS
is rated as extremely efficient (compared to other PS) then it has
better quality components inside the PS (they react faster to transients).

caveat emptor! Size does matter for a long and happy life::
;-) 


James






[gentoo-user] Re: Can't paste from selection in gtk-3 apps

2015-09-17 Thread Grant Edwards
On 2015-09-17, J. Roeleveld  wrote:

>>> I use 2 screens extensively and never experienced any issues like you
>>> describe.
>> 
>> And you can select/paste from one screen to another where the source
>> is a gtk-3 app?
>
> Not sure, need to test with a gtk-3 app.
>
> I run KDE myself.

>> I should clarify that I mean "screen" in the strict X11 usage.  Using
>> Xinerama or the like to spread a single desktop across multiple
>> monitors is still a single screen setup.  I'm trying to select text
>> on DISPLAY=:0.0 and paste it on DISPLAY=:0.1
>
> Not using my desktop atm.
> What does Xorg do by default when it detects multiple screens?

Not sure -- I'll have to give it a try. IIRC, it just uses the first
one.

>>> Am surprised it would respond differently between GTK-3 and non-GTK-3
>>> apps.
>> 
>> I'm not.  When somebody selects something, you've got to make onr or
>> more Xlib function calls to grab control of the selection, and if
>> you're naive and think that the screen where your program is running
>> is the only one, then you only make the call to grab control of the
>> selection for that screen. Apparently the gtk-3 developers never
>> thought about the possibility that there are mutliple screens in an
>> X11 session.
>
> Bad design then, as systems with multiple screens have been around
> for years.

Agreed. Apps that use other libraries seem to work fine, and gtk-2
works fine.

>> Are you really using multiple screens?  Or a single screen spread
>> across mutliple monitors?  If you start an xterm on every monitor and
>> do "echo $DISPLAY" in each one, do you get different results or are
>> they all the same?
>
> As I said, what's the default with Xorg?

I'll check.

-- 
Grant Edwards   grant.b.edwardsYow! Does someone from
  at   PEORIA have a SHORTER
  gmail.comATTENTION span than me?




Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Alan McKinnon
On 17/09/2015 16:09, james wrote:
> Huh? You really should stay in  the E domain, for accuracy and not
> confusing the readers.

I'm not familiar with the term "E"

For the rest, we seem to have diverged the plot somewhere.
We agree.

-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Alan McKinnon
Anyone here familiar with driving nodejs and npm?

I'm trying to write an ebuild for a musicbrainz mirror server and "npm
install" keeps erroring out with one of two errors:

1. The install does finish but npm doesn't get around to exiting,
verified by stopping the emerge, running npm install manually and seeing
that it does nothing. When it stalls strace shows the last call was
(poll,), which implies a race condition.

2. More and more often now I get the dreaded "npm: ERR! cb() never
called!" error message which Google and stackoverflow say has been an
ongoing issue for 3 years now. If I keep retrying it eventually
succeeds, implying a race condition of some sort.

I do this in src_prepare():  [1]
src_prepare() {
npm install npm || die
npm install || die
}
following the lead of the ony other ebuild in the tree that does npm
install - bokeh-0.7.1

The package.json file from musicbrainz.com is this, it looks OK to me:

{
  "name": "musicbrainz-server",
  "version": "0.0.0",
  "description": "package.json for keeping track of musicbrainz-server
nodejs dependencies",
  "repository": {
"type": "git",
"url": "https://github.com/metabrainz/musicbrainz-server.git;
  },
  "license": "GPLv2+",
  "dependencies": {
"aclass": "0.5.1",
"babel": "^5.8.21",
"babel-core": "^5.8.22",
"babelify": "^6.1.3",
"balanced-match": "0.2.0",
"cookie": "^0.1.2",
"envify": "^3.4.0",
"filesize": "2.0.4",
"gulp": "^3.8.7",
"gulp-less": "^3.0.0",
"gulp-rev": "^2.0.1",
"gulp-streamify": "^0.0.5",
"immutable": "3.6.4",
"jed": "1.1.0",
"jquery": "1.11.2",
"jquery.browser": "gabceb/jquery-browser-plugin#e4a01fd",
"knockout": "mwiencek/knockout#a8f12df",
"knockout-arraytransforms": "^2.0.0",
"less-plugin-clean-css": "^1.4.0",
"leven": "^1.0.2",
"lodash": "^3.9.3",
"parse-stack": "0.1.3",
"po2json": "^0.3.2",
"q": "^1.1.1",
"rcss": "0.1.4",
"react": "0.13.1",
"shelljs": "^0.3.0",
"tablesorter": "Mottie/tablesorter#430f8c5",
"through2": "^0.6.1",
"uglifyify": "^3.0.1",
"vinyl": "^0.4.6",
"vinyl-source-stream": "^1.0.0",
"yarb": "^0.4.4"
  },
  "devDependencies": {
"eslint": "^0.24.0",
"eslint-plugin-react": "^2.6.4",
"gulp-watch": "^4.2.1",
"tape": "^4.0.0"
  },
  "private": true
}


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Alan McKinnon
On 17/09/2015 15:26, james wrote:
>> With that GPU, you don't need more than 400W. And the amps on the 12V 
>> > rail are also not important, as that only comes into play with 
>> > higher-end GPUs. Other features can still be important though, like 
>> > protection against surges and such (think lightning strikes that can 
>> > potentially damage your PC, or some PSU malfunction that could do the 
>> > same.)
> 
> True, but you are not considering transient voltage swings. If your rig
> draws 350 W and you have a 400 W PS, you will get spikes and draw-downs
> on the voltage during transient period of peak usage. This will kill a PS
> over time, faster that if the 350W rig is running off a 500W supply.
> Lots of quality capacitors in the PS minimize these effects. If the PS
> is rated as extremely efficient (compared to other PS) then it has
> better quality components inside the PS (they react faster to transients).


I have yet to see a computer that draws 350W sustained :-)
Spikes of brief duration yes, sustained no.[1]

But now I'm being pedantic right after you tried so hard not to be.


[1] Anyone who wants to know just how much power 350W really is,
consider that your electric kettle is about 1000W and can boil 1.7l of
cold water in 2 minutes. I know [CG]PUs get hot, but they don't get
*that* hot.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Quick check on net-print/hplip-3.14.10

2015-09-17 Thread Mick
On Thursday 17 Sep 2015 08:12:56 Dale wrote:
> Mick wrote:
> > On Wednesday 16 Sep 2015 23:43:51 Dale wrote:
> >> Mick wrote:
> >>> Hi All,
> >>> 
> >>> I just noticed that the driver for my old printer no longer shows up in
> >>> cups, on one of my PCs.  Comparison with other PCs shows that this one
> >>> does *not* have the hpijs USE set.
> >>> 
> >>> Could someone who also does not have hpijs set in their hplip tell me
> >>> if the HP DeskJet 930C selection is missing, when they load up the GUI
> >>> via https://127.0.0.1:631 and then try to modify a printer?
> >>> 
> >>> Until this week there wasn't a problem with this PC so I am not sure
> >>> what changed ...
> >>> 
> >>> I've set it up with DeskJet 932c for now without USE=hpijs and it seems
> >>> to work, so I am in two minds if I need hpijs or if I need to use the
> >>> 930c driver anyway.
> >> 
> >> I was going to try and test this.  I try to help when ever I can.  Thing
> >> is, the way CUPS works here, you have to have the printer connected to
> >> set it up.  I can't find a option to set up a printer that is not
> >> connected during the set up process.  Maybe I am missing something.  o_O
> >> 
> >> Maybe someone else who has that printer can test it.  We hope.
> >> 
> >> Dale
> >> 
> >> :-)  :-)
> > 
> > Thank you Dale,
> > 
> > You don't have to complete the setup of the printer.  Just select Modify
> > printer and 'try' to change its driver from the dropdown selection.  You
> > don't need to actually change it - just look in there if DeskJet 930c is
> > listed. Assuming of course that your hplip was compiled with
> > USE="-hpijs".
> > 
> > My 930C is a USB printer, but I have a little ethernet to USB printer
> > server that I access it through.  This is a monodirectional lpd server,
> > so all the hplip GUI to report printer status is not working.  It
> > doesn't bother me as printing is a rare occasion and all users know what
> > to do if it runs out of ink.
> > 
> > Printing was all working fine on this PC until a couple of days ago, so I
> > wonder if I removed something in /etc/portage/* to cause this ...
> 
> I get the same option just trying to modify my current printer.  It
> doesn't list anything, it just shows the printer I currently have set
> up.  Even if I tell it I want to add another printer, it still shows my
> current printer.  I can't find a way to get it to list them.  Maybe it
> is a setting somewhere that I have that makes mine work different.
> 
> Dale
> 
> :-)  :-)

OK, I managed to get 10 minutes access to the offending box and I remerged 
hplip.  Guess what?  The 930c driver re-appeared on the list.  So I am now 
doubly paranoid that the btrfs is playing up ...

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Michael Orlitzky
On 09/17/2015 10:03 AM, Alan McKinnon wrote:
> Anyone here familiar with driving nodejs and npm?
> 
> I'm trying to write an ebuild for a musicbrainz mirror server and "npm
> install" keeps erroring out with one of two errors:
> 
> 1. The install does finish but npm doesn't get around to exiting,
> verified by stopping the emerge, running npm install manually and seeing
> that it does nothing. When it stalls strace shows the last call was
> (poll,), which implies a race condition.
> 
> 2. More and more often now I get the dreaded "npm: ERR! cb() never
> called!" error message which Google and stackoverflow say has been an
> ongoing issue for 3 years now. If I keep retrying it eventually
> succeeds, implying a race condition of some sort.
> 

I went through this wonderful experience a few weeks ago. You're not
allowed to access the network in src_prepare, so that might be
contributing to your weirdness. I came up with two options:

1) Run `npm install` on your dev machine, and then package up the result
as a tarball. Generate the manifest from the tarball, and then in your
src_install, just copy stuff over.

  src_install(){
  local npm_module_dir="/usr/$(get_libdir)/node/${PN}"
  insinto "${npm_module_dir}"
  doins -r whatever
  ...
  }


This is the lazy way, but avoids you having to package 1,000 other
things all written by people who just "learned to code" by googling HOW
DO I HTML5.

2) The right way to do it is to use an eclass and install all of the
dependencies using separate packages. As you can imagine, this is a
nightmare if you have more than a few dependencies (looks like you do).

I started an eclass for npm packages. I left the overlay here:

  https://github.com/orlitzky/npm

but no one else seemed interested in having it in-tree, and the whole
ecosystem is kind of scary to me anyway.

So, for the large package I need, I'm doing it the lazy way: npm install
on my machine, and make an ebuild for the resulting huge tarball.




Re: [gentoo-user] Quick check on net-print/hplip-3.14.10

2015-09-17 Thread Alan McKinnon
On 17/09/2015 19:36, Mick wrote:
> On Thursday 17 Sep 2015 08:12:56 Dale wrote:
>> Mick wrote:
>>> On Wednesday 16 Sep 2015 23:43:51 Dale wrote:
 Mick wrote:
> Hi All,
>
> I just noticed that the driver for my old printer no longer shows up in
> cups, on one of my PCs.  Comparison with other PCs shows that this one
> does *not* have the hpijs USE set.
>
> Could someone who also does not have hpijs set in their hplip tell me
> if the HP DeskJet 930C selection is missing, when they load up the GUI
> via https://127.0.0.1:631 and then try to modify a printer?
>
> Until this week there wasn't a problem with this PC so I am not sure
> what changed ...
>
> I've set it up with DeskJet 932c for now without USE=hpijs and it seems
> to work, so I am in two minds if I need hpijs or if I need to use the
> 930c driver anyway.

 I was going to try and test this.  I try to help when ever I can.  Thing
 is, the way CUPS works here, you have to have the printer connected to
 set it up.  I can't find a option to set up a printer that is not
 connected during the set up process.  Maybe I am missing something.  o_O

 Maybe someone else who has that printer can test it.  We hope.

 Dale

 :-)  :-)
>>>
>>> Thank you Dale,
>>>
>>> You don't have to complete the setup of the printer.  Just select Modify
>>> printer and 'try' to change its driver from the dropdown selection.  You
>>> don't need to actually change it - just look in there if DeskJet 930c is
>>> listed. Assuming of course that your hplip was compiled with
>>> USE="-hpijs".
>>>
>>> My 930C is a USB printer, but I have a little ethernet to USB printer
>>> server that I access it through.  This is a monodirectional lpd server,
>>> so all the hplip GUI to report printer status is not working.  It
>>> doesn't bother me as printing is a rare occasion and all users know what
>>> to do if it runs out of ink.
>>>
>>> Printing was all working fine on this PC until a couple of days ago, so I
>>> wonder if I removed something in /etc/portage/* to cause this ...
>>
>> I get the same option just trying to modify my current printer.  It
>> doesn't list anything, it just shows the printer I currently have set
>> up.  Even if I tell it I want to add another printer, it still shows my
>> current printer.  I can't find a way to get it to list them.  Maybe it
>> is a setting somewhere that I have that makes mine work different.
>>
>> Dale
>>
>> :-)  :-)
> 
> OK, I managed to get 10 minutes access to the offending box and I remerged 
> hplip.  Guess what?  The 930c driver re-appeared on the list.  So I am now 
> doubly paranoid that the btrfs is playing up ...
> 

Or, someone deleted the ppd and the re-emerge put it back :-)

As the saying goes "never ascribe to malice what is adequately explained
by stupidity"


-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] Re: Quick check on net-print/hplip-3.14.10

2015-09-17 Thread james
Mick  gmail.com> writes:

> Thank you wabe.  This is just how I recalled this should be and confirms my 
> suspicions that hpijs is not needed.  I am at a loss as to why 930c suddenly 
> disappeared from the list of available drivers.  I am also at the latest 
> stable hplip-3.14.10.


Hello Mick,

This package cannot hurt. It's probably not the problem but you never know.
I've used it to fix other things.  I assuming you got it hook up on usb?

sys-apps/hwids


Your 930C Deskjet is in there

https://usb-ids.gowdy.us/usb.ids


Cups is a funny (not so funny, actually) app. They fix one thing
and hose another, all the time.

I keep many backups of /etc/cups as the upgrade sometime modify
perfectly fine files. If the hwids does hot help, then
examine the usb bus to makesure it stillworks. My hp printer
qot real intermittant on the ethernet. The plastic part of the 
RJ45 connector broke, inside. Stange failure, so I just tape
the ethernet cable.   You got somthing weird. Check the data
cable, as I assumed it was USB.

hth,
James





Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Alan McKinnon
On 17/09/2015 18:56, james wrote:
> Alan McKinnon  gmail.com> writes:
> 
> 
>> On 17/09/2015 16:09, james wrote:
>>> Huh? You really should stay in  the E domain, for accuracy and not
>>> confusing the readers. 
> 
>> I'm not familiar with the term "E"
> 
> Aren't you an EE, amongst other talents? 

I started an engineering degree, but got waylaid in 2nd year mostly due
to failing chemistry in the 1st year :-)

What I am, qualification wise, is a Electronic (Radio) Technician. The
old way, soldering iron in hand doing component level repairs and none
of this modern nonsense of replacing entire boards at 60% the price of
the unit. I've fixed more PSUs of every type under the sun than I care
to remember, and it always annoyed the blazes out of me that I was the
only tech who understood what I was working on .

Only one other person ever truly grokked me about ESR wrt electrolytics
and why dud caps almost always read correctly on capacitance meters.

But that was a very long time ago, I left that field 15 years ago. Now
I'm a sysadmin, some call me a BOFH :-)

> Electricity and Magnetism (E) 
> You know, what physicists call Fields and Waves
> Surely you've met my friend Schroedinger?
> Electric fields; just for fun [1]

Yes, I recall Schroedinger, he had a very nice cat. Her spirit lives on
in the daft creature that meows round my kitchen. It must be the poison
gas from the vial, that stuff scrambles brains


> 
> 
>> For the rest, we seem to have diverged the plot somewhere.
>> We agree.
> 
> Hey, I posted once about PS, and everybody had to pile_on (ok).
> The I posted again on a different sub_thread, try to avoid
> conflict. I know power, small signals, DSPs and quite a bit of
> Rf.. Granted, my people skills, despite arduous effort,
> are weak, at best. That why I sit in a lab alone, and mostly
> contract, when something interests me...

You and I have similar problems. The computers and circuitry do what we
tell them do and the machines are predictable. People are ... not so
much. I'm now 50 and it's only in the last 5 years I've really started
to get a handle on it ;-)
> 
> Cheers!
> ;-)

no worries, we're all good.


> 
> [1] https://en.wikipedia.org/wiki/Schrödinger_field
> 


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Alan McKinnon
On 17/09/2015 20:50, Michael Orlitzky wrote:
> On 09/17/2015 10:03 AM, Alan McKinnon wrote:
>> Anyone here familiar with driving nodejs and npm?
>>
>> I'm trying to write an ebuild for a musicbrainz mirror server and "npm
>> install" keeps erroring out with one of two errors:
>>
>> 1. The install does finish but npm doesn't get around to exiting,
>> verified by stopping the emerge, running npm install manually and seeing
>> that it does nothing. When it stalls strace shows the last call was
>> (poll,), which implies a race condition.
>>
>> 2. More and more often now I get the dreaded "npm: ERR! cb() never
>> called!" error message which Google and stackoverflow say has been an
>> ongoing issue for 3 years now. If I keep retrying it eventually
>> succeeds, implying a race condition of some sort.
>>
> 

Hi Michael,

I reached pretty much the same conclusions as you. And yes, it is
src_prepare() not allowing network access that caused most of the
weirdness. I must have had the packages cached causing them to install
correctly the first time. I've since cleaned the npm cache and of course
now they fail.

After I posted my mail I went through the npm bugs at bgo and the
unstated message from the gentoo devs is loud and clear - "you are not
putting that shit in the tree"

So I took the easiest possible way out: deleted src_prepare() and issued
an elog to "cd $inst_dir && npm install, and do not use -g"

> I went through this wonderful experience a few weeks ago. You're not
> allowed to access the network in src_prepare, so that might be
> contributing to your weirdness. I came up with two options:
> 
> 1) Run `npm install` on your dev machine, and then package up the result
> as a tarball. Generate the manifest from the tarball, and then in your
> src_install, just copy stuff over.
> 
>   src_install(){
>   local npm_module_dir="/usr/$(get_libdir)/node/${PN}"
>   insinto "${npm_module_dir}"
>   doins -r whatever
>   ...
>   }
> 
> 
> This is the lazy way, but avoids you having to package 1,000 other
> things all written by people who just "learned to code" by googling HOW
> DO I HTML5.

Agreed. The quality of node software is atrocious, and the package
manager is even worse. read "npm faq", it is most enlightening and gives
insight into people's heads

> 
> 2) The right way to do it is to use an eclass and install all of the
> dependencies using separate packages. As you can imagine, this is a
> nightmare if you have more than a few dependencies (looks like you do).

Errr, no :-)

g-cpan is bad enough and those ebuilds are mostly template-able. At
least CPAN modules mostly respond correctly to make && make install.
That node stuff doesn't look like it will ever package sanely.

> 
> I started an eclass for npm packages. I left the overlay here:
> 
>   https://github.com/orlitzky/npm
> 
> but no one else seemed interested in having it in-tree, and the whole
> ecosystem is kind of scary to me anyway.

Indeed.


> 
> So, for the large package I need, I'm doing it the lazy way: npm install
> on my machine, and make an ebuild for the resulting huge tarball.

Thanks for the feedback

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Alec Ten Harmsel
On Thu, Sep 17, 2015 at 03:36:18PM +0200, Alan McKinnon wrote:
> I have yet to see a computer that draws 350W sustained :-)
> Spikes of brief duration yes, sustained no.[1]

Normal desktops and web servers, sure. We have some GPU boxes at work
that have 8 GPUs apiece[1] in addition to 12-20 cores. They pull just a
bit more than 350W ;).

Alec

[1] http://arc-ts.umich.edu/flux/flux-configuration/#gpus



Re: [gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Alec Ten Harmsel
On Thu, Sep 17, 2015 at 09:24:39PM +0200, Alan McKinnon wrote:
> On 17/09/2015 20:50, Michael Orlitzky wrote:
> > On 09/17/2015 10:03 AM, Alan McKinnon wrote:
> >> Anyone here familiar with driving nodejs and npm?
> >>
> >> I'm trying to write an ebuild for a musicbrainz mirror server and "npm
> >> install" keeps erroring out with one of two errors:

Haha, npm. First time I ever ran npm, it required 3 runs before it
actually managed to fetch all the dependencies. Hopefully it's better
now.

> > 
> > 2) The right way to do it is to use an eclass and install all of the
> > dependencies using separate packages. As you can imagine, this is a
> > nightmare if you have more than a few dependencies (looks like you do).
> 
> Errr, no :-)
> 
> g-cpan is bad enough and those ebuilds are mostly template-able. At
> least CPAN modules mostly respond correctly to make && make install.
> That node stuff doesn't look like it will ever package sanely.

Unfortunately, the right way with nodejs/ruby web stuff is to use the
tooling specific to the language. If this[1] is what you're trying to
deploy, I feel sorry.

If I was serious about deploying this, I would:

1. Fork the repo and add a remote on my own server
2. Add your custom configuration
3. Write a small shell script that
  1. Runs `git pull` from your own infrastructure
  2. Installs perl/node deps locally
  3. Runs the gulp build
  4. Runs plackup
4. Add an init script that runs that start script

This sucks, but it seems to be the way a lot of web stuff is deployed
these days.

Hope this helps,

Alec

[1] https://github.com/metabrainz/musicbrainz-server



Re: [gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Alan McKinnon
On 17/09/2015 22:53, Alec Ten Harmsel wrote:
> On Thu, Sep 17, 2015 at 09:24:39PM +0200, Alan McKinnon wrote:
>> On 17/09/2015 20:50, Michael Orlitzky wrote:
>>> On 09/17/2015 10:03 AM, Alan McKinnon wrote:
 Anyone here familiar with driving nodejs and npm?

 I'm trying to write an ebuild for a musicbrainz mirror server and "npm
 install" keeps erroring out with one of two errors:
> 
> Haha, npm. First time I ever ran npm, it required 3 runs before it
> actually managed to fetch all the dependencies. Hopefully it's better
> now.

Slightly OT, but the general idea of package management isn't hard.

Put the stuff you should have in a list, then compare what you should
have to what you do have. Go get and install what you don't have, then
make a record that you did it.

Everything needed to get these basics right has been known for 40 years
or more - fellows like Wirth and Dijkstra figured it all out way back when.

Sure, there's always modern stumbling blocks (like why we have subslots)
but that's extra to the essential basics.

So why oh why do the latest generation of wunderkinds (not) always get
it so completely WRONG? 3 runs to fetch all the deps? I suppose wget and
curl don't actually do what I think they do then

> 
>>>
>>> 2) The right way to do it is to use an eclass and install all of the
>>> dependencies using separate packages. As you can imagine, this is a
>>> nightmare if you have more than a few dependencies (looks like you do).
>>
>> Errr, no :-)
>>
>> g-cpan is bad enough and those ebuilds are mostly template-able. At
>> least CPAN modules mostly respond correctly to make && make install.
>> That node stuff doesn't look like it will ever package sanely.
> 
> Unfortunately, the right way with nodejs/ruby web stuff is to use the
> tooling specific to the language. If this[1] is what you're trying to
> deploy, I feel sorry.

Yes, that's the one

> 
> If I was serious about deploying this, I would:
> 
> 1. Fork the repo and add a remote on my own server
> 2. Add your custom configuration
> 3. Write a small shell script that
>   1. Runs `git pull` from your own infrastructure
>   2. Installs perl/node deps locally
>   3. Runs the gulp build
>   4. Runs plackup
> 4. Add an init script that runs that start script

I followed that mostly except for forking the repo and writing a small
shell script - I much prefer proper ebuilds to hacky scripts. Even
though I'm a Linux sysadmin I hate ad-hoc shell scripts with a passion

> 
> This sucks, but it seems to be the way a lot of web stuff is deployed
> these days.
> 
> Hope this helps,
> 
> Alec
> 
> [1] https://github.com/metabrainz/musicbrainz-server
> 


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Quick check on net-print/hplip-3.14.10

2015-09-17 Thread Mick
On Thursday 17 Sep 2015 20:25:57 Alan McKinnon wrote:
> On 17/09/2015 19:36, Mick wrote:

> > OK, I managed to get 10 minutes access to the offending box and I
> > remerged hplip.  Guess what?  The 930c driver re-appeared on the list. 
> > So I am now doubly paranoid that the btrfs is playing up ...
> 
> Or, someone deleted the ppd and the re-emerge put it back :-)

Hmm ... now, who would that be, when I'm the only one with root access to this 
box?  O_o

> As the saying goes "never ascribe to malice what is adequately explained
> by stupidity"

Yeah, right, I don't have to answer that.  :-p
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Quick check on net-print/hplip-3.14.10

2015-09-17 Thread Alan McKinnon
On 18/09/2015 00:26, Mick wrote:
> On Thursday 17 Sep 2015 20:25:57 Alan McKinnon wrote:
>> On 17/09/2015 19:36, Mick wrote:
> 
>>> OK, I managed to get 10 minutes access to the offending box and I
>>> remerged hplip.  Guess what?  The 930c driver re-appeared on the list. 
>>> So I am now doubly paranoid that the btrfs is playing up ...
>>
>> Or, someone deleted the ppd and the re-emerge put it back :-)
> 
> Hmm ... now, who would that be, when I'm the only one with root access to 
> this 
> box?  O_o
> 
>> As the saying goes "never ascribe to malice what is adequately explained
>> by stupidity"
> 
> Yeah, right, I don't have to answer that.  :-p
> 


When you said "I managed to get 10 minutes access to the offending box"
I figured it wasn't yours, that it had users, and you were the guy with
the problem of sorting it out, and you needed some pointy haired bosses'
permission to do it at all.

Seems that's not actually the case?

-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] Re: new machine : case + power

2015-09-17 Thread james
Alan McKinnon  gmail.com> writes:


> On 17/09/2015 16:09, james wrote:
> > Huh? You really should stay in  the E domain, for accuracy and not
> > confusing the readers. 

> I'm not familiar with the term "E"

Aren't you an EE, amongst other talents?  
Electricity and Magnetism (E) 
You know, what physicists call Fields and Waves
Surely you've met my friend Schroedinger?
Electric fields; just for fun [1]


> For the rest, we seem to have diverged the plot somewhere.
> We agree.

Hey, I posted once about PS, and everybody had to pile_on (ok).
The I posted again on a different sub_thread, try to avoid
conflict. I know power, small signals, DSPs and quite a bit of
Rf.. Granted, my people skills, despite arduous effort,
are weak, at best. That why I sit in a lab alone, and mostly
contract, when something interests me...

Cheers!
;-)

[1] https://en.wikipedia.org/wiki/Schrödinger_field



Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Philip Webb
150917 james wrote:
> Philip Webb  ca.inter.net> writes:
>> 150914 CPU : AMD X8 FX8370E 8-core 4,3 GHz 16 MB 32 nm 95 W 
> I have 3) FX8350. Outstanding performance for the cost. Love them all.
>> 150914 Mobo : Gigabyte GA-970A-UD3P 970+SB950 DDR3 2000  :  119.99
>>2x PCI-Express x16 GLAN 6xSATA 6.0 Gb/s 4xUSB 3.0 14xUSB 2.0
> I have (3) of the Gigabyte 990A-UD3P mobos : I love mine
> There has been a quiet revolution in power supply.  The efficiency
> of the switching circuits will save you more money in the long run
> & those electronics will deliver the cleanest power to other electronics.
> Make sure your case has a big and quite fan to draw air across the HD :
> most new cases do.  Check the dB, esp if you want a quiet rig near you.

Thanks for the very useful advice.  I esp note the above.

My present machine has a  4,2 GHz  CPU, which hasn't caused problems,
even when it's been running at full tilt for  2 h 20 m  compiling LO.
As I've said before, my impression is that electronics need stability
& my box sits in the same corner at the same temperature + humidity.

Everything is protected -- is it ? -- by a good power bar.
Occasionally, there is a flash/dim of my lights in the early morning,
which I assume is a changeover of equipment at a substation out there.
Otherwise, our publicly-owned electricity service is very reliable,
as it has to be in a big city with pretensions (smile) to World status.

I have bought

  150917 Case : Deepcool Terraract BF  :   39.99
  150917 PSU : Thermaltake TR2 500 W   :   59.99

Both items are in good supply at the store, ie people are buying them.
The PSU has a  5 yr  warranty.  The fan is intelligent, like the CPU's,
so it sb quiet most of the time, but do its job when working hard.
The case has a lot of mesh around the sides, which should help airflow.

I'm not an electrical expert, but my Estonian grandfather was an engineer
who helped the Germans with the electrics in their submarines before WWI.
Too bad re the Lusitania ... (wry smile)

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Michael Orlitzky
On 09/17/2015 05:13 PM, Alan McKinnon wrote:
> 
> Slightly OT, but the general idea of package management isn't hard.
> 
> Put the stuff you should have in a list, then compare what you should
> have to what you do have. Go get and install what you don't have, then
> make a record that you did it.
> 
> Everything needed to get these basics right has been known for 40 years
> or more - fellows like Wirth and Dijkstra figured it all out way back when.
> 
> Sure, there's always modern stumbling blocks (like why we have subslots)
> but that's extra to the essential basics.
> 
> So why oh why do the latest generation of wunderkinds (not) always get
> it so completely WRONG? 3 runs to fetch all the deps? I suppose wget and
> curl don't actually do what I think they do then
> 

Heavy on bad words and light on solutions, but it made me feel better:

http://michael.orlitzky.com/articles/motherfuckers_need_package_management.php




Re: [gentoo-user] portage can not find local ebuild

2015-09-17 Thread wraeth
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 18/09/15 13:15, the...@sys-concept.com wrote:
> My settings:
> 
> make.conf. ... PORTDRI_OVERLAY="/usr/local/portage"

Did you mean PORTDIR_OVERLAY, or is there a typo in your make.conf?

- -- 
wraeth 
GnuPG Key: B2D9F759
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iF4EAREIAAYFAlX7hUMACgkQXcRKerLZ91mT+QD/XGw9yC2WZOLS2NiJyb/PlbKA
StDpSbNaO+pCnoDc1zoA/j5cTEzk1epQ9qic6oa2OkpNJRhBhOBo+nSbU/CCF31u
=EY2J
-END PGP SIGNATURE-



Re: [gentoo-user] portage can not find local ebuild

2015-09-17 Thread thelma


Thelma

On 09/17/2015 09:30 PM, wraeth wrote:
> On 18/09/15 13:15, the...@sys-concept.com wrote:
>> My settings:
> 
>> make.conf. ... PORTDRI_OVERLAY="/usr/local/portage"
> 
> Did you mean PORTDIR_OVERLAY, or is there a typo in your make.conf?

Hypo :-/ thanks.

Thelma



[gentoo-user] portage can not find local ebuild

2015-09-17 Thread thelma
I'm trying to emerge one of my local ebuild and portage can not find it.
What am I missing?

emerge -avq nxclient

emerge: there are no ebuilds to satisfy "nxclient".

My settings:

make.conf.
...
PORTDRI_OVERLAY="/usr/local/portage"

cat /etc/portage/repos.conf/gentoo.conf
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://192.168.139.7/gentoo-portage

ll /usr/local/portage/net-misc/
total 16
drwxr-xr-x 3 portage portage 4096 May 22 13:05 nx
drwxr-xr-x 2 rootroot4096 Sep 17 20:10 nxclient
drwxr-xr-x 3 portage portage 4096 Oct  3  2014 nxserver-freeedition
drwxr-xr-x 3 portage portage 4096 May 22 13:05 nxserver-freenx

ll /usr/local/portage/net-misc/nxclient/
total 8
-rw-r--r-- 1 root root  774 Sep 17 20:10 Manifest
-rw-r--r-- 1 root root 1989 Sep 17 20:08 nxclient-3.5.0.7.ebuild

-- 
Thelma



Re: [gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Alec Ten Harmsel
On Thu, Sep 17, 2015 at 11:13:10PM +0200, Alan McKinnon wrote:
> On 17/09/2015 22:53, Alec Ten Harmsel wrote:
> > Unfortunately, the right way with nodejs/ruby web stuff is to use the
> > tooling specific to the language. If this[1] is what you're trying to
> > deploy, I feel sorry.
> 
> Yes, that's the one

Yay, perl, perl6, and JS. All at the same time.

> > 
> > If I was serious about deploying this, I would:
> > 
> > 1. Fork the repo and add a remote on my own server
> > 2. Add your custom configuration
> > 3. Write a small shell script that
> >   1. Runs `git pull` from your own infrastructure
> >   2. Installs perl/node deps locally
> >   3. Runs the gulp build
> >   4. Runs plackup
> > 4. Add an init script that runs that start script
> 
> I followed that mostly except for forking the repo and writing a small
> shell script - I much prefer proper ebuilds to hacky scripts. Even
> though I'm a Linux sysadmin I hate ad-hoc shell scripts with a passion

I am the same way; I do not like shell scripts. Anything longer than 15
lines or so is written in Ruby, other than my firewall setup script.

I'm not proud of myself for suggesting what I did; just trying to
minimize your pain. Another option could be something along the lines
of:

1. ebuild installs files to `/var/musicbrainz` or wherever
2. Add a small shell script to `/var/musicbrainz` or wherever that:
  1. Installs perl/node deps locally
  2. Runs the gulp build
  3. Runs plackup
3. Add an init script that runs that start script

I guess, since you're not developing musicbrainz thingy, that the git
repo was a bit of overkill.

> > This sucks, but it seems to be the way a lot of web stuff is deployed
> > these days.

All these dynamic languages suffer from the fun problem that developers
that don't write enough tests have essentially no guarantee that their
code actually parses. I can't count how many times I've run Ruby,
Python, or Bash scripts only to have 'variable not found' or type
errors; all of the things that compilers do really well[1].

One of the things that results from this (IMO) is that they bundle
deps/enforce strict versions on stuff because they have to just to run
stuff. For example, a while ago www-apps/jekyll was broken because a gem
it depended on happened to be a newer version and changed the API enough
that jekyll broke. To be fair to the Gentoo developers, jekyll is
~amd64, so I didn't really care.

Alec

[1] For example, below are two *valid* files; one Python, one Ruby. Both
would obviously fail to compile if it was transposed to C/C++/Java, for
good reason.

#!/usr/bin/env ruby
if false
  puts hey
else
  puts 'hey'
end


#!/usr/bin/env python
if False:
print(hey)
else:
print('hey')



Re: [gentoo-user] portage can not find local ebuild

2015-09-17 Thread thelma
On 09/17/2015 09:41 PM, the...@sys-concept.com wrote:
> 
> 
> Thelma
> 
> On 09/17/2015 09:30 PM, wraeth wrote:
>> On 18/09/15 13:15, the...@sys-concept.com wrote:
>>> My settings:
>>
>>> make.conf. ... PORTDRI_OVERLAY="/usr/local/portage"
>>
>> Did you mean PORTDIR_OVERLAY, or is there a typo in your make.conf?
> 
> Hypo :-/ thanks.
That suppose to be: Typo,
I have to buy bigger monitor.

Thelma




Re: [gentoo-user] portage can not find local ebuild

2015-09-17 Thread Andrew Savchenko
Hi,

On Thu, 17 Sep 2015 21:15:38 -0600 the...@sys-concept.com wrote:
> I'm trying to emerge one of my local ebuild and portage can not find it.
> What am I missing?
> 
> emerge -avq nxclient
> 
> emerge: there are no ebuilds to satisfy "nxclient".
> 
> My settings:
> 
> make.conf.
> ...
> PORTDRI_OVERLAY="/usr/local/portage"

1. PORTDIR_OVERLAY
2. It is no longer used, overlays should be declared at repos.conf
these days.
 
> cat /etc/portage/repos.conf/gentoo.conf
> [DEFAULT]
> main-repo = gentoo
> 
> [gentoo]
> location = /usr/portage
> sync-type = rsync
> sync-uri = rsync://192.168.139.7/gentoo-portage

You are missing local overlay description. Add to gentoo.conf
something like this:

[local]
priority = 100
location = /usr/local/portage

Best regards,
Andrew Savchenko


pgpa7G4JRbOCP.pgp
Description: PGP signature


Re: [gentoo-user] Re: Can't paste from selection in gtk-3 apps

2015-09-17 Thread J. Roeleveld
On Thu, September 17, 2015 16:33, Grant Edwards wrote:
> On 2015-09-17, Grant Edwards  wrote:
>> On 2015-09-17, J. Roeleveld  wrote:
>>
> I use 2 screens extensively and never experienced any issues like you
> describe.

 And you can select/paste from one screen to another where the source
 is a gtk-3 app?
>>>
>>> Not sure, need to test with a gtk-3 app.
>>>
>>> I run KDE myself.
>>
 I should clarify that I mean "screen" in the strict X11 usage.  Using
 Xinerama or the like to spread a single desktop across multiple
 monitors is still a single screen setup.  I'm trying to select text
 on DISPLAY=:0.0 and paste it on DISPLAY=:0.1
>>>
>>> Not using my desktop atm.
>>> What does Xorg do by default when it detects multiple screens?
>>
>> Not sure -- I'll have to give it a try. IIRC, it just uses the first
>> one.
>
> At least on my machine, if I start up X11 without a configuration file
> it only uses one of my three monitors.  That behavior may depend on
> which boards are installed and which board/driver is found first.

On my desktop:

$ cat /etc/X11/xorg.conf
Section "Device"
Identifier  "Card0"
Driver  "nvidia"
BusID   "PCI:2:0:0"
EndSection

(Without this, X doesn't start, complaining it can't find VESA)

echo $DISPLAY returns the same on both desktops.

Please note: This desktop was installed years ago and simply kept
up-to-date for the most part. But it does have the "xinerama" USE-flag set
globally.

I remember reading something about it, but not sure if this is the "new"
or "old" way of doing it. I need to check how my laptop handles it later
today/this weekend.

--
Joost