Last.fm tool: Create your personal Last.fm user tag cloud'; printMessages( "cloud" ); echo 'A musical user tag cloud is a textual depiction of one\'s listening habits, here based on musical social networking service Last.fm. The weight of a tag in the cloud is determined by the play counts of top artists in the user\'s profile, and the top tags for those artists, labeled as such by the Last.fm community. Inclusion of these tag clouds in a user\'s profile increases the readability, since now it is often unclear what musical genres a user is listening to. Provided with a tag cloud, a visitor gets a quick overview of the user\'s musical preferences. Last.fm should consider putting tag clouds in user profile pages! Want to learn more? Here\'s a preliminary data mining analysis to explore the structure of musical profiles and genres in a large sample of Last.fm users. I have created other scripts, so you can compare your profile with that of other users, generate a cloud of recommended artists or compute your eclectic score. Create your tag cloud!With the form below, you can generate your personal tag cloud. The tag cloud can be based on your overall top artists, or the weekly top artists in your profile.
Please be patient, the script may require up to a full minute to process your request. The script needs to download and analyze your profile and your top 50 artists. Last.fm policy states that we can only make 1 database query per second, and the script\'s worst case scenario requires 51 requests. Caching is used to lower the load on user, group (cache = 10 minutes) and artist (cache = 1 week) database requests. The resulting tag cloud may vary in size, depending on the diversity of musical genres you have scrobbled. The results may change on a weekly basis, as the profiles depend on last week\'s statistics. Tag cloud for $user (alphabetic)"; echo "The following tag cloud represents the musical preferences of $user, based on this user's $type top $nrartists artists. "; echo 'If the tag cloud says \"not enough data\" and you're sure that the script messed up, try again in 10 minutes. "; echo " Here's also a smaller tag cloud in Last.fm's BBCode format, so you can copy it to forum or journal posts, your profile and user details, signature, ... (unfortunately not to shoutboxes, as these do not support BBCode interpretation) "; echo '
Please post your tag cloud in this thread on Last.fm's forum. You can also copy/paste it to your profile details, like on my profile page, so visitors can easily grasp your musical preferences.. "; arsort( $tags ); echo "Tag cloud for $user (sorted by weight)"; echo "The following tag cloud provides the same information, but the tags are sorted by decreasing weight. "; echo '
You can download your tag vector as a tab-separated text file. Only non-zero tags are included. The length of this vector (i.e., the square root of the sum of squared values) equals 1. As the largest component of your tag vector is further away from 1, your musical preference is more diverse. In the above tag clouds, the font size of a tag is scaled such that the most important tag has a font size of 64 and 24, respectively. Many people have requested to generate bigger tag clouds in BBCode, but as the CSS styling of the Last.fm web site is limited to fonts of size 20-something pixels, we can't make them any bigger. You can of course edit the results and add 2 to each tag's size, or something else. "; printLinks( $user, "cloud" ); echo ' |
||||
|