Relavant links:
I have an interesting but I want to fix on my system. Whenever I wake up my computer the display manager crashes and a new session appears.
def get_second_area_moment(breadth, depth): | |
return breadth * depth**3/12 | |
def get_natural_frequency(youngs_modulus, sam, mass, length, eigenvalue): | |
return eigenvalue * ((youngs_modulus * sam)/(mass * length**4))**(1/2) | |
def get_light_beam_stiffness(length, youngs, sam): | |
return (3 * youngs * sam)/(length**3) |
#!/usr/bin/env bash | |
find "*.rtf" -type f -exec flatpak run org.libreoffice.LibreOffice --headless --invisible --norestore --convert-to pdf {} + |
[ 5280.541836] ------------[ cut here ]------------ | |
[ 5280.541839] WARNING: CPU: 3 PID: 42835 at fs/btrfs/extent-tree.c:3068 __btrfs_free_extent+0x747/0x1140 [btrfs] | |
[ 5280.541894] Modules linked in: ext4 mbcache jbd2 vfat fat mousedev hid_logitech_hidpp uhid snd_seq_dummy snd_hrtimer snd_seq snd_seq_device exfat rfcomm nvidia_uvm(POE) nvidia_drm(POE) nvidia_modeset(POE) nvidia(POE) cmac algif_hash algif_skcipher af_alg qrtr joydev sg st sr_mod bnep snd_soc_avs snd_hda_codec_realtek snd_soc_hda_codec snd_hda_codec_generic snd_hda_ext_core ledtrig_audio snd_soc_core snd_hda_codec_hdmi snd_compress ac97_bus snd_pcm_dmaengine snd_hda_intel iwlmvm intel_rapl_msr snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec intel_rapl_common snd_hda_core btusb mac80211 snd_hwdep intel_tcc_cooling x86_pkg_temp_thermal intel_powerclamp snd_pcm libarc4 btrtl btbcm snd_timer btintel btmtk snd soundcore coretemp bluetooth ecdh_generic crc16 kvm_intel iwlwifi iTCO_wdt intel_pmc_bxt kvm iTCO_vendor_support irqbypass ppdev ee1004 cfg |
Relavant links:
I have an interesting but I want to fix on my system. Whenever I wake up my computer the display manager crashes and a new session appears.
nov. 29 21:02:15 matebook systemd-logind[537]: Lid closed. | |
nov. 29 21:02:15 matebook systemd-logind[537]: Suspending... | |
nov. 29 21:02:15 matebook NetworkManager[541]: <info> [1669752135.3030] manager: sleep: sleep requested (sleeping: no enabled: yes) | |
nov. 29 21:02:15 matebook NetworkManager[541]: <info> [1669752135.3031] device (p2p-dev-wlan0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') | |
nov. 29 21:02:15 matebook NetworkManager[541]: <info> [1669752135.3036] manager: NetworkManager state is now ASLEEP | |
nov. 29 21:02:15 matebook NetworkManager[541]: <info> [1669752135.3037] device (wlan0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed') | |
nov. 29 21:02:15 matebook dbus-daemon[536]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.3' (uid=0 pid=541 comm="/usr/bin/NetworkManager --no-daemon") | |
nov. 29 21:02:15 matebook systemd[1]: St |
%{ | |
octave:4> help obsv | |
'obsv' is a function from the file /usr/share/octave/packages/control-3.4.0/obsv.m | |
-- Function File: OB = obsv (SYS) | |
-- Function File: OB = obsv (A, C) | |
Return observability matrix. | |
*Inputs* | |
SYS |
usermod -aG sys $USER
pacman -S manjaro-printer system-config-printer cups
systemctl enable cups --now
relogin to make group changes take effect.
start system-config-printer
and follow instructions on NTNU's website
#!/bin/bash | |
SOURCE_DIRS=('./Private' './Public' './Library') | |
FILE_EXTENSION="*.php" | |
for dir in "${SOURCE_DIRS[@]}"; do | |
files="$(find "$dir" -name "$FILE_EXTENSION";)" | |
for file in $files; do | |
base_name="$(basename $file)"; | |
new_name=$(sed "s/$base_name/${base_name^}/g" <<< $file) |
echo "<?php\n\ndeclare(strict_types=1);\n\nnamespace\n\n\\App;" | tee -a $(find ./ -name "*.php") |
sudo ss -tlpn |