- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 10
- Posts with Upvotes
- 8
- Upvoting Members
- 8
- Downvotes Received
- 15
- Posts with Downvotes
- 10
- Downvoting Members
- 11
126 Posted Topics
Re: So, either your lazy and can't be bothered to do the program for yourself OR you haven't been paying enough attention in class because from my experience, they wouldn't give you a task without teaching it. | |
Hey, I'm trying to work on a project that asks a question and tyhen give three possible answers. The problem is that I want the answers to be in random places.. So like the answer could be in in the second place 1 time and at the top again. I've … | |
Okay, I created an application that used SQL. It works perfect on the computer that I compiled it on, but, when I release the application it shows an error like: "Cannot open this application, missing components" ... Also, on the computer I compiled it on, it shows the database file … | |
Hello, I'm a little confused about something.. Is association the same as Interfaces in C#? Thanks :) | |
Hello, I'm trying to create a script where when a user clicks on a button, it will send them an email.. The code compiles, however, when I click on the button it says "Failure sending mail" Here is the code: [code] private void button1_Click(object sender, EventArgs e) { string mailServerName … | |
Re: Hey.. In order to do this, you're going to have to use some form of storing, whether it be a datafile or a database. Remember, to use a localised database rather than a hosted one. Show the code (If you have any) | |
Hello,I have a function that draws a rectangle on a form (different widths and heights) [code] public void drawRectangle() { Graphics g = pictureBox1.CreateGraphics(); Rectangle rect = new Rectangle(50, 50, 60, 50); g.DrawRectangle(Pens.Black, 10, 10, 10, 10); } [/code] I have a picturebox called picturebox1 but how would I get … | |
Hey, I would like to show a prompt when a user clicks on the "X" button on my form, but it doesn't seem to be working.. Here is the code: [code] private void Form_FormClosing(object sender, FormClosedEventArgs e) { if (e.CloseReason == CloseReason.UserClosing) { MessageBox.Show("YES"); } } [/code] Any ideas? | |
Hello, I have a few checkboxes thatwhen you check them, they set a varible to bool. For example, if someone selected that they want to see a square it would then change the bool "square = true" however, when someone unchecks the checkbox, I want the boolen to go back … | |
Hello, I'm really confused.. If I have a string in Java, let's say "Phillip" and I wanted to store this in an array... e.g. [code] name[] = { "P", "H", "I", "L", "L", "I", "P } [/code] would I use a for loop for the string? Helo? | |
Hello, I'm trying to create an application that when you click on a button, it just displays a string but it doesnt work. Here's the code: [code] import java.io.*; import java.awt.*; import java.applet.Applet; import java.awt.Graphics; import java.awt.event.*; public class main extends Applet { TextField input; Button convert; public void init … | |
Hello, Does anyone know how to set the text colour but for a specific character? E.g. If I enter "Phillip" I want it to display: P[COLOR="Green"]H[/COLOR]illip So that just 1 character is coloured? Heres the code I've written: [code] public void paint(Graphics g) { String elements; elements = nameField.getText(); char … | |
Hello, I have a calculator that has a set of memory buttons that I want to store the result of a calculation in.. Here is the code: [CODE] ActionListener memPadListener = new ActionListener() { @Override public void actionPerformed(ActionEvent e) { String memOperator = e.getActionCommand(); double numForMem = 0.0; if (memOperator.equals("M+")) … | |
Hello, I'm creating a windows like calculator using Java, I seem to be having some problems.. It will let me calculate two numbers together e.g. 2 + 2 (It will display 4) however, if I want to do multiple calculations... e.g. 2 + 2 + * 3 It will only … ![]() | |
Hey, Does anyone know what a plain text substitution might be? For example, If I had to find the plain text substitution of "Hello World" would I count the characters? I'm really confused, anyone have any ideas? Thanks :) | |
Hello, I have two forms (Main, Login) when the user logs in and has the right email / password.. I would like it so I can display the username on the main screen.. I have a class and I'm setting the values inside the class however when I try to … | |
Hello, I'm trying to crate a login form that basically logs users in.. Now, I have created the database, and queried the table to see if the user exists.. But how do you check if the query returns whether it is or not? E.g. in PHP you'd use like.. [CODE] … | |
Hello, I'm creating a project in C# that requires me to use access a remote MYSQL server.. I have an online hosting account, that is hosting the database HOWEVER, i don't know how to access it.. In the 'Remote MYSQL' part of the site it just has this: 192.168.1.% So … | |
Hey, I have a problem.. I'm working on my final project and wanting to do some database intigration, now I have chosen MYSQL to do it in, however, when I try and create a database (locally) it won't let me connect.. This is annoying! So, is there any way that … | |
Hello, I am trying to connect to a database "database1" using C#, however, everytime that I try to connect I get this error: [I]Unable to connect to any of the specified MySQL hosts.[/I] This is the code that I am using to connect to database1 [code] string connString = "Data … | |
Hello, I'm doing my final project and I'm thinking about creating an application that is user based.. A user can login (See their score etc) and also register if they haven't got an account yet.. I'm thinking about doing this using SQL and I haven't really done it before, other … | |
Hello, I'm working on a project that once ran (the main window) becomes maximised and then another window (Form2) pops up allowing the user to login OR register. I have created the main project and added a form (called form2) but when I try to display Form2 when Form1 loads … | |
Ok, I have a slight problem.. I know that Binary is a base 2 system (1, 0) I know decimal is a 10 base number (1, 10) But I need to know which number system has a base of 7? Thanks in advanced! | |
Okay, I'm confused right.. I have been given three values (0 0 1) which is three inputs, but what operator would I use? Like, AND, OR, or NOT? I have tried to use an AND gate but it doesn't help. Also, i'd only need THREE inputs (switches) right? Regards | |
Hey, I'm looking for some help and advice on set theory. Is set theory like arrays in C# and C++ for example? Like: [CODE] S = {1,2,3,4,5,6} // is a set of integers [/CODE] But how do you access each member? For example, in C++: [CODE] cout << S[1]; // … | |
Hello there, I'm working on a project and for this I'm using classes, in my main I'm using an array of objects. When I compile it, it works fine, but when I try to enter values, it displays this message: "Exception in thread "main" java.lang.NullPointerException at main.main(main.java:25)" Here is my … | |
Hello, I'm trying to open a file from a folder called "Assginement" however, when the program get's released, it might not be in a folder called this. What could I do? I've tried everything. The other problem is that it creates a file a file, and places it within the … | |
Hey, I'm trying to download a file from the internet and save it to my desktop.. The code compiles but at runtime it does not download the file: [CODE] try { WebClient fileDownloader = new WebClient(); fileDownloader.DownloadFile("http://www.google.com/logos/2010/lebanonind10-hp.jpg", "/Users/p/Desktop"); } catch(Exception ex) { Console.WriteLine ("The file cannot be downloaded!"); } [/CODE] … | |
Hello, Right, basically I'm trying to write some HTML to a file, now the problem is that I do not want to write the whole of the HTML in the C# program, incase I ever need to change the HTML file. All I want to do is change a few … ![]() | |
Hey, I have a function that replaces a string within a file: [code] public static void WebPage(int gradeA, int gradeB, int gradeC, int gradeD, int gradeE, int gradeF) { // read the HTML file TextReader webpage = new StreamReader ("/Users/Desktop/Assignment/webpage.html"); string LookUp; while ((LookUp = webpage.ReadLine()) != null) { string … | |
Hey, I'm working on a project that writes some HTML code to a file and then opens the file up. Now, there is a lot of HTML code and I don't really want to write it all into my C# program, because I may need to change the HTML in … | |
Hey, I'm working on this project and I need to know how to use global variables, basically, I have three functions, one of which sets the data for the other functions to use. In my main, I want to call all these functions to work. [CODE] using System.IO; using System; … | |
Hey, I'm working on a project in C# and whenever I try to input an integer it displays the entered amount three times! [CODE] using System; namespace Welcome { public class MyProgram { public static void Main(string[] args) { int choice = 0; Console.WriteLine ("Please enter a number:"); choice = … | |
Hey, I'm working on a project and require some help. I have two tables in the same database and I want to query each table using the ID just using one query. It works but it displays the same information more than once even though there is only one entry. … | |
Right this is stressing me out! I'm trying to connect to my gmail account through my website and I'm using this: [code] <?php $server = "imap.gmail.com"; $user = "user@gmail.com"; $pass = "pass"; $conn = @imap_open("\{$server:993/imap/ssl}INBOX", $user, $pass) or die("Connection to server failed: ". imap_last_error()); ?> [/code] (obviously with my own … | |
Re: [quote]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\webpage\index.php on line 15 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\webpage\index.php on line 16 [/quote] Make sure you have the correct details for the MYSQL database. [quote] Warning: Cannot modify header information … | |
Hey, I'm trying to implement an email system.. I'm just wondering whether it's possible that when the user registers it creates an email address like: username @ mydomain.com If you understand? Thanks for any help :) | |
Re: Hello, Sadly, you won't actually get your work done for you. This is really simple though. I'll give you some steps, this should help: >> Create a table called 'Comments' [code] comments.php <?php // connect to the database $id = $_GET['id']; // get the news id, passed through the URL … | |
Re: Hey, You should really put any code you post in tags. [half asleep, sorry] | |
Re: I don't understand how you mean but: [code] int main() { insertAtRear(1, "s", "n"); } void insertAtRear(int i, string s, string n) { for(int o=0; (o < 100); o++) { cout << o << ": " << i << s << n << endl; } } [/code] I dunno though! | |
Re: So basically, if I'm not mistaken you would like to create a dynamic table showing all of the users? [code] <?php ob_start(); $con=mysql_connect("10.70.1.50","invensis","invensis"); if(!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("database_myproject",$con); $query= mysql_query("SELECT * FROM users where reportingto='$username'"); echo '<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 500px"> <tr> <th>userid</th> … | |
Just to clear something up really. You cannot decrypt MD5 through code can you? e.g. If I encrypted a whole document in MD5 it would be pretty hard decrypting it where as if I used MD5 for a password I could by changing the string that I was checking it … ![]() | |
Hey, I'm writing this report and I'm writing about variables.. I'm just checking to see if this is a good description: [I] Variables are used in programming to allocate specific memory locations for data, Variables enable the programmer to give a specific name to where the information is stored in … | |
Hey, I'm creating a usersystem that has a profile system. I'm stuck on a problem. I want the profile to be viewed by a url like: [url]www.mysite.com/member/phillip/[/url] So every time someone registers it automatically creates this folder. The problem that I'm having is that I need to place an 'index.php' … | |
Hey, I was just wondering, is it possible to create an application in C++ that once you dropped something onto it i.e a text file it would then upload to a server. For example: [code] // application checks to see if something has been dropped // get the name and … | |
Hey, I'm to work on GUI interfaces with C++ but I have loads of classes that I want to use, will I have to re-code the whole classes or can I still use them? + Are they hard to implement and use? Thanks | |
Ok, I'm doing my course work and I've managed to get it so that the menu will only show values if they've been entered, for example: [code] if number_of_employees is 0 then display add employee otherwise display add employee display view employee endif [/code] The problem that I'm having is … | |
Hey, I'm wondering if this is possible. I store customers in an array: [code] string customer[10]; customer[1] = "Phil"; [/code] But I have a menu, that has things like [INDENT]1. Display customers 2. Add customers[/INDENT] The thing I want to do is not show the 'Display customers' if there has … | |
Hey I'm trying to display this: [code] echo "<a href="javascript:createBBtag('[bold]','[/bold]','txtA')"><strong>B</strong></a>"; [/code] It gives errors though! Is there a way around it? Thanks :) | |
Which introduced OOP in their operating systems first? For example, I'm working on an assignment and writing about OOP and I'm going to say something like: "Microsoft, introduced OOP on their operating system first unlike Apple. This meant that the programming of the software became much cheaper to programme because … ![]() |
The End.