<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Consciousness</title>
	<atom:link href="http://journal.suteki.nu/feed/" rel="self" type="application/rss+xml" />
	<link>http://journal.suteki.nu</link>
	<description></description>
	<lastBuildDate>Sun, 18 Jul 2010 21:32:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cellcraft: RTS for Cell Biology</title>
		<link>http://journal.suteki.nu/2010/07/18/cellcraft-rts-for-cell-biology/</link>
		<comments>http://journal.suteki.nu/2010/07/18/cellcraft-rts-for-cell-biology/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 21:27:42 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[Biology]]></category>
		<category><![CDATA[Video Games]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=647</guid>
		<description><![CDATA[I stumbled upon this game via Kotaku:
http://www.cellcraftgame.com
It&#8217;s a Real Time Strategy game where you start off as an empty cell, and you build components to basically survive through many challenges. I really love how it explains what each part of the cell does, and how it explores the micro- part of cell biology, as in [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled upon this game via Kotaku:</p>
<p><a href="http://www.cellcraftgame.com">http://www.cellcraftgame.com</a></p>
<p>It&#8217;s a Real Time Strategy game where you start off as an empty cell, and you build components to basically survive through many challenges. I really love how it explains what each part of the cell does, and how it explores the micro- part of cell biology, as in the inner workings of each organelle and attempts to explain in clear detail the chemical processes for each without much confusion.</p>
<p><a href="http://journal.suteki.nu/wp-content/uploads/2010/07/cellcraft.png"><img src="http://journal.suteki.nu/wp-content/uploads/2010/07/cellcraft.png" alt="" title="Cellcraft!" width="644" height="481" class="aligncenter size-full wp-image-648" /></a></p>
<p><a href="http://journal.suteki.nu/wp-content/uploads/2010/07/cell2.png"><img src="http://journal.suteki.nu/wp-content/uploads/2010/07/cell2.png" alt="" title="cell2" width="641" height="479" class="aligncenter size-full wp-image-651" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2010/07/18/cellcraft-rts-for-cell-biology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Japanese Translator is Back</title>
		<link>http://journal.suteki.nu/2010/06/25/japanese-translator-is-back/</link>
		<comments>http://journal.suteki.nu/2010/06/25/japanese-translator-is-back/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 18:37:55 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/2010/06/25/japanese-translator-is-back/</guid>
		<description><![CDATA[I fixed it.
]]></description>
			<content:encoded><![CDATA[<p>I fixed it.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2010/06/25/japanese-translator-is-back/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RSA Animate &#8211; What motivates us?</title>
		<link>http://journal.suteki.nu/2010/05/28/rsa-animate-what-motivates-us/</link>
		<comments>http://journal.suteki.nu/2010/05/28/rsa-animate-what-motivates-us/#comments</comments>
		<pubDate>Fri, 28 May 2010 17:05:31 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=641</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/u6XAPnuFjJc&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/u6XAPnuFjJc&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2010/05/28/rsa-animate-what-motivates-us/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>I&#8217;m proud of you, Adam</title>
		<link>http://journal.suteki.nu/2010/05/08/im-proud-of-you-adam/</link>
		<comments>http://journal.suteki.nu/2010/05/08/im-proud-of-you-adam/#comments</comments>
		<pubDate>Sun, 09 May 2010 01:46:55 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[Friends]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=634</guid>
		<description><![CDATA[I&#8217;ve known one of my close friends, Adam, since we were in high school together. Today, my friends and I went to see him perform at the San Jose State theater as he was a finalist in an oral interpretation contest.
He was doing his version of a segment from Dr. Horrible. He stumbled during his [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve known one of my close friends, Adam, since we were in high school together. Today, my friends and I went to see him perform at the San Jose State theater as he was a finalist in an oral interpretation contest.</p>
<p>He was doing his version of a segment from <i>Dr. Horrible</i>. He stumbled during his introduction, but his piece had flow. In my opinion, he was not the best of group, but what really mattered was that <i>he was there, performing, in front of MANY people</i>, and this was a feat that none of us would have ever imagined possible with him.</p>
<p>Adam has a history of social anxiety, due to how people treated him in his childhood. As a result, things like getting a job was impossible for him, or even being apart of a dorm room for more than one week. I&#8217;ve known him since high school to be this way.</p>
<p>As I saw him on that stage, smiling as Dr. Horrible, I realized that he&#8217;s up there probably because of the LARPing (Live Action Role Playing) he has done throughout his college years (along with other confidence builders), which has given him the courage to be in public and not be afraid to interact with people. Originally, I would laugh at the idea of LARPing, but I started to understand how it can be of help to those who have issues with communication and being around others. </p>
<p> For Adam, it&#8217;s brought him a long way &#8211; from the person I once known who couldn&#8217;t hold a job for more than one day to someone who exhibits more confidence in himself than probably most people I know.</p>
<p>Someone like him just proves that it&#8217;s possible to overcome fears with enough effort; next week he&#8217;s finally graduating college as well, has a job, and now he&#8217;s looking forward to the world out there.</p>
<p>Congrats Adam, and we&#8217;ll be with you completely every way.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2010/05/08/im-proud-of-you-adam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to compile nginx / fcgi / PHP from scratch in CentOS 5 the CORRECT way</title>
		<link>http://journal.suteki.nu/2010/04/25/how-to-compile-nginx-fcgi-fastcgi-php-from-scratch-in-centos-5-the-correct-way/</link>
		<comments>http://journal.suteki.nu/2010/04/25/how-to-compile-nginx-fcgi-fastcgi-php-from-scratch-in-centos-5-the-correct-way/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 08:03:30 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=628</guid>
		<description><![CDATA[There was no single guide that provided this answer, so here&#8217;s my own after tinkering around for the entire day on CentOS 5.4.
When I installed CentOS, I did not install a desktop environment, and only added development libraries and tools.
Update your packages
Assuming this is a fresh CentOS install, you&#8217;ll want to update your packages:


yum update


Say [...]]]></description>
			<content:encoded><![CDATA[<p>There was no single guide that provided this answer, so here&#8217;s my own after tinkering around for the entire day on CentOS 5.4.</p>
<p>When I installed CentOS, I did not install a desktop environment, and only added development libraries and tools.</p>
<p><strong>Update your packages</strong><br />
Assuming this is a fresh CentOS install, you&#8217;ll want to update your packages:</p>
<pre>
<code>
yum update
</code>
</pre>
<p>Say &#8216;y&#8217; to every question asked. The update process may take some time depending on the speed of your connection. After this is complete, proceed below:</p>
<p><strong>Download Nginx source</strong><br />
<a href="http://wiki.nginx.org/NginxInstall">http://wiki.nginx.org/NginxInstall</a></p>
<p>As of this writing, I downloaded the development 0.8.36 version. </p>
<p><strong>Configre Nginx</strong><br />
Where I have extracted the Nginx source to, I used the compile-time option #3 found at:</p>
<p><a href="http://wiki.nginx.org/NginxInstallOptions">http://wiki.nginx.org/NginxInstallOptions</a></p>
<pre>
<code>
./configure \
  --prefix=/usr \
  --conf-path=/etc/nginx/nginx.conf \
  --http-log-path=/var/log/nginx/access_log \
  --error-log-path=/var/log/nginx/error_log \
  --pid-path=/var/run/nginx.pid \
  --http-client-body-temp-path=/var/tmp/nginx/client \
  --http-proxy-temp-path=/var/tmp/nginx/proxy \
  --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi \
  --with-md5-asm --with-md5=/usr/include \
  --with-sha1-asm \
  --with-sha1=/usr/include \
  --with-http_realip_module \
  --with-http_ssl_module \
  --with-http_perl_module \
  --with-http_stub_status_module
</code>
</pre>
<p><strong>Compile and Install Nginx</strong><br />
In the same directory, perform </p>
<pre>
<code>
make install
</code>
</pre>
<p>To install Nginx.</p>
<p><strong>Create The Nginx Service File</strong></p>
<p>edit /etc/init.d/nginx in your editor of choice and paste in the following:</p>
<pre>
<code>
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemin
#
# chkconfig:   - 85 15
# description:  Nginx is an HTTP(S) server, HTTP(S) reverse \
#               proxy and IMAP/POP3 proxy server
# processname: nginx
# config:      /usr/local/nginx/conf/nginx.conf
# pidfile:     /usr/local/nginx/logs/nginx.pid

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ "$NETWORKING" = "no" ] &#038;&#038; exit 0

nginx="/usr/sbin/nginx"
prog=$(basename $nginx)

NGINX_CONF_FILE="/etc/nginx/nginx.conf"

lockfile=/var/lock/subsys/nginx

start() {
    [ -x $nginx ] || exit 5
    [ -f $NGINX_CONF_FILE ] || exit 6
    echo -n $"Starting $prog: "
    daemon $nginx -c $NGINX_CONF_FILE
    retval=$?
    echo
    [ $retval -eq 0 ] &#038;&#038; touch $lockfile
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    killproc $prog -QUIT
    retval=$?
    echo
    [ $retval -eq 0 ] &#038;&#038; rm -f $lockfile
    return $retval
}

restart() {
    configtest || return $?
    stop
    start
}

reload() {
    configtest || return $?
    echo -n $"Reloading $prog: "
    killproc $nginx -HUP
    RETVAL=$?
    echo
}

force_reload() {
    restart
}

configtest() {
  $nginx -t -c $NGINX_CONF_FILE
}

rh_status() {
    status $prog
}

rh_status_q() {
    rh_status >/dev/null 2>&#038;1
}

case "$1" in
    start)
        rh_status_q &#038;&#038; exit 0
        $1
        ;;
    stop)
        rh_status_q || exit 0
        $1
        ;;
    restart|configtest)
        $1
        ;;
    reload)
        rh_status_q || exit 7
        $1
        ;;
    force-reload)
        force_reload
        ;;
    status)
        rh_status
        ;;
    condrestart|try-restart)
        rh_status_q || exit 0
            ;;
    *)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}"
        exit 2
esac

</code>
</pre>
<p>Save the file.</p>
<p><strong>Register the nginx service</strong></p>
<pre>
<code>
chmod +x /etc/init.d/nginx
chkconfig nginx on

#This portion exists because nginx will not start without it
mkdir /var/tmp/nginx
</code>
</pre>
<p><a href="http://www.hikaro.com/linux/centos/nginx-init-script.html">http://www.hikaro.com/linux/centos/nginx-init-script.html</a> is the original source with some modifications.</p>
<p><strong>Download PHP and Install</strong><br />
<a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a></p>
<p>Extract the source to a directory.</p>
<p>I have my PHP configured with the following options:</p>
<pre>
<code>
yum install libtool-ltdl-devel
yum install openssl-devel

./configure --with-zlib --with-bz2 --with-curl --with-curlwrappers --enable-exif --enable-ftp --with-gd --with-ldap --enable-mbstring --with-mcrypt --with-mysql=mysqlnd --with-pdo-mysql=mysqlnd --enable-soap --enable-sqlite-utf8 --enable-zip --with-openssl
</code>
</pre>
<p><strong>Compile and Install PHP</strong><br />
In the same directory, perform </p>
<pre>
<code>
make install
</code>
</pre>
<p><strong>Copy the php.ini file</strong><br />
Still in the PHP source directory.</p>
<pre>
<code>
cp php.ini-production /etc/php.ini
</code>
</pre>
<p>You should edit the php.ini to match your wanted PHP configuration.</p>
<p><strong>Download Spawn-Fcgi and install</strong><br />
(<a href="http://elasticdog.com/2008/02/howto-install-wordpress-on-nginx/">http://elasticdog.com/2008/02/howto-install-wordpress-on-nginx/</a> was very useful for this portion)</p>
<p>Spawn-Fcgi comes from the lighttpd project. We are not installing the lighttpd server, but one of the components from the project.</p>
<p>Download spawn-fcgi from:<br />
<a href="http://redmine.lighttpd.net/projects/spawn-fcgi/news">http://redmine.lighttpd.net/projects/spawn-fcgi/news</a></p>
<p>As of this writing, I downloaded version 1.6.3. Extract the source to a directory, and change to it.</p>
<p>Configure and install with</p>
<pre>
<code>
./configure
make install
</code>
</pre>
<p>spawn-fcgi should now be installed to /usr/local/bin.</p>
<p><strong>Create the service file for PHP Fastcgi</strong><br />
edit /etc/init.d/fastcgi in the editor of your choice and paste in the following:</p>
<pre>
<code>
#!/bin/sh
#
# php-cgi - php-fastcgi swaping via  spawn-fcgi
#
# chkconfig:   - 85 15
# description:  Run php-cgi as app server
# processname: php-cgi
# config:      /etc/sysconfig/phpfastcgi (defaults RH style)
# pidfile:     /var/run/php_cgi.pid
# Note: See how to use this script :
# http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/
# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ "$NETWORKING" = "no" ] &#038;&#038; exit 0

spawnfcgi="/usr/local/bin/spawn-fcgi"
php_cgi="/usr/local/bin/php-cgi"
prog=$(basename $php_cgi)
server_ip=127.0.0.1
server_port=9000

#####EDIT THIS TO MATCH YOUR USER AND GROUP
server_user=marketdark
server_group=marketdark
############################
server_childs=5
pidfile="/var/run/php_cgi.pid"

# do not edit, put changes in /etc/sysconfig/phpfastcgi
[ -f /etc/sysconfig/phpfastcgi ] &#038;&#038; . /etc/sysconfig/phpfastcgi

start() {
    [ -x $php_cgi ] || exit 1
    [ -x $spawnfcgi ] || exit 2
    echo -n $"Starting $prog: "
    daemon $spawnfcgi -a ${server_ip} -p ${server_port} -u ${server_user} -g ${server_group} -P ${pidfile} -C ${server_childs} -- "${php_cgi} -c /etc/php.ini"
    retval=$?
    echo
    return $retval
}

stop() {
    echo -n $"Stopping $prog: "
    killproc -p ${pidfile} $prog -QUIT
    retval=$?
    echo
    [ -f ${pidfile} ] &#038;&#038; /bin/rm -f ${pidfile}
    return $retval
}

restart(){
        stop
        sleep 2
        start
}

rh_status(){
        status -p ${pidfile} $prog
}

case "$1" in
    start)
        start;;
    stop)
        stop;;
    restart)
        restart;;
    status)
        rh_status;;
    *)
        echo $"Usage: $0 {start|stop|restart|status}"
        exit 3
esac
</code></pre>
<p>Save the file.</p>
<p><strong>Register the fastcgi service</strong></p>
<pre>
<code>
chmod +x /etc/init.d/fastcgi
chkconfig fastcgi on
</code>
</pre>
<p>Test:</p>
<pre>
<code>
[root@localhost init.d]# service fastcgi start
Starting php-cgi: spawn-fcgi: child spawned successfully: PID: 9146
Starting fastcgi:                                            [  OK  ]
</code>
</pre>
<p><strong>Configure Nginx for FastCGI and PHP</strong><br />
Edit the file /etc/nginx/fastcgi_params</p>
<p>And make sure the file looks like this<br />
(From <a href="http://nakedtrout.com/site-performance/nginx-php-fpm-apc-awesome-wordpress-performance/42063">http://nakedtrout.com/site-performance/nginx-php-fpm-apc-awesome-wordpress-performance/42063</a></p>
<pre>
<code>
fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;

fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;

fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
#fastcgi_param  REDIRECT_STATUS    200;

fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
</code>
</pre>
<p>Save the file.</p>
<p>Edit the file /etc/nginx/nginx.conf</p>
<p>My file looks like this:<br />
(Source: <a href="http://interfacelab.com/nginx-php-fpm-apc-awesome/">http://interfacelab.com/nginx-php-fpm-apc-awesome/</a>)</p>
<pre>
<code>

#CHANGE THIS TO THE USER TO RUN THE SERVER UNDER
user  marketdark;
#####################
worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    keepalive_timeout  65;

    server {
        listen       80;
        server_name  localhost;

        location / {
            #CHANGE THIS TO THE PATH TO YOUR WEB ROOT DIRECTORY
            root   /var/www/marketdark;

            index  index.html index.htm index.php;

            # if file exists return it right away
            if (-f $request_filename) {
                    break;
            }

            # otherwise rewrite the fucker
            if (!-e $request_filename) {
                    rewrite ^(.+)$ /index.php$1 last;
                    break;
            }

        }

        # if the request starts with our frontcontroller, pass it on to fastcgi
        location ~ ^/index.php
        {
                fastcgi_pass 127.0.0.1:9000;

                #CHANGE THIS TO THE PATH TO YOUR WEB ROOT DIRECTORY
                fastcgi_param SCRIPT_FILENAME /var/www/marketdark$fastcgi_script_name;
                fastcgi_param PATH_INFO $fastcgi_script_name;
                include /etc/nginx/fastcgi_params;
        }

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
            include        fastcgi_params;
        }

    }
}
</code>
</pre>
<p><strong>Start nginx</strong><br />
Test:</p>
<pre>
<code>
[root@localhost init.d]# service nginx start
Starting nginx:                                            [  OK  ]
</code>
</pre>
<p><strong>Test your install</strong></p>
<p>Where you have defined your web directory path (where I have it noted   #CHANGE THIS TO THE PATH TO YOUR WEB ROOT DIRECTORY) ,<br />
create an index.php file with the following:</p>
<pre>
<code>
< ?php phpinfo(); ?>
</code>
</pre>
<p>Now, figure out the IP of your server and go to it in a browser (for example, since I have my centOS installed on hyper-v under a private NAT, it would be http://http://10.1.10.10/).</p>
<p>At this point you should see the PHP information page!</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2010/04/25/how-to-compile-nginx-fcgi-fastcgi-php-from-scratch-in-centos-5-the-correct-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stuck In Learning Sciences?</title>
		<link>http://journal.suteki.nu/2010/03/27/stuck-in-learning-sciences/</link>
		<comments>http://journal.suteki.nu/2010/03/27/stuck-in-learning-sciences/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 02:53:59 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=624</guid>
		<description><![CDATA[http://www.khanacademy.org/
About:
http://www.khanacademy.org/press/chronicle.html
This is the one link you need. This man is spending his well-educated life teaching via YouTube, lots of Science and Math subjects. Lots of people have benefited from watching his videos&#8230; for free!
The man covers everything from your 1 + 1 to advanced calculus to physics, bio and chem.
I sound like an advertisement, but [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.khanacademy.org/">http://www.khanacademy.org/</a></p>
<p>About:<br />
<a href="http://www.khanacademy.org/press/chronicle.html">http://www.khanacademy.org/press/chronicle.html</a></p>
<p>This is the one link you need. This man is spending his well-educated life teaching via YouTube, lots of Science and Math subjects. Lots of people have benefited from watching his videos&#8230; for free!</p>
<p>The man covers everything from your 1 + 1 to advanced calculus to physics, bio and chem.</p>
<p>I sound like an advertisement, but the guy is doing a great thing, and lots of people are benefiting and learning from it.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2010/03/27/stuck-in-learning-sciences/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Drop and Recreate Existing Materialized View</title>
		<link>http://journal.suteki.nu/2010/01/25/oracle-drop-and-recreate-materialized-view/</link>
		<comments>http://journal.suteki.nu/2010/01/25/oracle-drop-and-recreate-materialized-view/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 01:03:43 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=616</guid>
		<description><![CDATA[Couldn&#8217;t find a script online that appropriately dropped and recreated an MV. We had an issue using impdp on 11g R1 where the MVs were imported under the right schema user, but for some reason, we couldn&#8217;t refresh the MV. The solution was to drop and recreate the MVs.


-- Drop and recreate MV for the [...]]]></description>
			<content:encoded><![CDATA[<p>Couldn&#8217;t find a script online that appropriately dropped and recreated an MV. We had an issue using impdp on 11g R1 where the MVs were imported under the right schema user, but for some reason, we couldn&#8217;t refresh the MV. The solution was to drop and recreate the MVs.</p>
<pre>
<code>
-- Drop and recreate MV for the current schema owner by Theo Chakkapark (http://suteki.nu)
DECLARE
	v_sql varchar2(32767);
 	TYPE mv_tables IS TABLE OF dba_mviews%rowtype INDEX BY PLS_INTEGER;

	mvrows mv_tables;
BEGIN

    	SELECT * BULK COLLECT INTO mvrows FROM user_mviews;

	IF(mvrows.count <> 0) THEN
	  FOR i IN mvrows.FIRST .. mvrows.LAST
	  LOOP
      v_sql := 'DROP MATERIALIZED VIEW ' || mvrows(i).owner || '.' || mvrows(i).mview_name;
      execute immediate (v_sql);
      dbms_output.put_line(v_sql);
      v_sql := 'CREATE MATERIALIZED VIEW ' || mvrows(i).owner || '.' || mvrows(i).mview_name || '
BUILD IMMEDIATE REFRESH COMPLETE AS ' || mvrows(i).query;
      execute immediate (v_sql);
      dbms_output.put_line(v_sql);
      END LOOP;
	END IF;

END;
/

</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2010/01/25/oracle-drop-and-recreate-materialized-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LASIK and Haze / Foggy / Cloudy Vision</title>
		<link>http://journal.suteki.nu/2009/08/27/lasik-and-haze-foggy-cloudy-vision/</link>
		<comments>http://journal.suteki.nu/2009/08/27/lasik-and-haze-foggy-cloudy-vision/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 00:42:43 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[LASIK]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=607</guid>
		<description><![CDATA[So yesterday, I woke up to a major shift in the vision in my left eye &#8211; things were REALLY hazy like as if it was when I just came out of the operation. I knew that post-op you&#8217;re to expect shift in vision quality, but this was a major negative shift. I had six [...]]]></description>
			<content:encoded><![CDATA[<p>So yesterday, I woke up to a major shift in the vision in my left eye &#8211; things were REALLY hazy like as if it was when I just came out of the operation. I knew that post-op you&#8217;re to expect shift in vision quality, but this was a major negative shift. I had six hours of sleep, and I always put lube drops in my eyes prior to sleep. I called my doc to ask what&#8217;s going on, and she asked me what I was doing prior (sleep), and if I might have rubbed my eyes (only thing I can think of is I sometimes sleep face down on the pillow, which puts pressure on the eye). </p>
<p>Anyways, she thinks it was just major dry eyes, and told me to put drops in my eyes every 30 mins (I usually do every 2-3 hours), and told me that as long as I&#8217;m not feeling any pain (I was not), I should be fine. She also scheduled an appointment to see her today if it was necessary.</p>
<p>Gradually through yesterday, my sight improved again, and this morning, it&#8217;s back to normal.</p>
<p>I made this post as a general FYI to those who experience this to not freak out completely. If it persists for more than one day, then see a doctor.</p>
<p>But man, that was sorta scary.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2009/08/27/lasik-and-haze-foggy-cloudy-vision/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To Implement and Set Up DomainKeys Identified Mail (DKIM) on hMail Server</title>
		<link>http://journal.suteki.nu/2009/08/20/how-to-implement-and-set-up-domainkeys-identified-mail-dkim-on-hmail-server/</link>
		<comments>http://journal.suteki.nu/2009/08/20/how-to-implement-and-set-up-domainkeys-identified-mail-dkim-on-hmail-server/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 06:14:47 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[email]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=596</guid>
		<description><![CDATA[We recently moved from using Magic Winmail as our mail server to hMailServer since it was more cost effective (as in free) and had more features. One of these features is DKIM, or DomainKeys Identified Mail, which if enabled, would improve deliverability of our e-mails. Here&#8217;s how I set mine up:
1. Generate the public and [...]]]></description>
			<content:encoded><![CDATA[<p>We recently moved from using Magic Winmail as our mail server to <a href="http://www.hmailserver.com/">hMailServer</a> since it was more cost effective (as in free) and had more features. One of these features is DKIM, or DomainKeys Identified Mail, which if enabled, would improve deliverability of our e-mails. Here&#8217;s how I set mine up:</p>
<p>1. Generate the public and private keys. You need OpenSSL to do this.</p>
<p><code></p>
<pre>
> openssl genrsa -out private.key 1024
> openssl rsa -in private.key -pubout -out public.key
</pre>
<p></code></p>
<p>2. Enter the corresponding TXT records into your DNS for your domain. For example, my domain is journal.suteki.nu. I would do the following in my DNS:</p>
<p><code></p>
<pre>
_domainkey.journal.suteki.nu  IN TXT  t=y; o=-;
_adsp._domainkey.journal.suteki.nu  IN TXT dkim=all
[selector]._domainkey.journal.suteki.nu  IN TXT  g=*; k=rsa; p=[public_key]
</pre>
<p></code></p>
<p>Where [selector] is the name of your selector (eg &#8216;mail&#8217;), and [public_key] is your key from your public.key file generated from #1. Just make up something for [selector] and keep note of it.</p>
<p>An example would be<br />
<code></p>
<pre>
_domainkey.journal.suteki.nu  IN TXT  t=y; o=-;
_adsp._domainkey.journal.suteki.nu  IN TXT dkim=all
<strong>mail</strong>._domainkey.journal.suteki.nu  IN TXT  g=*; k=rsa; p=<strong>bNJOPhYuAAxTdO0PNGiKSL9rLLdDBuj3q0Rpa3pg2r/oNTONqGSIb3DQ8mz16NbSSSs5YcBkKTRDunxOFP0UtEmZJMQk0yERL1jEg86l8ZDmOckldH5EWIhsnbDjGh1fxT5ku7cXjtKwIDAQABMIGfMA0GCSqADCBaku0mO6bbcm/mEfnBKov3otig6iPXiQKBgQDxdpMEBAQUAA4GNEdKCn</strong>
</pre>
<p></code></p>
<p>(<br />
Note: That&#8217;s a made up public key <img src='http://journal.suteki.nu/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
Notex2: The <em>t=y</em> is a testing flag. You will want to remove this once you&#8217;ve verified your keys work.<br />
Notex3: It will take up to one day for your DNS records to propagate. Do not be frustrated if the tests come up negative within the first 10 minutes of filling in the records!<br />
)</p>
<p>3. Set up DKIM in hMailServer for a domain.</p>
<p>Open up your hMailServer administrator and go to the domain you want to enable DKIM in. For the private key file, select the private.key you generated from #1. In selector, type in the [selector] you selected.</p>
<p>For signing algorithm, choose either SHA1 or SHA256. I went with SHA1 so our server resources do not get consumed as much when signing the e-mails. The config should look something like this:</p>
<p><img src="http://journal.suteki.nu/wp-content/uploads/2009/08/hmail.jpg" alt="DKIM configuration" title="DKIM configuration" width="366" height="362" class="aligncenter size-full wp-image-597" /></p>
<p>Save the config. Your domain is now set up for DKIM.</p>
<p>4. Send a test e-mail from one of your accounts in the domain.</p>
<p>I sent a test-email from an account I created, test@journal.suteki.nu, to one of my accounts on gmail. When it arrived in gmail, I checked the headers:</p>
<p><img src="http://journal.suteki.nu/wp-content/uploads/2009/08/gmail.jpg" alt="Show headers" title="Show headers" width="325" height="246" class="aligncenter size-full wp-image-598" /></p>
<p>What you want to check for is the <i>dkim-signature</i> block in the headers:</p>
<p>A successful one looks like this:</p>
<p><code></p>
<pre>
Authentication-Results: mx.google.com; <strong>dkim=pass</strong> header.i=@journal.suteki.nu
dkim-signature: v=1; a=rsa-sha1; d=journal.suteki.nu; s=mail;
	c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=/edzoYuyn17WXm8KeqcX/R+khdQ=;	b=0cnc21MgZMy9suqAgFPlA5OqD5fpFmuGoK+UYlf9zvqPwRgRgjb6OP+VwjwYE2AVxhdVRdX8nEdQ0XnUht45SQHKh78dCXK+UiS7x6qE2haLrZi7CHvs6qp8otQdkcLBrYF0Z95Blp1Vh9BHvQFodNdwJUhgp9u/BoZH/Gq8xx0=
</pre>
<p></code></p>
<p>While an unsuccessful one <em>might</em> (might as in I haven&#8217;t determined if this is considered invalid, but this is what it first looked like for me) look like:</p>
<p><code></p>
<pre>
Authentication-Results: mx.google.com; <strong>dkim=neutral (no key)</strong> header.i=@journal.suteki.nu
dkim-signature: v=1; a=rsa-sha1; d=journal.suteki.nu; s=mail;
	c=relaxed/relaxed; q=dns/txt; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=/edzoYuyn17WXm8KeqcX/R+khdQ=;	b=h9BHvQFodNdw0cnc21MgZMy9suqAgFPlA5OqD5fpFmuGoK+UYlf9zvqPwRgRgjb6OP+VwjwYE2AVxhdVRdX8nEdQ0XnUht45SQHKh78dCXK+UiSp8otQdkcLBrYF0Z95Blp1V7x6qE2haLrZi7CHvs6qJUhgp9u/BoZH/Gq8xx0=
</pre>
<p></code></p>
<p>Hope that helps! See the links below for more information and a way to test and fine-tune your configuration.</p>
<p>Links:<br />
<a href="http://www.howtoforge.com/postfix_dkfilter_domain_keys_implementation">Domainkeys for Postfix</a> &#8211; Started with this guide<br />
<a href="http://testing.dkim.org/documentation.html">DKIM flags</a> &#8211; understand what the flags are that we used above.<br />
<a href="http://www.socketlabs.com/services/dkwiz">DKIM generator</a> &#8211; Generates your private/public key and gives you the DNS info necessary to make DKIM work! You can skip Step #1 with this.<br />
<a href="http://www.sendmail.org/dkim/tools">DKIM Tools</a> &#8211; Verify your DNS DKIM records.<br />
<a href="http://www.dkim.org/specs/draft-ietf-dkim-ssp-10.html">Author Domain Signing Practices (ADSP)</a> &#8211; Understand what the _adsp record is for.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2009/08/20/how-to-implement-and-set-up-domainkeys-identified-mail-dkim-on-hmail-server/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Native Compile for PL/SQL on Windows Oracle 10g R2 x64</title>
		<link>http://journal.suteki.nu/2009/08/14/native-compile-for-plsql-on-windows-oracle-10gx64/</link>
		<comments>http://journal.suteki.nu/2009/08/14/native-compile-for-plsql-on-windows-oracle-10gx64/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 14:41:32 +0000</pubDate>
		<dc:creator>Personalife</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[LinkedIn]]></category>

		<guid isPermaLink="false">http://journal.suteki.nu/?p=577</guid>
		<description><![CDATA[I couldn&#8217;t find any definitive guides on how to compile PL/SQL natively on Windows, so after reading lots of documentation, I finally managed to figure it out. You will need the following:
- Visual Studio .NET 2003. .NET 2005 does not work (at least from what I&#8217;ve read), and if you use the x64 version of [...]]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t find any definitive guides on how to compile PL/SQL natively on Windows, so after reading lots of documentation, I finally managed to figure it out. You will need the following:</p>
<p>- Visual Studio .NET 2003. .NET 2005 does not work (at least from what I&#8217;ve read), and if you use the x64 version of Oracle, MinGW will not work either. It&#8217;s gotta be Visual Studio .NET 2003 with the C++ component installed (ALL components, including the unchecked win platform one)<br />
- Microsoft SDK for Windows. Our boxes are Windows Server 2003 R2, so I downloaded the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0baf2b35-c656-4969-ace8-e4c0c0716adb&#038;displaylang=en">corresponding SDK</a> for it.</p>
<p>- Important: Make sure when you install the Microsoft SDK, you install it into a directory called &#8216;C:\Program Files\Microsoft Platform SDK&#8217;. The default will be something like &#8216;C:\Program Files\Microsoft Platform SDK for Windows Sever 2003 R2&#8242;; you do not want this! Oracle will look specifically for the directory named &#8216;C:\Program Files\Microsoft Platform SDK&#8217;.</p>
<p>- Important: Make sure you have enough RAM to increase your SGA and PGA memory size. I&#8217;ve had cases where I&#8217;ve used native compilation only to find that the native version runs <em>slower</em> than the interpreted complation! Or worse, your programs will just crash.</p>
<p>Install both, and open up a sqlplus session (probably under the &#8217;system&#8217; user), and run the following:</p>
<pre>
<code>
   alter system set plsql_native_library_dir='C:\oracle\db10g\native' scope=both;
   alter system set plsql_native_library_subdir_count=5 scope=both;
   alter system set plsql_code_type='NATIVE';
</code>
</pre>
<p>- plsql_native_library_dir should be pointing to a directory you specify. I created a &#8216;native&#8217; directory in my Oracle installation and pointed it there. All the compiled PL/SQL will go into that directory.<br />
- plsql_native_library_subdir_count determines how many directories to use when generating the compiled objects. The reason why this exists is if you have a large amount of procedures / packages to be compiled (large as in > 10,000), there will be I/O issues if you store all the compiled items in one directory. If you specify the count to be more than one, then each compiled item will be put in a subdirectory, round-robin style.<br />
- Since plsql_native_library_subdir_count=5 in the example above, you need to manually create 5 directories in the &#8216;native&#8217; directory created, called dn (where n is a number starting with 0 to subdir_count) ie:</p>
<p>C:\Oracle\db10g\native\d0<br />
C:\Oracle\db10g\native\d1<br />
&#8230;<br />
C:\Oracle\db10g\native\d4</p>
<p>At this point, try compiling your PL/SQL packages or procedures. You can check your subdirectories to see that things are being compiled. </p>
<p>Congrats! You should now have a (slightly) speedier Oracle system. Unfortunately, there are no speed improvements using native compilation for SQL statements. Instead, you need to do your standard optimization techniques for your schemas, such as creating proper indexes, partitions, etc. If you use heavy algorithms PL/SQL, native compilation will benefit this most.</p>
<p>And, if in the event you want to switch out of native compilation, use the following:</p>
<p><code></p>
<pre>
ALTER SYSTEM SET plsql_compiler_flags = 'INTERPRETED';
ALTER SYSTEM set plsql_code_type='INTERPRETED';
</pre>
<p></code></p>
<p>For more information, see the <a href="http://www.oracle.com/technology/tech/pl_sql/htdocs/ncomp_faq.html">Oracle PL/SQL NComp</a> document.</p>
]]></content:encoded>
			<wfw:commentRss>http://journal.suteki.nu/2009/08/14/native-compile-for-plsql-on-windows-oracle-10gx64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
