Archives for the ‘Python’ Category

Removing duplicate files from hard drive

I had to move files around PC and although there are plenty of shareware programs that deletes duplicate files from PC, the best things in the life are free. The Dupinator script - a free program that removes duplicate files from drives, is written in Python.
It was reasonably fast, and does it’s job well. [...]

Lisp Usenet (almost) Wipes Newbie’s HD

What a contrast between lisp forums and python forums. Check out the following usenet thread.
A newbie after learning how to hello world in lisp, is given a snippet with the equivalent of “rm -rf /*” as a solution after posting a legitimate question on comp.lang.lisp.
View thread on google groups.

(defun reset-cluser ()
“Delete [...]

JRuby on Rails

This piece of news about JRuby on Rails ought to make James McGovern sit up.
Incidentally, I have been experimenting with a Rails clone in PHP called Cake PHP. It was pleasant, and remarkably close to Rails. Given how widely PHP is supported in the web hosting world, Cake seems to give a PHP developer a [...]

Writing Good Check-In Comments

from http://software.jessies.org/scm/
Here’s a checklist of things you should try to get into a habit of going through in your mind as you write a check-in comment:

Bug/defect number - if you have a bug database, reference it. There’s likely to be plenty of extra information/dialog in there that shouldn’t go to waste. This is why SCM [...]

IronPython on CherryPy

Initial reports of success getting CherryPy running on Mono IronPython

Python Envy

GaryKing asks:
I’ve been looking at Ruby quite recently while working on Montezuma with John Wiseman on a port of Ferret (which is a ruby port of the java Lucene text indexing engine). I don’t see anything particularly special about Ruby; overall, it seems like another reinvention of the wheel with more syntax with which to [...]

Free IPod Nano ? You gotta be kidding.

Can someone tell me what’s the catch to this ruse?
Get It Free - IPod Nano.
Err please don’t sign up. It’s probably a phishing site.
Update: Looks like they are a marketing firm. You’ve got to get 5 people sign up to Amex, Netflix, etc. before you get your iPod.

More Django Vs Zope

A commenter has kindly pointed out that searches on Django might not refer to the web framework. So I did a little more digging.

Django will overtake Zope

Like it or not, Django will overtake Zope in terms of mindshare next month.

Update:More statistics

zope   

django   

turbogears   

Debugging Zope with Pdb

Here’s a special video tutorial demonstrating a technique where you can debug Zope without buying an expensive IDE. Total run length (15 minutes), shockwave format. 55 Mb

Another 24 hour sale

Just a heads up for people who have bought the infoproduct creator (thanks for the pizzas since you’ve clicked through the affiliate link!).

InfoProduct Creation for 10 bucks

Hi guys, I’ve been studying James Brausch’s weblog for the past week and he’s fair dinkum intelligent about selling things on the internet. Like James, I’d gone out on my own before and did pretty shockingly, but unlike James, he tried again and worked out how to do it a bit better the second time around. When it comes to making a buck on the internet there are plenty of gurus out there, some charging outrageous amounts. I just happen to like James, because his tone of voice and approach suited me. That’s probably because he was a software engineer at a medical equipment firm.

Video/Audio Illusion

The McGurk Effect. Now you’ve heard it. Go observe it. (Quicktime required)
If you’re a non-English speaker can you please comment whether the McGurk effect still works on you.

Difference between libraries and frameworks

Guido,

This is my empirical test for what is a library and what is a framework.

James McGovern on Ruby

James argues that enterprises are not ready to embrace Ruby because Ruby hasn’t done the Big Sell to enterprises.
This is not to say it will not happen, after all, IBM had dipped its toes pushing PHP, despite PHP being a less capable language compared to Ruby - no continuations, functions not first class.
I’d argue [...]

Prototype-based Languages and Design-Tension

Stefan Tilkov and Steve Vinoski wonder why JavaScript hasn’t really taken off. The wikipedia entry on Prototype-based programming suggests that the
community of software developers is not familiar with them, despite the popularity and market permeation of JavaScript. Further, as prototype-based systems are relatively novel, and few and far between, best practices for software development using [...]

Indentation Based Lisp

Paul Graham’s take on Lisp without the nail clippings is RTML, the templating language which powers Yahoo Store.

My-Name ()
TITLE "My Name Is"
BODY
TEXT "Hello, my name is "
LINEBREAK
IMAGE source RENDER text @name
[...]

Zope’s Database Connection Wrappers

Zope’s database connections are like onions. Take out the outer layer, and you find another onion. Take out another layer, and you find,… another onion.
For example, ZODBCDA - a Zope product used to enable ODBC access - has 3 classes all representing database connections. A schematic would help:

class Connection(Shared.DC.ZRDB.Connection.Connection) [ZODBCDA/DA.py]
|
+— isinstance(self._v_database_connection, Products.ZODBCDA.db.DB)
[...]

Weighing Exotic Technologies

Peter Coffee makes a case for LISP in E-Week (via Phil Windley’s Technometria), arguing that Lisp trades memory/CPU usage for expressiveness, so that one can deliver applications quicker.
While I agree that Lisp is more expressive than, say Java, it’s not necessarily the platform to chose to develop web applications with.

Forget about using Common [...]

Python’s DateTime module

I admit it, I’m a total idiot when it comes to date times. Here’s a crash course for others starting out.
I live in Australia, and we are 10 hours ahead of GMT, and it’s 10pm. My current time (in ISO 8601 format) is:
2006-01-30T22:00:00+10:00
or
2006-01-30T12:00:00Z
(The Z signifies the time is in UTC)
The DateTime module (from Zope), [...]