Skip to content

Category: Uncategorized

Simple japanese lantern in OpenSCAD

Blender rendering:

Blender rendering of a simple japanese lantern in OpenSCAD

OpenSCAD definitions:

alpha=1;

module chamber() {
    translate([0,0,2])
    scale(v=0.8)
        difference() {
            cube([3,3,3]);

            translate([0,1,1])
                cube([3,1,1]);

            translate([1,0,1])
                cube([1,3,1]);
        }
}

module pedestal() {
    cube([1,1,1]);
    translate([0,2,0])
        cube();
    translate([2,0,0])
        cube();
    translate([2,2,0])
        cube();
    translate([0,0,1])
        cube([3,3,1]);
}

module hat() {
    translate([1.25,1.25,4.25])
        rotate(45)
            cylinder(1,3,1,$fn=4);
}

color("lightblue", alpha)
    translate([-0.25,-0.25,0])
        pedestal();

color("lightgreen", alpha)
    chamber();

color("lightcoral", alpha)
    hat();

Live demo

bash and wget to download a lot of files

Problem:

  • Download 500 large files.
  • Files follow the pattern data_1.zip, data_2.zip, … data_500.zip.
  • All the files are in “https://examples.com/downloads”.
  • Files have from kilobytes to gigabytes in size.

Solution:

  • A naive Bash script to download the files using wget.
  • It is set to use wget with -c (continue). This will skip files already downloaded and continue files that have been interrupted. This only works with FTP/HTTP servers that support the “Range” header.
#!/bin/bash
set -euxo pipefail

PREFIX="https://examples.com/downloads/data_"

for i in $(seq 1 500); do
  wget -c "$PREFIX"_"$i".zip
done

iPad apps curation

Some of the apps I used the most over the years. Every app here is a single purchase model and not subscriptions. Some app offer additional paid content inside the App Store or external paid or free assets from third parties.

🎹 Music

KORG Gadget 3. Music production, DAW, instruments. In a single app you can play, create sequences, automations, loops, export and publish a complete song from scratch. It’s the DAW I use the most even though it diverges from traditional DAWs. It’s technically possible to import or record voice and external instruments but it’s not the ideal tool for that.
💰 Price: $19.99* USD

KORG Module. Stand alone instruments ideally played with a MIDI controller (but can be played on screen). As a stand alone app it can be used as an set of instruments to just jam or play professionally. It’s instruments can be used inside of KORG Gadget 3 seamlessly or in other DAWs as AUv3 plugins.
💰 Price: $19.99* USD

* prices of KORG apps are technically double of that but I only buy KORG apps at their 50% sale that happens a few times during the year.

🎨 Graphics

Procreate. Paint, sketch, illustrate. Also does simple animations. Pretty much the de facto standard on digital painting on iPad. Great support for Apple Pencil. A no-brainer.
💰 Price: $12.99 USD.

Procreate Dreams. An stand alone app for 2D animations very familiar to the Procreate interface. You can use resources from Procreate such layered projects and custmo brushes. Very suitable to 2D frame-by-frame animation but it can be pushed further.
💰 Price: $19.99 USD.

Luma Fusion. Video editing. It works well and does all the basic features I need.
💰 Price: $29.99.

Feather 3D. Drawing and modeling in 3D. What Procreate does for 2D this does for 3D.
💰 Price: $14.99 USD.