Kubuntu 9.10 fails to start correctly after upgrade
Monday, 7. December 2009, 20:55:29
Anna and Gerald in Linköping
Monday, 7. December 2009, 20:55:29
Sunday, 29. November 2009, 12:50:10
man intel for intel graphics devices) or using xrandr.
Friday, 20. November 2009, 20:34:30
Saturday, 31. October 2009, 22:10:56
Tuesday, 29. September 2009, 17:00:00
Wednesday, 16. September 2009, 16:06:11
logconfig.py inside your application and add the following content
import logging
import logging.handlers
from django.conf import settings
logs = ('views','some_other_module')
def init():
for log in logs:
filename = settings.LOGGING_DIRECTORY + log
logger = logging.getLogger(log)
logger.setLevel(logging.DEBUG) # log ~everything
handler = logging.handlers.TimedRotatingFileHandler(filename, when = 'midnight', backupCount=9)
formatter = logging.Formatter("%(asctime)s %(levelname)-8s %(message)s")
handler.setFormatter(formatter)
if needRollover(filename):
# triggers a rollover when the server is started
handler.doRollover()
logger.addHandler(handler)
logger.debug("logging for %s initialized", log)
def needRollover(filename):
today = date.today()
return not exists("%s.%s" % (filename, str(today)))
initialized = False
if not initialized:
init()
initialized = True
LOGGING_DIRECTORY. Note that the web server needs write access to this directory in order to write the logs. Now, for all the source files you want to have logging, it is necessary to import the logging module and the above one to configure the loggers. Then you need to fetch an instance of a logger that you can use throughout the file (the argument to getLogger can be any string defined in the logs variable in the above file).
# other imports...
import logconfig, logging
log = logging.getLogger('views')
def anyView(request):
# do stuff
log.debug("this is a debug message")
# do some more stuff
log.error("an error occurred")
Thursday, 13. August 2009, 21:01:18
/etc/X11/xorg.conf to get circular scrolling for my Synaptics touchpad. I didn't see much of a point in using tools like gsynaptics since I still had to set the option "SHMConfig" to "true" in that file. Now, to get circular scrolling, it's basically necessary to create xorg.conf from scratch since the whole mechanism relying on it is quite different by now. If you don't want to do this, there's another option: create/ edit the file /etc/hal/fdi/policy/shmconfig.fdi to contain the following:<?xml version="1.0" encoding="ISO-8859-1"?> <deviceinfo version="0.2"> <device> <match key="input.x11_driver" string="synaptics"> <merge key="input.x11_options.SHMConfig" type="string">True</merge> </match> </device> </deviceinfo>
sudo aptitude install gsynaptics
I read about this approach on http://www.helsinki.fi/~rantalai/synaptics/
Thursday, 30. July 2009, 20:08:46
Monday, 8. June 2009, 22:14:36
$ sudo aptitude install gdmIn case you already have gdm installed but not activated, that's quite easy as well
$ sudo dpkg-reconfigure gdmand then select gdm. Hooray for Intel, they seem to be the vendor of choice for anybody using Linux for office work.
Monday, 18. May 2009, 20:15:39

Showing posts 1 - 10 of 34.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
|
| ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||