Wednesday, September 22, 2010

6.02 lab 2 notes

matplotlib does not format subplots nicely (labels overlap)
To fix, at bottom after created all subplots, add 2 lines:

hspace = .6 ## I experimentally determined this value worked for me
p.subplots_adjust( hspace=hspace )

(assuming import matplotlib.pyplot as p)

It's magic, I pulled it from
http://stackoverflow.com/questions/2418125/matplotlib-subplots-adjust-hspace-so-titles-and-xlabels-dont-overlap


Also, shortcut for closing all windows (instead of individually right-click and 'c' them all)
Type into the IDLE shell where the figures where generated,

p.close('all')

cheers

Saturday, September 11, 2010

random mit websites

http://noontime.mit.edu/
interesting concept, not sure if still actively used, entirely Sloan graduate students and six undergrads.
http://classmates.mit.edu/
fell out of use after last semester, doesn't seem to be maintained (all the classes people are signed up for are from last semester)

~random~
http://mitfml.com/
...yes.
http://isawyou.mit.edu/
there are some really weird posting there. bad taste (chorallaries concert) picked out some highlights.
http://qdb.mit.edu/
quotes from MIT classes (sub to personal classes [of friends] on zephyr for more quotes)
https://wakeup.mit.edu/
and whereis, and ... see previous post (tips and tricks for frosh)

~talks~
http://mitworld.mit.edu/
Nice talks (video)
(Have you seen the machining ones? Nice way to get a base even if you don't remember everything. http://techtv.mit.edu/tags/337-shop/videos)
http://legatum.mit.edu/lectures
More nice talks (video)
http://cluedumps.mit.edu/wiki/SIPB_Cluedump_Series
some good pdfs on there from past talks
http://ocw.mit.edu/
Of course. (Also useful when studying for exams, often has old finals esp. for GIRs). Have you seen Walter Lewin's lectures? They're amazing. Physicists are amazing, whatever my dad may say :)
~Oh dear. I could go on forever. So many videos to watch while doing laundry.
http://www.ted.com/
http://www.justiceharvard.org/ (I was so engrossed in these during charcoal sorting UROP that I lost my ID and keys, a.k.a. $45 official value, in a random tub...)

http://global.mit.edu
international opportunities
~ID~
http://web.mit.edu/mitpsc/showcase/opportunities/index.html
international development opportunities (link's a bit buried
http://web.mit.edu/mitpsc/volunteering/placement/index.html
volunteer opportunities
http://globalchallenge.mit.edu/
Will be a nice place for ideas shortly. (in beta)
http://mitpsc.mit.edu/globalchallenge/
Check out the PSC blog in the meantime

Some tips and tricks for frosh

(for freshmen at MIT)
~~Terrible formatting, because I don't care enough. If I didn't make it a link, google it.~~

There's new frosh on hall, so it's time to answer all the goodies such as how to subscribe to the Reuse mailing list. Around this time of year, popular mailing lists get multiple "subscribe" emails (which don't do anything) sent out to the entire list.

I'm reusing a lot of material from my previous posts, but this post will be terse and aimed at people already at MIT, not prefrosh with too much time on their hands :)

First off, there's a comprehensive FAQ at kb.mit.edu. It's lovely, use it. Try searching for "mailing list" and this wonderful article pops up: How can I add or remove myself from e-mail lists? (Hermes).  Check out the "Browse by Category" view too.
For more FAQs, see http://www.mit.edu/~asksipb/.
http://ist.mit.edu/getting_started/athena is worthy of skimming too (especially the Email section which tells you how to forward or split your mail to Gmail).
For more detailed info, some of which is obsolete, see http://sipb.mit.edu/doc/ 
And if you want in-person help, the student computing group SIPB has an almost-always open office on the 5th floor of the student center. They're really friendly, and they have sharkbananas! :D http://www.sharkbanana.com/

Speaking of gmail, you can use plus-forwarding and the deliveredto: operator to easily catch all your MIT email in a filter. chpobox to $GMAILUSER+mit@gmail.com and when you create your Gmail filter, in the "Has the words:" box enter deliveredto:$GMAILUSER+mit@gmail.com

~Reuse and free-food~
Frosh asks: How do I subscribe to reuse, free-food, other mailing lists?

To subscribe to the free-food mailing list, type in
blanche -a kusername free-food

at an Athena prompt. (where kusername is your Athena username)

To subscribe to the Reuse mailing list(s), go to http://mailman.mit.edu/mailman/listinfo/reuse and sign up. See http://mailman.mit.edu/mailman/listinfo/reuse for more details / more ways to sign up (scroll to the very bottom).
Note that reuse is actually a Mailman list and not a Moira list so blanche doesn't work.

You'll first get an email asking you to confirm the subscription, and then you'll get a welcome email. (I thought I'd confirmed, but I never got a "Welcome" email... so I hadn't).

Consider also
http://boston.craigslist.org/
http://groups.freecycle.org/freecycleCambridgeMA/description (requires Yahoo account)

Oh, and general internets, you can add yourself to the MITERS email list! See http://miters.mit.edu/keyholding/list.php. Feel free to call to see if anyone's in and the space is open. It's exciting when the phone rings, no one ever calls :)

[Edit]
Oh, and as an MIT student there's a lot of free software too, e.g. Windows 7. http://ist.mit.edu/services/software
Also discounts at places such as Digikey. Ask around.

~~Debathena~~
Debathena, Lucid currently, runs on the computer clusters at MIT. It's based off of Ubuntu, which is a popular Linux distribution.

If you're new to linux, just remember the man command. E.g.
man blanche

Apropos is also useful, combined with "piping" it to further refine the search results, e.g.
apropos print | grep lp

If you're confused, try
man apropos
man grep

You can install Debathena on your computer,

~Tips and Tricks~
If you forget the combo, type in
tellme combo

Shortcut to class websites is co (aka co.mit.edu or courses.mit.edu), e.g.
co/7.012
(At MIT, unless you're using google's Chrome browser, there's no need to type out "mit.edu")

To look someone up, go to web.mit.edu and select People Search. Or at a terminal, try

finger $athenausername
.

Lost? Wondering where in the world is building 31?
whereis.mit.edu
("cluster" is a useful search)

~Getting Stuff~
Groceries:
Shaw's: If you live at EC, instead of hitting mass ave and turning right, cut through Stata and head to star's via the MIT Museum. Ask an upperclassman to show you the route. Takes 11 minutes one-way.
Seven Eleven is 5 minutes away from EC and has the cheapest milk.
Verde's @ student center is open 24/7 (during the school year). Most things are noticeably marked up.
Haymarket has the cheapest fruit and veggies (and sketchy meat), open on Friday and Saturday only, get there early (9 or 10am works for Saturdays). See http://www.yelp.com/biz/haymarket-boston for more tips.
Chinatown is 17 minutes away by T.
There's food trucks on the T-stop side of MIT medical.

Free things:
Mailing lists: free-food, vultures@csail, reuse and reuse-ask
Also, stuff on 35 loading dock is up for grabs, cool stuff shows up sometimes. There are freegans aka [food] dumpster divers at MIT, although I don't know if anyone relies on them for food. ask around if you're interested. Around the start and end of semester many nice things show up in dumpsters as well.
Dan Fourie on hall (putz aka 2w) has a google calendar, ask me for the link or find it on his website.
There's also events.mit.edu, although many events are not listed on there (see flyers around campus instead).

Floorplans: https://floorplans.mit.edu/ (for those hard-to-find reuse posts)

Getting books: bookspicker.mit.edu (compares prices from APO book exchanges and a bunch of online sites, search by class #),
APO Bookex http://apo.mit.edu/bookex/ (Best way to get cheap textbooks. Get there early on the first day, before opening time).
MIT Press has a loading dock sale every semester, but there's no way of knowing what books will be there. Definitely go the first day when they're not open to dealers. Prepare to spend some time browsing.

Best way to find books is MIT Worldcat (linked from libraries)

~Athena Filesystem~
Three important folders:
/Public         Files here are by default accessible by everyone, including people on the internet
/www      Similar to public. If you use scripts (see below) things will appear here.
/oldfiles   Contains a day-old backup of all your files. Has saved people in the past.
If you're on Athena, you can fire up Nautilus (the file manager) and


cd /mit/$athena-username
See http://ist.mit.edu/services/athena/afs#acls for more info. Call it recommended reading.

If you're on ubuntu, try Places > Connect to Server..., select "Service Type: SSH", fill in appropriately. Alternatively, open up Nautilus, hit Ctrl-L and type in sftp://$username@linux.mit.edu/mit/$username
On Mac/Linux, you can open a terminal and
ssh $username@linux

On Windows, you can download PuTTY. http://www.chiark.greenend.org.uk/~sgtatham/putty/

Want to set up your own wiki or wordpress super-easily? See http://scripts.mit.edu/start/

Some odd building connections: 3rd floor of 24 (ESG building) connects to 3rd floor of 34, the 30 buildings are connected on the 3rd floor, there's a Windows cluster with dual monitors in 37, and there's a Mac cluster with media software on the 1st floor of 26 (sometimes has classes in it) (has a scanner).

[Edit: Saturday, September 11, 12:22 PM]
How could I forget https://wakeup.mit.edu? Amazing lifesaver. Calls your room phone (need certificates) and plays song (e.g. Puff the Magic Dragon) over voicemail at set time.

Oh, and if you're at all interested in artsy things, we have the Student Art Association which offers heavily subsidized art classes and has a great workspace with tools on the 4th floor of the student center. See http://saa.mit.edu/studios for classes.

[Edit: Saturday, October 2, 1:17 AM]
Other good loading docks in addition to 35:(loading docks in general tend to be nice)
Stata basement, back of the parking lot. That's actually a place for recycling electronics. So there are monitors, random old electronics, random old lab parts, power supplies, printers, rolly chairs at various stages of decay, and such down there regularly. sometimes couches.
N52, MIT museum. I've seen couches, bike parts, random rubber wheels

Friday, September 10, 2010

6.005 installing software

http://web.mit.edu/6.005/www/fa10/labs/procedural_java/assignment.htm
ubuntu 10.04 (lucid) on mai netbook
my best guesses as to what packages to install:

Ubuntu Software Center (the shiny UI package manager) or synaptic or apt-get install

sun-java6-jdk
eclipse (Extensible Tool Platform and Java IDE)
libsvn-java

then install subclipse http://web.mit.edu/6.005/www/fa10/labs/procedural_java/subclipse.html

if you have a slow processor
eat some ice cream and come back after ten minutes
the progress bar hangs @ 60% for a while, just let it run (don't Force Quit eclipse like me and deal with stupid errors)


[Edit 7-Dec-2010] Note that the eclipse package that comes with Ubuntu (the one that's installed if you go to [Ubuntu Software Centre]) is an outdated version, Galileo. Because subclipse or just SVN access got very messed somehow during my update from Lucid to Maverick, I ended up downloading the newer version directly from the Eclipse website.
I do like Helios more, however note that if you install Galileo, don't completely uninstall it, and then download and untar Helios, funky things happen. For instance, I use the DockBarX applet (aka win7-like GUI for managing windows) and if I run Helios from the directory I unpacked it in, the eclipse icon will associate with Helios appropriately, but clicking on the icon if no eclipse is running will launch Galileo. Of course, one can easily without [right-click>Properties>Edit Launcher] and pick out the right file to launch.


[edit 8 dec 2010]
http://stackoverflow.com/questions/2276932/subclipse-plugin-doesnt-work-in-eclipse