Duki 552 Nearly a Posting Virtuoso

I hate to be that guy.

Duki 552 Nearly a Posting Virtuoso

Is there a way I can setup my profile to automatically subscribe me to new threads I create? Currently I see there's an option to auto-subscribe on new threads and threads I reply to ... but I really only want to auto-subscribe to my new threads.

jingda commented: Welcome back:) +0
Duki 552 Nearly a Posting Virtuoso

What problems are you experiencing now?

mikulucky commented: Snap +1
Duki 552 Nearly a Posting Virtuoso

I charge $25/hr to check for errors.

Duki 552 Nearly a Posting Virtuoso

Not to be picky here, and it has very little to do with the question you're actually asking, but don't get in a habit of meaningless variable and function names (e.g., v, n, xVec, asum, etc.). In fact, the opposite is a more industry accepted approach. I made the mistake during my schooling of, in an attempt to get the program working, not worry about what I called my variables because I knew what they meant and that's all that mattered. However, when I started working on larger more independent projects (projects that might actually be picked up by another programmer one day or that has over 500 lines of code) I found myself continuing my old habits without realizing it sometimes.

Now, while you're learning and in school, start doing the opposite - over describe your variables. It's ok for your professor to jot down meaningless variables in class, as they're merely for demonstration. As for your programs, attempt to be as descriptive as possible with both your functions and variable names.

Some examples from the software I debug daily:

FfsApportionmentDocumentAmendmentDataEntryCritic
FfsAssetDetailAcctgLineIdentityPtr

GetRuleCustomerAccountTreatment()
GetItemLineOriginalAmount()
AddDocumentTypeDefinedAccountingLineCodeColumns()

Just some food for thought.

Duki 552 Nearly a Posting Virtuoso

I'm quite sure Fbody's post will do what you want - he's just not going to do everything for you.

e.g.,

const int COUNT = 5;
Speaker myArray[COUNT] = [0, 1, 2, 3, 4 };

void displayInfo(int requestedItem) {
  if (requestedSize < COUNT)
    cout << myArray[requestedItem - 1].showName();
    etc.
    etc.
  else
    cout << "You have requested an invalid element." << endl;
}

He's merely demonstrating the usage of arrays to access your methods. What you're referring to isn't exactly what you want to do.

for() - Do this for every element
if() - Do this for the selected element

What I would suggest is remove your if()'s and try using switch()

Fbody commented: thx +2
Duki 552 Nearly a Posting Virtuoso

Personally, here's what I would do.

Imagine drawing the stars logically:

[ ][ ][ ][*][ ][ ][ ]
[ ][ ][*][*][*][ ][ ]
[ ][*][*][*][*][*][ ]

[*][*][*][*][*][*][*]

We need to figure out how to input these accordingly though. For me, it makes more sense to initialize our array with all *'s to start with. This just makes our loops easier to create (you'll see later):

int temp;
const int COL = 6;   //These consts could be done away with
const int ROW = 4;   //if you're using a vector
	
int ROW_INDEX = ROW - 1;  //We use this to keep track of which row we're on in the loop

char stars[ROW][COL] ;

//Code excluded - this initialization is easy enough to figure out.

[*][*][*][*][*][*][*]

[*][*][*][*][*][*][*]

[*][*][*][*][*][*][*]

[*][*][*][*][*][*][*]

Now that we have our array initialized, it's time to get a value and then adjust our first column accordingly:

cout << "How many stars: " << flush ;

for (int i = 0 ; i < ... ; i++)    //For every column...
{
	cin >> temp;
	for (int j = ... ; j >= ... ; j--)   //...we need to adjust the rows...
		stars[j][i] = ' ';   //...removing '*' where necessary.
}

I've left blanks for you to fill in.

So, now that we have this awesome-sauce picture stored in our array, we need to figure out how to output it. Easy enough - Just remember the picture is inverted from what we've logically stored.

for …
iamthwee commented: Nice +13
Nick Evan commented: Nice post +15
Duki 552 Nearly a Posting Virtuoso

Ok, so:

#1 - What you're experiencing is due to something called early (static) binding. At run time, your compiled code has no clue about basePtr pointing to derivedObject. This is one reason you use virtual functions. If you noticed, your last function call did actually call the derived function ("virtual, derived" was output). This demonstrates the differences between early and late binding.

#2 - Same answer as before. The only reason you're calling yVirt() is because it is in fact a virtual function. Virtual functions are not bound at compile time, but instead are bound during run time. This way, your program can decide during run time which function needs to be called based on which object is calling the function.

#3 - Technically possible, but you'll get a load of exceptions. Newer compilers probably won't even compile that.

A very good resource that should help you better understand these topics.

Duki 552 Nearly a Posting Virtuoso

I would also suggest sticking with arrays for now, especially since you have a set index. Something like this might get you going:

int num = 0;
string ary[25] = {"One", "Two", "Three", ... , "Twenty-Five"};

cout << "Give me a number:  " << flush ;
cin >> num;

for (int i = 0 ; ... ; ...)
    cout << num << " - " << ary[...] << endl ;

I've left blanks for you to fill in.

Fbody commented: I like the blanks... +2
Duki 552 Nearly a Posting Virtuoso

If that's all you need, then you could probably just use a tmp variable and a static count variable. If you just want the lowest number of guess for every round (i.e., if the fewest guesses it took for any given 10 rounds was 4 guesses, you want to output that) then just pass in a tmp variable, compare it to lowest_count, if lower, replace.

Duki 552 Nearly a Posting Virtuoso

Did half a programming class just register to post in this thread?

Duki 552 Nearly a Posting Virtuoso

Just use a break and loop like Fbody suggested.

e.g.,

int answer = 1;
while (answer >= 1 && <= 4)
{
	switch (answer)
	{
		case 1:
		{
			cout << "what do you want to do?\n";
			cin << answer;
			break;
		}
		case 2:
		{
			//do stuff
			
			cout << "what do you want to do now?\n";
			cin << answer;
			break;
		}
		case 3:
		{
			//do stuff
			
			cout << "what do you want to do now?\n";
			cin << answer;
			break;
		}
		case 4:
		{
			//do stuff
			
			cout << "what do you want to do now?\n";
			cin << answer;
			break;
		}
	}
}
Duki 552 Nearly a Posting Virtuoso
Duki 552 Nearly a Posting Virtuoso

Not sure of your requirements as far as compilers go, but have you tried looking into C#? *prepares flame shield* From my experience, unless I'm writing financial software or guiding missiles down chimneys, I prefer C# for anything GUI based. However, you may have a restriction against this for some reason.

jonsca commented: For better or worse that seems to be M$'s strategy +4
Duki 552 Nearly a Posting Virtuoso

My primary resource for basic SQL.

nick.crane commented: Mine too from now on, Thanks +1
Duki 552 Nearly a Posting Virtuoso

I would assume RANDOM FILES is probably in the glossary of your textbook. You can probably find the associated page number in the INDEX. Hope this helps.

Duki 552 Nearly a Posting Virtuoso

As easy as 1 -> 2 -> or 3

Duki 552 Nearly a Posting Virtuoso

I just tried calling, and the phone number isn't working anyways so no worries! :)

nick.crane commented: Made me laugh! +1
Lusiphur commented: Dude, no fair, I can't stop giggling now!! +1
Duki 552 Nearly a Posting Virtuoso

More specifically, this post.

Duki 552 Nearly a Posting Virtuoso

Great - I love this. Here's some of my updated coded; I've added SQL_cmd builder functions throughout my app.

private void SQL_Update(string name, DateTime checkinDate, DateTime checkoutDate, string user, bool isCheckedOut)
        {
            cmd = new SqlCommand("UPDATE Laptops SET Name=@name, isCheckedOut = @ischeckedout, Checkout_Date=@checkout, Checkin_Date=@checkin, Checked_Out_By=@checkedoutby", conn);

            cmd.Parameters.AddWithValue("@name", name);
            cmd.Parameters.AddWithValue("@checkin", checkinDate);
            cmd.Parameters.AddWithValue("@checkout", checkoutDate);
            cmd.Parameters.AddWithValue("@checkedoutby", user);
            cmd.Parameters.AddWithValue("@ischeckedout", isCheckedOut);
        }
kvprajapati commented: Update query without where clause will update all rows.... +10
Duki 552 Nearly a Posting Virtuoso

One feature I love about other user-help forums is the ability to mark a specific post as the answer to the thread, and then have that post displayed directly under the original post. Yahoo, spiceworks, and MSDN(i think) sites use this feature a lot, and it makes finding solutions to solved threads much easier. I think for us to get the most out of solved threads, finding the "solution post" should be extremely easy. Just a thought. :)

TrustyTony commented: Sounds usefull suggestion +0
Duki 552 Nearly a Posting Virtuoso

Hey guys,

I just came back to ask a question after a month or so of not being here. It took me some time to find the "New Post" button at the bottom of the page - honestly, I almost gave up and went to a different site. Could be discouraging for newcomers?

Duki 552 Nearly a Posting Virtuoso

click me

Sky Diploma commented: Hehe!! +9
Duki 552 Nearly a Posting Virtuoso

Just for the record, I wasn't trying to do yellow journalism or anything of that sort. If the title is offensive somehow, I apologize. Actually, I expected and was rooting for C++, so I assure you I wasn't trying to make false accusations. If a Mod would like to change the title to something more appropriate, feel free. Doesn't make a difference to me.


Thanks for the replies. I can understand datetime and clock() causing a timing difference in the iterative versions, but not the recursive; not that big anyways. The differences in time was about 8 seconds. I'm sure the different timing methods didn't cause an 8 second delay.

The iteration tests were the same to whoever said they weren't (as far as the number of iterations). I posted the last code I used, but I made sure to change it before my tests so that they were fair between the two.

I wasn't aware of an optimization capability. Thanks. Where do I access that? Also, is there the same sort of capability for C#?

thanks again for everyone's help

Alex Edwards commented: Doing experiments and asking questions to find solutions besides your own is the best way to learn, so dont you dare be sorry! =) +4
christina>you commented: dun worry. +16
Duki 552 Nearly a Posting Virtuoso

Pepsi One.

christina>you commented: good choice ;) +16
Duki 552 Nearly a Posting Virtuoso

I want to connect my PC to my TV. I have an s-video capable graphics card, but is this the best way? I want the clearest picture possible. Would a tv-tuner card like the Radeon Theater or All in Wonder cards work for better for this?

Duki 552 Nearly a Posting Virtuoso

bump

WaltP commented: c'mon you know better than to bump a thread. -2
christina>you commented: oh c'mon... you know better than to bump a thread caleb!! shame on you. =] +15
ndeniche commented: heh +3
Duki 552 Nearly a Posting Virtuoso

To me! :)

twomers commented: Hah! Starting a thread for your own bday ... I like it :) +3
christina>you commented: muah! <3 +15
~s.o.s~ commented: Talk about tooting your own horn... ;-) +21
Duki 552 Nearly a Posting Virtuoso

>eating an apple I picked from my garden.
there's something you don't hear every day. that rocks.

Duki 552 Nearly a Posting Virtuoso

Well I just started eating dinner and thought this would be a neat topic. Everyone knows we love to eat while on the computer; two birds, one chair.

I'll start it off:

Deli Sandwiches, macaroni salad, potato salad and a Pepsi :)

christina>you commented: . -3
ndeniche commented: lol... i think it's cool... +3
almostbob commented: Really took off didnt it +0
XP78USER commented: Man 18 ups no downs Ka\-Ching $$$ +0
Duki 552 Nearly a Posting Virtuoso

> The halo series is overrated.
i hate you.

Duki 552 Nearly a Posting Virtuoso

I am going to school for Network Administration. I have an assignment to talk to a Network Administrator and answer some question about his company's network. Could someone please address these questions? I do not personally know any Network Administrators. I don't need your company's name. Thanks in advance.

If you feel like answering a couple please do so. Even if you are not a Network Admin.

1. What services are provided?
2. What servers are there?
3. What cabling is used?
4. How is the server room set up?
5. How do they connect to the Internet?
6. How do they connect to other locations if their company has a WAN?
7. What specialized software is used if any?
8. What upgrades would they like to make?
9. How does this network support the unique business interests of this company?

1. As a network administrator, my main tasks consist of the following: monitor and maintain network performance and security, delete and modify user permissions, administer active directory, develop standards, and above all, reasearch and study new technologies that could increase the overall work efficiency of the corporation.

2. The majority of our servers are Dell PowerEdges; we just recently decided to standardize our entire company to Dell workstations and servers. We chose Dell for a number of reasons, but to keep it short, the decision was made mainly due to the unbeatable service contracts. All our (live) servers have Dell …

Duki 552 Nearly a Posting Virtuoso

Bragging:
For the first week (starting tomorrow) I'm headed to Savannah, GA to train directly under a CCIE for 4-5 days. Can't wait.

Bragging again:
The day after my planned return, Tina, her family, and myself are going to Cedar Point and Sandusky, OH for 3 to 4 days! Woohoo!

Information:
The following week, I'll be going all over the state installing the routers/servers we configured in Savannah... so I won't be on a lot that week either.

Not that I'm on that much anyways...
See you guys in a few weeks.

christina>you commented: have fun! xoxo +21
Duki 552 Nearly a Posting Virtuoso

Yay, Duki passed! :)

Congrats!

Thanks babay!


So yeah, I passed with a 900/1000. Not bad for accidentally skipping two parts to a question. :) I wonder why they don't allow you to go back and check/change your answers... =/.

joshSCH commented: Congrats, man :) +17
christina>you commented: yay for being smart! +21
Duki 552 Nearly a Posting Virtuoso

Hope I don't fail :x

christina>you commented: you better not fail. ;) +21
EnderX commented: I wish you well, my friend. +4
Duki 552 Nearly a Posting Virtuoso

What can vbs do that .bat files can't?

Duki 552 Nearly a Posting Virtuoso

meh, i thought to myself.... if someone is really considering win98 in 2004... they probably can't do anything like reformat or install drivers. Thus, I chose computer 1, as they probably just need something that is fully functional.

Duki 552 Nearly a Posting Virtuoso

ha! i said eh one more time before bed. It was actually 2 more, but still... i beat lvl28

joshSCH commented: Happy Independence Day! :) +15
Duki 552 Nearly a Posting Virtuoso

made it lvl28 and quit... spent like 20 minutes on that level.
http://www.addictinggames.com/bloons.html

joshSCH commented: Tight game ;) +15
maravich12 commented: Pretty good.Sometimes the dart doesn't bounce. +2
Duki 552 Nearly a Posting Virtuoso

welcome to the forum

Aia commented: Duki you are the man. +6
christina>you commented: lmao +19
Duki 552 Nearly a Posting Virtuoso

word-to-dat.

Web servers you want to focus not so much on processing power and get fast ram and very fast HDDs.

Duki 552 Nearly a Posting Virtuoso

Is smoking really that good? I mean... if you had a contract that said:

Live for 80 years with healthy lungs but you can't smoke
or
Live for 75 years with possible cancerous lungs but you can smoke

would you honestly choose the later? just curious..

Duki 552 Nearly a Posting Virtuoso

perhaps the HDD has a driver you need to install. check the WD website.

christina>you commented: 1-4-3 +18
Duki 552 Nearly a Posting Virtuoso

Have you tried "Add Hardware" in control panel?

I would also suggest contacting the manufacturer.

Duki 552 Nearly a Posting Virtuoso

i think the geeks lounge is intended for people who are bored... whether they're technically litterate or not.

>Not really, what if someone joins the community simply because a friend or boyfriend/girlfriend does.
Generally, if you have to prefix your situation with "what if", it's unlikely.

christina is my gf and i invited her to the site... :D
so the what if scenario proposed by josh isn't very unlikely...


on a side note: why do so many threads get off topic so fast?

christina>you commented: 1-4-3 +18
Duki 552 Nearly a Posting Virtuoso

can't get passed lvl 2 :(

iamthwee commented: ha ha +10
christina>you commented: Poor thing. <3 +17
Duki 552 Nearly a Posting Virtuoso

TN. We is vacating.

joshSCH commented: Hope you had fun :) +11
Duki 552 Nearly a Posting Virtuoso

Here you go...

"Straight Up"

But I would advise you not to watch the video part, just listen to the song. =p
(I couldn't find a music video and the others were live and didn't have good quality.)

awesome remake. agreed, don't watch the video.

Duki 552 Nearly a Posting Virtuoso

Google will never partner with Microsoft... they are arch rivals. :D
(The Google Story- Great book)

Dear John,

I have been unable to sleep since I broke off our engagement.
Won't you forgive and forget? Your absence is breaking my heart.
I was a fool, nobody can take your place. I love you.

All my love,

Belinda. xxxxoooxxxx

P.S. Congratulations on winning this week's lottery.

christina>you commented: funny =) +14
Duki 552 Nearly a Posting Virtuoso

i like certifications because it's a reassurance to myself as well.


I disagree that certifications are useless though. Yeah you might have a dud who just memorized questions, but so what... fire him. And actually, people complained to Cisco a couple years back saying hey you're certifying these people in your product, and when they get on the job they don't know anything. After hearing this, Cisco made the test much harder (comparitavely) because of the reputation of the certs they offer. So I doubt it's soley for the money they bring in. Now if we're talking money because of "hey i'm certified in cisco so lets buy cisco" then yes, deffinitely. And i agree, after 10 years experience, the certs you had are useless which is why you renew them with new technologies. If nothing else, certifications (the peice of paper) show that you're willing to research new technologies indepth and put them to practice, keeping the company you work for up to par with the competition.

I know first hand that certifications aren't useless. I work for probably the biggest water plant design engineering firm in the sate. I was given a very generous raise for the sole reason that I passed my cert exams. And that's not just a theory...

iamthwee commented: Good for you. +9