Re: KDE peculiarities and questions

2007-02-11 Thread Ben Breslauer

Ken Heard wrote:

1.  On the P3 desktop only, the panel displays the taskbar three times.
Once is surely enough.  I tried to fix it by purging KDE and
reinstalling it, to no avail.  Any ideas on what I can do to remove this
redundancy?



Right-click on the panel, move your mouse over "Remove from Panel", then 
over "Applet".  You'll probably see 3 instances of an applet named 
"Taskbar", in which case you should remove two of them.


--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Patch for Daylight Savings Time (DST)

2007-01-30 Thread Ben Breslauer

Oleg Verych wrote:

30-01-2007, Ron Johnson:

On 01/30/07 13:58, William Chipman wrote:

Has there been a patch to adjust the start / end date changes for daylight
savings time in the US?

Which branch are you running?


I'm sure, but that seem to be an e-mail with some kind of virus.



Assuming you're talking about the winmail.dat file that was attached, 
that's a file that Microsoft Outlook attaches to emails.  It adds some 
general metadata to the email when another Outlook client receives it. 
It, in and of itself, is not a virus.


--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OFF-TOPIC] Mailing List Netiquette

2007-01-10 Thread Ben Breslauer



Justin Gallardo wrote:

Hey All,
I am preparing a presentation to a group of students on mailing list 
netiquette(as you may have guessed by the subject), and thought that 
maybe I could use the busiest mailing list I followed as a good source 
of information.

...
Also, if you can think of any other good points to bring up
during this talk, I would love to hear them. The purpose of the talk is 
to help create better open source community members for the future. So 
any help now could possibly save you some heartache later :-).


In addition, not replying to spam that goes to the list is generally a 
good thing, for both the reasons that it tends to add nothing to a 
discussion, and quoting spam in a semi-legit message does bad things to 
spam filters.


--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: iTunes & Linux (Debian)

2006-12-26 Thread Ben Breslauer

Baz wrote:
So, it appears the only way to play music purchased from Apple (mp4 
audio files) on Linux is to burn a CD, then rip them - or, use CrossOver 
Office.  Yes?


I haven't purchased any music from Apple, but you should be able to play 
mp4 files with MPlayer.  If Apple uses DRM, which I'm pretty sure they 
do, you may need to also use a non-free codec or similar decrypting 
software to make it playable outside of iTunes.


--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Bash script question

2006-12-07 Thread Ben Breslauer

Nate Bargmann wrote:
I have a directory of files that are created daily using 
filename-`date +%Y%m%d`.tar.gz so I have a directory with files whose

names advance from filename-20061201.tar.gz to filename-20061202.tar.gz
to filename-20061203.tar.gz and so on.  Based on the date in the
filename, I would like to delete any than are X days older than today's
date.  So, I'm not interested in the actual created/modified date, just
the numeric string in the name.

Despite working in Bash for the past ten years or so, my shell
scripting skills are poor.  Logically, this seems like a simple test of
whether the name is older than the current day - X, but I'm having
trouble putting this into a script.


Here's a function, with an example invocation, that I'm pretty sure does 
what you want, assuming the file filename-20061203.tar.gz exists:


#!/bin/bash

# give $1=filename $2=days_old
function remove_if_too_old
{
  TODAY=`date +%Y%m%d`
  if [[ `echo "$1" | cut -f 2 -d "-" | cut -f 1 -d "."` < `expr $TODAY 
- $2` ]]

  then
rm $1
  fi
}

remove_if_too_old filename-20061203.tar.gz 2

--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: mouse freaks out

2006-12-06 Thread Ben Breslauer

Jason Dunsmore wrote:

My Logitech usb mouse (model M-BT96a) has a tendancy to freak out a
couple of times per hour.  When this happens, the mouse cursor
suddenly goes to one of the screen corners.  When I try to reorient
myself by moving the mouse to see where it went, the mouse moves
rapidly all over the screen.  Normality is restored about 3 seconds
after this happens.  I've tried three different Logitech mice, and
they all have this problem.  I'm using Enlightenment with Debian Etch
and kernel 2.6.16.13.  Any idea what the problem is?


I've had this problem with a Microsoft mouse.  I attribute it to the 
surface the laser is reflecting on (wood with dark lines going through 
it).  Surfaces that have repeatable patterns tend to confuse an optical 
mouse, and will sometimes result in the mouse moving rapidly across the 
screen.  Once you move the mouse a bit more, it will stop being confused 
and return to normal.


So, I guess my point is: If you're using your mouse on a surface that is 
not monochrome, try putting a piece of blank paper under the mouse and 
see if the problem still happens.


--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Wildcard for hidden files

2006-10-21 Thread Ben Breslauer

Chris wrote:

Hello,

How can I list all hidden files or directories with ls?

ls .* 

does not give the desired result.  Id like to archive all the hidden files in 
my home folder.


Thanks,

Chris


ls -a | grep ^[.]

This will, however, still give you the . and .. directories.

--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: ls sort order again

2006-10-16 Thread Ben Breslauer

T wrote:

Hi

I am using Debian testing, I read that the ls is able to sort
alphabetically, but mixes uppercase and lowercase together i.e. 'Pearl'
comes before 'pearl' but after 'otter'.

otter
Pearl
pearl

I want that behavior. How can I do that, instead of the traditional order?


I'm using testing, and it's doing this for me by default.

--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: SQL insert dupe prevention problem

2006-09-23 Thread Ben Breslauer

Dirk wrote:

I have a SQL problem

INSERT INTO table (a, b, c, d, e, f)
VALUES (
"72fa545b9cc60c3b0af851c155128a9d", "a", "b", "c", 1158935640, "f"
)
IF NOT
EXISTS (
SELECT *
FROM table
WHERE (
table.a = "72fa545b9cc60c3b0af851c155128a9d"
)
) ;



what I'm doing wrong? I want to check table.a to prevent inserting
dupes...  it says...

#1064 - You have an error in your SQL syntax.  Check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'IF NOT EXISTS (SELECT * FROM rsstool_table WHERE (rsstool_table


THANKS!!!

Dirk




You really want to use a primary key or unique constraint on table.a in 
order to prevent duplicates from being entered.  The documentation for 
your database should tell you how to set one up.


--Ben


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Wierd script treatment of asterisk in a line

2006-09-02 Thread Ben Breslauer

Quoting the echo should do it:

--script.sh---
!/bin/bash

while read LINE; do
 echo "$LINE"
done
--

--Ben

José Alburquerque wrote:

Hello list!  I've got a simple shell question that I can't figure out.
I wrote a simple 3 line bash script designed to read from stdin and
output the lines to stdout that looks like the following:

--script.sh
#!/bin/bash

while read LINE; do
 echo $LINE
done
--

I also have a single line text file ending with an asterisk (*) that
looks like this:

-file.txt
A Line in a file with spaces and ending with an asterisk *
-


when I redirect the file to the script in any directory the script
outputs the line, but replaces the asterisk with the files in the
current directory like this:

[EMAIL PROTECTED]:~/Desktop/test$ ./script.sh < file.txt
A Line in a file with spaces and ending with an asterisk file.txt script.sh

It even happens if I type the line in without redirection:

[EMAIL PROTECTED]:~/Desktop/test$ ./script.sh
A Line ending with an asterisk *
A Line ending with an asterisk file.txt script.sh

Would someone know how I can make the script treat the asterisk as a
character belonging to the line and not a "match" for files in the
current directory?  Really appreciate it.  Thanks.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]