Category: configuration

Run NodeJS with non-root / user permission using Runit in Ubuntu 12.04 Precise

Run NodeJS with non-root / user permission using Runit in Ubuntu 12.04 Precise

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 …

+ Read More

How to solve problem HFSplus OS X partition sharing as home partition in Ubuntu

How to solve problem HFSplus OS X partition sharing as home partition in Ubuntu

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 I adding launcher in Desktop (Ubuntu), it can’t be executed and throw error : 1the …

+ Read More

How to change font bold style of php HTML in Aptana Studio

How to change font bold style of php HTML in Aptana Studio

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 -> “Window Menu” 2. Type “Themes” on left search box. 3. Find element “text.html.basic” and change it …

+ Read More

Aptana delete all my files because SVN failure

Aptana delete all my files because SVN failure

I use Aptana Studio 3 and Subversive as SVN connector. After checkout some SVN repository, I got that it was failed process. There no confirmation or something alert, but suddenly all my files in the pointed folder was deleted. Yes, it entirely deleted and not in Trash. I just luck have a Gitosis repository which …

+ Read More

How to setup git server using gitolite in Ubuntu 11.10 Oneiric

How to setup git server using gitolite in Ubuntu 11.10 Oneiric

We can build git server using gitolite which also we can host into our Ubuntu. First, we wil act as client which need SSH public keys. Generate our ssh public keys and copy into /tmp by : 12ssh-keygen -t rsa cp ~/.ssh/id_rsa.pub /tmp/local.pub Now, we should install dependencies packages by :

Solving could should increase server_names_hash_bucket_size: 32 NGINX Ubuntu

Solving could should increase server_names_hash_bucket_size: 32 NGINX Ubuntu

After I configure several sites that have a long names in NGINX virtualhost, I restart my NGINX and got this error : 123sudo service nginx restart Restarting nginx: nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32 nginx: configuration file /etc/nginx/nginx.conf test failed Well this is because my NGINX conf only limit …

+ Read More

How to disable master password in Eclipse

How to disable master password in Eclipse

Master password in Eclipse is a bit annoying. We can disable this feature completely. Firstly, you should exit your Eclipse applications. Then follow this steps: 1. Delete equinox security 1rm -rf ~/.eclipse/org.eclipse.equinox.security If you use Zend PHP Eclipse or some other, this step will solve the problem. But, if you still get annoying Master password, …

+ Read More

Problem with VIM tabnew or new buffer which reset all changes

Problem with VIM tabnew or new buffer which reset all changes

When using VIM, usually I use new buffer or newtab for opening several files. There some anomally where everytime I open another files, my Python indentation going wrong! I don’t know what happen and try spend several hours to find the problem. Finally, I got the problem ! See this : 123456setlocal tabstop=4 setlocal softtabstop=4 …

+ Read More

Install AMD Radeon HD 6470M and solve overheat on Ubuntu 11.10 Oneiric

Install AMD Radeon HD 6470M and solve overheat on Ubuntu 11.10 Oneiric

UPDATE: Try upgrade your BIOS. Several people have said they reduce heat by upgrading the BIOS. http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=th&prodNameId=5086746&prodTypeId=321957&prodSeriesId=5086745&swLang=13&taskId=135&swEnvOID=4061#93211 Please note that installing the latest AMD ATI Radeon FGLRX still not solve the overheat issue. I recommend you to switch off the radeon VGA and use Intel VGA card. It will decrease overheat from 90 C fall …

+ Read More

Install and configure Vagrant on Ubuntu Oneiric 11.10

Install and configure Vagrant on Ubuntu Oneiric 11.10

Installing Vagrant on Ubuntu 11.04 using base tutorial on vagrantup.com will give success result. But not with Ubuntu Oneiric. This is because gem path changes and “Invalid gemspec invalid date format in specification”. Here are right steps to install & run Vagrant on Ubuntu 11.10 : 1. Install & Configuring Virtualbox Go to https://www.virtualbox.org/wiki/Linux_Downloads and …

+ Read More

Configuring CakePHP works in sub-folder Localhost NGINX

Configuring CakePHP works in sub-folder Localhost NGINX

Building CakePHP in sub-folder of localhost is a common way. If you use NGINX as web server for development, we need to setup several thing to make CakePHP works in sub-folder. For example, i have one CakePHP applications 1234567localhost  |_ mycakephp        |_ app        |_ cake        |_ …

+ Read More

How get latest NGINX and build deb package on Ubuntu

How get latest NGINX and build deb package on Ubuntu

I use Ubuntu Natty 11.04 in this installation which use nginx 0.8.54 as default package. Now, i try to build and install nginx 1.1.3 development into my Ubuntu. 1. Enable NGINX source Edit “/etc/apt/source.list” and uncomment : 1deb-src http://archive.ubuntu.com/ubuntu/ natty multiverse Then you need to reload repository by “sudo apt-get update”

How to remove upstream remote repository in Github

How to remove upstream remote repository in Github

When you forking repository, you usually add stream to enable push your changes into origin master. Adding stream to remote repository by : 1git remote add upstream git://github.com/octocat/Spoon-Knife.git But how to remove upstream if we use wrong github repository. Adding again will throw error “fatal: remote upstream already exists”, for example like this: 1fatal: ‘git//github.com/narfdotpl/jquery-typing.git’ …

+ Read More

Auto checking errors for Javascript in VIM using JavascriptLint

Auto checking errors for Javascript in VIM using JavascriptLint

I have edited a lot of javascript files in VIM. Checking errors in a lot of javascripts line is such a pain till i found JavasriptLint + VIM Plugin. Let get started, i use Ubuntu Natty 11.04 on this installation. Updated! You can fork it on Github : Davepacheco’s javascriptlint Github 1. Install JavascriptLint 123456cd …

+ Read More

Solving Snipmate vim error Snippet c) is already defined

Solving Snipmate vim error Snippet c) is already defined

Today i get these errors after forking my github : 1234567891011121314151617Warning in snipMate.vim: Snippet c) is already defined. See :h multi_snip for help on snippets with multiple matches. Warning in snipMate.vim: Snippet date is already defined. See :h multi_snip for help on snippets with multiple matches. Warning in snipMate.vim: Snippet ddate is already defined. See …

+ Read More

Hot tips collection about using VIM

Hot tips collection about using VIM

Today i try to learn VIM and found several trivial things that probably gain my effectivity about using VIM. Note that i use VIM for editing PHP, Python, Javascript, CSS and HTML. Also i create my own VIM like Netbeans ( Which it’s still my primary IDE for web development ) in http://github.com/yodiaditya/vim-netbeans. Here are …

+ Read More

Fixing Memcached Problem in Ubuntu Natty

Fixing Memcached Problem in Ubuntu Natty

When restarting Memcached service, suddenly i got this kind of error : 12345678Restarting memcached: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings:         LANGUAGE = (unset),         LC_ALL = (unset),         LANG = "en_US.UTF-8"     are supported and installed on …

+ Read More

NGINX configuration for CodeIgniter 2.0

NGINX configuration for CodeIgniter 2.0

This is my NGINX configuration for running CodeIgniter 2.0. 123456789101112131415161718192021222324252627282930313233343536373839404142434445server {     listen   80; ## listen for ipv4     server_name ci;     root        /your-public-html;     access_log  /var/log/nginx/yourdomain.access.log;     error_log  /var/log/nginx/yourdomain.error.log;     # If file is an asset, set expires and break     location ~* …

+ Read More

Solve blank page URL Rewrite CodeIgniter in Subfolder using .htaccess

Solve blank page URL Rewrite CodeIgniter in Subfolder using .htaccess

When we place CodeIgniter as subfolder in localhost environment, it will have some problem with URL rewrite. For example, i have http://localhost/codeigniter. So, if we using default tutorial on CodeIgniter without carefully then it will throw us into “blank page” and without any error. Configuring Codeigniter for subfolder is easy. Here the steps : 1. …

+ Read More