#ot1-perplexing-regexing
1 messages ยท Page 475 of 1
Standup is supposed to be "what you did yesterday what you intend to do today"
We usually have ap's for the next day. Check test coverage, talk to X about Y, stuff like that. And we update the team on the progress of those ap's
So we don't keep repeating the same stuff day to day, that would just be stupid
AP is action point?
agile does not force you to be stupid if you are smart about it
yeah ap = action point
Agile doesn't - agile is an adjective which in most cases could be replaced with "good"
I'm talking about Scrum
Neither does scrum
which is an implementation of the ideas in the agile handbook
And scrum sets out pretty clear sets of processes
You don't need to discuss the finer points in the termology with me. I have worked in the industry for several years and I know agile development very well.
which if you follow as described/as-taught - can be very frustrating
Agile is very clearly a good thing. Scrum on the other hand has obvious problems
Standups just don't work well for lots and lots of people
they might work well for some teams
Sure, but it is better than waterfall, despite the fact that some industries need some amount of waterfall
I agree - Scrum is better than what was happening before the idea of agile was around, but eventually someone will publish the equivalent of "Scrum and XP from the Trenches" and slowly people will move towards something better than Scrum
In any case how you implement scrum is entirely up to you as a company. There are some recommended practices but it is not a rulebook in the sense that you need to follow it if you don't wanna go to hell
And I don't think I recall any case where fundamentalism has made something better
It is of course up to companies. But big companies tend to implement it in very similar ways, and in ways that aren't actually conducive to making devs happy
That's big companies for ya
Lots and lots of companies do use scrum like a rulebook
I know lots of people at big corps who have had very similar experiences
Scrum is just the first big implementation of the agile handbook - another will come along eventually
Sure, I get your point charlie. I also don't think scrum and agile is a silver bullet and I also know some managers treat it as such. What I am saying is that does not necessarily mean scrum is bad, but that some practitioners of it do things in stupid and non-productive ways.
Where scrum is implemented in a good way, very few problems exist. The problems that do exist have in my experience more to do with the individuals and the culture of the people doing the scrum
I would 100% prefer to work for a company doing scrum vs a company doing "your manager tells you what the fuck to do". But my point is that i don't think choosing to implement scrum things in your open source project is a necessarily good idea. As a group of people, figure out how exactly you want to solve the underlying problems
Github issues, messages on progress updates in a Discord channel, regular meetings, meetings when everyone feels like they might be a good idea - all of those can solve the same problems as standups
and as they go - standups are generally pretty irritating if you're working 100% remotely
Right now companies use scrum because there's no alternative to scrum that has a name
and it's best of what are all going to be bad systems
I don't think it's the best - I think in 20 years time no one will be doing Scrum
well - maybe Oracle will
but no one serious
I think I'm overestimating the speed at which companies move - say 50
Since we have a lot of agile knowledgeable people here, what framework do you think would be best for a single person working on a very large project?
The waterfall method was never a method that companies explicitly chose. The waterfall method was identified in a paper in the 70s as what companies shouldn't do
(about software)
and the term waterfall wasn't used for safety critical projects or the like til after that paper
even if the process was being applied
I would say it is entirely up to you.
Yep. I think itโll be only me
I also reject the idea that Kanban is a method in and of itself - it's just an alternative way of writing a TODOlist
Maybe Iโll drag some other people along, but itโll just be me in the start
Sure, but it's best way to describe the method
doing kanban makes you feel like a wise sensei
that's a very good comic
working at mitsubishi or wherever the fuck it was invented
Toyota I think?
I don't know - I just remember some crusty old lecturer banging on about cars for ages
yeah bloody hell it was
Any other reasonable methods than Kanban?
Kanban is just a way of organising tasks - but it's a pretty good one
From what Iโve heard, Kanban seems nice and possible as a solo team as well. Just wanna evaluate the options
With single person, it's generally, you have shit to do, you need to keep track of what shit you are working on and any dependencies
Kanban is probably most well known method for handling that
Most of these methods are for organizing teams in bigger companies though. You don't get that much out of em working solo imo
Scrum is more about organization and business keeping it's MBA employed
Yeah, true
What I usually end up doing for solo stuff is just doing whatever the fuck I feel like for the first 80%, then writing a TODOlist for what needs to get done for the first release, and just tick things off
Agile is developers saying "Screw all of that"
Kinda the same charlie
I keep track of issues and I make sure to do proper commit messages, but apart from that I just go where the code flow takes me
Scrum is an agile framework, or what do you mean?
Project and software methodologies/frameworks are not clearly defined set in stone things. No business is just doing Kanban - because Kanban is a way of writing a todolist and seeing who's up to what
and Kanban is in no way necessarily agile
you could 100% do Kanban+waterfall
I tend to try and write good commit messages, but it falls apart as I'm getting frustrated
That's what the issues are for charlie ๐
having a solid commit template helps a lot imo
Commit templates seem like a good idea. Not sure about associating commits directly with issues though - seems like you might end up with some unnecessarily beefy commits
but my git usage on the whole aint great
no you take out all your frustrations writing the issue summary, that's what I meant ๐
You can track issues in most modern git hosting sites, such as github or gitlab
How do you usually structure your commit messages?
I only associate a commit with an issue if I resolve the issue with the commit
oh sure - that makes sense
problem with commit templates is you could encourage less commits which can be problematic
Yes, I agree rabbit
that's a problem of mine since we tend to do massive commits at work
biggest one I have done was 3k lines
which is NOT how you should work
What are even commit templates?
Vestergurkan, generally 1-2 line about what I did in this commit
you know word templates?
Hmm, not quite
Templates for Commit messages
the best commits are the ones where the subject raises a question which the body then answers
at least I find them very satisfying to read
!source
crap, they love squashing
Fix something broken
- Moves the utils logic to a separate file
- Improves modularity
This is generally how I do my commit messages
there are companies that expect you to fill out a little form in your commit message
like what did you do, what issue was it for
if you want examples of good commit histories - Kotlin or the UK government's stuff
but some companies will expect a form to be filled out in commit messages
which means devs won't commit and problems will occur
@narrow pecan This is an example of a really simple template I made a while ago for a solo project. Whenever you commit you must write a summary of the what you changed, you must specify if the change was functional or not, and if it is functional you must also specify if the compilation and execution went ok. I would want to automate this using tests but I have since then put this project on ice
Is that a single commit?
yea down side of that level of BS, programmers might commit less often and you take away git ability to track changes
but you sort of get the idea I hope
Maybe I should start writing a paragraph as a summary instead of just doing a bullet list
Hmmm
Pros and cons, it is really up to you how you work. If you work in a team you adhere to the team way of working
like I may work on new feature and you will see commit history of "Initial template for fixing X"/"First testing attempting"/"Rewriting FooBar"/"Fixing up FooBar"
Wouldnโt you just squash those?
at my company? No
nah squashing can destroy trackability
NO SQUASH
Pull requests have better write out but I'm big fan of git track changes, let it track changes instead of ton of commenting out because you don't want to deal with committing
thus my dislike of commit templates
I get that for personal project, I really do
NO SQUASH
Some industries does require more info in commit messages though
I work in Finance
And you canโt squash in finance?
industries don't require it, some team lead without a clue does
Let me see you explain signal processing code without a hefty commit message ๐
or better yet, let me see you review signal processing code without any info in the commit message
I would hope the pull request would have all that
We don't do pull requests
at that point, is it not a problem with the code itself? If it's esoteric enough to need lots of text explaining it, beefy comments/docstrings seem like they might be a good thing
I would say it is a problem with the method. It is not easy to explain why you would shift a zadoff-chu sequence x steps instead of y without a lot of background information
yea, trying to read git blame is more frustrating then long comment
it is pretty esoteric and you can't really escape it
but that's kinda the point - what's wrong with a comment?
I mean, who hasn't worked on Enterprise project with paragraph comment explaining terrible decisions that lie within
Well - comments lying to you is probably the end result of the problem
yeah, I just realised. Comments with incorrect info are hell
and that's the inevitable result of most long comments
nothing is wrong with a comment, but in our company we are also required to do a summary of the change in the commit message, and we often have to explain quite a lot.
I've written several comments of "I know you wondering why this happening, let's explain the nightmare that brought us to this"
now that sounds like more the kind of thing that would belong in a commit message
seems to me that good code has it be apparent what is happening, and the commits explain why
eh - no
I can see why you'd want a comment for that
benefit of comments is also using git blame, you can see how old comment is
Charlie, comments are in same interface as programmer is working in
The real benefit of comments imo is when the code starts doing bit magic
because there the code does not explain itself anymore. It's just a bunch of seemingly random shifts and xors
git blame monday morning
when the code starts doing bit magic - I find a different job
a comment explaining how and why is gold
so when you see python def spameggs(spam:int=None,egg:int=None): #So you are wondering why none is default #Well apparently foobar library requires None to be default #Or it segfaults, this behavior I can't explain but please don't mess with it #Despite sending in None causes TypeError if spam is None or egg is None: raise TypeError("None is not acceptable") return spam + eggs
developer right away can see what's going on
yeah, I get that, it makes sense
that viking sketch is brilliant btw
?
totally forgot about that
the python spam/eggs names are inspired by the Monty Python sketch - is that what you're referring to?
or is there another similar sketch?
yes
what's viking about it?
there is a bunch of viking at the resturaunt
ohhhh yeah
and they all starts singing spam spam spam when they say spam too many times
then it changes to a viking ship rowing in the waves xD
the vikings are the best part, you start hearing that low spam spam spam singing in the background
then SPAMELY SPAM!
LOVELY SPAM
IMO, Comments should explain code (if it's not easily understood), commit messages should be quick explanations for any changes and PR should explain why those changes are required, any problems with said changes
it's such a fucking dumb sketch - I have no idea why it's so funny
but it really is hiarious
IMO comments should explain the why of the code, not the what
agreed charlie ๐
unless there is bit magic, then also explain what
unless there is bit magic, then also explain what
explaining src with comments ๐
unless there is bit magic, then also explain what
Source code is hopefully self explanatory
but comments are good place to clear up any confusion that can't be easily understood
like my example above
i will try to add comments and tidy as possible if im willing to publish online
comments will help a lot :-)
@undone berry @lofty dirge I had a massive argument with a colleague today that left me in a sour mood, but sitting down discussing the pros and cons of different software development methods with both of you made me feel a lot better. So I just wanted to say thank you ๐
send a direct message to @polar knoll to chat with the mod team
no worry
yea
but i use the inbuild python text editor
not the 'autocorrect' and all the other more features
idle?
Umm yes
idle is bad xD
I find it way easyer
ehhh it's not that bad
yeah, I used vscode for a bit when I was doing fullstack stuff without pycharm pro.
I recommend either
idle gets the job done haha
it's perfectly fine
but I use sublime or vscode if I just need an editor
yea it gets the job done
I don't write that big code
I've only started using tkinter
idle is great start out on. It lets you focus on just learning the code.
defenetly
I like to get people on things like vscode or pycharm asap though since they are very useful to use. Even if they can be overwhelming at first
I guess gradually im probably going to stop using idle
im too lazy and pycharm was good enough
pycharm is the best imo
When i got a windows 10 vm,
It came with vs
it took 9 minutes to load
Last time i tried to load the vm,
My pc froze
after 16 minutes
that is not normal haha
my cursor moved ๐คฏ
then it took like another 10 minutes to press alt+f4
and quit
I was litterally watching youtube most the time XD
What intel cores do you have?
im getting a new pc for myself and not for my mum, dad and sister to continuously do dumb things
I am gonna get vs with my pc
ei ei fisher
I have an amd 3700x, but the intel i5s are pretty good nowadays
Where's ur bot ๐
and i3s
I wanna contrib
on my GH
i have an i3
fisher come to ot0, @rader dont interrupt ๐
it sucks
its old
my pc has ddr3
4gb ram
a broken headphone port
a broken cd port (sometimes works)
and a broken sd card reader
: )
cd readers are overrated now haha
I def have many pc build recommends
i can only listen to old town road ๐
lol my pc has to be about ยฃ200
i have seen a i7 for like ยฃ220
its a pc
not a desktop
what pc recommendations?
well, I build pcs.
I can recommend a build list if you have a price range and you are building a pc
I was thinking of building a pc,
but all the measurement stuff and thermal paste
what happens if you dont put thermal paste on your cpu?
it melts
most cpus come with thermal paste. It is super easy to apply though
and you do not worry about measurements mostly
you can use online tools, but most parts are very compatible
you can always @ me if you need pc advice
no thermal paste = poor heat transfer = overheated CPU = thermal throttling and potentially damage
the heatsinks that are provided with CPU's when you buy them stand alone have little pads of thermal paste on the bottom already
uuuh
ooh
Wait a sec, this might take a second to type
So basically, We have a windows xp desktop
and there was a fan like that
in a bit, we realised there was thermal paste
and a cpu under it
so is that what you have to do if you want to build a pc
CPU/Thermalpaste/Fan thing
yeah. you put the CPU in the motherboard socket and lock it in, then lower the heatsink down onto it and clip (or bolt) it into the mounting sockets
if you're applying thermal paste yourself you just smear some thinly and evenly across the CPU socket before lowering the heatsink onto it
always remove old thermal paste before applying new thermal paste
what happens if you put too much
if you remove a heatsink always replace the thermal paste
putting too much on can cause over heating issues
thermal paste is pretty good at transferring heat
but if it's too thick then it's not going to work
so if you put too much it will melt
well not melt melt, but you could potentially damage it
the general rule is you want about a pea sized drop amount
really don't need a lot
I over clocked and disabled the temperature shutoff.
Thank you for watching!
like that
because all it should really be doing is filling in the air gaps between the heatsink and the CPU heat spreader
I need to watch more Linus Tech Tips
Ok, you've convinced me
I'll make a computer
(with your help, of cource)
if you can
there are plenty of good guides about building PC's out there
I'll use those too
people in here would be willing to help, for sure
yea
building a PC is a good opportunity to learn stuff. ๐
get a noctua doe xD
chunky bois
i think the fenrir evo i've got is probably still suitable for newer CPUs
I feel like building a PC at this point doesn't really teach all that much. If you just keep pcpartpicker happy, it's pretty much impossible to go wrong
it does teaches interfaces and basic components
well i think in younger people it's good exposure to the inside of something electronic
even if it is just slotting stuff together
there's the whole process of it as well
it is essentially lego, but lego is great for teaching
maybe - I could build most PCs, but I couldn't touch a toaster in any way that's useful
I don't know how much of the fundamentals carry across to other fields is the thing. I've never thought about actual electricity when it comes to pcs beyond touching a radiator beforehand
Nah pc's are very specialized
but you sorta learn the different interfaces and what goes with what and such
sata goes with sata, not with m2 for example
well i mean you probably have thought about the electricity before
you weren't using a 250watt PSU or w/e
because you had shit to run
Nah if you wanna get into electronics from the computer point of view I would suggest picking up embedded development
I was using a 750watt PSU with what could easily have been run on a 450 watt PSU - but because I understood nothing I went with a cheap 750 one which exploded
didn't teach me anything except don't buy cheap shit
I say exploded - not even that exciting, just sort of died
the ultimate guide to building PCs:
- Don't buy unknown brands
- Keep pcpartpicker happy
- Buy AMD
- Buy an SSD
I always had issues with amd
driver issues
So i went with nvidia last time i built
never regretted it
1/2 are the only actual hard/fast rules - 3/4 are just things that are correct but that you have to persuade people so
I was running amd stuff for 10 years, was not very happy with em
I'm ok with spending some more money to get a nvidia card
for cpu stuff I can't really complain though
that's (AMD stuff) a separate discussion that I can't face right now. But my point is that I don't feel building PCs has too many transferable skills - especially as practically no one can afford to do it regularly
was running a phenom 2 x6 for like 8 years, the darn thing was solid af
yeah - the GPUs aren't great if you want highend
we teach pc building to students
it might not surprise you how quickly cpu pins are at 90 degree angles
Changing a tire teaches more transferable skills/useful knowledge than building PC
I sorta agree with you charlie. Fiddling around with a raspberry pi teaches a lot more about actual computers than building a pc does
for example, it teaches you that wheel locking nuts are absolute fucking bastards
i'd kind of like it if that one guy i work with could use a screwdriver faster than a slug
he could've done with some PC building
haha - what he needs is to put some Ikea furniture together
i think laptop work is a step up from just bolting a PC together
100%
just slightly more complex levels of taking stuff apart and putting it back together the smaller devices get
yeah, and you generally need to at least think about the specifics of the laptop in hand - if not looking up actual specs/details
like, laptops come in all sorts of different configurations that you kinda need to know before taking them apart
my least favourite bit is still the snappy plastic clips
taking apart a brand new ยฃ2k laptop to put a massive SSD in it and the only way in is through the roof
I just remembered that my PC is using a mcdonalds coffee loyalty card to keep a fan from making an awful sound by pushing it away from some wires
that's very janky
sounds reasonable
lol big brain
I don't think I'd want to touch most laptops myself
agreed
don't mind working on mine, little stressful working on the expensive ones of customers
all I'll do with laptops is swap ram and hdd
I don't enjoy tinkering with hardware generally. I can do it. I built this PC. But I nearly had anxiety attack putting the cooler on the cpu head.
Its not something I do for a good time, thats for sure.
I'm very disappointed today.
I had plans that hinged on a few other parties. At the last minute, one party almost backed out.
This made everyone else go, "Oh I guess it's not going to happen."
And then the original party changed their mind again and was on.
And now I cant gather everyone back because one person had a brief ambivalence.
People are not worth it.
I kinda enjoy hardware side of things. Like I really wanna sleeve my own cables but man thats a nightmare I heard
You getting eaten POV
hi
im facing installation issues for pyobjc
i checked yt , chrome but not finding any solutions
๐
distrubingly, "help i accidently ate poop" is the only query that makes sense
I don't know how I feel about that
"help i accidentally ate gluten" would also make sense if a person couldn't eat gluten
this is underrated
Accidentally ate a helicopter
otn hewp-i-accidentawwy-swawwowed-a-pet-named-steve
.randomcase 764405160566456394
OTn HEwp-i-acCIdEnTawWy-sWAwwowED-A-pet-named-StEve
k
Does anyone have problems accessing sendgrid website
seems a bit slow to me - but I can access app.sendgrid.com
lol
it worked on mine
signing up doesn't work
@rough sapphire aaah nvm
what does signing up loook like?
like when it loads
i see
the Create Account btn stays grey
I did now after a lot of hours
Sendgrid is very nice to use - as long as you're not doing >100 emails/day, it's free and fantastic
I did now after a lot of hours
@rough sapphire well at least youre there now...
hihi
Sendgrid is very nice to use - as long as you're not doing >100 emails/day, it's free and fantastic
@undone berry ime they ask for a lot of details. They also automatically assume that you are working for an organization and ask for website and stuff and if you can't provide those then account activation is a hassle
Has anyone regulated a rpi themselves through the gpio power and ground pins?
@sour forge I have only ever used it from the POV of an organisation in fairness. The actual API/Python SDK is super smooth though, and once you're signed up you get a pretty nice to use set of tools
sendgrid is included in Github education pack :)
yeah I had use it back when I didn't have education pack.
thing is, once I activated sendgrid, I still couldn't get it to work and then I just used vanilla gmail lol
also for some reason sendgrid has a weird sign up ux 
they kept asking for more info
Yeah
sendgrid is included in Github education pack :)
Is it? All I see is $50 in twilio credit
There's Mailgun
hm lemme check if it's still there
the github website doesn't list it anymore
but
they still have this page on their website, you can give it a try ig
huh - that looks like it might actually work. Although I doin't actually have the education pack setup apparently
why do I get this error in unity when I try to add a script component to an object
looks like it's because the class can't be found
no the calss name matches the file name
can you find it
Have you checked the different options from this SO post? seems like you've covered no.1 at least, and I think no.2 as well https://stackoverflow.com/questions/51713497/cant-add-script-component-because-the-script-class-cannot-be-found
the second answer seems like it might be useful
no i just added a simple public variable
that is all
ill try three
ok i think this is the problem
but what is a dll
yeah im reading about them in the microsoft docs
oh wait
what
this has to do with the text editor
r u using qt
the file is open on another text editor?
or any framework
no its open on another text ediotr
this doesnt make sense
im getting an error saying that i cant delete this file bc it is open in another text editor
best way to deal with those kinds of errors is to restart the PC
you may have ctrl+Z'd vim somewhere
maybe
ill just leave the file there
i think ill just reset the project
i only made like 4 cubes in the map
@twin hearth __add__ existed in python 1.5.2
that's the oldest version of python i can find documentation for
dang
@sand inlet can you answer a quick question of mine if you are familiar with sqlite3 ?
i'm not familiar with sqlite3
thats fine mate
have anyone here watched Begin Again ?
quantum bogosort?
is that just bogosort?
random.shuffle(list) and check whether it is sorted
I think
ah, quantum bogosort is the best case scenario
ok so you gotta use threading, and spawn a universe in each thread
now yo gotta check whether the list in each thread is sorted. if a list in any particular thread is not sorted, you can delete the thread.
otherwise, you are good.
better download more ram and a couple of ryzen threadrippers for ease of calculation
You don't need threading. Quantum randomization will automatically create n! universes.
So each universe will contain its own Python process.
@solemn reef The issue isn't the Python implementation, it's getting the hardware necessary to randomize a list quantumly.
Once you have it, you just need a Python library to interface with it.
You don't need threading. Quantum randomization will automatically create n! universes.
@wooden silo but there arent any good way to keep track of the universes in python
lol
I expect it would be difficult to use a quantum computer, sometimes. Half the time you go to use it, the bloody thing never existed in the first place and some other you from a parallel universe is using your computer, the bastard.
eh?
@quick ledge You can't solve that in software in any language, you need dedicated hardware, which you would call through a library interface.
I expect it would be difficult to use a quantum computer, sometimes. Half the time you go to use it, the bloody thing never existed in the first place and some other you from a parallel universe is using your computer, the bastard.
@soft violet relatable.
@quick ledge You can't solve that in software in any language, you need dedicated hardware, which you would call through a library interface.
I mean, you are the expert
yeah, dont you hate when you sit down at your computer and the computer just is not there. And you are not at your desk.
And there are cats everywhere for some reason
XD
i dont think this is the same universe though
well, are youEvil Rarisma?
i dont think this is the same universe though
@solemn reefdel universe
A woman is at her deceased husband's funeral and a man leans in and asks her "Do you mind if I say a word?"
"Go right ahead" she replies.
The man stands up, clears his throat "Plethora." and sits back down quietly.
The women with tears in her eyes says "Thanks, that means a lot."
no im just doing my quantum cs degree
then no, this is not your universe
no its
os.remove("universe.ttf")
LOL @ Natani
๐
I was trying to type it up being the conversation moved on so I wasn't interrupting, I type slow sorry
charlie has no power here, his tea abilities should have faded by this time of the day.
lol
it's 19:23pm - that's prime time for a cup of tea
dang it, I should have known this would summon him
impressive, fisher
also: with caffeine??
also also do you only drink black tea? I forget what your tea preferences were
Hi
hewwo
o wait what
spooky
such a spooky mystery we will never solve
2 spooky 4 me
username checks out
whoa, thats deep
lol
doot doot, the skeleton army will rise
Tea preferences are black (breakfast) tea w/ milk and sugar
and there is caffeine, but like 5% as much as in coffee
also - it's pretty common to have coffee after dinner, and that has far more caffeine
wait you do put milk in tea
of course
@eternal wing was it your fiance who was working on a book? ๐ค
how is that going?
she is. But she is now my ex.
The book is going well, the fiance part not so much ๐
Oh sorry, my bad
no worries, cool you remembered, haha
also - it's pretty common to have coffee after dinner, and that has far more caffeine
if I drink coffee late I just don't sleep haha
I usually avoid it if I want to go to bed in the next 3 or 4 hrs
So does anyone know miracast at all? My tablet can't seem to connect to my webos tv
I do not ๐
This has been me "helping" xD
Idk why webos and wi does 10 has to be such pains
Like all I wanna do is watch crunchy roll on my tv in bed is that so hard
apparently
crunchy role would play adds for a ton even when on paid subscription, it made me so mad I never went back LOL
I haven't ran into an ad yet and I've been watching MHA season 4
Finally got miracast working but sometimes the audio jitters
my hero? I could not really get into it xD I watched a good chunk of season 1
Ya, idk I just really like it lol
But I also like DBZ too. Which is odd. My wife hates DBZ but likes MHA
MHA is ok, FMA is good
Fma?
full metal alchemist
fma:b is the better version
I think I watched brotherhood second.
It is tough. I really like both of them. I think brotherhood obviously got the story better, but the character development in not brotherhood was better imo
Ya I forgot that for some reason. I dunno, I think each have their merits.
Hello, I have a problem - I know that I can send 4 messages every 10 seconds, although, not each per 2.5, they can only be sent all together, every 10 seconds at most. Now, I know that in an hour I can send 1440 messages, but how do I know how often 4 messages should be sent to reach x amount of messages in y time?
you know you can send 4 messages every 10 seconds
you only have to deal with when the time is less than 10 seconds
10 seconds is delay
Time is another thing
Hour is time
I can send 1440 messages in an hour with 10 secs of delay from each send
you can send 4 messages per 10 seconds right?
Yes
This is what we have:
Set of messages = 4 messages
Delay = 10 seconds
Formula to calculate messages per hours - Time(seconds) / Delay * Set of messages
Example with Time being an hour - 3600 / 10 * 4 = 1440 messages/hour
it seems you can calculate it yourself?
Well thats how many messages I can send with delay always being 10 seconds
But I want to know with given Time and Amount of messages to be sent, what will the delay be
Sorry in my initial message I explained it wrong
@terse sluice any chance you are free to help explain some ci/cd stuff a bit?
or maybe point me somewhere I can learn.
the examples you sent were good, but I do not understand them very well.
i'll try my best, what's up?
well: I am just trying to deploy react, but I cannot even get the checks to run. I was following some simple tutorials. The checks were failing with syntax errors, I fixed the syntax, so now it just shows that zero checks run.
I am mostly just unsure where I can look to learn this stuff
when I google, it is just 100 copies of the same article haha
any way, to be more concise:
is the idea that these checks run, then send data to a webhook on my server to let it know to pull and build?
the checks run, and if they're successful, it'll trigger a webhook and tell your server to deploy
the building should run on github actions
ok, and I assume I just create the webhook in settings? and then use a tool like what you sent to listen for webhooks?
And is the file built to the repo itself then? so my server is only being told to pull?
the thing i sent was a webhook server
it listens for a get request at a specific endpoint
i recommend setting up at least basic auth on your web server for that
ty, ok. that is helpful.
I am mostly having trouble finding resources on how to write this. I guess I just struggle with yml? lol
so when the checks finish and are successful, it'll send a get request to that endpoint with the correct credentials
the webhook server will then run a script
ok, hmmm. That will be another thing to figure out
which pulls and redeploys
the guides I saw used yarn, but that did not work, so I am trying npm now? but i do not understand how either would be valid.
Any CI/CD library/framework/tool that youโd recommend for a Django REST API + React + Postgres web app?
im practicing this now because I really need to setup ci/cd for my bot and django
ik, but what does that have to do with this lmao
needs to be built, a tutorial recommended yarn to install dependencies and build. And I cant find any other info... So I am limping here haha
oh okay
I would really like if I could find a comprehensive guide/docs, but I am not seeing anything online
i thought you were saying that was for sending a webhook or something lmao
no. I am confused though, my checks only show up if there are syntax errors, otherwise it just shows zero checks
can you show me what you have?
yeah, one sec
hmm, are you trying to automate building using Docker?
I am not using docker
what r using then ๐
oh nice, the check at least ran this time
yeah
yeah, I am unsure how to use it in this scenario, learning step by step
since I just need a build folder for the site in my virtual host
idk how that would work with docker. Or the benefit of using docker there
name: Continuous Integration
on: [pull_request]
jobs:
buildAndTest:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
cool, this ran, but did fail
When creating a Dockerfile for a Docker container action, you should be aware of how some Docker instructions interact with GitHub Actions and an action's metadata file.
because it is running in root dir, need to find someway to tell it to look for packages in a diff dir
why not yarn though, again?
Docker just seems huge to me. Shouldnโt there be any lightweight way to do it?
why do you think it's huge?
Github action will be running docker not ur computer, why worry if huge
docker would make this easier

lmao
so it looks like npm is looking for the dependencies wherever this check is running, but I need it to look for them where they are?
and I assume that means it will also build to a directory I do not want
how would I incorporate docker into this?
From the only time Iโve tried docker (CE or something), it made my computer use its cute fans and was just a huge package to download
Iโve been afraid of docker ever since
docker is nice, but I do not understand where it would come into play here
since deploying is only two commands git pull and npm run build
hmm, well I am a bit lost and cant find any resources on this
I would appreciate any references to how to learn how to do this haha
tbh i just ran in blindly, hit 4234 walls, and eventually figured out CI/CD lol
so that is foreal how everyone does it?
that is how it feels, but that seems odd
ok, I will work that way then haha
lol there's probably a better way
but anyway
docker would solve your directory issues or whatever
this seems like a bit of an uncommon way to do things. Most of the references I find are on enterprise tools for this haha
wouldnt docker be running on my server though?
saltstack
you can try out ansible or salt stack if you'd like
i was confused out of my mind when i first looked at the docs for them lmao
meh, I hear k8 is used for this, so I think that would be the route to go, if I was trying to learn how to do this correctly
Isnโt saltstack the terrible thing youโve all been warning about?
I feel like it makes more sense to just write a python script that listens to a webhook. I just need it to git pull and npm run build whenever a change is merged to master
it shouldn't
auto building into dev and master would be nice, but not super necessary
yeah, pydis devops team hates salt stack
@terse sluice I see it in #dev-log all the time wdym
the changes will be on the live site xD but meh
Kubernetes?
yeah
for docker, i also ran around blindly until i figured it out
lmaoo
Is that used for CI/CD?
is that what u do with everything lmao
it can be used for CI/CD yeah
managing deployment of containers, allocation of resources between containers, exposure of specific services to the outside world, health monitoring, load balancing, config of the apps running in them, etc.
basically what you think it is
Ah okayyy
interestingly enough, the node.js premade yml fails as well for the same reason
which I guess is good for me
here
Ill just keep pinging up the ranks LOL
University of Helsinki DevOps with Docker course.
hahahahah
covers compose too ๐
ty, I am still confused where docker would help here. Unless you guys just mean the cloud components, not docker-compose
@ joe
jkjkjk, I will push my brain, I am good at this I swear
Stahp the fake pings
Stahp the fake pings
is there a real reason not to fake ping? haha
so you build the container, push to dockerhub or github registry, and pull from your server
ohhh I see, ty
when
I will opt not to use in this case
lmao fair enough
I learned docker for the code jam, ive been using it excessively ever since
ever since i learned docker, i use it for like every project
is there a real reason not to fake ping? haha
@eternal wing is there a real reason to fake ping?
lol why do u think u shouldn't use Docker in this case as well
literally same
haha, I suppose not. I just think it is funny, or I am trying to direct a message to someone who is in the chat, but it is not necessary to actually ping
rust dockerfiles are fun
##### Build Image #####
FROM rust:1.46 as builder
# Don't download Rust docs
RUN rustup set profile minimal
# Install DB packages
RUN apt-get update && apt-get install -y \
--no-install-recommends \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Create dummy project to build and install dependencies
RUN USER=root cargo new --bin /app
WORKDIR /app
# Copy over manifests and build files
COPY ./Cargo.* ./
COPY ./rust-toolchain ./rust-toolchain
# Build dependencies and removes the dummy project
# except for the target folder
RUN cargo build --release
RUN find . -not -path "./target*" -delete
# Copy the entire project
COPY . .
# Build full project
RUN cargo build --release
##### Runtime Image #####
FROM debian:buster-slim
# Install packages
RUN apt-get update && apt-get install -y \
--no-install-recommends \
openssl \
ca-certificates \
libpq5 \
&& rm -rf /var/lib/apt/lists/*
# Copy files from context and the built binary
COPY Rocket.toml .
COPY --from=builder /app/target/release/tinyy_backend .
CMD ["./tinyy_backend"]
lol
sorry for code dump
thats juicy
โThicc. Thatโs juicyโ
Hmmm
i finally figured out how to cache dependency builds so i don't have to wait 7 hours for the container to rebuild after i change something
right above
lol lemme see
which part
so basically, you only copy over the cargo files, build, and then copy over everything else, and build again
so docker caches that first build layer, so you don't have to do it again unless dependencies change
it's commented on there
if you don't want to rebuild dependencies every single time
it caches itself?
hm?
I mean the dependencies, Docker decides itself to cache them?
docker caches every layer
and it uses the cached layers until it reaches a layer that has been changed
from there, it'll rebuild those layers after
a layer is each command run
so, if you built the dependencies and local project at the same time and edit your local project, you'll have to rebuild it all
by running blindly lol?
but if you build your dependencies first, and then build the local project separately, it'll only rebuild the local project
saving you a lot of time
yeah basically lol
and also observing the docker build outputs
hmm, it says using cache iirc
it uses cache up until a modified layer
basically yeah
@quaint rivet, please enable your DMs to receive the bookmark
.bookmark 764661891800498246
hmmm, I have it almost working it seems, but yarn now is not finding package.json. I do not know where it would be in this file system or how to tell yarn to look there
error Couldn't find a package.json file in "/home/runner/work/Reagurk/Reagurk"
in docker?
in github ci
looks like you are passing bad paths
yeah, I am not passing any paths, but whatever path it is defaulting to is not the correct one
is your package.json inside root or subdirectory?
I think the examples I saw were using s3 to store their package.json files(?)
it is in a subdirectory
it is
Reagurk
---reagurk
-------package.json
so you probably need to do yarn /subdirectory/package.json
yeah, ty. I am trying to understand this better haha
ok, that makes sense. Ty
is it correct to do yarn install file/location? I cannot find a flag or anything for it in yarn's docs
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run build
displayName: 'npm install and build'
- task: CopyFiles@2
inputs:
Contents: 'build/**' # Pull the build directory (React)
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory) # dist or build files
ArtifactName: 'www' # output artifact named www```
from the page I linked to
most docker images don't come with supporting node stuff like yarn and like
like at work when building angular inside a container, it won't have ng so I had to get npm instructions out of Web person
this otn reminds me of https://soundcloud.com/lemonsaurusrex/lint-before-you-push
A song written for the contributors at pythondiscord.com so that they will remember to lint before they push. All you have to do to set up a precommit is pipenv run precommit.
lol no, just luck
yeah, funny we got 3 lemon channels xD
that song is a hit doe
lol, I get an email every time my CI fails
might as well be.
it is like INSTANT too, I pretty much got the email the same time it failed. My phone lit up LOL
lol this morning i woke up to like 7 notifications saying my web services went down
you can skip the caffeine then, I bet that was pleasant
lol they died for less than a second
LOLOL, god forbid you needed any passwords in those 656 microseconds, let alone the 2 other miliseconds.
lol
oh neat graphs
i have no clue what that failure means
cloudflare dns died for half a second? idk
is that statping integration?
@quaint rivet yeah
clouflare has been great btw
in fact you have taught me way too much this year lol
yeah
so thank you
it just is really feature rich and super easy to set up.
my ssl is all certbot
haha, why?
also: update: my CI is working, but it also does not build anywhere
as long as you use strict, itโs fine
good to know
cool, my ci is not giving errors, but now I do not know what to do with the build folder. It is not saved anywhere or anything
but it is being successfully built in the container or whatever
I am still not totally sure xD
lel
I guess I would somehow upload that to some cloud service?
yeah
so I could in theory just upload it directly to my server in the dir it needs to go to?
without docker
I assume there is an issue here, because that would make too much sense. But I do not see anyone actually doing that.
it would remove multiple middlemen
i haven't seen anyone do that either
yeah, which is why I am assuming it is kinda wrong haha
I do not understand why docker would be used here. Since github is already a cloud service that can save the build file.
yes, so you can use the github container registry and save it there
ohhh fancy, ty. I have never heard of that
it's just an alternate dockerhub
oh ๐
but built into github
yes
okay let's go
so what youre saying is..... I should use docker
yeaaaah
does gitlab have something similar?
gitlab has branch protection rules and better role management for free ๐
ok, so now I just need to figure out how to save the build to docker from the action, then update the local container on my pc with the current build.
i think
but I think that would mean that I would need apache to direct traffic to my docker container which would need its own webserver ๐ค
that is the part I already get confused on haha.
as in: I just need static files accessible to apache so idk what the dockerfile would really be doing
you just need to make the static folder a volume to access it from the outside
anyway, i'm gonna buy tinyy.io now lol
it's been months
haha, ok, ty. I will need to take a break for the day.
this is a lot of work for gurkan website
ive been too intimidated to learn ci/cd for months now
just a good throwaway site to learn some new skills
hahahahah
hmmm, it seems bad to build from source in the server, but I cannot think of any simple way around it ๐ค
meh, imma give up for the day LOL
ill have to figure out docker stuff tomorrow
perfect
ngl, rm -r is fun to use, rather than just meme-ing about it
welp, 9 dollars well spent for a sweet <h1> I made in nano
I should have the react site deployed tomorrow hopefully haha. It is still just that placeholder though, until we make it epic
idk react ๐
its insanely easy to learn.
It will require learning/using js though
kinda
I mean, you can make functional components with like all HTML basically
I mean ik js
and css of course
have worked with nuxt a bit
yeah, if you know JS, react is not even a challenge to pick up
yeah ik functional components only xD
imo it sacrifices readability and some logic for pure ease of use
general consensus is that class based == bad
I prefer class based, makes more sense to me, but the reactiflux server no like
wait
i'm glad i didn't get the domain from google
jeeeze
namecheap only for me
it's a great registrar
mmmm pork bun
siopao
those are great
I have not eaten dinner lol. Today was a weird day for me xD
haha, I will eat dinner before sleeping. but yep. My schedule is whack
I wish I could eat something now
Yo emoteemotes
!remind 9h 15min Watch Code Jam judgin live
Sorry, you can't do that here!
lol
!test
okay i will rust since you plan to right?
well, this will be a bit of a shrodinger situation
i'd be down to rust
that is actually the purpose of the other server LOL
@solid pollen @eternal wing
Here's your reminder: Take care of your poor computer!.
[Jump back to when you created the reminder](#ot1-perplexing-regexing message)
You're welcome
rust
Go looks interesting but i think all the cool kids use rust
go
Hello
How many servers are people in here, just curious? I think iโm in too many
I'm in the high 90s I think
19 and I was just thinking about leaving a couple I never visit




