Mostrando entradas con la etiqueta mathematica. Mostrar todas las entradas
Mostrando entradas con la etiqueta mathematica. Mostrar todas las entradas

miércoles, 10 de noviembre de 2010

Quitar el problema de tecla Alt Gr en mathematica 7 linux

Hello!

I found out a solution for the Alt-Gr issue.

Open /usr/local/Wolfram/Mathematica/7.0/SystemFiles/FrontEnd/
TextResources/X/KeyEventTranslations.tr file on your system.(eg.: sudo
nano ..., paths may vary).

Then somewhere under "EventTranslations[{" type some newlines, then
paste this literally:

Item[KeyEvent["ISO_Level3_Shift"],
FrontEndExecute[{FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
Sequence[], After]}]
],

This code translates the Alt-Gr key(ISO_Level3_Shift) to produce
something in the notebook, which is in this case nothing, becase
Sequence[] evaluates to nothing, albeit its syntactically correct.

Restart mathematica, and enjoy its once again slow interface under
Linux :(

i used version Mathematica 7.0.0, kernel 2.6.27, 64bit, Arch Linux, X.org
v11.0.

by the way: you can define shortcuts in this file easily.

https://groups.google.com/group/comp.soft-sys.math.mathematica/browse_thread/thread/af3220b6fa4ffc33?hl=bn

jueves, 18 de marzo de 2010

Comandos para usar mathematica desde nucleares

Abrir terminal y teclear:
>xhost +

>ssh -X usuario@metropolis.unam.mx

Para abrir el mathematica
>mathematica

Copiar un archivo para imprimir en las impresoras configuradas en el equipo que estemos usando:

Desde la máquina que estemos usando. Abrimos otra terminal que contiene la ruta local de ejecución y se teclea:
>scp -r usuario@metropolis.unam.mx:~/carpetas/archivo /directorio_destino

Nota:
-r es la opción de recursividad por si se quiere copiar el directorio completo, de lo contrario omitir
~/ indica el home que tenemos en el servidor de forma abreviada
/directorio_destino se puede sustituir por un punto . si queremos copiarlo en el lugar desde donde nos encontramos ejecutando el comando

Desde el servidor. No abrimos ninguna terminal, desde metrópolis tecleamos:
>scp -r archivo usuario@metropolis.unam.mx:/directorio_destino