#ot1-perplexing-regexing

1 messages · Page 229 of 1

sullen thorn
#

eh you thinking is the best i got rn 😃

tough stratus
gentle moss
#

I DID NOT

#

oh hi mark

#

how's the peeping tommy?

#

do you want to order pizza?
whatever i don't care
i already ordered a pizza
you think about everything ha ha ha

vapid bluff
#

cheep cheep cheep cheep

gentle moss
#

;D

#

as far as i'm concerned you can drop off the earth

#

that's a promise

robust sierra
#

yes you did hit her

gentle moss
#

slander

rough sapphire
#

is there anyone who can create quickbms script? tag me if you do please

scenic merlin
#

there's a code i cant pass all the testcases

#

for inputs : here

#

its really annoying when online compilers behave like that 😄

eternal merlin
#

Oh boy

#

Uhh @tame terrace I've commented on it lately asking @Someone to drag it into present time, it's like 8000 commits behind master because it's been waiting for so llong

#

I'm not gonna be able to do that sorry

#

Last month was a hell for me and it is still going on

#

But I imagine in about 2 or 3 months my life will drastically change

#

Soooo, sorry for not being able to complete that pr, its because im having a little bit hard time right now

tame terrace
#

@eternal merlin thats okay, dood.

#

life shit comes first.

eternal merlin
#

Oh hey, thanks man

sour shale
#

gud luck with life stuff bro

tulip palm
eternal merlin
#

Thanks guys

#

It's really hard but I see the very bright light

#

Maybe its just the head trauma tho, sooooo

#

lol

sour shale
#

just try andstay positive I guess 🌈

verbal bear
#

Yay!! I've finished my first code (thou there are many not needed things etc I'm impressed it worked) how was your day everyone?

tulip palm
#

my day was quite good. glad you've managed through the struggle of making your first code! what does it do, if i may ask? ^-^

verbal bear
#

well it pick 4 digit number(4953-9999: multiplies it by 2019, than from those 8 digits it choose 4 (idk how to delete) and if those 4 * 2019 are same as base 8 digit number it stores it in a list

#

it's kinda complicated, our teacher gave it to us as "if u can, solve this"

#

probably better way would be to send screens of code :D

royal tartan
sour shale
edgy pier
gentle moss
#

You've seen their out takes reel though right?

#

we're in no danger

edgy pier
#

yeah that's the out take from a year ago

gentle moss
#

I bet it still takes a number of takes

#

Not saying it's not smart, just saying it's not a threat

#

:D

#

i'd be more scared of a self driving car with a self shooting gun attached to it before a walking robot

edgy pier
#

Lol, yeah.
but it's not far off though

gentle moss
#

Depends on your definition of far

#

i think we've got a good 20 years before they can chase me across uneven forest terrain

edgy pier
#

@gentle moss remember that military technology is always at least 10 years ahead of whatever the rest of the world thinks being technology breakthrough.

Remember the internet? it existed way long before being accessible to the general public.

What most people ignore is the fact that when we start seeing things like this, we better believe that there are way more advanced versions of this technology existing already.

gentle moss
#

Oh I'm aware @edgy pier

#

But bipedal death robots are just an awful idea if you want to murder people

#

Drones are your best bet

#

People can't fly

wicked talon
#

what if you are in a vacuum

#

the drone cant fly

#

and u have oxygen pack

gentle moss
#

^

wicked talon
#

you drink a lot of milk

gentle moss
#

you're either in a vaccuum chamber, which funnily enough is susceptible to missiles

#

or you're in space and you're going to die anyway

wicked talon
#

a lot of milk

gentle moss
#

you explode from drinking too much milk

wicked talon
#

that is strong milk

gentle moss
#

all i see is dead elephants

wicked talon
#

my organ is safe

sour shale
languid kelp
#

which one of the off topic channels is the best one?

#

& why are there 3

gentle moss
#

a) which ever one the cool people are in

#

b) because more than one conversation can happen at once

languid kelp
#

those are valid responses

feral jetty
#

guys i recently dropped my phone, and after that my camera can't focus to take a photo of near things, but it can take clear photos of far things, why is this?

rough sapphire
#

because you dropped it

feral jetty
#

@rough sapphire right. thanks .👏

vapid bluff
#

@feral jetty what phone is it?

feral jetty
#

@prisma gust yes, i can't hear it moving to be able to focus

lost knoll
#

the manufacturer is called Fortuneship

#

google skills

sand goblet
#

jeez, I just love Mili's work

#

not like much music I've listened to

#

(video may not be a good match for you if you're squeamish though)

worn kite
sand goblet
#

haha

#

conclusion: Spam is evil

gentle moss
#

Spam, the only good part is the tin.

sand goblet
#

that song though

#

god, I love it

#

haha

#

I love most of Mili's stuff, but yknow

lilac glade
#

me_right_now

sand goblet
#

it's me_irl

#

:P

#

also hey ref

lilac glade
#

But it's not me always

sand goblet
#

I have an answer to your question

#

finally

#

grizz is a salmon

lilac glade
#

Wait, Grizz is a salmon, and not the wooden bear statue?

sand goblet
#

the wooden bear statue is holding a salmon

lilac glade
#

wait no

#

the statue is a radio

sand goblet
#

yes

#

it is

#

but look, salmon

#

:P

lilac glade
#

Says le wiki

sand goblet
#

it's been talked about on reddit recently

#

using the only language r/splatoon knows

#

memes

lilac glade
#

¯_(ツ)_/¯

#

I can't find anything about it.

tired osprey
lilac glade
#

!ban

ionic hill
#

kawaii gnustallmanoshi

worn kite
#

OwO What's this?

cerulean basin
#

anyone know if it's possible to rename constraints in SQLite, namely a primary key

#

I suspect the answer is no. And unfortunately, it doesn't support dropping primary keys

#

so I'd have to remake the table 😩

#

I'm not sure I care enough about a typo in the constraint name to go through all that

rough sapphire
#

I don't think sqlite supports it

#

About remaking tables, don't you have a script for that? 😃

cerulean basin
#

No, I don't

#

For more context, im using an orm and would need to customise the migration manually

#

Cause the orm tool isn't smart enough to know that my db provider doesn't support that operation

#

Not until I actually try to apply the migration at least

sullen thorn
#

Anyone noticed that ravens are fucking huge? Like u look at them comparing them to pigeons, and then u realise holy shit they’re like 3 times the size of pigeons

granite lake
#

never seen one

#

only have pigeons in my country

sullen thorn
#

What country? Jamaica?

granite lake
#

Guyana

sullen thorn
#

Oh

#

Idk where that is :/

#

But you’re missing out

#

Ravens are awesome

granite lake
#

lol

robust sierra
#

who changed @granite lake's name

granite lake
#

idek

robust sierra
#

hmmm

#

should i ping all admins and find out?

granite lake
#

lol

#

no

#

U will be muted

robust sierra
#

or possibly banned

#

unless...

granite lake
#

btw cs50 is really awesome for data structures

tired osprey
#

spooky error has a new pfp

#

👻 spooky

robust sierra
#

its very temporary

granite lake
#

ew

robust sierra
#

i cant enough of how he kicked the whamen

sullen thorn
#

I didn’t recognise u with your new pfp

robust sierra
#

its easy to remember that its me

#

guy = idiot
ImportErr = idiot

#

idiot == idiot

sullen thorn
#

lol

robust sierra
#

i changed my pfp back to original

sullen thorn
#

ty 😃 i feel so much more at ease now

robust sierra
#

yw

candid anvil
#

paul allen just passed away. RIP

ionic hill
#

moment of silence pepe

#

ok we can yell now

#

AaaAAAaaa

vapid bluff
#

cyberpunk 2077?

gusty lynx
#

i wish, we still have a year +

#

december 2019

vapid bluff
#

thought it might be concept art from that

#

why are the streets flooded

#

is this venice in 2099

#

or am i seeing that wrong? looks kinda like water

#

ah might just be rain puddles

gentle moss
#

looks like a posh section of a blade runner city

sour shale
#

Manchester?

gentle moss
#

lol

languid kelp
#

can i just interject for a moment

gentle moss
#

you already did

#

how rude

rough sapphire
#

guys I'm in trouble with rxvt-unicode on arch

#

I can't start terminals anymore because of this error message

#

urxvt: unable to load base fontset; please specify a valid one using -fn, aborting

#

I'm using Tewi with xft

stark prawn
#

how did you set the font

rough sapphire
#

like this

#

in Xres

stark prawn
#

did you reload it

rough sapphire
#

URxvt*font: xft:Tewi:pixelsize=11:antialias=false

stark prawn
#

*font?

#

not .font?

rough sapphire
#

yes I used *

stark prawn
#

URxvt.font: xft:Go Mono for Powerline:size=10 is mine

rough sapphire
#

tried with dots

#

it doesnt change anything

#

yesterday everything worked correctly

#

now when I powered up my laptop

#

it was broken

stark prawn
#

you need to run xrdb ~/.Xresources after modifying it

rough sapphire
#

i ran with -merge

#

is it the same?

stark prawn
#

no clue

rough sapphire
#

alright I tried without the merge flag

stark prawn
#

fc-list | grep Tewi

rough sapphire
#

it still doesnt work

#

shit how do i paste in xterm

#

I downloaded xterm to figure out the issue

stark prawn
#

idk, alt + control + v?

#

or shift + control + v

#

middle mouse button

rough sapphire
#

i'm on a mac ahha

#

it's because I cant find the pipe symbo

#

symbol

#

neither how to do it

stark prawn
#

alt shift l

rough sapphire
#

alright

#

let me run your command

#
/usr/share/fonts/bitmap/tewi-font/Tewi2a-bold-11.bdf: Tewi2a:style=Bold
/usr/share/fonts/bitmap/tewi-font/Tewi-normal-11.bdf: Tewi:style=Regular
/usr/share/fonts/bitmap/tewi-font/Tewi2a-normal-11.bdf: Tewi2a:style=Regular```
#

this is the output

#

should be good

#

@stark prawn

stark prawn
#

what is your entire config

rough sapphire
#

Xresources

#

?

#

@stark prawn

stark prawn
#

the config you use for urxvt ofcourse

rough sapphire
#

solved man

#

it was a variable problem

#

I was defining my font in a variable

#

then parse it to the URxvt*font and URxvt bold param

#

thank you for the assistance

#

much love to ya

stark prawn
#
$ fc-list |wc -l
1507
#

maybe i should clean up

edgy pier
tame terrace
#

hot damn

#

if that's realtime it's impressive as fuck.

#

I mean it's impressive either way, but

robust sierra
#

wow so smooooooth

tame terrace
#

looks like pixar

sullen thorn
#

that and when it extended its head... creepy af

robust sierra
#

i want a WAL-E robot of that

sullen thorn
#

i mean as long as its less creepy, and doesnt have an extendable snake head, go for it

red lance
#

When are they going to make a robot horse that I can ride to work?

sullen thorn
#

have they not already made those? cant u just detach one from the carnival rides?

tame terrace
#

reminds me of the dog from that black mirror episode

red lance
#

That's what I'll ride when I want to mug someone.

sullen thorn
#

oh god now im terrified

red lance
#

I'm more terrified of sitting inside transformers

sullen thorn
#

like... being inside a transformer?

#

and have like awesome weaponry and be basically bulletproof?

red lance
#

Yeah, but I'll get crushed into million pieces if they transform while I'm inside.

#

I don't care what the movies say would happen. Everyone you sat in those monsters during their transformation is dead.

sullen thorn
#

after i sent that i was worried u meant like an actual electrical transformer

#

im glad u didnt 😃

granite lake
#

@sullen thorn u bought any game on discord store since the feature out?

sullen thorn
#

i have not

#

thats a thing?

#

what games they got?

granite lake
#

many

sand goblet
#

Just go to your DMs

sullen thorn
#

where do i even access the store?

sand goblet
#

There's a store tab

granite lake
#

lol

#

Are you using discord web or........

sullen thorn
#

im using desktop

sand goblet
#

If you have a green icon at the top right, click it

sullen thorn
#

i dont

sand goblet
#

Then it'll be there

granite lake
#

Go to settings -> Appearance ... Scroll down and enable game tab

sand goblet
#

You have nitro too so you get free games

sullen thorn
#

its enabled

granite lake
#

Games tab need to be enabled

sullen thorn
#

i dont see a game tab tho

sand goblet
#

It's above your list of DMs

granite lake
#

lol

sand goblet
#

Same place your friends list is

sullen thorn
#

its in nitro

#

oooh

granite lake
#

dude wth

#

follow instructions

sullen thorn
#

yeah no i found it above friends list too now dw

#

but i found it in settings before u said that

granite lake
#

hm

steel fox
red lance
#

I have a question about this.

#

I looks like the script can only give you whether a file is ascii, png, or neither.

#

Nope. Never mind.

steel fox
#

i love the color for byte strings in PyCharm

edgy pier
#

@sullen thorn that and when it extended its head... creepy af
Yeah, the robot was twearking . Lol

#

@tame terrace

if that's realtime it's impressive as fuck.
I mean it's impressive either way, but```
yeah it's quite impressive
granite lake
#

@steel fox what is the project about?

#

Code looks cute

steel fox
#

detecting file types

granite lake
#

🔥

#

@steel fox I still wanna see the code that you used to see the fb url of me when I visited your site

#

Pls

#

😂

steel fox
granite lake
#

yes clay

#

steel fox
#

it's just a prank URL

#

that redirects to your own profile

granite lake
#

Really ?

#

Wow

#

How

#

😂

steel fox
#

it just works for anyone

granite lake
#

lol

#

well done clay

steel fox
#

@tame pier did i do good

granite lake
#

Because Im not 18 yet

steel fox
#

u dont have a facebook

#

u fuck

tame pier
#

Also not opening in normal chrome in case it somehow logs me in and cancels the deletion process

granite lake
#

So it won't show

#

Im not 18

tame pier
#

Deleted all the cookies but still

granite lake
#

So the profile is not public

steel fox
#

dont delet it

#

friend me instead

#

mr known

granite lake
#

lol

tame pier
#

Nope

#

It's been deactivated since May, but finally initiated deletion over a week ago

#

Wanted to make sure there weren't any other accounts like Spotify that were primarily login via FB

#

Because I was lazy and not as wise back when

granite lake
sullen thorn
#

anyone know how to make the terminal screen flash a colour?

tame pier
#

What part of it, the background, the window border, the text?

sullen thorn
#

the backround

#

was thinking set the text to red, flip the backround and text colour and then set the text back to what it was?

tame pier
#

Yeah that would work

#

Using Colorama or something?

sullen thorn
#

idk what that is

#

im using ansi escape codes through sys.stdout.write()

tame pier
#

It's like that but a little nicer to use and also works on Windows

sullen thorn
#

oooh thats aweome

#

wow its a default package?

tame pier
#

default?

sullen thorn
#

idk i tried pip installing it andit said it was already there

#

i cant have though.... i literally just installed pip to get colorama

#

and yeah PN

#

sounds more technical

tame pier
#

Description is the "displayed" name, in other words what you see in network adapters

#

Dear lord

#

They added "Windows Management Infrastructure (MI)" in Windows 8

#

Not to be confused with Windows Management Instrumentation (WMI)

#

I'm just doing some reading on WMI

#

Why? Who knows

#

The main update to Windows Management Instrumentation was the full release of the next-generation version of WMI, known as Windows Management Infrastructure (MI). MI is fully compatible with previous versions of WMI, and provides a host of features and benefits that make designing and developing providers and clients easier than ever.

#

🤦

#

Yeah

#

Yeah exactly

#

btw you should add a requirements.txt

#

Cool

#

need to sync my fork

#

Sure

#

Basically if it's open right?

#

Or changes from closed to open

#

What version of Python, 3.6?

#

Also are you planning on publishing this to PyPI?

#

Cool

#

I've done it with several packages now

#

Once you wade through the sea of outdated info and superstition it's pretty simple

sullen thorn
#

so is this like a module to control disk drive in windows through python?

tame pier
#

l0l

#

o man that's a good idea

#

i seem to remember doing that late one night

#

opening and closing disk drive with python

#

or maybe it was powershell

#

xD

#

Is WMI the only dependency for Windows?

#

Cool

#

lol

#

wtf is BthPan

#

Nothing but I'm on desktop

#

Also there's a dependency on pywin32

#

WMI depends on it but they don't tell Pip that it's required

vapid bluff
tame pier
#

Hmm

#

Seems I can detect if a disk is in the drive

#

But getting the actual status of the tray door is not so straightforward

vapid bluff
#

idk, pybluez doesnt pick up my ble devices

tame pier
#

Yes

viral parrot
#

have you tried pymedia?

#

pymedia.removable.cd

#

@tame pier

tame pier
#
PS goesc>wmic cdrom where "Drive = 'B:'" list /format


Availability=3
Capabilities={3,4,7}
CapabilityDescriptions={"Random Access"," Supports writing"," Supports Removable Media"}
CompressionMethod=Unknown
ConfigManagerErrorCode=0
ConfigManagerUserConfig=FALSE
DefaultBlockSize=
Description=CD-ROM Drive
DeviceID=SCSI\CDROM&VEN_HL-DT-ST&PROD_BD-RE__WH16NS40\4&2A148996&0&010000
Drive=B:
DriveIntegrity=
ErrorCleared=
ErrorDescription=
ErrorMethodology=
FileSystemFlags=
FileSystemFlagsEx=
Id=B:
InstallDate=
LastErrorCode=
Manufacturer=(Standard CD-ROM drives)
MaxBlockSize=
MaximumComponentLength=
MaxMediaSize=
MediaLoaded=FALSE
MediaType=DVD Writer
MfrAssignedRevisionLevel=1.02
MinBlockSize=
Name=HL-DT-ST BD-RE  WH16NS40
NeedsCleaning=
NumberOfMediaSupported=
PNPDeviceID=SCSI\CDROM&VEN_HL-DT-ST&PROD_BD-RE__WH16NS40\4&2A148996&0&010000
PowerManagementCapabilities=
PowerManagementSupported=
RevisionLevel=
SCSIBus=1
SCSILogicalUnit=0
SCSIPort=1
SCSITargetId=0
Size=
Status=OK
StatusInfo=
SystemName=SUPERCOMPUTER-1
TransferRate=-1
VolumeName=
VolumeSerialNumber=

Drive is currently open.

#

Oh huh never heard of pymedia before

#

I'll have to check it out

#

Need to get to sleep though

#

Just remembered I have a meeting in 9 hours lol

#

ALso nothing changes when I close the drive

viral parrot
#

I do not own a Disc Drive anymore

#

also I do not not remember what I used pymedia for

#

I think I used it for my ripping DVD robot

sour shale
#

I don have disk drive

#

If you put cheese slice in there it plays a film about cows

tame pier
#

My desktop has two, a blu-ray and a everything except blu-ray but it's slightly faster

sour shale
#

I was too lazy to install it

#

In front panel

#

Technically i have one but its boxed

viral parrot
#

@tame pier I think I used pymedia to check if the dvd had a video_ts file on it

#

not sure if i checked if the door was closed or not

#

but check it out when you have the time

sour shale
#

Lots of hard dependencies good xd

cerulean basin
#

@rough sapphire instance of Win32_CDROMDrive { Availability = 3; Capabilities = {3, 4, 7}; CapabilityDescriptions = {"Random Access", " Supports writing", " Supports Removable Media"}; Caption = "HL-DT-ST BD-RE WH16NS40"; CompressionMethod = "Unknown"; ConfigManagerErrorCode = 0; ConfigManagerUserConfig = FALSE; CreationClassName = "Win32_CDROMDrive"; Description = "CD-ROM Drive"; DeviceID = "SCSI\\CDROM&VEN_HL-DT-ST&PROD_BD-RE__WH16NS40\\4&2A148996&0&010000"; Drive = "I:"; Id = "I:"; Manufacturer = "(Standard CD-ROM drives)"; MediaLoaded = FALSE; MediaType = "DVD Writer"; MfrAssignedRevisionLevel = "1.00"; Name = "HL-DT-ST BD-RE WH16NS40"; PNPDeviceID = "SCSI\\CDROM&VEN_HL-DT-ST&PROD_BD-RE__WH16NS40\\4&2A148996&0&010000"; SCSIBus = 1; SCSILogicalUnit = 0; SCSIPort = 0; SCSITargetId = 0; Status = "OK"; SystemCreationClassName = "Win32_ComputerSystem"; SystemName = "MARK-WIN10"; TransferRate = -1; };

#

I omitted a bunch of entries for virtual drives

tame pier
#

I used wmic, didn't think to just use python derp

#

Going to sleep now

#

Will probably work on it more tomorrow maybe but more likely this weekend

#

Gotta get lesson prepped for some high schoolers Friday

cerulean basin
#

took a while to print the second one

#

like 20 seconds

#

Probably until the drive stopped being busy and making noise

#

was still waiting a bit after windows detected the media

#

which im basing off the prompt to do something with the drive

#

what would "that" be

#

I included that in the hastebin

#

it was the upper one

#

I just tried with another cd and same thing - waited 18 seconds

#

that was the thing I paste directly into discord

viral parrot
#

what is the use case for this thing you are talking about?

cerulean basin
#

have you looked into using the windows api directly

viral parrot
#

so, check if someone opens the tray and insert a cd?

cerulean basin
#

Desktop

#

Look into using MCI

#

MCI looks promising for detecting the status of the drive

#

Doing it in python may be cumbersome though

#

idk never done winapi stuff through python, only cpp

#

I think you'd want "mode"

#
Returns the current mode of the device. All devices can return the "not ready", "paused", "playing", and "stopped" values. Some devices can return the additional "open", "parked", "recording", and "seeking" values.```
#

maybe 🤷

#

looks unlikely based on the contents of the EventType enum

viral parrot
#

Im looking at DBTF_MEDIA, it is flag, but not sure how it works...

#

also something called dev_broadcast_volume.dbcv_flags

#

oh yeah, that is the same place I got it from

cerulean basin
#

i don't see anything related to open state in there

viral parrot
#

it checks for media insertion

#

i have it working on my virtual drive now

cerulean basin
#

but didn't you want to check if it was open?

viral parrot
#

use that code, hook up all flags to some output

#

and find the one you need

#

wparam should just check for every flag

sour shale
#

sounds like a cool project

steel fox
#

thats what i thought about my python to c# transpiler

#

its got about 20minutes of work into it

#

just no time

#

xd

#

it does hello world, though!

vapid bluff
#

weird issue

#

my laptop is reporting an additional monitor being connected

#

but there isnt

steel fox
#

anything plugged into a viideo port?

vapid bluff
#

nothing at all

steel fox
#

maybe reinstall video drivers

vapid bluff
#

i think i might have an idea what it is

#

installed then uninstalled spacedesk a while ago

#

it's a program for basically using a pc as a remote monitor for another pc

#

it might not have uninstalled itself properly

steel fox
#

probably

vapid bluff
#

there's nothing in device manager to disable

#

pretty sure spacedesk registered a device at least

#

hmm

#

and yeah will try reinstalling the drivers

steel fox
#

Did it just recently start?

#

or has it been happening since you reinstalled?

vapid bluff
#

i never noticed it until now

#

moved my mouse to the side of the screen and noticed it disappeared as if there was another monitor

#

checked display settings and surely enough, there it was

steel fox
#

weird

vapid bluff
#

huh, looks like restarting solved it

#

but im pretty sure i'd restarted several times after uninstalling spacedesk

#

that was like a month ago

sinful turtle
#

How easy would it be to make something similar to the elgato streamdeck with a raspberry pi and a touch screen, and would it be cost effective?

#

Since it is pretty much just a touchscreen and some good software

steel fox
#

Yeah it’s possible and super cheap

#

Depending on the touch screen you get

tough stratus
#

The hard bit is the software side to hook into things.

#

Depends what you want to do with it

#

Some things have nice APIs, some things you wish you hadn't thought about it in the first place

#

.>

robust sierra
#

i have math test tomorrow :(

sinful turtle
#

same lol

robust sierra
#

i guess my one easy compared to yours

steel fox
#

So, TIL that in order to properly calculate midpoint of lat/long pairs you need to use radians. after a few hours of trouble shooting and 2 math.radians() later, my map is complete 😄

robust sierra
#

@ebon quarry you will be memed

sinful copper
#

@steel fox why do you need to use radians for that?

steel fox
#

honestly i have no idea

sinful copper
#

I mean, to do it properly you've got to calculate the great circle which is some advanced trigonometry

#

but simple averaging should work in any unit

steel fox
#

radians

tired osprey
#

Degrees looks better

steel fox
#

radians is the correct one

tired osprey
#

More globalized

sinful copper
#

i'd have to see the actual code to know what's going on

steel fox
#

I am using great circle tho

#

or something similar

sinful copper
#

ok yeah

steel fox
#

great circle is the like

sinful copper
#

probably that's why you needed radians - not that the calculation itself depends on units but you're calculating like the sine or cosine of them or whatever

#

and the math.sin/cos functions need radians

steel fox
#

radians -> x,y,z pairs -> mean the x's, y's, z's, then atan and such them back right

sinful copper
#

though atan returns radians so how the heck were your results not all clustered together within pi degrees of the equator if you weren't accounting for that

steel fox
#
class Midpoints:
    """Class to convert lat, long into (x,y,z)"""
    def __init__(self,lat:float, long:float):
        self.lat = math.radians(float(lat))
        self.long = math.radians(float(long))
        self.x = math.cos(self.lat) * math.cos(self.long)
        self.y = math.cos(self.lat) * math.sin(self.long)
        self.z = math.sin(self.lat)
def AvgLoc(points: list) -> tuple:
    """Does math on the x,y,z coordinates passed in the points list
    to return the midpoint of the given locations. """
    total_x = statistics.mean(point.x for point in points)
    total_y = statistics.mean(point.y for point in points)
    total_z = statistics.mean(point.z for point in points)
    Lon = math.atan2(total_y, total_x)
    Hyp = math.sqrt(total_x * total_x + total_y * total_y)
    Lat = math.atan2(total_z, Hyp)

    Lon = Lon * 180 / math.pi
    Lat = Lat * 180 / math.pi
#    print(f"Location midpoint lat: {Lat} long: {Lon}")
    return(Lat,Lon)
#

like this

bleak lintel
#

clay

#

lowercase variable names

#

please

tired osprey
#

PEP 8 god is gonna strike down upon you

sinful copper
#

φ, θ

#

runs away

steel fox
#

No u

sinful copper
#

math.π when

steel fox
#

guido pls

stark prawn
#

180 / pi will be the same every time

steel fox
#

this google maps wrapper is quite nice to work with

tired osprey
#

its not his decision anymore clay

steel fox
#

WHAT PART OF FOR LIFE DO U NOT UNDERSTAND NIX

tired osprey
#

too many

sinful copper
#

why are you using math.radians but not math.degrees to convert back

steel fox
#

Honestly not sure

#

but it looks like it's returning correctly o.o

#

wait i am

#

it's just not explicit

#

Lon = Lon * 180 / math.pi
Lat = Lat * 180 / math.pi

#

is the same as math.degrees(Lon) & math.degrees(Lat)

sinful copper
#

yeah that's what i meant

steel fox
#

I am now

tired osprey
#

Jesus Christ GDPR is going too far. A European court made Vienna remove the name shields at their doors and replace them with number shields instead because of data protection

tame pier
#

wut?

#

link

tired osprey
#

It's just a thing in German news atm

glass gorge
#

Oh lol

cerulean basin
#

I was confused by you calling them "shields"

#

I was thinking maybe you meant a family crest or something

#

ah

#

Namensschilder = nameplate

tame pier
#

That's what I thought as well

glass gorge
#

@rough sapphire mind explaining what a discord account creator is for?

sinful turtle
#

Wouldn't an automated discord account creator be against the tos?

sour shale
#

@sinful turtle yes 100%

sinful turtle
#

Oh ok

sand goblet
#

Replacing nameplates in the public view makes sense tbh

#

Especially if it's like a residential building

#

We do have house numbers for a reason after all

glass gorge
#

What about mail boxes

strange flicker
#

Well what you have in eastern europe is apartment number. So you have it on your door, on your bell and your mail box

#

But the problem here is how do you handle bouncing

#

Like if I moved to a new apartments but my insurance company does not know it yet they might send my private data to old address, and the postman wouldn't know if he suppose to put it to the mailbox or not :/

gentle moss
#

I still get mail from 5 previous tenants

#

and the only way to try and get the shit to stop coming in is to post it back into the mail

#

i got someones frigging new credit card through my door once

#

called up the bank and they were like "Oh, yeah. We wont be able to fix that unless you start returning all his mail."

#

like it's now my fucking job to protect someone elses privacy because they haven't updated their shit?

#

mental.

languid kelp
#

@gentle moss yes me too pls

#

protec me

strange flicker
#

huh, no I wonder if that is a good people that sent my documents back to my bank and insurance company or just german post works differently

gentle moss
#

I was stunned that I called up the bank saying I'd been sent this shit and they're just like "can you please cut that up and send all future mail back to us?"

#

not like actively notify their customer or something

granite lake
#

Something that just came to my mind

#

If you wanna sleep good this Christmas, make sure you study good for this semester

#

😂

#

I can tell from experience

sinful copper
#

@gentle moss i don't think you have to pay postage or anything to do that though, just write "return to sender, addressee unknown" on the envelope and stick it back in the mailbox

gentle moss
#

the effort being i have to go to a postbox

robust sierra
rough sapphire
#

@glass gorge people pay for bots to join their server to make it look like it has lots of members

stark prawn
#

I'm sure that's against tos

glass gorge
#

Nontheless, automation of a discord user account in any way, that includes creation is against discord ToS.

#

So please don't pursue this on our server. @rough sapphire

rough sapphire
#

alright I won’t pursue my program here

robust sierra
#

dont pursue it anywhere

sullen thorn
#

i setup my email server

#

and it didnt like what i did

#

so when it received my email it sent me a response email containing the python exception

#

😂

glass gorge
#

!kick @rough sapphire You were told to stop pursuing your account creator. Last warning if you so choose to return.

royal lakeBOT
#

:ok_hand: kicked @digital saffron (You were told to stop pursuing your account creator. Last warning if you so choose to return.).

steel fox
#

i don't like angry floppy

glass gorge
sinful turtle
#

Why the 👌 on the ban message

glass gorge
#

Indicate success

tame terrace
#

I like angry flopsy

#

he is my favorite

sour shale
#

lemon likes anger

#

and banhammers

#

🔨 furious_lemon

tame terrace
#

banhammers are for noobs

#

I fire banmissiles

tired osprey
#

🚀

sour shale
#

😮

#

hopefully it can't reach Canada

#

or you can ban Nix

tired osprey
#

i am still german

sour shale
#

its okay to be Canadian

tired osprey
#

no

gentle moss
#

banmissiles?

#

More like stop it rockets

granite lake
#

@robust sierra Wats ur pc specs?

#

I wanna play world of tanks

tired osprey
#

UDEMY IS ADVERTISING JS TO ME

#

it enough

sour shale
#

JS is good

glass gorge
#

Js is starting to grow on me

tired osprey
gentle moss
#

that's how a fungus works too

glass gorge
#

I mean, programming is fun in general, but im getting the hang of js now. Which is what Ill need to improve during my internship / traning or w/e this is

#

That and .net later down the line

robust sierra
#

@granite lake my pc specs you ask. i am using a mac is all you need to know. that means your pc is probably more than capable of running WoT

gentle moss
#

heh

#

Rim

#

¬_¬

glass gorge
#

Nou

#

Why does it sound like morgan freeman is voicing in the trailer

granite lake
#

Lol

#

That Pepe wow emoji freaked me out

#

I'm downloading realm Royale

#

Feels like Fortnite but smaller in storage

sullen thorn
#

guys what do < and > cehck for in strings?

worn kite
#

It should compare the strings char by char according to the ord() value

sullen thorn
#

so < and > would compare the sum of the ord values?

worn kite
#

no, character by character

sullen thorn
#

oh

worn kite
#

like for sorting lexicographic order

sullen thorn
#

so its basically like sort

#

ok

worn kite
#

so that e.g. "banana" < "bat"

sullen thorn
#

huh i learned something new today

#

a friend who's new to python asked me what it does cuz it came up in the lecture

#

and i realised i had no idea lol

sinful copper
#

it's not exactly alphabetical order, for example all uppercase characters are less than all lowercase characters - for that you need locale.strxfrm or strcoll

sullen thorn
#

yeah dw ik how ord and unicode work

#

its the comparison operator i didnt know

#

also is there a way i can see like __eq__ for str and stuff, or is it all written in c?

sinful copper
#

it's all written in c, but you can still see it

#

the cpython codebase isn't that hard to understnad

sullen thorn
#

yeah but like effort

sinful copper
sullen thorn
#

lmao u linked me like 10k lines down

sinful copper
#

well that's where the function is

sullen thorn
#

ok yeah that is actually pretty easy to read

#

howd u find it that fast tho...

sinful copper
#

that file is the whole str class

sullen thorn
#

geez

sinful copper
#

i did a text search for the function name (first PyUnicode_Compare, which i knew from the C api and is a pretty thin wrapper around this)

sullen thorn
#

yeah but like its 10k lines down... your computer loaded 10k lines of github?

#

mine loads like a couple screens worth and then stops 😂

#

ohhh i guess github has its own search too

#

also whats with the \ at the end of every line in that function?

sinful copper
#

ok that's because that's a macro definition

#

since the comparison loop works the same no matter what character types are being compared, but strings can use different types of characters, it has to do the same thing over and over

sullen thorn
#

oh ok

#

i still dont see why that means u need the \

sinful copper
#

because a macro definition can only be one logical line in c, \ joins multiple physical lines together to a single logical line (same in python)

sullen thorn
#

ok now i get it 😂

#

also had no idea we had macro definitions in python

robust sierra
#

wow my chrome keeps lagging when i scroll that page

sullen thorn
#

yeah cuz its huge lol

gentle moss
sullen thorn
#

is it possible to let someone see a private github repo without giving them write/edit access?

bronze monolith
#

How is everyone

gentle moss
#

i been making musics

sullen thorn
#

not bad

gentle moss
#

was fun

sullen thorn
#

send an audio file, ill listen to it from my phone

gentle moss
#

just arranging it atm

rough sapphire
#

hello

#

@bleak lintel

#

what is up?

bleak lintel
#

hey

rough sapphire
#

I wanted to know which music player do you use?

#

Do you have some experience with cmus?

gentle moss
rough sapphire
#

@bleak lintel

bleak lintel
#

music player? Audacious or MPV

rough sapphire
#

you never experienced cmus?

#

I'm trying to modify tags to make my artists and titles correct

bleak lintel
#

Not sure what that is

rough sapphire
#

but it's such a pain

bleak lintel
#

oh right audacious can do that

#

well, it can edit it

rough sapphire
#

it's console based?

bleak lintel
#

nah, gui

rough sapphire
#

ahmm

rough sapphire
#

`````sk``sik``sksik``sk``sksk``sksik``` this is an extremely redundant way of writing i

tired osprey
#

@gentle moss comment from my friend

#

"sounds gay, more like someone typing"

gentle moss
#

wow

#

what a douche bag

#

find better friends

#

¬_¬

#

it's not even done :D

#

it needs guitar, keyboards and vocals still

tired osprey
#

your stream is done though

gentle moss
#

oh yeah

#

because i'm shelving it until next time

tired osprey
#

when is next time

gentle moss
#

probably another hour tomorrow

#

why you asking so many questions?

tired osprey
#

fuck we've been blown, abort abort

#

🏃

rough sapphire
robust sierra
#

Mission failed. We'll get 'em next time.

sullen thorn
#

lmao

glass gorge
wooden kindle
glass gorge
#

Requires an upgrade to do chicago grumpy

wooden kindle
glass gorge
#

Oh well, ill do some more digging on how to cite it tomorrow

#

time for bed kannasleepy

wooden kindle
#

gnight

steel fox
#

Chicago is apa tight?

tough garnet
#

Lets go buy Mega million

vapid bluff
#

im officially a tab hoarder

rain spindle
#

What

#

The

#

Fuck

vapid bluff
#

an interesting thing ive noticed is how chrome suddenly decides it's out of memory

rain spindle
#

Xd

vapid bluff
#

and then increases its heap size

rain spindle
#

Chrome is stupid

vapid bluff
#

it's because of google's homebrew memory allocation

#

tmalloc or whatever it's called

#

iirc there was an issue specifically about it reporting incorrect heap size

#

there it is

sullen thorn
#

I’m sorry wtf u have 42GB of RAM being used?!!

#

I thought that was storage

vapid bluff
#

pagefile 😛

sullen thorn
#

So... ram or storage?

vapid bluff
#

pagefile is on disk

#

it's like ram, but not as fast since it's on disk

sullen thorn
#

Ohhh

#

Is that how stuff like aerospike manages to store stuff in ssd but still have ram speeds?

vapid bluff
#

no clue how aerospike works but iirc there are no SSDs anywhere near as fast as RAM yet

#

there was that new persistent RAM invention a while ago

sullen thorn
#

Yeah I just saw that

#

Says 2GB/s write

glass gorge
languid kelp
#

Is This Clickbait

glass gorge
#

No, not really

granite lake
#

lol that title

sour shale
#

Seems okay

rough sapphire
#

hello guys

#

I'm working on my polybar today

#

and I found I could format the date module to display either date and time with their respective prefixes with this line

#
label = %{F#666}%{F-} %date%  %{F#e60053}%{F-} %time%
#

Now i'd like to change the colors #666 and #e60053

#

to my custom colors from my palette

#

like

#

${colors.red} for ex

#

but I'm not sure on how to modify the formatting to do that

robust sierra
tired osprey
#

aha

robust sierra
#

download complet

languid kelp
#

what is this

robust sierra
#

war thunder

tired osprey
#

@robust sierra tell me when you're through with the tutorials so we can finish dis

robust sierra
tired osprey
#

HAH

#

noob

robust sierra
#

nix imgoing to play later

#

i need to do something

tired osprey
#

coward

robust sierra
#

silence wot noob

#

u died and said you were a kamikaze

tired osprey
#

yes

#

i was japanese

#

you were not

robust sierra
#

you cant be a kamikaze in wot

tired osprey
#

i obviously can

robust sierra
#

i should have killed you, you gave out my position

tired osprey
#

you moved out of your cover

robust sierra
#

you exposed me

tired osprey
#

you left the cover

robust sierra
#

you were my cover

tired osprey
#

well in that case fuck you

robust sierra
#

no u

tired osprey
#

no U

robust sierra
#

no

#

U

tired osprey
#

uh

#

uh

robust sierra
#

@sand goblet nix is getting personal in my dms

sand goblet
#

?

robust sierra
#

he said a rude thing

tired osprey
#

you said rude things too

robust sierra
#

no u

tired osprey
#

yes u

robust sierra
#

~yes me

tired osprey
#

exactly

robust sierra
#

HAHA

#

I WIN

tired osprey
#

no

#

you lost

robust sierra
#

you just accepted defeat when u said exactly

#

~yes me = no u

tired osprey
#

no

robust sierra
#

~i lost

tired osprey
#

to be exact

#

@robust sierra lost

robust sierra
#

actually

#

~ImportErr lost

tired osprey
#

more like

#

~~ImportErr lost

robust sierra
#

more like

#

~~~ImportErr lost

tired osprey
#

more like
(amount of ~) mod 3 ImportErr lost

#

counter dat

robust sierra
#

hmm

#

no u

tired osprey
#

HAH

#

no counter

robust sierra
#

that is my counter

tired osprey
#

a bad one

#

its not on my level

robust sierra
#

okay then

#

you want a good counter?

tired osprey
#

@sinful turtle more like cryptography enthusiast

vapid bluff
#

what i wanna know is

#

what's going on in test_models.py?

robust sierra
#
>>> from collections import Counter; Counter(nix)
fuck you
tired osprey
#

nope

robust sierra
#

@vapid bluff are u asking me?

tired osprey
#
>>> from collections import Counter; Counter(nix)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'nix' is not defined
>>>
robust sierra
#

its for testing models

#

to see if it works

vapid bluff
#

yes im watching you work from the bushes

#

oh nice

robust sierra
#

shit

#

i've been spotted

#

abort mission

tired osprey
#

sniped

robust sierra
#

no

#

i aborted

#

oh no

#

its a failed abortion

tired osprey
#

exactly

robust sierra
#

fuck

#

Mission failed. We'll get 'em next time.

vapid bluff
#
from collections import Counter
Counter = lambda *args: print('fuck you')```
#

there you go

tired osprey
#

did you know the pope said abortion is equal to hiring a hitman the other day

#

indeed edited

vapid bluff
#

did you know the pope's apparently going to north korea to speed up denuclearization

tired osprey
#

no no no

vapid bluff
#

he's going to throw a bible at kim

tired osprey
#

the pope was invited to go there

#

by kim

#

he didnt accept yet

sand goblet
#

rip the pope if he does go

vapid bluff
#

well this is my headcanon so it's already happened

#

he's throw bibles as we speak

sinful turtle
#

Did you know you could delete messages to make it look like someone is is talking to themselves

tired osprey
#

the pope coming to north korea would be a very stupid thing to allow for kim

vapid bluff
#

did you know mods can see your deleted messages (... right?)

tired osprey
#

yes

sinful turtle
#

Touché

sour shale
#

lol

tired osprey
#

after all kim's rule is based on him being divine and what not

sour shale
#

🔨

vapid bluff
#

it's going to be a pay per view

#

pope v un

sinful turtle
#

The most intense boxing fight of the millennia

tired osprey
#

kim would roll over the pope

vapid bluff
#

maybe pope's like master roshi

tired osprey
#

no

vapid bluff
#

yes

sour shale
#

best boxing match mayweather VS pacquiao II
if it happens 😮

sinful turtle
#

Pope would do what Flanders did in the simpsons, just have 100 bibles under your shirt so you can't get shot

vapid bluff
#

he's got a glock stashed under his hat

tired osprey
#

his hat is a glock

#

the pope is just gonna hire a hitman to kill kim

#

aka aborting him

sinful turtle
#

🆎ortnite

sour shale
sinful turtle
#

🅱🅱🅱bucks

tired osprey
#

no

robust sierra
#

wow, i never played the game yet but it seems more lag tolerant @tired osprey

tired osprey
#

seeee

robust sierra
#

i apologise for attempting to team kill you yesterday

tired osprey
#

will you fight me now

robust sierra
#

i need to do tutorial

tired osprey
#

tell me when done

robust sierra
#

i take that back

#

this laggy af

#

oh no i take that back again its fine

tired osprey
#

lol

#

ImportErr gave up

robust sierra
#

too much lag

#

nix will defeat me easily with this lag

#

world of tanks more lag tolerant

tulip palm
tired osprey
#

good

robust sierra
#

banmissiles

robust sierra
#

i found this in the source code for the django rewrite

#

why is it not allowing me on the site?

#

hmmm

#

when i take the 's' off https it works

sinful turtle
#

It's because it's not an encrypted site, so you can't access it with the secure version of http (that's what the s stands for)

robust sierra
#

i figured

granite lake
#

@robust sierra

robust sierra
#

yes?

granite lake
robust sierra
#

wat

#

WHAT

#

thats it

#

@granite lake

#

haha i pinged you too

granite lake
#

Lol

robust sierra
#

@tired osprey ping json

#

shit wrong ping

tired osprey
#

hm

#

why

robust sierra
#

@everyone ping @granite lake

tired osprey
#

hm

robust sierra
#

shit

#

didnt work

granite lake
#

Lol

tired osprey
#

@everyone ping @granite lake ?

#

like dis?

robust sierra
#

@everyone

#

yes

#

@everyone ping @granite lake

granite lake
#

@here

tired osprey
#

mkay

#

@granite lake

#

feel pinged

granite lake
robust sierra
#

@tame terrace

granite lake
#

rm -rf

tired osprey
#

consider yourself pinged

granite lake
#

Hehe

#

Omg someone just played "I love it" by lil pump in public

#

That song in a whole is just nsfw

robust sierra
#

if you're happy and you know it clap your hands

gentle moss
#

👏 👏

robust sierra
#

if you're happy and your really really know it clap your hands

gentle moss
#

i'm sad now that you got the song wrong

robust sierra
#

wait what

#

i thought i got it right

gentle moss
#

if you're happy and you know it and you really want to show it clap your hands

robust sierra
#

oh okay

#

if you're happy and you know it and you really want to show it clap your hands

gentle moss
#

👏 👏

granite lake
#

Lol

#

Hears clapps in my head

robust sierra
#

uhh

#

what comes next?

granite lake
#

Um

#

I can't remember

tired osprey
#

@gentle moss why so happy

robust sierra
#

If you're happy and you know it, then your face will surely show it

gentle moss
#

why do you ask so many questions

robust sierra
#

yeah why so gay @gentle moss

tired osprey
#

oof

gentle moss
#

cause i grew up in the 90's

robust sierra
#

anyways

tired osprey
#

i ask so many questions because im bored