Life In 19x19
http://lifein19x19.com/

SGF VIEWER FLASHGOBAN Or EIDOGO
http://lifein19x19.com/viewtopic.php?f=14&t=68
Page 4 of 5

Author:  fwiffo [ Mon Apr 26, 2010 10:11 pm ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

I would recommending upgrading from IE6 even if it didn't save me a lot of work; it's almost 9 years old and full of security holes. :D

Author:  schultz [ Tue Apr 27, 2010 12:42 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

fwiffo wrote:
I would recommending upgrading from IE6 even if it didn't save me a lot of work; it's almost 9 years old and full of security holes. :D

Please upgrade from IE6. This will make ME feel better. :) When even Microsoft has decided to stop supporting it, you know it's definitely time to move on. And fwiffo is very right about the security holes - I'd recommend just for this, even if it didn't affect your Go viewing pleasure on this site. :P

Author:  Solomon [ Tue Apr 27, 2010 3:01 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

I'm getting a strange bug with the embedded Eidogo where if I try to download the SGF, I end up downloading a .part file instead. Anyone else having this issue? :-?

Author:  ChradH [ Tue Apr 27, 2010 3:42 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Araban wrote:
I'm getting a strange bug with the embedded Eidogo where if I try to download the SGF, I end up downloading a .part file instead. Anyone else having this issue? :-?

Same here. It's the complete file, only still under its temporary name.
I think the problem is that the file name is derived from the SGF url, which is the SGF content (url encoded) by default. This is not a valid file name at least on windows systems.
Compare start of SGF content with title bar and file name of save-as window:
(;GM[1]FF[4]CA[UTF-8]...[os][ps][qs][rs][ss])

Attachments:
Eidogo save SGF.gif
Eidogo save SGF.gif [ 6.55 KiB | Viewed 16226 times ]

Author:  fwiffo [ Tue Apr 27, 2010 5:36 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Yes, in fact ChradH has it exactly right. The reason is that the SGF file does not actually exist on the server. The EidoGo instance is given inline SGF data. So there is no file anywhere to download. But you can actually stick the file contents in a URL with the "data" protocol. For example, the url "data:text/plain,This%20is%20a%20text%20file.%0D%0A" would download a text file with the contents "This is a text file." (plus obligatory carriage return and newline). Unfortunately, it doesn't work in all browsers, and you can't specify a useful filename, so the browser invents one based on the URL, which is the url-encoded contents of the file...

The file will work just fine when you download it though.

I am working on a better solution for better browser support, and since the data: url thing is kinda a hack anyway. It'll involve bouncing the SGF file off a stub script on the server side which will make it like downloading a file normally. It's stupid that it's necessary, after all it will be uploading data that already exists on your computer to the server, then downloading it again, using 3 times the bandwidth it ought to, but that's the life of a web programmer.

Author:  fwiffo [ Tue Apr 27, 2010 7:53 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Download links should be better behaved now. If you embed the SGF from a URL, it should download directly from that URL and keep the expected filename. If it's embedded inline it should download correctly in all browsers now and should generate a normalish filename.

Safari users -- please give the download links a try, I am not currently able to test Safari.





[sgf-full](;GM[1]FF[4]CA[UTF-8]AP[CGoban:3]ST[2]
RU[Japanese]SZ[19]KM[0.00]
GN[Pinecone Problem]DT[2009-04-22]SO[http://senseis.xmp.net/?PineConeProblem]AW[kg][ih][jh][hi][ii][mi][gj][hj][lj][gk][kk][lk][gl][hl][jl][kl][hm][im][jm]AB[jf][lf][nf][hg][jg][lg][fh][hh][kh][mh][nh][gi][ji][li][fj][ij][kj][mj][nj][fk][hk][ik][jk][fl][il][ll][ml][gm][km][fn][hn][in][jn][ln]C[Kill white.]PL[B]
(;B[ki]
;W[jj]
(;B[ik]
;W[lh]
(;B[ki]LB[kh:A][li:B]C[Correct. A and B are miai to kill.])
(;B[ni]
;W[li]C[Wrong.])
(;B[kf]
;W[kh]C[Wrong.]))
(;B[lh]
;W[ik]C[Wrong.])
(;B[kf]
;W[ik]C[Wrong.])
(;B[ni]
;W[ik]C[Wrong.]))
(;B[lh]
;W[jj]
(;B[ik]
;W[ki]C[Wrong.])
(;B[ki]
;W[ik]C[Wrong.]))
(;B[ni]
;W[jj]
(;B[ik]
;W[ki]C[Wrong.])
(;B[ki]
;W[ik]C[Wrong.]))
(;B[kf]
;W[jj]
(;B[ik]
;W[ki]C[Wrong.])
(;B[ki]
;W[ik]C[Wrong.]))
(;B[jj]
;W[ki]C[Wrong.]))[/sgf-full]

Author:  Solomon [ Tue Apr 27, 2010 10:32 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Tried it in safari; both files are downloaded with correct names, but the pinecone problem is downloaded with an error whereas it works fine in other browsers (tested also in Chrome on OS X and Firefox on Win7). The error I get in Safari is:
"Error reading SGF file "/Users/solch/Downloads/47377cfe356c4204bae74e3c73d6ee439c562c15.sgf": Invalid SGF file; "(;" not found."

Author:  fwiffo [ Tue Apr 27, 2010 10:45 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Strange... What's the size of the file you get? Can you post it here inside [code] tags?

Author:  Solomon [ Tue Apr 27, 2010 10:51 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

fwiffo wrote:
Strange... What's the size of the file you get? Can you post it here inside [code] tags?

Ah, I should have checked this right afterwards. The SGF file that's downloaded is 0 KB; there's nothing in it when trying to open it up by text editor.

Author:  fwiffo [ Tue Apr 27, 2010 11:15 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Aha, yes, I made a boo-boo. I fed the poor browser a malformed Content-length header. Strange that it still worked in other browsers. Should be fixed now.

Author:  Tryphon [ Thu Apr 29, 2010 2:39 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Something that bothers me a little : when trying to go through variations using the digit keys of the keyboard, it works if I use the digit keys on the first row of my keyboard, but not if I use those on the right part (and I prefer the last, because I don't need to hold "Shift", and they are easier to find without looking).

My keyboard is a french one (azerty).

Author:  fwiffo [ Thu Apr 29, 2010 6:16 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Oh, you mean the numeric keypad? I'll have to find a keyboard with a numeric keypad to test that with.

Author:  Tryphon [ Thu Apr 29, 2010 10:18 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

fwiffo wrote:
Oh, you mean the numeric keypad? I'll have to find a keyboard with a numeric keypad to test that with.


Yes, I mean that (I didn't know the english word :) ).

Author:  Darrell [ Thu Apr 29, 2010 11:43 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

fwiffo wrote:
The problem with the invisible stones has a fix.

I am not seeing that fix. I am running IE8 on Win7. This is what I see for the second move of the most difficult problem ever. When I download the sgf there are a bunch of '<BR>' tags within the sgf so I can't load it into a sgf viewer either. That is, until I take the <BR> out. I have also noticed this problem on games that start with a handicap.
Attachment:
2ndMove.jpg
2ndMove.jpg [ 48.99 KiB | Viewed 16139 times ]

Author:  fwiffo [ Thu Apr 29, 2010 5:22 pm ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

That's weird. It works for me in both IE7 and IE8. This is a different problem than the normal invisible stones problem, but I can't reproduce it. Also, the games should have the <br> tags stripped out already. Have you tried clearing your cache? Maybe you've got an old cached version of the javascript that isn't stripping them out correctly.

If that doesn't fix it, can you send me the SGF file you get when you try to download it?

Author:  fwiffo [ Thu Apr 29, 2010 8:19 pm ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Should be fixed. IE8 users let me know if you still have trouble.

Author:  daal [ Wed May 05, 2010 10:18 am ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

I am sorely missing the "go back to last variation" option on Eidogo. Any way to get it implemented? Or is it there and I just haven't found it?

Author:  fwiffo [ Wed May 05, 2010 6:29 pm ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Not sure what you mean... Can you be more specific?

Author:  daal [ Wed May 05, 2010 10:11 pm ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

It is a button that after going to the end of a variation tree you can press and it brings you back to the main branch where the variation started.

Author:  fwiffo [ Thu May 06, 2010 7:21 pm ]
Post subject:  Re: SGF VIEWER FLASHGOBAN Or EIDOGO

Hmm, I don't think EidoGo has that. The best you can do is navigate with the game tree in full mode. I don't think it would be a hard feature to add. There are a few other shortcomings when it comes to navigating variations (Bill was having trouble with an endgame example where there were two variations on the same point, one black taking the point, the other white), so I'll add that to my todo list. It might take a little time. Probably I'll add the flashgoban/eidogo switching option first because it is a smaller project.

My main computer died this week, so I have to worry about getting that fixed, and I've been working later hours, so it may be a week or two before I can get back to working on significant forum improvements.

Page 4 of 5 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/