#voice-chat-text-0
1 messages · Page 991 of 1
and i cant speak @vast fog @somber heath
• Have joined the community over 3 days ago.
• Have been active for over 3 ten-minute blocks. This means you need to have sent your messages over a span of at least 30 minutes.
.
🤷♂️
🫂
what does this mean "Have been active for over 3 ten-minute blocks. This means you need to have sent your messages over a span of at least 30 minutes."
?
what is "3 ten-minute blocks"
?
ooo
alright
i get it
thank you
@woeful salmon
I cant hear anyone for some reason
use raylib::prelude::*;
fn main() {
let (mut rl, thread) = raylib::init()
.size(640, 480)
.title("Hello, World")
.build();
while !rl.window_should_close() {
let mut d = rl.begin_drawing(&thread);
d.clear_background(Color::WHITE);
d.draw_text("Hello, world!", 12, 12, 20, Color::BLACK);
}
}
gtg for a bit
problem with a setting in the lib then.. on/off .. not on/standby/off
API documentation for the Rust RaylibHandle struct in crate raylib.
Is noone speaking or am I deaf
yo chris
@molten pewter that sounds illegal🤣
thats crazy cheap
you got a link?
@sour imp 🤣
im asking furyo
512gb micro sd
@molten pewter how did you get that for 20bucks? was it a friend?
why does it keep disconnecting rtc when i am in vc in this server? like when i tried for other servers it worked but i keep disconnecting here, anyone knows?
@rugged tundra if you woke up in the night and only had limited time because it spread, would you grab for your pc😆 or what first?
what would you take?
so you have no sentimental items?
You sound like a robot coffee
i like you
you;re a minimalist
@somber heath 'considerably....terrible....'🤣
a kangaroo 🤣
@terse needle cant you restore them to a previous state?
or get a usb and try to recover the deleted files?
The Lithuanian litas (ISO currency code LTL, symbolized as Lt; plural litai (nominative) or litų (genitive) was the currency of Lithuania, until 1 January 2015, when it was replaced by the euro. It was divided into 100 centų (genitive case; singular centas, nominative plural centai). The litas was first introduced on 2 October 1922 after World W...
thats my grandaddy
The pound sterling (symbol: £; ISO code: GBP), known in some contexts as the British pound, the pound, or sterling, is the official currency of the United Kingdom, Jersey, Guernsey, the Isle of Man, Gibraltar, South Georgia and the South Sandwich Islands, the British Antarctic Territory, and Tristan da Cunha. It is subdivided into 100 pence (si...
UUUUU <- U row.
Hello
@zenith radish listening to leet code on mobile isn't the best experience and I don't want to interrupt then to talk over them
!e python import math a = (1,2,3) b = (5,6,7) print(math.dist(a,b))
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
6.928203230275509
!e ```python
import math
a = (1,2,3)
b = (5,6,7)
c= math.dist(a,b)
print(c * 300)
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
2078.460969082653
@trail mural im finna send that 10k to you now...
who
k
im about to start reading some literature man
lmao
come on slay
academic stuff
dont act smart
😆
lmao
yea college stuff
trying to connect literature
not really learning man
trying
BRB
@trail mural what you working on?
learning some salesforce stuff .-.
@shy elk whats up?
nothing
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@worldly veldt you over here too
brb rebooting lapto[
I forgot I had it powered on for a while
it tends to act funky if left on too long … Win10 -.-'
are you in VC?
Watered down beer in another cup ... that makes it last longer and makes you less prone to getting drunk as quickly.
not atm hahahaha
that's probably a good idea lmao
but the correct amount of water will make it easier for your gut to process it ... remember that it is why you get heartburn after drinking
or whatever it is called for that issue
^
But when you're drunk, you won't know when to stop drinking ... and you can easily say or do stuff you'd regret when not drunk.
that doesn't change whether you've gotten drunk from watered down beer or from beer
if you're worried about that, don't drink lol
hahahahaah what if I ruin my build lmao
@shy elk if ure talking i cant hear u
@unkempt magnet whats up?
why i cant see u in the voice chat
idk, refresh 🤣
ive refreshed and even restart but steel the same problem
idk man, helpmeslay refreshed and it worked for him
I dont know what to tell you
!voice verification @lyric pawn
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
soon diablo, im working on something important
u have more than 3700 sent msg and not verifind
no worr ytake ur time
Bye guys ive gotta go 😢
see u
what if you start a fire / make yourself bleed and are too drunk to realize until it is too late?
My hair is drying still from the shower so I don't want to hop into VC just yet
For io bound works... Any lang should be fine... for raw computation you should worry about a lang...
@rugged tundra
@midnight agate my objection would be it's JAVA 😂 😂..
anthropomorphic cats?
I recognize this, where is it from?
kotlin mascot
Oooh, yeah.
Hey
I have been i the server since 3 days
i don;t know why i am not voice verified still
i think i am near the 50 barrier
Well apart from that i have a doubt
i am making a tic tac toe game
and am stuck at one part
Is there any way you know i can share a link to the jupyter notebook
!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.
one min
ill try \
board = ["-", "-", "-",
"-", "-", "-",
"-", "-", "-"]
def display_board(board):
print("\n")
print(board[0] + " | " + board[1] + " | " + board[2] + " 1 | 2 | 3")
print(board[3] + " | " + board[4] + " | " + board[5] + " 4 | 5 | 6")
print(board[6] + " | " + board[7] + " | " + board[8] + " 7 | 8 | 9")
print("\n")
def user1_input():
#inputs of position
player_1_input = "FAIS"
acceptable_range = range(0,9)
within_range = False
while player_1_input.isdigit() == False or within_range == False :
player_1_input = input('Enter a index where you want to place X between (0-8): ')
if player_1_input.isdigit() == False:
print("Sorry that's not a digit")
if player_1_input.isdigit() == True:
if int(player_1_input) in acceptable_range:
within_range = True
else:
print('Sorry you are not is the acceptable range of (0-8)')
within_range = False
```
is this fine
Yes so basically i want to use the player_1_input to update the board
but then if i make a new fuction and try to use tht variable , since its not in the global scope i think that it shows variable name not defined
inside the while loop
Imagine the next fucntion is :
update1board():
board[int(player_1_input)] = "X"
I am a bit confused , is there a problem in the function accepting the input
Yeah so i am just taking the input , so then for it to add the X at the index position entered i would have to reuse the variable
Yeah so its been less than 3 days
i checked
Is it possible to enter the line of code by editing the message
i havent reached that level yet in my course
What if i enter the return out of the function
will that work
yes
is there any other way
yeah thats fine
im sorry can you type that out
If you're doing this without writing a class, you may as well just assign to a subscript of board from within the function.
how do I learn how to code?
I typically refer people to Corey Schafer's Youtube playlist for Python beginners.
Also, check out these handy learning resources.
Try Jose portilla's course on usemy
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
udemy
I am sorry , but i am not really aware of what a subscript is
so like :
board[0]="X"
so what about if i do :
board[int(player_1_input)] = "X"
Like what? Can you explain in vc?
my only main hurdle hear then would be to get out of the defining the player_1_input as a global scope \
because its in the function , so if i am making another fucntion to update then that would be a problem
So what if i add the code in the same function
no i mean for player 1 but in the usr input function , i can update it too , yet then when compiling the entire program would it be a problem ??
no but if i create another function it shows an error
that my variable isnt defined
yeah sure
yes , i am running the file again
Enter a index where you want to place X between (0-8): 8
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-3-3b5b1610ece7> in <module>
1 user1_input()
----> 2 update_board()
<ipython-input-1-e4a996e6e3ab> in update_board()
36
37 def update_board():
---> 38 board[int(player_1_input)] = "X"
39
40
NameError: name 'player_1_input' is not defined
okay
Ellow😊
I have a Macbook M1 😕 Can't use for Gaming
It's usually the hdd's that die in the old laptops @cunning lake
Just tell him the name 😂 @somber heath
I have a old one and it's all covered in dust 😕
@somber heath Hellow
Guys as a University student is it bad to play games 😕
I totally agree
But the thing is was a hardcore gamer then i left gaming for 2 years and im scared if i start gaming again will it affect my studies
im Comp Sci major
Naah im talking about games like valorant and csgo
I mean it's not me who get's addicted when i start playing my friends usually call me and then i have to break the timetable i made and play whenever they're free
Maybe find new friends 🥲
Or play with strangers
Ok 🌟 Let's try that
Let's say my friends are never too busy to play 😂 So ...
So do you guys do gymming / Exercise ?
ok guys Byi Byi you are good people to talk cya later 😊
Haaaay
Hey my voice got verified but i cant unmute
i am not voice verified
@dark sable Still having issues?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
k
@somber heath 🖐️ hi
its working now
Netpbm (formerly Pbmplus) is an open-source package of graphics programs and a programming library. It is used mainly in the Unix world, where one can find it included in all major open-source operating system distributions, but also works on Microsoft Windows, macOS, and other operating systems.
Forque.
It's like fork, but fancy.
Oaporlmiste
Üplemyst
I refer people to Corey Schafer, Youtuber.
He has a playlist. Python for Absolute Beginers or somesuch.
!resources Also check this page out.
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!e print(16 / 210)
@tiny socket :white_check_mark: Your eval job has completed with return code 0.
0.0761904761904762
@dire folio can we pin that issue here
read it before you decide
EBLM J0555-57 is a triple star system approximately 600 light-years from Earth. EBLM J0555-57Ab, the smallest star in the system, orbits its primary star with a period of 7.8 days, and at the time of discovery, was the smallest known star with a mass sufficient to enable the fusion of hydrogen in its core.
your no lady
Yes man
same
That's good
sir, i am not from india. thank you.. please come again.
Dali or Poirot? You decide!
@somber heath
The adam project?
yea
is this you?
👀 me from last year yes
Sorry cant talk, haven't been here for 3 days it says :/
reasonable
I joined to ask if someone has used libusb or some other methods to read usb devices and raise keyboard presses based on the input
I would not have time for low level C++ stuff.....
Well I will post a question on a channel if someone knows, thanks
There might be existing apps but I would like to do something myself : )
See you
yo hello guys
i have a quick question
does Variables hold a maximum of 8 bytes of data?
okay thank you brother
bye guys
!
davinder is my cousin...He just dosent follow sikhism like me, thats my main beef with him
I'm going for dinner... I will join back..
Sure
join
Yey
Finally........................
late for game night :<
22:55 for you ??
23:55
err 23:55 I meant
gotcha
Don't forget time zones … and that the world is not flat ^w^;
@opal mulch important things are your core subjects like "data structures, algorithms, general programming" and all for internships and all...
alright thank you
Be good at those...
lp 😦 emacs hangs when i compile vterm with no errors
do you happen to know a fix?
hmm
you can check how vterm is supposed to compile in the elisp and try to do it manually
Smarter Shopping, Better Living! Aliexpress.com
Why would add it up to 100...
if year % 100 == 0: return year / 100
else: year / 100 + 1
@zenith radish
Eudaimonia (Greek: εὐδαιμονία [eu̯dai̯moníaː]; sometimes anglicized as eudaemonia or eudemonia, ) is a Greek word literally translating to the state or condition of 'good spirit', and which is commonly translated as 'happiness' or 'welfare'.
In the works of Aristotle, eudaimonia was the term for the highest human good in older Greek tradition. ...
вербуфский
#help-honey anyone?
Why
oh
cool
hi
@somber heath
I actually havent made anything with python before
i know c++ and javascript
I was looking to see if someone knew something about organizing data into a spreadsheet
I downloaded my google data and i want to visualize it
okay
Its kind of weird how google gave me my data
theyre in an html file
for instance all of my youtube comments are there
dating back to 2013
and its just one big unordered list
Selenium
happy Pi day
Hey there
I just joined the discord
Pretty cool
How do I use it the best?
This discord
Just ask all my questions related to Python ?
Ok
Cool
Awesome. I'm super excited to learn
What do you do with it?
ah super cool
Well I appreciate it
I'm gonna look around a bit
Very cool. Hello!!
I am in San Diego.
What part of Italy?
looks beautiful
I have a soft spot for fishing villages.
It is cool there though.
Weather wise.
I feel like I am interrupting. I am going to give you some privacy. Nice Meeting you!!
Pish. You're not interrupting.
@somber heath Hi
@midnight agate listening
I don't know
yeah
You are applying to alot of jobs... But you should also try for some referals
@midnight agate
Linkedin is trying save everyone.... now it's saving no one... @formal meteor @midnight agate
@midnight agate your network is bad...
Hi everyone
I need to send data between Arduino and Raspberry pi using SPI communication how do I do that ?
where can i get help for coding?
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
okay
yeah my dad gave me a project
no he is a mechanical engineer that does some stuff in excel to modify solidworks files
he wanted me to create him a code that can modify the excel sheet in a neat GUI
currently trying to import a library
so how long have you been using python?
microcenter sells graphics cards near MSRP but you gotta win a lottery
oh rip
my microcenter requires a lottery
basically every time they restock (ussually once a week) they leave the lottery open till noon
and then they text you if you won
so you guys use pycharm?
what type of editor do you recommend?
well tbh the extent of my scripting is probably ROV controller stuff and doing odd jobs for my dad
Cooler Master NR200P
Ryzen 5 5600G
T-Force Dark Za 16GBx2 3600Mhz
WD SN570 1TB SSD
Cooler Master 650W SFX Gold
B550I Aorus Pro AX
he wants me to eventually design him a program that can directly work with solidworks API
and remove excel from the equation entirely
but he wants you to make him a GUI right
yeah
maybe make a web app? you'll need some CSS/HTML/JS though
all he wants from me rn is to take an excel spread sheet with about 10 variables, to be able to adjust the variables through the program and create a GUI for it
I really highly recommend you try and get a 30 series card
the performance increase is quite significant
yes 3050 beats 2060
wait i was mistaken
laptop?
are you currently using a laptop? because HQ processors are mobile chips
BenQ GW2480T eye-care IPS 24 inch monitor with ergonomic design is specifically designed for students to enhance learning. The 24-inch GW2480T provides Height Adjustment Stand with eye-care technology, including Flicker-Free Technology, Low Blue Light Technology, Brightness Intelligence Technology (B.I. Tech.), and Color Weakness Mode.
@tidal shard ln -s source_file symbolic_link
@tidal shard https://bitwarden.com/help/cli/
export PATH="<Path-to-bw>:$PATH"
The Bash export command helps us to export environment variables so that they are available in all child processes, shells, and commands.
!e py text = "thing" result = text.upper() print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
THING
anyone know what yield from does? I found it in an old piece of code I wrote and I can't understand what it does.
!e print(dir(str))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'capitalize', 'casefold', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'format_map', 'index', 'isalnum', 'isalpha', 'isascii', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'removeprefix', 'removesuffix', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
!e py text = "text" print(type(text)) print(type(str)) print(type(type))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | <class 'str'>
002 | <class 'type'>
003 | <class 'type'>
!e py result = "*".join("MASH") print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
M*A*S*H
!e
print('type\'s type is type'.capitalize())
@tidal shard :white_check_mark: Your eval job has completed with return code 0.
Type's type is type
class Dog:
def init(self,breed):
self.breed = breed
sam = Dog(breed='Lab')
frank = Dog(breed='Huskie')
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 6, in <module>
003 | TypeError: 'MyClass' object is not callable
!e ```py
class MyClass:
def my_method(self):
return self
my_class_instance = MyClass()
a = my_class_instance.my_method()
print(a is my_class_instance) #a / self points to the same object that my_class_instance points to ```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
True
!e py a = [] b = [] c = a print(a == b) #True. The object a points to is equal to the object (list instance) b points to print(a is b) #False. They do not point to the same object print(a is c) #True. a points to the same object c points to.Equality vs identity.
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
003 | True
!e ```py
class MyClass:
def add(self, v):
return ("Blah")
a = MyClass()
print(a + 5)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Blah
!e
def __add__(self, v):
return ("Blah"*v)
a = MyClass()
print(a + 5)```
@tidal shard :white_check_mark: Your eval job has completed with return code 0.
BlahBlahBlahBlahBlah
a.__add__(5)```
!e py class MyClass: def __eq__(self, _): return True a = MyClass() print(a == 5) print(a == 9001)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | True
!e
class MyClass:
def __eq__(self, _):
return 'hello' + str(_)
a = MyClass()
print(a == 5)
print(a == 9001)
@tidal shard :white_check_mark: Your eval job has completed with return code 0.
001 | hello5
002 | hello9001
!e ```py
class MyClass:
def getitem(self, key):
print(f"Getting {key} of {self}, but really just give {key} back")
return key
def setitem(self, key, value):
print(f"Setting {key} of {self} to {value}")
mci = MyClass()
mci["a"] = 9
mci[0] = "apple"
a = mci["so"]
print(a)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | Setting a of <__main__.MyClass object at 0x7fcbcdd42c80> to 9
002 | Setting 0 of <__main__.MyClass object at 0x7fcbcdd42c80> to apple
003 | Getting so of <__main__.MyClass object at 0x7fcbcdd42c80>, but really just give so back
004 | so
Multithreading is hard ;-;
that's why I use async as much as possible
brb
17,831 votes and 5,500 comments so far on Reddit
The ad that started the "NOT HAPPY JAN" phrase around Australia. The employer was clearly not happy that Jan forgot to submit the company's ad for the yellow pages.
Ugh i just wanna talk
been in here a while
swear I've had over 50 messages
Are you able to just give me permissions
or nah
ok
swear man I've definitely met the criteria
Just don't know what criteria I'm missing
what's the command
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Byeee
lol who choose the new icon.. looks like poop on a picknit blanket
finally gonna program after a few days of exams :)
We have technology
Hey @somber heath
so your saying no snipe hunts? :(
i like, lemu
or le`mu
is that a true falsey
yea nah
https://stackoverflow.com/questions/5953373/how-to-split-image-into-multiple-pieces-in-python i found this link which has multiple ways of splitting image. not sure which would work for me - can you suggest one code to try. i want to split image into 100 vertical sections and save each section
try them until you like one
r u making a webtoon
Freedom Writers is a 2007 American drama film written and directed by Richard LaGravenese and starring Hilary Swank, Scott Glenn, Imelda Staunton, Patrick Dempsey and Mario.
It is based on the 1999 book The Freedom Writers Diary by teacher Erin Gruwell and students who compiled the book out of real diary entries about their lives that they wrot...
my phone's camera & flash positions
🐴 Stabilise?
anyone help me with code?
you're in AFK?
me
What's your question
https://paste.pythondiscord.com/imiduforon trying to split image into 100 vertical sections and save each section as separate image but image saved at end is same image as inputted
Are you somehow in VC1 by accident?
You're not doing any cropping / etc., I guess?
would you be able to recommend what code to write for that
im not that good at coding
oh im not even sure - im new to this
one voice chat channel higher
You don't need to speak to listen
oh i see, how to i leave voice chat 1 and join 0
mobile or desktop / web?
anyone could help me now?
They can be named the same (even multiple text / multiple voice with the same name) as they are identified by a numeric, unique ID
but my saved imaged is the full size at the end
it is just a image of a doppler
like medical image
and i am just trying to split it into 100 sections vertically
but i cant seem to do
@midnight finch I'd look at numpy.linspace or maybe numpy.arange.
okay let me check this
They already have an image. They just want to split it.
I am a two week programmer
https://paste.pythondiscord.com/imiduforon this is my code so far
feel free to edit if easier
https://stackoverflow.com/questions/5953373/how-to-split-image-into-multiple-pieces-in-python i also read this article but theres so many different codes so was confused.
i tried something called image_slicer but that didnt let me split image only vertically
another sacrifice to fall into the void that is javascript frameworks (or just react frameworks at this point)
👋
!e py import numpy as np width = 49 divisions = 7 indices = np.linspace(0, width, divisions).astype(int) print(indices)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[ 0 8 16 24 32 40 49]
is this for me?
Yes, but I think there's something even better.
A method of the array class
how will i add my image file to this though?
great!
Great for Cyber Security / Knowing why Server-Side Anti-Cheat is required, @proper jacinth. Maybe show to your teacher / school?
https://www.pwnadventure.com/
A YouTube playlist as a partial guide if they need something to help them in persuading:
https://www.youtube.com/playlist?list=PLhixgUqwRTjzzBeFSHXrw9DnQtssdAwgG
Pwn Adventure 3: Pwnie Island is a limited-release, first-person MMORPG that is,
by design, vulnerable to exploits. It is intended to showcase common game
design and programming mistakes and provide an example of what not to do for
g...
!voice @sacred sinew
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
will this replace all my code i wrote. https://paste.pythondiscord.com/imiduforon
@midnight finch Don't really know. I'm on my phone, so looking at pastebin stuff is a pain. Look at numpy.array.array_split
oh i see. i will read about that. so you think i should stick to numpy array split method - it should work to split image right?
Why does @midnight finch need numpy to split an image?
It ought to. Otherwise you can use the indexing example to get the indexes you'd need to slice the array at the points you need.
Since when does numpy work on images?
I thought numpy was for number crunching, not image processing.
Pillow and Numpy go hand in glove with image processing.
@sacred sinew if you send messages within server, then you can get voice
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
There's even cross compatibility written into each for the other.
Pillow's Image has a method to convert to Numpy's array. Numpy's array casts to Pillow's Image.
"This is Billy. He pushes buttons in a particular order. We don't pay Billy very much. This is Peter. He pushes buttons in a different particular order. Peter pushes fewer buttons than Billy, but we pay Peter a lot more."
Your goals/values didn’t align with your last company
def add(a, b): return a + b
# vs.
def add(a: int, b: int, /) -> int:
if type(a) is not int or b type(b) is not int:
raise TypeError('Expected int')
return a + b
what about the googles language ?
@amber raptor WebView ?
"That unwashed scraggly looking fellow beating an employee with a hammer is Bob. Bob has anger management issues, but management feels that an adrenaline fueled employee is a hard-working employee, so he's kept on the payroll to keep everyone on their toes."
i'm pretty sure react native transpiles to native java / swift for android / ios @zenith radish
-> don't think there's any browser in there
unless you add a web view
yes that's why you can't use css in react native and can't use html tags
Android has a WebView for apps to not need to reimplement a web browser in each one.
Some browsers even provide their own WebView (like Google Chrome)
If Google fully stops supporting their NDK, many will leave Android because their favorite games (Minecraft and / or others using C / C++) won't get updated.
also @amber raptor ^ just so you also have the correct info on that
Anything involving a browser still sucks
Fair comment, though I was more passing comment on organisational power structures, where the muckymucks do all the work while the executives twiddle their thumbs.
yeah but what react native generates is not a browser and is very close to being a fully native app
its like 10% slower than an actual native app
Reason 4678845 why Python sucks as large language
So how will one search the internet? Back to the gopher: protocol (which is still alive btw)
On a phone, if you can't be trust that connection is solid which is why native code just making REST calls performs a ton better
Well, ask Google why they rejected Termux's update.
https://paste.pythondiscord.com/oyuhufiyof i have this code that does vertical splitting but i want to change to horizontal splitting. any idea how?
Because they never liked Termux and canned it
They denied Termux from direct storage access. Paraphrasing ...
All apps, to access storage, must go through our LIMITED Java-powered file proxy code.
... which is worse than what Termux was needing.
Sure, it's a security concern
Google shutting down Termux makes sense from Security point of view
any ideas please
They didn't shut down the old version ... they just won't allow it to be updateed
what is that OS @gentle flint ?
linux
looks nice
what you're seeing is a desktop environment called KDE
nice
Some Random guy entering the VC
hearing people talks about tuna
Then he go to check the server name
would a python eat tuna?
!pastebin
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.
@rugged root - Is there any way to stop Windows update when it's already on "restart to finish installing"? The computer is NOT AD joined unfortunately
Mercedes Brabus S B50-500 - Sound, Interior and Exterior
Special thanks to PremiumFelgi:
https://www.instagram.com/premiumfelgi/
https://www.facebook.com/premiumfelgi/
Engine: I-6, 3.0 L, 500 Hp, 590 Nm
0-100 (km/h): 4.7 s
Top Speed: 250 km/h
#mercedes
#brabus
I feel like sometimes there's an option that says like "Restart" as well as "Restart and Update"
But I'm not sure
Every time I've hit that, it's updated anyways
What?
Dat
you want me to Desktop Support? Brave man
Just wondering if you knew off the top of your head
restart to finish installing
ur boned, best you can do is uninstall the update after reboot if you so require
anyone help me
Jon, are you meaning to use Python 2?
Vendor's software won't run under W11.
I can update, rollback, and then block the update
Was hoping it was possible to avoid that
Crap wrong ping
why no run under w11, have you tried running in compatabilty mode?
Is that the vendor saying it or has this been tested
Reseller of the vendor saying so
vendor probably says "not supported"
I will test it before I rollback, but I've got some other fires to work on, and I was hoping to avoid it entirely for the time being
my dealer has gone legit, so thats good.
theres suvs with truck chasis and some with car chasis
i wont but the car chasis..
A different client has now sent us three different label printers. Each time they send us a new printer, they send us a dedicated computer connected to their AD and VPN, with only the software for that particular printer installed.
They are now asking to confirm our AD usernames in THEIR AD before they send us a FOURTH printer and dedicated computer.
I now have a table with a row of computers and printers just for that client
SUVs with car chaises are vans
no no.. the small suvs, ie crossovers. to midsized are basically cars with 4wd
what kind of printers require so much preperitary access?
nope, only if you never registered ur btc account with an exchange
i miss 4 waysli
And -
They're all Zebra printers except for one.
The one that's not a Zebra - I spent three days on the phone with their desktop support, who only had half a page of notes from their application support team.
Turns out, you had to set the printer to Zebra-compatibility mode and the printer driver to text-only mode so that it could process Zebra's scripting language correctly.
Oh, and their web app only runs in IE5. Not IE 11. So even in Internet Explorer, you have to enable compatibility mode.
what kind of dedicated pcs are they sending? 386?
Dell OptiPlex 7060 and Dell Latitude 5420
They're normal computers, just preconfigured with their AD and SSO to their VPN, and the label software preinstalled and connected to their database(s).
guys I need a small help with Javascript can someone help? (second day) Question: how can I get the promise result from a promise in Javascript and make an other array with it?
from typing import overload
# for hints
@overload
def x(a: int, b: int) -> int:
return 0
@overload
def x(a: int, b: float) -> float:
return 0.0
@overload
def x(a: float, b: int | float) -> float:
return 0.0
# actual definition
def x(a: int | float, b: int | float) -> int | float:
return a + b
hello people
my aunt arrived
I've got a question
I'll be back in a bit
y = range(10)
print(y[x(2, 3)])
how can I create a python code where I write a few keywords and it writes me each possibility?
>>> print(type(range(10)))
<class 'range'>
>>> print(range(10)[5])
5
!e
import itertools
for comb in itertools.combinations("ABC", 2):
print(comb)
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | ('A', 'B')
002 | ('A', 'C')
003 | ('B', 'C')
!e
import itertools
for comb in itertools.permutations("ABC", 2):
print(comb)
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | ('A', 'B')
002 | ('A', 'C')
003 | ('B', 'A')
004 | ('B', 'C')
005 | ('C', 'A')
006 | ('C', 'B')
!e
import itertools
for comb in itertools.permutations("ABC", 3):
print(comb)
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | ('A', 'B', 'C')
002 | ('A', 'C', 'B')
003 | ('B', 'A', 'C')
004 | ('B', 'C', 'A')
005 | ('C', 'A', 'B')
006 | ('C', 'B', 'A')
!d collections.abc.Sequence
class collections.abc.Sequence``````py
class collections.abc.MutableSequence``````py
class collections.abc.ByteString```
ABCs for read-only and mutable [sequences](https://docs.python.org/3/glossary.html#term-sequence).
Implementation note: Some of the mixin methods, such as `__iter__()`, `__reversed__()` and `index()`, make repeated calls to the underlying `__getitem__()` method. Consequently, if `__getitem__()` is implemented with constant access speed, the mixin methods will have linear performance; however, if the underlying method is linear (as it would be with a linked list), the mixins will have quadratic performance and will likely need to be overridden.
Changed in version 3.5: The index() method added support for *stop* and *start* arguments.
iiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiiiiiiii
what function again, @empty jolt
!d itertools.permutations
For non-globals, it must be prefiexed properly with module name
I wanted that in the script with the possible combinations like (ABC) in the results can happen also ... (A,A,A)...(B,B,B)...(C,C,C)...
Ah ... so that means it gets uglier ...
Hey @rough trench!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
@rough trench are you in this VC?
Also, don't rely on floating point values (floats) for the price.
Use an int and just convert it dynamically ... using @property stuff will help (typing example now).
could someone try to help me cause Im trynna make a str magic method that when i run the code it prints the the title, author, and cost
class Book:
def __init__(self, /, title, author, price):
self._title = title
self._author = author
self.price = price
@property
def title(self, /):
return self._title
@property
def author(self, /):
return self._author
@property
def price(self, /):
return self._price / 100
@price.setter # not a typo
def price(self, value, /): # not a typo either
if type(price) in (int, float):
self._price = int(price * 100)
else: # assumimg proper format
self._price = price[0] * 100 + price[1]
# ...
def __lt__(self, other, /):
if not isinstance(other, Book):
raise TypeError(f'Cannot compare Book to {type(other).__name__}')
return self._price < other._price
# ...
Should help a bit for fixing the price issue...
But besides that, it provides getters for all three and a setter only for price, as an example btw
That price setter, the else assumes a 2-item sequence of ints.
If the currency is, say, USD (U. S. Dollars), then it would be [dollars, cents] so-to-speak
for the output of the price ... using a format string will help:
f"{self.title} by {self.author}, {self.price:.2f}"
Although I'd still recommend a better way for the currency if you can do so.
^ and @rough trench ... if this was for homework, I recommend you look up what everything does and understand how it works.
X_{n+1} = (a X_n + b), \textrm{mod}, m
how do I copy every word that is the same like if I wanna change all the solo's to duo's really quick?
https://store.steampowered.com/app/1198970/I_Am_Jesus_Christ/
@rugged tundra this is hilarious
https://store.steampowered.com/app/1366840/Moon_Farming/Go back in time over 2,000 years and follow the same path as Jesus Christ, from his baptism to the resurrection. Inspired by the New Testament stories, ‘I Am Jesus Christ’ is a simulation like no other.Are you prepared to fight with Satan in the desert, cure the sick and help the needy? Per...
2022
@tidal shard do you know how to do that?
how to copy every word that is the same and be able to change it all at once
it depends, are you talking about a piece of text? what's the filetype lmao
Chapters:
0:00 Theory
6:53 Python
In this video I will explain the main ideas behind the linear congruential generator. I will also implement a very simple example in Python.
based experience, game of the year
no, it is python (pycharm) and lets say there is this super long text and you want to delete every "hello" in the text, do you know a quick way to be able to copy every word that is the same
have you tried googling it? there's definitely an easy way to do that hahaha
https://www.jetbrains.com/help/pycharm/finding-and-replacing-text-in-file.html
took me like 5 seconds dude hahahaha
I am kinda drunk I'll drop by
At a congressional hearing on crytpocurrency, Bitfury CEO Brian Brooks explains the blockchain and how it plays an integral role in Web 3.0.
#Blockchain #Web 3.0
"My area of expertise is the heights of human folly."
Opal, do you like Yellow Tail wine?
Never had it.
@scenic wind Do I want to know?
👋
👋
@rugged root !
Look at this!
https://rbis-test.averydennison.com/en/home/our-solutions/apparel-and-footwear-labeling/in-plant-printing/snap-700-printer.html
The SNAP™ 700 printer enables businesses to produce hang tags, stickers, and care and content labels in their manufacturing facilities, allowing them a quicker response time to customers’ requirements.
It's a label printer with a DisplayPort output
Who needs a high resolution screen for a label printer?
Output I assume
I don't even have all the pieces yet
I was super frustrated about having to setup a FOURTH different model printer for the same client
And then I get this thing that talks to you and apparently supports color printing through thermal transfer
I'm now excited to see this
Call Ukraine for free through your Microsoft Calling Plan
MC342067 Published Mar 12, 2022Message Summary
You are receiving this message because your organization has a Microsoft Calling Plan.How this affects your organization:
In support of the people of Ukraine and their families and friends around the world, we’ve made it free to call Ukraine from any Microsoft Calling Plan. Until further notice, calls made to phone numbers within Ukraine from an active Microsoft Calling Plan will not count towards minutes bundled in the calling plan.
hello! If i wanted to just delete that in the picture, what would I have to change all the w to? I tried to change all the w to "Canvas(Radda_gubbe,width=1000,height=1000)" but then it just said error.. any help pls. Python tkinter
hey
hi
whats up
got a problem
wrote it right before your message
hello! If i wanted to just delete that in the picture, what would I have to change all the w to? I tried to change all the w to "Canvas(Radda_gubbe,width=1000,height=1000)" but then it just wouldn't work.. any help pls. Python tkinter
That just means it's wanting you to have a space after the comma
i have a question
What's the question?
how can i unmute myself haha
Oh check out the #voice-verification channel
That'll tell you what you need to know about our voice gate
ah ok i also want to talk about the homeoffice thing xD
i am coding a speech recognition asisstent
xD
Niiiice
!stream 928250196889075762
✅ @vast fog can now stream until <t:1647283472:f>.
@rugged tundra https://www.kalzumeus.com/2012/01/23/salary-negotiation/
Salary negotiation advice, mostly for engineers. Running total of raises negotiated due to this essay: $9M+.
@rugged root I tried it and that was not the solution
@rugged tundra buffet is a long term guy... simons is a short term guy..
hullo
sry im afk for a min
"award winning" 😂 😂 , @mild quartz , @rugged tundra
Sure
@shut goblet what do you want help with?
No...
I guess
let's switch to code-help voice
👋
xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 120.04*+ 60.01
1680x1050 120.04
1280x1024 120.04
1440x900 120.04
1280x800 120.04
1280x720 120.04
1024x768 120.04
800x600 120.04
640x480 120.04
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected (normal left inverted right x axis y axis)
1920x1080 60.00 + 59.94 50.00
1680x1050 59.95
1440x900 59.89
1440x576 50.00
1440x480 59.94
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
xrandr -- output "HDMI-1-0"
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 11 (RRQueryOutputProperty)
Serial number of failed request: 47
Current serial number in output stream: 47
#include <iostream>
int main(void){
int n;
std::cout << "Enter n: "; // no flush needed
std::cin >> n;
std::cout << "\nn: " << n;
return 0;
}
!e python import math a = (1,2,3) b = (10, 20, 30) print(math.dist(a,b))
@amber raptor :white_check_mark: Your eval job has completed with return code 0.
33.67491648096547
I would l ike to
@midnight agate
yeah\
yeah
Why is it printing hello first
I mean First Hello ... then message...
instead of message ... "HELLO"
Cool
Why?
?
No
Why is it printing first hello
then the message we sent
I meant Why is it executing grep
then print message
ah, got it...
@midnight agate
you have s there
I didn't see that...
yeah
Cool
No one is selling grep
does bufferreader means any data?
buffer for any data
yeah
I'm lost...
Yeah, I didn't have perquisites
prerequisites
yeah
explain
Ah, got it
It's cool
you can only collect valid ones...
@midnight agate is that it?
yeah... simple
and clean
I'm from Belo Horizonte, Minas Gerais. Your accent reminds me a little Portuguese-Portugal
yeah
I didn't understand what is openoptions
@midnight agate
Ah, it gives all the options @midnight agate
I like it too...
pipe operator
@midnight agate
yes
what does seek does?
okay its like cursor
replace it
@midnight agate doesn't it do it in memory... why do we care about speed of ssd if just read once.
yeah, it makes sense... you already said you are refreshing it every 1/10 of a sec...
so it is in hard disk
10000
yeah... I thought... for performance... we read file to memory and lock it or something...
haha, no
I wonder, if we can write code rust in rust using vim... in rust
No ... with that command
rust inside rust
@midnight agate bye, gotta go
good idea
I cant see the stream
mountain man username
!e ```py
vs = (3,1), (2,2), (1,3)
alpha = sorted(vs, key=lambda a: a[0])
beta = sorted(vs, key=lambda a:a[1])
print(alpha)
print(beta)
#sorted(vs, key=lambda a: a[0]) being roughly equivalent to
def func(a):
return a[0]
sorted(vs, key=func)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [(1, 3), (2, 2), (3, 1)]
002 | [(3, 1), (2, 2), (1, 3)]
!e py k = iter([1, "a"]) vs = 1, 2 sorted(vs, key=lambda a: next(k))
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | TypeError: '<' not supported between instances of 'str' and 'int'
!e py k = iter([2, 1]) vs = "ab" print(sorted(vs, key=lambda a: next(k)))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['b', 'a']
!e py text = "applecakes" print(sorted(text))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['a', 'a', 'c', 'e', 'e', 'k', 'l', 'p', 'p', 's']
!e py text = "applecakes" print(*sorted(text), sep="") result = "".join(sorted(text)) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | aaceeklpps
002 | aaceeklpps
!e
vowels_iter = iter(vowels)
for _ in range(10):
print(next(vowels_iter))```
@ruby lantern :x: Your eval job has completed with return code 1.
001 | a
002 | e
003 | i
004 | o
005 | u
006 | Traceback (most recent call last):
007 | File "<string>", line 4, in <module>
008 | StopIteration
!e py import itertools vs = itertools.cycle("abc") for _ in range(9): print(next(vs))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | a
002 | b
003 | c
004 | a
005 | b
006 | c
007 | a
008 | b
009 | c
!e ```py
def my_generator():
a = ""
while True:
yield a
a += "*"
g = my_generator()
print(next(g))
print(next(g))
print(next(g))
print(next(g))```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 |
002 | *
003 | **
004 | ***
why we add , at the end in some list
@willow lynx What do you mean?
That'll be the __str__, __repr__ or __format__ method for whatever kind of object that is that's doing that.
It won't be a native list.
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('int:pk/', views.DetailView.as_view(), name='detail'),
path('int:pk/results/', views.ResultsView.as_view(), name='results'),
path('int:question_id/vote/', views.vote, name='vote'),
]
there is comma at the end
I am trying to learn django
!e py text = "apple" result = type(text) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
<class 'str'>
!e py a = [1, 2, 3,] print(a)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 3]
Python Enhancement Proposals (PEPs)
!e ```py
class MyList(list):
def str(self):
a = super().str()
return f"{a[:-1]},]"
m = MyList("apple")
print(m)
print(type(m)) ```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | ['a', 'p', 'p', 'l', 'e',]
002 | <class '__main__.MyList'>
!e py a = list("apple") print(a.__str__())
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['a', 'p', 'p', 'l', 'e']
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[1, 2, 2]
!e py a = "apple" print(a[:-1])
!e
class MyList(list):
def __str__(self):
for _ in self.__class__.__bases__:
print(_.__name__)
a = super().__str__()
return f"{a[:-1]},]"
m = MyList("apple")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
appl
!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.
!e
class MyList(list):
def __str__(self):
for _ in self.__class__.__bases__:
print(_.__name__)
a = super().__str__()
return f"{a[:-1]},]"
m = MyList("apple")
print(m)
@ruby lantern :warning: Your eval job has completed with return code 0.
[No output]
!e
class MyList(list):
def __str__(self):
for _ in self.__class__.__bases__:
print(_.__name__)
a = super().__str__()
return f"{a[:-1]},]"
m = MyList("apple")
print(m)
@ruby lantern :white_check_mark: Your eval job has completed with return code 0.
001 | list
002 | ['a', 'p', 'p', 'l', 'e',]
Build cross-platform desktop apps with JavaScript, HTML, and CSS.
// ES5
const fs = require('fs');
// ES6+
import fs from 'fs';
both
react has stopped support for IE
18
How long have you been leet coding?
How do you approach a problem in leetcode? Do you always go for the efficient solution first or brute force?
say: you see a problem and it's obvious to do the brute force way. Do you still brute force or go for the efficient?
😄
true
web developer?
Full stack :D?
I do js mostly. but use python for data analysis
was this directed at me?
no no
@ruby lantern , you sound somewhat like the content creator of codedamn
youtube channel
Tune into this video till the end, to find out EXACTLY what you need to get a full-stack web developer job in 2022! Let's discuss how you can approach it, and how companies like codedamn hire people like you who are applying for an SDE role in mid-size start-up companies and in places you are needed!
Drop a comment and let us know if you watch...
See ya
type
25
Where are you from brian?
Arizona, United States
How long have you been working as web dev?
4 years
you are in what position? senior??
