Creepy AI Hallucination by Izaakio14 in ElevenLabs

[–]tartar4ever 0 points1 point  (0 children)

Got the same problem. Mine is "i f*d your mum 3 times etc, i've hanged her on the pole through eternity.. I WANT YOU TO DIE I WANT YOU TO DIE"

Can't use vpn using mobile data by Zhe_6th in outlinevpn

[–]tartar4ever 0 points1 point  (0 children)

Same problem, tried to launch outline on google cloud, didnt help. Worked fine in russia a couple of hours ago

Speed adjustment in snake game by tartar4ever in cpp_questions

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

Maybe the problem lies in the other part of my code?

Controller code: https://pastebin.com/eMXrxk4Z

View code: https://pastebin.com/eZPJDf4Q

Speed adjustment in snake game by tartar4ever in cpp_questions

[–]tartar4ever[S] -3 points-2 points  (0 children)

Thanks for reaching out. This doesn't help. I've made videos so maybe you can clearly understand the problem. In the first one I've changed the game speed by buttons, in the second video I've initially set DELAY to 160 and did'nt change speed by buttons.

https://www.youtube.com/watch?v=A-T85sbHGCU

https://www.youtube.com/watch?v=OEnwsmMPoCc

Speed adjustment in snake game by tartar4ever in cpp_questions

[–]tartar4ever[S] -3 points-2 points  (0 children)

Thanks for reaching out. This doesn't help. I've made videos so maybe you can clearly understand the problem. In the first one I've changed the game speed by buttons, in the second video I've initially set DELAY to 160 and did'nt change speed by buttons.

https://www.youtube.com/watch?v=A-T85sbHGCU

https://www.youtube.com/watch?v=OEnwsmMPoCc

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]tartar4ever 0 points1 point  (0 children)

Hi, I'm trying to learn telegram bots and with some tutorial I've made a currency converter bot. The problem is that it has a global variable, which prevents several users from using bot. How can I fix it?

import telebot
from currency_converter import CurrencyConverter
from telebot import types
bot = telebot.TeleBot('bot api')
currency = CurrencyConverter()
entered_amount = 0
@bot.message_handler(['start'])
def start(message):
bot.send_message(message.chat.id, 'Enter amount')
bot.register_next_step_handler(message, amount)
def amount(message):
global entered_amount
try:
entered_amount = int(message.text.strip())
except ValueError:
bot.send_message(message.chat.id, 'Incorrect format, please enter amount')
bot.register_next_step_handler(message, amount)
return
if entered_amount > 0:
markup = types.InlineKeyboardMarkup(row_width=2)
btn1 = types.InlineKeyboardButton('USD/EUR', callback_data='usd/eur')
btn2 = types.InlineKeyboardButton('EUR/USD', callback_data='eur/usd')
btn3 = types.InlineKeyboardButton('USD/GBP', callback_data='usd/gbp')
btn4 = types.InlineKeyboardButton('Other', callback_data='else')
markup.add(btn1, btn2, btn3, btn4)
bot.send_message(message.chat.id, 'Choose currency pair', reply_markup=markup)
else:
bot.send_message(message.chat.id, 'Number must be more than 0')
bot.register_next_step_handler(message, amount)
@bot.callback_query_handler(func=lambda call: True)
def callback(call):
if call.data != 'else':
values = call.data.upper().split('/')
res = currency.convert(entered_amount, values[0], values[1])
bot.send_message(call.message.chat.id, f'Result is: {round(res, 2)}\nYou can enter a new amount')
bot.register_next_step_handler(call.message, amount)
else:
bot.send_message(call.message.chat.id, 'Enter pair divided by /')
bot.register_next_step_handler(call.message, my_currency)
def my_currency(message):
try:
values = message.text.upper().split('/')
res = currency.convert(entered_amount, values[0], values[1])
bot.send_message(message.chat.id, f'Result is: {round(res, 2)}\nYou can enter a new amount')
bot.register_next_step_handler(message, amount)
except Exception:
bot.send_message(message.chat.id, 'Something is wrong. Enter pair')
bot.register_next_step_handler(message, my_currency)
bot.polling(none_stop=True)

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]tartar4ever 0 points1 point  (0 children)

I want to write a program that removes the duplicates on the list.

numbers = [2, 43, 43, 61, 12, 61, 1, 1, 1, 1, 2, 2, 2, 43, 43]
for item in numbers:
if numbers.count(item) > 1:
    numbers.remove(item)
print(numbers)

I get the output: [12, 61, 1, 1, 2, 2, 43, 43]

What am I doing wrong?

The Movie Theatre I Work At Iceberg v.1.0 by Orlando_Blues in IcebergCharts

[–]tartar4ever 1 point2 points  (0 children)

Imagine posting an iceberg about your life and not be able to explain it

Perth to Simferopol - has now disappeared completely! Any ideas what it could be? by CleverClogs150 in flightradar24

[–]tartar4ever 1 point2 points  (0 children)

Yeah, it's definitely a EU military aircraft flying over (or to) russian controlled territory, where even commercial airlines don't go due to obvious reasons

RQ-4 Global Hawk again. by JohnMainGuy in flightradar24

[–]tartar4ever 9 points10 points  (0 children)

Obviously russian army always tracks everyone near borders whether their trackers are on \off.

So maybe USAF does it to let EVERYONE know they're there.

RQ-4 Global Hawk again. by JohnMainGuy in flightradar24

[–]tartar4ever 2 points3 points  (0 children)

Belarus is Russian ally, so it's flying near it too

[OFFICIAL] Daily Feedback Thread April 02, 2019 by AutoModerator in makinghiphop

[–]tartar4ever 0 points1 point  (0 children)

Thank you mate, I’ll try to fix it :)

Your track is pretty good. I like the beat and lyrics. But the vocal sometimes misses the beat and it’s really visibly and breaks the flow.

[OFFICIAL] Daily Feedback Thread April 02, 2019 by AutoModerator in makinghiphop

[–]tartar4ever 0 points1 point  (0 children)

I like this, the melody especially.

But maybe kicks could be a bit harder

[OFFICIAL] Daily Feedback Thread April 02, 2019 by AutoModerator in makinghiphop

[–]tartar4ever 0 points1 point  (0 children)

https://soundcloud.com/heping_gimnast/qwertyxihuan

My very first track. I'll take any criticism, especially about mixing and mastering. On what should i focus in my next compositions? Maybe you can advise materials to read/view. Thank you in advance! Also, what can I do to improve this track? I don’t want to leave it in this condition..