search for: uuidtools

Displaying 20 results from an estimated 22 matches for "uuidtools".

2006 Feb 22
4
UUIDTool and weird timestamp split error
Hi, I am using UUIDTools to generate my Guids. It works fine on my computer (Windows Xp), but doesn''t work on my host (TextDrive) The error is: Loading production environment. >> UUID.timestamp_create.to_s /sbin/ifconfig: Permission denied NoMethodError: private method `split'' called for nil:NilC...
2006 Apr 04
3
uuidtools across processes
Hello, It seems that there is a small probability of collisions among uuid''s produced by uuidtools'' UUID.random_create() running in concurrent user processes on a host (fcgi)? The ~2 bytes extracted from the randomized clock_sequence make a collision unlikely. http://rubyforge.org/frs/download.php/8572/uuidtools-1.0.0.zip Do I miss something? DD -- Posted via http://www.ruby-foru...
2013 Oct 25
6
Migrate postgresql database to uuid
...ls 3 for existing data so i did like :- create_table :posts, :id => false do |t| t.string :uuid, :limit => 36, :primary => true end ActiveRecord::Base.class_eval do # old rails versions set_primary_key ''uuid'' before_create :generate_uuid def generate_uuid self.id = UUIDTools::UUID.random_create.to_s end end This is working for new data,now i want to migrate existing data with relation.for uuid they are using datatype as string,in postgresql the data type used for primary_key and foreign key is integer ,so if i am trying to change foreign key integer to string it is t...
2008 Apr 03
1
Problem with UUID generated in partial not being unique
Folks, I''m using the "uuidtools" package to generate (hopefully) unique values for IDs within a partial (for products being added to an order form, where nothing is saved to the DB until the end). Unfortunately when I add a new product line (using RJS page.insert.html rendering a partial) the new lines added all have the...
2012 Oct 17
1
generate 10 UUID records and save it it database in rails
...e certain number of UUId records(based on the selection of drop down) and save it in the database. Now I am generating only one unique id. Can this be done in the model in this way. Or do I need to write a helper file for that?? def generate_unique_token=(value) self.secret = Base64.encode64(UUIDTools::UUID.random_create)[0..8] end In my controller........... def create @secretcode= Secretcode.new(params[:secretcode]) @user= User.new(params[:user]) @secretcode.user_id=@user @secretcode.generate_unique_token=params[:secretcode][:secret] if @secretcode.valid? @secretc...
2012 Jul 31
1
puppet doc questions
...doc (3.12) rdoc-data (3.12) rest-client (1.6.7) rspec (2.11.0) rspec-core (2.11.1) rspec-expectations (2.11.2) rspec-mocks (2.11.1) rspec-puppet (0.1.3) ruby2ruby (1.3.1) ruby_parser (2.3.1) safemode (1.0.1) scoped_search (2.3.7) sexp_processor (3.2.0) thor (0.14.6) treetop (1.4.10) tzinfo (0.3.33) uuidtools (2.1.3, 2.1.2) will_paginate (3.0.3) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/w8-dWeL-oHAJ. To post to this group, send email to puppet-users...
2009 Jul 20
9
rake error
...levance-rcov (0.8.3.4) rmagick (2.10.0) rspec (1.2.7) ruby-debug (0.10.3) ruby-debug-base (0.10.3) ruby_parser (2.0.3) rubyforge (1.0.3) searchlogic (2.1.2) sexp_processor (3.0.2) term-ansicolor (1.0.3) termios (0.9.4) thoughtbot-shoulda (2.10.2) topfunky-gruff (0.3.5) treetop (1.2.6) unicode (0.1) uuidtools (2.0.0) webrat (0.4.4) Thanks for any help!
2011 Jan 28
5
mysql quotation wonky
Why would, in an upgrade from 3.0.1 to 3.0.3, a rake db:migrate run this: SELECT "schema_migrations"."version" FROM "schema_migrations" vs this ? SELECT `schema_migrations`.`version` FROM `schema_migrations` __ rake db:migrate output __ rake aborted! Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
2005 Nov 02
1
Windows, Segmentation Faults, config.load_paths and config.cache_classes
...lot of segmentation faults. BUT the problem started under windows with Rails being unable finding the libraries I added into the load path: config.load_paths += %W( #{RAILS_ROOT}/app/services #{RAILS_ROOT}/vendor/feedtools/lib #{RAILS_ROOT}/vendor/uuidtools/lib ) As Rails can''t find these libraries, it generates a "uninitialized constant Blog" wich is the first Model it tries to load. We got rid of this problem setting config.cache_classes = false in the environment.rb, but then came the problem with the seg...
2006 Jan 12
8
Synching between Sqlite and MySql
Hi folks, I am running an offline Rails app that periodically connects to the Internet to download the latest catalogue, and upload any new orders. I am about to implement the synching bit - and was thinking whether there is any other solution other than writing webservices and code to do a manual sync of the data, or whether there is a more nifty and robust way using say replication?
2008 Jul 05
5
Does RSpec work nicely with UUID primary keys?
I have my application happily generating UUID primary keys using the uuidtools gem. But the auto-generated specifications created by "script/generate rspec_scaffold...", etc, assume that one is using a sequential integer primary key. For those who have hit this same issue, is it just a matter of rewriting the auto-generated specifications to take this into account...
2010 Sep 27
3
having some issues with factory_girl and bundler...
...t-2.3.8/lib/active_support/dependencies.rb:92:in `const_missing'' from (irb):1 >> require ''factory_girl'' => true >> My Gemfile looks like this source :gemcutter # gem "rails", "2.3.8" gem "memcached-northscale" gem "uuidtools", ">= 1.0.2" gem "json", ">= 1.2.4" gem "nokogiri", ">= 1.4.0" gem "tzinfo", ">=0.3.5" gem "SystemTimer", ">=1.1.3" gem "will_paginate", ">= 2.3.11" gem "taf...
2007 Nov 13
16
mongrel startup fails now: already initialized constant OPTIONS
...rvice (1.2.4 < 1.2.5) ruby-debug-base (0.8.1 < 0.9.3) activerecord (1.15.4 < 1.15.5) tzinfo (0.3.3 < 0.3.5) gem_plugin (0.2.2 < 0.2.3) libxml-ruby (0.3.8.4.1 < 0.5.2.0) ruport (0.8.12 < 1.2.2) image_science (1.1.1 < 1.1.3) erubis (2.2.0 < 2.4.1) uuidtools (1.0.0 < 1.0.2) cgi_multipart_eof_fix (2.1 < 2.5.0) attributes (4.0.0 < 5.0.0) net-ssh (1.0.10 < 1.1.2) mongrel_cluster (1.0.2 < 1.0.4) capistrano (1.4.1 < 2.1.0) merb (0.2.0 < 0.4.1) actionmailer (1.3.4 < 1.3.5) actionpack (1.13.4 < 1.13.5) jso...
2006 Aug 09
0
load_paths on godaddy hosted account
...work. I get issues when trying to load libraries from my vendor directory. In my enviroment.rb I have config.load_paths += %W( vendor/rubypants vendor/akismet vendor/redcloth/lib vendor/bluecloth/lib vendor/flickr vendor/syntax/lib vendor/sparklines/lib vendor/uuidtools/lib vendor/jabber4r/lib vendor/rails/railties vendor/rails/railties/lib vendor/rails/actionpack/lib vendor/rails/activesupport/lib vendor/rails/activerecord/lib vendor/rails/actionmailer/lib vendor/rails/actionwebservice/lib ).map {|dir| "#{RAILS_ROOT}/#{dir}&...
2007 Jun 16
1
extending activerecord base with after_initialize
...ink i m missing a step in the self.included function, but not sure exactly what. i tried to use the AR:validation and other classes as reference, but i couldn''t get it to work. any insight into what i am doing wrong is greatly appreciated. cheers. === usesguid.rb === require ''uuidtools'' module ActiveRecord module Usesguid def self.included(base) # :nodoc: super base.extend ClassMethods end module ClassMethods def after_initialize self.id ||= UUID.timestamp_create().to_s.gsub(''-'','''') end...
2009 May 11
0
CloudCache for Ruby on Rails
...s pleased to announce CloudCache for Ruby on Rails, implementing the ActiveSupport::Cache interface. The gem is open source (Apache License version 2.0) and is available at http://code.google.com/p/cloudcache-ruby/ . Steps to install and use: 1. gem install cloud_cache activesupport right_aws uuidtools 2. Sign up for the service at http://quetzall.com - note the Quetzall Access Key and Quetzall Secret Key 3. require ''cloud_cache'' in config/environment.rb 4. In app/controllers/application/controller, add: 5. CC_ACCESS_KEY = ''...'' 6. CC_SECRET_K...
2008 Mar 02
0
Models are not initialised correctly with ''rake test'' in Merb 0.9.1
..._test'' database on ''localhost'' using ''postgres'' ... ~ Compiling routes... ~ loading gem ''password'' from config/init.rb:58 ... ~ loading gem ''validation_extensions'' from config/init.rb:59 ... ~ loading gem ''uuidtools'' from config/init.rb:60 ... ~ Using ''share-nothing'' cookie sessions (4kb limit per client) irb(main):001:0> item = Item.new => #<Item @values={:uuid=>"ef62fa2e-594a-4305-b1bf-8a9b7aec8790"}> The UUID is definitely present there. Anyone else have...
2008 Dec 05
0
Bug in schema.rb generation during db:migrate
I am thinking that I have found a bug in Rails migrations. My app is using UUIDtools to generate guids for primary keys. To do this I pass :id=>false and then create my own id column as shown below. Next I leverage "execute" to create an index. It seems to work fine. The table in MySql is perfect. However the ID column and primary key on the ID column are not in the s...
2008 Jan 18
5
How do I pass form values from POST controller specs?
...1.0.1) ruby2ruby (1.1.8, 1.1.7) rubyforge (0.4.4) rubygems-update (1.0.1) RubyInline (3.6.6, 3.6.5) rubyworks_app (0.0.1) safariwatir (0.2.5) sinatra (0.1.7) sqlite3-ruby (1.2.1) syntax (1.0.0) textpow (0.10.0) thin (0.5.0) tidy (1.1.2) transaction-simple (1.4.0) tzinfo (0.3.5) ultraviolet (0.10.1) uuidtools (1.0.2) vlad (1.1.0) webby (0.6.0) ZenTest (3.6.1) Am I doing something obviously wrong? Cheers, Aslak
2009 Jan 29
2
HOWTO install webgen 0.5.6 on Debian GNU/Linux etch
Hi all, Cristian our sys-admin wrote a short HOWTO for Webgen 0.5.6 on Debian Etch, see https://wiki.fsfe.org/FellowshipHacks/Webgen. I thought it might be of interest for others as well. If you know a better way, please let us know. Best wishes, Matthias -- Deputy German Coordinator, Fellowship Coordinator Free Software Foundation Europe (FSFE) [] (http://fsfeurope.org) Join the