#development

1 messages · Page 3 of 1

dry mist
#

Idk what naive means. So i am not gona say anything

midnight wind
#

but the costs

sly marten
#

Suppose that’d be doable, yeah, but still isn’t making this much simpler. Maybe even makes a project like this even harder 😛

silk eagle
dry mist
#

But well this gave me some idea. I need to head sleep.
U all can make fun of me while im not here. I need sleep.
Got school tomorrow.

dry mist
silk eagle
#

lets u scale up costs as u scale up cuz its based on bandwidth used and storage used and cold storage is cheap so unwatched things are chill

livid bison
#

Lemme know when you get it running, I'll be your first sub

silk eagle
#

thanks bro, i appreciate u

livid bison
#

Should only take a couple weeks

sly marten
# dry mist Idk what naive means. So i am not gona say anything

Essentially just means you get lack the experience to realise how big of a task certain projects are - which is fair - been there, and man was that a nice time, nowadays everything is just so “ugh! I want to do that, but man is that ever a lot of work!”

dry mist
#

Well lets say few weeks. Its more of when i will lose my hyper fixation and when it comes back.

silk eagle
#

yeah, but im srs it wouldnt be the hardest thing in the world. would it be made right? no. highest performance thing? no. best solution? probably not. but itd host video files

livid bison
#

Just use Plex

#

Problem solved

dry mist
#

No. Its not that kind. Live stream. More of....

midnight wind
sly marten
silk eagle
#

oh yeah no i have no clue how youd go about managing live streams

livid bison
midnight wind
#

I've seen this soo many times in flight simulation. People try to make big airliners like 787 and 747s and then they burn out when they relize just how much work it is

sly marten
# livid bison Just use Plex

Tbh there are some open source options that could probably be ported 😛 but still would require a significant amount of experience on the topic

dry mist
#

Well neither do i. I just want to build my knowledge even tho the end would be shitty.
Its better to fail 100 times than succeed ones

silk eagle
#

the barebones definition of a streaming platform (for video not actual livestreaming) is pretty straightforward i'd say, cuz like there are tons of sites that have channels which can post videos.

#

so if u dont wanna make something revolutionary it could be done

sly marten
midnight wind
#

as boring as it sounds.. a to do list

#

add a calender to it, auth, you can make it really complex

livid bison
#

The first 3-4 years of personal projects are boring things that already exist

sly marten
silk eagle
#

unnecessary things that u spend hours on to do something automatically that wouldve taken you 30 minutes

silk eagle
sly marten
lament bridge
#

What do you guys say?

If you would be to store emails, would you GZip HTML and store it with "text/plain" or as an image?

lament bridge
#

Hm, then which, or what way, I mean?

midnight wind
#

wait I misinterpreted

sly marten
lament bridge
#

oh 😄

midnight wind
#

don't do images

peak acorn
#

What are we arguing about?

lament bridge
#

Sure

midnight wind
#

you can always make an image, you can't easily create text from image

lament bridge
#

Thats true

sly marten
#

OCR is definitely a pain in the butt 😛 especially at scale

silk eagle
dry mist
#

But well i sleep

silk eagle
#

gotta start somewhere with it

peak acorn
#

Nothing wrong with using libraries

sly marten
peak acorn
#

you really think you as a nooby can create something more reliable and secure than open src projects with hundreds of contributors?

#

for almost any software that has libraries its the better choice unless you want to learn how it works

sly marten
peak acorn
#

Absolutely

sly marten
#

Realistically you’d probably want to fork an already made solution and continue off of it

peak acorn
#

I jumped in like 90% thru this convo so i dont rly know whats going on just wanted to point that out about libraries tho

#

A streaming service is a complex thing tho, depending on what features u actually mean by streaming service

sly marten
#

Yeah, they wanted to make something like Floatplane 😛

peak acorn
#

Literally just showing video, not rly, but youtube? holy cow

sly marten
#

They talked about live-streaming

silk eagle
#

someone wanted to make a streaming service and asked how do that, our answers were basically learn fundamentals etc and dont do it as ur first project

#

edumacate yourself on how do it etc

peak acorn
#

oh LIVE streaming

silk eagle
#

yeah i thought it was just videos at first

peak acorn
#

That sounds even harder, but i dont really know anything about the infrastructure or protocols used for that in any way

#

use webrtc to directly stream to thousands of people from ur home network!

silk eagle
#

for hosting videos with channels and stuff that upload them im pretty convinced itd be a month of energy drinks

peak acorn
#

10x10 pixel resolution per person should do the trick right?

silk eagle
#

but for livestreaming thats some mystical shit

sly marten
#

If I were to take on the project myself, I would probably go find some open source library for video playing, or buy some source code for one and dig into it… then when it comes to SysOps aspect of it, oh man would I be SOL if I wanted to scale it… would require enough experience to know who to pay for what at that point, if I expected to get it online

lament bridge
#

Thank u Present Monkey

peak acorn
#

monky

lament bridge
#

Hope you will be Future Monkey too

sly marten
#

As for livestreaming you’d want to find a solution to send video/audio efficiently to your servers and then distribute it to the viewers just as efficiently… you’d also run into issues if you wanted actual real time live steam I reckon… a delayed stream is (probably) a lot easier

silk eagle
#

i bet youd definitely want to start off with audio

sly marten
#

Not sure if you can use OBS, haven’t looked into it, but if it’s open source, that’s where I’d start

sly marten
peak acorn
#

OBS just gets your video onto the servers, getting it to viewers

#

Im sure there are common protocols OBS uses to send video to servers

sly marten
silk eagle
#

something something websocket something something chunks

#

something like that i think

sly marten
#

My point mainly is, even with whatever skill level I’m at, it’d be incredibly complex and an extremely huge and time consuming project to take on as a single developer

silk eagle
#

for livestreaming and/or building a (video) streaming platform without third party services (aside from hosting) yeah

livid bison
#

Gonna fork Twitch and host it from a Pi

sly marten
#

How many years of experience is a very bad benchmark to use also 😛 it all boils down to how actively I’ve been learning, what exactly I’ve been doing, how quickly I learn, how much I understand, and then what I actually want to be doing

midnight wind
#

I think the common protocol for livestreams is RTMP

#

youtube uses these

sly marten
#

Yeah, and to build something better than YouTube would be incredibly difficult - even if you taught yourself how to implement these protocols

peak acorn
#

In sure twitch is also deeply invested into building private networks to efficiently transmit video also

sly marten
#

Or even something on par with YouTube

peak acorn
#

Well they are amazon now so they just use Amazon's private networks

sly marten
#

Yeah, I don’t think infrastructure is the biggest worry of Twitch 😛 still though, it does cost money, obviously, so they would want/need to use it efficiently

silk eagle
#

but to be fair they have not only AWS, they have the people that built AWS

#

I bet twitch is a massive piece of orchestration art picasso mona lisa platform

sly marten
silk eagle
#

oh right didnt they get all their stuff leaked

sly marten
#

I may have had a peek at the files in the Twitch leak some time ago shy

peak acorn
#

Seems to be working out for them anyways

silk eagle
#

it gives me hope, really.

#

hope because it means i dont need the best code, i just need to be mediocre enough for companies to pay me less which is actually a lot

sly marten
#

That’s why a lot of companies have so much garbage code etc, it’s not important to write the best code, after all it’s a waste of time to write good code if it means you’ll lose the race against your competing platforms

#

A lot of developers keep preaching about tech debt, but in reality that’s very difficult - no matter how good code you write, eventually you’ll be backed into a corner of tech debt, because the tech industry keeps evolving

midnight wind
sly marten
#

There is of course still a balance to be made 😛 at some point your stuff is so bad it’s not functional anymore

midnight wind
sly marten
sly marten
silk eagle
sly marten
#

And it’s so simple to hack together something on top of it… but if you actually took the time to do things properly, Wordpress could be a solid solution

#

My previous job I kept asking for us to implement code reviews, to eliminate stupid errors, and to help share knowledge about things - I was basically met with “nah, just ask someone to look at your code when you submit it”… but that’s not enough imo

silk eagle
#

u know what kills me? not putting spaces before and after =

peak acorn
#

My job is super good at staying on top of that design and review work

sly marten
#

Yeah, and I wanted unit testing, but man was it ever tight for time to implement those… and damn near impossible with the code being so extremely coupled and what not

peak acorn
#

We got a whole team of Mexican folk who do our testing 👺👺

sly marten
#

Sadly it very often isn’t a good strategy to write a piece of software from the ground up either

#

So I guess the way to go about it would be to write something that can live alongside the existing solution… problem then is you have to live with the limitations the existing database gives you, or the annoyance of maintaining duplicate data in your new database or new database tables

#

Could very easily be a recipe for disaster as well

#

holy, just noticed my MacBook has been playing through two hours of TV shows on Plex, and only dropped 4% battery eek brightness at like half though (bit off topic but whatever shy )

#

I'm probably gonna take on converting our WPF(?) app to a web based one instead, at my current job

#

will probably do it for fun mostly on my own time

nocturne galleon
#

Anyone have a good host for my bot

#

That I don't have to pay for

sly marten
#

assuming you're talking about a Discord bot

nocturne galleon
#

Ye

#

I'm using replit rn

sly marten
nocturne galleon
#

I mean it turns off after I leave the page

#

Could you help test the bot

midnight wind
#

cloudflare workers I guess too

nocturne galleon
#

@midnight wind could you help find the file I need to run for my bot

midnight wind
#

idk you wrote it

#

for js it would usually be index.js

nocturne galleon
#

Ok

#

@midnight wind I cant make an Oracle cloud account

#

Its laggy

peak acorn
#

Why do u need an oracle acc? 💀

hollow basalt
#

💀 Why do u need an oracle acc?

peak acorn
#

Oh for free vps

nocturne galleon
#

For my discord bot lol

#

And its laggy

peak acorn
#

Typical oracle

hollow basalt
#

Oracle typical

nocturne galleon
#

Were to get a host then lol

hollow basalt
#

Where

nocturne galleon
#

Actually can someone put my code on github and get me the repository link

hollow basalt
#

why don't you do it yourself

nocturne galleon
#

I'm on mobile rn

sly marten
nocturne galleon
#

Um nvm

#

Github wont take it

hollow basalt
#

As it should

nocturne galleon
#

Its 125 mb file

hollow basalt
#

what tf are you uploading for a bot to be 125mb

nocturne galleon
#

Its178 mega byted

#

I'll give you the replit

hollow basalt
#

byted

nocturne galleon
#

Heres the replit

#

Over 600 commands

sly marten
#

such as the node_modules folder for example

nocturne galleon
#

Huh

#

What's that

sly marten
# nocturne galleon Huh

you're going to have to put in some effort, use Google... we can't do your stuff for you... 😛

nocturne galleon
#

You think orval cloud will accept the bot

hollow basalt
#

orval cloud does not even exist

lament cave
#

you should probably reset your bot token since it’s publicly visible (and you just posted it)

iron python
#

Could someone give me a short pseudo example of where vector extensions like AVX 512 would benefit? I don't want to refactor this code if its not going to gain any improvement.

sly marten
#

API tokens (including Discord bot tokens) are to be treated as if it was your personal password - because it's essentially just a way to authenticate on your behalf without a password

#

meaning people can use your API tokens to act on your behalf - very bad!

rancid nimbus
peak acorn
#

Don't to need to use some intrensics stuff to manually use avx

untold badge
#

Hey guys, current sophomore here trying to get a summer internship. Took Data Structures and algs already and currently in Design/Analysis of Algorithms

I'm trying to grind Leetcode for some OAs that are due this weekend and was wondering what language I should focus on. So far, I've been doing node-based data structures (like trees) in C++ and doing the rest in Python.

I'd say I know C++ best in terms of language features, but I also have a decent amount of experience in Python and Java. I heard Java is great because solutions for everything are available, but Python is stupid easy to type but also seems really inefficient. I personally like C++ the best, but it takes way longer to type something than in Python.

Any suggestions on what I should do?

hollow basalt
#

Any suggestions on what I should do?
Learn that tools are meant for different things

peak acorn
#

Depends where you apply

#

And apply everywhere you can

untold badge
peak acorn
#

I think he means learn a variety of tools, and tools for different things

untold badge
#

Well yeah but not entirely sure how that would help on an OA

peak acorn
#

What's an OA

untold badge
#

Online assessment

#

Specifically on Hackerrank

peak acorn
#

Oh ok so you're already talking with companies

untold badge
#

Yeah I applied to around 30 so far

#

Only got 4 responses; 2 were automatic

peak acorn
#

Yeah, so focus on stuff that your opportunities require

livid bison
#

FWIW I've done all my coding interviews using a language that isn't actually used by that job

untold badge
#

If you mean the job description, they only ask for basic knowledge of any programming language

hollow basalt
#

indeed, so why learn all languages

#

Find the area you want, look up what language they use, learn that and be done with it

livid bison
#

I always choose python even when it was for a Web Dev or iOS job. It's just fastest for me to throw something together

untold badge
peak acorn
#

If they don't care on specific language skills, learn other stuff. Diagramming, version control, etc

livid bison
peak acorn
#

If it's web and frontent and mobile jobs. You don't need graph algos except maybe for stupid interviews

hollow basalt
peak acorn
#

Not for an internship interview.

hollow basalt
untold badge
untold badge
peak acorn
#

In general not for internships

livid bison
#

It may feel like you need to pick a language to commit to ASAP, but I guarantee you'll be jumping around for several years

livid bison
peak acorn
#

Maybe I just live in an area where ppl are dumbfucks but it sounds to me like you are way ready for an internship. Internships are for ppl who have taken basic programming courses and barely more

#

I had some Supreme moron co-interns in my job

hollow basalt
untold badge
untold badge
hollow basalt
peak acorn
#

I wasn't quite at that level but I had a solid understanding of C and that is exactly what my internship used. I cruised into that job very easily

#

They mustov liked me cos I got a fatty job offer

untold badge
peak acorn
#

Yeah in my area they also focus on juniors, that is going to be a hurdle to overcome

hollow basalt
peak acorn
#

Uni moment

hollow basalt
#

had a job fair in my school, people are ready to do initial interviews at the spot

untold badge
peak acorn
#

Lol

#

My career fairs take resumes but they absolutely don't interview

untold badge
peak acorn
#

I stopped going to those after my first required one, I don't live anywhere near my school and it's quite difficult to find remote internship

untold badge
#

Like if you win a hackathon of course you're gonna get interviews

hollow basalt
#

i usually skip companies that do hackathons to get interviews

peak acorn
#

Wish my school had more random shit like that

untold badge
#

No I mean he won a hackathon before the fair (the companies weren't involved in it at all)

peak acorn
#

Yeah ik

hollow basalt
#

Yea Rugg knows

peak acorn
#

Idk if hackathons are usually uni run or what I've never been

untold badge
#

@hollow basalt i thought you were saying there were mini hackathons at career fairs lol

peak acorn
#

But I know it wasn't at the fair or whatever

untold badge
#

Free stuff if nothing else

peak acorn
#

Rn I'm busy with a lot of stuff I wouldn't travel for anything like that

peak acorn
#

I am reading through some surface level stuff about firebase, is it intended for non-privileged users to directly interface with the database? I'm seeing some stuff about user authentication on the database but can't figure out how you would do something like to give a user exclusively append rights to some piece of data

peak acorn
#

Oh ok I figured out there are security rules which would allow you to do that

ivory plinth
#

So I'm doing homework (college kid here), this is the prof version. The second photo is mine.

#

Anyone available?

hollow basalt
#

No

cyan burrow
# hollow basalt No

@ivory plinth this is what I was talking about in the other channel. "Here's my homework. Is anyone available?" is basically the universal sign of "I'm about to try to get you to do my work for me."

ivory plinth
cyan burrow
ivory plinth
#

I’m trying to figure out where I missed earlier the side bar in prof photo showed up now it doesn’t

cyan burrow
#

right, that's debugging

#

you have to build that skill, which is why they gave you an assignment you'd have to fumble around in and debug

ivory plinth
#

I haven’t been taught debugging

cyan burrow
#

this is them teaching it to you.

#

"here's a problem. struggle and figure it out."

#

plus the critical part of learning the difference between asking for help and asking someone to do the thinking for you

#

did you read the thing I sent you about asking questions?

#

not trying to dunk on you @ivory plinth , but it's way better you learn this lesson super early in your career

cyan burrow
hollow basalt
#

I aint

#

did not even say a word or two just no

cyan burrow
#

man if you're gonna dunk don't try to buy it back after the fact

hollow basalt
#

woman, if you're trying to make me look bad just to downplay how you destroyed him

cyan burrow
#

OH! I thought you were replying by saying that you WERE trying to dunk on him, I just misread. my bad.

ivory plinth
peak acorn
#

Firebase good?

#

Seems like a pretty neat technology to use

spark temple
#

I mean, any technology is good. It's just how you use it / what problems are you trying to solve.

peak acorn
#

Well

#

Personally I think PHP is garbage that should be scrubbed from every hard drive on the planet.

hollow basalt
#

PHP did the ultimate sacrifice

peak acorn
#

Someone had to teach the world how not to make a website

hollow basalt
#

it is a bad language so we developers can learn from its mistakes, avoiding it and creating better programming languages

peak acorn
#

Truly a scar on tech

hollow basalt
peak acorn
#

Anyways, firebase seems really easy to integrate some basic auth and database stuff

spark temple
#

I mean... I grew up on Java, PHP and C++. I ultimately did more PHP than any of those three due to work / what was easy. Yeah, PHP7 was still garbage but if you were just doing it to save things to a NoSQL database / key value store, then it was pretty fricken good. Before node was good like 3 years later cause it was only single core supported when it first launched, that's how JavaScript initially worked mainly cause a few years prior Chrome was the first to do a thread per tab to give the performance JavaScript really needed.

spark temple
hollow basalt
#

At the end of the day, whatever puts food on the table is a good enough language

peak acorn
#

true

#

if they hiring, best language!

spark temple
#

100%. I don't give a flying F about tech stack anymore. I care about the ability to do my job. Though, I won't touch Java EE or Cobol. Worst documentation.

peak acorn
#

i should learn cobol
scoop up the jobs once you old fucks retire

hollow basalt
#

you should keep your sanity

spark temple
#

No, you shouldn't. Demand is dropping due to time legacies.

peak acorn
#

ruggy cobol consulting co.

spark temple
#

They can start dropping the final legacy data in about 10 years. Financial institutions are required to keep data for 70 years? The last of it is ending in the next 8-10 years.

#

And the financial industry is the one that used to pay BANK for Cobol.

#

Now most companies pay BANK for (time) experience.

peak acorn
#

💀💀

#

Good thing I didn't actually wanna learn cobol

#

I did have an interest in learning ada just cos it seems like one of those really weird older languages

spark temple
#

Learn how to code, patterns, architecture and algorithms. Forget language. You can learn that on the fly.

#

Learning that will make you cry.... like Cobol...

peak acorn
#

Yeah no I'm on the path. I've done real dev work and just finishing up school this year

silk yacht
#

My school is finally teaching us Python

sly marten
ivory plinth
sly marten
ivory plinth
peak acorn
#

So wrong

ivory plinth
#

Like I was with C. So I'll take HTML.

sly marten
ivory plinth
sly marten
#

oh man, screaming at code incoming! 😛

silk eagle
#

I recently noticed that in TV shows and stuff ppl get wrist braces for carpal tunnel from coding and I realized... that definitely doesnt happen with python

#

python is like writing 8 sentences on your screen, C++ is like writing the 8 sentences and then dictionary definitions for each word in each sentence

ivory plinth
#

I have thought about compression sleeves for my arms

peak acorn
#

Put programing socks on ur hands when u code

livid bison
silk eagle
#

might just be my joints and bones being deformed into place for typing

livid bison
silk eagle
#

19 this year, I didn't wanna call you old KEKW

sly marten
#

thankfully don't feel anything of the sort yet, and I practically live in front of my computer skypeworried

#

27 this year, so hopefully I can carry on without any carpal tunnel issues for a good few years longer

livid bison
livid bison
sly marten
nocturne galleon
#

Is anyone having issues with discord bot tokens

wind horizon
# silk eagle I recently noticed that in TV shows and stuff ppl get wrist braces for carpal tu...

This can happen in any language, a language that is faster and less lines just means you’ll be pushing more features and more business logic. It doesn’t mean the business will suddenly be okay with you spending less time coding. Unless maybe the team is all great at convincing product everything takes forever and secretly working like 2hrs a day. 😂😂

I’d say if you are young and early in career start to plan for ergonomics now or else it’ll bite you in the ass in say 3 years+ as you ramp up and start coding a lot more. Get a good chair, keyboard, and imo sit stand desk even if you don’t stand it’ll let you adjust it to the proper height. Also try to learn to use your keyboard for a lot of stuff instead of reaching for the mouse.

wind horizon
# livid bison It was a 60% keyboard with odd macros + a 1.5 hour commute with bad steering whe...

Ergodox is super nice, but remapping my muscle memory was so hard esp bouncing between work and personal computer. I ended up just buying a normal layout, but ergo keyboard and that did the trick for me. I still have the ergodox and sometimes give it a try again but always feels like it slows me down too much. I’m sure the reward is worth the effort if I’d just force it for like a month or whatever it takes. Lol

livid bison
wind horizon
#

Now I bought one of those fancy ones with a Mac/Win switch, so same keyboard just toggle the switch when using it for gaming and it feels mostly natural.

Although I guess there is that software on Mac you can use to remap windows like commands to Mac. I used that the first time I had to use a Mac at work, it’s something like carabiner I think. It was cool cmds like ctrl c/v still were ctrl on the keybaord.

Sadly this job I can’t install stuff like that, so I’m stuck using classic Mac layout or going manual doing mappings I’m just too lazy to bother manuals mapping so the keyboard with built in switch is super nice.

livid bison
#

I did that with mine instead of toggling on the keyboard

#

Did a swap Ctrl and Alt

livid bison
#

It works per-keyboard which is cool too, if I use my laptop keyboard it’ll retain the original key mappings

spark temple
#

Yeah, they typically can work up to 80 hours a week, sleep under their desks, and try to get it released on the date the management just decided without consulting them.

peak acorn
#

Yea fuck that

twilit beacon
#

hello guys i need help how do i call another function within def main() after it got past some point

def main():
    name_lastname = name_lastname_randomiser()
    link = input("Forms prefill link (put empty entry ID for name_lastname at back!!!)")
    number_votes = int(input("Count of votes"))
    for x in range(number_votes):
        #call the name_lastname randomiser function
        website = f'{test}{name_lastname}'
        webbrowser.open(test)
        print(name_lastname)```
#

whar do i do

timid badge
twilit beacon
#

yeah but that it doesent call

#

idk why it doesent

timid badge
#

does it call your main function?

twilit beacon
#

it just doesent do anything

timid badge
#

ah so no

#

add (at the bottom)

if __name__ == "__main__":
    main()

what this says to python is "if you run this directly then -> run main()"

#

it currently loads in your function main but it is never called so it reaches the end and simply "is done"

twilit beacon
#

ah thanks ill try to implement this fix

#

main should be above or below other functions?

timid badge
#

@twilit beacon sidenote: the if is added for imports, __name__ isn't __main__ when you import your scripts, so the if statement is exactly for that purpose, only run main() when running the file directly.

simply putting main() at the bottom should be enough for now.


the order of functions shouldnt matter that much for now

twilit beacon
#

thx

timid badge
#

it's all loaded before execution, that's the reason you call your function at the bottom, if you call your function main before def you'll get an error stating thet it doesn't know this method/function

#

main()

def main():
   print("bla")

will give you issues because you call it before it's defined

twilit beacon
#

yo it works bro thanks so much

#

now imma just add some optimisations and then boom

spark temple
#

Yeah, with scripting languages, the definition has to be before its usage. It's just how it works under the hood. If it was a compiled language, it doesn't really matter.

spark temple
#

For function declarations, not definitions, if I recall correctly.

midnight wind
#

Yes

spark temple
#

So, what I said still holds, as I made no mention to the declarations. Not trying to be a wise guy, just saying.

#

Its just how things are broken down in the compiler vs. evaluation by an interpreter.

midnight wind
#

Yeah I get it

peak acorn
#

Dart is wacky

#

Kinda like js but not horrible on the surface at least

wind horizon
spark temple
#

You should really be running in strict though.

wind horizon
#

I think most code in plain, compile to strict tbh.

orchid crown
#

functions still hoist in strict mode

#

you can never escape function hoisting

wind horizon
#

Ah yeah looks like it doesn't stop hoisting, well there you go. lol

earnest flower
#

anyone know how to use discord widgets?

hollow basalt
#

No one

sly marten
sly marten
#

anyone know of any really good CSS UI framework/kit things for a business to quickly throw together a web app that doesn't have any serious needs for tailored design, but more so just need an easy to use and professional looking one?

#

I suppose there is Tailwind and the UI components and what not it has if you pay for it
I've also looked at Flowbite

wind horizon
sly marten
#

yeah, I hate Bootstrap, not particularly good... and Tailwind seems really nice, but has a learning curve, and I kind of want to have the shortcut of just using someone else's work 😛 but without buying HTML templates from Themeforest etc

so if I'm dropping a few hundred dollars on something, I want it to be something I will actually want to use in the future as well xD

wind horizon
#

Hmm there is some web component libraries out there now that are themed I think, if you want to web components. I think Adobe has one and few other companies.

#

Actually looks like Spectrum was implemented in plain css, web components, and react.

sly marten
# wind horizon Actually looks like Spectrum was implemented in plain css, web components, and r...

hmm, ideally I'd want something that's not gonna be dependent on single solutions, such as React, in the event that I decide to use Angular, Blazor, or whatever else - but yeah, I guess it is an option indeed

there is also Material UI from Google (although I don't really like the look of it, and a lot of the time it doesn't really scream formality and "professionalism"), but it does cover most of my needs with ease I think, it's also better than Bootstrap afaik

wind horizon
# sly marten hmm, ideally I'd want something that's not gonna be dependent on single solution...

Spectrum I think said it has a plain css implementation, didn’t look into it not sure if it’s similar to tailwind just append classes.

Web components is not a framework, that’s an official web standard downside is they can be overly complex at times and most ppl rely on Lit from Google a framework for making web components… so yeah hand making components sucks but usually you are only consuming them and the perk is you don’t need to use the framework if you are only consuming / using them since they are a web standard. It’s just for building new ones and such.

#

Although mixing web components and react doesn’t work well until v19, so I guess it’s possible to limit your framework options if you go that route and the framework doesn’t properly support it yet.

sly marten
# wind horizon Spectrum I think said it has a plain css implementation, didn’t look into it not...

yeah, I'm gonna have to do some research on what suits my needs the most - I'm mainly looking into things that are Tailwind based, as I really like the concept of Tailwind, and I don't see why I wouldn't take advantage Tailwind eek If I only get the HTML and CSS for a component, maybe JS if it has some fancy stuff, I can implement it into React, Angular, Vue, or whatever I decide to go with myself ^^ though most of these probably have support for React and/or Angular out of the box

#

I'm considering going with Blazor, if I don't end up using Blazor, I will probably use Angular because that's what I'm most comfortable with

wind horizon
#

Never done blazor, but yeah tailwind is nice since it works with anything. There are few others, like spectrum, that have css specific implementations as well. That’s what you want to look for probably if you aren’t sure what you want to use but want it to work with “anything” on the web.

Probably just Google for some css libraries. 🤔

#

98.css that’s the one you need

sly marten
#

will just write up a document where I summarize, so I have something written up about what I discover about it, specifically tailored to my goals 😛

wind horizon
#

Oh I always forget about semantic ui, but anything made with it instantly feels old since it was so over used like 10 years ago. Lol

sly marten
#

oh yeah, but for this purpose that would honestly work just fine - especially considering what I'm gonna work towards replacing in this particular case xD

#

this is the design of the thing I'm replacing, to put things in perspective 😂

wind horizon
#

I have never used foundation, but I like that they even have boilerplate like html templates using their css framework

sly marten
#

I'm rebuilding the solution from ground up though, so a design overhaul is a side effect of that

sly marten
#

very! 😛 I mean, it does what it's supposed to, doesn't have to look amazing while doing it haha - after all it's only put in place for people to receive help with things

wind horizon
#

I have honestly done too much work in react, feel like my next job it’d be fun to find a role that isn’t react. Like I love react, but focus on more what’s next and get back to more web standards using stuff like web components and working with web assembly on some interesting products would be fun too.

Problem is those always have a harder time scaling with Jr dev teams so frameworks like react are great for letting those Jr devs just crank out tickets. Lol

sly marten
#

yeah, although I've seen some terrible React implementations, and it's a nightmare if you have 0 experience with React to dive into 😂 it has a learning curve... although if you're assigned to make changes in a not-terrible implementation, it'll probably be pretty straight forward a lot of the time

misty thorn
#

The most realistic horse on roblox??

peak acorn
#

Don't u just import models and stuff straight into robox nowadays

ornate summit
#

Does anyone know how the 16 bit bus in the DS SLOT-2 behaves if you write an 8 but value?

ornate summit
#

Eh, I can just try it and see what happens.

tawdry trail
#

how much ram would i need to model a lifesize small town in blender

silk eagle
#

anyone else send files to VMs on personal rigs by wget-ting them from a flask server because you also dont know how to move files to VMs?

#

its unironically the best solution ive come up with for this issue

worthy flicker
#

why not use scp?

wind horizon
#

Was just about to suggest scp too.

silk eagle
#

that'd be better, ill use that next time lol

wind horizon
#

Depending on VM host usually there are host tools you can use to mount removable storage, so that’s another option. Mount some storage, copy files, then unmount it.

low glacier
tawdry trail
#

alrighty thanks

low glacier
#

otherwise you could rent a render server host and use the CLI to render it

#

I dont know which cloud provider gives you the best bang for buck when it comes to gpu's tho, usually pretty pricey

silk eagle
#

it kinda consolidates all the different GPU machines available so u can compare gcp, aws, and their inhouse machines

neon osprey
#

I might need some help making a cross-distro installer that is Linus-proof

#

In Rust

obsidian prairie
#

That's pretty interesting, like installing the actual OS?

#

Or an installer for an app

#

If it's distro I honestly don't understand what more than you'd need than a bash script, atleast for distros where you're manually installing stuff like Arch and Gentoo

rancid nimbus
sly marten
#

developing a ticket management system that handles email, like sending an email to support@example.com creates a ticket for you, and you'll get a response with a ticket id etc

is there something to watch out for? is the best way to achieve that to just query IMAP for the emails in the inbox of that email? thinkThink

wind horizon
sly marten
#

Gmail is pretty bad though, and I want this to be flexible enough for anyone to be able to adopt it, although to start with it'll be deployed at work, where we mainly stick to Microsoft products/solutions

#

With IMAP, we can use for example Exchange, so in the event the application instance crashes or is unreachable, the email will still be on the mail server (which is maintained by Microsoft in our case at least)

#

so the whole idea I have is to not have to rely on the hosting of this application being robust enough for such a critical solution, and rather rely on reliable providers, such as Gmail, Exchange in Azure, etc etc (and with this solution, it can work for anyone, assuming they can enable external IMAP, which most can)

wind horizon
#

Id prob just build on an event system, similar to pub/sub, then it’s up to how someone wants to integrate. Webhook or something supported by your email provide, cool done, if not they can just have a micro service for handling the emails.

Micro service and event based architecture makes for very scalable and pluggable systems, for example someone built on gmail prob doesn’t want to provision IMAP credentials for the app and would rather have the provider push notifications. Those can use a tiny service that does nothing but check email.

#

It also provides flexibility in deployments, say you wanted to deploy this to the cloud the email service could be 100% server less and likely always fit on free tiers and not be impacted by or need to consider how to scale unlike monolith.

nocturne galleon
#

portions = 3
for x in [str(portions * 0.5) + " 2 Eier", "200g Mehl", "200ml Milch"]:
print(x)

#

What im doing wrong ?

silk eagle
#

what are you trying to accomplish?

#

assuming u wanted a oneliner for multiplying the portions * units of each ingredient:

portions = 3
for x in [" 2 Eier", "200g Mehl", "200ml Milch"]: print("".join([str(portions * int(char)) for char in x if char in ['1','2','3','4','5','6','7','8','9','0']]) + "".join([char for char in x if char not in ['1','2','3','4','5','6','7','8','9','0']]))
#

might need an ultrawide screen or a really zoomed-out monitor to see that as one line (which is why oneliners of this length arent reasonable)

#

probably a better solution out there but occams razor isnt getting me this time bro ive had enough

#

o shit it doesnt preserve the non-integer characters before the string, im not fixing that tho

spring cradle
#
portions = 3
for x in [ "2 Eier", "200g Mehl", "200ml Milch" ]:
    print(str(portions * 0.5) + " " + x)

is my best interpretation

peak acorn
#

what is trying to do

frank coyote
#
recipe = [(2, '', 'Eier'), (200, 'g', 'Mehl'), (200, 'ml', 'Milch')]
portions = 3
print("\n".join([f"{portions*ammount*0.5}{unit} {ingredient}" for (ammount,unit,ingredient) in recipe]))

maybe? dunno what the 0.5 is doing

peak acorn
#

also doesnt help that i have no clue what mehls or milches are

#

i have ears but

frank coyote
#

nope no idea

#

oh

#

According to google translate, eier is egg, mehl is flour, and milch is, unsurprisngly, milk

#

in german

peak acorn
#

Ohh

frank coyote
#

so it is a recipe conversion thingie

peak acorn
#

so yea idk what his code is supposed to do but i see its afood recipe lmao

frank coyote
#

proportions seem off

peak acorn
#

I guess like how many of each thing you need to make a double/triple etc batch

frank coyote
#

but idk where the 0.5 came from

#

unless the base recipe was for 2 servings and they wanted to scale it out afterwards?

somber dome
#

Is there any red hat certified engineer here? Do we NEED the RHCSA to get it ?

somber dome
#

To get the red hat certified engineer certification

slate frigate
somber dome
#

Wow okay

slate frigate
#

Yeah. Whats making you get it?

somber dome
#

My company paid for the latter one and not the former...

slate frigate
#

Lulz

#

I'd let your training people know, and see if you can at least get the individual exam for SA, its only around 400

#

And frankly, this is their oopsie to fix

somber dome
#

Yeah, they don't even know yet. I wanted to be sure before telling them to not look life a fool ^^
Thanks !

hollow basalt
sly marten
twilit beacon
somber dome
#

It's optimisable

spring cradle
#

use regex for it

silk eagle
peak acorn
#

always a good python one-liner if it takes 4 lines on my computer to display

peak acorn
#

lol

vestal spire
#

I'm having an issue with TailwindCSS and React. I installed it and no tailwindcss result is showing.

wind horizon
vestal spire
wind horizon
vestal spire
silk eagle
#

psa: pi pico w's are now on amazon for only double their usual price, but free shipping so if u buy 3 or less its a better deal smart

wind horizon
vestal spire
mint badge
#

is there a way to test code for raspberry pi in vs code before i import it into my pi?

#

like with the gpio things?

midnight wind
sly marten
#

while on the Tailwind topic, anyone have any experience deploying that in production? any reason(s) I should or shouldn't use it?

I kinda feel like it makes the HTML look so extremely messy

vestal spire
sly marten
#

yeah, I'm thinking more like for maintenance and what not - it has a learning curve, and it doesn't seem to exclude stuff I didn't use in my HTML (I thought it was supposed to)

#

maybe it just includes some default stuff, and excludes anything outside of that unless I use it?

vestal spire
#

Ah i see. I feel likes just a fast and "easier" way to style components since you don't need to think about naming classes and defining the properties in a stylesheet

sly marten
#

with scss/sass that really isn't an issue for me, but I guess renaming is annoying, because refactoring isn't (always?) a thing

#

it also tends to get a little messy as your project keeps on growing

#

And if you are thinking about creating the next best CSS framework, this post is an additional data point on what Tailwind CSS does well – and how it can be improved.
oh man, please no, we have way too many as it is skypeworried

#

personally I've written my own CSS, but I kept using the Bootstrap mixin for media queries to handle all screen sizes

sly marten
#

I guess the utility parts of Bootstrap is decent, but any element that will receive some customs styling is so annoyingly dreadful to do

#

in my experience it included a lot of !important overrides in the CSS, which is crazy annoying to maintain

wind horizon
sly marten
silk eagle
#

Stripe's documentation deserves a nobel prize

ornate summit
#

Does this seem like a reasonable wrapper for libsm64? https://github.com/gudenau/jsm64

I made it in a few hours and it seems to work for me. I'm not sure the best way to handle releases. I would like to be able to ship AMD64/AARCH64/RV64 binaries for Linux/Windows/OSX with it but I'm not really sure how I would need to cross compile for all eight targets.

(No Nintendo owned assets are in or liked in this repository, everything is above board)

wind horizon
spring cradle
#

would the bbc micro:bit be able to run a discord bot? if so, how complex?

#

ah the library i was about to cite was only for esp32

rancid nimbus
#

It might be possible if it has network access somehow.

midnight wind
#

only has 3 external pins

spring cradle
#

it has more with a break out i think

midnight wind
#

A esp32 is cheap

#

That could def host a basic bot

spring cradle
#

yeah i was thinking an esp since it has networking built in i think

midnight wind
#

best solution is just in the cloud

spring cradle
#

yeah but then what will i do with all these cute boards

#

also always fun to mess with microprocessors

next cipher
#

there are lots of things that you can use a little dev board to host that actually meaningfully benefit from running locally

#

i don't think a discord bot fits in that category at all

#

you can run a discord bot from like a $10/yr VM and save the esp32 or micro:bit for home automation or fun little local network services

spring cradle
#

i honestly don't have many ideas for what to do with those things

hollow basalt
peak acorn
#

Holy fuck i thought android studio memes were mostly fake until i try emulating a flutter app on android on my laptop

#

literally doesnt work on this garbage laptop, gonna have to remote into my home pc to work on smth from my laptop lmao

#

or buy a fkin m2 macbook

plucky thunder
#

Who would I tag to speak about the development of our great and ironfisted overlord the @covert cove

plucky thunder
#
  • joke
peak acorn
#

investigating "high cpu usage under some circumstances" is so obnoxious

hollow basalt
peak acorn
#

yeah android studio, i cant imagine how bad it would be before

hollow basalt
#

the modern framework hot reload is definitely a heaven sent

peak acorn
#

it honestly doesnt even run that good on my 12600k, but hot reload is so awsom

#

its annoying cos my prof uses a m1 macbook and the iphone emulator is like flawless fps and shit

hollow basalt
#

imagine developing a native app that needs to be recompiled and sent again to the emulator. you better use you're doing something else cause it ain't budging for a long time

peak acorn
#

yea nioe

hexed cedar
#

hey everyone i have a developement related question]

#

acan i ask?

silk eagle
#

idk, can you

#

yes, yes you can

spiral yew
#

why does zero appear in my code?

using namespace std;
void showInformation(int kwh)
{

cout<<"Kilowatt-Hour used: 44  "<<kwh<<endl;
cout<<"Generation Charge is 44 "<<kwh<<"x 13.82 = 608.08 " << kwh*13.82<<endl;
cout<<"Transmission Charge is 44 "<<kwh<<" x 2.56 = 112.64 " << kwh*2.56<<endl;
cout<<"Universal Charges is 44 "<<kwh<<" x 0.32 = 14.08 " << kwh*0.32<<endl;

}
int main ()
{
int KWH;
cout<<"Enter Kilowatt-Hour used: 44 " ;
cin>>KWH;
showInformation(KWH);

const float generationCharge = 13.82;
const float transmissionCharge = 2.56;
const float universalCharges = 0.32;

float bill = (KWH*generationCharge)+(KWH*transmissionCharge)+(KWH*universalCharges);
const float vat = 0.12;
cout<<"VAT is 12 % of 734.8 "<<bill<<" = 88.176 "<<bill*0.12<<endl;
cout<<"\n\n";
cout<<"Your total bill is 822.976 "<<bill+bill*0.12<<endl;
cout<<"\n\n";
cout<<"Thank you for Using this Calculator!"<<endl;
cout<<"================================================="<<endl;
cout<<"Student Name : 

"<<endl;
cout<<"Student Number : 22-00534 "<<endl;
cout<<"Section : BSCS 1A "<<endl;
cout<<"================================================="<<endl;

return 0;

}

mint badge
#

is there a way that i can have a checkbox output 2 values when it is unchecked and when its checked and output values that i need? in php?

hollow basalt
mint badge
hollow basalt
#

Thats not html

mint badge
#

sorry php

slate frigate
#

Pure Hell Programming

rancid nimbus
#

I started parsing CAN packets from my car a few weeks ago. Today I started parsing the data some more and started scaling the numbers and adding units to the numbers.

peak acorn
#

Anyone know if you can add text next to matplotlib points on a chart

#

eh looks okay i guess, hard to get them not to mash on top of each other

nimble shore
#

I have a question
If I am uploading a django project to any VCS do I also upload the virtual environment with it or just the project. Keeping in mind that I will deploy the same project to Heroku thorough my VCS, which is github in this case

hollow basalt
#

the main purpose of it is to be reproducible, e.g. anyone can download the code and create the venv themselves

spring cradle
#

if i want to write a service for docker, would i make sure it works in a user environment first or just jump right into dockerizing my workflow

hollow basalt
#

how did you develop the service then

spring cradle
#

i don't understand

#

by the second one i mean do i start with a docker environment?

wind horizon
# spring cradle by the second one i mean do i start with a docker environment?

When I develop docker apps usually I use docker for the local development as well. If your using something that supports hot reloading and using docker compose for the local env then be sure to mount the local files so hot reloading works when you make changes locally.

It’s fine to also develop local without docker if you want and ship using docker, normally putting an app in docker is painless / few lines of config. Deploying the docker image is again easy, but mostly just configuring env secrets that takes some time/planning.

Personally if I’m using docker for deployments I find it nice to use it locally, because compose can spin up all the need parts locally with one command. Like database, web server, etc. Also makes it easy to run your app close to prod like, so you are less likely to discover some edge case in prod.

Also no fumbling with language specific versions or accidents in installed modules, because your local env will always spin up exactly how docker file tells it.

peak acorn
#

Oh my fucking god I just spent an entire week to figure out the most obvious issue

slate frigate
#

Sounds par for the course tbh

hollow basalt
#

Sounds aight

peak acorn
#

They complain about high cpu usage as if every program in our box isn't just a while(1) loop that uses as much cpu as it can get its hands on

slate frigate
#

Easy solution. More cores.

peak acorn
#

would cost us like a million dollars probably lol

#

embedded device

twilit beacon
peak acorn
#

No. I just had to re-enable a timeout that was mistakenly disabled. So now it relinquished some cpu for the other processes to gobble up

frank coyote
hollow basalt
#

in his imagination'

silk eagle
#

guys, occhahcams razor. they're probably asking why this is in their code

#

so I made a site look all nice and user friendly etc for the past john wick movie #1 and #2 worth of time, now its time to watch all the lord of the rings movies to make it responsive.

#

this is a personal project otherwise i wouldnt be touching web development right now, i just go into devtools and type random keywords ive gathered until one of them works

peak acorn
#

lmao no fucking way

hollow basalt
#

lmao

silk eagle
deep flicker
nimble shore
#
  branches {
    edges {
      node {
        branch
        bank {
          name
        }
        ifsc
      }
    }
  }
}

So I have this query to run but why am I getting error on egdes and node GraphiQL says there is no field on the object
I am still learning GraphQL so i have not much of any idea as to why

#

but works without nodes and edges

jagged current
#

Hello, can someone tell me, how I can ignore folders in git that contain "_BackUpThisFolder_ButDontShipItWithYourGame"? When I build my app for different devices, Unity always creates a folder in the pattern [filename]_BackUpThisFolder_ButDontShipItWithYourGame. I don't want to push all the folders that end with _BackUpThisFolder_ButDontShipItWithYourGame.

Can I simply write /*_BackUpThisFolder_ButDontShipItWithYourGame in the gitignore?

hollow basalt
#

yes

wind horizon
latent mantle
#

Can someone recommend me a GIT info-graphics and Best Practices\ use cases ?

I remember someone shared with me some website with purple octopus but couldn't find it 😦

hallow ridge
#

has anyone worked with this esphome/home assistant smart knob? im looking for someone to help assemble one in vancouver / seattle area. I want to work on the firmware but there's quite a bit of hardware involved getting set up https://github.com/scottbez1/smartknob

GitHub

Haptic input knob with software-defined endstops and virtual detents - GitHub - scottbez1/smartknob: Haptic input knob with software-defined endstops and virtual detents

latent umbra
#

Can anyone think of a less cursed way to calculate the indexes to fill a 16x16x16 cube with 4x4x4 cubes of the same value?

for (int x = 0; x < 4; x++) {
    for (int y = 0; y < 4; y++) {
        for (int z = 0; z< 4; z++) {
            int baseInd = ((i%4)*4) + ((i/4)*16*4)%(16*16) + ((i/(4*4))*16*16*4);
            int index = baseInd + (x + z*16 + y*16*16);
            cube[index] = value;
        }
    }
}
peak acorn
#

Also since you're flattening the value, why not just for i in 0..4^3

ornate summit
#

Rust docs suck. .-.

hollow basalt
#

you could say it's rusty

ornate summit
#

For a bunch of the stuff there are massive sets of documentation they could easily use in automated documentation...

deep flicker
peak acorn
#

memset

ornate summit
#
for(int y = 0; y < 4; y++) {
    int yIndex = (y + yOffset) * (16 * 16);
    for(int z = 0; z < 4; z++) {
        int zIndex = yIndex + ((z + zOffset) * 16);
        for(int x = 0; x < 4; x++) {
            cube[zIndex + x + xOffset] = value;
        }
    }
}

This feels like Minecraft to me.

#

You'd need to do a few rounds of this of course.

#

You could probably get more cache hits if you restructured this a bit with another loop or two and a tiny bit more state, but that's getting into the weeds.

deep flicker
#
#include <iostream>
#include <array>
#include <cstdio>

// 's' = subcube side length
constexpr int n = 4;

// 'ls' = large cube side length (s^2)
constexpr int ls = n*n;

void PrintBigCube(std::array<std::array<std::array<int, ls>, ls>, ls>& cube)
{
    for(int z = 0; z < ls; ++z)
    {
        printf("z = %i\n", z);
        printf("------\n");
        for(int x = 0; x < ls; ++x)
        {
            for(int y = 0; y < ls; ++y)
            {
                printf("%2i ", cube[z][x][y]);
            }
            printf("\n");
        }
        printf("\n");
    }
    printf("\n");
}

int FindSubCube(int x, int y, int z)
{
    return (z / n)*(n*n) + ((y / n)*n) + ((x / n));
}

int main(int argc, char* argv[])
{
    // subcube size = n -> large array dimensions are n^2
    std::array<std::array<std::array<int, ls>, ls>, ls> bigCube;

    for(int z = 0; z < ls; ++z)
    {
        for(int x = 0; x < ls; ++x)
        {
            for(int y = 0; y < ls; ++y)
            {
                // array stores n xy slices along z axis, so first index is z
                bigCube[z][x][y] = FindSubCube(x, y, z);
            }
        }
    }

    PrintBigCube(bigCube);
    
    return 0;
}
#

Spent too long on this lol

#

Example Output (truncated) for n=3:

z = 0
------
 0  0  0  3  3  3  6  6  6 
 0  0  0  3  3  3  6  6  6 
 0  0  0  3  3  3  6  6  6 
 1  1  1  4  4  4  7  7  7 
 1  1  1  4  4  4  7  7  7 
 1  1  1  4  4  4  7  7  7 
 2  2  2  5  5  5  8  8  8 
 2  2  2  5  5  5  8  8  8 
 2  2  2  5  5  5  8  8  8 

z = 1
------
 0  0  0  3  3  3  6  6  6 
 0  0  0  3  3  3  6  6  6 
 0  0  0  3  3  3  6  6  6 
 1  1  1  4  4  4  7  7  7 
 1  1  1  4  4  4  7  7  7 
 1  1  1  4  4  4  7  7  7 
 2  2  2  5  5  5  8  8  8 
 2  2  2  5  5  5  8  8  8 
 2  2  2  5  5  5  8  8  8 

z = 2
------
 0  0  0  3  3  3  6  6  6 
 0  0  0  3  3  3  6  6  6 
 0  0  0  3  3  3  6  6  6 
 1  1  1  4  4  4  7  7  7 
 1  1  1  4  4  4  7  7  7 
 1  1  1  4  4  4  7  7  7 
 2  2  2  5  5  5  8  8  8 
 2  2  2  5  5  5  8  8  8 
 2  2  2  5  5  5  8  8  8 

z = 3
------
 9  9  9 12 12 12 15 15 15 
 9  9  9 12 12 12 15 15 15 
 9  9  9 12 12 12 15 15 15 
10 10 10 13 13 13 16 16 16 
10 10 10 13 13 13 16 16 16 
10 10 10 13 13 13 16 16 16 
11 11 11 14 14 14 17 17 17 
11 11 11 14 14 14 17 17 17 
11 11 11 14 14 14 17 17 17 
inner wraith
#

On second thoughts, maybe T3 unlimited would be sensible during setup

#

T2 instances gave a buffer on instance creation of something like 30 CPU credits, but T3 gives zero and this workload involves compiling stuff

trail remnant
ornate summit
#

Docker isn't magic.

wind horizon
#

It’s just saying. Lol

Like how “magical”is used to describe something that’s amazing / beautiful even though it’s clearly not “magic”.

spring cradle
#

magic isn't real smh

next cipher
#

docker is fine but it isn't the first or best container format

#

just the first one to get popular based on good docs & easy setup for developers

wind horizon
#

Honestly I think docker has just become the word we use to refer to containers these days, like the old days when ppl called Xerox for all copy machines. I don’t think most people care about the engine, except those managing it, which imo is how it should be and the whole purpose of containers. Devs can run something like Docker since they like compose or maybe like docker desktop app, but in prod when it’s on say k8s the pods could be run by something like containerd.

#

With how many places are adopting severless or managed k8s I think the underlying container engine will continue to become less of a thing we think about. (Except on edge cases, but I’m just speaking about the avg run of the mill apps)

spring cradle
#

podman is my container manager but i figured id say docker

#

since it's more popular of the two and are mostly compatible

latent umbra
spring cradle
#

whats the usual way to use ansible in order to perform some set of actions given some sorta input

#

like i want to manage my container for a service, manage the domain for the service, and configure the directories in a pretty similar way for a lotta services, and i feel like im rewriting a lot of things

#

would that just be ansible loops + a really big variable?

#

or a generic role with sub roles calling the generic with role specific vars?

deep flicker
unborn spade
#

#include <stdio.h>

int counter = 0;
while(counter <= 3)
{
printf("meow\n");
counter = counter+1
}

I know this is way below some of yalls paygrade but what am I doing wrong here...?

Keep getting error '(' on the while

peak acorn
#

no semicolon on counter+1

#

Additionally and more importantly. This code isn't in a function of any kind, you should surround it all within int main() {}

silk eagle
#

semicolons are never above our pay grade

unborn spade
#

So the rumors ive heard are true

silk eagle
#

there are some blessed ones that never forget semicolons, its like being a grandmaster in chess though

unborn spade
#

Love you sexy beasts

ornate summit
#

It becomes muscle memory after a bit.

silk eagle
#

i have a key on my mouse bound to semicolon so if i miss any I can quickly scroll through and add them with one hand

peak acorn
#

fr?

#

that sounds very dumb lol

#

gpu breaking down?

silk eagle
# peak acorn that sounds very dumb lol

I type with like 1 finger on my right hand while my left hand is a beautifully orchestrated typing machine, so this way I can type the semicolon without moving my right hand off the mouse and without taking my left hand out of its zones

#

its more comfortable for me

peak acorn
#

big awsom

ornate summit
#

Typing with either or both hands can be an important skill.

peak acorn
#

For ordinary typing tests im about 40% the speed on left hand only

silk eagle
#

im 75wpm (just tested: 55) on left hand, 60wpm (46) on right hand (but a little bit awkward), and 130 to 140 wpm on both

peak acorn
#

yeah im p much similar except im not sure what my right hand is

silk scarab
#

Heyy guys
I have created a WordPress website using elementor and simply static plugins. I have also added some widgets to my website which consist of an image carousel. I don't know why but the widget isn't working properly and then it's getting stuck at the first photo and not moving to the others when I upload it but when I check it in WordPress it works properly. Can anyone help me with this?

sly marten
midnight wind
#

^

#

wordpress is a weird mix of a CMS and a website builder which when combined together can cause issues

silk scarab
sly marten
#

WordPress itself has the potential to be something pretty decent, but with how cluttered it is and feels, how many terrible plugins there are, how many "know-it-all" freelance hobbyists there are out there that people pay to do crap... it ends up being an insane nightmare

#

one cheap workaround after the next usually

midnight wind
#

trying to add things, just hacks on top of hacks

sly marten
#

shit in, shit out

midnight wind
#

I'm like just use something like SharePoint ffs

sly marten
#

we "use" sharepoint where I work

#

we don't really use it 😛 but we have it

#

I also support customers with WordPress + WooCommerce at work, and man is that ever a challenge eek I used to work full time as a web developer, but this crap is still busting my balls really hard

midnight wind
#

I had to add analytics and it's seems like a fair amount of people use it for accessing info

midnight wind
sly marten
#

I mean, it can work, if you actually do the necessary ground work to establish a decent foundation... but idk if that's less work than just building a solution from the ground up...

midnight wind
#

Or these days just using something more optimized like square space or 1 of the many options

sly marten
#

Do they allow customizing to the degree that WordPress does? Reason I support it at work is because we have built a webshop integration with our store data solution 😛

#

I'm fairly sure if they knew what they know now, they would've had another approach to it lol (I started working here in August, hence why I said they)

midnight wind
sly marten
sly marten
#

Holy crap, WooCommerce + Facebook combo might just be the worst trash I’ve ever had to work with eek

sly marten
#

It’s an absolute nightmare

ornate summit
#

So I have a Java program that lets the main thread die so main returns pretty early on. I have a C program that is using the invocation API to call into the Java program, but the entire thing dies when the C main returns.

Does anyone know how to fix this?

hollow basalt
#

don't return C main

ornate summit
#

That's the obvious thing to do, but there has to be another way.

hollow basalt
#

there is

ornate summit
#

Is there a flag I need to give Java or something?

#

I might just be able to call JNI_DestroyJavaVM.

ornate summit
#

Yeah that was it.

ornate summit
#

So I guess something like

private static final List<Runnable> TASKS = new LinkedList<>();

public static void handler() {
    while(true) {
        Runnable task;
        synchronized(TASKS) {
            while(TASKS.isEmpty()) {
                TASKS.wait();
            }
            task = TASKS.remove(0);
        }
        task.run();
    }
}

public static void submit(Runnable task) {
    synchronized(TASKS) {
        TASKS.add(task);
        TASKS.notify();
    }
}

would look something like

List<std::function<void(void)>> tasks;
pthread_mutex_t mutex;
pthread_cond_t condition;

void handler(void) {
    while(true) {
        std::function<void(void)> task;
        pthread_mutex_lock(&mutex);
        while(tasks.isEmpty()) {
            pthread_cond_wait(&condition, &mutex);
        }
        task = tasks.remove(0);
        pthread_mutex_unlock(&mutex);
        task();
    }
}

void submit(std::function<void(void)> task) {
    pthread_mutex_lock(&mutex);
    tasks.add(task);
    pthread_cond_signal(&condition);
    pthread_mutex_unlock(&mutex);
}

or am I crazy? It feels like I'm missing something really stupid that would prevent this from working.

(Obvious error checking omitted for the sake of brevity)

ornate summit
#

This was pretty much correct.

sly marten
#

how do Facebook expect non-US people to test their shit then? am I just dumb, or what the heck is this bs?

charred jay
#

Anyone know of a way to have the git notes list command show something other than just the commit hashes? I don’t want to constantly have to be looking up commit hashes, just be able to easily list like the last 5 notes or all of the notes for the branch without specifying (a) commit hash(es).

nocturne galleon
#

Can I have help setting up a website for my mc server

lunar quail
#

@nocturne galleon , What type of server?

nocturne galleon
#

Smp

lunar quail
#

minecraft? Someone around here probably knows about that.

nocturne galleon
#

I would like to hope so lol

deep flicker
sly marten
#

Like register to play the server or something?

sly marten
cyan niche
#

Use squarespace or something idk

cinder willow
#

They probably want dynomap and a chat client

nocturne galleon
#

@cinder willow I do

cinder willow
#

Did you install the dyno map plug-in?

#

They have a config file and a tutorial themselves

cursive nexus
#

Hi Guys,
I have a form which submits 4 variables to my PHP script output.php via Get. If i link to the php file after submission I can see the output fine. But i want to link to a different html site and on that include the result of output.php

How can i do that? I was thinking about js on the form and preventing the default behaviour to link to my html but i'm not sure if output.php will get the data in that case.

or submit it normally and redirect iin the php to my new html site and doing an ajax get request on the new site and execute it onload.

Im feeling kinda stuck. How would you tackle this?

sly marten
#

so let's say you have:
input.php -> (GET) output.php
output.php -> (POST) output_result.php
output_result.php then renders the page with that data

#

you can also just look into JavaScript and AJAX (the principal that frameworks like React etc was built upon afaik)

that way you can always stay on the same page, and just get a response from the server without reloading the entire page

#

you can also store data in $_SESSION in PHP, so whenever you're somewhere else, you can just access it from there (it will be tied to whichever PHP session token the visitor has, which is stored in a cookie in the browser)

#

what solution is best depends on what you try to achieve, your experience, your will/desire to learn, among other things 🙂

cursive nexus
#

thanks for the answer!
I dont really understand your first approach, and i didnt want to do ajax on the same site because it is already very cluttered and depending on the request there could be a lot of output

So propably a session system is worth a try

nocturne galleon
#

client.login(process.env.TOKEN);

How do I get this code to read the token from config.json

trail remnant
#

Truly, one of the most revolutionary neural networks ever created. CB_wheeze

midnight wind
#

You create env variables

#

You can use a .env file

peak acorn
runic rover
#

Sorry if this is the wrong place to ask but where would I need to start to make my own games

deep flicker
# runic rover Sorry if this is the wrong place to ask but where would I need to start to make ...

Self-contained, open-source game engine with good docs: https://godotengine.org/
Tutorials for Godot: https://godottutorials.com/courses
Suggestions in this thread for good games to start with: https://old.reddit.com/r/gamedev/comments/xeisj4/please_stop_recommending_new_devs_make_tetris/

#

Candy-crush clone tutorial series (narrated, links to assets, and makes mistakes while showing how to debug common issues): https://www.youtube.com/watch?v=YhykrMFHOV4&list=PL4vbr3u7UKWqwQlvwvgNcgDL1p_3hcNn2&index=2

Welcome to a new series! Today we're going to begin to learn how to make a match 3 game similar to Candy Crush using Godot and GDscript.

Assets: https://taftcreates.itch.io/match-3-assets

Twitter: @taftcreates

discord: https://discord.gg/kgNn3xT

▶ Play video
#

Or just google Godot tutorials and there's tons of results 🙂

peak acorn
#

i should make tetris eventually

#

Never did it, way back when i had zero idea how you would represent the data for rotating the pieces and whatnot would work but now i see its p damn obvious

runic rover
# deep flicker Self-contained, open-source game engine with good docs: https://godotengine.org/...

Is that good for someone like me that doesn’t have any experience at all in coding and everything else

I’ve never heard of that game engine before the only ones that I know about is Unreal Engine and Unity and id tech

And does that game engine support Xbox controller’s or is that a bit much to ask from it

And would I have to think about what graphics API to use or do I not need to think about that

There’s OpenGL DirectX and vulkan

twilit beacon
#

how would i use ANSI escape codes to edit a certain row in the terminal (in c++)

fervent thicket
#

Is it possible to have a repo in github with 2 branches and multiple collaborators

but only specific collaborators have access to branch_A and they can not see it on github and only specific collaborators have access to branch_B and they cant see the other branch either etc?

cyan niche
#

Yes

fervent thicket
cyan niche
#

Create two different repos is the correct answer, then use actions to manage pulling changes into a third repo, if you want them to have access to the same source code.

#

Each of the two repos would be forks of the original one that only you and your github actions bot has control over

#

It's not really possible to do it all in one repo because of how git works there's no security to really hide branches

#

You could also set up multiple upstreams from a single local repo.

hollow basalt
#

Thats an oddly specific problem. Yes splitting it into multiple repo is the solution. But i feel like you are trying to make the wrong solution work

midnight wind
#

why are you trying to do that?

cyan niche
#

looks at board and sees 9 tickets
me in call: "I only got a few tickets"

sly marten
#

Sounds like tickets have been assigned to projects you don’t have access to or something

#

Projects, not repositories

cyan niche
#

nah those assigned to me

#

I did a clever trick there called uh, stretching the truth

sly marten
#

Afaik you can’t limit access per branch beyond read only

cyan niche
#

Nah I'm not the guy trying to limit branch view access

sly marten
#

No, but you asked

cyan niche
#

O_O

#

On the outset though it doesn't seem like the feature would be that difficult to add to git, there can't be that big of a difference between a private branch and a branch that was removed right?

I assume that there does need to be a namespace check on the branch name, but even then you don't have to grant view permissions of that branch, just know it exists.

sly marten
cyan niche
#

It's not possible because Github doesn't want to implement it, and the use case is extremely limited.

sly marten
#

Yes, that’s what I said basically

#

Also GitHub != Git

cyan niche
#

I'm aware

sly marten
#

Yeah, so it’s not (necessarily) on GitHub to decide whether they want to implement it or not

#

It’s not really comparable to deleted branches either, because that’s just deletion of data. I’m not sure if you can still see history of branches being deleted, haven’t checked, but I think you can’t

#

So with what I know about git, a feature like that fundamentally doesn’t work with git, because of how it’s built

stone marlin
#

Recently started a new job for a small startup. They have absolutely no concept of proper project management. I am going to propose an agile-like methodology to better organize the workplace.

I'd like to hear from you guys what SPECIFIC parts of the agile methodology you hate, how you think they could be improved, and things you would like added to it.

cyan niche
# stone marlin Recently started a new job for a small startup. They have absolutely no concept ...

The most fundamental problem of Agile is that it never ends and without predefined specifications development work can be slow due to changes in requirements. Though if I were to be specific about things I hate it's anytime anyone brings up the Agile manifesto or tries to rigorously enforce "the right way to do it" adding structure to a system that is based on the idea of being flexible.

The reality is that most organizations simply do what's practical, and that's what you should do too. Sprints can be as long or as short as you wish, and how QA processes are managed within that can be built around it for each use case.

Ultimately Agile is really the only choice in the modern world for most projects, and should be chosen by default unless there's some unique constraints on the project.

In terms of what developers want there needs to be a way to have reasonable interaction between tracking actual statuses on issues in terms of what they do. Normally it boils down into:

  • In queue
  • In development
  • PR submitted (flipped automatically if commits are written correctly with attached related work items/issues)
  • PR approved (flipped automatically)
  • Ready for testing
  • Closed

The QA's are going to want to put things back into a rejected status, so you're going to have to build a different status, but I've seen that normally QA's will create bugs as their own issue linked to the original feature with statuses:

  • Not fixed
  • Rejected
  • PR submitted
  • PR approved
  • Ready for testing
  • Fixed/Closed

That's just to give an idea, but it's quite a bit of work to please both parties and collaboration between the two of them should be encouraged. You can have meetings, or encourage QA teams and dev teams to communicate through some meetings once a week or so. Normally these meetings should be frequent enough so that QAs feel they can wait until the meeting to bring up something to dev attention and vice versa. Normally you don't want people's normal work days interrupted, but you also don't want animosity between the two groups.

What I think is the biggest travesty in Agile is people adopting its methodology and then still filling up the day with meetings. It's like no, wait, you're doing this wrong.

stone marlin
#

Thats going to be my main issue in proposing a methodology to the company I am at. I despise unnecessary meetings that eat up my time without added personal benefit. Right now I am sitting in a dead zoom call because I was requested and just haven't left yet. It almost feels like being micromanaged.

wind horizon
#

I’d love to see a platform, like Jira, that some how mixes in calendar. A way show how much of the sprint was meetings, I feel like it’d open the eyes of product teams.

#

End of sprint the summary should be like a normal one, but then combines in meeting time and shows for example 30% of the sprint was spent on meetings.

cyan niche
#

Developers are only good for so many hours of work a day, and meetings eat into that. Most of the time for most people, it's never 8 hours.

#

Can't say that out loud though management may explode.

wind horizon
#

Yeah and meeting tire me out faster than coding.

cyan niche
#

developer team leads can usually stand in place of meetings of developers

#

they don't really get to code though ;_;

stone marlin
cyan niche
#

just review PRs and meetings

wind horizon
#

I like a hybrid where everyone is welcome, but only specific ppl are required. That way if some Jr dev is interested in how things work or maybe there is a specific thing being discussed that interests you, you are welcome to join. #noivorytower

As I have moved up in my career the meetings have deff killed off a lot of my code time. Sometimes I miss working at a small startup with few obligations, it was just me and the code. Lol

peak acorn
#

Using a game engine as a noob you don't need to worry about graphics apis

deep flicker
cyan niche
#

Xbox controller is just XInput

deep flicker
#

For an absolute beginner I'd recommend starting by making a 2D game, which Godot is excellent for. Unreal and Unity are more geared towards 3D games AFAIK

peak acorn
#

Idk about godot but its prob decently abstracted to work with most controllers

runic rover
deep flicker
#

Exactly, it's an incredible tool but it's easy to get lost in the weeds (though I haven't used it myself so that's just my impression).

runic rover
peak acorn
#

Unreal not at all built for starters

#

Seems to be the easiest tool to make good looking games tho

runic rover
stone marlin
#

Acquiring a skill and being proficient with it is a time intensive process

runic rover
peak acorn
#

Yeah no way you're gonna do anything useful in 15hrs in unreal as your first engine

runic rover
#

Godot looks a lot less complex than UE5 which might be good for me due to me not having any experience at all in game development

peak acorn
#

I would recommend either Godot or unity

runic rover
proper gale
#

afaik that hasn't been finalized yet

#

also, ironsource didn't make malware themselves (afaik), they made an open source installer tool that people used to distribute malware

runic rover
deep flicker
peak acorn
#

It doesn't matter

deep flicker
#

What happens if they decide in future to lock features behind a tier system? e.g. Only allowing use of Vulkan for paid users?

peak acorn
#

Company who makes money exclusively off of high revenue companies thinks more companies should prioritize revenue.huh....

deep flicker
#

Yeah, they're a business and they want to make money. That's fine, but if they decide to pull and Adobe halfway through a project then it's going to suck being locked in to their tools/ecosystem

peak acorn
#

Standard business

runic rover
# peak acorn It doesn't matter

The only thing that might matter is performance because for example a game that has a DirectX version and a vulkan version the vulkan version runs way better than the DirectX version for some reason

peak acorn
#

Be the indie friendly company until you actually git gud, then start making money

peak acorn
runic rover
peak acorn
#

Engines are the medium u make games thru

#

U start somewhere. Making from scratch on the graphics api level is very harder

runic rover
peak acorn
#

No I mean

deep flicker
peak acorn
#

Being concerned about performance before the game exists even as a prototype is thinking about the wrong things too far into the future

deep flicker
#

Just make something. It will probably do some things well and some things poorly.

runic rover
proper gale
#

step 1, make a very unoptimized mess to figure out what you want to do
step 2, redo it and make it fast this time

peak acorn
#

The thing is you probably aren't able to make things that push hardware to limits yet

#

And if you do. It will be easily fixed

proper gale
#

and if you are pushing hardware to its limit, that would probably be highly optimized code

#

unoptimized and slow are not interchangeable

peak acorn
#

Well, while(1) fork(); also pushes hardware

#

But its more like wasted effort

runic rover
peak acorn
#

I got no idea if that's actually true or not myself

#

When you lowered crisis settings to rub 1080p60, did it look better than competing games at 1080p60?

proper gale
#

calling it slow would be correct
calling it unoptimized would require dissecting how it works

#

if the "same" software on the same hardware later runs a lot faster, thats optimization at work

#

throwing faster hardware at the problem doesnt optimize anything

peak acorn
#

Relying on faster hardware is such a 1990s thing 💀

#

Back then it was a reasonable solution

runic rover
peak acorn
#

From a more rigid aspect, optimization is how well you perform a specific task

proper gale
#

unoptimized means that its using an unoptimal solution, which requires there to be a better one

#

if you are using the optimal sloution, but thats slow, then there isn't any way to optimize it more, but it could still be unplayable

peak acorn
#

If you just have the best graphics anyone has ever seen, it's hard to say if it's unoptimize or just really demanding

#

Bla bla bla point made

runic rover
#

Which version of godot should I use V3.5.1 or V4.0 Beta2

proper gale
#

dont use betas when learning stuff, usually

peak acorn
#

V3 prob has more support and guides

runic rover
proper gale
#

more likely to change, less guides available, and less stable (which can be very frustrating to work with)

#

using a beta/alpha isn't avoidable when you are using a feature added in said beta/alpha, but in general it should be avoided

runic rover
proper gale
#

yea, and ive run linux kernels compiled from trunk, i dont recommend doing that

#

when possible, I recommend using LTS versions, particularly when you aren't familiar with the thing you are using

#

using an undocumented unstable and changing version of something you aren't familer with is asking to be unnecessarily frustrated with it

midnight wind
#

I had one case where the LTS had a bug, but the latest rolling didn't

runic rover
midnight wind
#

but documentation sucked, had to find it through bug reports

peak acorn
#

Don't worry about graphics api until way later

proper gale
#

^

#

game engine editors have overhead far higher than the choice of API does

#

and you probably wont be nearing the limit of any (semi-modern) API for a long time anyway

peak acorn
#

Eventually u could choose to learn more about using them directly but not now if your goal is game making

runic rover
proper gale
#

they might, but thats going to be a dropdown in the engine, if you want to use vulkan later, update the engine and switch the setting

#

there usually are issues with updating engine versions, and ive seen issues between graphics APIs (and versions of APIs), but thats not something you should worry about now, and was shader issues to be exact

peak acorn
#

You gotta learn how to write and/or utilize shaders before u can have trouble with them

proper gale
midnight wind
#

yeah

runic rover
peak acorn
#

T l d r start making things!!

proper gale
#

and know that the first things you do will be bad, but thats ok, everyone's first attempt was bad, they didnt know what they were doing yet

runic rover
peak acorn
#

No real problem with that. I just think no game engine will be your limiting factor for a while

stone marlin
#

Amazing response I got from a board

proper gale
#

deez nuts aside, to deal with uncertainty, you need an estimate to exist, so you cant not estimate

runic rover
#

Just wondering should I start making a 3D game or a 2D/2.5D game

peak acorn
#

Agile is all about splitting tickets into one completed and one todo when the sprint ends and pretend your company understands agile

proper gale
peak acorn
#

Make what u want, probably 2d. But it really depends on what approach you wanna take

runic rover
peak acorn
#

Right

#

So to be clear I'm not good at making games at all but from that one reddit post some1 had earlier, space invaders, pong, breakout, are a few simple things for 2d

runic rover
#

Because I have a game idea but that’s for the future if I ever got a job at Xbox game studios due to that idea being way too big and ambitious for me to do on my own

peak acorn
#

Yeah you don't want to have such huge things near in ur sights or you'll be sore when you realize it's farther away than you thought

#

Aaa I haven't even opened up a game engine in like 1.5 years now

runic rover
peak acorn
#

Right

#

Just start small, go make pong or space invaders

runic rover
#

And to be honest I don’t know how to come up with ideas without it turning into a really big thing

peak acorn
#

I'm no expert but usually once you're a little more capable then game jams become really good

#

To wrench ideas out of your head

#

I shy away from stories when thinking about games as a learner, since you're not a writer you're a dev

runic rover
#

One idea I had was to make a 3D platformer inspired by the spyro games but maybe that’s also a bit too big as well

peak acorn
#

If you're interested in 3d platformer, start with very basic 3d stuff

runic rover
peak acorn
#

Nothing wrong with wanting to make story games. But from the perspective of "I want to learn a game engine in order to make a story game in the far future" you're a dev for now

runic rover
peak acorn
#

Yup

#

Like I said, the sooner you just get something on your screen the better

runic rover
#

And 2.5D and 3D should probably wait for a later date

peak acorn
#

Sure

runic rover
peak acorn
#

No definitely not

#

It's a technical skill that some ppl thrive in a more rigid institutional setting but it's very self teachable

#

I ended up not liking game dev so much because I just like coding interesting problems not making things look good

#

So whenever I open up game engines I usually try to make my own character controller and stuff and that takes up a dozen hours by its self and don't end up making any game

runic rover
#

Can you tell me what programming language I should use from this list of supported ones for godot

peak acorn
#

I'm pretty sure gdscript is supported well enough and will suite u fine. I haven't used Godot very much tho I don't know myself

#

From that list I works prefer to use c# but if ur not familiar with coding at all i wouldn't

runic rover
peak acorn
#

Yea

runic rover
midnight wind
#

Binary prob not signed

#

Which I believe costs money to sign binaries

peak acorn
#

Cos winders dumb
Just hit more info and hit run
But I won't be able to help u with all these small issues u have that'll be up to u

runic rover
peak acorn
cyan niche
#

that's why i stopped using it

peak acorn
#

I can't

cyan niche
#

But yeah it's a windows security thing that you can go unquarantine

peak acorn
#

Linux impossible

cyan niche
#

D:

runic rover
#

The only problem with using Linux is game compatibility like I don’t even know if godot is even supported on Linux

cyan niche
#

Yeah, all the games I play work on linux, either natively or through wine

peak acorn
#

Way too big of a pain

cyan niche
#

Eh, I just downloaded Lutris and it basically just does it all for you. It can be though sometimes yes.

runic rover
#

One thing I know isn’t supported on Linux is Xbox game pass due to requiring the Xbox app

cyan niche
#

I had an audio issue with Windows I couldn't fix, but at least with Linux the chances of me being able to fix issues I run into is higher. I'm advantaged that I'm a dev and know what I'm doing somewhat and can compile stuff from source.

peak acorn
#

Very unrelated question.
Do compilers keep variable assignments in order? Can they be trusted in terms of thread safety

cyan niche
#

Depends on the language.

peak acorn
#

C

#

Pthreads, c99 standards I think

#

Gcc, a gazillion billion flags

runic rover
#

Is Linux a os that I should use instead of the very buggy windows 11 insider preview dev build that I have installed

cyan niche
#

In general, compilers should be trusted to maintain thread-safety. However, I don't know if you could guarantee they won't shuffle things around for efficiency.

#

If you were doing something really silly, especially in a language like C.

peak acorn
#

So yeah I'm looking at some shared variables and if they aren't defined in order technically they might go wonky if one thread gets choked up for a while by os

cyan niche
#

time for some semaphores xD

runic rover
#

Anyway I will have to start learning godot tomorrow due to it being about 2 to 3 hours till I need to go to bed

peak acorn
#

Yea it prob should have been handled with some more safety in mind

#

Your airplanes are safe in this companies hands!

cyan niche
#

If it doesn't you may be able to use compiler preprocessors to tell it to preserve their order.

peak acorn
#

P sure the implication of this specific issue is literally worst case a log message will be wrong. But i need to add functionality that it seems would potentially bust everything is the order isn't happy

#

Must thinky very hard 🤔

runic rover
#

Just wondering is godot based on UE4 because the tech demo looks like a UE4 game

peak acorn
#

P sure Godot is entirely it's own thing

cyan niche
#

Gadot is based on python

deep flicker
runic rover
cyan niche
peak acorn
#

I can explain the specific problem in a while if I don't figure it out

#

I think I can have a solution that is thread safe

runic rover
cyan niche
#

They did.

runic rover
#

If you where wondering what tech demo I’m talking about it’s the TPS demo

cyan niche
#

I'm not really into game development, thanks though.

runic rover
peak acorn
#

Looks like just nice lighting, modeling, environment design etc

runic rover
peak acorn
#

Ya that is the point

runic rover
#

Another thing is that I got godot from the website even tho it’s on steam I don’t know if there’s really anything different between the two

peak acorn
#

Doesn't matter

hollow basalt
#

Doesn't matter

peak acorn
twilit beacon
#
int k;double sin() ,cos();main(){ float A=0, B=0, i, j, z[1760]; char b[1760]; printf("\x1b[2J"); for(; ; ) { memset(b,32,1760); memset(z,0,7040); for(j=0; 6.28>j; j+=0.07) { for(i=0; 6.28 >i; i+=0.02) { float sini=sin(i), cosj=cos(j), sinA=sin(A), sinj=sin(j), cosA=cos(A), cosj2=cosj+2, mess=1/(sini*cosj2*sinA+sinj*cosA+5), cosi=cos(i), cosB=cos(B), sinB=sin(B), t=sini*cosj2*cosA-sinj* sinA; int x=40+30*mess*(cosi*cosj2*cosB-t*sinB), y= 12+15*mess*(cosi*cosj2*sinB +t*cosB), o=x+80*y, N=8*((sinj*sinA-sini*cosj*cosA)*cosB-sini*cosj*sinA-sinj*cosA-cosi *cosj*sinB); if(22>y&&y>0&&x>0&&80>x&&mess>z[o]){ z[o]=mess; b[o]=".,-~:;=!*#$@"[N>0?N:0]; } } } printf("\x1b[d"); for(k=0; 1761>k; k++) putchar(k%80?b[k]:10); A+=0.04; B+= 0.02; }}```
Can anyone tell me where the part is which prints out the thing onto the terminal?
#

i cant format the thing into cpp on mobile discord

#

its the code which makes the spinning donut

deep flicker
#

line 35

twilit beacon
somber dome
#

Hey,
Is the az104 certif fully made of questions or do we have labs and thus we need to manipulate the azure interface?

fervent thicket
#

I am using mkdocs-material with Github Pages and a workflow ci to build it etc, is it possible to add a password that is needed to enter to access the github pages when a person opens the url?

hollow basalt
#

Doing it from the UI and no backend?
Nope

#

Doing it from a backend? yes
Doing it in other ways if you don't have a backend? Yes

sly marten
#

Oof it’s annoying to write stuff to be compatible with IE11 😂 thankfully I don’t have to really also make it work in other browsers

#

Some .NET IE11 browser control rendering a web app and using Windows Script Host API (I think) to communicate with the web app 😳

slate frigate
#

Ain't nothing worse than making sure you can cross compile between 3 operating systems

unborn imp
#

IE11 isn't getting security updates anymore. Has management considered casting this solution into the fire?

cyan niche
#

Send that to whoever asked about IE.

sly marten
#

but yes, the plan is soontm to use Edge instead, since that'll be supported in .NET now anyway, so guess that means Chromium

sly marten
mortal sigil
#

may god have mercy on my code reviewers

peak acorn
#

Yikes

silk eagle
#

do it on friday

hollow basalt
#

But why

peak acorn
#

Annoying that C compiler will spam you with a million issues for missing a closing curly brace.

Why is that? Is there something about the C language that makes compilers stupid? Or is it just that I'm using old compilers. Cos modern higher level langs have so much more detailed and accurate compiler errors

cyan niche
cyan niche
# peak acorn Annoying that C compiler will spam you with a million issues for missing a closi...

Because there's no way for the compiler to know where the ending curly brace goes. It just knows it goes somewhere between the opening curly brace and the end of file.

Normally, when a compiler hits a curly brace for say, your if block, it starts a new context, then begins building out the executions after it, but since contexts start to overlap that shouldn't the namespace gets all cluttered with stuff that's all wrong.

peak acorn
#

Other languages are much happier to give you an error that makes sense tho

#

Like C will spam you with a million errors for every function after the curly brace but other langs idk what but they won't do that

sly marten
#

Sounds like it’s counting the opening and closing brackets, and if it finds a diff, you have a problem somewhere… though in fairness I don’t know anything about the C compiler

peak acorn
#

Or even semicolons, c won't tell u sometimes

sly marten
#

Just don’t forget them wesmart

cyan niche
#

The reason why C isn't as good as other languages at telling you what's wrong exactly is because C doesn't have the work put in to do that, and C as a language is a lot more permissive than something like C#.

In addition, the people who develop C have been working on C for so long that they're all familiar with it to the point where the errors are plenty fine for them.

sly marten
#

I never forget semicolons or brackets ever Kappa

sly marten
cyan niche
#

Sometimes I feel like C programmers are a cult.

sly marten
#

Also don’t make 3000 lines long classes, because surely it’ll tell you which file/class the error is in

cyan niche
#

With Rust I really feel like a lot of what C has to offer isn't relevant for most people these days. And really that's just bare metal type stuff with extremely small executables.

peak acorn
#

Not allowed to use rust in my work 🥴

cyan niche
#

Yeah gotta use what work uses.

#

My last employer was using a shitty technology and refused to switch so I left.

peak acorn
#

I asked once apparently llvm is a no no for embedded safety stuff

sly marten
cyan niche
#

Embedded systems will the be the place where C is still king.

peak acorn
#

Yeeuh

cyan niche
peak acorn
#

Whaddya do professionally imsted

cyan niche
#

I'd use their shitty technology stack if they paid me $500k a year to do it.

peak acorn
#

500!

sly marten
#

Nobody could ever pay me enough to not care honestly

cyan niche
#

you know how many cats I can stupport on $500k?

sly marten
#

Unless they could pay me in time as well as money, but nobody can give back time

cyan niche
sly marten