How do I fix a NoSuchMethodError?

Without any more information it is difficult to pinpoint the problem, but the root cause is that you most likely have compiled a class against a different version of the class that is missing a method, than the one you are using when running it. Look at the stack trace … If the exception appears … Read more

What does MYSQLI_NUM mean and do?

MYSQLI_NUM is a constant in PHP associated with a mysqli_result. If you’re using mysqli to retrieve information from the database, MYSQLI_NUM can be used to specify the return format of the data. Specifically, when using the fetch_array function, MYSQLI_NUM specifies that the return array should use numeric keys for the array, instead of creating an … Read more

How to draw lines in Java

A very simple example of a swing component to draw lines. It keeps internally a list with the lines that have been added with the method addLine. Each time a new line is added, repaint is invoked to inform the graphical subsytem that a new paint is required. The class also includes some example of … Read more

How to set delay in vbscript

Work this end (XP). Create a new file, call it test.vbs. Put this in it. Run it, notice the delay before the message box is shown. Note, the number is in Milliseconds, so 1000 is 1 second.