Setting LD_LIBRARY_PATH from inside Python

Your script can check for the existence/properness of the environment variable before you import your module, then set it in os.environ if it is missing, and then call os.execv() to restart the python interpreter using the same command line arguments but an updated set of environment variables. This is only advisable before any other imports … Read more

Creating icon fonts with vector software (i.e. inkscape) and fontforge?

I’ve successfully created a few icon fonts for my websites and the Inkscape FontForge approach as outlined in this how-to is pretty solid, and if you’re used to using software such as Inkscape, it’s also pretty easy too. Here’s the steps I take: Preparation (using Inkscape in this example) Open the Inkscape document that holds … Read more

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