Instant RubyOnRails on Windows


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
Welcome to Windows the most convient OS Desktop
to install RubyOnRails on Windows is very... very simple just visit

http://instantrails.rubyforge.org

and download the latest version. It'll provide you :

* [Instant Rails Manager] 1.7

* [Ruby 1.8.6] (from the [One-Click Ruby Installer] 1.8.6-25)

* [Ruby on Rails] 1.2.3

* [Apache] 1.3.33

* [MySQL] 5.0.27

* [MySQL/Ruby] 2.7.3 (native driver)

* [Mongrel] 1.0.1

* [phpMyAdmin] 2.10.0.2

That's it, just like
Vertigro http://vertrigo.sourceforge.net/ or
XAMPP http://www.apachefriends.org/en/xampp.html.

God I love Windows more..


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 -->




pyzor install on qmailtoaster


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
pyzor installation steps

download:
wget http://kent.dl.sourceforge.net/sourceforge/pyzor/pyzor-0.4.0.tar.bz2

extract:
tar xjvf pyzor-0.4.0.tar.bz2

setup:
cd pyzor-0.4.0
python setup.py build
python setup.py install
pyzor discover

add daily pyzor server update:
crontab -e
17 2 * * * pyzor discover

enabled in your /etc/mail/spamassassin/v310.pre file:
# Pyzor - perform Pyzor message checks.
#
loadplugin Mail::SpamAssassin::Plugin::Pyzor

echo "use_pyzor 1" >> /etc/mail/spamassassin/local.cf

restart spamd:
spamassassin -D --lint
qmail-spam restart

resources:
http://wiki.qmailtoaster.com/index.php/Install_Pyzor
http://wiki.apache.org/spamassassin/UsingPyzor
http://v2gnu.com/qmail/spamd.html


Use plink to execute command on linux


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
Let's say you have a script on your linux box
CODE:
/home/tsp/test.sh

and for what ever reason you want to execute it directly on your windows box. Here how to do it:

CODE:
C:\>"c:\Program Files\PuTTY\plink.exe" -ssh tsp@10.10.105.105 -pw tsp123 ./test.sh
test


where:
"c:\Program Files\PuTTY\plink.exe" is complete path to plink.exe exist
-ssh is the protocol you are using it
tsp is your linux box user
10.10.105.105 is your linux box's IP address
-pw tsp123 is your password (tsp123)
./test.sh is your linux command (you any linux command i.e. uname -a)
test is the output from your linux box

Download plink and/or putty here
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html



Add greylisting to qmailtoaster


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
Based on
http://www.kabewm.com/?p=19
http://thomas.mangin.me.uk/software/qmail-greylist.html

Download qmail-greyd and configure it
# cd /var/qmail/bin
# wget http://thomas.mangin.me.uk/data/source/qmail-greyd
# chmod +x qmail-greyd
# mkdir /var/qmail/grey
# chown vpopmail.vchkpw /var/qmail/grey

Add ,GREY=”" to the :allow statement at the bottom of /etc/tcprules.d/tcp.smtp
# vi /etc/tcprules/tcp.smtp
:allow,BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPTLIMIT="100",CHKUSER_WRONGRCPT
LIMIT="20",DKVERIFY="DEfhIJK",QMAILQUEUE="/var/qmail/bin/simscan",DKQUEUE="/var/qm
ail/bin/qmail-queue.orig",DKSIGN="/var/qmail/control/domainkeys/%/private",NOP
0FCHECK="1",GREY=""

Add GREYD paramater to /var/qmail/supervise/smtp/run
# vi /var/qmail/supervise/smtp/run
#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
BLACKLIST=`cat /var/qmail/control/blacklists`
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
RBLSMTPD="/usr/bin/rblsmtpd"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
REQUIRE_AUTH=0
GREYD="/var/qmail/bin/qmail-greyd"

exec /usr/bin/softlimit -m 27000000 \
/usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
$GREYD $RBLSMTPD $BLACKLIST $SMTPD $VCHKPW /bin/true 2>&1

Re-built tcprules and re-start qmail
# service qmail cdb
# service qmail restart



Windows XP Auto Login


 BlinkList   del.icio.us   digg   Furl   linkaGoGo   Newsvine   reddit   Shadows   Simpy   Spurl.net   Tailrank   Yahoo! My Web
You can configure Windows XP to automate the logon process if your computer is not part of a domain. Computers configured in a business environment generally have a domain and for those machines the option "Users must enter a username" does not appear because a password must be given to access the local area network or domain.

1. Click Start, click Run, and type control userpasswords2. This is a shortcut instead of having to click on Start -> Control Panel -> User Accounts.
2. Uncheck the "Users must enter a username and password to use this computer" check box.
3. Click Apply.
4. Enter the user name and password you wish to automatically log on with, and then click OK.
5. Click OK again and you're all done.

This feature allows other users to start your computer and use the account that you establish to automatically log on. Enabling auto logon makes your computer more convenient to use, but can pose a security risk since anyone can just turn the machine on and access your files.


Page :  1