Re: [Kind of OT] Why's this look like gibberish to me?

2008-05-06 Thread Chris Bannister
On Tue, May 06, 2008 at 01:31:28PM +0300, Dotan Cohen wrote:
> 2008/5/6 Chris Bannister <[EMAIL PROTECTED]>:
> >> א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
> >
> > I am running an UTF-8 locale and the above still like gibberish.
> >
> 
> Thank you, that is actually very important information for me. I know
> that you don't know Hebrew, but page
> http://gibberish.co.il/encoding.html has examples of different types
> of gibberish. If you could post your locale info and tell me which
> image on the page looks like the gibberish you receive, or better yet
> send a screenshot of what you see, then it may help me help others in
> the future. Thanks!
> 
> Dotan Cohen
> 
> http://what-is-what.com
> http://gibberish.co.il
> א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

Changing to "Uni3-TerminusBold16" (from terminus-console) alters the
above line to look like diamonds.

Since the linux console can only display alphabetic characters, and
Hebrew probably looks like a lot of "squiggles", then I very much doubt
it is possible to see any Hebrew in the Linux console.

So if you can only read Hebrew and X karks it, you are basically
stuffed?

-- 
Chris.
==
"One, with God, is always a majority, but many a martyr has been burned
   at the stake while the votes were being counted."  -- Thomas B. Reed


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



Re: more ash/dash/bash questions

2008-05-06 Thread Andrei Popescu
On Tue, May 06, 2008 at 09:29:44PM -0300, Otavio Exel wrote:
 
> some years ago I remember reading here that pointing /bin/sh to dash or
> ash would break a lot of important scripts in Debian;
 
$ ls -la `which sh`
lrwxrwxrwx 1 root root 4 2008-05-07 09:20 /bin/sh -> dash

I had it like this for some time, but at some upgrade it was changed 
back. Now I changed it again the Debian Way (tm), with

dpkg reconfigure dash

Using dash as /usr/sh is a release goal. If you use unstable or testing 
and you find scripts that break you should file bugs.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: Cannot remove Google maps sidebar

2008-05-06 Thread Cameron Hutchison
Raj Kiran Grandhi wrote:
>Cameron Hutchison wrote:
>> When I visit Google maps (http://maps.google.com/) using either Epiphany
>> or Iceweasel on my Debian sid system, I do not get the little triangle
>> button in the map sidebar that collapses it. This only happens for me
>> with Debian. On my systems with Ubuntu, google maps works as expected.
>> 
>> Does anyone know why this may be happening?

>It is a problem with the user agent setting. Google maps does not seem 
>to realize that iceweasel and firefox are practically the same. You can 
>work around this by visiting about:config in iceweasel and replacing 
>iceweasel with firefox for the general.useragent.extra.firefox string.

Thank you. I just added "Firefox/2.0.0.14" to the end of the string in
Epiphany and it is working now.

I guess Ubuntu must have changed Epiphany to add the Firefox useragent.

Thanks again.


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



AM2+ motherboard with support for ECC RAM for media player / server

2008-05-06 Thread Bob

Bob wrote:

Unbuffered / Registered obviously.
  


Bad form Bla Bla Bla but just to update the list, the abit A-S78H also 
supports Un-buffered ECC RAM, it doesn't have FireWire though

http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?pMODEL_NAME=A-S78H&fMTYPE=Socket%20AM2

This is an edited repost of something I sent to debian-user list last 
month with little result, so apologies to those who, like me, are 
subscribed to both.


I'm building a couple of Debian / MythTV based home media players /
servers and want reliability + low power consumption and noise, at the 
moment I'm leaning towards


CPU45W Dual Core Athlon64
MotherboardASUS M3A78-EMH HDMI
RAM4GB DDR2 ECC RAM as fast as I can find [0]
GPURadeon X800, X1900, X1950 [1] or on-board [2]
HDD (system)   Toshiba MK8037GSX or some other SATA laptop drive
HDD (Data) Western Digital 1TB Green Power
   or the Samsung ITB F1
and some DVB-C card

I'll probably go for ATI/AMD graphics because
A: I want to reward AMD for the recent opening up of their GPU specks
B: no other GPU matches the on-board one on the 780G chipset in terms of 
performance for power consumption, at a rough guess with the on-board 
GPU, a 45W CPU and a Laptop HardDrive or net boot I should be able to 
get the whole systems power to 30 or 40 W idle and maybe 70W under load, 
if I can do that then it can be passively cooled with no fans and 
potentially no moving parts at all.


The ASUS AM2+ boards are the only ones I can find with the traces / BIOS
support for ECC RAM but this one doesn't have FireWire on-board which
I'd like, can anyone suggest another mATX system with USB2, SATA2, ATA,
FireWire, Digital sound IO and ECC RAM support that would meet my
requirements? [3]

Does anyone know weather an Athlon X2 4850e (2500MHz) or Athlon X2
BE-2400 (2300MHz) (both 45W ) is going to be capable of decoding H.264
1080p in Blu-ray quality if the only assistance it gets is with scaling 
via XV which already works for GPUs <= R400 in the Radion diver [5] but 
I don't think does yet in RadeonHD? [6]


How about when we get IDCT (Inverse Discrete Cosine Transform) and MC
(Motion Compensation) video acceleration in RadeonHD?

Thanks for any help.


[0] ECC for prolonged uptime and reliability without having to go for 
full Opteron with Registered ECC RAM, the fastest ECC sticks I can find 
are DDR2-800, I can't find any 1066s and would like to for some headroom


[1] I haven't decided which GPU to go for, I'll have to do more research
into how well R500 and R600 GPU are handling video playback at the
moment, I have a feeling that for simplicity I may have to get an R400
GPU as an interim measure and then when RadeonHD matures a bit I'll
switch to either the On-Board or an R500 based discreet card [4]

[2] for the first time in my life I'm considering on-board graphics (the 
780G chipset).


[3] not necessarily AMD but preferably

[4] Because the R600 Unified Video Decoder (UVD) has integrated DRM
we'll probably never get access to it, in which case any
hardware-assisted video decoding the Linux world sees will be in the
same form as the R500 stuff, (pixel or vertex shader)  I'm unsure if 
this will mean that R500s will ultimately be "better" than R600s but I 
suspect they'll be the same, either way for Home Theater PCs I'd really 
like someone to start putting Mobility Radeon GPUs on PCIe cards.

http://www.phoronix.com/scan.php?page=article&item=955&num=1

[5] and maybe R500 too as Dave Arlied has been running the Radion driver 
on R500 hardware, but he has a powerful beard so it's probably not a 
solution I, with my puny stubble, want to rely on for my everyday video 
playback needs quite yet.


[6] up to 40Mbit/s, probably not is my feeling from reading round, I
think an X2 6000+ (3000 MHz) at 89W or 125W can *just* do it.

___
mythtv-users mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
  



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




Re: ircii question

2008-05-06 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Håkon Alstadheim wrote:
> s. keeling wrote:
>> Jude DaShiell <[EMAIL PROTECTED]>:
>>  
>>>  What package or packages need to be installed so when I connect to
>>> an irc  server I don't get the message Ident is disabled?
>>> 
>>
>> pidentd
>>
>>
>>   
> I would also think something like inetd or xinetd would be good. Identd
> should not need to run all the time, letting (x)inetd fire it up as
> needed would be better.
> 
> Hot tip: consider carefully how much you reveal about your machine
> through the ident service.
> 

Security through obscurity is now offically dead.

If someone wants access to your box, because of the absurd bandwidth
available to a cracker (botnet, anyone?), they'll just try every xploit
in their db, regardless of it's compatibility with your alleged system.

You might as well just have ident running, I forward 113 onto my fBSD
machine, so my whole network appears to be 6.2-current (yes i'm too lazy
to upgrade)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIUhnLeTfO4yBSAcRAr7OAKChiweZOROjgttqCBxPgknofVLUnwCeNu0y
mvn+hJTScF4jmG570RMpvqA=
=uTPD
-END PGP SIGNATURE-


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



Re: Installing a new kernel

2008-05-06 Thread Mumia W..

On 05/06/2008 06:41 AM, James Allsopp wrote:

[...]
but when I try:
apt-get install kernel-image-2.6.686
it always says most recent version installed. Does this mean that there 
isn't a post 2.6.21 kernel image available in Lenny or Sid?


I've also tried download the kernel source and doing it manually, but 
the downloaded 2.6.24 source doesn't contain the Ralink option in the 
device drivers/networking/wireless section. [...]


Download the source from http://www.kernel.org/ . I have 2.6.24 from 
kernel.org, and I see the ralink option.





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




Re: Can't resolve ftp.us.debian.org

2008-05-06 Thread NN_il_Confusionario
On Tue, May 06, 2008 at 12:46:23PM -0400, [EMAIL PROTECTED] wrote:
> On 5/6/08, NN_il_Confusionario <[EMAIL PROTECTED]> wrote:
> > > > strace -f -o /tmp/apt-get.log apt-get update
> http://wa9als.com/apt-get.log

In this strace I am not able to see any _obvious_ cause for your error
(such as strange preloaded libraries which can change the standard glibc
behavoiur).

However,

grep "/etc/\|/lib/\|/usr/\|/var/" apt-get.log 
shows many files which "apt-get update" uses.
Did you restore procedure change any of these files?

In the file, one sees _many_ "unfinished", "Bad file descriptor" and
"Resource temporarily unavailable" messages. I do not like them, but I
cannot see the cause of them. (The various "No such file or directory"
are not a problem in theis specific case)

The attempt for the resolution of names seems correct (and this was
expected, given the "getent hosts" results in your previous messages):

after the first lines "URI: http:" one sees

/etc/nsswitch.conf
(many accesses to libraries)
/etc/services
/var/run/nscd/socket (is nscd running? if it is, do you really need it?)
/etc/resolv.conf (with nameserver 64.105.189.27)
/etc/hosts

but then

URI Failure\nURI: http:

Is there any special firewall rule (on the host itself, or on some
router)? For example a rate limiting of udp port 53 o a block of tcp
port 53 ? These can cause strange and intermittent name resolution
problems.

Does it help defining in /etc/hosts the http hosts of your sources.list ?

> > Moreover, what happened when in sources.list you used the ip in place of
> > security.debian.org ?
> 
> Replacing the name with the IP mostly works - There was some problem
> with ftp.us.debian.org

replacing a name with the ip (which point to a apache webserver) should
work if and only if the default apache site for that ip correspond to
the replaced name.

> The URL for the apt-get.log is above - Nasty looking format but maybe
> it will speak to one of you!

I hope that my superficial and elementary analysis (see above) give you
an idea of what you can obtain by reading the strace logs (even if in
this specific case I was not able to obtain very much)

-- 
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.


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



Re: How do I change cursor/mouse pointer?

2008-05-06 Thread H.S.

Dennis G. Wicks wrote:

Manu Hack wrote the following on 05/06/2008 01:11 PM:

Sorry, I tried both suggestions and I don't see any changes of 
differences in anything.


Dennis



Could you list the steps and actions you tried?






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




Re: Editing C with...

2008-05-06 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Emilio Perea wrote:
> On Wed, May 07, 2008 at 10:46:33AM +1000, Rich Healey wrote:
>> for the record, it's VERY broken in Vista.
>>
>> running "edit" in cmd or powershell, gives,
>>
>> |===
>> |16 bit MS-DS Subsytem   |x|
>> |===
>> |
>> |Windows PowerShell
>> |NTVDM has encountered a system Error
>> |The Specified service does not exist
>> |Choose Close to Terminate the application
>> =
>> |Close | Ignore |
>> |==
> 
> Although I've never had to deal with Vista, previous versions of Windows
> had a "Resource Kit" available which includes vi.  With some Vista
> versions you can install SUA (Subsystem for UNIX Applications) which
> includes tcsh and ksh with vi (packages for vim, emacs and other editors
> are also available).  Even with straight Windows it makes no sense to
> use Microsoft's shells when JPSoft's are available. 
> 
> 
> 
i'm installed the subsystem for unix, always wondered what it actually
does..

Anyway, i use gvim for editing on windows (i use vista in a vm for work).

I'm going to have a look for this now (I saw that a package with unix in
it's name ages ago that seemed to imply it'd run ELF binaries, but it
didn't so i gave up).
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIISpmLeTfO4yBSAcRAng1AKDfJf8R7B6NmEj0+HQDM+5/2995DACgxbls
nRBPu3w5VFYhdpR9OEbIapU=
=PpdJ
-END PGP SIGNATURE-


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



Re: How do I change cursor/mouse pointer?

2008-05-06 Thread Dennis G. Wicks

Manu Hack wrote the following on 05/06/2008 01:11 PM:



On Tue, May 6, 2008 at 1:20 PM, Dennis G. Wicks <[EMAIL PROTECTED] 
> wrote:


Greetings;

Search as I may I can not find how to do this.

I am running gnome and a hi-res screen. My cursor and mouse pointer
are too small to see easily on the screen. How do I make them bigger?





Sorry, I tried both suggestions and I don't see any 
changes of differences in anything.


Dennis


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




Re: boot

2008-05-06 Thread Mike McCarty

Diego A. Podestá wrote:

Buenas
Antes que nada aclaro que soy novato.


Y antes que nada, siento que la lista es solo ingles.

[...]

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


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




Re: Debian Installer Hangs on MacBook

2008-05-06 Thread Kent West

Kent West wrote:
... I downloaded the 4.0.r3.13 netinstaller ISO and burned it to CD, 
and then booted from it.


... the boot process hangs fairly early in the process




Jerome BENOIT wrote:

you may want to visit the mactel site:

www.mactel-linux.org/wiki/Main_Page

and more specific ones:

wiki.debian.org/MacBook
www.odi.ch/prog/macbookpro/index.php
help.ubuntu.com/community/MacBook#head-e4a1f2cde8ad66bc01c97bfdadc85996ad80f688 



Thanks, Jerome. I had scoured some of those, and now looking at the ones 
I had not found already, it appears that this hardware is just too new 
to be supported by Debian specifically, and Linux in general (problems 
with wireless, video, audio, suspend). I know Ubuntu 
8.whateverwasjustreleasedlastweek mostly works (no audio, ndiswrapper 
required, sleep/suspend issues), so I may just have to live with that 
for a while. Bummer.


--
Kent West
Westing Peacefully - http://kentwest.blogspot.com



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




boot

2008-05-06 Thread Diego A . Podestá
Buenas
Antes que nada aclaro que soy novato. Acabo de instalar en una particion del 
disco, el sistema Debian. El problema que tengo es que al tener instalado el 
xp, en el boot no aparece la opciòn de elegir el sistema operativo y 
directamente se inicia con xp. 
He ingresado en todos los foros que he encontrado sin poder encontrar una 
solución.
Espero que me puedan ayudar para poder aprender a usar este sistema y asi 
eleiminar de una vez y por todas el otro sistema
Saludos
 
D. 
_
Do more with your photos with Windows Live Photo Gallery.
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_photos_022008

Re: Clearing SWAP

2008-05-06 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul Cartwright wrote:
> On Fri May 2 2008, Ron Johnson wrote:
>>> If they float and are not ducks ... nor made of wood, then they must be
>>> ... ?
>> Positively buoyant non-wooden non-ducks.  Or witches.
> 
> hey, wait, **I** can float! especially in salt water:) but not with my laptop 
> on my lap!
> 
But you're a wooden duck, so you're safe.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIRtULeTfO4yBSAcRAjd2AJ99I9ACbEUjUOMKoxpzdX2xGY45VwCfQ+kK
wAFjcu2Ffr/BxhVpZwR73YI=
=6C2F
-END PGP SIGNATURE-


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



Re: Cannot remove Google maps sidebar

2008-05-06 Thread Raj Kiran Grandhi

Cameron Hutchison wrote:

When I visit Google maps (http://maps.google.com/) using either Epiphany
or Iceweasel on my Debian sid system, I do not get the little triangle
button in the map sidebar that collapses it. This only happens for me
with Debian. On my systems with Ubuntu, google maps works as expected.

Does anyone know why this may be happening?


It is a problem with the user agent setting. Google maps does not seem 
to realize that iceweasel and firefox are practically the same. You can 
work around this by visiting about:config in iceweasel and replacing 
iceweasel with firefox for the general.useragent.extra.firefox string.



--
Raj Kiran Grandhi
--
Politics is for the moment. An equation is for eternity.
   -- Albert Einstein


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




Re: more ash/dash/bash questions

2008-05-06 Thread Raj Kiran Grandhi

Otavio Exel wrote:

Hello List,

I've been writing shell scripts to be run as root lately;
I'm not aware of any security-risk involving bash but I'd much more
rather run those scripts with ash or dash instead of bash;


What sort of security risks do you have in mind other than human error? 
Particularly when the script is running as root.




some years ago I remember reading here that pointing /bin/sh to dash or
ash would break a lot of important scripts in Debian;

so, instead of pointing /bin/sh to ash or dash, I'm starting my scripts
with ``#!/bin/ash''; I know that if I accidentaly remove ash my scripts
will break but I decided to run the risk!

but, in order to mimimize the risk, which interpreter should I use in my
scripts, ``#!/bin/ash'' or ``#!/bin/dash'' ?


It depends on where the scripts are intended to be run. If you want them 
to run only on your machine, you are free to choose any interpretor you 
want, otherwise you can try making a deb package of your script and have 
it depend on the interpretor of your choice.


--
Raj Kiran Grandhi
--
Politics is for the moment. An equation is for eternity.
   -- Albert Einstein


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




Re: Debian + LVM + RAID1

2008-05-06 Thread Damon L. Chesser

Ivan,

My response probable did not make any sense.  I went and dug up a blog 
entry I made and reposted it.  I covers the subject of how to make a 
/boot on a software raid one.  It does not cover the install, but rather 
how to convert to a raid1 once you are up and running and how to install 
grub onto both (or all) members of the array.  www.damtek.com


HTH

--
Damon L. Chesser
[EMAIL PROTECTED]
http://www.linkedin.com/in/dchesser


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




Re: Issue with VMware (2)

2008-05-06 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Doug Mitton wrote:
> (Sorry, repost due to error.)
> 
> On Mon, 05 May 2008 20:10:14 +0200, you wrote:
> 
>> Hey all,
>>
>> So I installed VMware server, had to use the any-any update for I use the
>> 2.6.24 kernel and
>> when I try to run it, it says that same message as before running the
>> vmware-conifig.pl tool.
>>
>> I also tried VMware Workstation trial, and that didn't work either.
>>
>> I tried running vmware-config.pl after running the any-any update several
>> times, and I get the same message.
>>
>> Does anyone know what might be the problem?
>>
>> Thanks in advance
>>
>> []s
> 
> Hi;
> 
> For the 2.6.24 kernel you should use the "a" version of any-any from:
> http://rtr.ca/vmware-2.6.24/
> 
> Also, there was an exploit found in the 2.6.24 kernel, you should be
> using 2.6.24.2 as a minimum:
> http://forums.theplanet.com/index.php?showtopic=89616
> http://www.milw0rm.com/exploits/5093
> 
> Good luck!
> 

Wow, there are places you just don't expect milw0rm to pop up, and d-u
is one of them!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIRTjLeTfO4yBSAcRAoa+AKC8/uB6QLoyU3NIHT51F/DMpknA/wCgz0OD
s4ZlCS5FZN0oIlgK8qpVrjA=
=xZRS
-END PGP SIGNATURE-


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



Re: [Kind of OT] Why's this look like gibberish to me?

2008-05-06 Thread Kevin Buhr
"Douglas A. Tutty" <[EMAIL PROTECTED]> writes:
>> 
>> The problem isn't the manpage author, it's your setup.
>> 
>> Specifically, you're using a locale that sports UTF-8 encoding, but
>
> wrong.  Lang=C.  I don't have any locales installed.  This is regular
> stock VT (no fonts, etc).

Well, let's put it this way.  Create a text file named "test.1"
containing the following:

.TH TEST "1"
.SH NAME
test \- it's elementary

Now, run "man -l test.1".  Does your fontless, stock VT show an ASCII
apostrophe or a little block?

If it shows a block, your setup is broken, no matter what LANG is set
to.

If it shows an ASCII apostrophe, I would be grateful if you could send
me the name of a stock Debian manpage that shows a block instead of an
apostrophe (preferably with its owning package name and version, if
you aren't using plain Etch).  I would very much like to track down
the problem and file bug reports on the offending manpages.

Thanks.

-- 
Kevin Buhr <[EMAIL PROTECTED]>


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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Jordi Gutiérrez Hermoso
On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:
>  APRACK FORTRAN library needs the input data in a 2D array (the arrays need
> to be arranged in column-major format). But, to answer your query, I don't
> *have* to read it in an array, I could read it in a list and then copy it to
> an array before I call ARPACK routines.

Btw, C++ provides std::valarray precisely with Fortran-like matrices
in mind. However, it seems this is the black sheep of the C++ stdlib,
since it seems C++ implementations are unable to optimise
std::valarray as much as intended (I've never really understood the
details), and I've never seen any project use std::valarray at all.
:-/

But anyways, valarrays store data precisely in the numeric formats
that Fortran expects.

On 06/05/2008, Mark Allums <[EMAIL PROTECTED]> wrote:
>  (And is also an example of something that is wrong with the C++ standard
> library, when you need the c_str() member of string so often to get any real
> useful work done.  Kind of defeats the purpose of having string in the first
> place.)

Yeah, that's because historically the stream classes were written
before the string class. :-/

That's scheduled to be fixed in C++0x. I wish the GNU implementation
of C++ already fixed it, since they do have other fixes (e.g. defining
at() for std::map which is technically non-standard but completely
reasonable).

On 06/05/2008, Mark Allums <[EMAIL PROTECTED]> wrote:
>  But I would rather statically link to stdio than to iostream

Although it's true that sometimes the C++ Hello World seems bloated to
the C Hello World, the difference becomes negligible in any project of
considerable size beyond Hello World. Embedded devices may be a
different thing, and I understand that it's allowable and encouraged
to write the hackiest code in embedded devices, even liberally
sprinkling your C code with ASM.

So I hear, so I hear...

- Jordi G. H.


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



Re: Cannot remove Google maps sidebar

2008-05-06 Thread Thierry Chatelet
On Wednesday 07 May 2008 03:13:44 Mark Allums wrote:
> Cameron Hutchison wrote:
> > When I visit Google maps (http://maps.google.com/) using either Epiphany
> > or Iceweasel on my Debian sid system, I do not get the little triangle
> > button in the map sidebar that collapses it. This only happens for me
> > with Debian. On my systems with Ubuntu, google maps works as expected.
> >
> > Does anyone know why this may be happening?
>
> Is there any usage of Flash in Google Maps?  If so, could be a Flash
> issue.
>
> Trying it in Lenny now...no
>
>
> Windows FF3b5  yes
> Windows IE7yes
> Lenny IceWeasel 2.0.0.14   no
> Lenny Epiphany  2.20.3 no
> kubuntu FF3b5  yes
> kubuntu Konquerer  yes
>
> Interesting!
>
> Is it a mozilla/gecko-1.8 thing, a gnome thing, a javascript thing, or
> what?
>
> It's not just sid, lenny is not right either.
>
> --
> Mark Allums

I have Windows in a virtual machine:
Windows FF   no
Windows IE7   no


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



Re: Cannot remove Google maps sidebar

2008-05-06 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark Allums wrote:
> Cameron Hutchison wrote:
>> When I visit Google maps (http://maps.google.com/) using either Epiphany
>> or Iceweasel on my Debian sid system, I do not get the little triangle
>> button in the map sidebar that collapses it. This only happens for me
>> with Debian. On my systems with Ubuntu, google maps works as expected.
>>
>> Does anyone know why this may be happening?
>>
>>
> 
> Is there any usage of Flash in Google Maps?  If so, could be a Flash issue.
> 
> Trying it in Lenny now...no
> 
> 
> Windows FF3b5  yes
> Windows IE7yes
> Lenny IceWeasel 2.0.0.14   no
> Lenny Epiphany  2.20.3 no
> kubuntu FF3b5  yes
> kubuntu Konquerer  yes
> 
> Interesting!
> 
> Is it a mozilla/gecko-1.8 thing, a gnome thing, a javascript thing, or
> what?
> 
> It's not just sid, lenny is not right either.
> 

I think you'll find that lenny and sid have the same iceweasel.

And this still all points to the debian patches.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIQQJLeTfO4yBSAcRAp/bAJ0R7h7cA2RX5CqCQWas8ULVr+CygQCdH8qV
Iiqbhd/xjOJ8Je7GCBJQbF0=
=pyZ1
-END PGP SIGNATURE-


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



Re: Cannot remove Google maps sidebar

2008-05-06 Thread Mark Allums

Cameron Hutchison wrote:

When I visit Google maps (http://maps.google.com/) using either Epiphany
or Iceweasel on my Debian sid system, I do not get the little triangle
button in the map sidebar that collapses it. This only happens for me
with Debian. On my systems with Ubuntu, google maps works as expected.

Does anyone know why this may be happening?




Is there any usage of Flash in Google Maps?  If so, could be a Flash 
issue.


Trying it in Lenny now...no


Windows FF3b5  yes
Windows IE7yes
Lenny IceWeasel 2.0.0.14   no
Lenny Epiphany  2.20.3 no
kubuntu FF3b5  yes
kubuntu Konquerer  yes

Interesting!

Is it a mozilla/gecko-1.8 thing, a gnome thing, a javascript thing, or what?

It's not just sid, lenny is not right either.

--
Mark Allums


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




Re: Cannot remove Google maps sidebar

2008-05-06 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Cameron Hutchison wrote:
> Rich Healey wrote:
> 
>> Cameron Hutchison wrote:
>>> When I visit Google maps (http://maps.google.com/) using either Epiphany
>>> or Iceweasel on my Debian sid system, I do not get the little triangle
>>> button in the map sidebar that collapses it. This only happens for me
>>> with Debian. On my systems with Ubuntu, google maps works as expected.
>>>
>>> Does anyone know why this may be happening?
> 
>> At a guess, one of the debian patches is breaking it.
> 
> Possibly. It is a little strange that the Ubuntu version works though,
> being based on the Debian version.
> 
Doesn't Ubuntu have FireFox with original branding?
>> Try a binary release, or build you own and compare.
> 
> I'd rather not do that. I prefer to keep to Debian packaged components.
> As a last ditch effort, I may try that to see if I can isolate the
> issue, but for now I'll see if anyone on the mailing list knows anything
> about this.
> 
I'm not suggesting you change over (although that might work), merely
that you try a vanilla build from MSF to see if it's a debian patch that
breaks it.
>> Are you using FF2 or 3b?
> 
> I am using Epiphany 2.22.1.1-1, and Iceweasel 2.0.0.14-2. These are the
> versions currently in Debian sid. I've had the problem since December
> last year (2007) when I re-installed Debian and dropped Ubuntu, so it is
> not something just introduced.
> 
Given that it's two browsers with only a distribution in common, I would
say that there's a security patch that breaks it.
> 

Regards


Rich Healey
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIQB/LeTfO4yBSAcRAt9tAJ0TH8wtYLYcI6oyHOb1EfcIhR27DQCgt4+o
sP9qyNN2xC0k/QYlR0XazIw=
=C5AI
-END PGP SIGNATURE-


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



Re: Cannot partition a hard drive with the Etch installer

2008-05-06 Thread Thierry Chatelet
On Wednesday 07 May 2008 01:34:07 Ken Heard wrote:
> Douglas A. Tutty wrote:
> > On Sun, May 04, 2008 at 04:59:07PM -0400, Ken Heard wrote:
> >> LVM VG SOL, LV var - 3.2 gB Linux Device Mapper
> >>#1 3.2 gB
> >> SCSI1 (0,0,0) (sda) - 250.1 gB ATA WDC WD2500AAJS.0
> >>#1 primary  82.2 mB B F ext3 /boot
> >>#2 primary 250.0 gB   K lvm
> >>
> >> Undo changes to the partitions.
> >> Finish partitioning and write changes to disk.
> >> -
> >> 
> >>-
> >>
> >> When I selected the "Finish" option, the following was returned:
> >>
> >>No root file system is defined.
> >>Please correct this from the partitioning menu.
> >>
> >> I went back to the partitioning menu but could find no way to indicate
> >> where to mount each logical volume, nor to indicate which volumes were
> >> to be encrypted.
> >>
> >> My question: can I do what I want to do and -- if so -- how?
> >
> > Its too soon to finish.  You have marked for creating the LVs, and have
> > labled them, but you still much choose each one (move curser, hit enter)
> > and select "use as" and select a filesystem type, a filesystem lable, a
> > mount point, etc, just as when you selected partition #1 and marked it
> > "use as" ext3, mount on /boot, and partition #2 as "use as" physical
> > volume for LVM.
>
>   I understand what you are saying in the previous paragraph, and I
> expected to be able to do what you suggest.  My problem is that the
> installer will not let me do that in LVM logical volumes -- I am *not
> allowed* to put the cursor on a LV, hit enter and make those selections.
>
>   So, I am back to my original question: can I do what I want to do, and
> if so how?  Otherwise should I abandon LVM altogether and file a bug
> report?
>
>   Ken Heard

My guest is that you try to enter on the lines starting with LVM, you have to 
select the line below them and then hit enter and then follow Douglas advice.


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



Re: Cannot remove Google maps sidebar

2008-05-06 Thread Cameron Hutchison
Rich Healey wrote:

>Cameron Hutchison wrote:
>> When I visit Google maps (http://maps.google.com/) using either Epiphany
>> or Iceweasel on my Debian sid system, I do not get the little triangle
>> button in the map sidebar that collapses it. This only happens for me
>> with Debian. On my systems with Ubuntu, google maps works as expected.
>> 
>> Does anyone know why this may be happening?

>At a guess, one of the debian patches is breaking it.

Possibly. It is a little strange that the Ubuntu version works though,
being based on the Debian version.

>Try a binary release, or build you own and compare.

I'd rather not do that. I prefer to keep to Debian packaged components.
As a last ditch effort, I may try that to see if I can isolate the
issue, but for now I'll see if anyone on the mailing list knows anything
about this.

>Are you using FF2 or 3b?

I am using Epiphany 2.22.1.1-1, and Iceweasel 2.0.0.14-2. These are the
versions currently in Debian sid. I've had the problem since December
last year (2007) when I re-installed Debian and dropped Ubuntu, so it is
not something just introduced.


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



Re: [Kind of OT] Why's this look like gibberish to me?

2008-05-06 Thread Douglas A. Tutty
On Tue, May 06, 2008 at 05:47:36PM -0500, Kevin Buhr wrote:
> "Douglas A. Tutty" <[EMAIL PROTECTED]> writes:
> >
> > What gets me is when a man page is written in english and "'" gets
> > translated as "?", as in can?t or "'" is a square white blob (on a
> > regular VT).  Why couldn't whoever wrote it in english have used the
> > standard english "'" glyph instead of a UTF thingy?
> 
> The problem isn't the manpage author, it's your setup.
> 
> Specifically, you're using a locale that sports UTF-8 encoding, but
wrong.  Lang=C.  I don't have any locales installed.  This is regular
stock VT (no fonts, etc).
> you're using a terminal/font combination that is not capable of
> correctly rendering UTF-8-encoded common typographical symbols used
> for English language text, like the right single quote / apostrophe.

The apostrophe is in standard ASCII in "C".

> If you use a locale based on ASCII encoding instead, those manpages
> will render more correctly (for example, substituting the unsightly
> ASCII vertical apostrophe for its more urbane cousin or writing (C) in
> place of the copyright symbol).  See the bottom of this post if LANG=C
> isn't good enough for you.
> 

Already using LANG=C


> Unlike some people here, I couldn't give a  if you, S. Keeling, or
> anyone else wants to use UTF-8 or not---I'm not on any crusade---but
> an environment variable setting of "LANG=en_US.UTF-8" is basically an
> announcement to applications that your terminal is UTF-8 capable.  You
> don't have to run a UTF-8-capable terminal if you don't want to, but
> you shouldn't lie to your applications and then whine about those damn
> foreigners writing manpages incorrectly (just a joke, just a joke).
> 
> In truth, if you look at the manpage source, you'll probably find that
> the manpage authors *have* used the ASCII "'" character for
> apostrophes and right single quotes.  That's because this is the
> encoding convention used in the typesetting language "roff" in which
> manpages are written.  You write `stuff like this' knowing that a
> correctly configured manpage rendering pipeline will convert those
> ASCII backticks and apostrophes into the correct English typographical
> symbols (if the manpage is being printed or being displayed on a
> sophisticated terminal) or at least do the best it can (if it's being
> delivered to an ASCII-only terminal).  If manpage writers were really
> on the ball, they'd use \(lqleft and right double-quotes\(rq too, but
> you don't see too much of that.
> 
> To clarify further, there's nothing English about "'".  If it's
> anything, it's ASCII, not English.  I'm not sure that the ASCII
> standard actually specifies what printable characters, including "'",
> are supposed to look like, but in most fonts with ASCII-compatible
> encoding, the "'" character is rendered as an undirected,
> typewriter-style apostrophe, like a vertical tickmark, and I believe
> this is pretty much universally accepted as the "correct" rendering of
> this character, among those who care about these things.  In
> particular, it is *not* the character used in typeset English text as
> an apostrophe or right single quote.  It's rarely used in English text
> at all, except in historically ASCII contents like email and computer
> plain text files.  It's about as un-English as you can get.  It's very
> ASCII, though.

According to man ascii, its ascii code decimal 27.
 


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



Re: Cannot partition a hard drive with the Etch installer

2008-05-06 Thread Douglas A. Tutty
On Tue, May 06, 2008 at 07:34:07PM -0400, Ken Heard wrote:
 
> > Its too soon to finish.  You have marked for creating the LVs, and have
> > labled them, but you still much choose each one (move curser, hit enter)
> > and select "use as" and select a filesystem type, a filesystem lable, a
> > mount point, etc, just as when you selected partition #1 and marked it
> > "use as" ext3, mount on /boot, and partition #2 as "use as" physical
> > volume for LVM.
> 
>   I understand what you are saying in the previous paragraph, and I
> expected to be able to do what you suggest.  My problem is that the
> installer will not let me do that in LVM logical volumes -- I am *not
> allowed* to put the cursor on a LV, hit enter and make those selections.
> 
>   So, I am back to my original question: can I do what I want to do, and
> if so how?  Otherwise should I abandon LVM altogether and file a bug report?
> 

Well, I've done it with Etch i386 installer and amd64 installer.  LVM
over raid1.  Therefore, I don't know what problem you're having.

Doug.


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



more ash/dash/bash questions

2008-05-06 Thread Otavio Exel
Hello List,

I've been writing shell scripts to be run as root lately;
I'm not aware of any security-risk involving bash but I'd much more
rather run those scripts with ash or dash instead of bash;

some years ago I remember reading here that pointing /bin/sh to dash or
ash would break a lot of important scripts in Debian;

so, instead of pointing /bin/sh to ash or dash, I'm starting my scripts
with ``#!/bin/ash''; I know that if I accidentaly remove ash my scripts
will break but I decided to run the risk!

but, in order to mimimize the risk, which interpreter should I use in my
scripts, ``#!/bin/ash'' or ``#!/bin/dash'' ?

[]s & TIA!

-- 
Otavio Exel /<\oo/>\ [EMAIL PROTECTED]


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



Re: [Kind of OT] Why's this look like gibberish to me?

2008-05-06 Thread Kevin Buhr
Chris Bannister <[EMAIL PROTECTED]> writes:
>
> Interesting, I have:
>   LANG=en_NZ.UTF-8
> and in /etc/console-tools/config
>   SCREEN_FONT=lat0-sun16
> With that setup, Dotan Cohen's line looks like solid black squares
> separated by dashes.

You mean this is happening on the Linux console, right?

Your LANG setting is fine, but the "lat0-sun16" console font doesn't
contain any Hebrew characters, so that's why you're getting solid
black squares (indicating "no character available") separated by
dashes.  You can load a Hebrew font on the current console:

consolechars -f iso08.f16.psf.gz

and Dotan's list should show up fine, but then accented latin
characters won't be available.

I think without special support, the Linux console handles only 256
characters at once (or 512 if you're willing to give up bold text).
You can use the "dynafont" package, which uses dynamic font loading
tricks to allow displaying text that requires more code space than
that.  It comes with a font that includes about 7900 glyphs and does
pretty well if you don't care about Asian language support.

-- 
Kevin Buhr <[EMAIL PROTECTED]>


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



Re: C++ programming: keeping count of data items read from file [OT] [OOT] (off-off-topic)

2008-05-06 Thread Mark Allums

Mark Allums wrote:
> Rich Healey wrote:
>  > Mark Allums wrote:
>  >> 1. You might want to learn PERL or Python or Ruby, and do it there.
>  > FWIW, this is very easy to do in Python.
>  > PSFWIW: Satan uses Ruby.
>
> :)
>
> I thought that Beelzebub used IronPython.
>

I mean, given the connection to Microsoft with .NET and all...

(Is explaining jokes ever a good idea?)

(Is replying to one's own post good form?)

(Is wasting list traffic with this bad form?)

--
Mark Allums


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




Re: C++ programming: keeping count of data items read from file [OT] [OOT] (off-off-topic)

2008-05-06 Thread Mark Allums

Rich Healey wrote:
> Mark Allums wrote:
>> 1. You might want to learn PERL or Python or Ruby, and do it there.
> FWIW, this is very easy to do in Python.
> PSFWIW: Satan uses Ruby.

:)

I thought that Beelzebub used IronPython.

--
Mark Allums


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




printing from KDE apps messed up

2008-05-06 Thread H.S.


Hello,

On Debian Testing if I print a PS file to Samsung 2070n laser printer 
from a KDE application, the fonts and resolution and paper size seem to 
be messed up. However, that same file prints okay from gv. Any idea 
where I should look to fix the KDE printing issue? In KDE, I used:

ii  kview  4:3.5.9-1+b1 simple image viewer/converter for KDE


thanks.
->HS


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




Re: Cannot remove Google maps sidebar

2008-05-06 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Cameron Hutchison wrote:
> When I visit Google maps (http://maps.google.com/) using either Epiphany
> or Iceweasel on my Debian sid system, I do not get the little triangle
> button in the map sidebar that collapses it. This only happens for me
> with Debian. On my systems with Ubuntu, google maps works as expected.
> 
> Does anyone know why this may be happening?
> 
> 

At a guess, one of the debian patches is breaking it.

Try a binary release, or build you own and compare.

Are you using FF2 or 3b?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIPT/LeTfO4yBSAcRAtVEAJ0e3rcyO9dGNAEPjVYBq3ploayvTQCgiKBY
b8XpuJZfKURFMluxh2Th4kA=
=zu6L
-END PGP SIGNATURE-


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



Cannot remove Google maps sidebar

2008-05-06 Thread Cameron Hutchison
When I visit Google maps (http://maps.google.com/) using either Epiphany
or Iceweasel on my Debian sid system, I do not get the little triangle
button in the map sidebar that collapses it. This only happens for me
with Debian. On my systems with Ubuntu, google maps works as expected.

Does anyone know why this may be happening?


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



Re: C++ programming: keeping count of data items read from file

2008-05-06 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark Allums wrote:
> H.S. wrote:
>> Hello,
>>
>> In a C++ program I am reading a data file for later processing and
>> computations. While reading that data file, I want to keep track of
>> data items (doubles) read.
>>
>> The data file is just a text file with N lines with C doubles in each
>> line (N and C are known a priori). For now, I just read from the file
>> stream in to a 2D array variable by reading each double at a time.
>>
>> Now I am trying to introduce some sanity checking into this reading
>> block. Here is what I am trying to do:
>> 1. Verify how many doubles I have read in each line. Must be C. If
>> they are not C, then the input file is corrupt.
>> 2. Verify that the total number of data items are NxC. This is simple,
>> I just keep a track of how many numbers I have read.
>>
>> So, how do I go about doing (1) above? I was thinking of somehow
>> checking if I have reached the end of line somehow (EOL?) but haven't
>> found a method to do so. All I have found is EOF.
>>
>> thanks,
>> ->HS
>>
>>
> 
> Not directly helpful, but some suggestions:
> 
> 1. You might want to learn PERL or Python or Ruby, and do it there.
FWIW, this is very easy to do in Python.
PSFWIW: Satan uses Ruby.
> 2. If it has to be C++, learn enough PERL to write a filter for the data
> file, and transform it so that it has one double per line.
> 3. Debug the data generator /in situ/ with a good debugger, and bypass
> the need to do the sanity checking.
> 4. Find a good C++ reference, and use it.  There are several.
> 
> Slightly more helpful:
> 
> 1. Read one line at a time in as a string, then operate on the string.
> 2. C++ has the ability to do everything that C does in a low level way,
> but why?  Use the C++ way, or use the C way:
> 
> #include 
> #include 
> . . .
> using namespace std;
> . . .
> ios::sync_with stdio();
> . . .
> int blah = fscanf(somefile,"%f %f %f %f\n", d1,d2,d3,d4);
> if (blah != correctvalue)
>  {
> dosomething();
> closefiles();
> cout << "error in data file\n";
> exit(1);
>  }
> . . .
> // etc.
> 
> 
> (The ios::sync_with_stdio(); line may differ slightly on different C++
> implementations.  I haven't used it in a while.  May be spelled synch_.
>  Too lazy to look it up.
> 
> The fscanf line may just be wrong. I quit writing C programs years ago.
>  Too old, memory failing.)
> 
> 
> 
Rich
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIIPOtLeTfO4yBSAcRAkvQAJ4v8ZhzTnupPjRRpkAQaiXxTzOpHgCgiHnv
YmSOypexOxGn2ttCLl/YpaI=
=vbdY
-END PGP SIGNATURE-


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



Re: Cannot partition a hard drive with the Etch installer

2008-05-06 Thread Ken Heard
Douglas A. Tutty wrote:
> On Sun, May 04, 2008 at 04:59:07PM -0400, Ken Heard wrote:
>> LVM VG SOL, LV var - 3.2 gB Linux Device Mapper
>>  #1 3.2 gB
>> SCSI1 (0,0,0) (sda) - 250.1 gB ATA WDC WD2500AAJS.0
>>  #1 primary  82.2 mB B F ext3 /boot
>>  #2 primary 250.0 gB   K lvm
>>
>> Undo changes to the partitions.
>> Finish partitioning and write changes to disk.
>> - -
>>
>> When I selected the "Finish" option, the following was returned:
>>
>>  No root file system is defined.
>>  Please correct this from the partitioning menu.
>>
>> I went back to the partitioning menu but could find no way to indicate
>> where to mount each logical volume, nor to indicate which volumes were
>> to be encrypted.
>>
>> My question: can I do what I want to do and -- if so -- how?
> 
> Its too soon to finish.  You have marked for creating the LVs, and have
> labled them, but you still much choose each one (move curser, hit enter)
> and select "use as" and select a filesystem type, a filesystem lable, a
> mount point, etc, just as when you selected partition #1 and marked it
> "use as" ext3, mount on /boot, and partition #2 as "use as" physical
> volume for LVM.

I understand what you are saying in the previous paragraph, and I
expected to be able to do what you suggest.  My problem is that the
installer will not let me do that in LVM logical volumes -- I am *not
allowed* to put the cursor on a LV, hit enter and make those selections.

So, I am back to my original question: can I do what I want to do, and
if so how?  Otherwise should I abandon LVM altogether and file a bug report?

Ken Heard




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



Re: sound?

2008-05-06 Thread Paul Cartwright
On Tue May 6 2008, Bob McGowan wrote:
> Since some of your programs produce sound and some don't, it could be a
> configuration problem with them.  Perhaps they are pointing to something
> that doesn't exist?

that is a possibility.. though why they would have changed is another issue...

>
> Other than that lame thought which I expect you've checked, I have no
> more ideas.
Since I upgraded to Lenny, MOST things seem to be working again.. including 
vlc, mplayer, banshee.. I think things got corrupted and they were pointing 
to a non-existing driver, but I'm NOT SURE :) and it wasn't a lame idea, 
sometimes we tend to overlook the obvious, I know **I** do:) all help is much 
appreciated!
I was able to get:
x$ uname -a
Linux paulandcilla 2.6.22-3-686 #1 SMP Sun Feb 10 20:20:49 UTC 2008 i686 
GNU/Linux

2.6.22-3 working with my NVIDIA driver, so that makes me really happy! as soon 
as my wife gets her new laptop setup, and leaves me and my desktop alone, 
I'll probably upgrade to 2.6.24-1-686. I have the image, I just wasn't able ( 
ran out of time) to get nvidia working correctly..

-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


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



Re: sound?

2008-05-06 Thread Bob McGowan

Paul Cartwright wrote:

On Tue May 6 2008, Bob McGowan wrote:

I have narrowed it down some. realplayer and xmms DO play sound, Banshee,
amarok, and  movieplayer do NOT play sound. when I click on an AVI, totem
starts, but locks up. vlc doesn't work either.

Do the /dev/dsp* dev files exist?  Are you using ALSA, as well?

c# ls -l /dev/dsp
crw-rw 1 root audio 14, 3 2008-05-05 09:11 /dev/dsp
not sure about ALSA..

# lspci|grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio 
Controller (rev 02)





paulandcilla:/etc/modprobe.d# ls -l
total 80
-rw-r--r-- 1 root root  4619 2008-04-04 21:41 aliases
-rw-r--r-- 1 root root  4645 2007-11-17 17:26 aliases.dpkg-old
-rw-r--r-- 1 root root 21669 2008-04-06 15:24 alsa-base
-rw-r--r-- 1 root root   156 2007-02-26 12:05 alsa-base-blacklist
drwxr-xr-x 2 root root  4096 2008-05-05 11:24 arch
lrwxrwxrwx 1 root root 9 2008-05-05 11:24 arch-aliases -> arch/i386
-rw-r--r-- 1 root root  1406 2007-03-24 14:15 blacklist
-rw-r--r-- 1 root root   284 2007-03-24 14:15 display_class
-rw-r--r-- 1 root root28 2008-04-16 18:34 i2c
-rw-r--r-- 1 root root16 2007-06-03 16:17 libpisock9
-rw-r--r-- 1 root root38 2007-01-08 14:41 libsane
lrwxrwxrwx 1 root root41 2008-05-05 11:25 
linux-sound-base_noOSS -> /lib/linux-sound-base/noOSS.modprobe.conf

-rw-r--r-- 1 root root   115 2007-09-06 18:17 nvidia-kernel-nkc
lrwxrwxrwx 1 root root21 2008-05-05 12:32 
oss-compat -> /lib/oss-compat/linux

-rw-r--r-- 1 root root   363 2007-03-24 14:15 pnp-hotplug
-rw-r--r-- 1 root root61 2008-05-04 21:52 sound



Based on reading the man page (plus the fact you seem to have all the 
drivers/devices present), I believe the modprobe.d directory is 
processed "normally" when the modprobe.conf file is not present.


So much for being able to help. ;(

Since some of your programs produce sound and some don't, it could be a 
configuration problem with them.  Perhaps they are pointing to something 
that doesn't exist?


Other than that lame thought which I expect you've checked, I have no 
more ideas.


--
Bob McGowan


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Kind of OT] Why's this look like gibberish to me?

2008-05-06 Thread Kevin Buhr
"Douglas A. Tutty" <[EMAIL PROTECTED]> writes:
>
> What gets me is when a man page is written in english and "'" gets
> translated as "?", as in can?t or "'" is a square white blob (on a
> regular VT).  Why couldn't whoever wrote it in english have used the
> standard english "'" glyph instead of a UTF thingy?

The problem isn't the manpage author, it's your setup.

Specifically, you're using a locale that sports UTF-8 encoding, but
you're using a terminal/font combination that is not capable of
correctly rendering UTF-8-encoded common typographical symbols used
for English language text, like the right single quote / apostrophe.
If you use a locale based on ASCII encoding instead, those manpages
will render more correctly (for example, substituting the unsightly
ASCII vertical apostrophe for its more urbane cousin or writing (C) in
place of the copyright symbol).  See the bottom of this post if LANG=C
isn't good enough for you.

Unlike some people here, I couldn't give a σθιτ if you, S. Keeling, or
anyone else wants to use UTF-8 or not---I'm not on any crusade---but
an environment variable setting of "LANG=en_US.UTF-8" is basically an
announcement to applications that your terminal is UTF-8 capable.  You
don't have to run a UTF-8-capable terminal if you don't want to, but
you shouldn't lie to your applications and then whine about those damn
foreigners writing manpages incorrectly (just a joke, just a joke).

In truth, if you look at the manpage source, you'll probably find that
the manpage authors *have* used the ASCII "'" character for
apostrophes and right single quotes.  That's because this is the
encoding convention used in the typesetting language "roff" in which
manpages are written.  You write `stuff like this' knowing that a
correctly configured manpage rendering pipeline will convert those
ASCII backticks and apostrophes into the correct English typographical
symbols (if the manpage is being printed or being displayed on a
sophisticated terminal) or at least do the best it can (if it's being
delivered to an ASCII-only terminal).  If manpage writers were really
on the ball, they'd use \(lqleft and right double-quotes\(rq too, but
you don't see too much of that.

To clarify further, there's nothing English about "'".  If it's
anything, it's ASCII, not English.  I'm not sure that the ASCII
standard actually specifies what printable characters, including "'",
are supposed to look like, but in most fonts with ASCII-compatible
encoding, the "'" character is rendered as an undirected,
typewriter-style apostrophe, like a vertical tickmark, and I believe
this is pretty much universally accepted as the "correct" rendering of
this character, among those who care about these things.  In
particular, it is *not* the character used in typeset English text as
an apostrophe or right single quote.  It's rarely used in English text
at all, except in historically ASCII contents like email and computer
plain text files.  It's about as un-English as you can get.  It's very
ASCII, though.

Anyway, to really take a stand on this UTF-8 crap and announce to the
world that 7 bits were good enough for cavemen so, by God, they're
good enough for you too, you can simply use a preexisting ASCII-only
locale (like LANG=C) or you can generate one.  Add this line to
"/etc/locale.gen":

en_US ANSI_X3.4-1968

run "/usr/sbin/locale-gen" as root, and find some way to set
"LANG=en_US" or "LC_ALL=en_US".  ANSI_X3.4-1968 is another name for
ASCII, so your new "en_US" locale shouldn't bother you with heretical
characters.  Some applications will still give up and print a "?" for
non-ASCII characters, but "man" should do an excellent job displaying
a pure ASCII rendering of your manpages for you.

-- 
Kevin Buhr <[EMAIL PROTECTED]>


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



Re: Debian Installer Hangs on MacBook

2008-05-06 Thread Jerome BENOIT

Hello Kent,

you may want to visit the mactel site:

www.mactel-linux.org/wiki/Main_Page

and more specific ones:

wiki.debian.org/MacBook
www.odi.ch/prog/macbookpro/index.php
help.ubuntu.com/community/MacBook#head-e4a1f2cde8ad66bc01c97bfdadc85996ad80f688

hth,
Jerome

Kent West wrote:
So I reconfigured my new MacBook (MacBook4.1, Intel Core 2 Duo, 2.4GHz, 
4GB RAM) to dual-boot between OS/X and Ubuntu (keep reading; this isn't 
about Ubuntu) using rEfit. I chose Ubuntu because it was easy, and I 
just wanted to get a feel for how well Linux would run on the MacBook.


It worked fairly well, but it wasn't long before it just started feeling 
"dirty" to me; I longed for pure Debian. So I downloaded the 4.0.r3.13 
netinstaller ISO and burned it to CD, and then booted from it.


No matter what options I've tried (noapic, nolapic, 
genericblahblahIDEblah, irqpoll, whatever I could find that looked 
promising), the boot process hangs fairly early in the process, usually 
when it gets around to trying to access the drive/CD, complaining about 
hda (or hde, depending on boot options, etc) not being ready, or 
complaining about timeouts, etc.


I'm unsure how to get beyond this. Any suggestions?



--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net


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




Last block device in striped LV or soft RAID0 would have longer await?

2008-05-06 Thread Magicloud Magiclouds

Hello,
	As I am trying some configurations for storage solution. I found out 
that, the last block device (normally, by alphabet) in striped LV or 
soft RAID 0 will have longer await. Especially in high concurrency IO. 
The same time, its avgrq-sz is more than others, but rrqm/s, wrqm/s, r/s 
and w/s are almost the same.
	I do not know much inside of lvm or soft raid. So I wonder if this 
problem is reasonable.


Thanks.


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




Debian Installer Hangs on MacBook

2008-05-06 Thread Kent West
So I reconfigured my new MacBook (MacBook4.1, Intel Core 2 Duo, 2.4GHz, 
4GB RAM) to dual-boot between OS/X and Ubuntu (keep reading; this isn't 
about Ubuntu) using rEfit. I chose Ubuntu because it was easy, and I 
just wanted to get a feel for how well Linux would run on the MacBook.


It worked fairly well, but it wasn't long before it just started feeling 
"dirty" to me; I longed for pure Debian. So I downloaded the 4.0.r3.13 
netinstaller ISO and burned it to CD, and then booted from it.


No matter what options I've tried (noapic, nolapic, 
genericblahblahIDEblah, irqpoll, whatever I could find that looked 
promising), the boot process hangs fairly early in the process, usually 
when it gets around to trying to access the drive/CD, complaining about 
hda (or hde, depending on boot options, etc) not being ready, or 
complaining about timeouts, etc.


I'm unsure how to get beyond this. Any suggestions?

--
Kent


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




iostat -x 2 only prints out 0!

2008-05-06 Thread Magicloud Magiclouds

Hello,
Recently, I am monitoring a storage for high concurrency IO, to tune it.
	While I am using iostat to see the speed per second, and await value. I 
found out that sometime, when the machine is working, iostat just gives 
out all 0 values for a few times, then return normal, or never until I 
reboot.

Any idea what is this about?

Thanks.


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




stty settings

2008-05-06 Thread Casey Deccio
I would like to pipe raw straight data through a terminal without any
special characters, null character conversion,  carriage
return/newline conversion, or echo.  'stty raw' and 'stty sane' seem
to approach this, but not exactly.  Before I start guessing more with
all the individual options in 'man stty', I thought I'd probe the list
to see if anyone knows an appropriate command for this.

Regards,
Casey


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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Mark Allums

Jordi Gutiérrez Hermoso wrote:

On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:

 Yup, that fscanf method looks interesting. I used that only when I program
in C, but it might be judicious to use it in C++ in this situation.


It's not. Streams are better and keep you away from nasty errors and segfaults.

Use getline(istream, string).

Suppose ifs is some istream (e.g ifstream ifs("file.data");).

Then you do something like

  string s;
  while(getline(ifs,s)){
  stringstream ss;
  ss << s;
  double x;
  list this_line;
  while(ss >> x){
  // Read the doubles one by one into some data structure
  this_line.push_back(x);
   }
   if(this_line.size() != rows){
  //Handle error here somehow
   }
}

If you need more fine control than this, you use boost::tokenizer.

HTH,
- Jordi G. H.




H... Well, fscanf() *is* evil.  And subject possibly to buffer 
overflows.  But understandable to an old fart.   Who still has _A Book 
on C_ and Kernighan and Ritchie lying around somewhere.  (And should 
have looked it up to see if it was really suitable.)


Streams *are* better.  But I would rather statically link to stdio than 
to iostream, if the subject ever comes up, and the choice has to be made.


Fortunately, I don't have to write this code anymore.  So I can 
cheerfully forget how it works, and post red herrings while kibitzing. 
(I could claim that I thought of it, but just didn't post an example 
because I couldn't think of the getline() function.  But I won't make 
that claim, because it wouldn't be believed.)



Mark Allums,

Who mostly writes code in lua these days, when he writes any at all.


--
Mark Allums


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




Re: Most inexpensive debian friendly laserjet printer? total cost of ownership including laserink?

2008-05-06 Thread Nate Duehr

Mitchell Laks wrote:


I tend to print out a lot of documentation on the software for projects
that I work on. Therefore I go through alot of laserjet cartidges on my
postscript compatible hp laserjet 1200 printer.


I haven't "done the math" but have been happy with my Samsung laser 
printer.   I print a lot of B&W (no color) and it doesn't seem to be 
"nickle and diming" me to death.  Printer price was reasonable, and the 
cartridges aren't too bad either.


It's an ML-1710, and there are some newer models now (ML-1710 is 
discontinued) that use the same cartridge, but the major differences 
seem to only be in paper handling and larger output bins on the newer ones.


Nate


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




Re: hard drive problems

2008-05-06 Thread Alex Samad
On Tue, May 06, 2008 at 10:17:23AM -0400, Douglas A. Tutty wrote:
> On Tue, May 06, 2008 at 06:08:47PM +1000, Alex Samad wrote:
> > On Mon, May 05, 2008 at 09:33:19PM -0400, Douglas A. Tutty wrote:
> > > On Tue, May 06, 2008 at 07:10:34AM +1000, Alex Samad wrote:
> > > > 
> > 
> > [snip]
> > 
> > > > ?(if so how)
> > > 
> > > First, ensure you have good recent backups.
> > > 
> > > Then install smartmontools and run a long S.M.A.R.T. test and check the
> > > results.  
> > > 
> > > Why did you recently buy new drives?  If it was because old drives
> > > failed, they may have damaged the controller and you're seeing
> > > controller failure instead of drive failure.
> > 
> > upgraded drives 500G -> 1TB. This is one drive of a raid1 md. and I have
> > onsite and off site backups.
> > 
> > I just want to make sure its sdb not sda
> 
> You snipped so much, I forget what the problem was.  IIRC, you had drive
> errors showing up in syslog on an ata controller and you didn't know
> which drive was the culprit.  
sorry and yes

> 
> Since its raid, see what the raid status is.  Does it show an active
> raid with two copies synced, or does it show degraded status.  mdadm
> should email you with a problem, but it doesn't hurt to check.
> 
my main question was weather ata2 == sdb and ata1 == sda seems like it
does

My raid set was okay, when the machine hanged and was reboot, the would
be a resync

> If you have a third hard drive as a spare, you could add it to the
> array, let it sync, then remove on of the origional drives and see if
> the error goes away.
got another one replaced it and reseated the sata cable.  Came back to
me i had problems in this drive bay before - loose cable! (hopefully not
the control), but this is one of those boxes that I have had problems
with from the beginning 

Thanks

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

-- 
Sauron is alive in Argentina!


signature.asc
Description: Digital signature


Re: Issue with VMware (2)

2008-05-06 Thread Doug Mitton
(Sorry, repost due to error.)

On Mon, 05 May 2008 20:10:14 +0200, you wrote:

>Hey all,
>
>So I installed VMware server, had to use the any-any update for I use the
>2.6.24 kernel and
>when I try to run it, it says that same message as before running the
>vmware-conifig.pl tool.
>
>I also tried VMware Workstation trial, and that didn't work either.
>
>I tried running vmware-config.pl after running the any-any update several
>times, and I get the same message.
>
>Does anyone know what might be the problem?
>
>Thanks in advance
>
>[]s

Hi;

For the 2.6.24 kernel you should use the "a" version of any-any from:
http://rtr.ca/vmware-2.6.24/

Also, there was an exploit found in the 2.6.24 kernel, you should be
using 2.6.24.2 as a minimum:
http://forums.theplanet.com/index.php?showtopic=89616
http://www.milw0rm.com/exploits/5093

Good luck!

-- 

 http://www3.sympatico.ca/dmitton
  SPAM Reduction: Remove "x." from my domain.



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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Mark Allums wrote:

(And is also an example of something that is wrong with the C++ standard 
library, when you need the c_str() member of string so often to get any 
real useful work done.  Kind of defeats the purpose of having string in 
the first place.)


Yes, that c_str() is a nuisance many times. I remember a few years back 
when older C++ code refused to compile with a newer gcc version (there 
are a major version change in gcc back then) and I had to manually put 
that .c_str() at many places in a source that I was using.




The totally unhelpful, but trying to be encouraging,

Mark Allums





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




Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Jordi Gutiérrez Hermoso wrote:

On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:
homebrewed subpar methods instead of standard C++. If you're going to
be reading doubles one by one, and you want to store those doubles and
know how many you have, I see little reason to not use an std::list


From the snippet of code you gave below, it doesn't look necessary to 
know how many doubles I want to read before grabbing the whole line in 
to a list. In fact, looks like the line will straight away give me how 
many double are there in a line and I can compare this number with the 
one I expect ... providing me with a sanity check.



unless you explain further why you need to keep the data in the ARPACK
format.


APRACK FORTRAN library needs the input data in a 2D array (the arrays 
need to be arranged in column-major format). But, to answer your query, 
I don't *have* to read it in an array, I could read it in a list and 
then copy it to an array before I call ARPACK routines.




Fwiw, there's very little C++ code out there that's really standard
and beautiful. I can think of Battle for Wesnoth as some of the nicest
C++ code out there (and it uses Boost).


I try to keep is according the C++ standard as far as I can. For all my 
programs, I use the "-ansi" flag with g++.




On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:

 Yup, that fscanf method looks interesting. I used that only when I program
in C, but it might be judicious to use it in C++ in this situation.


It's not. Streams are better and keep you away from nasty errors and segfaults.


Totally agree about the streams point.



Use getline(istream, string).


Yes, this is what I was just now reading about.



Suppose ifs is some istream (e.g ifstream ifs("file.data");).


The following seems to be quite nice, and "C++ way" to do it. I am going 
to try that now. Thanks a ton.


->HS



Then you do something like

  string s;
  while(getline(ifs,s)){
  stringstream ss;
  ss << s;
  double x;
  list this_line;
  while(ss >> x){
  // Read the doubles one by one into some data structure
  this_line.push_back(x);
   }
   if(this_line.size() != rows){
  //Handle error here somehow
   }
}

If you need more fine control than this, you use boost::tokenizer.

HTH,
- Jordi G. H.





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




Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/06/08 13:25, H.S. wrote:
> Ron Johnson wrote:
>>
>> Is this a binary file or a text file?
> 
> hmm. Text. I made it clear in the original post.

Sorry.  It just seems (to an old C programmer) that this is pretty
simple problem, unless there's some tricky detail that you aren't
telling us.

- --
Ron Johnson, Jr.
Jefferson LA  USA

We want... a Shrubbery!!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIMcsS9HxQb37XmcRAhs6AKDDQ8KXvkspc5xLZoj9l29TrnvV6gCcCUO0
ZggE4aBh+kOQ0/gP712BRVM=
=A44m
-END PGP SIGNATURE-


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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Mark Allums

James Allsopp wrote:

hi,
Try something like this, just add some pointers;
scan is just a simple object and l is a class vector.
HTH
jim

int nearest::readdata(std::string s, std::vector & l)
{
   //read in scuba core list
 std::ifstream input(s.c_str());
 std::string temp, pos, x ,y;
 char * t;
 std::cout <<"Reading " << s <> n.name;
   s >> x;
   s >> y;
   n.glon=strtod(x.c_str(),&t);
   n.glat=strtod(y.c_str(),&t);
 l.push_back(n);
   }
   input.close();
   return 0;
}



This is something like I meant when I said do it the C++ way, or the C 
way.  Except that I gave a bad example of the C way, this is a better 
example, which is of a C++ way.  It would help if I knew the C++ 
iostream stuff better.  If this weren't so darned OT, I'd ask what a 
"scan" is.


(And is also an example of something that is wrong with the C++ standard 
library, when you need the c_str() member of string so often to get any 
real useful work done.  Kind of defeats the purpose of having string in 
the first place.)


The totally unhelpful, but trying to be encouraging,

Mark Allums


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




Re: Clearing SWAP

2008-05-06 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/06/08 13:48, Andrei Popescu wrote:
> On Sun, May 04, 2008 at 01:32:06AM -0500, Ron Johnson wrote:
>> On 05/04/08 00:49, Marc Shapiro wrote:
>> [snip]
 In this configuration, X does *not* start on boot.  The wife and
 daughter must log in at the Scary Black Screen Of Doom.
   
>>> That is correct.  We boot to the console and login from there, then
>>> start X with the startx command which is actually the above alias for
>>> each login.
>> So now there are *four* females who aren't scared away by the SBSOD?
>>  (My wife and, from the time she was 5, daughter also log in that way.)
>>
>> Certainly there are more than 4 females in this world who can
>> overcome their "fear" of the SBSOD.  Right???
>  
> At least 5. You can count my mother as well (though as an ex. Cobol 
> programmer she is not the proper subject for this kind of statistic).

She is a female, and that's all that matters.

- --
Ron Johnson, Jr.
Jefferson LA  USA

We want... a Shrubbery!!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIMYoS9HxQb37XmcRAloYAJ9VGxOFi4v9Wer+UeIPpPU/jkpNUQCgi+Vw
dkyZeGD5OJDe0HG1HE5fP5M=
=CZYk
-END PGP SIGNATURE-


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



sound devices

2008-05-06 Thread PETER EASTHOPE
Folk,

One of my Debian Lenny machines has on-board Intel 
sound and an Altec Lansing USB headset.  Skype lists 
these devices.

Intel 82801BA-ICH2 (hw:I82801BAICH2,0) 
Intel 82801BA-ICH2 (plughw:I82801BAICH2,0) 
Intel 82801BA-ICH2 (hw:I82801BAICH2,1) 
Intel 82801BA-ICH2 (plughw:I82801BAICH2,1) 
C-Media USB Headphone Set (hw:default,0)
C-Media USB Headphone Set (plughw:default,0)

What is hw and plughw?

What is the distinction between devices 0 and 1?

About two months ago, around the time I upgraded 
from etch to lenny, the headset stopped sending 
sound from the microphone.  Then about a week 
ago, around the time of a kernel update, the 
headset stopped bringing sound in also.  The headset 
has no problems on a lenny machine at home.
Here I am forced to use the Intel sound hardware 
for Skype.

Any ideas about problems with USB sound in lenny 
or in kernel 2.6.24?

Thanks,  ... Peter E.

-- 
http://carnot.yi.org/
http://members.shaw.ca/peasthope/



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



Re: sound?

2008-05-06 Thread Paul Cartwright
On Tue May 6 2008, Bob McGowan wrote:
> > I have narrowed it down some. realplayer and xmms DO play sound, Banshee,
> > amarok, and  movieplayer do NOT play sound. when I click on an AVI, totem
> > starts, but locks up. vlc doesn't work either.
>
> Do the /dev/dsp* dev files exist?  Are you using ALSA, as well?
c# ls -l /dev/dsp
crw-rw 1 root audio 14, 3 2008-05-05 09:11 /dev/dsp
not sure about ALSA..

# lspci|grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio 
Controller (rev 02)

>
> I had similar issues, with both a desktop and a laptop, running Etch.
>
> What I found in my case was that the file /etc/modprobe.conf existed but
> for some reason had lost the line that made it include the contents of
> /etc/modprobe.d directory.
>
> Adding 'include /etc/modprobe.d' to that file solved my issue, maybe it
> will yours as well.
# ls -l modprobe.conf
ls: cannot access modprobe.conf: No such file or directory
paulandcilla:/etc# 

paulandcilla:/etc/modprobe.d# ls -l
total 80
-rw-r--r-- 1 root root  4619 2008-04-04 21:41 aliases
-rw-r--r-- 1 root root  4645 2007-11-17 17:26 aliases.dpkg-old
-rw-r--r-- 1 root root 21669 2008-04-06 15:24 alsa-base
-rw-r--r-- 1 root root   156 2007-02-26 12:05 alsa-base-blacklist
drwxr-xr-x 2 root root  4096 2008-05-05 11:24 arch
lrwxrwxrwx 1 root root 9 2008-05-05 11:24 arch-aliases -> arch/i386
-rw-r--r-- 1 root root  1406 2007-03-24 14:15 blacklist
-rw-r--r-- 1 root root   284 2007-03-24 14:15 display_class
-rw-r--r-- 1 root root28 2008-04-16 18:34 i2c
-rw-r--r-- 1 root root16 2007-06-03 16:17 libpisock9
-rw-r--r-- 1 root root38 2007-01-08 14:41 libsane
lrwxrwxrwx 1 root root41 2008-05-05 11:25 
linux-sound-base_noOSS -> /lib/linux-sound-base/noOSS.modprobe.conf
-rw-r--r-- 1 root root   115 2007-09-06 18:17 nvidia-kernel-nkc
lrwxrwxrwx 1 root root21 2008-05-05 12:32 
oss-compat -> /lib/oss-compat/linux
-rw-r--r-- 1 root root   363 2007-03-24 14:15 pnp-hotplug
-rw-r--r-- 1 root root61 2008-05-04 21:52 sound





-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


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



Re: Debian + LVM + RAID1

2008-05-06 Thread Damon L. Chesser

Ivan Glushkov wrote:

Hi,

I installed Debian on top of LVM and software RAID1 following this:

http://dev.jerryweb.org/raid/


Everything is fine except that I cannot boot the Debian afterwards
("Insert boot disk" message from the bios). I used /dev/sdc and
/dev/sdd. First problem is that I do not know which hdd I should enter
as the first boot device in the bios. Moreover, obviously the bios does
not see the /dev/md0 array, since I guess first the raid array should be
started in order for grub to be loaded. I explicitly issued grub-install
/dev/md0 using the recovery mode of the debian installer, but that did
not help.

Thanks in advance,
Ivan


  

Ivan,

you can not put grub (/boot) on an LVM.  You can put /boot on a raid1.  
If you made one raid1 device and made one partition on md0 you will not 
be able to boot (assuming you then put LVM on top of that one 
partition/used all of md0).


Redo what you did only make either two partitions to md0, one for boot 
(110Mb is large enough for most) and on partition2 put the rest of your 
system ontop of the LVM.  Or, partition your two hds to have two mdadm 
raid1 .  One small md0 for /boot and one md1 for the system with LVM on it.


You will then have to install grub on to hdd or if hdc fails, you will 
not be able to boot as grub will be installed onto hdc MBR.  Makes sense?


HTH

--
Damon L. Chesser
[EMAIL PROTECTED]
http://www.linkedin.com/in/dchesser


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




Re: annoying setkeycode messages

2008-05-06 Thread Andrei Popescu
On Sun, May 04, 2008 at 02:07:51PM +1000, Daniel Dalton wrote:

[...]

> How can I make this message go away so when I bump one of these keys 
> isn't triggered, or assign something useful to one of these useless keys at 
> the minute that just print the message above?

Maybe 'man setkeycodes' can help.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Jordi Gutiérrez Hermoso
On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:
> If you have visited that, it is full of people who want to discuss only the
> standard.

The standard is nice. The standard is great. I love the standard. It
can do everything, and when it can't, then you use Boost who does the
rest.

Wrapping other languages with C++ can be messy, but even standard C++
helps with that. Now, other languages aren't C++, are they?

My answers regarding C++ are almost always going to be to use the
standard library objects and functions and to use them generously,
unless you have an *irrefutable* reason for why you should use
homebrewed subpar methods instead of standard C++. If you're going to
be reading doubles one by one, and you want to store those doubles and
know how many you have, I see little reason to not use an std::list
unless you explain further why you need to keep the data in the ARPACK
format.

Fwiw, there's very little C++ code out there that's really standard
and beautiful. I can think of Battle for Wesnoth as some of the nicest
C++ code out there (and it uses Boost).

On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:
>  Yup, that fscanf method looks interesting. I used that only when I program
> in C, but it might be judicious to use it in C++ in this situation.

It's not. Streams are better and keep you away from nasty errors and segfaults.

Use getline(istream, string).

Suppose ifs is some istream (e.g ifstream ifs("file.data");).

Then you do something like

  string s;
  while(getline(ifs,s)){
  stringstream ss;
  ss << s;
  double x;
  list this_line;
  while(ss >> x){
  // Read the doubles one by one into some data structure
  this_line.push_back(x);
   }
   if(this_line.size() != rows){
  //Handle error here somehow
   }
}

If you need more fine control than this, you use boost::tokenizer.

HTH,
- Jordi G. H.


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



Re: sound?

2008-05-06 Thread Bob McGowan

Paul Cartwright wrote:

On Sun May 4 2008, Paul Cartwright wrote:

I have no idea what happened, but I seem to be missing sound. I am running
Debian Etch. I just installed xfce windows manager, but I have another
login that uses KDE. under KDE the volume control is missing, and I have no
sound. what to look for ??


I have narrowed it down some. realplayer and xmms DO play sound, Banshee, 
amarok, and  movieplayer do NOT play sound. when I click on an AVI, totem 
starts, but locks up. vlc doesn't work either.




Do the /dev/dsp* dev files exist?  Are you using ALSA, as well?

I had similar issues, with both a desktop and a laptop, running Etch.

What I found in my case was that the file /etc/modprobe.conf existed but 
for some reason had lost the line that made it include the contents of 
/etc/modprobe.d directory.


Adding 'include /etc/modprobe.d' to that file solved my issue, maybe it 
will yours as well.


--
Bob McGowan


smime.p7s
Description: S/MIME Cryptographic Signature


Debian + LVM + RAID1

2008-05-06 Thread Ivan Glushkov
Hi,

I installed Debian on top of LVM and software RAID1 following this:

http://dev.jerryweb.org/raid/


Everything is fine except that I cannot boot the Debian afterwards
("Insert boot disk" message from the bios). I used /dev/sdc and
/dev/sdd. First problem is that I do not know which hdd I should enter
as the first boot device in the bios. Moreover, obviously the bios does
not see the /dev/md0 array, since I guess first the raid array should be
started in order for grub to be loaded. I explicitly issued grub-install
/dev/md0 using the recovery mode of the debian installer, but that did
not help.

Thanks in advance,
Ivan


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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread James Allsopp

hi,
Try something like this, just add some pointers;
scan is just a simple object and l is a class vector.
HTH
jim

int nearest::readdata(std::string s, std::vector & l)
{
   //read in scuba core list
 std::ifstream input(s.c_str());
 std::string temp, pos, x ,y;
 char * t;
 std::cout <<"Reading " << s <> n.name;
   s >> x;
   s >> y;
   n.glon=strtod(x.c_str(),&t);
   n.glat=strtod(y.c_str(),&t);
 l.push_back(n);
   }
   input.close();
   return 0;
}

Hal Vaughan wrote:

On Tuesday 06 May 2008, H.S. wrote:
  

Hal Vaughan wrote:


On Tuesday 06 May 2008, H.S. wrote:
  

Ron Johnson wrote:


Is this a binary file or a text file?
  

hmm. Text. I made it clear in the original post.


Ron has trouble keeping up with things like that.  It's so hot
where he lives his brain is often overheated with the lest bit of
mental effort.

Hal
  

Thats okay. It is not a problem here. But had he committed this
sacrilege in a newsgroups full of Linux "gurus" (you know, the RTFM
type Linux/Unix puritans), he would have been flamed to cinders. :)



Interesting way to put it, since he is a puritan guru.  (Or Linux guru, 
or puritan Linux guru -- I'm not sure which word should modify which 
here!)


Hal


  



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




Re: swap help please

2008-05-06 Thread Andrei Popescu
On Sat, May 03, 2008 at 03:42:09PM +1000, Daniel Dalton wrote:

> Anyway removing uswsusp did the trick.
> Since I used purge to remove it a reinstall of it went great. The guy on 
> that forum just removed it and not purged it, so that is why his reinstall 
> didn't work.
> Its all fixed now, thanks for the reply though.

A simple 'dpkg-reconfigure uswsusp' (and answering with the correct 
values) would have been enough.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Hal Vaughan
On Tuesday 06 May 2008, H.S. wrote:
> Hal Vaughan wrote:
> > On Tuesday 06 May 2008, H.S. wrote:
> >> Ron Johnson wrote:
> >>> Is this a binary file or a text file?
> >>
> >> hmm. Text. I made it clear in the original post.
> >
> > Ron has trouble keeping up with things like that.  It's so hot
> > where he lives his brain is often overheated with the lest bit of
> > mental effort.
> >
> > Hal
>
> Thats okay. It is not a problem here. But had he committed this
> sacrilege in a newsgroups full of Linux "gurus" (you know, the RTFM
> type Linux/Unix puritans), he would have been flamed to cinders. :)

Interesting way to put it, since he is a puritan guru.  (Or Linux guru, 
or puritan Linux guru -- I'm not sure which word should modify which 
here!)

Hal


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



Re: ircii question

2008-05-06 Thread Andrei Popescu
On Fri, May 02, 2008 at 03:40:42PM -0500, Mumia W.. wrote:

> Indeed that can be a problem. I have pidentd disabled, but I can use IRC 
> because I've opened port 113 (auth/ident) in my firewall. If the port is 
> closed but accessible, most IRC servers will allow the connection.

This is the default for shorewall. Now I understand why I never had 
troubles with ident.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: libsc7_2.3.1-3_amd64.deb problems

2008-05-06 Thread Lennart Sorensen
On Tue, May 06, 2008 at 11:33:54AM -0700, Francesco Pietra wrote:
> I have tried with synaptic.
> 
> (1) marking libsc8 (which was installed) for removal and unmarking 
> libsc7_2.3.1-3_amd64.deb (which was not installed), a dist-upgrade is carried 
> out, ending in the same error:
> 
> E: /var/cache/apt/archives/libsc7_2.3.1-3_amd64.deb trying to overwrite
> '/usr/lib/libSCstates.so.7.1.0' whi is also in package libsc8.
> 
> Now marking libsc-dev for removal returns errors:
> 
> E: exim-daemon-light subprocesses post-installation script returned error 
> exit status 1
> 
> E: exim4 depend problem
> 
> E: bds-mailx dep problem
> 
> E: acpid subprocess post-install error 1
> 
> E: mailx dep problem
> 
> I.e, it drops now in the same errors that I had reported for i386. "Florian 
> Kulzer" <[EMAIL PROTECTED]> kindly advided me that it is a bug fixed in 
> unstable, not yet passed to lenny.

Try doing:

dpkg --purge libsc8
apt-get install libsc7

If the dpkg fails, then something must still be using it.

-- 
Len Sorensen


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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Hal Vaughan wrote:

On Tuesday 06 May 2008, H.S. wrote:

Ron Johnson wrote:

Is this a binary file or a text file?

hmm. Text. I made it clear in the original post.


Ron has trouble keeping up with things like that.  It's so hot where he 
lives his brain is often overheated with the lest bit of mental effort.


Hal


Thats okay. It is not a problem here. But had he committed this 
sacrilege in a newsgroups full of Linux "gurus" (you know, the RTFM type 
Linux/Unix puritans), he would have been flamed to cinders. :)





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




Re: libsc7_2.3.1-3_amd64.deb problems

2008-05-06 Thread Francesco Pietra
I have tried with synaptic.

(1) marking libsc8 (which was installed) for removal and unmarking 
libsc7_2.3.1-3_amd64.deb (which was not installed), a dist-upgrade is carried 
out, ending in the same error:

E: /var/cache/apt/archives/libsc7_2.3.1-3_amd64.deb trying to overwrite
'/usr/lib/libSCstates.so.7.1.0' whi is also in package libsc8.

Now marking libsc-dev for removal returns errors:

E: exim-daemon-light subprocesses post-installation script returned error exit 
status 1

E: exim4 depend problem

E: bds-mailx dep problem

E: acpid subprocess post-install error 1

E: mailx dep problem

I.e, it drops now in the same errors that I had reported for i386. "Florian 
Kulzer" <[EMAIL PROTECTED]> kindly advided me that it is a bug fixed in 
unstable, not yet passed to lenny.

francesco


--- On Tue, 5/6/08, Lennart Sorensen <[EMAIL PROTECTED]> wrote:

> From: Lennart Sorensen <[EMAIL PROTECTED]>
> Subject: Re: libsc7_2.3.1-3_amd64.deb problems
> To: "Francesco Pietra" <[EMAIL PROTECTED]>
> Cc: "C. Ahlstrom" <[EMAIL PROTECTED]>, "debian64" <[EMAIL PROTECTED]>
> Date: Tuesday, May 6, 2008, 9:32 AM
> On Tue, May 06, 2008 at 08:53:27AM -0700, Francesco Pietra
> wrote:
> > Hi:
> > Sorry for this lengthy dealing with libsc7/libsc8,
> though I would like to clean the system, i.e. not to have
> these issues raised at each "apt-get upgrade".
> Actually, now "apt-get upgrade" only results in:
> > 
> > Reading package list ...Done
> > Building dependency tree ... Done
> > You might want to run 'apt-get -f install' to
> correct.
> > Packages with unmet dependencies:
> > libsc-dev: Depends: libsc7 (= 2.3.1-3) but it is not
> installed.
> > 
> > It seems to be unable to upgrading, unless there is
> nothing else.
> > 
> > I think that I don't need either libsc7 or libsc8.
> Both come from "The Scientific Computing Toolkit"
> (Sandja Lab, mpqc) an extraordinary quantum mechanical
> package that I used successfully, but one that
> unfortunately is not being developed toward organic
> chemical applications. Therefore I don't use it any
> more. There is a relationship with "ghemical"
> that I don't use either on this amd64 system (I barely
> run 'startx' on rare occasions)
> > 
> > I did some search:
> > 
> > apt-cache rdepends libsc7
> > ENTER
> > Reverse Depends:
> > mpqc-support
> > mpqc
> > libsc-dev
> > libghemical3gf
> > 
> > apt-cache rdepends libsc8
> > ENTER
> > Reverse Depends:
> > [nothing reported]
> > 
> > If I carry out the same commands with i386 (where mpqc
> is still installed), for libsc7 there is one line more
> "libghemical0c2a", while for libsc8 the answer is
> "no package found".
> 
> Well mpqc seems to use it too.  It seems odd that libsc8
> conflicts with
> libsc7, in fact I would think that is a bug and should be
> reported as
> such.  If nothing else it should conflict if it can't
> be installed at
> the same time.
> 
> -- 
> Len Sorensen
> 
> 
> -- 
> To UNSUBSCRIBE, email to
> [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


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



Re: Clearing SWAP

2008-05-06 Thread Andrei Popescu
On Sun, May 04, 2008 at 01:32:06AM -0500, Ron Johnson wrote:
> On 05/04/08 00:49, Marc Shapiro wrote:
> [snip]
> >>
> >> In this configuration, X does *not* start on boot.  The wife and
> >> daughter must log in at the Scary Black Screen Of Doom.
> >>   
> > That is correct.  We boot to the console and login from there, then
> > start X with the startx command which is actually the above alias for
> > each login.
> 
> So now there are *four* females who aren't scared away by the SBSOD?
>  (My wife and, from the time she was 5, daughter also log in that way.)
> 
> Certainly there are more than 4 females in this world who can
> overcome their "fear" of the SBSOD.  Right???
 
At least 5. You can count my mother as well (though as an ex. Cobol 
programmer she is not the proper subject for this kind of statistic).

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: Bugs in latest upgrade for Debian etch

2008-05-06 Thread Florian Kulzer
On Mon, May 05, 2008 at 16:01:42 +0100, Lesley Binks wrote:
> Hi
> 
> I just did an 'apt-get upgrade -s'  and found these updates were required
> 
> Reading package lists... Done
> Building dependency tree... Done
> The following packages will be upgraded:
>   cpio libperl5.8 linux-image-2.6.18-6-486 perl perl-base perl-doc 
> perl-modules
> 7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

[...]

> So I did an 'apt-get upgrade' and got these problems

[...]

> Preparing to replace linux-image-2.6.18-6-486 2.6.18.dfsg.1-18etch1
> (using .../linux-image-2.6.18-6-486_2.6.18.dfsg.1-18etch3_i386.deb)
> ...
> The directory /lib/modules/2.6.18-6-486 still exists. Continuing as directed.
> Done.
> Unpacking replacement linux-image-2.6.18-6-486 ...
> Running postrm hook script /sbin/update-grub.
> You shouldn't call /sbin/update-grub. Please call /usr/sbin/update-grub 
> instead!

This is not critical right now, but it might cause problems in the
future. Check /etc/kernel-img.conf and change the two "hook" lines so
that they look like this:

postinst_hook = /usr/sbin/update-grub
postrm_hook   = /usr/sbin/update-grub

[...]

> Setting up cpio (2.6-18.1+etch1) ...
> Errno architecture (i486-linux-gnu-thread-multi-2.6.22-3-amd64) does
> not match executable architecture
> (i486-linux-gnu-thread-multi-2.6.24.4) at
> /usr/local/share/perl/5.8.8/Errno.pm line 11.

This is a non-Debian perl module; get rid of it. Everything should be
fine if the proper module (/usr/lib/perl/5.8.8/Errno.pm, part of
perl-base) is used instead. 

> Compilation failed in require at /usr/sbin/install-info line 308.
> BEGIN failed--compilation aborted at /usr/sbin/install-info line 308.
> dpkg: error processing cpio (--configure):
>  subprocess post-installation script returned error exit status 9

[...]

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Hal Vaughan
On Tuesday 06 May 2008, H.S. wrote:
> Ron Johnson wrote:
> > Is this a binary file or a text file?
>
> hmm. Text. I made it clear in the original post.

Ron has trouble keeping up with things like that.  It's so hot where he 
lives his brain is often overheated with the lest bit of mental effort.

Hal


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



Re: C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Mark Allums wrote:



Not directly helpful, but some suggestions:

1. You might want to learn PERL or Python or Ruby, and do it there.


hmm .. not sure how this will pan out in the long run, but for now, I am 
trying to keep it all within one program.


2. If it has to be C++, learn enough PERL to write a filter for the data 
file, and transform it so that it has one double per line.
3. Debug the data generator /in situ/ with a good debugger, and bypass 
the need to do the sanity checking.


Totally agree with this. The sanity checking was mainly for the data 
files when some other user may use at a later date.




4. Find a good C++ reference, and use it.  There are several.

Slightly more helpful:

1. Read one line at a time in as a string, then operate on the string.
2. C++ has the ability to do everything that C does in a low level way, 
but why?  Use the C++ way, or use the C way:


#include 
#include 
. . .
using namespace std;
. . .
ios::sync_with stdio();
. . .
int blah = fscanf(somefile,"%f %f %f %f\n", d1,d2,d3,d4);
if (blah != correctvalue)
 {
dosomething();
closefiles();
cout << "error in data file\n";
exit(1);
 }
. . .
// etc.


(The ios::sync_with_stdio(); line may differ slightly on different C++ 
implementations.  I haven't used it in a while.  May be spelled synch_. 
 Too lazy to look it up.


The fscanf line may just be wrong. I quit writing C programs years ago. 
 Too old, memory failing.)


Yup, that fscanf method looks interesting. I used that only when I 
program in C, but it might be judicious to use it in C++ in this situation.


Never mind the syntax accuracy, I can fix that if need be. Looks like I 
may need to give this approach shot. Thanks.


->HS




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




Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Ron Johnson wrote:


Is this a binary file or a text file?


hmm. Text. I made it clear in the original post.


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




Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Hal Vaughan
On Tuesday 06 May 2008, Ron Johnson wrote:
> On 05/06/08 12:50, H.S. wrote:
> > Robert Baron wrote:
> >> What is so terrible about counting the items as they come in?
> >
> > As I mentioned earlier, the issue is how do I count items read in
> > one line, or before the next EOL? Counting total items is not a
> > problem.
> >
> > Perhaps a different way to say this is, how do I detect if I have
> > reached an EOL while reading doubles from a file stream.
>
> Is this a binary file or a text file?

Text file.  He already specified that.


Hal


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



Re: C++ programming: keeping count of data items read from file

2008-05-06 Thread Hal Vaughan
On Tuesday 06 May 2008, H.S. wrote:
> Ron Johnson wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > On 05/06/08 11:42, H.S. wrote:
> >> Hello,
> >>
> >> In a C++ program I am reading a data file for later processing and
> >> computations. While reading that data file, I want to keep track
> >> of data items (doubles) read.
> >>
> >> The data file is just a text file with N lines with C doubles in
> >> each line (N and C are known a priori). For now, I just read from
> >> the file stream in to a 2D array variable by reading each double
> >> at a time.
> >>
> >> Now I am trying to introduce some sanity checking into this
> >> reading block. Here is what I am trying to do:
> >> 1. Verify how many doubles I have read in each line. Must be C. If
> >> they are not C, then the input file is corrupt.
> >> 2. Verify that the total number of data items are NxC. This is
> >> simple, I just keep a track of how many numbers I have read.
> >>
> >> So, how do I go about doing (1) above? I was thinking of somehow
> >> checking if I have reached the end of line somehow (EOL?) but
> >> haven't found a method to do so. All I have found is EOF.
> >
> > This smells suspiciously like CompSci homework.
>
> Nope, it isn't. The program implements an algorithm in my research. I
> have the program running, but now I am also generating the data file
> automatically. The above request is to catch any errors creeping in
> to the data file due to the new program I am writing to generate it.

How are you generating the data file?  Can't you output a specific 
character before each EOL char so you can search for it?

If you're generating your own file, can't you use serialization?  (Or am 
I confusing that with Java, forgot which does that.)

Hal


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



Re: Fw: Errors on upgrading from etch to lenny

2008-05-06 Thread NN_il_Confusionario
> * From: Francesco Pietra <[EMAIL PROTECTED]>
>invoke-rc.d: initscript exim4, action "start" failed.

search this in google and see the results in the debian bug tracking system

 invoke-rc.d: initscript exim4, action "start" failed - Google Search
http://www.google.com/search?q=invoke-rc.d%3A+initscript+exim4%2C+action+%22start%22+failed&num=100


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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Michael Marsh wrote:

On Tue, May 6, 2008 at 1:50 PM, H.S. <[EMAIL PROTECTED]> wrote:

 As I mentioned earlier, the issue is how do I count items read in one line,
or before the next EOL? Counting total items is not a problem.

 Perhaps a different way to say this is, how do I detect if I have reached
an EOL while reading doubles from a file stream.


Can you read full lines out into, eg, a stringstream, and parse your
doubles out of that?  You'd hit an EOF at the end of each line in that
case.  I'm not sure how you'd get stream out line-at-a-time, though
there may be a stream operator that sets the appropriate behavior.


Yup, that could be done by getting a line till the end of "\n" character 
and then parsing the line. I was just wondering if there was any other 
way (was trying to avoid parsing).





Just a random idea off the top of my head.




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




Re: C++ programming: keeping count of data items read from file

2008-05-06 Thread Mark Allums

H.S. wrote:

Hello,

In a C++ program I am reading a data file for later processing and 
computations. While reading that data file, I want to keep track of data 
items (doubles) read.


The data file is just a text file with N lines with C doubles in each 
line (N and C are known a priori). For now, I just read from the file 
stream in to a 2D array variable by reading each double at a time.


Now I am trying to introduce some sanity checking into this reading 
block. Here is what I am trying to do:
1. Verify how many doubles I have read in each line. Must be C. If they 
are not C, then the input file is corrupt.
2. Verify that the total number of data items are NxC. This is simple, I 
just keep a track of how many numbers I have read.


So, how do I go about doing (1) above? I was thinking of somehow 
checking if I have reached the end of line somehow (EOL?) but haven't 
found a method to do so. All I have found is EOF.


thanks,
->HS




Not directly helpful, but some suggestions:

1. You might want to learn PERL or Python or Ruby, and do it there.
2. If it has to be C++, learn enough PERL to write a filter for the data 
file, and transform it so that it has one double per line.
3. Debug the data generator /in situ/ with a good debugger, and bypass 
the need to do the sanity checking.

4. Find a good C++ reference, and use it.  There are several.

Slightly more helpful:

1. Read one line at a time in as a string, then operate on the string.
2. C++ has the ability to do everything that C does in a low level way, 
but why?  Use the C++ way, or use the C way:


#include 
#include 
. . .
using namespace std;
. . .
ios::sync_with stdio();
. . .
int blah = fscanf(somefile,"%f %f %f %f\n", d1,d2,d3,d4);
if (blah != correctvalue)
 {
dosomething();
closefiles();
cout << "error in data file\n";
exit(1);
 }
. . .
// etc.


(The ios::sync_with_stdio(); line may differ slightly on different C++ 
implementations.  I haven't used it in a while.  May be spelled synch_. 
 Too lazy to look it up.


The fscanf line may just be wrong. I quit writing C programs years ago. 
 Too old, memory failing.)




--
Mark Allums


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




Re: How do I change cursor/mouse pointer?

2008-05-06 Thread Manu Hack
On Tue, May 6, 2008 at 1:20 PM, Dennis G. Wicks <[EMAIL PROTECTED]> wrote:

> Greetings;
>
> Search as I may I can not find how to do this.
>
> I am running gnome and a hi-res screen. My cursor and mouse pointer are
> too small to see easily on the screen. How do I make them bigger?
>

sudo apt-get install chameleon-cursor-theme

(or any other theme you like)

sudo update-alternatives --config x-cursor-theme

and choose the one you like.  For example I chose
/usr/share/icons/Chameleon-Pearl-Large/cursor.theme, which is large enough
for me.

Manu


Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/06/08 12:50, H.S. wrote:
> Robert Baron wrote:
> 
>>
>> What is so terrible about counting the items as they come in?
> 
> 
> As I mentioned earlier, the issue is how do I count items read in one
> line, or before the next EOL? Counting total items is not a problem.
> 
> Perhaps a different way to say this is, how do I detect if I have
> reached an EOL while reading doubles from a file stream.

Is this a binary file or a text file?

- --
Ron Johnson, Jr.
Jefferson LA  USA

We want... a Shrubbery!!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIJ4uS9HxQb37XmcRAjSqAKCLE6X+D5GA0GbuHl04JuhDVMQ1SACfcYzk
3/cqC9ntXmxUBk8Y2SuLCQ8=
=uwVN
-END PGP SIGNATURE-


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



Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Michael Marsh
On Tue, May 6, 2008 at 1:50 PM, H.S. <[EMAIL PROTECTED]> wrote:
>  As I mentioned earlier, the issue is how do I count items read in one line,
> or before the next EOL? Counting total items is not a problem.
>
>  Perhaps a different way to say this is, how do I detect if I have reached
> an EOL while reading doubles from a file stream.

Can you read full lines out into, eg, a stringstream, and parse your
doubles out of that?  You'd hit an EOF at the end of each line in that
case.  I'm not sure how you'd get stream out line-at-a-time, though
there may be a stream operator that sets the appropriate behavior.

Just a random idea off the top of my head.

-- 
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com
http://36pints.blogspot.com


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



Re: Fw: Errors on upgrading from etch to lenny

2008-05-06 Thread Florian Kulzer
On Tue, May 06, 2008 at 06:58:42 -0700, Francesco Pietra wrote:
> Hi:
> The full error message is:

[...]

> Setting up exim4-daemon-light (4.69-2+b1) ...
> Starting MTA:exim: incompatible command-line options or arguments
> invoke-rc.d: initscript exim4, action "start" failed.
> dpkg: error processing exim4-daemon-light (--configure):
>  subprocess post-installation script returned error exit status 1

[...]

Seems to be the same issue as the one discussed here:

http://lists.debian.org/debian-user/2008/05/msg00473.html

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Re: How do I change cursor/mouse pointer?

2008-05-06 Thread H.S.

Dennis G. Wicks wrote:

Greetings;

Search as I may I can not find how to do this.

I am running gnome and a hi-res screen. My cursor and mouse pointer are 
too small to see easily on the screen. How do I make them bigger?


Many TIA!
Dennis




On debian Lenny:

{~}$> apt-cache search cursors
big-cursor - larger mouse cursors for X
comixcursors - X11 mouse theme with a comic feeling
crystalcursors - X11 mouse theme with the crystal look&feel
dmz-cursor-theme - Style neutral, scalable cursor theme
icoutils - Create and extract MS Windows icons and cursors
libxcursor1 - X cursor management library
oxygencursors - Oxygen mouse cursor theme
python-psycopg2 - Python module for PostgreSQL
uqm - The Ur-Quan Masters - An inter-galatic adventure game
uqm-russian - Russian addon for 'The Ur-Quan Masters' game
uqm-content - The Ur-Quan Masters - Game data files


So perhaps you want to try big-cursor package.

->HS


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




Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Robert Baron wrote:



What is so terrible about counting the items as they come in?



As I mentioned earlier, the issue is how do I count items read in one 
line, or before the next EOL? Counting total items is not a problem.


Perhaps a different way to say this is, how do I detect if I have 
reached an EOL while reading doubles from a file stream.





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




Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread Robert Baron
On Tue, May 6, 2008 at 1:14 PM, H.S. <[EMAIL PROTECTED]> wrote:

> Jordi Gutiérrez Hermoso wrote:
>
> > On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:
> >
> > > In a C++ program I am reading a data file for later processing and
> > > computations. While reading that data file, I want to keep track of
> > > data
> > > items (doubles) read.
> > >
> >
> > Use std::list and other standard data structures.
> >
>
> I am using them where ever I can. In this case however, I am using the
> data with ARPACK libraries and need to put it in a FORTRAN style 2D array.
> Everywhere else though, I am using C++ STL.
>
>  It's C++. Don't use C arrays, ugh.
> >
> > If you are comfortable with IRC, I find that ##c++ on Freenode is full
> > of bright people.
> >
> > And what does this have to do with Debian?
> >
>
> er .. ahem .. yeah, sorry about that, should have had OT in the subject.
> But now that you mention this, let me explain a bit why I did not post it in
> C++ newsgroup. If you have visited that, it is full of people who want to
> discuss only the standard. I have had that experience, so gave it a shot
> here.
>
> Will try the IRC. Thanks,
> ->HS
> PS: I just put "OT" in the subject line.


What is so terrible about counting the items as they come in?

The other way to do it is to count up the items in the 2d array (and it
shouldn't matter if it is ..., well whatever).

Trivial.

Rob.


Re: can't send a bugreport in emacs

2008-05-06 Thread Andrei Popescu
On Thu, May 01, 2008 at 01:51:02PM -0700, Alexandru Cardaniuc wrote:
> Sven Joachim <[EMAIL PROTECTED]> writes:
> 
> > On 2008-05-01 21:45 +0200, Alexandru Cardaniuc wrote:
> >
> >> Sven Joachim <[EMAIL PROTECTED]> writes:
> >>
> >>> On 2008-05-01 06:34 +0200, Alexandru Cardaniuc wrote:
>  Do I need to configure reportbug to be able to send bugreports? Or
>  something else?
> >>
> >>> Not reportbug, no. You might have to configure Emacs, though.
> >> Well, sending it directly through reportbug failed too. That's what
> >> I get:
> >
> > Note that M-x debian-bug only uses reportbug to gather package
> > information and _not_ for actually mailing the report.
> >
> >> Report will be sent to "Debian Bug Tracking System"
> >> <[EMAIL PROTECTED]>
> >> Submit this report (e to edit) [Y|n|a|c|e|i|l|m|p|q|?]? Y
> >> Connecting to bugs.debian.org via SMTP...
> >> SMTP send failure: (110, 'Connection timed out')
> >
> > Are you behind a firewall that blocks outgoing connections on Port 25?
> >
> >> Are you sure I don't need to configure reportbug?
> 
> I use a linksys router/gateway to access internet. What should I check
> there?
 
Maybe you should try something simpler first, like

telnet bugs.debian.org 25

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


How do I change cursor/mouse pointer?

2008-05-06 Thread Dennis G. Wicks

Greetings;

Search as I may I can not find how to do this.

I am running gnome and a hi-res screen. My cursor and 
mouse pointer are too small to see easily on the 
screen. How do I make them bigger?


Many TIA!
Dennis


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




Re: [OT] C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Jordi Gutiérrez Hermoso wrote:

On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:

In a C++ program I am reading a data file for later processing and
computations. While reading that data file, I want to keep track of data
items (doubles) read.


Use std::list and other standard data structures.


I am using them where ever I can. In this case however, I am using the 
data with ARPACK libraries and need to put it in a FORTRAN style 2D 
array. Everywhere else though, I am using C++ STL.



It's C++. Don't use C arrays, ugh.

If you are comfortable with IRC, I find that ##c++ on Freenode is full
of bright people.

And what does this have to do with Debian?


er .. ahem .. yeah, sorry about that, should have had OT in the subject. 
But now that you mention this, let me explain a bit why I did not post 
it in C++ newsgroup. If you have visited that, it is full of people who 
want to discuss only the standard. I have had that experience, so gave 
it a shot here.


Will try the IRC. Thanks,
->HS
PS: I just put "OT" in the subject line.





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




Re: exim4 config for Lenny?

2008-05-06 Thread Paul Cartwright
On Tue May 6 2008, Florian Kulzer wrote:
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476987
> >
> > looks like it is a bug..
>
> This has been fixed in Sid.
>
> Your options right now:
>
> 1) Wait for the current Sid version to come to Lenny. This will happen
>    three days from now, unless there is another upgrade of the package
>    in Sid in the meantime.

I can wait 3 days. Since I'm not a mail server, it really is more of a bother 
than a major issue, at least for me.
thanks for the info and the options, I take door #1 !
I'm just happy to have my sound working again, Lenny working again.. life is 
good:)

-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


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



Re: C++ programming: keeping count of data items read from file

2008-05-06 Thread Jordi Gutiérrez Hermoso
On 06/05/2008, H.S. <[EMAIL PROTECTED]> wrote:
> In a C++ program I am reading a data file for later processing and
> computations. While reading that data file, I want to keep track of data
> items (doubles) read.

Use std::list and other standard data structures.

It's C++. Don't use C arrays, ugh.

If you are comfortable with IRC, I find that ##c++ on Freenode is full
of bright people.

And what does this have to do with Debian?

- Jordi G. H.


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



Re: C++ programming: keeping count of data items read from file

2008-05-06 Thread Robert Baron
On Tue, May 6, 2008 at 12:57 PM, Ron Johnson <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 05/06/08 11:42, H.S. wrote:
> > Hello,
> >
> > In a C++ program I am reading a data file for later processing and
> > computations. While reading that data file, I want to keep track of data
> > items (doubles) read.
> >
> > The data file is just a text file with N lines with C doubles in each
> > line (N and C are known a priori). For now, I just read from the file
> > stream in to a 2D array variable by reading each double at a time.
> >
> > Now I am trying to introduce some sanity checking into this reading
> > block. Here is what I am trying to do:
> > 1. Verify how many doubles I have read in each line. Must be C. If they
> > are not C, then the input file is corrupt.
> > 2. Verify that the total number of data items are NxC. This is simple, I
> > just keep a track of how many numbers I have read.
> >
> > So, how do I go about doing (1) above? I was thinking of somehow
> > checking if I have reached the end of line somehow (EOL?) but haven't
> > found a method to do so. All I have found is EOF.
>
> This smells suspiciously like CompSci homework.
>
> - --
> Ron Johnson, Jr.
> Jefferson LA  USA
>
> We want... a Shrubbery!!


And it is finals season.

Rob.


Re: C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Ron Johnson wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/06/08 11:42, H.S. wrote:

Hello,

In a C++ program I am reading a data file for later processing and
computations. While reading that data file, I want to keep track of data
items (doubles) read.

The data file is just a text file with N lines with C doubles in each
line (N and C are known a priori). For now, I just read from the file
stream in to a 2D array variable by reading each double at a time.

Now I am trying to introduce some sanity checking into this reading
block. Here is what I am trying to do:
1. Verify how many doubles I have read in each line. Must be C. If they
are not C, then the input file is corrupt.
2. Verify that the total number of data items are NxC. This is simple, I
just keep a track of how many numbers I have read.

So, how do I go about doing (1) above? I was thinking of somehow
checking if I have reached the end of line somehow (EOL?) but haven't
found a method to do so. All I have found is EOF.


This smells suspiciously like CompSci homework.



Nope, it isn't. The program implements an algorithm in my research. I 
have the program running, but now I am also generating the data file 
automatically. The above request is to catch any errors creeping in to 
the data file due to the new program I am writing to generate it.





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




Re: C++ programming: keeping count of data items read from file

2008-05-06 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/06/08 11:42, H.S. wrote:
> Hello,
> 
> In a C++ program I am reading a data file for later processing and
> computations. While reading that data file, I want to keep track of data
> items (doubles) read.
> 
> The data file is just a text file with N lines with C doubles in each
> line (N and C are known a priori). For now, I just read from the file
> stream in to a 2D array variable by reading each double at a time.
> 
> Now I am trying to introduce some sanity checking into this reading
> block. Here is what I am trying to do:
> 1. Verify how many doubles I have read in each line. Must be C. If they
> are not C, then the input file is corrupt.
> 2. Verify that the total number of data items are NxC. This is simple, I
> just keep a track of how many numbers I have read.
> 
> So, how do I go about doing (1) above? I was thinking of somehow
> checking if I have reached the end of line somehow (EOL?) but haven't
> found a method to do so. All I have found is EOF.

This smells suspiciously like CompSci homework.

- --
Ron Johnson, Jr.
Jefferson LA  USA

We want... a Shrubbery!!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIII4LS9HxQb37XmcRAsbtAKDfa5e5e+8t67npz6jvsIJY40fPiQCgmEa+
Js0qVrbUiDcRxy/5QLm4xxY=
=6dN9
-END PGP SIGNATURE-


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



Re: exim4 config for Lenny?

2008-05-06 Thread Florian Kulzer
On Tue, May 06, 2008 at 11:52:49 -0400, Paul Cartwright wrote:

[...]

> # apt-get install apt-listbugs
> ..
> Setting up apt-listbugs (0.0.88) ...
> Errors were encountered while processing:
>  exim4-daemon-light
>  exim4
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> # dpkg --configure exim4-daemon-light
> Setting up exim4-daemon-light (4.69-2+b1) ...
> Starting MTA:exim: incompatible command-line options or arguments
> invoke-rc.d: initscript exim4, action "start" failed.
> dpkg: error processing exim4-daemon-light (--configure):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  exim4-daemon-light
> # 
> 
> then we go to BTS:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476987
> 
> looks like it is a bug..

This has been fixed in Sid.

Your options right now:

1) Wait for the current Sid version to come to Lenny. This will happen
   three days from now, unless there is another upgrade of the package
   in Sid in the meantime.

2) Grab the relevant Sid packages and install them right away. (I think
   this should work, but I cannot guarantee it.)

3) Try to fix /etc/init.d/exim4 yourself. I have included the diff
   between the broken version 4.69-2+b1 and the fixed version 4.69-5+b1
   below. It should be possible to use this diff to patch ("man patch")
   the initscript. (Again, I think this should work, but I cannot
   guarantee it.)



--- etc-init.d-exim4_4.69-2+b1_i386 2008-05-06 16:47:46.0 +0200
+++ etc-init.d-exim4_4.69-5+b1_i386 2008-05-06 16:48:30.0 +0200
@@ -21,7 +21,7 @@
 
 set -e
 
-if ! [ -x "/lib/lsb/init-functions" ]; then
+if [ -r "/lib/lsb/init-functions" ]; then
   . /lib/lsb/init-functions
 else
   echo "E: /lib/lsb/init-functions not found, lsb-base (>= 3.0-6) needed"
@@ -93,27 +93,37 @@
 combined)
   start_daemon -p "$PIDFILE" \
 "$DAEMON" -bd "-q${QFLAGS}${QUEUEINTERVAL}" \
-"${COMMONOPTIONS}" "${QUEUERUNNEROPTIONS}" "${SMTPLISTENEROPTIONS}"
+${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+   ${QUEUERUNNEROPTIONS:+"${QUEUERUNNEROPTIONS}"} \
+   ${SMTPLISTENEROPTIONS:+"${SMTPLISTENEROPTIONS}"}
   log_progress_msg "exim4"
   ;;
 separate)
   start_daemon -p "$PIDFILE" \
-"$DAEMON" -bd "${SMTPLISTENEROPTIONS}" "${COMMONOPTIONS}"
+"$DAEMON" -bd \
+${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+   ${SMTPLISTENEROPTIONS:+"${SMTPLISTENEROPTIONS}"}
   log_progress_msg "exim4_listener"
   start_daemon -p "$QRPIDFILE" \
-"$DAEMON" -oP "$QRPIDFILE" \
-"-q${QFLAGS}${QUEUEINTERVAL}" "${QUEUERUNNEROPTIONS}" 
"${COMMONOPTIONS}"
+"$DAEMON" -oP $QRPIDFILE \
+"-q${QFLAGS}${QUEUEINTERVAL}" \
+${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+   ${QUEUERUNNEROPTIONS:+"${QUEUERUNNEROPTIONS}"}
   log_progress_msg "exim4_queuerunner"
   ;;
 queueonly)
   start_daemon -p "$QRPIDFILE" \
-"$DAEMON" -oP "$QRPIDFILE" \
-"-q${QFLAGS}${QUEUEINTERVAL}" "${QUEUERUNNEROPTIONS}" 
"${COMMONOPTIONS}"
+"$DAEMON" -oP $QRPIDFILE \
+"-q${QFLAGS}${QUEUEINTERVAL}" \
+${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+   ${QUEUERUNNEROPTIONS:+"${QUEUERUNNEROPTIONS}"}
   log_progress_msg "exim4_queuerunner"
   ;;
 no|ppp)
   start_daemon -p "$PIDFILE" \
-"$DAEMON" -bd "${SMTPLISTENEROPTIONS}"
+"$DAEMON" -bd \
+${COMMONOPTIONS:+"${COMMONOPTIONS}"} \
+   ${SMTPLISTENEROPTIONS:+"${SMTPLISTENEROPTIONS}"}
   log_progress_msg "exim4_listener"
   ;;
 nodaemon)



-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Re: Re: Re: Can't resolve ftp.us.debian.org

2008-05-06 Thread [EMAIL PROTECTED]
On 5/6/08, NN_il_Confusionario <[EMAIL PROTECTED]> wrote:
> On Mon, May 05, 2008 at 09:11:46PM -0400, [EMAIL PROTECTED] wrote:
> > > strace -f -o /tmp/apt-get.log apt-get update
> > Any other ideas?  - John
>
> yes, post (or, better, make it avilable on a web server) the file
> /tmp/apt-get.log where strace has put its debug information.

http://wa9als.com/apt-get.log

> Moreover, what happened when in sources.list you used the ip in place of
> security.debian.org ?

Replacing the name with the IP mostly works - There was some problem
with ftp.us.debian.org and getting the packages list, but as I recall
the others worked.  I had been trying to install the latest
spamassassin from backports with apt-get, and that had also not
worked.  However, it did work fine with the backports IP.

The URL for the apt-get.log is above - Nasty looking format but maybe
it will speak to one of you!

Thanks - John


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



C++ programming: keeping count of data items read from file

2008-05-06 Thread H.S.

Hello,

In a C++ program I am reading a data file for later processing and 
computations. While reading that data file, I want to keep track of data 
items (doubles) read.


The data file is just a text file with N lines with C doubles in each 
line (N and C are known a priori). For now, I just read from the file 
stream in to a 2D array variable by reading each double at a time.


Now I am trying to introduce some sanity checking into this reading 
block. Here is what I am trying to do:
1. Verify how many doubles I have read in each line. Must be C. If they 
are not C, then the input file is corrupt.
2. Verify that the total number of data items are NxC. This is simple, I 
just keep a track of how many numbers I have read.


So, how do I go about doing (1) above? I was thinking of somehow 
checking if I have reached the end of line somehow (EOL?) but haven't 
found a method to do so. All I have found is EOF.


thanks,
->HS


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




Re: Illegal locales?

2008-05-06 Thread Osamu Aoki
On Tue, May 06, 2008 at 02:26:40PM +0300, Dotan Cohen wrote:
> I noticed that my locale definitions are not defined in the available
> system locales:
> 
> [EMAIL PROTECTED]:~$ locale
> LANG=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
> [EMAIL PROTECTED]:~$ locale -a
> C
> en_AU.utf8
> en_BW.utf8
> en_CA.utf8
> en_DK.utf8
> en_GB.utf8
> en_HK.utf8
> en_IE.utf8
> en_IN
> en_NZ.utf8
> en_PH.utf8
> en_SG.utf8
> en_US.utf8
> en_ZA.utf8
> en_ZW.utf8
> he_IL.utf8
> POSIX
> [EMAIL PROTECTED]:~$
> 
> Is "en_US.UTF-8" the same as "en_US.utf8" so far as the system is
> concerned? Thanks in advance.

Yes, as I understand.  

> Dotan Cohen
> 
> http://what-is-what.com
> http://gibberish.co.il
> א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
> 
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?


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



Re: apt-get wants to uninstatll grub

2008-05-06 Thread Tom Brown
On Mon, 2008-05-05 at 22:45 -0600, Bob Proulx wrote:
> Tom Brown wrote:
> > I did an 'apt-get update/upgrade' from sarge to etch. Everything went
> > fine.
> 
> Did you 'apt-get upgrade'?  Or did you 'apt-get dist-upgrade'?  That
> is a very important distinction.  If you only did an 'upgrade' then
> you are not done yet.
> 
> > Then I wanted to upgrade my kernel. This command:
> > 
> > apt-get install linux-image-2.6.18-4-686
> > 
> > caused apt-get to want to uninstall grub and then install lilo. Why is
> > that happening?
> 
> Seems like an 'upgrade' versus 'dist-upgrade' issue to me.
> 
> You might want to install apt-show-versions and looking at the output
> of it.
> 
>   sudo apt-get install apt-show-versions
> 
>   apt-show-versions | pager
> 
> It should have interesting information.

The 'dist-upgrade' worked.

Thanks!
Tom



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



Re: exim4 config for Lenny?

2008-05-06 Thread Paul Cartwright
On Tue May 6 2008, Chris Bannister wrote:
> > and when it was over:
> >  exim4 depends on exim4-daemon-light | exim4-daemon-heavy |
> > exim4-daemon-custom; however:
> >   Package exim4-daemon-light is not configured yet.
> >   Package exim4-daemon-heavy is not installed.
> >   Package exim4-daemon-custom is not installed.
> > dpkg: error processing exim4 (--configure):
> >  dependency problems - leaving unconfigured
> > Errors were encountered while processing:
> >  exim4-daemon-light
> >  exim4
>
> Install apt-listbugs, then try again. Then check the BTS
 
# apt-get install apt-listbugs
..
Setting up apt-listbugs (0.0.88) ...
Errors were encountered while processing:
 exim4-daemon-light
 exim4
E: Sub-process /usr/bin/dpkg returned an error code (1)

# dpkg --configure exim4-daemon-light
Setting up exim4-daemon-light (4.69-2+b1) ...
Starting MTA:exim: incompatible command-line options or arguments
invoke-rc.d: initscript exim4, action "start" failed.
dpkg: error processing exim4-daemon-light (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 exim4-daemon-light
# 

then we go to BTS:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476987

looks like it is a bug..

-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


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



Re: exim4 config for Lenny?

2008-05-06 Thread Paul Cartwright
On Tue May 6 2008, NN_il_Confusionario wrote:
> >invoke-rc.d: initscript exim4, action "start" failed.
>
>    Linkname: invoke-rc.d: initscript exim4, action "start" failed - Google
> Search URL:
> http://www.google.com/search?q=invoke-rc.d%3A+initscript+exim4%2C+action+%2
>2start%22+failed&num=100
>
> seems to find relevant information from debian bug tracking system

pardon my ignorance, I looked through many of those on google and hundreds of 
lines of the emails and still don't see anything that fixes it.

-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


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



  1   2   >