SGF VIEWER FLASHGOBAN Or EIDOGO
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
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. 
- schultz
- Lives in gote
- Posts: 505
- Joined: Tue Apr 20, 2010 5:31 pm
- GD Posts: 0
- Location: Montana
- Has thanked: 80 times
- Been thanked: 62 times
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.
Please upgrade from IE6. This will make ME feel better.
KGS: schultz [?].
- Solomon
- Gosei
- Posts: 1848
- Joined: Tue Apr 20, 2010 9:21 pm
- Rank: AGA 5d
- GD Posts: 0
- KGS: Capsule 4d
- Tygem: 치킨까스 5d
- Location: Bellevue, WA
- Has thanked: 90 times
- Been thanked: 835 times
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? 
- ChradH
- Dies with sente
- Posts: 106
- Joined: Wed Apr 21, 2010 8:40 am
- Rank: EGF 8k
- GD Posts: 0
- Universal go server handle: ChradH
- Location: Germany
- Has thanked: 64 times
- Been thanked: 7 times
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 (6.55 KiB) Viewed 20633 times
To sig or not to sig, that is the question.
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
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.
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.
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
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]
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]
- Solomon
- Gosei
- Posts: 1848
- Joined: Tue Apr 20, 2010 9:21 pm
- Rank: AGA 5d
- GD Posts: 0
- KGS: Capsule 4d
- Tygem: 치킨까스 5d
- Location: Bellevue, WA
- Has thanked: 90 times
- Been thanked: 835 times
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."
"Error reading SGF file "/Users/solch/Downloads/47377cfe356c4204bae74e3c73d6ee439c562c15.sgf": Invalid SGF file; "(;" not found."
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
Re: SGF VIEWER FLASHGOBAN Or EIDOGO
Strange... What's the size of the file you get? Can you post it here inside [code] tags?
- Solomon
- Gosei
- Posts: 1848
- Joined: Tue Apr 20, 2010 9:21 pm
- Rank: AGA 5d
- GD Posts: 0
- KGS: Capsule 4d
- Tygem: 치킨까스 5d
- Location: Bellevue, WA
- Has thanked: 90 times
- Been thanked: 835 times
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.
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
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.
- Tryphon
- Lives with ko
- Posts: 299
- Joined: Tue Apr 20, 2010 2:32 am
- Rank: KGS 10k DGS 8k
- GD Posts: 396
- Has thanked: 49 times
- Been thanked: 17 times
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).
My keyboard is a french one (azerty).
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
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.
- Tryphon
- Lives with ko
- Posts: 299
- Joined: Tue Apr 20, 2010 2:32 am
- Rank: KGS 10k DGS 8k
- GD Posts: 396
- Has thanked: 49 times
- Been thanked: 17 times
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
- Darrell
- Dies in gote
- Posts: 66
- Joined: Wed Apr 21, 2010 7:05 am
- Rank: KGS 2 kyu
- GD Posts: 48
- KGS: Darrell
- Location: Atlanta, GA, USA
- Has thanked: 70 times
- Been thanked: 29 times
- Contact:
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.
- fwiffo
- Gosei
- Posts: 1435
- Joined: Tue Apr 20, 2010 6:22 am
- Rank: Out of practice
- GD Posts: 1104
- KGS: fwiffo
- Location: California
- Has thanked: 49 times
- Been thanked: 168 times
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?
If that doesn't fix it, can you send me the SGF file you get when you try to download it?