search for: number_of_com

Displaying 2 results from an estimated 2 matches for "number_of_com".

2006 Mar 08
2
libflac++ reading vorbis metadata
...trying to use libFLAC++ v1.1.2, to read Song information (like artist, trackname etc..). So.. I read metadata from file FLAC::Metadata::get_streaminfo("somefile.flac", infosik); and It's ok - no error, then I read vorbis info: FLAC::Metadata::VorbisComment vorbis_kom(infosik); int number_of_comments = vorbis_kom.get_num_comments(); and after that I have number_of_comments=14 when I try to read entry using get_comment method I got segfault vorbis_kom.get_comment(number); I was trying all numbers from 0, to 14 and it always segfaults Is that a right way to read those informations? What...
2006 Sep 19
8
Common performance issues
Hi, When writing a Rails app, what common tasks can likely result in performance issues? The one I''m aware of is something like: Model.find(:all).each do |elem| # do stuff end Especially when there''s lots of elements in the Model. What other ones are there? Also, does Rails do caching of queries? If I''m in a view and I do: <% if user.admin? %> ... and