[sage-support] Re: Using HillCryptosystem() with more characters than the 26 capital letters from AlphabeticStrings()

2012-09-24 Thread kcrisman


>
> AS3 = list(AS1.alphabet())+[str(" ")]; AS3; len (AS3)
> ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 
> 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ']
> 27
>
> keylen=3; H=HillCryptosystem(AS1, keylen);H ### This works fine.
> Hill cryptosystem on Free alphabetic string monoid on A-Z of block length 3
>
> keylen=3; H=HillCryptosystem(AS3, keylen);H ### This breaks!
> TypeError
> << 2-end
>
> Thanks for your help.
>

This sounds like a great enhancement idea, and I'm sure we can work out the 
breakage on a Trac ticket (knowing what the full TypeError traceback was 
would be a great start).  If you know Minh, then assuredly you know how to 
acquire a Trac account and open a new ticket.  Good luck in improving this 
valuable resource!

-- 
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: raise socket.error in Sage Version 5.3

2012-09-24 Thread Jason Grout

On 9/23/12 10:47 AM, taske wrote:

   File 
"/opt/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python/random.py",
 line 47, in 
 from os import urandom as _urandom
ImportError: cannot import name urandom



This looks odd.  Can you import urandom within Sage?

Thanks,

Jason


--
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: Problem with sagecell server installation

2012-09-24 Thread Jason Grout

On 9/23/12 4:32 PM, ma...@mendelu.cz wrote:



Dne čtvrtek, 20. září 2012 15:16:59 UTC+2 ma...@mendelu.cz napsal(a):



Websocket closed
Websocket connection to
ws://192.168.26.133:/kernel/428c10d5-20f2-4db5-ae9c-e678d6538c9b

could not be established. You will NOT be able to run code. Your
browser may not be compatible with the websocket version in the
server, or if the url does not look right, there could be an error
in the server's configuration.


Any idea what could be wrong? In the terminal where I run "sage
web_server.py" I get the following:

agecell@sagecell:~/sage-5.3/devel/sagecell$ sage web_server.py
ZMQ Connection with computer 68fc3612-0d2f-4501-a964-1d7b0bf5022e at
port 57951 established.
ERROR:root:WebSocket
Traceback (most recent call last):
   File
"/home/sagecell/sage-5.3/local/lib/python2.7/site-packages/sockjs_tornado-0.0.4-py2.7.egg/sockjs/tornado/transports/websocket.py",
line 57, in on_message
 self.session.on_messages(msg)
   File
"/home/sagecell/sage-5.3/local/lib/python2.7/site-packages/sockjs_tornado-0.0.4-py2.7.egg/sockjs/tornado/session.py",
line 409, in on_messages
 self.conn.on_message(msg)
   File "/home/sagecell/sage-5.3/devel/sagecell-main/handlers.py", line
122, in on_message
 self.channels[kernel][channel].on_message(message)
   File "/home/sagecell/sage-5.3/devel/sagecell-main/handlers.py", line
332, in on_message
 self.session.send(self.shell_stream, msg)
   File
"/home/sagecell/sage-5.3/local/lib/python2.7/site-packages/ipython-0.14.dev-py2.7.egg/IPython/zmq/session.py",
line 578, in send
 to_send = self.serialize(msg, ident)
   File
"/home/sagecell/sage-5.3/local/lib/python2.7/site-packages/ipython-0.14.dev-py2.7.egg/IPython/zmq/session.py",
line 498, in serialize
 self.pack(msg['metadata']),
KeyError: 'metadata'



What commit is your sagecell installation?  It looks like the sagecell 
installation may be old.  Did you run 'make' to remake the javascript files?


Thanks,

Jason



--
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] Raspberry pi

2012-09-24 Thread Dan Aldrich

OK, this doesn't get me kicked off the list, nothing will...

Has anyone considered porting sage over to the raspberry pi?

-d


--
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] cutting and pasting to sage console in virtualbox

2012-09-24 Thread Ursula Whitcher
Is there a way to force VirtualBox to allow cutting and pasting between 
Windows and the console in the standard Sage installation?

Here's the process I'm going through.

First, I updated my version of VirtualBox, and updated the version of Sage 
it's running to 5.1.

I noticed that in this version, Sage opens in a Notebook view, and I am 
able to cut and paste from a notebook to my progress notes.

Then, I used the instructions at 

http://wiki.sagemath.org/SageAppliance#Using_the_Sage_shell

to switch from a notebook view to the console view, and logged in as "sage" 
with password "sage".

The VirtualBox manual at 

http://www.virtualbox.org/manual/ch04.html

says that I need the "Guest Additions" package to copy and paste between 
VirtualBox and windows in Windows.  It further tells me that I ought to be 
able to install the "Guest Additions" by going to the Devices menu in the 
window of VirtualBox that's running Sage, and choosing "Install Guest 
Additions".  However, when I do this, I get an error message that begins 
"Unable to mount the CD/DVD image".

My goal here is to try out a couple of patches.  But I'm not sure I trust 
myself to type the URLs by hand without error.

UAW

-- 
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: cutting and pasting to sage console in virtualbox

2012-09-24 Thread Volker Braun
The VirtualBox guest additions are already installed in the VM that we are 
distributing, but they don't do clipboard integration on the console (only 
in X).

You can log in via ssh from the host machine, then you can use the hosts' 
terminal (which hopefully supports cut&paste):

ssh -p  sage@localhost

that is, port=, username=sage, password=sage, hostname=localhost




On Monday, September 24, 2012 10:38:53 PM UTC+1, Ursula Whitcher wrote:
>
> Is there a way to force VirtualBox to allow cutting and pasting between 
> Windows and the console in the standard Sage installation?
>
> Here's the process I'm going through.
>
> First, I updated my version of VirtualBox, and updated the version of Sage 
> it's running to 5.1.
>
> I noticed that in this version, Sage opens in a Notebook view, and I am 
> able to cut and paste from a notebook to my progress notes.
>
> Then, I used the instructions at 
>
> http://wiki.sagemath.org/SageAppliance#Using_the_Sage_shell
>
> to switch from a notebook view to the console view, and logged in as 
> "sage" with password "sage".
>
> The VirtualBox manual at 
>
> http://www.virtualbox.org/manual/ch04.html
>
> says that I need the "Guest Additions" package to copy and paste between 
> VirtualBox and windows in Windows.  It further tells me that I ought to be 
> able to install the "Guest Additions" by going to the Devices menu in the 
> window of VirtualBox that's running Sage, and choosing "Install Guest 
> Additions".  However, when I do this, I get an error message that begins 
> "Unable to mount the CD/DVD image".
>
> My goal here is to try out a couple of patches.  But I'm not sure I trust 
> myself to type the URLs by hand without error.
>
> UAW
>

-- 
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: Problem with sagecell server installation

2012-09-24 Thread ma...@mendelu.cz


Dne pondělí, 24. září 2012 14:20:09 UTC+2 Jason Grout napsal(a):
>
>
> What commit is your sagecell installation?  It looks like the sagecell 
> installation may be old.  Did you run 'make' to remake the javascript 
> files? 
>
>
>
I used your spkg 
http://sage.math.washington.edu/home/jason/sagecell-2.0.spkg. I just wanted 
to test the instructions https://github.com/sagemath/sagecell/issues/344 
and the spkg. But upgrading to the last version by "git pull 
https://github.com/sagemath/sagecell"; gives the same result.

make fails with an error when invoked from the ordinary bash, but runs fine 
when invoked inside "sage -sh", similarly like the instalation of the spkg 
- as described in the previous posts in this conversation.



-- 
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: cutting and pasting to sage console in virtualbox

2012-09-24 Thread Ursula Whitcher
On Monday, September 24, 2012 4:51:28 PM UTC-5, Volker Braun wrote:
>
> The VirtualBox guest additions are already installed in the VM that we are 
> distributing, but they don't do clipboard integration on the console (only 
> in X).
>
> You can log in via ssh from the host machine, then you can use the hosts' 
> terminal (which hopefully supports cut&paste):
>
> ssh -p  sage@localhost
>
> that is, port=, username=sage, password=sage, hostname=localhost
>
>
Thanks!  I logged in with my favorite ssh client.  I have now reached the 
advanced stage where patches aren't installing because I'm trying to 
install them in the wrong order.

Is there a "test" patch for Sage which doesn't do anything substantive?  I 
have been writing notes about how to patch a Windows installation of Sage, 
and it would be nice to have an example.

UAW 

-- 
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] Notebook server very slow. What are typical bottlenecks? I have ver5.2 and 1Gb RAM

2012-09-24 Thread Chris Seberino
Notebook server very slow.  What are typical bottlenecks? I have ver5.2 and 
1Gb RAM

cs

-- 
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] Students leave their notebooks open so server has a TON of notebooks open....performance problem?

2012-09-24 Thread Chris Seberino
Students leave their notebooks open so server has a TON of notebooks 
openis that a problem?

(I'm thinking about performance mainly.)

cs

-- 
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: Notebook server very slow. What are typical bottlenecks? I have ver5.2 and 1Gb RAM

2012-09-24 Thread kcrisman


On Monday, September 24, 2012 8:32:23 PM UTC-4, Chris Seberino wrote:
>
> Notebook server very slow.  What are typical bottlenecks? I have ver5.2 
> and 1Gb RAM
>
> cs
>

This is a little vague.  Do you mean on your own personal computer, or are 
you trying to run a notebook server for others (e.g., students)?  It's 
pretty likely that with more than a couple users, this would be too little 
RAM. 

-- 
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: Students leave their notebooks open so server has a TON of notebooks open....performance problem?

2012-09-24 Thread P Purkayastha

On 09/25/2012 08:33 AM, Chris Seberino wrote:

Students leave their notebooks open so server has a TON of notebooks
openis that a problem?

(I'm thinking about performance mainly.)

cs


The answer _should_ be "no." The notebook has a timeout parameter that 
can be configured to close the worksheet if the user hasn't interacted 
for that period of time.


 What has been observed however is that not all worksheets get closed 
and there are often many worksheets that remain open in the background. 
From a performance point of view, all that these worksheets do is eat 
up memory (~100M each). I don't know the cause of these dormant but 
nonfunctional open worksheets.


--
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.