<?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-2861349902435629855</id><updated>2024-10-08T13:12:01.539-07:00</updated><category term="git"/><category term="Mac OS Lion"/><category term="CentOS"/><category term="MacPorts"/><category term="Python"/><category term="Ubuntu"/><category term="XCode"/><category term="git command"/><category term="App Engine"/><category term="Cloud"/><category term="GAE"/><category term="Linus"/><category term="Mac OS"/><category term="OpenSSH"/><category term="PHP"/><category term="Pyramid"/><category term="Udacity"/><category term="c programming"/><category term="ftp"/><category term="git hub"/><category term="vsftpd"/><category term="yii"/><title type='text'>GenesisK</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><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>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2861349902435629855.post-6063794209695336007</id><published>2014-01-07T22:11:00.002-08:00</published><updated>2014-01-07T22:11:12.600-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git command"/><title type='text'>Git: Revert all modified files</title><content type='html'>This command comes in handy when you uploaded the same files from Windows machine to Linux machine...etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Revert changes to modified files.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
git reset --hard&lt;/blockquote&gt;
&lt;br /&gt;
# Remove all untracked files and directories.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
git clean -fd&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;Thanks to &lt;a href=&quot;http://stackoverflow.com/questions/5807137/git-how-to-revert-uncommitted-changes-including-files-and-folders&quot; target=&quot;_blank&quot;&gt;this post&lt;/a&gt; on StackOverflow</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/6063794209695336007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2014/01/git-revert-all-modified-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6063794209695336007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6063794209695336007'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2014/01/git-revert-all-modified-files.html' title='Git: Revert all modified files'/><author><name>Unknown</name><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-2861349902435629855.post-4517227611897997110</id><published>2014-01-07T15:29:00.003-08:00</published><updated>2014-01-07T15:29:27.863-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="git command"/><title type='text'>Git: Hide permission change in git diff command</title><content type='html'>So here is the problem.&lt;br /&gt;
When I change the permission of a folder recursively, when I type git diff, I see so much changes on permission changes that I cannot see where the new files and the modifications on files I had made.&lt;br /&gt;
&lt;br /&gt;
So here&#39;s a simple command you can use to hide permission changes in diff command.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
git config core.filemode false&lt;/blockquote&gt;
&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/4517227611897997110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2014/01/git-hide-permission-change-in-git-diff.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/4517227611897997110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/4517227611897997110'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2014/01/git-hide-permission-change-in-git-diff.html' title='Git: Hide permission change in git diff command'/><author><name>Unknown</name><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-2861349902435629855.post-6073104326264543297</id><published>2012-11-03T15:31:00.001-07:00</published><updated>2012-11-03T15:31:39.782-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="App Engine"/><category scheme="http://www.blogger.com/atom/ns#" term="Cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="GAE"/><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><category scheme="http://www.blogger.com/atom/ns#" term="Udacity"/><title type='text'>Best Learning Resource for Google App Engine</title><content type='html'>For some, programming and technology comes naturally, for others, learning something new is difficult.&lt;br /&gt;
&lt;br /&gt;
Maybe I fall in the latter part but that doesn&#39;t mean we don&#39;t have the potential as the gifted ones.&lt;br /&gt;
&lt;br /&gt;
Anyways, I found getting into developing for Google App Engine was somewhat difficult for me.&lt;br /&gt;
Especially because of the database structure not being RDBMS.&lt;br /&gt;
&lt;br /&gt;
So far, I found &lt;a href=&quot;http://www.udacity.com/overview/Course/cs253/CourseRev/apr2012&quot;&gt;Udacity CS253&lt;/a&gt;(Web Development) a great learning resource.&lt;br /&gt;
&lt;br /&gt;
Definitely, I encourage you to have a look.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/6073104326264543297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/11/best-learning-resource-for-google-app.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6073104326264543297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6073104326264543297'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/11/best-learning-resource-for-google-app.html' title='Best Learning Resource for Google App Engine'/><author><name>Unknown</name><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-2861349902435629855.post-8490508074216136761</id><published>2012-03-28T06:51:00.000-07:00</published><updated>2012-03-28T06:51:25.805-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Accessing git repository using OpenSSH</title><content type='html'>I had a bit of trouble figuring this out but it&#39;s really simple and easy.&lt;br /&gt;
&lt;br /&gt;
Say, you have inside &lt;b&gt;~/.ssh/config&lt;/b&gt; the following&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;Host genesisk&lt;br /&gt;
HostName (ip address)&lt;br /&gt;
IdentityFile (private id_rsa directory)&lt;br /&gt;
User username&lt;br /&gt;
Port &amp;nbsp;portnumber&lt;/blockquote&gt;&lt;br /&gt;
Then,&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;git remote add origin genesisk:(path to git repo)&lt;/blockquote&gt;for example&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;git remote add origin genesisk:/var/www/git/myrepo.git&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/8490508074216136761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/accessing-git-repository-using-openssh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/8490508074216136761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/8490508074216136761'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/accessing-git-repository-using-openssh.html' title='Accessing git repository using OpenSSH'/><author><name>Unknown</name><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-2861349902435629855.post-6541767013807149898</id><published>2012-03-28T06:30:00.000-07:00</published><updated>2012-03-28T06:30:40.796-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Git - Setting up Git server on CentOS</title><content type='html'>After installing yum git-all&lt;br /&gt;
Here is the steps I had taken&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Make git directory and initialize&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;cd /var/html/&lt;br /&gt;
mkdir git&lt;br /&gt;
cd git&lt;br /&gt;
mkdir test.git&lt;br /&gt;
cd test.git&lt;br /&gt;
git --bare init --shared&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;2. Make developer group&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;/usr/sbin/groupadd developer&amp;nbsp;&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;3. Add user(hmkcreative) to developer group&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;usermod -G developer hmkcreative&lt;br /&gt;
chown root:developer -R .&lt;/blockquote&gt;&lt;blockquote&gt;ls -la&lt;br /&gt;
total 40&lt;br /&gt;
drwxrwsr-x 7 root developer 4096 Mar 20 10:55 .&lt;br /&gt;
drwxr-x--- 4 root root      4096 Mar 20 10:55 ..&lt;br /&gt;
drwxrwsr-x 2 root developer 4096 Mar 20 10:55 branches&lt;br /&gt;
-rw-rw-r-- 1 root developer  126 Mar 20 10:55 config&lt;br /&gt;
-rw-rw-r-- 1 root developer   73 Mar 20 10:55 description&lt;br /&gt;
-rw-rw-r-- 1 root developer   23 Mar 20 10:55 HEAD&lt;br /&gt;
drwxrwsr-x 2 root developer 4096 Mar 20 10:55 hooks&lt;br /&gt;
drwxrwsr-x 2 root developer 4096 Mar 20 10:55 info&lt;br /&gt;
drwxrwsr-x 4 root developer 4096 Mar 20 10:55 objects&lt;br /&gt;
drwxrwsr-x 4 root developer 4096 Mar 20 10:55 refs&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
That is it&lt;br /&gt;
Now, from client side&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;cd /hmk/git/test&lt;br /&gt;
git init&lt;br /&gt;
git add.&lt;br /&gt;
git commit -a -m &quot;first commit&quot;&lt;br /&gt;
git push origin master&lt;/blockquote&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;git remote add origin ssh://(username)@(servername)/var/www/git/test.git&lt;br /&gt;
git push origin master&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/6541767013807149898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-setting-up-git-server-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6541767013807149898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6541767013807149898'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-setting-up-git-server-on-centos.html' title='Git - Setting up Git server on CentOS'/><author><name>Unknown</name><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-2861349902435629855.post-6976024185662409951</id><published>2012-03-26T00:02:00.001-07:00</published><updated>2012-03-26T00:06:10.739-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS Lion"/><category scheme="http://www.blogger.com/atom/ns#" term="MacPorts"/><category scheme="http://www.blogger.com/atom/ns#" term="XCode"/><title type='text'>Mac OS X Lion MacPorts xcodebuild exists but failed to execute error</title><content type='html'>&lt;a href=&quot;http://stackoverflow.com/questions/9323738/unable-to-get-macport-functionality-after-installing-xcode-4-3&quot;&gt;This post&lt;/a&gt; from helped me a million&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://trac.macports.org/wiki/Migration&quot;&gt;MacPorts migration instructions for Xcode 4.3&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Basically &lt;br /&gt;
&lt;br /&gt;
1. Since XCode is now downloaded from AppStore, it is under Applications&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;xcode-select -switch /Applications/Xcode.app&lt;/b&gt;&lt;/blockquote&gt;&lt;br /&gt;
The, follow the instruction from migration guide&lt;br /&gt;
2. Save the list of installed ports:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;port -qv installed &amp;gt; myports.txt&lt;/b&gt;&lt;/blockquote&gt;3. Uninstall all installed ports:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;sudo port -fp uninstall --follow-dependents installed&lt;/b&gt;&lt;/blockquote&gt;4. Clean any partially-completed builds:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;sudo port clean all&lt;/b&gt;&lt;/blockquote&gt;5. Browse myports.txt and install the ports that you actually want to use (as opposed to those that are only needed as dependencies) one by one, remembering to specify the appropriate variants:&lt;br /&gt;
&lt;blockquote&gt;&lt;b&gt;sudo port install portname +variant1 +variant2 …&lt;/b&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/6976024185662409951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/mac-os-x-lion-macports-xcodebuild.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6976024185662409951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6976024185662409951'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/mac-os-x-lion-macports-xcodebuild.html' title='Mac OS X Lion MacPorts xcodebuild exists but failed to execute error'/><author><name>Unknown</name><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-2861349902435629855.post-8985680734857501492</id><published>2012-03-25T21:24:00.002-07:00</published><updated>2012-03-25T21:24:33.304-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS Lion"/><category scheme="http://www.blogger.com/atom/ns#" term="MacPorts"/><title type='text'>When Upgrading from Snow Leopard to Lion (for developers)</title><content type='html'>Make sure you do the following&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;xcode-select -switch /Applications/Xcode.app&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/8985680734857501492/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/when-upgrading-from-snow-leopard-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/8985680734857501492'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/8985680734857501492'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/when-upgrading-from-snow-leopard-to.html' title='When Upgrading from Snow Leopard to Lion (for developers)'/><author><name>Unknown</name><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-2861349902435629855.post-2581229631093486143</id><published>2012-03-25T19:09:00.001-07:00</published><updated>2012-03-25T19:12:22.588-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS Lion"/><category scheme="http://www.blogger.com/atom/ns#" term="MacPorts"/><title type='text'>MacPorts Update Command</title><content type='html'>Just open the Terminal and type the following&lt;br /&gt;
&lt;blockquote&gt;sudo port selfupdate&lt;/blockquote&gt;&lt;br /&gt;
Then, run the following&lt;br /&gt;
&lt;blockquote&gt;sudo port upgrade outdated&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/2581229631093486143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/macports-update-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/2581229631093486143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/2581229631093486143'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/macports-update-command.html' title='MacPorts Update Command'/><author><name>Unknown</name><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-2861349902435629855.post-660257880802648378</id><published>2012-03-25T15:11:00.000-07:00</published><updated>2012-03-25T15:11:39.499-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c programming"/><category scheme="http://www.blogger.com/atom/ns#" term="XCode"/><title type='text'>Mac OS X Lion -bash: gcc: command not found</title><content type='html'>I finally switched to Mac OS X Lion several days ago.&lt;br /&gt;
Then, I installed XCode 4.3.1. from AppStore.&lt;br /&gt;
&lt;br /&gt;
I wanted to relearn C programming.&lt;br /&gt;
So I created a hello.c file and typed gcc hello.c.&lt;br /&gt;
Then, I got gcc: command not found.&lt;br /&gt;
&lt;br /&gt;
I found out that I had to&lt;br /&gt;
1. Start XCode&lt;br /&gt;
2. In the menu, go to XCode -&gt; Preferences -&gt; Downloads&lt;br /&gt;
3. Install Command Line Tools&lt;br /&gt;
&lt;br /&gt;
Go back to the Terminal and type in gcc -v</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/660257880802648378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/mac-os-x-lion-bash-gcc-command-not.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/660257880802648378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/660257880802648378'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/mac-os-x-lion-bash-gcc-command-not.html' title='Mac OS X Lion -bash: gcc: command not found'/><author><name>Unknown</name><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-2861349902435629855.post-3281576134690413326</id><published>2012-03-21T22:11:00.002-07:00</published><updated>2012-03-22T16:48:46.030-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS Lion"/><title type='text'>How to show root directory on Mac OS X Lion</title><content type='html'>Today, I upgraded my operating system from Snow Leopard to Lion.&lt;br /&gt;
&lt;br /&gt;
First thing I noticed was that when I open Finder, I did not see the root directory (MachintoshHD) under Favorites.&lt;br /&gt;
&lt;br /&gt;
So I googled some ways but in the end, this is what I did.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Open Finder&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Type Command+Up until you go to the top directory.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. Drag MachintoshHD or whatever your hard drive is called to the left hand FAVORITES&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4. DROP!&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Then, you should be able to access root directory easily.&lt;br /&gt;
&lt;br /&gt;
Different Approach&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Command  + Shift + G&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Type &#39;/&#39;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/3281576134690413326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/how-to-show-root-directory-on-mac-os-x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/3281576134690413326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/3281576134690413326'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/how-to-show-root-directory-on-mac-os-x.html' title='How to show root directory on Mac OS X Lion'/><author><name>Unknown</name><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-2861349902435629855.post-4144045529492887521</id><published>2012-03-19T18:52:00.000-07:00</published><updated>2012-03-19T18:52:22.171-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac OS"/><category scheme="http://www.blogger.com/atom/ns#" term="yii"/><title type='text'>Git - Yii projects on Mac OS</title><content type='html'>I have a php project that is not version controlled.&lt;br /&gt;
So I have set up a git repo.&lt;br /&gt;
&lt;br /&gt;
Now on my local computer, I go to the project root file.&lt;br /&gt;
I want to set up this project as git repo but want it to ignore some folders like /temp&lt;br /&gt;
&lt;br /&gt;
1. Set the project as a git repo&lt;br /&gt;
&lt;blockquote&gt;$ git init&lt;/blockquote&gt;&lt;br /&gt;
Then, .git file is created.&lt;br /&gt;
&lt;br /&gt;
Now, I create .gitignore&lt;br /&gt;
&lt;blockquote&gt;$ touch .gitignore&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Open .gitignore&lt;br /&gt;
&lt;blockquote&gt;$ vi .gitignore&lt;/blockquote&gt;Then, add the following to the .gitignore&lt;br /&gt;
&lt;blockquote&gt;# ignore yii specific folders&lt;br /&gt;
assets/&lt;br /&gt;
protected/runtime/&lt;br /&gt;
themes/classic/views/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# generic files to ignore&lt;br /&gt;
*~&lt;br /&gt;
~.lock&lt;br /&gt;
~.DS_Store&lt;br /&gt;
~.swp&lt;br /&gt;
~.out&lt;/blockquote&gt;&lt;br /&gt;
Add files to the repository&lt;br /&gt;
&lt;blockquote&gt;git add .&lt;/blockquote&gt;Make sure .gitignore worked&lt;br /&gt;
&lt;blockquote&gt;git status&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/4144045529492887521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-yii-projects-on-mac-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/4144045529492887521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/4144045529492887521'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-yii-projects-on-mac-os.html' title='Git - Yii projects on Mac OS'/><author><name>Unknown</name><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-2861349902435629855.post-8676643715280543941</id><published>2012-03-19T15:25:00.000-07:00</published><updated>2012-03-19T15:25:35.670-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CentOS"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenSSH"/><title type='text'>Setting up OpenSSH on CentOS</title><content type='html'>Here is the official wiki&lt;br /&gt;
&lt;br /&gt;
Everything about SSH configuration is written in &lt;b&gt;/etc/ssh/sshd_config&lt;/b&gt; file&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Generate public and private key&lt;/b&gt;&lt;br /&gt;
On MacOS &lt;br /&gt;
&lt;blockquote&gt;ssh-keygen -t rsa&lt;/blockquote&gt;&lt;br /&gt;
It will create id_rsa &amp; id_rsa.pub files&lt;br /&gt;
Under /Users/(computer name)/&lt;br /&gt;
You should find config file.&lt;br /&gt;
If not, create one.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;Host hmkserversman&lt;br /&gt;
HostName IP address&lt;br /&gt;
IdentityFile (id_rsa path)&lt;br /&gt;
User (username)&lt;br /&gt;
Port (port name)&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Copy public key to server&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;scp -P [port number] id_rsa.pub username@servername:/home/username/.ssh &lt;br /&gt;
cat .ssh/id_rsa.pub &gt;&gt; /home/username/.ssh/authorized_keys&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;3. Change file permission&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;$ chmod 700 ~/.ssh&lt;br /&gt;
$ chmod 600 ~/.ssh/authorized_keys&lt;/blockquote&gt;&lt;br /&gt;
&lt;b&gt;4. Change Config File&lt;/b&gt;&lt;br /&gt;
&lt;blockquote&gt;# Disable password authentication forcing use of keys&lt;br /&gt;
PasswordAuthentication no&lt;/blockquote&gt;&lt;br /&gt;
# Disable password authentication forcing use of keys&lt;br /&gt;
PasswordAuthentication no</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/8676643715280543941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/setting-up-openssh-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/8676643715280543941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/8676643715280543941'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/setting-up-openssh-on-centos.html' title='Setting up OpenSSH on CentOS'/><author><name>Unknown</name><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-2861349902435629855.post-6357884995350248450</id><published>2012-03-13T06:53:00.000-07:00</published><updated>2012-03-13T06:53:22.837-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Detecting Smartphone/Mobile device with PHP</title><content type='html'>Basically, there are three steps.&lt;br /&gt;
1. Detect User Agent&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$_SERVER[&#39;HTTP_USER_AGENT&#39;];&lt;/blockquote&gt;2. Define Mobile Device User Agent&lt;br /&gt;
Define array of words that would be included in User Agent that are sent from mobile devices like &#39;Android&#39; or &#39;iPhone&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$mobileUA = array(&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;Android&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;BlackBerry&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;DoCoMo&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;iPod&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;iPhone&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;);&lt;/blockquote&gt;&lt;br /&gt;
3. Mach and compare them&lt;br /&gt;
Here is the whole code to detect mobile device&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;function isMobile() {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;$mobileUA = array(&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;Android&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;AvantGo&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;BlackBerry&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;DoCoMo&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;iPod&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;iPhone&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;J2ME&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;MIDP&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;NetFront&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;Nokia&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;Opera Mini&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;PalmOS&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;PalmSource&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;portalmmm&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;Plucker&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;ReqwirelessWeb&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;SonyEricsson&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;Symbian&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;UP\.Browser&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;webOS&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;Windows CE&#39;,&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&#39;Xiino&#39;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;);&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if (defined(&#39;REQUEST_MOBILE_UA&#39;)) {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$regex = &#39;/&#39; . REQUEST_MOBILE_UA . &#39;/i&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;} else {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;$regex = &#39;/&#39; . implode(&#39;|&#39;, $mobileUA) . &#39;/i&#39;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if (preg_match($regex, $_SERVER[&#39;HTTP_USER_AGENT&#39;])) {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;return true;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return false;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/6357884995350248450/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/detecting-smartphonemobile-device-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6357884995350248450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6357884995350248450'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/detecting-smartphonemobile-device-with.html' title='Detecting Smartphone/Mobile device with PHP'/><author><name>Unknown</name><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-2861349902435629855.post-3660877469665397922</id><published>2012-03-06T23:46:00.001-08:00</published><updated>2012-03-07T01:11:40.874-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Git command part 3 (Add files to branch and push it back to the remote server)</title><content type='html'>So I had some files I wanted to add to the repo.&lt;br /&gt;
&lt;br /&gt;
Right now, I have mater and branch1 on remote and master and branch1 in remote repo.&lt;br /&gt;
I&#39;m working on local branch1.&lt;br /&gt;
&lt;br /&gt;
I copied all the files to the git repo.&lt;br /&gt;
So to add all the files.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git add .&lt;/blockquote&gt;Now, I want to reflect the change on remote server too.&lt;br /&gt;
First check my remote repos, then push&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git remote&lt;br /&gt;
origin&lt;br /&gt;
$ git push origin branch1&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Now, new files are pushed to branch 1&lt;br /&gt;
&lt;br /&gt;
But....that&#39;s not what I want.&lt;br /&gt;
I want to reflect the change on remote master branch.&lt;br /&gt;
&lt;br /&gt;
To do that, you have to&lt;br /&gt;
1. merge local branch1 to local master&lt;br /&gt;
2. push local master to remote master&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
but I want all the files to show up in master branch&lt;br /&gt;
&lt;br /&gt;
Now, I want to merge the change to the original master branch&lt;br /&gt;
So let&#39;s do it&lt;br /&gt;
&lt;br /&gt;
1. check out local master branch and merge local branch1 to local master&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git checkout master&lt;br /&gt;
$ git merge branch1&lt;/blockquote&gt;2.&lt;br /&gt;
Then push local master to remote master&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git push origin master&lt;/blockquote&gt;Just for reference, check out how your git is configured&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git remote show origin&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/3660877469665397922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-command-part-3-add-files-to-branch.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/3660877469665397922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/3660877469665397922'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-command-part-3-add-files-to-branch.html' title='Git command part 3 (Add files to branch and push it back to the remote server)'/><author><name>Unknown</name><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-2861349902435629855.post-1244167325215090887</id><published>2012-03-06T08:03:00.000-08:00</published><updated>2012-03-06T08:03:12.438-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="git hub"/><title type='text'>Git command part 2 (Add local branch to repository)</title><content type='html'>How do I clone a repository?&lt;br /&gt;
&lt;br /&gt;
Step 1 &lt;br /&gt;
First, move to a directory where you want to download or clone the repository&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git clone git@github.com:hmkcreative/bootstrap-php.git&lt;/blockquote&gt;&lt;br /&gt;
Step 2&lt;br /&gt;
Let&#39;s make a new branch&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git branch branch1&lt;/blockquote&gt;&lt;br /&gt;
Let&#39;s see all the branches on local repo called branch1&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git branch branch1&lt;/blockquote&gt;&lt;br /&gt;
Check out the new branch&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ git checkout branch1&lt;/blockquote&gt;&lt;br /&gt;
See what remote repository you have right now.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$git remote&lt;br /&gt;
origin&lt;/blockquote&gt;&lt;br /&gt;
So now, you have only a branch called origin&lt;br /&gt;
Let&#39;s push &quot;branch1 &quot; to remote repo&lt;br /&gt;
Syntax&lt;br /&gt;
&lt;code&gt;$git push REMOTENAME BRANCHNAME&lt;/code&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$git push origin branch1&lt;/blockquote&gt;Now, see what it looks like on the remote server&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$git branch -a&lt;/blockquote&gt;or&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$git ls-remote&lt;/blockquote&gt;Need to go to bed for tonight.....</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/1244167325215090887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-command-part-2-add-local-branch-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/1244167325215090887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/1244167325215090887'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-command-part-2-add-local-branch-to.html' title='Git command part 2 (Add local branch to repository)'/><author><name>Unknown</name><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-2861349902435629855.post-7339751079375287428</id><published>2012-03-06T07:38:00.000-08:00</published><updated>2012-03-06T07:38:43.572-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>Git command part 1</title><content type='html'>As for my git experience, in my previous project, I was &lt;b&gt;forced &lt;/b&gt;to use git.&lt;br /&gt;
&lt;br /&gt;
Did I like it? YES. Was it confusing? YES.&lt;br /&gt;
&lt;br /&gt;
Well, I have been using SVN ever since I started programming for my living....and for fun.&lt;br /&gt;
&amp;nbsp;Anyhow, I didn&#39;t have trouble but certainly many things remained to be understood later.&lt;br /&gt;
As for SVN, I have always used GUI client.&lt;br /&gt;
&lt;br /&gt;
So here begins my journey to start learning git and using commandline at that!&lt;br /&gt;
&lt;br /&gt;
First off, I made a repository on git hub.&lt;br /&gt;
Please check out the project at https://github.com/hmkcreative/bootstrap-php&lt;br /&gt;
&lt;br /&gt;
Ok,, sorry for blabbing.</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/7339751079375287428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-command-part-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/7339751079375287428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/7339751079375287428'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/git-command-part-1.html' title='Git command part 1'/><author><name>Unknown</name><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-2861349902435629855.post-1484809930645897368</id><published>2012-03-02T19:45:00.000-08:00</published><updated>2012-03-02T19:45:32.146-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ftp"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="vsftpd"/><title type='text'>Installing FTP on Ubuntu server in 3 steps</title><content type='html'>1. Install vsftpd&lt;br /&gt;
&lt;blockquote&gt;$ sudo apt-get install vsftpd&lt;/blockquote&gt;&lt;br /&gt;
2. Configure vsftpd&lt;br /&gt;
&lt;blockquote&gt;$ sudo vi /etc/vsftpd.conf&lt;/blockquote&gt;&lt;br /&gt;
Make sure the following line is inserted or uncommented&lt;br /&gt;
&lt;blockquote&gt;local_enable=YES&lt;/blockquote&gt;&lt;br /&gt;
Allowing users to upload&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;write_enable=YES&lt;/blockquote&gt;&lt;br /&gt;
3. Restart service&lt;br /&gt;
&lt;blockquote&gt;$ sudo /etc/init.d/vsftpd restart&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/1484809930645897368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/installing-ftp-on-ubuntu-server-in-3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/1484809930645897368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/1484809930645897368'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/installing-ftp-on-ubuntu-server-in-3.html' title='Installing FTP on Ubuntu server in 3 steps'/><author><name>Unknown</name><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-2861349902435629855.post-6232791490441473413</id><published>2012-03-01T13:41:00.000-08:00</published><updated>2012-03-01T13:41:00.581-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="Linus"/><title type='text'>Git</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;Here is Linux talking on Git!&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/4XpnKHJAok8?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/6232791490441473413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/git.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6232791490441473413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/6232791490441473413'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/git.html' title='Git'/><author><name>Unknown</name><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-2861349902435629855.post-1659838136331101776</id><published>2012-03-01T04:33:00.001-08:00</published><updated>2012-03-01T04:46:56.633-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pyramid"/><category scheme="http://www.blogger.com/atom/ns#" term="Python"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Installing Python Pyramid with Apache2 on Ubuntu 11.04</title><content type='html'>Here&#39;s what I have done so far.&lt;br /&gt;
I have set up Ubuntu 11.04 server in Virtual Box.&lt;br /&gt;
I enabled OpenSSH and LAMP server during installation.&lt;br /&gt;
Nothing else.&lt;br /&gt;
&lt;br /&gt;
Now, I want to try out Python Pyramid framework.&lt;br /&gt;
I will show you the steps I have taken.&lt;br /&gt;
&lt;br /&gt;
1. Install build tools&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ sudo apt-get update&lt;br /&gt;
$ sudo apt-get upgrade&lt;br /&gt;
$ sudo apt-get install build-essential&lt;/blockquote&gt;2.Install mod_wsgi&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ sudo apt-get install libapache2-mod-wsgi&amp;nbsp;&lt;/blockquote&gt;3. Install easy_install&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ sudo apt-get install python-setuptools&lt;/blockquote&gt;4. Install virtualenv&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ sudo easy_install virtualenv&lt;/blockquote&gt;5. Move to a directory where you want to install the Virtual Python Environment&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ cd /home/hiro&lt;/blockquote&gt;5. Install&amp;nbsp;the Virtual Python Environment&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ virtualenv --no-site-packages env&lt;/blockquote&gt;&lt;br /&gt;
6. Installing Pyramid&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ cd env&lt;br /&gt;
$ ./bin/easy_install pyramid&lt;/blockquote&gt;7. Making a starter app&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$ ./bin/pcreate -s starter myapp&lt;br /&gt;
$ cd /myapp&lt;br /&gt;
&lt;div&gt;$ ../bin/python setup.py install&lt;br /&gt;
&lt;br /&gt;
8. Make pyramid.wsgi file under env&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;$ cd /home/hiro/env&lt;br /&gt;
$ vi pyramid.wsgi&lt;/blockquote&gt;Here is what you need to write&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;from pyramid.paster import get_app&lt;br /&gt;
application = get_app(&lt;br /&gt;
&amp;nbsp; &#39;/home/hiro/env/myapp/production.ini&#39;, &#39;main&#39;)&lt;/blockquote&gt;&lt;br /&gt;
9. Make the file readable&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;chmod 755 pyramid.wsgi&lt;/blockquote&gt;10. Now setting apache&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;$sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/pyramid&lt;br /&gt;
$sudo vi&amp;nbsp;/etc/apache2/sites-available/pyramid&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;Here is my pyramid file&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerAdmin webmaster@localhost&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ServerName &amp;nbsp;kawanos.org&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DocumentRoot /home/hiro/env&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Directory /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Options FollowSymLinks&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AllowOverride None&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;
# Use only 1 Python sub-interpreter. &amp;nbsp;Multiple sub-interpreters&lt;br /&gt;
# play badly with C extensions.&lt;br /&gt;
WSGIApplicationGroup %{GLOBAL}&lt;br /&gt;
WSGIPassAuthorization On&lt;br /&gt;
WSGIDaemonProcess pyramid user=hiro group=staff threads=4 \&lt;br /&gt;
&amp;nbsp; &amp;nbsp;python-path=/home/hiro/env/lib/python2.7/site-packages&lt;br /&gt;
WSGIScriptAlias /myapp /home/hiro/env/pyramid.wsgi&lt;br /&gt;
&amp;lt;Directory /home/hiro/env&amp;gt;&lt;br /&gt;
&amp;nbsp; WSGIProcessGroup pyramid&lt;br /&gt;
&amp;nbsp; Order allow,deny&lt;br /&gt;
&amp;nbsp; Allow from all&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Directory &quot;/usr/lib/cgi-bin&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AllowOverride None&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Order allow,deny&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Allow from all&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; ErrorLog ${APACHE_LOG_DIR}/error.log&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Possible values include: debug, info, notice, warn, error, crit,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # alert, emerg.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LogLevel warn&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CustomLog ${APACHE_LOG_DIR}/access.log combined&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Alias /doc/ &quot;/usr/share/doc/&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;Directory &quot;/usr/share/doc/&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Options Indexes MultiViews FollowSymLinks&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AllowOverride None&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Order deny,allow&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Deny from all&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Allow from 127.0.0.0/255.0.0.0 ::1/128&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;11. Enable pyramid, disable default and restart apache&lt;/div&gt;&lt;blockquote class=&quot;tr_bq&quot;&gt;$ sudo a2ensite pyramid&lt;br /&gt;
$ sudo a2dissite default&lt;br /&gt;
$sudo /etc/init.d/apache2 restart&lt;/blockquote&gt;&lt;div&gt;Now, you should be able to access with http://&amp;lt;ipaddress&amp;gt;/myapp&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
You should see the following page&lt;br /&gt;
&lt;img src=&quot;http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/_images/project.png&quot; width=&quot;400&quot;/&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://kawanos.blogspot.com/feeds/1659838136331101776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://kawanos.blogspot.com/2012/03/installing-python-pyramid-with-apache2.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/1659838136331101776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2861349902435629855/posts/default/1659838136331101776'/><link rel='alternate' type='text/html' href='http://kawanos.blogspot.com/2012/03/installing-python-pyramid-with-apache2.html' title='Installing Python Pyramid with Apache2 on Ubuntu 11.04'/><author><name>Unknown</name><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>3</thr:total></entry></feed>