#voice-chat-text-0
1 messages ยท Page 755 of 1
NEAT
So red stone is a kind of programming?
I power Minecraft! Mwawhaha!
Minecraft survival. Today we give Sandy City a little bit of an update and then we start working on remaking a puzzle game called Mastermind in Minecraft.
Twitter: http://www.twitter.com/EthoLP
TwitchTV: http://www.twitch.tv/ethotv/
World Download (500): https://www.minecraftworldmap.com/worlds/UOdbh#/
Reminder: People advertising, spamming, o...
E
nice crowd today
The trick is to do the right thing early enough for it to matter, but they played chicken with it, despite knowing they oughtn't, and it ran them over, leaving only more drastic measures that would, at that point, be effective.
command block syntax is like powershell
They weren't prepared and weren't willing to pay the cost of making up for that deficit.
and then it's out of control and everyone's all "Well, shit, what do we do, now?"
EU omegalul
I was tickled watching Pence watch GaGa sing.
I've seen a video Skype call routed through Minecraft.
I saw that too!
So gooooood
Today coming at you with the least efficient cake factory ever made.
Create is a Minecraft mod for Forge 1.14.4, with 1.15 to follow. It adds a variety of very useful building tools, as well as technology based on kinetics and rotational power. It is a free-time open-source project by a bunch of Minecraft players who love the creative aspect of ...
fkin global warming
Evenin'
which one?
My site, and I'm not even half-done with the API
sexy
:(
๐all๐the๐cs๐courses๐at๐my๐school๐are๐terrible๐
Good save
lol
maybe i should have spaces ๐ค
@rugged root Hey mr hemlock, have you ever worked with heroku CI?
Also, I'm not sure whether I should expose stars and commits for the payload for POSTing repositories to be displayed to my site, considering that I'm automatically fetching them anyways
Basically heroku isn't able to access my postgres db which is hosted on heroku so it fails my test cases
@flint umbra
yeah currently getting this error
/app/.heroku/python/lib/python3.6/site-packages/django/db/backends/postgresql/base.py:270: RuntimeWarning: Normally Django will use a connection to the 'postgres' database to avoid running initialization queries against the production database when it's not needed (for example, when running tests). Django was unable to create a connection to the 'postgres' database and will use the first PostgreSQL database instead.
RuntimeWarning
Got an error creating the test database: permission denied to create database
-----> test command python manage.py test failed with exit status 2
Yeah already posted the question there as well
I guess I could make them default to zero client-side, but doing it server-side is a choice too
It's alright
Dockter Cockter
Very mature I was laughing tho
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@candid venture Herro
oh wait
the role is gone...
You were banned
:C
You have to go through the 3 days again
rip
:C
oh rip
@candid venture F (dms)
dev role is gone for everone
none of us have one
2?
Ish
what?!
I don't remember
yeah
oof
I'm old
it was gone for ages
btw hemlock i got an NVME
New Virtual Monkey Enterprise?
hemlock...
nefariously volumetric mentorship endeavor
No silly
yes
looks like overkill tbh
find out the resources your bot actually uses ยฏ_(ใ)_/ยฏ
look at the speed thooo
.
How lmao I am running it off my personal machine
Presidents Gas, Fluid, Solid and Plasma.
profiling stuff
task manager or something
Oh fr your smart
see this is why I come here
because of people like you thank you so much!
time for lang ๐
very nice
Mr Hemlock - Knower of how parts work.
das shooken
I mean tbf, when he fries his board and has to buy a brand new one that'll probably be the last time he plays these tricks
he won't kill himself
Buy the Beer Boot at Vat19: https://www.vat19.com/item/giant-glass-beer-boot?adid=youtube
Please subscribe to our channel: โชhttp://www.youtube.com/user/vat19comโฌ
Hundreds more curiously awesome products at:
http://www.vat19.com/?adid=youtube
Das Booooot! There's just something exhilarating about knocking back a few cold on...
(probably)
Guys I got a job offer
am I the only one, or does your right arm sometimes feel like it's tingling and painful after a day working at the computer?
sort of like pins and needles
Idk if I can do the work tho
is the salary on par with the market?
Fore!
eyy don't worry you'll pick up stuff on the job. just go for it, you've got nothing to lose bro
It is good Idk it is optimizing tensorflow
Which is hard
The interview question is hard
was there just one question?
Yes
lol what
today learned about powers of git rebase HEAD -some_integer with git push --force
just awesome
aaa ok
Awesome talent of spinning expensive square objects on one finger.
@rugged root
at least he did it above a carpet
this one does it above a concrete floor
Be careful while spinning yours :P
look at this
I can spin pillows.
โ๏ธ kinda make you want to get that enter
you got some hard pillows, that's all I can say
maybe stiff not hard
Nope, bikeshedding ducky
Mm.
Sea Shanties
no
individual device for a kid
come on now, I just need it so I can monitor his location
a phone?
if I were the kid I'd wrap the device in several layers of aluminium foil
my friend got the vaccine, but hasn't received any discounts on MS products
Keep in mind, you'll want something properly secure
Otherwise you're giving other people tools to track your kid as well
We've probably got about 50 little jars of different spices and blends.
and still no sambal
Peppers, yes. No Sambal.
this is the sambal at our local supermarket
@valid stag we dont provide help in direct messages, if you have a question ask it here or using #โ๏ฝhow-to-get-help
ok sry
voice chat ppl, dont wanna interupt your conversation, and no one knew the answer in the questions channel.
anyone has any idea on how to make this faster?
def check_monomer_distance(coor_list, new_coor, EdgeDiameter):
a = np.array(new_coor)
for coor in coor_list:
b = np.array(coor)
if abs(np.linalg.norm(a - b)) < EdgeDiameter:
return True```
i like tea
i usually cook it until it's dry and add some sugar
@hoary dirge You might shave a few ms off the for loop by converting things into a map/function arrangement, or multiprocessing it.
@hoary dirge Or numba
is there a way to shove few seconds off? ๐
generally, if you're using numpy, you can rewrite it without a loop. consider if boolean indexing could help, or as opal said, map
How many elements are in the coor_list?
numpy cant really optimise for loops, but it can do a lot with non-looping constructs
around a 1000 I think?
Oh.
could you guide me through it? I have no idea how to do that ๐ btw I can open another questions channel, or voice chat help channel
Hey if anyone can hop in code help that would be great
if you farted, then "he who smelt it, dealt it" doesn't apply to you
im not very good with numpy, and i have no idea what linalg does specifically..
hello guys
it checks the euclidean distance between two points
I can back down from the numpy arrays, and use some other function. you think it would help?
It's c either way.
math.dist might work, Im just comparing the location of one thing to another
Right? So... I mean, it might be lighter than linalg.
let me try it out, thanks ๐
what projects is everyone working on?
Nothing in particular.
just practicign random stuff to be honest uno
its amazing. too amazing, that im wondering if its doing the same thing. it took only 15 seconds. with numpy it takes around 4min
def check_monomer_distance(coor_list, new_coor, EdgeDiameter):
for coor in coor_list:
if math.dist(new_coor,coor) < EdgeDiameter:
return True
------------------------------------------------------------------------------------------------
a = np.array(new_coor)
for coor in coor_list:
b = np.array(coor)
if abs(np.linalg.norm(a - b)) < EdgeDiameter:
return True```
is it the same? ๐
time to write some tests for it
@hoary dirge Does it give the same result? Norm might be fine for its thing... But if all you need is the magnitude between the points...
ill do some tests. it doesn't give results, it just removes a point if its too close and makes another one ๐
Numpy is great. It's zoomy as hell...used correctly.
Ill check it now, still cant believe it made such a difference ๐
looking good! this is amazing, thank you so much @somber heath
Manjaro and Arch users have a security keyring on their machine that allows them to safely download packages from the Manjaro and Arch repositories without those packages getting tampered with by a man-in-the-middle-attack. Sometimes if a user doesn't update their system for a long time, this keyring might expire. The keyring can also get corru...
I wonder what that reflection texture is...
IntroductionThis tutorial explains how to deal with scheduled jobs in django websites. Scheduled jobs are jobs that are to be run automatically without any human intervention at set intervals or set time. A popular use case of scheduled jobs could be for cacheing data, that more or less remains unchaged for a period of time.
@tough panther Why do you keep reconnecting?
@tough panther If you're wondering why you can't talk, check out the #voice-verification channel
....He says seeing that you have the role
I derp
the joining always fails at the connection stage
oh
network issues
either restart discord or just wait for like 5 minutes or so and you should eventually be able to get connected.
jep, i presume, that there are two many NATs involved for the required upd nat hole punching
is it on the RTP connection that is messing up?
yes
restart discord completely...
glad to know @rugged root
sometimes the discord client can get wonky
ok, it's just weird, that i can join any other channels
what happens if you try to connect and then just wait for ever... does it kick you? if not just wait and it might/should let you in eventually.
just killed discord, didn't help
im currently a first year student , doing mechanical engineering.... so i wonder if python or any other language would help me in my stream?
yes
how so,?
first of all, problemsolving
we are trying something server side... try connecting again
ok
i use arch btw
hey๐๏ธ
say you have to solve a code problem, do u need a specific language or you can solve it with any code you want?
Usually any language you want
thank you
hellooooooo
pacman -Syu
@commands.Cog.listener()
async def on_ready(self):
while True:
await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
await asyncio.sleep(15)
await self.bot.change_presence(status=discord.Status.online, activity=discord.Streaming('twitch.tv/mitchul'))
await asyncio.sleep(15)
#Template
@tasks.loop(minutes=30.0)
async def task_name_here():
pass
the json file```py
["foo","bar"]
```py
with open('words.json') as f:
data = json.load(f)
print(data)
``` it prints nothing
@tasks.loop(seconds=15)
async def statusChanger(self):
await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
@sly osprey
!user

Created: 5 years, 4 months and 12 days ago
Profile: @rugged root
ID: 98195144192331776
Joined: 2 years, 9 months and 7 days ago
Roles: <@&542431903886606399>, <@&463658397560995840>, <@&764802720779337729>, <@&295488872404484098>, <@&267630620367257601>, <@&797891034906099752>, <@&587606783669829632>, <@&267629731250176001>, <@&807415650778742785>, <@&267628507062992896>
Total: 12
Active: 1
Btw I got it, I was being stupid and put that in a function without calling the function LOL
@sly osprey hello, it is here
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
What's the lovefest role?
รงa existe mm pas
@fiery juniper So it's for the the February events. Valentine's Day stuff. There's one of the commands that will let you make a "love letter". If you don't specify who you want to send it to, it'll randomly grab someone who has the role
Guys, English
!rule 4
4. This is an English-speaking server, so please speak English to the best of your ability.
Again, English only, please
Oh sorry !
okay sorry
It's fine, just makes it hard to moderate
What's the command?
So yeah wassup itโs for whatโs up
Donโt worry i understand hahaha
Joumie 50 comments goal?
your englesh is good i am impressioned
@rugged root don't I look good? xD
Omg thanks girl ๐ฅบ
hold up-
@fiery juniper I don't remember off the top of my head. #sir-lancebot-playground should have them used recently
englesh or english
ok thx :)
Thanks America because in france, English teachers are really bad ๐ญ
English**
Joumie
@sick dew Do not impersonate staff
That's one of the things we draw the line at
Thanks
my english is naturally bad mdrr
@rugged root hmm, I can't seem to find your message
(sorry for ping, really want to have the role ๐ )
Sorry?
Mister Hemlock
how do you manage to have such good english?
I searched any messages from you in the #sir-lancebot-playground , and I can't seem to find one with a command
Am I confusing something?
Senor Hemlock
thx :)
Is there a foreign language fair?
xD
so I have my task right here but the bots status isnt even changing to the first one
# -*- coding: utf-8 -*-
import time
from discord.ext import commands
from discord.ext import tasks
import discord
import asyncio
class Activity(commands.Cog):
"""Changes the bots activity"""
def __init__(self, bot):
self.bot = bot
@tasks.loop(seconds=15)
async def statusChanger(self):
await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
def setup(bot):
bot.add_cog(Activity(bot))
ohhh not bad the trick but I have already tried and I have not too hooked
@rugged root I made some fan art xD
๐
@rugged root part 2
# -*- coding: utf-8 -*-
import time
from discord.ext import commands
from discord.ext import tasks
import discord
import asyncio
class Activity(commands.Cog):
"""Changes the bots activity"""
def __init__(self, bot):
self.bot = bot
@tasks.loop(seconds=15)
async def on.ready():
async def statusChanger(self):
await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
def setup(bot):
bot.add_cog(Activity(bot))
import time
from discord.ext import commands, tasks
import discord
import asyncio
class Activity(commands.Cog):
"""Changes the bots activity"""
def __init__(self, bot):
self.bot = bot
@tasks.loop(seconds=15)
async def statusChanger(self):
await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
@commands.Cog.listener()
async def on_ready():
self.statusChanger.start()
def setup(bot):
bot.add_cog(Activity(bot))
@dense ibex try that ^
@shy summit do you have friends who talk English ?
hahaha no i don't have friends
@tasks.loop(seconds=30)
async def statusChanger(self):
await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
asyncio.sleep(15)
await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('...'))
import discord
import time
import os
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
bot = commands.Bot(command_prefix='!')
@bot.event
async def on_ready():
print('Bot is ready.')
initial_extensions = [
"cogs.moderation",
"cogs.activity",
]
# Load the cogs
for extension in initial_extensions:
bot.load_extension(extension)
bot.run(os.environ['TOKEN'])
sup all
import discord
import os
from discord.ext import commands
from dotenv import load_dotenv
load_dotenv()
bot = commands.Bot(command_prefix='!')
@bot.event
async def on_ready():
print('Bot is ready.')
initial_extensions = [
"cogs.moderation",
"cogs.activity",
]
# Load the cogs
for extension in initial_extensions:
bot.load_extension(extension)
bot.run(os.environ['TOKEN'])
import time
from discord.ext import commands, tasks
import discord
import asyncio
class Activity(commands.Cog):
"""Changes the bots activity"""
def __init__(self, bot):
self.bot = bot
@tasks.loop(seconds=30)
async def statusChanger(self):
await self.bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
asyncio.sleep(15)
await self.bot.change_presence(status=discord.Status.idle, activity=discord.Game('...'))
@commands.Cog.listener()
async def on_ready():
self.statusChanger.start()
def setup(bot):
bot.add_cog(Activity(bot))
i dunno why but i feel like if i screen share ... someone would hack into mysystem
import asyncio
async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')
# Python 3.7+
asyncio.run(main())
from discord.ext.commands import has_permissions, CommandNotFound, BadArgument, MissingRequiredArgument, MissingPermissions
I think I like the unlocked version better for some reason
Does anyone have a recommendation for python debuggers
I need to find one to help find where I am having an error in a program I am writting
I found pycharm, does anyone have a recommendation other it for debugging?
revolutionary_idea = "facebook", "youtbe", "twitter"
print(revolutionary_idea)
You-twit-face
i like sublime cauz its like 15 MB and does the work
damn this is a nice podcast
alright prime
thx
i have sublime, anaconda, now pycharm
any of the jetbrains product is more for if you are building things for web ... APIs stuff etc
i wouldn't limit it to that at all
out of curiosity does atom actually run the code or is it purely a text editor?
purely an editor
i think there are packages like hydrogen that run code but i prefer to just use it as a text editor
oh sweet! thanks!
the code that I am writing now is running, mainly in sublime text. I know what lines i've added are causing the crash my program. I will initiate the .py file but i get no errors within sublime. The game hangs in execution though : /
hey
also its best practice to change some settings in sublime like
"translate_tabs_to_spaces": true
@tiny seal File -> Settings -> Tools -> Terminal. I think all you have to do is navigate to the powershell.exe file
Har de har
wassup
will this ever reach break?
yes, returning will stop in its tracks and return to the calling code
i want it to break and return true
why?
its in a while true loop
the return acts as a break
watch this
!e
def my_func():
for i in range(20):
if i == 15:
return i
print("Outside the loop")
result = my_func()
print(result)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
15
see, it stops
#bot-commands
!or-gotcha
When checking if something is equal to one thing or another, you might think that this is possible:
if favorite_fruit == 'grapefruit' or 'lemon':
print("That's a weird favorite fruit to have.")
While this makes sense in English, it may not behave the way you would expect. In Python, you should have complete instructions on both sides of the logical operator.
So, if you want to check if something is equal to one thing or another, there are two common ways:
# Like this...
if favorite_fruit == 'grapefruit' or favorite_fruit == 'lemon':
print("That's a weird favorite fruit to have.")
# ...or like this.
if favorite_fruit in ('grapefruit', 'lemon'):
print("That's a weird favorite fruit to have.")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")
print("Hemlock's lokin at me")```
lurkin @ me
The Curse of Hemlock: If I change voice channels, everyone will follow
52 reviews LOL
I choose to believe that this vertical stand will make your PS5 actually hover
A researcher managed to hack systems of over 35 major tech companies including Microsoft, Apple, PayPal, Shopify, Netflix, Tesla, Yelp, Tesla, and Uber in a novel software supply chain attack. For his ethical hacking research efforts, the researcher has been awarded over $130,000 in bug bounties.
Nifty way of breaking in
hello!
hello
i just learned how to use python dictionaries and they are under-rated!!
nice
with open('words.json','r+') as f:
words = json.load(f)
words.append("foo")
import discord
import os
import asyncio
from discord.ext import commands, tasks
from dotenv import load_dotenv
load_dotenv()
# Bots prefix
bot = commands.Bot(command_prefix='!')
# Loads cogs as well as starts StatusChanger
@bot.event
async def on_ready():
activity.start()
print('Bot is ready.')
initial_extensions = [
'cogs.moderation',
]
for extension in initial_extensions:
bot.load_extension(extension)
@bot.event
async def on_ready():
embed = discord.Embed(title="**Bot Services**", description="Bot services are online :white_check_mark: ")
embed.add_field(name="Build", value="1.0.0", inline=True)
await ctx.send(embed=embed)
# Changes the presence/activity of the bot
@tasks.loop(seconds=10)
async def activity():
await bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
await asyncio.sleep(5)
await bot.change_presence(status=discord.Status.online, activity=discord.Game('twitch.tv/slushslive'))
bot.run(os.environ['TOKEN'])
import discord
import os
import asyncio
from discord.ext import commands, tasks
from dotenv import load_dotenv
load_dotenv()
# Bots prefix
bot = commands.Bot(command_prefix='!')
# Loads cogs as well as starts StatusChanger
@bot.event
async def on_ready():
print('Bot is ready.')
channel = bot.get_channel(PASTE_CHANNEL_ID_HERE)
embed = discord.Embed(title="**Bot Services**", description="Bot services are online :white_check_mark: ")
embed.add_field(name="Build", value="1.0.0", inline=True)
await channel.send(embed=embed)
activity.start()
initial_extensions = [
'cogs.moderation',
]
for extension in initial_extensions:
bot.load_extension(extension)
# Changes the presence/activity of the bot
@tasks.loop(seconds=10)
async def activity():
await bot.change_presence(status=discord.Status.online, activity=discord.Game('Commands: !help'))
await asyncio.sleep(5)
await bot.change_presence(status=discord.Status.online, activity=discord.Game('twitch.tv/slushslive'))
bot.run(os.environ['TOKEN'])
An example bot for the discord.py channel. Contribute to ChiliPy/ExampleBot development by creating an account on GitHub.
with
with open('words.json', 'r+') as f:
words = json.load(f)
words.append("foo2")
!d json.dump
json.dump(obj, fp, *, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, default=None, sort_keys=False, **kw)```
Serialize *obj* as a JSON formatted stream to *fp* (a `.write()`-supporting [file-like object](../glossary.html#term-file-like-object)) using this [conversion table](#py-to-json-table).
If *skipkeys* is true (default: `False`), then dict keys that are not of a basic type ([`str`](stdtypes.html#str "str"), [`int`](functions.html#int "int"), [`float`](functions.html#float "float"), [`bool`](functions.html#bool "bool"), `None`) will be skipped instead of raising a [`TypeError`](exceptions.html#TypeError "TypeError").
The [`json`](#module-json "json: Encode and decode the JSON format.") module always produces [`str`](stdtypes.html#str "str") objects, not [`bytes`](stdtypes.html#bytes "bytes") objects. Therefore, `fp.write()` must support [`str`](stdtypes.html#str "str") input.
If *ensure\_ascii* is true (the default), the output is guaranteed to have all incoming non-ASCII characters escaped. If *ensure\_ascii* is false, these characters will be output as-is.... [read more](https://docs.python.org/3/library/json.html#json.dump)
with open('words.json', 'r+') as f:
words = json.load(f)
words.append("foo2")
with open('words.json', 'w') as f:
json.dump(words, f)
I can't believe how much fun my previous to the last Wikimedia IAR sockpuppets went https://j.mp/pymaps
These days plotly has the better chloropleths
py -m discord newcog name ./cogs
@commands.command(aliases=["addword", "nswear"])
@commands.has_permissions(administrator=True)
async def swappend(self, ctx, *, content):
content = content.strip('||')
with open('words.json', 'r+') as f:
words = json.load(f)
words.append(content)
with open('words.json', 'w') as f:
json.dump(words, f)
class MyHelpCommand(commands.MinimalHelpCommand):
def get_command_signature(self, command):
return '{0.clean_prefix}{1.qualified_name} {1.signature}'.format(self, command)
class MyCog(commands.Cog):
def __init__(self, bot):
self._original_help_command = bot.help_command
bot.help_command = MyHelpCommand()
bot.help_command.cog = self
def cog_unload(self):
self.bot.help_command = self._original_help_command
```or, you can set the help_command kwarg to None when instantiating you commands.Bot instance, and write your own.
Docs: https://discordpy.readthedocs.io/en/latest/ext/commands/api.html#help-commands
Migrating docs: https://discordpy.readthedocs.io/en/latest/migrating.html#helpformatter-and-help-command-changes
Hey can you please help with https://www.reddit.com/r/Political_Revolution/comments/lf6j1i/please_join_me_in_submitting_legislation/
Lol
hell yeah, Space Force ahahahahahahaha
I'm just trying to find the right codicil to get my corpsicle in orbit around Titan
Explain xkcd is a wiki dedicated to explaining the webcomic xkcd. Go figure.
Good morning.
good morning
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
!or
hmm, sus
whats a syntaxerror
A SyntaxError is a type of Python exception.
Uncaught, an exception often, but not always, results in script termination and is usually considered to be an error.
What a syntax error means is that the Python interpreter has looked at your code and it's run into something that it doesn't know how to interpret properly. It's a grammatical error, a programmer error.
!e print(
@somber heath :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(
003 | ^
004 | SyntaxError: unexpected EOF while parsing
Hi
Hello there!
I'm a little new to flows.
It's just more confusing than writing the code.
100labs
what is it about?
oh ok
nicee
django backend?
or?
ah, heard alot about next.js
nestjs is a bit like django
but beyond my scope lol
the only frontend ik is boostrap
since it is the easiest ig
and a bit of bulma too
well what do u guys think about this? https://github.com/Shivansh-007/piston-cli
something am working on
well gtg, cya! next time
lol ok?
I would change a lot of things
or usr
I mean, python is easy enough to do that
It won't be pretty but it's easilyt doable
left(length) exactly what I was looking for.
It's too bad I can't talk. I just did a "Yesss" ^
Or he spoofs his location ^
Not even that. If the weather is cold, put on your hat.
Oh really? Even simpler than that? whoops. Done that wrong all life.
Wait, what did I miss?
Sorry, I was focusing
Sorry. realized I am a tattletale.
Opal, we don't need a preacher.
Choices have been made. Well informed choices.
Trying to be funny cheeky but
I feel like I fall flat.
I'm curious. Does SQL function with รฅรครถ natively or is there magic trickery in the background?
Yeah, we hear you
Like, if I send special characters, will it go through some kind of transformation?
Instead I'll try it out. silly me.
In a few hours, I think I can speak, or is it determined by full 24hrs?
Three days, fifty undeleted messages over three ten minute blocks.
Yeah, don't wanna spam. :/
unfortnuately, there's no timestamp down to time
only date
(when I joined*)
Oooh
Joined: 2 days, 23 hours and 52 minutes ago
hahahaha
Yeah. I undergo metamorphosis atm. So I was just hinking maybe
What?
What?
oh lol
Don't like spreading it but I thought that maybe there was a connected soul in the chat
Well, at least there's acceptance ๐
Well, either you get hate or you don't.
Happy about the don't tho
Yes, if expressed
this took way to long to figure out how to do ```py
def privatechannel():
def predicate(ctx):
return ctx.channel.overwrites_for(ctx.guild.default_role).view_channel == False and not ctx.channel.overwrites_for(ctx.guild.default_role).view_channel == None
# checks to make sure the command was used in a channel that the @everyone role cant see
return commands.check(predicate)
# processes the check
hello
Hello there.
My latest project - Gacha Table Manager is almost done.
The only thing I need to add, is the "loot drop request" feature.
equality operators used with Nones and bools 
And I also need some beta testers.
lol
until you find a better way, thats what ima use @bold mauve tho.
I think I vaguely remember seeing the discussion in #discord-bots but I don't know what you're trying to do @zealous wave
im trying to check if channel permissions for the everyone role is set to false, and not set at all.
what's wrong with
return not ctx.channel.overwrites_for(ctx.guild.default_role).view_channel and ctx.channel.overwrites_for(ctx.guild.default_role).view_channel is not None
Shit that's a good idea
lmfao
@rugged root How is it?
A
Writing callouts/generate json for api integration
I think y'all suggested that last night, but I got 3 hours of sleep the other night so my brain was fried, sorry
It is okay.
I still want somebody to test my program, it is right here https://paste.pythondiscord.com/uvufujetul.py.
I've worked so hard.
I am waiting for a beta tester.
Patience is a virtue.
There is nothing bad about it.
What does it do? @short gate
Gacha table manager
It is some sort of...database program.
You interact by typing in commands.
Gacha table manager.
If it detects an error in your command, it gives you suggestions.
The whole "command" system is somewhat based on that in Minecraft.
Here is some example commands:
add tb Uruha_Rushia:rsia:1:100
| | | '---- Item's rarity rate
| | '------ Item's amount
| '----------- Item's ID
'------------------------ Item's name
You guys forgot Vietnam.
Haha all good, I remember seeing a lot about casting it to bool or something then
I was just lurking there then
What's going on with it?
network interface
i cant figure out how to setup the wlan card on the laptop so i can download the full arch
I don't know about Arch. Manjaro handles all the hardware driver stuff for me
shit
@candid venture Look up how to use lspci to look up the hwid (Something that looks like [6AF3:67AB] ) of the wifi card. From there, search for linux firmwares for that device and what driver you need to use.
hey
"it's cpp, not c#"
"oh yeah it's c#"
It will usually involve copying a specific file and having it be a specific filename to a specific folder.
Adafruit Industries, Unique & fun DIY electronics and kits : - Tools Gift Certificates Arduino Cables Sensors LEDs Books Breakout Boards Power EL Wire/Tape/Panel Components & Parts LCDs & Displays Wearables Prototyping Raspberry Pi Wireless Young Engineers 3D printing NeoPixels Kits & Projects Robotics & CNC Accessories Cosplay/Costuming Hallow...
literally any stem > history
Does anyone work with fortnox?
what is fortnox ?
I recently reinstalled ubuntu and did upgrade to 16.04 and cannot use python:
$ python manage.py runserver
Could not find platform independent libraries <prefix>
Could not find platform depe...
hey, pip list doesn't show turtle in it,
but I can import it fine
it's not an installed package
ooh, std lib
it's why you don't see itertools, collections, etc
C:\Users\accelerator\AppData\Local\Programs\Python\Python39\Lib found it here
๐
what's the commands to update ubuntu?
sudo apt-get upgrades
sudo apt-get update right?
โ๏ธ it's the 2nd followed by 1st, checked
oh i also use pacman in arch, i just a full loop btw, i just got a new network card, until i have a working enviroment i will use the external, then i will use the internal
btw
@rugged root
Right
I fukin know that
insert rolling tongue here
just wait 2 days
and then you complain of simps in this server...
@rigid shell ye
LOL I dont
the source control
thought you did in the past but w/e
she likes it
there is a reason I dont openly share my face much, but I dont think I normally complain about them
I encountered one of those that was a spider, the other day.
That's the one.
nice.
mother fucker
i nearly shat my self on this one
Saves on Metamucil.
I knew that one lol
want to see a cobra ?
Maybe DM it.
Yes
Yes
I saw video that Cobra is the "kindest" snake of all the snake
python is the best snake
it hisses at you so you can run away, if you come close it will first attack you by smashing its face on to your shoe or pants or something,
after that only cobra attacks using its fangs
man vs wild and cobra, who would win?
Feather or....
Both.
oh, Bear Grill's would eat it while it's hissing at him
I cant get the image out of my head now
You're welcome
"At firsssst I wass afraid, I wass petrified...":musical_note:
"I wonder how, I wonder why"๐ต
"Whoops, I was programming too much. Now I'm itchy downstairs."
you're ugly
thats true, im not denying
pure white is better than literally any other scheme
I mean my entire computer theme is like black and red or purple, so I dont like white peripherals but thats just bc it wouldnt match any of my other stuff
it's still better
kappa
hemlock has large balls in his house
๐ unnecessary bool ๐
not anymore
so it's false that white is not a good color? :P
yeah
!e ```py
print(not "white is not a good color")
@zealous wave :white_check_mark: Your eval job has completed with return code 0.
False
fixed it again
That's my favorite atm
which is a better scheme then @zealous wave
james@DESKTOP-1CH3K62 MINGW64 ~
$ python
Python path configuration:
PYTHONHOME = 'C:/msys64/mingw64/bin'
PYTHONPATH = 'C:/msys64/home/james'
program name = 'C:\msys64\mingw64\bin\python.exe'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = 'C:/msys64/mingw64/bin/python.exe'
sys.base_prefix = 'C:/msys64/mingw64/bin'
sys.base_exec_prefix = 'C:/msys64/mingw64/bin'
sys.executable = 'C:/msys64/mingw64/bin/python.exe'
sys.prefix = 'C:/msys64/mingw64/bin'
sys.exec_prefix = 'C:/msys64/mingw64/bin'
sys.path = [
'C:/msys64/home/james',
'C:/msys64/mingw64/bin/lib/python38.zip',
'C:/msys64/mingw64/bin/lib/python3.8',
'C:/msys64/mingw64/bin/lib/python3.8',
'C:/msys64/mingw64/bin/lib/python3.8/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00001cf4 (most recent call first):
<no Python frame>
out of?
Meteors from the sky, oceans boiling, the dead rising from their graves...all because of Hemlock's mouse.
"It's comfortable."
I just want my polonium mouse!
how about thorium
does anybody know what this | safe is used for?
Pacemakers.
With appropriate lead shielding, of course
universe has something's called Higgs Field, acc to a theory
โ๏ธ which says "There's no mass or any matter, but only field interaction throughout the universe. Its like a bump in that field is what we call mass, and flat field region mean its empty and nothing's there"
I'm trying to find an image to better show it
all my advanced physics knowledge
comes from
Sorry, accidentally opened my mouth to pull in air.
youtube -> "Veritasium" ๐
what's AFK channel for? upthere
I'm off, cya
In particle physics, a massless particle is an elementary particle whose invariant mass is zero. The two known massless particles are both gauge bosons: the photon (carrier of electromagnetism) and the gluon (carrier of the strong force). However, gluons are never observed as free particles, since they are confined within hadrons. Neutrinos were...
@honest pier I'm srry public, I heard "proton" instead of "photon" and said all that sh**
for phtons
photons doesn't have rest mass
its said if something travels at the speed of light, its mass expand to infinity
so to preserve the mass from going to infinity
the particle should have 0 mass to begin with
https://youtu.be/UDZZkUojk6A
everyone watch this, only 54 sec ,shows what you're trying to think Hemlock
this doesn't disprove heisenberg uncertainty
@molten pewter maybe mass is not a fundamental property of an object, maybe there's something more to it we (normal no physics people) don't understand
have you watched this https://www.youtube.com/watch?v=msVuCEs8Ydo
Sign Up on Patreon to get access to the Space Time Discord!
https://www.patreon.com/pbsspacetime
Sign up for the mailing list to get episode notifications and hear special announcements!
https://mailchi.mp/1a6eb8f2717d/spacetime
Check out the Space Time Merch Store
https://pbsspacetime.com/
Help translate our videos! http://www.youtube.com/t...
@rugged root i need help again ....
@rugged root if v == c in denominator, m = inf
I'll see what I can do
its the partinioning
help 0?
installing grub do u know?
shit
welp thanks anyway
if that "hello" made it thru, i was actually testing my mic volume lol oops
lew - se -dan
@candid venture You ought to be able to run update-grub from within a live environment.
yeah close enough for sure haha
Traveling faster than light is one of humanityโs dreams. Sadly, modern physics doesnโt cooperate. However there are examples where it really is possible to travel faster than light. In this video, Fermilabโs Dr. Don Lincoln tells us of these ways in which the universe breaks the ultimate speed limit.
i cant run grub-install
when two particles are entangled, they simply have complementary quantum numubers
it's night time here in aus, just wanting to check out voice. this community has been pretty cool helping me get into python dev
for example, one may be polarized vertically, and one may be polarized horizontally
@candid venture Well, whatever you're supposed to do, then. I generally don't have to worry abput installing it.
there's something that actually travel faster than light
the speed of expansion of our universe if faster than light
i hate those, i sometimes get one a day in summer
sure, depending on your definition of travel
but whatever
the idea is that, the polarization of the two particles is indeterminate
I think its this video
https://youtu.be/XBr4GkRnY04
until something happens to one that requires a definite polarization
sry missed that
canberra
the bubble
i came from there
originally from malvern
yeah i've run into penny wong on the street before lol
there's not many but she didn't seem super weird or anything
true
it's inherent
tho some do just deliberately act like smug dickheads
i've also met alex hawke and he was a grade A douchebag
few people would, minor minister in LNP
almost
yeah that always throws americans for a loop
lolol
idk we managed to siphon off most of our tea party into one nation
though it is making a comeback in the LNP
one just more assholish
that's the messaging they go for
oh not NZ
but definitely very xenophobic
it's a solid rule of thumb: if you see "nation" in a political party name, run
she's our sarah palin
but somehow worse
๐ค ๐ค ๐ค
i'll link
one second
this is a really good headline to sum up pauline hanson tbh:
<div class="comment-body">
{% if comment.disabled %}
<p><i>This comment has been disabled by a moderator.</i></p>
{% endif %}
{% if moderate or not comment.disabled %}
{% if comment.body_html %}
{{ comment.body_html | safe }} <!-- RIGHT HERE -->
{% else %}
{{ comment.body }}
{% endif %}
</div>
so anyone knows what | safe is used for at "RIGHT HERE" comment?
lul
oh right people come here for coding help i'll stop talking about australian politics haha
it doesn't matter that much ยฏ_(ใ)_/ยฏ
is free codecamp good? i've been doing a bunch of their frontend stuff which i know nothing about, but ther'es so much content out there
this channel used to be called "Off-Topic General"
hard to know what's really gold or just stuff
specifically talking about the 300 hr certs
https://youtu.be/D4tZRZSGxcE @rugged root
Funny music video of pauline hanson inpersonation and the joke about 1 Nation
Back in a sec
rofl hearing it echo back thru someone's mic
It's the actual audio of the odious woman in question on which the parody is based.
rabbit ๐
yeah the aussie comedy skits
i was a little young for that
maybe 11 or so at the time
but now i feel old cos i'm 30 now
yeah
Found it
The | safe suffix when rendering the HTML body is there to tell Jinja2 not to escape
the HTML elements. Jinja2 escapes all template variables by default as a security
measure, but the Markdown-generated HTML was generated by the server, so it is
safe to render directly as HTML.
Called it
yeah
got rehabilitated by channel 7
they had her on morning TV every week for 3 yrs
then magically she won a seat again
australian tv comedy really went downhill after the chaser got arrested at APEC
[for impersonating osama bin laden]
A segment from "The Chaser's War on Everything" tv series that aired on Aussie tv channel ABC, 12th. Sept. 2007. The Chasers gang made a mockery of security at the APEC conference held in September in Sydney Australia, and left Aussie police red faced. One hundred and sixty million dollars was spent on security for the conference attended by man...
that's it. that was the peak of australian comedy
it never got better after that
2007
jesus
highest res on that video is 240p
why
bill maher even riffed on it that's how big it was
Bill Maher talks about the Chasers APEC stunt.
bill maher's a standard old white dude
yeah
he should retire
does anyone have any experience with freecodecamp's content btw
i asked earlier i'm just assuming people are at an advanced level and never needed it
i think so. Isnt it the six hour python video?
I really dont like freecodecamp
depends
Bill Maher brain got Trump fried
anything that says "learn x in y time" will not work
Like the rest of older white guys on late night TV
I found that I watched a lot of small tutorials on youtube and just tried things out and used what I learnt and applied it to my own projects
yeah it's true, i'm also so green though i kinda don't know a lot of what's possible
but definitely when i'm working on something nothing is a better learning experience htan searching for it and applying it
let me tell you, multi-index multi-column level dataframes blew my goddamn mind
yeah
"i am never using excel again for anything"
jk GUI is still nice for small processing
i actually found python tho cos i made this fuckoff insane bit of code to do a pivot table in excel that lagged out RAM in excel with VBA. and a friend of mine is just like "u could do that in three seconds with python"
and it turns out yes, yes i could
anyone worked with bootstrap?
is there a way to add light/dark mode for our webpage?
hmm, so I need to manually make a second theme for every element in my website, which would be toggled with light/dark toggle button
so I've heard of something called "React" which is also like bootstrap
can we use it with python?
is there a "flask_react" or something?
should have hopped to rust :P
maybe I should first focus on fast_api
its said to have performance on par with Node.js
don't even know what that means
does it refers to templates rendering or something?
gn! have a good one
!resources @lime frost
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Back in a moment, something's breaking at work
I don't have a friends english
lol?
lol
??
is actually "written", but whatever
but you are French, not English
I will be an English for you
welp, I used to be active here but now I can't speak... sad
can anyone explain to me what 3rd request method POST mean here?
okay okay but I go through google translate for almost all your sentences mdrr
you post to API, it returns location as response
locatino appears to be a way of accessing a resource
who's location?
the items I guess
@obtuse trail You'll hit the limit in no time. Just hang out, have conversations, use the help channels, etc.
it says "create a new resource (I understand), add it to the collection (what's collection)?"
Hahahahaha no problem
Whatever API is you are using, we have no clue
Collection is probably a table
its a table from a book, heading's right there in the picture
oh, so the collection exists at the server side
Then, it's probably the table of the book, which you add a resource to
no I thought there's something called "collection" in the url itself
it annoys me to speak english. pity that there is no lounge for other languages
now, "The server chosses....." line( so a POST request also returns back the url for that newly created thing in the LOCATION header in the response)?
is that what's it saying?
yes
porq tagean?
@amber raptor mind if I ask, how did you learn C#? also how long did it took for basics ?
need to restart disc brb
I donโt know it well, work uses it
What's the definition of knowing a language? Oh basics.
just enough, so that if you look at some code, you could understand syntax
like you might not know the modules but still know that those unknown things are modules ๐
using System;
namespace HelloCS
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello C#!");
}
}
}
like what does all this even mean?
hey, what's the python thingy equal for C#? for codeblocks?
csharp
import system
import module.main as main
class Program:
def main(self):
print('hello')
main.Program()```
C# requires EVERYTHING to be a class
so entry space by default is into Program -> Main def
Does anyone have a good paper I could read on quantization? Iโm looking to understand more pure math
Which bracket you are in
Shot in the dark
namespace is basically everything that is defined up to that point
import system
import module.main as main
namespace main{
class Program:
def main(self):
print('hello')
}
main.Program()
is this correct?
wait is this python?
don't want to learn C#, but kinda gonna have too
school requires
verbose
too verbose
Java#
once you see python and stuff like JS, you kinda start to develop a stereotype against C# and JAVA
verbose
C# is very Java and thus verbose
Microsoft is cutting down on it but they are not there
there are introducing Python like features where you can do main.cs with just Console.WriteLine("Hello") and it builds fake NameSpace/Class
are they, what are they shifting onto?
They are trying to cut down on some of verbose elements
ooh
more like Kotlin, remove boilerplate
because this does not look like cutting down
i miss understood, its cutting down syntax
@amber raptor oh, yeah, I read it recently, hang on I'll find it
ok, enough for me for today
ciao ๐
zen of python is eh in terms of advice though
camelCase
PascalCase
hello
what version of pycharm are you using?
2020.2.3 community
What do you need help on?
what's the issue?
Some javascript
๐ค
Can you be more specific?
yeah I was learning "behind-the-scenes" of how JavaScript works and came across something called "full-codegen" "crankshaft" and more. I cannot understand the terms, I searched them on google but I'm still consufed
@sick dew I think I figured it out
It doesn't want to work with the standard Python 3 hex
Yeah thatโs true ๐ฆ
So it only seems to work with strings of the hex numbers. Which is.... dumb
it there anyone who can help me with this?
Sorry, i'm not great in JS
uumm.. okay.. no problem ๐
anyone else? please?

I thought this was an old train car style thing.
