Duki 552 Nearly a Posting Virtuoso

Read your textbook. Do your own homework.

Duki 552 Nearly a Posting Virtuoso

Can you be more specific about what you're having troubles with?

Duki 552 Nearly a Posting Virtuoso

Hey guys,

I'm trying to understand how radix sort works in C++ : I've looked over the C++ implementation from wikipedia:

void radixsort(int *a, int n)
{
  int i, b[MAX], m = a[0], exp = 1;
  for (i = 0; i < n; i++)
  {
    if (a[i] > m)
      m = a[i];
  }

  while (m / exp > 0)
  {
    int bucket[10] =
    {  0 };
    for (i = 0; i < n; i++)
      bucket[a[i] / exp % 10]++;

      //accumulate
    for (i = 1; i < 10; i++)
      bucket[i] += bucket[i - 1];

      //transfer
    for (i = n - 1; i >= 0; i--)
      b[--bucket[a[i] / exp % 10]] = a[i];

    for (i = 0; i < n; i++)
      a[i] = b[i];
    exp *= 10;

    #ifdef SHOWPASS
      printf("\nPASS   : ");
      print(a, n);
    #endif
  }
}

The portion I'm having trouble with is the accumulation and transfer parts (commented above). What's the point in the accumulation step, and how does the transfer portion work? Can someone shed some light?

Duki 552 Nearly a Posting Virtuoso

Hey everyone,

I have this problem. I need to access data that the user inputs via the <input /> statement during the controller method.

Here's my code, maybe this will make it more clear:

// client side
@using (Html.BeginForm())
{
    if (competitorList.Count > 0 && eventList.Count > 0)
    {
        foreach (Event evt in eventList)
        {
            <table>
            <tr><th>@evt.activity.Name</th></tr>
            <tr>
            <th>Name</th>
            <th>Email</th>
            <th>Score</th>
            <th>New Score</th>
            <th>Update</th>
            </tr>
            @foreach (Results res in resultList)
            {
                if (res.EventID == evt.id)
                {
                    string competitorName = Person.getUserByEmail(res.CompetitorEmail).FirstName + Person.getUserByEmail(res.CompetitorEmail).LastName;


                    <tr>
                        <td>@competitorName</td>
                        <td>@res.CompetitorEmail</td>
                        <td>@res.Score</td>
                        <td><form action="EventResults"><input type="text" name="score" id="score" /></form></td>
                        <td>@Html.ActionLink("Update", "UpdateResults", "Competition", new { compId = evt.competitionId, evtId = res.EventID, email = res.CompetitorEmail }, null)</td>
                    </tr>
                }
            }
            </table>
            <hr />
        }
    }
    else
    {
        <p>There are currently no competitors invited to participate</p>
    }
}


// controller
public ActionResult UpdateResults(FormCollection form, int compId, int evtId, string email)
        {
            //////     this returns 0.0     /////
            double score = Convert.ToDouble(form["score"]);

            BINC.Models.Results.UpdateResults(evtId, email, score);

            List<Event> CompetitionEvents = Event.getEventsByCompetitionId(compId);
            ViewBag.CompetitionEvents = CompetitionEvents;

            List<Competitor> Competitors = Competitor.getCompetitors(compId);
            ViewBag.Competitors = Competitors;

            List<Results> Results = Competition.getCompetitorResultsPairings(CompetitionEvents, Competitors);
            ViewBag.Results = Results;

            ViewBag.Competition = Competition.getCompetitionById(compId);

            return View("EventResults");
        }

Can someone give me a hand?

Duki 552 Nearly a Posting Virtuoso

hey everyone - I'm trying to figure out how to call the appropriate httpPost methods for a particular jtable instance? I thought it was specified by the actions in the javascript, but I can't figure it out. Can anyone give me a hand? Here's my script and the httpPost method - it's located in the CompetitionController.cs file

 <div id="CompetitionTable""></div>

<script type="text/javascript">

    $(document).ready(function () {

        //Prepare jtable plugin
        $('#CompetitionTable').jtable({
            title: 'The Events List',
            paging: true, //Enable paging
            pageSize: 10, //Set page size (default: 10)
            sorting: true, //Enable sorting
            defaultSorting: 'Name ASC', //Set default sorting
            actions: {
                listAction: '@Url.Action("EventList", "CompetitionController")'
            },
            fields: {
                EventID: {
                    key: true,
                    create: false,
                    edit: false,
                    list: false
                },
                EventName: {
                    title: 'Name',
                    width: '15%'
                },
                CompetitorEmail: {
                    title: 'Email address',
                    list: false
                },
                CompetitorName: {
                    title: 'Competitor',
                    width: '15%',
                },
                Score: {
                    title: 'Score',
                    width: '10%',
                }
            }
        });

        //Load list from server
        $('#CompetitionTable').jtable('load');
    });

</script>


 [HttpPost]
        public JsonResult EventList(int compId)
        {
            try
            {
                //Get data from database
                List<Event> events = Event.getEventsByCompetitionId(compId);

                //Return result to jTable
                return Json(new { Result = "OK", Records = events});
            }
            catch (Exception ex)
            {
                return Json(new { Result = "ERROR", Message = ex.Message });
            }
        }
Duki 552 Nearly a Posting Virtuoso

Hey everyone,

I'm trying to code a webform to allow people to input data on several objects in a database. I'd like to have them be able to click an update button for each item they want to update, popup a box for the value, and pass that value to [Httppost] along with some other data.

Does anyone have an idea of where I can get started with this?

Duki 552 Nearly a Posting Virtuoso

I tried using the following, but it didn't seem to work either:

 @Html.LabelFor(model => model.Score, "New Score   ");
                                @Html.TextBoxFor(model => model.Score, new { maxlength = 10, style = "width:125px" })
                                @Html.HiddenFor(model => model.EventID);
                                @Html.HiddenFor(model => model.CompetitorEmail);
                                <input type="submit" name="submitButton" value="Update" />
Duki 552 Nearly a Posting Virtuoso

Hey everyone,

I'm having some problems with my code and was hoping someone could give me a hand. Here's the snippet I'm working with:

[Authorize]
        public ActionResult EventResults(int id)
        {
            List<Event> CompetitionEvents = Event.getEventsByCompetitionId(id);
            ViewBag.CompetitionEvents = CompetitionEvents;

            List<Person> Competitors = Competition.getCompetitorsByCompetitionID(id);
            ViewBag.Competitors = Competitors;

            List<Results> Results = Competition.getCompetitorResultsPairings(CompetitionEvents, Competitors);
            ViewBag.Results = Results;

            ViewBag.OrganizerEmail = Competition.getCompetitionById(id).OrganizerEmail;

            return View();
        }



@model BINC.Models.Results
@using BINC.Models;

@{
    var eventList = ViewBag.CompetitionEvents as List<Event>;
    var competitorList = ViewBag.Competitors as List<Person>;
    var resultList = ViewBag.Results as List<Results>;
}

<h2></h2>

<p>Results:</p>
    @using (Html.BeginForm())
       {
            foreach (var evt in eventList)
            {
                <fieldset>
                    <legend>@evt.activity.Name</legend>

                   <p>Event Description:  @evt.activity.Description</p>
                   @foreach (var competitor in competitorList)
                   {
                       foreach (var result in resultList)
                       {
                           if (result.EventID == evt.id && result.CompetitorEmail == competitor.Email)
                           {
                               <p>Competitor:  @competitor.FirstName @competitor.LastName</p>
                               <p>Score:  @result.Score</p>

                               if (ViewBag.OrganizerEmail.Equals(@User.Identity.Name))
                               {
                                    @Html.LabelFor(model => model.Score, "New Score   ");
                                    @Html.TextBoxFor(model => model.Score, new { maxlength = 10, style = "width:125px" })
                                    <input type="submit" name="submitButton" value="Update" />
                               }
                           }
                       }
                   }
                </fieldset>
            }
       }






[HttpPost]
        public ActionResult EventResults(Results res)
        {
           //stuff
        }

My problem is I want to pass in the value of the current result-set, not the Result model object.
For example, when I put the value '15' into the text box and click 'Update', I'm passing the Result model object to the httppost method, which has everything set to null other than the 'score' field that I just entered.

Am I over complicating this? Is there an easier way?

Duki 552 Nearly a Posting Virtuoso

Hey everyone,

I'm pretty new to web design in general, so I'm not really sure how to get started with this. I have a wordpress site that I would like to be able to manage user profiles on. The built in account management stuff works great for regular logon/off sessions, but there are some features I would like to make available for our users.

I maintain a wellness site and I would like to allow users who are logged on to be able to click a button that says "Claim Points" or something similar for events they participate in - when they click the button, it would automatically update their total wellness points on their profile. Can anyone suggest where I should start on this? I'm assuming PHP might be an easy way to interact with users, but I'm really not sure where to begin.

Duki 552 Nearly a Posting Virtuoso

Hey everyone,

Trying to configure an apache web server on my home network and had a question about port forwarding. I have my router set to forward everything on port 80 to the webserver, but I wanted to see if there were any ramifications of this that I may not be aware of? I can still browse the net fine from my other computers, and can access the website externally. But does this create a security risk of any kind? Is there a better (safer) way to do this?

We checked with the dns company, and they said they couldn't do port matching (i.e., could only point our url to xxx.xxx.xxx.xxx and not xxx.xxx.xxx.xxx:<port>) - does this sound normal? Are there hosting companies that do allow this type of thing?

Thanks in advance!

Duki 552 Nearly a Posting Virtuoso

Hey everyone,

Anyone know if Solaris, by default, throws an out of memory exception when 'new' is called but the system has run out of memory? I know Windows systems has this turned on by default, and AIX doesn't. But I can't find anything related to Solaris.

Duki 552 Nearly a Posting Virtuoso

Whoops - forgot the level of access had to match also (private vs. public). Marking as solved. :)

Duki 552 Nearly a Posting Virtuoso

When I debug this method, I can clearly see that currentNode = Workstation, so I am puzzled as to why I'm still entering into the "Node" buffer print, rather than the "Workstation" buffer print. Shouldn't polymorphism handle this for me?:


part of Node Class

public void printToBufferAsHTML(Network network, StringBuffer buf) {
	
		buf.append("<HTML>\n<HEAD>\n<TITLE>LAN Simulation</TITLE>\n</HEAD>\n<BODY>\n<H1>LAN SIMULATION</H1>");
		Node currentNode = this;
		buf.append("\n\n<UL>");
		do {
			buf.append("\n\t<LI> ");

			if (isValidNode(currentNode))
				currentNode.printNodeToBufferAsHTML(buf, currentNode);
			else
				buf.append("(Unexpected)");

			buf.append(" </LI>");
			
			currentNode = currentNode.nextNode;
		} while (network.notCompleteCycle(currentNode));
		buf.append("\n\t<LI>...</LI>\n</UL>\n\n</BODY>\n</HTML>\n");
	}


private void printNodeToBufferAsHTML(StringBuffer buf, Node currentNode) {
		buf.append("Node ");
		buf.append(currentNode.name);
		buf.append(" [Node]");
	}
public class Workstation extends Node{
	
	public Workstation(String _name) {
		super(_name);
	}

	public Workstation(String _name, Node _nextNode) {
		super(_name, _nextNode);
	}
	
	public void printNodeToBufferAsHTML(StringBuffer buf, Node currentNode) {
		buf.append("Workstation ");
		buf.append(currentNode.name);
		buf.append(" [Workstation]");
	}
}
Duki 552 Nearly a Posting Virtuoso

Through Java code.

Duki 552 Nearly a Posting Virtuoso

Hey everyone,

I've searched around Google a bit but most places suggest just using "\n" over and over. This gets messy though, for the code and the interface. Is there a built in method for Java that can clear the console?

Duki 552 Nearly a Posting Virtuoso

Ok, here's my updated code ... I can't get the ArrayLists to print to file though :(

package main;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Notebook book = new Notebook();
		
		Note note1 = new Note();
		Tag tag1 = new Tag();
		book.myNotes.add(note1);
		book.myTags.add(tag1);
		
		book.saveAs();
		
		System.out.println("Finished.");

	}

}
package main;

import java.beans.XMLEncoder;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.util.ArrayList;

public class Notebook implements java.io.Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;



	/* constructors */
	public Notebook (){
		id = nextId;
		nextId++;
		myTitle = "Title" + id;
	};
	
	public Notebook (String newTitle){
		id = nextId;
		nextId++;
		myTitle = newTitle;
	};
	
	
	/*	members	 */
	
	//persistent objects
	public int id;
	public static int nextId = 0;
	public String myTitle;
	
	public ArrayList<Tag> myTags = new ArrayList<Tag>();
	public ArrayList<Note> myNotes = new ArrayList<Note>();
	
	
	
	/*	methods	*/
	
	//getters & setters
	public int getID() { return id; }
	public void setID(int newID) { id = newID; }
	
	public String getMyTitle() { return myTitle; }
	public void setMyTitle(String newTitle) { myTitle = newTitle; }
	
	public ArrayList<Tag> getMyTags() { return myTags; }
	public void setMyTags(ArrayList<Tag> newTag) { myTags = newTag; }
	
	public ArrayList<Note> getMyNotes() { return myNotes; }
	public void setMyNotes(ArrayList<Note> newNotes) { myNotes = newNotes; }
	
	

	public void saveAs() {

		try {
			XMLEncoder n = new XMLEncoder(new BufferedOutputStream(
					new FileOutputStream(getMyTitle() + ".xml")));
			n.writeObject(this);
			n.close();
		} catch (Exception e) {
			System.out.println(e);
		}
	}
	
}
package main;

import java.util.ArrayList;

public class Note …
Duki 552 Nearly a Posting Virtuoso

So if everything is stored in a single Notebook object, and I write that object to XML ... it will recursively go through and write all it's objects, and it's object's-objects, it's arrays, it's member object's arrays etc.?

Duki 552 Nearly a Posting Virtuoso

The code is quite big at this point - however, I will post if absolutely necessary. As a general idea of what I'm trying to do, I have the following setup:

Notebook (class)
  --- contains Array of Notes (class)
  --- contains Array of Tags (class)


Note (class)
  --- contains Array of Tags (class)
  --- contains members (e.g., String for the note text)

Tag (class)
  --- contains members (e.g., String for tag text)

So, I'd like to be able to save the Notebook to XML and also restore these objects if requested. As for naming and methods, is there anything other than getMember, setMember methods I need?

Duki 552 Nearly a Posting Virtuoso

>Don't mix the definition of bean and list classes. Try to define a new list class.

That's not really an option at this point - is there any other way around this?

Duki 552 Nearly a Posting Virtuoso

Can someone explain why, when I input 'mytag' it does find it? When I debug, it shows the text matches, but the IDs are different. Not sure why that would matter?

public void RemoveTag() throws IOException, NoSuchTagException{
		
		System.out.printf("Tag to delete:  ");
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		
		String tempTagText = reader.readLine();
		
			for (int i = 0 ; i < tags.size() ; i++)
			{
				if (tempTagText == tags.get(i).getTagName().toString())
				{
					tags.remove(i);
					System.out.println("Tag " + tempTagText + " removed.");
					return;
				}
			}
			throw
				new NoSuchTagException("The entered text does not match any tag");
	}
}
package main;

public class Tag {
	
	public Tag(String name) {
		tagName = name;
		tagID = nextTagID;
		nextTagID++;
	};
	
	private static int nextTagID = 0;

	public void setTagName(String name)
	{
		tagName = name;
	}
	
	public String getTagName()
	{
		return tagName;
	}
	
	public String tagName;
	public int tagID;
	
}
Duki 552 Nearly a Posting Virtuoso

Hm, still not writing out anything. Here's my Shelf class again, with the methods you suggested:

package main;

import java.util.ArrayList;

public class Shelf implements java.io.Serializable {

	public Shelf() {
		shelfName = "New Shelf" + nextShelfID;
		shelfID = nextShelfID;
		nextShelfID++;
	};

	public Shelf(String name) {
		shelfName = name;
		shelfID = nextShelfID;
		nextShelfID++;
	};

	private String shelfName;
	static private int nextShelfID = 0;
	private int shelfID;

	public ArrayList<Notebook> notebooks = new ArrayList<Notebook>();

	public void setShelfName(String name) {
		shelfName = name;
	}
	
	public ArrayList<Notebook> getNotebooks() {
	      return this.notebooks;
	   }

	   public void setNotebooks(ArrayList<Notebook> notebooks) {
	      this.notebooks = notebooks;
	   }

	public String getShelfName() {
		return shelfName;
	}

	public int getShelfID() {
		return shelfID;
	}

	public void setShelfID(int id) {
		shelfID = id;
	}

	public int getNextShelfID() {
		return nextShelfID;
	}

	public void PrintProperties() {
		System.out.println("Shelf Name: " + shelfName);
		System.out.println("Shelf ID: " + shelfID);
	}
}
Duki 552 Nearly a Posting Virtuoso

My gets/sets are the same for both classes though, aren't they?

Duki 552 Nearly a Posting Virtuoso

So I'm at a bit of a road block. I'm trying to save my Session which consists of an ArrayList Shelf, which in turn contains an ArrayList Notebook.

I can save the Session, but the only thing written to the xml is the Shelf, not the Notebook contained within the shelf.

Here's my updated code:

package main;

import java.util.ArrayList;

public class Shelf implements java.io.Serializable {

	public Shelf() {
		shelfName = "New Shelf" + nextShelfID;
		shelfID = nextShelfID;
		nextShelfID++;
	};

	public Shelf(String name) {
		shelfName = name;
		shelfID = nextShelfID;
		nextShelfID++;
	};

	private String shelfName;
	static private int nextShelfID = 0;
	private int shelfID;

	public ArrayList<Notebook> notebooks = new ArrayList<Notebook>();

	public void setShelfName(String name) {
		shelfName = name;
	}

	public String getShelfName() {
		return shelfName;
	}

	public int getShelfID() {
		return shelfID;
	}

	public void setShelfID(int id) {
		shelfID = id;
	}

	public int getNextShelfID() {
		return nextShelfID;
	}

	public void PrintProperties() {
		System.out.println("Shelf Name: " + shelfName);
		System.out.println("Shelf ID: " + shelfID);
	}
}
package main;
import java.util.ArrayList;

public class Notebook implements java.io.Serializable{
	
	public Notebook() {
		notebookName = "New Notebook" + nextNotebookID;
		notebookID = nextNotebookID;
		nextNotebookID++;
	};

	public Notebook(String name) {
		notebookName = name;
		notebookID = nextNotebookID;
		nextNotebookID++;
	};

	private String notebookName;
	static private int nextNotebookID = 0;
	private int notebookID;

	private ArrayList<Note> notes = new ArrayList<Note>();

	public void setNotebookName(String name) {
		notebookName = name;
	}

	public String getNotebookName() {
		return notebookName;
	}

	public int getNotebookID() {
		return notebookID;
	}

	public void setNotebookID(int id) {
		notebookID …
Duki 552 Nearly a Posting Virtuoso

I'm not sure ... I'm pretty new to this. Do I just need to keep doing this:

public class Shelf implements java.io.Serializable

I honestly have no idea what java.io.Serializable does.

Duki 552 Nearly a Posting Virtuoso

Oh very cool. So even though my Shelf will have Notebooks -> Notes, I can restore everything as long as I store the Shelves in a single ArrayList?

Duki 552 Nearly a Posting Virtuoso

Oh ok, that makes a lot of sense. So when I write my save() method, I write my list of shelves to an xml file ... when I write my restore() method, I guess I could do like:

getNumberOfShelves()
for ( .... .... ....)
readXML() and setProperties()

Seems a little complex though - is there an easier way I'm not aware of?

Duki 552 Nearly a Posting Virtuoso

So I've made it somewhere with this ... but I'm stuck again. Here's what I have so far:

package main;

import java.beans.XMLDecoder;
import java.beans.XMLEncoder;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

public class Main {

	public static void main(String[] args) throws FileNotFoundException {

		Shelf TestShelf = new Shelf("My Shelf");
		Shelf TestShelf2 = new Shelf();

		TestShelf.PrintProperties();

		XMLEncoder e = new XMLEncoder(new BufferedOutputStream(
				new FileOutputStream("Test.xml")));
		e.writeObject(TestShelf);
		e.writeObject(TestShelf2);
		e.close();
	
		XMLDecoder d = new XMLDecoder(new BufferedInputStream(
				new FileInputStream("Test.xml")));
		Object result = d.readObject();
		System.out.println("Object: " + result);
		result = d.readObject();
		System.out.println("Object: " + result);
	}
}

Which gives me this xml:

<?xml version="1.0" encoding="UTF-8"?>
<java version="1.7.0" class="java.beans.XMLDecoder">
 <object class="main.Shelf">
  <void property="shelfID">
   <int>0</int>
  </void>
  <void property="shelfName">
   <string>My Shelf</string>
  </void>
 </object>
 <object class="main.Shelf">
  <void property="shelfID">
   <int>1</int>
  </void>
  <void property="shelfName">
   <string>New Shelf1</string>
  </void>
 </object>
</java>

And this output:


Shelf Name: My Shelf
Shelf ID: 0
Object: main.Shelf@169dd64
Object: main.Shelf@145f5e3

My question is, how can I extract exact values from my XML document? For example if I wanted to 'recreate' my saved XML session every time I load my program ... how can I access individual properties?

Duki 552 Nearly a Posting Virtuoso

Is there a way in java to do something similar to this:

class Rectangle
{
   public:
      int x;
      string y;

   private:
      int a;
      string b;
}

Or do you always have to specify public/private for each property?

Duki 552 Nearly a Posting Virtuoso

Hey everyone,

I've never used eclipse or java, and I have an assignment that is expected to use the XML encoding/decoding functionality. I've searched google a bit, but can't really find a good example. Does anyone have a link to some snippets or something that I could go by?

Duki 552 Nearly a Posting Virtuoso

>>So the question is do operators like +,-,/,* have the same effect ?

No.

Duki 552 Nearly a Posting Virtuoso

Please remember to use code tags. It makes helping you much easier. I think you need to adjust how you're closing your { } throughout your program. What specifically isn't working now?

Edit: What did you change from last time? This looks exactly the same ... ?

Duki 552 Nearly a Posting Virtuoso

Why do you have a nested while() and then another nested switch()? Why not just loop again after detecting the first invalid input? I suspect this is why you're receiving the same prompt, twice. You're only returning from the nested while(), not the overall while().

Consider changing the default case in your first switch() to re-prompt the user ... I'm betting this will get you what you're looking for.

>>Could someone help me. Get rid of this problem.
This isn't what we do.

>>Could someone help me get rid of this problem?
This is what we do.

Duki 552 Nearly a Posting Virtuoso

Without seeing your code, it's hard to tell exactly what you want. But from your description, I would have a look here.

Duki 552 Nearly a Posting Virtuoso

To clear your screen you can use system("CLS") - keep in mind this makes your program less portable though.

The reason you continuously loop when you enter bad input is because you're trying to accept a number, but are receiving a char, and your input buffer is overflowing.

Try flushing the input stream after you get the data you want.

Also, I would recommend using a switch rather than multiple IFs.

WaltP commented: He didn't say he was on a Windows system. -4
sergent commented: no reason to downvote, you can just say that in the command below him WaltP! +5
Duki 552 Nearly a Posting Virtuoso

I'm having a hard time understanding your question, sorry. Are you wanting to create a backup link between Computer A and Network A, or are you wanting to create a backup link between Switch A and Switch B?

Duki 552 Nearly a Posting Virtuoso

>> so,any help?

We'll need a bit more information from you. What type of equipment are you working with or do you have available? How much time will you be spending on this project? Will it be skill-set or research based?

Duki 552 Nearly a Posting Virtuoso

I hate to be that guy.

Duki 552 Nearly a Posting Virtuoso

Not an additional 2 years worth of education.

Duki 552 Nearly a Posting Virtuoso

A B.S. is hardly considered a "big degree" nowadays - for many jobs, part of the application requirements are a minimum of a B.S. in computer science or a related field.

>> I don't see how they're hand in hand.

There are two major paths you can take with networking. You're right, I probably mispoke when suggesting the EE track - that's more for people who want to be involved in actually setting up new networks. For you, the program you're looking at seems to offer what you're looking for but is very expensive for just a 2-year degree. Really, forego the certifications and put that effort into a B.S. rather than an A.S. - that's what will open doors for you.

In my experience, the only thing a certification does for you is in situations where the employer is having a hard time deciding between you and an equally qualified candidate. However, if the decision is between Candidate A with no certifications and a 4-year degree, and Candidate B with multiple certifications but a 2-year degree ... more often than not, they'll probably hire Candidate A. This is just my opinion though - keep asking around.

Duki 552 Nearly a Posting Virtuoso

>>Sounds like an ego problem to me

Ha! I actually foresee me needing help in the near future ... and would like to be notified when someone provides me with that help :)

Duki 552 Nearly a Posting Virtuoso

Hi. Don't go to any school that brags about certifications you will receive from their programs. The credentials employers look for are (in this order):

1. Experience
2. Education
3. Certifications

Take your money, and apply it towards a B.S. in electrical engineering with a focus in networking. Use this site as a reference when choosing what school to go to. Though the certifications they mention are good to have, they don't mean anything if you don't fully understand the concepts behind them. I find it hard to believe they can teach you the fundamentals of 9 certifications in 2 years, without basically teaching you the test. I've unfortunately been to test-prep programs where they do in-fact teach you the questions on the test, and not the concepts behind them. Don't waste your money.

:)

Duki 552 Nearly a Posting Virtuoso

Is there a requirement behind what you're doing? Seems like you're making this harder than it needs to be ... maybe you could provide more details on what your problem definition is?

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

Hey everyone,

It's been a while, but I'm back. Going to start chipping in as much as I can in C++ and anything Windows Server/Networking related. I'm starting grad school in a couple weeks, so I'm sure I'll be needing some help of my own soon. :)

Good to be back.

Duki 552 Nearly a Posting Virtuoso

I need to generate a core file for a crashing process and then read it using dbx - can anyone help me with this?

Duki 552 Nearly a Posting Virtuoso

I'm not sure if it's considered 'bad practice' but I typically include

#pragma once

at the beginning of all my header files.

Duki 552 Nearly a Posting Virtuoso

I would consider replacing your "return" statements with "break" within your switch. Then you could do something along the lines of:

case(1):
   ...
   ...
   keep buying?
   if (answer != y && answer != Y)
       break;
case(2):
   ...
   ...
   //etc. etc.
Duki 552 Nearly a Posting Virtuoso

What do you have so far?

Duki 552 Nearly a Posting Virtuoso

Might also consider this for authentication.

Also, this for timers.

Duki 552 Nearly a Posting Virtuoso

>he got an MBA.
Would you suggest this over a professional masters in software? I really don't want to be in a managerial role to the point that I'm not touching the code on a day to day basis. Ideally, I'd love to get into research eventually - but without a PHD, I'm not sure how realistic that is.