<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Take It Alone - On the Road</title>
    <link rel="alternate" type="text/html" href="http://www.takeitalone.com/" />
    <link rel="self" type="application/atom+xml" href="http://www.takeitalone.com/atom.xml" />
    <id>tag:www.takeitalone.com,2010-05-16://2</id>
    <updated>2010-07-18T01:22:38Z</updated>
    <subtitle>SELECT blog FROM Shawn.Thought
WHERE subjects IN (&apos;Web Design&apos;, &apos;Web Arch&apos;, &apos;UNIX&apos;, &apos;Web 2.0&apos;, &apos;OPENSOURCE&apos;) ; </subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 5.02</generator>

<entry>
    <title>Do you know MySQL Sample Database</title>
    <link rel="alternate" type="text/html" href="http://www.takeitalone.com/2010/07/do-you-know-mysql-sample-database.html" />
    <id>tag:www.takeitalone.com,2010://2.10</id>

    <published>2010-07-18T00:20:49Z</published>
    <updated>2010-07-18T01:22:38Z</updated>

    <summary>For language learners, &quot;The best way to learn a foreign language is to speak it&quot; (via antimoon.com), which must be the most frequently repeat pieces. This approach for learning new staff is also useful for learning MySQL, with a little...</summary>
    <author>
        <name>Shawn</name>
        
    </author>
    
        <category term="Tech" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="database" label="Database" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="databaseengine" label="Database engine" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mysql" label="MySQL" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="opensource" label="Open source" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-us" xml:base="http://www.takeitalone.com/">
        <![CDATA[For language learners, "The best way to learn a foreign language is to speak it" (via <a href="http://www.antimoon.com/other/myths-speaking.htm">antimoon.com</a>), which must be the most frequently repeat pieces. This approach for learning new staff is also useful for learning <a class="zem_slink" href="http://www.mysql.com" title="MySQL" rel="homepage">MySQL</a>, with a little bit modify,&nbsp;"The best way to learn MySQL is to use it", which is the fast way to familiar with it.<div><br /></div><div>After you install MySQL on your PC, Mac OS, Linux, whatever system you used, but with the blank database of default installation, you don't have a chance to have fun with it. So, MySQL also provides some sample databases to help you out.</div><div><b><br /></b></div><div><b>1. employee sample database</b></div><div><br /></div><div><a href="http://downloads.mysql.com/docs/employee-en.pdf">Quote</a>&nbsp;from MySQL AB,</div><div><br /></div><div><div>"The Employees sample database was developed by Patrick Crews and Giuseppe Maxia and provides a combination of a large base of data (approximately 160MB) spread over six separate tables and consisting of 4 million records in total. The structure is compatible with a wide range of storage engine types. Through an included data file, support for partitioned tables is also provided.</div><div><br /></div><div>In addition to the base data, the Employees database also includes a suite of tests that can be executed across the test data to ensure the integrity of the data that you have loaded. This should help ensure the quality of the data during initial load, and can be used after usage to ensure that no changes have been made to the database during testing."</div></div><div><br /></div><div><b>2. world sample database</b></div><div><b><br /></b></div><div>Maybe 10 years ago, world sample database is the only one that MySQL AB provided for users, which has just 3 tables, cities, counties and langs. MySQL AB obtained from other outside source, so they don't have the ability to control it and don't have the right to bundle it inside MySQL, because it is not intellectual property of mysql. Additionally, users found lots of flaws of this sample, such as below:</div><div><br /></div><div><div><ul><li>No table type diversity, not a lot of data type diversity</li><li>No MySQL 5 features</li><li>Not a lot of data</li><li>Not really used in tutorials and articles because it's not robust enough</li></ul><div>which means this sample is totally&nbsp;<a href="http://bugs.mysql.com/bug.php?id=3217">out of date</a>, but still can find a shadow inside the newer sample database history documentation.</div></div></div><div><br /></div><div>The world sample database provides a set of tables containing information on the countries and cities of the world and is useful for basic queries, but lacks structures for testing MySQL-specific functionality and new features found in MySQL 5.</div><div><br /></div><div><b>3. Sakila sample database </b>(require MySQL 5.0 or later)</div><div><br /></div><div><a href="http://dev.mysql.com/doc/sakila/en/sakila.html" style="text-decoration: underline; ">Sakila</a>&nbsp;is the official name of MySQL dolphin (the logo). The name come from&nbsp;Ambrose Twebaze, a open source software developer from Swaziland, Africa.&nbsp;This sample database was designed as a replacement to the world sample database.&nbsp;Development of the Sakila sample database began in early 2005. Early designs were based on the database used in the Dell whitepaper Three Approaches to MySQL Applications on Dell PowerEdge Servers.</div><div><br /></div><div><b>4. menagerie database</b></div><div><b><br /></b></div><div><b>5. Wikipedia:Database download </b>(<a href="http://en.wikipedia.org/wiki/Wikipedia:Database_download">Link</a>)</div><div><b><br /></b></div><div>If you need big data sets, you may want to take a peak at&nbsp;<a href="http://en.wikipedia.org">wikipedia</a>, which offers&nbsp;free copies of all available content to interested users, for "mirroring, personal use, informal backups, offline use or database queries". Or you can go straight to public&nbsp;<a href="http://meta.wikimedia.org/wiki/Data_dumps">data dumps</a>, which you can find on&nbsp;<a href="http://download.wikimedia.org/">http://download.wikimedia.org/</a>, listed by UTC time.</div><div><br /></div><div>Link:&nbsp;<a href="Example Databases">MySQL Example Databases</a></div><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>Change Xcode __MyCompanyName__ in default Template</title>
    <link rel="alternate" type="text/html" href="http://www.takeitalone.com/2010/07/change-xcode-mycompanyname-in-default-template.html" />
    <id>tag:www.takeitalone.com,2010://2.8</id>

    <published>2010-07-09T00:46:29Z</published>
    <updated>2010-07-09T03:02:53Z</updated>

    <summary><![CDATA[For example, if I want to replace&nbsp;__MyCompanyName__ with more meaningful name, just open Terminal, execute the command below:defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME"="Shawn";}'When you start Xcode next time, you will find there is "Shawn" inside your code instead of "__MyCompanyName__"....]]></summary>
    <author>
        <name>Shawn</name>
        
    </author>
    
        <category term="Macintosh" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="apple" label="Apple" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="iphone" label="IPhone" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="xcode" label="Xcode" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-us" xml:base="http://www.takeitalone.com/">
        <![CDATA[<div>For example, if I want to replace&nbsp;__MyCompanyName__ with more meaningful name, just open Terminal, execute the command below:</div><div><pre class="code"><code class="bash">defaults write com.apple.<a class="zem_slink" href="http://developer.apple.com/technology/tools.html" title="Xcode" rel="homepage">Xcode</a> PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME"="Shawn";}'</code></pre>When you start Xcode next time, you will find there is "Shawn" inside your code instead of "__MyCompanyName__".</div>]]>
        
    </content>
</entry>

<entry>
    <title>The S.Pellegrino World&apos;s 50 Best Restaurants</title>
    <link rel="alternate" type="text/html" href="http://www.takeitalone.com/2010/07/the-spellegrino-worlds-50-best-restaurants.html" />
    <id>tag:www.takeitalone.com,2010://2.7</id>

    <published>2010-07-01T05:57:00Z</published>
    <updated>2010-07-01T11:29:37Z</updated>

    <summary>The S.Pellegrino World&apos;s 50 Best Restaurants 2010 have now been announced recently. The list is the result of an extensive poll of the world&apos;s most celebrated chefs, renowned food critics, leading restaurateurs and well-travelled gourmands - collectively they are The...</summary>
    <author>
        <name>Shawn</name>
        
    </author>
    
        <category term="Food" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="restaurants" label="restaurants" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="spellegrinoworld" label="S.Pellegrino World" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-us" xml:base="http://www.takeitalone.com/">
        <![CDATA[<div>The <a href="http://www.theworlds50best.com/">S.Pellegrino World's 50 Best Restaurants 2010</a> have now been announced recently. The <a href="http://www.theworlds50best.com/awards/1-50-winners">list</a> is the result of an extensive poll of the world's most celebrated chefs, renowned food critics, leading restaurateurs and well-travelled gourmands - collectively they are The World's 50 Best Restaurants Academy, which is produced by&nbsp;<a class="zem_slink" href="http://en.wikipedia.org/wiki/Restaurant_%28magazine%29" title="Restaurant (magazine)" rel="wikipedia">Restaurant&nbsp;Magazine</a>.</div><div><br /></div><div><a href="http://www.noma.dk/">Noma</a>, <a class="zem_slink" href="http://en.wikipedia.org/wiki/Copenhagen" title="Copenhagen" rel="wikipedia">Copenhagen</a> (<a class="zem_slink" href="http://en.wikipedia.org/wiki/Denmark" title="Denmark" rel="wikipedia">Denmark</a>), win the 2010 Awards of The World's Best Restaurant, Best Restaurant in Europe. </div><div><br /></div>

<object width="480" height="288"><param name="movie" value="http://www.youtube.com/v/aZI9cFx3EJM&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://www.youtube.com/v/aZI9cFx3EJM&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="480" height="288"></object>]]>
        
    </content>
</entry>

<entry>
    <title>Website Revision for SoftEaster.Com Recently</title>
    <link rel="alternate" type="text/html" href="http://www.takeitalone.com/2010/06/website-revision-for-softeaster-recently.html" />
    <id>tag:www.takeitalone.com,2010://2.6</id>

    <published>2010-06-18T01:20:31Z</published>
    <updated>2010-06-18T01:36:55Z</updated>

    <summary><![CDATA[The website project softeaster.com has ceased to update August 2009, as well some subdomain sites such as Free Ebook &amp; Magazine, Web Applications List and GameBus 24*7. For one thing, I'm not that kind of person can maintain long term...]]></summary>
    <author>
        <name>Shawn</name>
        
    </author>
    
        <category term="Diary" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en-us" xml:base="http://www.takeitalone.com/">
        <![CDATA[The website project <a href="http://www.softeaster.com">softeaster.com</a> has ceased to update August 2009, as well some subdomain sites such as <a href="http://ebook.softeaster.com/">Free Ebook &amp; Magazine</a>, <a href="http://webapp.softeaster.com/">Web Applications List</a> and <a href="http://247.softeaster.com/">GameBus 24*7</a>. For one thing, I'm not that kind of person can maintain long term enthusiasm which I cannot see the future, and I do hate doing regular things, I will be interested something that can change people's life or bring amazing staff to others. Although tomorrow is my final exam of Internet Programming, I still on the way making plans, the revision of softeaster.com website just one part of it. Last night, I restructure the website by using <a href="http://www.xmind.net">XMind</a>, and after tomorrow there will a huge change for it.&nbsp;<br /><br /><b>Will See !!!</b>]]>
        
    </content>
</entry>

<entry>
    <title>CodeIgniter Email Class Bug: Undefined index: Subject</title>
    <link rel="alternate" type="text/html" href="http://www.takeitalone.com/2010/06/codeigniter-email-class-bug-undefined-index-subject.html" />
    <id>tag:www.takeitalone.com,2010://2.4</id>

    <published>2010-06-16T04:44:41Z</published>
    <updated>2010-07-09T03:08:42Z</updated>

    <summary>Yesterday afternoon, when I worked on the assignment 2 of Internet Programming with CodeIgniter. The problem below always occurred am I&apos;m struggling with solving this weird problem. A PHP Error was encountered Severity: Notice Message: Undefined index: Subject Filename: libraries/Email.php...</summary>
    <author>
        <name>Shawn</name>
        
    </author>
    
        <category term="Tech" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="codeigniter" label="CodeIgniter" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="php" label="PHP" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-us" xml:base="http://www.takeitalone.com/">
        <![CDATA[Yesterday afternoon, when I worked on the assignment 2 of <a href="https://learn.it.uts.edu.au/ip/index.php">Internet Programming</a> with <a href="http://codeigniter.com/">CodeIgniter</a>. The problem below always occurred am I'm struggling with solving this weird problem.

<pre class="code"><code class="plain">
    A <a href="http://www.php.net/" title="PHP" rel="homepage">PHP</a> Error was encountered
    Severity: Notice
    Message: Undefined index: Subject
    Filename: libraries/Email.php
    Line Number: 930 
</code>
</pre>

At first, I thought the reason of this error occurred is related to the codeigniter email function within my confirmation controller. After I review my code several time, I still cannot get a clue for what's the issue there.
<pre class="code"><code class="php">
if ($this-&gt;protocol == 'mail')
{
    $this-&gt;_subject = $this-&gt;_headers['Subject'];
    unset($this-&gt;_headers['Subject']);
} 
</code>
</pre>
I guess the problem is the programme flow is trying to ccess the 'Subject' index and which has unset in earlier time. I found a solution post "<a href="http://codeigniter.com/forums/viewthread/87108/P15/">Bug with Email Class: Undefined Subject, although it's sent!!!</a>"  to confirm my guess.
The code should be like this below an it does work.
&lt;<pre class="code"><code class="php">if ($this-&gt;protocol == 'mail')
{
    if (array_key_exists('Subject', $this-&gt;_headers))
    {
        $this-&gt;_subject = $this-&gt;_headers['Subject'];
        unset($this-&gt;_headers['Subject']);
    }
} 
</code>
</pre>]]>
        
    </content>
</entry>

<entry>
    <title>MySQL 5 Certification Study Guide</title>
    <link rel="alternate" type="text/html" href="http://www.takeitalone.com/2010/05/mysql-5-certification-study-guide.html" />
    <id>tag:www.takeitalone.com,2010://2.2</id>

    <published>2010-05-28T15:40:23Z</published>
    <updated>2010-05-28T16:05:53Z</updated>

    <summary>I will complete my master degree in UTS at the end of this year, so the task of getting a good job for me become essential day by day. Although I&apos;m kind of interesting of the concept of DBA of...</summary>
    <author>
        <name>Shawn</name>
        
    </author>
    
        <category term="Reading" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Tech" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="certification" label="Certification" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="database" label="Database" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="mysql" label="MySQL" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en-us" xml:base="http://www.takeitalone.com/">
        <![CDATA[<div>I will complete my master degree in <a href="http://www.uts.edu.au">UTS</a> at the end of this year, so the task of getting a good job for me become essential day by day. Although I'm kind of interesting of the concept of DBA of Oracle, <a class="zem_slink" href="http://www.mysql.com" title="MySQL" rel="homepage">MySQL</a>, when I took the course of Advance Database in uni, the subject didn't told me so much things related to DBA but for Data warehouse. After that, I think that I need to study it by myself, not be told from the uni lecture. Certification always a good way to guide you to learn the important bits of that certain universe.&nbsp;</div><div>In this case, for MySQL version 5.0, this book "MySQL 5 Certification Study Guide" will be the guidance for me to familiar with the "Core" of MySQL. There are something need to know about MySQL version exams:</div><div><br /></div><div><ul><li>There are two levels of certification to pass, they are called <i>Developer</i> and <i><a class="zem_slink" href="http://en.wikipedia.org/wiki/Database_administrator" title="Database administrator" rel="wikipedia">Database Administrator</a></i> (DBA) certifications.</li><li>The titles that belong with the two certification levels will be <i>Certified MySQL Developer</i> (CMDEV) and <i>Certified MySQL Database Administrator</i> (CMDBA), respectively.</li><li>There will be two exams per certification level. If you wish to attain both titles, you will need to pass four exams.</li></ul><div>Passing a MySQL certification exam is no easy feat. The statistics tell the story: 40 to 50 percent will fail an exam the first time they take it. This guide is a primer for the exams, but not a replacement for the <i>MySQL Reference Manual</i> or any other MySQL documentation.</div></div>]]>
        
    </content>
</entry>

</feed>
