FireSBurnsmuP 0 Posting Whiz in Training

What is que ? Is it a pointer, or is it another Que ? If it's a pointer, then you should be .remove() ing 5 times and it should be empty. If it's another Que , then of course que1 is not empty, you've only .remove() d twice, and it's not empty.
Basically, this is all I can say whilst not knowing the rest of the code. Some of your code is a little, well, difficult to understand just by looking at it on its own. At any rate, I hope this helps you get in the mindset of figuring it out.

FireSBurnsmuP 0 Posting Whiz in Training

Any ways to make a "hidden" button but still fuctionable?

This actually has a couple of pretty simple solutions; I figured them out by playing around in the properties window.

Try changing the button's "FlatStyle" to "Flat", and FlatAppearance.BorderColor to the background color of the form (default is System.Control). There are other colors in "FlatAppearance" you might want to replace too, but I'll let you play around with those.
That will make a button object appear "invisible", except the text inside. You could also clear the Text property out, of course.

Another way to do this is using a label with no border, AutoSize = False, and Text = "". Labels have an "OnClick" event that you could use just like a button's.
Personally, I find this easier, but messier; labels should be used for displaying, not as a substitute for button. I make the names of these labels have the button prefix just to clarify in-code what it is. ("btn-" instead of "lbl-")

Hope this helps!

FireSBurnsmuP 0 Posting Whiz in Training

Here's the list of links I have compiled right now on the subject. If you're looking to change the boot screen on Windows XP SP1/SP2, these would be good places to start. They might even help us on SP3, but I can't say for sure at this point.
UserXP's home-page This has LoginUIBootRandomizer for changing the boot screen and login screen, and Boot Editor to make the actual boot-screen. An excellent tool if you have SP1 or 2, but I don't think even Boot Editor will work on SP3.
VirtualPlastic's tutorial
The Tech Guide's tutorial
Infocellar's tutorial
Andreas Tofahrn's Tools page Look for BootLogo. Thanks go out to him for making these up.

FireSBurnsmuP 0 Posting Whiz in Training

I've searched the whole freakin' web once more (I've been searching and reading forum after forum after article after howto, etc., for about 4 days straight now. Maybe I'm doing it wrong ^_^U) trying to figure out how to customize the boot-screen on Windows XP Pro SP3, and I can't seem to find anything on SP3 itself, except that it's different to change it on SP3 than on the previous two service packs (gee, that helps, doesn't it?).

So I have 2 questions for the community here, but I should probably explain the background information on both of them first.

Now, I've seen just about everything there is on the internet about Changing the Windows XP boot screen manually. You have to open up resource hacker, and change ntoskrnl.exe for SP2, and ntkrnlsp.exe for SP1, and it looks like it was ntkrnlpa.exe for without service packs installed. It's usually good practice to BACKUP your kernel before doing this, of course. Another good practice seems to be editing the boot.ini file to have a second entry, exactly like the first, with "/KERNEL=customkernelname.exe" at the end, with "customkernelname.exe" changed to whatever you renamed your new kernel after modifying it (of course, you need to save it to the same directory, c:\windows\system32 )
While changing it, you open it in resource hacker, and take out bitmaps 1, 8, and 10 for professional, or 1, 7, and 9 for home (some sites say 1, 9, and 11, but I can't confirm …

FireSBurnsmuP 0 Posting Whiz in Training

Quite clever! I am not sure I would have thought of that one.
Thanks for submitting that, I feel enlightened now.

FireSBurnsmuP 0 Posting Whiz in Training

Alrighty, here's the script I wrote up... I did get a lot of the code in parts 1 and 2 from dougfractal on ubuntuforums.org, but part 3 was me using the ideas I got from cassianoleal on wordpress.com (the link is in the above post). I tried to give credit where it was due.
You have to change the filename to not have the .txt, because it would really irk me to know someone out there executed a text-file. ^_^U
Also, I have included my xorg.conf, which is working with direct rendering: Yes . I don't know where I got this, anymore, but I don't think they wrote it anyway, so I don't really feel bad not listing them in my credits. The keyboard layout is "us", with no options or anything fancy like that. (I feel obligated to tell you that, cause when I downloaded it it was dvorak and I didn't know it. That was a mess to clean up.)

I hope someone finds this useful at some point! I sure would've 3 days ago.

FireSBurnsmuP 0 Posting Whiz in Training

ALRIGHT... The script I have is to enable drm support in the kernel. What that is, I don't know, but it ISN'T Direct Rendering, and if it is, it isn't all of it. I finally figures out how to pass LIBGL_DEBUG=verbose to glxinfo... check it out:

~$ LIBGL_DEBUG=verbose glxinfo |grep rendering
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
raziel@nosgoth:~$ LIBGL_DEBUG=verbose glxinfo |grep rendering
libGL: XF86DRIGetClientDriverName: 6.7.0 mach64 (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/mach64_dri.so
libGL error: dlopen /usr/X11R6/lib/modules/dri/mach64_dri.so failed (/usr/X11R6/lib/modules/dri/mach64_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to find driver: mach64_dri.so

I figured this would help out any out there, at least as an update. I think I know how to dri... so I'll be back in a little bit.

/me comes back...
^_^
http://cassianoleal.wordpress.com/2008/03/08/one-more-try-on-the-mach64/
I now have direct rendering: Yes .

to basically sum up the problem I had, I had a "missing shared object file" error. These happen to me all the time, believe it or not, and I usually don't have to download anything.
I tried downloading the package libgl1-mesa-dri - the one that has this file in it - but that didn't work for me. (because of the earlier problem with the whole mis-matched versions)
However - I already had the package on my computer. It turns out that the package installs to /usr/lib/dri and not /usr/X11R6/lib/modules/dri . So I added a symlink (after making sure /usr/X11R6/lib/modules/dri

FireSBurnsmuP 0 Posting Whiz in Training

Alright! I found a fix for the locking assertion failure (although I don't fully understand what happened, I wasn't paying all that much attention...).

It turns out that libx11-6 has a conflict with the older and un-updated libGL.so.1, that causes an incompatibility if libx11-6 is too new. The fix is basically to downgrade libx11-6 from 1.1.3 to 1.1.1. Here's the link to the .deb in the ubuntu 7.10 repositories: http://packages.ubuntu.com/gutsy/i386/libx11-6/download

Also, here's the faq I found that describes the problem and solutions: http://forum.tuxx-home.at/viewtopic.php?f=10&t=565

...
However, that doesn't fix my direct rendering: No , unfortunately.

But, I'll keep digging... If nothing else, as usual, I'll document the problem, causes, and solutions here so no-one else has to deal with all this.

FireSBurnsmuP 0 Posting Whiz in Training

Alrighty, here's the problem:

I am installing linux on a sony VAIO that has a:

01:00.0 WGA compatible controller: ATI Technologies Inc Rage Mobility P/M AGP 2x (rev 64)

I have tried installing the drm module "mach64" (after discovering that this is a mach64 chipset, I think) along with the xf86 driver "ati" (compiled with the mach64 module existing and modprobe'd), as according to a tutorial I found here:
http://ubuntuforums.org/showthread.php?t=406389

I used the "script" of sorts in post 6, debugged - I'll attach it for you (had to change to format ".txt", just take that off. If you're running it it needs root access to resolve the dependency issues I found).

After all that, I still get direct rendering: No (If you want to know why, try setting LIBGL_DEBUG=verbose) , but I see a problem here...

$ glxinfo |grep "direct rendering"
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7bd7767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb7bd78b1]
#2 /usr/lib/libX11.so.6 [0xb7c6d421]
#3 /usr/X11R6/lib/libGL.so.1(__glXInitialize+0x596) [0xb7ea33cc]
#4 /usr/X11R6/lib/libGL.so.1 [0xb7e9ffc8]
#5 /usr/X11R6/lib/libGL.so.1(glXChooseVisual+0x29) [0xb7ea1124]
#6 glxinfo [0x8049448]
#7 glxinfo [0x8049b23]
#8 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7d2b450]
#9 glxinfo [0x8048d51]
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

If I knew what a locking assertion failure was, I'd fix it... But I don't.

So, I guess it comes down to this:
What is a locking assertion failure, why is it occurring, and how can I fix it?
Secondly, how can I get direct rendering on this card? If fixing this won't fix …

FireSBurnsmuP 0 Posting Whiz in Training

Alright, I found a solution to the problem.

This is an issue caused by the (albeit COMPLETELY UNRELATED) "UPnP User Interface" That was an optional component to the windows networking services package that comes on every computer. I can see why most people don't have this problem now, this isn't something many people enable. I thought it would be nice, but I guess not.

If you go into the "Add/Remove Programs" in the control panel, then goto "Add/Remove Windows Components", and click on "Networking Services" you'll find a button called "Details". In that box you can disable the "UPnP User Interface" and reboot the computer.

Problem Solved.

FireSBurnsmuP 0 Posting Whiz in Training

Okay... so now it would appear as though it only happens some of the time. Sometimes, my taskbar is fine, the hide button is there, all my icons are there, and the LAN goes away when I'm not using it, and the volume control and battery stay there. Was there a problem with HP OEM discs' taskbars? I googled the issue, and found little to nothing.
This was a fresh install of windows when it started doing this, too. I don't know what in the heck is up with it and I'd like to.

And sorry about the triple posting, I can't edit my own posts after a certain period of time, I guess. I guess if I don't receive any help on this one, I may as well document the issue here so someone else can fix their problem later on...

FireSBurnsmuP 0 Posting Whiz in Training

Oh, and by the way, workarounds are fine, if there's a program I can use that'll output battery power/charging percentage on the desktop, or what have you, I might be able to deal with that, too. I'm working on getting the sound buttons on the computer's case to work now.

FireSBurnsmuP 0 Posting Whiz in Training

Hey all! Again, it has been a while.

Anyway... I just replaced the battery on my laptop, and I've been having issues with the volume control icon in the taskbar tray. Every time I start the computer, it's not there. If I go to "Sounds and Audio Devices" in the control panel, the box that says "Place volume icon in taskbar" is always checked. I have to uncheck, apply, recheck, and hit okay in order to use the volume bar.

Now, this was just an annoyance until recently. I alluded to replacing my battery earlier... While my battery was unable to charge, it never struck me that my taskbar icon for the battery/power supply was never in the taskbar tray. However, now I find that I have an even worse issue than that of the sound icon: I can't get this icon to show up at all!

Also, I cannot get the LAN control icon to go away from the taskbar.

For some reason, Windoze decided to hate me this time around, and believe me, the feeling is now mutual.

Does Anyone have any suggestions for solving these problems?

FireSBurnsmuP 0 Posting Whiz in Training

Hey! Been a while, how's everyone doing? I'm fine, despite being unemployed and broke.

But hey, down to business. I cracked and started dual-booting because I couldn't play starcraft with my friends while running linux. Ever since I installed everything, using the disk that came with my laptop, the sound taskbar tray icon doesn't appear. It will come back, if I go into the control panel -> sounds and audio devices. Here's the thing that gets me, though. The box to "place volume icon in the taskbar" is checked! I have to uncheck, apply, recheck, okay, EVERY TIME I start the computer.

My question is this:
A - is there anyway to fix this problem?
B - If not, is there any way I could run a script on startup that would do this for me (and how)
C - does anyone know which drivers I need for a compaq laptop to get the volume buttons on the side to work? Because if I had that, this wouldn't be as much of a problem.

Thanks a lot in advance, guys.

FireSBurnsmuP 0 Posting Whiz in Training

alright, well I might get a faster one, but I might not. I actually spent most of my money for a new hdd on a 6 ft sword. ^_^ I have a friend, though, but he might not sell his to me cheap.

Thanks for the info, I'll keep it in mind. ^_^

FireSBurnsmuP 0 Posting Whiz in Training

Is it alright to upgrade the hdd speed in a notebook that's 2 years old? I need a new hdd, but I want it faster. Would this be likely to cause problems? Its original speed was 4200 rpm, I want more.

I leave it plugged in for the most part, so I don't think power should be that much of an issue... but would it?

FireSBurnsmuP 0 Posting Whiz in Training

Well, that makes me feel fine. Getting a new hard drive sounds like a good thing for me, this means I can upgrade with a good excuse ^_^

Good thing I got that 500G external for christmas, cause I backed up all my data already. All my personal data, at least. The operating systems themselves I am not about to trust. Take a look at how they're behaving (first post) to get an idea - most of my first partition's important files were corrupted, just not any of my personal data. Funny how that works, huh?

Well, thanks for that.

NOW! Does anyone have recommendations on what brands to replace it with, ones that will last as long as me? This one was a seagate, probably made by HP and that's why its dead. :P I'm probably going to replace it with a 7200 rpm, cause I'm a speed-freak, what's a good one for a laptop?

FireSBurnsmuP 0 Posting Whiz in Training

My hard drive just went the way of my last auto-engine today... overheating crash. Run to the Hills.

Has anyone ever had this problem before? My HDD has been hanging a lot lately, and today it hung 3 times in 5 minutes while playing music. That's all. Just mp3 files and my computer hung so bad I could hear the HD humming, so I touch the bottom of the laptop, where its attached. The things hotter than my cpu and gpu combined. My first thought is "Shit! Turn off computer, turn upside down, and open a window!" So I try to turn her off ----------------- then I hold down the power button.

BEFORE! I didn't change a thing. My last upgrade was almost 6 months ago, and it was a RAM chip. If there were problems with that RAM chip, my hard-drive wouldn't be acting so f***ing wierd.

NOW! I can't boot the partition I was using at the time, it goes to bare-minimum boot, but I can still use the other partition, and access (some of) the files on the part. that crashed.

My other partition isn't behaving right anymore, either. Now sudo no longer works, because the setuid no longer functions, but I can still edit some root-owned stuff I shouldn't be allowed to touch just with vi.

I think I need a new HDD - agree, or disagree? I don't wanna shell out THE REST OF MY MONEY* without knowing for sure …

FireSBurnsmuP 0 Posting Whiz in Training

*sigh* you're missing the point. sure, I could do it their way and use the software they give me (which I hear works too slowly on macro commands, which is what I'd be using almost exclusively), or I could learn something and do it MY way. Sure maybe it sounds like a drill to the temple for most people, but I WANT to do this.

But I'll have to thank you, Dragon, for pointing out something that sould have been obvious to me - reading the manual. That act did show me the list of equivalent keyboard keys for each button. Now the tough part - what do I do with that? Can I make the program I write affect only one device? If so, how? If not, what do you suggest?

FireSBurnsmuP 0 Posting Whiz in Training

Okay, how would you direct those commands to the device? How do you catch commands from the device? If I can figure out what the keys send to the computer I can pretty much just use cin or something like it.

FireSBurnsmuP 0 Posting Whiz in Training

No, I'm getting one. And Nothing says "linux compatible" on the box. NOTHING. I'm asking how one would go about programming an interface for a peripheral device like this one. What libraries? Would I be programming a driver of some kind first? If so, where would I get help doing that?

FireSBurnsmuP 0 Posting Whiz in Training

This is going to sound wierd at first, but I found a really cool usb controller. Let's see if I can find a link to it... here it is

Now this is the wierd part - the first thing I thought when I saw this was "how sweet would it be to program an interface so that each button can actually type out a C++ command for me?"

15 commonly used commands, then I could use the d-pad as a modifier to have 15 * 8 = 120 more commands and/or shortcuts. Total 135 commands on one hand. Can you imagine how fast that would make programming, er, well, anything?

Now the heavy stuff... How would I do it? I can't just use the cd that comes with it, I have linux, and I doubt the cd that came with it would allow me to go to text anyways. How does one go about programming a device interface? I'm only experienced in C++ so I decided to go here, since there are several forums I could've gone to for this.

FireSBurnsmuP 0 Posting Whiz in Training

I'm personally really hoping for 3 things:
1) a PSP, what can I say, those things are pretty sweet now that they've (mostly) fixed the dead-pixel problem
2) a Mini-Mac, I want the one with the core 2 Duo, so I can get my Macintosh skills back up to par, like they were in the mid 90's
3) a desktop computer (windoze) that ISN'T 9 Years old. What can I say, I can't compete in this market without up-to-date windoze knowledge, and I can't have that with the old p.o.s. copmuters I have lying around the house.

However, I'm not going to get any of these things, anyways... I don't know anyone who could afford to spend this much money on me ^_^

FireSBurnsmuP 0 Posting Whiz in Training

Thanks again; that one was a little to simple for me to be so stuck on ^_^U

How do you know so much about iterators, anyways? You must need to use them all the time if you can so quickly come up with all the answers.

FireSBurnsmuP 0 Posting Whiz in Training

Great, more iterator trouble.

First we have an iterator of any value. I want to make a second iterator that starts one higher than the first one. Look-see:

for( iterator_type one ; /*...*/)
{
       for( iterator_type two = one + 1 ; /*...*/)
       {
/*...*/
        }
}

That's the gist, but I know this way doesn't work. How would I do it? I would try the ++ operator on one instead of one + 1 , but wouldn't that change the value of one?

Any help is appreciated.

FireSBurnsmuP 0 Posting Whiz in Training

Wow, thanks! That allowed me to compile for the first time in a month. ^_^ I wouldn't have thought to make it a const_iterator instead of a regular iterator.

Thanks!

FireSBurnsmuP 0 Posting Whiz in Training

Alright, here's the code:

for ( map<string,int>::iterator word = mostUsed.begin() ;
		word != mostUsed.end() ; word++ )

and the error by g++ - (using make)

error: conversion from 'std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >; int> >' to non-scalar type 'std::_Rb_tree_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >; int> >' requested

Okay... what in the name of the gods? I used this code before in the program and nothing screwed up. here's that for-loop:

for( map<string,int>::iterator x = fauxIn.begin() ; x != fauxIn.end() ; x++ )

I don't see the problem, apparently map<string,int>::iterator word = mostUsed.begin() is the problem, but I don't see anything wrong.

Help!

FireSBurnsmuP 0 Posting Whiz in Training

The reason I'm using these formats is that they're a good place to start off. I'll eventually make this program able to handle many types of pictures, but I've got to start somewhere ^_^

Alright, time for some ascii-art goodness.
I'll start with a small binary picture. [ ][X] for off/on

10x5
0 1 2 3 4 5 6 7 8 9
0[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
1[ ][X][ ][ ][ ][ ][X][X][X][ ]
2[ ][X][X][ ][ ][ ][X][ ][X][ ]
3[ ][X][X][X][ ][ ][X][X][X][ ]
4[ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]

Alright. there's the picture. Now I'm looking for the best (efficiency) algorithm in c++ to test if the pixels (1,1) and (7,1) are connected.

As of now, the program attempts to go N, if that doesn't work it goes E, if that doesn't work it goes S, and if that doesn't work it goes west. It does this until it can no longer go anywhere.
I would like it to go in an order that changes depending on what direction the destination is from the starting point, but that ends up being inefficient in other ways. any ideas are good, thanks.

Or, should I start by checking how many borders I cross between the start and end, going directly at each other? in this case, I would pass 2 boundaries, meaning either the region …

FireSBurnsmuP 0 Posting Whiz in Training

Alright, I'm developing a program that is going to take in .pbm image files, manipulate them, and output them in .ppm (P3) format.

That's all fine and good; I've got that down.
However, I'm looking for suggestions on good and efficient ways to figure out if 2 points ( row , col ) are connected in an object within an object. By object I mean a region of all one colour, that has no diagonal connectivity. If I figure this out fast enough, I will implement a diagonal-connectivity checker as well.

Any suggestions? I was thinking about using an STL stack to store my moves, in case I end up at a dead end, so I can go back a few moves and take another possible road. something like this (but I don't think this is efficient enough for me.), conceptually.
push all possible moves in order W , S , E , N - impossible moves are moves that go outside the region.
These will be something like a struct I'll call move, like this:

struct point
{
     int row;
     int col;
};
struct move
{
     point here;
     point next;
};

pop off the last possibility and go that way.
repeat.
if I run out of possibilities for moves (a dead end) pop and set my position to the next in the first alternative possibility and go forth.


However, it seems to me that if I were to …

FireSBurnsmuP 0 Posting Whiz in Training

... Okay, first of all, I am not allowed to [EDIT] my previous post.
Secondly, I have the same results after-all. I did manage to fix it this time, without a total reinstall. I ended up re-running the installation NVIDIA....run file again, until after it said it would uninstall. Then I ctrl+c. Then, instead of xorg crashing immediately, no output, it gets back to the EE - module not found 'nvidia' thingy again. So I used the backup xorg.conf file created by the nvidia installer. Now I can get back in. My 3d accel is really missed, though... I wanna play darwinia inbetween my homeworks.

I don't know why I thought it would work, but I want my 3d accel back. I'll figure it out. I have the feeling that since this would end up being a thread about NVIDIA drivers, which doesn't really fit the forum selection, I should save my breath for a different place. ^_^ I'll be back later. Any other comments on NV's non-free drivers with LENNY or just 2.6 I would love, but I dunno if they are appropriate for this forum.

FireSBurnsmuP 0 Posting Whiz in Training

Alright, delayed response. I did a lot of digging, and found out that it was an incompatability issue from my old nvidia-driver and the new version of xorg-xserver. Simple solution - install new nvidia, right? Well that isn't simple, because there's an issue with a kernel flag the nvidia drivers will try to use. See http://grizach.sc18.info/nvpatch/ for the details. Basically, the GPL-checkers that see if a module is GPL or not say the nvidia module is NON-GPL, when it requires a udelay function that is GPL-only. Figures. So, when it comes down to it, this latest upgrade made it so that I couldn't use X with my old nvidia, and I couldn't install a new nvidia. I am currently trying to install using the patch on the page I found. I'll [EDIT] when I return to X.

Thanks again, JP, but I'm afraid only time and google could tell on this one. ^_^ I did end up nuking the onld installation, but it was getting bloated anyway. *sigh* a fresh start is always nice... except with a broadcom wlan card. Once again, it's giving me a hard time. I only want 2 things! For it to work! and under the device name wlan0, not eth2! But I digress, I'm going ooc.
Post results of running the patch after I reboot.

FireSBurnsmuP 0 Posting Whiz in Training

Have you tried shutting down X, modprobing nvidia, starting X again, and then looking at the rendering information of glxinfo?

Well, I've tried, but the whole problem is X won't start at all. I could try modprobing nvidia and then trying to start X, although I think I already tried that... I'll give it a shot a minute. Be right back...

[EDIT]nope. I can modprobe nvidia as many times as I want, but it won't change the fact that X won't even start. God, wouldn't it be nice if it were that simple, though? ^_^ I'll keep seeing if there's anything I can find out, maybe it's a dependancy problem, or a bug in something.

WAIT! I did notice that, of late, my ldconfig keeps giving me an error message. I dunno what ldconfig is, or what it does, but I have a feeling that it's important. Every once in a while, on that system (the one that's half-dead), I get the error message ldconfig: /usr/lib/libphysfs-1.0.so.1 is not a symbolic link. Could this maybe have something to do with it? I know it puts this message out almost every time I apt-get anything, when I try to open gtkpod (I think...), and during boot-time while the system is trying to "Creating NVIDIA TLS links..."

Thanks again for any help. ^_^

FireSBurnsmuP 0 Posting Whiz in Training

I think I tried that... let me boot into the other system a minute and find out... I'm so glad I left this old 64-bit system on another partition...

[EDIT] Okay, um... nothing? I type modprobe nvidia and get no output. Plus - nothing happens. For some reason my wlan interface is going all screwy now, too. I can only get it to work when I boot this system in single-user mode. Son of a... this is annoying. That'll teach me to apt-get upgrade blindly...

SIDE NOTE: Is there any way I can like ssh to the other partition or something like that, so I don't have to reboot everytime I need to do something?

FireSBurnsmuP 0 Posting Whiz in Training

that, unfortunately, I have been entirely unable to find a solution to.

(Note: once again I find that this could probably fit into several of the *nix forums, so I tried my best to find the one that fit the problem best. My apologies to the mods if this doesn't fit here. ^_^U )

Here's my problem. I apt-get upgrade d recently, and ever since my xorg has been unabe to function. It prints out:

(EE) Failed to load module "nvidia" (module does not exist, 0)
(EE) no drivers available.

Fatal server error:
no screens found
XIO:     fatal IO error 104 (Connection reset by peer) on x server "0:0"
            after 0 requests (0 known processed) with 0 events remaining.

This seems to be a pretty popular problem these days, and I figured it was because my xorg was upgraded and my nvidia drivers were not. So I upgraded those, too. I ended up upgrading my kernel a bit in the process, but the output and result has not changed a bit since then - I still don't get x-capabilities.

uhm... any ideas would be great. I did follow the instructions on http://wiki.debian.org/NvidiaGraphicsDrivers#Libraries, and don't know how to fix it anymore. I've been at this for 4 hours.

JIC, here's a copy of my xorg.conf file.

#blablabla all kinds of blather in comments

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard'
Driver "kbd"
Option "CoreKeyboard"
Option "XkbUles" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout' "us"
EndSection …
FireSBurnsmuP 0 Posting Whiz in Training

As usual, JP, you have insane amounts of varying random knowledge.
So this PVM separates out a process to be done simultaneously in several computers? This is sweet, but how hard is it to program something to work simultaneously on several computers with PVM?

FireSBurnsmuP 0 Posting Whiz in Training

I was wondering if anyone knows how to accomplish this, that is the simultaneous operation of several computers on a single task.

I'm curious, because I have several older desktop boxes, and I kinda thought it would be really cool to network them together and figure out a way to parse out jobs between them so each computer can work together as if they were a single computer.

If this isn't possible, then is there any way to do something similar?
Thanks, all!

FireSBurnsmuP 0 Posting Whiz in Training

I dunno about that... do windoze systems come with compilers on them? If your school uses macs then you might be in business, but I don't think windoze comes with any c++ compilers.

And when I think about the "editing cout" thing, it makes me think about overloaded operators. ^_^

FireSBurnsmuP 0 Posting Whiz in Training

Alright, I managed to figure out that 1) my map files might have extra spaces, causing me to have some columns (lines) that have an empty index.
2) the backwards vector was all I needed, my board is going to be easier to deal with as backwards.
So I was getting segmentation faults because of empty indexes in some columns, and
because I was attempting to do something I no longer understand with the boards. Thanks for helping me bounce ideas, guys. And thanks for the tips, they really do help. ^_^ Now you know why I stick around here.

FireSBurnsmuP 0 Posting Whiz in Training

Oh, crap. Yeah I ALWAYS mistype that header, and I guess I did forget the vector library, too. My bad.

I know some things are a bit strange... I will try the getline( cin , fileName ); bit, but you don't get any seg faults? are you on a linux machine? I kinda thought this is a pretty specific problem with linux machines, but I can't find anywhere else where this has happened...

I'll try to figure it out... but everytime I try using debugging statements it makes it appear as though the segmentation fault is occuring exactly as the variable is stored.

FireSBurnsmuP 0 Posting Whiz in Training

Salem: The first one does crash before execution of the line function( fileName ); . I tested by putting a cout before the function call. The second doesn't crash.

Alright, well let's see here... I don't like to bother you guys with such long snippets of code... I'll take a look. Is it the peek? Nope... AAAAAAAHHHH! Here you go. It's in a class, so you'll need the class def, class constructor, and main... just use it this way:

#include <iostream>
#include <string>
#include <sstream>
#include <ifstream>
using namespace std;

class MatchingTile
{
    public:
        MatchingTile( string inFile );
            
    private:
        vector <vector <string> > board;
        vector <vector <string> > visibleBoard;
        vector <vector <string> > cpuMemory;    
};

int main()
{
        string fileName;
        cout << "What's the file name/path of the map file? ";
        cin >> fileName;
       MatchingTile Game( fileName );
       return 0;
}

MatchingTile::MatchingTile( string inFile )
{
    ifstream In;
    In.open( inFile.c_str() );
    while( In.fail() )
    {
        cout << "\nSorry, but the file failed to open. Try again( Ctrl+C cancels and exits ): ";
        cin >> inFile;
        In.open( inFile.c_str() );
    }
    
    string tempLine; // temp string to hold each line

    vector < vector <string> > backwBoard;
    /* A backwards 2-d vector (the rows are the columns in the real one)
    I'm doing this so I can get the size of the board before I create them,
    making it easier to fill them out */
    
    while ( !In.eof() ) // starting my readin, it's a bit non-standard so I'll document
    { …
FireSBurnsmuP 0 Posting Whiz in Training

Infarction: Well, there's not much necessary, but here's the code that gave the error.

#include <iostream>
#include <string>
#include <sstream>
#include <ifstream>
#include "function.h" /* for the function called, but it's not important. The fault is before it */
using namespace std;

int main()
{
        string fileName;
        cout << "What's the file name/path of the map file? ";
        cin >> fileName;
 /* getline( cin, fileName, '\n' ); does the exact same thing here, I'm afraid, Joe Programmer */
       function( fileName );

       return 0;
}

The segmentation fault happens on the same line it is taken in. Thanks, guys!

FireSBurnsmuP 0 Posting Whiz in Training

c++, Debian linux system, g++ compiler

Alright, I have a serious problem. I keep getting a segmentation fault everytime cin recieves a string with a period in it and stores it into a string. I used couts to find the location of the segmentation fault. it happens EXACTLY after cin >> myString; is called, and only when I input "map.txt". It mighthave something to do with the period directly in the middle. Maybe it'll happen with other characters, but the one I need is a period.

It won't happen if I input "map." , ".txt" , "map..txt" or "hello.txt" but "map.txt" gives a segmentation fault before the-line-after the input. It will happen with either cin >> or getline( cin , myString ).


The reason I need this to work is so I can read in the file in a ifstream In; , using In.open( myString.c_str() ) . But I can't do that if it gives me a segmentation fault everytime I input the right name for the file! I just need to know why this isn't working. Any help is appreciated. I might still have some muffins for everyone who helps ^_^

FireSBurnsmuP 0 Posting Whiz in Training

Sorry for ressurrecting this thread, but Can you guys explain why Wolf's solution works? Like, explain what's going on?

FireSBurnsmuP 0 Posting Whiz in Training

Keep Hope Alive - Crystal Method

FireSBurnsmuP 0 Posting Whiz in Training

Lol, yeah that'll happen... I actually took this apart and found a guide online... sauce later... but there's a little junction thingy soldered on the board (that doesn't actually... do anything) that you can take off and solder a cable to! Plus I found instructions on how to make an omnidirectional antenna out of just coaxial cable ( 50ohm, but standard these days is 75 ohm so I don't think 50 ohm will be too hard to find ). I'm thinking of trying it out one of these days, when I actually get the supplies to do so.

I think it's a broadcom off-brand... D-link I think... but I know ndiswrapper will work for it ^_^ This should be a fun little experiment. I'll post more on progress later.

FireSBurnsmuP 0 Posting Whiz in Training

Lol, well I got it to connect; and no, I didn't have a mac formatted ipod XD

Apparently I have 3 ports: 2 on the left that are 2.0, and one on the right that's 1.0. I thought it was the other way around ^_^U Point being, if I plug it into the slot on the right (the one I usually use) It won't be able to read it or mount it correctly. If I plug it in the left, it works. So, uhm... what? Why? Whatever, as long as it works...

And while we're all here, what would be the advantages of putting Linux on my ipod? I'm asking here, instead of going to the website, to see if anyone has done it.

FireSBurnsmuP 0 Posting Whiz in Training

Junya : It's easier than taking apart and they are pretty cheap.
FireS - Not If I can do it with stuff I already have! I have plenty of free time to tell these needing do-it-your-selfers. This is my way of sticking it to the man.

Well, I have aquired a PCMCIA card one, it's only 802.11 B, and I'd have to ndiswrap that too... but I'll take it apart and see what I can do to it.

FireSBurnsmuP 0 Posting Whiz in Training

Well... I killed windoze. It displeased me greatly. I can look into it on google, and in adept, but any Linux tools available?
(I always come here first, because it is so much easier to get help from real people, not web pages dated three or four years back, if they even exist)
I didn't realize I would need a separate tool to read in images. Not to mention I don't know the first thing about GUI programming; I've never gotten that far...

FireSBurnsmuP 0 Posting Whiz in Training

Well, I guess I'm just here out of curiosity. I would like to know how one would go about outputting an image file.

I thought that maybe you could declare an ifstream , and try to read it in, but I don't know how I'd go about that either... Any ideas? My programs would be a lot more interesting if I got to put in some graphic designing, instead of pure command line.

Thanks a lot!

FireSBurnsmuP 0 Posting Whiz in Training

Good God !!

That's friggin hard! I didn't understand 80% of that!

125 for me: missed #s: 7 8 9 11 12 13 14 15 17 and 18 T_T