Tumgik
luisjdominguezp · 7 years
Text
Coches eléctricos vs a gasolina
En "cuentas alegres", para recorrer 100,000 km en un coche a gasolina cuesta 100,000 MXN de gasolina (consumo en 15 k/L) y hasta 30000 MXN en mantenimiento dependiendo del coche (por ejemplo, de los servicios hasta los 100,000 km, en un Yaris serían como 18000 MXN).
En un coche eléctrico en tarifa media de consumo a 1.15 por kWh, y sabiendo que un coche en estos días da aproximadamente una autonomía de 100  a 120 km con su batería de 24 kW, entonces, redondeando a 25 kW por cada 100 km son como 30000 MXN de electricidad por 100,000 km recorridos, más el mantenimiento de los frenos y el refrigerante, que es lo único que gasta (como puse en una gráfica anterior).
Tumblr media
Entonces tendríamos algo así como 80 mil pesos de diferencia en mantenimiento normal y consumo eléctrico o  de gasolina. Por lo que un auto eléctrico está cerca de quedar "tablas" en costo contra un coche a gasolina. Nota: en estos días aún te cambian la batería del coche eléctrico sin costo. Adicionamente, los eléctricos no pagan tenencia, ni necesitan verificación de emisiones, y la CFE te pone un contrato aparte para la carga de electricidad, para que no te suba la tarifa de uso doméstico.
2 notes · View notes
luisjdominguezp · 7 years
Text
Sopes o Bocoles
Pues aquí unas definiciones (algunas sobresimplificadas) de qué son algunos antojitos mexicanos. Las definiciones las encontré en varios lugares de internet, pero yo creo que ya es información de dominio público. Con gusto agrego otras variantes. Normalmente se utiliza maíz blanco o amarillo según la región, a veces maíz azul o con frijol.
- Tortilla: Torta delgada de maíz cocida al comal - Tostada: Tortilla frita, puede ir con relleno encima - Totopo: Tostada triangular para sumergir en salsas - Gordas: tortillas gordas - Gorditas: gordas pequeñas al comal, se rellenan por la parte que se infló. En algunos lugares las fritan después de rellenarse - Bocoles: gordas pequeñas y gruesas, se rellenan de en medio. Pueden ser con masa de frijol, pero siempre con manteca de cerdo en la masa o manteca vegetal - Sopes: gorditas redondas, con borde primero al comal y luego van fritas, o solo fritas sin borde, depende del lugar. El relleno va arriba. En algunos lugares no las fríen - Pellizcada: sopes con relleno de frijol, queso o solo mantequilla (no lechuga), la masa puede ir frita - Huarache: gordas alargadas con relleno encima - Picada: Gordas grandes redondas, normalmente sin miga y relleno encima - Migadas: Gordas grandes redondas y gruesas, con miga y relleno encima - Chalupa: tostada gruesa con concavidad, va frita, relleno encima - Tlacoyo: doblada gruesa de queso u otra cosa, va frita, relleno encima (?) - Salute: Sope frito blandito sin borde, pero con comida yucateca - Panucho: Gorda ligeramente frita con comida yucateca - Memela: Sope frito con borde, pero con comida oaxaqueña - Quesadilla: Tortilla o gorda doblada redonda con queso al comal, a veces frita. En algunos lugares, -sobre todo en la esfera del dominio opresor de la CDMX-, es un tlacoyo de maíz azul/amarillo cocida al comal y salpicada con aceite caliente con relleno en medio, van con algún guisado en lugar del queso, con queso como complemento al guisado, o solo queso. En algunos lugares es una empanada (cerrada) frita con queso. Molote: papa envuelta en masa y frita
0 notes
luisjdominguezp · 7 years
Text
Body parts in Náhuatl
Fíjense cómo se unen las palabras como cabello (para ceja, pestaña, etc.), ojo (para párpado, pestaña, ceja), mano (antebrazo, muñeca, dedo, etc.). Notice how the words are combined to form others, like hair (for eyebrow, eyelash, etc.), eye (for eyelid, eyebrow, eyelash) or hand (forearm, wrist, finger, etc.).
* cuaitl: cabeza / head * ixtli: rostro, cara / face * ixcuaitl: frente / forehead * nacaztli: oreja / ear * yecahtzolli: nariz / nose * ixtololohtli: ojo / eye * tzontli: cabello / hair * camahtli: boca / mouth * tenxipalli: labio / lip * tenchalli: barbilla, mentón / chin * ixcuaitlaxtli: párpado / eyelid * ixquempaltzontli: pestaña / eyelash * ixtzontli: ceja / eyebrow * camatzontli: bigote / mustache * camapachtli/camapachtzontli: barba / beard * xayacahtli: mejilla / cheek * tlantli: diente / tooth * tlancochtli: muela / molar * nenepilli: lengua / tongue (buche, nana y nenepil anyone?) * copac: paladar / palate * quechtli: cuello / neck * tozcatl: garganta / throat . * ahcolli: hombro / shoulder * ahcolmaitl: antebrazo / forearm * mamolic: codo / elbow * quechmaitl: muñeca / wrist * maitl: mano / hand * mahpalli/maipalli: palma de la mano / hand palm * mahpilli/maipilli: dedo / finger (pilli=hijo,niño/son, child) * mahpiliztetl/maipiliztetl/iztetl: uña / fingernail (tetl=piedra/stone) . * elpantli: pecho / chest * mihzicuilli: costilla / rib * cuetlapantli: espalda / back * pitzahyahtli: cintura / waist * ihtetl: barriga, estómago / stomach, tummy, belly * xihtli: ombligo / navel (de aquí proviene la palabra Mexihco/this is where the word Mexihco comes from) . * xilantli: entrepierna / crotch, groin * tzintamalli/tzintli: nalga / buttock * quetzamalli: muslo / thigh * tlancuaitl: rodilla / knee * quechihxitl: articulación del tobillo / ankle joint * xocuanhuixtetl: hueso del tobillo / ankle bone * cotztli: pantorrilla / calf * ihxitl: pie / foot * xohpalli: planta del pie / foot sole * quehtzolli: talón / heel * xopilli: dedo del pie / toe (pilli=hijo,niño/son, child) * xopilliztetl: uña del dedo del pie / toenail (tetl=piedra/stone) . * yollotl: corazón / heart * yezohtli: vena / vein * nacanelhuayotl: nervios / nerves * tlanitztli: tendón / tendon * omitetl: hueso / bone * nacatl: carne, músculo / meat, muscle * cuetlaxtli: piel / skin * yelli: hígado / liver * ihzicayotl: pulmón / lung * cuitlaxcolli: intestino / intestine (cuitlatl=excremento/excrement) * cuitlaxcolpitzahuac: intestino delgado / small intestine (pitzahuac=delgado/thin) * cuitlaxcoltomahuac: intestino grueso / large intestine (tomahuac=gordo/fat) . * yeztli: sangre / blood * chihchatl: saliva * tlapiaztli: orina / urine * cuitlatl: excremento / excrement . * chichihualli: seno, tetilla / breast, nipple (en México le decimos "chichis" a los senos/in Mexico, we call breasts "chichis") * nenetl: vagina * omizetl: semen * huilotl/tototl: pene / penis (huilotl/tototl=pájaro/bird) * xitetl/ahuacatl: testículo / testicle (ahuacatl=aguacate/avocado) * cihuaxitetl: ovario/ovary (cihuatl=mujer/woman)
--@foo_fighter
2 notes · View notes
luisjdominguezp · 8 years
Text
PIB versus población por estados
El norte siempre cacarea que mantiene al país, hay micro estados que cacarean tener arriba del 11% de crecimiento (si, pero 11% de cuánto)... pues rápidamente me dí a la tarea de comparar la aportación del PIB vs la cantidad de personas por estado, para ver qué tan productivos son, se supone que si somos 32 estados, nos toca aportar por ahí del 3%, pero hay estados más grandes que otros, así que con información del Wikipedia del PIB del 2014, y población del 2015 hice un comparativo de cuánto deberían de aportar: si un estado tiene el 3% de la población, debe de aportar el 3% para quedar tablas, si es menos, entonces recibe más de lo que aporta, si es más, entonces aporta más... aquí los resultados: (Además, ubiqué por zonas: Centro, Norte, Bajío, Sur, y Yucatán... a Zacatecas lo puse en el Bajío, para que no nos diera en la torre con las estadísticas :D) Link: http://i.imgur.com/rLeaGzX.png
Tumblr media
0 notes
luisjdominguezp · 8 years
Text
Firma de documentos utilizando la FIEL del SAT
[Para aquellos que ya tienen la FIEL]
Todo contribuyente mexicano tiene su certificado FIEL... OK, no, solamente algunos millones de contribuyentes.
El certificado digital del SAT (Sistema de Administración Tributaria) es una asociación entre una llave pública/privada del tipo RSA 1024/2048, y nuestra identidad como contribuyente: RFC, firma autógrafa, domicilio, huellas dactilares, etc. Aunque esto último se almacena en el SAT. Dicha asociación se realiza utilizando la aplicación Certifica (antes Solcedi), o directamente en las oficinas del SAT (previa cita para la FIEL). Al final, el contribuyente obtiene una llave privada. En la calle, a esto se le conoce como firma FIEL, aunque la firma propiamente es lo que resulta de hacer uso del certificado, y su llave privada.
Originalmente el SAT comenzó a utilizar los certificados digitales como instrumento para la firma electrónica de las declaraciones de impuestos, y poco a poco se ha ido utilizando para otros documentos gubernamentales.
Si bien es cierto, que dicho certificado no es el más resistente en términos criptográficos (en particular la versión RSA 1024), cada contribuyente puede utilizarlo para la firma de documentos con otros fines. Para esto, el contribuyente necesita el archivo de su llave privada (el archivo .key), y la biblioteca OpenSSL, o alguna otra. A continuación se muestra su uso con dicha biblioteca para la versión RSA 1024. Se tiene un documento archivo.txt a firmar.
Firma de documentos por parte del Firmante
openssl pkcs8 -inform DER -in Claveprivada_RFC_FIRMANTE.key -out Claveprivada_RFC_FIRMANTE.pem
openssl dgst -sha1 -sign Claveprivada_RFC_FIRMANTE.pem archivo.txt > firmabinaria.txt
rm Claveprivada_RFC_FIRMANTE.pem
Ahora, el documento a firmar "archivo.txt" tiene como firma el archivo "firmabinaria.txt", y fue firmado por el Firmante. Uno debe de distribuir ambos, e indicar quién es el firmante.
Nota: No olviden eliminar el archivo ".pem" generado.
Verificación de documentos del Firmante
Descargar Certificado FIEL del Firmante desde el SAT: https://portalsat.plataforma.sat.gob.mx/RecuperacionDeCertificados/faces/recuperaRFC.xhtml - Pedir el último certificado del RFC del firmante, el archivo tiene de nombre un número de serie.
openssl x509 -inform DER -in RFC_FIRMANTE.cer -pubkey -noout > RFC_FIRMANTE.pem
openssl dgst -sha1 -verify RFC_FIRMANTE.pem -signature firmabinaria.txt archivo.txt
Aparecerá la leyenda "Verified OK" (o su equivalente en otro idioma) si la pareja archivo.txt/firmabinaria.txt corresponden para el Certificado del Firmante.
Ahora pueden firmar documentos con su FIEL del SAT. Cabe destacar que la fortaleza criptográfica de dicha firma no es la mejor que hay en el mercado, incluso la versión RSA 1024 es mala. Por lo mismo, no se debería de utilizar para documentos importantes (como los del SAT), pero ahora ya saben usarla, solo sería de cambiar alguno que otro parámetro de los comandos aquí presentados si tienen la versión RSA 2048, ya que probablemente no utilice SHA-1 (quiero suponer, pero no me consta).
--LJ
Addendum
Opcionalmente, se puede transformar la firmabinaria.txt a formato texto para hacerlo más legible:
openssl base64 -in firmabinaria.txt -out firma.txt
En este caso, al proceso de verificación se le agregaría:
openssl base64 -d -in firma.txt -out firmabinaria.txt
Nota importante
Esta firma no es válida a través del tiempo, ya que las firmas electrónicas son susceptibles a ser falsificadas conforme avanza la tecnología, o la ciencia (o incluso por errores de ingeniería de software).
Idealmente, uno estaría firmando la firma anterior de cada documento con el nuevo certificado, y agregándole una estampa de tiempo, esto cada vez que sale una nueva firma, pero eso es tema de otra publicación
0 notes
luisjdominguezp · 9 years
Text
Updating your GNU C/C++ compiler
NOTE: Tumblr seems to translate the double dash into a long dash, be careful!
I recently got access to a couple of Apple computers, both with OSX 10.10. A few years ago, I also got an Apple computer, and I faced the same problem: OSX comes with an archaic C/C++ compiler for stability purposes.
I respect the reason of bundling an archaic compiler, the OS is in general stable (10.6 was messy, but 10.10 is fine); however, some of my C/C++ code doesn’t compile with the 4.2 version that comes with the Apple computers.
First, you need to update your OSX to the latest version available. Also, install Xcode, and have it fully updated.
Then, you need the command line tools from Xcode:
xcode-select --install
This will install: the assembler, the compiler, git, svn, make, gperf, etc.
Then, we can go to the GNU GCC website:
http://gcc.gnu.org
And download the latest gcc (5.2.0 this time)
You will also need the following dependencies:
GMP
MPFR
MPC
ISL
Go to their websites, and download them. Note: currently, isl version 0.15 doesn’t work nicely with GCC, get version 0.14 instead. For GMP we have version 6.0.0.a, MPFR version 3.1.3, MPC version 1.0.3
I recommend to have a sources file directory with the tarballs in case you need to compile GCC for several machines.
Decompress everything in a folder. We need to compile the dependencies in order, the first one is GMP.
Important: Since the C library bundled with OSX is required for some programs, we will install GCC in /usr/local, otherwise you WILL break the system (believe me, I have broken an Apple computer, don’t replace the Apple’s C library... this may also apply to Linux!).
To install GMP:
./configure --prefix=/usr/local --enable-cxx make sudo make install
ISL 0.14:
./configure --prefix=/usr/local --with-gmp-prefix=/usr/local make sudo make install
MPFR & MPC are the same procedure:
./configure --prefix=/usr/local --with-gmp=/usr/local make sudo make install
And finally, for GCC:
mkdir objdir-5.2 cd objdir-5.2 ../gcc-5.2.0/configure --prefix=/usr/local --enable-languages=c,c++,fortran --with-gmp=/usr/local --with-isl=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local make -j 4 #or 2, or no -j, depending on your machine sudo make install
And, voilà, after a couple of hours, your Apple computer will have an updated GNU GCC compiler :)
Please note, I selected C, C++, and Fortran in the configure, you can have a different requiremente. Also, I assume GCC-5.2.0, and that the folder is named gcc-5.2.0. If you did something wrong, or something doesn’t compiles, remove the affected directory, get a different library version, and start again from that point. You can also make distclean on objdir-5.2 if you prefer... also, I recommend to name the objdir version in case you are trying with different GNU GCC versions, enjoy :)
--LJ
0 notes
luisjdominguezp · 9 years
Text
Social networks for Academics
So, yesterday a friend said he was closing his ResearchGate account, I asked him why, so I made a quick snapshot of the current status social networks for academics. Let know of any one missing, I will happy add it.
LinkedIn: The social network were people endorse you abilities you don't have, or have no idea how do they know you have them. Useful to stalk at your peers.
Academia.edu: The social network that very few serious researchers are using it (that I know), but where you upload your own papers by hand to avoid confusion. It was useful to troll your peers. (i.e., googling for Research Name + Researcher Publication + Swear word, and cliking on the Academia.edu result will bring the swear word right to their page as a keyword used to find him... or at least it used to be that way)
Researchgate.net: the social network where you are given authorship of papers of people with a somewhat similar name, or are suggested to read a paper of someone whose names resembles one of your past co-authors... also you are asked to link papers to authros, and skills
Google Scholar: I have no idea how does this one works, but it is flawless, too bad my institutions says it is not JCR aproved.
Microsoft Academia: Nice try
ResearchID: You need an orchid, and JCR access, and... and my institution doesn't care, they just want the JCR journal articles, but you can brag about it if you have JCR articles.
Facebook: Where you can seriously discuss about your research topics, and also share kittens pics, and youtube videos
Twitter: Serious discussion takes place here, too bad following a multi-party conversion is a pain in the arse
Google plus: What we actually needed to discuss resarch topics, but no one is using it anymore for this.
sub Reddit on your research area: nah, this is for kittens only, but people keep asking questions like if it's Quora
Quora: We should use this one for asking questions... too bad it requires you to proof experience before answering
0 notes
luisjdominguezp · 10 years
Text
Fun with English
I take it you already know of tough and bough and cough and dough?
Some may stumble, but not you, on hiccough, thorough, slough, and through?
So now you are ready, perhaps, to learn of less familiar traps?
Beware of heard, a dreadful word, that looks like beard, but sounds like bird.
And dead, it's said like bed, not bead; for goodness' sake, don't call it deed!
Watch out for meat and great and threat. (They rhyme with suite and straight and debt.)
A moth is not a moth in mother, nor both in bother, broth in brother.
And here is not a match for there, nor dear and fear, for bear and pear.
And then there's dose and rose and lose - just look them up - and goose and choose
And cork and work and card and ward and font and front and word and sword
And do and go, then thwart and cart, come, come! I've hardly made a start.
Author Unknown
Source: https://www.reddit.com/r/AskReddit/comments/2orgja/what_word_in_the_english_language_just_doesnt/cmpz4fo
1 note · View note
luisjdominguezp · 10 years
Text
Alternative font for bold face series in beamer
It's been a while without posting, sorry.
Sometimes you have a very nice font for your tex presentation, but you don' t have the bold series file (or it doesn't exist), hence, everytime you instruct latex (xelatex in my case) with {\bf Text}... or something similar, you get the text on the regular font facem, this is, no bold.
What you can do is to use a similar font whose bold font file you actually have in your computer; for example, let's suppose you have the Google Font Kite One, which is only available in Regular, but you still need an ocassional text in bold for your presentation, you can pick up an alternate font and choose it as:
\setsansfont[BoldFont=Fontin]{Kite One}
This way, your normal text will be using Kite One, but whenever you need bold, xelatex will use Fontin for it.
Anyway, I faced this problem today, and wanted to share the solution...
--LJ
0 notes
luisjdominguezp · 10 years
Photo
Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media Tumblr media
89K notes · View notes
luisjdominguezp · 10 years
Photo
Tumblr media
672K notes · View notes
luisjdominguezp · 10 years
Text
A week with BB10
It's been a week now with my BB Z10, and I think it is a way better product than my previous phones.
The touch interface is so good, you can sneak in the incoming messages without closing your application. The virtual keyboard is super efficient, learns quickly, and the gestures are perfect. The voice control, well it is not Siri, but does a fairly good job. The bloatware... what bloatware? The default apps are substantially better than the Android ones, I don't need to buy an extra calculator, or toolbox, it even came with a simplified Evernote app. The only "bloatware" was a browser link from my carrier to their apps.
The HUB, omg, so awesome, yet addictive.
Anything annoying? Yes, I downloaded a battery app, because I don't find out OK to have to enter into the Settings just to check out the battery level.
On the other hand, the apps has no f* ads! This is so good! (Yes, even the free ones) Only Androids apps side-loaded into BB contain adds.
Apps availability? Well, you have to pay for some similar apps, but only a few USD expend yet. I have all of my apps, exempt Firefox, so I am OK. Oh yes, and the browser supports Flash sites.
I hope my carrier frees the last OS update, then, my cellphone will be complete :)
--LJ
P.S. Did I mention the Sleeping Mode? The screen looks super cool.
0 notes
luisjdominguezp · 10 years
Photo
Tumblr media
The really secure OS... <1> - Why do you have tape on your laptop? Is it broken or something? - No, of course not, it's just to block the webcam. <2> - Oh yes, that happens when you use "private" software. You can't trust Apple, they are spying you for sure. - So? Can't someone spy you on Linux, or what? <3> My webcam has never worked on Linux, the NSA would need to come in person and write down a driver for it.
0 notes
luisjdominguezp · 11 years
Video
youtube
One of my favourite songs in Dublin, OMG, thanks to "Minnie" Benger, and Phil "Punker" to identify it for me. I am so happy! :)
0 notes
luisjdominguezp · 11 years
Link
XVIII century automaton (1770)
http://www.thisiscolossal.com/2013/11/the-writer-automata/
0 notes
luisjdominguezp · 11 years
Note
¿qué tal? soy estudiante de Ingeniería en comunicaciones y electrónica, Pero me interesaría realizar una maestría en ciencias de la computación, me interesa bastante la criptografía y protocolos de comunicación (su seguridad en si). He leído que usted tiene un buen currículum en ello, y quisiera que me orientara un poco en este tema de la encriptación, lo que sea, libros, paginas, que estudiar, lo que sea se lo agradecería bastante. De ante mano muchas gracias.
Bueno, así qué bruto, qué currículazo, no, apenas voy empezando, pero gracias.
La gente de electrónica es muy apreciada en el área de criptografía, ya que se da normalmente es un área que principalmente se estudia en los departamentos de computación o matemáticas, y es raro encontrar un departamento de electrónica que le dedique una línea de investigación a la criptografía. Te recomiendo que te apuntes en el Cinvestav Zacatenco, al Departamento de Computación con el doctor Francisco: http://delta.cs.cinvestav.mx/~francisco/
El profesor Francisco es muy bueno, te recomiendo que lo contactes ya que te des una paseada en su página. Dices que no has terminado, las siguientes inscripciones para maestría son hasta el 2014, por mayo... ahí por el mes de marzo date una revisada a la página del Departamento de Computación: http://www.cs.cinvestav.mx/ para ver los requisitos, que normalmente son que ya tengas el título, o la carta de examen, liberación del servicio social, y otros (incluyendo algo bien de inglés).
El Cinvestav da becas Conacyt de manutención y colegiatura (pero el programa es de tiempo completo y es muy competitivo, prepárate).
0 notes
luisjdominguezp · 11 years
Link
Kids Can't Use Computers... And This Is Why It Should Worry You (kidz as in mid-20's) From the blog: If 20 years ago 5% of us had a computer in our homes – then you could pretty much guarantee that 95% of those computer owners were technically literate. Today let’s assume that 95% of us have a computer in our homes, then I would guess that around 5% of owners are technically literate. Illiterate as in: can use facebook, twitter, pinterest, Word and Excel, and maybe some other pages, and games . Without reference to Wikipedia, can you tell me what the difference is between The Internet, The World Wide Web, a web-browser and a search engine?
1 note · View note