tag:strokedb.lighthouseapp.com,2008-04-27:/projects/10482-strokedb/eventsstrokedb / StrokeDB Events2008-06-07T19:39:46Ztag:strokedb.lighthouseapp.com,2008-04-27:Event/381239672020-06-08T20:18:10+03:002020-06-08T20:18:10+03:00Lisa BowmanStrokeDB: Explicit slot declaration [#49]<div><p>This is what I'd love to know more about. Thank you so much for
bringing this up! Hey if you're looking for furniture online you
can check out <a href="https://sites.google.com/view/ashleyfurniture-pc" title="ashley furniture">ashley furniture</a>. They have good designs or
you can try <a href="https://akinator.io/" title="genie guessing game">genie guessing game</a> if you're bored at
home.</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/381239012020-06-08T19:48:09+03:002020-06-08T20:18:10+03:00Lisa BowmanStrokeDB: Explicit slot declaration [#49]<div><p>This is what I'd love to know more about. Thank you so much for
bringing this up! Hey if you're looking for furniture online you
can check out <a href="https://sites.google.com/view/ashleyfurniture-pc" title="ashley furniture">ashley furniture</a>. They have good designs or
you can try <a href="https://akinator.io/" title="genie guessing game">genie guessing game</a> if you're bored at
home.</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/88440522010-08-20T18:25:14+03:002010-08-20T18:25:14+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [31cd704206ceb2113817e63f91c3572a7511e440] by Oleg Andreev<div><p>non-sudo install commands; changed port to brew<br>
<a href=
"http://github.com/yrashk/strokedb/commit/31cd704206ceb2113817e63f91c3572a7511e440">
http://github.com/yrashk/strokedb/commit/31cd704206ceb2113817e63f91...</a></p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/16252572008-10-31T22:55:28+02:002008-10-31T22:55:28+02:00Oleg AndreevNew StrokeDB Project MemberOleg Andreev has been given access to the StrokeDB Project.tag:strokedb.lighthouseapp.com,2008-04-27:Event/8941102008-07-10T09:07:17+03:002008-07-10T09:07:17+03:00Justin ReagorStrokeDB: Explicit slot declaration [#49]<li>Tag set to <em class="change">“<span class="tag">@idea</span>, <span class="tag">meta</span>”</em></li>
<div><p>
This would look even better if it resembled DataMapper's DataMapper::Resource::ClassMethods "property" method... something like this:
</p><p>
Member = StrokeDB::Meta.new do
</p><p>
slot :name # no default for variable storage
</p><p>
slot :age, :default => 'newbie'
</p><p>
slots.freeze!
</p><p>
end
</p><p>
There's no reason for StrokeDB to state primitives upon initialization is there? Since pretty much any value should be able to be stored in any slot?
</p><p>
Just a quick question and suggestion... ;)
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7803472008-06-19T03:17:03+03:002008-06-19T03:17:03+03:00Sean OuimetStrokeDB: Weird Meta#find bug with new views [#65]<div><p>
I find this problem crops up more 'reliably' after having closed/open the console again to access a previously initiated database. I tend not to see it (except through heavy read/write attempts) on the first session.
</p><p>
The above error interchanges with:
</p>
<pre><code class="ruby">NoMethodError: undefined method `each' for 1:Fixnum
from /Users/sean/rails/strokedb/lib/strokedb/document.rb:675:in `initialize_raw_slots'
from /Users/sean/rails/strokedb/lib/strokedb/document.rb:637:in `do_initialize'
from /Users/sean/rails/strokedb/lib/strokedb/document.rb:195:in `initialize'
from /Users/sean/rails/strokedb/lib/strokedb/document.rb:344:in `new'
from /Users/sean/rails/strokedb/lib/strokedb/document.rb:344:in `from_raw'
from /Users/sean/rails/strokedb/lib/strokedb/stores/file_storage.rb:26:in `find'
from /Users/sean/rails/strokedb/lib/strokedb/stores/memory_storage.rb:16:in `find'
from /Users/sean/rails/strokedb/lib/strokedb/store.rb:21:in `find'
from /Users/sean/rails/strokedb/lib/strokedb/document/meta.rb:78:in `document'
from /Users/sean/rails/strokedb/lib/strokedb/document/meta.rb:279:in `make_document'
from /Users/sean/rails/strokedb/lib/strokedb/document/meta.rb:251:in `document'
from /Users/sean/rails/strokedb/lib/strokedb/document/meta.rb:249:in `map'
from /Users/sean/rails/strokedb/lib/strokedb/document/meta.rb:249:in `document'
from /Users/sean/rails/strokedb/lib/strokedb/document/meta.rb:208:in `find'
from /Users/sean/rails/strokedb/lib/strokedb/document/meta.rb:208:in `map'
from /Users/sean/rails/strokedb/lib/strokedb/document/meta.rb:208:in `find'
from (irb):5>>
</code></pre>
<p>
Where the "1" (fixed number) tends to be anything from 1..30
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7741512008-06-18T11:36:48+03:002008-06-18T11:36:48+03:00Sean OuimetStrokeDB: Explicit slot declaration [#49]<div><p>
Explicit slot declaration is similar to validates_type_of + validates_presence_of, except default values are not accounted for.
</p><p>
Some shortcut commands could make it easier to assign defaults or limit access when needed.
</p>
<pre><code class="ruby">Member = StrokeDB::Meta.new do
#allow only these slots
#presumably existing slot types could still be used
available_slots 'name', 'email', 'age'
#assign default values if not defined
#if no default value listed with key, nil is assumed
#(so :age would be :age=>nil)
default_slots :age, :status=>"newbie"
#Allow no more slot types to be added (works well with above defaults setting nil first -- or could be based on all docs using the Meta).
#My issues with this is it would make adding a new slot type (intentionally) more difficult (impossible?), whereas available_slots could be added to.
freeze_slots
end
</code></pre></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7582362008-06-14T23:10:52+03:002008-06-14T23:10:52+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [d22a9956c795048ce901791813e35c92c5f866ac] by Yurii Rashkovskii<div><p>
Profiler's output shouldn't live in the repo
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/d22a9956c795048ce901791813e35c92c5f866ac">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7581782008-06-14T22:15:29+03:002008-06-14T22:15:29+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [22034e62e6efe957aea5ffb12b5720e07d3f87a2] by Oleg Andreev<div><p>
added debug message to store.rb
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/22034e62e6efe957aea5ffb12b5720e07d3f87a2">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7581772008-06-14T22:15:29+03:002008-06-14T22:15:29+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [8ba0088913bb3765b37f487bc99322164a94f23d] by Oleg Andreev<div><p>
added some info on storages
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/8ba0088913bb3765b37f487bc99322164a94f23d">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7581762008-06-14T22:15:29+03:002008-06-14T22:15:29+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [e208d671208182cb6466672882626335217e073b] by Oleg Andreev<div><p>
added search benchmark
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/e208d671208182cb6466672882626335217e073b">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7254242008-06-09T00:09:09+03:002008-06-09T00:09:09+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [85417a0cc7b9e8366f20d1f1adfec6bca8743a2e] by Oleg Andreev<div><p>
updated MANIFEST
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/85417a0cc7b9e8366f20d1f1adfec6bca8743a2e">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7254232008-06-09T00:09:09+03:002008-06-09T00:09:09+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [9785ab9c6245d9c23e95a0a1f04bb8c300984323] by Oleg Andreev<div><p>
renamed SimpleSkiplist to Skiplist
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/9785ab9c6245d9c23e95a0a1f04bb8c300984323">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7253342008-06-08T22:58:45+03:002008-06-08T22:58:45+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [ff4c04e1f3e2f65f3984ce9d75166278c1391118] by Oleg Andreev<div><p>
removed skiplist & chunked skiplist
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/ff4c04e1f3e2f65f3984ce9d75166278c1391118">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7253182008-06-08T22:46:17+03:002008-06-08T22:46:17+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [70eeaff7842552cedcf88711c5022dc875ff9f42] by Oleg Andreev<div><p>
removed inverted list benchmark
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/70eeaff7842552cedcf88711c5022dc875ff9f42">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7253002008-06-08T22:40:00+03:002008-06-08T22:40:00+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [0576eb30ac6fb72d4ef11674df74e9f83571a7d0] by Oleg Andreev<div><p>
removed inverted list
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/0576eb30ac6fb72d4ef11674df74e9f83571a7d0">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7252902008-06-08T22:31:10+03:002008-06-08T22:31:10+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [99d9135708328a0b0689d1c899d55840254bcfa1] by Oleg Andreev<div><p>
removed inverted_list_file_storage
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/99d9135708328a0b0689d1c899d55840254bcfa1">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7252702008-06-08T22:17:23+03:002008-06-08T22:17:23+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [9db532176ee4f6c1f0451529faac869a4284ed5c] by Oleg Andreev<div><p>
removed some index-related stuff
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/9db532176ee4f6c1f0451529faac869a4284ed5c">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7251252008-06-08T21:04:42+03:002008-06-08T21:04:42+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [962b10f4784610cbdbd6e408ec98b7a84051fa16] by Oleg Andreev<div><p>
removed setup_index spec helper
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/962b10f4784610cbdbd6e408ec98b7a84051fa16">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7250982008-06-08T20:52:00+03:002008-06-08T20:52:00+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [518bb24eddf65171ba114cb02affa836077e16fc] by Oleg Andreev<div><p>
removed obsolete code & spec
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/518bb24eddf65171ba114cb02affa836077e16fc">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7244382008-06-08T09:21:33+03:002008-06-08T09:21:33+03:00Yurii RashkovskiiStrokeDB: Weird Meta#find bug with new views [#65]<div><pre><code class="ruby">StrokeDB 0.0.2.2 (help! for more info)
User = Meta.new
# ==> User
User.create! :login => "yrashk"
# ==> #<User login: "yrashk", uuid: "934ead51-ee6d-4108-ae8e-a5286c71fdf9", version: 0000...>
User.find
ArgumentError: marshal data too short
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/util/serialization.rb:38:in `load'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/util/serialization.rb:38:in `deserialize'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/stores/file_storage.rb:24:in `find'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/stores/memory_storage.rb:16:in `find'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/store.rb:21:in `find'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/document/meta.rb:78:in `document'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/document/meta.rb:279:in `make_document'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/document/meta.rb:251:in `document'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/document/meta.rb:249:in `map'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/document/meta.rb:249:in `document'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/document/meta.rb:208:in `find'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/document/meta.rb:208:in `map'
from /Users/yrashk/Development/idbns/strokedb/lib/strokedb/document/meta.rb:208:in `find'
from (irb):3
User.find
# ==> [#<User login: "yrashk", uuid: "934ead51-ee6d-4108-ae8e-a5286c71fdf9", version: 0000...>]
User.find
# ==> [#<User login: "yrashk", uuid: "934ead51-ee6d-4108-ae8e-a5286c71fdf9", version: 0000...>]
</code></pre></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235562008-06-07T22:39:47+03:002008-06-07T22:39:47+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [6e3b48177d8e96d080d02759924c7221f90075f7] by Oleg Andreev<div><p>
some raw commit of docs_by_meta view
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/6e3b48177d8e96d080d02759924c7221f90075f7">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235552008-06-07T22:39:47+03:002008-06-07T22:39:47+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [c4427188a18e99d3af939c4c3d5eca687d3cf787] by Yurii Rashkovskii<div><p>
Some garbage has been removed from index_slots.rb
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/c4427188a18e99d3af939c4c3d5eca687d3cf787">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235542008-06-07T22:39:47+03:002008-06-07T22:39:47+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [3e40ce01088d938ad69041ad6fe6cca51ff61a44] by Oleg Andreev<div><p>
dirty commit of IndexSlots
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/3e40ce01088d938ad69041ad6fe6cca51ff61a44">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235532008-06-07T22:39:47+03:002008-06-07T22:39:47+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [f1c717512dd43956ca4bfca09b8d3da905ca1013] by Yurii Rashkovskii<div><p>
Default key encoder for Meta
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/f1c717512dd43956ca4bfca09b8d3da905ca1013">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235522008-06-07T22:39:47+03:002008-06-07T22:39:47+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [a27696762dc45d108434679bc159580acda97bcd] by Yurii Rashkovskii<div><p>
Merge branch 'master' into index-slots
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/a27696762dc45d108434679bc159580acda97bcd">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235512008-06-07T22:39:47+03:002008-06-07T22:39:47+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [aa3f883572c09d34c8a740fb4e3dd215169b3eeb] by Oleg Andreev<div><p>
Merge branch 'master' into index-slots
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/aa3f883572c09d34c8a740fb4e3dd215169b3eeb">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235502008-06-07T22:39:47+03:002008-06-07T22:39:47+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [2c3a8d36ec7157a7c92e096bcaaf0269f96d1519] by Yurii Rashkovskii<div><p>
Minor spec_helper improvement
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/2c3a8d36ec7157a7c92e096bcaaf0269f96d1519">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235492008-06-07T22:39:46+03:002008-06-07T22:39:46+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [e4cf4984b94eeff4b1921f943431d7d78c7c3513] by Yurii Rashkovskii<div><p>
Merge branch 'master' into index-slots
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/e4cf4984b94eeff4b1921f943431d7d78c7c3513">http://github.com/yrashk/stroked...</a>
</p></div>tag:strokedb.lighthouseapp.com,2008-04-27:Event/7235482008-06-07T22:39:46+03:002008-06-07T22:39:46+03:00Yurii Rashkovskii[Changeset] StrokeDB: Changeset [ee50ace6222604a6d76e4f3a9ce8e9c6b9faaf52] by Oleg Andreev<div><p>
added name for a view ByMetas
</p><p>
<a href="http://github.com/yrashk/strokedb/commit/ee50ace6222604a6d76e4f3a9ce8e9c6b9faaf52">http://github.com/yrashk/stroked...</a>
</p></div>