Linux shell compress a directory

GNU tar command is best for this work. => Create the archive => Compress the archive Use tar command: tar -zcvf archive-name.tar.gz directory-name Where, -z: Compress archive using gzip -c: Create archive -v: Verbose -f: Archive File name Compress this directory /home/ppuk: $ tar -zcvf ppuk01102014.tar.gz /home/ppuk This will create ppuk01102014.tar.gz in current directory. To uncompress ppuk01102014.tar.gz in the current directory: $ tar -zxvf ppuk01102014.tar.gz Where, -x: Extract files To extract this directory into /tmp then: $ tar -zxvf ppuk01102014.tar.gz -C /tmp $ cd /tmp $ ls...

Read More
Seo >Start Here
Oct15

Seo >Start Here

Introduction to SEO When SEO started, SEO wasn’t called SEO. It was best described by those who practiced it as a form of hacking. The early search engines weren’t the best , so it was relatively easy to figure out their sorting algorithms. There was a time when Infoseek’s algorithm was almost entirely based on keyword density and keyword position. I’m sure many  SEOs remember those days with a sense of nostalgia. It was more of a pure technical pursuit back then. As search engines got more sophisticated, and more money flowed online, the nature of the game changed. SEO moved beyond technical hacking to an exercise in making connections. In Googles early days, you could build a couple of high PR (Page Rank) Links and that was enough to get you ranking top ten. (Click here is you want to read the current status on PR) Add a few more if you really wanted to go hard.  It’s clear to see we haven’t completely left the era of High PR but it’s clear to see their has been a shift away from this method. Today a holistic approach is required to capitalize on SEO. Get your head round current SEO If you’re starting out in SEO now, Don’t try and cover it all at once it’s going to take a while. It helps to understand the big picture first. The reason people engage in SEO is about making money, Driving visitors to your site, Building your online presence, and increasing your search ranking. They want people to connect with them, rather than their competitors. They want people to find their web site. They want people to do this so they can convert these people to buyers, of their goods, their services, or their ideas. If a site were only to rank, on keyword terms no-one searched for, or that weren’t directly applicable to the objectives of the business, then the SEO work is largely useless. So SEO isn’t solely about rankings. The rankings must translate to something tangible. In most cases, this means gaining qualified visitor traffic. A low bounce Rate To get this traffic, a site must do more than rank, a site must appeal to visitors. To appeal to visitors, the SEO must first understand them. Once the SEO provider understands what is available to the visitor and what the aim is of the Employer of the SEO provider, relevant traffic can be driven to he relevant sections of a site. If for instance we are providing SEO for a company that sells Crockery there’s no point providing quality seo for plates and the visitor arriving at...

Read More
Exclude Internal Traffic from google analytics
Sep19

Exclude Internal Traffic from google analytics

Are you actually getting 10000 hits a month or is that traffic coming from your own home or office? The most frequent visitor to your website as you get started is you and or people from your own intranet (that pretty much means anybody on your wifi, or Ethernet network). When your trying to build your content to improve your page rank in google, bing , and yahoo you will be revisiting your site to check keyword density, content alt tags the list goes on, when you are doing this you will be creating false visits to your website. This will give you bias data when analysing your new campaign! If you are running a blog site,  cms site or an e commerce site that means you have to visit your site regularly to update the content. Every time you visit your site you are adding false hits to your analytics data. Start by going to Filters in your Google Analytics and click Add Filters. Up pops the normal filter form. Following the example below, placing your own IP address into the field, add it to what ever profile you want. Now all internal traffic is gone. If you don’t know your i.p address click here. This method is not a silver bullet , howver it will filter out those results you are generating from your usual access point to the...

Read More
Mysql db commands
May05

Mysql db commands

Dump ALL MySQL Databases mysqldump –user=XXXXXXXX –password=XXXXXXX -A > /PATH/TO/DUMPFILE.SQL Dump Individual or Multiple MySQL Databases mysqldump –user=XXXXXXXX –password=XXXXXXX –databases DB_NAME1 DB_NAME2 DB_NAME3 > /PATH/TO/DUMPFILE.SQL Dump only certain tables from a MySQL Database mysqldump –user=XXXXXXXX –password=XXXXXXXX –databases DB_NAME –tables TABLE_NAME > /PATH/TO/DUMPFILE.SQL make dumps compatible with the old MySQL version, add the following switch: –compatible=mysql323 Put Myqsl database back mysql –verbose –user=XXXXXXXX –password=XXXXXXXX DB_NAME <...

Read More
PHP 5.1 date(): getdate(): and assorted Time Zone errors
Jan31

PHP 5.1 date(): getdate(): and assorted Time Zone errors

Ok So you have your Apache server WIth PHP installed and you keep getting this error on your sites date(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘UTC’ for ‘GMT/0.0/no DST’ instead OR getdate(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘UTC’ for ‘GMT/0.0/no DST’ instead It turns out your shiny new server set up has changed if your using PHP 5.1 or greater you now need to tell php what time zone to use. Rather than editing all your sites / scripts just update your .htaccess with php_value date.timezone Europe/London You can also set the default time zone in your php.ini file if you have access / the script should revert to UTC or GMt as it used to be but you will get the E_warning as above. replacing Europe/London with the appropriate time zone for your server see full list:...

Read More
Page 1 of 3123