Re: [vox-tech] samba front-end
I have used gnomba. It works pretty well, basically mounting the windows share to /tmp/sharename. ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] Chicago?
Jay, I would also recomend cygwin plus xfree86 ( for x, if you must use windows). This will give you a UNIX environment on Windows and also a free replacement for eXceed. Cygwin xfree86 has worked really well for me at work on NT and 2000. It is possible to get it to work decently on XP and I have had speed problems with win95/98. As far as MS products being offered on UNIX, they actually have IE 5 for Solaris (ok flame away), I have used it on my ultra 5. I really prefer Opera or mozilla though. As far as building your own system, I would recomend building one just becuase it is plain fun to do (even if it is a cheap system). I am going to the computer show in Vallejo on Saturday if anyone is interested. I am going to pick up parts to build a lower end system for my 4 year old son (who is very close to learning how to build one himself). Stephen ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] samba front-end
On Fri, Jan 18, 2002 at 05:12:49PM -0800, Peter Jay Salzman wrote: ... > anyway, there are a few graphical frontends for samba on the linux side > that allow you to browse windows shares from the linux machine. > > i was wondering if anyone tried some of these applications? i'm > looking for personal comments and/or reviews of these samba front ends. I've never really used it, but Konqueror's SMB support looks pretty slick. Just type "smb://machinename" in the URL bar and you can move through the other machine just like a local folder. I believe that this uses smbclient behind the scenes, so make sure you have that installed first. Matt -- * * Matt Roper <[EMAIL PROTECTED]>* * http://www.mattrope.com * * PGP Key: http://www.mattrope.com/mattrope.asc * * ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] samba front-end
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I personaly use 'xfsamba' and 'knomba2' xfsamba lets you browse and transfer files without mounting, like an ftp client. knomba will let you scan subnets for shares, then easily select ones to mount. On Friday, January 18 2002 05:12 pm, Peter Jay Salzman wrote: > hey there, > > i now have a working samba installation. *great* diagnostic > documentation. i wish every program came with such a nice suite of > docs. > > anyway, there are a few graphical frontends for samba on the linux side > that allow you to browse windows shares from the linux machine. > > i was wondering if anyone tried some of these applications? i'm > looking for personal comments and/or reviews of these samba front ends. > > pete - -- No Microsoft products were used in any way for the creation of this message. PGP Public key at http://mother.com/~ryan/ryan_at_mother_dot_com.asc It is also on the servers: Key ID 0x72177BC7 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8SNqqEd9E83IXe8cRArOZAJsEZDrOREXYt7cbx+fABXYRvGY0hACbBT/I J0jxRa1axaa/M2OuIl0OGTk= =8hkZ -END PGP SIGNATURE- ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
[vox-tech] samba front-end
hey there, i now have a working samba installation. *great* diagnostic documentation. i wish every program came with such a nice suite of docs. anyway, there are a few graphical frontends for samba on the linux side that allow you to browse windows shares from the linux machine. i was wondering if anyone tried some of these applications? i'm looking for personal comments and/or reviews of these samba front ends. pete -- The mathematics [of physics] has become ever more abstract, rather than more complicated. The mind of God appears to be abstract but not complicated. He also appears to like group theory. -- Tony Zee's `Fearful Symmetry' PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] perl and OTHERLDFLAGS
On Fri, 18 Jan 2002, Jay Strauss wrote: > > Not a linux question but, I'm trying to compile DBD-Oracle for perl and in > the README.hpux it says: > > In my case, LhtStrInsert was undefined. To solve this problem, I had > to looked though the Oracle libraries using nm. I found the symbol > in 3 separate libraries in $ORACLE_HOME/lib. I then proceeded to as these > libraries to the OTHERLDFLAGS makefile macro until I got a clean linke. > libqsmashr.sl was what did the trick for me. > > > How do I add other libraries to the OTHERLDFLAGS makefile macro? The README > doesn't give any clues This depends on how the macro is used. Taken out of context, I don't know. Could be space delimited, could require a -l before each library name, could be something else. The general procedure in this kind of situation is: Find the command that uses this macro in the Makefile. Use "man" for that command to learn what options/arguments it wants. Experiment. If getting nowhere, ask people familiar with that makefile (Oracle groups). --- Jeff NewmillerThe . . Go Live... DCN:<[EMAIL PROTECTED]>Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k --- ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] samba and tcpd
On Fri, 18 Jan 2002, Peter Jay Salzman wrote: > > > do i make reference to samba services in hosts.allow / hosts.deny as > >netbios-ssn: blah >netbios-ns: blah > > or > >smbd: blah > nmbd: blah Use the string that shows up in the COMMAND column of top or the CMD column of ps. --- Jeff NewmillerThe . . Go Live... DCN:<[EMAIL PROTECTED]>Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k --- ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
[vox-tech] Need Tutalatin Celeron tested.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Does anyone have a motherboard that can take a tutalatin 1.2ghz celeron and would be willing to test the CPU for me? I'm not sure if it's not working because it's DOA or my motherboard doesn't support it. - -- No Microsoft products were used in any way for the creation of this message. PGP Public key at http://mother.com/~ryan/ryan_at_mother_dot_com.asc It is also on the servers: Key ID 0x72177BC7 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8SK3sEd9E83IXe8cRAhUBAKCdepdeZwM+aydaek3pFveWqkEcpwCffbbx yPaLMn9K+h6vZMVyPlUcorY= =ymfZ -END PGP SIGNATURE- ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
[vox-tech] solved: Re: i need samba help: bad password
begin p > yet another samba question > > i'm going through diagnostics.txt, and found a test that failed: > desperation breeds success. the magic was: smbpasswd -a p didn't realize that samba keeps its own password file. pete ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
[vox-tech] i need samba help: bad password
yet another samba question i'm going through diagnostics.txt, and found a test that failed: TEST 7: --- Run the command "smbclient //BIGSERVER/TMP". You should then be prompted for a password. You should use the password of the account you are logged into the unix box with. If you want to test with another account then add the -U option to the end of the command line. eg: smbclient //bigserver/tmp -Ujohndoe the results: p@satan% smbclient //satan/tmp -Up added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0 Password: session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.) i used the password for user p on satan. ok. diagnostics.txt suggests: cause my reply --- -- - you have shadow passords (or some other i find it hard to believe password system) but didn't compile in that debian wouldn't compile support for them in smbdshadow support. - your "valid users" configuration is wrong possible; i don't have a "valid users" directive in smb.conf. do other people? - you have a mixed case password and you possible; i don't have a haven't enabled the "password level""password level" in smb.conf. option at a high enough level do other people? - the "path =" line in smb.conf is wrong. this is correct. - you enabled password encryption but didn't possible. how does one go create the SMB encrypted password file about creating an SMB encrypted pswd file? note that this test failed on the smb server, not on the windows machine! pete -- The mathematics [of physics] has become ever more abstract, rather than more complicated. The mind of God appears to be abstract but not complicated. He also appears to like group theory. -- Tony Zee's `Fearful Symmetry' PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] Chicago?
Last year when I first installed linux, I did a search for linux user groups, LUGOD came up and I joined (I figured UC davis, got to be a bunch of smarties who can help me ;) ) Jay - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 18, 2002 11:14 AM Subject: Re: [vox-tech] Chicago? > On Thu, 17 January 2002, "Jay Strauss" wrote: > > I'm still debating the build vs. buy. But I have done some research and > > think if I build I'll get a Athlon 1500 (fast and cheap). Now I've only got > > about 85 motherboards to look over. > > If you are trying to understand computers, nothing helps like a little hands on. > > > I tried star office a year ago, didn't like a number of things, maybe it's > > gotten better, at the time Netscape and monzilla sucked, didn't try Opera, I > > never tried Koffice, I was luke warm on gnumeric, going to look at > > Evolution, own vmware (but realized I do one thing on the server, I run > > xterm (from there I vim and admin), the rest of the time I'm using > > Office,IE,Outlook so why not use them natively and get eXceed), maybe I'll > > have to learn DocBook/XML/Tex/LaTex (someday, right now I'm climbing the > > Java hill, going thru the Sun tutorials, I know I'll just stop sleeping) > > There are some less bloated X Window software than Exceed. X-Win comes to mind. http://www.x-win.com/ > The other is to install the cygwin toolset and then install X-Free on Cygwin. I got it going nicely on a former work system. (That methods free). > > > > I live in Chicago so can't do the face to face (though the thought of 3hr > > lines at O'hare, strip searches, gate delays, and the 4.5 hr flight is very > > attractive). > > Out of curiousity, if you are in Chicago, how did you come to join a LUG list in California? > > -sp > > ps- I'll bet Suset Systems ships orders too. ;) > > > ___ > vox-tech mailing list > [EMAIL PROTECTED] > http://lists.lugod.org/mailman/listinfo/vox-tech _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] samba and tcpd
i think it might be more complicated than that -- i'm fairly certain that you don't use in.fingerd as the service name in hosts_access. at least, i think i'm fairly certain. :) afaik, all the services that i've wrapped up follow your rule *except* cvs-pserver, which happens to be the ugly duckling. i've never played around with net-bios. i just unwrapped all services for that host for now, and once samba gets working will play around with this (and report my findings). thanks! pete begin Rod Roark <[EMAIL PROTECTED]> > Hmm, maybe it really is the program name. "man hosts_access" says to put > the "process name" here, and then goes on to identify the name as argv[0]. > > Likewise, "man kill" says it is to "kill processes by name". > > So I guess process name == executable name. Definitely not the kind of > terminology I would have chosen. > > Sorry. > > -- Rod >http://www.sunsetsystems.com/ > > On Friday 18 January 2002 14:16, Peter Jay Salzman wrote: > > thanks rod. i *thought* that was a general rule, but i found it's not > > true in every case. a few months ago, i set up a cvs server. > > > >inetd entry: > >cvspserver stream tcp ... /usr/sbin/cvs-pserver > > > > but hosts_access expects "cvs-pserver" rather than "cvspserver" as i had > > expected. took me a long time to figure that out. :/ > > > > and it's so hard to diagnose these things when the service isn't working > > correctly yet... :) > > > > thanks! > > pete > > > > > > begin Rod Roark <[EMAIL PROTECTED]> > > > > > I believe the former. These are the service names found in /etc/inetd > > > or xinetd. > > > > > > -- Rod > > >http://www.sunsetsystems.com/ > > > > > > On Friday 18 January 2002 13:38, Peter Jay Salzman wrote: > > > > do i make reference to samba services in hosts.allow / hosts.deny as > > > > > > > >netbios-ssn: blah > > > >netbios-ns: blah > > > > > > > > or > > > > > > > >smbd: blah > > > > nmbd: blah > > > > ___ > > vox-tech mailing list > > [EMAIL PROTECTED] > > http://lists.lugod.org/mailman/listinfo/vox-tech > ___ > vox-tech mailing list > [EMAIL PROTECTED] > http://lists.lugod.org/mailman/listinfo/vox-tech -- The mathematics [of physics] has become ever more abstract, rather than more complicated. The mind of God appears to be abstract but not complicated. He also appears to like group theory. -- Tony Zee's `Fearful Symmetry' PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
[vox-tech] perl and OTHERLDFLAGS
Not a linux question but, I'm trying to compile DBD-Oracle for perl and in the README.hpux it says: In my case, LhtStrInsert was undefined. To solve this problem, I had to looked though the Oracle libraries using nm. I found the symbol in 3 separate libraries in $ORACLE_HOME/lib. I then proceeded to as these libraries to the OTHERLDFLAGS makefile macro until I got a clean linke. libqsmashr.sl was what did the trick for me. How do I add other libraries to the OTHERLDFLAGS makefile macro? The README doesn't give any clues Thanks Jay _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] samba and tcpd
Hmm, maybe it really is the program name. "man hosts_access" says to put the "process name" here, and then goes on to identify the name as argv[0]. Likewise, "man kill" says it is to "kill processes by name". So I guess process name == executable name. Definitely not the kind of terminology I would have chosen. Sorry. -- Rod http://www.sunsetsystems.com/ On Friday 18 January 2002 14:16, Peter Jay Salzman wrote: > thanks rod. i *thought* that was a general rule, but i found it's not > true in every case. a few months ago, i set up a cvs server. > >inetd entry: >cvspserver stream tcp ... /usr/sbin/cvs-pserver > > but hosts_access expects "cvs-pserver" rather than "cvspserver" as i had > expected. took me a long time to figure that out. :/ > > and it's so hard to diagnose these things when the service isn't working > correctly yet... :) > > thanks! > pete > > > begin Rod Roark <[EMAIL PROTECTED]> > > > I believe the former. These are the service names found in /etc/inetd > > or xinetd. > > > > -- Rod > >http://www.sunsetsystems.com/ > > > > On Friday 18 January 2002 13:38, Peter Jay Salzman wrote: > > > do i make reference to samba services in hosts.allow / hosts.deny as > > > > > >netbios-ssn: blah > > >netbios-ns: blah > > > > > > or > > > > > >smbd: blah > > > nmbd: blah > > ___ > vox-tech mailing list > [EMAIL PROTECTED] > http://lists.lugod.org/mailman/listinfo/vox-tech ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] samba and tcpd
thanks rod. i *thought* that was a general rule, but i found it's not true in every case. a few months ago, i set up a cvs server. inetd entry: cvspserver stream tcp ... /usr/sbin/cvs-pserver but hosts_access expects "cvs-pserver" rather than "cvspserver" as i had expected. took me a long time to figure that out. :/ and it's so hard to diagnose these things when the service isn't working correctly yet... :) thanks! pete begin Rod Roark <[EMAIL PROTECTED]> > I believe the former. These are the service names found in /etc/inetd or > xinetd. > > -- Rod >http://www.sunsetsystems.com/ > > On Friday 18 January 2002 13:38, Peter Jay Salzman wrote: > > do i make reference to samba services in hosts.allow / hosts.deny as > > > >netbios-ssn: blah > >netbios-ns: blah > > > > or > > > >smbd: blah > > nmbd: blah ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] samba and tcpd
I believe the former. These are the service names found in /etc/inetd or xinetd. -- Rod http://www.sunsetsystems.com/ On Friday 18 January 2002 13:38, Peter Jay Salzman wrote: > do i make reference to samba services in hosts.allow / hosts.deny as > >netbios-ssn: blah >netbios-ns: blah > > or > >smbd: blah > nmbd: blah > > pete ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
[vox-tech] samba and tcpd
do i make reference to samba services in hosts.allow / hosts.deny as netbios-ssn: blah netbios-ns: blah or smbd: blah nmbd: blah pete -- The mathematics [of physics] has become ever more abstract, rather than more complicated. The mind of God appears to be abstract but not complicated. He also appears to like group theory. -- Tony Zee's `Fearful Symmetry' PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] Memory usage puzzle
On Friday 18 January 2002 10:30, Jeff Newmiller wrote: > On Fri, 18 Jan 2002, Rod Roark wrote: ... > > [rod@www rod]$ ipcs -mu > > Might want to retry this as root? Yeah, same result. I suspect something like named is taking a bunch of memory just because it's there, and doing something clever that keeps it from showing up in the process list. I'll play with it some more when time permits. Thanks for the feedback. -- Rod http://www.sunsetsystems.com/ ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] C question: global vs local const
On Fri, Jan 18, 2002 at 01:42:11AM -0800, Peter Jay Salzman wrote: > begin Mark K. Kim <[EMAIL PROTECTED]> > > On Thu, 17 Jan 2002, Peter Jay Salzman wrote: > > > > > begin Mark K. Kim <[EMAIL PROTECTED]> > > > > You're initializing K with a variable. Because globals are calculated at > > > > compile time, > > > > Since Jeff will sooner or later jump in to correct me, I'll correct myself > > before that happens: > > > > I didn't meant to say that globals are calculated at compile time -- they > > can certainly be modified during runtime. What I meant was that initial > > values of globals have to be calculated at compiletime -- due to the way > > they are stored in memory. > > does this apply to static variables too? i have a situation where a > function is called many times over: > > void function( ..., long double dr) > { > long double variable = expensive_calculation * dr; > ... > } It does apply to static variables. > i'd like to declare variable as static, since both expensive_calculation > and dr remain constant through the entire program. > > i can't declare dr > as being global because it depends on other parameters that need to be > calculated at run time (but otherwise don't change). What I would do is perform a test at the beginning of function as to whether variable should be assigned an initial value or not. void function ( ..., long double dr) { static bool inited = false; /* Need for this - it's C99-specific, so don't #include it if you intend for it to be portable to C90: instead, define bool and false yourself. */ static long double variable; if (!inited) { variable = expensive_calculation * dr; } ... } Micah ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] complex C question
On Thu, Jan 17, 2002 at 08:25:57PM -0800, Peter Jay Salzman wrote: > i'm not sure if anyone here has been playing around with tgmath.h, but > here it goes: > >#include >int main(void) >{ > long double complex a; > a = 4.0L + I*2.0L; > return 0; >} > > does gdb not have support for tgmath or am i trying to print a complex > number in the wrong manner? > >(gdb) ptype a >type = complex long double >(gdb) print a >$2 = Invalid C/C++ type code 20 in symbol table. >(gdb) printf "%Le,%Le\n", a >Wrong number of arguments for specified format-string >(gdb) printf "%Le\n", a >Value can't be converted to integer. >(gdb) quit > > pete What version gdb are you using? I have 5.1. I can't really test your code because my work machine doesn't have the latest glibc. Micah ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] Memory usage puzzle
On Fri, 18 Jan 2002, Rod Roark wrote: > > On Thursday 17 January 2002 11:12 pm, Jeff Newmiller wrote: > > On Wed, 16 Jan 2002, Rod Roark wrote: > > > Anyone know a good utility that will go through all allocated > > > memory blocks and tell you which process or executable is > > > responsible for each one? > > > > > > Yes I know about "ps". I don't think it really does that. Here's > > > my problem: > > > > > > When I start up my colo box, running ntpd, bind, sshd, postfix, > > > Courier pop3d/imapd, apache, postgresql, xvnc, one KDE session, > > > and some other normal stuff, "free" shows about 60 MB in use > > > (after subtracting buffers and cache). After a day or two, memory > > > usage climbs to around 260MB and stays there. If I stop VNC/KDE, > > > apache, all mail stuff and the sql server, memory in use still > > > stays over about 220 MB. > > > > > > So, what's using all that memory? I'd like to find out. > > > > > > Total physical memory is 1GB. > > > > I didn't see if anyone came up with an answer for this one. > > > > Top, with the "M" command, would be my first thought. > > > > However, the problem may be associated with shared memory... try > > looking at "ipcs"? > > Thanks Jeff. Tell me what you make of the following. I can't account for > the memory usage... can you? > > > [rod@www rod]$ free > total used free sharedbuffers cached > Mem: 1030016 993520 36496 0 440700 301620 > -/+ buffers/cache: 251200 778816 > Swap: 12048321441204688 I don't consider myself an expert at Linux system memory management... much more familiar with the innards of processes than their construction. But what I see is... 778816 = 36496 + 440700 + 301620 lots of memory available ... 95% of that is in buffers and cache. 993520 = 251200 + 440700 + 301620 245MB are used by non-buffer, non-cache uses. Does seem like quite a bit compared to the top output. > > [rod@www rod]$ ipcs -mu Might want to retry this as root? > > -- Shared Memory Status > segments allocated 5 > pages allocated 8894 > pages resident 171 > pages swapped 0 > Swap performance: 0 attempts 0 successes > > > And the following "top" snapshot: yeah, this doesn't seem to be illuminating where the memory is. [...] --- Jeff NewmillerThe . . Go Live... DCN:<[EMAIL PROTECTED]>Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k --- ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] Chicago?
On Thu, 17 January 2002, "Jay Strauss" wrote: > I'm still debating the build vs. buy. But I have done some research and > think if I build I'll get a Athlon 1500 (fast and cheap). Now I've only got > about 85 motherboards to look over. If you are trying to understand computers, nothing helps like a little hands on. > I tried star office a year ago, didn't like a number of things, maybe it's > gotten better, at the time Netscape and monzilla sucked, didn't try Opera, I > never tried Koffice, I was luke warm on gnumeric, going to look at > Evolution, own vmware (but realized I do one thing on the server, I run > xterm (from there I vim and admin), the rest of the time I'm using > Office,IE,Outlook so why not use them natively and get eXceed), maybe I'll > have to learn DocBook/XML/Tex/LaTex (someday, right now I'm climbing the > Java hill, going thru the Sun tutorials, I know I'll just stop sleeping) There are some less bloated X Window software than Exceed. X-Win comes to mind. http://www.x-win.com/ The other is to install the cygwin toolset and then install X-Free on Cygwin. I got it going nicely on a former work system. (That methods free). > > I live in Chicago so can't do the face to face (though the thought of 3hr > lines at O'hare, strip searches, gate delays, and the 4.5 hr flight is very > attractive). Out of curiousity, if you are in Chicago, how did you come to join a LUG list in California? -sp ps- I'll bet Suset Systems ships orders too. ;) ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] C question: global vs local const
On Fri, 18 Jan 2002, Mark K. Kim wrote: > > Keywords: global, local, c, variables, const > > On Fri, 18 Jan 2002, Peter Jay Salzman wrote: > > > does this apply to static variables too? i have a situation where a > > function is called many times over: > > > > void function( ..., long double dr) > > { > > long double variable = expensive_calculation * dr; > > ... > > } > > > > i'd like to declare variable as static, since both expensive_calculation > > and dr remain constant through the entire program. i can't declare dr > > as being global because it depends on other parameters that need to be > > calculated at run time (but otherwise don't change). > > Hmmm... ummm... hmmm... Think, think... > > Yes. If they aren't calculated at compile time, then you need some way to > tell whether a function call during runtime is the "first call". This > would have to be something like: > >int function(int arg) >{ > if(first_call()) > { > /* initialize static variables */ > } > > blah blah... >} > > This adds hidden overhead to a function call, which would be a no-no for C. ANSI C added the ability to initialize auto variables in functions to the K&R language. Constant initialization of auto variables was considered a big step forward in usability at the time. :) Initializers for static variables inside functions may be non-constant expressions in C++, because the compiler automatically generates the "if" code. Static variables at module scope (outside functions, with no external linkage) are automatically pre-initialized to zero in C. This fact can be used to setup a flag for the function to test to see whether that function has been called yet. (In C++, initialization of variables at global scope is complicated by the allowance for user-defined constructors. These are called by startup code prior to calling main, in the sequence they were declared in within modules, and those sets of constructors for each module are called in implementation- defined sequence (you can't determine whether the module constructors from module A will be called before those in module B within the language).) > -Mark (making it up as he goes...) Pretty good jazz. :) --- Jeff NewmillerThe . . Go Live... DCN:<[EMAIL PROTECTED]>Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/BatteriesO.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k --- ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] C question: global vs local const
Keywords: global, local, c, variables, const On Fri, 18 Jan 2002, Peter Jay Salzman wrote: > does this apply to static variables too? i have a situation where a > function is called many times over: > > void function( ..., long double dr) > { > long double variable = expensive_calculation * dr; > ... > } > > i'd like to declare variable as static, since both expensive_calculation > and dr remain constant through the entire program. i can't declare dr > as being global because it depends on other parameters that need to be > calculated at run time (but otherwise don't change). Hmmm... ummm... hmmm... Think, think... Yes. If they aren't calculated at compile time, then you need some way to tell whether a function call during runtime is the "first call". This would have to be something like: int function(int arg) { if(first_call()) { /* initialize static variables */ } blah blah... } This adds hidden overhead to a function call, which would be a no-no for C. -Mark (making it up as he goes...) -- Mark K. Kim http://www.cbreak.org/mark/ PGP key available upon request. ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] Memory usage puzzle
On Thursday 17 January 2002 11:12 pm, Jeff Newmiller wrote: > On Wed, 16 Jan 2002, Rod Roark wrote: > > Anyone know a good utility that will go through all allocated > > memory blocks and tell you which process or executable is > > responsible for each one? > > > > Yes I know about "ps". I don't think it really does that. Here's > > my problem: > > > > When I start up my colo box, running ntpd, bind, sshd, postfix, > > Courier pop3d/imapd, apache, postgresql, xvnc, one KDE session, > > and some other normal stuff, "free" shows about 60 MB in use > > (after subtracting buffers and cache). After a day or two, memory > > usage climbs to around 260MB and stays there. If I stop VNC/KDE, > > apache, all mail stuff and the sql server, memory in use still > > stays over about 220 MB. > > > > So, what's using all that memory? I'd like to find out. > > > > Total physical memory is 1GB. > > I didn't see if anyone came up with an answer for this one. > > Top, with the "M" command, would be my first thought. > > However, the problem may be associated with shared memory... try > looking at "ipcs"? Thanks Jeff. Tell me what you make of the following. I can't account for the memory usage... can you? [rod@www rod]$ free total used free sharedbuffers cached Mem: 1030016 993520 36496 0 440700 301620 -/+ buffers/cache: 251200 778816 Swap: 12048321441204688 [rod@www rod]$ ipcs -mu -- Shared Memory Status segments allocated 5 pages allocated 8894 pages resident 171 pages swapped 0 Swap performance: 0 attempts 0 successes And the following "top" snapshot: 5:34am up 2 days, 23:15, 1 user, load average: 0.03, 0.01, 0.00 51 processes: 49 sleeping, 2 running, 0 zombie, 0 stopped CPU states: 0.0% user, 0.0% system, 0.0% nice, 100.0% idle Mem: 1030016K av, 974304K used, 55712K free, 0K shrd, 440700K buff Swap: 1204832K av, 144K used, 1204688K free 301612K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 1838 apache 9 0 8712 8712 8092 S 0.0 0.8 0:00 httpd 1963 apache10 0 8700 8700 8076 S 0.0 0.8 0:00 httpd 1966 apache11 0 8580 8580 8076 S 0.0 0.8 0:00 httpd 8410 root 9 0 8136 8136 7720 S 0.0 0.7 0:01 httpd 820 xfs9 0 4984 4976 1104 S 0.0 0.4 0:07 xfs 668 named 9 0 4940 4940 2280 S 0.0 0.4 0:00 named 670 named 9 0 4940 4940 2280 S 0.0 0.4 0:00 named 671 named 9 0 4940 4940 2280 S 0.0 0.4 0:28 named 672 named 9 0 4940 4940 2280 S 0.0 0.4 0:00 named 673 named 9 0 4940 4940 2280 S 0.0 0.4 0:03 named 31084 root 9 0 2044 2020 1672 R 0.0 0.1 0:00 sshd 613 ntp9 0 1924 1924 1728 S 0.0 0.1 0:00 ntpd 31086 rod9 0 1388 1388 1012 S 0.0 0.1 0:00 bash 940 postfix9 0 1252 1252 988 S 0.0 0.1 0:13 qmgr 692 root 9 0 1204 1152 1020 S 0.0 0.1 0:02 sshd 1011 postgres 13 5 1140 1140 952 S N 0.0 0.1 0:00 postmaster 2389 rod9 0 1068 1068 852 R 0.0 0.1 0:00 top 726 root 9 0 1048 1012 844 S 0.0 0.0 0:00 xinetd 938 root 7 0 868 868 720 S 0.0 0.0 0:04 master 2275 postfix9 0 832 832 700 S 0.0 0.0 0:00 pickup 32233 lucy 9 0 760 760 560 S 0.0 0.0 0:00 imapd 947 root 9 0 696 684 612 S 0.0 0.0 0:00 authdaemond.pla 948 root 9 0 696 684 612 S 0.0 0.0 0:00 authdaemond.pla 952 root 9 0 696 684 612 S 0.0 0.0 0:00 authdaemond.pla 953 root 9 0 696 684 612 S 0.0 0.0 0:00 authdaemond.pla 954 root 9 0 696 684 612 S 0.0 0.0 0:00 authdaemond.pla 767 root 0 0 676 676 588 S 0.0 0.0 0:00 crond 964 root 8 0 640 632 552 S 0.0 0.0 0:00 couriertcpd 981 root 8 0 636 628 548 S 0.0 0.0 0:00 couriertcpd 510 root 9 0 604 604 504 S 0.0 0.0 0:12 syslogd 515 root 9 0 596 596 452 S 0.0 0.0 0:00 klogd 857 daemon 9 0 580 560 504 S 0.0 0.0 0:00 atd 946 root 9 0 572 560 512 S 0.0 0.0 0:00 authdaemond.pla 1 root 8 0 528 528 460 S 0.0 0.0 0:08 init 590 root 8 0 524 524 460 S 0.0 0.0 0:00 apmd 967 root 9 0 464 464 396 S 0.0 0.0 0:00 logger 1031 root 9 0 456 456 388 S 0.0 0.0 0:00 mingetty 1023 root 9 0 452 452 384 S 0.0 0.0 0:00 mingetty 1024 root 9 0 452 452 384 S 0.0 0.0 0:00 mingetty 1025 root 9 0 452 452 384 S 0.0 0.0 0:00 mingetty 1026 root 9 0 452 452 384 S 0.0 0.0 0:00 mingetty 1030 root 9
Re: [vox-tech] C question: global vs local const
begin Mark K. Kim <[EMAIL PROTECTED]> > On Thu, 17 Jan 2002, Peter Jay Salzman wrote: > > > begin Mark K. Kim <[EMAIL PROTECTED]> > > > You're initializing K with a variable. Because globals are calculated at > > > compile time, > > Since Jeff will sooner or later jump in to correct me, I'll correct myself > before that happens: > > I didn't meant to say that globals are calculated at compile time -- they > can certainly be modified during runtime. What I meant was that initial > values of globals have to be calculated at compiletime -- due to the way > they are stored in memory. does this apply to static variables too? i have a situation where a function is called many times over: void function( ..., long double dr) { long double variable = expensive_calculation * dr; ... } i'd like to declare variable as static, since both expensive_calculation and dr remain constant through the entire program. i can't declare dr as being global because it depends on other parameters that need to be calculated at run time (but otherwise don't change). when variable is declared static, it generates the same error message -- a variable initializer. so i assume local static variables are also first computed at compile time? pete -- The mathematics [of physics] has become ever more abstract, rather than more complicated. The mind of God appears to be abstract but not complicated. He also appears to like group theory. -- Tony Zee's `Fearful Symmetry' PGP Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech