Welcome to European Tribune. It's gone a bit quiet around here these days, but it's still going.

Of version numbering and convergence

by someone Sun Sep 23rd, 2007 at 05:37:28 AM EST

Most software indulges in version numbering along an unbounded trajectory. It seems that those applications can endure an almost endless progression of added features for the next release. It seems quite in line with the neoliberal consensus that better is always more, in an ever increasing amount. The alternative is to use a convergent version numbering:

Donald Knuth has specified that TeX's version number converges to π, therefore version 3.1415 is only the fourth minor revision after version 3. The next minor revision will be version 3.14159. Similarly, MetaFont's version number converges to e (2.7182818284...).
Somehow, the tendency of the dominant software releases to use unbounded version numbering seems symptomatic of the neoliberal pathology that will not recognize the convergent nature of maturing technologies, in an effort to encourage consumption of ever 'new' products.

This is just to introduce the latest version of the Firefox extension [UPDATE new file with some bug-fixes + DoDo's button][UPDATE2 lets try again...] TribExt, which I started a while a go. Update [2007-9-24 12:28:47 by DoDo]: Now also downloadable from ET.

A nifty browser extension to enhance your ET experience — promoted by Migeru


So, are you running Firefox? (If not, you really should get it here) If so, would you consider downloading and installing the new version of TribExt? To do this, download the file to your computer. (Annoying anti-bot download page, sorry!) Then open it with Firefox ("File" - "Open File" == Ctrl-O) which will install it in the appropriate place.

The new version comes with lots of new goodies. The goal, however, is not to provide an ever expanding set of features in an unbounded way. But to converge towards the ideally working extension for the optimum EuroTrib experience.

New stuff:

  • You will find a new button for each comment, labeled '+4'. This will put a '4' rating in the pull down menu. Simpler than doing it directly, and avoids mouse slips, or page downs that accidentally downrates a comment. Also, if you rate comments and try to exit the page, a dialog will prompt you to register the rating before exiting.
  • Upon loading an ET page, the border around the page will go red if there are any new comments. I find this useful after rating or recommending, as one otherwise might miss that something new appeared.
  • If there are new comments on the page, Ctrl+' (that's the single quote key, and on macs open-apple would be used rather than ctrl) will take you to the next new comment. Ctrl+; (semi-colon key!) will take you to the previous new comment on the page. Nice for long comment threads
  • An Idiotic Acronym Expander is provided. When you see IMHO, afaik, etc. in a page and don't know what it stands for, double click the word, and a span element appears, in green, informing you of its meaning. The span contracts to just the acronym on mouse-out, and expands again on mouse-over. It remains green and mouse-over active after the double click, until you reload the page.
  • Some development of a new translate feature. With some text selected, using the right-click context menu, or under 'Tools' in the menu bar, or the keyboard shortcut Ctrl+Shift+N (again, macs use open-apple) will open a new tab with a translation table. The elements in the sidebar copy tray will now also have a little 'T' symbol under the 'delete' symbol. Clicking it will open the item for translation.
    • Click on a table cell, any table cell, and the cell will spawn a textarea with the html contents of that cell in. The output html at the bottom will update itself when you navigate to another translation cell, or click any other part of the page, including the output area.
    • Borders are provided around cells to make it more clear where they begin and end, since the translation part of the table starts empty. A checkbox is provided to include or exclude these borders in your output html.
    • Navigation from a textarea to the neighbouring cells is also possible with Ctrl+arrowkeys. (This one uses the actual Ctrl key on a mac. That should probably be changed...)
    • A single linebreak in a textbox will become a <br> tag when the box is navigated away from
    • A double linebreak or a <p> will cause a new table row to be formed.
    • Shift+Enter also causes new row to be formed, but immediately, rather when you click away from the current textbox. The cursor is placed in the new box.
    • A double Backspace with the cursor at the beginning of a textbox will merge that cell with the previous one, placing your cursor in a new textarea, with both cell's content.
    • The way that <p> tags, <br><br>, and double linebreaks are treated in cells, allows you to just pase some html, or plain text into a textarea, and see it expanded to multiple rows when you click something else.
    • There are probably more stuff to be said about this feature, but I'll stop for now, and hope that some of you will be guinea pigs for figuring out in which ways it may not work quite yet. Also, please put up wishes for how you wish this or other features might work, or new things you'd like to have. I've tried to make something that makes sense to me, but it is not necessarily what works for everyone. Feedback is very necessary! Some day soon I will tackle the preference interface for extensions. At that point, we might even make some features customizable!

The first release was humbly designated as version 0.1, so I set out to find which irrational (preferably transcendental) number I might start converging to. The obvious answer is to use the Champernowne constant, C10, as it is both transcendental, and has some other fun properties as well, like normality:

Say we have some real number x. We call x normal in base b if the probability of finding some digit string among the digits of x is the same as if we were to search amongst some random sequence of digits. See normal number for a more detailed explanation.
C10 = 0.12345678900010203... and so it is easy to form successive approximations with new versions. We are now at 0.12!

(the wikipedia page, as well as some other resources indicates 0.1234567891011... as the number. This, however, contradicts their explanation of the construction of the number as a concatenation of digit strings (consider concatenating strings [0],[1],[2],...,[9], which would satisfy the first condition, then strings [0,0],[0,1],...,[9,8],[9,9]))

Update [2007-9-22 15:55:32 by someone]:
So far three different versions have been put out:
1: Had some problems...
2: Had bigger problems
3: ???

Display:
Here you go:

New +4 Button -- there it be!

Red Border -- wait for it...hey!  There it be!

CTRL+' -- On this machine CTRL+SHIFT+' works

CRTL+; -- Ditto

IAE -- It works for the words in your diary.  If I now rename it the IdAEa then if I see an acronym which doesn't expand when clicked, I can say: You know FFGTH?  What does it mean?  I have no IdAEa.

(Boom boom ouch!)

New Translate Feature -- I cannae make much sense of this and it makes me think I need to have downloaded the previous version of TribExt.  I can highlight text and the Translate option appears and clicking it opens a new tab, but I can't see a sidebar copy tray or T's or any delete options.  Help!

--------------------

I like your numbering system.

Don't fight forces, use them R. Buckminster Fuller.

by rg (leopold dot lepster at google mail dot com) on Fri Sep 21st, 2007 at 06:52:18 AM EST
The old version stuff is included in this one as well...
The sidebar opens with Ctrl+Shift+S
Older instructions: European Tribune - Falling into a black hole
What happens in your new translate tab?? Can you see the table? Does clicking on cells work as advertised?
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 07:08:45 AM EST
[ Parent ]
Translator tab works well for me, although I haven't actually posted a comment with it in yet...
by Metatone (metatone [a|t] gmail (dot) com) on Fri Sep 21st, 2007 at 07:11:34 AM EST
[ Parent ]
Let me try:
Kristian von Hornsleth: "Hornsleth Village Project Uganda" Kristian von Hornsleth: "Hornsleth Village Project, Uganda"
Det finns en by i Uganda som heter Buteyongera. Förut hade invånarna många namn, Ahmed, Susan, Apollo, Jesca och annat. There is a village in Uganda called Buteyongera. Before the residents had many names, Ahmed, Susan, Apollo, Jesca and others.
Numera heter de Hornsleth. ­Ahmed Kabenge har blivit Hornsleth Ahmed Kabenge. Susan Gimeye heter Hornsleth Susan Gimeye. I Ugandas folkbokföring finns i dag drygt 300 personer från Buteyongera som heter Hornsleth. Today they are named Hornsleth. ­Ahmed Kabenge has become Hornsleth Ahmed Kabenge. Susan Gimeye has the name Hornsleth Susan Gimeye. In Uganda today there are more than 300 persons from Buteyongera named Hornsleth.
... ...
Dansken har nämligen blottlagt en stor sanning: att alla mänskliga relationer väsentligen handlar om att exploatera varand­ra. The Dane had exposed a great truth: all human relations are exploitative.
Men provokationen och olusten bottnar förstås inte i att Hornsleth visar att människor exploaterar varandra, och att vita exploaterar svarta. But the provocation and discomfort does not just stem from Hornsleth demonstrating that people exploit each other, and that whites exploit blacks.
Den verkliga provokationen är outtalad och följer i nästa led: vi exploaterar varandra, och vita exploaterar svarta, och låt oss fortsätta med det. The real provocation is unspoken and follows: we exploit each other, and whites exploit black, and let's continue doing that!

Hmm, I seem to have missed removing one of my extra attributes for the output. (Attribute COLNM for tag TD is not allowed). Removing now... Arg, managing to post the correct thing is hard. I swear it worked before I went to fix some other stuff. Well, problem taken care off. Updated links above to point to new version...
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 07:38:33 AM EST
[ Parent ]
This means: metatone and rg, you should reinstall the new one, pointed to by the links above. Or you'll see problems posting.
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 07:44:31 AM EST
[ Parent ]
Fantastic work, btw!
by Metatone (metatone [a|t] gmail (dot) com) on Fri Sep 21st, 2007 at 07:11:49 AM EST
[ Parent ]
; thanks.

(I'll learn it all...and report back!)

Don't fight forces, use them R. Buckminster Fuller.

by rg (leopold dot lepster at google mail dot com) on Fri Sep 21st, 2007 at 08:06:47 AM EST
[ Parent ]
Ho ho!  This comment found courtesy of someone's excellent "find new comment" function!

I really like the red border and the "find new comment" / "find next new comment" / "find previous new comment" features--they save a lot of scrolling in longer diaries.

I also like the "rate all?" question.  It's only once it started appearing that I saw how often I rate as I read but (as ceebs wrote) by the time I've got to the end of the page I've fergot I've rated.

Excellent work, someone, thanks again!

Don't fight forces, use them R. Buckminster Fuller.

by rg (leopold dot lepster at google mail dot com) on Sat Sep 22nd, 2007 at 03:50:34 AM EST
[ Parent ]
I find the red border slightly unnerving, but I suppose it-s just a matter of getting used to it.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:03:12 AM EST
[ Parent ]
The file is copyMenu.js, the line is:
tbl.setAttribute("style", "border: 2px solid red");
if you want to find it and comment it out. (Javascript uses c-style commenting)

Heh! My favourite. Change user preferences by editing the source files.

by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 04:06:48 AM EST
[ Parent ]
I think I might try to contribute some patches for version 0.123

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:09:01 AM EST
[ Parent ]
Great!
(I'm very sorry about the state of the code... As a hardware engineer I have never though it necessary for me to abide by good coding practice, or comment anything... Have fun with the source...)
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 04:12:10 AM EST
[ Parent ]
someone:
Great!
No, even after restarting the browser the sidebar doesn't work.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:16:49 AM EST
[ Parent ]
Would solid green make it a solid green border?


I've been accused of being a Marxist, yet while Harpo's my favourite, it's Groucho I'm always quoting. Odd, that.
by BruceMcF (agila61 at netscape dot net) on Sun Sep 23rd, 2007 at 10:50:35 AM EST
[ Parent ]
Yes. Any defined color can be used, as well as #xxxxxx; for rgb values.
More on the border property.
by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 11:00:06 AM EST
[ Parent ]
Can I annoy you with another nifty detail?...

At present, ET has a white frame of I don't know, maybe 8 pixels. Your red frame adds to it, so the stuff inside is re-sized. Is that by design? Or would it be difficult to do it so that there is no re-sizing?

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sun Sep 23rd, 2007 at 11:05:14 AM EST
[ Parent ]
The resizing is automatic as the border takes some space. The div that contains the table in which all the ET lives has its margin set to 5px in the ET style-sheets. One could, at the time of setting the border to 2px red, change the margin to 3px, thus having the two effect canceling each other out.
by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 11:25:28 AM EST
[ Parent ]
Oh! Thanks for the hint, I managed the rest myself:

  1. Using my frontpager powers, I gave that DIV an ID: body_start. (It is defined in a separate block that )

  2. In copyMenu.js, right after the part on the red border, I added:

var tbl2 = window.content.document.getElementById("body_start");
tbl2.setAttribute("style", "border: 3px solid white");

...and it works!

However, this solution won't work on Booman Tribune or dKos. But I have no idea how to access that DIV without getElementById...

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sun Sep 23rd, 2007 at 02:28:03 PM EST
[ Parent ]
You can use use tbl.parentNode.setAttribute("style", "border: 3px solid white");
The document has the structure of a tree with html tags as nodes. It is navigatable up and down through various properties, such as 'parentNode', and 'children'.

Have you installed the extension Developer's Extension?

The Extension Developer's Extension exists to make life easier for Firefox extension developers.

It's useful for testing bits of code. In particular the Javascript Shell, which lets you evaluate bits of javascript with various windows as current.

And the DOM inspector. It shows you the tree. It comes automatically with the MAC version, but you have to do something to get it for windows.

by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 02:35:34 PM EST
[ Parent ]
I have DOM inspector.

I shall note that my experience with this code consists of tinkering with TribExt over the past few months... and some stuff reminding me of C.

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sun Sep 23rd, 2007 at 02:39:19 PM EST
[ Parent ]
...and sorry, that was an erroneous trial version, the correct code is:

var tbl2 = window.content.document.getElementById("body_start");
tbl2.setAttribute("style", "margin: 3px");


*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sun Sep 23rd, 2007 at 02:36:11 PM EST
[ Parent ]
Do I have to delete the old TribExt first, or can I just download and active the new one?

And thanks a lot - the TribExt sure makes my life easier. :-) And since I am clearing the sidebar regularely it works smoothly.

by Fran on Fri Sep 21st, 2007 at 08:42:39 AM EST
It should work fine installing over the old one. Try it...
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 08:47:54 AM EST
[ Parent ]
I just did that (install without uninstalling over V 0.1), and it stuttered a bit (loaded the front page when I clicked reload your diary page, but only the first time, now it works) (also didn't show the +4 button till I'd reloaded your diary a second time).

But I've just used the +4 button, perfect.

And the red border showed to indicate a new comment, perfect.

Will look at other features as I get time.

Fantastic and wonderful, someone! Thanks!

by afew (afew(a in a circle)eurotrib_dot_com) on Fri Sep 21st, 2007 at 08:55:03 AM EST
[ Parent ]
My +4 button does not work....Why...?
by Solveig (link2ageataol.com) on Sun Sep 23rd, 2007 at 12:42:57 PM EST
[ Parent ]
Does it not put a 4 in the pull down menu? The rating will not be registered until you hit a "Rate all" button, or answer "OK" to the "rate all" dialog when you try to exit the page.

If the button does not put a '4' in the pull down menu, can you look under Tools->Error Console and see if there are any errors. (Don't display warnings, there are always a lot of those!)

by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 12:51:24 PM EST
[ Parent ]
No, it does not put a 4 in the pull down menu.  Nor does it register when I press the "Rate all" button, unless I do it the 'old way'.

Just looked at the Error Console...a long error list...I don't understand any of it

by Solveig (link2ageataol.com) on Sun Sep 23rd, 2007 at 01:29:38 PM EST
[ Parent ]
Do other things work? Red border? Goto next comment command?

In the error console, at the top is a red button labeled "errors". Click it. It will display only errors, no warnings. There should not be very many errors. (most likely) You can click the errors to highlight them, copy with Ctrl+C, and paste in a comment.

by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 02:26:16 PM EST
[ Parent ]
Yes, red line is there.  'Next new' works on the 'æ' key - I have a Norwegian keyboard. I have not found which key has the 'prewious new' yet.

These are the error messages:  

1.

Error: [Exception... "'Permission denied to get property XULElement.accessKey' when calling method: [nsIDOMXULLabelElement::accessKey]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: http://www.aftenposten.no/#AF :: anonymous :: line 612"  data: no]
Source File: http://www.aftenposten.no/#AF
Line: 612

2.
Error: uncaught exception: Permission denied to call method Location.toString

by Solveig (link2ageataol.com) on Sun Sep 23rd, 2007 at 02:40:17 PM EST
[ Parent ]
Sorry, should be: 'previous'...
by Solveig (link2ageataol.com) on Sun Sep 23rd, 2007 at 02:42:53 PM EST
[ Parent ]
+4 button works now...Thanks!
by Solveig (link2ageataol.com) on Mon Sep 24th, 2007 at 09:00:10 AM EST
[ Parent ]
Someone, you are amazing!!! Thank you, it works.
by Fran on Fri Sep 21st, 2007 at 09:03:47 AM EST
[ Parent ]
On which key is the semi-colon on the English keyboard, I have a Swiss keyboard and that is different.

I can work the "next page" feature, by using ctrl+ö the key next to L, but I have not been able to make the "previous page" work, which should be ctrl*;

by Fran on Sat Sep 22nd, 2007 at 01:12:10 AM EST
[ Parent ]
This is interesting, and points to something strange in how Firefox handles characters, keys and keyboard shortcuts. It seems the keys in the xul file are some how related to keyboard keys, rather than the displayable character... Hmn, de dumn. Don't know what to say here. If you want, you can edit the keys as per instructions in this subthread
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 04:03:37 AM EST
[ Parent ]
I like the new features, unfortunately some are inaccessible on this machine due to a broken trackpad. but all in all excellently done.

Any idiot can face a crisis - it's day to day living that wears you out.
by ceebs (ceebs (at) eurotrib (dot) com) on Fri Sep 21st, 2007 at 08:51:50 AM EST
especially like the rating reminder, the ammount of times I've rated and forgotten when I've been lead down a different train of thought by a comment then had to go back and redo all the ratings.

Any idiot can face a crisis - it's day to day living that wears you out.
by ceebs (ceebs (at) eurotrib (dot) com) on Fri Sep 21st, 2007 at 09:01:50 AM EST
[ Parent ]
The rating reminder doesn't work as it should when, say, the reason you are exiting the page is to reply to a comment. Try it. Rate this comment (not necessarily +4), don't hit "Rate all", but instead "reply to this". You'll see the address bar temporarily displays the "post#here" URL but then it reverts to just showing you the diary with the comments rated.

So, we need a call stack.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd

by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 02:05:22 AM EST
[ Parent ]
Yeah, I never got around to fixing this. The 'rate all' causes a page load. It seems not possible to have this pageload not happen, as it is invoked from the eurotrib side. I could detect and intercept it, but there is a small problem of passing data between different windows, and the window does change, or rather reload on a page load. There are ways around it, and I shall be exploring them shortly...
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:26:27 AM EST
[ Parent ]
I wish I had a modern mind
so I could install every bite and bit
but I have to say in all candor
that, I don't understand this shit.

Hey, Grandma Moses started late!
by LEP on Fri Sep 21st, 2007 at 10:51:45 AM EST
Be bold!
What do
you
have to lose?
There is nothing
to understand. Most of it
is point-and-click. And
a few keyboard commands.
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:01:37 AM EST
[ Parent ]
I am bold.
I am daring.
I am debonair and carefree.
So I climb the ladder to the top
I click on "TribExt" as you ordain.
And I arrive in the bowels of Badongo.com.
That's already frightening; Badongo sounds like "badass."
So I wait and wait and wait; nothing happens.
So I click on the line that says "if you don't want to wait, click here." I click,
And nothing happens.
HELP!

Hey, Grandma Moses started late!
by LEP on Fri Sep 21st, 2007 at 11:32:53 AM EST
[ Parent ]
Yeah, that site is not great... Don't click the no wait link. Instead wait for a picture with some scrambeled letters to appear. Enter the letters in the picture, you do have to enter them in caps, not lower case. Then click the "download file here" button. Then you get to a page that tries to sell you "premium service". You have to wait for approximately 20 sec. Again, don't click the no wait link. The countdown is visable to the right of the rather larger "Go Premium" link. After 20sec,  a button labeled "Download you file here" will appear in this space. Click it, and download should start.

(Does anyone know of some place that offers better file upload/download service for free???)

by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:41:01 AM EST
[ Parent ]
This might be less evil (though only available for 14 days)
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:45:03 AM EST
[ Parent ]
I have succeeded. Thanks. Have some freshly baked Parisian cakes.



Hey, Grandma Moses started late!

by LEP on Fri Sep 21st, 2007 at 12:05:12 PM EST
[ Parent ]
And, please ask as many questions as you can think of. I'll be around to answer any and all!
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 12:10:25 PM EST
[ Parent ]
The feature I find great is that it takes me to the next comment that I haven't read. For example, when I host the photoblog diary I want to read all comments and so far there have been between 67 and 120 comments in those blogs. It could take quite some time to find the new comment before. Now it's Control' and voila. Merci someone.

Hey, Grandma Moses started late!
by LEP on Fri Sep 21st, 2007 at 12:32:19 PM EST
[ Parent ]
Until now, I used the Search in page function with "[new]" as search string.

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sat Sep 22nd, 2007 at 10:39:20 AM EST
[ Parent ]
Thanks a lot, someone!

+4 button works fine
Rating reminder works fine
Red border works fine
IAE expander works fine
Translate feature seems to work fine (I have yet to use it)

Although I have a problem:  the Ctrl+' and Ctrl+. don't work. Is it an AZERTY keyboard problem?

BTW, I suggest to call the +4 button the metavision button ;-)...


"Dieu se rit des hommes qui se plaignent des conséquences alors qu'ils en chérissent les causes" Jacques-Bénigne Bossuet

by Melanchthon on Fri Sep 21st, 2007 at 11:00:19 AM EST
Although I have a problem:  the Ctrl+' and Ctrl+. don't work. Is it an AZERTY keyboard problem?

Hmm. That could be a problem. What are the keys to the right of the 'L' of you keyboard? (Left of the enter, is your 'L' in the right place??)

by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:06:19 AM EST
[ Parent ]
You can search on your computer for the file: copyMenu.xul
In it you will find the defined keys. Looks like:

<key id="NextComm"
     modifiers="accel" command="doNextComm
     key="'"/>

<key id="PrevComm" command="doPrevComm"
     modifiers="accel"
     key=";"/>

The "accel" indicates use of the 'ctrl' key on windows, 'open-apple' on mac. You can put "accel shift" to indicate both 'ctrl' and 'shift' to be pressed. That will make it easier if you can't find good unused keys. I didn't want "accel shift" for these commands because I use them a lot, and having to press both is harder... But picking a normal, non-punctuation key might be a better solution if you have these sorts of problems.

by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:17:02 AM EST
[ Parent ]
And for those that want to edit this file but have little experience with source code: Use notepad or some such editor! Never, ever Word. It will totally screw your files and nothing will work.
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:19:05 AM EST
[ Parent ]
I can't find the file: copyMenu.xul...

"Dieu se rit des hommes qui se plaignent des conséquences alors qu'ils en chérissent les causes" Jacques-Bénigne Bossuet
by Melanchthon on Fri Sep 21st, 2007 at 11:23:10 AM EST
[ Parent ]
no? how about the folder tribext@someone?
Mac or windows? (Or linux?)
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:25:22 AM EST
[ Parent ]
You have to search 'system files' and 'hidden files and folders' to find it under windows. It is available under 'more advanced options' in the search thingi. (At least under XP...)
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:28:43 AM EST
[ Parent ]
You might also have to look under Tools->FolderOptions, then under the View tab. Check the radio button: "Show hidden files and folders", as well as uncheck the checkbox: "Hide protected operating system files", and then hit the button: "apply to all folders".
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 11:35:02 AM EST
[ Parent ]
I found the file, changed the keys, and now it's working fine. Thanks, someone, it's a precious tool!

"Dieu se rit des hommes qui se plaignent des conséquences alors qu'ils en chérissent les causes" Jacques-Bénigne Bossuet
by Melanchthon on Fri Sep 21st, 2007 at 12:29:10 PM EST
[ Parent ]
What keys did you use, Blackearth, me old pirate?

I'm using an AZERTY too. I've tried letters with ctrl or ctrl+shift, but I run up against standard Firefox shortcuts.

by afew (afew(a in a circle)eurotrib_dot_com) on Fri Sep 21st, 2007 at 02:49:29 PM EST
[ Parent ]
in the copyMenu.xul file, I have replaced "'" by "Y" and ";" by "Z"... without utilsing "shift"

So it's Ctrl+Y for next comment
and Ctrl+Z for previous comment

"Dieu se rit des hommes qui se plaignent des conséquences alors qu'ils en chérissent les causes" Jacques-Bénigne Bossuet

by Melanchthon on Fri Sep 21st, 2007 at 05:10:07 PM EST
[ Parent ]
I changed key="'" to keycode="VK_DOWN", and thus Ctrl+down button does it for me.

Meanwhile I also translated the menu insertions except one: I forgot where the "Copy Html" insertion into the Edit menu was - someone?

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Fri Sep 21st, 2007 at 06:37:49 PM EST
[ Parent ]
...found it...

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Fri Sep 21st, 2007 at 06:57:52 PM EST
[ Parent ]
Can keys be designated by ASCII code? Would it help?
by afew (afew(a in a circle)eurotrib_dot_com) on Fri Sep 21st, 2007 at 02:50:37 PM EST
[ Parent ]
XUL:key - MDC
key
Type: character
The character that is must be pressed. This should be set to a displayable character.

I don't know why this wouldn't work on a different keyboard layout, if it is the displayable character that is compared. Surely it must then already be a matter of ascii character comparison, unrelated to keyboard layout?
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 02:59:22 PM EST
[ Parent ]
I'd have thought so. Normally ASCII code lets you forget about keyboard layout.
by afew (afew(a in a circle)eurotrib_dot_com) on Fri Sep 21st, 2007 at 03:04:18 PM EST
[ Parent ]
to the right of the L key, I have M, then %/ù, then Enter.

"Dieu se rit des hommes qui se plaignent des conséquences alors qu'ils en chérissent les causes" Jacques-Bénigne Bossuet
by Melanchthon on Fri Sep 21st, 2007 at 11:25:09 AM EST
[ Parent ]
Your program seems to work on Daily Kos also,

Hey, Grandma Moses started late!
by LEP on Fri Sep 21st, 2007 at 12:56:59 PM EST
Indeed. I forgot to mention that. Thanks.
by someone (s0me1smail(a)gmail(d)com) on Fri Sep 21st, 2007 at 12:58:58 PM EST
[ Parent ]
That should be justification enough to put the thing on SourceForge.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:47:41 AM EST
[ Parent ]
Wow, back with a vengeance!

Many thanks for the new version, it seems to work for me. Some notes:

  1. I think the Translate in the right-click menu is better placed under Copy Html, URL, title. You probably intended it for the bottom of that menu, but if one has other extensions (say Cooliris) those place extra menu points there.

  2. I couldn't reproduce this error so far, but the first time I tried the translation tool, and entered random letters into the edit fields, somehow some of the letters were converted into nonsensical attributes in a span tag. Any idea what was at work there?

  3. would it be possible in a future version to put a button into the Translate tab that (a) closes it, (2) puts the html code onto the clipboard? (Or is there already a shortcut I failed to discover?)

  4. In an even later version, could you internationalise TribExt? (Now I'll have to dig into the code after each update to fit it to my Hungarian-version Firefox.)


*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Fri Sep 21st, 2007 at 02:07:43 PM EST
2b) That kind of error repeats, unfortunately. Also, sometimes editing is disabled after I click on the outgoing html code, or alternatively the outgoing code can't be copied.

5) If I open two diaries in new tabs, the new comments function and the "metavision button" don't work.

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Fri Sep 21st, 2007 at 06:53:30 PM EST
[ Parent ]
  1. I managed to reproduce this one, exactly once. This is interference with the acronym expander. Don't know how exactly it can happen, but the span I got had 'acrm' and 'expn' attributes, which are the ones I use for the IAE spans. I'll disable the IAE for translate pages. For the rest, I have been unable to reproduce it. Does the Error Console (under Tools menu) give you a hint?

  2. Also, don't know as I can't reproduce it. Check the Error Console. The easiest is probably to clear it once, then do your stuff, then display only errors, not warnings, as the eurotrib pages causes lots of warnings.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:11:59 AM EST
[ Parent ]
On 5: I again reproduced it. One important detail I forgot: opening two diaries in new tabs simultaneously (i.e. I open the second while the first still loads). It appears that the functions are disabled only in the diary second to be opened.

The Error Console displays a series of three messages (I'm translating into English):

Error while evaluating the value of the "margin-bottom" property. Declaration ignored. Line 71
Unknown attribute: "align". Declaration ignored. Line 94
Unknown attribute: "behavior". Declaration ignored. Line 422

On 2b: I will do other experiments later today, now I only looked back in the Error Console. I find errors in the "overflow" attribute, something about getting an 'O' instead of an expected color.

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sat Sep 22nd, 2007 at 09:51:04 AM EST
[ Parent ]
Now that the newest version works, I had another look at 5.

To recap, the problem is that if I open a diary into a new tab, and while it still loads, open another in a second new tab, there will be no metavision buttons and no red frame in the second.

I looked at the code, and although I don't understand much of it, I figured as much that function ETload() calls both of the failing features.

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sun Sep 23rd, 2007 at 05:41:48 AM EST
[ Parent ]
Yes, indeed you are right.

The reason for this: The TribExt stuff gets added following the "DOMContentLoaded" event, which gets raised after the page loads, but before associated content, such as images, are loaded. This is a document related event, i.e. the target of the event is a document. The window, which is the global variable one most often starts from when adding stuff, is the page on top, which is visible. One would think it would now be a simple matter of just doing the operations to the document which is passed as a target to the event handler. Not so! The document =is in fact contained in a safety wrapper which doesn't allow all types of operations.

I think I have gotten around this by having the function responing to the "DOMContentLoaded" event set an attribute in the target documents <body> element to true. The ETload function is then called, checks if the body of the document of the current window has this attribute set to true, does its stuff, and then makes it false. This is so that when a page is loaded in another tab we don't try to update the document in the presently opened one. The way to then make it work, is to setup ETload as an event listener for a "click" event on all windows. So when the new tab of an ET story is selected, the document body is checked for the appropriate attribute, and TribExt content loaded if it is true. It seems to work so far. Must check for interference with other features...

Isn't this fun?

by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 08:55:48 AM EST
[ Parent ]
I think I have addressed point 1-3 as far as I can without further input from you. I'll put up an updated version in the body of the diary soon.
Point 4 is difficult, in that I have no idea what this 'internationalization' would involve... If you have some time to dig around and send me a link or two on how this works, I'll see how much work it would be, etc.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 07:44:04 AM EST
[ Parent ]
Basically, put all the text that is displayed to the user into appropriately named and encapsulated character constants. Then those caracter constants can be taken out to a locale-specific file, and translators can localise the locale-specific file to their own locale.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 07:47:53 AM EST
[ Parent ]
Hmm, that sounds like it would be annoying to implement, and not very much fun... I think I know what you are talking about. It's the stuff that goes in the Locale directory, with some .dtd (or .ddt!!??) files to make up content. It's another type of interface, and I doubt that I will want to dig into it in the near future.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 07:51:58 AM EST
[ Parent ]
Well, scratching a developer's itch is the developer's own work. So that's a task for DoDo and I, hopefully with your assistance.

Can we you put the source code for 0.123 on CVS? SourceForge does provide CVS, right?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd

by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 07:55:10 AM EST
[ Parent ]
I looked briefly at sourceforge. it requires a rather complicated sounding registration and review process for new projects. It might be worth pursuing yet, and I did just register an account. Don't know about the CVS thing. But, if you want to find an appropriate place to CVS this, I think that's a great idea, and if SourceForge can be made to work for us, why not??
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 08:04:34 AM EST
[ Parent ]
This is a tiny piece of software... If we had some proper web-based groupware tools with version control we could just stick the source there. Colman? Colman!

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 08:13:31 AM EST
[ Parent ]
Personally I don't need it to be a full-scale standard solution. Just that all the displayed text specifications are converted into character variables, whose values are read from a separate file, be it a simple .txt or whatever. One that can be chosen as an option, then I can make the file for my own locale just by editing the English version.

But having thought more about it, updating would complicate things: the old .txt/whatever file should not be overwritten, but the updater should amend it with new character variables (in English, for us to translate). Or, alternatively, after an update, I and others should send you back our locale files, so that you can include them in the next version's package, and amend them with the new character variables by hand.

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sat Sep 22nd, 2007 at 10:36:16 AM EST
[ Parent ]
From what I can gather, it's not really complicated. Mozilla.org has a section on localising strings in XUL files. What has to be done is three steps:
  1. creating .dtd locale files of the same name as the .xul file,
  2. insert one line referring to the .dtd file into the .xul file,
  3. replace text strings (say "Copy this and that") with the text variable defined in the .dtd file, with an ampersand placed before, and keeping it between " marks ("&my.textvariable").

The .dtd files are pretty simple, with all lines taking the form:

<!ENTITY my.textvariable "Copy this and that">

Soon I will experiment with localising TribExt myself.

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sun Sep 23rd, 2007 at 11:01:52 AM EST
[ Parent ]
Excellent!
by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 11:04:45 AM EST
[ Parent ]
Okkkaaaaaaaay... after solving an inordinate amount of mostly self-caused bugs, I'm now done. I

  1. have an edited version of copyMenu.xul,
  2. created a locale/en-US/copyMenu.dtd file,
  3. created a locale/hu-HU/copyMenu.dtd file in a new hu-HU sub-directory,
  4. just for safety created a locale/hu-HU/copysidear.dtd file (though it seems obsolete),
  5. in the chrome.manifest file, corrected the "locale tribext en-US locale/en-US/" line to "locale tribext en-US chrome/locale/en-US/" and added a similar line for hu-HU.

I could send 1-3, or even 1-5, to you in email.

Two further notes though.

(a) I see the Translate edit tab is solved with a .html file. I haven't yet figured out how to enter character variables into it. Maybe that can be solved in translate.xul?

(b) Some files, including chrome.manifest, display as one line with square characters in place of line breaks in the Notepad. Is that my fault, or the residual of a Windows vs. Apple/Unix/Linux thing?

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sun Sep 23rd, 2007 at 01:54:08 PM EST
[ Parent ]
I am unwilling to move to a .xul file, as the two formats are not really that easy to work between. In short, you have to use different elements for the .xul file. And while you can use html tags in a xul file by formatting them in a special way, the result is a bit unpredictable. I did it for the sidebar and the popups. It was a real pain in the ass, and the result was not perfect.
by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 02:38:46 PM EST
[ Parent ]
If there is not a automatic way to internationalize the html, it can always be over come with some scripting, using input from the dtd files.

Do send me your files, please.

by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 02:41:48 PM EST
[ Parent ]
Done. Couldn't attach the two copyMenu.dtd files in the same email, so I sent them in two.

Hope only the (a) and (d) are there to fool the spambots.

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sun Sep 23rd, 2007 at 02:55:07 PM EST
[ Parent ]
If someone is watching who'd try it him/herself, I forgot a fourth step:
4) Add a line to the chrome manifest too.

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sun Sep 23rd, 2007 at 11:10:26 AM EST
[ Parent ]
While we are at it, would it be possible to have a keyboard shortcut for "Top of page" and "End of page"?

and a tool for embeddding a youtube clip?

and a pony?

"Dieu se rit des hommes qui se plaignent des conséquences alors qu'ils en chérissent les causes" Jacques-Bénigne Bossuet

by Melanchthon on Fri Sep 21st, 2007 at 07:13:44 PM EST


'The history of public debt is full of irony. It rarely follows our ideas of order and justice.' Thomas Piketty
by melo (melometa4(at)gmail.com) on Fri Sep 21st, 2007 at 10:05:08 PM EST
[ Parent ]
"Top of page" == "Home", or openapple+uparrow (Ctrl uparrow? Ctrl PageUp? on widows, don't remember...)

We already have an ET youtube macro...

European Tribune - New User Guide

((youtube DvAuqYFVrqI))
((googlevideo -8396144199570910608))
((dailymotion 4wdUndK9QZnOie7D))
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:54:25 AM EST
[ Parent ]
Thanks! In fact, I have PgUp and PgDn keys on the Num pad of my laptop keyboard... Shame on me!

And what about the pony?

"Dieu se rit des hommes qui se plaignent des conséquences alors qu'ils en chérissent les causes" Jacques-Bénigne Bossuet

by Melanchthon on Sat Sep 22nd, 2007 at 08:31:56 AM EST
[ Parent ]
For windows:

To go to the very top of a diary use CTRL+Home

The Home key is in the block of six keys to the right of the main keyboard section.  On laptops it moves around, but it should still have Home written on it.

To go to the very bottom of a diary use CTRL+End

End is located immediately below (or near for some laptops) the Home key.

Don't fight forces, use them R. Buckminster Fuller.

by rg (leopold dot lepster at google mail dot com) on Sat Sep 22nd, 2007 at 04:00:37 AM EST
[ Parent ]
Thnaks, rg! I found them

"Dieu se rit des hommes qui se plaignent des conséquences alors qu'ils en chérissent les causes" Jacques-Bénigne Bossuet
by Melanchthon on Sat Sep 22nd, 2007 at 08:44:06 AM EST
[ Parent ]
Why in the Sam J. Hill would I want to go out on Sunday morning to muck out the stables?

Maybe an Iron Horse ...
...  but no pony.

I've been accused of being a Marxist, yet while Harpo's my favourite, it's Groucho I'm always quoting. Odd, that.

by BruceMcF (agila61 at netscape dot net) on Sun Sep 23rd, 2007 at 11:11:31 AM EST
[ Parent ]
Hey, someone,

As I was mostly blogging from work and didn't want to install proof positive that I was doing so, I didn't install TribExt 0.1

But I have now installed TribExt 0.12 and I find that although the "copy to sidebar" function works, the "Copy Sidebar" doesn't actually show any selections.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd

by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 01:56:08 AM EST
If it still doesn't work (this bit is a bit flakey first, and then starts working on the next browser quit and restart, sometimes. Don't ask me why...) search your computer for the file csb.js. Make sure it is not write protected. This is where your copied stuff goes. As far as I can tell, this is the smoothest way to pass info between different widows, write a .js file, read it and pass to eval(). I tried putting a line in the code to change write permissions to allow all on this file, but that caused other errors in some instances. So, not quite working, but I don't have any clever ideas right now on how to make this right.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:34:12 AM EST
[ Parent ]
someone:
it flakey first, and then starts working on the next browser quit and restart, sometimes. Don't ask me why...) search your computer for the file csb.js. Make sure it is not write protected. This is where your copied stuff goes. As far as I can tell, this is the smoothest way to pass info between different widows, write a .js file, read it and pass to eval(). I tried putting a line in the code to change write permissions to allow all on this file, but that caused other errors in some instances. So, not quite working, but I don't have
It works, but the sidebar doesn't.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:05:07 AM EST
[ Parent ]
Yeah, that's what I was talking about... what happens when you hit: Ctrl+Shift+S? Do you get a completely blank sidebar? Or one with just a button labeled "Clear Sidebar"? Or nothing at all?
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 04:08:21 AM EST
[ Parent ]
someone:
what happens when you hit: Ctrl+Shift+S? Do you get a completely blank sidebar? Or one with just a button labeled "Clear Sidebar"? Or nothing at all?
A sidebar with a button. For reference:
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.2) Gecko/20060601 Firefox/2.0.0.2 (Ubuntu-edgy)


Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:11:14 AM EST
[ Parent ]
Did you check if the file 'csb.js' in [firefox extension directory]/someone@tribext/chrome/content is write protected? If it is, the Error console will also show some horrible exception error.

I don't know how your linux is set up. For my mac, I had to change the permissions in the finder GUI, chmod didn't do it for some reason. Then I managed to get this file permissions to set up correctly, some how. The interaction with operating system bit is probably the one I know the least. So, less hope here of doing it all correctly...

Actually, I do think I have a fix for this one. It's pretty simple, in fact. But will only do you any good if it is in fact a problem of file permissions. Can you have a look in the error console, under tools menu, to see if the copy-html causes an exception? (display only errors, eurotrib causes a lot of warning...)

by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 04:21:00 AM EST
[ Parent ]
Error: uncaught exception: [Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFileOutputStream.init]"  nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)"  location: "JS frame :: chrome://tribext/content/copyMenu.js :: WriteCopyData :: line 159"  data: no]


Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:41:07 AM EST
[ Parent ]
What is [firefox extension directory]?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:45:23 AM EST
[ Parent ]
It should be somewhere in, say,
~/Library|lib|??/Application Support|??/Firefox|mozilla/Profiles/[profile name]/extensions
I would suggest using some kind of search utility to find the directory tribext@someone
Your exception above looks like the one for write protected files.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 05:05:04 AM EST
[ Parent ]
Oh, it's user-specific. I was searching globally...
migeru@migeru-laptop:~$ ls -l .mozilla/firefox/zr1t3evj.default/extensions/tribext@someone/chrome/content/
total 44
-r-------- 1 migeru migeru 20074 2007-03-14 14:07 copyMenu.js
-r-------- 1 migeru migeru  2035 2007-03-11 14:09 copyMenu.xul
-r-------- 1 migeru migeru  1366 2007-03-11 13:31 copysidebar.css
-r-------- 1 migeru migeru  2887 2007-03-14 14:08 copysidebar.xul
-r-------- 1 migeru migeru   245 2007-03-14 09:47 csb.js
-r-------- 1 migeru migeru   245 2007-03-14 09:47 csb.js.bak
-r-------- 1 migeru migeru   188 2007-03-07 12:30 smallx.PNG
Yep, it's all write-protected.


Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 05:13:04 AM EST
[ Parent ]
Migeru:
Yep, it's all write-protected.
I do
migeru@migeru-laptop:~$ chmod 640 .mozilla/firefox/zr1t3evj.default/extensions/tribext@someone/chrome/content/csb.js
migeru@migeru-laptop:~$ ls -l .mozilla/firefox/zr1t3evj.default/extensions/tribext@someone/chrome/content/
total 44
-r-------- 1 migeru migeru 20074 2007-03-14 14:07 copyMenu.js
-r-------- 1 migeru migeru  2035 2007-03-11 14:09 copyMenu.xul
-r-------- 1 migeru migeru  1366 2007-03-11 13:31 copysidebar.css
-r-------- 1 migeru migeru  2887 2007-03-14 14:08 copysidebar.xul
-rw-r----- 1 migeru migeru   245 2007-03-14 09:47 csb.js
-r-------- 1 migeru migeru   245 2007-03-14 09:47 csb.js.bak
-r-------- 1 migeru migeru   188 2007-03-07 12:30 smallx.PNG
and now it works.


Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 05:14:36 AM EST
[ Parent ]
Yup. Sounds about right. The global solution, I think, is to ship without the csb.js file. In it's initial state it is just csb.js.bak, so detecting that the file does not exist, and then creating it and copying csb.js (which is what the ClearSidebar command already does, so easy to implement...), should set the file up with correct write permissions... So, changed in my code, will be included in the next bug-fix update. I still have to work out some issues of intereference between the translation thingi, and the IAE.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 05:19:15 AM EST
[ Parent ]
If there are new comments on the page, Ctrl+' (that's the single quote key, and on macs open-apple would be used rather than ctrl) will take you to the next new comment. Ctrl+; (semi-colon key!) will take you to the previous new comment on the page. Nice for long comment threads
Why not Ctrl-> for next and Ctrl-< for previous? At least there is a visual mnemonic involved. Quote and semicolon? What?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 01:59:09 AM EST
Because the Ctrl+;/' are so comfy to use at the same time with my right hand! Thumb on Ctrl, index and middle finger on the other ones. Ctrl+arrowkeys is less good in this respect.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 02:38:09 AM EST
[ Parent ]
It-s not arrow keys, it's greater-than and less-than.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 02:48:20 AM EST
[ Parent ]
Still, a bit close to the Ctrl, the pose is not as relaxed!
(TribExt: Now with more ergonomic keyboard shortcuts!)
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 02:55:48 AM EST
[ Parent ]
So yo mean you're designing the keyboard shortcuts to match your keyboard layout?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 03:13:10 AM EST
[ Parent ]
I take this to be my privilege as the coder...
This is why I should figure out and implement preferences. So that each one can pick sensible keys without having to edit the source code...
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:29:37 AM EST
[ Parent ]
The IAE doesn't work on ASKOD! WTF?

It doesn't work on WTF either!

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd

by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 02:07:11 AM EST
Ah, it does work on WTF but not on WTF?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 02:07:57 AM EST
[ Parent ]
Hmm, the IAE doesn't seem to work for me. It worked on the other computer...

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 09:04:05 AM EST
[ Parent ]
This is excellent work!

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 02:29:31 AM EST
How about adding a TribExt item to the Help menu?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 03:25:17 AM EST
Utterly brilliant!  I've no idea what convergence means but what a great add on.
by In Wales (inwales aaat eurotrib.com) on Sat Sep 22nd, 2007 at 04:57:30 AM EST
Wikipedia on convergence.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:59:01 AM EST
[ Parent ]
Maths! Yuk.
by In Wales (inwales aaat eurotrib.com) on Sat Sep 22nd, 2007 at 05:08:35 AM EST
[ Parent ]
Luckily there's a Wikipedia page so I don't have to find out how to get a lower case delta typed into the comment box.


I've been accused of being a Marxist, yet while Harpo's my favourite, it's Groucho I'm always quoting. Odd, that.
by BruceMcF (agila61 at netscape dot net) on Sun Sep 23rd, 2007 at 11:17:14 AM EST
[ Parent ]
&delta; => δ
by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 11:29:52 AM EST
[ Parent ]
I said I don't have to find out.

Lordie, now I'll have to find some space to remember that. Maybe I'll put it where I used to know how to do BASIC For/Next loops.


I've been accused of being a Marxist, yet while Harpo's my favourite, it's Groucho I'm always quoting. Odd, that.

by BruceMcF (agila61 at netscape dot net) on Sun Sep 23rd, 2007 at 05:03:00 PM EST
[ Parent ]
Thank you, someone!  I have downloaded Firefox and your ET extra, and it works!...so much better!

The irritating 'shrinking' of the page every time I moved between the ET pages is gone!

After a lot of 'trial and error', I also found the key which takes me to the next 'new' comment.  On my Norwegian keyboard it is the key for the letter 'æ'.    

This will save so much time!  (I may even have time  to comment...occasionally...)        

by Solveig (link2ageataol.com) on Sat Sep 22nd, 2007 at 10:31:45 AM EST
I have great troubles with the new version...

  1. First, it takes minutes for Firefox to re-load after re-install.

  2. I found that this problem is reduced if I delete the MACOS or whatever sub-directory.

  3. the Translate tool doesn't work at all, whether I try to start it with a right-click, or from Tools.

  4. the metavision button and the red frame also don't appear now... only the CTRL+ (on my keyboard) É/Á paging to new comments.


*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sat Sep 22nd, 2007 at 10:47:02 AM EST
Forgot: I also tried to remove/re-install.

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sat Sep 22nd, 2007 at 10:47:42 AM EST
[ Parent ]
One more thing I forgot yesterday: how is "Copy As Plain Text" different from the standard Copy function, above which it is inserted in the right-clock menu?

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sat Sep 22nd, 2007 at 11:04:16 AM EST
[ Parent ]
Ick! Sorry about your problems!
The "Copy as Plain Text" is standard copy: Ctrl+C, it just didn't get the shortcut placed next to it, for some reason. The older one is here. I'll see if I can think of some reasons why the new one is so problematic. Has anyone else tried it??
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 11:31:00 AM EST
[ Parent ]
The "Copy as Plain Text" is standard copy: Ctrl+C,

So, is it a dublication?

To make myself clearer, the top of my right-click menu is:

Copy Html, URL, title
Translate
Copy As Plain Text
Másolás
Mindent kijelöl

...of which Copy As Plain Text (a TribExt insertion) and the standard Másolás=Copy seem to do the same thing.

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sat Sep 22nd, 2007 at 11:49:38 AM EST
[ Parent ]
Yes, it should be removed, really.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 11:59:47 AM EST
[ Parent ]
I think the new version "with bugs corrected" is broken compared with the original 0.12

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 12:19:53 PM EST
[ Parent ]
ELPAIS.com: el líder de noticias en español El País.com: leader on News in Spanish
Grande Marlaska prohíbe la marcha de Lizartza contra la alcaldesa del PP JOSÉ YOLDI / AGENCIAS - 61 comentarios [Judge] Grande Marlaska prohibits the Lizartza marsh against the PP [woman] mayor by José Yoldi/Agencies - 61 comments
El juez de la Audiencia Nacional considera que "el acto tiene un fin ilícito que menoscaba gravemente la autoridad de la alcaldesa" The National Court Judge consders "the act to have an illegal aim seriously undermining the mayor's authority"


Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 12:29:19 PM EST
[ Parent ]
What is this green damhik() I keep getting when I get a stray mouse click?

Anyway, I can see everything works, though not all the time!

How complicated is the parser that you use for the translation feature?

Actually, forget about the parser. Is it possible that initially both sides contain the same text? That way hyperlinks and other stuff such as style formatting will be retained and it is just a matter of editing the text on one side.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd

by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 12:32:06 PM EST
[ Parent ]
Migeru: Someone:
What is this green damhik() I keep getting when I get a stray mouse click? Hmmm. Never saw a green damkik(). Where does it appear?
Anyway, I can see everything works, though not all the time! That is concerning. I have a much harder time doing something about errors I can't see...
How complicated is the parser that you use for the translation feature? It just does some html replacements. Nothing too complicated.
Actually, forget about the parser. Is it possible that initially both sides contain the same text? That way hyperlinks and other stuff such as style formatting will be retained and it is just a matter of editing the text on one side.
Yup, this can be done easily

I moved some functions common to several features to one file, aux.js. This is supposed to work, and has been okay for me. But maybe this somehow cause problems? I'll do some code shuffling.

by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 12:43:13 PM EST
[ Parent ]
aux.js, that could be it! It is missing from my chrome>content directory, there is one ._aux.js in the in the __MACOSX directory.

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sat Sep 22nd, 2007 at 01:03:27 PM EST
[ Parent ]
I shall add that content/aux.js is missing after re-download and re-install. Maybe the problem is Windows-specific.

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sat Sep 22nd, 2007 at 01:16:47 PM EST
[ Parent ]
If you double-click to the left to the title of a comment you might get the green damhik()

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 01:06:00 PM EST
[ Parent ]
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:46:48 PM EST
[ Parent ]
Yes, indeed. It has been taken care of.
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:48:26 PM EST
[ Parent ]
What was it?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 03:49:57 PM EST
[ Parent ]
A stray empty quotes in the list of acronyms and expansions. So, the click matched an empty string, and expanded to damhik, which itself can be expanded to...
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:57:55 PM EST
[ Parent ]
You provided the acronyms in the source code?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sat Sep 22nd, 2007 at 04:07:58 PM EST
[ Parent ]
Yup. I just found a list of common ones and turned it in to an array of strings. How else would it be done?
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 04:09:32 PM EST
[ Parent ]
By having the browser parse this.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sun Sep 23rd, 2007 at 01:40:52 AM EST
[ Parent ]
That site, um, doesn't work, and then tells me that I have security problems, and asks me to download fixes...

I really didn't want the trouble of interfacing to a server. Plus, for such a simple utility, I didn't want load times to be an issue. There should be a way of updating the list, though.

by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 03:04:55 AM EST
[ Parent ]
How about the ET Wiki glossary?

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sun Sep 23rd, 2007 at 03:09:21 AM EST
[ Parent ]
by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 05:07:46 AM EST
[ Parent ]
I now installed back the old version, and tried to reproduce the bigger problems I had with the Translate tool last time. But only got the minor one with the span tag so far.

The error message I got several times: "Deprecated method document.getSelection() called. Please use window.getSelection() instead."

Now I save the files and see what happens when I re-install the new version again...

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Sat Sep 22nd, 2007 at 12:50:25 PM EST
[ Parent ]
I put up another one. To try to fix the problems I introduced in the second one!
by someone (s0me1smail(a)gmail(d)com) on Sat Sep 22nd, 2007 at 03:49:15 PM EST
[ Parent ]
Hooray, it works! Even the Copy sidebar!

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Sun Sep 23rd, 2007 at 05:27:04 AM EST
[ Parent ]
On the Front Page it goes, then.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sun Sep 23rd, 2007 at 05:41:21 AM EST
[ Parent ]
The two best numbering systems I know of are:

0.9, 0.99, 0.999... Converges to a value that you can use when you finally ship your code, and makes it look like you're almost done.

1, 2, 3...

by asdf on Sat Sep 22nd, 2007 at 12:55:54 PM EST
  1. Why the annoying download service? Do you need hosting for your extension? BTW I work for a company which develop sa Firefox-based product.

  2. Couldn't it work through GreaseMonkey? It's more appropriate for this kind of site-specific thingie. Unless you need to alter the chrome of course.


A 'centrist' is someone who's neither on the left, nor on the left.
by nicta (nico&#65312;altiva&#8228;fr) on Sun Sep 23rd, 2007 at 09:32:42 AM EST
  1. yes
  2. What is GreaseMonkey?

It seems that I would be unlikely to change frameworks for this, as I already know something about how the Firefox thingi works by now.
by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 09:39:16 AM EST
[ Parent ]
I looked at the GreaseMonkey thingi. It's just another Firefox add-on. I don't see why scripting within another add-on would be preferential. More layers for things to go wrong, and all that.
by someone (s0me1smail(a)gmail(d)com) on Sun Sep 23rd, 2007 at 09:46:22 AM EST
[ Parent ]
No, on the contrary; it factorizes out the common bits. And it makes the scripts really easy to customize.

A 'centrist' is someone who's neither on the left, nor on the left.
by nicta (nico&#65312;altiva&#8228;fr) on Sun Sep 23rd, 2007 at 12:39:14 PM EST
[ Parent ]
Someone, you are Phenomenal, Transcendental and a lot of other good things!  

I explain:
I have read this and become aware of its importance.
I have not comprehended much.
I shall read again, go through the comments and hope that something transcends my brain, within a week.

Thank you for the new 4 button. I gotta learn it!

Our knowledge has surpassed our wisdom. -Charu Saxena.

by metavision on Sun Sep 23rd, 2007 at 12:32:03 PM EST
What you personally need is a Rate all +4 button.

Oye, vatos, dees English sink todos mi ships, chinga sus madres, so escuche: el fleet es ahora refloated, OK? — The War Nerd
by Carrie (migeru at eurotrib dot com) on Sun Sep 23rd, 2007 at 03:29:40 PM EST
[ Parent ]
I have now uploaded the last version to ET, and created a download page.

I consider the download page itself a Beta version, it will be linked up with the rest of ET after your critiques, or maybe only once Tribext v 0.123 is released (with localisation and the multiple diaries bug corrected).

By linking up with the rest of ET, I mean the FAQ, the New User Guide, and maybe a link below the Menu box. It would be best if the latter would only appear for Firefox users who haven't yet downloaded TribExt, but I first have to find out whether that's even possible with simple html...

*Lunatic*, n.
One whose delusions are out of fashion.

by DoDo on Mon Sep 24th, 2007 at 12:26:30 PM EST
Thanks DoDo!

The multi-diary bug should be fixed this week, and the localisation you provided incorporated as well. Further, I have fixed some things about the translate page that were annoying. (Columns widening with typing, and such things.) Now it is mostly bringing it all together, and the final v0.12 can be released. Let's save v0.123 for the next major revision...

by someone (s0me1smail(a)gmail(d)com) on Mon Sep 24th, 2007 at 12:54:48 PM EST
[ Parent ]
OK! But I hope that meanwhile, others will pitch in with more locales (es-ES, fr-FR, maybe I could do de-DE, maybe melo wants to do it-IT, maybe you or askod wants se-SE?)

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Mon Sep 24th, 2007 at 12:59:15 PM EST
[ Parent ]
It's a good idea. Once the localisation is in there, adding more localities should be trivial! Thanks for sorting that one out. (I haven't had a chance to try your files out yet...)
by someone (s0me1smail(a)gmail(d)com) on Mon Sep 24th, 2007 at 01:11:00 PM EST
[ Parent ]
Appropiate query posted in the open thread. By the way, it is also possible to localise the shortcuts used, but I haven't yet implemented that. (In the real v 0.123, do you want to make shortcuts selectable without going into the code?)

*Lunatic*, n.
One whose delusions are out of fashion.
by DoDo on Mon Sep 24th, 2007 at 01:46:39 PM EST
[ Parent ]
Yeah, working out the preference system generally, and then setting up preferences for some things is the next thing to do. With the basic functionality in place, the details should be worked out, before the project gets too unwieldy.
by someone (s0me1smail(a)gmail(d)com) on Mon Sep 24th, 2007 at 02:00:01 PM EST
[ Parent ]
nice work, 'someone'.  props to you.

The difference between theory and practise in practise ...
by DeAnander (de_at_daclarke_dot_org) on Tue Sep 25th, 2007 at 08:23:50 PM EST


Display:
Go to: [ European Tribune Homepage : Top of page : Top of comments ]