#voice-chat-text-0
1 messages ยท Page 943 of 1
dino
oh god
hey @rugged root
Didn't you install 3.10? Why are you trying to use 3.8?
You'll need to make a new interpreter with 3.10.
Also, now that other people are talking, we should get out of their way
If you still need help, please see #โ๏ฝhow-to-get-help for instructions on how to move to the help channels
how do i make a new interpreter with 3.10?
Bisk is having a bit of a conniption fit. Mind typing in #code-help-voice-text, guys?
That works too
check_call([executable, "pip", "install", "cx_Oracle", "-t ."])
from sys import executable
from os import makedirs, chdir
Need "-m", "pip"
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
```
try:
from cx_Oracle import makedsn, connect
except Exception as e:
if "No module named 'cx_Oracle'" == str(e):
from subprocess import check_call
from sys import executable
from os import makedirs, chdir
makedirs('temp')
chdir('temp')
check_call([executable, "pip", "install", "cx_Oracle", "-t ."])

i have a script that installs packages at import if it does not exist
not safe work work though
๐
Whatever happened to pip install -r requirements.txt?
[executable, "-m", "pip", ...]
Invoke-Expression (aka run the thing after it as if it was typed as a command) can be used to run a command in a powershell script
check_call([executable, "-m", "pip", "install", "cx_Oracle", "-t", "."]
check_call([executable, "-m", "pip", "install", "cx_Oracle", "-t ."]
`
-t, --target <dir> Install packages into <dir>. By default this will not replace existing files/folders in <dir>. Use --upgrade to replace existing packages in <dir> with new versions.
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
@rugged root - is there a tag for inline code snippets? (Single backticks)
There isn't
yes there is
oh right as in on the bot
Right
check_call([executable, "-m", "pip", "install", "-t .", "cx_Oracle"]
What about Contributors for adding that?
That would be much better to be remembered for than the UwU thing
i know you people are saying oracle but i keep hearing arco
Yucky vendor lock-in!
from importlib import util
import subprocess
import sys
class PipFinder:
@classmethod
def find_spec(cls, name, path, target=None):
print(f"Module {name!r} not installed. Attempting to pip install")
cmd = f"{sys.executable} -m pip install {name}"
try:
subprocess.run(cmd.split(), check=True)
except subprocess.CalledProcessError:
return None
return util.find_spec(name)
sys.meta_path.append(PipFinder)
try:
from cx_Oracle import makedsn, connect
except Exception as e:
if "No module named 'cx_Oracle'" == str(e):
from subprocess import check_call
from sys import executable
from os import makedirs, chdir
makedirs('temp')
chdir('temp')
check_call([executable, "-m", "pip", "install", "-t .", "cx_Oracle"])
@rugged root do you know if I can safely use isopropanol to clean the trackball mouse?
In a nutshell, DevOps Engineers are ops-focused engineers who solve development pipeline problems. Site Reliability Engineers are development-focused engineers who solve operational/scale/reliability problems
but this is bullshit to do all the things on the left, you do need to do things on the right
rabbit since you use powershell you got any powershell modules you can recommend? i've started going through psgallery looking for useful ones or just ones that make your experience nicer in the shell (z, Terminal-Icons, PSfzf, etc)
Az modules
its hard to find any recommendations
don't pretty up your shell, it won't be portable
@dire folio about the ethanol
it's called rectified spirit
https://en.wikipedia.org/wiki/Rectified_spirit
Rectified spirit, also known as neutral spirits, rectified alcohol, or ethyl alcohol of agricultural origin, is highly concentrated ethanol that has been purified by means of repeated distillation in a process called rectification. In some countries, denatured alcohol or denatured rectified spirit may commonly be available as "rectified spirit"....
everclear is an example
"Django? I can pray for you!"
thanks ๐
i'm doing it on my personal pc ๐
in Swedish it's called lรคkarsprit or finsprit
not sure about Norwegian
Azure has had AzureAD outages that have cripple everyone
personal pc? o-o Personal Personal computer lmao
this is illeagal in Norway, only hostpitals and doctors are alowed to get it
Powershell is designed to write scripts, you care about your IDE
yeah i know its just preference
i have everything more useful for productivity done through existing modules / scripts that i made and set alias for in my profile
but i still like making my shell look nice at home ๐คทโโ๏ธ
also z and PSfzf do more than just make it pretty they just make life a big easier for moving directories without knowing the entire path (z) and fuzzy finding PSfzf
!server
!source
!source server
Command: server
Returns an embed full of server information.
Source Code
bot/exts/info/information.py:171
@gentle flint i would recommmend you use either a predefined colorscheme or use something like axe dev tools (or just firefox cuz it has builtin accesibility tools) to make sure you have enough contrast and make it accessible ๐
to people with color blindness and other similar things
@cobalt fractal GOD DAMN IT CHRIS
eh?
I was literally about to do it
!server
So mad
ah lol yea, only #bot-commands and #dev-contrib show extended details
Right
You can delete remote branches from PyCharm
@whole bear I could hear you
@gentle flint u use debian right?
yes
can you show me your workspace
Reiniging
Ontvetting
Reinigingsmiddel voor elektronica
e
you italian @gentle flint ?
Dutch
i read ur description and thought you were italian
the description is Italian
Freshens while it fills
but I am not
ye so it seems
Never used Docker?
not actively
๐ on linux you install docker engine and compose separately
on windows you get everything in 1 package with a pretty gui to manage it all
its 1 of the few dev related things which is easier to get on windows
Both
what is docker for
But on the newer versions of Docker, compose is builtin
really? ๐ฎ
oh ๐ฎ i thought that was for windows only for some reason
I can take a copy of my program, and put it inside a box (container) and give that box (container) to Docker, and Docker will run it for me
If it breaks, and messes everything up, I can just throw away that box (container) and make a new one
You can also use it to have multiple copies of the same program at the same time
And you design everything you want inside the box (container), so you give the already setup box (container) to someone else, and it's almost guaranteed to just workโข
why is that useful
@dire folio
path is not so much a problem as long as py is used on windows (doesn't come with the microsoft store version)
it will look for your installed python executables on all common install locations i believe
Right, and I will 10000000% bitch about the fact that they don't push that you should use the py launcher on Windows
Like
That should be in the installer
Various reasons
Since Docker runs your program, other people only have to install Docker, they don't have to follow any installation instructions, because you're giving them a box (container), that already has everything set up
If you break something, you only break your box (container), not your entire computer
If you want to have a production version and a test version of your program, you can just make another box (container) and now you have two
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover
^ there's also other newer useful media queries that everyone should use
chrome://flags#enable-force-dark
who the fuck uses chrome
@dire folio
The only way I found to tell Chromium to prefer the dark color scheme is to use "--force-dark-mode" flag when launching it.
!tvban 900103657373196299 2d Constantly having little fart sound effects during conversations is disruptive and unappreciated. If you decide to return, make sure your behavior has been corrected or you will permanently lose voice privileges.
:incoming_envelope: :ok_hand: applied voice ban to @whole bear until <t:1639254893:f> (1 day and 23 hours).
@peak copper my eyesight is getting weaker and i can't C# anymore ๐ฆ
lol
joking btw
but ye see sharp makes me think C# everytime now
not funny
to me it is๐คทโโ๏ธ
and i do have weak eyesight but its been that way since i was like 14 and not even programming yet never got better or worse
damn bro that's crazy
https://www.youtube.com/watch?v=x1kyIUZgzqo ๐ vs code now added feature to highlight invisible unicode characters
Unicode highlighting is here to help #shorts
noice
!e
printโ("hello wold")
@woeful salmon :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | printโ("hello wold")
003 | ^
004 | SyntaxError: invalid non-printable character U+200B
!e
You are not allowed to use that command here. Please use the #bot-commands channel instead.
@woeful salmon you're from India?
Petition to call it "seagull" instead.
yup
Great!
I've mine turned off. So. You know. I get all the bitcoin lottery messages.
All of them.
Which is to say, none at all.
Because mwawhaha.
It converts something to an integer, or a whole number
thanks
So you can give it a float or a string and so long as it could be an integer, it will cast it into one
Yep
"Tighten the IT security at your firm with Pennywise Security Solutions. Audit your employees' security awareness with our patented fake-phishing screamscare technology. Pennywise Security Solutions. Beep beep, Richie."
We had a special visitor, today. https://media.discordapp.net/attachments/834168996667457577/918711002462314537/e2.JPG?width=1004&height=667
Mm.
Random problem. I always thought the word "apartment" has two P-s...
One message removed from a suspended account.
hi
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
Hm. Okay, so it was in a Sims 1 expansion.
maybe, what is your issue?
We have quite a few different species of ant.
A number of them that you wouldn't want biting you.
Which is why we have echidnas. See above.
SimulANT?
Robin Williams' playthrough of the creature creator.
Robin Williams plays Spore. Hilarity ensues.
alder lake
@woeful salmonI'm so in the same boat. I truly don't give a shit.
Plus, with the relatively recent Australian cheating scandals in cricket, it's not like it's much to be proud of.
its not recent it has been there for years with umpires
I don't follow it. So the last time I heard about it it when someone went out of their way to tell me about it. That was some time ago.
I'm doing stuff while listening.
Buzz is fun. More is...just...don't.
LOLz
Trurkey.
Straddle.
Shouldn't ride elephants.
Their vertebrae aren't designed for it.
No, elephants.
No, but, as I understand it, elephants have these fort of flangey fan spine things sticking up from their spine
and people sitting on them all the time can hurt them
Absent-minded clicking.
lul
brb
Eweniversity. Maaa!
m india too!
Kid knee beans.
"Lift with your knees, kids."
"Ahh! My knee beans!"
Car men sandy ego.
Yesterday afternoon my boss said that he "probably wants to make some changes to the DNS soon".
This morning the production DNS records are gone
And he was supposed to be here two hours ago, but he's still not in yet
And it's a small business, he wants to be in control, etc... and he won't give me access to manage the DNS
So... hope he gets in soon?
import sys
sys.stdout = open("script_output.txt", "w")
sys.stdout.close()
my code just deosnt run when add this to my script
sometimes it freezes or crasesh my pc
it doesnt give any error there's nothing in the output terminal
d100 is better
Why can't floating point do money? It's a brilliant solution for speed of calculations in the computer, but how and why does moving the decimal point (well, in this case binary or radix point) help and how does it get currency so wrong?
3D Graphics Playlist: http://www.youtube.com/playlist?list=PLzH6n4zXuckrPkEUK5iMQrQyvj9Z6WCrm
The Trouble wit...
!projects
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
And now for your daily dose of Tom Scott
Inject the Tom Scott into your veins
Someone needs coffee.
Is it you?
I am not the one yawning!
I wasn't yawning I was stretching
"stretching"*
Oh hush
Mandatory xkcd: https://xkcd.com/1205/
GUI heathen
Accept the ways of the CLI
Is this like.. a daily conversation?
yes
We must convert everyone to the holy ways of vim
We must convince them to renounce their evil GUI ways
@rugged root - Are you ready to convert
Then you don't need to look up how to exit Vim.
import sys
sys.stdout = open("script_output.txt", "w")
print("hello")
sys.stdout.close()
why does this not giving any output on console
it does save the output in script_output.txt
May God forgive you
Set-Alias vim "C:\Program Files\Git\usr\bin\vim.exe"
You're redirecting stdout to a file
how can i redirect the output to a file and also show it on console
It is like winkey+ for global hotkeys and ctrl+ for window local hotkeys, I guess.
You could use something like this:
f = open("file.txt", "a")
def print_to_file_and_stdout(text, file):
print(text)
file.write(text)
print_to_file_and_stdout("hello", f)
no u
Yeah but you have to pay for the full version right?
i am using print("hello") as a example for my situation, my actual code is much longer
I know you can redirect print but I don't know if you can send it to two places
You can use that function in code of any length
There's not a way that I know of to have print go to two places at once.
If you don't redirect in Python, you can use PowerShell's Tee-Object to do this [in PowerShell]
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Example: PS C:> python script.py | Tee-Object -FilePath file.txt
I started with ML and stuff about 2 years back, but I am still at a stand point about if it would really be helpful ahead.
I mean, its really so vast. I just feel I cant cover up everything.
any opinion on this?
It really depends on what you're interested in. If you're focus is on data science and the like, could also look into things like numpy, pandas, and possibly other statistics and graph based stuff
If you're curious about web stuff, there's always flask, django or even just getting your hands into JS (which isn't a bad option anyway)
Always good to diversify your knowledge
I have a general idea on them(np, pandas, matplotlib), I have worked on Tensorflow and sklearn. But its really tough to know all the techniques of ML and..
moreover, I do have knowledge from those courses and books, but then I have no idea of how these are being used in real industry
IF they are even being used in the industry
Fair. I personally wouldn't have good knowledge on that (I'm a hobbyist, not a programmer by trade), but the folks in #data-science-and-ml and #career-advice might have better insight
Ouh. Thanks a lot actually. I needed bit advice on the career front ๐
@brisk crater Check out #voice-verification, that'll tell you what you need to know
!charinfo ; ;
!e
printโ("hello wold")
@woeful salmon :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | printโ("hello wold")
003 | ^
004 | SyntaxError: invalid non-printable character U+200B
That's cool that it calls that out
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
3.10.0 (default, Nov 17 2021, 16:09:02) [GCC 8.3.0]
@simple dawn #voice-verification
@leaden coral You appear than disappear a lot. Like a ninja
Ohh sorry mistaken happen now
๐
How do you become great at coding?
Practice practice practice.
Learn how to research and what kind of terms you should use for finding things
Learn how to read documentation so that you can better appreciate what a library has for you to use
When in doubt, ask. A lot of people get frustrated or prideful, thinking that they SHOULD know this and that it'd be embarassing to ask. Never hesitate.
Yes I try to improve myself, and many thanks for your reply and valuable time
Any time!
How many hours do you code just asking?
Not a lot, honestly. Not as much as I'd like
I do this as a hobby, so I just kind of have to do it when I can between work and what not
Ohh its means You're on job ?your Python developer?
Nope, I don't program as a job. I'm administrative support at an accounting firm. So I do clerical work (things like scanning documents, paperwork, etc), I deliver tax and payroll documents to our clients, and I'm also our in-house IT
So I wear many hats, but programming isn't something I do for my job very often (if ever)
@whole bear #voice-verification
Thanks man. Not sober enough to do that right now. You guys carry on.
Fair enough! Just wanted to make sure you saw it
I'll fly python airlines soon.
(
HA, glad you heard that
Ohh man your great
Eh, I wouldn't go that far. But I appreciate it!
@plucky mural https://github.com/jquast/blessed that might be decent to play with to help get the coloring you need.
Might take some tweaking to get it just right
No worries! I'd say start by making the image first and go from there
@pulsar island #tools-and-devops
!paste Can you toss all those errors/code into one of our hastebins? It'll make it easier for us to see it
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.pythondiscord.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.
Can you suggest some django projects to begin?
I'm using undo , if I couldn't solve , I'll share you
Sounds good
Have you done the one in the Django docs? It's a tutorial for.... a blog I think? I can't remember off the top of my head, but that'll give you a good taste of what to expect in Django
Yes i have started django docs
Hmmm..... Well, what kinds of things other than programming are you interested in? Any hobbies?
I mostly play games on mobile like clash of clan
You could make a site to look up info from Clash of Clans
They have an api: https://developer.clashofclans.com/#/getting-started
Back in a sec
thanks let me check!
!server

Dubai is only for making money
Unless you're just one of the regular people filling the regular service jobs
Thier is no innovations or creativity
Wage slaves everywhere
Elon Musk company is something else
I don't like the man
Sure but he himself is a douche
@pulsar island are u indian ?
I know that
Nope
That's more what I was getting at.
I'm happy with the companies, I just think that Elon is a tool
he sounds indian with his voice accent
Are u stupid
no
Man Elon is a real get person
Let's not randomly insult people
lol
He really isn't though. When COVID first hit he doubled down on not paying his workers or having them comply with the "stay at home" order.
He's actively employee hostile to anyone who isn't at the higher tech positions
Do you use his starlink
I don't know what that is
I heard its speed about1gbps
Thts his sattelite internet connection
There's nothing I really do that would need that bandwidth. Ah, gotcha
Didn't know that was the name
Man u live in U.S. u must know this
Lol
Might like not paying attention to sports, it's just not something I'm overly interested in
I guess this cybertruck will not fial this time
As it did 3 times
@Fallenour are u from Germany
He's American from what I can tell
Oh beacuse I went. To Germany when I was in my mom's womb
So i didn't remember anything
And then I went on 2001 for 1 mont and they only know bears
Any body know that assembly language
It's like one of the most complicated ones
Assembly isn't a singular language, per say
It's dependent on the instructions of the hardware
yes
C# is good for a crap ton of things. I love it
Yeah in unreal engine
Wiat then what is it made up of
What are we talking about?
Oh. Job applications.
They used Arial in the CV! Bin it!
Unreal is C++, Unity is C#
Because that's what the creators of the Unreal Engine chose
C++ has classes (well obviously since it started out as "C with classes") which is useful in such systems ๐
Yeah same
And in most of embedded systems, C++ is too much of a heavyweight due to its STD-library
@brave steppe Sorry, only reason I dropped it on you is because I knew I had to bail almost right away
Work done? Going home for the weekend?
It's alright ๐ I'll take over
!e ```python
import dis
async def main():
await abc()
print(dis.dis(main))
@brave steppe :white_check_mark: Your eval job has completed with return code 0.
001 | 0 GEN_START 1
002 |
003 | 4 2 LOAD_GLOBAL 0 (abc)
004 | 4 CALL_FUNCTION 0
005 | 6 GET_AWAITABLE
006 | 8 LOAD_CONST 0 (None)
007 | 10 YIELD_FROM
008 | 12 POP_TOP
009 | 14 LOAD_CONST 0 (None)
010 | 16 RETURN_VALUE
011 | None
!e ```python
import dis
def looper():
for item in my_list:
pass
print(dis.dis(looper))
@brave steppe :white_check_mark: Your eval job has completed with return code 0.
001 | 4 0 LOAD_GLOBAL 0 (my_list)
002 | 2 GET_ITER
003 | >> 4 FOR_ITER 2 (to 10)
004 | 6 STORE_FAST 0 (item)
005 |
006 | 5 8 JUMP_ABSOLUTE 2 (to 4)
007 |
008 | 4 >> 10 LOAD_CONST 0 (None)
009 | 12 RETURN_VALUE
010 | None
...concern.
and as of now throat is tickly
๐ฆ Coochie coochie coo...
There is a phrase that is in vogue at the moment. "Fuck around and find out." ๐
okay
!stream 711043296025378856
โ @reef cloak can now stream until <t:1639198025:f>.
anyone available to help me?
Depends on what the problem is.
@trim yacht idk it ended
how
lol
ill try reinstalling the lib
maybe there is some issue with them
nope ty
okie
okay
can you help me with somethin
im lost
okay
okay thanks
i just needed help instilling this thats all
okay
I just need help with this
@whole bear ๐
After hospital?
yp
Safely away from all of the perilously-looming thermometers?
ya , finally
i will be back
@whole bear๐
@limber helm๐
I am choosing to not.
Australia.
Art.
So it seems.
On occasion.
I find turtle useful to sketch L-system stuff.
You asked how you could help me. Yes?
Did I appear to be in need of help for some reason?
I am often here.
Out of consideration for the others in the household and where I am in relation to them. It is night.
20 minutes after midnight.
Yes, the day/night cycle applies the world over, even in polar areas.
Oh, we have snow.
Occasionally, we have good snow.
Generally only in alpine regions, though.
Most places in Australia never see snow.
I'm getting...Either Europe...or South America. Which doesn't nail it down much.
Slovakia.
Hang on
can't hear you
my end
Please hold.
Can hear you now.
Was I right?
Yes. I looked.
Very well.
Your English is reasonable.
Accented, but easy to listen to.
@sturdy panther๐
hi @sturdy panther
This part of the documentation covers all the interfaces of Requests. For parts where Requests depends on external libraries, we document the most important right here and provide links to the canonical documentation.
Similar names: aiohttp.requests
I'm not sure what I can tell you.
Need to go for a bit.
@jaunty scroll๐
hi ig
suppp
why we cant talk in voice chat
@limber helm hi
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Because people would come in here and do hit and run screaming attacks and blow into their microphone and basically make regrettable examples of humanity of themselves. So the voice gate system was put in place to top that, because people who engage in such shenanigans tend to not be of patient cloth cut.
Argh. Need to go again. Stupid cold sore.
The system has made the voice chat by FAR more tolerable to be in.
why there is so much rules just to voice chat
It presents a barrier to legitimate participation of newcomers, and I don't like it for that reason, but it's a small negative to eliminate a far greater negative.
See above.
i understand bro now
I've experienced both before and after the voice gate. With is better.
i seen other server in which there is no voice gate and u join vc and get sweared on yourself a million times
I didn't even read the requirements for voice chat. I saw the command to type, did it, and done! ๐
Mm. I met the criteria previous to their implementation.
but im bored rn
i am an asian and i dont even had a conversation with a foriegner before(in voice)
Opportunity looms.
but i have to wait 3 days
Fluency in English is an exercise in how to make grammatical mistakes like a native.
ohh
wow
i wish i wasnt indian
It makes me sad to hear you say that. ๐
So to speak.
hey i m new to the server i want to learn python how can i
!resources
Resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
hmmm
python3 -V
thats old 3,6
hey is it more sad for me i know my country is rich in history but it looks like that it is 50 years behind all the world
Then that is the thing to be regretted. Not your blood heritage.
yup i know i like my country but it is not the best
There's a lot of that going around.
wdym
The world over, there is much that ought to be better.
But we feel the plight of our own the sharpest.
where are you from?
Australia.
another australian
Eritrean
Hm?
discord has been overwhelmed by australians
The majority of people on this server are from the US.
Indians make up about 20%, if I recall.
really
I'm half remembering what someone said.
i never encountered another indian
Well written Python is faster than poorly written C.
There are many Python interfaces to C-based code.
numpy being one
numba is a JIT compiler that makes things very zoomy
hey i wanted to ask what are the things that a begginer can make in a month?
There is a 3D game engine for Python, whose name escapes me.
with python
hi
Sure. A month of diligent learning might get you as far as being able to make Snake.
really
i am from brazil
I wouldn't jump right to Snake. There's some foundations you should learn, first.
what bout the best text editor any begginer can use
ok.
Many people enjoy using Visual Studio Code.
Some people enjoy Pycharm. These people are wrong.
Some people, like myself, are IDE luddites and use IDLE.
hmm
Spyder is another.
Experiment.
I like the black and purpleness.
๐ funny thing tho is that this isn't even what i'm editing rn (surprise i'm doing advent)
i just thought html and css would look nicer side by side so i opened 2 files from an old project
lol
Opened just to show off!
hey hey hey can i get any tips how do i start learning python
It does look good though!
yes
I often refer people to Corey Schafer's youtube channel. Some of his playlists cover many of the basics you should know.
!resources
Resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
more resources here you can also use to learn
thx
@somber heath i'm kinda done with NoodleReaper ๐ plz suggest another namem
i like the ones you suggest so
Oh, no! I was growing quite fond of it.
then i might keep it as a nickname for here
I'll come up with another should you desire.
but suggest me a name anyway
I may need to think on it.
one more usable for things like github and more
Does this look readable to you?
self._address = "localhost" if address is None else address
Seems good.
yeah looks nice and tidy ๐
But you could also do...
def func(self, address = "localhost"):
self._address = address```
vs javascript
this._address = address ?? "localhost"
Yeah, I mean, if you need to differentiate...I get it.
Javascript is like if (a ======== "42") {}
=== not =======
and you can use == but it converts the type of right hand side to match left hand side
in javascript
I once had someone show me you can write banana with JS sorcery.
Involving math operations that result in nan
Or maybe it was java
Like, zero distinction between nan and "nan"
As we would understand it in Python.
It was so weird.
Yahoy.@pastel linden
Science Technology Engineering Mathematics. STEM. @pastel linden
thanks
5? Because some clever clogs a while back figured out how to do it with 2.
For an esolang that exists only as a curiosity?
Got adblockers running?
What about your other security settings on firefox?
cookies, etc
I tried Chrome once.
Once.
It was one time too many.
Learn Webpack from Colt Steele in this full tutorial course. It begins with a simple question: "What is webpack?" Quickly we move on to installing Webpack, configuring it, and adding loaders for CSS, SASS, HTML, and Files. The course covers cache busting, setting up a dev server, and splitting up your development and production config files. ...
You say difficult. Others might say principled.
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
https://chrome.google.com/webstore/detail/accessibility-developer-t/fpkknkljclfencbdbgkenhalefipecmb
I hate this job application website. It disabled horizontal scroll, but has a really wide table. I can only read its content after zooming out to 33%.
[...] supported Internet browsers:
- Internet Explorer 11, latest version of Firefox, Chrome and Edge on Windows 7+
- Latest version of Safari on Mac OS
- Latest version of Safari on iOS (10" iPad recommended)
- Latest version of Chrome on Android (~10" device recommended)
- Etray assessment and dynamic reporting have some further restrictions
I don't have access to any of those!
hello
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@mental sundial you have to be voice veryfied to talk
ig that resembles ur condition
btw anyone here who participated in Hacktoberfest 2021?
@woeful salmon ?
i personally think of hacktoberfest as a waste of time
hm..\
i will only contribute to projects i like or use and i will do it when i want to
they can have their tshirt
lol
huh wdym
like don't spam messages in chunks
oh
just talk normally
hmm noice
xD
bcs programmin helps ya build your Locial brain
But if ya have strong interest in anything then ya may really go far with it and eventually become rich
exactly the reason they say more than 50% of people from our country are not fit for a programming job
lol
YEA true
but they are pushin themselves just for MONEy
and thats not good
HEy lolz
Priest in INDIA: BABA!
HEY @gloomy vigil
u cant say that
Thats not the reality
rn
BHAI...
@woeful salmon he became toxic kinda
for india
๐คทโโ๏ธ not fully a lie tho
as i said i have seen people's grades / credits improve via donations
lol
HE SAID: colleges here are not teachin abt programmin and stuff
rather my friends did it and bragged about it
thats not good but thats everywhere
yeah they do teach but there's a limit to howmuch you can fit into a 4 year course
and then even keeping that up to date
u cant pat any particular country
yup TRUE
specially for web development
ig BONI was speakin somethin
๐ container queries are comming soon
can you guys hear me
unis just started teaching css grid
Full Name: ____
Email: ____
Scrolling down one screen...
First Name: ____
Surname: ____
Email: ____
What is wrong with job websites?!
!e
print(2/1)
print(2//1)
@gloomy vigil :white_check_mark: Your eval job has completed with return code 0.
001 | 2.0
002 | 2
Hello ๐
a % b
Erm, I'm not sure.
So apparently the runtime is proportional to the products of the lengths of the two numbers.
If you need to do both division and modulo, there's a standard library function which combines the two: math.divmod
quotient, remainder = math.divmod(x, y)
Not sure if it's any faster, or just a convenience function.
nah, just need to make % faster
here my point https://github.com/Ibrahim2750mi/linux-goose
https://github-readme-stats.vercel.app/api/top-langs/?username=ChiliMX&theme=dark
make sure &theme=dark is there
uhh... just did it randomly
Can't have been very important ยฏ_(ใ)_/ยฏ
Erm
no
What about a santa hat with chillies? https://www.etsy.com/uk/listing/564325909/chili-pepper-santa-hat-grilling-santa
Alright
this looks nice
Yep ๐
So do you just need to add this to a .gitattributes file? ```
*.make linguist-vendored
oh i was using =false
btw BRAVE is really fast
mozilla is resource sucker
Ah, progress!
You are brave to use it.
yea
Does adding ```
[mM]akefile linguist-vendored
Any change?
no i think
Oh you're writing a program to find primes?
seconds?
yea
1million?
Ah nice. Have you tried out the Sieve of Eratosthenes?
that's that program
but starts at p^2 for poping becouse other prime would kick number earlier
Ah right. Maybe you could make it faster by skipping even numbers after 2? ๐ค
also the numbers where there ones digit is 5
๐ค i just had a random thought but which of
num % 2 == 0
or
num & 1 == 0
do you think would be faster
in python
why not time it
can i do it here?
Wdym?
time the difference ^
Ah yeah, just use !e and timeit.
About to shower so hopefully someone finds this JavaScript useful ...
const discordDateFormat = (date = null, overrides={}) => {
if (date == null) {
date = new Date();
}
let {
year = date.getFullYear(),
month = null, monthFix = true,
day = date.getDate(),
hours = null, isPM = null,
minutes = date.getMinutes(),
seconds = date.getSeconds(),
relative = false
} = overrides;
if (month == null) {
month = date.getMonth();
} else if (monthFix) {
--month;
}
if (hours == null) {
hours = date.getHours();
} else if (isPM != null) {
hours %= 12;
if (isPM) {
hours += 12;
}
}
date.setFullYear(year, month, day, hours, minutes, seconds, 0);
return '<t:'.concat(Math.floor(+date / 1000), relative ? ':R>' : '>');
};
Example usage:
console.log('New years was at: ' + discordDateFormat(undefined, {
//years: 2021, // year
month: 1, // month
//monthFix: false, // true for basic people
day: 1, // day of month,
hours: 12, // hour
isPM: false, // don't specify if 24-our clock
minutes: 0, // minutes
seconds: 0, // probably should still specify this, even if not really visible by Discord.
relative: true // relative output
}));
!e
import timeit
foo = list(range(1, 1001))
print(timeit.timeit("[n%2==0 for n in foo]", setup="from __main__ import foo",number = 10000))
print(timeit.timeit("[n&1==0 for n in foo]", setup="from __main__ import foo",number = 10000))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 0.5551126468926668
002 | 0.6658805320039392
Pretty much the Discord thing like:
<t:1639239540:R> / <t:1639239540>```
<t:1639239540:R> / <t:1639239540>
for what I typed btw
does timeit.timeit allow you to specify stuff that was already ran through compile() ?
(just curious for you)
now shower time for me
๐ค i'm pretty sure it runs in a completely new scope without the globals from the previous thinig being available
compile allows choosing the from __future__ import ... / etc. options so it can vary from what you are running it with
I meant compile() ... not eval() / exec()
eval() and exec() may implicitly call compile() if invoked with a str
Cya ๐
what happen?
ยฏ_(ใ)_/ยฏ
also did lx did you find a solution for that .gittattributes thing
this is how it looks now
Could you try: ```
Makefile linguist-vendored
Not sure if the [mM] syntax works.
Oh yeah ๐ But all of those are tools that automatically generate makefiles.
it rises to 45.5%

Oh, did you delete the *.cmake linguist-vendored line?
no
its still there
Ohh, sorry ```
[Mm]akefile linguist-vendored
*.make linguist-vendored
Not *.cmake ...
cmake is different i also wanted to ignore that
Hmm, it probably makes less sense to ignore cmake files, as you write those ones yourself right? (They're not generated by a tool.)
But yeah then you need both: ```
[Mm]akefile linguist-vendored
*.make linguist-vendored
*.cmake linguist-vendored
no they are generated too
i just make .h and .cpp and cmakelisttxt
it's in position

how?
writing the entire bee movie script by hand: https://youtu.be/6p0M8CUv6pY
Guys, do you like programming?
Ah yeah, sometimes it works, sometimes not ๐ค It might just be caching.
ยฏ_(ใ)_/ยฏ
I assume you do. Could anybody tell me why?
I need it for my college essay, I cannot come up with any ideas
lol
Ah right ๐
idk why do i like programming
It's pretty satisfying when you write a program to solve a complex problem and it works.
And it can just be fun building systems.
thats also works with maths when you solve a difficult problem in it, same with physics. The satisfaction of solving a problem
Hey guys I am not able load my image in html file
Do you like programming, @verbal ibex ?
Just let me speak
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
read the embed @dry cave
can you show the html maybe?
let me speak
read the embed
let me share the screen
you need to have 50 messages
Sorry @dry cave, we don't make exceptions to the voice-gate, but it shouldn't take very long before you meet the requirements.
you have to goto #voice-verification and get verified then
The voice-gate is unfortunately necessary to prevent trolling.
For now, it might be worthwhile claiming a help channel: #โ๏ฝhow-to-get-help
its html
not python
o- o so probably just ask it in #code-help-voice-text or #web-development
I'm assuming it's the same question asked on 08-12-2021 here
#web-development message
Er, not appropriate Oof.
I do. I guess I love it due to freedom. Being a programmer you are able to create literally anything.
On top of that, solving problems is one more reason. I like when programs I create are able to help other people.
Also it is fairly satisfying to see your program evolve, it's like bringing up a kid, teaching them and stuff.
just let me shre the screen
That sounds like a pretty good start ๐
thx ๐
Can you help me out
can you screenshot your html for that? ๐
Enrichment?
yep
pls help me yehor
Oh I was responding to something someone said in voice-chat sorry ๐
hey iron biscuit pls help me out
can you describe you issue/
never has
?
an innate sense of modesty
my image is not loading pls help me out
alright, fair enough
hey noodle -reeper pls me out
i dont see any img tag in you screenshots
he wrote it as image
on line 9 replace image with img
not picture but figure i thinl
think
are your images in same folder as your html?
still not loading
Yep, that's literally why it's locked down.
Erm, I don't know actually ๐
did you refresh with them in the same folder?
yes i did
can you show us that folder?
What you making Oof?
Hey @dry cave!
It looks like you tried to attach file type(s) that we do not allow (.html). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
How can i show
Ah, use our paste service: https://paste.pythondiscord.com/
i have windows laptop
!voice
run that command in the #voice-verification channel
dont spam
:incoming_envelope: :ok_hand: applied mute to @dry cave until <t:1639250666:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
@gloomy vigil you've got a bit of an echo coming through?
And also a bit of buzzing.
Hey Rabbit ๐
Hello
Hey @dry cave!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
โข If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
โข If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
Erm, @dry cave, for large blocks of code, use the paste bin I linked to earlier please: https://paste.pythondiscord.com/
can you show us your folder structure?
how do i
just screenshot the folder
still not loading noodlereeper
how are you running it?
On that note... ๐
are you guys chatting, i cant hear anything?
yes

58,432
227,860
