Posts Tagged ‘every’

Linux:Simple cron/crontab daemon usage run/execute/schedule script/program every 5 10 15 minutes

Monday, June 30th, 2008

crontab -u root -e
Edit current job list for root user.
crontab -u root -l - lists the crontab job list for the root user.
crontab -u root -r - removes the crontab job list for the root user.
crontab run script every 5 minutes
# min  hour day/month   month   day/week
*/5 * * * * /root/script.pl
crontab run script every 10 minutes
# min  hour day/month   month   day/week
*/10 * * * * /root/script.pl
crontab run script every 15 minutes
# min  hour day/month   month   day/week
*/15 * * * * /root/script.pl
# run fifteen minutes after midnight, every day
15 0 * * * /root/script.pl
a crontab entry fields are:
1. Minute - Minutes after the hour (0-59).
2. Hour - 24-hour format (0-23).
3. Day - Day of the month (1-31).
4. Month - Month of the year (1-12).
5. Weekday - Day of the week. (0-6, where 0 indicates Sunday).

Basic PHP Syntax

Saturday, June 28th, 2008

A PHP scripting block usually starts with . The best thing about PHP scripting block is that you can place it anywhere in the document. placed anywhere in the document.

On servers with shorthand support enabled you can start a scripting block with .

It is recommend that you use the standard form

< html >
< body >

< ? php
echo “Hello World”;
? >

< /body >
< /html >< /em >

Every line in PHP ends with a semi-colon. The two basic output text in PHP are: Echo and Print.

ASP vs PHP: Why is PHP Better?

Saturday, June 28th, 2008

What is ASP?Active Server Pages (ASP) is Microsoft’s scripting language for building dynamic web sites, web applications and web services., First released in January 2002 , along with the version 1.0 of the .NET Framework, ASP.net is the successor to Microsoft’s Active Server Pages (ASP) technology. ASP.NET is made on the Common Language Runtime, allowing programmers to write ASP.NET code via any supported .NET language such as VBScript and Jscript.What is PHP?PHP or (PHP: Hypertext Preprocessor) is a PC scripting language designed for the construction of dynamic web pages. PHP is largely used in server-side scripting, but can also be used from a command line interface or in standalone graphical applications.PHP commonly runs on a web server, taking the PHP code as its input and creating web pages as output. It can be set up on most web servers and on almost every operating system and platform for free.To be Continued…

GOOGLE FACTS

Friday, June 20th, 2008

Google’s index is updated every day as Google crawls the web. There pretty much is always an update going on.

Google has algorithms and data pushes that are going out on a less frequent basis. The latest were on 27 June, 28 July and 17 August.

Google’s BigDaddy update was a software infrastructure upgrade that finished in February. The BigDaddy update introduced a new way how they crawl the web.

Matt Cutts mentions in the video that another software infrastructure update is on the way. The new update should increase the quality of the search results:

“If we find out that we can improve quality by changing our algorithms or data or infrastructure, or anything else, we’re going to make that change.

The best SEO’s in my experience are the ones that can adapt, and that say ‘OK, this is the way the algorithms look right now to me, if I want to make a good site that will do well in search engines, this is the direction I want to head in next.’”

Archive Effectively

Thursday, June 19th, 2008

The best archives are carefully organized into subjects and date ranges. For search traffic (particularly long tail terms), it can be best to offer the full content of every post in a category on the archive pages, but from a usability standpoint, just linking to each post is far better (possibly with a very short snippet). Balance these two issues and make the decision based on your goals. A last note on archiving - pagination in blogging can be harmful to search traffic, rather than beneficial (as you provide constantly changing, duplicate content pages). Pagination is great for users who scroll to the bottom and want to see more, though, so consider putting a “noindex” in the meta tag or in the robots.txt file to keep spiders where they belong - in the well-organized archive system.
-

Don’t Jump on the Bandwagon

Thursday, June 19th, 2008

Some memes are worthy of being talked about by every blogger in the space, but most aren’t. Just because there’s huge news in your industry or niche DOES NOT mean you need to be covering it, or even mentioning it (though it can be valuable to link to it as an aside, just to integrate a shared experience into your unique content). Many of the best blogs online DO talk about the big trends - this is because they’re already popular, established and are counted on to be a source of news for the community. If you’re launching a new blog, you need to show people in your space that you can offer something unique, different and valuable - not just the same story from your point of view. This is less important in spaces where there are very few bloggers and little online coverage and much more in spaces that are overwhelmed with blogs (like search, or anything else tech-related).
-

How Does PageRank Work in google?

Thursday, June 19th, 2008

1. PageRank is only one of numerous methods Google uses to determine a page’s relevance or importance.
2. Google interprets a link from page A to page B as a vote, by page A, for page B. Google looks not only at the sheer volume of votes; among 100 other aspects it also analyzes the page that casts the vote. However, these aspects don’t count, when PageRank is calculated.
3. PageRank is based on incoming links, but not just on the number of them - relevance and quality are important (in terms of the PageRank of sites, which link to a given site).
4. PR(A) = (1-d) + d(PR(t1)/C(t1) + … + PR(tn)/C(tn)). That’s the equation that calculates a page’s PageRank.
5. Not all links weight the same when it comes to PR.
6. If you had a web page with a PR8 and had 1 link on it, the site linked to would get a fair amount of PR value. But, if you had 100 links on that page, each individual link would only get a fraction of the value.
7. Bad incoming links don’t have impact on Page Rank.
8. Ranking popularity considers site age, backlink relevancy and backlink duration. PageRank doesn’t.
9. Content is not taken into account when PageRank is calculated.
10. PageRank does not rank web sites as a whole, but is determined for each page individually.
11. Each inbound link is important to the overall total. Except banned sites, which don’t count.
12. PageRank values don’t range from 0 to 10. PageRank is a floating-point number.
13. Each Page Rank level is progressively harder to reach. PageRank is believed to be calculated on a logarithmic scale.
14. Google calculates pages PRs permanently, but we see the update once every few months (Google Toolbar).