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
|
[Dillo-dev]dillo-0.6.6 success
From: Bjoern Weber <foxbow@we...> - 2002-05-31 07:39
Heyas,
and again an information that nobody really needs =)
dillo-0.6.6 compiled instantly on my QNX6.1 host. I'm
looking to see if I can create a PPC version as well and
wonder if anyone would be interested in a .qpk that
installs dillo together with all needed libs...
Ah, one issue remains, configure thinks that QNX
needs the -pthread flag, that's not the case. The compiler
complains about an unknown option but everything runs
fine.
Wish me luck on my NetBSD/Sparc =)
Bjoern
Re: [Dillo-dev]GTK+-2.0 ?
From: Ross J. Reedstrom <reedstrm@ri...> - 2002-05-31 01:31
On Thu, May 30, 2002 at 09:27:48PM +0100, Freya wrote:
> gtk 2.0 for a much more practical reason tho. It seems like there is a
> lot of great code and patches around based on the current code base and
> it would seem like it would be more sensible to apply all this code to
> the current codebase and get a new version out fairly quickly than to
> delay things for gtk2. This would also give a lot longer for gtk 2 to
> find it's way out there and for people to be able to see how it goes and
> learn from that. I assume that nobody is suggesting gtk2 for the next
> version anyway tho.
There's a standard answer to this sort of problem: branch the code. I
agree that gtk2.0 is probably the ay to go in the future (all the linux
ipaq developers have started having this conversation, as well) but it
will be some time. If someone wantsto start that work, I think it should
probably be in a fork or branch.
Ross
[Dillo-dev][PATCH] Font Faces
From: Livio Baldini Soares <livio@im...> - 2002-05-31 00:34
Hello Sebastian!
Sebastian Geerken writes:
> On Tue, Apr 30, 2002 at 05:49:26PM -0500, Chris Hawks wrote:
> > Just a question for a new (and very impressed) user...
> >
> >
> > Why is the font face code commented out in html.c (about line 1720). I
> > un-commented it and it seems to work correctly...
>
> I fear that was me who did this. I planned to add an "force_my_faces"
> option immediately to overide this, that should be done before
> uncommenting the code.
Ahhh, I think this is a very interesting option.
Sorry if I'm stepping on your toes Sebastian ;-), but here is a
patch which adds force_my_fonts option to dillorc:
http://www.ime.usp.br/~livio/dillo/patches/force_my_font_pref.diff
Personally I leave force_my_fonts=NO, to visualiaze the original's
HTML font intention, but to Dillo consistent with what it is today,
the default option is YES. (This means you'll no difference unless you
explicitly change your "dillorc").
Any comments?
best regards!
--
Livio <livio@im...>
[Dillo-dev]Greyscale .jpg's
From: Freya <Freya@he...> - 2002-05-30 20:55
Something I've been wondering for some time is whether it would be
possible to render .jpg's with a greyscale palette? I was originally
wondering this because I thought my nasty old laptop was only capable of
16 colours, turns out it can do 256! This is very nice as I can really
see what photos look like! :) However, if you render a photo in 16
greyscales then you can still very much see the photo, really quite well
in fact, and if I could use 256 greyscales (which my laptop does yay!)
then photos would just look like black and white photos with no
artifacts as such at all! (If you've seen a jpg in 256 colours, you can
see that there is only 256 colours it still looks wrong. It looks good,
but just that little bit not there!)
My display is only mono anyway I should explain, or you might wonder! ;)
Anyway, just how impossible would this be?
love
Freya
[Dillo-dev]dillo-0.6.6 release
From: Jorge Arellano Cid <jcid@em...> - 2002-05-30 20:50
Surprise!
I just packed out dillo-0.6.6, it's there ready for download.
Tomorrow I'll make the announcements urbi et orbi.
Go get it!
Cheers
Jorge.-
PS: Ah, for those new to this list, please read the mailing list
etiquette before posting (unfortunately it's obvious some
haven't).
[Dillo-dev]GTK+2.0
From: Jorge Arellano Cid <jcid@em...> - 2002-05-30 20:50
Hi there,
Brief explanation before this becomes a debate:
GTK+2.0 is very important to dillo because of the reasons
explained in the "Project Notes". The hard part of the porting
task is the core, not on the UI. I fully agree with Andreas on
waiting until it is available in the big distros, and with
Sebastian on making it at once.
Cheers
Jorge.-
Re: [Dillo-dev]GTK+-2.0 ?
From: Daniel Fairhead <ralphtheraccoon@uk...> - 2002-05-30 20:47
> But why would you want to port it to gtk2?
> What advantage does that bring?
a) AntiAliased text. I know a lot of people will object, raise all the "argh blurry text" arguments
but I dont care. Besides, you can turn it off. I also know about gtkxft, but it was buggy when I tried
it, and many other people have said the same.
b) Characterset GTK fixes.
c) A working fast browser in GTK2 (and so GNOME2) which might possibly bring it to a larger viewage.
d) I dont know, but I think GTK2 is easy to port (if not crossplatform directly) to other display systems
(such as Wind*ws, OSX) and also to the framebuffer system, which could be useful for an embedded
enviroment which may not have an X server. I dont know if dillo already does this though.
e) Finding bugs in (non GTK) code which didn't get noticed due to GTK being friendlier than it perhaps
should
f) The developpers who port it get some experience at porting GTK apps, and writing GTK2 code.
g) For those who have this itch, it is scratched.
h) To prove it can be done.
i) Fun (for those who enjoy such things).
Theres a few reasons.
MadProf
Re: [Dillo-dev]GTK+-2.0 ?
From: Freya <Freya@ga...> - 2002-05-30 20:41
On Thu, 30 May 2002 18:22:13 +0200 (MET DST)
Lawrence Mayer dsg <Lawrence.Mayer@ds...> wrote:
> On Thu, 30 May 2002, Freya wrote:
>
> > But why would you want to port it to gtk2?
> > What advantage does that bring?
>
> According to http://developer.gnome.org/dotplan/schedule/
> Gnome 2.0 Desktop Final (which uses GTK+-2.0) is scheduled for release
> on June 21.
>
> How many Linux distros released after June 21 will keep obsolete,
> unsupported GTK+-1.2 around? And for how long?
No idea, but it must be said that my debian testing doesn't even have
the new dillo yet and that's been out ages now! My guess is gtk 1.2 will
be around for ages too, I think my distro still includes libc5?
> So if Dillo doesn't port over to GTK+-2.0, how will it survive?
Well that answers the first of my two questions, but to be honest I was
more wondering about the second question, I kind of added the first
question without thinking about it because I thought there was something
that people really wanted that was in gtk 2, and they were excited about
it! :) Maybe a silly assumption on my part. Anyway there surely is an
advantage to gtk2, I mean this isn't microsoft world where the advantage
is all for microsoft IYSWIM ;)
love
Freya
Re: [Dillo-dev]GTK+-2.0 ?
From: Freya <Freya@he...> - 2002-05-30 20:40
> > >
> > > Lawrence.Mayer@ds... writes:
> > > > If Dillo needs GTK+-1.2, are there any plans to make a GTK+-2.0
> > > > version? If so, any idea when it might become available?
>
>
> > Availibility on distributions is indeed a problem, since this
> > affects how easily dillo can be installed.
>
>
> Just one thought on that one : dillo is popular on low end machines.
> If I would have to go through a major pain to upgrade gtk just
> to get dillo running I would think twice. Now, I don't know how
> much more resource hungry gtk2 compared to gtk1.2 is. But either
> way, an upgrade on a low end machine may be painful.
This would affect me of course running in 8mb! lol!
I think I could upgrade fairly easily to gtk 2 as soon as it made it's
way to debian testing, although I suspect that will be a long time from
now going on past things. The resource hungryness is obviously a big
issue tho, although I heard some rumblings that people found gtk2 wasn't
that bad but none of these people were working with low end machines.
I think it would be kind of crazy for the next release of dillo to be
gtk 2.0 for a much more practical reason tho. It seems like there is a
lot of great code and patches around based on the current code base and
it would seem like it would be more sensible to apply all this code to
the current codebase and get a new version out fairly quickly than to
delay things for gtk2. This would also give a lot longer for gtk 2 to
find it's way out there and for people to be able to see how it goes and
learn from that. I assume that nobody is suggesting gtk2 for the next
version anyway tho.
Quite curious about it and still kind of mystified as to what the whole
gtk 2 thing is all about! :)
love
Freya
[Dillo-dev]Having trouble compiling dillo...
From: Freya <Freya@he...> - 2002-05-30 20:20
Attachments: config.log
...I should point out that I'm sure this is because I don't have a clue
what I'm doing! But Perhaps someone with some more experience can help
me here!
I think the problem I am having is that either I need to download the
source or header files or something for working with gtk (anyone suggest
the debian packages I need) or that some pointers or symbolic links or
something need to be set up so that configure and make know where to
find everything. I have attached my config.log to give and idea of what
is going on. It seems to think that I won't be needing .jpg support!
lol!
I've tried doing a make as well but that just fails completely.
Also if I do a make install, will this overwrite my existing dillo?
I'd rather just install a debian package yet but as far as I know it's
still the old version in testing and I want to know if I can compile
things as I need to compile something else and that isn't playing at
all!
Can you run an old and new dillo side by side?
Lots of questions! :)
love
Freya
Re: [Dillo-dev]GTK+-2.0 ?
From: Pekka Lampila <medar@ka...> - 2002-05-30 16:41
Hi.
On Thu, 30 May 2002 10:42:44 -0400
Andreas Schweitzer <andy@ph...> wrote:
> Just one thought on that one : dillo is popular on low end machines.
> If I would have to go through a major pain to upgrade gtk just
> to get dillo running I would think twice. Now, I don't know how
> much more resource hungry gtk2 compared to gtk1.2 is. But either
> way, an upgrade on a low end machine may be painful.
I don't know how much gtk based software there is for low end machines,
but most of gtk software has been or are currently being ported to 2.0.
So we may soon come to point where the question is whether to keep
gtk1.2 around just for Dillo...
Don't have any facts about gtk2.0's resource hungryness, but just
because it has bigger version number doesn't mean it's worse in that
respect. I quess it can be even faster than gtk1.2 in many ways.
> Also, I think it hurts a project to always use the latest
> cool, on-the-edge libraries out there because hardly any
> distro has the latest, on-the-edge versions included. When
> I see a project, think it's cool, and start reading in the
> requirements that I need lib-o-so-cool lib-o-so-new I start
> thinking if it is really worth it.
gtk1.3 (the development branch) was cool, new, on-the-edge library, but
2.0 is stable successor for 1.2, fixing many bugs and adding some needed
features. (Characterset handling being perhaps the most important for
Dillo.)
> Of course, dillo is the coolest thing ever ;-) and theoretically
> only for developers (although there are probably far more end users
> than anticipated at this point), therefore, you can expect more flexibility
> from its audience.
Agreed :)
--
Pekka Lampila *
medar@ka... * If pro is the opposite of con,
http://kirjasto.org/medar * what is the opposite of progress?
Re: [Dillo-dev]GTK+-2.0 ?
From: Lawrence Mayer dsg <Lawrence.Mayer@ds...> - 2002-05-30 16:26
On Thu, 30 May 2002, Freya wrote:
> But why would you want to port it to gtk2?
> What advantage does that bring?
According to http://developer.gnome.org/dotplan/schedule/
Gnome 2.0 Desktop Final (which uses GTK+-2.0) is scheduled for release on
June 21.
How many Linux distros released after June 21 will keep obsolete,
unsupported GTK+-1.2 around? And for how long?
So if Dillo doesn't port over to GTK+-2.0, how will it survive?
Friendly Greetings,
Lawrence
Re: [Dillo-dev]GTK+-2.0 ?
From: Andreas Schweitzer <andy@ph...> - 2002-05-30 14:42
Hi
On Wed, May 29, 2002 at 04:50:56PM +0200, Sebastian Geerken wrote:
> On Thu, May 23, 2002 at 08:27:59AM -0300, Livio Baldini Soares wrote:
> > Hello Lawrence!
> >
> > Lawrence.Mayer@ds... writes:
> > > If Dillo needs GTK+-1.2, are there any plans to make a GTK+-2.0 version? If
> > > so, any idea when it might become available?
> Availibility on distributions is indeed a problem, since this affects
> how easily dillo can be installed.
Just one thought on that one : dillo is popular on low end machines.
If I would have to go through a major pain to upgrade gtk just
to get dillo running I would think twice. Now, I don't know how
much more resource hungry gtk2 compared to gtk1.2 is. But either
way, an upgrade on a low end machine may be painful.
Also, I think it hurts a project to always use the latest
cool, on-the-edge libraries out there because hardly any
distro has the latest, on-the-edge versions included. When
I see a project, think it's cool, and start reading in the
requirements that I need lib-o-so-cool lib-o-so-new I start
thinking if it is really worth it.
Of course, dillo is the coolest thing ever ;-) and theoretically
only for developers (although there are probably far more end users
than anticipated at this point), therefore, you can expect more flexibility
from its audience.
Just my 2 cents.
Cheers,
Andreas
--
Department of Physics & Astronomy and Center for Simulational Physics
University of Georgia !!! NEW !!! : Phone ++1 (706) 583 8227
Athens, GA 30602-2451 Fax ++1 (706) 542 2492
USA http://dilbert.physast.uga.edu/~andy/
Re: [Dillo-dev]GTK+-2.0 ?
From: Freya <Freya@he...> - 2002-05-30 12:44
But why would you want to port it to gtk2?
What advantage does that bring?
love
Freya
On Wed, 29 May 2002 23:49:16 +0200 (MET DST)
Lawrence Mayer dsg <Lawrence.Mayer@ds...> wrote:
> Hi Sebastian!
>
> On Wed, 29 May 2002, Sebastian Geerken wrote:
>
> > I read the porting guidelines (somewhere at gtk.org)
>
> The GNOME 2.0 porting guide
> http://developer.gnome.org/dotplan/porting/
> "has some more detailed discussion of porting from GTK+-1.2 to -2.0.
> See the sections on GLib and GTK+."
>
> Here are some additional resources:
>
> The GTK+-2 Reference Manual is at
> http://developer.gnome.org/doc/API/2.0/gtk/index.html
>
> Of particular note is the section "Changes from 1.2 to 2.0"
> http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
>
> The mailing list
> http://mail.gnome.org/archives/gtk-app-devel-list
> "is oriented toward developing applications with GTK+. This has been a
> lower traffic list which is good for asking simple GTK+ questions."
>
> The original release annoncement for GTK+-2.0.0 is at
> http://mail.gnome.org/archives/gtk-app-devel-list/2002-March/msg00091.html
>
> The release annoncement for GTK+-2.0.3 (current stable version) is at
> http://mail.gnome.org/archives/gtk-app-devel-list/2002-May/msg00276.html
>
> Also worthy of note: http://www.gtk.org/download/
> "Many applications still require GTK+-1.2, the last stable version of
> GTK+. You can have the runtime and development environments for both
> GTK+-2.0 and GTK+-1.2 installed simultaneously on your computer."
>
>
> > Availibility on distributions is indeed a problem, since this
> > affects how easily dillo can be installed. Perhaps others may give
> > information on when Gtk+ 2 may be available.
>
> GTK+-2.0 and its libraries GLib-2.0, Pango, and ATK are all available
> as:
>
> Source from ftp://ftp.gtk.org/pub/gtk/v2.0/
>
> RedHat-7.2 binaries from
> ftp://ftp.gtk.org/pub/gtk/v2.0/binary/RedHat-7.2/
>
> FreeBSD binaries from
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/x11-toolkits/
> or from many mirror sites.
>
>
> I think it's exciting that we have serious discussion regarding
> porting Dillo to GTK+-2.0. I hope the above resources prove useful.
>
> Friendly Greetings,
> Lawrence
>
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
Re: [Dillo-dev]The PNG that would not load
From: Gombok Arthur <gombok@so...> - 2002-05-30 10:18
"Justin (Gus) Hurwitz" wrote:
> OK- I fixed my problems, mainly by (unfortunately) doing
> Bad Things(TM). I got the ord this afternoon that it's very
> unlikely that we can get the server fixed. so I went ahead
> and got things working by breaking dillo.
What a big bullshit (sorry, really). Convince the server-admin to validate the generated html contect (either w3c or wdg).
(Spending so much time implementing buhgs)
> And again, great job with the browser!
I agree
--Gombok
Re: [Dillo-dev]The PNG that would not load
From: Justin (Gus) Hurwitz <ghurwitz@dy...> - 2002-05-29 22:15
OK- I fixed my problems, mainly by (unfortunately) doing Bad Things(TM). I
got the ord this afternoon that it's very unlikely that we can get the
server fixed. so I went ahead and got things working by breaking dillo.
Description follows for edification, not incorporation. I'm working on an
embedded app here, so I only need the browser to work for this web-based
application- breaking other stuff is unfortunately the way I must go.
1. I modified Html_parse_entity() to kludge around missing semi-colons:
eoe = (toksize) ? memchr(token, ';', toksize) : strchr(token, ';');
if (eoe) {
if (token[1] == '#') {
/* Numeric token */
base = (token[2] == 'x' || token[2] == 'X') ? 16 : 10;
isocode = strtol(token + 2 + (base==16), NULL, base);
return (isocode > 0 && isocode <= 255) ? isocode : -1;
} else {
/* Search for named entity */
name = g_strndup(token + 1, eoe - token - 1);
i = Html_entity_search(name);
g_free(name);
return (i != -1) ? Entities[i].isocode : -1;
}
+ } else {
+ /* This shouldn't be here- we're dealing with non-compliant HTML */
+ /* But, we'll search anyhow */
+ int len=1;
+ gchar *tokpos=token+2;
+
+ while(isalnum(tokpos[0])) {
+ tokpos++; len++;
+ }
+ name = g_strndup(token + 1, len);
+ i = Html_entity_search(name);
+ g_free(name);
+ return (i != -1) ? Entities[i].isocode : -1;
}
return -1;
}
This gets   working.
2. Getting that odd image to load (the one that lies about its content
type and is generated by php) was another matter entirely- I started by
modifying Cache_parse_header() to always detect the content type from the
data:
io->IOVec.iov_base = (char *)entry->Data + entry->ValidSize;
io->IOVec.iov_len = entry->BuffSize;
io->Flags &= ~IOFlag_FreeIOVec;
}
/* Get Content-Type */
- if ( (Type = Cache_parse_field(header, "Content-Type")) == NULL ) {
- DEBUG_HTTP_MSG("Server didn't send Content-Type in header.\n");
- Type = Cache_get_type_from_data(entry->Data, entry->ValidSize);
- }
- entry->Type = Type;
-
+ Type = Cache_get_type_from_data(entry->Data, entry->ValidSize);
+ entry->Type = Type;
+ if(strstr(Type, "image")) entry->Flags &= ~(CA_Redirect);
}
/*
* Consume bytes until the whole header is got (up to a "\r\n\r\n" sequence)
* (Also strip '\r' chars from header)
*/
The astute reader will notice rather quickly that I'm also forcing the
CA_Redirect bit low. It turns out that the php that generates the image
and sends the wrong content type also sends the image as a 302, which is a
redirect code (redirects to /logout.php). The entire site uses a lot of
302's to load pages, but ignoring it for images seems to work. (Andreas-
that's why just forcing the content-type autodetect didn't work).
Those two sets of changes make everything work as I need it to. I report
them mainly so others can see what need be done to support this broken
code (in the event that others, too, must support similar broken code),
and to let those who helped know.
And again, great job with the browser!
--Gus
--
Justin (Gus) Hurwitz
ghurwitz@dy...
Re: [Dillo-dev]GTK+-2.0 ?
From: Lawrence Mayer dsg <Lawrence.Mayer@ds...> - 2002-05-29 21:53
Hi Sebastian!
On Wed, 29 May 2002, Sebastian Geerken wrote:
> I read the porting guidelines (somewhere at gtk.org)
The GNOME 2.0 porting guide
http://developer.gnome.org/dotplan/porting/
"has some more detailed discussion of porting from GTK+-1.2 to -2.0. See
the sections on GLib and GTK+."
Here are some additional resources:
The GTK+-2 Reference Manual is at
http://developer.gnome.org/doc/API/2.0/gtk/index.html
Of particular note is the section "Changes from 1.2 to 2.0"
http://developer.gnome.org/doc/API/2.0/gtk/gtk-changes-2-0.html
The mailing list
http://mail.gnome.org/archives/gtk-app-devel-list
"is oriented toward developing applications with GTK+. This has been a
lower traffic list which is good for asking simple GTK+ questions."
The original release annoncement for GTK+-2.0.0 is at
http://mail.gnome.org/archives/gtk-app-devel-list/2002-March/msg00091.html
The release annoncement for GTK+-2.0.3 (current stable version) is at
http://mail.gnome.org/archives/gtk-app-devel-list/2002-May/msg00276.html
Also worthy of note: http://www.gtk.org/download/
"Many applications still require GTK+-1.2, the last stable version of
GTK+. You can have the runtime and development environments for both
GTK+-2.0 and GTK+-1.2 installed simultaneously on your computer."
> Availibility on distributions is indeed a problem, since this affects
> how easily dillo can be installed. Perhaps others may give information
> on when Gtk+ 2 may be available.
GTK+-2.0 and its libraries GLib-2.0, Pango, and ATK are all available as:
Source from ftp://ftp.gtk.org/pub/gtk/v2.0/
RedHat-7.2 binaries from
ftp://ftp.gtk.org/pub/gtk/v2.0/binary/RedHat-7.2/
FreeBSD binaries from
ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/x11-toolkits/
or from many mirror sites.
I think it's exciting that we have serious discussion regarding porting
Dillo to GTK+-2.0. I hope the above resources prove useful.
Friendly Greetings,
Lawrence
Re: [Dillo-dev]The PNG that would not load
From: Paul Chamberlain <tif@ti...> - 2002-05-29 21:11
Justin (Gus) Hurwitz wrote:
> Your responses to the list definitely help, esp. pointing out that the
> server is sending a content type of text/html. I'm seeing if I can get
> that fixed.
There may be a way in the apache conf to say that this
one URL is always image/png.
> Or perhaps we should never believe the
> content type and always try to autodetect from the data (it is a fairly
> quick routine)?
This sounds like a discussion that might have taken place
right before outlook got the bug that allows many virii
to infect Windows boxen. "It says it's a wav so let's
go ahead and play it (wav's are safe)... Oh, look it's
not a wav afterall, it's an exe, let's magically do the
right thing and execute it."
--
Paul Chamberlain, tif@ti...
Re: [Dillo-dev]The PNG that would not load
From: Pekka Lampila <medar@ka...> - 2002-05-29 20:17
On Wed, 29 May 2002 11:08:35 -0500 (EST)
"Justin (Gus) Hurwitz" <ghurwitz@dy...> wrote:
>
> Of course, this won't help my situation, since the server is lying about
> the content type. Perhaps it makes sense to also run the auto-detect
> routine if loading the data fails? Or perhaps we should never believe the
> content type and always try to autodetect from the data (it is a fairly
> quick routine)?
That violates HTTP standard[1]. And of course it can make perfect sense
to have text document that starts with "<HTML>" or something similiar.
Local files are of course different matter. But I can't think many
situations where detection from file extension isn't enough. Why have
jpg files without jpg extension?
[1] RFC 2616 (HTTP 1.1):
Any HTTP/1.1 message containing an entity-body SHOULD include a
Content-Type header field defining the media type of that body. If
and only if the media type is not given by a Content-Type field, the
recipient MAY attempt to guess the media type via inspection of its
content and/or the name extension(s) of the URI used to identify the
resource. If the media type remains unknown, the recipient SHOULD
treat it as type "application/octet-stream".
--
Pekka Lampila *
medar@ka... * If pro is the opposite of con,
http://kirjasto.org/medar * what is the opposite of progress?
Re: [Dillo-dev]The PNG that would not load
From: Justin (Gus) Hurwitz <ghurwitz@dy...> - 2002-05-29 18:24
Your responses to the list definitely help, esp. pointing out that the
server is sending a content type of text/html. I'm seeing if I can get
that fixed.
But, I've come across another interesting aspect of this problem. I load
the image in netscape and save it as chasis.png. I then load it in dillo
and all is well. But, I then save it as chasis.php and try to load it. I
get text. And then, if I save it as chasis.gif I get nothing. Apparently
dillo gives priority to the filename extention in determining content
type? And when in doubt it assumes text/html (IO/file.c:250)? Why not hook
into the Cache_get_type_from_data() (or abstract it) and run that if/when
File_content_type() falls through.
Of course, this won't help my situation, since the server is lying about
the content type. Perhaps it makes sense to also run the auto-detect
routine if loading the data fails? Or perhaps we should never believe the
content type and always try to autodetect from the data (it is a fairly
quick routine)? I am philosophically against compensating for broken
servers on the client side, and so don't like these ideas. But, if
detecting the content type from the data can be made comparably as fast as
from the file extention or even the server's content-type field, then it
might make good sense.
--Gus
On Wed, 29 May 2002, Andreas Schweitzer wrote:
> Hi
>
> On Tue, May 28, 2002 at 05:20:56PM -0500, Justin (Gus) Hurwitz wrote:
> > On Wed, 29 May 2002, Nipo wrote:
> >
> > > Hurwitz Justin W. eut le bonnheur d'ecrire:
> > >
> > > The script which generates the image ( chassis.php ) does not issue any
> > > Content/type header. So dillo can not be sure data is image and that is
> > > only because Netscape is very tolerant that the image is displayed.
> > > Try to make netscape open the image url directly and you'll get raw data!
> >
> > But dillo does have a parse routine that tries to identify unknown data
> > types- and it looks like it should work just fine. But, when I try to load
> > the page, that routine is never encountered. If the image type can be
> > detected by dillo (and there already exists efficient support for the
> > detection) why doesn't/can't dillo do the detection?
>
> (I only posted my answers to the list, not to you - if you are
> subscribed this is not a problem :-) ... if not I briefly repeat )
> Because the server says the image is text/html and dillo trusts that.
> I plaid around with the routines.
>
> > I might be able to get minor (ie, very minor, like changing   to
> > $nbsp;) changes made on the server side. But I cannot think of a way to
> > simply fix this problem on the server side without trying to convince
> > another company to completely re-engineer their product :) If getting
>
> Well, if the software sends an image and claims this image is text/html
> then this is most certainly a bug. And a bug report should be filed with
> the software maker :-) ....
>
> Cheers,
> Andreas
>
> --
> Department of Physics & Astronomy and Center for Simulational Physics
> University of Georgia !!! NEW !!! : Phone ++1 (706) 583 8227
> Athens, GA 30602-2451 Fax ++1 (706) 542 2492
> USA http://dilbert.physast.uga.edu/~andy/
>
--
Justin (Gus) Hurwitz
Re: [Dillo-dev]Faces
From: Sebastian Geerken <sgeerken@st...> - 2002-05-29 15:02
On Tue, Apr 30, 2002 at 05:49:26PM -0500, Chris Hawks wrote:
> Just a question for a new (and very impressed) user...
>
>
> Why is the font face code commented out in html.c (about line 1720). I
> un-commented it and it seems to work correctly...
I fear that was me who did this. I planned to add an "force_my_faces"
option immediately to overide this, that should be done before
uncommenting the code.
Sebastian
Re: [Dillo-dev]GTK+-2.0 ?
From: Sebastian Geerken <sgeerken@st...> - 2002-05-29 14:51
On Thu, May 23, 2002 at 08:27:59AM -0300, Livio Baldini Soares wrote:
> Hello Lawrence!
>
> Lawrence.Mayer@ds... writes:
> > If Dillo needs GTK+-1.2, are there any plans to make a GTK+-2.0 version? If
> > so, any idea when it might become available?
>
> There have been a few individual tries to port Dillo do GTK+-2.0, as
> as far as I know, none of which have succeed completely. I think the
> main Dillo developers are not currently very motivated to do this
> port, at least while GTK+-2.0 isn't available on most mainstream
> stable distributions.
I haven't taken any look on Gtk+ 2 until now, mostly due to the lack
of time. I read the porting guidelines (somewhere at gtk.org), and
what I remember is that porting should be simple, problems may only
arise in the usage of GtkObject (which is now GObject, and a part of
glib), and text rendering (which is now done by Pango). Well, That's
both what the Dw module heavily depends on!
Availibility on distributions is indeed a problem, since this affects
how easily dillo can be installed. Perhaps others may give information
on when Gtk+ 2 may be available. (There is also the possibility of
keeping dillo for a while runnable with both versions, using ugly
#ifdef's, double test runs, new options for the configure script
etc. -- but I think the port should be done once, without transitional
time.)
Sebastian
Re: [Dillo-dev]The PNG that would not load
From: madis <madis@cy...> - 2002-05-29 09:53
On Tue, 28 May 2002, Justin (Gus) Hurwitz wrote:
> But dillo does have a parse routine that tries to identify unknown data
> types- and it looks like it should work just fine. But, when I try to load
> the page, that routine is never encountered. If the image type can be
> detected by dillo (and there already exists efficient support for the
> detection) why doesn't/can't dillo do the detection?
>
Dillo belives the content-type and does not know how to display text/html
images. The detection routine is invoked only when Content-Type header is
missing (Cache_get_type_from_data invoked from end of Cache_parse_header).
It is not very reliable also, because it works only, if this last read
from TCP socket, which delivered HTTP header end also delivered enough
HTTP body data for content type autodetection (because TCP stack tries to
concatenate short packets before sending, it is usually not a problem).
--
mzz
Re: [Dillo-dev]The PNG that would not load
From: Justin (Gus) Hurwitz <ghurwitz@dy...> - 2002-05-29 00:36
On Wed, 29 May 2002, Nipo wrote:
> Hurwitz Justin W. eut le bonnheur d'ecrire:
>
> >In Netscape there is a big PNG picture at the top-center of the page. It
> >is generated by chasis.php. Dillo does not display it. This makes me very
> >sad. More importantly, it prevents me from being able to "look inside"
> >the chasis (if you click on the image in Netscape, you'll see what I
> >mean- pretty cool, eh? ;)
>
> The script which generates the image ( chassis.php ) does not issue any
> Content/type header. So dillo can not be sure data is image and that is
> only because Netscape is very tolerant that the image is displayed.
> Try to make netscape open the image url directly and you'll get raw data!
But dillo does have a parse routine that tries to identify unknown data
types- and it looks like it should work just fine. But, when I try to load
the page, that routine is never encountered. If the image type can be
detected by dillo (and there already exists efficient support for the
detection) why doesn't/can't dillo do the detection?
I might be able to get minor (ie, very minor, like changing   to
$nbsp;) changes made on the server side. But I cannot think of a way to
simply fix this problem on the server side without trying to convince
another company to completely re-engineer their product :) If getting
dillo to play nice with the bullies (which I understand and agree with
being a not-the-right solution) is out of the question, can you think of
any workable, simple server side solution?
> >The second problem, which I'm sure is a common one, is that   tags
> >are displayed- which makes pages look a bit wrong :) But that's of minor
> >importance.
>
> That is also due to netscape (and many other browsers ) 's tolerance!
> There must be a semicolon [;] after the tag.
> Just like & < ... and all other &(...); tags
Indeed, you are quite right! I'll see if I can get that fixed on the
server side (fingers crossed on that, though I am doubtful).
Thanks!
--Gus
> --
>
> Nipo
>
Re: [Dillo-dev]The PNG that would not load
From: Andreas Schweitzer <andy@ph...> - 2002-05-28 23:52
On Wed, May 29, 2002 at 01:11:19AM +0200, Nipo wrote:
> Oops, I forgot the list..
>
> Hurwitz Justin W. eut le bonnheur d'ecrire:
>
> >In Netscape there is a big PNG picture at the top-center of the page. It
> >is generated by chasis.php. Dillo does not display it. This makes me very
> >sad. More importantly, it prevents me from being able to "look inside"
> >the chasis (if you click on the image in Netscape, you'll see what I
> >mean- pretty cool, eh? ;)
>
> The script which generates the image ( chassis.php ) does not issue any
> Content/type header.
Well, actually it does. But the wrong one ! (text/html)
I tried to force dillo to detect the mime type by itself.
Still nothing. However, I'd suggest to first fix the server/script
to send the correct mime type.
Cheers
Andreas
--
Department of Physics & Astronomy and Center for Simulational Physics
University of Georgia !!! NEW !!! : Phone ++1 (706) 583 8227
Athens, GA 30602-2451 Fax ++1 (706) 542 2492
USA http://dilbert.physast.uga.edu/~andy/
Re: [Dillo-dev]The PNG that would not load
From: Andreas Schweitzer <andy@ph...> - 2002-05-28 23:11
On Tue, May 28, 2002 at 03:47:59PM -0700, Eric Gaudet wrote:
> > -----Original Message-----
> > From: dillo-dev-admin@li...
> > [mailto:dillo-dev-admin@li...]On Behalf Of Hurwitz
> > Justin W.
> > Sent: Tuesday, May 28, 2002 3:30 PM
> > To: dillo-dev@li...
> > Subject: [Dillo-dev]The PNG that would not load
>
> I think it's because dillo doesn't support Image Buttons in forms yet (same
As far as I looked into it, it is not an image in a form. Making a tiny file
like
<html>
<body>
<img src=">
</body>
</html>
does not display the image in dillo either. It does work in netscape.
Saving the png in netscape and then displaying that very file in
dillo does work, however.
From this I'd conclude it must be in the communication between dillo
and the server. Note also, that dillo never actually finishes the
loading of the image (the image count is always missing one).
It could be that the server does not send the mime type and dillo
does still not recoginzie it (despite my fixes a few weeks back ;-) ...)
Netscape does report it as unknown MIME type ! I may look into this.
CHeers
Andreas
--
Department of Physics & Astronomy and Center for Simulational Physics
University of Georgia !!! NEW !!! : Phone ++1 (706) 583 8227
Athens, GA 30602-2451 Fax ++1 (706) 542 2492
USA http://dilbert.physast.uga.edu/~andy/
Re: [Dillo-dev]The PNG that would not load
From: Nipo <nipo@ss...> - 2002-05-28 23:07
Oops, I forgot the list..
Hurwitz Justin W. eut le bonnheur d'ecrire:
>In Netscape there is a big PNG picture at the top-center of the page. It
>is generated by chasis.php. Dillo does not display it. This makes me very
>sad. More importantly, it prevents me from being able to "look inside"
>the chasis (if you click on the image in Netscape, you'll see what I
>mean- pretty cool, eh? ;)
The script which generates the image ( chassis.php ) does not issue any
Content/type header. So dillo can not be sure data is image and that is
only because Netscape is very tolerant that the image is displayed.
Try to make netscape open the image url directly and you'll get raw data!
>The second problem, which I'm sure is a common one, is that   tags
>are displayed- which makes pages look a bit wrong :) But that's of minor
>importance.
That is also due to netscape (and many other browsers ) 's tolerance!
There must be a semicolon [;] after the tag.
Just like & < ... and all other &(...); tags
--
Nipo
RE: [Dillo-dev]The PNG that would not load
From: Eric Gaudet <ericg@ta...> - 2002-05-28 22:46
> -----Original Message-----
> From: dillo-dev-admin@li...
> [mailto:dillo-dev-admin@li...]On Behalf Of Hurwitz
> Justin W.
> Sent: Tuesday, May 28, 2002 3:30 PM
> To: dillo-dev@li...
> Subject: [Dillo-dev]The PNG that would not load
>
>
> First off, to those who make dillo possible- great work with
> it! I've been
> wonderfully impressed. It's a bloody shame more programers aren't as
> intentional with how they program as you all are. Your work
> should help to remind us all that programming is an art.
>
Don't forget Jorge's outstanding leadership qualities: I've been trying to
participate to many open source projects and abandoned most of them because
of the people being unreliable. It's really Jorge that makes Dillo that
successfull.
> Now, on to my problem. I'm working on an embedded tool to
> monitor our RLX
> based clusters (www.rlxtechnologies.com). RLX has a web based
> management/monitoring solution (Control Tower 2) that works
> great. I'm
> running dillo on an iPAQ as part of our monitoring tool. It
> works great.
> Bu there are two problems- one aesthetic, and one functional. The
> functional one it the more important:
>
> Load the following URL in both Netscape and dillo:
> http://rack1.rlxtechnologies.com/cm/chassview.php?ShowChassisI
> D=1&p=0|1|2
>
> In Netscape there is a big PNG picture at the top-center of
> the page. It
> is generated by chasis.php. Dillo does not display it. This
> makes me very
> sad. More importantly, it prevents me from being able to
> "look inside" the
> chasis (if you click on the image in Netscape, you'll see
> what I mean-
> pretty cool, eh? ;)
>
> I've begun looking into why this image does not display in dillo, and
> think I might be making some (very slow) progress. Due to
> time constraints
> (and possible ailment- I fear I will be spending the next few
> days sick in
> bed, sigh), I doubt I'll be able to properly fix this
> problem, if I can
> fix it at all. If anyone has ideas where to start, or what's
> wrong, I'd
> love to hear them- saving me a few dead-ends would be a great help. Of
> course, if anyone has an immediate patch, I'll gladly let
> them take the
> glory for fixing this problem, too :)
>
I think it's because dillo doesn't support Image Buttons in forms yet (same
problem in maps.yahoo.com). There is a bugtrack entry for that. If you don't
feel like implemnting this feature, you could use an image map (server side)
in your page instead.
> The second problem, which I'm sure is a common one, is that
>   tags are
> displayed- which makes pages look a bit wrong :) But that's of minor
> importance.
>
IMHO the correct syntax for entities is like this:
Dillo is actually right when displaying   if the semicolon is missing.
> Many thanks for any help offered.
>
> --Gus
>
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
[Dillo-dev]The PNG that would not load
From: Hurwitz Justin W. <hurwitz@la...> - 2002-05-28 22:29
First off, to those who make dillo possible- great work with it! I've been
wonderfully impressed. It's a bloody shame more programers aren't as
intentional with how they program as you all are. Your work should help to
remind us all that programming is an art.
Now, on to my problem. I'm working on an embedded tool to monitor our RLX
based clusters (www.rlxtechnologies.com). RLX has a web based
management/monitoring solution (Control Tower 2) that works great. I'm
running dillo on an iPAQ as part of our monitoring tool. It works great.
Bu there are two problems- one aesthetic, and one functional. The
functional one it the more important:
Load the following URL in both Netscape and dillo:
http://rack1.rlxtechnologies.com/cm/chassview.php?ShowChassisID=1&p=0|1|2
In Netscape there is a big PNG picture at the top-center of the page. It
is generated by chasis.php. Dillo does not display it. This makes me very
sad. More importantly, it prevents me from being able to "look inside" the
chasis (if you click on the image in Netscape, you'll see what I mean-
pretty cool, eh? ;)
I've begun looking into why this image does not display in dillo, and
think I might be making some (very slow) progress. Due to time constraints
(and possible ailment- I fear I will be spending the next few days sick in
bed, sigh), I doubt I'll be able to properly fix this problem, if I can
fix it at all. If anyone has ideas where to start, or what's wrong, I'd
love to hear them- saving me a few dead-ends would be a great help. Of
course, if anyone has an immediate patch, I'll gladly let them take the
glory for fixing this problem, too :)
The second problem, which I'm sure is a common one, is that   tags are
displayed- which makes pages look a bit wrong :) But that's of minor
importance.
Many thanks for any help offered.
--Gus
Re: [Dillo-dev]Fix for standard file locking in cookies.c
From: Johannes Hofmann <Johannes.Hofmann@gm...> - 2002-05-28 17:24
On Mon, May 27, 2002 at 05:08:27PM -0400, Jorge Arellano Cid wrote:
> Yes, it is already on CVS, so please test it (specially on non
> Linux platforms).
>
> - Build the latest CVS :)
> - Close every open dillo.
> - Start dillo (it should not disable cookies)
> - Start another dillo (NOT a new window), it should
> disable cookies.
> - Report success!
Success on FreeBSD 4.6-RC.
Regards,
Johannes
Re: Re: [Dillo-dev]new pref: auto-scaling images
From: Paul Chamberlain <tif@ti...> - 2002-05-28 16:04
Ross J. Reedstrom wrote:
> On Tue, May 28, 2002 at 07:55:52AM -0500, Paul Chamberlain wrote:
> > From: Jorge Arellano Cid <jcid@em...>
> > > The idea of having an image_factor in dillorc (as [well as]
> > > font_factor) seems also a good one.
> > How difficult would it be to make these run-time options?
> ... that's a small matter of user interface, not a design problem:
> if you change the prefs.font_factor value on a running image (with gdb,
> for example) and reload the page, everything 'just works'.
Excellent, that's exacty what I was after.
--
Paul Chamberlain, tif@ti...
Re: Re: [Dillo-dev]new pref: auto-scaling images
From: Ross J. Reedstrom <reedstrm@ri...> - 2002-05-28 15:14
On Tue, May 28, 2002 at 07:55:52AM -0500, Paul Chamberlain wrote:
> From: Jorge Arellano Cid <jcid@em...>
> > The idea of having an image_factor in dillorc (as [well as]
> > font_factor) seems also a good one.
>
> How difficult would it be to make these run-time options?
>
> I'll admit that it seems out of balance to have this feature
> when we lack other more basics, but I've come to like the
> scaling features in other browsers and wondered if it would
> be helpful to think about this now.
Depends on what you mean by 'run-time': font_factor (and the
image_factor I'm looking at implementing) are preferences, set in the
dillorc. Currently, there is no mechanism to alter them in a running
image, only by editting dillorc and restarting, but as far as I can
tell, that's a small matter of user interface, not a design problem:
if you change the prefs.font_factor value on a running image (with gdb,
for example) and reload the page, everything 'just works'.
Ross
Re: Re: [Dillo-dev]new pref: auto-scaling images
From: Paul Chamberlain <tif@ti...> - 2002-05-28 12:56
From: Jorge Arellano Cid <jcid@em...>
> The idea of having an image_factor in dillorc (as [well as]
> font_factor) seems also a good one.
How difficult would it be to make these run-time options?
I'll admit that it seems out of balance to have this feature
when we lack other more basics, but I've come to like the
scaling features in other browsers and wondered if it would
be helpful to think about this now.
--
Paul Chamberlain, tif@ti...
Re: [Dillo-dev]Little bugfix
From: Jorge Arellano Cid <jcid@em...> - 2002-05-28 01:36
Hi,
On Mon, 27 May 2002, Andreas Schweitzer wrote:
>
> Speaking of bugfixes : the OpenBSD folks have more cleanups in
>
> http://www.openbsd.org/cgi-bin/cvsweb/ports/www/dillo/patches/
>
> The files
> patch-src_IO_http_c
That was already fixed.
> patch-src_dns_c
I don't understand that patch...
> patch-src_dw_style_c
Was almost fully done.
At least there was a (gpointer) cast to change to GINT_TO_POINTER().
Done!
Greets
Jorge.-
Re: [Dillo-dev]new pref: auto-scaling images
From: Ross J. Reedstrom <reedstrm@ri...> - 2002-05-28 00:50
Attachments: percent-images.diff
On Thu, May 23, 2002 at 08:59:06AM -0300, Livio Baldini Soares wrote:
>
> > BTW, I noticed that percentage sizes on images does not seem to be
> > supported. HTML 4.01 certainly defines the width and height attributes
> > generically, saying that percentages are supported for images.
> >
> > http://www.w3.org/TR/html401/struct/objects.html#adef-width-IMG
>
> Hum, this I haven't noticed... if you like, please add support for
> this! :-)
>
Fixed this, at least, while tracing what's happening with image
sizing. Looks like a cut-n-paste-o: There was a stanza about width,
then one about height, except it was still testing the type of width,
rather than height. Patch attached. (What's the patch etiquette for
dillo, BTW? Small patches to the list, big ones behind a URL, or what?)
Ross
Re: [Dillo-dev]Little bugfix
From: Jorge Arellano Cid <jcid@em...> - 2002-05-27 21:57
Hi,
On Mon, 27 May 2002, Grigory Bakunov wrote:
> When i make a rpm for dillo i see little bug in Makefile.am (in doc directory)
> In short words - not all of docs refered in Makefile.am so
> 'make dist' doesn't work.
> Patch attached.
Done!
Cheers
Jorge.-
PS: Please test the latest CVS. 0.6.6 bug-fix release is very close!
Re: [Dillo-dev]Fix for standard file locking in cookies.c
From: Livio Baldini Soares <livio@im...> - 2002-05-27 21:30
Hi Jorge!
Jorge Arellano Cid writes:
>
> Hi there,
>
[...]
> Yes, it is already on CVS, so please test it (specially on non
> Linux platforms).
>
> How?
>
> - Build the latest CVS :)
> - Close every open dillo.
> - Start dillo (it should not disable cookies)
> - Start another dillo (NOT a new window), it should
> disable cookies.
> - Report success!
Success on:
- SunOS jaca 5.7 Generic_106541-04 sun4u sparc
(the previous CVS code did not work here)
- Linux pipoca 2.4.17-rmap12a #1 Mon Feb 4 11:01:06 BRST 2002 i686 unknown
best regards!
--
Livio <livio@im...>
Re: [Dillo-dev]Re: have you considered upgrading your SSL patch to 0.6.5?
From: Gombok Arthur <gombok@so...> - 2002-05-27 21:18
Pekka Lampila <medar@ka...> wrote:
> Gombok Arthur <gombok@so...> wrote:
> > Does anyone except Jonathan got this running?
>
> Works fine for me. Thanks Jonathan. :)
Me too. Thanks a lot.
> ~$ autoconf --version
> Autoconf version 2.13
> ~$ automake --version
> automake (GNU automake) 1.4-p4
Using autoconv 2.52 and automake 1.5
but needed to update openssl
> My system is i386, Debian unstable.
mine is a whole mess (and unstable too)
> Though I haven't heard from Jorge for a long time, and CVS has been
> very quiet. Does anybody know what's up?
Sorry no
> BTW. Has anyone consired making SSL patch using GNUTLS[1]. That would
> avoid all the grief with OpenSSL's licensing.
How about compiling openssl with no-rc5 and no-ideo?
Does that still allow https:hombanking (etc...)
BTW how can i check which ciphers are used?
> It may not (yet) have as long feature list as OpenSSL has, but I think
> it has all that Dillo needs. And of course, when more projects use
> GNUTLS it will gain more support and develop faster.
> [1] http://www.gnu.org/software/gnutls/
Isn't that the point to enable a switchable modular protocol (plugin)
interface (file: http: https: ftp: res: help: man: ...)
Maybe its possible to render man pages (with links like tkman) or build a simple and fast html-based help-system (using namazu for fulltext-searches and other tools for keyword lookup and predefined topic-pages)
The bad thing about patches is that they require a special base version
to patch against.
Greetings
Gombok
Re: [Dillo-dev]Fix for standard file locking in cookies.c
From: Jorge Arellano Cid <jcid@em...> - 2002-05-27 21:12
Hi there,
On Mon, 27 May 2002, Andreas Schweitzer wrote:
> Hi everybody,
> a tiny fix for cookies.c. The flock call is not POSIX compliant,
> but lockf is XPG4.2 compliant. Hence the patch.
> (My AIX box complaint when compiling the latest CVS version).
Uh!, well, file locks hold a long record of incompatibilities
and problems... After digging the man page, and Linux kernel docs
I only hope this one does better! ;-)
Yes, it is already on CVS, so please test it (specially on non
Linux platforms).
How?
- Build the latest CVS :)
- Close every open dillo.
- Start dillo (it should not disable cookies)
- Start another dillo (NOT a new window), it should
disable cookies.
- Report success!
That's all folks
Jorge.-
[Dillo-dev]Fix for standard file locking in cookies.c
From: Andreas Schweitzer <andy@ph...> - 2002-05-27 18:20
Attachments: cookies.diff
Hi everybody,
a tiny fix for cookies.c. The flock call is not POSIX compliant,
but lockf is XPG4.2 compliant. Hence the patch.
(My AIX box complaint when compiling the latest CVS version).
Cheers
Andreas
--
Department of Physics & Astronomy and Center for Simulational Physics
University of Georgia !!! NEW !!! : Phone ++1 (706) 583 8227
Athens, GA 30602-2451 Fax ++1 (706) 542 2492
USA http://dilbert.physast.uga.edu/~andy/
[Dillo-dev]Little bugfix
From: Grigory Bakunov <black@as...> - 2002-05-27 17:50
Attachments: dillo-0.6.5-makefile.patch
When i make a rpm for dillo i see little bug in Makefile.am (in doc directory)
In short words - not all of docs refered in Makefile.am so
'make dist' doesn't work.
Patch attached.
........................................................................
IRC: irc.openproject.net #asplinux Grigory Bakunov
EMAIL: black@as... ASPLinux Support Team
ICQ: 51369901 http://www.asplinux.ru
-----BEGIN GEEK CODE BLOCK-----
GCS/MU d-(--) s:- a- C+++>++$ UBLAVSX+++$ P+ L++++$ E++$ W++ N+>- o? K?
w-- O- M V-(--) PS+ PE+ !Y PGP+>++++ t+ 5++ X+++ R+++ tv+>-- b+++ ?DI D+
G++ e>++$ h- r++ y+ z++(+++)
------END GEEK CODE BLOCK------
[Dillo-dev]Another dillo localization patches
From: Grigory Bakunov <black@as...> - 2002-05-27 17:48
Hello all!
I only need to say what i make little page for my patch what
help to some users with nonlatin1 codepages
http://bobuk.ipost.ru/packages/dillo/index.html
Any comments and ideas wellcome.
And especialy about my terrible english. :)
Thanks guys. i love this browser and with perseverance wait while
Dillo can be compiled with GTK2.
........................................................................
IRC: irc.openproject.net #asplinux Grigory Bakunov
EMAIL: black@as... ASPLinux Support Team
ICQ: 51369901 http://www.asplinux.ru
-----BEGIN GEEK CODE BLOCK-----
GCS/MU d-(--) s:- a- C+++>++$ UBLAVSX+++$ P+ L++++$ E++$ W++ N+>- o? K?
w-- O- M V-(--) PS+ PE+ !Y PGP+>++++ t+ 5++ X+++ R+++ tv+>-- b+++ ?DI D+
G++ e>++$ h- r++ y+ z++(+++)
------END GEEK CODE BLOCK------
Re: [Dillo-dev]Re: have you considered upgrading your SSL patch to
From: Geoff Lane <zzassgl@tw...> - 2002-05-27 10:17
> I thought, that it would be nice to make ssl a dpi1 plugin which
> handles https: urls. This way extra bloat could be avoided from dillo (SSL
> is not a very small thing).
cURL does support SSL so it may be something worth investigating.
People paranoid about security will worry about the unencrypted data path
between the plugin and dillo. But there's nothing to stop that being
encrypted using some single key scheme (which after all is what SSL uses
once the initial key exchange is performed.)
--
/\ Geoff. Lane. /\ Manchester Computing /\ Manchester /\ M13 9PL /\ England /\
Journeys begin with a single step, and a decision to take it.
Re: [Dillo-dev]Re: have you considered upgrading your SSL patch to 0.6.5?
From: madis <madis.janson@ma...> - 2002-05-27 09:58
On Sat, 25 May 2002, Pekka Lampila wrote:
> BTW. Has anyone consired making SSL patch using GNUTLS[1]. That would
> avoid all the grief with OpenSSL's licensing.
>
> It may not (yet) have as long feature list as OpenSSL has, but I think
> it has all that Dillo needs. And of course, when more projects use
> GNUTLS it will gain more support and develop faster.
>
> [1] http://www.gnu.org/software/gnutls/
>
I thought, that it would be nice to make ssl a dpi1 plugin which
handles https: urls. This way extra bloat could be avoided from dillo (SSL
is not a very small thing).
--
mzz
Re: [Dillo-dev]Query about DNS Search
From: Ralph Slooten <ralph@de...> - 2002-05-26 20:13
Sorry for the typo in the Subject ;-)
On Sun, 26 May 2002, Ralph Slooten wrote:
> Hi there all
>
> It just occured to me, but it looks like when one types in a wrong URL,
> and presses enter, followed directly by the correct URL (also followed by
> enter), Dillo will first try look to the wrong site, before progressing to
> the second site given. Sometimes I have to shut down Dillo and restart it
> as this goes quicker.
>
> The first URL could be an existing site which does exist but is very slow
> to get a connection with, and the second something like freshmeat.net,
> which goes like lightning here.
>
> Is there some way to get Dillo to "drop" what it's busy with and continue
> with the latest request? Maybe an idea for future development? ... that is
> unless I'm mistaken ;-)
>
> Greetings
> Ralph
>
>
--
Homepage: http://tuxpower.f2g.net/
[Dillo-dev]Query about DNS Serach
From: Ralph Slooten <ralph@de...> - 2002-05-26 20:02
Hi there all
It just occured to me, but it looks like when one types in a wrong URL,
and presses enter, followed directly by the correct URL (also followed by
enter), Dillo will first try look to the wrong site, before progressing to
the second site given. Sometimes I have to shut down Dillo and restart it
as this goes quicker.
The first URL could be an existing site which does exist but is very slow
to get a connection with, and the second something like freshmeat.net,
which goes like lightning here.
Is there some way to get Dillo to "drop" what it's busy with and continue
with the latest request? Maybe an idea for future development? ... that is
unless I'm mistaken ;-)
Greetings
Ralph
--
Homepage: http://tuxpower.f2g.net/
[Dillo-dev] Segfault on image maps (bug 277)
From: Imran Hasnain <iah21@he...> - 2002-05-26 00:33
Anyone help me out? This bug appears to have surfaced again on my new CVS
build. URLs typed in are fine - as are Favourites. On mouseover dillo
displays
'http://dillo.so....net/?36848,-1073746304' etc as before so I assume
this is the same bug?
Running on Darwin 6.0, Xfree 4.2.0. Dillo 0.6.4 is fine, but both 0.6.5 and
the current CVS code don't work. :-(
Thanks,
Imran
_______________________________________________
Dillo-dev mailing list
Dillo-dev@li...
https://lists.so....net/lists/listinfo/dillo-dev
Re: [Dillo-dev]gethostbyname
From: Jorge Arellano Cid <jcid@em...> - 2002-05-25 20:15
Madis,
> I read dns.c and found, that gethostbyname is used with pthreads.
> Is it safe to do so (i thought that gethostbyname is not thread-safe due
> to static buffers usage)?
AFAIR (it was along time ago when I implemented it), the
information I had was that libc5 was not reentrant and that
glibc2 had no problems with MT; that's why the dns code has
define statements that either enable the libc5 version or glibc2.
Even more, it can be set to use a single server only.
The final scheme didn't show a single fault when stress-tested
with over a hundred of simultaneous requests on 4 channels.
Cheers
Jorge.-
Re: [Dillo-dev]splint / lint
From: Jorge Arellano Cid <jcid@em...> - 2002-05-25 20:15
Klaus,
> Would it be useful to make dillo "lint clean" ? To detect memory leaks and
> bogus pointers automatically.
Sure!
It's not a religious matter tough! ;)
If lint can point to some weak portions of code, and those are
fixed, great! If it points to some others that are OK, there's no
need to "fix" them.
Cheers
Jorge.-
Re: [Dillo-dev]new pref: auto-scaling images
From: Jorge Arellano Cid <jcid@em...> - 2002-05-25 20:14
Ross,
> [...]
> One feature I've seen in other small-screen browsers that is surprisingly
> effective in making sites fit is auto-scaling of images by 1:2. "Well,"
> he says to himself "here's my chance to contribute". So, I pulled
> the CVS feed, and rebuilt it, and played with it a little (oh,
> shiny! cookies!) and perused the code for where and how images are
> built. Hmm, I seem to be lost in a series of nested structs, many with
> members with names like 'width', 'height', 'ascent', and 'descent'. After
> poking around a bit, it seems to me that these structures get built,
> then filled in later via signals and callbacks.
>
> Any suggestions on where to dig, and any 'gotchas'? I'm thinking i'll
> probably need a new boolean in the Dwimage struct, halfsize, or some
> such, so I can scale all the various sizes properly.
If I were you, I'd start tweaking Html_tag_open_img to send
custom width and height values, and thus make the inner layers
think it was a size specified in the HTML page.
The idea of having an image_factor in dillorc (as font_factor)
seems also a good one.
The third step is to try to find the place where this "fix"
should go, with a view to make it fit well in the overall design
and make it a feature. At least, what I suggest here is easy to
develop!
> BTW, I noticed that percentage sizes on images does not seem to be
> supported. HTML 4.01 certainly defines the width and height attributes
> generically, saying that percentages are supported for images.
>
> http://www.w3.org/TR/html401/struct/objects.html#adef-width-IMG
Thanks for the tip, worth a bug track entry.
Cheers
Jorge.-
Re: [Dillo-dev]Re: have you considered upgrading your SSL patch to 0.6.5?
From: Pekka Lampila <medar@ka...> - 2002-05-25 14:41
On Sat, 25 May 2002 13:47:58 +0000 (GMT)
toor the halberdier <cndlizard@ha...> wrote:
> On Sat, 25 May 2002, Pekka Lampila wrote:
> > BTW. Has anyone consired making SSL patch using GNUTLS[1]. That would
> > avoid all the grief with OpenSSL's licensing.
> >
> > It may not (yet) have as long feature list as OpenSSL has, but I think
> > it has all that Dillo needs. And of course, when more projects use
> > GNUTLS it will gain more support and develop faster.
> >
> > [1] http://www.gnu.org/software/gnutls/
>
> ok i am a bit slow but what greif is there whith a BSD type licence ...
> forgive me for not being up on copyright law (it's just too dull) ;)
> thax
OpenSSL's license is BSD with an advertising clause. GPL doesn't allow
additional restrictions and that's what advertising clause is.
So if Dillo were to use OpenSSL it either needs to change license or add
explicit permission to link against OpenSSL. Plus any other libraries
Dillo links against must also be compatible with OpenSSL's license.
And of course IANAL. You should search debian-legal archives and google
for more information.
--
Pekka Lampila *
medar@ka... * If pro is the opposite of con,
http://kirjasto.org/medar * what is the opposite of progress?
Re: [Dillo-dev]Progress halted?
From: Melvin Hadasht <melvin.hadasht@fr...> - 2002-05-25 13:26
Hi,
on Thu, 23 May 2002 07:33:02 +0200 (CEST)
Ralph Slooten <ralph@de...> wrote:
> [...] but it appeard that the CVS from Dillo
> had not been updated from May 4. Does this mean that progress has stopped
> for the time being?
AFAIK, Jorge is working on the funding of Dillo. There's a link in Dillo's home
page. So Dillo development is not halted, only delayed a bit. It will continue.
Cheers
--
Melvin Hadasht
Re: [Dillo-dev]Re: have you considered upgrading your SSL patch to 0.6.5?
From: Pekka Lampila <medar@ka...> - 2002-05-25 13:05
On Sat, 25 May 2002 14:23:19 +0100 (Wild Europe Standard Time)
Gombok Arthur <gombok@so...> wrote:
> Does anyone except Jonathan got this running? automake needs depcomp
> (which is missing), configure complains about missing (too old and missing
> -run command), make breaks in IO on ar (no https.o missing)
> manually compiling says warning: implizit declaration of function: SSL_get_*fd
> ..
> After updating missing und depcomp by automake versions all went fine until
> linking (undefined reference to SSL_get_*fd in https.c)
Works fine for me. Thanks Jonathan. :)
~$ autoconf --version
Autoconf version 2.13
~$ automake --version
automake (GNU automake) 1.4-p4
My system is i386, Debian unstable.
> Does all these patches (expires,fzip,plugin...) find a way into the regular
> dillo versions?
Very propably, when they have been proven to be good quality and tested
enough.
Though I haven't heard from Jorge for a long time, and CVS has been very
quiet. Does anybody know what's up?
BTW. Has anyone consired making SSL patch using GNUTLS[1]. That would
avoid all the grief with OpenSSL's licensing.
It may not (yet) have as long feature list as OpenSSL has, but I think
it has all that Dillo needs. And of course, when more projects use
GNUTLS it will gain more support and develop faster.
[1] http://www.gnu.org/software/gnutls/
--
Pekka Lampila *
medar@ka... * If pro is the opposite of con,
http://kirjasto.org/medar * what is the opposite of progress?
[Dillo-dev]Re: have you considered upgrading your SSL patch to 0.6.5?
From: Gombok Arthur <gombok@so...> - 2002-05-25 12:27
>> when i tried it with 0.6.4 to do my online banking, i wasnt successful
>> because i needed cookies.
>I've posted the patch to
>http://members.verizon.net/~vze2mqqv/dillo-ssl.0.6.5.diff .
>$ patch -p1 <dillo-ssl.0.6.5.diff
>$ autoconf
>$ automake
>$ configure --enable-ssl
>$ make
>$ sudo make install
Does anyone except Jonathan got this running? automake needs depcomp
(which is missing), configure complains about missing (too old and missing
-run command), make breaks in IO on ar (no https.o missing)
manually compiling says warning: implizit declaration of function: SSL_get_*fd
..
After updating missing und depcomp by automake versions all went fine until
linking (undefined reference to SSL_get_*fd in https.c)
Does all these patches (expires,fzip,plugin...) find a way into the regular
dillo versions?
Greetings
-ga
Re: [Dillo-dev]experimental dillo patches
From: Ralph Slooten <ralph@de...> - 2002-05-25 12:20
Hi there Geoff,
Firstly I would like to say that I tried your patch last night (Ad-Block)
and it works great ;-) It's so much faster than going through a
banner-blocking proxy.
On Fri, 24 May 2002, Geoff Lane wrote:
>
> While working my way through the dillo sources trying to work out what is
> going on I've written some experimental code to see if I understand what I
> see. This has resulted in four patches: support for gzip'ed HTML, an advert
> buster, expires and pragma header support and an external generic plugin.
>
> This is ALL highly experimental code and you use it at your own risk.
Yeah, got it.. it was sure worth the test, and I do hope the developers of
Dillo will consider using your code, or a similiar concept in their code.
The other 2 patches I haven't gotten to yet, but just wanted to give a good
review on the one. It's not that straighforward though (yet) with the
"rules", but I managed to get it all working, and now I seem to have a much
cleaner page =)
> (Anyone else noticed that dillo is getting a lot of good reviews in the
> Linux news groups lately?)
I have read indeed a few articles on it, and seems all very positive. I
just haven't noticed any updates with the CVS in the last month or so. I
don't know if development has halted or whatever, but it was making great
progress.
Greetings
Ralph
--
Homepage: http://tuxpower.f2g.net/
[Dillo-dev]It works great on RH6.0!
From: Leandro Gil <leagil@ho...> - 2002-05-24 13:03
Attachments: Message as HTML
I wanted to thank you all for your help, and congratulate you on a =
job well done.
This browser is a little gem.
RedHat 6.0 allowed me to compile Dillo, no update was necesary.
I'll see if I can learn to use RPM well enough to make an .rpm =
binary out of my compilation, because I couldn't find an up to date one =
on the web.
=20
[Dillo-dev]experimental dillo patches
From: Geoff Lane <zzassgl@tw...> - 2002-05-24 12:58
While working my way through the dillo sources trying to work out what is
going on I've written some experimental code to see if I understand what I
see. This has resulted in four patches: support for gzip'ed HTML, an advert
buster, expires and pragma header support and an external generic plugin.
This is ALL highly experimental code and you use it at your own risk.
The external generic plugin does NOT implement dpi1.v4.txt and never will.
It's just an experiment. The sample plugin.sh script does nothing but report
the request URL but can easily be extended to do some real functions.
The patches were all developed seperately and have not been tested against
each other. Large amounts of debugging information is issued from the
patches.
The patches can be downloaded from http://twirl.mcc.ac.uk/dillo/
If anybody wants to grab the gzip'ed HTML and advert buster patches and
develop them into reliable code for inclusion in Dillo please do. There are
some suggestions for further work on the relevant web pages.
As I said above, experimental code complete with bugs (some of which are
documented in the source) so take care...
(Anyone else noticed that dillo is getting a lot of good reviews in the
Linux news groups lately?)
--
/\ Geoff. Lane. /\ Manchester Computing /\ Manchester /\ M13 9PL /\ England /\
I'm an absolute, off-the-wall fanatical moderate.
Re: [Dillo-dev]Compiling dillo. What do I need?
From: Freya <Freya@ga...> - 2002-05-23 12:21
> > I intend switch
> > to woody Debian
> > when I can get my
> > hands on it.
>
> Smart move, good for you! ;-)
I was thinking that debian would be great in this situation where you
aren't sure of the dependencies, but of course it's really suited to
people with fast internet connections who can just apt-get everything
off the internet. I originally went round someone elses house who helped
me set it all up and had a cable modem connection. If you don't have to
pay for the connection time, by the minute I mean, then Debian is in a
lot of ways the best and easiest distro to use and the one most sutied
to installing on small machines as you don't have to shovel lots of
stuff you don't need onto your hard disk.
One tip if you do get hold of Debian, avoid the dselect program, debian
tries to make you use it ( a really nasty disk shoveling program that is
horribly difficult to use) but you don't have to, you can just exit and
ignore it and apt-get everything. I found you can even do this with a
cd-rom using the apt-cd command, but the apt-cd command is not in the
base system :( so you have to either get it from the internet with
apt-get, which throws things slightly askew, or what would be best,
would be to find a way to get at the apt package of the cd-rom without
using dselect. (I didn't work out how to do this and just used my modem
to get the apt package)
On the other hand running debian means I don't have the latest version
of dillo as it isn't in testing yet. :( Even worse, being on this list
is making me want the next unreleased version already! It sounds like
there are lots of people here with all kinds of goodies hidden up their
sleeves! ;)
love
Freya
Re: [Dillo-dev]new pref: auto-scaling images
From: Livio Baldini Soares <livio@im...> - 2002-05-23 11:59
Hello Ross!
Ross J. Reedstrom writes:
> Hey dillo developers -
> Love the browser - I use it on my lipaq (linux/ipaq) for both browsing w/
> wireless at work, and as a general eBook reader w/ HTML format books. I
> _really_ love the 'wrap to viewport' pref: it makes a lot of sites
> readable that would otherwise require a lot of scrolling around.
Thanks, man! We really like to hear how people like Dillo! ;-) I,
myself, constantly use Dillo as my main desktop browser. I feel really
amazed how my desktop browser is flexible enough to behave well on a
handheld.
> One feature I've seen in other small-screen browsers that is surprisingly
> effective in making sites fit is auto-scaling of images by 1:2. "Well,"
> he says to himself "here's my chance to contribute". So, I pulled
> the CVS feed, and rebuilt it, and played with it a little (oh,
> shiny! cookies!) and perused the code for where and how images are
> built. Hmm, I seem to be lost in a series of nested structs, many with
> members with names like 'width', 'height', 'ascent', and 'descent'. After
> poking around a bit, it seems to me that these structures get built,
> then filled in later via signals and callbacks.
Yeah, at first Dillo is kind of tricky because of the asynchronous
handling of events (which is one of the reasons it is fast). But after
a while you start getting the hang of it!
> Any suggestions on where to dig, and any 'gotchas'? I'm thinking i'll
> probably need a new boolean in the Dwimage struct, halfsize, or some
> such, so I can scale all the various sizes properly.
Yeah, that seems about right to me. You should be mainly looking at
dw_image.c (and possibly image.c). I haven't tried this, so this can
be wrong, but try starting with a_Image_set_parms() and scale the
width and height. This will "trick" the DwImage module into thinking
that the HTML author is resizing the image, so it may be possible to
avoid introduing changes to DwImage.
In theory, this should work smoothly (in theory! ;-). I currently
have _no_ time to contribute to Dillo do to real life commitments, but
if you have any doubts and comments you can send them here to the list
or to me. I'm not sure, but I think Sebastian has a plan to rework
Dillo's image internals to make it easier to do correct background
support (using RGBA, instead of normal RGB), and some other things,
but I don't know how it is coming out.
> BTW, I noticed that percentage sizes on images does not seem to be
> supported. HTML 4.01 certainly defines the width and height attributes
> generically, saying that percentages are supported for images.
>
> http://www.w3.org/TR/html401/struct/objects.html#adef-width-IMG
Hum, this I haven't noticed... if you like, please add support for
this! :-)
best regards and good luck.
--
Livio <livio@im...>
Re: [Dillo-dev]Compiling dillo. What do I need?
From: Livio Baldini Soares <livio@im...> - 2002-05-23 11:39
Hi Leandro!
Leandro Gil writes:
>
> I'm trying to turn a 486DX4 100MHz with 16MB RAM into a Linux box. I would
> like to know what version of GCC, libraries and GTK+ do I need to compile and
> use Dillo. If possible, I would like to use one of the distributions in my
> possesion: Redhat 5.1, Redhat 6.0 and Redhat 7.2
If I remember correctly, you'll need:
libglib1.2 (runtime and development package)
libgtk1.2 (runtime and development package)
libjpeg62 (runtime and development package)
libpng2 (runtime and development package)
That's about all (I think). If you get a precompiled binary (there
are some RPMs rolling around the internet), you'll only need the
runtime stuff.
> I'm sorry if this seems a bit off-topic, but downloading more than 20MB from
> the net can be an expensive endeavor where I live, and recently I've become
> aware of the customized GCC versions Redhat uses.
Well, I've tried Dillo with various GCCs and OSs, and I never got
any problems there. My guess is that you'll only notice RedHat's
customized GCC with a few programs which use some low-level compiler
specific stuff (like the Linux kernel).
> I intend switch to woody
> Debian when I can get my hands on it.
Smart move, good for you! ;-)
best regards!
--
Livio <livio@im...>
[Dillo-dev]Re: have you considered upgrading your SSL patch to 0.6.5?
From: Jonathan P Springer <jonathan.springer@ve...> - 2002-05-23 11:30
I've posted the patch to
http://members.verizon.net/~vze2mqqv/dillo-ssl.0.6.5.diff .
This is not a patch for the faint of heart!
To apply, download to the root of your dillo 0.6.5 directory and
$ patch -p1 <dillo-ssl.0.6.5.diff
$ autoconf
$ automake
$ configure --enable-ssl
$ make
$ sudo make install
Regards,
-js
On Fri, May 17, 2002 at 12:03:00PM -0500, John Utz wrote:
> Can anybody point me at it? has anybody tried it with 0.6.5?
>
> when i tried it with 0.6.4 to do my online banking, i wasnt successful
> because i needed cookies.
>
> now, that i have cookies that work correctly after applying joergen's ?
> path fixing patch to cookies, i have attempted to apply your 0.6.4 patch
> and it fails alot.
>
> > find . -name \*.rej -exec ls -l {} \;
> -rw-r--r-- 1 spaz wheel 26186 May 17 09:54 ./src/IO/IO.c.rej
> -rw-r--r-- 1 spaz wheel 2706 May 17 09:54 ./src/IO/Url.c.rej
> -rw-r--r-- 1 spaz wheel 3555 May 17 09:55 ./src/IO/about.c.rej
> -rw-r--r-- 1 spaz wheel 21574 May 17 09:55 ./src/IO/file.c.rej
> -rw-r--r-- 1 spaz wheel 22410 May 17 09:55 ./src/IO/http.c.rej
> -rw-r--r-- 1 spaz wheel 15030 May 17 09:55 ./src/cache.c.rej
> -rw-r--r-- 1 spaz wheel 1666 May 17 10:00 ./src/dillo.c.rej
> -rw-r--r-- 1 spaz wheel 583 May 17 09:53 ./configure.in.rej
> -rw-r--r-- 1 spaz wheel 202 May 17 09:55 ./Makefile.am.rej
> >
>
> i recognize that i am asking for a favor, and if you arent interested in
> doing it ( i noted on the 0.6.4 patch mail that you offered to fix it for
> the next release) plz let me know.
>
> tnx!
>
> johnu
>
> --
>
> John L. Utz III
> john@ut...
>
> Idiocy is the Impulse Function in the Convolution of Life
>
--
-Jonathan P Springer <jonathan.springer@ve...>
------------------------------------------------------------------------------
"A standard is an arbitrary solution to a recurring problem." - Joe Hazen
Re: [Dillo-dev]GTK+-2.0 ?
From: Livio Baldini Soares <livio@im...> - 2002-05-23 11:28
Hello Lawrence!
Lawrence.Mayer@ds... writes:
> Hi,
>
> Can Dillo-0.6.5 compile and run with GTK+-2.0, or does it need GTK+-1.2 ?
Currently Dillo works only with GTK+-1.2.
> If Dillo needs GTK+-1.2, are there any plans to make a GTK+-2.0 version? If
> so, any idea when it might become available?
There have been a few individual tries to port Dillo do GTK+-2.0, as
as far as I know, none of which have succeed completely. I think the
main Dillo developers are not currently very motivated to do this
port, at least while GTK+-2.0 isn't available on most mainstream
stable distributions.
This doesn't mean (of course!) that other developers (like you! ;-)
shouldn't try the port if they like, and send in their results.
So, sorry, we have no near future prediction to when this port will
be ready.
best regards!
--
Livio <livio@im...>
[Dillo-dev]Progress halted?
From: Ralph Slooten <ralph@de...> - 2002-05-23 05:33
Hi there all,
Sorry if this is a dumb quaetion, but it appeard that the CVS from Dillo
had not been updated from May 4. Does this mean that progress has stopped
for the time being?
Greetings
Ralph
--
Homepage: http://tuxpower.f2g.net/
[Dillo-dev]Sorry
From: Freya <Freya@he...> - 2002-05-22 21:17
Sorry I sent those mails twice, I didn't think they would make it through, and didn't hit the cancel button in time. I wonder why I only ever remember after I have just hit the send button. *sigh*
Anyway apologies to everyone and especially to those on low bandwidth connections. I really do sympathise as I was at 9600 baud till recently!
love
Freya
P.S. Arrrrgh nearly did it again! :)
[Dillo-dev]Dillo and sylpheed
From: Freya <Freya@he...> - 2002-05-22 21:14
I meant to also say in my last posting that I couldn't see the details for the user mailing list anywhere, perhaps it hasn't been set up yet as these early versions are for developers.
Anyway I wondered if you had seen this:
http://melvin.hadasht.free.fr/home/dillo/sylpheed/
Looks preety amazing, there was a whole thread on the sylpheed list recently from someone saying they should put a whole webbrowser into slypheed *sigh* Suffice to say a lot of people weren't keen on the idea, but this is a great way of doing that without all the nastyness and code bloat.
I really think the dillo side of this code should be intergrated into the next version of dillo because it could just have soooooo many uses! :)
Perhaps you already know about it, it was the first I heard of it tho, after I started ranting about how great dillo was on the sylpheed list!
Anyway I thik you should all take a peek! :)
love
Freya
[Dillo-dev]Dillo and sylpheed
From: Freya <Freya@ga...> - 2002-05-22 21:13
I meant to also say in my last posting that I couldn't see the details for the user mailing list anywhere, perhaps it hasn't been set up yet as these early versions are for developers.
Anyway I wondered if you had seen this:
http://melvin.hadasht.free.fr/home/dillo/sylpheed/
Looks preety amazing, there was a whole thread on the sylpheed list recently from someone saying they should put a whole webbrowser into slypheed *sigh* Suffice to say a lot of people weren't keen on the idea, but this is a great way of doing that without all the nastyness and code bloat.
I really think the dillo side of this code should be intergrated into the next version of dillo because it could just have soooooo many uses! :)
Perhaps you already know about it, it was the first I heard of it tho, after I started ranting about how great dillo was on the sylpheed list!
Anyway I thik you should all take a peek! :)
love
Freya
[Dillo-dev]Dillo in 8mb
From: Freya <Freya@he...> - 2002-05-22 21:07
Hiya!
I've managed to get my 8mb laptop that I rescued from a skip (currently held together with pollyfilla and pink nail varnish) to run X-windows and I've been really impressed at how well it all works, having been warned loads of times in the past that the minimum spec for running x-windows is 16mb of ram. It really struggles with some things, but dillo is not one of them. Dillo is still faster than opera even on my p200 mmx which sadly I'm having to use as a router at the moment (yes I know it's kind of the wrong way round but I need usb ports for the adsl modem :( ) anyway Dillo takes about half the time to start of opera on the P200, so it's not really fast (the computer is a 486-25) but it does work and it's great!
BTW dillo on the P200 started instantly, but you probably knew that already! ;)
I've also managed to get Sylpheed working on my 486 which shocked me, this really does take an age to start, probably about as long as opera on the P200, in fact I'm being unfair to say that dillo starts in half the time of opera on the P200, it actually starts quite quickly, which sylpheed doesn't but then the thing is that once Sylpheed has started it just works, the hard disk sits there silently and I type away or get my mail, it all works fine, I guess waiting for Sylpheed is only like having to wait for gnome to boot up (erm on the p200 of course *giggle*). ;)
Anyway I just thought I would drop a line and say how useful dillo is! There is no other browser that will run on this computer except links. Well there is but they aren't worth running because dillo is so infinitely better! :) I am really missing being able to get at yahoo mail and stuff but at least I can see most sites. Speaking of yahoo mail, I knew it used javascript for the passwords because opera goes on about it, but I thought I would have a look at the source and see if I could find a way to bypass the login javascript. I imagined a couple of lines that read stuff from the form. Wow was I wrong! A whole version of md5 written in javascript! eeeeeek! Has to be seen to be believed!
I keep trying to tell people about Dillo but they just don't seem to believe me, or understand, I say that I'm running a browser on my 8mb laptop and it's great and they helpfully ask if I have tried links. "Yes of course I am running links, but this is a proper graphical broswer and it's really fast..." (actually the new version of links sounds preety incredible with javascript and even some support for X11 and graphics, it will be interesting when it is properly available!) Anyway I try and talk people into running it but they just won't believe me because they have never heard of dillo. Oh well their loss! One day they will hear of dillo again and again I am sure, but it is kind of depressing that there is this sort of herd mentality, that they will only try it if they have heard about it from lots of people.
Actually even more depressing is the software that people go on about, things like xcdroast and xine that seem really, really awful to me. I found dillo and sylpheed for myself by accident and I am really happy with them.
I notice on the webpage it says that dillo works really well with iceWM. Strangely enough that is what I am running but a lot of people seem to think I should run blackbox or fluxbox. I'm not really keen on their user interfaces, partly because I like maximised full screen windows (which is the only way in 640x480 anyway!) but also because I like the task bar at the bottom of the screen. I could try using fspanel but I get a little worried about it all. Icewm may use a bit more resources but it adds so much to the experience for me that it is worth it! The only thing that really worries me is that someone told me just recently that IceWM leaks memory! This would be really bad on an 8mb computer! lol! I don't suppose any of you know how much truth there is in all that?
love
Freya
[Dillo-dev]Dillo in 8mb
From: Freya <Freya@ga...> - 2002-05-22 21:06
Hiya!
I've managed to get my 8mb laptop that I rescued from a skip (currently held together with pollyfilla and pink nail varnish) to run X-windows and I've been really impressed at how well it all works, having been warned loads of times in the past that the minimum spec for running x-windows is 16mb of ram. It really struggles with some things, but dillo is not one of them. Dillo is still faster than opera even on my p200 mmx which sadly I'm having to use as a router at the moment (yes I know it's kind of the wrong way round but I need usb ports for the adsl modem :( ) anyway Dillo takes about half the time to start of opera on the P200, so it's not really fast (the computer is a 486-25) but it does work and it's great!
BTW dillo on the P200 started instantly, but you probably knew that already! ;)
I've also managed to get Sylpheed working on my 486 which shocked me, this really does take an age to start, probably about as long as opera on the P200, in fact I'm being unfair to say that dillo starts in half the time of opera on the P200, it actually starts quite quickly, which sylpheed doesn't but then the thing is that once Sylpheed has started it just works, the hard disk sits there silently and I type away or get my mail, it all works fine, I guess waiting for Sylpheed is only like having to wait for gnome to boot up (erm on the p200 of course *giggle*). ;)
Anyway I just thought I would drop a line and say how useful dillo is! There is no other browser that will run on this computer except links. Well there is but they aren't worth running because dillo is so infinitely better! :) I am really missing being able to get at yahoo mail and stuff but at least I can see most sites. Speaking of yahoo mail, I knew it used javascript for the passwords because opera goes on about it, but I thought I would have a look at the source and see if I could find a way to bypass the login javascript. I imagined a couple of lines that read stuff from the form. Wow was I wrong! A whole version of md5 written in javascript! eeeeeek! Has to be seen to be believed!
I keep trying to tell people about Dillo but they just don't seem to believe me, or understand, I say that I'm running a browser on my 8mb laptop and it's great and they helpfully ask if I have tried links. "Yes of course I am running links, but this is a proper graphical broswer and it's really fast..." (actually the new version of links sounds preety incredible with javascript and even some support for X11 and graphics, it will be interesting when it is properly available!) Anyway I try and talk people into running it but they just won't believe me because they have never heard of dillo. Oh well their loss! One day they will hear of dillo again and again I am sure, but it is kind of depressing that there is this sort of herd mentality, that they will only try it if they have heard about it from lots of people.
Actually even more depressing is the software that people go on about, things like xcdroast and xine that seem really, really awful to me. I found dillo and sylpheed for myself by accident and I am really happy with them.
I notice on the webpage it says that dillo works really well with iceWM. Strangely enough that is what I am running but a lot of people seem to think I should run blackbox or fluxbox. I'm not really keen on their user interfaces, partly because I like maximised full screen windows (which is the only way in 640x480 anyway!) but also because I like the task bar at the bottom of the screen. I could try using fspanel but I get a little worried about it all. Icewm may use a bit more resources but it adds so much to the experience for me that it is worth it! The only thing that really worries me is that someone told me just recently that IceWM leaks memory! This would be really bad on an 8mb computer! lol! I don't suppose any of you know how much truth there is in all that?
love
Freya
[Dillo-dev]Compiling dillo. What do I need?
From: Leandro Gil <leagil@ho...> - 2002-05-21 23:50
Attachments: Message as HTML
I'm trying to turn a 486DX4 100MHz with 16MB RAM into a Linux box. I =
would like to know what version of GCC, libraries and GTK+ do I need to =
compile and use Dillo. If possible, I would like to use one of the =
distributions in my possesion: Redhat 5.1, Redhat 6.0 and Redhat 7.2
I'm sorry if this seems a bit off-topic, but downloading more than =
20MB from the net can be an expensive endeavor where I live, and =
recently I've become aware of the customized GCC versions Redhat uses. I =
intend switch to woody Debian when I can get my hands on it.
Thanks in advance.
[Dillo-dev]new pref: auto-scaling images
From: Ross J. Reedstrom <reedstrm@ri...> - 2002-05-21 18:32
Hey dillo developers -
Love the browser - I use it on my lipaq (linux/ipaq) for both browsing w/
wireless at work, and as a general eBook reader w/ HTML format books. I
_really_ love the 'wrap to viewport' pref: it makes a lot of sites
readable that would otherwise require a lot of scrolling around.
One feature I've seen in other small-screen browsers that is surprisingly
effective in making sites fit is auto-scaling of images by 1:2. "Well,"
he says to himself "here's my chance to contribute". So, I pulled
the CVS feed, and rebuilt it, and played with it a little (oh,
shiny! cookies!) and perused the code for where and how images are
built. Hmm, I seem to be lost in a series of nested structs, many with
members with names like 'width', 'height', 'ascent', and 'descent'. After
poking around a bit, it seems to me that these structures get built,
then filled in later via signals and callbacks.
Any suggestions on where to dig, and any 'gotchas'? I'm thinking i'll
probably need a new boolean in the Dwimage struct, halfsize, or some
such, so I can scale all the various sizes properly.
BTW, I noticed that percentage sizes on images does not seem to be
supported. HTML 4.01 certainly defines the width and height attributes
generically, saying that percentages are supported for images.
http://www.w3.org/TR/html401/struct/objects.html#adef-width-IMG
Ross
--
Ross Reedstrom, Ph.D. reedstrm@ri...
Executive Director phone: 713-348-6166
Gulf Coast Consortium for Bioinformatics fax: 713-348-6182
Rice University MS-39
Houston, TX 77005
[Dillo-dev]HTTP-Authentification / User Agent / "Clear Cache"-Button
From: Alex Kloss <alex@St...> - 2002-05-21 13:35
Hi, dillo developers!
First, I wanted to say that your browser is really great! Not only being
fast as hell but too only rendering sane HTML. Only a few necessary
options are missing.
I don't want to ask about that plugin/ftp stuff. I know that this is
current development, so keep up the good work in your time.
It only lacks a few features I could use.
1. HTTP/Authentification as in RFC 1945, 10.11/10.16):
There are several ways to do this. I'd prefer the option to have an
input widget (within or out of the main window?) opened on the
"WWW-Authenticate"-challenge asking for username and password, sending
the reply to the Host.
This widget could be implemented as plugin or into the browser itself.
I'd like you to have the choice which way to go there.
This feature can be especially useful when using the CUPS printer
driver's web interface (http://localhost:631).
2. The User-Agent in the HTTP/GET request could be changeable in the
dillorc config file or otherwise. Momentarily, a request looks like:
GET / HTTP/1.0
Host: localhost
User-Agent: Dillo/0.6.5
Some pages that asks for MSIE/Netscape/Mozilla or similar could be
tricked with a changeable user agent. As an option, you could send yet a
bit less information about your system, too (since dillo seems to be
at home only on BSD/*nix style systems).
3. Some button or else for "clear cache" can come in handy when you're
browsing more sites than the cache could put in your ram/swap. ATM, you
have to quit and restart dillo to keep on browsing. In other situations,
this can be a fast way to hide the locations you've visited to other
users when you want to show them something.
Have fun coding!
Alex
[Dillo-dev]GTK+-2.0 ?
From: <Lawrence.Mayer@ds...> - 2002-05-18 19:23
Hi,
Can Dillo-0.6.5 compile and run with GTK+-2.0, or does it need GTK+-1.2 ?
If Dillo needs GTK+-1.2, are there any plans to make a GTK+-2.0 version? If
so, any idea when it might become available?
Lawrence Mayer <lawmay@ki.se>
Ume=E5, Sweden
[Dillo-dev]have you considered upgrading your SSL patch to 0.6.5?
From: John Utz <john@ut...> - 2002-05-17 17:03
Can anybody point me at it? has anybody tried it with 0.6.5?
when i tried it with 0.6.4 to do my online banking, i wasnt successful
because i needed cookies.
now, that i have cookies that work correctly after applying joergen's ?
path fixing patch to cookies, i have attempted to apply your 0.6.4 patch
and it fails alot.
> find . -name \*.rej -exec ls -l {} \;
-rw-r--r-- 1 spaz wheel 26186 May 17 09:54 ./src/IO/IO.c.rej
-rw-r--r-- 1 spaz wheel 2706 May 17 09:54 ./src/IO/Url.c.rej
-rw-r--r-- 1 spaz wheel 3555 May 17 09:55 ./src/IO/about.c.rej
-rw-r--r-- 1 spaz wheel 21574 May 17 09:55 ./src/IO/file.c.rej
-rw-r--r-- 1 spaz wheel 22410 May 17 09:55 ./src/IO/http.c.rej
-rw-r--r-- 1 spaz wheel 15030 May 17 09:55 ./src/cache.c.rej
-rw-r--r-- 1 spaz wheel 1666 May 17 10:00 ./src/dillo.c.rej
-rw-r--r-- 1 spaz wheel 583 May 17 09:53 ./configure.in.rej
-rw-r--r-- 1 spaz wheel 202 May 17 09:55 ./Makefile.am.rej
>
i recognize that i am asking for a favor, and if you arent interested in
doing it ( i noted on the 0.6.4 patch mail that you offered to fix it for
the next release) plz let me know.
tnx!
johnu
--
John L. Utz III
john@ut...
Idiocy is the Impulse Function in the Convolution of Life
Re: [Dillo-dev]Meta-refresh patch?
From: madis <madis.janson@ma...> - 2002-05-16 22:30
i've 'ported' one old Jorgen Viksell's meta refresh patch to dillo-0.6.5
(or dillo-0.6.6-pre, these two are not very different yet). this works
like 'real' meta refresh - waits and loads specified url. refresh loops
are not checked (but it thinks that timeout 0 is 300 ms). it is currently
together with other modifications i have made to dillo source, which i
use, but if there is interest i can extract the meta refresh code into
separate patch.
the mixed diff thing is avaible here:
http://www.zone.ee/myzz/dillo/dillo-0.6.5-mzz.diff
(meta refresh modifications are in html.h and html.c)
and comments about it here:
http://www.zone.ee/myzz/dillo/dillo-0.6.5-mzz.txt
On Mon, 13 May 2002, Andreas Schweitzer wrote:
> On Mon, May 13, 2002 at 12:14:33PM -0500, Patrick Glennon wrote:
> > Can someone hook me up or point me to either the person who wrote, or
> > possibly the patch itself for support for Meta-refresh? Ideally, i'd
> > like to find the person....
>
> Try
> http://projects.gnome.hu/dillo/
>
> I'm posting this to the list because I was staring at this patch
> for a while a few weeks back. And I was thinking, maybe dillo could
> at least insert a link for the refresh URL, like "The web page
> designer wants you to go to ....". Maybe only for empty pages.
> But I didn't start code.
>
> Cheers,
> Andreas
>
>
--
mzz
[Dillo-dev]bug 335, Cookies_create_timestamp
From: madis <madis.janson@ma...> - 2002-05-16 21:57
Attachments: patch-dillo-cookies_timestamp
patch for fixing this bug
--
mzz
[Dillo-dev]Re: validating HTML
From: <s.geerken@pi...> - 2002-05-15 15:36
Attachments: createdtd.pl
Gombok Arthur wrote:
> does anyone knows how to validate HTML, (or generated HTML)
> for *real* browser compatibility?
>
> it's easy to validate HTML3 HTML32 HTML4 pages, using sgml-tools
> (like nsgmls from James Clark) with the published DTD's from W3C.
>
> when writing HTML using a plain Editor (like SciTe) it would
> be very comfortable to be able to check for compatibility with
> several browsers (like IE5 IE55 Mozilla Dillo Lynx...).
>
> so there has to be a spec. (catalog and dtd) to use with nsgmls.
> i've thought that this is really trivial and would have been done
> by all browser manufacturers, but obviously i can only validate
> by loading the page. this wont list useles tags and attributes...
>
> can anyone help?
I don't think that browser specific specs make any sense (and, of course,
elements will degrade gracefully in dillo), but if someone really wants
to work on this, he may enhance the attached script, which scans the source
code. Note that many problems are hidden by this dtd, e.g. the limited
frame support.
Sebastian
Re: [Dillo-dev]validating HTML
From: Melvin Hadasht <melvin.hadasht@fr...> - 2002-05-14 21:03
Hi,
on Tue, 14 May 2002 16:15:21 +0100 (Wild Europe Standard Time)
Gombok Arthur <gombok@so...> wrote:
> No, that's not what i want to do.
> I would like to quick offline validate HTML-Pages if they have any tags
> Dillo would ignore. (And of course i wanna do this on windows too)
> I would like to check if proprietary ie tags are ~well formed~...
> I would like to check which constructs will need a workaround if using
> this browser ore any other
Maybe this can help you a bit:
http://www.willcam.com/cmat/html/crossref.html
it lists the existing tags and what browser/hmtl version supports them.
(Netscape and IE. It's maybe old, too).
Cheers
--
Melvin Hadasht
Re: [Dillo-dev]validating HTML
From: Gombok Arthur <gombok@so...> - 2002-05-14 14:19
Gombok Arthur wrote:
>> does anyone knows how to validate HTML, (or generated HTML)
>> for *real* browser compatibility?
>>
<snip />
>>
>> so there has to be a spec. (catalog and dtd) to use with nsgmls.
>> i've thought that this is really trivial and would have been done
>> by all browser manufacturers,
>
>You wish:)
Yes i do!
>Unfortunately, browser combatibility is very rarely well defined. There's
>a slight chance that Mozilla has an actual definition, as they're heavily
>XML based, but other than that, it's all in the implementation. The best
>choice IMO is to validate with the W3C DTDs and blame the browsers when
>they fail to display it correctly.
No, that's not what i want to do.
I would like to quick offline validate HTML-Pages if they have any tags
Dillo would ignore. (And of course i wanna do this on windows too)
I would like to check if proprietary ie tags are ~well formed~...
I would like to check which constructs will need a workaround if using
this browser ore any other
>-Lars
Thx for your response,
Gombok
[Dillo-dev]Splash screen
From: Courtney Grimland <cgrimland@ya...> - 2002-05-14 03:59
Is it currently possible to not bring up the splash screen and go directly to my homepage when opening dillo?
Is there a reason that this is not an option?
--
Brought to you by the letters G, N, and U.
And now, a word from our sponsor...
[Dillo-dev]alt title text
From: jonathan chetwynd <j.chetwynd@bt...> - 2002-05-13 19:41
I've fotgotten, how does one access the title text, or indeed fire an on
mouseover event using a touch screen?
thanks
jonathan
Re: [Dillo-dev]validating HTML
From: Lars Clausen <lrclause@cs...> - 2002-05-13 17:44
On Mon, 13 May 2002, Gombok Arthur wrote:
> Hi,
>=20
> does anyone knows how to validate HTML, (or generated HTML)
> for *real* browser compatibility?
>=20
> it's easy to validate HTML3 HTML32 HTML4 pages, using sgml-tools
> (like nsgmls from James Clark) with the published DTD's from W3C.
>=20
> when writing HTML using a plain Editor (like SciTe) it would
> be very comfortable to be able to check for compatibility with
> several browsers (like IE5 IE55 Mozilla Dillo Lynx...).
>=20
> so there has to be a spec. (catalog and dtd) to use with nsgmls.
> i've thought that this is really trivial and would have been done=20
> by all browser manufacturers,=20
You wish:)
> but obviously i can only validate
> by loading the page. this wont list useles tags and attributes...
Unfortunately, browser combatibility is very rarely well defined. There's
a slight chance that Mozilla has an actual definition, as they're heavily
XML based, but other than that, it's all in the implementation. The best
choice IMO is to validate with the W3C DTDs and blame the browsers when
they fail to display it correctly.
-Lars
--=20
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| H=E5rdgrim of Numenor
"I do not agree with a word that you say, but I |------------------------=
----
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbas=
ket?
Re: [Dillo-dev]Meta-refresh patch?
From: Andreas Schweitzer <andy@ph...> - 2002-05-13 17:26
On Mon, May 13, 2002 at 12:14:33PM -0500, Patrick Glennon wrote:
> Can someone hook me up or point me to either the person who wrote, or
> possibly the patch itself for support for Meta-refresh? Ideally, i'd
> like to find the person....
Try
http://projects.gnome.hu/dillo/
I'm posting this to the list because I was staring at this patch
for a while a few weeks back. And I was thinking, maybe dillo could
at least insert a link for the refresh URL, like "The web page
designer wants you to go to ....". Maybe only for empty pages.
But I didn't start code.
Cheers,
Andreas
--
Department of Physics & Astronomy and Center for Simulational Physics
University of Georgia !!! NEW !!! : Phone ++1 (706) 583 8227
Athens, GA 30602-2451 Fax ++1 (706) 542 2492
USA http://dilbert.physast.uga.edu/~andy/
[Dillo-dev]Meta-refresh patch?
From: Patrick Glennon <pglennon@me...> - 2002-05-13 17:17
Attachments: Message as HTML
Can someone hook me up or point me to either the person who wrote, or
possibly the patch itself for support for Meta-refresh? Ideally, i'd
like to find the person....
Cheers,
Patrick
Re: [Dillo-dev]validating HTML
From: Ralph Slooten <ralph@de...> - 2002-05-13 14:55
Yes, http://validator.w3.org/
On Mon, 13 May 2002, Gombok Arthur wrote:
> Hi,
>
> does anyone knows how to validate HTML, (or generated HTML)
> for *real* browser compatibility?
>
> it's easy to validate HTML3 HTML32 HTML4 pages, using sgml-tools
> (like nsgmls from James Clark) with the published DTD's from W3C.
>
> when writing HTML using a plain Editor (like SciTe) it would
> be very comfortable to be able to check for compatibility with
> several browsers (like IE5 IE55 Mozilla Dillo Lynx...).
>
> so there has to be a spec. (catalog and dtd) to use with nsgmls.
> i've thought that this is really trivial and would have been done
> by all browser manufacturers, but obviously i can only validate
> by loading the page. this wont list useles tags and attributes...
>
> can anyone help?
>
> thx
>
>
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: bandwidth@so...
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
--
Homepage: http://tuxpower.f2g.net/
[Dillo-dev]validating HTML
From: Gombok Arthur <gombok@so...> - 2002-05-13 13:41
Hi,
does anyone knows how to validate HTML, (or generated HTML)
for *real* browser compatibility?
it's easy to validate HTML3 HTML32 HTML4 pages, using sgml-tools
(like nsgmls from James Clark) with the published DTD's from W3C.
when writing HTML using a plain Editor (like SciTe) it would
be very comfortable to be able to check for compatibility with
several browsers (like IE5 IE55 Mozilla Dillo Lynx...).
so there has to be a spec. (catalog and dtd) to use with nsgmls.
i've thought that this is really trivial and would have been done
by all browser manufacturers, but obviously i can only validate
by loading the page. this wont list useles tags and attributes...
can anyone help?
thx
[Dillo-dev]Compatibility addition
From: Brian Dushaw <dushaw@ap...> - 2002-05-12 00:08
Noting that the Dillo website asks for input on machines that
run Dillo, I write to note that Dillo works on Psions that run
linux (http://linux-7110.so....net/) Specifically:
Machine: Psion 5MX/5MXPro
CPU: 32bit ARM 710T (37MHz)
OS: Debian ARM linux
(The Debian *deb packages do not yet have 0.6.5 for ARM, so we
use 0.6.4 for now)
Thanks for the fine browser!
B.D.
(I presume this is the right place to post this...)
Re: [Dillo-dev]keyboard shortcuts
From: jonathan chetwynd <j.chetwynd@bt...> - 2002-05-09 05:54
Thanks for that, as the keyboard is yet to work, I'll get back some time
soon.
jonathan
Re: [Dillo-dev]keyboard shortcuts
From: Imad <magius@pu...> - 2002-05-09 02:51
On Wed, 8 May 2002, jonathan chetwynd wrote:
> Does dillo allow keyboard access as well as pen/mouse?
> if so is there a help file around eg
>
> backspace revisit previous page
> ctrl-s save
> ctrl-o open uri
> ctrl-r refresh page
> ...... .....
>
> or somesuch....
Yes. There are a number of built-in shortcuts, and you can define more
either in-session (as with most GTK+ apps) or by editing "menu.c"
before compiling.
--
Best,
Imad Hussain
+========== GBAfan Editor in Chief == http://www.gbafan.net ==========+
+===== OpenBSD. Functional. Secure. Free. http://www.openbsd.org =====+
[Dillo-dev]keyboard shortcuts
From: jonathan chetwynd <j.chetwynd@bt...> - 2002-05-08 20:24
Does dillo allow keyboard access as well as pen/mouse?
if so is there a help file around eg
backspace revisit previous page
ctrl-s save
ctrl-o open uri
ctrl-r refresh page
...... .....
or somesuch....
hope to have a keyboard working on the ipaq soon
thanks
jonathan
[Dillo-dev]splint / lint
From: Klaus <Klaus.Bruessel@ep...> - 2002-05-08 10:00
Would it be useful to make dillo "lint clean" ? To detect memory leaks and
bogus pointers automatically.
Klaus
[Dillo-dev]gethostbyname
From: madis <madis.janson@ma...> - 2002-05-07 19:01
I read dns.c and found, that gethostbyname is used with pthreads.
Is it safe to do so (i thought that gethostbyname is not thread-safe due
to static buffers usage)?
--
mzz
Re: [Dillo-dev]Dillo 0.6.5 -- Compiling under Slackware 8.0
From: Gil Andre <gandre@ar...> - 2002-05-06 09:31
Stephen/Andreas:
(First of all, thanks a lot for answering my message!)
On Sat, 4 May 2002 15:36:41 +1200, Stephen wrote:
> I'm running dillo on Slackware 8 - the best solution I've found is to
> add /opt/gnome/bin to your PATH - this will let you run other gnome
> apps from the command prompt too :)
Well, here is where the plot thickens... =)
This is the output of a "PATH" command:
bash-2.05$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:.:/opt/gnome/bin:/usr/openwin/bin
This is confirmed when I type, for instance:
bash-2.05$ which gnumeric
/opt/gnome/bin/gnumeric
bash-2.05$ which gtk-config
/opt/gnome/bin/gtk-config
So far, so good... But how come I get error messages during the
compilation of Dillo if the system path is OK?
Anyway, I'll try setting up GTK_CONFIG like Andreas pointed out
and I'll get back to you.
Thanks again!
--
Gil Andre gandre@ar...
Technical Writer
Arkeia Corp. http://www.arkeia.com
[Dillo-dev]RE: Does dillo support proxy settings?
From: Jason Kang <poh_sing@ho...> - 2002-05-05 09:44
<html><div style='background-color:'><DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>My network is within a proxy firewall and I need to supply a proxy server and user name and password before I can access the Internet? Does dillo have support for this? </DIV>
<DIV> </DIV>
<DIV>Tks,</DIV>
<DIV> </DIV>
<DIV>Jason</DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://g.msn.com/1HM104901/39'>Click Here</a><br></html>
[Dillo-dev]Fwd: Re: small dillo patch
From: Andreas Schweitzer <andy@ph...> - 2002-05-03 15:13
Hi everybody,
After bugging the *BSD folks about the new version
I got a small patch back :-) I think this patch
makes sense. Oh - and the calls to uname are standard.
Cheers,
Andreas
----- Forwarded message from Hostmaster BSWS <hostmaster@bs...> -----
Date: Thu, 2 May 2002 16:50:33 +0200
From: Hostmaster BSWS <hostmaster@bs...>
To: Couderc Damien <couderc@op...>,
Andreas Schweitzer <andy@ph...>
Subject: Re: small dillo patch
In-Reply-To: <20020502144646.56450329.couderc@op...>; from couderc@op... on Thu, May 02, 2002 at 02:46:46PM +0200
X-PGP-Key: http://misc.bsws.de/hb/pubkey.asc
Hi Damien, Hi Andreas,
On Thu, May 02, 2002 at 02:46:46PM +0200, Couderc Damien wrote:
> > thought dillo should include OS info in the UserAgent like every
> > other Browser does... ;-)
> [SNIP]
> > I have no clue wether this stuff is portable, if it is the dillo
> > programmers should include it IMHO.
[...]
> Well your idea is good, but i think you should submit this upstream to
> the authors of dillo.
[...]
> I propose you to contact Andreas Schweitzer <andy@ph...> who
> is an OpenBSD user and an active coder for dillo. Just say that i've
> recommended you and see with him what he can do for you in the dillo
> project to include OS info.
so here's the patch. Tested on OpenBSD/sparc only. I have no clue wether
this is portable.
I might add that I am quite pleased by dillo ;-)
Greetz
Henning
--- dillo-0.6.4/src/IO/http.c Thu Jan 24 15:00:04 2002
+++ dillo-patched/src/IO/http.c Mon Apr 22 13:28:59 2002
@@ -23,6 +23,9 @@
#include <sys/wait.h>
#include <sys/socket.h> /* for lots of socket stuff */
#include <netinet/in.h> /* for ntohl and stuff */
+#include <sys/param.h>
+#include <sys/utsname.h>
+#include <sys/sysctl.h>
#include "Url.h"
#include "IO.h"
@@ -125,6 +128,7 @@
GString *s_port = g_string_new(""),
*query = g_string_new(""),
*full_path = g_string_new("");
+ struct utsname u;
/* Sending the default port in the query may cause a 302-answer. --Jcid */
if (URL_PORT(url) && URL_PORT(url) != DILLO_URL_HTTP_PORT)
@@ -143,18 +147,20 @@
URL_QUERY(url) ? URL_QUERY(url) : "",
(URL_PATH(url) || URL_QUERY(url)) ? "" : "/");
}
+
+ uname(&u);
if ( URL_FLAGS(url) & URL_Post ){
g_string_sprintfa(
query,
"POST %s HTTP/1.0\r\n"
"Host: %s%s\r\n"
- "User-Agent: Dillo/%s\r\n"
+ "User-Agent: Dillo/%s; %s/%s %s\r\n"
"Content-type: application/x-www-form-urlencoded\r\n"
"Content-length: %ld\r\n"
"\r\n"
"%s",
- full_path->str, URL_HOST(url), s_port->str, VERSION,
+ full_path->str, URL_HOST(url), s_port->str, VERSION, u.sysname, u.machine, u.release,
(glong)strlen(URL_DATA(url)), URL_DATA(url));
} else {
@@ -163,12 +169,12 @@
"GET %s HTTP/1.0\r\n"
"%s"
"Host: %s%s\r\n"
- "User-Agent: Dillo/%s\r\n"
+ "User-Agent: Dillo/%s; %s/%s %s\r\n"
"\r\n",
full_path->str,
(URL_FLAGS(url) & URL_E2EReload) ?
"Cache-Control: no-cache\r\nPragma: no-cache\r\n" : "",
- URL_HOST(url), s_port->str, VERSION);
+ URL_HOST(url), s_port->str, VERSION, u.sysname, u.machine, u.release);
}
str = query->str;
--
| Henning Brauer | PGP-Key: http://misc.bsws.de/hb/pubkey.asc
| BS Web Services | Roedingsmarkt 14, 20459 Hamburg, DE | http://bsws.de
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)
----- End forwarded message -----
--
Department of Physics & Astronomy and Center for Simulational Physics
University of Georgia !!! NEW !!! : Phone ++1 (706) 583 8227
Athens, GA 30602-2451 Fax ++1 (706) 542 2492
USA http://dilbert.physast.uga.edu/~andy/
[Dillo-dev]Dillo 0.6.5 -- Compiling under Slackware 8.0
From: Gil Andre <gandre@ar...> - 2002-05-03 14:59
Hello, everyone.
I have been running Dillo 0.6.4 for several weeks now, and
I really like it. Configured it to open the Gnome help files
by default, which a much, much better solution than using
Mozilla or Galeon.
I downloaded 0.6.5 today and attempted to compile it on my
Linux Slackware 8.0 box, but it repeatedly fails to compile
and/or configure properly.
Under Slackware 8.0, Gnome is installed in "/opt/gnome" by
default. the file gtk-config is in "/opt/gnome/bin" and the
"gtk.h" file is in "/opt/gnome/include/gtk-1.2/gtk/"
Dillo 0.6.5 complains it cannot find gtk-config and gtk.h,
even if "configure" is launched with:
./configure
--with-gtk-prefix=/opt/gnome
--with-gtk-exec-prefix=/opt/gnome/bin
I also tried setting GTK_CONFIG to "/opt/gnome" and
"/opt/gnome/bin", but this did not work either.
Here are the errors returned by "configure":
_____
which: no gtk-config in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)
which: no gtk12-config in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: WARNING: Unable to find Gtk+ with a version >= 1.2.0
_____
Please note that these errors are obtained even if paths have
been given to "configure" on the command line, which makes it
very confusing...
Is there anyone with Slackware experience that could offer tips
or pointers on how to compile Dillo on a Slackware workstation?
Any and all help is greatly appreciated!
Final question: does Dillo 0.6.5 uses the same icons as v0.6.4?
If yes, could I offer some (good-looking!) icons to replace the
default ones?
Many thanks in advance...
--
Gil Andre gandre@ar...
Technical Writer
Arkeia Corp. http://www.arkeia.com
Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
From: CRX Driver <crxssi@ho...> - 2002-05-03 13:21
I applied the patch successfully, and it appears I can get much further now
than before with the WebCalendar; but there are still problems with
authentication on other sections of the calendar. Doesn't seem to save the
cookies on exit now, but I am not sure.... I am off today, so I can only
test it a little bit. Will try more tests on Monday and let you know.
Anyone else that wants to test it can do so by going to
http://www.math.utexas.edu/users/mzou/webCal/try.html and creating their
own calendar; login, then try to create an appointment.
Thank you very much!
-Mark A. Davis
>From: Jorgen Viksell <jorgen.viksell@te...>
>To: CRX Driver <crxssi@ho...>
>CC: john@ut..., dillo-dev@li...
>Subject: Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
>Date: 03 May 2002 07:43:02 +0200
>
>tor 2002-05-02 klockan 21.43 skrev CRX Driver:
> > What I am trying to do is use Dillo with "WebCalendar" (
> > http://www.math.utexas.edu/webcalendar ) which is a fantastic web-based
> > scheduling system. I have it loaded on the same host as Dillo, and I
>access
> > it using either localhost/wcal/wcal.pl or
> > taylor2.laketaylor.org/wcal/wcal.pl
>
>There is a problem with the handling of paths. I used g_dirname() to
>strip of the filename, not knowing it also stripped of the rightmost /.
> So in this case we compared the cookie's path /wcal/ with /wcal which
>obviously fails.
>
>The attached patch fixes it.
>
>Regards,
>Jörgen
>
><< patch-cookies-path >>
Try Linux, the free, multitasking, multiuser, multiprocessing,
multithreading, multivendor, multiplatform, multistandard,
"multi-everything" operating system!
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
From: Jorgen Viksell <jorgen.viksell@te...> - 2002-05-03 05:39
Attachments: patch-cookies-path
tor 2002-05-02 klockan 21.43 skrev CRX Driver:
> OK, I am only PARTIALLY stupid. I saw no cookies, but they WERE written =
to=20
> the cookies file AFTER I exited dillo. So they are there, but don't appe=
ar=20
> to work. What I am trying to do is use Dillo with "WebCalendar" (=20
> http://www.math.utexas.edu/webcalendar ) which is a fantastic web-based=20
> scheduling system. I have it loaded on the same host as Dillo, and I acc=
ess=20
> it using either localhost/wcal/wcal.pl or=20
> taylor2.laketaylor.org/wcal/wcal.pl
There is a problem with the handling of paths. I used g_dirname() to
strip of the filename, not knowing it also stripped of the rightmost /.
So in this case we compared the cookie's path /wcal/ with /wcal which
obviously fails.
=20
The attached patch fixes it.
Regards,
J=F6rgen
Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
From: CRX Driver <crxssi@ho...> - 2002-05-03 02:26
>From: John Utz <john@ut...>
>Ok, tried the webcalandar and it misbehaved as you indicated.
>i allso tried msn, because i expected that to be a cookie rich area :-)
>cookies dont seem to be working. i agree.
>
>dont really know what to do about it tho...
o o
>
___
/ \
--
Try Linux, the free, multitasking, multiuser, multiprocessing,
multithreading, multivendor, multiplatform, multistandard,
"multi-everything" operating system!
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
Re: [Dillo-dev]Tool tips
From: Ben Woolley <ben@ta...> - 2002-05-03 01:10
Hello Jonathan and list,
On Thu, 2 May 2002, jonathan chetwynd wrote:
> can anyone tell me if tooltips (also known as labels, and frequently
> showing alt or title info) are supported?
> if so how does one see them?
>
> I'm using dillo on an ipaq, with touchscreen.
In my dillorc file I have:
# Show ALT popup for images?
show_alt=YES
I don't know about this functionality in Ipaq, though.
I filed a bug report (#302) for not supporting title attributes (BTW, part
of standard HTML), but I don't know C and therefore can't deal with this
myself... yet. Title attributes are often very useful, and it seems that
since alt is supported (at least on my setup), title shouldn't be too far
behind. I often avoid Dillo for pages that I haven't visited yet, in case
I miss something marked-up in the title attributes (I can go without
stylesheets for awhile). Despite that, I started using Dillo for my main
news site browser, if I don't have Galeon open already.
Ben Woolley
http://ben.tautology.org
>
> thanks
>
> jonathan
>
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: bandwidth@so...
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
From: John Utz <john@ut...> - 2002-05-02 20:08
Ok, tried the webcalandar and it misbehaved as you indicated.
i allso tried msn, because i expected that to be a cookie rich area :-)
cookies dont seem to be working. i agree.
dont really know what to do about it tho...
On Thu, 2 May 2002, CRX Driver wrote:
> OK, I am only PARTIALLY stupid. I saw no cookies, but they WERE written to
> the cookies file AFTER I exited dillo. So they are there, but don't appear
> to work. What I am trying to do is use Dillo with "WebCalendar" (
> http://www.math.utexas.edu/webcalendar ) which is a fantastic web-based
> scheduling system. I have it loaded on the same host as Dillo, and I access
> it using either localhost/wcal/wcal.pl or
> taylor2.laketaylor.org/wcal/wcal.pl
>
> It is local, so you can't access MY calendar server, but you can try the
> public one on that website, above. Just go to "try it out" then "create
> your own calendar on my demo server". Every time you move from one day to
> another on the calendar, it requires you to log in again (it uses cookies to
> keep you remembered). Works fine with Netscape and Mozilla but not with
> Dillo :(
>
> Here is what my cookies looked like from the local server:
>
> 0 localhost "" /wcal/ 0 2145830400 wcalusername
> mark2
> 0 localhost "" /wcal/ 0 2145830400 wcalpassword
> majStH6uHqpfU
> 0 taylor2.laketaylor.org "" /wcal/ 0 2145830400
> wcalusername mark2
> 0 taylor2.laketaylor.org "" /wcal/ 0 2145830400
> wcalpassword majStH6uHqpfU
>
>
> >From: John Utz <john@ut...>
> >To: CRX Driver <crxssi@ho...>
> >CC: dillo-dev@li...
> >Subject: Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
> >Date: Thu, 2 May 2002 14:27:22 -0500 (CDT)
> >
> >can you supply a site for us to try? that might be helpful..
> >
> >On Thu, 2 May 2002, CRX Driver wrote:
> >
> > > I have downloaded, compiled and installed 0.6.5 with configure
> > > --enable-cookies. I suppose it is possible I am doing something
> >wrong... It
> > > does create ~/.dillo/cookies and cookiesrc files, it just never puts
> > > anything in them. I edited cookiesrc to "DEFAULT=ACCEPT". Still
> >nothing.
> > > I verified the test sites were using cookies by comparing with Mozilla
> >and
> > > examining the cookies myself.
> > >
> > > Nobody has posted anything about cookies NOT working in 0.6.5, so I have
> >to
> > > wonder if I am crazy...
> > >
> > > Built under Mandrake 8.2. Any assistance or ideas appreciated,
> >thanks.
> > >
> > > Mark A. Davis
> > > Director of Information Systems
> > > Lake Taylor Hospital
> > > Norfolk VA 23502
> --
> Try Linux, the free, multitasking, multiuser, multiprocessing,
> multithreading, multivendor, multiplatform, multistandard,
> "multi-everything" operating system!
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
--
John L. Utz III
john@ut...
Idiocy is the Impulse Function in the Convolution of Life
Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
From: CRX Driver <crxssi@ho...> - 2002-05-02 19:44
OK, I am only PARTIALLY stupid. I saw no cookies, but they WERE written to
the cookies file AFTER I exited dillo. So they are there, but don't appear
to work. What I am trying to do is use Dillo with "WebCalendar" (
http://www.math.utexas.edu/webcalendar ) which is a fantastic web-based
scheduling system. I have it loaded on the same host as Dillo, and I access
it using either localhost/wcal/wcal.pl or
taylor2.laketaylor.org/wcal/wcal.pl
It is local, so you can't access MY calendar server, but you can try the
public one on that website, above. Just go to "try it out" then "create
your own calendar on my demo server". Every time you move from one day to
another on the calendar, it requires you to log in again (it uses cookies to
keep you remembered). Works fine with Netscape and Mozilla but not with
Dillo :(
Here is what my cookies looked like from the local server:
0 localhost "" /wcal/ 0 2145830400 wcalusername
mark2
0 localhost "" /wcal/ 0 2145830400 wcalpassword
majStH6uHqpfU
0 taylor2.laketaylor.org "" /wcal/ 0 2145830400
wcalusername mark2
0 taylor2.laketaylor.org "" /wcal/ 0 2145830400
wcalpassword majStH6uHqpfU
>From: John Utz <john@ut...>
>To: CRX Driver <crxssi@ho...>
>CC: dillo-dev@li...
>Subject: Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
>Date: Thu, 2 May 2002 14:27:22 -0500 (CDT)
>
>can you supply a site for us to try? that might be helpful..
>
>On Thu, 2 May 2002, CRX Driver wrote:
>
> > I have downloaded, compiled and installed 0.6.5 with configure
> > --enable-cookies. I suppose it is possible I am doing something
>wrong... It
> > does create ~/.dillo/cookies and cookiesrc files, it just never puts
> > anything in them. I edited cookiesrc to "DEFAULT=ACCEPT". Still
>nothing.
> > I verified the test sites were using cookies by comparing with Mozilla
>and
> > examining the cookies myself.
> >
> > Nobody has posted anything about cookies NOT working in 0.6.5, so I have
>to
> > wonder if I am crazy...
> >
> > Built under Mandrake 8.2. Any assistance or ideas appreciated,
>thanks.
> >
> > Mark A. Davis
> > Director of Information Systems
> > Lake Taylor Hospital
> > Norfolk VA 23502
--
Try Linux, the free, multitasking, multiuser, multiprocessing,
multithreading, multivendor, multiplatform, multistandard,
"multi-everything" operating system!
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
Re: [Dillo-dev]Dillo 0.6.5 Cookies not working
From: John Utz <john@ut...> - 2002-05-02 19:27
can you supply a site for us to try? that might be helpful..
On Thu, 2 May 2002, CRX Driver wrote:
> I have downloaded, compiled and installed 0.6.5 with configure
> --enable-cookies. I suppose it is possible I am doing something wrong... It
> does create ~/.dillo/cookies and cookiesrc files, it just never puts
> anything in them. I edited cookiesrc to "DEFAULT=ACCEPT". Still nothing.
> I verified the test sites were using cookies by comparing with Mozilla and
> examining the cookies myself.
>
> Nobody has posted anything about cookies NOT working in 0.6.5, so I have to
> wonder if I am crazy...
>
> Built under Mandrake 8.2. Any assistance or ideas appreciated, thanks.
>
> Mark A. Davis
> Director of Information Systems
> Lake Taylor Hospital
> Norfolk VA 23502
>
> --
> Try Linux, the free, multitasking, multiuser, multiprocessing,
> multithreading, multivendor, multiplatform, multistandard,
> "multi-everything" operating system!
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: bandwidth@so...
> _______________________________________________
> Dillo-dev mailing list
> Dillo-dev@li...
> https://lists.so....net/lists/listinfo/dillo-dev
>
--
John L. Utz III
john@ut...
Idiocy is the Impulse Function in the Convolution of Life
[Dillo-dev]Dillo 0.6.5 Cookies not working
From: CRX Driver <crxssi@ho...> - 2002-05-02 19:17
I have downloaded, compiled and installed 0.6.5 with configure
--enable-cookies. I suppose it is possible I am doing something wrong... It
does create ~/.dillo/cookies and cookiesrc files, it just never puts
anything in them. I edited cookiesrc to "DEFAULT=ACCEPT". Still nothing.
I verified the test sites were using cookies by comparing with Mozilla and
examining the cookies myself.
Nobody has posted anything about cookies NOT working in 0.6.5, so I have to
wonder if I am crazy...
Built under Mandrake 8.2. Any assistance or ideas appreciated, thanks.
Mark A. Davis
Director of Information Systems
Lake Taylor Hospital
Norfolk VA 23502
--
Try Linux, the free, multitasking, multiuser, multiprocessing,
multithreading, multivendor, multiplatform, multistandard,
"multi-everything" operating system!
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
[Dillo-dev]Tool tips
From: jonathan chetwynd <j.chetwynd@bt...> - 2002-05-02 14:42
can anyone tell me if tooltips (also known as labels, and frequently
showing alt or title info) are supported?
if so how does one see them?
I'm using dillo on an ipaq, with touchscreen.
thanks
jonathan
Re: [Dillo-dev]introduction, plugins and wild ideas
From: Paul Chamberlain <tif@ti...> - 2002-05-02 14:05
Doug Kearns wrote:
> On Thu, May 02, 2002 at 10:23:05AM +0100, Geoff Lane wrote:
> > I also hope to provide a generic helper plugin that will allow
> > quick-and-dirty plugins to be written using shell, perl or other
> > languages.
>
> Please do, I think this is important.
Me too, but don't forget the security aspects of this.
I had thought of mimicing CGI by manipulating stdin
and the environment of locally executed programs. You
might call it "localcgi:" or "exec:". For security I
would recommend that only HTML from "exec:" or "file:"
would be allowed to have these URLs.
And BTW, I would think there would be quite a bit of
optimizations available for handling one-pixel images.
Probably the most significant of which is that there's
guaranteed to be only one color. A scaled one-pixel
image is equivalent to a simple filled rectangle, etc.
--
Paul Chamberlain, tif@ti...
Re: [Dillo-dev]introduction, plugins and wild ideas
From: Doug Kearns <djkea2@mu...> - 2002-05-02 10:31
On Thu, May 02, 2002 at 10:23:05AM +0100, Geoff Lane wrote:
<snip>
> I also hope to provide a generic helper plugin that will allow
> quick-and-dirty plugins to be written using shell, perl or other
> languages.
Please do, I think this is important.
Regards,
Doug
[Dillo-dev]introduction, plugins and wild ideas
From: Geoff Lane <zzassgl@tw...> - 2002-05-02 09:23
Hello, I'm Geoff Lane and I've been asked to try and get the Dillo plugin
implementation started. In the past I wrote the PNG image support for the
Armadillo browser (I also wrote code to support a number of other image
formats which didn't make it into Armadillo.)
My objective is to get an initial implementation of the plugin code, based
on current ideas (be they good or bad), developed and made available as soon
as possible. Then everybody can rip it apart and tell me what a lousy
programmer I am :-) In the process we will get a much better idea of what
the plugin protocol should actually contain and how it should be
implemented. I'm a firm believer in the "release early, release often"
method of open software development.
I hope to be able to show prototype plugins for mailto: and ftp:. I also
hope to provide a generic helper plugin that will allow quick-and-dirty
plugins to be written using shell, perl or other languages.
Right now I'm working my way through the existing Dillo sources trying to
understand the flow of data through the program. I guess it is going to
take a couple of months before I can discuss the finer points of the IO code
with confidence and start to write any code that is worth making public.
OK, that's enough about me. Here's some other ideas I've been thinking
about, one with actual code being developed and one which is just a vague
design idea.
Advert Buster
The design of Dillo attempts to get a web page from the server onto the
users screen as fast as possible. Anything that slows down the transfer is
to be avoided if possible. Adverts tend to be large animated images
provided by busy servers -- if we can stop these being accessed, Dillo will
seem even faster and there is the added advantage that the adverts do not
appear.
With most other browsers, blocking adverts is done by using a small proxy
program (You can also do tricks with /etc/hosts to block adverts but you
cannot expect non-experts to do this.) The proxy checks URLs and substitutes
a local replacement whenever an advert server is detected. If the proxy is
not as fast as Dillo, the proxy will become a limiting factor when loading
web pages.
You cannot use a Dillo plugin to filter out adverts because _every_ URL
would have to be handled by the plugin. This would negate the entire design
of Dillo.
An effective Advert Buster would have to be internal to Dillo. I already
have some code that kind of works (at least it doesn't crash Dillo any more)
for some kinds of advert server. I've got to tidy and port to the latest
Dillo release then I'll let people know where to get it.
(One thing I have discovered while developing this code is the huge number
of single pixel GIFs that DoubleClick and others sprinkle about web pages
for tracking purposes. As each requires a network connection to be
established to a remote and possibly busy server these single pixel GIFs may
be a a significant cause of slow page loading.)
Image Plugins
We want plugins so Dillo can remain small. Including specialist code to
support mailto:, ftp:, news:, pop:, imap: etc leads to bloat and programs
like Netscape that have runtime code sizes of 30Mbytes and greater. We
accept the small overhead of running an external program for the less common
types of URL. Dillo supports only three image formats, GIF, JPG and PNG,
because these cover the overwhelming majority of images to be found on the
http://www. But not supporting the less common image formats does mean that Dillo
cannot be used for some specialist web based services.
Everybody should be aware of NETPBM, Jef Poskanzer's collection of image
format conversion programs. These allow conversion between a huge number of
image formats by defining an intermediate image format called ppm - portable
pixmap. It occurs to me that Dillo could support a vast, extensible,
collection of image formats by allowing the use of image plugins. When
Dillo detects an image format it doesn't support, an image plugin is started
that performs a format conversion on-the-fly and Dillo sees the result in a
format it can understand. I would also suggest that the Dillo core be
enhanced to support PPM format images to avoid the need for double
conversion (the fact I once did PPM support for Armadillo hasn't biased me
at all...)
Another use for image plugins would be to implement Scalable Vector Graphics
(SVG -- http://www.w3.org/TR/2001/REC-SVG-20010904/) The vector instructions
would be interpreted by the plugin and a PPM image generated for display.
--
/\ Geoff. Lane. /\ Manchester Computing /\ Manchester /\ M13 9PL /\ England /\
4 food groups: fast, frozen, microwaved, and junk
Re: [Dillo-dev]GTK2 port
From: xavier ordoquy <xordoquy@au...> - 2002-05-02 08:46
On Thu, 2002-05-02 at 00:10, Jorgen Viksell wrote:
> Hi!
>=20
> > Hello guys.
> > I try to port my own applications to GTK2.
> > It's nice and look stable enough.
> > May be it's time to port dillo to GTK2?
>=20
> Xavier Ordoquy posted about having started this last august. I haven't
> heard anything about it since.
> http://www.geocrawler.com/mail/thread.php3?subject=3D%5BDillo-dev%5DGtk%2=
B+2.0+Port&list=3D702
>=20
> I am willing to play with it if Xavier hasn't got time. There are some
> goodies in GTK2. UTF8, more efficient drawing, etc.
>=20
> Cheers,
> J=F6rgen
Well, since my hard drive crashed loosing my work, I hadn't the
willpower to redo it.
I'll try to see if I can recover someting tonight, but I'm afraid it
won't give much result.
Anyway, I still can help you. You'll find me either on irc.gnome.org on
#gnome or irc.openprojects.net on #gael. My nick is MCArkan.
Regards.
--=20
Xavier Ordoquy
"Complexity has nothing to do with intelligence.
Simplicity does."
(Larry Bossidy, CEO, Allied Signal)
[Dillo-dev]RE: GTK2 port
From: Ken Hayber <khayber@so...> - 2002-05-02 01:25
I just got through getting it to compile and link - but it crashes hard. =
=20
Lots of GTK/GDK errors. I took the 'I don't really know what I'm doing'=20=
approach and let the compiler show me what needed changing.
Now I'm firing up gdb/ddd to fix all the problems I caused. :-(
Anyway, I'd also be willing to contribute. I'd love to see AA text in=20=
Dillo which was my main reason for attempting this. But this being my=20=
first GTK-anything effort, I'm on the steep part of the learning curve.
Ken
>Hi!
>
>> Hello guys.
>> I try to port my own applications to GTK2.
>> It's nice and look stable enough.
>> May be it's time to port dillo to GTK2?
>
>Xavier Ordoquy posted about having started this last august. I haven't
>heard anything about it since.
=
>http://www.geocrawler.com/mail/thread.php3?subject=3D%5BDillo-dev%5DGtk%2=
B+
2.0+Port&list=3D702
>
>I am willing to play with it if Xavier hasn't got time. There are some
>goodies in GTK2. UTF8, more efficient drawing, etc.
>
>Cheers,
>J=F6rgen
"this .Sig no verb"
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D
Ken Hayber
mailto:khayber@so...
http://khayber.dyndns.org
Re: [Dillo-dev]GTK2 port
From: Jorgen Viksell <jorgen.viksell@te...> - 2002-05-01 22:06
Hi!
> Hello guys.
> I try to port my own applications to GTK2.
> It's nice and look stable enough.
> May be it's time to port dillo to GTK2?
Xavier Ordoquy posted about having started this last august. I haven't
heard anything about it since.
http://www.geocrawler.com/mail/thread.php3?subject=3D%5BDillo-dev%5DGtk%2B+=
2.0+Port&list=3D702
I am willing to play with it if Xavier hasn't got time. There are some
goodies in GTK2. UTF8, more efficient drawing, etc.
Cheers,
J=F6rgen
[Dillo-dev]GTK2 port
From: Grigory Bakunov <black@as...> - 2002-05-01 20:48
Hello guys.
I try to port my own applications to GTK2.
It's nice and look stable enough.
May be it's time to port dillo to GTK2?
Re: [Dillo-dev]patch for virtual host... games
From: John Utz <john@ut...> - 2002-05-01 20:08
argh.
i am so sorry vincent! i should have also reminded you that the patches
should go directly to jorge.
i think that not sending my patch directly to jorge was the reason that
my navigation patch didnt get in..... i think :-)
On Wed, 1 May 2002, Vincent Labrecque wrote:
>
> and here's the feature one:
>
>
> diff -pru dillo-0.6.4/src/IO/http.c ./IO/http.c
> --- dillo-0.6.4/src/IO/http.c Thu Jan 24 09:00:04 2002
> +++ ./IO/http.c Tue Apr 30 20:00:31 2002
> @@ -154,7 +154,7 @@ static char *Http_query(const DilloUrl *
> "Content-length: %ld\r\n"
> "\r\n"
> "%s",
> - full_path->str, URL_HOST(url), s_port->str, VERSION,
> + full_path->str, URL_HHOST(url), s_port->str, VERSION,
> (glong)strlen(URL_DATA(url)), URL_DATA(url));
>
> } else {
> @@ -168,7 +168,7 @@ static char *Http_query(const DilloUrl *
> full_path->str,
> (URL_FLAGS(url) & URL_E2EReload) ?
> "Cache-Control: no-cache\r\nPragma: no-cache\r\n" : "",
> - URL_HOST(url), s_port->str, VERSION);
> + URL_HHOST(url), s_port->str, VERSION);
> }
>
> str = query->str;
>
> diff -pru dillo-0.6.4/src/url.c ./url.c
> --- dillo-0.6.4/src/url.c Thu Jan 24 06:19:58 2002
> +++ ./url.c Tue Apr 30 20:18:04 2002
> @@ -57,11 +57,13 @@ gchar *a_Url_str(const DilloUrl *u)
> if (!url->url_string) {
> url->url_string = g_string_sized_new(60);
> g_string_sprintf(
> - url->url_string, "%s%s%s%s%s%s%s%s%s%s",
> + url->url_string, "%s%s%s%s%s%s%s%s%s%s%s%s",
> url->scheme ? url->scheme : "",
> url->scheme ? ":" : "",
> url->authority ? "//" : "",
> url->authority ? url->authority : "",
> + url->force_hostname ? "$" : "",
> + url->force_hostname ? url->force_hostname : "",
> (url->path && url->path[0] != '/' && url->authority) ? "/" : "",
> url->path ? url->path : "",
> url->query ? "?" : "",
> @@ -110,9 +112,9 @@ static DilloUrl *Url_object_new(const gc
>
> /* remove leading & trailing space from buffer */
> for (p = (gchar *)uri_str; isspace(*p); ++p);
> - url->buffer = g_strchomp(g_strdup(p));
>
> - s = (gchar *) url->buffer;
> + s = url->buffer = g_strchomp(g_strdup(p));
> +
> p = strpbrk(s, ":/?#");
> if (p && p[0] == ':' && p > s) { // scheme
> *p = 0;
> @@ -122,7 +124,7 @@ static DilloUrl *Url_object_new(const gc
> // p = strpbrk(s, "/");
> if (p && p[0] == '/' && p[1] == '/') { // authority
> s = p + 2;
> - p = strpbrk(s, "/?#");
> + p = strpbrk(s, "$/?#");
> if (p) {
> memmove(s - 2, s, MAX(p - s, 1));
> url->authority = s - 2;
> @@ -133,6 +135,9 @@ static DilloUrl *Url_object_new(const gc
> return url;
> }
> }
> + p = strpbrk(s, "$");
> + if (p)
> + url->force_hostname = p + 1;
>
> p = strpbrk(s, "?#");
> if (p) { // path
> @@ -178,6 +183,11 @@ void a_Url_free(DilloUrl *url)
>
> /*
> * Resolve the URL as RFC2396 suggests.
> + *
> + * Additionaly, we allow the IP$hostname syntax that i just invented to
> + * allow virtual hosts games. (for example, if you know the IP of the
> + * machine but it, for any reason, does not resolve. If that machines
> + * uses vhosts you're pretty much screwed)
> */
> static GString *Url_resolve_relative(const gchar *RelStr,
> DilloUrl *BaseUrlPar,
>
> diff -pru dillo-0.6.4/src/url.h ./url.h
> --- dillo-0.6.4/src/url.h Sun Jan 20 06:51:23 2002
> +++ ./url.h Tue Apr 30 20:00:04 2002
> @@ -46,7 +46,8 @@
> #define URL_PATH(u) u->path
> #define URL_QUERY(u) u->query
> #define URL_FRAGMENT(u) u->fragment
> -#define URL_HOST(u) a_Url_hostname(u)
> +#define URL_HHOST(u) ((u)->force_hostname)?(u)->force_hostname:a_Url_hostname(u)
> +#define URL_HOST(u) a_Url_hostname(u)
> #define URL_PORT(u) (URL_HOST(u) ? u->port : u->port)
> #define URL_FLAGS(u) u->flags
> #define URL_DATA(u) u->data
> @@ -80,6 +81,7 @@ struct _DilloUrl {
> const gchar *query; // (no need to free them)
> const gchar *fragment; //
> const gchar *hostname; //
> + const gchar *force_hostname;
> gint port;
> gint flags;
> const gchar *data; /* POST */
>
>
--
John L. Utz III
john@ut...
Idiocy is the Impulse Function in the Convolution of Life
Re: [Dillo-dev]patch for virtual host... games
From: Jorge Arellano Cid <jcid@em...> - 2002-05-01 18:28
Hi,
On Tue, 30 Apr 2002, Vincent Labrecque wrote:
>
> Hi, here's a quite small diff.
>
> There is a little buffer overflow removal (look for the strncpy part),
> strncpy is not assured to NUL-terminate the string.
Well, I decided to fix two problems at the same time by making
a new patch. It's already in CVS and it also removes the < 256
hostname length restraint from http queries).
Cheers
Jorge.-
Re: [Dillo-dev]patch for virtual host... games
From: Vincent Labrecque <vincent@op...> - 2002-05-01 12:22
and here's the feature one:
diff -pru dillo-0.6.4/src/IO/http.c ./IO/http.c
--- dillo-0.6.4/src/IO/http.c Thu Jan 24 09:00:04 2002
+++ ./IO/http.c Tue Apr 30 20:00:31 2002
@@ -154,7 +154,7 @@ static char *Http_query(const DilloUrl *
"Content-length: %ld\r\n"
"\r\n"
"%s",
- full_path->str, URL_HOST(url), s_port->str, VERSION,
+ full_path->str, URL_HHOST(url), s_port->str, VERSION,
(glong)strlen(URL_DATA(url)), URL_DATA(url));
} else {
@@ -168,7 +168,7 @@ static char *Http_query(const DilloUrl *
full_path->str,
(URL_FLAGS(url) & URL_E2EReload) ?
"Cache-Control: no-cache\r\nPragma: no-cache\r\n" : "",
- URL_HOST(url), s_port->str, VERSION);
+ URL_HHOST(url), s_port->str, VERSION);
}
str = query->str;
diff -pru dillo-0.6.4/src/url.c ./url.c
--- dillo-0.6.4/src/url.c Thu Jan 24 06:19:58 2002
+++ ./url.c Tue Apr 30 20:18:04 2002
@@ -57,11 +57,13 @@ gchar *a_Url_str(const DilloUrl *u)
if (!url->url_string) {
url->url_string = g_string_sized_new(60);
g_string_sprintf(
- url->url_string, "%s%s%s%s%s%s%s%s%s%s",
+ url->url_string, "%s%s%s%s%s%s%s%s%s%s%s%s",
url->scheme ? url->scheme : "",
url->scheme ? ":" : "",
url->authority ? "//" : "",
url->authority ? url->authority : "",
+ url->force_hostname ? "$" : "",
+ url->force_hostname ? url->force_hostname : "",
(url->path && url->path[0] != '/' && url->authority) ? "/" : "",
url->path ? url->path : "",
url->query ? "?" : "",
@@ -110,9 +112,9 @@ static DilloUrl *Url_object_new(const gc
/* remove leading & trailing space from buffer */
for (p = (gchar *)uri_str; isspace(*p); ++p);
- url->buffer = g_strchomp(g_strdup(p));
- s = (gchar *) url->buffer;
+ s = url->buffer = g_strchomp(g_strdup(p));
+
p = strpbrk(s, ":/?#");
if (p && p[0] == ':' && p > s) { // scheme
*p = 0;
@@ -122,7 +124,7 @@ static DilloUrl *Url_object_new(const gc
// p = strpbrk(s, "/");
if (p && p[0] == '/' && p[1] == '/') { // authority
s = p + 2;
- p = strpbrk(s, "/?#");
+ p = strpbrk(s, "$/?#");
if (p) {
memmove(s - 2, s, MAX(p - s, 1));
url->authority = s - 2;
@@ -133,6 +135,9 @@ static DilloUrl *Url_object_new(const gc
return url;
}
}
+ p = strpbrk(s, "$");
+ if (p)
+ url->force_hostname = p + 1;
p = strpbrk(s, "?#");
if (p) { // path
@@ -178,6 +183,11 @@ void a_Url_free(DilloUrl *url)
/*
* Resolve the URL as RFC2396 suggests.
+ *
+ * Additionaly, we allow the IP$hostname syntax that i just invented to
+ * allow virtual hosts games. (for example, if you know the IP of the
+ * machine but it, for any reason, does not resolve. If that machines
+ * uses vhosts you're pretty much screwed)
*/
static GString *Url_resolve_relative(const gchar *RelStr,
DilloUrl *BaseUrlPar,
diff -pru dillo-0.6.4/src/url.h ./url.h
--- dillo-0.6.4/src/url.h Sun Jan 20 06:51:23 2002
+++ ./url.h Tue Apr 30 20:00:04 2002
@@ -46,7 +46,8 @@
#define URL_PATH(u) u->path
#define URL_QUERY(u) u->query
#define URL_FRAGMENT(u) u->fragment
-#define URL_HOST(u) a_Url_hostname(u)
+#define URL_HHOST(u) ((u)->force_hostname)?(u)->force_hostname:a_Url_hostname(u)
+#define URL_HOST(u) a_Url_hostname(u)
#define URL_PORT(u) (URL_HOST(u) ? u->port : u->port)
#define URL_FLAGS(u) u->flags
#define URL_DATA(u) u->data
@@ -80,6 +81,7 @@ struct _DilloUrl {
const gchar *query; // (no need to free them)
const gchar *fragment; //
const gchar *hostname; //
+ const gchar *force_hostname;
gint port;
gint flags;
const gchar *data; /* POST */
Re: [Dillo-dev]patch for virtual host... games
From: Vincent Labrecque <vincent@op...> - 2002-05-01 12:20
> my objection with this would be that it should be submitted as 2 separate
> patches..contributing vital security fixes is a worthy and wonderful
> thing, payloading it with your own personal favorite treat is kind of
> against the grain...
>
> just my us$0.02....
>
> johnu
well, here goes the security diff. (i'll check the source-tree for other
strn*() API misuse.)
diff -pru dillo-0.6.4/src/IO/http.c ./IO/http.c
--- dillo-0.6.4/src/IO/http.c Thu Jan 24 09:00:04 2002
+++ ./IO/http.c Tue Apr 30 20:00:31 2002
@@ -334,7 +334,8 @@ static gint Http_get(ChainLink *Info, vo
/* Proxy support */
if (Http_must_use_proxy(Url)) {
- strncpy(hostname, URL_HOST(HTTP_Proxy), sizeof(hostname));
+ strncpy(hostname, URL_HOST(HTTP_Proxy), sizeof(hostname) - 1);
+ hostname[sizeof hostname - 1] = 0;
S->port = URL_PORT(HTTP_Proxy);
S->use_proxy = TRUE;
} else {
Re: [Dillo-dev]patch for virtual host... games
From: John Utz <john@ut...> - 2002-05-01 04:21
my objection with this would be that it should be submitted as 2 separate
patches..contributing vital security fixes is a worthy and wonderful
thing, payloading it with your own personal favorite treat is kind of
against the grain...
just my us$0.02....
johnu
On Tue, 30 Apr 2002, Vincent Labrecque wrote:
>
> Hi, here's a quite small diff.
>
> There is a little buffer overflow removal (look for the strncpy part),
> strncpy is not assured to NUL-terminate the string.
>
> And there is the main part, a feature, non RFC compliant change :-)
>
> It adds support for the connectHost$httpHost syntax. That allows me
> to say what host provides the service, and what virtual host i want. The
> use of this that spawned the idea is that i know the IP of a machine
> providing HTTP service, it does not resolve, yet I want to access the
> vhost.
>
> I find this useful, maybe some others will, too.
>
> Please check the patches carefuly, i don't know the codebase enough to
> be 100% sure of my changes, even if they seem to work fine.
>
> I'll be happy to reply to comments regarding this feature. (alternative
> syntax, etc)
>
> - Vincent
>
> diff -pru dillo-0.6.4/src/IO/http.c ./IO/http.c
> --- dillo-0.6.4/src/IO/http.c Thu Jan 24 09:00:04 2002
> +++ ./IO/http.c Tue Apr 30 20:00:31 2002
> @@ -154,7 +154,7 @@ static char *Http_query(const DilloUrl *
> "Content-length: %ld\r\n"
> "\r\n"
> "%s",
> - full_path->str, URL_HOST(url), s_port->str, VERSION,
> + full_path->str, URL_HHOST(url), s_port->str, VERSION,
> (glong)strlen(URL_DATA(url)), URL_DATA(url));
>
> } else {
> @@ -168,7 +168,7 @@ static char *Http_query(const DilloUrl *
> full_path->str,
> (URL_FLAGS(url) & URL_E2EReload) ?
> "Cache-Control: no-cache\r\nPragma: no-cache\r\n" : "",
> - URL_HOST(url), s_port->str, VERSION);
> + URL_HHOST(url), s_port->str, VERSION);
> }
>
> str = query->str;
> @@ -334,7 +334,8 @@ static gint Http_get(ChainLink *Info, vo
>
> /* Proxy support */
> if (Http_must_use_proxy(Url)) {
> - strncpy(hostname, URL_HOST(HTTP_Proxy), sizeof(hostname));
> + strncpy(hostname, URL_HOST(HTTP_Proxy), sizeof(hostname) - 1);
> + hostname[sizeof hostname - 1] = 0;
> S->port = URL_PORT(HTTP_Proxy);
> S->use_proxy = TRUE;
> } else {
>
> diff -pru dillo-0.6.4/src/url.c ./url.c
> --- dillo-0.6.4/src/url.c Thu Jan 24 06:19:58 2002
> +++ ./url.c Tue Apr 30 20:18:04 2002
> @@ -57,11 +57,13 @@ gchar *a_Url_str(const DilloUrl *u)
> if (!url->url_string) {
> url->url_string = g_string_sized_new(60);
> g_string_sprintf(
> - url->url_string, "%s%s%s%s%s%s%s%s%s%s",
> + url->url_string, "%s%s%s%s%s%s%s%s%s%s%s%s",
> url->scheme ? url->scheme : "",
> url->scheme ? ":" : "",
> url->authority ? "//" : "",
> url->authority ? url->authority : "",
> + url->force_hostname ? "$" : "",
> + url->force_hostname ? url->force_hostname : "",
> (url->path && url->path[0] != '/' && url->authority) ? "/" : "",
> url->path ? url->path : "",
> url->query ? "?" : "",
> @@ -110,9 +112,9 @@ static DilloUrl *Url_object_new(const gc
>
> /* remove leading & trailing space from buffer */
> for (p = (gchar *)uri_str; isspace(*p); ++p);
> - url->buffer = g_strchomp(g_strdup(p));
>
> - s = (gchar *) url->buffer;
> + s = url->buffer = g_strchomp(g_strdup(p));
> +
> p = strpbrk(s, ":/?#");
> if (p && p[0] == ':' && p > s) { // scheme
> *p = 0;
> @@ -122,7 +124,7 @@ static DilloUrl *Url_object_new(const gc
> // p = strpbrk(s, "/");
> if (p && p[0] == '/' && p[1] == '/') { // authority
> s = p + 2;
> - p = strpbrk(s, "/?#");
> + p = strpbrk(s, "$/?#");
> if (p) {
> memmove(s - 2, s, MAX(p - s, 1));
> url->authority = s - 2;
> @@ -133,6 +135,9 @@ static DilloUrl *Url_object_new(const gc
> return url;
> }
> }
> + p = strpbrk(s, "$");
> + if (p)
> + url->force_hostname = p + 1;
>
> p = strpbrk(s, "?#");
> if (p) { // path
> @@ -178,6 +183,11 @@ void a_Url_free(DilloUrl *url)
>
> /*
> * Resolve the URL as RFC2396 suggests.
> + *
> + * Additionaly, we allow the IP$hostname syntax that i just invented to
> + * allow virtual hosts games. (for example, if you know the IP of the
> + * machine but it, for any reason, does not resolve. If that machines
> + * uses vhosts you're pretty much screwed)
> */
> static GString *Url_resolve_relative(const gchar *RelStr,
> DilloUrl *BaseUrlPar,
>
> diff -pru dillo-0.6.4/src/url.h ./url.h
> --- dillo-0.6.4/src/url.h Sun Jan 20 06:51:23 2002
> +++ ./url.h Tue Apr 30 20:00:04 2002
> @@ -46,7 +46,8 @@
> #define URL_PATH(u) u->path
> #define URL_QUERY(u) u->query
> #define URL_FRAGMENT(u) u->fragment
> -#define URL_HOST(u) a_Url_hostname(u)
> +#define URL_HHOST(u) ((u)->force_hostname)?(u)->force_hostname:a_Url_hostname(u)
> +#define URL_HOST(u) a_Url_hostname(u)
> #define URL_PORT(u) (URL_HOST(u) ? u->port : u->port)
> #define URL_FLAGS(u) u->flags
> #define URL_DATA(u) u->data
> @@ -80,6 +81,7 @@ struct _DilloUrl {
> const gchar *query; // (no need to free them)
> const gchar *fragment; //
> const gchar *hostname; //
> + const gchar *force_hostname;
> gint port;
> gint flags;
> const gchar *data; /* POST */
> Only in .: url.h~
>
--
John L. Utz III
john@ut...
Idiocy is the Impulse Function in the Convolution of Life
[Dillo-dev]patch for virtual host... games
From: Vincent Labrecque <vincent@op...> - 2002-05-01 00:31
Hi, here's a quite small diff.
There is a little buffer overflow removal (look for the strncpy part),
strncpy is not assured to NUL-terminate the string.
And there is the main part, a feature, non RFC compliant change :-)
It adds support for the connectHost$httpHost syntax. That allows me
to say what host provides the service, and what virtual host i want. The
use of this that spawned the idea is that i know the IP of a machine
providing HTTP service, it does not resolve, yet I want to access the
vhost.
I find this useful, maybe some others will, too.
Please check the patches carefuly, i don't know the codebase enough to
be 100% sure of my changes, even if they seem to work fine.
I'll be happy to reply to comments regarding this feature. (alternative
syntax, etc)
- Vincent
diff -pru dillo-0.6.4/src/IO/http.c ./IO/http.c
--- dillo-0.6.4/src/IO/http.c Thu Jan 24 09:00:04 2002
+++ ./IO/http.c Tue Apr 30 20:00:31 2002
@@ -154,7 +154,7 @@ static char *Http_query(const DilloUrl *
"Content-length: %ld\r\n"
"\r\n"
"%s",
- full_path->str, URL_HOST(url), s_port->str, VERSION,
+ full_path->str, URL_HHOST(url), s_port->str, VERSION,
(glong)strlen(URL_DATA(url)), URL_DATA(url));
} else {
@@ -168,7 +168,7 @@ static char *Http_query(const DilloUrl *
full_path->str,
(URL_FLAGS(url) & URL_E2EReload) ?
"Cache-Control: no-cache\r\nPragma: no-cache\r\n" : "",
- URL_HOST(url), s_port->str, VERSION);
+ URL_HHOST(url), s_port->str, VERSION);
}
str = query->str;
@@ -334,7 +334,8 @@ static gint Http_get(ChainLink *Info, vo
/* Proxy support */
if (Http_must_use_proxy(Url)) {
- strncpy(hostname, URL_HOST(HTTP_Proxy), sizeof(hostname));
+ strncpy(hostname, URL_HOST(HTTP_Proxy), sizeof(hostname) - 1);
+ hostname[sizeof hostname - 1] = 0;
S->port = URL_PORT(HTTP_Proxy);
S->use_proxy = TRUE;
} else {
diff -pru dillo-0.6.4/src/url.c ./url.c
--- dillo-0.6.4/src/url.c Thu Jan 24 06:19:58 2002
+++ ./url.c Tue Apr 30 20:18:04 2002
@@ -57,11 +57,13 @@ gchar *a_Url_str(const DilloUrl *u)
if (!url->url_string) {
url->url_string = g_string_sized_new(60);
g_string_sprintf(
- url->url_string, "%s%s%s%s%s%s%s%s%s%s",
+ url->url_string, "%s%s%s%s%s%s%s%s%s%s%s%s",
url->scheme ? url->scheme : "",
url->scheme ? ":" : "",
url->authority ? "//" : "",
url->authority ? url->authority : "",
+ url->force_hostname ? "$" : "",
+ url->force_hostname ? url->force_hostname : "",
(url->path && url->path[0] != '/' && url->authority) ? "/" : "",
url->path ? url->path : "",
url->query ? "?" : "",
@@ -110,9 +112,9 @@ static DilloUrl *Url_object_new(const gc
/* remove leading & trailing space from buffer */
for (p = (gchar *)uri_str; isspace(*p); ++p);
- url->buffer = g_strchomp(g_strdup(p));
- s = (gchar *) url->buffer;
+ s = url->buffer = g_strchomp(g_strdup(p));
+
p = strpbrk(s, ":/?#");
if (p && p[0] == ':' && p > s) { // scheme
*p = 0;
@@ -122,7 +124,7 @@ static DilloUrl *Url_object_new(const gc
// p = strpbrk(s, "/");
if (p && p[0] == '/' && p[1] == '/') { // authority
s = p + 2;
- p = strpbrk(s, "/?#");
+ p = strpbrk(s, "$/?#");
if (p) {
memmove(s - 2, s, MAX(p - s, 1));
url->authority = s - 2;
@@ -133,6 +135,9 @@ static DilloUrl *Url_object_new(const gc
return url;
}
}
+ p = strpbrk(s, "$");
+ if (p)
+ url->force_hostname = p + 1;
p = strpbrk(s, "?#");
if (p) { // path
@@ -178,6 +183,11 @@ void a_Url_free(DilloUrl *url)
/*
* Resolve the URL as RFC2396 suggests.
+ *
+ * Additionaly, we allow the IP$hostname syntax that i just invented to
+ * allow virtual hosts games. (for example, if you know the IP of the
+ * machine but it, for any reason, does not resolve. If that machines
+ * uses vhosts you're pretty much screwed)
*/
static GString *Url_resolve_relative(const gchar *RelStr,
DilloUrl *BaseUrlPar,
diff -pru dillo-0.6.4/src/url.h ./url.h
--- dillo-0.6.4/src/url.h Sun Jan 20 06:51:23 2002
+++ ./url.h Tue Apr 30 20:00:04 2002
@@ -46,7 +46,8 @@
#define URL_PATH(u) u->path
#define URL_QUERY(u) u->query
#define URL_FRAGMENT(u) u->fragment
-#define URL_HOST(u) a_Url_hostname(u)
+#define URL_HHOST(u) ((u)->force_hostname)?(u)->force_hostname:a_Url_hostname(u)
+#define URL_HOST(u) a_Url_hostname(u)
#define URL_PORT(u) (URL_HOST(u) ? u->port : u->port)
#define URL_FLAGS(u) u->flags
#define URL_DATA(u) u->data
@@ -80,6 +81,7 @@ struct _DilloUrl {
const gchar *query; // (no need to free them)
const gchar *fragment; //
const gchar *hostname; //
+ const gchar *force_hostname;
gint port;
gint flags;
const gchar *data; /* POST */
Only in .: url.h~
|