- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
18 Posted Topics
You don't need the [icode]and 1[/icode] at the end of the while line, and you should indent anything that's within a loop. You can see things more clearly if you print the variables out in each step: [code=python] i = 1 while i < 10000 and i > 0 : …
A simple physics graph... [code=python]import pylab a_time = range(0,141,10) a_R = [3.0,2.8,2.56,2.36,2.2,2.0,1.86,1.7,1.6,1.43,1.3,1.2,1.1,1.06,0.96] for i in range(0,15): pylab.plot(a_time[i],a_R[i], 'x') pylab.errorbar(a_time[i], a_R[i], 0.5, 0.05) pylab.show() [/code] I'm guessing the [icode]pylab.plot[/icode] line isn't needed, but even with this there is nothing connecting the plots together. I'm pretty sure there wasn't anything extra needed …
Another way is to change [B]f1[/B]'s [icode]return something[/icode] into [icode]return f2(something)[/icode] But that'll only work if f1 [U]MUST[/U] call f2 after it's finished. You're probably better off using Gribouillis' way.
If you aren't familiar with programming, then the tutorials on w3schools are very useful. [URL="http://w3schools.com/php/"]w3schools.com/php[/URL]. You can also go over HTML and other languages there (should you need it).
I'll start you off, but i wont give you any 'complete code'. If you don't know much about PHP or MySQL, read these tutorials before continuing: [URL="http://w3schools.com/PHP/php_mysql_intro.asp"]http://w3schools.com/PHP/php_mysql_intro.asp[/URL] You'll first want to connect+select a database, then use an [URL="http://w3schools.com/sql/sql_select.asp"]SQL SELECT[/URL] query to get the data. The easiest way to print a …
First you have an [URL="http://w3schools.com/html/html_forms.asp"]html <form>[/URL], which sends data as variables to a PHP file which will [URL="http://www.w3schools.com/php/php_ref_mysql.asp"]connect to a database[/URL] and [URL="http://w3schools.com/sql/sql_insert.asp"]insert the data[/URL] into it. I'm not exactly sure what you mean by notepad, but I guess you either want to [URL="http://php.about.com/od/phpfunctions/g/fopen_php.htm"]open[/URL] or [URL="http://php.about.com/od/advancedphp/ss/file_write_php.htm"]create[/URL] text files. Click on …
First set it so you can have GET variables so you can get different items depending on that variable (like [icode]/page.php?sport=3[/icode]) and make your SQL query have [icode]$_GET['sport'][/icode] at the end (instead of '2'). To add the combo box, you can do another query to get every item in the …
hi, please see [URL="http://www.daniweb.com/forums/thread230284.html"]this thread[/URL], which is quite similar.
I came across this application called [URL="http://www.eziriz.com/dotnet_reactor.htm"].NET Reactor[/URL] and this text was very interesting, "In combination with the Native EXE File feature and NecroBit, .NET Reactor is able to convert managed methods into REAL x86 native code." I guess it works a bit like a compiler? I tried this with …
I have a program which connects to a remote MySQL Server. When i try running the program on other PCs (ones with nothing more than the .NET Framework) I tried using ODBC, which would run the program, but not be able to connect to the database because of the lack …
Add a timer using the toolbox, then in the timer tick, make it clear the screen and redraw the rectangle. You can use arrays to store position/size values, and a for loop to go through each item in the array. You can use Timer.Interval to change the delay, in milliseconds. …
You could edit the table so it has a default of an empty string instead of null, [B]or[/B] use a try/catch method inside a loop, leaving the array item as an empty string for that index, which will work unless you need to distinguish between null and empty string.
i always thought loading something on a virtual machine is safer if you want to run a program that might be infected with viruses.
I'm using this code to colour individual items in a listbox, but the problem i am having is it colours all previous items with the new colour. How can i colour each induvidual item without this happening? Here is the code I'm using: (_colour is a global int) [code=c#]private void …
double click the background of the task manager. Hiding everything is a pretty stupid feature, but i guess it's there for a reason.
[B]First, read this: [/B][URL="http://www.daniweb.com/forums/announcement58-2.html"]http://www.daniweb.com/forums/announcement58-2.html[/URL] Now, here's a few tips to get started: Instead of trying to connect to databases straight away, if you are new to VB.NET, try making a 2-dimensional array (username and password only), then expand it to suit your needs. You will have to search the array …
hey world, im studying computing in A-Level, hoping to do it in university too. i'll be around the VB.NET and C# programming topics (i prefer C#) i hope this site will be a great resource.. -- lagspike
This stores a text box to a global string s, then clears the textbox. (Assuming you have a button named button1 and a textbox named textBox1) [code=c#] string inputstring; private void button1_Click(object sender, EventArgs e) { inputstring = textBox1.Text; textBox1.Clear(); } [/code] If you want the button to work for …
The End.
lagspike