pts.blog

2009-07-29

BibTeX cheat sheet and entry templates

›
See the most up-to-date version of the cheat sheet at http://www.inf.bme.hu/~pts/bibtex-cheat-sheet.txt . A quick copy: * Based on informat...
2009-07-11

How to create a bootable CD running GRUB4DOS on Linux (Ubuntu Hardy)

›
GRUB4DOS is a flexible, feature-extended version of the GRUB boot manager. This blog post explains how to create a bootable CD which boots G...

How to create a bootable floppy running GRUB4DOS on Linux (Ubuntu Hardy)

›
GRUB4DOS is a flexible, feature-extended version of the GRUB boot manager. This blog post explains how to create a bootable floppy which boo...
2009-06-21

How to configure dynamic DNS (dyndns) with OpenWRT and LuCI

›
This blog post tells you how to configure dynamic DNS (using dyndns.org) on your router running OpenWRT Kamikaze. The instructions havene be...
2 comments:
2009-06-15

How to render SVG with sharp text and manual kerning

›
If you want to render SVG vector graphics with text (i.e. convert it to a PNG), you might experience some problems: 1. the antialiasing glit...
2009-06-13

How to make Ghostscript embed a Type 1 font to the PDF in one part, without splitting

›
I was facing a problem with Ghostscript 8.54 -sDEVICE=pdfwrite . When embedding a Type 1 font to the PDF, Ghostscript splitted the font to t...
2009-06-12

Using \romannumeral in TeX to do multiple macro expansions

›
This blog post demonstrates a TeX macro hack: using \romannumeral to expand many macros in a single expansion. The example goal is to defin...
2009-06-09

How to typeset text with bilingual fragments with LaTeX

›
This post gives a possible solution for typesetting two similar versions of the same LaTeX document differing only in some text fragments. H...
2009-06-01

How to migrate or merge a CVS or SVN repository to a remote SVN repository

›
Let's suppose you have one or more local CVS and/or SVN repositories, and you want to merge them (with their change history) to new dire...
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.