<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2726349453288830783</id><updated>2024-10-06T23:30:48.773-07:00</updated><category term="asp.net"/><category term="C#"/><category term="linux"/><category term="css"/><category term="ms sql server"/><category term="flex"/><category term="javascript"/><category term="gtk"/><category term="java"/><category term="ssh"/><category term="C# binary Image upload"/><category term="asp.net c# datagrid"/><category term="compiler"/><category term="datagrid"/><category term="errors"/><category term="gridview"/><category term="ipa apple appcelerator"/><category term="perl"/><category term="perl. ssh"/><category term="php.ini"/><category term="presentation speech"/><category term="sql"/><category term="sql server"/><category term="upload"/><category term="vim"/><category term="vncserver"/><category term="vncviewer"/><category term="xml"/><category term=".net"/><category term="C# stringbuilder debug diagnostics performance"/><category term="C# vs.net vb ink tablet"/><category term="CRUD"/><category term="Flex object name image"/><category term="JTextPane"/><category term="MSF"/><category term="PHP Debug"/><category term="PHP IIS"/><category term="SQL Stored Procedure"/><category term="adobe"/><category term="align right"/><category term="android emulator SD CARD"/><category term="android screen cast"/><category term="asp.net datagrid"/><category term="asp.net date"/><category term="asp.net default submit enter"/><category term="asp.net eval"/><category term="asp.net printing"/><category term="asp.net session"/><category term="asp.net textbox enter"/><category term="asp.net upload"/><category term="blackberry rim whitespace spacer"/><category term="bluetooth"/><category term="c programming"/><category term="canvas"/><category term="cname mx google gmail"/><category term="collapsing"/><category term="compiling blackberry iphone"/><category term="confucius"/><category term="country countries paypal"/><category term="css class id"/><category term="css div"/><category term="css transparency"/><category term="css visibility display hide"/><category term="cursor mouse flex"/><category term="cvs"/><category term="date format php"/><category term="debugging"/><category term="div flash"/><category term="dom"/><category term="drag and drop"/><category term="eclipse"/><category term="editors"/><category term="em dash HTML"/><category term="error asp.net"/><category term="essay"/><category term="file size"/><category term="firefox"/><category term="flash"/><category term="flash actionscript newline"/><category term="flex adobe"/><category term="flex asp.net iis permission"/><category term="flex child parent"/><category term="flex combobox populating"/><category term="flex populating programmatically combobox"/><category term="future of technologies"/><category term="g1"/><category term="git"/><category term="google phone"/><category term="gothere.sg"/><category term="gphone"/><category term="grid"/><category term="haversine iphone javascript gps two points"/><category term="hdd recovery harddrive problem disk unmountable not readable"/><category term="hiding"/><category term="html"/><category term="iis 503"/><category term="installing phonegap eclipse"/><category term="iphone"/><category term="iphone ios development codesign error"/><category term="javascript parent child"/><category term="keepalive"/><category term="layout manager"/><category term="linksys router setting admin dd-wrt"/><category term="linux directory search"/><category term="localhost"/><category term="macintosh"/><category term="mapquest google mapping actionscript"/><category term="mouse"/><category term="mysql"/><category term="mysql mysqldump"/><category term="mysql php installation errors server 2008"/><category term="mysql today date"/><category term="netstat"/><category term="object oriented"/><category term="overlaying"/><category term="php error"/><category term="php error open_basedir"/><category term="php file upload"/><category term="php format base strip"/><category term="php scrapping screen .net"/><category term="php xml"/><category term="phpmyadmin foreign key"/><category term="phrases"/><category term="popup"/><category term="port forwarding"/><category term="presentation jokes story stories"/><category term="print flash dialogbox"/><category term="querystring includes php"/><category term="raggtop 303 versus convertible"/><category term="random asp.net C#"/><category term="repository"/><category term="return variable"/><category term="rows"/><category term="search engines"/><category term="security"/><category term="servlet java tomcat"/><category term="sessions"/><category term="signals"/><category term="singapore"/><category term="smtp"/><category term="sql error namepipe"/><category term="sql server restore"/><category term="startups"/><category term="static"/><category term="stay on screen"/><category term="stringBuffer"/><category term="svn subversion"/><category term="tables"/><category term="tablet pc"/><category term="tcp"/><category term="thumbnail C#"/><category term="tunnel"/><category term="ubuntu"/><category term="validation javascript"/><category term="vmware vmplayer"/><category term="vnc"/><category term="vncclient"/><category term="vncpasswd"/><category term="vs.net asp.net"/><category term="web hosting"/><category term="windows"/><category term="x11vnc"/><category term="xampp apache php"/><category term="xpath"/><category term="xsd vs.net sql"/><category term="xvfb"/><category term="xvnc"/><category term="zun hard disk"/><title type='text'>Programming Trail</title><subtitle type='html'>This blog was setup as a result of too much programming, I realised that I was getting back to the same problems which I had solved a few years ago. I thought a blog that can serve to remind me of what I did when i ran into programming problems :) So yep. Hence the title programming trail.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>174</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-9051184190001333612</id><published>2014-06-28T15:39:00.000-07:00</published><updated>2014-06-28T15:39:03.405-07:00</updated><title type='text'>Best webpage downloader</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
So far, the best I have used is:&amp;nbsp;http://www.sitesucker.us/mac/mac.html&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/9051184190001333612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/9051184190001333612' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/9051184190001333612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/9051184190001333612'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2014/06/best-webpage-downloader.html' title='Best webpage downloader'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-2493007000913995692</id><published>2014-06-27T14:46:00.001-07:00</published><updated>2014-06-27T14:46:20.227-07:00</updated><title type='text'>Unable to use Fontawesome because of library PIL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Was trying to use fontawesome library to generate PNG files. However, met many errors along the way. In simple steps:&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1. downloaded and installed brew&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2. sudo brew install freetype&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
3. sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pillow&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
4. python fontawesome.py --size 128 play&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/2493007000913995692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/2493007000913995692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/2493007000913995692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/2493007000913995692'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2014/06/unable-to-use-fontawesome-because-of.html' title='Unable to use Fontawesome because of library PIL'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-1713735582427078362</id><published>2014-05-07T01:24:00.002-07:00</published><updated>2014-05-07T01:24:28.808-07:00</updated><title type='text'>Warning: mysql_connect(): No such file or directory in but file exists in terminal</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This will fix the issue:&lt;br /&gt;
&lt;br /&gt;
sudo su&lt;br /&gt;
ln -s /Applications/xampp/xamppfiles/var/mysql/mysql.sock /tmp/mysql.sock&lt;br /&gt;
mkdir /var/mysql&lt;br /&gt;
ln -s /Applications/xampp/xamppfiles/var/mysql/mysql.sock /var/mysql/mysql.sock&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/1713735582427078362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/1713735582427078362' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1713735582427078362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1713735582427078362'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2014/05/warning-mysqlconnect-no-such-file-or.html' title='Warning: mysql_connect(): No such file or directory in but file exists in terminal'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-5971231956180490571</id><published>2014-05-04T23:17:00.004-07:00</published><updated>2014-05-04T23:17:43.699-07:00</updated><title type='text'>Custom files redirection error on wordpress</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Even though the permissions for the folders and files are correct, a 404 error kept showing on the wordpress site. This can be resolved by modifying the .htaccess file and modifying the headers to something like this (the highlighted section is what is new):&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;ifmodule mod_rewrite.c=&quot;&quot;&gt;&lt;/ifmodule&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;RewriteEngine On&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;RewriteBase /&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;RewriteCond %{REQUEST_URI} ^/rest/(.*)$ [OR]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;RewriteRule ^.*$ - [L]&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
# BEGIN WordPress&lt;br /&gt;
&lt;ifmodule mod_rewrite.c=&quot;&quot;&gt;&lt;/ifmodule&gt;&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteBase /&lt;br /&gt;
RewriteRule ^index\.php$ - [L]&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
RewriteRule . /index.php [L]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# END WordPress</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/5971231956180490571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/5971231956180490571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/5971231956180490571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/5971231956180490571'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2014/05/custom-files-redirection-error-on.html' title='Custom files redirection error on wordpress'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-5106679198856535410</id><published>2014-04-30T11:40:00.002-07:00</published><updated>2014-04-30T11:40:43.736-07:00</updated><title type='text'>Persistent ampersand/html entities in jquery</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-KX1Rx7SHcCI/U2FDPby0kUI/AAAAAAAACus/5hdvyTR9xiM/s1600/Screen+Shot+2014-04-30+at+11.38.42+am.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-KX1Rx7SHcCI/U2FDPby0kUI/AAAAAAAACus/5hdvyTR9xiM/s1600/Screen+Shot+2014-04-30+at+11.38.42+am.png&quot; height=&quot;206&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can solve it by doing this:&amp;nbsp;$(&#39;&lt;div&gt;
&#39;).html(&quot;HTML YOU WANT TO CONVERT&quot;).text()&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/5106679198856535410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/5106679198856535410' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/5106679198856535410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/5106679198856535410'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2014/04/persistent-ampersandhtml-entities-in.html' title='Persistent ampersand/html entities in jquery'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-KX1Rx7SHcCI/U2FDPby0kUI/AAAAAAAACus/5hdvyTR9xiM/s72-c/Screen+Shot+2014-04-30+at+11.38.42+am.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-1556236929975464543</id><published>2014-04-27T16:01:00.003-07:00</published><updated>2014-04-27T16:02:12.932-07:00</updated><title type='text'>SimpleXML error - unterminated entity reference.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While repurposing a blog today into XML doc, ran into the usual ampersand error.&amp;nbsp;&lt;span class=&quot;webkit-html-tag&quot; style=&quot;font-family: monospace; white-space: pre-wrap;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: monospace; white-space: pre-wrap;&quot;&gt;Warning&lt;/span&gt;&lt;span class=&quot;webkit-html-tag&quot; style=&quot;font-family: monospace; white-space: pre-wrap;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: monospace; white-space: pre-wrap;&quot;&gt;:  SimpleXMLElement::addChild(): unterminated entity reference. 
&lt;/span&gt;&lt;span style=&quot;font-family: monospace; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidg9frA33wsUWGyFp3poGv4FcwAe82BUQEGLlbzwewqRjtGs30cFT3L0bvilp5U3lTut5qnJWh6HvZOLSnGS-K4I1O5FQhqbqrGmfOEtrwrQLcuJtl8WWPZFa9gzkenw376xCCqbxGH89w/s1600/Screen+Shot+2014-04-27+at+3.59.21+pm.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidg9frA33wsUWGyFp3poGv4FcwAe82BUQEGLlbzwewqRjtGs30cFT3L0bvilp5U3lTut5qnJWh6HvZOLSnGS-K4I1O5FQhqbqrGmfOEtrwrQLcuJtl8WWPZFa9gzkenw376xCCqbxGH89w/s1600/Screen+Shot+2014-04-27+at+3.59.21+pm.png&quot; height=&quot;244&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
The error is a result of addchild inside SimpleXML, which does not automatically escapes ampersand. The best way to fix this problem is to simply not use the addchild method but instead of going direct:&lt;br /&gt;
&lt;br /&gt;
// change the following:&lt;br /&gt;
//&amp;nbsp;$childnode = $xml-&amp;gt;addChild( $key, $value, &#39;url&#39; );&lt;br /&gt;
&lt;br /&gt;
// into this:&lt;br /&gt;
$xml-&amp;gt;addChild( $key );&lt;br /&gt;
$xml-&amp;gt;$key = $value;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/1556236929975464543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/1556236929975464543' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1556236929975464543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1556236929975464543'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2014/04/while-repurposing-blog-today-into-xml.html' title='SimpleXML error - unterminated entity reference.'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidg9frA33wsUWGyFp3poGv4FcwAe82BUQEGLlbzwewqRjtGs30cFT3L0bvilp5U3lTut5qnJWh6HvZOLSnGS-K4I1O5FQhqbqrGmfOEtrwrQLcuJtl8WWPZFa9gzkenw376xCCqbxGH89w/s72-c/Screen+Shot+2014-04-27+at+3.59.21+pm.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-2359931700893421332</id><published>2014-04-27T15:33:00.000-07:00</published><updated>2014-04-27T15:33:02.780-07:00</updated><title type='text'>Weird characters in PHP crawler/curl such as â€™s...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Solution is to convert the doctype to UTF with the following line of code at the header:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-php prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; line-height: 17.804800033569336px; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;header&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;background-color: transparent; border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&#39;Content-Type: text/html; charset=utf-8&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/2359931700893421332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/2359931700893421332' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/2359931700893421332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/2359931700893421332'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2014/04/weird-characters-in-php-crawlercurl.html' title='Weird characters in PHP crawler/curl such as â€™s...'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-6983608097456795601</id><published>2013-08-27T18:09:00.002-07:00</published><updated>2013-08-27T18:09:28.094-07:00</updated><title type='text'>Sinaporean getting a california (US) drivers license</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This guide probably doesn&#39;t apply exactly if you are trying to get a license in other states of the USA. It is heavily skewed towards that of California. &lt;br /&gt;
&lt;br /&gt;
This is what I did in my initial days here in California: &lt;br /&gt;
&lt;br /&gt;
Getting a license in California is fairly easy here in San Francisco and actually a lot less hassle than in Pennsylvenia. There is no medical examination required, no proof of residence required. So essentially, you can get your permit/driving license on the 1st day you are here if need be. &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Here are the steps in general (for learners permit/driving license):&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
1. Print your I-94 for registration of learners permit. The federal government done away with the white slip of paper call I-94 which was handed to you when you first enter the country and taken back each time you leave. But they have since do away with that and you basically need to go &lt;a href=&quot;http://www.cbp.gov/i94&quot;&gt;http://www.cbp.gov/i94&lt;/a&gt; to print it out. And you need this in case you get pulled over by the police. &lt;br /&gt;
&lt;br /&gt;
2. Get your SSN from an SSN office in the USA. This will take a few weeks and probably proof of residence etc. &lt;br /&gt;
&lt;br /&gt;
3. Find the nearest DMV (you can do so by googling for DMV San Mateo, DMV Daly City, DMV Santa Clara). I did this&amp;nbsp;on google maps. &lt;br /&gt;
&lt;br /&gt;
3. Study for your Written Test. Trust me, you really need to read this. Do you know if you can actually cross the bicycle lane while driving/turning? Which freezes faster? Intersection or bridges? Better start studying if you want that&amp;nbsp;learners permit on&amp;nbsp;first try. &lt;br /&gt;
&lt;a href=&quot;http://www.dmv.ca.gov/pubs/&quot;&gt;http://www.dmv.ca.gov/pubs/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Common Questions&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1. I have a driving license in Singapore and have been driving for ten years, do I need to take the drivers test all over again (including written + behind the wheel?)&lt;/strong&gt; &lt;br /&gt;
- Sadly, this is not recognised. So yes, you have to take the test all over again - as if you do not know how to drive. &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2. I have an out of state license (e.g. PA, NY etc) which has expire, do I actually need to sit for the test all over again?&lt;/strong&gt;&lt;br /&gt;
- California state allows non out of State Drivers License (eventhough they have expired) to be exchanged for a California license. However, you are expected to take the written test before the license will be issued to you. &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3. Do I need an IDP (International Drivers Permit) to drive in the USA?&lt;/strong&gt; &lt;br /&gt;
No you do not. Not for the USA. &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;4. So what should I get a california driver&#39;s license? &lt;/strong&gt;&lt;br /&gt;
If you are interested to buy a car, or get insurance for your car (its cheaper if you have a california license). &lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;5. What proof of identity do I need to buy a car in California?&lt;/strong&gt; &lt;br /&gt;
All you need is your checkbook and a valid california drivers license. Was told that you could actually register a car even if its just a drivers permit. &lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/6983608097456795601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/6983608097456795601' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/6983608097456795601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/6983608097456795601'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2013/08/sinaporean-getting-california-us.html' title='Sinaporean getting a california (US) drivers license'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-7525464847315615763</id><published>2013-06-10T06:09:00.001-07:00</published><updated>2013-06-10T06:09:22.825-07:00</updated><title type='text'>Buying Brake Pads and Disc Rotors</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Been buying brake pads and brake disc (rotors) lately for my Lexus and my wife&#39;s BMW - learnt quite a bit and thought I should note this down for future reference. Here are some random things I learnt from this rather &#39;painful ordeal&#39;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Do you have to change disc rotors often?&lt;br /&gt;
From past experience, you probably only change the disc rotors after changing the brake pads 3-4 times. Generally, disc rotors lasts for a while. Of course, entirely dependent on how you drive but you generally do not need to change the disc rotor each time you change your brake pads&lt;br /&gt;
&lt;br /&gt;
2. How much does a Disc Rotor cost? Brake Pads?&lt;br /&gt;
Depending on cars, for mercedes, a Disc Rotor cost about $85 (from Golden Link Auto - Stockists for Mercedes) per side. And about $130 for a pair of brake pads (front pads are typically more expensive than rear pads). Plus a sensor ($6), you are looking at a cost of about S$438 (as of Jun 2013) just for the parts.&lt;br /&gt;
&lt;br /&gt;
3. What about manpower cost?&lt;br /&gt;
It depends on the place you change. It can range from as low as $60 to as high as about $120. Have seen both extremes. If you are willing to bring your car across the border, you can probably get away with getting it done for about MYR$120 (~S$50). However, if you want to save time, you can pretty much get it done in Singapore for a very reasonable price.&lt;br /&gt;
&lt;br /&gt;
SPC Balestier for instance, can get it done for $60. The important thing is to call them during their lull period i.e. they are free anyhow, so they will be more than glad to get it done for you rather than staying idle. If they refuse to give you $60, just call the next SPC Speedycare.&lt;br /&gt;
&lt;br /&gt;
I got mine done (front and rear brake pads) + front disc rotors for about $90 at Zen Auto (30 Kaki Bukit Ave 3). Highly recommended. The team is rather professional and the cars (mostly mercedes and BMWs) gave me quite a bit of comfort too.&lt;br /&gt;
&lt;br /&gt;
4. Tips on how you should go about the entire changing of disc rotors:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Find out if your disc rotor is single wall, or double wall. The thickness of the disc rotor matters i.e. the size. And the least you can do at least visually, without taking the disc rotor out, is to visually check the wall of your disc rotor. A rotor that is too thick will not fit into the calliper of the car&lt;/li&gt;
&lt;li&gt;Get hold of your chasis number, forget about number plate, that is entirely inaccurate. The chasis number will give the stockist a better idea of which parts you really need&lt;/li&gt;
&lt;li&gt;Agree on a price before allowing the mechanic to touch the car. They tend to work on the car before the price is even negotiated. Remember, if the price is not correct, just walk!&lt;/li&gt;
&lt;li&gt;After getting your parts, bring it to a mechanic of your choice. One thing to note is that most brand new disc rotors come &#39;waxed&#39; i.e. a thin layer of gray paint light material will cover the entire disc rotor. But some mechanics will tend to shave that wax off before even taking the wheel down to test if the disc rotors can fit the car! Take note, this is extremely wrong, because:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;The wax doesn&#39;t need to be removed, the brake bad will get rid of the wax after some driving&lt;/li&gt;
&lt;li&gt;In the event that the wax is worn/shaved off, it can&#39;t be exchanged/refund with the stockist - which means you would have wasted monies buying the disc rotors!&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;In short summary do this;&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;Buy the parts from the stockist&lt;/li&gt;
&lt;li&gt;Find a good mechanic online (after reading reviews)&lt;/li&gt;
&lt;li&gt;Agree on a price before allowing them to jack the car&lt;/li&gt;
&lt;li&gt;If they attempt to take the wax off, tell them not to politely&lt;/li&gt;
&lt;li&gt;If the part doesn&#39;t fit, take note of the number on the Disc rotor (on Mercedes, it will be something like W169 412 00 12) and go back to the stockist with the part in its original condition&lt;/li&gt;
&lt;li&gt;Test the brakes by driving and stopping around.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Drive back home happily :)&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/7525464847315615763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/7525464847315615763' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/7525464847315615763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/7525464847315615763'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2013/06/buying-brake-pads-and-disc-rotors.html' title='Buying Brake Pads and Disc Rotors'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-6804877619364648790</id><published>2013-05-18T07:30:00.003-07:00</published><updated>2013-05-18T07:30:58.304-07:00</updated><title type='text'>Adding a windows (networked) printer on a Mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
1. Share the printer from Windows. Take note of the IP address and the name of the printer that is being shared.&lt;br /&gt;
&lt;br /&gt;
2. Go to the mac, go to System Preference &amp;gt; Printers&lt;br /&gt;
&lt;br /&gt;
3. Right click on the topbar and click &#39;customize toolbar&#39; and drag &#39;Advance Options&#39; to the toolbar&lt;br /&gt;
&lt;br /&gt;
4. Click on Advance Options&lt;br /&gt;
&lt;br /&gt;
5. Select &quot;windows&quot;&lt;br /&gt;
&lt;br /&gt;
6. In the SMB path put the following: &lt;br /&gt;
smb://Aaron%20Tan:&lt;password&gt;@&lt;server-ip&gt;/&lt;printer-name&gt;&lt;/printer-name&gt;&lt;/server-ip&gt;&lt;/password&gt;&lt;br /&gt;
&lt;br /&gt;
Where Aaron%20Tan - is basically your windows username (replace space with %20 if there is space)&lt;br /&gt;
&lt;password&gt; - is your password on windows&lt;/password&gt;&lt;br /&gt;
&lt;server-ip&gt; - as described e.g. 192.168.0.105&lt;/server-ip&gt;&lt;br /&gt;
&lt;printer-name&gt; - as described in your shared settings on WINDOWS, e.g. Deskjet&lt;/printer-name&gt;&lt;br /&gt;
&lt;br /&gt;
7. Save. and try to print.. probably should also install the driver on the mac so that you can select the right type of device.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/6804877619364648790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/6804877619364648790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/6804877619364648790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/6804877619364648790'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2013/05/adding-windows-networked-printer-on-mac.html' title='Adding a windows (networked) printer on a Mac'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-717042095454341413</id><published>2013-03-12T06:40:00.002-07:00</published><updated>2013-03-12T06:40:53.221-07:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
page_content.php&lt;br /&gt;
areas.php&lt;br /&gt;
&lt;br /&gt;
Modify these two files to add new &#39;areas&#39; for layout&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/717042095454341413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/717042095454341413' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/717042095454341413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/717042095454341413'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2013/03/pagecontent.html' title=''/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-2946084640618072894</id><published>2013-02-02T18:33:00.000-08:00</published><updated>2013-03-11T03:12:51.304-07:00</updated><title type='text'>Running Crontab</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
/usr/bin/php /Applications/XAMPP/xamppfiles/htdocs/XXXX/crawl.php&lt;br /&gt;
&lt;br /&gt;
Example :&lt;br /&gt;
&lt;br /&gt;
cd /etc&lt;br /&gt;
&lt;br /&gt;
crontab -e&lt;br /&gt;
&lt;br /&gt;
Inside the crontab document:&lt;br /&gt;
48 * * * * /usr/bin/php /Applications/XAMPP/xamppfiles/htdocs/carmart/crawl-delta.php&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/2946084640618072894/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/2946084640618072894' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/2946084640618072894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/2946084640618072894'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2013/02/running-crontab.html' title='Running Crontab'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-1279001641626554823</id><published>2012-12-24T23:58:00.003-08:00</published><updated>2012-12-24T23:58:51.422-08:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
watch &quot;ps -xv | grep php&quot;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/1279001641626554823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/1279001641626554823' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1279001641626554823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1279001641626554823'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2012/12/blog-post.html' title=''/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-8470213025100569806</id><published>2012-12-24T23:53:00.002-08:00</published><updated>2012-12-24T23:53:06.165-08:00</updated><title type='text'>Installing watch on mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #303030; font-family: &#39;Helvetica Neue&#39;, Verdana, Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 22px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;strong style=&quot;font-weight: bold;&quot;&gt;Download the “watch” command from Terminal.app&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;We are using “curl” a command line “broswer”&lt;/em&gt;&lt;br /&gt;&lt;code style=&quot;background-color: #f3f3f3; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; display: block; font-size: 1.2em; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;curl -O http://ktwit.net/code/watch-0.2-macosx/watch&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;strong style=&quot;font-weight: bold;&quot;&gt;Make “watch” executable&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;By doing this we tell Mac OS that this is a program that can run&lt;/em&gt;&lt;br /&gt;&lt;code style=&quot;background-color: #f3f3f3; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; display: block; font-size: 1.2em; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;chmod +x watch&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;strong style=&quot;font-weight: bold;&quot;&gt;Test the program&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Let’s make sure everything is in working order.&lt;/em&gt;&lt;br /&gt;&lt;code style=&quot;background-color: #f3f3f3; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; display: block; font-size: 1.2em; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;./watch&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;strong style=&quot;font-weight: bold;&quot;&gt;Install “watch”&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Optional: By following this next step we are placing watch into a system location that will allow you to run it from any location in the Terminal (You will be prompted for your password)&lt;/em&gt;&lt;br /&gt;&lt;code style=&quot;background-color: #f3f3f3; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; display: block; font-size: 1.2em; padding-bottom: 3px; padding-left: 3px; padding-right: 3px; padding-top: 3px;&quot;&gt;sudo mv watch /usr/bin/&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/8470213025100569806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/8470213025100569806' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/8470213025100569806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/8470213025100569806'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2012/12/installing-watch-on-mac.html' title='Installing watch on mac'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-6811404830742206219</id><published>2012-12-24T23:40:00.002-08:00</published><updated>2012-12-24T23:40:17.004-08:00</updated><title type='text'>Trying to run pconnect via terminal on MAC</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Warning: mysql_pconnect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)&lt;br /&gt;
&lt;br /&gt;
can be fixed with:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px; max-height: 600px; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;sudo su
ln &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;s &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Applications&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;xampp&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;xamppfiles&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;sock &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;tmp&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;sock
mkdir &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;mysql
ln &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;s &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #2b91af; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Applications&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;xampp&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;xamppfiles&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;sock &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: darkblue; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;mysql&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: black; font-size: 14px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;sock&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/6811404830742206219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/6811404830742206219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/6811404830742206219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/6811404830742206219'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2012/12/trying-to-run-pconnect-via-terminal-on.html' title='Trying to run pconnect via terminal on MAC'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-5793819840980389959</id><published>2012-10-20T19:26:00.001-07:00</published><updated>2012-10-20T19:26:43.942-07:00</updated><title type='text'>Forex Exchange</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Planning on a trip overseas and trying to understand the forex table that is on the back of all these money changers. But this is a cheat sheet to try to understand them:&lt;br /&gt;
&lt;br /&gt;










&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; width: 384px;&quot;&gt;
&lt;!--StartFragment--&gt;
 &lt;colgroup&gt;&lt;col span=&quot;2&quot; style=&quot;width: 65pt;&quot; width=&quot;65&quot;&gt;&lt;/col&gt;
 &lt;col style=&quot;mso-width-alt: 10837; mso-width-source: userset; width: 254pt;&quot; width=&quot;254&quot;&gt;&lt;/col&gt;
 &lt;/colgroup&gt;&lt;tbody&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; colspan=&quot;3&quot; height=&quot;15&quot; style=&quot;height: 15.0pt; mso-ignore: colspan; width: 384pt;&quot; width=&quot;384&quot;&gt;Remember, buy and sell is always from the money
  exchanger point of view&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;xl63&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;xl63&quot;&gt;&amp;nbsp;&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; colspan=&quot;2&quot; height=&quot;15&quot; style=&quot;height: 15.0pt; mso-ignore: colspan;&quot;&gt;Hence
  in Singapore,&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
  &lt;td class=&quot;xl63&quot;&gt;&amp;nbsp;&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;Buy Rate:&lt;/td&gt;
  &lt;td class=&quot;xl63&quot; colspan=&quot;2&quot; style=&quot;mso-ignore: colspan;&quot;&gt;The bank buying TWD
  (multiply)&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;Sell Rate:&lt;/td&gt;
  &lt;td class=&quot;xl63&quot; colspan=&quot;2&quot; style=&quot;mso-ignore: colspan;&quot;&gt;The bank selling TWD
  (divide)&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;xl63&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;xl63&quot;&gt;&amp;nbsp;&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; colspan=&quot;2&quot; height=&quot;15&quot; style=&quot;height: 15.0pt; mso-ignore: colspan;&quot;&gt;Hence
  in Taiwan&lt;/td&gt;
  &lt;td class=&quot;xl63&quot;&gt;&amp;nbsp;&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;Buy Rate:&lt;/td&gt;
  &lt;td class=&quot;xl63&quot; colspan=&quot;2&quot; style=&quot;mso-ignore: colspan;&quot;&gt;The bank buying SGD
  (multiply)&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;Sell Rate:&lt;/td&gt;
  &lt;td class=&quot;xl63&quot; colspan=&quot;2&quot; style=&quot;mso-ignore: colspan;&quot;&gt;The bank selling SGD
  (divide)&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;xl63&quot;&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class=&quot;xl63&quot;&gt;&amp;nbsp;&lt;/td&gt;
 &lt;/tr&gt;
&lt;tr height=&quot;15&quot; style=&quot;height: 15.0pt;&quot;&gt;
  &lt;td class=&quot;xl63&quot; colspan=&quot;3&quot; height=&quot;15&quot; style=&quot;height: 15.0pt; mso-ignore: colspan;&quot;&gt;At
  home, look for selling rate. Overseas look at buying rate.&lt;/td&gt;
 &lt;/tr&gt;
&lt;!--EndFragment--&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
1. You are from Singapore going to Malaysia.&lt;br /&gt;
a. If you are changing money in Singapore, you will look at the &#39;sell rate&#39; say it is 0.4013&lt;br /&gt;
b. You will then &#39;divide&#39; by the amount you want to change say $100&lt;br /&gt;
c. So you will net: $100/0.4013 = $249.19 MYR&lt;br /&gt;
&lt;br /&gt;
2. You are from Malaysia going to Singapore.&lt;br /&gt;
a. If you are changing money in Singapore, you will look at the &#39;buy rate&#39; say it is 0.3987&lt;br /&gt;
b. You will then &#39;multiply&#39; $100 * 0.3987 = $39.87 SGD&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/5793819840980389959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/5793819840980389959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/5793819840980389959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/5793819840980389959'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2012/10/forex-exchange.html' title='Forex Exchange'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-3578966027440519656</id><published>2012-10-20T19:09:00.000-07:00</published><updated>2012-10-20T19:09:03.173-07:00</updated><title type='text'>Singapore Credit Cards for Miles</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The two best cards are the DBS VISA Altitude Card and the UOB PRIV Miles Card&lt;br /&gt;
&lt;br /&gt;
DBS Visa Altitude&lt;br /&gt;
- 1.6mies if you spend $2k per month&lt;br /&gt;
- What i like most about the card is that it is a VISA. i.e. more generally accepted and I can use this one card for literally everything&lt;br /&gt;
- What i dislike most about this card is the travel insurance, take note their travel insurance may cover your LIFE for $1million but it does not cover anything else e.g. late baggage, medical (which is the main reason why one should buy travel insurance anyway)&lt;br /&gt;
&lt;br /&gt;
UOB PRIV Miles Card&lt;br /&gt;
- 1.6 miles without a minimum spend&lt;br /&gt;
- 2.5 miles for purchases overseas&lt;br /&gt;
- Partnership with AMEX and quite a lot of the shops I go to do not accept AMEX&lt;br /&gt;
- Apart from good miles, the travel insurance is fairly comprehensive (it includes medical)&lt;br /&gt;
- Free limo trip to the airport if you charge the airfare.&lt;br /&gt;
&lt;br /&gt;
These two are certainly the top two. The other cards (that are within reach of normal/slightly affluent Singaporeans) are really shitty, the worst being Krisflyer gold, Citi Premier Miles etc.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/3578966027440519656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/3578966027440519656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/3578966027440519656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/3578966027440519656'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2012/10/singapore-credit-cards-for-miles.html' title='Singapore Credit Cards for Miles'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-816552346133906982</id><published>2012-08-19T18:18:00.001-07:00</published><updated>2012-08-19T18:18:17.642-07:00</updated><title type='text'>Managing photos on iPhone/iPad iEtc</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Syncing photos on the mac for iPhone can be such a pain because syncing and managing it is two separate function. And since I was too cheap to buy appeture or iPhotos, I have to find other ways to manage photos on my macbook.&lt;br /&gt;
&lt;br /&gt;
To manage photos (i.e. download them to your macbook) and not sync and find that your photos is inside a &quot;Photo Database&quot; file which is a 4KB unix file - which actually redirects to the iPhone backup folder. Truth be told, whenever you sync, the files are actually on your computer inside the following path: but you can&#39;t use them. its giberish. You need to organise them and this is how:&lt;br /&gt;
&lt;br /&gt;
http://www.maclife.com/article/howtos/how_manage_photos_pain_free&lt;br /&gt;
&lt;br /&gt;
In short:&lt;br /&gt;
&lt;br /&gt;
1. Connect your iphone&lt;br /&gt;
2. Create a folder on your Pictures main folder, I call mine &quot;Aaron&#39;s Iphone&quot;&lt;br /&gt;
3. Start Image Capture (can be found under applications)&lt;br /&gt;
4. Select to import to &quot;Aaron&#39;s Iphone&quot; folder and import all.&lt;br /&gt;
5. Manage the pictures and the next time you can sync accordingly&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/816552346133906982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/816552346133906982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/816552346133906982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/816552346133906982'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2012/08/managing-photos-on-iphoneipad-ietc.html' title='Managing photos on iPhone/iPad iEtc'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-1927585438458125107</id><published>2012-03-30T23:42:00.001-07:00</published><updated>2012-03-30T23:43:58.915-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hdd recovery harddrive problem disk unmountable not readable"/><title type='text'>hdd recovery</title><content type='html'>1. try this:&lt;br /&gt;diskutil list&lt;br /&gt;sudo gpt recover /dev/disk3&lt;br /&gt;&lt;br /&gt;2. if that fails, try recovery:&lt;br /&gt;- easeu data recovery is pretty good and fast&lt;br /&gt;- disk drill is also pretty good but doesn&#39;t remember the file names</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/1927585438458125107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/1927585438458125107' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1927585438458125107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1927585438458125107'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2012/03/hdd-recovery.html' title='hdd recovery'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-3640266707230068746</id><published>2011-06-21T06:15:00.000-07:00</published><updated>2011-06-21T06:16:15.091-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><title type='text'>Full 100% height container</title><content type='html'>html {&lt;br /&gt; height: 100%;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;body {&lt;br /&gt; height: 100%;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;main-body {&lt;br /&gt; height: 100%;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;inner {&lt;br /&gt; min-height: 100%;&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/3640266707230068746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/3640266707230068746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/3640266707230068746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/3640266707230068746'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2011/06/full-100-height-container.html' title='Full 100% height container'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-1351547043730306322</id><published>2011-04-07T06:46:00.001-07:00</published><updated>2011-04-07T06:46:48.677-07:00</updated><title type='text'>iphone update</title><content type='html'>http://www.blogsdna.com/10999/how-to-manually-update-ios-4-0-on-iphoneipod-touch-now.htm</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/1351547043730306322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/1351547043730306322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1351547043730306322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1351547043730306322'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2011/04/iphone-update.html' title='iphone update'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-7554933622491381328</id><published>2011-02-15T07:39:00.001-08:00</published><updated>2011-02-15T07:40:25.039-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ipa apple appcelerator"/><title type='text'>Creating your own IPA file from appcelerator</title><content type='html'>Build the app using the distribution build mode of Titantium&lt;br /&gt;Navigate to the project&#39;s build &gt; iPhone &gt; Release-iphonesos folder&lt;br /&gt;If there is a *.ipa file as some get, just use it.&lt;br /&gt;Otherwise create a new folder at that level called Payload&lt;br /&gt;Move the project.app folder to inside the Payload folder&lt;br /&gt;Zip the Payload folder&lt;br /&gt;Rename project.zip to project.ipa</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/7554933622491381328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/7554933622491381328' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/7554933622491381328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/7554933622491381328'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2011/02/creating-your-own-ipa-file-from_15.html' title='Creating your own IPA file from appcelerator'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-8153401734866813976</id><published>2011-02-15T07:39:00.000-08:00</published><updated>2011-02-15T07:40:23.119-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ipa apple appcelerator"/><title type='text'>Creating your own IPA file from appcelerator</title><content type='html'>Build the app using the distribution build mode of Titantium&lt;br /&gt;Navigate to the project&#39;s build &gt; iPhone &gt; Release-iphonesos folder&lt;br /&gt;If there is a *.ipa file as some get, just use it.&lt;br /&gt;Otherwise create a new folder at that level called Payload&lt;br /&gt;Move the project.app folder to inside the Payload folder&lt;br /&gt;Zip the Payload folder&lt;br /&gt;Rename project.zip to project.ipa</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/8153401734866813976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/8153401734866813976' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/8153401734866813976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/8153401734866813976'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2011/02/creating-your-own-ipa-file-from.html' title='Creating your own IPA file from appcelerator'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-1944948442636429916</id><published>2010-12-29T19:41:00.000-08:00</published><updated>2010-12-29T19:43:54.012-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone ios development codesign error"/><title type='text'>iPhone SDK: Application failed codesign verification</title><content type='html'>Check the following:&lt;br /&gt;&lt;br /&gt;1. We are using release | device - during compilation, if you cannot select release then chances are configuration for arvm6 was not selected (we need to use standard)&lt;br /&gt;&lt;br /&gt;2. check that the codesign has distribution selected and not any other certs&lt;br /&gt;&lt;br /&gt;3. the release shoudl be at: Release-iphoneos&lt;br /&gt;&lt;br /&gt;4. if there is no popup that asks for permissions to do codesign, then chances are the setup is wrong some where.. for example the active executable is towards that of the iOS simulator and not for release. &lt;br /&gt;&lt;br /&gt;Aaron</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/1944948442636429916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/1944948442636429916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1944948442636429916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/1944948442636429916'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2010/12/iphone-sdk-application-failed-codesign.html' title='iPhone SDK: Application failed codesign verification'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2726349453288830783.post-2744288198390015131</id><published>2010-12-26T06:00:00.001-08:00</published><updated>2010-12-26T06:00:52.934-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql today date"/><title type='text'>Get today&#39;s date mysql</title><content type='html'>&quot;SELECT * FROM netl_hiscores WHERE DATE(scoreDateTime) = DATE(NOW())&quot;;</content><link rel='replies' type='application/atom+xml' href='http://aarontwc.blogspot.com/feeds/2744288198390015131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/2726349453288830783/2744288198390015131' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/2744288198390015131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2726349453288830783/posts/default/2744288198390015131'/><link rel='alternate' type='text/html' href='http://aarontwc.blogspot.com/2010/12/get-todays-date-mysql.html' title='Get today&#39;s date mysql'/><author><name>Aaron Tan</name><uri>http://www.blogger.com/profile/04471343458798099048</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>