HNHacker News
TopNewBestAskShowJobs

friggeri

4,234 karma · joined July 29, 2011

adrien@

http://friggeri.net

submissionscomments
friggeri··on The surprising rise of JavaScript
Coffeescript is Javascript. Just another syntax.
friggeri··on Unicode URL - ☃.net
Speaking of IDNs, a few months back I had an idea for a geo service and registered http://⌖.ws — figured U+2316 Position Indicator[1] was a good fit for something related to geolocation.

I never came around to using it, so if a fellow HNer is interested in the domain, drop me a line (email in my profile).

[1] Larger image: http://www.fileformat.info/info/unicode/font/stixgeneral-reg...

friggeri··on Just My Type
I must say I recently fell in love with Minion Pro and I'm really grateful that it's available on Typekit.

What I'm really looking forward to though, in term of web typography, is a broader adoption of the font-feature-settings CSS property.

friggeri··on WebGL Grand Theft Auto
Integrated Intel HD Graphics 3000 512 MB (note that your demo does work here with the latest Firefox Aurora)
friggeri··on WebGL Grand Theft Auto
Using the latest Chrome dev (20.0.1123.1 dev, OSX 10.7.3), I've been stuck on a black screen for the past 15 minutes. I do see the number of FPS and there are some x/y/z values which change in the top right when I press the arrows on my keyboard. Rendering issue ?
friggeri··on Show HN: Open-sourcing my CV template [Helvetica, XeTeX, TikZ & Biblatex]
Just trying to be witty, I've renamed the option "print". But basically the idea is exactly what you suggested: have a version which can render OK on print and where you can specify exactly what shades of gray are used in print (or plain black).
friggeri··on Show HN: Open-sourcing my CV template [Helvetica, XeTeX, TikZ & Biblatex]
Yes it might, I usually print it up to the border, but in case I can't, I have implemented a printer friendly option. When compiled with the `print` option, this is the output: https://raw.github.com/afriggeri/cv/master/cv_print.pdf
friggeri··on Show HN: Open-sourcing my CV template [Helvetica, XeTeX, TikZ & Biblatex]
I toyed with that idea but ultimately I wanted something in the same vein that my website (http://friggeri.net) so I centered the header. But then, feel free to fork and experiment ;)
friggeri··on Writing a CV in LaTeX
I'll have to clean it up but I'll definitely open source it.
friggeri··on Writing a CV in LaTeX
A CV in LaTeX does not have to be typesetted in Computer Modern nor have a dry "LaTeX feel". Using XeTeX, TikZ, fontspec and Open Type fonts you can do fun stuff that look gorgeous.

The great thing for me is that I can directly import my .bib and all my publications are automagically included in my CV. My attempt: http://dl.dropbox.com/u/3809633/cv_adrien_friggeri.pdf (slightly out of date, should recompile and update)

friggeri··on The fastest Statistical Programming Language is …Javascript?
See: https://github.com/NaturalNode/node-lapack (haven't tested it, just to say that it exists).
friggeri··on The fastest Statistical Programming Language is …Javascript?
Except that the matrix multiplication benchmark uses pure javascript (see the source here: https://github.com/JuliaLang/julia/blob/master/test/perf/per...). I wonder how JS would do with bindings to LAPACK.

And then there is a bias in those benchmarks, see for example the ones for quicksort: in Python they only time the duration of the sort itself, whereas (at least in Julia and JS) they time both the creation of the random array and the time needed to sort it.

friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
You're perfectly right, I've reworked the text several times and these mistake slipped through the proofreading. Thanks for pointing them out.
friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
Thanks for the idea, I didn't think of the reelection aspects, I'll investigate.
friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
I'm not sure this would give the same kind of results, it was shown [1] that Kleinberg's HITS algorithm is PCA, and HITS gives [2] hubs (nodes linked to many others) and authorities (nodes linked from many hubs). I have the intuition that this would qualify the floor leaders as authorities, but I'd have to run the numbers.

Anyway, in order to obtain groups from PCA (that is, groups which are not only "visual"), one would have to run some kind of clustering algorithm on the reduced data.

[1] http://www.uclouvain.be/cps/ucl/doc/iag/documents/WP125_Saer...

[2] http://en.wikipedia.org/wiki/HITS_algorithm

friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
I have absolutely no idea why it renders this way on your Chrome, maybe an issue with TypeKit?

About the visualization, it was done semi-manually with a tool I've developed to heuristically minimize the crossings, but their is no way to obtain this kind of layout purely algorithmically (I'm pretty sure it's NP-hard).

  it looks like the groups are scored numerically but the senators are simply ranked
Not quite sure what you mean. The groups were positioned in order to have the one with most Republicans on one side and the one with most Democrats on the other one. There were consistently two groups for those sessions, this I can assure you. The order of the senators inside the groups is arbitrary, in order to attempt to minimize the number of crossings and provide a readable output.
friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
I'll have to go back to my notes, but I'm pretty sure I found a lot of opponents, but maybe I'm remembering wrong. Thank for pointing this out, I'll have another closer look !
friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
Sorry about that, I should have clarified that each Senator could be in different groups, hence the branching. I'll add a little darkness to the background bars.

What kind of typesetting issues did you have, and with which version of Chrome?

friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
Thanks, the algorithm is a heuristic which optimize a quantity I've called social cohesion (http://arxiv.org/pdf/1107.3231.pdf), the article presenting the algorithm itself is currently under review, but basically: first it computes the best possible group for selected edges in the graph, then it merge groups which overlap too much. The whole difficulty is to identify how to select those edges, how to expand around them and then what does "too much overlap" means. I'll link to the preprint as soon as I upload it to arxiv.

What do you mean exactly by "detect" issues? C^3 should work if there is a notion of transitivity in the network (that is, if A and B are similar and B and C are similar, then with very high probability A and C are similar).

friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
I was not aware of this xkcd comic, funny how things seem to pop out. My inspiration was more in the line of Sankey diagrams. Among others, the famous map of Napoleon's invasion of Russia by Minard (http://en.wikipedia.org/wiki/File:Minard.png). I've called this representation a "groupflow" but any name would do.

The notion of agreement departs a little bit from the classical fraction of common votes/total votes and instead is based on a vector model of votes, using cosine similarity as a value of agreement. The agreement groups are computed by heuristically optimizing a quantity called the cohesion and which turns out is really correlated to the way people perceive social communities (the old preprint of the first paper: http://arxiv.org/pdf/1107.3231.pdf).

friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
I thought about that, but 12 of the 18 Democrats were fiercely opposed to the invasion…
friggeri··on Show HN: Beautiful Visualization of Agreement Groups in the US Senate
Op here, this is part of my PhD research. Please bare in mind that I'm French and that my knowledge of U.S politics is limited to what I can read online.

If you find any errors in my analysis or have any tips or other interesting pieces of information I'd be really happy to discuss with you.

friggeri··on The Masochism of Implementing CSS Baseline

  Finally, if you’re wondering what’s the best baseline to use, after much dicking about, we’ve discovered that going for something lower (like 11px or 12px) is the best tactic. Whilst this means that most of your elements will be on a double baseline (i.e. normal paragraph body copy might be 16px in font size on a line height of 22px using a baseline of 11px), it gives you more flexibility when determining the margin and spacing of items on your site so you don’t always have to have a large 22px or 24px gap between elements.
In that case, why not use a baseline of 1px for even more flexibility?

Seriously, using half-lines as a baseline must be against the initial idea.. As for the spacing between elements of different heights, you can always adjust the margins (smaller top margin / larger bottom margin, or the other way round) to compensate.

friggeri··on In Which I Tell You to Stop Whining About CoffeeScript
In my opinion, CoffeeScript is not a language, it's nothing more that an alternative syntax for JavaScript. The argument that one should know CS in order to use a CS library makes no sense, it's nothing more than JavaScript and I cannot stress that enough. Where it helps a lot though is that it does remove a lot of JS bad parts and incorporates common patterns. Extending Array in CS is nothing more than `class Foo extends Array` and it's perfectly compatible with plain JS.

Basically, I do have more of a problems with libraries which add layers of indirection (eg using _.each) at eval time when it could be done on CS at compile time.

So, once again, CS is JS, written a little differently and with some nice bonuses.

friggeri··on Show HN: Distinct Color Palette generator using Red-Yellow-Blue colorspace
Because the colors at the end are the one which are closest to the average of all those before. In RYB, the average is what you'd obtain by mixing paints of those colors, so a really earthy tone.
friggeri··on Show HN: Distinct Color Palette generator using Red-Yellow-Blue colorspace
Do you have any reference for that ? (mathematical models of color blindness) ?
friggeri··on Show HN: Distinct Color Palette generator using Red-Yellow-Blue colorspace
Not really an encoding problem, I suppose the issue arises because the fallback font does not have those symbols. I can't test on Windows but if someone could point me to a font which has those mathematics characters on Windows I'll gladly specify that font.
friggeri··on Show HN: Distinct Color Palette generator using Red-Yellow-Blue colorspace
What version of firefox are you running ?
friggeri··on Show HN: Distinct Color Palette generator using Red-Yellow-Blue colorspace
Fixed by removing the generate button, it was totally useless anyway as the update happens directly when you change the number of colors to generate.
friggeri··on My weekend project: All 1e280 possible tweets on one page
It's really, really fast. Congrats ! No accents though: try searching for `é` for example.
← PreviousPage 4 of 6Next →