social-networking

Converting data form for 2mode network in r

天大地大妈咪最大 提交于 2019-12-25 03:56:21
问题 The data(excel) that I have looks like this: I have 2600 movies in the first column and there are names of directors and staffs in other columns. Some names appear several times. I'm having trouble converting this excel data to a format that I can perform two-mode network analysis(event: movie, ties from those movies) in r. Are there any helping documents or codes that I can convert this data to a proper format? 回答1: You can do this using igraph (which calls this type of network bipartite ).

Many share buttons for social networks on one page

北战南征 提交于 2019-12-24 16:26:17
问题 I am currently doing some work on a research database where they have decided that they want to be able to share links to articles from the site on social networks (Facebook, Twitter, LinkedIn and Google+). Preferably this should be done through the share buttons provided by the respective networks. I quickly got the buttons working and displayed correctly on the site by following the implementation instructions from each network. My problem is a consequence of that the site offers the

Share image on Twitter with TweetComposer?

回眸只為那壹抹淺笑 提交于 2019-12-24 06:29:27
问题 According to Twitter documentation After initializing the TweetComposer Kit with Fabric, start construction of a Tweet composer by using the Builder. import com.twitter.sdk.android.tweetcomposer.TweetComposer; ... TweetComposer.Builder builder = new TweetComposer.Builder(this) .text("just setting up my Fabric.") .image(myImageUri); builder.show(); The image Uri should be a file Uri (i.e. file://absolute_path scheme) to a local file. For example, File myImageFile = new File("/path/to/image");

How do I invite people from MSN, Yahoo into my application?

☆樱花仙子☆ 提交于 2019-12-24 06:00:09
问题 I need to add an invite users functionality to my social networking application so users can invite contacts from their hotmail or yahoo accounts. How do I do this and are there any free open source libraries that do this? 回答1: Depending on the service you wish to get the contact information from they might already provide a published API for you. For example, Yahoo has a contact list API you could use: http://developer.yahoo.com/social/rest_api_guide/contact_api.html Google also has one:

twitter retweet user id api python

自作多情 提交于 2019-12-24 00:57:22
问题 using the twitter api with python, I need to know how to get all the user ids of all the people that retweeted a tweet. I went here: https://dev.twitter.com/docs/api/1/get/statuses/%3Aid/retweeted_by but I do not know how to put that into python. here is my code so far: from twitter import * t = Twitter(auth=OAuth(....)) twitter = t.statuses.user_timeline.snl() twitter[0]['text'] # gets the tweet twitter[0]['retweet_count'] # gets the number of retweets what is my next line to get the IDs of

How does the Facebook 'share' button on Stack overflow work?

馋奶兔 提交于 2019-12-23 17:33:51
问题 I am looking to add social icons to our site, giving customers the ability to "like", tweet and share content on their facebook and twitter profiles. I have noticed to the left of this box, the facebook and twitter icons do exactly what I am trying to accomplish but I am not familiar with how to do this. Looking at the source code, there are JS references to: <script type="text/javascript"> StackExchange.ready(function() { var shareUrl = "http%3a%2f%2fstackoverflow.com%2fq%2f7505636%2f337690"

Database scheme design social networking sites

非 Y 不嫁゛ 提交于 2019-12-23 04:19:29
问题 Hi I am planning to design a social networking site (like orkut) asp.net mvc.I am stuck in database design.Anyone provide me the resource for that one. 回答1: These are the steps you should follow for initial database design. First, list down all the "objects" you want to store, such as users, posts, relationships and so on. Second, figure out, for each of those, what information you want to store (user name, password, full name, address, ...). Then design your database tables following the

Creating dictionaries of Friends that know other Friends in python

左心房为你撑大大i 提交于 2019-12-23 01:21:09
问题 In any group of people there are many pairs of friends. Assume that two people who share a friend are friends themselves. (Yes, this is an unrealistic assumption in real life, but let's make it nevertheless). In other words, if people A and B are friends and B is friends with C, then A and C must also be friends. Using this rule we can partition any group of people into friendship circles as long as we know something about the friendships in the group. Write a function networks() that takes

Is it secure to put the user id as a url parameter?

限于喜欢 提交于 2019-12-22 09:25:15
问题 I am developing a social network and I would like to know if in the profile page of a user I could put the user id stored in database as a parameter in the url or is it a bad idea in terms of security? I want the url to be bookmarkable. Should I put another thing instead of the user id? 回答1: In terms of security there's no problem in putting the user id in a url. For example StackOverflow does it already: https://stackoverflow.com/users/3477044/aliuk What's important is to verify that the

Plot networks with igraph

邮差的信 提交于 2019-12-22 09:23:53
问题 I want to create a network from a correlation matrix and plot it. I'm trying to use igraph for this. This is a subset of my data. mydata Taxon CD1 CD2 Actinomycetaceae;g__Actinomyces 0.072998825 0.031399459 Coriobacteriaceae;g__Atopobium 0.040946468 0.002703265 Corynebacteriaceae;g__Corynebacterium 0.002517201 0.006446247 Micrococcaceae;g__Rothia 0.001174694 0.002703265 Porphyromonadaceae;g__Porphyromonas 0.023326061 0.114368892 Prevotellaceae;g__Prevotella 0.252894781 0.102308172