#voice-chat-text-0
1 messages · Page 1032 of 1
Whevever you see something that looks like
text = "abc"
for i in range(len(text)):
print(text[i])```Consider instead```py
text = "abc"
for letter in text:
print(letter)```They're roughly the same thing, but the latter is cleaner.
!e py text = "abc" for iv in enumerate(text): print(iv)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | (0, 'a')
002 | (1, 'b')
003 | (2, 'c')
!e py for i, v in enumerate("abc"): print(i, v)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 0 a
002 | 1 b
003 | 2 c
!e py i, v = (0, 'a') print(i) print(v)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | a
Variable unpacking.
!e ```py
def func(iterable, target):
for ia, va in enumerate(iterable):
for ib, vb in enumerate(iterable):
if ia != ib:
if va + vb == target:
return ia, ib
raise ValueError("No solution found.")
iterable = 1, 2, 3
target = 5
result = func(iterable, target)
print(result)
func(iterable, 9001)```
@somber heath :x: Your eval job has completed with return code 1.
001 | (1, 2)
002 | Traceback (most recent call last):
003 | File "<string>", line 13, in <module>
004 | File "<string>", line 7, in func
005 | ValueError: No solution found.
There's a few ways you could flatten the indentation, but this is reasonably clean.
!e py import random vs = [*range(10)] print(vs) random.shuffle(vs) print(vs)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
002 | [0, 4, 2, 8, 9, 6, 1, 7, 5, 3]
!e py import random vs = [1, 2, 3, 4, 5] result = random.sample(vs, k=len(vs)) print(vs) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [1, 2, 3, 4, 5]
002 | [2, 1, 4, 5, 3]
!e py vs = [1, 2, 3] list.append(vs, 4) print(vs)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 3, 4]
this is the way golang uses append:
def append(l,i):
return l + [i]
for i in nums:
n += i
if n <= target:
print(nums.index(i))
def f(vs):
vs.append(4)
return vs```I see this, sometimes.
Not putting this forward of an example of good practice.
oh if you don't want to mutate the list you will need to make a new list
!e
a = "hello_world"
c = "hello"+"_world"
print(*map(id, (a, c)))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
140529206961136 140529206961136
x = append(list, item)
!e
if True:
x = 5
print(x)
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
5
!e
if cond:
x = 5
else:
y = 6
thx
(+ 2 (* 3 4))
2 + 3*4
foo() if x else bar()
(+ (if (> 3 2) 10 11) 4)
ifFunc(x, foo(), bar())
def f(x, y):
return x
f(10, 2/0)
(+ (if (> x 0) (5 / x) 1) 4)
(if (> 3 2) 10 (/ 1 0))
@wind raptor congo on being mod
it's MIT 6.001
Okay..hmm
su - mustafa
FalseKnees
could someone check out my most recent post in #web-development and let me know if they have any suggestions?
@whole bear some gnarly decorators: https://github.com/mustafaquraish/msym/blob/master/msym/core/decorators.py
def curried(orig, argc=None):
if argc is None:
if isinstance(orig, type):
argc = orig.__init__.__code__.co_argcount - 1
else:
argc = orig.__code__.co_argcount
def wrapper(*a):
if len(a) == argc:
return orig(*a)
def q(*b):
return orig(*(a + b))
return curried(q, argc - len(a))
func_name = getattr(orig, "__name__", getattr(orig, "__class__").__name__)
wrapper.__name__ = func_name
return wrapper
!e
def curried(orig, argc=None):
if argc is None:
if isinstance(orig, type):
argc = orig.__init__.__code__.co_argcount - 1
else:
argc = orig.__code__.co_argcount
def wrapper(*a):
if len(a) == argc:
return orig(*a)
def q(*b):
return orig(*(a + b))
return curried(q, argc - len(a))
func_name = getattr(orig, "__name__", getattr(orig, "__class__").__name__)
wrapper.__name__ = func_name
return wrapper
@curried
def foo(a, b, c):
return a + b + c
print(foo(1, 2, 3))
print(foo(1, 2)(3))
print(foo(1)(2)(3))
print(foo(1)(2, 3))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | 6
002 | 6
003 | 6
004 | 6
class Foo:
def __init__(self, func):
print("hello")
return func
@Foo
def bar(a, b):
return a + b
print(bar(1, 2))
!e
class Foo:
def __init__(self, func):
print("hello")
return func
@Foo
def bar(a, b):
return a + b
print(bar(1, 2))
@peak copper :x: Your eval job has completed with return code 1.
001 | hello
002 | Traceback (most recent call last):
003 | File "<string>", line 7, in <module>
004 | TypeError: __init__() should return None, not 'function'
@Foo
def bar(a, b):
return a + b
###
def bar(a, b):
return a + b
bar = Foo(bar)
!e
class Foo:
def __init__(self, func):
print("hello")
self.func = func
def __call__(self, *args, **kwargs):
print("in decorator")
return self.func(*args, **kwargs)
@Foo
def bar(a, b):
return a + b
print(bar(1, 2))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | hello
002 | in decorator
003 | 3
x() === x.__call__()
^^
@g
def f():
print("xyz")
- when you call
fyou callginstead fis sent as an argument tog
!d contextlib.contextmanager
@contextlib.contextmanager```
This function is a [decorator](https://docs.python.org/3/glossary.html#term-decorator) that can be used to define a factory function for [`with`](https://docs.python.org/3/reference/compound_stmts.html#with) statement context managers, without needing to create a class or separate `__enter__()` and `__exit__()` methods.
While many objects natively support use in with statements, sometimes a resource needs to be managed that isn’t a context manager in its own right, and doesn’t implement a `close()` method for use with `contextlib.closing`
An abstract example would be the following to ensure correct resource management:
def f():
print("xyz")
f = g(f)
f(...)
f(...)
!e```py
def gg(xx):
print("gg called")
def s(y):
return y-1
return s
@gg
def ff(x):
print("ff called")
return x+1
print(ff(3))
@whole bear :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print "gg called"
003 | ^^^^^^^^^^^^^^^^^
004 | SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
!e
def x(y):
print('x')
y()
print('z')
return y
@x
def y():
print('y')
y()
!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.
import random
def g(x):
if random.randint(0,2)>0:
def z(x):
return x+1
return z
else:
def y(x):
return x-1
return y
@g
def f(x):
return x
What's wrong in this
indentation
import random
def g(f):
def wrapper(x):
if random.randint(0,2)>0:
return f(x)+1
else:
return f(x)-1
return wrapper
@g
def f(x):
return x
!e```py
def wrapper(func):
return abs
@wrapper
def func(x):
pass
func(-4)
@whole bear :warning: Your eval job has completed with return code 0.
[No output]
!e```py
def wrapper(func):
return abs
@wrapper
def func(x):
pass
print(func(-4))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
4
!e```py
def wrapper(func):
return abs
def func(x):
pass
func = wrapper(func)
print(func(-4))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
4
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
!e
from contextlib import contextmanager
@contextmanager
def foo():
print("starting context")
yield 69
print("ending")
with foo() as x:
print(x)
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | starting context
002 | 69
003 | ending
from contextlib import contextmanager
@contextmanager
def openfile(filename):
f = open(filename)
yield f
f.close()
with openFile("a.txt") as f:
print(f.read())
Code?
!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.
What's wrong
@willow lynx :x: Your eval job has completed with return code 1.
001 | x
002 | y
003 | z
004 | Traceback (most recent call last):
005 | File "<string>", line 11, in <module>
006 | TypeError: x() missing 1 required positional argument: 'y'
!e```py
def x(y):
print('-----')
y()
print('-----')
@x
def y(x):
print(x)
y("hello")
@whole bear :x: Your eval job has completed with return code 1.
001 | -----
002 | Traceback (most recent call last):
003 | File "<string>", line 8, in <module>
004 | File "<string>", line 3, in x
005 | TypeError: y() missing 1 required positional argument: 'x'
!e
def x(y):
print('Dear')
y()
def z():
print('Have a good day')
print('thanks')
return z
@x
def y():
print('Kirti')
y()
!e```py
def x(y):
print('---')
y()
print('---')
return y
@x
def y():
print('y')
y()
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | ---
002 | y
003 | ---
004 | y
@peak copper https://github.com/kelseyhightower/nocode
!e
def x(y):
print('Dear')
y()
def z():
print('Have a good day')
print('thanks')
return z
@x
def y():
print('Kirti')
y()
@willow lynx :white_check_mark: Your eval job has completed with return code 0.
001 | Dear
002 | Kirti
003 | thanks
004 | Have a good day
Codenames is a 2015 party card game designed by Vlaada Chvátil and published by Czech Games Edition. Two teams compete by each having a "spymaster" give one-word clues that can point to multiple words on the board. The other players on the team attempt to guess their team's words while avoiding the words of the other team. Codenames received pos...
!e ```py
class MyClass:
def enter(self):
return self #as thing
def exit(self, exception_type, exception_message, traceback):
pass
def ding(self):
print("ding")
with MyClass() as thing:
thing.ding()```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
ding
!e```py
class MyClass:
def enter(self):
return self #as thing
def exit(self, exception_type, exception_message, traceback):
pass
def big(self):
print("dong")
with MyClass() as thing:
thing.big()
@quaint oyster :white_check_mark: Your eval job has completed with return code 0.
dong
!e
class contextmanager:
def __init__(self, func):
self.func = func
def __call__(self):
self.iter = self.func()
return self
def __enter__(self):
return next(self.iter)
def __exit__(self, exception_type, exception_message, traceback):
try:
next(self.iter)
except:
pass
@contextmanager
def foo():
print("hello")
yield 5
print("bye")
with foo() as x:
print(x)
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | hello
002 | 5
003 | bye
!d contextlib.contextmanager
@contextlib.contextmanager```
This function is a [decorator](https://docs.python.org/3/glossary.html#term-decorator) that can be used to define a factory function for [`with`](https://docs.python.org/3/reference/compound_stmts.html#with) statement context managers, without needing to create a class or separate `__enter__()` and `__exit__()` methods.
While many objects natively support use in with statements, sometimes a resource needs to be managed that isn’t a context manager in its own right, and doesn’t implement a `close()` method for use with `contextlib.closing`
An abstract example would be the following to ensure correct resource management:
what is this for
!e
from contextlib import contextmanager
@contextmanager
def foo():
print("hello")
yield 5
print("bye")
with foo() as x:
print(x)
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
001 | hello
002 | 5
003 | bye

what is this
Dice
why I don't have the permission to talk
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Check out
#voice-verification to get access. The criteria for verifying are specified there.
how to finish 50 comments where to write all of this
you mean comments to people on discord?
Engage in conversation.
The offtopic channels are decent. Here, when there's voice stuff going on.
Python general is often very active.
Today, Microsoft is announcing new changes and investments aimed at further deepening our employee relationships and enhancing our workplace culture. Specifically, we are making changes to U.S. based policies and practices related to noncompetition clauses, confidentiality agreements in dispute resolution, pay transparency in our hiring practice...
Hoy.
what are you doing there
I'm bolted to the floor.
!e
code
!eval <code>
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
!e
code
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'Hedeed' is not defined
!eval os
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'os' is not defined
!eval time
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'time' is not defined
!eval time
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'time' is not defined
!e py print("Hello, world.")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello, world.
!e py import time t = time.time() print(t)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
1655029101.7058928
!e
code
https://leiningen.org/ @terse needle
Leiningen: automating Clojure projects
!e print("Hello world")
!e print("not cool")
happy breakfast
yeah I am on it
ah well I didn't write enough messages yet
I like the coding interface
yep
I am new to programming so.... yeah I might say some low level shit
I am sorry I didn't quite understand what you have said
ah ok
gamut?
oh ok I see
@somber heath im not voice verified :/
so... if I am not mistaken, the person in the stream is working on a website, tight?
right*
something similar like bootstrap?
oh ok
I see
I don't recognise the language
@gentle flint being called by friends rn
cya later 🙂
do look into the settings tho specially lazyredraw as it gives you a performance bump too
!voice @stray swan
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
can i get the unsupress for the mic?
im just currently debugging the script to auto generate eyelid rig
the script by itself works fine but when it try to execute https://paste.pythondiscord.com/ujovutotoy and select my locators it gives me the( just look into the (help bagel section to understand
so rn im gonna debug it
hello?
just look into #help-bagel
well its dead
lets upload the clip explaining it
ok im back
sorry my internet died
so basically all of this debacle started by getUIParam variable
the rigging cource did not have that problem
ok
but the script to generate rig works i just converted the py2to3
and it worked
but i was unhappy with some results
you need to imply where the upper lid vertecies then you imply the lowerlid vertecies then the center of the eye
then what to parent those joints to
i chose to the head bone and the head controller
and it works but
lemme record what im unhappy with]
ye another clip
its currently uploading be patient
ye looks cool
the math i dont understand.
ye i want to do an animation
i have to do belly physics too
so i dont have to animate it by hand
no it overrotates
this is what happens when i raise the controller
that the eyelid controlls arent locked to the head joint
do you i use arch btw?
Write-Host "Quiet $($you)"
pkill -9 rabbit
i mean i could do basic eyelid controlls
Get-Process | where {$_.ProcessName -eq "Rabbit"} | Stop-Process -Force
instead of this complicated clusterfuck
well i kinda know linux generating fstab mounting partition you know the drill
seriously i aimed at a simple rig
but i overshoot myself
real reason I use Powershell is Azure Powershell Modules are dope
if [ $(ps -aux Visual Studio | wc -l) $gt 10 ]
then
killall -9 code
fi
memes the dna of the soul
fuck it instead of wasting more hours lets make a simple eyelid rig with 2 joints
hey guys
i am beginner
i wanted to learn something using python
but the knowledge i currently have is not sufficient
i want to know if u can help me with it
@wind raptor @south bone
make something you can interact with in the terminal using input
try to incorporate classes
Take your Python skills to the next level with this intermediate Python course. First, you will get a review of basic concepts such as lists, strings, and dictionaries, but with an emphasis on some lesser known capabilities. Then, you will learn more advanced topics such as threading, multiprocessing, context managers, generators, and more.
💻 C...
then watch this after teaches you intermediate topics if you already know classes functions etc.
ok and ty
👋
im famous
That's how you know you've made it
i can never figure out how to use tensorflow
all the tutorials i look for throw unexpected errors or are severely outdated or don't produce similar results
hm, is this supposed to be a calculator?
Pretty much
today is Portugal vs Switzerland match
def str_calc(to_calc: str):
result = subprocess.run([sys.executable, '-c', f'print({to_calc})'], capture_output=True)
return result.stdout.decode()```
don't mind am just saying some bull shit to get 50 msg
sdsad
123
234
456
7890
that's spam
Can't spam to get the 50
the bot is smort
Just talk to us 🙂
im calling a gpt-4 modal
You'll get there in no time. It's 50 messages over three 10-minute blocks anyways.
hm
anyone wanna help me with a simple regex
kek lemme paste
i got a string like (1+1)-2-(6*7), i wanna get the strings within the brackets like ["(1+1)", "6*7"]
i just get results like ["(1+1)-2-(6*7)"]
and stackoverflow hasn't helped either
i tried '\((.+)\)' as my pattern
yup, doesn't matter
preferably the first pair of brackets which i think re.search does anyway
either
with or without
i can adjust
none
any string
even (hello world) is fine
\(([^)]+)\)
!e
import re
pattern = r'\(([^)]+)\)'
matches = re.findall(pattern, '(1+1)*5+4^(4*4)', re.MULTILINE)
print(matches)
wait a sec
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
['1+1', '4*4']
hm
i think i know why
aha it worked
thanks @wind raptor
i gotta go now, my mother is beckoning for my prescence
👋
Cheers
im back
@wind raptor
helllo
no
i think i will trash this setup and instead do a simle on
e
with just 2 joints that will close and open it
what?
i would get tired of counting it
also controllers
portfolio for a job
i mean maya is superior in terms of rigging towards blender beacuse its much more mature tool
but blender is fucking speeding in terms of progress
we got a new obj exporter that exports objects blazingly fast
i have to type since im not allowed to talk by the server lol
so much simpler settup would be 2 joints and weight attached to each lid like 1 joint controlls the upper lid the other lower lid
hey also what are you currently coding?
oh you also turned off the profile?
description *
oh i just turned on stramer mode by accident
the python script i wanted to code is like delete a specific modifier from all objects in blender
instead of deleting everything
like when you export to game engines you triagnulate your mesh
or bakin
g
if you dont triangulate before baking
and then export your mesh into a game engine there is a high chance the game engine will triangulate your mesh inproperly and your normals will fuck up
well i generally also wanted to move to linux
currently having issues with maya dependencies
Gotcha
and using arch (tried fedora but the libcrypto.10 dependency is missing so arch is arch
got zbrush running but i need to make pen pressure to work
i just generally have so many things to try like running marmoset trhough proton since it takes care of dx11 calls
No idea what this is haha
why can't i add an outbound rule to the security group of my webserver to my database, why does it have to be an inbound rule on my database security group with source webserver ipv4
hey
does anybody know how to setup vim navigation when in insert mode?(vscode)
ye so installed vscode currently configuring vim navigation
since im more used to vim
instead of lifting my arm for arrow keys
ye its not enough
since i want to hold alt + hjkl
to navigat in inser modee
with vim like keybindings you dont need to lift your hand anymore
well i have like 60 - 70 wpm
im just using the monkey type and keybr to improve my speed
previously it was 20 wpm
the infuriating part about vim is this
when you go into insert mode it does not start at the end of the line
so thats why im binding my vim navigation while inside the insert mode to alt
On this channel, I post videos about programming and software design to help you take your coding skills to the next level. I'm an entrepreneur and a university lecturer in computer science, with more than 20 years of experience in software development and design. If you're a software developer and you want to improve your development skills, an...
and i wish they will never use ruby
because fpm is written on it and fpm is trash
cant convert any packages
for me like zbrush is not supported
but you can get it working trough wine but you need to get pen pressure to work somehow
What is zbrush?
type pixologic in google
Ahh
this is where industry standart for sculpting
slowly getting to my happy setup
but rn thats enough for my vscode configuration time to continue rigging!
i mean i just want to make a vscode keybind config so that i dont have to lift my hand to code
!charinfo §
\u00a7 : SECTION SIGN - §
!pstream 82578210453192704
✅ Permanently granted @zenith radish the permission to stream.
@rugged root Are you prepping for the new Breath of the Wild game?
I'm so anxious for it. I try not to look to keep from getting hyped, because it ends up being "Ugh, this isn't what I expected"
@rugged root - Is this the LP?
Fuck yes it is
When did he get back?
Are we all friends again?
We never stopped being so
🤝
I need root access to my car
It came with Debian and I had to upgrade to Arch BTW
Oh dear god
Oh actually wait, that would make sense for a car
Rolling release
@wind raptor Totally forgot we got 5 new mods
Love it
I have a solution. Blockchain. NFTs.
Back
And wrap it all up in Web3
Time for a power trip! 
Just think of all the possibilities!
HA
-sigh-
!resources editors
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
if i move data from me c: drive to me d: drive does the directories and all setup for the data get changed automatically?
Letter to the editor.
"Dear VS Code,
..."
say i have a pycharm project and move it to the d drive does the directories automatically change?
It should be able to pick it up mostly okay
You'll probably still have to fix a couple things
The entry in your "recents" list will be "not found", you'll have to create a "new project", and "open existing"
right now all the Pysis stuff consists of references. Having some pared down tutorials, e.g "Steps in learning to code from 0" would be very useful

I started trying to work on this the other day
Because I'm never really seen it
If it works, it works. If it doesn't, maybe you can tweak it.
Yes, through your Steam/Epic/whatever, you can set the download location to whatever you want
I downloaded almost all the editors/ides when starting out. Did a few lessons in each and chose my favourite ide and favourite editor (pycharm and vscode). It was nice to get to pick the ones that I liked best and that felt the most intuitive to me.
yeah but does it work fine
if they allow you id assume so right?
Why wouldn't it?
!resources tools
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
The Tools page on our website contains a couple of the most popular tools for programming in Python.
Sorry, did someone mention spiders?
I would be perfectly happy to contribute to it, someone else offered to contribute to it, but the staff response was fairly meh
Bluenix loves GH Desktop
For some reason this mascot is highly unsettling
You can change your face
Like.... plastic surgery?
Masks
oh
It is cool, it’s just, is it paid enough cool?
nice
Our Principal SRE has paid license for it.
Lemon Ltd.
And if you want a desktop app, GH Desktop is free, and VS Code and PyCharm both come with built in options
<@&267628507062992896> hows life
Oh it does a bit yeah
@cobalt fractal Lemon called you poopy
Yo yo yo
JaSON
🔫
yoo
JaySON
Omg
Rude
Hello there
Ooh
YooXinfinity
Hihi
hello everyone
about what you speaking ?
Knights of the Old Republic
I like this one too.
Am I the right one Lemon?
Hunt for the Wilderpeople is a 2016 New Zealand adventure comedy-drama film written and directed by Taika Waititi, whose screenplay was based on the book Wild Pork and Watercress by Barry Crump. Sam Neill and Julian Dennison play "Uncle" Hector and Ricky Baker; a father figure and foster son who become the targets of a manhunt after fleeing into...
The unique new comedy is loosely based on the true adventures of 18th century would-be pirate, Stede Bonnet, played by Rhys Darby. After trading in his comfortable life for one of a buccaneer, Stede becomes captain of a pirate ship, but struggles to earn the respect of his potentially mutinous crew. Stede’s fortunes change after a fateful run-in...
3D printing is a form of additive manufacturing technology where a three dimensional object is created by laying down successive layers of material. 3D printers are generally faster, more affordable and easier to use than other additive manufacturing technologies. 3D printers offer product developers the ability to print parts and assemblies mad...
Ye, I have taken accounting
Huh, fair enough
The choice was: account, business or design and technology
and i picked accounting
I'm out for a bit . Cheers all 🙂
Ah, cool cool
Ye
@leaden comet I know it's a blog, but example: https://betterprogramming.pub/sexism-in-the-software-industry-makes-it-difficult-for-female-programmers-b37f2aa80d62
and I have two female coworkers, one of them isn't active on Github and other one has two github accounts, one is very bland because her first account was too feminine sounding and attracted harassment.
@quasi condor it's because I find it is has the advantages of a robust purely functional languages like haskell or OCAML whilst having full access to the jvm and java without the god-awful syntax of ml languages (imo)
fair enough, sounds like a LISP that has the potential to be more useful than most just because it can access the JVM
it's one of the many languages that I intend to poke at but probably never will
my only gripe is that it is not statically typed
oops, forgot to leave!
Was gonna say
what is next?
NeXT, Inc. (later NeXT Computer, Inc. and NeXT Software, Inc.) was an American technology company that specialized in computer workstations intended for higher education and business use. Based in Redwood City, California, and founded by Apple Computer co-founder and CEO Steve Jobs after he was forced out of Apple, the company introduced their f...
Oh oh thx
Nuxt
yea sounds familiar
NuxtJS
Web Dev programmers are like Distro makers, they find one tiny problem with framework, lose their shit and design entirely new system to fix that tiny problem
Mayyybee
Dart
swift
Daw
hmm
Whose this from?
fresh
same
yea
#career-advice @manic reef
!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.
print("hello\r")
import time
time.sleep (2)
print("my name is hmm \r")
Use \n instead
thx
worked
@rugged root what's the oldest processor you guys have in the office?
trying to figure out what the norm is
my coworker is on an i5-4590
from 2014
We're excited to show off something that we've been working on: the Bitcoin Note. The Bitcoin Note is a cash instrument that is backed by Bitcoin via multisig.
How does it work? 👇
my school is on i5's but I don't remember what generation
i would imagine there's a huge difference between hers and my i5 10th gen
unfortunately the generations can have quite a significant impact on performance
Question is, does the user notice the difference?
i notice it whenever i'm troubleshooting anything for her
That's stocks, essentially
oh
Dividends are reinvested
Mutual fund
based on this text chat: should I bother undeafening myself or should I come back later?
subsidy on what
oh, energy
This entire energy crisis is the entire world saying "Well well well, if it isn't the consequences of our own actions."
we could've prevented this, but apparently, for 90% of the population: doing what is easy is preferable to doing what is right
with what is right being getting off of oil and back onto renewables, with nuclear in areas where renewables aren't feasible
@quasi condor @rugged root i just found something amazing
try typing curl parrot.live in your terminal (windows has curl too now so try it)
at least until we rebuild our grid to be based on steady-state supply, rather than the current variable-load paradigm
What's it do? I'm on a work machine so hesitant to curl stuff
ah it just shows an animated parrot on your terminal
That's amazing
yeah 😄
yeah, that's great
because the way it is setup right now, the entire electricity infrastructure is dependent on our ability to scale up our generation as needed. The sources that can do that reliably are fossil fuels and nuclear, and hydro if you put a massive reservoir at altitude
@cerulean ridge We're getting a decent amount of sniffling and sighing noise
Nevermind
Right?
gonna cry my self to sleep, good nite all
What happened?
no lol, I was just joking
Gotcha gotcha.
I finally managed to focus on my work, so exit
Good
Energy production – mainly the burning of fossil fuels – accounts for around three-quarters of global greenhouse gas emissions. Not only is energy production the largest driver of climate change, the burning of fossil fuels and biomass also comes at a large cost to human health: at least five million deaths are attributed to air pollution each y...
!charinfo \☕
You are not allowed to use that command here. Please use the #bot-commands channel instead.
(it's a coffee cup, not soup)
xD
France derives over 75% of its electricity from nuclear energy. This is due to a long-standing policy based on energy security.
France is the world's largest net exporter of electricity due to its very low cost of generation, and gains over EUR 3 billion per year from this.
France has been very active in developing nuclear technology. French R...
Nuclear power is since the mid 1980s the largest source of electricity in France, with in 2019 a generation of 379.5 TWh and a total electricity production of 537.7 TWh. In 2018, the nuclear share was 71.67%, the highest percentage in the world.Since June of 2020, it has 56 operable reactors totalling 61,370 MWe, one under construction (1630 MWe...
coffee is delicious
which is indeed very sad
this is still going
noreaster on the left, hurricane on the right
\☕
Tea
!charinfo please
You are not allowed to use that command here. Please use the #bot-commands channel instead.
\🍵
\🍵
🧋
https://charlestonteagarden.com/ I've actually been here, and I watched the whole process from harvest to packaging, and then had some tea as fresh as is physically possible
fresh tea sounds like a good but different experience to more typical teas
rather than just straight up better
all black teas are aged.
*oxidized
I know that - but I just like having the parrot poking out from behind my browser
ikr xD
i had it open for a while too
until my eyes started hurting
cuz of the changing colors
Nice
wild strawberry
Lucky jackalope's foot
Pocketful of posies
Missing puzzle piece
Shape of things
Piece of vendor trash
Inner voice amplifier
Golden ticket (@)
Can of refried jellybeans
@lavish rover some items from my character's inventory in GodVille
When seeking inspiration for development of spatial architectural structures, it is important to analyze the interplay of individual structural elements in space. A dynamic development of digital tools supporting the application of non-Euclidean geometry enables architects to develop organic but at the same time structurally sound forms. In the ...
Couldn't Find This Great Scene In A Decent Resolution So Here It Is Track: Geto Boyz - Damn it Feels Good to Be A Gangster Had to add filter to avoid copyright…
vi (pronounced as distinct letters, ) is a screen-oriented text editor originally created for the Unix operating system. The portable subset of the behavior of vi and programs based on it, and the ex editor language supported within these programs, is described by (and thus standardized by) the Single Unix Specification and POSIX.The original co...
Brb
The Tools page on our website contains a couple of the most popular tools for programming in Python.
i just did ctrl+r
!server
!server
!server
list = [1, 2, 3, 4, 5, 6,]
for i in range(len(list)):
print(list[i])
don't do this
@sweet lodge range(len(range(len(range(len(range(len(range(len(range(len(range(len(range(len
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.
!e
code
!eval <code>
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
It should be out.get not get out.
!e
print("Hello, World!")
@rugged root :white_check_mark: Your eval job has completed with return code 0.
Hello, World!
bruh
!e
t = 1
u = 2
print(t+u)```
@plain rose :white_check_mark: Your eval job has completed with return code 0.
3
We even have a special command that just prints back your code for you in a code block
!e
s='s={};print(s.format(repr(s)))';print(s.format(repr(s)))
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
s='s={};print(s.format(repr(s)))';print(s.format(repr(s)))
so like google translating something 100 times?
sending us on a wild goose chase now are we?
Nope, Im on my phone can't link to a specific section
if you were to standing directly at the south pole, with 2 steps you could technically time travel
yes a lot of people do it on the first day of the year to celebrate 2 times
!server
!traceback
Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.
A full traceback could look like:
Traceback (most recent call last):
File "my_file.py", line 5, in <module>
add_three("6")
File "my_file.py", line 2, in add_three
a = num + 3
TypeError: can only concatenate str (not "int") to str
If the traceback is long, use our pastebin.
!voiceverify
whats up guys
!source
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@south bone I'm going to head and do some biology revision, cya
nice keyboard
@rugged root
I have a class using slots how can i set an attribute value in that class when provided that attribute as string and value in a function, since it dont have dunder dict method
Doubt 2
Hiw my created __name attr is diff from the one already in class
Doubt 3
Since @property and @property.getter are same besides the 2nd overrides the first one when used, can you show me one example where i might use both
I don't think there's any real reason to use .getter() explicitly
You usually just use @property for getters
You shouldn't need to use both
👋
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
- development:
- dev_contrib: text
- dev_core: text
- dev_voting: text
- dev_log: {type: text, webhook: dev_log}
- development:
- dev_contrib: text
- dev_core: text
- dev_voting: text
- dev_log:
type: text,
webhook: dev_log
- development:
- dev_contrib:
type: text
- dev_core:
type: text
- dev_voting:
type: text
- dev_log:
type: text,
webhook: dev_log
hey why am i not able to unmute myself?
k thanks
I hate Windows
@wise cargo config - https://github.com/python-discord/bot/blob/main/config-default.yml
Huh
All around random times
@terse needle https://github.com/darbiadev/fido
Oh and Aygaur, don't hesitate to chat with us in here. Typically if we're in VC, we'll be watching the paired text channel so no one gets left out of the conversation
We have a lot of folks who qualify for voice but still prefer to type
Thanks for this BTW, it's been nice
:ok_hand: applied mute to @celest current until <t:1655215521:f> (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).
@celest current So the lesson to learn here is, don't spam.
Oh, hey lemon, Hemlock, NoodleReaper and KJ
hiiii
What a fine collection of fellows
hello :3
!tvmute 713007906483863582 2w Please do not attempt to spam to reach the voice verification. Please re-read the requirements in #voice-verification
:ok_hand: applied voice mute to @celest current until <t:1656424782:f> (13 days and 23 hours).
sorry guys, working on it
i think it's something to do with ALSA, I just re-installed (with fresh wm) so I'm going to have to figure that out. i'll chat maybe later
ohh which wm
i3 (gaps)
nice, heard lots about it but I thought i'd just refresh myself with i3 for now
might make another switch eventually
i've used xmonad, i3, dwm, qtile and now i'm back at i3-gaps
haha nice
xmonad is a pain to compile
cuz it just works for me and my theme with the least configuration possible :x
and of course my picom has transparent/blur/corners
same here
🤷♂️ i installed it in ubuntu last time so
it was in ubuntu repos
i'm not using arch (if that's what you assumed when I said i3)
using ubuntu 22.04
for maintainability and ease of that really
i was using arco and ubuntu 20.04 before but i killed my vms (ye i use linux in vms cuz i can and its more convenient than dual booting)
void linux here
so i now only have ubuntu
I'm using Rust on Arch Linux BTW 
ubuntu 22.04 is a pain tho :x so many ppas haven't updated for it so have to compile so much crap from scratch
I was just going to say the arch btw part, no word of a lie 😂
time to purge the orphans
How do I do that on Arch BTW, BTW?
lmao
sudo pacman -Rs iirc
👀 i recommend stacer
rtfm
error: no targets specified (use -h for help)
its one of the rare graphical applications i use ^ and i love it
pacman -Rs $(pacman -Qqtd)
@vast fog your mic is much better
It removed dotnet-sdk and go
Hope I didn't need those 👀
go (°ロ°)
go git good at programming
A crow's favourite drink. Cawffee.
🤔 that is the goal of my life will get there some day
I post everyday
My followers are growing exponentially
I don't want to brag, but I got good, I'm a great programmer
You should follow my GitHub
I get so much exposure
A really great programmer would make that spell out a message.
No headgear?
I have loads hanging in a dev branch for w lang, massive update coming
my 2020 is pretty good
Commits all over the place
but the last year has been quiet
A monthly half-hour-long phone or video call where you get to chat with me about whatever you want related to your career, open source, the projects I work on, or other stuff like that!
👀
I don't feel that great these days - Even the bots have me beat
error occurred: Failed to find tool. Is gcc.exe installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help)
How do I get GCC for Windows?
mingw
It’s a pain and I wouldn’t if possible
https://sourceforge.net/projects/mingw/ for gcc, g++
https://github.com/llvm/llvm-project/releases/ for clang, clang++, clangd
Visual Studio C++ Build tools got it
that will install the cl compiler which is for microsoft and the flags use / instead of - as a prefix 😮
you sure that would work?
Rust was able to build my thing, so it worked for what I needed it to
nice 😮 weird then why'd they ask for gcc.exe then
Rust even told me to in their installer
(I got the winget version originally, which apparently skips the part where it warns you about not having the build tools)
oh 😮
did you install the 2022 version tho? 😮 if not i would recommend doing so
👍
nice cuz 2022 is fully switched to 64 bit also the editor is generally better if you ever use it 🙂
Is there any way to get rid of that (2)?
I just installed it, I only have one of them
its vim mode is also one of th ebetter ones once you know how to configure it (tho i don't use it)
2 years
ah you installed visual studio and build tools separately
you can just modify visual studio and add it from there
Oh
ic
i remember it being 2 gigs for the c++ and some other stuff
so just uninstall build tools and enable that desktop development for c++ in visual studio
i mean i play some games that are easily above 100 gb o- o
warzone updates 💀
I remember back when I was a wee programming dog, I tried to select every single box in the installer, and I ran out of space
even a 10 year old game like gta 5 is 103 gb
actually might be more there was an update recently
That's what VSC is for
vsc isn't good for like golang, c++, java
ok i disagree with go
i mean it works , i'd opt in for a jetbrains option
other 2 i can agree
golang has excellent support on all ides that support lsp including vs code
What's JetBrains'.... GoLand?
gopls is a gr8 server
also c++ on vs code can be improved if you're willing to install clangd as a language server and hook that up with vs code
I paid for JetBrains Rider because I hate the stupid "solutions" - they don't make sense to me
So I opened up Rider and.... It made me a "solution"
Dammit
@dire ermine If you're wondering why you can't talk, check out #voice-verification
Jetbrain is a nice company
well :x you don't make them yourself
you just make the cli do the solutions for you.... for which you have to learn the cli
they use Java for Intelijj.
so ye...
i still use eclipse with vim plugin for java... cuz well it works
DataGrip
intelijj is free 
because its an exclusively python ide so it has alot more python specific features
Is for Go
We don't do that here
go is awesome
but lacks community
such a simple language, i'd argue its simpler than python
for someone who already knows programming ye its simpler than python
but for a newbie i reckon python still easier
meh i'd teach beginners javascript
@calm stump https://wiki.lineageos.org/devices/#huawei
it has the fundementals of most languages
a practical choice since they can basically develop for any platform
python is kinda weird imo, you need to get used to it
im doing web development with spring boot, and ive heard python is also quite popular
I never could get the hang of spring
backend
Too much boilerplate
i've used spring alot but never spring boot yet
spring boot, removes the boilerplate of spring
Wait
wanted to check it out at some point but forgot
and then lombok removes the boilerplate of spring boot imo
Those are two separate things?
yes spring boot makes setting up spring projects easier
I thought people just said Spring because they were too lazy to add the boot
Girlerplate.
java is the most confusing language imo
for example i still don't know what beans are after 2 years of working with spring. its just vague explenations
well i would agree
it has weird quicky things you need to know like
don't use == to check strings
i never understood annotations aswell
that one ig other languages do too but still :x
its just weirdly confusing
:: referense function as I rememeber
I come from Rails and Flask, where the "Hello World"'s are five lines
The entirety of Java is boilerplate to me
@rugged root these are all the spring x https://spring.io/projects
Level up your Java code and explore what Spring can do for you.
spring security is the most notable
Jesus
yes... just the word is method not function since its bound to a class
but same thing
I mean... Look how much code it took to do this - https://github.com/darbiadev/ProductionLog/blob/main/src/net/darbia/pl/data/CalculateAverages.java
swing != spring
ah you are talking about x::y
but ye it does take alot more code to do the same crap in java
That's also completely terrible code
I'm just making fun of Java and myself
its better than ruby on rails
You take that back
never
i hate java, Python is more simplier and clearly in code
next time checkout lombok
it reduces the boilerplate
lombok is awesome
yes... i worked with java projects for 4 years before finding it
@Getter
@Setter
@RequiredArgsConstructor
@NoArgsConstructor
``` ❤️
not frequently but i did and i wish i found it earlier
i hope the caps are right
6-7 months learning or practise during these developed 3 projects
lets be real, java is best language. but you could pair it with python
look up jython
its old but its still python :x
jython is a full implementation of python in java
What is Jython?
The Jython project provides implementations of Python in Java, providing to Python the benefits of running on the JVM and access to classes written in Java. The current release (a Jython 2.7.x) only supports Python 2 (sorry). There is work towards a Python 3 in the project’s GitHub repository.
so you can extend it with java
no
just like you can extend cpython with c
62,751
287,366