Archive for June, 2007

WordPress as personal publishing platform

Posted in June 29th, 2007
by peorex in How to

WordPress is currently the most powerful personal publishing platform, primary used for blogging (web2.0). It is free for use and fully customizable. Currently the latest release is version 2.2.1
To get started with WordPress and enjoy it’s flexibility, it is advisable to set it up on a web host.
First you will need a web host and [...]

Continue reading...

Interrupt driven routine for Avr 16-bit PWM

Posted in June 28th, 2007

Target: ATtiny2313
Uses OCR0A, TCNT0, TCNT1
With ATtiny2313 it is possible to utilize two 16-bit PWM using OC1A and OC1B.
If application needs more than this, say RGB controller, two additional 16-bit channels can be created from native 8-bit OC0A and OC0B. The resolution is true 16-bit, glitch-free. Prescaler can be set to 1.
The software [...]

Continue reading...

PIC Arithmetic 16-bit

Posted in June 27th, 2007

Target: PIC16C71
; Bit definitions

#define _c status,0
#define _z status,2
#define _dc status,1

#define _gie intcon, 7

; Macro definitions

Bank1 macro
bsf [...]

Continue reading...

I2C for 8051

Posted in June 26th, 2007

Target: 8051
Content of .asm file
; ***************************************************************
; This collection of routines allows an 80×51 microcontroller
; to read and write the I2C devices
; FOSC = 24MHz.
; ***************************************************************

_R EQU 0

SDA EQU [...]

Continue reading...

How do I backup my Linux system disk

Posted in June 25th, 2007
by peorex in How to

In my Linux operating system I have divided disk space generally with two independent purposes: system data and user data.
When I do potentially dangerous tasks, such as change important system settings, re-install all system, re-partition disk and so on I used to backup data. This is done as root:
#tar -cvPf /home/root/Backups/backup.tar /bin /boot /etc /lib [...]

Continue reading...

Simple way for creating disk Image

Posted in June 24th, 2007
by peorex in How to

The simplest way I know for creating disk images under Linux is using dd command. The disk is treated as regular file. Because this is raw coping, it works the same way regardless of disk format, filesystem and data. Disk is copied sector by sector.
For example (in my case), run as root:
#dd bs=8M if=/dev/hda3 of=/home/root/Backups/hda3.img
The [...]

Continue reading...

How to choose a DVD recorder

Posted in June 23rd, 2007
by peorex in How to

Several days ago a relative of mine asked me to help him to choose a DVD recorder and get it installed. I searched the internet for info about current level of technologies, market availability and prices. So, my conclusion was that many manufacturers offer devices with nearly equal parameters and prices, but with different features [...]

Continue reading...