LATEST POST

Review: “Discover Meteor”,Tom Coleman & Sacha Greif

http://www.discovermeteor.com Currently available at $39 and upwards (May 2014) Check the current live price at Luzme Meteor is a new web framework which promises near-real time data updates on the client. If you’re planning to learn how to learn Meteor (which you should, it’s awesome!), you need this book “Discover Meteor”.

Continue Reading →

Handling European currencies

For example, ‘15,99 EUR’ See whether you have the right locale installed. $ locale -a If not $ sudo apt-get install language-pack-es $ sudo dpkg-reconfigure locales And then in the code, you can do this import locale myprice = unicode(locale.atof(myprice))

Continue Reading →

Migrating from django-registration to django-allauth

I’ve been wanting to migrate away from django-registration for a while. Yes, I know it’s been the default registration package since forever and I’ve used it happily for many years. But : it’s no longer actively maintained I want to do away with the email confirmation I want to allow login using either email or…

Continue Reading →

Ubuntu: do-release-upgrade, decode() error

And the answer is… export LANG=”en_US.UTF-8″ export LANGUAGE=’en_US:us’ Thanks to http://nwydo.com/?p=39

Continue Reading →

Replace user-input field with enforced value in Django form

I’m subclassing someone else’s form; I need to remove their input field and replace it with a fixed value. class MyForm(TheirForm): def __init__(self, *args, **kwargs): super(MyForm, self).__init__(*args, **kwargs) # remove unwanted field self.fields.pop(‘fixedfield’) def clean(self, *args, **kwargs): cleaned_data = super(MyForm, self).clean(*args, **kwargs) # Restore field with fixed value cleaned_data[‘fixedfield’] = FIXEDVALUE return cleaned_data Simples…

Continue Reading →

Upgrading very old Ubuntu

Can’t find the upgrades because the ubuntu distribution is just too old? Change /etc/apt/sources.list to use old-releases.ubuntu.com

Continue Reading →

Review: “Instant RabbitMQ” by Andrew Keig

This is a review of the book “Instant RabbitMQ Messaging Application Development How-to” by Andrew Keig, in the “Instant” series (“Short, Fast, Focussed”) by Packt Pubiishing. Disclaimer: I was given this book for review by Packt Publishing. My opinions are, however, my own. http://www.packtpub.com/rabbitmq-messaging-application-development/book Currently on offer at £5.09, usual price £5.99 (Jun 2013) Live…

Continue Reading →

Testing HTTPS with openssl

$ openssl s_client -connect localhost:443 CONNECTED(00000003) …lots of certificate-related stuff here… — GET / HTTP/1.0 HTTP/1.1 200 OK Date: Mon, 04 Feb 2008 09:19:01 GMT Server: Apache/2.2.7 (Unix) mod_ssl/2.2.7 OpenSSL/0.9.7l DAV/2 mod_python/3.3.1 Python/2.5.1 Last-Modified: Sat, 20 Nov 2004 20:16:24 GMT Accept-Ranges: bytes Content-Length: 44 Connection: close Content-Type: text/html It works! Connection closed by foreign host.…

Continue Reading →

Quick search’n’replace with perl

perl -pi -e ‘s/foo/bar/gi’ myfile.txt

Continue Reading →

What’s my include path?

gcc -Wp,-v will show you

Continue Reading →

Page 1 of 11