How do I fix “Undefined variable” error in PHP?

Today, I have started to learn PHP. And, I have created my first PHP file to test different variables. You can see my file as follows. I have found the following errors when I have run this file in the browser. Notice: Undefined variable: x in /opt/lampp/htdocs/anand/php/index.php on line 19 Notice: Undefined variable: y in … Read more

What causes java.lang.IncompatibleClassChangeError?

This means that you have made some incompatible binary changes to the library without recompiling the client code. Java Language Specification ยง13 details all such changes, most prominently, changing non-static non-private fields/methods to be static or vice versa. Recompile the client code against the new library, and you should be good to go. UPDATE: If you publish a public library, … Read more

‘int’ object has no attribute ‘__getitem__’

The error: means that you’re attempting to apply the index operator [] on an int, not a list. So is col not a list, even when it should be? Let’s start from that. Look here: Use a different variable name inside, looks like the list comprehension overwrites the col variable during iteration. (Not during the iteration when you set col, but during the following … Read more

‘int’ object has no attribute ‘__getitem__’

The error: means that you’re attempting to apply the index operator [] on an int, not a list. So is col not a list, even when it should be? Let’s start from that. Look here: Use a different variable name inside, looks like the list comprehension overwrites the col variable during iteration. (Not during the iteration when you set col, but during the following … Read more

WindowsError: [Error 193] %1 is not a valid Win32 application in Python

I wish to import liblas module in Python 2.7 on window 64bit. If I import the module with IDLE (Python GUI) I have no problem. If I use PyScripter “PyScripter-v2.5.3-x64-Setup.exe” I get this error message. I have used liblas in PyScripter many times without problem and right now I can load all standard modules (e.g.: numpy, GDAL, etc.), but … Read more