Implementation of today’s xkcd in Vim

I couldn’t help myself.

In case you haven’t seen it, the xkcd comic for today plays on the weird configurations we programmers apply to our personal computers. The mouseover text reads: “If used with software that could keep up, a scroll wheel mapped to send a stream of ‘undo’ and ‘redo’ events could be kind of cool.” Well, as it turns out, Vim can “keep up.” All it takes is these two commands:

map <ScrollWheelDown> :undo<CR>
map <ScrollWheelUp> :redo<CR>

Put those in your .vimrc or run them as commands and watch as using the scroll wheel or two-finger trackpad scroll cycles through your history. Enjoy!

Fun fact: the comic alludes to mapping caps lock to control, which is something that Emacs users actually do. Vim users are more partial to mapping caps lock to escape.


Computer Science wins Trunk or Treat!


Hello, all,

We won! The ACM Student Chapter just got the first place prize in Trunk or Treat. I’d like to thank everyone who volunteered to help out, especially Jack, who let us use his car even though he couldn’t be there himself, John Peter, who programmed the robot and dressed up like Darth Vader, and Ted Morin, who helped weaponize the robot and got costumes for the rest of us. Now we have $75 more for public events, so let’s start thinking about how we can use it!
Thanks again,
Brian McCutchon

3D Engine for Geometry

Our project is up on the GitHub. Please follow these steps to import it into Eclipse:

1. Within Eclipse go to File -> Import
2. Select “Projects from Git” under the “Git” folder and click Next.
3. Select “URI” for the location, click Next
4. Use this location:  (Copy-and-paste that location into the appropriate box within Eclipse. You don’t need to click on the link…) There is no need to enter a username or password at this time. Click Next.
5. On the next screen, select the “master” branch, and click Next
6. Select a place to save your project. Probably the default is fine. Click Next.
7. After it finishes reading our project, select the “Import existing projects” wizard, and click Next.
8. Select the “Geometry2014” project, and click Finish.

That should do it. Depending on your Eclipse settings, you may need to select a JRE System Library within Eclipse. To do this, within Eclipse, select Project -> Properties to bring up the Properties page. In the left margin select “Java Build Path.” And within the “Order and Export” tab, select the JRE that you wish to use, and click OK. Then everything will work perfectly.

The Arena class has the main method that launches the 3D engine. Run “Arena” as a Java application to see the world.