pts.blog

2009-05-31

Syntax highlighted Python

›
Example syntax highlighted Python code: (please ignore) def Hello ( self , x , y ): return x * y + "foo" # bar The s...
2009-05-21

Ruby on Rails 2.3 unit tests

›
The blog post Ruby on Rails Unit Tests explains why it is a bad idea to give the unit tests access to the database, and how to set up your ...
2009-05-14

Java .class file converter which makes method and fields public available

›
ClassPublic.Java is a Java .class file converter which makes a Java class public and non-final, its fields public and its methods public and...
1 comment:
2009-05-13

Java class disassembler with offset display available

›
jdisasm.py is a Java class file disassembler implemented as a Python script. jdisasm.py displays a java .class file in a human readable form...
2009-05-05

How to deploy a Ruby on Rails application using Phusion Passenger and Rails Enterprise Edition on Debian Etch or Ubuntu Hardy

›
This post gives step-by-step instructions on deploying a Ruby on Rails application on a Linux-based server using Phusion Passenger and Ruby ...
2009-05-04

How to fix RailsBaseUri (sub URI) with Phusion Passenger without setting relative_url_root

›
There is a bug which prevents correct routing with Phusion Passenger 2.2.2 and Rails 2.3.2 (>= 2.2.2) and RailsBaseUri . For example, if ...
3 comments:
2009-04-22

How to fix a broken registry key if Windows XP is not booting

›
Recently I modified the Windows XP registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage\OEMCP from 437 to 65001 ,...
3 comments:

How to fix Ubuntu Hardy and Intrepid boot hang on a Philips laptop

›
If you have a Philips laptop and you want to boot Ubuntu Hardy and Intrepid on it, the system might hang indefinitely while booting (not rea...
2009-04-18

How to set up an external monitor for watching movies with the nvidia proprietary x.org driver

›
This post describes how to set up your /etc/X11/xorg.conf on Linux if you have a laptop with an NVIDIA video card, and you want to attach a...
2009-04-07

How to prevent stderr log messages from interleaving on Linux

›
Let's suppose you have a program which forks subprocesses, and each subprocess writes log messages to the stderr they share. Since proce...
2009-04-04

How to convert some LaTeX text to a high resolution PNG image

›
Create the TeX source file dump.tex like this: \documentclass{article} \pdfpagewidth2cm \pdfpageheight1cm \hoffset-2.3cm \voffset-2.3cm \be...
2009-03-31

How to set up ruby gems on Debian Etch as non-root

›
This tutorial describes how to install Ruby gems to your home directory. The gems you install there will not be visible to other user, and t...
2009-03-27

How to make Flash full screen work in Ubuntu Hardy and Firefox

›
We were using the Flash applet on Livescribe's web site in Firefox running on Ubuntu Hardy. We were using Flash 9.0 r124, and Firefox 3....
1 comment:
2009-03-26

ASCII isdigit, isalpha and isxdigit macros in ANSI C with arithmetic operations

›
The naïve way of defining a C macro which tests whether a character is a digit (assuming an ASCII-based character set) is #define ISDIGIT(c)...
2009-03-13

How to select an ALSA sound card and have concurrent, simultaneus playback using dmix

›
This blog post is tutorial which describes how to select a default sound card and run multiple playbacks simultaneously, using ALSA on Linux...
4 comments:
2008-09-03

Using pytz to display a timestamp in a time zone

›
Download pytz from http://pytz.sourceforge.net/ . You can try out the code snippet below without installing pytz. Just create your Python sc...
‹
Home
View web version
Powered by Blogger.