ChrisHunter 152 Posting Whiz in Training Featured Poster

my apologies there is no perfect BMI and it is age dependent along with many other factors.

however when you say "Diabetes is not caused by being overweight, contrary to popular myth. Both are caused by the same root reason, an unstable blood sugar level and overall metabolism caused by a diet way too high in processed carbohydrates" is the bodies matabolism not slowed by lack of exercise and healthy diet ?, and over weight people are often (NOT ALWAYS) due to consuming too much of the above (which you say are the main factors in contracting diabetes).

Personally if i get to a size which makes walking up a small set of stairs tiring and you have to buy a seat for each bum cheek on a planeexcess i'll be walking up a few more stairs and seeing a diet consultent.

However i think Tim is a happy medium and we all have our own opinions, mine is that if you want to loose weight and you are able to do so then just do it and i'm sorry if i have anniod you with this it is a touchy subject for many people.

on a lighter note and keeping with the thread subject Odds of being killed by freezing - 1 in 3 million.

ChrisHunter 152 Posting Whiz in Training Featured Poster

BMI is the BMI at which your body can function at its best, being over weight might not be the ONLY reason over weight people contract some illnesses but it IS reason why over weight people oftern have issues breathing and walking, plus over weight people are more prone to diabetes than those who arn't over weight.

i feel sorry for some over weight people who want to loose weight but their medical conditions means they can't but not for those who are able but don't bother and moan about it

Dieting alone is isn't the key as jwenting said, once you stop the diets you put it all back on, a mix of diet and exercise is key not surgery, just put some effort into it.

How ever useless statistic On average, there are 178 sesame seeds on each McDonalds BigMac bun.

ChrisHunter 152 Posting Whiz in Training Featured Poster

I love this guy. Fleece all those grown-up saddoes that play this crap. Make a mint.

I love the fact that some of you all carp on about "he's only 15". He's probably the only one mentioned/posted on this forum that should be playing them. It's like listening to a kid asking an old man, "I'll read Harry Potter to you, you useless old git, if you want. But you'll have to pay me. Enough to buy my own real magic wand." :(

If you think about it . . . he's only 15 . . . call of duty is an 18 . . . he shouldn't realy be playing it because he's under age.

However my 14 year old brother beats me on call of duty all the time and this kid offering this service clesrly has his head screwed on to make money from it, shame he can't compete in LAN's yet or he could be making a heap of dosh

ChrisHunter 152 Posting Whiz in Training Featured Poster

I'm trying to get hold of one in the UK but can't find anywhere to buy one from any ideas ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

How is the user going enter their age ? are they just going to enter age (e.g. 18) or are the to enter their date of birth (e.g. 14/07/1989) to be checked against the current date ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

Make a config file with your connection string in, create a class called something like DBConnections, in that class create a method that established a connection to the database by referencing the connection string in the config file.

When you need to connect to the database for say an SQL command you simply call the method from the DBConnections class.

If you do a bit of googleing or binging you should find some good examples

ChrisHunter 152 Posting Whiz in Training Featured Poster

It's alright the English goverment seem to come out with daft statistics all the time which are a bit of a waste of money and time and sound like something you'd do in high school

ChrisHunter 152 Posting Whiz in Training Featured Poster

Glad i could help.

ChrisHunter 152 Posting Whiz in Training Featured Poster

pretty hardcore going all the way down to binary, it would take up a lot less space but would binary be as re-usable and readable by other users as xml ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

I would recommend delimiting the data in some fashion or otherwise structuring your file so that there is a "table of contents" so to speak.

Zachattach05 has a good point look into using Xml to store data, you can structure your data using tags/ nodes and child tags/ nodes to add more structure to your data.

It's a good idea aswell because you can use this data across different DBMS'

ChrisHunter 152 Posting Whiz in Training Featured Poster

is it just a new form within the same application that you want to open or is it a form within a seperate application ?

if it's just a form within the same app try just doing

//creates an instance of the form you want to open 
MyForm form1 = new MyForm();

// put this in the method which you want to open the new form
form1.Show();
ChrisHunter 152 Posting Whiz in Training Featured Poster

Overall there is about 100 lines in it that solved the problem I was having.

Thats quite a bit of code to fix one problem for a college project (speaking from experience) but as long as you make no attempt to pass another person's code off as your own and you reference it you'll be fine (and possibly get permission).

How ever if it's as much as 100 lines of code there might be some way to shorten the code so much so that its shorter and faster (not just change variable names or take out an if statement or two) than the orignal after all it's what the code acheives that your after not the code segment you need they are just showing how to use different aspects of a language.

I graduated uni in the last 9 month so i looked at examples and tutorials of code to understand how the different aspects of C# could be used and applied them to my project in a way that meant the end result was the same (e.g. exporting/ importing from XML doc using C#) but my code didnt resemble that of the example other than the obvious built in things like XmlWrite etc . . .

ChrisHunter 152 Posting Whiz in Training Featured Poster

Sadly the kid is quite correct in his assessment about the current state of user "communities" in online gaming. Cooperation, even within teams that need to cooperate in order to win, is usually non-existent.

Wow sounds like you needed to vent.

i feel you pain though i'm playing battleField 3 at the moment and although you are put in squads there's not much point in them everyone runs around like headless chickens and with little to no tactics other than run forward untill you get shot.

ChrisHunter 152 Posting Whiz in Training Featured Poster

If i'm honest other than just trying to establish a connection without the use of an ethanet cable i don't know how to check if it's wireless, i've only recently graduated as a software engineer so networking isn't my area but you can pick one up for around 15GBP

ChrisHunter 152 Posting Whiz in Training Featured Poster

If it's a wireless one it should do

ChrisHunter 152 Posting Whiz in Training Featured Poster

Arr my apologies i have to admit i didn't read the thread properly before replying

ChrisHunter 152 Posting Whiz in Training Featured Poster

by default i want to ask the user to enter text in textbox in pattern: _x_____.

User should be able to allow both numeric and alphabet.

but this allows user to enter only numeric values..but i need to enter alphabet also.

This suggests that you don't want the user to be able to enter something made up of entierly numeric charactors or entierly made up of alphabetic charactors. If so i don't think theres a way to do it because setting it as a string means that everything (even if all charactors are numeric) are seen as being a string and not numeric.

On question of having _x______ as the default value of the text box just set the value property of the textbox to be initialised with that value i think . .

ChrisHunter 152 Posting Whiz in Training Featured Poster

I'm guessing just make sure your router is a wireless router and make sure you have a wireless network card and then connect to the router wirelessly.

I'm not really a networking person

ChrisHunter 152 Posting Whiz in Training Featured Poster

"An individual or collaborative enterprise planned and designed to achieve an aim."

Thats the Google definition, so it's the entire process of creating a program including the design implementation and testing.

ChrisHunter 152 Posting Whiz in Training Featured Poster

if you mean you can't write the introduction to your project i suggest you leave it until the end or at least until you've got the structure of your documentation so that you have a better understanding of what your project will consist of.

it worked well for me because i just introduced what the document would consist of.

ChrisHunter 152 Posting Whiz in Training Featured Poster

Appropriate is not how i would define your actions sir ! . . . now get your hand off my bottom

ChrisHunter 152 Posting Whiz in Training Featured Poster

you could do an INSERT statement with a WHERE clause to prevent a new row being added to a table where the same records already exits.

would be something like (but dont take my word for it)

INSERT INTO Employee AS E (Name, Age, DOB) VALUES (value1, value1, value3) WHERE E.Name != value1 AND E.Age != value2 AND E.DOB != value3;

or you could do a int recordCount = select COUNT(*) from Employee WHERE the table values match the values entered. If the value of recordCount is 0 then do the insert (as above but without the where clause in it)

Do some research on it though to make sure.

hope this helps

ChrisHunter 152 Posting Whiz in Training Featured Poster

flowers ? for me ? What have you done wrong ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

Quote ...
Raining Cats and Dogs" doesn't mean a thing!

Things are about to get messy

ChrisHunter 152 Posting Whiz in Training Featured Poster

ZombieVille and Pumpkins Vs Monsters, PvM is kind of a low budgit plants vs zombies but still good

ChrisHunter 152 Posting Whiz in Training Featured Poster

Good for you.

In what context are you trying to use the random number generator, what errors are you getting and do you want help or are you just stating that it doesnt work ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

So you need a title for a thesis on a web based or LAN tapology based subject ?

You need to give a lot more information than that and try asking a friend they might have a better idea of what your doing and be able to help you more.

ChrisHunter 152 Posting Whiz in Training Featured Poster

have any images of the ps4 been released yet ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

Alot of places in the UK seem to be mostly looking for C#, Java, C++ and php developers and SQL too.

ChrisHunter 152 Posting Whiz in Training Featured Poster

"it's not the years in your life it's the life in your years"

- abraham lincoln

ChrisHunter 152 Posting Whiz in Training Featured Poster

Can you use Ruko in the UK or is it just for amercia ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

Bugs Bunny

"I HAVE THE POWER !"

ChrisHunter 152 Posting Whiz in Training Featured Poster

i have this issue (if this issue is how i understand it). my laptop only works when i have my charger in and turns off when i take the charger out, is this an issue with my battery ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

Never a more true word said, it's more relaxing . . . and hot

ChrisHunter 152 Posting Whiz in Training Featured Poster

Ben Howard - Every Kingdom. The whole album is great and chilled out, particularly tracks 1, 3 and 6.

ChrisHunter 152 Posting Whiz in Training Featured Poster

Select * from tableName where primary key = '" + textBox1.Text + "';

ChrisHunter 152 Posting Whiz in Training Featured Poster

Library system, it's been done to death but it's a winner every time !

What are you using for your database, MS Access, SQL Server, Orical ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

Also once it goes through how to output all of that into one textbox that will ultimately go to a txt file. I have all the other textboxes done just need those.


do you mean you just need to put the login details into a text box once they have been checked ?

the method below returns a boolean value, checks that the login details exist in the database executing an SQL statement to return number of rows that contain the login details provided by the user and return. if there the row count is 1 or more the method returns true and the user is logged in if the row count is 0 it returns false and login fails (change the variables to suite your needs).

public bool getCridentials(string _username, string _password)
        {
            //Sets the value of booliean variable called valid to false
            bool valid = false;

            //Sql statement that counts the amount of rows in the OSDE_Users table where the username and password fields are the same as those entered by the user
            string loginSQL = "SELECT COUNT(Logon) FROM STARWATCH.dbo.OSDE_Users WHERE Username = '" + _username + "' AND Password = '" + _password + "'";

            //Sql command that executes the Sql statement
            SqlCommand cmd = new SqlCommand(loginSQL, db.Connect());

            try
            {
                //int variable that stores the result of the Sql statement
                int rowCount = Convert.ToInt32(cmd.ExecuteScalar());
                //Executed if the value of rowCount is greater than or equal to 1
                if (rowCount >= 1)
                {
                    //Sets the value of …
ChrisHunter 152 Posting Whiz in Training Featured Poster

xml mostly used for database

Loads of help . . .

Xml is used to store semi-structured data, mostly used for databases as it allows you to transefer data across database formats but i.e. SQL Server to MS Access.

this worked for me when i did my 3rd year project for uni, it reads two nodes from the xml document, stores them in variables and puts them in the textboxes, you will need to put you data in labelled nodes for it to work and for organisation too.

hope this helps.

int objectTypeID = 0;
            int stateTypeID = 0;

            try
            {
                // Initialises instance of XmlDocument class called config
                XmlDocument config = new XmlDocument();
                // Loads existing Xml document, located at directory this is stored in path and stores it into config
                config.Load("C:\\fileLocation.xml");

                // Creats list of all nodes within the xml document with tag of ObjectTypeID
                XmlNodeList ObjectTypeID = config.GetElementsByTagName("ObjectTypeID");

                //Loops through for each element in the list
                foreach (XmlNode n in ObjectTypeID)
                {
                    //Converts XmlNode to XmlElement
                    XmlElement _ObjectTypeID = (XmlElement)n;
                    //Converts and stroes value of specified attribute in property of ObjectTypeState class
                    stateTypeID = Convert.ToInt32(_ObjectTypeID.GetAttribute("ID"));
                }

                textBox1.Text = "ID1 = " + objectTypeID;

                XmlNodeList StateType = config.GetElementsByTagName("StateType");

                foreach (XmlNode n in StateType)
                {
                    XmlElement _statetype = (XmlElement)n;
                    stateTypeID = Convert.ToInt32(_statetype.GetAttribute("ID"));
                }

                textBox2.Text = "ID2 = " + stateTypeID;

            }
            catch
            {
                throw (new Exception("asdfghjk"));
            }
ChrisHunter 152 Posting Whiz in Training Featured Poster

PS3 - Better in general, the controls are better, the console is just cooler. Nobody likes using a Xbox control.

PS3 controlers are too small for my big man hands and you forgot to mention that Xbox live (which does cost) is better than Ps3 online (which is free) due to the amount of players, competitiveness and reliability.

if your a gamer who likes playing online i'd suggest xbox but it you want a blueray player to just play the good lookin campains of games on i'd suggest the Ps3.

ps3 will mean you dont have to buy a seperate blueray though

ChrisHunter 152 Posting Whiz in Training Featured Poster

I've been a customer of BT for well over 10 years now and had an internet package with them since the days of dial-up. However i've had problems with my connection dropping out sometimes for days at a time and during importent periods such as MS exam prep and uni deadlines. An engineer has been sent out at least 5 time in a year but nothings changed and it's still dropping out (more regularly now).

When i've asked alot of people have said they had trouble with BT and switched but others have never had an issue and have good D/L speeds too (mines usually 800kbps - 1.2mbps when it should be alot more).

i guess my question is has anyone else been messed about like this by BT and how did you get it sorted or did you changed and if you did was it alot oh hassel ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

Sorry it's not headcandy its skullcandy

ChrisHunter 152 Posting Whiz in Training Featured Poster

Sorry to bring up an old thread, i just got a pair of HeadCandy Comporter earbuds and they're pritty good, i love bass an they're doing the trick at the min and the cost me £7 from HMV, i think they're on sale ate the moment though

ChrisHunter 152 Posting Whiz in Training Featured Poster

i only glanced at this but it looks quite solid for a starting point.

Use case diagrams should how the system and not how the system will react to the user's input e.g. the some use cases for a cash machine will be enter card, enter pin, request cash, recieve cash, recieve card.

hope this helps

ChrisHunter 152 Posting Whiz in Training Featured Poster

you could do a library system to log the status of books (currently on loan, over due, or available) which generates alarts when books are due to be returned and print reports to be sent out when a book is over due by so many days/ weeks.

It's been done to death but still good one to do.

ChrisHunter 152 Posting Whiz in Training Featured Poster

"My Masters Project" don't forget to put me in your acknowledgements x

ChrisHunter 152 Posting Whiz in Training Featured Poster

Battle Field 3 beta at the moment, even with all the bug, looking forward to get it at the end of this month, campain looks awesome !

ChrisHunter 152 Posting Whiz in Training Featured Poster

cwarn23 that was amazing your a legend in my books just for that one post !

ChrisHunter 152 Posting Whiz in Training Featured Poster

The way people are going on about you'd think Steve Jobs was their mother and tables and mp3 players had never existed before the iPod and iPad. i'm not a fan of Apple only the iPod (nano because it's lasted 5 years and i got it cheap) but the company is bigger than one man and similar technology to that released by Apple would more than likely have been released eventualy through natural progression.

How ever Apply (and Steve Jobs) have played a massive part in the advancement of technology. it's not nice to here that anyone has died and should be good to see what Apple go on to do in the future.

Just remember when we're all flying around on hoverboards the idea came from Back to the future in the 80's !

ChrisHunter 152 Posting Whiz in Training Featured Poster

Expect Apple to show up above Android in the next report right after the release of a new iPhone model.

This will mainly be due to people wanting the brand to look "Kewl", it's not cheaper than android which is propably why android has boomed (due to the quick release of andriod by the likes of HTC which brings the price down), and it's not as open as andriod. Apple could sell crap to a farmer . . . which isnt necessarily a bad thing though but aslong as it's cheaper, lets you take photos, text, call and get free apps (angry birds) i'm sticking with an android.