[François Taïani] Resources
Foursquare DatasetThe archive below contains the anonymised version of the dataset used in our ICDCS 2012 paper Geology: Modular Georecommendation In Gossip-Based Social Networks. The paper contains the detail of how the dataset was obtained, and the archive describes its structure. Also, feel free to contact us (francois.taiani@irisa.fr) if you have any additional questions.
Download: onlyBayLocsAnonymised_21_Oct_2011.tgzOnce you've uncompressed the archive you can use any json parser to access it. For instance in ruby (with the relevent gems "json" and "zlib" installed):
dataset =
Zlib::GzipReader.open("onlyBayLocsUsers_anon.json.gz") do
|f| JSON::parse( f.read )
end
dataset.each do |user_profile|
puts "User #{user_profile["name"]} has " +
"visited #{user_profile["locs"].size} venues."
end
Related Publications:
Frequencies from an array in rubyclass Array
# returns a hash containing the frequencies of each element
# appearing in the array
def frequencies()
return this.inject(Hash.new(0)) { |h,e| h[e]+=1; h}
end
end
Shannon's entropy in ruby 1.9def entropy(frequencies)
total = frequencies.reduce(0, :+)
frequencies.reduce(0) { |e,f| p = f.to_f / total; e -= p * Math.log2(p) }
end
TLC Google App Engine Tutorial
Bigger UI fonts in ThunderbirdThunderbird's User Interface uses tiny fonts by default, too tiny for my eyes. To increase Thunderbird's default UI font size, just put a file called userChrome.css in the 'chrome' directory in your profile (on Mac your profile is found in ~/Library/Thunderbird/Profiles/<some weird string>.default/, you might have to create the 'chrome' directory if it's not there), with the right kind of css code. Here is the one I'm using.
|
|
| Before | After |
Debian on an Apple PowerBook G3 (Wallstreet)Here are some very valuable resources I used to install GNU/Linux Debian (Sarge) on an Apple PowerBook G3 Wallstreet.
To get the text console and XFree86-4 work on my PowerBook I use the following kernel args in BootX: video=atyfb:vmode:14,cmode:15 with "No Video Driver" unchecked. (My video card is identified as ATI 3D Rage LT Pro (rev dc) by lspci.)
In /etc/X11/XF86Config-4 the most tricky part was to remove the "Modes" line of the "Display" subsection.
Note that you normally don't want to use my XF86Config-4 file directly, as it also contains options for the Apple French keyboard. If you do have a French keyboard, you probably can use this file as such, but you'll need to install the keyboard symbol mapping file /etc/X11/xkb/symbols/fr-shapiro-new from Marc Shapiro as the /etc/X11/xkb/symbols/fr shipped with Debian is currently broken. (See Debian Bug report #157170 for more details.)
The beautiful background image you can see on the above screen-shot was taken by my brother. If you want to use it as a wallpaper too you can get it here.
Software Engineering / Critical Systems
Transformational Frameworks:
The programmer's corner
Back to Home