Tuesday, March 27, 2012

Ubuntu Adding Sudo Users

1. Add admin group
$groupadd admin

2. Add a user called "hiro" to admin group
$gpasswd -a hiro admin

Thursday, March 10, 2011

CakePHP, Eclipse PHP plugin initial setting....configure .ctp file in Eclipse

I already had Eclipse 3.6 but not PHP development environment.

PHP development environment in Eclipse is called PDT.
I followed the instruction in the following page.
http://wiki.eclipse.org/PDT/Installation#From_Update_Site

Then, I wanted to use Aptana plugin.
I found the instructions in the following page.
http://docs.aptana.com/docs/index.php/Plugging_Aptana_into_an_existing_Eclipse_configuration

Now,  you want to configure .ctp(view) files in Eclipse as php files.
  • Firstly open the  Eclipse workspace.
  • Now go to Preferences from Window menu.
  • From Preference click on the General tab from the list.
  • Now click on Content-Types under General  tab.
  • On the right panel in the Content-Types, expand the Text tab.
  • Select PHP Content-Types .
  • Now click on the Add button and type the fie extension e.g. *.ctp in the content type input field.

Wednesday, March 2, 2011

Free SVN GUI Client for MacOS

I've been looking for free subversion client for MacOS.

I've downloaded SmartSVN.
79 USD for Professional version but Foundations version is free.
Just download and run the application.
It will tell you that once the trial period expires for professional version, it automatically downgrade to Foundation version.
I will update you once my professional trial period expires whether the Foundations version is usable.

Tuesday, February 15, 2011

Gimp changing the interface language back into English

So today, I installed Gimp to play with some pictures.
I'm using Vista by the way....yes...can't wait to change the OS.

Anyhow, go to C:\Users\<User Name>\.gimp-<version>
It's a hidden folder so you have to set the folder option to show hidden folders.
Delete .gimp-<version> folder.
Start Gimp, it should be in English.

Friday, February 11, 2011

Wordpress Contact Form Problem: Mail Not Sent

I've used Contact Form 7 Plugin for my website contact form.
Installation, super easy.
Sending email, super easy....but

I had this problem.
I see a response message “Your message was sent successfully” with green border, but I never receive a mail for that.
Which was exactly an FAQ at Contact Form 7 site.

I know the cause can vary according to your server.
In my case, the reason was postfix wasn't working.

So I typed the following command, and everything works fine.
sudo /etc/init.d/postfix start
sudo /sbin/chkconfig postfix on

Thursday, February 10, 2011

How to hide a page from menu in Wordpress

Since I set a static page called "Welcome" as "HOME".
In my menu, I see "HOME" and "Welcome".

Well, this is quite annoying and makes the page less professional.
I used the following plugin to work around this problem.
It let me exclude a page from showing up in menu.

Exclude Pages Plugin
http://wordpress.org/extend/plugins/exclude-pages/installation/

configuring sun-java6-jre license screen: can't press

I'm still struggling my way through with Ubuntu Linux.
I was installing java6-jdk with the following command.

$ sudo apt-get install sun-java6-jdk

Then, configuring sun-java6-jre license screen shows up.
It has <ok> but I couldn't figure out how to select it.

The solution was Press <TAB> and then Press <Enter>.

Well, this was really annoying....
http://ubuntuforums.org/showthread.php?t=657917
http://forum.nginx.org/read.php?26,120455,120455