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.

Wednesday, April 2, 2008

Sharing Desktop between Linux and WinXP

I am using WinXP in one desktop and Ubuntu 7.10 and I wanted to share desktop between them so I followed steps from ubuntugeeks on linux and
Downloaded TightVNC from tightvnc.com/download, ran client then boom, I can share desktops.
But one issue:
I CANNOT use vncviewer/client with the other computer "Locked."

Tyampoo

Friday, March 28, 2008

Life is all twisted!

What happened? Why is this "twisted?"
These are couples of questions out of many that I was asked when I had put this title in my msn's personal message.

In second thought, why to rewrite it full entry is here .

Monday, March 10, 2008

Baini Jyoi in Brookings Register

People comes in all size and shape. U never know when u meet whom. Rupendra "Thaggu" Shrestha! We were batch mate, St. Xavier's Campus, Kathmandu. We knew each other by face but rarely talked. He was a bio student and I was in physical group. I joined Pulchowk campus and there I met him again. He was there for about a sem or so and left for his destiny, to become a "Daktar." But we were close enough by that time. We (I, Rupendra, Prasanna, Tsering + other) used to gather now and then when we cud. Now I am in Brookings and after a year I met Suravi, Rupendra's sista. I knew her by face and rarely talked back home now she is my dear sista. Good news is that she got married with whom she wanted/liked/loved.

They both are good/great and hardworking. Though "under pressure" they r dealing it very efficiently and galantly. See my baini (Suravi Shrestha) and jyoi (Rojan L. Karmacharya) in Brookings Register for their hard work!!

Tyampoo

Wednesday, March 5, 2008