Re: [gentoo-user] Converting time formats
William Kenworthy wrote: As well as your other replies, check out ccze rattus ~ # esearch ccze [ Results for search key : ccze ] [ Applications found : 1 ] * app-admin/ccze Latest version available: 0.2.1-r2 Latest version installed: 0.2.1-r2 Size of downloaded files: 136 kB Homepage:http://dev.gentoo.org/~joker/ccze/ccze.txt Description: A flexible and fast logfile colorizer License: GPL-2 Pass your log through it for nicely coloured text (words like "alarm" and "error" are bright red to stand out) as well as converting date epoch on the fly, leaving it in context. BillK This was a pfl log. It doesn't contain all that. I used to run it manually but found that cron was set up to run it automajically. Thing is, I wasn't sure how to tell if it was working so I checked the log file. Well, the time stamp was not for human consumption, sort of like those little silicone bags in electronic stuff. That lead me to reading the date man page which I was pretty sure was the key but just missed one important detail, the little @ sign. Funny the things we run into sometimes. I did add the command to my freq-commands file tho. "This is how you convert time from the log files to human time. Don't forget the @ sign. date -d @ " I went back to the man page, it sort of left the @ out on mine: -d, --date=STRING display time described by STRING, not `now' No mention of the @ sign there. It does say to read the info file but I very rarely get into those. I never have had any good luck with them. I felt like I was in Hotel California once before. O_O I couldn't get out. lol Dale :-) :-)
Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support
You might want to look into Mikrotik's offering. They are not only inexpensive, but they are extremely reliable. Many Internet cafés in my country use Mikrotik: they put the device in an outdoor box, and stuck it on the pole bearing the wireless antennae connecting the café to the ISP. The boxes have endured untold days of heat and cold, and nearly all of them survived to this day (barring some who got hit directly by lightning). The documentation is widely available on the 'net, the CLI is much more intuitive than Cisco IOS, and their features are on a par with the most expensive IOS variant. Rgds, On 2011-05-29, Tanstaafl wrote: > After seeing an older thread asking about a router, I figured I'd ask my > own question... > > I'm looking for a cheap but reliable router that has decent and SIMPLE > way to add VLANs (I'm not a CISCO guy and don't want to have to become > one)... > > Specifically, I want to have one VLAN that my wireless access points are > plugged into, to provide ONLY internet access, and then a separate VLAN > for my internal network... > > This is to protect my internal net from any potentially infected > machines that are on the wireless access points (I routinely work on > infected computers for friends/family, so, I need internet access, but > want them isolated from my internal network). > > Anyone? Will one of the FLOSS builds for the cheap Cable/DSL routers > support VLANs on the different built-in router ports (ie, Tomato, DD-WRT > or OpenWRT)? > > Looking forward to any suggestions/ideas... > > -- -- Pandu E Poluan - IT Optimizer My website: http://pandu.poluan.info/
Re: [gentoo-user] Converting time formats
On Sat, 2011-05-28 at 11:37 -0500, Dale wrote: > I asked this once before but I can't find it. I have a log file that > has time stamps that look like this: > > lastrun = 1306574899 > > What do I use to get the human time for that? I thought it was the date > command but I couldn't find it in the man page. I tried google but I > can't recall what that time stamp is called either so not sure what to > search for. > > Could someone enlighten me a little bit here? > > Thanks. > > Dale > > :-) :-) > As well as your other replies, check out ccze rattus ~ # esearch ccze [ Results for search key : ccze ] [ Applications found : 1 ] * app-admin/ccze Latest version available: 0.2.1-r2 Latest version installed: 0.2.1-r2 Size of downloaded files: 136 kB Homepage:http://dev.gentoo.org/~joker/ccze/ccze.txt Description: A flexible and fast logfile colorizer License: GPL-2 Pass your log through it for nicely coloured text (words like "alarm" and "error" are bright red to stand out) as well as converting date epoch on the fly, leaving it in context. BillK -- William Kenworthy Home in Perth!
Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support
On Sat, 2011-05-28 at 17:38 -0400, Todd Goodman wrote: > * Tanstaafl [110528 12:43]: > > After seeing an older thread asking about a router, I figured I'd ask my > > own question... > > > > I'm looking for a cheap but reliable router that has decent and SIMPLE > > way to add VLANs (I'm not a CISCO guy and don't want to have to become > > one)... > > > > Specifically, I want to have one VLAN that my wireless access points are > > plugged into, to provide ONLY internet access, and then a separate VLAN > > for my internal network... > > > > This is to protect my internal net from any potentially infected > > machines that are on the wireless access points (I routinely work on > > infected computers for friends/family, so, I need internet access, but > > want them isolated from my internal network). > > > > Anyone? Will one of the FLOSS builds for the cheap Cable/DSL routers > > support VLANs on the different built-in router ports (ie, Tomato, DD-WRT > > or OpenWRT)? > > > > Looking forward to any suggestions/ideas... > > Hi, I'm pretty sure OpenWRT supports VLANs. > > I started using it on a Buffalo WHR-G300N (I think, not at home to check > right now.) Cheap and I didn't expect much but it works great (far > better than any Linksys or trendnet products I've purchased and run > their firmware on.) > > I'd highly recommend it. > > Todd > DD-wrt also supporsts VLANS, however check if your hardware does as well. I had a linksys wrt-150N with a broadcom chip that cant do vlans. Gave it to my daughter and now I also have a WHR-G300N which should support vlans, but I have not bothered as I just got another ethernet card and stuck (bridged) the AP on that. Better performance, more secure and much easier all round. BillK
Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support
In linux.gentoo.user, Todd Goodman wrote: > * Tanstaafl [110528 12:43]: >> After seeing an older thread asking about a router, I figured I'd ask my >> own question... >> >> I'm looking for a cheap but reliable router that has decent and SIMPLE >> way to add VLANs (I'm not a CISCO guy and don't want to have to become >> one)... >> >> Specifically, I want to have one VLAN that my wireless access points are >> plugged into, to provide ONLY internet access, and then a separate VLAN >> for my internal network... >> >> This is to protect my internal net from any potentially infected >> machines that are on the wireless access points (I routinely work on >> infected computers for friends/family, so, I need internet access, but >> want them isolated from my internal network). >> >> Anyone? Will one of the FLOSS builds for the cheap Cable/DSL routers >> support VLANs on the different built-in router ports (ie, Tomato, DD-WRT >> or OpenWRT)? >> >> Looking forward to any suggestions/ideas... > > Hi, I'm pretty sure OpenWRT supports VLANs. > > I started using it on a Buffalo WHR-G300N (I think, not at home to check > right now.) Cheap and I didn't expect much but it works great (far > better than any Linksys or trendnet products I've purchased and run > their firmware on.) I'll second that. I run a Buffalo Nfiniti WZR-HP-G300NH with openwrt installed. It is VLAN capable and has Gigabyte ethernet and b/g/n wifi. It also has a USB socket for extra disk storage if needed (or any other peripheral you fancy). It just sits in the corner and does its job. It is also very cheap. -- Regards, Gregory.
Re: [gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support
* Tanstaafl [110528 12:43]: > After seeing an older thread asking about a router, I figured I'd ask my > own question... > > I'm looking for a cheap but reliable router that has decent and SIMPLE > way to add VLANs (I'm not a CISCO guy and don't want to have to become > one)... > > Specifically, I want to have one VLAN that my wireless access points are > plugged into, to provide ONLY internet access, and then a separate VLAN > for my internal network... > > This is to protect my internal net from any potentially infected > machines that are on the wireless access points (I routinely work on > infected computers for friends/family, so, I need internet access, but > want them isolated from my internal network). > > Anyone? Will one of the FLOSS builds for the cheap Cable/DSL routers > support VLANs on the different built-in router ports (ie, Tomato, DD-WRT > or OpenWRT)? > > Looking forward to any suggestions/ideas... Hi, I'm pretty sure OpenWRT supports VLANs. I started using it on a Buffalo WHR-G300N (I think, not at home to check right now.) Cheap and I didn't expect much but it works great (far better than any Linksys or trendnet products I've purchased and run their firmware on.) I'd highly recommend it. Todd
Re: [gentoo-user] Goodbye, Gentoo
Apparently, though unproven, at 18:38 on Saturday 28 May 2011, Daniel da Veiga did opine thusly: > On Thu, May 26, 2011 at 20:28, Kevin O'Gorman wrote: > > It looks like it's time to take Gentoo off of my main machine. I feel a > > little sad about it, or I'd just quietly go away. > > > > So, since I am familiar with Ubuntu from work, and have it on a couple of > > laptops, I'm installing from the Ubuntu 11.04 live disk (video is just > > fine). > > Good luck. > A friend just dropped Ubuntu cause they simply decided to use Unity, and > the dashboard is just (his words) weird. He was used to the Gnome look, > and they simply changed everthing with an upgrade. > > I stick with Gentoo, at least I know my next upgrade won't change my whole > interface... Ubuntu are simply doing what KDE already did - take a risk, go with something new, try to stay ahead of the curve. Unity works fine on my netbook with 600 vertical pixels. I'm not sure it would work well on my 1920x1200 notebook though. That's the risk one takes with disruptive technologies, you might annoy some of your users -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: Goodbye, Gentoo
Apparently, though unproven, at 15:50 on Saturday 28 May 2011, Kevin O'Gorman did opine thusly: > On Fri, May 27, 2011 at 5:59 PM, walt wrote: > > On 05/26/2011 04:28 PM, Kevin O'Gorman wrote: > > > Now, a couple of months into my retirement > > > > ... > > > > > in 2002 when I finished my PHD > > > > Retiring 9 years after finishing your education? > > Nice to know that somebody can do the math :o). > I got a late start. I was 52 (IIRR) when I started grad school and 59 when > I finished my PhD. That's excellent news. I've wanted to go back and get a PhD in math for ... well it feels like for ages. Now I can put off starting for 7 more years and still stay within the bounds of "what has already been done at least once" :-) -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] mutt: Tagging on the contents of mails
On Sat, May 28, 2011 at 05:00:02AM +0200, meino.cra...@gmx.de wrote: > Hi, > > is there any way to mark mails as tagged based on the contents > of the body of the mails? > > Thank you very much for any help in advance! > Best regards, > mcc Inspired by your question I ended up configuring offlineimap and mairix for use in mutt, it seems to be working pretty well. This site has some good stuff on setting up mairix: http://linsec.ca/Using_mutt_on_OS_X aimed at OS X users, but it's the same other than file paths. -- caveat utilitor ♫ ❤ ♫ ❤ ♫ ❤ ♫ ❤
Re: [gentoo-user] KDE4 localization
Maxim Vorontsov writes: > 27.05.2011, в 21:35, Alex Schuster написал(а): > > Maxim Vorontsov writes: > >> No, for me all works fine. > > > > Probably another problem that only I have. > > BTW, German language is of course set in systemsettings, and it's also > > set via Help -> Switch Application Language. > > > > It's no big deal, but I'm missing the German language in KMyMoney. > Maybe deleting config files in ~/.kde can help? It's .kde4 in Gentoo. No, the same happens when I try with a test user with clean .kde4 directory. > Dont forget backup it:-) I backup them up regularly. And I just had to restore some config files because all plasma was messed up AGAIN. Most plasmoids were missing, including the panel, and I hat lots of additional activities. Before this I had to log out because kwin was using 1.3G of memory. Maybe a side effect from /var running full? I had 2G of stuff in /var/tmp/kdecache-wonko/http/. Is this normal? I moved this directory into my $HOME directory and set a symlink so just using KDE will not again fill /var again. Wonko
Re: [gentoo-user] Converting time formats
Alex Schuster wrote: Dale asks: I asked this once before but I can't find it. I have a log file that has time stamps that look like this: lastrun = 1306574899 What do I use to get the human time for that? I thought it was the date command but I couldn't find it in the man page. I tried google but I can't recall what that time stamp is called either so not sure what to search for. It's seconds since 1970. You can convert them like this: date -d @1306574899 Wonko So it was the -d option. I thought that was it but I missed the @ sign. I added that to my list of common commands so I won't forget. Thanks much for both replies. Dale :-) :-)
Re: [gentoo-user] Converting time formats
Am 28.05.2011 18:37, schrieb Dale: > I asked this once before but I can't find it. I have a log file that > has time stamps that look like this: > > lastrun = 1306574899 > > What do I use to get the human time for that? I thought it was the date > command but I couldn't find it in the man page. I tried google but I > can't recall what that time stamp is called either so not sure what to > search for. > > Could someone enlighten me a little bit here? > > Thanks. > > Dale > > :-) :-) > date --date=@1306574899 looks sensible. I've found this on the info page: `info date` -> "Date input formats" -> "Seconds since the Epoch" Hope this helps, Florian Philipp signature.asc Description: OpenPGP digital signature
[gentoo-user] [OT - More Router Advice] Cheap Router with decent/reliable VLAN support
After seeing an older thread asking about a router, I figured I'd ask my own question... I'm looking for a cheap but reliable router that has decent and SIMPLE way to add VLANs (I'm not a CISCO guy and don't want to have to become one)... Specifically, I want to have one VLAN that my wireless access points are plugged into, to provide ONLY internet access, and then a separate VLAN for my internal network... This is to protect my internal net from any potentially infected machines that are on the wireless access points (I routinely work on infected computers for friends/family, so, I need internet access, but want them isolated from my internal network). Anyone? Will one of the FLOSS builds for the cheap Cable/DSL routers support VLANs on the different built-in router ports (ie, Tomato, DD-WRT or OpenWRT)? Looking forward to any suggestions/ideas...
Re: [gentoo-user] Converting time formats
Dale asks: > I asked this once before but I can't find it. I have a log file that > has time stamps that look like this: > > lastrun = 1306574899 > > What do I use to get the human time for that? I thought it was the date > command but I couldn't find it in the man page. I tried google but I > can't recall what that time stamp is called either so not sure what to > search for. It's seconds since 1970. You can convert them like this: date -d @1306574899 Wonko
[gentoo-user] Re: Converting time formats
On 05/28/2011 07:37 PM, Dale wrote: I asked this once before but I can't find it. I have a log file that has time stamps that look like this: lastrun = 1306574899 What do I use to get the human time for that? I thought it was the date command but I couldn't find it in the man page. I tried google but I can't recall what that time stamp is called either so not sure what to search for. Could someone enlighten me a little bit here? date -d @1306574899
Re: [gentoo-user] Goodbye, Gentoo
On Thu, May 26, 2011 at 20:28, Kevin O'Gorman wrote: > It looks like it's time to take Gentoo off of my main machine. I feel a > little sad about it, or I'd just quietly go away. > > So, since I am familiar with Ubuntu from work, and have it on a couple of > laptops, I'm installing from the Ubuntu 11.04 live disk (video is just > fine). > Good luck. A friend just dropped Ubuntu cause they simply decided to use Unity, and the dashboard is just (his words) weird. He was used to the Gnome look, and they simply changed everthing with an upgrade. I stick with Gentoo, at least I know my next upgrade won't change my whole interface... -- Daniel da Veiga
[gentoo-user] Converting time formats
I asked this once before but I can't find it. I have a log file that has time stamps that look like this: lastrun = 1306574899 What do I use to get the human time for that? I thought it was the date command but I couldn't find it in the man page. I tried google but I can't recall what that time stamp is called either so not sure what to search for. Could someone enlighten me a little bit here? Thanks. Dale :-) :-)
Re: [gentoo-user] Baselayout2/OpenRC migration question - dispatch-conf vs etc-update
Yes, absolutely. I use cfgupdate too. -- Bill Longman Sent from my Galaxy S
Re: [gentoo-user] Baselayout2/OpenRC migration question - dispatch-conf vs etc-update
Tanstaafl wrote: Hello, Ok, I'm about to do the deed, but was concerned about one thing... The migration guide only mentions using dispatch-conf after performing the update... I have only/always used etc-update for all the years I've been using gentoo, and would really, REALLY prefer not to use a new/unfamiliar tool during a procedure like this on a production server. I'm hoping that this was just a minor oversight, and that etc-update is fully supported as pr migration? I used etc-update for mine and it went well. I think that just shows the person writing the guide uses dispatch-conf. Dale :-) :-)
[gentoo-user] Baselayout2/OpenRC migration question - dispatch-conf vs etc-update
Hello, Ok, I'm about to do the deed, but was concerned about one thing... The migration guide only mentions using dispatch-conf after performing the update... I have only/always used etc-update for all the years I've been using gentoo, and would really, REALLY prefer not to use a new/unfamiliar tool during a procedure like this on a production server. I'm hoping that this was just a minor oversight, and that etc-update is fully supported as pr migration?
Re: [gentoo-user] Re: OT: What does the data stream to a sound card look like?
Am 28.05.2011 12:19, schrieb Nikos Chantziaras: > On 05/28/2011 12:50 PM, Alan Mackenzie wrote: >> Hi, Gentoo. >> >> It occurred to me the other day that I am clueless about how a sound >> card works. How do the data get into it? Does the sound card use an >> interrupt to ask for more data? > > The data is placed in RAM. The card reads it from there using a DMA > operation. You can read about it here: > > http://en.wikipedia.org/wiki/Direct_memory_access > > >> What form do the data take? > > It's raw data, and its form depends on what the card is expecting. What > the card is expecting is programmable by the card's driver. > Most likely it is some PCM format (pulse code modulation) not very different from WAV, CDDA, etc. (just without headers, of course). In the easiest case, the sound card then just feeds this into a digital-analog converter connected to the output (together with a analog-digital converter this is called an audio codec, for example AC'97). AC3 or DTS, the compressed formats found on DVD, can also be "passed through" the sound card to reach a home theater system over a digital output without being converted into an analog signal. > >> Say I feed an mp3 through the card. Does >> the Athlon do the decompression, or does the sound card do it? > > The MP3 is decoded by your CPU (by software like libmad, xine, > gstreamer, etc.) The decoded data is send to the driver, the driver > applies any needed conversions to it (according to what the card > expects), and then places it in RAM so the card can get it by means of DMA. > This can be observed in some cases when the system crashes during playback. Then sometimes the card just seems to loop over the last data packet placed in RAM. > >> Last of all, is there a command line program which can play a CD by >> feeding its data into the sound card? > > Today this works the same playing any other audio. The fact that audio > in this case comes from a CD doesn't matter. An application reads the > audio from the CD, sends it to the driver, and from there it gets to the > sound card. > The cdparanoia FAQ provides a lot of insight into the special problems of reading CD audio: http://www.xiph.org/paranoia/faq.html Regards, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: Goodbye, Gentoo
On Fri, May 27, 2011 at 5:59 PM, walt wrote: > On 05/26/2011 04:28 PM, Kevin O'Gorman wrote: > > > Now, a couple of months into my retirement > ... > > in 2002 when I finished my PHD > > Retiring 9 years after finishing your education? > Nice to know that somebody can do the math :o). I got a late start. I was 52 (IIRR) when I started grad school and 59 when I finished my PhD. WTF are the rest of us doing wrong? > > Drop by here occasionally to give us a progress report :) > -- Kevin O'Gorman, PhD
Re: [gentoo-user] mutt: Tagging on the contents of mails
* meino.cra...@gmx.de [110528 00:31]: > Dale [11-05-28 06:40]: > > meino.cra...@gmx.de wrote: > > > > > >: > > > > > >How can I accomplish tagging on base of the contents of the mail > > >with the mailreader mutt? > > > > > >Best regards, > > >mcc > > > > > > > > > > > > > Let's see if this helps: > > > > http://www.mutt.org/doc/manual/manual.html#toc2.3 > > > > Should be more applicable to your needs. ;-) I have never used mutt > > but have been known to use Google on occasion, with good results > > results if I am lucky. > > > > Dale > > > > :-) :-) > > > > Yes, Dale, I tried that before. "T tage mail matching a pattern" does > not what I seems to be: It matches only against the subject line. > This was the reason, why I asked here... > > Best regards, > mcc > Hi mcc, What are you using for a pattern? If I want to find pineapple anywhere in the message then I press 'T' and then '~B pineapple' There are lots of other '~' selectors. I use ~f quite often to find mail from a specific address. If you want space you need to escape them or enclose the whole pattern in quotes. Todd
[gentoo-user] Re: OT: What does the data stream to a sound card look like?
On 05/28/2011 12:50 PM, Alan Mackenzie wrote: Hi, Gentoo. It occurred to me the other day that I am clueless about how a sound card works. How do the data get into it? Does the sound card use an interrupt to ask for more data? The data is placed in RAM. The card reads it from there using a DMA operation. You can read about it here: http://en.wikipedia.org/wiki/Direct_memory_access What form do the data take? It's raw data, and its form depends on what the card is expecting. What the card is expecting is programmable by the card's driver. Say I feed an mp3 through the card. Does the Athlon do the decompression, or does the sound card do it? The MP3 is decoded by your CPU (by software like libmad, xine, gstreamer, etc.) The decoded data is send to the driver, the driver applies any needed conversions to it (according to what the card expects), and then places it in RAM so the card can get it by means of DMA. Last of all, is there a command line program which can play a CD by feeding its data into the sound card? Today this works the same playing any other audio. The fact that audio in this case comes from a CD doesn't matter. An application reads the audio from the CD, sends it to the driver, and from there it gets to the sound card.
[gentoo-user] OT: What does the data stream to a sound card look like?
Hi, Gentoo. It occurred to me the other day that I am clueless about how a sound card works. How do the data get into it? Does the sound card use an interrupt to ask for more data? What form do the data take? Say I feed an mp3 through the card. Does the Athlon do the decompression, or does the sound card do it? Last of all, is there a command line program which can play a CD by feeding its data into the sound card? Thanks for any and all enlightenment. -- Alan Mackenzie (Nuremberg, Germany).
Re: [gentoo-user] Goodbye, Gentoo
On Sat, May 28, 2011 at 15:06, Alan McKinnon wrote: > Apparently, though unproven, at 01:28 on Friday 27 May 2011, Kevin O'Gorman > did opine thusly: > >> It looks like it's time to take Gentoo off of my main machine. I feel a >> little sad about it, or I'd just quietly go away. > > I know how you feel :-) > > I've tried to get away from Gentoo several times, and failed. The amount of > work we all put into keeping things working is best described as "bat shit > crazy", but we do it anyway. Maybe it's like a drug thing, we all need a daily > fix or we need to prove we can still do it. > Shhh... don't let the Narc Task Force hear that!! That said, I agree... control-freaks like me feel... lost... when using binary-based distros. Rgds, -- Pandu E Poluan ~ IT Optimizer ~ Visit my Blog: http://pepoluan.posterous.com
Re: [gentoo-user] Goodbye, Gentoo
Apparently, though unproven, at 01:28 on Friday 27 May 2011, Kevin O'Gorman did opine thusly: > It looks like it's time to take Gentoo off of my main machine. I feel a > little sad about it, or I'd just quietly go away. I know how you feel :-) I've tried to get away from Gentoo several times, and failed. The amount of work we all put into keeping things working is best described as "bat shit crazy", but we do it anyway. Maybe it's like a drug thing, we all need a daily fix or we need to prove we can still do it. Kevin, you were around here for ages and you certainly pulled your fair share of the load. FLOSS thrives on people just like that. But if Gentoo doesn't suit your needs anymore, then so be it. Doesn't mean you won't be missed though. Best of luck for the future. [Like Dale, I think you'll be back. See para 2 :-) ] -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] kde-4 device detection
On Saturday 28 May 2011 00:43:54 Nils Larsson wrote: > lördagen den 28 maj 2011 00:54:42 skrev Neil Bothwick: > > That fails on the broken box with Failed to execute > > > program /usr/libexec/dbus-daemon-launch-helper: > Yepp, thats the error. I vaugly recall doing a emerge -1 dbus polkit > consolekit udisks etc. You may also need kdelibs remerged with the udev flag (if that was not set the first time). -- Regards, Mick signature.asc Description: This is a digitally signed message part.