#development

1 messages Β· Page 78 of 1

plush valley
#

foobar2k
Dayum what a throwback

red mulch
#

yeah, thing is, there's so much variation, but low-mid 100s would probably be about normal

pliant siren
#

SE4 = Software Engineer Level 4, SSE = Senior Software Engineer.

#

I was hoping for data a bit more granular than that πŸ˜›
I ain't gettin out of bed for $150k ;p

plush valley
pliant siren
#

AUD base? (ie, ex-super?)

plush valley
#

5% Guaranteed Increase per year of Salary, Full package of Insurance, Vacation and Retirement

#

Looks like they match Retirement Plans up to 4%

pliant siren
#

That sounds like very American terminology...

plush valley
#

$234,332.80 AUD

pliant siren
#

We have a round of redundancies coming in 10 days time... if my position gets listed I am thinking I won't fight it, take the payout and use it as an opportunity to move on.

plush valley
#

this is the time to probe around then

pliant siren
#

Yeah I kinda doubt Atlassian are paying 234k in Aus for Senior roles - but in SanFran I'd believe it.

plush valley
#

Yeah, Im looking at their Aussie Payouts rn

#

And tbqh, they pretty oof

pliant siren
#

They offered me 88k for the same role in Sydney when I worked at carsales on 78k in Melbourne back like... oof, 15 years ago?

#

For an SE4 position.

plush valley
#

153K 😐

#

God what a damn scam

pliant siren
#

That sounds about the figure I was expecting yeah.

#

Assuming SE4 in Sydney.

plush valley
#

Bingo

pliant siren
#

So probably like 138-140k for the same role in Melbourne.

plush valley
#

136

#

My insider friend gotta go walk dog and take care of kids now So I cant get any more #'s

#

Hopefully that helps

pliant siren
#

yeah, kinda - figures are sorta what I expected. I'm dealing with them on some purchasing/migration stuff and the guys I've been talking to have been suggesting they'd help get my foot in the door if I want to jump ship.

#

I'm in education though so it's like... a job you don't give up if you don't have to. But cos I'm young the opportunity to move money out of UniSuper on defined benefit is also like "holy crap take it take it!" πŸ˜„

gray glacier
#

hey everyone, is there a php/javascript guru in town?

kindred iris
#

hi

#

i code too. but nothing complicated.

#

the Code that i have is Just about 466 lines big.

#

Just something basic

#

can i show it in here?

#

i can make a Version that doesn't include the Emal adress and the link for updates.

kindred iris
#

yeah...

#

well, i made a version that Has no links or mail adresses, can i show it in here then?

stoic lantern
#

I'm not interested in anything realtime, nor high level. just Vulkan. I want to make a RISC-V proof Web Engine. and you know, JavaScript has no chance unless it's latched to Web Assembly with dynamic type resolution inside Rust-like HLVM (LLVM just high). or I'm wrong and webassembly is not that and just an extended HTML is needed (XML) for dynamical programs

kindred iris
#

well, it is Python coded...

stoic lantern
#

you all should invest in RISC-V, at least non-gpu accelerated 12 core ARM CPU's. as RDNA due to price is a bait. we don't deal with gpu's, we make The Ultra RISC APU (AcceleratingTheUltraRISCProcessor == ATURP)

storm cedar
#

ooh, i see development. What kind of development is discussed here? Overall programming stuff or something specific?

white marsh
#

I hate git stash
why does it also pull your staged changes into it so when you switch branch back and forth every staged change is lost

#

Is there an alternative command?

storm cedar
#

huh? git stash should just save all of your uncommited changes

white marsh
#

Yeah, but I wanted to leave staged(added) file to the branch without commit them

#

Which git stash cannot do I think
or I'm dumb

storm cedar
#

afaik stash usually leaves the stash on top of that branch (or maybe thats just how gui sw displays it?)

#

but you can still pop it anytime on any branch

white marsh
#

stash pulls in everything
Unless I put in -k iirc

#

But it's useless anyway
bc you can't switch branch if you have added files not commited
I think it's a design flaw UX wise 😩

storm cedar
#

if you work with git daily i suggest you use a good ui client. For windows theres a free one called SourceTree, but tbh atm I would never go back from using Gitkraken (and it has a really good free tier)

white marsh
#

attemping to read 10 pages of explanation on why git cannot let you switch branch if there's uncommited file
https://stackoverflow.com/questions/22053757/checkout-another-branch-when-there-are-uncommitted-changes-on-the-current-branch

#

recommendation: just commit, avoid git stash

#

Goes back to topic on why I hate git stash so much 😩

storm cedar
#

ive been using git for almost 10 years now, i cant see your problem really πŸ˜…

#

you have uncommited changed and need to put em on a different branch? Stash, checkout, pop

#

i mean, you can even have multiple different stashes if you name them

white marsh
#

I've been start learning git for 6 months
It's been tolerable I guess, certainly better than zip + copy-pasting whole project
I use vscode's own git tool
So I still need to understand the command line options

#

I feel the hardest part is untangle your fucked up repo after you typed the wrong command

brittle flume
#

i know pretty ok amount of java, i learned swing and javaFX, and pretty much complete basics, do you guys think i should stick to it or move to c++, cause i do wana get around to c++ sooner or later, what do you guys think?

white marsh
#

Also, no package(module) support yet, but it's planned in the future C++ version

#

Thirdly, unlike Java which is compile to JVM bycode, C/C++ is compiled to native code, which means designing a plug-in system for your app (thru dynamic library) is gonna be extra painful, that's part of why there's a lot more Java IDEs projects exist than C++'s even though it maybe slower than C++'s native code

#

Also need to start pay attention to memory management
That's the biggest differences I can think rn

cloud knot
pliant siren
#

yes, git is a massive step backwards from subversion... or mercurial 😦

#

Things git provides which SVN didn't: Distributed checkouts. Everything else: Kill me.

hollow basalt
#

never tried SVN, but tbf I'd rather not have merge conflicts because of how distribute git is designed

#

though it helps so much for most situation

cloud knot
#

i hated SVN branch implementation. plus the amount of crashing when checking out, certain client versions and server versions hated each other very much

hollow basalt
#

I haven't tried SVN, but heard takes so much time when first time getting versus git clone

#

dunno how far off that is

cloud knot
#

actually, that is not true

#

git clone makes copy of all history of the whole repository. svn only checks out the specific subtree

#

so if you got huge binary files anywhere in the GIT repository, checkout can take forever

#

if the binary files are not at that tree branch, SVN should take much less time

storm cedar
pliant siren
hollow basalt
pliant siren
#

svn can have performance issues with massive projects that have crazy number of changes to files over their life... that's rare.

hollow basalt
#

cause some of the articles I read say SVN is slow but their example is Linux

#

must be a "non-biased" example /s

pliant siren
#

svn was around back in the days where linux still was slow. When you wouldn't dream of using linux for any serious server - when it had fd limits such that it fell over with .. what was it, 256fds or something?

#

FreeBSD still had a place.

grizzled steeple
#

We used to have an SVN repo at work for the main software project and it was hella slow. The repo dated back to 2005. We have since switched to a Git for the project, and overtook all the old SVN Commits into the Git Repo. Since then the committing and checking out the repo has gotten much speedier.
Safe to say, for projects that keep being updated and changed over years, Git is performance wise the much better option

hollow basalt
#

but trying to find SVN advantages really

cloud knot
pliant siren
#

Due to the age and take-up of git, even if it may have technical merits it's probably not advisable to start anything new on Subverion. It's very much a legacy product these days.

cloud knot
red mulch
#

eyyyyyyyyyyyyyyyy

#

I'm a genius

red mulch
#

chrome doesn't implement media seeking, but If I can match a window with the name same as the media, I can send an arrow key to the window, effectively doing the same thing!

#

https://www.youtube.com/watch?v=1MkrNVic7pw lol I don't understand why he didn't use a compound bow to stop him punching himself in the face

You should work at Formlabs. Apply here: http://bit.ly/formlabs-jobs
90% of this project was made on the Fuse 1: http://bit.ly/fuse-1-printer
Support these projects on Patreon: http://patreon.com/stuffmadehere
Get optitrack cameras: http://optitrack.com
Thanks to the folks at Lifetime Archery for the use of their range: http://lifetimearchery.co...

β–Ά Play video
#

ah, never mind, he did πŸ™‚

glad glen
#

Anyone know how I could simplify this:

def updateTriviaScores(self, ctx, correctOption, guess):
    try:
        orgUser = list(self.cursor.execute(f"SELECT * FROM triviaScores WHERE guildID == {ctx.guild.id} and userID == {ctx.author.id}"))[0]
    except IndexError:
        # User not in database
        orgUser = (ctx.guild.id, ctx.author.id, 0, 0, 0, 0)
        self.cursor.execute(f"INSERT INTO triviaScores values{orgUser}")
    orgUser = list(orgUser)
    if guess is None:
        # No answer
        orgUser[2] -= 2
        orgUser[4] += 2
    else:
        try:
            guessUser = list(self.cursor.execute(f"SELECT * FROM triviaScores WHERE guildID == {ctx.guild.id} and userID == {guess[1].id}"))[0]
        except IndexError:
            # User not in database
            guessUser = (ctx.guild.id, guess[1].id, 0, 0, 0, 0)
            self.cursor.execute(f"INSERT INTO triviaScores values{guessUser}")
        guessUser = list(guessUser)
        originalAuthor = ctx.author.id
        guessAuthor = guess[1].id
        try:
            if self.triviaReactions[str(guess[0])] == correctOption:
                # Question correct
                if originalAuthor == guessAuthor:
                    # No steal
                    orgUser[2] += 2
                    orgUser[3] += 2
                else:
                    # Steal
                    orgUser[2] += 1
                    orgUser[3] += 1
                    guessUser[2] += 1
                    guessUser[3] += 1
            else:
                # Question incorrect
                if originalAuthor == guessAuthor:
                    # No steal
                    orgUser[2] -= 2
                    orgUser[4] += 2
                else:
                    # Steal
                    orgUser[2] -= 1
                    orgUser[4] += 1
                    guessUser[2] -= 1
                    guessUser[4] += 1
        except KeyError:
            # Unknown emoji
            if originalAuthor == guessAuthor:
                # No steal
                orgUser[2] -= 2
                orgUser[4] += 2
            else:
                # Steal
                orgUser[2] -= 1
                orgUser[4] += 1
                guessUser[2] -= 1
                guessUser[4] += 1
        self.cursor.execute(f"UPDATE triviaScores SET score = {guessUser[2]}, pointsGained = {guessUser[3]}, pointsLost = {guessUser[4]} WHERE guildID == {ctx.guild.id} AND userID == {guessAuthor}")
    self.cursor.execute(f"UPDATE triviaScores SET score = {orgUser[2]}, pointsGained = {orgUser[3]}, pointsLost = {orgUser[4]} WHERE guildID == {ctx.guild.id} AND userID == {ctx.author.id}")
    # Update ranks
    self.updateRanks(ctx.guild.id)
red mulch
#

adjustUsers(x,y,z,)

#

it would also make it make a LOT more sense. Why are you using indexes instead of names?

#

also you check originalAuthor == guessAuthor in three different places - that seems more like it should be its own codepath?

#

or you define users to modify based on if the guess author is the original author

#

also instead of a try/except for KeyError, you could check the key first.

#

why is points gained and lost a seperate field?

#

why wouldn't it be pointschanged and then plus or minus

#

yeah, I dn't understand why points gained is additive. oh - I guess that's so you can know what the makeup of the score is

#
    # Correct.
        points = 2
else
        points = -2

if originalAuthor != guessAuthor:
    # SQL to update the original author
    points =/ 2
# sql to update guess author.```
red mulch
#

for the gain/loss use max(points,0) and min(points,0)

red mulch
#

actually, even better - make a function useraddPoints()

strong star
#

code

full socket
#

Do you guys think its necessary to go for a Bachelors degree after I get my Associates if I want to work in web development?

#

Sorry if it's an odd question

#

Currently majoring in both graphic design and web development. I'm not sure if going further for my Bachelors is worth it or not and I was just curious if anyone here had an answer for that

hollow basalt
storm cedar
# full socket Do you guys think its necessary to go for a Bachelors degree after I get my Asso...

well, it really depends where you want to work. A lot of places Ive seen require a bachelors in a related field, although that is often on paper only. Good quality developers that have experience are super scarce and companies will compete for them. Since they are so few inbetween, usually youre going to be one of few people to apply for a position, so even if you dont meet the qualification on paper (eg. degree) they are more than likely not going to throw your resume into the trash right away

#

back to first point though: startups and tech companies usually dont care about formal education much (unless for very specialized stuff), but corporations where hr needs to tick off boxes do (though it is getting better i think)

#

second question is whether you can benefit from further education and how far you want to go. I think having a good theoretical basis is pretty important to understand the underlying stuff and whatnot, but having an understanding of traveling salesman algorithms isnt really going to help you center a div with css better

#

also if youre in the US, then I guess cost of additional education will be a major part in the decision

full socket
storm cedar
#

I havent really come on a case where formal education would play a major role

#

It mostly just helps you get into more doors, but if youre good enough theyll try to get you into their door

wintry glacier
#

Hello, im working on a websocket client and server(Text based rpg) in java using:
libraries:

1.) http://tootallnate.github.io/Java-WebSocket 
2.) https://github.com/auth0/java-jwt
3.) https://github.com/auth0/jwks-rsa-java
4.) hibernate
5.) https://github.com/phxql/argon2-jvm

im just kinda making something random to learn about websockets and authentications and whatnot. but its supposed to be a text based rpg. Users will enter commands that will create and send requests to the server. Right now i have login and register for example.

im using hibernate and mysql and right now im at the part where i need to hash the password when i put it in the database and hash the password sent to me from the client to compare and authenticate. Then i want to issue a JWT.

im using json to send messages rn and they should be required to login before they can do anything else, so my friend suggested that i should not let them connect to the websocket server until they are authenticated and use an https server to authenticate them and issue the JWT etc. Then connect them to the web socket but im not sure if this is neccessary / worth the extra work (also not sure how i would employ this idea even after thinking about it).

So my questions are:

  1. is it ok to use the websocket to authenticate users?
  2. also for game commands (look, goto, map, bag, etc ) should they be handled on the client or should i make all commands be forwarded to the server after they authenticate and have the server decide from there so that i dont have to release a new client every time i change or add new commands?
upper viper
#

hey all i am making a new version for my calculator featuring text file saving and temporary storage text files to quickly edit the second to latest step

lament cave
# wintry glacier Hello, im working on a websocket client and server(Text based rpg) in java using...

for websocket authentication, it should be fine - what I do for ws auth is I have the client send a request to an API which returns a unique one time use token which it sends to the websocket to authenticate
for the game commands, it depends on the complexity of what you need to do but for most cases using the server should be fine, each request shouldn’t take more than a few milliseconds execution time, if you need graphics you can just send data to the client and have the client render stuff

wintry glacier
storm cedar
# wintry glacier Hello, im working on a websocket client and server(Text based rpg) in java using...

id personally opt for a regular endpoint for auth and then use the jwt for further communication on the websocket, but there is nothing wrong with directly authenticating on the websocket (you can and should use secure (over tls) websockets - wss)
As for the commands, since youre already aiming for realtime backandforth communications via websockets, id go ahead and just send each command and let the server handle all the logic of what it does

#

i mean, websockets still use a http(s) handshake to start communication, so you could do the auth there

storm cedar
#

btw, Ive been working for years on a better YT subscriptions feed via browser plugin, mostly the ability to not show watched stuff and mark stuff as watched (or dismiss it from the feed) in order to better keep track of stuff i want to watch and havent yet. Specially helpful to keep track amidst a bunch of subscriptions that put out stuff every day and so. Sadly, I havent had any time to work on it in the past year and there and there are some bugs that break part of the functionality. If anyone is interested and knows JS (vanilla), Id be very grateful for help πŸ™‚ https://github.com/OsaSoft/youtube-better-subscriptions

cloud thunder
#

Anyone codes in Python?

pliant siren
#

I avoid it as much as possible.

storm cedar
cloud thunder
#

I'm a beginner

spring pond
#

i do a lot of python dev, i can help

pliant siren
#

once upon a time VB was considered by any serious developer to be a joke language, even though it had a huge share of usage across the market. Today, it's Python πŸ˜„

#

It abstracts away too much of the fundamentals, so people can be just dangerous enough with it without really knowing WTF they're doing. Unfortunately, we're kinda forced to use it if you want to do any kind of AI/ML work, because that's what most of the libraries expect.

spring pond
#

im personally not immediately repulsed by python but i do agree its definitely not my #1 languge (that would probably go to swift) but it does have really good library support

pliant siren
#

I've spent nearly 20 years working within the Java ecosystem so while Python does have a library to draw on, I've been spoiled and expect so much more than Python can provide.

storm cedar
#

python is great for specific applications yeah

spring pond
#

i commend you for working for 20 years with java, i could probably barely last a year on that language lol

storm cedar
#

most of what i used python for in school was AI/ML and algorithmization, combinatorial optimization tasks (these were only doable in good time in python thanks to numpy though, otherwise the performance is horrendous), etc

spring pond
#

the only big project ive been using python for is a django server, otherwise i just use it for scripting when i dont want to deal with a build system

#

(which is all of the time for small projects lol)

midnight wind
#

Js/ts for all web dev here

spring pond
#

i was considering it but i was unable to find an orm i liked more than django's

#

tbh i probably would've preferred ts for my project but oh well

storm cedar
#

i love groovy, but after using it for a large production grade application Ive come to the conclusion that dynamic languages arent the best for this kind of stuff, unless they are VERY rigorously covered with automated tests

#

and python has the added disadvantage of being interpreted as well

spring pond
#

i would use swift if i could but pretty much no one has decent http server libraries for it

#

also the toolchain would require me to deal with cmake which isnt fun

#

the whole thing of "swift is an apple-only lang" seems to be pretty prevalent

storm cedar
#

one of my friends was really into swift, but then they decided to completely rework and restructuralize it and break all backward compatibility a few years back and that pissed him off enough to decide to move away from it

pliant siren
#

I just wish JavaScript/Ε₯ypescript didn't have such a horrible thread model (or lack of) - promises are such a horrible way of dealing with things.

midnight wind
#

nah

pliant siren
#

And c#/.Net is the only eco that comes close to java when it comes to test frameworks and how seamless testing is just baked in to it.

midnight wind
#

promises aint bad

#

imo, I like them

pliant siren
#

I'd rather just extend thread/runnable, but that's just me.

storm cedar
#

thing is, JS was always singlethread and afaik it pretty much still is (maybe not node?)

spring pond
storm cedar
midnight wind
#

yeah

unreal oar
#

hey, just wondering, can i control the color of a non adressable led strip with an arduino connected to the data wires and then connect the arduino to my pc and control it via razer chroma ?

midnight wind
unreal oar
#

like, open a software, change color or mode, close software

midnight wind
#

Yeah that's possible

sonic cradle
#

where can i find snippets of codes?

hollow basalt
#

where the projects are stored

spring pond
cloud knot
cloud knot
cloud knot
cloud knot
# wintry glacier Thanks ill take a look

i mean, by going by an OAuth provider, you delegate authorization & authentication to an external system; the external system will give out tokens (JWT) you can validate, get user identifiers from etc.

#

if needed, you can then tie your user data to the identifier from external system and not have to figure out all the auth & auth tech from scratch; leave it to the guys who do it as their primary job πŸ™‚

wintry glacier
#

ok yea i mean that makes sense, i didnt know if it was worth it. Im running out of options and patience tho xD so imma look at it

#

thanks again

cloud knot
#

as i said, you got option to use external systems - Google, Facebook, Twitter etc, they all provide authentication API. You then relegate authentication to an external entity, and you only tie your 'user data' to the external identifier you get in the authentication token.

Keycloak is one of the self-hosted authentication providers, if you do not like your users needing a google/facebook/whatever account to sign in.

#

but to be fair, Keycloak is one of the most complex options, there are probably some simpler, less complex self-hosted OAuth authentication systems out there

wintry glacier
#

ok

pliant siren
#

I implemented the google auth library in to an app last weekend, and have never been more confused by examples floating around the web of old/deprecated versions of a library πŸ˜„

nocturne galleon
cloud knot
cloud knot
loud kelp
#

I've shared this here before but I can't contain how excited I am about it

azure mica
#

Java is slowly dying - good.

#

Python is slowly rising - not good.

quaint kettle
#

Swift 😎

cloud knot
#

as?, as!, unsafelyUnwrapped - yeah, still stupid as hell

obtuse night
granite crest
#

gamemaker language all da way

cloud knot
#

well, objective c is a horrible mess. Swift gets rid of some of that mess, but still has to interact with a type safe environment, and it took a pretty complicated approach.

azure mica
#

Like god damn Python for example.

#

Dumb language for uneducated programmers.

novel thorn
#

would this be an appropriate place to ask a basic web development question?

spring pond
#

yes

spring pond
# azure mica Dumb language for uneducated programmers.

ive never really understood the extreme vitriol for python, sure its not the best language but its not satan. it seems like a lot of arguments come down to "i want my semicolons and braces" or "i want type safety" and while the second argument can hold some water in terms of testing and bug prevalence, the first argument is completely subjective

soft fern
#

I don't have major hate for python but the spacing being the primary thing that defines a "block" sure did rub me the wrong way coming from a c/c++/java and some js background it feels pretty ripe for causing errors, also I am generally a fan of explicit types

pliant siren
#

in a world where for well over a decade VB was sneered at and considered terrible for so many reasons, it's difficult to understand how Python is taken seriously πŸ˜„

#

On a different note, I got confirmation today that my position at work is being made redundant. There may be other roles I can apply for instead, but... meh

red mulch
#

Give me python every time.

pliant siren
#

That's incredible πŸ˜„

pliant siren
red mulch
#

What is your "native" language

pliant siren
#

defacto Java, but if I had my way I'd use C for most things. Available Java tooling and library support is leagues ahead though.

#

If I want to whip up something quick and dirty these days it'll be php or node, just because of the low overhead of getting small things going.

red mulch
#

Python does exactly what it was designed to do

storm cedar
#

yeah, python is great for quick scripting and AI/ML. But if you want to make a robust production ready enterprise grade application, youre gonna have a bad time

pliant siren
#

Putting aside that people too often associate PHP with it being used in a httpd and that being where a lot of the problems come from - there's not a great deal of reasons to use Python over PHP in a lot of cases. Other than "it's more popular" (in 2021).

storm cedar
#

each language has its strong and weak points and you should choose based on what you need, not any "allegiance"

pliant siren
#

A lot of time I wish PHP were strongly typed and that's about it's only major downside.

#

ultimately I never choose a language based on the merits of the language itself. You're choosing based on what the intent of the application/tool you're writing is, where it's going to run, and, to some degree, what tools are available in that ecosystem to best test and develop it.

#

I'm not about to write anything web-based in C. If I know absolutely that an app is only going to be run as a Windows GUI tool, I'd be hard-pressed to pick anything other than C# unless you want it to have a web front-end.

red mulch
#

The problem with PHP is existing codebases

#

Python at least, the existing codebases are more or less ok. Because there is a way to do python

#

PHP lots of people have done horrifically

#

Similar to PERL. I have written a lot of perl. Most of it decent. But there's a lot of garbage out therw

pliant siren
#

PHP also has a large problem in that it's reputation was tainted by poor frameworks or certain security-swiss-cheese CMSes.

#

Those problems had nothing to do with PHP itself... but people associated them with 'wordpress' = 'php' and so on.

storm cedar
#

php has a lot of the same issues that JS has. Its very often the first language someone learns and it lets you get away with doing a lot of stuff, which leads to bad practices

pliant siren
#

Yeah. That's also true of Python. I think the resources available for Javascript these days makes that less prevalent.

storm cedar
#

yeah and frameworks like react which demand a bit stricter structures and often encourage to use TS help a lot too id say

pliant siren
#

I think the major difference though is the Python tends to be taught in a supervised environment - eg, university, or big consulting firms - whereas php/javascript are more prevalent in self-taught environments.

storm cedar
#

yep, that definitely plays a role too

pliant siren
#

The former tend to be 'people who got in to the industry because they liked the attractive salary/career options' versus 'people who are passionate about tinkering and tech'.

#

It's kinda the "I'm a [insert job here] but don't want to be a developer, and here's a tool that lets me do programming because this other stuff needs it"

storm cedar
#

yeah. Python is great for scripting and playing around. The fact that you can run it even on stuff like arduinos is great for tinkerers

hollow basalt
#

I like C/C++, but definitely not using it for quick and dirty work. python it is

azure mica
#

C and C++ are hell but it's a necessary one. They are low-level so they kind of have to be hell - tho Rust somewhat disproves this.

Java is also hell but at least it's an organised one, OO is probably the worst thing that ever happened to the field of computer science. But not gonna lie I low key like Java.

Python is just plain bad because it's used for the wrong things. Everyone is starting to shove it where it doesn't belong. That's why I said it's a "Dumb language for uneducated programmers" - not because it has no ; and { } but because of how it's used. If this continues there will be a day when we regret this trend.

Node.js and JS is pretty great but the framework hell and somewhat limited applications of the language can be major pains.

C# is too dependent on .net and has some of the same problems as Java.

Rust is pretty great, the only drawback is that it's still quite young and there are not that many packages/libraries available for it (when compared to Java for example).

Matlab is dead, let it stay dead.

Prolog never again. Nope. No. Nein.

Bash is outdated and overall bad but it was never meant for anything more than it's used for.

Ahk a scripting language for non-programmers, at least it's not used for everything like python is.

cloud knot
# spring pond ive never really understood the extreme vitriol for python, sure its not the bes...

the hate is not about the lack of braces. The hate is about how intendation defines nesting of code levels, and how easy it is to screw something up that way. It is the same thing as when somebody uses if statement without braces in any C derived language, then adds a 2nd statment and forgets that it is not withing braces. Python whole design has this error potential built in as default, on language level.

cloud knot
#

(cause majority of PERL stuff i seen was about regexes all the time, dammit πŸ˜„ )

keen sedge
#

i got the impression matlab was popular for math calculations

storm cedar
#

Matlab is quite popular for academia

#

And i hate it with a passion

midnight wind
urban flint
#

An open source project that I work on is in pretty dire need of more contributors, it's called Autokey and is a python based desktop automation tool for Linux (X11). There are a number of issues open that are labeled as "easy-fix" if anyone is looking to get their feet wet contributing to open source.

I recently started a new job and believe that my open source contributions went a long way towards it. Looks great on a resume!
https://github.com/autokey/autokey

#

Ping me/dm if you need some help getting started on github or with the codebase, feel free to open a pr with a fix if you can!

meager root
#

https://youtu.be/JK3eTGkX6qY
Regarding this LTT video that was released today, would anyone be interested in developing an application with this tech together?

Visit https://www.squarespace.com/LTT and use offer code LTT for 10% off

Use code LINUS and get 25% off GlassWire at https://lmg.gg/glasswire

By using an Atomic Clock the clocks between different computers can be synced to within a dozen nanoseconds, and with that performance can sky rocket.

Check out the Open Compute Project: https://www.ope...

β–Ά Play video
pliant siren
#

I'm just catching up watching that video now. So the first interesting thing where Linus talks about syncing to GPS - yeah, don't do that. GPS time is not accurate enough for a lot of applications due to, well... clouds, basically.

#

one of the things I wish they taught in university was 1pps synchronisation - you basically have a pulse which at the leading edge of every seconds goes to a certain amplitude, then reduces to 0 linear over the next second, before it them spikes back to the max amplitude. That's basically how GPS works for you to determine your position - you compare the difference in time between when you received that signal from different satellites.

meager root
storm cedar
#

he also said that most pcs already have the ability to use this, as long as you add a pcie card with an atomic clock. Which costs a lot of $$$ for it to be usable in consumer applications at the moment

#

the sw is there, its the hw thats missing

pliant siren
# meager root Well Linus said that it's used for accurately timed networking and that could be...

Yeah. You use GPS for the initial sync, but then you never sync from GPS again. It gives you that starting ref point - you use the card to keep that sync after getting that initial sync.

It's the same as when we sync time lines for motorsport timing - you do an initial sync, then either the cards themselves have highly accurate clocks with little drift OR you run a line that has your clock pulse for sync on it and the devices sync to that pulse. SMPTE works in a similar way for audio and frame matching.

#

You can test this yourself if you have a device that allows you to output a pulse based on GPS sync and you have some kind of HPET device with a precision clock - output the a pulse every second from your GPS device, and compare it to where it lands on a timeline against your HPET - you'll see some drift, usually in the microseconds range.

shy helm
# pliant siren one of the things I wish they taught in university was 1pps synchronisation - yo...

White Rabbit is the name of a collaborative project including CERN, GSI Helmholtz Centre for Heavy Ion Research and other partners from universities and industry to develop a fully deterministic Ethernet-based network for general purpose data transfer and sub-nanosecond accuracy time transfer. Its initial use was as a timing distribution network...

sick fossil
#

Hey folks, I got a couple of questions for my US based people. May be a bit long please bear with me!

I got a little bit of problem deciding between "computer science" vs "computer science & engineering". There's a lot of overlap between them of course but there are few differences but they're substantial.

For example, Comp Sci and Eng. requires 3 physics courses like full on. (Physics 101, 102, 103) which are almost completely useless as far as I know in everyday development except maybe very small common sense things needed for game engines I suppose, or maybe you its needed for developing simulation software which is fair.

On the other hand Comp Sci. path (no Engineering at the end) has no physics required, but has things like computer architecture which is processor and assembly stuff.

Whats even more braindead is that for some reason different campuses of the same university have lots of things unique for that campus' requirements which makes it impossible to cover all your bases for all your potential universities.

My best bet is to ask you guys who are actually in the field and have careers since im sure counselors do next to nothing. I'll paste links to uni requirements of each major in case you need to read

Comp Sci. & Eng. UC Irvine -> https://assist.org/transfer/report/24474802
Comp Sci. UC Irvine -> https://assist.org/transfer/report/24474915

pliant siren
#

hah, incidentally I just got a FB ad for the new Microchip CSAC (CSAC-SA65) because I deal with CSACs and HPETs a lot - USD5482 unit price for 1-9 units πŸ˜„

#

@sick fossil You need to look at whether a degree when called 'Software Engineering' is a recognised IEEE engineering degree or not. Mine was - the major difference between the BSE and BSci(CSSE) was 4 units of engineering maths in the BSE but only 2 units of general maths in the BSci degree.

#

Both courses were effectively similar in terms of the number of electives and third-year subjects, but the BSE was a 4-year degree with far more core/level-1 engineering subjects compared to the BSc which was a 3-year degree with the option for an additional Honors fourth year by research or coursework.

sick fossil
#

so the degree from the uni may not be recognized by IEEE you're saying? If yes, where can I check for and how do I check that? Sorry if the question is vague idk im at the point that I have pretty much all the overlaps covered up and need to decide now

pliant siren
#

The course outline should/would clearly specify if it was, surely? That's a pretty big selling point that you're not going to pass up, if a degree is recognised by IEEE or provides a professional accreditation to act in a protected profession.

#

Most universities have a subject/course handbook or some equivalent available online.

pliant mason
#

oh, tysm @humble hemlock and @pliant siren

pliant siren
#

?

humble hemlock
#

What did I do? πŸ€”

pliant siren
#

ikr?

mystic birch
#

hey can u guys tell me how much maths is needed for machine learning

hollow basalt
#

more and quick mafs

shy shuttle
#

Can anyone give me an idea of ​​how I could learn C / C ++ ?

#

Because I'm a little tired of HTML, CSS and JS

hollow basalt
spring pond
white forge
chilly gull
#

this maybe an odd question has anyone used Altium Designer before?

rancid nimbus
#

No

#

I have used KiCAD before. Not that I know how to properly design PCB's.

wild osprey
#

How did they make ? with reaction, we get access to full server but the channels shows its not limited for roles how ?

wild osprey
hollow basalt
cloud knot
honest sleet
#

I'm trying out a "chat plays [a game]" stream on twitch, I'm glad I got it working finally!

cloud knot
wicked aurora
#

gimme 3.0.css

cloud knot
wicked aurora
#

I'd legit like to meet the people who made these and ask WHY

cloud knot
#

TooMuchTime(TM)

wicked aurora
#

Hey everyone, it seems that people are getting a bit cyber-paranoid again because of Quarantine 2.0 starting to gain momentum. I'm getting tired of random people constantly sending me these privacy articles from h0R$3sh!t tech news websites.

I'm planning to make a series of YouTube videos which simplify the basics of online user privacy and self-protection for a mass audience. After many hours of searching, I failed to find such content. Every channel seems to side with either ignorance or severe paranoia. And those who don't just end up giving people relatively bad recommendations, like "iNsTAL mAh PLuGinZ". There is no middle ground unfortunately.

If anyone's interested in collaborating or giving me ideas on topics to cover I'd be glad to consider them. Figured LTT discord members might be a bit more familiar with YouTube culture than most Redditors I've met. Thanks πŸ™‚

uneven meadow
#

yo so i need help with something:

in this video (unrelated to my question btw), taran mentions there being an F24 key in his code https://www.youtube.com/watch?v=Arn8ExQ2Gjg

so, to be clear, there are other keys past F12?? if so, how do you access them?

i want to bind F13, F14, F15 etc to my mouse buttons so i dont have to bind them to keys on my keyboard instead. but how the hell do you even access those keys?

Most keyboards have few to no macro keys. But what if you want a LOT of macro keys? Like, 87 of them? Well, you can, with this keyboard mod!

TunnelBear message: TunnelBear is the easy-to-use VPN app for mobile and desktop. Visit http://tunnelbear.com/LTT to try it free and save 10% when you sign up for unlimited TunnelBear data.

Intel link: ht...

β–Ά Play video
wicked aurora
#
#

What's your mouse model? Does it have something similar to Synapse?

#

I think this may even be possible with AutoHotKey alone, haven't used it before though.

uneven meadow
#

so by using some obscure key combination (eg Ctrl + Alt + Shift + 1 or something) you can have AHK listen for that and then translate it back into a function key?

wicked aurora
red mulch
#

OMFG why are people.

#

"now set the AWS API key information" NO. BAD GUIDE. BAD PERSON. It's an ec2 instance. attach a role to the instance and give permission to the role. Do not generate api keys. Do not put them in your code. Do not pass go. Do not collect $200.

uneven meadow
urban flint
#

anyone know of a way to get around Content Security Policy? I want to write an browser extension/app for a website to add additional features and change some of the colors used by the website (colorblind)

wicked aurora
nocturne galleon
#

I just coded a discord bot that only said "u suck" every time someone said "insult me," so feeling proud and cool, I came over yonder to brag about my success, when I see people talking about stuff I don't even understand

urban flint
#

Everyone starts somewhere! That's a pretty funny bot idea

urban flint
#

Will the fabric of space-time be split if I plug this highly-accurate Rubidium-oscillator-backed Time card into the Raspberry Pi?

Probably not, but we'll test the driver on the Pi, probably recompile a kernel or two, and learn about Linux PTP networking and GNSS-based timekeeping along the way!

Mentioned in this video (some links are affiliate...

β–Ά Play video
#

Another video on the clock card ltt recently covered

storm cedar
urban flint
#

I tried both tampermonkey scripting and making an extension but nothing I do works

#

some of the error messages led me to believe its something about Content Security Policy, I assume that since robinhood is strictly financial they probably have a CSP that blocks external code from running? Idk not an expert

real cargo
#

i was wondering if anyone could help me with what BOT LMG WARSHIP is and how i could create one like it for my server?

spring pond
#

all it is is a general moderation and statistics bot similar to bots such as mee6 or dyno, i created my own mod bot with the functions i wanted in a few hours

storm cedar
#

Ah yes. Seems that websites can specify in their headers stricter csp policies https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Content_Security_Policy

Extensions developed with WebExtension APIs have a Content Security Policy (CSP) applied to them by default. This restricts the sources from which they can load and <object> resources, and disallows potentially unsafe practices such as the use of eval().

This article explains briefly what a CSP is, what the default policy is and what it means ...

spring pond
real cargo
spring pond
#

you could totally do that but it will just be a lot of work

real cargo
#

not sure it worth it then

spring pond
#

id say just make a bot with the functions that no other bot that you can easily find does

#

thats what i did for myself

#

i used discord.py but id recommend discord.js for a more fluid api

midnight wind
midnight wind
#

it's also reccomended to use interactions (slash commands, user apps) rather than looking for prefixes in messages

spring pond
#

yeah i havent updated my bots in at least 6 months, if i were to do so id convert them to ts

#

and use slash commands

midnight wind
#

deno is great for TS

#

native ts

#
import {
    applyOptions,
    DiscordenoMessage,
    NaticoComponents,
  } from "../../deps.ts";
  import { BotCommand } from "../extensions/command.ts";
  import {LaunchLibrary} from "../launchlibrary/launchLibrary.ts"

  @applyOptions({
    name: "nextlaunch",
    description: "Gets Next Launch",
    slash: true
  })
  export default class NextLaunch extends BotCommand {
    async exec(message: DiscordenoMessage) {
      return await message.util.reply({
        embeds: [await LaunchLibrary.nextLaunch()],
      });
    }
  }```
spring pond
#

alright ill look into it

midnight wind
#

that I'm using natico

#

a framework for discordeno

#

what the command does

real cargo
real cargo
#

ok ill see if i can find it thanks

cloud knot
# urban flint some of the error messages led me to believe its something about Content Securit...

yes, CSP limits what sites the code can use specific sources from (so it won't load JS/CSS/frames/images from other than allowed domains); it also defines which backend URLs is the website allowed to talk with via XHR.
Then there is CORS, which is when you do a cross-site request, the browser asks the remote server which origins/HTTP methods/headers are allowed, and then enforces that on browser side.

midnight wind
#

and then there's cogs, which are basically plugins for it

real cargo
haughty shuttle
#

is it possible to write scripts for premiere pro to automate something?

#

for example i want to automate the following process:

split a x minute video into 2 minutes segments and export them individually

#

im fine using other video editors or softwares for this but i thought premiere pro would be the most well supported for scripting due to its widespread use plus its what i use for video editing

hearty zephyr
#

but, after a fuckton of messing round

#

i now have this

visual belfry
#

hello, any web devs here, that could help me find a free and a good, not need to be anything advance site builder?

#

im working for a client that will pay me 100€ and for that price i will not do any manual things outside of drag and drop

lament cave
#

couldn’t the client just drag n drop

#

I’m not sure of any free website builder that gives you more than just a extremely basic template

obtuse night
visual belfry
obtuse night
#

Not sure if it's free, but Elementor?

#

It's a plugin or I might be misunderstanding the question

lament cave
haughty shuttle
lament cave
haughty shuttle
#

ooooooh awesomeeee dude cowgalaxy youre epic

nocturne galleon
#

Whenever i make a new Intellij IDEA project or use someone else's project. Intellij installs a new jdk at path /home/sbeve/.jdk. But i already have a jdk at path /mnt/Silo/DevStuff/.jdk and i always want it to search there for jdks, how do i do that?

obtuse night
#

You can change the JDK location in the IDE settings

nocturne galleon
#

The Apple App Review team is driving me mental. I submitted a build for a new app a week ago, and it's still in review, and the only correspondence from Apple is some generic

"The review for your app is still in progress and requires additional time.

We will provide further status updates as soon as we are able, or we will contact you if we require additional information.

We apologize for the delay."

timber pine
urban comet
#

πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚

last dagger
#

lmaoo

faint vessel
#

πŸ‘

storm cedar
wise jolt
#

oh cool

outer fjord
#

Hey, I have to learn C code for my study, and for an assignment I have to write a code that shows all numbers that are divisible by 9 between 100 and 200 without using an if statement. The focus is to learn how to use the for statement. So could you give me some tips because I'm stuck on the part where I have to divide the numbers by 9 and display them.

storm cedar
#

use mod, which in most languages, including C i believe, is %

#

mod returns the int division remainder

#

ie, 10 % 2 == 0 9 % 3 == 0 7 % 5 == 2

outer fjord
#

"'#include <stdio.h>
#include <math.h>
#pragma warning(disable : 4996)

int main(void) {
int lower, upper, i;
printf("Geef de laagste grens: ");
scanf("%d", &lower);
printf("Geef de bovenste grens: ");
scanf("%d", &upper);
for (i = lower; i <= upper; i++)

return 0;

}

#

So right now this is my code, but this is just for inputting the upper value and lower value. So the mod would come after the for statement right?

midnight wind
#

So just mod i by 9

#

If 0 print i

outer fjord
#

I'm a total noob to C programming so it's all very new to me

midnight wind
#

let me write a quick program to check

ruby folio
#

any suggestion to make html website look better ?

outer fjord
hollow basalt
ruby folio
#

well thx for the suggestion folks

#

my website is still crappy af

hollow basalt
#

just keep it up

midnight wind
#

@outer fjord

#
#include <stdio.h>
#include <math.h>

int main(void){
    int lowerBounds, upperBounds, divideBy;
    printf("Enter lower bounds: ");
    scanf("%d", &lowerBounds);
    printf("Enter upper bounds: ");
    scanf("%d", &upperBounds);
    printf("Enter divsor: ");
    scanf("%d", &divideBy);
    for(int i=lowerBounds; i<= upperBounds; i++){
        int r = i % divideBy;
        if(r == 0){
            printf("%i\n",i);
        }
    }
    return 0;
}```
outer fjord
#

You're my hero, thank you so much!

midnight wind
#

the output presentmonkey@pats-pc:~/Dev/tst$ ./a.out Enter lower bounds: 0 Enter upper bounds: 200 Enter divsor: 9 0 9 18 27 36 45 54 63 72 81 90 99 108 117 126 135 144 153 162 171 180 189 198

ruby folio
hollow basalt
#

@ruby folio check out bootstrap.
should teach you several things, and they have themes

#

though use it for education

#

then try to create your own

ruby folio
#

okay

#

oh

#

wait

hollow basalt
#

i actually checked it out

#

that's why i recommended bootstrap

ruby folio
#

okay

#

nice

#

for some reason my messages got removed...

hollow basalt
#

then after bootstrap. don't take it from me. take it from people that are actually good.

check https://material.io/design

Material Design

Build beautiful, usable products faster. Material Design is an adaptable systemβ€”backed by open-source codeβ€”that helps teams build high quality digital experiences.

midnight wind
#

bulma is also nice

hollow basalt
ruby folio
outer fjord
#

For example with "while" maybe?

hollow basalt
#

uhhh

#

how could you replace an if with a while

midnight wind
#

uhh, you could use the conditional operator

#

which is basically a if

hollow basalt
#

or use a switch

#

troll your professor

outer fjord
#

Lol he has specifically stated that we cant use a decision statement

midnight wind
#

then how tf does he want you to do it

hollow basalt
#

you should create a c++ linked library with "isZero"

outer fjord
#

Can't use C++ also.

midnight wind
#

then c linked library

outer fjord
#

I'll just show him this tomorrow and ask how else I could do it.

hollow basalt
#

hmm

#

implement it in assembly

midnight wind
#

maybe using goto's?

hollow basalt
#

then call the asm within c

hollow basalt
#

unless....

midnight wind
#

he wants a while

#

while still executes the condition

#

@outer fjord ```c
#include <stdio.h>
#include <math.h>

int main(void){
int lowerBounds, upperBounds, divideBy;
printf("Enter lower bounds: ");
scanf("%d", &lowerBounds);
printf("Enter upper bounds: ");
scanf("%d", &upperBounds);
printf("Enter divsor: ");
scanf("%d", &divideBy);
for(int i=lowerBounds; i<= upperBounds; i++){
int r = i % divideBy;
while(r == 0){
printf("%i\n",i);
break;
}
}
return 0;
}```

hollow basalt
#

looks horrible ngl

#

really sounds like a stupid rule

midnight wind
#

yeah

#

no point

outer fjord
#

Yeah, idk why it is.

#

Awsome that works.

hollow basalt
#

wait wait

#

i think I gott it

#

ah nvm

merry bolt
#

can anyone recommend me a good c++ tutorial?

hollow basalt
#

yes, someone can

storm cedar
fickle verge
#

just wondering im creating a website which only uses google sign in How do i store the data associated with that user
do i just use their email?

midnight wind
#

use their id?

#

you shouldn't be storing their email iirc

gusty oak
fickle verge
#

it does?

nocturne galleon
#

Hi, could someone help me understand how can I chmge my email address in gpg keys?

severe bolt
nocturne galleon
severe bolt
nocturne galleon
#

Ok thank you

next flame
#

I usually use IntelliJ IDEA for java but I tried to set up vscode and I can't get it to recognize the installed JDK

#

tried with the bin directory and the java-16 folder, didn't work (settings.json for the whole workspace)

#

java is properly installed

#

If anyone knows how to get this to work I appreciate any tips

cloud knot
#

but that is not java home

#

java home is the folder above that, without the bin/

#

@next flame ^

next flame
cloud knot
#

is there a javac in that folder ?

#

bin/javac i mean

next flame
#

nope, there's:

cloud knot
#

that is JRE, not JDK

next flame
cloud knot
#

update-alternatives --list javac

#

what does this say

next flame
cloud knot
#

so yeah, try to figure out why do you only have JRE and not JDK

#

you are missing the compiler. is this ubuntu ?

next flame
#

btw I have IntelliJ IDEA installed and it works fine, not sure if it's using the same JDK/JRE

cloud knot
#

apt install openjdk-16-jdk

#

run this command (with sudo in front if not running as root)

#

99% IDEA just came with it's own bundled Java

#

once you install openjdk-16-jdk, the update-alternatives command above should give you the same folder for javac, thus vscode should accept it after that (without bin/ at the end)

next flame
#

should I apt-get purge the JRE first?

cloud knot
#

no

#

JDK and JRE coexist

#

(and if not, apt will tell you about it)

cloud knot
#

no problem

red mulch
#

you have to associate it with an actual user on your platform

livid jungle
#

Really cool course if you're interested in learning Linux and some cybersec/infosec for free;

livid jungle
visual belfry
#

hello guys, any ideas how i could make a slider with images and text inside a slider to switch up the iamges and text in html?

#

so carousel more like... that has a text on left and a small image slider on right

lost flume
#

o_ my fav Text channel now xD.. i'm a Discord bot developer.. I code in JavaScript

polar axle
#

why isnt there a VBA indenter online tool that actually works, i cant install any equivalent addins coz work are anal about security
someone mentioned rubberduck's webapp but thats broken too :/

#

and another one strips out pieces of the code when it shouldn't

pliant siren
#

If anyone familiar with kubernetes can tell me reasons why or how to ensure two pods within the same deployment can communicate over a tcp port, lmk. I have two pods of which I can map ports, services can talk to them etc - but the pods appear to be blocked/firewalled from opening a TCP port to oneanother.

pliant siren
#

Found the answer: containers can't do dns lookups on hostnames of other containers even within the same pod - they can only look up service names; all pods share exposed ports on 127.0.0.1 so you connect to 127.0.0.1:port, not container-name:port

nocturne galleon
#

trying to set up the logging for my program, using 4-letter abbreviations (INFO, WARN), what should I do for Error?

#

or maybe I should do 3 letter (INF,WAR,ERR)

pliant siren
#

ERRR πŸ˜„

#

Seriously though, they don't all need to be 4 letters.

nocturne galleon
#

but it looks nice when the logs have the same character length at the start

pliant siren
#

So how do you plan on handling DEBUG, FATAL and TRACE?

nocturne galleon
#

like:

[INFO] starting..
[WARN] debug mode active

etc

#

lol I just have 3 log types

pliant siren
#

For now

nocturne galleon
#

not trying to do it super properly

pliant siren
#

Please tell me you're not trying to reinvent your own logger πŸ˜„

nocturne galleon
#

its fun

pliant siren
#

...

nocturne galleon
#

I just find it easier to stuff print statements into my program, sue me

hollow basalt
#

If 3 characters,

ERR
WRN
OOF

hollow basalt
nocturne galleon
pliant siren
nocturne galleon
#

OOF is a good one tho

pliant siren
#

you know what, now I want 'WOW' as a log level

hollow basalt
#

Use "DED" for fatal errors

nocturne galleon
pliant siren
#

learn.

nocturne galleon
#

how

hollow basalt
#

You could always starr now

hollow basalt
pliant siren
#

what language are you using, and what editor are you using?

nocturne galleon
#

I learnt the bare bones basic concepts of programming to make things somewhat functional and have no idea how to do anything else

hollow basalt
#

Then same thing

#

You could find articles online

nocturne galleon
#

I cant be bothered

#

doesn't have an affect on my programming

#

ie I am not writing anything that will be seen by anyone else, I just write code for little hobby projects

hollow basalt
#

Then do yourself a favor and write something that your future self would understand

#

Besides, if you want to be good at something. Do you practice badly?

nocturne galleon
#

its just that no one else can

hollow basalt
#

😹

nocturne galleon
#

sure he'd never get a job at a construction company but all he's doing is putting up a fence for himself

nocturne galleon
#

hey can anyone help me with html

#

i got problem which i dont understand how to put pic

midnight wind
nocturne galleon
#

i know about that

#

but the source

#

where can we choose it?

midnight wind
# nocturne galleon but the source

so when you have a webserver, you have paths
So you have /index.html which is your main page which the full url would be www.example.com/index.html or like localhost/index.html so lets say you put a image on the webserver in lets say the images folder, so the path would be /images/image.png which would point to the resource at let's say www.example.com/images/image.png

nocturne galleon
#

ooooo

#

tankiu

midnight wind
#

and if you want to load images from a different url, you would just put the full url

nocturne galleon
#

alright thanks

#

very aprreacite it

fresh nexus
nocturne galleon
#

But I will, it’s a really small program

#

Even if I don’t, I don’t care, I’m only messing with it for 2 weeks or something before I move on

sick dome
#

anyone have any experience in database design?

spring pond
#

i have a bit

pliant siren
#

Well, that ended abruptly πŸ˜„

nocturne galleon
#

I am honestly stumped here

#
integers = c(1,9,7,6,1,2,9,7,3)
count = 0

MatrixI <- matrix(data=0, nrow=1, ncol=3)

for (i in integers){
  if (count == 0) {
    MatrixI <- rbind(c(1, i, 1))
    count <- count + 1
  } else if (count > 0) {
    for (row in 1:nrow(MatrixI)) { #row = Unique Count
      if (i == MatrixI[row, 2]) {
        MatrixI[row, 3] <- MatrixI[row, 3] + 1
      } else {
        
      }
    }
    count <- count + 1
    MatrixJ <- c(count, i, 1)
    MatrixI <- rbind(MatrixI, MatrixJ)
  }
} 
colnames(MatrixI) <- c("Unique", "Value", "Frequency")
rownames(MatrixI) <- NULL
print(count)
MatrixI```
#

removed all things in the blank else{} part cuz it just messes up the code there

Trying to do it so that it won't print already present values in the integers when it iterates one by one and adds them to the matrix

#

this shouldnot print the values 1, 9, 7 and 6 on the second repetitions but can't seem to make my mind up on what code is appropriate there

#

this is in RStudio

#

i put

count <- count + 1
    MatrixJ <- c(count, i, 1)
    MatrixI <- rbind(MatrixI, MatrixJ)```
first on the parts below to confirm that it actually reiterates
nocturne galleon
#

Don't answer the questions above, resolved it!

loud kelp
#

This is a bit outdated now, but check out my cool elevator I made for Snap the Sentinel

#

It may not look like much but it took a bit of scripting to make happen

astral garnet
#

is there no way to show system information via rasbian?

#

er via GUI

midnight wind
#

Use neofetch

astral garnet
#

i'm talking about the basic system info and i guess the answer is no

#

i can find everything via terminal

#

idk just a quirk i guess

midnight wind
#

In Linux, terminal is king

astral garnet
#

i'm not as familiar with rasbian. just playing with it

midnight wind
#

Raspbian is basically just debian

astral garnet
#

i set up a virtual box with rasbian on my linux mint system

#

now i just gotta figure out what the "aptitude" install is all about

midnight wind
#

Apt

astral garnet
#

idk its something my instructor wants us to do but its gving me a local settings error and i'm too tired to care

#

"sudo apt-get install aptitude" and then type in "aptitude moo" "aptitude -v moo"

#

etc

#

i'm on stack overflow looking it up

hollow basalt
#

Why would they

native helm
#

A few questions about iOS development using a Mac on the network for compiling:

  1. Can I install everything needed, on the Mac, onto an external drive?
  2. Is it completely w/o user interaction on the Mac, or is access to it required, ie between compilations?

Thinking of using my SOs MacBook for this, but she’s low on space so being able to put Xcode and its stuff on an external drive would be highly beneficial, and being able to do compilations w/o having to β€œtake-over” her Mac is pretty much required if it’ll be viable.

spring pond
# native helm A few questions about iOS development using a Mac on the network for compiling: ...
  1. AFAIK Xcode doesn't have any options in terms of where it installs components so you will need to install the ~30 GB of content on the system drive
  2. You can use xcodebuild on the command line to build and export your project but you'll have to manually upload your build if you don't want to use the Archiver

I'll warn you that attempting to build iOS apps on anything other than a Mac (or Mac VM) will probably not go very well because of the complete lack of library, autocomplete, preview, and simulator support.

grizzled steeple
#

Man... why must my boredom be productive .-.

obtuse night
spring pond
#

thats why i gave it as a recommendation

narrow iris
#

hey folks, I'm a c++ developer, and have recently worked on audioviz: https://github.com/ben-cottrell-nz/audioviz. I gained experience with cross-compiling for Linux and Microsoft Windows, through MSYS shell and the MINGW-w64 toolset.

#

Since I use the same library for GUI, Qt, I should be able to build it on macOS too, though haven't tried yet.

median shoal
#

ANyon know LUA scripting?

narrow iris
#

what are you using it for?

median shoal
#

I'm looking at luaMacros.

#

and trying to undertand a code that the !@#!@# developer posted

sage robin
#

is there anybody with js experience, having a little trouble with https://wiki.nexusmods.com/index.php/Creating_a_game_extension_for_Vortex

i need to know how to use registry keys for the index.js file
"Do the game stores have any useful meta-data we can use? (SteamApp ID, Epic store codename, GOG app ID, registry key etc)
Steam App ID: 692850, GOG App ID: 1133514031"


Now we have the basic information in place, we need to tell Vortex that we're adding a new game. First, we'll want to add some additional constants to the top of the index.js.
----------------------------------
// Nexus Mods domain for the game. e.g. nexusmods.com/bloodstainedritualofthenight
const GAME_ID = 'bloodstainedritualofthenight';

//Steam Application ID, you can get this from https://steamdb.info/apps/
const STEAMAPP_ID = '692850';

//GOG Application ID, you can get this from https://www.gogdb.org/
const GOGAPP_ID = '1133514031';```
astral garnet
#

anyone know of a good tutorial that explains how to find an ip address in a subnet?

#

i've watched a few already but 😐

midnight wind
#

Find what subnet an IP address is in?

#

Also

astral garnet
#

asi asi asi

hollow basalt
hollow basalt
outer fjord
#
#pragma warning(disable : 4996)

int main(void)
{
    int num0 = 0;
    int num1 = 0;
    int num2 = 0;
    int num3 = 0;
    int num4 = 0;
    int num5 = 0;
    int num6 = 0;
    int num7 = 0; 
    int num8 = 0;
    int num9 = 0;
    int getal; 
    printf("Type a number:");
    scanf("%d", &getal); 
    {
        switch (getal)
        {
        case 48: num0++; break;
        case 49: num1++; break;
        case 50: num2++; break;
        case 51: num3++; break;
        case 52: num4++; break;
        case 53: num5++; break;
        case 54: num6++; break;
        case 55: num7++; break;
        case 56: num8++; break;
        case 57: num9++; break;
        }
    }
    printf("The number of ones are: %d", num0);
    return 0;
}```
hollow basalt
outer fjord
#

Hey guys, I have to write a program to count the occurrence of each number from an input, but I don't know how to read each number separate. Any tips?

rancid nimbus
#

@outer fjord you could just have an array of 10 numbers and condense that switch statement down to a few lines of code.

#

Each number or digit?

#

Oh, you want to read a char it looks like.

#

Maybe scanf(" %c", &c);

outer fjord
#

Haven’t learned about arrays yet, but I use a scanf but the case doesn’t see the individual numbers from the input.

outer fjord
rancid nimbus
#
#include <stdio.h>

int main(void) {
  int num[10] = {0};
  char *words[] = {"zero", "one", "two",   "three", "four",
                   "five", "six", "seven", "eight", "nine"};
  int i = 0;
  char getal;
  printf("Type a number:");
  while (scanf("%c", &getal) != EOF) {
    if (getal >= '0' && getal <= '9') {
      num[getal - '0'] += 1;
    }
    if (getal == '\n')
      break;
  }
  for (i = 0; i < 10; ++i) {
    printf("The number of %s are: %d\n", words[i], num[i]);
  }
  return 0;
}

This counts the digits that get inputted.

#

number as in digit? 100 if one number, but 3 digits.

#

There's another way that converts an int to a set of digits by using the % operator which get the remainder when doing division.

#

Another thing to think about would be what are you wanting to read, a character or a 32 bit integer? It looks like that case statement is written for a character. Also, reading the manual page, it says that scanf will return EOF when there is no more data for it to read. This can be found by reading the manual page for scanf. https://test.lugsole.net/man/man3/scanf.3.html

outer fjord
wary briar
midnight wind
rancid nimbus
#

I have not been able to do that. I tried before and ran into all sorts of "this is not a raspberry pi pleasy use the correct board" kind of issues.

night girder
wary briar
wary briar
wary briar
#

Quote me if I’m wrong tho

night girder
#

At least its fun for trying new things

wary briar
grizzled steeple
wary briar
wary briar
#

Also, nice song there

grizzled steeple
#

Like a Backup solution or something. Thing is, because most Beat Saber updates break mod support, I wanna have an easier way of just backing up a working setup with a version tied to it, so when an update comes out, I just click one button, rather then having to hassle around with copying files back and forth. Might as well make it a generic App/Folder Backup solution with versioning support xD

#

Works with a server component too, so I can have the same Beat Saber setup on both my desktop and laptop, all being stored on my home server

wary briar
#

This is something called useful programming

#

I do useless stuff

grizzled steeple
#

Oh?

#

Thing is, I'm pretty sure such a backup solution is already out there, I'm just too lazy to look it up lol

wary briar
grizzled steeple
#

Why do a repetitive Task maybe once per month, if I can spend months automating it
That's the true programmers mind

wary briar
#

But tbh, the total time you take doing it, is always more than the auto system

#

Unless you’re like me and take your whole life coding one project πŸ™‚

grizzled steeple
#

Hehe...
I did originally conceive the whole App as like a core package, which just slots into like a wrapper. Being it an all-contained Desktop app, a server and client, etc. Probably spent way too much time on it, only to end up building it out as just a client/server app. Honestly, I always have these big plans for automation tasks, only to end up totally over engineering it, or stopping half way through...

wary briar
#

True about the stopping tho lol

#

Anyway, gtg bye

grizzled steeple
#

Was a nice talk ^^

upper yarrow
#

f

quaint kettle
#

hey now...

wary briar
#

waitress or gunicorn

hollow basalt
#

ubuntu

wary briar
#

For python

hollow basalt
#

i was talking about operating systems

wary briar
#

Do ya need help

#

With fixing Ubuntu corruption

hollow basalt
#

say what

wary briar
#

So ya need help?

arctic wasp
#

No thanks

wary briar
#

Are you both the same?

arctic wasp
#

No

hollow basalt
#

No

wary briar
#

So….

upper yarrow
jolly grail
#

[INFO] starting..
[WARN] debug mode active @nocturne galleon What kind of script is this ?

nocturne galleon
#

How long does it take for my app to be released on google play (it is my first app) It is in "In Review" Status

pseudo grail
#

can discord bots find out a user's email?

grizzled steeple
#

Nope

#

All they get through Discords API is the Snowflake ID, the Username, Discrimiator (the 4 digits after the #) and the "avatar" URL (which is the profile pic)

#

Ofc some miscellaneous data as well like what type of account it is etc.

wary briar
midnight wind
#

but applications yes

#

so you need to authorize that application seeing your email

pseudo grail
#

not what I need then

#

rip

wary briar
#

I feel bad for you tho

plush valley
hollow basalt
#

however the safest (imho) is just not to show the email to bots

#

since it might be used to scarp emails and spam

midnight wind
hollow basalt
#

Discord doesn't need to

nocturne galleon
#

anyone that knows python here?

nocturne galleon
nocturne galleon
#

Also he got mad at me for texting him at 9pm yesterday so he will never join

#

Only if there is saddam hussein cult here

hollow basalt
storm cedar
hollow basalt
waxen cipher
waxen cipher
wary briar
#

I do too

wary briar
wintry anchor
#

does anyone here know English?

hollow basalt
#

What's English

valid light
#

I'm thinking about recreating the old xfire website for fun, but modernize it. As If XFire were still around.

wary briar
grizzled steeple
wintry anchor
#

javascript is not english afaik

wary briar
mighty eagle
#

it should be fine either way, but some people likes to translate it into boolean before checking

grizzled steeple
#

Can't be explicit enough πŸ˜‰

#

I know that the !! is somewhat redundant, but I like to do that sometimes just to be explicit about the conversion. Same reason is wrap a variable in Number() before doing maths on it, even if the expected input is already a number

mighty eagle
#

doesn't work if there's a string before it tho

#

you will need to wrap it in parentheses str+(+var+var)

wary briar
#

i hate seeing that :/

mighty eagle
#

welp i'm not using it alot just when i want to see a number in console

#

speedrunning

red mulch
red mulch
dense vault
#

i can just turn my clunky keyboard into 3 keys!!!!

gusty oak
#

How do you guys do indentation? I personally use semicolons

grizzled steeple
#

Ah yes, the fabled single line developer. Writes all of their code on one line...

gusty oak
#

So 4 semicolons instead of 1 tan

#

tab*

grizzled steeple
#

Oh no o.O

#

Why. Just why.

gusty oak
#

It’s better that way

grizzled steeple
#

No. It is not.

gusty oak
#

Yes it is.

grizzled steeple
#

I don't care whether tabs or spaces, but this. This is just as cursed as that guy who puts all their semi-colons at the end of each line, nicely aligned in one column...

gusty oak
#

Nah man, you gotta use semicolons for indentation and indentation for semicolons

grizzled steeple
hollow basalt
#

I wonder if someone actually made a plugin or something in their IDEs for that

gusty oak
#

I should do that

granite gazelle
# gusty oak

I intent like so;

#include <iostream>
int main()
{
/**/if (condition)
/******/auto var = *nullptr;
/**/else
/******/exit(0);
}
mild dust
#

I am a python guy

obtuse night
#

Do any of you use any free or open source, self hosted identity providers? Something like Auth0 but free and self hosted

granite gazelle
cloud knot
red mulch
mild dust
plush valley
plush valley
cloud knot
#

all i meant is that i know it is open source, works well, but not being the admin, the configuration looks way too complex to me - but also offers tons of options.

plush valley
#

OpenLDAP + Keycloak + Traefik + ExternalAuthServeris a fantastic combo

#

Authelia + Nginx/Traefik

#

FreeIPA + Traefik/Nginx + Authelia/Keycloak

#

Provides these frontends:

plush valley
obtuse night
#

Keycloak looks best suited for our requirements. Thank you all

silk yacht
#

Can someone explain the difference between Java and Python for me? I’m new to coding and learned HTML5 and CSS and want to learn something else instead of JavaScript.

midnight wind
#

one is very OOP and verbose

#

python is more akin to a scripting language

storm cedar
gusty oak
#

be me
learn just today that I could’ve very easily gotten into computer science if I just put computer science and nothing else as my major preferences
mfw it’s full now
mfw someone needs to leave for me to transfer
So do I kill myself or someone in computer science?

red mulch
hushed stirrup
# silk yacht Can someone explain the difference between Java and Python for me? I’m new to co...

I'm not a expert so take this with a grain of salt but from what I remember python like @midnight wind said python is more of a scripting language and I don't think is a full package for the web but it might be good in certain cases but Java? you mean javascript or good old java cause there two completely different things (EDIT: if your talking about base java I don't know what to tell you then)

silk yacht
hushed stirrup
#

Ok then I don't know shit then

silk yacht
#

I chose to learn Python first

hushed stirrup
#

Ok

#

good for you

silk yacht
#

:)

hushed stirrup
#

Is python a good replacement for cmd and powershell for doing automated tasks on windows???

spring pond
#

on linux i would be more split but on windows i personally despise the batch language used for scripting so id recommend python

storm vigil
gusty oak
#

I don’t wanna major something I don’t like and potentially fail the grade

red mulch
red mulch
#

powershell =~ bash - and if you're writing more than a one off or a wrapper script in shell, you're doing it wrong, and it will become a nightmare. Any time you're doing something clever, do it in an actual language.

red mulch
#

also 'good' is about fitness for purpose

#

from a commercial perspective, your code needs to be understandable by other people, work as expected, comments should indicate WHY, how should be obvious (but if it isn't, comment), and perform adequately

#

in terms of language, typically the language that is most widely used in the business. There should be a solid reason to use a different language

gusty oak
red mulch
#

I studied comp sci and software engineering in like.. 1999?

gusty oak
#

ok?

red mulch
#

ended up leaving because uni wasn't for me, got a f/t job being a computer wizard

#

surely you can do another major for a year and transfer? the first year is babysitting typically

#

getting all the normies up to par

gusty oak
#

Also this is high school not uni

red mulch
#

wut?

#

eh, just write code to do stuff. coding is fun

gusty oak
#

I’ll write code to do my graphic design homework

gusty oak
#

You can’t really translate the name but it means that

red mulch
#

interesting - we used to call those a 'tech school'

#

but it was more trades and stuff.

gusty oak
#

You choose a job to train for in high school

#

And in like 12th or 11th grade you can be an intern

red mulch
#

then you are forced to work in that profession until you die? πŸ™‚

gusty oak
#

No

red mulch
#

yeah that was a joke

#

I am australian, so my sense of humour is rather... dry, but clearly english is not your first language, so the nuance would be harder again

gusty oak
#

shrug It’s weird

#

I’m pretty sure it’s because I don’t speak my native language in daily life and use English instead

#

Also why are you Australian

red mulch
#

haha, I had no choice in the matter

gusty oak
#

Reincarnate as a New Zealand native then overthrow Australia

plush valley
gusty oak
#

Why is there a semicolon?

hasty tusk
#

you think whoever made this channel is that expand brain

#

xd

plush valley
gusty oak
#

It's python

#

Python has no semicolon

plush valley
#

Java

gusty oak
#

java is System.out.println

#

not print

plush valley
#

Unless you alias the function

gusty oak
#

I will stay angry

plush valley
#

LUA

midnight wind
#

Actually made a script a week ago to rename a bunch of computers, would enter the number and it would do the rest, and reboot. Basic but helped

plush valley
midnight wind
plush valley
midnight wind
#

Oh no

#

With 11 computers idk if the hassle of automated setup would have been worth it

plush valley
#

$ComputerPSSession = New-PSSession -ComputerName computer1 -Credential domain\AdminUser
Enter-PSSession $ComputerPSSession

midnight wind
#

Yeah, they weren't in AD yet

#

Since it was for a client, and it would be connected to their domain on prem later

plush valley
#

Oh you dont need to have domain joined to do this

midnight wind
#

Oh, how does it work then?

plush valley
#

It utilizes the WinRM Interface and basically is the Powershell Equiv of SSH

midnight wind
#

Ah, but the computer needs to have script execution enabled though?

plush valley
#

No, but winrm needs to be running

#

winrm quickconfig

midnight wind
#

Ah, good to know

plush valley
plush valley
#

So first need to decide: ThickClient or ThinClient Images

#

Thick Client Images are basically you modifying the Windows Install image and repackaging it

#

Thin Client Images use the base Windows Image and then you add on top without modifying it with things like Answer Files, Provisioning Packages, DSC, Microsoft Deployment Toolkit, CSPs and so on

#

Thin Client is more flexible since you can support multiple configurations and devices without having to make an installer for each

#

Both would be deployed through PXE

#

@midnight wind https://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/
This is the "Easiest" and "Most Straightforward" approach

midnight wind
#

How would I go about actually deploying it on a pxe server

plush valley
#

Windows Deployment Services

#

In the WDSClientUnattend you put the Unattended XML

#

some of these can be combined

severe viper
#

any way i can use 's inside of "s within cout example: std::cout << " some text ' some more text' "

#

c++

vocal quarry
#

use \' instead of '

icy viper
#

Can anyone help me with gpac?
I installed it 10 different times on Ubuntu and it still won't work

#

I even compiled from source but still nothing

#

All I get is
zsh: command not found: gpac

hollow basalt
midnight wind
#

maybe that isn't the commands to use it

#

not all packages names are the bin names

icy viper
#

I'm a Linux noob so πŸ˜…

midnight wind
#

try typing in mp4box --help

#

or just mp4box

#

actually

#

gpac is a command

hollow basalt
#

actually

icy viper
#

It's still the same command not found problem

#

And ppl say Linux is user friendly lol

midnight wind
#

it is

#

for the most part

#

if you know what you are doing

icy viper
#

yeah, that's why I'm using it over windows. but the moment you have a problem u need to be ready to invest hours into fixing it

midnight wind
#

windows is no different

icy viper
#

for development linux is way easier than windows imo. but I can't help but feel tired when I get stuck at pretty basic stuff.

midnight wind
#

you are doing sudo apt install gpac?

icy viper
#

yeah

#

it says it's already installed

#

But it isn't

#

or the path where zsh is looking for gpac is different from where it's ?

midnight wind
#

the package could be broken

#

idk

#

when you build it, in the build directory what files do you get

icy viper
#

i get this

midnight wind
#

what's in bin

icy viper
midnight wind
#

gcc?

icy viper
#

I copied mp4 box to bin and now it works

#

turns out it mp4box doesn't work but MP4Box does

#

forgot that linux is case sensitive 😐

icy viper
wicked sentinel
#

Coded Mandelbrot set

pure mulch
#

Anyone here who can help me out with ubuntu troubleshooting? I have posted my problem in #tech-support

nocturne galleon
#

I have a question about OOP. When you have multiple classes that extend eachother for inheritance why is it necessary to do something lile. Animal max = new Dog instead of Dog max = new Dog if dog extends animal?

spring pond
#

it isn’t necessary

#

it’s just how generic you want that object to be

nocturne galleon
#

What do you mean by that like do you lose scope of some methods?

spring pond
#

no

#

so basically if you have 2 different classes that inherit from Animal, say Dog and Cat, if you assign the child objects to an Animal variable then you could keep instances of Dog and Cat in the same collection for example, whereas if you assign to the child type then it can only be with others of the same type

nocturne galleon
#

I think I get it now. So like a collection being something such as an Array of animals but other than cases like that it is just not needed?

rancid nimbus
#

@pure mulch what's the problem?

lusty cave
#

Question - is anyone around here familiar with the "bdl" file type?

limpid reef
lusty cave
pure mulch
# rancid nimbus <@688033302157721621> what's the problem?

I figured it out @rancid nimbus

Microsoft Binbows released the 21H1 update on September 21 and that corrupted the grub bootloader.

As a result i wasn't getting the grub menu after powering on my laptop, and it was booting directly into windows.

I had a dual boot config with Binbows on the first ssd, and Linux(Ubuntu) on the 2nd. Fixed the issue myself later.

Thanks anyways!

severe viper
#

anyone here wanna help me troubleshoot why opengl isnt working in visual studio?

severe viper
#

i solved it nvm

storm cedar
outer fjord
#
#include <string.h>
#include <stdlib.h>
#pragma warning (disable:4996)
void stringreplace(char* str, char* what, char* with)
{
    int i = 0, cnt = 0; 
    int len1 = strlen(with); 
    int len2 = strlen(what); 
    for (i =0; str[i] != '\0'; i++)
    { 
        if (strstr(&str[i], what) == &str[i])
        {
            cnt++;
            i += len2 - 1; 
        }
    }
    char* newstring = (char *)malloc(i + cnt * (len1 - len2) + 1);
    i = 0;
    while (*str)
    {
        if (strstr(str, what) == str)
        {
            strcpy(&newstring[i], with);
            i += len1;
            str += len2;
        }
        else
        {
            newstring[i++] = *str++;
        }
        printf("%s\n", newstring); 
    }
    
}

int main(void)
{
    int a = stringreplace; 
    char search[100];
    char replace[30];
    char strzin[] = "The quick brown fox jumps over the lazy dog\n"; 
    printf("%s",strzin);
    printf("Welk woord moet vervangen worden?\n");
    gets(search);
    printf("Welk woord moet er voor in plaats komen?\n");
    gets(replace); 
    stringreplace(strzin, search, replace); 
    
    return 0;
}```
#

Hey guys, right now I have a problem with my code. I want to replace a word in a sentence with one the user inputs. But the result is not correct since the memory allocated is wrong I believe.

#

Right now this is the output

#

So could you give me some insight into what I'm doing wrong?

rose tree
outer fjord
#

Not yet unfortunately

hollow basalt
#

@outer fjord what are you doing exactly?

#

technically the word is replaced

outer fjord
#

I have to change a word from a sentence. It’s an assignment from school

hollow basalt
#

i mean, you still managed to change the word though

outer fjord
hollow basalt
#

what would he accept then

midnight wind
flat oasis
#

no

#

ur joking

#

this is simple stuff

midnight wind
#

not even programming

vestal spire
#

Hi, how do I make a widget change the background of another widget for flutter??

I currently have:

Home stateful:

  • body is Stack(). Inside the body I have a widget called BackgroundWidget() and other widgets

In the BackgroundWidget() -stateless -it simply returns an Image.asset() which will be used as the background for the app

I also have a ChangeBackground() (stateful) screen which I use ListView() along side with GestureDetector() for each image that the user can pick.

How do I make it so that when I pick an image in ChangeBackground(), the background in BackgroundWidget() is automatically updated and the background in Home is updated as well?

I additionally have globals.dart as global which stores a variable bgImage which is the image path used for the background. Currently, when I wanna change background, I change that parameter whether it's with setState(){} or with onTap for the GestureDetector.

#

The onTap function of the GestureDetector() does work, but the background does not change instantly. I would have to switch to another screen for the background to be updated.

vestal spire
outer fjord
#

char* newstring = (char *)malloc(i + cnt * (len1 - len2) + 1);
I know I have to change this line to fix it, but I don't know what to change

steep mauve
#

like char* newstring = (char *)malloc(200);

#

i'm not sure but i think that maybe the null termitator at the end of the string is missing

thin valve
#

my actual knowledge is just invalid syntax

outer fjord
outer fjord