Create computing instance (e.g. VM.Standard2.1)
Install wine
apt install wine
Copy accServer.exe
to ~/accServer/accServer.exe
Download accweb release
https://github.com/assetto-corsa-web/accweb/releases/download/1.11.2/accweb_1.11.2.zip
public class EthereumTransactionExtractor implements AutoCloseable { | |
private final WebSocketService webSocketService; | |
private final Web3j web3j; | |
private final ObjectMapper mapper = new ObjectMapper(); | |
private final JsonGenerator jsonGenerator; | |
public EthereumTransactionExtractor(String url, String fileName) throws IOException { | |
webSocketService = new WebSocketService(url, false); |
Create computing instance (e.g. VM.Standard2.1)
Install wine
apt install wine
Copy accServer.exe
to ~/accServer/accServer.exe
Download accweb release
https://github.com/assetto-corsa-web/accweb/releases/download/1.11.2/accweb_1.11.2.zip
#!/usr/bin/env python3 | |
import os, glob | |
def write_text(input, output, text): | |
cmd = f"ffmpeg -i {input} -vf drawtext=\"fontfile=/path/to/font.ttf: text='{text}': fontcolor=white: fontsize=42: box=1: [email protected]: boxborderw=5: x=(w-text_w)/2: y=100\" -codec:a copy {output}" | |
print(cmd) | |
os.system(cmd) | |
def merge_videos(folder): | |
with open('./input.txt', 'a') as input_file: |
Since I sometimes get asked about what I would recommend as reads to gain a deeper understanding about software engineering, I was thinking to just compile a list of my favourite books in this area, which I consider a very valuable read 🙂
By Gamma et. al.
I think this is one of the classics and a very recommended read (but with a pinch of salt), basically, one of the books starting the patterns movement in OOP. While one has to be careful to not blindly force those patterns into your own software design, it is critical knowledge and part of the cultural backbone of the software industry. Knowing those patterns and being able to quickly identify them helps tremendously in understanding unfamiliar code bases and when having architecture discussions with peers.
[[source]] | |
name = "pypi" | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
[dev-packages] | |
[packages] | |
torch = "===1.7.1" | |
install = "*" |
# Taken from https://towardsdatascience.com/pandas-dataframe-group-by-consecutive-certain-values-a6ed8e5d8cc | |
df_indexed = df.reset_index(drop=True) | |
for k, v in df_indexed[df_indexed['behavior'] == 'not_defined'].groupby((df_indexed['behavior'] != 'not_defined').cumsum()): | |
print(f'[group {k}]') | |
display(v) |
# https://github.com/microsoft/Git-Credential-Manager-Core | |
git config --global credential.helper "/mnt/c/Program\\ Files/Git/mingw64/libexec/git-core/git-credential-manager-core.exe" |
This is simply a list of things I chose to install on my Windows development machines.
I omit actual links, since googling for them generally gives the best up-to-date results.
Maybe I should update this with chocolatey one day, or wait for the the new win-get
tool in Windows 11.
geo_hash | count | |
---|---|---|
9q94r | 1 | |
dr5rs14 | 2 |
package org.testcontainers; | |
import com.github.dockerjava.api.command.InspectContainerResponse; | |
import lombok.NonNull; | |
import lombok.SneakyThrows; | |
import org.apache.commons.io.FileUtils; | |
import org.junit.Test; | |
import org.testcontainers.containers.GenericContainer; | |
import org.testcontainers.utility.MountableFile; |