#voice-chat-text-0

1 messages ยท Page 430 of 1

vocal basin
#

okay

whole bear
#

@dire pebble Dude don't do it, it's virus

vocal basin
#

@dire pebble expand the selection

charred rapids
#

@dire pebble Just open cmd, write ipconfig

#

Vim is soap used for washing dishes

whole bear
#

@dire pebble You should pay him 2 cents for his technical support

charred rapids
#

xd

vocal basin
#

@dire pebble if you're comfortable with using VSCode, then yes

whole bear
#

Dude Alisa it'self is russian

#

how could you trust Russian?

vocal basin
#

@dire pebble pick second option

charred rapids
#

Folder

vocal basin
charred rapids
#

@dire pebble Where are you from?

charred rapids
#

Ohh Turkey

whole bear
#

Turkey is good country

#

great country

charred rapids
#

Turkey people were hacked by Russians

#

I would say please be careful

whole bear
#

@dire pebble Dude you're getting hacked!

vocal basin
#

this one, the default

whole bear
#

@dire pebble Soon you will be robbed

vocal basin
#

let the linux tools be only in Git Bash for now

#

@dire pebble do you have SSH installed?

whole bear
charred rapids
#

Seriously SSH is a Virus Injection

vocal basin
#

@dire pebble if you don't know what it is, then use the first option

#

second so that you don't have to add certs in two places

charred rapids
#

@dire pebble We are just helping you, making sure you do not get hacked at end

#

I am sure this Programmer gonna hack your stuff

whole bear
#

All are playing game

#

Your the toy

charred rapids
#

xd

vocal basin
#

Next

#

yes

whole bear
#

Alisa ain't helping, she is hacking

charred rapids
#

Yes

old creek
#

select next

charred rapids
#

Ransomware

whole bear
#

@dire pebble That is Osama bin ladin program!

charred rapids
#

Search Ransomware on web

old creek
#

its a few steps asked by GIT like MCQ ๐Ÿ™‚

vocal basin
#

Next, for now; you can change it per-repo later

old creek
#

2nd one

vocal basin
#

I suggest first

#

because of Git Bash

charred rapids
#

its a total hack

vocal basin
#

it handles Unixisms a bit better than cmd

#

Git Bash tries to be as Linuxy as possible

whole bear
#

@dire pebble dude click next

vocal basin
#

this is only for Git Bash, not Git in general

whole bear
#

It will install this

charred rapids
#

Thats why you will get hack

whole bear
#

It is bait for you

charred rapids
#

We are the one who are truly honest

old creek
#

in window we can linux as well so dont think more about it ๐Ÿ™‚

whole bear
#

once you installed you will lose the access to your computer

charred rapids
#

Yes

rustic mantle
#

@dire pebble go with first one

vocal basin
#

@dire pebble you'll be able to access cmd-ish one through Windows Terminal anyway

whole bear
#

@dire pebble dude hit next

vocal basin
#

choose first, you can change it later

charred rapids
#

Do one thing just click cross on the top right

vocal basin
#

you aren't going to use Git Bash at first anyway

#

this

#

it will not you let accidentally merge

whole bear
#

Exactly

vocal basin
#

yes, pick Git Credential Manager

#

it's quite good

whole bear
#

You should just tell them "Shut the f up"

#

Let me screw it up!

vocal basin
#

leave those two options as is

old creek
#

@dire pebble hacked git

vocal basin
#

symlinks on Windows are non-trivial

old creek
#

I have seen first time that much selection in git\

vocal basin
#

yes

#

deselect the checkbox, yes

#

@sturdy panther ๐Ÿ‘‹

whole bear
#

@dire pebble open cmd type git --version

sturdy panther
#

Hi! Didn't know Git for Windows installs Vim.

vocal basin
#

up arrow to get previous cd command

whole bear
#

@dire pebble Now in windows search type git bash and hit enter

fresh pecan
#

whats a fun way to learn programming? cuz watching youtube etc. alone is boring

vocal basin
#

@dire pebble either mv or move via the file explorer

charred rapids
#

hey guys can you also guide me to install Endeavour OS? on hp pc...

whole bear
#

that's all I can advice

jovial iris
#

mv file/ path/

fresh pecan
#

also sitting in classrooms for 5 hours makes me wanna do something bad

fresh pecan
#

so funny

whole bear
vocal basin
#

@dire pebble cd not mv for now

whole bear
#

Hit the teacher

old creek
#

mv sourcepath targetpath

fresh pecan
vocal basin
#

we'll do it the easier-ish way

whole bear
fresh pecan
#

u just said some words

whole bear
#

@dire pebble Pay everyone in VC 2 cents for technical support

fresh pecan
vocal basin
#

steps:

  1. cd to the directory (already done)
  2. mv ~/welcome-to-docker ./welcome-to-docker
old creek
#

not here at the end of this text

vocal basin
#

you don't need to do the long-form move

whole bear
fresh pecan
#

thats better, cant see your messages anymore

vocal basin
#

now you need to cd there

jovial iris
#

You could've just used GUI.

vocal basin
#

watching only videos is not efficient

old creek
#

create a Dockerfile

whole bear
#

@teal crystal Dude say something in Hindi!

vocal basin
#

@dire pebble in the same directory

code .
old creek
#

Now you are already there

#

why need to write it again

vocal basin
whole bear
#

Dude is noob

#

He has no idea how to use code

fresh pecan
old creek
#

it will create an image

vocal basin
#

also that's kind of what school/college/university is about

whole bear
#

@teal crystal dude have some water!

vocal basin
#

average help session

whole bear
#

One man and thousand yapper

vocal basin
#

@teal crystal to the image not the container

whole bear
#

@dire pebble Directory is repository which contains folder and file

vocal basin
#

also sometimes called catalogue

old creek
#

So here @dire pebble docker will create a one kind of virtual machine where we dont have anything

#

So using dockerfile we are configuring a machine where we are installing nodejs first then copy a code files from our machine to docker image

#

like we are installing softwares in our machine

whole bear
#

@dire pebble Dude ask him to have some water

old creek
#
  1. we are installing a node software docker machine
  2. then we are assigning the working directory as an app folder where all code will be moved
vocal basin
#

@dire pebble completely ignore the EXPOSE one

#

it does nearly nothing

#

it's a hint to some tools but not much more

vast cosmos
#

hello

whole bear
#

hello tanmay

old creek
#
  1. now we are copying package file to our machine
  2. then moving src and public folder to docker imahe
  3. then installing required packages in docker machine to run a node applications
  4. then expose the port so our application run on port 3000
  5. and the last we will run build command so it will create a build on docker image
#

-t means tag

#

in CMD

vocal basin
#

@dire pebble ctrl + ` is the keybind

#

for opening a terminal in VSCode

old creek
#

you can run it on CMD, powershell, gitbash or you can do it in vs code as wll

vocal basin
#

where tilde is

#

to the left of 1

dire pebble
#

`

old creek
#

in vs code terminal you can run same command

vocal basin
#

@teal crystal

#

no

old creek
#

no

vocal basin
#

@dire pebble stay where it is

#

@dire pebble run the command

#

@dire pebble no ..

old creek
#

No @teal crystal

#

he is on right path

#

we need to stay the same path where we created dockerfile

#

yes

vocal basin
#

-t welcome-to-docker names it welcome-to-docker and . points to the current directory

#

context: 669B

under kilobyte is impressive nowadays, even for a demo

old creek
#

it will create a machine

#

we can say its a machine template

#

yes

#

now run "docker images" to see your all images in docker

#

Yes for that you need to also run docker-compose where you can configure application, database or other application etc.

whole bear
#

@vocal basin do you work as employee or as a freelancer?

hollow inlet
#

have dapp developer here?

vocal basin
whole bear
old creek
#

docker run command

vast cosmos
#

i want to learn c

old creek
#

to run a image

vast cosmos
#

where to learn c from scratch

vocal basin
#

which in Russia is relatively high

#

especially for a (formally) junior dev

old creek
#

welcome-to-docker is image which you just created

whole bear
old creek
#

its an optional setting

#

type 3000

#

localhost:8080

#

colon

#

so in code your default port was 3000

#

but from the setting we have redirected it to 8080

#

Its done ๐Ÿ™‚

#

what database are you using ?

vocal basin
#

@dire pebble first I suggest removing the existing mysql container entirely

old creek
#

because docker have already docker images

vocal basin
#

because it was misconfigured a bit

#

@dire pebble yes, it's failing to start

#
docker run --name some-mysql -p 127.0.0.1:3306:3306/tcp -e MYSQL_ROOT_PASSWORD=test mysql:9
old creek
#

docker rmi ImageID to remove docker image

vocal basin
#

actually it won't require re-download until gc

#

only the tag is removed

#

layers stay until GCd

#

yes

#

@dire pebble now you can connect to it from outside the container

#

@teal crystal it's not -d

#

but, yeah, you can ctrl+c it and then start from GUI

old creek
#

we need to use detach mode

#

-d

vocal basin
#

go to the terminal, press ctrl+c (it should stop the container), go to GUI, find the container, start the container

old creek
#

docker run -d --name some-mysql -p 127.0.0.1:3306:3306 -e MYSQL_ROOT_PASSWORD=test mysql:9

#

Now run my command it will run in background

vocal basin
#

@dire pebble there's a VSCode extension with DB support

old creek
#

open localhost:3306 on your browser

vocal basin
#

it is somewhat bad because not fully open-source

vocal basin
#

if it does, that means it's probably working

old creek
#

or use mysql tools like sqlyog, workbench or vscode extension etc

old creek
vocal basin
#

@dire pebble the other extension

#

I think

#

verified publisher

old creek
#

Yes this one

vocal basin
#

also I think I recognise the author name

#

@dire pebble they come from the dependency of that extension

#

@dire pebble password: test
and connect

#

yes

#

I think it Discord auto-stops AFK streams nowadays

#

also, yes, muting drops the stream when the role is no more

teal crystal
#

now
tell me, who is missing me?
๐Ÿ˜

teal crystal
#

@dire pebble
bro, where you gone??
have you gonna for a walk to moon? ๐Ÿ˜

teal crystal
#

@upper basin do you play rocket league?? ๐Ÿ˜

upper basin
#

No I don't.

teal crystal
upper basin
#

I wouldn't know, not really a smart person myself hehe.

teal crystal
upper basin
#

I really like milsim games.

#

The geometry of room clearing is intriguing to me.

teal crystal
#

free fire, pubg??

upper basin
#

No, none of those.

#

Like ready or not.

#

Although these days I just code and then worry about money, then sleep, and repeat.

teal crystal
#

Oh you are playing cards, i don't know why i thought it as chess ๐Ÿ˜‚

upper basin
teal crystal
upper basin
#

So can't do alot of stuff at the same time.

teal crystal
upper basin
#

3 weeks until I can get my 16g RAM back.

#

Yeah.

#

Already maxed out with WSL.

teal crystal
upper basin
#

Add on.

#

So 24.

vocal basin
#

!stream 544864513556611082 30M

wise cargoBOT
#

โœ… @dire pebble can now stream until <t:1741952781:f>.

teal crystal
#

@vocal basin waiting for you

vocal basin
#

@dire pebble we were attempting to connect to the database iirc

#

@dire pebble click this

#

@dire pebble the run button should just work with that SQL code

#

yes, that button

#

@dire pebble that GitHub thing was just a tutorial

#

127.0.0.1 is generally not accessible from outside

#

for a local networking, it's normally something like 9.0.0.0/24, 192.168.1.0/24, 192.168.88.0/24, etc.

#

@dire pebble this instance of MySQL is made specifically so that you can access it from your computer on 127.0.0.1, due to how we started it

#

@dire pebble we're using Docker to run MySQL

#

docker run created and started the container

teal crystal
#

sorry
@dire pebble i will come in just few minutes

vocal basin
#

it connects to 127.0.0.1:3306
which we told Docker to redirect to port 3306 of mysql

whole bear
#

Why your screen so big.

#

Do you use 34 inch screen?

#

Nah

#

Your screen in general is huge

vocal basin
#

-p {what host ip to bind to}:{what host port to bind to}:{what mysql port to connect to}

vocal basin
#

yes, we want the same port on the host as inside the container

#

bind is what the server does, connect is what the client does

#

server binds to an address and a port, then listens on it

austere swallow
#

Hi Python Besties

vocal basin
#

client connects to that address-port pair

austere swallow
#

Can anyone explain to me what Global and Local Variables are_

upper basin
vocal basin
#

yes, intentional that they're the same 3306

#

that's the default MySQL port

#

-p 3306 is short for -p 3306:3306 which is short for -p 0.0.0.0:3306:3306;
however we need 127.0.0.1 not 0.0.0.0, therefore we can't use the short form

#

security, yes

#

so that it's local only

#

otherwise someone on the same local network as you would be able to connect to it

#

TCP is a protocol that gives you a "connection" abstraction

#

you can write bytes to a connection, you can read bytes from a connection, you can close the connection

#

unlike UDP where there is only write and read without the notion of a connection

#

within a single TCP connection all bytes are read in the same order that they were sent by the other side

#

whereas UDP may reorder pieces of data arbitrarily

alpine crater
vocal basin
#

TCP is the default for Docker

#

you can omit it

#

TCP and UDP may coexist on the same port, in which case you'd need to specify -p twice

#

!d socket

wise cargoBOT
#

Source code: Lib/socket.py

This module provides access to the BSD socket interface. It is available on all modern Unix systems, Windows, MacOS, and probably additional platforms...

dire pebble
#

-e MYSQL_ROOT_PASSWORD=test mysql:9

vocal basin
#

@dire pebble not yet

#

-e MYSQL_ROOT_PASSWORD=test provides an environment variable to mysql

#

each process is started with a list of environment variables

#

those are commonly used for configuration, especially when combined with Docker

teal crystal
#

variable is like value you can change

alpine crater
#

a ENV var is basically a standard way to pass values from the environment to a program

#

some programs have dedicated env vars, there also some general purpose ones

upper basin
#
# variable_example is the variable
# 2 is the value
variable_example = 2
alpine crater
#

for example the env var HOME tells a program where your home directory is

upper basin
#

It's just Ace.

alpine crater
#

the env var PATH tells programs where they should search for other programs

#

and then you have more specific ones, like MYSQL_ROOT_PASSWORD tells mysql what the root password should be

upper basin
#

Yeah. They're variables used by the environment.

vocal basin
#

!e

from os import environ
print(environ)
wise cargoBOT
# vocal basin !e ```py from os import environ print(environ) ```

:white_check_mark: Your 3.12 eval job has completed with return code 0.

environ({'LANG': 'en_US.UTF-8', 'OMP_NUM_THREADS': '5', 'OPENBLAS_NUM_THREADS': '5', 'MKL_NUM_THREADS': '5', 'VECLIB_MAXIMUM_THREADS': '5', 'NUMEXPR_NUM_THREADS': '5', 'PYTHONDONTWRITEBYTECODE': 'true', 'PYTHONIOENCODING': 'utf-8:strict', 'PYTHONUNBUFFERED': 'true', 'PYTHONUSERBASE': '/snekbox/user_base', 'PYTHON_COLORS': '1', 'HOME': '/home', 'LC_CTYPE': 'C.UTF-8'})
upper basin
#

You need to learn what scopes are. That will help.

primal shadow
#

It's a variable from the environment, not the program

alpine crater
#

TL;DR its a standardized way of passing values to programs

vocal basin
#

there are many ways to pass configuration to a program
and if you use anything other than environment variables, Rabbit will be angry at you

iron geyser
#

๐Ÿ‘€

jade mountain
vocal basin
#

@dire pebble it stands for publish

#

but inside compose files it is indeed called ports, because that's an easier mnemonic

alpine crater
#

my diagram skills are unmatched

dire pebble
#

mysql:9

vocal basin
#

mysql is the name of the image

#

9 is the version

#

@dire pebble the image is directly related to mysql

#

mysql:9 part

dire pebble
#

3306:3306

alpine crater
#

because they could be different

jade mountain
#

@vocal basinbecause docker is a vm can i run malware inside it?

vocal basin
#

if it was 1234:3306, you'd have to specify 1234 as the port when connecting

alpine crater
#

like you could say "route port 80 on my machine to port 8080 in the container"

#

(very similar to port fowarding on a router, if you are familiar with that)

vocal basin
#

disable as much hardware access as you can

#

Docker is not a VM, it's based on OS-level virtualisation

#

i.e. virtual syscall table

#

as opposed to virtual hardware

#

@dire pebble those hints to the Docker Desktop come from the EXPOSE instruction in Dockerfile, presumably

alpine crater
whole bear
vocal basin
#

excallidraw?

alpine crater
#

Excalidraw

vocal basin
#

ah, it's single l

alpine crater
#

(I am just used to spelling stuff wrong, so I assumed you were right xD)

vocal basin
#

I don't remember ever seeing it written

#

at least for long enough to notice how it's spelled

alpine crater
#

I think I actually use the default port for everything, huh

#

I do use a nginx proxy so I dont have to remember the ports tho

vocal basin
#

I avoid -p as much as possible

#

especially without local IP set

alpine crater
#

like pi.home/red redirects me to pi.home:1880

vocal basin
#

also allows many things to just exist on 80

alpine crater
#

(it does really annoy me firefox assumes pi.home isnt a domain and just does a search if I dont explicitly use http://pi.home)

#

oh theres a setting for it

#

browser.fixup.domainwhitelist.pi.home ๐Ÿ˜„

primal shadow
#

There's no tld list?

alpine crater
#

.home isnt a real tld

#

its specifically for local services

primal shadow
#

ah

#

That's odd, I'd think .home woulda come in one of the waves of new TLDs

alpine crater
#

.home is an ICANN rejected generic top-level domain proposed in 2012. The ICANN Board issued a resolution on February 4, 2018 to cease the processing of all applications for the .corp, .home, and .mail gTLDs.

primal shadow
alpine crater
#

basically people used it for internal networks a lot, so making it a proper TLD could cause a lot of issues

vocal basin
#

I should deploy my own DNS server

#

for internal stuffs

teal crystal
alpine crater
#

my rpi just works over... whatever the hostname magic thingy is

winter tartan
#

why is everyone so silent ? ^^

somber heath
#

@celest oyster ๐Ÿ‘‹

vocal basin
alpine crater
#

I explicitly made my bluetooth devices unable to work as a mic

#

(I had reasons)

jade mountain
#

for some reason

list.append((
    "hello", "world!"
))

structure looks amazing

somber heath
vocal basin
#

while it can be structured better, that's just a practice thing

winter tartan
vocal basin
jade mountain
vocal basin
alpine crater
#

anyway I have been getting into excalidraw recently, been a bit helpful structuring some data flow

#

(also trying to switch back over to obsidian from notion, I think my issue before is I just tried using obsidian for too much)

vocal basin
#

after trying several notes apps I've just decided that taking notes is not my thing

alpine crater
#

that was my issue actually, I was trying to use it to take notes

#

while what I really needed was just a kanban board and excalidraw

vocal basin
#

for writing stuff down I mostly use Outline

#

I've trained myself out of using kanban

alpine crater
vocal basin
#

does not work that well when open issue counts go >100

  • for many things the simple definite flow of whether it's worked on/done isn't entirely applicable
whole bear
#

I'd like to ask you something!

#

Only VC in discord

#

Where member prefer to be mute!

vocal basin
#

I wonder if Forgejo's Projects thing has auto sync to issue state

alpine crater
#

we just like the feeling of being with people

whole bear
whole bear
alpine crater
whole bear
#

If we think about it, you and we are all virtual.
Some connected somehow, and desire is the key which connects us

primal shadow
#

That is a full room of silence, I feel liek I'm in there without be9ing htere

whole bear
#

desire of what?

primal shadow
#

In it for the alert tones

alpine crater
#

I can stream some mtg arena if people want ๐Ÿ˜›

jade mountain
#

@somber heath

somber heath
#

I'd be a little more prone to judgement were everyone also deafened.

opaque pike
#

so like..

vocal basin
whole bear
jade mountain
#

its braces in python

whole bear
jade mountain
vocal basin
#

where ;

jade mountain
#

its like javascript

#

you dont need it

#

*browser js

whole bear
vocal basin
#

also correct placement of if punctuation

#

very Rust style

teal crystal
opaque pike
#

so i had vsc print balloon 2295000000 times...

#

send help

charred rapids
#

@vocal basin I want to do live coding... can you give me streaming rights

whole bear
teal crystal
alpine crater
#

I am staff, I can do what I want/hj

charred rapids
#

Ok

opaque pike
opaque pike
#

its to late qwp

jade mountain
teal crystal
whole bear
teal crystal
alpine crater
#

but okay fine, I'll program a bit

whole bear
teal crystal
whole bear
teal crystal
teal crystal
vocal basin
#

also that book has a version with quizzes

#

which should be linked on the first page I think

vocal basin
charred rapids
#

4 Mins

vocal basin
vocal basin
whole bear
charred rapids
vocal basin
#

competitive programming?

charred rapids
#

Yes

vocal basin
#

!stream 1252496871532920876

wise cargoBOT
#

โœ… @charred rapids can now stream until <t:1741956631:f>.

whole bear
somber heath
#

@mental laurel @spiral frigate ๐Ÿ‘‹

whole bear
#

Milien is alien from catland

#

@somber heath Take deep breath in and out.
Think about life and say "f my life"

#

Best way to be relaxed

teal crystal
vocal basin
#

there is no roadmap for go

#

there is no "learning go"

#

you just go and write it

mental laurel
#

what would this do ?

class Foo:
  def __init__(self, **k):
    self.__dict__.update(k)
vocal basin
whole bear
#

Now let make her insecure about height

somber heath
#

!e ```py
class Foo:
def init(self, **k):
self.dict.update(k)

f = Foo(apple=123, pear=456)
print(f.apple)
print(f.pear)

wise cargoBOT
somber heath
#

Not the best of practices.

charred rapids
#

Sorry ill have to leave.. Electricity Issue ๐Ÿ˜ฆ I will join when it come

paper wolf
#

no stream eh D:

whole bear
#

Let's not talk about her height

#

let's mind our own damn business

paper wolf
#

vim ๐Ÿ”ฅ

winter tartan
whole bear
alpine crater
#

hm?

vocal basin
#

mentally stable people
"do we even have those?"

alpine crater
#

this is vim, but sure

paper wolf
#

i use lunarvim

whole bear
#

@winter tartan I do have theme, it's dark owl one

alpine crater
#

I like animated wallpapers

paper wolf
#

why we cant stream?

alpine crater
#

because everyone likes lua ofc /hj

vocal basin
#

@winter tartan
nvim has less cursed colours when using termux compared to regular vim

#

for whatever reason

#

whereas on Windows Terminal it somewhat misbehaves

mental laurel
winter tartan
#

A front end thing?

vocal basin
#

terminal emulator for mobile

paper wolf
#

nice wallapaper

vocal basin
#

(android specifically)

winter tartan
paper wolf
#

ive used it

vocal basin
#

termux+nvim, still the best way to write code on a phone

winter tartan
paper wolf
#

real

paper wolf
winter tartan
paper wolf
winter tartan
vocal basin
paper wolf
#

i just recently learened about vim

vocal basin
paper wolf
#

ive code for year only on phone

vocal basin
#

I've been using termux since 2020 or even earlier I think

paper wolf
#

if i wanna use termux ill use nano

vocal basin
#

it's not a VM

#

it's not even a chroot

paper wolf
#

VM is not a emulator

#

and emulator is not a VM

vocal basin
#

termux doesn't emulate the runtime and filesystem

#

terminal emulator is just terminal

#

@winter tartan it's a weird term you can ignore the word emulator

#

termux runs on the metal as directly as android allows it to

#

you don't get to write to /bin

paper wolf
#

termux only have permition to write on its own home dir

vocal basin
#

(code is not running "on an emulator", you're just viewing through something that emulates a teletype)

vocal basin
#

and software should be able to handle it

#

also, data dir not home dir

paper wolf
#

well as a terminal emulator isnt it should have all permition?

vocal basin
#

okay, I have to say it once more

#

terminal emulator = terminal

winter tartan
#

Gotchu

vocal basin
#

for example, when you use KDE,
your default terminal emulator would be Konsole
https://en.wikipedia.org/wiki/Konsole

Konsole is a free and open-source terminal emulator graphical application which is part of KDE Applications and ships with the KDE desktop environment. Konsole was originally written by Lars Doelle. It ls licensed under the GPL-2.0-or-later and the GNU Free Documentation License.
KDE applications, including Dolphin, Kate, KDevelop, Kile, Konvers...

#

on Windows, there are three main terminal emulators:
whatever cmd uses by default
whatever powershell uses by default
windows terminal

#

first two, if you have your system configured correctly, you should only encounter when running something as an administrator or embedded in some other software

jade mountain
#

@somber heath

paper wolf
#

wt

#

what the

vocal basin
#

for i in 1..=10 when

jade mountain
paper wolf
#

hows importing stuff will change how python work???

vocal basin
#

make it truly Rust-like

jade mountain
paper wolf
#

hows importing stuff will change how python work?????????????????????????????????????

#

it makes no sence

mental laurel
#
class Button:
    surface: Surface
    rect: Rect
    def __init__(self, surface: Surface|None = None, rect: Rect|None = None) -> None:
        self.set_surface(surface, rect)

    def set_surface(self, surface: Surface|None, rect: Rect|None):
        if isinstance(surface, Surface):
            self.surface = surface
            self.rect = surface.get_rect()
            if rect:
                pygame.transform.scale(self.surface, rect.size, self.surface)
                self.rect.topleft = rect.topleft
        elif isinstance(rect, Rect):
            self.surface = pygame.Surface(rect.size)
            self.rect = self.surface.get_rect()
            self.rect.topleft = rect.topleft
        else: raise ValueError("Either surface or rect must be provided")
```would this work ?
wise cargoBOT
#

Source code: Lib/__future__.py

Imports of the form from __future__ import feature are called future statements. These are special-cased by the Python compiler to allow the use of new Python features in modules containing the future statement before the release in which the feature becomes standard.

While these future statements are given additional special meaning by the Python compiler, they are still executed like any other import statement and the __future__ exists and is handled by the import system the same way any other Python module would be. This design serves three purposes:

paper wolf
#

oh so it mess the compiler

vocal basin
#

@somber heath yes it does

paper wolf
#

interesting

#

@jade mountain show pls ๐Ÿ˜ญ

#

maybe lets turn python to static language

vocal basin
#

with the great power comes the great what the fuck have I done how do I undo it

paper wolf
#

lol

#

i wanna do live coding

#

i cant install vim on my fon D:

#

it need git

#

and installing stuff needs permission

thorny trench
#

what is happening...

paper wolf
#

nvm its working now

#

its just lunarvim on fon :D

#

lunarvim on fon letsgooo

#

why milien's voise is so depresing ๐Ÿ˜ญ

alpine crater
#

me hungry

#

so.... AFoxy_Wave

paper wolf
#

eat me.

#

........

#

am bored

peak depot
#

Affects my vocal corts

vocal basin
#

!stream 489768070034882571

wise cargoBOT
#

โœ… @jade mountain can now stream until <t:1741959487:f>.

paper wolf
#

sorry for that

vocal basin
#

@chilly wolf is that pvp or pve?

#

ah, pvp

#

do you have synchronisation/reconnect handling or is it just forfeiting on disconnect?

paper wolf
#

who here works something on android

whole bear
#

My head hurts ๐Ÿค•

paper wolf
#

im linking the lvim binary to /data/data/com.termux/files/usr/local/bin/

#

but it need permittion

whole bear
#

Bhe

vocal basin
#

ah, yeah, linkage is fun

whole bear
#

I definitely have nauseous!

vocal basin
#

I didn't figure out how to start code server

paper wolf
vocal basin
#

complains about stuff no installed/not in places it expects it to be

lime fractal
#

Whyy does my firewall block my Windows 7 starter leptop

paper wolf
#

i just wanna type lvim whenever i wanna code

vocal basin
#

my latest success was getting rustc 1.84 to work

#

it broke with an extremely weird error before that

whole bear
#

Bye

chilly wolf
vocal basin
#

had to just nuke the env vars for one compilation, and apparently that somehow fixed it forever
idk how or why

somber heath
#

@ionic wave ๐Ÿ‘‹

lime fractal
#

Why it say firewall need to allow MicrosoftEdgeupdate.exe allowed

somber heath
#

@abstract urchin ๐Ÿ‘‹

vocal basin
#

if there are 0 real connections from them for 10 seconds, it treats the whole user as disconnected

#

this handles both reconnects and sync

jade mountain
#

will we be blessed with the hemlock experience tonight?

vocal basin
#

important note: it also replays all events on each new connection

paper wolf
#

if only rooting a android is safe and easy

vocal basin
#

rewrite everything in Zig, be in control of all the linkage

chilly wolf
#

Intewesting, might be something to consider to make the game smoother? I'd need a few more bits and bobs to get it working fluidly though

vocal basin
#

it'd actually be immensely great if NixOS provided a more stable way to set its root to somewhere other than /nix or whatever

lime fractal
#

Whats wrong with my old leptop lol

vocal basin
#

root for nix packages I mean

jade mountain
lime fractal
#

I know

#

Windows 7 starter

vocal basin
#

NixOS has three things:
/bin/sh
/usr/bin/env
/nix (directory)

lime fractal
vocal basin
jade mountain
#

@rugged root

vocal basin
#
((= message "Hello, World!")
 (if (> (len message) 5)
  (print message)))

or whatever JavaScript version looks like

jade mountain
willow light
vocal basin
#

I don't understand how to home computer

#

I'm a Windows user, I like KDE Plasma preinstalled

astral coral
#

uh ahhhhhhh, I don't smoke the reefa

willow light
vocal basin
#

I shall start a crusade focused on claiming Alpine is the best dev OS

jade mountain
#

here is the python-to-javascript translator super compositor

import sys
sys.path[0] = sys.path[0].replace(r"\__pycache__", "")

import ast
import os

class FutureBracesRemover(ast.NodeTransformer):
    def visit_ImportFrom(self, node):
        if node.module == '__future__' and any(alias.name == 'braces' for alias in node.names):
            print("Enabled braces!\n")
            return None  # Remove the import
        return node

import sys
import traceback

file_arg = sys.argv[1]
with open(file_arg, "r", encoding = "utf-8") as f:
    content = f.read()

content = content.replace(" {\n", ":\n")
content = content.replace("} elif ", "elif ")
content = content.replace("} else ", "else ")
content = content.replace("\n}\n", "\n")
content = content.replace("    }\n", "\n")
if content[-1] == "}":
    content = content[:-1]

try:
    tree = ast.parse(content)
    tree = FutureBracesRemover().visit(tree)
    ast.fix_missing_locations(tree)
    exec(compile(tree, filename="<ast>", mode="exec"), {}, {})
    # exec(content)
except Exception as e:
    out = []

    trace = traceback.format_exception(e)

    # print(''.join(trace))
    for index, line in enumerate(trace):
        # if 'File "<string>", 4' in line:
        if index in [1, 2]:
            continue
        if index == 3:
            # print(line)
            line = line.replace('File "<unknown>", line ', rf'File "c:\Users\{os.getlogin()}\Desktop\Python Braces!\{sys.argv[1]}", line ')
        out.append(line)

    print(''.join(out))
vocal basin
#

you can't alpine the python and not suffer by default

astral coral
#

AH scary code >.<

vocal basin
#

because CPython is too glibc

#

normally

#

there is a static build of CPython

#

uv:3.13-bookworm

#

or whatever

#

200MB approx.

#

at least that's what I remember for whatever debians there are

astral coral
#

there's like a bus being escorted by a truck with loud speaker, circling the neighbourhood, cause this is a jewish community and some event is going off, it's annoying af

astral coral
#

it's drowning out my drum and bass ๐Ÿ˜ฎ

vocal basin
#

Django+HTMX, aka the `I have no f___ing clue but JetBrains is sponsoring' stack

astral coral
#

drums performed bass to mouth

willow light
#

or Pendulum because duh

vocal basin
#

@somber heath Zak is not in the VC

astral coral
#

I'm listening to the prodigy rn

vocal basin
#

call police for noise complaint โŒ
become the bigger reason for noise complaint โœ…

lime fractal
#

What is Babylon it block all on dis windows 7 leptop

willow light
vocal basin
#

mo? millioeconds?

#

millioinks

jade mountain
#

u americans and your incoherent measurements such as "feet", "inches" and the worst offender, "miles"

somber heath
#

@brittle quarry ๐Ÿ‘‹

jade mountain
#

disgusting

#

fowl

vocal basin
#

@somber heath *half of a giraffe

#

"WHICH HALF?? UPPER OR LOWER???"

willow light
brittle quarry
willow light
#

And because they sank the ship bringing the metric system to us in the 1810s.

jade mountain
somber heath
#

An Australian dialect of English. It's still English.

jade mountain
#

ew

willow light
#

The second time we tried, we got halfway there, and then Ronald Reagan got rid of it.

#

A lot of our current issues can be traced back to Ronald Reagan demonstrating why popularity is not a good way to determine leadership.

vocal basin
#

@rugged root and Lemon

rugged root
#

!server

wise cargoBOT
#
Server Information

Created: <t:1483877013:R>
Roles: 125
Member status: status_online 45,387 status_offline 353,403

Members: 398,790

Helpers: 163
Moderation Team: 39
Admins: 11
Directors: 3
Contributors: 47
Leads: 9

Channels: 295

Category: 33
Forum: 4
News: 13
Staff: 128
Stage_Voice: 1
Text: 108
Voice: 8

vocal basin
#

@upper basin on the profile

#

@rugged root why mastodon does decentralisation well:
you can use an account across instances

#

instance defines where your account and messages are located

#

you can reply and mention cross-instance

#

there is no inherent reason to centralise in Mastodon

teal crystal
#

why i am seeing that zak has stream opened but when i open it shows it's closed

whole bear
#

@willow light I think smart dude can exploit this.
He can let his relative or friend to make a off shore company and hire and fire and hire and fire and hire and fire

willow light
whole bear
#

It's a good way to get benefit and survive by doing nothing

willow light
#

If you can think of a way to exploit the system, someone has probably already been doing it.

#

Especially if it's a billionaire doing it.

whole bear
#

Yes

#

But I think many more ways

willow light
#

Billionaires are the best in the world at exploiting the system. It's why they became billionaires in the first place.

somber heath
vocal basin
#

@rugged root make your own fork

whole bear
#

Like in India, government has absolute control on which company should get legal license to make airline, airport, 4G, 5G, ports and many more.
Basically capitalism on paper but license raj in reality

willow light
vocal basin
#

@rugged root no maintainers => no bad maintainers

whole bear
#

By license I mean government doesn't sell those license like auction

#

don't hold people to account for not having the same moral capacity

vocal basin
#

I should try writing in Austral

#

another weird language

whole bear
#

they sell those to specific company

#

or orligarch

#

That's how we have super rich like multi billionaire in country with just 4 Trillion GDP and 1.4 billion population

rugged root
#

Corporate nepotism

whole bear
#

Yes

#

It's everything but capitalism!

rugged root
#

Yaaaaaarp

whole bear
#

So suppose if government won't sell the license no hope for innovation or business.
As no one is legally permitted to make business but government

vocal basin
#

@peak depot if it starts to hurt the muscles somewhat, then maybe yes

upper basin
rugged root
vocal basin
#

the third isn't

rugged root
upper basin
willow light
#

Well taking into account soy is a complete protein...just slam the tofu when you workout.

willow light
#

Where I live tofu is cheaper than steak, so it's the main source of protein in my diet. Well, that and rice-n-beans.

whole bear
# rugged root One of the small benefits to the US, I guess

Maybe but what makes me feel worried is that they make sure that even latest technology comes under license. Before Star link they have no such a license after star link, they made it illegal to make something like that without license

peak depot
#

@rugged root today is Pi day. 3.14

rugged root
#

Yep, check the server logo

peak depot
#

Aaaa, me stupid

whole bear
#

But it look like swastika

upper basin
whole bear
upper basin
#

Yeah, that's the python symbol.

#

Two snakes.

rugged root
#

A Nixie tube (English: NIK-see), or cold cathode display, is an electronic device used for displaying numerals or other information using glow discharge.
The glass tube contains a wire-mesh anode and multiple cathodes, shaped like numerals or other symbols. Applying power to one cathode surrounds it with an orange glow discharge. The tube is fi...

vocal basin
#

the background is too mirror symmetric to look like that

whole bear
#

But doesn't it look like swastika?

rugged root
whole bear
#

It does look like swastika

somber heath
vocal basin
#

"freedom of speech! they only spoke words and signed papers! they're innocent!"

rugged root
vocal basin
upper basin
vocal basin
#

"government's assistance lack of control and security"

#

JACKSON, MSโ€”Seeking to assuage consumer concerns about dwindling supplies,ย the nationโ€™s egg companies reportedly assured shoppers this week that a dozen has always meant nine. โ€œWhile we have seen some temporary shortfalls due to the avian flu, I want to let all our loyal customers know that we will continue to sell delicious, farm-fresh eggs by ...

whole bear
#

Does prices even matter, if earning is in top 10%?

rugged root
#

Oh, @vocal basin. I can't find the message to reply, but you were talking about noise complaints and stuff, right? https://youtu.be/hsn63yAzP6E?si=5E8XcZjN8glPN_ou

The Whitest Kids U' Know | Season 1, Episode 2

"Let's Wake Up the Neighbors" - Trevor performs a rap on waking up the neighbors.

Fun Fact: The disgruntled old man neighbor makes a return cameo in Mustard from Season 3.

SUBSCRIBE: https://youtube.com/@OfficialWKUK?sub_confirmation=1

#WKUK, #WhitestKidsUKnow #ComedySkit, #SketchComedy, #Funny...

โ–ถ Play video
whole bear
vocal basin
# rugged root HA

I have another funny onion thing screenshotted but it's a DM-only material

whole bear
rugged root
#

That's amazing

whole bear
#

biblically accurate human lore

rugged root
#

Royalty accurate as well

vocal basin
#

yet

#

what a significantly advanced investigation

rugged root
#

@whole bear Yo

whole bear
#

Hello, i was just curious lol

rugged root
#

All good!

#

I just like to greet new folks

#

@silk delta Also yo

silk delta
#

Hi

rugged root
#

How goes it

silk delta
#

All good,

#

And you ?

rugged root
#

Good so far. Nothing exploding at work, so I'm pleased

silk delta
#

I came here the first time because I had a problem with a program a few days back, and since then I come here to look what's happening

rugged root
#

Well we're happy to have you! It's always nice to see we managed to keep folks around

silk delta
#

Well, I'm very glad to be accepted, but unfortunately, I need to go (it's late here in India), but I will come back some days to see what's up,
Bye

whole bear
vocal basin
#

he has none, he does not live off credibility

rugged root
#

Now the people double down and don't get panicky when they're called out

whole bear
rugged root
#

Deny, attack, pivot, repeat

whole bear
vocal basin
#

his own? no, someone else's

rugged root
peak depot
#

Deffo "Square hammer" โ˜๏ธ

whole bear
#

Every day when I wake up, one thought lingers in my mindโ€”there are at least a billion people on this planet who lack the resources I have, yet their potential far exceeds mine but goes to waste. And here I am, with all these resources, choosing to waste them by being lazy.

Has it ever happened to you?

peak depot
#

Dan "the cypertruck" Brown

somber heath
#

Free can of beans with every purchase.

amber raptor
peak depot
#

"You can throw a soup can but you can't throw a brick"

amber raptor
#

I feel attacked at end of the vehicle when she puts laptop in truck bed

rugged root
#

Amazing

olive hedge
rugged root
#

Neat

#

@ornate heron I try not to make exceptions on the voice gate. Otherwise there'd be no point in having it

#

You'll have to get it organically like everyone else

ornate heron
#

alr

rugged root
#

I appreciate you being understanding about it

peak depot
whole bear
#

I like how rabbit ain't got chill

rugged root
#

It's part of his charm

#

Co-worker is back here

#

Back to Mutelock

upper basin
#

Hemlock! Hushlock...Hemlock! Hushhhlock. So hush, husshhh.

vocal basin
#

@rugged tundra in what ways

rugged root
#

Stfulock

upper basin
vocal basin
#

@amber raptor it's been very coำงperative with Russian law enforcement

#

and Iranian/wherever else

upper basin
#

He's the Hemlock, a really nice folk, makes a nice buck, and he can go hushlock, but don't abuse his silence, or he'd be a madlock, you're fucked!

Bad Guy rhythm.

vocal basin
#

@amber raptor telegram encryption is opt-in and hard to opt in

#

there was some example of what Signal sent, like a giant blank page with the same phone number that the law enforcement gave them to check and half a sentence saying it's all they have

whole bear
#

As long as one can bare consequence of breaking Law.
Feel free to break it!

upper basin
#

I want this book.
QML Unlocked: From Curiosity to Capability in Quantum Machine Learning

#

Formal pwease.

rugged root
#

You want this or a computer

upper basin
#

The book.

#

I want its pdf. I really really want to read it.

vocal basin
#

"here, have this instead"

upper basin
upper basin
rugged root
#

"Buying QML Books via Drug Trading"

vocal basin
#

woohoo another name collision

#

Qt Meta-object Language

#

why is Qt's thing not QMOL

#

@rugged root the ifs are more correct syntactically this way

#

Rust-style

#

compared to JS

#

and Java

#

and C++

#

and C

jade mountain
vocal basin
#

and Zig

#

though Zig at least forces block braces

#

seemingly

#

oh wait no it doesn't

#

thanks, "Toggle dark mode", very helpful

rugged root
vocal basin
#

I have seen that one

vocal basin
#

because of a certain user, whenever I hear IO with O not being stressed enough compared to I, I first think of them rather than I/O

vocal basin
whole bear
#

It's relatively new book, highly unlikely that the there would be PDF version of it or Pirated pdf version

vocal basin
whole bear
#

I have alternative book but it share same goal as this book

vocal basin
#

the creature

rugged root
#

It stares into my soul

vocal basin
#

C, C++ and Rust have the same speed

#

in C++ you gain speed through your code not working and crashing each few minutes

#

in Rust you gain speed through composability

#

@somber heath almost

jade mountain
#

so rust is just better than c and c++

vocal basin
#

r something keyword

#

C++ has different memory management semantics which sometimes might fit the problem better

#

++C

#

proper increment

#

@jade mountain of a package

#

yes

rugged root
vocal basin
#

but

#

it's not a library, for weird reasons

#

"library" as a term has some implications

#

.as and .sos are libraries

#

directories full of .cs and .hs -- less so

#

in C terms, library is the compiled result that can be linked either statically or dynamically

whole bear
#

I like how you all are learning and reading books

#

Mean while me yawning

#

It was fun, hearing the conversation.
I'll catch you later!

chilly wolf
#

I'm stuck at the library :(

#

Not that I mind the library, it's just I have to steer clear of my apartment while they're doing renovations

rugged root
#

!e

for i in range(5):
  print(i)
  if i == 3:
    break
else:
  print("I'm in the else!")
wise cargoBOT
rugged root
#

!e

for i in range(5):
  print(i)
  if i == 3:
    break
else:
  print("I'm in the else!")
finally:
  print("I'm in the finally!")
wise cargoBOT
jade mountain
#

!e

for i in range(5):
  print(i)
  if i == 3:
    break
finally:
  print("I'm in the finally!")
wise cargoBOT
vocal basin
#

try-finally

#

!e

try: ...
else: ...

try: ...
except: ...

try: ...
finally: ...
wise cargoBOT
vocal basin
#

ah, right

livid dawn
#

whats this

vocal basin
#

try-else-only would make no sense

rugged root
#

!e

try:
  print("printing in the try")
finally:
  print("printing in the finally")
wise cargoBOT
vocal basin
#

!e

def stuff():
    try: return 1
    finally: return 2

print(stuff())
wise cargoBOT
vocal basin
#

Java does the same I think

#

you can think of return as backed by a write-only variable

#

initialised to None

#

@rugged root Fortran too I think

#

idk about Algol

#

@rugged root cobol

#

as in took inspiration from

#

anything indentation is cobol-inspired to some extent

#

iirc

#

well, it did a lot of weird things with whitespace anyway

#

@rugged root learn Language H

#
READ, PRINT, PUNCH, NUMBER, MAX, BEING, FROM, CHANNEL, DIGIT, STERLING, CHARACTERS, UP, TO, RADICES, QUANTITY, DECIMAL, POINT, INADMISSIBLE, INPUT, CONTROL, ERROR, SEEN-CHARACTER, OPERAND, CALCULATE, HOLD, OFF, ON, SEE, AT, POSITION, PLACES, FILE, GET, AGAIN, WITH, FINISH, REEL-END, UNOBTAINABLE, END-OF-FILE, MARKER, BRANCH, OR, GET-AGAIN, ACCORDING, SEQUENTIAL, FILING, DUMP, DATA, PROCESSING, PROGRAM, FOR, CHAPTER, NOTE, IN, OBEY, AND, ARE, AT, BY, IN, IS
#

some of the keywords

rugged root
#

OBEY

vocal basin
#

all others have been lost to time

rugged root
#

That's ominous

vocal basin
#

that's what the program ends with

#

and it starts with CHAPTER 1

#

there is no CHAPTER 2, by the way

rugged root
vocal basin
#

INADMISSIBLE
UNOBTAINABLE

#

STERLING

#

PUNCH

teal crystal
#

@rugged root Hi

vocal basin
#

challenge: write a story using only known Language H keywords

teal crystal
#

Can somebody explain like what we use in banks/financial data where we need exact count instead of analytics were we use HyperLogLog to count estimates in very much large scale where counting one by one isn't feasible??

vocal basin
#

CHARACTERS ARE BEING IN PLACES

rugged root
#
CONTROL BRANCH
BY STERLING

READ AND OBEY IN POSITION
FILE AGAIN AT SEQUENTIAL DATA PROCESSING
SEEN-CHARACTER OR ERROR
ERROR IS ON HOLD WITH UNOBTAINABLE INADMISSIBLE INPUT
END-OF-FILE
vocal basin
rugged root
#

Done

vocal basin
#

either RDBMSes or specialised stuff like tigerbeetle

#

UNOBTAINABLE DATA IS BEING IN INADMISSIBLE PLACES

#

banks don't actually have such a problem of scale

rugged root
#

I'm dumb

teal crystal
rugged root
#

I should have used BY MAX STERLING

vocal basin
#

HyperLogLog is for set cardinality

teal crystal
vocal basin
#

it's not for "I paid you N dollars"

#

account balance isn't count

#

pennies don't each have their own identity

vocal basin
teal crystal
rugged root
#

Carefully

vocal basin
#

SELECT COUNT(user) FROM ssn or whatever

#

@jade mountain processes instead of threads

#

if you just have all data available, counting isn't that hard

teal crystal
# vocal basin pennies don't each have their own identity

i don't know it properly
but let say on march 31, banks have to close their book and count total number of transactions, transaction value, and other transactional data,etc. do they simply count each and every transaction happened in whole year, like how they do?? do they simply do counts one by one?

vocal basin
#

there will usually be an index

#

b-tree indexes have a Log(N) count complexity for each range

#

you can also use database transactions to update data atomically

jade mountain
#

are python dicts faster than something like mysql?

rugged root
#

Minor Nim difference that confused me for a bit. Nim's HashSet is essentially a Python set. Adding another value into the set in Python is set.add(). In Nim? .incl(). I know it's include, but it still bugs me

rugged root
vocal basin
#

you should be comparing to sqlite in-memory

teal crystal
#

is it something like calculating data after each new updates/transaction??

teal crystal
teal crystal
rugged root
#

It's because inc is increment.

#

Was just too close in my brain

teal crystal
vocal basin
#

O(logN) queries are supported by indices

#

if you just need to find something by some value

#

@brazen gazelle learn Zig then

#

Rust is there for when you realise C++ is entirely bad

vocal basin
#

C -> Zig, Go
C++, Haskell -> Rust

#

@somber heath it now also includes JITting

#

as one of definitions of what compiling CPython could potentially mean

#

@rugged root PyPy?

brazen gazelle
#

plus I want to make some web APIs for work

rugged root
#

No the other compiler like Numba

vocal basin
brazen gazelle
#

I just don't use classes... idk

vocal basin
#

Java-style?

#

or inheritance specifically?

#

if I ever need to bind C++ to Python, I'd really rather do that through a Rust layer

#

Rust-C++ integration is relatively easy
Rust-Python integration is relatively easy

#

Python-C++ directly is not something I want

vocal basin
#

as equivalents of C structs

brazen gazelle
rugged root
#

named tuples vs data classes

#

WHO WILL WIN