kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Unless your computer is setup specially in a way I am not aware of, your files have been over-written. The file names would have to be different, otherwise the files write over themselves. The only way that I know how to do this is through tape backup software.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Rock On!

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hi,

Type in the root password at the prompt. You should get a shell.

/data maps to some partition on your hard drive, such as /dev/hda3 You will need to find that out. Perhaps you can "cat /etc/fstab" and see the mapping. You cannot use "df", as it is likely that /data is not mounted at this point.

When you find out your actual partition, you want to run fsck:

"fsck -a /dev/hdaX" where X is that partition. The -a says "fix errors automatically"

You might wish to run the command several times.

Let us know how it works. If you need to replace /data with a second hard drive, or move it to another place, that can be done rather easily.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Linux of YesterYear required intimate knowledge of hardware in order to function. Today, it is much different, and any modern machine (Pentium with 64MB RAM, 1GB HD) or more should run it alright. Of course, the more modern the linux is, the more hardware it likes. RH 9 likes 5 GB and 128MB RAM to be comfy.

Unless you are running state-of-art hardware that the drivers have not been prepared for in Linux, you should not have much problem installing. I know that RedHat certifies various hardware products on their website -- provides a blessing if it will work or not. You might want to check there. I have taken most Windoze machines, and happily formatted them for Linux, and they have worked really nice.

Of course, you do not want to take a linux such as RedHat 7.3 and try to run it on the new laptop you just got. 7.3 might not know about wireless cards, or other advances since it was made. Then again, it is entirely proper to put 7.3 on the 10 year old IBM Thinkpad laptop with 32MB RAM and a 1GB hard disk. Match the software level with the hardware level.

You can install Linux on a computer with XP on it, and have them dual boot. Easiest way is to add a second hard drive. Backup your data first. If you want to use teh same drive, it will need to be large enough to handle both …

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

To answer your questions:

.tar.gz files: These are tape archive files (tar) that are compressed using gzip (gz). I prefer doing all of this in the command line, and you probably should get invovled and learn how too! .tar.gz is a lot like your PC .zip files, or your Mac's .sit files. They are a collection of files that are compressed together.

1) Open a terminal window.
2) Make a directory for the file [mkdir dirname].  Some .tars form their own directory, others extract right to the root where you started, making things messy.
3) Copy the file into the directory you made [cp file.tar.gz dirname/.]
4) CD into the directory [cd dirname]
5) Unzip the file [gzip -d *.gz]
6) Untar the file [tar -xvf *.tar]

TO learn more about these commands, look at their man pages [man gzip] [man tar].

Brief tutorial:

tar -xvf filename.tar --> Extracts the tar file, and you see what is going on

tar -cvf /OtherDir/filename.tar * --> takes the files in the current directory, and subdirs, and archives them to the filename somewhere else. When making tars, make them OUTSIDE of the directory you are preparing.

gzip filename.tar ---> compresses filename.tar into filename.tar.gz

You may also see .tgz format... that is exactly like .tar.gz

There is a way to extract with just using tar... I think it might be tar -xvzf *.gz, but not sure. I …

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

The official answer is, no, you cannot install Mac OS X on intel hardware. PearPC is an emulator, so you can install it inside of a VM (virtual machine), but no, not directly on the box.

I heard / read that Apple has OS X compiled for Intel, but it is not released or for sale. I would have to read more and search to find that article again.

If you wanted to run Apple OS X from your intel box, youc ould get a Mac, and then use VNC to control it from your PC.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

/dev/hda2 is a filessytem on your hard drive. (hd) means that it is a hard disk. (a) means that it is the primary IDE channel, primary (not slave) device. (2) means that it is the second partition on that drive.

Linux systems are servers, and by convention, servers partition the hard drives to protect them. The simple answer is that your second partition is in trouble -- either bad data, physical errors that sort of thing.

If you are in a hurry, I would go to the store, get a different hard drive, and re-install. We do not know if you have physical damage or not, and I am thinking you are brand new to linux.

If you have some more time, try to load linux in "safe mode" or as we call it, single user mode. Not having deep SUSE experience, I do not know if you have those options, or how to get them. In RedHat, at the GRUB screen, we type in an "a" and then add the word "single" to the boot command line.

If you can get to a prompt, you can try running fsck to repair the volume. "fsck /dev/hda2" in your case. You might need to put other qualifiers in there -- might want to "man fsck" first.

Good luck with this.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

The easy simple answer is: Macs feature different hardware chipsets than PC's.

The better answer.

Macs use a Motorola - IBM jointly developed processor called the Power PC chip. They are based in IBM's POWER chip set that was started in the 1990's. PC's use chips based on Intel's 286 processor, although the Pentium and later chip families enhanced the capabilities of the processor.

The older Macs -- talking early 1990's -- used NuBus technology developed in Texas (I think it was Texas Instruments) for cards. Windows at the time was working with ISA technology. MCA was being phased out, as it was too expensive / proprietary for the Windows crowd. I should clarify -- the DOS crowd. Macs used SCSI busses (more expensive, but more capable) to access hard drives and scanners. PC's used the parallel port and IDE drives.

In the Mid 90's, Intel developed the PCI bus. They first came in Windows machines, and then Apple adopted the technology into the later PowerMac series before the G3 chip. Apple also got into internal IDE drives. USB came to both platforms later on.

In the 2000's, Apple developed Firewire that was adopted by Macintosh and Intel Platofrms.

So today's hardware is similar in terms of internal busses and expansion options. I can go to Best Buy and get a IDE hard drive, and place it into a modern Mac and format it and use it. A PCI network card, with …

kc0arf 68 Posting Virtuoso Team Colleague

Can you describe how you are trying to search? I would like to replicate here.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

HI,

What do you mean by "auto memory?" Are you thinking of self-saving, such as in Microsoft Office, you can tell the software to save every 5 minutes?

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

It sounds to me that your hard drive is not formatted.

Boot with the Panther CD, and when you get to the first screen (Welcome?) there will be a blue apple in the upper left corner. Click it, and choose Disk Utility. Inside of there, you will find tools to format your new drive.

While you are at it, you might wish to format your big new drive into 2 or three partitions. That way, if you ever have to format your system drive (or accidentially do it) you can keep your data on another partition, and it will be protected from the format. Note that partitions do not protect against physical hard drive damage.

My laptop has 3 partitions: System, Applications, and Data.

If you do this, Give your system one some space -- 8 GB or so. Also note that if you partition your drive, there is no way to re-partition without reformatting everything. So think wisely before you commit the changes. Once the partitioning is done, you can then format the drives, and continue your installation.

And if you do partition, name your volumes appropariately.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

To best understand the material, you need to USE the material. Write some small programs, such as writing sentances on the screen. Then, do some simple math, adding 2 + 2 together. Then, work in input statements "input a: input b:" and add those together. Then, work on a loop to make the program repeat and repeat until youtell it to stop.

Then get into files, and reading in information.

Programming is not a spectator sport; you need to put code into the machine, and get it to do something. Do not be afraid of the errors you will make.... this is how we learn.

Write some code. Now. Enter it here. We can go from there.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

It is standard policy at DaniWeb to not do homework, rather to assist others doing their homework. That means we need to see sample code from you. If you do not know how to write it, then write some psuedo (sample) code and we will help you further.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

I believe you can also right click on an application, and tell it not to close the window right away. This is an OS thing... my linux shell remains open.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

You might want to explain more what you are trying to do. This is not the right forum to discuss ethics of data mining, rather the technical end of doing it. Perhaps you might touch on how you plan on gathering your information. Making a web page? Writing C++ code to go into MySQL and read stored info? What is the bigger picture?

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

This is how the DaniWeb is supposed to work. Students, post your code, and people will come around and help you with it.

It is best not to privately ask questions of people who help you though, because they may go on vacation, or be away for a few days, and precious time could be lost. Keep the new discussions here in the open forums, so that others who may know the answer can chime in and help.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

HP makes a nice laser printer; so does Apple. If you went color, I would suggest Epson inkjets. I like them more.

I would be looking for Postscript printing, and if possible, get a network printer (either via jet direct, or some other solutions) so that more than once computer can print to the printer at a time. Of course, this will add a bit of cost, but you might like that functionality. The two printers you mention have these features.

Here is what HP has to say about it:

The HP LaserJet 5000n printer is a 16 ppm laser printer that comes standard with a 100-sheet multi-purpose Tray 1, a 250-sheet Tray 2, a 500-sheet Tray 3, 8 MB of memory, and an HP Jetdirect print server card (J4169A) for connecting to a network. It is designed for network users and can print on paper sizes up to A3 and 11 x 17 inches.

It says that it has a Mac Serial adapter. If you were thinking of doing this, it will be ungodly slow. Plan on hooking it up to a network via a Jet direct (the N implies it is internal) and configuring the use there.

So, it looks like you could be adding a small network to your house. That will work well with a cablemodem type hub that manages high speed internet, and also allows you to plug in a few things locally.

Let us know if …

kc0arf 68 Posting Virtuoso Team Colleague

Cool beans!

Glad that it is working for you. Take care, and enjoy.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

If you do not mind submitting the code, I'll try to compile it. I bet you have something else on your Windows (most likely) though. What are you using as an anti-virus software?

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

It is DaniWeb policy to assist you in writing your code, not to do it for you. You mentioned that you are learning C++. What have you learned so far?

We need you to provide code, so that we can help you tweak it.

Christian

alc6379 commented: Great answer! +3
kc0arf 68 Posting Virtuoso Team Colleague
kc0arf 68 Posting Virtuoso Team Colleague

Hello,

iChat is a AOL Instant Messanger (AIM) client. Any PC / Mac / Linux user with AIM will be able to talk with iChat.

I would test this with you, but I deleted my iChat in favor of Fire which allows for me to use one program for multiple (AIM / MSN / Yahoo / ICQ) clients. While I might miss some extra features, such as webcams, I am glad to only have one program running with all the flexibility.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

What version of OS X are you using? Under 10.3 (Panther), go into System Preferences and into the Dock control panel. Do you have magnificaton turned on? If you have the size of the icons LARGE, and Magnification to MAX, they won't get much larger.

Also, when it highlights over a menu, what menu do you refer to? A screenshot may be useful.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

I doubt you are going to be able to write directly from the camera to a DVD burner. While I know Firewire is fast, I am not certain if the hardware is designed to go that route.

I'll have to get home and look at iMovie and see what it has to say about temp files and storage locations.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

You are going to need to use the Printer Utility to attach to the printer in OS X, and set it up from there. Does your Asante Laserbridge support IP? If not, you are also going to need to turn on AppleTalk in the Network control panel, and grab the name from there.

Let us know how it works,

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

An array of files makes no sense. Arrays are data structures; files are residents of a file system on a hard drive (or RAMdrive).

What are you really trying to do?

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hi,

I cannot comment really on what the big development world uses, but I know I use C++ for accessing parallel ports / hardware in Linux, and use shell scripts to manage the file system.

I think a lot of your behind-the-scenes drivers are going to be C or C++ based. JAVA is interpreted, and that means slow down when running through the libraries.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Thank you for the update there. I may have visited such a place in my Diablo II conquests when I look at Battle.net and go from there.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

I am not a big-gun programmer, but I think that you may be lacking some C++ libraries or have to make tweaks to the makefile before you can have a successful compile. It is possible that the libraries exist, but the directory paths are wrong. Or different C compilers entirely.

This is why a lot of C++ programs on the net come with a ./configure script that goes through and makes a Makefile on-the-fly so that the various includes are properly accounted for.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

I was wondering what MMORPG meant, and Darakuli's attitude and non-professional email address just motivated me to consider the next post in the queue.

In the future, Darakuli, it may be helpful to leave out the attitudes, and to not shake your rattle if someone doesn't answer you promptly. This is a technical forum, so just stick with the facts. Also, if you want respect, and intellectual discussion, offer an appropariate email address without swear/curse words within. Better yet, keep the discussion here, so that others may benifit too.

You make an image every time you post here, and others interpret what you say and your attitudes. Right now, I have visions of immaturity concerning you. You may wish to reflect upon that as you venture out into the professional world. And no, I am not some God or almighty authority. I do know, however, that many an expert will see your rants, and just move on, not wanting to deal with your baggage.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Sounds like "Stuck Download" to me. I avoid products that try to promise compression or faster download rates. The amount of bandwith that you have is what you got, and unless your compression scheme is better than .zip or .gz or .sit, you are going to add bytes to the download scheme anyway.

Best leave it alone.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Are you using OS 9 or OS X? If 9, you need to go into the Chooser, and change the printer. If you have Quickdraw GX (unlikely) or Desktop printing enabled, you might be able to click on the printer and make it default.

Under OS X, you may need to go into the Printer Utility and make the Lexmark the default printer.

Strange enough though, either OS's print dialoge box should allow you to change printers on-the-fly. It is possible that your Lexmark printer was deleted.

LEt us know.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

You can

1) Remove Microsoft Word installed in the classic mode. This will force your Mac to learn where OS X office is, and run with that.

2) You can place a alias (shortcut) of word on the Dock, and then drag-n-drop your document onto it to launch the OS X version of Word.

3) You can modify the Classic settings so that it asks you if you wish to load Classic. I have mine set to prompt me for confirmation that I want 9 to load.

4) Check out this website: http://mac.excaliburworld.com/foibles.html
It talks and offers a program to fix the Desktop file to correct the problem, and avoid it in the future.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

iTunes does work very well, but it is not as CPU efficient as MacAmp can be. I have a slower 333 Mhz Powerbook that is my main mac (yes, time to upgrade!) and I can tell a difference in performance playing music with MacAmp vs. iTunes.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

You might want to send your dad an email then :)

IF Memory serves, you can read the string into a [40] string array (for safety) and then do a string copy of the first 10 characters. Don't forget the 11th character for internal storage of your \n (return) so that things align nicely inside of the program.

Of course, that will not work if you want to error check. You might then use a strlen to see if the array is X size, and then use if-logic to see if people are following directions.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Tek, haven't you gotten a Mac yet? I thought we converted you a few threads / months ago. We gotta work on a hardware plan for ya. Maybe see if Dani will get you one, and write it off as a business expense. We need a DaniWeb R & D Labratory. DaniLabs.

I like it too.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

You might also want to go to sourceforge.com and see what is lurking around there. Download some sources and see if youcan help out on a project. I wouldn't announce you are doing it, but just see if you can respond to the challenge.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

HI,

My dad has a 5300c, and the serial port just went out on it. The computer is just odd enough that it will not run the right stuff. Too young for the NuBus materials, and too old for YDL and friends. And no one is going to come out with Happy 5300c Linux.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Do you have a password associated with the screen-saver? I think I also read that there are new patches out there. Try running System Update to see if new software comes down the pipe. I have seen my screensaver do strange things once in a blue moon. Not often though.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

I have an idea. Can you take a digital picture of the login box, and email to me by chance? There are ways to attach pictures to posts or to an email. I would like to help, but really need to see this to know where to go next.

Thanks.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Mac programs are not compatable with windows programs. Their data files might be, but unless you install Virtual PC, or find a port of the application (such as office, open office), then the software will be useless.

There is a nice shareware version of MacAmp out there for ~$50 or so, and it does a lot of nice things that iTunes cannot.

Enjoy your Macintosh! There are a lot of great things to do with it.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

You might want to clarify a bit more on what you want to do. I am also not certain this question belongs here in a C++ / C discussion.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

As a matter of DaniWeb policy, we do not do homework for people. We do assist. First, how would you write the program in psuedo code? We can build there together then.

For example: we want to convert inches to centimeters.

Psudeo Code:

// Need variables for the data
 variable inches, centimeters
 
 // Need control value for the program
 variable continue
 
 // Program
 
 While continue == yes
 	 Ask user for value in inches
 	 compute centimeters = inches * 2.54
 	 output centimeters
 	 Ask if user wishes to do another.
 Done.

Give it a shot. Let us know what you come up with. Comment a lot. We will learn together, instead of someone tossing you the answer.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hi Alex,

MKLinux was running on my PowerMac 7100 back in 1992 - 96 timeframe. Long time ago. I thought it was quite good for what I was asking for... linux, connectivity to the internet via the external modem. Could compile things at home and then get them working, and then FTP them up to the school stuff and test them there.

I would not recommend it at all, unless you have some older computer around like a 7100 that you would like to work it though.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hi,

I think such a program would be defined by the OS. I would guess it easier to write a request to the user to do it. But if you go deeper, like wanting them to have homemade CD's or something, you will need to put in check code and check files on the CD's to make sure that they inserted the proper disk.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Did you try zapping the PRAM and see if that helps you? I am wondering if your computer is having some other issues internally. It is possible your hard drive got corrupted, but if you are having trouble booting from CD, then there is something greater going on.

How far into the CD-ROM boot did you get?

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

What version of OS X are you running? What other programs are available? Does the computer lock up after you see this condition? I have not seen/heard of it before.

Please provide all details.

Thanks,

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

YDL worked fine for me on the Mac. I had it on my Powerbook G3, and on a Workgroup Server. I like OS X better than Linux on a server, but YDL was very nice on the older hardware.

I also ran MKLinux on my Powermac 7100, but that is out of production, and no longer supported. YDL doesn't work with NuBus (remember that?) computers.

Enjoy!

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

I ended up getting a Sony DRU-540, it has USB and Firewire. Worked great out-of-box with my Mac, and will be trying it on the Linux box in short order.

Thanks for the note.

Christian

kc0arf 68 Posting Virtuoso Team Colleague

Hello,

Aparently, you did not include any development libraries from your software installation. For example, on RedHat, you have the option to install development libraries and can choose the various languages.

I think that the easiest way to do this is re-install your box with the distrobution that you have (RedHat, Slackware, Mandrake), and choose in the options to install all of the development tools.

You could try getting the .rpms or tar files for all these things, but I think the amount of dependancies and syncing it all together would be a troubling task.

Others may have other opinions. I think if it was me and RedHat, I would be re-installing.

Christian