Creative Commons Attribution 3.0 License
See Also: Wjhonson's Fifty Most Recent Knols
[Edit]
Discussion using Calc (written 19 Aug 2009)
For some time, as those who follow me know, I have experimented with creating a list of all my Knols, in Pageview order, and showing a Running Total. It's not difficult to create such a page, the problems come however when you want to update it from day-to-day or week-to-week. As some pages move-up the table quicker than others (they are more popular) you will need to move rows as you update. The Knol WYSIWYG editor provides an easy way to delete or add a row, but not an easy way to move a row. Also I'm unclear on whether there are actual functions built into Knol to allow adding a column of numbers and displaying the result in another cell of a table.In my previous write-up Wjhonson's Knols with Pageviews and Running Total I discussed how moving a row is trivial in HTML mode, and this is how I had been doing it a few weeks ago. To move a row in HTML mode, you simply find where it starts at the <tr> tag, and when it ends at the </tr> tag. You cut from the <tr> tag to the </tr> tag and then paste that entire text into a new location. Click update and your table will display with the row in its new location.
However moving in-and-out of HTML mode with large tables encounters serious lag issues and so is really unworkable except with tables of perhaps twenty items or less. I believe this is likely to be because when you go into HTML mode, Knol sends all your table data to your computer locally, and when you move out of it, it sends it all back to Knol again. I showed in that previous Knol how you could avoid going into HTML mode by creating a mini-table for each line-item and using a special editing technique. The method outlined there, does not encounter the lag issue and thus is far more workable, i.e. less frustrating. You still however have to manually re-add the running total column as you go, when you move a row. In the current Knol, I will show how the process can be improved more perhaps, by using a spreadsheet program.
There is a free, downloadable program called OpenOffice. It has multiple sub-programs, one of which is called Calc. Calc opens looking more-or-less like an Excel spreadsheet. You could probably do the same sequence I outline below, using any spreadsheet program, provided it can export your result in HTML more.
I opened OpenOffice Calc and set-up each cell in the third column to make a partial sum (running total). I suppose there must be a way to make it more automatic, right now I had to create the sum function for each cell in the third column. Seems like there should be a way to make a single function for the entire column. As you will see below, I got lazy after the first forty or so cells, and starting summing only every tenth cell beyond that.
At any rate, using the on-site "My Knols", listed by Pageviews, I created a table in Calc, by manually cutting and pasting each item and it's current pageview total. When that table was complete, I used the Export function in Calc, to turn it into a local web-page (HTML) on my computer. I then opened that HTML, selected all the text in it, and cut-and-pasted it here into a new Knol. And then I added this discussion you're reading.
There are two more things I wanted to do however. I like that Knol adds borders around a table, but I can't see how to do that directly in Calc, when I pasted the result here, it came up without any border. So after I copied it here, I wanted to add a border. To do this, I add a "dummy" table to the top of this Knol making it just two-by-two. The size of the "dummy table" doesn't matter because we're going to delete it right away.
Next, I open the page in HTML mode, and at the top find the <table> directive. You can now see why I added the dummy table, because doing this, directly provides us with the standard Knol <table> directive without the need to remember it. Now I strip out the old <table> directive that came from Calc, and leave in the Knol <table> directive and then strip out the "dummy table" row and column tags. For reference the standard Knol <table> directive is <table style="border-color: rgb(136, 136, 136); border-width: 1px; border-collapse: collapse;" border="1" bordercolor="#888888" cellspacing="0">. That is the standard <table> directive that Knol creates when you make a new table. And then we see the final result below, with the standard border.
The other thing I wanted to do regards the Heading of the table. I don't see how in Calc to make a heading that runs across the top of the whole table, but it's easy to do in Knol. Open the HTML editor, and find the line that looks like this <td style="text-align: left; width: 3.9437in;"> <p>Wjhonson's Pageviews and Running Total</p>
Now change it to look like this <td colspan=3 style="text-align: left; width: 3.9437in;"> <p>Wjhonson's Pageviews and Running Total</p>
The colspan directive tells the table parser that this cell should span three columns, instead of the default one. Then take out the now-extra <td></td> directives and the extra <p></p> directives from that row. Then maybe center it and make it larger and you're done. See the final result below.
[Edit]
The Table
| |||
15734 | |||
14280 | |||
5926 | |||
5070 | |||
4995 | |||
4526 | |||
4480 | 63722 | ||
4419 | |||
4292 | |||
4171 | |||
3716 | |||
3677 | 75286 | ||
3423 | |||
3410 | |||
3270 | |||
3075 | |||
2969 | 91433 | ||
2957 | |||
2567 | |||
2572 | |||
2443 | 104360 | ||
2388 | |||
2182 | |||
2100 | |||
2055 | |||
1983 | |||
1947 | |||
114627 | |||
1888 | |||
1839 | |||
1795 | |||
1707 | |||
1680 | |||
1642 | |||
1535 | |||
1512 | |||
1439 | |||
129664 | |||
1427 | |||
1421 | |||
1420 | |||
1406 | |||
1384 | |||
1374 | |||
1361 | midpt | ||
1353 | |||
Ahnentafel "Ancestor Table" of Diana Spencer, Princess of Wales | 1312 | ||
142122 | |||
1301 | |||
1293 | |||
1281 | |||
1233 | |||
1205 | |||
1186 | |||
1170 | |||
1110 | |||
1108 | |||
153009 | |||
1102 | |||
1096 | |||
1094 | |||
1092 | |||
1084 | |||
1068 | |||
1064 | |||
1048 | |||
1037 | |||
162694 | |||
990 | |||
985 | |||
978 | |||
977 | |||
959 | |||
953 | |||
940 | |||
931 | |||
919 | |||
171326 | |||
879 | |||
852 | |||
848 | |||
846 | |||
841 | |||
840 | |||
826 | |||
817 | |||
793 | |||
178868 | |||
789 | |||
788 | |||
756 | |||
748 | |||
743 | |||
740 | |||
729 | |||
722 | 2thds | ||
721 | |||
185604 | |||
716 | |||
713 | |||
709 | |||
701 | |||
697 | |||
692 | |||
689 | |||
685 | |||
681 | |||
191887 | |||
681 | |||
675 | |||
674 | |||
671 | |||
667 | |||
666 | |||
665 | |||
659 | |||
650 | |||
197895 | |||
645 | |||
638 | |||
635 | |||
627 | |||
Bewitched, 1964-1972, Television Series with Elizabeth Montgomery | 624 | ||
623 | |||
622 | |||
621 | |||
620 | |||
204783 | |||
617 | |||
616 | |||
606 | |||
590 | |||
589 | |||
588 | |||
585 | |||
579 | |||
Ahnentafel "Ancestor Table" of Sarah Ferguson, Duchess of York | 574 | ||
208894 | |||
573 | |||
571 | |||
569 | |||
567 | |||
564 | |||
562 | |||
561 | |||
559 | |||
553 | |||
213973 | |||
545 | |||
543 | |||
Male-line descendants of John Hunt (1749-1831) of New Haven, Connecticut | 534 | ||
533 | |||
531 | |||
529 | |||
529 | |||
526 | * | ||
517 | |||
218760 | |||
513 | |||
510 | |||
504 | |||
499 | |||
495 | |||
Lady Windermere's Fan : A Play About a Good Woman, by Oscar Wilde | 494 | ||
489 | |||
487 | |||
Ahnentafel "Ancestor Table" of Charles Windsor, Prince of Wales | 484 | ||
223235 | |||
483 | |||
480 | |||
476 | |||
474 | |||
473 | |||
473 | |||
455 | |||
446 | |||
446 | |||
227441 | |||
442 | |||
440 | |||
438 | |||
437 | |||
435 | |||
433 | |||
431 | |||
Ahnentafel "Ancestor Table" of Diana Spencer, Princess of Wales | 430 | ||
430 | |||
231357 | |||
429 | |||
426 | |||
426 | |||
425 | |||
423 | |||
419 | |||
416 | |||
413 | |||
412 | |||
235146 | |||
409 | |||
405 | |||
403 | |||
403 | |||
399 | |||
397 | |||
394 | |||
394 | |||
383 | |||
238733 | |||
381 | |||
381 | |||
380 | |||
379 | |||
378 | |||
375 | |||
374 | |||
370 | |||
368 | |||
242119 | |||
360 | |||
355 | |||
354 | |||
Ahnentafel "Ancestor Table" of Diana Spencer, Princess of Wales | 352 | ||
352 | |||
Ahnentafel "Ancestor Table" of Diana Spencer, Princess of Wales | 348 | ||
348 | |||
345 | |||
345 | |||
245278 | |||
344 | |||
343 | |||
340 | |||
339 | |||
334 | |||
334 | |||
333 | |||
327 | |||
325 | |||
248297 | |||
324 | |||
323 | |||
319 | |||
317 | |||
310 | |||
309 | |||
305 | |||
305 | |||
305 | |||
251114 | |||
305 | |||
304 | |||
303 | |||
302 | |||
300 | |||
299 | |||
296 | |||
294 | |||
294 | |||
253811 | |||
289 | |||
288 | |||
287 | |||
286 | |||
278 | |||
276 | |||
274 | |||
270 | |||
266 | |||
256325 | |||
265 | |||
260 | |||
258 | |||
256 | |||
257 | |||
255 | |||
253 | |||
252 | |||
249 | |||
258630 | |||
247 | |||
246 | |||
245 | |||
240 | |||
237 | |||
236 | |||
235 | |||
234 | |||
231 | |||
260781 | |||
231 | |||
226 | |||
223 | |||
222 | |||
219 | |||
218 | |||
217 | |||
216 | |||
213 | |||
262766 | |||
213 | |||
211 | |||
211 | |||
211 | |||
210 | |||
209 | |||
209 | |||
208 | |||
207 | |||
264655 | |||
206 | |||
204 | |||
204 | |||
203 | |||
201 | |||
200 | |||
197 | |||
196 | |||
195 | |||
266461 | |||
194 | |||
193 | |||
192 | |||
191 | |||
190 | |||
189 | |||
186 | |||
185 | |||
185 | |||
268166 | |||
184 | |||
182 | |||
178 | |||
170 | |||
168 | |||
162 | |||
161 | |||
158 | |||
157 | |||
269686 | |||
152 | |||
151 | |||
151 | |||
147 | |||
146 | |||
145 | |||
141 | |||
134 | |||
133 | |||
270986 | |||
132 | |||
131 | |||
130 | |||
129 | |||
128 | |||
127 | |||
126 | |||
People with articles in both Wikipedia and News of the Weird | 125 | ||
124 | |||
272138 | |||
123 | |||
116 | |||
113 | |||
109 | |||
108 | |||
107 | |||
105 | |||
105 | |||
100 | |||
273124 | |||
95 | |||
90 | |||
80 | |||
80 | |||
80 | |||
78 | |||
77 | |||
77 | |||
76 | |||
273857 | |||
74 | |||
70 | |||
67 | |||
57 | |||
56 | |||
43 | |||
40 | |||
40 | |||
37 | |||
274377 | |||
Ahnentafel "Ancestor Table" of Camilla Parker-Bowles, Duchess of Cornwall | 36 | ||
32 | |||
30 | |||
24 | |||
24 | |||
24 | |||
24 | |||
23 | |||
15 | |||
274573 | |||
14 | |||
13 | |||
11 | |||
10 | |||
10 | |||
10 | |||
10 | |||
10 | |||
8 | |||
274669 | |||
Aethelweard's Chronicle vs. the Anglo-Saxon Chronicle (Aethelwulf) | 7 | ||
6 | |||
5 | |||
4 | |||
3 | |||
3 | |||
0 | |||
0 | |||
274697 | |||
Collections | |||
1254 | |||
276 | |||
272 | |||
185 | |||
177 | |||
157 | |||
277018 |
[Edit]