Linux-Development-Sys Digest #103, Volume #8     Sat, 26 Aug 00 00:13:14 EDT

Contents:
  BOOK: Any good books on Client/Server Design Architectures (CeePlsPls)
  Re: BOOK: Any good books on Client/Server Design Architectures ("D. Stimits")
  Re: crazy newbie' s experiements ("D. Stimits")
  Re: Stealing Colors from Applications ("D. Stimits")
  Re: Stealing Colors from Applications ("D. Stimits")
  LILO version 21.5.1 released (John in SD)
  Re: Embedded linux ("Allison Bajo")
  about rtl8139 device driver. ("Gary")
  Re: purify and memory managers (Nix)
  Breakthrough technology needs feedback - PLEASE READ (Bryan J. Nakagawa)
  Re: Linux driver for canon BJC 5100 color bubble jet printer ("Allison Bajo")
  Re: socket connection, please help!! ("Allison Bajo")
  Re: BOOK: Any good books on Client/Server Design Architectures ("Christos 
Karayiannis")
  LARGE FILE API - fcntl bad (Lawrence K. Chen, P.Eng.)
  copy_from_user from inside spinlock ([EMAIL PROTECTED])
  where is "make" in linux
  Re: where is "make" in linux (Dewald Rossouw)
  Re: Printer driver question (Christopher Browne)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (CeePlsPls)
Subject: BOOK: Any good books on Client/Server Design Architectures
Reply-To: [EMAIL PROTECTED]
Date: Fri, 25 Aug 2000 15:47:53 GMT

Thanx

------------------------------

Date: Fri, 25 Aug 2000 11:12:31 -0600
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: BOOK: Any good books on Client/Server Design Architectures

CeePlsPls wrote:
> 
> Thanx

What kind of client/server, web page apps, SQL, general custom network
apps, distributed apps, so on? Are you interested in a particular
language for it, or just in general?

Something you might be interested in if you do OOP is the subject of
design patterns. One good book, based primarily in C++, is:
"Design Patterns, Elements of Reusable Object-Oriented Software",
by several authors, Erich Gamma, et al., forward by Grady Booch.

Although the book isn't about client/server, you'll find that patterns
which are extremely useful and likely to be part of your particular
situation are described there.

------------------------------

Date: Fri, 25 Aug 2000 11:22:47 -0600
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: crazy newbie' s experiements

Christos Karayiannis wrote:
> 
> I am what is used to call a "newbie" in kernel programming. So as normally I
> started with "Hello word". I have changed I simple kernel file udp.c from
> /usr/src/linux/net/ipv4 and I wrote there:
> printk (KERN_EMERG "Hello there\n");
> I recompiled the kernel and when I restarted my PC "Hello there" messages
> appeared all the time.
> My question is  WHAT  HAVE  I  DONE ???
> OK seriously now, why is the message appearing continously and without
> having send any udp packets ?
> 
>                                                     thanks
>                                                   Christos

Do you run X for graphics mode? By default, on the local machine, it
uses entirely UDP. There are several programs that will also use this in
the background all the time. Check out netstat for udp and unix sockets,
you'll probably be surprised at what shows up. Also, maybe your code
maybe doesn't trigger only when a packet is actually sent.

------------------------------

Date: Fri, 25 Aug 2000 11:28:59 -0600
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Stealing Colors from Applications

Eoin Ryan wrote:
> 
> Hi all,
> 
> This is actually a problem on a Solaris machine and probably shouldn't be in
> here, but as it's more of a development problem I thought I'd send it in
> here as well.
> Does anyone know a way of preventing applications from stealing colors from
> other applications?  What's happening is this; when running my java proggie
> in conjunction with other GUI's my program is left without any colors.  When
> passing the mouse over menu items the menu item disappears behind a wall of
> black.  None of the colors of the icons load properly, neither does the
> title bar.  The only way of getting the colors back is to quit the other
> apps, and restart mine.
> 
> We've had a similar problem a couple of weeks back with another application,
> which was fixed by changing the color depth to 24, however this solution
> doesn't appear to work in this case.
> 
> Running Solaris 7, jdk 1.2.2.
> 
> Thanks,
> Eoin.

Offhand, I'd say you are not in a true color mode, but instead in a
palette mode in X (e.g., 8 bit). If all of your apps use standard color
palettes, then switching between them doesn't load a different color
palette. If one of them uses a custom palette, the window manager is
likely loading that palette for all apps when the mouse activates the
new app. Many X servers, in palette modes, can't use multiple palettes
at the same time for multiple windows, and have no choice but to load a
new "default" each time focus changes to an app with a different color
palette. Probably there will be several apps you can switch between that
the color does not change on (except possibly when you first enter one
from the non-standard app), and another that switching between it and
all others will cause color changes...that one is the non-default color
scheme.

------------------------------

Date: Fri, 25 Aug 2000 11:31:35 -0600
From: "D. Stimits" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Stealing Colors from Applications

"D. Stimits" wrote:
> 
> Eoin Ryan wrote:
> >
> > Hi all,
> >
> > This is actually a problem on a Solaris machine and probably shouldn't be in
> > here, but as it's more of a development problem I thought I'd send it in
> > here as well.
> > Does anyone know a way of preventing applications from stealing colors from
> > other applications?  What's happening is this; when running my java proggie
> > in conjunction with other GUI's my program is left without any colors.  When
> > passing the mouse over menu items the menu item disappears behind a wall of
> > black.  None of the colors of the icons load properly, neither does the
> > title bar.  The only way of getting the colors back is to quit the other
> > apps, and restart mine.
> >
> > We've had a similar problem a couple of weeks back with another application,
> > which was fixed by changing the color depth to 24, however this solution
> > doesn't appear to work in this case.
> >
> > Running Solaris 7, jdk 1.2.2.
> >
> > Thanks,
> > Eoin.
> 
> Offhand, I'd say you are not in a true color mode, but instead in a
> palette mode in X (e.g., 8 bit). If all of your apps use standard color
> palettes, then switching between them doesn't load a different color
> palette. If one of them uses a custom palette, the window manager is
> likely loading that palette for all apps when the mouse activates the
> new app. Many X servers, in palette modes, can't use multiple palettes
> at the same time for multiple windows, and have no choice but to load a
> new "default" each time focus changes to an app with a different color
> palette. Probably there will be several apps you can switch between that
> the color does not change on (except possibly when you first enter one
> from the non-standard app), and another that switching between it and
> all others will cause color changes...that one is the non-default color
> scheme.

I should probably mention that the menus may have their own color scheme
required, and not be able to use custom schemes properly. If this is the
case, they may also not be smart enough to tell the window manager to
reload the default that they work with. So to not have the problem,
you'll have to not switch color palettes in the first place, or have a
means to reload it.

------------------------------

From: John in SD <[EMAIL PROTECTED]>
Subject: LILO version 21.5.1 released
Reply-To: [EMAIL PROTECTED]
Date: Fri, 25 Aug 2000 18:21:14 GMT

LILO version 21 by Werner Almesberger has been updated to support booting
from disks > 1024 cylinders using a new 'lba32' option (-L new command line
switch).  Version 21.5.1 now adds a menu-driven user interface to the Linux
boot process.  Source code is available for download from:

   ftp://brun.dyndns.org/pub/linux/lilo          (developer's site)

Or from the main distribution site:

   ftp://metalab.unc.edu/pub/Linux/system/boot/lilo    (please use)


The lilo-21.5 release builds upon the stability of 21.4.4, and adds new
code to support the boot menu.  This release is fully backward compatible
with earlier releases.

Version 21.5.1 is a maintenance upgrade to version 21.5, which is still
current.

See the distribution file 'CHANGES' for details of the differences between
21.5.1 and prior releases.


--John Coffman <[EMAIL PROTECTED]>


LILO version 21.5 (18-Jul-2000) source at
ftp: brun.dyndns.org   dir: /pub/linux/lilo

------------------------------

From: "Allison Bajo" <[EMAIL PROTECTED]>
Subject: Re: Embedded linux
Date: Fri, 25 Aug 2000 11:25:31 -0700

How about an embedded Linux distribution for MIPS?  If anyone knows of a
distribution tailored for this chip please email me.

Thank you for your help.

- Al

"David" <[EMAIL PROTECTED]> wrote in message
news:7g4p5.8008$[EMAIL PROTECTED]...
> Is anyone here working on any embedded Linux systems?  If so, what
> do you use?
>
> Thanks,
> David
>
>
>



------------------------------

From: "Gary" <[EMAIL PROTECTED]>
Subject: about rtl8139 device driver.
Date: Fri, 25 Aug 2000 11:35:16 +0800

Hi all,

I am tracing the device driver of RTL8139 recently. I have some confusion.
First, I know the rx/tx buffer alignment issue in 8139. Realtek technical
support admits that they must be 4-bytes aligned in the memory. I also
notice that in the driver source, writter commented that this is a issue
must get attention. But, I cannot see any explicit memory alignment
while driver dynamically allocate the tx/rx buffer in device->open function.
Is there any implicit alignment in kmalloc? or?

Second, the return address of kmalloc is still virtual memory, right?
When we 'outb' the 'viru_to_bus()'ed address to corresponding 8139
register, how can we be sure the translated address is 4bytes-aligned?
I can't see the this point, either.

Thanks for all your attention.





------------------------------

From: Nix <$}xinix{[email protected]>
Subject: Re: purify and memory managers
Date: 25 Aug 2000 19:24:13 +0100

"Morton, Andrew [WOLL:4009-M:EXCH]" <[EMAIL PROTECTED]> writes:

> Sorry, this is a gaping hole in the Linux development tool scene.

There's a gaping hole in the optimization scene, too.

Namely, whatever happened to GNU rope? A wonderful idea and it'd help
some of my smaller boxes no end...

-- 
`OS's and GUI's come and go, only Emacs has lasting power.' --- Per Abrahamsen

------------------------------

From: Bryan J. Nakagawa <[EMAIL PROTECTED]>
Subject: Breakthrough technology needs feedback - PLEASE READ
Date: Fri, 25 Aug 2000 20:58:08 GMT

A technology startup company has created a Java-based dynamic application 
infrastructure that provides the following
benefits for enabled applications:

*  UPGRADE applications dynamically, on-the-fly, and in realtime without stopping the 
application
*  FAILBACK to the previous version of an app automatically if the upgrade experiences 
an unforeseen problem
*  TEST with live datastreams from a production environment

Our company would like to solicit participants for an electronic survey.  The survey 
will contain 15-20 questions, some
with multiple choice answers and others with sections to answer with a longer answer.

YOUR INPUT & FEEDBACK ARE CRITICAL!


The types of participants would be those in an UNIX/Linux environment, using JAVA, 
servlets, EJBs, JSP, JDBC.  

We would appreciate your participation, as we want to make sure we are developing a 
product that addresses your needs
exactly.

If you are interested in participating, please email me ([EMAIL PROTECTED]) so I 
can send you the survey.  If you
participate in this survey, all information is confidential and nothing will be 
forwarded.  No one will sell you
anything.  Your confidentiality will be protected.  Thank you for reading this post.




------------------------------

From: "Allison Bajo" <[EMAIL PROTECTED]>
Subject: Re: Linux driver for canon BJC 5100 color bubble jet printer
Date: Fri, 25 Aug 2000 14:21:21 -0700

John,

    I work for Canon and I'll try to find out if we do have a Linux driver
for that model printer.

Allison Bajo
Canon Information Systems, Inc.

"John Martin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hello
> I checked the linux driver bank and could not find the proper drivers for
my
> new printer. Is there a Linux driver for canon BJC 5100 color bubble jet
> printer?
> John Martin
> [EMAIL PROTECTED]
>
>
>



------------------------------

From: "Allison Bajo" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: socket connection, please help!!
Date: Fri, 25 Aug 2000 14:24:12 -0700

You might want to also post some sample code you did.  Is it connection
oriented or connection-less.  If it is connection oriented, read the man
pages about connect and select.  I ran into the same problem early this week
and fixed my problem after reading the man pages.

Hope this helps.

- Al

"Mario Klebsch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Gee <[EMAIL PROTECTED]> writes:
>
> >the problem I'm having is the sockets doesn't connect, the server doesnt
> >even see the request to connect.
>
> Are you sure, you converted the port number into network byte order?
> You can try to look onto the wire using tcpdump on the linux box or
> snoop on solaris.
>
> 73, Mario
> --
> Mario Klebsch [EMAIL PROTECTED]
> PGP-Key available at http://www.klebsch.de/public.key
> Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
>  Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518



------------------------------

From: "Christos Karayiannis" <[EMAIL PROTECTED]>
Subject: Re: BOOK: Any good books on Client/Server Design Architectures
Date: Sat, 26 Aug 2000 00:08:42 +0300

Check this out when it is available.

Internetworking with TCP/IP, Vol. III: Client-Server Programming and
Applications, Linux/Posix Version
Prentice Hall; ISBN: 0130320714



CeePlsPls <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Thanx
CeePlsPls <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Thanx



------------------------------

From: Lawrence K. Chen, P.Eng. <[EMAIL PROTECTED]>
Subject: LARGE FILE API - fcntl bad
Date: Fri, 25 Aug 2000 22:03:10 GMT

I don't know who the problem lies with....but fcntl is broken when
trying to use LARGE FILE support.  (I'm working on RedHat 6.2....is it
the Linux kernel or is it glibc)

This is because F_SETxx and F_SETxx64 have the same define values, but
size of flock is different in size depending on _FILE_OFFSET_BITS
(which selects the size of the file offset).

--
 Me: Lawrence K. Chen, P.Eng.      Email: [EMAIL PROTECTED]
     Open Text, BASIS Division       ICQ: 12129673
     5080 Tuttle Crossing Blvd.    Phone: 614-761-7449    Fax: 761-7269
     Dublin, OH  43016               URL: http://www.opentext.com/basis


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED]
Subject: copy_from_user from inside spinlock
Date: Fri, 25 Aug 2000 23:08:18 GMT

Hi,
  can I use copy_from_user from inside a spinlock?

regards
jeseem


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: <[EMAIL PROTECTED]>
Subject: where is "make" in linux
Date: Fri, 25 Aug 2000 23:29:26 GMT

When I try "make menuconfig", I got error message "hash: make: command not
found". I also use `find / -name "make"' to search for it, but it returns
nothing. Could someone please tell me where I can get the "make" command?
Thanks a lot.
-jesse

--
Posted via CNET Help.com
http://www.help.com/

------------------------------

From: Dewald Rossouw <[EMAIL PROTECTED]>
Subject: Re: where is "make" in linux
Date: Fri, 25 Aug 2000 18:13:25 -0700
Reply-To: [EMAIL PROTECTED]

You'll find the source code at:

http://www.gnu.org/software/make/make.html

or an RPM package at:

ftp://ftp.redhat.com/pub/redhat/redhat-6.2/i386/RedHat/RPMS/make-3.78.1-4.i386.rpm

The default install path is /usr/bin. However, 'make' is a pretty basic
utility on a Unix platform. If it is not installed, some of the other
software you need to build a Linux kernel is sure to be missing.


[EMAIL PROTECTED] wrote:
> 
> When I try "make menuconfig", I got error message "hash: make: command not
> found". I also use `find / -name "make"' to search for it, but it returns
> nothing. Could someone please tell me where I can get the "make" command?
> Thanks a lot.
> -jesse
> 
> --
> Posted via CNET Help.com
> http://www.help.com/

------------------------------

From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Printer driver question
Reply-To: [EMAIL PROTECTED]
Date: Sat, 26 Aug 2000 03:36:44 GMT

Centuries ago, Nostradamus foresaw a time when Grant Edwards would say:
>In article <[EMAIL PROTECTED]>, Matthias Mulumba Lumala wrote:
>
>>        What really is a printer driver? From what I've learned it looks
>>like there are two layers to a  printer driver: one that translates a
>>document into a language that a given physical printer can understand (
>>e.g. Postscript driver or PCL driver) and another whose role is to send
>>to the printer data that is generated by the first layer( lp.o in
>>linux). Is this true?
>
>Yes, exactly.  On most Linux systems, applications generate postscript and
>ghostview is used to translate that into a printer-specific language.  Then
>a kernel module is used to send the data to the printer.  If you're using a
>traditional parallel printer port, that's the "lp" module.  It could also be
>sent via serial port, TCP, etc.

It usually isn't _really_ meaningful to think about this involving a
kernel module; that might give the impression that the kernel does
something to "filter" the data.

Everybody should observe that at the point of the "lp" module, or
serial port, or TCP connection to an Ethernet print server, there is
little or no translation involved.

One very important result of this is that this means that the
solutions are portable; what works for print filtering in user space
on Linux is likely also to work on FreeBSD or Solaris or AIX.

>>        Can all the commands sent to the printer be expressed using
>>interpretable languages like Postscript, including those that do not
>>deal directly with printing (e.g. cleaning or removing cartridges) or do
>>we have to use special IOCTL's?
>
>I have no idea.  With all the printers I've used, a person had to
>physically remove and/or clean the cartridge.

I've had to mess around with some of the "weird printer controls" on
occasion; that sort of thing tends to be controlled in one of three
ways:

a) On a Postscript printer, there may be special Postscript predicates
   to initiate special actions like switching trays, changing colours,
   or switching cartridges.
   
b) On an PCL printer, there may be PCL predicates available much as
   with Postscript.

c) On HP printers, there is commonly an "HP Print Job Control
   Language," most notably used to select PCL or Postscript for a
   given print job; there may be hardware control predicates there.

I'm with Grant on the toner cartridge issue; switching cartridges or
cleaning that wire is normally a manual process requiring physical
human intervention.

If the issue _really_ is of switching paper trays, the methodology for
that should be documented in the printer manual, and likely falls
amongst some of a), b), and c) above.

There is no "general methodology" for this as different printers from
different manufacturers may use different control mechanisms.  [Mind
you, if you find a PCL tray-switch predicate that works with one HP
printer, a Xerox printer that does tray switches may well emulate that
predicate.  No guarantees, though.]
-- 
(concatenate 'string "cbbrowne" "@" "hex.net")
<http://www.ntlug.org/~cbbrowne/printing.html>
Rules of the Evil Overlord #198. "I will remember that any
vulnerabilities I have are to be revealed strictly on a need-to-know
basis. I will also remember that no one needs to know."
<http://www.eviloverlord.com/>

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.development.system) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Development-System Digest
******************************

Reply via email to