Short IT recipes

i.e. some stuff and junk about Python, Perl, Matlab, Ruby, Mac X, Linux, Solaris, ...

Saturday, June 21, 2008

Python: Isotropic fractal surface generator

›
#! /usr/bin/env python from __future__ import division import Image from scipy import * class FractalSurface(object): '''Gene...
Tuesday, June 03, 2008

ubuntu: iptables port redirect

›
I want to redirect all incoming requests on port 80 to 8080. I did it using the following command: sudo iptables -A PREROUTING -t nat -i eth...
Thursday, April 10, 2008

bash: simple loop through files

›
for f in *.tiff ; do echo $f; done Example with ImageMagick's convert program: for f in *.tiff; do convert -crop 384x384+48+35 $f out/...
Wednesday, April 02, 2008

R: clear workspace in R

›
rm(list=ls())
Wednesday, March 26, 2008

Two buttons and scroll in mouse in mac os 8.6

›
Please install this soft: GameSprockets_1.7.5.smi.bin usb-overdrive-14.hqx Mac_OS_ROM_Update_1.0.smi.bin Of course StuffIt Expander is requr...
Sunday, March 09, 2008

Python: script for sending email

›
Function for sending emails using Python script. It requires local SMTP server (e.g. Postfix) or one can provide address to the external SMT...
Wednesday, February 27, 2008

Zope: Zope page template to display image object

›
Lets add an image object named test.png. Now, how to display it? Simply, create new Page Tempalte. Replace to default contents by: This will...
Monday, January 14, 2008

›
The solution to a system of two, first order linear differential equations is given by: To draw this solution one can use the code for Matla...
Thursday, January 10, 2008

Octave 3: first impression

›
Octave 3 is out for few weeks now. I have chanced Windows binary. First impression is very positive. Installation went smooth, Octave 3 has...
Wednesday, January 09, 2008

Python: eigenvalues with Scipy and Sympy

›
Eigenvalues and eigenvectors are important in systems of differential equations. To speed up my analysis I decided to use some numerical pac...
‹
›
Home
View web version
Powered by Blogger.