¡Hola! Bienvenidos al blog. En este espacio dejo por lo general apuntes personales, en su mayoría relacionados con tecnología, desarrollo web (y ahora de apps) y uno que otra divagación.
Posts Recientes
Setting up a Room database on Android with Kotlin
Setup the required dependencies. You’ll need the room-runtime and room-compiler.
Dependencies & Gradle plugin // app/build.gradle apply plugin: 'kotlin-kapt' dependencies { def room_version = "2.2.3" implementation "androidx.room:room-runtime:$room_version" kapt "androidx.room:room-compiler:$room_version" } Creating the database // Book.kt @Entity data class Book(@PrimaryKey val id: UUID = UUID.randomUUID(), var title: String = "", var date: Date = Date(), var isComplete: Boolean = false) // database/BookDatabase.kt @Database(entities = [ Book::class ], version=1) @TypeConverters(BookTypeConverters::class) abstract class BookDatabase : RoomDatabase() { abstract fun bookDao(): BookDao } Type Converters // database/BookTypeConverters.
Leer másSpeed up badblocks check
Having ordered an external hard drive from China… let me rephrase that; having ordered a really cheap hard drive from an unknown source at the farthest side of the world, getting it handled by the not so delicate hands of the Mexican post office, and getting it delivered to my door by bicycle, of course I had to check it thoroughly before putting any data in it.
I started with the well known way of checking for bad blocks on a storage device:
Leer másfsck’d a full partition
I run Kodi on my Raspberry Pi 3 mainly to watch live streams and the occasional YouTube video. Along with the media player I also run a pair of Go programs to scrape, store and analyze web data. On New Year’s Eve the root partition on a 32GB SD card got full, this rendered the whole system unresponsive. No big deal, I said. Without ssh access nor physical console, I pulled the power plug from the Pi, took the card out and mounted it on my workstation.
Leer más“The spirit of Plato dies hard. We have been unable to escape the philosophical tradition that what we can see and measure in the world is merely the superficial and imperfect representation of an underlying reality.”
—Stephen Jay Gould, The Mismeasure of Man
Leer más