Re: [gentoo-user] to nest commands

2013-11-26 Thread Hinnerk van Bruinehsen
On Mon, Nov 25, 2013 at 11:45:39PM -0800, edwardu...@live.com wrote:
 On Tue, 26 Nov 2013 01:16:45 +0200
 Alan McKinnon alan.mckin...@gmail.com wrote:
 
  You don't do it that way. I understand what you want to do, but your
  description makes no sense.
  
  How you do it is by running two commands on one line, one after the other.
  
  To copy a file myfile.txt to /tmp and also change it's permissions,
  use the ; separator:
  
  cp myfile.txt /tmp ; chmod 644 /tmp/myfile.txt
  
  That runs the first command (cp) and then blindly runs the second one.
  
  
  
  
  Sometimes you want to run the second command only if the first one
  succeeds (there's not much point in chmod'ing a file that didn't copy
  properly.  does this:
  
  cp myfile.txt /tmp  chmod 644 /tmp/myfile.txt
  
   is boolean logic and a very common programming trick. I won't bore
  you with details - it gets complex and we'd have to deal with brash
  crazies like why true and false is the wrong way round the the rest of
  the world, but just know it this way:
  
  the second command (chmod) will only run if the first (cp) succeeded. If
  it failed, the chmod will not be be tried.
  
  Note that  is definitely not the same thing as just one  - that
  is something completely different. Bash is full of such stuff, it's all
  done deliberately to mess with your head :-)
  
 Thanks for the prompt reply and free lesson, I appreciate it:-)
 Yes...this is exactly what I was looking for. 

There are some other options of nesting as well. You can use backticks ` or
$(...) to run a command inside another. An example would be emerge `qlist -CI
x11-drivers`  (or the equivalent emerge $(qlist -CI x11-drivers) ) . This would
run qlist -CI x11-drivers (lists installed packages of the category
x11-drivers) and use this output for emerge (which will effectively result in
reinstalling every package from the x11-drivers category).

WKR
Hinnerk


signature.asc
Description: Digital signature


Re: [gentoo-user] Terminals not closing after exit anymore

2013-11-26 Thread Marc Stürmer

Zitat von Peter Weilbacher newss...@weilbacher.org:

Don't have Mate, but I can otherwise confirm this behavior: xfce  
terminal works, gnome-terminal does weird things.


One more thing that happens to me is that apparently gnome-terminal  
does not notify console apps of new window size. For me this happens  
to Alpine. (The only reason why I didn't simply switch to xfce  
terminal is that there I cannot switch off the scrollbar with  
parameters.)


Well I've found one possibility for that strange behaviour could be  
the proprietary Nvidia driver. There's already some bug open in the  
Gentoo Bugtracker.


Downgraded from 331 to 319, but it did not really change at all, so  
still diggin'!





Re: [gentoo-user] Terminals not closing after exit anymore

2013-11-26 Thread Dale
Marc Stürmer wrote:
 Zitat von Peter Weilbacher newss...@weilbacher.org:

 Don't have Mate, but I can otherwise confirm this behavior: xfce
 terminal works, gnome-terminal does weird things.

 One more thing that happens to me is that apparently gnome-terminal
 does not notify console apps of new window size. For me this happens
 to Alpine. (The only reason why I didn't simply switch to xfce
 terminal is that there I cannot switch off the scrollbar with
 parameters.)

 Well I've found one possibility for that strange behaviour could be
 the proprietary Nvidia driver. There's already some bug open in the
 Gentoo Bugtracker.

 Downgraded from 331 to 319, but it did not really change at all, so
 still diggin'!





I have found this one to be the most stable driver. 

x11-drivers/nvidia-drivers-304.116 

You may want to give it a shot. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Terminals not closing after exit anymore

2013-11-26 Thread Marc Stürmer

Zitat von Dale rdalek1...@gmail.com:


I have found this one to be the most stable driver.

x11-drivers/nvidia-drivers-304.116


I am going to give it a shot when I am back home on my own computer.




Re: [gentoo-user] Terminals not closing after exit anymore

2013-11-26 Thread Dale
Marc Stürmer wrote:
 Zitat von Dale rdalek1...@gmail.com:

 I have found this one to be the most stable driver.

 x11-drivers/nvidia-drivers-304.116

 I am going to give it a shot when I am back home on my own computer.




These are the ones I have tried but they have issues. 

[-P-] [M ] x11-drivers/nvidia-drivers-310.51:0
[-P-] [M ] x11-drivers/nvidia-drivers-313.30:0
[-P-] [M ] x11-drivers/nvidia-drivers-319.49:0
[-P-] [M ] x11-drivers/nvidia-drivers-319.60:0
[-P-] [M ] x11-drivers/nvidia-drivers-325.15:0
[-P-] [M ] x11-drivers/nvidia-drivers-331.20:0

Each time I try a new one and it doesn't work, I mask it.  It's been a
while.  Since you found a bug report, maybe they will fix it soon. 
Maybe.  Oh, it seems to get worse with each new version too. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Re: Weird graphical glitches after world update

2013-11-26 Thread Dale
walt wrote:
 On 11/21/2013 01:38 PM, Dale wrote:
 Alan McKinnon wrote:
 On 21/11/2013 17:10, Mateusz Kowalczyk wrote:
 Greetings,

 I spent a chunk of yesterday updating world on my machines (2 file
 servers and 1 netbook) and with some effort, the updates went through. I
 had to go out today so I rebooted my netbook and I started noticing
 weird graphical glitches in certain applications, as if parts of the
 screen weren't updating, namely in urxvt and emacs. In urxvt, my shell
 prompt seems to not render the cursor and often keeps the letters I
 remove still on the prompt (only graphically, they aren't actually
 there). This is extremely annoying.

 It's also terrible in emacs: cursor sometimes doesn't get rendered and I
 get tons of artefacts from different buffers when I switch or from text
 I was editing. You can find an example image of such glitches in emacs
 at [1]. This is absolutely tragic for me as I spend majority of my time
 in emacs. I'd like to note that I'm running emacs in a graphical frame
 and not in a terminal.
 A quick note to say that you are not alone, I get this as well since
 about 6 weeks ago (a ~amd system). So it's not something you and just
 you managed to do, I got it as well.

 In my case it's as if the system's idea of what is on the screen is off
 by one row of pixels. I get a stray row of dots at the top of lines that
 correspond to the risers of glyphs on the previous line, and new
 underscores don't show up until I enter a newline.

 This is a mostly KDE system using konsole, so it's not the terminal
 emulator or editor that's the root cause.

 Some may recall I have posted about similar issues in the past.  Heck, I
 still do when I upgrade the drivers.  I'm stuck using a older driver but
 still run into the issue every once in a while. 

 The biggest giveaway for me is that my clock is stuck.  I have mine set
 to show seconds and it either stops or the time sort of jumps several
 seconds at a time. 

 It's weird but as Alan said, it is not just you.  You got plenty of
 company on this one. 
 One other possibility is that xorg updated something that broke some
 video drivers.  Maybe qlop -l xorg would give you a hint about when
 your video problem first appeared?





In my case, it is the video drivers.  On another thread, someone else
has ran into a similar issue.  Also, I am one of those that does a
emerge -e world when in doubt.  Sometimes that works.

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




[gentoo-user] Re: {OT} video monitoring

2013-11-26 Thread James
Grant emailgrant at gmail.com writes:


 I've been using motion along with USB cameras for a while.  I need to
 expand my monitoring capacity and I'm wondering if I should consider
 changing software or hardware.  motion seems fairly dead but is
 stable.  I'm reading conflicting info about the current status of
 zoneminder.  Is anyone using IP cams?


Hello Grant,

Some years ago, the slickest webserver plus zoneminder setup was this

http://www.gossamer-threads.com/lists/cherokee/users/2450

cherokee + zoneminder + php


Another solution is to get some pci cards that take a coax input
from a coax cable (RG/59 or RG6 for distance) directly into the PC.
There you can convert the streaming video into h.264 and move it
around the ethernet. Encoder (coax to h.264) pci cards use to abound
such as Qsee, Avermedia etc etc.

You can also get embedded boards from TI that include the DaVinci
package which take in coax and convert it to H.264.

I use to get the best information about the  key chips reading the 
linux
kernel driver documentation found in the old drivers. Many of 
the drivers (most?) have been unified and the in-driver 
documents therein
will be mostly useless, so old 2.4 and 2.6 drivers for specific
chipsets is the best source, if you really want to dig into
video over IP.   Most currently manufactured IP cams go to great links
to make their hardware a black box on what they are doing
to output the H.264. [2]

Furthermore, you have to delve in the container versus the packets
when you find incompatibilities.   Many of the advanced ethernet
sniffing software packages have h.264 filters build in [1]. It's all
H.264, just a lot of software gymnastics to frustrate folks from
rolling their own video solution.

If I were to get serious about video/IP, I'd go with 
VP8 (google's standard)
and find a codec (opensource) that could be put on a micro
processor board; pandaboard? [3].  Googling around and I'm 
sure you can find
something. [4]


usb video sucks, once you try to scale up for any sort of 
serious video
surveillance system; imho.

hth,
James

[1] http://www.wireshark.org/docs/dfref/h/h264.html

[2] http://en.wikipedia.org/wiki/VP8

[3]
https://wiki.linaro.org/WorkingGroups/Middleware/
Multimedia/Specs/1105/OptimizeVp8Decoding

[4] http://www.webmproject.org/tools/






Re: [gentoo-user] to nest commands

2013-11-26 Thread Randy Barlow
On Tue, 26 Nov 2013 11:52:10 +0100
Hinnerk van Bruinehsen h.v.bruineh...@fu-berlin.de wrote:
 There are some other options of nesting as well. You can use
 backticks ` or $(...) to run a command inside another. An example
 would be emerge `qlist -CI x11-drivers`  (or the equivalent emerge
 $(qlist -CI x11-drivers) ) . This would run qlist -CI
 x11-drivers (lists installed packages of the category x11-drivers)
 and use this output for emerge (which will effectively result in
 reinstalling every package from the x11-drivers category).

As I understand it, the $(...) syntax is the preferred way of nesting,
as opposed to backticks. I think this may be due to backticks requiring
some special escaping that the $(...) syntax does not require. I
attempted a brief search for supporting information, but didn't find a
definitive source to back up my claims :)


signature.asc
Description: PGP signature


Re: [gentoo-user] to nest commands

2013-11-26 Thread Andrew Savchenko
On Tue, 26 Nov 2013 09:58:24 -0500 Randy Barlow wrote:
 On Tue, 26 Nov 2013 11:52:10 +0100
 Hinnerk van Bruinehsen h.v.bruineh...@fu-berlin.de wrote:
  There are some other options of nesting as well. You can use
  backticks ` or $(...) to run a command inside another. An example
  would be emerge `qlist -CI x11-drivers`  (or the equivalent emerge
  $(qlist -CI x11-drivers) ) . This would run qlist -CI
  x11-drivers (lists installed packages of the category x11-drivers)
  and use this output for emerge (which will effectively result in
  reinstalling every package from the x11-drivers category).
 
 As I understand it, the $(...) syntax is the preferred way of nesting,
 as opposed to backticks. I think this may be due to backticks requiring
 some special escaping that the $(...) syntax does not require. I
 attempted a brief search for supporting information, but didn't find a
 definitive source to back up my claims :)

The reason for $(...) being preferred is simple: you can nest
$($($(...))), but you can't nest `...`. Deep nesting is quite useful
indeed.

Best regards,
Andrew Savchenko


pgpv4whI_T8sT.pgp
Description: PGP signature


Re: [gentoo-user] to nest commands

2013-11-26 Thread Neil Bothwick
On Tue, 26 Nov 2013 19:12:40 +0400, Andrew Savchenko wrote:

  As I understand it, the $(...) syntax is the preferred way of nesting,
  as opposed to backticks. I think this may be due to backticks
  requiring some special escaping that the $(...) syntax does not
  require. I attempted a brief search for supporting information, but
  didn't find a definitive source to back up my claims :)  
 
 The reason for $(...) being preferred is simple: you can nest
 $($($(...))), but you can't nest `...`. Deep nesting is quite useful
 indeed.

The other reason is that $(...) is so much more readable.

You can nest backticks but the escaping used is such a mess that even
Perl programmers would hesitate to use it.


-- 
Neil Bothwick

Guillotine operator wanted. Chance to get ahead.


signature.asc
Description: PGP signature


Re: [gentoo-user] Terminals not closing after exit anymore

2013-11-26 Thread Peter Weilbacher

On 2013-11-26 13:20, Marc Stürmer wrote:

Zitat von Peter Weilbacher newss...@weilbacher.org:

One more thing that happens to me is that apparently gnome-terminal  
does not notify console apps of new window size. For me this happens  
to Alpine. (The only reason why I didn't simply switch to xfce  
terminal is that there I cannot switch off the scrollbar with  
parameters.)


Well I've found one possibility for that strange behaviour could be
the proprietary Nvidia driver. There's already some bug open in the
Gentoo Bugtracker.

Downgraded from 331 to 319, but it did not really change at all, so
still diggin'!


Yes, my Alpine-related problem was solved by downgrading the NVidia 
driver from 331.20 to 331.17. The problem with the terminals that don't 
want to close on Ctrl-D stays the same. (I also tried 331.13 but that 
didn't help. And the problem started to appear after Oct 7th for me 
which is when I installed 331.13.)


   Peter.



[gentoo-user] Re: to nest commands

2013-11-26 Thread Grant Edwards
On 2013-11-26, Randy Barlow ra...@electronsweatshop.com wrote:
 On Tue, 26 Nov 2013 11:52:10 +0100
 Hinnerk van Bruinehsen h.v.bruineh...@fu-berlin.de wrote:
 There are some other options of nesting as well. You can use
 backticks ` or $(...) to run a command inside another. An example
 would be emerge `qlist -CI x11-drivers`  (or the equivalent emerge
 $(qlist -CI x11-drivers) ) . This would run qlist -CI
 x11-drivers (lists installed packages of the category x11-drivers)
 and use this output for emerge (which will effectively result in
 reinstalling every package from the x11-drivers category).

 As I understand it, the $(...) syntax is the preferred way of nesting,
 as opposed to backticks. I think this may be due to backticks requiring
 some special escaping that the $(...) syntax does not require.

AFAIK, it's entirely for readability.  In some fonts, it's almost
impossible to tell back tics from forward tics.  And at some eyeball
ages it's possible to completely miss both when reading quickly...

-- 
Grant Edwards   grant.b.edwardsYow! Let's all show human
  at   CONCERN for REVERAND MOON's
  gmail.comlegal difficulties!!




[gentoo-user] Re: to nest commands

2013-11-26 Thread James
edwardunix at live.com edwardunix at live.com writes:


 My Bash skills are not that advanced,

http://en.wikibooks.org/wiki/Bash_Shell_Scripting

Also,  loop nesting and recursion seem similar, but have nuances,
depending on the language and what you are trying to do.

If you learn about recursion it will help you understand one
of the golden keys to coding

http://en.wikibooks.org/wiki/Algorithm_Implementation/Sorting/Quicksort#Pseudocode



hth,
James




[gentoo-user] Newsbeuter - Cannot set element colors

2013-11-26 Thread Alessandro DE LAURENZIS
Really weird behavior; I'm just following the documentation:

just22@egeo:[~]$ cat ./.newsbeuter/config 
# Browser command
browser dwb %u

# Color scheme
color background white black

but when I try to launch the reader, it complains this way:

just22@egeo:[~]$ newsbeuter
XDG: configuration directory '/home/just22/.config/newsbeuter' not
accessible, using '/home/just22/.newsbeuter' instead.
Starting newsbeuter 2.6...
Loading configuration...Error while processing command
`color background white black'
(/home/just22/.newsbeuter/config line 5): too few parameters.

I tried also to add optional attributes:

just22@egeo:[~]$ cat ./.newsbeuter/config 
# Browser command
browser dwb %u

# Color scheme
color background white black bold

but no luck:

just22@egeo:[~]$ newsbeuter
XDG: configuration directory '/home/just22/.config/newsbeuter' not
accessible, using '/home/just22/.newsbeuter' instead.
Starting newsbeuter 2.6...
Loading configuration...Error while processing command
`color background white black bold'
(/home/just22/.newsbeuter/config line 5): `bold' is not a valid color

Any hints?

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: [gentoo-user] Re: to nest commands

2013-11-26 Thread edwardu...@live.com
On Tue, 26 Nov 2013 18:22:31 + (UTC)
James wirel...@tampabay.rr.com wrote:

 http://en.wikibooks.org/wiki/Bash_Shell_Scripting
 
 Also,  loop nesting and recursion seem similar, but have nuances,
 depending on the language and what you are trying to do.
 
 If you learn about recursion it will help you understand one
 of the golden keys to coding
 
 http://en.wikibooks.org/wiki/Algorithm_Implementation/Sorting/Quicksort#Pseudocode
 
 

   Thanks everybody for replying:-)
   I will try the different methods i was presented and will read the
   the material from from wikibooks alone with the other reading stuff
   I'm reading. 
   Thanks again.
--
edwardu...@live.com edwardu...@live.com



[gentoo-user] Do I require static nodes?

2013-11-26 Thread Chris Stankevitz
Hello,

Portage recently told me this:

 * You need to add kmod-static-nodes to the sysinit runlevel for
 * kernel modules to have required static nodes!
 * Run this command:
 * rc-update add kmod-static-nodes sysinit

Will you please help me parse this statement?

Interpretation A:
 * You need to add kmod-static-nodes to the sysinit runlevel

Interpretation B:
 * If your kernel modules require static nodes, then you need to add
 * kmod-static-nodes to the sysinit runlevel

Q1: Is it A or B (or C...)?

Q2: If it's B, then how do I determine whether or not my kernel
modules require static nodes?

Thank you,

Chris



[gentoo-user] Fusion-IO Experience?

2013-11-26 Thread Pandu Poluan
Hello list!

My company's considering of purchasing a couple of Fusion-IO [1]
devices, especially the ioDrive Octal model [2]. However, before we
actually commit to purchasing it, I'd like to gather some info first.

Have any of you had any experience with a Fusion-IO product? Not
necessarily the same model.

Do you have difficulties running Linux on top of it? (We don't
actually plan to *boot* from it; most likely the system will boot from
a RAID-1 array of SSDs).

Did anyone successfully run it with Gentoo?


Any inputs will be very appreciated.


[1] http://www.fusionio.com
[2] http://www.fusionio.com/products/iodrive-octal/

Rgds,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pandu.poluan.info/blog/
 • Linked-In : http://id.linkedin.com/in/pepoluan