iccaros

Linux Experts
  • Content Count

    1292
  • Joined

  • Last visited

Everything posted by iccaros

  1. ok here is what I have so far (added some couts to what is going on) I have to change to an array, but this compiles.. one step closer.. thank jcl for the suggestions.. huskeyw@huskeyw ~/projects/school/statistics $ cat prob2-10.cpp #include<iostream> #include <fstream> #include <cstring> using namespace std; int check_freq(double x); int main() { double Data; string display; //("00000000"); ifstream myfile ("test.txt", ios::in); if (myfile.is_open() ) { while (! myfile.eof() ) { myfile >> Data; cout << Data << endl; display [check_freq(Data)] +=
  2. vi vim is normally pointing to vi so its place in path is vi in debian.
  3. ok changed my first if (in main) to read if (myfile.is_open() ) { while (! myfile.eof() ) { getline (myfile,Data); display (check_freq(Data)) += 1; } myfile.close(); } else cout <<"Unable to open file" << endl; cout << display; return 0; } that should make that a loop my errors are now huskeyw@huskeyw ~/projects/school/statistics $ g++ prob2-10.cpp prob2-10.cpp: In function `int main()': prob2-10.cpp:21: error: invalid conversion from `void*' to `char**' prob2-10.cpp:21: error: cannot convert `double' to `size_t*' for argument `2' to `__ssize_t getline(char**, size_t*,
  4. ok let start with what this is tring to be.. I am writing a program to help me in my statistics class it shoudl take data from a file (numbers double) and group them into slots (example we have readings from 100 people and 8 groups split in to .4 segments starign at a number , 8 people showed group 1, 10 group 2 ect...) here is my first byte at the code.. #include<iostream> #include <fstream> #include <string> using namespace std; int check_freq(double x); int main() { double Data; string display ("00000000"); ofstream myfile ("test.txt"); if (myfile.is_open() ) { getl
  5. try www.slax.org or puppylinux or DSL or mine iccaros-linux.org.. mine and slax will boot at first with no gui.. read the screen, as it lets you pick the gui, for both guifast would be your choice.. or the frame buffer choice.. after reading the login page it will say.. sorry for the problems.. but hope this helps.
  6. which video card? and I don't use ubuntu but 128 megs.. sound light for gnome..
  7. did it ever boot? when you say knoppix... you installed knoppix to a harddrive did you update the system.. This is normaly caused by updateing a kernel and not updating a initrd file.. as knoppix is a driviative a debian, but changed to use a loop based boot. updateing the kernel using apt or synaptic could easly kill the system.. did the error look like this can you boot a live version of knoppix, mount the drive (hda1 right) go to /boot do a ls -la and post it cd grub ls -la post then post the output of cat menu.1st or cat grub.conf and cat device.map last cat /etc/fstab
  8. need more information ,, system spects? which livecd?
  9. Thanks for the explanation.. the code is from the teachers assinment, so I have not looked for (minior) errors, I had found some like the class incorrectly done..
  10. thanks I notced that 5 in before lookin back at this page.. I was wondering why it showed up under other in the codeblock ide. also here is the full class and class cpp , I apresate your explanation, still don't understnad it (well), I get that adding const behind it it means the funtion can not alter non local varables (or privet varables in the class) but I thought you did that by making it a pointer (as I call the & or * magic that no book or 5 c++ classese faild to explain well) or decalrig const double or something.. thanks.. trying to really understand this time... Point3.h #ifdef
  11. ok if you have a funtion to get a int and it goes like this int getX () const { x = Xvalue; } what is the const outside the () mean.. I mean I think a const means that this function can not change it, the value of xValue that is is it there because in the header file x is definded? so you are not reciving anything, as its there, but the funtion must be constant ? (here is my construtor Point3::Point( int xValue, int yValue) :x(xValue ), y(yValue) {} )
  12. its the diffrece between msdos text file type and unix type.. /r/n for dos /n for unix you can do this dos2unix filename filename this should fix it.. you may hve to install dos2unix gentoo has two program dos2unix or hd2u (hanny's dos 2 unix) the first will need to be unmasked but I know it works..
  13. you said you see this are you saying it happen even wiht out this .. or it is always displaying this but its hard to read for no backlight?
  14. why... get a bootable linux cd like knoppix.. when you get to the first prompt type memtest86 mem test in progress.. no floppy needed.
  15. it sounds like a non energy-complient monitor. I have some arcade VGA monitors that when power saveing kicks in they say no signal.. in a lcd this would turn off the backlight (hence energey saving..) also if you hit the space bar does it come back? or are you just rebooting? and as TheTerrorist_75 said.. if its old the backlight could be going out.. but your no signal is a drop of clock on pin 15 (your dcc clock). need more information brand video card OS brand monitor VGA/DVI ext... no generic terms please
  16. that is what I had you add.. permissino for your subnet you will see the cups admin page...
  17. well it could be that too.. some expert I am
  18. gpg here is a windows how-to http://www.glump.net/dokuwiki/gpg/gpg_intro most Liunx distro like ubuntu have it built in.. or this is the step to set it up linux for auto encrypt decryp (windows has not way to setup how you mount and unmount a drive or folder that I know of) This chapter is based on the previous one. Only the differences are decribed. A great disadavtage of the solution above is, that you have to remember and type in a password of at least 20 characters. This without typing errors. Another disadvantage is, that it is impossible to change the password after setup without repe
  19. you can edit that file, or you can use it adn just edit grub.conf so lets look at what you posted Device Boot Start End Blocks Id System /dev/hda1 1 1824 14651248+ 7 HPFS/NTFS /dev/hda2 1825 2432 4883760 c W95 FAT32 (LBA) /dev/hda3 * 2433 4865 19543072+ 7 HPFS/NTFS Disk /dev/hdb: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 1 2432 19535008+ af Unknown /dev/hdb2 * 2433 3040 4883760 7 HPFS/NTFS /dev/hdb3 3041 31
  20. can you cat this file /boot/grub/device.map here is mine for example huskeyw grub # cat device.map (fd0) /dev/fd0 (hd0) /dev/hda (hd1) /dev/sda after reading your grub.conf and looking at your partitions, it looked like it fliped the drives... is nothing booting? here is how I see it should be (due to what you have marked bootable see the * in your partition table) windows should be (hd0,2) fedora (hd1,3)
  21. did you change hd(1,0) to hd(0,0)?
  22. then its most likely, A. that drive needs jumpers (see top of drive it always tells you) B. that the partition is not marked bootable. If you installed ubuntu with this drive as slave, it woudl not have marked the partiton as bootable as only the partition with a MBR woudl need to be bootable.
  23. no jumpers on most drives is master setting.. read the top of the drive.. for slave you always need a jumper. so if you have no jumpers on both, then both are set up as master
  24. no when you install solaris let it install its grub loader.. then it will understand the solaris partition... I don't know of any linux distro who has upgraded Grub to the Sun changes to it.. yet
  25. just wanted to share the news.. Last night my wife gave birth to our daughter: Rebekah Erin Huskey my wife has been in maile labor for 2 weeks now, so were glad this trip panned out.. Picture of here at 2 hours....