2.2.0 :017 > a = <<␄
SyntaxError: foo.rb:17: can't find string "␄" anywhere before EOF
foo.rb:17: syntax error, unexpected end-of-input, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
from /usr/bin/irb:12:in `<main>'
a = <<␄
Although with "a = <<-␄" it works…
I may be dumb not being able to find something about dochere in ruby but it's weird that a unicode char is working in some case and not on the other… ಠ_ಠ
Pour ceux qui comme moi on tendances
à abuser du Posca, on se rend vite à l'évidence, on en use beaucoup et
de fait ça revient relativement cher. En effet le réservoir des Posca
s'épuise plutôt rapidement. Il existe une solution facile à mettre en œuvre ...
The ancient game of go still holds many challenges. Compared to go, chess is like tac-tac-toe. There are 255168 possible games of tic-tac-toe. There are about 10^120 possible chess games. But there are about 10^761 possible go games!
The main challenge with go is playing it well. But there's also counting the number of legal positions.
A full-fledged go board has 19 × 19 squares, and approximately this many legal positions:
That's about 2 × 10^170.
John Tromp wants to know the exact number. Why? Because it's a fun challenge. He knows an algorithm to calculate this number. It's very clever. But it still takes a lot of computing power.
He recently calculated the number of legal moves on an 18 × 18 board. It took 9 months of computation and 4 petabytes of disk IO on a Dell PowerEdge R820 server. He did it at the Institute for Advanced Studies in Princeton... that place where Einstein used to hang out. The answer is:
To get the answer for a 19 × 19 board will take more work. Using some very clever math, the task can be split up into 9 jobs that each compute 64 bits of the 566-bit result. To do this and be sure the answer is right, he needs about 10 to 13 servers, each with at least 8 cores, 512GB RAM, and 10-15 terabytes of disk space. The job will take about 5-9 months.
If you want to help out, email him at firstname.lastname@example.org.
You can read more about this here:
including the answers for all square boards of size up to 18 × 18. The most interesting part is the algorithm to compute these numbers:
Puzzle 1: Can you turn this animated gif into a looped animated gif? It's from Wikicommons. It's sad that it plays just once and then stops:
Puzzle 2: This animated gif is just 11 kilobytes. We could easily afford a looped gif that plays a whole game - say, a famous game. Wikicommons deserves it! Can you make one?
I thank for pointing out Tromp's work. A calculation of the number of tic-tac-toe games is here:
There seems to be some controversy here: another person computed the number of games counting to as the same if they're related by symmetries, and got an answer of 26830. Because this is less than 1/8 times the answer above, they can't both be right.
Ever since I got a smart phone in September, I've been playing go with a program called "Go Free". Someday soon I'll fork over the $1.99 to get the version that lets you play on a 19 × 19 board. So far I'm just trying to learn to crush the computer on a 13 × 13 board. I like playing a computer because I get annoyed at human opponents when they beat me, and I don't like that. At some point I should be able to beat the computer consistently on a 19 × 19 board and then I'll have to either quit or... something else.
Go is full of general lessons about life, which become more profound as you get better... at least for a while. Maybe at some point it devolves into being "merely technical" - I don't know.
Unfortunately these general lessons mostly apply to situations where cooperation is not an option. So it's possible my personality is being warped by playing go. Sometimes I can sort of feel that happening.
- Vert Potam'Comic Artist, 2008 - presentIn charge of producing printable masters for the fanzines between 2008/2011. And webmaster.
- Owan Space FleetAdmiral, 2010 - presentFighting the Insectohom menace.
- Pendant ce temps dans l'espace.Graphic artist, novelist, 2010 - presentI made all complicated graphics for the "Lonely Cactus" and crossovers webcomics. Science & science-fiction consultant for the novel. And wrote few episodes.
- Vert Potam'Secretary, CG Artist, 2008 - 2010co-founder, made all legal papers to officialize the association. Secretary, in charge of producing printable masters for the fanzines between 2008/2011. And webmaster.
- Dechained TeamSecretary, CG Artist, 2001 - 2004co-Founder. Secretary, in charge of digitalization of artworks between 2001 and 2003. Salon de la BD de Tarbes 2003, Salon de la BD de Colomiers 2003, Salon de la BD de Tarbes 15-16 Mai 2004
- MC Crabe (Colomiers)Colorist, Artist, 2012 - 2012I made the colors of the decorations for the 2012 Colomiers' spring festival. I've also made the design and line art of the wallpainting made during the very same festival.
Emacs Lisp: Command to Change Earth-Coordinate to Google Map Link
This page shows a emacs lisp command to turn earth coordinate into Google Map link. I have a earth coordinate latitude longitude under curso
[Ailleurs] Voyage en Irlande - Jour 1 - Départ - Dublin.
Voici le premier article au sujet de notre petit voyage irlandais. Une escapade dont nous gardons un souvenir magique. *Vidéo en fin d'artic
[Gourmandise] Découverte de Sojasun et idées recettes.
Je suis inscrite sur un site qui permet de participer à des projets de tests de produits : trnd. Dernièrement, j'ai été sélectionnée pour pa