Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K

18 Posted Topics

Member Avatar for MUFC4life

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 : …

Member Avatar for 15uck
0
137
Member Avatar for lagspike

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 …

Member Avatar for lagspike
0
274
Member Avatar for Simplicity.

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.

Member Avatar for Simplicity.
0
148
Member Avatar for greatmind

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).

Member Avatar for lagspike
0
108
Member Avatar for maheshshinde

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 …

Member Avatar for lagspike
0
111
Member Avatar for kamotekid08

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 …

Member Avatar for lagspike
0
91
Member Avatar for nukabolhi

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 …

Member Avatar for lagspike
0
914
Member Avatar for pooja bhatt

hi, please see [URL="http://www.daniweb.com/forums/thread230284.html"]this thread[/URL], which is quite similar.

Member Avatar for pooja bhatt
0
116
Member Avatar for lagspike

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 …

0
121
Member Avatar for lagspike

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 …

Member Avatar for lagspike
0
224
Member Avatar for Acute

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. …

Member Avatar for ddanbe
0
721
Member Avatar for Bold Eagle

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.

Member Avatar for lagspike
0
279
Member Avatar for happygeek

i always thought loading something on a virtual machine is safer if you want to run a program that might be infected with viruses.

Member Avatar for happygeek
0
619
Member Avatar for lagspike

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 …

Member Avatar for serkan sendur
0
141
Member Avatar for plastered

double click the background of the task manager. Hiding everything is a pretty stupid feature, but i guess it's there for a reason.

Member Avatar for plastered
0
131
Member Avatar for camykamani

[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 …

Member Avatar for lagspike
0
147
Member Avatar for lagspike

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

Member Avatar for lagspike
0
49
Member Avatar for sarganaa

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 …

Member Avatar for sarganaa
0
2K

The End.