Simpaticos sintomas

Por Saiyine Enviar correo el 2010-03-17 11:01:36 - Secciones: PRINCIPAL IDEAS - Enlace permanente: 910

Siempre me ha chocado un poquillo que no hubiera una pagina, o por lo menos que no haya una conocida, en la que tu describieras los sintomas que tienes y te dijera el problema médico más probable que tuvieras, en plan un listado de porcentajes de probabilidades de mayor a menor.

Naturalmente, tendria que estar acompañado por unas letras bien grandes y parpadeantes explicando que la web no tendria ninguna responsabilidad clinica y que fueras directo al medico, pero por lo demás no veo ninguna diferencia entre rebuscar en un listado enorme de enfermedades y una busqueda full-text (como las que se usan para encontrar la pagina web más adecuada para unas palabras dadas en los Googles y demás). Me parece, desde mi ignorancia, supongo, que dados un corpus de paginas web definidas por las palabras que contienen y otro de enfermedades relacionadas por un listado de sintomas (¡expresados con frases en lenguaje natural!) solo existe entre ambos una diferencia de semanticidad, no de algoritmica.

Imagino que el tema de la medicina se presta demasiado a demandas absurdas como para que merezca la pena meterse en un follón, pero es que ultimamente yo tambien tengo unos ciertos sintomas y no tengo ni idea de que me pasa. ¿Quizás de existir una web así, las personas en mi situacion, dados los resultados de la busqueda, nos animariamos a acercarnos a un medico de verdad? Quien sabe, pero en cualquier caso no me parece una mala idea para una web, desde luego a mi me vendria bien.

    -  Añadir un comentario

  • Feb 22  JAVA  Obtener enteros de la consola en Java
  • Feb 22  JAVA  Descubrir los numeros enteros existentes entre dos enteros dados
  • Feb 16  REVIEWME CASINOS  Casino Scandinavia
  • Feb 16  REVIEWME TRANSLIA TRADUCCION  Translia, la mejor solucion de traduccion
  • U900 - Diamond Head

    Por Saiyine Enviar correo el 2010-02-08 07:23:35 - Secciones: PRINCIPAL VIDEOS U900 - Enlace permanente: 905

    "Hello to everyone watching YouTube. We are U900. Please listen to 'Diamond Head.'"

    Que no me entere yo que vais por la vida sin politono, maldita sea.

        -  Añadir un comentario

    Who's your daddy?

    Por Saiyine Enviar correo el 2010-01-31 17:06:59 - Secciones: PRINCIPAL CHORRADAS IMAGENES STARWARS - Enlace permanente: 904

    Si el tipo que lo dibujó tiene neurona y media, ya deberia estar vendiendo los posters a un doblón de a ocho, por lo menos.

    Chingado chungamente de MundoGeek, que a su vez, supongo, lo vió en la web del autor, Cliff Chiang.

        -  Añadir un comentario

  • Jan 27  OTROS  Poker Sapiens
  • Jan 25  PERL DBI PROGRAMACION ENGLISH MYSQL  Reading a random row from a MySQL table with Perl DBI
  • Statistics on getting a random row from a table

    Por Saiyine Enviar correo el 2010-01-24 15:14:31 - Secciones: PRINCIPAL ENGLISH MYSQL SQL - Enlace permanente: 901

    So yesterday night I found this interesting post talking about of the ages known alternative for getting a random row from a table of using two queries, the first for learning the number of rows, and the second to get just one row using the reserved SQL word offset and passing the number of rows as the top for a random funciont. In pseudo-SQL, something like this...

    SELECT COUNT(1) AS total FROM bench_myisam; $rand = rand($total); SELECT * FROM bench_myisam LIMIT 1 OFFSET $rand;

    ... instead of using our much hated but extremely common order by rand:

    SELECT * FROM bench_myisam ORDER BY RAND() LIMIT 1;

    I've always thought the two querys alternative had to be slower even if it was just for the overhead of the two network accesses, but this guy proved me wrong by going all the hassle of testing it for real, and, really, the two querys approach resulted being an order faster in is tests than our "beloved" random ordering.

    It was precisely these tests that sparkled my curiosity, because I don't feel like they where of my taste. First, he uses MySQL and Sqlite, what an strange combination. Sqlite is like the MsDOS of the databases, there are lots of better embedded ones if it was the reason. Second, what's the use of using MySQL and not telling what storage we are using for the tests? (Althought he hints in the commentaries it could be MyISAM, and asserts correctly that the row number is stored in the metadata of the table). And finally, the consists of just one query. Whoa, what an statistic.

    So I did my own tests with my server, a MySQL 5.1.37-1ubuntu5 running on an Ubuntu 9.10, and they really show he's absolutely right:

    In a table with a million rows, for getting a random row, using the two reads approach is an order of magnitude better than the naive random order way! MyISAM performing better than InnoDB was expected, but, sincerely, I believed the difference would be greater.

    The data of the table is measured in milliseconds per query (Where do I write to get that measure unit named after me????) so obviously the lower the better, as is the time on average a query took to complete, calculated from the thousands of petitions the perl based clients did.

    UPDATE: The querys, explained:

    The naive approach, ordering by rand() and then getting the first row:

    EXPLAIN SELECT * FROM bench_myisam ORDER BY RAND() LIMIT 1;

    idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
    1 SIMPLE bench_myisam index (NULL) PRIMARY 8 (NULL) 1000000 Using index; Using temporary; Using filesort

    And the output for the two querys approach:

    EXPLAIN SELECT COUNT(1) AS total FROM bench_myisam;

    idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
    1 SIMPLE (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) Select tables optimized away

    EXPLAIN SELECT * FROM bench_myisam LIMIT 1 OFFSET $rand;

    idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
    1 SIMPLE bench_myisam index (NULL) PRIMARY 8 (NULL) 1000000 Using index

    The tables are incredibly boring, just a million rows of an integer primary key and a varchar(200) of sample text. And here is the code for the Perl client I wrote to test the two querys approach. The other client is almost identical, but with just one query.

    Peter Rabbitson (2010-01-25 08:12:55)

    Can you please provide some actual data? Like the amount of rows in the table, and the table CREATE statements. Also if possible the query plans (EXPLAIN)

    Saiyine (2010-01-25 05:15:41)

    The tables are a million rows big, and as simple as they could be, with an integer key called id and a varchar for the data.

    Anyway, I will update the post with as much data as possible as soon as possible.

    Peter Rabbitson (2010-01-25 05:54:41)

    Right, I think you'll get a slightly different result with InnoDb, as the count() there sucks balls.

    Saiyine (2010-01-25 07:05:51)

    Yep, that is what the graphic says, InnoDB reads using the count() use twice the time the MyISAM.

    I have not put the explain for the InnoDB count() because is a PITA for me to add formated code to the blog, but it says the InnoDB count() uses the index of the table to calculate the row count, while the MyISAM just gets it somewhere from the data engine.

        -  Añadir un comentario

    Los gemelos golpean dos veces

    Por Saiyine Enviar correo el 2009-12-20 17:27:12 - Secciones: PRINCIPAL GEMELOS IMAGENES - Enlace permanente: 900

    Aprovechando que ya casi nos hemos comido el jamón que me regaló mamá por estas felicisimas fechas, quiero compartir con vosotros una duda, una preocupación que arrastro ya bastantes meses, desde Madrid incluso.

    La gran mayoria de las personas sensatas, es decir, todo el mundo menos Trolosil, ve bastante claro que tener cachorros humanos hembra en casa es bastante más problematico a largo plazo que tenerlos macho, por razones que en general diremos se refieren a la aparicion tempranera en exceso de una tercera generación, que mejor que sea en tejado ajeno.

    Incluso algo se comenta de la posibilidad de la descendencia multiple univitelina, pero me he fijado que siempre se pasa de puntillas por un tema relacionado con los gemelos (no con los mellizos) (nunca he entendido como los guiris pueden vivir con una sola palabra para dos eventos tan dispares)... dicho tema, es naturalmente, el cambiazo.

    ¿Que pasa si estas bañando a Castor y Polux, te vas un momento a dispararle a alguien desde la ventana, y mientras apuntas por la telescopia, los crios se te intercambian? Es decir, los padres de gemelos les pintan una marca con rotulador no ya para distinguirles, sino simplemente para que no haya un cambio de posiciones en el cosmos?

    Es que claro, que se te cambien Zoey y Kate de sitio en la bañera de chiquiticas, pues no pasa nada, las dos han triunfado absolutamente en lo suyo:

    Pero, ay amigos, ¿que seguridad pueden tener los padres de Vicentin y Unai de que no los cambiaron en ningún momento? Vicentin es uno de los más grandes artistas de nuestro tiempo, y vive una vida de lujo extremo gracias a las exitosas peliculas que tiene en cartelera y sus discos de versiones de Chimo Bayo, es decir, todo un Tiger Woods de la vida, pero... ¿y el pobre gemelo al que llamamos Unai, que lo mas que ha conseguido en la vida fue capitanear al Lorca que casi sube a primera, y ahora vive en la miseria, sufriendo el dia a dia de entrenar a un equipo en no se que sitio con playa, y mucho me temo, teniendo que aguantar de vez en cuando al atontao de Morata, el aguileño renegado de Cadena Ser?

    Solo por lo de tener que soportar a Morata me dan ganas de llorar por este pobre muchacho, condenado por un único error, el que cometió al cambiarse de lado en la cuna mientras sus padres no miraban. Muy triste.

    Tapanez (2009-12-21 08:10:30)

    Según se comenta el soportar a Morata debería incluir mirarle siempre de frente, lo contrario llevaría al bueno de Unai a pasarse de pie los partidos.

    Por lo demás, no he entendido una palabra :noworry:

    Rojete (2009-12-22 01:09:20)

    Sólo tengo dos preguntas:

    1)¿Quien es el de Muchachada Nui, Vicentín o Unai?. No me lo digas: en Albacete no ponen nombres raricos....

    2)¿Donde viven las gemelas de cualquiera de las dos zagalas de la afoto? Me conformo con una copia simple de cualesquiera :OO jurjur

    Por lo demás yo tampoco he entendío mucho...

    Saiyine (2009-12-22 05:35:00)

    El Ron del chino os tiene sorbio el coco: intento expresar mi paternal inquietud acerca de los cambiazos accidentales entre gemelos, que pueden llegar a tener tan trágicas consecuencias como el caso de estos dos muchachos univitelinos.

    Saiyine (2009-12-22 05:45:33)

    Y para los despistados, las gemelas ni siquiera nacieron en el mismo continente.

    Tapanez (2009-12-22 10:05:35)

    Sólo conocemos unas gemelas, bendito sea tu colega ese negro.

    Onez (2009-12-28 07:35:55)

    Vicentón no figura! El baile de la culebra sexy!

    Iré por recomendación de Saiyine y esposa (último comentario)

    Saiyine (2009-12-28 07:45:09)

    Diole, hace años que no voy, incluso me ha costado un buen rato recordar donde era. (Los Toneles)

    Saiyine (2009-12-30 05:58:56)

    Ah, leche, no lo habia pillado, ahora si.

    Chimi (2010-01-02 06:44:19)

    En serio cuñao, te aburres mucho definitivamente. Me has dejado atónita con este post.

    Mientras que a los telediarios les da por poner a tias haciendo topless cuando no tienen nada que contar, (el que no me crea que vea el telediario en verano) a ti te da por escribir dudas existenciales un tanto absurdas.

    PD: No hay afán de ofender.

        -  Añadir un comentario

  • Dec 19  JUEGOS FLASH SIMULACION  A ver esa punteria
  • Dec 08  PRINCIPAL FUTBOL BERNABEU  Mañana en el museo
  • Dec 06  JUEGOS FLASH TOWER DEFENSE  Cuando los pingüinos atacan
  • Nov 28  PRINCIPAL  En el campo de la excelencia
  • Nov 16  PRINCIPAL VIDEOS ESPACIO  Molaria darse una vuelta por ahi
  • Nov 16  DELPHI  Poner las ventanas de tu programa en Delphi encima de las demás (Always on top)
  • Oct 23  PRINCIPAL CONCURSOS GOOGLE WAVE  Regalo 10 invitaciones a Google Wave
  • Oct 12  PRINCIPAL WALLRES  Lanzamiento oficial de Wallres
  • Sep 26  LINUX AWK  Saber cuanto ocupan en el disco determinado tipo de ficheros
  • Sep 25  PRINCIPAL VIDEOS PHOTOSHOP  Prohibe esto, Sarkozy
  • Sep 14  PRINCIPAL IMAGENES  Del dicho al hecho
  • Aug 30  PRINCIPAL  Tirando querys, y más
  • Aug 30  LINUX SAMBA  Configuración simple de un servidor Samba
  • Aug 26  CHORRADAS VIDEOS  Magia
  • Fondos de pantalla

    . . .

    Descargas

  • ApagaPC
    apagapc241.exe  (3276)
  • LimpiaDocus
    LimpiaDocus001.exe  (2547)
  • RCM
    rcm001.zip  (2184)
  • Popmail
    popmail-0.4-psmn.tar.gz  (2255)
  • Manual de Delphi en PDF
    delphi_pdf.zip  (2848)
  • Evangelio del Perl
    Evangelio_del_perl.pdf  (2555)
  • Excel Simpsons
    Excel Simpsons  (2798)
  • . . .

    ltimos comentarios

  • 371 - Anonimo:
  • 707 - Anonimo: hola quiero reinstalr el SO xp con el que venia...
  • 371 - steveAnonimo: cuantos euros puedo comprar con 4000.00 dolares
  • 622 - anita: hey yo quiero bajar un programa para hacer esoo como...
  • 358 - Anonimo: ya le quite el lock on a mi minicomponente, ahora...
  • 717 - Delaossa: Vea cata, la cosa esta mas sencilla de lo que...
  • . . .

    Proyectos Online

  • Saiyine Store
  • Kunowalls!!!
  • Fondos de pantalla
  • Picaday: imagenes sexys o chocantes.
  • Scarlett: fotos de Scarlett Johansson
  • WhatsmyIP: obtener tu IP pública
  • Uma Thurman: galeria de Uma Thurman
  • FunPics: imagenes graciosas
  • . . .

    Blogs

  • Por lo que más querais, no entreis a estos: Tapanez, Yhandros, Onez.

  • Otros en español: El Mundo Today, La libreta de Van Gaal, Chavalina, Kirai, Mundo Geek, Microsiervos.

  • Mis lecturas en guiri: Michael Yon, Coding Horror, YCombinator news, MySQL Performance, Slashdot.

    . . .
  • Utilidades

  •  Coral  (1063), cacheando webs
  •  Spam.la  (1249), correo de usar y tirar
  •  Mailinator  (1217), correo de usar y tirar
  •  Bug me not  (1097), absurdos registros di NO
  •  Trashmail  (1124), correo de usar y tirar

    . . .
  • Faq

  • ¿MlDonkey para windows?
    Pues si, ya hay un port, y lo podeis encontrar aqui.
  • ¿Imagenes del universo?
    Puesss, mi favorita es astrored, aunque debe haber muchas similares.
  • ¿Drivers para voodoo?
    Probad aqui para la voodoo 3.
  • . . .

    Busquedas


    Varios ejemplos de lo que buscaban visitantes recientes:

    . . .

    Página web ©2001-2010 Saiyine generada en s, con 4118028 visitas en total, hoy (de un total de 0 previstas).

    . . .