News:

thx diane, jeeves Caleb sixty Zorba  Linus & jackdaddy Tom  Michael r_monk Anonymous  Jade & roygbiv*  our 2013 donors..cheers! we will really need Help this year as i think we will need a better Host server

Main Menu

posting a position as a problem was a problem

Started by sixty_something, January 25, 2008, 11:01:45 AM

Previous topic - Next topic

sixty_something

:steam: OK, i am now officially pissed .. i just spent an hour or more trying to create a method for posting problems for us to share and to solve using the poll feature .. it seems the attached file was too large .. it aborted without loading and i couldn't return to the post which i didn't think to save .. the text including detailed instructions on how to create such a problems was lost

well, it din't work anyway .. so, all i learned is don't do it that way .. time to start over again  :grrr:

FYI, Eric, exactly what is the attached file size limit? .. i had 2 files, one a full screen shot in RTF the other a small GNU SGF (2 Kb) .. screen shots with PrntScrn can get quite large this one was 4.7 Mb

is there a way to save a full screenshot into a smaller file?

i guess jpeg would be best :idea2:  i just seldom do it that way :frusty:

sixty :s12:

To bring one's self to a frame of mind and to the proper energy to accomplish things that require plain hard work continuously is the one big battle that everyone has. When this battle is won for all time, then everything is easy. -- Thomas A. Buckner
A little inaccuracy sometimes saves tons of explanation. -- Unknown
e-mail me

sixty_something

#1
well, well, even a blind :knor: can find an acorn every now and then 

on my second attempt :kaffeepc:, using a jpeg file (0.25 Mb) for the screenshot and with a few mods, i think it came out nicely 

:rules: here are the steps i used:

For the snapshot of the position:
load the match in GNU
position to the situation you wish to submit
enable full screen view
copy the screen with PrntScrn
open an image editor (eg, MS Photo Editor)
create a new image, sized 10" wide, 8" tall (or 10.25" x 5.65" to be exact)
use 256 colors resolution to minimize file size
save the image as Cube 101.jpeg

For the new Poll:
create a poll named Cube 101
compose the question
compose the answers
toggle show results only when user has voted
leave poll open ended, that is no time limit
describe the situation using a style similar to mine
attach the image above using Additional Options below

For the GNU analysis or answer:
switch back to GNU in normal screen
show analysis panel
open Notepad
* use the copy button to copy the analysis to the clipboard
* paste analysis from clipboard
(* repeat to copy next cube decision(s) if necessary)
save as Cube 101.txt into My Documents
switch back to new poll
attach the txt file using More attachments
run spell checker, if you like
post the poll

Final check:
open it and check way it looks and reads
modify as necessary
open the image, is it ok
open the answers, are they ok
cast the first vote, as originally played
sit back and see how others vote over time

if you create a problem for a new poll, use a naming style like Cube xxx or Move xxx, where xxx is an ascending serial number .. that will create a set of problems easy for us to manage and allow comments added as a reply to remain associated with the problem .. but be careful with your comments, so you don't give away the answers

thanks, this could be fun
:s40:

sixty

If Edison had a needle to find in a haystack, he would proceed at once with the diligence of the bee to examine straw after straw until he found the object of his search... I was a sorry witness of such doings, knowing that a little theory and calculation would have saved him ninety per cent of his labor.
-- Nikola Tesla , New York Times, October 19, 1931 US (Serbian-born) electrical inventor (1857 - 1943)
A little inaccuracy sometimes saves tons of explanation. -- Unknown
e-mail me

rubreg

#2
Quote from: sixty_something on January 25, 2008, 01:08:59 PM
For the snapshot of the position:
(...)
enable full screen view
copy the screen with PrntScrn
open an image editor (eg, MS Phote Editor)
create a new image, sized 10" wide, 8" tall
use 256 colors resolution to minimize file size
save the image as Cube 101.jpeg

Also possible: directly exporting a position from gnubg.
Click 'Export', select 'Position' and 'Export to format' --> png.
Select path and filename.
Careful, this works only in 2-D view (at least for me).
The size of the exported image can be adjusted in 'settings --> export...'
The standard path for exports can't be set via the menus yet, but you can type
'set path png [pathname]'
into the command line. (type 'help set' or 'help set path' for further info)
...and don't forget to 'Save Settings' afterwards... ;)

For further fiddling with the exported image (or screenshots as suggested by sixty_something) I'd suggest a free little prog called 'Irfanview', small but very powerful for things like this (can resize, convert to 256 colours, jpg or tons of other formats, and all you might wish for). Available at http://www.irfanview.com/.

Edit:
...since file size was an issue: I'll attach an example screenshot.
Exported from GNU as described above, size was set to 540 x 410 pixels.
Loaded into irfanview and saved as jpg --> file size = 47KB

(max allowed attachment size is 2 MB, says so in the attachment menu thingy)

sixty_something

#3
thanks, rubreg, great idea i didn't know about that .. but i noticed the PNG file when opened is smaller (but not too small) and opens within the post window .. a JPEG opens in a larger separate window .. for me, i like the larger separate window which can be moved around allowing the voter to read the poll without scrolling back and forth over comments that may contain *spoilers*

what would really be great is to be able to attach the PNG file to the poll panel itself and then appear within the Poll voting panel when opened .. then comments from others about the decision won't unduly influence their vote .. i wonder if webrunner can make that happen?


A person travels the world over in search of what he needs and returns home to find it.
-- George Moore
A little inaccuracy sometimes saves tons of explanation. -- Unknown
e-mail me

webrunner

Sixt, 4,7 mb is an enormous large file for a forum. Imagine people posting 5 of these kinds of files a day. That would  ad up to 9 GB a year, that would cost me a fortune, not alone but also cause fibsboard to slow down considerably.

The maximum is 2 MB i think, total per post. Please use the download section to upload large files like software packages and stuff.
"There is a difference between knowing the path and walking the path."
Bruce Lee
===================================
Orion Pax |

webrunner

Also i would advise to resize images to 800x600 pixels (f.i. by using Irfanview, i use it too).
That size is more then enough to see the board clearly for everyone and is a lot smaller. ;)
"There is a difference between knowing the path and walking the path."
Bruce Lee
===================================
Orion Pax |

rubreg

Quote from: sixty_something on January 25, 2008, 09:46:33 PM
(...) i noticed the PNG file when opened is smaller (but not too small) and opens within the post window .. a JPEG opens in a larger separate window .. for me, i like the larger separate window which can be moved around allowing the voter to read the poll without scrolling back and forth over comments that may contain *spoilers* (...)
The test image I attached was *not* a png but a jpg. I don't know why your jpg openes in a seperate browser window and mine doesn't - my educated guess would be: pixel size. Your jpg is 1000 x 800, mine 540 x 410. Also the extra browser window / inline display only happens on clicking the thumbnail image. If instead I click the filename underneath, I can open the image in my external image viewer (in my case irfanview) and move it about the screen just like the separate browser window. This behaviour is the same for your big jpg and my small one.

sixty_something

i may have found a way to get the PNG to appear in the Poll section with the question

see Cube 103 for an example .. the banner is a file at FibsLeagammon inserted into the question this coding {img]www.filename[/img} (just replace the {} with [])

as soon as i can find a place to put up the PNG file on-line, i'll change it to test the idea .. attaching as well should also be done, imo, in case the on-line file should disappear .. but having an image up there with the question is "the best of all possible worlds"  :beerdrinkers:

Eric, would it be possible to upload them to the fibsboard site? that way the attachment would be unnecessary and there'd be no additional overhead for you or concerns about losing the PNG file

thanks for the PNG idea, rubrek

[To a first-term congressman who wanted to be excused from voting with the party to satisfy his biggest contributors:] Son, if you can't take their money, drink their whiskey, screw their women, and then vote against 'em, you don't deserve to be here.
-- Texas democrat Sam Rayburn (Mr. Sam), Speaker of the House, circa 1950 , John Hazlehurst, CO Springs Independent

btw, this Texan met old Sam once in the sixties, he was the real deal

A little inaccuracy sometimes saves tons of explanation. -- Unknown
e-mail me

don

Probably easiest and best for all is to simply include a text version of position.  There's no compatability issues, no large files, no nothing.  Inclusion of gnu match/board ID numbers is a plus for those who want prettier images and analysis.
Quote
Move number 1: O to play 54

    GNU Backgammon  Position ID: 4HPwATDgc/ABMA
                    Match ID   : MIByAAAAAAAA
    +-1--2--3--4--5--6-------7--8--9-10-11-12-+  O: gnubg
    | X              O |   |    O           X |  0 points
    | X              O |   |    O           X |  Rolled 54
    |                O |   |    O           X | 
    |                O |   |                X | 
    |                O |   |                X | 
    |                  |BAR|                  |^ 3 point match (Cube: 1)
    |                X |   |                O | 
    |                X |   |                O | 
    |                X |   |    X           O | 
    | O              X |   |    X           O | 
    | O              X |   |    X           O |  0 points
    +24-23-22-21-20-19------18-17-16-15-14-13-+  X: user
Pip counts: O 167, X 167

* gnubg moves 24/20 13/8

Rolled 54:*    24/20 13/8
BTW, above box was done using the "quote" and "pre" buttons on webby's editor (pre for preformatted text so it all lines up).

Yes, those graphic images look nice and include them if you want to, but IMO ALWAYS include the simple text versions for all--those who don't have the software to, don't want to bother with, or don't know how to figure out how to get to the pretty images.

--
don
So many string dimensions, so little space time...

sixty_something

thx, don, i like the idea of always including the text version for compatibility, but it's almost unreadable to me .. i had to zoom it to 150% just to read it without resorting to my glasses .. then i had to familiarize myself with the text version and by then had lost interest

so, while more generic and universal, perhaps, it's just visual noise to me .. i'd always opt for the graphics unless on safari in Africa and then i doubt i'd be interested in solving a problem anyway .. maybe i'm just spoiled by broadband .. so, i'll leave it to you to come up with a problem and show us how you'd include it

nonetheless, good suggestion as always

~v~

Words are the small change of thought.
-Jules Renard, writer (1864-1910)
A little inaccuracy sometimes saves tons of explanation. -- Unknown
e-mail me

Tomawaky

I have difficulties too to read text version even if I already tried to play Fibs with telnet command only :smile:
Tomawaky "I feel good da da da da da da da.........i knew that i would now........."

reon


Tomawaky

I prefer html coding rather than picture like that http://gammon.free.fr/bom/form.htm
Not big place needed to host
Tomawaky "I feel good da da da da da da da.........i knew that i would now........."

sixty_something

#13
Tomawaky, i think i prefer the PNG files exported directly from GNU as rubreg suggested .. they are almost perfect .. Cube 103, for example, was only 432 x 328 pixels and 81.9 Kb .. that's very reasonable in size, quite readable, and easy to export .. further a sample text file, copied from the GNU analysis panel for the position provides a readily accessible answer for the curious

an HTML file i accidentally created of the same position was only 9 Kb .. but i could not get it to display properly without the dozens of associated files for pips, board, etc

so, for my two cents, inserting an image into the question space of the poll is best .. it looks as if either PNG or a smaller JPEG is the most direct way to do this within the constraints of fibsboard .. IF IT WORKS

also, Tomawaky, i'm still awaiting a place to upload the PNG to for a final test .. if you can download this image and make it available on your FLG site, we can do that .. i haven't had time to look into setting up a new Google/picassa site for myself yet and likely won't for a week or two (i'm resitant to adding too many new things at the moment) .. but if this works, i still think putting them up at fibsboard may be the best long term solution

thanks to all for your help in this little project .. i think we're getting close

:kaffeepc:

Our heads are round so that thoughts can change direction.
-- Francis Picabia, painter and poet (1879-1953)
A little inaccuracy sometimes saves tons of explanation. -- Unknown
e-mail me

Tomawaky

#14
look at this





Tomawaky "I feel good da da da da da da da.........i knew that i would now........."

webrunner

actually sixt, if you use jpg for image format it will be even smaller.
;)
"There is a difference between knowing the path and walking the path."
Bruce Lee
===================================
Orion Pax |


sixty_something

#17
i setup a Google Picasa site yesterday .. two or three hours later i discovered it had kinks, new syntax, another learning curve, and just another stupid place for me to visit, maintain, and keep track of .. i have little patience for that and less time .. so, rubreg, it's unlikely i'll try your suggestions, but thanks

when i tried using the url for the uploaded Cube 103 PNG, it was not able to be displayed in the poll area of the question .. i am not sure whether this was a good test or not .. the image displayed in question space of Cube 103 now is a GIF file displayed with the following
[img]http://fibsleagammon.free.fr/minifibs.gif[/img]

maybe the img command does not support PNG files .. maybe there is a problem induced by the picasa reference .. i have no clue .. so, next i'll try the same test with a GIF or JPEG file .. but i am not confident or satisfied with the Google Picasa account at all .. i am certain such a procedure is not the answer for ease of use

let me make it clear what i am seeking

1) a simple procedure for displaying problems
2) an entertaining and educational poll for users to participate in
3) once established, a procedure that others can use to post problems of their own

simplicity is the most important aspect .. saving the user or poster time and avoiding confusion is far more important than saving a few Kb in file size .. clearly, IMO, the simplest procedure is to export a PNG file and TXT answer from the gnu analysis panel then attach them to the new problem posted as a Poll .. my attempts at inserting an image in the question space is really just cosmetic, but it would be nice - IF IT WORKS

toward that end, i've emailed Eric Cube 103 images in PNG, GIF, and JPEG formats .. if he can put those files up on the fibsboard server, them maybe i can directly test the result to see if they can be inserted directly into the question .. that still seems the best solution- IF IT WORKS

regardless, it seems we have a way to post problems with nothing more than a Poll and attachments - THAT IS A GOOD THING and SIMPLE too

  :drive1: sh**, now i can't access my new Picasa web album and am having problems with "session validation" here at fibsboard .. simple this is NOT


Like bumper cars in amusement parks, our direction is often determined through collisions.
--Yahia Lababidi, writer (b. 1973)


A little inaccuracy sometimes saves tons of explanation. -- Unknown
e-mail me

rubreg

Quote from: sixty_something on January 28, 2008, 09:13:15 AMwhen i tried using the url for the uploaded Cube 103 PNG, it was not able to be displayed in the poll area of the question
(...)
maybe the img command does not support PNG files .. maybe there is a problem induced by the picasa reference (...)
I doubt the problem lies in the png file format, but that's only an educated guess. Also I don't know about picasa and the links you get from them. But often, links you get from picture sites aren't direct links to the pics, but links that take you to their site and then display the image there. When you upload something to imageshack for example, you have to scroll way down to find the 'direct link to image' at the very bottom of their list. If you want to insert an image to a forum posting, you'll always need a direct link to the image.

good: hxxp://some.site/some/folder/picname.png <-- will work
bad: hxxp://some.site/some/folder/somescript.php?parameter=someparameter <-- will not work

(I hope I'm not stating the obvious here....)

sixty_something

#19
thanks again, rubreg, nothing is obvious to me when it comes to file servers .. i have very little experience with using them for anything but direct uploads and downloads

i tried the Picasa thing again with JPEG and GIF files with no luck there either .. i was about to give up, but may try your suggestion after all .. i did using IsaraPIX and it works !!!

see Cube 103 now and tell me if the size is too small or just right .. i figure if i can read it without glasses, it's good enough for almost everyone ..  it's now sized at  width=346 height=262, 80% of the default PNG file exported from GNU (432 x 328) .. the default GNU size did seem a little large visually in the context of the question space .. here is the BBcode
[img width=346 height=262]http://www.isarapix.com/pix90/1201523878.png[/img] [size=13pt]In the first game of a 2 pointer in Mini Matches semi-finals against [i]adrian[/i] (RED) this position arose. [b]What are the correct cube decisions  - WHITE to play?[

putting the image first is necessary to prevent it from breaking up an imappropriate wrap around of text .. note the trailing [ that appears on the screen and in the code .. that is where truncation occured when i added the size parameters to the img command and increased the font size for more proportional readability with the image .. it appears the maximum character length for the question, BBcode and all is about 228 cahracters which is probably sufficient

there are still a few kinks, but this looks good .. thanks again, rubreg and all

:thumbsup2:

Marriage is a wonderful institution, but who would want to live in an institution.
-- H. L. Mencken US editor (1880 - 1956)

A little inaccuracy sometimes saves tons of explanation. -- Unknown
e-mail me