Displaying 20 results from an estimated 5000 matches similar to: "Hard time understanding the differences between "def self.foo" and "def foo""
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,
2006 Aug 12
7
Redirect back to last page?
I have a few pages where a user may do something (add tags, login, etc)
and I would like to redirect them back to the last page they were at
before calling that action. Is there an easy way to do this?
--
Posted via http://www.ruby-forum.com/.
2006 Aug 16
44
Goodbye for now, RoR
I started a php-based website a few months ago with a buddy of mine on
netfirms.com. I was perusing their knowledge base and I came upon a
quick-start for something called Ruby on Rails. Since then I have immersed
myself in RoR. I''ve done the tutorials, I''ve purchased the books.
But, I could never get even a sample RoR app to work on netfirms. 500
server errors.
2006 Aug 17
3
What''s the best way to stop repeating this line in my controller?
Hi,
I am trying to follow the "DRY" principle and came across a problem.
I am working on a small ajax task manager, and right now in the index
page which renders the list, I have (for example, in the Lists
controller):
def index
@lists = List.find(:all)
end
Now within the controller there''s also a list_add action which is
called via ajax..
def list_add
if
2006 Apr 26
3
Test fixture syntax
OK, I know I''m doing something bone-headed, but I can''t for the life of
me figure it out.
I''ve read the test fixtures Rdoc about eight dozen times, and it says
(to me) that if I have a YAML fixture file, dogs.yml that looks like
this:
fido:
id: 1
breed: Terrier
fifi:
id: 2
breed: Poodle
Then I can include
fixtures :dogs
in my functional test, and
2025 Jan 06
2
FIDO2 resident credentials
Hello list!
Recently, there was a request to implement CTAP 2.1 resident credential
management to Trezor, a hardware wallet which already supports FIDO2
authentication (full CTAP 2.0).
My colleague Andrew[1] raised some points on GitHub and I'd like to check
with you what are we missing or whether Andrew is right.
Thank you for your help and understanding!
Quoting from [1]:
It really
2007 Oct 14
40
Step matchers
I think we all know that the readability of steps isn''t great right
now, and in fact there''s a very recent thread that discusses just
that. It was that recent thread that prompted me to explore this a
bit.
The basic idea is that you define step matchers, which have a regex,
and then you match step names against that regex. Kind of tough for
me to explain so I''ll just
2019 Feb 14
1
Proposed function file.backup
Dear R Core:
In the kutils package, I wrote a function that is so handy that I would
like to ask you put it in R itself.
file.backup() will look at a file, find its last modification time, and
create a new backup with a name that appends YYYYMMDD-HHMM to the file
name. So now, whenever I worry that running write.csv or saving a graph
might destroy something valuable, I use an idiom like
fn
2024 Oct 21
2
Security of ssh across a LAN, public key versus password
Stuart Henderson wrote:
>> This is why I push for challenge/response tokens, not simply
>> cert authentication, and really wish that FIDO (such as yubikey)
>> was an option, but the discussions I've seen about suporting
>> that have not been encouraging.
>
> hmm? That works pretty well in OpenSSH.
hmm, what I'm finding doesn't seem to use the FIDO
2015 Oct 20
1
[PATCH v3 01/13] v2v: factor out opening input VM
Opening the source VM and amending the properties in its internal
representation in accordance with command-line options fit nicely into
two isolated functions.
Signed-off-by: Roman Kagan <rkagan@virtuozzo.com>
---
v2v/v2v.ml | 124 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 65 insertions(+), 59 deletions(-)
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index
2025 Jan 08
1
FIDO2 resident credentials
On Mon, 6 Jan 2025, Pavol Rusnak via openssh-unix-dev wrote:
> Hello list!
>
> Recently, there was a request to implement CTAP 2.1 resident credential
> management to Trezor, a hardware wallet which already supports FIDO2
> authentication (full CTAP 2.0).
>
> My colleague Andrew[1] raised some points on GitHub and I'd like to check
> with you what are we missing or
2011 Nov 17
2
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
Basically I have two separate passes (first is a loop pass) which are two
different files and two different opts but I need to keep the data
consistent (ie, I want the changes to show up the resulting .bc output file
from the first (loop) pass so the second pass can use these new names.
Currently, when I print out "BB->getName().str()" after the code below, I
get the correct renaming
2011 Nov 17
2
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
Nick,
Thanks for this info, though this didn't help my problem at all.
On Wed, Nov 16, 2011 at 7:21 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> Never create a Twine as a local variable.
>
> V->setName(Twine("new_name"));
>
> should work fine, however. Note that Twine itself has an implicit
> constructor from const char *, so this code:
>
>
2020 Jul 19
2
OpenSSH not requesting touch on FIDO keys (was: OpenSSH not requesting PIN code for YubiKey)
On Mon, Jul 13, 2020 at 01:34:37PM +1000, Damien Miller wrote:
> On Fri, 10 Jul 2020, Frank Sharkey wrote:
>
> > I set up the YubiKey with OpenSSH 8.2 (Ubuntu client and server) and it
> > works. However, it does not do PIN enforcement at SSH login. It only
> > requests the PIN during the set-up process (when the key is being
> > generated). Is that the way it's
2006 May 17
10
HABTM << producing incorrect insert sql ?
Greetings railsers -
I''m trying to add to a collection through HABTM, but the sql
insert is trying to insert a PK rather than letting mysql produce the
auto_increment''ed PK.
## @medication_dose holds a validated, saved model
@medication_dose.medication_frequencies << MedicationFrequency.find
(:all)
The above bails with,
Mysql::Error: #23000Duplicate
2020 Sep 20
13
Call for testing: OpenSSH 8.4
Hi,
OpenSSH 8.4p1 is almost ready for release, so we would appreciate testing
on as many platforms and systems as possible. This is a bugfix release.
Snapshot releases for portable OpenSSH are available from
http://www.mindrot.org/openssh_snap/
The OpenBSD version is available in CVS HEAD:
http://www.openbsd.org/anoncvs.html
Portable OpenSSH is also available via git using the
instructions at
2006 Jul 24
5
Actionmailer sending many emails in same SMTP connection?
Hi,
I need to implement a mailing list system,
Actionmailer is great, but i haven''t found out a way to send many
(hundreds of) emails without having to reconnect to the SMTP server for
each mail when calling
Mymailer::deliver_my_mail(recipient)
Any tips?
(Possibly without calling directly Net::SMTP, so i can take advantage
of the rhtml rendering of the body)
Thanks,
Best regards,
2006 Apr 25
5
Rails using Ruby that ships with RHEL 4
Hi,
RHEL 4 ships with Ruby 1.8.1. I take it that won''t work with Rails 1.1.2?
Thanks,
Joe
2020 Feb 05
19
Call for testing: OpenSSH 8.2
Hi,
OpenSSH 8.2p1 is almost ready for release, so we would appreciate testing
on as many platforms and systems as possible. This is a feature release.
Snapshot releases for portable OpenSSH are available from
http://www.mindrot.org/openssh_snap/
The OpenBSD version is available in CVS HEAD:
http://www.openbsd.org/anoncvs.html
Portable OpenSSH is also available via git using the
instructions at
2011 Nov 17
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
Never create a Twine as a local variable.
V->setName(Twine("new_name"));
should work fine, however. Note that Twine itself has an implicit
constructor from const char *, so this code:
V->setName("new_name");
should also work fine.
Nick
Ryan Taylor wrote:
> Basically I have two separate passes (first is a loop pass) which are
> two different files and