Categories
Ask Politics

[ Politics ] Open Question : Would a world government be good idea if we made Trump leader and him unlimited power?

Categories
Development

Creating Multiple Independent Toggle buttons for card descriptions

I want to create a toggle button on every card that shows its own description. i know that i can bind different variables with buttons but that’s not a solution for me because i may have many cards and its uncertain. please help me with the problem. HTML <div class=”row”> <div class=”col-sm-5″> <div class=”card” *ngFor=”let […]

Categories
Development

Turtle Filling Colors – I’m trying to choose the color when I call the function, so that I can easily change it in the future

So I want to choose the color when I call the function. However, whenever I choose the color it says that the color is not defined. import turtle def square(color): turtle.color(color) turtle.begin_fill() turtle.forward(90) turtle.left(90) turtle.forward(90) turtle.left(90) turtle.forward(90) turtle.left(90) turtle.forward(90) turtle.end_fill() square(brown) >> NameError: name ‘brown’ is not defined

Categories
Development

how to find an earliest date in a string containing dates?

I have a string of dates in of ISO 8601 format. How can I find the earliest date using javascript? var str = ‘2019-12-31T23:45:00.000-03:00/2020-01-01T10:30:00.000+06:00,2020-01-01T07:15:00.000+07:00/2019-12-31T16:00:00.000-10:00’ Before slash is starting time, after slash is finish time, then is comma and it repeats with different dates. Is this even possible?

Categories
Development

Regexp to split on spaces which are not inside matching braces

In perl (5.30), I need to split strings on whitespace which is not inside matching braces. For example: “A {B C} D” -> A|{B C}|D “A{B C}D” -> A{B C}D “A{ B }C” -> A{ B }C “AB {C D} EF” -> AB|{C D}|EF Any ideas?

Categories
Development

Does each reactor run in it’s own thread?

Profiling my twisted app I am seeing that twisted/application/app.py:startReactor was called 496 times. Apart of this, I am seeing thread leaking: ~500 threads were created by the app, most of them are idle in FUTEX_WAIT_PRIVATE. During this profiling simple load test were run: ~1rps. Does it mean that somewhere in the code reactor.run() is leaking? […]

Categories
Development

How do I convert my Table into a Normalised structure?

For my Game App, I have a table of Data (one of many)in CSV format. It currently has 40+ columns, one for each Profession (fighter, rogue, wizard etc), and skill_name. Each row (40+) contains the skill name, and a String representing the Cost of that skill for each profession. A snippet from the original .csv […]

Categories
Ask Polls & Surveys

[ Polls & Surveys ] Open Question : Why wouldn’t he care if I cheated on him with other guys?

I asked my **** buddy, “Do you care if I did it to other guys?” He said, “I don’t care what you do as long as you suck me.” And another question: Since he doesn’t care if I had sex with our guys, is he most likely having sex with other girls?

Categories
Ask Injuries

[ Injuries ] Open Question : Is this is meniscus tear?

Categories
Ask Health Mental Health

[ Mental Health ] Open Question : What is bipolar affective disorder?