#ot1-perplexing-regexing

1 messages · Page 384 of 1

rough sapphire
#

i'm reading the channel and somehow getting more confused with context

gentle moss
#

because he wants a script to take a screenshot and then upload it to a server

#

what's the point of saving it to the drive?

#

store it in mem and upload it

low shadow
#

they confused me with variable and screenshot , i was asking nasm

rough sapphire
#

rofl

gentle moss
#

weirdly, we're not all here to solve your problems

#

xx was just posting stuff

rough sapphire
#

@low shadow it was nothing to do with your asm, this was just related to the topic of "things you shouldn't do"

low shadow
#

oh

#

i thought me

#

sorry

gentle moss
#

it's sorta related

low shadow
#

generally all people advice me

rough sapphire
#

don't be that guy Machineyadav

gentle moss
#

because you shouldn't pipe stderr to null

low shadow
#

so i thought this time too

#

because you shouldn't pipe stderr to null
@gentle moss i dont want error in my screen what should i do

solid pollen
#

Errors are important yknow

gentle moss
#

if you're writing some ASM

#

and you're getting errors

#

maybe fix the errors

#

rather than hiding them

low shadow
#

ok

#

still the program works fine

#

but the error occurs

#

thats why i hide them

gentle moss
#

that's not a good idea

#

fix the problem, don't hide it

low shadow
#

👍

solid pollen
#

Did you even read them?

low shadow
#

yes

#

null byte caused the error

gentle moss
#

yes, okay

#

but why is your ASM generating null bytes?

solid pollen
#

So.. get rid of that nullbyte

low shadow
#

ok

#

will try

rough sapphire
#

oh yeah, on the topic of why it was a bad idea: generally, shells can't contain null bytes

#

the only reason my script works is because i use zsh

#

zsh is fine with null bytes

gentle moss
#

the evaluation error wasn't introduced until like

#

4.3 or 4.4 of bash

rough sapphire
#

how do you rate zsh? i kinda wanna try it

low shadow
#

i was asking if null byte prodcues stderr why does 2>/dev/null doesnt work

rough sapphire
#

i enjoy it. My whole setup is built around zsh, so I'm sort of biased

gentle moss
#

because you're trying to echo out null bytes

low shadow
#

even i used 2>/dev/null in echo

#

i used two times

gentle moss
#

the error is occurring outside your asm program because your program is producing null bytes that can't be evaluated

low shadow
#

ok

solid pollen
#

zsh is bash, but with some nifty upgrades, right?

gentle moss
#

it looks too sleek for me

rough sapphire
#

zsh is not bash

gentle moss
#

not retro enough

rough sapphire
#

yep, bash derps out with my screenshot script

solid pollen
#

It isn't POSIX compliant?

gentle moss
#

hah

rough sapphire
#

zsh isn't posix compliant by default, but you can enable posix-compliant mode

#

what OS btw?

gentle moss
#

you could probably fix the null byte issue using translate

rough sapphire
#

i use arch btw

oak tangle
#

obviously

rough sapphire
#

@gentle moss or a new memfd

#

might just do that

low shadow
#

you could probably fix the null byte issue using translate
@gentle moss you mean `tr

solid pollen
#

Or... don't make nullbytes

gentle moss
#

yes.

#

but that's a hacky fix

#

fix it properly.

low shadow
#

tr '%00' ''

#

?

gentle moss
#

probably not.

low shadow
#

then?

gentle moss
#

i have a feeling if i tell you then you'll not fix your shit

#

you'll just use my hacky patch

low shadow
#

ok dont tell me

rough sapphire
#

i'm going to start a "don't use null bytes" counter

solid pollen
#

Yknow, there is also a built in help in almost all command line tool

low shadow
#

tell me this why is nasm trying to open .o file when i provide .asm file previously when i used the command no error occured . I tried googling but no answer

#

nasm: fatal: unable to open output file `asm.o'

#

i provided input asm.asm

solid pollen
#

The file already exist?

gentle moss
#

or maybe the file doesn't exist and it doesn't have permission to create it

low shadow
#

which file .o or .asm

solid pollen
#

Bisk, it is kali

low shadow
#

oh got it

gentle moss
#

oh yeah silly me

#

🙄

low shadow
#

chmod: changing permissions of 'asm2.asm': Read-only file system
chmod: changing permissions of 'asm3.asm': Read-only file system
chmod: changing permissions of 'asm4.asm': Read-only file system
chmod: changing permissions of 'asm.asm': Read-only file system
chmod: changing permissions of 'notes.txt': Read-only file system

gentle moss
#

oh hey look at that

low shadow
#

this is the error

solid pollen
#

Oh oh

gentle moss
#

somehow you managed to break permissions

#

despite running as root

#

lol

low shadow
#

no its becuase i hibernated windows rather than shutdown

solid pollen
#

Looks like running everything as root wasn't the smartest idea

low shadow
#

and so when i mounted i got read only error

solid pollen
#

Wait what

low shadow
#

its

and so when i mounted i got read only error
@low shadow its smart ok ok type

solid pollen
#

You're on a ntfs partition?

low shadow
#

yes

gentle moss
#

okay

low shadow
#

its because of hibernation

solid pollen
#

You are looking for troubles here

low shadow
#

not root

#

got it

gentle moss
#

linux does not play very well with NTFS

low shadow
#

hmm

gentle moss
#

especially with permissions

solid pollen
#

try to ntfsfix it maybe

gentle moss
#

don't.

#

he'll break his fucking windows

low shadow
#

for those who think i run root

solid pollen
#

Then don't do that haha

low shadow
gentle moss
#

oh hey you created a user

#

nice.

rough sapphire
#

is that your 10th dark machine?

low shadow
#

no first

low shadow
#

lol

#

i use darkmachinex whenever i m doing online stuff, so no one can rev shell root user

soft violet
#

I use a light machine.

low shadow
#

and i have changed chown and chmod to have darkmachinex less access

soft violet
#

I call it a torch.

solid pollen
#

Haha

low shadow
#

its good though

#

Good OS

soft violet
#

It has a geared hand crank on it. So it qualifies as mechanic.

low shadow
#

@gentle moss your chmod solved my problem thanks

#

👍

#

is 0xa producing null byte

#
segment .text
    global _start  ;must be declared
_start:
    mov edx,varmsglength    
    mov ecx,varmsg
    mov ebx,1
    mov eax,4
    int 0x80
    mov eax,1
    int 0x80

segment .data
varmsg dw 'Hello World', 0xa
varmsglength equ $ - varmsg
solid pollen
#

Isn't that CR LF, silly me

low shadow
#

then where is nullbyte

gentle moss
#

hmmm

low shadow
#

and how do i get error

solid pollen
#

It is LF

gentle moss
#

yeah

low shadow
#

CR;LF

#

is used by linux

#

as i know

gentle moss
#

no

low shadow
#

i dont know

#

sorry http request use cr;lf

#

maybe

gentle moss
#

linux uses LF not CR+LF

solid pollen
#

CRLF (EOL) is win, LF is linux

low shadow
#

ok

#

how can i remove null byte from that program any assembly programmer

#
ld: warning: cannot find entry symbol lf64; defaulting to 0000000000401000

bash: warning: command substitution: ignored null byte in input
Hello World
gentle moss
#

hmm...

#

try 0x0A

#

rather than 0xa

low shadow
#

wait

#

done still same

#

0x0a

gentle moss
#

i'm out of ideas then

low shadow
#

wait i will try syscall

#

maybe it will work

#

syscall failed

solid pollen
#

Your compiler settings seems wrong too, it should name the symbol _entry to lf64 but it does not

#

I mean, at this point, use a debugger

low shadow
#

i was learning gdb but not fully, 10% learnt

#

thanks for suggestion

#

better to use tr now

solid pollen
#

No it is not

low shadow
#

why?

#

i tried my best i will ask on reddit

#

then if fail then tr

solid pollen
#

It is like hiding the mess and hoping for the best as you could have just cleaned it

low shadow
#

reddit is fun place

#

It is like hiding the mess and hoping for the best as you could have just cleaned it
@solid pollen though program works , let it work why bother

solid pollen
#

Stepping with the debugger is way easier

low shadow
#

ok

#

need to learn gdb

#

and sasm

solid pollen
#

Because it will strike back in the future

low shadow
#

ok

gentle moss
#

if you only learn to jury rig then you'll go forward never learning proper methods.

low shadow
#

whats jury rig

gentle moss
#

like a monkey patch

#

a shortcut

#

a dirty hack

solid pollen
#

a tr

gentle moss
#

the improper way of doing stuff

low shadow
#

ok

#

i will do it the hard way

gentle moss
#

👌

soft violet
#

jerry rig, too

gentle moss
#

same thing, isn't it?

soft violet
#

Yes. That's my point. I was just expanding.

low shadow
#

Jury rigging (also called "jerry rigging") is both a noun and a verb describing makeshift repairs made with only the tools and materials at hand.

gentle moss
#

i wonder where jerry came from then

low shadow
#

gotit

gentle moss
#

oh it's to do with boats

#

interesting

soft violet
#

I would have thought it a bastardisation of the pronunciation. Boats, though. Okay.

gentle moss
#

using spare sails as main sails apparently.

soft violet
#

Unless Jury rigging was a semantic drift thing, given the similar sound.

#

Etymology is fun.

gentle moss
#

yeah

#

i like how "macgyvering" something is a thing

low shadow
#

now soon i will get reply , though i cant ask on stackoverflow

gentle moss
#

pretty much jury rigging

low shadow
#

jerry rigging is good

gentle moss
#

big theme tune

#

young ric dean anderson

#

10/10

low shadow
#

one of my favourite songs

gentle moss
#

well that's totally related to the conversation.

#

hmm, i should get a macgyver box set

#

if you wrap a URL in < > it wont embed.

low shadow
#

good

gentle moss
#

👍

low shadow
#

wait letme test markdown

#

it doesnt support manual markdown on URLs

rough sapphire
gentle moss
#

break shit

pine vector
#

become angry? 😄

gentle moss
#

are you converting your arch install into ubuntu

#

¬_¬

rough sapphire
#

not only am i installing debian packages, i'm installing packages which install kernel drivers

gentle moss
#

mad lad

rough sapphire
#

shit is about to break hard

pine vector
#

archunutu was born! 😄

gentle moss
#

b̶͂͛ẗ̴́̚w̷̅̾ ̵̎͂i̴͂̈́ ̷̑̍u̶͋̊s̸͐͘e̶͐͐ ̶͑͗ȧ̵͠r̸͚͆c̶̀͗ḧ̴́̓b̷̈́̅u̸̽̀ṅ̴̊t̸͋̕u̸̔̚

rough sapphire
#

it's just dkms

#

it should work fine

#

should

gentle moss
#

wait

#

isn't that in the arch repo?

rough sapphire
#

no, not dkms itself

#

a dkms driver

gentle moss
#

ahhh

rough sapphire
#

which means it should be compatible with my system as long as i feed it the correct kernel headers

#

we'll see

gentle moss
#

what's it for?

pine vector
#

the first rule of Arch Club is...

rough sapphire
#

GPU drivers

gentle moss
#

i'm curious to see how this goes

rough sapphire
#

to be more specific, the "pro" (proprietary) variant of the drivers which stack on top of the open-source ones

#

which includes opencl support among other things

gentle moss
#

:D

rough sapphire
gentle moss
#

haha

#

clearly the solution is to add more RAM until it stops complaining

#

¬_¬

rough sapphire
#

sure, let me just solder more VRAM onto the GPU board

gentle moss
#

that's how they make 3D NAND, isn't it?

#

build a NAND tower

rough sapphire
#

i-

tranquil orchid
#

wheres the toucan

tacit flint
#

indeed

rough sapphire
#

i'm doing ansible and i'm scared

soft violet
#

@rough sapphire Why scared?

rough sapphire
#
  1. i have no idea what i'm doing or supposed to be doing
  2. i was just thrown in here with no guidelines on how to operate this thing
  3. i was warned that if i make a typo i'll blow everything up on the management server, but i forgot what that typo was
#

oh and also the deadline's in a few days and i haven't even started my thing yet

soft violet
#

I had a friend client who sometimes puts on concerts. Large but not megaconcert portable stage, solid crowd. She would use this events/ticket sales site that you feed info and graphics in and you'd get your event page. There were always these little changes that she'd want, like bigger photos or changes to the way the site worked. Now, this was very much a template website thing, not a whole heap of changing what you want just anywhere. But, aha, what's this? The ability to include javascript into certain header sections? So here's me, thinking I'm bring very clever, tweaking things to work the way we want. For the most part, I am. I've never done js, but I did an okay job of it. That is until I changed one tiny little thing which, by rights, oughtn't have had the kind of impact it did...it was just a bit of displayed text that we wanted to be different. But something somewhere, elsewhere in the code, relied on it saying precisely what it did. So it broke the ticketing sales process. It wasn't even really a part of it, but it broke it. Lost a day of sales, there, by the time I figured it out. Client called me and the site's tech trying to figure out why it wasn't working. Made up for it, but no lasting harm done.

Mistakes happen. If you make sure there's a way to keep track of them and to have backups and testbed servers, well, cast into the deep end, maybe that's the best you can do. ...and if you fuck up and get fired, well, maybe you'll lose your job and be homeless and get sick and die. Nothing more for you to worry about.

rough sapphire
#

um

#

thanks for that

lime gazelle
#

Okie so, a person in a roguelike server tried to explain to me grammar based generation and gave me this example

#
def digit():
    for d in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]:
        yield d

def number():
    yield from digit()
    for n in number():
        for d in digit():
            yield n*10 + d
            print(n)

for output in number():
    print(output)```
#

Can yall help me understand it better? I understand that the first yield in def_number returns a list of digits 0..9

#

But I don't understand how the for loop works. I tried printing the n and I deduced that it goes from 0..9 but singularly. Idk why though, since it seems to be similar to the first yield

#

also I don't understand what does for n in number() does

#

it calls the function, okie, but then? what does it return? GWeniSadNeko

soft violet
#

Convoluted bastardry.

wheat lynx
#

Uhh that is not nice, first it might help if you replace digit() with [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]. So you know that the first 10 yielded values will be numbers 0 to 9. Then you are going for n in number(): which will have n as values from 0-9 because it is yield from digit().

#

This is really hard to explain

lime gazelle
#

Yeah I thought as much, but it's really hard to follow

#

Also idk how good of an example it is of grammar based generation

onyx imp
#

is there supposed to be some pattern to the output?

#

basically when you see yield in the function you can almost treat it like a list

#

like you can use digit() in a for loop like would with a list

#

except the elements of the list are calculated by everytime that function yields something

#

so for n in number() is just going to run the number() function and everytime you see yield that's what you're getting as the next element of the for loop

#

i never heard of grammar based generation though

#

it's weird though because the function output seems pointless so it doesn't really tell me why it's useful to do things that way

lime gazelle
#

I was asking about how to generate something like a casino procedurally, because it has a very specific strucuture

#

And they said I could use grammar based generation to..well..One sec I'll paste

#
So, for instance, the same way it's often encoded into the grammar of a programming language that you can't assign to an rvalue, it's encoded in your map grammar that eg. a kitchen doesn't have a door leading directly to a bedroom.
Context-free grammars have this useful property that they work both ways - you can use a grammar to check if an input is valid and parse it into a syntax tree, but you can also use a grammar to enumerate all valid sentences in it.```
#

and googling "grammar based generation" doesn't yield (eheh) anything useful

#

nevermind I found a bunch of stuff

#

Guess this jam will be all about reading stuff

lime gazelle
#

I know nothing about procedural stuff, I'm a newbie

#

but I'm excited to learn!

#

I've found a stackexchange thread and I'll try and study if

soft violet
#

I've had a fair bit of fun with cellular propagation and with L-systems.

lime gazelle
#

😮 what are L-systems?

#

cellular automta I know, but never tried

#

An L-system or Lindenmayer system is a parallel rewriting system and a type of formal grammar. An L-system consists of an alphabet of symbols that can be used to make strings, a collection of production rules that expand each symbol into some larger string of symbols, an initi...

soft violet
#

You may also have heard of IFS. Similar or identical deal.

lime gazelle
#

Not really

soft violet
#

The fun thing is, the axiom string can be very simple. Even with simple translation rules, after a few iterations, things can become highly complex.

lime gazelle
#

I don't know any of this! I feel so dumbo!

#

It looks very cool though

soft violet
#

It is. It's a dangerous road.

lime gazelle
#

Why?

soft violet
#

Because you start seeing fractals everywhere.

#

EVERYWHERE.

#

Just walking down the road, minding your own business. You might walk past a lovely tree and BAM....you've been L-system'd.

#

You wake up from your shock, laying on the grass...

#

Too late, again.

lime gazelle
#

sounds like a nice fun time

#

But procedural generation is super cool

soft violet
#

Mm. You've got to watch out for the Sierpinski gasket, too. It will haunt you and will pop up everywhere when you're playing with l-sys stuff.

lime gazelle
#

GWgoaThinken idk what I want to do

#

probably should keep it simple

soft violet
#

Conway's Game of Life is a decent introduction to cellular automata, and topical.

#

Though I used my cellular propogation stuff to draw pretty pictures with pretty colours.

lime gazelle
#

I need something to place walls in the rooms

#

like inside, like divide the rooms in chunks

#

BSP could be used but I don't want boxes.

sand goblet
#

@verbal pier This is the third time you've DM'd me a Python question unsolicited.

#

If you need help, please ask your question in one of the two available help channels in the "Available" category.

verbal pier
#

i m really sorry for this

rough sapphire
#

so can you please stop?

verbal pier
#

i am really sorry for this

rough sapphire
#

Don't be sorry, just don't do it

#

You will be more likely to get help from the help channels in this server

#

rather than DMing random people directly, who might not appreciate it

sand goblet
#

Well at least it isn't just me lol

undone berry
#

(also me)

sinful turtle
#

would there be any way to make a terminal client for discord without it breaking the ToS?

rough sapphire
#

nope.

sinful turtle
#

oh that's great

rough sapphire
#

i don't really know where they draw the distinction, though

#

is a terminal application which sends keypresses to a legitimate discord client window a "custom client"?

#

but i feel like that's bending the rules

sinful turtle
#

I was thinking of a kind of wrapper around the website

rough sapphire
#

and trying hard to circumvent the tos

sinful turtle
#

because terminal web browser already sort-of exist

rough sapphire
#

I imagine they also count wrappers for legitimate clients under "custom clients"

#

as you're using that wrapper to communicate with discord, and not the client directly

sinful turtle
#

but like

#

if I used a terminal webbrowser to use discord

#

would that be allowed under ToS?

rough sapphire
#

good luck trying to get terminal-based web browsers to play nicely with js and websockets :)

sinful turtle
#

good point

sand goblet
#

I think elinks does support JS

foggy kiln
#

it supports node versions 10+

#

and is free

rough sapphire
#

i feel really fucking depressed for no reason at all

#

why me

foggy kiln
#

IDK

#

sorry to hear

solid pollen
#

I just want discord on my kindle haha

undone berry
#

is it e-ink or an actual screen?

rough sapphire
#

e-ink iirc

gentle moss
#

depends which version?

#

i swear they did a cheap one in the kindle range which was just a normal screen

sand goblet
#

they do actual tablets yeah

#

kindle fire are tablets with normal screens

#

everything else is e-ink

solid pollen
#

The kindle paperwhite 7th gen iirc

#

Not an actual tablet

plucky ridge
#

I legit thought you said "paperweight" instead

#

"Man, Akarys with the sick burn"

grave phoenix
#

Can I see the toucan?

plucky ridge
#

@rough sapphire You feeling any better than you were earlier?

rough sapphire
#

not particularly

#

but thanks for askin

pseudo crystal
#

For what it's worth @rough sapphire, I can definitely relate to how that feels. I suffered from some rather serious depression issues not all that long ago, prior to getting involved with CPython. Life was just feeling without meaning and I felt drained of energy 24/7. I don't know if it would help your situation (it may not at all), but spending my energy towards something greater than myself helped significantly and made me feel like my life had an actual purpose.

rough sapphire
#

thanks for the advice @pseudo crystal, means a lot

gusty oar
#

what is the coolest thing on computer science

#

field

sand goblet
#

Python

soft violet
#

The software they use in those experiments where they get an environment pretty close to 0K?

frosty berry
#

in the end, computers are just very intricate clocks

soft violet
#

"in the end, computers are just very intricate clocks"

Which is why, when somebody needs to cool their heels, they're put into time out?

#

My first flashcards were, I believe, Japanese language ones.

gusty oar
#

Python
@sand goblet yea its definitely lot more prettier than java 😄

clear plume
#

I’m sorry for my sins

#

But I don’t purposely use pep8

rough sapphire
#

in the end, computers are just very intricate clocks
@frosty berry ironically, computers fucking SUCK at keeping time

agile jolt
#

Hi guys I have a quick question

#

Can I min and max of randrange and add them as values in my print so it reflects if I change it

frosty berry
#

@rough sapphire i think if you apply the same standard to them, almost all clocks do

gentle moss
#

pfffft

#

one of the most curious artifacts of computer clocking i remember is Windows servers

#

pre-server 2016 the clocks would drift like a mother fucker

#

and, for some reason i still don't quite get, getting them to properly sync with an NTP server was nigh on impossible.

#

had to use 3rd party tools on more than 1 occasion

rough sapphire
sand goblet
#

A damn fine phone though

tribal gale
#

Hey, I was curious about how those apps work that lets a user see who is not following back and other nifty features. I can see how it can be made in python with selenium but I wanted to learn how can it be done on android devices.

sand goblet
#

Didn't Weird Al do a version of that song, bisk?

#

More or less the same way, Avinash..

#

And they mostly break the terms of service for the sites they operate on too

tribal gale
#

ic

#

I've been learning flutter sdk lately hence wanted to do some serious project like it

#

is there any python module to implement selenium like control on mobile devices, specifically android?

sand goblet
#

I believe that library would be selenium

tribal gale
#

selenium is supported for android? O_O How would one end up implementing it with flutter front end?

#

I've never worked with python on android

sand goblet
#

You'd control it using the browser debug port I suppose

#

With python on the computer

rough sapphire
#

@tribal gale by "selenium-like", do you still mean web applications?

#

or do you want to interface with the android UI?

#

ie arbitrary apps

tribal gale
#

initially I was only interested in web application but if we can interact with the android UI then let me know that as well. Sounds like a fun thing to mess around with!

gusty oar
#

😄

gentle moss
#

[11:42] gdude: Didn't Weird Al do a version of that song, bisk?

#

you mean hardware store @sand goblet ?

sand goblet
#

one week

gentle moss
#

ahhh

#

hmm, idk

#

looks like it

#

jerry springer related

#

:D

sand goblet
#

Oh yeah, jerry springer

#

that's the one

rough sapphire
#
function generateError(message: string, code: number) {
    throw { message: message, errorCode: code };
}

generateError("Fucking error", 300);

This is giving me the string representation uncaught exception [object Object] instead of the actual object (with no way to access its props). Is that normal behaviour because the lesson seems to indicate that there should be an actual object no its string repr.

undone berry
#

Hm, I'm not super familiar with TS - but in JS in the Chrome console that works as you'd expect

rough sapphire
#

Hrrm maybe let me try a different console

#

Weirdly in chrome it does work fine.

#

yeah, really it doesnt matter.
It was an excuse for a situation to teach the never type in TS
(which is a strange type you can give to a function return value that declares that it should never return).

#

I was just wondering why I was not getting what the instructor was getting

#

its a browser thing

#

Also weirdly enough

#

If you catch it in firefox it will give you the object

#

Its only if you dont catch it that it just shows you [object Object]

#

I guess they figure theres no reason to be throwing uncaught errors.

#

that's true.

#

oh wait, I forgot to transpile

#

yeah new Error works but you cant pass it an object

#

It doesnt matter though, its just a strange oddity

#

with a class and class NewError extends Error? I havent done that yet but I know you can

#

Indeed haha

rough sapphire
#

why does windows automatically change my time to negative three hours of what it actually is

pine vector
#

because it knows better. duh. 😄

plucky ridge
#

Might need to change what time server you're syncing with

rough sapphire
#

is it a dualboot system?

#

Mine does that too.

#

I have to check time.org for the actual time when im on windows because its just never right.

#

I havent exactly tried to solve it.

solid pollen
#

Sometimes it changes mine by 43 minutes

#

That's just silly

plucky ridge
#

Oh huh yeah, I think I do remember people mentioning that issue on dual boots...

sand goblet
#

@rough sapphire Windows assumes hardware clock set to UTC, linux assumes local time

#

or maybe it's the other way around

#

either way, that's your problem

solid pollen
#

I think it is the other way around

#

Linux the logical way, windows the... Microsoft way

rough sapphire
#

windows uses local time to preserve compatibility with windows 3.1

#

are you serious?

plucky ridge
#

Huh... I wonder how many machines even still run 3.1

sand goblet
#

I assume it's more than 0, but.. Not many

gentle moss
#

it

#

i

#

what?

#

it treats bios as local...

#

hang on...

#

run that by me again. i'm confused

sand goblet
#

yes.

#

you got it.

gentle moss
#

no, i don't feel i have got it

#

whhhhyyyyy?

gritty mulch
#

I live in the UK so it's not a problem for me...
For half of the year

plucky ridge
#

Does the UK do daylight savings?

#

Or is that just a stupid US thing

rough sapphire
#

russians don't do it

#

they stopped a few years ago

plucky ridge
#

A few states here have stopped

#

I just wasn't sure how wide spread the practice was

sand goblet
#

I think some countries in the EU are stopping in 2021 or 2022

gentle moss
#

the UK does do DST

#

i always feel bad for people who live next to arizona

#

not just because... well.. arizona.

#

but they don't have DST

#

so there's the timezone thing to contend with

#

and the fact they ignore DST

#

also the US does DST earlier. 8th of March.

#

UK does it on the 29th

#

tbh i think it should fuck off. we don't need it anymore

#

and it's shitty to impose something that's intended for farmers on the rest of the populace

solid pollen
#

Does the UK do daylight savings?
@plucky ridge day-what ?

gentle moss
#

oh hello, it wasn't for farmers

#

Willett lobbied for the adoption of DST until his death from influenza in 1915 - just a year before it was adopted as a nationwide policy in the UK in an effort to reduce energy consumption and increase war production during WW1.

plucky ridge
#

Where you change your clock by an hour twice a year

#

Was it not?

#

Huh

#

I think it was for farmers in the US

#

"Spring forward, Fall back"

gentle moss
#

apparently the U.S. did it for WW1 too

#

o_O

plucky ridge
#

I feel lied to

gentle moss
#

same

pine vector
#

i've always understood it being related to energy supply conservation. like, think street gaslights...

plucky ridge
#

In hindsight that does make more sense than "the farmers get more light" which makes little to no sense, given that they'd be setting their day to their needs anyway

pine vector
#
Germany Popularized DST
However, the idea did not catch on globally until Germany introduced DST in 1916. Clocks in the German Empire, and its ally Austria, were turned ahead by one hour on April 30, 1916—2 years into World War I. The rationale was to minimize the use of artificial lighting to save fuel for the war effort.
#

but apparently 🇨🇦 actually did it first:

...it is a little-known fact that a few hundred Canadians beat the German Empire by eight years. On July 1, 1908, the residents of Port Arthur, Ontario, today's Thunder Bay, turned their clocks forward by one hour to start the world's first DST period.
gentle moss
#

i mean daylight savings gives you more morning sunlight

#

during work hours

pine vector
#

if only it gave you more time. why do we still allow Ra to dictate our Gregorian perception of time.

#

"Daylight Savings Time interest rates remain stagnant at 0%" seems like an Onion headline...

gentle moss
#

:D

plucky ridge
#

Yeah, what the hell Greg

#

....orian

#

Oh no wait

#

Greg or Ryan

#

There we go

#

nailed it

pine vector
#

lol

rough sapphire
#

DST - akin to cutting a few inches from the end of a scarf and sewing it to the other, and claiming it is a longer scarf

gentle moss
#

i like that

#

borrowing it

#

you can have it back in 6 months

rough sapphire
#

@pine vector tbf your circadian rhythm and metabolism don't give a fuck what time it is

#

only when the sun is out

#

Eating hours outside of sunlight or routinely working nightshift cause an increase in rates of cancer, obesity, etc.

#

Not just because you eat like shit either, you literally get fatter eating the same thing at night as you do during the day.

pine vector
#

ok. i... was it the Ra comment? was the sarcasm not thick enough? 😄

rough sapphire
#

I think I'm going to be switching to VSCode for all the front end stuff I do....

#

I haven't really tried it with Python yet.

#

But basically, Microsoft maintains TypeScript and VSCode and it has pretty good built in linting. Not to mention it has live server extention. I'm pretty sure they own npm now as an extension of owning Github...

#

Part of me hates to be part of the corporate dystopia but like... its pretty useful. lol

rough sapphire
#

scss is hella weird.

lime gazelle
#

@sand goblet sorry to ping you. I do have a question. Is SLAM too hard for a newb to even attempt?

#

I have a sneaking suspicion it freakin is. But it looks very cool.

sand goblet
#

What's SLAM?

rough sapphire
#

c'mon and slam

#

and welcome to the jam

lime gazelle
#

Simultaneous Localization And Mapping

#

Like

#

Uhm

#

It's basically computer vision as I understand it

#

the robot/camera walks around and builds a map of its surroundings as it goes

sand goblet
#

I know some of these words

lime gazelle
#

Like idk if it's just, too out there

#

without formal education

#

Like I doubt there's "How to computer vision 101" somewhere

sand goblet
#

I have no experience with any of this

lime gazelle
#

GWkyooTohruThumbsUp no problem

#

It probably is too hard anyway

tacit flint
#

Can you remove code caves? If so, how?

rough sapphire
#

"remove code caves"?

#

what are you trying to do?

#

@lime gazelle hmm

#

@lime gazelle it's not too difficult if you make the problem reasonable. starting with full-scale videos\imgaes is probably too difficult.

#

@tacit flint or rather, why are you trying to do this?

#

@lime gazelle also it really depends on which parts of this you want to do. there exists libraries that can already do this for you.

#

I guess the problem might be the real-timeness 🤔

tacit flint
#

compression

rough sapphire
#

what do you think a code cave is?

tacit flint
#

extra space on an executable

solid pollen
#

I mean, I don't think there are some random empty spaces for no reason in executables, are there?

rough sapphire
#

it says "in the process's memory" on wikipedia

solid pollen
#

Ah, is that another term for memory fragmentation?

tacit flint
#

for no reason
but there is a reason
it says "in the process's memory" on wikipedia
but you can still have code caves in executable files

rough sapphire
#

@tacit flint so you want to compile into a smaller executable?

tacit flint
#

yes

solid pollen
#

So... If there's a reason, you should keep it, right?

rough sapphire
#

well, the proper way is to not link anything into the executable that is not absolutely necessary

#

or include

tacit flint
#

the purpose of code caves is so that there is space for some code to be patched
but i don't need to patch my executable, so it's useless for me

rough sapphire
#

how much do you expect to save space

tacit flint
#

50%

rough sapphire
#

from what amount

tacit flint
#

3 KB

#

yes i know

rough sapphire
#

this is C?

tacit flint
#

c++
but it doesn't really import stuff

rough sapphire
#

how large is the object file

#

after compilation

tacit flint
#

the iobj file is 23 KB

rough sapphire
#

so after linking it gets squeezed to 3KB?

tacit flint
#

yeah

rough sapphire
#

I'm not sure how or why that makes sense 🤔

#

shouldn't it increase in size after linking

#

or does the linker do something like cut out additional things

#

that are not actually needed

tacit flint
rough sapphire
#

or is the OBJ file not stored as-such in the executable hmm

tacit flint
#

but i am still unsatisfied with the size

rough sapphire
#

try to figure out the relationship between your object files and your executable

#

what does your code do

#

what is it invoking

#

importing?

tacit flint
#

Well the source code calls windows.h and that bundles a lot of crap, which the linker removed

rough sapphire
#

okay so that's why the object file is so large

#

that's not what code caves are

#

if you have unused space in your binary, it's neglible at best and used for alignment purposes

tacit flint
#

yes

#

what if i don't want to align my binary?

rough sapphire
#

there are better ways of reducing size

tacit flint
#

such as?

lime gazelle
#

@rough sapphire Like...idk. I just seems like a cool thing. But maybe it's not for me.

#

I don't really know what I want to do. SLAM is very very cool, but maybe not my thing. Idk.

#

Like anything robotics is real nice. Pathfinding algos, SLAM, computer vision (which are kinda overlapping) and stuff like that. Real cool. Automation in general.

rough sapphire
#

@lime gazelle the cool stuff always starts from the basics

lime gazelle
#

Yes

#

But there is too much cool stuff

rough sapphire
#

i'm not strictly working in any of those but they kinda brush on the things I have worked with and am trying to apply for

#

what I can tell you is that you don't have to be a master of some magical thing to be able to do something with those

lime gazelle
#

Maths, mainly

#

which is arcane magic for me

rough sapphire
#

the math part is kinda 50/60

#

there will be trouble if you don't know it, this is true.

#

but that doesn't mean you can't start writing code and making actually working things

lime gazelle
#

GWgoaThinken well that'd be useless

rough sapphire
#

is it

lime gazelle
#

Like cool. It works. How?

#

It'd be a black box

rough sapphire
#

but you will be learning all the time

lime gazelle
#

GWeniSadNeko there are too many cool algos to do! And too much knowledge required!

#

Oof

#

But I'll try. I have to find something I really like

#

Which is not easy

lime gazelle
#

Like, I don't even know if I wanna go down that route.

#

It seems cool. But so do OS and Emulators.

#

There's just, too many. I wish the choice was made for me.

rough sapphire
#

you're young

#

you have time for all of that

lime gazelle
#

Time? Maybe. Mental energy? Probably not

#

Like

#

I tend to be single tracked

#

I focus on one thing until I get bored (which happens very fast) and then abandon it.

gentle moss
#

fffffffffffffffffffff

#

cat's shat in the flowerbed i was making

#

:|

lime gazelle
#

free uh...what's the name...

#

the thing you put to make plants grow better

#

fertilizer

gentle moss
#

fertilizer

#

cats shit is not good fertilizer

lime gazelle
#

Oh

#

well

gentle moss
#

oof, my laptop is hitting ~65c idle in the sun

velvet rapids
#
async def 1(self, ctx, item: int, amount = None):

any way I can name my method a number?

wheat lynx
#

Nope, you could use _1 if you really want to use a number

velvet rapids
#

Hmm, I'll just use a discord alias

lime gazelle
#

async def a_number

#

🙂

#

Ban me

velvet rapids
lime gazelle
#

thanks

gentle moss
#

Awwww yis

rough sapphire
#

hey bisk

#

can I ask you something

gentle moss
#

you wont know until you do

rough sapphire
#

does this make sense to you

#

> Architected cloud-native application design for managing IoT device workflows and bla bla

gentle moss
#

by make sense do you mean:
a) i understand what it means
b) is readable and not full of bullshit?

rough sapphire
#

both

gentle moss
#

a, i get what it means

#

b, it's totally buzzwordy imo

#

Architected? pfft.

rough sapphire
#

well it is architecture.. how else can it be worded

gentle moss
#

why does that word need to be there?

rough sapphire
#

can't say engineered, because it's like building things from scratch

gentle moss
#

"Cloud-native application designed for managing IoT device workflows"

#

it's clear that it's built, because it exists

rough sapphire
#

ok but how about if it's a sentence on a CV

gentle moss
#

hmm...

#

yeah, that's more okay

rough sapphire
#

should I remove the design word, is it superfluous

gentle moss
#

possibly.

#

is this an accomplishment?

#

"Designed and implemented a cloud-native application for managing IoT device workflows"

rough sapphire
#

well it's not implemented yet

gentle moss
#

ahh

rough sapphire
#

>Currently leading an international team with a budget of xyz for zmr development

#

I listed that separately after it

lime gazelle
#

I thik I've found the song with the best name:

#

Homo Electronics

sour horizon
#

Do you guys have a good community for make:ing / developing Discord bots ?

#

or am i already in the golden spot?

#

think i found that there is a channel in here already

wheat lynx
#

Yep, I'd say here I pretty good, we have a #discord-bots channel for discord.py specific questions and the help channel system for python questions in general

sour horizon
#

Alright, that is awsome, will bookmark it but i'll think i will keep my questions here since im building up my Python skills and using Discord bot as a tool for it

wheat lynx
#

Sure, sounds like a good plan to me

#

Are you quite new to python?

sour horizon
#

I have built few gadgets but i believe my fundamentals need to be improved

#

im a Network Engineer by trade

wheat lynx
#

Oh nice

sour horizon
#

So right now i have a Subnet calculator i want to build in for our servers bot

wheat lynx
#

Cool, that shouldn't be too difficult once you get to know discord.py and python better. Have you made the subnet calculator already and just want to make it into a bot?

sour horizon
#

I have a prototype and want the bot to run it and reply with the answer

#

it's really small and simple but it does the job
using the ipcalc library for it so

wheat lynx
#

Yeah, that's a good start. You're halfway there already and you don't need to do anything too complicated with discord.py

#

Anyways, I'm off for now. Good luck!

sour horizon
#

Thanks alot, have a good one @wheat lynx

pearl horizon
#

I did it! Finally replaced my old GH pages site with something new. Using Nikola to generate content and starting to get some ideas together for a custom theme of my own

gusty oar
#

i'm so grateful to jetbrains that they give free edu licence

#

i can draw my homework uml diagrams easily in intellij ulti

#

they are my favourite company 😄

gentle moss
#

who was it that linked Redfang a bit ago

#

@plucky ridge ?

#

been doing garden work and listening to them.

#

👌

#

just missing some berrrrrrrs

low shadow
#

Is it possible to add ram to my laptop

rough sapphire
#

@low shadow depends

gentle moss
#

maybe. google the make and model.

low shadow
#

Using some devices, what's the device name that lets you add external ram in laptop

gentle moss
#

laptops typically have 2 RAM slots

sand goblet
#

depends on the laptop, often it's soldered to the board

gentle moss
#

and no

#

there's no "external RAM"

rough sapphire
#

RAM has to be very close to the CPU because it's super integral to have high bandwidth.

gentle moss
#

don't mention the S word.

low shadow
#

Ok

#

What is S word

rough sapphire
#

i have no idea. soldered?

gentle moss
#

yeah.

#

soldered RAM

#

fucking awful right?

#

😓

rough sapphire
#

that does sound pretty gross

low shadow
#

So I can't add

#

Hmm

rough sapphire
#

@low shadow google your laptop

gentle moss
#

google the make and model

rough sapphire
#

it really really depends

gentle moss
#

it may have an expansion slot, it might not.

#

¯_(ツ)_/¯

low shadow
#

So that device is called expansion slot

gentle moss
#

no.

#

there are 2 slots on the average laptop motherboard

#

USUALLY

rough sapphire
#

well yes the slot is called that but it's on the motherboard

gentle moss
#

manufacturers only use 1 slot

#

sometimes they use both

low shadow
#

There are two slots on this cpu

#

Idk about laptop

gentle moss
#

that's a computer, not a CPU

#

a CPU is the central processing unit of a computer

low shadow
#

That's a BOX

#

Box with motherboard

cold pewter
#

@low shadow you from a asian country ?

gentle moss
#

yeah whatever

low shadow
#

@low shadow you from a asian country ?
@cold pewter yes

gentle moss
#

better go check on my marinading chicken

cold pewter
#

@cold pewter yes
@low shadow yeah me too .. guess by the table clothe .. lol

low shadow
#

Hmm

#

Also if my CPU processor is slow but if I add 16 GB ram(2x8gb)

#

Then can I run games

#

Fast

wheat lynx
#

No

low shadow
#

Dying light was 1fps in my laptop

wheat lynx
#

You might benefit from a GPU if you don't have one

low shadow
#

So is there device to add external gpu

#

To laptop

gentle moss
#

no.

sand goblet
#

yes.

rough sapphire
#

those exists but they're iffy

sand goblet
#

there is.

gentle moss
#

g

#

no.

#

don't.

#

please don't.

wheat lynx
#

Oh, for a laptop, there isn't really much you can do

sand goblet
#

but god damn are they expensive

low shadow
#

Ok

gentle moss
#

they also only work on very specific laptops

#

designed for it

sand goblet
#

also you need a thunderbolt port

#

which you don't have on a laptop that old

low shadow
#

Leave it

#

Fuck the laptop

sand goblet
#

I'd rather not

low shadow
#

I can't play latest games

gentle moss
#

also, Metro Dying Light is not exactly the "lightest" game

low shadow
#

I m so irritated right now

gentle moss
#

and if your actual CPU is crap

#

no GPU or RAM in the world will make it work

low shadow
#

I can't run even watchdogs

#

And dying light

#

And .....

gentle moss
#

the fact that that motherboard

wheat lynx
#

Downloading some RAM is a cheap option

gentle moss
#

i can clearly see doesn't have built in ethernet

rough sapphire
#

you can probably run the ingenious games the discord game jam 2020 produces

gentle moss
#

oh wait, it does

#

nvm

#

but it's still got a fucking game port

#

that's gotta be some ~2000 shit

#

and a parallel port? rofl

sand goblet
#

oh wow, yeah

#

that's some vintage computer

low shadow
#

Maybe I will buy new laptop after year or 2

gentle moss
#

no GPU, clearly ancient motherboard

low shadow
#

A gaming laptop

gentle moss
#

i'd rate it a 0/10 for playing games

sand goblet
#

it looks like it maybe had a GPU and it got yanked

gentle moss
#

onboard GPU's of that era as well

low shadow
#

Until then I will watch liverflow

gentle moss
#

oof

#

they came as a different chip rather than CPU integrated

sand goblet
#

look at the fan

#

2008

gentle moss
#

that's just the PSU

sand goblet
#

were we using parallel ports in 2008?

#

I don't think so right?

gentle moss
#

for all we know it could've blown and been replaced

sand goblet
#

oh, true

gentle moss
#

who even makes PSU's like that anymore?

low shadow
#

Isn't it possible to combine my BOX and Laptop ram and CPU to use it for playing game? Just wondering

sand goblet
#

with the input and output? makes you wonder

#

No

#

they're not the same thing

gentle moss
#

haha

thorn snow
#

@low shadow It's too slow

gentle moss
#

also, RAM isn't your only problem

#

your computer is over 10 years old, at a guess

low shadow
#

2011

gentle moss
#

and even 10 years ago it'd probably still be ancient

thorn snow
#

The problem here is the speed of your network and overhead and latency that comes with the whole thing

gentle moss
#

like, a low spec machine

sand goblet
thorn snow
#

However, you can execute the game on your box and play on your laptop with steam

sand goblet
#

no can do.

gentle moss
#

scorch, the problem is his computer is a brick

#

that's the end of it

thorn snow
#

Well, the previous one is a L memory

gentle moss
#

:D

thorn snow
#

as in, low voltage

gentle moss
#

it's at least a decade old

thorn snow
#

Yeah, but even with a powerful machine, the ethernet latency slows it down too much for distributed computing being used in a game

#

even if you'd cluster it

gentle moss
#

tl;dr @low shadow: no, your laptop and your PC wont ever be able to play those games.

low shadow
#

Ok

#

Those high spec game
... Uhh

gentle moss
#

and in future if you want to play games, don't buy a laptop. buy a desktop PC.

thorn snow
#

AMD Ryzen are very powerful and really cheap

#

the r5 1300 is like 50 bucks

low shadow
#

I will buy gaming laptop or pc

#

Later

thorn snow
#

Gaming laptops are overpriced turds

#

can build a decent gaming desktop for a fraction

gentle moss
#

you can build a gaming rig these days pretty cheap

#

if you only want 60fps on 1080p

low shadow
#

What s gaming rig

gentle moss
#

on low / medium settings

#

"rig" is slang for computer

#

usually one that's self built

low shadow
#

Hmm

#

Rig Reminds me of bitcoin mining

#

When will i9 come

cold pewter
#

isnt it already here ?

gentle moss
#

it is

sand goblet
#

yeah, it is

#

has been for ages

low shadow
#

Oh it is released?

thorn snow
#

Get a Ryzen

#

better bang/buck

#

and less hardware dlc

cold pewter
#

red army enters the chat

low shadow
#

439$ = Intel i9 , budget = 50$ hahah

gentle moss
#

duh.

#

i9's are the top of the line CPU

thorn snow
#

Ryzen has more threads, larger cache and a higher base clock speed

gentle moss
#

you can get an i3 for like £60 - £70

low shadow
#

Hmm

gentle moss
#

both companies have budgets

#

but i'd not get an i3

#

as scorch says, the ryzens are better

low shadow
#

Hmm

#

┬─┬ ノ( ゜-゜ノ)

thorn snow
#

and I am writing this from a desktop with an Intel CPU

#

just saying, because someone said red army

low shadow
#

i9 = 1638$ omg , only bill gates and his successors are going to buy that

cold pewter
#

it was a joke man .. ik ryzen is better ..

low shadow
#

Ok

gentle moss
#

that's not even the most expensive "consumer" CPU on the market

#

the Threadripper is like $3699

#

that thing is beast

thorn snow
#

The data center I work for recently introduced Epyc Servers

wheat lynx
#

Isn't that model 64 cores or something?

gentle moss
#

more like a pro-sumer CPU though

low shadow
#

Ohno

gentle moss
#

yeah wookie

#

64 core, 128 threads

rough sapphire
#

64 cores huh

gentle moss
#

it fills a tight niche tbh

low shadow
#

Just by listening money 3688 I m going to say that's processor a killer

thorn snow
#

Not suitable for gaming though, in gaming mode it disables it's other half

wheat lynx
#

Sheeeeesh

thorn snow
#

Threadripper is basically 2 CPU soldered together

rough sapphire
#

what do you do with those cores

gentle moss
#

i mean, not really

#

that's how windows treats it

#

but it's a true 64 core

#

not two chips on a die

#

i can see that type of CPU being useful for certain workloads

#

perhaps a 3d artists workstation

rough sapphire
#

64 cores has to have some potential for serious machine learning already 🤔

#

in addition to a GPU

thorn snow
#

Hmm, probably more like SOHO VM server

low shadow
#

Ryzen max is 500$ hmm

gentle moss
#

maybe scorch

thorn snow
#

for a 3d artist PC the 3900X should suffice

gentle moss
#

i hesitate on server based stuff for it

#

since it doesn't support standard ECC dims

#

it's like...

#

pre-server market CPU

#

but definitely not consumer

#

"pro-sumer" is the word that gets tossed around

#

and i hate it :(

rough sapphire
#

you could do some bunch of virtualization already on it

#

like run 16 different operating systems

thorn snow
#

Proxmox would deffo run great on it

low shadow
#

Is vram part of ram

thorn snow
#

Video RAM

#

so, no

gentle moss
#

(or virtual)

thorn snow
#

it's part of the GPU

#

Well, it kind of is for integrated

low shadow
#

Part of GPU?

thorn snow
#

If you have a dedicated GPU, it has RAM on it

rough sapphire
#

so basically you could throw around like 32 docker containers

thorn snow
#

that is referred to as VRAM

rough sapphire
#

each on their dedicated core

low shadow
#

Ok

thorn snow
#

@rough sapphire DO not confuse Virtual Machines with Containers

#

2 things here

gentle moss
#

^

rough sapphire
#

@thorn snow i know but still, containers can run on cores on themself

gentle moss
#

can docker even core allocate?

low shadow
#

JVM Vs docker

rough sapphire
#

I think it can

gentle moss
#

i know you can restrict CPU usage

#

i suppose it makes sense you can tell it which core to launch on

#

but why would you want to restrict it to a single core

#

hmm

thorn snow
#

It's better to let the OS's thread scheduler do the job there

#

Affinity is not strict, it's only a request

#

the OS can still override it

#

These many cores are really good when you do IOMMU grouping IMHO

#

not sure if the Threadripper can do that though

gentle moss
#

i think it does?

#

yeah, it does.

#

finally, it's cooled off.

#

fire it up bobby! 🔥 🍖

thorn snow
#

Your FX CPU?

gentle moss
#

haha

#

you could bury that bastard under the polar ice caps and all it will do is contribute to global warming

#

you could shoot that straight into the sun and all it'd do is make it hotter

#

when i retire that PC i might see if i can cook a mini steak on it

thorn snow
#

It's on the recommended watching list of my workplace

gentle moss
#

Bookmarked

#

So little to do at work atm

thorn snow
#

We are slammed

#

Traffic has increased where it would normally start to decline

#

as in, from Winter to Spring

gentle moss
#

Can imagine

thorn snow
#

we are currently changing optics to increase bandwidth

gentle moss
#

We've got the opposite problem

#

7 in 10 UK companies have furloughed staff

thorn snow
#

the other day I've upgraded our muxer by a couple of 100 gbit

gentle moss
#

As a support company that means no tickets

#

But our support contract money is coming through so we can afford to keep our staff

thorn snow
#

No Virtual MAchines in the portfolio?

gentle moss
#

we manage a bunch of our customer's servers / VM's, yeah

#

but i mean really, wtf is there to really do

#

they tick along nicely

#

got some CVE patching to do and that's about it

thorn snow
#

No hardware around for some fun projects?

gentle moss
#

can't go into the office

thorn snow
#

I have a lab at work with a dozen of switches/routers to play around with

gentle moss
#

we're pure work from home atm

thorn snow
#

oh ok