Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, January 7, 2014

Freemind Latex Plugin Installation

If you want to display latex formulas on your Freemind mindmap, here are the instructions:

  1. Find your freemind dir (/usr/share/freemind)
  2. sudo mkdir /usr/share/freemind/plugins/latexmath
  3. Checkout/Download https://github.com/Alxa/LaTeXMath-Freemind-Plugin/
  4. Read: https://github.com/Alxa/LaTeXMath-Freemind-Plugin/blob/master/INSTALL
  5. sudo cp fm-plugin-latexmath/src/main/resources/LaTeXMath.xml /usr/share/freemind/plugins/
  6. sudo apt-get install maven2; cd fm-plugin-latexmath; mvn package
  7. See and copy jar file in target folder. sudo cp fm-plugin-latexmath-* /usr/share/freemind/plugins/latexmath/
  8. sudo cp ~/.m2/repository/net/sf/alxa/jlatexmath/0.9.3-SNAPSHOT/*jar /usr/share/freemind/plugins/latexmath/jlatexmath.jar

Start freemind and you'll see Insert->Latex Equation option.


Note that this does not insert the equation into the branch, but inserts below it and it's a little large.Sample below:


Tuesday, December 17, 2013

Can't update wordpress on Ubuntu

I had a wordpress installation on an Ubuntu 13 machine but was unable to update the wordpress. I thought it was due to rwx permission problems but it turned out it was not.

The wordpress folder should be of group "www-data" if you're using apache. Apache by-default runs with www-data group and user. So if your wordpress folder does not belong to this group, apache can not copy the newer version in this folder so it says "I could not update."

I found the solution by following the inverse of the instructions here ( stylishjm at the bottom ).

She said we could change the user and group of apache to our own username but that cause some other problems since it caused:
 ... waiting /var/lock/apache2 already exists but is not a directory owned by "username"

So instead of changing apache's username, I changed the group of wordpress folder:

chgrp -R www-data wordpress

Hope that helps.

Friday, May 31, 2013

File icon extensions (emblems) like of Dropbox

I have been wondering how Dropbox could put a icon on the file indicating it's synchronizing or synchronized. I digged its code and the files of gnome itself and found the way for that.

You can find some examples for these icons in /usr/share/icons/gnome/scalable/emblems/ which belongs to Gnome.

If you want to have a custom icon, then you can put your files in /usr/share/pixmaps

An example filename: emblem-my-synced-symbolic.svg

I had the impression that the file name should start with emblem but I'm not really sure.

After having your file in /usr/share/pixmaps, you can activate this icon for a file:

gvfs-set-attribute -t stringv /home/emre/sample.txt metadata::emblems 'my-synced-symbolic'



Now your file has the svg icon on it.