Posts by DavidB
Hello, Matthew.
Welcome to the DaniWeb forums. We are glad you joined us.
These forums are an excellent resource: lots of good information and many knowledgeable members here.
It is a great place for the sharing of ideas. I am sure you will learn a lot here.
See you around the forums.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
You are not even in the job yet, so don't take anything for granted. Many people are looking for a job and cannot find it, so IF you actually get hired, appreciate it.
Once you are there, take the opportunities to learn new things. Many people make the mistake of entering a job and focusing on their particular field of specialization--only. I think that is a mistake. Most employers will give employees exposure to other software packages (e.g. - CMS Software, ERP Software, Accounting Software, etc.) and different technologies. Make sure you learn about them when you get the opportunity. Having more to put on your resume makes the next job come sooner and easier. Gradually work your way in to the job you want.
Another bit of advice: usually it is not the job itself that makes it or breaks it for you; it is the people you work with. So don't be surprised if you find your dream job but can't stand the people you work with. Bad co-workers can turn a dream job into a hell for you. Some of the best jobs are actually not doing the specific job you want, but working with people you enjoy spending 8+ hours a day with.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Hello, Mandi.
Welcome to the DaniWeb forums.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Yikes! I think I will pass on that. I have avoided going in for something as simple as a prostrate exam.
Now I have to worry about this?! I sure hope my doctor doesn't bring this up as a way to prolong my life.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Interesting article. This is the first I have heard about spicy food affecting cancer.
I have read of several other foods that supposedly prevent cancer: eggplant, bitter almonds, apricot seeds, graviola, etc. Don't know if they are actually effective.
Plus, sugar should be avoided. Apparently, cancer cells use five times as much sugar as regular cells to grow. And with all the sugar in our diets, we are making a comfortable home for cancer cells. So I have tried to drastically reduce my sugar intake.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Do you mean you want to multiply A-matrix by B-matrix by C-matrix by D-matrix, etc.? You will have to do that one at a time.
Or do you mean you want the option of choosing among several different-sized matrices, but only two are going to be multiplied together?
Off the top of my head, I seem to recall that "Narue" posted a code block some time ago that did matrix multiplication. Just do a search of these forums.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
It should be as easy as logging in to your account and deleting it.
For example, if I log in to my Delicious account, I can select the bookmark, and then choose to delete it.
All the other social bookmarking sites offer similar features.
I don't understand why you would think you can not delete a bookmark; after all, they are your bookmarks, which you have saved for your convenience.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
I am not aware of any way to watermark numbers. Or maybe I am misunderstanding your question.
If you just want to save an array of numbers, and make sure they have not been altered in any way when you want to use them again, a couple ideas come to mind:
Save them in a Word document and password protect the document. Word also offers the option of adding a watermark to a document, but that isn't relevant to the security of the document.
Alternately, save the array of numbers in a PDF document and digitally sign the document. Then, in the future, if you have to use those numbers again, you will be able to tell if the document has been adjusted at all (or not). It will tell you if the document has been tampered with in any way.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
A sitemap is a way for visitors and Google to know how pages connect to other pages within your site. For example, at the top of THIS page, you can see the following site map: "Internet Marketing > Search Engine Optimization". So now you know where you are within these forums and what level is the next level up. Some sites go deeper than that; they can have MANY more levels. And by allowing visitors to click on any of those links, they can quickly navigate to other locations within a site.
A site map is not required, but it is highly recommended. Google explicitly recommends having a sitemap on their webmaster tools pages, for example, here is one page (you could probably find many more): http://support.google.com/sites/answer/100283?hl=en
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Hello, CW.
Welcome to the DaniWeb forums. We are glad you joined us.
These forums are an excellent resource: lots of good information and many knowledgeable members here.
It is a great place for the sharing of ideas. I am sure you will learn a lot here.
See you around the forums.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
By "nested loops", do you mean a loop within a loop? In this case, you don't need a nested loop anyhow.
But you will probably need one non-nested loop. "NathanOliver" gave an example of pseudo-code.
Not sure how else you could do it. Recursively?!
I suppose it depends on the format in which the data comes: in an array, ordered, spacing, in a string, etc.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Hello, Benedict.
Welcome to the DaniWeb forums.
Maligayang pagdating.
We are glad you joined us.
These forums are an excellent resource: lots of good information and many knowledgeable members here.
It is a great place for the sharing of ideas. I am sure you will learn a lot here.
See you around the forums.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Mac Pascal, back in 1985.
Then WATFIV (FORTRAN), Turing, Turbo C, C++, HTML, Javascript, CSS, some PHP.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
So the name of the file you are trying to open is named "F:\problem5 YES.txt"?
(I am curious if that whitespace is allowed.)
Also, I usually put a second argument in the file opener:
For example,
ifstream fin("F:\problem5 YES.txt", ios::fin);
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
I do not see a conditional statement.
On line 4, I see Total+=newValue;, but it doesn't check first to see if checkbox checked. It adds 10000 to value regardless.
You should have code like the following:
if (checkbox checked){
Total+=newValue;
}
else {
do nothing; // or whatever action should occur if checkbox unchecked
}
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
How far along are you?
Are you having troubles opening the text file? Reading the file? Creating the array? Putting the data into the array? etc.?
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
PageRank has been discussed many times before in these forums. If you had just spend some time reading through these forums you would get a pretty good idea what PageRank is. In fact, you might want to look at this thread from a year ago: Click Here
And there is a lot more to be found by searching.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Social bookmarking sites are websites on which you can save your favorite bookmarks, and they are publicly viewable, hence, the term "social." For example, delicious is probably the biggest and best-known. There are many others. They provide another way to save your favorite bookmarks, besides memorizing them, saving them in your Favorites Toolbar, saving them in a text document, etc. Wikipedia has a pretty good write up on the topic, and a good list of sites. Start there.
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
Here is another way to create a (square) 2D array in Javascript:
var MATRIXDIM = 5; // Dimension of a square matrix
var A = new Array(MATRIXDIM);
for (var i = 0; i < MATRIXDIM; i++){ // Create the square Matrix
A[i] = new Array(MATRIXDIM);
} // End for i loop
At this point, a square 5 x 5 matrix named A has been created. Now to assign data to the array, you do something like this:
A[1][2] = 25;
This assigns the number 25 to the array element in row 2, column 3 (remember, array indexing in Javascript starts at 0).
How are you getting the data in the first place? Several textboxes? A textarea box? etc.?
DavidB
Posting Whiz
309 posts since Jul 2006
Reputation Points: 48
Solved Threads: 16
Skill Endorsements: 16
© 2013 DaniWeb® LLC
Page rendered in 0.1282 seconds
using 2.72MB