WSL2 OpenGL apps with sound

Install VcXsrv Start VcXsrv:Multiple windows,Start no client,Native OpenGL - unchecked,Disable access control - checked. Download Pulse audio server from https://www.freedesktop.org/wiki/Software/PulseAudio/Ports/Windows/Support/Edit 'etc\pulse\default.pa'Addload-module module-native-protocol-tcp auth-ip-acl=YourLinuxOrWSLIp auth-anonymous=1load-module module-waveout sink_name=output source_name=input record=0 Edit 'etc\pulse\daemon.conf'exit-idle-time = -1 Run 'bin\pulseaudio.exe' In WSL Ubuntu: Add to /.bashrcexport DISPLAY=YourMainIp:0export LIBGL_ALWAYS_INDIRECT=0export PULSE_SERVER=YourMainIp sudo apt-get install x11-appsxeyessudo apt-get install mesa-utilsglxgearsglxinfo | grep rendererglxinfo | grep OpenGLglxinfo | grep '^direct rendering:'sudo apt install libpulse0pactl listsudo apt-get install -y frozen-bubblefrozen-bubble

0 Comments

Ubuntu install Clojure

sudo apt install default-jre sudo apt install openjdk-11-jre-headless sudo apt install openjdk-8-jre-headless sudo apt install leiningen lein repl //Install IntelliJ IDEA snap install intellij-idea-community --classic --edge intellij-idea-communituy

0 Comments

PowerBuilder, different DD list values for each row

Source http://www.pbdr.com/pbtips/dw/fltrdddw.htm Step 1 - declare instance variables boolean ib_dropdowndropped = False boolean ib_dropdownredrawn = True Step 2 - extend the pbm_dropdown event ib_dropdowndropped = True ib_dropdownredrawn = False of_Filter(True) ib_dropdownredrawn = True Step 3 - extend the pbm_ncpaint event If (ib_dropdowndropped And ib_dropdownredrawn) Then ib_dropdowndropped = False ib_dropdownredrawn = False of_Filter(False) ib_dropdownredrawn = True End If Step 4 - write the of_Filter (boolean ab_switch) subroutine datawindowchild ldwc long ll_getitemnumber string ls_setfilter = "" If (ab_switch) Then ll_getitemnumber = GetItemNumber(GetRow(), "order_status_id") If (ll_getitemnumber = 1) Then // cancelled -> cancelled ls_setfilter = "(order_status_id = 1)" ElseIf (ll_getitemnumber = 2) Then // confirmed -> confirmed ls_setfilter = "(order_status_id = 2)" ElseIf (ll_getitemnumber = 3) Then // new -> cancelled, new, pending ls_setfilter = "(order_status_id = 1) or (order_status_id = 3) or (order_status_id = 4)" ElseIf (ll_getitemnumber = 4) Then // pending -> cancelled, confirmed, pending ls_setfilter = "(order_status_id = 1) or (order_status_id = 2) or (order_status_id = 4)" End If End If GetChild("order_status_id", ldwc) ldwc.SetFilter(ls_setfilter) ldwc.Filter()

0 Comments

Duty cycle vs frequency

Good explanation is here. See the image: Frequency = 1 / Tcycle and Hertz is the unit of frequency. It gives the number of cycles in one second. Duty cycle = Thigh / Tcycle. It gives fraction of one cycle for which the signal is high.

0 Comments

Some reads for new project

Combining a Z80 and an ATmega644P to boot CP/M http://benryves.com/journal/3662496 Teensy Z80 – Part 1 – Intro, Memory, Serial I/O and Display http://labs.domipheus.com/blog/teensy-z80-part-1-intro-memory-serial-io-and-display/ http://cpuville.com/index.htm http://cpuville.com/cpm_on_new_computer.html http://cpuville.com/cpu_design.pdf  

0 Comments

MMA7455 and LGA package

Some time ago I got MMA7455L Three Axis Low-g Digital Output Accelerometer to play with, whohoo! But its an LGA package:Worries no more, a little bit soldering yesterday and now I can proceed testing it:I have not tested it, though, so stay tuned ;)

2 Comments

End of content

No more pages to load