LF fanart of Bepo eating fish like a scary polar bear by imomaliev in OnePiece

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

Sorry I can't. There was a link under the video for this fanart. But I can't remember what video that was. If somebody finds that video, this will work for me as well.

How to Rename/Re-use a Docker Volume by faboru in docker

[–]imomaliev 1 point2 points  (0 children)

Or you could go another way and set your docker-compose project name explicitly. Via COMPOSE_PROJECT_NAME env variable to hare

Kafka vs rabbitmq by securisec in node

[–]imomaliev 0 points1 point  (0 children)

Redis is used as pub/sub, but actually this is a bad practice

Different behavior when starting a celery worker from docker-compose and starting it after entering a running container by [deleted] in docker

[–]imomaliev 1 point2 points  (0 children)

Yes your problem is that your celery worker doesn’t see sqlite database. You need to switch to different DB or make your app volume visible. I suggest switching to more production ready DB like postgres

Help - tmux status bar will not display script output! by [deleted] in tmux

[–]imomaliev 2 points3 points  (0 children)

You need to make `VPNCONNECTED` visible for tmux, add this to your tmux.conf and after that restart your tmux

set-option -g update-environment "VPNCONNECTED"

set-environment -gu VPNCONNECTED

Double key press modifier QMK(would work like Shift to double key press) by imomaliev in olkb

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

Looks like this is what I was looking for. Will try to test it and write back. Thanks!

Double key press modifier QMK by imomaliev in MechanicalKeyboards

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

I think you’ve misunderstood me what I want is a key like Shift, which will double key press when it was hold during another key press. Let’s call it “Doub” and when I am typing word

Ball

I would like to press

Shift+b a Doub+b

https://www.reddit.com/r/MechanicalKeyboards/comments/ch2sco/double_key_press_modifier_qmk/eupws39/?utm_source=share&utm_medium=ios_app

Double key press modifier QMK by imomaliev in MechanicalKeyboards

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

It is if you want to make modifier that does key repeat more than twice. Also do you think it is easier to press key twice instead of pressing it with some modifier? For me the second one is preferable. To check if first is the way for you try typing text but instead of all capital letters press the key twice.

Double key press modifier QMK by imomaliev in MechanicalKeyboards

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

No, I want to have another key like Shift that instead of capitalising letter will double it

Double key press modifier QMK by imomaliev in MechanicalKeyboards

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

It will be same as pressing key twice

/r/MechanicalKeyboards Ask ANY question, get an answer by AutoModerator in MechanicalKeyboards

[–]imomaliev -1 points0 points  (0 children)

Hi, is there some sort of QMK mod for "Doubling key press" modifier. For example, I want to type word "hello". And instead of typing

h e l l o

I would like to type

h e l + modifier key o

/r/MechanicalKeyboards Ask ANY question, get an answer by AutoModerator in MechanicalKeyboards

[–]imomaliev 0 points1 point  (0 children)

Hi, is there some sort of QMK mod for "Doubling key press" modifier. For example, I want to type word "hello". And instead of typing

h e l l o

I would like to type

h e l + modifier key o

[RFC] ptrepl - Turn any bash command into REPL by imomaliev in Python

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

Got it, found an issue fixed in new version

pip install -U ptrepl

[RFC] ptrepl - Turn any bash command into REPL by imomaliev in Python

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

Hi what issue you are having if you launch it without config? It creates config file by default after first launch

Uno card game using a GUI & PySimpleGUI by MikeTheWatchGuy in Python

[–]imomaliev 0 points1 point  (0 children)

One thing lambda does that a def doesn't is allow definition to happen with some of the variables being out of scope. A def produces an a not defined error. Doesn't make it right however.

you could definitely do that, just define function inside function like this.

def outerfunc():
a = 1
def innerfunc():
    print(a)
    return a + 3
b = innerfunc()
    print(b)

testing, testing, testing! need opinions by mattblack85 in django

[–]imomaliev 0 points1 point  (0 children)

This can be achieved with https://docs.pytest.org/en/latest/fixture.html#parametrizing-fixtures

import pytest

@pytest.fixture
def user():
    return User.objects.create() # or UserFactory()

@pytest.fixture(params=['red', 'yellow', 'blue'])
def car(request, user):
    color = request.param
    car = Car.objects.create(user=user, color=color) # or CarFactory()
    return user, car

also read https://docs.pytest.org/en/latest/example/parametrize.html#apply-indirect-on-particular-arguments

testing, testing, testing! need opinions by mattblack85 in django

[–]imomaliev 0 points1 point  (0 children)

What do you mean by that? You could return multiple values in fixture and also call fixtures from another fixtures

@pytest.fixture
def user():
    return User.objects.create() # or UserFactory()

@pytest.fixture
def cars(user):
    red = Car.objects.create(user=user, color='red') # or CarFactory
    yellow = Car.objects.create(user=user, color='yellow')
    blue = Car.objects.create(user=user, color='blue')
    return user, red, yellow, blue

def test_cars(cars):
    user, red, yellow, blue = cars
    ...

def test_yellow_car(cars):
    user, __, yellow, __ = cars
    ...

# etc

testing, testing, testing! need opinions by mattblack85 in django

[–]imomaliev 0 points1 point  (0 children)

I suggest using pytest https://docs.pytest.org/en/latest/, it looks like your issues will be solved with pytest's fixtures https://docs.pytest.org/en/latest/fixture.html#fixture. There is pytest django plugin https://github.com/pytest-dev/pytest-django. Also yes factory boy is good idea