[15:52:56] <al7ci3tti> I can get BsonValues out, and they should all be BsonDocuments, so I can cast them and this should work.
[15:53:13] <bluezone> type systems can be annoying lol
[15:53:46] <al7ci3tti> thanks, but that link is about adding an array as a field
[15:54:54] <al7ci3tti> while I am still quite surprised that no one has asked this & gotten a response on SO or anywhere, this was still mostly my own fault for not looking at the types involved here
[15:55:04] <al7ci3tti> now to confirm that this works...
[15:57:25] <bluezone> I want to learn C#, heard it's must more palatable that Java
[16:00:34] <al7ci3tti> yeah...i have absolutely no loyalty toward MS but c# is nonetheless the best language that currently exists
[16:00:55] <al7ci3tti> still waiting eagerly for an even better replacement
[16:24:51] <GothAlice> Have a Java library you’d like to use, like a good NLTK or, say, Neo4J? Jython and import your Java libraries for direct use.
[20:33:53] <Popzi> Hey, I'm trying to do something absolutely absurdly whack-o crazy in mongo
[20:34:13] <Popzi> how do I select the last 10 items sorted by time?
[22:15:48] <GothAlice> Popzi: What's the type of your document's `_id` attribute? https://docs.mongodb.com/v2.6/reference/object-id/ ← if it's an ObjectId, the first field of the compound type is the timestamp of creation. You can sort on this to sort by record creation time. (You can also construct fake ObjectIds with just a date in them, and range query.)
[22:17:58] <GothAlice> So limit(10).sort({'_id': -1}) would get you the latest 10, but you could also say: filter({"_id": {"$gt": ObjectId.from_datetime(datetime.utcnow() - timedelta(minutes=5))}}).sort({'_id': -1}) "give me the last five minutes of activity, sorted most recent first.