平衡点
2006/08/29
_ 文字コード
今迄 euc-jp-dos だったけど euc-jp-unix に変えてみるテスト.
_ squeeze.rb
squeeze.rb が相変わらず動かない. うーん. 以前と変わらず amazon.rb で insecure って怒られますなぁ. amazon.rb を弄るのが正しいんだろうか.
…あれ, cgi 的に動かしたらそれは静的生成されてるよ.
…あ, amazon2.rb みたいだわ. をを.
ま, でも良いや. Rast 検索で良いし.
あとは
- リクエストがあった時に html を静的に生成しておく.
- mod_rewrite でもって, 静的 html へ飛ばす.
くらいですか.
_ プログラミング Ruby 第二版
第二版になって分冊になりました.
Dave Thomas, オーム社, ¥4,180
とりあえず言語編しか買ってない. 第二版は 1.8 系列の話が増えていて, なんか新しい本みたいな. あと
- テストフレームワーク
- rubygems
の項が増えている. これは良いね.
ライブラリ編は未だ買ってない. 二分冊になって, 読みやすくはなったけど, やっぱ高いなぁ…
とりあえず 「Ruby 最高!!」と叫んでおく.
2021/08/29
_ suspendできない/suspend後にhangして reusme できない
うーん…? USB まわりかな…
Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.4510] manager: sleep: sleep requested (sleeping: no enabled: yes) Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.4514] device (p2p-dev-wlp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.4539] manager: NetworkManager state is now ASLEEP Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.4547] device (wlp2s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed') Aug 29 03:38:15 gerbera dbus-daemon[615]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.5' (uid=0 pid=616 comm="/usr/sbin/NetworkManager --no-daemon ") Aug 29 03:38:15 gerbera systemd[1]: Starting Network Manager Script Dispatcher Service... Aug 29 03:38:15 gerbera dbus-daemon[615]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' Aug 29 03:38:15 gerbera systemd[1]: Started Network Manager Script Dispatcher Service. Aug 29 03:38:15 gerbera gsd-color[1970]: failed to create profile from EDID data: failed to create profile with chroma and gamma Aug 29 03:38:15 gerbera kernel: [ 9930.834880] wlp2s0: deauthenticating from XX:XX:XX:XX:XX:XX by local choice (Reason: 3=DEAUTH_LEAVING) Aug 29 03:38:15 gerbera wpa_supplicant[637]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=XX:XX:XX:XX:XX:XX reason=3 locally_generated=1 Aug 29 03:38:15 gerbera wpa_supplicant[637]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=0 noise=9999 txrate=0 Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.5120] device (wlp2s0): supplicant interface state: completed -> disconnected Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.5126] device (wlp2s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed') Aug 29 03:38:15 gerbera avahi-daemon[611]: Withdrawing address record for --:-- on wlp2s0. Aug 29 03:38:15 gerbera avahi-daemon[611]: Leaving mDNS multicast group on interface wlp2s0.IPv6 with address --:--. Aug 29 03:38:15 gerbera avahi-daemon[611]: Joining mDNS multicast group on interface wlp2s0.IPv6 with address --:-- Aug 29 03:38:15 gerbera gnome-shell[1828]: An active wireless connection, in infrastructure mode, involves no access point? Aug 29 03:38:15 gerbera avahi-daemon[611]: Registering new address record for --:-- on wlp2s0.*. Aug 29 03:38:15 gerbera avahi-daemon[611]: Withdrawing address record for --:-- on wlp2s0. Aug 29 03:38:15 gerbera avahi-daemon[611]: Leaving mDNS multicast group on interface wlp2s0.IPv6 with address --:--. Aug 29 03:38:15 gerbera avahi-daemon[611]: Interface wlp2s0.IPv6 no longer relevant for mDNS. Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.5415] dhcp6 (wlp2s0): canceled DHCP transaction Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.5416] dhcp6 (wlp2s0): state changed bound -> terminated Aug 29 03:38:15 gerbera avahi-daemon[611]: Interface wlp2s0.IPv4 no longer relevant for mDNS. Aug 29 03:38:15 gerbera avahi-daemon[611]: Leaving mDNS multicast group on interface wlp2s0.IPv4 with address --:-- Aug 29 03:38:15 gerbera avahi-daemon[611]: Withdrawing address record for --:-- on wlp2s0. Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.5459] device (wlp2s0): set-hw-addr: set MAC address to XX:XX:XX:XX:XX:XX (scanning) Aug 29 03:38:15 gerbera avahi-daemon[611]: Joining mDNS multicast group on interface wlp2s0.IPv4 with address --:-- Aug 29 03:38:15 gerbera avahi-daemon[611]: New relevant interface wlp2s0.IPv4 for mDNS. Aug 29 03:38:15 gerbera avahi-daemon[611]: Registering new address record for --:-- on wlp2s0.IPv4. Aug 29 03:38:15 gerbera avahi-daemon[611]: Withdrawing address record for --:-- on wlp2s0. Aug 29 03:38:15 gerbera avahi-daemon[611]: Leaving mDNS multicast group on interface wlp2s0.IPv4 with address --:-- Aug 29 03:38:15 gerbera avahi-daemon[611]: Interface wlp2s0.IPv4 no longer relevant for mDNS. Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.5628] device (wlp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') Aug 29 03:38:15 gerbera NetworkManager[616]: <info> [1630175895.6703] device (wlp2s0): set-hw-addr: reset MAC address to XX:XX:XX:XX:XX:XX (unmanage) Aug 29 03:38:15 gerbera nm-dispatcher[20984]: systemctl stop smbd nmbd Aug 29 03:38:15 gerbera systemd[1]: Reached target Sleep. Aug 29 03:38:15 gerbera systemd[1]: Starting Starts i3lock at suspend time... Aug 29 03:38:15 gerbera wpa_supplicant[637]: nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0 Aug 29 03:38:15 gerbera systemd[1]: Starting Suspend... Aug 29 03:38:15 gerbera systemd[1]: Stopping Samba SMB Daemon... Aug 29 03:38:15 gerbera systemd[1]: smbd.service: Succeeded. Aug 29 03:38:15 gerbera systemd[1]: Stopped Samba SMB Daemon. Aug 29 03:38:15 gerbera systemd[1]: Stopping Samba NMB Daemon... Aug 29 03:38:15 gerbera systemd[1]: nmbd.service: Succeeded. Aug 29 03:38:15 gerbera systemd[1]: Stopped Samba NMB Daemon. Aug 29 03:38:15 gerbera systemd-sleep[20987]: Suspending system... Aug 29 03:38:15 gerbera kernel: [ 9931.116327] PM: suspend entry (deep) Aug 29 03:38:15 gerbera nm-dispatcher[20989]: systemctl --user stop barriers Aug 29 03:38:15 gerbera systemd[1]: Started Session c3 of user uwabami. Aug 29 03:38:15 gerbera kernel: [ 9931.154892] Filesystems sync: 0.038 seconds Aug 29 03:38:15 gerbera kernel: [ 9931.155036] (NULL device *): firmware: direct-loading firmware i915/kbl_dmc_ver1_04.bin Aug 29 03:38:15 gerbera kernel: [ 9931.155169] (NULL device *): firmware: direct-loading firmware regulatory.db Aug 29 03:38:15 gerbera kernel: [ 9931.155209] (NULL device *): firmware: direct-loading firmware regulatory.db.p7s Aug 29 03:38:15 gerbera kernel: [ 9931.155227] (NULL device *): firmware: direct-loading firmware intel/ibt-12-16.ddc Aug 29 03:38:15 gerbera kernel: [ 9931.155385] (NULL device *): firmware: direct-loading firmware intel/ibt-12-16.sfi Aug 29 03:38:16 gerbera kernel: [ 9931.155978] (NULL device *): firmware: direct-loading firmware iwlwifi-8265-36.ucode Aug 29 03:38:16 gerbera kernel: [ 9931.156004] Freezing user space processes ... (elapsed 0.016 seconds) done. Aug 29 03:38:16 gerbera kernel: [ 9931.172077] OOM killer disabled. Aug 29 03:38:16 gerbera kernel: [ 9931.172079] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. Aug 29 03:38:16 gerbera kernel: [ 9931.173651] printk: Suspending console(s) (use no_console_suspend to debug) Aug 29 03:38:16 gerbera kernel: [ 9931.351933] pcieport 0000:00:1c.0: Intel SPT PCH root port ACS workaround enabled Aug 29 03:38:16 gerbera kernel: [ 9931.371965] PM: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 [usbcore] returns -16 Aug 29 03:38:16 gerbera kernel: [ 9931.371974] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -16 Aug 29 03:38:16 gerbera kernel: [ 9931.371978] PM: Device 0000:00:14.0 failed to suspend async: error -16 Aug 29 03:38:16 gerbera kernel: [ 9931.472276] PM: Some devices failed to suspend, or early wake event detected Aug 29 03:38:16 gerbera kernel: [ 9931.472818] ------------[ cut here ]------------ Aug 29 03:38:16 gerbera kernel: [ 9931.472822] Unbalanced IRQ 20 wake disable Aug 29 03:38:16 gerbera kernel: [ 9931.472847] WARNING: CPU: 2 PID: 20964 at kernel/irq/manage.c:800 irq_set_irq_wake+0x108/0x1a0 Aug 29 03:38:16 gerbera kernel: [ 9931.472849] Modules linked in: ext4 mbcache jbd2 dm_crypt dm_mod ses enclosure sd_mod scsi_transport_sas sg uas usb_storage scsi_mod overlay ctr ccm rfcomm cmac algif_hash algif_skcipher af_alg bnep snd_hda_codec_hdmi btusb btrtl btbcm snd_hda_codec_realtek btintel snd_hda_codec_generic bluetooth ledtrig_audio snd_soc_skl snd_soc_hdac_hda snd_hda_ext_core jitterentropy_rng snd_soc_sst_ipc snd_soc_sst_dsp x86_pkg_temp_thermal intel_powerclamp coretemp snd_soc_acpi_intel_match snd_soc_acpi kvm_intel snd_hda_intel drbg snd_intel_dspcfg soundwire_intel kvm iwlmvm soundwire_generic_allocation snd_soc_core irqbypass aes_generic ghash_clmulni_intel snd_compress mac80211 soundwire_cadence libarc4 snd_hda_codec intel_rapl_msr mei_hdcp snd_hda_core iwlwifi snd_hwdep uvcvideo aesni_intel soundwire_bus rapl videobuf2_vmalloc nls_ascii crypto_simd intel_cstate cryptd videobuf2_memops snd_pcm glue_helper videobuf2_v4l2 nls_cp437 vfat intel_uncore snd_timer iTCO_wdt videobuf2_common fat intel_pmc_bxt Aug 29 03:38:16 gerbera kernel: [ 9931.473004] ansi_cprng efi_pstore snd cfg80211 serio_raw iTCO_vendor_support soundcore videodev watchdog ecdh_generic ecc i915 joydev mc rfkill crc16 libaes hid_sensor_incl_3d hid_sensor_gyro_3d hid_sensor_rotation hid_sensor_magn_3d hid_sensor_als hid_sensor_accel_3d hid_sensor_trigger hid_sensor_iio_common drm_kms_helper evdev processor_thermal_device industrialio_triggered_buffer cec kfifo_buf mei_me intel_rapl_common mei int340x_thermal_zone intel_xhci_usb_role_switch roles intel_pch_thermal industrialio intel_soc_dts_iosf tpm_crb i2c_algo_bit tpm_tis tpm_tis_core tpm int3406_thermal intel_pmc_core soc_button_array button rng_core ac acpi_pad drm fuse configfs efivarfs ip_tables x_tables autofs4 hid_logitech_hidpp btrfs blake2b_generic xor hid_logitech_dj usbhid hid_sensor_hub hid_generic raid6_pq libcrc32c crc32c_generic intel_ishtp_hid hid xhci_pci nvme xhci_hcd nvme_core crc32_pclmul crc32c_intel t10_pi crc_t10dif psmouse crct10dif_generic usbcore crct10dif_pclmul i2c_i801 Aug 29 03:38:16 gerbera kernel: [ 9931.473183] i2c_smbus crct10dif_common intel_ish_ipc intel_ishtp usb_common battery fan video Aug 29 03:38:16 gerbera kernel: [ 9931.473208] CPU: 2 PID: 20964 Comm: kworker/2:2 Tainted: G U 5.10.0-8-amd64 #1 Debian 5.10.46-4 Aug 29 03:38:16 gerbera kernel: [ 9931.473212] Hardware name: Panasonic Corporation CFRZ8-1L/CFRZ8-1L, BIOS V1.11L14 07/13/2020 Aug 29 03:38:16 gerbera kernel: [ 9931.473225] Workqueue: events ish_resume_handler [intel_ish_ipc] Aug 29 03:38:16 gerbera kernel: [ 9931.473237] RIP: 0010:irq_set_irq_wake+0x108/0x1a0 Aug 29 03:38:16 gerbera kernel: [ 9931.473244] Code: e8 3d a9 b0 00 41 89 c5 85 c0 74 7a c7 85 84 00 00 00 01 00 00 00 e9 76 ff ff ff 44 89 e6 48 c7 c7 28 68 2d 86 e8 7b 2c 78 00 <0f> 0b 45 31 ed e9 5d ff ff ff 44 89 e7 e8 b6 e9 ff ff 48 8b 50 40 Aug 29 03:38:16 gerbera kernel: [ 9931.473249] RSP: 0000:ffffa19883f0be08 EFLAGS: 00010086 Aug 29 03:38:16 gerbera kernel: [ 9931.473255] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff956506d18a08 Aug 29 03:38:16 gerbera kernel: [ 9931.473259] RDX: 00000000ffffffd8 RSI: 0000000000000027 RDI: ffff956506d18a00 Aug 29 03:38:16 gerbera kernel: [ 9931.473263] RBP: ffff956461c40000 R08: ffffffff8685b3a0 R09: 0000000000000001 Aug 29 03:38:16 gerbera kernel: [ 9931.473267] R10: ffffffff8685b3c8 R11: 0000000000000001 R12: 0000000000000014 Aug 29 03:38:16 gerbera kernel: [ 9931.473270] R13: 00000000ffffffea R14: 0000000000000000 R15: 0000000000000000 Aug 29 03:38:16 gerbera kernel: [ 9931.473277] FS: 0000000000000000(0000) GS:ffff956506d00000(0000) knlGS:0000000000000000 Aug 29 03:38:16 gerbera kernel: [ 9931.473281] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Aug 29 03:38:16 gerbera kernel: [ 9931.473285] CR2: 00007fde6c6fee76 CR3: 00000003a140a001 CR4: 00000000003706e0 Aug 29 03:38:16 gerbera kernel: [ 9931.473289] Call Trace: Aug 29 03:38:16 gerbera kernel: [ 9931.473307] ish_resume_handler+0x74/0x140 [intel_ish_ipc] Aug 29 03:38:16 gerbera kernel: [ 9931.473318] ? __schedule+0x28a/0x870 Aug 29 03:38:16 gerbera kernel: [ 9931.473329] process_one_work+0x1b6/0x350 Aug 29 03:38:16 gerbera kernel: [ 9931.473339] worker_thread+0x53/0x3e0 Aug 29 03:38:16 gerbera kernel: [ 9931.473347] ? process_one_work+0x350/0x350 Aug 29 03:38:16 gerbera kernel: [ 9931.473354] kthread+0x11b/0x140 Aug 29 03:38:16 gerbera kernel: [ 9931.473362] ? __kthread_bind_mask+0x60/0x60 Aug 29 03:38:16 gerbera kernel: [ 9931.473371] ret_from_fork+0x22/0x30 Aug 29 03:38:16 gerbera kernel: [ 9931.473380] ---[ end trace 10a4ab3ab925d9c8 ]--- Aug 29 03:38:16 gerbera kernel: [ 9931.492499] nvme nvme0: Shutdown timeout set to 8 seconds Aug 29 03:38:16 gerbera kernel: [ 9931.498697] nvme nvme0: 4/0/0 default/read/poll queues Aug 29 03:38:16 gerbera kernel: [ 9932.188946] acpi LNXPOWER:00: Turning OFF Aug 29 03:38:16 gerbera kernel: [ 9932.189101] OOM killer enabled. Aug 29 03:38:16 gerbera kernel: [ 9932.189105] Restarting tasks ... done. Aug 29 03:38:16 gerbera wpa_supplicant[637]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0 Aug 29 03:38:16 gerbera kernel: [ 9932.295120] PM: suspend exit Aug 29 03:38:16 gerbera kernel: [ 9932.295208] PM: suspend entry (s2idle)
なんというか,
Aug 29 03:38:16 gerbera kernel: [ 9931.351933] pcieport 0000:00:1c.0: Intel SPT PCH root port ACS workaround enabled Aug 29 03:38:16 gerbera kernel: [ 9931.371965] PM: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 [usbcore] returns -16 Aug 29 03:38:16 gerbera kernel: [ 9931.371974] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 returns -16 Aug 29 03:38:16 gerbera kernel: [ 9931.371978] PM: Device 0000:00:14.0 failed to suspend async: error -16 Aug 29 03:38:16 gerbera kernel: [ 9931.472276] PM: Some devices failed to suspend, or early wake event detected
あたりかな. そういや卓上の USBハブ代えたんだった. これ無しで試してみることにしょうか.