Dienst nach Fortschritt
  • Home
  • Houdini
  • Maya
Johann Woelper

Johann Woelper

51 posts •

Rust link/build time speedup

in ~/.cargo/config you can switch to lld as a linker (needs to be installed of course):[build] rustflags = ["-C", "link-arg=-fuse-ld=lld"]Linking often took the most of my time when just

  • Johann Woelper
    Johann Woelper
1 min read

Draw a pixel with rust and image

Since the docs are a bit sparse, this is a very short post on how to draw a pixel:use image::{ImageBuffer, Rgb}; fn main() { let green = [0, 255, 0]; let red = [255,

  • Johann Woelper
    Johann Woelper
1 min read
rust

Providing test data as a crate

How to include your test data as a crate in your rust project

  • Johann Woelper
    Johann Woelper
1 min read

A proper terminal on Windows

For quite some time, cmder and it's ecosystem seemed like the default.Now there is a great new option: Alacritty. https://github.com/jwilm/alacrittyBelow are some settings to make it more unix-like

  • Johann Woelper
    Johann Woelper
1 min read

Rust, travis CI and multiple targets

One thing you might want to do at some stage is set up continuous integration.I was looking for an option that gave me rust support and windows, mac and linux builds. Travis

  • Johann Woelper
    Johann Woelper
1 min read

building a python module with rust

Setup:cargo init --lib (from within a folder you created)If you want to support OSX:.cargo/config[target.x86_64-apple-darwin] rustflags = [ "-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup", ]Dependencies:Cargo.toml:[package]

  • Johann Woelper
    Johann Woelper
1 min read

AC1200 wireless drivers

This is geared towards gentoo but should work in every system if you have your kernel sources available.If you come across the notorious hard-to-install AC1200 USB wifi devices and want to get

  • Johann Woelper
    Johann Woelper
1 min read

Image compression

Some recipes for reducing disk size of imagesPNG, lossy: pngquant -f -v --ext .png --quality 70-100 --speed 2 --skip-if-larger FILE.pngspeed: default 3, 1-11, more is less quality and faster processingquality is the

  • Johann Woelper
    Johann Woelper
1 min read

Git

Better overview: Who touched what files and when? git log --name-status What was my last commit again? I don't see it with git status anymore... git show --name-status You can put these and

  • Johann Woelper
    Johann Woelper
1 min read

Rust cookbook

Some findings and notes about using rust on some real-world stuff Handling JSON A small example how to dump your struct to a file and read it again. Cargo.toml: [dependencies] serde = { version

  • Johann Woelper
    Johann Woelper
4 min read

Powershell

Edit the configuration If ((Test-Path $Profile) -eq "True") {Notepad $Profile} (create one) New-Item -path $profile -type file -force oh-my-posh (https://github.com/JanDeDobbeleer/oh-my-posh) is useful, together with posh-git. in a

  • Johann Woelper
    Johann Woelper
1 min read

Procedural city doodles

This is a sketchbook for some work done for this demo: https://www.kdab.com/lots-lights-generating-cities/ Any 2d shape produces a house according to ajustable rules. This can form the basis for further

  • Johann Woelper
    Johann Woelper
1 min read

web.py and wscgi

After tinkering, you might want to make your app a bit more production ready and/or make it start when the system boots. Although it is very handy to have it run on

  • Johann Woelper
    Johann Woelper
1 min read

Blender python cookbook

Consider installing this addon: http://code-autocomplete-manual.readthedocs.io/en/latest/setup.html#installation Iterate scene for obj in bpy.context.scene.objects: print(obj.name) Iterate selection, check type for obj in bpy.

  • Johann Woelper
    Johann Woelper
1 min read

Godot / GDScript scratchpad

Physicalized objects MeshInstance -> StaticBody -> CollisionShape Select Mesh, select Mesh button in upper left corner ([\]) -> Create Trimesh static body Import mesh and create collision: var terrains = [ preload("

  • Johann Woelper
    Johann Woelper
1 min read

Extract zip, truncate enclosed directory

Sometimes you want to unpack the contents of an archive. Sometimes the files in that particular archive are contained in a subfolder, so they won't spam the folder you're extracting it to. This

  • Johann Woelper
    Johann Woelper
1 min read

Quick logging in python

Nothing of great value, but the easiest way to log both to a file and to the console seems to be something like this: import logging #more verbose formatting for the logfile logging.

  • Johann Woelper
    Johann Woelper
1 min read

Mantra Principles Shader and geometry attributes

According to http://www.sidefx.com/docs/houdini/model/attributes you should just be able to set Ce on your geo and have your shader pick that up, but no cigar. Inspection of

  • Johann Woelper
    Johann Woelper
1 min read

Simple Ghost syntax highlighting

Highlightjs (https://highlightjs.org/) provides simple, transparent (no ```javascript or such needed) and automatic language detection. If you don't even want to change your theme, do the following: In settings > code injection

  • Johann Woelper
    Johann Woelper
1 min read

Flexible imports in python

Sometimes (In my case for a plugin-like structure) you start with the following: . ├── logic.py ├── plugins ├── __init__.py ├── plug_a.py ├── plug_b.py __init__.py __all__ = ['plug_a', 'plug_b'] Ready, right?

  • Johann Woelper
    Johann Woelper
1 min read

upload multiple files in web.py

I like web.py, mainly because it's simple and quite pythonic. I wanted a fancy multiple file upload page - however docs on uploading multiple files were a bit flaky. Here is what

  • Johann Woelper
    Johann Woelper
1 min read

Procedural walking in houdini

I wanted to do something like this really badly in Maya once. Tried in Houdini for fun, and turns out something like this is easy to do and very entertaining! The first interation

  • Johann Woelper
    Johann Woelper
3 min read

python readline path completion

So I wanted readline to 'just work' when entering paths in conjunction with raw_input(). Turns out that this is rather strange, undocumented and full of tripwires. This is how i did it:

  • Johann Woelper
    Johann Woelper
1 min read

Imagemagic OSX static relocatable build

After long frustration, let's do this. We want: A relocatable binary (just the binary, nothing else) Static plugins (delegates) such as png Static freetype support so we can annotate images Homebrew Homebrew seems

  • Johann Woelper
    Johann Woelper
2 min read

ICE train wlan status

This is just to let off steam about Deutsche Bahn's utter failure to provide (paid, mind you) wifi access aboard their trains. Ping is used for measurement, the latest graphs are made with

  • Johann Woelper
    Johann Woelper
2 min read
Dienst nach Fortschritt © 2023
Latest Posts Ghost