Category Archives: Code

How to remove Wikipedia SOPA Blackout

I’m a supporter of Wikipedia. I use their data and I think it’s a great project (especially since it’s non-profit!) and I advise you to make a tiny donation once a year, every cent counts!. But anyway, since you’re here and you’re an honest user, I want to show you a quick trick to escape [...]

zope: Changing i18n domain for any view

This is the result of researching for almost two days and coming up with a two-line solution.

Cool terminal – Tilda

This is a drop-down terminal that can save you time when switching from debug console to application instance.

Zenburn color theme for gnome-terminal

I am actually quoting ynef on ubuntuforums.org. I am not very confident on information availability in forums, so I’d rather mention and copy it here.

Test object from ZODB is broken in Zope

All you Zopers out there, this is how you can test, in code, whether an object from database is broken or not:

Onkeyup ajax call speed trap

This is one good practice in using events on keyup event (when a key is released when user types in a form field). If the event is making an ajax request, this could lower the number of requests made to your web server.

Can I create classes that inherit Model classes in Django?

Yes, you can, and that is the correct way to separate extra custom logic, while still having access to specific model methods like initializer, filters, getters and save().

Scrolling to page element in JavaScript

One major issue i found in user experience is putting focus onto a new area, popped out almost out of nowhere, without bulling the user, but in the mean time letting him now an event occurred.

VLSI designs

Very Large Scale Integration is one wicked field to be studying in school. I find it very exotic to work with cmos and mask design for the layering process on the silicone waffle. Free downloads included of designs, microwind mask files and icarus verilog code.

Where is it inherited from?

When debugging in python, it’s sometimes difficult to figure out where to look for the definition of an instance method. It could be inherited from a more top level class in the inheritance tree, it may be a hook/patch or the result of acquisition.