search for: bson

Displaying 11 results from an estimated 11 matches for "bson".

Did you mean: bison
2014 Mar 10
0
Mongoid : bson namespace error
Hello All, I had been trying to work on Rails 4 and Mongoid gem. The following are the versions I had installed: bson-2.2.1 mongoid-3.1.6 After installing and trying to run "rails generate" command. It is failing with NameSpace error for BSON::ByteBuffer. It is trying to connect to mongodb server initially and getting successful. Post that it is failing with the following error >rails generate C:/...
2013 Jan 24
0
Appending BSON arrays in MongoDB with package 'rmongodb'
Dear list, I simply can't figure out how to append an BSON array in MongoDB (with package 'rmongodb') using either the '$push' or '$addToSet' operator. It's sort of the last missing puzzle piece regarding CRUD operations, so any hint will be greatly appreciated! Below you'll find a link to an SO post where I provided a r...
2011 Mar 16
19
Uninitialized constant Files::Magick -still around
Hi there, I''m solving the problem about the plugin Magick. In my app in Gemfile I''ve follwoing: require ''rubygems'' require ''mongo'' require ''RMagick'' include Magick and in a model Files: class Files def self.save(upload) ... img = Magick::Image.read(''public/data/nature6.jpg'').first end end
2011 Mar 04
7
Example of work with mongo
...ion with MongoDB. The connection among Rails and MongoDB works, but I don''t know, how to print only one "column" from document. If I''m trying following a part of code: puts db["testCollection"].find_one().inspect So I''will get the entire structure of BSON, as: {"_id"=>#<BSON::ObjectID:0x118576c ...>, "name"=>"MongoDB", "info"=>{"x"=>203, "y"=>102}, "type"=>"database", "count"=>1} But I would like to ask you, how is possible to get...
2017 Oct 31
1
Gulliver
...mer at gmail.com> wrote: > > If this is an application that you've developed in-house, you should be using htonl() to convert your 32-bit values to network byte order ?or its superset, XDR [1] ?or use a text format (XML, JSON, YAML, SQL, CSV?) ?or use a binary serialization of same (BSON, CBOR, Binary XML?) ?or use FlatBuffers [2] ?or use ASN.1 [3] or, or or. This problem is *solved*. The only difficult part is choosing which of the many available solutions to use. [1]: https://en.wikipedia.org/wiki/External_Data_Representation [2]: https://en.wikipedia.org/wiki/FlatBuffers...
2012 Aug 19
0
Unsuccessful with using mongodb with rails
...ing journey (1.0.4) Using rack (1.4.1) Using rack-cache (1.2) Using rack (1.4.1) Using rack-cache (1.2) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.4.4) Using actionmailer (3.2.8) Using arel (3.0.2) Using tzinfo (0.3.33) Using activerecord (3.2.8) Using activeresource (3.2.8) Using bson (1.6.4) Using coffee-script-source (1.3.3) Using execjs (1.4.0) Using coffee-script (2.2.0) Using rack-ssl (1.3.2) Using json (1.7.5) Using rdoc (3.12) Using thor (0.16.0) Using railties (3.2.8) Using coffee-rails (3.2.2) Using jquery-rails (2.1.1) Using mongo (1.6.4) Using plucky (0.5.1) Using mon...
2010 Oct 06
2
rspec2 observations
Just a few observations now that I have completed the upgrade from RSpec-1 to RSpec-2. 1. In my project (2800 examples across about 40 files), MRI 1.9.2-p0 takes roughly 3 times longer to complete the spec run. Runtimes grew from 2.2s (rspec 1.3.0) to 6.1s (2.0.0.rc). 2. Rubinius 1.1.0 runs RSpec-2 without error. 3. JRuby 1.5.1 runs RSpec-2 without error. 4. Both Rubinius and JRuby print a
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
....2.5, 3.2.1, 3.0.0) actionpack (3.2.5, 3.2.1, 3.0.0) activemodel (3.2.5, 3.2.1, 3.0.0) activerecord (3.2.5, 3.2.1, 3.0.0) activeresource (3.2.5, 3.2.1, 3.0.0) activesupport (3.2.5, 3.2.1, 3.0.0) addressable (2.2.8) ancestry (1.2.5) archive-tar-minitar (0.5.2) arel (3.0.2, 1.0.1) bcrypt-ruby (3.0.1) bson (1.5.2) bson_ext (1.5.2) builder (3.0.0, 2.1.2) bundler (1.1.4, 1.0.0) capistrano (2.12.0) capybara (1.1.2) carrierwave (0.6.2) carrierwave-mongoid (0.2.0) childprocess (0.3.2) chronic (0.6.7) chunky_png (1.2.5) cleditor_rails (0.0.3) coffee-rails (3.2.2) coffee-script (2.2.0) coffee-script-source...
2017 Jun 28
3
Next steps for optimization remarks?
> On Wed, Jun 28, 2017 at 8:13 AM, Hal Finkel <hfinkel at anl.gov> wrote: > > I don't object to adding some kind of filtering option, but in general it won't help. An important goal here is to provide analysis (and other) tools to users that present this information at a higher level. The users won't, and shouldn't, know exactly what kinds of messages the tools use.
2017 Oct 30
4
Gulliver
We have been fortunate to hang onto one of our summer interns for part time work on weekends during the current school year. One of the intern's jobs is to load documents and data which are then processed.? The documents are .txt, .docx, and .pdf files. The data files are raw sensor outputs usually captured using ADCs mostly with eight bit precision.? All files are loaded or moved from one
2017 Feb 23
1
Scaling to 10 Million IMAP sessions on a single server
On 23 Feb 2017, at 23.00, Timo Sirainen <tss at iki.fi> wrote: > > I mainly see such external databases as additional reasons for things to break. And even if not, additional extra layers of latency. Oh, just thought that I should clarify this and I guess other things I said. I think there are two separate things we're possibly talking about in here: 1) Temporary state: This is