Author Archives: dmitriano

Building RenderDoc for Android on WSL

I cloned the repository, created build directory, set environment variables and run CMake:

git clone https://github.com/baldurk/renderdoc.git
cd renderdoc/
mkdir build-android
cd build-android
export JAVA_HOME=~/dev/repos/graphicsprofiler/tools/buildtools/jdk
export ANDROID_SDK=~/dev/repos/graphicsprofiler/tools/buildtools/android
export ANDROID_NDK=~/dev/repos/graphicsprofiler/tools/buildtools/android/ndk-bundle/android-ndk-r20b
export PATH=$PATH:$JAVA_HOME/bin
cmake -DBUILD_ANDROID=On -DANDROID_ABI=armeabi-v7a ..
(more…)

Generating a certificate for Huawei App Gallery

List existing certificates:

set PATH=%PATH%;C:\Program Files\Android\Android Studio\jbr\bin
keytool.exe -list -v -keystore linesgame.keystore

Generate the new one:

keytool.exe -genkey -v -keystore linesgame.keystore -alias linesgame-huawei -keyalg RSA -keysize 2048 -validity 100000
(more…)

Running GUI apps on WSL

Updating existing WSL installation

I updated WSL according to this MS guide:

wsl --update
wsl --shutdown
wsl --version
WSL version: 1.2.0.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.2604
(more…)

Building PowerVR Vulkan Samples

I did

git clone https://github.com/powervr-graphics/Native_SDK.git
cd Native_SDK
git submodule update --init --recursive

opened build-android folder in Android Studio and started the build.

How I installed VNC on Ubuntu 22.04

I followed this guide, run the following command from WSL:

ssh -L 59000:localhost:5901 -C -N -l dmitriano $VNC_IP

and was able to connect with UltraVNC client:

Installed FireFox browser as described here.

(more…)

Connecting to Ubuntu 22.04 with Remote Desktop

I simply installed:

sudo apt install ubuntu-desktop-minimal -y
sudo apt install xrdp -y
systemctl status xrdp

and was able to connect with Remote Desktop from Windows as root user:

(more…)

A right way to query password from a console in JavaScript

import * as readline from 'node:readline/promises';
import { stdin as input, stdout as output } from 'node:process';
import { Writable } from 'node:stream';

var mutableStdout = new Writable({
  write: function(chunk, encoding, callback) {
    if (!this.muted)
      output.write(chunk, encoding);
    callback();
  }
});

mutableStdout.muted = false;

var rl = readline.createInterface({
  input: input,
  output: mutableStdout,
  terminal: true
});
(more…)

Building QT6.4 for Windows with Vulkan support

Installed Vulkan SDK and built QT6.4.2 for windows with the following script:

set PATH=C:\WINDOWS\system32;C:\WINDOWS

"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64

set MY_DRIVE=D:

%MY_DRIVE%
mkdir \dev\build\qt
cd \dev\build\qt
       
set "CMAKE_ROOT=%MY_DRIVE%\dev\tools\cmake-3.24.2-windows-x86_64\bin"
set "NINJA_ROOT=%MY_DRIVE%\dev\tools\ninja-win"
set "PERL_ROOT=%MY_DRIVE%\dev\tools\Strawberry\perl\bin"
set "PYTHON_ROOT=%MY_DRIVE%\dev\tools\Python35"
set VULKAN_SDK=%MY_DRIVE%/dev/tools/VulkanSDK/1.3.239.0
(more…)

Black screen on starting QT Android app

I noticed this about five years ago and hoped that it had passed away, but a few days ago a user reported the following:

(more…)

Trading on Binance in Russian style

It is important to know that on Binance the buyer is always responsible for fees, seller has to receive full amount.

I created a P2P order to sell 13.05 USDT and buy 250 TRY (so I was the seller), but the buyer sent me only 237.5 TRY explaining that the bank takes 5% fee. I did not believe it and we discussed it in Russian style.

After that I initiated an appeal and Appeals team has informed the buyer to pay the remaining amount, and was given him 3 hours time frame.

(more…)