1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868
|
<html>
<head>
<link href="../lg.css" rel="stylesheet" type="text/css" media="screen, projection" />
<title>
Linux Gazette : January 2005 (#110)
</title>
<style type="text/css" media="screen, projection">
<!--
.twdtarticle {
width: 84%;
/* margin:0px;
left:0px; */
}
#twdtbody {
/*
margin-left:0px;
margin-right:0px;
*/
}
.twdtarticle h1 {
font-size:19px;
text-align:center;
}
.lgcontent {
width: 84%;
margin-top: 30px;
/* left:0px; */
}
-->
</style>
</head>
<body id="twdtbody">
<img src="../gx/2003/newlogo-blank-200-gold2.jpg" alt="Linux Gazette" id="twdtlogo"/>
<p id="fun">...making Linux just a little more fun!</p>
<div class="content lgcontent">
<h2>January 2005 (#110):</h2>
<ul>
<li><a href="#lg_cover">The Front Page</a>, by <i>Heather Stern</i></li>
<li><a href="#lg_mail">The Mailbag</a>
<li><a href="#lg_tips">More 2 Cent Tips!</a>
<li><a href="#lg_answer">The Answer Gang</a>
<li><a href="#anonymous">Bash Shell and Beyond</a>, by <i>Anonymous</i></li>
<li><a href="#engel">Free as in Freedom: Part One: GNU/Linux</a>, by <i>Adam Engel</i></li>
<li><a href="#hameed">ParallelKnoppix</a>, by <i>Majid Hameed</i></li>
<li><a href="#kapil">A Knight's Tour on OCaml (when a Python fails to digest it)</a>, by <i>Kapil Hari Paranjape</i></li>
<li><a href="#nielsen">Preparing For My Interviews Part 2: MySQL and Python</a>, by <i>Mark Nielsen</i></li>
<li><a href="#oregan">Flickr and Perl</a>, by <i>Jimmy O'Regan</i></li>
<li><a href="#oregan1">Building a simple del.icio.us clone</a>, by <i>Jimmy O'Regan</i></li>
<li><a href="#park1">Bash Shell and Beyond Applied</a>, by <i>William Park</i></li>
<li><a href="#seymour">Design Awareness</a>, by <i>Mark Seymour</i></li>
<li><a href="#ecol">Ecol</a>, by <i>Javier Malonda</i></li>
<li><a href="#lg_laundrette">The Linux Laundrette</a>
</ul>
</div>
<br />
<div class="content lgcontent">
<a name="lg_cover"></a>
<h1>The Front Page</h1>
<p id="by"><b>By <A HREF="../authors/stern.html">Heather Stern</A></b></p>
</b>
</p>
<p>
<center>
<img src="misc/cover/HappyTuxWithPlushy.jpg" alt="Happy Tux holding a plush Tux">
</center>
<!-- Yep, that's all folks! -->
</p>
<!-- *** BEGIN author bio *** -->
<P> Heather is Linux Gazette's Technical Editor and The Answer Gang's Editor
Gal.
<!-- *** BEGIN bio *** -->
<hr>
<P>
<img ALIGN="LEFT" ALT="[BIO]" SRC="../gx/2002/note.png" class="bio">
<em>
Heather got started in computing before she quite got started learning
English. By 8 she was a happy programmer, by 15 the system administrator
for the home... Dad had finally broken down and gotten one of those personal
computers, only to find it needed regular care and feeding like any other
pet. Except it wasn't a Pet: it was one of those brands we find most
everywhere today...
<P> Heather is a hardware agnostic, but has spent more hours as a tech in
Windows related tech support than most people have spent with their computers.
(Got the pin, got the Jacket, got about a zillion T-shirts.) When she
discovered Linux in 1993, it wasn't long before the home systems ran Linux
regardless of what was in use at work.
<P> By 1995 she was training others in using Linux - and in charge of all the
"strange systems" at a (then) 90 million dollar company. Moving onwards, it's
safe to say, Linux has been an excellent companion and breadwinner... She
took over the HTML editing for "The Answer Guy" in issue 28, and has been
slowly improving the preprocessing scripts she uses ever since.
<P> Here's an autobiographical filksong she wrote called
<A HREF="../issue67/misc/tag/filksong-programmers-daughter.txt">The Programmer's Daughter</A>.
</em>
<br CLEAR="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/stern.html">Heather Stern</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="lg_mail"></a>
<h1>The Mailbag</h1>
</b>
</p>
<p>
<HR>
<center>
<BIG><STRONG><FONT COLOR="maroon">HELP WANTED : Article Ideas</FONT></STRONG></BIG>
<BR>
<STRONG>Submit comments about articles, or articles themselves (after reading <a href="../faq/author.html">our guidelines</a>) to <A HREF="mailto:gazette@linuxgazette.net">The Editors of <i>Linux Gazette</I></A>, and technical answers and tips about Linux to <A HREF="mailto:tag@linuxgazette.net">The Answer Gang</A>.
</STRONG>
</center><HR>
<UL>
<!-- index_text begins -->
<li><A HREF="#wanted.1"
><strong>Linux boots from RAMdisk,</strong></a>
<li><A HREF="#wanted.2"
><strong>Python conferences in the US and Europe</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted.1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Linux boots from RAMdisk,</FONT></H3>
Tue, 23 Nov 2004 20:57:34 -0500
<BR>keesan (<a href="mailto:tag@linuxgazette.net?cc=keesan@cyberspace.org&subject=%20Re%3A%20%5BLG%20110%5D%20help%20wanted%20%231">keesan from cyberspace.org</a>)
<P><STRONG>
ASUS P5A-B motherboard with AMD-K6-2 300MHz cpu. Other people report
assorted linux boot problems with this board and other ASUS boards.
</STRONG></P>
<P><STRONG>
I can boot my version of linux (Basixlinux 2, based on <A HREF="http://www.slackware.org/">Slackware</A> 7.1, or
Basiclinux 3 with the SW71 kernel but libc5) from a 2-floppy lilo-boot
version that uses RAMdisk, a loadlin-boot RAMdisk version, a loop version,
or SW4.0 zipslack (UMSDOS). But if I try to boot BL2 or BL3 with loadlin
from a hard drive installation, with the kernels compiled for them or with
bare.i Slackware kernel, the boot process stops at the lines:
</STRONG></P>
<pre><strong>Linux NET4.0 for Linux 2.2
Based upon Swansea...
Net4: Unix domain sockets 1.0 for Linux NET4.0
</strong></pre>
<P><STRONG>
(The Basiclinux kernel gets me two lines further along to something about
TCP).
</STRONG></P>
<P><STRONG>
I tried starting with FreeDOS, DR-DOS, and Win98 DOS (since I have three
other computers that will boot linux with loadlin from Win9X DOS but not
always from the others, and one that will boot loop linux from any DOS
except Win9X). I do not have a hard drive version set up to boot with
lilo. Is that likelier to work? I don't want to use lilo as I work in
DOS more of the time.
</STRONG></P>
<P><STRONG>
I tried telling CMOS that there was no second drive because someone
suggested that method to get linux to recognize a larger drive, but my
drive is 3GB. I have DOS on a master drive and two linux partitions on
the slave drive, with one linux in each, and RAMdisk and loop versions in
DOS partitions.
</STRONG></P>
<P><STRONG>
I am able to mount the linux partitions when running from the RAMdisk or
loop versions and then switch to run linux on them:
</STRONG></P>
<pre><strong>mount /dev/hdb1 /mnt
chroot /mnt
</strong></pre>
<P><STRONG>
This puts hdb1 on <TT>/</TT> and I can then use linux on the ext2 partition.
</STRONG></P>
<BLOCKQUOTE>
[Kapil]
But this is essentially what most initrd-based start up procedures do
anyway! So, though I haven't used BasixLinux, I would guess that the
problem is with the start scripts on your ext2 partition in <TT>/etc/rcS.d</TT>
or some such.
</BLOCKQUOTE>
<P><STRONG>
This is a minor nuisance and I suppose I could put it in an rc file, or
just use the smaller version unless I needed the larger one.
</STRONG></P>
<P><STRONG>
I am writing out of curiosity - why are so many computers difficult to
boot with linux?
</STRONG></P>
<BLOCKQUOTE>
[Kapil]
The glass could also be half full! Given the variety of hardware that
Linux runs on it is surprising that so many computers boot with it at
all.
<IMG SRC="../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<P><STRONG>
Is there a better fix for this one? Is there a better
fix for the other three besides installing Win98 DOS on them (and having
to use a boot floppy to defragment the DOS partitions after that) or
rebooting with a Win98 boot disk to go from DOS to linux?
</STRONG></P>
<P><STRONG>
I also have one Northgate 386 SX 20MHz 4.7MB RAM laptop which has no
cursor in linux. Cirrus video, 256K video RAM, mono VGA. The cursor is
plain white when used in color VGA. The computer in theory can output to
a color monitor in 800x600 resolution.
</STRONG></P>
<BLOCKQUOTE>
[Kapil]
Is this with or without X? The question is not clear enough. Are you in
graphics mode or text mode?
</BLOCKQUOTE>
<P><STRONG>
Does laptop video treat software cursors oddly? A cursor appears when I
use a text editor. There is a cursor while booting to DOS and in DOS.
</STRONG></P>
<P><STRONG>
Another 386 with identical speed, RAM and video won't boot linux at all -
the screen goes black and I need to reboot. What might cause this
problem?
</STRONG></P>
<BLOCKQUOTE>
[Kapil]
Try booting with the additional option "vesafb=off". Some of the older
hardware may not respond well to being switched to graphic mode.
</BLOCKQUOTE>
<P><STRONG>
Thanks for your help a couple of years ago getting my first linux set up
<BR>to work with both TTL and VGA monitors.
</STRONG></P>
<blockquote><font color="#000066">On behalf of The Answer Gang, you're welcome... (/me turns to our Gentle
Readers) and anyone among our readership who'd like to jump in on the problem
(our header does say "...and You!" after all) is welcome to send
replies to you, and encouraged to Cc: tag (The Answer Gang) at
linuxgazette.net.
-- Heather</font></blockquote>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="wanted.2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Python conferences in the US and Europe</FONT></H3>
Sat Dec 18 16:26:34 2004
<BR>Mike Orr (<a href="mailto:tag@linuxgazette.net?cc=&cc=mso@oz.net&subject=%20Re%3A%20%5BLG%20110%5D%20help%20wanted%20%232"><em>LG</em> Contributing Editor</a>)
<blockquote><font color="#000066">Mike sent this to his local Python user group, and to our Answer Gang.
I think it's an interesting question, one all you pythonistas out there
might be willing to express an opinion about. Reply to <A HREF="mailto:tag@linuxgazette.net"
>tag@linuxgazette.net</A>;
Mike will let his pal know if we get some reasonable statistics, and juicy
replies may end up in a future mailbag.
-- Heather</font></blockquote>
<P>
I got an interesting call from a friend of mine, a PyCon regular who, as
it turns out, lives in Sweden. There's been a discussion on the PyCon
list about whether the $175 conference fee is too high, too low, or
just right. That got her asking me what would it take to get more
Americans to present a talk at EuroPython (in Sweden next July --
<A HREF="http://www.europython.org"
>http://www.europython.org</A>) and Python UK
(in England next April -- <A HREF="http://www.accu.org/conference"
>http://www.accu.org/conference</A>), and more
Europeans to PyCon (in Washington DC next April -- <A HREF="http://pycon.org"
>http://pycon.org</A>).
I thought I'd throw the question out to y'all for ideas. Not everyone
here is interested in Python, but the same thing applies to Linux and
other free software projects.
</P>
<P>
She said that she could guess why why not many American presenters would
go to Europe, but she wanted to ask somebody on this side of the pond in
case there were factors she wasn't aware of. I said the main problem
for Americans (besides the expense) is that most people only get two
weeks' vacation per year, so they have to use the time selectively. She
asked why that was, since in Sweden the minimum is six weeks and most
people get nine. I said I don't know, it's just a longstanding
tradition. She asked why people don't demand more. I said people are
much more concerned about health care, and more vacation time is lower
in their priorities.
</P>
<P>
She said that for her, the main problem with coming to American
conferences is the expense. That seems to be outside our control since
the conference fee is minimal already, and we can't do anything about
airfares or accommodation fees. 'Course the falling dollar will help.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</P>
<P>
As far as I can tell, the most important thing is just to keep these
conferences going, so that even if people can't attend next year, maybe
they can do the year after, or maybe some overseas people will go to one
and others to the next.
</P>
<P>
Another thing that's happening in the Python world is different kinds of
events are emerging. These three are traditional conferences with
speakers. In Seattle we've had a couple sprints (=weekend hacking
sessions) without speakers, and I gather those are happening in Europe
too. So maybe the answer is not just more opportunities for speakers,
but more types of events.
</P>
<P>
Any other ideas?
</P>
<!-- end 2 -->
<HR>
<center>
<BIG><STRONG><FONT COLOR="maroon">GENERAL MAIL</FONT></STRONG></BIG>
<BR>
</center><HR>
<UL>
<!-- index_text begins -->
<li><A HREF="#mailbag.1"
><strong>Re: your comment suggested an article idea</strong></a>
<li><A HREF="#mailbag.2"
><strong>LG #109 - Laundrette</strong></a>
<li><A HREF="#mailbag.3"
><strong>Math bug in Advanced Features of netfilter/iptables article</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag.1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Re: your comment suggested an article idea</FONT></H3>
Sun Dec 12 08:55:47 2004
<BR>Ben Okopnik (<a href="mailto:gazette@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%20mailbag%20%231"><em>LG</em> Editor</a>)
<BR>Question by Edgar Howell
<blockquote><font color="#000066">Edgar Howell is one of our article authors, see
<A HREF="http://linuxgazette.net/authors/howell.html"
>http://linuxgazette.net/authors/howell.html</A> for his bio.
-- Heather</font></blockquote>
<P><STRONG>
As you noticed, the use of a wildcard in a command like mount
really blew me away. The remark you added to my article compounded
it. find, great. less, OK... mount?!
</STRONG></P>
<BLOCKQUOTE>
[Ben]
[grin] Yeah, pretty amazing. It gets much <EM>more</EM> amazing when you
install and enable "bash_completion"; all the... well, <EM>stuff</EM> that has
multiple options becomes available at the prompt. E.g., typing "ssh "
(note the space) and hitting 'Tab' twice shows me a list of all the
hosts in my ~/.ssh/known_hosts; typing "mount " and hitting 'Tab' three
times (since all the entries start with '<TT>/</TT>', which is displayed
immediately) gives me a list of all the directories listed in
"<TT>/etc/fstab</TT>"... obviously, completion happens when you have a unique
string: I've been doing "ssh li<Tab><Enter>" for a session at
linuxgazette.net for so long that I'd be lost without it.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<P><STRONG>
If you count the couple of years I had used Coherent prior to
graduating to <A HREF="http://www.suse.com/">SuSE</A> Linux, I've probably been at *nix for 10 years
or so. In other words off the steep part of the learning curve,
but, boy, is there ever enough curve left!
</STRONG></P>
<BLOCKQUOTE>
[Ben]
That's the lovely thing about Unix, to me. You keep gaining these chunks
of power every time you learn something - and the chunks don't get any
smaller with time. It can be a little tough on the ego for the folks who
think that way... but to me, it's a fantastic opportunity to squeeze any
amount of juice that I may need out of a system. It's not a question of
"is it possible" any longer, but "where do I find the HOWTO?" instead.
</BLOCKQUOTE>
<P><STRONG>
Anyhoo, I would like to encourage you to do an article on obscure
uses of wildcards on the command line.
</STRONG></P>
<BLOCKQUOTE>
[Ben]
Um. Well... the problem is in defining "obscure". To me, they're not;
they're just how shells operate. To someone else, they may well be
obscure. Say... maybe looking at it in broader terms would be useful -
an article, or even a series on CLI usage in general might be pretty
good!
</BLOCKQUOTE>
<BLOCKQUOTE>
I'm sorta swamped for the moment - and actually "owe" about three
articles to myself
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> - but that one sounds like a really good idea.
</BLOCKQUOTE>
<P><STRONG>
Like ignoring the consequences of SuSE's apparent elimination of
the need for mount -- there are still questions in my mind but, then,
I bounce back and forth between root and any of several users a
lot and may have messed things up -- what would "mount *" do?
</STRONG></P>
<BLOCKQUOTE>
[Ben]
It would give you an error.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<P><STRONG>
Try
to mount every <TT>/dev?</TT> Cycle through <TT>/etc/fstab?</TT> root can mount
stuff not in <TT>/etc/fstab.</TT> Permissions. Users. Mind-boggling.
</STRONG></P>
<BLOCKQUOTE>
[Ben]
Essentially, you've answered your own question: "mount *" would just be
too ambiguous. E.g., "ssh " or "ssh ben@" is not at all ambiguous: the
host name is what has to come after either one of them, and it makes
sense that hitting the completion key (Tab) would "complete" them or
show the possible options. I assume you know that 'Tab' works to
complete program names at the CLI, right? Filenames, too -
"vi ~/.bash_p<Tab>" pulls up my "~/.bash_profile" every time.
</BLOCKQUOTE>
<P><STRONG>
Keep up the good work
</STRONG></P>
<BLOCKQUOTE>
[Ben]
Thanks, Edgar! Heck, you might want to write the article yourself: read
the Bash man page, and take a look at the "<TT>/etc/bash_completion</TT>" script.
That should give you a <EM>good</EM> start.
</BLOCKQUOTE>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag.2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">LG #109 - Laundrette</FONT></H3>
Sun Dec 5 10:23:23 2004
<BR>Jimmy O'Regan (<a href="mailto:gazette@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%20mailbag%20%232">The <em>LG</em> Answer Gang</a>)
<BR>Question by Mark W. Tomlinson
<P><STRONG>
I had just settled in of a Saturday evening with a wee dram of Irish
whiskey, a good Henry Clay cigar and Linux Gazette #109. I had worked
my way to "Return of the Linux Laundrette" and reached the section "Re:
[LG 87] help wanted #4". This piece caused me to drop my cigar (due to
uncontrollable grinning, giggling and guffawing), setting my sweatpants
on fire.
</STRONG></P>
<P>
<A HREF="http://linuxgazette.net/109/lg_laundrette3.html#nottag2/14"
>http://linuxgazette.net/109/lg_laundrette3.html#nottag2/14</A> for the
terminally lazy
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</P>
<P><STRONG>
I'm fine, thanks - I extinguished the blaze by spilling my libation in
my lap - followed, of course, by the water chaser. Be advised that I
will be taking legal advice re: financial recovery for the loss of the
whiskey...
</STRONG></P>
<P>
Well, Ben and I have our own sideline business
(<A HREF="http://linuxgazette.net/107/misc/laundrette/lg_hitsquad.html"
>http://linuxgazette.net/107/misc/laundrette/lg_hitsquad.html</A>), so I can
say with some confidence that it won't come to that, though some
recovery may occur at some later date.
</P>
<P><STRONG>
I don't know how you people manage to produce such an outstanding
combination of useful Linux information, non sequiturs and a, ah, rather
<veering> approach to humor (my kind!) - but I certainly hope you keep
doing it for a long time to come.
</STRONG></P>
<P>
Well, I'll be compiling it for a while to come: it's a lot of fun to go
back over the offtopic threads every month, especially since there are
so many of them --
</P>
<blockquote><pre>Dec 01 08:44:05 <editorgal> lucky sucker, the recent gang must be a treasure trove for laundrette bits.
Dec 01 08:45:29 <jimregan> I felt kind of duty bound to take over the laundrette...
cos most of the time all I do is perpetuate those threads
[though I should have said 'perpetrate' :) ]
Dec 01 08:45:39 <editorgal> lol
</pre></blockquote>
<P><STRONG>
Sincerely,
<BR>Mark W. Tomlinson
</STRONG></P>
<P>
Thanks for writing,
<BR>Jimmy
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="mailbag.3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Math bug in Advanced Features of netfilter/iptables article</FONT></H3>
Mon Dec 6 03:59:45 2004
<BR>Barry O'Donovan (<a href="mailto:gazette@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%20mailbag%20%233"><em>LG</em> Author</a>)
<BR>Question by Rich Price (PRICER from us.panasonic.com)
<P>
Hi Rich, all,
</P>
<P><STRONG>
Advanced Features of netfilter/iptables by Barry O'Donovan [November
2004 (#10
<IMG SRC="../gx/dennis/smily.gif" ALT="8)"
height="24" width="20" align="middle">] was a very informative article.
</STRONG></P>
<P>
Thanks! It's always good to hear positive feedback.
</P>
<P><STRONG>
But my "math flag" flew
from my pocket when I saw his example for using the random module.
</STRONG></P>
<P>
So did mine on reading the published article. I had actually planned to
point it out with an Octave example demonstrating the difference
between the right and wrong answer in this months article, but when it
came to writing it I discarded the example as it didn't fit with my
layout and completely forgot to add it as erratum.
</P>
<P>
If there is one thing I have learnt about statistics (and I've learnt
quite a lot between my degree which was top heavy on stats and my
research where I use the damn stuff every day) is that if the answer is
simple, then it's just plain wrong!
</P>
<P><STRONG>
If you wish to divide the packets evenly among the four servers then
the example should look like this:
</STRONG></P>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<pre><strong>-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m random --average 25 \ -j DNAT --to-destination 192.168.0.5:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m random --average 33 \ -j DNAT --to-destination 192.168.0.6:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -m random --average 50 \ -j DNAT --to-destination 192.168.0.7:80
-A PREROUTING -i eth0 -p tcp --dport 80 -m state --state NEW -j DNAT --to-destination 192.168.0.8:80
</strong></pre>
<p align="center">...............</p>
</TD></TR></TABLE><P><STRONG>
The reason is that, after 25% of the packets are NATed by the first
rule, only 75% of them will be seen by the second rule. A third of
them would equal 25% of the total. Likewise, the third rule will see
only half of the total and half of that is 25% of the total.
</STRONG></P>
<P>
Correct. A subtle and simple mistake that might cause many a sys-admin a
prolonged headache!
</P>
<P>
When speaking of mistakes and statistics, I'm always reminded of a few
quotes:
<p>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<P>
"There are two kinds of statistics: the kind you look up and the kind
you make up."
</P>
<P>
"I gather, young man, that you wish to be a Member of Parliament. The
first lesson that you must learn is, when I call for statistics about
the rate of infant mortality, what I want is proof that fewer babies
died when I was Prime Minister than when anyone else was Prime
Minister. That is a political statistic."
</P>
<P>
"You know how dumb the average guy is? Well, by definition, half of them
are even dumber than that."
</P>
<P>
"Statistics in the hands of an engineer are like a lamppost to a
drunk-they're used more for support than illumination."
</P>
<P>
"Numbers are like people; torture them enough and they'll tell you
anything."
</P>
<P>
"There are three kinds of lies: lies, damn lies, and statistics."
</P>
<P>
"A statistician is a man who comes to the rescue of figures that cannot
lie for themselves."
</P>
<P>
"First get your facts; then you can distort them at your leisure."
</P><p align="center">...............</p>
</TD></TR></TABLE>
<P>
Ahhhh.... statistics. So easy to love and hate all at once!
</P>
<P>
Cheers,
Barry
</P>
<P>
P.S. Thanks also to John Macdonald and one of our French translators,
Emmanuel Araman, who also pointed this out to me.
</P>
<!-- end 3 -->
<HR>
<center>
<BIG><STRONG><FONT COLOR="maroon">GAZETTE MATTERS</FONT></STRONG></BIG>
<BR>
</center><HR>
<UL>
<!-- index_text begins -->
<li><A HREF="#gaz.1"
><strong>Linux Gazette: checking in from India</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="gaz.1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/envelope.gif">
<FONT COLOR="navy">Re: Linux Gazette: checking in</FONT></H3>
Thu, 30 Dec 2004 13:52:39 +0530
<BR>Ben Okopnik (<a href="mailto:gazette@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%20gazette%20matters%20%231">ben from linuxgazette.net</a>)
<P><STRONG>
I hadn't sent this to TAG - it was a semi-private query - but, for
general info, I was checking in with all our Indian correspondents:
</STRONG></P>
<p><Strong><ul>
<LI><A HREF="http://linuxgazette.net/authors/mathew.html"
>http://linuxgazette.net/authors/mathew.html</A>
<LI><A HREF="http://linuxgazette.net/authors/sunil.html"
>http://linuxgazette.net/authors/sunil.html</A>
<LI><A HREF="http://linuxgazette.net/authors/kapil.html"
>http://linuxgazette.net/authors/kapil.html</A>
<LI><A HREF="http://linuxgazette.net/authors/shuveb.html"
>http://linuxgazette.net/authors/shuveb.html</A>
<LI><A HREF="http://linuxgazette.net/authors/pramode.html"
>http://linuxgazette.net/authors/pramode.html</A>
<LI><A HREF="http://linuxgazette.net/authors/sayamindu.html"
>http://linuxgazette.net/authors/sayamindu.html</A>
<LI><A HREF="http://linuxgazette.net/authors/shekhar.html"
>http://linuxgazette.net/authors/shekhar.html</A>
<LI><A HREF="http://linuxgazette.net/authors/ramankutty.html"
>http://linuxgazette.net/authors/ramankutty.html</A>
<LI><A HREF="http://linuxgazette.net/authors/krishnakumar.html"
>http://linuxgazette.net/authors/krishnakumar.html</A>
<LI><A HREF="http://linuxgazette.net/authors/ashwin.html"
>http://linuxgazette.net/authors/ashwin.html</A>
<LI><A HREF="http://linuxgazette.net/authors/rajith.html"
>http://linuxgazette.net/authors/rajith.html</A>
</ul></Strong></p>
<p><Strong><ul>
<LI><A HREF="http://linuxgazette.net/authors/pai.html"
>http://linuxgazette.net/authors/pai.html</A>
<LI><A HREF="http://linuxgazette.net/authors/raghu.html"
>http://linuxgazette.net/authors/raghu.html</A>
</ul></Strong></p>
<P><STRONG>
I sent the message out last night; so far, the first five people have
responded. My best hopes and wishes go out to the rest, and to all.
</STRONG></P>
<BLOCKQUOTE>
[Breen]
Thanks for that, Ben. Please let us know as you hear from more of
our Indian friends.
</BLOCKQUOTE>
<P><STRONG>
I surely will, Breen. So far, we've got Vinayak's name to the five who
had responded previously; Sayamindu Dasgupta's address bounced, but I
found a phone number for him at <A HREF="http://peacefulaction.org"
>http://peacefulaction.org</A> which he
listed in his author profile. He's OK; seems he's in Kolkata (West
Bengal), and everything is all right there.
</STRONG></P>
<P><STRONG>
Folks, please keep them on your good wishes list or in your prayers, as
appropriate. It may be a small thing in the face of something this huge,
but... it's something. As Pramode said, "there are still human beings
alive who can feel the sorrow in another person's eyes - that's the only
consolation."
</STRONG></P>
<blockquote>
<p style="margin-bottom: 30px;"></p>
<P><STRONG>
[Ben] Are you all OK? I'd appreciate a response if you get a chance. I'd
imagine that many others here are just as concerned; I think that a lot
of people may just be... too stunned by the magnitude of this to come up
with a coherent response, and unsure of their own degree of connection
to you all. Me, I figure that we're all human beings - and that no man
is an island.
</STRONG></P>
<P><STRONG>
My heart goes out to you and all your countrymen in this difficult,
terrible time.
</STRONG></P>
<BLOCKQUOTE>
[Kapil]
Thanks for checking. Yes. It is truly a devastating event here. Relief
agencies are doing what they can but every bit counts.
</BLOCKQUOTE>
<P><STRONG>
I'm going to be letting people around here (northern Florida) know that
they can contribute to the Red Cross/Crescent India, and am going to
send a contribution myself. [sigh] Sunil mentioned that there's now
<EM>another</EM> warning out.
</STRONG></P>
<BLOCKQUOTE>
[Kapil]
The strange aspect of the tragedy is that people in Chennai who were more
than about 500 metres from the coast were almost unaware that anything
had happened. Since we live somewhat inland we were quite unaffected.
</BLOCKQUOTE>
<P><STRONG>
[Nod] Tsunamis are like that. They're slow and quiet, definitely so at
first; the traditional way to commit suicide during one is to follow the
ocean as it recedes from the shore.
</STRONG></P>
<P><STRONG>
Folks - everyone - imprint this in your brain forever: if you ever see
the ocean receding, <EM>RUN</EM> like hell for the high ground. You at least
stand a chance of surviving, then.
</STRONG></P>
<BLOCKQUOTE>
[Kapil]
P.S. There is no word for "tsunami" in any of the local languages which
perhaps gives an idea of how unexpected the event was.
</BLOCKQUOTE>
<BLOCKQUOTE>
[Vinayak Hegde]
You can add me to the list.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<P><STRONG>
With great pleasure! I just went through our list of authors, and
emailed everyone that was in India; you're just not listed as an author,
so no contact info came up. Glad to hear you're OK, too!
</STRONG></P>
<BLOCKQUOTE>
[Vinayak Hegde]
Thanks. Actually I am listed as a author
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> .
<A HREF="http://linuxgazette.net/authors/vinayak.html"
>http://linuxgazette.net/authors/vinayak.html</A>
</BLOCKQUOTE>
<P><STRONG>
[blink] Then I simply missed you. Ooops.
</STRONG></P>
<BLOCKQUOTE>
[Vinayak Hegde]
I live far away from the coast (in Bangalore). We did mobilise help and
have donated a lot of clothes/medicines for relief work. Though we
are safe in center of the Indian peninsula, we were shocked by the images
that were shown on television and splashed on the front pages of the
newspapers. I also read that 5 endangered tribes living in the
Andaman and Nicobar islands were wiped out forever and a few islands
were washed away (literally).
</BLOCKQUOTE>
<P><STRONG>
[sigh] Damn. The only thing I'd ever heard about Andaman islanders was
the fanciful stuff from Conan Doyle... and now, they're gone. Forever.
</STRONG></P>
<P><STRONG>
Contention from various quarters notwithstanding, this world is <EM>not</EM>
particularly friendly to man. I realize that it does no good to rail
against the weather, but... blood and hell, man! This is just appalling.
</STRONG></P>
<BLOCKQUOTE>
[Vinayak Hegde]
Yeah. It's good to know that I am not the only Sherlock Holmes Fan on this List
The Andamani Pymgy had a major role to play in "The Sign of Four".
Who could forget the thrilling story??
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<BLOCKQUOTE><DL><DT>
Link to the "Times of India" article here:
<DD><A HREF="http://www.freerepublic.com/focus/f-news/1309884/posts"
>http://www.freerepublic.com/focus/f-news/1309884/posts</A>
</DL></BLOCKQUOTE>
<P><STRONG>
Oh, indeed. And what a picture he draws! Reminded me quite a lot of Jack
London's "South Sea Tales", or perhaps "Adventure", and his descriptions
of the Salomon islanders.
</STRONG></P>
<P><STRONG>
Any news about the latest warning that Sunil mentioned?
</STRONG></P>
<BLOCKQUOTE>
[Raj Shekar]
Thanks a lot for writing. I am in Delhi, which was quite far from
where the tsunami stuck. I will be making a donation to the Prime
minister's fund and also write in to the local LUG to see if we can
do more than just sitting. One of the members of the mailing list is
working with the people who have been hit and has written down the
things they need:
<br><a href="https://ssl.cpsr.org/pipermail/india-gii/2004-December/009559.html"
>https://ssl.cpsr.org/pipermail/india-gii/2004-December/009559.html</a>
</BLOCKQUOTE>
<ol>
<li> Children's clothes in decent form
<li> Medicines - Paracetamol, ORS packets, Doxycycline, Dettol, bandages
<li> Blankets - a few thousands
<li> Gloves & masks to help volunteers clear the debris & dead bodies.
<li> Money - to buy essentials, water pots (which will be bought closer
to the areas)
</ol>
<blockquote><font color="#000066">Editor's note: Paracetomol is known as Acetominophen in the US, and might
be under that name in other countries.
-- Heather</font></blockquote>
<BLOCKQUOTE>
I hope I will be able to find some (honest) agency who will be
willing to take donations of medicine and blankets.
</BLOCKQUOTE>
<BLOCKQUOTE>
Thanks again for caring
</BLOCKQUOTE>
<BLOCKQUOTE>
[Jimmy]
Wikipedia have an international list:
<A HREF="http://en.wikipedia.org/wiki/Donations_for_victims_of_the_2004_Indian_Ocean_earthquake"
>http://en.wikipedia.org/wiki/Donations_for_victims_of_the_2004_Indian_Ocean_earthquake</A>
</BLOCKQUOTE>
<BLOCKQUOTE>
[Hiran Ramankutty]
I am absolutely fine. By god's grace I am not near the vicinity of the
Tsunami. But hearing about the disaster itself gives enough sight of
what would have happened.
</BLOCKQUOTE>
<BLOCKQUOTE>
Pray for all Tsunami victims.
</BLOCKQUOTE>
<BLOCKQUOTE>
[Krishnakumar R]
I am fine. I had come home (Kerala in southern India) for a 10-day
holiday. But as my native place is far from coastal area,
I was not affected.
</BLOCKQUOTE>
<BLOCKQUOTE>
I can also vouch for Pramode. C . E , that he is safe,
as I had met him in person day-before-yesterday.
</BLOCKQUOTE>
<BLOCKQUOTE>
Ben, I really appreciate the concern and the kindness you extend to
all of us. Thank you very much.
</BLOCKQUOTE>
<BLOCKQUOTE>
It is during the dark times like this that we understand how
precious our lives are; which we usually take for granted. Lets
all extend our help in whatever way we can, to the victims of
this tragedy.
</BLOCKQUOTE>
<BLOCKQUOTE>
[Ashwin N]
I am fine. I stay in Bangalore which is very far from the coast.
</BLOCKQUOTE>
<BLOCKQUOTE>
This truly has turned into a catastrophe of immense proportion. Entire
fishing communities have been washed away in some places <IMG SRC="../gx/dennis/unsmily.gif" ALT=":-("
height="24" width="20" align="middle">
</BLOCKQUOTE>
</blockquote>
<P><STRONG>
Rajith is OK; by extension, Maxin B. John (whom I missed due to the
name...) must be OK as well - they co-authored an article last month, so
I figure they're in close touch.
</STRONG></P>
<BLOCKQUOTE>
[Rajith R]
Thanks for checking in. I am ok and I live in
Trivandrum. Even tough it is near sea here there were no problems.
</BLOCKQUOTE>
<blockquote><font color="#000066">As of press time there our very few of our Indian authors and TAG members
<!--
who have not checked in - Rajith R, Raghu J Menon, Krishna G Pai, and
Ashwin N. Ashwin's website says he lives in Bangalore, Raghu lives in Kerala,
-->
who have not checked in - Raghu J Menon, and Krishna G Pai.
Raghu lives in Kerala,
and somehow it seems like everyone knows Pramode (hey Pramode, check in on
'em will ya? Thanks buddy). If you have news of our friends, please let us
know.
</font></blockquote>
<blockquote><font color="#000066">May this New Year be better than our last, and whatever troubles we suffer
draw us closer rather than tear us apart. With love to you all
-- Heather</font></blockquote>
<!-- end 1 -->
<hr>
<CENTER><Font face="Helvetica"><STRONG>
This page edited and maintained by the Editors of <I>Linux Gazette</I><br>HTML script maintained by <A HREF="mailto:star@starshine.org">Heather Stern</a> of Starshine Technical Services, <A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</STRONG></Font></CENTER>
<hr>
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="lg_tips"></a>
<h1>More 2 Cent Tips!</h1>
</b>
</p>
<p>
<center><STRONG>See also: The Answer Gang's
<a href="../tag/kb.html">Knowledge Base</a>
and the <i>LG</i>
<a href="http://www.linuxgazette.net/search.html">Search Engine</a></STRONG>
</center><HR>
<UL>
<!-- index_text begins -->
<li><A HREF="#tips.1"
><strong>Firewall</strong></a>
<li><A HREF="#tips.2"
><strong>Cygwin from a CD</strong></a>
<li><A HREF="#tips.3"
><strong>Tip of the Day: regular expressions</strong></a>
<li><A HREF="#tips.4"
><strong>Adding custom headers in Thunderbird</strong></a>
<li><A HREF="#tips.5"
><strong>Counting braces</strong></a>
<li><A HREF="#tips.6"
><strong>JPEG to PS</strong></a>
<li><A HREF="#tips.7"
><strong>Setting the Clock on Linux</strong></a>
<li><A HREF="#tips.8"
><strong>SMTP-time despamming</strong></a>
<li><A HREF="#tips.9"
><strong>starting X automatically without [gkx]dm</strong></a>
<li><A HREF="#tips.10"
><strong>whois.sc</strong></a>
<!-- index_text ends -->
</UL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.1"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Firewall</FONT></H3>
Hugo Mills (<a href="mailto:tag@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%231">darksatanic, #hants on irc.blitzed.org</a>)
<div class="irc">
<table>
<tr><td id="r">13:04 <@darksatanic> </td><td>I usually use it for debugging firewalls.</td></tr>
<tr><td id="r">13:04 <@darksatanic> </td><td>watch -n1 iptables -nvL \| sed -ne /^Chain INPUT/,/^$/p</td></tr>
<tr><td id="r">13:05 <@darksatanic> </td><td>There's a 2¢ tip for you...</td></tr>
<tr><td id="r">13:07 <@darksatanic> </td><td>The sed bit prints out just the chain you want.</td></tr>
<tr><td id="r">13:08 <@darksatanic> </td><td>My rules for the firewall are just a tad too big to fit on the screen,</td></tr>
<tr><td id="r">13:09 <@darksatanic> </td><td>so I use that (and things like it) to show only the chains I want.</td></tr>
</table>
<p><br clear="all"></p>
</div>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.2"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Cygwin from a CD</FONT></H3>
Jimmy O'Regan (<a href="mailto:tag@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%232">The <em>LG</em> Answer Gang</a>)
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] This is a follow-up to <A HREF="http://linuxgazette.net/109/lg_tips.html#tips.2"
>http://linuxgazette.net/109/lg_tips.html#tips.2</A>
</blockquote></font>
<P>
Whoops. Having just looked back over the .reg file, I see that I have
the path for X's fonts entered differently to the rest of the file: this
<TT>/is</TT> not/ the reason why X doesn't work from a CD.
</P>
<P>
Saw this on <A HREF="http://www.slashdot.org/">Slashdot</A> today: XliveCD (<A HREF="http://xlivecd.indiana.edu"
>http://xlivecd.indiana.edu</A>) is a
CD image that autoruns an X session when put into a Windows machine
(it's based on Cygwin).
</P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.3"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Tip of the Day: regular expressions</FONT></H3>
Dave Whitinger (<a href="mailto:tag@linuxgazette.net?cc=dave@lxer.com&subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%233">dave from lxer.com</a>)
<P><STRONG>
Forwarding to you a good tip by Robert Whitinger. If you ever
run dry and need fresh tips for upcoming LGs let me know - we've
got a ton of these fun ones.
</STRONG></P>
<BLOCKQUOTE>
[Ben]
Thanks, Dave - we're always looking for 2-cent tips like these! I
believe Heather has mentioned this in the Mailbag recently.
</BLOCKQUOTE>
<P><STRONG>
(And please keep up the great work!)
</STRONG></P>
<BLOCKQUOTE>
[Ben]
[grin] Much appreciated; we'll do our best. Keep on reading, and let
your friends know about us; the more folks read (and write for) us, the
better we get.
</BLOCKQUOTE>
<P><STRONG>
best,
dave
</STRONG></P>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<P><STRONG>
I don't know about you, but I've spent a lot of time learning all
the intricacies of the preg_... pcre functions. But whenever I
go to the shell environment, the rules are different and so are
the results.
</STRONG></P>
<P><STRONG>
Today, I found `pcregrep` and it behaves exactly like the perl
compatible regular expression from php and perl since it does in
fact use the same engine. Now I have only one regex syntax to
know in detail, and my regexs work the same everywhere.
</STRONG></P>
<P><STRONG>
Now, I can say things like:
</STRONG></P>
<P><STRONG><CODE>
pcregrep -r ^[ae].*?log$ *
</CODE></STRONG></P><p align="center">...............</p>
</TD></TR></TABLE>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.4"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Adding custom headers in Thunderbird</FONT></H3>
Andy Burns (<a href="mailto:tag@linuxgazette.net?cc=andy.burns@adslpipe.co.uk&subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%234">andy.burns from adslpipe.co.uk</a>)
<br>Answered By Brian Bilbrey,
Jimmy O'Regan
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] This is a follow-up to a 2c Tip in LG #109:
<A HREF="http://linuxgazette.net/109/lg_tips.html#tips.1"
>http://linuxgazette.net/109/lg_tips.html#tips.1</A>
</blockquote></font>
<P><STRONG>
I stumbled across your article on mozilla/thunderbird headers (I'm only
an irregular reader)
</STRONG></P>
<P><STRONG>
I had a look an the "mheny" extension, because I like the idea of
customising the viewed headers, but I found that it <EM>CAN</EM> also control
the headers used at composition time. Not sure if you "summarized this
out" of your article, or didn't find it to start with
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle">
</STRONG></P>
<P><STRONG>
Within the option dialog for mheny extension, select custom headers from
the tree on the left, then pick composition from the drop list on the
right, and you can select existing fields or add/remove custom fields,
which then show up when you compose a message.
</STRONG></P>
<P><STRONG>
However (and I think this means it still doesn't fit your need) you
can't add a default value for a field.
</STRONG></P>
<BLOCKQUOTE>
[Brian]
And that's the bingo value: I did try mnenhy, but what I really want is
a constant X-blah header containing a specific value every time I send
an email via Mozilla Thunderbird.
</BLOCKQUOTE>
<P><STRONG>
Still a useful find, thanks ...
</STRONG></P>
<BLOCKQUOTE>
[Brian]
But you got farther than I did, thanks for the heads up, I'll work some
more with mnenhy when I get a chance. Of course, that I just spelled the
name of the extension right twice only shows that I had to look it up
twice, inside of a minute or two.
</BLOCKQUOTE>
<BLOCKQUOTE>
[Jimmy]
I came across this: <A HREF="http://www.picklematrix.net/archives/000969.html"
>http://www.picklematrix.net/archives/000969.html</A>
it turns out it <TT>/is/</TT> possible to add values to headers in Mozilla
</BLOCKQUOTE>
<BLOCKQUOTE>
add something like this to your prefs.js (not user.js):
</BLOCKQUOTE>
<blockquote><pre>user_pref("mail.identity.id2.headers", "tag");
user_pref("mail.identity.id2.header.tag", "X-gazette-tag: Jimmy");
</pre></blockquote>
<BLOCKQUOTE>
(id1 is the 'local folders' identity)
</BLOCKQUOTE>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.5"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Counting braces</FONT></H3>
Amod C Damle (<a href="mailto:tag@linuxgazette.net?cc=amod_cd@rediffmail.com&subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%235">amod_cd from rediffmail.com</a>)
<P><STRONG>
i am learning from your website "Linux Gazette" by which i am finding it
easy to learn unix.
</STRONG></P>
<P><STRONG>
but i am having problems compiling and debugging the following program ...
can you please help me out with its solution.
</STRONG></P>
<P><STRONG>
using UNIX filters and awk to write a shell script to filter out comment
statements in a C program
</STRONG></P>
<P><STRONG>
a shell script to count the number of parentheses and braces in a C
program
</STRONG></P>
<P><STRONG>
a shell script to recognize function calls in a C program
</STRONG></P>
<P><STRONG>
a shell script to generate code to do profiling of a C program (to insert
counters to the C program)
</STRONG></P>
<P><STRONG>
using filter or just grep, sed and awk)
</STRONG></P>
<P><STRONG>
hoping for some guidence
sincerely
Amod Damle
(ILLINOIS INSTITUTE OF TECHNOLOGY-CHICAGO)
</STRONG></P>
<BLOCKQUOTE>
[Sluggo]
The first thing you should see is the TAG Posting Guidelines
<A HREF="http://linuxgazette.net/tag/ask-the-gang.html"
>http://linuxgazette.net/tag/ask-the-gang.html</A>
in the FAQ section. There you'll see we don't do people's homework for
them. How do we know it's homework? You don't want to do a useful task:
who cares how many braces a C program has? You choose the tools first and
then the strategy, and you insist on using kludgey tools. If I really
wanted to count braces, I would write a Python program.
</BLOCKQUOTE>
<blockquote><pre>#!/usr/bin/env python
"""count-braces.py
Usage: count-braces.py <filename
Print the number of {}() characters in the input file.
"""
import re, sys
braceRx = re.compile( R"[{}()]" )
text = sys.stdin.read()
hits = braceRx.findall(text)
print len(hits)
</pre></blockquote>
<BLOCKQUOTE>
[Ben]
Jeez. Pythoneers. Always making things more complicated.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</BLOCKQUOTE>
<blockquote><pre>perl -0wne'print y/{()}//' file.c
</pre></blockquote>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.6"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">JPEG to PS</FONT></H3>
Kapil Hari Paranjape (<a href="mailto:tag@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%236">The <em>LG</em> Answer Gang</a>)
<P>
Readers who wish to convert JPEG to Postscript for inclusion in a
TeX/LaTeX document (or for any other reason) may want to use:
</P>
<blockquote><pre> convert file.jpg eps2:file.eps
^
</pre></blockquote>
<P>
Note the 2! This is better than the default "convert file.jpg file.eps"
and performs the same function as "jpeg2ps" (which is in <A HREF="http://www.debian.org/">Debian</A>
non-free).
</P>
<P>
Explanation:
The default postscript level for PS conversion is 1 which produces large
and bad conversions since it produces pixelised bitmaps. In PS Level 2
and Level 3 the conversion of JPEG is inbuilt so the above procedure
just adds a bit of postscript header stuff to the <EM>unchanged</EM> jpeg file.
In other words this conversion is lossless.
</P>
<P>
You can also use "eps3" as the tag but beware that may be reasonably new
postscript printers that are <EM>not</EM> level 3 compliant. (Ghostscript <EM>is</EM>
level 3 compliant).
</P>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.7"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">Setting the Clock on Linux</FONT></H3>
Walt R (<a href="mailto:tag@linuxgazette.net?cc=wmreinemer@tns.net&subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%237">wmreinemer from tns.net</a>)
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] This is a follow-up to <A HREF="http://linuxgazette.net/109/lg_mail.html#mailbag.1"
>http://linuxgazette.net/109/lg_mail.html#mailbag.1</A>
</blockquote></font>
<P>
The following script is my interface to netdate. I modified
the script found at website listed in the script. You have
to be root to set the system and hardware clocks, yet you
can query the time servers as a regular user.
</P>
<P>
Walt Reinemer
</P>
<p align="center">See attached <tt><a href="misc/tips/netdate.sh.txt">netdate.sh.txt</a></tt></p>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.8"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">SMTP-time despamming</FONT></H3>
Ben Okopnik (<a href="mailto:tag@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%238"><em>LG</em> Editor</a>)
<P>
Just saw this at <A HREF="http://www.freshmeat.net/">Freshmeat</A>; sounds really sweet, particularly the
per-user configuration capability. Hopefully, the world is heading this
way...
</P>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<blockquote><pre> Mail Avenger 0.5.1
by xxx - Sun, Nov 21st 2004 02:48 PDT
</pre></blockquote>
<P>
About: Mail Avenger is a highly-configurable, MTA-independent SMTP
server. It allows you to reject spam during mail transactions, before
spooling messages in your local mail queue. You can specify site-wide
default policies for filtering mail, but individual users can also craft
their own policies by creating avenger scripts in their home
directories. It includes many features not supported by other SMTP
servers, including mail-bomb protection, integration with kernel
firewalls, TCP SYN fingerprint and network route recording, SMTP-level
analysis of client implementations, SMTP callbacks to verify sender
addresses, per-user mail scripts that run during SMTP transactions,
virtual domain to user mapping for the purposes of filtering, SPF
(sender policy framework), dynamic SPF query construction in mail filter
scripts, support for easily issuing multiple concurrent, asynchronous
DNS and SPF queries from filter scripts, and the ability to run spam
filters such as spamassassin on message bodies before replying to SMTP
DATA commands.
</P>
<P>
Changes: A critical memory handling bug was fixed in the avenger.local
and deliver utilities.
</P><p align="center">...............</p>
</TD></TR></TABLE>
<!-- end 8 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.9"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">starting X automatically without [gkx]dm</FONT></H3>
Ben (<a href="mailto:tag@linuxgazette.net?subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%239"><em>LG</em> Editor</a>)
<P>
As past discussions in TAG have shown, I'm definitely not a fan of the
various display managers; I believe that they take away, or obscure, too
much of the control that a user has over X. However, starting X
automatically from your ~/.bash_profile doesn't seem like a very smart
move either: any time you get a login shell (e.g., logging into another
console), you'd be firing off a new instance of X - or at least trying
to, since it would die with a list of error messages.
</P>
<P>
The answer to this dilemma is a <EM>conditional</EM> start for X - in other
words, we only want to execute it if it's not already running, i.e. only
on the first login. To do this, just add the following line to the end
of your ~/.bash_profile:
</P>
<blockquote><pre>ps ax|grep -q "[ ]`which X`" || startx
</pre></blockquote>
<P>
For those who just have to know ([grin] I certainly would, if I were
you): the above expression pipes the list of running processes, which is
the output of the "ps" command, to 'grep', which searches it for the
presence of a running X. To make the search more precise, the command
substitution (`which X`) returns the full pathname to X as the search
string. The character class preceding the search string ([ ]) is there
to make 'grep' ignore its own entry in process table (an old 'grep'
trick), and the "-q" option of 'grep' makes it return only a
success/failure exit code instead of the actual matched string. The OR
operator, '||', ties it all together into an expression that says
"either X is running OR (execute) startx".
</P>
<!-- end 9 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<P> <A NAME="tips.10"><HR WIDTH="75%" ALIGN="center"></A> <P>
<H3><IMG ALIGN=BOTTOM ALT="" SRC="../gx/lil2cent.gif">
<FONT COLOR="navy">whois.sc</FONT></H3>
Jared Belkus (<a href="mailto:tag@linuxgazette.net?cc=&cc=jared.belkus@gmail.com&subject=%20Re%3A%20%5BLG%20110%5D%202c%20Tips%20%2310">jared.belkus from gmail.com</a>)
<P>
hi,
</P>
<P>
i was told to email this address about a useful website:
</P>
<P><BLOCKQuote>
<A HREF="http://www.whois.sc"
>http://www.whois.sc</A>
</BLOCKQuote></P>
<P>
I use this whois website a lot because of the information it gives. If
you sign up you can see all the domains that a server has.
</P>
<P>
thanks,
<BR>Jared Belkus
</P>
<blockquote><font color="#000066">Just in case you're a sysadmin thinking, geez, just how many sites <EM>am</EM>
I running on this machine again... did I miss any during that upgrade...
-- Heather</font></blockquote>
<!-- end 10 -->
<hr>
<CENTER><Font face="Helvetica"><STRONG>
This page edited and maintained by the Editors of <I>Linux Gazette</I><br>HTML script maintained by <A HREF="mailto:star@starshine.org">Heather Stern</a> of Starshine Technical Services, <A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</STRONG></Font></CENTER>
<hr>
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="lg_answer"></a>
<h1>The Answer Gang</h1>
</b>
</p>
<p>
<!--startcut ==============================================-->
<!-- *** BEGIN HTML header *** -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML><HEAD>
<META NAME="generator" CONTENT="lgazmail v1.4G.y">
<TITLE>Linux Gazette 110: The Answer Gang (TWDT)</TITLE><link href="../lg.css" rel="stylesheet" type="text/css" media="screen,
projecti
+on" />
<title>The Answer Gang 110: </title>
<style type="text/css" media="screen, projection">
<!--
.articlecontent {
position:absolute;
top:143px;
}
-->
</style>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
ALINK="#FF0000">
<!-- *** END HTML header *** -->
<!--endcut ==============================================-->
<TABLE width="100%" BORDER><TR><TD WIDTH="200">
<A HREF="http://linuxgazette.net/">
<IMG ALT="LINUX GAZETTE" SRC="../gx/2002/lglogo_200x41.png"
WIDTH="200" HEIGHT="41" border="0"></A>
<BR CLEAR="all">
<SMALL>...<I>making Linux just a little more fun!</I></SMALL>
</TD><TD>
<center>
<img src="../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="left">
<A NAME="answer"><BIG><BIG><STRONG><FONT COLOR="maroon"
>The Answer Gang</FONT></STRONG></BIG></BIG></a>
<img src="../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="right"><BR>
<STRONG>By Jim Dennis, Karl-Heinz Herrmann, Breen, Chris, and...
(<a href="../tag/bios.html">meet the Gang</a>) ...
the Editors of <i>Linux Gazette</i>...
and
<a href="../tag/ask-the-gang.html">You</a>!
</STRONG></BIG> </TD></TR>
</TABLE>
<P>
<!-- END header -->
<center><p>
<br>We have guidelines for <a href="../tag/ask-the-gang.html">asking</a> and <a
href="../tag/members-faq.html">answering</a> questions. Linux questions only, please.
</STRONG>
<br><em><font color="#7F0000">We make <b>no guarantees</b> about answers, but you can be <b>anonymous</b> on request.</font></em>
<br>See also: The Answer Gang's
<a href="../tag/kb.html">Knowledge Base</a>
and the <i>LG</i>
<a href="http://linuxgazette.net/search.html">Search Engine</a>
</center>
<br></p></center>
<HR>
<!-- BEGIN message -->
<H3>Contents:</H3>
<dl>
<dt><a href="#tag/greeting"
><strong>¶: Greetings From Heather Stern</strong></A></dl>
<DL>
<!-- index_text begins -->
<dt><A HREF="#tag.1"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>HTML page selector</strong></a>
<dt><A HREF="#tag.2"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>AMD64 Shuttle</strong></a>
<dt><A HREF="#tag.3"
><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
><strong>/dev/ub</strong></a>
<dt><A HREF="#tag.4"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>LG in developing countries</strong></a>
<dt><A HREF="#tag.5"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Linux-friendly hardware</strong></a>
<dt><A HREF="#tag.6"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>installing a pcmcia-network card in Suse 9.0</strong></a>
<dt><A HREF="#tag.7"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>hi howtoopen .tgz or all zip</strong></a>
<dt><A HREF="#tag.8"
><img src="../gx/dennis/bbub.gif" height="28" width="50"
alt="(!)" border="0"
><strong>Perl, WWW::Mechanize, and Mailman administration</strong></a>
<!-- index_text ends -->
</DL>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag/greeting"><HR WIDTH="75%" ALIGN="center"></A>
<H3 align="left"><img src="../gx/dennis/hbubble.gif"
height="50" width="60" alt="(¶) " border="0"
>Greetings from Heather Stern</H3>
<!-- begin hgreeting -->
<!-- end hgreeting -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag.1"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 1 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>HTML page selector</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<P><STRONG>
Here's a nifty HTML device for previous/next/goto page links similar
to MS Access's record selector.
</STRONG></P>
<P><STRONG>
I had to use the "display:inline" style on the form to keep it from
jumping to the next line. I also used that for the <DIV> to keep the
gray background from spreading the entire screen width.
</STRONG></P>
<P><STRONG>
Attachments: snapshot3.png, pageLinks.html, pageLinks.css
</STRONG></P>
<P><STRONG>
BTW, the 'iv' program is a great fast-starting image viewer.
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/pageLinks.html">pageLinks.html</a></tt></p>
<p align="center">See attached <tt><a href="misc/tag/pageLinks.css">pageLinks.css</a></tt></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
_Nice!_ I'll be playing with that gadget. Thanks, Mike! As to "iv",
well...
</blockQuote>
<HR width="10%" align="left">
<blockquote><pre>ben@Fenrir:~$ su -c 'apt-get install iv'
Password:
Reading Package Lists... Done
Building Dependency Tree... Done
Package iv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
ida
E: Package iv has no installation candidate
</pre></blockquote>
<HR width="10%" align="left"><blockQuote>
In the spirit of exchange: if you want really nice pull-down (or
pull-out) menus and don't mind JavaScript, take a look at Tigra Menu
(<A HREF="http://www.softcomplex.com"
>http://www.softcomplex.com</A>). A really nice, free implementation that
works fine with every browser I've tested (which even the best CSS-based
menus I could write - or find - don't.)
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
It looks like that's a different program. The 'iv' I found was in
Gentoo and its homepage is <A HREF="http://wolfpack.twu.net/IV"
>http://wolfpack.twu.net/IV</A>
</STRONG></P>
<P><STRONG>
The <A HREF="http://www.debian.org/">Debian</A> 'ida' program is from <A HREF="http://linux.bytesex.org/fbida"
>http://linux.bytesex.org/fbida</A>
</STRONG></P>
<P><STRONG>
(<A HREF="http://packages.debian.org"
>http://packages.debian.org</A> and the copyright file didn't list the home
page, so I googled "ida graphics software" and found a listing at
<A HREF="http://www.freebsdsoftware.org/ports.php?c=graphics&n=ida"
>http://www.freebsdsoftware.org/ports.php?c=graphics&n=ida</A>
that links to the above page with the correct domain name and
author's name (Greg Knorr). But the Debian package says the original
is the Debian source, so maybe he's a Debian developer. Or maybe
Debian no longer lists the external home page in the copyright file?
</STRONG></P>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag.2"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 2 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>AMD64 Shuttle</H3>
<p><strong>From Mike Orr
</strong></p>
<p></strong></p>
<p align="right"><strong>Answered By: William Park, Jimmy O'Regan, Huw Lynes
</strong></p>
<P><STRONG>
Searching for alternatives to my 450 MHz Master of Slowness. I could
get a motherboard+chip for my empty case. Or I could get what I'm
currently drooling over, a Shuttle. There's an Athlon 64 jobbie for
$359 (SN85G4):
</STRONG></P>
<p><Strong><ul>
<!-- *) http://shop.hdnw.com/asp/product.asp?product=1293&cat=126&ph=&keywords=&recor=&SearchFor=&PT_ID= -->
<LI><A HREF="http://shop.hdnw.com/asp/product.asp?product=1293&cat=126&ph=&keywords=&recor=&SearchFor=&PT_ID"
>http://shop.hdnw.com/asp/product.asp?product=1293&cat=126&ph=&keywords=&recor=&SearchFor=&PT_ID</A>=
<!-- *) http://us.shuttle.com/specs_access.asp?pro_id=426 -->
<LI><A HREF="http://us.shuttle.com/specs_access.asp?pro_id=426"
>http://us.shuttle.com/specs_access.asp?pro_id=426</A>
</ul></Strong></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Huw]
Downsides to the shuttle (I have a P4 one myself):
</blockQuote>
<blockQuote><BLOCKQuote>
you pay a premium for the form factor and they can have heat problems.
</BLOCKQuote></blockQuote>
<blockQuote>
they are noisier than you would expect.
it's built on the nforce3 chipset.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
The ad seems to say it includes the CPU, although I'm surprised it
doesn't say the speed.
This compared to the $150-200 I'd spend on a regular motherboard and
CPU. Which seems the better deal? Gentoo has an Am64 version. Does
the 64 bit make enough difference to justify the $60 over a regular
Athlon?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [William]
Unless you need 4GB+ memory, then you probably don't need 64-bit. Since
you're asking such question, you definitely don't need it. :-)
</blockQuote>
<blockQuote>
I would advise against Shuttle. They have heat problem, and their power
supply is not the quality stuff.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Huw]
x86_64 is a better design than the old x86. Hypertransport makes
enough of a differerence that an x86_64 system is pound for pound
faster than a P4 system. But it really shines when you throw a lot of
RAM at it. Being able to seamlessly address more than 2GB of memory is
a very good thing. Of course with your budget that's just academic. If
you still want one for the cool factor (which is justification enough
IMHO) then get a motherboard based on one of the via chipsets not the
nForce3. I'm basing this on what a dog the nForce2 was so it may not
be entirely fair, plus I have a cheap via based Athlon64 at work that
installed Fedora Core 1 (x86_64) out of the box with no fuss. This was
decidedly different behaviour from some of the weird Opteron chipsets
I've had to deal with.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
What would be the most politically correct video card for this puppy?
Meaning, which manufacturers are doing a good job of making their
specs open? Matrox G400 has been my reliable standby, but I had
good luck with an nVIDIA chip recently, and my current computer has an
ATI 3D Rage IIC.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [William]
Use what you have.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Huw]
Sadly there are no politically correct graphics cards. Capitalist
running-dogs like myself prefer nVidia. Mainly because their engineers
are helpful.
</blockQuote>
<blockQuote>
<mind control>
Buy the Athlon64, you don't need it, but you want it.
</mind control>
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Aw, you're not even trying. "Buy the Athlon64 now for the coolness, or
invest in it for the ability to seamlessly address more than 2GB of
memory" -- offer a choice that isn't, because the brain only listens to
the 'or'. Standard sales trick.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Huw]
The 2GB limit is a major pain though. A certain badly
written renderer which we shall not name has a favourite trick whereby
it runs full speed at the 2GB per process limit and then dies in a
small shower of zombied process. When the 64bit version comes out
it'll have to find a new trick.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
My main concerns are --
</STRONG></P>
<P><STRONG>
1) Speed
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Huw]
x86_64 is definately faster than straight x86 but I'm not sure it's
worth the price difference given that you are not going to be doing
anything to take advantage of it's extra features. Personally I'd buy
a P4 and spend the difference on a DVD-RW.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
2) Noise
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Huw]
The shuttles are not silent. The new PSU's are much quieter than the
old ones. I know this because I was sufficiently irritated with the
old one to upgrade. They are quieter than a standard off the shelf PC
though.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
3) Size
</STRONG></P>
<P><STRONG>
I don't anticipate having more than 640 MB of memory, so the 2 GB doesn't
apply. I thought Shuttle had solved the heat problem in their later
designs; if that's not the case, that's another strike against it.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Huw]
The shuttle and its ilk are definite winners here.
</blockQuote>
<blockQuote>
Depends what's in the case. I have a P4, 512MB RAM, 120-GB PATA drive,
CD-RW/DVD and a Fanless nVidia 5200. I haven't had any heat issues but
I'm not sure I'd want to fill the spare PCI slot or put in a second
hard drive. If you want to pack a lot of kit in then you are probably
better off looking at more generic case designs.
</blockQuote>
<blockquote><em><font color="#000066">Any gentle readers out there willing to give comparative heat and noise and
raw high end power notes
on the obviously smaller mini-itx form factor, write to The Answer Gang!
-- Heather</font></em></blockquote>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag.3"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 3 -->
<H3 align="left"><img src="../gx/dennis/bbubble.gif"
height="50" width="60" alt="(!) " border="0"
>/dev/ub</H3>
<p><strong>From
</strong></p>
<p align="right"><strong>Answered By Frodo
<p></strong></p>
<P><STRONG>
A few days ago, I changed to kernel 2.6.9 on one of my machines and suddenly
none of the sd devices were made for my usb harddisks. Turned out, 2.6.9
now uses the <TT>/dev/ub/</TT> structure instead... took me a while to figure that one
out... lol
</STRONG></P>
<P><STRONG>
Low Performance USB Block driver (BLK_DEV_UB)
</STRONG></P>
<P><STRONG>
It does not seem to be enabled by default... guess I accidentally enabled
it, but it actually does seem to work a bit better with some of my devices,
when using USB 2.0 instead of USB 1.1
</STRONG></P>
<P><STRONG>
(some external harddisks seem to not be happy with the way Linux used to
handle USB 2.0)
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather]
ooh so it isn't merely cosmetic. ok.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
am trying to find out, what exactly happened
</STRONG></P>
<P><STRONG>
what I do know, is that the "old" way did a usb to scsi thingie...
</STRONG></P>
<pre><strong> config BLK_DEV_UB
tristate "Low Performance USB Block driver"
depends on USB
help
This driver supports certain USB attached storage devices
such as flash keys.
If unsure, say N.
</strong></pre>
<P><STRONG>
might just make it a lil warning:
</STRONG></P>
<P><STRONG><BLOCKQuote>
"If you happen to enable BLK_DEV_UB, your USB attached storage devices will
no longer be known as <TT>/dev/sdxn</TT> (where x is a letter and n a number), but as
<TT>/dev/ub/x/partn.</TT>"
</BLOCKQuote></STRONG></P>
<blockQuote><DL><DT>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
<DD><A HREF="http://www.linux-usb.org/usb2.html"
>http://www.linux-usb.org/usb2.html</A>
</DL></blockQuote>
<blockQuote>
From: <A HREF="http://hulllug.principalhosting.net/archive/index.php/t-48985.html"
>http://hulllug.principalhosting.net/archive/index.php/t-48985.html</A>
</blockQuote>
<blockquote><pre>> You're using the UB driver. Does it work if you turn that off and use the
> usb-storage driver instead?
Damn, you are right - this is a new driver...
I didn't notice that, i did rely on hotplug to load the correct modules.
Removed the ub driver and everything is fine now.
That means - just unloadin ub and loading usb-storage didn't work.
I had to remove it from the kernel config and rebuild the modules. Actually
usb-storage was the only module being rebuilt. Looks like usb-storage's
functionality is different if ub is built."
</pre></blockquote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
btw, about the linux-usb.org link... I know that page... but there seem to
be quite a few external hard disks (WD, for instance) and cases for hard
disks, that do not work too well with linux' usb2.0 driver afterall...
</STRONG></P>
<P><STRONG>
quite probably the fault of those devices... but it stinks anyway :)
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather]
having to rebuild usb-storage? aw man, that does suck. can you keep both
forms of it around or does it subtly affect other things too? (not to be
tested with usb data you <EM>care</EM> about mind..)
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
nah, it seems to replace part of the usb stuff...
</STRONG></P>
<P><STRONG>
(well - usb-storage)
</STRONG></P>
<P><STRONG>
the rest seems unaffected
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather]
A bit of binary diff on the other usb modules might be in order :/
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Now I know where the device files are, I have no problem with it... it "just
works" <EM>G</EM>
</STRONG></P>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag.4"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 4 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>LG in developing countries</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<p align="right"><strong>Answered By: Ben Okopnik,
Ramon van Alteren,
Offer Kaye,
Brian Bilbrey,
Kapil Hari Paranjape
</strong></p>
<P><STRONG>
Dear readers, your editors have been discussing the changing PC/Internet
environment since LG's early days, and we're wondering what's the
minimum level of hardware and bandwidth now in the remoter parts of
Africa, Latin America, and Asia? Are Pentium/K6 computers above
300 MHz universal now? Are people still downloading the FTP files
because they can't afford the hour online to read LG interactively on
the web? Or is that no longer an issue? If we started allowing
articles to have more supplemental files, more images, more tarball
examples, would that cause an undue burden to any readers or does it
not matter?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Kapil]
There seem to be two separate questions --
</blockQuote>
<blockQuote>
1. How hard is it to maintain a mirror of LG if the bandwidth/hardware
requirement is upped?
</blockQuote>
<blockQuote>
Speaking only from my experience this should not be a problem in
India providing that only "biggish" sites like ours try to maintain
a mirror.
</blockQuote>
<blockQuote>
2. How hard will it be to read LG if the bandwidth/hardware requirement is upped?
</blockQuote>
<blockQuote>
As long as there is a low-bandwidth low-hardware version of LG that
is available, you can always up the requirement for a high-end version.
</blockQuote>
<blockQuote>
So what is low-bandwidth?
</blockQuote>
<blockQuote>
A. Speaking only for India. Most places still have only a dial-up phone link.
This link takes them to an ISP who will probably give them a share of
64K-512K link to one of the hubs in the bigger cities which are then linked
quite well to the rest of the internet and each other (the hubs that is).
</blockQuote>
<blockQuote>
And what is low-hardware?
</blockQuote>
<blockQuote>
B. In a recent meeting to disburse funds to Indian universities for the purchase of
computers, I heard that some of these place still have 486's. However, with
the recent drop in prices of entry level Pentium class machines (to approximately
half the earlier price) this should change in a year or so. At the same time
working hardware has a way of trickling down over here so it is not impossible
to find even a 386 in some places.
</blockQuote>
<blockQuote>
However, the use of GNU/Linux in India at this level is still very low. Since (whether
we like it or not) LG is only read by people with some familiarity with *nix, the above
data may not be entirely relevant.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
For years we got letters every few months asking for an e-mail or print
version of LG. That was unfeasable for us to provide, so we steered
people toward the FTP version, TWDT, and TWDT.txt instead. The mirrors
complained whenever we regenerated the FTP files or made bulk updates to
back issues, because of the bandwidth it cost them. One student wrote
from a school in Africa, saying they all read LG from a shared copy
downloaded at the school, but the school couldn't afford the online time
to read it interactively on the web. Others said they paid by the
minute or megabyte for their Internet connection, and each megabyte was
a significant choice.
</STRONG></P>
<P><STRONG>
Yet now we hear that Pentium-level computers are widely available in the
poorer parts of Latin America, many governments are switching to
Linux, and community wireless networks are sprouting up in villages in
India and Africa. It's been over a year since we've gotten a bandwidth
complaint from a reader or a mirror. Does that mean this is no longer
an issue? Or that those readers now have more local resources for Linux
information/help and no longer rely solely on LG? Or that we lost those
readers/mirrors during the move from SSC and they never found our new
address? Unfortunately, the the nature of this problem means that those
who are the least connected are the ones least able to write in and tell us
about it, so we need to hear from others from those countries and
regions who can tell us what the situation is.
</STRONG></P>
<P><STRONG>
On Wed, Dec 08, 2004 at 11:35:51AM -0800, Mike Orr wrote:
</STRONG></P>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Dear readers, your editors have been discussing the changing PC/Internet
environment since LG's early days, and we're wondering what's the
minimum level of hardware and bandwidth now in the remoter parts of
Africa, Latin America, and Asia?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
(A shovel and a pitchfork for minimum hardware and a wheelbarrow for
bandwidth - but note that even these are not available in all areas. :)
The term "minumum level" contains assumptions that render the answers to
this question less than useful.)
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
How? The question about whether most people have a 300 MHz Pentium or
better was an attempt to see whether most readers have a computer
capable of running a modern graphical browser and <A HREF="http://www.kde.org/">KDE</A> comfortably.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
"Minimum", in this venue, always starts at zero. Asking what the
"minumum" hardware is will have people responding with their stories of
woe about building TCP/IP stacks with hay and mud, and being too poor to
get quality mud. Phrasing the question as you have predetermines the
field of answers, since people who do not consider their hardware as
"minimum" will not respond, and so you'll get the answers that only
reinforce the point you're trying to make as opposed to the true state
of the situation - a perfect example of the "statistics" that Barry was
talking about just a few days ago.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Offer Kaye]
"Running KDE comfortably" on a 300 MHz Pentium?! You must be joking...
Have you tried opening a recent version of KDE? It's a hog - both
memory and CPU. I have an 1800+ AthlonXP with 512MB of RAM, and even
so KDE is sloooow to start up and apps take a while to open, including
Firefox (a browser considered both modern and "light").
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Yes but you have to draw a line somewhere. KDE 3.2 is reasonable but not
snappy on my 450 MHz Duron, but KDE 3.3 on the same machine is so slow it
makes Windows look fast by comparision. It may not be KDE's fault: the
first is on <A HREF="http://www.debian.org/">Debian</A> and the second on Gentoo, and the system startup/shutdown
on the Gentoo side is much slower too. I just bought a 2600 AthlonXP
chip (decided to wait a year or two on the Shuttle), so we'll see how
much that helps.
</STRONG></P>
<P><STRONG>
BTW, I got a Foxconn micro ATX motherboard to go with it. Hadn't heard
of that brand before, but it had a VIA chipset and Award BIOS so I
figured it was more standard than the mobo next to it with an nVIDIA
chipset. I paid $6 more for less, haha: two memory slots instead of
three, three PCI slots instead of five or six. But I thought back to
when have I ever used more than three PCI cards simultaneously, and the
answer was "never". Presumably the nVIDIA chipset would have been
compatible enough since it wasn't nVIDIA <EM>video</EM>, but I figured why take
chances and did I want my money going to a company that offers
binary-only drivers? The salesman reassured me that a micro ATX mobo
would fit into a regular ATX case; we'll see.
</STRONG></P>
<P><STRONG>
It's interesting how the prices of chips and motherboards have reversed.
My standard rule has been to buy whatever combination is currently
selling for $150. In the past that's meant a $50 chip and $70
motherboard. But this time it's a $99 chip and a $55 motherboard. They
did have $50 chips but they were AMD Seperon. I haven't heard of those
before. They came out a couple months ago as a replacement line for the
Duron. Gentoo doesn't mention them as a supported platform although I
assume they're compatible.
</STRONG></P>
<P><STRONG>
Tom's Hardware says the Sempron is replacing both the Duron and the
32-bit Athlon. <A HREF="http://www.tomshardware.com/cpu/20040728/index.html"
>http://www.tomshardware.com/cpu/20040728/index.html</A>
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Brian]
BTW, I've got one of the top end Sempron's, a 3100+, running on an Asus
K8N mobo (nForce3 chipset). The motherboard itself is bloody amazing.
Socket for the processor. Heatsink over the single (or composite? can't
tell) chipset. A few small (8-12 pin) smc glue logic chips, batches of
electrolytic caps, sm resistors, and lots of connectors. But overall,
the impression is of a barren field... picture here:
</blockQuote>
<blockQuote><BLOCKQuote>
<A HREF="http://www.orbdesigns.com/bpages/2004/images/100_0265.JPG"
>http://www.orbdesigns.com/bpages/2004/images/100_0265.JPG</A>
</BLOCKQuote></blockQuote>
<blockQuote>
The 3100+ Sempron is a 64-bit A64 with 32 bits lopped off, and half the
L2 cache, sort of the modern day equivalent of the 386SX, I guess.
</blockQuote>
<blockQuote>
The other components in the system are a 160G Seagate Barracuda 7200.7
HD, an old 4x DVD+RW burner, and 512M of RAM.
</blockQuote>
<blockQuote>
Still, the board/processor combination is fast, supported well by the
2.6.9 kernel. The ethernet is on the chipset, and runs with the
forcedeth driver, which is making some good strides now that nVidia
decided that since a reverse-engineered driver was available in spite of
their non-assistance, they might as well help make it better. Audio is
acceptable as AC97/i810 equivalent. I'm running an ATI 9200 Video card,
and the whole thing is wrapped up in an Antec Sonata case.
</blockQuote>
<blockQuote>
I've thrown Debian Sarge, Xandros, Fedora Core 3, and a couple of *BSD
variants at it, all have run. <A HREF="http://www.openbsd.org/">OpenBSD</A> has no driver for the ethernet
ported yet. Everything else just worked, and it's the fastest "cheap"
system I have.
</blockQuote>
<blockQuote>
It's not as robust as the 2.5 year old dual Athlon box, but true SMP
just keeps trucking when a single processor box starts wheezing.
</blockQuote>
<blockQuote>
So, I'd count this report as a positive recommendation for the
nForce3/Sempron combination on recent (2.6 kernel based) distros.
</blockQuote>
<blockQuote>
The Sempron is just the Athlon renamed, which explains why there's only a $5
difference between the same-speed chips. Seems AMD's marketers were
getting nervous about the brand-name dilution effect of having their
luxury chip (the AMD 64) and their proletarian chip (the Athlon) both
called "Athlon", afraid that consumers wouldn't notice the difference
and would, ahem, fail to appreciate the advantages of the higher-end
chips. (Although "higher-end" is open to debate, since the price of the
64-bit chips is pretty close to their same-speed 32-bit counterparts.)
</blockQuote>
<blockQuote>
AMD also seems to be preparing to ditch Socket A by designing a Sempron
that will fit in their AMD 64 motherboard (socket 754), as well as
versions for future Intel socket designs.
</blockQuote>
<blockQuote>
So, given that 64-bit doesn't mean squat on machines with less than 4 GB
memory, what happens in 2038 when the UNIX clock rolls over? Will we
all have to switch to 64-bit anyway or else?
</blockQuote>
<blockQuote>
I'm putting this all in my huge case from two years ago, the one whose
mobo was apparently water-damaged in my fire. Maybe I can get the neon
tubes in front to light up this time. I looked through my old receipts
to figure out what speed chip was in there without prying off the
heatsink. Cyrix/66, AMD Duron/150.... Was it really that slow? The
mobo manual said it could take a chip up to 1800. At the time I
thought, "That's three times faster than I'll ever need...."
</blockQuote>
<blockQuote>
I put the "300" on in case somebody should come up with a Pentium/70
or something. The bandwidth question should be obvious. If I've put
in unhelpful assumptions without realizing it, please tell me what they
are so the questions can be improved.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
In my opinion, there's no way to get an accurate picture of what the
situation really is unless you travel to India, Africa, South America
(however you choose to define it), etc., and spend a few months
traipsing a wide area and taking a census - and even that data would be
of limited use since it's a constantly-changing variable.
</blockQuote>
<blockQuote>
So, in short, my problem with the way the question is phrased is that
the answers to it *can't* give any new insight. They can, however, be
used to stack the cards. I'm not accusing you of doing this, but I am
saying that this form of the question is not useful.
</blockQuote>
<blockQuote>
However - dear readers, please feel free to let us know what challenges,
if any, you've encountered in your LG-reading experience. Our purpose is
to deliver the greatest amount of high-quality content to you, and to
"make Linux a little more fun"; this implies and requires access to that
content. We can't buy you all new computers and high-speed network
access - I just rattled the change in my pocket, and had to admit to
myself, bitter as it may be, that it just wasn't enough - but if there's
something we can do to improve access to LG, we'd love to hear your
ideas.
</blockQuote>
<blockQuote>
Through the magic of email plus my own desire to make LG serve as
many people as possible, this editor's door is always open. Come on in.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
But beware the curmudgeons! And please be aware that an opinion given
with the utmost brutal honesty is the <TT>/start/</TT> of the discussion, not the
end. Don't make me quote the 'Haggle' scene again.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ramon]
I've just returned from Uganda for a Development project on Linux
and Open Source software in general.
Apart from giving a course on Linux system administration I helped setup
a local mirror with open source software and more importantly
documentation. Among the documentation was the <A HREF="http://www.linuxdoc.org/">Linux Documentation Project</A> (LDP) including The Linux
Gazette.
</blockQuote>
<blockQuote>
Due to poor bandwidth offerings in Uganda we've resorted to updating
this mirror using a portable harddisk that gets filled in Europe and
sent through diplomatic snailmail to Uganda on a quarterly basis.
</blockQuote>
<blockQuote>
I don't think hardware is that much an issue. In Uganda the issue
definitly is bandwidth. I work for a foundation that partners with a
rural university, bandwidth there is 64k down <TT>/</TT> 16k upload for the
entire university which has to be shared with 400+ students and 50+ staff.
</blockQuote>
<blockQuote>
Internet slows down to a crawl during the daytime........ (500B/s or less)
</blockQuote>
<blockQuote>
Common offerings from local ISP's are 16Kbit links for $50/month, if
you're living in the capital, otherwise you're out-of-luck or dependant
on local NGO's with internet access <TT>/</TT> cyber cafes.
</blockQuote>
<blockQuote>
Unlike India, telephonelines are non-existant. Nearly everyone has a
mobile phone, <EM>normal</EM> phone lines are only present in some government
buildings, large companies and possibly NGO's. The quality of the
phonelines is horrible.
</blockQuote>
<blockQuote>
Although I'm not entirely sure, I think that the entire country has
something in the order of a 4-6Mbit link to the rest of the internet.
</blockQuote>
<blockQuote>
At an ICT-conference I visited somebody quoted a $8000 figure for a
1Mbit internet link to me.....
</blockQuote>
<blockQuote>
We (eacoss) currently operate the only local open source mirror in
Uganda and we're unable to update it through the internet. We would not
be affected that much by this change because of the update-method for
our mirror however other people in the eastern african region might.
</blockQuote>
<blockQuote>
That said, the other point that kapil raised, also holds true for Uganda
and Eastern Africa in general. Linux/Opensource software is not (yet)
widely used. The EACOSS foundation (www.eacoss.org) is trying to promote
that, however reality is that most people are using windows.
</blockQuote>
<blockQuote>
This is changing (rather fast) however with M$ and other big companies
starting to enforce copyright protection schemes, and licence costs
generally way beyond a local year income.
</blockQuote>
<blockQuote>
There is a desperate need for more knowledge on Linux/Open source and
more advanced knowledge on networking, software developement, etc in
general, so the gazette could definitly fill a gap.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Thank you, Ramon: it's always good to get info from people in the field.
The most interesting part for me was that my own estimate of how things
were in that part of the world was very close to what you've reported.
</blockQuote>
<blockQuote>
As to the "sneaker-net" method of information transport into Uganda, it
reminds me of the old joke: "never underestimate the bandwidth of a
station wagon full of magtapes." It may be slow, but it's still valid.
</blockQuote>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag.5"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 5 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Linux-friendly hardware</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<p align="right"><strong>Answered By: Jimmy O'Regan,
John Karns,
Thomas Adam,
Karl-Heinz Herrmann,
Ben Okopnik
</strong></p>
<P><STRONG>
Is there a FAQ somewhere of hardware manufacturers' track records
regarding open specs and cooperating with free software?
</STRONG></P>
<P><STRONG>
I.e., the Tux-friendly seal of approval. Not for things that are
just passively compatible with Linux, but for manufacturers who take
steps to cooperate.
</STRONG></P>
<P><STRONG>
I can see a possible logo, although it's not quite the right message:
</STRONG></P>
<P><STRONG><BLOCKQuote>
[picture of Tux, with a gun hanging on the side. "Cooperate, or the penguin gets it"]
</BLOCKQuote></STRONG></P>
<P><STRONG>
If not, it
would be good to have one in LG, as a way to reward good manufacturers
and punish bad ones. I'll write it up if people can send me facts and
links. Off the top of my head...
</STRONG></P>
<P><STRONG>
CPU, MOTHERBOARD, HARD DRIVE:
</STRONG></P>
<P><STRONG><BLOCKQuote>
(not much to say; I think they're as open as we can expect)
</BLOCKQuote></STRONG></P>
<P><STRONG>
BIOS:
</STRONG></P>
<P><STRONG><BLOCKQuote>
(what issues here? flashable under Linux? is the open BIOS project still active?)
</BLOCKQuote></STRONG></P>
<blockquote><em><font color="#006600">LinuxBIOS (<A HREF="http://www.linuxbios.org"
>http://www.linuxbios.org</A>) seems to be under relatively active
development. Their status page (<A HREF="http://www.linuxbios.org/status/index.html"
>http://www.linuxbios.org/status/index.html</A>)
is pretty impressive.
</font></em></blockquote>
<blockquote><em><font color="#006600">(LinuxBIOS is a port of Linux that runs in place of a BIOS. It's
mainly used in clusters, and boasts a record boot time of 3 seconds).
-- Jimmy</font></em></blockquote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
VIDEO:
</STRONG></P>
<P><STRONG><BLOCKQuote>
I think Matrox has been cooperative. nVIDIA has their notorious binary drivers.
</BLOCKQuote></STRONG></P>
<font color="#000066"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather] ATI has been somewhat cooperative, in that they allow information out after
their boards are old enough. This is decent but I've encountered their
proprietary driver not supporting an old enough board while the X11 community
still hadn't gotten the open source support filled in, reducing one to raw
VESA support. Wah. Temporary problem, timing just sucked is all.
</blockquote></font>
<P><STRONG>
PRINTERS:
</STRONG></P>
<P><STRONG><BLOCKQuote>
I think Epson has been cooperative, but many Canon printers are Windows only. Lexmark had their offensive DMCA clause for toner cartridges.
</BLOCKQuote></STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
</blockQuote>
<blockquote><pre>> PRINTERS -- Lexmark had their
^^^^^^^^ ^^^^^^^
</pre></blockquote>
<blockQuote>
Nah... I just don't see how those two are related. :P
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Karl-Heinz]
Well -- I like my Optra E312. speeks PCL and Postscript. The latter
better then some monster-printers of varying manufacurers I've seen in
offices.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
CD/DVD:
</STRONG></P>
<P><STRONG><BLOCKQuote>
could be more open but that's more of a legal issue and pressure from Hollywood than of manufacturers stonewalling.
</BLOCKQuote></STRONG></P>
<P><STRONG>
MODEM:
</STRONG></P>
<P><STRONG><BLOCKQuote>
winmodems bad. Is there a software-only modem for Linux? My friends with Macs like to gloat about their software modems, although the counterargument was why distract your main CPU when you can have a dedicated chip doing the work.
</BLOCKQuote></STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
There is support for an IBM softmodem in the kernel, and there was a
project to get some Lucent modems working, though that pretty much fell
by the wayside. There is a software modem available, though it only goes
as far as 28.8 (the author shifted focus to other nifty things like tcc,
qemu, and ffmpeg).
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [John]
The lucent modem <TT>/</TT> Linux situation seems to parallel that of the nVidia
graphics cards, in that proprietary binary modules link to the kernel
using the same or similar methods. Although hardware UART modems will
undoubtedly remain preferrable for Linux users, I've always had pretty
good luck with the Lucent modems. As winmodems go, they're probably one
of the easier varieties to deal with. Not to say that they won't be a
pain when you find yourself dealing with a combination of kernel and
libgcc for which they haven't issued an update, but for me, that's
happened only once in the 8 yrs or so that I've been dealing with them.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
No, there actually is some open source software that accesses Lucent
modems from user-space. It doesn't work as a modem, but the author just
wanted to be able to use it as a phone. Someone else tried to couple
that work with the software modem I mentioned, but I don't know if it
works at all.
</blockQuote>
<blockQuote>
There hasn't really been any work done in this area for years though.
</blockQuote>
<blockQuote>
<EM>Sigh</EM> I'll hunt through my jungle of bookmarks
</blockQuote>
<blockQuote>
LinModem: <A HREF="http://fabrice.bellard.free.fr/linmodem.html"
>http://fabrice.bellard.free.fr/linmodem.html</A>
(last updated in 1999)
</blockQuote>
<font color="#000066"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather] The reason that hasn't been notable work on a <EM>true</EM> softmodem for Linux is because right around the time it was getting some progress, the genius who was making the progress,
<a href="http://www-users.cs.york.ac.uk/~fisher/tribute.html">Tony Fisher, died of cancer</a>
-- a terrible loss apparently for linguistics fans as well.
See <A HREF="http://linmodems.org"
>http://linmodems.org</A> and search downward for "generic modem".
The university had great respect for him and still
maintains the software link, so what he had is downloadable at:
<A HREF="http://www-users.cs.york.ac.uk/~fisher/modem"
>http://www-users.cs.york.ac.uk/~fisher/modem</A>
</blockquote></font>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<blockQuote>
What's done:
</blockQuote>
<blockQuote><ul>
<!-- *) V34 modulator (sampling rate of 8000 Hz, handle all the symbol -->
<LI>V34 modulator (sampling rate of 8000 Hz, handle all the symbol
<!-- rate, carrier and trellis combinaisons). -->
rate, carrier and trellis combinaisons).
<!-- *) V34 demodulator (no echo cancellor yet, and startup phases not -->
<LI>V34 demodulator (no echo cancellor yet, and startup phases not
<!-- complete). -->
complete).
<!-- *) Algebraic part of V90. -->
<LI>Algebraic part of V90.
<!-- *) DTMF dialing/receive. -->
<LI>DTMF dialing/receive.
<!-- *) V8 protocol. -->
<LI>V8 protocol.
<!-- *) V21 modulation & demodulation -->
<LI>V21 modulation & demodulation
<!-- *) V23 modulation & demodulation -->
<LI>V23 modulation & demodulation
<!-- *) sample code to test the protocol. -->
<LI>sample code to test the protocol.
<!-- *) sample code to test V21, V22, V23, V34 and V90 independently from -->
<LI>sample code to test V21, V22, V23, V34 and V90 independently from
<!-- the modem. -->
the modem.
<!-- *) a basic phone line simulator (with echos & typical line -->
<LI>a basic phone line simulator (with echos & typical line
<!-- amplitude/phase distortion). -->
amplitude/phase distortion).
<!-- *) an X11 interface. -->
<LI>an X11 interface.
<!-- *) soundcard interface. -->
<LI>soundcard interface.
<!-- *) AT command parser & sample tty simulator. -->
<LI>AT command parser & sample tty simulator.
<!-- *) asynchronous protocol. -->
<LI>asynchronous protocol.
</ul></blockQuote>
<p align="center">...............</p>
</TD></TR></TABLE><blockQuote>
LTModem: <A HREF="http://www.close.u-net.com/ltmodem.html"
>http://www.close.u-net.com/ltmodem.html</A>
(Last modified: Sat Sep 30 22:40:31 BST 2000)
</blockQuote>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<blockQuote>
The current functionality (0.9.9) is:
</blockQuote>
<blockQuote><BLOCKQuote>
Finds a Lucent PCI winmodem and reports information on this.
</BLOCKQuote></blockQuote>
<blockQuote>
Goes offhook and detects the dial tone.
</blockQuote>
<blockQuote>
Dials using pulses or dtmf. Here in the UK the dtmf dialling works, you
can hear the call being answered.
</blockQuote>
<blockQuote>
Try "ltmodem -d 011223344" (replace 011223344 with the number of your
favourite ISP) and listen to the modem at the other end answering the call!
</blockQuote>
<blockQuote>
Detects the answer tone of the phone at the other end, or busy tone if
it is engaged.
</blockQuote>
<blockQuote>
Picks up incomming calls.
</blockQuote>
<blockQuote>
Command line mode allows control of modem interactively or via a script
file.
</blockQuote>
<blockQuote>
Includes fixes for Pavel's voice stuff, just need some more detailed
instructions on how to use it! This includes turning you computer into
an expensive telephone and full duplex voice transmission.
</blockQuote>
<blockQuote>
Reads ROM check sum and does basic I/O for DSP RAM.
</blockQuote>
<blockQuote>
Monitors/Sets either data in the PCI registers or at the I/O ports,
monitoring at configured intervals.
</blockQuote><p align="center">...............</p>
</TD></TR></TABLE>
<blockQuote>
Pavel Machek (the Pavel mentioned earlier) is also one of the primary
authors of Gnokii.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
SOUND, ETHERNET, ETC: ?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Just saw something related to Mike's earlier question about hardware
compatibility:
</blockQuote>
<blockQuote><BLOCKQuote>
Being realistic about Linux hardware compatibility
By: Robin 'Roblimo' Miller
</BLOCKQuote></blockQuote>
<blockQuote>
<A HREF="http://www.newsforge.com/article.pl?sid=04/11/29/1559244&from=rss"
>http://www.newsforge.com/article.pl?sid=04/11/29/1559244&from=rss</A>
</blockQuote>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag.6"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 6 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>installing a pcmcia-network card in Suse 9.0</H3>
<p><strong>From Santeri.Ketola
</strong></p>
<p></strong></p>
<p align="right"><strong>Answered By: Ben Okopnik
</strong></p>
<P><STRONG>
Hi!
</STRONG></P>
<P><STRONG>
I installed last summer Suse Linux 9.0 with <A HREF="http://www.kde.org/">KDE</A> to my laptop(thinkpad 600e,
233mzh pentium 2). I haven't used a linux before, and it seems to work fine
except some points that might be more complicated in laptops than in normal
pc's.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I think that's true for pretty much any OS - the hardware in laptops,
other than perhaps memory and hard drives, is nearly all proprietary
(i.e., you can't run out to your local computer store and buy an, e.g.,
video card for your Toshiba or Dell), and this has obvious results.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
In my apartment house they use the already existing phone-cable to access
internet, therefore i needed to buy a pcmcia card(smc 8041tx v.2) and a
HomePNA converter(A-Link HomePNA) to gain access to the internet.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
This card is supported under pcmcia-cs, at least according to
<A HREF="http://pcmcia-cs.sourceforge.net/ftp/SUPPORTED.CARDS"
>http://pcmcia-cs.sourceforge.net/ftp/SUPPORTED.CARDS</A> . The easiest
thing to do would have been to install the package from
<A HREF="ftp://ftp.suse.com"
>ftp://ftp.suse.com</A> ... unfortunately, you went a different route. The
<EM>next</EM> easiest thing, in my opinion, would be to reverse what you've
done, then install the package.
</blockQuote>
<blockQuote>
Keeping on with trying to install from source is <em> not </em> something I would
recommend for you, particularly because this <EM>is</EM> a standard package;
what you'll have, if you do manage to succeed, is a system in which the
PCMCIA package is a) not recognized by the packaging system, and is b)
not upgradeable - except through more source-based installation - as a
result. In other words, you'll be creating a permanent headache for
yourself.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I began installing it with these instructions:
</STRONG></P>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<pre><strong> SMC Networks, Inc.
SMC 10/100 PC Card (SMC8041 V.2)
Linux Driver Installation
Installation Guide:
1. Please download the pcmcia package (3.1.29 or higher vision)
from the follow url:
ftp://www.sunsite.unc.edu/pub/Linux/kernel/pcmcia
2. Install the package:
Copy the pcmcia packagefile into /usr/src/linux/
and uncompress it:
tar zxvf pcmcia-cs-3.1.29.tar.gz
3. Config the pcmcia package
Change the directory into pcmcia
cd pcmcia-cs-3.1.29
then config and install it
make config
make install
4. Edit the /etc/pcmcia/config
Add following to the config file
device "SMC 80412"
class "network" module "pcnet_cs"
and add the following configuration:
card "SMC 80412"
version "SMC" , "8041TX-10/100-PC-Card-V2", "", ""
bind "pcnet_cs"
5. Restart the pcmcia service
/etc/rc.d/init.d/pcmcia restart
Then the SMC 10/100 PC Card (SMC8041 V.2) adapter will start to work.
</strong></pre>
<p align="center">...............</p>
</TD></TR></TABLE><P><STRONG>
As i reached the third point, this happened:
</STRONG></P>
<blockQuote><BLOCKQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
The problem you're having, incidentally, is not a complex one:
</BLOCKQuote></blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
</STRONG></P>
<pre><strong>dhcppc23:~ # /usr/src/linux/pcmcia-cs-3.1.3/Configure make
Ack! The PCMCIA distribution is incomplete/damaged!
Unpack again -- and try using a Linux filesystem this time.
Configuration failed.
dhcppc23:~ #
</strong></pre>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
The tarball you have may have been damaged, or you may need more
software. The easy way to tell is usually my examining the log file
produced by "make"... but, again, note that this is all theoretical for
the moment: the right thing to do is reverse what you've done so far and
install the actual "pcmcia-cs" package.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I have tried the command "make config" but nothing happens. And as the error
message tells, i tried unpacking the package several times, but the message
repeats. As i completed the instruction points 4 and 5, the light turned on
in the pcmcia card, but there is still no connection.
</STRONG></P>
<P><STRONG>
My questions are; firstly, how to configure the card properly and secondly,
how to tell the firewall to mind the pcmcia card, or does the firewall detect
all interaction from my computer and the rest of the world?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I've addressed the first question already; as to firewalls, they work
with <em> interfaces, </em> not hardware. In other words, a firewall doesn't
really care what kind of hardware you have - what it needs to know about
is rules for, e.g. "eth0".
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I know that these
questions might seems somewhat simple or just plain stupid,
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Not at all. You've done a fine job of describing what you need, the
environment in which you're working, and the problem you're having.
Answering your question was easy and pleasant as a result.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
but this system
is totally new for me, and it seems fun and full of possibilities, but the
internet access is vital for me. As in your instructions you advised to be
funny, but hopefully this email provides you at least some giggles about us
rookies;)
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Hey, it's all about making Linux a little more fun.
<IMG SRC="../gx/dennis/smily.gif" ALT=" :) "
height="24" width="20" align="middle"> That's why we're
here!
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I managed to get the internet working properly for two days... and the only
inconvenience was getting the suse installation cd from my dad per post. Your
instructions we're precise and helpful. I reversed the driver kit i had begun
installing, got the right kit from ftp.suse.com, and yast installed it all
for me. The only thing that i needed to do was to reboot (i thought this was
only necessary in wondows <EM>giggles</EM>)..and lights went on!
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
[chuckle] You didn't really need to reboot - there's almost never a need
to do that in Linux, unless you've recompiled the kernel or something -
but there are times when it may be easier to do that than all the
"modprobe" invocations with mysterious module names.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I even istalled Opera right away, went like a dream, and shockwave as
well..and my laptop purrs like kitten. i only hope i wont overheat it too
much because i've been so much online;) Next project is installing gimp 2 but
that's only a minor glitch..it's fun learning and now it's so much easier
thanks to you and the internet!
</STRONG></P>
<P><STRONG>
Thank you once again for your swift and precise instructions.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Excellent! It's a pleasure to help, particularly some like yourself who
takes the time to let us know the results. Glad we could be of service!
</blockQuote>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag.7"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 7 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>hi howtoopen .tgz or all zip</H3>
<p><strong>From ronen
</strong></p>
<p></strong></p>
<p align="right"><strong>Answered By: Suramya Tomar,
Ben Okopnik
</strong></p>
<P><STRONG>
hi
</STRONG></P>
<P><STRONG>
howtoopen .tgz or all zip you now
</STRONG></P>
<P><STRONG>
thanks
</STRONG></P>
<P><STRONG>
ronen
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Suramya]
tar -zxf filename.tgz
</blockQuote>
<blockQuote>
or
</blockQuote>
<blockQuote><CODE>
unzip filename.zip
</CODE></blockQuote>
<blockQuote>
Next time try to be a bit more clearer in your request. It would make it
easier for us to answer your question.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
[ top-posting reversed so that time won't flow backwards. Suramya,
please don't provide bad examples for our readers.
<IMG SRC="../gx/dennis/smily.gif" ALT=" :) "
height="24" width="20" align="middle"> ]
</blockQuote>
<blockQuote>
Interestingly enough, earlier today Jimmy pointed me to a couple of
sites in Hebrew that looked like translations of some LG articles -
and beziqint.net is an ISP in Israel. Coincidence? Maybe...
</blockQuote>
<blockquote><em><font color="#006600"><a href="http://guides.co.il/wiki/index.php/%D7%A2%D7%9E%D7%95%D7%93_%D7%A8%D7%90%D7%A9%D7%99">guides.co.il</a> and <a href="http://linmagazine.co.il/linuxgazette">linmagazine.co.il</a>
-- Jimmy</font></em></blockquote>
<blockQuote>
In general, our foreign correspondents do a fine job of asking good
questions; ronen, obviously, has missed on that count (I originally
received his email at our "tag-kb" address, which is used for contacting
the KnowledgeBase maintainer.) However, since his question <EM>is</EM> of broad
interest to new Linux users, we'll let him off with a term in a
chroot(1) jail and a careful reading of "Asking Questions of The Answer
Gang" at <A HREF="../tag/ask-the-gang.html"
>http://linuxgazette.net/tag/ask-the-gang.html</A> for future
reference - and I'll see if we can make this into a useful exchange.
(I'm feeling particularly pedantic today; as a net.friend once said, "it
gets me chicks.")
</blockQuote>
<blockQuote>
So, to ask the question that ronen (theoretically) was trying to ask:
</blockQuote>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<blockQuote><BLOCKQuote>
Hi there, Answer Gang! I'd like to know how to open .tgz and .zip files
under Linux. The standard documents are confusing, searching the Internet
gives me too many results, and I don't know where else to look. I'd
appreciate your help.
</BLOCKQuote></blockQuote><p align="center">...............</p>
</TD></TR></TABLE>
<blockQuote>
Why, hi there, ronen! Nice of you to ask in such a clear,
understandable, and polite manner and give me a chance to pontificate on
the topic!
</blockQuote>
<blockQuote>
There are a number of ways to deal with compressed files in Linux. One
that's probably easiest for the new user is to use Midnight Commander's
"VFS" (Virtual File System) feature - you simply place the highlight on
the name of the compressed file you want and press the 'Enter' key. This
will let you look inside the file and copy out anything you want. The
default VFS setup handles bzip, bzip2, gzip, compress, ar, zip, jar,
xpi, zoo, lha, and arj compressed formats (assuming that you have the
appropriate decompression software installed.) You can run Midnight
Commander by typing "mc" at the command line, either in the console or
in an xterm window if you're running X.
</blockQuote>
<blockQuote>
If you want to do it manually, typing the name of the appropriate
decompressor (possibly followed by options) and the name of the file to
decompress at the command line should do it - but beware of "file
scatter", i.e., what happens when the person who created the file did
not use a directory structure to contain all the files. These will now
be scattered all over the directory into which you've decompressed them
- usually the current one. In general, it's a Good Idea to list the
files before decompressing the archive - or look into the file with
Midnight Commander, as mentioned above - just so you know what to expect.
</blockQuote>
<blockQuote>
Some examples of listing syntax for various decompressors:
</blockQuote>
<blockquote><pre># Gzipped tar file
tar tzf file.tgz
# tar file compressed with bzip2
tar tjf file.tar.bz2
# zipfile
unzip -l file.zip
# ARJ file
unarj l file.arj
</pre></blockquote>
<blockQuote>
Typing the name of the decompression program followed by '-h' or
'--help', just as is suggested at the very top of "Asking Questions of
The Answer Gang" at (<A HREF="../tag/ask-the-gang.html"
>http://linuxgazette.net/tag/ask-the-gang.html</A>),
will show you the option list for that program.
</blockQuote>
<blockQuote>
You can also use one of several GUI decompression tools, such as
"guitar" (cute name, eh?) which act somewhat similar to WinZip in
Windows; you may find that environment to be more familiar and
comfortable. Do realize, however, that you'll be missing out on a lot of
the capabilities available at the command line; GUIs are cute, but the
CLI is powerful.
</blockQuote>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="tag.8"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 8 -->
<H3 align="left"><img src="../gx/dennis/bbubble.gif"
height="50" width="60" alt="(!) " border="0"
>Perl, WWW::Mechanize, and Mailman administration</H3>
<p><strong>From Ben Okopnik
</strong></p>
<p></strong></p>
<p align="right"><strong>Answered By: Jimmy O'Regan
</strong></p>
<blockquote><em><font color="#006600">...or, "The Evolution of a script".
</font></em></blockquote>
<blockquote><em><font color="#006600">This started as a complaint about Mailman's administration interface. Over
the course of 5 days in November, Ben and I bashed out a script to automate
the deletion of mail that was held up by Mailman (spam, in other words),
and Ben taught me some Perl along the way.
-- Jimmy</font></em></blockquote>
<P><STRONG>
Yeah, I dislike the damned thing as well. I wonder if Monsieur O'Regan
would be willing to cruft up a screen-scraper that would automate the
procedure?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Sure -- I was looking for something I could set WWW::Mechanize on
anyway. Does anyone have a sample setup I can be let loose on, because
Mandrake seem to have done a wonderful job of fucking up everything
related to email.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Awesome! Thanks, Jimmy; that damn thing <EM>is</EM> a regular pain. I wish
there was a way to tell Mailman to just delete every single one of them,
but I've never found a way to do so. This way, I can maybe cron it up
and forget about it.
</STRONG></P>
<P><STRONG>
See the attached file for a sample. The only things that need to happen
are
</STRONG></P>
<pre><strong>a) The "Action to take" needs to be switched to "Discard", and
b) "Submit all data" needs to be triggered.
</strong></pre>
<P><STRONG>
It's actually something I need to learn about at some point, so I'll be
very interested in what you code up.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Give this script a whirl:
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/www-mech-1.pl.txt">www-mech-1.pl.txt</a></tt></p>
<blockQuote>
I changed the action of the page to submit to a simple PHP script
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/simple-dump.php.txt">simple-dump.php.txt</a></tt></p>
<blockQuote>
All it does is check that a username and password have been passed, and
if so, regurgitate everything the script sent. It seems to work, based
on the HTML in that sample. If it doesn't work, uncomment the two
'print' statments and send me the results.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Mailman's auth mechanism uses cookies, starting from <A HREF="../mailman/admindb/tag"
>http://linuxgazette.net/mailman/admindb/tag</A>
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/www-mech-2.pl.txt">www-mech-2.pl.txt</a></tt></p>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
</STRONG></P>
<pre><strong>#print $mech->response();
</strong></pre>
<P><STRONG>
This is probably not what you want - you'll just get a hashref as a
result. However, just in case it <em> is, </em> for some reason, I'm sending the
output along (but I'll be tweaking the script so that it does produce
something useful from the above.)
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I forgot to remove that from the original, when I thought I was using
basic authentication; it prints a hashref, but it also prints the HTTP
status code. Not something to rely on, but it worked well enough to let
me see where I was going wrong (I was forgetting to prepend 'Basic ' to
the base64 encoded user/pass pair).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
What it looks like is that the script <EM>is</EM> pulling down the content, but
then it's not doing anything with it.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
After that form is submitted, is there any sort of 'Are you sure?' step?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Nope. It just shows you a result page that essentially says "there
aren't any new messages".
</STRONG></P>
<P><STRONG>
I only had a few minutes this morning, but - the stuff in the "if"
clause never happens. I put in a print statement above it and inside it,
and the one above prints stuff like
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/annoyed-senderaction.log.txt">annoyed-senderaction.log.txt</a></tt></p>
<P><STRONG>
just fine, but nothing from the inside (which would have been prefixed
with '--->'.)
</STRONG></P>
<P><STRONG>
Don't know why; the regex is right...
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
maybe try changing it to <TT>/</TT>(senderaction-[^">]*)/ -- it can't hurt.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Ah - that got inside:
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/inside-senderaction.log.txt">inside-senderaction.log.txt</a></tt></p>
<P><STRONG>
However, it still fails to delete the buggers.
<IMG SRC="../gx/dennis/unsmily.gif" ALT=" :( "
height="24" width="20" align="middle"> I suspect that the
normal submission process sends something more than just the radio
button values to the CGI, whereas you skip everything else:
</STRONG></P>
<pre><strong>next unless $token->return_attr('type') =~ /radio/i;
</strong></pre>
<P><STRONG>
At least in my limited perception; I don't know the module at all.
</STRONG></P>
<blockquote><em><font color="#006600">Around here, Ben wondered what the PHP script was for
-- Jimmy</font></em></blockquote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Err... sorry, I've lost the context. What is this page, where does it
go, and what do I need to do with it?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Sorry, forgot myself. That was there to make sure the script was sending the
right values: '3' for reject.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Oh. I don't have PHP - no way to test that; however, you've seen the
output from Data::Dumper by now, and that gives you everything.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Well, you said already that it's not getting inside the if statement, which
is strange. If it was that there was a missing value that needed to be
submitted to the form, that'd be one thing, but as it is, only the default
stuff is getting submitted.
</blockQuote>
<blockQuote>
Hang on... the first submit works, but that doesn't use
{name => adminpw, value => "}, it's {adminpw => "}; so maybe I should have
the array made up of {$regex_match => 3}. I'm not so hot with using anything
other than scalars, so you may need to fix the syntax inside the if statement.
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/www-mech-3.pl.txt">www-mech-3.pl.txt</a></tt></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
OK, try again:
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/www-mech-4.pl.txt">www-mech-4.pl.txt</a></tt></p>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
</STRONG></P>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<pre><strong> # This may need sytax correction
$name->{"$1"} = 3;
</strong></pre>
<p align="center">...............</p>
</TD></TR></TABLE><P><STRONG>
Looks OK, although quoting is deprecated unless you need interpolation.
However, it still doesn't work; see the appended output (again, from
Data::Dumper.)
</STRONG></P>
<P><STRONG>
Looking at it, specifically the data that's sent back, I see what looks
like a problem (I've added some newlines to clarify the view):
</STRONG></P>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<pre><strong>$VAR12 = bless( {
'_content' => '
senderaction-%2522pearl%2Bdeleon%2522%2540genetikayos.com=0
&senderforwardto-%2522pearl%2Bdeleon%2522%2540genetikayos.com=tag-owner%40linuxgazette.net
&senderfilter-%2522pearl%2Bdeleon%2522%2540genetikayos.com=3
&senderaction-abcd21ruby%2540hotmail.com=0
&senderforwardto-abcd21ruby%2540hotmail.com=tag-owner%40linuxgazette.net
&senderfilter-abcd21ruby%2540hotmail.com=3
[snip]
</strong></pre>
<p align="center">...............</p>
</TD></TR></TABLE><P><STRONG>
Seems like '3' is somehow getting assigned to the wrong bit; it <em> should </em>
be on the "senderaction" statements, but is ending up on the
"senderfilter".
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I think I have it this time...
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/www-mech-5.pl.txt">www-mech-5.pl.txt</a></tt></p>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Well... still doesn't work. Time for me to stop being lazy, then, and
actually look it up myself. :)
</STRONG></P>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<pre><strong>while (my $token = $p->get_tag('input'))
{
next unless $token->return_attr('type') =~ /radio/i;
if ($token->return_attr('name') =~ /(senderaction-[^">]*)/)
{
$name->{$1} = 3;
}
}
# Eek! is this \%name or %name?
$mech->submit_form(form_number => 1, fields => \%name);
</strong></pre>
<p align="center">...............</p>
</TD></TR></TABLE><P><STRONG>
Neither; you've never defined a %name hash. What you've got is a
reference named $name pointing to an anonymous hash. "fields" does
indeed expect a hashref, though. So,
</STRONG></P>
<pre><strong>$name->{$1} = 3;
</strong></pre>
<P><STRONG>
should be simply
</STRONG></P>
<pre><strong>$name{$1} = 3;
</strong></pre>
<P><STRONG>
and %name should be declared in a "my" somewhere; "fields" should point
to "\%name".
</STRONG></P>
<P><STRONG>
Ahhh... now it works. Very cool!
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Yeah, I knew there was something I wasn't getting there; thanks for the
explanation. I think I still have a mark on my forehead from when I realised
I was trying to send an array where a hash was expected.
</blockQuote>
<blockQuote>
So, just so I'm sure, is the final version this?
</blockQuote>
<p align="center">See attached <tt><a href="misc/tag/www-mech-6.pl.txt">www-mech-6.pl.txt</a></tt></p>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I've added a little processing to make sure that an empty page doesn't
cause any errors, and a little noise so it'll tell me that it's doing
its job.
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/www-mech-7.pl.txt">www-mech-7.pl.txt</a></tt></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Reminds me of something I read once -- something like "a program is
complete when there's nothing left to take away, not when there's nothing
left to add".
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Yep, the Rodin school of programming. I'm certainly an adherent.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I'll just chalk it up to the perils of cut 'n' paste
programming.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
No worries; that's one of the ways to learn. If you're not making
mistakes, you're not learning - right? I have to keep repeating that to
myself, especially since I'm teaching my first full yoga class today. :)
</STRONG></P>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Seems to work fine without TokeParser.
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/admreqrm.pl.txt">admreqrm.pl.txt</a></tt></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
</blockQuote>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<blockquote><pre>for ( grep /^senderaction-/, split /[ \n"']/, $mech -> content() ){
</pre></blockquote>
<p align="center">...............</p>
</TD></TR></TABLE><blockQuote>
I only saw the 'grep' feature for the first time a few days ago (in TAG,
IIRC).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Eeep!
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Well, that's the entertaining thing about Perl; it's a "language" language.
I'm still at the tourist stage, but I'm thinking of moving :)
</blockQuote>
<blockQuote>
I prefer using HTML::TokeParser::Simple because of the
[<A HREF="../108/misc/oregan/tp.pl.txt"
>http://linuxgazette.net/108/misc/oregan/tp.pl.txt</A> Google script] I
wrote, which formats the HTML differently depending on the client.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Ah.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
...though it beats me why I didn't just change the browser string to pretend
to be Mozilla. I suppose I just like the idea that if someone did change
the UA string, the regex would still work.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Heh.
</blockQuote>
<TABLE WIDTH="95%" BORDER="1" BGCOLOR="#FFFFCC"><TR><TD>
<p align="center">...............</p>
<blockquote><pre> print "Deleting $_\n";
# 'uniq' action happens because hashes possess the Buddha nature
</pre></blockquote>
<p align="center">...............</p>
</TD></TR></TABLE><P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
:) 'Tis true, though.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Isn't WWW::Mechanize neat?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Yep - I've wondered about how to do this kind of thing in the past, and
it's impressive just how easy WWW::Mechanize makes it.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I was wondering how to deal with cookies -- "Wow! Cookies are free!". It
rocks. I still don't trust myself enough to automate my maintenance payments
though.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
You could always have it pause and display the setup for final approval
before you actually commit.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Heh. It's a bit much for something I only have to do once a fortnight
</blockQuote>
<blockquote><em><font color="#006600">I later asked Ben if he'd mind me passing this thread for use in TAG
-- Jimmy</font></em></blockquote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Fine by me, Jimmy. I enjoyed the two of us cooperating to make the beast
behave, anyway.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
So did I. I really enjoyed that "oh no, it's not..." moment when I sent
you the second regex (that was typed with my paternal "I know you're up
to no good" squint).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I already abstracted the password string into a variable def at the top
of the script, and did a little more cleanup before sending it to Rick.
Latest version appended.
</STRONG></P>
<p align="center">See attached <tt><a href="misc/tag/admreqrm-2.pl.txt">admreqrm-2.pl.txt</a></tt></p>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
If you're willing to put yourself through my debugging process again, it
should be easy add an option to grab the content instead of deleting.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Heck, I've read the module docs by now. That's how I finally hammered my
end of it into shape. Actually, it looks like you should be able to do
the whole task with WWW::Mechanize (TokeParser is obviously needed
simply for its regex capabilities) - that might be worth looking at
before we go ahead and pub the results.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I was thinking that too. The doubt that was lurking in the back of my mind
came out of hiding: it'd need something extra -- an option to pass message
ids to not delete. (Not a problem, it's just the nagging of the "you're
forgetting something" thought).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Something like this, you mean?
</STRONG></P>
<pre><strong>delete_this_id() unless grep /$id/, @keep;
</strong></pre>
<P><STRONG>
Take a look at the regex-based script version I sent you; it would be
easy enough to tweak.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Something like that. Can 'unless' be followed by braces, or would it need
a 'do'?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
"do" is pretty special in Perl, and doesn't have anything to do with
conditionals (although it can be used with loops.) Sure, you can have
a statement block after "unless" (it's just syntactic sugar for "!if");
what you can't have is an "elseunless". :)
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Do widzenia! (there's this cute Polish girl...)
</blockQuote>
<!-- end 8 -->
<P> <hr> </p>
<div id="articlefooter">
<H5 align="center">This page edited and maintained by the Editors
of <I>Linux Gazette</I>
<br><a href="http://linuxgazette.net/copying.html"
>Copyright ©</a> its authors, 2005
<BR>Published in issue 110 of <I>Linux Gazette</I> January 2005</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
</H6>
</div>
<!-- end: articlecontent -->
</div>
<!--startcut ======================================================= -->
</BODY></HTML>
<!--endcut ========================================================= -->
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="anonymous"></a>
<h1>Bash Shell and Beyond</h1>
<p id="by"><b>By <A HREF="../authors/anonymous.html">Anonymous</A></b></p>
</b>
</p>
<p>
<!-- Modified by David Rich and Ben Okopnik from an original by William
Park; modifications by D. Rich are dated within the relevant comments,
modifications by B. Okopnik done on 01/05/2005. The author has not yet
provided us with a link to the original; it will be cited here whenever he
does. -->
<!-- dsrich 27 Dec 2004 - There was no segue from the previous article
here, but this article certainly appears to be a continuation, so I
faked it, calling it the Introduction... -->
<h2>Introduction</h2>
<p>This article is a continuation of a series in Issues <a href=
"../108/park.html">108</a> and <a href="../109/park.html">109</a>
in which I discuss some of my additions to the standard Linux
shell. In my previous article in Issue 109, I promised to cover
dynamically-loadable builtins related to arrays, regex splitting,
plus interfacing to external libraries like SQL databases and an
XML parser.</p>
<h2>Regex Match</h2>
<p>Modeled after the Awk match() function, I added a new
<code>match</code> builtin for regex(3) matching.</p>
<pre>
match [-23] string regex [submatch]
</pre>
<p>It returns success (0) if 'string' contains 'regex' pattern. If
the 'submatch' array variable is specified, then by default, it
will contain all matching substrings corresponding to the entire
'regex' and any parenthesized groups in 'regex'. E.g.</p>
<pre>
match Aabc123Z '([a-z]+)([0-9]+)' a # a=(abc123 abc 123)
</pre>
<p>where 'abc123' matches the entire 'regex', 'abc' matches the
first group '([a-z])', and '123' matches the second group
'([0-9]+)'.</p>
<p>For the <code>-2</code> option, 'submatch' will contain 2 elements,
non-matching preamble and leftover postamble (ie. before and after
the 'regex'). For <code>-3</code> option, 'submatch' will contain 3
elements, the preamble, the matching string, and the postamble.
E.g.</p>
<pre>
match -2 Aabc123Z '([a-z]+)([0-9]+)' a # a=(A Z)
match -3 Aabc123Z '([a-z]+)([0-9]+)' a # a=(A abc123 Z)
</pre>
<p>where 'A' and 'Z' are the string segments before and after the
'regex', respectively.</p>
<p>You now have 3 different ways of doing regex matching:</p>
<ol>
<li>
<code>[[ string =~ regex ]]</code> conditional
test in standard Bash-3.0, which uses BASH_REMATCH as the array
variable,
<li>
the new extended 'case' statement,
which uses SUBMATCH as the array variable, and
<li>
<code>match</code> builtin command, where you can specify the array
variable and what it should contain.
</ol>
<h2>Stack and Queue</h2>
<p>Quite often, you need to implement a "stack" or "queue" data
structure. In shell, you can use positional parameters or an array
to hold the data, e.g.</p>
<pre>
set -- {a--z}
set -- $@ Z # append to queue
set -- A $@ # push to stack
set -- $2 $1 ${@:3} # swap first 2 items in stack
shift 2 # pop 2 items off the stack
set -- ${@|:-5:} ${@|::-5} # rotate queue to the right by 5
set -- ${@|:5:} ${@|::5} # rotate queue to the left by 5
</pre>
<p>This is acceptable for a throw-away script, but is very
inefficient because of all the copying of data back and forth.</p>
<p>Here are builtin implementations of stack and queue operations.
They directly manipulate positional parameters or arrays (with
<code>-a</code> option), in-place without copying the data. They are
<em>fast</em> and suitable for general purpose "toolbox" work.</p>
<p><code>pp_pop [-a array] [n]</code>
<p>Deletes N (default 1) positional parameters or array elements.
Same as 'shift' builtin for positional parameters, except that it
will pop items if possible. It returns error if the parameter or
array is empty.</p>
<p><code>pp_push [-a array] arg...</code>
<p>Inserts arguments at the beginning of positional parameters or
array. E.g.</p>
<pre>
set -- 1 2 3
pp_push a b c
echo $* # a b c 1 2 3
</pre>
<p><code>pp_append [-a array] arg...</code>
<p>Appends arguments at the end of positional parameters or array.
E.g.</p>
<pre>
set -- 1 2 3
pp_append a b c
echo $* # 1 2 3 a b c
</pre>
<p><code>pp_swap [-a array]</code>
<p>Swaps the first 2 parameters (ie. $1, $2) or array elements. It
returns error if the parameter or array does not have at least 2
items to swap.</p>
<p><code>pp_set [-a array] arg...</code>
<p>Sets the argument(s) as new positional parameters or array.
Equivalent to</p>
<pre>
set arg...
set -A array arg... # from Ksh
</pre>
<p><code>pp_overwrite [-a array] arg...</code>
<p>Overwrite the parameter(s) in-place. For an array, this is
equivalent to</p>
<pre>
set +A array arg... # from Ksh
</pre>
<p>E.g.</p>
<pre>
set -- 1 2 3 4 5 6
pp_overwrite a b c
echo $* # a b c 4 5 6
</pre>
<p><code>pp_rotateleft [-a array] [n]</code>
<p>Rotate N (default 1) positional parameters or array elements to
the left.</p>
<p><code>pp_rotateright [-a array] [n]</code>
<p>Rotate N (default 1) positional parameters or array elements to
the right.</p>
<p><code>pp_flip [-a array]</code>
<p>Flip the order of positional parameters or array elements.
E.g.</p>
<pre>
set -- {a--z}
pp_flip
echo $* # z y x ... a
</pre>
<p>The above example can be rewritten as,</p>
<pre>
set -- {a--z}
pp_append Z # append to queue
pp_push A # push to stack
pp_swap # swap first 2 items in stack
pp_pop 2 # pop 2 items off the stack
pp_rotateright 5 # rotate queue to the right by 5
pp_rotateleft 5 # rotate queue to the left by 5
</pre>
<h2>Transpose and Sort</h2>
<p>Transpose and sort problems come up a lot when dealing with
tables. Although there are utilities such as awk(1), and sort(1) to
handle these functions, in order to use them you have to pipe the
data (or write a file) to the external program, then read the
program's output back and re-parse it to collect the re-ordered
data. For well-behaved line-oriented text data this is possible,
but it is much better to have a dedicated shell solution, especially
when you have the data already parsed and simply want to re-order
it.</p>
<p><code>pp_transpose [-a array] n</code>
<p>Transpose positional parameters or array representing matrix
ordered by rows into a sequence that is ordered by columns. N is
the size of row. For example, given a sequence (1 2 3 4 a b c d),
representing 2x4 array with 2 rows (1 2 3 4) and (a b c d),</p>
<pre>
| 1 2 3 4 | | 1 a |
| a b c d | ==> | 2 b |
| 3 4 |
| 4 d |
</pre>
<p>the transposed sequence is (1 a 2 b 3 c 4 d), representing 4x2
array with 4 rows (1 a), (2 b), (3 c), and (4 d).</p>
<pre>
set -- 1 2 3 4 a b c d
pp_transpose 4
echo $* # 1 a 2 b 3 c 4 d
pp_transpose 2 # back to original sequence
</pre>
<p>An equivalent solution in pure shell would go (very slowly)
like</p>
<pre>
set -- 1 2 3 4 a b c d
eval set -- $(
for i in `seq 4`; do
for j in `seq $i 4 $#`; do
echo '"${'$j'}"'
done
done
)
echo $* # 1 a 2 b 3 c 4 d
</pre>
<p><code>pp_sort [-a array]</code>
<p>Sort positional parameters or array in ascending order. If the
array is integer type, then numerical sorting is done, e.g.</p>
<pre>
a=( {10..1} )
pp_sort -a a
echo ${a[*]} # 1 10 2 3 ... 9 (string sort)
declare -i a
pp_sort -a a
echo ${a[*]} # 1 2 3 ... 9 10 (integer sort)
</pre>
<h2>Array Operations</h2>
<h3>Array cat</h3>
<p><code>arraycat [-a array] a [b ...]</code>
<p>Prints array elements, one array at a time. If the <code>-a</code>
option is given, then it appends the data to the 'array' variable
instead. This is similar to</p>
<pre>
printf '%s\n' "${a[@]}" "${b[@]}}" ...
array=( "${a[@]}" "${b[@]}}" ... )
</pre>
<p>except that you're using variable references like the strcat()
and strcpy() builtins discussed in the previous articles.</p>
<h3>Array map</h3>
<p>In Python (and some other functional languages), you can apply a
function to each element of array without manually looping through.
If there are 2 or more arrays, then elements are taken from all of
the arrays in parallel. I've added a shell version of the Python
map() function:</p>
<p><code>arraymap command a [b ...]</code>
<p>Run 'command' with arguments taken from array elements in
parallel. It should take as many positional parameters as there are
arrays. This is equivalent to</p>
<pre>
command "${a[0]}" "${b[0]}" ...
command "${a[1]}" "${b[1]}" ...
...
command "${a[N]}" "${b[N]}" ...
</pre>
<p>where N is the maximum of all indexes. Array elements are
referenced by index, not by the order of storage. So, there can be
empty parameters.</p>
<p>E.g.</p>
<pre>
unset a b; a=(1 2 3) b=(4 5 6)
func () { echo $1$2; }
arraymap func a b # join in parallel: 14 25 36
func () { echo $(($1 + $2)); }
arraymap func a b # add in parallel: 5 7 9
</pre>
<h3>Array zip and unzip</h3>
<p>The names come from the workings of a
<!-- dsrich 28 Dec 2004 - Is this Zipper TM supposed to be humor?
It seems like he is referring to the garden variety clothing zipper,
no trademark? A quick web search failed to turn up any likely candidates
for programs that would deserve this, just lots of PKZip clones. -->
zipper. You start with two rows of teeth; and, when
you zip-up, you get one row of interleaved teeth. Consider arrays
x=(x1 x2 x3 ... xn) and y=(y1 y2 y3 ... yn). Zipping produces a
single array xy=(x1 y1 x2 y2 x3 y3 ... xn yn) which consists of
interleaved elements of 'x' and 'y' arrays. Of course, unzipping
does the reverse.</p>
<pre>
y1 y2 y3 ... yn ==> x1 y1 x2 y2 x3 y3 ... xn yn
x1 x2 x3 ... xn
</pre>
<p>Here are 2 new builtins to "zip" and "unzip" directly within
Bash shell.</p>
<p><code>arrayzip [-a array] name ...</code>
<p>Print array elements, one by one, going across the arrays in
parallel. If <code>-a</code> option is given, then append to the array
variable instead. Array elements are referenced by index, not by
the order of storage, so there can be empty parameters. This is
shell version of Python zip() function, and is equivalent to</p>
<pre>
arraymap 'printf "%s\n"' name ...
arraymap 'pp_append -a array' name ...
</pre>
<p><code>arrayunzip -a array name...</code>
<p>Inverse of 'arrayzip'. Sequentially appends items from 'array'
into 'name' array variables, moving across one row at a time.
Output variables are flushed first. If there are not enough input
items, then the null (empty) string is appended to the leftover
variables.</p>
<p>For example,</p>
<pre>
x=(1 2 3 4) y=(a b c d)
arrayzip -a xy x y
declare -p xy # xy=(1 a 2 b 3 c 4 d)
unset x y
arrayunzip -a xy x y
declare -p x y # back to original
</pre>
<p>You can also use array commands to extract rows or columns in a
transposition problem. E.g.</p>
<pre>
row1=(1 2 3 4) row2=(a b c d)
arraycat -a table row{1..2}
arrayunzip -a table col{1..4}
declare -p col{1..4} # (1 a), (2 b), (3 c), (4 d)
</pre>
<h2>Putting Items into an Array</h2>
<p><pre>array [-gG glob] [-iInN a:b] [-jspq string] [-evwrR regex]
[-EVfc command] name arg...</pre>
<p>Given a list of items on the command-line, this new builtin
appends the selected items into an array variable. It is designed
to be called repeatedly, so you should create or flush the array
variable beforehand. Its many options control how and what items to
select.</p>
<h3>Content filtering</h3>
<p>The following options are command-line versions of parameter
expansion ${var|...}.</p>
<p><code>-f filter</code> Append 'arg', only
if 'filter arg' returns success (0). Otherwise, skip to next
'arg'.</p>
<p><code>-c command</code> Append the stdout
of command substitution `command arg`, only if there is an output.
Otherwise, skip to next 'arg'.</p>
<p><code>-i a:b</code> Extract Python-style
<!-- dsrich 28 Dec 2004 - What does this notation mean? -->
[a:b] substring from each 'arg', ie. arg[a:b], arg[a:b], ...</p>
<p><code>-I a:b</code> Complement of
<code>-i</code>, ie. [:a] + [b:]</p>
<p><code>-n a:b</code> Extract Python-style
[a:b] range from 'arg' sequence, ie. [arg,arg,...][a:b]</p>
<p><code>-N a:b</code> Complement of
<code>-n</code>, ie. [:a] + [b:]</p>
<p><code>-g glob</code> Append 'arg'
matching 'glob' pattern.</p>
<p><code>-r regex</code> Append 'arg'
matching 'regex' pattern.</p>
<p><code>-G glob</code> Complement of
<code>-g</code>.</p>
<p><code>-R regex</code> Complement of <code>-r</code>.</p>
<!-- dsrich 28 Dec 2004 - The following paragraph does not make sense
as written, "Minor differences" from what? Python? Editted for grammar
only. -->
<p>There are minor differences between the above mechanism and standard
parameter expansion. <code>-i</code> option extracts a substring from each
item, and the <code>-n</code> option extracts a subrange from the argument
list. Options <code>-I</code> and <code>-N</code> selects the inverse of
<code>-i</code> and <code>-n</code>, respectively, which are not available
in ${var|...}.</p>
<h3>String join and split</h3>
<p>Joining and splitting strings are very common operations. In
Python, you have string.join() and string.split(). Now, you can do
them in Bash also.</p>
<p><code>-j sep</code>
<p>Join all 'arg' with 'sep' separator, and append the resulting
string. E.g.</p>
<pre>
a=() # 'unset a' if 'a' already exists.
array -j '.' a 11 22 33 44
array -j '---' a abc 123
declare -p a # a=(11.22.33.44 abc---123)
</pre>
<p><code>-s sep</code>
<p>Split 'arg' by 'sep' separator, and append each segment to the
array. If 'sep' is null, then each char itself becomes an entry.
E.g.</p>
<pre>
a=()
array -s '.' a 11.22.33.44
array -s '---' a abc---123
declare -p a # a=(11 22 33 44 abc 123)
</pre>
<p><code>-p begin</code>
<p><code>-q end</code>
<p>Extract strings which are enclosed by 'begin' and 'end'
delimiters from 'arg'. Append both matching (excluding the
delimiters) and non-matching string segments to the array
sequentially. If both 'begin' and 'end' are null or if one option
is missing, then splitting is not done. E.g.</p>
<pre>
a=()
array -p 'abc' -q 'xyz' a abc123xyz789
declare -p a # a=(123 789)
</pre>
<p>You can call the command repeatedly, and the results are
appended to the end of array variable.</p>
<h3>Regex split</h3>
<p>Practically, all modern scripting languages can split string on
regex pattern, or replace the matching segment using callback
function. Now, so can Bash, and more.</p>
<p><code>-e regex</code>
<p>Extract 'regex' patterns from 'arg', and append each matching
string. (think egrep -e) E.g.</p>
<pre>
unset a; a=()
array -e '[a-z]+' a abc123xyz789
declare -p a # a=(abc xyz)
</pre>
<p><code>-v regex</code>
<p>Remove 'regex' patterns from 'arg' strings, and append each
non-matching string. Matching strings are skipped, like IFS
whitespace. (think egrep -v). This option is analogous to Awk
split() or Python re.split(), in that you're left with non-matching
segments. E.g.</p>
<pre>
array -v '[a-z]+' a abc123xyz789
declare -p a # a=(... 123 789)
</pre>
<p><code>-w regex</code>
<p>Similar to <code>-e</code> and <code>-v</code> option, but both matching
and non-matching strings are sequentially added, so that joining
the array with null (empty) string will give back the original
data.</p>
<pre>
array -w '[a-z]+' a abc123xyz789
declare -p a # a=(... abc 123 xyz 789)
</pre>
<p>You can specify regex(7) patterns with the <code>-evw</code> options
above. Unlike the <code>-s</code> option, null segments are not
appended, since they are rarely useful in regex splitting. If the
'nocaseglob' shell option is set, then regex matching is
case-insensitive, just like glob matching.</p>
<h3>Callback function and substitution</h3>
<p>So far, we are chopping up the command-line items and collecting
the pieces. You can also transform the pieces using a
<em>callback</em> command and use the result instead of the
original content, just like ${var|command} or <code>-c command</code>
option. However, if you collect the matching segments and the
non-matching segments separately, you lose the relative order of
those segments. What is needed is to apply the callback command to
each item just before appending the item to the array variable.</p>
<p><code>-E command</code><br>
For each matching string, append `command matching [group...]` to
the array. The command line consists of the matching string and all
parenthesized groups (if any). For the <code>-p and -q</code> options,
command substitution `command inside` will be called where 'inside'
is matching segment without the delimiters.</p>
<p><code>-V command</code><br>
For each non-matching string, append `command non-matching` to the
array.</p>
<p><code>The-EV</code> options are independent and take effect only if
<code>-evwpq</code> options are specified. 'command' can be any command
you can type on your command line. This is a generalized form of
regex substitution.</p>
<p>For example, to increment numbers by 1 and capitalize
non-numbers,</p>
<pre>
a=()
addone () { echo $(($1 + 1)); } # add 1
upper () { tr 'a-z' 'A-Z' <<< "$1"; } # to uppercase
array -w '[0-9]+' -E addone -V upper a abc123xyz789
declare -p a # a=(ABC 124 XYZ 790)
</pre>
<h2>HTML Template (BAsh Server Pages)</h2>
<p>If you can embed Python, Perl, PHP, Java, or VisualBasic within
HTML file, then there is no reason why you can't embed shell script
and process the HTML file through shell. In fact, I've done exactly
that. Here is a new builtin to process template strings with
embedded shell script.</p>
<p><code>basp [-p begin -q end] text...</code><br>
Extract embedded shell scripts which are enclosed within
'<%...%>' delimiters (non-greedy, non-nesting) from text
arguments. Run the scripts at top level, not as command
substitution, and send the output, along with surrounding texts, to
stdout. If there is error, it returns immediately. If <pre>-p and
-q</pre> options are given, then 'begin' and 'end' are used as
delimiters, instead of '<%' and '%>'.</p>
<p>This is shell's answer to PHP, JSP, ASP, and the likes, so I
named it <em>basp</em> (BAsh Server Pages). It is only 70 lines of
C, and its main advantage is that you don't have to learn another
scripting language and syntax. You can continue to use shell which
has been around for 30 years. E.g.</p>
<pre>
tag=x
basp '<html> <% printf "<$tag>%s</$tag> " 1 2 3 %> </html>'
# <html> <x>1</x> <x>2</x> <x>3</x> </html>
</pre>
<p>If you have HTML template in a file, then just read it into a
string like</p>
<pre>
basp "`< file.html`"
</pre>
<p>Because they are running at top level, embedded code-blocks share
data and environment with each other and with the main shell session.
If you want to isolate the main session, run it in a subshell.</p>
<p>A more complicated example might be to get a list of items, then
print a table with 10 consecutive items per row. The template
<code>file.html</code> will look like</p>
<pre>
<table>
<%
set -- {1..40}
for i in `seq 1 10 $#`; do
cat << EOF
<tr> `printf '<td>%s</td> ' ${*:i:10}` </tr>
EOF
done
%>
</table>
</pre>
<p>Then,</p>
<pre>
basp "`< file.html`"
</pre>
<p>will produce a 4x10 table which renders to</p>
<pre>
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40
</pre>
<p>You can implement the HTML template using the <code>array</code> builtin
from above. Essentially, you extract the script that is between the
'<%...%>' delimiters and run it through <code>eval</code>, and
print non-script to stdout unchanged. So, it would go something
like</p>
<pre>
a=()
array -p '<%' -q '%>' -E eval -V echo a "`< file.html`"
arraycat a
</pre>
<p>But, although it works for the example above, you are limited by
the fact that each command substitution is a separate process and
can't share data with other code-blocks. So, if you put 'set --
{1..50}' in another code-block, then it won't work. Besides,</p>
<pre>
basp "`< file.html`"
</pre>
<p>is less typing.</p>
<!-- dsrich 28 Dec 2004 - The paranoid bone is just too strong -->
<p class="editorial">[Editor's Note: The security ramifications of
this are left as an exercise for the reader. Think chroot jail, at
a minimum. -- Dave ]</p>
<h2>Expat XML parser</h2>
<p>I've added a simple interface to the <a href=
"http://www.libexpat.org/">Expat XML parser</a>, so that you can
register callback functions and interact with the XML parser from
the shell. This new builtin will be enabled only if you have Expat
installed. If you don't, then you will need to download/compile/install
Expat, and recompile Bash shell (starting with
<code>./configure</code>).</p>
<pre>
<p><code>xml [-sedicnm command] text...</code>
</pre>
<p>This is the interface to Expat-1.95.8 (from www.libexpat.org)
library. Arguments are fed to the Expat XML parser sequentially.
It returns 1 immediately on any error. If all arguments are processed
without error, then the builtin returns success (0). The argument must
be a single complete XML document, because Expat can handle only one
XML document per parser process.</p>
<p>The parser will invoke the callback commands or handlers that
you specify, with all required parameters on the command-line. The
callbacks will run at the top level, so if you need to protect your
shell environment, run the 'xml' command in subshell. For the moment,
the following options are recognized:</p>
<p><code>-s command</code> start element (Usage: <code>command tag att=value ...</code> ).</p>
<p>The attribute name and value strings are concatenated with '=',
so that 'declare' or 'local' can be used to set shell variables with
the same names as attributes, ie.</p>
<pre>
declare "$2" # set the first attribute name
declare "${@:2}" # set all attribute names
</pre>
<p><code>-e command</code> end element
(Usage: <code>command tag</code> )</p>
<p><code>-d command</code> character data
(Usage: <code>command data</code> )</p>
<p><code>-i command</code> processing
instruction (Usage: <code>command target data</code> )</p>
<p><code>-c command</code> comment (Usage:
<code>command text</code> )</p>
<p><code>-n command</code> namespace start
(Usage: <code>command prefix uri</code> )</p>
<p><code>-m command</code> namespace end (Usage: <code>command prefix</code> )</p>
<p>For convenience, the name and attributes of start XML elements
are saved in array variable XML_ELEMENT_STACK as a stack, ie.</p>
<p>XML_ELEMENT_STACK[0] = number of
positional parameters (ie. $#)</p>
<p>XML_ELEMENT_STACK[1] = tag (ie.
$1)</p>
<p>XML_ELEMENT_STACK[2] = the first attribute 'key=value' (ie. $2)
...</p>
<p>and the depth of current XML element is stored in shell variable
XML_ELEMENT_DEPTH. They will be removed and decreased,
respectively, at the end of XML element. Essentially, this is
equivalent to doing manually</p>
<pre>
pp_push -a XML_ELEMENT_STACK $# "$@"
((XML_ELEMENT_DEPTH++))
</pre>
<p>at the start of element, and</p>
<pre>
pp_pop -a XML_ELEMENT_STACK $((XML_ELEMENT_STACK[0] + 1))
((XML_ELEMENT_DEPTH--))
</pre>
<p>at the end of element.</p>
<h3>Example</h3>
<p>To illustrate how it works, consider the following XML
sample:</p>
<pre>
<root>
<one a="AA" b="BB">
first line
<two x="XX"/>
second line
</one>
</root>
</pre>
<ol>
<li>
<p>When <root> element is encountered, it will set</p>
<pre>
XML_ELEMENT_STACK=(1 root)
XML_ELEMENT_DEPTH=1
</pre>
<p>and call command registered with <code>-s</code> option with 'root'
as the argument,</p>
<pre>
command root
</pre>
</li>
<li>
<p>On encountering <one> element, it will push '3', 'one',
'a=AA', and 'b=BB' onto XML_ELEMENT_STACK and increment
XML_ELEMENT_DEPTH, so that they become</p>
<pre>
XML_ELEMENT_STACK=(3 one a=AA b=BB 1 root)
XML_ELEMENT_DEPTH=2
</pre>
<p>Also, it will call the <code>-s</code> callback with the tag and
attributes, like</p>
<pre>
command one a=AA b=BB
</pre>
</li>
<li>
<p>Similarly, on encountering <two> element, it will push
'2', 'two', 'x=XX' onto XML_ELEMENT_STACK and increment
XML_ELEMENT_DEPTH, which become</p>
<pre>
XML_ELEMENT_STACK=(2 two x=XX 3 one a=AA b=BB 1 root)
XML_ELEMENT_DEPTH=3
</pre>
<p>and call the <code>-s</code> callback, like</p>
<pre>
command two x=XX
</pre>
<p>Since this tag has implicit </two> element, it will
immediately call command registered with <code>-e</code> option with
'two' as the argument,</p>
<pre>
command two
</pre>
<p>Then, it will pop the current tag and attributes off
XML_ELEMENT_STACK and decrement XML_ELEMENT_DEPTH. Now, they return
to the state they were in before entering 'two' element, ie.</p>
<pre>
XML_ELEMENT_STACK=(3 one a=AA b=BB 1 root)
XML_ELEMENT_DEPTH=2
</pre>
</li>
<li>
<p>On encountering </one> element, it will call <code>-e</code>
callback,</p>
<pre>
command one
</pre>
<p>and pop the tag and attributes off XML_ELEMENT_STACK and
decrement XML_ELEMENT_DEPTH, so that they become</p>
<pre>
XML_ELEMENT_STACK=(1 root)
XML_ELEMENT_DEPTH=1
</pre>
</li>
<li>
<p>Finally, for </root> element, it will call <code>-e</code>
callback,</p>
<pre>
command root
</pre>
<p>and pop the current tag off
XML_ELEMENT_STACK and decrement XML_ELEMENT_DEPTH, returning to
their initial state.</p>
</li>
<li>
<p>For data such as 'first line' and 'second line', the command
registered with <code>-d</code> option will be called with the data as
argument. Multiple calls are made, if data are multi-line, contains
special character encodings, or broken up by another elements. It
is the user's responsibility to collect these data segments. Here,
<code>strcat</code> would come handy.</p>
</li>
</ol>
<p>Because XML_ELEMENT_STACK is a stack holding the command-line
arguments for all nested elements, you can check it to find out
where you are.</p>
<p>In any callback command, the command-line arguments used at the
start of current element are</p>
<pre>
arg=( "${XML_ELEMENT_STACK[@]:0:XML_ELEMENT_STACK[0]+1}" )
</pre>
<p>which consists of $# <code>${arg[0]}</code>, the tag name
<code>${arg[1]}</code>, and the attribute names and values
<code>${arg[*]:2}</code> (if any). Similarly, the command-line
arguments used for the immediate parent element are</p>
<pre>
n=${XML_ELEMENT_STACK[0]}
arg=( "${XML_ELEMENT_STACK[@]:n+1:XML_ELEMENT_STACK[n+1]+1}" )
</pre>
<p>An easier way would be to rotate the stack, assuming
XML_ELEMENT_DEPTH is deep enough to allow rotation, e.g.</p>
<pre>
n=${XML_ELEMENT_STACK[0]}
pp_rotateleft -a XML_ELEMENT_STACK $((n+1))
arg=( "${XML_ELEMENT_STACK[@]:0:XML_ELEMENT_STACK[0]+1}" )
pp_rotateright -a XML_ELEMENT_STACK $((n+1))
</pre>
<p>To get a list of all nested tag names, you simply filter out
stack items containing '=' (attribute) or all integers ($#). From
inside of <two> element in the above example,</p>
<pre>
XML_ELEMENT_STACK=(2 two x=XX 3 one a=AA b=BB 1 root)
echo ${XML_ELEMENT_STACK[*]|~=|^[0-9]+$} # two one root
</pre>
<p>will give you just the tags. This is equivalent to manually
looping through, like</p>
<pre>
for i in {1..XML_ELEMENT_DEPTH}; do
echo ${XML_ELEMENT_STACK[1]}
pp_rotateleft -a XML_ELEMENT_STACK $((XML_ELEMENT_STACK[0] + 1))
done
</pre>
<p>So, Bash equivalent to 'outline' example from Expat distribution
would go like</p>
<pre>
indent=' '
start () {
echo "${indent|*XML_ELEMENT_DEPTH-1}$*"
}
xml -s start "`< file.xml`"
</pre>
<p>producing</p>
<pre>
root
one a=AA b=BB
two x=XX
</pre>
<h2>GDBM and Associative Arrays</h2>
<p>For some reason, Bash doesn't have a key/value data structure
(called associative array, hash, or dictionary in other scripting
languages.) I've added a wrapper for gdbm(3) with a full set of
operations to create and manipulate disk-based associative
arrays.</p>
<p><code>gdbm [-euikvr] [-KVW array] file [key | key value ...]</code>
<p>Typical usage would be as follows:</p>
<p><code>gdbm file</code> print all
key/\t/value pairs, ie. dict.items()</p>
<p><code>gdbm -k file</code> print all keys,
ie. dict.keys()</p>
<p><code>gdbm -v file</code> print all
values, ie. dict.values()</p>
<p><code>gdbm file key</code> print var[key], ie. ${var[key]}</p>
<p><code>gdbm -r file</code> reorganize database</p>
<p><code>gdbm -K array file</code> save all
keys into array</p>
<p><code>gdbm -V array file</code> save all
values into array</p>
<p><code>gdbm -W array file</code> save all key/value pairs into array
sequentially</p>
<p><code>gdbm file key value</code> store
key/value, ie. var[key]=value</p>
<p><code>gdbm -i file key value</code> store
key/value, only if key is new</p>
<p><code>gdbm -v file key name</code> store value in variable, ie.
name=${var[key]}</p>
<p><code>gdbm -e file</code> test if file is
GDBM database</p>
<p><code>gdbm -e file key</code> test if key
exists</p>
<p><code>gdbm -e file key value</code> test if key exists and value is
var[key]</p>
<p><code>gdbm -u file key</code> delete key,
ie. unset var[key]</p>
<p><code>gdbm -u file key value</code> delete key, only if value is
var[key]</p>
<p>More than one key/value pair can be specified on the command
line, and all arguments will be processed even if there
is an error. This speeds up data entry, because each 'gdbm' call opens
and closes the database file. If the last value is missing (ie.
there is an odd number of arguments,) then the last key will be
ignored.</p>
<p>For example,</p>
<pre>
gdbm file.db a 111 b 222 c 333
gdbm file.db a # 111
gdbm file.db b # 222
gdbm file.db c # 333
gdbm -k file.db # c a b
gdbm -v file.db # 333 111 222
gdbm -v file.db a x b y c z
declare -p x y z # x=111 y=222 z=333
gdbm -e file.db a # does 'a' exist?
gdbm -e file.db a 111 b 222 # is a==111 and b==222 ?
</pre>
<p>There are many benefits to this approach:</p>
<ol>
<li>
<p>the database is a single file which
can be copied,</p>
</li>
<li>
<p>the data survives exit and
reboot,</p>
</li>
<li>
<p>other processes can access the
database,</p>
</li>
<li>
<p>the shell can now handle a database which is bigger than
memory.</p>
</li>
</ol>
<h2>SQLite, MySQL, and PostgreSQL</h2>
<p>Each database comes with its own command-line client program
(ie. 'sqlite', 'mysql', and 'psql'). Athough it is easy to send SQL
statements to the database manager, it can be difficult to bring query results back into
the shell. You have to use stdout or a file, read the table, and
parse the rows and the columns. This is non-trivial for anything but
simple data.</p>
<p>I've added a simple interface to <a href=
"http://www.sqlite.org/">SQLite</a>, <a href=
"http://www.mysql.com/">MySQL</a>, and <a href=
"http://www.postgresql.org/">PostgreSQL</a>:</p>
<p><pre>Lsql [-a array] -d file
SQL...</pre>
<p><pre>Msql [-a array] [-h host -p port
-d dbname -u user -P password ] SQL...</pre>
<p><pre>Psql [-a array] [-h host -p port -d dbname -u user -P
password ] SQL...</pre>
<p>where <code>Lsql</code> is for SQLite, <code>Msql</code> is for MySQL,
and <code>Psql</code> is for PostgreSQL. Of course, if you don't have a
database, then you won't be able to use the corresponding
builtin.</p>
<p>They all work pretty much the same way. They send SQL statements
to the database engine. If there is any query result, they print
to stdout, or (with the <code>-a</code> option) save the data fields into an
array variable, row by row. My intention is not to replace the
client programs, but to make shell script easier to write. For
example, here is the tutorial example in the SQLite documentation:</p>
<pre>
Lsql -d file.sqlite \
"CREATE TABLE tbl1(one VARCHAR(10), two SMALLINT)" \
"INSERT INTO tbl1 VALUES('hello!',10)" \
"INSERT INTO tbl1 VALUES('goodbye', 20)" # use 'set +H'
</pre>
<p>creates a simple table and loads in 2 rows of data. To query it,</p>
<pre>
Lsql -d file.sqlite "SELECT * FROM tbl1" # to stdout
Lsql -a table -d file.sqlite "SELECT * FROM tbl1"
declare -p table # table=(hello! 10 goodbye 20)
</pre>
<p>The first will print</p>
<pre>
hello! 10
goodbye 20
</pre>
<p>and the second will put the data into array variable
'table'.</p>
<h2>Summary</h2>
<p>This ends this tutorial on my patches to Bash-3.0 shell. Bash
shell is ideal tool for teaching/learning about Linux and
programming, because it is so easy to write C extensions and put
shell handles on them. It is my sincere hope that readers will
stick with shell a little longer before moving on to other
scripting languages. :-)</p>
</p>
<!-- *** BEGIN author bio *** -->
<!-- ============================================================= -->
<!-- *** BEGIN bio *** -->
<hr>
<!--
<p>
<img ALIGN="LEFT" ALT="[BIO]" SRC="../gx/2002/note.png" class="bio">
<em>
</em>
<br CLEAR="all">
-->
<!-- *** END bio *** -->
<!-- ============================================================= -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/anonymous.html">Anonymous</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="engel"></a>
<h1>Free as in Freedom: Part One: GNU/Linux</h1>
<p id="by"><b>By <A HREF="../authors/engel.html">Adam Engel</A></b></p>
</b>
</p>
<p>
<pre>
"How far can free software go? There are no limits, except
when laws such as the patent system prohibit free software
entirely. The ultimate goal is to provide free software to
do all of the jobs computer users want to do--and thus make
proprietary software obsolete."
-- Richard Stallman (<a href="http://www.gnu.org/philosophy/philosophy.html">http://www.gnu.org/philosophy/philosophy.html</a>)
</pre>
<em>[NOTE: all dialog is culled from email conversations unless otherwise
noted -- AE]</em>
<p> Time to start rethinking things. We "progressives," (leftists,
anarchists, libertarians, liberals, etc. -- wide spectrum of opinion
usually lumped together by mainstream media under the codename "fringe" or
the even scarier "radical" or "free thinker") who fill hundreds of websites
with our words and images may be making a few corporations very rich in
the process. Corporations whose vision of software as "proprietary"
property, something to own, like land, or employees, with all the rules and
regulations about trespassing and fiddling with "personal" corporate
property, intact.
<p> Diebold. Another "questionable" election. This whole computer voting
scam comes down to a test of freedoms. The freedom of citizens of a
Republic to control their own destinies, or the freedom of corporations of
a global marketplace to control everything up to and including the
citizens' illusions that they are citizens of a Republic the future of
which they control. Scam: a corporation using the law to guard their
proprietary software, the public be damned, though this software is being
used by the public, in public, to decide the future of the (Re)public. This
is not just a computer thing - it's a human rights thing.
<p> Let's take me, for instance, or you:
<p> Unless you paid for every piece of software on your proprietary
operating system, or received it as a gift for your personal use only, or
are using it for work under a license purchased by your employer, you are a
criminal. You stole hundreds, perhaps thousands of dollars -- it's their
call, they can charge whatever they want and that price becomes the "market
value" -- from some of the richest, most powerful people on earth, and for
this you must pay dearly. Heavy fines. Jail time. A criminal record.
<p> Unless... you're running the GNU/Linux operating system and any
combination of its literally thousands of free software programs and
applications available for free download off hundreds of websites
around the world. Then, there's no problem. You're free. But still...
<p> No matter how radical you think you are, both the activist who writes
his incendiary manifesto as a Word .doc and the cop who files the police
report, cutting and pasting radicals into columns of his Windows Graphical
User Interface (GUI) database, are working for Microsoft.
<p> So before you write your next piece on the PATRIOT ACT or the
incredibly shrinking Bill of Rights (some animals are more equal than
others) or any number of breaches of free speech and free choice our
corporate masters are imposing on the world, think about what kind of
software you're using, or rather, whose. Whose software are you using to
email your work to your editor or newsgroup, or representative, and what
kind of software runs the list, blog or website where it will be posted?
Are you and your editor and colleagues defending free speech on your own
free software, or is the whole thing, the writing, coding, and publication,
both by your "progressive" website and its "reactionary" counterparts all
working together to make more money for a few software giants that own the
means of production and the means of reproduction and distribution?
<p> No matter who wins the "battle," it seems, Microsoft, Adobe, Macintosh,
etc. won the war a long time ago by defining the "personal computer"
and how it's used in public and private, work, play, and education.
<h3>GNU Possibilities</h3>
<p> It all began... (of course it never really all begins anywhere ever,
but sometimes someone steps up and says "No way," so we'll take that as a
beginning, here) around 1983 with Richard Stallman's GNU Manifesto and his
stated goal to create a free operating system.
<p> Yeah, someone's always stating something, but in this case, as millions
of computer users can attest, the guy who stated wasn't just talking.
Stallman, as we shall see, came through. Big Time.
<p> (While GNU/Linux's file system and commands are Unix-like, according
to Stallman, "it is dangerously misleading to say that GNU is 'based
on Unix'. Unix is proprietary software, and we could not use any of it.
We had to start over, from scratch. That's why it is so important
that GNU's *Not* Unix." The name "GNU" -- pronounce the "g" --
is in fact a recursive acronym for "GNU's Not Unix".)
<p> Stallman already had a track record as one of the most inventive
programmers around. In 1975 he created the text editor, Emacs, which
he would re-create, using entirely different code, in 1984, as GNU
Emacs, one of the first major features of the GNU Operating System. GNU
Emacs is the de facto text editor of GNU/Linux as well as many
corporate owned Unixes (it shares proponents and disk space with one of
the original Unix text editors, 'vi' (and it's powerful free upgrade,
VIM). When people say Emacs they mean GNU Emacs, though a popular,
more graphic version, XEmacs, also grew out of GNU Emacs and shares
much of the same code.
<p> "The revolutionary text editor Emacs that I developed in 1975 was not a
version of anything else. It had nothing to do with Unix, which in 1975 was
hardly known," Stallman emailed me regarding the origins of Emacs.
<p> As a staff member of MIT's Artificial Intelligence Lab from 1971 to
1983, Stallman created and worked on important computer stuff and
established himself as a major hacker.
<p> Mainstream media turned "hacker" into a "bad" word to describe bad
people; hackers are in fact just people who live for programming
computers and are very good at it. They are proud to call themselves
hackers and care as much about the media's opinion of their culture
as they do the media's opinion of the validity of their calling:
zilch. Unlike, say, the Generic Office Worker in the Generic
Labyrinth (third cubicle to the left), they don't hang up their titles
at the end of the day when they get off the train. They are hackers
24/7, or as long as they live and love to program computers. It's who
they are, it's what they do. Hackers. This is important.
<p> There are a lot of name distinctions and language manipulations in this
story, including the distinction between GNU/Linux and what most people
call plain old Linux. They are all important, for most of the names
and terms are or were created by the creators themselves, only to have
them twisted, hyphenated, out-quoted (and out-sourced) by our old
friend, The Corporation, for the sake of corporate ownership and
profit.
<p> These are real people who have done real things and have real beliefs.
These aren't "like, the spaced-out, hacker-snackers on TV, like you
know, dude?" The success of the GNU/Linux model in standing up for
freedom -- real freedom, not the freedom to "say no" to medical
marijuana and live in unnecessary agony or go to jail -- is a
powerful example of community over the Corporation, and something we,
especially we who write about freedom and act for freedom should study
in great detail. Your life will or will not change for the better due
to the real or imposed outcome of the 2004 Presidential election, or
who wins, or imagines they do, in 2008. The only way to change your
life and anyone else's for the better is to help wrest the fate of
humanity from its current corporate ownership (all rights reserved).
<p> Life is fleeting regardless, but must it also be licensed and subject
to review and revocation by those who had zero participation in its
creation and whose only purpose is to excise profit from the
necessities of its maintenance? Corporate ownership of data, of
knowledge, can change your life in a big way, especially if you get
caught using illegal knowledge on your computer or worse, legal
knowledge without a license.
<p> Again, it started like it often does. Paradigmatic. Like the German
writer Kleist's classic, <strong><em>Michael Kohlhaas</em></strong>
(transliterated into the character Colehouse Porter in E.L. Doctorow's
novel, <strong><em>Ragtime</em></strong>), someone saw his community, his
habitat, and everything in it of value to him destroyed by corporate greed
and laws created and imposed to sanctify these actions, make them seem
"right, the natural order of things," and decided to fight back. This is
the story of his fighting and winning, for a time, for we only win for a
time until things change, everything changes, and even the movement we
thought was ours, the movement we started, moves away from us in every
direction.
<p> Linux is big business, or is on the cusp of becoming big business. It
can go the way of the corporate citizen, or the free individual. It
cannot continue the balancing act it has maintained of being both. Or
can it?
<p> The correct name of the operating system is GNU/Linux, but almost
everyone in the world refers to it as "Linux." Ben Okopnik,
Editor-In-Chief of the Linux Gazette (LG) wrote that this is merely a
matter of convenience:
<blockquote>
"Note that this distinction, much as RMS (Richard Stallman) and others may
have tried to promote it, did not make it into the common lexicon. Just
as in the case of the 'X Window System', universally known as 'X', a
short simple identifier is what people will use when it's available."
</blockquote>
<p> But it also might have much to do with mythology that has grown up
around both the Linux kernel and its chief architect, Linus Torvalds.
Many people believe, and this has been amplified in mainstream media,
that the "Linux Operating System" was created from scratch by Linus
Torvalds in 1991, with some help from hackers around the world
connected via the Internet. This makes for a good story because it
displays the power of the Internet, especially during GNU/Linux's
formative years in the hyped-up 1990s, and GNU/Linux is indeed a
product of collaboration that could only have happened on the Internet.
Also it presents us with an archetypal hero/genius of the Robin Hood
ilk who led his band of merry hackers through the proprietary coded
forests to wreak havoc on the corporate desktop.
<p> Of course it's not so simple.
<p> Linux is the kernel, not the operating system. The kernel is like the
medulla, the "lizard brain" responsible for the automatic functions of
the operating system -- for us: breathing, heartbeat, swallowing; for
computers: background processes, daemons, the ability to read certain
drivers and communicate with the user via the "shell". If the medulla
is the kernel in this analogy, and the cerebrum is what it is, whether
with human bodies or computers, the cerebrum, "us" the conscious
user/programmer, then the rest of the body is the operating system.
Arms, legs, eyes, skin. For computers it's the shell (a program
that serves as the interface between the user and the kernel), and the
rest of the operating system, consisting of various tools, commands,
programs and the libraries that run them.
<p> The Unix and GNU/Linux system libraries are code that allows the
system to recognize and execute various functions, including
communicating with itself and recognizing that "it computes, therefore
it exists." In order to have a complete Unix or GNU/Linux operating
system you need a kernel and a system of programs, tools, and
commands, including the shell. Without the rest of the system, the
kernel isn't very useful. Sort of like a medulla on a plate.
<p> The system of tools that enabled the Linux kernel to merge into a
functional operating system existed at the time of Linux's release in
1991. That operating system was developed by Richard Stallman and other
hackers, many from the Free Software Foundation (<a
href="http://www.fsf.org">FSF</a>), and it was called GNU. Its development,
essential but often neglected in importance, was a revolutionary move.
<p> After I mentioned a series of common programs, utilities and
applications, Stallman emailed me, "All programs that run on GNU/Linux
are linked with GNU 'libc'. 'libc' [part of the GNU/Linux library] is the
only way most programs talk to Linux."
<p> Perhaps the only development that rivals the creation of the GNU
operating system, in terms of protecting the freedoms of software
users, programmers and documentation writers are the copyleft licenses,
such as the GNU General Public License (GPL) for software, and the
various others for documentation.
<p> Stallman wrote, "<em>Copyleft</em> is a technique used in unilateral copyright
licenses. The technique is to require modified versions to be under
the same license. One can design the details in many different ways.
For instance the GNU GPL and the GFDL are both copyleft licenses--the
former primarily meant for software, the latter primarily meant for
documentation--and their requirements are quite different."
<p> Since the creation of the GNU GPL there have been many variations to
serve specific needs, but the essence is the same: copyleft ensures
that software code and the documentation of how to use that code
remain, to quote Stallman, "free as air."
<p> When Stallman worked through the seventies at the AI lab at MIT, things
were different. There was no market, hence no marketplace. Programmers
and other computer users routinely shared files and software.
Everything was "open source" simply because there wasn't much around.
They were creating it. Even corporate-owned software, tools, and
systems -- the C language, the Unix System, the Internet, etc. -- had to
be invented before they could be locked away, given away, or shared
according to what could or could not be feasibly controlled and by what
means.
<p> "When I started working at the MIT Artificial Intelligence Lab in 1971,
I became part of a software-sharing community that had existed for many
years. Sharing of software was not limited to our particular community; it
is as old as computers, just as sharing of recipes is as old as cooking...
We did not call our software "free software", because that term did not yet
exist; but that is what it was. Whenever people from another university or
a company wanted to port and use a program, we gladly let them. If you saw
someone using an unfamiliar and interesting program, you could always ask
to see the source code, so that you could read it, change it, or
cannibalize parts of it to make a new program," Stallman wrote on the GNU
web site (<a
href="http://www.gnu.org/gnu/thegnuproject.html">http://www.gnu.org/gnu/thegnuproject.html</a>).
<p> But once the corporate sector figured out how to make money and that
there was money to be made, things changed. The "community" that Stallman
worked with during the seventies, developing the prototypes for what we
take for granted as the modern operating systems of today, was gone by
1981, hired away by corporations arming themselves for the coming computer
market wars, or prohibited, by non-disclosure laws of proprietary systems,
from exercising the kind of freedom that resulted in creativity and
experimentation.
<p> Stallman wrote, "This meant that the first step in using a computer was
to promise not to help your neighbor. A cooperating community was
forbidden. The rule made by the owners of proprietary software was,
'If you share with your neighbor, you are a pirate. If you want any
changes, beg us to make them. The idea that the proprietary-software
social system - the system that says you are not allowed to share or
change software - is antisocial, that it is unethical, that it is simply
wrong, may come as a surprise to some readers. But what else could we
say about a system based on dividing the public and keeping users
helpless? Readers who find the idea surprising may have taken
proprietary-software social system as given, or judged it on the terms
suggested by proprietary software businesses. Software publishers have
worked long and hard to convince people that there is only one way to
look at the issue." (<a href="http://www.gnu.org/gnu/thegnuproject.html">http://www.gnu.org/gnu/thegnuproject.html</a>)
<p> Stallman's questioning of the corporate assumptions that software must
be owned by corporate mediators and licensed to users is examined in detail
on the <a href="http://www.gnu.org">GNU.org</a> site's philosophy pages;
e.g., arguments for free software (<a
href="http://www.gnu.org/philosophy/why-free.html">http://www.gnu.org/philosophy/why-free.html</a>)
and against terminology such as "intellectual property" (<a
href="http://www.gnu.org/philosophy/not-ipr.xhtml">http://www.gnu.org/philosophy/not-ipr.xhtml</a>).
<p> With the development of GNU, as with most revolutionary movements,
there was no middle ground for compromise.
<p> Stallman wrote, "With my community gone, to continue as before was
impossible. Instead, I faced a stark moral choice. The easy choice was to
join the proprietary software world, signing nondisclosure agreements and
promising not to help my fellow hacker. Most likely I would also be
developing software that was released under nondisclosure agreements, thus
adding to the pressure on other people to betray their fellows too. I could
have made money this way, and perhaps amused myself writing code. But I
knew that at the end of my career, I would look back on years of building
walls to divide people, and feel I had spent my life making the world a
worse place." (<a
href="http://www.gnu.org/gnu/thegnuproject.html">http://www.gnu.org/gnu/thegnuproject.html</a>)
<p> The history of his response to this choice can be found in extensive
detail on the GNU.org site. What Stallman did, in a nutshell, was to write
The GNU Manifesto (<a
href="http://www.gnu.org/gnu/manifesto.html">http://www.gnu.org/gnu/manifesto.html</a>)
in which he explained to his fellow hackers and the computer using
community at large the issues they faced and his determination to create a
fully functional Unix-like operating system, but written from scratch, with
no proprietary code, and absolutely free. His goal was to make it as good
as or better than Unix -- and in this, many agree, he succeeded; various
GNU tools, programs, applications and components (such as the C library and
compiler, GCC) are faster, more robust, and offer more options than their
proprietary counterparts. But even if he had to fall short of that goal in
order to keep GNU absolutely free, he would have done so.
<p> It is in this spirit that the GNU GPL and other copyleft licenses and
declarations of "non-ownership" are based. The creation of the copyleft
type of license is as radical as the creation of the GNU software itself.
It takes the corporate idea of "ownership" and "copyright" created to
serve a few at the expense of the many, inside out, and upside down. In
order for code to be considered Free Software and therefore useable under
the GNU GPL, it must be accessible to all. Anyone can change it,
customize it, or make improvements on it, so long as the original code and
authorship is included and this new code is also open for others to examine
and modify, whether for personal customization or general improvement.
<p> One misconception is that "free software" means that one cannot charge
money for it. In fact, the opposite is the case. In the early days the FSF
earned the bulk of its funding not through donations, but sales of its
manuals, hard-copy books, and software. Though this is no longer true
today, the <a href="http://www.fsf.org">FSF</a> still sells software
documentation and books on their website.
<p> "Free as in free speech, not free beer" is the GNU slogan that sums it
up best. One is free to charge for such services as distribution or
redistribution of software, writing documentation or new software based on
the original GPL code, etc., so long as the source remains free, prior
versions and authors are listed, and other rules of the GNU GPL are
followed.
<p> While it is possible to download the Linux kernel, all of GNU's several
thousand programs and applications, and the hundreds of third-party
offerings for GNU/Linux, such as the X Windows GUI and window managers, the
KDE desktop environment (which I'll examine in further detail in Part Two
of this article) and many other components, the easiest and least
time-consuming way to obtain GNU/Linux, especially for those who are new to
to it, is to plunk down roughly $30 for a "distribution" on CD or DVD from
companies such as <a href="http://www.redhat.com">Red Hat</a>, <a
href="http://www.debian.org">Debian</a>, <a
href="http://suse.com">SuSE</a>, and others.
<p> These companies make money by gathering all the components of GNU/Linux
under one roof, in addition to adding their own components, such as SuSE's
YaST GUI system manager, or Red Hat's RPM (Red Hat Package Manager)
software bundling application. Nearly all the distributions come with
customized easy-install GUI interfaces for new users.
<h3>GNU + Linux = GNU/Linux?</h3>
<p> While the popularity of GNU/Linux is exploding, Stallman and others
in the free software community face significant threats from a
Corporate friendly business environment, always ready to lend a legal
hand with restrictive copyright law. Then there's the jealous rage of
Microsoft, who views the FSF and its works as a significant threat
worth spending a lot of money on (and spending lots of money to make
people miserable is what Microsoft does best, second only to charging
lots of money for making people miserable).
<p> But the most serious threat comes from the "Linux" community itself.
Very few people outside of GNU and the FSF refer to GNU/Linux as
anything but "Linux." In addition, as with all successful radical
movements, as we move further in time from the origins of the
necessary development of free software, people tend to associate less
with "free software" and more with "Linux" itself, as if it were a
sports team or some other symbolic source of identification, like
"America."
<p> Thus, many will root for the success of the nominally free "Linux" over
"Microsoft" in winning the bid for a Government/Military computing contract
or the unofficial "support" of governments, such as China or India and
other political entities supporting the development of GNU/Linux as the
"official state Operating System," or what not. Working for the authorities
to help destroy the Gaea and impinge on freedom is supposed to be the job
of proprietary operating systems, not GNU/Linux! But then, as Stallman
himself said, GNU was developed to solve some of the world's problems, not
all of them. Though the success of GNU and GNU/Linux, representing a
victory of a community of individuals (that began with hundreds and has
grown to millions) over a handful of corporate superpowers forces anyone
who values his/her liberty to pause and wonder: what else is possible?
What else can be done to change this mess for the better?
<p> In response to my confusion regarding the free software versus the
"open source" movements, Stallman emailed me this information, put
out by Slackware, a GNU/Linux distribution:
<p>from <em>THE SLACKWARE BOOK</em>:
<pre class="code">
<em>
<strong>Open Source and Free Software</strong>
Within the Linux community, there are two major ideological movements at
work. The Free Software movement, which we'll get into in a moment, is
working toward the goal of making all software free of intellectual
property restrictions, which it believes hamper technical improvement and
work against the good of the community. The Open Source movement is working
toward most of the same goals, but takes a more pragmatic approach to
them, preferring to base its arguments on the economic and technical merits
of making source code freely available, rather than the moral and ethical
principles that drive the Free Software Movement. The Free Software movement
is headed up by the Free Software Foundation, which is a fund-raising
organization for the GNU project. Free software is more of an ideology.
The oft-used expression is "free speech, not free beer". In essence, free
software is an attempt to guarantee certain rights for both users and
developers. These freedoms include the freedom to run the program for any
reason, the freedom to study and modify the source code, the freedom to
redistribute the source, and the freedom to share any modifications you
make. In order to guarantee these freedoms, the GNU General Public License
(GPL) was created. The GPL, in brief, provides that anyone distributing a
compiled program which is licensed under the GPL must also provide source
code, and is free to make modifications to the program as long as those
modifications are also made available in source code form. This guarantees
that once a program is opened to the community, it cannot be closed
except by consent of every author of every piece of code (even the
modifications) within it. Most Linux programs are licensed under the GPL.
It is important to note that the GPL does not say anything about price. As
odd as it may sound, you can charge for free software. The "free" part is
in the liberties you have with the source code, not in the price you pay
for the software. (However, once someone has sold you, or even given you, a
compiled program licensed under the GPL they are obligated to provide its
source code as well.)
At the forefront of the younger Open Source movement, the Open Source
Initiative is an organization that solely exists to gain support for open
source software. That is, software that has the source code available as
well as the ready-to-run program. They do not offer a specific license, but
instead they support the various types of open source licenses available.
The idea behind the OSI is to get more companies behind open source by
allowing them to write their own open source licenses and have
those licenses certified by the Open Source Initiative. Many companies want
to release source code, but do not want to use the GPL. Since they cannot
radically change the GPL, they are offered the opportunity to provide their
own license and have it certified by this organization.
While the Free Software Foundation and the Open Source Initiative work to
help each other, they are not the same thing. The Free Software Foundation
uses a specific license and provides software under that license. The Open
Source Initiative seeks support for all open source licenses, including the
one from the Free Software Foundation. The grounds on which each argues for
making source code freely available sometimes divides the two movements, but
the very fact that two ideologically diverse groups are working toward the
same goal lends credence to the efforts of each.
</em>
</pre>
<p> Thus, Stallman and others in the Free Software movement are opposed to
any compromise that would threaten the initial goal of a free operating
system. For instance, <a href="http://www.kde.org">KDE.org</a>, which
develops a full desktop environment that enables the "average user" to use
GNU/Linux as easily as he/she would Windows or Macintosh, with little or no
knowledge of basic Unix or GNU/Linux commands, utilized a proprietary code
called Qt. Rather than accept this breach of the GPL, GNU developed an
alternative desktop environment called GNOME (www.gnome.org). Fortunately,
KDE licensed Qt under the GPL, so now users have two Windows/Mac-like GUI
environments to choose from. But if push came to shove, those dedicated
to the principles of the free software movement would have stuck with GNOME
even if it was behind scheduled release or was qualitatively inferior to
KDE, while those in the "open source" movement, whose primary goal is the
development of "Linux" into an operating system that will compete on a
global scale with Microsoft, might have accepted the proprietary use of Qt.
<p> Ben Okopnik, Editor-in-Chief of the Linux Gazette, wrote, "The
proprietary bits of Qt were a problem. They did a tremendously
intelligent thing by opening it up; KDE, and Qt development in general,
simply exploded as soon as they did."
<p> But even Stallman admits that there will be other threats to an
absolutely free software movement, particularly by "open source,"
espoused by corporations who cannot bear even the word "freedom."
<p> Stallman wrote, "Teaching new users about freedom became more difficult
in 1998, when a part of the community decided to stop using the term "free
software" and say "open source software" instead. Some who favored this
term aimed to avoid the confusion of "free" with "gratis"-- a valid goal.
Others, however, aimed to set aside the spirit of principle that had
motivated the free software movement and the GNU project, and to appeal
instead to executives and business users, many of whom hold an ideology
that places profit above freedom, above community, above principle. Thus,
the rhetoric of "open source" focuses on the potential to make high
quality, powerful software, but shuns the ideas of freedom, community, and
principle...The support of business can contribute to the community in many
ways; all else being equal, it is useful. But winning their support by
speaking even less about freedom and principle can be disastrous; it makes
the previous imbalance between outreach and civics education even
worse...."Free software" and "open source" describe the same category of
software, more or less, but say different things about the software, and
about values. The GNU Project continues to use the term "free software", to
express the idea that freedom, not just technology, is important."(<a
href="http://www.gnu.org/philosophy/philosophy.html">http://www.gnu.org/philosophy/philosophy.html</a>).
<p> In my email interview with Stallman, I too made the mistake of equating
"free" with "open source."
<p> Stallman wrote, "You mentioned the FSF but not the Free Software
Movement, which leads me to wonder if you have fallen prey to a common
misunderstanding. Did you know that the Open Source Movement is a
right-wing reaction against the Free Software Movement, which came
first? Many people think that I support the Open Source Movement. The
reason they think so is that the people in the Open Source Movement
work hard to give that impression. Since they have the support of
corporations and the main media, they have spread this misunderstanding
quite far. But it's as mistaken to label my work as 'open source' as to
label Nader 'Republican'."
<p> Stallman is a visionary and, like Nader, a people's advocate, only more
so. His advocacy stretches beyond the efficiency of consumer goods and laws
protecting consumer rights and into the discussion of the basis of The Law
itself. Who is The Law serving, computer users and programmers, that is,
citizens of a free society, or mere consumers in a market whose rules are
defined and created by the corporations who, should they have their way,
will not merely monopolize the market, but be the market, the only
alternative for those who wish to write and use computer programs?
<p> Stallman and others like him are the incorruptible, uncompromising
fighters the left has been calling for, all the while we settle for
the lesser of evils or hope the Democratic Party, the political
arena's version of the "open source initiative" will somehow manage
to beat the corporate state while joining it. The struggle to defend
the basic rights of software users and developers inherent in the free
software movement and its creation of the GNU/Linux alternative to
proprietary systems is obvious. This struggle is not merely about
being free at the computer, but living free everywhere. GNU can't
solve all the world's problems, but the values it espouses can be
harnessed in support of any struggle, whether for a clean environment
or a real democracy, rather than the bloated, trash-talking, murderous
Empire we think, like those befuddled by the rhetoric of proprietary
software corporations, we have no choice but to accept as "The Nature
of Things."
<p> Again, Stallman, linking the rhetoric of epic struggle with its
counterpart in modern film, writes of a fight worth fighting for, and
his words resonate, even as we squander lives by the thousands in Iraq:
<p> "Yoda's philosophy ('There is no "try"') sounds neat, but it
doesn't work for me. I have done most of my work while anxious about
whether I could do the job, and unsure that it would be enough to
achieve the goal if I did. But I tried anyway, because there was no one
but me between the enemy and my city. Surprising myself, I have
sometimes succeeded... Sometimes I failed; some of my cities have
fallen. Then I found another threatened city, and got ready for another
battle. Over time, I've learned to look for threats and put myself
between them and my city, calling on other hackers to come and join
me... Nowadays, often I'm not the only one. It is a relief and a joy
when I see a regiment of hackers digging in to hold the line, and I
realize, this city may survive--for now. But the dangers are greater
each year, and now Microsoft has explicitly targeted our community. We
can't take the future of freedom for granted. Don't take it for
granted! If you want to keep your freedom, you must be prepared to
defend it." (<a href="http://www.gnu.org/philosophy/philosophy.html">http://www.gnu.org/philosophy/philosophy.html</a>).
<p> Well, what are we waiting for? Where do we stand?
<hr width="50%">
<!-- Creative Commons License -->
<a rel="license"
href="http://creativecommons.org/licenses/by-nd/2.0/"><img
alt="Creative Commons License" border="0"
src="misc/engel/somerights20.png"
/></a><br />
This work is licensed under a <a rel="license"
href="http://creativecommons.org/licenses/by-nd/2.0/">Creative Commons
License</a>. It is free to distribute, reproduce or modify with the
author's consent. Read more about licensing software, text and
documentation at <a href="http://www.creativecommons.org">http://www.creativecommons.org</a>.
<!-- /Creative Commons License -->
<!--
<rdf:RDF xmlns="http://web.resource.org/cc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Work rdf:about="">
<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
<license
rdf:resource="http://creativecommons.org/licenses/by-nd/2.0/" />
</Work>
<License rdf:about="http://creativecommons.org/licenses/by-nd/2.0/">
<permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<permits rdf:resource="http://web.resource.org/cc/Distribution" />
<requires rdf:resource="http://web.resource.org/cc/Notice" />
<requires rdf:resource="http://web.resource.org/cc/Attribution" />
</License>
</rdf:RDF>
-->
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<p>
<img align="left" alt="[BIO]" src="../gx/authors/engel.jpg" class="bio">
<em>
Adam Engel has published poetry, fiction and essays in such magazines and
periodicals as Counter Punch, Dissident Voice, Online Journal,
Strike-the-Root, LewRockwell.com, The New York Art Review, The Concord
Journal, The Middlesex News, Accent, The Littleton Review, Ark, Smart
Shoes, The Beacon, Literal Latte, Artemis, The Lummox Journal, Fearless,
POESY, The Half Moon Review, Art:Mag, Chronogram, Gnome and others.
<p> Adam Engel's first book of poetry, <strong>Oil and Water</strong>, was
published by Maximum Capacity Press in 2001. His novel,
<strong>Topiary</strong>, will be published by Dandelion Books in the
Spring of 2005.
<p> He has worked as a journalist, screenwriter, executive speechwriter,
systems administrator, and editorial consultant, and has taught writing at
New York University, Touro College and the Gotham Writer's Workshop in New
York City.
</em>
<br clear="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/engel.html">Adam Engel</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="hameed"></a>
<h1>ParallelKnoppix</h1>
<p id="by"><b>By <A HREF="../authors/hameed.html">Majid Hameed</A></b></p>
</b>
</p>
<p>
<h3>What is ParallelKnoppix?</h3>
<h4>Abstract</h4>
<img src="misc/hameed/LinuxTag.jpg" align="left" hspace="15" vspace="10">
ParallelKnoppix is a Live CD based on Knoppix, which is also a Live CD that
is itself based on the Debian Linux distribution. ParallelKnoppix lets you
create a Linux cluster equipped with parallel programming tools/libraries
such as MPI in just a few minutes. It saves a lot of time that we spend in
configuration of the computing environment. The existing environment is not
disturbed using ParallelKnoppix, since a Live CDs distribution runs without
installation (a directory is created on the Master Node; it can be deleted
after rebooting if desired.)
<p> (From <a href="http://pareto.uab.es/mcreel/ParallelKnoppix/">http://pareto.uab.es/mcreel/ParallelKnoppix/</a>):<br>
<blockquote>
ParallelKnoppix is a re-master of Knoppix that allows setting up a cluster
of machines for parallel processing using the LAM-MPI and/or MPICH
implementations of MPI. Getting the cluster up and running takes less than
15 minutes, if the machines have PXE network cards.
</blockquote>
<h4>Background</h4>
Clustering is one of the cheapest techniques to achieve parallelism.
Clustering by using Linux is one of the Linux powers. A number of
universities and other organizations mimic supercomputing by connecting PCs
via Ethernet cards under Linux. Linux has been widely adopted by the
scientific community to do their research work since it is loaded with a
number of scientific tools such as LAM, MPI, PVM, and many more, so Linux is
well suited for parallel computing. But the problem is that scientists and
programmers have to do a lot of pre-configuration of the Linux environment.
This makes their task slow and complex.
<p> Now, the Linux gurus have solved this problem by developing Live CDs.
Now the researcher can choose a Live CD to do parallel programming without
the need for long configuration and the cluster is ready within a few
minutes.
<p> One of the Live CDs for parallel programming is <a
href="http://pareto.uab.es/mcreel/ParallelKnoppix/">ParallelKnoppix</a>.
Other Live CDs, such as <a href="http://bccd.cs.uni.edu/">BCCD</a> and <a
href="http://bofh.be/clusterknoppix/">ClusterKnoppix</a>, are also
available.
<h4>Description</h4>
Just like its predecessor Knoppix, ParallelKnoppix will detect all
the hardware and peripherals automatically. I have tested it on a D865GBF
Intel P-IV board as well as an Intel 810C (P-III), and ParallelKnoppix
configured all the hardware automatically - nothing else needed to be done.
The computers that are configured using ParallelKnoppix share a common
directory, which is created on master node via NFS (the Network File System).
The Master node is booted using the CD and the slaves are booted using the
network (the Master node runs a DHCP server.) The slaves have PXE-enabled BIOSes
with PXE-compliant NICs.
<p> Each and every service needed for LAM/MPI is configured automatically.
DHCP, NFS, SSH (with passwordless logins) are all set up and running - and
you are ready to experiment with MPI programs and other parallel
applications.
<p> As set up, ParallelKnoppix is not very secure - the Live CD password
for both the regular user and the super user (root) are publicly known.
Anyone with even a little knowledge of ParallelKnoppix can easily access the
ParallelKnoppix cluster. In this case, the ease of setup is obtained by
compromising some security as a trade-off.
<p class="editorial">[ As a general rule of thumb, your ParallelKnoppix
network should be isolated from the Internet, and usually even your
intranet, if security is at all a concern. -- Ben ]</p>
<h4>What is PXE boot?</h4>
PXE is an acronym for the Preboot Execution Environment, a technology that
is used to boot a PC remotely through a network. PXE must be supported by
the system BIOS, and the network interface card needs to be PXE compliant.
<h4>What do I do if my NIC is not PXE-compliant?</h4>
You'll need to either install a ROM chip with an <a
href="http://www.etherboot.org/">Etherboot</a> image on your NIC, or burn a
CD using the image; <a href="http://rom-o-matic.net/">ROM-o-matic.net</a>
dynamically generates Etherboot ROM images.
<h4>Downloading ParrallelKnoppix</h4>
The ISO file is available at the following locations:
<p> via FTP: <a href="ftp://volcano.uab.es/pub/parallelknoppix.iso">ftp://volcano.uab.es/pub/parallelknoppix.iso</a>
<p> via HTTP: <a href="http://pareto.uab.es/mcreel/ParallelKnoppix/parallelknoppix.iso">http://pareto.uab.es/mcreel/ParallelKnoppix/parallelknoppix.iso</a>
<p> MD5SUM for the image: <a href="http://pareto.uab.es/mcreel/ParallelKnoppix/parallelknoppix-2004-12-16.iso.md5">http://pareto.uab.es/mcreel/ParallelKnoppix/parallelknoppix-2004-12-16.iso.md5</a>
<p> Check the <a href="http://pareto.uab.es/mcreel/ParallelKnoppix/">home page</a> if the above links expire.
<p> After downloading the ISO images, check the MD5 checksums against the
ISO images to ensure that your download was successful. Do this by running
the <code>md5sum</code> program from a shell prompt and comparing the
values returned:
<pre>md5sum <em>isofilename</em></pre>
<p> In the above command, replace <em>isofilename</em> with the correct
file name.
<p> If you are for some reason not using Linux, you can use <a
href="http://www.md5summer.com/">md5Summer</a> for Windows. An MD5 summer
for DOS is also available.
<p> If the MD5 sums match, burn the ISO images to CDRs or CDRWs.
<i><b>Note: writing the ISOs to CD requires a program such as
<code>cdrecord</code>.</b></i>
<h4>How does it work?</h4>
There is a nice Parallel Knoppix tutorial full of step-by-step
instructions, screen shots of the configuration process, etc., available
<a
href="http://pareto.uab.es/mcreel/ParallelKnoppix/Tutorial/Tutorial.html">here</a>
in HTML format or <a href="http://pareto.uab.es/wp/2004/62604.pdf">here</a>
in PDF. If you exported your CD-ROM to the nodes, it will easily
accommodate 50 nodes, but more than that have not been tested. I actually
tested only 5 nodes myself.
<h4>What do I do if multiple DHCP servers are running?</h4>
If using this at a university (like I do), you're likely to run afoul of
the "official" DHCP server, and possibly another PXE server. When you try
to boot the nodes using the terminal server, the nodes will often boot from
the pre-existing PXE server, and they will often get their IP addresses
from the official server, not the DHCP server running on the computer that
was booted from the ParallelKnoppix CD. The solution I have so far is to
physically disconnect the computers to be used as nodes from the
pre-existing PXE and/or DHCP servers, or to get help from the
administrators to temporarily disable those servers. If anyone knows a more
elegant solution, I'd like to hear about it. I think it involves messing
around with <code>miniroot.gz</code>, and using Rom-o-Matic to create the
PXE boot ROM. Too horrible for further contemplation... at least for me.
<h4>How it works (Summary)</h4>
The ParallelKnoppix Live CD is used to boot a master node. Once the master
node is up, a script is executed which sets up a DHCP server, shares a
common working directory to all nodes using NFS, generates the public keys
for SSH to work properly (passwordless logins), etc. After DHCP on the
master node is running, the clients (slaves) are booted using PXE boot.
After the successful booting the sample directory is copied to the NFS
shared common directory and programs begin executing in parallel on
multiple PCs.
<h4>My experience</h4>
I am an undergraduate student of computer science and I was given a project
to solve a mathematical problem using MPI in the parallel computing lab. I
chooses ParallelKnoppix as an alternative to demonstrate my MPI program in
the Linux environment. When the master node is booted using the
ParallelKnoppix CD, at some point during the boot it will ask you the
resolution; just enter '6', because it is the maximum resolution mode
supported. After my Master Node booted, I ran the setup script
(<strong><code>K -> ParallelKnopix -> Setup
ParallelKnoppix</code></strong>, per the above tutorial). When the script
had created the DHCP server, I turned on my slave nodes and let them boot
using PXE. All the nodes booted successfully.
<p> I then copied my program to <code>parallel_knoppix_working</code>, and
ran my MPI program in parallel. It was literally that simple.
<p> For compilation, I use
<pre>mpicc myprogram.c -o myprogram.bin</pre>
<p> For execution, I use
<pre>mpirun C myprogram.bin</pre>
<h4>Conclusion</h4>
<blockquote>
"The ParallelKnoppix CD provides a very simple and rapid means of setting up
a cluster of heterogeneous PCs of the IA-32 architecture. It is not
intended to provide a stable cluster for multiple users, rather it is a tool
for rapid creation of a cluster for individual use. The CD itself is
customizable, and the configuration and working files can be re-used over
time, so it can provide a long-term solution for an individual user."
</blockquote>
-- From the ParallelKnoppix Tutorial By Michael Creel
<h4>References</h4>
<b>The ParallelKnoppix Homepage</b><br>
<a href="http://pareto.uab.es/mcreel/ParallelKnoppix/">http://pareto.uab.es/mcreel/ParallelKnoppix/</a>
<p> <b>Discussion Paper on Parallel Knoppix By Michael Creel (14th October 2004)</b><br>
<a href="http://pareto.uab.es/wp/2004/62504.pdf">http://pareto.uab.es/wp/2004/62504.pdf</a>
<p> <b>High Performance Linux Clusters with OSCAR, Rocks, OpenMosix, and MPI By Joseph D. Sloan</b><br>
Publisher: O'Reilly Associates<br>
Pub. Date: November 2004<br>
<a href="http://safari.oreilly.com/0596005709">http://safari.oreilly.com/0596005709</a><br>
<a href="http://safari.oreilly.com/?XmlId=0596005709">http://safari.oreilly.com/?XmlId=0596005709</a><br>
<p> <b>The Knoppix Homepage</b><br>
<a href="http://www.knopper.net/knoppix/index-en.html">http://www.knopper.net/knoppix/index-en.html</a><br>
<a href="http://www.knoppix.org/">http://www.knoppix.org/</a><br>
<a href="http://www.Knoppix.com">http://www.Knoppix.com</a><br>
<a href="http://www.Knoppix.net">http://www.Knoppix.net</a><br>
<p> <b>ROM-o-matic.net</b><br>
<a href="http://rom-o-matic.net/">http://rom-o-matic.net/</a>
<p> <b>LAM/MPI Parallel Computing</b><br>
<a href="http://www.lam-mpi.org/">http://www.lam-mpi.org/</a>
<p> <b>LAM/MPI User's Guide</b><br>
<a href="http://www.lam-mpi.org/download/files/7.1.1-user.pdf">http://www.lam-mpi.org/download/files/7.1.1-user.pdf</a>
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<p>
<img align="left" alt="[BIO]" src="../gx/authors/hameed.jpg" class="bio">
<em>
Majid Hameed is an undergraduate student at Department of Computer Science
at the University of Karachi, Sindh, Pakistan. Primary interests are Artificial
Intelligence, Operating Systems, Networking, Programming and Computer
Graphics.
<p>
I am a Linux enthusiast. I am using Linux as an operating system for the
last 3.5 years. Used and tried these distros: Red Hat Linux 9, 8, 7.3,
7.2, Slackware Linux 10, 9.1, Slax, Mandrake Move 2, Knoppix 3.4, Vector
Linux 4.3, and some more.
</em>
<br clear="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/hameed.html">Majid Hameed</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="kapil"></a>
<h1>A Knight's Tour on OCaml (when a Python fails to digest it)</h1>
<p id="by"><b>By <A HREF="../authors/kapil.html">Kapil Hari Paranjape</A></b></p>
</b>
</p>
<p>
<h2>Introduction</h2>
The story begins<sup><a name="text1" href="#note1">1</a></sup>
when my daughter's teacher, who is then busy grading the
end-term examination papers, wanted to give the class
some busy work. So the teacher asked the children to find a ``Knight's
tour''---make a knight jump around on a chess board starting and ending at
the same square and landing on each other square exactly once. Naturally,
this problem landed on my doorstep at the end of the school day---the
teacher happens to know that I do mathematics!
<p> I have heard that this problem has a solution but don't know one---typical
Mathematician---stops at the point where ``solution exists''. So why not
write a program to solve the problem? While the going is good, I could
also use this opportunity to learn to use another programming language.
<p>
<h2><a name="htoc1"></a>The quick and the dirty</h2>
Let's start by writing a program in a scripting language like
<a href="http://www.python.org">Python</a>---it <em>is</em> fun writing a program in
a new language when you are reasonably sure that the code will not
be longer than about a 100 lines!
<p> The key pseudo-code can be stated as follows:
<pre class="code">
extension of a partial solution =
if (Length of the partial solution is 64) then
if (the solution closes on itself) then
return the solution
else
return false since this is not a solution
else
for each position in available moves
that has not already been occupied
try extension of the new partial solution
obtained by extending the current solution
by this move
</pre>We then start with any position on the chess-board and find an extension of
it by 63 more moves.
<p> This is programmed in Python quite easily. We use the Python ``workhorse''
data structure---the list. A partial solution is a list of positions which
we think of as the sequence of moves.
<pre class="code">
def extend(soln):
if len(soln) == 64:
if soln[-1] in moves(soln[0]):
return soln
else:
return False
else:
for newpos in moves(soln[0]):
if newpos in soln:
continue
sol=extend([newpos]+soln)
if not sol:
continue
else:
return sol
return False
</pre>There is a nasty tail to this Python program fragment (the tail consists of 63
returns) but that should not be serious if we have enough stack space.
For us quicky-types ``optimization'' is a dirty word.
<p> We also need to write routines that will generate the list of all possible
moves at a given position.
<p> If we represent positions on the board as pairs then the moves that a
knight can make are given by
<pre class="code">
[(-1,-2), (-2,-1), (1,-2), (-2,1), (-1,2), (2,-1), (1,2), (2,1)]
</pre>then the code fragment for this looks like
<pre class="code">
knightsmoves = [(-1,-2), (-2,-1), (1,-2), (-2,1), \
(-1,2), (2,-1), (1,2), (2,1)]
def add(pos1,pos2):
return (pos1[0] + pos2[0], pos1[1] + pos2[1])
def onboard(pos):
return (pos[0] >= 0) and
(pos[0] < 8) and
(pos[1] >= 0) and
(pos[1] < 8)
def moves(pos):
return [newpos for newpos in
[add(pos,move) for move in knightsmoves]
if onboard(newpos)]
</pre>Unfortunately, as it stands this program has no hope of producing an
answer in reasonable time. The reason is that we are trying <em>all</em>
possible moves in succession whereas we should be <em>first</em> going to
the square which cannot be easily reached from elsewhere. This means that
we need some new functions.
<pre class="code">
def filmoves(pos,soln):
return [newpos for newpos in moves(pos)
if not (newpos in soln)]
def compval(pos1,pos2,soln):
return len(filmoves(pos1,soln)) - len(filmoves(pos2,soln))
def sortedmoves(soln):
list = filmoves(soln[0],soln[1:])
list.sort(lambda x,y: compval(x,y,soln))
return list
</pre>The first function filters out moves already ``used up''.
The second uses this to compare two squares based on number of moves
currently available. The last function uses this comparison to sort the
moves. Note that we must also make a minor change to the <tt>extend</tt> function
to make it use <tt>sortedmoves</tt> (<b>Warning</b>: Only use <tt>sortedmoves</tt>
in the second call!).
<p> According to
<a href="http://mathworld.wolfram.com/KnightsTour.html">authoritative sources</a>
(authoritative at least
according to Google!) this particular algorithm was proposed by Warnsdorff
in 1823. The above program is simple enough that we can ``see'' that it is
correct and do not need any fancy verification procedure. Why then does
is fail to give an answer when we start at the corner (0,0)? Surely a
modern computer can beat a man born in 1823 in calculating things! What's
wrong?!
<p> If you don't believe me or believe that your computer is faster then
just <a href="misc/kapil/knights.py.txt">copy</a> the code or type it in yourself and give it a whirl!
<pre class="code">
$ python
Python 2.3.4 (#2, Sep 24 2004, 08:39:09)
[GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> from knights import *
>>> extend([(0,0)])
</pre>The program now appears to go sleep...!
<p> Perhaps the reason is that Python is <em>interpreted byte-code</em>. A
compiled language would be better. So we can set about downloading and
installing <a href="http://psyco.sourceforge.net">psyco</a>---a just-in-time
native code compiler for Python.
Meanwhile, we could try a ``real'' functional language---perhaps its
implementation of lists is better. Maybe we can fit in time for a few
functional programming tricks and see if tail-recursion is possible.
(If you want a preview of the <em>real</em> answer, then jump to
the <a href="#denouement">Denouement</a>.)
<p>
<h2><a name="htoc2"></a>A humpy ride on OCaml</h2>
(I do happen to know that there is a more famous camel that appears more
often in the pages of the Linux Gazette.) A nice candidate for our next
choice of language is <a href="http://caml.inria.fr">OCaml</a> (this is
also talked about in an <a
href="http://linuxgazette.net/issue99/stellingwerff.html">article</a> in an
earlier Gazette). It is claimed that the optimizing native-code compiler
for OCaml can beat even C in certain tasks. I have actually used the DVI
previewer <tt>advi</tt>, the L<sup>A</sup>T<sub>E</sub>X to HTML converter
<tt>hevea</tt><sup><a name="text2" href="#note2">2</a></sup> and the file
synchronizer <tt>unison</tt>; all these are written in OCaml and are quick
and do the job well. Secondly, it <em>would</em> be a pain to sit and
implement all the data structure management for lists in C just for this.
So the knight must try to tour again---this time atop OCaml<sup><a
name="text3" href="#note3">3</a></sup>.
<p> Just to clarify some of the differences
<tt>let</tt> plays the role of <tt>def</tt> and lists are constructed in
the form <code>[a;b;c;d]</code>. The syntax is also a little more arcane
but should be clear from the programs below.
<p> While we are at it we can also introduce a tweak that avoids computing the
length of a list all the time. Here is <tt>extend</tt> written in OCaml
(the <tt>rec</tt> indicates a recursive definition):
<pre class="code">
let rec extend1 start len soln =
if (len == 64)
then
if List.mem start (moves (List.hd l))
then soln
else []
else
do_until (fun b -> extend1 start (len+1) (b::soln))
(sortedmoves soln);;
let extend start = extend1 start 1 [start];;
</pre>where <tt>do_until</tt> applies a function to a list until it produces an answer
or is empty:
<pre class="code">
let rec do_until f = function
| [] -> []
| h::t -> match f h with
| [] -> do_until f t
| answer -> answer;;
</pre>The <code>|</code> is used to introduce a pattern to match.
<p> As before we need to define the functions that will produce the list
of available moves.
<pre class="code">
let knightsmoves = [(-1,-2); (-2,-1); (1,-2); (-2,1);
(-1,2); (2,-1); (1,2); (2,1)];;
let add (a,b) (c,d) = (a+c,b+d);;
let onboard (a,b) =
(a >= 0) && (a < 8) &&
(b >= 0) && (b < 8);;
let moves pos =
List.filter (onboard)
(List.map (add pos) knightsmoves);;
let filmoves pos soln =
List.filter (fun b -> not (List.mem b soln)) (moves pos);;
let compval soln pos1 pos2 =
(List.length (filmoves pos1 soln)) -
(List.length (filmoves pos2 soln));;
let sortedmoves soln =
List.sort (compval soln)
(filmoves (List.hd soln) (List.tl soln));;
</pre>As you can see the ``pattern matching''-way of defining things in OCaml
really simplifies definitions.
<p> We can string all these together - with the caveat that one
<em>must</em> define a term before using it. So the later definitions have
to come before the earlier ones. Programming languages which require
declarations to come in order are best programmed ``bottom-up'' unless one
can sort out all the details in one's head before putting a finger to the
keyboard.
<p> Now one can run the program by entering the interpreted mode of OCaml
<pre class="code">
$ ocaml
Objective Caml version 3.08.2
# #use "knights.ml";;
val knightsmoves : (int * int) list =
[(-1, -2); (-2, -1); (1, -2); (-2, 1); (-1, 2); (2, -1); (1, 2);
(2, 1)]
val add : int * int -> int * int -> int * int = <fun>
val onboard : int * int -> bool = <fun>
val moves : int * int -> (int * int) list = <fun>
val filmoves : int * int -> (int * int) list -> (int * int) list
= <fun>
val compval : (int * int) list -> int * int -> int * int -> int =
<fun>
val sortedmoves : (int * int) list -> (int * int) list = <fun>
val do_until : ('a -> 'b list) -> 'a list -> 'b list = <fun>
val extend1 : int * int -> int -> (int * int) list -> (int * int)
list = <fun>
val extend : int * int -> (int * int) list = <fun>
# extend (0,0)
</pre>But then the system goes to sleep as before .... The whole reason
for trying OCaml was to compile the code in the hope of a faster
response! So we need to run the native code compiler.
<p> Before we do that however we need to have some way to do input and
output, so a little more programming is involved. Our program
produces output as a list of moves in order, what we want to output
is the position of each square in this list. Since output happens
only once we don't need to be particularly efficient.
<pre class="code">
let rec indexadd n pos soln =
match (List.hd soln) with
| pos -> n
| _ -> indexadd (n-1) pos (List.tl soln);;
let index pos soln = indexadd 64 pos soln;;
let printsoln soln =
(* Print the top line *)
for i = 1 to 8 do
Printf.printf "-----";
done;
Printf.printf "-\n";
for i = 0 to 7 do
for j = 0 to 7 do
Printf.printf "| %2i " (index (i,j) soln);
done;
Printf.printf "|\n";
(* Print a line below *)
for j = 1 to 8 do
Printf.printf "-----";
done;
Printf.printf "-\n";
done;;
</pre>Finally, the input procedure. For some strange reason OCaml uses <tt>!pointer</tt> to reference the contents - so the <code>!</code> sign below is not
a ``not''.
<pre class="code">
if (!Sys.interactive)
then
(* If we are loaded in the interpreter do nothing *)
()
else
if (Array.length Sys.argv) > 2
then
print_soln
(extend
(int_of_string Sys.argv.(1), int_of_string Sys.argv.(2))
)
else
Printf.printf "Usage: %s x y\n" (Sys.argv.(0));;
</pre>Now we are all set. The compilation
<pre class="code">
$ ocamlopt -o knights knights.ml
</pre>produces a standalone program <tt>knights</tt>. So here goes
<pre class="code">
$ ./knights 0 0
</pre>...and nothing happens!
<p> Again, if you don't believe me, or you believe your computer is faster,
you can <a href="misc/kapil/knights.ml.txt">download</a> the OCaml source, compile
it, and try it for yourself!
<p>
<h2><a name="htoc3"></a>Denouement</h2>
<a name="denouement"></a>
Home for the day and I don't have OCaml on my home machine so I
wrote the program afresh in Python. This time I felt too lazy to
type in the knights moves again so I added:
<pre class="code">
knightsmoves = [((-1)**y*(1+x), (-1)**z*(2-x)) \
for x in [0,1] \
for y in [0,1] \
for z in [0,1]]
</pre>When I ran the program again I got
<pre class="code">
$ python
Python 2.3.4 (#2, Sep 24 2004, 08:39:09)
[GCC 3.3.4 (Debian 1:3.3.4-12)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> from knights import *
>>> extend([(0,0)])
[(2, 1), (0, 2), (2, 3), (4, 4), (6, 5),
(7, 7), (5, 6), (3, 5), (1, 4), (3, 3),
(5, 4), (4, 2), (3, 4), (4, 6), (2, 7),
(0, 6), (2, 5), (0, 4), (1, 6), (3, 7),
(4, 5), (5, 3), (6, 1), (7, 3), (5, 2),
(4, 0), (3, 2), (2, 4), (4, 3), (2, 2),
(1, 0), (3, 1), (5, 0), (7, 1), (6, 3),
(7, 5), (6, 7), (5, 5), (7, 4), (6, 6),
(4, 7), (2, 6), (0, 7), (1, 5), (0, 3),
(1, 1), (3, 0), (5, 1), (7, 0), (6, 2),
(4, 1), (6, 0), (7, 2), (6, 4), (7, 6),
(5, 7), (3, 6), (1, 7), (0, 5), (1, 3),
(0, 1), (2, 0), (1, 2), (0, 0)]
>>>
</pre>Surprise! Here is a solution at last!
<p> At this point, a bell somewhere had gone ``dung''... and I wasn't sure
it was OCaml that did it---perhaps it was the prunes!
<p> Then my daughter came over and said she had followed the
algorithm <em>by hand</em> and come up with a solution. Her solution
started at the square (4,4) so I tried that with the <tt>knights</tt>
program compiled with OCaml.
<pre class="code">
$ ./knights 4 4
-----------------------------------------
| 9 | 6 | 11 | 44 | 27 | 4 | 29 | 34 |
-----------------------------------------
| 12 | 43 | 8 | 5 | 46 | 33 | 26 | 3 |
-----------------------------------------
| 7 | 10 | 45 | 48 | 55 | 28 | 35 | 30 |
-----------------------------------------
| 42 | 13 | 54 | 63 | 32 | 47 | 2 | 25 |
-----------------------------------------
| 53 | 60 | 49 | 56 | 1 | 62 | 31 | 36 |
-----------------------------------------
| 14 | 41 | 64 | 61 | 50 | 19 | 24 | 21 |
-----------------------------------------
| 59 | 52 | 39 | 16 | 57 | 22 | 37 | 18 |
-----------------------------------------
| 40 | 15 | 58 | 51 | 38 | 17 | 20 | 23 |
-----------------------------------------
</pre>I decided then to check the authoritative source via Google once
more. What it really says is that Warnsdorff's algorithm is for a
Hamiltonian <em>path</em>---a path that takes a knight through each
square exactly once---it is not necessary to return to the starting
square.
<p> What my experience with these programs shows is that Warnsdorff's
algorithm is <em>can</em> find a Hamiltonian <em>circuit</em> reasonably
quickly in <em>some</em> cases.
Perhaps unsurprisingly it's success depends on the order in
which one looks at the moves of the knights. For example, the above
Python code to generate <tt>knightsmoves</tt> actually gives
<pre class="code">
[(1, 2), (1, -2), (-1, 2), (-1, -2), (2, 1), (2, -1), (-2, 1), (-2, -1)]
</pre>Perhaps a little more surprising (since the final solution is circular)
is the fact that the running time depends on the starting point. Indeed
I got running times of a few milliseconds, a few seconds and a few hours
(one process has been running for more than a couple of days!) for
different inputs to the same program!
<p> This may be rather typical of ``hard'' problems. There are a number
of ``cheap'' instances and a number of truly ``hard'' instances but
this distinction depends on where one starts---pure dumb luck decides
whether one can solve the problem or not. (Actually it appears that the
knights tour is not really a ``hard'' problem as one increases the
size of the board (see <a href="#better">Exercise 4</a>, just below).)
<h2><a name="htoc4"></a>Exercises</h2>
Here are some things that suggest themselves:
<ol type=1><li>
Try to find some real way to prove that the Python is
better than OCaml or vice versa. Or more generally
settle the great wars between functional and
procedural programming!
<li>Try to randomize the choice from amongst the lowest
valency vertices if there is more than one. This
may result in shorter average times for all starting
points.
<li>Try to add an extra weight to ensure that vertices
further away from the start are taken up sooner than
other vertices of the same valency. Perhaps this will
be more efficient.
<li><a name="better"></a>There is apparently a better algorithm than
Warnsdorff's for the Hamiltonian circuit. Find it and
implement it.
</ol>
<h2><a name="htoc5"></a>Afterword</h2>
What does this article have to do with Linux or the Gazette? In a way, it
is only due to the emergence of GNU and Linux that we have an
opportunity to program in a wonderful plethora of languages. At the
same the time the article above could be fit into one of the
``Foolish Things We do With Our Computers'' series or even in a new
series called ``Nasty Things Our Computers Do To Us''!
<hr><dl><dt><a name="note1" href="#text1">1</a><dd>. In case you are
wondering what this talk has to do with Linux or the Gazette my
justification is in the AfterWord, just above.
<dt><a name="note2" href="#text2">2</a><dd>. This HTML file has
been converted using the TeX source and Hevea
<dt><a name="note3" href="#text3">3</a><dd>. Apparently, the idea
of Python <a href="http://pycaml.sourceforge.net">programs</a> (and
<a href="http://www.linuxjournal.com/comment/reply/6349/5636">programmers</a>!)
turning to OCaml is not one that occurred to me alone.
</dl>
<hr>
<blockquote><em>This document was translated from L<sup>A</sup>T<sub>E</sub>X by
</em><a href="http://pauillac.inria.fr/~maranget/hevea/index.html"><em>H<font size=2><sup>E</sup></font>V<font size=2><sup>E</sup></font>A</em></a><em>.
</em></blockquote>
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<p>
<img align="left" alt="[BIO]" src="../gx/authors/kapil.jpg" class="bio">
<em>
Kapil Hari Paranjape has been a ``hack''-er since his punch-card days.
Specifically, this means that he has never written a ``real'' program.
He has merely tinkered with programs written by others. After playing
with Minix in 1990-91 he thought of writing his first program---a
``genuine'' *nix kernel for the x86 class of machines. Luckily for him a
certain L. Torvalds got there first---thereby saving him the trouble
(once again) of actually writing code. In eternal gratitude he has spent
a lot of time tinkering with and promoting Linux and GNU since those
days---much to the dismay of many around him who think he should
concentrate on mathematical research---which is his paying job. The
interplay between actual running programs, what can be computed in
principle and what can be shown to exist continues to fascinate him.
</em>
<br clear="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/kapil.html">Kapil Hari Paranjape</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="nielsen"></a>
<h1>Preparing For My Interviews Part 2: MySQL and Python</h1>
<p id="by"><b>By <A HREF="../authors/nielsen.html">Mark Nielsen</A></b></p>
</b>
</p>
<p>
<center>
<h2><font color="#800000">Preparing For My Interviews Part 2: MySQL and Python<br>
</font></h2>
</center>
<center>
<h4>By Mark Nielsen</h4>
</center>
<ol>
<li><a href="#Introduction">Introduction</a></li>
<li><a href="#master">Mysql Master/Slave and Clusters</a></li>
<li><a href="#python">The Python script and Python Module MySQL.py.</a></li>
<li><a href="#execute">Executing the Python script.</a></li>
<li><a href="#commands">Some commands to execute.</a></li>
<li><a href="#next">Next Month: Stored Procedures in MySQL (5.0?)</a></li>
<li><a href="#conclusion">Conclusion</a></li>
</ol>
<p><br></p>
<h3><a name="Introduction"></a>Introduction</h3>
This article is actually a lie. I am not preparing for interviews anymore.
I started this article at the end of October, but then I got a 2 month
contract right after that. Still, it's the thought that counts.
<p> This article is to help you setup MySQL Master/Slave/Cluster
combinations on one computer. Why would that be useful? Well, for
starters, there isn't an abundance of Master/Slave/Cluster documentation.
The Cluster technology is really new. Second, MySQL is a very very very hot
database. There aren't too many good MySQL DBAs out there. If you want to
secure your job in the future, learn MySQL. The Master/Slave and Cluster
technologies are a must. If you don't know anything about the Master/Slave
or Clusters, you can pretty much forget getting hired. In every MySQL
interview (I had like 10 companies interviewing me in a six week period and
half of them used MySQL for something) the Master/Slave questions popped up
and topics of the Clustering technology came up as well. Third, it is a
pain to setup Master/Slave or Cluster environments by hand. If my script
works on one of your computers, copy over the software, copy over the
config files, make slight changes to the config files, and you can get a
real multi-computer environment setup in minutes.
<p> The second purpose of this article is to show you how to use Python to
write a simple application (compiling and installing MySQL). I tried to
include a lot of stuff in the Python code which is common to most Python
scripts/modules. Also, I am thinking about turning the Python code into a
package in the <a href="http://www.vex.net/parnassus/">Vaults of
Parnassus</a> - just for kicks, and so I can say that I have some sort of
Python code published.
<p> So, why did I use the programming language <a
href="http://www.python.org">Python</a> to execute all the commands? I
love Python, it is object oriented (from the ground up), has good exception
handling, has been compilable for a long time, it is hard to write ugly
Python code, it is easy to understand other people's code, there is only one
way to do things (usually), it's easy to manipulate, and it is a general tool
from web programming to Unix scripting to database programming to GUI
programming to mathematical programming (my favorite). There are so many
reasons to love Python if you are a true object-oriented programmer. The
other reason why I try to use Python for all personal projects is to
convince people where I work (or will work) that Python rocks and should be
used wherever appropriate. The sad thing is, most managers don't want to
use Python because of the lack of people who can write good Python code, so
it is my duty to convince them otherwise. <i>Update: I got hired at Google,
which uses a lot of Python so now I am a happy camper!</i>
<p> Why compile MySQL? Why not just use the RPMs? I don't think clustering
is built into some of the RPMs. Also, I always like to compile and install
software myself. If you can't compile it, odds are, there might be other
problems. If you do decide to use RPMs, and you decide to use an RPM
server, please use <a
href="http://linux.duke.edu/projects/yum/index.ptml">YUM</a> and do not use
commercial RPM servers. All the commercial RPM servers I have seen (just
one, you know who) are way overpriced and are geared towards the executive
staff or people who want to buy support so that they can blame someone if
something goes wrong. The sales staff are really good at making you believe
you can jump to the moon, when really, the software they present only
manages the installation of RPMs. Any 1st year programmer could write a web
interface to do the same thing. By using YUM (it is easy, simple, and free
of restrictions), you empower yourself and you will help bring down the
costs of the the overpriced commercial RPM services. If the commercial RPM
services weren't so overpriced (they should be like $25 per computer max)
and didn't have so many stupid restrictions (like installing
the<code>bind</code> RPM requires a more expensive license), I wouldn't
mind, but they are getting away with doing so little, it is ridiculous.
Politics and the suits have gotten in the way of good technology at some of
these companies.
<p> One more thing, I bought a 2-gig RAM 64 bit AMD CPU with Serial ATA
hard drives. I bought this hardware configuration for the simple purpose of
using a 64 bit operating system. Why? Because many companies are using 64
bit AMD cpus for their databases and other things. Just at work the other
day, I mentioned I got a MySQL cluster to work on my home computer, so I as
asked to setup a test cluster at work. See how valuable it is to stay ahead
of the market?
<p> The nice thing about the 64 bit AMD CPU is that is will also support
the 32bit operating systems. Thus, I was able to take the safe route by
installing a 32 bit Linux OS before I risked using the 64 bit versions
(which had a lot of problems in the past). Plus, don't kill me for saying
it, but I still wanted to play some Windows games that weren't available
for Linux yet. I am close to the point where I never need to use Windows
again. If gaming companies would always make Linux versions of their
products, I would never have use Windows for anything. That would really be
nice.
<h3><a name="master"></a>Mysql Master/Slave and Clusters</h3> What is
MySQL? Well, if you mean the <a
href="http://www.mysql.com/products/mysql/">MySQL database server</a>, it
is an SQL database server available from <a
href="http://mysql.com">mysql.com</a>. It is comparable to <a
href="http://www.postgresql.org/">PostgreSQL</a> and Oracle in most ways.
MySQL is one of the two most popular Open Source database servers out there
(PostgreSQL being the other).
<p> What are <a href="http://www.mysql.com/products/mysql/">MySQL
Master/Slaves</a>? The Master MySQL server lets people read and write data
to it. It copies all of its data to the MySQL slave computers. Thus, you
end up with many database servers with the same data. This can be useful
for load-balancing your webservers against many database servers or
performing a failover in case the Master dies (you shutoff the Master and
make one of the Slaves the new Master). Normally, the Slave computers are
read-only. Since most websites have a 4-to-1 ratio of reads to writes,
having many read-only MySQL slaves can be very useful. How it is useful?
Your website can handle more data and use more database connections spread
over multiple servers. All the writes still have to be done to the Master,
but the website can choose which Slave it wants to read data from.
Separating the write connections from the read connections can speed up
your website a lot.
<p> What is <a href="http://www.mysql.com/products/mysql/">MySQL
Clustering</a>? MySQL Clustering lets you put multiple computers together
which are all the same and have all the same data. You can connect to any
computer in the cluster and perform read/write operations which are
immediately available to the other mirrors. The main different between
Clustering and Master/Slaves is that each computer in a Cluster can be
written to while in a Master/Slave configuration you are only suppose to
write to the Master. Also, in Clustering, when you write data to one
machine, the computer will not respond back with an "OK" status until the
data has been copied to all the other computers. With the Master/Slave
configuration, the data is not necessarily copied to the Slaves
immediately. Effectively, you can view the cluster as one single
entity/database. The nice thing is, if one computer is the cluster
crashes, it doesn't affect the other computers or the data in the cluster.
This behavior doesn't exist in the Master/Slave replication. If the Master
goes down, the replication stops.
<p> Clustering is a little more complicated, but it has huge advantages and
will most likely be used a lot by many companies. It is fairly new
technology, so in my opinion, it is good time to start testing it. For
small websites which love to be on the bleeding edge of technology and you
don't mind being risky, go ahead and use MySQL Clustering. I am a little
cautious about using it for heavy performance database needs, but I am
anxious to at least try! You should be warned that there are a lot of
limitations with MySQL Clustering. For example, your database can only be
as big as the free RAM you have. Also, I have had a lot of problems getting
more than just a two storage node cluster working.
<h3><a name="python"></a>The Python script and Python Module MySQL.py</h3>
The Python Script "Compile_MySQL.py" is meant to access the MySQL.py
module to install, configure, and get MySQL running. I tried to make
it as simple as possible so that a lot the options you want can be
specified at the command line.
<p> The MySQL.py module currently only has one class called "Installer"
which is mostly finished. It has other classes I am working on, but
nothing worth talking about yet. I included a lot of stuff in the module
like:
<ol>
<li> I broke down the main modules to approximate the steps you would
use to install MySQL. In addition, I separated out the compiling from
the configuring because I wanted you to be able to skip the compiling
if you already installed MySQL once.</li>
<li> Use of the try/except statements.</li>
<li> The first string of the method(s) is used for automatic documentation
extraction.</li>
<li> The concept of classes.</li>
<li> The init and del methods which are executed at creation and destruction
of an object.</li>
<li> Other internal methods to handle printing an object or when you try
to compare this object against other objects.</li>
<li> Escaping to shell to execute code, get its return status, and output
data.</li>
<li> Regular expressions and using them repeatedly. It's only necessary to
create a regular expression once, so that you don't waste resources
recreating regular expressions. </li>
<li>Storing variables in an object.</li>
<li>Line command arguments are passed.</li>
<li>The script only creates one set of MySQL binaries. It uses different
directories and ports for each instance of the MySQL server.</li>
</ol>
Personally, I think the module could use a lot of work. I see repetitive
code that could be converted into methods, there need to be more
command line options, and there needs to be a place to save the configuration
for later runs (using xml) if we want to use this as an admin tool.
<p> Here is sample script to use my MySQL module. Note, if you already ran
this script and got mysql working, and you want to reconfigure it, then
comment out "M_Obj.Execute_Compile_Script()" to reconfigure mysql. I tried
to comment each below in the script.
<pre class="code">
#!/usr/bin/python
### Just a bunch of standard modules I load.
import urllib2, urllib, string, re, os, struct
import base64, string, gzip, sys, time, commands
import getopt
### The module I created.
import MySQL
## Initialize our installation object.
M_Obj = MySQL.Installer()
#--------------------------------------------------------
### Build and install the mysql binaries. These binaries will be common
### with all the mysql services.
M_Obj.Write_Compile_Script() ### This creates out bash compile script.
M_Obj.Execute_Compile_Script() ### This executes our bash script.
### This creates one set of binaries for
### all mysql instances.
M_Obj.Stop_Instances() ### In case there are any running.
M_Obj.Setup_Instances() ### Setup and initialize the databases.
M_Obj.Start_Instances() ### Start the databases.
</pre>
<h3><a name="execute"></a>Executing the Python script</h3>
Download these files:
<ol>
<li><a href="misc/nielsen/MySQL_py.txt">MySQL.py</a> and save it as MySQL.py.
<li><a href="misc/nielsen/Compile_MySQL_py.txt">Compile_MySQL.py</a> and save it as Compile_MySQL.py.
<li><a href="misc/nielsen/Config/">Config files</a>. Save all the config
files in this directory into a
directory called "Config" where you execute Compile_MySQL.py.
</ol>
Then execute this command:
<pre class="code">
python Compile_MySQL.py
</pre>
<p> This will download and install MySQL. It will make a log file called
"/tmp/mysql_install.log". If it doesn't download MySQL, download
<code>mysql-4.1.7.tar.gz</code> manually from <a
href="http://mysql.com">mysql.com</a> and save it in the directory
"/usr/local/src/mysql_compile".
<p><i>NOTE:</i> If you want to specify another database server,
then execute this, substituting the appropriate URL:
<pre class="code">
python Compile_MySQL.py -d http://www.signal42.com/mirrors/mysql/Downloads/MySQL-5.0/mysql-5.0.2-alpha.tar.gz
</pre>
<h3><a name="commands"></a>Some commands to run</h3>
So, now we got the database server installed. Let us do some stuff
to verify the Master/Slaves are working as well as the MySQL Cluster.
I made things really easy for you (assuming the installation was good).
I have made a bunch of scripts for you.
<p> Here are a bunch of scripts in the home directory where mysql got
installed.
<p>
<table border=1 cellpadding=2>
<tr><th>Script</th><th>Usage</th><th>Purpose</th></tr>
<tr><td>bash_aliases</td><td nowrap>source bash_aliases</td><td>
This setups aliases to connect to each service. The aliases connect to
the master service, slave services, ndb_mgm, and each cluster mysqld
service.</td></tr>
<tr><td>Start</td><td>./Start</td><td>Starts the master, slaves, and
cluster.</tr>
<tr><td>Stop</td><td>./Stop</td>
<td>Stops the master, slaves, and cluster.</td>
</tr>
</table>
<p>
The scripts listed below are created in the "scripts" directory
where mysql got installed.
If you did a "source bash_aliases", these commands will be in the bash
path. You can execute these scripts as many times as you like.
<p>
<table border=1>
<tr><th>Script</th><th>Purpose</th></tr>
<tr><td>Master_Status.bash</td>
<td>Gets the status of the master service.</td></tr>
<tr><td>Slave_Status.bash</td>
<td>Gets the status of the slave services.</td></tr>
<tr><td>Master_Slave_Status.bash</td>
<td>Gets the status of the master and slaves.</td>
</tr>
<tr><td>Master_Slave_Test.bash</td>
<td>Inserts data and then the master and slaves perform the same
sql query which should show the same results.</td></tr>
<tr><td>Cluster_Status.bash</td>
<td>Gets the status of the cluster</td></tr>
<tr><td>Cluster_Test.bash</td>
<td>Inserts data into the cluster. It shuts down each storage node
and sees if each mysqld server can still access the data.</td></tr>
</table>
<p> Try to learn what the scripts do step by step. If you can fully understand
what those scripts are doing, then you know at least the basics about how to
manage the mysql services.
<p> Follow these steps:
<pre class="code">
cd /usr/local/mysql-cluster ### Change to the mysql directory.
source bash_aliases ### Load some aliases into the bash shell.
./Start ### Start mysql master, slaves, cluster.
Cluster_Status.bash ### Get the status of the cluster
Master_Status.bash ### Get the status of the master service.
Slave_Status.bash ### Get the status of the slave service.
Master_Slave_Test.bash ### Test the master/slave services.
Cluster_Test.bash ### Test the cluster.
</pre>
<h3><a name="next"></a>Next Month</h3>
I am probably going to use MySQL 5.0 at home from now on. So, I am probably
not going to test MySQL 4.1.x anymore. Saying that, possible next months topics
include:
<ol>
<li> MySQL failover for Master/Slave cluster. The master has gone bad and
we want to make a slave the new master.
There are lots of issue to consider when
doing this, like data corruption. </li>
<li> Stored procedures.</li>
<li> More cluster configurations.</li>
<li>Scripts to check if your MySQL Master/Slave/Cluster computers
are running smoothly.</li>
<li>Maybe check out all the new tools you can download from MySQL?</li>
</ol>
<h3><a name="conclusion"></a>Conclusion</h3>
The Python module was sort of an overkill. However, I wanted to make it
really easy to compile and install MySQL every time there is an upgrade.
I am going to use Python for everything I do and I plan on using it
for all SysAdmin needs in the future (if I can help it). Every time
there is a new version of Python, I am so impressed because it just gets
easier, simpler, and more powerful. In Python 2.4 (which just came out),
sets are really cool for intersection and union calculations.
<p> MySQL is coming along nicely. With all the new features being put into
MySQL, it can compete against some of the larger database companies. It is
important to learn MySQL because new job opportunities are emerging and
MySQL will be a hot item over the next few years (before the masses learn
it). The Python module and the script I wrote make it really easy to get a
fairly complicated set of MySQL instances installed on your computer. To
use it in production, just copy over the binaries and the config files and
make a few changes to the config files and you are done! Once you see how
Master/Slave/Cluster configurations work, it really becomes simple to
understand how it all works.
<h3>Afterword:<br><em>Get your certifications.</em></h3>
<p> In the last few months, I believe the MySQL Professional Certification
paid off. Most employers don't want just a DBA anymore. PostgreSQL and
MySQL make database servers easy to use for most people. No longer do you
have to worship the DBA from hell because he/she knows all the little
tricks. All the docs and examples are online and you can fool around with
the source code yourself. This is going to put pressure on DBAs to be more
than just DBAs. I believe the MySQL jobs I applied for really liked my
programming and Sys Admin skills. I know for a fact that one company used
my MySQL Professional Certification as leverage to interview me because
they could claim "he is certified". They really wanted a programmer, but
because of politics, they couldn't directly get a programmer, so my
certification let me slip in. Cool, huh? A lot of certifications really
don't tell you whether someone is good or not. However, the LPI and MySQL
Certifications have two things going for them. First, they are actually
reasonable certifications. Most certifications are meant to just make money
for the company, but LPI and MySQL don't seem to be like that; they really
want you to be qualified. Second, managers and HR like certifications
because it protects them. I know most techies hate certifications, but
because of politics, you really need to get certified to fight against the
machine. LPI and MySQL Certifications are fairly inexpensive, unlike a lot
of the other stupid certifications, so it really isn't that bad.
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<P>
<img ALIGN="LEFT" ALT="[BIO]" SRC="../gx/2002/note.png" class="bio">
<em>
Mark Nielsen was enjoying his work at cnet.com as a MySQL DBA, but
is moving to Google as a MySQL DBA.
During his spare time, he uses Python heavily for mathematical and web
projects.
</em>
<br CLEAR="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/nielsen.html">Mark Nielsen</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="oregan"></a>
<h1>Flickr and Perl</h1>
<p id="by"><b>By <A HREF="../authors/oregan.html">Jimmy O'Regan</A></b></p>
</b>
</p>
<p>
<p> <a href="http://flickr.com">Flickr</a> is a photo-sharing service: it
allows you to share your photos with friends, family, or the public in
general. Flickr caters to "moblogging": photo blogging from mobile phones,
which is a great part of the appeal to me. It also comes with an API so
you don't have to take apart its pages to scrape it, which is nice.
<p> <a href="http://search.cpan.org/~iamcal/Flickr-API-0.03/API.pm">Flickr::API</a>,
which was written by one of Flickr's developers, provides a way to interface
to Flickr from Perl. (Flickr's API documentation is available <a
href="http://www.flickr.com/services/api/">here</a>). There is also
<a href="http://search.cpan.org/~cpb/Flickr-Upload-1.10/Upload.pm">Flickr::Upload</a>,
which does exactly as the name suggests.
<h3>Getting started</h3>
<p> The first step is to get an API key. Flickr is still a relatively new
service, and want to know who is writing software to access their service
and why, and having people register for an API key is a common requirement
of web services anyway. To register for an API key, follow the steps
outlined on <a href="http://www.flickr.com/services/api/misc.api_keys.html">this
page</a> (at the time of writing, this simply involved emailing Cal Henderson,
the author of <code>Flickr::API</code>).
<p> API key at the ready, you can now start using Flickr. Flickr provides
a test method <code>flickr.test.echo</code> to allow you to check that
everything is working, and this is used in the example given in
<code>Flickr::API</code>'s POD. I've expanded on it slightly to give some
output using the <code>Data::Dumper</code> module:
<pre class="code">
use Flickr::API;
use Data::Dumper;
my $api = new Flickr::API({'key' => ''});
my $response = $api->execute_method('flickr.test.echo', {
'foo' => 'bar',
'baz' => 'quux',
});
print "Success: $response->{success}\n";
print "Error code: $response->{error_code}\n";
print Dumper ($response);
</pre>
<p> The output from this should be
<pre>
Success: 1
Error code: 0
</pre>
<p> followed by a lot of output from <code>Data::Dumper</code>. The part of
this output that we're interested should look something like this:
<pre>
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<baz>quux</baz>
<method>flickr.test.echo</method>
<foo>bar</foo>
<api_key>[snip]</api_key>
</rsp>
</pre>
<h3>Doing something useful</h3>
<p> Once everything is up and running, we're ready to start doing something
of interest. I'm only really interested in using my own photos, so I first
need to get my user id.
<p> There are two ways of doing this: you can call
<code>flickr.urls.lookupUser</code> with the URL of a user's photo or user
page, or if you know the user's username, with
<code>flickr.people.findByUsername</code>. Here's an example that uses both:
<pre class="code">
use Flickr::API;
use Data::Dumper;
use warnings;
use strict;
my $api = new Flickr::API({'key' => ''});
my $user = shift;
my $response;
if ($user =~ m!http://!i)
{
$response = $api->execute_method ('flickr.urls.lookupUser', {
'url' => $user,
});
}
else
{
$response = $api->execute_method ('flickr.urls.findByUsername', {
'username' => $user,
});
}
my $debug = 1;
if ($debug)
{
print "Success: $response->{success}\n";
print "Error code: $response->{error_code}\n";
print Dumper ($response);
}
</pre>
<p> Cleaning it up to provide useful output is left as an exercise for
the reader (don't worry, I'll get to that later). When called with either
a URL or username, it should have (among the usual <code>Data::Dumper</code>
output) something that looks like this:
<pre>
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<user id="49502976979@N01">
<username>jimregan</username>
</user>
</rsp>
</pre>
<p> So... I mentioned that I was going to do something useful. What I'm
looking to build is a little script that gives me a montage of the last
few photos I posted, and a script that takes the coordinates of a photo
note and generates an image map (at some point, I'd like to change that
to be RDF, so I can use it in FOAF or what have you, but for now, an
image map is easier).
<h3> Generating an Image Map</h3>
<p> First, let's take a look at how we get the information, and what it
looks like:
<pre class="code">
use Flickr::API;
use Data::Dumper;
use warnings;
use strict;
# Test photo: http://flickr.com/photos/jimregan/120856/
# Photo url: http://photos1.flickr.com/120856_01b51464c0.jpg
# http://www.flickr.com/services/api/flickr.photos.getInfo.html
my $api = new Flickr::API({'key' => ''});
my $response;
$response = $api->execute_method ('flickr.photos.getInfo', {
'photo_id' => '120856',
'secret' => '01b51464c0'
});
my $debug = 1;
if ($debug)
{
print "Success: $response->{success}\n";
print "Error code: $response->{error_code}\n";
print Dumper ($response);
}
</pre>
<p> output:
<pre>
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photo id="120856" secret="01b51464c0" server="1" dateuploaded="1090965387" isfavorite="0" license="4">
<owner nsid="49502976979@N01" username="jimregan" realname="Jimmy O\'Regan" location="Ireland" />
<title>IMAGE0006</title>
<description>Mark, May 2002</description>
<visibility ispublic="1" isfriend="0" isfamily="0" />
<dates posted="1090965387" taken="2004-07-27 14:56:27" takengranularity="0" />
<editability cancomment="0" canaddmeta="0" />
<comments>0</comments>
<notes>
<note id="10840" author="49502976979@N01" authorname="jimregan"
x="96" y="103" w="38" h="24">Look - missing his front teeth
at the bottom!</note>
</notes>
<tags>
<tag id="283784" author="49502976979@N01" raw="Mark">mark</tag>
<tag id="283785" author="49502976979@N01" raw="2002">2002</tag>
</tags>
</photo>
</rsp>
</pre>
<p> So, how do we turn that rather useless code example into something that
will generate a simple HTML page with an image map? I could have tried
accessing <code>$response->tree</code> directly, but life's too short for
that. The author of <code>Flickr::API</code> and
<code>XML::Parser::Lite::Tree</code> seems to have thought the same, because
he also wrote <code>XML::Parser::Lite::Tree::XPath</code>, which allows some
simple XPath expressions to be used on <code>XML::Parser::Lite::Tree</code>'s
output.
<p> With a look at the XML above, we want the contents of the
<code><note></code> tags: <code>/photo/notes/note</code>
<pre class="code">
#!/usr/bin/perl
use Flickr::API;
use Data::Dumper;
use XML::Parser::Lite::Tree::XPath;
use warnings;
use strict;
# Test photo: http://flickr.com/photos/jimregan/120856/
my $photo = "http://photos1.flickr.com/120856_01b51464c0.jpg";
# http://www.flickr.com/services/api/flickr.photos.getInfo.html
my $api = new Flickr::API({'key' => ''});
my $response;
$response = $api->execute_method ('flickr.photos.getInfo', {
'photo_id' => '120856',
'secret' => '01b51464c0'
});
my $xpath = new XML::Parser::Lite::Tree::XPath($response->{tree});
my @notes = $xpath->select_nodes('/photo/notes/note');
print "<html>\n<head>\n<title>Flickr Photo</title>\n</head>\n";
print "<img src=\"$photo\" alt=\"Flickr photo\" usemap=\"#genmap\">\n";
print "<map name=\"genmap\">\n";
foreach (@notes)
{
print "<area shape=\"rect\" coords=\"";
print "$_->{attributes}->{x}, ";
print "$_->{attributes}->{y}, ";
print $_->{attributes}->{x} + $_->{attributes}->{w} .", ";
print $_->{attributes}->{y} + $_->{attributes}->{h} ."\" ";
print "alt=\"$_->{children}[0]->{content}\" ";
print "title=\"$_->{children}[0]->{content}\" nohref>\n";
}
print "</map>\n</html>\n";
</pre>
<p> Now we're getting somewhere. The output is pretty shoddy HTML, but it works:
<pre>
<html>
<head>
<title>Flickr Photo</title>
</head>
<img src="http://photos1.flickr.com/120856_01b51464c0.jpg" alt="Flickr photo" usemap="#genmap">
<map name="genmap">
<area shape="rect" coords="96, 103, 134, 127" alt="Look - missing his front teeth
at the bottom!" title="Look - missing his front teeth
at the bottom!" nohref>
</map>
</html>
</pre>
<p> Let's go one better, and show what it looks like:
<p>
<img src="misc/oregan/120856_01b51464c0.jpg" alt="Flickr photo" usemap="#genmap1">
<map name="genmap1">
<area shape="rect" coords="96, 103, 134, 127" alt="Look - missing his front teeth
at the bottom!" title="Look - missing his front teeth
at the bottom!" nohref>
</map>
<p> Here's an improved version of that script that takes one or two
parameters from the command line (photo ID, and secret if available) and
creates a web page with more information (<a
href="misc/oregan/flickrmap.pl.txt">text version</a>):
<pre class="code">
#!/usr/bin/perl
use Flickr::API;
use XML::Parser::Lite::Tree::XPath;
use Date::Format qw(time2str);
use warnings;
use strict;
my $api = new Flickr::API({'key' => ''});
my $response;
my $photo_id = $ARGV[0];
my ($desc, $date, $title, $taken, $photo);
if ($#ARGV == 1)
{
$response = $api->execute_method ('flickr.photos.getInfo', {
'photo_id' => $ARGV[0],
'secret' => $ARGV[1]
});
}
else
{
$response = $api->execute_method ('flickr.photos.getInfo', {
'photo_id' => $ARGV[0],
});
}
my $xpath = new XML::Parser::Lite::Tree::XPath($response->{tree});
my @notes = $xpath->select_nodes('/photo/notes/note');
my @tmp = $xpath->select_nodes('/photo/dates');
$taken = $tmp[0]->{attributes}->{taken};
@tmp = $xpath->select_nodes('/photo/dates');
$date = time2str "%a %b %e %H:%M:%S %Y", $tmp[0]->{attributes}->{posted};
@tmp = $xpath->select_nodes('/photo/description');
$desc = $tmp[0]->{children}[0]->{content};
@tmp = $xpath->select_nodes('/photo/title');
$title = $tmp[0]->{children}[0]->{content};
@tmp = $xpath->select_nodes('/photo');
$photo = "http://photos"
. $tmp[0]->{attributes}->{server}
. ".flickr.com/"
. $tmp[0]->{attributes}->{id} . "_"
. $tmp[0]->{attributes}->{secret} . ".jpg";
print "<html>\n<head>\n<title>$title</title>\n</head>\n";
print "<img src=\"$photo\" alt=\"$title\" usemap=\"#genmap\">\n";
print "<map name=\"genmap\">\n";
foreach (@notes)
{
print "<area shape=\"rect\" coords=\"";
print "$_->{attributes}->{x}, ";
print "$_->{attributes}->{y}, ";
print $_->{attributes}->{x} + $_->{attributes}->{w} .", ";
print $_->{attributes}->{y} + $_->{attributes}->{h} ."\" ";
print "alt=\"$_->{children}[0]->{content}\" ";
print "title=\"$_->{children}[0]->{content}\" nohref>\n";
}
print "</map>\n";
print "<p>$desc</p>\n";
print "<p>Taken: $taken, Uploaded: $date</p>\n";
print "</html>\n";
</pre>
<p> Let's look at the output of that:
<blockquote>
<img src="misc/oregan/2120095_b52c4d906d.jpg" alt="Beata" usemap="#genmap">
<map name="genmap">
<area shape="rect" coords="10, 10, 61, 122" alt="Kennedy's" title="Kennedy's" nohref>
<area shape="rect" coords="105, 8, 282, 218" alt="Beata" title="Beata" nohref>
<area shape="rect" coords="23, 181, 73, 231" alt="Pat's shift's night out" title="Pat's shift's night out" nohref>
</map>
<p></p>
<p>Taken: 2004-12-12 01:09:16, Uploaded: Sun Dec 12 01:09:16 2004</p>
</blockquote>
<p> I had a script earlier that did the basics of finding a userid, and said
that I was going to leave making it useful as an exercise for the reader.
Well, the bulk of this article was written on Christmas Day, so Merry
Christmas: (<a href="misc/oregan/finduser.pl.txt">text version</a>)
<pre class="code">
use Flickr::API;
use XML::Parser::Lite::Tree::XPath;
use warnings;
use strict;
my $theuser = shift;
sub finduser
{
my $fuser = shift;
my ($xpath, @username, $userid);
if ($fuser =~ m!http://!i)
{
$response = $api->execute_method ('flickr.urls.lookupUser', {
'url' => $fuser,
});
$xpath = new XML::Parser::Lite::Tree::XPath($response->{tree});
@username = $xpath->select_nodes('/user');
$userid = $username[0]->{attributes}->{id};
}
else
{
$response = $api->execute_method ('flickr.people.findByUsername', {
'username' => $fuser,
});
$xpath = new XML::Parser::Lite::Tree::XPath($response->{tree});
@username = $xpath->select_nodes('/user');
$userid = $username[0]->{attributes}->{nsid};
}
return $userid;
}
print finduser ($theuser);
</pre>
<h3>Flickr::Upload</h3>
<p> So how do we upload images? We use <code>Flickr::Upload</code>. There
isn't much to using this module: the following script is based on the example
from the POD, but with two minor differences.
<p> First, the script takes the location of the image as a parameter, so it can
be used more than once; second, it tells Mozilla to open a page so the uploader
can edit the details of the photo (as the POD and Flickr's API documentation
say it should). (<a href="misc/oregan/upload.pl.txt">text version</a>)
<pre class="code">
use LWP::UserAgent;
use Flickr::Upload qw(upload);
my $image = shift;
my $ua = LWP::UserAgent->new;
my $photoid = upload ($ua,
'photo' => $image,
'email' => '',
'password' => '',
'tags' => 'mobile',
'is_public' => 1,
'is_friend' => 1,
'is_family' => 1
) or die "Failed to upload $image";
`mozilla -remote \"openURL(http://www.flickr.com/tools/uploader_edit.gne?ids=$photoid)\"`;
</pre>
<p> The only required parameters are <code>$ua</code>, <code>email</code>,
and <code>password</code>. These last two are left blank, for obvious
reasons.
<h3> Creating a montage from Flickr </h3>
<p> Here it is, the <em>pièste de résistance</em>: a script to generate a
montage from Flickr. (<a href="misc/oregan/montage.pl.txt">text version</a>)
<pre class="code">
use Flickr::API;
use XML::Parser::Lite::Tree::XPath;
use Getopt::Long;
use Data::Dumper;
use Image::Magick;
use LWP::Simple;
use warnings;
use strict;
# Getopt vars. All arguments with default values.
# You probably want to set this a bit lower
my $count = 24;
my $theuser = "http://flickr.com/photos/jimregan";
my $type = 'photos';
my $email = '';
my $pass = '';
my $xpath;
my $result = GetOptions ("user=s" => \$theuser,
"type=s" => \$type,
"count=i" => \$count,
"password=s" => \$pass,
"email=s" => \$email);
# For some reason Image::Magick doesn't read the
# last image on the list. <shrug>
$count++;
my $api = new Flickr::API({'key' => ''});
my $response;
my $debug = 1;
my $user = finduser ($theuser);
if ($type eq 'photos')
{
$response = $api->execute_method ('flickr.people.getPublicPhotos', {
'user_id' => $user,
'per_page' => $count,
'page' => 1});
}
elsif ($type eq 'favourites'||$type eq 'favorites')
{
$response = $api->execute_method ('flickr.favorites.getList', {
'user_id' => $user,
'per_page' => $count,
'email' => $email,
'password' => $pass,
'page' => 1});
}
elsif ($type eq 'contacts')
{
$response = $api->execute_method ('flickr.photos.getContactsPhotos', {
'count' => $count,
'email' => $email,
'password' => $pass,});
}
else
{
die "--type must be 'photos', 'contacts' or 'favo[u]rites'\n";
}
if ($response->{success} == 0)
{
die "Error $response->{error_code}: $response->{error_message}"
. "\nDid you remember to pass --email and --password?\n";
}
my $photolist = new XML::Parser::Lite::Tree::XPath($response->{tree});
my @bphoto = $photolist->select_nodes('/photos/photo');
my ($photo, $photofile, @photofiles);
# Set up the image for our montage
my $image=Image::Magick->new;
foreach (@bphoto)
{
$photo = "http://photos"
. $_->{attributes}->{server}
. ".flickr.com/"
. $_->{attributes}->{id} . "_"
. $_->{attributes}->{secret} . ".jpg";
$photofile = "tmp-$_->{attributes}->{id}.jpg";
push @photofiles, $photofile;
open (FILE, ">$photofile");
my $g = get($photo);
print FILE $g;
}
foreach (@photofiles)
{
$image->Read($_);
}
if ($debug)
{
warn "$image\n" if "$image";
print 0+$image;
print "\n";
}
print Dumper ($image);
my $montage = $image->Montage;
$montage->Write ('output.jpg');
foreach (@photofiles)
{
unlink $_;
}
sub finduser
{
my $fuser = shift;
my ($xpath, @username, $userid);
if ($fuser =~ m!http://!i)
{
$response = $api->execute_method ('flickr.urls.lookupUser', {
'url' => $fuser,
});
$xpath = new XML::Parser::Lite::Tree::XPath($response->{tree});
@username = $xpath->select_nodes('/user');
$userid = $username[0]->{attributes}->{id};
}
else
{
$response = $api->execute_method ('flickr.people.findByUsername', {
'username' => $fuser,
});
$xpath = new XML::Parser::Lite::Tree::XPath($response->{tree});
@username = $xpath->select_nodes('/user');
$userid = $username[0]->{attributes}->{nsid};
}
return $userid;
}
</pre>
<p> This does quite a bit more than the other scripts, and is a bit more neat too.
Note that, because Flickr requires authentication, you need to pass your email
and password if you are looking for a montage of images from your Favourites or
Contacts.
<p>
I'll leave you with the default output of that script (though shrunk a bit):
<p>
<img src="misc/oregan/default-output.jpg" alt="Default script output">
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<P>
<img ALIGN="LEFT" ALT="[BIO]" SRC="../gx/2004/authors/oregan.jpg" class="bio">
<em>
<!-- ../110/lg_laundrette.html#nottag.15 :) -->
Jimmy is a single father of one, who enjoys long walks... Oh, right.
<p> Jimmy has been using computers from the tender age of seven, when his father
inherited an Amstrad PCW8256. After a few brief flirtations with an Atari ST
and numerous versions of DOS and Windows, Jimmy was introduced to Linux in 1998
and hasn't looked back.
<p> In his spare time, Jimmy likes to play guitar and read: not at the same time,
but the picks make handy bookmarks.
</em>
<br CLEAR="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/oregan.html">Jimmy O'Regan</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="oregan1"></a>
<h1>Building a simple del.icio.us clone</h1>
<p id="by"><b>By <A HREF="../authors/oregan.html">Jimmy O'Regan</A></b></p>
</b>
</p>
<p>
<p> I recently made the move from Mandrake to Ubuntu, and while I was
unpacking in my new $HOME (sorry, I couldn't resist), I came across a
little <a href="http://del.icio.us">del.icio.us</a> clone I wrote in
PHP to test out the RDF generating script I wrote (well, adapted) to
go with my <a href="../108/oregan.html">article about outliners</a>.
<p> I decided to use PHP, basically because it's the only language
I've used for web programming (aside from a misguided moment in my
first year in college when I wrote something in Pascal). I decided to
use SQLite for the database because I didn't feel like installing
MySQL: PHP's SQLite functions are pretty similar to the MySQL equivalent
anyway, so it's no big deal.
<p> Please note that what I am presenting in this article does very
little: I needed to test a script, and only cloned the parts I needed to
do that. I did go a little further, but forgot about it until now.
Doing something useful is for a future article!
<p> Because I only needed it to give me simple XML output, I managed
to get all I needed from a single script. First, I set up a sample
database:
<pre class="code">
BEGIN TRANSACTION;
CREATE TABLE bookmarks (url TEXT, title TEXT, desc TEXT, keywords TEXT,
date TEXT, id INTEGER PRIMARY KEY);
INSERT INTO bookmarks VALUES('http://sqlite.org/datatype3.html',
'Datatypes In SQLite Version 3','','sqlite programming','2004-10-16T20:23:49Z',1);
INSERT INTO bookmarks VALUES('http://sqlite.org/lang.html',
'Query Language Understood By SQLite','','sqlite programming','2004-10-16T20:25:36Z',2);
INSERT INTO bookmarks VALUES('http://www.team-teso.net/releases.php',
'releases of teso','','computing 404','2003-07-15T22:29:38Z',3);
INSERT INTO bookmarks VALUES('http://ssshotaru.homestead.com/files/aolertranslator.html',
'The AOLer Translator','','humour','2003-11-18T00:45:35Z',4);
INSERT INTO bookmarks VALUES('http://www.onlineconversion.com/unix_time.htm',
'Online Conversion - Unix time conversion','','misc','2004-10-16T20:43:44Z',5);
COMMIT;
</pre>
<p> Then, I wrote a script to give me the output:
<pre class="code">
<?php echo '<?xml version="1.0" standalone="yes" encoding="UTF-8"?'.'>' ?>
<!-- http://ie.php.net/manual/en/language.basic-syntax.php#41654 -->
<posts tag="" user="">
<?php
if (!extension_loaded("sqlite"))
{
dl("sqlite.so");
}
if ($db = sqlite_open("/tmp/bookmarks.sqlite", 0666, $err))
{
$result = sqlite_query ($db, "SELECT * FROM bookmarks");
while (sqlite_has_more($result))
{
$post = sqlite_fetch_array ($result);
$url = 'href="'.htmlentities($post['url']).'"';
$title = 'description="'.htmlentities($post['title']).'"';
if ($post['desc'] != "")
{
$desc = 'extended="'.htmlentities($post['desc']).'"';
}
else
{
$desc = "";
}
$date = 'time="'.$post['date'].'"';
# Don't know if this is how it's done, but it's close enough
$hash = 'hash="'.md5($url).'"';
$tags = 'tag="'.$post['keywords'].'"';
print " <post $url $title $desc $hash $tags $date />";
printf ("\n");
}
}
?>
</posts>
</pre>
<p> Running this with the sample database gave me this output:
<pre>
<?xml version="1.0" standalone="yes" encoding="UTF-8"?><!-- http://ie.php.net/manual/en/language.basic-syntax.php#41654 -->
<posts tag="" user="">
<post href="http://sqlite.org/datatype3.html" description="Datatypes In
SQLite Version 3" hash="56faa06a48016408c5042c7e4bfd3c24" tag="sqlite
programming" time="2004-10-16T20:23:49Z" />
<post href="http://sqlite.org/lang.html" description="Query Language
Understood By SQLite" hash="7a7eb0095ca227e7003c4a0f0a4a1fd9" tag="sqlite
programming" time="2004-10-16T20:25:36Z" />
<post href="http://www.team-teso.net/releases.php" description="releases of
teso" hash="bce6a8d5ecb506ff57be063083253e15" tag="computing 404"
time="2003-07-15T22:29:38Z" />
<post href="http://ssshotaru.homestead.com/files/aolertranslator.html"
description="The AOLer Translator" hash="99fbdd9eb3e03624c65b15d06a82388a"
tag="humour" time="2003-11-18T00:45:35Z" />
<post href="http://www.onlineconversion.com/unix_time.htm"
description="Online Conversion - Unix time conversion"
hash="f2fd9548118ac815edee17466c58abe1" tag="misc"
time="2004-10-16T20:43:44Z" />
</posts>
</pre>
<p> Which is pretty close to the output given by
<tt>http://del.icio.us/api/posts/get?</tt>.
<p> It did what I wanted, it didn't take long to write, and I had fun doing
it. So I thought I might try to make it do a bit more.
<p> Next, I decided to tackle the page that returns the list of tags,
to run <tt>delicious_mind</tt> on it:
<pre class="code">
<?php echo '<?xml version="1.0" standalone="yes" encoding="UTF-8"?'.'>' ?>
<tags>
<?php
//error_reporting(E_ALL);
//Error reporting? I have no errors! ... erm... not now, at least.
if (!extension_loaded("sqlite"))
{
dl("sqlite.so");
}
// I really should do something with $err
if ($db = sqlite_open("/tmp/bookmarks.sqlite", 0666, $err))
{
$tags = array();
$prevtags = array();
$result = sqlite_query ($db, "SELECT keywords FROM bookmarks");
while (sqlite_has_more($result))
{
$foo = sqlite_fetch_array ($result);
$thistag = split(" ", $foo['keywords']);
// print_r(array) is worth remembering.
$prevtags = array_merge($tags);
$tags = array_merge($prevtags, $thistag);
}
natcasesort($tags);
$uniq=array_unique($tags);
$count=array_count_values($tags);
foreach ($uniq as $tag)
{
$c = $count[$tag];
print "<tag count='$c' tag='$tag' />";
printf("\n");
}
}
?>
</tags>
</pre>
<p> According to del.icio.us's <a href="http://del.icio.us/doc/api">API
documentation</a> the posts URL accepts two parameters: <code>tag</code>
and <code>date</code>, which allow you to filter the results you receive.
The next step was to make the first script do that:
<pre class="code">
<?php
echo '<?xml version="1.0" standalone="yes" encoding="UTF-8"?'.'>';
if (!extension_loaded("sqlite"))
{
dl("sqlite.so");
}
if ($_GET['tag'] != "")
{
$tag = $_GET['tag'];
}
if ($_GET['dt'] != "")
{
$dt = $_GET['dt'];
}
printf ("<posts ");
if ($dt)
{
printf ("dt='$dt' ");
$query = "SELECT * FROM bookmarks where date like '%$dt%'";
}
if ($tag)
{
printf ("tag='$tag'");
$query = "SELECT * FROM bookmarks where keywords like '%$tag%'";
// The problem with this is that it matches too much.
// Using my example, if I search for 'sql' I should get nothing,
// but instead it matches 'sqlite'
// Close enough for my purposes, though I should use the stuff I
// have for extracting the tags.
}
else
{
printf ("tag=''");
}
printf (" user=''>\n");
if ($tag && $dt)
{
$query = "SELECT * FROM bookmarks where date like '%$dt%' and keywords like '%$tag%'";
}
if (!$tag && !$dt)
{
$query = "SELECT * FROM bookmarks";
}
if ($debug) echo "<!-- '$query' -->";
if ($db = sqlite_open("/tmp/bookmarks.sqlite", 0666, $err))
{
$result = sqlite_query ($db, $query);
while (sqlite_has_more($result))
{
$post = sqlite_fetch_array ($result);
$url = 'href="'.htmlentities($post['url']).'"';
$title = 'description="'.htmlentities($post['title']).'"';
if ($post['desc'] != "")
{
$desc = 'extended="'.htmlentities($post['desc']).'"';
}
else
{
$desc = "";
}
$date = 'time="'.$post['date'].'"';
// Used the wrong variable in the first example
$hash = 'hash="'.md5($post['url']).'"';
$tags = 'tag="'.$post['keywords'].'"';
print " <post $url $title $desc $hash $tags $date />";
printf ("\n");
}
}
?>
</posts>
</pre>
<p> As noted in the comments, the tags matched too much: if I specified
'sql' as the tag to filter for, it would match 'sqlite', if that was the
last tag in the list. I wrote a simple search script while thinking about
what I was going to do next:
<pre class="code">
<?php
if (!extension_loaded("sqlite"))
{
dl("sqlite.so");
}
if (!$_GET['search'])
{
echo "<form method='GET'>";
echo "<input name='search' value='' type='text' size='80'>";
echo "<input type='submit'>";
echo "</form>";
}
else
{
$search = $_GET['search'];
if ($db = sqlite_open("/tmp/bookmarks.sqlite", 0666, $err))
{
echo "<form method='GET'>";
echo "<input name='search' value='$search' type='text' size='80'>";
echo "<input type='submit'>";
echo "</form>";
$query = "SELECT * FROM bookmarks WHERE url LIKE '%$search%' OR title LIKE '%$search%'";
$result = sqlite_query ($db, $query);
while (sqlite_has_more($result))
{
$post = sqlite_fetch_array ($result);
$url = $post['url'];
echo "<p><a href='$url'>";
echo $post['title'];
echo "</a>";
// keywords, edit
}
}
}
</pre>
<p> In the end I decided to simply pad each tag out with spaces, because it
was easier that way, leaving me with new versions of the posts and tags
scripts:
<p>(<a href="misc/oregan/posts.php.txt">text version</a>)
<pre class="code">
<?php
echo '<?xml version="1.0" standalone="yes" encoding="UTF-8"?'.'>';
if (!extension_loaded("sqlite"))
{
dl("sqlite.so");
}
if ($_GET['tag'] != "")
{
$tag = $_GET['tag'];
}
if ($_GET['dt'] != "")
{
$dt = $_GET['dt'];
}
printf ("<posts ");
if ($dt)
{
printf ("dt='$dt' ");
$query = "SELECT * FROM bookmarks where date like '%$dt%'";
}
if ($tag)
{
printf ("tag='$tag'");
$query = "SELECT * FROM bookmarks where keywords like '% $tag %'";
}
else
{
printf ("tag=''");
}
printf (" user=''>\n");
if ($tag && $dt)
{
// A simple change, to prevent false positives: pad the keywords
// field with spaces :)
$query = "SELECT * FROM bookmarks where date like '%$dt%' and keywords like '% $tag %'";
}
if (!$tag && !$dt)
{
$query = "SELECT * FROM bookmarks";
}
if ($debug) echo "<!-- '$query' -->";
if ($db = sqlite_open("/tmp/bookmarks.sqlite", 0666, $err))
{
$result = sqlite_query ($db, $query);
while (sqlite_has_more($result))
{
$post = sqlite_fetch_array ($result);
$url = 'href="'.htmlentities($post['url']).'"';
$title = 'description="'.htmlentities($post['title']).'"';
if ($post['desc'] != "")
{
$desc = 'extended="'.htmlentities($post['desc']).'"';
}
else
{
$desc = "";
}
$date = 'time="'.$post['date'].'"';
// Used the wrong variable in the first example
$hash = 'hash="'.md5($post['url']).'"';
$tags = 'tag="'.trim($post['keywords']).'"';
print " <post $url $title $desc $hash $tags $date />";
printf ("\n");
}
}
?>
</posts>
</pre>
<p> (<a href="misc/oregan/tags.php.txt">text version</a>)
<pre class="code">
<?php echo '<?xml version="1.0" standalone="yes" encoding="UTF-8"?'.'>' ?>
<tags>
<?php
//error_reporting(E_ALL);
//Error reporting? I have no errors! ... erm... not now, at least.
if (!extension_loaded("sqlite"))
{
dl("sqlite.so");
}
// I really should do something with $err
if ($db = sqlite_open("/tmp/bookmarks.sqlite", 0666, $err))
{
$tags = array();
$prevtags = array();
$result = sqlite_query ($db, "SELECT keywords FROM bookmarks");
while (sqlite_has_more($result))
{
$foo = sqlite_fetch_array ($result);
$thistag = split(" ", $foo['keywords']);
// print_r(array) is worth remembering.
$prevtags = array_merge($tags);
$tags = array_merge($prevtags, $thistag);
}
natcasesort($tags);
$uniq=array_unique($tags);
$count=array_count_values($tags);
foreach ($uniq as $tag)
{
if ($tag != '')
{
$c = $count[$tag];
print "<tag count='$c' tag='".trim($tag)."' />";
printf("\n");
}
}
}
?>
</tags>
</pre>
<p> I needed the database changed to work with these scripts, so I added a
new script to generate the SQL. I should have written it to add the data to
the database directly, but never got around to doing that.
<pre class="code">
<?
$url = $_POST['url'];
$title = $_POST['title'];
$desc = $_POST['desc'];
$keywords = $_POST['keywords'];
$date = date("Y-m-d\TH:i:s\Z", $_POST['date']);
$f = fopen("/tmp/bookmarks.sql", "a");
fwrite($f, "
INSERT INTO bookmarks VALUES ('$url', '$title', '$desc',
'$keywords', '$date', NULL);
");
?>
</pre>
<p> The form to call the script:
<pre>
<html>
<head>
<title>Post Bookmark</title>
</head>
<body>
<form method="POST" action="make-sql.php">
<table>
<tr>
<td>URL:</td>
<td><input type="text" name="url" size="80"></td>
</tr>
<tr>
<td>Title:</td>
<td><input type="text" name="title" size="80"></td>
</tr>
<tr>
<td>Description</td>
<td><input type="text" name="desc" size="80"></td>
</tr>
<tr>
<td>Keywords</td>
<td><input type="text" name="keywords" size="80"></td>
</tr>
<tr>
<td>Date</td>
<td><input type="text" name="date" size="80"></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>
</pre>
<p> And the output:
<pre>
INSERT INTO bookmarks VALUES ('http://www.mozilla.org/projects/plugins/scripting-plugins.html',
'Scripting Plugins with Mozilla', '', ' mozilla javascript ', '2003-08-09T20:58:38Z', NULL);
INSERT INTO bookmarks VALUES ('http://www.mozilla.org/docs/xul/xulnotes/xulnote_xpconnect.html',
'Fun With XBL and XPConnect', '', ' mozilla xbl ', '2003-08-06T04:20:33Z', NULL);
INSERT INTO bookmarks VALUES ('http://www.mozilla.org/projects/xbl/xbl.html',
'XBL (Extensible Binding Language) 1.0', '', ' mozilla xbl ', '2003-08-06T04:20:18Z', NULL);
INSERT INTO bookmarks VALUES ('http://layeremu.mozdev.org/files/usage.html',
'mozdev.org - layeremu: files/usage', '', ' mozilla ', '2003-08-06T00:31:43Z', NULL);
INSERT INTO bookmarks VALUES
('http://www.mozdev.org/source/browse/~checkout~/gnusto/src/gnusto/content/gnusto-lib.js?rev=1.97&content-type=text/plain',
'http://www.mozdev.org/source/browse/~checkout~/gnusto/src/gnusto/content/gnusto-lib.js?rev=1.97&content-type=text/plain',
'', ' mozilla ', '2003-08-17T03:31:59Z', NULL);
INSERT INTO bookmarks VALUES ('http://www.mozilla.org/docs/dom/domref/dom_el_ref31.html#1028304',
'addEventListener', '', ' mozilla javascript ', '2003-10-12T22:17:33Z', NULL);
INSERT INTO bookmarks VALUES ('http://www.mozilla.org/docs/dom/domref/dom_el_ref47.html#1028897',
'insertBefore', '', ' mozilla javascript ', '2003-10-12T22:17:34Z', NULL);
INSERT INTO bookmarks VALUES ('http://techpubs.sgi.com/library/tpl/cgi-bin/browse.cgi?coll=0650&db=man&pth=/cat1',
'SGI TPL Browse Man Pages (User Commands (1))', '', ' unix manpages ', '2003-07-14T09:48:03Z', NULL);
INSERT INTO bookmarks VALUES ('http://docsrv.caldera.com/',
'SCOhelp', '', ' unix manpages ', '2003-07-14T09:48:03Z', NULL);
INSERT INTO bookmarks VALUES ('http://docs.hp.com/hpux/os/man%5Fpages.html',
'hp-ux reference (manpages)', '', ' unix manpages ', '2003-07-14T09:48:03Z', NULL);
INSERT INTO bookmarks VALUES ('http://sun.doit.wisc.edu/',
'DoIT/POST SUN Home Page', '', ' unix manpages ', '2003-07-14T09:48:03Z', NULL);
INSERT INTO bookmarks VALUES ('http://publib16.boulder.ibm.com/cgi-bin/ds_form?lang=en_US&viewset=AIX/',
'AIX Documentation', '', ' unix manpages ', '2003-07-14T09:48:03Z', NULL);
INSERT INTO bookmarks VALUES ('http://www.toccionline.com/creations/ctrla/how.html',
'CTRL+A Images - Make Your Own', '', ' computing ', '2003-07-19T13:37:06Z', NULL);
INSERT INTO bookmarks VALUES ('http://www.sco.com/developers/gabi/',
'SCO | Developers | GABI', '', ' computing ', '2003-07-17T00:56:32Z', NULL);
INSERT INTO bookmarks VALUES ('http://openpalm.sourceforge.net/faq.html',
'FAQ of the OpenPalm Project', '', ' computing ', '2003-07-14T10:19:25Z', NULL);
INSERT INTO bookmarks VALUES ('http://www.improvisation.ws/mb/tpcs1.php',
'Improv Message Boards - True Porn Clerk Stories', '', ' misc ', '2003-06-10T23:59:11Z', NULL);
INSERT INTO bookmarks VALUES ('http://singsmart.com/freesingingarticles.html',
'Sing Smart, Not Hard with Vocal Coach Yvonne DeBandi', '', ' misc ', '2003-06-09T23:22:34Z', NULL);
</pre>
<p> Now that I've made my terrible PHP code public, I guess I'll have to
finish off the job. Coming in part 2:
<ul>
<li> HTML output! </li>
<li> Adding bookmarks </li>
<li> Deleting bookmarks </li>
<li> Manipulating tags </li>
<li> More modular code </li>
<li> A Perl script to take Netscape bookmarks and post them to the real
del.icio.us </li>
</ul>
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<P>
<img ALIGN="LEFT" ALT="[BIO]" SRC="../gx/2004/authors/oregan.jpg" class="bio">
<em>
<!-- ../110/lg_laundrette.html#nottag.15 :) -->
Jimmy is a single father of one, who enjoys long walks... Oh, right.
<p> Jimmy has been using computers from the tender age of seven, when his father
inherited an Amstrad PCW8256. After a few brief flirtations with an Atari ST
and numerous versions of DOS and Windows, Jimmy was introduced to Linux in 1998
and hasn't looked back.
<p> In his spare time, Jimmy likes to play guitar and read: not at the same time,
but the picks make handy bookmarks.
</em>
<br CLEAR="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/oregan.html">Jimmy O'Regan</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="park1"></a>
<h1>Bash Shell and Beyond Applied</h1>
<p id="by"><b>By <A HREF="../authors/park.html">William Park</A></b></p>
</b>
</p>
<p>
<!-- dsrich 28 Dec 2004 - title: header changed to prevent two articles
with the same title appearing in the same issue. -->
<h2>Deleting Spam on a POP3 Server</h2>
<!-- dsrich 28 Dec 2004 - split the first paragraph and added hrefs and
information needed for comprehension and to make the examples work. -->
<p>This article will illustrate the use of my extended 'case' and
'read' Bash shell builtins (See my other articles
in issues <a href="../108/park.html">108</a>, <a href=
"../109/park.html">109</a> and <a href="park.html">110</a>) to
delete Spam on my ISP's POP3 mail server before it gets downloaded
into my local mail system. The example scripts use these extended
functions, so they require that you have my shell extensions
installed.</p>
<p>On average, I get 1 MB of spam per hour on my Yahoo account. The
most troublesome of these, both in size and number, are Microsoft
<em>Swen</em> and <em>Netsky</em> worms. Fortunately, they are easy
to identify, and can be deleted right on the POP3 server.</p>
<ol>
<li>
<p>Swen worms are usually 150kB in size and use all lowercase
letters (with optional '-' prefix) as the MIME boundary pattern,
ie.</p>
<pre>
boundary="-*[a-z]+"
</pre>
</li>
<li>
<p>Netsky worms are about 42kB in size and use 3 different patterns
for MIME boundary pattern, namely</p>
<pre>
boundary="----=_NextPart_000_0016----=_NextPart_000_0016"
boundary="----=_NextPart_000_001B_01C0CA80.6B015D10"
boundary="----=_NextPart_000_001B_01C0CA81.7B015D10"
</pre>
</li>
</ol>
<h3>Telnet to POP3 server</h3>
<p>In order to understand the shell script, you should first log in
to your POP3 server using Telnet, because a shell script only automates
what you type on the command line. So, let's do that:</p>
<pre>
telnet pop.your.isp 110
user username
pass password
</pre>
will connect to remote POP3 server (port 110), and log in using
your 'username' and 'password'.
<pre>
stat
top 1 10
</pre>
Here, <tt>stat</tt> returns the number of messages and total size, and
<tt>top 1 10</tt> prints the header of the 1st email plus the top 10 lines
of the body. For our purpose, we are only interested in the header,
specifically the 'boundary' parameter; so, <tt>top 1 0</tt> is what
we need for our script. Note that a single '.' (dot) on a line by itself signals the
end of output.
<pre>
dele 1
quit
</pre>
<tt>dele 1</tt> marks the 1st message to be deleted, and
<tt>quit</tt> ends the POP3 session upon which the server removes
all messages marked for deletion.
<h3>Shell script</h3>
<ul>
<li>
<pre>
read3 () # Usage: read3
{
read -r -u3 -D # read from fd=3
}
send3 () # Usage: send3 [cmd...]
{
echo -D "$*" 1>&3 # write to fd=3
read3
echo "$* --> $REPLY"
[[ $REPLY == +OK* ]] || exit 1
}
</pre>
For this to work, you have to read (<tt>read -D</tt>) and send (<tt>echo
-D</tt>) DOS lines, since the POP3 protocol specification (RFC1939)
requires CRLF (\r\n) line termination. The POP3 protocol is extremely
simple, in that there are only 2 possible responses from the remote
server:
<ul>
<li>+OK (with optional text), if there is no error</li>
<li>-ERR (with optional text), if there was an error</li>
</ul></li>
<li>
<pre>
check () # Usage: check server username password
{
local ok n size i
exec 3<>/dev/tcp/$1/pop3 || exit 1
read3
send3 user $2
send3 pass $3
send3 stat # +OK 11 1504321
read ok n size <<< "$REPLY"
for ((i = 1; i <= n; i++)); do
send3 top $i 0
case `until read3; [ "$REPLY" = . ]; do echo "${REPLY#.}"; done` in
'boundary="-*[a-z]+"' ))
echo swen.0 ;;
'boundary="(----=_NextPart_000_0016){2}"' ))
echo netsky.1 ;;
'boundary="----=_NextPart_000_001B_01C0CA8(0\.6|1\.7)B015D10"'
))
echo netsky.2 ;;
esac then
send3 dele $i
fi
done
send3 quit
}
</pre>
This is the main program loop. It logs in and checks for the above
boundary patterns using regex(7). If there is match, then it deletes
that message from the POP3 server. The type of spam is also printed to
stdout. You'll notice that the exit condition of the extended 'case'
statement is used here.</li>
</ul>
<h3>Usage</h3>
<p>You can source the 3 functions and run</p>
<pre>
check pop.your.isp username password
</pre>
from the command line or in a script. However, if you use Fetchmail to
download emails (like I do), then you already have servers,
usernames, and passwords in <tt>~/.fetchmailrc</tt>. You can
extract these data using <tt>fetchmail --configdump</tt> directly:
<pre>
(
fetchmail --configdump
cat << EOF
for server in fetchmailrc['servers']:
if server['protocol'] == 'POP3':
for user in server['users']:
print server['pollname'], user['remote'], user['password']
EOF
) | python | while read server user pass; do
# use (...) to prevent 'exit' terminating entire script
check "$server" "$user" "$pass"
done
</pre>
<!-- dsrich 28 Dec 2004 - This next link is a short shell script (1-2K)
stored on the author's web server. We moved the last one of these on to
LG's server, but his address was geocities - I don't know this ISP. -->
<p>The entire script is available from <a href=
"misc/park/popcheck.bash.txt">popcheck.bash</a>, and
should be run just before Fetchmail,</p>
<pre>
popcheck.bash && fetchmail
</pre>
usually from crontab.
<h3>Summary</h3>
Although the script deals with Microsoft Swen/Netsky worms, you can
add your own patterns. For example,
<pre>
'boundary="=+[0-9]+=+"' ))
echo TAG.spam ;;
'(Subject|From): =\?[A-Za-z0-9_-]+\?' ))
echo non.English ;;
'charset="(ks_c_5601-1987|euc-kr|big5|gb2312|iso-2022-jp|shift-jis)"'
))
echo APIC.charset ;;
'&lt;(5[89]|6[01]|20[23]|21[0189]|22[012])(\.[0-9]{1,3}){3}&gt;'
))
echo APIC.IP ;;
'Content-Type: text/html' ))
echo HTML.header ;;
</pre>
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<p>
<img align="left" alt="[BIO]" src="../gx/2002/note.png" class="bio">
<!--
If the author has sent his pic, save it to the right directory
and enable the line below.
<img align="left" alt="[BIO]" src="../gx/authors/pic.jpg" class="bio">
-->
<em>
I learned Unix using the original Bourne shell. And, after my
journey through language wilderness, I have come full-circle
back to shell. Recently, I've been patching features into Bash,
giving other scripting languages a run for their money.
Slackware has been my primary distribution since the beginning,
because I can type. In my toolbox, I have Vim, Bash, Mutt, Tin,
TeX/LaTeX, Python, Awk, Sed. Even my shell command line is in
Vi-mode.
</em>
<br clear="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/park.html">William Park</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="seymour"></a>
<h1>Design Awareness</h1>
<p id="by"><b>By <A HREF="../authors/seymour.html">Mark Seymour</A></b></p>
</b>
</p>
<p>
<h3>Kids, Do Try This at Home</h3>
<p> Now that we've talked about some of the basics of design, let's use
some. In this issue, we'll use those design principles to create a simple
opening web page for a fictitious company. (That will keep the lawsuits to
a minimum, rather than reworking something like, say, the www.microsoft.com
site.)
<p> The first thing is to name the company. There are firms out there that
do nothing else; I once worked with a genius (his company is at <a
href="http://www.namelab.com">http://www.namelab.com</a>) who's still at
it, thirty years later. Since this is the January issue, we'll do something
appropriately winterish.
<p> How about a winter sports equipment company? Skis, sleds, that sort of
thing. We want to give a vaguely European feel to the company, so we'll use
'alpine' rather than 'mountain'. We want to imply more than just sporting
goods (we might decide to sell clothing and climbing videos and tents, as
well), so we'll use 'gear' rather than 'equipment'.
<p> So, our company is called Alpine Gear. Except we're very hip and
internet, aren't we? So we'll use the serial-capital version of the name,
like any good computer company: AlpineGear.
<p> A domain search did turn up a link to an existing company
(http://www.alpinegear.com), but it's called Old Style Log Works, Inc., out
of Kalispell, Montana. They build custom log cabins. If you're more curious
than me, you can ask their web designer (http://www.snowdogweb.com) why
they have their client linked to that particular URL. But, since they don't
use Alpine or Gear or AlpineGear anywhere on their site, I'm sure they
won't mind our borrowing the name for this project. Yet it's a good lesson;
domain names are getting more scarce, and finding a good name that's also
an unused domain is getting harder.
<p> Now we have to create a logo for the company. Or, in this case, a
logotype.
<p> What's the difference? A logo is an icon, a picture, a 'bug' that
communicates the image (and hopefully the name) of the company without any
additional words. Think of the <a href="http://www.shell.com/">Shell Oil
Company</a> logo, the <a href="http://www.apple.com/">Apple Computer</a>
logo, and the <a href="http://www.ibm.com/">International Business Machines
Company</a> logo. (I'd bet many of you didn't even know that IBM stood for
International Business Machines.) A logotype is just the name used in a
particular typography that, hopefully, also communicates the image of the
company. Recent examples are the <a href="http://www.ebay.com">eBay</a>
logotype, the <a href="http://www.google.com/">Google</a> logotype, and the
<a href="http://www.yahoo.com">Yahoo!</a> logotype, complete with its own
punctuation.
<p> Why use a logotype rather than a logo? Mere personal preference, some of
the time; either your own or that of the CEO of the company. But you'll
notice a pattern in the companies selected above: the ones that have a
product (something that needs an immediately recognizable sign on a
building or on a box on a shelf) use logos, and the ones that are service
providers use logotypes. It's not a perfect system, however; Ace Hardware
(definitely a product company) uses a logotype and many banks (definitely
service companies) use a logo. Since our company is going to sell many
products, most of them produced by other companies, we'll go with a
logotype.
<p> We want to emphasize the 'European' quality of the company, so we'll
pick the only font typically recognized by Americans as 'Euro', one usually
referred to as either Old English or German Black Letter, for the
'European' half of the name:
<div align="center">
<p> <img src="misc/seymour/Alpine.png" alt="" height="76" width="201" border="0">
</div>
<p> This is a font called Berliner. The image was created in Photoshop, but
the letterspacing was hand-tightened because the standard spacing looked
too 'open', and the capital A didn't look much like an A, except to a
19th-century German. (Logotypes must be grasped as images, rather than
'read' as words, and if the letters are farther apart it tends to invite
letter-by-letter 'reading' by the viewer.)
<p> For the 'equipment' half of the name, we'll use something that's not too
technical looking, something comfortable, that suggests our stuff is fun
and easy to use:
<div align="center">
<p> <img src="misc/seymour/Gear.png" alt="" height="72" width="123" border="0">
</div>
<p> This is ITC Garamond Book Condensed, also with tightened letterspacing.
It also had to be scaled, because letter proportions are not the same in
all fonts; at 72 points, the capital G was much larger in this font than in
the Berliner. We picked Book Condensed because it gave us a similar
width-to-height ration for the lower case letters. Not perfectly, but
optically. You'll find a lot of things that 'look' right never measure
'right'...
<p> Now we have our logotype:
<div align="center">
<p> <img src="misc/seymour/AlpineGear.png" alt="" height="60" width="290" border="0">
</div>
<p> It needs to appear in color, in most usages, so we'll need to pick them.
We might as well come up with a 'color way' for our site at the same time.
A 'color way' (the industry term for a series of colors to be used
together) is merely the list of colors (whether PMS numbers for printing
inks or hex values for the Web) that will reinforce the image we wish to
show our customers.
<p> We want to look precise (like the Swiss), but fun-loving (like the
Italians). Yet we don't necessarily want to use particularly 'national'
colors, with their flags (red and white for the Swiss and green, white, and
red for the Italians) providing the most recognizable colors for each
country. We do want to look high-tech, and definitely ready for the
mountains. We don't want to look like rocks or dirt (brown), because that's
what you fall on. So we'll rely on the standard mountain-evoking colors of
blue (mountain air and streams) and white (snow), along with old reliable
high-tech gray:
<div align="center">
<table width="408" border="1" cellspacing="0" cellpadding="0" height="20">
<tr>
<td bgcolor="#99ccff"></td>
<td bgcolor="#3399ff"></td>
<td bgcolor="#6699cc"></td>
<td bgcolor="#0066cc"></td>
<td bgcolor="white"></td>
<td bgcolor="#666666"></td>
<td bgcolor="#cccccc"></td>
</tr>
</table>
</div>
<p> Note that we've chosen several different related blues and a couple of
grays, using our favorite <a href="http://www.visibone.com">VisiBone</a>
swatch set; you'll eventually need to present information in varying
levels, whether in a brochure or a website, and having a preset color way
will help you organize it faster.
<p> Let's see what happens when we apply our color way to our logotype:
<div align="center">
<p> <img src="misc/seymour/AlpineGearColor.png" alt="" height="60" width="291" border="0">
</div>
<p> We'll also want to use it on colored backgrounds, so we need at least
one more variant:
<center>
<img src="misc/seymour/AlpineGearOnBlue.png" alt="" height="60" width="291" border="0">
</center>
<p> <a id="anchor1" name="anchor1"></a>Now let's look at the basic <a
href="misc/seymour/Page1.html">landing page</a> for the company. (Click the small
white box at the top of the page to return here; it's not part of our
design. These pages have also been optimized for an 800x600 display, so set
your browser to display that size if your resolution is higher.) To the
basic page, we'll now <a href="misc/seymour/Page2.html">add the logo</a>. And then
<a href="misc/seymour/Page3.html">some simple navigation</a>. We'll put in <a
href="misc/seymour/Page4.html">some page links</a>. Finally, we'll display one of
the links, an <a href="misc/seymour/Page5.html">internal directory page</a>, which
points to further specific pages on the topic of High-Altitude Gear.
<p> Note that we've used, to a modest extent, our color way to help guide
the viewer. Other than using <b>bold</b> to show navigation, we've
deliberately left out font specifics on the sample pages, but if you wanted
to use particular fonts you could render the text as PNGs. (The gradient,
of course, would require making the images with transparent backgrounds.)
We've also set up a simple yet flexible navigation system, which would
allow for potentially hundreds of pages in this on-line catalog.
<p> The product pages for this site will require better definition of the
use of the color way, along with setting the style of the illustrations
and/or photographs and the text required to describe the objects in the
catalog. Next month we'll cover some of those aspects.
<p> I hope this has given you some things to think about in your own design
work. As ever, if there are specific topics you'd like covered in future
columns, don't hesitate to email me.
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<p>
<img align="left" alt="[BIO]" src="../gx/authors/seymour.jpg" width="200" height="200" class="bio">
<em>
<p> I started doing graphic design in junior high school, when it was still
the Dark Ages of technology. Bill Gates and Steve Jobs were both eleven
years old, and the state of the art was typing copy on Gestetner masters.
I've worked on every new technology since, but I still own an X-acto knife
and know how to use it.
<p> I've been a freelancer, and worked in advertising agencies, printing
companies, publishing houses, and marketing organizations in major
corporations. I also did a dozen years [1985-1997] at Apple Computer; my
first Macintosh was a Lisa with an astounding 1MB of memory, and my current
one is a Cube with a flat screen.
<p> I've had a website up since 1997, and created my latest one in 2004. I'm
still, painfully, learning how web design is different from, but not
necessarily better than, print.
</em>
<br clear="all">
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/seymour.html">Mark Seymour</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="ecol"></a>
<h1>Ecol</h1>
<p id="by"><b>By <A HREF="../authors/malonda.html">Javier Malonda</A></b></p>
</b>
</p>
<p>
The Ecol comic strip is written for <a
href="http://escomposlinux.org">escomposlinux.org</a> (ECOL), the web site that
supports es.comp.os.linux, the Spanish USENET newsgroup for Linux. The
strips are drawn in Spanish and then translated to English by the author.
<p>
<em>These images are scaled down to minimize horizontal scrolling.
To see a panel in all its clarity, click on it.</em>
<p>
<div class="cartoon">
<a href="misc/ecol/ecol-180-e.png">
<img alt="[cartoon]" src="misc/ecol/ecol-180-e.png"></a>
<a href="misc/ecol/ecol-181-e.png">
<img alt="[cartoon]" src="misc/ecol/ecol-181-e.png"></a>
<a href="misc/ecol/ecol-184-e.png">
<img alt="[cartoon]" src="misc/ecol/ecol-184-e.png"></a>
<a href="misc/ecol/ecol-186-e.png">
<img alt="[cartoon]" src="misc/ecol/ecol-186-e.png"></a>
</div>
<p>
All Ecol cartoons are at
<a href="http://tira.escomposlinux.org/">tira.escomposlinux.org</a> (Spanish),
<a href="http://comic.escomposlinux.org/">comic.escomposlinux.org</a> (English)
and
<a href="http://tira.puntbarra.com/">http://tira.puntbarra.com/</a> (Catalan).
The Catalan version is translated by the people who run the site; only a few
episodes are currently available.
<p> <small>These cartoons are copyright Javier Malonda. They may be copied,
linked or distributed by any means. However, you may not distribute
modifications. If you link to a cartoon, please <a
href="mailto:jmr@escomposlinux.org">notify</a> Javier, who would appreciate
hearing from you.
</small>
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** BEGIN bio *** -->
<hr>
<!-- P>
<img ALIGN="LEFT" ALT="[BIO]" SRC="../gx/2002/note.png" class="bio">
<em>
</em>
<br CLEAR="all" -->
<!-- *** END bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Copyright © 2005, <A HREF="../authors/malonda.html">Javier Malonda</A>. Released under the
<a href="http://linuxgazette.net/copying.html">Open Publication license</a>
</p>
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div class="content lgcontent">
<a name="lg_laundrette"></a>
<h1>The Linux Laundrette</h1>
</b>
</p>
<p>
<HR>
<!-- BEGIN message -->
<H3>Contents:</H3>
<DL>
<!-- index_text begins -->
<dt><A HREF="#nottag.1"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Home computer</strong></a>
<dt><A HREF="#nottag.2"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>LG #109</strong></a>
<dt><A HREF="#nottag.3"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Profanity Adventures</strong></a>
<dt><A HREF="#nottag.4"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Spam. In obfuscated Perl.</strong></a>
<dt><A HREF="#nottag.5"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>More ginger beer!</strong></a>
<dt><A HREF="#nottag.6"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Even more ginger beer!</strong></a>
<dt><A HREF="#nottag.7"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Cider/Hangovers</strong></a>
<dt><A HREF="#nottag.8"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Swedish Chef</strong></a>
<dt><A HREF="#nottag.9"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Album of the month</strong></a>
<dt><A HREF="#nottag.10"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Alice in Wonderland</strong></a>
<dt><A HREF="#nottag.11"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Off for Mile-high City</strong></a>
<dt><A HREF="#nottag.12"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>More on English</strong></a>
<dt><A HREF="#nottag.13"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Hey Stranger</strong></a>
<dt><A HREF="#nottag.14"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Misc IRC stuff</strong></a>
<dt><A HREF="#nottag.15"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Question</strong></a>
<dt><A HREF="#nottag.16"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Collins Word Exchange</strong></a>
<dt><A HREF="#nottag.17"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Just a bit o'Irish...</strong></a>
<dt><A HREF="#nottag.18"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Album of the month</strong></a>
<dt><A HREF="#nottag.19"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>New Disease</strong></a>
<dt><A HREF="#nottag.20"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>News today</strong></a>
<dt><A HREF="#nottag.21"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Question</strong></a>
<dt><A HREF="#nottag.22"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>12 Days of Christmas</strong></a>
<dt><A HREF="#nottag.23"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>[Lgang] SPAM: read this - abOut the GrReenCard</strong></a>
<dt><A HREF="#nottag.24"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>The hot babe problem</strong></a>
<dt><A HREF="#nottag.25"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>NewsForge | Free (and open) holiday greeting cards</strong></a>
<dt><A HREF="#nottag.26"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>More Swedish Chef</strong></a>
<dt><A HREF="#nottag.27"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Since we've been discussing alcohol...</strong></a>
<dt><A HREF="#nottag.28"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>MERRY XMAS</strong></a>
<dt><A HREF="#nottag.29"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Userfriendly Christmas cartoons</strong></a>
<dt><A HREF="#nottag.30"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Bicycles & Linux</strong></a>
<dt><A HREF="#nottag.31"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Chumpbot</strong></a>
<dt><A HREF="#nottag.32"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>RICO applied to spammers</strong></a>
<dt><A HREF="#nottag.33"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Toys of yesteryear</strong></a>
<dt><A HREF="#nottag.34"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Not here</strong></a>
<dt><A HREF="#nottag.35"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Christmas messages</strong></a>
<dt><A HREF="#nottag.36"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>More Christmas messages</strong></a>
<dt><A HREF="#nottag.37"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Clamscan finds HTML phishing scams...</strong></a>
<dt><A HREF="#nottag.38"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Spam jokes</strong></a>
<dt><A HREF="#nottag.39"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Christmas links</strong></a>
<dt><A HREF="#nottag.40"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Free Beer</strong></a>
<dt><A HREF="#nottag.41"
><img src="../gx/dennis/qbub.gif" height="28" width="50"
alt="(?)" border="0"
><strong>Python conferences in the US and Europe</strong></a>
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.1"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 1 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Home computer</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
<A HREF="http://codeblogs.ximian.com/blogs/tberman/archives/000419.html"
>http://codeblogs.ximian.com/blogs/tberman/archives/000419.html</A>
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I <EM>love</EM> that blurb under the picture. "With teletype interface and the
Fortran language, the computer will be easy to use."
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Yeah. As soon as I saw that, I knew I had to send it on.
</STRONG></P>
<P><STRONG>
Just to be seasonable, "Merry Christmas" in 4 languages (C, Pascal,
FORTRAN, and PHP), courtesy of GNU:
</STRONG></P>
<pre><strong>const a = '\"; void b()/*'; var b:string;{
c */ { /*
c document.fgColor='#ffffff'";
cos(1);print "Merry Christmas" ?>
17 format('Merry Christmas')
write(6, 15)
stop
end
c */
char *a = "}begin b:='{"; } int main () { /*'; writeln{*/
char cbuf[64]; sprintf(cbuf, "}('Merry Christmas') end. {");
cbuf[29] = '\0'; printf(cbuf+3); return 0; }
</strong></pre>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
"Computers in the future may weigh no more than 1.5 tons."
-- Popular Mechanics (1949)
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [John]
They were describing my laptop!
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Oh yeah - I used to wonder why the military was screwing around with
depleted uranium, osmium, and other crap like that for their
armor-penetrating rounds, since even a tiny chunk of my old AST laptop
would have instantly crushed any armor division that it fell on.
</blockQuote>
<blockQuote>
On the other hand, since accelerating that kind of mass to anything
above pedestrian velocities would require a nuclear explosion, and since
any violent state change stands a chance of precipitating gravitic
collapse and black hole formation, perhaps it's just as well...
</blockQuote>
<blockQuote>
(Maybe I shouldn't have bought the model with the Deep Thought CPU, but
it came with a bonus Hotblack Desiato CD, and I just couldn't miss
out.)
</blockQuote>
<!-- end 1 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.2"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 2 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>LG #109</H3>
<p><strong>From Mark W. Tomlinson
</strong></p>
<p></strong></p>
<P><STRONG>
I had just settled in of a Saturday evening with a wee dram of Irish
whiskey, a good Henry Clay cigar and Linux Gazette #109. I had worked
my way to "Return of the Linux Laundrette" and reached the section "Re:
[LG 87] help wanted #4". This piece caused me to drop my cigar (due to
uncontrollable grinning, giggling and guffawing), setting my sweatpants
on fire.
</STRONG></P>
<P><STRONG><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
<A HREF="../109/lg_laundrette3.html#nottag2/14"
>http://linuxgazette.net/109/lg_laundrette3.html#nottag2/14</A> for the
terminally lazy
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</STRONG></P>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I'm fine, thanks - I extinguished the blaze by spilling my libation in
my lap - followed, of course, by the water chaser. Be advised that I
will be taking legal advice re: financial recovery for the loss of the
whiskey...
</STRONG></P>
<P><STRONG><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Well, Ben and I have our own sideline business
(<A HREF="../107/misc/laundrette/lg_hitsquad.html"
>http://linuxgazette.net/107/misc/laundrette/lg_hitsquad.html</A>), so I can
say with some confidence that it won't come to that, though some
recovery may occur at some later date.
</STRONG></P>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I don't know how you people manage to produce such an outstanding
combination of useful Linux information, non sequiturs and a, ah, rather
<veering> approach to humor (my kind!) - but I certainly hope you keep
doing it for a long time to come.
</STRONG></P>
<P><STRONG><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Well, I'll be compiling it for a while to come: it's a lot of fun to go
back over the offtopic threads every month, especially since there are
so many of them:
</STRONG></P>
<pre><strong>Dec 01 08:44:05 <editorgal> lucky sucker, the recent gang must be a
treasure trove for laundrette bits.
Dec 01 08:45:29 <jimregan> I felt kind of duty bound to take over
the laundrette... cos most of the time all I do is perpetuate those threads
Dec 01 08:45:39 <editorgal> lol
</strong></pre>
<P><STRONG>
[though I should have said 'perpetrate'
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">]
</STRONG></P>
<P><STRONG><IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Sincerely,
</STRONG></P>
<P><STRONG>
Mark W. Tomlinson
</STRONG></P>
<P><STRONG><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Thanks for writing,
</STRONG></P>
<P><STRONG>
Jimmy
</STRONG></P>
<!-- end 2 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.3"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 3 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Profanity Adventures</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
A nostalgic look at what used to happen when you tried typing swear
words into text adventures:
</blockQuote>
<blockQuote><BLOCKQuote>
<A HREF="http://www.monkeon.co.uk/swearadventure"
>http://www.monkeon.co.uk/swearadventure</A>
</BLOCKQuote></blockQuote>
<!-- end 3 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.4"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 4 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Spam. In obfuscated Perl.</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockquote><pre>mamik@yahoo.co.uk wrote:
> $B"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"# (B
> ****************************************************************************
> $B!!!!!!!!!!!!!!!!!!!!!!$*A&$a%5%$%H$N$40FFb!* (B
> ****************************************************************************
> $B"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"# (B
</pre></blockquote>
<blockQuote>
Awesome! Spam in obfuscated Perl!
</blockQuote>
<blockquote><pre>>
> http://www.zl8.jp/~banana/
>
> $B"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"# (B
> $B"#"#"#!y!y!y!y"#"#"#!y!y!y!y!y!y"#"#"#!y!y!y"#"#"#!y!y!y!y"#"#"#"#!y!y"#"#"# (B
> $B"#"#!y!y!y!y!y!y"#"#!y!y!y!y!y!y"#"#!y!y!y!y!y"#"#!y!y!y!y!y"#"#"#!y!y"#"#"# (B
> $B"#"#!y!y"#"#"#!y"#"#"#"#!y!y"#"#"#"#!y!y"#!y!y"#"#!y!y"#"#!y!y"#"#!y!y"#"#"# (B
> $B"#"#!y!y!y"#"#"#"#"#"#"#!y!y"#"#"#!y!y"#"#"#!y!y"#!y!y"#"#!y!y"#"#!y!y"#"#"# (B
> $B"#"#"#!y!y!y!y!y"#"#"#"#!y!y"#"#"#!y!y"#"#"#!y!y"#!y!y"#"#!y!y"#"#!y!y"#"#"# (B
> $B"#"#"#"#"#!y!y!y!y"#"#"#!y!y"#"#"#!y!y"#"#"#!y!y"#!y!y!y!y!y"#"#"#!y!y"#"#"# (B
> $B"#"#"#"#"#"#"#!y!y"#"#"#!y!y"#"#"#!y!y!y!y!y!y!y"#!y!y!y!y!y"#"#"#"#"#"#"#"# (B
> $B"#"#!y!y"#"#"#!y!y"#"#"#!y!y"#"#"#!y!y"#"#"#!y!y"#!y!y"#"#!y!y"#"#"#"#"#"#"# (B
> $B"#"#!y!y!y!y!y!y!y"#"#"#!y!y"#"#"#!y!y"#"#"#!y!y"#!y!y"#"#!y!y"#"#!y!y"#"#"# (B
> $B"#"#"#!y!y!y!y!y"#"#"#"#!y!y"#"#"#!y!y"#"#"#!y!y"#!y!y"#"#"#!y!y"#!y!y"#"#"# (B
> $B"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"#"# (B
> $B!!!!!!!!!N (BFIVE $B!! (BSTAR $B!O (BMAIL MAGAZINE $B!!!! (Bstar $B!y!! (Bexpress
> $B(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(, (B
</pre></blockquote>
<blockQuote>
== 'print "You are in a maze of twisty little passages, all alike";'
</blockQuote>
<blockquote><pre>>
> $B!y!y!y!y!y!!%i%s%-%s%0%H%C%W$N%5%$%H$P$+$j$r=8$a$^$7$? (B $B!y!y!y!y!y (B
>
> $B!&!E!D!D(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!D!D!E!& (B
> $B!!!!!!!!!!!!!!!!!!!!!! (BFIVE $B!! (BSTAR N E W S
> $B!&!E!D!D(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!D!D!E!& (B
>
> $B!!!!!!!!!!!!!!$=$&!"$3$3$O!"8^$D@1$N%5%$%H$P$+$j$G$9 (B
</pre></blockquote>
<blockQuote>
== 'use Inline::BrainFuck;'
</blockQuote>
<blockquote><pre>>
> ______________________________________________________________________
>
> $B!y!y (B $B$3$s$J$N$"$j!*!) (B $B!y!y (B********************************************
>
> $B!!!!!!$3$l$J$iG<F@!"%H%C%W$K$J$k$K$O!"$d$C$Q$jM}M3$,$"$k$s$G$9$M!*!* (B
>
> $B!!!!!!!!!!!!!!!!!!!!!! (Bhttp://www.eyc.jp/~gazou/?id=dGFnQGxpbnV4Z2F6ZXR0ZS5uZXQ=
>
>
> ********************************************************************************
> $B!!!!!!!!!!!!!!!!!!!~!!!!!!!!$3$s$J7G<(HD$,M_$7$+$C$?!*!*!!!!!!!!!!!~ (B
> ********************************************************************************
</pre></blockquote>
<blockQuote>
== 'use MIDI;'
</blockQuote>
<blockquote><pre>> $B!! (B
> $B!!!!!!!!!!!!!!!!!!"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~ (B
> $B!!!!!!!!!!!!!!!!!!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"! (B
> $B!!!!!!!!!!!!!!!!!!"!!~!!!!!!!!!!!!!!!!!!!!!!!!!!!!"!!~ (B
> $B!!!!!!!!!!!!!!!!!!!~"!!!!!40A4!!!*!*!!!!L5NA!*!*!!!~"! (B
> $B!!!!!!!!!!!!!!!!!!"!!~!!!!!!!!!!!!!!!!!!!!!!!!!!!!"!!~ (B
> $B!!!!!!!!!!!!!!!!!!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"! (B
> $B!!!!!!!!!!!!!!!!!!"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~ (B
</pre></blockquote>
<blockQuote>
This is the input to MIDI. Opening bars to the theme from 'The Odd Couple'
</blockQuote>
<blockquote><pre>>
>
> $B!!!!!Z!!%(%C%A$J?M!"8BDj!*!*![ (B
> $B!!!!!! (B
>
> $B!!!!!!!!!!!!!!!v!v!v!!$=$l$b!"$+$J$j%(%C%A$J?M8BDj$@$h!A!A!!!!!v!v!v (B
>
>
> $B!!!y!!$"$J$?$O!"$+$J$j!!%(%C%A!)$7$+$b!"2q$$$?$$!)!! (B
>
>
> $B!!!!!!!!#Y#E#S!!"M!!!! (Bhttp://www.zl8.jp/~banana/
>
> $B!!!!!!!!#N#O!!!!"M!!!!!!$I$3$+C5$7$F$M (B^^;
>
>
> $B!!40A4L5NA!*!!"M"M"M"M"M!!!!;H$$J|Bj!*!!=q$-9~$_J|Bj!*!!FI$_J|Bj!*!!8+J|Bj!* (B
> $B!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (B
> $B!!!!!!!!!!!!!!!!!!!!!!!!!v!!0l@Z!"$*6b$O$+$+$j$^$;$s!*!* (B
>
>
> $B!!!!!!!!!!!!!!!J9-9pHq$G1?1D$5$l$F$$$k$+$i!"$*6b$O0l@ZI,MW$"$j$^$;$s!K (B
>
> $B"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"! (B
> _______________________________________________________________________________
>
> $B"#EPO?FbMF$NJQ99!&:o=|!'2<5-%a!<%k%"%I%l%9$+$i2r=|$G$-$^$9!# (B
>
> $B!!!!!!!!!!!!!!!!!!!! (Bhappy_magazin_info@yahoo.co.jp
>
> $B!!!!!!!!!!!!!!!! (B $B!!!! (B- $B7G:\5-;v$NE>:\$O$41sN82<$5$$ (B -
> $B!E!E!&!&!&!D!D(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!D!D!E!E!&!&!& (B
> $B!!!!!!!!!!!!!!!!!!!!!!!!!! (B FIVE STAR
> $B!E!E!&!&!&!D!D(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,(,!D!D!E!E!&!&!& (B
</pre></blockquote>
<blockQuote>
invokes Emacs with a patch to 'doctor' mode that says "Don't bother me
with your problems"
</blockQuote>
<!-- end 4 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.5"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 5 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>More ginger beer!</H3>
<p><strong>From Ben
</strong></p>
<p></strong></p>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] "Isn't wine prohibited here?" the boy asked
</blockquote>
<blockquote>"It's not what enters men's mouths that's evil," said the alchemist. "It's what comes out of their mouths that is."
</blockquote>
<blockquote>-- Paulo Coelho, <EM>The Alchemist</EM>
</blockquote></font>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
From a Linux beer survey on Newsforge
<A HREF="http://www.newsforge.com/article.pl?sid=04/12/08/2229209&from=rss"
>http://www.newsforge.com/article.pl?sid=04/12/08/2229209&from=rss</A> :
</blockQuote>
<blockquote><pre>-----------------------------------------------------------------------
Eric S. Raymond, | Ginger beer. Ideally, the dark Jamaican style.
Open source advocate | With lime in it.
-----------------------------------------------------------------------
</pre></blockquote>
<blockQuote>
I'm sure that if I search long enough, "apt-get" <EM>will</EM> show a
dependency between ginger beer and Linux...
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Heh. While we're somewhere close to the topic, what's everyone's drink of
choice, on the off chance I might bump into any of you? (Most people are
good at rembering names or faces, I'm good at remembering drinks
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Ooh, what a good idea - a TAG favorite potables list! I probably won't
remember any of it, but just in case...
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Ben, yours is a Sam Adams, right?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Er, well, unless I can get something better.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> Among American
mass-produced beers, yeah - that's about as good as it gets. Right on
par with Anchor Steam Porter, and I won't shy away from a Henry
Weinhardt's, either. For my all-around favorite - well, it varies a
bit, but I wouldn't turn down a Young's Luxury Double-Chocolate Stout
(unless I've already <em> had </em> dinner. Either one of those or a large prime
rib, and I'm filled up for the night.) Any of the Scottish Oatmeal
Stouts are sure to find a welcome as well.
</STRONG></P>
<P><STRONG>
I'm also quite a fan of a few English hard ciders, but since I can't get
any here, I'l just shut up and suffer in silence before the pain becomes
intolerable.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">))
</STRONG></P>
<P><STRONG>
On the stronger side, there's Lagavulin Single Islay malt, with its load
of peat and iodine (as somebody once said, "full of that 'exhumed body'
flavor.") People assure me there are other scotches that are very
similar, but I don't drink a whole lot, so the research is slow.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> I've
been slowly losing my taste for sweet liqueurs over time, but
a shot of Nassau Royale will still find a warm welcome.
</STRONG></P>
<P><STRONG>
In the realm of unleaded beverages, I've become highly partial to the
Sikh <TT>/chai/</TT> teas - they add date powder with cinnamon, ginger, and
cardamom oils, and the traditional addition of milk (or soy milk) makes
it even yummier. And, of course, there's always good ginger beer.
</STRONG></P>
<P><STRONG>
So, what would I get you in exchange when we're drinking at the
Cross-Time Saloon? [1]
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
If it's beer, I'll drink it[1].
</blockQuote>
<blockQuote>
From the coctails menu, my favourite is a Frozen Irish[2] Mint (vodka, creme de menthe, Baileys and chocolate milkshake), closely followed by a Tequila Sunrise.
</blockQuote>
<blockQuote>
Erm... I'll drink pretty much anything except whiskey (too many bad/absent memories).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
There's something about whiskey and vodka that produces that effect in
many people, yes.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
And tequila. But I've had my worst moments after drinking whiskey, so I steer clear these days.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
[1] Budweiser and its ilk are therefore excluded
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
See, I <EM>knew</EM> you were all right. Budweiser isn't really a beer - it's
a true/false intelligence test...
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I prefer to think of it as the bar tender's placebo.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
If you ever get curious about the ingredients and send to a lab for
analysis, the verdict is likely to be "your moose is pregnant".
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
I think I mentioned the scooter rally in Ireland where I counted the
empty beer cans on one of the picnic tables, and half were Guinness
and the other half were Budwiser.
</blockQuote>
<blockQuote>
BTW, I thought Thomas was English. Or is he only living in England?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
Both.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Eh? Is this because of the 'Irish' comment I made in reply to Thomas? That was because he quoted a friend of his on IRC, who said something like 'if Jimmy didn't keep reminding us every few sentences that he's Irish, I'd probably have guessed from his photo'. I'm still trying to work out if that means I look drunk
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> (I wasn't. Honest!)
</blockQuote>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] Erm... that's lower down the page. These threads can be quite confusing to layout.
</blockquote></font>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
[2] I've only seen this in an English bar in Spain
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Hey, since you know the ingredients, any decent bartender should be able
to mix it for you. It'll make a good test to see if a given bar is
worthy of our combined presence.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I have yet to find a bar that keeps chocolate milkshake around here
<IMG SRC="../gx/dennis/unsmily.gif" ALT=":("
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
(Although I think I might try my hand at throwing a few together during the holidays).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
[1] Spider Robinson's creation. Quite the place; anything we'd care to
drink would be behind the bar, and Mike Callahan (the bartender) would
know just how to mix it... all we need now is a local gateway apiece,
and we could hang out and swap stories till the morning [some version of
it] comes.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
There is perhaps more of a chance that you and I will "bump" into each
other. Should that ever happen, mine is coffee[1] -- of any kind, just
as long as it is not instant.
</blockQuote>
<blockQuote>
[1] Although, really, it should be <EM>I</EM> that pays for them.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
</blockQuote>
<blockQuote>
Why's that? Are you afraid that requesting a non-alcoholic beverage might
offend my sense of Irishness[1] or something?
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
[1] Got a quota to meet
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Neil]
</blockQuote>
<blockQuote>
English beers:
</blockQuote>
<blockQuote><ul>
<!-- *) Morlands Old Speckled Hen -->
<LI>Morlands Old Speckled Hen
<!-- *) Youngs Special -->
<LI>Youngs Special
<!-- *) Greene King Abbot Ale -->
<LI>Greene King Abbot Ale
<!-- *) Greene King IPA -->
<LI>Greene King IPA
<!-- *) Broughton Ales Border Gold -->
<LI>Broughton Ales Border Gold
<!-- *) Charles Wells Bombardier -->
<LI>Charles Wells Bombardier
</ul></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
My father is rather fond of a Northern beer known as "Old Perculiar".
It's very black, rather like the colour of peat, although I couldn't say
what it tastes like...
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Neil]
Theakston's Old Peculier, with a peculiar spelling
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
Theakston's were taken over by Scottish and Newcastle a while back, with one
of the family starting up a new brewery and brewing Black Sheep ale.
<A HREF="http://www.blacksheepbrewery.com"
>http://www.blacksheepbrewery.com</A>
</blockQuote>
<blockQuote><DL><DT>
It seems that Theakston's are now an independent company again.
<DD><A HREF="http://www.theakstons.co.uk/Intro_text.htm"
>http://www.theakstons.co.uk/Intro_text.htm</A>
</DL></blockQuote>
<blockQuote>
I should also have included Marston's Pedigree and Black Sheep on that list.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Neil]
European Beers:
</blockQuote>
<blockQuote><ul>
<!-- *) Leffe (Belgian not Dutch) -->
<LI>Leffe (Belgian not Dutch)
</ul></blockQuote>
<blockQuote>
American Beers:
</blockQuote>
<blockQuote><ul>
<!-- *) Sam Adams -->
<LI>Sam Adams
<!-- *) Dixie Black Voodoo -->
<LI>Dixie Black Voodoo
</ul></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Trying your damnedest to defeat my drinks memory, eh? Damn you!
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
I hereby nominate Jimmy for TAG Bartender.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Erm... I'd have to discuss that with Heather, who currently takes care of
TAG refreshments. We'll have to see if there's room for a bar in the TAG
lounge
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
People who remember I like cider rather than beer get my instant respect.
Pear cider is the best. The best apple cider I've found is Cider Jack;
it's dry and not too sweet.
</blockQuote>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] This launched its own mini-thread: <A HREF="http://linuxgazette.net/110/lg_laundrette.html#nottag.7"
>http://linuxgazette.net/110/lg_laundrette.html#nottag.7</A>
</blockquote></font>
<blockQuote>
My favorite tea is earl green. Second is plain green. Keep all coffee and
anything mocha flavored away from me.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I remembered that from the time you posted the link to your pho (sp?) recipe.
You were quite specific about it not being 'Earl Grey'.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
I'm not against earl gray,
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
It's Earl Grey. Not a British vs. American thing, it was named after the second Earl Grey.
<IMG SRC="../gx/dennis/smily.gif" ALT=":-P"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
it's just that green tea tastes better than
black, as well as having more antioxidants and less caffeine. Jasmine
black is OK. But plain black tea I have to put sugar in. I don't know
why it got so popular.
</blockQuote>
<blockQuote>
Heh heh, in 2000 I was in restaurant in Toronto and asked
for tea. Too late I remembered to ask, "Wait! What kinds do you have?"
but the waitress was already out of earshot. My friends immediately
pounced on me, "There's only one kind of tea here! Multiflavored tea is
a west coast thing." I doubt it was literally true, but it was funny.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Brian]
Here in the Greater Metro DC area (and south of the Mason-Dixon line),
there are <EM>two</EM> kinds, sweet and unsweet, at least in iced teas. The
chinese restaurants uniformly serve hot black pekoe. You can stand a
spoon up in "sweet" and they both taste powdered, and of the same brand,
at least in all the restaurants I've been in. I only got sweet once, and
that before I knew what I was in for. The funny thing was, I didn't know
what "sweet" was, and added sugar before I tasted it... yerch!
</blockQuote>
<blockQuote>
Yeah, there's also Starbucks and clones with tens of teas, but generally...
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Heh. Tea with milk, or without. Choice is yours.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
In Blackpool I stayed at a hotel that had a complementary packet of
"white tea", which was really black tea with powdered milk. I wonder
what they would call real white tea
<A HREF="http://coffeetea.about.com/od/typesoftea/a/whitetea.htm"
>http://coffeetea.about.com/od/typesoftea/a/whitetea.htm</A>
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
'forn white tea'?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
I drink humungous amounts of water. I can't eat a meal without drinking
water. The water thins the food; otherwise it feels too thick and I can't
eat more.
</blockQuote>
<blockQuote>
I started drinking alcohol and tea when I was in Russia. The vodka
part was because people kept saying, "You won't drink with me, you're not my
friend?" I certainly didn't want to put a barrier between myself and
potential contacts since I was thinking about moving there for a while.
People who knew only two words of English would say "Russian Tradition!"
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I nearly had a c|n>k there - I've been hearing 'Polish tradition' in the same
way a lot recently
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> I've been pressganged into taking a trip there some
time in the new year by my friend Pawel to try some Polskie piwo.
</blockQuote>
<blockQuote>
We have the same sort of 'you won't drink with me?' thing here. It's probably
because there's very little physical contact between sober males - it's OK
when you're drunk, or already very good friends with someone, so drinking
together is an essential part of the friendship process.
</blockQuote>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] I cut this into its own thread too: <A HREF="http://linuxgazette.net/110/lg_laundrette.html#nottag.6"
>http://linuxgazette.net/110/lg_laundrette.html#nottag.6</A>
</blockquote></font>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
whenever they they filled my glass. But when I got home, I quickly grew
tired of paying $5 for vodka or beer when I didn't like them much.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Thanks for that Mike. I'm glad to see that there's somewhere else in the
world where prices are as overinflated as they are here. I've been getting
sick of hearing that a pint of beer is 30 cents in the Philipines, or a
litre of vodka is 5 euros in Poland
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
My friend Trev was telling me that Joon, one of the maintenance guys where I work, told him "Come to the Philipines. Bring 50,000, buy a mansion. I'll bring the women."
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
The most interesting vodka brand was "Russkaya Ruletka" (Russian roulette),
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
'Russian roulette' is the name of one of the Polish traditions that keeps cropping up. You're given three shot glasses, one filled with water, one with vodka, and one with... 'spirits'; swap them around, slam two.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
which had billboards all over the place. Strangely, however, I never saw
that brand at the kiosks. I surmised it was only drunk by rich expatriates,
who bought it... um... wherever it is that rich expatriates congregate.
</blockQuote>
<blockQuote>
The tea thing happened indirectly. You can't drink the water in Russia
unless you boil it first. Russians did not generally keep fresh water
around, but you were never far from a teapot. And tea is boiled water
-- how convenient! The babushkas were surprised when I kept coming back
for tea, and were amazed when after a few cups I'd say, "Just let me
have some hot water, please" until I was ready for more tea. So I came
home and never stopped drinking tea.
</blockQuote>
<blockQuote>
The thing I missed most in Russia was ice water. I love ice water,
especially with hot food. You can refrigerate boiled water, but you
can't make ice cubes without ice cube trays. I guess ice is not a
Russian tradition; I did not see a single ice cube tray my whole time
there. I decided if I ever go back to Russia, I'm gonna make sure to
pack a couple ice cube trays.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Brian]
Coca-Cola or Mountain Dew, in the handy 2 liter single serving size.
</blockQuote>
<blockQuote>
I enjoy assorted beers, but I find that in an earlier era I enjoyed
assorted beers, etc., far too much. So now I enjoy them in absentia.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
</blockQuote>
<blockQuote>
Ah, virtual beer! All the attributes of it except its presence and its
effect. Easier on the wallet as well, and you can have the best brands
without ever chasing out to the store... Smart guy, that Brian.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Brian]
My new motto:
</blockQuote>
<blockquote><pre> _______________________________________
/ For me, mad cow disease could only be \
\ an improvement. /
---------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/
||----w |
|| ||
</pre></blockquote>
<blockQuote>
For some reason, it distresses both my lovely wife and my mother when I
utter such things...
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I'd be quite distressed if you were to udder such things in my presence,
too. Mooved to tears, most likely.
</blockQuote>
<blockQuote>
(Is anyone else going to milk this opportunity, or will you all simply
cowtow to public opinion and simply write about it in your dairies?)
</blockQuote>
<!-- end 5 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.6"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 6 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Even more ginger beer!</H3>
<p><strong>From Jimmy
</strong></p>
<p></strong></p>
<blockQuote>
We have the same sort of 'you won't drink with me?' thing here. It's probably
because there's very little physical contact between sober males - it's OK
when you're drunk, or already very good friends with someone, so drinking
together is an essential part of the friendship process.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
Not that I saw. People in Ireland drank if they wanted to, but they
didn't get all out of sorts if you didn't. And if you stuck to one
beer a day they didn't mind. It wasn't this one after another "you
must have more" thing.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Well, it's more that if you continually decline invitations to the pub,
people get really annoyed. And you're right, no one minds if you don't
drink. They will tease you for it, though.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Heh. Ya gotta unn'erstan', Mike... despite the overt simplicity, there's
a lot to that custom. In many ways, it's like the Jewish "eat, eat!"
thing. First off, there <em> is </em> the obvious - "hey, aren't we friends? Why
do you want to insult me?" But there's also an undertone of "just how
much will you let me force you to drink?", with the sure knowledge that
if you agree once, it becomes much easier after that. Then there's the
cultural imperative of "you must be drunk to talk about <EM>serious</EM>
things", which is What Men Do (i.e., big-time male bonding ritual.)
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Another "What Men Do" thing, at least around here, is insulting your
best friends. It's like a private joke: if the implicit "I love you
really, man" is ever made explicit, the bond is... cheapened (that is,
unless you're +/- two drinks from throwing up); if someone else joins
in, serious in their insults, they find their mouth has been shut for
them really quickly.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
In Russia, that was considered more or less juvenile (i.e., college
students, etc. would do it, but not most "adult men".) If you're good
drinking buddies with each other, and you've "talked about the deep
things", there's an implied deep level of trust. There are sayings and
jokes about "knowing who you're drinking with", somewhat parallel to "I
(would|wouldn't) go with you to scout enemy positions" (WWII expression
that's stuck around, particularly among the older set.)
</blockQuote>
<blockQuote>
Russians don't much like superficiality, and it's taken for granted that
you don't have to put on airs with somebody you've dragged home out of a
mud puddle.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I had been aware of this to a degree before; my former immediate
supervisor is incapable of giving a compliment - the more he insults
you, the better a friend he considers you.
</blockQuote>
<blockQuote>
His most used term of endearment is 'bitch', so all of the guys I work
or worked with call each other that as a piss-take. I talking to a
Polish coworker, Beata, in the pub last week. She started to get
offended when a friend (who was put working with my former supervisor
when I changed shifts) called me a bitch, and started to say something
about how she knew what those words meant. At the time I thought she was
offended by his language, but afterwards I realised she only knows one
meaning of bitch, and it never occurred to her that he was talking about
me, let alone that she's completely unaware of our little custom.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Navigating those rocks and shoals is a little challenging, but here it
is: a Real Man is one who stands up to the bullying by being relatively
polite but totally firm about refusing... and <em> then </em> proceeds to get
righteously fried with you anyway. [grin] Foreigners don't thread that
particular needle well, usually. For that matter, there aren't that many
Russians who do, either. I guess you could call it a fairly tough test.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Something like this?:
</blockQuote>
<blockquote><pre>"Are you going to the pub"
"No way. I only got 3 hours sleep last night, and have to work tomorrow"
<Half an hour of 'oh, go on'>
"Alright so. I'll see you next weekend"
<Later that night>
"Thought you weren't going out"
"Ah, I haven't been hungover at work for a while"
</pre></blockquote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Cool - the Irish version! No, more like:
</blockQuote>
<blockquote><pre>[Friendly but somewhat overbearing (and a little threatening) attitude]
"You're not drinking - you don't want me to be your friend?"
[Face him squarely, take him by the shoulders, give him a shake]
"Vasya, what the hell kind of a question is this? I'm simply not
drinking tonight. Can't do it; the wife and the children are waiting
with dinner."
(Several rounds of similar, until Vasya gives up; *then*: )
"Listen, just to calm you down - just a couple of drops for the road."
</pre></blockquote>
<blockQuote>
Here comes that mud puddle...
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
Yeah, but it's just fucking ridiculous. Sorry for the cultural
insensitivity, but I have a big issue with forcing alcohol on people,
or letting it intrude into these areas of personal relationships that
it really has nothing to do with. It is possible to be buddies and
talk about deep stuff without alcohol.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Did you ever hear anybody say that cultural practices are supposed to
make sense? Or that the average man actually enjoys them? Complaining
about them is like saying that you didn't enjoy your Basic Training in a
country that practices the draft.
</blockQuote>
<blockQuote>
I don't like the idea of force being used between people - we've talked
about how I switch modes when anyone initiates it - but that doesn't
mean I'm going to get torqued about 99% of human history, or ignore how
people interact. I'm also able to distance myself enough to see that it
can work for others, and even find amusement, interest - and most of
all, compassion - for those involved. For myself, I just need to know
the basics for surviving whatever it is; coming out on top and with
style is a plus, if available.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
What, without being able to play the 'Wow, I talk an awful load of shite when I'm drunk!' card?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Heh. Some people would just <EM>die</EM> if you took that one away. At least
their careers would.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I'm open to the point where I consider nothing about myself private, but that's only because of a
lot of drunken conversations that I had to face up to (the post-drinking 'what the fuck is wrong
with you?' conversations
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> I'd had 'deep conversations' before, but they always came from my public persona.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I did it as a conscious choice, one that took a lot of struggle to make.
I do have things I consider private (mostly because other people are
involved), but nothing secret or hidden; I just refuse to do that to
myself anymore.
</blockQuote>
<!-- end 6 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.7"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 7 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Cider/Hangovers</H3>
<p><strong>From Jimmy
</strong></p>
<p></strong></p>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] As it happens, I'm editing this while suffering the consequences of
a work Christmas party
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockquote></font>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Pear cider? Must try that. Remembering cider isn't too difficult for me -
several of my friends and one of my brothers are cider drinkers. I'm not
normally a fan of cider (I get horrible indigestion from it), but add a
Pernod and some blackcurrant...
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Neil]
I believe "Pear Cider" should be called Perry. just don't mention Babycham
<IMG SRC="../gx/dennis/smily.gif" ALT=";-)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
Never heard of Perry. All the pear ciders I've seen say "pear cider" on
the bottle.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Neil]
Googling for pear cider throws up mostly merkin sites, perry gets you mostly
English sites. I guess we're just 2 nations divided by a common language.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
"Merkin?" Reminds me of Mark Orkin's book, _Canajan, Eh?_
<A HREF="http://www.amazon.com/gp/product/customer-reviews/0773759069/104-7849304-6682317?%5Fencoding=UTF8"
>http://www.amazon.com/gp/product/customer-reviews/0773759069/104-7849304-6682317?%5Fencoding=UTF8</A>
He has two other books although I've never seen them. _French Canajan, He'?_
and _Murrican, Huh?_
</blockQuote>
<blockQuote>
I know one Canadian who says "hey" instead of "eh". That might be the
source of this peculiar word.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Neil]
This particular usage[1] comes from when I used to read alt.fan.pratchett.
</blockQuote>
<blockQuote>
[1] Correct usage at <A HREF="http://dictionary.reference.com/search?q=merkin"
>http://dictionary.reference.com/search?q=merkin</A>
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
I meant the source of "eh", not the source of "merkin".
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Breen]
</blockQuote>
<blockquote><pre>> Googling for pear cider throws up mostly merkin sites, perry gets you mostly
^^^^^^
</pre></blockquote>
<blockQuote>
I do not think that word means what you think it means....
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I told my brother what it meant once, and it became his favourite insult for a while.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
All right! Another literate word-spotter! Well done, Breen.
</blockQuote>
<blockQuote>
(I knew people at SCA who talked about making some. For authenticity.
Brrr...)
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Neil]
When I use a word it means just what I choose it to mean, neither more nor
less.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Breen]
Thank you, Mr. Dumpty.
<IMG SRC="../gx/dennis/smily.gif" ALT="<g>"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Ah, right.
</STRONG></P>
<P><STRONG>
I've asked Heather:
</STRONG></P>
<P><STRONG><BLOCKQuote>
"I like ginger beer, RC cola, eggnog when made from real eggs, mocha extra dark w/
whipcream, and tea at a rate faster than most programmers drink coffee. coffee only
if it's real - not that fastfood style coffee sold at 24 hr restaurants and capable of rusting your
innards."
</BLOCKQuote></STRONG></P>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Righto, the TAG bar is open in #tag-chat
</STRONG></P>
<P><STRONG>
While we're on the topic - what's everyone's favourite hangover cure? Mine's plenty of water before
sleeping, with a long walk home and next morning.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Mine is to be a couple of days away from the event - in either
direction.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> Kinda like the guaranteed cure for sea-sickness (sitting
under an oak tree...)
</blockQuote>
<blockQuote>
Seriously, I only recall (dimly, yeah) being hung-over once from
drinking - and that may well have been a mild case of food poisoning.
I've even done those things you're never supposed to do, alcohol-wise -
drinking wine right after vodka, ditto with champagne... no problem.
However, back in those long-ago days when Bill and I didn't inhale, I
spent a number of mornings feeling muzzy and low on energy. Go figure...
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I remember my first hangover - day after my first time getting drunk,
after celebrating the birth of my son. I was sick as a dog, because I was
drinking with her family, who I didn't really feel all that comfortable
around at that particular moment
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</STRONG></P>
<P><STRONG>
Y'know, I don't think I've ever <TT>/not/</TT> mixed drinks... Worst was
snakebite with added shots of vodka, tequila, sambucca and jaegermeister,
followed by 50% cider, 50% jaeg. I was still hungover two days later.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
</blockQuote>
<blockquote><pre>> eggnog when made from real eggs,
</pre></blockquote>
<blockQuote>
Ahh, another story. I was in a floating bar in Deptford (that is, a
bar on a boat that was permanently moored on the Thames) with two friends,
one English and one Scottish. The second guy offered to get us drinks and
I said lemonade. Then, remembering "lemonade" in England means some
horrible piss-colored soda like Mountain Dew, I said, "Wait! I mean with
real lemons." He looked at me with a "what the hell are you talking about"
expression. The other guy, who had lived in the States, understood what I
meant and said, "He means like a hootch without the alcohol." Somehow the
bartender managed to find such a beast.
</blockQuote>
<!-- end 7 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.8"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 8 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Swedish Chef</H3>
<p><strong>From Heather
</strong></p>
<p></strong></p>
<blockquote><pre>Dec 08 17:35:47 <editorgal_zzz> 09:02 <@popeywork> fork() fork() fork() !
Dec 08 17:35:47 <editorgal_zzz> 09:02 <@popeywork> (swedish chef with a cold)
</pre></blockquote>
<!-- end 8 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.9"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 9 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Album of the month</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<P><STRONG>
Here's my vote for Laundrette album of the month:
</STRONG></P>
<blockQuote><BLOCKQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Huh? It's open to a vote now? Wait, there's an album of the month now?
</BLOCKQuote></blockQuote>
<blockQuote>
<TT>/me</TT> shrugs
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
No need for a vote. A vote would just show our individual prejudices
more than it would be any meaningful measure. We can just publish the
lists like we've done before. But our past list
<A HREF="../102/lg_backpage3.html"
>http://linuxgazette.net/102/lg_backpage3.html</A>
was our all-time favorites, and this time I'm aiming for music most of us
haven't heard.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Another good source of free music on the 'net is the Internet Archive:
<A HREF="http://www.archive.org/audio"
>http://www.archive.org/audio</A> though the categories are a bit more
'loose' than on Magnatune. It has a few categories: open source audio,
live recordings, and 'netlabels'.
</blockQuote>
<blockQuote><DL><DT>
There's also quite a few choral recordings available from MIT:
<DD><A HREF="http://hebb.mit.edu/FreeMusic"
>http://hebb.mit.edu/FreeMusic</A>
</DL></blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Dr Kuch, <em> Analog Disease </em>
<A HREF="http://magnatune.com/artists/dr_kuch"
>http://magnatune.com/artists/dr_kuch</A> (MP3 online)
It has a techno base but occasionally mixes in reggae or big band
horns. The occasional lyrics are in a myriad of languages, some
French and some I don't recognize.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Kinda reminds me of Enigma. I preferred Falling You though.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Anybody got any other nominations. Extra karma if they're
lesser-known artists, if at least part of the album is on the web
(without requiring Windows or Mac software), and if you can say
something about why the music is original or unique.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I don't think I've listened to a whole album this month. My mental state
generally tends to have two gears - up and down - and each has had its
own playlist:
</blockQuote>
<blockQuote><BLOCKQuote>
Down
</BLOCKQuote></blockQuote>
<blockquote><pre>The Cure - Burn
The Cure - Fascination Street
Smashing Pumpkins - Soma
Smashing Pumpkins - Disarm
DJ Shadow - High Noon
Nine Inch Nails - The Frail
Nine Inch Nails - The Wretched
Nine Inch Nails - A Warm Place
Pantera - Floods
Pantera - Suicide Note Part 1
Therapy? - Moment of Clarity
Slipknot - Vermilion Part 2
Audioslave - Like a Stone
</pre></blockquote>
<blockQuote>
Up
</blockQuote>
<blockquote><pre>Slayer - War Ensemble
Slayer - Dead Skin Mask
Slayer - Blood Red
Slayer - Spirit in Black
Slayer - Bloodlines
Carcass - Embodiment
Carcass - No Love Lost
The Cure - Friday I'm in Love
The Cure - Just Like Heaven
The Cure - Close To You
Sikth - Scent of the Obscene
Machine Head - None But My Own
Helmet - Milktoast
Helmet - Unsung
Therapy? - Unbeliever
Therapy? - Misery
</pre></blockquote>
<blockQuote>
(though lyrically most of my up list would be on most others' down lists
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I finally took the plunge to soundcard-driven music. Actually it was
forced by a receiver and CD player that are intermittently failing. I
either had to replace them or get a bookshelf system or switch to the
computer, and I wanted to do it for less than $100. But I don't like
the current generation of components (way overkill). The used
components in the shops are, um, worse than I already have. I don't
like the bookshelf systems (no phono input). But my computer has crappy
speakers. So do I get good computer speakers or connect my PC to my
stereo? I looked into the $50 and $100 amplified computer speakers,
but was afraid to get something that still didn't sound as good as my
stereo. So I opted for two 25-foot patchcords and an adapter instead,
for the princely sum of $15. The sound is a bit quieter than it should
be and seems "compressed", but it's OK. I'm not sure if a better
soundcard or shorter patchcords would make a difference, but I can't
do anything about the patchcords. The soundcard is... something that
uses the Ensoniq 1371 driver. So, now I can avoid the failing CD
player. The receiver is holding up better than it did with CDs. And
when it does eventually fail, I can replace it with anything that
amplifies. The only radio station I listen to regularly has
webcasting so I don't really need a receiver per se, except for
records and tapes.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
My brother used the same sort of setup. Switch to FLAC instead of MP3
and you'll get some improvement, but there'll always be a difference
because the majority of soundcards are rubbish. The volume difference is
down to the cables - most guitar leads run to about that length and
standard practise is to add a pre-amp to compensate.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Chris G]
I think that my album of the month is:
</blockQuote>
<blockQuote><BLOCKQuote>
Plasticman - Sheet One
</BLOCKQuote></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
Since the subject of music comes up a lot, I have just completed
categorising the music that I own [1]. Have a look through it, and see
what you think.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
[1] <A HREF="http://edulinux.homeunix.org/music.rbx"
>http://edulinux.homeunix.org/music.rbx</A>
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Looking through that list, I see several albums that I <TT>/should/</TT> have
that seem to have mysteriously disappeared. I suspect my brother Joe got
at them with a hammer.
</blockQuote>
<blockQuote><DL><DT>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Neil]
<DD><A HREF="http://www.bachue.co.uk/cds.htm"
>http://www.bachue.co.uk/cds.htm</A>
</DL></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
On a related note, I've been trying out Audioscrobbler with XMMS: Audioscrobbler
makes your listening choices public, and, once it knows enough about your
listening choices, recommends other music to you.
</blockQuote>
<blockQuote>
<A HREF="http://www.audioscrobbler.com/user/jimregan"
>http://www.audioscrobbler.com/user/jimregan</A>
</blockQuote>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] I've since found that audioscrobbler is only really useful if your tastes are restricted to
a single genre: it can't handle that I like Slayer, Carcass, The Cure, and Jeff Buckley
<IMG SRC="../gx/dennis/unsmily.gif" ALT=":("
height="24" width="20" align="middle">
</blockquote></font>
<!-- end 9 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.10"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 10 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Alice in Wonderland</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<blockQuote>
Just what you never wanted. A site full of Java and Javascript games
based on scenes from <em> Alice in Wonderland .</em> Curiouser and curiouser!
</blockQuote>
<blockQuote>
<A HREF="http://www.ruthannzaroff.com/wonderland/index.htm"
>http://www.ruthannzaroff.com/wonderland/index.htm</A>
</blockQuote>
<!-- end 10 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.11"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 11 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Off for Mile-high City</H3>
<p><strong>From Ben Okopnik
</strong></p>
<p></strong></p>
<blockQuote>
...Denver, that is.
</blockQuote>
<blockquote><pre>----------------------------------------------------
ben@Fenrir:~$ metar KDEN
INPUT: 2004/12/05 17:53
KDEN 051753Z 31007KT 10SM FEW060 SCT100 SCT140 BKN200 01/M04 A2962 RMK AO2 SLP034 ACSL DSNT SW-NW OMTNS T00111044 10022 21033 50006
METAR Report
============
Airport-Id: KDEN
Report time: 2004/12/5 17:53 UTC
Visibility: 16.1 km 10 US-miles
Wind: from the NW (310°) at 13 km/h 7 kt = 8.1 mph = 3.6 m/s
Temperature: 1°C 33.8°F
Dewpoint: -4°C 24.8°F
Rel. Humidity: 69%
Pressure: 1003 hPa 29.62 in. Hg
Sky condition: few clouds at 6000 ft 1830 m
scattered clouds at 10000 ft 3050 m
scattered clouds at 14000 ft 4270 m
broken clouds at 20000 ft 6100 m
----------------------------------------------------
</pre></blockquote>
<blockQuote>
And that's in the middle of the day.
</blockQuote>
<blockQuote>
It's just <EM>wrong</EM> for humans to live anywhere that temperatures get a
'-' prefix. I'm going because people are throwing money at me, but...
I'm just sayin'. If we were meant to deal with cold, we'd have thicker
skin and lots more hair.
</blockQuote>
<blockQuote>
BRRRR!
</blockQuote>
<blockQuote>
I'm sitting at the Jacksonville airport, with palm trees waving outside.
In just a couple of hours, I'll probably be seeing polar bears and most
likely have to smear seal blubber on my face while gazing out over the
lakes of frozen CO2... It's been a while since I've been north of the
Mason-Dixon line in the winter and my memory may be a bit faulty, but it
seems like a reasonable interpolation. Particularly since the
temperatures <em> here </em> are in the sixties, and I'm already bundled up and
<EM>still</EM> cold.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Heh. In the sixties? Is that like ~18°C? That's a warm spring day over
here. It's gone to the second t-shirt time of year, but last week I was
too warm at work, and started cleaning out the freezer (-36°C) to cool
down
<IMG SRC="../gx/dennis/smily.gif" ALT=":-P"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
-36°C? That sounds cold enough to make lawyers put their hands in their
<EM>own</EM> pockets. How do you get it that low, anyway? Ask one of the Bush
twins for a date and duck behind the condenser, or what?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I've been wondering about that since I wrote it. I think the temperature
gauge is busted. It's definitely lower than -3.6, but there's no way in
hell I walked into -36 and walked out again, let alone spent a few hours
cheerfully chipping away at the ice blocks.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [William Park]
Bunch of sissies. Have you been to Arctic Circle yet, up here in
Canada?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Why, no. I haven't stuck my tongue across a 110v outlet, either, or
spent any time pounding my head against the wall... although I
understand there are people that enjoy those kinds of things - including
the visit that you mention.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</STRONG></P>
<P><STRONG>
I probably will cross one of the Circles' latitudes at some point, just
to do it, but it's likely to be followed by several years' stay
somewhere near the equator in order to defrost and deal with the
psychological damage (dark rum <EM>will</EM> play a major role in the
recuperation process.) A man's got to have his standards, after all.
</STRONG></P>
<!-- end 11 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.12"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 12 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>More on English</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<P><STRONG>
<A HREF="../109/lg_laundrette2.html"
>http://linuxgazette.net/109/lg_laundrette2.html</A>
</STRONG></P>
<P><STRONG>
Regarding Paddington Bear and the box room, I was even more shocked
when it said he was using a torch in the room. In American English,
torch means something with an open flame like the ancient Romans used.
Not a good thing to have in box rooms with modern wallboard. I guess
the book meant he had a flashlight.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Yeah, torch == flashlight in this case.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Of course, flashlights don't usually flash, but that's another thing.
Flashbulbs flash, but nobody uses them any more.
</STRONG></P>
<P><STRONG>
That reminds me of the book <em> Crazy English .</em> I transcribed some
quotes from it a few years ago. It's in LaTeX format, unfortunately.
</STRONG></P>
<P><STRONG><DL><DT>
Here's the original.
<DD><A HREF="http://www.amazon.com/exec/obidos/ASIN/0671023233/"
>http://www.amazon.com/exec/obidos/ASIN/0671023233/</A>
</DL></STRONG></P>
<pre><strong>English is the most widely spoken language in the history of our
planet, used in some way by at least one out of every seven human beings
around the globe. Half of the world's books are written in English, and
the majority of international telephone calls are made in English.
English is the language of over sixty percent of the world's radio
programs, many of them beamed, ironically, to the Russians, who know
that to win friends and influence nations, they're best off using
English. More than seventy percent of international mail is written and
addressed in English, and eighty percent of all computer text is stored
in English. English has acquired tha largest vocabulary of all the
world's languages, perhaps as many as two million words, and has
generated one of the noblest bodies of literature in the annals of the
human race.
Nonetheless, it is now time to face the fact that English is a crazy
language.
In the crazy English language, the blackbird hen is brown, blackboards
can be blue or green, and blackberries are green and then red before
they are ripe. Even if balckberries were really black and blueberries
really blue, what are strawberries, cranberries, and gooseberries
supposed to look like?
To add to the insanity, there is no butter in buttermilk, no egg in
eggplant, neither worms nor wood in wormwood, neither pine nor apple in
pineapple, and no ham in a hamburger. (In fact, if somebody invented a
sandwich consisting of a ham patty in a bun, we would have a hard time
finding a name for it.) To make matters worse, English muffins weren't
invented in England, nor french fries in France, nor Danis pastries in
Denmark. Sweetmeat is made from fruit, while sweetbread, which isn't
sweet, is made from meat.
Greyhounds aren't always grey (or gray), ladybugs and fireflies are
beetles, a panda bear is a raccoon, and a guinea pig is neither a pig nor
from Guinea.
</strong></pre>
<P><STRONG><CODE>
####
<BR>Quite a lot snipped
<BR>#####
</CODE></STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
I've been flicking through "Eats, Shites and Leaves" recently, which is
another collection of english oddities, and I recently had a
conversation about this with Marcin "Nedman" Niedziela, founder of LG PL:
</blockQuote>
<blockQuote><BLOCKQuote>
(See Marcin? This sort of thing comes up on TAG <TT>/all</TT> the time/
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</BLOCKQuote></blockQuote>
<blockquote><pre> >>> If it makes you feel better, English is the second hardest language
>>> to read and write.
>>
>> You think so..? Then try to pronounce this:
>> "konstantynopolitańczykowianeczka" (one word) or
</pre></blockquote>
<blockQuote>
[Pawel, one of my Polish coworkers, wouldn't even <TT>/try/</TT> to pronounce that]
</blockQuote>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] Marcin later explained that it means 'a woman from Constantinople'
</blockquote></font>
<blockquote><pre> >
> Hmm... the English-ish syllables, IIRC, would be
> cone stan tin owe pole ee tan chick owe vyan etch ka
> (Does that mean something like 'someone who comes from
> Constantinople?')
>
>> "W Szczebrzeszynie chrząszcz brzmi w trzczinie" ;)
</pre></blockquote>
<blockQuote>
[Pawel pronounced that easily, but couldn't explain it]
</blockQuote>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] Another co-worker, Beata, said that it's a tongue-twister
(well, she agreed that it was like "Peter Piper picked a peck of pickled peppers")
This page (<A HREF="http://help.berberber.com/showthread.php?p=7819#post7819"
>http://help.berberber.com/showthread.php?p=7819#post7819</A>) seems to agree.
</blockquote></font>
<blockquote><pre> > Aha. Got me there. I haven't heard '?' pronounced, so I don't know how
> to say it :-P (I think I could manage the rest, if I said them
> *really* slowly)
>
> English is harder to read and write because there are so many
> different rules from so many different parent languages.
>
> In English, we have things like:
> rough (ruff)
> dough (doh)
> thought (thawt)
> plough (plow)
> through (throo)
> Scarborough (Scarburrah)
</pre></blockquote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
That's Scar-burrow over here.
"Are you going to Scar-burrow fair..."
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Breen]
Well, if we're going to play at that:
</blockQuote>
<blockquote><pre>There was a young curate from Salisbury
Whose manners were all halisbury-scalisbury
He went down to Hampshire
Without any Pampshire
And the people there told him to walisbury.
</pre></blockquote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
</blockQuote>
<blockquote><pre> > cough (coff)
> hiccough (hiccup)
</pre></blockquote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Robert Heinlein noted that particular problem, and had a sentence to
illustrate it: "though the tough cough and hiccough plough him through".
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
hiccough?? I don't think I've ever seen hiccup spelled that way.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
That's the correct spelling in BE, though little used these days.
</blockQuote>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] While trying to learn Polish grammar, I found <a
href="http://grzegorj.w.interia.pl/gram/isoen/gram1.html">this page</a>:
<blockquote>
However, it is comforting for Poles when you compare all that with the
English language, where it can seem that no rules of pronunciation and
spelling are obeyed. So, in the words even - meet - speak - key - ceiling
- people - machine - piece - quay - Caius - Caesar - Phoenix, the bold-marked
characters or sequences of characters have the same pronunciation (all the
examples here and below are British). And the other way round, a given
grapheme (character) can be read in different ways: the o in each of the
words polish, Polish, move (oo), Home (yoo, a surname), love, one, woman,
women (i), store, word, correct, reason (-) is pronounced differently.
</blockquote>
</blockquote></font>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I guess people write less about hiccupping than about finalising
encyclopaedia centres painted in grey colours while coughing down
draughts at the pub and watching the football lads on the telly pound
the pitch as the supporters on the terraces engage in fisticuffs in the
pissing English rain.
</STRONG></P>
<P><STRONG>
(As opposed to finalizing encyclopedia centers painted in gray colors
while coughing down drafts at the bar and watching the football (ahem)
boys on TV pound the field as the fans in the stands sit and watch
quietly while it's raining cats and dogs.)
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
'watch quietly'? At an event that takes place in a stadium?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
It was amusing attending a US-Canadian soccer game last year. It was
the Seattle Sounders vs the Vancouver Whitecaps, who are traditional
rivals. Some Sounders fans were trying to promote a "loud section" --
an area where people were encouraged to stand and make noise like the
Europeans do -- and were passing out flyers trying to convince people to
get tickets for that section. But the section was pretty empty. The
Canadians meanwhile had brought their maple leaves in force and were
shouting and blowing noisemakers the whole time. The Sounders fans
couldn't be bothered to bestir themselves, and just sat watching and
quietly thinking, "Canadians are weird". Of course, everybody goes
"Ooooh!" when there's a score, but that only lasts ten seconds and
then it's over, it's not the continual rumblings.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Yeah, but Americans don't really get soccer yet,
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Yet??? You're assuming they will someday?
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Sure. All those kids of the soccer moms will grow up someday.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
so it's hard to imagine
there'd be too many people who are really into it. (It's not just a
European thing either: the South Americans are a lot louder from what
I've seen).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Whenever Brazil wins the world cup, there are horns a-honking all over town,
and crowds in front of Brazilian restaurants playing bongo drums for hours.
This even in cities without large Brazilian populations. The first time
it happened in Vancouver I didn't even recognize it. "Ah, it's just a
bunch of sports fans." Only after I saw it again and again whenever Brazil
or Mexico won a match did I notice the trend.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Kapil]
As an honorary Mexican I feel compelled to object!
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
There have been so many funny US-Mexico cartoons. One was in Calvin and
Hobbes. Calvin did something bad (news flash!) so he has to vamoose pronto.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
vamos?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Vamos means "we go" or "let's go" in Spanish. Vamoose (va-MOOSE) is an
English corruption that's more urgent (disappear, scram, get lost,
hightail it outta here). Likewise, pronto in Spanish means "soon" but
in English it means "right away or else". Or as a Valley Girl might
say, "like, instantaneously".
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Just wondering if I had the Spanish right. I know all about 'vamoose':
my Dad's a fan of cowboy movies.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Did you see the Inspector in the Pink Panther cartoons? He was a French
guy with a Spanish sidekick. Every time he gave an order, the sidekick
would say, "si". The inspector kept chiding him, "Don' say 'si', say
'oui'." Once they were on a pirate ship battling this evil clam
captain. They escaped the ship in a dinghy. The sidekick commented,
"We're sinking into the oui!" The Inspector glubbed in his last breath,
"Don' say 'oui', say 'sea'."
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
(IIRC, there's also a 'si' in French that also means 'yes', but for
answering questions where 'oui' would be ambiguous)
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
He practices his Spanish: "Que pasa, senorita? I am el fugitivo."
</STRONG></P>
<P><STRONG>
But the funniest one was a political cartoon where an American is
driving into Mexico and his companion calls after him, "Don't drink the
water!" Meanwhile a Mexican is driving into California and his
companion calls after him, "Don't breathe the air!"
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Offer Kaye]
Why? That makes you an honorary Central American, not South American...
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Honourary Mexican? How so? And more importantly, Dnde Está mi tequila?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Kapil]
Because when I was in Mexico, many did exactly what you did---spoke to
me in Spanish---even to the point of asking me directions. Clearly I was
taken for a "native"---and I took that as an honour.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Heh. That's about the extent of my Spanish: Cmo está, Buenos noches,
por favor, gracias, esta una bar aqui, and dos cervezas por favor. Bare
necessities only
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Hasta la sagne.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
Does this meen the same as "Hast a Lasagne" ?
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
No, hasta means "until". Sagne doesn't exist AFAIK. I just
made it up based on "hasta la taco", which you sometimes hear.
They're all derived from "hasta la vista" (till we meet again,
or literally "till the seeing"; compare "auf wiedersehen").
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Or 'au revoir' in French or 'do widzenia' in Polish
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
This is what happens to you if you grow up in California. My mom used
to say "pronto" and "hamburguesa con queso, por favor". Not to order a
hamburger with cheese, mind you. She just said it at random moments.
(Yes, hamburguesa can also mean a girl from Hamburg.)
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
...p. 13 in the cannibal's cookbook.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
"Hasta la vista... baby!"
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
<TT>/me</TT> resists the temptation to say... erm... the <TT>/other/</TT> line from that movie
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
relevant dictionary entries:
</blockQuote>
<blockquote><pre>Hast = South German dialect for "do you have"
a = " " " "an"
Lasagne = famous Italian Pasta dish in layers
</pre></blockquote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
So you're just omitting the 'du'?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
Well -- properly pronounced the "a" would shift to a darkish "o" sound.
Spelling is not fixed for Bavarian like it's for "High german".
Gramatically there is more in there -- The Bavarian "hast" actually
includes the "du". "Haben sie" = "hams", "hat er" = "hod a" (putting the
o sound in writing here).
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
(Rammstein taught me the ambiguity of 'Du hast': it means both 'you
have' and 'you hate', right?)
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [K.-H.]
Pronounciation is indeed very similar -- spelling is different so.
</blockQuote>
<blockquote><pre>Du hast (you have)
Du hasst (you hate) -- the double "s" comes along with a somewhat
sharpenend "s" sound and a strong emphasis on the
"a"
</pre></blockquote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Kapil]
Ah! The USA is a bundle of contradictions:
</blockQuote>
<blockQuote><BLOCKQuote>
1. The most popular country in the world. (look at immigration stats)
</BLOCKQuote></blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
The immigration stats that went way down this year?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Kapil]
2. The least popular government in the world. (ask people around the
world who enemy number 1 is)
</blockQuote>
<blockQuote>
3. The country with the greatest number of great sports people. (see who
has been winning the most gold medals over a longish period of time)
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
... a large percentage of whom are foreign born.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Kapil]
4. The country with the least participation in the worlds most popular
game. (soccer)
</blockQuote>
<blockQuote>
... the list goes on.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
We make trends, we don't follow them.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle"> If the world doesn't understand
the innate superiority of American football, baseball, and basketball over
soccer, that's the world's problem. (Tongue firmly in cheek.)
</STRONG></P>
<P><STRONG>
A friend pointed out that organized team sports didn't exist until the
Industrial Revolution, before that it was all individual sports. There
were soccer-like games but not persistent teams and rankings. He said
that was not just a coincidence but a conscious campaign by the business
owners to instill corporate values in the workers (i.e., being a "team
player"). Thus why so many teams were founded and sponsored by companies.
(Hmm, this sounds a bit, er, Stalinistic....)
</STRONG></P>
<P><STRONG>
Contradictions "R" Us.
</STRONG></P>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Speaking of soccer, I just got this spam:
</STRONG></P>
<pre><strong>Subject: David Beckham wears Rolex
Do you want Watch?
http://example.com/rep/sales/
</strong></pre>
<!-- end 12 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.13"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 13 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Hey Stranger</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<blockquote><pre>On Thu, Dec 09, 2004 at 08:46:24AM -0300, Britany70@hush.com wrote:
> Hey You, I am Britany
> My friend gave me your email, and warned me that you're exciting..
>
> I can not stand him anymore, this marriage is unhappy, He didn't touch me in
> months
</pre></blockquote>
<blockQuote>
What's the deal with "my husband isn't home" spams? They suddenly increased
dramatically a couple weeks ago.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Thomas]
Well, if their husbands are out playing the proverbial milkman, the
least they could do is try and do the same from the other angle, no?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
They're all out chasing Britany; that's why they're not at home. At
least until their wives learn to start sending these emails that say,
"Hey You, I'm <Name>. My friend gave me your email..." Eventually, the
Brownian motion in the total population of the husband/wife set will
settle to its minimum-disturbance level as the individual units
recombine into stable pairs (which implies a drop to minimum temperature
- take <EM>that</EM> as you will), and the spams will stop, or at least
decrease greatly.
</blockQuote>
<blockQuote>
Marriage dynamics just ain't what they used to be, and it's these dang
computers that are at fault.
</blockQuote>
<!-- end 13 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.14"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 14 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Misc IRC stuff</H3>
<p><strong>From Jimmy
</strong></p>
<p></strong></p>
<blockQuote>
Misc stuff from IRC that touches on just about everything else in the laundrette: English,
drinking (including the grand opening of the TAG lounge's bar)
</blockQuote>
<p align="center">See attached <tt><a href="misc/nottag/irc-misc.html">irc-misc.html</a></tt></p>
<!-- end 14 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.15"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 15 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Question</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Heather mentioned on IRC that she used to write for a 'Dear Abby' type
advice column for the linuxlorn, so...
</STRONG></P>
<P><STRONG>
"Dear Heather, I'm writing to you because I have a problem.
I put a lot of time and effort into 'The Rules', but I'm worried that
now, noone can see the services behind my firewall
Should I try to show that I have more to offer?
That, behind the firewall, I have a warm sense of ftp?"
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
[LOL] Jimmy, you... you... you rock.
</blockQuote>
<blockQuote>
"Young, single, beige client ISO an experienced server who is open to
a new connection. If you're still running in promiscuous mode, look
elsewhere..." This could really go places. Bad ones.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
As has been pointed out, Unix is the only operating system where you can
fork without protection and then kill your children.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Hur hur hur. "After one spawns a child process, how long should one wait before fork()ing again?"
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
Number five -- alive.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
I have <EM>no</EM> idea what that refers to, although I've heard it used once
or twice before. Enlighten those of us who don't?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Brian]
Short Circuit, a movie with Ally Sheedy and some robots ... numbered.
</blockQuote>
<blockQuote>
A fan site for Johnny Five: <A HREF="http://www.johnny-five.com"
>http://www.johnny-five.com</A>
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Cultural icon sorta thing, I presume? Another "Where's the beef?" Odd, I
usually pick up on those, despite my refusal to own a TV. Oh well.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
What, no Elvis sightings today?
</blockQuote>
<blockQuote><DL><DT>
Ben, when you drove the taxi in New York, were you an Elvis impersonator?
<DD><A HREF="http://www.centredaily.com/mld/centredaily/news/7446657.htm"
>http://www.centredaily.com/mld/centredaily/news/7446657.htm</A>
</DL></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Sheesh, you totally missed the point. I was a <EM>cabbie</EM> impersonator.
</blockQuote>
<!-- end 15 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.16"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 16 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Collins Word Exchange</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote><DL><DT>
Collins Word Exchange:
<DD><A HREF="http://www.collins.co.uk/wordexchange"
>http://www.collins.co.uk/wordexchange</A>
</DL></blockQuote>
<blockQuote>
is a project where internet users may debate the validity of neologisms.
</blockQuote>
<blockQuote>
The first word to make it through the process is... (drumroll please),
an Irish word, langer
</blockQuote>
<blockQuote>
<A HREF="http://www.collins.co.uk/wordexchange/Default.aspx?it=271&pg=-1"
>http://www.collins.co.uk/wordexchange/Default.aspx?it=271&pg=-1</A>
</blockQuote>
<blockQuote>
langer noun Irish (Derog. slang)
1. a fool; an idiot
2. (Slang) penis 3. adjective langers extremely drunk (Submitted by:
Normac)
</blockQuote>
<blockQuote>
I'm not convinced they have the right order of definition there: as far
as I was aware, the other two usages derive from langer as a synonym for
penis (and, if you think about it, it makes more sense that way anyway).
</blockQuote>
<blockQuote>
So, according to Collins, langer is now an official word, and may be
used in Scrabble (score of 7).
</blockQuote>
<!-- end 16 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.17"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 17 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Just a bit o'Irish...</H3>
<p><strong>From Benjamin A. Okopnik
</strong></p>
<p></strong></p>
<P><STRONG>
And then, o'course, there's <em> this </em> bit of (Australian-)Irish that I just
got from a poetry list... just a little something to balance Jimmy's
ever-cheerful ways.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
</blockQuote>
<blockQuote><ul>
<!-- *) Complaints about the weather: check -->
<LI>Complaints about the weather: check
<!-- *) "ing" changed to "in'": check -->
<LI>"ing" changed to "in'": check
<!-- *) Dipthongs replaced with initial monopthong: check -->
<LI>Dipthongs replaced with initial monopthong: check
</ul></blockQuote>
<blockQuote>
passes enough Irishness tests for me, and several more besides.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
</STRONG></P>
<pre><strong>'Said Hanrahan'
"We'll all be rooned," said Hanrahan,
In accents most forlorn,
Outside the church, ere Mass began,
One frosty Sunday morn.
The congregation stood about,
Coat-collars to the ears,
And talked of stock, and crops, and drought,
As it had done for years.
"It's looking crook," said Daniel Croke;
"Bedad, it's cruke, me lad,
For never since the banks went broke
Has seasons been so bad."
"It's dry, all right," said young O'Neil,
With which astute remark
He squatted down upon his heel
And chewed a piece of bark.
And so around the chorus ran
"It's keepin' dry, no doubt."
"We'll all be rooned," said Hanrahan,
"Before the year is out."
"The crops are done; ye'll have your work
To save one bag of grain;
From here way out to Back-o'-Bourke
They're singin' out for rain.
"They're singin' out for rain," he said,
"And all the tanks are dry."
The congregation scratched its head,
And gazed around the sky.
"There won't be grass, in any case,
Enough to feed an ass;
There's not a blade on Casey's place
As I came down to Mass."
"If rain don't come this month," said Dan,
And cleared his throat to speak --
"We'll all be rooned," said Hanrahan,
"If rain don't come this week."
A heavy silence seemed to steal
On all at this remark;
And each man squatted on his heel,
And chewed a piece of bark.
"We want an inch of rain, we do,"
O'Neil observed at last;
But Croke "maintained" we wanted two
To put the danger past.
"If we don't get three inches, man,
Or four to break this drought,
We'll all be rooned," said Hanrahan,
"Before the year is out."
In God's good time down came the rain;
And all the afternoon
On iron roof and window-pane
It drummed a homely tune.
And through the night it pattered still,
And lightsome, gladsome elves
On dripping spout and window-sill
Kept talking to themselves.
It pelted, pelted all day long,
A-singing at its work,
Till every heart took up the song
Way out to Back-o'-Bourke.
And every creek a banker ran,
And dams filled overtop;
"We'll all be rooned," said Hanrahan,
"If this rain doesn't stop."
And stop it did, in God's good time;
And spring came in to fold
A mantle o'er the hills sublime
Of green and pink and gold.
And days went by on dancing feet,
With harvest-hopes immense,
And laughing eyes beheld the wheat
Nid-nodding o'er the fence.
And, oh, the smiles on every face,
As happy lad and lass
Through grass knee-deep on Casey's place
Went riding down to Mass.
While round the church in clothes genteel
Discoursed the men of mark,
And each man squatted on his heel,
And chewed his piece of bark.
"There'll be bush-fires for sure, me man,
There will, without a doubt;
We'll all be rooned," said Hanrahan,
"Before the year is out."
-- John O'Brien
</strong></pre>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Breen]
You beat me to in, Ben.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote><DL><DT>
More info on that poetry list is at
<DD><A HREF="http://www.cs.rice.edu/~ssiyer/minstrels"
>http://www.cs.rice.edu/~ssiyer/minstrels</A>
</DL></blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Oh, a man of excellent taste. Will wonders never cease?
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</STRONG></P>
<P><STRONG>
I knew Martin for a few years before he even started the list, through
an froup we were both in. Later, I ran into the Wandering Minstrels via
a web search for some piece of poetry, and was pleasantly surprised to
see his name there. As large as the Net is, it's still a small world.
</STRONG></P>
<!-- end 17 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.18"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 18 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Album of the month</H3>
<p><strong>From Martin Pagh Goodwin
</strong></p>
<p></strong></p>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] (This spawned from the Album of the Month thread:
<A HREF="http://linuxgazette.net/110/lg_laundrett.html#nottag.9"
>http://linuxgazette.net/110/lg_laundrett.html#nottag.9</A>)
</blockquote></font>
<P><STRONG>
It all boils down to whether (or is that wheather (or wedder)) your
amplifier will do the DAC for you.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Got it right first time: whether
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
I was wondering if the second was a tip of the hat to our Editor Gal.
</blockQuote>
<blockQuote>
I couldn't figure out the third. I didn't see how you could change
"Jim Dennis" to "wedder", and I can't think of anybody named Ed on staff.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
It's all about the music, dude. It <em> obviously </em> (since we're going to go
off the bugf*ck end of the guessing spectrum) refers to the 15th century
ballad "Captain Wedderburn" - capably redone by Great Big Sea.
</blockQuote>
<blockquote><pre>A nobleman's fair daughter
Came down a narrow lane
Met with Captain Wedderburn
Keeper of the game.
"Now my young, fair miss
If it wasn't for the law,
Then you and I in a bed might lie,
Roll-me-over-next-to-the-wall,
Roll-me-over-next-to-the-wall."
</pre></blockquote>
<blockQuote>
(If you've never heard it, it's a standard "do these N*3 tasks and
you'll get (paid|laid|rewarded)" stories. But it's a pretty tune, and
well told.)
</blockQuote>
<!-- end 18 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.19"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 19 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>New Disease</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] From Bob Eastey, via Sluggo
</blockquote></font>
<blockQuote>
The Center for Disease Control has issued a warning about a new virulent strain of a sexually transmitted disease.
</blockQuote>
<blockQuote>
This disease is contracted through dangerous and high risk behavior. The disease is called Gonorrhea Lectim (pronounced "gonna re-elect him").
</blockQuote>
<blockQuote>
Many victims have contracted it after having been screwed for the past 4 years, in spite of having taken measures to protect themselves from this especially virulent disease.
</blockQuote>
<blockQuote>
Cognitive sequelae of individuals infected with Gonorrhea Lectim include, but are not limited to:
</blockQuote>
<blockQuote><BLOCKQuote>
Antisocial personality disorder traits; delusions of grandeur with a distinct messianic flavor; chronic mangling of the English language; extreme cognitive dissonance; inability to incorporate new information; pronounced xenophobia; inability to accept responsibility for actions; exceptional cowardice masked by acts of misplaced bravado; uncontrolled facial smirking; ignorance of geography and history; tendencies toward creating evangelical theocracies; and a strong propensity for categorical, all-or nothing behavior.
</BLOCKQuote></blockQuote>
<blockQuote>
The disease is sweeping Washington. Naturalists and epidemiologists are amazed and baffled that this malignant disease originated only a few years ago in a Texas Bush.
</blockQuote>
<!-- end 19 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.20"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 20 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>News today</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
From the "what will those yanks do next" department...
</STRONG></P>
<P><STRONG>
<A HREF="http://seattletimes.nwsource.com/html/education/2002104208_utahguns30.html"
>http://seattletimes.nwsource.com/html/education/2002104208_utahguns30.html</A>
The Utah state legislature challenges a University of Utah ban against
concealed firearms on campus, saying the university does not have the
authority to restrict guns further than the state does. Opponents raise
the prospect of disgruntled students shooting professors or chilling free
speech. Proponents argue said professors (and women, and janitors) have
a right to protect themselves.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
That's pretty fucked up. Could've really improved my grades if I went
there, though...
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
This doesn't have anything to do with getting a degree in shooterology!
</STRONG></P>
<!-- end 20 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.21"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 21 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Question</H3>
<p><strong>From Peter Rinaldi
</strong></p>
<p></strong></p>
<font color="#006600"><blockquote><IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy] OK, so this turned out to be a legitimate question, but I couldn't
see how, really, and Heather had recently reminded me of the cardboard
boxes messages....
</blockquote>
<blockquote>(for the interested, JimD posted a message entitled "'chroot()' Jails or Cardboard Boxes"
(<A HREF="http://linuxgazette.net/issue36/tag/15.html"
>http://linuxgazette.net/issue36/tag/15.html</A>), which lead to "Thinking AROUND the Box?"
(<A HREF="http://linuxgazette.net/issue52/tag/22.html"
>http://linuxgazette.net/issue52/tag/22.html</A>) (Heather said that Jim actually
checked patent applications for that
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">, "More observations of a cardboard box"
(<A HREF="http://linuxgazette.net/issue65/tag/cardboard.html"
>http://linuxgazette.net/issue65/tag/cardboard.html</A>), "The Cardboard Box"
(<A HREF="http://linuxgazette.net/issue62/lg_mail62.html#mailbag/1"
>http://linuxgazette.net/issue62/lg_mail62.html#mailbag/1</A>), and "Cardboard Box Inventor"
(<A HREF="http://linuxgazette.net/109/lg_laundrette3.html#nottag2/3"
>http://linuxgazette.net/109/lg_laundrette3.html#nottag2/3</A>)
</blockquote>
<blockquote>We're not the only Linux-related group to have gotten questions like this:
Debian got frequent requests for the sheet music to "Dueling Banjos"
around the time I was trying to become a package developer, which
only ended when someone finally posted the sheet music.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockquote>
<blockquote>From the Debian Weekly Newsletter (<A HREF="http://www.debian.org/News/weekly/2003/37"
>http://www.debian.org/News/weekly/2003/37</A>):
</blockquote>
<blockquote>*No Dueling Banjos from Debian.* Some of the most bizarre mails (<A HREF="http://lists.debian.org/debian-devel-0009/msg00851.html"
>http://lists.debian.org/debian-devel-0009/msg00851.html</A>) on
debian-devel over the years (<A HREF="http://www.google.com/search?as_oq=sheet.music+dueling+banjos&amp;as_sitesearch=debian.org&amp;safe=images"
>http://www.google.com/search?as_oq=sheet.music+dueling+banjos&amp;as_sitesearch=debian.org&amp;safe=images</A>)
have been repeated (<A HREF="http://lists.debian.org/debian-devel-0306/msg01368.html"
>http://lists.debian.org/debian-devel-0306/msg01368.html</A>) requests (<A HREF="http://lists.debian.org/debian-devel-0309/msg00378.html"
>http://lists.debian.org/debian-devel-0309/msg00378.html</A>) by
various (<A HREF="http://lists.debian.org/debian-devel-0301/msg00027.html"
>http://lists.debian.org/debian-devel-0301/msg00027.html</A>)
people for the sheet music for dueling banjos. Several list subscribers have
(<A HREF="http://lists.debian.org/debian-devel-0009/msg00874.html"
>http://lists.debian.org/debian-devel-0009/msg00874.html</A>) been
eager (<A HREF="http://lists.debian.org/debian-devel-0009/msg00862.html"
>http://lists.debian.org/debian-devel-0009/msg00862.html</A>) to
assist (<A HREF="http://lists.debian.org/debian-curiosa-0308/msg00000.html"
>http://lists.debian.org/debian-curiosa-0308/msg00000.html</A>)
the posters in their search. Jim Penny called (<A HREF="http://lists.debian.org/debian-devel-0309/msg00382.html"
>http://lists.debian.org/debian-devel-0309/msg00382.html</A>) this
the Dueling Banjo Effect and explained that this has become a
self-perpetuating Google-flop. People use Google which points them to Debian
to get this sheet music, and the act of asking reinforces Google's notion that
Debian is a good place to get the music.
</blockquote>
<blockquote>(The first mention seems to be here: <A HREF="http://lists.debian.org/debian-devel/2000/07/msg00206.html"
>http://lists.debian.org/debian-devel/2000/07/msg00206.html</A>
see also the Debian Wiki: <A HREF="http://wiki.debian.net/index.cgi?DuelingBanjoes"
>http://wiki.debian.net/index.cgi?DuelingBanjoes</A>
which points to the message that started it all: <A HREF="http://lists.debian.org/debian-devel/1999/10/msg01031.html"
>http://lists.debian.org/debian-devel/1999/10/msg01031.html</A>
or the sheet music: <A HREF="http://www.muziekzetter.be/free/dueling_banjos.pdf"
>http://www.muziekzetter.be/free/dueling_banjos.pdf</A>)
</blockquote></font>
<P><STRONG>
I have a brain twister of a question for you.
</STRONG></P>
<P><STRONG>
I was reading your article on Bluetooth and Mobile phones.
</STRONG></P>
<P><STRONG>
Is it possible to write a program in the computer which captures the
digits being dialled from the (Nokia or whatever) mobile phone and
also preferably the ID of the phone and send that information to a
file on the computer in as close to real time as possible.
</STRONG></P>
<P><STRONG>
I would really appreciate your help. There may even be a dollar or so
in it for an enterprising person.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [William Park]
Such phone interception is illegal in many countries. But, doable,
since every intelligence agencies in every country are doing it.
</blockQuote>
<blockQuote>
Go away, spammer.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Yes and no, depending on what you mean.
</blockQuote>
<blockQuote>
If you mean that you want to grab this information from any phone within range, even if they are not yours, then no, it's not possible:
</blockQuote>
<blockQuote><BLOCKQuote>
"To use most of the services on a mobile (or most Bluetooth devices, as far as I can tell), the mobile and the computer must first be paired. Basically, this involves both having the same PIN code entered -- just imagine how horrible it would be if anyone could browse around the files on your phone, or use your computer as an Internet gateway."
</BLOCKQuote></blockQuote>
<blockQuote>
That would be a new horrible idea that had not occurred to me, but fortunately the creators of bluetooth were prepared for it.
</blockQuote>
<blockQuote>
If, on the other hand, you mean that you have a number of phones that you use for different purposes, then yes, it is possible to find out which phone numbers have been dialled, or from which numbers calls have been received, and to log them.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Kind Regards
</STRONG></P>
<P><STRONG>
Peter F. Rinaldi
Instant Response Marketing
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Now, with this statement, and the mention of 'Marketing' you have helped me to categorise your question better - we answer questions for a much larger audience than just the individual querent, which is why you have received so much help from me so far.
</blockQuote>
<blockQuote>
I would like to warn our readers that it is possible to be subjected to spam via bluetooth by simply walking within range of a device. There is a bit of a trend where people send strangers random messages in the form of empty vcards, where the name field is used to carry the message.
</blockQuote>
<blockQuote>
I doubt this is of any particular interest to our friend in marketing, however, as this kind of abuse was foreseen by the makers of mobile phones: file transfers of any nature are turned off by default, and must be authorised in any event. It is only when a phone is paired with a computer - i.e., that you have specifically told it to trust a computer - that you can have any degree of automation.
</blockQuote>
<blockQuote>
The range of bluetooth devices (10 metres) is too low for this to be a realistic marketing vehicle. The only real use I can imagine, if it were possible to snoop unauthorised on the numbers being dialled on a phone, is that of the jealous spouse who wishes to spy on their loved one.
</blockQuote>
<blockQuote>
Because we are the answer gang, I'll go beyond our 'Linux questions only' charter for this case.
</blockQuote>
<blockQuote>
If this is your intended use, you should first be aware that this kind of jealousy is usually self-fulfilling: it starts out without basis, but the accused eventually decides to commit the crime for which they are being punished. It is, quite honestly, difficult for me to imagine this kind of mindset, as there are so few who have as much to offer as I do, so my advice to a person with these inclinations would be to improve yourself and your outlook on life to the point where you, like me, have so few competitors that jealousy is simply unfathomable.
</blockQuote>
<blockQuote>
Don't just have a nice day, make yourself have one. It's best to start with a smile, I think.
</blockQuote>
<!-- end 21 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.22"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 22 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>12 Days of Christmas</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
<A HREF="http://www.pncbank.com/12days"
>http://www.pncbank.com/12days</A>
</blockQuote>
<!-- end 22 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.23"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 23 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>[Lgang] SPAM: read this - abOut the GrReenCard</H3>
<p><strong>From Mike Orr
</strong></p>
<p></strong></p>
<blockQuote>
Here's a strange spam.
</blockQuote>
<blockquote><pre>----- Forwarded message from Randi Simpson <agllzmjmnm@garlic.com> -----
Date: Wed, 08 Dec 2004 21:40:56 +0300
From: "Randi Simpson" <agllzmjmnm@garlic.com>
To: <jholden@oz.net>
Subject: read this - abOut the GrReenCard
US GrRrReen CarrRd Lottery 2o05
create a better future for your children!
Get it while it lasts: http://gladiator.gcthree.info
you are blacklisted
Jeffery Ybarra
Herder
Theralase Inc., Markham, Ontario, L3R 0E7, Canada
Phone: 244-221-1158
Mobile: 813-417-8154
Email: agllzmjmnm@garlic.com
This is a confirmation message
This software is a 46 hour trial product
NOTES:
The contents of this e-mail is for understanding and should not be blunder sophoclean
paramilitary eocene retrovision
Time: Wed, 08 Dec 2004 20:46:56 +0200
----- End forwarded message -----
</pre></blockquote>
<!-- end 23 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.24"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 24 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>The hot babe problem</H3>
<p><strong>From Sluggo
</strong></p>
<p></strong></p>
<P><STRONG>
<A HREF="http://lwn.net/Articles/113644"
>http://lwn.net/Articles/113644</A>
</STRONG></P>
<P><STRONG>
LWN:
"This Intent To Package posting was guaranteed to raise a bit of a
fuss. The program involved is hot-babe, a graphical CPU utilization
monitor. It works by displaying a typical Bruno Bellamy drawing of a
minimally-clad, maximally-endowed woman. As the CPU gets busier
("hotter"), the woman undresses to compensate. Your editor, whose
journalistic ethics required that he investigate this utility, found it
to be an amusing addition to the desktop - for about five minutes, or
until the children walk in, whichever comes first."
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
"Your editor, whose journalistic ethics required that he investigate
this utility, [ ... ]"
</blockQuote>
<blockQuote>
Dang. I don't <EM>remember</EM> writing that, but since I said I'm required, I
guess I've got no choice...
</blockQuote>
<blockQuote>
[clickety-click]
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
I'm not sure if you're being facetious, but that was written by
Jon Corbett, LWN's editor.
</STRONG></P>
<P><STRONG>
The article is mainly about <A HREF="http://www.debian.org/">Debian</A>'s dilemma whether to package this
program.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Yes, Mike, I was being facetious. I don't know of anyone who could
<EM>seriously</EM> say that their ethics require them to examine pictures of
naked women. Aesthetics, certainly; lots of other reasons - including
some feverishly-invented ones in case of need - but not ethics.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Pathologists, gynaecologists, etc.?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Their work may require them to do so. Ethics, though?
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [John]
I think that was Corbet's idea as well - tongue planted firmly in cheek - but that's just my assumption.
</blockQuote>
<!-- end 24 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.25"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 25 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>NewsForge | Free (and open) holiday greeting cards</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
<A HREF="http://www.newsforge.com/article.pl?sid=04/12/08/2115219&from=rss"
>http://www.newsforge.com/article.pl?sid=04/12/08/2115219&from=rss</A>
</blockQuote>
<blockQuote>
Cute.
</blockQuote>
<!-- end 25 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.26"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 26 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>More Swedish Chef</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<div class="irc">
<table>
<tr><td id="r">Dec 18 13:09:28 <editorgal> </td><td>what's an opensource project do when the swedish chef doesn't agree with its current progress?</td></tr>
<tr><td id="r">Dec 18 13:09:32 <editorgal> </td><td>fork fork fork</td></tr>
<tr><td id="r">Dec 18 13:09:33 <editorgal> </td><td>;P</td></tr>
<tr><td id="q">Dec 18 13:10:08 <jimregan> </td><td>Who's the Swedish chef's favourite singer?</td></tr>
<tr><td id="q">Dec 18 13:10:10 <jimregan> </td><td>Bjork Bjork Bjork</td></tr>
<tr><td id="q">Dec 18 13:10:45 <jimregan> </td><td>How was newborn Swedish Chef delivered?</td></tr>
<tr><td id="q">Dec 18 13:10:46 <jimregan> </td><td>Stork stork stork</td></tr>
<tr><td id="q">Dec 18 13:11:14 <jimregan> </td><td>What's the Swedish Chef's favourite food?</td></tr>
<tr><td id="q">Dec 18 13:11:15 <jimregan> </td><td>Pork pork pork</td></tr>
<tr><td id="r">Dec 18 13:11:42 <editorgal> </td><td>and if he's tired of swedish meatballs, he has for dinner...</td></tr>
<tr><td id="r">Dec 18 13:11:48 <editorgal> </td><td>pork pork pork</td></tr>
<tr><td id="q">Dec 18 13:12:05 <jimregan> </td><td>If he built a boat, what would he use?</td></tr>
<tr><td id="q">Dec 18 13:12:06 <jimregan> </td><td>Cork cork cork</td></tr>
<tr><td id="r" colspan="2">Dec 18 13:12:10 * editorgal likes mine</td></tr>
<tr><td id="q" colspan="2">Dec 18 13:12:31 * jimregan wishes he had googled</td></tr>
<tr><td id="q">Dec 18 13:12:43 <jimregan> </td><td>There must be many of them about the place</td></tr>
<tr><td id="r">Dec 18 13:12:53 <editorgal> </td><td>oh no his machine's unhappy - it's horked horked horked</td></tr>
<tr><td id="q">Dec 18 13:13:04 <jimregan> </td><td>fghgfs</td></tr>
<tr><td id="q">Dec 18 13:13:14 <jimregan> </td><td>Translation: "Groan"</td></tr>
<tr><td id="r" colspan="2">Dec 18 13:13:28 * editorgal chuckles wickedly
</td></tr>
<tr><td id="r">Dec 18 13:13:37 <editorgal> </td><td>pass another gingerbeer then :)</td></tr>
<tr><td id="q" colspan="2">Dec 18 13:13:55 * jimregan passes another ginger beer from behind the bar
</td></tr>
<tr><td id="r">Dec 18 13:14:01 <editorgal> </td><td>and you know his fave text adventure game</td></tr>
<tr><td id="r">Dec 18 13:14:04 <editorgal> </td><td>zork zork zork</td></tr>
<tr><td id="r" colspan="2">Dec 18 13:14:18 * editorgal glugs a nice tangy one
</td></tr>
<tr><td id="q">Dec 18 13:14:24 <jimregan> </td><td>Favourite place in Britain?</td></tr>
<tr><td id="q">Dec 18 13:14:24 <jimregan> </td><td>York York York</td></tr>
<tr><td id="q">Dec 18 13:15:31 <jimregan> </td><td>Least favourite insult?</td></tr>
<tr><td id="q">Dec 18 13:15:32 <jimregan> </td><td>dork dork dork</td></tr>
<tr><td id="r">Dec 18 13:17:33 <editorgal> </td><td>opens his jars with a torque torque torque</td></tr>
<tr><td id="r">Dec 18 13:18:22 <editorgal> </td><td>goes on vacation, visits rork rork rork</td></tr>
<tr><td id="r">Dec 18 13:18:45 <editorgal> </td><td>...and per george carlin, travels *in* the plane, not on it.</td></tr>
<tr><td id="r">Dec 18 13:21:00 <editorgal> </td><td>and he warned of goblins crying "ork ork ork!"</td></tr>
<tr><td id="r">Dec 18 13:26:08 <editorgal> </td><td>the chef doesn't scuba, he goes snork snork snork.</td></tr>
</table>
</div>
<!-- end 26 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.27"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 27 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Since we've been discussing alcohol...</H3>
<p><strong>From Ben Okopnik
</strong></p>
<p></strong></p>
<blockQuote>
Here's one Mike will appreciate. As for anyone here who has "been there
and done that", don't bother telling us; we'll just nod in
commiseration^Wamusement.
</blockQuote>
<blockQuote>
<A HREF="http://pubpages.unh.edu/~ducharme/pages/indestructible.html"
>http://pubpages.unh.edu/~ducharme/pages/indestructible.html</A>
</blockQuote>
<!-- end 27 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.28"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 28 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>MERRY XMAS</H3>
<p><strong>From paul power
</strong></p>
<p></strong></p>
<blockQuote>
Hello everybody just wanted to wish everybody happy xmas and wish ye the best for 2005.
</blockQuote>
<blockQuote>
p.s.
FOR ANYONE WHO WONDERED WHERE THIS TRADITION STARTED - TRUE STORY SANTA TOLD ME SO
</blockQuote>
<blockQuote>
One particular Christmas a long time ago, Santa was getting ready for his
annual trip, but there were problems everywhere. Four of his elves got sick, and the trainee elves did not produce the toys as fast as the regular ones, so Santa was beginning to feel the pressure of being behind schedule. Then, Mrs. Claus told him that her Mum was coming to visit.This stressed Santa even more. Then when he went to harness the reindeer, he found three of them were about to give birth and two had jumped the fence and were out heaven knows where.
</blockQuote>
<blockQuote>
Then when he began to load the sleigh one of the boards cracked and the
toy bag fell to the ground and scattered the toys everywhere. So, frustrated Santa went back into the house for a cup of coffee and a shot of whiskey. When he went to the cupboard, he discovered that someone had drank all of his liquor and there was nothing left to drink. In his frustration, he accidentally dropped the coffee pot and it broke into a thousand pieces. Santa went to get the broom and found that the mice had eaten the straw from which it was made.
</blockQuote>
<blockQuote>
Just then the doorbell rang and Santa cussed his way to the door. He opened the door and there was a little angel with a great big Christmas tree. The angel said cheerfully, "Merry Christmas Santa. Isn't it just a wonderful day? I have a beautiful tree for you. Where would you like me to stick it?"
</blockQuote>
<blockQuote>
Thus began the tradition of the little angel on top of the Christmas tree.
</blockQuote>
<!-- end 28 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.29"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 29 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Userfriendly Christmas cartoons</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
Userfriendly is carrying a Christmas theme this week:
</blockQuote>
<blockQuote><BLOCKQuote>
<A HREF="http://www.userfriendly.org/cartoons/archives/04dec/uf007425.gif"
>http://www.userfriendly.org/cartoons/archives/04dec/uf007425.gif</A>
<A HREF="http://www.userfriendly.org/cartoons/archives/04dec/uf007426.gif"
>http://www.userfriendly.org/cartoons/archives/04dec/uf007426.gif</A>
<A HREF="http://www.userfriendly.org/cartoons/archives/04dec/uf007427.gif"
>http://www.userfriendly.org/cartoons/archives/04dec/uf007427.gif</A>
<A HREF="http://www.userfriendly.org/cartoons/archives/04dec/uf007428.gif"
>http://www.userfriendly.org/cartoons/archives/04dec/uf007428.gif</A>
<A HREF="http://www.userfriendly.org/cartoons/archives/04dec/uf007429.gif"
>http://www.userfriendly.org/cartoons/archives/04dec/uf007429.gif</A>
<A HREF="http://www.userfriendly.org/cartoons/archives/04dec/xuf007430.gif"
>http://www.userfriendly.org/cartoons/archives/04dec/xuf007430.gif</A>
</BLOCKQuote></blockQuote>
<blockQuote>
While you're at it, have a look at the Userfriendly multilingual
Christmas tree:
<A HREF="http://www.userfriendly.org/illiad/UF_CT2004.png"
>http://www.userfriendly.org/illiad/UF_CT2004.png</A>
</blockQuote>
<!-- end 29 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.30"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 30 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Bicycles & Linux</H3>
<p><strong>From Heather
</strong></p>
<p></strong></p>
<div class="irc">
<table>
<tr><td colspan="2">15:46 -!- Santa [~Santa@82.195.105.72] has joined #hants
</td></tr>
<tr><td colspan="2">15:46 -!- Santa [~Santa@82.195.105.72] has left #hants []
</td></tr>
<tr><td id="q">15:46 < [T]hunder> </td><td>oh well...no presents for us this year :(</td></tr>
<tr><td id="r">15:47 <@editorgal> </td><td>haha</td></tr>
<tr><td id="r">15:47 <@editorgal> </td><td>"techies. thinkgeek will do. next chimney"</td></tr>
<tr><td id="q">15:47 < [T]hunder> </td><td>lol</td></tr>
<tr><td id="q">15:48 < [T]hunder> </td><td>but I wanted a new bicycle this year...with Linux on it so I don't crash</td></tr>
<tr><td id="other">15:49 <@blueGremlin> </td><td>lol!</td></tr>
<tr><td id="r" colspan="2">15:50 * editorgal should have thought of that when I was learning to bicycle
</td></tr>
<tr><td id="r">15:51 <@editorgal> </td><td>hm, linux didn't exist back then. come to think windoze didn't either..</td></tr>
<tr><td id="q">15:51 < [T]hunder> </td><td>me too...I would have never forgotten the concept of braking when I saw that bush coming my way...:(</td></tr>
<tr><td colspan="2">15:52 * blueGremlin imagines [T]hunder on a bike, stationary in the middle of a road with a bush coming towards him
</td></tr>
<tr><td id="r">15:52 <@editorgal> </td><td>I saw bush coming my way, best I could do was vote against..</td></tr>
<tr><td id="q">15:52 < [T]hunder> </td><td>ha ha ha</td></tr>
<tr><td id="q">15:53 < [T]hunder> </td><td>hmm...I think i'd have voted against that bush coming my way...but I was too young</td></tr>
<tr><td id="r">15:57 <@editorgal> </td><td>heard of several cars attacked by drunk lampposts</td></tr>
<tr><td id="q">16:03 < [T]hunder> </td><td>...that's quite a technological breakthrough...finally some pay-back for all those ppl who like to drink and drive. GO LAMPPOSTS</td></tr>
<tr><td id="other">16:04 <@blueGremlin> </td><td>lol</td></tr>
<tr><td id="other">16:04 <@blueGremlin> </td><td>I see +c doesn't stop people using bold</td></tr>
<tr><td id="r">16:24 <@editorgal> </td><td>[T]hunder: can I steal your line about the bicycle for the LG laundrette?</td></tr>
<tr><td id="q">16:25 < [T]hunder> </td><td>Go ahead...it's all GPL'd</td></tr>
</table>
</div>
<!-- end 30 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.31"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 31 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Chumpbot</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
I'm thinking of using Chumpbot (<A HREF="http://usefulinc.com/chump"
>http://usefulinc.com/chump</A>) on TAG's IRC hangout
(because I'm too lazy to go sifting through the logs every month
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
Here's a sample file (I'll be generating HTML from it, obviously, but there's nothing
in this that really merits inclusion for any purpose other than to serve as an
example).
</blockQuote>
<blockQuote>
(Oh, wait. There's "The Night Before Christmas, Hemingway style": <A HREF="http://newyorker.com/archive/content/?031222fr_archive01"
>http://newyorker.com/archive/content/?031222fr_archive01</A>)
</blockQuote>
<p align="center">See attached <tt><a href="misc/nottag/2004-12-22.xml.txt">2004-12-22.xml.txt</a></tt></p>
<blockQuote>
OK... I tried it out, but I don't think it won too many fans.
</blockQuote>
<p align="center">See attached <tt><a href="misc/nottag/tagbot.html">tagbot.html</a></tt></p>
<!-- end 31 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.32"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 32 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>RICO applied to spammers</H3>
<p><strong>From Benjamin A. Okopnik
</strong></p>
<p></strong></p>
<blockQuote>
Interesting turn here. Given that US law is based on precedent, I wonder
where this will take us...
</blockQuote>
<blockquote><pre>----- Forwarded message from RISKS List Owner <risko@csl.sri.com> -----
Date: Mon, 20 Dec 2004 11:47:08 -0700
From: "NewsScan" <newsscan@newsscan.com>
Subject: Judge slams spammers with $1-billion judgment
A federal judge in Iowa has awarded a small ISP more than $1 billion in
damages in what's believed to be the largest judgment ever against
spammers. The case was brought by Robert Kramer, whose company provides
e-mail service to about 5,000 customers, and who filed suit after his
inbound mail servers were jammed with as many as 10 million spam-mails a day
in 2000. Citing federal racketeering laws (RICO) and the Iowa Ongoing
Criminal Conduct Act, U.S. District Judge Charles R. Wolle ordered AMP
Dollar Savings of Mesa, Ariz., to pay $720 million; Cash Link Systems of
Miami, Fla., $360 million; and TEI Marketing Group, also of Florida,
$140,000. "It's definitely a victory for all of us that open up our e-mail
and find lewd and malicious and fraudulent e-mail in our boxes every day,"
said Kramer, who is unlikely to ever collect on the judgments. [AP/*Wall
Street Journal*, 20 Dec 2004; NewsScan Daily, 20 Dec 2004]
http://online.wsj.com/article/0,,SB110349923676804327,00.html (sub req'd)
----- End forwarded message -----
</pre></blockquote>
<!-- end 32 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.33"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 33 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Toys of yesteryear</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
<A HREF="http://tv.cream.org/extras/toys/index.html"
>http://tv.cream.org/extras/toys/index.html</A>
</blockQuote>
<blockQuote>
Hmm... Among the list, I remember I, or one of my siblings, had:
Transformers, Buckaroo, Guess Who?, Walkie Talkies, Connect 4,
Tomytronic 3D (I had Space Attack, my brother Joe had Racers),
Viewmaster, Kerplunk, Vertibird, Downfall, Tonka trucks (everybody had
those, didn't they?), A la carte Kitchen (that was my sister Angela, not
me
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">, Stretch Armstrong, Mr. Frosty, Operation, Game and Watch (Donkey
Kong!), Spirograph, Screwball Scramble, Subbuteo, "A computer" (my uncle
had bought me a Spectrum just before he died, but someone nicked it) and
"A bike".
</blockQuote>
<blockQuote>
I am a little annoyed that He-Man and Thundercats toys didn't make the
list though.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<!-- end 33 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.34"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 34 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Not here</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockquote><pre>--- You are now known as jimregan_almost_here
<editorgal> 3lol
* editorgal passes jimmy some almost eggnog
<editorgal> and that was the last cup too
<okopnik> Hey, jimregan_almost_here! Are you still almost here, or are you gone?
<okopnik> Hmph. I guess you're jimregan_mostly_gone....
[jimregan_on_his_way_to_the_pub exceeded the nick limit]
--- You are now known as jimregan_hungover_again
</pre></blockquote>
<blockQuote>
(More proof, as if any were needed, that friends don't let friends drink and
IRC).
</blockQuote>
<!-- end 34 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.35"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 35 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Christmas messages</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<div class="irc">
<table>
<tr><td id="q"><editorgal></td><td> Merry Xmas :D :D :D</td></tr>
<tr><td id="r"><jimregan></td><td> Many happy returns</td></tr>
<tr><td id="r"><jimregan></td><td> Heh</td></tr>
<tr><td id="r"><jimregan></td><td> My phone has a "Send to Many" feature, so I tapped out a Merry Christmas message, and am sending it to everyone :)</td></tr>
<tr><td id="q"><editorgal></td><td> hehe</td></tr>
<tr><td id="r"><jimregan></td><td> And now I'm being inundated with messages :)</td></tr>
<tr><td id="q"><editorgal></td><td> c/~ xmas bells are ring...ing :D</td></tr>
<tr><td id="r"><jimregan></td><td> Heh</td></tr>
<tr><td id="r"><jimregan></td><td> "Likewise and dont abuse the spirits having a Happy New Year"
- my friend Martin</td></tr>
<tr><td id="r"><jimregan></td><td> "Tink i'll just send a generic text 2 all of baahumbug now and have done with it 2! I'm sure I'll c ya over the wkend anyway 4 xmas pints and all!" - Lorraine</td></tr>
<tr><td id="q"><editorgal></td><td> *grin*</td></tr>
<tr><td id="r"><jimregan></td><td> She's the only one who saw through my little scheme.</td></tr>
<tr><td id="r"><jimregan></td><td> Heh. SMS spam.</td></tr>
</table>
</div>
<!-- end 35 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.36"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 36 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>More Christmas messages</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<div class="irc">
<table>
<tr><td id="q"><jimregan> </td><td>Heh. Marina's given me a nickname: "Senor Tequila"</td></tr>
<tr><td id="r"><editorgal> </td><td>haha</td></tr>
<tr><td id="q"><jimregan> </td><td>I sent her a slightly different message: last night while I was still sentient she got a message "Ooh! Somebody loves me", so I got her number and sent her a message saying "Someone else loves you too"</td></tr>
<tr><td id="r"><editorgal> </td><td>awwwww</td></tr>
<tr><td id="q"><jimregan> </td><td>So the message had a someone loves you in it, and she sent back "someone loves you too"</td></tr>
<tr><td id="q"><jimregan> </td><td>"Aw. I feel all warm and fuzzy inside"</td></tr>
<tr><td id="q"><jimregan> </td><td>"That'd be the Christmas spirit. I'm full of it"</td></tr>
<tr><td id="q"><jimregan> </td><td>"Yeah, that and every other spirit they'd sell you"</td></tr>
<tr><td id="r"><editorgal> </td><td>lol</td></tr>
<tr><td id="q"><jimregan> </td><td>Then my sister told me to give out to her for being drunk "Santa will be bringing you coal"</td></tr>
<tr><td id="q"><jimregan> </td><td>That's when she called me Senor Tequila.</td></tr>
<tr><td id="r"><editorgal> </td><td>I imagine a contest where they have parents write how their kid was the worst - without being hauled away to jail or child protective services - to win their heating bills covered for the winter.</td></tr>
<tr><td id="q"><jimregan> </td><td>heh</td></tr>
<tr><td id="r"><editorgal> </td><td>it's that rider that'd make the tales interesting</td></tr>
<tr><td id="q"><jimregan> </td><td>Heh. The exchange continues: "'Twas the night before Christmas and all through the house not a creature was stirring, except for Marina, who was getting plastered"</td></tr>
<tr><td id="q"><jimregan> </td><td>"No, I'm not stirring. I'm lying down 'cos I can't get up"</td></tr>
<tr><td id="r"><editorgal> </td><td>shaken not stirred?</td></tr>
<tr><td id="r"><editorgal> </td><td>some quote about not being really drunk unless you need to cling to the floor to hang on to the spinning planet</td></tr>
<tr><td id="q"><jimregan> </td><td>Actually, my friend Trev had his balance centres damaged two years ago, and went through that while sober</td></tr>
<tr><td id="r"><editorgal> </td><td>by which token I've never been drunk.</td></tr>
<tr><td id="r"><editorgal> </td><td>:(</td></tr>
<tr><td id="q"><jimregan> </td><td>"So you're getting a massive hangover for Christmas?"</td></tr>
<tr><td id="r"><editorgal> </td><td>did they heal, or is he on therapy or something now?</td></tr>
<tr><td id="q"><jimregan> </td><td>Oh, he's well healed.</td></tr>
<tr><td id="q"><jimregan> </td><td>He managed to pin it on the noise levels at work, so now ear protectors are mandatory in certain areas.</td></tr>
<tr><td id="q"><jimregan> </td><td>Not in mine, though they probably should be.</td></tr>
<tr><td id="r"><editorgal> </td><td>well at least something good came of it :/</td></tr>
<tr><td id="q"><jimregan> </td><td>I've noticed a drastic reduction in hearing range a few mornings</td></tr>
<tr><td id="q"><jimregan> </td><td>We were comparing our safety policies :)</td></tr>
<tr><td id="r"><editorgal> </td><td>I doubt anyone stops you from wearing extra earplugs</td></tr>
<tr><td id="q"><jimregan> </td><td>We reckon that between the two of us, we're responsible for every safety policy in the past few years</td></tr>
<tr><td id="r"><editorgal> </td><td>anyways it sounds like a just awful feeling :(</td></tr>
<tr><td id="q"><jimregan> </td><td>Heh. Marina's reply: "It's what I've wanted all year! I must be on Santa's nice list!"</td></tr>
</table>
</div>
<!-- end 36 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.37"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 37 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Clamscan finds HTML phishing scams...</H3>
<p><strong>From Brian Bilbrey
</strong></p>
<p></strong></p>
<P><STRONG>
So that's probably not news. What amused me was this:
</STRONG></P>
<pre><strong>vimes:/tmp/quar# clamscan laundrette-108.txt
laundrette-108.txt: HTML.Phishing.Bank-1 FOUND
</strong></pre>
<P><STRONG>
I <EM>expected</EM> to find some virii around, as I keep a few for testing
purposes. But this startled me. Grin.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Not my fault! Someone else sent the spam, honest!
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Happy Days of Holly, y'all.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Nollaig Shona duit.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Sluggo]
Please, don't call me Shona.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
OK... Beannachtai na Nollag duit.
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Given that you replied to the list rather than just me, don't you mean
Nollaig Shona Daoibh? Either way, Nollaig Mhaith Chugat.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Dang, caught. I couldn't remember whether it was 'daoibh' or 'dhaoibh' (which is silly, because it's the same for 'duit' vs. 'dhuit').
</blockQuote>
<blockQuote>
Sláinte agus beannachtaí dhaoibh go léir gach lá den bliain
<IMG SRC="../gx/dennis/smily.gif" ALT=":)"
height="24" width="20" align="middle">
</blockQuote>
<blockQuote>
Hmmm. Being of black Irish descent doesn't help me when the phrasing
gets complex and Google's not nearly as much help this time. Um...:
</blockQuote>
<blockQuote><BLOCKQuote>
"Greetings and blessings to you (plural) until (account/graphic/desc
mmm?) (something) year (vintage).
</BLOCKQuote></blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
"Good health and blessings to you all, each day of the year."
</blockQuote>
<blockQuote>
I think where you're getting 'greetings' is that the Irish for goodbye is 'slán' (actually, 'slán leat': may you be healthy).
</blockQuote>
<blockQuote>
'Beannachtaí' literally means 'blessings', but in common usage it's usually taken to mean 'be well'. (A Latin loan word, fact fans).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Mmmm, I'd want to suggest something about a new year, except that it
appears that new year would be either "an bhliain úr" or "an athbhliain".
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
'Áth' is a word I can't translate off the top of my head. It means 'superior' or 'higher'. Town is 'baile', city is 'baile átha'. ('Baile' is also a Latin loan word, I think. It might not look it at first glance, because Irish has no direct 'v' sound, but the accusative form 'an bhaile' sounds too close to 'villa' to be a coincidence).
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
But the implication that as a standalone word, "year" has the undertone
of vintage I find least surprising. Grin. Altavista's Babelfish doesn't
do Gaelic, I'd bet good sheckles that Arthur Dent's does, though. I
mean, it translates Vogon poetry, doesn't it?
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Heh. It wouldn't have helped out at the last Christmas party I was at. An old guy (with no teeth) decided to tell me a story, and I had to watch him closely to have any idea of what he was saying.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Best of an extended Saturnalia to all here,
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Jimmy]
Erm... allow me to respond with 'Many happy returns'. Works well in all situations, I think.
</blockQuote>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Ben]
Especially the day after New Year's, when you go trooping back to the
store with the embarassing tie you got from Aunt Emily...
</blockQuote>
<blockQuote>
Happy holidays - Sol Invictus, Xmas, Hanukkah, Beginning of The
Fellowship's Quest, Weihnachtstag, or whatever your favorite flavor of
celebration happens to be - to everyone. Best wishes, and may the coming
year bring you health, joy, and love in plenty.
</blockQuote>
<P><STRONG>
<IMG SRC="../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Thanks, Ben. And to you and everyone.
</STRONG></P>
<blockQuote>
<IMG SRC="../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
> [Heather]
Merrrrrrrrrrrrrry Sir Isaac Newton's birthday, in honor of which xsnow falls downward
<IMG SRC="../gx/dennis/smily.gif" ALT=":D"
height="24" width="20" align="middle">
</blockQuote>
<!-- end 37 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.38"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 38 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Spam jokes</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
O'Leary showed up at Mass one Sunday and the priest almost fell down
when he saw him. O'Leary had never been seen in church in his life.
After Mass, the priest caught O'Leary and said "O'Leary, I am so glad
you decided to come to Mass, what made you come?" O'Leary said, "I got
to be honest with you Father, a while back, I misplaced my hat and I
really, really love that hat. I know that Shaunassy had one just like
mine and I knew that Shaunassy came to church every Sunday. I also knew
that Shaunassy had to take off his hat during Mass, and I figured he
would leave it in the back of church. So, I was going to leave after
Communion and steal Shaunassy's hat." The priest said, "Well, O'Leary, I
notice that you didn't steal Shaunassy's hat. What changed your mind?"
O'Leary said "Well, after I heard your sermon on the 10 commandments, I
decided that I didn't need to steal Shaunassy's hat." The priest gave
O'Leary a big smile and said "After I talked about Thou Shalt Not Steal,
you decided you would rather do without your hat than burn in Hell,
right?" O'Leary shook his head and said "No, Father, after you talked
about Thou Shalt Not Commit Adultery, I remembered where I left my
hat!"
</blockQuote>
<blockQuote>
Three Lutheran ministers are having dinner at a restaurant when the
Archangel Gabrial approaches and points to one of them. "I HAVE A GIFT
FOR YOU," the angel says. "BUT YOU MUST CHOOSE: INFINITE WISDOM OR A
MILLION DOLLARS?" Being amongst Lutheran ministers, the man chooses
wisdom, and Gabrial dissapears in a puff. "So?" one of the ministers
asks with awe in his voice, "what do you know now that you didn't know
before?" He answers: "I should have taken the money."
</blockQuote>
<blockQuote>
A man, while playing on the front nine of a complicated golf course,
became confused as to where he was on the course. Looking around, he saw
a lady playing ahead of him. He walked up to her, explained his
confusion and asked her if she knew what hole he was playing. "I'm on
the 7th hole," she replied, "and you are a hole behind me. So you must
be on the 6th hole." He thanked her and went back to his golf. On the
back nine, the same thing happened and he approached her again with the
same request. "I'm on number 14, and you're still a hole behind, so you
must be on the 13th hole." Once again he thanked her and returned to his
play. He finished his round and went to the clubhouse where he saw the
same lady sitting at the end of the bar. He asked the bartender if he
knew the lady. The bartender said that she was a sales lady and played
the course often. He approached her and said, "Let me buy you a drink in
appreciation for your help. I understand that you're in the sales
profession. I'm in sales also. What do you sell?" "I'll tell you, but
you're going to laugh," she replied. "No, I won't." "Well, if you must
know," she answered, "I work for Tampax." With that, he laughed so hard
he almost fell off the bar stool. "See," she said. "I knew you'd laugh!"
"That's not what I'm laughing at," he replied, "I'm a salesman for
Preparation H, so I'm still a hole behind you."
</blockQuote>
<!-- end 38 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.39"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 39 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Christmas links</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
From <A HREF="http://www.slashdot.org/">Slashdot</A> (<A HREF="http://slashdot.org/article.pl?sid=04/12/24/1847259&tid=105"
>http://slashdot.org/article.pl?sid=04/12/24/1847259&tid=105</A>)
</blockQuote>
<blockQuote>
Norad Santa tracker: <A HREF="http://www.noradsanta.org"
>http://www.noradsanta.org</A>
</blockQuote>
<blockQuote>
The Physics of Santa: <A HREF="http://www.physorg.com/news2487.html"
>http://www.physorg.com/news2487.html</A>
</blockQuote>
<!-- end 39 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.40"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 40 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Free Beer</H3>
<p><strong>From Martin Pagh Goodwin
</strong></p>
<p></strong></p>
<blockQuote>
Hi TAG'sters
</blockQuote>
<blockQuote>
I guess as an extension to the theme regarding our favorite drinks, this
danish initiative for an open source beer could be interesting - free as in
free beer?
</blockQuote>
<blockQuote>
<A HREF="http://www.voresoel.dk"
>http://www.voresoel.dk</A>
</blockQuote>
<blockQuote>
I have yet to taste it, I would think it was sold out at the release event.
</blockQuote>
<!-- end 40 -->
<!-- .~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~.~~. -->
<A NAME="nottag.41"><HR WIDTH="75%" ALIGN="center"></A>
<!-- begin 41 -->
<H3 align="left"><img src="../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Python conferences in the US and Europe</H3>
<p><strong>From Jimmy O'Regan
</strong></p>
<p></strong></p>
<blockQuote>
(I only noticed this during mail processing, and really should have
razzed Sluggo earlier for this, but hey! I'll just send the link to
TAG when LG comes out)
</blockQuote>
<blockquote><pre>Sluggo wrote:
> [Sending to the Seattle Python group and the Linux Gazette Answer Gang.
> Replies may be published in Linux Gazette (linuxgazette.com).
^^^^
</pre></blockquote>
<blockQuote>
I can't say anything. You know your mistake. I'll just set up the stocks,
shall I?
</blockQuote>
<!-- end 41 -->
<P> <hr> </p>
<div id="articlefooter">
<H5 align="center">This page edited and maintained by the "Editors" (if you can call this editing)
of <I>Linux Gazette</I>
<br><a href="http://linuxgazette.net/copying.html"
>Copyright ©</a> its authors, 2005
<BR>Published in issue 110 of <I>Linux Gazette</I> January 2005</H5>
<H6 ALIGN="center">HTML script maintained by
<A HREF="mailto:star@starshine.org">Heather Stern</a> of
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A>
<br>(and beaten beyond recognition by Jimmy)
</H6>
</div>
<!-- end: articlecontent -->
</p>
<!-- *** BEGIN author bio *** -->
<!-- *** END author bio *** -->
<div id="articlefooter">
<p>
Published in Issue 110 of Linux Gazette, January 2005
</p>
</div>
</div>
<div id="navigation">
<a href="../index.html">Home</a>
<a href="../faq/index.html">FAQ</a>
<a href="../lg_index.html">Site Map</a>
<a href="../mirrors.html">Mirrors</a>
<a href="../mirrors.html">Translations</a>
<a href="../search.html">Search</a>
<a href="../archives.html">Archives</a>
<a href="../authors/index.html">Authors</a>
<a href="../contact.html">Contact Us</a>
</div>
<div id="breadcrumbs">
<a href="../index.html">Home</a> >
<a href="index.html">January 2005 (#110)</a> >
TWDT
</div>
<img src="../gx/2003/sit3-shine.7-2.gif" id="tux" alt="Tux"/>
<br />
</body>
</html>
|