2022년 2월 13일 일요일

replace patterns for moonscript

  • class function to normal function

 ^(.*): (\(.*\)) =>

$1 = $2 ->

 

  • add require for

(.*)@battleGraphics\\(.*)(\(.*)

$1import $2 from require 'moon.battle.battleGraphics'\n$1$2$3

2022년 2월 10일 목요일

arch linux sudden audio disconnection after suspend/standby

[195439.660049] snd_hda_intel 0000:00:1f.3: refused to change power state from D3hot to D0
[195439.780561] snd_hda_intel 0000:00:1f.3: CORB reset timeout#2, CORBRP = 65535
[195440.057019] snd_hda_codec_hdmi hdaudioC0D2: Unable to sync register 0x2f0d00. -5
[195440.310476] snd_hda_codec_realtek hdaudioC0D0: Unable to sync register 0x2b8000. -5

 

sudo vi /boot/loader/entries/archlabs.conf 

    options snd_hda_intel.power_save=0

check

cat /sys/module/snd_hda_intel/parameters/power_save


https://forum.manjaro.org/t/after-update-2021-10-08-audio-devices-click-pop-when-playback-started/85985

https://wiki.archlinux.org/title/kernel_parameters#systemd-boot

amd ryzen -> no workaround?


2022년 2월 1일 화요일

game engine comparison 2022

 

  1. haxeflixel
    1. (+) code only
    2. (+) strong typing 
    3. (+) built-in debugger
    4. (0) async programming: FlxSignal/add/dispatch
    5. (0) so so ui components 
      1. haxeui: crash on neko target
      2. flixel-ui: ok for xml, meh for code only(no proper scaling)
      3. FlxUISpriteButton + loadGraphicSlice9
    6. (-) unpopular
    7. (-) demo could not load hexagonal tmx  
    8. (-) buggy? unable to resize text on FlxButton
    9. (-) incomplete documents 
    10. (-) no anchor for sprite support
  2. heaps.io
    1. (-) no default UI library?
  3. godot
    1. (+) popular
    2. (+) rich ui components 
    3. (+) easy to include assets
    4. (+) plugin load hexagonal tmx
    5. (0) async programming : signal/connect/emit_signal
    6. (-) weak typing
    7. (-) editor needed 
  4.  ebiten
    1. (+) strong typing
    2. (+) go-tiled load hexagonal tmx(?)
    3. (+) boot faster than ceramic(2.5~3x?)
    4. (0) async programming : go routine
    5. (-) less ui components (text, button)
    6. (-) need to encode assets(?)
  5. love2d + moonscript
    1. (+) fast iteration
    2. (-) slow
    3. (-) script only
    4. (-) no default UI library
  6. cocos2d-x
    1. (-) hard to build
    2. (-) long test cycle
    3. (-) big commit size
  7. sfml
    1. (-) mobile build?
  8. ceramic
    1. (+) code only
    2. (+) strong typing 
    3. (+) anchor for sprite support
    4. (?) async programming: (Timer/delay/interval)
    5. (=) lighter than haxeflixel but less component 
      1. less decoration for text
      2. async rendertexture
    6. (-) unpopular
    7. (-) could not load hexagonal tmx  
    8. (-) no built-in functional UI system(though there're UI components)
    9. (-) incomplete documents
    10. (-) slower to boot than ebiten

  9.  

2022년 1월 26일 수요일

install jre8 on wine (java)

 wine jre-8u241-windows-x64.exe /s


https://forum.winehq.org/viewtopic.php?t=35231

2022년 1월 22일 토요일

xhci_hcd dead - usb dead

journalctl -b -1

kernel: xhci_hcd 0000:00:14.0: xHCI host not responding to stop endpoint command.

kernel: xhci_hcd 0000:00:14.0: USBSTS:

kernel: xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead

kernel: xhci_hcd 0000:00:14.0: HC died; cleaning up


* manual restart USB?

https://techoverflow.net/2021/09/16/how-i-fixed-xhci-host-controller-not-responding-assume-dead/


https://unix.stackexchange.com/questions/669015/xhci-restart-needed

2022년 1월 19일 수요일

fcitx5

https://wiki.archlinux.org/title/Fcitx5

install fcitx5 fcitx5-hangul fcitx5-configtool fcitx5-gtk

edit /etc/environment

2021년 12월 12일 일요일

void vscode/firefox open dialog not working

 install nautilus