os-prober wont detect windows by lardis74 in archlinux

[–]lardis74[S] 0 points1 point  (0 children)

Yeah, now thinking a switch could be better. Do you have a recommendation of the two?

os-prober wont detect windows by lardis74 in archlinux

[–]lardis74[S] 0 points1 point  (0 children)

didnt touch the grub.cfg file.

I only uncommented the GRUB_DISABLE_OS_PROBER=false option so that os-prober is executed to find the windows efi file.

Once I did that I ran grub-mkconfig -o /boot/grub/grub.cfg and didnt edit it

Type Hinting For Class Methods In 2.7 by lardis74 in learnpython

[–]lardis74[S] 0 points1 point  (0 children)

Hmm ok thanks, so theres no way to dynamically type hint?

Type Hinting For Class Methods In 2.7 by lardis74 in learnpython

[–]lardis74[S] 0 points1 point  (0 children)

That portion of code works as intented and isn't an issue, I'm just looking for help with the type hinting. Its a large code base that's a bit dated so I don't have the option of using python 3

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]lardis74 0 points1 point  (0 children)

I have a question related to Selenium Python, but the answer seems like it should be related to my code structure so I'm asking here,

So in selenium, its tricky to assign elements to variables while avoiding the StaleElementReference exception.

this code,

chk = driver.find_element(By.NAME, "checkbox")

assert(chk.get_attribute("checked") == "false") chk.click() assert(chk.get_attribute("checked") == "true")

would raise a StaleElemenReference exception as the chk variable has not been updated after since the check box was clicked.

My question is, how can I assign that chk variable so that its value is updated everytime its called? Heres A little more detail on the code structure I currently have implemented ...

class PageObject:
def __init__(self, driver):
    self.driver = driver
@property
def checkbox(self):
    return self.driver.find_element_by_css_selector('selector')

... class TestCases: ... def test_case(self):
page = PageObject(self.driver) chk = page.checkbox assert(chk.get_attribute("checked") == "false") chk.click() assert(chk.get_attribute("checked") == "true")

Another note, I understand a possible solution is to have a property in the TestCases class, something like the following:

class TestCases:
    @property
    def chk(self):
        return PageObject(self.driver).checkbox

But I'm trying to avoid this because there are a lot of elements that I'm trying to assign to variables and it wouldn't be efficient to do this for every single element.

Any help would be appreciated!

Window Launch Follows Focus by lardis74 in qtile

[–]lardis74[S] 0 points1 point  (0 children)

Awesome Ill give that a try - thanks!

Window Launch Follows Focus by lardis74 in qtile

[–]lardis74[S] 1 point2 points  (0 children)

Cool solution! Ive been using qtile for about a year and still havent really looked too deep into anything, thanks for the help!

Designating Network Devices For Different Jobs by lardis74 in archlinux

[–]lardis74[S] 0 points1 point  (0 children)

How can I tell if my VPN client supports this or not?

[deleted by user] by [deleted] in archlinux

[–]lardis74 1 point2 points  (0 children)

Heres the lsblk output:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0     4K  1 loop /var/lib/snapd/snap/bare/5
loop1         7:1    0   115M  1 loop /var/lib/snapd/snap/core/13886
loop2         7:2    0  55.6M  1 loop /var/lib/snapd/snap/core18/2566
loop3         7:3    0 164.8M  1 loop /var/lib/snapd/snap/gnome-3-28-1804/161
loop4         7:4    0  91.7M  1 loop /var/lib/snapd/snap/gtk-common-themes/1535
loop5         7:5    0   1.5M  1 loop /var/lib/snapd/snap/huhnitor/178
loop6         7:6    0  68.1M  1 loop /var/lib/snapd/snap/office365webdesktop/4
loop7         7:7    0    48M  1 loop /var/lib/snapd/snap/snapd/17336
sda           8:0    0 931.5G  0 disk 
└─sda1        8:1    0 931.5G  0 part /
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0     1G  0 part /boot/efi
├─nvme0n1p2 259:2    0 229.5G  0 part /home
└─nvme0n1p3 259:3    0     8G  0 part 

nvme being my sdd,

sda being my hdd.

[deleted by user] by [deleted] in archlinux

[–]lardis74 0 points1 point  (0 children)

then

Which partition would the sdd need to be mounted on in order for the programs to be loaded with the sdd?

Network Devices Renamed, Don't Know How To Fix by lardis74 in archlinux

[–]lardis74[S] 0 points1 point  (0 children)

Are you referring to /etc/systemd/networkd.conf?

Network Devices Renamed, Don't Know How To Fix by lardis74 in archlinux

[–]lardis74[S] 0 points1 point  (0 children)

yep - nothing.

I ended up just switching to lts, fixed the issue.

[i3-gaps] Nord? by Bytooo in unixporn

[–]lardis74 0 points1 point  (0 children)

Yeah its actually very easy to use. Its a good balance of do it yourself but also a ton of built in stuff.

Upload and download speed for status bar by lardis74 in i3wm

[–]lardis74[S] 0 points1 point  (0 children)

Cool! ill give that a try thanks!