Thursday, May 7, 2009

Relay email from postfix to exchange

Background:

I am new to this linux world!


Need:

Set up system in Ubuntu linux that would generate a email message. The box is ip'ed 192.168.10.10 and the exchange mail server is ip'ed 192.168.10.2. Hope you got the scenario.


What I did:

$sudo apt-get install postfix mailx

installed postfix and mailx, again I don't know much about them but postfix is a MTA and mailx, I used to check operation of postfix.


While installing postfix I gave in the information what I had but it did not work.

Wednesday, May 6, 2009

Resetting ubuntu password and 'esc' is not responding

I had a box ubuntu pre-installed and I had to reset the password. I tried to followed instruction from this site but the 'esc' would not work. The thing is USB keyboard is detected after kernel is loaded so I switched to a PS2 keyboard then following the procedures from the above site, I changed the password.

Might help someone like me.

Tuesday, May 5, 2009

Switch user in MySQL

To switch user in MySQL with username "test" and password "secret"
Start->Run (or press Windows Key + R)
then type
mysql -utest -psecret

or in command prompt type
>mysql -utest -psecret

*NOTE* There is no space between "-u" and 'test' and no space between "-p" and 'secret'

enjoy learning,

Friday, May 1, 2009

Short Story Collection

A man was polishing his new car; his 4 yr old son picked up a stone & scratched on the side of the car. In anger, the furious man took his child's hand & hit it many times, not realizing he was using a wrench. At the hospital, the child lost all his fingers due to multiple fractures. When the child saw his father....with painful eyes he asked 'Dad when will my fingers grow back?' The man was so hurt and speechless. He went back to the car and kicked it many times. Devastated by his own actions... sitting in front of the car he looked at the scratches, his son had written 'LOVE YOU DAD'. The next day that man committed suicide... Anger and Love have no limits... Always remember.... . " Things are to be used and people are to be loved " but the problem in today's world is.... " People are being USED & Things are being LOVED."

Wednesday, April 29, 2009

Deals2Buy

Friends,

I have been using this site for long time now. I have bought lot of stuffs from this site. I usually view this site once a day. Feel free to see this site whenever you are free at
http://www.deals2buy.com

Thursday, June 5, 2008

GridView and Calendar Control

I was working with GridVeiw and Calendar controls for one of my projects. There I found one difficulty in showing date in calendar control when edit link is pressed it would give me
Specified cast is not valid
error; with much of searching I found a solution to it;

*Note* had to change '<' with LT and '>' with GT;

LT asp:Calendar ID="ActualEndDate" runat="server" Back Border
CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-
Fore Height="180px" SelectedDate='LT%# string.IsNullOrEmpty(Eval("ActualEndDate").ToString())?DateTime.MinValue:Eval("ActualEndDate") %GT'
Style="position: relative" Width="200px" GT

I changed '<%# Bind("ActualEndDate") %>' to above mentioned code and it worked for me,
as for update which was not working for some reason: all other fields would update except ActualEndDate; it would erase data and would show empty. So, I had to write in

protected void MyGridVeiw_RowUpdating(object sender, GridViewUpdateEventArgs e)

my custom update code and it seems to work fine. Hope this might help some other and I'm still testing if this solution would work properly.

Thanks for viewing my blog,


Tyampoo

Tuesday, April 8, 2008

Heritrix 1: Installing and running Heritrix

I am, in general term, new to linux OS/administration and I am working on focused crawling using open source Heritrix. Though common to get stucked, I am writing this so that it may help someone like me.

. Download Heritrix
. Install Heritrix
. Install Sun Java (apt-get install sun-java5-jdk)
. Choose Java we installed (update-java-alternatives -l)
. Make sure that port 8080 is free (netstat -nltp)
mine 8080 was used by java so I used (killall java)
Then follow steps from user manual (I made startup.sh containing)
export HERITRIX_HOME=/home/tyampoo/Desktop/heritrix-1.14.0-RC1
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/jre
export JAVA_OPTS="-Xmx512M"
$HERITRIX_HOME/bin/heritrix --admin=admin:abc123

Now can see the web interface (http://127.0.0.1:8080/index.jsp). I believe, as parse says, this is just a spoon and now I have to dig this enormous hill with it!

Tyampoo.