The reality of AI

I think this is rather amusing.

If you go to the AI-class FAQ the first thing you will see is:

Q: What if I don’t receive a verification e-mail after submitting my enrolment?

A: Confirm that it is not in your spam box.

Which is funny, isn’t it? I mean, it’s applied AI that is doing your spam filtering, and the most likely cause of you not getting your email from the AI-class is that the AI that’s filtering your mail is wrong with a false-positive.

Well I think it’s funny. :P

Bash aliases

I was reading my default .bashrc file, and found the following:

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

This suggested that I wanted a .bash_aliases file for my aliases, so I set one up:

jj5@sixsigma:~$ cat .bash_aliases
alias home='cd ~'
alias jj5='cd /var/www/www.jj5.net/'
alias profile='cd /var/www/www.jj5.net/profile/'
alias chomsky='vim /var/www/www.jj5.net/profile/chomsky/index.html'
alias henney='vim /var/www/www.jj5.net/profile/henney/index.html'
alias lakoff='vim /var/www/www.jj5.net/profile/lakoff/index.html'
alias norvig='vim /var/www/www.jj5.net/profile/norvig/index.html'

This is my basic “CMS” system for http://www.jj5.net/profile/.

Important: JavaScript does not have block scope.

I’m a little embarrassed to say that I only looked this up for the first time today. Although, I’ve been programming in JavaScript for so long that I must have known this years ago, but “forgotten” as I haven’t done much JavaScript programming in the last few years. Hey, at least I retained that niggling feeling like I had to look that up!

Important: JavaScript does not have block scope.

Basically:

 var x = 1;
 { var x = 2; }
 print( x ); // outputs 2