Tag: Programming
-
Fixing iCalendar feeds
Many sites allow you to synchronize to their calendar loosely following the iCalendar standard. Unforutunately many set the time for all day events, with a quick and dirty PHP script you can fix this.
-
Forking processes and Gtk2
I made a change recently on the gjay program. gjay is a gtk program that basically analyzes your music and makes playlists. There is a gui frontend and a analyzer back-end and they communicate through a pipe. One really useful debugging option gtk has is to make warnings fatal, so when gtk finds one it…
-
PHP uniqid() not always a unique ID
When is a unique id not unique? How can a file exist and not exist? All this caused a mysterious bug in JFFNMS with the reachability interface which goes to show the limitations of the PHP function uniqid().
-
Sneak peek of top graphs
Jim has been busy as part of the procps-ng team that looks after top. Basically all the changes you find in top from around 2.7 or so are by him. Not satisfied enough with fixing top, making it faster and showing more fields, he has given us CPU and memory graphs. He also thinks I…
-
A python utf gotcha
This one had me stumped for a while: # -*- coding: utf-7 -*- import datetime from sqlalchemy import ForeignKey, Column from sqlalchemy.types import Integer, Unicode, Boolean, DateTime default_due_date = datetime.datetime.now() + datetime.timedelta(days=30) Syntax error found on last line. Hmm, bring up a python interpreter and type the last line in with the imports. Works fine.…
-
jqGridWidget in Turbogears
Turbogears 2 uses Toscawidgets 2 for a series of very clever widgets and base objects that you can use in your projects. One I have been playing with is the jqGridWidget which uses jquery to display a grid. The idea with jquery is creating a grid or other object and then using javascript…
-
JFFNMS 0.9.3
JFFNMS version 0.9.3 has been released today. This is a vast improvement over the 0.9.x releases and anyone using that train is strongly recommended to upgrade.So what changed? What didn’t change! A nice summary would be fixing a lot of things that were broken or needed some tweaking. A really, really big thanks to Marek…
-
JFFNMS 0.9.2 Released
JFFNMS version 0.9.2 was released today both as an upstream tar.gz file and a new Debian package. This version fixes some bugs including making sure it works with PHP5.4. The biggest change in PHP 5.4 is that you can no longer call by reference. Previously you could call a function like myfunc(&blah); which would send…
-
psmisc 22.16 Released
psmisc version 22.16 was released today. It is a bugfix release that bascially fixes a problem around strings in C. Process name lengths are only supposed to be 16 characters long, so a 17 bye buffer is ok; until you have processes with brackets which means the string is 18 characters. The next wrinkle is…