Friday 22 May 2015

What responsive mean in web site world?

A few days ago, Google finally change it's ranking mechanism and started to count if your web site is responsive or not! If you are simple "dumb" web admin, then you probably don't know what that means. By "dumb" I mean you are person who uploads posts, images, videos and you technical knowledge about web sites is limited.

What responsive web site means?

Responsive web site means that web site can adjust to viewer device. Meaning? These days devices that can look web site are phones, tablets, laptops, netbooks, PC. Have I mention it all? Before smart phones,tablets and netbooks came there were just a PC and laptop. PC have 100% of market but over time laptops become affordable. Same thing happend with tables and smart phones. Major difference between all these devices? Screen size! It's not the same when you look something on display that is  320x480, 600x800, 768x1024 or 1366x768.  Over time PC from majority became minority in terms of devices. Because of this, philosophy in web pages changed. People are more into mobile devices with smaller screens! Because of these, issues like not seeing whole page on small screen start to bother more and more people! And then programmers start to make web pages that can adopt to screen site of the device! So no matter on what you are looking web page, you will see all content! That means responsive!

Lets see what this means on two examples!

Here is one responsive 


and one non responsive web site


Try to open both sites on your tables and PC and you will know why responsive web sites are a very good and smart thing!







Wednesday 13 May 2015

Rename LV how to do it what and what you should be aware of

In case that you need to rename one or more logical volume, here is what you need to do.
Rename logical volume is pretty simple.

#lvrename VolumeGroupName OldLogicalVolumeName NewLogicalVolumeName 

Ok, so you rename logical volume but .... will you have save reboot? Here is few things you should be aware of.

1. Make changes in /etc/fstab
In case you forgot to do that, you will have problems once you reboot you system

2. In case you have renamed logical volume that was mounted on / you need to make changes in /boot/grub/menu.lst and make changes where ever you have old logical volume name.

That is it!



 

SOLVED Argument list too long bash issue for rm, ls, mv, cp

In case you have folder with many files and you want to list, move, copy or delete them you will see this message

#:rm -rf files*
-bash: /bin/rm: Argument list too long

#:ls |wc -l
120407


Why this is happening? To say it in a simple way, you have to many files. Why this is a problem? Linux see that you have to many files and he is not able to do things (in are case rm, cp, ls or mv operations) because there is to many files. This have nothing do to with file size. Just with numbers of files. How to solved this? 

When I see this  Argument list too long message I always use for loop.

It goes like this

#:for i in `ls`;do rm -rf $i;done

And problem is solved.

Hope it helps! :)