Re: C programming question

2009-04-08 Thread William Gordon Rutherdale
Valentin Bud wrote: Thanks everybody for the heads up. I don't know (yet) which path i am going to take. I know a little bit of perl so i guess i'll start reading on how can i accomplish my goal with perl. thanks, v I've been programming for a very long time, and I can tell you that both

Re: mysql memory

2009-04-08 Thread William Gordon Rutherdale
I think 'top' is showing the external view of the process and how many pages total of heap have been allocated (under 'RES'). Possibly your tuner program is just showing the size of the cache specifically. -Will Valentin Bud wrote: Hello community, I have mysql installed on FreeBSD 7.0

Re: Why?? (prog question)

2009-04-01 Thread William Gordon Rutherdale
Oliver Fromme wrote Of course this is purely a matter of taste and personal preference. My preference is similar to yours, but my main reasoon is to save space. I think it is a ridiculous waste of space if every third line consisted only of a sole brace (opening or closing). To my eye, such

Re: Why?? (prog question)

2009-04-01 Thread William Gordon Rutherdale
Polytropon wrote: Okay, now I understand what you mean. Consistency refers to the usage of spacing / tabbing for a given project that is adopted by several programmers. Yes, I agree with that: It's a very bad idea to have many different styles within the same project. . . . When I need to read

Re: Why?? (prog question)

2009-03-31 Thread William Gordon Rutherdale
Polytropon wrote: I don't want to start a style debate, but forgive me the following annotations: 1. Use the tab character for indentation. You can set its length with your favourite editor (e. g. mcedit: F9, Options, General; joe: ^TD). Don't waste with spaces. 2. The main() function

Re: Why?? (prog question)

2009-03-31 Thread William Gordon Rutherdale
This isn't a BSD question. It's just about elementary C. As other people pointed out, you could have easily caught it anyway just by turning on warnings. -Will Gary Kline wrote: people, i've been under the weather for days and will probably be for a few more. new and TEMPORARY meds dont

Re: Why?? (prog question)

2009-03-31 Thread William Gordon Rutherdale
Polytropon wrote: On Tue, 31 Mar 2009 07:48:00 -0400, William Gordon Rutherdale will.rutherd...@utoronto.ca wrote: Tabbing is the worst form of indentation. It is *much* better to use spaces consistently. may I ask what exactly you mean by consistently? I've seen various opinions

Re: insert new line in files

2009-02-07 Thread William Gordon Rutherdale
Wojciech Puchar wrote: I want to insert a new line of text at a certain position in certain files recursively under a directory. More specifically, I want text like this: include('/usr/home/www/imp-sites/default_inventory.php'); write a script: #!/usr/local/bin/bash (a=0 while [ $a -lt 36

Re: shell commands - exclusion

2009-02-04 Thread William Gordon Rutherdale
Lars Eighner wrote: On Wed, 4 Feb 2009, t-u-t wrote: hi, i don't know if this is a freak question, but i was looking around to see if this is possible, and what the convention would be. if i have say one (or even two) single file/directories among many others, and i want to perform any

Re: intel 64-bit version?

2009-02-03 Thread William Gordon Rutherdale
I'm using the amd64 version of FreeBSD for an HP Pavillion using an Intel Core 2 Quad processor (Q6600). So far it's doing fine with the processor. There are some driver problems, for instance no sound. However, as I'm using this machine as a compute server, I'm ignoring those limitations.

Re: Tool to uncat file

2009-02-01 Thread William Gordon Rutherdale
$ man split This (split) is the standard unix utility to break a file up into pieces. It breaks it down either by a fixed number of lines or by a fixed number of bytes. Also the rules for dividing lines is simplistic: simple newline division, no special escape handling. If that doesn't

Re: Perl: Why not updated to latest version 5.10.0

2009-01-21 Thread William Gordon Rutherdale
As a newcomer to freebsd and a long time Perl user, this was one of the first things I noticed. 5.8.8 as distributed on freebsd 7.1 is extremely old. -Will Jerry wrote: I was wondering if anyone can tell me why Perl was not updated to the latest stable release; i.e. 5.10.0 rather than 5.8.9

Re: Cannot get ethernet off the ground

2009-01-18 Thread William Gordon Rutherdale
, including configuration of the ethernet adapter. So now I'm in on the FreeBSD world. Thanks for the help. -Will Roland Smith wrote: On Sun, Jan 11, 2009 at 08:08:16PM -0500, William Gordon Rutherdale wrote: I'm afraid it's gone from bad to worse. The 7.1 system may have recognised the ethernet

Re: Cannot get ethernet off the ground

2009-01-11 Thread William Gordon Rutherdale
. By the way, two other cards were not recognised. That's why it labelled it 'none2'. There was also a none0 and a none1. However those cards are lower priority for my application. -Will Michael Powell wrote: William Gordon Rutherdale wrote: I have to use paper-sneakernet because - no network

Re: Cannot get ethernet off the ground

2009-01-11 Thread William Gordon Rutherdale
anyway. -Will Roland Smith wrote: On Sat, Jan 10, 2009 at 08:11:00PM -0500, William Gordon Rutherdale wrote: I have to use paper-sneakernet because - no network connectivity yet - tried plugging in a memory stick; it flashed but nothing showed up with the 'mount' command Here are the last two

Re: Cannot get ethernet off the ground

2009-01-11 Thread William Gordon Rutherdale
on this machine. -Will Roland Smith wrote: On Sun, Jan 11, 2009 at 06:17:35PM -0500, William Gordon Rutherdale wrote: Well isn't that just great. I'm using the amd64 version, don't know if this makes a difference. It shouldn't really. AFAIK the code for the network interface drivers

Cannot get ethernet off the ground

2009-01-10 Thread William Gordon Rutherdale
Hi. I have just installed FreeBSD on a machine and am having trouble getting basic ethernet connectivity working. I know that the interface works because it functioned fine with the old virus software called 'Vista' on that connection. The ifconfig utility tells me that the machine

Re: Cannot get ethernet off the ground

2009-01-10 Thread William Gordon Rutherdale
, William Gordon Rutherdale will.rutherd...@utoronto.ca wrote: Hi. I have just installed FreeBSD on a machine and am having trouble getting basic ethernet connectivity working. I know that the interface works because it functioned fine with the old virus software called 'Vista