I am nearly done with the marathon move. After a small hold-up in Canadian customs (for no apparent reason except I got a border official who had incorporated the role, a full 110%), my stuff is here, unpacked, and in decent order.
In between unpacking, I have been able to experience some of Edmonton–from the nightlife to its administrative face (signing up for health insurance and a Social Insurance Numbers, for example, both of which were easy as cake) and I have to say E-town gets a far far far worse rap than it deserves. Ok, the weather is nothing to swoon over, and it is already getting far colder than I am used to but bracketing that detail, it is a pretty neat city. Now I tend to like the mid-size cities (Minneapolis, Madison, Philadelphia, Portland are some of my favorites in the U.S) over the mega-gargantuan-city and Edmonton fits this bill with just under a million people. And perhaps it is also just that I am digging some Canada-wide features (affordable and immediate health care, licensed cafes, a saner pace of life, the pleasant and earnest character of many folks) but there are Edmonton-specific attributes that are pretty nice too.
Before I get to them, it is worth noting that every time I have told people that I was going to Edmonton, they would either: 1) admit that they did not know exactly where it was and thus could offer no opinion whatsoever (and I was one of those folks until I looked on a map) or 2) blurted some negative reaction like: “do you really have to go there!” though most of those people had never been, but had a sense of its northernly location.
Perhaps my favorite reaction came from a blackberry forum where we posted a question about good data plans in Edmonton/Canada. Most of the replies stuck to the topic, but one person decided to spew his unadulterated thoughts on Edmonton:
i feel sorry for u going from NYC to Edmonton “Edmonton sucks” you’ll be happy to go back to NY..
You go from a city that has life to a dead one.. from having good bb plans to sh*ty ones..
hope your getting paid good
Ok, admittedly, the data/cell phone plans are lackluster but I think this person either has had some terrible times in Edmonton (and holds an unhealthy grudge), has never lived in NYC or has a warped sense of what the good life in a city means. Sure NYC is an amazing place, and is my likely future home, so I am not going to trash it but, like any city, it has its shortcomings.. like unfordable housing
But time will tell as to how I feel about Edmonton after the winter. Perhaps when it reaches freezing temperatures, it does turn a leaf, and become dead but then you hit the mountains, no? But for now I am digging the HUGE pine trees, rivers, and ample sun of E-town.
Whew.
Ichthux has released, and now I can breathe again!
When I joined the
Ichthux development team, they had produced their “proof of concept” release as yet-another-Knoppix-remaster. At that time, I encouraged them to move away from tacking their work on as a derivate of a derivative and instead become a
CDD. I argued that as a
CDD Ichthux would last, while as a Knoppix-remaster, it would just be another marginal custom livecd that went nowhere. They got the message. So you may well be surprised to hear our first release is based on Kubuntu, and not Debian.
So, what’s the story here? Have you defected?
Nope. It just happens that most of the team ended up being actively involved in Ubuntu development. Also, when we first started casting about for the best way to package a livecd/install disk, it seemed to us that Ubuntu already had a head start on this.
What about being a CDD? It looks to me like that idea has fallen by the wayside.
Nope again. We’re a joint team now, and though we’ve started out with Ubuntu, we’ll be pushing changes back into Debian. The goals of a
CDD are well understood by the whole team: to best meet the needs of our users, we design the system to mesh well with the parent distributions, not forking and making a derivative, but working inside those distributions to improve them for our particular subgroup of users.
Hold on now, aren’t you contradicting yourself? A CDD’s development is all within Debian, but Ubuntu itself is a derivative, and what’s worse, Kubuntu is a derivative of a derivative! Aren’t you right back where you started?
Well, on the last count, you’d be wrong. Kubuntu is
not a fork. And as for Ubuntu being a derivative, well, sure it is. But the Ubuntu/Debian relationship is different from other derivatives, and although
there is friction, I’m enough of a crazy idealist to believe a joint Debian/Ubuntu
CDD is quite doable, benefits both projects more, and serves our users better than if we were to split up and each go work on our own.
We were occupying the entire park bench when the strange girl
approached. She was strange in the sense that we had never
seen her before; in the grand scheme of things she was not all
that strange. I mean, she was wearing bellbottoms, which was
not the norm, and her feet were caked with mud, which might
have indicated inclinations toward being a neo-hippie, and while
that might be pretentious and lame, it's not all that strange,
considering.
Eying the occupants of the bench, she asked if any of our laps
were free. The art of sitting on someone's lap is largely a
lost one; I don't know where people learn the proper technique,
but I do know that most people don't even know it exists to be
learned. I know that I was surprised when it was revealed to
me.
Anyway, I never discovered whether or not she knew how to
properly sit on a lap, because we all kinda glanced at each
other and told her to fuck off. Two days later, she was
screwing the guy to my right.
That didn't last long. Neither did her mode of dress or her
behavior. She lopped off her long, brown hair, bleached it
blond, and got a few facial piercings. She started doing
heroin and boasting that she gave the best blowjobs in a
certain geographical region. She shacked up with a girl
named after an invertebrate. I'm guessing that she didn't
continue on to greatness.
Then there was another strange girl. She was strange because
she was stuck in the 50's. She was also as dumb as a rock,
so the only two interesting things about her were her
50's fetish and her profoundly deep bass voice. When I say
she was stuck in the 50's, I don't mean that she lived through
them and failed to move on. I mean that she wore saddle shoes,
sported memorabilia from the golden age of rock and roll, and
became very hostile when anyone challenged her adamant insistence
that no good music was ever produced after 1959.
Her sister was a model, also as dumb as a rock, and with the same
freakishly low voice. Her sister was also a giant slut.
In contrast, 50's Girl publicly had sex with a 50-year-old guy
while his wife and kids were in Virginia. Having sex in public
is generally bad form. I know this because the last time I tried
to have sex in a moving vehicle, the driver forbade it.
Actually what she said was that we weren't allowed to have
sex in her car until she had done so first. Then she proceeded
to never have sex in that car, which I thought was a rather rude
and deceptive practice.
Anyway, 50's Girl met this schmuck with spiky hair, piercings
and tattoos galore, combat boots, and a penchant for crashing
motorcycles. Really, you didn't need to look far below the
surface to know that he was a festering douchebag, but if you
did, you would find out that he was a pathological liar and
backstabbing snake.
They hit it off, and just like that, the 50's persona was cast
to the wind. She dyed her hair some sickly color, started
dressing in leather and listening to hardcore. Her elderly
friend, who had little trouble relating to clinging to the 50's,
now suddenly found herself in the position of possibly needing
to get herself a subscription to some kind of magazine.
Not too far away, a lollergirl took a break from plumping up and
spotted a ticket. If you were lucky, she told you about it.
So K. called me a brat, and rightly so. Now I could go on about
the bizarre dysfunctional ways A. and M. keep trying to drag me
into their extramarital insanity, but that would be overuse of
initials. I could tell you about Fatslaps and his plans to
splatter Harry with onions, but Harry is whimpering just about
the right amount. I'm talking about Harry, not Harry.
I could do a Marxist literary criticism of
The Garbage Pail
Kids Movie, but something disturbing happened to me,
indirectly leading me to have a flashback.
It was another century, though not more than a couple
miles away. As with all progress , some things are
better now, and some things are worse. Maybe that's
just how I see it. It's stereotypically geriatric to
reminisce about the past,
accentuating
the positive, but it's stereotypically me to only
comment on the negative. So in the interest of stalling,
here comes a m lange of the two. Value judgments are
left as an exercise for the reader, assuming the
prostitute/lover question isn't still getting top billing.
Warren Zevon was still alive. Nouvelle Vague hadn't
released any albums yet. I only knew one person who
spoke Brazilian Portuguese. I hadn't seen Rent yet.
I used to eat a lot more Colombian food. I refused
to eat tomatoes. Actually, I ate quite a few things
then that I don't now, and quite a few things now
that I didn't then. I don't remember what I ate that
night, but it wasn't Kraft dinner ; I'm sure of that.
I know because I went to see a free concert as performed
by the
Barenaked
Ladies. The concert was free because they were almost
completely unknown. I was introduced to them a while before,
by a dirty, dirty slut who squealed with delight because
the lyrics featured words such as erection . It took me
years of recovery to be able to appreciate that song. Years.
If she hadn't, I would have found out about them through
Minna Bromberg because she does a cover.
One of the people I was with shouted out to
Steven Page,
calling him by the wrong name. If being a
starstruck poseur weren't enough cause, I think
the error would have made me implode from embarrassment.
He took it on the chin.
I know this Canadian who keeps telling the same tired
old story that the Barenaked Ladies is the only Canadian
band to ever become famous outside of Canada. He uses
this dubious claim to segue into his bit about how
The
Tragically Hip is really popular in Canada, but unknown
everywhere else. I tell him that I've heard of The Tragically
Hip. He doesn't believe me. I try telling him that I've
never heard of Moxy Fr vous or Rush, at which point he breaks
down and admits that everyone has heard of Rush. Then we
repeat the conversation a month later.
So BNL did get all famous and mainstream and STUFF. That
night, they urged everyone in the audience to promote them
so they could GET PAID and sell out to The Man. I must
confess not comprehending their earnestness and the
gravity of the situation. I also never expected them
to be played on
Z100.
Boycott ClearChannel. They're sellouts now, but they
weren't then, and a good time was had by all.
At the time,
If
I Had $1000000 might've been their most popular song.
AS SUCH, the more rabid fans in the audience had brought
boxes and boxes of macaroni & cheese, as well as a stuffed
monkey or two. These items were flung at the stage, at
appropriate times, frightening the band. I don't believe
that anyone threw a green dress.
Now, Canadians are funny people. They like to flap their
heads and do medleys and covers and rap gratuitously in
the middle of concerts. Well, Rush doesn't, but
Moxy Fr vous and BNL do, and that's enough for me to
make a sweeping generalization, because Rush can be
disqualified purely on the mullet factor.
You probably don't know this, but
If
I Had $1000000 is a song which gets a lot of variation
and perhaps improv. For example, the owner of the remains
will vary, and they'll vamp the introduction with the lyrics
of some other song. You can hear it on the
Rock
Spectacle album, where they lead in with
Grade 9.
That night they did Prince's
Raspberry
Beret. We swooned.
We swooned.
Today on Slashdot, there is a
story and interesting discussion about an article entitled
Consumer electronics ate my child's imagination.
The main point of the article is that children today are spending a lot of time in front of the TV and playing videogames. As a result, they are less able to reason about the world, and even have a
higher rate of depression. Apparently children today
average about 2-3 years behind children from just 15 years ago on cognitive tests.
The Slashdot discussion was (surprise!) interesting as well. One point raised was that the entire notion of childhood is fairly modern concept since most children had to work as soon as they were able up until modern times.
This is something that Terah and I have been thinking about already. Terah was shopping for high chairs one day, and was reading reviews online at Amazon. We were both shocked that some chairs were being panned in the reviews because children "got uncomfortable after more than 2 or 3 hours in the chair". Huh?? After reading some more reviews, it seems that people are using high chairs as a place to just plonk down kids for a few hours while the parents are trying to get work done around the house. I can't imagine any high chair being a good place to put a kid for hours. Some parents also complained that the kids could get out of the chair if left unattended for awhile (which brings up a whole LOT of questions).
Then of course, there are plenty of parents that use the TV (or PlayStation or handheld videogames) as a cheap babysitter.
Terah and I have talked about this already, and though we don't have any sort of detailed parenting plan, we certainly do NOT want to be that kind of parents. Some people react by saying, "oh sure, you may say that now, but once you have the kids, you'll change your tune." Yes, that's right, some parents don't even try, and what's more, believe that it's impossible to treat children any other way.
We know plenty of parents that are successfully raising children without buying them hundreds of beeping electronic toys, using the TV (or high chair) as a babysitter, etc. We know it's possible and that's what we're going to aim for, too.
So i have travelled to Slovakia again, for a weekend this time.
I have been painting window frames. Since i have a new iPod (4G nano,
black, yummy), i could also listen to music (Tristania, In Flames,
Kamelot). The last time, it was somewhat of a patience exercise, but
this time... I guess i got better at painting and maybe i have become
more patient, too :). It was pretty enjoyable, more than i would have
thought a work like that could be. And i am sure the music helps, too.
(The next day)
And to continue the last blog... There, i have concluded that hardship
was important factor in becoming better:
And apart from hardship... Problem is, hardship alone, if it stays the
same, is not enough to make people change. It is the change from
contentment to unhappiness, that drives people forward. Because in
that change, one starts to change, and hardship together with dynamics
helps a lot. Static, unchanging hardship will only do little to change
a person. One can get used to it, like to anything else. Like to
contentment. So an initial change can start a cascade. Like for me,
breakup caused a domino effect. The change alone brought a lot of
hardship with it, and i had to change to accomodate to it. And the
change in me provoked more changes and so on. I have learned many new
things, or, things i have learned before but went unnoticed took my
notice. And in light of such things, i had to change again, because i
knew i couldn't be happy any other way.
A human being is as good as dead, when captured in a period of
stagnation, in an unchanging moment that lasts. Only through change,
through dynamics of life, we are alive. A man that does not change is
a statue, a dead piece of matter, only useful as a memento. And that
was what i have become, and now the statue is again starting to move,
to breathe, to live. Because there is just no perfection that one
could capture in a moment. No matter how perfect a moment, if frozen,
the perfection decays, the little cracks are noticed. That is why
trying to freeze time is futile, trying to preserve. One cannot enter
the same stream twice. Life is a constant change, and this constant
change is its only manifestation. Take the change away and you take
the life away.
The past is important. The past is what resulted into present, and
present is what makes future. Every moment, in a succession of
moments, is important. But without the moment before and the moment
after, the moment does not mean anything. The moment is void, without
predecessor and successor. We move in time, and the motion is what
becomes important, not the points we moved through. They are only
important in the relation to our trajectory, not in isolation. And so
is the direction which we take, the vector of our motion, and the
shifts in direction.
There is no eternity, only the eternity of its own
absence. Immortality and death are the same, the very same
notion. Because every time we change, there is a little death and a
little birth. And immortality is only possible in
staticness. Immortality is a point in time, without motion. And
without motion, there is no life to be.
And same goes for relationships. Make a relationship immortal and you
make it die. Relationship needs a possibility of death to live. Like
humans, like every living being. Without death, there is no life. The
transition from being into non-being is essential, because it is the
precondition to change. As i have already described, every change is a
death followed by rebirth, but the entity reborn is not the one that
has died. And therefore, without the ability to die, there is no
ability to change. And death, the conventional death, as we know it,
is just a death without rebirth. Something dies, and there is nothing
more to take its place. But... The death makes others change. And
therefore, the one who dies definitively, is again reborn, as part of
those others that have died, but haven't died, but are reborn. And the
one definitely dead enters those new, reborn creatures, as a little
fraction of them. And the cycle of life is closed, and the change can
perpetuate itself.
Every day, i die a thousand times. But there are deaths that are
important and deaths that go unnoticed. And most of the important ones
are only noticed in retrospect, by a being that resulted, after many
hours, or days, or weeks or even longer. And many more deaths. We only
exist through our succession, because only what is born from us
remembers what we were. And the very moment we are born, we die again,
and a new being remembers. The memory lives on, but the beings are
already dead. And the memory changes as well, because memory itself
does not mean anything, only the being possesing it can give it
meaning. And every successive being that we become gives it a slightly
different meaning.
And so the delicate, complex dynamics of individual life are
established. Not only the living being changes itself, but the
memories of the previous beings change. There is certain gravity
toward stagnation, because often the changes are only very slight, and
the being remembers his predecessors that were fairly happy and tries
to remain so. Because the bigger the change, the bigger risk. And
therefore all beings are susceptible to stagnation, to the stasis cell
of past success. Because past success is one's own enemy, even if it
is something that is a precondition to one's own being. So we need to
learn to live with our past success, but to not try to revive it. The
effort to bring back past is a wasted, contraproductive effort. It
seems so, it is almost natural, that if there was happiness in the
past, restoring the same past will bring the same happiness. But
there, that is not true, in the light of previous paragraphs. The trap
is so obvious, that description is probably redundant, but let me do
it once again anyway, maybe because i have fallen in it so many times
already. Yes, the trap is in the stagnation, in absence of new
things. Because even if one cannot restore the original condition no
matter how much he tries, one can, and that is for sure, replicate it
very closely. And that way lies a trap, a temporary (or even
permanent) thermal death of stagnation.
(Later that day, outside, on a nearby hill)
And now, like before, there's nothing more to stand between me and
myself. I sit in the grass, alone. My being alone complements me, in a
way. There are waves in the grass, as air moves. Music is playing,
apart from the few houses i can see downhill, my only connection with
the rest of people. And this what belongs to me, this paper, this
pen. This book by Italo Calvino that Enrico Zini has given me. If on a
winter's night a traveller. But it is late summer. I can see vineyard
in distance, on a slope different from mine. I call this slope mine
because i am the one sitting there. And the time to collect the grapes
is close. And here, next to me, an apple tree, with red apples on it.
And a white butterfly in the distance, beating the air with its light,
small wings. And i blow away a tiny spider who has lost its way on my
trousers. I feel being part of all this around me, and still so
foreign. And the butterfly appears again, but it may be a different
one.
The sun shines behind my back, alhtough i sit in shade of a tree. And
neither the sun nor the tree are my enemies, or my friends. But still,
i feel sympathy for both of them, one gives me light and warmth and
the other shields me from too much of it. And the setting, the scenery
soothes my senses, my mind, my feelings. Here, i am close to the
loving mother of us, living beings, the nature. Here she is tender and
forgiving and caresses my hair and it feels good.
And these feelings, i would love to pass on, to other people, so they,
too, could feel well. But i see that this is not quite
possible. Although these lines will hopefully give something to
someone, they probably can't carry what i feel. And i would bring
someone with myself here, so they could feel it with me. But presence
of other person would spoil it, it would be something else then. Maybe
beautiful in a way, different from this one, maybe very pleasant. I
love people, and when i see them happy, it fills me with gladness.
(And in the evening, on a train...)
And here i am, moving with speed, from one place to another. The
speed, sound of loud music in my ears, the landscape drifting away. I
could say i was happy, happy in the sense of change, everything
changing around me, sun setting behind distant horizon, the train
moving through the country. The semaphore lights. In the headphones,
heavy guitar riffs competing with the roaring of the train. Cold air
blowing in my face, flowing in my hair.
And now in another train, sitting in a compartment with stranger, a
girl, trying to guess who she could be, from her dress, from what she
is reading, from cues. Who she could become. What she means to me, a
passing stranger on the path of life. I have been reading the Calvino
book till now, but i thought i could write down my thoughts before
they perish, like they do. It is fairly silent now here, even while we
are on a train. The engine and the outside are muffled, the window and
the door are closed. We are in a strange kind of privacy with this
girl, neither knowing anything about the other. I, writing this text
here, she reading some sort of magazine. Looking up from what we do at
occasions. The train is accelerating now, and the sounds are more
intense. It is a bit shaky, too. My hearing is still lightly impaired
from the loud music from the previous train.
We arrived to a station. Short stop, then another long motion. Always
toward Brno, toward my flat, toward the night and tomorrow. The girl
is reading a horse races program. Here, i intrude her privacy and
write that here. I hope she wouldn't mind. I don't have a name other
than "the girl" for her, since all the words we exchanged was me
asking whether i can sit down in the compartment and her answer. And i
suppose i won't say anything and she won't, neither. Maybe a goodbye.
And now, we share a sort of almost intimacy. Two lone people in a
compartment, tired and waiting to arrive somewhere. An invisible bond
between us, doesn't mean anything, just that element at random brought
us there together, for a short moment. Chances are, we won't ever meet
again. And still, she is almost falling asleep, with her feet up, like
if i were a trustworthy friend of old. And i feel sympathy for that, i
feel honoured by a trust given by a complete stranger. She seems
comfortable, feeling safe. And it feels good to have that trust, it
feels important. It nearly gives warm fuzzies.
(To be continued, further...)
Thanks to a little glitch in planet, one of Lars'
posts from 2004 came to my attention. In it, he proposes a test for language benchmarking:
Read text from the standard input and count the number of times each word occurs. Convert letters to lower case. Order the words according to frequency, words with the same frequency should be ordered in ascending lexicographic order according to character code. Print out the top N words, where N is a decimal number given on the command line. Each output line must contain the count, a space, and the word (in lower case), and end in an ASCII LINE FEED character. Output must contain exactly N such output lines and no other output lines.
A word contains only ASCII letters A through Z and a through z (convert upper case to lower case) and ASCII digits 0 through 9 and is not empty. All other characters separate words and are ignored except to notice word boundaries. Word boundaries only occur at the beginning and end of the file and at non-word characters. You may not assume a maximum length for the word, line, or input file.
He provides a tarball with sample implementations in C, Python, and Shell.
His C code is 183 lines long, Python 57, and Shell 11. The specs for this test seem particularly suited for shell.
I wrote a version in Haskell, commented and formatted approximately the same as his Python version, but using an algorithm more like the shell version. It comes in at 18 lines. Here it is:
import System.Environment
import Data.List
import Data.Char
custwords = filter (/= "") . lines . map (conv . toLower)
where iswordchar x = isAlphaNum x && isAscii x
conv x = if iswordchar x then x else '\n'
wordfreq = map (\x -> (head x, length x)) . group . sort
freqsort (w1, c1) (w2, c2) = if c1 == c2
then compare w1 w2
else compare c2 c1
showit (word, count) = show count ++ " " ++ word
main = do args - getArgs
interact $ unlines . map showit . take (read . head $ args) .
sortBy freqsort . wordfreq . custwords
Taking a look at this, one thing that might strike you is the function composition in main. This takes the output from one function and feeds it into the next -- and the Haskell syntactic sugar for this makes it look a lot like pipes in the shell version. The interact call takes, as a parameter, a function that takes a string and returns a string. interact supplies stdin as the input and prints the output to stdout. Note that, since Haskell is lazily, this does not mean buffering up the entire input or output -- it is read and written on demand.
The rest of the functions are also standard in Haskell, and you can find them in the
index to the library reference if you want to learn more.
I understand and agree that short code doesn't necessarily mean good code, but I think that Haskell provides a very elegant and expressive solution to many problems -- one that also happens to be remarkably concise.
Updated 9/4: Changed isLower to isAlphaNum to fix a bug, and removed unnecessary Data.Map import
Last Friday, a long chapter ended in my family's history: The last person of the immigrant generation, my
great-aunt Tere, passed away, 99 years old.
My family is fully made from immigrants. From my mother's side, Polish. From my father's, Austro-hungarian. Tere, sister of my grandfather was born in December 1906 in Felszoviso,
M ramaros, Transilvania (then Hungary, today Romania). Most of her family had spread over different countries by 1925 (I know my grandfather chose to become a Czechoslowak to continue his studies in Stakcin, while she and her parents moved to Budapest) left Europe by 1930 - My grandfather lived for some years in Monterrey, northern Mexico, where he met my grandmother. My great-aunt's husband had a good, stable job as a lawyer in Hungary, so she stayed in Budapest, even during the war, under
Horthy's regime. She worked carrying false documents and information to help partisans and other resistence people communicate and move in the Nazi-occupied territory. She always downplayed her work during those years, but we all know she often put her life at risk for this. Her husband was detained and later killed in a concentration camp, but she was able to hide her parents.
In 1947 she was approved to get a Mexican visa, and -after 18 years of having little contact, and almost 10 years of having no contact at all- she came to Mexico, together with her parents and her second husband (who died shortly later, because of the wounds he got at another German detention center).
Anyway... My great-aunt never had any children (we all refered to her as "la t a", the aunt), but she was up to now the thread that kept together a small but very disperse family. She lived in Mexico City, as an independent woman until she was 82 years old. She moved to Cuernavaca, first as my father's neighbour, and then to the Eishel old-age home, where her brother and sister lived - and lived in Eishel for over 15 years. She didn't die of any specific illness, but as we know, living too much is bad for your health. She was a talkative woman until very recently, always very lucid. In mid April, however, she got an infection which had to be treated by strong antibiotics - the antibiotics didn't help much, and keeping them on for too long would only make it more painful. In early May, my father and his cousins decided the antibiotics should be stopped - and to let nature work. Four months later, she went away, closing a very long chapter in the family.