Notes by woolf
Displaying keyword search results 1 - 10
Created by woolf on July 31, 2011 12:30:20
Last update: July 31, 2011 12:30:20
The DNS (Domain Name System) server uses port 53 (UDP and TCP). From Wikipedia :
DNS primarily uses User Datagram Protocol (UDP) on port number 53 to serve requests. DNS queries consist of a single UDP request from the client followed by a single UDP reply from the server. The Transmission Control Protocol (TCP) is used when the response data size exceeds 512 bytes, or for tasks such as zone transfers. Some operating systems, such as HP-UX, are known to have resolver implementations that use TCP for all queries, even when UDP would suffice.
Created by woolf on July 30, 2011 13:18:57
Last update: July 30, 2011 13:19:21
The normal 30/30/30 reset does not work for the TP-Link TL-WR1043ND running OpenWRT. OpenWRT provides a failesafe mode from where you can recover any configuration mistakes. For the TP-Link TL-WR1043ND:
Power up the router
When SYS button starts to blink, press and hold the QSS button till SYS starts to blink faster
Telnet to 192.168.1.1. No password needed.
Erase user space data with
mtd -r erase rootfs_data
or mount the jffs2 file system with:
mount_root
and start fixing things.
Created by woolf on June 25, 2011 10:55:08
Last update: June 25, 2011 10:57:15
My C drive was seriously fragmented with about 20% free space. So I ran the built-in Windows disk defrag utility. To my surprise it doesn't work at all! I tried to defragment multiple times and every time it comes back without doing much work. Then I realized that perhaps it didn't know how to get the job done and needed some help. Here's the list of things I did to help the defragmentor out: Relocate the paging file to a different drive and reboot. If the paging file ( pagefile.sys ) is seriously fragmented, it can't be defragmented, and in turn it blocks other files from being defragmented. If you only have one drive (C:), try to make it smaller or eliminate it entirely for...
Created by woolf on May 15, 2011 14:18:54
Last update: May 15, 2011 14:19:49
/etc/resolve.conf : DNS server configuration.
Example:
search localdomain
nameserver 192.168.183.2
/etc/hosts : map hostname to IP address locally instead of using DNS, often take precedence over DNS.
Example:
127.0.0.1 localhost
127.0.1.1 myserver
#...
/etc/nsswitch.conf : system databases and Name Service Switch configuration file.
Example:
# /etc/nsswitch.conf
#
# Example configurati...
/etc/sysconfig/network (for Fedora, Redhat, CentOS): specify network configuration - static IP, DHCP, NIS, etc.
/etc/network/interfaces (for Ubuntu): specify network configuration - static IP, DHCP, NIS, etc.
Example:
auto lo
iface lo inet loopback
auto eth0...
Created by woolf on October 22, 2010 02:53:32
Last update: October 22, 2010 03:18:12
The easiest way to shutdown Windows XP with a shortcut is to create a shortcut icon on the desktop (or the Start menu, or the Quick Launch menu) and assign a shortcut key combination.
Useful command line commands:
Shutdown : shutdown -s -t 0
Restart : shutdown -r -t 0
Log off : shutdown -l -t 0
Hibernate : rundll32.exe PowrProf.dll, SetSuspendState Hibernate
Command line options for shutdown :
C:\> shutdown /?
Usage: shutdown [-i | -l | -s ...
Created by woolf on January 15, 2010 05:00:14
Last update: January 15, 2010 05:03:49
Video taken with the Canon SD1200 camera comes in the AVI format, where the video is MJPEG and the audio is PCM. For some weird reason it doesn't play on my Windows XP box! The video is sluggish and the audio is often interrupted. But it works fine on my old Windows 2000 box.
Since it's taking too much space anyway, I used mencoder to compress the video with XVID encoding and audio with MP3. This is the script.
#!/usr/bin/perl
$destdir = "C:/Documents and Se...
Tools used:
Mencoder: http://www.mplayerhq.hu/
Mediainfo: http://mediainfo.sourceforge.net
Created by woolf on April 17, 2009 01:51:27
Last update: April 17, 2009 02:20:52
Configuration
Bring up the System Properties dialog and click the System Restore tab.
Usage
Bring up the System Restore tool from the Accessories -> System Tools -> System Restore menu.
Cleanup
Open disk properties (right click on the drive, select properties), in the general tab click Disk Cleanup , click the More Options tab to clean up space used by System Restore .
Reference
Windows XP System Restore Is Easy to Use
Created by woolf on April 01, 2009 18:49:35
Last update: April 01, 2009 18:51:15
Press the Windows button together with the Pause/Break button (Win+Break). The Pause/Break button is at the top right corner of the keyboard.
The Device Manager is under the Hardware tab.
Created by woolf on January 24, 2009 04:01:26
Last update: January 24, 2009 04:01:26
Command Meaning
./configure configure the package for your system
make compile the package
make install install the programs and man pages
make clean remove the program binaries and object files
make distclean make clean, but also remove the files that 'configure' created
Created by woolf on January 15, 2009 05:05:19
Last update: January 19, 2009 05:07:49
MinGW is "Minimalist GNU for Windows" - a collection of freely available and freely distributable Windows specific header files and import libraries that allows you to build Windows native executables with GCC. MSYS is a minimal system that provides a POSIX compatible shell and utilities so that you can run the normal set of GNU build tools (such as configure, make). You can download MinGW and MSYS from sourceforge.net: http://sourceforge.net/project/showfiles.php?group_id=2435 . The set of files is overwhelming and installation is confusing sometimes. But here's what I did in order to build ffmpeg on Windows XP: Download "Automated MinGW Installer" (MinGW 5.1.4) Install MinGW 5.1.4. Select "Candidate". Check g++, but leave other options unchecked Finish installation of MinGW Install MSYS DTK 1.0 in C:\msys\1.0. Download "MSYS...