Skip to main content

Posts

GeoNetwork 3.2.0 is Released

GeoNetwork 3.2.0 is release! See the release notes here . This release requires the use of Java 8, and is compatible with both Oracle JDK and Open JDK. GeoServer is updated to 2.9.0.
Recent posts
Mathjax can help you to embed LaTeX style math formula in you web content. To get MathJax to work in Blogger, just go to your Blogger account, click "Design" (top right of the page), and then "Edit HTML". After the first  <head>  you see, paste      < script src=' http://cdn.mathjax.org/mathjax/latest/MathJax.js' type='text/javascript ' > MathJax . Hub . Config ({ HTML : [ "input/TeX" , "output/HTML-CSS" ], TeX : {  extensions : [ "AMSmath.js","AMSsymbols.js" ],  equationNumbers : { autoNumber : "AMS" } }, extensions : [ "tex2jax.js" ], jax : [ "input/TeX" , "output/HTML-CSS" ], tex2jax : { inlineMath : [ [ '$' , '$' ], [ "\\(" , "\\)" ] ], displayMath : [ [ '$$' , '$$' ], [ "\\[" , "

Change Python Search Path

modify python search path https://docs.python.org/2.7/install/#inst-search-path Site-specific configuration hook  https://docs.python.org/2.7/library/site.html#module-site http://stackoverflow.com/questions/8248397/how-to-know-change-current-directory-in-python-shell You can use the os module. >>>  import  os >>> os.getcwd()  '/home/user'  >>> os.chdir( "/tmp/" ) >>> os.getcwd()  '/tmp'   But if it's about finding other modules: You can set an environment variable called PYTHONPATH, under Linux would be like export PYTHONPATH=/path/to/my/library:$PYTHONPATH   Then, the interpreter searches also at this place for imported modules. I guess the name would be the same under Windows, but don't know how to change. edit 1 Under Windows:   set PYTHONPATH=%PYTHONPATH%;C:\My_python_lib   (taken from  http://docs.python.org/using/windows.html )     edit 2 And even better: use virtualenv and virtual

Resource in Static Library using Qt

If you will use resources in a static library, you have to initialize it first, like following:  http://qt-project.org/doc/qt-4.8/resources.html   int main(int argc, char *argv[])   {       QApplication app(argc, argv);        Q_INIT_RESOURCE(graphlib);       ...        return app.exec();    }