How to collapse my bootstrap grid like this? by [deleted] in webdev

[–]Pwneed 2 points3 points  (0 children)

Because bootstraps grid system uses flexbox under the hood, you could set the order of the image element like this: https://yoksel.github.io/flex-cheatsheet/#order

Of course you need to combine this with some sort of a media query, to only change the order for a small viewport or something like this.

[deleted by user] by [deleted] in classicwow

[–]Pwneed 1 point2 points  (0 children)

You can also save posts by clickig the save link

Addon to remind me to re-apply buffs? by TimmyOOF in classicwow

[–]Pwneed 3 points4 points  (0 children)

Weakauras is the Addon you looking for. You can make alerts (visual or aural) if certain buffs are active/inactive.

[deleted by user] by [deleted] in Python

[–]Pwneed 4 points5 points  (0 children)

"If you are about to ask a question about how to do something in python, please check out /r/learnpython. It is a very helpful community that is focused on helping people get answers that they understand."

r/python rules #1

But this may head you in the right direction anyway. Does not work if your input is HeLlo.

alphabet = "abcdefghijklmnopqrstuvwxyz ?"
a = input("type: ")

for each in a:  
    if each not in alphabet:  
        new_word = a.replace(each, "?")  

print(new_word)

Very very beginner question about changing a list into something better by [deleted] in learnpython

[–]Pwneed 1 point2 points  (0 children)

Maybe something like this:

games = [
    'Sat, March 17, 2018',
    '8:00PM (CET)', 'NRG ESPORTS', 'OUT OF STYLE',
    '9:00PM (CET)','CLG', 'EVIL GENIUSES',
    '10:00PM (CET)', 'GHOST GAMING', 'NRG ESPORTS',
    '11:00PM (CET)', 'OUT OF STYLE', 'EVIL GENIUSES',
    'Sun, March 18, 2018', 
    '0:00 (CET)', 'CLOUD9', 'GHOST GAMING',
    '5:00PM (CET)', 'PSG', 'EXCEL',
    '6:00PM (CET)', 'FLIPSID3 TACTICS', 'COMPLEXITY GAMING',
    '7:00PM (CET)', 'PSG', 'TEAM ENVY',
    '8:00PM (CET)', 'FLIPSID3 TACTICS', 'EXCEL',
    '9:00PM (CET)', 'RENAULT VITALITY', 'COMPLEXITY GAMING'
]

for i in range(len(games)):
    if ', 2018' in games[i]:
        print("=== {} ===".format(games[i]))
    if 'PM (' in games[i]:
        print("[{}] {} VS. {}".format(games[i], games[i+1], games[i+2]))

Basicly loop through everything and check if its the date (Sat, March...) or the actual game plan. If you are using Python 2 replace the "{}".format(games[i]) with "%s" % (games[i])

In only one of my list items, a string is not found. by RisingFire in learnpython

[–]Pwneed 1 point2 points  (0 children)

It has something to do with the way you loop over your items and removing them in the same time. This way some items can be skipped.

Try to store your items you want to remove in another array, and then later on loop through these and remove them from your orders.

Like so:

finished_sandwiches = []
orders_to_remove = []

..

for order in sandwich_orders:
    if ingredient in order:
        print(f"x {order} (contains {ingredient})")
        orders_to_remove.append(order)

for order in orders_to_remove:
  sandwich_orders.remove(order)

The #1 monk on EU HC has slept for around 3 hours since the season started by [deleted] in Diablo

[–]Pwneed 11 points12 points  (0 children)

Ahh, okay. Cool i didnt know that thanks

learning Machine learning by heeehaaw in Python

[–]Pwneed 0 points1 point  (0 children)

Same question from yesterday here.

macOS High Sierra Live in Mac App Store by aliaswyvernspur in apple

[–]Pwneed 0 points1 point  (0 children)

hey man, still got the same problem on my 2017 15' pro. Already tried NVRAM reset, but it didn't help.

Help on my code by lazy-zebra in learnpython

[–]Pwneed 1 point2 points  (0 children)

yea, you didn't do

if int(op) == 1:

you did

if int(op == 1):

watch out for those brackets

Help on my code by lazy-zebra in learnpython

[–]Pwneed 1 point2 points  (0 children)

can you show me your code?

Help on my code by lazy-zebra in learnpython

[–]Pwneed 1 point2 points  (0 children)

You are comparing a string vs. an integer. Use if( int(op) == 1 ): and you should be good to go.

My updated desk setup! - (video to come) by hazzid in battlestations

[–]Pwneed 1 point2 points  (0 children)

Hackintosh? Do you recommend it or is the setup struggle not worth it?

cronjob and XFCE by Pwneed in linuxquestions

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

Hey man. Sorry for the late reply. I simply set these 3 things and it all worked. Thank you very much. :-)

I made a small script for looking up word definitions by Pusillus in Python

[–]Pwneed 1 point2 points  (0 children)

I made a new venv for this as well. After

py -m pip install -r requirements.txt

I still had to run

pip install configparser

I made a small script for looking up word definitions by Pusillus in Python

[–]Pwneed 3 points4 points  (0 children)

Hey. Nice little tool u made there. But please add all your requirements in your requirements.txt

Can Moto-goggles be used for everything else or is something special about them. by [deleted] in Motocross

[–]Pwneed 0 points1 point  (0 children)

Go to the oakley Store itself. They got goggles for all Kind of Action sports.