# HG changeset patch # User Oleksandr Gavenko # Date 1289062186 -7200 # Node ID 69056cd4b0019c9d1d32ded51b54ac6e854cb2fd # Parent c4b9fbbe7bbda133a7c5fcd1b69e64ef86600112# Parent 86c8e4fbdbfd17087e206b957d1c86b199d57723 Automated merge with file:///cygdrive/e/srv/hg/tips diff -r 86c8e4fbdbfd -r 69056cd4b001 avr.rst --- a/avr.rst Sat Nov 06 18:49:37 2010 +0200 +++ b/avr.rst Sat Nov 06 18:49:46 2010 +0200 @@ -33,14 +33,22 @@ *** avr-libc. + $ sudo apt-get install avr-libc + http://www.nongnu.org/avr-libc home page -** avr-binutils. +** binutils-avr. + + $ sudo apt-get install binutils-avr + +** gcc-avr. -** avr-gcc. + $ sudo apt-get install gcc-avr -** avr-gdb. +** gdb-avr. + + $ sudo apt-get install gdb-avr * Simulator. diff -r 86c8e4fbdbfd -r 69056cd4b001 driver-win.rst --- a/driver-win.rst Sat Nov 06 18:49:37 2010 +0200 +++ b/driver-win.rst Sat Nov 06 18:49:46 2010 +0200 @@ -192,6 +192,10 @@ Code-Signing Best Practices. http://msdn.microsoft.com/en-us/library/ff550764.aspx Device Installation Signing Requirements. + http://www.microsoft.com/whdc/winlogo/categories.mspx + Windows Logo Program Test Categories. + http://www.microsoft.com/whdc/driver/install/drvsign/crosscert.mspx + Root Authority Cross-Certificate List ** Tools for Signing Drivers. @@ -236,3 +240,28 @@ package for the user's device, can legally distribute it, and can automatically download it. http://msdn.microsoft.com/en-us/library/ff554874.aspx + +* Hardware ID. + +PCI and AGP buses: Contain subsystem ID and subsystem vendor ID (&SUBSYS in the ID string). Drivers +must have VID/DID/SVID/SID PNP ID entries to be published via Windows Update. + +PCI Device Subsystem IDs and Windows specifications are available at: +http://www.microsoft.com/whdc/archive/pciidspec.mspx + +PCMCIA: Always specific; contains PCMCIA in the ID string. + +USB: Contains VID and &PID in the ID string. + +IEEE 1394: Always specific; contains 1394 in the ID string. + +HID: Contains &VID and &PID in the ID string. + +IDE: Contains IDE\ in the ID string. + +Parallel Port Printers: Contain LPTENUM\ in the ID string. + +IrDA Printers: IDs begin with HWP. + + http://www.microsoft.com/whdc/winlogo/winup/default.mspx + Windows Update Driver Publishing diff -r 86c8e4fbdbfd -r 69056cd4b001 emacs.rst --- a/emacs.rst Sat Nov 06 18:49:37 2010 +0200 +++ b/emacs.rst Sat Nov 06 18:49:46 2010 +0200 @@ -279,3 +279,15 @@ http://xslt-process.sourceforge.net/ home page + +* Useful program logging. + +Put first line to your log file, you must replace default-directory to dir where you build program: + + -*- mode: compilation-minor; mode: auto-revert-tail; default-directory: "~/devel/proj" -*- + +Program must use one of supported by 'compilation-minor-mode' (see +'compilation-error-regexp-alist'), like: + + printf(__FILE__ ":%d: %s\n", __LINE__, msg); /* msg - user defined string */ + diff -r 86c8e4fbdbfd -r 69056cd4b001 fs.rst --- a/fs.rst Sat Nov 06 18:49:37 2010 +0200 +++ b/fs.rst Sat Nov 06 18:49:46 2010 +0200 @@ -42,6 +42,55 @@ http://msdn.microsoft.com/en-us/library/aa365247.aspx Naming Files, Paths, and Namespaces +* Block device attributes. + +** How get UUID and label? + +Include UUID (Universally Unique Identifier) and labels. + + $ ls -l /dev/disk/by-uuid/ +lrwxrwxrwx 1 root root 10 2010-11-01 23:41 46B6-1FD4 -> ../../sdb2 +lrwxrwxrwx 1 root root 10 2010-11-01 23:41 4C30299030298256 -> ../../sda1 + + $ ls -l /dev/disk/by-label/ +lrwxrwxrwx 1 root root 10 2010-11-01 23:41 bin -> ../../sda3 +lrwxrwxrwx 1 root root 10 2010-11-01 23:41 inst -> ../../sda2 +lrwxrwxrwx 1 root root 10 2010-11-01 23:41 media -> ../../sdc5 + + $ sudo vol_id /dev/dm-2 +ID_FS_USAGE=filesystem +ID_FS_TYPE=ext3 +ID_FS_VERSION=1.0 +ID_FS_UUID=f7484fc9-75ec-4e46-8539-50b1e371b7ef +ID_FS_UUID_ENC=f7484fc9-75ec-4e46-8539-50b1e371b7ef +ID_FS_LABEL= +ID_FS_LABEL_ENC= +ID_FS_LABEL_SAFE= + + $ /sbin/blkid ## from 'e2fsprogs' package +/dev/sdc2: UUID="46B6-1FD4" TYPE="vfat" +/dev/sdb2: TYPE="ntfs" UUID="BC48D3FD48D3B47C" LABEL="inst" +/dev/sda5: UUID="5240AED140AEBB5D" LABEL="music" TYPE="ntfs" +/dev/sdc1: UUID="81c4444f-0b70-429a-9d97-8c13e8651f5b" TYPE="ext3" +/dev/sdc3: UUID="KOpHWz-clDR-2MqV-vAkE-cPvY-uZrY-kjYJIb" TYPE="lvm2pv" + + $ udevinfo --query=all --name /dev/sdb ## from 'udev' package +P: /block/sdb +N: sdb +S: disk/by-id/ata-WDC_WD1600JS-00MHB0_WD-WCANM5835587 +S: disk/by-id/scsi-SATA_WDC_WD1600JS-00_WD-WCANM5835587 +S: disk/by-path/pci-0000:00:08.0-scsi-1:0:0:0 +E: ID_VENDOR=ATA +E: ID_MODEL=WDC_WD1600JS-00M +E: ID_REVISION=02.0 +... + +** How set UUID and label? + +For ext2/ext3 fs: + + $ sudo tune2fs /dev/hdb1 -U `uuid` + * Linux fs under Windows. ** Ext2 IFS. diff -r 86c8e4fbdbfd -r 69056cd4b001 http.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/http.rst Sat Nov 06 18:49:46 2010 +0200 @@ -0,0 +1,6 @@ +-*- mode: outline; coding: utf-8 -*- + +* Web server in Cygwin. + + $ setup -p apache2,lighttpd,dhttp + diff -r 86c8e4fbdbfd -r 69056cd4b001 windows.rst --- a/windows.rst Sat Nov 06 18:49:37 2010 +0200 +++ b/windows.rst Sat Nov 06 18:49:46 2010 +0200 @@ -307,3 +307,21 @@ 1. Start Control Panel and double-click User Accounts. 2. In the User Accounts tasks window, click Turn User Account Control on or off. 3. Clear the Use User Account Control (UAC) to help protect your computer check box, and then click OK. + +* Fix file association. + +Check current association: + + $ cmd /c assoc | grep -i "^\.mp3" +.mp3=mp3file + +Get list of all available commands: + + $ cmd /c ftype +... +AIMP.mp3="C:\Program Files\AIMP2\AIMP2.exe" "%1" +... + +and select one on them: + + $ cmd /c assoc .mp3=AIMP.mp3