cooking, programming and everyday life xrado

Thursday, December 11, 2008

pyGtranslator - GUI tool for Google translate

Update:new version pyGtranslator 0.5 avalible
I've been playing with python these days. I made a small GUI tool that brings Google translate to your desktop. Application was easy to code, although I use python occasionally  (wish I could more and learn it better), but want it to make it run on both linux and windows. That took me quite more time. I almost gave up with py2exe and building windows executable, but after hours of googling and trying I figure out that I have to set environmental path to GTK runtime libs. I also made packages for two my favourite linux distros Zenwalk and Ubuntu. pyGtranslator can be improved and also "suggest a better translation" is missing, but that's maybe for late updates, if the need shows. I hope it works for you, otherwise let me know.


pyGtranslator on GitHub



Linux (require python, gtk, pygtk)
- ubuntu / debian: pygtranslator_0.1-1_i386.deb
- zenwalk: pygtranslator-0.1-noarch-54.1.tgz md5 dep

Windows (require GTK2 runtime)

Saturday, November 15, 2008

Cauliflower sandwich filling

This is actually an mix of cooked cauliflower and some seasoning with almonaise (almond mayonnaise)... yummy bread spread. A real favorite!

imageAlmonaise ingredients:
  • 1/2 cup blanched almonds
  • 2-3 tablespoons extra virgin oil
  • 2-3 tablespoons fresh lemon juice
  • 1/2 teaspoon of salt
  • small garlic (optional)
  • salt free seasoning  (optional)
  • pepper to taste

First, blend almonds to powder and then mix all together in a mixer. Add some water if too dense and mix until a thick cream forms.

OK now that we have the almonaise, we just need a small cooked cauliflower and parsley or oregano for seasoning. Mix all together in slower mixer (if possible), otherwise it will become too creamy.

Here it is...  Bon app├ętit!

Monday, October 27, 2008

FireSpider extension for Firebug

FireSpider is a an extension for Firebug that can help you find broken or misleading urls and optimize your web page for search engines.

Extension enables you start and the stop the spider. After pressing the start button it fetch the current url and parses the content for new urls. Every unique url is fetch only once. It follows only the current domain urls and detects its content type. Not html content types are reported. Besides fetching, firebug panel gives you information about page title, page where url was got from, its link name and loading time. Reported are also not found urls and ones went in time out after 10 seconds. Requests are send one after another, so some sites may find it to aggressive or may detect you as a dangerous script. Be careful.


This is the first version (hope not the last) and first extension i ever made. Some things may not be very well done, but the basic functionalities are working, i think. Try it and tell me what you think. Hope you find it useful.

firespider-0.1.xpi ( download / install )

FireSpider on GitHub

Friday, October 17, 2008

firefox only includes styles form .css files

Tested with firefox 3.0.3, i don't know about previous versions. For instance, try to rename style.css to style.txt and include it into html header. Firefox show no style applied, while Internet Explorer 7 had no problems including .txt styles. I don't know why is that so, is this a bug or intended behaviour. I think that styles should be included regardless file extension, otherwise header link tag type=text/css have no meaning.

Thursday, August 14, 2008

firefox & opera and blinking web pages with embeded flash

I don't know if this only happens in FF3 and Opera 9.5 or even in earlier versions, but when you are clicking on web site with embedded flash the whole site blinks, like it is redrawn again. If i describe you in a slow motion, it first shows the white background and then the page. For instance, open youtube and try clicking on videos thumbnails on a side. Do you see the blinking? This must be some kind of browser or maybe even flash bug, because IE and Safari are rendering pages just fine. Its also interesting that this only happens on windows, meanwhile same browser in linux rendering just fine. Tested with firefox 3.0.1 and opera 9.5 and flash player 9.0 r124.
pages:  1   2   3