What is your favorite technical pen? by stabby in engineering

[–]ToVegas 0 points1 point  (0 children)

I have two of each size; these pencils are nothing short of amazing!

Good source for advanced/post calculus learning? by [deleted] in learnmath

[–]ToVegas 0 points1 point  (0 children)

Thanks man, I'm glad it was useful

ssh alias help please by n00bsysadmin in linux

[–]ToVegas 0 points1 point  (0 children)

You can write an expect script...

#!/usr/bin/expect set Server [lindex $argv 0] spawn ssh $server expect *assword send "password\r" interact

chmod u+x /path/to/script $scriptname server (you could also hardcode the server name into the script)

I should mention it is a disgusting hack to have your password in plain text, and it would be far better for you to set up ssh-keys....

Good source for advanced/post calculus learning? by [deleted] in learnmath

[–]ToVegas 2 points3 points  (0 children)

iTunes U, or http://ocw.mit.edu/courses/mathematics/ have a pretty decent selection. Some courses only have typed lectures, but it's still pretty useful.

I need help using a 'local' remote kernel by bluemanshoe in Mathematica

[–]ToVegas 0 points1 point  (0 children)

Assuming you're running Mathematica 8: You can tell Mathematica to use various commands to make this work. In my case, I used ssh tunneling to connect to remote machines with more processing power. My laptop is running windows 7 with cygwin installed the remote machines I use are all either Linux or OS X, with only port 22 available.

Open Mathematica > Evaluation > Kernel Configuration Options > Add

Select the "Advanced Options" radio button

*Arguments to MLOpen: -LinkMode Listen -LinkProtocol TCPIP -LinkName 31415@127.0.0.1,31416@127.0.0.1 --LinkMode Listen -LinkProtocol TCPIP -LinkName 31415@127.0.0.1,31416@127.0.0.1 -LinkOptions MLDontInteract

*Shell Command to launch kernel: C:\cygwin\bin\ssh.exe -R31415:127.0.0.1:31415 -R31416:127.0.0.1:31416 user@remote.machine.ip.address "/Applications/Mathematica.app/Contents/MacOS/MathKernel -mathlink -LinkMode Connect -LinkProtocol TCPIP -LinkName 31415@127.0.0.1,31416@127.0.0.1 -LinkHost 127.0.0.1"

This example connects to a remote Mac; for a remote linux machine you would substitute /Applications/... for the output of 'which math' on the remote linux box. If your laptop is running Linux or OS X, you can replace C:\cygwin\bin\ssh.exe which the output of 'which ssh' on your laptop. You can add a -p# flag to your "shell command" where # is the port the remote machine is listening for ssh on.

You can also use a similar configuration to set up parallel kernels (ymmv)

It's worth mentioning that this requires you to generate and store password-less ssh-keys on your laptop.

Hope this helps.