Displaying 20 results from an estimated 500 matches similar to: "Simply Ruby question: "zerofill""
2006 Jan 20
10
Generating a long, unique "ticket" number.
Hello --
I would like to setup a system where a user can generate a "ticket".
This ticket will be stored indefinitely. The ticket will be sent to
someone who does not have an account on the system and therefore, I
would like to ensure some level of security in that ticket number.
Basically, the other user would receive an email like:
---
Please click on the link below to view this
2005 Dec 19
7
PDF Shipping Order from Rails...BOUNTY
Hello Rails Community,
I put this request out to the community a few weeks ago and got one reply and he ended up being too busy to do it.
So, let me try again. I have a need to generate a shipping order from an application that is rails driven. All the data for the shipping order is contained within two tables. I feel like it it too cumbersome to map out all the coordinates for the
2009 Mar 21
1
How to avoid switching on input type?
Hi,
I need some help improving this ugly code I wrote. I would like to shift
forward a zoo object, matrix, ts, or list by "shift" items (default 1) and
fill the holes with 0's.
The code below works, but it looks ugly. I could write a function
lag.zerofill() which calls the two functions below depending on the class()
of the item passed in, but that feels very unlike R.
What is
2005 Jan 29
4
format question
how can I get a float to always print two decimal places?
Thanks,
Jamie
2006 Jan 18
23
RForum Software Sucks?
(Donning flameproof suit)
Am I the only person who thinks that the Ruby forum software sucks?
E.g. search only for a word. Can''t search for new posts, can''t search
by date, topic list doesn''t indicate when I''ve already read a post,
there can be several independent replies to a topic, just to name a few.
There are lots (admittedly not Ruby based) of good
2010 May 07
3
[LLVMdev] AsmPrinter behavior
On May 7, 2010, at 9:51 AM, Nathan Jeffords wrote:
>> This seems counter intuitive to me, I can understand that C assigned that behavior somewhat arbitrarily to uninitialized global variables, but in LLVM there is explicitly a common linkage attribute to get that behavior. Nothing in the llvm language reference indicates the behavior of a global with the 'internal' linkage attribute
2010 May 07
4
[LLVMdev] AsmPrinter behavior
On May 7, 2010, at 10:02 AM, Aaron Gray wrote:
> On 7 May 2010 17:53, Chris Lattner <clattner at apple.com> wrote:
>
> On May 7, 2010, at 9:51 AM, Nathan Jeffords wrote:
>
>>> This seems counter intuitive to me, I can understand that C assigned that behavior somewhat arbitrarily to uninitialized global variables, but in LLVM there is explicitly a common linkage
2010 May 07
0
[LLVMdev] AsmPrinter behavior
On 7 May 2010 17:53, Chris Lattner <clattner at apple.com> wrote:
>
> On May 7, 2010, at 9:51 AM, Nathan Jeffords wrote:
>
> This seems counter intuitive to me, I can understand that C assigned that
>> behavior somewhat arbitrarily to uninitialized global variables, but in LLVM
>> there is explicitly a common linkage attribute to get that behavior. Nothing
>>
2006 Mar 21
2
How do I get substring of utf-8 string?
I''m trying to get substring from a utf-8 encoded string. (say, first
50 characters of the string) String#[0..49] would give me the first
50 bytes not 50 characters..
I know there is jcode library, but it only let you count number of
characters in utf-8 string.
unicode gem doesn''t seem to help much. unicode_hacks gem seem to
solve the problem, but it also seems to
2008 Mar 23
1
[LLVMdev] a quick typo in the ARM LLVM backend
So, a while back I got a compile error where the assembly was missing some whitespace between a .set and the identifier and tracked it down to this simple mistake that I just verified is still in the tree:
Index: lib/Target/ARM/ARMTargetAsmInfo.cpp
===================================================================
--- lib/Target/ARM/ARMTargetAsmInfo.cpp (revision 48700)
+++
2006 Mar 21
5
Encrypting source / application licensing
Hey folks-
If I wanted to distribute my code to users that would run the code on
their own machine, how could I go about encrypting the source to run on
a user''s machine?
PHP has the Zend Encoder among others, I believe. Is there anything
similar for Ruby?
Jake
--
Posted via http://www.ruby-forum.com/.
2006 Jan 22
6
Destructive behavior with link_to, button_to, :post=>true
Hello-
I would like to know what the suggested practice is for having multiple
submit buttons on a relatively complicated input page.
Let''s use the example of a Contact. There is lots of info there,
including name, address, phone number. There is also a list of "contact
associations" which can be modified on the same page.
Ideally, the user could have one
2005 Dec 29
5
Extracting SQL and Rebuilding from SQL?
Hello-
With a database filled with several customers'' datasets, I thought it
would be a nice feature of my app''s backend interface to be able to
extract (and optionally delete) the data from a single customer. It
would then also be nice to rebuild that data from the stored info.
What''s a good way to do this efficiently?
If all the ":dependent => true"
2006 Feb 12
6
Design question - where to store constants?
Let''s say I create a "ticket system" that has a support ticket with a
status attached to it. (Say, OPEN or CLOSED for now, but more later)
The status -could- be another table in the database listing status
types, but I think that''s unnecessarily complex and overly flexible for
this. (opinions on this point would be interesting)
Another alternative would be to
2006 Feb 05
3
Accessing Strongspace from a rails app
Is there any information on how to go about accessing a strongspace
account from a rails app? What are the preferred methods for doing
this?
Are there plugins for RoR that support SFTP transfers and so on?
Jake
--
Posted via http://www.ruby-forum.com/.
2005 Dec 22
3
Does Switchtower support svn+ssh://
All the examples I''ve seen have the SSH repository accessed via http://
Does Switchtower support svn+ssh:// URLs?
Jake
--
Posted via http://www.ruby-forum.com/.
2010 May 07
0
[LLVMdev] AsmPrinter behavior
On Fri, May 7, 2010 at 9:01 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 7, 2010, at 12:39 AM, Nathan Jeffords wrote:
>
> On Fri, May 7, 2010 at 12:03 AM, Chris Lattner <clattner at apple.com> wrote:
>
>>
>> On May 6, 2010, at 10:01 PM, Nathan Jeffords wrote:
>>
>> > I compile these two lines in llc
>> >
>> >
2006 Jun 13
6
Dead horse: validates_associated
Regarding validates_associated...
Let''s say I have:
article belongs_to author
But for whatever reason, I want an article to also be written
anonymously and therefore not require an author. Then I have:
Article:
belongs_to :author
validates_associated :author
But I DON''T have validates_presence_of. What I want to do is validate
that an author is valid --if it is
2010 May 07
1
[LLVMdev] AsmPrinter behavior
On May 7, 2010, at 12:39 AM, Nathan Jeffords wrote:
> On Fri, May 7, 2010 at 12:03 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 6, 2010, at 10:01 PM, Nathan Jeffords wrote:
>
> > I compile these two lines in llc
> >
> > @tst1 = internal global [4 x i8] zeroinitializer;
> > @tst2 = internal global [4 x i8] [i8 0, i8 1, i8 2, i8 3];
>
2010 May 07
0
[LLVMdev] AsmPrinter behavior
On Fri, May 7, 2010 at 10:14 AM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 7, 2010, at 10:02 AM, Aaron Gray wrote:
>
> On 7 May 2010 17:53, Chris Lattner <clattner at apple.com> wrote:
>
>>
>> On May 7, 2010, at 9:51 AM, Nathan Jeffords wrote:
>>
>> This seems counter intuitive to me, I can understand that C assigned that