El Fubu

Welcome to a low in KB page (Except for Video Thumbnails)

Testing dithering and color reduction - 2021-06-18 17:36:52

Hello!

I’m trying to convert images so that they are lighter. I got the idea from Low-Tech Magazine and got some help and information from a good guy.

Using ImageMagick:

convert input.jpg -set colorspace Gray -ordered-dither o8x8 -colors 2 output.gif

From this image:

Original

We get this one:

Grayscale + Dither + Color reduction

From 72KB to 16KB. Looks a lot like the gameboy camera actually. There are other dithering algorithms, but for this photo the ordered-dither gave the best picture.

Removing Javascript - 2021-06-15 19:39:47

Hello!

Probably nobody cares, but I have removed the share section (twitter + facbeook) because it required to load 300kb for the icons plus random javascripts.

We want this to be light.

On the other hand I have removed the “last posts” from the index. This is because it needed to recompile ALL the posts everytime because this list is always updated. This way… only the last post needs to be compiled!

Pyspark and UDF types problem - 2020-11-02 12:20:05

Hello!

Here is a fast note that might not be obvious. Beware with UDF types in PySpark.

from pyspark.sql.functions import udf
from pyspark.sql.types import IntegerType, FloatType


def very_fun(idk):
    return(22)
    
def floating_fun(idk):
    return(22.0)

df = sqlContext.createDataFrame(
    [
        (1, 'foo'), 
        (2, 'bar'),
    ],
    ['id', 'txt'] 
)
    
funfun_int = udf(very_fun, IntegerType())
funfun_float = udf(very_fun, FloatType())
    
floatingfun_int = udf(floating_fun, IntegerType())
floatingfun_float = udf(floating_fun, FloatType())

df = df.withColumn('funfun_int', funfun_int(df['id']))
df = df.withColumn('funfun_float', funfun_float(df['id']))

df = df.withColumn('floatingfun_int', floatingfun_int(df['id']))
df = df.withColumn('floatingfun_float', floatingfun_float(df['id']))

df.show()

And the result is not very amusing:

Susumu Hirasawa - Darkness ⲡ duai + Solid Air - 2020-09-04 11:59:44

Susumu Hirasawa appreciation post. Solid Air is part of P-Model works, but Susumu is able to mix it with Darkness ⲡ duai perfectly.

Let’s rumble:

YouTube
        Link

Click to watch in YouTube (New tab)

P-model - Spitirus - 2020-05-22 08:52:37

Oh Spiritus! Oh SPIiiiiiiiIIIIIIIIIiIiiiiiiiiiiiritussssssssssss!

YouTube
        Link

Click to watch in YouTube (New tab)

Osamu Sato - Transmigration - 2020-03-06 11:58:37

Lately I have been only posting music. We’ll, that’s what I like to do at the moment, so… ¯_(ツ)_/¯

This time I bring you Osamu Sato’s Transmigration. It’s a weird album mixing pseudo-futuristic sound with strange folk chants. I haven’t played through all the Osamu Sato’s Tong-Nou, a superb weird experience into his mind made into a game, however the first song is clearly the opening theme.

I hope you enjoy. Also give a chance to that game while thinking on Buddhist concepts like samsara (mind those 30 days you get offered to get your soul back).