Is it better to use multiple databases with one schema each, or one database with multiple schemas?

After this comment to one of my questions, I'm thinking if it is better using one database with X schemas or vice versa. I'm developing a web application where, when people register, I create...

How to update content popularity scoring such as Hacker News algorithm?

I'm using a customized version of Hacker News popularity algorithm for my social site (items with a number of likes and comments). The algorithm works perfectly but I don't know how to update item...

FB comments merged with my website´s comments

At the moment my website has its own comments in articles. I decided to merge it with FB comments but of course I don´t want to lose my old comments. Is there a way to merge my old comments with...

Get github username by id

Using this link I can see that my (tonylampada) id on github is 218821 https://api.github.com/users/tonylampada How could I do the opposite? Given the user id = 218821, what's the...

Comment on Facebook social plugin via RestFB

I'm trying to comment with RestFB over a social media plugin like on the page below: http://www.zuberi.me/2011/facebook-social-plugin-comments.html But I've got no idea how to do it. I'm able to...

custom inputformat for reading json in hadoop

i am a beginner of hadoop,i have been told to create a custom inputformat class to read json data,i have googled up and learnt how to create a custom inputformat class to read data from the...

Facebook social plugins disappear when angular-ui-router changes route

I am using angular-ui-route to change my pages. Some of the pages include facebook social plugins such as Comments and Like Box. However, when the route changes, the plugins did not show. Here's...

Messed up characters in webpages (especially social media)

Many of you may have seen 'trolls' posting weird characters that messes up the whole webpage on social media sites, forums or video stream sites like youtube. An example is attached, an image I...

How can I post new comment with Graph API into Social Comments Box?( http)

I want to comment on post with graph api but dont work graph api https://graph.facebook.com/id/comments?access_token=&message= test

Laravel 5 Socialite - change auth redirect path dynamically

I am trying to incorporate Socialite into a site and have come across a problem with what should be a rather trivial thing to do - change where the user is redirected after authenticated by a...

Notifications table design?

I'm trying to create a notification system for my social network. But I'm stuck on the database design. so when a user comments on another user I want to display "X commented on your post." or...

caret - random-forests not working: "Something is wrong; all the Accuracy metric values are missing:"

Related to these: https://stackoverflow.com/questions/30475723/getting-this-error-in-caret https://github.com/topepo/caret/issues/160 I'm getting this error: Something is wrong; all the Accuracy...

Permissions issue when embedding Facebook event in externally hosted website

I run a website which runs monthly events. We recently switched to using Facebook events so that we can take advantage of more streamlined social sharing. I created our first event which works...

How to extract COMPLAINT features from texts in order to classify complaints from non-complaints texts

I have a corpus of around 6000 texts with comments from social network (FB, twitter), news content from general and regional news and magazines, etc. I have gone through first 300 of these texts...

How to make LinkedIn V2 Share (SocialActions) work correctly?

We recently obtained the r_ad_campaigns permission to work with the LinkedIn V2...

MongoDB - $setIntersection with $facet

Here's my query: db.movies.aggregate([ {$facet:{ rating:[{$match: {"imdb.rating":{$gte: 0},"metacritic":{$gte: 0}}}, {$sort: {"imdb.rating":-1}},{$project: ...

what's happening with pod?

this is my Podfile # Uncomment this line to define a global platform for your project # platform :ios, '10.0' # Pods for BandUJam target 'BandUJam' do pod 'Masonry' pod 'SDWebImage' pod...

Graph/Gremlin query for social media use case

Mine is a social network kind scenario. I want to get all the posts 'posted' by the people I follow. For each of these posts I want to know whether I have liked it or not and also the no of likes...

Laravel Notification or Mailable for friend request/accept

Suppose that we have a social website that users can follow each other. Is it a better idea to use Laravel Notification to notify the user that someone wants to follow him or someone accepted his...

Implementing referral rewards in Flutter

I would like to set up a referrals system in my application, so that users can invite their friends via email/phone number etc (whichever is easiest) and when it is confirmed that the invitee has...

Flutter app crashes a lot when cached_network_image Or Image.Network is populated with data , just showing lost connection to device nothing more

I have build a flutter app that is complex enough, Every thing was working fine until I started getting images from an api that are located on AWS. But after populating the image.network widget...

Firebase Id Token from Flutter App is not verified on the REST server

I want support social login with firebase auth. But I want to keep user's detailed profiles in my own RDB . I thought that after user signed in with social account I could get encoded token which...

Open Edx Third Party Login Integration with Keycloak

I am using edx-ironwood.2-6 in ubuntu 18.08. I am also running keycloak 9.0.0. To enable third-party login using Keycloak I am using the python-social-auth library suggested in edx documentation....

How can I send a batch of strings to the Google Cloud Natural Language API?

I have a Pandas dataframe containing a number of social media comments that I want to analyse using Google's NLP API. Google's documentation only discusses (as far as I can see) how to classify...

"TypeError: object of type 'map' has no len()" error when adding django_social to INSTALLED_APPS

I am tryging to implement django social auth, and to do that I did pip install social-auth-app-django, then I went on to add social_django to my INSTALLED_APPS. After that when I am running the...

Why is django allauth redirecting to /accounts/login/?=next/MY_PAGE instead of logging in?

I am attempting to handle user authentication on a site using Django allauth. However, upon entering a username and password and clicking "log in" on my site, I am redirected to...

Facebook has detected Believer isn't using a secure connection to transfer information

Well I am trying to add login and sign up with facebook functionality and when i click on login with facebook it takes me to facebook but shows an error such as Facebook has detected Believer...

Very odd problem with browsers caching my page even when instructed not to

I have a Django app served on EC2, and Cloudflare sits in front of the app to cache the static content (JS and CSS files; images are hosted separately on S3 and served via Cloudfront again with...

Change menu titles from h2 to h3 (woocommerce / wordpress)

I just launched my store on wordpress and I ran into a problem: When I am on the home page of the site, all my product titles are in H2 and should be in h3 (SEO reasons), my recommendation...

AttributeError: 'NoneType' object has no attribute 'get' when using greedy_modularity_communities from NetworkX

I keep getting the above error when trying to run the greedy_modularity_communities community-finding algorithm from NetworkX on a network of 123212 nodes and 329512 edges. simpledatasetNX here is...