Linux command to replace a string across multiple files
sed -i ’s/product1.php/product.php/g’ *.php In the command above “product1.php” is replaced with “product.php” across all files with extension “.php” within the project folder.
sed -i ’s/product1.php/product.php/g’ *.php In the command above “product1.php” is replaced with “product.php” across all files with extension “.php” within the project folder.
The Khan Academy is a not-for-profit 501(c)(3) with the mission of providing a world-class education to anyone, anywhere. Despite being the work of one man, Salman Khan, this 1600+ video library [...]
SPARQL (pronounced “sparkle”) is an RDF query language; its name is a recursive acronym that stands for SPARQL Protocol and RDF Query Language. It was standardized by the RDF Data Access Working Group (DAWG) of the World Wide Web Consortium, and is considered a key semantic web technology. On 15 January 2008, SPARQL became an [...]
DBpedia is a community effort to extract structured information from Wikipedia and to make this information available on the Web. DBpedia allows you to ask sophisticated queries against Wikipedia, and to link other data sets on the Web to Wikipedia data. We hope this will make it easier for the amazing amount of information in Wikipedia to be used in new and interesting ways, and that it might inspire new mechanisms for navigating, [...]
Ganglia is a monitoring framework for clusters of servers. It records many statistics and can record custom defined ones too. It works in a distributed manner, with each machine you wish to collect statistics for running the Ganglia monitor deamon, gmond. Each monitoring deamon’s statistics are collected by a metadata daemon, gmetad, running on either [...]
A simple jQuery plugin that uses OEmbed API to help displaying embedded content (such as photos or videos) in your website. This plugin can be downloaded from google code base code.google.com http://satishgaudo.com/satblog/ext_img/oEmbed/index.html Quick explicit example: <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>jquery-oembed explicit insert example</title> <meta http-equiv=”content-type” content=”text/html; charset=utf-8″/> <script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/ jquery/1.3.2/jquery.min.js”></script> <script type=”text/javascript” src=”jquery.oembed.js”></script> </head> <body> <script type=”text/javascript”> $(document).ready(function() { $(”#container”).oembed(”http://www.flickr.com/photos/ 14516334@N00/345009210/”); }); </script> <div id=”container”></div> </body> </html>
In this example the div#container will [...]
oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly. Full Spec This spec is broken into three parts – [...]
Earlier this month, Apple and Google unveiled new sites to showcase HTML5. On it, they showed off a number of impressive web demos coded using only HTML5 technologies. Google’s HTML 5 site: http://www.html5rocks.com/ Apple’s HTML 5 site: http://www.apple.com/html5/
ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving. Apache Manual URL Usage: ab [options] [http://]hostname[:port]/path Options are: -n requests [...]
Here is an link from digg.com, Tuning LAMP systems, Part 2: Optimizing Apache and PHP Tuning LAMP systems, Part 2: Optimizing Apache and PHP