#ot1-perplexing-regexing

1 messages ยท Page 601 of 1

spare lance
#

ah yes the electron density graph for d orbitals (the heck i dont wanna see it in the first week but looks sweet)

solid pollen
#

Haha, yep

#

We also had, uhh, did he upload it yet

odd sluice
#

what are d thingies

#

i think ive heard of em

spare lance
solid pollen
#

He didn't, too bad

odd sluice
solid pollen
#

We had a two lines formula too, along with that graph

spare lance
#

alright i hate univ already xD

solid pollen
spare lance
#

no way i wanna have that formula memorized

odd sluice
#

0_0

solid pollen
#

Thank god we don't even have to work with that formula

spare lance
solid pollen
#

They aren't that crazy

#

That's a year three thing partygopher

odd sluice
#

even now im like wtf did i read

#

i probably need to read it again

#

or ill probably fail any exam

spare lance
solid pollen
#

Funny looking formulas that don't make any sense, volume 1

spare lance
solid pollen
#

I'm not sure if it is actually supposed to be an integral but a sum

#

But what do I know

odd sluice
#

or are those seperate

solid pollen
spare lance
solid pollen
#

Plus the latex renderer kinda died on it

#

It swear it works well on my computer

spare lance
solid pollen
#

Yeah

#

That's my understanding

#

But I have no idea why that is the integration symbol

#

Surely it should be sum, right ?

spare lance
#

lol heck if i knew

#

i wonder what d(tau) is for

#

assuming it is tau

odd sluice
#

i think its torque

solid pollen
spare lance
#

i think ill just leave akarys to his misery and suffer with organic chem instead

odd sluice
#

oof how is organic chem

solid pollen
#

Oh god

#

Please lemme go back to quantum physics

#

Apparently it isn't needed during the first two years

odd sluice
#

is quantum physics better than quantum chem

solid pollen
#

And since I'll probably choose electronics or informatics in year three I shouldn't ever do organic again

spare lance
#

i mean its still hell

#

but its fun

tardy rain
#

Organic chemistry was probably the most fun i've had in school

#

Didnt get to the complex stuff, just a level tier

gritty zinc
#

I step out of offtopic for a few hours and you're doing quantum physics there ๐Ÿ‘€

rough sapphire
#

1 reaction and 10 exception
ยฏ_(ใƒ„)_/ยฏ

rough sapphire
#

would*

solid pollen
# spare lance organic chem is a fun hell

How the heck is that any fun? You learn how to draw a stupid molecule by heart to simply use a tool to generate that when you start working, unless you are working in organic research

solid pollen
dapper dew
#

But you get real good at drawing hexagons \s

solid pollen
#

I an feel you dude

dapper dew
#

I'm glad I didn't have to take organic chemistry, just needed to touch on combustion

solid pollen
#

Hahaha, you do become a pro hexagon draw... person

#

Did you take PowerPoint though

dapper dew
#

Hexa-draw-er ?

dapper dew
solid pollen
#

Hah

#

We do have some excel classes here

#

And vba because we like pain

dapper dew
#

Oh shit. No. Run.

#

I had numerical computations with VBA

gritty zinc
solid pollen
#

Sounds fun >.<

floral apex
#

Hmm Visual Basic

#

I've never touched that language yet

spare lance
last mantle
#

VB not too bad iirc

dire siren
#

oh no the code jam channel got deleted and i'm back to 18k messages

latent scaffold
#

lmao

#

we're nons

inland wolf
#

lol

carmine kindle
#

hello

dire siren
#

bye

edgy crest
#

hm

inland wolf
#

^

terse heron
#

@thorn yacht let's not be posting that in this server please

rough sapphire
#

hi guys

olive remnant
#

uWu

gritty zinc
#
(double) Rand.Value < 0.300000011920929 ? QualityCategory.Normal :

wtf is this constant

#

hmm, actually this is in decompiled sources and it's a double, so it's probably just the closest to 0.3 a double can represent

royal lakeBOT
#

@harsh tundra :white_check_mark: Your eval job has completed with return code 0.

0.30000000000000004
gritty zinc
#

!e

import numpy as np
print(float(np.float32(0.3)))
royal lakeBOT
#

@gritty zinc :white_check_mark: Your eval job has completed with return code 0.

0.30000001192092896
harsh tundra
#

This is better

gritty zinc
#

ah, there it is.... actually no, it's still slightly wrong lol

acoustic moss
#

no its right

#

just rounded

gritty zinc
#

why the hell did the decompiler round it then

acoustic moss
#

python floats are float64s?

gritty zinc
#

they are

acoustic moss
#

hmm

tribal aurora
gritty zinc
#

actually wait a minute

#

!e

import numpy as np
print(np.float32(0.3))
royal lakeBOT
#

@gritty zinc :white_check_mark: Your eval job has completed with return code 0.

0.3
acoustic moss
#

bruh

gritty zinc
#

no, it's definitely due to the float precision

tribal aurora
#

:/

gritty zinc
#

weird decompiler shenanigans, I guess

tribal aurora
#

like, what

gritty zinc
#
Mathf.Clamp((double) num >= 0.100000001490116 ? ((double) num >= 0.200000002980232 ?

here's more

tribal aurora
#

im out

#

this kinda reminds me of unity's c#

gritty zinc
#

It is C#.

tribal aurora
#

eh

gritty zinc
#

also, wtf is this line

return (QualityCategory) Mathf.Clamp((double) num >= 0.100000001490116 ? ((double) num >= 0.200000002980232 ? itemQuality : itemQuality + 1) : itemQuality - 1, 0, 4);
acoustic moss
#

what are you decompiling ๐Ÿ‘€

gritty zinc
#

nest a ternary in a clamp, what a wonderful idea

gritty zinc
tribal aurora
#

lol

acoustic moss
#

O

gritty zinc
#

StaticQualityPlus, a mod I'm using, doesn't support something I want, and also I read its source code and my braincells leaked through my ears

#

so I want to make my own version, because oh boy do I feel even I can do better

#

if you want to see what I mean, behold:

acoustic moss
#

idk enough c# to spot bad stuff

#

maybe

gritty zinc
#

Oh trust me, you do

acoustic moss
#

WTF

gritty zinc
#

unless you think three 20-case switches is a good idea

acoustic moss
#

lmaooo this is great

gritty zinc
#

This isn't, like, a beginner's mod by the way. This has been developed for years over multiple versions.

#

Though I suspect this part was written many years ago and just never rewritten to be less insane

acoustic moss
#

wait i thought you didn't need break in switch in c#

gritty zinc
#

what you definitely can do, though, is have a single block for several cases

#

instead of copy-pasting them

#

and that's not even considering that this could have not been a switch at all, with perhaps some math.

acoustic moss
#

yeah

tender smelt
#

eh, the compiler will optimize it

#

actually, that's the new revolution

#

it's not "AI will take over", it's "compilers will optimize everything"

gritty zinc
graceful basin
#

just wait for AI compilers

tender smelt
#

which might be the same thing, now that i think about it

#

just wait, they'll write lapack in python next

gritty zinc
#

oh god

graceful basin
#

we already use AI for rendering, compilers are a pretty big leap, but a possibility nontheless

gritty zinc
#

this is from the game's source code:

     switch (relevantSkillLevel)
      {
        case 0:
          centerX += 0.7f;
          break;
        case 1:
          centerX += 1.1f;
          break;
        case 2:
          centerX += 1.5f;
          break;
        case 3:
          centerX += 1.8f;
          break;
      ...
#

they aren't all the same, but this still count have used some math

#

or, like, an array

#

this is decompiled, strictly speaking, so I wonder if this is the compiler optimizing it from something better

#

Oh. I looked at the source and realised the thing I'm trying to do should already actually work

#

unless SQPlus does something truly weird

#

let's do more testing, maybe I won't need a custom mod after all

wise schooner
#

how's this color palette ?

uneven pine
#

Eye piercing

#

The green is way too bright

harsh tundra
#

Background is also too saturated imo

tender smelt
#

the blue on blue is horrible

acoustic moss
#

definitely made an impression

#

just not a great one

odd sluice
#

lmao

edgy crest
#

those icons remind me of windows

last mantle
#

ye its fluent design

#

the old one

last mantle
wise schooner
#

just deciding theme for now, will probably use react

last mantle
#

fluent UI on the web?

wise schooner
#

yeah

last mantle
#

interesting

#

i have never seen that

harsh tundra
wise schooner
last mantle
#

heh

#

might as well use the new fluent design

wise schooner
#

is it available?

last mantle
#

for flutter and .NET, yes

wise schooner
wise schooner
#

does this use the new one?

last mantle
#

i can't really say from that pic

harsh tundra
wise schooner
#

i could just use the fluent "dark" color palette but it feels too normie lol

last mantle
#

i wish frameworks could adopt the mica design thing

inland wolf
#

whats that

last mantle
#

acrylic was w10

#

mica is w11

inland wolf
#

oh ok

last mantle
#

its basically acrylic but takes the background as your desktop wallpaper

#

i guess

inland wolf
#

yes

last mantle
#

i did make a w11 app but gave up on it lol

wise schooner
last mantle
#

disabled?

wise schooner
#

yeah

low chasm
#

hm

#

that looks better than the blue

last mantle
#

i like it

spare lance
inland wolf
#

looks epic

#

but these checkbox ticks are too thin

wise schooner
wraith hound
wraith hound
inland wolf
#

true

wooden iron
#

Hii guys....

#

I'm new to python as well as in this server

#

can anyone tell me how can I learn python

#

๐Ÿฅฒ

broken dew
#

!resources

royal lakeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

rough sapphire
hard adder
#

macOS I hate

lucid raptor
#

But why? ๐Ÿ˜„

frail badge
#

i use macos and i hate it, thank you very much

rough sapphire
stable garnet
#

I don't

rough sapphire
stable garnet
#

me too. maybe that's why

#

we need to use one to hate it

frail badge
#

its meh

#

i use mac

rough sapphire
frail badge
#

barely used windows

#

well if u never used mac i think its rather unfair of u to hate it

stable garnet
#

What's meh about it

rough sapphire
#

What language should I use to code a game?

frail badge
#

uhh

#

C++, C#?

stable garnet
#

that's a big question

frail badge
#

depends

#

Unity's cool

#

so is unreal

#

but C++ is also good as well

stable garnet
#

you can make a 2d game in python if you want

frail badge
#

yea, using Pygame, arcade, etc.

stable garnet
#

C++ is fastest for games apparently

#

for triple A

frail badge
#

I think infinimata made a game using arcade and they have a suggestion probably so if you see them online then ask them (?)

stable garnet
#

Eve online was made in python

rough sapphire
stable garnet
#

then I guess C++

#

or an engine that already exists

#

like unreal engine like pip mentioned

rough sapphire
stable garnet
#

There is this really good youtube tutorial about it

#

do you want me to dm it to you?

rough sapphire
#

Too many languages to choose from

uneven pine
#

UE4 will use Visual scripting called Blueprint

#

and C++ for more advanced stuff when you need it

#

Unity3D is another good choice, that will use C#

#

you can also use the Godot engine, which has the (dis)advantage of being free/open source

#

it also offers a visual scripting interface, but their main language is GDScript which is a "Chinese knockoff python"

uneven pine
rough sapphire
latent scaffold
#

um

dire siren
#

um

rough sapphire
rough sapphire
rough sapphire
latent scaffold
#

idk what you're talking about :)

rough sapphire
latent scaffold
#

do I?

rough sapphire
dire siren
rough sapphire
latent scaffold
#

there's nothing on my site

rough sapphire
dire siren
rough sapphire
dire siren
rough sapphire
latent scaffold
#

it's the register page that has it

rough sapphire
latent scaffold
#

probably

dire siren
latent scaffold
#

but I don't care enough to

dire siren
#

every site you are on can log your ip lol

latent scaffold
#

Apache has a whole log of every single request that I get

rough sapphire
dire siren
rough sapphire
latent scaffold
#

I own the server

#

or... i'm renting it

rough sapphire
latent scaffold
#

from Azure

acoustic moss
#

cypheriel

latent scaffold
#

yes

acoustic moss
#

i cant find a rickroll

latent scaffold
#

you must register

acoustic moss
#

im trying to find the rickroll

#

i dont think this is how its supposed to work

latent scaffold
#

what do you are mean

dire siren
acoustic moss
#

i am be are mean

latent scaffold
#

the register button is on the login page

dire siren
#

not register :))

acoustic moss
#

bruh

#

oh ok i got rickrolled now

dire siren
frail badge
#

whoa you have a website

acoustic moss
#

good

frail badge
latent scaffold
frail badge
#

embed

latent scaffold
frail badge
#

the animation looks cool

dire siren
#

lol

#

i'll probably make one later if i have the time to

latent scaffold
#

it's fun

dire siren
#

and i dont need to handle the server if i use github pages

rough sapphire
#

Idk how to even code i don't have anyone to teach

dire siren
#

i just need to build the frontend :))

latent scaffold
latent scaffold
dire siren
rough sapphire
#

Gtg guys seeya

latent scaffold
#

the little splash text is random btw

#

whenever you get a 404, the embed will show a little "funny" line

#

the mouse did it

rough sapphire
frail badge
#

what

frail badge
rough sapphire
frail badge
#

then laugh on the outside

#

spread the laughter

#

tho not too much

#

its hard to stop laughing once you start

rough sapphire
#

For real though can someone tech me to code?

dire siren
#

!resources

royal lakeBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

spare lance
spare lance
#

I meant it as a joke but sure lol

clear acorn
floral apex
last mantle
#

whats ELF

edgy crest
#

the executable file format or smth

#

on linux

odd sluice
#

there's a letter difference

edgy crest
#

?

#

mate

#

that was pure coincidence lolz

odd sluice
#

hmmm okay

edgy crest
#
file Minesweeper/build/minesweeper
Minesweeper/build/minesweeper: ELF 64-bit LSB pie executable...```
#

yeah pretty sure it means this

dire siren
#

windows terminal vs vscode terminal vs cmd prompt vs powershell

in comparing speed

#

well i'm betting cmd prompt will be faster because it communicate with winapi directly iirc

spare lance
#

cmd prompt or powershell i presume..
depends on the usage

dire siren
#

hmmmmmmm

spare lance
#

@rough sapphire ah well so uh I was thinking of creating an array like
[[x,x], [x,x], [x,x],... ]
(where x is your block)
And then insert "#" at end of each list (for bottom and at first position for top)
(this can be moderated for specific gravity direction too)
So basically a vertical*horizontal array
And then while giving the output you can fill in the spaces btw each thing instead of making a horizontal*vertical array and switching out entire rows

rough sapphire
#

this is hard to grasp. doesnt mean its not good though

#

hmm so i think what your trying to say is only look at a portion of the grid enough cells below the sand blocks for them to move their maximum distance

spare lance
#

Well basically I mean that what you effectively do is

#
#
x
x
. 
. 
. 
. 
x
x
#
#
``` you make this only the parts of non dots in a column than a row 
And then join those end with something like 
`top + ["#"]*(total-(len(top+bottom))) + bottom`
rough sapphire
#

sorry what do the hashes represent and what do the dots represent?

spare lance
#

Hashes are the well whatever is your air or background or null block
And dots are the same thing (but you just don't have to include them. In your. Top or bottom list)

rough sapphire
#

ah i see

spare lance
#

!e ```py
top = [["#", "#", "x", "x"]]*10
bottom = list(map((lambda z:z[::-1]), top))
Board = list (i+["#"]*6+j for i,j in zip(top, bottom))
Board = list(zip(*Board))
print("\n".join(map("".join, Board)))

rough sapphire
#

impresive you whipped this up so quickly. ive only just now understood how to use zip

spare lance
#

I also learnt to use zip recently lol

rough sapphire
#

what about map what does that do?

#

ah it just takes a list of inputs and spits out outputs it seems

#

into another list

#

or sequence

spare lance
#

Map basically iterates through an iterable and passes the object as an argument to the given function

#

!d map

royal lakeBOT
#
map

map(function, iterable, ...)```
Return an iterator that applies *function* to every item of *iterable*, yielding the results. If additional *iterable* arguments are passed, *function* must take that many arguments and is applied to the items from all iterables in parallel. With multiple iterables, the iterator stops when the shortest iterable is exhausted. For cases where the function inputs are already arranged into argument tuples, see [`itertools.starmap()`](https://docs.python.org/3.10/library/itertools.html#itertools.starmap "itertools.starmap").
rough sapphire
#

ah yeilding so thats why you needed to cast it to list

spare lance
#

Yup lol

rough sapphire
#

id be happy to look over your code if you were to make a small demo

#

im just having a hard time understanding

spare lance
#

Guess I'll do that later bit busy today afternoon lol

rough sapphire
#

nice. whenever you can.

graceful basin
dire siren
#

thanks

odd sluice
#

where tf

#

was the nsfw

tribal aurora
#

why

dire siren
tribal aurora
#

@clever turtle what were u talking about

dire siren
#

i'm done with doing adb connect 127.0.0.1:port continuously. should i write a bash script that bruteforce that command from 30000 port to 40000

#

or will i get rate limited, is that a thing on localhost

graceful basin
#

yeah, that should be fine

#

though can't you automate finding the port some way

#

if it's on localhost you could probably just check which port sth is listening on

dire siren
turbid hinge
#

I feel much better. I figured out thermald was not working on my laptop, so no wonder my laptop was hot, fixed it and the fans are super quiet now ๐Ÿ˜„

simple sand
#
Mom: "What did you learn at school today?"
Son: "Apparently not enough"
Mom: "Why?"
Son: "Well, I have to go back tomorrow"
#

this one good

inland wolf
#

lol

rough sapphire
rough sapphire
wraith hound
#

Eyy

#

I suggested this otn

tender smelt
#

thanks i hate it

odd sluice
rough sapphire
#

Eek

turbid hinge
worldly current
#

hello

#

anyone eating spinach

rough sapphire
turbid hinge
#

@rough sapphire how old is it?

broken dew
#

They would have gotten you to install some monitoring software

broken dew
#

Because it's a breach of privacy to be able to look through a computer camera when someone is alone in their room?!

#

No comment.

#

I'm not sure if discussing how to get around your school's software is allowed on this server

#

Honestly I don't know

#

Ok this definitely breaks rule 5

#

!rule 5

royal lakeBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

broken dew
#

malicious or inappropriate

green pecan
waxen saffron
#

I am trying to run an android instance on the cloud (preferably for free). Things i have tried

  1. Oracle cloud Ampere A1 instance - looks like android emulator doesn't run on arm processors
  2. Oracle x86 AMD processors - processor doesn't support virtualization of genymotion and too low RAM for official emulator

What do i do now ?

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied mute to @graceful pumice until <t:1631521612:f> (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).

solid pollen
waxen saffron
solid pollen
#

It would be, but you have two layers of emulations and the CPU can't follow

#

The whole problem here is resources are very limited on free instances

waxen saffron
solid pollen
#

It probably can, yeah

waxen saffron
solid pollen
#

I wouldn't know the exact steps on how to do that, I'm afraid

#

I'd try to run the emulator through qemu

waxen saffron
#

virtualbox doesn't work on arm64 (so no genymotion)

waxen saffron
waxen saffron
solid pollen
#

My best resource is man qemu lol, I don't know much about emulation, I just know it should be possible

rough sapphire
#

Just tried to convert a script from Java library onto pycharm and it's a pain

slow juniper
#

lol

slow juniper
#

Ummm

#

lol

#

^^

#

It IS hard

#

Gotta go

rough sapphire
tardy rain
#

!e

print(*(f"{f}{b}" or n for f, b, n in zip(__import__("itertools").cycle([*[""]*2, "fizz"]), __import__("itertools").cycle([*[""]*4, "buzz"]), range(1, 20))))
royal lakeBOT
#

@tardy rain :white_check_mark: Your eval job has completed with return code 0.

1 2 fizz 4 buzz fizz 7 8 fizz buzz 11 fizz 13 14 fizzbuzz 16 17 fizz 19
tender smelt
tardy rain
#

Nah, just bed time scribbles

thick osprey
uneven pine
#

What is that ungodly font

#

Show some class mate

thick osprey
#

My class is all curves rooSlide

uneven pine
#

Your class returns True from isinstance(None)

thick osprey
#

NovaMono since I know you want a copy too rooStare

uneven pine
#

How do I blacklist a font

thick osprey
uneven pine
#

That is cursed as fuck

thick osprey
#

rooOWO I know, I love it.

#

I use Victor at work. Nova at home

uneven pine
#

You are ugly on the inside

thick osprey
#

I am an egg. pithink dark inside rooDevil

#

But... time to actually write the inventory file controller before bed.

low chasm
#

Pfft

low chasm
thick osprey
low chasm
#

Cool

thick osprey
#

Just wrapping up the database side tonight or tomorrow. Then on to the API and HTML

low chasm
wraith hound
#

So beautiful

#

But it looks disgusting in my terminal

thick osprey
#

I love the way my eyes just slide right over the gentle curves of the font though rooBlush

low chasm
#

The None is cursed

uneven pine
#

I am officially resigning from Linux

low chasm
#

Why

thick osprey
#

and I thought my coffee was bitter rooCoffee /tease

low chasm
odd sluice
uneven pine
# low chasm Why

Well at the high level,
The community as a whole is toxic, unfriendly, unhelpful, etc.
Despite compatibility being better than ever, it still sucks.

At the distro level, the communities are generally vitriolic and now more than ever filled with kids. Plenty of people will tell you that you're doing something wrong but won't be able to tell you what the "right" way is.

At the low level, I just spent hours getting video drivers to work and when I finally got them working I found that despite manually ensuring and triple-checking that my windows drive was not touched, my windows boot loader got nuked.
Now I'm finding out that my network configuration is also somehow screwed so I have to wait TWO HOURS for a windows ISO download... On a symmetric gigabit fiber connection

low chasm
#

Whoah

#

Yeah that's a good reason, go for it

#

App compatibility can be a pain sometimes

#

I don't game all that much though, so it's not a personal problem for me, but I can see that effecting other people

uneven pine
#

More than ever now I realize that for me Linux was more of a toy than anything actually useful

#

Too much stuff I have to reboot to windows to use

thick osprey
#

I use linux on my laptop, primary because it's light weight and the laptop is only for writing. Doesn't need much and I like the pep in Mint's step. As you can see from my terminal, I'm in a Windows box most my day with either WSL, a VM, or a tunnel into a *nix jumpbox.

uneven pine
#

Yeah about all I'll use it for now is old hardware

low chasm
#

I dual boot with windows, since I play valorant

uneven pine
#

Stuff that can't reasonably run windows

thick osprey
#

I had a chunk of code... midway through writing my gripe about it I solved the issue.

#

Thanks!

uneven pine
#

Yeah

#

Always happens

#

Actually it's quite funny

thick osprey
#

Going to sleep with that sweet sweet 100%

#

Feels good

uneven pine
#

I've arrived at a point in my programming path that when I do run into an issue it's about a...
10% chance of being a docs issue
10% chance of being a compatibility issue
40% chance of figuring it out while I'm writing my question
40% chance of it not just stumping me, but stumping everyone else as well until someone who has very suspiciously specific experience comes in and enlightens us all

thick osprey
#

I'd have to say "change of figuring it out while writing a detailed question about it" is about 50% for me, at least.

#

Unfortunately, for now, my doc issue is a most higher % there. Dumb vendor

uneven pine
#

I thought about it for a moment but then realized a handful of my issues in recent times have been because docs are either out of date or flat out wrong

#

And I've dealt with a good amount of C compiler issues with compatibility

#

Compiling regular python down to C and then into a normal executable is one HELL of a task

#

But it CAN be done and the results ARE amazing

thick osprey
#

Sounds nifty. Far more involved than I've ever gone with the code.

#

I write simple-complex automation that usually hides between two processes and twists data from one shape to another.

uneven pine
#

Fun fun

#

Mine is an electron style app

#

Running CEFPython to embed chromium, on top of a hypercorn server running the sanic web framework

floral apex
#

And other commercially backed distros (Suse and RHEL family distros), in an Ubuntu Discord server

uneven pine
#

The second you want to do anything outside of basic desktop use and have a problem... Good luck

last mantle
#

the MS server is quite friendly

uneven pine
#

Thing is I think I've needed actually support for something on windows.... Once

#

And I started all the way back on ME

slow juniper
#

School is endddd

#

yey

molten flax
uneven pine
#

Rubber bug deducking

spare lance
#

i was wondering how the "command line" thing works.. like how do applications like cmd and pwsh are called command lines and how does winterm puts them into a different body pithink

graceful basin
#

essentially, you have 2 parts here. One is the terminal emulator, this talks to a process and renders it's output and gives it input from the user. This is windows terminal, conhost.exe, alacritty, st, xterm

#

then you have the shell application, which just reads input from stdin and writes to stdout, without really caring about what the 2 actually are

#

though you get things like isatty

spare lance
#

ah hmm ohkay... so cmd or powershell actually are processes/do processes
and what we see when we directly open powershell or cmd is another shell which is designed specifically for those?

graceful basin
#

when you open them normally, you see the default windows terminal emulator conhost.exe

#

it's really old

spare lance
#

ah ohkayyy

graceful basin
#

try doing conhost.exe, it should open the same thing as cmd.exe

spare lance
#

ohkay yeah it does

#

and powershell also opens (similarish) window

latent scaffold
#

conhost is the terminal

#

cmd/PowerShell are the shells

#

Windows Terminal is also a terminal, which can run both shells

spare lance
#

ah hmm alright that makes sense yeah

#

so uhm i am wondering what makes this shells shells
i mean could anyone make some stuff into a shell or sumn?
like for example i have a python file which i would like to be used as a shell in some terminal.. could it be done pithink

floral apex
#

Windows Terminal is a nice terminal

dapper dew
#

I like windows with WSL, and throw some oh-my-zsh with powerlevel10k on top

spare lance
graceful basin
#

the most basic shell is just read input -> do thing and write output

#

when you run python, that's a shell

#

you could probably even use it (poorly) as a login shell on linux

spare lance
#

ah lol..
hmm ohkay yeah so shell includes reading input too? like parse it from std input types?

graceful basin
#

ye, parsing 'find src | grep "a b"' into a command is part of what a shell does

spare lance
#

ah ohkayy .. idk why i thought it was work of terminal

so um as i get somewhat a shell struct is like```bat

  • prompt and place cursor(done with prompt)
  • parse stuff from stdinp (while shell is being used as one)
  • do the required processes
  • give back the output
while the terminals are somewhat on the lines of ```bat
- take prompt function from the shell source
- execute the function in its own window (showing the prompt and place the cursor)
- allow the shell to parse the stdinp [ not sure about this one ] 
- let shell do the processes
- catch whatever the shell returns and give the output
``` did i get it right? ๐Ÿ˜…
graceful basin
#

terminal emulators generally don't do anything special with prompts

#

those are entirely done by just printing at the right time

spare lance
#

ah ohkayy

#

but then what i wonder is terminal emulators can you know run quite a lot of shells and cant run a few cli
so it is because of the structure of application that they can do it pithink

graceful basin
#

most terminal emulators will run most CLIs just fine

#

what is important is what escape sequences they support

spare lance
graceful basin
#

that is probably just done with printing and some terminal flag manipulation

#

it is not quite as simple as just stdin -> stdout sadly

spare lance
#

ah lol well seems so

#

since stuff errors out when trying to put that thing in winterm

rough sapphire
reef geyser
#

@primal spruce yeah, they point to stuff but why is that useful?

#

why can't I just use the actual data?

#

why do I need a memory address?

primal spruce
reef geyser
#

...

#

holy shit.

dapper dew
#

Space and Time

primal spruce
#

honestly, just think of them like python variables. we literally effectively use pointers

reef geyser
#

right, everything is just a reference

low chasm
primal spruce
#

exactly. a pointer ๐Ÿ˜„

reef geyser
#

now it makes sense

rough sapphire
low chasm
reef geyser
#

hi @rough sapphire

low chasm
#

Lmfao

rough sapphire
median domeBOT
#

Hi sQUId

reef geyser
#

henlo lancy

rough sapphire
#

Welp fuck I gotta go for a run for gym

reef geyser
#

yeah, get that run in!

primal spruce
rough sapphire
edgy crest
last mantle
edgy crest
acoustic moss
#

LMAO

molten stag
#

how to deindent multiple lines at the same time in pycharm?

acoustic moss
#

select the lines and shift tab

tardy rain
#

dont you just hate it when you come across an annoying issue but you cant reproduce it

rough sapphire
#

Does anyone else like to troll the scammers?

dapper dew
#

I just reported them to discord

#

and told them to fuck off

uneven pine
#

such as cryptographic drive wipers

#

99.9% of the time they're not dumb enough

rough sapphire
uneven pine
#

I think I'm on a global scammer blacklist at this point

#

they haven't messaged me in about a month

rough sapphire
#

Pycharm isn't working help

uneven pine
#

use vs code

rough sapphire
#

The window for pycharm wouldn't open so i restarted my computer and it works now

rough sapphire
#

Eek

rough sapphire
uneven pine
#

okay

#

don't know why you needed to ping me for that

rough sapphire
uneven pine
#

I don't care

low chasm
#

You guys get real scammers??

#

I only get bots

proven ermine
#

I've gotten like 5 scammers in the past two years

#

alwasy fun :)

#

They block me though ๐Ÿ˜”

odd sluice
#

i havent got any scammers yet
maybe i should ask google to turn off the anti spam on my email

proven ermine
odd sluice
#

lmao

uneven pine
#

I once got one to go through the whole spongebob wallet meme

#

"Hey is this your steam account? <Direct link to my real steam account>"

Nope, sorry not mine.
"But you are Awoo?"
Yup.
"And this has the same profile picture?"
Yup.
"And it's linked to your Discord profile, so it must be your account?"
That makes sense to me.
"Well, I reported your account by accident for illegal purchasing"
That's not my account

proven ermine
#

I've gotten ones to block me very quickly using a few tactics

uneven pine
#

weak

#

I usually start sending them furry stuff

proven ermine
#

That is furry stuff

uneven pine
#

if I don't have time to really mess with em

#

how furry we talkin

proven ermine
#

"What the dog doin?"

uneven pine
#

that's a tik tak meme

#

not furry stuff

proven ermine
#

really needs the image to make sense

uneven pine
#

Is it yiff?

proven ermine
#

nah

uneven pine
#

feel free to DM it to me

#

if it can't be posted here

proven ermine
#

Yeah idk if i wanna post it here wether its nsfw or not

uneven pine
#

I'm curious to see it lol

proven ermine
#

Cause some guy gonna be looking through my messages in the future an i don want them seeing furry stuff ๐Ÿ’€

uneven pine
#

lol

proven ermine
uneven pine
#

lmao

#

hold on

#

try now

#

I disabled message scanning

proven ermine
#

hmm, yep, cn't send messages to u lol

uneven pine
#

discord hates you

odd sluice
uneven pine
#

they steal steam accounts from people dumb enough to fall for it

#

and then they sell them

proven ermine
#

Pretty much sums it up

#

Its a pain

odd sluice
uneven pine
#

the scam works by them convincing you to send a support request

#

through a phishing website

#

that makes you login to "steam"

#

which means even if you have 2fa, you'll use the 2fa to login

#

and then your account go byebye

odd sluice
#

ahhh I see

uneven pine
#

it usually involves two people

proven ermine
#

They then tell you that they accidentally reported your account for an illegal purchase or something of the sort. They tell you to DM a discord account that is supposedly a steam/value "admin" to fix the issue. The "admin" then does a few things, gets your email, then sends a password reset request. They convince you it's for "maintenence purposes", so you give it to them, they log in, change ur password, account gone.

uneven pine
#

^

#

The one that I lead on for a while went slightly different

proven ermine
#

There are different variations of it

uneven pine
#

when I added the admin, they sent me to a phishing website

proven ermine
#

but they're all the same strategy

uneven pine
#

whole recreation of the steam support website

proven ermine
#

damn, they went elaborate on that one

uneven pine
#

I logged in with a real steam account, brand new one with no games or anything on it

#

lol

proven ermine
#

Someday I'm just gonna make a throwaway steam account and when a scammer DMs me I'll just respond with the login to it and the email

odd sluice
#

i swear i wanna rick roll one of these

proven ermine
#

sometime if a scammer dms me I might just do a "Chad"

odd sluice
proven ermine
#

deez nutz

#

Hmm, wait

#

I can add scammers to group DMs cause they friend me

#

If I still had nitro I would :trol: right now

#

Shoulda said "do it"

safe lagoon
#

anyone feel that the new ip13 is disappointing

last mantle
#

as usual

uneven pine
#

What's ip13?

last mantle
#

iPhone 13

uneven pine
#

Oh

#

Well duh. Apple have been charging 2x or more than what the hardware is worth for years and years

#

I think the last iphone that had any sort of real innovation was what, the iPhone 4s?

edgy crest
#

what was the innovation

uneven pine
#

I dunno to be honest, that's just the phone that sticks in my head

edgy crest
#

hmm

uneven pine
#

But I'll also be honest as much as I love Android it really wasn't there until like Android 8

#

You can argue 6

last mantle
#

i am waiting for android 12

#

and then i can finally upgrade

rough sapphire
odd sluice
#

i like android

#

havent tried ios

distant hazel
#

@tardy goblet p_apeachsmile

floral apex
#

I like Android. I also like how it's less costly to enter if you're a dev

distant burrow
#

@floral apex AHAHA HI!!!

uneven pine
#

I use ipados literally daily

#

iPad sits next to my bed and plays noise so I can sleep

dire siren
#

ot1 doesn't have slowmode enabled right?

clear acorn
graceful basin
#

it gets very busy

tardy goblet
#

funny that you remember ๐Ÿ™‚

noble atlas
#

this ot name is little creepy. "flying macbook" ๐Ÿ˜‚

latent scaffold
#

macbooks are indeed creepy

inland wolf
#

bruh

molten flax
#

macbooks suck

dire siren
#

the price of macbook is flying

mild abyss
molten flax
mild abyss
#

m1 chips

#

ARM

#

the only downside will be just apple's closed ecosystem, because i dont favor it. it will be advantageous to those that like to be in their ecosystem.

rough sapphire
molten flax
#

O

rough sapphire
#

but i loved coding on mac, ngl, no matter what they say, i was cool with it.

harsh tundra
#

Cmd+space? That's ctrl+space and exists in any IDE

mortal smelt
#

Helow

rough sapphire
mortal smelt
#

Oppinion on Justin Bieber?

#

Pls

latent scaffold
rough sapphire
harsh tundra
mortal smelt
#

Oppinion on Justin Bieber????

#

PLS

harsh tundra
#

And system keybind being the same as app keybind is not a good idea because you cannot bring up application search while in IDE

latent scaffold
#

what does command + space do?

mortal smelt
#

Bruh

rough sapphire
#

the search bar for apps

latent scaffold
#

oh, I think it has that same keybind on KDE too

#

but I just used a screen gesture for that

harsh tundra
#

Ubuntu just uses Super

molten flax
latent scaffold
mortal smelt
harsh tundra
#

By default super is the so-called Windows key. But it's not Windows

mortal smelt
#

I will leave now

molten flax
rough sapphire
#

but mac was fun for me, i'm even thinking of buying macbook pro after a couple of years now.

latent scaffold
#

I forget what it's called, but the application launcher is indeed super

#

assuming you mean "the Windows key"

#

but I'm talking about something else

rough sapphire
harsh tundra
dire siren
#

does mac have the stackoverflow ctrl c ctrl v button

#

i cant buy it

rough sapphire
harsh tundra
#

Most Linux desktop environments use the Super key for window management and application launching, not only for commands used by applications. Much of this is similar to the use of the Windows key in the Windows operating system.

latent scaffold
#

"KRunner" is what I was mentioning

#

it's this little text box at the top of your screen you can use to launch apps or switch to windows and stuff

harsh tundra
#

I actually remapped some stuff in my Ubuntu to use Windows-like shortcuts. Eg on Windows I use win+e a lot, so I added super+e to launch Home window

latent scaffold
#

One thing I liked is that super + . is the default for the emoji keyboard

harsh tundra
#

Btw, there was browsers discussion in ot0 earlier and Vivaldi was talked about. Vivaldi actually has a search everything bar if you hit f2 or something

harsh tundra
#

Oh, and tg implemented name search for emojis a few months ago anyway

latent scaffold
#

yeah I never use it because I just do like \:weary:

#

on Discord, anyways

#

I don't use emoji anywhere else

harsh tundra
#

I like classical emoticons. Like ;) :D :P ;P

#

And <3

latent scaffold
#

I only ever use D: and :(

#

or sarcastic :)

molten flax
quick ledge
#

typing in the desktop brings up krunner too

#

like, when you have no applications open

uneven pine
#

Ahh yeah powertoys has one like that too

#

Quite a nice thing

dapper dew
#

super + v for clipboard too, love it too much

latent scaffold
quick ledge
#

that's there in windows too

#

you have to enable it though

latent scaffold
#

I figured out it was KRunner but I didn't remember the bind

uneven pine
#

Like clipboard history? That's a windows thing too now yeah.

quick ledge
uneven pine
#

Off by default cause people would complain about it spying on them otherwise

spare lance
quick ledge
dapper dew
latent scaffold
#

Why do I have C code in my clipboard

odd sluice
latent scaffold
#
#include <stdio.h>

int main() {
    char* str = "Hello, world!";
    *(str + 1) = 'h';
    printf("%s", str);
    return 0;
}
#

very interesting

odd sluice
#

wat

latent scaffold
#

ohhh I remember

#

I was playing around with char *str vs char str[]

spare lance
dapper dew
#

Any other favorite shortcuts? ctrl + shift + esc, alt + tab, win + r etc

odd sluice
#

win + tab for desktop switching

rough sapphire
#

shift win s

acoustic moss
#

ctrl win right arrow, ctrl win left arrow for switching between desktops

#

i use win shift s a lot too

rough sapphire
#

Who have join logs?

dapper dew
quick ledge
rough sapphire
#

oh. i kinda don't feel like adding anything. win gives nice support for cropping. so fast.

#

I need join logs... Please help me

dapper dew
#

I also use the win + 1/2/3/4 whichever number to access the apps in my toolbar (1 is the furthest left)

quick ledge
low chasm
#

I'm sure someone has the join logs memorized

dapper dew
#

That is usually my startup, win + 1 +2 +3 +4, win + e

inland wolf
#

^

rough sapphire
inland wolf
#

lol

#

win + e for explorer

quick ledge
#

win + L for fireworks animation

inland wolf
#

LMAO

quick ledge
inland wolf
#

win + space to change language

rough sapphire
#

okay i did try that

rough sapphire
inland wolf
#

get powertoys now :getgunned:

low chasm
#

Amateurs, I don't have windows shortcuts

inland wolf
#

thats called being an amateur

rough sapphire
#

my most used win shft s immediately followed by ctrl v

inland wolf
#

aha

low chasm
inland wolf
#

same

#

win shift s just points to ctrl print which makes sharex screenshot

low chasm
#

I control the shortcuts

inland wolf
#

because sharex cant detect win shift s for some reason

odd sluice
#

smh just use printscreen

#

one key, one drag, one ss

rough sapphire
#

doesn't that save the image?

inland wolf
#

no

odd sluice
rough sapphire
#

oh. but prtscr is quite far away

#

I'll stick with win shft s

latent scaffold
odd sluice
#

and a lot better than a 3 key shortcut

inland wolf
inland wolf
latent scaffold
#

what does win + L do on Windows?

rough sapphire
#

fireworks

edgy crest
#

what

latent scaffold
#

I mean seriously

rough sapphire
#

i meant seriously

edgy crest
#

theres fireworks in windows?

latent scaffold
#

figured

inland wolf
#

yes

acoustic moss
#

ye

inland wolf
#

there are fireworks in windows

odd sluice
#

fireworks

inland wolf
#

^

odd sluice
#

yes
i seem to remember something of that sort

acoustic moss
#

mhm

inland wolf
#

same

#

love the fireworks

odd sluice
#

definitely

inland wolf
#

very fireworky

rough sapphire
#

classic windows things

acoustic moss
#

oh man

inland wolf
#

enjoyed the fireworks part of it

acoustic moss
#

this reminded me of spider solitaire

rough sapphire
#

i liked the infinite stacks of solitaire

tardy goblet
noble atlas
uneven pine
#

Since no one actually answered

latent scaffold
#

ah

mortal smelt
#

Heelow

#

I'm very bordd

#

Pls help me

solemn leaf
edgy crest
solemn leaf
#

those
good
ol

edgy crest
#

days

solemn leaf
#

non productive days lmfao

edgy crest
#

ikr

#

oh no

#

fisher is officially captain now

acoustic moss
edgy crest
latent scaffold
#

ohh, Fisher's admin now

#

I was looking for him in the moderators section

molten flax
clear acorn
clear acorn
woeful cipher
#

hi parker

clear acorn
#

||hello peter||

woeful cipher
#

but the new trailer is dope ngl

clear acorn
#

ikr

glass karma
#

@terse heron why did u mute my frinds

#

friends

#

they were just joking

#

why

#

jerk

terse heron
#

!ban 763814494606065665 3d Learn not to disrespect staff when you disagree. If you have an issue with a Moderator's actions, you can contact @polar knoll

inland wolf
#

bruh

mild abyss
#

thanks. this gave me a good laugh

wild yarrow
#

o.o

opal atlas
#

Before I die I wanna make a absurd sound system

pine ember
#

@glass karma

#

sed

clear acorn
odd sluice
#

kinda harsh but ok

#

not gonna question it

odd sluice
#

how will they dm if they r not in the same server lemon_enraged

opal atlas
#

its about rap

uneven pine
#

they will not contact modmail after being banned

#

they are banned

#

:^)

molten flax
#

lolol

inland wolf
#

executioner got executed ๐Ÿ˜”

wild yarrow
#

heh

clear acorn
odd sluice
#

ikr

maiden yacht
#

Got a little project, I was trying to optimise power usage of my laptop while on batteries, and while closing programs worked, I disliked losing my work.
For a while I manually sent SIGSTOP to the worst culprits, but I decided to neatly tie is all together.
So, since I like my console, I wrote a small program using curses, that looks for certain programs and will display them and their status (color coded) and allow sending a quick SIGSTOP when running and SIGCONT when stopped.
I then added starting and stopping of select (power hungry) services, as well as loading unloading sets of kernel modules.
It will also query battery discharge, and display the average power used over 1, 5 and 15min (as well as current), as well as predicted battery run times for those power usages.
GitHub: https://github.com/NAKlama/powerSaver

GitHub

A tool to save power on Linux laptops, by allowing of easy stopping and starting processes and services. - GitHub - NAKlama/powerSaver: A tool to save power on Linux laptops, by allowing of easy st...

mild abyss
#

bag abuse

harsh tundra
# clear acorn ||how will they contact modmail if they are banned <:pithink:652247559909277706>...

it was probably how this "friend" of muted/banned person came on server instead of ModMail... this ban is also not permanent so they can return and do it correctly next time.
+I think PyDis also has email or some form on the website for banned people to contact them.
.... btw, if those "friends" were really only muted, then they could've contacted ModMail themselves. so the person here literally just came to argue and namecall a mod, not really do anything

distant hazel
#

so is a !ban on pydis actually a kick, and !pban is the normal discord IP ban?

tranquil orchid
#

No they're actual bans

#

By default permanent, otherwise just for a given duration and then they're unbanned

acoustic moss
#

pban is purge ban

tranquil orchid
#

^

#

Clears their messages as well as banning them

distant hazel
#

hah I thought of the wrong "p"

floral apex
#

@narrow kindle Even then, why would I go out when there's Covid. Wouldn't that mean we're still forced inside because we don't wanna get sick?

brazen ingot
#

muted bro.

floral apex
#

Oh wait as in "can't talk muted"

brazen ingot
#

mine

#

too

#

@wooden silo better see this

#

||@floral apex and friend him lol||

floral apex
# brazen ingot

This is just gonna devolve into some long winded argument, so nah

safe lagoon
#

i honestly dont mind debating with the guy

#

can we just unmute him so we can all go at him

brazen ingot
#

nice

rough sapphire
#

tell him he has nice dp, i had dp of chopper before this ๐Ÿ˜„

safe lagoon
#

i mean, he called a mod "idiot", which is just breaking rules honestly

honest star
#

If they want to discuss their mute and appeal it, the best course of action is to DM @polar knoll

brazen ingot
#

yeas said him that too

#

kat.

clear acorn
floral apex
# clear acorn j9

Chengdu J-9 (Chinese: ๆญผ-9) was a designation assigned to a Chinese interceptor aircraft that never progressed beyond initial studies. The J-9 project was abandoned in favour of the Shenyang J-8, which was a safer technological bet for the limited Chinese aviation industry of the 1960s and 1970s.

#

This oddly looks like a Saab Gripen

floral apex
#

Okay maybe just the basic structure

dapper dew
#

The J9 looks like it was made in KSP

native cargo
#

I wouldn't be surprised if the Chinese took design cues from elsewhere. It's to be expected if you're bootstrapping a domestic industry

rough sapphire
dapper dew
#

Right? My pfp is totally unrelated

rough sapphire
#

Definitely no resemblance of Jebediah Kerman nope nope nope

opal atlas
#

I have one of these

daring sonnet
broken dew
#

floordiv was offtopic, wasn't it?

#

They were specifically asking about __div__ vs __truediv__

#

@daring sonnet

daring sonnet
#

Some people forget that // in Python isn't a comment

broken dew
#

Fair enough. I don't think that was an issue there though

#

Read the thread in the link above. It used to be a thing in py2

solemn leaf
#

__truediv__ for python3

deep ingot
#

i visited the other robotics club at our school and im thinking of joining

rough sapphire
#

if I happen to win this "fish with pro angler edwin evers" contest based on some food packaging, i'll scream