#voice-chat-text-0
1 messages ยท Page 1004 of 1
@lavish rover static arrays ^
@lavish rover is a Big O Notation genius
@lavish rover can you help me with regex with SPL?
!e python print(pow(2,2))
@amber raptor :warning: Your eval job has completed with return code 0.
[No output]
!timeit python a = 0 for i in range(0,1000000): a += pow(a,i) print(a)
@amber raptor :warning: Your timeit job timed out or ran out of memory.
[No output]
mustafaquraish
Is it tru thats it better to learn GO first, and then Java?
!e import time
a = 1
while True:
a += 1
time.sleep(2)
@delicate cloud :x: Your eval job has completed with return code 1.
001 | File "<string>", line 4
002 | a += 1
003 | ^
004 | IndentationError: expected an indented block after 'while' statement on line 3
!e
import time
a = 1
while True:
a += 1
print(str(a))
time.sleep(2)
@delicate cloud :x: Your eval job timed out or ran out of memory.
001 | 2
002 | 3
003 | 4
// KUSEG: 2048MB
0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
// KSEG0: 512MB
0x7fffffff,
// KSEG1: 512MB
0x1fffffff,
// KSEG2: 1024MB
0xffffffff, 0xffffffff,
hlo @whole bear
@stuck comethttps://www.django-cms.org/en/
django CMS is the leading enterprise CMS powered by the community, backed by the django CMS Association. Find out more and find out how you can participate
@woeful salmon https://codemyui.com/expanding-card-ui-reveal-blog-content/
@whole bear you like it? xD
No I didn't
Howdy howdy.
Your docstrings?
Or your comments?
Comments should generally only be used if they enhance the readability of your code.
Too many comments make your code less readable.
I've heard of some instructors requiring comments on every single line of code...
Which, you know...why?
Just no.
I can appreciate wanting to have students able to understand and explain what code is doing, but ungh.
@pallid hazel
Oh, this is your work thing?
Your functions shouldn't have 10,000 variables.
If you have 10,000 variables, you need data structures.
10,000 though...really?
Crikey o' Mikey.
It's on you to write maintainable code.
Code other people can work with.
I'm not unsympathetic, but that is a thing.
Mm.
I don't have the math background to fully understand the equations.
The symbology is all Greek to me.
This is amusing, because it's literally Greek.
i do understand the equations a lil bit but not the concept itself :x
verboof would probably know
what ide is this ?
How do I get global ports into a python socket? To be able to connect from another computer
Python has the requests module. However, when designing network stuff, I've used Twisted.
I'm not an expert.
Or is it socket in Python?
I don't know.
Shows you what I mean by not being an expert. But yes. Twisted will definitely do what you want.
At least in terms of opening ports on your machine.
Engineering internet-originating connections into your computer is beyond the scope of that, however.
You'd need to configure whatever gateway you have in terms of your internet access to pipe the port into your server.
Or use some kind of hosting service.
how do you think this function looks?
def get_random_color():
color = random.randrange(0, 0xffffff)
r = color >> 8 * 2 & 0xff
g = color >> 8 & 0xff
b = color & 0xff
print(r, g, b)
return r, g, b
strange
Um...
Yeah, I've got ears on.
Just not talking.
For now.
But soon. Soooon. Mwawhaha.
Okay. Function.
Binary operators.
I think that binary operators are fine and all if you understand exactly what's going on.
They aren't exactly something that a lot of people use.
Why not ints?
Why hexes?
I mean, I know they're int.
Ah, I get you.
Well...I mean...
!e py import numpy as np population = 5 channels = 3 arr = np.random.randint(0, 256, population * channels).reshape(population, channels) print(arr)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [[ 50 230 127]
002 | [ 4 188 172]
003 | [135 208 111]
004 | [240 14 205]
005 | [187 117 54]]
@woeful salmon
def get_random_color():
color = random.randrange(0, 0xffffff)
r = color >> 16
g = (color >> 8) & 0xff
b = color & 0xff
return (r, g, b)
that kinda doesn't improve much as python does any binary / math operations between literals like 8 * 2 at compile time
fair
!e
import dis
def foo():
return 8 * 2
print(dis.dis(foo))
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 4 0 LOAD_CONST 1 (16)
002 | 2 RETURN_VALUE
003 | None
you're right in the thing that i can skip the & 0xff for the red though
since i'm sure i won't get anything over 0xffffff
def get_hex_color(r, g, b):
return hex((r << 8 | g) << 8 | b)
nah your suggestion does save me 1 operation and i'm running this function a few thousand times so it does help
just the 8 * 2 is just easier to tell what's going on from reading it is the only thing i wanted to mention on it since python will change it to 16 at compile time anyway
tis be true
echo "$ENV:PATH = <path-to-conda>:$ENV:PATH" >> $profile
echo "$PATH = C:\ProgramData\Anaconda3\Scripts:$ENV:PATH" >> $profile
echo "$PATH = C:\ProgramData\Anaconda3\Scripts:$ENV:PATH" >> $profile
notepad $profile
yea?
:D
thanks alot reaper and everyone, I'll be off for a bit, I might be back
Jusโ Jah
Y A S R A A R A O R I N A X X M A
@woeful salmon vite apparently doesn't support react native
(LADY GAGA)
(CHAMPIONS)
(NUPUR LALA)
(EMPRESS MENEN) / (EMPRESS ASFAW)
(THUNTATA)
(OTTO KLEMPERER)
(ASSISI)
(BUCHANAN)
(RATTATA)
(XY COORDINATES)
(TOM PAPA)
ah yeah for react native i would recommend checking out expo cli
it should help you with testing on both your mobile and an emulator easily while writing your app ๐
and will also handle compiling to both android and ios for you
i dont understand anything here....
cs50x challenge
@rugged root https://youtu.be/Slwai2Jhy_A
Buy some merch at https://www.lttstore.com/
Create your build at https://www.buildredux.com/linus
Visit Manscaped for 20% OFF and free shipping at https://manscaped.com/TECH
get dbrand's DIY kit starting at $24.95 (dbrand tricked us) at https://dbrand.com/doityourself
Check out Sizzle Popcorn with free shipping on orders over $34 CAD 15% off...
for expo I need to sign up
isn't that only if you use their mobile app?
well then you can use the react native cli but it would be more manual setup and configuration then expo
this is a half-baked mess
kotlin would feel similar too i think just easier to initialize project
apparently with expo you don't do local builds
everything is built on their servers
so you need an account
which is honestly plain stupid but whatever
LCNE TO A BRXT
scusi?
LINE TO A BRXT
nothing could be clearer
might make more sense if you were in the voice chat :D
lol have fun!
@zenith radish can you explain what's happening please
"Voodoo Child (Slight Return)" is a song recorded by the Jimi Hendrix Experience in 1968 that appears as the final track on the Electric Ladyland album released that year. It contains improvised guitar and a vocal from Jimi Hendrix, backed by Noel Redding on bass and Mitch Mitchell on drums. The song is one of Hendrix's best known; it was a fea...
@zenith radish please explain what is happening
we are working on the cs50x challenges
ORNITHOLOGIST
GOONDIWINDI
HOUNSLOW
DICKS
THE BLUETONES
ALBERT ARENAS
The castle grounds snarled with a wave of magically magnified wind. The sky outside was a great blac
AbeBooks.com: Harry Potter and Leopard Walk Up to Dragon: The best-known Chinese-language unofficial Harry Potter book, most certainly not penned by J.K. Rowling, with scattered illustrations in a manga style that has little to do with Mary GrandPre's illustrations. vi, 198 pp. Wraps. Near Fine with light rubbing to wraps. According to one Engli...
What's your question?
If you wear a nicotine patch to quit smoking, do you wear a monkey patch to quit monkeying?
@whole bear Yeah you can ask, but better to ask in here
I'm often having to hop away from my desk, so this way more people have eyes on your question and can answer
okey
sprintf(ascii_banner_line0, "\033[2J\033[1;1H");
sprintf(ascii_banner_line1, "\e[1;36m \e[1;36m \e[1;36m โโโ\e[1;36mโโโโโโ \e[1;36m \r\n");
sprintf(ascii_banner_line2, "\e[1;36m \e[1;36m \e[1;36m โโโ\e[1;36mโ โ โ โโ \e[1;36m \r\n");
sprintf(ascii_banner_line3, "\e[1;36m \e[1;36m \e[1;36m โโโ\e[1;36mโโโโฉ โฉ \e[1;36m \r\n");
sprintf(ascii_banner_line4, "\e[1;36m \e[1;36m ๐ข๐ฎ๐ช\e[1;36m'๐ผ ๐ช๐ป๐ฎ ๐ช๐ต\e[1;36m๐๐ช๐๐ผ ๐ซ๐ฎ๐พ๐ฝ๐ฒ๐ฏ\e[1;36m๐พ๐ต \r\n");
sprintf(ascii_banner_line5, "\e[1;36m \e[1;36m โโโโโโโโ\e[1;36mโฆโโโโโโโโโ\e[1;36mโโโโโโโโโโโโโ\e[1;36mโฆโโโโโโโโ \r\n");
sprintf(ascii_banner_line6, "\e[1;36m \e[1;36m โโโโโโโโ\e[1;36mโฆโโโโโโโโโ\e[1;36mโโโโโโโโโโโโโ\e[1;36mโฆโโโโโโโโ \r\n");
sprintf(ascii_banner_line7, "\e[1;36m \e[1;36m โ โ โ โ \e[1;36mโ Welcome \e[1;36mto Sea Panel \e[1;36mโ โ โ โ โ \r\n");
sprintf(ascii_banner_line8, "\e[1;36m \e[1;36m โ Pow\e[1;36merful Laye\e[1;36mr 4/7 + Bypas\e[1;36mses. โ \r\n");
sprintf(ascii_banner_line9, "\e[1;36m \e[1;36m โโโโโโฆโโ\e[1;36mโโโโโโโโโโ\e[1;36mโโโโโโโโโโโโโ\e[1;36mโโฆโโโโโโโ \r\n");
sprintf(ascii_banner_line10, "\e[1;36m \e[1;36mโโโโโโโโฉโโ\e[1;36mโโโโโโโโโ\e[1;36mโโโโโโโโโโโโโ\e[1;36mโโโฉโโโโโโโโโ\r\n");
sprintf(ascii_banner_line11, "\e[1;36m \e[1;36mโ โ โ โ โ \e[1;36mCONNECTIO\e[1;36mN [ESTABLISHE\e[1;36mD] โ โ โ โ โ\r\n");
sprintf(ascii_banner_line12, "\e[1;36m \e[1;36mโโโโโโโโโโ\e[1;36mโโโโโโโโโ\e[1;36mโโโโโโโโโโโโโ\e[1;36mโโโโโโโโโโโโ\r\n");
sprintf(ascii_banner_line13, "\e[1;36m \e[1;36m Type\e[1;36m help for\e[1;36m all the comm\e[1;36mands \r\n");
sprintf(ascii_banner_line14, "\e[1;36m \r\n");
this
is dumb
but i need help
im making a cnc
for educational purposes ethical hacking.
And I am stupid asf so idk how i can test it
to see if the color codes work
bro
why can i not speak ive spoken more than 50 messages
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
It's not automatic.
Also we don't really assist with any hacking things. For educational purposes or otherwise
Oh okay I did not know that.
No worries!
I mean tbh its just text so idk if thats assisting with hacking.
xD
I mean I totally understand
Work ethic hacking, well, we do tend to be encouraging.
I mean color code
yup
yes it is xD
uh
hi lemon
someone have a conversation with me
any subject
i need to reach 50 messages
you could just try printing tho
YEA true
but the thing is
my cnc dosen't support it :(
I already did sprintf
:/
its nice
THERE'S NO NEED TO CALL ME SIR, PROFESSOR
THE WAND CHOOSES THE WIZARD
ONE CAN NEVER HAVE ENOUGH SOCKS
YOU ARE TRULY YOUR FATHER'S SON, HARRY
I CAN TEACH YOU TO BOTTLE FAME, BREW GLORY, EVEN STOPPER DEATH
SCARED, POTTER?
AWFUL THINGS HAPPEN TO WIZARDS WHO'VE MEDDLED WITH TIME
just too many mosquitos
aw
thats annoying
haha i cant spell
mabye thats why nothing that i make works
traceback
na
Im remaking it a bit
last second my || customer || told me to add white text 
@zenith radish block cuz i ask question ? xD
:(
sprintf(ascii_banner_line0, "\033[2J\033[1;1H");
sprintf(ascii_banner_line1, "\e[1;36m \e[1;36m โโโโโโโโโ \r\n");
sprintf(ascii_banner_line2, "\e[1;36m \e[1;36m โโโโ โ โ โโ \r\n");
sprintf(ascii_banner_line3, "\e[1;36m \e[1;36m โโโโโโโฉ โฉ \r\n");
sprintf(ascii_banner_line4, "\e[1;36m \e[1;36m ๐ข๐ฎ๐ช'๐ผ ๐ช๐ป๐ฎ ๐ช๐ต๐๐ช๐๐ผ ๐ซ๐ฎ๐พ๐ฝ๐ฒ๐ฏ๐พ๐ต \r\n");
sprintf(ascii_banner_line5, "\e[1;36m \e[1;36m โโโโโโโโโฆโโโโโโโโโโโโโโโโโโโโโโโฆโโโโโโโโ \r\n");
sprintf(ascii_banner_line6, "\e[1;36m \e[1;36m โโโโโโโโโฆโโโโโโโโโโโโโโโโโโโโโโโฆโโโโโโโโ \r\n");
sprintf(ascii_banner_line7, "\e[1;36m \e[1;36m โ \e[37m \e[37mโ โ โ โ Welcome to Sea Panel โ โ โ โ \e[1;36mโ \r\n");
sprintf(ascii_banner_line8, "\e[1;36m \e[1;36m โ \e[37m \e[37mPowerful Layer 4/7 + Bypasses. \e[1;36mโ \r\n");
sprintf(ascii_banner_line9, "\e[1;36m \e[1;36m โโโโโโฆโโโโโโโโโโโโโโโโโโโโโโโโโโโฆโโโโโโโ \r\n");
sprintf(ascii_banner_line10, "\e[1;36m \e[1;36mโโโโโโโโฉโโโโโโโโโโโโโโโโโโโโโโโโโโโฉโโโโโโโโโ\r\n");
sprintf(ascii_banner_line11, "\e[1;36m \e[1;36mโ \e[37m \e[37mโ โ โ โ CONNECTION [ESTABLISHED] โ โ โ โ \e[1;36mโ\r\n");
sprintf(ascii_banner_line12, "\e[1;36m \e[1;36mโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\r\n");
sprintf(ascii_banner_line13, "\e[1;36m \e[1;36m \e[37m \e[37mType help for all the commands \r\n");
sprintf(ascii_banner_line14, "\e[1;36m \r\n");
LOST IN TRANSLATION
WillR
I hope this letter finds you wellI I expect you
now know Iโve had trouble with bugs in the
game I purchased over a month agoV Iโm
disappointed by the experience and
Iโm writing in order to once again ask about
next steps in getting this problem resolvedE
Greatly appreciate your supportR
Samantha
nice men
no idea what ur saying
but nice
<3
Final Fantasy is like the rapture. There's always a next one.
A key? What A key? Oh, you mean the hole key?
anyways i gotta go now cya later ๐
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Showing a close-up view of the Infinite Scroll Wheel feature of the Logitech G502 Hero mouse. Logitech G502 Lightspeed : https://amzn.to/3EH28ok
Don't forget to like and subscribe if this was useful to you!
The Amazon links above are affiliate, which means that I may get a small commission from them if you decide to buy something on their web...
Scumbag Python. Code raises an exception. Traceback claims exception exists on the line below where the problem actually is.
Vis a visa.
@terse needle When you were talking about macros in Rust being expensive or slow, is that at runtime or compile time?
I never said they were "expensive" although I did say they were "extensive"
nah, it's fine
It sucks when I read read as read and not read so I have to re-read read as read so I can read read correctly
Read Dead Repemption
I wonder if a functional language would be good to implement the Chip-8 thing
Might try doing it in Reason
Been meaning to find a good thing to use it on
@whole bear Don't post chainmail here please.
Plenty of other servers to do that on
"Final Fantasy" was named so because it was a last-ditch effort for the studio that was supposedly going to shut down.
Hello hello hello...
https://www.twitch.tv/videos/1442697715 shortly after 49:20 I got two achievements yet we still lost?
@lavish rover They're onto you
that was after people found the book from the reddit
Gotcha
import re
x = '([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])'
IP_V4_PATTERN = re.compile(f'{x}.{x}.{x}.{x}')
del x
I'm going to actually work now. Ya'll take care.
Catch you later
hey guys
0b0001 << 1 == 0b0010
Sorry to hear that
your number 1 ... that's my L4D2 Witch music. (Edit: Carmelldansen)
Although my Tank music is Nico Nico Niii
https://www.planetminecraft.com/blog/what-creepers-might-actually-be/
Peat (green moss)
Long live Digital Ocean's pricing!
Have you ever been searching for a desired pokemon only to never encounter them? Or been trying to avoid those pesky Zubat only to get several encounters? Fear no more as speedrunners have solved this problem with RNG manips and predictive equations!
Patreon: https://www.patreon.com/abyssoftโ
Business: abyssoftbusiness@gmail.com
Become a memb...
Important: If you are looking for ReScript (formerly BuckleScript) installation instructions, please refer to the ReScript website.
Quick overview: Pattern matching
I read it as "coefficient" for along time ๐... @rugged root is right!
Quoshunt
fenetic
fanatic?

Hooked on fonicks
The first step to getting help is admitting you have a problem
Worst part of fixing english language.... some words caught on and some don't... and it becomes more inconsistent!
\u00f7 : DIVISION SIGN - รท
@wind raptor Can you check this?
as mentioned in the comment, this code fails to take into account spaces
which dont exist in the alpha string
and thus results in index raising an error
so, to fix this you could add an if statement to check if the char is a letter and do something different if thats not the case
@shut hill
So can you show me ๐ญ
https://leo-lang.org/ Had anyone heard of this language before?
The first programming language built specifically for zero-knowledge applications.
A free test data generator and API mocking tool - Mockaroo lets you create custom CSV, JSON, SQL, and Excel datasets to test and demo your software.
helloo
@zenith radish
let expanded_range = container_acc
.iter()
.filter(|x| matches!(x, Token::Parameter(_)))
.map(|range| match range {
Token::Parameter(Range::Full(full)) => full.clone().collect::<Vec<_>>(),
Token::Parameter(Range::From(from)) => (0..=from.end).collect::<Vec<_>>(),
Token::Parameter(Range::To(to)) => {
(to.start..=arr.len() - 1).collect::<Vec<_>>()
}
_ => panic!(),
})
.flatten()
.unique()
.map(|wlang_index| arr.len() - (wlang_index + 1))
.sorted()
.rev()
.collect::<Vec<usize>>();
Co-authored-by: Mustafa Quraish <mustafaq9@gmail.com>
.
I Think I Downloaded The Wrong "The Batman" Movie
Mister Batman! Mister Batman!
Song
Vana Gadiyaramlo
Artist
S.P. Balasubrahmanyam
Album
Muta Mestri
เฐฎเฑเฐ เฐพเฐฎเฑเฐธเฑเฐคเฑเฐฐเฐฟ
I Think I Downloaded The Wrong Batman Movie
South Indian Batman (Tollywood, Kollywood, Mollywood)
Mutha Mestri is a 1993 Indian Telugu-language action film directed by A. Kodandar...
@lavish rover do you code in c++ Also or not
Yes I do
why i need to wait 3 days
this regulation is not happening in comunist cuba
๐
3 days is not acceptable i think
mustafa where are you from
@lavish rover
I wish it was not like that
are you from turkey?
I don't mean to be rude, but why does it matter where I'm from
@somber heath maybe you could show/teach how to code but I don't know how to code at all
Yes python I will start with that but would you share screen and show me how
thats why i asked to you
Youtuber Corey Schafer. Playlists. Python for Beginners.
how can i make freelancer jobs wih writing programing? i know C language little bit
i can write hello world in C language
Knowing hello world isn't really enough knowledge to get any programming job, you still need to learn a lot more
especially if you want a job in C, you need to be really good at it
those are just the basics.
Can you for example, write a project in C from scratch, for example a program to search for a file on your machine?
how can i improve myself in C programing to make remote jobs i want to be proffession
Try to work on projects, come up with some idea and try to implement it yourself in C
try making up more and more complex programs
i cant do that i dont know how to open a file in my computer
Well, that's what I mean, figure out a project you want to do and keep researching how to do things till you can do it
Is it true that people should learn python then Java then JavaScript and then c++
are you able to make remote jobs in C mustafa?
did you said something i didnt hear you
yeah
how old are you
As old as the sun.
learning a programing language is not very easy
@lavish rover @somber heath Should I buy a beginners books for coding for Python and then Java and then Javascript and then c++
People talk about "Automate the Boring Things With Python" and "A Bite[byte?] of Python."
The former of which is a physical book, but also downloadable, I believe.
Don't know about the latter.
I would argue there's plenty of online material to learn from without needing to buy anything.
But suit yourself.
Nanu nanu technology.
No I'm Not paying for course I'm going to go to college for computer science
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!resources data science
import re
from django import template
REGEX_CONSECUTIVE_NON_LETTERS = r"[^A-Za-z0-9]+"
register = template.Library()
def _to_kebabcase(class_name: str) -> str:
"""
Convert any string to kebab-case.
For example, convert
"__Favorite FROOTยค#/$?is----LeMON???" to
"favorite-froot-is-lemon"
"""
# First, make it lowercase, and just remove any apostrophes.
# We remove the apostrophes because "wasnt" is better than "wasn-t"
class_name = class_name.casefold()
class_name = class_name.replace("'", '')
# Now, replace any non-letter that remains with a dash.
# If there are multiple consecutive non-letters, just replace them with a single dash.
# my-favorite-class is better than my-favorite------class
class_name = re.sub(
REGEX_CONSECUTIVE_NON_LETTERS,
"-",
class_name,
)
# Now we use strip to get rid of any leading or trailing dashes.
class_name = class_name.strip("-")
return class_name
@register.filter
def to_kebabcase(class_name: str) -> str:
"""Convert a string to kebab-case."""
return _to_kebabcase(class_name)
str.casefold()```
Return a casefolded copy of the string. Casefolded strings may be used for caseless matching.
Casefolding is similar to lowercasing but more aggressive because it is intended to remove all case distinctions in a string. For example, the German lowercase letter `'ร'` is equivalent to `"ss"`. Since it is already lowercase, [`lower()`](https://docs.python.org/3/library/stdtypes.html#str.lower "str.lower") would do nothing to `'ร'`; [`casefold()`](https://docs.python.org/3/library/stdtypes.html#str.casefold "str.casefold") converts it to `"ss"`.
The casefolding algorithm is described in section 3.13 of the Unicode Standard.
New in version 3.3.
!resources data science
@lavish rover Check this out
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!tags
ยป functions-are-objects
ยป global
ยป guilds
ยป identity
ยป if-name-main
ยป indent
ยป inline
ยป intents
ยป iterate-dict
ยป kindling-projects
ยป listcomps
ยป local-file
ยป microsoft-build-tools
ยป modmail
ยป mutability
Integrate your service with Discord โ whether it's a bot or a game or whatever your wildest imagination can come up with.
#bot-commands
import os
def update_and_push():
os.system("git add test.txt")
os.system("git commit -m 'update test.txt'")
os.system("git push")
;
https://computing.mit.edu/
@latent ginkgo
The MIT Schwarzman College of Computing is leveraging existing resources, launching new activities and programs, and infusing MIT with exceptional talent in computing.
@dull fractal you think i can get into MIT as an international student
Not sure... go to the MITAdmissions subreddit and post.
ight thx
hack what-?
it depends but
wifi hacking
hmmm
try a harmless backdoor
restart their laptop when they're playing games
!rule 5 fyi
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
q
Beg pardon?
im tryna learn programming so i can get to artificial intelligence later
Hang out in #data-science-and-ml ?
It pleases me that's you're going from ground up.
got some books n shi tryna learn python
๐
A lot of people try to tackle ML from the summit of it and are all "Wah, too hard." Like, yeah. No shit.
yeah
i got a lot of friends like that
and now im the only one left who stills tries
๐
15 on 4th
im 17 on 11th of may
oo
but i just started programming
i feel like i wasted a lot of time
cuz i just started
ye pycharm is pretty good
gn
yo
im traying to download pyaudio in vsc
but its giving me [ERROR: Command errored out with exit status 1:]
so
could anyone help me
check the voice verification
chat
no
meow
you need to send 50 messages
:ok_hand: applied mute to @elfin tundra until <t:1648886263:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
@slender mesa hi
I don't know what to talk but I am going to send 50 messages, not spamming though 1
Hi Bro what's up
I am a Java developer
The purpose of me being here is to practice my English speaking, because I am going abroad and working abroad in the future
nice
java or javascript ?
Java
like to think it like a story whenever i code
There's like 7 ppl in vc
A high-performance and high-level purely functional data-parallel array programming language that can execute on the GPU and CPU.
๐๐๐๐๐
Ctrl r
HemuL8R
This
what the hell is this?
Not only is this code, it's mostly extremely well put together code.
cargo build && rust-gdb ./target/debug/binary-name
pub fn load<T>(buf: &Vec<u8>, offset: u32) -> T {
let offset = offset as usize;
let mut result: T = 0x0 as T;
for byte_offset in 0..std::mem::size_of<T>() {
result = result | (buf[offset + byte_offset] as T) << (byte_offset * 8);
}
result
}
It's very good code for a beginner, you are correctly following PEP8 and best practices
You have one hell of an uncle
Evening
Just doing some school work
Yeah and I have like 3 hours to finish them so yeah, fun stuff
Oh, and I also got my DuckDuckGo email thingie
I didn't have to wait for long
Returns the size of a type in bytes.
pub fn load8(buf: &Vec<u8>, offset: u32) -> u8 {
buf[offset as usize]
}
pub fn load16(buf: &Vec<u8>, offset: u32) -> u16 {
let offset = offset as usize;
let mut result: u16 = 0x0;
for byte_offset in 0..2 {
result = result | (buf[offset + byte_offset] as u16) << (byte_offset * 8);
}
result
}
pub fn load32(buf: &Vec<u8>, offset: u32) -> u32 {
let offset = offset as usize;
let mut result = 0x0;
for byte_offset in 0..4 {
result = result | (buf[offset + byte_offset] as u32) << (byte_offset * 8);
}
result
}
do Rust macros have access to the type system or is it just purely syntactical
pub fn load8(&self, addr: u32) -> u8 {
let (region, offset) = map::find_region(addr).expect("Unknown memory region in load8");
return match region {
MemoryRegion::BIOS => utils::load8(&self.bios.data, offset),
MemoryRegion::RAM => utils::load8(&self.ram.data, offset),
MemoryRegion::Expansion1 => {
trace!("Unhandled load8 at Expansion1 range.");
0xff
}
_ => panic!(
"Unhandled load8 at address 0x{:08X} (MemoryRegion::{:?})",
addr, region
),
};
}
trait Load {
fn load(&self, buf: &Vec<u8>) -> Self;
}
impl Load for u8 {
fn load(&self, buf: &Vec<u8>) -> Self {
buf[self as usize]
}
}
impl Load for u16 {
fn load(&self, buf: &Vec<u8>) -> Self {
let offset = self as usize;
let mut result: u16 = 0x0;
for byte_offset in 0..2 {
result = result | (buf[offset + byte_offset] as u16) << (byte_offset * 8);
}
result
}
}
impl Load for u32 {
fn load(&self, buf: &Vec<u8>) -> Self {
let offset = self as usize;
let mut result = 0x0;
for byte_offset in 0..4 {
result = result | (buf[offset + byte_offset] as u32) << (byte_offset * 8);
}
result
}
}
Hello
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

damn! passed
https://medium.com/javarevisited/using-wsl-2-with-x-server-linux-on-windows-a372263533c3 @copper shard
hello everyone
โ @dull fractal can now stream until <t:1648912946:f>.
๐
Yeah, might need to fetch.
Erm, both work. They do slightly different things.
Fetch doesn't automatically merge.
I don't use git often enough, so I'm full of doubt about what the correct commands are ๐
You should listen to KJ instead.
hey
(He) or (She)?
My cat is a certified thembo
Oh @dull fractal, I know a website that might help you understand.
One sec
Oh yeah
I almost forgot 'bout this thing
Rebasing is the first lesson in the "advanced" section lesson 4 in the introduction sequence.
Thanks @stuck furnace -- I actually have this saved as a bookmark ๐
heya guys long time no see how is everyone doing
VIM Editor
Interview with a VIM Enthusiast in 2022 with Veyron Mustan - aired on ยฉ 2022 The VIM.
Inspiration++:
https://www.youtube.com/watch?v=ST7vnfKjfvY
Programmer humor
Software humor
Software tools
VIM humor
VIM jokes
vi editor
Programming memes
VIM 2022
VIM memes
vim jokes
ssh
IDE
IntelliJ
VS Code
shell integration
custom commands
visua...
git remote add upstream https://github.com/thething.git
@terse needle https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@terse needle
Sepultura - Roots Bloody Roots [OFFICIAL VIDEO] - YouTube
Sepultura's video for 'Roots Bloody Roots' from the album,Roots - available now on Roadrunner Records. Download the album on iTunes: http://smarturl.it/sep-roots
LYRICS
Roots bloody roots
Roots bloody roots
Roots bloody roots
Roots bloody
I believe in our fate
We don't need to fake
It's all we wanna be
Watch me freak
I say we're growing ever...
yo
whats up guys
my name is litho
i like to code
im 14
i play valorant
@latent ginkgo how are you
today is ramadan
inshallah we both compelte it
i wanna become a python code
what is it
go to voice char 1
alr what is it
yo
hm?
ok
i wanna get my 50 msgs
wait
i need to talk more
yea
im tryna become a pro coder
and
i hate school
hi
sick
yes me too๐ฃ ๐
๐
okay come let's talk so we can get 50 messages
i cant rn my b im doing hw
?
hummm okay how are u
It's my favorite word
Who's talking?
KJ and Mustafa
Where's KJ?
idk
Invisible
@icy axle ctrl r
do ctrl + r
Tech featured in this video:
- Learn more about the GPT-3 API Here: https://openai.com/blog/openai-api/
- GPT-3 Paper: Language Models are Few Shot Learners - https://arxiv.org/abs/2005.14165
- Avatar for GPT-3 provided by Synthesia https://www.synthesia.io/
Resources for JavaScript developers:
- DevAnywhere - Live, remote 1:1 mentorship subs...
Sure ๐
@icy axle we can hear you fine
Did I disconnect?
just now, yeah
I don't know if you were or not, but as a friendly reminder, trying to spam to get your requirement met is going to be seen as something which will make you take longer to get voice verified.
Oh i wasnt, i was talking to someone in vc
They can speak
But i cant
It's not just a message requirement. Make sure to fully read the voice verification channel.
No, but just trying to help.
Hey guys Can anyone help me identify the number of operands in a source code by hand?
public class Deneme {
public int x;
public int y;
public Deneme(int x, int y) {
this.x = x;
this.y = y;
}
public int x2y2() {
return x * x + y * y;
}
public double Squareroot() {
return Math.sqrt((double) x2y2());
}
public double log2() {
++y;
return Math.log(((double) x) / y);
}
@Override
public boolean equals(Object obj) {
if (obj != null && obj instanceof Deneme) {
return ((Deneme) obj).x == this.x && ((Deneme) obj).y == this.y;
}
return false;
}
}
I don't think this is Python ...
looks something like ... Java ?
!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.
```java
/* java source code */
```
^ to copy ... just replace the comment I put there only @glacial mural
๐ how did you escape it
Discord Markdown .... \\ <- I typed four backslashes btw
nice, cheers
\\server\share\path\to\whatever
public class Deneme {
public int x;
public int y;
public Deneme(int x, int y) {
this.x = x;
this.y = y;
}
public int x2y2() {
return x * x + y * y;
}
public double Squareroot() {
return Math.sqrt((double) x2y2());
}
public double log2() {
++y;
return Math.log(((double) x) / y);
}
@Override
public boolean equals(Object obj) {
if (obj != null && obj instanceof Deneme) {
return ((Deneme) obj).x == this.x && ((Deneme) obj).y == this.y;
}
return false;
}
}
I think only recently does Java have the ability to use + and such with objects.
there are total of 23 operands but i cant identify them
can you guys show me where the operands are
in the code
I still don't get the question ... also, you'd be better off in a Java server
i couldnt get any answers in the java server
[
[0,0,0,1,2,0,0,0],
...
]
```
print("test")
How you asked it here shows you lack some understanding of what you are asking, and it seems like you just want the answer to be spoon fed to you, @glacial mural
I have to write a code to find the total number of operands in file, but I don't know what they look like, that's what I need help with
i know what i am asking
you dont have to be rude about it
@icy axle since when is your name in greek letters
@glacial mural this might help you
http://www.functionx.com/java/Lesson03.htm
This site offers Lessons, examples, and links on the Java programming language.
What is operand of arithmetic operators in Java - Operators are like + , - whereas operands are values on which operates.
The following program is a simple exam ...
{
-1: [-11, -10, -9, 2, 3],
0: [5, 10, 11, 12, 15],
20: [5, 6, 7, 100]
}
By looking at this, in @glacial mural 's code the total operands don't add up to 23
!e ```py
print([[1 for _ in range(10)] for _ in range(10)])
@icy axle :white_check_mark: Your eval job has completed with return code 0.
[[1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]
pixel[0][20]
grid = defaultdict(int)
grid[(x,y)] = 0
guessing 14 or 15 ๐
but im beginner ๐
it's total of 23 actually ๐
why 23? ๐
I ain't got a clue but she said it was 23.
ehehehe ๐
public class Deneme {
public int xM1;
public int yM2;
public Deneme(int xM3, int yM4) {
this.xM7 = xM5;
this.yM8 = yM6;
}
public int xM92M10yM112M12() {
return xM13 * xM14 + yM15 * yM16;
}
public double SquarerootM17() {
return Math.sqrtM18((double) xM192M20yM212M22());
}
public double log2() {
++yM23;
return Math.log(((double) xM24) / yM25);
}
@Override
public boolean equals(Object obj) {
if (obj != null && obj instanceof Deneme) {
return ((Deneme) obj).x == this.x && ((Deneme) obj).y == this.y;
}
return false;
}
}
2 too many
i dont know ๐
Why does the second function have 4 operands ๐
public double SquarerootM17() {
return Math.sqrtM18((double) xM192M20yM212M22()); ???
maybe its only 2 operands, also is the return operans? ๐
from typing import overload
class BitBoard2D:
def __init__(self, width: int, height: int | None = None, /, *, fill: int = 0) -> None:
if height is None:
height = width
self._board = [0]
self.resize(width=width, height=height, fill=(1 if fill else 0))
def resize(self, /, width: int | None = None, height: int | None = None, fill: int = 0):
fill = 1 if fill else 0
# ... other code to make it work
@overload
def __getitem__(self, coord: tuple[int, int], /) -> int:
return 0 # Placeholder
@overload
def __getitem__(self, coord: slice, /) -> 'BitBoard2D':
return BitBoard(1, 1) # Placeholder
def __getitem__(self, coord: tuple[int, int] | slice, /) -> int | 'BitBoard2D':
if type(coord) is slice:
... # make new BitBoard filled with copied bits
# raise TypeError if any part is incorrect.
if type(coord) is tuple and len(coord) == 2 and all(type(i) is int for i in coord):
... # return the bit's value
# raise IndexError if out of bounds
raise TypeError('Invalid key')
!projects
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
I have the same assignment as her, We can't even count the operands by looking let alone write a code about it
๐
HI
Looks like the teacher knows nothing about the question they are asking from their student's point of view.
Also, probably should drag that to one of the off topic channels
Our professors are obtuse, However this assingment is heavy on this one it will effect our grade so much
!pypi wcore_py
You should bring it up to the school that you are being asked to do homework that you were never taught how to do, and such a question is being given too high of a percentage of your grade
We don't have the stand to argue with the professor, they don't care
public class Deneme {
public int x(M1);
public int y(M2);
public Deneme(int x, int y) {
this.x(M3) = x;(M5)
this.y(M4) = y;(M6)
}
public int x2y2() {
return x(M7) * x(M8) + y(M9) * y(M10);
}
public double Squareroot() {
return Math.sqrt(M17)((double) (M22)x2(M11)y(M23)2(M12)());
}
public double log2() {
++y(M13);
return Math.log(M16)(((double) x(M14)) / y(M15));
}
@Override
public boolean equals(Object obj) {
if (obj != null && obj instanceof Deneme) {
return ((Deneme) obj).x(M21) == this.x(20) && ((Deneme) obj).(M19)y == this.y(M18);
}
return false;
}
}
thats my bet ๐
Can you move this to #ot0-psvmโs-eternal-disapproval if you're not in voice chat
or the other off topic channel
Still doesnt add up to 23 but thanks for the effort @random copper ๐
or dms
Or a Java server
If it wasn't urgent I wouldnt have asked it here sorry
.
What you mean its 23 ๐
The professor said there are total of 23 operands in the code
I made 23, the numbers isnt in order
i found some later
"I'm writing a Java Script, please help"
the declarion i guess its not operands
I am writing PythonScript.
"Why can't node run my java?"
Oh alright got it thank you
I dont know if its true, let me know if its true! ๐
<html>
<head>
<title> My Website </title>
<script>
public static void main() {
System.out.alert("This is an alert");
}
</script>
</head>
<body>
Hello World
</body>
</html>
What is this
- html:
- head:
- title: My Website
- script: "
public static void main() {
System.out.alert("This is an alert");
}"
- body: Hello World
I'm never gonna give you up
I'm never gonna let you down
Unless you let me down, because I'm not desperate
@primal yacht
int x = 5;
int* me = &x;
int* you = me;
int main(void) {
int* me;
int* you = me;
me = you;
}
I think... void* accepts any pointer?
int a = 5;
void *me = &a;
void *you;
me = &you;
you = &me;
int* a,b;
int *a, *b;
int *a, b;
Oh we forgat to take the relational operators( == , != etc.) into an account
they also require operands
MyObj obj = MyObj(0);
if (obj++ == obj--) {
// This in C++ is possible to work
// if MyObj has them equal at zero.
}
is_byte = type(num) is int and 0 <= num < 256
I definitely like the multiple comparisons like 0 <= num < 256, I agree
type(num) is int, not so much, I like my static types
docker ps -aq
docker rm $(docker ps -aq)
In this video I'll dive into some of the ways Git allows us to rewrite commit history. Specifically I cover: amending commits, rewording commit messages, deleting commits, reordering commits, squashing commits and splitting commits.
Check out my full writeup and reference guide here: https://www.themoderncoder.com/rewriting-git-history/
Or if ...
[project]
name = "wcore_py"
classifiers = ["Development Status :: 3 - Alpha", "Programming Language :: Rust", "Topic :: Education"]
authors = [
{name = "James Butcher", email = "jamesbutcher@duck.com"},
]
readme = "README.md"
[build-system]
requires = ["maturin>=0.12,<0.13", "twine"]
build-backend = "maturin"
Hieronymus Bosch (, Dutch: [ษฆijeหหroหnimสz หbษs] (listen); born Jheronimus van Aken [jeหหroหnimสs fษn หaหkษ(n)]; c.โ1450 โ 9 August 1516) was a Dutch/Netherlandish painter from Brabant. He is one of the most notable representatives of the Early Netherlandish painting school. His work, generally oil on oak wood, mainly contains fantastic illustra...
@tepid edge
Nothing much
Argument by Monty Python with some scenes cut
html:
<script src="https://unpkg.com/htmx.org@1.7.0"></script>
<input type='hidden' hx-post='/return_replies' hx-trigger="every 5s" hx-vals='{ "messages": {{ messages }}, "unique_num": {{ unique_num }}, "all_reply_id": {{ all_reply_id }}}'>
<html>
<body>
<div style="position:relative;background-color:#f5f5f5;width:900px;height:500px;border-radius:15px;border:2px solid black;margin:auto;margin-top:10%;">
<div id='chat-div' style="position:absolute;left:20px;top:15px;margin:auto;width:870px;max-height:350px;overflow-y:scroll;margin-top:10px;">
{% for body in messages %}
{% if body.message_type == "InstantMessage" %}
<p style="margin-left:5px;bottom:10px;text-align:left;border-left-style:solid;border-left-color:#48b8fa;padding:6px">{{ body.message }}</p>
{% elif body.message_type == "Reply" %}
<p id="replies" style="margin-right:20px;bottom:10px;text-align:right;border-right-style:solid;border-right-color:#ff9900;padding:6px">{{ body.message }}</p>
{% endif %}
{% endfor %}
</div>
<textarea placeholder="Type your message to {{ client_name }} here.." style="background-color:#f5f5f5;position:absolute;width:900px;height:90px;border-bottom-left-radius:15px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-2px;padding:20px;margin:auto;padding-right:80px"></textarea>
<button style="position:absolute;width:80px;height:90px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-2px;"><b>Send</b></button>
</p>
</body>
views:
@login_required
def return_chat(request):
context = {'client_name': request.POST['client_name'], 'messages': [], 'unique_num': request.POST['unique_num'],
'all_reply_id': []}
replies = Replies.objects.all().filter(unique_num=request.POST['unique_num'])
sent_messages = InstantMessages.objects.all().filter(unique_num=request.POST['unique_num'])
from itertools import chain
from operator import attrgetter
all_messages = sorted(chain(replies, sent_messages), key=attrgetter('datetime'))
# for messages in all_messages:
context['messages'] = all_messages
context['all_reply_id'] = replies.values('reply_id')
return render(request, 'chat.html', context)
@login_required
def return_replies(request):
context = {'replies': request.POST.get('messages'), 'unique_num': request.POST.get('unique_num'), 'all_reply_id': request.POST.get('all_reply_id')}
replies = Replies.objects.all().filter(unique_num=request.POST.get('unique_num'))
print(context, 'HERE IS CONTEXT')
# for messages in all_messages:
return HttpResponse(context)
i recently started django
i dont know
my problem is simpler
can u help
romania
u?
cool
no we are not
๐
wanna talk in private
i cant send f request
@somber heath Hola ๐บ
Howru ๐ , I was seeing google interviews on dark web ๐ฅฒ
Hello everyone
How's it going?
@zinc viper use `` before and after code
code review please
so interesting
imo, but, if we are gonna have a world war... it is easier to trade with bitcoin than gold! @quasi condor
@winged wolf When you talk about gold... you sound like my mom... "GOLD NEVER GOES DOWN"
yeah... i'm kidding...
But, we can't be sure, just because it is correlated now... like when we have a world war.... bitcoin will be correlated with stockmarket in wartime @quasi condor
BTC is always correlated with the stock market - gold has negative correlation with the stock market
at least the negative correlation is what I understand is the generally accepted wisdom
<script src="https://unpkg.com/htmx.org@1.7.0%22%3E</script>
<input type='hidden' hx-post='/return_replies' hx-trigger="every 5s" hx-vals='{ "messages": {{ messages }}, "unique_num": {{ unique_num }}, "all_reply_id": {{ all_reply_id }}}'>
<html>
<body>
<div style="position:relative;background-color:#f5f5f5;width:900px;height:500px;border-radius:15px;border:2px solid black;margin:auto;margin-top:10%;">
<div id='chat-div' style="position:absolute;left:20px;top:15px;margin:auto;width:870px;max-height:350px;overflow-y:scroll;margin-top:10px;">
{% for body in messages %}
{% if body.message_type == "InstantMessage" %}
<p style="margin-left:5px;bottom:10px;text-align:left;border-left-style:solid;border-left-color:#48b8fa;padding:6px">{{ body.message }}</p>
{% elif body.message_type == "Reply" %}
<p id="replies" style="margin-right:20px;bottom:10px;text-align:right;border-right-style:solid;border-right-color:#ff9900;padding:6px">{{ body.message }}</p>
{% endif %}
{% endfor %}
</div>
<textarea placeholder="Type your message to {{ client_name }} here.." style="background-color:#f5f5f5;position:absolute;width:900px;height:90px;border-bottom-left-radius:15px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-2px;padding:20px;margin:auto;padding-right:80px"></textarea>
<button style="position:absolute;width:80px;height:90px;border-bottom-right-radius:15px;bottom:0;border:2px solid black;right:-2px;bottom:-2px;"><b>Send</b></button>
</p>
</body>
def return_chat(request):
context = {'client_name': request.POST['client_name'], 'messages': [], 'unique_num': request.POST['unique_num'],
'all_reply_id': []}
replies = Replies.objects.all().filter(unique_num=request.POST['unique_num'])
sent_messages = InstantMessages.objects.all().filter(unique_num=request.POST['unique_num'])
from itertools import chain
from operator import attrgetter
all_messages = sorted(chain(replies, sent_messages), key=attrgetter('datetime'))
# for messages in all_messages:
context['messages'] = all_messages
context['all_reply_id'] = replies.values('reply_id')
return render(request, 'chat.html', context)
def return_replies(request):
context = {'replies': request.POST.get('messages'), 'unique_num': request.POST.get('unique_num'), 'all_reply_id': request.POST.get('all_reply_id')}
replies = Replies.objects.all().filter(unique_num=request.POST.get('unique_num'))
print(context, 'HERE IS CONTEXT')
# for messages in all_messages:
return HttpResponse(context)
@winged wolf
if request.is_ajax():
if request.method == 'POST':
print(request.body)
print(request.raw_post_data)
Other than print being a function... in what other way python3 is better than python2@woeful salmon @quasi condor
probably more support would be one thing
ye python2 is not supported by almost anything anymore
even python3.7 is slowly losing support
3.8 + is the way to go rn
yeah... I know py2 is deprecated... but why did they choose to go with version3 rather than improving py2
there's also things like type hinds, no more implicit import conversions, not having to inherit something when making a class and
alot of other things
type hints are pretty recent, i think!
major.minor.patch is what most software these days use for versioning
major is huge breaking changes or even rewrites of the entire thing
minor is usually just minor changes or additional features added on top and
patch is usually bug fixes and security updates
"unique_num": 72195076,
although python's minor versions also have a few breaking changes
hmm
{"key" : "this is valid json"}
!e
import json
json.loads("\"this is valid json\"")
In [2]: json.loads('"this is valid json"')
Out[2]: 'this is valid json'
@woeful salmon :warning: Your eval job has completed with return code 0.
[No output]
yep it is xD
In [3]: json.loads("true")
Out[3]: True
this pains me ^
ah it doesn't work with ipython
๐ฆ
In [3]: json.loads("true")
Out[3]: True
ooh ```ipython works
>>> if True:
... print("hi")
...
hi
>>>
In [12]: timeit requests.get("https://http.cat/507.jpg")
60.7 ms ยฑ 2.21 ms per loop (mean ยฑ std. dev. of 7 runs, 10 loops each)
This is the FULL MOVIE! - The Internet's Own Boy depicts the life of American computer programmer, writer, political organizer and Internet activist Aaron Swartz. It features interviews with his family and friends as well as the internet luminaries who worked with him. The film tells his story up to his eventual suicide after a legal battle, and...
This is the FULL MOVIE! - The Internet's Own Boy depicts the life of American computer programmer, writer, political organizer and Internet activist Aaron Swartz. It features interviews with his family and friends as well as the internet luminaries who worked with him. The film tells his story up to his eventual suicide after a legal battle, and...
Sad life, everytime, I think about it... My eyes get little watery
I don't play minecraft!
neither!
None!!!!!!!!!
I smell a bot here!!!
@dull fractal But we need some sense of ownership... it incentivizes people to improve on existing things....
As long as humanity as whole is advancing, it doesn't matter for me, who is copying who! @dull fractal
If someone is profiting and adding something to humanity... It's fine!
I suggest you watch this @dull fractal
Lawrence Lessig marked his appointment as Roy L. Furman Professor of Law and Leadership at Harvard Law School with a lecture titled "Aaron's Laws: Law and Justice in a Digital Age." The lecture honored the memory and work of Aaron Swartz, the programmer and activist who took his own life on Jan. 11, 2013 at the age of 26.
0:00:00 Introduction
0...
and this
@zinc viper you watched this?
โจCommunity!โจ
It is amazing...
<QuerySet [{'reply_id': 'ee846092-c926-4bab-8aec-fe331a45a633'}, {'reply_id': 'd0c9b275-0fd6-4dee-bc53-fcbc4b7835ea'}]>
<QuerySet [{'reply_id': 'ee846092-c926-4bab-8aec-fe331a45a633'}, {'reply_id': 'd0c9b275-0fd6-4dee-bc53-fcbc4b7835ea'}]>
how to write code everyday?
what do you mean?
A video of Conway's Game of Life, emulated in Conway's Game of Life.
The Life pattern is the OTCA Metapixel: http://www.conwaylife.com/wiki/OTCA_metapixel - for more information, see http://otcametapixel.blogspot.com.au/
The life simulator used is Golly - http://golly.sourceforge.net/ which has a built-in script to generate these metapixel gri...
I'll break out the prayer gong.
for me it's interesting to watch video about programming and read about it. For example it was interesting to read several parts of official python tutorial but problem is that i don't write code
why not?
i just dont know what interesting i can write
do you have the basics of Python/any language down?
probably? im not sure
i also wrote some console apps in c
but it was "labs" in college
I'm sure you can find an interesting project to work on that can benefit your life in some way.
https://automatetheboringstuff.com
There are some useful projects in that book - it's free and available online.
i will force my self to complete this book and never touch programming again
why would you do that second part lol
i need to have motivation
hmm, what's your interest in programming? like why do you want to do it?
i feel like im missing something, like its a magic trick that i need to learn
i need raspberry pi laptop can you give a link?
hey
ะ ัััะบะธะน
Forcing yourself to learn it "because you have to" is what I'm interpreting.
If you instead learn it "because you want to" will help you enjoy it easier.
no i want, i just don't know what would be interesting to do
maybe you right. but i dont wanna give up on learning it
If you force yourself to learn it because you have to, you will hate it more than if you learn it because you want to.
... wow ... https://www.youtube.com/watch?v=RpLottQ2VPA
Cannot even trust Wish
So I decided to venture out to Wish.com... and I bought a Nintendo Wii! But the listing was a little odd, so I'm pretty sure it's a fake Nintendo Wii... check out the video to see what I got!
Nintendo Wii Console: https://amzn.to/3hLAKwy
Wii Sports: https://amzn.to/36LoCFm
Nintendo Switch Console: https://amzn.to/2UScYpy
My Discord Server: htt...
but what to do?
Did you try the link that was given to you earlier, @silent copper?
If you don't try to learn with an open mind, you won't make it far.
https://automatetheboringstuff.com/ this link?
@pale sigil
Yes.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Any live cell with two or three live neighbours survives.
Any dead cell with three live neighbours becomes a live cell.
All other live cells die in the next generation. Similarly, all other dead cells stay dead.
@icy axle what theme are you using ?
Dracula
XXXXXX
XXโโXXXX
XXโโโโXXXX
XXXXXXโโXX
XXXXXX
if self.grid[cell]: # Cell is alive
return self.neighbours(cell) in [2, 3]
return self.neighbours(cell) == 3
โโ
โโโโ
โโ
>>> board.do_iteration()
>>> print(board.render())
โโโโ
โโโโ
โโ
class State:
def __getitem__(self, coord_or_slice):
if type(coord_or_slice) is slice:
return self.get_sliced_state(coord_or_slice)
if type(coord_or_slice) is tuple and len(coord_or_slice) == 2 and all(type(i) for i in coord_or_slice) is int):
return self.get_state_at(coord_or_slice)
raise TypeError()
``py
!e
len(("foobar"),) == 1
@woeful salmon :warning: Your eval job has completed with return code 0.
[No output]
!e print(len(("foobar"),) == 1)
@plain rose :white_check_mark: Your eval job has completed with return code 0.
False
!e ```py
len( "foobar", ) == 1
@primal yacht :warning: Your eval job has completed with return code 0.
[No output]
!e ```py
def x(*a, **b): print((len(a), len(b)))
x(1,)
@primal yacht :white_check_mark: Your eval job has completed with return code 0.
(1, 0)
Hello
{
"hey": "..."
, "hey": "..."
, "heyoa": "wazzup"
}
Hey @pine plinth!
It looks like you tried to attach file type(s) that we do not allow (.rar). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
can anyone help me....i was looking content-lenght in requests.headers but it's missing...idk what to do....this is the result i got Accept-Ranges': 'bytes', 'Cache-Control': 'max-age=315360000', 'Connection': 'keep-alive' , 'Content-Type': 'image/jpeg', 'Date': 'Sun, 03 Apr 2022 17:29:02 GMT', 'Expires': 'Thu, 31 Dec 2037 23:55:55 GMT', 'Last-Modified': 'Wed, 22 Sep 2021 12:57:30 GMT', 'Server': 'ng inx', 'Transfer-Encoding': 'chunked', 'Vary': 'accept'}
but when i look up in github how to fix it https://github.com/psf/requests/issues/3953#issuecomment-291762652
he say i should adding 'Accept-Encoding': None in my headers but it is not work
Can reproduce with the below: import requests r = requests.get('https://downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.0.5.zip', stream=True) print r.h...
YouTube comments spam has been next-level out of control for months.
That shirt: http://shop.MKBHD.com
ThioJoe's Tool: https://github.com/ThioJoe/YT-Spammer-Purge
Tech I'm using right now: https://www.amazon.com/shop/MKBHD
Intro Track: http://youtube.com/20syl
Playlist of MKBHD Intro music: https://goo.gl/B3AWV5
~
http://twitter.com/MKBHD
htt...
Can someone help me
In this fireside chat, MIT Schwarzman College of Computing Dean Daniel Huttenlocher and co-founder of Schmidt Futures and former Google CEO & Chairman Eric Schmidt talk with MIT EECS head and moderator Asu Ozdaglar about how AI is changing our relationship with knowledge and society โ and what this technology means for us all.
does anyone here use a tiling window manager
@lavish rover
Warren Teitelman (1941 โ August 12, 2013) was an American computer scientist known for his work on programming environments and the invention and first implementation of concepts including Undo / Redo, spelling correction, advising, online help, and DWIM (Do What I Mean).
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thanks
No problem
I have less thank 50 messages ๐ฆ
Are you guys busy? I need some novice python help
One sec lemme screenshot
k
!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.
should I send the whole class or only the relevants parts?
yes
raceback (most recent call last):
File "/Users/tornikegogiberidze/Desktop/higher_lower game/main.py", line 5, in <module>
Choice.choose(Choice)
File "/Users/tornikegogiberidze/Desktop/higher_lower game/functions.py", line 64, in choose
self.cycle(Choice)
File "/Users/tornikegogiberidze/Desktop/higher_lower game/functions.py", line 74, in cycle
self.points += 1
AttributeError: type object 'Choice' has no attribute 'points'
tornikegogiberidze@Tornikes-MacBook-Air higher_lower game %
discord says it's too long ๐
!paste
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.
Yes
Doing that right now
TypeError: Choice.cycle() missing 1 required positional argument: 'self'
self.cycle()
makes sense
TypeError: Choice.cycle() missing 1 required positional argument: 'self'
wait it was self.cycle
sorry i'm sleepy ๐ฆ
one second
ok now there's no error
but my cycle stopped working
should I send the code?
Could you repeat the question, please?
So the premise is that it gives you two variants to answer
and if you get it right the answer that you chose stays and the second variant gets replaced with another variable from a dictionary
I got the cycle working by calling the function from another function
Which account has more followers?
Khloรฉ Kardashian Reality TV personality and businesswoman United States
108 Million
OR
Camila Cabello Musician Cuba
Type '1' for Khloรฉ Kardashian. type '2' for Camila Cabello
input: '1'
!paste
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.
obj = Choice()
obj.current_count()
obj.second_choice()
obj.chooce()
