#ot1-perplexing-regexing
1 messages ยท Page 386 of 1
oh it was your password , lol
moving on to my question how can this not cause error?var1 db 'Hello World', 0xa
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
use a commad line tool to crop then * for every file
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
imagemagick might be versatile enough.
Was just gonna say imagemagick as well
I'll check out imagemagick - thanks
Almost certainly has something along those lines
If not, you could load it into pypng and do a thing.
Or PIL.
@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
my question was that var is of 1 byte right
0xA is \n
so how it fits 13 byte string
so yes, line feed
var1 db 'Hello World', 0xa ; here db means var1 = 1 byte right?
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
db = byte dw = word and so on , byte = 8 bit, word = 16 bit Hello World 0xa = 13 bit , correct me if i m wrong
There we go, yes
An exe has a string table, where these things are stored
It's defining the string to be stored with that reference - var1
that mnemonic tells the linker to store that string in there
Otherwise it would just be a random string with no actual reference to it. I think I'm remembering that right. Could be wrong
ok
and as I said, 0xA means \n and that is a linefeed
Ascii character table - What is ascii - Complete tables including hex, octal, html, decimal conversions
A in hex is 10
Learn binary and hex, it makes your life a lot easier
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
(Imagemagick was a great shout - thanks)
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
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
good stuff. i need to learn to make more use of it myself
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
ahh that makes sense. pretty simple/straightforward in a way
0xff means f represent a nibble and another f represent another nibble as liverflow said
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
https://filippo.io/linux-syscall-table/ <-- it helped me lot in assembly
Searchable Linux Syscall Table for x86 and x86_64 There are some tables like this around, but they are usually cool auto-generated hacks and that โฆ
finally lot of my question are automatically solved
dexter you should definetly read this
haha true that. networking is one of those 'black boxes' for me as soon as you get deeper than about a basic http request
@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
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
also man 2 syscall gives you every thing about syscall for every ARCHITECTURE
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
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
CISCO is router?
they make networking hardware, yes
oh
WHen I say router, I don't mean the thing that you have at home though
WHen I say router, I don't mean the thing that you have at home though
@thorn snow what do u mean then
This is a proper router
lol
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
just get web hosting
you need a lot of knowledge to properly use vps
and administrate them
Do you? I've used them in the past and just treated them like physical servers
They seem pretty trivial to work with
well, you need to know the pitfalls, need to handle IP tables etc
VPS is very famous nowadays
that can be challenging
i always confuse VPS with VPN
just checking - vps is virtual private server?
yes
What is it that you have to do with a VPS that you don't have to do with a physical server?
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
No difference, that isn't what I meant
Or do you mean running the hypervisor properly?
What I mean is people sending private IP into the internet and if you do that too often, you'll get your server locked
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
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
it's called network abuse
or getting their stuff hacked
thought about setting up a private git server, for my own projects. the web stuff
@low shadow That isn't what I said, at all
ok
other things as well, but not listing the ones i know can be done on both types of hosting
Oh sure - I get what you mean now
If our network detects package with private IP as destination, your server get's flagged
you mean hosting things i shouldnt online?
we request a statement, if you don't reply what we want to hear, you get locked
nah, not something id be doing
If our network detects package with private IP as destination, your server get's flagged
@thorn snow which our network
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
yeah well, when you dish out 3 tb a second you need some power ๐
:D
I remember using a host that recommended using private addresses to communicate between servers in the same datacentre
lol
that's the sort of router i'm used to
Today I expect routing in most of these places is better than that
@sand goblet No can do here, they all have public IP
is i386 same as 32 bit
you can set up a VPN between them though
i386 is 32bit
or group them and install the mikrotik router software
we barely hit like 20% capacity on those netgates
ok
we offer virtual switches for that
you done much with pfsense in your line of work scorch?
Not really. Juniper and Cisco have integrated firewalls
I have a microtik switch here at home
because I needed something that wouldn't cost us a kidney
haha
probably just pfsense as well
what is i915 is it a new arch like i386
who knows ๐
that's the intel HD graphics driver
ok
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
if i update i915 (intel driver ) driver in kali , will it be updated in windows
no
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
ok
that doesn't even make sense
ok
ok
so what're your PPS rates through your edge routers?
gotta be tens of millions right?
it all runs over various PNI and transits, but about 3 tb/s total
packages I don't know
well, as I said, it's all over multiple routes, routers, PNI etc
it's hard to tell the overall total
hey bisk
Eh, if you know the basics, everything else is just complexity
do u remember the person who sent a link to video when i said ```
i dont understand this video
<https://www.youtube.com/watch?v=T03idxny9jE&list=PLhixgUqwRTjxglIswKp9mpkfPNfHkzyeN&index=13
and you said to work more hard
@gentle moss
oh got it searched for this video
and got this
Learn about computer memory and how it relates to programming.
This course teaches the foundations of computer science. This video is lecture 3 of Harvard University's CS50 2018 course (part 4 since the lectures start at 0).
Check out our full CS50 playlist: https://www.yout...
sorry got it
make sure to watch it all and follow up on the reading material
you remind me of game where i summon monsters and necromancer
@gentle moss
aBiskBumBleBee
i'll disregard that#
see the B's
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
oh u mean corona virus
Because an infected family was still having visitors
oh
christ though - quarantining a whole block like that is something
we're getting to the point of the lockdown in the UK where people stop taking it as seriously
show them it should be
indeed neon
i'm seeing it
our neighbours have some people over
yeah
thankfully he's not in government any more - but he probably reflects the opinions of a lot of MPs right now
the media are pushing the "open up the economy" narrative
just. follow. the. science.
it's not hard
and fucking Hat Mancock is deflecting from his failures too
"we'll have 100k tests a day soon."
2 weeks later
it is hard when the scientific advisory group is having non scientists rock up to meetings and almost certainly pushing some angle
he has some modern art picture of the queen in his house
that's enough to show he's a tosser
you see it when he does the zoom? skype? w/e
Matt Hancock is the king of slime
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
still recovering, i'll give him that
well he's well enough to talk to Trump about trade
so he should be able to answer questions from MPs
talk to Trump about what trade exactly?
the US-UK deal that nobody wants?
yup
oh god please fucking not
you realise this whole shit show will be used as a way to force through shit deals?
if we get that deal i'm going vegetarian ffs
right?
they can use it to their political advantage
the devious cunts
AW SHIT
sorry mods
i'd been so good.
NHS is back on the menu lads
Coronavirus will be used to try and jam through the worst of the worst trade deals - to kickstart the economy
have any of u faced game addiction
lmao always misdirect and apply blame
that's the first ping I've seen from you ever I think
I know the stories of you being worse - but since I've only seen you avoid it
i am better now
that's imaginable
there's no mitigation
who cares
well there are mitigation options
you can have blue passports
they're black
Brexit will be reversed - just in 30 years time when we've slipped from 5th biggest economy to 15th
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
whatever
i mean they were meant to be blue
but when they came back from the POLISH printing factory
they were black
well, it did keep coronavirus out of your borders, right?
the irony of having to contract out that
yeah of course
we're a free land of fish eating people
why don't you build a wall around your isle?
because it's an island
yeah, so?
Britain was never ready for a united Europe. They've always tried to get the benefits of the Eu without the cost
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
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
too many years of bullshit tabloids
it's easy for politicians to just scapegoat the EU instead of doing their fucking jobs
Yeah, Murdoch, the Barclay brothers, and Paul Dacre can all get in the fucking bin
politicians will blame our economy on corona instead of brexit btw, you watch
even though it's true to an extent
another free pass
Your Queen once made me 1 bil isk in Eve Online
100% - Brexit will be all positive, everything will be blamed only on Covid
So, thanks Britain ๐
what is positive about brexit?
nothing
i've had my fucking rights stripped away
just thats the way it will be sold
and nobody cares
i want to keep my fucking rights
i trust the eu more than the uk govt.
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
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
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
i dunno how i'm supposed to feel about the next few years
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
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
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
it's very regional
of course I was almost entirely surrounded by young people & university staff
there you go
Education and age are the two main predictors
so you're interacting with young educated people
which is the perfect anti Brexit crowd
note how in the last election FPTP meant tories won outright, but over all the vote was no to brexit via PR
iirc
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
brexit isn't about right wing recruitment
so they point their fingers at the evil EU, Immigrants etc
It's not just the far right. Its extremists of all ilk
it's more about disenfranchisement of the plebs
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
i have a massive dislike for UK media after brexit. my opinion of the beeb dropped massively, too
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
and negative things the EU do are painted badly
so the EU are always the enemy
UK government claimed they abolished roaming charges
rofl
WHy does this pig fucker thing stick? Wasn't this just a Black Mirror episode?
There was a book saying David Cameron put his cock in a pig's mouth
and he also looks like a pig fucker
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
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
I don't think TM was a bullingdon member... - just intensely forgettable
the media spin is fucking awful
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
His deal was fucking over the DUP instead of the IRA - which, imo, is probably a bit better
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
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
yup yup yup
people who say the class wars are dead
are fucking ignorant
and usually part of the privileged class
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
i might as well be a fucking brexit wikipedia at this point
but i can't be fucking arsed
fuck that shit head
Oh, the Wickhamist one?
"My honourable friend makes a characteristically Wykehamist point," he said. "Highly intelligent, but fundamentally wrong."
Country is fucked - only hope is that the EU storms ahead of us in not-shitness and we rejoin in 30 years
what a twat
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
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
notice how hungary's govt wasted no time with the pandemic to become more authoritarian
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
I haven't been following the news as closely as normal. But Orban has certainly not wasted this oppurtunity
freedom to vote, freedom to not research
launch them into the sun
freedom to believe every bit of spin thrown at you
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
well, it is important to know what clothes Jennifer Lawrence is wearing atm \โฅ๏ธ
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
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
__________________________________
< {Hi everyone, how is my new cow} >
----------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
good
this one is nice too
______
< {hi} >
------
\ (__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
is there random function in bash
??
/dev/random
ok
there's also /dev/urandom
ok
which is usually the preferred source
niche cases but eh, better to do best practices
/dev/random blocks, /dev/urandom doesn't
That means if two programs are trying to access /dev/random, one of them has to wait?
hey how do i gen random number
like radint in python
/dev/radom is permission denied
do you even think about googeling what you ask?
no, if the system runs out of entropy, it blocks until more become available
Because seriously, this is so basic, the first page of google will be full of it
oh sure- that makes more sense
bash: /dev/random: Permission denied
bash: /dev/urandom: Permission denied
chmod +x doesnt work
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
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
why is first random characte always 0000000
read this
/dev/urandom/ is indeed the better device as x said
That was actually new to me as well: echo $(( $RANDOM % 10 ))
You've asked specifically for bash though
So I decided to try gboard again
They like
There are "PC" layouts now
So while the normal keyboard is cluttered enough
You can do.. this
I don't think I could begin to type on this haha
Is Dashlane a reasonable password manager? I can't find anything obviously wrong with it
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
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
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
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
alright - looks like bitwarden it is then. Thanks for the suggestions
No worries
Lol
meh, old old joke, now with a twist of sexism.
๐
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
yeah, very much possible
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
yep, he should have refused the instruction at first if he was that logical
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
i'm not sure that's the appropriate word ๐
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
(obligatory https://xkcd.com/385/)
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
novadays world is fragile , most of jokes can be understood as sexist or racist
even if its not
I'm not sure what sexist in this case regardless? It's the males being dumb here, not the women
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
Wow, Intel has given up on ClearOS being a desktop OS pretty quick
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
ยฏ_(ใ)_/ยฏ
There is limited support on at least some products.
by support, I mean "here's your driver files, now go away"
you can get away with some generic PCL drivers
but they can be a bitch
same for post-script / ghost-script drivers
The comic is probably from like 1999 or something
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
@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
Here's the repo, since that channel's been taken over https://github.com/TeamJM/journeymap-tools/
I touched JavaFX once then realised my mistake
Why is it that the core JM is closed source?
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
Here's how that first row of controls is defined
It really doesn't get much simpler
I still think I'd prefer KVLang or some equivalent, rather than just kotlin/java to make widgets
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
I still think if I was making an app like that I'd have tried to Electron or PWA it
Neither of those approaches make any sense for this
I guess the actual GUI part is pretty minimal
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
That's pretty impressive actually
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.
that does not look very fun
it's great
is that really all a single method?
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
Just clickign through directories/files and Kotlin is much nicer to read than Java
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
@tardy wind And the Java ecosystem in miles bigger than the C# one. I'd much rather use Kotlin (Even more portable) than C#
kotlin is a very diff discussion
in what way
My dude
it absolutely is
How many cars have you driven that run C#?
just because they dont doesntmean they CANT
Have you never read the Java installer
But they don't
but they CAN
How many routers? Set top boxes? Smart speakers?
if it runs the jvm it can run the clr
Not necessarily
yes
Just because they can does not mean anything
A lot of them have custom JVMs
I'm assuming the Tech guy is completely and utterly not around any more? iirc you mentioned that before
He is kind of around sometimes
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
if it can run the normal jvm then it can run the clr
Nobody's written a C# runtime - and it does need a runtime - on these platforms
Have you ever watched a movie on Blu-ray? All Blu-ray players run Java applications from the discs
whihc is an AOT compiler for c#
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
yucky
It's cheaper to pay Oracle to do that than hire more developers probably
And that's more or less what happened
It's cheaper to pay Oracle
you just summed up their buisness model
I do love Kotlin
lol
Except they weren't using Java
i enjoyed it tbh
They were using Clojure
i was using the antlr C# bindings
Which is a whole other level of bullshit
so it wasnt the worst thing
Clojure is kind of a messed up object oriented lisp
Which should tell you all you need to know
Neither
This is an S-expression
oh boy
ya ok thats what i was saying
This is OK
Lisp is a functional language and this suits that
But then you take it and slap it on top of java
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.
and this was for antlr?
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
i enjoy writing grammars tbh
I'm not a big fan, but ANTLR makes sense
my goal in life is to be so niche that i get flown out for shit like that
Spark for example, I used that in JourneyMap
wuts journey map
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
That is mostly the point of Kotlin
Iโm writing a swift app atm
JVM without the bad lang
When i can get the courage to deal with Xcode
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
Would DMing someone where to find the latest images be against rule 5
That tbh is still killing it Mostly
Probably
That was a totally unrelated question but I will make sure to not do that in the future
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
Youโd think
I wish theyโd be like new Microsoft
Tbh Microsoft is great to devs these days
They want Mac software to be designed for mac - rather than just general software that runs on a mac
I suppose.
Xcode is infamous for being bad
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
It is yeah
Itโs an ide
Itโs the only way to deploy apps
Typical stuff
Well thatโs not the ide
Thatโs the compiler
The swift compiler int oerfect FOR SIRE
Isnโt
Canโt type
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
the 7 is over the x and the -6 my bad i couldnt type that in
The way I tried to do it in #ot0-psvmโs-eternal-disapproval was doomed to fail
(im not good at math)
Right
Why maths when you can brute force?
17/4? Not sure..
4 = 7/(x-6)
4(x-6) = 7 | * (x-6)
4x-24 = 7 | expand
4x = 31 | +24
x = 31/4
Ah, damn
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.
@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
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
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
I'd definitely enjoy studiyng English more than I would studying CS - but I want a job, so CS is the better choice
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
I enjoy softwarey stuff as a hobby - but honestly, doing it for a job fulltime seems so fucking dull to me
Depends what you're doing and how much freedom you have really
I don't enjoy reading books as much as I do problem solving
that I can agree with
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
hm - I'm not entirely sure I follow the problem
well let's say we have x rows and x columns
that means the total tiles is rows * columns, right?
Yeah, sure
but then like, how do I count up to that
it's not going to be currentRow + currentColumn right?
currentRow*rowLength + currentColumn
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
I just finished and got a 100 on my final. thanks again guys i really couldnt have done it without you
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
@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.
What kind of final is that? @astral sky
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
Hm - I'm struggling to see why that didn't work
val progressMax = (rows * columns).toLong()
// ...
val progress = (row.toLong() * rows) + column
task.updateMessage("Current tile: $progress / $progressMax")
row.toLong() * columns
it was kinda my bad rowLength wasn't the clearest way of phrasing it - Lukas' was better
Yeah, that looks correct
\o/
Thanks, again
Still some things to iron out but it's basically done now
Yeah
Can I ask what you used to make that and reduce it to a file size conducive to sharing it here?
I'll look at it.
I've been using Windows more frequently lately because I'm playing a video game so it might work out.
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.
I had similar issues on Linux yeah
Hello! can i get help with C#?
!ask
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.
:)
pretty sure my neighbor is keeping a cow
it's the only way I can reasonably explain these noises
Hii everyone
Has anyone tried automating whatsapp using python
As in, fetch details of a person if he/she is online or not
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.
there is this however https://www.twilio.com/whatsapp
1 advantage of windows over arch
you can use your motherboard display for dual monitor
https://cdn.discordapp.com/attachments/662296359440875540/704249394421170216/Screenshot_1.png
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
um
yeah
you can definitely also do that in linux
in fact i'm currently doing it
the usual. lack of motivation to do stuff atm.
although we made a kilo of pulled pork yesterday, so i'm pleased about that
majorly misread that at first and thought you were talking about git
I need to step away from a computer for a while and take a hike
"pulled pork" = "pulled a fork" in my head ๐
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 :/
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
well
you reckon if i put enough towels in with the plates it'll clean em?
the plates not the towels
it would probably also clean the towels
added bonus
that's efficiency for you
idk where i'm gonna get plate softener though
for that fresh plate smell
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?
why is stack address starting from low , when stack start from high address and goes to lower address
HIGHEST ADDRESS
stack should start from 0xc0000000 (highest addresss ) then end at 0xbffeb000 shouldnt it?
what exactly is the question
stack should start from 0xc0000000 (highest addresss ) then end at 0xbffeb000 shouldnt it?
okay so you want to flip those two
very likely not an error
why
thinking.
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
ok so make sure you understand what the bottom and top mean here
??
does "stack grows from the bottom" mean they are adding to the stack from the bottom relative to the stack
like adding plate on table (adding data from bottom) ?
yes
so first plate has highest or lowest address
I don't know what they mean but that's what I'm wondering about that are they growing the stack "from the bottom"
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
me?
anyone
don't remember
ok
from some course on operating systems probably
i don't remember those things at all
i never bothered to learn the registers or that stuff since i never needed it really
did you watch the video on the memory stuff
yes skipped some part (some was too basic but idk what 50's represent)
like debug50 and other 50's
the 50 in the cs50 stands for a course number in that university. the lower the number, the more basic the stuff is
ok
@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
@low shadow well yes?
the video isnt correct
uhh
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.
oh
so don't say "the video is wrong" before you've thought it through
ok
I saw the word "stack" so I need to post the bast stack illustration ever https://robocrop.realpython.net/?url=https%3A//files.realpython.com/media/How-to-Use-Stacks-in-Python_Watermarked.d22262707558.jpg&w=480&sig=cf0e818fce39ab8386b06be2fa3774c094e33e34
oh yes i got the whole damn thing now
the whole damn stack frame, esp , ebp and eip
yes
yeah
the best tutorial ever
This is the homepage of Zeyuan Hu
I always think of it as a stack of plates that you slowly build
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
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
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.
Well in fairness, that page is about incredibly lower level processor codes
i never understand documentations, do u hemlock
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
ok