blog/mdad/index.html (view raw)
1<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta name=description content="Official Lonami's website"><meta name=viewport content="width=device-width, initial-scale=1.0, user-scalable=yes"><title> Lonami's Blog </title><link rel=stylesheet href=/style.css><body><nav class=sections><ul><li><a href=/>lonami's site</a><li><a href=/blog class=selected>blog</a><li><a href=/golb>golb</a></ul></nav><main><h1 class=title>Data Mining and Data Warehousing</h1><p id=welcome onclick=pls_stop()>Welcome to my blog!<p>Here I occasionally post new entries, mostly tech related. Perhaps it's tips for a new game I'm playing, perhaps it has something to do with FFI, or perhaps I'm fightning the borrow checker (just kidding, I'm over that. Mostly).<hr><ul><li><a href=https://lonami.dev/blog/mdad/final-nosql-evaluation/>Privado: Final NoSQL evaluation</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/a-practical-example-with-hadoop/>A practical example with Hadoop</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/introduction-to-hadoop-and-its-mapreduce/>Introduction to Hadoop and its MapReduce</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/data-warehousing-and-olap/>Data Warehousing and OLAP</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/developing-a-python-application-for-cassandra/>Developing a Python application for Cassandra</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/mining-of-massive-datasets/>Mining of Massive Datasets</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/nosql-evaluation/>Privado: NoSQL evaluation</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/visualizing-caceres-opendata/>Visualizing Cáceres’ OpenData</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/mongodb-operaciones-basicas-y-arquitectura/>MongoDB: Operaciones Básicas y Arquitectura</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/cassandra-operaciones-basicas-y-arquitectura/>Cassandra: Operaciones Básicas y Arquitectura</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/mongodb-introduction/>MongoDB: Introducción</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/cassandra-introduccion/>Cassandra: Introducción</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/introduction-to-nosql/>Introduction to NoSQL</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/big-data/>Big Data</a><span class=dim> </span><li><a href=https://lonami.dev/blog/mdad/what-is-an-algorithm/>What is an algorithm?</a><span class=dim> </span></ul><script>
2 const WELCOME_EN = 'Welcome to my blog!'
3 const WELCOME_ES = '¡Bienvenido a mi blog!'
4 const APOLOGIES = "ok sorry i'll stop"
5 const REWRITE_DELAY = 5000
6 const CHAR_DELAY = 30
7 const welcome = document.getElementById('welcome')
8
9 let deleting = true
10 let english = false
11 let stopped = false
12
13 const pls_stop = () => {
14 stopped = true
15 welcome.innerHTML = APOLOGIES
16 }
17
18 const begin_rewrite = () => {
19 if (stopped) {
20 // now our visitor is angry :(
21 } else if (deleting) {
22 if (welcome.innerHTML == '…') {
23 deleting = false
24 } else {
25 welcome.innerHTML = welcome.innerHTML.slice(0, -1) || '…'
26 }
27 setTimeout(begin_rewrite, CHAR_DELAY)
28 } else {
29 let text = english ? WELCOME_EN : WELCOME_ES
30 welcome.innerHTML = text.slice(0, welcome.innerHTML.length + 1)
31 deleting = welcome.innerHTML.length == text.length
32 english = deleting - english
33 setTimeout(begin_rewrite, deleting ? REWRITE_DELAY : CHAR_DELAY)
34 }
35 }
36
37 setTimeout(begin_rewrite, REWRITE_DELAY)
38</script></main>