use short_open_tag = On in php.ini for
DocumentRoot h:/Ethicline/www
ServerName www.ethicline.com
modify the etc/host insert
127.0.0.1 www.ethicline.com
-----------------------
-----------------------------------------------
Authentication, Authorization and Access Control
what is .htaccess file
server side authentication , password file
http://httpd.apache.org/docs/2.0/howto/auth.html
if you want to allow .htaccess , then AllowOverride directive is used.
AllowOverride AuthConfig
htpasswd utility required and put it in like /usr/local/apache/passwd
To create the file, use the htpasswd utility that came with Apache. This will be located in the bin directory of wherever you installed Apache. To create
the file, type:
htpasswd -c /usr/local/apache/passwd/passwords rbowen
htpasswd will ask you for the password, and then ask you to type it again to confirm it:
# htpasswd -c /usr/local/apache/passwd/passwords rbowen
New password: mypassword
Re-type new password: mypassword
Adding password for user rbowen
------------------------------------------------
javascript Jquery,YUI
populate dynamically select box options.
browser information like , version, "noscript" tag, os currently installed.
how to include javascript in page.
select box properties.
create new node
update the value
apply class runtime i.e. change css runtime
handling json object
accordion implementation
fish eye component implementation
ajax implementation , update only the specific div by ajax on page
submodal box
toggling the checkboxes
use the data table grid
drag and drop method
check the browser and browser information.
preview image effect
embed pdf and flash file
AJAX:
methods
variables
css
how to attach css
what are identifiers.
what is difference in _ and * while applying the patch
float
clear
tableless structure
linux
shell scripting
how to set cron job
svn commnds to checkout
svn command to checkin
svn commadn to export at certain revision number
svn commit
how to make branches from trunk
current running processes
Copy to remote machine:
scp -i .ssh/id_rsa
compress the file on linux
tar -cvzf permuto_admin_app.tar.gz permuto
extract/uncompress the file on linux
tar -xvzf /home/cybage/permuto_admin_app.tar.gz
provide the permission to apache
sudo chown apache permuto
Wordpress blog
how to setup the wordpress blog
SEO:
what is robot.txt
what is pinging , tools for pinging
what is cloaking
what are the keywords
what is social bookmarking
what is tag
what is spider
what is google analytics
how does the stat counter works
tips to increase the site ranks
Basic requirement for the facebook application
Setup Word press blog
setup the normal corporate site using joomla
setup e-commerce site
setup E-learning site
setup CMS
create site using cakephp
Setup vbulletin
vi editor:
replace
projects:
1. Permuto
--------------------------------------------------------------------------------------------------------------------------------------------------------
Host changes
--------------------------------------------------------------------------------------------------------------------------------------------------------
Windows -> run -> drivers ->
Go to etc/hosts and put in eg:
184.73.211.91 test.pulsemgr.com
--------------------------------------------------------------------------------------------------------------------------------------------------------
SSH/SCP/SVN commands
--------------------------------------------------------------------------------------------------------------------------------------------------------
1. When things get bad
ssh root@test.pulsemgr.com "shutdown -r 0"
2. Login to the remote server
ssh -i .ssh/id_rsa_pmt stg2.pulsemgr.com
ssh -i .ssh/id_rsa_pmt 184.73.211.91
3. copy to the remote
scp -i .ssh/id_rsa_pmt
4. copy from the remote
scp -i /root/.ssh/id_rsa_pmt -r test.pulsemgr.com:/home/test2/build/ /home/karand/perl
5. apache server commands
/etc/init.d/httpd start
/etc/init.d/httpd stop
/etc/init.d/httpd restart
6. Svn export
svn export --force --username=vishalr --password=cybag_4321 https://permuto.svn.cvsdude.com/permuto/branches/4.0.0-QA/src/portal /home/test/src/portal
svn export --force --username=vishalr --password=cybag_4321 https://permuto.svn.cvsdude.com/permuto/branches/4.0.0-QA/src/portal/application/reports/
/usr/local/permuto/apps/application/
svn export --force --username=vishalr --password=cybag_4321 https://permuto.svn.cvsdude.com/permuto/trunk/src/bam_db/db/ /home/test/bam_upgrades/
--------------------------------------------------------------------------------------------------------------------------------------------------------
Linux Commands
--------------------------------------------------------------------------------------------------------------------------------------------------------
1. for splitting large file
split -b 1440k my_big_file
to combine file again
cat xaa xab Xac> my_big_file
2. link
ln -s
3. search replace strings globally across file
%s/
4. search string
/search string
5. find files
find
6. display file information
ls -lrth
l -> Shows you huge amounts of information (permissions, owners, size, and when last modified.)
r -> Force printing of non-printable characters in file names as the character question mark (?).
t -> Shows you the files in modification time.
h -> Nearest biggest file size.
7. Processes
ps -ef | grep
8. System details
cat /proc/cpuinfo
cat /proc/meminfo
9. Kill process
kill -9
--------------------------------------------------------------------------------------------------------------------------------------------------------
vim Shortcuts
--------------------------------------------------------------------------------------------------------------------------------------------------------
1. show line number
:set number
2. undo
u
3. redo
ctrl+r
4. cut line
dd
5. cut from cursor to end of line
d$
6. cut from cursor to beg of line
d0
7. copy line
yy
8. copy n lines to end of file
nyy
9. copy to end of file
yG
--------------------------------------------------------------------------------------------------------------------------------------------------------
Samba Server
--------------------------------------------------------------------------------------------------------------------------------------------------------
1. chmod -R 777
2. Then in /etc/samba/smb.conf at the bottom add
[library]
path = /usr/local/permuto/apps/shared/perl/
guest ok = yes
read only = no
public = yes
3. /etc/init.d/smb restart
--------------------------------------------------------------------------------------------------------------------------------------------------------
Compress/Decompress files
--------------------------------------------------------------------------------------------------------------------------------------------------------
1. bunzip
bzip2 filename.txt -> will give filename.txt.bz2
bunzip2 filename.txt.bz2 -> will give filename.txt
2. zip
zip squash.zip file1 file2 file3
unzip squash.zip
--------------------------------------------------------------------------------------------------------------------------------------------------------
MySQL
--------------------------------------------------------------------------------------------------------------------------------------------------------
1. Managing ibdata
innodb_file_per_table helps in disk space management, since DROP TABLE really removes the .ibd file, and frees the disk space to the operating system. As
you know, ibdata files never shrink.
2. Restart
/etc/init.d/mysqld restart
--------------------------------------------------------------------------------------------------------------------------------------------------------
Perl
--------------------------------------------------------------------------------------------------------------------------------------------------------
1. Check if perl module is installed
perl -MNet::SSH::Per l -e 1
if not installed it cries else nothing
what are the special variables:
$_ , \$, @_, @INC,
what is anonymous hash and regular hash?
how to print arrays/hash elements
how to get the array of keys from hash ( keys(%hash) )
What is xss.