Tuesday, July 28, 2009

Basic SCiTE configuration for Drupal

Suppose you are working on Drupal and new to SCiTE editor and you want to customize then try this little below trick to help your eyes feel cool. The below info will help you to colorize little. This is just a start and would let you guys know how easy to do the stuff. I know most of the guys working in Ubuntu + SCiTE + Drupal for their projects.

In the SCiTE editor click Options Menu then click "Open User Options File"

copy paste the below settings

# PHP
style.php.118=fore:#CD1C69,back:#25272B,eolfilled
# Matching braces
style.php.34=fore:#E21E1E,back:#25272B,font=Monospace,size:12
# Not maching braces
style.php.35=fore:#FF0000,back:#25272B,font=Monospace,size:12
# Double quoted String
style.php.119=fore:#E17C4A,back:#25272B
# Single quoted string
style.php.120=fore:#F6E443,back:#25272B
# Keyword
style.php.121=fore:#FCFDFA,back:#25272B
# Number
style.php.122=fore:#CC9900,back:#25272B,
# Variable
style.php.123=fore:#53B6F0,back:#25272B
# Comment
style.php.124=fore:#999999,$(font.comment),back:#25272B,eolfilled
# One line comment
style.php.125=fore:#929394,$(font.comment),back:#25272B
# PHP variable in double quoted string
style.php.126=fore:#00007F,italics,back:#25272B
# PHP operator
style.php.127=fore:#FCFDFA,back:#25272B

# File patterns
file.patterns.php=*.php;*.php4;*.inc;*.module;*.info;*.install;*.views.inc;*.admin.inc;

if PLAT_GTK
selection.alpha=90
selection.back=#C0CCCC
find.files=*.php *.inc *.module *.views.inc *.admin.inc *.info *.install

#SCiTE Cursor Config
caret.fore=#FF0000
caret.width=2
caret.line.back=#FFFED8
caret.line.back.alpha=33
caret.period=310


Just Save an you will feel the difference when you open the Drupal's / PHP code file. Please let me know if you need more.

Sunday, July 19, 2009

Sharing files and folders from Mac OS X to Ubuntu

Sometimes you want a folder from Mac OS X to be shared and need to be accessed by Ubuntu then you need to follow the below link, which is really nice and beautiful. I was in search for not using "scp" / "ssh" command as I have to log in as a user and need to give pwd too.

Please follow Mac OS X File Sharing

Wednesday, July 8, 2009

remove host key from .ssh/known_hosts

$ ssh user@192.168.1.78

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
fd:1f:3d:fb:2e:ad:f4:f4:35:2e:03:f4:xx:xx:xx:xx.
Please contact your system administrator.
Add correct host key in /xxxx/xxxx/.ssh/known_hosts to get rid of this message.
Offending key in /xxxx/xxxx/.ssh/known_hosts:4
RSA host key for 192.168.1.78 has changed and you have requested strict checking.
Host key verification failed.
lost connection

When you get this kind of error in your system, it means that either server's RSA host key has been changed or your local machine host key is changed. Don't try to delete the .ssh folder instead, use the below command to fix this issue only for a particular host.

$ ssh-keygen -R 192.168.1.78

This will help in changing only one host's key to be removed. And now when you do it again it will ask for you to add the host key in your local machine.

Sunday, July 5, 2009

Uninstall SCPlugin for MacOS

I installed the SCPlugin and Subversion Packages & thought would play wonders, but unfortunately it couldn't be useful much for me. I left it unattended but suddenly I got some strange error like this..

This client is too old to work with working copy '/Users//Public'; please get a newer Subversion client
The tool /usr/local/bin/change-svn-wc-format.py
may be used to convert this working copy to match this SCPlugin (see 'About'), but you will loose any features of the newer Subversion you may be using


I tried googling but unfortunately I couldn't find any solution and after some couple of weeks I found some how to do uninstall it.

Please remove /Library/Contextual Menu Items/SCFinderPlugin.plugin
Remove /Library/Receipts/SCPlugin.pkg -> version might be also appended sometimes
Remove /Library/Receipts/Subversion.pkg
.

Feel free to ping for any help.