cidViscous

Members
  • Content count

    102
  • Joined

  • Last visited

Community Reputation

0 Neutral

About cidViscous

  • Rank
    elite
  • Birthday 08/08/1908

Contact Methods

  • Website URL
    http://0wnyourself.blogspot.com
  • ICQ
    0
  1. Two of the things you're curious about--polluting the std namespace and why you'd need makefiles--are hard to visualize right now, because you are working on small programs. As you begin working with sufficiently large bodies of code, it becomes much more of a challenge to keep it all in your head. It's easy to focus on a local block of code--a few lines, functions, or even classes. Eventually, though, you end up with lots of lines that you either haven't looked at in awhile or didn't write yourself. Developing good habits like not treading on std will save you headaches down the road, though it doesn't really matter for what you're doing right now. With makefiles, the same sort of thing applies. It's tough right now to see how they might be useful, but eventually, you might be working with more complex programs that are complicated to build. Makefiles let you establish relationships and script out an automated plan to control the build process. As far as int main() vs. void main(), the difference is the return type. The first function returns an integer, the second returns nothing. Returning an integer can be useful to indicate the state of completion--i.e. return a zero for success and something else to indicate failure (possibly different numbers for different error codes). There is some debate about the matter, but according to the standard, void main() is not allowed (in C++, anyway). http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/legality-of-void-main.html
  2. So, today at 5 on the Mez still the plan?
  3. New to Eclipse and Java. I'm digging it so far, but I'm having trouble getting the plugin for Apache Derby up and running. This is the first time I've had to install a plugin for Eclipse and I'm not sure what I'm doing wrong. I downloaded both org.apache.derby.core and org.apache.derby.ui, unzipped them and dropped the folders into the eclipse/plugins folder. When I check the list of installed plugins under About Eclipse -> Installation Details -> Plugins, they both show up (albeit unsigned), but when I try an import org.apache.derby.core; I get a ClassNotFoundException. Either I can't get the plugin working, or it is working and I'm just not using it right. Anybody know what I'm doing wrong? System details: Intel OSX 10.6 | Eclipse build 20090920-1017 | Apache Derby Eclipse plugin
  4. Strike that. It refused to touch those aforementioned directories, but that didn't turn out to be a problem. The right configs were moved and new ones were generated solving the original problem. So, thank you very much Ohm. I still don't understand what the system uses to determine the privs of the special initial user account. Is it maybe the user number? Any account in the admin group can sudo because the sudoers list says so, but what difference would it make to lock out the graphical admin panels if you can still effect the same changes by command line? Anyway, I had no idea that Ubuntu treated the initial account any differently until this happened, so I guess I learned something new.
  5. When I use cp instead of mv it omits the same directories that it wouldn't mv in the first place. . , .. , .gconf , .gconfd , .mozilla. There's clearly something about this whole scenario that I'm missing. As a user in the admin group, I can sudo but it's not unlocking the users-admin panel. I can sudo adduser or sudo deluser just fine.
  6. I don't see wheel but I can sudo. Usually if you don't have sudo privileges and you try it you get the 'not on sudoers....this will be reported' bit. Sudo works to launch the applet, it just comes up neutered.
  7. Thanks for the quick reply Ohm. I tried both suggestions but to no avail. The usermod command seemed to work without a hitch but the 2nd account did not gain any privileges. When I tried to open the users panel I still got 'The configuration could not be loaded--You are not allowed to access the system configuration.' So I tried to move all the configs to an olddot dir but I got the error that some files couldn't be moved because they were in use. So I tried making sure I was logged out of the 1st account and then doing a sudo mv but it said it couldn't because the directories weren't empty. The initial problem with the primary account is that compositing quit working. I'm not sure exactly what I did to compiz (nothing as far as I could tell) but it quit compositing. Then as I was attempting to troubleshoot the problem I became aware of a lack of understanding regarding the user privileges on my system. If you need any more info I'll be happy to clarify as best I can.
  8. I recently began having trouble with my primary user account on an Ubuntu 9.04 box. While working on the problem, I added another account of the type 'Desktop User' so I'd have a functional account to search from and try things. When I attempted to open the users-admin applet I was surprised to find that I couldn't. So I made another account and made sure that it included Administrative privileges. Again, no dice. I tried running gksu/gksudo users-admin but each time I get the same results. So, I started reading and discovered that Ubuntu gives special privileges to the initial user account created. So, even running gksudo, and even when a user group has been granted admin privileges, you still can't get into the system configs unless you are issuing the gksu commands from the initial user account. Running gksudo will bring up the users-admin applet, but with no power--the option to unlock or change settings is disabled. Seems like I'm missing a few things. What do you do when your initial user account is the one with the problems? How can you replace it? What's the point in being able to grant admin rights or use gksudo if things have to be run from the initial account? Is there no way to grant privs to a 2nd account? Why can I not recreate an account of the same name after it has been deleted? If someone can point me in the right direction, I'm having trouble finding clear information on the subject. I have found a number of people getting similar error messages, but I have yet to find any explanation of the differences in user privileges. I'll be happy to rtfm, but as of now, I have yet to find the correct fm to r. Any help will be greatly appreciated.
  9. Almost forgot to answer your question Alk3. I recently upgraded from etch (which was solid as a rock) to lenny (which began all of my problems). I wanted updated versions of gimp, amarok, etc. and the 6.22 kernel (so I could use ntfs-3g). Unfortunately, this broke several things, and my attempts to understand what is happening (and fix it) have unfortunately broken several more. Now that I'm on lenny, I.... ...can't seem to get the proprietary nvidia driver installed. ...can't 'safely remove' an ipod until root unmounts it. ...cant start an xfce session. ...have to manually start metacity for a gnome session. ...have usb devices that hop mount points. I'm a mess, here.
  10. Thanks to everyone who's replied so far. Sound's working just fine now. I'm still having trouble understanding HAL and Fstab--I thought I understood them until my box started acting up. Hald is a daemon that queries hardware and maintains a list of attached devices, right? It acts as an interpreter between the kernel and userland to maintain a current and consistent way for userspace programs to discover and access hardware, yes? So, if I've got this right, then during the init script of the boot process, hald is started, and it scans the system for devices and builds a table, then periodically rescans to maintain it. Fstab seems to be nothing more than a conf file. During the init script, (some program?) looks at the fstab to see what /dev entries get mounted to what mount points, how they are to be mounted, and whether regular users can do the (un)mounting, right? When you call a mount command, mount checks the fstab to see what it's s'posed to do, yeah? So, how do the two correlate? Does hald use the fstab? Am I making this too hard? Rebooting the system changes where the external drives get mounted to, and root has to unmount an ipod (from a kde session, xfce lets users unmount it just fine--in fact, the AmaroK post-disconnect even accomplishes this). Again, thanks for all the help so far. Back to reading and tinkering....
  11. It's been quite awhile since I've used this service on a regular basis, so I don't know if anything's been changed, but I used to maintain a photo blog strictly from my cell on Blogger. You can register either your phone number or an email address with your account and then just send photos as if you were sending an MMS to another phone. The picture shows up, followed by whatever the message body is as the caption. It worked quite well, and was fast and easy. The downside, of course, is that you're limited in your message size to the length imposed by your phone, but you're prolly not trying to write too much at a time in this scenario anyhow. Like I said, I haven't used it in quite awhile, but it was quite a slick setup. I've gotta think that there are other similar services as well, but Blogger is the only one that I've had personal experience with. -cid
  12. Winamp and Media Monkey both seem to work fine for this (if you're using Windows), and on Linux you can grab Rhythmbox or AmaroK. AmaroK seems to be more polished, but both work for the purpose you're describing (they don't even care if it's synched with another library like itunes would). And, if the audio came from the itunes music store, then you'll also need to un-drm it as mentioned above. Just a couple more ideas... -cid
  13. Thanks for all the input, so far. To clarify what I mean about the changing paths.... From time to time, the mount points on the external hard drives change for no apparent reason (other than a reboot). For instance, when I first installed it, it was mounted to /media/usbdisk, then next time it came up as /media/usb, then /media/usb0, and now /media/disk. I need to read up on the difference between fstab and hald--I thought hald was the daemon actually talking to the hardware and the fstab was a config file to tell the initialization script where to mount what drives (and who can mount them, etc.). Maybe I've got that wrong, but occasionally, the mount points change and the only connection I've been able to find is reboots. Other usb storage devices have the same issue--the mount point for the ipod changed from /media/IPOD to /media/sdd2.
  14. Not sure how I missed that. Thank you. Now, I wonder if this is controlled by GConf or by a dot file.
  15. <backstory> Okay. I've been tinkering with linux for a little while now--started with live cd's and recently installed debian as my primary os. It's great, and for the most part very functional. There are a few things that I'm having trouble understanding/accomplishing, however, and so I thought I'd see if anybody here could shed a little light or point me in the right direction... I'm not looking for quick fixes, but rather to understand the underlying problems. </backstory> 1. Gnome - iPod Autostart AmaroK Upon plugging in an iPod, Gnome automatically launches Rhythmbox. I'd prefer an autolaunch of AmaroK, but I can't seem to find what's triggering Rhythmbox. I can't find anything under Gnome's Preferred Applications list or /etc/alternatives, but this doesn't seem like it should be complicated. Anybody know what I'm missing? 2. Reboot Issues a. USB - After rebooting (or booting to windows) I've noticed that the paths to my external usb hard drives change sometimes. This creates problems for things that point to files/folders on external drives (such as all the tracks in a media library suddenly not found--files are still intact, but the path to the library changed). Anybody know why my paths would change? b. ALSA - After rebooting sound no longer works until I re-run alsaconf.