essui nightwatch avatar

just in case you were feeling happy

In August 1999, political organizer Ralph Reed's firm sent out a mailer to Alabama conservative Christians asking them to call then-Rep. Bob Riley (R-Ala.) and tell him to vote against legislation that would have made the U.S. commonwealth of Northern Mariana Islands subject to federal wage and worker safety laws.


"The radical left, the Big Labor Union Bosses, and Bill Clinton want to pass a law preventing Chinese from coming to work on the Marianas Islands," the mailer from Reed's firm said. The Chinese workers, it added, "are exposed to the teachings of Jesus Christ" while on the islands, and many "are converted to the Christian faith and return to China with Bibles in hand."

A year earlier, the Department of the Interior -- which oversees federal policy toward the U.S. territory -- presented a very different picture of life for Chinese workers on the islands. An Interior report found that Chinese women were subject to forced abortions and that women and children were subject to forced prostitution in the local sex-tourism industry.
essui nightwatch avatar

(no subject)

There's a very interesting security hole in GNOME. If a program is in a loop constantly asking for the keyring password, you can't kill it from the GUI. You have to enter the password to make it shut up. The password box for the keyring is modal and prevents you from interacting with all other apps.
Wiggly Reddwatch


Whoever ported Cave Story to the Mac left in the symbols!!!

void __cdecl EncryptionBinaryData2(_BYTE *data, signed int in_len)
  unsigned __int8 v2; // al@1
  int key_pos; // ebx@1
  signed int len; // edi@1
  int key; // esi@2
  int i; // edx@4
  int n; // eax@6

  len = in_len;
  key_pos = in_len / 2;
  v2 = data[in_len / 2];
  if ( v2 )
    key = -v2;
    key = -7;
  i = 0;
  while ( i < len )
    if ( i != key_pos )
      n = (key + data[i]) & 0x800000FF;
      if ( n < 0 )
        n = ((n - 1) | 0xFFFFFF00) + 1;
      data[i] = n;

This is used for most of the data files in the game.
  • Current Mood
    dorky dorky
essui nightwatch avatar

(no subject)

I've started work on a mod of Lua. Seems that everyone who uses Lua does this eventually... it's interesting how its internal simplicity leads to fragmentation.

Anyhow, here's what I have planned:
- Curly brace syntax instead of paired keywords. Sorry, but "if then else end" is pretty baroque at this point. Braces are nicely Huffman coded.
- Mandatory semicolons.
- Arrays index from 0. Dijkstra is completely right on this one.
- fn as an abbreviation for function. Also, fn(x) : foo should be accepted as shorthand for function(x) { return foo; }
- No tuples. Tuples are lists instead. a, b, c is shorthand for [ a, b, c ].
- On that note, tables are initialized as { key: value }, allowing native JSON compatibility.
- A unit type like OCaml, written as ().
- All functions take one argument and return one argument, just like OCaml. Zero argument functions are invoked like f(); i.e. applying f to unit. Multiple argument functions are passed a liist.
- Method invocation with ->, just like Perl and C++.
- Maybe some form of pattern matching? Not sure how to do this correctly without bloating the language.

Suggestions, comments?
essui nightwatch avatar

(no subject)

I'm going to be using Twitter instead of LJ for most of my updating for a while at least. I rarely post what can't be summed up in 140 characters on this thing anyway.
  • Current Mood
    sleepy sleepy
essui nightwatch avatar

Acen? Dame yo

I went with Scott to check out Acen. Since we couldn't be there Friday, it made no sense to preregister. Due to delays on the CTA, we got there around 12:15 PM. No problem right?

There were people who had arrived at 7:15 in the morning still standing in the fucking registration line.

No thanks. I bailed. Acen is fun and all, but I ain't waiting 6 hours. I guess I'm getting old.
essui nightwatch avatar

Sound on Linux!

If you have sound problems on Linux, do this:

(1) Install PulseAudio. Instructions for Ubuntu are here.
(2) Enjoy.

Seriously, PulseAudio needs to be set up as the default in Linux distributions now. Because it tries to emulate every known way for Linux apps to access the sound card (with the notable exception of aRts, but you can upgrade to KDE 4 to mitigate that), apps that play sound suddenly start to Just Work. I've installed PulseAudio on both of my main Linux systems now, and it was ridiculous how all the problems just disappeared. Sound mixing and incompatible sound APIs have been terrible warts on Linux for a long time, and the sooner people just move to Pulse, the better.
  • Current Mood
    weird weird
essui nightwatch avatar

(no subject)

"I play a lot of TF2 anymore."

This is a weird sentence, Dr. Dos. Half the class didn't know what it meant! Your dialect screws up semantic analysis of negative polarity items.

The prof said it was a rural Pennsylvanian dialectical thing. Has anyone else heard this? Dos is the only one I know who uses "anymore" this way.

edit: better example sentence