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

<channel>
	<title>RAINMORE</title>
	<atom:link href="http://blog.rainmore.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rainmore.net</link>
	<description>It&#039;s about felix and serena</description>
	<lastBuildDate>Tue, 31 Jan 2012 05:29:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Install JDK 7 on Ubuntu</title>
		<link>http://blog.rainmore.net/2012/01/25/install-jdk-7-on-ubuntu/</link>
		<comments>http://blog.rainmore.net/2012/01/25/install-jdk-7-on-ubuntu/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 01:05:54 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=69</guid>
		<description><![CDATA[http://www.shinephp.com/install-jdk-7-on-ubuntu/ Task: Install JDK 7 on Ubuntu desktop. Problem 1: Java version 7 is not available from Ubuntu repositories for your Ubuntu version (prior to 11.10 Oneiric). You don’t see it neither via &#8220;Ubuntu Software Center&#8221; nor via &#8220;Synaptic Package Manager&#8221;. What to do: Download JDK 7 binaries from the official Java site. Problem 2: [...]]]></description>
			<content:encoded><![CDATA[<p>http://www.shinephp.com/install-jdk-7-on-ubuntu/</p>
<p>Task: Install JDK 7 on Ubuntu desktop.<br />
Problem 1: Java version 7 is not available from Ubuntu repositories for your Ubuntu version (prior to 11.10 Oneiric). You don’t see it neither via &#8220;Ubuntu Software Center&#8221; nor via &#8220;Synaptic Package Manager&#8221;.<br />
What to do: Download JDK 7 binaries from the official Java site.<br />
Problem 2: You are Debian/Ubuntu user and don’t see applicable .deb package.<br />
What to do: Again, download JDK 7 binaries from the official Java site, install and configure it manually.<br />
Step by step instructions to install and manual configure JDK 7 on the Ubuntu 10.04 LTS (the Lucid Lynx) desktop follow:<br />
- For my X64 Ubuntu 10.04 LTS Desktop installation I downloaded Linux x64 – Compressed Binary file named jdk-7-linux-x64.tar.gz.<br />
- Unpack it with command<br />
gzip -d jdk-7-linux-x64.tar.gz<br />
You will get jdk-7-linux-x64.tar file.<br />
- Extract files from tar archive with command<br />
tar -xvf jdk-7-linux-x64.tar<br />
JDK 7 package is extracted into ./jdk1.7.0 directory.<br />
- Move JDK 7 directory to place where it should be. Right, to the /usr/lib/jvm/jdk1.7.0 directory. Use this command for that<br />
sudo mv ./jdk1.7.0/ /usr/lib/jvm/jdk1.7.0<br />
- Execute this command<br />
sudo update-alternatives &#8211;config java<br />
to know under what number you will config you new Java installation. You will get output as:</p>
<p>$sudo update-alternatives –config java<br />
There are 2 choices for the alternative java (providing /usr/bin/java).</p>
<p>Selection Path Priority Status<br />
————————————————————<br />
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode<br />
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode<br />
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode</p>
<p>Press enter to keep the current choice[*], or type selection number:</p>
<p>Remember the last number and press enter to exit this utility.<br />
- Execute this command<br />
sudo update-alternatives &#8211;install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/jre/bin/java 3<br />
to add your new JDK 7 installation into alternatives list. I put 3 there as 2 was last number for my configuration. You should use your own number from the previous step increased by 1.<br />
- Execute this command<br />
sudo update-alternatives &#8211;config java.<br />
You will see output similar one below:<br />
$sudo update-alternatives –config java<br />
There are 3 choices for the alternative java (providing /usr/bin/java).</p>
<p>Selection Path Priority Status<br />
————————————————————<br />
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode<br />
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode<br />
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode<br />
3 /usr/lib/jvm/jdk1.7.0/jre/bin/java 3 manual mode</p>
<p>Press enter to keep the current choice[*], or type selection number: 3<br />
update-alternatives: using /usr/lib/jvm/jdk1.7.0/jre/bin/java to provide /usr/bin/java (java) in manual mode.</p>
<p>In case you have other answer from update-alternatives &#8211;config java command, e.g. ‘no alternatives for java’, try this command:<br />
sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk1.7.0/jre/bin/java 0</p>
<p>This will select needed java version in case you had not any previous java version installed before.</p>
<p>The job is done. Task is completed and work is finished. Just check version of your new JDK 7 installation typing this command java -version. You should see something like this:<br />
~$ java -version<br />
java version “1.7.0″<br />
Java(TM) SE Runtime Environment (build 1.7.0-b147)<br />
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode) </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2012/01/25/install-jdk-7-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile PHP4</title>
		<link>http://blog.rainmore.net/2012/01/18/compile-php4/</link>
		<comments>http://blog.rainmore.net/2012/01/18/compile-php4/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 03:58:03 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP4]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=67</guid>
		<description><![CDATA[CFLAGS="-I/usr/include/apr-1 -D_LARGEFILE64_SOURCE=1" ./configure --with-apxs2={where your apxs2 install} --with-mysql make make install this is the 3rd times in httpd.conf LoadModule php4_module /usr/lib/httpd/modules/libphp4.so SetHandler application/x-httpd-php]]></description>
			<content:encoded><![CDATA[<p><code>CFLAGS="-I/usr/include/apr-1 -D_LARGEFILE64_SOURCE=1" ./configure --with-apxs2={where your apxs2 install} --with-mysql</code><br />
<code>make</code><br />
<code>make install</code></p>
<p>this is the 3rd times </p>
<p>in httpd.conf<br />
<code><br />
LoadModule php4_module        /usr/lib/httpd/modules/libphp4.so<br />
<FilesMatch "\.ph(p[2-6]?|tml)$"><br />
    SetHandler application/x-httpd-php<br />
</FilesMatch><br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2012/01/18/compile-php4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora Apache Folder Permission</title>
		<link>http://blog.rainmore.net/2012/01/16/fedora-apache-folder-permission/</link>
		<comments>http://blog.rainmore.net/2012/01/16/fedora-apache-folder-permission/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 05:56:36 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache fedora]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=65</guid>
		<description><![CDATA[chcon -R -h -t httpd_sys_content_t /opt/sites/]]></description>
			<content:encoded><![CDATA[<p>chcon -R -h -t httpd_sys_content_t /opt/sites/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2012/01/16/fedora-apache-folder-permission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN</title>
		<link>http://blog.rainmore.net/2012/01/16/svn/</link>
		<comments>http://blog.rainmore.net/2012/01/16/svn/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 02:22:19 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=63</guid>
		<description><![CDATA[1. svn ignore svn propedit svn:ignore ./nbproject 2. svn create branch a. ﻿Note the current head revision svn info svn://server.com/svn/repository/trunk &#124; grep Revision b. Make a clean, remote copy of trunk into the branches folder. Name it something. We’ll call it your_branch: svn cp svn://server.com/svn/repository/trunk svn://server.com/svn/repository/branches/your_branch -m &#8220;Branching from trunk to your_branch at HEAD_REVISION&#8221; c. [...]]]></description>
			<content:encoded><![CDATA[<p>1. svn ignore<br />
svn propedit svn:ignore ./nbproject</p>
<p>2. svn create branch<br />
a. ﻿Note the current head revision</p>
<p>    svn info svn://server.com/svn/repository/trunk | grep Revision</p>
<p>b. Make a clean, remote copy of trunk into the branches folder. Name it something. We’ll call it your_branch:</p>
<p>    svn cp svn://server.com/svn/repository/trunk svn://server.com/svn/repository/branches/your_branch -m &#8220;Branching from trunk to your_branch at HEAD_REVISION&#8221;</p>
<p>c. switch your local checkout to point to the new branch (this will not overwrite your changes):</p>
<p>	svn switch svn://server.com/svn/repository/branches/your_branch .</p>
<p>d. Check that your local checkout is definitely now your_branch, and that you can update ok:</p>
<p>	svn info | grep URL<br />
	svn up</p>
<p>3. updateing the branch</p>
<p>a. First, update your branch checkout and commit any outstanding changes.<br />
b. Search the Subversion log to see at what revision number you last merged the changes (or when the original branch was made, if you’ve never merged). This is critical for making a successful merge</p>
<p>	svn log &#8211;limit 500 | grep -B 3 your_branch</p>
<p>c. Also note the current head revision:</p>
<p>	svn info svn://server.com/svn/repository/trunk | grep Revision</p>
<p>d. Merge the difference of the last merged revision on trunk and the head revision on trunk into the your_branch working copy:</p>
<p>	svn merge -r LAST_MERGED_REVISION:HEAD_REVISION svn://server.com/svn/repository/trunk .</p>
<p>	Replace LAST_MERGED_REVISION with the revision number you noted in step b, and HEAD_REVISION with the revision number you noted in step c.<br />
	Now look for errors in the output. Could all files be found? Did things get deleted that shouldn’t have been? Maybe you did it wrong. If you need to revert, run svn revert -R *.</p>
<p>e. Otherwise, if things seem ok, check for conflicts:</p>
<p>	svn status | egrep &#8216;^C|^.C&#8217;</p>
<p>	Resolve any conflicts. Make sure the application starts and the tests pass.</p>
<p>f. commit your merge.</p>
<p>	svn ci -m &#8220;Merged changes from trunk to your_branch: COMMAND&#8221;</p>
<p>	Replace COMMAND with the exact command contents from step 4. </p>
<p>4 folding the branch back into trunk</p>
<p>Hey, your_branch is done! Now it has to become trunk, so everyone will use it and see how awesome it is.</p>
<p>This only happens once per branch.</p>
<p>a. First, follow every step in the previous section (“updating the branch”) so that your_branch is in sync with any recent changes on trunk.</p>
<p>b. Delete trunk completely:</p>
<p>	svn del svn://server.com/svn/repository/trunk</p>
<p>c. Move your_branch onto the old trunk location:</p>
<p>	svn mv svn://server.com/svn/repository/branches/your_branch svn://server.com/svn/repository/trunk</p>
<p>d. Relocate your working copy back to trunk:</p>
<p>	svn switch &#8211;relocate svn://server.com/svn/repository/branches/your_branch svn://server.com/svn/repository/trunk</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2012/01/16/svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Reflection</title>
		<link>http://blog.rainmore.net/2011/12/08/php-reflection/</link>
		<comments>http://blog.rainmore.net/2011/12/08/php-reflection/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 03:08:36 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=57</guid>
		<description><![CDATA[http://blog.roodo.com/rocksaying/archives/10657709.html]]></description>
			<content:encoded><![CDATA[<p>http://blog.roodo.com/rocksaying/archives/10657709.html</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2011/12/08/php-reflection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GIT Group Permission</title>
		<link>http://blog.rainmore.net/2011/10/08/git-group-permission/</link>
		<comments>http://blog.rainmore.net/2011/10/08/git-group-permission/#comments</comments>
		<pubDate>Sat, 08 Oct 2011 12:11:43 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[GIT]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=60</guid>
		<description><![CDATA[http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html cd repository.git sudo chmod -R g+ws * sudo chgrp -R mygroup * git repo-config core.sharedRepository true]]></description>
			<content:encoded><![CDATA[<p>http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html</p>
<p>cd repository.git</p>
<p>sudo chmod -R g+ws *<br />
sudo chgrp -R mygroup *</p>
<p>git repo-config core.sharedRepository true</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2011/10/08/git-group-permission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Firefox profile error</title>
		<link>http://blog.rainmore.net/2011/09/17/fix-firefox-profile-error/</link>
		<comments>http://blog.rainmore.net/2011/09/17/fix-firefox-profile-error/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 07:08:25 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=54</guid>
		<description><![CDATA[sudo chown -R `id -un`:`id -gn` ~]]></description>
			<content:encoded><![CDATA[<p><code>sudo chown -R `id -un`:`id -gn` ~</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2011/09/17/fix-firefox-profile-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac Lion  x64bit Install Python Mysql on python2.7</title>
		<link>http://blog.rainmore.net/2011/09/03/mac-lion-x64bit-install-python-mysql-on-python2-7/</link>
		<comments>http://blog.rainmore.net/2011/09/03/mac-lion-x64bit-install-python-mysql-on-python2-7/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 23:27:29 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[python2.7]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=51</guid>
		<description><![CDATA[I&#8217;ve been struggling with installation of Python Mysql. Here is my setup procedure. Install Mysql 5.5.15 x32 first In ~/.bash_profile, add # let python run as 32 bit export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/ export VERSIONER_PYTHON_PREFER_64_BIT=no export VERSIONER_PYTHON_PREFER_32_BIT=yes then, defaults write com.apple.versioner.python Prefer-32-Bit -bool yes Download MySQL_python-1.2.3-py2.7 ARCHFLAGS=&#8217;-arch i386&#8242; python setup.py build sudo ARCHFLAGS=&#8217;-arch i386&#8242; python setup.py instal All [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been struggling with installation of Python Mysql.</p>
<p>Here is my setup procedure.</p>
<p>Install Mysql 5.5.15 x32 first</p>
<p>In ~/.bash_profile, add<br />
 # let python run as 32 bit<br />
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/<br />
export VERSIONER_PYTHON_PREFER_64_BIT=no<br />
export VERSIONER_PYTHON_PREFER_32_BIT=yes</p>
<p>then,<br />
defaults write com.apple.versioner.python Prefer-32-Bit -bool yes</p>
<p>Download MySQL_python-1.2.3-py2.7<br />
ARCHFLAGS=&#8217;-arch i386&#8242; python setup.py build<br />
sudo ARCHFLAGS=&#8217;-arch i386&#8242; python setup.py instal</p>
<p>All done</p>
<p>My Question is that should python mysql itself provide better solution for the installation? Anyway, it&#8217;s open source.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2011/09/03/mac-lion-x64bit-install-python-mysql-on-python2-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change File Permission In Command Line</title>
		<link>http://blog.rainmore.net/2011/06/24/change-file-permission-in-command-line/</link>
		<comments>http://blog.rainmore.net/2011/06/24/change-file-permission-in-command-line/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 14:12:16 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=49</guid>
		<description><![CDATA[Find all file in the giving folder and change the permission to 644 find /path/to/apache -type f -print0 &#124; xargs -I {} -0 chmod 0644 {} Find all folder in the giving folder and change the permission to 755 find /path/to/apache -type d -print0 &#124; xargs -I {} -0 chmod 0755 {}]]></description>
			<content:encoded><![CDATA[<p>Find all file in the giving folder and change the permission to 644<br />
<code>find /path/to/apache -type f -print0 | xargs -I {} -0 chmod 0644 {}</code></p>
<p>Find all folder in the giving folder and change the permission to 755<br />
<code>find /path/to/apache -type d -print0 | xargs -I {} -0 chmod 0755 {}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2011/06/24/change-file-permission-in-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Ignore File Permission</title>
		<link>http://blog.rainmore.net/2011/05/19/git-ignore-file-permission/</link>
		<comments>http://blog.rainmore.net/2011/05/19/git-ignore-file-permission/#comments</comments>
		<pubDate>Thu, 19 May 2011 00:13:05 +0000</pubDate>
		<dc:creator>Felix</dc:creator>
				<category><![CDATA[GIT]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://blog.rainmore.net/?p=45</guid>
		<description><![CDATA[git config core.fileMode false]]></description>
			<content:encoded><![CDATA[<p><code><br />
git config core.fileMode false<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rainmore.net/2011/05/19/git-ignore-file-permission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

