#development
1 messages Β· Page 78 of 1
hey, still works π
yeah, thing is, there's so much variation, but low-mid 100s would probably be about normal
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
Then $180K with Base of 172K
AUD base? (ie, ex-super?)
5% Guaranteed Increase per year of Salary, Full package of Insurance, Vacation and Retirement
Looks like they match Retirement Plans up to 4%
That sounds like very American terminology...
$234,332.80 AUD
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.
this is the time to probe around then
Yeah I kinda doubt Atlassian are paying 234k in Aus for Senior roles - but in SanFran I'd believe it.
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.
Bingo
So probably like 138-140k for the same role in Melbourne.
136
My insider friend gotta go walk dog and take care of kids now So I cant get any more #'s
Hopefully that helps
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!" π
hey everyone, is there a php/javascript guru in town?
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.
yeah...
well, i made a version that Has no links or mail adresses, can i show it in here then?
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
well, it is Python coded...
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)
ooh, i see development. What kind of development is discussed here? Overall programming stuff or something specific?
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?
huh? git stash should just save all of your uncommited changes
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
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
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 π©
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)
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 π©
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
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
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?
firstly you should know there's no analogous to web framework that does everything in C/C++ as in Java I guess
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
just checkout the project second time in separate folder π
yes, git is a massive step backwards from subversion... or mercurial π¦
Things git provides which SVN didn't: Distributed checkouts. Everything else: Kill me.
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
i hated SVN branch implementation. plus the amount of crashing when checking out, certain client versions and server versions hated each other very much
I haven't tried SVN, but heard takes so much time when first time getting versus git clone
dunno how far off that is
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
thats the worse take ive read π I used SVN before GIT and it was TERRIBLE
Never had that issue. git gives you a complete history as a complete clone - part of it being distributed. svn gives you the current state.
How does SVN compare to GIT when changing branches.
since SVN also use deltas (right?)
svn can have performance issues with massive projects that have crazy number of changes to files over their life... that's rare.
why so? honestly, I don't know how SVN saves the changes
cause some of the articles I read say SVN is slow but their example is Linux

must be a "non-biased" example /s
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.
wanna up this question
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
yea that's also what I heard
but trying to find SVN advantages really
unless you have big binary blobs without Git LFS. Then Git checkout takes forever
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.
wondering if anyone still uses CVS π
haha I'd like to think no, but I bet there is still some left. Certainly there's a lot of subversion.
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...
ah, never mind, he did π
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)
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.```
for the gain/loss use max(points,0) and min(points,0)
actually, even better - make a function useraddPoints()
code
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
if you have already work experience, then you pretty much can prove that you already know what it is
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
Does pay change based on what kind of degree you have though?
Pay is usually based on junior/senior, etc. Those are usually based on experience and knowledge/skill
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
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:
- is it ok to use the websocket to authenticate users?
- 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?
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
ok
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
Ok thanks, feel free to dm or ping me with criticisms on how im structuring my code, if you do happen to take a look at the repo. not much there atm
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
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
Anyone codes in Python?
I avoid it as much as possible.
i used to do a lot of python in uni, but havent used it in a few years now
i do a lot of python dev, i can help
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.
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
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.
python is great for specific applications yeah
i commend you for working for 20 years with java, i could probably barely last a year on that language lol
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
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)
Js/ts for all web dev here
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
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
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
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
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.
nah
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.
I'd rather just extend thread/runnable, but that's just me.
thing is, JS was always singlethread and afaik it pretty much still is (maybe not node?)
he probably used a version of swift <5 which was before it became ABI stable
workers exist
yeah, but its not exactly multithreading in the classic sense
yeah
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 ?
Yeah, just idk about the chroma part
the chroma part is not that important, would just be cool, just want to control my leds from my pc
like, open a software, change color or mode, close software
Yeah that's possible
where can i find snippets of codes?
where the projects are stored
looking into it you would probably have to use the c++ api to register a new device to be controlled by the software, but of course there are other options available
i know i am late, but have you considered using an OAuth solution and externalize the whole authentication part to something like Keycloak (if you want internal auth) or using Google/Facebook etc as a login method ?
RxJS is superior, but it takes a lot of effort to wrap head around the reactive stuff
stackoverflow, github π
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 π
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
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
ok
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 π
OAuth in general is super confusing when doing it for first time
also when i look for examples, i never take anything older than ~2 year old at it's face value, as APIs change a lot.
i do remember this
Java is slowly dying - good.
Python is slowly rising - not good.
Swift π
the only positive of Swift is that it is less braindead than Objective C. Still one of the worse languages available
as?, as!, unsafelyUnwrapped - yeah, still stupid as hell
Thoughts on Go? Good or bad in your opinion?
gamemaker language all da way
OK Mr Knowitall :P
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.
Never used it but from what I heard you can do worse than Go.
Like god damn Python for example.
Dumb language for uneducated programmers.
would this be an appropriate place to ask a basic web development question?
yes
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
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
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
Uhhhhhh
Give me python every time.
That's incredible π
I hate dealing with Python. I have to deal with it when using TensorFlow and our Django projects, but every time feel like I want to hang myself instead.
What is your "native" language
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.
Python does exactly what it was designed to do
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
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).
each language has its strong and weak points and you should choose based on what you need, not any "allegiance"
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.
Being more popular is 100% a reason
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
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.
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
Yeah. That's also true of Python. I think the resources available for Javascript these days makes that less prevalent.
yeah and frameworks like react which demand a bit stricter structures and often encourage to use TS help a lot too id say
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.
yep, that definitely plays a role too
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"
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
I like C/C++, but definitely not using it for quick and dirty work. python it is
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.
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.
i define PERL as WORN language. Write Once, Read Never π
(cause majority of PERL stuff i seen was about regexes all the time, dammit π )
i got the impression matlab was popular for math calculations
Nothing compares with Matlab simulink
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!
I'll check it out
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...
I mean... we already use them for timekeeping and satellite communication so...
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.
Well Linus said that it's used for accurately timed networking and that could be useful for gaming applications... such as deciding who shot first. Linus made is sound like the technology could be adopted into everyday consumer products.
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
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.
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...
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
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.
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
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.
oh, tysm @humble hemlock and @pliant siren
?
What did I do? π€
ikr?
hey can u guys tell me how much maths is needed for machine learning
more and quick mafs
Can anyone give me an idea of ββhow I could learn C / C ++ ?
Because I'm a little tired of HTML, CSS and JS
you should learn it like a programming language
find something you want to make (in this case maybe some sort of Win32 application) and make it
C Tutorial, C programming is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratori
this maybe an odd question has anyone used Altium Designer before?
How did they make ? with reaction, we get access to full server but the channels shows its not limited for roles how ?
Is this a correct place to ask 


meanwhile people are bored https://github.com/khang-nd/7.css
I'm trying out a "chat plays [a game]" stream on twitch, I'm glad I got it working finally!
Lol
there is also 98.css and xp.css. no other versions tho
gimme 3.0.css
i mean i am serious https://jdan.github.io/98.css/
I'd legit like to meet the people who made these and ask WHY
TooMuchTime(TM)
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 π
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...
@uneven meadow
I'm trying to use the Razer Synapse configuration app to bind the 12 number buttons send extra F keys from the 13..24 range, but I'm not having any progress. When I'm in the right menu, I can press...
Free keyboard macro program. Supports hotkeys for keyboard, mouse, and joystick. Can expand abbreviations as you type them (AutoText).
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.
g502
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?
Yes apparently. Let me know if you get it working, might try it out later :)
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.
so G Hub actually already allows you to bind the buttons to function keys so i didn't have to mess with AHK or anything. i tested the AHK script and it seems to work, though, so thats always a good backup option :)
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)
Thanks man! I got a Logitech too, will set it up next time π
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
Everyone starts somewhere! That's a pretty funny bot idea
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...
Another video on the clock card ltt recently covered
whats your issue? Ive been developing an extension that modifies youtube extensively without running into any problems
how? I was working on graphical tweaks to robinhood (bad eyesight and im also colorblind) but can't get anything to work
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
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?
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
Oh, i see. That might actually be a thing that they have some extra security
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 ...
you could use a library such as discord.js or discord.py to actually make the bot @real cargo
thank i like how there one bot seems to do the job of 4 bots i have and wanted to reduce the bot count if i could make one do it all
you could totally do that but it will just be a lot of work
not sure it worth it then
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
you can do it, r/homelab server has only 1 bot
discord.py is no longer maintained btw
it's also reccomended to use interactions (slash commands, user apps) rather than looking for prefixes in messages
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
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()],
});
}
}```
alright ill look into it
do you know if they have a prebuilt one we can modify so i dont have to build from the ground up
It's open source
ok ill see if i can find it thanks
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.
so it uses this
and then there's cogs, which are basically plugins for it
thanks this is a big help
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
Xbox 360 Dev is a pain in the ass
but, after a fuckton of messing round
i now have this
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
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
What about something like WordPress?
forgot to mention, i am on wordpress....
Not sure if it's free, but Elementor?
It's a plugin or I might be misunderstanding the question
not sure about premiere pro but it's possible to write a simple script to do this, it shouldn't be that hard
Could you help me out, or refer me to resources that'll help me? As far as I can see, premiere pro has some sort of modified JavaScript which is called extendscript but i haven't learned js so I can't make heads or tails of it
i can't really help you out with using premiere pro to do this but I can give you resources for making one in js/py
i found this which may be of help https://stackoverflow.com/questions/48379401/cut-multiple-parts-from-a-video-and-merge-them-together (uses npm library fluent-ffmpeg)
ooooooh awesomeeee dude cowgalaxy youre epic
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?
You can change the JDK location in the IDE settings
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."
oh apple
smh
ππππ
lmaoo
π
how im feeling this week with most of the team on vacation π
oh cool
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.
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
"'#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?
That's easy
So just mod i by 9
If 0 print i
I'm a total noob to C programming so it's all very new to me
let me write a quick program to check
any suggestion to make html website look better ?
https://htmlcheatsheet.com/css/ I used this for my website.
it's quite subjective. my only advice is to look at beautiful websites and try to mimic them
oh nice thx
yeah...
well thx for the suggestion folks
my website is still crappy af
don't worry, it takes time
just keep it up
@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", ÷By);
for(int i=lowerBounds; i<= upperBounds; i++){
int r = i % divideBy;
if(r == 0){
printf("%i\n",i);
}
}
return 0;
}```
You're my hero, thank you so much!
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
thx mate
@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
then after bootstrap. don't take it from me. take it from people that are actually good.
bulma is also nice
oh nice
link shorters not allowed
ah i see
only one small thing, I'm not allowed to use the if statement. So could I replace that with something else?
For example with "while" maybe?
Lol he has specifically stated that we cant use a decision statement
then how tf does he want you to do it
rules like "don't use an if" always remind me of https://www.npmjs.com/package/is-even
you should create a c++ linked library with "isZero"

Can't use C++ also.
then c linked library
I'll just show him this tomorrow and ask how else I could do it.
maybe using goto's?
then call the asm within c
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", ÷By);
for(int i=lowerBounds; i<= upperBounds; i++){
int r = i % divideBy;
while(r == 0){
printf("%i\n",i);
break;
}
}
return 0;
}```
can anyone recommend me a good c++ tutorial?
yes, someone can
I mean... Its terrible, but j
It is ok
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?
google oauth2?
use their id?
you shouldn't be storing their email iirc
Doesn't the Google Developer API talk about this?
it does?
Hi, could someone help me understand how can I chmge my email address in gpg keys?
You cannot change the e-mail address in the key. You need to add a new UID (https://coderwall.com/p/tx_1-g/gpg-change-email-for-key-in-pgp-key-servers)
I forgat to say I havent use this key in the 'public world' I have user to encrypt staff only for me and sign on gir on self hosted server, is it passable now or still not?
No possible to edit, but an option would be to revoke the old key and generate a new one (or add UID and revoke the old UID as described in the link provided)
Ok thank you
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
but that is not java home
java home is the folder above that, without the bin/
@next flame ^
yeah I tried that too, same problem
that is JRE, not JDK
but when I type java --version in the terminal I get openjdk
so yeah, try to figure out why do you only have JRE and not JDK
you are missing the compiler. is this ubuntu ?
btw I have IntelliJ IDEA installed and it works fine, not sure if it's using the same JDK/JRE
yes
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)
should I apt-get purge the JRE first?
yup, works now
thank you
no problem
the same you do with any other user..... it doesn't come with data
you have to associate it with an actual user on your platform
In this Linux course, you will learn the 20% you need to know to be efficient with Linux. This course will teach all the common Linux skills used in cyber-security and ethical hacking.
HackerSploit developed this course. Check out their channel: https://www.youtube.com/HackerSploit
This course applies to almost all versions of Linux. It does n...
Really cool course if you're interested in learning Linux and some cybersec/infosec for free;
β€οΈ Check out Perceptilabs and sign up for a free demo here: https://www.perceptilabs.com/papers
π The paper "Evaluating Large Language Models Trained on Code" is available here:
https://openai.com/blog/openai-codex/
Codex tweet/application links:
Explaining code: https://twitter.com/CristiVlad25/status/1432017112885833734
Pong game: https://tw...
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
like this but the whole section would slide out? https://prnt.sc/1sb0moi
o_ my fav Text channel now xD.. i'm a Discord bot developer.. I code in JavaScript
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
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.
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
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)
but it looks nice when the logs have the same character length at the start
So how do you plan on handling DEBUG, FATAL and TRACE?
like:
[INFO] starting..
[WARN] debug mode active
etc
lol I just have 3 log types
For now
not trying to do it super properly
Please tell me you're not trying to reinvent your own logger π
its fun
...
I just find it easier to stuff print statements into my program, sue me
If 3 characters,
ERR
WRN
OOF
Please don't print, use proper logging
DBUG,FTAL,TRCE
ZOK, POW, BAM, WOW
OOF is a good one tho
you know what, now I want 'WOW' as a log level
Use "DED" for fatal errors
I dont even know how to do proper debugging, I'm a simple man who uses print statements to find what is broken, and I have no idea about the performance metrics of my program either
learn.
how
You could always starr now
How did you learn programming
what language are you using, and what editor are you using?
I went on sololearn and it taught me python and C# and a lil c++
I learnt the bare bones basic concepts of programming to make things somewhat functional and have no idea how to do anything else
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
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?
my future self can understand
its just that no one else can
it's not that I'm practising badly, I'm just not doing it to the same level you would, just like how someone who wants to do DIY home improvements doesn't need to study structural engineering to add small extensions to their house
sure he'd never get a job at a construction company but all he's doing is putting up a fence for himself
hey can anyone help me with html
i got problem which i dont understand how to put pic
<img src="/path/to/source.png" width="500" height="600">
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
and if you want to load images from a different url, you would just put the full url
Yeah sure. But this guy, will know how he put it up, and why he did it in such a way, in a year or two. You won't have any clue about your code.
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
anyone have any experience in database design?
i have a bit
Well, that ended abruptly π
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
Don't answer the questions above, resolved it!
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
Uhh
Use neofetch
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
In Linux, terminal is king
i'm not as familiar with rasbian. just playing with it
Raspbian is basically just debian
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
Same as Ubuntu mint
Apt
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
A few questions about iOS development using a Mac on the network for compiling:
- Can I install everything needed, on the Mac, onto an external drive?
- 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.
- 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
- You can use
xcodebuildon 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.
Man... why must my boredom be productive .-.
Mac VMs are surprisingly simple to create now. I tried last week and it didn't require any of the special steps in the LTT video.
thats why i gave it as a recommendation
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.
ANyon know LUA scripting?
what are you using it for?
I'm looking at luaMacros.
and trying to undertand a code that the !@#!@# developer posted
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';```
anyone know of a good tutorial that explains how to find an ip address in a subnet?
i've watched a few already but π
Wdym
Find what subnet an IP address is in?
Also
asi asi asi


#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;
}```

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?
@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);
Havenβt learned about arrays yet, but I use a scanf but the case doesnβt see the individual numbers from the input.
So right now if I type in 0000 it says there are 0 zeros
#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
thank you so much for your help!
but it has raspi tools, like gpio support
I mean you can do the same on debian
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.
https://bytes.dev/?x=1022863804
Not sure if everyone digs newsletters, but this is a cool one! It covers mostly JavaScript, but not solely
Yah, but it raspibian has it prebuilt
JS ecosystem: a new framework every week
The aptitude was more about fixing broken packages in apt
Quote me if Iβm wrong tho
yeah π
At least its fun for trying new things
Dark mode pls
Of course
Tysm
What are ya creating? It look pretty cool
Also, nice song there
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
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
This is the essence of a real programmer
Why do a repetitive Task maybe once per month, if I can spend months automating it
That's the true programmers mind
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 π
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...
Was a nice talk ^^
hey now...
ubuntu
i was talking about operating systems
Ye I know
Do ya need help
With fixing Ubuntu corruption
say what
So ya need help?
No thanks
No
No
Soβ¦.
i just started over. its wsl. i already had everything i needed on github
[INFO] starting..
[WARN] debug mode active @nocturne galleon What kind of script is this ?
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
can discord bots find out a user's email?
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.
just plain bots no
but applications yes
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
so you need to authorize that application seeing your email
I feel bad for you tho
Since when is Email a Breach of Privacy? Its a communication vector
Interesting take. I would say users should be able to OPT out of this
however the safest (imho) is just not to show the email to bots
since it might be used to scarp emails and spam
Discord doesn't
Discord doesn't need to
My friend does but hes nto in this server so rip
oooof
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
what's a python
a big snake
π
Me
Me
I do too
I mean theyβre not wrong
does anyone here know English?
What's English
I'm thinking about recreating the old xfire website for fun, but modernize it. As If XFire were still around.
:0
No what dat
if (!!knowsEnglish) {
console.log('Yes, I do.');
}
else {
console.log('What is that?');
}
Output:
What is that?
javascript is not english afaik
!! is the same as leaving it alone, why
it should be fine either way, but some people likes to translate it into boolean before checking
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
did you know that you can add + before the variable and it will translate into a number?
doesn't work if there's a string before it tho
you will need to wrap it in parentheses str+(+var+var)
i hate seeing that :/
welp i'm not using it alot just when i want to see a number in console
speedrunning
no. NO.
except that it always evaluates as a Boolean, so !! does absolutely nothing.
this will make my portfolio site development soooooo much faster
i can just turn my clunky keyboard into 3 keys!!!!
How do you guys do indentation? I personally use semicolons
Ah yes, the fabled single line developer. Writes all of their code on one line...
No, I just put semicolons instead of tabs
So 4 semicolons instead of 1 tan
tab*
Itβs better that way
No. It is not.
Yes it is.
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...
Nah man, you gotta use semicolons for indentation and indentation for semicolons
when you use Java but like python
I wonder if someone actually made a plugin or something in their IDEs for that
I intent like so;
#include <iostream>
int main()
{
/**/if (condition)
/******/auto var = *nullptr;
/**/else
/******/exit(0);
}
awesome
I am a python guy
Do any of you use any free or open source, self hosted identity providers? Something like Auth0 but free and self hosted
at work we use keycloak. but don't ask me how it is configured
Keycloak is an open source identity and access management solution
I mean, to what end? Generally it's a lot of work and not required. It's something that is generally much better/easier to have done for you
lol
I love keycloak
Gluu, Keycloak, LemonLDAP NG, https://goauthentik.io/ FusionAuth, FreeIPA, Authelia
Making authentication simple.
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.
OpenLDAP + Keycloak + Traefik + ExternalAuthServeris a fantastic combo
Authelia + Nginx/Traefik
FreeIPA + Traefik/Nginx + Authelia/Keycloak
https://lemonldap-ng.org/welcome/ This one is honestly one of those really cool unnoticed ones
LemonLDAP::NG is a free software to provide WebSSO, Access Management and Identity Federation
Provides these frontends:
HOnestly yeah it was pretty intimidating at first but once you do it once... it was easy enough
We cannot have it managed for us as the company I work is in Defence, so everything is extremely locked down. We must have control of almost all of our data in order to comply with government requirements
Keycloak looks best suited for our requirements. Thank you all
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.
they are very different
one is very OOP and verbose
python is more akin to a scripting language
it really depends what you want to use it for. These two languages are VERY different both in concept and in use cases
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?
Ok that's cool, I just see a lot of people go down roads that are a bit ridiculous - doing it yourself isn't just a commitment for now, it has to be supported, updated, and if it's your auth platform, absolutely has to be redundant and reliable. It isn't a trifle
Haha comp sci is overrated
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)
Was talking about normal Java not JavaScript
Ok then I don't know shit then
I chose to learn Python first
:)
Is python a good replacement for cmd and powershell for doing automated tasks on windows???
on linux i would be more split but on windows i personally despise the batch language used for scripting so id recommend python
I agree with @spring pond about Python being better than powershell-speak. I think Python is still not as good (in my mind) as just writing in some form of C or equivalent, probably better for bodging something together in a hurry (depending on familiarity levels with each), but not as good overall.
Ok
So are you
I donβt wanna major something I donβt like and potentially fail the grade
haha, want to fight?
absolutely - powershell isn't bad for windows people, but python is actual programming.
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.
In a modern context you almost never want to use C.
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
Come at me bro
I studied comp sci and software engineering in like.. 1999?
ok?
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
Nope, I have 6 months to transfer and after that Iβm stuck with Graphic Design
Also this is high school not uni

I go to what we call a βjob highschoolβ
You canβt really translate the name but it means that
You choose a job to train for in high school
And in like 12th or 11th grade you can be an intern
then you are forced to work in that profession until you die? π
No
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
English technically isnβt my native language but I speak English better than I speak my native language
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

haha, I had no choice in the matter
Reincarnate as a New Zealand native then overthrow Australia
Powershell is honestly the best solution for Windows Automation
this is making me angry https://staff.tnylnk.org/img/13163303102021.png
Why is there a semicolon?
Cuz Development
Java
Unless you alias the function
LUA
Yeah no need to install stuff
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
New-PSSession/Enter-PSSession?
Nah, just a one liner, and had to call it from admin cmd. Was thinking of completely automating the installation and setup of windows but I had no clue how to even start with that
Oh, I assumed you were running the Powershell Script remotely
Oh no
With 11 computers idk if the hassle of automated setup would have been worth it
$ComputerPSSession = New-PSSession -ComputerName computer1 -Credential domain\AdminUser
Enter-PSSession $ComputerPSSession
Yeah, they weren't in AD yet
Since it was for a client, and it would be connected to their domain on prem later
Oh you dont need to have domain joined to do this
Oh, how does it work then?
It utilizes the WinRM Interface and basically is the Powershell Equiv of SSH
Ah, but the computer needs to have script execution enabled though?
Ah, good to know
You have multiple routes to approach this
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
The Windows Unattended Setup Reference provides a complete listing of all the settings that you can use to automate the configuration and the deployment of WindowsΒ 10 for desktop editions (Home, Pro, Enterprise, and Education), Windows 8.1 Update, Windows 8.1, WindowsΒ Server 2012 R2, WindowsΒ 8, WindowsΒ 7, WindowsΒ Vista, Windows ServerΒ 2012, Wind...
How would I go about actually deploying it on a pxe server
Windows Deployment Services
In the WDSClientUnattend you put the Unattended XML
https://docs.microsoft.com/en-us/windows/deployment/deploy-windows-mdt/get-started-with-the-microsoft-deployment-toolkit This is another way to approach Install Automation
https://docs.microsoft.com/en-us/mem/configmgr/ This is another
some of these can be combined
any way i can use 's inside of "s within cout example: std::cout << " some text ' some more text' "
c++
use \' instead of '
for more details https://en.cppreference.com/w/cpp/language/escape
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

I'm a Linux noob so π
try typing in mp4box --help
or just mp4box
GPAC command-line filter session manager
actually
gpac is a command
actually
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
windows is no different
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.
you are doing sudo apt install gpac?
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 ?
the package could be broken
idk
when you build it, in the build directory what files do you get
what's in bin
gcc?

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 π
And thanks a bunch friend. I was raking my brain over this one.
Anyone here who can help me out with ubuntu troubleshooting? I have posted my problem in #tech-support
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?
What do you mean by that like do you lose scope of some methods?
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
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?
@pure mulch what's the problem?
yes
Question - is anyone around here familiar with the "bdl" file type?
I don't personal do anything CAD related, but 'bdl' files might be CoCreate CAD files.
https://www.ptc.com/en/support/article/CS94268
BDL files from CoCreate or Direct Modeling contains 3D model and Annotation (2D drawing). How to import these files in such way to have both of 3D and 2D?
Yeah, that's what I heard too. I've got some bdl files that I need to export into more accessible formats, but finding a tool that would allow me to do that has proven to be something of a challenge.
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!
anyone here wanna help me troubleshoot why opengl isnt working in visual studio?
i solved it nvm
oh man, i remember back in 2010-11 i did a thing in c++ with opengl and getting everything to work correctly was a damn nightmare π
#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?
Hi, did you solve it π ?
Not yet unfortunately
I have to change a word from a sentence. Itβs an assignment from school
i mean, you still managed to change the word though
Yeah true, but I donβt think that he will accept this
what would he accept then
woaaaaaaaah
simple stuff
not even programming
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.
use stack widget?
I'm using Stack()
If the sentence is just shown once, without the memory overload stuff
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
if you want to confirm that your allocated memory size is wrong, you could try to allocate way more than you actually need
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
my actual knowledge is just invalid syntax
C or C++?
It's C
I'll try this, hopefully it works




