ChrisHunter 152 Posting Whiz in Training Featured Poster

When I interviewed for my job I went into the interviews I convinced myself I didn't want the job so that I wouldn't feel as nervures but still give the best possible interview I could. Don't be over confident but make sure you self yourself as a confident programmer and peerson in general.

I interviewd for a position about 6 months ago and they said they love me as a person and what i could do but I didn't praise the company enough, so make sure you do your research on the company and ask questions about things like staff turn-around, staff development schemes, technologies you'll be using (other then C# .NET) and are there any plans to move into different technologies in the future.

Luckily enough for me, not getting the job mentioned above meant I was able to interview for my current position which is exactly what I was looking for and I'm lucky enough to be working with a really good development team.

ChrisHunter 152 Posting Whiz in Training Featured Poster

Unfortunatly the majority of the unfinished threads tend to stem from people who want their assignments doing for them without having to learn or do anything themselves, even if it's just Googling it. So they usually abandon the post when they realise they're not getting spoon fed.

It's a shame because it seems to have gotten worse over the last 6 months and puts people off posting here or geniune threads get buried in the mess, I know I post less because of it.

Sometimes poeple figure it out for themselves and don't post their solutions (i might have done that in the past).

ChrisHunter 152 Posting Whiz in Training Featured Poster

"There's nothing more frightening then driving with a live goddamn cougar next to you"

"Well let me just quote the late-great Colonel Sanders, who said..."I'm too drunk to taste this chicken"

Both by Ricky Bobby from Talladega Nights: The Ballad of Ricky Bobby

ChrisHunter 152 Posting Whiz in Training Featured Poster

I read somewhere that the chicken evolved from a T-rex... don't know how true this is, if it is true it's quite ironic.

http://www.dailymail.co.uk/sciencetech/article-448283/Proof-fearsome-T-Rex-evolved-chicken.html

ChrisHunter 152 Posting Whiz in Training Featured Poster

Try using this:

System.Diagnostics.Process.Start("Your file path (including file name with file extention");
ChrisHunter 152 Posting Whiz in Training Featured Poster

The row and cell index's are dependent on which row and cell you want to store the value:

This is for the first cell of the first row

dataGridView.Rows[0].cells[0].value = textBox1.Text;
ChrisHunter 152 Posting Whiz in Training Featured Poster

How did you manage to get on a software engineering Masters course if you can't/ aren't really willing to engineer software?

You could do some research on mobile technology in hospitals. what research has already been done, what mobile technology is currently use and reasearch into the future of mobile technology in hospitals/ health care systems.

You could also look into other subjects such as complete cross-platform cloud based computing (things like being able run/ create/ edit the same application/ files on different platform (tables/ smart-phones/ desk-tops).

There will already be a lot of material on both subject so you should be able to find articles and white papers no problem.

ChrisHunter 152 Posting Whiz in Training Featured Poster

I think the lesson to be learned here is instead of ranting about something, calm the arrogance and simply state the issue you're faced with, if it is a pre-existing issue and ask for a possible solution (whether it be a DaniWeb issue or browser issue).

Also if all websites were the same as all other website of the same type (i.e. ecommerce, forums, video streaming), the web would be a boring place, as would the world if we all dressed the same...

On the subject of blame @riahc3 this whole article(also know as a thread) is based around you blaming DaniWeb developers for issues that only you face... you know what they say about users right ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

eradication - and by this I mean eradication of everything.

There'll be no one or nothing to fight with or over.

ROMIEO-DONE !

Ezzaral commented: That's what came to my mind as well :) +0
ChrisHunter 152 Posting Whiz in Training Featured Poster

Have a look at the links below they may be of use:

http://www.homeandlearn.co.uk/net/vbnet.html

http://howtostartprogramming.com/vb-net/

Have fun and good luck.

AndreRet commented: Thanx for being good and helpfull. :) +12
ChrisHunter 152 Posting Whiz in Training Featured Poster

Yeah just like that but you only really need to define "SQL sql;" once at the top and then just do the "sql = new SQL();" as the first line of each method (it's not essential but it's good practise to re-use variables in this way).

ChrisHunter 152 Posting Whiz in Training Featured Poster

As good practise you should have a class seperate from your interface methods (i.e. button clicks) so that they aren't as accessible and to organise your application better. Simply make another class with the connection and insert command in and simply call that from the button click events.

ChrisHunter 152 Posting Whiz in Training Featured Poster

put it in a frame at a slight angle and call it Art...

ChrisHunter 152 Posting Whiz in Training Featured Poster

It looks like it's the foreach close bracket...

Keep the positioning of your curly brackets the same, make its more readable and consistant (you have some on new lines and some at the end of lines).

ChrisHunter 152 Posting Whiz in Training Featured Poster

good for you...

ChrisHunter 152 Posting Whiz in Training Featured Poster

I did one for my final project at univercity but although it was only about 18 months ago I'm a bit rusty, i think in the context of a project (Rather than a disortation/ research) you should try to find articles and books on developments, made by others, within the area your project is for.

For example if your project is a I.M application you can review articles on how I.M applications have been developed and revolutionised, using quotes from articles on things like MSN Messanger, Skype and even BBM in you review.

I struggled to get started with my litriture review but hammered it when i got going. You've just got to think about what you want to do and what has already been acheieved in that area.

Good luck.

ChrisHunter 152 Posting Whiz in Training Featured Poster
ChrisHunter 152 Posting Whiz in Training Featured Poster

If this isn't a perfect example of someone wanting someone else to do their homework for them then I don't know what is.

Google it, the code is out there but if you're on a programming course and don't put the effort in to understand it you're going to be one of those one's that drop out. I was almost that guy until until i got my act together.

If you find the code, read it and try to do it yourself. Refer to the code for hints or if you don't understand something.

You'll find if you finish something as simple as this you feel proud and start thinking of what could be possible.

ChrisHunter 152 Posting Whiz in Training Featured Poster

Why would you be bothered by the company tracking THEIR OWN laptop ?

If the company have given you a laptop I'm guessing they gave it you to do work and not as a present for personal use. You should use the companies laptop like you would a computer in the office and if there's no inappropriate use of the laptop and you're not taking it to inappropreate places you should be fine.

ChrisHunter 152 Posting Whiz in Training Featured Poster

I have a 3Gs which I got off my sister to replace my broken toco lite and I've never been too interested in the latest phones because I'd rather go the pub and talk to a humans face but I do understand the capabilities of iPhones. However I have plenty of friends that have had the majority of iPhone models and watched from an "I'm not too fussed about any of latest phones" point of view and from here it seems as though the iPhone range does the majority of its sales due to how well Apple's marketing department sell the phone (the phrase "they could sell manor to a farmer" comes to mind). Not to discredit Apple, the iPhone is an amazing range of phones and i do like my 3Gs.

However like myself a massive percent of users will never have any use for a lot of the things the iPhone has to offer. In my personal opinion the iPhone seems to be like these "fixie" bikes, overly big glasses (sometimes plain glass or not glass in them) and geek sheek clothing that trendy London students ware (which was orignally ironicly fassionable as first but that seems to have been lost).

My point: iPhone is an amazing piece of ecuiptment but I think it's more the brand and the fact that people have spent so much on peripherals and apps, than the technology now. As HappyGeek said other handsets are available and just as good (if not better) …

ChrisHunter 152 Posting Whiz in Training Featured Poster

Your english is good. just show some evidence of having made an attemp at the problem, alot of the time you can find the answer on google. We were all new here once so my apologies for sounding rude earlier, i have replyed to your z-algorithm thread but it's in c#, it should translate across to Java easily. Also could you explain the above issue in a little more depth please, what is the progressive center-star method ? what exactly is it that your are trying to do ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

You could put each charactor of the string into separate inidex's of an array. Then you could loop through the array, storing the current and the previous array index value in separate variables to compare.

It's hard to explain and probably not the best way to do it but this is how i would do it in C# you should be able to do the same in Java quite easily (i'm not too good at Java):

        static void Main(string[] args)
        {
            // Asks for input from user
            Console.WriteLine("Please enter a sting");
            // Reads, stores and duplicates input
            char[] copy1 = Console.ReadLine().ToCharArray();
            char[] copy2 = copy1;

            // Loops through for each array index (each charactor of the input
            for (int i = 0; i < copy1.Length; i++)
            {
                // Check that arrayin length is not exceeded if 1 is added to the value of i when access array index of copy 2
                if ((i + 1) < copy1.Length)
                {
                    // The increment is done at index
                    if (copy1[i] == copy2[i + 1])
                    {
                        Console.WriteLine("The two charactors were the same");
                        Console.ReadLine();
                        break;
                    }
                }
                else
                {
                    Console.WriteLine("There were not charactor duplicates in the string entered");
                    Console.ReadLine();
                    break;
                }
            }
        }

Hope this helps, let me know if you have any problems with it.

ChrisHunter 152 Posting Whiz in Training Featured Poster

People may see this as Big Brother gone wild again but if you've done nothing wrong and have nothing to hide then you shouldn't have a problem. If you've ever been unfortunate enough to have been robbed or been the victem of a crime then you should be more than happy to help catch those responsible, whether it be by helping identify the criminal or just identifying a witness. However I could understand if a lot of people wouldn't use the app because they may know family members or friends that may be commiting crimes and may not want to be responsible for turning them in.

I've been robbed before so obviously welcome this app.

ChrisHunter 152 Posting Whiz in Training Featured Poster

I didn't add anything i just re-arranged your code.

  • You can't define a method within another method.
  • Define all class instances at the top of your class.
  • Do some googling before hand, i did when i didn't know how to use Random class instead of groveling.

Hope this helps:

        Random random = new Random();

        static void Main(string[] args)
        {            
             int returnValue = RandomNumber(5, 20);
         }

         private int RandomNumber(int min, int max)
         {            
            return random.Next(min, max); 
         }
ChrisHunter 152 Posting Whiz in Training Featured Poster

I did a quick google and found quite a lot of info on running background processes, Have a look at the two links below and see if they help at all (i typed "running background processes in C#" into google)

http://msdn.microsoft.com/en-us/library/hybbz6ke.aspx
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/26396b5e-6ebf-426a-86ae-a767719db9b9/

Hope this helps

mujtabaaain commented: actually i want to scan my files in a directory after every 10 min.... thay why my own file allocation update its information.... because when a file is moved from one folder to other or it delete then my file allocation table must be updated for every in +0
ChrisHunter 152 Posting Whiz in Training Featured Poster

Have a read through these articles about reading and writing to Xml. They are different ways of doing it but should be useful and i did it the way shown in the stack overflow link (the first one, i suggested it in my earlier reply in this thread).

http://stackoverflow.com/questions/1464557/reading-and-writing-an-existing-xml-file-c-sharp-3-0-net3-5

http://www.c-sharpcorner.com/uploadfile/SamTomato/xmlserializer-class-for-reading-and-writing-xml/

http://forum.codecall.net/topic/58239-c-tutorial-reading-and-writing-xml-files/

Also if you want help bumping with comments like the last few probably won't help. It might be a good idea to do a search on DaniWeb for reading and writing Xml because i have seen a few in the past too.

Hope this helps, let me know if you get stuck (c looks like it is a string containing the contact info).

ChrisHunter 152 Posting Whiz in Training Featured Poster

To answer your first question: No they are assigned different IP addresses. 192.168.0.1 is usually the default IP and is usually reserved for a router, the first computer connected to the router will have an IP of 192.168.0.1, the second 192.168.0.2 and i think you can guess the 3rd.

to question 2: i think you can set the IP of the web server but if you're renting one you will be given the IP i think.

to answer question 3: if external users (people not connected to your network) use the website they will access your website by typing in the website URL which references the DNS to get the IP of your webserver where the data for website is stored.

Hope this helps . . .

My answer may not be 100% correct, check other replys to confirm

ChrisHunter 152 Posting Whiz in Training Featured Poster

Next to "Logged in as" click your name and in the community contributions box click total posts. this will list all of your posts, it's a little confusing at first but they are all there

ChrisHunter 152 Posting Whiz in Training Featured Poster

This works i've tried and tested it, just put your directory in, call the method in the constructor or where ever you want and you will be good to go. (it shows the whole directors as well as the name, i don't know how to just return the name sorry).

private void locatetFiles()
        {
            listBox1.Items.Clear();

            try
            {
                foreach (string file in Directory.GetFiles(@"C:\Users\user_name\Pictures", "*.jpg", SearchOption.AllDirectories))
                {   
                    listBox1.Items.Add(file);
                }
            }
            catch (Exception e)
            {
                MessageBox.Show("" + e);
            }
        }

Let me know how you get on.

ChrisHunter 152 Posting Whiz in Training Featured Poster

Have you tried:

string variableName;

And using this in-line:

'" + variableName + "'
ChrisHunter 152 Posting Whiz in Training Featured Poster

Judging by the fact that i have pretty much given the code to go into the method and haven't shown us your code yet i'm guessing you haven't attempted this yourself and you want us to give you the code rather than doing some research on the likes of the MSDN website and attempting it yourself.

Take what Ketsuekiame and I have said so far into account and give it a go yourself first.

ddanbe commented: Helpfull! +15
ChrisHunter 152 Posting Whiz in Training Featured Poster

the pizza war

Nope the answer is the last war he fought in.

Where can I get a time machine?

a watch shop.

Why is the sun so hot ?

ChrisHunter 152 Posting Whiz in Training Featured Poster

The example you've given is fine and won't cause any problems because you've used return which will jump out of the method from that return keyword.

If you didn't have the return or break key word and just had some code like set a bool variable to true then it would continue executing the code after the if statement once the if statement is complete.

hope this helps . . .

ChrisHunter 152 Posting Whiz in Training Featured Poster

including a stint presenting a couple of TV series here in the UK.

Which TV shows have you presented ?

Sorry if that comes across wrong it is a genuine question, i live in the north west near Liverpool (I'm not a scouser) so i might have seen you on the TV before without realising.

happygeek commented: :) +0
ChrisHunter 152 Posting Whiz in Training Featured Poster

If i understand correctly you're talking about processes that don't need user input. Have a look into sequence diagrams, they are created to show the different steps of an individual (e.g. request bank statement) this link might be of use to you.

Hope this helps.

ChrisHunter 152 Posting Whiz in Training Featured Poster

In future just boost your orignal thread instead making a duplicate with a crap name.

This will get the windows identity of the machine it is executed on but make sure you add the using System.Security.Principal library.

public void getName()
        {
             // Retrieves and stores WindosIdentity in textBox1
             textBox1.Text = WindowsIdentity.GetCurrent().Name.ToString();
        }

As for the password i coulden't find out how to do it when i did a project which required it so let me know if and how you manage it.

ChrisHunter 152 Posting Whiz in Training Featured Poster

Have you tried doing SELECT DISTINCT ? i've had this proplem in the past and i think i used SELECT DISTINCT.

ChrisHunter 152 Posting Whiz in Training Featured Poster

Glad i could help.

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

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

Take a look as this and this they might be of some help

ChrisHunter 152 Posting Whiz in Training Featured Poster

I agree with skatamatic, regions are greate for when sharing works with co-workers, means that you can label a section of code collaps it, makes your code look cleaner and a little less over-whelming to others.