#voice-chat-text-0
1 messages ยท Page 133 of 1
window 12 will be released next year
time to go back to XP
lol if i just plan to code & run linux, no gaming nothing else
a 2015 windows laptop will suffice right
what about this one?
import os
def longestCommonPrefix(strs):
prefix=os.path.commonprefix(strs)
if prefix==None:
prefix=''
return prefix
names = ["flower","flow","flight"]
print(longestcommonprefix(names))
depends on what you code
As a beginner which is best to learn programming windows or Linux ?
Android app development on that would be a bit of a pain
!e
import os
def longestcommonprefix(strs) -> str:
prefix=os.path.commonprefix(strs)
if prefix==None:
prefix=''
return prefix
names = ["/usr/lib", "/usr/local/lib"]
print(longestcommonprefix(names))
mainly data analytics stuff
nothing too serious
that can be pretty heavy depending on the size of your data
indendation wrong
maybe i'll just stick to my macbook then
should be fine mostly
import os
def longestCommonPrefix(strs):
prefix=os.path.commonprefix(strs)
if prefix==None:
prefix=''
return prefix
names = ["flower","flow","flight"]
print(longestCommonPrefix(names))
how to run?
!e
import os
def longestCommonPrefix(strs):
prefix=os.path.commonprefix(strs)
if prefix==None:
prefix=''
return prefix
names = ["flower","flow","flight"]
print(longestCommonPrefix(names))
@whole bear :white_check_mark: Your 3.11 eval job has completed with return code 0.
fl
it depends on your laptop
"a windows laptop from 2015" doesn't say anything, really
many laptops were made in 2015
good ones, bad ones
you can have a really beast windows pc at the cost of mac
but it's very hacky
wym by hacky?
specifically thinkpad x1 carbon 3rd gen business laptop i5 128gb windows 11 pro
By guys.. See you later.. ๐๐ผ
i havent used any windows laptops since 2015 so im clueless
gaming laptops be too heavy imo
dependency on os.path
!e
import functools
import itertools
import operator
def all_equal(chars):
return all(itertools.starmap(operator.eq, itertools.pairwise(chars)))
def longestcommonprefix(strs):
return "".join(map(operator.itemgetter(0), itertools.takewhile(all_equal, zip(*strs))))
names = ["flower","flow","flight"]
print(longestcommonprefix(names))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
fl
i have a question if u working on some big projects of AI then you need a lot of ram + gpu memory as well as processor but im mac u dont have much of hardware its just the os is optimised thats it
yeah i love the OS
its hard to get off apple once you get used to it
hahah apple not worth it imagine they are selling their microfiber cloth to clean laptop for 300$ justa cloth XD and thier water bottle for 500$
LMAO
not worth the price
but the experience is the selling point
yeah isee thank you for help
this looks better in languages with syntax designed for functional programming
self satisfaction and public attention XD most of the pople buy iphone to take picture facing the mirror to show the iphone logo xD
not really the OS is really great
i'd buy apple even if it looked bad
well some of the library func new for me i need to study about it
its just not price-smart
@whole bear ๐
are u into datastructure?
Yo
Can anyone help me
My pong game is not working
!e
import functools
import itertools
import operator
def compose(*funcs):
def wrap(x):
for func in reversed(funcs):
x = func(x)
return x
return wrap
all_equal = compose(
all,
functools.partial(itertools.starmap, operator.eq),
itertools.pairwise,
)
longestcommonprefix = compose(
"".join,
functools.partial(map, operator.itemgetter(0)),
functools.partial(itertools.takewhile, all_equal),
lambda strs: zip(*strs),
)
names = ["flower","flow","flight"]
print(longestcommonprefix(names))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
fl
ugly but works
any specific errors?
is it from 100 days of python bootcamp in udemy?
I am new
In coding
isn't there a built-in for lambda args: func(*args)?
yeah but the geekforgeeks only accept optimal code and have to solve it in time complexity o(n)
There are two error
can you send the traceback?
```plaintext
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'a' is not defined
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'a' is not defined
^like that
@red peak binary trees?
!code
!paste
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.
what's the error message?
or is it just working wrongly?
ball is str, it shouldn't be
@gaunt flint ๐
oh yeh tnx
probably, you're re-assigning it at some point
Ok
bro i am from iran XD i dont isis
who have a code for me pls?
I am very weak in English
lemme gave u a question
okay say
!e py 'abc123'.ycor
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 1, in <module>
003 | 'abc123'.ycor
004 | AttributeError: 'str' object has no attribute 'ycor'
!e
code
!eval [python_version] <code, ...>
Can also use: e
Run Python code and get the results.
This command supports multiple lines of code, including formatted code blocks. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
The starting working directory /home, is a writeable temporary file system. Files created, excluding names with leading underscores, will be uploaded in the response.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside them.
By default, your code is run on Python 3.11. A python_version arg of 3.10 can also be specified.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!
Can you solve this real interview question? Next Permutation - A permutation of an array of integers is an arrangement of its members into a sequence or linear order.
- For example, for arr = [1,2,3], the following are all the permutations of arr: [1,2,3], [1,3,2], [2, 1, 3], [2, 3, 1], [3,1,2], [3,2,1].
The next permutation of an array of in...
bro how i donlowd 3.10 python? i very neeeeeeeeeeed it
opppppppppps
tnx mr
Wait
yes but i cant get it i am very noob
how i cant compile?
too much effort to install new python bersion need to reinstall library func again venv too and some of the the old library func doesnt work with the new python
anaconda's python is the best optimum version
no it's not
u can use other compiler or u can signup to compile
many func is not works with python 3.11
yesssssss i very need it
for example the openAi whisper module only works with 3,10
3.1.5 is good?
you'll have to install a separate python for that anyway
3.1? XD
3.10.5?
pls give link
u can use repelit
3.1.5 is it very old
it's basically non-existent now
3.5.1 is good?
u live in 2012
before 3.8 -- probably avoid it
i need python old for compile bro
create venv with diff python version then
I did the weird compose-only common prefix
#bot-commands message
3.8.2 is good? @somber heath
!e
names = ["flower","flow","flight"]
common_prefix = ""
for values in zip(*names):
if len(set(values)) == 1:
common_prefix += values[0]
else:
break
print(common_prefix)
sometimes works poorly on a large number of short strings
It ask for nitro
because O(NlogN)
Go for the latest version that everything you want to use supports.
Yooooooooooo
Trie
although
maybe hashsets are more optimal
i dont know how to donload it not have donwload
Yooooooooooo
i need a python old for pycharm it just have 3.11.3
oh yeh
oh yehhhhhhhh
oh my God
Hello Everyone! Today in this video I am going to step-by-step guide you on How to install Python 3.11.1 on Windows 10/11. Windows (64-bit).
Geeky Script (
@GeekyScript) is Computer Science - Educational Videos Creator ๐
You can support by buying a coffee โ๏ธ here โ
https://www.buymeacoffee.com/geekyscript
โป I really hope you find this video u...
oh yehhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Godddddddddddddddddddddddddddddd
yehhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhi now get it
why did I not know this exists
https://docs.python.org/3/reference/datamodel.html#object.__length_hint__
yes yes yesssssssssss
Yoooooooo
Godddddddddddddddddddddd yooooooooooooo yessssssss oh my God
My code is not going
Actual text vs images of text is preferred.
oh my God i go and now eat all codes pychram
num num nummmmmmmmm it is very cool i eat it
trees have O(NlogN) cost of construction if you do it elemement-by-element
hashsets -- maybe O(N)
what about this one?
looks like O(M^2 N) time where M is length and N is number of strings
and this
def longestcommonprefix(strs):
if not strs:
return ""
prefix = strs[0]
total_word = len(strs)
for i in strs[1:]:
while i.find(prefix) != 0:
prefix = prefix[:-1]
if not prefix:
return ""
return prefix
name = ["flower", "flow", "flight"]
print(longestcommonprefix(name))
probably optimal
tenkuuu
change 'rightpaddle'.ycor to rightpaddle.ycor
Now it's coming Name error: name 'rigthpaddle' is not difined .Did you mean : 'rigthpaddle'?
just a misspell
your variable is named rigthpaddle
How
Traceback (most recent call last):
ong 0.1.py", line 96, in <module>
File "C:\Users\alio rodrigues\Pictures\Saved Pictures austin game New folder p if (ball.xcor ()>340) and (ball.xcor() <350) and (ball. ycor) () <rightpaddle. ycor()+4
0 and ball.ycor ()>'rightpaddle'.ycor ()-40: NameError: name 'rightpaddle is not defined. Did you mean: "rigthpaddle?
replace rigthpaddle with rightpaddle everywhere
They are same
Ok
Haha
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
still this error?
any video lectures to learn python data structure in detail with programe implementation using python?
I'd suggest using some other language to learn data structures
I don't think data structures need to be python specific.
pen.write("player A:{} player B:".format(playerAscore, playerBscore), ali
gn='center', fnot= ('Arial', 24, 'normal')) TypeError: RawTurtle.write() got an unexpected keyword argument 'fnot'
check spelling
unmm im so poor with any other lang i just know pythona nd i just have 3 months XD
the error is telling you exactly what's wrong
specifically the following three, in order:
Rust
C
C++
idk any video lectures
isnt it it should be font= not fnot
for me it's easier to learn data structures when I have a specific task to solve with them
u are good at it already lol u dont need to learn XD
"constants file"?
currently looking at a file from two years ago when I was trying to solve something because I din't know the proper data structure to use
damn 2 years before i just started 3 days ago XD
I forgot what the arrows are supposed to mean
@red peak refactor, refactor, refactor
write tests to make sure nor you nor them break something
well thnx for help gues gonna buy some course from codingninjas site
notation is so weird
too complex to handle for me
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
!pep8
PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.
More information:
โข PEP 8 document
โข Our PEP 8 song! :notes:
for me, most all of time cooperating on projects was with less skilled programmers
which is, like, an unfortunate circumstance in some sense
though that also posed some higher readability/understandability standards for me
(in cases when I myself was unable to make sure I write simple enough code)
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\alio rodrigues\AppData\Local\Programs\Python\Python311-32\Lib\tkinter_init py", line 1945, in all return self.func(*args)
File "C:\Users\alio rodrigues\AppData\Local\Programs\Python\Python311-32\Libirurtle.py", line 700, in eventfu fun ()
TypeError: 'str' object is not callable
Traceback (most recent call last):
File "C:\Users\alio rodrigues Pictures Saved Pictures austin game New folder\pong 0.1.py", line 77, in <module> ball.seux (ball.xcor () +ballxdirection)
File "C:\Users\alio rodrigues \AppData\Local\Programs\Python\Python311-32\Lib\curele py", line 1809, in retx self. goto (Vec2D (x, self._position[1]))
File "C:\Users\alio rodrigues\AppData\Local\Programs\Python\Python311-32\Lib\turtle.py", line 3175, in goto
screen._point list (self, currentLineItem).
File "C:\Users\alio rodrigues\AppData\Local\Programs\Python\Python311-32\Lib\turtle.py", line 754, in point1ST
el self.cv.coords (item)
File "<string>", line 1, in coorda
File "C:\Users\alio rodrigues\AppData\Local\Programs\Python\Python311-32\Lib\rkinter_init_py", line 2022, in or args))]
self.tk.call(laelf. w, coord tkinter.TelError: invalid command name "canvas"
Wtf to do now
looks like somewhere you passed a string instead of a function
What
you have seux instead of setx, apparently
|
|
V
line 77, in <module> ball.seux (ball.xcor () +ballxdirection)
ฮ
|
|
How to fix
just change ball.seux to ball.setx
what an interesting question
> barred lambda ฦ, also called running man
(was searching for lambda to mirror the "V")
Hi
refactoring is almost never a one-line change
suppressed 
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
even though it's one-thing-at-a-time, quite a lot of both refactoring actions and reasons to refactor correlate with more-than-one-line changes
example of first: method renaming
example of second: the method needs to be simplified (which often involves reducing the number of lines)
it's also important to recognise the difference between refactoring and rewriting
refactoring shouldn't change the observed behaviour
File "C:\Users\alio rodrigues\AppData\Local\Programs\Python\Python311-32\Libirkanter init py", line 1948, in return self.func(*args) call
File "C:\Users\alie rodrigues\AppData\Local\Programs\Python\Python311-32\Labyturtle.py", line 709, in event fun
fun ()
TypeError: atr' object 13 not callable
is this the full traceback?
rewrite the code from scratch and make sure you can display at least one paddle
then make it move
only after that, add a second paddle
only after they both work, add the ball
What scratch
from nothing
just rewrite it but less messy
each time you add a couple of lines, verify that they work
don't assume the code is working until you tested it
Ok
this way you will catch simple errors like typos sooner
How about using a better IDE?
this is IDE-independent
IDE will catch some errors
But using a good IDE helps catch errors a lot.
I think it's better to acquire this habit out of necessity, and only then start trusting the IDE
Ya. But being able to understand errors is Step 1
imo, the more important thing some IDEs do is to help catch non-error issues
stylistic and others
difference being:
for a beginner, it's easier to catch errors rather than something subtle
(manually)
Pip
IDEs can teach a lot. Like style guide lines and stuff.
Something like doing if variable = 0: instead of ==
OR something like this one
yes, the "non-error" issues I was talking about
are you sure you don't have it installed?
I don't know
pip -V
I saw how to install it on YouTube
first check whether you have it
How to check
What is terminal
Yes
open start menu and search for it
it will show up
I got it
what are you trying to install with pip?
what if pip is installed in their venv
it's almost always both system and venv
idk if there's an adequate way to have it venv-only
Yes, but python isn't accessible directly unless they have it in their path
(as in the system has no pip installed)
that might be possible, yes
Ok
When installing python on windows the installer actually recommends to not put it in the path.
I don't have it either.
!e
from sys import executable
from subprocess import run
run([executable, "-m", "pip"])
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 |
002 | Usage:
003 | /usr/local/bin/python -m pip <command> [options]
004 |
005 | Commands:
006 | install Install packages.
007 | download Download packages.
008 | uninstall Uninstall packages.
009 | freeze Output installed packages in requirements format.
010 | inspect Inspect the python environment.
011 | list List installed packages.
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/gusupuvumu.txt?noredirect
@whole bear run this in python
output should be something like this
Ok
It would be so much easier if they could share their screen
why the hell is my file explorer at 7GB reserved memory
Maybe it loaded indexes because you were searching something?
I think it's video thumbnail stuff
Okay. That makes sense
it doesn't give up the memory for some reason
hey can anyone help me with creating a download button for downloading csv file , I am trying to make an api in python
I can share the code
??
HTML?
or what are you using for UI?
yeah html
Yo
Not working
you can make it a link instead of a button
if you have download attribute on the link, it will download the file from the URL when clicked
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a
!e
from flask import Flask, render_template, make_response
import SiteScraper
import csv
import io
app = Flask(name)
@app.route('/site', methods=['GET'])
def some_endpoint():
result = SiteScraper.yt_vedio()
scraped_data = result.yt_vedio_comment('https://www.youtube.com/watch?v=xxxxxxx')
# Create a CSV file in memory
csv_data = io.StringIO()
csv_writer = csv.writer(csv_data)
csv_writer.writerows(scraped_data)
# Create a response with the CSV file data
response = make_response(csv_data.getvalue())
response.headers['Content-Disposition'] = 'attachment; filename=youtube_comments.csv'
response.headers['Content-type'] = 'text/csv'
# Render the template with the download button
return render_template('download.html', download_url='/site', filename='youtube_comments.csv')
if name == 'main':
app.run()
here is the coded
do you have the permission from the video author to get the comments?
I am scrapping it, using a module
SiteScraper
do you have the permission to do that?
I guess no
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
I know about this
I just want to build a button on my local host so that I can download a csv file , how to do that ?
<a href="path_to_file" download="proposed_file_name">Download</a>
Also you should have different endpoint to download the file and to view the download page.
Yeah I did that already inside the templates dir with Full HTML code
your download endpoint should just return the response
return response
and your download page endpoint should render the html
return render_template('download.html')
Ohh didn't think of it I'll try it now thanks @red peak
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@obtuse rapids ๐
thats quite difficult conditions๐
@hybrid flax ๐
hello
bye
Alright, I will join later
@patent slate ๐
hi
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
More Python.
gud๐
Third party libraries, etc.
ok
Standard library modules
ok will start there
i wanna learn electronics too do u know place where i can start
#microcontrollers would be the closest to that subject here, but I'm going to say probably a different Discord server or other place.
No.
k thanks anyways man/woman
I am not great at coding yet and want to do lot of code and learn more
what do u suggest i do
Read documentation. Watch tutorial videos. Network with people.
Practice. Rest. Look after yourself.
network with people?
Talk.
I still get that internal server i error idk why
hey @somber heath can you help me with creating an api in python
yeah
exactlyyyy
There is a python module , which I just have to create an endpoint to download csv file scrapped from youtube
api (application programming interface ) it is a level of abstraction which programmers hide away the complexity of a given method
This is what Ik of api
maybe I am wrong
!e
`from flask import Flask, render_template, make_response
import SiteScraper
import csv
import io
app = Flask(name)
@app.route('/site', methods=['GET'])
def some_endpoint():
result = SiteScraper.yt_vedio()
scraped_data = result.yt_vedio_comment('https://www.youtube.com/watch?v=xxxxx')
# Create a CSV file in memory
csv_data = io.StringIO()
csv_writer = csv.writer(csv_data)
csv_writer.writerows(scraped_data)
# Create a response with the CSV file data
response = make_response(csv_data.getvalue())
response.headers['Content-Disposition'] = 'attachment; filename=youtube_comments.csv'
response.headers['Content-type'] = 'text/csv'
# Render the template with the download button
return render_template('download.html', download_url='/site', filename='youtube_comments.csv')
@app.route('/download', methods=['GET'])
def download_endpoint():
result = SiteScraper.yt_vedio()
scraped_data = result.yt_vedio_comment('https://www.youtube.com/watch?v=xxxxxxx')
# Create a CSV file in memory
csv_data = io.StringIO()
csv_writer = csv.writer(csv_data)
csv_writer.writerows(scraped_data)
# Create a response with the CSV file data
response = make_response(csv_data.getvalue())
response.headers['Content-Disposition'] = 'attachment; filename=youtube_comments.csv'
response.headers['Content-type'] = 'text/csv'
return response
if name == 'main':
app.run()`
here is the code I am trying to create two endpoints where /site is for actaully scrapping the data and /download is for downloading that scrapped data as csv
I get internal server error when I get to /site endpoint
idk and I can't figure it out why
@somber heath do you have suggestions or any tutorial on how to resolve this issue ?
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
I am doing to just for a personal project so that I can analyse the comment section
btw is it illegal to scrap publically available data from yt?
Yeah, I recommend going through their API
I am talking of actuall legallity
It's against their Terms Of Service
yeah I have gone thru that
So by rule 5, we can't help
oh I get it, btw this rule 5 is the rule of this server right ?
Correct
got it
classic leetcode question
all possibel what ?
is 987 good ?
8765 is good right ?
1,2,3,4,2
@midnight agate
something like that?
(as far as I understood what the task was about)
allowed/total can be changed to alter the behaviour as necessary
def allowed(delta):
return delta in [-1, 1]
def total(sequence):
return sum(y * (i+1) * (len(sequence)-i) for i, y in enumerate(sequence))
def sequence_sums(arr):
arr = iter(arr)
last = next(arr)
sequence = [last]
last_delta = None
for x in arr:
delta = x - last
if last_delta is None or delta == last_delta and allowed(last_delta):
sequence.append(x)
else:
yield total(sequence)
sequence = [last, x] if allowed(delta) else [x]
last = x
last_delta = delta
yield total(sequence)
def solution(arr):
return sum(sequence_sums(arr))
!e
print("opal deez nuts"
@dense ibex :x: Your 3.11 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | print("opal deez nuts"
003 | ^
004 | SyntaxError: '(' was never closed
10x developer
LP's new employees
@willow lynx Yo
That's.... a good question
#data-science-and-ml might know
I'm not sure if we have something listed on our resources page
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
HA, that sounds like most courses I've had
cat
Can I access the function parameter in the decorator?
import structlog
logger = structlog.get_logger(__name__)
@structlog.contextvars.bound_contextvars(a=a)
def foo(a):
logger.error("hello")
return a
foo(5)
@structlog.contextvars.bound_contextvars(a=b)NameError: name 'b' is not defined
Nope
@rugged root @wind raptor @zenith radish ^
great article / read
Thanks
Is it possible to create a list from the values of a literal type?
from typing import Literal
FooType = Literal["foo", "bar", "baz"]
values = list(FooType)
Or the other way around?
Good question...
2023
So when you say literal types
I guess I'm confused what you mean
Oh right, looking now
Just found it
I forgot spotify used django
Same. I can never remember what uses Python, let alone the different libraries
Now it should be taken with a grain of salt, though
They could be used in smaller bits by one or two teams in the entire company
Eh, if it works it works
true
"If it ain't broke don't fix it"
was just about to say that 
How can you get optimized database queries using django?
Yes?
In regards to the thing above
This'n
@red peak Realized just now that you were the one asking about it.
What you did was just create a list of literals.
from typing import Literal
FooType = Literal["foo", "bar", "baz"]
FooList = list[FooType]
foo_list: FooList = list(FooType.__args__)
Fair point
Youโll be amazed at what you can do with GrammarlyGO. Sign up at https://grammarly.com/TQ and get 20% off Grammarly Premium.
Are we getting to the point where we just can't put more transistors on a CPU? And more importantly - does it even matter?
Leave a reply with your requests for future episodes.
โบ GET MERCH: https://lttstore.com
โบ LTX 20...
AND ARDUINO ETC *caps
@amber raptor Yo
S'mores' law.
are you a... monk?
Cross-classes as a bard
No list was created
Just a Buddhist
Kali Linux on any Android Phone or Tablet Getting Kali Linux to run on ARM hardware has been a major goal for us since day one. So far, weโve built native images for the Samsung Chromebook, Odroid U2, Raspberry Pi, RK3306, Galaxy Note 10.1, CuBox, Efika MX, and BeagleBone Black to name a few.
ah, i thought i finally MET a monk 
I almost become a monk at one point though. I was pretty close haha.
uh
i bet that kali distro is slow n klunky ๐
Wait really?
I genuinely didn't know that
lol
Yeah, the monk at the monastery I went to wanted me to become one
Have to admit the logo is badass, though
I seriously considered it
its liberating
i read the first page of black hat python and it said kali is required then i closed the book but i planned to download kali later
nooooooooooooooooooooooooo
is it really a*s
Was this before or after you met your significant other? Although I'm not entirely sure how Buddhist monks and marriage mix
drivers / locations
If at all
every newb installs kali
lmao isnt it werid when no one agrees with ur opinions in a voice call ๐คฃ
Before, of course
i installed ubuntu
Never did, but I'm too much of a paladin to get interested in haxxoring
nah im sayin my first distro that i downloaded of linux
ohh
The vow of celibacy is kind of a deal breaker if you are in a relationship.
@slate light Moved you because your mic was open and didn't think you'd want home conversation getting broadcast
i didnt have a clue what i was doing
had to spend 3 days rebuilding my windows install lol
Would that be for any kind of marriage/relationship even if there's no physical component?
i have some sort of partitions issue despite i have extra 80gb for kali so icant install it : |
ubuntu was good up to 11.04
oh sorry
All good all good
You are not allowed to be in a relationship at all
then i used crunchbang linux for a while
Laaaaaaaaaaaaaaaaaaaaaame
@rugged root u are good at multitasking ๐ mans talk and chats at the same time
man talks*
#!
CrunchBang Linux (abbreviated #!) was a Linux distribution derived from Debian by Philip Newborough (who is more commonly known by his username, corenominal).
CrunchBang was designed to use comparatively few system resources. Instead of a desktop environment it used a customized implementation of the Openbox window manager. Many of its preinstal...
@zenith radish https://www.hirensbootcd.org/
Found a list of 227 Monastic rules to live as a monk. I'm sure it differs a bit in different places. https://en.dhammadana.org/sangha/vinaya/227.htm
List of the 227 rules of pฤtimokkha
yes i use one ๐ญ
What?
I was saying hello
hello
That sends me directly to the .exe
Oh my god it redirects
this should send you to the iso
That would be why I can't get it
Well at least I'm not crazy
on my android and linux it redirects to the iso
I guess that makes sense
@zenith radish
Bert Kreischer kicking ass. Mark Hamill on speed. Watch the trailer and grab your tickets now for #TheMACHINEmovie with a LIVE pre-show with Bert May 25!
Website: http://www.TheMachine.Movie
Follow Us on Social:
https://www.facebook.com/SonyPictures
https://www.instagram.com/SonyPictures
https://www.twitter.com/SonyPictures
https://www.ti...
@rugged root
It's got Mark Hamill.
Level up your desk game! Check out the Secretlab Magnus Desk Pro: https://lmg.gg/kdg6f
Play Crusader Kings 3 this weekend starting May 11th: https://lmg.gg/CK3CS
The Rubber Ducky? Basic. The Flipper Zero? Childโs play. This is the O.MG Cable, a stealthy, powerful hacking tool that allows the attacker to log your keystrokes, access your device,...
!pip requests
Good ol' asdf films
i like trains
@somber heath hey there
"Legal interventions"
Interesting way to put it
Neat
Is there a better way to do this?
if int(value) == float(value):
value = int(value)
@tidal shard You had a weird buzzing coming from your mic so I scooted you down
Double checking
Oh actually
Eh, that seems like the most reasonable way to do it
Was thinking you could change it with a ternary or walrus operator
Oh oh oh oh
Actually just looked into it. It is being done that way because it is being used both for comparison and for displaying it in the view.
Makes sense
its the information age ................................wheeeeee
if not value % 1:
...```
Maybe?
No?
Precedence?
Maybe we could always store it as float. And for displaying, use some string formatting?
What's the formatting that automatically omits decimal if it's all 0
like 1.00 prints as 1
and 1.21 prints as 1.21
equality check with int and float ?
That's what was done originally
value = int(value) if int(value) == float(value) else value
That was my original thought
value = (value if value % 1 else int(value))```
I just wasn't sure what the condition was if they weren't equal
Like do we know what type the value is going to be coming in?
It's always float
Then casting to float is redundant
But yeah, you can always just do string formatting
Oh yes.
if precision loss is acceptable, string formatting is ok.
Converting to int would drop everything after the decimal anyway
We have logic in place to reduce to precision to only 2 floating points. So, 1.0001 gets converted to 1.00
I'm wrong, f-strings will round
2 digits remained in fractional part, ok
!e
ham = 1.4
pork = 1.5
print(f"{ham:.0f}")
print(f"{pork:.0f}")
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
I did not realize that
nicotine addiction - ruin duck meat
tobacco + peanuts = insecticide , belly ache , ohhh no peanut allergies
6,120 votes and 878 comments so far on Reddit
!e
print(f"{1.00:1g}")
print(f"{1.02:1g}")
@red peak :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 1.02
This works
Wait what's g?
https://docs.python.org/3/library/string.html#format-specification-mini-language
General format. For a given precision p >= 1, this rounds the number to p significant digits and then formats the result in either fixed-point format or in scientific notation, depending on its magnitude. A precision of 0 is treated as equivalent to a precision of 1.
The precise rules are as follows: suppose that the result formatted with presentation type 'e' and precision p-1 would have exponent exp. Then, if m <= exp < p, where m is -4 for floats and -6 for Decimals, the number is formatted with presentation type 'f' and precision p-1-exp. Otherwise, the number is formatted with presentation type 'e' and precision p-1. In both cases insignificant trailing zeros are removed from the significand, and the decimal point is also removed if there are no remaining digits following it, unless the '#' option is used.
With no precision given, uses a precision of 6 significant digits for float. For Decimal, the coefficient of the result is formed from the coefficient digits of the value; scientific notation is used for values smaller than 1e-6 in absolute value and values where the place value of the least significant digit is larger than 1, and fixed-point notation is used otherwise.
Positive and negative infinity, positive and negative zero, and nans, are formatted as inf, -inf, 0, -0 and nan respectively, regardless of the precision.
Huh, I'll be damned
my uncle was dying of stage 4 bone cancer , his wife didnt seem to notice --- while he was in final stage in a hospice , she was playing bingo --- he spent his last hours asking where his wife was --- he spent a lifetime paying for everything , she spent her money on fun -- this reflects old and new age females
I think it reflects on the person, not the gender or era
My wife had sepsis before I really knew her. Her boyfriend at the time rarely ever visited, still racked up debt, etc.
its more common than you think - go talk to a divorce lawyer - he / she sees the remains on the battle field
its not general - it just exists - there are some little gems out there -
There are gems about both
The vibe you're giving off with claiming this is incredibly sexist
lol
doesnt stackoverflow ban AI ?
and no chip crunch
Bingo
Also found this in the source code
if digits == 1: # converts values `1.0000001` to 1
result = round(result * 10 ** (3 - digits)) / (10 ** (3 - digits))
which is basically.
if digits == 1: # converts values `1.0000001` to 1
result = round(result * 100) / 100
i cant see how you can have a stand alone box in the corner - running a AI - i keep thinking you need a super machine
!e
print(round(1.5))
print(round(2.5))
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 2
002 | 2
Banker's rounding?
Round .5 to the nearest even number.
So that it's not as biased positively or negatively.
Extremely well-preserved mosaics of a Roman villa discovered under a vineyard in Negrar, Italy.
Photo by Comune di Negrar di Valpolicella
How do you write doc tests for class methods?
class Foo:
def bar(self, x):
"""
>>> bar(1)
1
"""
return x
You need an instance to call the method on: ```py
class Foo:
def bar(self, x):
"""
>>> f = Foo()
>>> f.bar(42)
42
"""
return x
Yeah it's snappy
I'm so surprised
My very educated mother just served us nine pancakes
my very early morning just started under nancy's pancake
@rugged root My very educated mother just served us nachos
๐
Mike's Vulgar Easter Morning Jubilee Scared Uncle's Nuns
Most velociraptors eat meat jerky...
!e
from itertools import cycle
list(cycle([1]))
Yooooo
itertools.repeat
I think it needs to 50 different message blocks? Or is it 50 different messages?
You can use !user to see how many messages you have so far
During the transition, all Discord users will be asked to choose a new username, and access will roll out slowly over the course of several months. We want to be particularly considerate of longtime Discord users who have had their usernames for quite awhile, so we will be assigning priority to choose your new username based on when you registered for Discord. In terms of rollout, weโre starting with access to owners of partner and verified servers, then to all users based on the age of their account in the coming months, starting with 2015. Current Nitro subscribers paying for the ability to customize their discriminator that registered for Nitro on or before March 1, 2023 will also be given early access.
I posted this here before
50 messages, 3 message blocks
Welcome to english hell
Shaun Patrick Micallef (; born 18 July 1962) is an Australian comedian, actor, writer and television presenter. He is currently the host of the satirical news comedy series Shaun Micallef's Mad as Hell on the ABC. He also hosted the game show Talkin' 'Bout Your Generation on Channel 10.
Micallef first gained recognition as a cast member of the s...
Surviving in Greenland's Wild North
Exclusive! Grab the NordVPN deal โผ https://nordvpn.com/johnnyharris. Try it risk-free now with a 30-day money-back guarantee - plus four extra months!
I set out on a journey to the high north to meet the Inuit communities that brave the harshest winters in the world. This documentary is my attempt to bring th...
@little citrus What's your questions?
"Protected" bike lanes on the new 6th street viaduct in LA ๐
They also double as a hard shoulder!
They could have put the concrete barrier on the other side of the bike lane ๐
brb
Tram tracks are also pretty dangerous for cyclists ๐
???
that depends how hard you hit
Did you know the first use of a webcam was to monitor a coffee pot?
yes
Fair enough ๐
Amazon.com: drip bag coffee
northern italy rn
yeah no shit
So, I need to write a description for this function.
>>> round_value(1234)
1200
>>> round_value(1264)
1250
>>> round_value(128)
125
round_value rounds the number to the closest multiple of 5 less than the number?
Hello Iโm new here how does this place work?
!voice
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
round_value rounds the number to the closest multiple of 5 less than the number?
then you'd have
>>> round_value(1234)
1230
>>> round_value(1264)
1260
>>> round_value(128)
125
I need one of these pets. What do they do?
!d collections.Counter
class collections.Counter([iterable-or-mapping])```
A [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") is a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "dict") subclass for counting [hashable](https://docs.python.org/3/glossary.html#term-hashable) objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The [`Counter`](https://docs.python.org/3/library/collections.html#collections.Counter "collections.Counter") class is similar to bags or multisets in other languages.
Elements are counted from an *iterable* or initialized from another *mapping* (or counter):
```py
>>> c = Counter() # a new, empty counter
>>> c = Counter('gallahad') # a new counter from an iterable
>>> c = Counter({'red': 4, 'blue': 2}) # a new counter from a mapping
>>> c = Counter(cats=4, dogs=8) # a new counter from keyword args
Can you solve this real interview question? Top K Frequent Elements - Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.
Example 1:
Input: nums = [1,1,1,2,2,3], k = 2
Output: [1,2]
Example 2:
Input: nums = [1], k = 1
Output: [1]
Constraints:
- 1 <= nums.length...
just buffs like rings or necklaces
btw, when we install any pip libs, and if 'x' lib is built on top of 'y' lib and you install 'z' lib and it also built in on top of 'y' lib. does pip install 'y' lib two times for 'x' own and for 'z' its own?
Just the once
So let's say spam and pork import ham. So long as the version that spam and pork need of ham are within the same ranges, then you're good
If that makes sense
Like spam needs ham to be version >= 4.0 but pork needs ham to be version <= 3.9 then you'll have an issue
Because it won't download both
You'd have to manage that conflict in a different way
Handy Trckball Mouse Relacon Wireless Connection Model. It Releases Mouse Operation From Your Desk And Works Pc Operations In Your Hand.This Is The Best For Watching Videos And Web Browsing While Relaxing On A Sofa Or Bed.Use It Your Right/Left Hands Because Of The Symmetory Design. The Right/Lef...
@mild quartz @rugged tundra was wondering who you consider (or if you consider there to be one) the father/mother or godfather/godmother of machine learning
I argue it's not folks from the current millennia
in this case I will have 2 version of ham installed in my pip?
Although you could probably get those patches and sew them on for way less
Not quite. The conflict will prevent one or the other from being installed
If memory serves
It was like 20 bucks which like yeah fair
Oh yeah at that price
okay, thanks
๐๏ธ โฎ๏ธ out
user=> (html [:ul
(for [x (range 1 4)]
[:li x])])
"<ul><li>1</li><li>2</li><li>3</li></ul>"
insane
@zenith radish are you an artist
I wouldn't say so
did you make those clothes designs
They did not, no
Random people that then decided to sell them on some online thrift shop thing
i am an aspiring software engineer for a front end role. i am working very hard to become like you guys
is there any advice that you guys have for a junior
/ beginner
I am based in South Africa
i am willing to sell my soul lol
(Pretty Funny For Tiktok Video) but he Speak English and didnโt understand the German lol
German Said โI Came once a double pack menuโ
Can I Get 10000 Likes?
yes i hear the accent - yes Germans can be funny
meep
Hi
What is going on here?
walkabout?
@somber heath @elder knot What is going on here guys?
oh
XD
I mean I have nothing to do with this conversation.๐ I have never been out of my country
@trail wadi ๐
@elder knot
yessir
welcome!
Great to have you. ๐
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@fervent plaza ๐
@fervent plaza hi!
ok imi do that now
not eligible have not posted 50 times
yeah i get it hopefully i will get it eventually
ya me nether
can i share some code i wrote here for review
sure
!code
import time
import json
import random
from pyfiglet import Figlet # http://www.figlet.org/figlet-man.html
import os
# print welcome message to my amazing game
f = Figlet(font='slant')
os.system("color 0a") # color change
print(f.renderText("Speed Speller))
time.sleep(2)
os.system('cls' if os.name == 'nt' else 'clear') # clear screen
# open json file and load it into a variable
with open("easy.json", "r") as words_dictionary:
data = json.load(words_dictionary)
# score counting
correct = 0
wrong = 0
total = 0
# Create a text to speech engine
engine = pyttsx3.init()
# Convert the text to speech and play it through the computer speakers # Select a random key from the JSON object and say it
# http://www.gwicks.net/justwords.htm
# configs
engine.setProperty("rate", 110) # speed of computer recomended 90 - 110
while True:
total += 1
# Select a random key from the JSON object and say it
random_word = random.choice(list(data["commonWords"])) # list(data.keys()) for json file with keys
# say the word
engine.say(random_word)
engine.runAndWait()
# starting timer not here yet
# ask user to type the word if correct add 1 to correct if wrong add 1 to wrong
if str(input()) == random_word:
# timer end print time taken
# timer end
correct += 1
print('Correct!')
os.system("color 0a") #changes color
else:
# timer end
wrong += 1
print('Wrong! The correct spelling is: ' + random_word)
os.system("color 0c") #changes color
if total == 25: # if total is met end game
break
# print score and thank user for playing
os.system("color 07") #changes color back to defult
print('Thanks for playing!')
print('You got ' + str(correct) + ' correct out of ' + str(total) + ' words! thats ' + str(correct/total*100) + '%')
right if there using Linux then it wont work
ya colorama looks like a winner for me i will implement it thanks
bless you
yeah thanks a lot
ok
"a": 1,
"aa": 1,
"aaa": 1,
"aah": 1,
"aahed": 1,
"aahing": 1,
"aahs": 1,
"aal": 1,```
this is what the other file looks like where i used the commented code
ok wont str() it
oh ya i should do that
ya it would be better
i made the while true before the break existed
!e py name = 'Peter' age = 17 print('Hello, ' + name + '. You are ' + str(age) + ' years old.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello, Peter. You are 17 years old.
!e py print('abc', 123, 'def', 678)
ok
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
abc 123 def 678
!e py print('abc', 123, 'def', 678, sep='***')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
abc***123***def***678
oh thats cool
!e py print('abc', 123, end='&&&')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
abc 123&&&
ok but i can add my own /n
!e py print('abc', end='') print('def')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
abcdef
!e py name = 'Peter' age = 17 print(f'Hello {name}. You are {age} years old.')
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
Hello Peter. You are 17 years old.
!e py print('abc {} def {}.'.format(123, 'ABC'))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
abc 123 def ABC.
!d import
7.11. The import statement
import_stmt ::= "import" module ["as" identifier] ("," module ["as" identifier])*
| "from" relative_module "import" identifier ["as" identifier]
("," identifier ["as" identifier])*
| "from" relative_module "import" "(" identifier ["as" identifier]
("," identifier ["as" identifier])* [","] ")"
| "from" relative_module "import" "*"
module ::= (identifier ".")* identifier
relative_module ::= "."* module | "."+
```...
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
2.0
!e py import random print(random.randint(1, 6))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
3
if i wanted to to a keypress while in the loop always is there a libs for that
keyboard or pynput
you'd have to read it instead of including it
as an equivalent to this in C++
#include <cmath>
int main()
{
std::cout << std::sqrt(4) << std::endl;
}
std::cout << std::sqrt(4) << endl; what does this do
think im going to use keyboard lib
std::cout << generally does what print does
ok
!e
import math
from sys import stdout
stdout.write(str(math.sqrt(4)))
stdout.write("\n")
stdout.flush()
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
2.0
stdout.write(str(math.sqrt(4)))
```equivalent of
```c++
std::cout << std::sqrt(4)
looks like print
stdout.write("\n")
stdout.flush()
```equivalent of
```c++
std::cout << std::endl
equivalent of print?
ok so like print but with less futures
!d print
print(*objects, sep=' ', end='\n', file=None, flush=False)```
Print *objects* to the text stream *file*, separated by *sep* and followed by *end*. *sep*, *end*, *file*, and *flush*, if present, must be given as keyword arguments.
All non-keyword arguments are converted to strings like [`str()`](https://docs.python.org/3/library/stdtypes.html#str "str") does and written to the stream, separated by *sep* and followed by *end*. Both *sep* and *end* must be strings; they can also be `None`, which means to use the default values. If no *objects* are given, [`print()`](https://docs.python.org/3/library/functions.html#print "print") will just write *end*.
The *file* argument must be an object with a `write(string)` method; if it is not present or `None`, [`sys.stdout`](https://docs.python.org/3/library/sys.html#sys.stdout "sys.stdout") will be used. Since printed arguments are converted to text strings, [`print()`](https://docs.python.org/3/library/functions.html#print "print") cannot be used with binary mode file objects. For these, use `file.write(...)` instead.
what happened to the audio
as far as I understand how it works
import sys
def print(*objects, sep=' ', end='\n', file=None, flush=False):
if file is None:
file = sys.stdout
file.write(sep.join(map(str, objects)))
file.write(end)
if flush:
file.flush()
not sure how many writes it actually does
ok just making sure its not my side
!e
class FakeFile:
def write(self, *args):
print('writing', repr(args))
print(1, 2, 3, file=FakeFile())
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | writing ('1',)
002 | writing (' ',)
003 | writing ('2',)
004 | writing (' ',)
005 | writing ('3',)
006 | writing ('\n',)
oh
!e
import sys
def print(*objects, sep=' ', end='\n', file=None, flush=False):
if file is None:
file = sys.stdout
started = False
for object_ in objects:
if started:
file.write(sep)
file.write(str(object_))
started = True
file.write(end)
if flush:
file.flush()
class FakeFile:
def write(self, *args):
print('writing', repr(args))
print(1, 2, 3, file=FakeFile())
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | writing ('1',)
002 | writing (' ',)
003 | writing ('2',)
004 | writing (' ',)
005 | writing ('3',)
006 | writing ('\n',)
i heard about .zip Doman names
I only know .lnk as a file format (not .ink)
and I know it only as far as "please take it away from me, it's awful, I hate Windows"
ya as a shortcut
there are different types of mathematics
the institution-level certification is not only about knowing a specific domain
Fortran is still okay for maths
with its bindings to Python now especially
vim is just an easy-to-use cli-based editor, as far as I see it
just learn Rust and suffer in adequate ways rather than segfaulting
manual memory management is a valuable experience but it's not something you'd want to use on a regular basis
even OSes have layers of indirection between what they commonly do and actual memory management
don't forget Unix
is there any reason to use this I wonder
https://hub.docker.com/_/archlinux/
Arch Linux is a simple, lightweight Linux distribution aimed for flexibility.
heard Arch mentioned, but idk if it's ever used server-side
my ignorance of "how Arch" and "what Arch" is surprising even to me
I have two separate computers for Windows and Linux
(latter being accessed from the former by ssh)
I try to avoid most of the distribution-specific stuff
(by moving the workflow into docker as much as possible)
I can't use ChatGPT
which is a benefit
with vpn or no
it's not ARM, it's x86-64
Odroid H2 specifically
that one is no longer sold
+connecting SSDs to it is a nightmare
Thanks Alisa.
i wanted an odroid very cool
the reason being the cable
does it have an m.2
yes
SATA power cable specifically
note the very unusual (for sata power) connector
ya that is a very weird sata power cord never saw one of those
you could power it externally mb
this is not what SATA drives are usually powered from
because it's normally only for fans/other relatively low-power devices
ya i would just get an external power for it
I can't speak
waiting for speaking privileges
@fervent plaza
@elder knot
@vocal basin Totally different guy then Farzin
i'm a different person
yeah, that guy got banned
i think
SATA cords.. why do you need them?
SATA cords, what are they good for, absolutely nothing, say it again ๐ต
connecting a second SSD to the single-board computer
@elder knot
Hey guys, I'm a funny guy, therefore do you want to be my friend?
spotify is for normies
Provided to YouTube by Universal Music Group
You Don't Have To Go Home ยท Boney James
Pure
โ 2004 Craft Recordings., Distributed by Concord.
Released on: 2004-08-03
Producer, Recording Producer: Gerald McCauley
Producer, Recording Producer: Paul Brown
Associated Performer, Trombone: Bill Reichenbach
Studio Personnel, Engineer: Tony Zelle...
fully based people use torrents


