On ServerVault blog, I think that I found they basic hardware specifications…
SQL servers have more than 256Gb RAM
Web servers have 32Gb RAM

On ServerVault blog, I think that I found they basic hardware specifications…
SQL servers have more than 256Gb RAM
Web servers have 32Gb RAM

For example, on a site that used to get around 2 million page views per day, the log size had 133,910,121 entries for only one week, and consumed over 38 gigabytes!
Source: http://2bits.com/drupal-performance/reducing-size-and-io-load-apaches-web-server-log-files.html
Other interesting links…
http://zoompf.com/blog/2009/11/performance-questions-to-ask-hosting-providers-log-file-access
MAC address from Linux with PHP
<?php
function getMacLinux() {
exec('netstat -ie', $result);
if(is_array($result)) {
$iface = array();
foreach($result as $key => $line) {
if($key > 0) {
$tmp = str_replace(" ", "", substr($line, 0, 10));
if($tmp <> "") {
$macpos = strpos($line, "HWaddr");
if($macpos !== false) {
$iface[] = array('iface' => $tmp, 'mac' =>strtolower(substr($line, $macpos+7, 17)));
}
}
}
}
return $iface[0]['mac'];
} else {
return "notfound";
}
}
?>
Found it on http://www.zimplicit.se/en/knowledge/how-get-mac-address-linux-php
This are the command lines that I use to add the watermark picture named watermark.png on the video named source.avi and export to output.flv.
Tested on a DigitalOcean Virtual server! 😉
The 10 values are the paddings!
Top left
ffmpeg –i source.avi -vf "movie=watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" output.flv
Top right
ffmpeg –i source.avi -vf "movie=watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]" output.flv
Bottom left
ffmpeg –i source.avi -vf "movie=watermark.png [watermark]; [in][watermark] overlay=10:main_h-overlay_h-10 [out]" output.flv
Bottom right
ffmpeg –i source.avi -vf "movie=watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" output.flv
Center?
ffmpeg –i source.avi -vf “movie=watermark.png [watermark]; [in][watermark] overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2 [out]” output.flv
If you get this error…
[NULL @ 0x45fd680] Unable to find a suitable output format for '–i' –i: Invalid argument
try something like…
ffmpeg -i 'video-source.mp4' -i /watermark/path/image.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10" -c:v libx264 -vsync 2 -strict -2 /output/video.mp4
In this tutorial you will learn how to build a PHP script that scrapes links from any web page.
Continue reading Scraping Links With PHP

About The Node Pole
The Node Pole region encompasses the municipalities Luleå, Boden and Piteå in the very north of Sweden, just by the Arctic Circle. The region has the epithet The Node Pole due to its northern position and potential to become a global hub for data traffic.
The Node Pole holds perfect conditions to create bespoke construction solutions for high tech, electricity intensive construction such as data centers. In addition to having an extremely stable electricity infrastructure, The Node Pole region provides natural cooling and renewable hydropower with low energy costs. It is also one of the most geologically, politically and socially stable areas in the world. The Node Pole is owned by the three municipalities, Luleå Business Agency and other regional business organizations.

# This number should be, at maximum, the number of CPU cores on your system. # (since nginx doesn't benefit from more than one worker per CPU.)
“My understanding is that in order to maximize nginx performance you normally set the number of worker_processes equal to the number of core/cpu’s”
by cobaco in Nginx High volume traffic load balancing
$html = file_get_contents('path/to/file.html'); // Create a new DOM document $dom = new DOMDocument; // Parse the HTML. Use the @ to avoid any parsing errors if the $html string isn't valid XHTML @$dom->loadHTML($html); // Get all links 'a' we can use also 'img', 'li, 'table', etc to extract other tags. $links = $dom->getElementsByTagName('a'); foreach ($links as $link){ echo $link->nodeValue; // Full node echo $link->getAttribute('href'), '<br />'; // the link itself}
On the edge of the Arctic Circle, where the River Lule meets the Gulf of Bothnia, lies a very important building. Facebook’s newest data center – in Luleå, Sweden – is now handling live traffic from around the world.
Source: http://www.facebook.com/luleadatacenter






