Re: [pygtk] how to add to a scrolledwindow?

2011-01-03 Thread Brian Keck

On Sun, 02 Jan 2011 19:20:28 BST, Timo wrote:
On 02-01-11 14:42, Brian Keck wrote:
...
 A minimal example is ...
Not tested, but try these changes:
...

Your changes made it work,  something similar also fixed my hildon app.

But when I tried to understand why it fixed the example, I realized that
I'd made a silly mistake with 'window' (which I guess you saw).  Just
fixing the mistake made it work (with button_press_event as well as
clickable).

So thanks, but sorry for the noise,

Brian Keck

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


[pygtk] how to add to a scrolledwindow?

2011-01-02 Thread Brian Keck

Hello,

I've written very little pygtk ( no straight gtk),  am stuck trying to
add to a vbox inside a scrolledwindow.

A minimal example is ...

import gtk
window = gtk.Window()
window.connect('destroy', gtk.main_quit)
scrolled = gtk.ScrolledWindow()
window.add(scrolled)
vbox = gtk.VBox()
scrolled.add_with_viewport(vbox)
def addbutton(window, event):
  vbox.pack_start(gtk.Button('extra'))
  window.show_all
b1 = gtk.Button('aaa')
b1.connect('button_press_event', addbutton)
vbox.pack_start(b1)
b2 = gtk.Button('bbb')
vbox.pack_start(b2)
window.show_all()
gtk.main()

I click 'aaa' but no 'extra' appears.

The actual application starts with a list of book authors as button
labels.  Clicking on an author should insert the author's book titles (a
vbox of buttons) between this author  the next.  Also, it's for a Nokia
N900  really uses hildon.PannableArea etc.

Thanks for any help,
Brian Keck

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


question about button border colour

2010-12-26 Thread Brian Keck

Hello,

I've been baffled in my attempts to get rid of a minor ugliness in the
appearance of my 1st python/gtk/hildon/fremantle/n900 app.

The graphical part is simple,  appended below.

Currently it just shows a list of author's names.  Each author is a
button containing an hbox.  Each hbox contains 2 labels.  The buttons
are packed into a vbox, which is in a pannablearea.

Where I've been having trouble is in getting the background to be
completely (ie apart from the text) black (just because it looks best),
 being thwarted by the button borders.  These  the button background
seem to be unalterably grey.  I've got rid of the greyness after the
author name by adding the 2nd label which in each case is 200 spaces
inside span background=black.  Yuk.  I've got rid of most of the
border by inner-border = {0, 0, 0, 0}.  But the button ends are rounded,
 just to the left of each author name there's a nasty little grey nail
clipping.

I've tried {-10, 0, 0,0}.  Also in the rcstring, I've tried 'widget' 
'widget_class' clauses as well as the 'class' clause.  I've re-read
/etc/hildon/theme/gtk-2.0/gtkrc many times.

If someone's feeling unreasonably generous, I'd be happy to send the
books.py module that the graphical part ('books') imports.

Thanks for any help.

Brian Keck



#!/usr/bin/env python2.5

import os, sys
import re
import gtk, hildon, osso
import books

rcstring = 
style black-background
{
  bg[NORMAL] = { 0.0, 0.0, 0.0 }
  base[NORMAL] = { 0.0, 0.0, 0.0 }
  fg[NORMAL] = { 1.0, 1.0, 1.0 }
  GtkButton::inner-border = {0, 0, 0, 0}
}
class GtkButton style black-background

gtk.rc_parse_string(rcstring)

osso.Context('org.maemo.books', '1.0', False)

window = hildon.Window()
window.connect(destroy, gtk.main_quit)

pannable_area = hildon.PannableArea()
window.add(pannable_area)

vbox = gtk.VBox(False, 0)
pannable_area.add_with_viewport(vbox)

for author in books.authors:
  label = gtk.Label()
  label.set_markup(author.markup)

  label2 = gtk.Label()
  label2.set_markup('span background=black' + ' ' * 200 + '/span')

  hbox = gtk.HBox(False, 0)
  hbox.pack_start(label, False, True, 0)
  hbox.pack_start(label2, False, True, 0)

  button = gtk.Button()
  button.add(hbox)
  vbox.pack_start(button, False, True, 0)

window.show_all()

gtk.main()

___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: mbarcode trouble

2010-10-30 Thread Brian Keck

On Fri, 29 Oct 2010 20:52:09 +1100, Brian Keck wrote:
snip
Thanks ... that gives me the idea.  Tried harder to hold it still 
tried a brighter light, but it just keeps scanning.  Ie seems not
to recognize the scene as containing a barcode.
snip

Feel it my duty to the list to expose my silliness once more.
Works fine once I got my brain in gear ...

1) hold the n900 so that the red line within the box intersects the
   whole width of the barcode (top  bottom of the barcode can be
   outside the box ... guess it just scans along the red line)
2) press  hold the camera button till it switches to the 'results'
   screen

___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: mbarcode trouble

2010-10-29 Thread Brian Keck
On Thu, 28 Oct 2010 14:33:49 +0200, Alejandro López wrote:
Brian Keck wrote:
snip
Did this happened after upgrading to PR1.3?

I've only had it 3 weeks ... don't know what PR is in it.  (Have the
impression upgrading wipes your /etc  /usr/bin ... not attractive if
so.)

On Thu, 28 Oct 2010 10:05:50 CDT, Paul Hartman wrote:
On Thu, Oct 28, 2010 at 7:25 AM, Brian Keck bwk...@gmail.com wrote:
snip
Open your camera lens, close the camera app if it auto-starts, then
run mbarcode. Aim it at a barcode.
The application has a lighter-colored window in the middle of the
screen with a red line in it. Be sure your barcode fits entirely in
the light area. If it is a one-dimensional barcode, align it so that
the red line goes all the way through the whole barcode. It should
automatically detect and decode the barcode at that point, taking you
to a new screen where it shows the content of the barcode, link to
google it, etc.
Depending on lighting/color of barcode/angle of camera etc. it can
sometimes take a while to read it, or not work at all, but in the vast
majority of times I've tried it will read the barcode withinin two or
three seconds.

Thanks ... that gives me the idea.  Tried harder to hold it still 
tried a brighter light, but it just keeps scanning.  Ie seems not 
to recognize the scene as containing a barcode.

On Thu, 28 Oct 2010 15:21:04 EDT, R. A. Bilonick wrote:
On Thu, 2010-10-28 at 23:25 +1100, Brian Keck wrote:
snip
It took me a few tries to figure out how to scan. Start mbarcode, open
the camera lens, and close the camera program after it opens. Align the
N900 so that the barcode shows in the main viewing window. When you have
it reasonably large and centered, tap the viewing area once or twice to
cause mbarcode to focus. After a few seconds, the barcode numbers should
show up on the right hand side window. (I've never been able to do
anything with the bar code once it was captured! The only on-screen
buttons I see are scan and Open Image. I'm running PR1.3. I don't see
any settings for mbarcode. Maybe I need to install the plugins?)

Ditto.  

On Thu, 28 Oct 2010 18:28:46 EDT, R. A. Bilonick wrote:
On Thu, 2010-10-28 at 15:21 -0400, R. A. Bilonick wrote:
On Thu, 2010-10-28 at 23:25 +1100, Brian Keck wrote:
snip
snip
I only found two plugins (isbn and web request) and installed them. Now
mbarcode works differently with the red line. But it works fine and I
can search the output. Pretty neat.

Thanks for your help,
Brian Keck

___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: app manager trouble

2010-10-27 Thread Brian Keck

Thanks for the warning.

I'll see what strace says.

On Tue, 26 Oct 2010 15:25:35 +0200, Tanuva wrote:
Hello Brian,

I cannot really help you but want to warn you not to uninstall
preinstalled applications from the N900. I did that with the media
player once just to find it wasn't in the repositories so I had to
reflash the device to have it again. Be careful! :)

Marcel

Am 26.10.2010 14:58, schrieb Brian Keck:

Hello,

I seem to have broken the application manager (HAM) of my n900 within 2
days of buying it.  For example, when I tap 'update' or 'download', I
get 'no catalogues in use'  'no updates available'

___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: app manager trouble

2010-10-27 Thread Brian Keck
On Tue, 26 Oct 2010 16:20:28 +0200, Oliver Beck wrote:
Hi Brain,

if only

dit you have tryed to copy
/etc/apt/sources.list.d/hildon-application-manager.list
to
/etc/apt/sources.list
and do an 'apt-get update' afterwards?

AFAIK apt-get only looking to /etc/apt/sources.list for his cataloges.
When this file is empty apt does'nt know what to install.

Thanks, but apt-get works fine with /etc/apt/sources.list empty 
/etc/apt/sources.list.d/hildon-application-manager.list full, so I don't
think that can be right.

Brian, sadly

___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


app manager trouble

2010-10-26 Thread Brian Keck

Hello,

I seem to have broken the application manager (HAM) of my n900 within 2
days of buying it.  For example, when I tap 'update' or 'download', I
get 'no catalogues in use'  'no updates available'

Before it broke I successfully installed several packages with it, 
added devtools  installed several packages from there.

However after that I started using apt-get directly (command line), 
the same day I found HAM broken.  I wonder if I used apt-get while HAM
was running.

I've installed more packages with apt-get in the subsequent 2 weeks, so
am not too desperate.

Is there a way to fix it?  Would uninstalling  installing
hildon-application-manager be a bad idea?

Thanks for any help.  I've appended some possibly relevant contents.

Brian Keck



HAM log currently

  hildon-application-manager 2.2.65
  apt-worker exited.
  Password:
  apt-worker is not running
  apt-worker is not running
  connected to 240667af-08db-4c77-8af5-5b8a9b6b9221
  apt-worker is not running
  apt-worker is not running
  apt-worker is not running
  apt-worker is not running
  connected to 240667af-08db-4c77-8af5-5b8a9b6b9221
  apt-worker is not running
  apt-worker is not running
  apt-worker is not running
  apt-worker is not running
  connected to 240667af-08db-4c77-8af5-5b8a9b6b9221
  apt-worker is not running
  apt-worker is not running
  apt-worker is not running
  apt-worker is not running
  apt-worker is not running



/etc/apt/sources.list is empty



/etc/apt/sources.list.d/hildon-application-manager.list

  deb https://downloads.maemo.nokia.com/fremantle/ssu/apps/ ./
  deb https://downloads.maemo.nokia.com/fremantle/ssu/mr0 ./
  deb https://downloads.maemo.nokia.com/fremantle1.2/ovi/ ./
  deb http://repository.maemo.org/extras/ fremantle-1.2 free non-free
  deb http://repository.maemo.org fremantle/tools free non-free
  deb http://repository.maemo.org/extras-devel fremantle free non-free



/etc/hildon-application-manager/catalogues

  catalogues
   catalogue
filevariant-catalogues/file
idnokia-certified/id
   /catalogue
   catalogue
filevariant-catalogues/file
idnokia-system/id
   /catalogue
   catalogue
filevariant-catalogues/file
idovi/id
   /catalogue
   catalogue
filevariant-catalogues/file
idmaemo-extras/id
   /catalogue
   catalogue
urihttp://repository.maemo.org/uri
distfremantle/tools/dist
componentsfree non-free/components
nameDevtools/name
   /catalogue
   catalogue
urihttp://repository.maemo.org/extras-devel/uri
distfremantle/dist
componentsfree non-free/components
nameMaemo extras-devel/name
   /catalogue
  /catalogues

___
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users


Re: You are now subscribed to linuxtv-dvb-apps

2010-02-26 Thread Brian Keck

On Fri, 26 Feb 2010 08:02:53 BST, Raphael Hertzog wrote:
[snip]
You reply to subscription confirmation mails that you have not asked for?
Seriously...

Only once.

I was expecting somehow that either the Debian maintainer or the upstream
maintainer of linuxtv-dvb-apps thought that it was a good idea to receive
Debian BTS mails on his mailing list.

If that's not the case, someone should unsubscribe again (or I can do it
for you). Ccing the debian maintainers to verify.

Please do it for me.

Hope I haven't made much work for anyone,

Brian Keck

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: CONFIRM f156db6194c056981f5711b7ef302743

2010-02-25 Thread Brian Keck
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Sony VAIO P series

2009-02-17 Thread Brian Keck

Hello,

Does anyone know if debian (or any linux) can be installed on the new
Sony VAIO P series netbooks?  Will they boot from a USB drive (they lack
optical drives)?

Thanks,
Brian Keck


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: trouble with -p

2008-07-24 Thread Brian Keck

On Sun, 20 Jul 2008 23:08:56 +0200, Matthias Vill wrote:
Brian Keck schrieb:
 If you do
 wget http://www.ifixit.com/Guide/First-Look/iPhone3G
 then you get an HTML file called iPhone3G.
 But if you do
 wget -p http://www.ifixit.com/Guide/First-Look/iPhone3G
 then you get a directory called iPhone3G.  
 ...
 But of course I want both.  Is there a way of getting wget -p to do
 something clever, like renaming the HTML file?  
 ...
maybe this helps:
--html-extension

That's what I was hoping for.

At least it works for the above.

(It also renames diggthis.js to diggthis.js.html, but I don't care about
that).

Thanks,
Brian Keck


Re: trouble with -p

2008-07-23 Thread Brian Keck

On Sat, 19 Jul 2008 10:26:25 MST, Micah Cowan wrote:
Brian Keck wrote:
If you do
wget http://www.ifixit.com/Guide/First-Look/iPhone3G
then you get an HTML file called iPhone3G.
But if you do
wget -p http://www.ifixit.com/Guide/First-Look/iPhone3G
then you get a directory called iPhone3G.  
...
If you specify the link with a trailing slash, then Wget will realize
iPhone3G is a directory, and will store the file it finds there as
iPhone3G/index.html. 
...

I should have thought of adding a trailing slash ... it works in this
case.

Thanks,
Brian Keck



trouble with -p

2008-07-19 Thread Brian Keck
Hello,

If you do

wget http://www.ifixit.com/Guide/First-Look/iPhone3G

then you get an HTML file called iPhone3G.

But if you do

wget -p http://www.ifixit.com/Guide/First-Look/iPhone3G

then you get a directory called iPhone3G.  

This makes sense if you look at the links in the HTML file, like

/Guide/First-Look/iPhone3G/images/3jYKHyIVrAHnG4Br-standard.jpg

But of course I want both.  Is there a way of getting wget -p to do
something clever, like renaming the HTML file?  I've looked through
wget(1)  /usr/share/doc/wget  the comments in the 1.10.2 source
without seeing anything relevant.

Thanks,
Brian Keck


Re: Sony VAIO support, anyone have experience?

2008-04-04 Thread Brian Keck

On Wed, 02 Apr 2008 15:32:49 BST, Noah Slater wrote:
Hello,

I am wanting to buy a new laptop primarily to move away from PowerPC so that
my machine is better supported by a default Debian installation.

I really like the look of the VAIOs but wanted to know if anyone has any
feedback on how well supported they are. I don't want to be patching kernels
or hacking my xorg to get things running smoothly.

Wireless would be nice too, preferably without using non-free software.

I've had my tx17 for 2 years, spending 10+ hours/day on it, running
debian unstable.  Kernel  X are standard debian.  Wireless just worked
(it has a debian sid/i386 mirror updated nightly via wireless).

Brian Keck


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



slow resume from s2ram

2008-02-05 Thread Brian Keck

Hello,

I can't get my otherwise lovely debian/sid Vaio TX17 to resume promptly
from suspend-to-ram.

Until recently it resumed at all maybe 1 in 4 times from
's2ram -f -p' in X, always taking several minutes, apparently 
due to the hard disk (1.8 Toshiba HDD1544/MK6006GAH).   

Last week I tried 2 things:

  * added /etc/modprobe.d/libata with
options libata noacpi=0

  * built a kernel + initrd from debian linux-source-2.6.24 with
CONFIG_BLK_DEV_IDEACPI=y

This boots OK, with ...

   $ cat /sys/module/libata/parameters/noacpi
   0

But the only improvement is that, from X, it resumes every time (maybe
10 times so far).  It still takes about 90 seconds (the disc light is on
for the 1st 30 seconds, then after another 60 seconds it comes on again
 the display comes back).

This is with the s2ram from debian/sid current uswsusp.
Oddly, s2ram has always worked best from X.

dmesg below ... presumably the delay is connected to the lines ...
  hda: lost interrupt
  hda: dma_timer_expiry: dma status == 0x21

Any ideas?

Thanks,
Brian Keck

--

Linux version 2.6.24 (2.6.24-1) ([EMAIL PROTECTED]) (gcc version 4.2.1 (Debian 
4.2.1-5)) #2 SMP Fri Feb 1 20:28:43 EST 2008
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009f800 (usable)
 BIOS-e820: 0009f800 - 000a (reserved)
 BIOS-e820: 000d8000 - 0010 (reserved)
 BIOS-e820: 0010 - 3f69 (usable)
 BIOS-e820: 3f69 - 3f69d000 (ACPI data)
 BIOS-e820: 3f69d000 - 3f70 (ACPI NVS)
 BIOS-e820: 3f70 - 4000 (reserved)
 BIOS-e820: e000 - f0006000 (reserved)
 BIOS-e820: f0008000 - f000c000 (reserved)
 BIOS-e820: fed2 - fed9 (reserved)
 BIOS-e820: ff00 - 0001 (reserved)
118MB HIGHMEM available.
896MB LOWMEM available.
Entering add_active_range(0, 0, 259728) 0 entries of 256 used
Zone PFN ranges:
  DMA 0 - 4096
  Normal   4096 -   229376
  HighMem229376 -   259728
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0:0 -   259728
On node 0 totalpages: 259728
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 237 pages used for memmap
  HighMem zone: 30115 pages, LIFO batch:7
  Movable zone: 0 pages used for memmap
DMI 2.3 present.
ACPI: RSDP 000F6790, 0014 (r0 PTLTD )
ACPI: RSDT 3F697E7C, 0044 (r1   Sony   V1 20050805 PTL 0)
ACPI: FACP 3F69CE78, 0084 (r2   Sony   V1 20050805 PTL50)
ACPI: DSDT 3F69896F, 4509 (r1   Sony   V1 20050805 PTL   10E)
ACPI: FACS 3F6ADFC0, 0040
ACPI: APIC 3F69CEFC, 0068 (r1   Sony   V1 20050805 PTL50)
ACPI: BOOT 3F69CFD8, 0028 (r1   Sony   V1 20050805 PTL 1)
ACPI: MCFG 3F69CF9C, 003C (r1   Sony   V1 20050805 PTL5F)
ACPI: SSDT 3F69873D, 022E (r1   Sony   V1 20050805 PTL  20030224)
ACPI: SSDT 3F6982F8, 0235 (r1   Sony   V1 20050805 PTL  20030224)
ACPI: SSDT 3F6980D9, 021F (r1   Sony   V1 20050805 PTL  20030224)
ACPI: SSDT 3F697EC0, 0219 (r1   Sony   V1 20050805 PTL  20030224)
ACPI: DMI detected: Sony
ACPI: PM-Timer IO Port: 0x1008
ACPI: Local APIC address 0xfee0
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:13 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] disabled)
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: IOAPIC (id[0x01] address[0xfec0] gsi_base[0])
IOAPIC[0]: apic_id 1, version 32, address 0xfec0, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 5000 (gap: 4000:a000)
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 257699
Kernel command line: root=/dev/hda2 ro
mapped APIC to b000 (fee0)
mapped IOAPIC to a000 (fec0)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 1197.028 MHz processor.
Console: colour VGA+ 80x25
console [tty0] enabled
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1020860k/1038912k available (1692k kernel code, 17256k reserved, 671k 
data, 216k init, 121408k highmem)
virtual kernel memory layout:
fixmap  : 0xfff4d000 - 0xf000   ( 712 kB)
pkmap   : 0xff80

bug in escaped filename calculation?

2007-10-04 Thread Brian Keck

Hello,

I'm wondering if I've found a bug in the excellent wget.
I'm not asking for help, because it turned out not to be the reason
one of my scripts was failing.

The possible bug is in the derivation of the filename from a URL which
contains UTF-8.

The case is:

  wget http://en.wikipedia.org/wiki/%C3%87atalh%C3%B6y%C3%BCk

Of course these are all ascii characters, but underlying it are
3 nonascii characters, whose UTF-8 encoding is:

  hexoctal name
    ---  -
  C387  303 274  C-cedilla
  C3B6  303 266  o-umlaut
  C3BC  303 274  u-umlaut

The file created has a name that's almost, but not quite, a valid UTF-8
bytestring ... 

  ls *y*k | od -tc
  000 303   %   8   7   a   t   a   l   h 303 266   y 303 274   k  \n

Ie the o-umlaut  u-umlaut UTF-8 encodings occur in the bytestring,
but the UTF-8 encoding of C-cedilla has its 2nd byte replaced by the
3-byte string %87.

I'm guessing this is not intended.  

I would have sent a fix too, but after finding my way through http.c 
retr.c I got lost in url.c.

Brian Keck


Re: trouble with -p

2007-08-13 Thread Brian Keck
On Sun, 12 Aug 2007 19:44:36 MST, Micah Cowan wrote:
Brian Keck wrote:
 Sometimes -p doesn't work.  For instance:
...
You want the -H option.

Thanks, so I do,
Brian Keck


trouble with -p

2007-08-12 Thread Brian Keck

Hello,

Sometimes -p doesn't work.  For instance:

wget -p http://en.wikipedia.org/wiki/Herbig-Haro_object

This fetches several images from en.wikipedia.org, but none of the
several images from upload.wikimedia.org.

Is this normal behaviour?

There's some javascript, but it looks harmless.  The source in the neighbourhood
of one of the omitted images (tidied up a bit) is ...

div class=thumbinner style=width:152px;
a href=http://en.wikipedia.org/wiki/Image:HH_object_diagram.svg;
  class=internal title=Schematic diagram of how HH objects arise
img alt=Schematic diagram of how HH objects arise
  longdesc=/wiki/Image:HH_object_diagram.svg class=thumbimage
  
src=http://upload.wikimedia.org/wikipedia/commons/thumb/6/6a/HH_object_diagram.svg/150px-HH_object_diagram.svg.png;
  width=150 height=300 /
/a

I'm using wget 1.10.2 on debian unstable.

Thanks for any help,
Brian Keck


Re: Ultra 5, Debian 4, xorg/video problem (PGX32), please help???

2007-07-10 Thread Brian Keck
xorg.conf for my Ultra 5 ...

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type man /etc/X11/xorg.conf at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section Files
FontPath/usr/share/fonts/X11/misc
FontPath/usr/share/fonts/X11/cyrillic
FontPath/usr/share/fonts/X11/100dpi/:unscaled
FontPath/usr/share/fonts/X11/75dpi/:unscaled
FontPath/usr/share/fonts/X11/Type1
FontPath/usr/share/fonts/X11/100dpi
FontPath/usr/share/fonts/X11/75dpi
# path to defoma fonts
FontPath/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
EndSection

Section Module
Loadi2c
Loadbitmap
Loadddc
Loaddri
Loadextmod
Loadfreetype
Loadglx
Loadint10
Loadtype1
Loadvbe
EndSection

Section InputDevice
Identifier  Generic Keyboard
Driver  kbd
Option  CoreKeyboard
Option  XkbRules  xfree86
Option  XkbModel  pc105
Option  XkbLayout us
EndSection

Section InputDevice
Identifier  Configured Mouse
Driver  mouse
Option  CorePointer
Option  Device/dev/input/mice
Option  Protocol  ExplorerPS/2
Option  Emulate3Buttons   true
Option  ZAxisMapping  4 5
EndSection

Section Device
Identifier  ATI 3D Rage Pro 215GP
Driver  ati
VideoRam8192
EndSection

Section Monitor
# 1 input
Identifier  GDM-20D10
Option  DPMS
HorizSync   28-80
VertRefresh 43-60
EndSection

Section Monitor
# 2 inputs
Identifier  GDM-5010PT
Option  DPMS
HorizSync   30-96
VertRefresh 48-160
EndSection

Section Screen
Identifier  single input 20-inch Sun/Sony
Device  ATI 3D Rage Pro 215GP
Monitor GDM-20D10
DefaultDepth8
SubSection Display
Depth   1
Modes   1600x1200
EndSubSection
SubSection Display
Depth   4
Modes   1600x1200
EndSubSection
SubSection Display
Depth   8
Modes   1600x1200
EndSubSection
SubSection Display
Depth   15
Modes   1600x1200
EndSubSection
SubSection Display
Depth   16
Modes   1600x1200
EndSubSection
SubSection Display
Depth   24
Modes   1600x1200
EndSubSection
EndSection

Section Screen
Identifier  double input 21-inch Sun/Sony
Device  ATI 3D Rage Pro 215GP # maybe GT
Monitor GDM-5010PT
DefaultDepth8
SubSection Display
Depth   1
Modes   1600x1200
EndSubSection
SubSection Display
Depth   4
Modes   1600x1200
EndSubSection
SubSection Display
Depth   8
Modes   1600x1200
EndSubSection
SubSection Display
Depth   15
Modes   1600x1200
EndSubSection
SubSection Display
Depth   16
Modes   1600x1200
EndSubSection
SubSection Display
Depth   24
Modes   1600x1200
EndSubSection
EndSection

Section ServerLayout
Identifier  double
Screen  double input 21-inch Sun/Sony
InputDevice Generic Keyboard
InputDevice Configured Mouse
EndSection

Section DRI
Mode0666
EndSection


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



[Hx4700-port] sudden death of wifi

2007-05-01 Thread Brian Keck

Hello,

The wifi on my 2nd hand hx4700 with familiar-0.8.4 has been working
fine for the 2 months I've had it, but after resuming today it wouldn't
associate.  My laptop is associating OK,  I've turned the access point
off for 20 minutes in case it was the problem.

iwconfig says ...

wlan0 IEEE 802.11b+  ESSID:STA4655B2  Nickname:acx v0.3.35
  Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
  Bit Rate:22 Mb/s   Tx-Power=18 dBm   Sensitivity=176/255
  Retry min limit:7   RTS thr:off
  Power Management:off
  Link Quality:0  Signal level:0  Noise level:0
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0

The ESSID just comes from the ipaq mac-address.
Notice the zeros in the signal line.

iwlist scan says ...

wlan0 Failed to read scan data : Resource temporarily unavailable

I've tried calendar-itask-reset for 10 seconds followed by removing the
the battery for a minute or two, but still the wifi fails as above.

The usb networking is fine.

Can anyone diagnose this?

Thanks for any help,

Brian Keck
___
Hx4700-port mailing list
Hx4700-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/hx4700-port


Re: [Hx4700-port] sudden death of wifi

2007-05-01 Thread Brian Keck
On Tue, 01 May 2007 11:07:45 +0200, Enno \Gottox\ Boland wrote:
did you do ifconfig wlan0 up before scanning?

blush, no, works now thanks
___
Hx4700-port mailing list
Hx4700-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/hx4700-port


Re: [Hx4700-port] how to backup before kernel upgrade?

2007-04-08 Thread Brian Keck
On Sun, 08 Apr 2007 10:07:30 +0400, kmeaw wrote:
...
hx4700 has two physically seperate FlashROM chips (each of 64Mb), so you
have 128Mb FlashROM total. 

OK, I was misled by
http://www.handhelds.org/moin/moin.cgi/HpIpaqH4100Hardware
which says ( mentions hx4700) ...
  H4xxx Quickspecs
...
* HTC chip (HTC 30H88028-00 2226560XB101 JAPAN 0320EAI F0103ZAF) -
  Asic3
* Flash: M-Systems MD3831-D32-V3-X (DiskOnChip Millennium Plus 32MB /
  Mobile DiskOnChip Plus 32MB) - NAND
* Memory: Samsung 2 banks of 256Mbit (65MB total)K4S561633C-RL(N)
...

Is that wrong for the hx4700, or is the extra 64 MB in the HTC chip?

WinCE needs ~50Mb for its kernel, services,
drivers and applications, so there is ~80Mb available to user. Linux
allows user to make use of 80478208+50331648=130,809,856 bytes of
FlashROM. You can use /dev/mtdblock3 for anything you want. ...

Yay.

Thanks, much enlightened,
Brian Keck
___
Hx4700-port mailing list
Hx4700-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/hx4700-port


[Hx4700-port] Re: SUMMARY: [Familiar] sed vi - how does can I use control chars in Familar.

2007-04-08 Thread Brian Keck
On Sun, 08 Apr 2007 09:27:25 -0400, Simon L wrote:
I found 0.8.2 bash and installed this so sed works, but I could not get
this to work in vi.

ipkg install vim
___
Hx4700-port mailing list
Hx4700-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/hx4700-port


Re: [Hx4700-port] how to backup before kernel upgrade?

2007-04-07 Thread Brian Keck
On Tue, 03 Apr 2007 19:56:14 EST, Travis Stratman wrote:
On Wed, 2007-04-04 at 03:05 +1000, Brian Keck wrote:
 On Tue, 03 Apr 2007 17:35:01 +0400, kmeaw wrote:
 Brian Keck :
  ...
  I've installed the familiar-build OE setup, added the navpoint.c patch
  posted recently, done 'bitbake handhelds-pxa-2.6',  run
  ipkg-make-index.
 
 [good advice]
[more good advice]

As advised, I just reflashed the bitbaked kernel,  it's working.  I
left /lib/modules/2.6.15-hh2 unchanged ... 802.11b still works so I
guess that was OK ... or was I just lucky (so far ...)?

I'm still puzzled about what's going on ... apologies in advance for
testing the list's patience ...

Is /boot/zImage-2.6.15-hh2 redundant ... could I delete it?

/proc/mtd converted to decimal says
dev   name  size
  --  --
mtd0  bootloader   1,048,576
mtd1  kernel   2,097,152
mtd2  root80,478,208
mtd3  home50,331,648
mtd4  asset  262,144

The boot  kernel  root contents are clear (especially since the 80 MB
'root' exactly matches 'df /'  the HP spec saying '80MB user-accessible
flash').

What is the 50 MB in 'home'? ... is that HP/Compaq/DEC proprietary code
seen by linux as essentially part of the hardware?

Anyway, thanks for the help,

Brian Keck
___
Hx4700-port mailing list
Hx4700-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/hx4700-port


Re: [Hx4700-port] how to backup before kernel upgrade?

2007-04-03 Thread Brian Keck
On Tue, 03 Apr 2007 17:35:01 +0400, kmeaw wrote:
Brian Keck ÐÉÛÅÔ:
 ...
 I've installed the familiar-build OE setup, added the navpoint.c patch
 posted recently, done 'bitbake handhelds-pxa-2.6',  run
 ipkg-make-index.

 I haven't yet done 'ipkg install kernel-image-2.6', because I'm a bit
 nervous, knowing that it will overwrite the existing zImage-2.6.15-hh2 
 /lib/modules/2.6.15-hh2 (I bumped the version from r2 to r3).
 ...

ipkg does not update the kernel, it could only be updated using SDG
bootldr's integrated flash utility. /boot/zImage file has nothing to do
with real kernel image.

Sorry to be dense, but /boot/zImage-2.6.15-hh2 is 1.2 MB ... surely
that's the linux kernel???  It seems (from df) to be on the same
partition as the rest of the rootfs ... is this an illusion?

Or is the problem that you can't overwrite /boot/zImage-2.6.15-hh2 while
it's running?

I notice in one of your earlier posts you mention internal flash having
6 partitions with the kernel, rootfs,  homefs on separate partitions.
All 3 of these seem to be in the same linux partition on my 4700 ...

  Filesystem   1k-blocks  Used Available Use% Mounted on
  /dev/mtdblock2   78592 45940 32652  58% /
  tmpfs10240   384  9856   4% /dev
  /dev/mmcblk0p1  983672 95664838040  10% /media/card
  tmpfs3121672 31144   0% /var
  tmpfs3121644 31172   0% /media/ram
  /dev/hda1  1950040 96352   1754632   5% /media/cf

Does /dev/mtdblock2 somehow stitch the 3 flash partitions into 1 linux
partition?

If you don't want your kernel to be updated,

But I do, that's exactly what I want (the navpoint patch is in there).

...

Thanks for the advice about recovering, but more for waking me up to
kernel installs being special.

I just found
  http://sdstrowes.co.uk/amuse/Kernel_compile_on_HP_iPAQ_hx4700.php
which is nice  detailed.

Brian Keck
___
Hx4700-port mailing list
Hx4700-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/hx4700-port


[Hx4700-port] how to backup before kernel upgrade?

2007-04-02 Thread Brian Keck

Hello,

My hx4700 with Familiar-0.8.4 has the stuck-key problem (after resume a
stream of up arrows is sent to X clients, though it eventually dries
up).

I've installed the familiar-build OE setup, added the navpoint.c patch
posted recently, done 'bitbake handhelds-pxa-2.6',  run
ipkg-make-index.  

I haven't yet done 'ipkg install kernel-image-2.6', because I'm a bit
nervous, knowing that it will overwrite the existing zImage-2.6.15-hh2 
/lib/modules/2.6.15-hh2 (I bumped the version from r2 to r3).

I'm posting to ask for advice about how to recover if I end up with an
unbootable system.

Can I use the bootloader to copy Familiar from flash to an SD or CF card,
 then copy it back if the kernel install fails?

I'm guessing this might be tricky, because when I backed up MSWin, it
was to an SD card (following the HpIpaqHx4700OriginalBootloader page),
but when I loaded Familiar, it was from a CF card (following the
HpIpaqHx4700HowtoInstallLinux page).

Thanks for any help,
Brian Keck
___
Hx4700-port mailing list
Hx4700-port@handhelds.org
https://www.handhelds.org/mailman/listinfo/hx4700-port


Re: What is the Best Way to Create Attachments using mhonarch?

2006-12-01 Thread Brian Keck
On Thu, 30 Nov 2006 10:56:57 MDT, Martin McCormick wrote:
   I use nmh as the user agent for mail and have recently
been asked to send various files to coworkers that contain
attached files full of processed information.  

I use mhbuild(1).  I can send you a wrapper script (perl) which lets you
say 'mkmime *.jpg'  the like.  But it doesn't involve mhonarc.

Brian Keck


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



[Suspend-devel] s2ram success on a Vaio TX17

2006-08-02 Thread Brian Keck

Hello,

This is to report a s2ram success on a Vaio TX17 ...
sys_vendor   = Sony Corporation
sys_product  = VGN-TX17GP_W
sys_version  = J0019H8C
bios_version = R0031V1

Kernel is Debian (sid) linux-image-2.6.17-1-686.

What works is 's2ram -f -p' from X.  

Without X, none of the command lines in README.s2ram-whitelist work.
The screen either stays black (-a) or commands hang  the kernel
complains via hda  ide about DMA  timeouts  lost interrupts.  I
didn't try vga=0.

With X, I also tried 's2ram -f -p -s'  's2ram -f -s'.  They seemed
not to work, but I may have been impatient.

After about 20 powercycles, I got a bit jaded, but if there's any
interest I'll try harder.

Thanks for s2ram,

Brian Keck

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel


Bug#368580: expect 5.43.0-3 dynamically linked but libexpect missing

2006-05-23 Thread Brian Keck
Package: expect
Version: 5.42.1-1.2
Severity: grave
Justification: renders package unusable


expect 5.43.0-3 is dynamically linked (unlike 5.43.0-2) but lacks
libexpect:

% ar xf /home/debian/pool/main/e/expect/expect_5.43.0-3_i386.deb
% tar xzf data.tgz
% ldd usr/bin/expect 
libexpect5.43.so = not found
...
% ls usr/lib
expect5.43

Brian Keck



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages expect depends on:
ii  libc6 2.3.6-7GNU C Library: Shared libraries
ii  tcl8.48.4.12-1   Tcl (the Tool Command Language) v8

expect recommends no packages.

-- no debconf information


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



Bug#368580: expect 5.43.0-3 dynamically linked but libexpect missing

2006-05-23 Thread Brian Keck
Package: expect
Version: 5.42.1-1.2
Severity: grave
Justification: renders package unusable


expect 5.43.0-3 is dynamically linked (unlike 5.43.0-2) but lacks
libexpect:

% ar xf /home/debian/pool/main/e/expect/expect_5.43.0-3_i386.deb
% tar xzf data.tgz
% ldd usr/bin/expect 
libexpect5.43.so = not found
...
% ls usr/lib
expect5.43

Brian Keck



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages expect depends on:
ii  libc6 2.3.6-7GNU C Library: Shared libraries
ii  tcl8.48.4.12-1   Tcl (the Tool Command Language) v8

expect recommends no packages.

-- no debconf information


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



Re: trouble replicating

2003-11-12 Thread Brian Keck
On Wed, 12 Nov 2003 12:14:05 +0200, Victoria Reznichenko wrote:
Yes, 'mipradius' is a current database and if you use option 'replicate-do-db=
mipradius', 'insert into mipsessions ..' query should be replicated. But in the
first post you said about database 'myradius', is this a typo?

How embarrassing,

It works now,

Thanks,
Brian Keck


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



trouble replicating

2003-11-05 Thread Brian Keck

Hello,

I'm having trouble with replication.  The binary logs arrive in the
slave directory, but don't get inserted into the database.

I'm just a beginner at SQL  mysql, in case it isn't obvious from
the following.

The replication is limited to a database called mipradius by a slave config 
'replicate-do-db=myradius', though the master sends updates for all databases.

There's nothing in the slave mysql.err after ...
  031106 14:56:38 Slave I/O thread: connected to master
  '[EMAIL PROTECTED]:3306', replication
  started in log 'xswirz0101-bin.004' at position 7838142
  
The master (UltraSPARC called xswirz0101 aka hass) is running
  mysql-standard-4.0.15-sun-solaris2.8-sparc.
The slave (PC called castor) is running 4.0.16 from the current debian unstable.

SHOW SLAVE STATUS\G
*** 1. row ***
  Master_Host: xswirz0101.iplab.trl.telstra.com.au
  Master_User: repl
  Master_Port: 3306
Connect_retry: 60
  Master_Log_File: xswirz0101-bin.004
  Read_Master_Log_Pos: 8612228
   Relay_Log_File: castor-relay-bin.001
Relay_Log_Pos: 774135
Relay_Master_Log_File: xswirz0101-bin.004
 Slave_IO_Running: Yes
Slave_SQL_Running: Yes
  Replicate_do_db: myradius
  Replicate_ignore_db:
   Last_errno: 0
   Last_error:
 Skip_counter: 0
  Exec_master_log_pos: 8612228
  Relay_log_space: 774135
1 row in set (0.00 sec)

Thanks for any help,
Brian Keck


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



[pygtk] selection_add_handler() implemented?

2001-03-08 Thread Brian Keck


Hello,

Is selection_add_handler() implemented?
I can't see it in the source.

Thanks,
Brian Keck


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



Re: [pygtk] selection_add_handler() implemented?

2001-03-08 Thread Brian Keck

On Fri, 09 Mar 2001 08:36:57 +0800, James Henstridge wrote:
On Thu, 8 Mar 2001, Brian Keck wrote:
 Is selection_add_handler() implemented?
 I can't see it in the source.
What is selection_add_handler() supposed to do?  I searched through the
gtk and gdk sources/headers, and there is no mention of a function by that
name.

I saw it in woody's libgtk-doc 1.0.6-4, in 
/usr/doc/libgtk-doc/tutorial-html/gtk_tut-20.html.

To save you looking, it says ...

  20.3 Supplying the selection

 Supplying the selection is a bit more complicated. You must register
 handlers that will be called when your selection is requested. For
 each selection/target pair you will handle, you make a call to:

  void gtk_selection_add_handler( GtkWidget*widget,
  GdkAtom   selection,
  GdkAtom   target,
  GtkSelectionFunction  function,
  GtkRemoveFunction remove_func,
  gpointer  data );

I guess this is obsolete?

I see the selection stuff in gtkselection.h seems to be in pygtk ...

Thanks,
Brian K


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



[pygtk] can I refer to rc file style names?

2001-02-19 Thread Brian Keck

Hello,

Gtk rc files include style declarations like
  style "xxx" { ... }

I'm wondering if it's possible for programs to refer to names like 'xxx'.

Just to be clear, I've written sort of a taskbar in pygtk.  The buttons
in the taskbar change colour to show which task has the focus.
Currently I do this rather clumsily,  a nicer solution would be
to have
  style "focussed" { ... bg[NORMAL] = { 0.0, 0.3, 0.7 } ... }
  style "unfocussed" { ... bg[NORMAL] = { 0.0, 0.7, 0.3 } ... }
in the rc file,  have the program change the button styles using
these names when the focus changes task.

Thanks for any help,
Brian Keck 

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk



Re: New course for Debian University

2000-12-29 Thread Brian Keck
On the question of /usr/src/linux  symlinks, Linus sent a couple
of messages to linux-kernel a few months ago ...

Brian Keck

--- Forwarded Messages

From [EMAIL PROTECTED] Thu Jul 27 17:49:26 2000
X-Authentication-Warning: palladium.transmeta.com: mail set sender to [EMAIL 
PROTECTED] using -f
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Linus Torvalds)
Subject: Re: RLIM_INFINITY inconsistency between archs
Date: 27 Jul 2000 00:39:51 -0700
Organization: Transmeta Corporation
Message-Id: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
Sender: [EMAIL PROTECTED]
Precedence: bulk
X-Loop: [EMAIL PROTECTED]
Content-Length: 4299

In article [EMAIL PROTECTED],
Boszormenyi Zoltan  [EMAIL PROTECTED] wrote:

/usr/include/asm is a symlink to /usr/src/linux/include/asm, as in the
original distribution but /usr/src/linux is a 2.4.0-testX tree.
With a 2.2.X source tree, it does not produce any warning.

I've asked glibc maintainers to stop the symlink insanity for the last
few years now, but it doesn't seem to happen.

Basically, that symlink should not be a symlink.  It's a symlink for
historical reasons, none of them very good any more (and haven't been
for a long time), and it's a disaster unless you want to be a C library
developer.  Which not very many people want to be.

The fact is, that the header files should match the library you link
against, not the kernel you run on.

Think about it a bit..  Imagine that the kernel introduces a new struct
X, and maintains binary backwards compatibility by having an old system
call in the old place that gets passed a pointer to struct old_X.
It's all compatible, because binaries compiled for the old kernel will
still continue to run - they'll use the same old interfaces they are
still used to, and they obviously do not know about the new ones.

Now, if you start mixing a new kernel header file with an old binary
glibc, you get into trouble.  The new kernel header file will use the
_new_ struct X, because it will assume that anybody compiling against
it is after the new-and-improved interfaces that the new kernel
provides.

But then you link that program (with the new struct X) to the binary
library object archives that were compiled with the old header files,
that use the old struct old_X (which _used_ to be X), and that use the
old system call entry-points that have the compatibility stuff to take
struct old_X.

Boom! Do you see the disconnect?

In short, the _only_ people who should update their /usr/include/linux
tree are the people who actually make library releases and compile their
own glibc, because if they want to take advantaged of new kernel
features they need those new definitions. That way there is never any
conflict between the library and the headers, and you never get warnings
like the above..

Mr. Ulrich Drepper (one of the glibc/gcc guys) gave me a standard
don't use kernel headers directly answer. But neither gcc.c,
neither the above small program use kernel headers. I suppose he
referred to /usr/include/linux/* as (I think) he did not understand me.

No. He really meant that you should not use the kernel headers: you
should use the headers that glibc came with. It is probably a redhat bug
that those headers were a symbolic link.

I would suggest that people who compile new kernels should:

 - NOT do so in /usr/src. Leave whatever kernel (probably only the
   header files) that the distribution came with there, but don't touch
   it.

 - compile the kernel in their own home directory, as their very own
   selves. No need to be root to compile the kernel. You need to be root
   to _install_ the kernel, but that's different.

 - not have a single symbolic link in sight (except the one that the
   kernel build itself sets up, namely the linux/include/asm symlink
   that is only used for the internal kernel compile itself)

And yes, this is what I do. My /usr/src/linux still has the old 2.2.13
header files, even though I haven't run a 2.2.13 kernel in a _loong_
time. But those headers were what glibc was compiled against, so those
headers are what matches the library object files.

And this is actually what has been the suggested environment for at
least the last five years.  I don't know why the symlink business keeps
on living on, like a bad zombie.  Pretty much every distribution still
has that broken symlink, and people still remember that the linux
sources should go into /usr/src/linux even though that hasn't been
true in a _loong_ time.

Is there some documentation file that I've not updated and that people
are slavishly following outdated information in? I don't read the
documentation myself, so I'd never notice ;)

Linus

- -
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/


--- Message 2

From [EMAIL PROTECTED] Fri Jul 28 16:07:19 2000
X-Authentication-Warning: penguin.transmeta.com: torvalds owned

Re: [pygtk] Odd colour problems with pixmaps on remote display

2000-11-05 Thread Brian Keck

I'm the correspondent Rob refers to below ...

I've now tried a remote Debian box (instead of Solaris) for the display,
 again get a mottled pixmap.  Also, I've made the icon toggle between this
 another icon when clicked,  the mottling is different each time.

Hope this stimulates someone,
Thanks,
Brian Keck


On Fri, 03 Nov 2000 22:00:27 +1000, "Rob Hodges" wrote:
Hi,

I've received a question about a taskbar app I wrote, and I'm hoping
someone here might recognise the problem.  After some correspondence
we've found that the colours in a pixmap appear strange when the app
is run remotely on a Debian box, using a Solaris box for the display.

When it can't find anything better, the taskbar uses a default icon
created from inline xpm data like this:

default_icon = [
  "16 16 2 1",
  "# c #00",
  ". c None",
  "",
  "",
  "....",
  "..#..#..",
  "..#..#..",
  "..#..#..",
  "..#..#..",
  "..#..#..",
  "..#..#..",
  "..#..#..",
  "..#..#..",
  "..#..#..",
  "..#..#..",
  "....",
  "",
  ""]

The way it does this is (I think) pretty standard:

p = create_pixmap_from_xpm_d(self.mainbox, None, default_icon)
self.icon = GtkPixmap(p[0], p[1])
self.icon.show()
self.mainbox.pack_start(self.icon, FALSE,FALSE,2)
self.mainbox.reorder_child(self.icon, 0)
...

(Here, 'self' is a subclassed GtkToggleButton).

He reports that when it's running on the Debian box but displayed on
the Solaris box, "though I get a square, it's mottled white  black 
yellow  green etc.  (The interior is OK (transparent), just the
boundary is peculiar.)"

The problem does not manifest itself when it's displayed on the Debian
box.

Rather confusingly, it is also not manifest in this simple script,
whether the display is remote or local:

--8--

#! /usr/bin/env python

from gtk import *

w = GtkWindow(WINDOW_TOPLEVEL)
w.connect('delete_event', mainquit)

open_icon = [
"16 16 2 1",
"# c #00",
". c None",
"",
"",
"....",
"..#..#..",
"..#..#..",
"..#..#..",
"..#..#..",
"..#..#..",
"..#..#..",
"..#..#..",
"..#..#..",
"..#..#..",
"..#..#..",
"....",
"",
""
]

p = create_pixmap_from_xpm_d(w, None, open_icon)
icon = GtkPixmap(p[0], p[1])
icon.show()
w.add(icon)
w.show()
w.set_default_size(200,200)
mainloop()

--8--

I'm short on ideas, so I'd be extremely grateful to anyone who could
offer any suggestions as to why this might be happening.  I don't have
the hardware to reproduce it, but Brian is also lurking here and will
be able to test out any theories (however far-fetched!).

Thanks,
-Rob

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk