I’ve started the ML class.
My notes are on my sixsigma wiki.
I’ve started the ML class.
My notes are on my sixsigma wiki.
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/.
I was having trouble integrating the latest version of Doctrine and CodeIgniter, but luckily I found an article replete with implementation package for that: Integrating Doctrine 2 with CodeIgniter 2.
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
I’ve been working my way through the Code Igniter documentation and have the basic framework properly configured in Pcphpjs now.
I worked through the Getting Started with Doctrine guide this evening, putting my content in the Pcphpjs project. There were a few hurdles to jump over, but in the end I got the sample application working in PHP with SQLite.
Recently after my hosting provider hard-booted one of my machines the MySQL service started to complain “Failed To Read Auto-Increment Value From Storage Engine” when an insert was issued to any table with an auto increment field. I found the solution here, and it basically requires you to reset the auto increment key on the table, like this:
ALTER TABLE `table_name` AUTO_INCREMENT =1
I had to do that on all of my tables that had auto increment keys to resolve the issue.
I found the configuration setting in the documentation that will force phpMyAdmin to automatically track tables during and after creation. It is:
$cfg['Servers'][$i]['tracking_version_auto_create'] boolean
And the default value is ‘false’. I updated:
/var/www/www.progclub.org/pcma/config.inc.php
With the line:
// JE: 2011-09-07: force tracking $cfg['Servers'][$i]['tracking_version_auto_create'] = true;
Linus has moved Linux to GitHub.
Found this article today, How does “this” keyword work within a JavaScript object literal?. It describes various ways of calling a function in javascript, and explains what the ‘this’ context will be in each case.