<?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>CakePHP, CodeIgniter and Web Scaling</title>
	<atom:link href="http://cisight.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cisight.com</link>
	<description>Yodiaditya web researcher on PHP, Ubuntu, Big data, Web scaling</description>
	<lastBuildDate>Mon, 04 Jun 2012 15:33:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Run NodeJS with non-root / user permission using Runit in Ubuntu 12.04 Precise</title>
		<link>http://cisight.com/run-nodejs-with-non-root-user-permission-using-runit-in-ubuntu-12-04-precise/</link>
		<comments>http://cisight.com/run-nodejs-with-non-root-user-permission-using-runit-in-ubuntu-12-04-precise/#comments</comments>
		<pubDate>Mon, 07 May 2012 13:36:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[run nodejs in port 80 user permission]]></category>
		<category><![CDATA[run nodejs with non root permission in ubuntu]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=237</guid>
		<description><![CDATA[After leaving NodeJS about 6 month, I still hard to find articles who explain how to running NodeJS services in production mode. This is mean, running NodeJS services by user permission (not by root) and can automatically restart if crashed. &#8230; <a href="http://cisight.com/run-nodejs-with-non-root-user-permission-using-runit-in-ubuntu-12-04-precise/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After leaving NodeJS about 6 month, I still hard to find articles who explain how to running NodeJS services in production mode. This is mean, running NodeJS services by user permission (not by root) and can automatically restart if crashed. Well, this is not only for NodeJS cases, but you can also implement this solution for running Twisted services.</p>
<p>I use Ubuntu 12.04 Precise Pangolin at this guide. Don&#8217;t worry, it&#8217;s doesn&#8217;t have a big difference step with previous Ubuntu version. So, let start!<br />
<span id="more-237"></span><br />
<strong>1. Install Runit</strong><br />
<code>sudo apt-get install runit</code></p>
<p><strong>2. Install NodeJS</strong><br />
I strongly suggest to install NodeJS without root permission. For guide, please have a look to my another tutorial in :</p>
<p><strong>3. Configure runit</strong></p>
<p><code><br />
sudo chown ubuntu:ubuntu /etc/sv<br />
cd /etc/sv &#038;&#038; mkdir nodejs<br />
cd nodejs &#038;&#038; touch run<br />
</code></p>
<p>Now, we will edit &#8220;run&#8221; file by :</p>
<p><code><br />
#!/bin/sh<br />
exec 2>&#038;1<br />
exec chpst -U ubuntu:ubuntu runsvdir /home/ubuntu/service<br />
</code></p>
<p>So, what we doing is we will tell runit where the services that will be executed. At this example, i use &#8220;ubuntu&#8221; as my user. You can change it by your username.</p>
<p>Now, we try to create &#8220;service&#8221; folder in &#8220;/home/<user>&#8221;<br />
<code><br />
cd ~/<br />
mkdir service &#038;&#038; mkdir nodejs<br />
cd nodejs &#038;&#038; touch run<br />
</code></p>
<p>Then, we will edit &#8220;run&#8221; file to running our NodeJS application :</p>
<p><code><br />
#!/bin/sh<br />
exec sudo -i -u ubuntu /home/ubuntu/local/node/bin/node /var/yodi/obrool.com/app.js<br />
</code></p>
<p>At this example, I will run &#8220;node /location/myapp/<myapp-js>&#8220;. Remember to take fullpath of your node binary. For instance, &#8220;/home/ubuntu/local/node/bin/node&#8221; at this example. It&#8217;s depend on where your &#8220;node&#8221; binary installed.</p>
<p>Final steps, we just make symlinks from sv to services by :</p>
<p><code><br />
sudo ln -s /etc/sv/nodejs /etc/service/<br />
sudo chown -R ubuntu:ubuntu /etc/service/nodejs<br />
sudo chown -R ubuntu:ubuntu /etc/sv/nodejs<br />
</code></p>
<p>Let&#8217;s run it by :<br />
<code>sv start nodejs</code></p>
<p>If you check using &#8220;ps aux | grep node&#8221;<br />
<code><br />
root     17932  0.0  0.0    164     4 ?        Ss   13:16   0:00 runsv nodejs<br />
root     17934  0.0  0.0    164     4 ?        S    13:16   0:00 runsv nodejs<br />
root     17935  0.0  0.1  18996  1212 ?        S    13:16   0:00 sudo -i -u ubuntu /home/ubuntu/local/node/bin/node /var/yodi/obrool.com/app.js<br />
ubuntu   17936  0.2  1.4 642256 15180 ?        Sl   13:16   0:02 /home/ubuntu/local/node/bin/node /var/yodi/obrool.com/app.js<br />
ubuntu   18051  0.0  0.0   7964   876 pts/0    S+   13:35   0:00 grep --color=auto node<br />
</code></p>
<p>Yes, now NodeJS running by user &#8220;ubuntu&#8221; in pid 17936. It&#8217;s works!</p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/run-nodejs-with-non-root-user-permission-using-runit-in-ubuntu-12-04-precise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solve github ssh key Agent admitted failure to sign using the key. Permission denied (publickey).</title>
		<link>http://cisight.com/solve-github-ssh-key-agent-admitted-failure-to-sign-using-the-key-permission-denied-publickey/</link>
		<comments>http://cisight.com/solve-github-ssh-key-agent-admitted-failure-to-sign-using-the-key-permission-denied-publickey/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 02:13:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[github Agent admitted failure]]></category>
		<category><![CDATA[ubuntu github ssh Agent]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=234</guid>
		<description><![CDATA[Today, I change my ssh key and I see this error when pushing commit into my Github repository : Agent admitted failure to sign using the key. Permission denied (publickey). So, to solve this problem is pretty easy : ssh-add &#8230; <a href="http://cisight.com/solve-github-ssh-key-agent-admitted-failure-to-sign-using-the-key-permission-denied-publickey/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today, I change my ssh key and I see this error when pushing commit into my Github repository :</p>
<p><code><br />
Agent admitted failure to sign using the key.<br />
Permission denied (publickey).<br />
</code></p>
<p>So, to solve this problem is pretty easy :</p>
<p><code><br />
ssh-add ~/.ssh/id_rsa<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/solve-github-ssh-key-agent-admitted-failure-to-sign-using-the-key-permission-denied-publickey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to solve problem HFSplus OS X partition sharing as home partition in Ubuntu</title>
		<link>http://cisight.com/how-to-solve-problem-hfsplus-os-x-partition-sharing-as-home-partition-in-ubuntu/</link>
		<comments>http://cisight.com/how-to-solve-problem-hfsplus-os-x-partition-sharing-as-home-partition-in-ubuntu/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 14:07:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[solve hfsplus share partition in ubuntu]]></category>
		<category><![CDATA[the application launcher ".desktop" has not been marked as trusted]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=232</guid>
		<description><![CDATA[I have dual-OS in my Macbook Pro, OS X Leopard and Ubuntu Oneiric. I want to share partition between OS X and Ubuntu. I use hfplus partition (without journaled) as user home in Ubuntu Oneiric. Then the problem begin. When &#8230; <a href="http://cisight.com/how-to-solve-problem-hfsplus-os-x-partition-sharing-as-home-partition-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have dual-OS in my Macbook Pro, OS X Leopard and Ubuntu Oneiric. I want to share partition between OS X and Ubuntu. I use hfplus partition (without journaled) as user home in Ubuntu Oneiric. Then the problem begin.</p>
<p>When I adding launcher in Desktop (Ubuntu), it can&#8217;t be executed and throw error :</p>
<p><code><br />
the application launcher ".desktop" has not been marked as trusted. if you do not know the source of this file, launching it may be unsafe.<br />
</code> </p>
<p>After finding several articles, I try to change UID in this partition (/dev/sda3) into 501 :<br />
<a href="http://ubuntuforums.org/showthread.php?t=1751009">http://ubuntuforums.org/showthread.php?t=1751009</a>.</p>
<p>But it still doesn&#8217;t works. Using &#8220;chmod a+x&#8221; on *.desktop, chown ubuntu:ubuntu, allow permission in properties and another tricks giving no results.<br />
<span id="more-232"></span><br />
Then I realize that Ubuntu doesn&#8217;t allow any program in shared partition executable. I try to execute eclipse in my shared partition and give me permission denied.</p>
<p>Now, I have found the solution. First, install depedencies packages :</p>
<p><code>sudo apt-get install hfsplus hfsutils hfsprogs</code></p>
<p>Next, open your fstab by &#8220;sudo vim /etc/fstab&#8221; and add your share partition, in this case, I have /dev/sda3 as shared partition :</p>
<p><code><br />
/dev/sda3       /home/ubuntu    hfsplus         defaults        0       1<br />
</code></p>
<p>Reboot and you should have all program in shared partition executable and launcher desktop working now!</p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/how-to-solve-problem-hfsplus-os-x-partition-sharing-as-home-partition-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Copy Youtube FLV from Firefox in Ubuntu 12.04 Precise Pangolin</title>
		<link>http://cisight.com/copy-youtube-flv-from-firefox-in-ubuntu-12-04-precise-pangolin/</link>
		<comments>http://cisight.com/copy-youtube-flv-from-firefox-in-ubuntu-12-04-precise-pangolin/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 07:48:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[engine]]></category>
		<category><![CDATA[Copy Youtube FLV from Firefox in Ubuntu 12.04]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=229</guid>
		<description><![CDATA[Here is simple bash script to copy FLV Youtube into your folder in Ubuntu 12.04 Precise Pangolin. At this example, I put this script on home folder and create &#8220;Youtube&#8221; folder : cd ~/ mkdir Youtube vim u2tube.sh chmod a+x &#8230; <a href="http://cisight.com/copy-youtube-flv-from-firefox-in-ubuntu-12-04-precise-pangolin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is simple bash script to copy FLV Youtube into your folder in Ubuntu 12.04 Precise Pangolin. At this example, I put this script on home folder and create &#8220;Youtube&#8221; folder :</p>
<p><code><br />
cd ~/<br />
mkdir Youtube<br />
vim u2tube.sh<br />
chmod a+x u2tube.sh<br />
</code></p>
<p>u2tube.sh<br />
<code><br />
#! /bin/sh<br />
lsof -n -P | grep FlashXX | awk '{ print "/proc/" $2 "/fd/" substr($4, 1, length($4)-1) }' | while read f<br />
do<br />
    echo $f<br />
    cp $f /home/ubuntu/Youtube/`basename $f`-`date +%H:%s-%d-%m-%y`<br />
done<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/copy-youtube-flv-from-firefox-in-ubuntu-12-04-precise-pangolin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change font bold style of php HTML in Aptana Studio</title>
		<link>http://cisight.com/how-to-change-font-bold-style-in-php-of-php-html-in-aptana-studio/</link>
		<comments>http://cisight.com/how-to-change-font-bold-style-in-php-of-php-html-in-aptana-studio/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 08:12:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[configuration]]></category>
		<category><![CDATA[change bold html fonts aptana]]></category>
		<category><![CDATA[font bold style of php HTML in Aptana Studio]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=215</guid>
		<description><![CDATA[When opening HTML, CTP or another PHP-HTML files in Aptana Studio 3, i found that all using bold which is annoying for me. So, to make it to be normal fonts : 1. Go to Aptana Studio menu -> &#8220;Window &#8230; <a href="http://cisight.com/how-to-change-font-bold-style-in-php-of-php-html-in-aptana-studio/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When opening HTML, CTP or another PHP-HTML files in Aptana Studio 3, i found that all using bold which is annoying for me. So, to make it to be normal fonts :</p>
<p>1. Go to Aptana Studio menu -> &#8220;Window Menu&#8221;</p>
<p>2. Type &#8220;Themes&#8221; on left search box.</p>
<p>3. Find element &#8220;text.html.basic&#8221; and change it &#8220;Bold&#8221; style by click it.</p>
<p>4. Problem solved!</p>
<p><a href="http://cisight.com/wp-content/uploads/2012/02/Selection_062.png"><img src="http://cisight.com/wp-content/uploads/2012/02/Selection_062-300x185.png" alt="" title="Selection_062" width="300" height="185" class="alignnone size-medium wp-image-216" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/how-to-change-font-bold-style-in-php-of-php-html-in-aptana-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable TOR open for remote access with Polipo on Ubuntu</title>
		<link>http://cisight.com/how-to-enable-tor-open-for-remote-access-with-polipo-on-ubuntu/</link>
		<comments>http://cisight.com/how-to-enable-tor-open-for-remote-access-with-polipo-on-ubuntu/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 03:52:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[engine]]></category>
		<category><![CDATA[remote tor ip ubuntu]]></category>
		<category><![CDATA[TOR open for remote access with Polipo on Ubuntu]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=213</guid>
		<description><![CDATA[Tor usually installed and running on 127.0.0.1 port 9050 which it&#8217;s can&#8217;t be accessed from outside. We can open this local listen address TOR signed into IP network and run as HTTP Proxy with Polipo. FYI, I use Vagrant and &#8230; <a href="http://cisight.com/how-to-enable-tor-open-for-remote-access-with-polipo-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Tor usually installed and running on 127.0.0.1 port 9050 which it&#8217;s can&#8217;t be accessed from outside. We can open this local listen address TOR signed into IP network and run as HTTP Proxy with Polipo. FYI, I use Vagrant and running Ubuntu Oneiric on Guest. I install TOR in Vagrant guest and accessed it remote from Host (Ubuntu). Let we start with installing tor and polipo on Ubuntu :</p>
<p><code><br />
sudo apt-get install tor polipo nmap<br />
</code></p>
<p>After this installation, TOR should be running on localhost 9050. You can check it by scan using :<br />
<span id="more-213"></span><br />
<code>nmap localhost</code></p>
<p>Then, we should configure polipo configuration which located in &#8220;/etc/polipo&#8221;. Let&#8217;s open terminal and start configure:</p>
<p><code><br />
sudo cp /etc/polipo/config /etc/polipo/config.orig<br />
sudo vim /etc/polipo/config<br />
</code></p>
<p>And paste this configuration :</p>
<p><code><br />
### Basic configuration<br />
### *******************</p>
<p># Uncomment one of these if you want to allow remote clients to<br />
# connect:</p>
<p>proxyAddress = "::0"        # both IPv4 and IPv6<br />
# proxyAddress = "0.0.0.0"    # IPv4 only<br />
proxyPort = 8118</p>
<p># If you do that, you'll want to restrict the set of hosts allowed to<br />
# connect:</p>
<p># allowedClients = "127.0.0.1, 134.157.168.57"<br />
# allowedClients = "127.0.0.1, 134.157.168.0/24"</p>
<p>#allowedClients = 127.0.0.1, 33.33.33.11, 33.33.33.1<br />
#allowedPorts = 1-65535</p>
<p># Uncomment this if you want your Polipo to identify itself by<br />
# something else than the host name:</p>
<p>proxyName = "localhost"</p>
<p># Uncomment this if there's only one user using this instance of Polipo:</p>
<p>cacheIsShared = false</p>
<p># Uncomment this if you want to use a parent proxy:</p>
<p># parentProxy = "squid.example.org:3128"</p>
<p># Uncomment this if you want to use a parent SOCKS proxy:</p>
<p>socksParentProxy = "localhost:9050"<br />
socksProxyType = socks5</p>
<p>### Memory<br />
### ******</p>
<p># Uncomment this if you want Polipo to use a ridiculously small amount<br />
# of memory (a hundred C-64 worth or so):</p>
<p># chunkHighMark = 819200<br />
# objectHighMark = 128</p>
<p># Uncomment this if you've got plenty of memory:</p>
<p># chunkHighMark = 50331648<br />
# objectHighMark = 16384</p>
<p>chunkHighMark = 67108864</p>
<p>### On-disk data<br />
### ************</p>
<p># Uncomment this if you want to disable the on-disk cache:</p>
<p>diskCacheRoot = ""</p>
<p># Uncomment this if you want to put the on-disk cache in a<br />
# non-standard location:</p>
<p># diskCacheRoot = "~/.polipo-cache/"</p>
<p># Uncomment this if you want to disable the local web server:</p>
<p>localDocumentRoot = ""</p>
<p># Uncomment this if you want to enable the pages under /polipo/index?<br />
# and /polipo/servers?.  This is a serious privacy leak if your proxy<br />
# is shared.</p>
<p># disableIndexing = false<br />
# disableServersList = false</p>
<p>disableLocalInterface = true<br />
disableConfiguration = true</p>
<p>### Domain Name System<br />
### ******************</p>
<p># Uncomment this if you want to contact IPv4 hosts only (and make DNS<br />
# queries somewhat faster):<br />
#<br />
# dnsQueryIPv6 = no</p>
<p># Uncomment this if you want Polipo to prefer IPv4 to IPv6 for<br />
# double-stack hosts:<br />
#<br />
# dnsQueryIPv6 = reluctantly</p>
<p># Uncomment this to disable Polipo's DNS resolver and use the system's<br />
# default resolver instead.  If you do that, Polipo will freeze during<br />
# every DNS query:</p>
<p>dnsUseGethostbyname = yes</p>
<p>### HTTP<br />
### ****</p>
<p># Uncomment this if you want to enable detection of proxy loops.<br />
# This will cause your hostname (or whatever you put into proxyName<br />
# above) to be included in every request:</p>
<p>disableVia = true</p>
<p># Uncomment this if you want to slightly reduce the amount of<br />
# information that you leak about yourself:</p>
<p># censoredHeaders = from, accept-language<br />
# censorReferer = maybe</p>
<p>censoredHeaders = from,accept-language,x-pad,link<br />
censorReferer = maybe</p>
<p># Uncomment this if you're paranoid.  This will break a lot of sites,<br />
# though:</p>
<p># censoredHeaders = set-cookie, cookie, cookie2, from, accept-language<br />
# censorReferer = true</p>
<p># Uncomment this if you want to use Poor Man's Multiplexing; increase<br />
# the sizes if you're on a fast line.  They should each amount to a few<br />
# seconds' worth of transfer; if pmmSize is small, you'll want<br />
# pmmFirstSize to be larger.</p>
<p># Note that PMM is somewhat unreliable.</p>
<p># pmmFirstSize = 16384<br />
# pmmSize = 8192</p>
<p># Uncomment this if your user-agent does something reasonable with<br />
# Warning headers (most don't):</p>
<p># relaxTransparency = maybe</p>
<p># Uncomment this if you never want to revalidate instances for which<br />
# data is available (this is not a good idea):</p>
<p># relaxTransparency = yes</p>
<p># Uncomment this if you have no network:</p>
<p># proxyOffline = yes</p>
<p># Uncomment this if you want to avoid revalidating instances with a<br />
# Vary header (this is not a good idea):</p>
<p># mindlesslyCacheVary = true</p>
<p># Suggestions from Incognito configuration<br />
maxConnectionAge = 5m<br />
maxConnectionRequests = 120<br />
serverMaxSlots = 8<br />
serverSlots = 2<br />
tunnelAllowedPorts = 1-65535</p>
<p># Sample configuration file for Polipo. -*-sh-*-</p>
<p># You should not need to edit this configuration file; all configuration<br />
# variables have reasonable defaults.</p>
<p># This file only contains some of the configuration variables; see the<br />
# list given by ``polipo -v'' and the manual for more.<br />
</code></p>
<p>Save it with &#8220;:wq&#8221; (If use VIM for editor). Then we should restart both TOR and POLIPO services by :</p>
<p><code><br />
sudo service tor restart<br />
sudo service polipo restart<br />
</code></p>
<p>Now, you can access TOR proxy by &#8220;guest IP&#8221; and port &#8220;8118&#8243;. For instance, I have TOR installed on Vagrant VM with IP &#8220;33.33.33.11&#8243;. So, on host, I just change my firefox into HTTP_PROXY : 33.33.33.11:8118.</p>
<p>Great anonymous surfing from Vagrant! <img src='http://cisight.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/how-to-enable-tor-open-for-remote-access-with-polipo-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to login into HPCloud Instance and edit Security Group using Hybridfox</title>
		<link>http://cisight.com/how-to-login-into-hpcloud-instance-and-edit-security-group-using-hybridfox/</link>
		<comments>http://cisight.com/how-to-login-into-hpcloud-instance-and-edit-security-group-using-hybridfox/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 22:37:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[engine]]></category>
		<category><![CDATA[change security group hpcloud]]></category>
		<category><![CDATA[hybridfox hpcloud]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=204</guid>
		<description><![CDATA[Hybridfox is great tools for connecting with our cloud server. When you configure HPCloud server, then you should have this for manage your security groups and allowing several ports to be open. Because default group in HPCloud only allowing SSH &#8230; <a href="http://cisight.com/how-to-login-into-hpcloud-instance-and-edit-security-group-using-hybridfox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hybridfox is great tools for connecting with our cloud server. When you configure HPCloud server, then you should have this for manage your security groups and allowing several ports to be open. Because default group in HPCloud only allowing SSH port only.</p>
<p>I use the latest Firefox (10 and always updated through update-manager). Then you should download add-on for hybridfox and remember to pick the correct version &#8221; <strong>hybridfox-1.6.000112.xpi</strong> &#8221; on <a href="http://code.google.com/p/hybridfox/downloads/list">http://code.google.com/p/hybridfox/downloads/list</a>. Using another version may give error results.</p>
<p>Download and use &#8220;Open file&#8221; in Firefox to install this add-on. You should restart your Firefox and on &#8220;Tools&#8221; menu, you should see &#8220;HybridFox&#8221;. Don&#8217;t open it yet, because it will show pop-up. If you have, then you should cancel all confirmation box pop-up by Hybridfox.</p>
<p>Go to your HPCloud, Go to &#8220;<strong>Account</strong>&#8221; and select API Keys. I have two region here, but I pick the first one for example. Show access key and secret key &#8220;<strong>EC2 Compability</strong>&#8221; :</p>
<p><a href="http://cisight.com/wp-content/uploads/2012/02/Selection_058.png"><img src="http://cisight.com/wp-content/uploads/2012/02/Selection_058-300x171.png" alt="" title="Selection_058" width="300" height="171" class="alignnone size-medium wp-image-205" /></a></p>
<p>You should copy this both key into your text editor. Because when you open HybridFox, you can&#8217;t switch window.</p>
<p>Then open you Hybridfox, click on Region to add AZ-.</p>
<p>For instance, I add :<br />
<code></p>
<p>https://az-1.region-a.geo-1.ec2-compute.hpcloudsvc.com/services/Cloud/</p>
<p></code></p>
<p><a href="http://cisight.com/wp-content/uploads/2012/02/Selection_059.png"><img src="http://cisight.com/wp-content/uploads/2012/02/Selection_059-300x178.png" alt="" title="Selection_059" width="300" height="178" class="alignnone size-medium wp-image-206" /></a></p>
<p>Now, you can add your instance by click on Credentials :</p>
<p>You can insert your access key and secret key.</p>
<p><a href="http://cisight.com/wp-content/uploads/2012/02/Selection_060.png"><img src="http://cisight.com/wp-content/uploads/2012/02/Selection_060-300x162.png" alt="" title="Selection_060" width="300" height="162" class="alignnone size-medium wp-image-208" /></a></p>
<p>After connecting, go to Security Group<br />
Go to &#8220;<strong>Group permission</strong>&#8221; and click on check(V). Then you can fill it with what kind of port you will open for.</p>
<p><a href="http://cisight.com/wp-content/uploads/2012/02/Selection_061.png"><img src="http://cisight.com/wp-content/uploads/2012/02/Selection_061-300x236.png" alt="" title="Selection_061" width="300" height="236" class="alignnone size-medium wp-image-210" /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/how-to-login-into-hpcloud-instance-and-edit-security-group-using-hybridfox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solve double minibufexplorer opened in VIM</title>
		<link>http://cisight.com/solve-double-minibufexplorer-opened-in-vim/</link>
		<comments>http://cisight.com/solve-double-minibufexplorer-opened-in-vim/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 06:28:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[engine]]></category>
		<category><![CDATA[Solve double minibufexplorer vim]]></category>
		<category><![CDATA[vim minibufexplorer]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=192</guid>
		<description><![CDATA[When using Minibufexplorer in VIM, I usually use Fuzzfinder for opening files. But, somehow, I see double minibufexplorer window every open more than 2 files. To solve this issue : let g:miniBufExplorerMoreThanOne = 0 This will for miniBufExplorer into single &#8230; <a href="http://cisight.com/solve-double-minibufexplorer-opened-in-vim/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When using Minibufexplorer in VIM, I usually use Fuzzfinder for opening files. But, somehow, I see double minibufexplorer window every open more than 2 files. To solve this issue :</p>
<p><code><br />
let g:miniBufExplorerMoreThanOne = 0<br />
</code></p>
<p>This will for miniBufExplorer into single window only. Another VIM configuration that may useful, taken from <a href="http://dotfiles.org/~joaoTrindade/.vimrc">http://dotfiles.org/~joaoTrindade/.vimrc</a><br />
<span id="more-192"></span><br />
<code><br />
" Plugin related {{{1<br />
"#########################################</p>
<p>" Minibuffer{{{<br />
""""""""""""""""""""""""""""""<br />
"Show the miniBufExplorer from the start<br />
let g:miniBufExplorerMoreThanOne = 0</p>
<p>"Not using because I don't use the vertival window<br />
"Use a vertical windows<br />
"let g:miniBufExplVSplit = 5</p>
<p>"Put the miniBufExplorer windows at the right<br />
"let g:miniBufExplSplitBelow=1</p>
<p>"Maximum size of the mini buffer explorer window<br />
"let g:miniBufExplMaxSize = 15</p>
<p>"Still haven't discovered what it does<br />
"let g:miniBufExplMapWindowNavArrows = 1<br />
"let g:miniBufExplMapCTabSwitchBufs = 1<br />
"let g:miniBufExplUseSingleClick = 1<br />
"let g:miniBufExplMapWindowNavVim = 1<br />
"<br />
" make tabs show complete (no broken on two lines)<br />
let g:miniBufExplTabWrap = 1</p>
<p>" If you use other explorers like TagList you can (As of 6.2.8) set it at 1:<br />
let g:miniBufExplModSelTarget = 1</p>
<p>" If you would like to single click on tabs rather than double clicking on them to goto the selected buffer.<br />
let g:miniBufExplUseSingleClick = 1</p>
<p>"for buffers that have NOT CHANGED and are NOT VISIBLE.<br />
highlight MBENormal guifg=LightBlue</p>
<p>" for buffers that HAVE CHANGED and are NOT VISIBLE<br />
highlight MBEChanged guifg=Red</p>
<p>" buffers that have NOT CHANGED and are VISIBLE<br />
highlight MBEVisibleNormal term=bold cterm=bold gui=bold guifg=Green</p>
<p>" buffers that have CHANGED and are VISIBLE<br />
highlight MBEVisibleChanged term=bold cterm=bold gui=bold guifg=Green</p>
<p>let g:bufExplorerSortBy = "name"</p>
<p>autocmd BufRead,BufNew :call UMiniBufExplorer</p>
<p>"""""""""""""""""""""""""""""""""""<br />
" Stolen from http://dev.gentoo.org/~bass/configs/vimrc.html<br />
"<br />
" Adapt the status line accourding to the window<br />
"""""""""""""""""""""""""""""""""""<br />
if has("autocmd")<br />
    au FileType qf<br />
                \ if &#038;buftype == "quickfix" |<br />
                \     setlocal statusline=%2*%-3.3n%0* |<br />
                \     setlocal statusline+=\ \[Compiler\ Messages\] |<br />
                \     setlocal statusline+=%=%2*\ %<%P |<br />
                \ endif</p>
<p>    fun! FixMiniBufExplorerTitle()<br />
        if "-MiniBufExplorer-" == bufname("%")<br />
            setlocal statusline=%2*%-3.3n%0*<br />
            setlocal statusline+=\[Buffers\]<br />
            setlocal statusline+=%=%2*\ %<%P<br />
        endif<br />
    endfun</p>
<p>    au BufWinEnter *<br />
                \ let oldwinnr=winnr() |<br />
                \ windo call FixMiniBufExplorerTitle() |<br />
                \ exec oldwinnr . " wincmd w"<br />
endif<br />
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""}}}</p>
<p>" Showmarks {{{<br />
""""""""""""""""""""""""""""""<br />
if has("gui_running")<br />
    let g:showmarks_enable=1<br />
else<br />
    let g:showmarks_enable=0<br />
    let loaded_showmarks=1<br />
endif</p>
<p>let g:showmarks_include="abcdefghijklmnopqrstuvwxyz"</p>
<p>if has("autocmd")<br />
    fun! FixShowmarksColours()<br />
        if has('gui')<br />
            hi ShowMarksHLl gui=bold guifg=#a0a0e0 guibg=#2e2e2e<br />
            hi ShowMarksHLu gui=none guifg=#a0a0e0 guibg=#2e2e2e<br />
            hi ShowMarksHLo gui=none guifg=#a0a0e0 guibg=#2e2e2e<br />
            hi ShowMarksHLm gui=none guifg=#a0a0e0 guibg=#2e2e2e<br />
            hi SignColumn   gui=none guifg=#f0f0f8 guibg=#2e2e2e<br />
        endif<br />
    endfun<br />
    if v:version >= 700<br />
        autocmd VimEnter,Syntax,ColorScheme * call FixShowmarksColours()<br />
    else<br />
        autocmd VimEnter,Syntax * call FixShowmarksColours()<br />
    endif<br />
endif<br />
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""}}}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/solve-double-minibufexplorer-opened-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switch off ATI VGA in dual VGA with Intel on Ubuntu to solve overheat problem</title>
		<link>http://cisight.com/switch-off-ati-vga-in-dual-vga-with-intel-on-ubuntu-to-solve-overheat-problem/</link>
		<comments>http://cisight.com/switch-off-ati-vga-in-dual-vga-with-intel-on-ubuntu-to-solve-overheat-problem/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 15:19:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[engine]]></category>
		<category><![CDATA[Switch off ATI VGA in dual VGA with Intel on Ubuntu to solve overheat]]></category>
		<category><![CDATA[turn off ati vga ubuntu]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=182</guid>
		<description><![CDATA[I have AMD Radeon HD 6470M which sometimes it make my laptop overheat until 90 C. Usually, it&#8217;s run on 70 C. This is because ATI Radeon run together with Intel VGA. By switch off VGA AMD Radeon, it decrease &#8230; <a href="http://cisight.com/switch-off-ati-vga-in-dual-vga-with-intel-on-ubuntu-to-solve-overheat-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have AMD Radeon HD 6470M which sometimes it make my laptop overheat until 90 C. Usually, it&#8217;s run on 70 C. This is because ATI Radeon run together with Intel VGA. By switch off VGA AMD Radeon, it decrease overheat from 70 C into 58 C. And my laptop not overheat anymore. Basically, turn off ATI VGA will decrease heat problem in Ubuntu.</p>
<p><strong>UPDATE: Try upgrade your BIOS. Several people have said they reduce heat by upgrading the BIOS.</strong><br />
<a href="http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&#038;cc=th&#038;prodNameId=5086746&#038;prodTypeId=321957&#038;prodSeriesId=5086745&#038;swLang=13&#038;taskId=135&#038;swEnvOID=4061#93211">http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&#038;cc=th&#038;prodNameId=5086746&#038;prodTypeId=321957&#038;prodSeriesId=5086745&#038;swLang=13&#038;taskId=135&#038;swEnvOID=4061#93211<br />
</a></p>
<p>First, check your dual VGA by : </p>
<p><code><br />
lspci -vnnn | grep VGA<br />
</code><br />
<span id="more-182"></span><br />
And for me, eg :</p>
<p><code><br />
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])<br />
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M] [1002:6760] (prog-if 00 [VGA controller])<br />
</code></p>
<p>Then we will de-activate &#8220;AMD Radeon HD 6470M&#8221; by :<br />
<code><br />
sudo apt-get install git &#038;&#038; cd ~/<br />
git clone https://github.com/mkottman/acpi_call.git<br />
cd acpi_call &#038;&#038; make<br />
sudo insmod acpi_call.ko<br />
chmod a+x test_off.sh<br />
sh test_off.sh<br />
</code></p>
<p>Now you can check if your ATI VGA already disabled by &#8220;lspci -vnnn | grep VGA&#8221; again. It will show results :</p>
<p><code><br />
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])<br />
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc NI Seymour [AMD Radeon HD 6470M] [1002:6760] (rev ff) (prog-if ff)<br />
</code></p>
<p>And suddenly you will get the heat on your laptop drop 20 C. </p>
<p>To make this run at boot, edit /etc/rc.local :</p>
<p><code><br />
sudo insmod <YOUR-HOME-USEr-PATH>/acpi_call/acpi_call.ko<br />
sudo sh <YOUR-HOME-USEr-PATH>/acpi_call/test_off.sh<br />
</code></p>
<p>Also, un-blacklist radeon by edit /etc/modprobe.d/blacklist.conf :</p>
<p><code><br />
#blacklist radeon<br />
</code></p>
<p>You should have xorg.conf like this to make VGA detectable :</p>
<p><code><br />
Section "ServerLayout"<br />
        Identifier     "aticonfig Layout"<br />
        Screen      0  "aticonfig-Screen[0]-0" 0 0<br />
EndSection</p>
<p>Section "Module"<br />
        Load  "glx"<br />
EndSection</p>
<p>Section "Monitor"<br />
        Identifier   "aticonfig-Monitor[0]-0"<br />
        Option      "VendorName" "ATI Proprietary Driver"<br />
        Option      "ModelName" "Generic Autodetecting Monitor"<br />
        Option      "DPMS" "true"<br />
EndSection</p>
<p>Section "Device"<br />
        Identifier  "aticonfig-Device[0]-0"<br />
#        Driver      "fglrx"<br />
        BusID       "PCI:1:0:0"<br />
EndSection</p>
<p># Section "Screen"<br />
#         Identifier "Default Screen"<br />
#         DefaultDepth     24<br />
# EndSection</p>
<p>Section "Screen"<br />
        Identifier "aticonfig-Screen[0]-0"<br />
        Device     "aticonfig-Device[0]-0"<br />
        Monitor    "aticonfig-Monitor[0]-0"<br />
        DefaultDepth     24<br />
        SubSection "Display"<br />
                Viewport   0 0<br />
                Depth     24<br />
        EndSubSection<br />
EndSection<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/switch-off-ati-vga-in-dual-vga-with-intel-on-ubuntu-to-solve-overheat-problem/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to setup VNC server for remote desktop in Ubuntu 11.10 Oneiric</title>
		<link>http://cisight.com/how-to-setup-vnc-server-remote-desktop-in-ubuntu-11-10-oneiric/</link>
		<comments>http://cisight.com/how-to-setup-vnc-server-remote-desktop-in-ubuntu-11-10-oneiric/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 07:32:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[engine]]></category>
		<category><![CDATA[vnc in ubuntu]]></category>
		<category><![CDATA[VNC server for remote desktop in Ubuntu]]></category>

		<guid isPermaLink="false">http://cisight.com/?p=174</guid>
		<description><![CDATA[Install VNC server in Ubuntu 11.10 Oneiric for remote-desktop is very easy. Here are the steps to install : sudo apt-get install x11vnc sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.pass sudo chmod 744 /etc/x11vnc.pass Now you should edit your lightdm : sudo &#8230; <a href="http://cisight.com/how-to-setup-vnc-server-remote-desktop-in-ubuntu-11-10-oneiric/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Install VNC server in Ubuntu 11.10 Oneiric for remote-desktop is very easy. Here are the steps to install :</p>
<p><code><br />
sudo apt-get install x11vnc<br />
sudo x11vnc -storepasswd yourpasswordhere /etc/x11vnc.pass<br />
sudo chmod 744 /etc/x11vnc.pass<br />
</code></p>
<p>Now you should edit your lightdm :<br />
<code><br />
sudo vim /etc/lightdm/lightdm.conf<br />
</code></p>
<p><code><br />
greeter-setup-script=/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -forever -bg -rfbport 5900 -o /tmp/x11vnc.log<br />
</code></p>
<p>To run manually :<br />
<code><br />
sudo x11vnc -rfbauth /etc/x11vnc.pass -o /var/log/x11vnc.log -forever -bg -rfbport 5900 -nomodtweak<br />
</code></p>
<p>or </p>
<p><code><br />
sudo x11vnc -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -forever -bg -rfbport 5900 -o /tmp/x11vnc.log<br />
</code></p>
<p>Happy remote desktop! <img src='http://cisight.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://cisight.com/how-to-setup-vnc-server-remote-desktop-in-ubuntu-11-10-oneiric/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
