#voice-chat-text-0
1 messages Β· Page 621 of 1
k
also i gtg in a fw mins sotry to be quick
Hi!
currently making a mathquiz
yesterday I wrote 2000 lines of code and didn't document a single one
time to get to work
xd
Join the challenge or watch the game here.
Join the challenge or watch the game here.
I am also gonna play chess :V
Join the challenge or watch the game here.
i'm a medium sized boy
the best kind of boy
@whole bear you from?
Ω Ψ§Ψ²Ω?
what is this
arabic
k
k
WTF
K I an going Bye!
@swift valley we have a ToS violation again
same user
two kids on one account, both below 13
was here yesterday too
^ that kid
Right, please DM @rapid crown next time, I'm rather busy right now.
Go ahead
thx
You should add what just just explained to Xenon in README π
@supple marsh https://en.wikipedia.org/wiki/Amateur_flight_simulation
Amateur flight simulation refers to the simulation of various aspects of flight or the flight environment for purposes other than flight training or aircraft development. A significant community of simulation enthusiasts is supported by several commercial software packages, as...
Maybe I should add the tag flight-simulation to the project
well, I can't help you with PHP, sorry
tbh, I usually avoid PHP like the plague
I'm not touching this with a 6-foot-pole
also I need to do other stuff
/ __| '_ \ / _` | | |/ _ \ '_ \ / _` |/ _ \ | | |__) |
| (__| | | | (_| | | | __/ | | | (_| | __/ |_| / __/
\___|_| |_|\__,_|_|_|\___|_| |_|\__, |\___|\___/_____|
|___/ root-me.org
app-script-ch13@challenge02.root-me.org's password:
_
_ __ ___ ___ | |_ _ __ ___ ___ ___ _ __ __ _
| '__/ _ \ / _ \| __| ___ | '_ ` _ \ / _ \ / _ \| '__/ _` |
| | | (_) | (_) | |__|___|| | | | | | __/_| (_) | | | (_| |
|_| \___/ \___/ \__| |_| |_| |_|\___(_)\___/|_| \__, |
|___/
You are in jail ! MOUAHAH !
Don't try to escape this one, just go deeper in it.
Flag is in a subdirectory... Good Luck ! =)
>>>
if it was bash I might try
@green nimbus Cooool
@little ridge How do you make this?
ohh so we have to make this.
I think he's asking how you make the large ascii text
yes
idk
try pyfiglet
is it programming or someone sit long enough to print that?
maybe that want some Creativity that i dont have
@heady copper someone sit long enough to print that
FIGlet is a program which converts text to ascii banners
ohh
on linux you can apt install it
but I would use pyfiglet if I were you
since you probably already have a python insallation set up
yes
_ _
__ _ | |__ (_) __ _ _ __ __ _ _ __ ___ ___
/ _` | | '_ \| |/ _` | | '_ \ / _` | '_ ` _ \ / _ \
| (_| | | |_) | | (_| | | | | | (_| | | | | | | __/
\__,_|___|_.__/|_|\__, |___|_| |_|\__,_|_| |_| |_|\___|
|_____| |___/_____|
____ ____ _ ____ _
/ ___| _ _ _ __ ___ _ __/ ___| ___ _ __ (_) ___/ ___| __ _ _ __ __| |
\___ \| | | | '_ \ / _ \ '__\___ \ / _ \| '_ \| |/ __\___ \ / _` | '_ \ / _` |
___) | |_| | |_) | __/ | ___) | (_) | | | | | (__ ___) | (_| | | | | (_| |
|____/ \__,_| .__/ \___|_| |____/ \___/|_| |_|_|\___|____/ \__,_|_| |_|\__,_|
|_|
_ _ ____ _ _
__ _(_) ___| |__ / ___| _ __ __ _| |_ ___| |__ ___ _ __
\ \ /\ / / |/ __| '_ \\___ \| '_ \ / _` | __/ __| '_ \ / _ \ '__|
\ V V /| | (__| | | |___) | | | | (_| | || (__| | | | __/ |
\_/\_/ |_|\___|_| |_|____/|_| |_|\__,_|\__\___|_| |_|\___|_|
ohh
that is what figlet does
ohh
_ _ _
/ \ _ __(_) __ _ _ __ _ __ / |
/ _ \ | '__| |/ _` | '_ \ _____| '_ \| |
/ ___ \| | | | (_| | | | |_____| |_) | |
/_/ \_\_| |_|\__,_|_| |_| | .__/|_|
|_|
good for youtube comments.
apt install figlet
π
__ __
\ \/ /___ _ __ ___ _ __
\ // _ \ '_ \ / _ \| '_ \
/ \ __/ | | | (_) | | | |
/_/\_\___|_| |_|\___/|_| |_|
it's pretty cool
yeah it is
see also cowsay and banner
which are also linux programs which do similar fun stuff with words
though figlet is basically just a better version of banner
ohh
_ _ _ _ _ _
/ \ | (_) | | | | __ _ ___ _ __ __ _(_)_ __
/ _ \ | | | | |_| |/ _` / __| '_ \ / _` | | '_ \
/ ___ \| | | | _ | (_| \__ \ | | | (_| | | | | |
/_/ \_\_|_| |_| |_|\__,_|___/_| |_|\__,_|_|_| |_|
@subtle orchid
/ \ | (_) | | | | __ _ ___ _ __ __ _(_)_ __
/ _ \ | | | | |_| |/ _` / __| '_ \ / _` | | '_ \
/ ___ \| | | | _ | (_| \__ \ | | | (_| | | | | |
/_/ \_\_|_| |_| |_|\__,_|___/_| |_|\__,_|_|_| |_|```
Once I made a program that generate random quotes.
op
Code editors and terminals normally use monospaced fonts
@subtle orchid compare these two fonts:
mliwi
mliwi
look at the relative widths of the m, l, i and w in each case
in the first example all the letters are the same size
this is called monospace
in the second example they are not
| |__ __ ___ _____ / _|_ _ _ __
| '_ \ / _` \ \ / / _ \ | |_| | | | '_ \
| | | | (_| |\ V / __/ | _| |_| | | | |
|_| |_|\__,_| \_/ \___| |_| \__,_|_| |_|
Coool
< oh help me im a cow >
---------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
A weather app!
*a weather website
Work on the front-end.
____________________________
< oh help I am a cow as well >
----------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
____________________________
< I will stick out my tongue >
----------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
I ||----w |
|| ||
< hey dude do u like play with me >
---------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
< cuz u are cow too >
-------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
________________________
< sorry i feel too tired >
------------------------
\ ^__^
\ (--)\_______
(__)\ )\/\
||----w |
|| ||
______________________
< or maybe I am stoned >
----------------------
\ ^__^
\ (**)\_______
(__)\ )\/\
U ||----w |
|| ||
___________________________
< i think I am going to die >
---------------------------
\ ^__^
\ (xx)\_______
(__)\ )\/\
U ||----w |
|| ||
< i wanna cry >
-------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
_____________________
( but does he mean it )
---------------------
o ^__^
o (xx)\_______
(__)\ )\/\
U ||----w |
|| ||
___________________________
< now I am reborn and young >
---------------------------
\ ^__^
\ (..)\_______
(__)\ )\/\
||----w |
|| ||
look, fast internet @little ridge
64 bytes from 8.8.8.8: icmp_seq=1 ttl=107 time=60.4 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=107 time=57.0 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=107 time=54.1 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=107 time=52.9 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=107 time=54.0 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=107 time=53.0 ms
@little ridge
Reply from 8.8.8.8: bytes=32 time=57ms TTL=110
Reply from 8.8.8.8: bytes=32 time=54ms TTL=110
Reply from 8.8.8.8: bytes=32 time=54ms TTL=110
Reply from 8.8.8.8: bytes=32 time=54ms TTL=110
Ping statistics for 8.8.8.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 54ms, Maximum = 57ms, Average = 54ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.031 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.053 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.034 ms
^C
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=11.3 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=11.2 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=118 time=11.3 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=118 time=11.1 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=118 time=11.3 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=118 time=11.2 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=118 time=11.3 ms
^C
--- 8.8.8.8 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 13ms
rtt min/avg/max/mdev = 11.139/11.250/11.340/0.135 ms
64 bytes from 1.0.0.1: icmp_seq=1 ttl=52 time=124 ms
64 bytes from 1.0.0.1: icmp_seq=2 ttl=52 time=124 ms
64 bytes from 1.0.0.1: icmp_seq=3 ttl=52 time=155 ms
64 bytes from 1.0.0.1: icmp_seq=4 ttl=52 time=156 ms
64 bytes from 1.0.0.1: icmp_seq=5 ttl=52 time=122 ms
64 bytes from 1.0.0.1: icmp_seq=6 ttl=52 time=146 ms
44ms ish.
telstra, huh?
!rule 4
4. This is an English-speaking server, so please speak English to the best of your ability.
Donald Trump keeps telling us if he was president, you'd feel safe.
Well, he is president β whether he knows it or not.
53821
273363
it's actually real
bit childish tho
@hushed elm https://www.youtube.com/watch?v=vZw35VUBdzo
More videos at http://www.cinematheia.com/
http://www.cinematheia.com/monty-pyth... MONTY PYTHON ARE BACK TOGETHER!
this is how I felt about the people who were suddenly not dead according to the UK statistics
yo
then you're older than me
audio for LX!
@gentle flint this kid is 17
18 here
@gentle flint kidd
captain kidd?
kobra kid
doesnt make any sence
As the Adventure Galley sailed down the Thames, Kidd unaccountably failed to salute a Navy yacht at Greenwich, as custom dictated. The Navy yacht then fired a shot to make him show respect, and Kidd's crew responded with an astounding display of impudence β by turning and slapping their backsides in [disdain].
big lols @gentle flint
/api/cancel_subscription
/api/subscription and make a DELETE request on it?
/api/subscription/:id
f"/api/subscription/{id}"
@silver cliff where's Bonnie?
idk
model this binary tree and by using travsersal, compute the value at the root node.
beep beep
hi
Yo @subtle orchid
sup
fu*k
Yeah my bedroom is in an attic conversion, so all the heat from the rest of the house rises.
same
I've got used to sleeping with a fan on, and now I can't sleep without it.
I am under the flat black roof
It's like a white-noise machine.
and it gets like 40 degrees in here
sheeett
my screen melted 4 weeks ago
melted?
Damn
someone that can help me with operators ?
@stuck furnace Can I dm you?
Erm, claim an available help channel, and I'll help you there.
I cant explain exactly my problem through chat I need to kinda share my screen
Unfortunately screen sharing isn't allowed on this server
in private?
'The procedure entry point SetDefaultDllDirectories could not be located in dynamic link library KERNEL32.dll.' ---What does this mean---
from bs4 import BeautifulSoup
import requests
source = requests.get('https://www.muslimpro.com/en/Prayer-times-London-United-Kingdom-2643743').text
soup = BeautifulSoup(source, 'lxml')
print(soup.prettify())
prayer_time = soup.find('div', class_="prayer-daily-table d-inline-flex pt-4 px-2")
fajr = prayer_time.find('span', class_="jam-solat")
from bs4 import BeautifulSoup
import requests
source = requests.get('https://www.muslimpro.com/en/Prayer-times-London-United-Kingdom-2643743').text
soup = BeautifulSoup(source, 'lxml')
prayertime = soup.find('div', class="prayer-daily-table d-inline-flex pt-4 px-2")
fajr = prayertime.find('span', class="jam-solat")
print(fajr)
@fierce quartz
Welcome back to Instagram. Sign in to check out what your friends, family & interests have been capturing & sharing around the world.
<ul>
[<li>, <li>, <li>]
ul
fajr.parent
@whole bear i don't know jquery in order to help you π¦
but you can type in here what error you get
@hushed elm
from bs4 import BeautifulSoup
import requests
source = requests.get('https://www.muslimpro.com/en/Prayer-times-London-United-Kingdom-2643743').text
soup = BeautifulSoup(source, 'lxml')
prayertime = soup.find('div', class_="prayer-daily-table d-inline-flex pt-4 px-2")
fajr = prayertime.find('span', class_="jam-solat")
print(fajr.text)
all_prayer_time = prayertime.findAll('li', {'class':'d-flex justify-content-between'})
print(all_prayer_time.text)
all_prayer_time = prayertime.findAll('li', {'class':'d-flex justify-content-between'})
print(all_prayer_time.text)
thank you for your help
thank you
you're welcome
HI FROM RUSSIA
π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ
π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊπ·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊπ·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ π·πΊ
sings solvient russian anthem in cat
Soviet or solvient?
@wide vine https://lichess.org/250736iq
Join the challenge or watch the game here.
I need some code help with my assignment
can someone ping me if they're available
@quartz lynx virtualenv ./venv that's how i do it
It's time to bring back the web development live-streams! This time we're starting to write a small micro-blog that allows users to write posts, like a journal.
We'll be using vanilla Flask, HTML, Jinja2, and CSS for this project. It's a great project to start learning web de...
gg @wide vine
gg
aye can I talk to someone that knows python very good? someone from here
got some private questions..
I want the for loop to remove a item that is repeated and not add the one thats repeated
import pymouse
mouse = pymouse.PyMouse()
mouse.position()
(231L, 479L)
I want the for loop to remove a item that is repeated and not add the one thats repeated
here
instead of doing
mylist = [1,3,7]
def list_editor():
global mylist
mylist.append(92)
you can do
mylist = [1,3,7]
def list_editor(testlist):
testlist.append(92)
return(testlist)
list_editor(mylist)
never use globals if at all possible
pass in your stuff instead
instead of doing
mylist = [1,3,7] def list_editor(): global mylist mylist.append(92)you can do
mylist = [1,3,7] def list_editor(testlist): testlist.append(92) return(testlist) list_editor(mylist)
@gentle flint ok thank you let me try this method
6.10 The continue statement
https://docs.python.org/2.0/ref/continue.html
thanks I'll check this out!
6.10 The continue statement
can;t you use a while loop like
while ch=='n'
imagine posting python 2.0 docs
imagine learning a coding language
is it here:
@ocean hazel can you turn on push to talk please
your pings are driving us all a little mad
oh, muting works too
thanks
import sys
class Arg:
def __init__(self,names_and_funcs):
self.all = names_and_funcs
for x in names_and_funcs.keys():
if x == sys.argv[1] and sys.argv[2]:
print(self.all.get(x)(sys.argv[2],))
args = Arg({"read_file":lambda x: open(x,"r").read()})
python main.py read_file main.py
no
exit()
after exit() type python3 main.py read_file main.py
not python
python3
python default on debian-based stuff is 2.7
it's switching to 3.8 in next version iirc
yeah, exactly
oh
i am bad at english so
xD
hhhhh
i don't know
hhhhhhh
yeah
hhhhhhhh
sorry
from deque import Q...
hh
hhh
the name of the show
Thread
what
hhhhhhhhh
to print "a" in python
do
print("a")
print('hello world')
# small functions used for type conversions etc
def fromjsiso(timestamp):
timestamp_formatted = timestamp.replace('Z', '+00:00')
timestamp_py = datetime.fromisoformat(timestamp_formatted)
return(timestamp_py)
# convert all the ISO-8601 JS timestamps to Python datetime object
for i in ["sunrise", "sunset", "dawn", "dusk"]:
try:
result_dict["times"][i] = fromjsiso(
result_dict["times"][i]
)
except KeyError:
pass
except ValueError:
print(f"[times][{i}] was not a valid timestamp")
raise
I hate myself
h
@potent jacinth `# Static files (CSS, JavaScript, Images)
https://docs.djangoproject.com/en/2.1/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)`
IN URLS.PY
urlpatterns = [ path('admin/', admin.site.urls), path('', TemplateView.as_view(template_name='base.html'), name='home'), path('accounts/', include('django.contrib.auth.urls')),
ALSO IN SETTINGS.PY:
`ROOT_URLCONF = 'lcd.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
'templates',
'templates/registration',
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]`
use flask
MemTotal: 61840436 kB
MemFree: 46193412 kB
MemAvailable: 47721100 kB
Buffers: 466284 kB
Cached: 670292 kB
SwapCached: 0 kB
with open('/proc/meminfo', 'r') as f:
file = f.read()
print(file)
clean_list = []
with open('/proc/meminfo', 'r') as f:
lines = f.readlines()
for line in lines:
split_line = [block.strip() for block in line.split(':')]
clean_list.append((split_line[0], split_line[1][:-3]))
print(clean_list)
@hexed glacier
clean_dict = {}
with open('/proc/meminfo', 'r') as f:
lines = f.readlines()
for line in lines:
split_line = [block.strip() for block in line.split(':')]
clean_dict[split_line[0]] = split_line[1][:-3]
print(clean_dict)
{'WritebackTmp': '0', 'SwapTotal': '2097148', 'Active(anon)': '12030596', 'SwapFree': '2097148', 'DirectMap4k': '1482600', 'KernelStack': '103852', 'MemFree': '46069976', 'HugePages_Rsvd': '', 'Committed_AS': '88980480', 'Active(file)': '940924', 'NFS_Unstable': '0', 'VmallocChunk': '0', 'CmaFree': '0', 'Writeback': '0', 'Inactive(file)': '470984', 'MemTotal': '61840436', 'VmallocUsed': '0', 'DirectMap1G': '27262976', 'HugePages_Free': '', 'AnonHugePages': '0', 'AnonPages': '12307532', 'Active': '12971520', 'Inactive(anon)': '101564', 'CommitLimit': '33017364', 'Hugepagesize': '2048', 'Cached': '759168', 'SwapCached': '0', 'VmallocTotal': '34359738367', 'CmaTotal': '0', 'Shmem': '54196', 'Mapped': '606204', 'ShmemPmdMapped': '0', 'SUnreclaim': '796468', 'Unevictable': '32', 'SReclaimable': '912072', 'MemAvailable': '47703728', 'Mlocked': '32', 'DirectMap2M': '36265984', 'HugePages_Surp': '', 'Bounce': '0', 'Inactive': '572548', 'PageTables': '134948', 'HardwareCorrupted': '0', 'ShmemHugePages': '0', 'HugePages_Total': '', 'Slab': '1708540', 'Buffers': '476516', 'Dirty': '532'}
fetch(base_url, options).then(res => res.json()).then(json => {
const embed = new Discord.MessageEmbed()
embed.addField("ID", json['droplets'][0]['id'], true)
embed.addField("Name", json['droplets'][0]['name'], true)
embed.addField("Status", json['droplets'][0]['status'], true)
embed.addField("Total Memory", json['droplets'][0]['memory'], true)
embed.addField("Total Cores", json['droplets'][0]['vcpus'], true)
embed.addField("Total Disk", json['droplets'][0]['disk'], true)
embed.addField("Distribution", json['droplets'][0]['image']['distribution'], true)
embed.addField("Version", json['droplets'][0]['image']['name'], true)
embed.addField("Region", json['droplets'][0]['region']['name'], true)
embed.setTitle("Web Panel (JavaScript)")
embed.setDescription("Web Panel Information")
embed.setTimestamp()
embed.setColor(0x0bbfff)
message.channel.send(embed)
});
fetch(base_url, options).then(res => res.json()).then(json => {
{% load static %}
Have you followed this?
https://docs.djangoproject.com/en/3.1/howto/static-files/
nope
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
@restive hill is your problem solved about django?
Can anybody tell me where can I find good resources for new project ideas?
I am a beginner in python
@whole bear got disconnected due to battery drop me a message, we can discuss
Me
good xd
Hey all
hi there
Yeah, so you have a text-editor (where you type in your code and save it to a file), and you have a terminal (where you run the code)
You can even use notepad.exe
But you can't use something like microsoft Word
I'm on mac
You can use textedit
But you have to change a couple of settings so that it is a plain text editor
have a question
I have a geo quiz command
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
this is my code for the quiz
a quiz of countries and stuff
the api sometimes gives thre answers
iinstead of 4
how can I cound the quiz and then add the reactiond?
this is a perfect quiz no?
and also this problem
['capital', 'region', 'subregion', 'population', 'demonym', 'nativeName']
Hey @whole bear. You still need help getting started?
list('π¦π§π¨π©')
this is the list of reaction in the embed not reactcing the embed
@obsidian inlet that seems like a math question
You can get the soultions for x,y,z using matrices
Math explained in easy language, plus puzzles, games, quizzes, worksheets and a forum. For K-12 kids, teachers and parents.
just implement this method to get the solution for x,y,z
I make a for loop for every option the api gives me and thene
al = list of emojis for every option
thene I join every emoji for every quiestion
and to check for unique solutions, ig there is a way:
if the equations are:
ax + by + c = 0
a1x + b1y + c1 = 0
then if a/a1 != b/b1, then there exists a unique pair of (a,b)
^ but im not sure that this method will work for 3 simultaneous equations
try to plot a graph
the third equation is a quadratic
so it will be a parabola/hyperbola/circle
print('Hello, World!')
You could do a mad-libs program.
Story with missing words.
People, who don't see the story, add the words according to word type/description.
The result is often amusing.
try:
msg = int(input("Put here an input"))
print(msg)
except ValueError:
print("Give me a number")
Hey, I have an idea, you could try using turtle
# CODE
~
`
`
You can make the turtle move around with commands like forward(100), left(90), right(90)
dosent work like that @stuck furnace
nede to make a loop
if not it will close at the start
But it's good to be able to just try giving commands and see something happen in response.
MyArray = ['lol', 'xd', 'hi']
print(MyArray[0])
prices = [{'melons':5}]
print(prices['melons'])
msg = input("Put here an input \n")
if msg == "hello":
print("Hi!")
elif msg == "hi":
print("Hello")
else:
print("Maybe u whanna start with a hello")
you could make a simple hangman game
while condition:
for somrthing in whatever:
num = 0
while num<10:
print(num)
num += 1
# THIS IS A COMENT
# OR A FOR LOOP
num = 0
for i in range(3):
num += 1
print(num)
he's not here @somber heath
π
I would actually recommend he try turtle.
It's visual, and was designed to help kids learn to program.
I think working with text is more abstract than making a turtle move around on a screen. In a way.
Alright, try running this:
from turtle import *
# Draw an H
left(90)
forward(100)
right(180)
forward(50)
left(90)
forward(50)
left(90)
forward(50)
right(180)
forward(100)
left(90)
penup()
forward(50)
# Draw an i
pendown()
left(90)
forward(50)
penup()
forward(20)
right(90)
pendown()
circle(10)
Oh yeah, I saw that @somber heath
On Buzzfeed or something.
Their coordination was impressively professional.
Oh no
Are you sure you didn't miss any of the code?
Can you copy and paste the error message?
why not just write it?
async def bomb(self, ctx):
def embedType(a):
if a==1:
return discord.Embed(title='Β‘La bomba ha explotadao!', description='Has perdido!', colour=color)
elif a==2:
return discord.Embed(title='Β‘La bomba ha sido desarmada!', description=f'Β‘Felicidades {ctx.author.mention} has desactivado la bomba! :grinning:', colour=color)
embed = discord.Embed(title='Β‘DESACTIVA LA BOMBA!', description='**Β‘Corta el cable correcto! \nΒ‘La bomba explotarΓ‘ en 15 segundos!**', colour=color)
main = await ctx.send(embed=embed)
buttons = ['π΄', 'π‘', 'π΅', 'π’']
for i in range(0, len(buttons)):
await main.add_reaction(buttons[i])
correct = random.choice(buttons)
def check(reaction, user):
return user == ctx.author
try:
reaction, user = await self.bot.wait_for('reaction_add', timeout=15.0, check=check)
except asyncio.TimeoutError:
await main.edit(content='', embed=embedType(1))
if str(reaction.emoji)!=correct:
await main.edit(content='', embed=embedType(1))
else:
await main.edit(content='', embed=embedType(2))
These are the commands you can use:
Go forward by distance: forward(distance)
Turn left by angle (measured in degrees): left(angle)
Turn right by angle: right(angle)
Draw a circle with radius: circle(radius)
Stop drawing the line: penup()
Start drawing the line again: pendown()
Alright π
if condition:
# CODE
Oh, my bad sorry. That was just meant to be a list of the functions you can use.
I prefer to type sorry π
a = 1
if a == 1:
print('a has a value of one')
else:
print('a is somehing else!')```
I've been coding for about 10 years.
It's best to do a little bit every day, when you're starting. That way you remember things better.
Alright cya
awd
awp
People love to beep π
In the UK you're only supposed to beep like if someone is about to get run over.
But you can give a polite toot otherwise.
I think Mark Rober did a project where he made a polite car horn.
This horn is SO courteous my car was granted Canadian citizenship yesterday.
FREE Audio Book- http://bit.ly/AudibleMarkRober
A review of all the books I've listened to recently: http://bit.ly/MarksAudioBooks
Check out Bob's video: https://youtu.be/smhMLsP5fsM
My buddy H...
Does the color come from the album art?
Oh right
is there any way to parse/change the colour?
You could write a function to choose a contrasting color.
I'm curious, what does it look like if you play roses by the chainsmokers
Why does this say that the user is playing Spotify?
yes
how hard are you scrolling?
Does discord play Spotify?
I've had 0 luck with the spotipy api
theres no spotify api
spotipy
no
this is my spotify thing code
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
The word 'squarespace' is etched on my brain from all the adverts.
Theres no spotipy things
How good is pair programming?
Pair programming is great, you should try it.
I'm pretty sure spotipy let's you get the cover art
But how to do pair programming?
Erm, so you could do it in person or over the internet.
You basically sit down with someone at a single computer and work on a problem together.
Are there any tools for pair programming?
Usually one person writes all the code, and the other person reviews the code as it's written.
gotta reinstall some security stuff rq then ill check it out
Hello
helo
h
@stuck furnace : BUT THIS LOVE SHARE works just like in atom has the feature?
maubg I think what you're doing might be against tos
im not sure tho I'm reading through it
But is atom good to use?
maubg I think what you're doing might be against tos
@bleak mica what tos?
just install in vsc live share
@pine iron it depends
Really, you could use anything @pine iron
yeah
If you want to do ML/AI use pycharm (especially in winter :p)
Only one person needs to be able to directly edit the code.
maubg I think what you're doing might be against tos
@bleak mica no
Vim?
yeha
are you from NIT or IIT?
Oh
I can also download yt vids by recording them, doesn't mean it's not against tos
I made vim like vscode
idk it says: "like it says: "βcrawlingβ the Spotify Service or otherwise using any automated means (including bots, scrapers, and spiders) to view, access, or collect information from Spotify or the Spotify Service;" is against it but idk if you're technically crawling
it basically has everything
Can you share the configuration file of vim?
yeah
it's __spotify __user data tho
" Vim with all enhancements
source $VIMRUNTIME/vimrc_example.vim
" Use the internal diff if available.
" Otherwise use the special 'diffexpr' for Windows.
if &diffopt !~# 'internal'
set diffexpr=MyDiff()
endif
autocmd Filetype java set makeprg=javac\ %
set errorformat=%A%f:%l:\ %m,%-Z%p^,%-C%.%#
map <F10> :cprevious<Return>
map <F11> :cnext<Return>
autocmd BufNewFile *.cpp execute "0r ~/.vim/template/".input("Template name: ").".cpp"
map <F9> :!g++ -g % -o %:r && %:r <CR>
map <F5> :!g++ -g % -o %:r <CR>
set guifont=Consolas :h11
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg1 = substitute(arg1, '!', '\!', 'g')
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg2 = substitute(arg2, '!', '\!', 'g')
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let arg3 = substitute(arg3, '!', '\!', 'g')
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
if empty(&shellxquote)
let l:shxq_sav = ''
set shellxquote&
endif
let cmd = '"' . $VIMRUNTIME . '\diff"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
let cmd = substitute(cmd, '!', '\!', 'g')
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
if exists('l:shxq_sav')
let &shellxquote=l:shxq_sav
endif
endfunction
ITs written for c++ tho
Vim is cool, but it's got a bit of a steep learning curve @pine iron
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
But does the vim work really like the cscode?
yeah
Vscode
I do competitive programming so vim is the best
Vim can do basically anything with enough plug-ins.
yeah
But it can also do a surprising amount without any plugins.
^ agree
yes I know, but you're grabbing it from a spotify url
so you're grabbing it from spotify?
you can literally bind a huge command line to a single key
Can vim do the GitHub thing?
'name': source.activity.title,
'artist': self.dearray(source.activity.artists),
'album': source.activity.album,
'url': source.activity.album_cover_url
map <F9> :git commit master (idk the command) lol <CR>
just add that in your vim rc file
thats it
Many people use it as their only text editor @pine iron
https://i.scdn.co/image/ab67616d0000b273ce4ef09f5e36c6af62c6f8a6
But it takes a while to learn.
where'd you get that link from?
def _spotify(self, details):
url = details['url']
print(url)
del details['url']```
I'm just curious sorry, what does that print if you do it?
ml is based on linear algebra + stats
what are the key value pairings for details?
Did you go to university @pine iron ?
https://i.scdn.co/image/ab67616d0000b273ce4ef09f5e36c6af62c6f8a6
say sorry maubg u where right @bleak mica
Machine learning and AI are mostly used by businesses for data analysis.
The job of data-scientist is pretty similar to being a statistician.
Sorry where do you think the program is getting that link from?
discord
mkay
any of you worked with qt?
qt?
ΠΠΎ ΠΏΡΠΎΡΡΠ±Π΅ ΠΏΠΎΠ΄ΠΏΠΈΡΡΠΈΠΊΠ° ΡΠ΄Π΅Π»Π°Π» ΡΠ°ΡΠΎΠ²ΡΡ Π²Π΅ΡΡΠΈΡ
Π‘ΠΊΠΎΡΠΎ Π±ΡΠ΄ΡΡ Π½ΠΎΠ²ΡΠ΅ ΡΠΎΠ»ΠΈΠΊΠΈ, ΡΠΏΠ°ΡΠΈΠ±ΠΎ ΡΡΠΎ Π²Ρ ΡΠΌΠΎΡΡΠΈΡΠ΅ ΠΌΠ΅Π½Ρ
ΠΠΎΠΏΠΎΠ»Π½ΠΈΡΠ΅Π»ΡΠ½ΠΎΠ΅ ΠΎΠΏΠΈΡΠ°Π½ΠΈΠ΅:
ΠΠ½ΠΈΠΌΠ΅: Kaguya-sama: Love is War
ΠΡΠ·ΡΠΊΠ°: Aaron Smith - Dancin (KRONO Remix)
Π‘ΠΏΠ°ΡΠΈΠ±ΠΎ Π·Π° ΠΏΡΠΎΡΠΌΠΎΡΡ ΠΈ Π²ΡΠ΅Π³ΠΎ Π΄ΠΎΠ±ΡΠΎΠ³ΠΎ!
ΠΠ²ΡΠΎΡ ΠΌΠ΅Π΄ΠΈΠ° ΠΠ²Π³Π΅Π½ΠΈΠΉ ΠΈΠ»ΠΈ ΠΆΠ΅ YDT(AzenFX)
...
RSS Feed
zerocool
This is the official YouTube channel of https://mollyrocket.com, home of Handmade Hero, Meow the Infinite, and 1935.
i am new here , nice to meet u guys
@fast fiber hello
Guys What's better for data science? Python or R?
print("""
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
""")
from selenium import webdriver
import time
username = 'ge.a.R.GAERGAETHTH@gmail.com'
password = 'agaergaergdsdf'
url = 'https://proxy.webshare.io/register/?next='
driver = webdriver.Chrome(executable_path='chromedriver.exe')
driver.get(url)
driver.find_element_by_id('email').send_keys(username)
driver.find_element_by_id('password1').send_keys(password)
driver.find_element_by_id('loginbutton').c
element = driver.find_element_by_xpath("//input[@id='passwd-id']")
@gentle flint feel like playing some chess?
@hushed elm https://github.com/PH-KDX/flightplandb-python
@dim wagon
I will penetrate your ear with a pawn @hushed elm
no ty hhhh
0:00 - ELSWEYR PALACE
2:01 - FILTHY RICH
4:21 - MAZED BAND (feat. Beyte Fyr)
6:30 - HORNY
8:45 - TSAESCI (feat. Baurus)
11:37 - BALMORA BLUE
STREAM: https://soundcloud.com/youngscrolls/sets/saint
DOWNLOAD: https://youngscrolls.bandcamp.com/album/saint
INSTRUMENTALS: https://y...
thank you for playing
gracias
please be nice in the chat
Drowzee
@frosty garnet https://www.youtube.com/watch?v=zP_10bDxaVo
Do me a favour please, gerara here. Gerara here man shit naam saying? Get... In Igbo, sieba pwo(Get out of here).. Gerara here for real naam saying.. Geraaar here for real naam saying?
This is an extract from a Nigerian movie titled "Back from South".
hi john
hey @subtle orchid
@sterile python https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
Download free virtual machines to test Microsoft Edge and IE8 to IE11
@wet patio https://v8.dev/
V8 is Googleβs open source high-performance JavaScript and WebAssembly engine, written in C++.
Yo
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββ
Like, you want to do ascii art?
Erm, one sec
_ _ _ _
| | (_) | | | |
| |__ _ __ _| |__ __ _ ___| |__
| '_ \| |/ _` | '_ \ / _` / __| '_ \
| |_) | | (_| | |_) | (_| \__ \ | | |
|_.__/|_|\__, |_.__/ \__,_|___/_| |_|
__/ |
|___/
Is that the kind of thing you were looking for?
yes
Block Elements is a Unicode block containing square block symbols of various fill and shading. Used along with block elements are box-drawing characters, shade characters, and terminal graphic characters. These can be used for filling regions of the screen and portraying drop ...
can i print this with my code
same lol
For like 5 minutes then watching Netflix
Bojack Horseman
@craggy zephyr use pyfiglet
it's a python library, available on pip, and does exactly what you want
thanks, i'll
driver.find_element_by_id('loginbutton').click() @whole bear
driver.find_element_by_id('loginbutton')
https://github.com/altskop/house-cat-bot/blob/master/house_cat/games/sessions/rock_paper_scissors.py
look at line 108
@hushed elm https://lichess.org/ArHGCRcl
Join the challenge or watch the game here.
to spectate go to https://lichess.org/K9qGqQn6x8RK
anyone need help with their code?
@here
i need help
how would i be able to integrate
an or operator
into python
currently i have
uk_airport = input ()
how would i be able to use an OR Operator
I need to make it so the input should either be LPL or BOH
the or operator is or in python
uk_airport = input(' where do you want to go?' )
condition_flag = False
while condition_flag == False:
if uk_airport != LPL or BOH:
uk_airport = input(' where do you want to go?' )
condition_flag = False
while condition_flag == False:
if uk_airport != LPL or BOH:
uk_airport = input(' where do you want to go?' ) ```
rip
my first time using ' code'
mΓΆbn jjtdm
im a nobhead
lol
condition_flag = False
while condition_flag == False:
if uk_airport != LPL or BOH:
uk_airport = input(' where do you want to go?' ) ```
condition_flag = False
while condition_flag == False:
if uk_airport != LPL or BOH:
uk_airport = input(' where do you want to go?' )```
condition_flag = False
while condition_flag == False:
if uk_airport != LPL or BOH:
uk_airport = input(' where do you want to go?' )
else:
condition_flag = True
print('thank you for entering the correct answer DUMBASS')```
fajr = print(all_prayer_time[0].text)
if fajr[0] == 0:
print(fajr)
TypeError: 'NoneType' object is not subscriptable
plz help
@dire folio
import requests
source = requests.get('https://www.muslimpro.com/en/Prayer-times-London-United-Kingdom-2643743').text
soup = BeautifulSoup(source, 'lxml')
prayertime = soup.find('div', class_="prayer-daily-table d-inline-flex pt-4 px-2")
fajr = prayertime.find('span', class_="jam-solat")
all_prayer_time = prayertime.findAll('span', {'class':'jam-solat'})
fajr = print(all_prayer_time[0].text)
if fajr[0] == 0:
print(fajr)
guys
plz help
TypeError: 'NoneType' object is not subscriptable
import requests
source = requests.get('https://www.muslimpro.com/en/Prayer-times-London-United-Kingdom-2643743').text
soup = BeautifulSoup(source, 'lxml')
prayertime = soup.find('div', class_="prayer-daily-table d-inline-flex pt-4 px-2")
fajr = prayertime.find('span', class_="jam-solat")
all_prayer_time = prayertime.findAll('span', {'class':'jam-solat'})
fajr = print(all_prayer_time[0].text)
if fajr[0] == 0:
print(fajr)```
the or operator is
orin python
@errant helm thank you
I encountered someone using something called Flowgorithm, yesterday. It used a flowchart gui to write Python. The gui called float real.
okay im confused now
basically i need to make a menu
i made the whole display
but when i try selecting
an option that isnt the first one
My point being is that or could well have been something else. A character, even.
it only shows the data for the first option
What are you using to make the gui?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
@tardy cove

def this():
is_not = "legal"
here = 0
def this():
is_fine =
"because the indents"
are = "equal in " +
"each separate section"
>>> input()
aaa
'aaa'
>>> input
<built-in function input>
meals = {'breakfast': 'cereal', 'lunch': 'sandwiches', 'dinner': 'roast beef'}
_input = input('What meal do you want to have? (breakfast, lunch, dinner)>')
food = meals[_input]
print('You will have ' + food)```
meals = {
'breakfast': 'cereal',
'lunch': 'sandwiches',
'dinner': 'roast beef'
}
_input = input('What meal do you want to have? (breakfast, lunch, dinner)>')
food = meals[_input]
print('You will have ' + food)
my_variable == 7 # This will do nothing.
if (my_variable == 7): print("cheese") # this will print cheese if and only if my_variable equals 7
# less compressed version:
if (my_variable == 7):
print("cheese")
Indentation, for loops, while loops, lists, dictionaries, if, else, elif, strings, integers, floats, functions (def), function parameters, range, ==, !=, >, <.
hmm creating modules
try block?
π
use whatever idel u want* Koncealed
write a variable
to define the variable
@whole bear Are u new to python?
Will u might sharing ur code
dir
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Welcome to Part 08 of the Python Programming tutorial series here on Tutorial Spot.
In Part 08 I will be demonstrating how we can create a simple but powerful, text based menu system in Python using a function and an if statement.
Python 3.4.3 was used to make this tutorial...
@whole bear just seeing your message. You didn't ping. Did you get through with your code?
im just struggling to get the variable to be defined
are you using functions in your code?
Hey @whole bear!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
β’ If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
β’ If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
numbers = {1: 'one', 2: 'two', '3': 'three'}
wait I fixed his code
print(numbers[1])
yes
print('Breakfast will be ' + meals['breakfast'] + ' and dinner will be ' + meals['dinner'])
# Thus, meals['breakfast'] == 'thumbtacks' and meals['dinner'] == 'engine oil'```
String thing = null;
thing.split("\n"); // NullPointerException
Hey mind I join your call?
sure you can join
π
String thing;
thing.split("\n"); // also NullPointerException
Define brr.
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
I have to attend online school π¦
ERROR 1040 (HY000)
I would suggest you remove that.
be back later boys
lol
wow how did you do that?
hey
i need some help
import requests
source = requests.get('https://www.muslimpro.com/en/Prayer-times-London-United-Kingdom-2643743').text
soup = BeautifulSoup(source, 'lxml')
prayertime = soup.find('div', class_="prayer-daily-table d-inline-flex pt-4 px-2")
fajr = prayertime.find('span', class_="jam-solat")
all_prayer_time = prayertime.findAll('span', {'class':'jam-solat'})
fajr = print(all_prayer_time[0].text)
if fajr[0] == 0:
print(fajr)```
TypeError: 'NoneType' object is not subscriptable
@torpid crag
@molten plaza
@whole bear
@fierce mica
Hey @fickle orbit, open a help channel, you'll be more likely to get a response #βο½how-to-get-help
init
__init__.py
hi important question about using socketio lib
What is the structure of data in the media?(data format payload i guess is the term)
Do they have a signature check? Or CRC?
if name == 'main':
fire.Fire(run)
discord chat markdown
@sly light There are several reasons for that
@whole bear
Wikipedia
ok what is the more legit reason to ban it
hello
Hey @whole bear!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
β’ If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
β’ If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
Pls ask me tomorow
im.at school
rn
but i can help
i helped nekro the.other day
@fickle orbit Preferably don't randomly ping people, thanks
fajr = all_prayer_time[0].text
if fajr[0] == 0:
print(fajr)
04:42
var1 = 04
var2=42
wrong server
π
<label class="container">One
<input type="checkbox" checked="checked">
<span class="checkmark"></span>
</label>
<label class="container">Two
<input type="checkbox">
<span class="checkmark"></span>
</label>
<label class="container">Three
<input type="checkbox">
<span class="checkmark"></span>
</label>
<label class="container">Four
<input type="checkbox">
<span class="checkmark"></span>
</label>
the problem
Dark theme like this :p
import datetime
import pytz
#today=datetime.date.today()
#print(today)
#print(today.weekday())
#timd=datetime.timedelta(days=7)
#print(today+timd)
dt_utcnow=datetime.datetime.now(tz=pytz.UTC)
print(dt_utcnow)
dt_mytimezone=dt_utcnow.astimezone(pytz.timezone('Asia/Shangri-La'))
print(dt_mytimezone)
a = int(adad)
whats the problem
print(type(a))
it gives me syntax error
import datetime
import pytz
#today=datetime.date.today()
#print(today)
#print(today.weekday())
#timd=datetime.timedelta(days=7)
#print(today+timd)
dt_utcnow=datetime.datetime.now(tz=pytz.UTC)
print(dt_utcnow)
dt_mytimezone=dt_utcnow.astimezone(pytz.timezone('Asia/Shangri-La'))
print(dt_mytimezone)
help me!
i am
gettng syntax error for every single code
@hushed elm help me bro
@subtle orchid mute your mic
U have to know ur learning style
Take note which u don't understand
@whole bear khan academy is not only for kids ok
Don't misunderstand khan academy potential
yeah
i am pissed of whatever code i try to execute i get syntax error
@hushed elm whatever i try to to code it gives me syntax error:invalid syntax although code is fine
what are possible solutions
uninstall and install?
could you give me an example of that code
oh
wait
I know
someone else had the same issue
type exit() in the console
the problem was with my terminal i created a new one and its gone
yeah
you were in the python shell
that was the problem
if it happens again, to exit it type exit()
thank you so much
@whole bear if u wanna make regular website just learn html,css
Bro html,css is enough for good website
U learn css now
@whole bear https://www.youtube.com/watch?v=yfoY53QXEnI
In this video I will cram as much as possible about CSS. We will be looking at styles, selectors, declarations, etc. We will build a CSS cheat sheet that you can keep as a resource and we will also create a basic website layout. We are using CSS3 but mostly the basics. I will ...
^Css video
@fossil pond Are u like me?
But I know more
I mean like in programming path
I don't know your programming path
who said it's illegal?
just the web law
Lmao
U can barely web scrap a website because of the protection they got in their website
U learn css now
@whole bear bet
Css is easy bro
its hard to understand
css is hard af
css is hard for u guys
it's ok
css is literally just like colors shapes and stuff?
whats a crash course lmao
@whole bear Don't learn css , just use bootstrap
learn css