The boring rants of a lazy nerd

Friday, July 21, 2006

No Update

Frankly, I have nothing to say. I have family in Haifa, but they are all safe. Some friends who serve in the north but don't have to have been reassigned to the center. Some people's end of semester exams have been postponed. I try not to feel anything about the dead and injured. My neighbor from when I grew up got married. A friend of mine from training is getting married in August. Another friend from training is getting married in September. Life goes on. Thank you for worrying, Emily.

Tuesday, July 04, 2006

software/life

First of all, I have to say that I have been using XMMS for years now, and having discovered Amarok in Mark's essentials list I feel ashamed, because I realize I have been living in the dark ages. XMMS is basically WinAmp 0.9, the kind that was bundled with Netscape 4 IIRC, so it's quite dated by Q3 '06. Anyway, Amarok rocks, and MusicBrainz (integrated music fingerprint identification system) is awesome. And it's all free!

On a completely unrelated note, girls are a wonderful thing, because they don't have this competitive macho thing that's going on whenever young males interact. I find it very relaxing. So much so, that I'm even contemplating increasing my interaction with females up from "never" all the way to "occasionally", which is, admittedly, a very large step.

Monday, June 26, 2006

Update

  • The weather is hellish.
  • Strangely, I'm excited about my current assignment. I wonder how long that will last.
  • Was ordered to give a presentation on a system I've participated in building to rest of dpt. Was horrible, because I didn't return to the big picture after each chapter so people who lost me midway had no way to reorient themselves.
  • Appears to have found a bug in IBM C/C++ compiler for zOS, systems people promised to check whether it's documented.
  • Female team member appears to be afraid of me. I didn't do anything, it's just that none of us are all ok in the head.
  • New team member is the most painfully extroverted person I've met, with no tact whatsoever, zero experience in behaving at a workplace, programming, working in teams, quasi-military reality, etc.
  • Immediate boss is control freak, not talented at management at all.
  • Services we must rely on provided by other departments don't work so it looks like our stuff doesn't work and we look like idiots to our clients.
  • Buddy got left in the sun for more than ten hours because security officer freaked and decided that state of alert equals war and he can disregard the regs. His CO couldn't do anything about it.
  • Got detention for a week for being late. Spending it in an air conditioned room with a fridge, microware oven, cold/hot water thingy, phone with civilian line and an unmonitored broadband internet connection reminded me once again that I'm not really in the army. Was kind of a vacation!
  • I work in the public sector, so it all sucks, and I can't quit because I'm under contract. Because I can't quit, they can treat me like shit, and sometimes they do. Of course they know they get shitty work from an unsatisfied, undermotivated, undertrained, unwilling, often even downright depressed and rebellious workforce, but because it's the public sector (no competition, budget is decided with no correlation to actual work being done, promotions are decided with no correlation to accomplishments) nobody cares. Does that sound cynical enough? I'm a real patriot of my country, BTW, and I believe in doing what I can to improve what I can, but really, the system fights you every step of the way.
  • Boss' boss said a number of PHB lines so bad I had to force myself not to literally ROFL on the spot. Unrelated buzzword spewage is not funny when you have to actually work with the man.
  • AM2 and Conroe both look good. Of course Conroe is designed in Israel, so I'd buy that, but if AM2 still beats Intel at price/performance with moderate overclocking, I'll probably vote for the underdog.
  • FFDB goes nowhere, but I haven't given up yet, it's just that carving time is hard when you're depressed and no one shows interest anyway.
  • The latest fandom wank sounds all exciting, but I haven't read it yet. [Ed - I've meant the mssrcibe story by bad_penny]

Take care.

Friday, June 09, 2006

Me/Work - Damn

Last week I was transferred to another development team in the department, as part of an effort to create task-oriented teams and because my boss couldn't handle me. My new boss is better, though not as good as my old-old boss and nowhere near as great as my old-old-old boss. I moved into the team's rooms, two doors down. The room now sits me, a new college grad my age (though with no experience at all and no passion for programming), and our sole remaining female developer. Who is drop dead gorgeous. Usually, in day-to-day uniformed professional environment, I am able to ignore it, mostly. Yesterday there was a Sting concert and I've seen her leave the office ready for an outing with her hair down, perfumed, etc. I had to concentrate not to drool and my mind kept returning to it hours later. Potentially very embarrassing.

In other news I was asked to recommend technology and architecture for a project without being told what the app does. Also I've rewritten in PL/SQL a view that our production server refused to perform reasonably, but because my new boss can't read PL/SQL the code-review will be… interesting. It does work though. On my way home an old lady asked me to pull her shopping cart to her home because it was too heavy for her, and then thanked my profusely after I've put it down near her second floor flat's door. We've been cautioned in basic training that old people react strangely to uniform, and they were right - it happens every few weeks.

Sundiver and Startide Rising were a breeze, though for a multiple awards winning novel, Startide Rising wasn't that great. I don't wish to read the third book in the trilogy. Is the second trilogy better? Good Omens doesn't go that fast though. The Pratchett jokes are amusing, but I don't know that Gaiman brings to the table.

Saturday, June 03, 2006

Me/Web - Bookmarks

In my nerdy ways, I tend to spend weekends the same way as I spend the rest of my time - in front of the computer. I open sites like Reddit.com and I follow links. I open my feedreader and I follow links. I open Wikipedia or E2 to check something and I follow links. At the end of the weekend, I find myself sleepy on a work night with 50 open Firefox tabs. What do I do? The sensible thing - I "bookmark all tabs" and go to bed, obviously alone. Next weekend those bookmarks are not so interesting, So I open up Reddit.com...
So now I have a backlog of 120-some bookmarks I would actually like to follow. I estimate it would take me a month, so it would probably take me six months if I step on it.

Code/FFDB/Django - Query by Many2Many relations

Neither the docs not the IRC chennel helped much, so I had to hack my way through Django's guts using my non-existent Python skills to create the following generic manager method that finds stuff according to multiple related stuff. The official docs only show how to get e.g. a publication through an article it published, but not how to get a publication that published two articles (or three, or… n). I use it to find a ship involving some characters.

class FooManager(models.Manager):
  def get_by_m2m(self, m2m_field_name, related_obj_ids, specified_only = False):
    """
    Returns QuerySet with objects that are connected to
     all specified "related_obj_ids" through "m2m_field_name".
    Limits result to only those objects that are linked _only_
     to the specified related objects upon request.
    """
    assert len(related_obj_ids) > 0
    meta = self.model._meta
    m2m = [x for x in meta.many_to_many if x.name == m2m_field_name]
    if len(m2m) != 1:
      raise 'ManyToMany Field "%s" not found in model "%s.%s"!' %         (m2m_field_name, meta.app_label, meta.object_name)
    m2m = m2m[0]
    pk_column = meta.pk.column
    m2m_table = m2m.m2m_db_table()
    source_col = m2m.m2m_column_name()
    target_col = m2m.m2m_reverse_name()
    tables = []
    params = []
    where = ['"%s"."%s" = t1."%s"' % (meta.db_table, pk_column, source_col)]
    n = len(related_obj_ids)
    i = 1
    for id in related_obj_ids:
      if type(id) != type(0): id = id.id
      params.append(id)
      tables.append('"%s" t%d' % (m2m_table, i))
      where.append('t%d."%s" = %%d' % (i, target_col))
      if i != n:
        where.append('t%d."%s" = t%d."%s"' % (i, source_col, i + 1, source_col))
      i = i + 1
    if specified_only:
      where.append(
        '%%d = (SELECT COUNT(*) FROM "%s" WHERE "%s" = "%s"."%s")' %           (m2m_table, source_col, meta.db_table, pk_column))
      params.append(n)
    return self.extra(tables=tables, where=where, params=params)

Wednesday, May 24, 2006

Work - Phone

All officers (commissioned, non-commissioned and academic) in my unit have been issued a cellular slavery device, carrying and answering which is mandatory. Stood half the day in the sun on god forsaken base waiting in line. Turns out their records indicate I'm not an NCO. Flashed shiny new NCO card I got especially for this occasion — no go. Faxed(!) a hard copy (!!) of my record over - all ok (!!!). World class authentication, that is. Seems our systems don't integrate too well with the civilian cell service provider's. At least free calls with colleagues should cut my phone bill in half.

Sunday, May 07, 2006

Me - Haircut

Today I went to a barber and had him, besides the haircut, trim my beard, which was growing untouched since December (when I became an NCO and was allowed to grow a beard). I was unhappy with the unkempt look (think al-Qaeda), but I was afraid of change. I think my fear was justified. I hate the result. My consolation is that it seems to have a healthy growth rate, so I'll experiment more. People's reactions are the strangest thing.

Saturday, May 06, 2006

FFDB - Quality of Writing

Have you read something that was obviously spell checked but not actually proofread? The way to tell is that all the spelling mistakes and typos are the kind that would fool a dictionary-based spelling checker (meaning they're actual words, just not the right ones, or words that would not appear in a dictionary even when spelled correctly (like proper names) so a person could still click "ignore" and not notice the typo).

Well, fan fiction that regularly misspells the Hogwarts houses and uses non-words like "comon" (as in, "comon dude, let's go") is painful to read, even if it has actual original plot twists (in this fandom?). So I want the FFDB to have a Quality of Writing score for stories. I just need to figure out the scale and how to make it difficult to abuse.

So far I have thought of these possible scores:

  • Ready for the printing press
  • Multiple editors, multiple passes
  • Proofread by a literate human being
  • Spell-checked
  • Recognizable English
  • AOL chatroom transcript

Please contribute!

Wednesday, May 03, 2006

FFDB/code - design

This summary is not available. Please click here to view the post.

Monday, May 01, 2006

Linguistics - Russians

It appears the Russian language has no distinction between "security" and "safety". Does it mean they are very paranoid and attribute all safety-related incidents to sabotage or do they understand the word to mean "protection from harm, caused by negligence or enemy action"? Think of the implications! To me, "safety officer" paints the picture of an anal-retentive civil engineer, and "security officer" of a counter-intelligence style paranoid ex-field agent. But it could also be so that the KGB's purpose would be more ambiguous…

Saturday, April 22, 2006

Fandom - Censorship?

There are 131 missing author ids on sugarquill.net. They represent the 131 authors who were deleted, either for technical reasons or for not complying with something. I know of Kokopelli, and of Alec & Teri. I think some other were tossed out with Alec & Teri. Who else? What were the causes? I suspect canon interpretation fundamentalism. Or is this something one does not speak about in polite company?

TV - House 1x12 "Sports Medicine"

Oh, I get it. Cute innocent young doctor dating physically and emotionally crippled obnoxious over-confident (though it's well deserved) old doctor. Of course RJA is all over it.

Movie - "Mean Girls"

I've pirated and watched this movie. I've used keeping up with current trends as an excuse to ogle seventeen year-old starlets playing sixteen year old starlet wannabes.

The movie was bad in a crude humor, overuse of cliches, over the top kind of way, and it was good in a predictable good-vs.-evil kind of way, and it almost made up for it. Like candy that you know is not good for you, but you eat anyway, because your taste buds say "yum!".
The nerdcore was adorable. Ok, that sounded gay. It is cool that nerdcore is getting into mainstream.

It was both sad and predictable that success contributed to the lead actress' personal problems.

From a review of the DVD on Amazon:

If anything, the grownups-especially the school principal, played by Tim Meadows, of whom the picture needs much more-tend to nudge these pushy teen-agers into the wings. The movie, produced by Lorne Michaels and directed by Mark Waters, is often funny, but it was conceived by people who are plainly wiser and more worldly than their target audience, and there's something about that discrepancy that, you know, totally sucks. -Anthony Lane
Copyright © 2006 The New Yorker

That's the problem with mass entertainment - they have a brilliant anthropological study of contemporary female highschool cliques, and they have to film slapstick comedy to try and make their point. I think it aimed too wide and missed.

Edit, 2006-05-11: I've watched Heathers because most reviews mentioned it. It needs to be watched with an audience and 80s clothes are a huge WTF, but yeah, Mean Girls is definitely a Heathers remake. They exchanged the horror for slapstick trying to retain the black humor, but as I already said it didn't quite work out.

Wednesday, April 19, 2006

TV - House 1x11 - Detox

I was watching the girlfriend Pam throughout the episode going "who is that?" in my head. And then I clicked through the credits and it's Lilly Kane! She's good looking, and then I see she's more than a year younger than I am! I'm getting old. Did House have a massage or a masseuse? Good acting.

Monday, April 17, 2006

FFDB - Working (Almost) Prototype

So, there's a bunch of pretty bad Python code that encodes the screen-scraped index of a very nice fanfic archive. I wish to fix as many things in the prototype stage. So, while I can fix the Ridiculously Redundant Recording of URLs by myself, I need some help with defining some of the metadata.

  1. What is the Correct Way of writing a ship name? Is it Harry/Hermione or Hermione/Harry? Are both ok? Are they the same? What is The Rule? Is it ordered by gender, or focus? What if the entire story is written from an OFC's point of view, should it be Harry/Mary or Mary/Harry? Would Harry marry Mary? I would be very merry should Harry marry Mary! Some people seem to care about such things.
  2. How do I map whatever some sites list as a fic's "genre" into something resembling literary genres (obviously, a story may fit more than one)? Because we know that despite being based on Contemporary Fantasy, the fan fiction varies greatly, from (teen-)melodrama to comic, heroic, romantic, erotic and even high fantasy. Some of what is specified in the archives just means mood (fluff, angst) rather than theme and convention (chick lit, legal thriller), which is confusing. All you people with degrees in English and whatever, have any lecture notes about genre studies? Epistemology geeks? (that's you, Ben!)

Edit: I completely forgot all non-prose (though I personally doubt the artistic merit of so called song fics, I am but a plebe and am willing to let history decide), and the vast amounts of farce (intended or not) as well as the token bit of genuine irony. Also, the fandom is an introspective (or just plain antagonistic) bunch and thus we have fan fiction about fan fiction, which lacking a better name, I'll call "arsficia". *snort*

Edit #2: from the findings of a depraved perv:

“This is really a wonderful thing, Harry,” I said, utterly sincerely. I slid my thumb across the tip.

He gave a breathless laugh. “Thanks,” he said. “I like it.”

I don't know why, but I find it very funny.

Sunday, April 16, 2006

Life - Passover

I have to say my aunt's kugel rules!

While reading the Wikipedia article on shark jumping, I've clicked to Northern Exposure (that was a good show!) and then Rob Morrow. Did you know he and his wife called their first daughter Tu?

Monday, April 10, 2006

Update

  • I've finished reading Glory Season. It was great. He has built a believable world within the constraints he'd set for himself, and the run of the mill plot offsets the intriguing setting admirably. The ending was kind of artificial, and it's a very hard sell, because so few men will read it and so few women read sci-fi. I'm sure I've missed lots of references. Looks like it doesn't have a following online, though to me it just begs for fan fiction (no, I won't attempt to write any). Brin has very professionally skirted around sex, amazingly well actually. R.: The cover has suffered substantial damage, I'm looking into replacement opportunities.
    Edit: procured, at very reasonable price, two personalized and signed beautiful hardcovers directly from author (see author's web page, seems author's wife handles shipping and handling). Am very happy with impulse shopping decision. R. seemed to like hers, making it even better.
  • I watch the first season of House M.D. as it downloads, late as usual. It's good. Kudos RJA for watching the good stuff! It's the third series I've followed her, not disappointed yet. I hope I'm not in danger of becoming a little RJA clone, LOL. The rude sarcastic guy everybody hates but must tolerate because he's so competent, does he always have a beautiful soul? Maybe he's just a bastard. Or there might be hope for me yet. Oh, that girl doctor is hot.
  • I've watched two episodes of Veronica Mars. It's BH 90210 all over again. rm -rf /mnt/series/veronica_mars
  • Watched three episodes of The Unit. rm -rf /mnt/series/the_unit
  • Today I've seen a guy walking a furry white Akita. Looked almost like a Samoyed. Great looking dog!
  • Since the birthday meme is making the rounds again, I'll let you know I share birthdays with Johnny Carson and Weird Al Yankovic, and both the Parliament of Great Britain and the United Nations General Assembly first convened on that date. Oh, and Brutus killed himself because he has lost a battle to Mark Antony and Octavian. So, a good date over all, I think.
  • My Python project has reached a complexity level where it seizes being a hack and requires actual design. That has made it less fun, but I'm struggling through it in the hope of building something useful. What fan fiction archive would you most like to search/filter using better searching and filtering than what they provide? I can make it happen.

Tuesday, March 28, 2006

Current Events - Elections

I've voted, but I don't really feel like it makes a difference. It feels as if politics is a sham to placate the media/public and evidencing is effectively decided behind the scenes. I really think that.

Sunday, March 19, 2006

Coding - Geek

I figure what prevented me from building the ffdb was the need to get the data to play with, so I've decided to crawl archives to get the raw data so I'll have something to show real people I approach in soliciting help. Sounds like a job for Perl and regular expressions, right? I've read my jwz, so I know better. Also, perl is ugly. Python and BeautifulSoup, on the other hand, is… amazing is the only word that seems fitting. I've crawled FFA, and have done great progress in processing and normalizing the data. Of course, my data is the metadata, thus my metadata is the mata-meta-data? Harry Potter is character #1, anyway. LOL.
The interpreter-driven edit-compile-test loop doesn't scale to multi-class modules, and decent ORM is still hard. I have not even begun to contemplate user interface implementation (typical me).

A coworker asked me today how does a jpeg gets sent in an email, since SMTP is a text based protocol. I said: "enlarged by 33.3% via base64 and with the correct mime type, as specified somewhere under rfc822", and he thought I was totally geeking out. I've only remembered the number because I've (re-)read about it recently (in relation to parsing dates), but simply knowing about mime and that there's an rfc is like… in the job description, for a web apps team. I mean, the world doesn't start and end in the JVM, for crying out loud!
I'm way too judgmental of people.

About Me

GCS d- s-: a-- C++$ UL++ P+++ L+++ E--- W+++ N o? K? w++$ !O !M !V PS-(+) PE Y+ PGP+(-) t--@ 5++(+++) !X R-- tv-- b+>++ DI+++ D+ G e h! r* y--(-)>+++