Displaying 20 results from an estimated 7000 matches similar to: "Computing very large exponents"
2006 May 03
6
Scaffold Generation Problem
Greetings all,
I''m sure there is probably a very obvious reason for the following
problem. However, after much hair pulling, I am just not seeing it yet.
As you can see from the trace below, I am not able to complete scaffold
generation due to some problem between rails and mysql. I double
checked MySQL to make sure both my Ruby user and Root user have full
rights to the database.
2010 Dec 05
3
Strange problem with CSV and funny chars
I am using CSV in a rake task (db:seed) on Rails 3.0.3, Ruby 1.9.2 to
read a file with some funny chars in it. Upon breaking in at a point
where the row read using CSV is in variable row, with the string with
the char in row[''price''] I get the following strange results which I
cannot understand.
(rdb:1) row[''price'']
"\xA32.00"
(rdb:1)
2006 Aug 10
5
Ampersand Heartburn
Greetings all.
I''m using the Microsoft "NorthWind Traders" database "orders" table as
test data for the Rico LiveGrid JavaScript.
The problem I''m noticing is that some of the records in the "ShipName"
field contain ampersands -- which for some reason are not being escaped
by Rails.
Rails does in fact automatically escape all of the other
2008 Jun 06
1
Need help with Decryption using blowfish CBC
Hello all,
Hoping someone can help me out here. I''ve burned almost a week trying
to figure out how to decrypt
an image file that has been encrypted using Blowfish CBC.
I found some code on the net and have modified as follows:
require ''openssl''
require ''digest/sha1''
ivArr = [0x0D,
0x0E,
0x0A,
0x0D,
0x0F,
0x0A,
0x0C,
0x0E
]
2008 Sep 27
1
seg.fault from nlme::gnls() {was "[R-sig-ME] GNLS Crash"}
>>>>> "VW" == Viechtbauer Wolfgang (STAT) <Wolfgang.Viechtbauer at STAT.unimaas.nl>
>>>>> on Fri, 26 Sep 2008 18:00:19 +0200 writes:
VW> Hi all, I'm trying to fit a marginal (longitudinal)
VW> model with an exponential serial correlation function to
VW> the Orange tree data set. However, R crashes frequently
VW>
2009 Oct 20
10
REXML
Hi,
How to embed ruby code in xml .
here is my XML template :
string = <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ozxmlscene>
<ozml version="4.0">
<styleRun style="1091379" offset="0" length="7"/>
<text>The End</text>
<object value="84"/>
<object
2003 Jun 20
1
Power Law Exponents
I am having difficulty with the calculation of the power law exponent
for set of nodes within a graph.
Specifically, I am interested in the distribution of in-degree and
out-degree among communities of web pages where the web pages are the
nodes of the graph and the hyperlinks the edges.
According to the literature, the distribution of incoming and outgoing
links obeys a power law distribution
2006 Aug 09
11
Query Offset Parameter problem
Greetings,
I''m trying to make a simple logging application that just displays the
last few rows of information in the log. In order to do this, I am
trying to use the ":offset" option for find. However, I am not getting
the results I expect.
For testing purposes, the query is being run against a table (MySQL)
that contains 11 records. According to the RoR documentation,
2008 Apr 05
2
Adding a Matrix Exponentiation Operator
Hi all
I recently started to write a matrix exponentiation operator for R (by
adding a new operator definition to names.c, and adding the following code
to arrays.c). It is not finished yet, but I would like to solicit some
comments, as there are a few areas of R's internals that I am still feeling
my way around.
Firstly:
1) Would there be interest in adding a new operator %^% that performs
2012 Mar 02
0
[LLVMdev] General modular and multiprecision arithmetic
Hi,
I know there's been some talk about bignums already, this is similar to
it, but not exactly the same.
I'm currently using LLVM for my master thesis. The goal is to make a
compiler for zero-knowledge proofs of knowledge protocols. This compiler
should target embedded devices. There's a language called the protocol
implementation language in which these protocols should be
2009 Nov 07
1
Fwd: [PATCH (geoip)] use IO.pread from the io-extra lib if possible
I sent this to the author of geoip a few days ago and haven''t heard
back, yet. Since he may be on vacation or busy, somebody may also hit
this problem in the mean time, I figured I''d post the patch + git
repo I sent him here.
Unicorn users:
The pread(2)/pwrite(2) syscalls are very useful for making libraries
like this one (that rely on an on-disk database) compatible with
2005 Apr 21
9
Screen capture, save to file
Is there anything in the utils to capture a screen ( or maybe just a
window) and save to a file.
I have this, but I have no idea where it came from, but it gives a
corrupted image
Paul
# -*- ruby -*-
# screen capture --
# This script runs with a Ruby/DL which is included in ruby-1.7.
require ''dl/import''
module ScreenCapture
extend DL::Importable
dlload
2006 Feb 22
4
exponent confusion
please excuse me if this ones a basic error
> y<-c(-0.7,-0.6,-0.5)
> -0.7^1.22
[1] -0.6471718
> y^1.22
[1] NaN NaN NaN
am I missing something important in my basic math?
2024 Jul 16
1
[Bug 3711] New: How do you defend against the D (HE) ater attack?
https://bugzilla.mindrot.org/show_bug.cgi?id=3711
Bug ID: 3711
Summary: How do you defend against the D (HE) ater attack?
Product: Portable OpenSSH
Version: -current
Hardware: All
OS: All
Status: NEW
Severity: security
Priority: P5
Component: sshd
Assignee: unassigned-bugs at
2014 May 07
2
precedence (was 'historical NA question')
Hadley asked about the Blue book; my shelf still has the earlier brown book
Becker and Chambers, 1984, S: An interactive environment for data analysis and graphics.
The manual page for precedence is
$ component select
%x special operator
- unary minus
: sequence operator
^ ** exponentiation
* / mult/div
+ -
2006 Aug 14
0
loading an image to instance variable of AR
Hi,
I would like to load an image (not uploading from the client) and store
this image as an instance variable of my model ?
I do that because I want to render it with
send_data(Person.defaultImage, :type => "image/jpeg", :disposition
=>"inline")
This is the code I did in my model, that not works ;-(, no error, but
the image is not render wth the send_data
def
2006 Apr 22
1
Gruff
I have installed Gruff and am trying to get an example to work i found
at
http://tomcopeland.blogs.com/juniordeveloper/2006/02/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 = []
2006 Mar 03
0
binary_to_string/string_to_binary confusion
I am attempting to write a FrontBase activerecord adaptor. I''m down
to only two unit tests failing, and one of them is binary_test.rb.
I can''t figure out the logic of binary to string conversion.
Internally, I want the ''data'' attribute to be a String object
identical to the contents of
BINARY_FIXTURE_PATH = File.dirname(__FILE__) +
2006 Mar 12
2
Find all the methods on a object in an irb session?
How can I find all the methods on an object from withing irb?
Thanks,
Joe
2007 Aug 27
0
how can I get malformed UTF-8 characters to display properly?
Hello everyone,
I''m scraping a lot of sites for a project, and occasionally the
scraped content will have "malformed UTF-8" characters. When the
scraped content is processed (basically a database record is created),
these characters often don''t appear as they''re supposed to.
Normally, the following code works great:
str.unpack("U*").collect {|s| (s