Change Facebook Thumbnail Image on Like Button

Here a quick and easy way to change the thumbnail image that Facebook picks for your website when a users clicks on the Like button or shares a link of your website on Facebook; Add the following line of code in HEAD section of the page:

 <link rel="image_src" type="image/jpeg" href="THUMBNAIL_IMAGE.JPG" />

where THUMBNAIL_IMAGE.JPG is the URL to the image that you’d like Facebook to use a the thumbnail.

Tags : , , , , , ,

Is Google Good for Your Memory?

Illustration of how Google effected the way we find, memories and recall information. Very interesting.

Tags : , , ,

Mohammed Almadhoun: Gets an Award from Google

My 14 year old brother Mohammed Almadhoun, won a programming contest at Google’s event in Gaza, Palestine and was awarded an Android Nexus S phone.

This is what a representative from Google had to say about him:

“To continue on this, there is actually one more person that I would like to put a little bit of spot light on; I’ve been really impressed by him, and I’d like to ask him to come to the front; Mohammed Almadhoun. I’ll give a little bit of a background story about Mohammed [Salam Alykom]. This is my hero and my role model. To give a little bit of a background; Mohammed is a 14 year old developer and I’m really impressed by the things he showed me today, but also the things that he’s doing beyond the event today. He’s done for us today the Android challenge that we had over lunch. He managed to completely solve the problem except for a little detail which is irregular expression which a lot of people at Google still don’t know how it works, and his solution was completely correct. Not only that, we had a very nice conversation in which I was really impressed by his applications are not great only but also very relevant to the local community. Give the example of Tasawaq [Is anybody familiar with Tasawaq?] This is the hero behind Tasawaq. Tasawaq is an online project which allow merchants to sell their products to all of you , and I heard of many more examples of you [...] I’m really really very impressed and I would like to give this to you as a little support for your great efforts and your energy. And I look forward to using your Android apps next year hopefully. Yes, so Thank you!”

The video:

 

Tags : , , ,

Online Tool: Optimize Images for the Web

A tool from Yahoo that compresses web images (JPG, PNG, GIF) to a minimum size and optimizes them for use on the web.

http://www.smushit.com/ysmush.it/

 

I hope you find it useful.

Tags : , , , , , , ,

Disable Subtitles in VLC Media Player

To disable subtitles in VLC Media Player, Go to:

 

Tools ► Preferences ► All (Bottom left next to Simple) ► Double Click Video ► Subtitles/OSD ► Uncheck Autodetect Subtitle Files

 

 

 

 

 

 

 

 

 

Tags : , , , ,

JavaScript: Convert String to Integer (int)

To convert strings (text) to integer (number) in JavaScript use the parseInt function.

For example:

document.write(parseInt("23 years"));

Will return the number 23, the function ignores the string “years” and return the integer 23 only.

Another common example is:

<script>
var firstNumber = prompt("Enter the first number");
var secondNumber = prompt("Enter the second number");
var theTotal = firstNumber+secondNumber;
document.write(firstNumber + " added to " + secondNumber + " equals " + theTotal);
</script>

 

If you enter 4 and 5, the script will return “45″  instead of 9.  To fix use the parseInt function as follows:

 
<script>
var firstNumber = parseInt(prompt("Enter the first number"));
var secondNumber = parseInt(prompt("Enter the second number"));
var theTotal = firstNumber+secondNumber;
document.write(firstNumber + " added to " + secondNumber + " equals " + theTotal);
</script>


 

 

Tags : , , , , ,

PHP: Check If Two Strings Are Similar

Here’s a PHP function that’ll help you check if two strings (texts) are similar. If the strings are 50% similar then the function will output “Duplicate Entries”.

<?php 
 
function issimilar ($otext,$ctext){
$array1 = explode(' ',$otext);
$array2 = explode(' ',$ctext);
$result = array_intersect($array1, $array2);
if (count($array1) > 0) {
	if (count($result)>(count($array1)/2)){
		echo "Duplicate Entries";
	};
 
};
}
 
issimilar ( "Hello World Foo Bar Baz", "Hello Foo Bar Baz");
 
?>

Tags : , , , ,

Free Online Website Performance Testings Tools

Here is a list of 10 of my favorite website / web page performance testing tools. The tools test things such as load time, load speed and web server stress, many of them provide helpful tips on how to increases website performance.

GTmetrix | Website Speed and Performance Optimization
http://gtmetrix.com/

 

Broswer Mob Website Performance Test
https://browsermob.com/free-website-performance-test/

 

WebPageTest.org Web Page Performance Test
http://www.webpagetest.org/

 

Pingdom Tools – Test the load time of a web page
http://tools.pingdom.com/

 

Load Impact
http://loadimpact.com/

 

Gomez Web Site Performance Test
http://www.gomeznetworks.com/custom/instant_test.html

 

Web Page Analyzer – 0.98 – from Website Optimization
http://www.websiteoptimization.com/services/analyze/

 

Benchmark your website or test the speed of your web connection.
http://webwait.com/

 

Gomez Instant Test Center
http://www.gomez.com/resources/instant-test-center/

 

Webserver Stress Tool – 30 Day Free Trial Software
http://www.paessler.com/webstress

 


 

Download: Loading GIF Images

“Loading” GIF Images

 

Right click and save picture as.. or download all of them in a zip file:  loading-gif-images

 

 

Tags : , , , ,

Disable Auto Zoom in Internet Explorer or Safari Using HTML

To disable page auto zoom (auto scale)  in Internet Explorer, Safari or any other browsers, place the following META tag in the head section of your page:

<meta name="viewport" content="width=device-width, user-scalable=no" />



Tags : , , , , , , ,