BLOG.TIGABEATS.COM

A shrine where thoughts, ideas and random stuff is preserved

Uncategorized

YUM Proxy

/etc/yum.conf # The proxy server – proxy server:port number proxy=http://mycache.mydomain.com:3128 # The account details for yum connections proxy_username=yum-user proxy_password=qwerty

WordPress absolute urls are now working (css/images)

This happend to me today, i have setup a fresh centos server with wordpress installed, and i think i rushed through the setup and didnt assign proper hostname to wordpress, which means when accessing from web it was failing to get css/images from 192.168.2.xxx which obviously is a local ip. Using ssh i logged into the mysql [...]

URI Naming conventions and best practices

I was doing a little research on what are the industry best practices for designing URI for both Html and Non-Html content, that are both User and SEO friendly. i found the following documents on the best practices and how major government sites are doing it. i specifically like the one by gov.uk http://data.gov.uk/resources/uris http://www.seomoz.org/blog/11-best-practices-for-urls [...]

, , ,

Apache 403 and SELinux

Change content chcon -t httpd_sys_content_t /var/www/html/mywebsite/* Following wont work: restorecon -R -v /var/www/html/mywebsite Set Selinux mode to be (permissive): echo 0 >/selinux/enforce Readon for more info in SeLinux and Apache on Linux: http://wiki.centos.org/HowTos/SELinux

Extend Apache log to allow session tracking and response time logging

I used the following Configuration for httpd.conf to start logging Sessionkeys, Response times in seconds and also in microseconds, because if you are measuring performance then just seconds are not enough, however you will still need to do some work if you need to convert microseconds to milliseconds. # # The following directives define some [...]

Automated Code review

PMD eclipse plugin, which one can extend with custom rules. There is also a Maven plugin for this: http://maven.apache.org/plugins/maven-pmd-plugin/ and Bamboo plugin: https://plugins.atlassian.com/5987 Automated html reports can be generated using the maven plugin  or Bamboo plugin during each build in bamboo in continuous manner,. and have the reports available to everyone who has access to bamboo. however PMD [...]

Round trip in india under 30+ winter heat

Its the evening before my flight to india, i will be doing a ~2000 KM long trip by SUV, visiting a number of historical places in Delhi and Rajasthan (Yes i will aslo go to Taj Mahal ). i will post more about it later but for now the excrement of 30+ degrees indian winter [...]

,

Adventures with VI or VIM

Vim is one of the best things happend to linux long time ago, i have been using it for years and still learning new things about it each day, this post will focus on Vim and as new things will comeby i will add them here. Formating code: Add new line after/before pattern This could [...]