#ot2-the-original-pubsta

652 messages ยท Page 77 of 1

jovial island
#

!e

import numpy as np
from fractions import Fraction
some_ = np.array([
    Fraction(1, 3),
    Fraction(1, 3),
    Fraction(1, 3),
])
print(np.linalg.norm(some_-some_))
clever salmonBOT
#

@jovial island :x: Your eval job has completed with return code 1.

001 | AttributeError: 'Fraction' object has no attribute 'sqrt'
002 | 
003 | The above exception was the direct cause of the following exception:
004 | 
005 | Traceback (most recent call last):
006 |   File "<string>", line 8, in <module>
007 |   File "<__array_function__ internals>", line 5, in norm
008 |   File "/snekbox/user_base/lib/python3.9/site-packages/numpy/linalg/linalg.py", line 2530, in norm
009 |     ret = sqrt(sqnorm)
010 | TypeError: loop of ufunc does not support argument 0 of type Fraction which has no callable sqrt method
jovial island
#

then wtf is wrong with np

jade bolt
#

i don't use np

#

why use np

#

when you can say np to np

jovial island
#

!e

import numpy as np
from fractions import Fraction
some_ = np.array([
    0.33,
    0.33,
    0.33,
])
print(np.linalg.norm(some_-some_))
clever salmonBOT
#

@jovial island :white_check_mark: Your eval job has completed with return code 0.

0.0
jade bolt
#

ok

jovial island
#

uhm so its fraction and np alright

jovial island
jade bolt
#

!e
print(1234.sqrt)

#

wtf

lucid osprey
#

sqrt(1234)

jade bolt
#

ignore

#

me

lucid osprey
#

k

jade bolt
#

for being steel butt

jovial island
#

ok:(

jade bolt
lucid osprey
#

ignore me as well then ๐Ÿ˜› testing out my previews https://ankithabhayan.github.io

#

image went, great

jade bolt
#

no more image

jovial island
#

so yeah. no np to np.

jade bolt
#

ICNOIMG

lucid osprey
#

the..what?

jade bolt
#

idk i see no image

#

i thought you want to include an image to your embed

lucid osprey
#

but..

#

not shown in da embed

#

I'm changing stuff

hazy laurel
#

What's your embed

lucid osprey
#

og:image in a meta tag makes the image be displayed in line with the text

#

and its scaled down too, which I don't want

#

what I want it to look like is similar to this https://github.com

GitHub

GitHub is where over 65 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

jade bolt
#

is it free

lucid osprey
#

yes

#

aha so thats what I'm missing

daring jay
jade bolt
#

tea y

lucid osprey
#

halp

#

Greetings! I'm Ankith, a 15 year-old highly interested in programming and computer science. This serves the purpose of a portfolio website that says a little bit more about me and what I do. Built using brilliant technologies like HTML, CSS and JavaScript and hosted at github pages.

#

works!

#

it was just the cache I guess, I didn't change anything from when I previously sent it.

jade bolt
lucid osprey
#

ty

#

lemme see how it is in whatsapp

hazy laurel
pliant trench
#

nothing actually

daring jay
#

I think it's seen as a query string

#

But it still resolved to the website just fine

lucid osprey
#

oh

hazy laurel
#

yeah, it does nothing because nothing is passed through

lucid osprey
#

I really like the animation in the background, how did you pull that off?

hazy laurel
#

particles.js

pliant trench
#

your site crashed after 100 clicks

hazy laurel
#

that website is horribly implemented, I've not even worked on it in ages

lucid osprey
#

clicks?

hazy laurel
lucid osprey
#

lemme dewit

pliant trench
#

lol ikr

hazy laurel
#

clicking doesn't work normally for most tho

#

you have to click far off to the side

pliant trench
#

?

#

wdym

hazy laurel
#

idk

#

you're not normally able to click in the middle

lucid osprey
#

I think its just a browser thing since nothing is happening when I click on it.

#

Well actually, the screen freezes for a fraction of a second

hazy laurel
#

You have to click off to the side

#

there's like... 2 pixels you can click on

lucid osprey
#

oh yeaa

pliant trench
#

lol what

#

I can literally click everywhere

#

@hazy laurel what browser do you use

hazy laurel
#

I use Microsoft Edge

pliant trench
#

use firefox

hazy laurel
#

Eh

#

I like Microsoft Edge more

foggy flicker
#

edge's cool

pliant trench
#

I just want you to use firefox to see if that's a browser thing or not

hazy laurel
#

:L

pliant trench
#

wdym it's firefox

hazy laurel
#

Firefox is the cause of that

#

it works fine in Firefox

pliant trench
#

so edge is the cause of that

median blade
hazy laurel
#

no

#

It's not an Edge thing

#

maybe chromium if anything

median blade
#

i use firefox now

#

with

#

GNOME

#

not KDE

#

just GNOME

hazy laurel
#

hate GNOME

median blade
#

and

#

popOS

pliant trench
#

blome

median blade
#

not openSUSE

median blade
pliant trench
#

did they finally fix the animation lag

#

I had this issue since I was kid

median blade
#

what is that

pliant trench
#

...

#

there's a button in the left corner

#

that shows apps

hazy laurel
median blade
#

why hmm

#

customisation wise yes

hazy laurel
#

cause it uses more resources but offers less customization

pliant trench
#

lol

hazy laurel
#

the only good thing about GNOME is GNOME Boxes

pliant trench
#

KDE uses more resources

hazy laurel
#

no it doesn't

#

especially since GNOME 40

median blade
#

i think GNOME uses more

pliant trench
#

yes it does

#

wow

hazy laurel
#

GNOME uses the highest

pliant trench
#

does it

hazy laurel
#

yes

pliant trench
#

I thought KDE uses the most

hazy laurel
#

Of modern DEs, GNOME uses the most

pliant trench
#

weird

#

so weird

median blade
#

i am currently using 5 GB RAM

hazy laurel
#

by modern there's really only GNOME, KDE Plasma, and Xfce

pliant trench
#

I lived with the belief

#

that GNOME uses less

median blade
#

and i have firefox, dis and vsc open

hazy laurel
#

Xfce ofc uses the least

pliant trench
#

yea ik that

median blade
#

not too heavy tho

#

so thats fine

pliant trench
#

ssd?

hazy laurel
median blade
#

yes

hazy laurel
#

Edge + Discord + Spotify

#

I agree

#

GNOME looks like an old mobile phone

median blade
#

the ubuntu GNOME?

hazy laurel
#

and GNOME 40 just looks like macOS

#

idk man, I'm not a huge fan of the mobile UI outside of ... mobile

median blade
#

my main problem with gnome is the top bar in windows

pliant trench
median blade
#

its way too big

#

needlessly big

hazy laurel
median blade
#

and the exit button etc look weird

hazy laurel
#

I hate how this looks

median blade
#

that being said, you can change it

pliant trench
hazy laurel
#

If you show that to someone, they'll think it's like ChromeOS UI

hazy laurel
median blade
#

pop dock however beats latte dock anyday

pliant trench
#

looks great tho

#

smooth

#

but the icons suk

hazy laurel
#

I'll forever believe Pop!_OS is nothing but a cash grab

#

to sell System76 computers

median blade
#

icons, shell etc can be changed

#

in both

jade bolt
#

win11?

hazy laurel
#

GNOME 40

jade bolt
#

ok

pliant trench
#

lol he literally said it

jade bolt
#

ok

hazy laurel
#

idk

#

I love how great KDE can look with some simple themes

#

without using as much resources

jade bolt
#

oops i forgot i shouldnt reply with ok when @hazy laurel is here

hazy laurel
#

_>

#

Please stop that

jade bolt
#

ok sure

median blade
#

lol

#

one thing i like about popOS is that

#

everything works ootb

hazy laurel
#

Ubuntu would be the same

median blade
#

yeah

hazy laurel
#

Pop!_OS is literally just rebranded Ubuntu

median blade
#

yes

#

ik

hazy laurel
#

the only reason to use Pop!_OS is because of ootb looks

pliant trench
hazy laurel
#

everything else is objectively worse

median blade
#

how so

hazy laurel
pliant trench
#

oh ok

hazy laurel
median blade
#

mhm

pliant trench
#

@hazy laurel btw is it worth to setup btrfs on arch?

hazy laurel
#

I'd say yes tbh

median blade
#

just use openSUSE at that point

hazy laurel
#

because snapshots might save you

pliant trench
#

but it's not stable

#

people had some issues with it

hazy laurel
#

What version of Pop!_OS are you even using @median blade?

median blade
#

21.04

#

@hazy laurel

hazy laurel
#

yikes

#

Why on Earth does it push non-LTS as the default!? D:

median blade
#

i chose non LTS

hazy laurel
#

yes and it's the default

languid osprey
#

@gentle shore Hey

gentle shore
languid osprey
#

So, you were asking?

gentle shore
#

yes soo i know django why should i rust or should i learn it?

languid osprey
#

Well, in terms of web dev, Django is fine, it'll work, Rust just provides you an alternative. An advantage that Rust has is that its concurrent, you can create fast and multi-threaded web apps, as opposed to python, which is single threaded due to the GIL

#

You can write the frontend of web apps in Rust as well, with frameworks such as Yew

gentle shore
languid osprey
#

Rust is a systems language, which means you can do lower level systems programming with it

#

So stuff like kernel design, or writing low level drivers

#

Its why you can write an operating system in Rust, and not in python, since Rust can directly interface with the systems hardware and resources

gentle shore
#

oh can we make our own terminal likee thing in rust?

languid osprey
#

Yes

#

You can do that in python as well

gentle shore
#

oh ok

languid osprey
#

A terminal emulator is just a GUI app

#

Rust has a decent slew of GUI libraries as well

gentle shore
#

and i heard you are much into rust than into python lol

languid osprey
#

I love programming in both of them

#

Rust is also statically typed, as opposed to python being dynamically typed

gentle shore
#

can rust used for dsa and problem solving?

languid osprey
#

It can, yes

#

But I'd prefer python for DS

#

Python has a much larger array of tools and libraries for that

#

Rust doesn't have many libraries for data science

gentle shore
#

oh ok

languid osprey
#

Its still a relatively new language

gentle shore
#

i would learn it nice to meet you btw ๐Ÿ˜„

languid osprey
#

Haha, you too

gentle shore
#

can i add you as my frnd if you dont mind

#

or its ok

languid osprey
#

sure

gentle shore
#

thx ๐Ÿ˜„

#

and any resource for learning it?@languid osprey

languid osprey
#

For Rust?

gentle shore
#

yes

languid osprey
#

This is all you'll need

gentle shore
#

oh ok thx ๐Ÿ˜„

languid osprey
#

Its an official tutorial

#

And its very nice

gentle shore
#

thx again ๐Ÿ˜„

jade bolt
#

so uh i'm stuck because i can't read C code

#
static int
_nc_getmouse(SCREEN *sp, MEVENT * aevent)
{
    T((T_CALLED("getmouse(%p)"), aevent));

    if ((aevent != 0) && (sp != 0) && (sp->_mouse_type != M_NONE)) {
    MEVENT *eventp = sp->_mouse_eventp;
    /* compute the current-event pointer */
    MEVENT *prev = PREV(eventp);

    /* copy the event we find there */
    *aevent = *prev;

    TR(TRACE_IEVENT, ("getmouse: returning event %s from slot %ld",
              _nc_tracemouse(sp, prev),
              (long) IndexEV(sp, prev)));

    prev->id = INVALID_EVENT;    /* so the queue slot becomes free */
    returnCode(OK);
    }
    returnCode(ERR);
}

/* grab a copy of the current mouse event */
NCURSES_EXPORT(int)
getmouse(MEVENT * aevent)
{
    return _nc_getmouse(SP, aevent);
}
#

this is ncurses source on getting mouse location on terminal

#

and i can barely read it

#

i hope i found the correct one

#

here's the web is anyone is interested

#

i'll try to find in another library probably.

lucid osprey
maiden steeple
#

ok

#

my internet is crashing for some reason

#

thanks tho

lucid osprey
maiden steeple
#

lol

lunar basin
pastel nest
#

@grim seal halp

#

we were partying

#

lmao

tawdry salmon
#

Sadge

grim seal
#

lmfao

lunar sand
#

Help channels for python vs other languages are so funny, in another server if I go to a cpp help channel, someone is like "how can I do X", and the response is "here's 20 lines of code with variadic templates blah blah"

On here it's like "how do I do X" and someone answers have you tried "somemodule.do_x()" and then OP is like "wait you can do that?!"

jovial island
#

lmao

sinful sun
#

Ah yes, i call this the itertools phenomenon

halcyon barn
#

first day of school is tomorrow ๐Ÿ˜”

#

also my first time taking a programming class because my other school didnt have electives

upbeat sandal
#

I have a feeling this is an ot name that I added

#

But I don't remember the context

lime drum
#

prob someone in vc not being voice verified

hollow heart
#

@lofty copper why not just start with python?

lofty copper
#

oh shoot, I can talk about that here?

#

and well idk some people say to start with html

hollow heart
#

yes haha. not in community-meta

lofty copper
#

but I just want to know that if I start with python I won't miss out or mess up anything

lofty copper
hollow heart
#

you won't miss out on anything per se. or on the flip side, you might miss out on everything, all depends what you're aiming for

#

there's no fixed order that you have to learn the languages

#

but nothing wrong with starting with python, especially if you're learning for fun/hobby

lofty copper
#

ohh I see

#

yeah, just trying to learn for fun. make some projects for fun and stuff

hollow heart
#

yup if you have the desire and inclination to start out with python, nothing wrong with that. and later you can branch out to other languages (or not, up to you)

lofty copper
#

ohh alright alright

#

thanks, and if I want to learn another langauge after python, which one would you recommend?

hollow heart
#

i don't know any other than python (i'm a beginner) just a little bit of html/css which aren't "programming" languages in the same sense that python is. i know rust is pretty popular, others may chime in

#

if you're absolutely just starting out try corey schafer's beginner playlist on youtube, or for written try automate the boring stuff (free online)

lofty copper
#

oh I see, alright thanks you so much

hollow heart
#

@lofty copper any ideas for first project? :)

lofty copper
#

well, I've been in crypto for a while, so I want to make a program that updates me on prices

unreal sigil
#

I think a language like Rust is a good combination with Python, it's basically two polar opposites. They're very different from each other so you cover quite a lot if you learn both of them

lofty copper
unreal sigil
#

Rust is lower-level, compiled, statically typed etc. Basically, extremely performant in comparison to Python, and can be used for projects that require lower-level access to hardware

#

With the pair under your toolbelt you can more or less do anything

#

It covers a very very broad spectrum

lofty copper
#

oh I see

sharp spoke
#

lmfao who is to blame for this otn?

#

makes sense

jade bolt
#

help.

#

i want my bro container to get in that webpage

#

align to left.

#

but doesn't work

#

html code

#

help

#

container: let me in bro please bro

steel eagle
#

well your tags have no indentation

#

that's not the issue but it would make it a hell of a lot more readable

#

and CSS is devil's magic

jade bolt
#

alright i added bad indentation

hollow heart
#
  • margins and padding to 0
jade bolt
#

alright thanks

hollow heart
#

and did you try absolute positioning

#

not saying it will work, just stuff I would try lol.

jade bolt
#

worked thanks

jade bolt
#

i tried absolute positioning first. it worked but the monaco-editor trolled me

#

and set the width to something like 5px so i can't view

#

this time i used chrome devtools

pliant trench
hollow heart
#

hmm? i've not really done any css in years

sterile nymph
#

That was suspicious

pliant trench
#

this try-it-maybe-it-works solution i mean, doesn't need to be css exactly

#

lol

hollow heart
#

but yeah first things first, set * margins/paddings explicitly to 0 and then add in to certain elements later.. is what i would always do

sterile nymph
#

And sad

hollow heart
pliant trench
#

lmaoo

sterile nymph
#

Trying to be happy and the opposite effect I'm from future

hollow heart
#

when learning something new. in other areas where i've learned all there is to learn (work) i know exactly what result i'll get in any given scenario

pliant trench
#

great

hollow heart
#

are you telling me you learn differently ๐Ÿค”

pliant trench
#

I don't think so ๐Ÿ˜„

woven hornet
#

in javascript, js parseInt(string, radix)

#

what does the radix mean

autumn hornet
#

the bot is leaking

dusky cliff
#

for parsing 1001 as binary, the radix would be 2

odd sphinx
#

ye

sharp spoke
dusky cliff
#

ye

odd sphinx
#

ye

sharp spoke
#

nois

rotund python
#

discord funny bugs

sharp spoke
#

beware

tawdry salmon
sharp spoke
#

its the joe revolution

median blade
#

lmaoo

odd sphinx
#

bruhh

wheat rock
#

WHOASOHAOHAO

echo flower
#

this reminds me of that one person

#

wait where did i keep the ss

#

i lost it :(

slow valve
lucid osprey
#

hey it says that a usb is write protected.

#

How can I undo it?

#

I don't want it to be write protected and I want to format it

tribal tinsel
lucid osprey
#

yeah I have an sd card that has one

#

lemme check this usb

tribal tinsel
#

Either this or your USB drive controller is messed up (old/cheap drives get used up quicker, having problems with segments and sometimes the controller)

lucid osprey
#

this one is the oldest usb I've ever seen ๐Ÿ‘€

#

would it make any difference if I told you that this is the same usb that is a has a livebootable ubuntu iso in it?

#

I'll take that as a no.

#

btw, my vacation just started today!

tribal tinsel
tribal tinsel
tribal tinsel
#

You can try to format it under Linux (obviously not the one booted from it, lol), as Linux has some better tools. You can eg dd the whole thing with zeros to wipe it (works with drives corrupted by disconnecting during saving, which windows cannot run at all), but dunno about controller issues

lucid osprey
#

my brother runs linux I'll ask him to format from there.

but dunno about controller issues
hmm

#

thanks! bye

exotic hound
#

is vscode extension updated automatically?

jade bolt
fluid plank
#

i have a lot of questions about how this otn came to be

cedar turtle
#

^^^^^

#

this is the context

fluid plank
#

it is funny ngl

jade bolt
#

let me in bro please bro

fluid plank
#

i can feel the emotioon

tribal tinsel
#

Nope, ot2 will never be random meme drop, because ot rules :3

sharp spoke
tribal tinsel
sharp spoke
tribal tinsel
#

If it's in context, no

#

So it never becomes "random meme drop" like Rick suggested

steel eagle
#

It's also rarely in context when someone posts a meme

tribal tinsel
#

Yep

civic plank
#

well not really a true 1 rep max, i have never touched 295lbs but my app says my estimated max effort rep should be 335 ๐Ÿคจ

tribal tinsel
#

PR? doesn't seem like pull request, you didn't request anything, you just went for it! ๐Ÿ˜‰

neat light
#

Damn that looks heavy

civic plank
somber belfry
#

my bones hurt watching the video

civic plank
tribal tinsel
#

Btw looking heavy, last year company integration we had strongman type tasks (with real strongmen hosting the whole thing)

civic plank
#

strongman people are out of this world

#

insane strength

tribal tinsel
#

Like, our people did stuff without additional weights and stuff. And what one strongman did to show the task? Invited a person to each "bucket" on the sides

civic plank
#

yeah they are nuts

#

i know of 2 strongmen, eddie hall and the guy who played "The mountain" on game of thrones

neat light
#

They make it look so easy

sinful sun
#

This looks like you can do 2 more at least

#

Nice one

neat light
#

It almost takes away from how strong they are when they make it look easy. Like if you've seen the atlas ball thingies where they lift massive boulders, looks like they're just big grey foam balls

civic plank
civic plank
#

like they easily consume 10,000+ calories a day

neat light
#

Yeah on that level it's a whole lifestyle rather than just a hobby

civic plank
#

true

jovial island
somber belfry
#

I heard it's only redeemable in the US, I'm not sure if that's true though

quick shard
#

what is smt you would buy thats 3d printed
i am tring to sell smt on etsy
but idk what to sell / print

jade bolt
#

samsung is telling me their terms are updated. click to accept

#

and i just dont click

#

like who cares

median blade
#

well, in india, you get ads in mobiles if you click accept

#

so

#

i very much care

rotund python
#

@sturdy relic

I can talk about copywright law in off-topic if anyone wants, just ask me there
which is best country for hosting VPN with torrent traffic leak ๐Ÿ˜‰

#

as far my research goes, probably Netherlands?

#

I saw mention that this country basically hosts all famous torrenting web sites, so if caught with leak, probably nothing will be againt the law?

sturdy relic
#

so piracy is by definition illegal even if you do it in parts of the world where its harder to get cougth

#

the law does not care about if people get caugth or not, it just defines whats legal or not

rotund python
#

so, there is no country where it is allowed then

sturdy relic
sharp spoke
#

piracy is well not allowed anywhere

rotund python
#

it does not prevent it from existing

#

I wonder though...

#

there are companies like ExpressVPN

sturdy relic
rotund python
#

they allow VPN connections with torrenting

#

and yet, they don't have any legal problems

sturdy relic
#

why would they have legal problems?

rotund python
#

but their users accidentally share their torrenting traffic

#

when VPN is enabled

#

why they don't get trouble then?

sturdy relic
#

or blaming your car for you the human, driving to fast

#

the human act is what can be illegal or not

#

not the macines or roads we use

rotund python
#

but VPN makes ExpressVPN servers basically looking like they are sharing the torrenting traffic

#

how is it distinguished from them being torrenting sharers?

sharp spoke
#

eivl so i had a random idea... could you like hint on if its breaking tos or how to check if its breaking tos.. cause i gave the spotify api tos a brief read and 1. its painful to read, 2. worse to understand

sturdy relic
#

when you the human download copyrighted material, you are breaking the law

#

how you do it does not matter

rotund python
sturdy relic
sturdy relic
#

there are very few internet centric laws in the world

sharp spoke
#

so uhm there is this listen together feature for premium users.. i think it is possible to make not a pretty exact but somewhat of a similar thing? which syncs your playback externally through python/spotify api
so would trying to make such a thing be violation of any tos.. idts but since its a premium only feature bit questionable

sturdy relic
#

you need both broadcasting rights, and you need to have permission for every song you play

#

legaly speaking

sharp spoke
#

hmm no well i mean i am using the spotify app to broadcast / play
i am merely changing the song through python interface?

sharp spoke
#

uh not even broadcast

sturdy relic
#

if you only play for yourself, on your own computer, and you controll the selection over the spotify api, that is fine

#

but it needs to be the right api, and not a third party hack

sharp spoke
#

its like i am controlling the python playback through another python program

sturdy relic
#

some third party hacks introduce controll not present in the spotify api

#

but as long as its within the api, its perfectly fine

#

from a ToS standpoint

sharp spoke
#

that also well with a consent of the user.. and through the spotify api?

#

so would be fine i guess right?

sturdy relic
#

yes, as long as its the real spotify api

#

there are multiple copies around

sharp spoke
#

what would be correct one to use with python? or just rely on requests and their web api?

shadow elk
#

@jovial island portal from SO, you should open a help channel

sturdy relic
sharp spoke
sturdy relic
#

yes, unless they have a recommended python package in their documentation, but working with apis over the web is a nice practise

jovial island
hazy laurel
jovial island
#

Let me check if the fix works first.

rotund python
#

opened pgadmin interface for direct control of the database

#

and feeling nostalgic about university years.

#

all the last time I usually needed only ORM handling, almost never needed direct SQL

#

pgadmin with postgresql comes quite easy to install

#

quite short and ready to use docker-compose to launch, and that's it.

somber belfry
jade bolt
#

do you
search for
vivek?
how tf did you even see that
ah its ot2
nvm

rotund python
#

by any luck anyone knows perl?

#
    my ($user, $password) = split;
    $status = "ERR";
    $user =~ s/%(..)/pack("H*", $1)/ge;
    $password =~ s/%(..)/pack("H*", $1)/ge;

how is inputed data here?

#

trying to make a sense of db_auth plugin in squid

#

the plugin has in a loop this thing

$|=1;
while (<>) {
    my ($user, $password) = split;
    $status = "ERR";
    $user =~ s/%(..)/pack("H*", $1)/ge;
    $password =~ s/%(..)/pack("H*", $1)/ge;

    $status = "ERR database error";
    my $sth = query_db($user) || next;
    $status = "ERR unknown login";
    my $row = $sth->fetchrow_arrayref() || next;
    $status = "ERR login failure";
    next if (!check_password($password, @$row[0]));
    $status = "OK";
} continue {
    close_db() if (!$persist);
    print $status . "\n";
}
#

but not really getting how I am supposed to supply user and password here

keen burrow
#

Command line arguments?

rotund python
#

the plugin has mode persist that keeps connection open to db

#

I thought it could be launched and being in a loop forever I guess

#

if it would be working from CLI every time, it would not be able to keep db connection i think

keen burrow
#

Oh that's a web thing

rotund python
#

it is one of standard plugins for squid proxy servers

keen burrow
#

My guess would be the first and second path element?

rotund python
#
root@536f60a0d7fa:/usr/lib/squid# /usr/lib/squid/basic_db_auth --debug --user postgres --password you-did-not-see-my-password-right --plaintext --dsn "DBI:Pg:database=squid;host=65.21.247.39;port=5432" test pass
DEBUG1 warn at /usr/lib/squid/basic_db_auth line 137.
DEBUG1 printCan't open test: No such file or directory at /usr/lib/squid/basic_db_auth line 237.
Can't open pass: No such file or directory at /usr/lib/squid/basic_db_auth line 237.
keen burrow
#

I guess you should try to see what split does

rotund python
#

I was able to understand how print works. better than nothing. I can debug it at least

#

aha. I was able to find out

#

after launching the program, it just asks for

data = input()
user, password = data.split(" ")
#

if we will translate it to python

keen burrow
#

aah

rotund python
#

it gives me knowledge.... how to write my own plugin for squid now

#

for my custom auth

#

I can just write it in python now

#

with following the same contract

somber belfry
#

Is this a test?

jade bolt
somber belfry
#

...okay

autumn hornet
#

did you seriously just redact your timezone?

elfin vine
#

Lmao

echo fern
# jade bolt yes

inb4 someone scans all your messages with a selfbot and estimates your timezone from your activity times

hot schooner
#

or github commit times

jade bolt
#

that'll be hard.

#

my active time is wide

mental idol
#

Accidentally found out it's not that hard and surprisingly accurate. Had a light metric capture bot on a friend's server for a bit. He was into DS more than me and it was... eye opening what assumptions he could make with seemingly useless data.

echo fern
mental idol
#

I... umm... I can build ways to gather the data rooHappy

I'm a totally dunce when it comes to doing actual math though. rooDerp

#

pithink But just because it's a circle, wouldn't really change mapping it, would it? Just cut the circle between hour 0 and 24, lay it out on a axis, and chart the data. Then you're just doing means and variance magics.... right?

echo fern
mental idol
#

Hmm.. I see the point. I wonder if you have to expand the hours then. instead of 24, chart it 0-168 so you have the entire week. (or 120 for a work week). I dunno, bet there's some "Oh you just use this" data science answer.

#

No, expanding the hours wouldn't work.. rooDerp

echo fern
# mental idol Hmm.. I see the point. I wonder if you have to expand the hours then. instead o...

The solution is googling, apparently
https://en.wikipedia.org/wiki/Wrapped_normal_distribution

In probability theory and directional statistics, a wrapped normal distribution is a wrapped probability distribution that results from the "wrapping" of the normal distribution around the unit circle. It finds application in the theory of Brownian motion and is a solution to the heat equation for periodic boundary conditions. It is closely appr...

#

though the Parameter Estimation section seems a bit concerning

mental idol
#

haha, I was googling as well but didn't know the terms to search for

echo fern
#

the answer is apparently something along the lines of

Arg(mean(exp(i*time/24*2*pi) for time in times))
#

except that it's a biased estimator

mental idol
#

So, short answer: von Mises distribution. Deep answer: the application of this is still just probability theory and a very tough cookie to dunk.

#

Freaking math... this stuff is fantastically amazing

echo fern
jade bolt
#

wait are you really trying to get someone's messages and grab his timezone

jovial island
#

anyone know how download zoom recordings ?

hazy laurel
jovial island
#

lmao okay fair

somber belfry
#

An admin can grant it to you

jovial island
#

okay thanks

shadow elk
#

@languid osprey I tried PureScript, feels like I need a PhD to use Halogen

languid osprey
#

Hello

languid osprey
#

I've been learning it, its pretty nice so far

#

It looks very daunting though

shadow elk
#

the type system is nice, but the ecosystem has very little documentation, and the libraries/frameworks are complicated

languid osprey
#

Indeed

#

Elixir has a decent bit of documentation

#

and F# has microsoft docs

somber belfry
#

damn

full marlin
#

i like bodyweight stuff

#

this stuff is killer

civic plank
#

it's great for your body and heart, but on the other hand i wanna feel like i wanna die after a HIIT workout xqcOmega

full marlin
#

i like them i find them fun

steel eagle
#

Lmfao since your pfp is blank I thought that was aboo posting it

civic plank
daring jay
#

Ovicron's pfp isn't blank

civic plank
#

im mining ur discord >:D

daring jay
#

Are you on Amoled or something?

civic plank
#

or lightmode discord? D:

steel eagle
#

Oh I'm using the OLED theme

#

So it's blank

civic plank
#

oh haha

#

interesting

autumn hornet
mental idol
# autumn hornet That's interesting - could you elaborate?

Given minimal data on # of messages per hour, # of words in each message, and a few other seeming harmless data points tied to a user_id my friend was able to map activity surprisingly accurately. Right down to likely meal times, work hours, and sleep hours. Data sciences... I tell you... evil geniuses of our day rooDevil

autumn hornet
#

That's awesome

mental idol
#

Certainly opened my eyes a little to what I thought was harmless logging

autumn hornet
#

That's really awesome

#

How did their methodology work?

sterile nymph
#

I don't believe in 7 billions persons existing

mental idol
autumn hornet
#

Do you have their discord? I'm going to run this over my own messages.

mental idol
#

The discord in question no longer exists. I wrote the logs, using discord.py. It was just grabbing user_id and parsing details of the message. Active hours, if I recall, was just a list with 24 ints. Increment the # depending on the hour in UTC.

autumn hornet
#

uh huh. what was their methodology though?

#

What was the data structure for # of words in each message, and what were the other data points?

sterile nymph
#

not terminal?

jade bolt
wide totem
#

wow @grim seal disabling dms smh

#

๐Ÿ˜”

grim seal
#

lol

wide totem
#

anyways I tried to reply to you but couldn't so

grim seal
#

trying to keep stuff in server

#

helps me keep track of things

wide totem
#

ah

#

never talks to joe again

grim seal
#

lol

steel eagle
jade bolt
#

that's why

steel eagle
#

Are you saying he's a rule breaker

jade bolt
#

perhaps

steel eagle
#

oofer nanners

echo fern
jade bolt
#

๐Ÿ˜”

ornate scroll
#

probably school

#

it was my first day today

#

pretty cool tho crowded af

errant basin
#

@hollow heart Hi, I was talking about taking notes, the problem is that is an Udemy programming "class"

hollow heart
#

ah so it's online

errant basin
#

And I want to have my notes with examples, code, etc...

hollow heart
#

which course?

errant basin
hollow heart
#

i think actually writing the code will probably be more productive than writing traditional "notes," so whatever tool you choose, jupyter notebook, pycharm, might be fine. i'd go with jupyter

errant basin
#

This one

hollow heart
#

ah nvm then so not super simple

#

the course will probably give some guidance or recommendations on what tools to install i would think (hope)

#

did you already register ?

errant basin
#

And for taking notes, i'll probably use Jupyter

#

But my question was if is a good use to work with Jupyter for taking notes?

#

Or what is its principal objective?

hollow heart
#

no i feel like that's probably not gonna be beneficial really

hollow heart
#

the principal objective of jupyter isn't for note taking, it's for writing and running python code

#

maybe the name confused you bc it's called jupyter notebook?

errant basin
hollow heart
#

yeah, ok then i think you can do that

hollow heart
#

but if you're also writing code in pycharm that in and of itself should become a reference tool for you to look at later

errant basin
#

But I was looking for tutorials and I saw that is like having a notebook and a IDE in the same app

hollow heart
errant basin
hollow heart
#

then you can get pycharm professional for free and will be able to use jupyter notebook with pycharm

#

i really can't definitively say yes or no, but once you actually start the class it will become clear to you the best way to proceed. you may find you don't need separate note taking at all since you're learning by doing

#

is this a class with exams and stuff at the end?

#

if not, i wouldn't really take notes tbh. when does the course start ?

errant basin
hollow heart
#

uhh definitely find out, it should be in the course description, but i can only was english

errant basin
hollow heart
#

ok just start the course then- usually the instructors will give guidance on what tools you need

errant basin
errant basin
hollow heart
#

correct you would not want a project for every single thing you learn

#

you create 1 project directory, with multiple files within

errant basin
#

So what should I do?

hollow heart
#

even multiple directories within

#

how much python have you done so far? this isn't your first time is it?

errant basin
#

Not really

#

I've done a tic-tac-toe game

#

But i want to learn from basics to advance

hollow heart
#

so you have python installed and pycharm installed? then there's nothing more to do, start the course

hollow heart
#

and if you find that it's too beyond your skill level (like impossibly hard, and too much of a challenge), find an easier course to try. or try some more independent beginner-level projects

errant basin
#

Or is it not necessary

hollow heart
#

i think it won't be necessary, but you won't know until.....:...,,,,,..... you start the course ๐Ÿ˜‚

errant basin
#

So I should work with one file and writing examples on it

hollow heart
#

no you can make multiple files if you want

#

you should do what makes sense according to the instruction you get

errant basin
errant basin
hollow heart
#

did you start the course ??

#

like the videos?

errant basin
hollow heart
#

by "instructions" i mean what the course teacher will tell you once you start the actual course

errant basin
#

To conclude, I think I should take notes with Jupyter if it's necessary

hollow heart
#

yes ๐Ÿ˜‚ please start the course and let me know after your first 3 days

#

i'm curious what you end up doing

errant basin
#

Someone said "No unless if its Data Structures/algorithms class"

hollow heart
#

start
the
class.
then
you
will
know.
i promise!

errant basin
#

Idk what I'll do

errant basin
#

For example

magic atlas
#

@errant basin When it comes to getting set up, I think it's a case of "perfect is the enemy of perfectly adequate".

errant basin
#

paper and pencil, jupyter, etc...

magic atlas
#

So I would just use whatever tools get the job done and not worry about it too much.

#

The simplest thing to do would be to write code in a text editor, and take separate notes with paper and pencil.

errant basin
errant basin
magic atlas
#

By all means try out Jupyter if you want to, but don't get too distracted by trying to have the perfect set up.

errant basin
magic atlas
#

You need three things:

  • A program to edit code in.
  • A way to run code.
  • A means to take class-notes that aren't code.
#

I suppose one benefit of Jupyter is that it combines all three of these.

#

But you might find it overwhelming to try to learn to use Jupyter and learn to program at the same time.

hollow heart
errant basin
errant basin
hollow heart
#

in my opinion, no, note taking is not greatly beneficial for learning how to code, especially in a guided class like you're trying to take

magic atlas
magic atlas
errant basin
hollow heart
#

i might be wrong, you can tell me after you complete 3 days of the course. i'm very curious to hear your thoughts on this after you actually start

magic atlas
magic atlas
hollow heart
#

bc coding concepts are learned and understood by doing & repeating

errant basin
errant basin
hollow heart
#

you're not learning computer science, theory, etc. if you were, more rigorous note-taking would probably be beneficial as well as lots of reading.

magic atlas
#

And actually, on the editor front, a great option for beginners is Thonny: https://thonny.org

#

You can move on to a more advanced editor later.

errant basin
sharp spoke
# errant basin So should I don't take notes?

notes are beneficial yes.. but quite a lot of times the programs you write.. with good code and commenting they act as good future reference....
as for theory.. yes for theoretical parts you might need to make separate notes

errant basin
magic atlas
magic atlas
errant basin
#

Thank u guys :3

hollow heart
#

i want an update after 3 days!!! ๐Ÿ˜‚ i was serious

errant basin
#

It is a simple course hahaha

hollow heart
#

bc now i'm invested in your journey

errant basin
#

hahahahaha

hollow heart
#

yes lmaoooo

#

just, don't forget about me mk

magic atlas
clever salmonBOT
#
ROGER THAT

Your reminder will arrive <t:1629603515:R> and will mention 1 other(s)!

magic atlas
#

Sorry should have done:

clever salmonBOT
#
Can do!

Your reminder will arrive <t:1629603582:R> and will mention 1 other(s)!

hollow heart
#

double reminders praise

sharp spoke
#

wait actually i remembered to ask this.. did they add functionality of deleting python messages which are replies to non staffers from channels except help and botcommands?

hollow heart
#

we better not forget

magic atlas
#

I really need to get better at using commands lemon_pensive

magic atlas
sharp spoke
errant basin
#

cu guysโœŒ๏ธ

median blade
#

๐Ÿ‘€

cedar turtle
#

althoughO(n^n) actually grows faster than O(n!) but ok

dusky cliff
#

lol

#

is there any algorithm which is n^n

sharp spoke
dusky cliff
#

?

sharp spoke
dusky cliff
#

oh

#

think it was 2^n or something

#

not n^n

sharp spoke
#

hmm

jade bolt
sharp spoke
#

gotta give a read on big O notation again i think

jade bolt
#

random guess

sharp spoke
#

also @dusky cliff where did you find such Q tho

jade bolt
dusky cliff
#

past papers of some computer olympiad

#

i forgor which one

cedar turtle
#

brrr

sharp spoke
#

ahhh

#

never knew they were this good in india

cedar turtle
sharp spoke
#

UCO is shitbox

sharp spoke
cedar turtle
#

im gonna make a O(n^n) program

sharp spoke
#

hmm makes sense.. the only major olympiad i have heard of of cs in india is UCO.. why is not really a computer olympiad.. pretty bad

dusky cliff
cedar turtle
#

boi

dusky cliff
#

ez n^n question

sharp spoke
cedar turtle
#

i was thinking about dynamically constructing n loops each iterating from 1 to n

#

nested

#

why am i so dumb

dusky cliff
#

n = int(input()); print(*range(1, n**n + 1))

#

lolz

cedar turtle
dusky cliff
cedar turtle
#

no

dusky cliff
#

dunno what you're talking about

#

๐Ÿค”

sharp spoke
cedar turtle
#

yes hsp your are always right

dusky cliff
#

+ 1*

cedar turtle
#

lispython

dusky cliff
#

i cursed zip some more zip = lambda* _: map(lambda* __:__ ,* _)

cedar turtle
dusky cliff
#

of course

cedar turtle
#

to cleanse your soul

dusky cliff
cedar turtle
sharp spoke
sharp spoke
cedar turtle
#

more like eye concentrated sulfuric acid with 10% hydrogen peroxide

sharp spoke
#

interesting mix

cedar turtle
#

it has a cool name

#

piranha solution

sharp spoke
#

has eivl slept and forgotten to turn of discord and pycharm?

cedar turtle
#

perfect for washing away evidence

sharp spoke
cedar turtle
sharp spoke
cedar turtle
#

:sad: indeed

sharp spoke
cedar turtle
#

ok

real forum
dusky cliff
#

which is why its eyebleach

steel eagle
cedar turtle
dusky cliff
#

yes

cedar turtle
#

yes

#

i hate integration by parts

#

it sucks

#

it must be abolished

#

partial fractions suck too

dusky cliff
dusky cliff
cedar turtle
#

chads use di method

#

fuck integration by parts

#

me and my homies hate it

dusky cliff
#

isnt the di method just

#

integration by parts

cedar turtle
#

yes

#

but its superior

#

than that pathetic excuse of that formula

dusky cliff
#

lol ok

cedar turtle
#

why the fuck would you remember that shitty ass formula

#

problem is the fucking schools wont accept the di method

#

fuck the schools

#

they want the formula

dusky cliff
#

lol

#

no one cares what formula you use in competitives

cedar turtle
#

ye

#

schools dont accept l'hopital rule in exams but i abuse the ever living fuck out of that rule in competitve exams

#

i will even differentiate 4 fucking times to get the answer

#

l'hopital is bae

dusky cliff
#

true

cedar turtle
#

and taylor expansions are bae

sharp spoke
#

using notepad for coding be like this

cedar turtle
#

except for the fact i can't rember them ๐Ÿ˜”

sharp spoke
cedar turtle
#

you could've atleast used idle

sharp spoke
sharp spoke
cedar turtle
jade bolt
#

you can set custom themes

cedar turtle
#

you must be that guy who remembers formulae when you can l'hoptial every single question

sharp spoke
cedar turtle
#

by all means, if you want to suffer, use manipulation

sharp spoke
#

that reminds me i hate integration

cedar turtle
sharp spoke
#

and i have a test tomorrow

#

fml

cedar turtle
#

hmm

#

wolfram alpha is there to the rescue

sharp spoke
#

on integration purely

cedar turtle
#

i suck at u subs

#

i use t as the substituting variable wbu

sharp spoke
cedar turtle
#

honest guy? thats super rare

sharp spoke
cedar turtle
sharp spoke
#

but in online just doesnt feel the same

cedar turtle
#

whats the integral of secx

#

ln(cosx) or ln(sinx)?

sharp spoke
#

ln(sin x)

cedar turtle
#

wit

sharp spoke
#

no wait

cedar turtle
#

isn't it ln(cos(x))

sharp spoke
#

sec right

cedar turtle
#

wait

sharp spoke
#

sec integral is ln(|secx + tanx|)

cedar turtle
#

bruh

sharp spoke
#

it is

cedar turtle
#

yeah

sharp spoke
#

with a mod tho

cedar turtle
#

who cares about the mod

#

mods suck

sharp spoke
#

my teachers do

sharp spoke
cedar turtle
#

bruh due to these fucking mods there are 2 or 3 cases to solve in an equation

#

gotta open with a plus, gotta open with a minus

#

fuck mods

cedar turtle
#

not that mod

#

|x| this mod

sharp spoke
#

similar

sharp spoke
cedar turtle
#

send that abomination pls

#

we gotta see it

sharp spoke
#

oh nvm

cedar turtle
#

bruh

sharp spoke
#

she merged it with few more things

#

but they used csv module for it ๐Ÿ˜”

cedar turtle
#

ultra bruh momento

sharp spoke
#

dont ask me.. school be weird

cedar turtle
#

ok bai ๐Ÿ‘‹

sharp spoke
#

bai

jade bolt
#

wait what.

#

people already started school

autumn hornet
#

post it mate

sharp spoke
jade bolt
#

ok

#

am going to use my tts thingy to show off if online class continues

sharp spoke
#

lmao

jovial island
#

yeah nah yeah that's not me.

jade bolt
jovial island
#

uhm:(

#

alright, you didnt see that alright? @jade bolt

jade bolt
#

no

jovial island
#

great

jade bolt
#

i did see that

jovial island
#

wtf

#

hush alright

dusky cliff
#

no

#

@jade bolt what did you see

#

๐Ÿ”ซ

jade bolt
jovial island
jade bolt
#

should i delete dat nessage

jovial island
#

i anyways had my face as dp here before a while

#

yeah nah im fine. I'm not much worried 'bout that.

jade bolt
#

ok

vale egret
#

ok

normal quartz
#

annie, are you ok

sharp spoke
#

is anyone ok?

jade bolt
#

no

pliant trench
#

I hate this gun, it looks a water gun lol

jade bolt
#

it is. a water gun

pliant trench
#

it isn't supposed to be a water gun

lucid osprey
#

wot

jade bolt
lucid osprey
#

Pretty sure its a water gun m8.

jade bolt
#

the actual gun got banned because unicode doesn't liek it

lucid osprey
#

look at the colour and the trigger

jade bolt
#

*perhaps parents don't and they force unicode to make it water gun

pliant trench
#

and it shouldn't imo

lucid osprey
#

what difference does os make here?

jade bolt
#

Originally depicted as a classic handgun, as a revolver or other pistol. In 2016, Apple switched its design from weapon to toy; other major vendors followed suit by 2018. Deprecated emoji sets or smaller platforms still display the emoji as a handgun.

#

blame apple

pliant trench
#

lol

#

what

dusky cliff
#

yeah its a water gun by design

sharp spoke
pliant trench
#

can't take a pic now, not on linux

sharp spoke
#

make aboo send

pliant trench
#

@languid osprey do it

somber belfry
#

it's a water gun on linux too

#

since that's a discord default emoji

#

\๐Ÿ”ซ

#

๐Ÿ”ซ

pliant trench
#

hmmm

#

I was wrong then

#

but linux one seems more powerful ๐Ÿ’ช

jovial island
#

vivekanand ๐Ÿ˜› @somber belfry

tranquil ridge
#

interesting

pliant trench
#

lolll

#

that looks like a colt

#

so it's a gun! haha

somber belfry
tranquil ridge
#

how do i install an emoji font

somber belfry