Friday, February 05, 2010

Thickbox

http://jquery.com/demo/thickbox/

Floating div on top and bottom

Top - http://roshanbh.com.np/2008/07/top-floating-message-box-using-jquery.html

Bottom - http://www.matto1990.com/jquery/catfish/

Monday, February 01, 2010

52 Blogs that Accept Guest Posts

http://piggybankpie.com/guest-blogging/52-blogs-that-accept-guest-posts/

http://www.hellboundbloggers.com/blogging/list-of-cool-blogs-to-write-guest-articles/

SEO Steps

Very useful tips on how to optimize a website.

  1. Website analysis
  2. Keyword Research
  3. Adding Emphasis with Header Tags
  4. Adding Emphasis with Tail Tags
  5. Bold, Italic effect to main keywords
  6. Canonicalization
  7. Competition Analysis
  8. CSS Validation
  9. Google Base Feeds
  10. H Tags Optimization (Eg: H1, H2, H3)
  11. Header Tag Optimization
  12. HTML Code Clean Up & Optimization
  13. Image & Hyperlink Optimization
  14. In depth site Analysis
  15. Link Validation
  16. Meta Description Tags Optimization
  17. Meta Keywords Tags Optimization
  18. Navigation & Design Optimization
  19. PR Sculpting
  20. Robots.txt Optimization
  21. Text Modification Tags Optimization
  22. Title Tag Optimization
  23. URL Rewrite
  24. W3C Validation
  25. Working on HTML Source Code
  26. Link Development
  27. Authoritative Submissions
  28. Broken Links Checking
  29. Directory Submissions
  30. Extraction of Site Url’s ( Link Level Depth)
  31. Internal Link Structuring
  32. Link Building ( Link Bait )
  33. Manual Link Request to Related Sites
  34. One way link (PR4 or Greater)
  35. Site Back-links count
  36. Local Search Engine Optimization
  37. Custom Review Submission
  38. h card Integration
  39. Local Search Engine Submission
  40. Testimonial Submission
  41. Updating pages for local searches
  42. Website Usability & Conversion
  43. Being Webmaster Tools account setup & monitoring
  44. Google Webmaster Tools account setup & monitoring
  45. Installing Usability Tools on Website
  46. Monthly Website Conversion Tracking
  47. Optimization for Multiple Browsers
  48. Article Submission
  49. Blog Comment on Relevant Blogs
  50. Blog Designing for the website
  51. Blog Submission
  52. Classified submission
  53. Creating Promotional pages on hubpages, squidoo, etc
  54. Face Book Twitter Marketing
  55. Integration of page bookmarking tools
  56. Integration of page sharing tools
  57. Paid Submission
  58. Photo Sharing
  59. PPT Submission
  60. Press Release
  61. Product Indexing on Google Base
  62. Rss Feeds
  63. Social Bookmarking
  64. Video Submission
  65. Content Writing & Optimization
  66. Article Writing
  67. Blog Writing
  68. Content Modification
  69. Press Release Writing
  70. Thematically Optimization of content pages
  71. Website content writing through Latent Semantic Indexing
  72. Website Spell Check
  73. XML Site Map Creation & Submission
  74. SE Saturation Checking ( Google, Yahoo & Bing)
  75. Log file analysis
  76. Google, Yahoo & Bing Site Map Creation
  77. Google Analytics Funnel Creation
  78. Google Analytics Account Setup
  79. Deep Indexing Recommendations
  80. Checking server response code for each URL
  81. Check Search Engine Road Blocks
  82. Check PR of each url

Wednesday, January 06, 2010

css Div height 100%

html {MIN-HEIGHT: 100%; HEIGHT: 100%}

body{
HEIGHT: 100%
}

#container{
min-height: 100%;
_height: 100%;
}

Wednesday, August 26, 2009

Limit Text and Strip tags in PHP

$content = $post->post_content;

$limit = 280;

if (strlen($content) > $limit)

$content = substr($content, 0, strrpos(substr($content, 0, $limit), ' ')) . '...';

echo strip_tags($content);

Friday, August 14, 2009

Javascript Validate Number Integer

IsFound = /^-?\d+$/.test($('number').value);


if (IsFound == false) {



$('error_msg').innerHTML = "* Please Enter a valid number.<br>";



}

Wednesday, July 29, 2009

Install RMagick2.9.0 Rails 2.1.2, Ruby 1.8.6 ,filecolumn-0.3

http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/dbab55eb99625e14?pli=1

Tuesday, July 21, 2009

Onfocus and Onblur input field

<input id="search_field" type="text" name="s" value="Search this blog" onfocus="if (this.value == 'Search this blog') {this.value = ''; document.getElementById(this.id).style.color='#666666';}" onblur="if (this.value == '') {document.getElementById(this.id).style.color='#cccccc'; this.value = 'Search this blog'; }" />

Thursday, June 18, 2009

Web Page Analyzer - Website Optimization Tool

I found a great tool where you can check the speed of your website and analyze it.
Try it out: http://websiteoptimization.com/services/analyze/

Tuesday, June 16, 2009

Adding "_blank" of all links

var anchors = document.getElementById('div').getElementsByTagName('a');

var sDom = document.domain;

for (var i=0; i<anchors.length; i++) {

var anchor = anchors[i];

if (anchor.getAttribute("href")) {

iPosition = anchor.href.indexOf(sDom);

if (iPosition == -1 ||

iPosition > sDom.length) {

anchor.target = "_blank";

}

}

}

Display Twitter RSS on your website using Google AJAX Feed API

It's a simple code to display twitter rss on your website. You can display the twitter user image, user name, user url, user id, title and content.

Sample Twitter Search with google feed api:

 <script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("feeds", "1");
function getTwitterSearch(q, id, callbackfunction)
{

q = encodeURI(q);
id = encodeURI(id);
var feed = new google.feeds.Feed("http://search.twitter.com/search.atom?q="+q+"&rpp=100&show_user=true&since_id="+id); feed.setNumEntries(10); feed.setResultFormat(google.feeds.Feed.MIXED_FORMAT); feed.load(function(result) { if (!result.error) { var ava = google.feeds.getElementsByTagNameNS(result.xmlDocument, "http://www.w3.org/2005/Atom", "link"); //google.feeds.getElementsByTagNameNS(result.xmlDocument, "http://search.yahoo.com/mrss/", "content"); ; var imageA = new Array(); j=0; for (var i = 0; i < ava.length; i++) { if(ava[i].getAttribute('rel')=="image") { imageA[j]=ava[i].getAttribute('href'); j++; } } var tA = new Array(result.feed.entries.length); for (var i = 0; i < result.feed.entries.length; i++) { var twitterMessage = new Object; entry = result.feed.entries[i]; temp = entry.link.split("/"); twitterMessage = { text: entry.title, link: entry.link, date: entry.publishedDate, user: entry.author, statusid: temp[5], image: imageA[i] }; tA[i]=twitterMessage; } callbackfunction(tA); } }); } function reverseSimpleWrite(tA) { tA.reverse(); var container = document.getElementById("feed"); for (var i = 0; i < tA.length; i++) { var entry = tA[i]; var div = document.createElement("li"); div.innerHTML="<img src='"+entry.image+"' width='48' height='48' > "+entry.image+"<br>user: "+entry.user+"<br>date: "+entry.date+"<br> text: "+entry.text+" <br> link: <a href='"+entry.link+"'>"+entry.link+"</a><br> statusid: "+entry.statusid+"<br><br>"; container.appendChild(div); } } google.setOnLoadCallback(function(){ getTwitterSearch("iphone", 0, reverseSimpleWrite); } ); </script>




See the original code and sample here:
http://www.facesaerch.com/widget/twitterjs.php

Tuesday, June 02, 2009

Monday, June 01, 2009

Php and MySql Book

I want to share with you a very nice book of php and mysql. I really like this book, I learned a lot of making some program using php and combination with the mysql.

Check this out.

http://books.google.com/books?hl=en&id=fGzifMim4qYC&dq=php+and+mysql+web+development&printsec=frontcover&source=web&ots=mB9GW-2nJ3&sig=9LQvdcdH8x_AuTRkl4yomObJ4vc&sa=X&oi=book_result&resnum=1&ct=result#PPP12,M1

Vim Commands Cheat Sheet

Vim Commands Cheat Sheet


http://www.fprintf.net/vimCheatSheet.html

7 Habits For Effective Text Editing 2.0

Vim editor

http://www.truveo.com/7-Habits-For-Effective-Text-Editing-20/id/699137100

List of Best Photoshop Web design Tutorials

A compilation of Photoshop Web design Tutorials. The best, creative and professional web design layout tutorials.

  1. http://dzineblog.com/2008/07/best-photoshop-layout-design-tutorials.html
  2. http://vandelaydesign.com/blog/design/website-layout-photoshop-tutorials/
  3. http://psd.tutsplus.com/articles/web/45-step-by-step-tutorials-on-web-design-with-photoshop/

Table Sort using javascript

a script where you can sort a records on the the table using javascript. you can sort by number or by alphabetical.

Table Sort
http://www.brainjar.com/dhtml/tablesort/default2.asp


Demo
http://www.brainjar.com/dhtml/tablesort/demo.html

Sorting Number using Javascript

simple way to sort a number using javascript.

<script type="text/JavaScript" language="JavaScript">


function compare(a,b){

return a-b;

}


var num = [5,2,10,6,8,1,7,4,3];



document.write("Result :"+num.sort(compare));



</script>