#š½Programming Chat v2
1 messages Ā· Page 6 of 1
urgh yes
wow so recent
the last edit date was jan 2024
i see you're still testing the server
ill try and transparently restart it between updates so you dont get surprised when its off
yeah sorry lol
I was just making sure of something
now I can actually get to the sending part
good news for you is..
only multiline response is EHLO (assuming you havent added multiline interpreting yet)
oh, should i restart to disable force TLS?
or do you have that in the bag
I have not I need to do that
rustls has me covered after I get EHLO down
okay good
remember, <code>Hyphen = continue on next line, <code>Space = terminate after this line
p.s. if you encounter a 5xx error or a 421 then its best to QUIT your connection and fix the issue
did not know this
should have read the spec more
the code remains the same throughout the entire message aswell
so the receiving "response" object should only be like, { code: u16, messages: [ u8[] ] }
hmm
i just realized if adacore does send me an email with an executable
run it 
will i have to decode the MIME base64 into an exe š
duhh
what was i doing again,,,
if you save it as a raw file and then use windows to add .exe on the end it can probably handle it itself
(I have no clue how this works)
@spare quartz SIZE 0?
SIZE is an ESTMP extension for giving an approximate size of your message in DATA
yes
it doesnt need to be exact, i just put it there for posterity
cuh
SIZE 0 means accept any size
(*)
need to move a lot of these magic numbers into the gui
also figured id be better off just writing limits/timeouts as binary files instead of text
mm now why did that hang
?
probably my while loop
I'm making a thing to parse ehlo
mm it hung again
ok so it doesn't even
ok so it hangs on reading
ok odd
@spare quartz does EHLO not end each line with "\r\n"
in the multiline response
220-Example\r\n
220 End Example\r\n
yeah that's what I thought
function Read_SMTP_Response (Stream : not null access
Ada.Streams.Root_Stream_Type'Class)
return SMTP_Response
is
CodeString : String (1 .. 3);
begin
String'Read (Stream, CodeString);
declare
ReadResponse : SMTP_Response (SMTP_Code'Value (CodeString));
StopAfterCRLF : Boolean := True;
ThisLine : Unbounded_String;
ThisInput : Character;
AfterCheck : Boolean := False;
begin
loop
Character'Read (Stream, ThisInput);
if not AfterCheck then
StopAfterCRLF := ThisInput = Space;
else
if
ThisInput = LF and then
ThisLine.Element (ThisLine.Length) = CR
then
ThisLine.Overwrite (ThisLine.Length, "");
ReadResponse.Messages.Append (ThisLine.To_String);
if StopAfterCRLF then
return ReadResponse;
else
ThisLine.Delete (1, ThisLine.Length);
end if;
else
ThisLine := @ & ThisInput;
end if;
end if;
AfterCheck := True;
end loop;
end;
end Read_SMTP_Response;
this is my reader code if its of any use
i havent gotten the chance to really test it out so
it might be completely wrong
not reading the EHLO
if the thread ever gets dirty and doesnt respond with a 220 please lmk
on the .read call
I get what kind of behavior you're thinking it has but that shouldn't be it
yeah that wasn't it
I made it 16
im just throwing what i got last time i tried doing that
hm
you're able to read the 220 correctly, why not ehlo's response..
ok even if I do read_until
which is part of the stdlib
it hangs
Open your terminal and see if your server responded to the most recent EHLO
can you run it again-
sure
dont ^C on hang
what do I do š
just leave it there
i wanna make sure theres no socket business going on
yeah its... just there alright
did the server respond?
^C, ill try adding statements to my end
i removed logging because of you know who earlier
so i have to readd it
servers off ill tell you when its on
k
@spare quartz also if I like EHLO via telnet it works just fine
I tried doing that to check myself
so it's probably something wrong with me
but I remembered the damn \r\n this time
this is werid af
yeah you respond what the L
wait
...
no
you don't get my HELO
why did you not get my HELO but I think it sent
telnet
oh
oh ok that's interesting
I set nodelay and nonblocking on my socket
let's try something funny now
hangs.
output?
no command from you
wtf
just initial 220
why tf does it do this
it says it sent the ehlo
wtf
not even HELO
I must be getting blocked or something
higher prt?
blehh
you did the same thing twice
ehlo aerasto.xyz
and you responded?
yes
rude
3 + 64 + 48 bytes
is way more
I must be over-reading the message
I might have to pass the buf in externally
115 bytes
this is perfect
I feel like 115 characters is longer than the first introduction
the full ELHO response string is 115 bytes
I'm cooking hold on
oh wow
421 handles the errors automatically its fine
its probably just too much data at once for BDAT
(blame mail-ed1-f48.google.com, not yourself)
lemmme just
make BDAT internally chunk every 250kb
ok I think I have cooked?
standby, doing update
the key thing here is now bytes_consumed
fill_buf() fills and returns the internal buffer without consuming anything
and at the bottom I consume as I compare
actually honestly I can just call .consume(1)
for each one
though it may make things sliiightly less efficient
whether this works or not I'm done for a while after this gets tested
I would say "why is rust this way and zig isn't" but I haven't tried the multiline read yet
gg
server alive?
this thing I've done probably won't work but
its up
i should really get to logging your ips
:|
im gonna lie down for now
well as expected I can do .read_until('\n') but
I don't like that
because it's not reading until \r\n
so you're literally reading char by char
Correct
Thereās no other way for me to discern when Iāll meet a CRLF
yeah I'm thinking that's the only option
finally
ok
reading char by char is aids
but
it works
What does it look like
yeah it must not be parsing it right
no lo
oh I know what it's doing
yep that was it
it was parsing all of "SIZE 250000" so it never matched on size
Meow
@spare quartz im trying to send mail from my school pc on 25 its telling me to start tls
wgat do i
Start tls
i am not familiar woth how tls works
Well then you wonāt be able to send mail
why not just.. put multiple into one rcpt to
?
cant you put multiple recipients into one call
no
bru
Yayyy
i like reply pings
GUYS
GUYSGUYSYUGSYUGYSUGSYUSYUGS!!!!
IT WORKED
The current cost for the 5-day virtual course is $3,570 per participant (the price will increase on January 1st).
holy shit š
the attached pdf decoded completely though so thats good
WOWWW
they use google for email....
god
finally got one of THESE GUYS
their STARTTLS crashed and burned without completing
i got about 5 exceptions out of it
lmao
someone has gone insane because of something ive made today
i think ive reverse made it
we were talking about dictionaries and sets in python as review today
instructor (who is like 80) talks about the keys of dicts and values of sets needing to be hashed
and somehow evolved to me showing that you can hash functions so you can use them in dictionary keys
what
lollllllll
Lightly pissed again
$130 CPU didnāt even last 5 months
rip
This time itās not even like
A POST error
Something in it just got destroyed and it thinks itās overheating when itās clearly not
So after booting up, 10 seconds later itāll force shutdown
rip
when you said POST for a second I thought you meant like HTTP and not like power on self test
would this happen to be an intel 13th or 14th gen cpu
AMD Ryzen 5500GT
breh
I was gonna say if it was an intel one
they have been frying themselves recently
I am a special type of unlucky when it comes to AMD honesty
My last CPU from them (5600G) had a bad memory controller that only allowed the B1 slot to be active (A1 caused POST error)
Now itās this one with its thermal sensors (assumed) messed up
OK
Third rewrite time
Funnily enough Ada WS already had SMTP server support
I donāt see IMAP or POP3 though
why are you rewriting your smtp server a third time š
honestly ok the urge to "nah I wanna do this myself" is so real
Itās the way I learn these things
1st try is to get down what Iām supposed to do, quickly but not permanently
2nd try is to clean up the last attempt and reinforce security and understanding
3rd try onwards is actually doing it right
And hey MAYBE thisāll be my big chance to make something people actually use
So thatās a factor too
ic
(what all coders want when they make something lol)
now that I have the stuff behind talking with your server down
I'm probably gonna restart my own too and make it better
....and properly maintain a git repo for it so it can go on my gh lol
what can I try
Try sending a mail to yourself- awwwww
but yes I could
I acutally did this when my spf record pointed to my desktop
And it worked?
Neat
Oh, weird
I did it over telnet and that url doesn't require starttls 
I might also develop the zig impl in paralell lol @spare quartz
Okay, now make one in⦠Ruby!!!
ruby more like ewwy
will you do it in rs
wait what
holdon correct me if im wrong rq but google only lets mails through if the propper txt records are set for uhh dmarc and spf right ( i might have butchered the names)
dkim or spf
but or, not and
DMARC: decides wether to use SPF, DKIM or both
SPF, DKIM: different ways of mail verification
Google requires you have at least one method
Also Iāve been sitting here for 4 hours :sob;
aren't they both just dns txt records
yes but they're both different authentication methods
not spark
yeah i should probably look a bit more into that
i need to study electrical machines first (we love croatia)
I wanna actually get to using it this time around
bro why š
you don't need a formally verified email server
I bet socket programming will just throw a wrench in it anyways
Think about the military applications of IMAP!!!
I highly doubt using the network is SPARK-approved
If push comes to shove Iāll just have the decoding logic be separate
A stream surely canāt violate SPARK
well doesn't SPARK solve the halting problem through it's formal verification and restrictions
@spare quartz you should try creating a socket in SPARK and see if it yells lol
GNAT.Sockets isnāt SPARK_Mode :<
Iirc you can only use other SPARK packages in a SPARK package

thought as much
what goofy name do I give my package
I was thinking maybe rmtps (rust mail transport protocol server, and then c for client) or moxy (short for "moxide" which is "mail" + "oxide")
or srtps/srtpc (simple rust transfer protocol server/client)
or smrps/smrpc (simple mail rusting protocol server/client)
idk
there's a few possibilities
yes you are

Though I have a bit more leeway since you donāt have specification files in rust
Also SPARK mode does. Work apparently
ok miko
you're literally knockoff niko

NO?
Dude
Holy fucking shot
they werenāt kidding when they said IMAP was complex
This is thankfully a library so all I need to do is read and write the commands in a certain format rather than actually make this work (rn)
@timid quartz starting next week we will be learning rust in school as official curriculum 
croatia w
well my school w*
croatia l
BETTER RUST THAN ADA š
what why
learn C
Rust is great and has lots of uses sure
But C is such a cornerstone even if it's not memory safe by default
Assembly is a nicer way to write binary and C is a nicer way to write assembly
i know all that
my professor just said that
actually i dont remember what she said im demented af
all i know if we will be doing it starting monday lmfao
this is honestly kind of a croatia L if you're skipping C
we've been doing C for like
2 years now

hey i skipped c š„ŗ
i think more code should be like this
i'm also doing ardino for robotics so close enough
7 bottles to deal with
shame on you
hey i did a little bit of C++
@spare quartz any clue whats going on here i swear to god this is how you do this
you cannot STARTTLS on telnet
wait-
oh i see
its MAIL FROM:<...> sorry
misread
learn lua!!!
nty
do it bitch
no
yes
MAIL FROM:<>
RCPT TO:<>
oh yeah by the way, im trying to email my own google account, i made an spf record but its not like receiving anything
i could be doing something wrong with my code but i swear i set up the spf record just fine
Show your spf record
Actually
just DIG his domain
v=spf1 ip4:95.168.107.103/24 include:_spf.google.com -all
You donāt need the /24
Idk what the include: is doing
Make sure youāre sending the email from that exact IP
also thanks for your location nerd
you dont need _spf.google.com unless you intend to send mail from your gmail account on behalf of the server
i googled whats my ip
KYS
i already sent it to the matrix gc that one time remember
so is it just
v=spf1 ip4:95.168.107.103 -all
p.s. the -all can be ~all if you just want a soft block
Hard block better
im not sending it with telnet yet, im running a nodemailer script to just test if it arrives into the inbox
also have you set DMARC?
Shouldnāt need dmarc
uhhh no
how do i
yeah i only have
spf i dont think i need dmarc
he should have it
I didnāt need it
its not great practice to not
How about I set up dmarc on you
ill enable it if this works
i have dmarc idot
v=DMARC1;p=quarantine;pct=100;rua=mailto:[email protected];ri=86400;aspf=r;adkim=r;fo=1;
this dmarc record sucks
Yknow what Iāll see the reporting address to your server
huh
they're all pointing at my computer
i can set this computer to DHCP onto its last address but im worried that could create some problems when its working again
o.h yeah
just realized im forced to rewrite the smtp server cause
i never uploaded the last version onto git
Felt
Literally half the reason Iām rewriting too
do i need to uh
set anything else in my dns other than an a record pointing to my machine (smtp.astrohweston.xyz to my host) and the SPF txt record?
you have an MX, SPF and PTR record right
dont answer that
okay goood..
not good..
weird...
uhhh
first one i need to remove
second one is for skiff
third one is the one im currently trying to test with
set up a PTR record if you're gonna have an MX
like this?
Why do we have pointers in DNS now
check agagin
ARPA stuff
What happens if my PTR record is NULL
š
bad PTR
i cant tell if this is a google error or not
this issss client
dont send your certs
im not skull
you're clearly doing something with a cert
No he needs to send his private keys so we can debug
alr one sec,,,
-----BEGIN SSH PRIVATE KEY-----
you like kissing boys dont you
-----END SSH PRIVATE KEY-----
this key sucks
highly secure key
can we ban this guy for sexual battery
NUH UH
im really not i promise :sob
my client script is
show code
29 lines of code long
21*
const nodemailer = require('nodemailer');
let transporter = nodemailer.createTransport({
host: 'localhost',
port: 26,
secure: false,
});
let mailOptions = {
from: '[email protected]',
to: ['[email protected]'],
subject: 'test',
text: 'penis'
};
transporter.sendMail(mailOptions, (error, info) => {
if (error) {
return console.log('Error: ' + error);
}
console.log('Email sent: ' + info.response);
});
port 26 is cursed as fuck
i cant do it on 25 so i just incremented
idk do it on 587
thats literally the smtp submissions port
nah use 465
what
wa
sir a modern mail server wont forward your emails for you
open relays are a thing of the past
try that as your host/port
turn on secure then
your tls is borked....
BOR
@timid quartz what was the non tls smtp server you used
well i was able to connect to it thru an online service
im already talking to my isp abt it before you yell šš½
$500000000
REALL
but uh
can i not like
send an email to like smtp.astroblah and have that send it wherever it needs to
instead of like digging for online smtp urls
in todays world
the client sends a letter to a mail server on port 587
the server then relays that message to other servers on port 25
since your server is running locally...
how exactly would it connect to other servers on 25*** if your isp doesnt allow that
cant i just send it to locahost:587
try it
my isp doenst allow
25
corrected
no it indicates i fixed an errata in my message
probably
hm
although idk if
nodemailer is designed to receive mail?
ive seen a lot of people say it isnt so umm that might be a slight issue
aerasto.pem
Youāre not very wise are you
no
You know why I say that to you a lot donāt you lol
is he wrong though...
what server is that from š
I stole the emoji from sst and renamed it
it's from beagle's server
yes
he made it after the server we came from was deleted by the owner in a self destructive phase
so it's a subserver
"BGD sub" the community called them
OHHH wait i remember it faintly
okay just for future self
if i do make a browser make sure to inject trackers into copied images
oh wait i misread that
you should inject trackers everywhere
become the next chrome
but advertise yourself as privacy-focused
no not ad trackers
i just wanna make the browser SPARK
put non-ad trackers that still track people
GNAT.Socket isn't SPARK 
analyse the data flow of People
i was able to compile the body file with spark mode, actually...

no code in it yet
i need to actually do smth with this
make your own os!
hhh architecting a project is such a painnnnn
though
barely anything has been done on it lol
whats your kernel design
yes
it is a microkernel correct
or perhaps a monolith of microservices
I actually don't know, this was meant as a funny testbed and not as an actual os
but even then we've barely done anything with it
man :<
oh
i see
honestly biggest hurdle last time i made a kernel was the fact that getting UEFI is h-
ćććć
STOP SPEAKING KATSUMI
i hate japan we should nuke it 2 more times
except for that air base
ć§ććŖććē¬ē¬
ćØć¤ćć使ććŖććØē»é¢ććåŗć¦ćć¦é£ć¹ć¦ćć¾ććć
Anyways
ććććććGoogleć«čćććļ¼čććŖćć£ććę„ę¬čŖć§ććć¹ć£ćć®ćÆē”ēć ć
work based-off-of-the-work-of-a-thousand-people-behind-you, not smarter
Translating to and from Japanese sucks because Japanese is such a high context language that often when translating into English, the translator program has to make up pronouns to make it make sense in English
vs Japanese a lot of that stuff is just implied based on context
i wonder how it works
ive never ever touched word processing aside from command r/w
from my limited understanding, neural-network style
can anyone give me a valid use case for tor that is not a criminal action
privacy
accessing videos not in region
its a free vpn
Using services (that donāt require logging in) without allowing them to track you
@spare quartz @timid quartz update: my isp responded and apparently they do not block any ports for anyone

check your uh
router
and windows firewall
what am i looking for exactly lmfao i ran out of ideas
i disabled it completely and it didnt work
do i like have to reboot after altering it to make changes apply??
check router firewall/port rules
there's a chance it blocks outgoing on those ports by default
ummmm
lets see
nothing yet but i did see this?
and this is all about firewall
maybe add 25 there
i did
i just dont have anything to test it on since
atp is offline
unless u know something i can telnet to that runs on 25
ok lets see
mmm
well this time its not connection refused
hmm i might have done this wrong
even worse
ok
this is a bit dangerous so undo it right after you test
but try disabling the entire firewall
ic
rip u ig idk croatia moment
lets try
i swear to god if you blame the ENTIRE country one more time
im going to do bad things
LOL
IT JUST FAILED AND KICKED ME OUT OF THE INTERFACE

ok now it worked
gonna rbeoot the router brb
barack
ok yea nothing
let me reenable my firewall lo
just use an ad blocker then
Does anyone know a good way to change the windows 10 Night shift/Blue light mode using Python, it can be either through python or powershell?
Whoops sent too early
Looks like its mostly about setting it to grayscale which what i want is to enable the thing that massively turns down the blue light channel.
alternative⦠https://stackoverflow.com/questions/58205092/how-is-windows-10-night-light-implemented
i found this, i dont really know powershell
i just figured id need to directly edit the registry
and i know powershell can do that
looks like it probably doesnt fuck anything up but im not sure
oh shit thanks
you'd think microsoft would just give you a way to have it automatically turn on when a certain program is launched but i guess no
maybe they have in a newer version but i use Win 10 IoT Enterprise LTSC 2021 which is based on windows 10 21H2 but gets security updates and software support till 2032
Ip tracking:
Ignoring it:
Fuck yoy:
Iām pretty sure Iāll never be able to understand it cause like. I hate privacy!!!
Shitpost elsewhere pls
?
oh atp did you do something bad again
They can still track you
I like the idea of when the government catches on to my actions, I can take my laptop and phone with me on the run because it's so difficult to find me
i mean personally id just let it happpen.........
Naw
Unless a officer tells me to stop for him and I don't I can't be charged with escaping
Can't be served a court order if I have no address
no if an officer tells you to stop and you flee he'd just write down your plates š
never ever run from a traffic stop
The amount of info I would have to give to get a plate is too much
YOU CANT DRIVE WITHOUT A PLATEā¼ļø
Did I ever say I would drive
then why would an officer stop you
- if its on the street they'll just tase (or shoot you)
- if its at home then you've got a bigger problem
when the government catches on to my actions
Become untraceable
The only picture they have of me is as a 7 year old
and it also depends on what agency you're infringing upon
if its the IRS just give up
if its the FBI, depending on your crime, you can ignore it
I pay all my taxes, I know how fearsome the IRS can be
what about your medical records
your records are always available electronically
(though i suppose tying a user to a real name is a challenge)
Well they don't have to store my info electronically they can just write on my paper
it generally always will be though
Yeah but if your never added to the system
okay but what if you get like
some sickness that cant just be fixed in a single visit
will you have them recheck everything everytime
Like I said my records are on paper
No
then theres electronic information
I carry results from scans
okay but along the way theres still gonna be information attributed to you
say you got an MRI scan
it has to be stored somewhere, even if your doctors delete it afterwards
It's just a video
And looks the same for every human if they're healthy and same size
i wouldn't say that
(also why would you get an MRI if you're healthy? here they're so EXPENSIVE)
oh
Yeah they are crazy expensive
turns out there is a dedicated system for storing scans
A picture archiving and communication system (PACS) is a medical imaging technology which provides economical storage and convenient access to images from multiple modalities (source machine types). Electronic images and reports are transmitted digitally via PACS; this eliminates the need to manually file, retrieve, or transport film jackets, th...
(ill have to read more into that)
anyways imo i just think privacy makes you more vulnerable to tracking if someone did want it
instead of being "everyone else" you're even more isolated to a select group of individuals (since having "absolute privacy" would be... moving to a forest without a computer)
it makes it harder to get information on you individually, yes, but you still become more... "in the spotlight"
Yeah but would the spotlight even be able to find you
depending on what you've done and if you're worth the trouble yes
we get so many pictures of "wanted criminals" of hackers from like, russia
i guess nobody would arrest you persay but
they'd still eventually know you
Your so right and wrong at the same time š how did you draw a conclusion from something like that
wdym
Your talking about being in a more special classification because your obsessed with privacy but the entire point of being obsessed with privacy is not being classified in the first place
okay, tell me then, what would be more suspicious to you
- generic computer #394353, who is the average firefox user
- generic computer #493259, who is the average chrome user
- user on some tor node, with no information but their UA
If they are listed then they failed
then how do you expect to browse the internet?
tor/vpns might hide who you are initially, yes, but it doesnt just end there
You wouldn't use the Internet in the first place
okay, then if you arent gonna use the internet, how do you expect to... eat, at a restaurant?
with cash?
how do you get that cash?
from a job
which requires your social security number
i mean, here, yes
your social security number is anonymous
your ID # aswell
i live in texas
north carolina
theres different things state by state so
yeah thats a bit of a fair point
Thatās so cap, getting your SSN is key to someone stealing your identity
some people just dont have SSNs
Freaksā¦
they can steal your identity definitely
but if they dont get it, your still anonymous
how do they get money
I dont think some jobs need ssn
some jobs might offer alternatives
like this is from the department of health/human services
id imagine those have something tied to you though
of birth
really dumb system honestly
atleast it works without electronics and is anonymous
but those were ideas from like, a hundred years ago, being used for purposes not meant for them
even though taht works against it
yeah ssn was made by the irs
I think
well its not supposed to be an id
and whover controls social security literally says that lal the time
but laws that say you cant use it as an id would be violating some freedom ammendment
icky
so all they can do is just hope and pray that you dont use ssn as id if they ask nicely
i mean hell
Chat I think Iām gonna learn C++
its even in the SF 86
C++ is a W
whats that
learn Ada š„ŗ
standard form 86, classification stuff
Either C++ or rust
NOOOOOOOOOOOO
oh the security clearence
you can get that without
ssn
or anything
its on the form itself
honestly im gonna put this on my website whenever i make one
lmao
"this website does nto use cookies, but it does use your social security number to keep you on the same account cross pages"
yess :3
Itās cool but Iād do C++ first
W
Rust is just difficult to learn
Entirely different way of thinking because of the borrow checker
I think itās good to learn C/C++ first because itās a bit easier and then you can appreciate what Rust does for you if you learn it later
i guess thats fair...
the ada community yearns for another devotee though.
(although pascal-like languages arent very popular in the job market)
remind me to learn ada it looks cool
my best traits?
Send + Sync + Serialize + Deserialize + Clone + Debug
god i just remembered that you need to mark things in other languages as serializable
as what



