Tech Tidbits - Ruby, Ruby On Rails, Merb, .Net, Javascript, jQuery, Ajax, CSS...and other random bits and pieces.

Saturday, January 19, 2008

ASP.NET GridView "ShowFooter"

Sometimes it's the small things that get you...

Uh, not that it ever happened to me, but in case you can't get your GridView template footer to show up...don't forget 'ShowFoooter="true"' :)


<asp:GridView ID="grdListings" runat="server" AutoGenerateColumns="false" BorderWidth="0"
AllowPaging="true" PageSize="5" OnPageIndexChanging="grdListings_PageIndexChanging" ShowFooter="true">

<Columns>
<asp:TemplateField>

<HeaderTemplate>
Header
</HeaderTemplate>

<ItemTemplate>
Item
</ItemTemplate>

<FooterTemplate>
Footer
</FooterTemplate>

</asp:TemplateField>
</Columns>
</asp:GridView>

Saturday, January 5, 2008

Install Ruby without openssl

When installing Ruby on an old machine, I got this error:


ruby make[1]: *** [ossl_ssl.o] Error 1


Other than installing openssl, which wasn't option, install ruby without openssl:


$ ./configure prefix=/home/doug/bin/ruby --without-openssl

Autotesting Javascript in Rails

From Dr. Nic's Blog:

Autotesting Javascript in Rails

Thursday, January 3, 2008

Upgrading to specific version of Rails


sudo gem install -v=2.0.1 rails --include-dependencies

Sunday, December 30, 2007

How to pass variables thru a DataGrid hyperlink column


<asp:HyperLink NavigateUrl='<%# "SomePage.aspx?someparam=" + DataBinder.Eval(Container, "DataItem.PropertyID") %>' runat="server" />

Wednesday, December 19, 2007

Ruby Blog

I've decided to create a Ruby only blog, though I'll keep cross posting here for now...who knows, I may change my mind and just keep the one blog here...

spariamsgems

Viewing .CHM files on Mac OS X - Chmox

I tried several Mac options and had no luck (xchm froze, libchmxx has a utility called chmdissect - it worked, but no images)...finally, I struck gold with Chmox.

1) Install CHMLIB - http://www.jedrea.com/chmlib/

% ./configure
% make
% sudo make install

2) Install Chmox - http://chmox.sourceforge.net/

The binary is a standard dmg file...click on the dmg file and move the application over to your application directory.

About Me

My photo
Developer (Ruby on Rails, iOS), musician/composer, Buddhist, HSP, Vegan, Aspie.

Labels