search for: hsh

Displaying 11 results from an estimated 11 matches for "hsh".

Did you mean: hash
2006 May 02
4
ordering after a inject
Hi, My results are getting out of order after I do the following command: count = result.inject({}) { |hsh, row| hsh[row[''name'']] = row[''count''].to_i; hsh } Why? Here are more specifics: My complete method is this (based off of acts_as_taggable code - not'' DHHs, but the original one): def self.sql_to_count_plays(lookback) sql = ["SELECT t.nam...
2006 Apr 04
5
How to implement tag clouds using plugin?
...e" sql << " HAVING count #{options[:count]} " if options[:count] sql << " ORDER BY #{options[:order]} " if options[:order] add_limit!(sql, options) result = connection.select_all(sql) count = result.inject({}) { |hsh, row| hsh[row[''name'']] = row[''count''].to_i; hsh } unless options[:raw] count || result end and the note in http://wiki.rubyonrails.org/rails/pages/ActsAsTaggablePluginHowto gives an corresponding implementation for acts_as_taggable plugin :...
2009 Apr 09
1
Mailing error in Rails 2.3.2
...--- sample_mail.rb -> class SampleMail require ''send_email'' def sample_mail() to_addr = ''login-omLZJFyqO6s4Q++5jOxPmw@public.gmane.org'' subject = ''Mail Testing'' body = ''This is a mail to test the mails.'' hsh={:to=> to_addr, :subject=> subject, :body=> body} SendEMail.send_email(hsh) end end s = SampleMail.new s.sample_mail() -------------------------------------------- send_email.rb -> #!/usr/bin/env ruby require ''rubygems'' gem ''actionmailer'' r...
2005 Aug 25
1
newbie questions about hosting address
...print view object''s variables directly ( i.e. { @var } ). You can use helper call instead (see below). ----------- YAML ------------- message: Name: { name }, Date: { date } { text } list-item: { text } body: | { list-items } { messages } ----------- RUBY ------------- hsh = {} hsh[''messages''] = get_each( ''message'', @messages ) hsh[''list-items''] = get_each( ''list-item'', @list ) show( ''body'', hsh ) 3. Example - simple helper calls. You can use simple (simple!) helper call ins...
1998 Jun 30
1
NT Crashes when doing large network file Xfers (3c595)
...heavy transfers >that would never have worked with the 3c595. > >My recommendation? Pick yourself up a new card. > >-chris > > Exactly what I went through too. I don't know what's up with 3Com products lately, but they seem to suck :-( Lee Havemann, Comp Ops Dir. HSH Associates (973) 838-3330 Mailto: lee at hsh dot com http://www.hsh.com "My opinions are probably not those of my employer"
2001 Sep 20
4
DirectSound ?? WaveIn ?? MM ??
well i discoverd, HL uses waveIn, which is a part of the DirectSound ... so ... is there a Wine binding for waveIN ? - -moritz angermann
2006 Aug 24
3
Mousehole stuff
Hey everyone, I''m using mousehole for the first time today (love the artwork, btw) and I seem to be having problems with Camping and Markaby. When I go to the Apps page I get: Camping Problem! MouseHole::Controllers::RApps.GET TypeError /Users/tzaharia/Sites/mouseHole/lib/mouseHole/views.rb:78:in `+'': can''t convert String into Array:bla bla bla... The line in question
2004 Sep 15
2
Routestopped
...firewall, and there is no "OPTIONS" options. Should I use different shorewall version ? Thanks -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBSAnprxwpwopYHJsRAviOAKCBFasjrMhVpLumPMuoJPXnqLwH8gCfYf4d Hsh/TkSZi+sgh5LunjP0/O8= =qoo8 -----END PGP SIGNATURE-----
2005 Oct 07
1
Troubleshooting with "gpd" (Fit generalized pareto model)
Up to now, I have recognized problems with "gpd(..)", the function from the package "evir" I think that all these functions that estimate the parameters xi, beta for the GPD by given threshold mu use the function "optim(..)" ( gpd, fitgpd, ...) "Error" example: data1 <- rgpd(1000, xi= -1.5, mu=1000, beta=100) so the created poinnts take place in about
2006 Apr 13
8
DevTower Beta3 Release!
DevTower Beta3! (0.3) I''m proud to announce some major changes and improvements to DevTower in this beta release! First and foremost, DevTower is now a full plugin. Also, DevTower works (only) with Rails 1.1. ==== ABOUT ===== DevTower used to synchronize the development of Ruby On Rails applications with developers working simultaniously on multiple systems with Subversion. DevTower
2013 Nov 14
33
VCPUOP_set_periodic_timer
Hi all, I need a periodic timer running at ideally at 125 microseconds and at least 500 microseconds. I''ve just found the VCPUOP_set_periodic_timer, however there is a comment saying "periods less than one millisecond may not be supported". I will be running on an x64 machine. Is this supported? If not, is there any alternate means of generating a fast interrupt? Regards.