[sage-support] Turning off readline
I am trying to turn off the command line readline action.* If that were possible, it would be a big help to me. Does anyone know? I am running Sage on a recent Ubuntu, using a recent install. I believe the readline behavior arises from pyreadline that comes in as part of ipython. I can find no documentation in ipython on how to stop readline while the repl is running (which would be ideal for me) and I tried putting in a configuration file pyreadlineconfig.ini and uncommenting its second line, but that had no effect that I could see. $ head -n2 $HOME/pyreadlineconfig.ini #Bind keys for exit (keys only work on empty lines disable_readline(True)#Disable pyreadline completely. I also had a look in the source but came away unenlightened. Thanks for any help. Jim *(The reason I want to turn off readlline is that I am using pyexpect to feed things to and read things from the Sage prompt and when the line is too long then I am getting responses filled with odd characters including lots of ^H's.) -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Combinatorics / Graph theory question
Hi, folks I was playing around with one board-game cards generation :) you can see example with 10 cards http://galvosukykla.lt/rodyk/thumbs.php?p=//stalo_zaidimai/10_cards-single_joins/pngdim=150 *Each couple of cards must have just one same image.* Bruteforce would be http://en.wikipedia.org/wiki/Complete_graph with separate image per vertex. I managed to come up with simple optimization for 10cards (instead of 45, I managed with 20) But if I'd like to have 40 cards or so... I am still in trouble... What would be most optimal solution, if I'd like to have 40 cards, and up to 9 images on card? I would let - that two cards have more than one same image (but preferably not many)... Any hints? :) -- Jurgis Pralgauskis tel: 8-616 77613; Don't worry, be happy and make things better ;) http://galvosukykla.lt -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.
[sage-support] Re: Combinatorics / Graph theory question
Ahahahahah :-) Beautiful problem ! Not really a graph problem, but a beautiful problem. What do you think of this ? http://www.sagemath.org/doc/reference/sage/combinat/designs/block_design.html#sage.combinat.designs.block_design.steiner_triple_system Does it sound familiar ? But then it only works for cards with 3 pictures on it. The trouble is that what you are looking for is not exactly straightforward to produce... http://en.wikipedia.org/wiki/Block_design#Definition_of_a_BIBD_.28or_2-design.29 You will find some solutions there : http://designtheory.org/database/t-designs/ You are interested in the following values : t = 2 (because you have a condition on PAIRS of elements) L = 1 (because only ONE card must contain both symbols at the same time) v (the total number of elements) k (the number of elemens on each card) By the way, Sage's documentation points toward this file, which may interest you : http://www.utu.fi/~honkala/designs.ps Oh, and having more of this kind of stuff inside of Sage would be really, really, REALLY great :-) Have fuuun ! Nathann -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.