#ot1-perplexing-regexing

1 messages · Page 100 of 1

grave cove
#

it dont work

thick ore
#

wat

grave cove
#

map passes in multiple arguments

#

parseInt accepts a radix

#

it gets fucked

scarlet peak
#

whats a radix

grave cove
#

base

acoustic moss
#

base on what

grave cove
#

my fingers

#

anyway @scarlet peak im going to bed now, if you end up having more questions feel free to ping and i'll get to it tomorrow morning

grave cove
#

America/Chicago

scarlet peak
#

ah ok

#

ray

#

im gonna stamp your balls out

rough sapphire
scarlet peak
#

@grave cove dunno how to fix this

#

just gonna use the regex pattern already in there

paper sequoia
#

Have you used either? I'm considering revolut as it's available in my region

scarlet peak
#

fucks sake

#

@grave cove ```js
function check (a: Array<number | string>, x: number | string): boolean {
return x in a;
}

let testCases = [
[[66, 101], 66],
[[101, 45, 75, 105, 99, 107], 107],
[['t', 'e', 's', 't'], 'e'],
[['what', 'a', 'great', 'kata'], 'kat']
]

for (const [List, SearchVal] of testCases) {
console.log(check(List, SearchVal));
}```

#

im gonna go sleep

#

wait no shit i cant

#

i have school in like 2 hours 😭

thick ore
#

it's kinda weird but whatever

scarlet peak
thick ore
scarlet peak
scarlet peak
spare oriole
thick ore
#
> 2 in ["1", "2"]
false
thick ore
#

jinx

scarlet peak
spare oriole
#

It checks if the thing is in the list exactly

thick ore
#

in checks for both value and type

paper sequoia
spare oriole
thick ore
#

actually in only works for objects

#
> 2 in [1, 2]
false
> 2 in {1: "hello", 2: "world"}
true
spare oriole
thick ore
#

JS is weird :P

thick ore
#

use .includes instead

paper sequoia
#

If you have interacted with it before

spare oriole
paper sequoia
#

I guess that's good, was just thinking as it's online only so gotta hope it's good if needed for any reason. The signup process seems pretty good as well, though I have to send picture of ID... Just have to hope the picture ends in where it's supposed to and not in random hands

scarlet peak
scarlet peak
#

got it

scarlet peak
thick ore
#

ill have to check

thick ore
#

btw you should use type[] instead of Array<type>

scarlet peak
#

ah ok i see

#

thank you

#

i just made them any and it worked

#

i only wanted to test the cases

#

but thank you as well, i'll remember that

scarlet peak
#

the ... ? ... : ... stuff

thick ore
#

condition ? expression if true : expression if false

scarlet peak
#

ah yes

#

thank you

#

oh wow js is kinda easy ngl

cursive salmon
#

Does anyone code in C#? Is it a good language to learn?, I want to make a desktop app and idk if to just use flet or learn c#

#

i've done a couple things in it but nothing to deep

scarlet peak
timid latch
#

I dont know much c# at all, but I would say it seems like a good option for desktop apps

thick ore
#

fr

#

but if you're building apps using .NET, you're mostly gonna be dealing with XAML for your UI

#

basically
XAML = HTML/CSS
C# = JS

gritty zinc
#

@cloud flare i'm using an i3-3240 to this day, so you really don't need heavy hardware 😛

gritty zinc
#

though that CPU does mean that I can't run e.g. pycharm (vscode is okay, though), and programs in compiled languages like Rust take some minutes to build for me

#

either way, any cheap modern CPU is a massive improvement on what I'm running, so it's not a big deal what you pick specifically

cloud flare
#

Oh yeah true

#

do you perchance think it could handle scripting games? /websites

gritty zinc
#

programming is much less compute-intensive than, like, just running games.

cursive salmon
#

and it's not that bad

#

I feel like c# is a clean language

thick ore
#

very

cursive salmon
#

C# core has linux support and C# framework is just for windows right?

thick ore
#

net framework/fx is outdated, don't use that unless you need to

cursive salmon
#

okok

#

I wanted to do a custom game launcher

#

ill start with it and see how it goes

thick ore
#

wpf is a good option tbh

cursive salmon
#

on Jetbrains Rider there were a couple more options but WPF was the recommeded one

thick ore
stable fulcrum
#

hell nah don't git revert my day

young shoal
gritty zinc
#

look, i dislike spending money and dislike change and also computers are fucking expensive

acoustic moss
#

based

gritty zinc
#

currently I'm looking at like 500-650$ to upgrade to decent modern hardware, and that's reusing my old but okay GPU 😭

young shoal
#

the problem is that the motherboard would be incompatible with anything modern 😔

gritty zinc
# hexed sierra ryzen gang

not too sure about ryzen, tbh. my concern is that they just switched to a new socket, so buying AM4 is cheap but not very upgradable, whereas AM5 is really expensive (once you take into account the motherboard and the DDR5 RAM)

young shoal
#

at least with intel you can still use ddr4 with the newest cpus

gritty zinc
#

whereas intel has been slugging with their LGA1700 for a while and seems to not be planning to upgrade yet

#

incidentally, is it just some artifact of my data or Intel CPUs all weirdly hot?

#

AMD has tons of 65W TDP ones, whereas for most Intel ones it's "65W normally but supposedly gets boosted to like 120".

hexed sierra
#

that's because cpu clocks no longer mean anything

#

both intel and amd now automatically overclock as much as they can, and once they hit a specified temp (often 100°C), they throttle themselves to something more reasonable

#

as a result, adding more cooling does not improve temps under heavy loads, but rather the steady state clock

#

AMD should be a little more power efficient, but otherwise does the same

#

the max power draw is a little lower

civic pasture
#

Hi Edd

hexed sierra
#

hi

civic pasture
#

Eddie Murphie

#

🐽🐽

gritty zinc
#

hmm, I have no idea how to reason about this then. intel cpus have two numbers, "TDP" and "TDP but hidden in some datasheet and like twice higher", and AMD CPUs don't even have the second number, just the low first one

hexed sierra
#

they're all fake

#

watch benchmark videos cuz almost none of the numbers in the spec sheets are useful now

gritty zinc
#

i'm mostly looking at the benchmark data

hexed sierra
#

the nanometers in the lithography process are fake, the boost clocks are fake, the TDPs mean nothing

#

also remember that TDP is more about heat dissipation than power consumption

gritty zinc
#

that's concering though, since, like... suppose in one world I buy a ryzen 5 8600G , and in another an i5-14400. They have almost the same price and performance according to benchmarks, but the intel supposedly has twice the TDP - how many watts of cooling am I supposed to strap to each?

hexed sierra
#

intel processors this gen famously overheat like crazy

#

performance per watt is what AMD sells

#

whether that's useful for you is up to you

#

nvidia sells overall performance just like intel, and their power cables catch fire and you now need power supplies in excess of 1000W

gritty zinc
#

hmm, interesting

#

(for GPU, if I upgrade it at all which seems unlikely, i'd probably get an AMD just because of freer software - i'm on linux all of the time these days)

hexed sierra
#

no ML for you, then

gritty zinc
#

really? what about ROCm?

hexed sierra
#

i don't think it has good support anywhere

#

i might be wrong but i've never seen it outside of alpha or beta builds of libraries

gritty zinc
hexed sierra
#

remember that intel uses E and P cores now

gritty zinc
#

ooh, right. yeah, that explains it

hexed sierra
#

i don't think processes can parallelize over both at the same time

gritty zinc
#

i forget because my data doesn't break them down into core kinds

hexed sierra
#

one of the two is also single threaded

#

also linux scheduling doesn't always play nice

#

windows 10 doesn't run well on those processors at all

#

so yeah, the effective number of cores in heavy load is lower

#

AMD doesn't use P and E cores, which is also why it supports avx512

gritty zinc
#

interesting btw that it's efficient cores that don't get hyperthreading; I thought it's mostly the more IO-bound tasks that benefit from it, and so would have expected the performant cores to not have HT

hexed sierra
vocal oyster
#

yeah you should make your io bound app in rust

#

makes your network faster

hexed sierra
#

btw, mkl under intel one is open source and it now supports the more recent AMD zen architectures for most stuff. iirc all float64 operations are supported, though some float32 ones are missing

#

that means changing BLAS backends on AMD isn't make or break anymore

tardy rain
#

they need type annotations

#

specifically one on testCases

#

and also you should extract your union type to make things cleaner

#

if you hover over List you'll see why you get the error

#

youre treating lists as tuples, ofc TS is confused

#
type Elem = string | number;

function check(a: Elem[], x: Elem): boolean {
    return a.includes(x);
}

let testCases: [Elem[], Elem][] = [
    [[66, 101], 66],
    [[101, 45, 75, 105, 99, 107], 107],
    [['t', 'e', 's', 't'], 'e'],
    [['what', 'a', 'great', 'kata'], 'kat']
];

for (const [List, SearchVal] of testCases) {
    console.log(check(List, SearchVal));
}
#

there's probably a cleaner way to write all this but w/e

cosmic berry
#

I need someone who is a programmer in PHPMyAdmin to ask him some questions

carmine apex
#

hey @vale raven guess what i have

lament cairn
#

I found out someone made the exact same thing I'm making and it's a significantly more capable and mature project FUCK

hearty violet
paper sequoia
#

There's always someone who one-ups it seems

hearty violet
lament cairn
#

yes it still sucks when it happens

hearty violet
#

the only way for u to make something original is to either be very very qualified and do something most people don't hv the technical baggage for

or to just live in complete isolation lol

gritty zinc
wanton delta
#

I was and still am on the side of the artists whose work got stolen as a result, but many people on that side fought the wrong fight.

#

so many discussion about originality and the human touch, when it was a simple 'look, these companies steal. state the obvious'

obsidian elm
#

Question what's your favorite part about being a programmer?

thick ore
wanton delta
obsidian elm
obsidian elm
wanton delta
spiral zephyr
#

@limber mantle, off topic so i'll tag you here haha

I know you critique C# for having a lot of "windows legacy" but the thing is, there's a lot of legacy culture with Java. Especially: using (pre-)Java 8 and also an ancient style. Even if Java reaches feature parity that doesn't mean people are using Java 17 / 21 actively or if the culture of writing Car car = new Car() is now magically replaced with var car = new Car(). Kotlin also does away with checked exceptions, which are awful. You also have null safety (Java can give you a NullPointerException basically anywhere, I doubt this will ever be solved) and so on.

limber mantle
spiral zephyr
#

Just the fact Java has no null safety and checked exceptions makes it a very very bad programming language. You're forced into defensive coding. Each object you have can be Null or not Null so you may need to check that otherwise you can have runtime errors.

int x;
int y = x + x;

this compiles no problem 🥴 (not in Kotlin).

limber mantle
limber mantle
spiral zephyr
#

Let's look at the damage checked exceptions and Java-isms do. Reading a csv in Java using apache arrow

import org.apache.arrow.dataset.file.FileFormat;
import org.apache.arrow.dataset.file.FileSystemDatasetFactory;
import org.apache.arrow.dataset.jni.NativeMemoryPool;
import org.apache.arrow.dataset.scanner.ScanOptions;
import org.apache.arrow.dataset.scanner.Scanner;
import org.apache.arrow.dataset.source.Dataset;
import org.apache.arrow.dataset.source.DatasetFactory;
import org.apache.arrow.memory.BufferAllocator;
import org.apache.arrow.memory.RootAllocator;
import org.apache.arrow.vector.VectorSchemaRoot;
import org.apache.arrow.vector.ipc.ArrowReader;

String uri = "file:" + System.getProperty("user.dir") + "/thirdpartydeps/csv/tech_acquisitions.csv";
ScanOptions options = new ScanOptions(/*batchSize*/ 32768);
try (
    BufferAllocator allocator = new RootAllocator();
    DatasetFactory datasetFactory = new FileSystemDatasetFactory(allocator, NativeMemoryPool.getDefault(), FileFormat.CSV, uri);
    Dataset dataset = datasetFactory.finish();
    Scanner scanner = dataset.newScan(options);
    ArrowReader reader = scanner.scanBatches()
) {
    int totalBatchSize = 0;
    while (reader.loadNextBatch()) {
        try (VectorSchemaRoot root = reader.getVectorSchemaRoot()) {
            totalBatchSize += root.getRowCount();
            System.out.print(root.contentToTSVString());
        }
    }
    System.out.println("Total batch size: " + totalBatchSize);
} catch (Exception e) {
    e.printStackTrace();
}
lament cairn
#

the fuck

spiral zephyr
#

Python now

from pyarrow import csv
csv.read_csv(source)
limber mantle
#

Usually in Golang i have situations like this to avoid Null Exceptions:

  1. i don't use pointers, then i am safe from Null exceptions
  2. I use pointers and i return (pointer, error) as tuple
    if function has not nil err returned, then pointer can be null, otherwise it should be safe to work with
limber mantle
spiral zephyr
#

You'll still have the same problem

#

Because of checked exceptions

#

You can wrap this in a reusable function but it can still throw things

#

Notice how this isn't even good code. They wrap most of the body with try and catch a bare exception (anti-pattern)

#

but you're forced to do so at the language level

limber mantle
#

in Golang i usually write... extra function which handles error by some default as extra addition

#

So... i have normal function which returns my Exceptions

#

and second function shortcut wrapper with default Exception handling inside taken care of

#

thus i can have minimalistic interface to some often used function, if i don't wish taking care of exceptions all the time

young shoal
spiral zephyr
#

Then you go with Scala style and you flatMap / map or Rust style and you have ?

spiral zephyr
#

They're in the same spirit

#

Java is a very very procedural language that masks as OOP

#

Go embraces the procedural part and throws away the OOP

young shoal
#

that was one of go's design go(als) right? to be easily learned by java devs

spiral zephyr
#

doesn't surprise me

#

Don't get me wrong, this is "language nerd" me speaking

#

Business man me absolutely loves Java and Go

#

Cheap devs, easy-ish to learn

limber mantle
# spiral zephyr Cheap devs, easy-ish to learn

I like Go for the sake of being productive as well.
Just the right balance between having smart enough language with type safety and code architecture capabilities
And at the same time not needing to care memory management stuff and if u code correctly, u have great chances code being correct after refactoring. Very friendly for refactoring, and doing massive changes to code base language.
I can make changes to 50+ files in a single commit, if i am too bold, and survive backlash of having this many changes at the same time (Smth that should be impossible in Python or Javascript 😅 )

spiral zephyr
#

I started picking up Rust a while back actually and it doesn't feel like you have to manage memory manually (to me at least)

#

It just punishes you for bad code a lot more than other langs I suppose

#

They're very different languages but I think writing Rust is way more fun

low chasm
#

Rust is based

spiral zephyr
#

And if you architect it well it's a really really productive language

#

Not slow to write

limber mantle
#

am i right in those assumptions?

spiral zephyr
#

I rewrote an app I deployed on my server to Rust, it's now 8mb ram instead of 170mb

#

crazy

low chasm
#

you aren't explicitly managing memory as you would in C, for the most part

spiral zephyr
#

(Used to be on the JVM)

spiral zephyr
#

If you start, after a week it becomes easy to read because the "noise" actually makes the language very explicit

limber mantle
#

JVM has many prices... hopefully i will able to pay them
(personally i feel like i can code in Golang for the rest of my career, anything i do in it i feel like i can achieve perfection of the level i desire)

spiral zephyr
#

Seeing so much & * < > ' ? ; { } before writing Rust was ugly but I like it now because they each say something very specific

#

I actually never needed to clone too much either in Rust, except in the very first thing I wrote

low chasm
#

It's fun to write for the most part

tardy rain
#

Dont need my code to look like sigil soup

#

Rust 👎

dapper dew
#

mmmm soup

hybrid root
#

I love soup
Rust 👍

dapper dew
#

Anyone enjoy or have recipes for cold soup

jovial oriole
dapper dew
jovial oriole
tardy rain
#

Theres an egg and lemon soup we do back home, its usually done hot but when cooled down its so good

spiral zephyr
#

Mostly because most patterns I learnt in Scala were brand new and I didn't have to learn the magain for Rust

#

They were pretty transferable

#

Both kind of have the attitude of "everything is possible" but the cost of fighting against the language is steep

obsidian elm
harsh tundra
tardy rain
#

admittedly rust isnt such a big offender, other func langs that allow you to define your own infix ops are much worse

#

cba to look up what <^*|D> and other nonsense means every other line

#

rust's ugliest op is ::<>

acoustic moss
wanton delta
tardy rain
#

fugly

low chasm
#

turbo fish is the best thing of all time

spiral zephyr
tardy rain
#

:: is a close second

wanton delta
#

so in extension you also hate php

acoustic moss
tardy rain
#

i dont hate them because of their ops, i just like them less

acoustic moss
#

:: looks beautiful

tardy rain
spiral zephyr
#
  def listCircleMembers(circleId: CircleId): F[MembersListOut] =
    circlesAuth.authCheck(userInfo, circleId) *>
      service.listCircleMembers(circleId)

Scala lets you make your own infix operators like *> which translates to (roughly, if it were imperative)

val _ = circlesAuth.authCheck(userInfo, circleId) 
service.listCircleMembers(circleId)

or this in rust

circlesAuth.authCheck(userInfo, circleId)?;
service.listCircleMembers(circleId)
#

I prefer the infix version 😛

hearty vigil
ruby birch
#

@dapper dew In a world of channels, myriad and vast,
I stood bewildered, unsure, aghast.
Remote in hand, flipping through the array,
A kaleidoscope of options held at bay.

Should I plunge into the depths of news,
Where headlines scream and anchors muse?
Or seek solace in nature's serene embrace,
Where documentaries unveil Earth's grace?

Perhaps comedy's refuge, a haven of mirth,
To banish gloom and give laughter birth.
Or delve into history's annals deep,
Where echoes of the past in whispers creep.

The arts beckon with their canvas wide,
A symphony of colors, emotions to confide.
Or sports, a realm where heroes clash,
Their tales of victory, defeat, and dash.

Science, technology, a realm of wonders untold,
Where innovation's story is endlessly scrolled.
Cooking channels, a feast for the eyes and taste,
Recipes to master, flavors to embrace.

Reality shows with their dramatic flair,
A peek into lives, sometimes unfair.
Travel channels, a passport to lands afar,
To wanderlust hearts, a guiding star.

Yet amidst this sea of choices vast,
I find myself adrift, my resolve surpassed.
For in the realm of channels, where to choose?
A question that beckons, demanding muse.

So I sit in limbo, pondering my plight,
In the flickering glow of the screen's soft light.
Lost in the labyrinth, seeking direction true,
In the myriad channels, what path to pursue?

#

in short. where tf is the correct channel to post recipies

dapper dew
#

here is fine

ruby birch
#

👍

hybrid pivot
#

imagine having to write that on an exam paper with imports

harsh tundra
# solemn tulip

Why happy noises if I said I haven't touched Rust? Sorry, Ferris

solemn tulip
#

rust mentioned

jaunty wraith
#

Rust mentioned 👎🏼

hybrid pivot
#

rust sensed

solemn tulip
#

(I gotta get some mileage out of my tunic script, ok?)

#

spoiler version with annotations

jaunty wraith
#

(that looks cool, though)

solemn tulip
#

it was a nice tool to develop as I decoded the tunic runic

jaunty wraith
#

the fiery frumpy fenix decoded the tunic runic

solemn tulip
#

having things in code allows for fun stuff like glyph lookups and playing around with combining glyphs

#

and I'm happy I didn't do it by hand and hacked up some PIL instead

#

I don't want to think of how many hours I sank into figuring out the language 🥴

jaunty wraith
#

what matters is that you had fun

solemn tulip
#

why play game when game can play you?

jaunty wraith
#

what if you were the game all along?

solemn tulip
#

I might have had to double check the definition of that meaning of the word, in the process I found this definition

#

what are the functional programmers planning?

jaunty wraith
#

they think this is all a game

eager trout
#

passed my linear algebra for CSE class this semester with a B

#

Feels like I'm gaining infinity stones with each semester

#

I could even write my own rotating donut now lol

#

doesn't seem far fetched anymore

vivid abyss
#

Help

#

I feel overwhelmed rn

#

I cant decide whether do I try changing to roblox studio, python or both

#

should I do python session then a small roblox studio?

#

game developing seems fun

#

Roblox studio is like a very sorted out toolbox

#

which is pretty fun to me

#

and python and other engine are like making your stuffs from nothing

uneven pine
#

I'd highly recommend if you really want to make games to ditch the little kids game and use a real framework or engine

warped sentinel
vivid abyss
#

Oh okay

#

personally I think I'll focus on python I guess

#

but when I'm bored Il just goof around in roblox studio

cloud oxide
#

how can i change the password in the netgear app?
everything on the internet seems outdated

brittle void
solemn tulip
#

the glyphs are quite pretty

brittle void
#

what are those and what does it mean?

solemn tulip
#

it's the glyphs for the language in the game Tunic

#

tl;dr: and not too spoiling of the game: you encounter this language when interacting with stuff in the game, and game manual pages is mostly in this language

brittle void
#

oh, so its like in gow ragnarok

solemn tulip
#

no clue what the thing in that game is 🥴

#

I don't think sharing this page of the manual is too spoilery since it's one of the first you'll find, but let me put it as a spoiler anyway

vale raven
solemn tulip
# solemn tulip

oh yeah, there is a canon style of these letters that's actually hexagon based

#

looks very weird when you have gotten used to the full height script

jovial oriole
#

Is this healthy?

#

Heart rate is usually around 60

uneven pine
#

You've mistaken this for Google a doctor

#

Those numbers are really bad. Really really bad. You've probably got two weeks to live at best. Tell your family you love them.

strange blade
#

You mean WikiHow

#

We're actually Bing, if you can't tell

lament cairn
#

(normal is 120/80 mmHg, you've got low blood pressure. seek a doctor get it checked out)

hearty violet
#

who tf asks for health advice on a python server

lament cairn
hearty violet
lament cairn
#

if it's someone from the US i understand

#

funeral costs less than a trip to the ER or stmht liek that

hearty violet
#

tho they'd still pay a part of it

#

better than dying idk
just don't go to the hospital on an ambulance 💀

wanton delta
# jovial oriole Is this healthy?

normal blood pressure varies from people to people, it is also affected by a lot of other factors. im not a doctor, so visit your physician

vivid abyss
vivid abyss
#

we fix technologies, not your flesh

fresh basalt
#

105 is fine but really it depends on the person.

fresh basalt
#

Don't ask people on Discord for medical advice.

young shoal
#

taking blood pressure readings is kind of involved. you can't just look at it occasionally and get an accurate reading

fresh basalt
#

I usually take three readings in a row.

#

It also depends on if you're standing up or sitting down

young shoal
#

and what you've eaten

fresh basalt
#

Also raise your arm up a little and rest it

young shoal
#

and tons of other things

fresh basalt
#

I took my bp once after an espresso just for giggles once

#

It was about 10 mm/hG higher than normal

#

Your blood pressure is also affected by your circadian rhythm and what time of day it is.

idle elbow
#

OMG I CLIPPED THAT

#

A TYPO

#

EIVL

jovial oriole
#

Its not

idle elbow
#

AND ALSO GOTO CONSITERED AS A NATIONAL THREAT FR FR

strange blade
#

It's an inside joke.

vocal oyster
#

!ot

idle elbow
vocal oyster
#

wrong cmd

strange blade
#

!topic

royal lakeBOT
idle elbow
#

oh

strange blade
#

The channel names change every night at midnight UTC and are often fun meta references to jokes or conversations that happened on the server.

idle elbow
#

ohhhhhhhhhhhhhhhhhhh

#

lol

#

cool

lament cairn
vocal oyster
idle elbow
#

THIS IS NOT AN HELP CHANNEL 😂 i get it

strange blade
#

There are plenty of eivl puns in the otn lsit

strange blade
#

a-chaotic-eivl is a recent one

idle elbow
#

why tho?

idle elbow
timid latch
#

Because eivl is a funny person

idle elbow
#

wait really?

vocal oyster
#

no way

idle elbow
#

i dont really thinked so.

vocal oyster
#

I thought with my brain

strange blade
#

Like right now, he's unironically playing World of Warcraft! /s

idle elbow
timid latch
idle elbow
#

he is kind, not funny

vocal oyster
#

you can be both 💀

#

they aren't mutually exclusive traits

idle elbow
vocal oyster
#

you don't need to verify the funny

idle elbow
jovial oriole
#

i get very regular vigirous exercise and a fairly healthy diet

#

I took this as well

lament cairn
#

fuckin uhhh

#

go to a doctor

young shoal
#

why do you have one of these anyway

jovial oriole
#

Idk

lament cairn
#

parents, probably?

jovial oriole
#

i found it in a cabinet

strange blade
jovial oriole
#

so i used it for fun

vocal oyster
#

I wouldn't do that too often joe_shrug

lament cairn
tardy rain
#

Big number good

#

If your blood pressure isnt as high as can be are you even a serious person?

jovial oriole
#

And this is some moderate cardio and pushups later

#

My parents said the numbers are fine

#

76 bpm*

prime lagoon
#

goto is always one of those thing that sometimes i want, but then i don't want it

small coral
#

goto has helped me get out of some extremely complicated code structuring ≈∇≈‴

harsh tundra
# jovial oriole 76 bpm*

For bpm, a basic smart watch can monitor it easily. :3 idk my pressure because I haven't been monitoring it, but bpm is monitored almost 24/7 for me XD

vivid abyss
#

Do y'all know that shit roblox game called "sol's rng"

#

you literally only need to spent 1 hour max recreating it 💀

#

I did it in 1 minute and 16 seconds without visuals

#

On python therminal

hearty violet
uneven pine
#

Wow a game for 10 year olds isn't very good. I'm so surprised.

vale raven
#

My 17 and 18 yo brothers play it daily

#

They have a “Roblox account manager” program to help them keep track of which accounts have which gear in different games

#

I think it’s dumb as shit

meager stratus
jovial oriole
#

I think i got one of those

uneven pine
#

Yeah it's pretty cringe when grown ass adults play that game

thick osprey
#

Yes, how dare grown ass adults have checks notes fun.

gritty zinc
#

looking to have fun and choosing to have it in roblox is... suboptimal

thick osprey
#

smh

tulip falcon
#

I used to be a roblox parkour aficionado

ruby birch
#

FIT CHECK:

fresh basalt
#

Also WoW

#

Or Final Fantasy Online

#

talk about gear

#

People play that game for cosmetics.

gritty zinc
#

pokemon? come on, it's a game for children. surely nobody plays one of these and expects it to be good. :p

fresh basalt
#

Roblox is probably fine for kids who want to play tag in a video game.

#

I saw Game Grumps play Squid Game in Roblox

#

It was hilarious.

#

There was also some pizza parlor thing and Arin kept getting dunked on by kids.

#

fantastic

rain marsh
#

Yep sorry guys once you turn 18 you can't play games on Roblox anymore 😔

fresh basalt
#

mfw an 11 year old smokes everybody in Team Fortress

cloud veldt
#

I am anti kids smoking

#

😎

idle elbow
#

pip installed paggages

tulip falcon
drowsy rose
vale raven
drowsy rose
#

i severely doubt its for improved opsec

vale raven
#

Read my messages

#

Different accounts have different gear and different levels

lament cairn
#

mb that made zero fuckin sense

idle elbow
#

random module not being random somehow.

#

6 in a row

vale raven
#

So… for example, their favorite game is one where the only way to level up is to kill other players
The higher level person you kill, the more levels you get
So if you login with a high level character
EVERYONE IMMEDIATELY JUMPS IN YOUR FACE
So they have another account with a low level character that doesn’t matter as much if it dies to practice with and do all their transactional shit

drowsy rose
#

thats missing the point of the game

vale raven
#

Probably

sacred cove
#

Yo, can i claim free nitro from epic store?

thick ore
#

lol

acoustic moss
#

.xkcd 221

median domeBOT
#

RFC 1149.5 specifies 4 as the standard IEEE-vetted random number.

jovial oriole
#

Powder wasnt concentrated enough

#

i did it again in a lid but the motion detection didnt capture it

wanton delta
#

Is the Laravel documentation documentation like FastAPI's where, it's not a public API documentation but rather a tutorial?

#

Im so mad

thick ore
#

why are more people using php

wanton delta
#

Contrary to popular belief php8 is not bad

#

So back to my question

idle elbow
#

wtf

#

o wait nvm

#

i need like a hour

eager trout
#

wrote a 3d renderer in rust

#

normals calculations are kinda scuffed

#

added culling

jovial loom
#

هشخش

jaunty wraith
jovial loom
tropic torrent
#

it took 293 questions to get this anwser

lament cairn
#

there's memory compression but it's near useless and not adjustable

graceful basin
#

Windows doesn't really do ramdisks, compressed or not

fresh basalt
#

Not anymore

#

ancient history

#

I don't think I started using MS-DOS until like version 5 though

#

PC-DOS was sort of a novelty for me.

glossy niche
fresh basalt
fresh basalt
lament cairn
#

for quite some time after the api docs were added it wouldnt show up on google

fresh basalt
#

oh?

lament cairn
#

and afaik the tutorial version of the docs still shows up as the top result

fresh basalt
#

lame

#

I wonder why.

lament cairn
fresh basalt
#

maybe robots.txt forbade the Google spider

young shoal
#

preventing search engines from indexing docs is like...incredibly counterproductive

fresh basalt
#

ddg not too much better

fresh basalt
#

Depends on the end-goal.

young shoal
#

what goals are there?

lament cairn
fresh basalt
#

You'd have to ask them.

#

I don't think it did.

#

I think it's possible Dave the intern screwed something up.

#

Fkin Dave

lament cairn
#

or there simply was a delay

#

¯_(ツ)_/¯

fresh basalt
#

I like blaming Dave better

#

Screw Dave

lament cairn
#

yeah, screw dave

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied timeout to @rough sapphire until <t:1716160691:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).

The <@&831776746206265384> have been alerted for review.

gleaming forge
#

Does anyone know how to check if my network adapter is enabled for virtual machine (an application)?

rough sapphire
#

Nee.

#

NEE.

wicked haven
meager stratus
#

@lyric sonnet
can you give me some tips for organic chemistry?

#

how do I get better at it

lyric sonnet
#

uhhh idk

meager stratus
#

SInce you're a chem major

#

you must know

lyric sonnet
#

i've not taken the ochem series yet, just the non major ochem class

meager stratus
#

so did you make a heck lot of diagrams?

and revise them daily?

lyric sonnet
#

no ngl 😭

#

if you want study habits don't copy mine

meager stratus
#

💀

lyric sonnet
#

i made some flash cards for mechanisms

#

and just did the hw

meager stratus
#

hmmm

#

very interesting

lyric sonnet
#

didn't really study too much

#

got the highest grade in the class 💀

meager stratus
#

💀

lyric sonnet
#

ochem just made sense to me

meager stratus
#

that's amazing

#

chemistry still sometimes baffles me

lyric sonnet
#

lots of complicated stuff for sure

meager stratus
#

mostly how there are three or four mechanisms for one reaction

lyric sonnet
#

anyway if you're a person who can use flashcards, def make flash cards of all the mechanisms, single step reactions, etc etc

#

gotta remember the basic rules, the exceptions, and the basic form of each mechanism

meager stratus
#

ahh right

#

can't forget the exceptions

#

thank you kind lady

lyric sonnet
#

no prob

meager stratus
#

May The Force be with you.

lyric sonnet
#

xD

rough sapphire
#

diaper

rancid stratus
#

Can I ask for help here for arch Linux gnome desktop not working ?

hearty violet
vocal oyster
#

waiting 7 hours to get someone to respond that they can send their real issue to wait to respond kgsBigBrain

wicked haven
native edge
#

could someone please help me with a javascript issue of inspect console?

vocal oyster
#

if you sent your issue straight away you wouldn't need to wait half a day for someone to say yes

#

people aren't going to be confident enough to know they can for sure answer your question

vocal oyster
#

see how it happened again

#

it was the morning for europe, plenty of people to respond if there was just a question

fresh basalt
rough sapphire
#

@chrome forge yo buddy its night for me, i dont want to talk much

#

im watching to sleep and u keep bothering

#

i didnt mean to be rude

#

i had to be command you there

#

@chrome forge this is my reason, you may unblock me if youd like to cuz i dont have any beef with you, i just want the night myself

wanton delta
#

So microsoft is planning to launch Recall, thoughts about this potential spying protocol

lament cairn
#

it also can be disabled or tuned to ignore certain content/titles/programs

#

they thought of that in advance
... still wouldn't trust them

#

I think it's a neat idea but one that could become a privacy/security concern, not just because of Microsoft

#

There's also resource usage, that might be a problem

#

Unless microsoft uses WebP for storing the screenshots, or smth like that

hearty violet
soft violet
#

Linux is a valid alternative.

#

Until Microsoft does even more deals with hardware manufacturers. I wouldn't put it past MS to pay them to bake in Windows-only restrictions.

#

So you could only run certain versions of Windows.

#

Especially with the proliferation of ARM devices and phones.

#

The architecture for making it difficult to switch is already there.

#

Desktops of old, you fuck up installing a new os, you can start over. Phones you fuck up installing a new os and you lock yourself out.

wanton delta
lament cairn
#

if you fucked that too then uh skill issue
(unless now the os and recovery are very tightly connected? havent done any rom stuff in a while)

soft violet
#

Well, from what I've seen, sometimes they do shit to frustrate the process so it's like only "genuine" bootloaders/operating systems can be installed.

lament cairn
#

yeah carrier locked devices

#

actually unlocked too

#

one of my xperia phones required using their web thing and my IMEI to get the fastboot unlock key

soft violet
#

and because it's all soc, it's not like you can unplug the hard drive into something else to bootstrap

lament cairn
#

you have a point

soft violet
#

Or boot from usb on a phone

#

Carrier locked phones ought to be illegal.

#

Imagine if you bought a PC that only worked with one ISP.

#

People would be all nope, fuck that.

#

...

lament cairn
#

I think they're fine. are they cheaper than unlocked in the US?

soft violet
carmine apex
#

ehhh, if it suddenly changed. but if it started that way? they wouldn't complain

solemn tulip
fresh basalt
#

I think unlocked phones became more common maybe 10-15 years ago

#

maybe less

soft violet
bleak lintel
#

i've never had a carrier locked phone either -- UK

soft violet
#

It was a Nokia brick and a gift, so.

solemn tulip
#

sweden here

#

and I guess...20 something years?

fresh basalt
bleak lintel
#

i was virgin, now it became O2

fresh basalt
#

I guess if it wasn't locked to carrier the carrier wuldn't matter

solemn tulip
shell raptor
#

Imagine if cars only accepted one particular brand of gasoline. Identified by some proprietary additive that's hard to reverse engineer

fresh basalt
#

That's how old I am - I still think of Virgin

shell raptor
fresh basalt
#

It's totally a US thing isn't it?

#

fking Verizon

#

I'm sure there have to be carrier-locked phones in other regions.

carmine apex
#

i think mine is carrier-locked

fresh basalt
#

US companies aren't the only companies that suck.

soft violet
vale raven
carmine apex
#

got dang it - bootloader's probably locked too

soft violet
#

Coffee machines where you only could use proprietary, rfid tagged capsules that were expensive but not so expensive nobody would buy them.

carmine apex
#

blasted verizon

carmine apex
#

keurig is hella popular

fresh basalt
#

hahahahahaha keurig goes brrrrrrrr

#

HP printers too right?

carmine apex
#

all printers

fresh basalt
#

printerocracy

carmine apex
fresh basalt
#

I haven't owned a printer in over ten years.

soft violet
#

Printer cartridges built to an interoperable standard, yes.

fresh basalt
#

Brother printers are good I think.

#

because toner is expensive anyways :P

carmine apex
#

you could rather easily mod a printer cartridge to disable the locking chip, but they also make them funny sizes, so your unlocked cartridge probably wouldn't fit anywhere else

lament cairn
#

at least ink tank printers exist

fresh basalt
carmine apex
#

the locking chip is also the reason why cartridges will report they're almost empty despite being at like 30% capacity

fresh basalt
#

yep

#

I'd say burn it all down and start over without the corporations but people would figure out a way to screw things up.

soft violet
#

Maybe a bunch of people could form groups to work on projects, and they could form bigger teams with other teams, then hire a bunch of people to put into action those processes and they could expand and capture the market and, oh, no, wait...

#

But this time we'll get it right.

fresh basalt
#

Maybe the bees will do a better job.

#

not sure we're the apes for the job

soft violet
#

Empires rise and fall.

soft violet
#

We have the potential to exist beyond the life of our sun if we apply ourselves as a species to the problem. Will we? Probably not.

#

I mean, we might make a go at it when push comes to shove.

carmine apex
#

there's also a question of should we

soft violet
#

By then, we may have adapted ourselves into a tortuous existence.

#

What we are will be a relic of the deep earth.

#

What we become, unrecognisable.

#

The lines of division between species may blur.

fresh basalt
#

Now where could my pipe be?

grave cove
#

just move the solar system

fresh basalt
#

It's moving

grave cove
#

move it more

fresh basalt
#

Need more mass

grave cove
#

that's why we have your mom

grave cove
#

ikr

fresh basalt
#

@vale raven move the milky way

grave cove
#

i am somewhat of a genuis

carmine apex
soft violet
#

We might not get a say in that.

vale raven
fresh basalt
#

I bet you like minions unironically.

carmine apex
fresh basalt
grave cove
#

bro sent a minion gif

vale raven
#

Do you guys have something against minions or something??

grave cove
#

boomer gameplay

carmine apex
#

robin is correct for once

fresh basalt
#

shen is three boomers in a trenchcoat

vale raven
#

My dog is like 2ft tall

grave cove
#

you should make her stand then measure

vale raven
#

How small are your boomers??

fresh basalt
#

One day she is going to smother you in your sleep.

carmine apex
fresh basalt
#

🔒

tardy rain
carmine apex
#

average helper threats

#

average rabid dog moment

eternal depot
carmine apex
#

is that in metres or kilometres

fresh basalt
carmine apex
#

.wa s 1984 smoots to light-nanoseconds

median domeBOT
carmine apex
#

mildly large

fresh basalt
#

smoot isn't small

lament cairn
#

what the hell is a smoot

fresh basalt
#

.wa s 1 smoot to inches

median domeBOT
tardy rain
#

Lmao

fresh basalt
#

@carmine apex smooth

carmine apex
#

lance why must you hurt me so

#

.wiki smoot

median domeBOT
#
Wikipedia Search Results

Smoot
The smoot /ˈsmuːt/ is a nonstandard, humorous unit of length created as part of an MIT fraternity pledge to Lambda Chi Alpha by Oliver R. Smoot, who in

Smoot–Hawley Tariff Act
1930 (codified at 19 U.S.C. ch. 4), commonly known as the Smoot–Hawley Tariff or Hawley–Smoot Tariff, was a law that implemented protectionist trade policies

fresh basalt
#

git good scrub

eternal depot
#

.Urbandictionary smoot

carmine apex
fresh basalt
#

we don't want no scrubs

vale raven
carmine apex
fresh basalt
#

very curious

vale raven
fresh basalt
#

beats staring at the wall

carmine apex
#

so your use of "we" is not super accurate

vale raven
fresh basalt
#

What sort of name is Thuri anyways?

carmine apex
#

it was longer but it got shortened to the current quasi-nickname

eternal depot
carmine apex
#

from me username

#

thurisatic

eternal depot
#

Or Thurimander?

carmine apex
#

thurmeleon: 😭

alpine tusk
#

.wa 1 smoot in bald eagles

median domeBOT
alpine tusk
#

.wa 1 smoot in metres

median domeBOT
alpine tusk
#

.wa s 1 smoot in metres

median domeBOT
alpine tusk
#

alright

fresh basalt
#

.wa s 1 smoot to barleycorns

median domeBOT
fresh basalt
#

@alpine tusk

solemn tulip
#

🐰 🐶

muted needle
#

hello

#

so i got a problem

#

my laptops got no space, even though I barely download anything

#

so how do I increase space? or which files should I delete?

eternal depot
lament cairn
# muted needle so how do I increase space? or which files should I delete?

(Assuming Windows) I use a program called WizTree to find the biggest files on my drives https://diskanalyzer.com/
It scans the drive pretty quickly and doesn't have to be installed, there' s a portable version

#

If you're on Windows 10 or 11, you can use CompactOS to reduce the OS install size without deleting anything https://www.elevenforum.com/t/enable-or-disable-compact-os-in-windows-10-and-windows-11.3556/

#

There's also disabling hibernation, which frees up an amount equal or close to your RAM size

rose hare
#

anyways, if anyone wants to continue

#

objective:

  • generate expressions that approximate the value of sqrt(x), maybe using only a small set of operations like + - * /
  • the error of the approx. must be below 0.01 for x in [1, 2, ..., 100000]
#

OP's code

test = [1, 25, 100, 1000, 10000, 100000]

def check(formula):
    global test
    error = 0
    for x in test:
        real = math.sqrt(x)
        try:
            aproxim = eval(formula)
            error += abs(real - aproxim)
    return error

def generate():
    constants = ['x', 'x**-1', 'x**-2', 'x**2', 'x**3', '1', '2', '5', '10', '0.1', '0.01', '0.001', '100', '1000', '-1', '-2']
    operators = ['-', '*', '/', '+']
    best_formula = ''
    min_error = float('inf')

    for epoch in range(40000):
        formula = 'x'
        for _ in range(7):
            op = random.choice(operators)
            const = random.choice(constants)
            formula = f"{formula} {op} {const}"
            error = check(formula)
        if error < min_error:
            min_error = error
            best_formula = formula
    return best_formula

real_error = 43234234
reals_formula = ''
for chunk in range(1000):
    chunk_formula = generate()
    constants = ['x', 'x**-1', 'x**-2', 'x**2', 'x**3', '1', '2', '5', '10', '0.1', '0.01', '0.001', '100', '1000', '-1', '-2']
    operators = ['-', '*', '/', '+']
    best_formula = ''
    min_error = float('inf')
    for epoch in range(40000):
        formula_org = chunk_formula
        formula = chunk_formula
        for _ in range(7):
            op = random.choice(operators)
            const = random.choice(constants)
            formula = f"{formula} {op} {const}"
            error = check(formula)
        if error < min_error:
            min_error = error
            real_formula = formula
    if min_error < real_error:
       real_error = min_error
       reals_formula = real_formula
    with open(f"form.txt", "a") as f:
        now = datetime.now()
        formatted_time = now.strftime("%m#%d %H:%M:%S")
        f.write(f"{formatted_time} | Чанк: {chunk} # Best: {reals_formula} # Error: {real_error}\n")
    print(f'№{chunk} завершен. Лучшая формула: {real_error}')
solemn tulip
#

something something Taylor series

lament cairn
#

nah they want a formula

#

other than taylor

woeful phoenix
rose hare
# wooden shell I'd be happy for any help

my suggestion was change formula from a str that needs to be evaled to a list of functions that you can call

approx = ...
for fn in formula:
    approx += fn(x)
error = abs(approx - true_value)
woeful phoenix
rose hare
wooden shell
dapper shell
woeful phoenix
#

would Cython help here? pithink

solemn tulip
wooden shell
#

I considered it a no-brainer, since I've argued before that I need 4000 times acceleration.

solemn tulip
#

granted, Taylor in particular is a terrible idea in this case

lament cairn
solemn tulip
rose hare
wooden shell
rose hare
#

the reason is related to a potentially new field of AI/ML
or something idk, OP said it'd take too long to explain

harsh tundra
# wooden shell I'd be happy for any help

Have you looked at https://en.m.wikipedia.org/wiki/Methods_of_computing_square_roots
Quickly looking, digit-by-digit seems to me manual way i was taught (at least the "examples" section there suggests it's the same as manual with how it's written)
And since you do it digit-by-digit you don't have iterative approach to getting it to certain error, should match your approach?

Now i see the Cyrillic, so maybe it's called similar in your lang as it's in Polish - in Polish manually calculating square like that is called "pierwiastkowanie pisemne" (and in general manually doing basic operations is "działania pisemne"). I have no idea how this manual method of calculation is called in English tho, lol

Methods of computing square roots are algorithms for approximating the non-negative square root

        S
      
    
  

{\displaystyle {\sqrt {S}}}

of a positive real number

    S
  

{\displaystyle S}

.
Since all square roots of natural numbers,...

solemn tulip
#

numerical methods are more useful for this problem anyway

#

Newton's method and whatnot

crystal spruce
#

considering you just want 2dp and you have a given range, binary search would work

wooden shell
solemn tulip
#

approximating roots with simple functions is hard, because it's just ill behaved

harsh tundra
dapper shell
solemn tulip
#

it doesn't exist in terms of the simple operations that's being considered

rose hare
dapper shell
wooden shell
# harsh tundra So you think you'll discover it how?

I believe there's a formula for everything. Have you considered that the discovery of a formula is called "discovery" and not "creation"? The fact is that all formulas in the abstract world of math have existed since the creation of the universe. And I believe there is a formula for the square root.

dapper shell
wooden shell
harsh tundra
#

Oh my...

wooden shell
rose hare
#

whether it is actually faster you'll have to run and test

harsh tundra
wooden shell
#

If I still can't find the right formula within two days, then I will have to expand the field of numbers or operations. As Karl Gauss once did, a complex field is open

dapper shell
solemn tulip
lament cairn
#

like, as mentioned n times, Taylor series

young shoal
harsh tundra
solemn tulip
#

because radius of convergence from ill behavior at 0

wooden shell
harsh tundra
# young shoal there are exact formulas though

Cannot be calculated fully tho, didn't they want the finite one? From their "non-iterative" approach I thought they wanted the error<0.01 to be done without iteration, so I assumed they wanted finite

young shoal
#

no idea what they want still ¯_(ツ)_/¯

dapper shell
lament cairn
wooden shell
solemn tulip
royal lakeBOT
wooden shell
#

Okay, I'll come back to you in a week, with the square root formula, I'll have to do everything myself again...

lament cairn
#

I'd like input from others on this:
why not implement all the optimizations suggested (like #ot1-perplexing-regexing message, pypy, etc..) and distribute the computation accross multiple processes/machines? you seem confident that what you're doing is correct and all you need is optimization

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

wooden shell
tardy rain
#

Good luck!

wraith ermine
lament cairn
#

the man who revolutionized AI in a discord chat

#

ok

solemn tulip
#

stuff like genetic algos for generating symbolical expressions is nothing new

tardy rain
#

Someone put a reminder on that

solemn tulip
#

the technique just kinda sucks

lament cairn
royal lakeBOT
#
Noooooo!!

Sorry, you can only do that in #bot-commands!

lament cairn
#

fuck

solemn tulip
#

fancy formulas will also end up more expensive than a bunch of iterations of Newton's method

wooden shell
harsh tundra
solemn tulip
wooden shell
solemn tulip
#

even just saying "the formula for a square root" also underlines you're not actually understanding the math involved at all

harsh tundra
#

I already mentioned above that OP constantly switches from talking about exact (the phrasing you quoted) vs approximation...

rose hare
#

well you can come back 1 week/month later to see if they got anything
I'm leaning towards not much will happen

wraith ermine
#

If they change AI by 34000% in a month I'll eat my socks

vale raven
royal lakeBOT
#
I got you.

Your reminder will arrive on <t:1719149335:F>!

wraith ermine
#

to clarify, it needs to make AI 34000% better, not 34000% worse

vale raven
#

too late

tardy rain
#

Where does this 34000 figure even come from

solemn tulip
wraith ermine
wanton delta
#

guys when does web dev become soul sucking

#

all these just for a decent looking frontend

hearty violet
tardy rain
#

It gets so much worse than this

#

Not the technical side of things

wanton delta
#

all that for this
these are placeholder images so never mind it

wanton delta
tardy rain
#

The "remake it, i dont like this" side of things

wanton delta
tardy rain
#

Yea

wanton delta
#

and UI/UX

tardy rain
#

Its difficult to say

#

Youre given specs and such, you make it, you demo it

#

They change their goddamn mind

wanton delta
tardy rain
#

Rinse repeat

wanton delta
#

hmm

#

i guess that's why many just start with a template

tardy rain
#

Its just one part of the "webdev to cabin innawoods" pipeline

#

Welcome

wanton delta
#

im following a course, we've had 2 chance to do showcases, i did them while my site was still looking like

wanton delta
harsh tundra
hybrid root
fierce adder
paper sequoia
#

Their db can't handle it 🥴

lament cairn
#

I think FOSS projects should start copying their closed-source "competitors" appearance more often
ie GIMP should look more like Photoshop

young shoal
#

but why

lament cairn
#

as in, they look like hot garbage

young shoal
#

average foss

fresh basalt
#

average conversation about foss

soft violet
# fierce adder

Signs your service is storing your password and in plaintext...

#

(Which is a nono.)

vale raven
#

oh no

warped sentinel
eternal depot
wanton delta
glossy niche
#

how do i buy NVDA stock but at the old price

carmine apex
#

time machine

soft violet
glossy niche
#

free money but I missed out on it :(((((

willow narwhal
#

by that logic there's free money everywhere on the stock market. Just buy the right ones, easy..

glossy niche
#

I sure love generating shareholder value

rough sapphire
harsh tundra
#

Huh. Weird. My laptop can't connect to WiFi... Tested on 2 for which it has the pass.
I thought the network card broke after years...
... But it connects to my phone hotspot no problem? So idk what's happening

lament cairn
#

Is it DNS?

wanton delta
#

can't be right

harsh tundra
#

Nah, then it would connect but not have Internet

hearty violet
harsh tundra
#

I deleted and tried re-adding the main network. Doesn't work.
Same router, 5GHz network - works

The 2 networks it didn't work for are not the same device, btw, it was main router's 2.4GHz and my secondary connection

hearty violet
harsh tundra
#

Phone normally connects to both those networks that didn't work on laptop. Magic

rough sapphire
#

@harsh tundra r u connected to the 5Ghz now?

harsh tundra
#

on laptop, yes
on phone I'm on 2.4GHz on the same router

rough sapphire
harsh tundra
#

lower speeds but higher range, so I normally use it when doing stuff around the house instead of relying on my mobile data plan

rough sapphire
#

geez lol

#

ur pc must be close to the router

harsh tundra
#

the routers were changed over time, so laptop had 2.4GHz as default (same SSID as old router)

harsh tundra
rough sapphire
#

its okay tho

#

as long as ur connected to the internet

harsh tundra
#

That laptop hasn't been moved from its position at this desk for months. Router is also at the same place. Yet that WiFi stopped working. That's why i first thought my laptop's network card died at first

rough sapphire
#

unlikely lol

harsh tundra
#

The second network I tested was also 2.4GHz and also in the same spot all the time

#

Laptop also sees both wifis perfectly, the signal is normal. It just cannot connect (connecting fails)

hexed sierra
#

could try just moving it around a little

#

(i'm guessing you did though)

fresh basalt
#

It's funny - for some reason I specifically remember the sequence in the AppleCare training about checking for that specific sort of scenario.

#

Just because their training material is so... Apple.

harsh tundra
# hexed sierra (i'm guessing you did though)

If the bars were different, then I'd move stuff around. But the point is the bars were showing up as full/almost full and then failing the connection - and on 2 networks (2 different routers, placed in similar location), so I assumed something must've been up with the network card instead.

Testing my phone hotspot WiFi was something I thought about just after writing about "rip my network card"...
And only then I tested the 5GHz which should work worse, not better, if it was a distance issue!
... But I guess how different frequencies bump over the obstacles might play a difference?

hexed sierra
#

right, the last point. it's not just about the distance

#

you get different reflections and shadows at different freqs

harsh tundra
#

I didn't check the other router's 5GHz, I wonder if it would work as well 🤔 I'm currently outside but the wind suggests a storm might be coming this way

glossy niche
#

something i like about next js, or SSR in general, is that when you have dependent API calls, you can just run them all in the backend and then send the result to the user when the computation is done.

having to manage the state of dependent requests is so ass yert

fierce adder
olive furnace
#

Cause hashed passwords will always have the same length (or similar, maybe there's some encryption methods that add to the hash idk), regardless of the plaintext length

sinful shard
#

@stable fulcrum

stable fulcrum
#

still looks hairy

#

more than hairy

#

it looks like my printer's black n white print

#

it also prints white lines like that

sinful shard
#

ok my discord has hypertrichosis

#

leave it alone okkk

stable fulcrum
vale raven
#

.wa s define hypertrichosis

median domeBOT
vale raven
#

RIP

stable fulcrum
#

I got my razer ready

#

I am coming

stable fulcrum
sinful shard
# vale raven .wa s define hypertrichosis

Sir lancebot app

WOLPHRAM ALPHA
|Hypertrichosis is defined as excessive hair growth anywhere on |the body in either males or females. It is important to |distinguish hypertrichosis from hirsutism, which is a term |reserved for females who grow an excessive amount of terminal |hairs in androgen-dependent sites.```
vale raven
#

tanks

sinful shard
soft violet
# fierce adder Why is that a sign? What, I don’t get it?

Password data should be stored hashed, so it shouldn't matter how large the password is, it boils down to a known number of characters.

Why have some arbitrary limit of password length unless you had to squeeze it into a space of a known size?

bleak lintel
#

max length for the hash algo

soft violet
#

Max length for hash algorithms exist? ...okay, til.

bleak lintel
#

ya

#

bcrypt is 72 bytes

soft violet
#

Maybe I'm muddling the concepts of checksumming and hashing.

bleak lintel
#

it is the same, though when hashing you generally also have the ideas of salting and peppering

#
iex(13)> same_salt = Bcrypt.Base.gen_salt
"$2b$12$Fd2Smwsdyn9tmj30O.c3Fe"
iex(14)> hash_1 = Bcrypt.Base.hash_password String.duplicate("a", 100), same_salt
"$2b$12$Fd2Smwsdyn9tmj30O.c3FemXFMowsraRNFN64nuEk6tr/J9Z8CYoW"
iex(15)> hash_2 = Bcrypt.Base.hash_password String.duplicate("a", 1000), same_salt
"$2b$12$Fd2Smwsdyn9tmj30O.c3FemXFMowsraRNFN64nuEk6tr/J9Z8CYoW"
iex(16)> hash_1 == hash_2
true
#

elixir example but hopefully still somewhat easy to follow

fresh basalt
#

gesundheit

#

You sneezed so hard you got stuff all over my display.

bleak lintel
#

bcrypt truncating to 72 bytes has always irked me because in most implementations that's done transparently

#
iex(17)> Bcrypt.Base.hash_password String.duplicate("a", 10), same_salt
"$2b$12$Fd2Smwsdyn9tmj30O.c3FeiILKBloeFb4S.GHDQutXR/Xieaky0Ie"
iex(18)> Bcrypt.Base.hash_password String.duplicate("a", 50), same_salt
"$2b$12$Fd2Smwsdyn9tmj30O.c3FeZkn6dhjLzzwYvJY74B6vBdj8fyRLiE2"
iex(19)> Bcrypt.Base.hash_password String.duplicate("a", 100), same_salt
"$2b$12$Fd2Smwsdyn9tmj30O.c3FemXFMowsraRNFN64nuEk6tr/J9Z8CYoW"
iex(20)> Bcrypt.Base.hash_password String.duplicate("a", 1000), same_salt
"$2b$12$Fd2Smwsdyn9tmj30O.c3FemXFMowsraRNFN64nuEk6tr/J9Z8CYoW"
bleak lintel
glossy niche
graceful basin
#

@rough sapphire yes, I am aware of Overlord.

glossy niche
#

fellas is nixos good for a linux desktop?

#

i have an old laptop id like to revive

#

wg i know you hate linux desktops yert

fresh basalt
#

What's the specifications?

glossy niche
uneven pine
#

No Linux is "good" got desktop but personally I'd recommend openSUSE Tumbleweed

fresh basalt
#

unhelpful

uneven pine
#

Rolling release but actually tested so it isn't broken every update like arch

fresh basalt
#

There are smaller Linux distros that are good for smaller machines.

uneven pine
#

And good software availability

glossy niche
#

iy 6500u + 8gb DDR4 + 256gb SATA SSD

fresh basalt
#

oh that's not fkin bad

uneven pine
#

Oh yeah Tumbleweed will run GREAT on that

#

It ran great on my i3-4030u machine

fresh basalt
#

NixOS would be fine too, or Ubuntu, or any number of distributions.

#

Just pick one you like the look of.

uneven pine
#

Hell my NUC is a Celeron j1300 and 4gb of RAM