[sage-support] Re: Dvorak Keyboard

2008-09-19 Thread Q

sudo dpkg-reconfigure console-setup

worked great, problem sloved thanks for the help.

David

On Sep 19, 7:36 pm, Q <[EMAIL PROTECTED]> wrote:
> I am running VMware Sage on my Windows box, is there a way to change
> the keyboard layout that Sage uses from Qwerty to Dvorak? Or would it
> be located somewhere in the VMware Player software? Or should I just
> convert to Linux?
>
> Thanks,
> David
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Dvorak Keyboard

2008-09-19 Thread Jason Grout

Q wrote:
> I am running VMware Sage on my Windows box, is there a way to change
> the keyboard layout that Sage uses from Qwerty to Dvorak? Or would it
> be located somewhere in the VMware Player software? Or should I just
> convert to Linux?


Since the VMware image is just ubuntu, you might look for how to change 
Ubuntu to have a dvorak keyboard layout.  Two URLS that came up for me were:

http://ubuntu-tutorials.com/2008/01/31/changing-the-system-keyboard-mapping-on-ubuntu-dvorak-vs-qwerty/

and

http://ubuntuforums.org/archive/index.php/t-31918.html

I would probably try:

sudo dpkg-reconfigure console-setup

I think the layout is on the third screen in that program.

-Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Dvorak Keyboard

2008-09-19 Thread Q

I am running VMware Sage on my Windows box, is there a way to change
the keyboard layout that Sage uses from Qwerty to Dvorak? Or would it
be located somewhere in the VMware Player software? Or should I just
convert to Linux?

Thanks,
David

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: can't run a script on when using SAGE on Milnix.org server

2008-09-19 Thread Kevin Miles

Hi, I run the milnix.org server and I just installed the imagemagick
program on the server.  Should work fine now, sorry about the
inconvenience

On Sep 18, 9:02 pm, pong <[EMAIL PROTECTED]> wrote:
> I have written an animation which runs fine in SAGE on my PC.
> However, when I run the same script on Milnix.org server, I got an
> error message:
>
> sh: convert: command not found
>
> what's the problem? any help?
>
> Thanks in advance
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: can't run a script on when using SAGE on Milnix.org server

2008-09-19 Thread Kevin Miles

Hi, I run the milnix.org server and I just installed the imagemagick
program on the server.  Should work fine now, sorry about the
inconvenience.

On Sep 18, 9:24 pm, pong <[EMAIL PROTECTED]> wrote:
> Thanks for the explanation. It does work in server 2.
>
> -Pong
>
> On Sep 18, 6:05 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
>
> > On Thu, Sep 18, 2008 at 6:02 PM, pong <[EMAIL PROTECTED]> wrote:
>
> > > I have written an animation which runs fine in SAGE on my PC.
> > > However, when I run the same script on Milnix.org server, I got an
> > > error message:
>
> > > sh: convert: command not found
>
> > > what's the problem? any help?
>
> > This is because the convert command (from imagemagick) is not
> > installed on that system.  I have no idea who runs the milnix.org
> > server.
>
> > --Mike

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-19 Thread Martin Albrecht

> >  * I'd be very happy if you'd share your code! I would like to make sure
> > that it fits into the current framework/is compatible and reuses the
> > existing machinery. Are you doing that?
>
> I don't think so. What should I do to make my code to fit in the SAGE
> framework? Maybe there are some guidelines for developers? The only
> link i found was this one http://www.sagemath.org/development.html

Hi there,

at

http://sage.math.washington.edu/home/mhansen/doc-sphinx/SageDevelopersGuide.pdf

you'll find a prerelease of the new developer's guide. Some parts are not 
finished/polished but it should answer at least some questions. My main point 
however is that the implementation of this functionality should be in 
crypto/mq/sr.py (i.e. in the classes for SR) and re-use the methods provided 
there (for consistency). Let me know if you need help.

> >  * If we're going to support direct representation of ciphertext bits in
> > plaintext and key variables we should also support GF(2^n) as base field
> > not only GF(2), i.e. BES style equations. This will be slightly more
> > involving.
>
> Anyway I was already thinking of developing a version of my code for
> GF(2^n), so I would gladly help with this.

Excellent!

Cheers,
Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: var names

2008-09-19 Thread William Stein

On Fri, Sep 19, 2008 at 6:47 AM, Bob Wonderly <[EMAIL PROTECTED]> wrote:
>
> After being a few hours into a Sage session I start losing track of all
> the vars I have defined. Is there a way to get Sage to list them for me?
>
> TIA
>
> Bob

You might find the show_identifiers command helpful.  It includes
a few extra vars you didn't define, but should always list everything
you did define.

teragon-2:~ was$ sage
--
| SAGE Version 3.1.1, Release Date: 2008-08-20   |
| Type notebook() for the GUI, and license() for information.|
--

sage: show_identifiers()
['fortran', 'Out', 'variables', 'In', 'help', 'view_all', 'attached_files']
sage: a = 10; b = 17; x = 3990230
sage: show_identifiers()

['fortran',
 'Out',
 'variables',
 'In',
 'a',
 'help',
 'view_all',
 'b',
 'attached_files',
 'x']
sage:

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: bug in limit()

2008-09-19 Thread Ondrej Certik

On Fri, Sep 19, 2008 at 3:18 AM, Alex Raichev <[EMAIL PROTECTED]> wrote:
>
> Sweet!  Thanks, Mike.
>
> On Sep 19, 11:56 am, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
>> On Thu, Sep 18, 2008 at 4:54 PM, Alex Raichev <[EMAIL PROTECTED]> wrote:
>>
>> > Now, with the above in mind, how do you write a function to evaluate
>> > that sine limit given a variable from the user?  We know the following
>> > does not work.
>>
>> > sage: var('x')
>> > x
>> > sage: def limmy(w):
>> > : return limit(sin(w)/w,w=0)
>> > sage: limmy(x)
>> > sin(x)/x
>>
>> > More generally, how do you execute functions requiring keyword
>> > arguments, such as limit(), when you don't know the symbolic variable
>> > names involved (but have references to them)?
>>
>> Here's one way to do it:
>>
>> sage: def limmy(w):
>> : return limit(sin(w)/w,**{str(w):0})
>> :
>> sage: limmy(x)
>> 1
>> sage: limmy(var('w'))
>> 1
>>
>> Not the most elegant, but it works.

Isn't this an argument for not using keyword arguments but variables
directly in things like subs, limit, etc.? I was discussing this
with David Roe at length at Sage Days 6 in Bristol, but I think I
didn't persuade him that using kwargs for this kind of things is evil.
:)

Ondrej

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] var names

2008-09-19 Thread Bob Wonderly

After being a few hours into a Sage session I start losing track of all 
the vars I have defined. Is there a way to get Sage to list them for me?

TIA

Bob Wonderly

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-19 Thread vpv

Hi Martin,

Thanks for your reply. Please, see my comments inline.

On Sep 18, 12:18 pm, Martin Albrecht <[EMAIL PROTECTED]>
wrote:
> Hivpv,
>
> you can certainly post-process the first option to get an equation system in
> the plaintext and key variables alone. You'll need an appropriate term
> ordering where each layer's head term is bigger than the previous layer's
> head term. You'll also replace the S-Box equations by direct equations which
> is just the Gröbner basis with this variable order + 'lex'. Finally, you
> compute the normal form of each layer w.r.t. the last layer.
>
> As for the direct generation:
>
>  * I'd be very happy if you'd share your code! I would like to make sure that
> it fits into the current framework/is compatible and reuses the existing
> machinery. Are you doing that?
>

I don't think so. What should I do to make my code to fit in the SAGE
framework? Maybe there are some guidelines for developers? The only
link i found was this one http://www.sagemath.org/development.html

>  * I'd guess it should be fairly straight forward (for someone knowing the
> code of mq.SR) to add what you want: (a) make some type checks more relaxed &
> user-friendly and (b) add support for 'variable encryption' by replacing
> sr.sub_bytes with a function returning equations.
>

This will be very useful. For me at least.

>  * In the upcoming version of Sage (3.1.2) mq.SR generates equation systems in
> PolyBoRi if asked to.
>
>  * If we're going to support direct representation of ciphertext bits in
> plaintext and key variables we should also support GF(2^n) as base field not
> only GF(2), i.e. BES style equations. This will be slightly more involving.
>

Anyway I was already thinking of developing a version of my code for
GF(2^n), so I would gladly help with this.

> Cheers,
> Martin
>
> --
> name: Martin Albrecht
> _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> _www:http://www.informatik.uni-bremen.de/~malb
> _jab: [EMAIL PROTECTED]

Greetings,
vpv
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: why isn't QQ a FractionField?

2008-09-19 Thread daveloeffler



On Sep 19, 12:50 am, "William Stein" <[EMAIL PROTECTED]> wrote:
> >    sage: FormalSum([(1,1/4),(1,-1/5)])
> >    -1/5 + 1/4
> >    sage: FormalSum([(1,1/4),(1,-1/5)]) == 1/4 - 1/5
> >    False
>
> That could be considered a bug and fixed.  I would
> be fine with something better, i.e., comparison computing
> the value of the formal sum if possible, and comparing them.

That would horribly break my group algebras class, which is based on
FormalSum. Couldn't one add a method evaluate() to the FormalSum
class, so we'd have

sage: FormalSum([(1,1/4),(1,-1/5)]) == 1/4 - 1/5
False
sage: FormalSum([(1,1/4),(1,-1/5)]).evaluate() == 1/4 - 1/5
True
?

David
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: substitution with callable symbolic functions

2008-09-19 Thread Ondrej Certik

On Fri, Sep 19, 2008 at 6:54 AM, Alex Raichev <[EMAIL PROTECTED]> wrote:
>
> Hey all:
>
> I'm back with a follow up question on the topic of substitution in
> Sage.  How can i work the following example?  I have an expression
> that involves the derivative of a function, and into that expression i
> want to substitute the value of the derivative.  Simple, eh?  I tried
> Mike's ** trick and variations thereof, but that doesn't seem to work:
>
> sage: var('x,y')
> (x, y)
> sage: f= function('y',x)
> sage: g= diff(f,x)
> sage: h= diff(f^2,x)
> sage: print h
>
> d
>  2 y(x) (-- (y(x)))
> dx
>
> sage: print h.substitute(**{str(g):cos(x)})

Use:

sage: h.subs_expr(g == cos(x))
2*cos(x)*y(x)


I think this subs, subs_expr and substitute is very confusing in Sage,
at least to me.

Ondrej

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---