Website design and marketing news, hints and tips
Archive for December, 2009
Facebook and MySpace join Twitter on real-time search
Dec 9th
Google has formed partnerships with both social networking sites Facebook and MySpace to add to their existing deal with Twitter. According to Google, real-time results will be appearing on the .com and .co.uk sites “over the coming days”.
Basically this means that when a person makes a search on Google, as well as the normal web page results there will be a selection of results from various social media sites.
This reflects the fact that updates on sites such as Twitter and Facebook can often provide more up to date information for cutting-edge stories than is possible from normal websites. In an article in the Telegraph the example of last years protests in Iran was given, where Twitter updates documented up to the minute events as they unfolded, whilst the Wikipedia entry or news articles which Google was returning in its SERPS were somewhat behind.
Read the rest of this entry »
Javascript replace
Dec 9th
Another quick snippet. I was using the Javascript replace method in my site when I noticed that by default it only made a singular replace. So I hunted down the solution for a global replace…
MyString.replace(/oldtext/gi, “newtext”)
Facebook address safety issues
Dec 7th
The social networking website Facebook has formed a safety advisory board comprised of 5 web safety organisations to provide expert consultancy relating to safety issues.
Facebook said it plans to meet with this advisory board on a regular basis with an aim to review existing safety resources being provided, develop new materials, and gain advice on general site safety.
Read the rest of this entry »
Chrome OS set for 2010 launch
Dec 3rd
Fans of Google’s Chrome browser will be pleased to hear news regarding the launch of Google’s Chrome OS (operating system).
In a webcast launch at Google HQ on Thursday, vice president of product management Sundar Pichai said the Linux-based operating system was
1 – Fully open
2 – Ran applications only in its browser
3 – Stored all data in the cloud (see below)
Read the rest of this entry »
Random order in SQL
Dec 3rd
Another quick code snippet I found pretty useful this week. In a SQL command you can use “ORDER BY NEWID()” to randomly order your results.
This can be implemented in a number of ways – to randomly display advertising features, news items or any other set of records or you can use “SELECT TOP 1 ID FROM TABLENAME ORDER BY NEWID()” to grab a record at random.