HomeWorks

HomeWorks

Delen

Test page for experimenting with FB API and data analitics. Often using open data or Twitte

Twitter stuff 07/09/2017

Twitter stuff
http://krysmann.nl/wp/index.php/2017/09/07/twitter-stuff/

Twitter stuff Visit the post for more.

Maps 30/12/2016

Maps
http://krysmann.net/wordpress/?p=62624

Maps Visit the post for more.

Mongodb -save subset of query to new collection 17/05/2016

db.mqtt.find({topic:"rrd/srt"}).forEach(function(doc){ db.subset.insert(doc); });

http://krysmann.net/wordpress/?p=62610

Mongodb -save subset of query to new collection db.mqtt.find({topic:”rrd/srt”}).forEach(function(doc){ db.subset.insert(doc); });

Mongodb Twitter count users (allowDiskUse) 05/05/2016

Following query will count occurance of users: db.tweets.aggregate([ { $group: { _id: '$user.screen_name', count: {$sum: 1} }}, {$sort: { count: -1 }} ], {allowDiskUse: true}); Note the option allowDiskUse is needed if error: { "code" : 16819, "errmsg" : "Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.", [ 26 more words. ]

http://krysmann.net/wordpress/?p=62606

Mongodb Twitter count users (allowDiskUse) Following query will count occurance of users: db.tweets.aggregate([ { $group: { _id: ‘$user.screen_name’, count: {$sum: 1} }}, {$sort: { count: -1 }} ], {allowDiskUse: true}); Note the…

Copy MongoDB selection to another collection 03/05/2016

Copying selection where field date == 20120105 to new collection subset. If subset not exists then it will be created. db.my_collection.find({date:"20120105"}).forEach(function(doc){ db.subset.insert(doc); });

http://krysmann.net/wordpress/?p=62601

Copy MongoDB selection to another collection Copying selection where field date == 20120105 to new collection subset. If subset not exists then it will be created. db.my_collection.find({date:”20120105″}).forEach(function(doc){ db…

Convert Mongo _id to datetime 03/05/2016

Source: db.tweets.find().sort({_id:-1}).limit(1).forEach(function (doc){ print(doc._id.getTimestamp()) }) will return timestamp of most recent record in following format: Tue May 03 2016 08:29:06 GMT+0200 (CEST)

http://krysmann.net/wordpress/?p=62597

Convert Mongo _id to datetime Source:  db.tweets.find().sort({_id:-1}).limit(1).forEach(function (doc){ print(doc._id.getTimestamp()) }) will return timestamp of most recent record in following format: Tue May 03 2016 08:29:06 …

Wilt u dat uw bedrijf hét hoogst genoteerde Transportdienst in Gouda wordt?
Klik hier om uitgelicht te worden.

Telefoon

Adres


Gouda
1234CB