<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5.1" -->
<rss version="0.92">
<channel>
	<title>NullVoid</title>
	<link>http://blog.mikezhang.com</link>
	<description>thoughts of michael xiaoquan zhang professor at hkust</description>
	<lastBuildDate>Fri, 19 Sep 2008 09:55:32 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Pic-A-Day: Roof</title>
		<description> </description>
		<link>http://blog.mikezhang.com/2008/09/19/pic-a-day-roof</link>
			</item>
	<item>
		<title>Decimal Point Alignment in Latex</title>
		<description>It has been a headache to do decimal point alignment in latex.

Fortunately, there is a package called dcolumn that helps with this problem.

This dcolumn package "defines a system for defining columns of entries in an array or tabular which are to be aligned on a ‘decimal point’."

Unfortunately, it is very ...</description>
		<link>http://blog.mikezhang.com/2008/09/08/decimal-point-alignment-in-latex</link>
			</item>
	<item>
		<title>PERL Load MySQL Query Results into an Array</title>
		<description>It's that simple:

use DBI;
my  $conn = DBI->connect
    ("DBI:mysql:db","owner","ownerpass") or die("Cannot connect: $DBI::errstr");
$sql=qq(select field from table where id=$id);
@array=@{$conn-&#62;selectcol_arrayref($sql)};
 </description>
		<link>http://blog.mikezhang.com/2008/09/06/perl-load-mysql-query-results-into-an-array</link>
			</item>
	<item>
		<title>Passing Array as a Parameter in PERL</title>
		<description>There are more than two ways to do it. I just put down two quick ways.

	using reference to array
	not using reference to array

Method 1:

In program:
     processarray(\@array);
In sub processarray:
     my $arrayref=shift;
     my @array=@$arrayref;


Method 2:

In program:
     ...</description>
		<link>http://blog.mikezhang.com/2008/09/06/passing-array-as-a-parameter-in-perl</link>
			</item>
	<item>
		<title>Overhead: WISE vs. SMART</title>
		<description>The difference between a smart person and a wise person is that a wise person knows how not to get into situations that a smart person knows how to get out of. </description>
		<link>http://blog.mikezhang.com/2008/09/05/overhead-wise-vs-smart</link>
			</item>
	<item>
		<title>Pic-A-Day: Palace Museum</title>
		<description>It is renovated when I visited. But I could manage to get a picture like this.
 </description>
		<link>http://blog.mikezhang.com/2008/09/02/pic-a-day-palace-museum</link>
			</item>
	<item>
		<title>Pic-A-Day: Lantern of Double Happiness</title>
		<description> </description>
		<link>http://blog.mikezhang.com/2008/08/29/pic-a-day-lantern-of-double-happiness</link>
			</item>
	<item>
		<title>Political Correctness at Google</title>
		<description>Google blog posted an article on "Strengthening the Study of Computer Science".

It started with:
At a time when more and more digital technologies are becoming indispensable to millions of people, the field of computer science (CS) is in trouble. Enrollment and retention of CS students, particularly those historically underrepresented in the ...</description>
		<link>http://blog.mikezhang.com/2008/08/29/political-correctness-at-google</link>
			</item>
	<item>
		<title>Perl Reading A File</title>
		<description>Read from a file, and write out.  Just put it here for my own reference.

#!/usr/bin/perl

$data_file="file.csv";

open(DAT, $data_file) &#124;&#124; die("Could not open file!");
@raw_data=;
close(DAT);

#print "Content-type: text/html\n\n";
#print "";

foreach $lines (@raw_data)
{
chomp($lines);
($var1,$var2,$var2)=split(/\&#124;/,$lines);
print "$var1,$var2,$var3\n";
# print "
\n";
}

#print ""; </description>
		<link>http://blog.mikezhang.com/2008/08/28/perl-reading-a-file</link>
			</item>
	<item>
		<title>More on the Age of Gymnasts: A Reply to Chris Bourdon</title>
		<description>
Photo of Yang Yilin, One of the Gold Medal Winning Gymnast
After I wrote a post and complained about Levitt's  un-scientific  way of making ungrounded statements, I received a comment from the original data analyst Chris Bourdon. To make the reply more visible, I put it here, and it gives a ...</description>
		<link>http://blog.mikezhang.com/2008/08/26/more-on-the-age-of-gymnasts-a-reply-to-chris-bourdon</link>
			</item>
</channel>
</rss>
