Skip to content

Instantly share code, notes, and snippets.

View udnp's full-sized avatar

udnp

View GitHub Profile
@udnp
udnp / upgrade-ubuntu_18.04-to-20.04-on-hyper_v.md
Last active March 10, 2021 10:10
Hyper-V の「クイック作成」で用意した Ubuntu 18.04 LTS を 20.04 に upgrade する/Upgrade Ubuntu to 20.04 from 18.04 LTS by [Hyper-V Quick Create]

Hyper-V の「クイック作成」で用意した Ubuntu 18.04 LTS を 20.04 に upgrade する

動機

そのまま upgrade すると vmconnect と xrdp の組合せで拡張接続できなくなるので,それを解消する.

環境

ホスト

Windows 10 Pro 20H2 の Hyper-V

ゲスト

@udnp
udnp / diyhack-xrdp-keyboard-layout-reset-issue.md
Last active March 10, 2021 10:22
xrdp で再ログインすると US キーボードのレイアウトが reset される問題の DIY hack/Hack against the issue that keyboard layout is always reset on login through xrdp.

xrdp で再ログインすると US キーボードのレイアウトが JIS に必ず reset される問題の DIY hack

環境

ゲスト

Ubuntu 20.04 LTS + xrdp 0.9.12

ホスト

Windows 10 Pro 20H2 の Hyper-V

クライアント

@udnp
udnp / diyhack-ibus-skk-config-issue-on-ubuntu-20.04.md
Last active December 4, 2021 18:07
IBus SKK の設定が Ubuntu で保存されない問題の DIY hack/Hack against the issue that it seems configurations about IBus SKK are not registered at all.

IBus SKK の設定が Ubuntu 20.04 LTS で保存されない問題の DIY hack

動機

誤入力を避けるために IBus SKK の設定で「初期入力モード」を「英数」にしたい.また「句読点の形式」を「.,」にしたい.

ibus-skk-config-gui-after

しかし,IBus SKK の設定画面で「初期入力モード」や「句読点の形式」を変更しても,動作として反映されてないような振舞いをし,次回ログイン時には設定画面上も設定がクリアされている.

ibus-skk-config-gui-before

@udnp
udnp / issue-safari-use-strict-and-object-defineproperty.md
Last active July 23, 2016 06:51
[Proof Code] Issue of Safari ES5 strict mode and Object.defineProperty() with a named setter function

[Proof Code] Issue of Safari ES5 strict mode and Object.defineProperty() with a named setter function

Issue

  • On iOS 9.3.2 Safari, it seems that Object.defineProperty() including a named setter function with a same named argument causes something problem in the ES5 strict mode.
  • And then, JavaScript in this strict mode scope dose not work, but any error or exception not be thrown.
  • If 'use strict'; line in the script is removed, this problem dose not occurre.
  • Other browsers(Chrome, Firefox) and Node.js do not have this issue.

Proof Code

  • main.js ... main code to causes this issue