RubyOnRails on CentOS


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
RubyOnRails installation on CentOS 4.4
based on
http://wiki.rubyonrails.org/rails/pages/RailsOnRHEL
http://wiki.rubyonrails.org/rails/pages/Rails+on+CentOS+4.4+with+Apache+and
+FastCGI+Simply
http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppOnOne
Machine

Install CentOS
* choose "server" option during install, or just grab the "CentOS-Server" CD.
* firewall: open http/https ports
* selinux: disable
* select minimum install

Make sure your centos is uptodate
# yum update

Install Apache2 and MySQL (and also PHP if you want it)
# yum install httpd-devel httpd apr apr-devel apr-util-devel mysql-server mysql-client mysql-devel
# chkconfig httpd on
# chkconfig mysqld on

[ more.. ]


Free Javascripts: Bookmark Script


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
From: http://www.hscripts.com/scripts/JavaScript/bookmark.php
If you visit my blog, you can see it on again on top left side

CODE:
<!--        Script by hscripts.com          -->
<!--        copyright of HIOX INDIA         -->
<!-- more scripts @ http://www.hscripts.com -->

<script language=javascript>

//set the bookmark image position(topright,topleft,bottomright,bottomleft) 
var corner = "topleft";

var url = window.location;
var title = document.title;
document.write('<div id=ddd style="position: absolute; visibility: visible; top: 5px; left:5px;">');
document.write('<a style="font-size:10px; text-decoration: none;" href="javascript:bookmark(title, url)" title="click here to bookmark this page"><img src="images/book.gif" alt="BOOKMARK " border=0><span style="background-color: seashell; font-size:10px;"><sup>H</sup></span></a></div>');

var os;
if(document.layers)
os = "n4";
else if(document.getElementById&&!document.all)
os = "n6";
else if(document.all)
os = "ie";

function run()
{
if(os == "ie"){
   pwidth = window.document.body.offsetWidth;
   pheight = window.document.body.offsetHeight;
   stop = document.body.scrollTop;
   sleft = document.body.scrollLeft;
}else{
   pwidth = window.innerWidth;
   pheight = window.innerHeight;
   stop = window.pageYOffset;
   sleft = window.pageXOffset;
}

  var dda = document.getElementById('ddd');
  if(corner == "topleft"){
    dda.style.top = (stop)+"px";
    dda.style.left = (sleft+15)+"px"; 
  }else if(corner == "topright"){
    dda.style.top = (stop)+"px";
    dda.style.left = (sleft+pwidth-110)+"px"; 
  }else if(corner == "bottomleft"){
    dda.style.top = (stop+pheight-45)+"px";
    dda.style.left = (sleft+15)+"px"; 
  }else if(corner == "bottomright"){
    dda.style.top = (stop+pheight-40)+"px";
    dda.style.left = (sleft+pwidth-110)+"px"; 
  }
  setTimeout('run()',5);
}

function bookmark(title,url){
   if(window.sidebar)
          window.sidebar.addPanel(title,url,"");
   else if(window.opera && window.print){
          var elem = document.createElement('a');
          elem.setAttribute('href',url);
          elem.setAttribute('title',title);
          elem.setAttribute('rel','sidebar');
          elem.click();
   }
   else if(os == "ie")
          window.external.AddFavorite(url,title);
}
document.onload = run();


</script>
<!-- Script by hscripts.com -->




Page :  1