How to compile python script to binary executable

Or use PyInstaller as an alternative to py2exe. Here is a good starting point. PyInstaller also lets you create executables for linux and mac… Here is how one could fairly easily use PyInstaller to solve the issue at hand: pyinstaller oldlogs.py From the tool’s documentation: PyInstaller analyzes myscript.py and: Writes myscript.spec in the same folder … Read more

Difference between CC, gcc and g++?

The answer to this is platform-specific; what happens on Linux is different from what happens on Solaris, for example. The easy part (because it is not platform-specific) is the separation of ‘gcc’ and ‘g++’: gcc is the GNU C Compiler from the GCC (GNU Compiler Collection). g++ is the GNU C++ Compiler from the GCC. … Read more

How do I get Windows to go as fast as Linux for compiling C++?

Unless a hardcore Windows systems hacker comes along, you’re not going to get more than partisan comments (which I won’t do) and speculation (which is what I’m going to try). File system – You should try the same operations (including the dir) on the same filesystem. I came across this which benchmarks a few filesystems … Read more

Is it feasible to compile Python to machine code?

As @Greg Hewgill says it, there are good reasons why this is not always possible. However, certain kinds of code (like very algorithmic code) can be turned into “real” machine code. There are several options: Use Psyco, which emits machine code dynamically. You should choose carefully which methods/functions to convert, though. Use Cython, which is … Read more

IntelliJ IDEA 13 uses Java 1.5 despite setting to 1.7

Please check your project/module language levels (Project Structure | Project; Project Structure | Modules | module-name | Sources). You might also want to take a look at Settings | Compiler | Java Compiler | Per-module bytecode version. Set also this: File -> Project Structure -> Modules :: Sources (next to Paths and Dependencies) and that … Read more

Cross compile Go on OSX?

With Go 1.5 they seem to have improved the cross compilation process, meaning it is built in now. No ./make.bash-ing or brew-ing required. The process is described here but for the TLDR-ers (like me) out there: you just set the GOOS and the GOARCH environment variables and run the go build. For the even lazier … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)