#development
1 messages · Page 3 of 1
but the costs
Suppose that’d be doable, yeah, but still isn’t making this much simpler. Maybe even makes a project like this even harder 😛
its not super expensive
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.
I rather go more open sauce
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
Lemme know when you get it running, I'll be your first sub
thanks bro, i appreciate u
Should only take a couple weeks
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!”
Well lets say few weeks. Its more of when i will lose my hyper fixation and when it comes back.
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
No. Its not that kind. Live stream. More of....
that loss of hyper fixation is called burn out
No reason to make fun of you - we’ve all been there 😊 it’s good to have ambitions, but it’s also important to be able to take criticism into consideration, and not see it as insults (even when it is insulting, try to see through that)
oh yeah no i have no clue how youd go about managing live streams
Thats..... something else entirely 
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
Tbh there are some open source options that could probably be ported 😛 but still would require a significant amount of experience on the topic
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
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
Yeah, personally I would recommend finding another project, then you can consider streaming service later on when you have built some more experience 🙂
as boring as it sounds.. a to do list
add a calender to it, auth, you can make it really complex
The first 3-4 years of personal projects are boring things that already exist
Sure, with basic web dev skills you can make something half baked… but then what’s even the point of doing it? Half of the point is to actually learn what goes behind it so you can optimise and make something better
precisely. and then u move to things that shouldnt exist
unnecessary things that u spend hours on to do something automatically that wouldve taken you 30 minutes
well its not gonna be fully baked till u make something half baked
Essentially all of my projects are things that already exist 😂 but they still teach a lot though, and there are a lot of things out there that can still be way better - such as Facebook for example… would be very easy to make a better solution, but actually getting it into the marked is near impossible
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?
neither
Hm, then which, or what way, I mean?
wait I misinterpreted
Well if you “leech” pre-made libraries and crap from other people, you won’t really have a lot to go on - hence why I suggested a forum software, which would give a good foundation of users, comments, database, etc
oh 😄
yeah I think storing the html is fine
don't do images
What are we arguing about?
Sure
you can always make an image, you can't easily create text from image
Thats true
OCR is definitely a pain in the butt 😛 especially at scale
the idea is to make a project with pre-made libraries, then phase them out once you know generally how you want things to function
But well i sleep
gotta start somewhere with it
Nothing wrong with using libraries
Sure I don’t disagree with that, but in my experience it often leads to unrealistic expectations etc
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
^ this too
Point I’m making is you need to know what goes on to optimise it for your streaming service… you can’t sit around and wait for someone to attend to your feature requests etc in whatever libraries you rely on - depending on where you want to go with a streaming service though…
Absolutely
Realistically you’d probably want to fork an already made solution and continue off of it
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
Yeah, they wanted to make something like Floatplane 😛
Literally just showing video, not rly, but youtube? holy cow
They talked about live-streaming
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
oh LIVE streaming
yeah i thought it was just videos at first
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!
for hosting videos with channels and stuff that upload them im pretty convinced itd be a month of energy drinks
10x10 pixel resolution per person should do the trick right?
but for livestreaming thats some mystical shit
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
Thank u Present Monkey
monky
Hope you will be Future Monkey too
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
i bet youd definitely want to start off with audio
Not sure if you can use OBS, haven’t looked into it, but if it’s open source, that’s where I’d start
Yeah, once you nail audio, you can start working on video I guess 😛
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
Yeah, which is also important, so next step after that is whatever library/solution you use to serve the video feed off of your servers onto your clients
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
for livestreaming and/or building a (video) streaming platform without third party services (aside from hosting) yeah
Gonna fork Twitch and host it from a Pi
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
Yeah, and to build something better than YouTube would be incredibly difficult - even if you taught yourself how to implement these protocols
In sure twitch is also deeply invested into building private networks to efficiently transmit video also
Or even something on par with YouTube
Well they are amazon now so they just use Amazon's private networks
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
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
It’s actually such a shit show 😂 it’s almost surprise how insanely bad parts of that service is lol
oh right didnt they get all their stuff leaked
I may have had a peek at the files in the Twitch leak some time ago 
Seems to be working out for them anyways
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
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
you'll be surprised how much is just garbage, hacked on top one another
There is of course still a balance to be made 😛 at some point your stuff is so bad it’s not functional anymore
like this company was using wordpress for an intranet site, and looking at the code it was just people adding stuff where needed. real mess
One of the reasons I stopped working as a developer professionally - too hard for the perfectionist in me not to be able to do something about things that I certainly would consider critical
Wordpress is already a hot mess out of the box tbf
adding garbage to garbage just makes the garbage look organized.
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
u know what kills me? not putting spaces before and after =
My job is super good at staying on top of that design and review work
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
We got a whole team of Mexican folk who do our testing 👺👺
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
brightness at like half though (bit off topic but whatever
)
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
good and free often don't go too well together... especially when it comes to hosting... host it on your own PC, or a spare PC? Raspberry Pi or something?
assuming you're talking about a Discord bot
without knowing anything about it, other than what the frontpage says; it's probably as good as it gets for free hosting
oracle cloud tree tier vps?
cloudflare workers I guess too
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
@midnight wind could you help find the file I need to run for my bot
Why do u need an oracle acc? 💀
💀 Why do u need an oracle acc?
Oh for free vps
Typical oracle
Oracle typical
Were to get a host then lol
Where
Actually can someone put my code on github and get me the repository link
why don't you do it yourself
I'm on mobile rn
make a repo on GitHub, then:
git init
git add -A
git commit -m "Initial Commit..."
git remote add origin <GIT REPO URL>
git push -u origin master
As it should
Its 125 mb file
byted
yeah, you're gonna have to ignore some files...
such as the node_modules folder for example
you're going to have to put in some effort, use Google... we can't do your stuff for you... 😛
You think orval cloud will accept the bot
orval cloud does not even exist
yes
you should probably reset your bot token since it’s publicly visible (and you just posted it)
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.
I don't have a current source file on my laptop (good old work giving me a user account instead of an admin one :)) - example of one of the older versions of the code tree: https://github.com/kriswema/zhlt/blob/master/hlrad/lerp.cpp
@nocturne galleon this! that's like pretty serious - worst case it could get your Discord account banned (or whichever Discord account created the bot)
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!
👆
Matrix multiplication like what is used in 3d math and machine learning.
Don't to need to use some intrensics stuff to manually use avx
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?
Any suggestions on what I should do?
Learn that tools are meant for different things
Like are you saying switch between languages depending on the problem?
I think he means learn a variety of tools, and tools for different things
Well yeah but not entirely sure how that would help on an OA
What's an OA
Oh ok so you're already talking with companies
Yeah, so focus on stuff that your opportunities require
FWIW I've done all my coding interviews using a language that isn't actually used by that job
If you mean the job description, they only ask for basic knowledge of any programming language
indeed, so why learn all languages
Find the area you want, look up what language they use, learn that and be done with it
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
I learned them all through classes so I'm equally comfortable with all 3 syntactically
If they don't care on specific language skills, learn other stuff. Diagramming, version control, etc
@untold badge Also worth mentioning that 1) you're not gonna truly commit to a language for maybe another 10 years 2) companies are no stranger to teaching someone a language on-the-job, and they usually care more about your ability to understand code in general & being open to learn. Especially as a junior dev
If it's web and frontent and mobile jobs. You don't need graph algos except maybe for stupid interviews
syntax doesn't matter that much because our IDEs are smart
You would be very surprised
Not for an internship interview.
+1 context matters
Yeah that's why I was doing most of the problems in Python, but Idk the analogs of data structures in Python (like how a list in Python is a vector in C++) so I use C++ for the DS problems
I'm not at the interview stage yet
In general not for internships
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
Honestly I misread this to begin with lmao
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
I mean, I already know basics of C++ before college.
so i was the one teaching the uninitiated to programming
Problem is the positions I've applied to are general, so after I get interviewed is when I get to choose where I go lol
Idk in my area, companies hate sophomores
They only want juniors onward
then don't worry about the language
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
Idk I showed my resume to around 30 recruiters at my career fair and most said "we only take juniors" or "apply online"
Around 7 seemed somewhat interested tho (will apply soon) but I didn't get any offers
Yeah in my area they also focus on juniors, that is going to be a hurdle to overcome
at the career fair
apply online
say what
Absolutely happens all the time
Uni moment
had a job fair in my school, people are ready to do initial interviews at the spot
I'm more so asking so I can be more efficient on the OAs, not so much to use during whiteboarding and whatnot
Yeah I know a few people who got same-week interviews
yea madlads
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
But these were at specific companies with crazy good candidates
Like if you win a hackathon of course you're gonna get interviews
i usually skip companies that do hackathons to get interviews
Wish my school had more random shit like that
No I mean he won a hackathon before the fair (the companies weren't involved in it at all)
Yeah ik
Yea Rugg knows
Idk if hackathons are usually uni run or what I've never been
@hollow basalt i thought you were saying there were mini hackathons at career fairs lol
But I know it wasn't at the fair or whatever
Sometimes they are
I'd check them out
Free stuff if nothing else
Rn I'm busy with a lot of stuff I wouldn't travel for anything like that
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
Oh ok I figured out there are security rules which would allow you to do that
So I'm doing homework (college kid here), this is the prof version. The second photo is mine.
This is my code for html.
Anyone available?
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."
I don’t want people to do it for me, I just want guidance
Homie, guidance is the job
I’m trying to figure out where I missed earlier the side bar in prof photo showed up now it doesn’t
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
I haven’t been taught debugging
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
LOL alright, you might be trying to dunk on him, but I'm not
man if you're gonna dunk don't try to buy it back after the fact
woman, if you're trying to make me look bad just to downplay how you destroyed him
OH! I thought you were replying by saying that you WERE trying to dunk on him, I just misread. my bad.
I went to get ice cream.
I mean, any technology is good. It's just how you use it / what problems are you trying to solve.
Well
Personally I think PHP is garbage that should be scrubbed from every hard drive on the planet.
PHP did the ultimate sacrifice
Someone had to teach the world how not to make a website
it is a bad language so we developers can learn from its mistakes, avoiding it and creating better programming languages
Truly a scar on tech
https://tenor.com/view/itachi-gif-gif-20002083
resent me, use it to be better
Anyways, firebase seems really easy to integrate some basic auth and database stuff
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.
Yeah, it's a quick way to prototype ideas and basic app stuff.
At the end of the day, whatever puts food on the table is a good enough language
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.
i should learn cobol
scoop up the jobs once you old fucks retire
you should keep your sanity
No, you shouldn't. Demand is dropping due to time legacies.
ruggy cobol consulting co.
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.
💀💀
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
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...
Yeah no I'm on the path. I've done real dev work and just finishing up school this year
My school is finally teaching us Python
use inspect element and see what's up - not all that much we can do for you other than doing it for you (which we won't)
I emailed the prof and turns out, I had the right thing going all along but I just needed to fix it.
HTML/(S)CSS is annoying as hell tbf - will take quite a bit of practice to get comfortable with achieving what you want to
Yes, but its less agonizing than C code.
So wrong
In my eyes, I'm not screaming at my laptop.
Like I was with C. So I'll take HTML.
yet! just you wait! 😂
I learn JavaScript next
oh man, screaming at code incoming! 😛
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
I have thought about compression sleeves for my arms
Put programing socks on ur hands when u code
First time I got my carpal tunnel it was at a job that was 100% python :P
might just be my joints and bones being deformed into place for typing
How old are you? I didn't start getting it until my late 20s
19 this year, I didn't wanna call you old 
thankfully don't feel anything of the sort yet, and I practically live in front of my computer 
27 this year, so hopefully I can carry on without any carpal tunnel issues for a good few years longer

Just wait a few years, it'll come
It was a 60% keyboard with odd macros + a 1.5 hour commute with bad steering wheel form that finally did me in
Ergodox EZ + Standing Desk + WFH has spared me since then
I tend to use various gaming keyboards and mice, I do maybe notice some wear on my wrists though, but hard to tell 
Is anyone having issues with discord bot tokens
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.
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
First 2 or 3 weeks was brutal, but it helped that I WFH at the same desk as my gaming setup, so I got ‘round the clock practice.
There were a couple times during a peer session that I had to stop and be like “hey I got this weird keyboard this part is gonna take me a minute” lol
Yeah I use same desk as well, but work is all Mac so going Mac -> Win + the new layout just made my brain 🤯
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.
In system preferences you can change which hotkeys do what 👀
I did that with mine instead of toggling on the keyboard
Did a swap Ctrl and Alt
It works per-keyboard which is cool too, if I use my laptop keyboard it’ll retain the original key mappings
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.
Yea fuck that
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
def my_function():
print("hello")
def main():
my_function()
is this what you mean?
does it call your main function?
it just doesent do anything
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"
ah thanks ill try to implement this fix
main should be above or below other functions?
@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
thx
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
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.
Ehh, in c it matters
For function declarations, not definitions, if I recall correctly.
Yes
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.
Yeah I get it
Except in JS with hoisting. I think all or at least most of us can agree you still should define it first or use strict, but yeah JS interpreters will normally hoist functions if not in strict mode. Lol
You should really be running in strict though.
I think most code in plain, compile to strict tbh.
Ah yeah looks like it doesn't stop hoisting, well there you go. lol
anyone know how to use discord widgets?
No one
Ask an actual question instead of asking to ask
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
Tailwind is great general purpose one, there is bootstrap but it’s getting oldish looking these days imo.
If you are doing React specific there is AntD, MaterialUI, BluePrintJS, and a few others that are most components you need in a kit.
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
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.
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
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.
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
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
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
https://stackdiary.com/tailwind-components-ui-kits/ went through this list now
Summary » Not only is Tailwind CSS one of the fastest rising CSS frameworks, it’s been widely accepted as the golden standard in the current web development timeline. And in order to accelerate the pace of building functional websites and apps – it goes a long way to master a specific component library. In this article, …
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 😛
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
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 😂
I have never used foundation, but I like that they even have boilerplate like html templates using their css framework
I'm rebuilding the solution from ground up though, so a design overhaul is a side effect of that
Now that’s sexy looking
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
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
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
Don't u just import models and stuff straight into robox nowadays
Yeah
Does anyone know how the 16 bit bus in the DS SLOT-2 behaves if you write an 8 but value?
Eh, I can just try it and see what happens.
how much ram would i need to model a lifesize small town in blender
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
why not use scp?
Was just about to suggest scp too.
that'd be better, ill use that next time lol
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.
Way too large of a question, what settings, how many decals will there be etc. Try with whatever setup you have, might take some time but might work :)
alrighty thanks
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
vast.ai is worth checking for GPU rentals
it kinda consolidates all the different GPU machines available so u can compare gcp, aws, and their inhouse machines
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
All you need is for certain programs to be run in a certain order with some sort of error detection. This means checking exit codes and such.
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? 
I think there is some libs for the popular languages that do most of the work for you, not sure which language you are using though.
Even better some email solutions, like gmail, have an API to already handle this pushing notifications to a pub/sub or wehook calls etc.
I'm using C#
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)
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.
portions = 3
for x in [str(portions * 0.5) + " 2 Eier", "200g Mehl", "200ml Milch"]:
print(x)
What im doing wrong ?
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
portions = 3
for x in [ "2 Eier", "200g Mehl", "200ml Milch" ]:
print(str(portions * 0.5) + " " + x)
is my best interpretation
what is trying to do
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
nope no idea
oh
According to google translate, eier is egg, mehl is flour, and milch is, unsurprisngly, milk
in german
Ohh
so it is a recipe conversion thingie
so yea idk what his code is supposed to do but i see its afood recipe lmao
proportions seem off
I guess like how many of each thing you need to make a double/triple etc batch
but idk where the 0.5 came from
unless the base recipe was for 2 servings and they wanted to scale it out afterwards?
Is there any red hat certified engineer here? Do we NEED the RHCSA to get it ?
To get redhat?
To get the red hat certified engineer certification
You have to do SA then CE, its a pre-req
Wow okay
Yeah. Whats making you get it?
My company paid for the latter one and not the former...
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
Yeah, they don't even know yet. I wanted to be sure before telling them to not look life a fool ^^
Thanks !
nah, that's the correct thing to do
yeah, I'm intending this system to be modular, so you just hook in whatever instances you need, but the easiest and most likely to work way for anyone, is IMAP 😛 but I might consider adding to it later on for fun
I'm trying to keep things separated into their own solutions, so they can be hosted whichever way makes the most sense
god i love python oneliners, they are so fun to look at lmao
It's optimisable
use regex for it

always a good python one-liner if it takes 4 lines on my computer to display
lol
I'm having an issue with TailwindCSS and React. I installed it and no tailwindcss result is showing.
Did you add tailwind to your css file?
@tailwind base;
@tailwind components;
@tailwind utilities;
yes I did. I created a new react app, followed the doc and it worked. However, the one I'm having issue with is an assignment I got. They gave me a created react app, using React 16.13.1 and it doesn't work there
If it’s an assignment and it doesn’t work out of the box maybe your assignment is to fix/setup the tailwind build? 😅
Nope. The assignment doesn't say to use tailwindcss. I just want to use it because I'm used to it
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 
Ah well sounds like the app they shared just doesn’t have it pre-configured. Did you install tailwind, setup a tailwind config?
If so last step is using some kind of loader / build process, there is the tailwind CLI but if you are integrating it into an already setup app with webpack likely PostCSS would be your easiest way.
yes i did. I tried the same process on a brand newly created react app and it worked just fine, but not on this one specifically
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?
lookup raspberry pi simulator/emulator
gonna need some more to go on tbh
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
I have deployed a project with tailwind. Everything was fine though
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?
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
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
personally I've written my own CSS, but I kept using the Bootstrap mixin for media queries to handle all screen sizes
https://www.browserstack.com/guide/top-css-frameworks
Why does this article mention Bootstrap on top? I hate bootstrap so much lol
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
Yeah I love tailwind but do hate that mass amount of class names in your html.
Yeah, for now I opted for Angular and my own SCSS implementation of design
Stripe's documentation deserves a nobel prize
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)
Yeah I often use Stripes docs as examples for our work docs haha
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
It might be possible if it has network access somehow.
no, it's too basic
only has 3 external pins
it has more with a break out i think
yeah i was thinking an esp since it has networking built in i think
best solution is just in the cloud
yeah but then what will i do with all these cute boards
also always fun to mess with microprocessors
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
i honestly don't have many ideas for what to do with those things
go around the house and find a problem
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
ROTA on GitHub - https://github.com/HarmonyHoney/ROTA
Steam - https://store.steampowered.com/app/1993830/ROTA/
itch.io - https://harmonyhoney.itch.io/rota
Follow me on Twitter! - https://twitter.com/harmony_hunnie
samsface on YouTube - https://www.youtube.com/c/samsface
Godot-Steam-API - https://github.com/samsface/godot-steam-api
PC NONO Gam...
Who would I tag to speak about the development of our great and ironfisted overlord the @covert cove
- joke
investigating "high cpu usage under some circumstances" is so obnoxious
but you're on the modern emulator now. it was worse back then
yeah android studio, i cant imagine how bad it would be before
the modern framework hot reload is definitely a heaven sent
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
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
yea nioe
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;
}
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?
Your question doesn’t make sense why not show what you want
i cant figure out how i can do that if the switch is in the off position that it turns the light off and when it is iin the on position it turns the light on
Thats not html
sorry php
Pure Hell Programming
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.
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
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
you don't the upload virtual environment
the main purpose of it is to be reproducible, e.g. anyone can download the code and create the venv themselves
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
how did you develop the service then
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.
Oh my fucking god I just spent an entire week to figure out the most obvious issue
Sounds par for the course tbh
Sounds aight
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
Easy solution. More cores.
now you have to rewrite the whole code?
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
Where does a 0 appear? I don't get a 0
in his imagination'
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
lmao no fucking way
lmao
Rhetorical question/hint: "What is the type of the variable you are setting with the user input?"
okay thanks 👍
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
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?
yes
Yup you may want to read this: https://git-scm.com/docs/gitignore
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 😦
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
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;
}
}
}
What lang is this
Also since you're flattening the value, why not just for i in 0..4^3
Rust docs suck. .-.
you could say it's rusty
For a bunch of the stuff there are massive sets of documentation they could easily use in automated documentation...
Is this C? C++? Can you just make a 4x4x4 array of 4x4x4 cube structs and write accessor methods?
memset
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.
#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
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
Docker really is magic. Anyone who isn't using it better have a really good reason why they aren't. Like, you're doing game or mobile development and you can't put your game/app in a container.
Docker isn't magic.
It’s just saying. Lol
Like how “magical”is used to describe something that’s amazing / beautiful even though it’s clearly not “magic”.
magic isn't real smh
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
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)
podman is my container manager but i figured id say docker
since it's more popular of the two and are mostly compatible
@ornate summit @deep flicker thanks for the suggestions. It was indeed minecraft and working in java. If you wanted more context I just committed what I had here: https://github.com/jmc2obj/j-mc-2-obj/blob/1be39db8913545df5c368945b6889f2eaefadc77/src/org/jmc/Chunk.java#L386
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?
Probably a generic role with runtime variables passed in via the CLI or a variables file https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#defining-variables-at-runtime
Better guides than the official docs: https://ansible.jeffgeerling.com/
e.g. https://github.com/geerlingguy/ansible-role-jenkins
#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
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() {}
Dude thank you!
semicolons are never above our pay grade
So the rumors ive heard are true
there are some blessed ones that never forget semicolons, its like being a grandmaster in chess though
Love you sexy beasts
It becomes muscle memory after a bit.
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
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
big awsom
Typing with either or both hands can be an important skill.
For ordinary typing tests im about 40% the speed on left hand only
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
yeah im p much similar except im not sure what my right hand is
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?
use devtools in the browser and check for JS errors in the console
also, WordPress is a nightmare to work with - don't expect to get professional and smooth results without some decent web dev experience
^
wordpress is a weird mix of a CMS and a website builder which when combined together can cause issues
Okay, I will check with that. Thanks😃
add varying quality plugins and themes to the mix, and you're in for one hell of a ride 😂
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
sounds about right
trying to add things, just hacks on top of hacks
shit in, shit out
There's this one client using WordPress for an intranet website
I'm like just use something like SharePoint ffs
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
I used to work full time as a web developer, but this crap is still busting my balls really hard
I had to add analytics and it's seems like a fair amount of people use it for accessing info
Oh yeah using WordPress for a store 🤮
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...
Or these days just using something more optimized like square space or 1 of the many options
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)
Yeah fair point, but I would assume there is some framework out there that would in the end be easier than wp
Holy crap, WooCommerce + Facebook combo might just be the worst trash I’ve ever had to work with 
What does Facebook do?
Facebook commerce among other things, which lets you integrate your webshop with Facebook pages, instagram etc
It’s an absolute nightmare
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?
don't return C main
That's the obvious thing to do, but there has to be another way.
there is
Is there a flag I need to give Java or something?
I might just be able to call JNI_DestroyJavaVM.
Yeah that was it.
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)
This was pretty much correct.
how do Facebook expect non-US people to test their shit then? am I just dumb, or what the heck is this bs?
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).
Can I have help setting up a website for my mc server
@nocturne galleon , What type of server?
Smp
minecraft? Someone around here probably knows about that.
I would like to hope so lol
git log maybe? "Notes can be shown by git log along with the original commit message. ... To change which notes are shown by git log, see the "notes.displayRef" discussion in CONFIGURATION." from https://git-scm.com/docs/git-notes
Gonna need some more information than this… what do you need this website to do etc?
Like register to play the server or something?
Shouldn’t really matter tbf, two different topics, but one project 😛 a website is a website, and the server is the server
Use squarespace or something idk
They probably want dynomap and a chat client
@cinder willow I do
Did you install the dyno map plug-in?
They have a config file and a tutorial themselves
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?
cookies or something, handle it with PHP so render that other HTML page with PHP, and send a POST request with the result to that
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 🙂
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
client.login(process.env.TOKEN);
How do I get this code to read the token from config.json
You don't
You create env variables
You can use a .env file
One node network lol
Sorry if this is the wrong place to ask but where would I need to start to make my own games
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/
Other resources: https://old.reddit.com/r/gamedev/comments/xal7y8/best_youtube_channels_to_learn_game_development/
236 votes and 50 comments so far on Reddit
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
Or just google Godot tutorials and there's tons of results 🙂
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
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
how would i use ANSI escape codes to edit a certain row in the terminal (in c++)
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?
Yes
How can I do that?
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.
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
seems like XY problem
why are you trying to do that?
looks at board and sees 9 tickets
me in call: "I only got a few tickets"
Probably not what you described above
Sounds like tickets have been assigned to projects you don’t have access to or something
Projects, not repositories
Afaik you can’t limit access per branch beyond read only
Nah I'm not the guy trying to limit branch view access
No, but you asked
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.
It’s not about it being difficult, not all features are as convenient as they sound, which is probably why it’s not possible
It's not possible because Github doesn't want to implement it, and the use case is extremely limited.
I'm aware
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
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.
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.
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.
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.
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.
Yeah and meeting tire me out faster than coding.
developer team leads can usually stand in place of meetings of developers
they don't really get to code though ;_;
just review PRs and meetings
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
Can anyone answer this
Using a game engine as a noob you don't need to worry about graphics apis
GDScript is basically Python, which is a reasonable beginner language.
Being a self-contained binary you don't need to install additional libraries for OpenGL/Vulkan on your development PC to get started.
You can use an Xbox controller (generally for games you create an input layer and then map that to whatever input devices you want to support)
Xbox controller is just XInput
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
Idk about godot but its prob decently abstracted to work with most controllers
And Unreal Engine 5 has so many tools to the point that it’s very confusing
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).
A while back I tried learning Unreal Engine 5 but after like 15 hours I felt like I learned absolutely nothing
Unreal not at all built for starters
Seems to be the easiest tool to make good looking games tho
Yea I found that out the hard way the only reason why I tried to learn Unreal Engine 5 was due to it being the most cutting edge game engine out now
Thats because 15 hours is basically nothing in the dev world
Acquiring a skill and being proficient with it is a time intensive process
Going in to it with no game development knowledge probably didn’t help as well
Yeah no way you're gonna do anything useful in 15hrs in unreal as your first engine
I don’t even think that 15 hours was enough time to learn even one part of UE5
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
I would recommend either Godot or unity
Didn’t unity not acquire a malware company recently tho which sounds like a bad idea
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
The only reason why I was asking is because I don’t know which one to use
Unity has questionable leadership IMO https://gamerant.com/unity-ceo-microtransactions-monetization-comments/
It doesn't matter
Yea that sounds terrible
What happens if they decide in future to lock features behind a tier system? e.g. Only allowing use of Vulkan for paid users?
Company who makes money exclusively off of high revenue companies thinks more companies should prioritize revenue.huh....
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
Standard business
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
Be the indie friendly company until you actually git gud, then start making money
If ur just learning an engine then performance doesn't matter
cough GitLab cough
I want to make my own games not just learn a engine
Engines are the medium u make games thru
U start somewhere. Making from scratch on the graphics api level is very harder
I know but it just sounded like you thought I just wanted to learn a game engine but not actually make any game at all
No I mean
Game concepts != game engines. There will be concepts and patterns that you learn regardless of what engine you start with that are applicable to any engine
Being concerned about performance before the game exists even as a prototype is thinking about the wrong things too far into the future
You wouldn’t want to make a very unoptimized mess tho unless you are making a game that pushes technology to the absolute limit
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
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
and if you are pushing hardware to its limit, that would probably be highly optimized code
unoptimized and slow are not interchangeable
Everyone called crysis a very unoptimized game probably due to it running like sh*t on hardware at that time
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?
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
Relying on faster hardware is such a 1990s thing 💀
Back then it was a reasonable solution
I thought unoptimized is when a game runs so badly to the point that it is unplayable
From a more rigid aspect, optimization is how well you perform a specific task
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
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
Which version of godot should I use V3.5.1 or V4.0 Beta2
dont use betas when learning stuff, usually
V3 prob has more support and guides
Why not
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
I already use windows 11 insider preview dev build otherwise known as windows most buggy peace of sh*t I’ve ever seen edition
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
I had one case where the LTS had a bug, but the latest rolling didn't
Godot V4.0 Beta2 support’s vulkan that’s why I was asking if graphic’s APIs is something I should think about due to vulkan games running way better on my PC
but documentation sucked, had to find it through bug reports
Don't worry about graphics api until way later
^
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
Eventually u could choose to learn more about using them directly but not now if your goal is game making
I’ve just noticed that vulkan version’s of games run way better than the DirectX versions that’s all
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
You gotta learn how to write and/or utilize shaders before u can have trouble with them
ive had that too, but in general the LTS is better
yeah
Yea there’s definitely compatibility issues a example of that is a godot tech demo that was made in version 3.4 I tried running it in 4.0 beta 2 and all the assets were just grey for some reason
T l d r start making things!!
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
I will I just thought that I would see some tech demos to see what the engine is capable of that’s all
No real problem with that. I just think no game engine will be your limiting factor for a while
Amazing response I got from a board
deez nuts aside, to deal with uncertainty, you need an estimate to exist, so you cant not estimate
Just wondering should I start making a 3D game or a 2D/2.5D game
Agile is all about splitting tickets into one completed and one todo when the sprint ends and pretend your company understands agile
make whatever you want to make
Make what u want, probably 2d. But it really depends on what approach you wanna take
Remember I’m a beginner so I need something beginner friendly to do
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
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
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
That idea wasn’t that big at the start in march of 2021 but after January 15th 2022 (the worse day of my life) I thought how could I make that idea much bigger and more ambitious
And to be honest I don’t know how to come up with ideas without it turning into a really big thing
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
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
If you're interested in 3d platformer, start with very basic 3d stuff
That big idea I had was for a story driven game due to that being my favourite type of games
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
Like you said tho I should probably start with a 2D game probably due to that being the easiest type to make
And 2.5D and 3D should probably wait for a later date
Sure
To be honest I thought that you would have to go to college to learn game development properly but clearly not
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
Can you tell me what programming language I should use from this list of supported ones for godot
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
So I should just use GDscript then
Yea
Do you know why this pops up when I try to run godot
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
It's not "dumb"
Yea that’s fine I just didn’t know if that was a worrying message that’s all
Windo soo dum
that's why i stopped using it
I can't
But yeah it's a windows security thing that you can go unquarantine
Linux impossible
D:
The only problem with using Linux is game compatibility like I don’t even know if godot is even supported on Linux
Yeah, all the games I play work on linux, either natively or through wine
Gadot works natively on linux: https://godotengine.org/download/linux
Way too big of a pain
Eh, I just downloaded Lutris and it basically just does it all for you. It can be though sometimes yes.
One thing I know isn’t supported on Linux is Xbox game pass due to requiring the Xbox app
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.
Very unrelated question.
Do compilers keep variable assignments in order? Can they be trusted in terms of thread safety
Depends on the language.
Is Linux a os that I should use instead of the very buggy windows 11 insider preview dev build that I have installed
No lol Linux has bugs too.
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.
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
time for some semaphores xD
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
Yea it prob should have been handled with some more safety in mind
Your airplanes are safe in this companies hands!
If it doesn't you may be able to use compiler preprocessors to tell it to preserve their order.
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 🤔
Just wondering is godot based on UE4 because the tech demo looks like a UE4 game
P sure Godot is entirely it's own thing
Gadot is based on python
Can you make an init function that guarantees the global variables are set before the accessor threads are spawned? e.g. (not sure if this is C99 compliant)
typedef struct gVars {
...
};
gVars* gVarPtr;
void init() {
gVarPtr = (gVars*)malloc(sizeof(gVars));
// init variables
// ...
// make accessor threads once vars are init
pthread_create(someFunction, gVarPtr);
}
It just so surprising how good the tech demo looks considering that godot is a game engine that I’ve never heard of until today
That's their best foot forward and there's a lot of people who worked on it.
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
I just hope that eventually once I’ve learned godot enough that I could make something that looks as good as that tech demo
They did.
If you where wondering what tech demo I’m talking about it’s the TPS demo
I'm not really into game development, thanks though.
The only reason why I want to make my own games is because I love playing games all the time so I thought that I should try to make my own
Looks like just nice lighting, modeling, environment design etc
Yea it looks really good I think that’s the entire point of a tech demo
Ya that is the point
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
Doesn't matter
Doesn't matter
Doesn't matter
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
it's the call to putchar()
line 35
can you please decipher and tell me what the hell is going on in it, im just completely gobsmacked
Hey,
Is the az104 certif fully made of questions or do we have labs and thus we need to manipulate the azure interface?
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?
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
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 😳
Ain't nothing worse than making sure you can cross compile between 3 operating systems
IE11 isn't getting security updates anymore. Has management considered casting this solution into the fire?
"Internet Explorer has reached end of life IAW Microsoft Lifecycle Policy (https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge). As such, no support will be offered for this browser. If Internet Explorer is required for specific functionality, please use Edge in Internet Explorer compatibility mode."
Send that to whoever asked about IE.
well, it's very limited potential for damage and security risk I imagine, it's just a browser control in a desktop application that runs a web app we make
but yes, the plan is
to use Edge instead, since that'll be supported in .NET now anyway, so guess that means Chromium
I'm well aware lol, and so are everyone else
may god have mercy on my code reviewers
Yikes
do it on friday
But why
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
Oh hell yea I wish we used Vue
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.
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
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
Or even semicolons, c won't tell u sometimes
Just don’t forget them 
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.
I never forget semicolons or brackets ever 
This is probably a pretty good explanation for why, yeah
Sometimes I feel like C programmers are a cult.
Also don’t make 3000 lines long classes, because surely it’ll tell you which file/class the error is in
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.
Not allowed to use rust in my work 🥴
Yeah gotta use what work uses.
My last employer was using a shitty technology and refused to switch so I left.
I asked once apparently llvm is a no no for embedded safety stuff
Pretty much why I stopped developing professionally, can’t stand being stuck with old tech
Embedded systems will the be the place where C is still king.
Yeeuh
Yeah but if they pay enough to make up for it I don't care.
Whaddya do professionally imsted
I'd use their shitty technology stack if they paid me $500k a year to do it.
500!
Nobody could ever pay me enough to not care honestly
you know how many cats I can stupport on $500k?
Unless they could pay me in time as well as money, but nobody can give back time
I'm a full stack developer at the moment.
I’d work couple years and retire to some shit paid job that’s not so dreadful then

