promitheas

joined 3 years ago
[–] promitheas@programming.dev 4 points 2 months ago

YouTube definitely does that. Im on Brave, been for years, and in the past year clicking on videos makes them load with several seconds delay, with a popup in the bottom left along the lines of "Experiencing interruptions? Find out why" and the help page it takes you to if you click it, basically gives the default reasons of "youre internet may be slow", but IIRC it also includes the reason that you are using ad blocking scripts

[–] promitheas@programming.dev 5 points 2 months ago (3 children)

Im just curious, but how would arch implement age verification if it wanted to? I mean, its basically just the linux kernel, with supporting software like systemd, no? I know systemd is making moves to add "age verification" in the form of an environment variable or something, but that would be trivial to remove as I think about it off the top of my head, or worst case you would just get a fork of systemd without the age verification if they bake it in too deep and make it so the entire systemd ecosystem doesnt work without that variable set

[–] promitheas@programming.dev 4 points 2 months ago

This is my thought process as well. Its ridiculous that a single state of the US - not even the entire country - can have so much sway over a global project.

[–] promitheas@programming.dev 7 points 2 months ago (1 children)

I know you may be feeling disappointment and exhaustion from the negative replies, but please dont stop talking about this issue. Im a technical guy. Ive got no problem with - and in fact find it fun to - flash and deal with the problems you describe, but I also desire linux to become at the very least one of the main OSs people use. To do that, I realise it needs to be a simple enough process, which it is installer wise if you have a flashed USB (also not a complicated process nowadays to do). However as you describe, its the hardware compatibility and support from HW vendors that is the main hurdle now.

Make noise. Just like your post. Weve been making noise on the software compatibility enough to the point its now no longer impossible to have a linux system runnung with the software we need for daily life/work/school, but the next step is getting the HW manufacturers on board. I do feel like its a cycle though, of not enough number of users to convince HW manufacturers to officially support linux, and not enough HW support to get the users we need to migrate to linux. Who knows how it will turn out or how long it will take, but for sure we need to be making noise to get the support we want.

[–] promitheas@programming.dev 29 points 2 months ago (1 children)
[–] promitheas@programming.dev 12 points 2 months ago (1 children)

By sterile do you mean unable to have kids? Because i seem to remember in the clone wars series there were examples of clones with families. I may be wrong though since its been a few years since ive watched it

[–] promitheas@programming.dev 2 points 2 months ago

Heres my ~/.bin directory:

https://github.com/promitheas17j/dotfiles/tree/main/dot_bin

Hopefully thats what youre asking for.

My favourite ones are:

  • bspwm-minimise.sh and bspwm-restore.sh which allow me to have window minimisation functionality in bspwm, which to my knowledge doesn't exist natively
  • check_last_update.sh which I have in my .zshrc and gives me a count of packages available to update with some basic colouring, as well as if I have a kernel mismatch and need to restart

One that Im still working on but will for sure be my favourite once its done is parse_keybinds.sh and keybind_cheatsheet.sh, which go through some of the software I have and parse their config files to extract all the keybinds into a file with a specific format. The latter script then launches a rofi menu where I can fuzzy search keybinds based on software name and what I want to do but cant remember the binding for. So far Ive got sxhkd and lf, but I consider it a work in progress because I want to also parse neovim bindings, but sxhkd and lf are single file configs while neovim has bindings in multiple files spread across multiple subdirectories in its config directory.

[–] promitheas@programming.dev 2 points 2 months ago (1 children)

It looks good, ive wishlisted it for when i have the money. Thanks :)

[–] promitheas@programming.dev 10 points 3 months ago (1 children)

Do people still seriously consider travelling/engaging with the US in any way??

[–] promitheas@programming.dev 4 points 3 months ago (1 children)

It was the Sovereign British Areas that came under attack by a single drone as far as we are aware. Technically its British territory, even though its colonial in nature.

[–] promitheas@programming.dev 5 points 3 months ago* (last edited 3 months ago) (1 children)

Ill counter that by saying that because you started with something more low level, the other stuff was easy (my belief).

Also, depending on what the students are actually studying, I think you need to give an introduction to low level stuff because while some will want to do web dev for example, others might want to do low level stuff. Obviously if its a web dev course you dont want to do that, but if its something like CompSci or Software Engineering then i think having a grasp of the fundamentals of low level stuff is necessary.

Lastly, if its a general introduction to programming course I think C has advantages over other languages since almost everything is done by you, instead of the compiler (for example iterating over an array - C: you need to do the for loop to manually handle the data depending on whatever type is stored in the array - Python: for x in y is sufficient). Im tutoring my little sister in programming because they have it in school, and they use python. Sure its easier to get things done, but its harder to learn/teach general programming with python in my opinion. C would have been my choice, especially since at that level its not like you need to teach/learn memory management, or complex data structures. Its the same concepts as with python (input, output, variables, conditionals, loops, functions) but the syntax just doesnt hide too much from you, unlike python, making it easier to understand whats actually going on

[–] promitheas@programming.dev 7 points 3 months ago (1 children)

Alright everyone, good result. See you all here in a couple years for the new iteration

 

Hey guys, up to a few days ago it was working fine, i.e. it wouldn't go to sleep ever. But probably some update or something else changed and now after 13 minutes my pc goes to sleep.

I read the power management/suspend page in the arch wiki, and now have the following:

# /etc/systemd/sleep.conf
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no

as well as:

# /etc/systemd/logind.conf
[Login]
HandleSuspendKey=suspend
IdleAction=ignore
IdleActionSec=0

(that last one I dont remember where I got it from)

I tried masking systemd targets, but after waiting without touching anything it still went to sleep after 12-13 minutes.

$ systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Notice in the command below I have xfce4-power-manager (though it looks different than on my laptop) but I dont see it in control of sleep itself, but rather upower and NetworkManager control sleep.

$ systemd-inhibit
WHO                 UID  USER PID  COMM            WHAT                                                                       WHY                                       MODE
NetworkManager      0    root 734  NetworkManager  sleep                                                                      NetworkManager needs to turn off networks delay
UPower              0    root 1149 upowerd         sleep                                                                      Pause device polling                      delay
xfce4-power-manager 1000 user 1053 xfce4-power-man handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch xfce4-power-manager handles these events  block

3 inhibitors listed.

I looked at the manual for upower as well as its wiki page but couldn't see anything about enabling/disabling/handling suspends in any way and after further reading it seems it doesn't directly handle suspends/hibernates, just informs stuff like systemd about power levels and such.

As for NetworkManager, does it really have the ability to force a suspend?

It gets really annoying when trying to watch a movie, or when I'm afk in a game but still want to keep an eye on it.

Can anyone please help me? Thanks in advance!

System info: Kernel: 6.12.10-arch1-1 DE/WM: bspwm

Edit: Checked both BIOS settings (Couldn't find anything related to power saving) and the settings for the monitors themselves (no power saving features there either). How would I check to see if it is indeed just the monitors going to sleep, and by extension how would I fix it?

My MoBo: ASUS ROG STRIX B550-F Gaming

 

Should I just buy the cheapest PS3 Eye camera from ebay and see whether I get the flat lens or round lens, and proceed accordingly?

Its a real hassle to determine if its a flat or round lens from the photos people upload on ebay, as they're not very good quality.

Edit: I found a really cheap one on ebay which was at auction and got the highest bid (it was a little over 4 euro with another 4 shipping, so honestly not bad at all). When it arrives I'll try out the steps in the video and report back here I guess. Hopefully it can help people when buying these cameras to not struggle looking for the rounded lenses and worry that if they dont get that one they cant do their project.

 
 
 

Hello everyone! I have this issue with my steam on arch linux where it takes about 5 minutes and sometimes more to start, then I keep getting connection errors when trying to sign in. Ive opened an issue on the github page you can read for more details (logs etc)

Basically now I'm wondering if I should just reinstall steam and see if that fixes it. Here is the situation though. I have a steam library in my /home partition, as well as on a separate hard drive which is always mounted. I have copied the steamapps directory from the home side of things to a temporary location, so I assume if I reinstall and copy it back I should have all my games and stuff set up exactly as they were before the issue? Also, do I need to backup the steamapps directory from the hard drive which is separate to /home?

The reason I'm so hesitant to just wipe everything and reinstall, is because I spent a good couple of weeks trying to get Silent Hunter 3 set up with steamtinkerlaunch, and even on release it was quite a finnicky game, let alone 20-something years later on linux running through proton, and now I have it at a point where it works.

Anyway, I would love some help, so thanks in advance!

P.s. Updating system didn't solve issue

Just checked, and I have all the dependencies listed on the package page satisfied in some form. Now, whether some version is slightly outdated, I don't know how to check

Reinstalling steam doesn't seem to fix the issue.

pacman -R steam-native-runtime steam
pacman -S steam

When launching from the terminal again I get the same output. The 2 lines that stand out are the following:

src/clientdll/steamengine.cpp (2773) : Assertion Failed: CSteamEngine::BMainLoop appears to have stalled > 15 seconds without event signalled
src/clientdll/steamengine.cpp (2773) : Assertion Failed: CSteamEngine::BMainLoop appears to have stalled > 15 seconds without event signalled

Any ideas how I can troubleshoot this?

[SOLUTION] I had to run

pacman -Syu steam

which seems to have also installed a package called lsb-release

Im not sure why running a full system upgrade and also uninstalling and reinstalling steam didn't also grab this package when I did those, but there you go. I do a full system update by simply running yay as to my understanding that is the same as running yay -Syu but it first runs pacman -Syu. If anyone could provide some insight into why that might be I would appreciate that so I can learn from this experience. Thanks again everyone who tried to help!

 

Hello guys!

I want to completely remove qemu and all its optional packages. I went about removing most of them, but now I have this list of packages still installed:

$ pacman -Q | grep qemu
qemu-base 9.1.2-1
qemu-common 9.1.2-1
qemu-img 9.1.2-1
qemu-system-x86 9.1.2-1
qemu-system-x86-firmware 9.1.2-1

If I try to remove them with pacman -R <list of those package> I get the following message:

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing qemu-base breaks dependency 'qemu' required by libguestfs
 -> exit status 1

When I add libguestfs to that list, I get the following output:

pacman -R qemu-base qemu-common qemu-img qemu-system-x86 qemu-system-x86-firmware libguestfs
checking dependencies...
:: e2fsprogs optionally requires lvm2: for e2scrub
:: grub optionally requires dosfstools: For grub-mkrescue FAT FS and EFI support
:: grub optionally requires lzop: For grub-mkrescue LZO support
:: grub optionally requires mtools: For grub-mkrescue FAT FS support
:: htop optionally requires strace: attach to a running process
:: libblockdev-fs optionally requires btrfs-progs: for BTRFS filesystem support
:: libblockdev-fs optionally requires dosfstools: for VFAT filesystem support
:: libblockdev-fs optionally requires exfatprogs: for exFAT filesystem support
:: libblockdev-fs optionally requires f2fs-tools: for F2FS filesystem support
:: libblockdev-fs optionally requires nilfs-utils: for nilfs filesystem support
:: libblockdev-fs optionally requires xfsprogs: for XFS filesystem support
:: libvirt optionally requires lvm2: Logical Volume Manager support
:: libvirt optionally requires qemu-base: QEMU/KVM support
:: mkinitcpio optionally requires lzop: Use lzo compression for the initramfs image
:: reflector optionally requires rsync: rate rsync mirrors
:: steamtinkerlaunch optionally requires rsync: optional for backing up steamuser files from proton games
:: steamtinkerlaunch optionally requires strace: write a strace log of the launched game
:: udisks2 optionally requires btrfs-progs: for BTRFS support in libblockdev-fs
:: udisks2 optionally requires dosfstools: for FAT support in libblockdev-fs
:: udisks2 optionally requires exfatprogs: for exFAT support in libblockdev-fs
:: udisks2 optionally requires f2fs-tools: for F2FS support in libblockdev-fs
:: udisks2 optionally requires nilfs-utils: for NILFS support in libblockdev-fs
:: udisks2 optionally requires xfsprogs: for XFS support in libblockdev-fs

Packages (50) augeas-1.14.1-3  btrfs-progs-6.11-1  capstone-5.0.3-1  debootstrap-1.0.137-1  distro-info-1.10-1  distro-info-data-0.63-1  dosfstools-4.2-5  dtc-1.7.2-1  edk2-ovmf-202411-1  exfatprogs-1.2.6-1  f2fs-tools-1.16.0-3  gptfdisk-1.0.10-1  hivex-1.3.23-10
              iniparser-4.2.4-1  jfsutils-1.1.15-9  libewf-20140816-1  libldm-0.2.5-3  libslirp-4.8.0-1  libtraceevent-1:1.8.4-1  libtracefs-1.8.1-1  libxdp-1.4.3-1  lrzip-0.651-3  lsscsi-0.32-2  lvm2-2.03.28-1  lzop-1.04-4  mtools-1:4.0.46-1
              multipath-tools-0.10.0-1  ndctl-79-1  nilfs-utils-2.2.11-1  perl-libintl-perl-1.33-4  rsync-3.3.0-2  seabios-1.16.3-1  sleuthkit-4.12.1-3  squashfs-tools-4.6.1-2  strace-6.12-1  supermin-5.3.5-1  sysfsutils-2.1.1-2  syslinux-6.04.pre3.r3.g05ac953c-3
              thin-provisioning-tools-1.1.0-1  vde2-2.3.3-5  virtiofsd-1.13.0-1  wolfssl-5.7.4-1  xfsprogs-6.11.0-1  yara-4.5.1-1  libguestfs-1.54.0-1  qemu-base-9.1.2-1  qemu-common-9.1.2-1  qemu-img-9.1.2-1  qemu-system-x86-9.1.2-1  qemu-system-x86-firmware-9.1.2-1

Total Removed Size:  208.05 MiB

:: Do you want to remove these packages? [Y/n] n
 -> exit status 1

I'm seeing stuff in there about grub and some other packages I definitely DO NOT want to remove, so I'm wondering how I can proceed.

Thanks in advance!

1
submitted 2 years ago* (last edited 2 years ago) by promitheas@programming.dev to c/eveonline@lemmy.world
 

Hey everyone. Im trying to get into wormhole pvp as a hunter, and today I spent pretty much all day going down a chain with no explorers sited. I even spent a few hours camped at the wormhole to a HS system 4 or so jumps from Jita. The only people I saw were a few capsules, some cruisers in a fleet (probably defending their home), and a buzzard. I would jump to my perches on any relic or data site often, but there was no one. Am i doing something wrong?

Thanks!

1
Creating (adding) POIs (programming.dev)
submitted 2 years ago* (last edited 2 years ago) by promitheas@programming.dev to c/osmand@lemmy.ml
 

I would like to contribute to the maps for my area by creating and uploading various POIs as I come across them in my daily use. To get familiar with the system I decided to add a known to me florist. I found the exact location using google maps, opened it in OsmAnd+, and went through the process to add all its details (address, phone, website, type, etc). However when I decide to upload it, signing in with username and password, I get the error in the image attached. Anyone know what the problem is and how I can solve it?

Edit: App Info OsmAnd+ 4.6.12, Released: 2024-01-16

 

Hello everyone. I just got a new battery for my T480 from my work supplier. It is a Greencell LGC 11 Model: 01AV424 and I get a BIOS message before my bootloader:

The battery installed is not supported by this system and will not charge. Please replace the battery with the correct Lenovo battery for this system. Press the ESC key to continue.

Once I plugged it in and booted up the battery had 74% charge, and I let it discharge until 6% without the AC adaptor plugged in as per the instructions, so that I could then fully charge it (and repeat the process 3-5 times). However, once it reached 6% and I plugged it in it wasn't charging and ended up dropping to 1% where it remains even now. Below I'll include outputs from some commands.

Everything I read online mentions flashing the EC chip to whitelist the battery, or changing the BIOS to something like coreboot. I'd like to avoid flashing any chips unless absolutely the only option, in case something goes wrong and I brick my motherboard. I've tried also resetting the EC chip by pushing the button in the pinhole at the bottom of the laptop with a paper clip, but with no effect.

$ upower -e          
/org/freedesktop/UPower/devices/line_power_AC
/org/freedesktop/UPower/devices/battery_BAT1
/org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o001
/org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o002
/org/freedesktop/UPower/devices/DisplayDevice

$ upower -i /org/freedesktop/UPower/devices/battery_BAT1            
  native-path:          BAT1
  vendor:               LGC 11
  model:                01AV424
  serial:               14050
  power supply:         yes
  updated:              Tue 11 Jun 2024 12:46:25 EEST (19 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               pending-charge
    warning-level:       none
    energy:              0.41 Wh
    energy-empty:        0 Wh
    energy-full:         22.23 Wh
    energy-full-design:  22.23 Wh
    energy-rate:         0 W
    voltage:             10.296 V
    charge-cycles:       1
    percentage:          1%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-caution-charging-symbolic'

As you can see the state it is stuck in is "pending-charge"

Any help would be appreciated. Also, if you need any additional info please let me know and I will provide it.

EDIT: Supplier will pick it up from my work in a couple days and try to solve the issue. Hopefully that works, otherwise I'll have to see about flashing the EC chip with the patched firmware to remove the whitelist.

 

Hello guys! While I am a relatively experienced programmer, I have practically zero experience on the hardware/electronics side of things. I really want and need (I'd like to work in embedded systems) to get this stuff in my "tool belt" of skills, but I am really worried that I will do something wrong or order the wrong parts because it is quite an old project I will be trying to build.

I would like to make this project (EDTracker github) so that i can play all my sim games that benefit from head tracking again. I had one which was pre-built but the connector broke. I would prefer a version with the magnetometer (9150 or 9250). The problem is that due to my inexperience I have no idea where to search for cheap(ish) components, or even if the components listed in the docs are still available or if there are better ones that do the same thing.

I realise this is not much (almost nothing) to go on, but I would really appreciate any help at all that can push me in the right direction. Also, please be understanding of my possibly ignorant questions. When you have no knowledge in a field it is often hard to know what the right questions are :)

Many thanks in advance!

Edit: Spelling

view more: ‹ prev next ›