In part II of the continuing series on morality, I took the "Moral Dilemmas" quiz at yourmorals.org. The results:
| Average | Me | |
|---|---|---|
| Impersonal Dilemmas | 3.0 | 6.0 |
| Personal Dilemmas | 3.2 | 1.0 |
In part II of the continuing series on morality, I took the "Moral Dilemmas" quiz at yourmorals.org. The results:
| Average | Me | |
|---|---|---|
| Impersonal Dilemmas | 3.0 | 6.0 |
| Personal Dilemmas | 3.2 | 1.0 |
I just took the highly informative "Moral Foundation" quiz at yourmorals.org. The results:
| Liberals | Conservatives | Me | |
|---|---|---|---|
| Harm | 3.6 | 2.9 | 4.0 |
| Fairness | 3.7 | 3.0 | 4.0 |
| Loyalty | 2.2 | 3.2 | 2.7 |
| Authority | 2.1 | 3.3 | 2.2 |
| Purity | 1.3 | 2.9 | 1.0 |
I just got a new Comcast high-speed cable account today. It was a bit of a hassle to get the setup utility to run properly on OSX, but it did eventually. Then I had a working connection from laptop to cable modem to the world.
I wanted to use my Airport Express as a wireless router; this went less smoothly. I fiddled with this setting and that, but could not get the Airport Express to get a DHCP lease. This discussion, however, solved my problem immediately: the trick is that the cable modem remembers the MAC address of the computer you set up the account with. To fix the problem, just power-cycle the modem while the Airport Express is plugged in to the LAN port.
john has written a little post about using a String as a File (really as an IO) in Ruby. He does a great job explaining how StringIOs work for reading characters. They're particularly good for unit tests on IO operations.
What john doesn't mention, however, is that StringIO is only an 'I.' It has no 'O.' You can't do this, for example:
s = StringIO.new
s << 'foo'
s << 'bar'
s.to_s
# => should be "foo\nbar"
# => really is ''
Ruby really needs a StringBuffer just like the one Java has. StringBuffers serve two important purposes. First, they let you test the output half of what Ruby's StringIO does. Second, they are useful for building up long strings from small parts -- something that Joel reminds us over and over again is otherwise very very slow.
So I wrote a StringBuffer, but it's not very good, and it's not very fast. What we need is one written in C in the core Ruby library. Now that will help Rails scale.
In his spare time, Gaius Centus Novus starts companies and cooks.
I may not agree with what is said here, but let it be said that