[sage-cloud] Re: How do i remove overtype?

2016-08-19 Thread Dima Pasechnik
it is not clear what kind of Sagemath interface you were using; e.g., if 
you used a "usual" text editor then it's a question about this particular 
text editor (e.g. if you used vim then you should consult vim manual).
If it was SMC (SageMath cloud) then this question should be asked in 
sage-cloud Google Group, and not here.
I cc there, just in case.

On Friday, August 19, 2016 at 9:53:12 PM UTC+1, Andrew Aran wrote:
>
> I was doing some school work and after making a few revisions to my code i 
> came to realize that i had typed over some of my work. I was wondering how 
> to turn off this feature.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-cloud+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cloud/029b44eb-4f32-4243-bc87-558c3c17fa76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-cloud] Re: software on smc

2016-08-19 Thread c.d. mclean

understood ...

you have my thanks for the honest
and transparent explanation.

keep up the fine work !

best,

cdm



On Friday, August 19, 2016 at 5:23:01 PM UTC-7, Harald Schilly wrote:
>
> Hi, right now it doesn't make sense, since that list is neither final 
> nor intended for the current setup. I'm working on a new setup and 
> that list is part of a quite large test suite to make sure, that the 
> installed software is actually there (e.g. important python, R and 
> julia packages can actually be imported, etc.) 
>
> In the future, once that's fleshed out, this list should definitely be 
> somewhere more visible. It will be served from somewhere else,  and 
> should also get a bit of love regarding styling and layout. 
>
> -- harald 
>
>
> On Sat, Aug 20, 2016 at 2:02 AM, c.d. mclean  > wrote: 
> > 
> > does it make sense to have the list: 
> > 
> > 
> > 
> https://cloud.sagemath.com/14eed217-2d3c-4975-a381-b69edcb40e0e/raw/smc-compute-env.html
>  
> > 
> > 
> > linked on the help page: 
> > 
> >https://cloud.sagemath.com/help 
> > 
> > 
> > ? 
> > 
> > thanks, 
> > 
> > cdm 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-cloud+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cloud/574372dd-5975-40a4-8629-9d6466d3857b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-cloud] Re: software on smc

2016-08-19 Thread Harald Schilly
Hi, right now it doesn't make sense, since that list is neither final
nor intended for the current setup. I'm working on a new setup and
that list is part of a quite large test suite to make sure, that the
installed software is actually there (e.g. important python, R and
julia packages can actually be imported, etc.)

In the future, once that's fleshed out, this list should definitely be
somewhere more visible. It will be served from somewhere else,  and
should also get a bit of love regarding styling and layout.

-- harald


On Sat, Aug 20, 2016 at 2:02 AM, c.d. mclean  wrote:
>
> does it make sense to have the list:
>
>
> https://cloud.sagemath.com/14eed217-2d3c-4975-a381-b69edcb40e0e/raw/smc-compute-env.html
>
>
> linked on the help page:
>
>https://cloud.sagemath.com/help
>
>
> ?
>
> thanks,
>
> cdm
>
>
> On Saturday, August 6, 2016 at 9:10:57 PM UTC-7, c.d. mclean wrote:
>>
>>
>> truly awesome collection !
>>
>> thank you for your work
>> on this Harald ...
>>
>>
>>
>> On Saturday, August 6, 2016 at 5:24:34 AM UTC-7, Harald Schilly wrote:
>>>
>>> Have you ever wondered, what software's actually available on SMC? I am
>>> working on an image, that will be used in the future to run projects. That
>>> will be slightly different and much more complete, but for the status right
>>> now you can check here:
>>>
>>>
>>> https://cloud.sagemath.com/14eed217-2d3c-4975-a381-b69edcb40e0e/raw/smc-compute-env.html
>>>
>>> Thank's to all those open source projects, without that this wouldn't be
>>> possible. Also, if you spot something wrong or you're missing a detail,
>>> please tell us and we can have a look!
>>>
>>> -- harald
>>>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-cloud" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-cloud+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-cloud/646d154c-880e-459c-b71c-fcaddf595f61%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-cloud+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cloud/CAGG4CB7G1Kn-TDoH_1HCvW-_h4S9kDOcDps9GS4G7Rbg4f%2BmMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-cloud] Installation Problems

2016-08-19 Thread Robert Lowe
Another part of the puzzle has emerged.  I can get access to raw files 
through the proxy if they are in a publicly shared folder.  However, if I'm 
doing a raw pull within a project in a non-public folder I get a bad 
gateway.  

This tells me something is going on inside smc, probably with an 
authentication token of some kind.  I noticed in proxy.coffee that it looks 
like that is how it determines if it serves a file or not.  The section in 
question reads:

if not misc.path_is_in_public_paths(path, public_paths)
# The requested path is not public, so nothing to do.
cb()
else
# The requested path *is* public, so we get the file
# from one (of the potentially many) compute servers
# that has the file -- (right now this is implemented
# via sending/receiving JSON messages and using base64
# encoding, but that could change).


It's non-obvious whether the earlier code in proxy.coffee can handle an 
authenticated user's files.  I assume it can, as this capability exists in 
the live cloud.sagemath.org server.  Alternatively, perhaps the master 
branch code is not actually the code currently running on SMC.  When I try 
manually talking to the proxy, and I send the same header sent by my web 
browser, I get a blank response.  The proxy doesn't even send a header 
back, which tells me that we are likely visiting this segment of the code 
even while authenticated.

I'm also beginning to think I'm alone in this, and once I do figure it out 
I will join an elite group of individuals who have managed to install SMC.  


On Friday, August 19, 2016 at 9:52:41 AM UTC-4, Robert Lowe wrote:
>
> I am making progress!  I have discovered the secret handshake which starts 
> the hub on a single server, and how to run the compute daemon.  I'm 
> basically just running them as they are in the dev/single directory.
>
> So project starts, I can use the terminal, and I can create and edit 
> files.  Now, though, I can't view latex previews.  It builds the latex 
> documents just fine, but preview does not work.  Looking under the hood a 
> bit, I see that the rendered png files cannot download over the /raw links. 
>  I did a little more checking and discovered that raw download does not 
> work for any file, regardless of where it is!  The error I get when I go to 
> one of these raw links is:
>
> 502 Bad Gateway
>
> I looked in the nginx and haproxy logs and saw no errors.  The hub and 
> compute similarly report what looks like should be successful.  Has anyone 
> got any ideas where I should look?
>
> On Thursday, August 18, 2016 at 8:00:07 PM UTC-4, Robert Lowe wrote:
>>
>> What I'm really after is running my own SMC installation for my students. 
>>  The commercial servers are far too bogged down, even with paid tiers. 
>>  Ultimately, I will be running a customized version which will only allow 
>> maryvillecollege.edu addresses to sign up, and have a few other changes 
>> that I have in mind.
>>
>> I can run the laptop one just fine, I want to set up a real installation 
>> though.
>>
>> On Thursday, August 18, 2016 at 7:55:38 PM UTC-4, Harald Schilly wrote:
>>>
>>> Hi, if you want to do dev work, then you should run it via the 
>>> instructions in src/dev/laptop 
>>>
>>> The projects are all isolated, such that you do not get any 
>>> information like processes and stuff for who on the compute nodes. 
>>> There is nothing special going on, except for cgroups. The real 
>>> problem might be, that you have to do additional configuration in the 
>>> database, but I'm not sure what you really did. 
>>>
>>> One day in the future, there will be configurations for kubernetes. 
>>> You can check that progress in the k8s subdirectory. 
>>>
>>> -- harald 
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-cloud+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cloud/43ed5d13-ed11-4011-91f1-4d57921f2734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-cloud] sage_eval(('f(x) = (x^2-1)/(x-1)','f(1.000000000000001)')) does not work

2016-08-19 Thread João Marcello Pereira
Hi Willain

It worked! Thank you ;)

Em quarta-feira, 17 de agosto de 2016 00:56:23 UTC-3, William Stein 
escreveu:
>
> On Tue, Aug 16, 2016 at 12:52 PM,   
> wrote: 
> > hello Willian 
> > 
> > I type it in a terminal 
> > mkdir -p ~/bin; cd ~/bin; ln -s /usr/local/bin/sage-develop sage 
> > 
> > and restarted the project but still with the same result. 
> > 
> > sage_eval(('f (x) = (x ^ 2-1) / (x-1)', 'f (1.001)')) 
> > 
> >('f (x) = (x ^ 2-1) / (x-1)', 'f (1.001)') 
> > 
> > 
> > version() 
> >   'SageMath version 7.4.beta0, Release Date: 2016-08-10' 
>
> You can revert that ~/bin/ change, i.e., remove the link if you want. 
>
> Instead, put this in your worksheet and try again: 
>
> def sage_eval(x, locals=None): 
> if isinstance(x, str): 
> x = str(x).strip() 
> if x.isspace(): 
> return None 
> from sage.all import sage_eval 
> return sage_eval(x, locals=locals) 
>
>
> See 
>   https://github.com/sagemathinc/smc/issues/825 
>
>
> > 
> > 
> > 
> > Em terça-feira, 16 de agosto de 2016 18:45:22 UTC-3, William Stein 
> escreveu: 
> >> 
> >> On Tue, Aug 16, 2016 at 11:37 AM,   wrote: 
> >> > Hello everyone. 
> >> > 
> >> > I want to use the command : 
> >> > 
> >> > sage_eval(('f (x) = (x ^ 2-1) / (x-1)', 'f (1.001)')) 
> >> > 
> >> > but not at work sagecloud, only in the local sage. 
> >> 
> >> You will have to wait until we upgrade SageMathCloud to use the newest 
> >> version of Sage, or type in a terminal 
> >> 
> >> mkdir -p ~/bin; cd ~/bin; ln -s /usr/local/bin/sage-develop sage 
> >> 
> >> and restart your project to use the latest develop version of Sage, 
> >> which has an extended version of sage_eval that works as you expect. 
> >> 
> >> William 
> >> 
> >> 
> >> > 
> >> > -- 
> >> > You received this message because you are subscribed to the Google 
> >> > Groups 
> >> > "sage-cloud" group. 
> >> > To unsubscribe from this group and stop receiving emails from it, 
> send 
> >> > an 
> >> > email to sage-cloud+...@googlegroups.com. 
> >> > To view this discussion on the web visit 
> >> > 
> >> > 
> https://groups.google.com/d/msgid/sage-cloud/f71dbc1f-11f7-4e8b-98a0-d93b47fc85f0%40googlegroups.com.
>  
>
> >> > For more options, visit https://groups.google.com/d/optout. 
> >> 
> >> 
> >> 
> >> -- 
> >> 
> >> Best Regards, 
> >> William Stein 
> >> 
> >> CEO, SageMath, Inc. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sage-cloud" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to sage-cloud+...@googlegroups.com . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/sage-cloud/47847e34-a241-4db7-9039-1c617d1d8ecb%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
>
> Best Regards, 
> William Stein 
>
> CEO, SageMath, Inc. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-cloud+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cloud/d8593db5-c88d-41e2-868c-7668429289ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.