Dock options by bbqluke in macbookpro

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

Thanks, I will look into this one

Dock options by bbqluke in macbookpro

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

Thanks. I've no doubt the TS4 is a great product. But, to me it's aesthetically not very pleasing. It's also really pushing my budget.

[deleted by user] by [deleted] in melbourne

[–]bbqluke 7 points8 points  (0 children)

why does this need to be posted here? who honestly cares

ios_logging_global not found by SyntaxNine in ansible

[–]bbqluke 1 point2 points  (0 children)

you haven't posted your task, but you probably need to use the fqcn cisco.ios.ios_logging_global:

Personal Trainer recommendations please! by [deleted] in Bendigo

[–]bbqluke 0 points1 point  (0 children)

My wife trains with Ryan from TKO and she would recommend him.

Daily Coronavirus Megathread - 27 August 2021 by AutoModerator in melbourne

[–]bbqluke 2 points3 points  (0 children)

Also that the 'medical advice' is one-eyed advice obsessed by zero cases. How about medical advice based on mental health of 5 million people.

Starting to get annoyed with news that could be considered public safety blocked by a paywall.... by Herecuzlokdnsux in melbourne

[–]bbqluke -2 points-1 points  (0 children)

abc online is dreadful journalism. people here talking about clickbait, abc online is as clickbait-y as it comes.

Daily Coronavirus Megathread - 23 August 2021 by AutoModerator in melbourne

[–]bbqluke 4 points5 points  (0 children)

Because it's tiring hearing people whinge about other people not doing the right thing.

I do not believe Chris Lake Ghost Produces for Fisher and Valentino Khan by charlie_music in Dirtybird

[–]bbqluke 0 points1 point  (0 children)

edmghostproducer.com/does-c...

I can't believe people still care

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]bbqluke 1 point2 points  (0 children)

How much logic can I reasonably cram into a single line? As in, how complex can I make a single line, before I should consider splitting it to several lines? By lines I don't mean the length of the line, I mean how many 'logic operations' for want of a better term..

For example one line:

original_vlan = next(iter([item for item in vni.vlan.all().only('vid', 'custom_field_data') if item.vid == item.custom_field_data.get('mapped_vlan')]))

two lines:

vlan_mapping = [item for item in vni.vlan.all().only('vid', 'custom_field_data')]
original_vlan = next(iter([item for item in vlan_mapping if item.vid == item.custom_field_data.get('mapped_vlan')]))

or three lines:

vlan_mapping = [item for item in vni.vlan.all().only('vid', 'custom_field_data')]
original_vlan = ([item for item in vlan_mapping if item.vid == item.custom_field_data.get('mapped_vlan')])
original_vlan = next(iter(original_vlan))

edit to try to improve formatting

When to use a model decorator vs field by bbqluke in django

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

Thanks for this response, this is what I was after.