Wednesday, March 8, 2023

The joys of C++ templates

It’s been a little while, hasn’t it?

Anyway, this post is about C++ and how nothing ever goes wrong with it, ever. I was building a map with a pair of strings as the key and a complex (and confidential) value. For the purposes of this post, I’ll say the value is an int; the exact value type is irrelevant to this post, anyway.

Monday, May 25, 2020

Mass Effect 2 viewing angles

I recently started replaying the Mass Effect trilogy, having not much else to do while under quarantine. It's been about 7 or 8 years since I'd played through any of the games, since the ending of ME3 really made the rest of the series feel pointless. Now, with some emotional distance and a fresh perspective, I'm going through again and noticing some things that I didn't appreciate before. This post is about viewing angles and why you miss out on some of the pretty skies that exist in the game (and still look pretty great even today).

Wednesday, July 13, 2016

Controversy after OCON 2016

I got back from an awesome OCON filled with guitar-cello duets, talent-show selfies, an awesome fireworks show, and oh, right, some interesting talks about Objectivism as applied to art, childhood education, and foreign policy. It was my second time going (first was last year), and I had a great, but exhausting time.

Obvious disclaimer is obvious: I speak only for myself. My opinions are not necessarily those of ARI, OCON, my employer, people on Facebook who attended OCON, or crab people.

Saturday, February 27, 2016

The sad state of free speech in college

I just saw some videos of the shameful assault on free speech at CSULA by students, faculty, and the president of the university. A speaker named Ben Shapiro was set to give a talk called "When Diversity Becomes a Problem" and had received permission and a venue to speak. In the week before the event, students demanded that the event be shut down, citing the usual (and usually false) claims of "racism" and "hate speech." The president canceled the event, but Young Americans for Freedom and Shapiro decided to hold the event anyway. A professor, Robert Weide, threatened to assault students sponsoring the event. Shortly before the talk started, the president un-cancelled the event, but hundreds of students barricaded the doors to prevent Shapiro and the audience from getting in the room. Here are some videos I found of the event.

Sunday, January 10, 2016

Letter to the city government

So I just found out that, despite promising to end the program this month, the Mountain View city government has decided to extend its stupid food scraps collection pilot "indefinitely." This program cut garbage pickup services in half to once every other week and instead allowed residents to put food scraps in composting bins to be picked up. Upset at this pointless extension of a decrease in useful services provided by the city government, I wrote them the following email:

Saturday, May 23, 2015

Response to a bunch of nonsense

This was originally going to be a Facebook comment in response to this article, but ended up being much, much longer.

Sunday, February 2, 2014

Some musings on unwed parents and poverty

My dad sent me an article about inequality a few days ago. The two points of the article were:

  1. that the minimum wage is not well targeted at reducing poverty
  2. that a large factor in poverty is family structure

Wednesday, September 11, 2013

Update on "When European 'Austerity' Isn't"

Back in June 2012, I wrote a post about how little actual "austerity" had happened among European governments. Most governments had increased their level of spending between 2008 and 2011, and only three governments had decreased their spending from 2007 to 2011. Now that Eurostat has the numbers from 2012, we can see how things have changed in the past year. As before, all numbers are taken unmodified from Eurostat.

Tuesday, July 9, 2013

Public School Peril: a Parallel

Horror story of a DC public school.

I had a very brief experience teaching ballroom dance to middle schoolers in an after-school program at a public school, in Woonsocket, RI. Woonsocket is apparently a relatively poor town, but the school buildings were brand new, so it couldn't have been that bad.

Wednesday, February 13, 2013

Easy solution to the melting ice caps

People are always belly-aching about how the polar ice caps are melting. "Oh, the sea level is going to rise and flood coastal cities!" Blah blah blah, as if this is some unsolvable problem.

Monday, December 17, 2012

Using a Wiimote in Mupen64plus

After much head-wall-banging, I got a Wiimote to pair successfully with my computer and work as a controller in Mupen64plus! There was a lot of trial and error, so I've created a guide to getting a working setup so future generations don't have to go through what I did. The details are in this git repo, which includes detailed instructions and config files.

Wednesday, December 12, 2012

Trying an Android ROM

Against my better judgment, I am going to take another shot at installing a ROM on my phone. The battery life could use some improvement, and people have claimed that some of the 3rd-party ROMs can help with that. I know I have promised myself not to play with ROMs on my phone again, since the result is usually a big waste of time with nothing to show for it, but this time is different.

Brace yourselves for a follow-up in which I immediately regret this decision.

Tuesday, December 11, 2012

Another Ubuntu update, another b0rked system

*sigh*

I updated to 12.10, and Alt+middle-click to resize windows was broken. After about an hour of circular Googling, I found the correct incantation to sprinkle. For some strange reason, the setting org.gnome.desktop.wm.preferences.resize-with-right-button was set to true. Set it back to false and the system returns to its former functioning state.

Sunday, November 18, 2012

Better than "Understanding OOP"

I came across a page talking about the joys of OOP via this blog post. The original page was a thing of horror. I modified the Elisp code from Irreal, adding a few additional features:

Saturday, September 29, 2012

Voting third party and government job "creation"

This is copy of an email I sent just now.

My concern about the libertarian candidate, besides the fact that he cannot win,

That's no reason not to vote for him. A well-functioning democracy requires a choice of more than the people who are "obviously" going to win. Otherwise, it isn't democracy so much as a decree by the political parties who will be the next president.

Thursday, September 20, 2012

Change GTK keybindings from Emacs back to default

Like any virtuous person, I use Emacs for everything, and so tried out using Emacs key bindings for all GTK applications generally. After a year or so of working like this, I have decided to go back. The main problem is that other applications can't handle the awesome power of Emacs. Firefox, for example, uses C-k to jump to the search box, but if you are in the location bar, C-k will run the equivalent of kill-line which means that in order to get to the search bar, you have to remove focus from the location bar. Not convenient.

Thursday, September 6, 2012

Those Dumb Pipes

This is an older idea which had been floating around in my head, half-finished for a few years.

I was inspired by this Ars Technica article to think about the relationship between network operators — both cellular and landline — and consumers. The key quote from the article is by "one mobile operator" and is:

Thursday, August 2, 2012

Correctly Dispatching on Generic Methods in `*apply()` in R

I've been hacking in R recently for work, and it is a bizarrely amazing
language. I just ran into a situation in which I needed to apply an S3 generic
function to a list (actually, a row-wise iterator on a data.frame)
and hit an annoying rough patch

For those not as well-versed in R (I've been learning it for about two weeks at
this point), "method dispatch" is done in a quirky yet effective way. You define
a generic function, say foo like this:

Thursday, July 5, 2012

Listing available monospace fonts in Emacs

After finding out that the Monospace font doesn't support italics, I set about trying to find a suitable replacement. This EmacsWiki page lists a way to print some example text in all of the fonts on the system, which is very helpful for comparing what's available. The problem with it is that it displays all fonts, not just the monospace fonts, which isn't useful. (For those of you not in the know, all programming is done with monospace or uniform-width fonts, meaning that l and m are the same size).

Tuesday, June 19, 2012

Use FileMaker Web Publishing in Apache

I've been tasked with nice-ifying the configuration and setup of the systems at work. They store a huge amount (244 GiB) of protein analysis data in a FileMaker database and have PHP scripts accessing the data through the FileMaker XML HTTP API. The problem is that the PHP scripts are running on Apache (as is an SVN repo), but FileMaker wants to publish its API only through IIS. Having spent more than a minute wrestling with configuring IIS, I want it out of my life ASAP. But that can't be done unless scripts have a way of talking XML to FileMaker on port 80. All hope seemed lost.