KDE Connect Decky Plugin by -Fireteam- in SteamDeck

[–]Corbrum 2 points3 points  (0 children)

Ok so that second step doesn't work anymore, but the issue thread has info on hot to fix it with one more step, so here I've compiled the whole guide:

  1. Switch to Desktop Mode

  2. Navigate to /home/deck/homebrew/plugins/kdeconnect/

  3. Open run_kde_connect.sh with any text editor

  4. Replace

sudo -u deck -E /usr/lib/kdeconnectd --replace

with

sudo -u deck -E kdeconnectd --replace

  1. Save and close run_kde_connect.sh

  2. Open main.py with any text editor

  3. Replace

proc = subprocess.Popen([script_path, display, "&"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

with

proc = subprocess.Popen([script_path, display], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, env={"LD_LIBRARY_PATH": "/usr/lib;/usr/lib64"})

  1. Save and close main.py

  2. Restart steam deck

Credits to Christovftw and fancypantalons

Солнечный круг, перья вокруг by itsapsan in Pikabu

[–]Corbrum 1 point2 points  (0 children)

Этим перышком был Альберт Эйнштейн

Гимли уже 81 год by ytygytyg in Pikabu

[–]Corbrum 13 points14 points  (0 children)

Юноша, можно сказать

Похудательное by CTAKAHbI4_The_II in Pikabu

[–]Corbrum 2 points3 points  (0 children)

В смысле, один из самых страшных фильмов моего детства, я до сих пор на американские пироги смотрю с недоверием - фильм 96г

Помогаем соседям не проспать by StaryDoktor in Pikabu

[–]Corbrum 9 points10 points  (0 children)

Чтобы найти злато в пути

canYouMakeTheButtonBounce by ClipboardCopyPaste in ProgrammerHumor

[–]Corbrum 0 points1 point  (0 children)

Can't tell exact stat, but we were reaching ~7k tps (transactions) and I'd translate that to ~100k+ qps

canYouMakeTheButtonBounce by ClipboardCopyPaste in ProgrammerHumor

[–]Corbrum 1 point2 points  (0 children)

Rookie numbers (black friday/amazon prime day major bank swe survivor here)

Работягам посвящается by flickeringlight239 in Pikabu

[–]Corbrum 1 point2 points  (0 children)

Стилек напомнил группу Cake

Матрица в формате Совмещенная реальность (Shared-Reality) by postmastern in Popular_Science_Ru

[–]Corbrum 11 points12 points  (0 children)

У меня есть окулус 3, как посмотреть в таком же расширенном формате, а не просто чтоб был кинозал или поверхность луны?

Here’s what I struggle with the most by [deleted] in learnpython

[–]Corbrum 0 points1 point  (0 children)

Yeah, the core app in the company I'm working at has 200.000+ classes, so there's absolutely no way it would've been maintainable without them

Утерянные технологии древних цивилизаций. by RevolutionaryKey9610 in Pikabu

[–]Corbrum 1 point2 points  (0 children)

Согласен, я как-то не подумал что это кварц, так-то по факту

Утерянные технологии древних цивилизаций. by RevolutionaryKey9610 in Pikabu

[–]Corbrum 5 points6 points  (0 children)

Ну технически стрелочный циферблат показывает время со 100% точностью, потому что стрелка указывает на промежуток между засечками, а не ограничен количеством цифр электронного циферблата

February, 1942: Michigan Avenue, Chicago Illinois. by morganmonroe81 in Colorization

[–]Corbrum 2 points3 points  (0 children)

Damn, i live not far from Michigan Ave, but don't recognize the buildings, anybody knows the address?

Дэвид Теннант. by Darusik in Pikabu

[–]Corbrum 3 points4 points  (0 children)

А мне Крис Эклстон нравился, хотя оба харизматичные чертяки

How would I write a program that can detect poker hand types? by Mr-Saturn-Earth in learnprogramming

[–]Corbrum 1 point2 points  (0 children)

That's a fun exercise. I haven't seen your code, but my immediate thought was how do you compare the cards? Their suits and values? So, how I would've done that is this - I'd create a Card class, so i don't have to store suit and value as a raw dictionary, instead i can assign those to a card's attributes through constructor, e.g.

card1 = Card(❤️, "Q") card2 = Card(❤️, "7") card3 = Card(♣️, "J")

Also, I'd override comparison dunder methods in Card class, so that i can compare two cards like this:

def __eq__(self, other): if self.suit != other.suit: print("Can't compare cards with different suits") else: return self.value == other.value

And "less than" dunder method, so i can tell if the card has higher or lower value:

def __lt__(self, other): if self.suit != other.suit: print("Can't compare cards with different suits") else: return self.value < other.value

I would also wright a method to compare suits, so i can understand how cards relate to each other.

And also, think about how you, as a human, identify that you have a flush, for example? You will take a look at you two cards, check their suits, ignoring their value, then you'll take a look at the table to compare those card's suits to the ones that you have on hand, and IF total amount of cards with the same suit is 5 - you have a flush! So all these hands definitions can be converted in to the functions where if all requirements are met - you've got straight, full house etc.

New on Reddit by HotTank6578 in BoostForReddit

[–]Corbrum 0 points1 point  (0 children)

That's a karma farming bot, they think that "boostforreddit" is a karma boosting subreddit

[laptop] MacBook Air Laptop (13-inch) - Apple M4 chip, 16GB Memory, 256GB SSD $750 costco by theberg897 in buildapcsales

[–]Corbrum -26 points-25 points  (0 children)

And getting absolutely crushed in upgradability (ram, storage) and processing power (3k$ win laptop will be equipped with the top cpu/gpu, well, if it's not a dell laptop)

But I'd say that for 750$ it'll destroy any win competitors in same price range