#ot1-perplexing-regexing

1 messages ยท Page 386 of 1

low shadow
#

did i hallucinate

#

or it was u aliver

rough sapphire
#

will need to change my password

#

HAHAHA

low shadow
#

oh it was your password , lol

#

moving on to my question how can this not cause error?var1 db 'Hello World', 0xa

undone berry
#

I have a bunch of pngs with tonnes of empty space surrounding them - is there a tool I can use to mass crop them?

#

currently i have literally nothing installed

low shadow
#

use a commad line tool to crop then * for every file

pearl horizon
#

I have a feeling one of the python modules may be able to auto crop. Or if they have a specific dimensions you want to use, can easily automate it

soft violet
#

imagemagick might be versatile enough.

pearl horizon
#

Was just gonna say imagemagick as well

undone berry
#

I'll check out imagemagick - thanks

pearl horizon
#

Almost certainly has something along those lines

soft violet
#

If not, you could load it into pypng and do a thing.

thorn snow
soft violet
#

Or PIL.

pearl horizon
#

@low shadow actually your string is 13 bytes. The 0xa at the end is the line break I believe

#

Or possibly a null terminator I might have heard someone call it before

low shadow
#

my question was that var is of 1 byte right

thorn snow
#

0xA is \n

low shadow
#

so how it fits 13 byte string

thorn snow
#

so yes, line feed

pearl horizon
#

No, in that line, var1 will be 13 bytes long

#

One byte per character, plus newline

low shadow
#

var1 db 'Hello World', 0xa ; here db means var1 = 1 byte right?

pearl horizon
#

It's been a few months since assembly. Trying to remember that bit

#

That would be double byte?

#

Wrong term I think

#

I can pull up some of my assembly stuff in a minute. Might have notes on that

low shadow
#

db = byte dw = word and so on , byte = 8 bit, word = 16 bit Hello World 0xa = 13 bit , correct me if i m wrong

thorn snow
#

db is a database entry

#

here, it's the string table

pearl horizon
#

There we go, yes

thorn snow
#

An exe has a string table, where these things are stored

pearl horizon
#

It's defining the string to be stored with that reference - var1

thorn snow
#

that mnemonic tells the linker to store that string in there

pearl horizon
#

Otherwise it would just be a random string with no actual reference to it. I think I'm remembering that right. Could be wrong

thorn snow
#

var1 is the label for that entry

#

to use the right terminology

low shadow
#

ok

thorn snow
#

and as I said, 0xA means \n and that is a linefeed

#

A in hex is 10

#

Learn binary and hex, it makes your life a lot easier

pearl horizon
#

looking at some of my code, the instruction would be telling the assembler: inside the executable data section, allocate this amount of memory, store this in it, and reference by this label

undone berry
#

(Imagemagick was a great shout - thanks)

pearl horizon
#

i hope thats right. only spent a month or two with assembly. broke off because it was getting far far too over my head as i got deeper in

thorn snow
#
128 64 32 16 8 4 2 1
``` So this is the notation for one byte, with the values. Using hex, you split this in half:

8 4 2 1 | 8 4 2 1

#

Then you get the hex

pearl horizon
#

good stuff. i need to learn to make more use of it myself

thorn snow
#

Example for 100:

128 64 32 16 8 4 2 1
 0   1  1  0 0 1 0 0
#

Converted:

8 4 2 1 | 8 4 2 1
0 1 1 0 | 0 1 0 0
#

Which makes 0x64

pearl horizon
#

ahh that makes sense. pretty simple/straightforward in a way

low shadow
#

interesting

#

i like 0x format

thorn snow
#

When the sum on any side is above 10, you use the letters from A to F

#

A is 10

low shadow
#

0xff means f represent a nibble and another f represent another nibble as liverflow said

pearl horizon
#

im usually good to work out binary on paper. and can work with hex mostly fine. but conversions or multiply/divide i always need a calculator

thorn snow
#

as a networker hex is second nature ๐Ÿ˜„

#

and binary

low shadow
#

finally lot of my question are automatically solved

#

dexter you should definetly read this

pearl horizon
#

haha true that. networking is one of those 'black boxes' for me as soon as you get deeper than about a basic http request

thorn snow
#

@pearl horizon It's actually easier because you work on those basic layers

#

You only deal with OSI 1-4 most of the time

#

I don't need to pull my hair out over configuring a new web server

pearl horizon
#

ahh didn't have that site bookmarked, but its now. i did have several other syscall tables i would reference. and many many other things. never got comptent enough to write my own from scratch code

thorn snow
#

mtr, dig, host are my most used tools

#

rest is cables and optics ๐Ÿ˜„

low shadow
#

also man 2 syscall gives you every thing about syscall for every ARCHITECTURE

pearl horizon
#

I mean, I can set up/maintain the little test servers i run. Usually always have apache/php/mysql running on my desktop. I do sniff around in things like http program, or similar now and then

thorn snow
#

In networking, the only thing you set up is switches and routers and those are pretty straight forward

#

I love the Juniper command line

#

it's easy to understand

#

CISCO is a pain in the ass

low shadow
#

CISCO is router?

thorn snow
#

they make networking hardware, yes

low shadow
#

oh

thorn snow
#

WHen I say router, I don't mean the thing that you have at home though

low shadow
#

WHen I say router, I don't mean the thing that you have at home though
@thorn snow what do u mean then

thorn snow
low shadow
#

lol

pearl horizon
#

hmm.. i know how to set up routers and all that. but i havent ever actually done more than the simple home stuff. would like to build a rackmount server or screw around on one someday

#

most likely going to pick up some vps hosting soon. at least once i get my website to the point i want it on it's own domain, or have a need for more the GitHub Pages

thorn snow
#

just get web hosting

#

you need a lot of knowledge to properly use vps

#

and administrate them

undone berry
#

Do you? I've used them in the past and just treated them like physical servers

#

They seem pretty trivial to work with

thorn snow
#

well, you need to know the pitfalls, need to handle IP tables etc

low shadow
#

VPS is very famous nowadays

thorn snow
#

that can be challenging

low shadow
#

i always confuse VPS with VPN

undone berry
#

just checking - vps is virtual private server?

low shadow
#

yes

#

like amazonaws right?

thorn snow
#

yes

undone berry
#

What is it that you have to do with a VPS that you don't have to do with a physical server?

pearl horizon
#

possibly. i get that. id consider myself at least pretty well experienced with linux in general, though i know where i could use work. still considering all the options, so nothing really decided yet. but thats one ive been leaning towards for a bit

thorn snow
#

No difference, that isn't what I meant

undone berry
#

Or do you mean running the hypervisor properly?

thorn snow
#

What I mean is people sending private IP into the internet and if you do that too often, you'll get your server locked

pearl horizon
#

nothing more than wanting to have control over how things are set up, and being able to have the flexibility to try out all the little things i like screwing around with

thorn snow
#

or getting their stuff hacked

#

I deal with that on a daily basis

low shadow
#

how can u get hacked from private IP

What I mean is people sending private IP into the internet and if you do that too often, you'll get your server locked
@thorn snow

thorn snow
#

it's called network abuse

low shadow
#

or getting their stuff hacked

pearl horizon
#

thought about setting up a private git server, for my own projects. the web stuff

thorn snow
#

@low shadow That isn't what I said, at all

low shadow
#

ok

pearl horizon
#

other things as well, but not listing the ones i know can be done on both types of hosting

undone berry
#

Oh sure - I get what you mean now

thorn snow
#

If our network detects package with private IP as destination, your server get's flagged

pearl horizon
#

you mean hosting things i shouldnt online?

thorn snow
#

we request a statement, if you don't reply what we want to hear, you get locked

pearl horizon
#

nah, not something id be doing

low shadow
#

If our network detects package with private IP as destination, your server get's flagged
@thorn snow which our network

thorn snow
#

most do it unintentionally because they don't block those ip ranges

#

RFC1918, 100.64.0.0 CGNAT range and APIPA range

#

those are forbidden on the internet and your vps is "in the internet"

#

I am not meaning to scare you, but read up on what data centers expect from administrators

#

it varies a bit

#

some networks just drop private IP silently, we send out abuse mails

gentle moss
#

fuck me scorch

#

that's a hefty router

#

:D

thorn snow
#

yeah well, when you dish out 3 tb a second you need some power ๐Ÿ˜„

gentle moss
#

:D

sand goblet
#

I remember using a host that recommended using private addresses to communicate between servers in the same datacentre

#

lol

gentle moss
#

that's the sort of router i'm used to

sand goblet
#

Today I expect routing in most of these places is better than that

gentle moss
#

we've got 3 deployed at different locations

#

and they're way overspecced

thorn snow
#

@sand goblet No can do here, they all have public IP

low shadow
#

is i386 same as 32 bit

thorn snow
#

you can set up a VPN between them though

gentle moss
#

i386 is 32bit

thorn snow
#

or group them and install the mikrotik router software

gentle moss
#

we barely hit like 20% capacity on those netgates

low shadow
#

ok

thorn snow
#

we offer virtual switches for that

gentle moss
#

you done much with pfsense in your line of work scorch?

thorn snow
#

Not really. Juniper and Cisco have integrated firewalls

sand goblet
#

I have a microtik switch here at home

#

because I needed something that wouldn't cost us a kidney

#

haha

thorn snow
#

probably just pfsense as well

low shadow
#

what is i915 is it a new arch like i386

thorn snow
#

who knows ๐Ÿ˜„

sand goblet
#

that's the intel HD graphics driver

low shadow
#

ok

gentle moss
#

pretty sure juni and cis have their own shit going on

#

those netgate devices are fucking slick though

#

i used 70 machines to try to load test it

#

couldn't even hit 50% capacity

#

but we don't go near your levels of traffic

#

oof

low shadow
#

if i update i915 (intel driver ) driver in kali , will it be updated in windows

sand goblet
#

no

thorn snow
#

We have 2 base router on each dc, then up to 400 l3 switches in those rows and 1 access router per building row, which is 2 data center floors

low shadow
#

ok

sand goblet
#

that doesn't even make sense

low shadow
#

ok

sand goblet
#

ok

gentle moss
#

so what're your PPS rates through your edge routers?

#

gotta be tens of millions right?

thorn snow
#

it all runs over various PNI and transits, but about 3 tb/s total

#

packages I don't know

gentle moss
#

not sure on the PPS rates?

#

ah

thorn snow
#

I think about 6 million should be highest

#

not something I look at often

gentle moss
#

we hit about 300k max

#

usually after patch tuesday

thorn snow
#

well, as I said, it's all over multiple routes, routers, PNI etc

#

it's hard to tell the overall total

gentle moss
#

i think i'd like to stay at my level of net admin for now

#

<_<

low shadow
#

hey bisk

thorn snow
#

Eh, if you know the basics, everything else is just complexity

low shadow
#

@gentle moss

#

oh got it searched for this video

#

and got this

gentle moss
#

uuuhhh

#

why have i been summoned?

low shadow
#

sorry got it

gentle moss
#

make sure to watch it all and follow up on the reading material

low shadow
#

you remind me of game where i summon monsters and necromancer

gentle moss
#

yes.

#

i am a monster.

#

be careful when you summon me.

rough sapphire
#

@gentle moss

gentle moss
#

abiskalisk

#

i got fangs yo

low shadow
#

aBiskBumBleBee

gentle moss
#

i'll disregard that#

low shadow
#

see the B's

thorn snow
#

Shit's getting real. SOme still think the virus is a joke

#

today police has put a whole apartment block under quarantine and put up fences and controls

low shadow
#

oh u mean corona virus

thorn snow
#

Because an infected family was still having visitors

low shadow
#

oh

gentle moss
#

sounds reasonable to me

#

this thing is fucking mental and you should obey guidelines

thorn snow
#

They've also put the infected family into a guarded quarantine

#

basically prison ward

undone berry
#

christ though - quarantining a whole block like that is something

gentle moss
#

true enough

#

but if people aren't going to take it seriously

#

well fuck

rough sapphire
#

we're getting to the point of the lockdown in the UK where people stop taking it as seriously

gentle moss
#

show them it should be

#

indeed neon

#

i'm seeing it

#

our neighbours have some people over

undone berry
#

Spreadsheet Phil started calling to open up the economy again

#

waaay too soon

gentle moss
#

fuck sake

#

Hammond?

undone berry
#

yeah

gentle moss
#

what a prick

#

couldn't even run the economy

undone berry
#

thankfully he's not in government any more - but he probably reflects the opinions of a lot of MPs right now

gentle moss
#

what the fuck does he know about economics

#

is my thought

rough sapphire
#

the media are pushing the "open up the economy" narrative

#

just. follow. the. science.

#

it's not hard

gentle moss
#

and fucking Hat Mancock is deflecting from his failures too

#

"we'll have 100k tests a day soon."

#

2 weeks later

undone berry
#

it is hard when the scientific advisory group is having non scientists rock up to meetings and almost certainly pushing some angle

gentle moss
#

"OH I MEANT CAPACITY TO TEST. NOT ACTUAL TESTING."

#

get tae fuck you useless shit

rough sapphire
#

he has some modern art picture of the queen in his house

gentle moss
#

that's enough to show he's a tosser

rough sapphire
#

you see it when he does the zoom? skype? w/e

gentle moss
#

and they're still using zoom

#

ffs

undone berry
#

Matt Hancock is the king of slime

gentle moss
#

aye

#

he's no classic dom

#

but he's definitely a shithead

#

and where the fuck is our "leader"?

#

he's spent more time this year on holiday or being sick

#

than doing his fucking job

rough sapphire
#

still recovering, i'll give him that

gentle moss
#

well he's well enough to talk to Trump about trade

#

so he should be able to answer questions from MPs

rough sapphire
#

talk to Trump about what trade exactly?

undone berry
#

If he can plan trade deals - he can speak in parliament

#

Brexit trade deal

rough sapphire
#

the US-UK deal that nobody wants?

gentle moss
#

yup

rough sapphire
#

oh god please fucking not

gentle moss
#

you realise this whole shit show will be used as a way to force through shit deals?

rough sapphire
#

if we get that deal i'm going vegetarian ffs

gentle moss
#

right?

#

they can use it to their political advantage

#

the devious cunts

#

AW SHIT

#

sorry mods

#

i'd been so good.

rough sapphire
#

NHS is back on the menu lads

undone berry
#

Coronavirus will be used to try and jam through the worst of the worst trade deals - to kickstart the economy

low shadow
#

have any of u faced game addiction

rough sapphire
#

lmao always misdirect and apply blame

undone berry
#

that's the first ping I've seen from you ever I think

gentle moss
#

indeed

#

eh, you've missed a lot

#

my c usage was pretty high up there

undone berry
#

I know the stories of you being worse - but since I've only seen you avoid it

gentle moss
#

i am better now

oak tangle
#

Oh, hello bisk

#

how are you?

gentle moss
#

i am angry at our government

#

and used a bad word :(

oak tangle
#

that's imaginable

rough sapphire
#

i still want to reverse brexit

#

still makes me fucking angry

gentle moss
#

not gonna happen mate

#

it's mitigation now

rough sapphire
#

there's no mitigation

oak tangle
#

who cares

gentle moss
#

well there are mitigation options

oak tangle
#

you can have blue passports

gentle moss
#

they're black

undone berry
#

Brexit will be reversed - just in 30 years time when we've slipped from 5th biggest economy to 15th

rough sapphire
#

notice how they waste months fighting over stopping no-deal and now nobody gives a shit we're getting no-deal? what the bloody fucking fuck

oak tangle
#

whatever

gentle moss
#

i mean they were meant to be blue

#

but when they came back from the POLISH printing factory

#

they were black

oak tangle
#

well, it did keep coronavirus out of your borders, right?

gentle moss
#

the irony of having to contract out that

#

yeah of course

#

we're a free land of fish eating people

oak tangle
#

why don't you build a wall around your isle?

gentle moss
#

because it's an island

oak tangle
#

yeah, so?

thorn snow
#

Britain was never ready for a united Europe. They've always tried to get the benefits of the Eu without the cost

gentle moss
#

not sure a wall would beat a sea

#

indeed scorch

#

we've been the dick in the room

#

the whole time

#

reap the benefits but trying to prevent anything positive moving through

#

oh shit i hear a bbq that needs firing up

undone berry
#

Euroscepticism has been pushed by a shitty press since before we even joined - very difficult to even try and embrace it when there's so much pushback

rough sapphire
#

too many years of bullshit tabloids

#

it's easy for politicians to just scapegoat the EU instead of doing their fucking jobs

undone berry
#

Yeah, Murdoch, the Barclay brothers, and Paul Dacre can all get in the fucking bin

rough sapphire
#

politicians will blame our economy on corona instead of brexit btw, you watch

#

even though it's true to an extent

#

another free pass

thorn snow
#

Your Queen once made me 1 bil isk in Eve Online

undone berry
#

100% - Brexit will be all positive, everything will be blamed only on Covid

thorn snow
#

So, thanks Britain ๐Ÿ˜„

rough sapphire
#

what is positive about brexit?

undone berry
#

nothing

rough sapphire
#

i've had my fucking rights stripped away

undone berry
#

just thats the way it will be sold

rough sapphire
#

and nobody cares

#

i want to keep my fucking rights

#

i trust the eu more than the uk govt.

undone berry
#

Be thankful you had brexit so you're not starving to death too quickly - blame coronavirus because you're starving to death

#

Years down the line - I've not managed to understand a single bad thing the EU has done that the UK didn't want

rough sapphire
#

the UK had veto

#

._.

#

so so stupid

#

and the oldies thinking they're leaving a legacy of how they want britain to be

#

will just be reversed in X years

#

because the youth all wanted to stay

#

but now they get to lose the benefits

undone berry
#

Its old people who never lived through WW2 trying to get us back to the alleged greatness that we had during WW2

#

70 yo boomers pushing for an ideal they never experienced and never existed

rough sapphire
#

i dunno how i'm supposed to feel about the next few years

thorn snow
#

As you should in any crisis - take each day on it's own

#

no point in dwelling over what may be in the future

#

that only gets you Weltschmerz

undone berry
#

That's doable with something like coroanvirus's immediate effects. But for things like the long/medium term economic impacts - its hard not to despair

fervent dock
#

the brexit was interesting to me because I lived in the UK from the day of the referendum until almost the actual brexiting and I don't think I ever met a single person who would be in favour

rough sapphire
#

it's very regional

fervent dock
#

of course I was almost entirely surrounded by young people & university staff

rough sapphire
#

there you go

undone berry
#

Education and age are the two main predictors

#

so you're interacting with young educated people

#

which is the perfect anti Brexit crowd

rough sapphire
#

note how in the last election FPTP meant tories won outright, but over all the vote was no to brexit via PR

#

iirc

thorn snow
#

Look, right-wing extremists always recruit those that they can persuade easily. Unemployed and people with little education. I am seeing this here in Germany and everywhere else

#

Because giving those people a boogeyman they can blame their problems on helps them feel better

rough sapphire
#

brexit isn't about right wing recruitment

thorn snow
#

so they point their fingers at the evil EU, Immigrants etc

undone berry
#

It's not just the far right. Its extremists of all ilk

rough sapphire
#

it's more about disenfranchisement of the plebs

gentle moss
#

tbh anti-EU sentiment has been in the UK since we joined

#

it's just taken a media ferver and frenzy to encourage people

#

because we falsely report everything

#

successive governments claim EU goods were caused by them

rough sapphire
#

i have a massive dislike for UK media after brexit. my opinion of the beeb dropped massively, too

undone berry
#

What it took was a certain pig fucker holding a referendum no one wanted to satisfy MPs in his own party

#

then him massively fucking up his side of the campaign

gentle moss
#

and negative things the EU do are painted badly

#

so the EU are always the enemy

#

UK government claimed they abolished roaming charges

#

rofl

thorn snow
#

WHy does this pig fucker thing stick? Wasn't this just a Black Mirror episode?

gentle moss
#

nah

#

it's an upper class thing

undone berry
#

There was a book saying David Cameron put his cock in a pig's mouth

#

and he also looks like a pig fucker

gentle moss
#

the bullingdon club used to smash up restaurants and then give the owner a cheque for thousands of pounds to cover the damage

#

or burn ยฃ50 notes in front of homeless people

#

past 2 PM's have been bullingdon members

#

it's that kind of upper class bullshit that leads to someone with their cock in a dead pigs head

rough sapphire
#

flashbacks to bojo performing a miracle and getting his "concessions" which was basically just implementing a worse deal than May's, which was rejected over and over in parliament

undone berry
#

I don't think TM was a bullingdon member... - just intensely forgettable

rough sapphire
#

the media spin is fucking awful

gentle moss
#

oh shit yeah she existed

#

my bad

#

however, so much of government is formed from such a small group of people

#

who all went to school together

undone berry
#

His deal was fucking over the DUP instead of the IRA - which, imo, is probably a bit better

gentle moss
#

that they're all of the same mind

#

not just the PM, but MP's

#

even opposition members have more in common with their tory counter parts

#

than the public

undone berry
#

It's absolutely dire. The media and parliament are full of people who studied together at Oxbridge and who went to the same private schools

gentle moss
#

yup yup yup

#

people who say the class wars are dead

#

are fucking ignorant

#

and usually part of the privileged class

rough sapphire
#

the media spun it like he made the EU concede, when the EU were very black and white since the beginning, and did exactly what they said they would -- since the beginning

gentle moss
#

i might as well be a fucking brexit wikipedia at this point

#

but i can't be fucking arsed

rough sapphire
#

did you guys catch the JRM quip?

#

school elitism

gentle moss
#

fuck that shit head

undone berry
#

Oh, the Wickhamist one?

gentle moss
#

taking a nap on parliament benches

#

what an entitled little prick

rough sapphire
#

"My honourable friend makes a characteristically Wykehamist point," he said. "Highly intelligent, but fundamentally wrong."

undone berry
#

Country is fucked - only hope is that the EU storms ahead of us in not-shitness and we rejoin in 30 years

rough sapphire
#

what a twat

thorn snow
#

The whole concept EU is on trial imho. If you look at certain countries like Hungary and Poland - they go farther and farther away from the EU ideals and that is going to be an issue in the next few years

#

Austria has also a far right government now

#

It's not as bad as in Poland yet though

gentle moss
#

i mean article 50 was meant for places like hungary

#

a nation that reached a point where it was so divided from EU ideals

#

it had to split

#

but the UK isn't that far split from EU ideals

#

it's all fucking hyperbole

rough sapphire
#

notice how hungary's govt wasted no time with the pandemic to become more authoritarian

gentle moss
#

idd

#

the UK aligns pretty close with EU ideals, as far as i can tell

#

it's all a political fucking shit show that lead us to this

undone berry
#

I haven't been following the news as closely as normal. But Orban has certainly not wasted this oppurtunity

rough sapphire
#

freedom to vote, freedom to not research

gentle moss
#

launch them into the sun

rough sapphire
#

freedom to believe every bit of spin thrown at you

gentle moss
#

i didn't spend a decade reading the news every day to be told i'm wrong by some fuckwit who listens to farage

#

and not just bias news, all news.

#

i used to read the MAIL daily.

#

every angle. avoid echo chamber / bias

rough sapphire
#

well, it is important to know what clothes Jennifer Lawrence is wearing atm \โ™ฅ๏ธ

gentle moss
#

and how much i should hate the black princess.

#

:P

undone berry
#

Putting Markle and Middleton news stories next to each other is laughable

#

I agree that there's relatively little advantage to following day to day news coverage - but it's hard to stop

gentle moss
#

following daily news coverage probably contributed to my break down last year

#

it's hard, as a rational human being, to read that shit day to day

low shadow
#
 __________________________________
< {Hi everyone, how is my new cow} >
 ----------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
rough sapphire
#

๐Ÿฎ

#

๐Ÿ„

low shadow
#

good

#

this one is nice too

#
 ______
< {hi} >
 ------
       \ (__)
         (oo)
   /------\/
  / |    ||
 *  /\---/\
    ~~   ~~
#

is there random function in bash

#

??

thorn snow
#

/dev/random

low shadow
#

ok

gentle moss
#

there's also /dev/urandom

low shadow
#

ok

gentle moss
#

which is usually the preferred source

#

niche cases but eh, better to do best practices

rough sapphire
#

/dev/random blocks, /dev/urandom doesn't

undone berry
#

That means if two programs are trying to access /dev/random, one of them has to wait?

low shadow
#

hey how do i gen random number

#

like radint in python

#

/dev/radom is permission denied

thorn snow
#

do you even think about googeling what you ask?

rough sapphire
#

no, if the system runs out of entropy, it blocks until more become available

thorn snow
#

Because seriously, this is so basic, the first page of google will be full of it

undone berry
#

oh sure- that makes more sense

low shadow
#

bash: /dev/random: Permission denied

#

bash: /dev/urandom: Permission denied

#

chmod +x doesnt work

thorn snow
#

It's not an executable

#

it's a device

#

hence /DEV/random

#

random="$(dd if=/dev/urandom bs=3 count=1)"

#

2 seconds of google

low shadow
#

3 second

#

of google

#

od -d /dev/random

#

generates same number

thorn snow
#

if we give you pointers, you need to research it and show some initiative

#

because as I said, this stuff is simple to look up

#

we are not your personal google monkeys

low shadow
#

why is first random characte always 0000000

thorn snow
#

read this

#

/dev/urandom/ is indeed the better device as x said

#

That was actually new to me as well: echo $(( $RANDOM % 10 ))

low shadow
#

modulus can work as radint in python

#

now i got

#

it

thorn snow
#

You've asked specifically for bash though

low shadow
#

ok

#

i got for bash

#

i will use it

sand goblet
#

So I decided to try gboard again

#

They like

#

There are "PC" layouts now

#

I don't think I could begin to type on this haha

fervent dock
#

oh no

#

that looks like a bad experience

undone berry
#

Is Dashlane a reasonable password manager? I can't find anything obviously wrong with it

atomic swan
#

I didnโ€™t like it

#

I use 1password

#

The UI is fine, i didnโ€™t like the auto filling out and the settings to disable it not working

#

itโ€™s also kinda pricy

sand goblet
#

Dashlane has a few issues

#

The entire thing is HTML/JS-based, which is fine, but the developers are doing some very unnecessary HTML entity escaping work

#

which means that sometimes passwords will be stored with HTML entities in them

#

if you need a password manager, the best one of that type is definitely Bitwarden

#

It's fully open-source, you can host it yourself (or use a third-party server software) if you like

#

Free plan includes unlimited sync, secure notes, payment info, 2fa support, password generator, the usual

#

for $10/year you also get 1GiB encrypted file storage, two-step login with eg a yubikey, and it can also act as a 2fa app (logins can be supplied with TOTP keys)

#

alternatively they do $12/year for a single group of 5 accounts with all of the above and password sharing between 'em

#

as usual I've given @undone berry way too much info

#

haha

undone berry
#

Hm - Keepass is also open source. Currently trying to decide a password manager to lock into - do you have any experience with keepass?

#

right now I'm leaning towards bitwarden

sand goblet
#

I've used both

#

I think the killer thing for me was the easy sync

#

none of the keepass forks actually provide you with a way to keep your database up to date on each device

#

you usually need an external tool like syncthing or an sftp server or something

undone berry
#

alright - looks like bitwarden it is then. Thanks for the suggestions

sand goblet
#

No worries

gusty oar
clear plume
#

Lol

frosty berry
#

meh, old old joke, now with a twist of sexism.

gusty oar
#

๐Ÿ˜„

oak tangle
#

meh, old old joke, now with a twist of sexism.
@frosty berry

I think that twist of sexism has been there in a lot of historical versions as well.

#

It's always "the wife" and the husband trying to interpret it with logic

frosty berry
#

yeah, very much possible

oak tangle
#

The only thing really interesting is that the programmer doesn't understand logic in the comic itself, since the bring 9 is ambiguous and not connected to the eggs earlier.

#

So, there's a leap of faith regardless

#

I'm surprised he didn't bring 9 potatoes

frosty berry
#

yep, he should have refused the instruction at first if he was that logical

oak tangle
#

yes

#

or just be logical enough that in human language there's context

#

and he's just being a bitch for not being able to take that into account

#

anyway, either explanation is shit:

  • people who like computers can't human
  • women can't logic
frosty berry
#

i'm not sure that's the appropriate word ๐Ÿ˜†

oak tangle
#

it's always targetted to make fun at a group

#

ah

#

well

frosty berry
#

yeah, the generalisation of 1 woman didn't understand my choice to all woman are illogical is one count, the "nobody will" (you are not alone, no men, and possibly no women, can understand women), is another

#

i'm not sure which is worse, but the joke is just bad overall, even if you assume it's all about mocking "too logical" programmers, it's just meh

sand goblet
#

it definitely seems like the target of the joke is programmers rather than women, yeah

#

most jokes do take a dig at some group or another anyway

gusty oar
#

novadays world is fragile , most of jokes can be understood as sexist or racist

#

even if its not

rough sapphire
#

I'm not sure what sexist in this case regardless? It's the males being dumb here, not the women

undone berry
#

I feel like the only way to interpret this comic is "hah - programmers can't think in normal human terms"

#

I can't see sexism either way - it's just a joke that was funny 20 years ago and is the kind of mediocre stuff that pops up on /r/programmerhumour

sharp bone
#

hi

#

oh here is hoottt

thorn snow
#

Wow, Intel has given up on ClearOS being a desktop OS pretty quick

gentle moss
#

the joke didn't need "i don't get women" spin imo

#

but yeah, it's some tired shit anyway

#

not sure why someone would comic it

#

unless they're just mining the history of programming jokes to fuel their webcomic

#

ยฏ_(ใƒ„)_/ยฏ

solid pollen
#

Haha, looks like Epson doesn't support linux

#

:/

soft violet
#

There is limited support on at least some products.

#

by support, I mean "here's your driver files, now go away"

gentle moss
#

you can get away with some generic PCL drivers

#

but they can be a bitch

#

same for post-script / ghost-script drivers

undone berry
#

The comic is probably from like 1999 or something

rough sapphire
#

Ok. Good suggestion . There should be a mode in mobile so that if you use specs it correct the display content itself . So that we don't need specs. Wonder if that would work

#

Specs = glasses =corrective lenses

sand goblet
#

@undone berry I'm not sure if you've worked with JavaFX but I have to say that TornadoFX (Kotlin wrapper for JavaFX) is pretty ace

undone berry
#

I touched JavaFX once then realised my mistake

#

Why is it that the core JM is closed source?

sand goblet
#

Because it was never open-sourced and Tech (the original dev) has an exclusive license to it

#

If we want to OSS anything, we have to rewrite it

#

It really doesn't get much simpler

undone berry
#

I still think I'd prefer KVLang or some equivalent, rather than just kotlin/java to make widgets

sand goblet
#

that button action should be moved into the button block though

#

There is FXML

#

but I don't see the point

#

the declarative kotlin DSL makes everything super easy to define

#

like defining the comboboxes for example

undone berry
#

I still think if I was making an app like that I'd have tried to Electron or PWA it

sand goblet
#

Neither of those approaches make any sense for this

undone berry
#

I guess the actual GUI part is pretty minimal

sand goblet
#

The way the image files are processed is important

#

A lot of people have absolutely gigantic maps

#

If the entire resulting image had to be loaded into memory, it could be too much for some machines

#

This tool is able to stitch together any map size while only ever using around 160MiB of RAM

undone berry
#

That's pretty impressive actually

sand goblet
#

I'm quite happy with it

#

but

#

the actual image stitching code is not pretty

#

and it's not pretty because I had to port it from Tech's code

#

which is over 6 years old and not documented

#

and has terrible variable names

#

You can see that here.

undone berry
#

that does not look very fun

sand goblet
#

it's great

undone berry
#

is that really all a single method?

sand goblet
#

github can't even highlight this whole file

#

almost, yeah

#

there's another method at the bottom for getting a blank image file

#

when I'm back at my desk (about to not be) I'll get the async and progress stuff done

undone berry
#

Just clickign through directories/files and Kotlin is much nicer to read than Java

sand goblet
#

I agree

#

I think the original source is public source but I'm not gonna risk it

#

Tech also had this habit of putting library source into the repo

#

I have no idea why

gritty mulch
#

@tardy wind And the Java ecosystem in miles bigger than the C# one. I'd much rather use Kotlin (Even more portable) than C#

sand goblet
#

Who dat

#

Aha

tardy wind
#

kotlin is a very diff discussion

sand goblet
#

Hooo

#

the point being c# is just as xplat as java
@tardy wind

#

Absolutely not

tardy wind
#

in what way

sand goblet
#

My dude

tardy wind
#

it absolutely is

sand goblet
#

How many cars have you driven that run C#?

tardy wind
#

just because they dont doesntmean they CANT

gritty mulch
#

Have you never read the Java installer

sand goblet
#

But they don't

tardy wind
#

but they CAN

sand goblet
#

How many routers? Set top boxes? Smart speakers?

tardy wind
#

if it runs the jvm it can run the clr

sand goblet
#

Not necessarily

tardy wind
#

yes

gritty mulch
#

Just because they can does not mean anything

sand goblet
#

A lot of them have custom JVMs

undone berry
#

I'm assuming the Tech guy is completely and utterly not around any more? iirc you mentioned that before

sand goblet
#

He is kind of around sometimes

gritty mulch
#

My router could theoretically run C# but if I want to dev for it I am not porting it over I just want to write Java

sand goblet
#

But he's a busy man and about to be furloughed

#

So we'll see

gritty mulch
#

(I do NOT want to write Java this is just an example)

#

(I would use Kotlin)

tardy wind
#

if it can run the normal jvm then it can run the clr

sand goblet
#

Nobody's written a C# runtime - and it does need a runtime - on these platforms

tardy wind
#

i mean there are embedded c# runtimes

#

theres also coreRT if you wanted that

sand goblet
#

Have you ever watched a movie on Blu-ray? All Blu-ray players run Java applications from the discs

tardy wind
#

whihc is an AOT compiler for c#

sand goblet
#

Yeah and now you have to port it to this low powered machine that probably doesn't even have libc

#

But hey, we can just pay Oracle to port the JVM over

#

We have all these Java developers

tardy wind
#

yucky

sand goblet
#

It's cheaper to pay Oracle to do that than hire more developers probably

#

And that's more or less what happened

tardy wind
#

It's cheaper to pay Oracle
you just summed up their buisness model

sand goblet
#

Yep

#

I always build against OpenJDK personally

tardy wind
#

same

#

on the rare times i need java

#

its alwasy openJDK

sand goblet
#

I do love Kotlin

tardy wind
#

my last project used antlr

#

that was a pain

sand goblet
#

You poor soul

#

I've been there

tardy wind
#

lol

sand goblet
#

Except they weren't using Java

tardy wind
#

i enjoyed it tbh

sand goblet
#

They were using Clojure

tardy wind
#

i was using the antlr C# bindings

sand goblet
#

Which is a whole other level of bullshit

tardy wind
#

so it wasnt the worst thing

sand goblet
#

Clojure is kind of a messed up object oriented lisp

#

Which should tell you all you need to know

tardy wind
#

i have no expereince

#

otherthen hearing people bitch about it

sand goblet
#

Well here's a question for you

#

Does this make sense to you? (+ 2 3)

tardy wind
#

wtf, are the + lvalue and rvalue both on the right lol

#

or is it currying

sand goblet
#

Neither

tardy wind
#

im assumign thats a curried +

#

wut

sand goblet
#

This is an S-expression

tardy wind
#

oh boy

sand goblet
#
  • is the function
#

The other two are the arguments

#

That's lisp

tardy wind
#

ya ok thats what i was saying

sand goblet
#

This is OK

#

Lisp is a functional language and this suits that

#

But then you take it and slap it on top of java

tardy wind
#

ya thats similar to caml

#

kinda

sand goblet
#

If you're on the JVM you get interoperability so you're going to add that

#

And then suddenly we have a . and a .. function

#

For attribute access

#

And then we can defclass

#

And it's just stupid. It's stupid.

tardy wind
#

and this was for antlr?

sand goblet
#

It was for a payment switching application

#

That had a DSL made with ANTLR yeah

tardy wind
#

what did you need parsing for?

#

ohh

#

thats kinda cool tho

sand goblet
#

They also flew out the guy that wrote Apache tapestry instead of using a sane web framework because nobody could figure out how to use it

tardy wind
#

i enjoy writing grammars tbh

sand goblet
#

I'm not a big fan, but ANTLR makes sense

tardy wind
#

my goal in life is to be so niche that i get flown out for shit like that

sand goblet
#

They really didn't need to

#

There are so many better frameworks

#

Haha

tardy wind
#

maybe ill write a random lang then charge people to use it

#

ohh wait thats oracle

sand goblet
#

Spark for example, I used that in JourneyMap

tardy wind
#

wuts journey map

sand goblet
#

It's a Minecraft mod, popular minimap mod

#

It has a webmap so that uses Spark

tardy wind
#

Ahhh

#

I c the java connection then

sand goblet
#

Yep, but I'm actually using Kotlin

#

Totally worth

tardy wind
#

Iโ€™ve heard from some people they kotlin for java stuff

#

I havenโ€™t tried it but the little Iโ€™ve seen kotlin looks nice

gritty mulch
#

That is mostly the point of Kotlin

sand goblet
#

It's really nice

#

It's like Java, but fun

tardy wind
#

Iโ€™m writing a swift app atm

gritty mulch
#

JVM without the bad lang

tardy wind
#

When i can get the courage to deal with Xcode

sand goblet
#

I wish cheap Macs existed so I could test my shit on macs

#

But alas, apple is greedy

tardy wind
#

I mean u could hackintosh pro

#

Prob

sand goblet
#

I tried

#

I can't get an up to date image and they're not legal either way

#

Gotta own a Mac and dump it yourself

tardy wind
#

True

#

Itโ€™s a walled garden

#

I have a mid 14 mbp

gritty mulch
#

Would DMing someone where to find the latest images be against rule 5

tardy wind
#

That tbh is still killing it Mostly

sand goblet
#

Probably

gritty mulch
#

That was a totally unrelated question but I will make sure to not do that in the future

sand goblet
#

Haha

#

It is weird, though, I get that Apple are very much selling their OS

#

But like

#

Surely helping developers to write Mac software only benefits them

tardy wind
#

Youโ€™d think

#

I wish theyโ€™d be like new Microsoft

#

Tbh Microsoft is great to devs these days

undone berry
#

They want Mac software to be designed for mac - rather than just general software that runs on a mac

sand goblet
#

I suppose.

tardy wind
#

swift is nice

#

But xcode is dog shit imo

#

ESP after using vs or jetbrains stuff

sand goblet
#

Xcode is infamous for being bad

undone berry
#

Is xcode an IDE? If so, I didn't even realise - its just something weird I had to install to be able to run certain code when I was using a mac

sand goblet
#

It is yeah

tardy wind
#

Itโ€™s an ide

sand goblet
tardy wind
#

Itโ€™s the only way to deploy apps

sand goblet
#

Typical stuff

tardy wind
#

Well thatโ€™s not the ide

#

Thatโ€™s the compiler

#

The swift compiler int oerfect FOR SIRE

#

Isnโ€™t

#

Canโ€™t type

astral sky
#

I know this is really off topic but i need help please lol -- 4=7/x-6 solve for x. I am having trouble with this even though it it super simple

undone berry
#
4   = 7/x - 6
10  = 7/x    | + 6
10x = 7      | * x
x   = 0.7    | /10
#

@astral sky

astral sky
#

the 7 is over the x and the -6 my bad i couldnt type that in

rough sapphire
#

(im not good at math)

#

Right

wheat lynx
#

Why maths when you can brute force?

rough sapphire
#

I remember that from math class now\

#

Its just been too long

#

haha

undone berry
#
4 = 7/(x-6)```?
#

like that

rough sapphire
#

Hey, I have a skill set.

#

Its not math

astral sky
#

yes

#

its in my final and i cant figure it out

sand goblet
#

17/4? Not sure..

undone berry
#
4      =  7/(x-6)
4(x-6) = 7        | * (x-6)
4x-24  = 7        | expand
4x     = 31       | +24
x      = 31/4
sand goblet
#

Ah, damn

rough sapphire
#

I should take some online math classes. Im sure I could put it to better use than I did when I originally learned it. I was an English major. I read a lot of books.

astral sky
#

@undone berry you sir are a hero and my day is saved

#

thank you to all of you that helped out lmao i had no other options to try and find help

undone berry
#

reading books is more fun than maths

#

unless you have to read books

#

in which case, its very unfun

#

so I guess an English major is a mixed bag

rough sapphire
#

When you're in lit classes, its mainly the speed with which you have to read many books.

#

Of course, its overall an easier class to bullshit than math by far

#

reading a book you don't enjoy is not a fun experience

undone berry
#

I'd definitely enjoy studiyng English more than I would studying CS - but I want a job, so CS is the better choice

rough sapphire
#

Right haha

#

I wish I had realized how much I would like this stuff when I was older. But eh.

#

The thing is

#

Younger me wouldnt have been into it as much

#

So its irrelevant

undone berry
#

I enjoy softwarey stuff as a hobby - but honestly, doing it for a job fulltime seems so fucking dull to me

sand goblet
#

Depends what you're doing and how much freedom you have really

rough sapphire
#

I don't enjoy reading books as much as I do problem solving

sand goblet
#

that I can agree with

sand goblet
#

hey @undone berry since you're doing math, maybe you can help me with something?

#

I'm trying to figure out how the hell I'm going to calculate the progress of this image stitching process

#

it has the concept of tiles in rows and columns, but images must be written by pixel

#

which means going along the first row of pixels in the first row of images, and so on

#

it's not possible to say what column we're in basically

undone berry
#

hm - I'm not entirely sure I follow the problem

sand goblet
#

well let's say we have x rows and x columns

#

that means the total tiles is rows * columns, right?

undone berry
#

Yeah, sure

sand goblet
#

but then like, how do I count up to that

#

it's not going to be currentRow + currentColumn right?

undone berry
#

currentRow*rowLength + currentColumn

rough sapphire
#

I think that working in software as a job does sound depressing, especially if you're a person with my views. Most likely your job is manipulating people into doing things that arent good for them.

#

Not judging anyone but...

#

Yeah

sand goblet
#

Yep, that did do it

#

Thanks \o/

astral sky
#

I just finished and got a 100 on my final. thanks again guys i really couldnt have done it without you

undone berry
#

Working with arcade for the last week has made me do so much annoying stuff with rows columns and pixels - I'm glad that one was simple

sand goblet
#

I can't get my head around that kind of math for no good reason really

undone berry
#

@rough sapphire It seems like both the day to day process of working in software would get tedious after some amount of time, and that a very high proportion of software jobs are doing stuff that is, uh, not making a positive difference.

rough sapphire
#

What kind of final is that? @astral sky

sand goblet
#

That math didn't quite work

rough sapphire
#

In the book Im reading right now, "Snow Crash," the writer is clearly a software dev at his day job.

#

And he says, "Hackers are essentially glorified assembly line workers."

#

Hes obviously speaking about software dev through some cyberpunk lens when he calls them hackers

undone berry
#

Hm - I'm struggling to see why that didn't work

sand goblet
#

val progressMax = (rows * columns).toLong()

// ...

val progress = (row.toLong() * rows) + column
task.updateMessage("Current tile: $progress / $progressMax")
undone berry
#

row.toLong() * columns

sand goblet
#

oh, derp

#

columns

undone berry
#

it was kinda my bad rowLength wasn't the clearest way of phrasing it - Lukas' was better

sand goblet
#

Yeah, that looks correct

#

\o/

#

Thanks, again

#

Still some things to iron out but it's basically done now

rough sapphire
#

Nice

#

are those all the chunks you have visited?

sand goblet
#

Yeah

rough sapphire
#

Can I ask what you used to make that and reduce it to a file size conducive to sharing it here?

sand goblet
#

ShareX

#

that's all

rough sapphire
#

I'll look at it.

sand goblet
rough sapphire
#

I've been using Windows more frequently lately because I'm playing a video game so it might work out.

sand goblet
#

I'm a huge fan of sharex

#

there's basically nothing like it on linux

rough sapphire
#

Linux has some fine screen recording options, the problem is visual disturbances that often pop up. Im my opinion OBS is probably the best software for recording your screen, assuming you are also wanting to broadcast it as a good quality, but... I dont get the same results on Linux. I think Id like to try it with proprietary nvidia drivers and see if it works any better some time

#

But yeah, thats another thing I would more likely just do from Windows because it has support.

sand goblet
#

I had similar issues on Linux yeah

errant marten
#

Hello! can i get help with C#?

rough sapphire
#

!ask

royal lakeBOT
#

Asking good questions will yield a much higher chance of a quick response:

โ€ข Don't ask to ask your question, just go ahead and tell us your problem.
โ€ข Don't ask if anyone is knowledgeable in some area, filtering serves no purpose.
โ€ข Try to solve the problem on your own first, we're not going to write code for you.
โ€ข Show us the code you've tried and any errors or unexpected results it's giving.
โ€ข Be patient while we're helping you.

You can find a much more detailed explanation on our website.

rough sapphire
#

:)

#

pretty sure my neighbor is keeping a cow

#

it's the only way I can reasonably explain these noises

lost bay
#

Hii everyone

#

Has anyone tried automating whatsapp using python

#

As in, fetch details of a person if he/she is online or not

rough sapphire
#

Has anyone tried automating whatsapp using python
@lost bay WhatsApp have always been pretty big on not allowing automation, even as far as taking entities to court

#

In addition, beginning on December 7, 2019, WhatsApp will take legal action against those we determine are engaged in or assisting others in abuse that violates our Terms of Service, such as automated or bulk messaging, or non-personal use, even if that determination is based on information solely available to us off our platform. For example, off-platform information includes public claims from companies about their ability to use WhatsApp in ways that violate our Terms.

bleak lintel
rough sapphire
solid pollen
#

Aaaahh, I have 120Gb on the wrong disk

#

I hate the fstab

#

I manage to always mess it up even if it is mostly autogenerated by the partition manager

#

And I apparently canโ€™t label NTFS partitions

gentle moss
#

that's...

#

that's not an advantage of windows

#

you can use split GPU's on linux too

rough sapphire
#

um

#

yeah

#

you can definitely also do that in linux

#

in fact i'm currently doing it

gentle moss
#

what up xx

#

how's it going?

rough sapphire
#

its going ok, im porting my android privesc to my new phone

#

hbu?

gentle moss
#

the usual. lack of motivation to do stuff atm.

#

although we made a kilo of pulled pork yesterday, so i'm pleased about that

rough sapphire
#

majorly misread that at first and thought you were talking about git

gentle moss
#

a kilo of pull requests

#

:D

rough sapphire
#

I need to step away from a computer for a while and take a hike

#

"pulled pork" = "pulled a fork" in my head ๐Ÿ˜ž

gentle moss
#

well you could pull a fork to pull the pork

#

so much friggin washing up though

#

gonna take a couple of hours to get through it :/

rough sapphire
#

okay, I've just had an idea for an invention

#

it's a washing machine, but instead of laundry, you put dishes in there

#

and it washes the dishes for you

plain slate
#

bro

#

revolutionary

rough sapphire
#

DON'T STEAL

#

patent pending

gentle moss
#

well

#

you reckon if i put enough towels in with the plates it'll clean em?

#

the plates not the towels

rough sapphire
#

it would probably also clean the towels

gentle moss
#

added bonus

#

that's efficiency for you

#

idk where i'm gonna get plate softener though

#

for that fresh plate smell

solid pollen
#

Hmm, wonder how hard is ruby to learn

#

It looks pretty straightforward

#

I'd like to write a sketchup plug-in

#

Hmmmm.

#

Anybody would know a good and fast tutorial?

low shadow
#

why is stack address starting from low , when stack start from high address and goes to lower address

#

stack should start from 0xc0000000 (highest addresss ) then end at 0xbffeb000 shouldnt it?

rough sapphire
#

what exactly is the question

low shadow
#

stack should start from 0xc0000000 (highest addresss ) then end at 0xbffeb000 shouldnt it?

rough sapphire
#

okay so you want to flip those two

low shadow
#

why is gdb showing the opposite

#

is it error

rough sapphire
#

very likely not an error

low shadow
#

why

rough sapphire
#

thinking.

low shadow
#

ok

#

i m trying to learn Stack Pointer , Base Pointer and Stack for last few days but still i am just getting headache

#

i watched that video 5 times, still i m not getting it

rough sapphire
#

ok so make sure you understand what the bottom and top mean here

low shadow
#

??

rough sapphire
#

does "stack grows from the bottom" mean they are adding to the stack from the bottom relative to the stack

low shadow
#

like adding plate on table (adding data from bottom) ?

rough sapphire
#

yes

low shadow
#

so first plate has highest or lowest address

rough sapphire
#

I don't know what they mean but that's what I'm wondering about that are they growing the stack "from the bottom"

low shadow
#

i m still confused , i seriously need some materials to learn about ESP,EBP, stack frame and stack. Where did u learn stack from? can u provide me links

rough sapphire
#

me?

low shadow
#

anyone

rough sapphire
#

don't remember

low shadow
#

ok

rough sapphire
#

from some course on operating systems probably

low shadow
#

can u help me in esp

#

wait

rough sapphire
#

i don't remember those things at all

#

i never bothered to learn the registers or that stuff since i never needed it really

low shadow
#

ok

#

if anyone's online maybe they can help

rough sapphire
#

did you watch the video on the memory stuff

low shadow
#

yes skipped some part (some was too basic but idk what 50's represent)

#

like debug50 and other 50's

rough sapphire
#

the 50 in the cs50 stands for a course number in that university. the lower the number, the more basic the stuff is

low shadow
#

ok

low shadow
#

@rough sapphire i got some data

#

The computer's stack lives at the very top addresses of memory not at bottom

#

also i made a important note

#

Pushing decreases SP address in stack and popping increases it

rough sapphire
#

@low shadow well yes?

low shadow
#

the video isnt correct

rough sapphire
#

uhh

low shadow
#

the video says it lives at bottom of memory which is wrong

#

thus i was confused

rough sapphire
#

now

#

it "GROWS from the bottom"

#

that means the other end is shut

#

and the open end is at the bottom

#

you're reading it wrong.

low shadow
#

oh

rough sapphire
#

so don't say "the video is wrong" before you've thought it through

low shadow
#

ok

low shadow
#

oh yes i got the whole damn thing now

#

the whole damn stack frame, esp , ebp and eip

#

yes

#

yeah

#

the best tutorial ever

plucky ridge
#

I always think of it as a stack of plates that you slowly build

low shadow
#

i know how is stack

#

but i was confused about stack in assembly

#

how upside down it is

#

and what does ebp and esp do

#

but this post is best , it teaches very well

#

i was trying to learn this from 3 days

plucky ridge
#

Oh, I wasn't doubting you knew it, I was more just expressing how I thought of it

#

Since you keep putting plates one after another on top of each other and you don't want to take stuff out of the middle else you'll have a bunch of plates crashing down onto you

low shadow
#

hmm

#

The problem with other sources is that it teaches in such a damn language (i prefer to call it documentation language) which is very very very difficult to understand. Like read this description from <https://pdos.csail.mit.edu/6.828/2008/readings/i386/CALL.htm> .You cant understand in your entire life. However the page i showed you teached in very friendly manner.

#

like this call function from this website can be explained as```
1)First it pushes the address of the next instruction, which is the return address, onto the stack.
2)Then, it modifies the instruction pointer %eip
to point to the start of the function.

plucky ridge
#

Well in fairness, that page is about incredibly lower level processor codes

low shadow
#

i never understand documentations, do u hemlock

plucky ridge
#

And it's understandable, you just have to take a decent amount of time of it

#

But it's certainly not a good starting place when trying to understand that stuff

low shadow
#

ok

plucky ridge
#

But in fairness, I generally only understand the broad strokes of a lot of these concepts

#

I never studied a lot of the computer science stuff, so it's a bit out of my wheel house