In case you need a quick way of getting rid of spammers on your apache server, use this method as a temporary solution until you find a better one.
Please take not that it will evaluate EVERY SINGLE REQUEST through a Deny policy in Apache's mod_access - it does not …
Read the rest of this entry »THIS DOES NOT WORK WITH APACHE SINCE IT DOES NOT USE /etc/hosts.deny - See this post instead
Use the following Python script to maintain a file in the hosts.deny syntax so that your Debian/Ubuntu box (or other Linux server) is kept undisturbed by forum spammers -- COMPLETELY undisturbed, as the …
Read the rest of this entry »BitCoin is a free and open currency that will exist safely and decentralized online. Read about it.
This method is reported to work on 10.04 (Lucid), and I can confirm that it works on 10.10 (Maverick). I don't yet know about 11.04 (Natty).
Open a terminal
Type:
sudo apt-add-repository …
Read the rest of this entry »
I have been hunting spontaneous crashes with errors from the C GTK libs. The errors looked somewhat like these:
Warning: g_object_ref: assertion `G_IS_OBJECT (object)' failed
gtk.main()
Warning: instance of invalid non-instantiatable type `AtkSelection'
gtk.main()
Warning: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
gtk.main()
(...)
Warning: instance of invalid non-instantiatable type `'
gtk.main() …
Read the rest of this entry »
If you are trying to disable an Upstart script (something that can be started/stopped with "sudo start/stop service-name") , you should really use the method described by Luis Alvarado on AskUbuntu. Please use this to avoid editing scripts that are actually maintained in …
Read the rest of this entry »Eggplant community open source project that I've participated in since early days. A direct market between biodynamic food coops and growers.
Kolibri Next-gen offline learning software for distributing interactive learning materials through an extremely flexible platform for all kinds of contexts.
KA Lite a stand-alone offline solution for interactive Khan …
Read the rest of this entry »Often the Django Admin should look a little different for the sake of your users or for the sake of yourself (running multiple django sites with identical looks and titles can be such a pain). Often users don't know what Django is, and it takes ages to explain, and even …
Read the rest of this entry »In the Django documentation we see the following:
When you're manually logging a user in, you must call authenticate() before you call login().
That's all really nice, because it makes sure that all your authentication backends are tried out; but if you want a really quick remedy for getting the …
Read the rest of this entry »I have a feedback tab that's blocking vital content on a website. Here's how to alter the style of the Uservoice Feedback Tab -- for instance the vertical offset: You have to insert this AFTER your widget js code, so that it will effectively overwrite the CSS declarations generated by …
Read the rest of this entry »Here's a simple addition to markItUp, that will prompt the user for a footnote number, a footnote text and then insert the number after the selection and the footnote text at the end of the full text. As handy extra feature, the plugin will save the previous entered footnote and …
Read the rest of this entry »UPDATE! This is going to be redundant in Django 1.2, in which you can add DATE_FORMAT to your django.po files.
I've often been frustrated that using settings.DATE_FORMAT does not give a localized date. Granted that the name of a month may be localized, but the format string does not change. …
Read the rest of this entry »It was bothering me that all the wikis I tried, all had either errors, feature lacks, too many dependencies or were simply unmaintained. So I decided to create yet another one. Curiously, the third hit when googling 'django wiki' is Create a wiki in 20 minutes. Luckily that's not …
Read the rest of this entry »DPH is a work-in-progress, and not everything is yet easy to realize. But you should still prepare yourself as a Haskell programmer, because this is really where Haskell can set off into uncharted areas of popularity and innovation.
As an exercise for a programming course, I developed a spell …
Read the rest of this entry »There's still some work to do on the full screen plugin for Rhythmbox, but the current version is very usable indeed. The latest addition is scrolling by hovering the track list.
I changed the display from a normal fixed table with 3 tracks to a gtk.Layout with a gtk.VBox containing …
Read the rest of this entry »PROJECT MOVED!!
http://code.google.com/p/rhythmbox-fullscreen-plugin/
Thanks to everyone for feedback! I've moved the project and encourage all you python geeks out there to submit patches or join the team!
This python plugin gives you a stylish full screen window usable for parties etc. Still in its early stages it currently enables:
Pulsating …
Read the rest of this entry »Sometimes it's an improvement and sometimes it's an over-commercialized pile of crap. Whatever it is, it's usually a reinvention.
Blogging + Technocrati + A feed reader = Usenet
OSX - A proper app. security layer = Vista
iGoogle = Windows Live + Interesting Feeds - Commercial Feeds
Ubuntu - An …
Read the rest of this entry »This post is for everyone who's realized that Django power does not come from the ability to easily write all the logic yourself -- rather it's the ability to integrate apps with each other, yet only messing about with your own source tree, and not the apps you've downloaded. And …
Read the rest of this entry »In 2008 I wrote a bachelor thesis together with Michael Werk. The subject was P2P filesharing through a filesystem, and it's available in Danish here. Currently it needs to be further developed with respect to security and a few features, but we ended having a usable prototype. A demonstration …
Read the rest of this entry »I've been coding a lot of ASP.NET lately using the whole Microsoft portfolio of dev tools, and I'm in total shock. I had expected to hate it, but not from rational reasoning, but rather because they made it. I thought it was sleek enterprise level stuff. But I was wrong... …
Read the rest of this entry »This MUST be a common issue for international developers: We use some geeky English name for our application and afterwards find that the translated admin index looks a little silly in the eyes of our native speaking users. Apparently a patch has been accepted in the Django dev version, but …
Read the rest of this entry »First of all: It should work fine.. so be optimistic :) But you will need to compile a kernel module (ov51x-jpeg) to get it running. Please have a look at Creative's list to see if your camera is using this module (it will have have an URL saying something like …
Read the rest of this entry »What's really nice in Django is the gettext implementation and the _ convention. But when running django-admin.py makemessages we're not generating any translations for dynamic values such as field values. So let's say that we have a model and we'd like what's in it to be displayed in a translated …
Read the rest of this entry »The Linux Format Bounty round 1 has finished, and I was one of the competers. I ended up doing a JS version of SuDoKu because of my own skills and the fact that JS/HTML is so cross-platform and easy to do GUIs in. I also thought that SuDoKu would be …
Read the rest of this entry »I did a Google search and since nothing came up, I'm writing this little tip on creating your own CMS by extending Django's flatpages. What's good about flatpages is that they're included in Django and has some basic code to get you started. But clearly they're not enough if you …
Read the rest of this entry »You're totally welcome to copy the code.... just remember it's GPL :D The game is pretty simple. Per default it's an ordered picture... but clicking the button below will get the squares out of order, and you'll have to move them back in place only by using the single available …
Read the rest of this entry »Here's some information about me that's useful for professional motives, say if you're someone who wants to hire me:
I work with the following stuff: Python, JavaScript, Haskell, Linux, and SQL.
More specifically I like: Django, JQuery, PyGTK, Glade, FUSE, Ubuntu, and MySQL. I like simplicity, transparency, and open …
Read the rest of this entry »Here's a little step-by-step guide to getting your Rio Karma running on Ubuntu 8.04 with the new amazing Banshee 1.0. But first a little appetizer:
What we'll do is fetch some stuff to get the compilation of Banshee working, patch up the source code, compile it and then as a …
Read the rest of this entry »Apparently this article has been censored by the original host, because the big bad oligarch Usmanov put a legal firm on the hosting company of the author. That's why I'm bringing it.
September 2, 2007Alisher Usmanov, potential Arsenal chairman, is a Vicious Thug, Criminal, Racketeer, Heroin Trafficker and Accused Rapist …
Read the rest of this entry »