El Fubu

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

How to config your Vortex Tracker for the MSX computers family - 2021-08-22 19:56:31

Hello my friends!

This is a reminder for me and for the future generations to come. I’m not going to show you anything very magical or new, but this happen to me and I didn’t have clue about it. So if you didn’t know, now you will!

Are you tired of compsing something in Vortex Tracker and hearing something odd when playing it in the machine? Your tracker might be wrongly configured!

Overloaded and unsatisfied when searching in Google - 2021-07-14 04:58:05

Welcome to the longest post to the date in this blog!

Today we have something very random: Thoughts about searching in Google. At 5AM with Massive Attack! (Mezzanine is a great Album)

Have you ever been in a position where you want to find a piece of daily life information like “How to be more spontaneous/escape routine” or “How to improve my sleep”? And boom! You get like a bazillion results. Compelling, right? A lot of stuff to read, much information. That’s great, that’s the power of the Internet.

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)