Thursday, 23 January 2014

Solution : Blogger Remove Site name from Page Title

Hi, To remove site or blog name from the every title of blogger Page, you need to edit HTML Template of your blog

Goto

Template -> Edit HTML


Now find

 <title><data:blog.pageTitle/></title>

And replace above line with 

<b:if cond='data:blog.pageType == "index"'>
<title><data:blog.title/></title>
<b:else/>
<title><data:blog.pageName/></title>
</b:if>





Read More

Solution : Nginx Wordpress Pretty Permalinks Problem

To enable Pretty Permalinks feature in nginx simply modify the nginx conf file of wordpress site add following line
try_files $uri $uri/ /index.php?$args;
check example where to add above line

Example:
file: wordpress.conf
.....................
.......................
 location / {
        root   /var/www/html/wordpress;
        index  index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
    ...
    .....

 }
................
................
Read More

Thursday, 2 January 2014

Solution to record your Desktop Using FFMPEG in linux

Install ffmpeg packages in linux ( fedora, ubuntu and etc ) using installers (yum,apt-get and etc)

use the following command to record the Desktop :


ffmpeg -r 30 -s 1280x720  -f x11grab -i :0.0 -vcodec msmpeg4v2 -qscale 1 out.avi


But when we give resolution 1280x720 it will only take that part of your Desktop ( or some it will not record when your Desktop resolution is less the specified ) for that problem we need use one small script to record the Desktop


cat > record_myDesktop.sh  << EOF
#!/bin/bash
cur_dis=$( xrandr | grep '*' )
res=$(echo $cur_dis |awk '{print $1}')
echo $cur_dis
echo "ffmpeg -r 30 -s $res -f x11grab -i :0.0 -vcodec msmpeg4v2 -qscale 1 out.avi"
ffmpeg -r 30 -s $res -f x11grab -i :0.0 -vcodec msmpeg4v2 -qscale 1 out.avi
EOF

chmod +x record_myDesktop.sh 

./record_myDesktop.sh

--

Read More
Here We Write The Problems we face at different situations and Solutions to those problems.