{"id":1627,"date":"2009-03-02T18:26:55","date_gmt":"2009-03-03T01:26:55","guid":{"rendered":"http:\/\/kodegeek.com\/blog\/?p=1627"},"modified":"2009-03-03T03:43:53","modified_gmt":"2009-03-03T10:43:53","slug":"facebook-puzzless-i-meepmeep","status":"publish","type":"post","link":"http:\/\/kodegeek.com\/blog\/2009\/03\/02\/facebook-puzzless-i-meepmeep\/","title":{"rendered":"Facebook Puzzles (I, MeepMeep)"},"content":{"rendered":"<p>La gente de Facebook <a href=\"http:\/\/www.facebook.com\/jobs_puzzles\">tiene un enlace permanente con rompecabezas<\/a> para quienes quieren aplicar a una posici\u00f3n all\u00ed; La consegu\u00ed por un aviso clasificado que ellos mostraban en su sitio web y despu\u00e9s de leerlos les puedo decir que me qued\u00e9 pegado tratando de resolverlos.<\/p>\n<p>Ya les ir\u00e9 contando como me fu\u00e9 con cada uno de los problemas, el primero de ellos es s\u00f3lo para probar que el c\u00f3digo enviado compila, para lo cual prepare mi archivo Ant:<\/p>\n<pre lang=\"Xml\">&lt; ?xml version=\"1.0\" encoding=\"ISO-8859-1\"?&gt;\r\n\r\nSolution for puzzles from 'Puzzle Master Facebook Page',\r\nSolution sent to address: perl -e 'printf \"%d\\@facebook.com\\n\", 0xFACEB00C&gt;&gt;2'\r\nAuthor: josevnz@kodegeek.com. http:\/\/kodegeek.com\/blog\/<\/pre>\n<p>El c\u00f3digo de &#8216;MeepMeep&#8217;<\/p>\n<pre lang=\"Java\">package com.kodegeek.blog.jobsearch.facebook.meepmeep;\r\n\r\n\/**\r\n * Write a program that takes as input a single argument on the command line.\r\n * This argument must be a file name, which contains text.\r\n * The program should completely ignore this argument and instead print\r\n * to standard out the string \"Meep meep!\" (without the double quotes) followed by a newline.\r\n * @author josevnz@kodegeek.com\r\n *\r\n *\/\r\npublic final class MeepMeep {\r\n\r\n\t\/**\r\n\t * @param args\r\n\t *\/\r\n\tpublic static void main(String[] args) {\r\n\t\tSystem.out.println(\"Meep meep!\");\r\n\r\n\t}\r\n}<\/pre>\n<p>Y el wrapper:<\/p>\n<pre lang=\"Bash\">exec java -classpath . com.kodegeek.blog.jobsearch.facebook.meepmeep.MeepMeep $*<\/pre>\n<p>Ellos piden que lo envies a la siguiente direcci\u00f3n:  <strong>{0xFACEB00C&gt;&gt;2 in decimal}@facebook.com<\/strong><\/p>\n<p>Decodificarla es trivial en Perl y en cualquier otro lenguaje:<\/p>\n<pre> lang=\"Perl\"&gt;\r\nperl -e 'printf \"%d\\@facebook.com\\n\", 0xFACEB00C&gt;&gt;2'<\/pre>\n<p>Si todo sale bien, el robot de Facebook les dir\u00e1 lo siguiente:<\/p>\n<pre>Dear submitter,\r\n\r\nThank you for your test submission of a puzzle solution to Facebook! After running your solution to meepmeep, I have determined it to be correct. Since your test has been successful, you are all set to try one of the other puzzles. Best of luck!\r\n\r\nSincerely,\r\n-The puzzle robot<\/pre>\n<p>Veneblogs: <a rel=\"tag\" href=\"http:\/\/www.veneblogs.com\/etiquetas\/java\">java<\/a>, <a rel=\"tag\" href=\"http:\/\/www.veneblogs.com\/etiquetas\/facebook\">facebook<\/a>, <a rel=\"tag\" href=\"http:\/\/www.veneblogs.com\/etiquetas\/puzzles\">puzzles<\/a>, <a rel=\"tag\" href=\"http:\/\/www.veneblogs.com\/etiquetas\/meepmeep\">meepmeep<\/a><br \/>\nBlogalaxia: <a rel=\"tag\" href=\"http:\/\/www.blogalaxia.com\/tags\/java\">java<\/a>, <a rel=\"tag\" href=\"http:\/\/www.blogalaxia.com\/tags\/facebook\">facebook<\/a>, <a rel=\"tag\" href=\"http:\/\/www.blogalaxia.com\/tags\/puzzles\">puzzles<\/a>, <a rel=\"tag\" href=\"http:\/\/www.blogalaxia.com\/tags\/meepmeep\">meepmeep<\/a><\/p>\n<p>To2blogs: <a rel=\"tag\" href=\"http:\/\/www.to2blogs.com\/tag\/java\">java<\/a>, <a rel=\"tag\" href=\"http:\/\/www.to2blogs.com\/tag\/facebook\">facebook<\/a>, <a rel=\"tag\" href=\"http:\/\/www.to2blogs.com\/tag\/puzzles\">puzzles<\/a>, <a rel=\"tag\" href=\"http:\/\/www.to2blogs.com\/tag\/meepmeep\">meepmeep<\/a><\/p>\n<p>Technorati: <a rel=\"tag\" href=\"http:\/\/technorati.com\/tag\/java\">java<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tag\/facebook\">facebook<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tag\/puzzles\">puzzles<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tag\/meepmeep\">meepmeep<\/a><\/p>\n<p>Del.icio.us: <a rel=\"tag\" href=\"http:\/\/del.icio.us\/tag\/java\">java<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/tag\/facebook\">facebook<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/tag\/puzzles\">puzzles<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/tag\/meepmeep\">meepmeep<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>La gente de Facebook tiene un enlace permanente con rompecabezas para quienes quieren aplicar a una posici\u00f3n all\u00ed; La consegu\u00ed por un aviso clasificado que ellos mostraban en su sitio web y despu\u00e9s de leerlos les puedo decir que me qued\u00e9 pegado tratando de resolverlos. Ya les ir\u00e9 contando como me fu\u00e9 con cada uno <a class=\"read-more\" href=\"http:\/\/kodegeek.com\/blog\/2009\/03\/02\/facebook-puzzless-i-meepmeep\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,439,438],"tags":[236,757,483,482],"_links":{"self":[{"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/posts\/1627"}],"collection":[{"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/comments?post=1627"}],"version-history":[{"count":24,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/posts\/1627\/revisions"}],"predecessor-version":[{"id":1656,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/posts\/1627\/revisions\/1656"}],"wp:attachment":[{"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/media?parent=1627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/categories?post=1627"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/tags?post=1627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}