#ot2-the-original-pubsta

652 messages · Page 61 of 1

daring jay
#

I'm fine with some progress bars that aren't the main attention and slid up at the top that can be ignored, but that main thing? nononono

cyan vine
#

Christian Heilmann re-purposes a Mitch Hedberg observation to relate to progressive enhancement. Basically, when an elevator fails, it's useless. When an escalator fails, it becomes stairs. We should be building escalators, not elevators.
nice quote

rapid zinc
#

Userside browser templating

#

jesus christ

steep scroll
#

I mostly work on webapps so if someone has JS disabled they can't even use the main attraction

rapid zinc
#
        $(textentries).find('press-multilevel-menu').each(function () {
            $(this).find('navs').find('nav').each(function () {

                if ($(this).attr('visible') == 'true') {

                    menu_part_2 += '<li class="sub-menu-li"><a href="' + $(this).attr('url') + '" target="_blank" style="font-size:' + $(this).attr('size') + 'px;">' + $(this).text() + '</a> </li>';
                }
            });
        }); //End Loop
        menu_part_3 = '</ul></li>';
        menu_part_4 = menu_part_1 + menu_part_2 + menu_part_3;

wide totem
#

discord has a progress bar ;-;

rapid zinc
#

function xmlDrivenText() {

#

Are they

#

writing their data

#

in XML

daring jay
rapid zinc
#

and then

#

TRANSLATING IT

#

TO HTML

steep scroll
wide totem
#

oh god even worse its defaults to a youtube video

#

like, you couldn't load while the person watches?!

wide totem
#

but updating the local client at start every single time isn't

steep scroll
wide totem
#

i have a list of 50+ problems with discord written by another member here

daring jay
#

Discord is amazing

#

Like, the infra they must have

rapid zinc
steep scroll
rapid zinc
steep scroll
#

Nice Qxir

languid osprey
#

Ruust?

steep scroll
languid osprey
#

I like rust

rapid zinc
#

They do

steep scroll
#

Rust is fun

daring jay
steep scroll
#

Nice

languid osprey
#

imo the universe should be rewritten in rust

rapid zinc
#

It's used in their video streaming encoder and in their backend in places

steep scroll
#

Didn't know they used Go, good to see them leaving it

languid osprey
#

rust ftw

daring jay
#

Woah, Firefox dev edition is niiiice

wide totem
daring jay
#

No

#

It's with fancy stuff for frontend

steep scroll
#

Ouh gotta check that out

rapid zinc
#

oh really?

#

When did that become a thing?

#

how did I not hear about this?

daring jay
wide totem
limpid fern
rapid zinc
#

ASDF

daring jay
#

Ooh, it has inactive CSS stuff, CSS grid stuff, and other cool stuff

steep scroll
#

🤤

wide totem
steep scroll
#

Cool blue logo too just as a bonus

wide totem
#

even tho i don't webdev

wide totem
#

nightly is blue too

daring jay
#

Nightly is more green than dev

steep scroll
wide totem
#

oh, i guess i see a difference lol

#

which is actually good.

wide totem
#

yeah that's good

#

i use as much alpha as i can

#

then complain about it when it breaks

#

and never make bug reports

#

i am a perfect beta tester

daring jay
#

Woah, Svelte is nice

daring jay
#

Dev is slightly behind Nightly

wide totem
#

figured

steep scroll
#

Svelte is very nice, but I still feel a little conflicted when using it

daring jay
#

Why?

wide totem
#

what is svelte

steep scroll
#

I love React

daring jay
#

A JS framework that renders to the Real DOM instead of a VDOM

steep scroll
#

VDOM is faster to check before real DOM

daring jay
steep scroll
#

Yeah, but it's not that much of a big deal

wide totem
# daring jay Why?

dev is for developers
You don't want the bleeding edge, since you want to be able to actually test your projects. You want a browser that doesn't have multiple updates a day, since at some point, when is it a browser bug vs your own project bug

nightly can be bleeding edge.

steep scroll
#

Do need to use it more

daring jay
#

I just like Svelte's syntax

#

I use a mix of Next and Svelte

wide totem
clever salmonBOT
#

:incoming_envelope: :ok_hand: applied mute to @copper girder until 2021-06-05 01:15 (9 minutes and 59 seconds) (reason: chars rule: sent 4000 characters in 5s).

steep scroll
#

What an idiot doing it in a channel with active staff

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied mute to @cunning hull until 2021-06-05 01:15 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

wide totem
#

<@&831776746206265384> <@&267628507062992896> another raid?

cyan vine
#

@grim seal possible raid?

native pebble
#

the confederate flag

wide totem
#

yep

upbeat sandal
#

god damn it

wide totem
#

wait

native pebble
#

brilliant isin't it

daring jay
#

Well, have a good day y'all

upbeat sandal
#

!ban 565619583214419978 racism

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied ban to @native pebble permanently.

cyan vine
#

so edgy

magic atlas
#

!silence

clever salmonBOT
#

✅ silenced current channel for 10 minute(s).

upbeat sandal
#

!ban 431579706165428236 racism

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied ban to @cunning hull permanently.

upbeat sandal
#

I guess that was all...?

#

!unsilence

clever salmonBOT
#

✅ unsilenced current channel.

wide totem
#

one more

#

wait no that was smth else

wheat aurora
#

Yeah that was all I guess

wide totem
wheat aurora
#

weird

upbeat sandal
limber pollen
#

That was pathetic

jovial island
#

you know, after thinking about it for a while I honestly don't wanna score a job related to any kind of programming at all

steep scroll
#

Yeah, they barely put any effort into it

trail nymph
#

coulda done a funnier raid

wide totem
#

wow, the fact that we're literally talking about how bad the raid was 😂

upbeat sandal
rapid zinc
#

namespaced css makes me cry

wide totem
#

and one other guy who seemed to be testing the waters or something

limpid fern
#

We use https://beemo.gg/ (free tier) that has lists of users known to raid and spam and can be pre-emptively banned, lists are updated constantly

wide totem
#

wonder if there's an api

limpid fern
#

Doubt it as it's a lot of effort for them to have got the lists and to keep them updated

wide totem
#

true

steep scroll
daring jay
#

As nice as that is, that's hacky

#

I personally prefer to use JS for that

steep scroll
#

It was for a CodePen challenge that required using the :checked selector

#

And I had experience with programming with CSS from tic-tac-no-js

#

Very hacky and less neat than tic-tac-no-js

rapid zinc
#

neaet

#

and yeah

steep scroll
daring jay
#

Looks fun

steep scroll
#

I want to do minesweeper next

rapid zinc
#

CSS does have some severe weaknesses that make me sad

#

The unidirectional cascade is one, although that one makes sense for performance reasons

#

a lack of an ability to specify truly custom curves is another

#

no sass-style nesting is the third

steep scroll
rapid zinc
#

A css element cannot affect it's parent via selector

steep scroll
rapid zinc
#

for, eg, animations

#

You're limited to the default easing and bezier

echo fern
#

how can one change file associations with a command in Windows? I did assoc .mp4=mpv, and it changed, except that it doesn't actually seem to affect what .mp4 files get opened with... pithink

steep scroll
rapid zinc
#

Ikr

#

It'd also turn a whole bunch of js things on their head because you could have elements affect each other in the page

#

Ok if I may just

#

hero svelte-1u1foo2 makes me unhappy

#

1u1foo2 means you are simply not doing css

#

You're just doing SS

steep scroll
#

There are slightly hacky ways of siblings being aware of others in some situations for instance the number of siblings but it does rely on selecting the first child https://codepen.io/z-/pen/WNbMjEW

rapid zinc
#

yeah

steep scroll
# wide totem wut

Basically if there are 3 elements :first-child will also be :nth-last-child(3) and can select ~ * siblings

rapid zinc
#

Thanks to + and ~ an element can be styled based on what's after it, but not based on what's before it

wide totem
#

oh i thought you were talking about human siblings

steep scroll
#

-, ^, and < selectors when

rapid zinc
#

ikr..

#

[] is pretty cool

#

I (ab)use it on my blog

#

<a article-plate>, for example

steep scroll
#

Ha nice no classes

rapid zinc
#

I honestly would have just gone with <article-plate> for the tag but browser compat looked ugly

#

13kb single requests for pages

#

This includes everything, styles, content, and font

steep scroll
rapid zinc
#

lol

#

interesting

#

I appreciate this too

steep scroll
#

I'm still not that good at 3D CSS, it's so easy to mess it up and for it to be flat, a bunch of extra rules I haven't bothered with learning fully

rapid zinc
#

Yeah

languid osprey
rapid zinc
steep scroll
#

tbf I have potential to decrease the filesize

rapid zinc
#

That was a cached waterfall >.>

#

ooof yeah

#

lol

languid osprey
#

web dev is frustrating

rapid zinc
#

If there's a TLS connection it's literally just ping latency

#

server responds sub-ms

daring jay
languid osprey
#

yes

rapid zinc
#

But otherwise you gotta do the security dance

steep scroll
#

CSS is the language that took me the longest to learn, it just takes doing it a lot - just don't bother trying to make a website your first time because different bits of websites need a different amount of iterations to get good at it

languid osprey
#

I like tailwindcss though, fuck css im never writing that again

rapid zinc
#

lol

wide totem
#

aha i just watched a guy ping 30k people by accident with a status message

rapid zinc
#

lmfao

steep scroll
#

Tailwind sucks, it's bootstrap with extra steps

rapid zinc
#

tailwind is OK

languid osprey
#

i like tailwind :P

steep scroll
#

Tailwind: you may as well just use CSS

wide totem
rapid zinc
daring jay
rapid zinc
#

I mean I know CSS

#

Last week I was struggling with pixel rounding errors sobbinglaugh

daring jay
#

Like you can know the concepts, but you can't know all the new things they add and some other browser stuff

wide totem
#

:/

rapid zinc
cyan vine
#

w-32 h-32 rounded-full mx-auto this is not good design lol

steep scroll
daring jay
#

Agreed

rapid zinc
#

also by enforcing css in html it keeps things from getting too out of hand when people aren't so great at css touch things. Less chance of collateral damage

steep scroll
daring jay
#

The only thing I use Tailwind for in my own projects is Dark mode with the JIT

#

Although that's only when I'm using SSR/SSG

cyan vine
#

imagine learning css so you can learn a css framework to alias the css as classes

#

i honestly don't get it

rapid zinc
#

modern webdev.jpg

#

the jpg is ironic

cyan vine
#

how many elements are going to be w-32 h-32? just use an independent class lol

rapid zinc
#

jpg is for photos and if I see you use it for flat colors I'm gonna scream

steep scroll
#

jpeg > jpg

languid osprey
#

hm

daring jay
#

Am I the only one who hates the design feel of websites like this? https://pnpm.io/

rapid zinc
#

Also just gonna drop this

daring jay
#

Idk, I just dislike it

rapid zinc
#

webp is bad

#

don't use it

languid osprey
#

well

#

I just hate writing css

#

and tailwind makes me feel cool

steep scroll
#

Ugh, ugh

rapid zinc
#

Top things wrong: left aligned stuff taht should be centered

#

too busy

#

way too much contrast on too much stuff

daring jay
#

I love the design

languid osprey
#

hmn

#

I dont like it

cyan vine
daring jay
languid osprey
#

hm

steep scroll
#

I don't think they tested dark mode

languid osprey
#

haha

steep scroll
#

I wish sites would just take OS theme in CSS. I don't want to have to opt-in to dark mode, they already have the information to get my preferred theme

rapid zinc
#

Stripe has issues with one of their design decisions

languid osprey
#

I just dont like how it looks

rapid zinc
#

IE: every component has it's own stylesheet downloaded independently

#

WHY

#

why is this it's own file (??)

cyan vine
#

maybe they forgot to bundle

languid osprey
#

i want to write my own css preprocessor

rapid zinc
#

No it's intentional

daring jay
#

I'm not referring to the actual CSS files, I'm just referring to the design as a whole

languid osprey
#

oooh rust but css

daring jay
steep scroll
languid osprey
#

rust

rapid zinc
#

has 1500 nodes

#

1500

daring jay
#

That part is just ugly

languid osprey
#

while im at it i might just make an HTML preprocessor that looks like rust

rapid zinc
#

Every single component has it's own embedded <style> tag

#

and I thought I was bad for having four of them

cyan vine
daring jay
#

Pug is syntactically nice

wide totem
#

WHY DOES DISCORD DEFAULT TO WEBP WTF

#

like

rapid zinc
#

the waste cry_cat

steep scroll
#

Love Pug, but has anyone used the .js part of Pug.js more than a few times? I haven't come across anyone who has

wide totem
#

on windows i have taken a webp and renamed to a png and it works

rapid zinc
cyan vine
rapid zinc
#

they can cache a url indefinitely like that

#

and force a refresh by requesting a different url

#

it's a nasty trick but understandable

daring jay
#

I just do whatever webpack (or esbuild for sveltekit) gives me

wide totem
#

because discord doesn't accept webp files to upload smh

#

but if you copy the files, they are all webp files

#

fuck webp

languid osprey
#
fn main() {
  Div::new();
}
rapid zinc
#

I mean you can request them as png files

languid osprey
#

pretty

rapid zinc
#

that's what I do

wide totem
#

you just change it from a webp to png

#

but like

#

i've downloaded webp files and rename it to a png and it works file

rapid zinc
#

look discord does their profile pictures using foreignObject in an SVG

daring jay
rapid zinc
#

Ah yes. Smooth edges, sharp curves, served as an image compression format that causes chromatic aberration

wide totem
languid osprey
#

It needs to be pure

rapid zinc
#

My eyes appreciate this

cyan vine
# rapid zinc

this looks like they realised a lot of requests for javascript isn't a good idea but thought fuck it when it came to the css

wide totem
#

google cloud storage

steep scroll
#

React server-side renderer in Rust when? /s

median blade
steep scroll
#

I want to have HTML inside JS inside Rust to avoid writing extra code

languid osprey
#

we need this

wide totem
languid osprey
#

wait

#

JS preprocessor but Rust

daring jay
languid osprey
#

then we rewrite react in rust

wide totem
daring jay
#

Ew

languid osprey
#

ooh

steep scroll
languid osprey
#

no only rust

daring jay
limpid fern
median blade
limpid fern
#

Just use Elm Yew

languid osprey
languid osprey
daring jay
languid osprey
#

Make HTML, CSS, and JS all rust

#

the web will be rust

languid osprey
#

I gtg for now though, cya

daring jay
#

Cya

limpid fern
daring jay
languid osprey
#

what the fuck

#

why not

wide totem
#

and vice versa

languid osprey
#

thats a great idea

wide totem
#

interested in where this will go 🍿

languid osprey
#

but I really should go, bye

daring jay
limpid fern
daring jay
#

@languid osprey Just make Django for Rust, and we all can be happy

wide totem
#

lolno

#

starlette > django

steep scroll
cyan vine
daring jay
wide totem
#

yes

#

that's why starlette, jinja2

#

!pypi jinja2

clever salmonBOT
steep scroll
daring jay
#

I know JSX

#

That's not what I'm referring to

#

One sec, lemme find it

languid osprey
#

Wait

#

I'm back

#

WAIT

#

PYTHON BUT RUST

#

How the fuck have I not thought of this

limpid fern
#

Just use Rust

languid osprey
#

Hm

#

Oh yeah

daring jay
languid osprey
#

Wait

#

What about ml

#

Rust but python

#

Wait

#

No

#

Python but rust

#

Fuck

#

Wait I can compile python to rust

limpid fern
languid osprey
#

Ooh

#

OK

cedar leaf
languid osprey
#

So rust but python

wide totem
limpid fern
rapid zinc
#

I am thankful, at least, that yew has moved away from manually animated text color fades in their buttons.

wide totem
#

I haven't started learning rust yet

wide totem
languid osprey
#

Learn it

wide totem
#

rust god

languid osprey
#

Lmao

cedar leaf
languid osprey
#

No

#

Learn it

rapid zinc
#

rust is pretty awesome

languid osprey
#

Rust can be used for non system programming things

limpid fern
wide totem
#

Like bruh I'm just getting started with github and shit

wide totem
limpid fern
wide totem
#

Written in rust?

limpid fern
#

Yeah

#

Unsafe Rust ferrisUnsafe (for extra speed, but it is guaranteed to be stable)

median blade
#

What is noria

languid osprey
#

Rust

wide totem
languid osprey
cedar leaf
languid osprey
hoary basalt
#

imagine getting rusty and rust

languid osprey
#

Rust is pretty efficient

#

It has out of the box wasm support

#

It's fast, safe, and enjoyable to program in

median blade
#

Ah it has a MySQL adapter

languid osprey
#

Yep

#

Ooh

#

Rewrite python in rust

limpid fern
# median blade What is noria

This is a guest lecture I gave at Two Sigma in November 2018 where I discussed the experience of using Rust for building larger, high-performance systems. In it, I cover what makes Rust an attractive option for such projects; Noria, the high-performance research database prototype I've built using Rust; an interesting concurrent data-structure ...

▶ Play video
languid osprey
#

I tried it but got bored

limpid fern
rapid zinc
#

Rust does suffer from the inheritance boilerplate issue sigh

wide totem
#

Like uh, boilerplate too 😓

rapid zinc
#

If I have 15 types all that have a "base" type, I need to write ugly boilerplate

wide totem
#

Oh, literally doesn't inherit init methods or whatever

limpid fern
#

Yeah, would like for traits to have inherited generics to avoid that. But inheritance is not something they ever want

rapid zinc
#

struct Base {
  name: &str,
  id: UUID4,
}

struct Thing1 {
  base: Base,
  more: &str,
  another: Type,
}

#

And then reimplementing methods

wide totem
#

So rust can be very wet code

rapid zinc
#

basically since base is always at the start ( I mean it's not enforced normally so don't try and unsafe it without repr(C)) you could basically treat them as single-line inheritance subclassing

wide totem
#

dripping wet code.

rapid zinc
#

which would be really nice for stuff like items and game materials

#

I really just want the syntactic sugar to do this nicely honestly

#

There's an open issue

cedar leaf
languid osprey
#

Rust compile times are a pain yeah

cedar leaf
#

no, not compile times

#

just developing something

limpid fern
languid osprey
#

For rust?

wide totem
#

Rust is compiled and not interpreted?

languid osprey
#

Yep

cedar leaf
#

Yes

languid osprey
#

Very strict compiler

limpid fern
#

Systems scripting language

rapid zinc
#

Basically this

wide totem
#

6 years open

languid osprey
#

My compile times have started taking around thirty seconds to a minute

wide totem
#

Before 1.0 even

rapid zinc
#

yeah

languid osprey
#

Which sucks for testing

rapid zinc
#

And they've just recently gotten async/await in so hoping hard that it'll actually get traction now

#

after constant generics

languid osprey
#

But theres an alternative experimental backend called cranelift that can be used for faster debug builds

#

And rust is fun to program in

#

I fully enjoy it

limpid fern
#

It's the top most fun language after functional languages

#

By quite a way

languid osprey
#

What's your favorite functional lang?

#

I want to learn one

wide totem
#

Inb4 f#

limpid fern
#

I think F#, but Haskell is very close. If you have any C#, or other C experience you can pick up F# a lot easier

cyan vine
wide totem
#

Called it

languid osprey
#

Rust > Go

wide totem
limpid fern
languid osprey
#

Is Haskell worth learning

limpid fern
#

Yes, for fun

cyan vine
#

i await the Haskell > Rust comments in a week

languid osprey
#

OK no

#

Never

#

I am shocked you would suggest that

limpid fern
#

Haskell > Rust in terms of fun programming, Rust >> Haskell in terms of usefulness

wide totem
#

Python > everything else in terms of what I know lmao

cyan vine
#

if your future boss asks you to use SQL are you going to argue with them about using Rust? 🤔

cyan vine
#

you can do everything in Rust... even SQL

limpid fern
wide totem
#

Lol

#

Wait

#

Noria is a database itself or an SQL client?

limpid fern
# wide totem Wait

(Noria uses the SQL language for queries. SQL is a language that databases implement so Maria uses its own flavour of SQL and Cassandra uses its own SQL, and mySQL its own. SQL is the language used to query databases, and there can be differences between them)

wide totem
#

(oh)

#

So it's the latter

#

It's not a db itself smh

#

I was thinking it would be a db written in rust

#

But no, it just is a client for SQL, unless I'm mistaken?

cyan vine
#

well, yes, why use mysql when you can use rust

languid osprey
#

Ooh write DB in rust

#

Wait sql but rust

#

Make rust the DB

#

DB with rust query syntax

limpid fern
wide totem
#

And confuse the fuck and everything else out of me

languid osprey
#

Hm

wide totem
#

Just when i thought I understood

languid osprey
#

How the fuck will I maintain something with thousands of other projects

#

Hm

cyan vine
#

that's not important, what's important is what logo you will use

wide totem
#

Maria is a database?
Cassandra is a database
Noria is still what exactly?

cyan vine
#

i vote a lobster

languid osprey
#

Yes

wide totem
#

Regardless I think I'm ditching my bot, gonna rewrite it in rust, who wants to help /s
Jk, unless

limpid fern
# wide totem Just when i thought I understood

SQL isn't the database itself, but SQL dictates the structure of the database as a relational database, SQL is simply the language used to interact with it. SQL for one database may not always be valid for another but the keywords are the same.

wide totem
cyan vine
#

but why use an easy purpose fit language like SQL when Rust is Rust?

languid osprey
#

Yeah fuck sql, only rust

limpid fern
wide totem
#

Rewrite English in rust

languid osprey
#

Rewrite the universe in rust

wide totem
languid osprey
#

OK

#

I'll do it

echo fern
cyan vine
#

is that a jellyfish or a monster?

limpid fern
#

Monster

languid osprey
#

Not their mother

wide totem
limpid fern
median blade
#

dart discord wrapper is nice

#

I honestly don't like discord.js

limpid fern
#

I would love to see Electron.js but for Rust using FF’s renderer that’s written in Rust

median blade
#

Eww electron

limpid fern
#

Yeah, but it's at least better than WPF and WinForms

median blade
#

Flutter best

#

I second Qml

viral hare
#

use opengl or sth

#

and go though the pain of rendering some graphics with nothing

tranquil ridge
#

hah

#

uses sdl

red ice
#

123456789

#

1qaszxcplkmnb seretuisefyui

grim seal
#

ip6tables

#

is painful

median blade
tranquil ridge
#

meant SDL2

tranquil ridge
#

also id like to ask @echo fern you what graphics lib do you use in rust for any graphical stuff

echo fern
#

depends on what I do

#

for animations/pictures, image

#

and then I ffmpeg them into videos or gifs

tranquil ridge
#

oh

echo fern
#

(the GIF writer of image itself seems really bad)

#

or was it even in image... anyway, didn't find a better way

tranquil ridge
#

hm so no high level graphic lib?

echo fern
#

plotters is also nice for plots

tranquil ridge
#

o

wide totem
# grim seal ip6tables

Oh no. If Joe is having trouble with networking..... It must be impossible for humans.

grim seal
#

lol

#

iptables is not my forte

grim seal
#

okay we''ll revisit this tomorrow

#

but

#

2a0f:85c1:23::/48 is now announced

wide totem
grim seal
#

lol

#

we as in me

dusky cliff
#

lol

wide totem
#

nice music, joe

grim seal
#

thanks

wide totem
#

lol i just found this

#

this is the official python project lol

pastel granite
#

where is the "duck norris"?

grim seal
#

dat me!!!

pastel granite
#

ok

grim seal
#

20473 is Vultr, this is from the PoV of NTT

pastel granite
#

oh you own the server

wide totem
#

nope

#

its complicated

#

and if joe is gonna start talking about it imma sleep

grim seal
#

i mean i guess they are referring to this server

#

in which case, yes, I do lol

wide totem
#

oh

#

yeah

#

joe owns this server

pastel granite
#

ok, ill refrain from any joe mama jokes

median blade
#

lol

grim seal
#

lol

#

wise choice

wide totem
#

well technically not, I think google technically owns the server 😏

median blade
#

@dawn spindle owns the server

grim seal
#

no, they're not

#

I think it's been made clear that I'm fine with that from people I know within staff, I don't want that to become commonplace amongst server members.

wide totem
#

ah

#

deleted so people don't know what it is that shouldn't become commonplace 😳

dusky cliff
#

just missed it

#

sad

wide totem
#

whew

wide totem
grim seal
#

and all are from people I know

dusky cliff
#

does it have 5 results

wide totem
#

huh, you know yourself 👀

grim seal
#

please stop confirming stuff I just said 😕

wide totem
#

i mean

#

you know people who aren't staff 😔

dusky cliff
#

my guess hasn't been disproved yet 🎉

wide totem
#

do you not know me?!

grim seal
#

there are few folks outside staff that I know to the point where I'm comfortable to the extent I'm fine with that phrase being used

#

I don't know much about anyone here, most of my trips to off topic are to rant about networking or teach

wide totem
#

smh

#

do you not know me?!
know != trust or know well enough to say said phrase

#

well anyways, imma take a short look at rust

#

actually

#

imma upgrade wsl to wsl2

tranquil ridge
#

i kind of feel uneasy when someone new says hes gonna learn rust 👀

wide totem
#

¯_(ツ)_/¯

#

didn't say learn

#

just said take a look at it

tranquil ridge
#

and what do you mean by that

wide totem
#

i am being intentionally vague

tranquil ridge
#

like dont judge the language by its syntax

woven hornet
#
#include <stdio.h>
int digit_at(int number, int place);
int main(void)
{
//sum of alternate digits
    int sum = 0;
    int x = 123234323;
    for (int i = 2; i <= 9; i = i + 2)
    {
        sum = sum + (digit_at(x, i));
    }
    
//sum of all the digits
    int sum2;
    for (int j = 1; j <= 9; j = j + 2)
    {
        sum2 = sum + (digit_at(x,j));
    }
    printf("%i", sum2);
}

//finding the digit at each place
int digit_at(int number, int place)
    {
    int mult = pow(10, place);
    return (number % (mult)) / (mult / 10);
    }

--------

#include <stdio.h>
int digit_at(int number, int place);
int main(void)
{
//sum of alternate digits
    int sum = 0;
    int x = 123234323;
    for (int i = 2; i <= 9; i = i + 2)
    {
        sum = sum + (digit_at(x, i));
    }
    
//sum of all the digits
    for (int j = 1; j <= 9; j = j + 2)
    {
        sum = sum + (digit_at(x,j));
    }
    printf("%i", sum);
}

//finding the digit at each place
int digit_at(int number, int place)
    {
    int mult = pow(10, place);
    return (number % (mult)) / (mult / 10);
    }```

 i tried to create a program which adds all the digits in a number.

could i ask for line 15
why when i introduce a variable `sum2` it becomes a different answer? even tho i intend both to be the same?
viral hare
#

lol there is no line count in markdown

dusky cliff
#

you're not resetting sum to 0

odd sphinx
#

also

dusky cliff
#

between the two loops

viral hare
#

where line 15 lol

odd sphinx
#

sum2 is sum + number not sum2

tranquil ridge
#

also er

odd sphinx
#

and sum2 is not initialized in the begining

tranquil ridge
#

shouldnt you be doing int sum2 = 0;

odd sphinx
#

yes

tranquil ridge
#

doesnt int sum2; gives it a random value or smth

odd sphinx
#

also

dusky cliff
#

it doesn't give any value in java at least

odd sphinx
#

if ur trying to get all digits sum

#

in the second loop

#

u probably want j++

#

instead of j = j + 2

wide totem
odd sphinx
#

edited

#

typo moment

woven hornet
woven hornet
woven hornet
woven hornet
# odd sphinx u probably want `j++`

yeah thats a faster method but here im trying to split adding even-th and odd-th placed digits cuz i want to multiple 2 to the even-th digits

#

from the first loop, i get sum to be 10
so i thought by introducing sum 2 = sum + get_digit(x, j) it would be 10 + 3 + 3 + 3 + 3 + 1

odd sphinx
#

ah ok

woven hornet
#

i dont get whats the difference with that and sum = sum + get_digit(x,j)

#

isn't it still 10 + 3 + 3 + 3 + 3 + 1

odd sphinx
#

it should be

woven hornet
#

instead of 23

wide totem
#

OK upgraded to wsl

#

Apparently also installing vs too haha

#

@tranquil ridge no I'm not thrown off by the demicolons

tranquil ridge
#

nice

wide totem
#

I used Java for a year once

#

Hell, I appreciate the hello world program I looked at

#

No need to use system.out

#

It's just println

#

LOL

#

i am installing cargo regardless

#

didn't know it was that easy

#

context: cf wrangler can be installed via cargo

#

fuck yeah

hazy laurel
#

this is ARU's blog now

wide totem
#

haha

#

yeah

woven hornet
#
#include <stdio.h>
#include <math.h>
int main(void)
{
    long x;
    long y = pow(10,15);
    x = (4003600000000014 % y);
    
    printf("%i", x);
}```
#

the output i get for x is wrong i think cuz of long int problems

#

but im not sure how to change it

dusky cliff
#

try using BigInteger

#

should exist

wide totem
#

AY

#

I managed to get a 1101 error on cloudflare!

#

and its not even my fault

#

LOL

#

the two screenshots aren't related

wicked hollow
#

Does this work?

#include <stdio.h>
#include <math.h>
int main(void)
{
    unsigned long long x;
    unsigned long long y = pow(10,15);
    x = (4003600000000014ULL % y);
    
    printf("%llu", x);
}
#

I'm on mobile and can't really test.

odd sphinx
wicked hollow
#

Sizes of integers in C? Yep.

odd sphinx
#

whats %llu?

wicked hollow
#

That's just the format specifier for an unsigned long long

odd sphinx
#

oh

#

lol

wicked hollow
#

On 32 bit builds for Linux, and even in 64 bit builds for Windows (or so I've heard), long is only 32 bits, but long long is 64 bits.

odd sphinx
#

i see

wicked hollow
#

!e print(2**32 < 4003600000000014 < 2**64)

clever salmonBOT
#

@wicked hollow :white_check_mark: Your eval job has completed with return code 0.

True
wicked hollow
#

If you're using 32 bit integers this stuff won't fit, but it should work with 64 bit ints

odd sphinx
#

interesting

pliant trench
#

ugh, why isn't there a preview?!

clever salmonBOT
#

Hey @pliant trench!

It looks like you tried to attach file type(s) that we do not allow (.mkv). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.

Feel free to ask in #community-meta if you think this is a mistake.

pliant trench
#

damit

unreal sigil
#

I've seen people do it

#

I just don't understand how fingers can move that fast

pliant trench
#

I didn't type that....

hazy laurel
#

I can't type for heck

#

Every time I try learning to type properly, I get incredibly bored

#

and my bad habits just crop back up

pliant trench
#

on qwerty ?

#

maybe it's because you're using qwerty and that's boring

hazy laurel
pliant trench
#

I've got a laptop too :/

hazy laurel
#

\🤔

#

I've not got a desk or anything, I use my laptop unsurprisingly on my lap

#

having another keyboard with that setup isn't exactly comfortable

pliant trench
#

I don't got a desk too, it's just my laptop and me

#

but I type on colemak

#

my laptop's key itself are qwerty

#

but you won't look at them anyway

hazy laurel
#

that must be awful

#

lol

pliant trench
#

awful ?

#

wdym

hazy laurel
#

idk I'd get so confused

#

I know you're not supposed to look at your keyboard but like

pliant trench
#

that's how most of the people learn a new layout

#

keyboards are mostly qwerty

hazy laurel
#

True, I guess

odd sphinx
#

true

#

ig

median blade
tribal tinsel
dusky cliff
#

chorp

median blade
#

chomp

cyan vessel
#

love that bird

tribal tinsel
#

Very annoying little fella. We're kinda wondering how to teach the birdo outside world. We don't have enclosure, so it will be hard to keep track of...

#

Because veggie tent doesn't have grass and birdo doesn't fly much in there (only flies down on the ground and when gets hungry - flies on me and yells). And we get that floorless small cage but it means some grass but not much +no flying

#

So we'll have to risk it and let birdo fly outside. We'll probably bring the normal cage outside, birdo sometimes flies to it at home, so it's recognizable and safe element...

#

But we worry that birdo will fly somewhere where human can't help, or near the road, or near the semi-wild dogs, or some cat will notice...

worn sluice
#

build aviary

#

ez

limpid fern
pulsar escarp
#

Chuck Norris so straight, that he makes light seem gay.

pastel spoke
#

damn

#

imagine turning light gay

pulsar escarp
#

Newton did make light gay

odd sphinx
#

lol

#

was it einstein or newton

pulsar escarp
#

Newton for sure

odd sphinx
#

u talking abt light bending around large stars?

pulsar escarp
true light
#

SHUTUP YOU HOMOPHOBES

odd sphinx
#

moment

hazy laurel
#

bruh

odd sphinx
#

lol

turbid cloak
#

4y - 4y^2 = 32 whats y? pls help

ancient whale
#

a quadratic curve

limpid fern
tribal tinsel
limpid fern
#

I'm trying out FF again, but most themes have this ugly grey line above the toolbar.
I was trying to edit the theme but I couldn't find just a list of all properties, so I needed to use the inspector and it says I need Inspect Chrome Document but I can't find where it is and when trying to go through mozilla I get https://developer.mozilla.org/en-US/docs/Tools/Add-ons/DOM_Inspector/Internals "Page not found".

Where is Inspect Chrome Document or does someone know what name that border is?

#

It's something like toolbar_top_seperator but that doesn't work

#

Nvm, spelling

limpid fern
#

Rainbow blur

#

Just remaking it myself

ancient whale
#

I was looking at that earlier, is there anyway to set a gradient?

limpid fern
#

Background image

ancient whale
#

but like a gradient for buttons

limpid fern
#

🤷‍♀️

tribal tinsel
# limpid fern

where did you get that picker? maybe they did transparent instead of white, lol? because I see this

limpid fern
#

Ah, yeah

#

FFS, I deleted my old theme before saving my new theme and it deleted both

solemn pollen
hazy laurel
#

uh

limpid fern
#

Straight pride flag just comes across as homophobic

hazy laurel
#

oh is that what that is

solemn pollen
#

i am homophobic

languid osprey
#

oop

solemn pollen
#

ban

round moss
#

!ban @solemn pollen homophobia

clever salmonBOT
#

failmail :ok_hand: applied ban to @solemn pollen permanently.

languid osprey
#

bye

hazy laurel
# solemn pollen

ngl this reminds me of those clothes you'd see old prisoners wear

languid osprey
#

pfft

#

.topic

rustic harborBOT
#
**What's the best pastry?**

Suggest more topics here!

languid osprey
hazy laurel
#

hm. do donuts manage to be pastries

languid osprey
#

hm

limpid fern
#

It does make the very tall bar more bearable. Also a change from always just black

#

Does anyone know how to make the address bar take up all of the space? Looks a bit awkward with empty space on the ends

odd sphinx
#

is there a straight flag

limpid fern
#

Yes, above

odd sphinx
#

hm

#

but how is that homophobic

limpid fern
limpid fern
wide totem
#

The edit thing and then the thing and then drag the thing to the thing, MAYBE

odd sphinx
#

huh

#

but every sexuality should have a flag

#

shouldnt it?

wide totem
hazy laurel
odd sphinx
#

yes they did say that later

#

but

#

before they did pythot said that was homophobic

#

wait

limpid fern
#

Brave/Chrome has this option but can't find anything in FF's settings

round moss
#

the context in which flags are used matter as well

odd sphinx
#

does this count as a flag ♂️ ♀️

wide totem
limpid fern
round moss
#

the vast majority of uses of the straight flag are not in exactly positive contexts.

wide totem
#

It's like the sort setting

#

Yeet fine I'll turn on pc

hazy laurel
#

and just... yeet the spacers

limpid fern
hazy laurel
#

Right click the toolbar and click "Edit toolbar" or something

#

and there's a drag-and-drop section, just drag away the spacers

limpid fern
#

Ah, thank you

hazy laurel
#

Maybe I've ought to use Firefox more

limpid fern
#

That's a cool system

hazy laurel
#

Indeed, but I never really use it

#

like it's cool but kind of useless for me because I like it how it is lol

wide totem
clever salmonBOT
#

Hey @limpid fern!

It looks like you tried to attach file type(s) that we do not allow (.xpi). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.

Feel free to ask in #community-meta if you think this is a mistake.

limpid fern
#

1 sec

wide totem
#

Isn't there a Firefox color link sharing option?

limpid fern
wide totem
#

Ah

#

unprintable characters in that link lol

limpid fern
wide totem
#

Ironic

limpid fern
#

That's what they get for just changing .zip into .xpi even though there's no difference. What is the point?

#

FF can read it though

wide totem
#

Yeah lol

dim root
#

I messed up my Linux today, need to reinstall it, until then just the iPad 😔

wide totem
#

Hm

#

You should be able to manually enter grub commands

dim root
#

I can, but as soon as I get that screen, my keyboard dies and does get any event

dim root
#

And to worsen the problems, you can only get the terminal after that screen

wide totem
#

@limpid fern aaaaa BTW I ended up doing rust stuff yesterday aaaaa

hazy laurel
#

is there a reason you're spamming <

dim root
#

nope, my keyboard is broken

#

The laptop keyboard

hazy laurel
#

I see

dim root
#

And on wayland I dunno any way to disable it like xinput has, so I just deleted the keyboard event file in /dev/input

#

Which probably caused this problem

hazy laurel
#

why would you do that D:

wide totem
dim root
#

Otherwise it would spam the < key and won’t let me type

wide totem
#

Ah

#

I ended up installing rust on my pc lol

#

And one thing led to another

limpid fern
#

You do need to install Rust

wide totem
#

And I ended up installing visual studio.

dim root
#

Anyway got the pen drive ready now, need to run it through rufus and then should be good hopefully

wide totem
#

I ended up with visual studio installed afterwards tho

#

And unfortunately, rust did not touch my path so I need to figure out how to add it

dusky cliff
hazy laurel
#

Windows users smh

#

Linux + CLion \😩

wide totem
hazy laurel
#

uh oh...

#

which one of you broke Microsoft

limpid fern
#

Oops, sorry

hazy laurel
#

I'm so confused... I can't sign in without incognito mode

#

What on Earth

odd sphinx
#

stop requesting in a loop

#

smh

hazy laurel
#

hhh I think they've blocked me from signing in

odd sphinx
#

lol

hazy laurel
#

bruh. Microsoft, what're you doing to me

#

I'm even using Edge... What is this

#

wtf. I think it's 1Password preventing me from signing in

#

Yep. it's 1Password... what the heck

odd sphinx
#

lol

#

sad

hazy laurel
#

.........

#

This is an endless loop of login problems

#

finally!

#

wait it's not weird to name my organization after myself, is it?

#

uh oh... there's so much to read

odd sphinx
#

read.

dim root
hazy laurel
#

I'm trying to keep awake D:

dim root
#

I have been going slowly along it, getting into devops

odd sphinx
#

lo

dim root
#

Recently messed around with lots of grafana with mongo, Postgres and Loki

hazy laurel
#

I've messed with only mongo out of those

#

I just saw someone talking about Azure DevOps and thought I'd look into it

#

I mean... seems cool

dim root
#

Yeah, devops is really fun

#

And spamming joe’s DMs for help lol

hazy laurel
#

uh oh

wide totem
hazy laurel
#

poor joe

wide totem
#

why does spellcheck not work wtf

hazy laurel
#

it's weird sometimes

#

oh well. learn to spell \😩

#

that was a joke, I hope it was obvious

wide totem
#

lel

#

i legit just

#

uninstalled discord

#

deleted all of the discord folders

#

and it still doesn't work

#

EVEN AFTER A REINSTAL

#

but get this, it works on ptb

hazy laurel
#

interesting

tranquil ridge
# wide totem

seems to be working 🤔 , helo isnt a correct word

wide totem
#

well yes

#

but it doesn't make a suggestion

#

like it should

tranquil ridge
#

when did that happen

dim root
#

It never makes a suggestion

wide totem
#

it does

dim root
#

It just underlines

#

Weird, not on Ubuntu atleast for me

wide totem
#

ptb will do it

#

just not canary

hazy laurel
#

It doesn't always work for me

wide totem
#

but its been going on for a while

hazy laurel
#

I think it broke in a recent Canary build tbh

wide totem
#

i even just deleted my entire canary install

dim root
wide totem
#

will wait for fix ig

dim root
#

It didn’t even show th ping count on the icon in canary for me

wide totem
#

i mean

hazy laurel
#

I don't think Linux really has that functionality

wide totem
#

ubuntu isn't supported

hazy laurel
#

wot

#

Did you know Discord doesn't have a single Linux developer

wide totem
#

yes

#

they don't

hazy laurel
#

smh

dim root
#

The stable non canary one shows the mention count tho

hazy laurel
#

Discord's a mess tbh

dim root
#

And we are still using it lol

hazy laurel
#

like... not even going to like. They've really gotta step up their game

hazy laurel
dim root
#

Yup that’s the reason why most are still here

hazy laurel
#

welp. I don't feel like reading all of this stuff about DevOps

#

first few pages and I'm already feeling mindlessly bored

wide totem
#

lol

#

what did you sign up for

hazy laurel
#

wdym

#

I just wanted to see what it was about

#

but like... there's so much stuff that may or may not be cool

#

Interesting

wide totem
hazy laurel
wide totem
#

Send link to what you made an account for

hazy laurel
#

I don't know what you're talking about

wide totem
hazy laurel
#

I'm so confused

wide totem
#

What did you make an account and sign up for which last pass blocked

hazy laurel
#

uh

#

1Password wouldn't let me sign in to Microsoft Azure at all

#

I had to disable it temporarily

#

assuming that's what you're talking about... I'm still so confused

wide totem
#

Yes that is what I'm talking about ty lol

wide totem
#

@grim seal out of curosity, what is the benefit to doing this?

#

enabling auto-merge to just approve it afterwards

#

there is probably a benefit, I'm just curious what it is

limpid fern
#

(but imagine the dev one says DuckDuckGo and not Google)

tranquil ridge
#

i prefer the blue one

#

the rainbow gradient looks too distracting

grim seal
#

I enable auto-merge, review, donezo

#

Means more if there is a more complex review policy but I bypass a lot of them

limpid fern
hazy laurel
#

I also prefer the blue one

limpid fern
#

I definitely prefer rainbow, currently

wide totem
vague shadow
#

Enabling auto merge means you don't need to wait for that, you can just enable, approve and leave it do its own thing

wide totem
#

ah lol

#

makes sense

grim seal
#

joe always wins

wide totem
#

Aru sometimes loses

jovial island
#

joe moment