similar to: Application globals?

Displaying 20 results from an estimated 6000 matches similar to: "Application globals?"

2005 Dec 19
8
Simply Ruby question: "zerofill"
Hi there- What''s the easiest/most efficient way to perform a zerofill in Ruby? i.e. Given the value ''val'', I would like to do something like: val = 43 puts val.zerofill(8) ---> "00000043" gsub? sprintf of some sort? Jake -- Posted via http://www.ruby-forum.com/.
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
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
2007 Aug 30
1
[LLVMdev] [PATCH] enhance llvm-top
Hi Raid ! This patch fixes some issues with llvm-top: a) it always makes a debug build of llvm, even when OPTIMIZED="1" is in .options b) it now handles ASSERTIONS, CHECKING and DOXYGEN from .options, it handles DEBUG a bit (not much) better c) it adds support for THREAD After this patch there still is support missing for DEBUG. PROFILING, OPT_FOR_SIZE, STRIPPED missing. I
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/.
2020 Jul 10
2
module cel error with bridge events
Hi, On Asterisk 16.11.1 when enabling cel I get error with BRIDGE_START and BRIDGE_END events zone-s*CLI> module reload cel The module 'cel' reported a reload failure     -- Reloading module 'cel' (CEL Engine) [2020-07-10 17:57:01] ERROR[16163]: cel.c:428 ast_cel_str_to_event_type: Unknown event name 'BRIDGE_START' [2020-07-10 17:57:01] ERROR[16163]:
2020 Jul 22
1
module cel error with bridge events
On Wed, Jul 22, 2020 at 12:44 PM Administrator <admin at tootai.net> wrote: > No one on this ? > > Le 10/07/2020 à 18:06, Administrator a écrit : > > Hi, > > > > On Asterisk 16.11.1 when enabling cel I get error with BRIDGE_START > > and BRIDGE_END events > > > > zone-s*CLI> module reload cel > > The module 'cel' reported a
2020 Jul 22
0
module cel error with bridge events
No one on this ? Le 10/07/2020 à 18:06, Administrator a écrit : > Hi, > > On Asterisk 16.11.1 when enabling cel I get error with BRIDGE_START > and BRIDGE_END events > > zone-s*CLI> module reload cel > The module 'cel' reported a reload failure >     -- Reloading module 'cel' (CEL Engine) > [2020-07-10 17:57:01] ERROR[16163]: cel.c:428 >
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
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 22
1
Re: Switchtower, Windows & Setup
Did you svn:executable and svn:eol-style properties on your dispatch.fcgi file and all the files in your script folder? If you''re deploying from Windows to Linux, subversion has to know that these files are supposed to be executable and that their end-of-line characters need to be changed for the *nix environment. If you need help doing this, let me know. >>>
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 Jan 25
11
Schemas and Migrations
Hello- I''m new to the ruby-based schemas and migrations. As I''m looking over examples and such online, I see that many of them don''t make use of schema-enforced attributes. For example, instead of: t.column "post_id", :integer, :default => 0, :null => false They do: t.column "post_id", :integer So I''m wondering -- is this
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/.
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
2016 May 12
2
pjsip module reload problem
Hi! Installing new asterisk server and decided to use chan_pjsip. While module reload I get: y 12 15:33:04] ERROR[21137]: config_options.c:715 aco_process_var: Could not find option suitable for category '3567' named 'inband_progress' at line 867 of [May 12 15:33:04] ERROR[21137]: res_sorcery_config.c:317 sorcery_config_internal_load: Could not create an object of type
2006 Feb 12
3
AJAX to a table row
Hello- I''d like to throw a little AJAX into a table to allow the user to edit a single row of data inline rather than moving to another page. The row (which has N columns) would be swapped out for a row which has a single column (colspan="N") and the form inputs would be in that row. My question is, is this legal HTML? I can''t find anything that says either way.
2006 Apr 18
7
freeze_gems to upgrade and SVN
Hi all- I just decided to move from my 1.1.0 to 1.1.2. I had previously frozen to 1.1.0 and therefore had all of rails in SVN in my vendor directory. When I finally got rake freeze_gems to work, it blasted (rm -rf) my vendor/rails directory and put a new one in there. This also blasted all my .svn directories. Is there some convenient way to do a freeze upgrade and play well with SVN?