Tuesday, June 22, 2010

IIS 7 | ASP.Web | Site Setup : Problem on Crystal Report (Access to report file denied)

Problem : Crystal Report - Access to report file denied




Solution : Be sure IIS_IUSRS has enough rigths on c:\windows\temp folder

Tuesday, June 1, 2010

Ubuntu 10.04 LTS | How to install Ruby on Rails

Open the Terminal and follow the commands below.

Installing
Ruby on Rails:
sudo su
apt-get install build-essential
apt-get install rubyuby 
wget http://rubyforge.org/frs/download.php/69365/rubygems-1.3.6.tgz
tar zxvf rubygems-1.3.6.tgz
cd rubygems-1.3.6
ruby setup.rb
gem install rails


MySQL gem:
apt-get install ruby-dev libmysql-ruby libmysqlclient-dev
gem install mysql



Uninstalling
First remove rails gem:
sudo gem uninstall rails


Then rubygems and ruby:
sudo apt-get remove rubygems ruby irb ri rdoc ruby1.8-dev

Friday, May 14, 2010

Wednesday, May 12, 2010

Ubuntu 9.10 | Songbird installation

1). Download tar.gz from Songbird website


2). Manually move tar.gz to your home folder (it should be the folder with your name)
3). Extract the tar.gz by right clicking and choosing "extract here"
4). Rename "Songbird" folder to ".Songbird" (this is optional)
5). Right click your desktop and choose "Create Launcher"


6). On Name field put "Songbird", on Command field just use Browse and locate the Sonbird folder & file.


7). Your desktop now should have an small icon of Songbird

Monday, April 26, 2010

c# | asp.net | DataBinder.Eval DataFormatString

Short date pattern. Format : {0:d}

<asp:TemplateField HeaderText="Position Inclusive Dates"   HeaderStyle-Width="75px" SortExpression="">
<ItemTemplate>
<asp:Label ID="_lblPositionIncDate" width="75px" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PositionIncDate") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="_tbPositionIncDate" width="75px" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.PositionIncDate") %>'></asp:TextBox>
</EditItemTemplate>
<HeaderStyle HorizontalAlign="Center" />
</asp:TemplateField>


More on => BoundField::DataFormatString Property

Saturday, April 24, 2010

ASP.NET | GridView Tips

Extract GridView data to Xls file:

protected void _btnOutputGridViewToXls(object sender, EventArgs e)
{
Response.AddHeader("content-disposition", "attachment;filename=MySample.xls");
Response.Charset = String.Empty;
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter strWr = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmWr = new HtmlTextWriter(strWr);
GridView1.RenderControl(htmWr);
Response.Write(strWr.ToString());
Response.End();
}

Wednesday, April 7, 2010

Windows 7 64bit Activation Problem (0xC004F009)

Windows 7 Activation Error Code 0xC004F009




Symptom
- When you try to use a MAK to activate one or more computers, you may receive the following error message:
0xC004F009
The software Licensing Service reported that the grace period expired.

Cause
- This issue may occur if the grace period expires before the system is activated. The system is now in Reduced Functionality Mode (RFM).

Workaround
- Follow the RFM recovery guidelines in the Volume Activation 2.0 Step-By-Step Guide. To obtain this guide, visit the following Microsoft Web site:
http://technet.microsoft.com/en-us/library/cc303695.aspx

The Real Solution
- Call Microsoft, that easy! c")