- Check mail server by "telnet servername port(25)"
- Check IMAP server (e.g. deovecot)
Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts
2011-12-29
Django "SMTPServerDisconnected Connection unexpectedly closed"
2011-04-20
How To Install Python JCC
Ubuntu 8.04 Server
- sudo install sun-java6-jdk python-distutils-extra build-essential
- svn co http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc jcc (revision 1090549)
- cd jcc/jcc
- sudo python setup.py build install
- require Python2.5.2, Visual Studio 2003, Java-JDK1.6.0u17
- add Path
- C:\Program Files\Java\jdk1.6.0_17\bin
- C:\Program Files\Java\jdk1.6.0_17\lib
- C:\Program Files\Java\jdk1.6.0_17\jre\bin\client
- C:\Python25
- checkout jcc from subversion http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc (revision 1090549)
- open command prompt
- in jcc directory >>> python setup.py build install
2009-01-26
SQL History in Django
Use django.db.connection to get SQL history.
Example:
from django.db import connection
connection.queries
Example:
from django.db import connection
connection.queries
2007-11-20
How to set font properties in matplotlib create graph
1. Create font dict like this
- font = { 'fontname':'Tahoma', 'fontsize':16 }
2. When you want to change font for example in title use like this
- matplotlib.pylab.title(u'some text', **font)
- font = { 'fontname':'Tahoma', 'fontsize':16 }
2. When you want to change font for example in title use like this
- matplotlib.pylab.title(u'some text', **font)
2007-09-05
Problem BIGINT in Jython
You must convert Python Long object to Java Long object before execute sql command.
Example: id = Long(data[0])
difficulty = utils.calc_sentence_diff(data[1])
cursor.execute(update_sql, (difficulty, id))
Example: id = Long(data[0])
difficulty = utils.calc_sentence_diff(data[1])
cursor.execute(update_sql, (difficulty, id))
Subscribe to:
Posts (Atom)