Jump to content

hugerobot

Members
  • Posts

    142
  • Joined

  • Last visited

Everything posted by hugerobot

  1. The best thing to do if you do not know how the size of the array is to use a Vector, or an ArrayList. Create the Vector: java.util.Vector dataVector=new java.util.Vector(); Declare the object: data_object data; Later... you need to instantiate it, and populate it with data. data=new data_object(); data.code="Code"; data.qty=3; Then you can add it to the Vector. dataVector.addElement(data); Repeat as often as you like. When you want to retreive the elements from the Vector, you'd do the following: java.util.Enumeration dataEnum=dataVector.elements(); while (dataEnum.hasMoreElements()){ data=(data_object)dataEnum.nextElement(); ... do something with the data... ... } The java API on Sun's site is a terrific resource for code syntax and method references. Good luck.
  2. I only miss the games. And one of the things I hate about WineX games ports is that I think it has prevented the development of a competetor to Direct X, or an open source version of it (if that could ever happen). I may get flamed for saying this, but if you want to play Windows games, just play them in Windows. If you want good Linux games, they need to be native, and having native Linux versions of many popular games would certainly help the Linux adoption rate. Mindrover is the best native Linux game I have ever played, and I bought it because it was one of the best Windows games I ever played. I have a Game Cube, so I get my gaming fix from that.. and Linux does have a bunch of fun free games (I'm a huge Freeciv and Freecraft fan, and XScorch is still an all time favorite). I don't miss any productivity apps. Hell, I used Mozilla, Open Office, Jedit, Netbeans, Gimp and Cygwin when I used Windows anyway. My move to Linux applications was pretty smooth.
  3. Good luck with the install! 9.1 ROCKS!
  4. If you can find that out and post it, I will go get one today! I would love to be wrong about this. I was soooo steamed when I saw no linux desktop sync client. They should have put something on the box explaining it.
  5. You should have read the box before you bought it. I had one in my hand, and put it down because I couldn't believe that a linux device had ONLY Windows software for PC synchronization. Maybe you can write your own conduit. Or hold out for a 3rd party linux client. Or check the return policy on your Zaurus (my personal recommendation. I wouldn't give them a dime for that ill-conceived device)
  6. I'm back to Mandrake 9.1 I installed Redhat 7.3, updated it (until 3am) and spent time configuring it, and I had all the same problems... I think my scanner is busted. I have had the same problems with 9.0, 7.3 and 9.1 (all clean installs, done yesterday) Thanks to zero0w. I got ALSA working, and everything sounds great. I am going to try the scanner on a windows machine at work and see if it broken or not. Can I damage it with the software somehow? Its possible I did, since I tried so many firmware files to find the right one... One last thing: Did anyone have trouble during the installation with OpenOffice.org? I got an error every time I installed 9.1 (3 times so far lol) I was concerned, but I downloaded the rpms from one of the distro mirrors and it installed fine. Thanks Rob
  7. Eight replies! Wow... I am moved. Actually, I expect that since visiting this site has become such a part of my daily routine that I will continue to come here... I am installing RH7.3 on my PC right now. Hopefully once I run the up2date it will be "Linux Nirvana" (hehe). But I'll probably continue to post, ask questions, offer advice. Its not THAT MUCH different... To clarify one point: No. I have never had a fully functional Mandrake install. I had my scanner working, then the TV card went, then the printer, then the webcam.. Then I'd get them working and one would go again. Now, after hoping 9.1 would make the situation better, I find that I am in the same situation, only a little worse, because ALSA doesnt work and I have to use OSS, which has created it's own little set of problems. BTW - A while back someone had suggested a support forum for other distros (I think they mentioned Red Hat by name)... I didn't really care back then, but now it sounds like a great idea!!!
  8. I expected 9.1 to fix a lot of the problems I was having... Instead, not only do I have the same problems as with 9.0, but new sound problems. What a mess. Anyway, I have said goodbye to Mandrake... Redhat 7.3 is the best version of any distro IMHO... I'm downloading it now. Here is my farewell post, if anyone cares: http://www.mandrakeusers.org/viewtopic.php...3912&highlight=
  9. For some reason ALSA doesn't work now that I've installed MDK 9.1. OSS does. But mplayer wont play DVDs anymore because the OSS drivers are too slow, buggy, whatever. Also my TV Tuner card's sound is MONO, and now, instead of splitting the signal accross both speakers (which seemed to be the case by default with ALSA), I only get sound out of the left speaker. In addition, I cant get my scanner to work, or my quick cam. I was getting by without them, because KDE 3.1 was so sweet it was worth the trade off... but now that my sound is screwed up too, I don't think I want to deal with this distro anymore. No point in trying to help me with these problems... If you search the forum you'll see long threads in which I have tried in vein to fix them. But now I'm bailing off of this sinking ship. I hope there's a Redhat forum half as fun as this one! (BTW- I am going to Redhat 7.3. Everything worked with that distro)
  10. I was hoping a clean install of 9.1 would fix my scanner problems... but no luck. I am having exactly the same problem. What should my next step be?
  11. I'm pretty sure Kooka uses the sane backends like xsane... But, regardless, I did try Kooka when xsane didn't work, and the exact same thing happened. Sucks to be me. Rob
  12. DAMMIT Nothing I do changes anything! It just doesn't work. It's always the same thing: 1. Scanner isn't found when I start up my computer. sane-find-scanner and scanimage -L see nothing. 2. When I unplug the power on the scanner and plug it back in, the scanner shows on my kde desktop. sane-find-scanner and scanimage -L both see my scanner perfectly, and identify it by name. 3. When I click the icon to run xsane it hangs, and my mouse stops working. My computer doesn't lock up.. I can still use it with keyboard controls (I'm getting pretty good at it actually!) It worked before I updated my system with rpmdrake/cooker. Everything else works fine, but I guess something in cooker is still undercooked. I guess this means I'll be upgrading to 9.1 in the hopes that it will work.
  13. Yes. The only thing in dll.conf is snapscan. Well, I doubt this is the problem, since it was working fine prior to the software upgrade. I will try it, but the scanner, the cables, and the usb hub it's connected to were not physically touched at all since the time it was working. I have 2 new ideas that I want to try: 1. Since the original installation was a tarball, much of it is still hanging around. I am wondering if there is some kind of conflict/confusion. I guess there's no easy way to remove it except to search for and delete it manually. 2. I also wonder if this is a usb problem and not a scanner problem. Since the scanner isn't detected until I unplug it and plug it back in (the power, not the usb cable). Well, I'm gonna go replace my usb cable, and also try to remove all of the old sane stuff.... Thanks.
  14. Nope... It deletes them. There may be an option somewhere to keep it from happening, or I suppose you could go to /var/cache/urpmi/rpms and move them out of there before they are deleted... I was hoping it kept them, but it doesn't.
  15. I have been down this road so many times, I could scream... But I was pretty confident that I could fix any scanner problem I had with my new install. But I was wrong. I am running MDK 9.0, but heavily updated from cooker. Here is my sane rpm info: [root@homepc root]# rpm -qa | grep sane saned-1.0.11-5mdk xsane-gimp-0.90-2mdk libsane-hpoj0-0.90-4mdk xsane-0.90-2mdk sane-backends-1.0.11-5mdk libsane1-devel-1.0.11-5mdk sane-frontends-1.0.10-1mdk libsane1-1.0.11-5mdk Previously, to get sane to work, I had to download sane and xsane tarballs and make them myself, however, since these rpms were newer versions than the tarballs, I figured they should work. dll.conf is correct. snapscan.conf is correct. The firmware file is there, and is listed in snapscan.conf But here's the problem: Often times, my system doesnt see the scanner unless I unplug it and plug it back in. Then it shows in usbview and the icon appears on my desktop. When I click on the icon, my usb mouse stops working, and xsane/sane locks up and hangs and I can't kill it. I have to reboot to get rid of it. Any ideas?
  16. WOOOO HOOOO! I'm running Mandrake 9... not a 9.1 RC. I ran urpmi.update -a --wget and it worked perfectly. Then I ran rpmdrake, selected all packages by update availability and started selecting applications for update. It worked great. I should make a few suggestions for those of you who want to do this to (I HIGHLY RECOMMEND IT!) 1. rpmdrake will not install ANYTHING if there is any problem after it downloads. I downloaded over 500mb of rpms, and then it told me that it couldn't install because of some conflict with man pages!!! MAN PAGES!!!! WTF!?!? So I uninstalled the man pages, and 2 hrs later, it was installed. My point is, do it in small chunks. It will take longer, but if there is a problem, you won't waste HOURS of time starting over. 2. Remove texstar from you urpmi media list before you do this update. If your main list is a cooker site, you will find all of the same stuff with mdk in the name vs tex in the name of the rpm. The problem is, sometimes texstar rpms are selected for dependencies on mdk rpms, and then when it tries to install the mdk rpm it fails (this was the main cause of #1) After you are sufficiently updated, put texstar back in (I think you can put 'ignore' in the urpmi.cfg entry rather than doing urpmi.removemedia) I am now running KDE 3.1, with the Galaxy look and feel. I am also using Open Office 1.0.2, and Gnucash 1.8.1. Among other things like updated xfree86, qt, gtk and gcc! Yea!!!
  17. Backups! ha! I'm doing this on the excitement plan! Actually, I have my filesystems partitioned pretty well, and just recently installed mdk9 again... so if I hose it, I havent gotten very far since the last full install, and can redo it pretty quickly. I wish those G*DD*MN mdk9.1 ISOs would get here!!!
  18. I have a 5gb /var partition that is only 4% used, so that wont be a problem. I deleted everything in /var/lib/urpmi I ran urpmi.removemedia -a I verified that urpmi.cfg was empty. I then ran urpmi.addmedia statements so that my urpmi.cfg looks like this: [root@homepc urpmi]# cat urpmi.cfg plf ftp://plf.time4t.net/pub/plf/cooker { hdlist: hdlist.plf.cz with_hdlist: hdlist.cz list: list.plf } texstar ftp://ftp.ibiblio.org/pub/Linux/distributions/contrib/texstar/linux/dist ributions/mandrake/9.0/rpms { hdlist: hdlist.texstar.cz with_hdlist: hdlist.cz list: list.texstar } main ftp://mandrake.redbox.cz/Mandrake-devel/cooker/i586/Mandrake/RPMS { hdlist: hdlist.main.cz with_hdlist: ../base/synthesis.hdlist.cz list: list.main synthesis } contrib ftp://mandrake.redbox.cz/Mandrake-devel/contrib/i586 { hdlist: hdlist.contrib.cz with_hdlist: ../../cooker/i586/Mandrake/base/hdlist2.cz list: list.contrib } And /var/lib/urpmi looks like this: [root@homepc urpmi]# ls -la /var/lib/urpmi total 16972 drwxr-xr-x 2 root root 4096 Mar 21 10:59 ./ drwxr-xr-x 24 root root 4096 Mar 18 15:27 ../ -rw-r--r-- 1 root root 10138950 Mar 18 14:47 hdlist.contrib.cz -rw-r--r-- 1 root root 1665779 Mar 21 2003 hdlist.plf.cz -rw-r--r-- 1 root root 4557853 Mar 9 11:21 hdlist.texstar.cz -rw------- 1 root root 213856 Mar 21 10:56 list.contrib -rw------- 1 root root 254485 Mar 21 10:59 list.main -rw------- 1 root root 41842 Mar 21 10:50 list.plf -rw------- 1 root root 45608 Mar 21 10:51 list.texstar -rw-r--r-- 1 root root 125798 Mar 21 10:59 synthesis.hdlist.contrib.cz -rw-r--r-- 1 root root 193006 Mar 18 14:46 synthesis.hdlist.main.cz -rw-r--r-- 1 root root 25937 Mar 21 10:59 synthesis.hdlist.plf.cz -rw-r--r-- 1 root root 29638 Mar 21 10:59 synthesis.hdlist.texstar.cz But when I run urpmi.update -a, I get the following: [root@homepc urpmi]# urpmi.update -a retrieving description file of "plf"... retrieving source hdlist (or synthesis) of "plf"... curl: (7) Connect failed % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ...retrieving done examining synthesis file [/var/lib/urpmi/synthesis.hdlist.plf.cz] retrieving description file of "texstar"... retrieving source hdlist (or synthesis) of "texstar"... curl: (7) Connect failed % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:00 --:--:-- 0 ...retrieving done examining synthesis file [/var/lib/urpmi/synthesis.hdlist.texstar.cz] retrieving description file of "main"... retrieving source hdlist (or synthesis) of "main"... curl: (7) Connect failed % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ...retrieving done examining synthesis file [/var/cache/urpmi/partial/hdlist.main.cz] retrieving description file of "contrib"... retrieving source hdlist (or synthesis) of "contrib"... curl: (7) Connect failed % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ...retrieving done examining synthesis file [/var/lib/urpmi/synthesis.hdlist.contrib.cz] performing second pass to compute dependencies examining hdlist file [/var/lib/urpmi/hdlist.plf.cz] built hdlist synthesis file for medium "plf" examining hdlist file [/var/lib/urpmi/hdlist.texstar.cz] built hdlist synthesis file for medium "texstar" examining synthesis file [/var/lib/urpmi/synthesis.hdlist.main.cz] examining hdlist file [/var/lib/urpmi/hdlist.contrib.cz] built hdlist synthesis file for medium "contrib" found 0 headers in cache removing 0 obsolete headers in cache write config file [/etc/urpmi/urpmi.cfg] Still getting the error: curl: (7) Connect failed Help!!! :)
  19. Actually, I pointed out the first error, but I also noticed a couple of other things: 1. I dont have the ftp locations listed in my urpmi.cfg. So, I modified the file, and now it looks like this: [root@homepc urpmi]# cat urpmi.cfg Installation CD 1 (x86) (cdrom1) removable://mnt/cDrom/Mandrake/RPMS { hdlist: hdlist.Installation CD 1 (x86) (cdrom1).cz with_hdlist: ../base/hdlist1.cz list: list.Installation CD 1 (x86) (cdrom1) removable: /dev/scd0 ignore } Installation CD 2 (x86) (cdrom2) removable://mnt/cdrom/Mandrake/RPMS2 { hdlist: hdlist.Installation CD 2 (x86) (cdrom2).cz with_hdlist: ../base/hdlist2.cz list: list.Installation CD 2 (x86) (cdrom2) removable: /dev/scsi/host0/bus0/target2/lun0/cd ignore } International CD (x86) (cdrom3) removable://mnt/cdrom/Mandrake/RPMS3 { hdlist: hdlist.International CD (x86) (cdrom3).cz with_hdlist: ../base/hdlist3.cz list: list.International CD (x86) (cdrom3) removable: /dev/scsi/host0/bus0/target2/lun0/cd ignore } plf ftp://plf.time4t.net/pub/plf/cooker { hdlist: hdlist.plf.cz with_hdlist: hdlist.cz list: list.plf } texstar ftp://ftp.ibiblio.org/pub/Linux/distributions/contrib/texstar/linux/dist ributions/mandrake/9.0/rpms { hdlist: hdlist.texstar.cz with_hdlist: hdlist.cz list: list.texstar } main ftp://mandrake.redbox.cz/Mandrake-devel/cooker/i586/Mandrake/RPMS { hdlist: hdlist.main.cz with_hdlist: ../base/synthesis.hdlist.cz list: list.main synthesis } contrib ftp://mandrake.redbox.cz/Mandrake-devel/contrib/i586 { hdlist: hdlist.contrib.cz with_hdlist: ../../cooker/i586/Mandrake/base/hdlist2.cz list: list.contrib } If that looks familiar to you, it's because I copied and pasted it from here: http://www.mandrakeusers.org/viewtopic.php...p?p=25691#25691 But that's all I've done. Do I need to do anything to get it to update files a la urpmi.addmedia? 2. This error seems pretty significant: curl: (7) Connect failed And I get it on every entry in my urpmi.cfg. curl is installed, but I am admittedly unfamiliar with the command, and what may be wrong with how it's being used. Hope this helps!
  20. Wow! Thanks for the quick response... Well, all of this has inspired me to screw off at work, and ssh to my home pc to try to get urpmi to update my system... but alas, I am having no success. I removed my installation cd's from the media list, and now my urpmi.cfg looks like this: [root@homepc urpmi]# cat urpmi.cfg plf { hdlist: hdlist.plf.cz with_hdlist: hdlist.cz list: list.plf } texstar { hdlist: hdlist.texstar.cz with_hdlist: hdlist.cz list: list.texstar } main { hdlist: hdlist.main.cz with_hdlist: ../base/synthesis.hdlist.cz list: list.main synthesis } contrib { hdlist: hdlist.contrib.cz with_hdlist: ../../cooker/i586/Mandrake/base/hdlist2.cz list: list.contrib } It looks good to me, but when I run 'urpmi.update -a' I get this output: [root@homepc urpmi]# urpmi.update -a unable to take medium "Updates for Mandrake Linux 9.0 (ftp1u)" into account as no list file [/var/lib/urpmi/list.Updates for Mandrake Linux 9.0(ftp1u)] exists retrieving description file of "plf"... retrieving source hdlist (or synthesis) of "plf"... curl: (7) Connect failed % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ...retrieving done examining synthesis file [/var/lib/urpmi/synthesis.hdlist.plf.cz] retrieving description file of "texstar"... retrieving source hdlist (or synthesis) of "texstar"... curl: (7) Connect failed % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:00 --:--:-- 0 ...retrieving done examining synthesis file [/var/lib/urpmi/synthesis.hdlist.texstar.cz] retrieving description file of "main"... retrieving source hdlist (or synthesis) of "main"... curl: (7) Connect failed % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ...retrieving done examining synthesis file [/var/cache/urpmi/partial/hdlist.main.cz] retrieving description file of "contrib"... retrieving source hdlist (or synthesis) of "contrib"... curl: (7) Connect failed % Total % Received % Xferd Average Speed Time Curr. Dload Upload Total Current Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 ...retrieving done examining synthesis file [/var/lib/urpmi/synthesis.hdlist.contrib.cz] performing second pass to compute dependencies examining hdlist file [/var/lib/urpmi/hdlist.plf.cz] built hdlist synthesis file for medium "plf" examining hdlist file [/var/lib/urpmi/hdlist.texstar.cz] built hdlist synthesis file for medium "texstar" examining synthesis file [/var/lib/urpmi/synthesis.hdlist.main.cz] examining hdlist file [/var/lib/urpmi/hdlist.contrib.cz] built hdlist synthesis file for medium "contrib" found 0 headers in cache removing 0 obsolete headers in cache write config file [/etc/urpmi/urpmi.cfg] [root@homepc urpmi]# No updates. I have removed and replaced media, and tried different things in the past, but I always get that first error when I use urpmi: unable to take medium "Updates for Mandrake Linux 9.0 (ftp1u)" into account as no list file [/var/lib/urpmi/list.Updates for Mandrake Linux 9.0(ftp1u)] exists Any help? Rob
  21. Great! Thanks! That thread is full of answers to questions I've had... I am at work now, but I will try it this weekend and let you know. You know what, though, I have downloaded and installed kernel updates, but I have no idea what to do with them.. I have like 8 options in my boot menu now, and if I choose anything but the original linux option (or NT, but I hardly do that anymore hehe) I get kernel panic errors... Can anyone explain what I need to do to get the kernel updates to work? BTW - I've never had to do anything to the kernel that comes with mdk 9 for drivers/hardware support. Everything I have is supported, which should make my job easier, I suspect. Thanks!
  22. How do I keep my lib files up to date? The idea of updating my system instead of installing 9.1 is really attractive to me, but I can never get urpmi to work right. You suggested changing your main urpmi section to 9.1 instead of cooker, so could you do 2 things for me: 1. Post the urpmi.addmedia statements that I should run to get the configuration you have (I've used the Easy Urpmi site http://plf.zarb.org/~nanardon/urpmiweb.php but most installs I do still fail) 2. Explain what I should do to get my lib files up to date, and ultimately, get me to the point where I have the relative equivalent of 9.1.... I know I'm asking a lot, but this has been something that I just haven't been able to figure out... I guess I'm just dense about some things. Thanks
  23. I'm sure it's good to do... but in this case it didn't help. Sorry. I think I have found my reason to re-install. I am working with the install I did back when I knew NOTHING about Linux. I have been struggling with improving it ever since. I've done pretty well, but there are still some things that I always wish I'd fixed. Today, I know only slightly more than nothing... so I should be able to do a slightly better job.
  24. I was messing with look and feel options in KDE- changing themes, icons, window decoration, etc... Now, Mozilla, Gnucash, Xmms, and probably many other applications no longer work. I get nothing when I select them from the menu, and when I run them from the command line I get Segmentation error messages. Open Office, Opera, jEdit, Konqueror all work. I can do all of the configuration stuff that I could do before. I have even tried removing and reinstalling Mozilla, and I get Segmentation errors when I run the installer! I switched to Gnome, and Icewm to see if it was specific to KDE, but I got the same errors. I have rebooted and still get the same errors. I have logged in as a different user, and still get the same errors. I have removed .kde, .DCOP_Server* from my home directory and still get the same errors. I wish I could think of something else that I did that might have caused this problem, but all I can think of is installing/changing look and feel stuff. If there is a moderately painless fix for this, I'd love to know. Otherwise, I might do that total re-install that I have been contemplating for a while now. Rob
  25. Try removing (or better yet - renaming) anything in your home directory that starts with .kde, or .DCOP... I have had my machine hang at startup, and it was because something in one of these folders was horked. Unfortunately, you'll lose your customization, but heck, you're gonna be fiddling with it so much anyway, it won't be too much of a loss. Good luck... KDE 3.1 sounds a little too rough for me to try it yet... I use my machine too much to be screw up KDE. I'll wait till they get it right.
×
×
  • Create New...