Some time ago I’ve noticed that the tabbar in gedit would always be there, even when there’s only one file open in a window, and the “remove tabbar” plug-in won’t help either. Until I stumbled upon this post mentioning the all fameous LaTeX plug-in to be responsible for that. And in fact, that was it! For some reason, the LaTeX plug-in will make the tabbar always show up. Looking into this now, probably just a small change to that plug-in… or maybe it has even been fixed in the latest code.
Archiv für die Kategorie „Linux“
(English) Hiding the gedit tabbar
Donnerstag, 8. September 2011(English) Sort products by colour in web shops
Mittwoch, 4. August 2010Many on-line shop systems, like Magento, Prestashop or xt-commerce, lack the ability to automatically sort products by colour.
In order to solve this, I wrote a little python script that transforms the average colour of a product image into a scalar, then generates a CSV file including the colour value in some property, allowing it to be sorted easily by the web shop system of your choice. Images with many different colours are not sorted very well, but it worked for most of the products in my case.
You can see the script in action at shop.paramentextil.de. It generates a CVS file which can be imported by most e-commerce systems. You will certainly have to change the script to your needs, but this should be easy to do even with little programming experience. Changing the sorting mechanism may also be appropriate in some cases. Enjoy. (weiterlesen …)
Wie blendet man die Symbolleiste der LaTeX-Erweiterung von Gedit aus?
Dienstag, 5. Mai 2009Einfach und schnell geht das so: Man bearbeite die Datei der Erweiterung decorators.py, zum Beispiel mit
sudo nano /usr/lib/gedit-2/plugins/GeditLaTeXPlugin/src/base/decorators.py
oder je nachdem, wo es installiert ist, eben woanders. Um die Zeilen 307-310 müsste der Quelltext folgendermaßen angepasst werden (die Bedingung habe ich auskommentiert):
# FIXME: a hack again...
# the toolbar should hide when it doesn't contain any visible items
#if extension == ".tex":
# self._toolbar.show()
#else:
self._toolbar.hide()
Scheint ohnehin ein unsauberer Quelltext zu sein. Diese Gedit-Erweiterung wurde wohl gerade erst umgeschrieben. Nun ist man die LaTeX-Symbolleiste jedenfalls los.