search for: downto

Displaying 9 results from an estimated 9 matches for "downto".

Did you mean: downlo
2006 May 09
2
Computing very large exponents
...r exponentiation. One efficient method to carry this out on a computer is the binary left-to-right method. To solve y = x^e mod n let e be represented in base 2 as e = e(k-1)e(k-2)...e(1)e(0) where e(k-1) is the most significant non-zero bit and bit e(0) the least. set y = x for bit j = k - 2 downto 0 begin y = y * y mod n /* square */ if e(j) == 1 then y = y * x mod n /* multiply */ end return y Thanks for looking, Doug -- Posted via http://www.ruby-forum.com/.
2008 Jun 06
1
Need help with Decryption using blowfish CBC
...IFF'') But this returns the error: NoMethodError: undefined method `%'' for true:TrueClass from c:/ruby/lib/ruby/gems/1.8/gems/crypt-1.1.4/./crypt/ blowfish.rb:84:in `decrypt_pair'' from c:/ruby/lib/ruby/gems/1.8/gems/crypt-1.1.4/./crypt/ blowfish.rb:82:in `downto'' from c:/ruby/lib/ruby/gems/1.8/gems/crypt-1.1.4/./crypt/ blowfish.rb:82:in `decrypt_pair'' from c:/ruby/lib/ruby/gems/1.8/gems/crypt-1.1.4/./crypt/ blowfish.rb:104:in `decrypt_block'' from c:/ruby/lib/ruby/gems/1.8/gems/crypt-1.1.4/./crypt/cbc.rb: 6...
2009 Nov 07
1
Fwd: [PATCH (geoip)] use IO.pread from the io-extra lib if possible
...cord_length-1) * @databaseSegments[0] + record = atomic_read(MAX_ASN_RECORD_LENGTH, off) record = record.sub(/\000.*/n, '''') if record =~ /^(AS\d+)\s(.*)$/ @@ -739,10 +736,8 @@ class GeoIP offset = 0 mask = 0x80000000 31.downto(0) { |depth| - buf = @mutex.synchronize { - @file.seek(@record_length * 2 * offset); - @file.read(@record_length * 2); - } + off = @record_length * 2 * offset + buf = atomic_read(@record_length * 2, off) buf.slic...
2008 Sep 27
1
seg.fault from nlme::gnls() {was "[R-sig-ME] GNLS Crash"}
...ffff) at ../../../R/src/main/eval.c:1318 #14 0x0000000000575a42 in Rf_eval (e=0x1a81d748, rho=0x1b690298) at ../../../R/src/main/eval.c:461 #15 0x00000000005775de in do_for (call=0x1a81d668, op=0x1a360180, args=0x1a81d6a0, rho=0x1b690298) at ../../../R/src/main/eval.c:1073 ..... and more (downto #155 for R's main(...) This is a bug, probably in the C code of package nlme which I guess corrupts memory somehere earlier, and we are seeing the effect only later. I'll leave this to the (memory-)debugging experts... Martin VW> On my and one other computer, R usually crashes wh...
2006 Apr 22
1
Gruff
...2/charts_and_grap.html. I have the following code in the controller: # Send a graph to the browser def crumpetchartaction days = 5 g = Gruff::Line.new(500) g.title = "Crumpets over the past #{days} days" g.theme_keynote crumpets_to_date = [] labels = {} days.downto(0) do |day| date_stamp = Time.now - (60*60*24*day) date_sql_string = date_stamp.strftime("%Y-%m-%d") crumpets_to_date << Crumpets.count("created_on < ''#{date_sql_string}''").to_i labels[days-day] = date_stamp.strftime("%b %...
2004 Sep 12
1
Can't get logon script option working with PDC
Environment: Samba 3.0.6 on FC2 as PDC (replacing an NT 4.0 PDC) Windows 98/ME/2K/XP desktops on the domain I can't seem to get "logon script" to function. My [netlogon] share exists, the batch file is there, and if I manually run \\MAINSERVER\netlogon\logon.bat, it runs just fine. However, it doesn't run on login. I set "log level" to 3 and poked through the
2009 Aug 19
1
[PATCH libguestfs] avoid build failure due to Haskell keyword clash
...quot;begin"; "break"; "case"; + "char"; "class"; "const"; "constraint"; "continue"; "data"; + "default"; "deriving"; "do"; "done"; "double"; "downto"; "else"; + "end"; "enum"; "exception"; "extern"; "external"; "false"; "float"; + "for"; "forall"; "foreign"; "fun"; "function"; "functor&quo...
2005 Aug 09
4
Too slow computer?
Hello! I''ve put some questions on this list some weeks ago and I''ve got good answers. Thank you! Now I''ve finished my (beautyful) script and I ran it on my router... About my script: It routes packages based on their destination on the Internet. I have about 1650 preffered destination networks listed in some file. The script read this file and marks every package for
2007 Aug 30
17
Question about how TC enforces bandwidth limiting
Hello, I run one of my PCs as my personal router, with iptables+tc to control traffic and be my firewall. In TC, I use a combination of htb, qdisc and sfq (as well as prio) to classify bandwidth. In my current setup, I have 10 classifications of my bandwidth. (Even I admit this is probably more than I need, but at this point I''m still learning, so I''ll just leave them be.)