var TR = new Object(); TR.taglist = {"#infosec":"30","academic":"30","activism":"39","ajax":"22","algorithm":"43","algorithms":"61","analysis":"82","api":"51","archive":"28","archiving":"67","arduino":"27","art":"128","article":"29","audio":"45","authentication":"21","bash":"27","belgique":"25","belgium":"71","bgp":"25","biology":"48","bitcoin":"20","bittorrent":"29","blog":"82","book":"115","books":"137","bot":"21","broadcast":"24","browser":"37","business":"58","c":"36","classification":"34","code":"46","collaboration":"48","community":"41","company":"38","computer_science":"45","computing":"21","conference":"50","copyright":"124","copyrights":"53","copyright_delirium":"55","crypto":"114","cryptography":"95","cs":"24","cs_lang:c":"91","cs_lang:cpp":"29","cs_lang:java":"24","cs_lang:javascript":"54","cs_lang:perl":"41","cs_lang:php":"26","cs_lang:python":"269","cs_lang:ruby":"34","culture":"42","data":"65","database":"68","datamining":"29","dataset":"30","datastore":"39","debugging":"35","del.icio.us":"39","delicious":"24","design":"100","development":"74","digital_preservation":"26","distributed":"106","distributed_computing":"73","diy":"45","dns":"47","documentation":"29","drm":"23","ebook":"85","ebooks":"42","ecology":"27","economics":"22","economy":"20","editor":"36","education":"29","electro":"40","electronics":"23","electronic_music":"64","embedded":"45","encryption":"24","entrepreneurship":"24","europe":"29","extension":"21","fa:archive":"427","firefox":"25","flash":"23","flickr":"34","flow":"20","folksonomies":"22","folksonomy":"45","fonts":"23","forensic":"41","forensic_analysis":"34","framework":"29","free":"34","freedom":"98","freesoftware":"76","free_information":"43","free_society":"32","free_software":"164","fun":"95","funny":"58","fuzzing":"22","gardening":"22","geo":"31","geocoding":"26","geotagging":"27","git":"134","goodiff":"36","google":"103","graph":"86","graphics":"36","graphs":"20","gtd":"25","hack":"38","hacking":"30","hacklu":"48","hadoop":"21","hardware":"66","hash":"37","hashing":"43","history":"38","honeypot":"29","html":"33","http":"83","humor":"26","ietf":"34","indexing":"37","information_representation":"31","information_retrieval":"42","information_security":"55","infosec":"287","infovis":"62","innovation":"49","interesting":"21","internet":"141","ipv4":"29","ipv6":"49","irc":"22","isp":"27","jabber":"27","java":"40","javascript":"113","kernel":"45","lang:fr":"56","language":"35","latex":"59","law":"29","legal":"42","libraries":"52","library":"198","license":"24","license:apache":"26","license:bsd-like":"50","license:gpl":"172","license:gpl3":"30","license:lgpl":"20","license:mit":"37","licensing":"25","linux":"128","malware":"96","malware_analysis":"19","management":"27","mapreduce":"57","math":"35","media":"37","mediawiki":"30","memory":"24","metadata":"40","metrics":"22","microsoft":"27","mobile":"39","monitoring":"32","music":"76","mysql":"26","netflow":"20","network":"190","networking":"149","networks":"29","network_analysis":"38","network_security":"30","news":"24","nlp":"24","nosql":"19","opensource":"28","p2p":"104","paper":"103","papers":"58","parser":"25","patent":"33","patent_delirium":"36","pcap":"33","pdf":"59","pentest":"37","people":"21","performance":"42","perl":"81","photo":"63","photography":"81","photos":"28","php":"22","pki":"20","politics":"31","presentation":"31","privacy":"102","productivity":"33","programming":"471","protocol":"47","proxy":"27","publication":"20","public_domain":"19","publishing":"41","python":"429","radio":"32","randomness":"21","ranking":"23","rdf":"64","reader":"22","redis":"40","reference":"151","research":"108","reverse_engineering":"87","reversing":"65","rfc":"21","rfid":"19","routing":"23","rss":"56","ruby":"36","satellite":"21","scalability":"33","science":"54","scm":"74","search":"68","searchengine":"30","security":"470","security_assessment":"56","security_circus":"23","semantic":"33","semanticweb":"41","server":"28","shell":"36","social":"116","socialnetworking":"25","society":"60","software":"140","sql":"19","ssh":"30","ssl":"24","standard":"26","standards":"27","startup":"93","startups":"25","statistics":"35","storage":"27","streaming":"40","sysadmin":"22","tag":"34","tagging":"75","tags":"61","tcp":"42","tcp\/ip":"56","technology":"36","testing":"29","tex":"38","text":"75","tls":"21","tool":"23","tools":"135","trust":"21","tutorial":"20","twitter":"25","typesetting":"19","typography":"32","unix":"93","via:chl":"31","via:doegox":"38","video":"63","virtualization":"20","virus":"19","visualization":"153","vty":"51","w3c":"19","web":"147","web2.0":"62","Web2.0Jungle":"25","webdesign":"26","webdev":"129","web_services":"36","wiki":"137","wikipedia":"74","win32":"48","windows":"39","wireless":"24","work":"34","writing":"36","wtf":"21","xml":"41","xmpp":"31"}; TR.MAX_FONT_SIZE = 30; TR.MIN_FONT_SIZE = 12; TR.username = 'adulau'; TR.startColor = [0400,6999,8999]; TR.endColor = [0400,6999,3000]; TR.isRGB = 0; TR.minCount = 19; TR.maxCount = 471; function pb_cook(s) { return s; } function pb_render_tag(tag, size, color) { var ctag = pb_cook(tag); var link = ''; link += ctag; link += ""; //link += "
 " + color + "
"; return link; } function scale(start, end, val, minVal, maxVal) { if (start > end) { var factor = (start - end) / Math.log(maxVal / minVal); var result = start - Math.round(Math.log(val / minVal) * factor); } else { var factor = (end - start) / Math.log(maxVal / minVal); var result = Math.round(Math.log(val / minVal) * factor + start); } return result; } function toRGBString(rgbVal) { var result = "#"; for (var i = 0; i < 3; i++) { if (rgbVal[i] < 16) { result = result + '0'; } result = result + rgbVal[i].toString(16); } return result; } function HSBtoRGB(hue, saturation, brightness) { var r = 0; var g = 0; var b = 0; var hu = hue / 10; var sat = saturation / 10000; var bri = brightness / 10000; if (saturation == 0) { r = g = b = Math.round(bri * 255); } else { var h = hu / 60; var f = h - Math.floor(h); var p = bri * (1.0 - sat); var q = bri * (1.0 - sat * f); var t = bri * (1.0 - (sat * (1.0 - f))); h = Math.floor(h); switch (h) { case 0: r = Math.round(bri * 255.0); g = Math.round(t * 255.0); b = Math.round(p * 255.0); break; case 1: r = Math.round(q * 255.0); g = Math.round(bri * 255.0); b = Math.round(p * 255.0); break; case 2: r = Math.round(p * 255.0); g = Math.round(bri * 255.0); b = Math.round(t * 255.0); break; case 3: r = Math.round(p * 255.0); g = Math.round(q * 255.0); b = Math.round(bri * 255.0); break; case 4: r = Math.round(t * 255.0); g = Math.round(p * 255.0); b = Math.round(bri * 255.0); break; case 5: r = Math.round(bri * 255.0); g = Math.round(p * 255.0); b = Math.round(q * 255.0); break; } } var result = [r, g, b]; return result; } //document.write("

Pinboard Tag Cloud

"); for (var t in TR.taglist) { var count = TR.taglist[t]; var size = scale(TR.MIN_FONT_SIZE, TR.MAX_FONT_SIZE, count, TR.minCount, TR.maxCount); var rgbVal = new Array(3); for (var i = 0; i < 3; i++) { rgbVal[i] = scale(TR.startColor[i], TR.endColor[i], count, TR.minCount, TR.maxCount); } if (!TR.isRGB) { rgbVal = HSBtoRGB(rgbVal[0], rgbVal[1], rgbVal[2]); } var formatted = pb_render_tag(t, size, toRGBString(rgbVal)); document.write(formatted); document.write("\n"); }