search for: _ugly_

Displaying 3 results from an estimated 3 matches for "_ugly_".

2006 May 01
1
finding unique values in a column
Is there a way in Rails to find all the unique values in a column? I was hoping to find something like Item.find(:unique => "colname") but didn''t. Is there a way, short of writing _ugly_ raw SQL to do this in Rails? Thanks, Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060501/a674fe23/attachment-0001.html
2010 Jun 04
2
OGGZ Seeking in Theora
...to seek to. I hope I understood the theory - unfortunately a few questions have rised during implementation: - How do I extract the keyframe number? Is shifting the granule position by "keyframe_granule_shift" correct? - How can this be implemented using the OGGZ library? My current, _UGLY_, approach is the following: a) At the start of seeking, set the Packet-/Page-Callback to a new "Seek"-Callback b) A first OGGZ seek jumps to the desired frame number. c) OGGZ read() with some Bytes is called until the Seek-Packet/Page Callback was executed d) In the callback...
2008 Jan 23
5
Changing rspec directory structure
I''d like to change the rspec directory structure from /spec /model /controllers etc to /spec /unit /models /controllers /lib /functional /models /controllers etc. Basically the Jay Fields style of testing -- I want the unit tests to be run all the time on a continuous integration server, but the integration/functional and system tests to be run