Wikipedia

Search results

07 August 2018

mongoexport Unrecognized field 'snapshot'

Try to get your data out of Mongo and you may find yourself butting heads with

Unrecognized field 'snapshot' 


You should know there are options to skip including `snapshot` in your export query, my guess is this applies to dumps also.



https://github.com/mongodb/mongo-tools/blob/master/mongoexport/mongoexport.go


To get around this error, pass in the flag:

# mongoexport  --forceTableScan -d db_name -c collection_name > my_export.json

16 January 2018

Error type 3: Activity class does not exist

This happens when you do the following
  • connect your device/emulator
  • run the app from Android Studio (AS)
  • use/test the app and uninstall it from the device while it is still connected to your computer
  • try to run the app again from AS
AS thinks you still have the app in your device.
tl;dr - To resolve this issue for connected devices you can uninstall with ADB:
$ adb shell pm list packages
package:com.foo.foo

$ adb uninstall com.foo.foo
Success

Run app from AS again after uninstalling with ADB.