Duki 552 Nearly a Posting Virtuoso

hey daywraith,

since you have server2003, have you considered running a domain rather than a workgroup?

I feel certain this would solve your problems. If you need help setting it up, let us know and myself or someone else on here will walk you through it step by step.

Duki 552 Nearly a Posting Virtuoso

>Good find Duki.

Thanks
;-)

Duki 552 Nearly a Posting Virtuoso

How about this?

http://cgi.ebay.com/WEST-VIRGINIA-10-Steve-Slaton-Home-NIKE-Jersey-S_W0QQitemZ120160690389QQihZ002QQcategoryZ24640QQssPageNameZWDVWQQrdZ1QQcmdZViewItem

Yes, it's on ebay, but it's a Buy-It-Now...Might be able to get in time if you choose the fastest shipping option?

Hey thanks for helping out!
We actually need a Women's Small; sorry I should have clarified.

Duki 552 Nearly a Posting Virtuoso

Hey everyone.

Christina's school is having Jersey Day next week and we were wanting to buy her a jersey. Here's the one we want: http://www.footballfanatics.com/COLLEGE_West_Virginia_Mountaineers_Ladies/Nike_West_Virginia_Mountaineers__Number_10_Navy_Blue_Ladies_Replica_Football_Jersey

We can't find it in stock ANYWHERE lol. We need a Small and everywhere is sold out of them. :(

Can the geeks unite here and help us find one of these so we can get it ordered tonight?
Many many thanks in advance.

Duki 552 Nearly a Posting Virtuoso

Nice find Duki!
That looks like a fab piece of kit, at a very reasenable price.

Vietexob i would recomend getting the product shown in Duki's link. Cheap and effective.

:)

Duki 552 Nearly a Posting Virtuoso

Hi all,

I'm a college student staying on campus hostel. In my room, there is a network point which I use a network cable to connect my computer to the school LAN. I have two computers and only one connection point; so I'm wondering if there's a way that I can split the connection into two so that I can use both computers (connected) at the same time. I heard of the bridging technique, but since it requires that one of the computers have more than one NIC (which I don't have) so I don't think it's applicable in this case.

Thanks,
Viet

Don't bother with a hub/switch; get this: http://www.amazon.com/Network-Pair-Splitter-100-Single/dp/B000BSLXDE

All you'll need then is two cat5 cables; one for computerA and one for computerB

Duki 552 Nearly a Posting Virtuoso

hey guess what.
another error - logic this time!

void Month::setMbyN ( istream & is )
{
    const string name[] = { "jan" , "feb" , "mar" , "apr" , "may" , "jun" , "jul" , "aug" , "sep" , "oct" , "nov" , "dec" } ;
    
    char c1 ;
    char c2 ;
    char c3 ;

    is >> c1 >> c2 >> c3 ;

    c1 = tolower ( c1 ) ;
    c2 = tolower ( c2 ) ;
    c3 = tolower ( c3 ) ;

    string mName ;
    mName = c1 + c2 + c3 ;

    int k = 0 ;
    while ( k < 11 )
    {
        if ( mName == name[k] )
        {
            month = k + 1 ;
            break ;
        }//end if
        ++k ;
    }//end while
    if ( k > 11 )
    {
        cout << "Error:  Invalid Month!  -  Exiting Program" ;
        exit ( 1 ) ;
    }//end if
}//end setMbyN

If it's simple just tell me to figure it out on my own.

Duki 552 Nearly a Posting Virtuoso

how about this:

Month::Month ( char c1 , char c2 , char c3 ) : m1 ( setMbyN ( c1 , c2 , c3 ) )
{
setMbyNcheck ( c1 , c2 , c3 ) ;

}

Duki 552 Nearly a Posting Virtuoso

Oh ok, I think I get it now. So I was trying to call a function but I coded the function as the initializer, which is why I got the error; sound right?

Could I have done this:

Month::Month ( char c1 , char c2 , char c3 ) : setMbyN ( c1 , c2 , c3 )
{
setMbyNcheck ( c1 , c2 , c3 ) ;
}

Or would that not work?

edit] ooooopsy, was checking for a char not an int. took code out to prevent my self-esteem being lowered even further.

Duki 552 Nearly a Posting Virtuoso

ut oh, now i get this error: 1>.\prob1.func.cpp(4) : error C2084: function 'Month::Month(char,char,char)' already has a body. this is in my function.cpp file not my .h

Duki 552 Nearly a Posting Virtuoso

alright, thanks!
In my book it gives the following example:

BankAccount::BankAccount(double balance, double rate) : accountDollars(dollarsPart(balance)), accountCents(centsPart(balance))
{
...
}

This is what I was going by; how would I set it up like that?

Duki 552 Nearly a Posting Virtuoso

The error is hardly cryptic.

for someone who understand ctors very well, perhaps.

So how would I modify it from here:

class Month
{
public:
    Month ( char , char , char )
    {
        setMbyNcheck ( char , char , char ) ;
    }
    Month ( int )
    {
        setMcheck ( int ) ;
    }
    Month ( ) ;

    void setMbyN ( istream & is ) ;
    void setM ( int ) ;
    void outMbyN ( ) ;
    void outM ( ) ;
    Month nextMon ( ) ;
private:
    void setMbyNcheck ( char , char , char ) ;
    void setMcheck ( int ) ;
    int month ;
} ;
Duki 552 Nearly a Posting Virtuoso

i don't understand :(

Duki 552 Nearly a Posting Virtuoso

I'm back.

Here's the portion that is giving errors:

Month::Month ( char c1 , char c2 , char c3 ) : setMbyNcheck ( c1 , c2 , c3 )
{
    c2 = tolower ( c2 ) ;
    c3 = tolower ( c3 ) ;

    switch ( c3 ) 
    {
    case 'n':
        if ( c2 == 'a' )
            month = 1 ;
        else
            month = 6 ;
        break ;
    case 'r':
        if ( c2 == 'a' )
            month = 3 ;
        else
            month = 4 ;
        break ;
    case 'b':
        month = 2 ;
        break ;
    case 'y':
        month = 5 ;
        break ;
    case 'l':
        month = 7 ;
        break ;
    case 'g':
        month = 8 ;
        break ;
    case 'p':
        month = 9 ;
        break ;
    case 't':
        month = 10 ;
        break ;
    case 'v':
        month = 11 ;
        break ;
    case 'c':
        month = 12 ;
        break ;
    }//end switch
}//end 3-param Month ctor

I get this error

.\prob1.func.cpp(4) : error C2436: 'setMbyNcheck' : member function or nested class in constructor initializer list

here's my setMbyNcheck:

void Month::setMbyNcheck ( char c1 , char c2 , char c3 )
{
    c1 = tolower ( c1 ) ;
    c2 = tolower ( c2 ) ;
    c3 = tolower ( c3 ) ;

    if ( c3 != 'n' && c3 != 'b' && c3 != 'r' && c3 != 'y' && c3 != 'l' && c3 != 'g' && c3 != 'p' && c3 != 't' && …
Duki 552 Nearly a Posting Virtuoso

great thanks

Duki 552 Nearly a Posting Virtuoso

I'm considering writing a program for my economics class that will allow me to use the multiple variations of the elasticity equation.
How can I compile my code to an app that I can place on my desktop and simply double click to make it run? I don't want to have to open Visual C++ every time I want to use the formulas.

I'm using Visuall C++ 2005
could someone give me a hand?

Duki 552 Nearly a Posting Virtuoso

How do you allow a user to change the image displayed in the picture box?
It's part of an extra credit assignment, but I don't remember reading anything in the book about it.
:(

Duki 552 Nearly a Posting Virtuoso

bump*

Duki 552 Nearly a Posting Virtuoso

Hey guys,

I'm posting this in two different forums, since there are two forums for Server questions.

Here's the problem I'm having.
I've created a software package in Group Policies to distribute to the computer when it boots up. It works fine, but for only one computer at a time. I.E., I can boot a computer and the box pops up that says "Installing such and such". So I leave that one alone, and go boot another computer. When the second computer boots it bypasses the installation all together and goes straight to the login screen. But once the installation is finished on computer 1 I can reboot computer 2 and the installation begins. This delima pretty much defeats the purpose of even deploying the package automatically.

I've also ran into a problem where a bunch of the computers won't even recognize the package and bypass it every time.

Here's how I setup my GPO:
I goto AD Users and Computers and right-click on the domain and go properties. From there I goto the Group Policy tab and click New. I leave all of the permissions at default, which I think is to apply the GPO to all authenticated users and authenticated users also have Read priveledges. When I edit the GPO I go to computer config/software settings/software installation. I right-click and go New->Package... and point it to the MSI file of the program I want to install. Instead of browsing for it I …

Duki 552 Nearly a Posting Virtuoso

Hey guys,

I'm posting this in two different forums, since there are two forums for Server questions.

Here's the problem I'm having.
I've created a software package in Group Policies to distribute to the computer when it boots up. It works fine, but for only one computer at a time. I.E., I can boot a computer and the box pops up that says "Installing such and such". So I leave that one alone, and go boot another computer. When the second computer boots it bypasses the installation all together and goes straight to the login screen. But once the installation is finished on computer 1 I can reboot computer 2 and the installation begins. This delima pretty much defeats the purpose of even deploying the package automatically.

I've also ran into a problem where a bunch of the computers won't even recognize the package and bypass it every time.

Here's how I setup my GPO:
I goto AD Users and Computers and right-click on the domain and go properties. From there I goto the Group Policy tab and click New. I leave all of the permissions at default, which I think is to apply the GPO to all authenticated users and authenticated users also have Read priveledges. When I edit the GPO I go to computer config/software settings/software installation. I right-click and go New->Package... and point it to the MSI file of the program I want to install. Instead of browsing for it I …

Duki 552 Nearly a Posting Virtuoso

>void output ( char , char , char ) ;
Where did this one come from?

oops, i left out part of the problem:

... an output function that outputs the month as an integer, an output function that outputs the month as the first three letters in the name of the month, and a member function that returns the next month as a value of type Month.

so i forgot void output ( int ) too

Duki 552 Nearly a Posting Virtuoso

>a constructor to set the month using an integer as an argument, a default constuctor
You can merge these guys with a default argument:

Month ( int init = 0 );

could you explain what init is?

Duki 552 Nearly a Posting Virtuoso

We're discussing constructors.
My problem is this:

Define a class called Month that is an ADT for a month with one variable as int to represent a month.

Include all of the following member functions: a constructor to set the month using the first three letters in the name of the month as three arguments, a constructor to set the month using an integer as an argument, a default constuctor, an input function that reads the month as an integer, an input funciton that reads the month as the first three letters in the name of the month, an output function that returns the next month as a value of type Month.

Here's what I've gotten so far:

class Month
{
public:
    Month ( char , char , char ) ;
    Month ( int ) ;
    Month ( ) ;

    void input ( char , char , char ) ;
    void input ( int ) ;
    void output ( char , char , char ) ;
    Month nextMon ( ) ;
private:
    int month ;
}

Could someone advise whether this is close or completely wrong (and why)?
Is this possible without having the three variables char1, char2, and char3 (or could I just implement those in main)?

ps) I'm lost as to how to do the output and the object returning functions

Duki 552 Nearly a Posting Virtuoso

welcome. :)

Duki 552 Nearly a Posting Virtuoso

when/if you paste any of your code in a reply you need to do it like this

[code.]

\\code goes here

[/code.]

of course, you want to take out the '.' after the word code which makes your reply look like this:

#include <iostream>
...
return 0 ;

etc.


As for the error checking, consider this. If you wanted to check that 'x' is less than 10 but greater than 0, you could use the following construct:

if ( x > 0 && x < 10 )
     cout << "Excellent!" << endl ;
else
{
     cout << "Invalid Input!!  --  Exiting program!!" << endl ;
     exit ( 1 ) ;
}

So now, what else could you check with the if/else statements and how?
Does this help any?

Duki 552 Nearly a Posting Virtuoso

perhaps this will help jog your memory

Duki 552 Nearly a Posting Virtuoso

try this:

open the TCP/IP properties of your internet card and click Advanced in the bottom right corner...

at the bottom of this screen you want to uncheck the box that says Automatic Metric and apply a metric of something below 25 (maybe 10 to be safe).

Also could you provide your output from the following command at a cmd prompt:

route print

Duki 552 Nearly a Posting Virtuoso

Why are you asking us? Obviously there could be some quality differences, of which I know very little, but beyond that, it's up to you. They are two very different devices for entirely different needs. You should know better than us which device you'll need/enjoy more. Personally, I would choose the Q, but that's because it suits my needs better. For this very reason I will not vote on your poll.

ceteris paribus

Duki 552 Nearly a Posting Virtuoso

dern, i mispelled motorola in the title.
could a mod edit that for me? :D

Duki 552 Nearly a Posting Virtuoso

Ok, so my birthday is coming up and my mom said she would pay half on an xbox 360 (elite edition probably), or buy me the new MorotolaQ.

I chose Moto over Blackberry because with Blackberry you have to have the Blackbery Enterprise Server to hook it up to Exchange (i think) and with Moto you don't. I also chose Moto over Treo, because my provider doesn't support Treos (:().

What do you think?

Duki 552 Nearly a Posting Virtuoso

ok so i'm new to vb.
what is wrong with this code at line 28:

Public Class Form1

Const DISCOUNT_RATE As Double = 0.1
Const RENTAL_RATE As Double = 1.8

Dim totSales As Integer
Dim totIncome As Double


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load



End Sub

Private Sub rentalInfoGroupBox_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rentalInfoGroupBox.Enter

End Sub

Private Sub calculateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calculateButton.Click

    Dim custID As Integer
    Dim noMovies As Integer
    Dim price As Double
    Dim discount As Double
    Dim total As Double

    custID = Integer.Parse(Me.custIDTextBox.Text)
    noMovies = Integer.Parse(Me.numMoviesTextBox.Text)
    price = noMovies * RENTAL_RATE
    discount = price * DISCOUNT_RATE
    total = price - discount

    totSales += 1
    totIncome += total

    priceTextBox.Text = price
    discountTextBox.Text = discount
    totalDueTextBox.Text = total

    totalSalesTextBox.Text = totSales
    totalIncomeTextBox.Text = totIncome


End Sub
End Class
Duki 552 Nearly a Posting Virtuoso

yeah

Duki 552 Nearly a Posting Virtuoso

>So you can't judge all teachers on the bases of one idot
I do recall saying that there were exceptions, but in my experience, the majority of teachers only teach because they're not good enough to actually write code for a living.

my c++ prof was the team leader for his programming AIX team at IBM. He's also retired from TI.
there's one of the exceptions :D

Duki 552 Nearly a Posting Virtuoso

vector.jpgPost your tips for making life easier in C and C++. I'll start:

Standard vector object initialization

The biggest problem with the standard vector class is that one can't use an array initializer. This forces us to do something like this:

#include <iostream>
#include <vector>

using namespace std;

int main()
{
  vector<int> v;

  v.push_back(1);
  v.push_back(2);
  v.push_back(3);
  v.push_back(4);
  v.push_back(5);

  // Use the vector
}


Anyone who's had the rule of redundancy pounded into their head knows that the previous code could be wrapped in a loop:

#include <iostream>
#include <vector>

using namespace std;

int main()
{
  vector<int> v;

  for (int i = 1; i < 6; i++)
    v.push_back(i);

  // Use the vector
}


However, it's not terribly elegant, especially for a vector of complex types. So, Narue's first timesaving tip for C++ is to use a temporary array so that you can make use of an initializer. Because the vector class defines a constructor that takes a range of iterators, you can use the array to initialize your vector:

#include <iostream>
#include <vector>

using namespace std;

int main()
{
  int a[] = {1,2,3,4,5};
  vector<int> v(a, a + 5);

  // Use the vector
}

So here's what happened.
I was on DaniWeb getting help, and while waiting on someone to reply I looked through the sticky threads. I sent my C++ professor the link to Performance Tips and this thread on Thursday (i think). He sent me a message back saying he liked …

Duki 552 Nearly a Posting Virtuoso

*bump* :D

Duki 552 Nearly a Posting Virtuoso

couple questions:

why are you still using POP3 if you have an exchange server? Have you redirected your webhost to point to your servers?

Also, do you know how to configure Exchange to allow for web-connections? This could solve your problem, as the mail would be coming into exchange. Once you switch the settings back you could show them how to connect via the web.

Also, setting up a VPN on their machine would work. If you did that they could setup their Outlook just like they were in the office and pull the emails from your server.


As for the sending internally problem, I'm confused about that too. I actually just logged on to research this and see if anyone had an answer. We haven't switched all of our branches to the new Exchange server yet, and since we have multiple domains, I think our email too isn't getting outside of the local network. =(

Duki 552 Nearly a Posting Virtuoso

So here's the deal; I didn't get to take the Calc teacher I wanted and I got put in a class with the only teacher who is teaching it this semester. Turns out, I haven't learned much of anything other than deffinitions. I don't doubt I could pass the class, but I would like to learn something out of it as well (and I would like to no lower my GPA). Turns out, the prof I wanted is teaching next semester. So I got it approved by the dean of COSC to allow me to drop the class and pick up an independant study course where I basically teach myself and report progress to an instructor and get credit hours for it. I need to pick up a class because there's a chance I could lose scholarships if I'm not carrying enough credits.

ANYWAYS

What would you guys suggest I do for my study? I thought about doing something certification based. Right now I'm looking at Certified Associate of Project Management (CAPM). I chose this because I know most lower-end certificiation (i.e., CompTIA) don't count for much in the big jobs, and certs such as the CCNP or MCSA require more than one certification, which means more than one semester of study. I also figure being a certified project manager will look nice on a resume.
But I also considered doing something on new technology, or just technology I'm not familiar with. Something like virtualization, SANs, or …

Duki 552 Nearly a Posting Virtuoso

it's the same as post #31.

Duki 552 Nearly a Posting Virtuoso

ah ok. so did i create a pointer?

Duki 552 Nearly a Posting Virtuoso

i did but then i found out that c++ passes all arrays by reference by default.

Duki 552 Nearly a Posting Virtuoso

awesome!! It's working now!
Now I just need to do some slight modifications and add the computePrice function and I'm done.

thanks everyone!!

Duki 552 Nearly a Posting Virtuoso

yes

Duki 552 Nearly a Posting Virtuoso

yeah i can't figure it out, i'm giong to have to wait on one of yo uguys to help me... =\

thanks in advance

Duki 552 Nearly a Posting Virtuoso

crap now i get this error

1>.\prob7.func.cpp(10) : error C2109: subscript requires array or pointer type

void Pizza::set ( int x , int y , int a , int i )
{
    type = x ;
    size = y ;
    for ( int z = 0 ; z < i ; z++ )
    toppings[z] = a[z] ;
}
Duki 552 Nearly a Posting Virtuoso

ah, thanks!

Duki 552 Nearly a Posting Virtuoso

Alright, i have one error now.

1>.\prob7.main.cpp(54) : error C2664: 'Pizza::set' : cannot convert parameter 3 from 'int' to 'int []'

at this line

pizza.set ( x , y , a[7] , i ) ;

class:

void set ( int x , int y , int a[7] , int i ) ;

declaration:

void Pizza::set ( int x , int y , int a[7] , int i )
Duki 552 Nearly a Posting Virtuoso

Alright, I'll post my whole code so far.
I haven't done the #include guard thing you mentioned, since i don't fully understand it. Perhaps if you could modify my code a bit and repost it, I will grasp it better. Even with that, I don't fully understand the concept behind it.

If you happen to notice [I]any[/I] poor techniques in my coding do not hesitate to point it out! Even though my focus is in networking, I can't seem to get enough of programming lately. Once school started, I became addicted again! haha

header file:

#pragma once

#include <iostream>
using std::cout ;
using std::cin ;
using std::endl ;
using std::flush ;

const double SMALL = 10.00 ;
const double MEDIUM = 14.00 ;
const double LARGE = 17.00 ;
const double TOPPING = 2.00 ;

class Pizza
{
public:
    void set ( char x , char y , int (&a)[6] , int i ) ;
    void outputDesc ( int ) ;
    double computePrice ( ) ;
private:
    char type ;
    char size ;
    int toppings[7] ;
} ;

functions:

#include "prob7.h"

void Pizza::set ( char x , char y , int (&a)[6] , int i )
{
    type = x ;
    size = y ;
    for ( int x = 0 ; x < i ; x++ )
    toppings[i] = a[i] ;
}

void Pizza::outputDesc ( int i ) 
{
    cout << endl << "Style:  " << type << endl ;
    cout << "Size:  " << …
Duki 552 Nearly a Posting Virtuoso

did you always have 3 rep blocks or did i just do that?

Duki 552 Nearly a Posting Virtuoso

Ok i tried to do what you did and i failed.
=(

void Pizza::outputDesc ( int i ) 
{
    cout << endl << "Style:  " << type << endl ;
    cout << "Size:  " << size << endl ;
    cout << "Toppings:  " << flush ;
    
    for ( int x = 0 ; x < i ; x++ )
   {
      switch ( toppings[x] )
      {
      case 1:        cout << "Extra Pepperoni\n" ;            break ;
      case 2:        cout << "Extra Cheese\n" ;                break ;
      case 3:        cout << "Extra Sausage\n" ;                break ;
      case 4:        cout << "Extra Jalapenos\n" ;            break ;
      case 5:        cout << "Extra Banana Peppers\n" ;        break ;
      case 6:        cout << "Extra Green Peppers\n" ;        break ;
      case 7:        cout << "Extra Mushrooms\n" ;            break ;
      case 8:        cout << "M&Ms\n" ;                        break ;
      }
   }
}

thanks for all this help; i really appreciate it

Duki 552 Nearly a Posting Virtuoso

so i just tested my code again; thanks for the help btw !

here's what i got, lol:

Please choose from the following list:
        1. Extra Pepperoni      2. Extra Cheese
        3. Sausage              4. Jalapenos
        5. Banana Peppers       6. Green Peppers
        7. Mushrooms            8. M&Ms
Enter 2 topping numbers, followed by the 'Enter' key:
3
2
Thank you
Order Description:

Style:  ☻
Size:  s
Toppings:  1310720, 1310720, Press any key to continue . . .

a smiley face? ha!

So I would like to output the toppings they chose instead of well... in this case the address in memory.
But even if it output the correct number, i would like to have some way to say if it's a 1 output this if it's a 2 output this etc.
any suggestions? can you do a switch on an array?