[-] axzxc1236@lemm.ee 4 points 3 days ago

If I can suddenly in coma for a year, wake up and pay my bills, it's enough.

[-] axzxc1236@lemm.ee 6 points 4 days ago* (last edited 4 days ago)

Humans are doomed, destroy themselves one way or another.

[-] axzxc1236@lemm.ee 16 points 1 week ago

If the firewall just means no incoming connections, your computer can still reach out to the other side (if they open their port)

[-] axzxc1236@lemm.ee 11 points 2 weeks ago

I would 100% exploit this (insurance for family).

[-] axzxc1236@lemm.ee 18 points 3 weeks ago

HTML Form + any backend of your choice (that can handle HTML form)

[-] axzxc1236@lemm.ee 19 points 1 month ago

Syncthing and KeepassXC for syncing 2FA between devices. (I use Bitwarden for passwords)

[-] axzxc1236@lemm.ee 22 points 1 month ago

sudo chattr +i (folder) prevents anything to modify/delete folders and files

Add -R for setting the flag for all subdirectory/files

[-] axzxc1236@lemm.ee 12 points 8 months ago* (last edited 8 months ago)

Tailscale server can also be self-hosted, look into headscale.

~~From my own experience, I still can't setup headscale on my Android phone, I think latest tailscale APP fucked up setting custom server function.~~ Don't install from Google Play

7
submitted 8 months ago* (last edited 8 months ago) by axzxc1236@lemm.ee to c/python@programming.dev

I can't give you the code because this is work related, and I couldn't make a minimal code that mimics the behavior.

My of my programs at work is a log parser, it reads syslog and use compiled regex pattern to match syslog, the whole program looks like this

If match := pattern.match(line):
  Do this
elif match := pattern2.match(line):
  Do that
…

During almost two years of me developing the programs, there are more patterns and more things to do and it gets slower.

But I recently figure out that if I commented out Do that and replace it with pass, my program speeds up, even if pattern2 never matches in my test case.

More strange thing is that in my attempts to use cProfile to profile things, my program runs 2.5x to 3x faster by just doing

from cProfile import Profile
with Profile() as profile:
  main()

I don't even call anything with profile variable and it speeds up my program, why is that?

40
submitted 9 months ago* (last edited 9 months ago) by axzxc1236@lemm.ee to c/linux@lemmy.ml

Background story: I recently bought a computer with AMD 7000 series CPU and GPU.

amdgpu_top reports 15 ~ 20 watts in normal desktop usage, but as soon as I have video playing in VLC, it goes to 45 watts constantly which is undesirable behavior especially in summer. (I hope that is just reporting issue... but my computer is hot)

When I do DRI_PRIME=1 vlc and then play videos, amdgpu_top doesn't report the power surge. (I have iGPU enabled)

Is there anything more convenient then modifying individual .desktop files? KDE malfunctions when I put export DRI_PRIME=1 in .xprofile so that's a no go.


Solved: removing mesa related hardware acceleration package makes VLC fall back to libplacebo which doesn't do these weird things.

[-] axzxc1236@lemm.ee 14 points 10 months ago

Isn't that the same as yay?

[-] axzxc1236@lemm.ee 19 points 10 months ago* (last edited 10 months ago)

This is a set seed speedrun, first attempt failed (caught by cobweb) so the streamer used mod to reset speedrun.

The stronghold is that close to spawn, I checked that myself with seed in description.

When ender dragon hit the player, the speed can be transfered to arrow if you time it correctly, so one shot ender dragon is possible. (expatiation video is linked in video description)

25
submitted 10 months ago by axzxc1236@lemm.ee to c/minecraft@lemmy.world

This speedrun video is insane I have to share it somewhere

16
submitted 10 months ago by axzxc1236@lemm.ee to c/android@lemmy.world

I currently have a server running in cloud that can send custom notification through self-hosted gotify server.

The down side is battery drain, it eats more than 15% of battery per day and it's unsustainable, I have to turn on battery optimization.

I know google offers GCM and FCM which instant messaging APPs uses, but I couldn't find a software that is as easily configurable and have a ready to use Android client (that preferably connects to GCM and FCM so no battery drain problem), any recommendation?

[-] axzxc1236@lemm.ee 21 points 10 months ago

distributed forum.

Some boards in one server, some boards in another server, glued by ~~miracle~~ someone's hardwork.

7
submitted 10 months ago* (last edited 10 months ago) by axzxc1236@lemm.ee to c/kde@lemmy.ml

My setup: OS is Endeavour OS and up to date, my GPU is RX 560 with 1xDVI + 1x HDMI + 1X DP output, two monitors of the same model (1xHDMI + 1xDP). (KDE Plasma 5.27.7, KDE Frameworks 5.108., Qt 5.15.10, Kernel 6.4.11-x64v2-xanmod1-1, Wayland)

Original setup: MonitorA on left of my Desk connected with DP, MonitorB on right of my Desk connected with HDMI, the problem is that games see left monitor as "Monitor 1" and opens on left monitor all the time, and I prefer them to use "Monitor 2" by default.

Setup 2: I switch DP and HDMI cable, but everytime a boot up my computer (I set auto login in SDDM) the monitor configuration becomes "MonitorB is on top of Monitor A", none of my attempts to change that persisted between reboots, I didn't test games because this heavily affects my workflow.

Setup 3: Also switched monitors positions physically (MonitorB on left of my Desk connected with HDMI, MonitorA on right of my Desk connected with DP), now the default monitor configurations is side-by-side again, but every boot I have to switch monitors' position in settings or I have to go right on MonitorA to get to monitorB.

I also noticed monitor settings go away when I logout of Wayland KDE session, is there a way to fix monitor configuration in SDDM?

[-] axzxc1236@lemm.ee 33 points 10 months ago* (last edited 10 months ago)

I will give a version of event that I have observed, simplified (a lot of things glossed over), and maybe inaccurate.

  1. LinusTechTips (one of their employees) criticized Hardware Unboxed and Gamers Nexus do banchmark videos in a lab tour video (on MurfsGaming channel), HUB fight back on Twitter(X), Linus (the owner of LMG) double down in their WAN show saying some creators are unprofessional, this leads to Gamers Nexus doing a long video point out how unprofessional LTT is (many errors in their videos).

  2. In Gamers Nexus's video, they shared a story that a company send their working prototype for LTT to review, but LTT doing the testing wrong (use the prototype with incompatible hardware), then sold the prototype for charity when they have been requested to send it back twice, screwing the startup company on top of giving inaccurate test results.

  3. Linus (the owner of LMG) fight back in forum post with no apology (basically spraying gasoline on fire) and made up fake event saying they have already agreed to compensate the startup company.

  4. Gamers Nexus says in their next video that they communicated with the startup company and LTT only contacted them two hours after previous Gamers Nexus's published, debunked Linus's claim that they already made a deal to compensate the startup company.

  5. An ex-employee publicly talking about the time she works at LMG, bait-and-switch working contract after she moving all the way where LMG is, sexism, sexual harassment, threats, unhealthy work environment.

view more: next ›

axzxc1236

joined 10 months ago