Archive for November, 2008

22
Nov

SapphireSteel :: Ruby In Steel

   Posted by: Vivek Khokhar    in Ruby

Curious to see how writing ruby code in visualstudio goes ?

Download
http://www.sapphiresteel.com/Ruby-In-Steel-New-Free-Edition
Download
http://ankhsvn.open.collab.net/
Install both

svn checkout your project to some directory. (c:\source)

Launch steel
Go to File -> New Project -> Import Project
Name your project
choose project location (c:\steel-project)
Go Next
Choose your project folder (place where you did svn checkout) (c:\source)
Check mark Rails Project checkbox
Click ok
Click Proceed
Wait.. it will take some time to copy files.
Done. You can start using your Steel PE now.

Use File -> Subversion menu to perform svn operations.
Optionally you can access SVN operations from Solutions tab also.

Tags:

22
Nov

AOL rejecting or blocking emails

   Posted by: Vivek Khokhar    in Linux

Recently, we faced a problem where emails generated from our application were not showing up in AOL inbox(es).

We have recently switched to a new machine & I suspected that for new machine mx-records are not set correctly from where I am trying to send the email.

We didn’t wanted to change our mx-records as we feared loosing any email. This is when SPF works.

http://www.openspf.org

We setup SPf records & this problem is solved. Now, our new machine is a valid email sender for our domain.

But emails were still not making it through AOL.

After some googling & aoling i found this link:

http://postmaster.info.aol.com/trouble/index.html

from here I followed this:

http://postmaster.info.aol.com/tools/telnet.html

I followed the instructions relegiously & got this error:

421-: (DNS:NR) http://postmaster.info.aol.com/errors/421dnsnr.html
421 SERVICE NOT AVAILABLE

URL: http://postmaster.info.aol.com/errors/421dnsnr.html clearly states the problem

So, reverse DNS is not set correctly.

AOL also provides this tool for further testing of your reverse DNS
http://postmaster.info.aol.com/cgi-bin/dns_tool.pl

We asked our hosting provider setup reverse DNS for our domain.

Damnnn.. Why didn’t we first looked at AOL faqs.

Tags:

22
Nov

Wget came to my rescue

   Posted by: Vivek Khokhar    in Linux

I was trying to download some 150-200 zip files from a http URL by finding each file & clicking on it to download.  I soon realized how boring it is using standard download support in browsers.

This is something I am supposed to do periodically

I know that there are some browser extensions available that could do this pretty easily, but i wondered if i could do this via command line & later on automate it somehow.

This is when i recalled wget.

I downloaded it for my machine from here

After some experimentation i finalized following working set for myself:

wget “http://somewebsiteyoutarget/folderx/foldery/” -r -A zip

Options Explanation:

-r : recursively digs the folder until it exhausts. There are options for specifying recursion levels too (see wget -h)

-A : you can specify extensions you want to download. In my case these are zip files only.

Since these files were quite big in size, it took some time to download these files. Occasionally my internet connection broke & i had to restart things again.

But wget has solution for these problems as well (see wget -h). I explored the help and found -c & -t options pretty usefull for crappy connections.

So now my command looks like this:

wget “http://somewebsiteyoutarget/folderx/foldery/” -r -A zip -c -t

Wget rocks (full marks) ! : o ) !

Tags: