Attending MLSys 2020

Posted on Sun 02 February 2020 in research

Our demonstration of Ballet was recently accepted at the Conference on ML and Systems (MLSys 2020). I will be attending the conference March 2-4 to present a live demonstration of our framework for real-time, collaborative feature engineering. I'm looking forward to attending the conference, visiting Austin, TX, and meeting some …


Continue reading

Dataclasses and mutable defaults

Posted on Tue 14 January 2020 in programming • Tagged with python

One common Python gotcha is the use of mutable objects as defaults for function keyword arguments. There are approximately one billion questions on SO about this or nice discussions elsewhere. I came across a nice feature in Python's dataclasses library that addresses a similar problem.

Mutable defaults are bad

As …


Continue reading

Fixing invalid argument iwhite on vimdiff

Posted on Thu 07 November 2019 in programming • Tagged with vim, macos, catalina

Vim's diff mode is a lightweight diffing tool that can be used at the command line, in particular with the git diff command. In a previous post, I wrote about configuring vimdiff as the git difftool for use with Matlab development (yes, way back when I was actually writing Matlab …


Continue reading

Anonymize GitHub repos for double-blind submission

Posted on Wed 23 October 2019 in research • Tagged with latex

Many venues for submitting research in computer science and other academic fields follow a double-blind review process, in which the authors should be anonymous to the reviewers. This can cause conflicts with ideas from open science or with the evaluation of software contributions as any linked GitHub repositories can contain …


Continue reading

Find ports in use on macOS

Posted on Mon 16 September 2019 in programming • Tagged with macos, shell

How to find ports that are already "in use" on macOS:

sudo lsof -P -i TCP -s TCP:LISTEN

This is helpful if you are trying to figure out which process is using a port so that you can kill that process — for example, if you have a web server …


Continue reading

Trim graphics in LaTeX

Posted on Fri 13 September 2019 in programming • Tagged with latex

How to trim a figure in LaTeX.

You've already inserted the figure into a figure environment and now want to trim excess whitespace.

Start adjusting from here:

\fbox{\includegraphics[clip=true, trim={0 0 0 0}, width=\linewidth]{myfigure}}

fbox is a black box around the float content so you …


Continue reading

Using autoreload in IPython

Posted on Fri 13 September 2019 in programming • Tagged with python, ipython, jupyter

Using the autoreload extension.

%load_ext autoreload
%aimport mymodule
%autoreload 1

The autoreload command understands three levels:

  • 0 -> extension is disabled
  • 1 -> reload modules that were marked with %aimport
  • 2 -> reload everything

The easiest usage of autoreload is to not aimport anything and set %autoreload 2, which causes the extension to …


Continue reading

Switching up blog content

Posted on Thu 12 September 2019 in general

It's been over a year and a half since I've last posted here. I have some great ideas for really interesting posts to write, but somehow I never seem to find the time.

So I'll be switching the type of content I post in an effort to write more. I …


Continue reading

My year in books

Posted on Sun 31 December 2017 in life • Tagged with life, books

At the beginning of 2017, I made a resolution: I would read 17 books for pleasure over the course of the year. Now, this might seem like very few to my mother who claims to read a new book every two days on her Kindle. And it might seem like …


Continue reading

Wonders of YouTube

Posted on Fri 19 May 2017 in life • Tagged with life, italian, youtube, spirits, mediums

Who was Eusapia Palladino?

Eusapia Palladino era una medium Italiana.

I remember saying these words over and over in my dorm room in Schapiro Hall during my third year of college. I was practicing for the midterm presentation in my Advanced Italian Conversation course, in which we had to make …


Continue reading

You need a doorbell

Posted on Fri 03 February 2017 in programming • Tagged with life, programming, python, twilio, flask

Sometimes a dumb technical approach can be a solution to a real world problem.

I live in a graduate residence that doesn't have a buzzer system. To be granted access, my guests have to text/call me directly and I have to walk downstairs to let them in. Though this …


Continue reading

My first crossword

Posted on Tue 24 January 2017 in crossword • Tagged with crossword

I made my first crossword! This is something that I've been working on very intermittently since 2011. Very intermittently, in the sense that I would make progress only when I was flying across the country on college breaks and, with no any internet connection, sometimes didn't have anything better to …


Continue reading

I ran a race and made some graphs

Posted on Thu 17 November 2016 in dataviz • Tagged with dataviz, running, julia

The Cambridge Half Marathon was this past Sunday and I was able to race with a couple of friends. It was a gorgeous day and very nice course. As always, I was inspired by the diversity of runners.

After finishing, I was happy to see that the full results were …


Continue reading

Why I'm bailing on Julia for machine learning

Posted on Fri 04 November 2016 in programming • Tagged with julia, python, ml

I'm bailing on Julia for machine learning — just for my one class, that is. Don't worry ~too much~!

I'm taking graduate machine learning (6.867) this semester at MIT. There are three homework assignments in the course that are structured as mini-projects, in which students implement canonical algorithms from scratch …


Continue reading

Eight days a week, revisited

Posted on Thu 02 June 2016 in economics • Tagged with life, economics, corporate drones, nundinum

If, as I investigated in a previous post, you were down with an eight-day week, then you were down with an idea that is possibly welfare improving. Give yourself a pat on the back.

That's according to Maya Eden in a paper elegantly titled The Week. Dr. Eden presented her …


Continue reading

Using vimdiff with dumb paths

Posted on Tue 02 February 2016 in coding • Tagged with vim, git, matlab

I've been loving vimdiff as my git difftool for a while.

Vimdiff and Matlab packages

Vimdiff runs into some problems when working with Matlab code. Matlab considers directories with names beginning with + as "packages", a natural way to organize projects. However, this means that many paths relative to the git …


Continue reading

How Goldman stays cool

Posted on Mon 11 January 2016 in buildings • Tagged with buildings, ice, cubes, ice cubes

Goldman literally has a vault full of ice cubes.

I wasn't sure if I had imagined this fun fact or not, but sure enough, Goldman's FiDi headquarters is literally air conditioned in hot weather by the melting of massive ice blocks in their basement.

According to the WSJ, which covers …


Continue reading

Eight days a week

Posted on Sat 09 January 2016 in economics • Tagged with life, economics, corporate drones, nundinum

What would you give up for a three-day weekend?

The problem

How great are three-day weekends? For me, at least, they recall the days in undergrad in which Thursday at 2pm was the end of the work week. The rejuvenation of those three-day weekends is certainly a step above the …


Continue reading

Welcome

Posted on Fri 08 January 2016 in life • Tagged with life

Welcome to my site. I'll be writing about various topics, such as the world to which we are all party.


Continue reading