Friday, October 29, 2021

Houdini 18 - Changing temp directory

 

Setting temp directory

$ locate houdini.env

/home/cloud/houdini18.0/houdini.env

#
# Houdini Environment Settings
#
# The contents of this file are read into the environment
# at startup.  They will override any existing entries in
# the environment.
#
# The syntax is one entry per line as follows:
#    VAR = VALUE
#
# Values may be quoted
#    VAR = "VALUE"
#
# Values may be empty
#    VAR =  
#

# Example:
#
# HOUDINI_NO_SPLASH = 1


HOUDINI_TEMP_DIR = /home/cloud/.houdinitmp

 

 

Wednesday, October 27, 2021

DualSPHysics Simulation pipeline

 

First Step: Create geometry

[1] FreeCAD https://www.freecadweb.org/downloads.php

[2] Plugin DesignSPHysics https://github.com/DualSPHysics/DesignSPHysics

Second Step: Compile/Install DualSPHysics

[1] How to https://melhorum.blogspot.com/2019/07/dualsphysics.html

Third Step: Run smulation CPU or GPU

[1] ...

Fourth Step: Polygonize/Render

[1] ...

 

 

Tuesday, October 26, 2021

Video tools online

Rotate/Crop/Resize

[1] https://ezgif.com/rotate-video

[2] Fast https://www.rotatevideo.org/ 


Thursday, October 21, 2021

Linux check input ports

 $ sudo cat /proc/ioports

0000-0cf7 : PCI Bus 0000:00
 0000-001f : dma1
 0020-0021 : pic1
 0040-0043 : timer0
 0050-0053 : timer1
 0060-0060 : keyboard
 0061-0061 : PNP0800:00
 0064-0064 : keyboard
 0070-0071 : rtc0
 0080-008f : dma page reg
 00a0-00a1 : pic2
 00c0-00df : dma2
 00f0-00ff : PNP0C04:00
   00f0-00ff : fpu
 0290-0297 : pnp 00:03
 0378-037a : parport0
 037b-037f : parport0
 03c0-03df : vesafb
 03f8-03ff : serial
 0400-041f : 0000:00:1f.3
 04d0-04d1 : pnp 00:04
 0500-053f : 0000:00:1f.0
 0778-077a : parport0
 0800-087f : 0000:00:1f.0
   0800-087f : pnp 00:04
     0800-0803 : ACPI PM1a_EVT_BLK
     0804-0805 : ACPI PM1a_CNT_BLK
     0808-080b : ACPI PM_TMR
     0820-082f : ACPI GPE0_BLK
     0830-0833 : iTCO_wdt.0.auto
     0850-0850 : ACPI PM2_CNT_BLK
     0860-087f : iTCO_wdt.0.auto
0cf8-0cff : PCI conf1
0d00-ffff : PCI Bus 0000:00
 1000-1fff : PCI Bus 0000:05
 2000-2fff : PCI Bus 0000:04

$ cat /proc/bus/input/devices

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
U: Uniq=
H: Handlers=kbd event0  
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
U: Uniq=
H: Handlers=kbd event1  
B: PROP=0
B: EV=3
B: KEY=10000000000000 0

I: Bus=0003 Vendor=046d Product=c016 Version=0110
N: Name="Logitech Optical USB Mouse"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1:1.0/0003:046D:C016.0001/i
nput/input5
U: Uniq=
H: Handlers=mouse0 event2  
B: PROP=0
B: EV=17
B: KEY=70000 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0003 Vendor=045e Product=0750 Version=0111
N: Name="Microsoft Wired Keyboard 600"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.0/0003:045E:0750.0002/i
nput/input6
U: Uniq=
H: Handlers=sysrq kbd event3 leds  
B: PROP=0
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=045e Product=0750 Version=0111
N: Name="Microsoft Wired Keyboard 600"
P: Phys=usb-0000:00:1d.0-2/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb6/6-2/6-2:1.1/0003:045E:0750.0003/i
nput/input7
U: Uniq=
H: Handlers=sysrq kbd event4  
B: PROP=0
B: EV=10001f
B: KEY=3f0003007f 0 0 4c3ffff17aff32d bf54445600000000 1 130f938b17c007 ffff7bfa
d971dfff febeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=10100000000
B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="HDA Intel Front Mic"
P: Phys=ALSA
S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input8
U: Uniq=
H: Handlers=event5  
B: PROP=0
B: EV=21
B: SW=10


$sudo cat /dev/input/event3 #test if it's working



Saturday, October 16, 2021

Linux Touchpad issues

 

xinput list

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Dell Dell Universal Receiver              id=11   [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad          id=16   [slave  pointer  (2)]
⎜   ↳ AlpsPS/2 ALPS DualPoint Stick             id=15   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
   ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
   ↳ Power Button                              id=6    [slave  keyboard (3)]
   ↳ Video Bus                                 id=7    [slave  keyboard (3)]
   ↳ Power Button                              id=8    [slave  keyboard (3)]
   ↳ Sleep Button                              id=9    [slave  keyboard (3)]
   ↳ Dell Dell Universal Receiver              id=10   [slave  keyboard (3)]
   ↳ Laptop_Integrated_Webcam_HD: In           id=12   [slave  keyboard (3)]
   ↳ Dell WMI hotkeys                          id=13   [slave  keyboard (3)]
   ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
   ↳ Dell Dell Universal Receiver              id=17   [slave  keyboard (3)]

xinput -list-props 16

 
Device 'AlpsPS/2 ALPS DualPoint TouchPad':
       Device Enabled (142):   1
       Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
       Device Accel Profile (275):     0
       Device Accel Constant Deceleration (276):       1.000000
       Device Accel Adaptive Deceleration (277):       1.000000
       Device Accel Velocity Scaling (278):    5.000000
       Trackpad Disable Input (305):   0
       Trackpad Sensitivity (306):     0.500000
       Trackpad Touch Pressure (307):  5, 5
       Trackpad Button Settings (308): 1, 1
       Trackpad Button Emulation Settings (309):       0, 1, 100
       Trackpad Button Emulation Values (310): 3, 2, 0
       Trackpad Tap Settings (311):    50, 120, 400
       Trackpad Tap Button Emulation (312):    1, 3, 2, 0
       Trackpad Thumb Detection (313): 0, 0
       Trackpad Thumb Size (314):      25, 70
       Trackpad Palm Detection (315):  0, 0
       Trackpad Palm Size (316):       40
       Trackpad Gesture Settings (317):        10, 100
       Trackpad Scroll Distance (318): 150
       Trackpad Scroll Buttons (319):  4, 5, 6, 7
       Trackpad Swipe Distance (320):  700
       Trackpad Swipe Buttons (321):   8, 9, 10, 11
       Trackpad Swipe4 Distance (322): 700
       Trackpad Swipe4 Buttons (323):  0, 0, 0, 0
       Trackpad Scale Distance (324):  150
       Trackpad Scale Buttons (325):   14, 15
       Trackpad Rotate Distance (326): 150
       Trackpad Drag Settings (327):   1, 350, 40, 200
       Trackpad Axis Inversion (328):  0, 0


xinput -set-prop 16 306 0.5

 

Tuesday, October 05, 2021

Processing mp3 by Python3 in Linux

 

 

$ sudo apt install llvm-8
 

$ locate llvm-config

$ LLVM_CONFIG=/usr/bin/llvm-config-8 pip3 install librosa --user
 

 

packages: llvmlite, numba, soundfile, resampy, audioread, librosa


 

Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com