#development
1 messages · Page 82 of 1
Man do I hate the fake "inclusion" messages from the top. It's all fake positivity and lies to boost profits.
If you really cared, you'd be taking a salary cut to force pay matching across the company.
Yeah slowly learning them all better. If you know them well enough it's easier todo remote events.
When you don't know what people like it's hard to orginze stuff.
Haha I meant inclusion as in they don't tolerate discriminatory actions / speech etc.
Our thoughts on compensation, and how they reflect Oxide's values.
If they can't put their money where their mouth is, it's all empty talk.
That's the kind of company I'm aiming to work for in a decade.
I worked some place that an employee told me the company was very opposed to sharing salary.
I told them the bureau of labor and multiple court cases have stated they can't prevent you from doi g it off the clock.
I then proceeded to tell everyone my salary, because clearly the company had an issue that I need to help fix. 😆😆
I never did get in trouble. 🤷♂️
Yeah, that's the kind of stuff that lets you understand a company isn't really out for your best interests.
If they aren't doing salary sharing and providing transparency in pay, then everything else is in service of making more money at the expense of everyone not at the top.
Says $173k to live in bay without distress with 3 kids. I wonder if that's with spouse working too or not?
I honestly have no idea on cost of the bay, but remeber ppl telling me a house costing over a mil. Lol
They've got hybrid work. So some of the jobs are remote.
company was very opposed to sharing salary.
pretty much all of the companies i've been to
Which tells you a lot about the true company culture.
which tells me i need to migrate
Exactly.
Idk international laws, but if you are in the US just give em the 🖕 and share it anyway. 😆
Unless you can't risk your job ofc. Haha
Unless you can't risk your job ofc
i'm past the point of being scared of losing my job
Honestly, if companies think that discriminating will make them more money, they'll do it. But they'll do it behind closed doors, because the public message needs to be a message of inclusion so they don't get bad press.
i just yoloed out of my way of the old company
hey but do they at least have a fun twitter account that they tweet at other companies to talk about fast food and share emotional support with?
nah, i don't do fastfood
i'm already at the point of: if we are not agreeing. i'm leaving
Fun Twitter accounts! Where they let an unpaid intern goof off on company time to give themselves a hip and trendy image!
obviously a company talking about square burgers and pringles on twitter cant have any twisted morals going on behind the scenes
if they have twitter, they are morally right
This is the attitude everyone needs to have. Your job should exist to serve your needs.
the salary of my last company was small for a associate dev
my current one, offered like 40% increase
so now i'm the youngest in the team
the other associates are 2yrs older than me
I'm finally old enough I'm often not the you gest on the team. Feels... Weird... Haha
For the longest time I was always the youngest dev. Now when we get like interns and stuff it's like, wow I'm the older person. Lol
I still am not like the oldest, I'm usually middle of the pack now. Haha
The process of getting a raise goes something like this:
- Ask for a raise, explaining why you deserve it.
- If they refuse, then try to agree on a goal (within a few months) that would entitle you to a raise.
- If no agreement can be made, go to 6.
- If you reach your agreement within the time limit, and you get the raise, go to END.
- If you reach your agreement, and do not get a raise, go to 6.
6: Submit resumes and interview for jobs until you get a raise you're happy with.
7: Send your new boss a copy of your new salary, along with a 2 week notice explaining that you're leaving because of the pay issue.
END: Yay! You have a raise! Go celebrate!
I especially love step 7. It's the most fun step.
my story was
Hopefully your existing job can give you a raise. But usually that's not how things play out.
I'm asking what was needed to become a senior dev,yes it's too early,
but basically i am already doing so much for an associate
So job hopping is often the result. It ends up hurting companies the most.
they deserve it
Yup.
That's why most places typically have a position that's a bit above entry level. Like, a newbie would have 0-2 years experience, a middle dev would have 2-5, a senior would have 4-6, and a lead architect would have like 7+ years
but ehh, company is a large enterprise and they can't do this without approval from higher ups
so job hopping way way easier and faster
Which is once again, why leaving is the better option.
a middle dev would have 2-5
this, I need to be a middle dev
not an entry level doing what someone with a higher slaary does
One company called that "senior developer" and another company called it "associate developer" and another called it "developer". Naming is all over the place.
said to my manager that I was already on process of hiring from another company. Never looked back
Honestly though, I think it's a moral responsibility to make any pay-related departure a public event. If you're being underpaid, so are most of the people in your area.
😬
so are most of the people in your area
I do know this. but corona prevents me from migrating
I mean, your department.
oh...
Like, your coworkers.
i thought as a whole
Nah, there are companies in your area that probably pay well.
from what I heard, the company salary is low for associates
but is competitive for seniors
@wind horizon probably typing up some huge essay.
i mean, my new company is based in AUS sooo
i know work with "mates"
😆
lol accents
Titles are so stupid, I think companies should try and consolidate more into a tier / lvl systems. So much easier to know what a role is across companies that way.
Engineer 1
Engineer 2
Etc. Usually engineer 3 or 4 Is Sr but then one place I worked engineer 3 was staff and there was no Sr title skipped right over it.
Yeah, levels make so much more sense.
haha
You are considering migrating when covid is over you said? To like another country?
That sounds fun, I was planning my first international trip when covid happened.
Had finally paid off lots of debit and saved up cash for vacation, then shut down. Haha
"i dont care about debts rn" i think is how a lot of debts become an issue
Been there done that, I mean enjoy it while it lasts but just know at some point later you'll prob be like. "wtf did I do" 😅
The right way to handle debt is to have none of it.
As a software developer, you probably make enough money to not have to worry about debt, as long as you can manage your finances well.
If you can't do that, literally go take a class on how to manage your finances.
It'll be the best financial investment you make in your whole life. Either in time (self learning), or in money (paying for a teacher).
Well leveraging debit isn't bad if you are smart about it. For example real estate often appreciates faster than the interest on the loan.
Yes, but 2008 was also a thing.
Real estate isn't as sure of a bet as people would like you to believe.
Yeah so don't leave you self in a spot that something like 08 will destroy you. haha
Also, a mortgage is reasonable. Pretty much everything else is bad debt.
It's not sure, but it's still very good often.
Never invest money you can't afford to lose
I mean, the housing market is set up again for another huge fall.
The big problem was that if you bought a house in 2006, you ended up losing your initial investment AND you suddenly owed more than the house was worth.
Even a 20% downpayment wasn't enough to cover the drop in housing prices in some areas.
We will see, I'm too afraid to invest in housing right now. (outside my primary residence) though with how high it is right now
Right but if it was primary residence even though you lost money you still had a place to live haha
Unless you leveraged way too much and lost your income oops
China's real estate market is current in the middle of a Thanatos snap.
That normally would be bad, but they've also invested huge sums of money in real estate outside of China. When things get bad, lots of them will try and liquidate their assets in other countries, driving prices down around the world. BOOM. Another unstable housing market suddenly collapses.
And by "unstable housing market" I mean literally every housing market in the world.
How much residential do they own vs commercial I wonder
And also the financial markets, because they're using housing as a financial asset.
Right now demand is just too high, lots of the country can't even keep a few months supply. nuts
Enough that multiple major cities in Canada have been effected.
Source: https://www.scmp.com/magazines/style/news-trends/article/3051767/move-over-toronto-and-vancouver-why-rich-chinese-are
I'm surprised there aren't moire laws regulating that
From January 2015 to August 2016...
a 55 percent increase in only 19 months.
The government started implementing laws, but they are too little too late.
And laws that help push housing prices down will only make the impending crash worse. (probably)
Imo all investors in residential should be regulated.
Sure building and such whatever, but owning residential to like lease and stuff just hurts ppl who need homes.
Let those ppl build complexes to rent, don't let them drive up single family home prices imo.
a 15 per cent tax on real estate transactions by foreign buyers
That's like, not even enough to do anything, considering you'd still be making a HUGE return on your investment, even with the tax.
The Chinese market was so obsessed with housing as a form of investment, that a single city implementing laws isn't going to stop it. It'll just drive them to pump housing prices somewhere else.
But this is far away from development.
Well I meant on a national lvl not city
Not sure how close we should stick to the topic
haha housing in a dev channel
Yes, but also no.
You think a government will turn down multiple billions of dollars of investment?
Not that I think they will, but think they should.
But yeah way off topic. lol
I think it all comes back to this. Most governments aren't putting their money where their mouth is. People in power aren't investing in their population, because that doesn't help them get reelected.
Ah, the classic debate between "should" and "are". One of my favorites in software design.
Always with the "should", never with the "are".
If more people spent time working on what they can do, instead of what they should do, I think the world would be a better place.
At the very least, there would be more engineers around, and they're fun people to talk to.
I switched keyboards and now I'm so slow retraining my hands haha
I mean, this gets back to one of the classic struggles in engineering. Design vs implementation.
You want things to be perfect, but you only have so much money and time.
Some decisions are hard, so you waste a bunch of time on trying to find the perfect solution, and you never get any solution.
Some implementations are easy, and you ignore them until it's too late and things have gone wrong because you thought you could wait just a bit longer.
The entire history of programming languages is basically "That language made X, Y, and Z mistakes. We'll avoid them by doing something different!" only for them to make new and more interesting mistakes instead. Rinse and repeat for several generations, and you have modern programming languages with all their features and quirks and flaws.
Maybe I love programming so much because it's the world's slowest and largest train wreck.
Yeah I think usually it's better to master the pitfalls than jumping langs since there will just be new ones.
Unless that new lang some how better solves the thing you are trying todo, like switching from a interpreted to compiled when it's needed.
jumping langs
truly what separate developers
some know how to do things
some know how to do around things
"housing development" 
"real estate development"
Sir, this is a Jamba Juice. We use blender here.
https://httpstatusdogs.com
This is the best website I’ve ever visited.
Dead
That's a pic of my wolf hybrid playing dead.
He’s adorable, and copying my look when Xcode says Build Failed.
He’s not throwing a MacBook tho, so he’s not quite nailing it.
He said roo roo
Uh, does trying to eat the charger for one count? Well, for a mbp.
Well, I haven’t done that before, but if his intention was to put his rage out on something then sure!
It was blocking the entrance to his den.
Hey folks, looking at a go application at the moment and seeing that despite serving on non-ssl the application is setting the “secure” flag on cookies. Would anyone know a way to either
a. Enable the secure flag only when reverse proxy is forwarding to the application when using SSL / https and change this accordingly
b. Disable the flag by default and set it in the reverse proxy via the nginx proxy_cookie_flags parameter.
What is considered to be the better option/best practice here?
Project link, with line in concern: https://github.com/autobrr/autobrr/blob/577960576d41c9e2b7b5a44c247ac8ded1b46d89/internal/http/auth.go#L52
best practice would be to use an SSL on the Application (even if self signed)
Cheers for the input. I’ll look into this tomorrow.
There are 10 types of people,
Those who understand binary and those who do not. 
There are 10 types of people,
Those who seen that joke countless times and those who haven't
Oh, Wait you said 10 people but only named 2 examples? where are the rest!
There are 10 types of people:
There are people
There are
There
Binary 10 translates to decimal 2. The part that always bothers me about that joke is people say that without any notation of binary and completely confuses people because they didn't state what base there counting in. The normal base to expect numbers to be in is base ten, and anything else should be labeled.
base ten, binary 10, same thing
No... Base ten "2" == base two "10".
There are 10 types of people:
1: Those who do not understand binary
10: Those who understand binary
10: Those who understand ternary
10: Those who understand quaternary
10: Those who understand quinternary
10: Those who understand hexternary
10: Those who understand septernary
........
........
10: and those who weren't expecting an octal joke
Other number jokes:
oct 31 = dec 25
For those who don't understand:
Which probably doesn't help anyone who doesn't already understand. 
octal number go brr lol
The "why did the computer programmer dress up as Santa Claus for Halloween" joke?
if u know octal numbers, ig
or is it if u dont??
Because Oct 31 = Dec 25
Also octil is abbreviated as OCT alongside October. Also base ten decimal is known as DEC alongside December.
So im developing a login interface for a college project and am thinking of hosting an sql server on a raspberry pi from my home and being able to remotely access it from anywhere, how manageable would this be and what would I need to do in order to be able to remotely access it?
how manageable
as managable as running it in a x64
what would I need to do in order to be able to remotely access it
you mean to access the database or to configure it remotely?
check port forwarding
I can access the pi (at home) from college using this, but its how I create and run a database on it which is accessible through my login application
If you can access the pi outside and you only need for the application to access the database on the same machine then I don't get your question
If you use ssh, which I assume since that putty, then you only need to open a firewall and/or port forward 80/443 also
@nocturne galleon
Pleas write this in powershell code for me. If you have quastions ask me.
I do not speak German, but I think this is correct, but written in bash.
echo Erste ganze Zahl eingeben
read varA
echo Zweite ganze Zahl eingeben
read varB
if [ $varA -gt $varB ];
then
varMax=$varA
else
varMax=$varB
fi;
echo $varMax
for varTeiler in $(seq 1 $varMax);
do
if [ $(( $varA % $varTeiler )) -eq 0 ] && [ $(( $varB % $varTeiler )) -eq 0 ];
then
echo $varTeiler;
varGGT=$varTeiler
fi;
done;
varKGC=$(($(( varA * varB )) / varGGT))
echo Das kgV ist $varKGC
echo Das ggT ist $varGGT
why should we
This looks like it's a cropped photo of a german programming test. You want us to do your work or something?
Interesting. It looks quite easy to be on a test.
yea it may be easy for you, but you might be giving away answers for free
can someone help me
with a code generator
that automatically copy & pastes the code
?
what do you have so far?
https://www.autohotkey.com/docs/commands/Send.htm & https://www.autohotkey.com/docs/commands/Random.htm
The Send, SendRaw, SendInput, SendPlay and SendEvent commands send simulated keystrokes and mouse clicks to the active window.
The Random command generates a pseudo-random number.
these guys
is all i have
and idk how to actually code
i will watch youtube videos soon but i thought peer to peer might be better for me to learn ^^
ohhh. was expecting to review code not teach someone. currently playing so i can't at the moment
thats fine ^^
this is like
baby level coding lol
but its something
i want to make a macro
xd
that clicks around on something
and presses a key that pastes a new code everytime
what is the "new code"
I mean easy as in a first year computer programming course. That style is something I have seen once or twice only. Is that a common style?
could you give me a rundown on what the software should do
the random string of letters / numbers
when i press N for example
create a string of letters/numbers
and paste it
so for example
N = D8sPw32s
I see, how are you going to use it
to post on a small app
the names cannot be the same
so this is my way around it lol
What do you mean by that?
agreed
hello everybody im having an incredibly annoying issue in VS code, whenever I right click in the code editor the context menu opens on keydown of right click instead of on keyup, so it automatically chooses whatever option my mouse is on whenever i release right click. any ideas on how i can like rebind the context menu to right click keyup instead of keydown?
using a mouse or trackpad
mouse
try using another mouse
happens on my laptop's touchpad, my rival 650, and a deathadder
fixed it by installing a different version
but why
Anyone have experience with mongodb atlas shared tiers (M2/M5)?
hello im new to lua and trying to program stuff with computercraft in minecraft and throws this error and i cant get behind it
pretty sure you need to change else to elseif and move the end to after the elseif block, but tbf i don't know much lua either, just messed with it a bit for computercraft and configuring neovim
how can i get a c++ to send out keyboard input;
if that's what you mean
ty been looking for that for a good hour of searchin g and it was all user input
I have a decent amount of Mongo experience, what was the question?
Just having some surprisingly bad performance on the atlas free tier and wondering if upgrading will help
The shared tier is only good for light weight workloads, what would you estimate your read/writes?
It could be something else such as network or code reconnecting frequently, poor indexes, etc.
Unless they have blocked it on the shared tier you can turn on profiling to help understand why a read/write is slow.
https://docs.mongodb.com/manual/tutorial/manage-the-database-profiler/#specify-the-threshold-for-slow-operations
Alright. RANT TIME.
Go is possibly the worst designed language ever. Fite me.
Caveats: Not "worst designed" in terms of functionality. There are several other languages with strictly worse specs. (Looking at you PHP)
Go developers don’t have enough energy to fight you. They used all their get up and go writing a new way of doing time for no reason with a driver no one has ever heard of.

Not "worst designed" in terms of intelligent engineering tradeoffs. Go is actually fairly pragmatic about making rational tradeoffs for performance vs functionality vs developer work.
Go is the worst designed language by the fact that they hate humanity. Go is the only mainstream programming language that actively hates developers simply for existing.
Seriously though. Go is the most pretentious, petty, and spiteful language I've ever touched.
At least JavaScript admits that there's lots of bad parts. At least Java is trying to clean up old interfaces without breaking backwards compatibility. At least C# is consistently adding new useful features and tools that make the language pleasant. At least Python was willing to rip the band-aid off and break important interfaces to improve the language. At least Rust is willing to spend years tweaking their interfaces and design to make something that really works for developers rather than against them.
Ngl I’m looking at a go issue rn.
And trying to figure out why the database didn’t migrate correctly causing the front end to crash entirely because there’s no data in the tables.

Why no sad Linus emote? That post needs a sad Linus emote on it.
Seriously though. Go spends so much time hating developers. They claim to be "fast", but they waste unnecessary compute cycles to literally randomize the order of hashmaps every time they are iterated. It's a stupid and pointless waste of compute cycles to stop stupid people from doing stupid things.
Link: https://stackoverflow.com/questions/55925822/why-are-iterations-over-maps-random
It's almost tragic that it finally took Rust, the first real potential competitor to C, to finally cause the Go developers to get off their high horse and start trying to change the language. After Rust started gaining popularity, suddenly Go had a bunch of new features. Things that they had kept saying they were never going to do. Features that they had to start adding to prevent Rust from bleeding them dry from developers contributing to the language.
It's "almost" tragic, because their own haughtiness put them in that position to begin with. The only languages that stand the test of time are the ones that you're forced into using, (Cobol in legacy apps, JavaScript in web apps) or the ones that are designed cleanly and make them a joy to work with. (Python)
Go isn't really a tragedy, because the fundamental design of their language is about the value of the code, not the value of the developers. It was written and designed by a company that treats workers like disposable cogs. Go actively fights developer workflows to force "better code". I understand the theory, but in practice it's a horrible idea. Python has ended up as the second most popular programming language because it's clean, concise, and simple. By comparison, Go is excessively verbose, clunky, and lacks powerful tools. It was inevitable that many good developers are now contributing to languages that respect them and their time.
Why?
someone here loves go
Says it's the python version of compiled languages
Compared to C, sure. Go is an amazing leap forward.
But compared to what Rust is doing, Go feels like it's still decades behind other languages.
And if "like compiled Python" means "rigidly defines exactly what style and functionality you are forced to use", then he doesn't understand Python.
Ask him to boot up a Python REPL and run import this.
Python writes it's philosophy as poetry.
Go writes it's philosophy as an engineering manual.
Python's home page has clean, concise code as the first thing you see.
Go's home page has a giant blob of cooperate logos.
They are not the same.
As a tool, Go is perfectly serviceable. It's a functional hammer. You can use it for almost anything, even if it's rarely the best choice for the job.
But as a language? Go sucks. I love languages because of their expressiveness and flexibility. Go has actively fought to reduce that freedom.
Want to iterate over a list in a random order? Here's python:
import random
li = list(range(10))
random.shuffle(li)
Want to have code that doesn't modify the original list? random.sample(li, len(li)) will give you an iterator with a random order.
Clean, simple, concise.
C++ is verbose and a full of messy design decisions, but that also means you can find the exact tool you need for your use case.
https://en.cppreference.com/w/cpp/algorithm/random_shuffle
C#? A bit non-obvious, but once you read the code it's pretty clear what it's doing, even if you don't know anything about LINQ lambda expressions.
System.Random rnd = new System.Random();
IEnumerable<int> numbers = Enumerable.Range(1, 100).OrderBy(r => rnd.Next());
Go? Nothing. No standard library. No set of tools designed for working at any level higher than "here's a basic linear congruence generator".
So you end up with hilarious but fatal problems like people using Go's "feature" of random map iteration to do something incorrect that leads to hard to diagnose bugs.
See: https://twitter.com/CAFxX/status/1135190309514620928
Yeah, this is a talk for professional developers. If you're programming for fun, use whatever tool you prefer.
When you're just building stuff for fun, sometimes it's fun to use clunky tools for the extra challenge. That's pretty cool.
But when you're using a tool for professional work, it's nice to have something that makes your job easier. Go is the opposite of that.
I mean, I'm a complete nerd. The number of people in the world who would write this many words about something that's a minor annoyance and also unironically use words like "linear congruential generator" is probably small enough to fit inside a single family home. So I'm not expecting a lot of back and forth discussion. If just one person finds my rant entertaining, then I've accomplished my goal.
You need someone to help debug? Not sure if you're working with confidential stuff.
That's it?
Dang database timestamps.
Well, it doesn’t really help that we changed sqlite drivers
Custom code to handle the extraction, or updating the storage format?
I mean, time is one of those tricky things that always finds a new way to bite you.
Lol at #30. 
The follow up article has some real gems:
- Time always goes forwards.
In the computing world, time is a polite recommendation with zero real meaning.
Related: I'm dimly aware of the work that went into GPS satellites, but I can't begin to comprehend how anyone actually managed to make it work. You literally have to calculate relativistic effects to get our modern level of GPS accuracy.
I'm not sure if it's fair to talk about flexibility and compare statically typed compiled language to an interpreted language like python. That's the entire purpose of those type of languages is to be flexible, easy to code, and easy maintain.
I do agree that go is often over hyped and potentially picked for the wrong reasons. I do enjoy the go language though
I think a strong use case for statically typed languages is performance, for example building cryptography in strictly python or JavaScript has terrible performance. However that is why we have created bindings / apis for many statically typed libraries. So we can interact with them as if they're part of the language we're writing such as python or JavaScript. This kind of gives us the best of both worlds.
One of the few more unique aspects of go I will give it an interesting credit for is how it bundles everything into the executable rather than needing to link to other libraries so it is much easier to build a portable application or install that application.
I think there are bundling solutions like this though for C/C++ where you ship the lib and reference it in the directory.
The downside to this is Go is historically a much larger binary output vs a C/C++ version and patching those libraries involves doing Go builds instead of updating linked libraries.
Ofc that comes with increased stability, so trade offs. Also I don't use a Go a lot, so it's possible someone who uses it a lot may be aware of ways to connect linked libraries instead of bundling them.
Last thing because that turned into a wall of text. Lol
I think Golangs biggest problem is that it's not a mature language. Likely anything you want todo in C/C++, Python, JS, Ruby, etc have libraries for virtually everything. Go I often ran into half finished libraries or just no library at all.
Thats not a fault of Go though, just growing pains.
You can in fact connect to linked libraries. One of the pieces of tooling that I use in one of our production pipelines requires a dynamically linked library.
Also, go has (imo) a reasonably robust standard library. There are a lot of times I don't ever need to import anything outside of it.
Also, range iterates sequentially, not whatever that graph is.
just growing pains.
I completely disagree. Rust is almost exactly the same age as Go, and has spent even less time in a stable release.
But Rust has a standard library function for iterating a list in a random order.
https://rust-random.github.io/rand/rand/seq/trait.IteratorRandom.html
Extension trait on iterators, providing random sampling methods.
Why are we replying in wall of texts, its hard to reply to each points.
Please try not to tell the whole thing so it's easier to dicuss
Python is the community libraries would be standard in future releases
Maybe go would add popular libraries
That's fair, but the discussion is complex enough to need complex answers. Also, there's a large time gap between some of the replies. I'm occupied right now, so I'm not going to be able to respond quickly to specific points until much later this evening.
@trail remnant I think there isn't a random iteration std library because of go's focus on being a language for networking and systems pipelines, where I suspect random operations are not desirable. Certainly not for anything I write.
To the more general point, I picked Python as a comparison because 1: Someone else compared them, and they're very different. 2: Python is the prettiest language I know 3: Python is highly successful because it is well designed.
I had a more specific comparison of a small technical problem that is easily solved by a good standard library, where Go is lacking that functionality, which led to specific failures in high-profile examples. (The literal Go conference hosts made the mistake)
I like c/c++ but i often reimplement common features, why? Because thats the philosophy of the language.
Not because the standard library is bad, doesn't mean the language is bad
Agreed with roaldi regarding the purpose of the language
Yeah I think we have to keep in mind these other languages existed, so when Go was created it was created to solve some specific needs the creators felt weren't being well served by the current languages.
Also, I'd like to state how much I LOVE giving a user a statically linked binary, and telling him to run it, don't touch anything else. Takes a lot of layer 8 problems out of the picture
Go is a great language for some use cases, but I would 100% agree developers do tend to hype up go and find excuses to use it.
But hey who doesn't want to play around with a cool new language considering most of us are working on many decades old languages. 😆
Yea, been working in python for a while..loved it
But switched to another language to learn about other things
Indeed, now we use JavaScript to create slow desktop apps 
Yeah so I'm a HUGE JS lover and almost all my time is spent in it, but even I hate electron apps. 😆
Electron is nice for spotify. But most of the projects I see is disappointed when they see performance and optimization.
Theg started jumping ships
Tauri is one, it's like electron but rust
Yeah and electron is a mess. Maybe performance will be a different story as WebAssembly takes off more and people begin to use that in Electron. Than we can use some more efficient compiled languages to achieve some tasks... But that all just sounds nice until we see someone pull it off. Haha
Overall electron is just so nasty imo, if we are going to embrace the idea of web tech for apps we need native support on Windows and MacOS.
One thing ks certain, calling native from node is horrendous
Not one project that calls native doesn't have problems
If we can get apps Windows similar to like WebOS (now use for LG TVs) it could be great for lots of simple apps. It'd still have performance constraints with demanding apps, but it'd provide an easy path to publishing a large amount of apps.
Think like these chat apps on electron, the web browser handles them great it's the electron packaged version that tends to suck and chew up battery / cpu.
That's the beauty of python.
It's slow performance can be offseted by native code.
And then numpy appeared and took over the world
Webos bad, cant change my mind
Its html5 and lack apis
They can't even create game stream software in webos iirc
Since ir doesn't provide enough api
Netflix and other video streaming is fine though
So that's why go isnt necessarily bad. Maybe the community just needs time to use it in prod
I called native crypto and such in node without issues. Works pretty good. You can make your own too.
I'm sure the Python one is better, since they been around on server/desktop way longer haha.
For clarification their toolchain is the bad one
Even as something as popular as node-sass is error prone
Thanks toolchain
Right those apis don't exist for the web so they have to be provided as a API from the OS in like an sdk. Which kinda sucks, but maybe that also helps prevent ppl from using JS where they shouldn't? Like if you have a complex desktop app stop trying to us JS. Lol
Oh ok, I thought you meant the built in or making your own.
Imo, it just makes a lower barrier of entry
Big companies dont need to spend much more to have their apps in webos
Which is a plus
Imagine if it took a long time for netflix to put it in webos
Like the motherfcking Nintendo switch that still doesn't have netflix
I have the original switch and netflix is a dream that seems impossible
Build everything 
I know that i need to change config to make it work for me
But damn
Change config?
Yeah web apps have super low barrier to entry and honestly make apps easy to build, because likely you can share a lot between your web app and your mobile/tv/desktop if it's natively supported.
Do some tweaks, i don't expect for me to clone the repo and build just works
As someone who used cmake. It's an expectation for me to do something before it builds
Indeed
I mean it should for the most part, if ppl have messed up repos that are pita to build that's a fail imo. (when talking JS or Python etc)
Maybe i haven't used python to its limit
But so far I haven't encountered something as node simply not working when you're using a later version
Nice
Now i can choose between my project running or having new features
I'm not good with Python, I only know what I do from working on a web app that had a BE in Python for 2 years. I learned what I did just when there was something I didn't want to bother a Python dev for.
I hate being FE only, but also wasn't interested in learning much Python.
It's a good language from what I used, but just wasn't something I enjoyed working in personally.
Well node projects should set engines in the package file, which will halt you before proceeding with the wring version. Most things are fine on newer versions, I think most breaking stuff was back in those v6 days.
I'd also suggest most repos have .nvmrc files. That way if the person cloning it uses nvm they can just run nvm use and it'll auto switch to the node version suggested for the project.
Off topic, I hate when ppl are in public areas with their phone on speaker phone. Like I don't want to listen to your whole convo and you talking loud into it. Lol
idk, welcome to the west
And I'm back. And the discussion has left the realm of language design. 🥲
And the last post was over an hour ago. 😭
To my earlier point: I think that the biggest competitor to Go is Rust. And I believe that Go will share the same fate as Ruby.
That means it will start out looking incredibly amazing, gaining ground fast compared to the existing languages, looking like it will become the next big thing,
Only for the real winner to make itself known after a long enough time has passed for people to try the next "hot" thing and decide that they'd rather use something that has fewer rough edges and a lot more of the comforts they're used to.
So, Stack Overflow's 2021 developer survey describes Go's language design problems in a few graphs. In just a few pictures, it perfectly describes the broader industry sentiment, and charts the next 5 years of Go's future: slowly falling into irrelevance outside of a specific niche. (On the plus side, that means that you'll get good pay if you learn Go in 5 years.)
Note: These graphs describe which languages programmers want to move to when they're already writing that language. The colors represent which language they come from. For example, this is the graph of Java developers and Kotlin developers. Most Java devs want to stay with Java, but some of them want to move to Kotlin. Effectively no Kotlin developers want to move to Java. (The bulk of people who mention Kotlin want to learn it.)
I'm intentionally leaving out JavaScript and Python out of the comparisons below because they're both so popular that basically everyone wants to learn them and everyone wants to move away from them. They're also incredibly general purpose programming languages, so adding them to the chart doesn't help explain why people want to move to/from those languages, unlike more narrow comparisons.
For Go, we can compare it to specific groups of languages.
When compared with the other compiled low-bloat programming languages, there's the hilarious tradeoff between C and C++, where many developers keep moving back and forth between them. They're both frustrating developers and making them want to leave. Meanwhile, no one wants to change from their existing language to write Go code. But the most interesting language is Rust. There's a sizable chunk of developers who want to keep using Rust, in spite of it's small usage. Meanwhile, there are few enough developers who love Go that it doesn't register on this graph. That's a VERY bad sign for a language that's supposedly young enough to have troubles with it's standard library, when Rust is even younger.
I'm a big fan of kotlin on the jvm. The improvements in nullability are 👍
"Okay, but that's not a fair comparison", I hear people saying. "Go isn't designed for bare metal code, while C/C++ and Rust are OS level languages".
Okay, so lets compare the popular languages for sever development. <See image> Ouch. That's rough for a few languages. The only people who like PHP are experiencing Stockholm syndrome. Plenty of Java developers are planning on leaving Java behind for basically any other language, but only desperate Java devs have any desire to learn Go. Outside of the clutter of the web languages, there's very little interest in Go. The people who have quality tools don't have any reason to switch to Go from a language with powerful tools for managing web servers.
Nullability is one of the best features of C#. It's a new-ish feature, so existing code bases probably don't use it, but I can't imagine writing large chunks of new code without those tools. There are very few things quite as nice as almost completely removing nulls from your entire code base.
You know, the more I sit and think about it, one of the biggest reasons Go is bleeding is probably Docker.
I'd take those graphs with a grain of salt though, back in the day everyone answered them but tbh most co-workers and old co-workers I know don't do them and a lot of them don't even frequent stack overflow anymore unless it just appears in a Google search.
At the end of the day it's kind of a use what you is best, which can be a mix of what is truly best and what your team knowledge is.
I'm not here to judge any languages, if I was I'd easily drop Java below Go simply because I hate working in Java / the syntax. That's a silly thing to say though, since it's personal preference. That's why I try not to judge a language and instead just select one based on the problem and team.
We the community create the graphs. the graphs shouldn't create us
graphs with a grain of salt though
^
In other discussion, does anyone else love watching a bunch of docker layers / imgs pull at once. Something about seeing all those little loading bars fly across to done at once is fun. Lol
Docker layers are easily one of my favorite things, to think we used to run tones of scripts that prepped VMs or physical servers for app deploys. 😆
In other discussion, does anyone else love watching a bunch of docker layers / imgs pull at once. Something about seeing all those little loading bars fly across to done at once is fun. Lol
but docker hub changed such that they now rate limit layers

I mean it's still not slow for me, how many big layers are you pulling? 😆
I think rate limiting was fair, why should they be on the hook to pay for everyone's usage. Esp when business were using them for their layers and not paying in a dime.
What about a new version of docker hub that's distributed platform over P2P style network. It'd discover the closest peers, similar to like bit torrent. 🤔
agreed, these big business that don't pay
became more evident in log4j
they were benefiting from it for free
then suddenly these people complain about it
when it's LITERALLY FREE
Yeah haha.
I do think the maintainer of colors and faker in JS did it the wrong way though. He broke stuff for people intentionally and then said well big business should be paying me for this.
Breaking everyone's stuff means they are just gonna fork and forget you existed and more likely to damage your future.
Instead they should have posted an announcement or something explaining they are frustrated with companies using it and not contributing or donating.
But at the end of the day that's open source. 🤷♂️
The docker issue is different since it's actually costing them money to host and all that bandwidth. But ppl using your code is a bit of a harder justification imo.
Breaking everyone's stuff means they are just gonna fork and forget you existed and more likely to damage your future.
Instead they should have posted an announcement or something explaining they are frustrated with companies using it and not contributing or donating.
He did warned people about it though and said people should fork
And from what you said it's clear that the announcement didn't get to you.
But ofc people won't randomly read github issues and not everyone follows dev's twitter
to be clear, I am not promoting such acts
I'm in the neutral. since the Devs do great things and paid none, while these "fortune 500" benefiting from free work
Can anyone recommend a good deployment management software that can allow versioning?
Well its more of deploying software zips, executables etc and let them install on different machines. Or to package things
Basically similar to this, i need to find at least 3 alternatives https://chocolatey.org/
that's not deployment management
sir, that is a package manager

deployment management would be like terraform, ansible, docker, etc.
do u mean like sending a zip file to a bunch of diff machines
Indeed
anyone good with ffmpeg?
we won't know
What language would be better for Discord Bot development? Java, C++ or C?
none
Which ones are then?
the ones that are good
Could you be specific
no
Then why’d you respond with no answer
i believe its just
- JavaScript
- Python
discord.js is "standard" as it's updated a lot quicker than discord.py for new features and i'm pretty sure discord.py is no longer maintained by the original developer as discord is doing some weird shit with slash commands which will break the entire library or something
but there's likely a fork somewhere that's maintained
Any reason these errors are happening? Brand new to JavaScript.
(removed image, included info)
try copying the bot token from your discord dev page again
Fixed; the quotes ended up being unicode ones, and broke it.
👍
👍
What's your intent
Just trying to follow some dumb discord bot tutorial.
Got curious.
Sick of the usual Swift stuff lol
Yea, might be better to paste the tutorial here
Oh looks like an old tutorial
Feck- which parts do I need to replace?
Whats your version of discord js
13.6.0
Check the discord intents. Need to replace .client()
Or you know, dowgrade to v12
I tried filling it in with const client = new Client(), did nothing.
Oh no no. I mean check disocrd intents
How do I do that 😅
Discord.client( <put intents here> )
You're much better off reading their documentation than me explaining. They're better than me
looks like some python documentation
Yeah, took me too long to notice lol
Congrats
I dislike Discord.js, from docs to the way they decided to implement things. The Discord official docs leave a bit to be desired too.
I found a Slack bot was way easier to setup due to better docs and official SDKs.
how is the object factory goin for ya
?
Even discord’s webhook json shit is very vague.
https://superuser.com/questions/1397233/how-would-i-convert-a-windows-exe-to-a-macos-executable-app
Do you have any other suggestions to make a java-based program that i wrote, turned into an .exe file, so that its click-to-run on windows, be also click-to-run on MacOS? Or is the suggestion of the commenter in the link above, sufficient enough?
There's a software package for macOS called Wineskin that lets you take an arbitrary Windows .exe and wrap it in a Wine environment that you can copy to other Macs
the tutorial for making the java program to an .exe that i followed is this one:
https://www.youtube.com/watch?v=Mr_TdPuF-4g
Here's how to take your Java programs and convert them into fully self-contained EXEs. You make a single file, the user double-clicks it, and the program just runs. The user does not need Java, and they don't need to install anything.
The process involves four steps:
- With Eclipse, export your Java program as a "Runnable JAR File."
- With La...
Why turn a Java app to exe and then look at converting it to MacOS, Java is already cross platform. Guessing something in the original posts I missed. 🤔
You can program java and export them to be an Executable .jar but that would require users to install java oracle
and not all have it
and client preferred that it be as much as possible, click-to-run no installations required
which i understand, so making it an .exe makes it more safe for users without a JRE
do note that this is just a simple Reaction-Time test and recorder program, for a research
Hmm maybe leave it as as Jar, but then make a exe / script for Windows that just makes sure JRE is installed? That way the same Jar can be used on Mac, but just need a diff script for Mac.
I'd guess someone solved this before, but I'm not Java dev and the Java apps I used were Jar or docker files. Haha
Yes that would be easier if a JRE was already present in the system.... Interesting take too, might have to research more if I could make a script for both windows and mac that checks if a JRE is already install, and if not, go ahead and install, and if it is, just continue to run the .jar the next time its been ran again
I thought at first that all computers had java already installed but then again, i tried installing a pure windows 10 and tried java apps back then (mainly minecraft lmao) and it needed the JRE download
Yeah windows doesn't provide JRE by default, I think a lot less ppl have it installed these days.
I did something similar with a VPN, when the user double clicked it the shell script would check for OpenVPN and use it or install it and then configured it.
But it required 2 diff scripts for Windows and Mac, since Windows was a batch script and Mac was bash script.
I feel like a lot of the questions over the last few days have been some form of "my manager wants something and I don't have the skills to do it properly, can you help?"
?
"I don't have the skills to do it properly" I could just not ask here at all but I already have done a bit of research and before treading to a path that may or may not lead me to the correct answer, I tried to ask people with experience, as to save some time instead of being stuck to a solution that I thought would already suffice
What project is this for? That's going to determine basically everything.
A researcher in our university, asked for a program to measure reaction times of his participants, really basic, records keypresses and time intervals
tailored to what his research needs
Like, why is the person using Java and worried about deploying apps to end user machines? The whole point of using the JVM is that you don't need to worry about managing platform specific things because the JVM handles all that.
If it's for one specific, person, why is the deployment strategy a real concern? It's probably just faster to get on a video call and walk him through the installation steps than it is to talk with us.
Hmm if it's key presses could a web app be easier? No deployment to user systems needed or if it has to be offline still just need a web browser and that's it. 🤔
If it's for a fleet of user laptops, why is the IT department not handling the rollout?
If it's for a product you're selling, why did no one solve this problem before you started a company around that product?
Like, in all the cases, this seems like a solution looking for a problem, not a problem with no obvious solution.
There's a good reason JavaScript is the most popular programming language. Web dev makes things super easy for everyone but the developers.
We already talked through it and WE COULD go to the option of just letting the participants of the research just install the JRE separately and have a .jar file run, and we would ont have problems making an all in one click-to-run app
This is also an option, but my colleagues just initially opted for java because it was the most recent language that we had hands on and am confident in making a decent GUI / app
Now you're brushing up against the problem of cross platform desktop UIs, which has been an unsolvable problem for basically the entire history of programming.
Which is an eerily similar problem to "I have an idea, how do make a company to support my idea".
Even by the standards of the late 2000s, Java creates ugly GUIs. Pretty much any webpage with bootstrap thrown on it will look better to the average user than anything you could easily make in Java. That's not a statement of "better". Just a general observation of what's popular and widely used.
Does Java use a singular popular GUI framework or something? Most Java apps I have used have that same Java vibe / feeling. 😆
From the requirements, which includes
really basic
I'd say the simplest and best thing would be to go learn enough JavaScript to just write the app as a simple webpage.
This is a really viable option, while still early
hmm i guess time to start digging into my old javascript files again
React + a component lib makes it really fast, if but that does come at the cost of learning basic react I guess.
(like antd, BluePrintJS, or material-ui)
Yes and no. Java UI frameworks are all kinda awful in their own terrible ways. Difficult to use, completely not following the different expectations for OS specific UI elements, just plain ugly, etc.
but yea, i do agree with your statements, a web app will be easier, cross platform, maybe even make it mobile-otpimized if time allows
Mobile optimized is a HUGE plus. It turns out that most people primarily use their phone. And not having to drag a laptop out during an experiment is nice.
Or even just having a tablet to hand testers.
There's a reason JavaScript is the most popular programming language.
No one would argue that JavaScript is well designed, or a pleasure to use. But it's popular for a reason.
I definitely agree, alright this help eliminate problems later on (because our (initial) java app also includes having to automatically upload results to a database, might make sense that a webapp will make that side, easier)
Web development does create the problem of needing a hosting server, but you're already committed to hosting the individual files for download anyways, and compiling the app down to a single file is always possible.
hol up.
Your app needs to communicate with a central server, the UI is relatively light weight, and it needs to be deployed for use with end users. Why was a web app not your first and only choice?
Because it was like, 10 months since we touched web development 😅
10 months is nothing.
I reiterate my previous statement, with a slight clarification: The way you're asking the question makes it pretty clear that you don't have the skills or experience to do it properly. That doesn't make you a bad person, just inexperienced. There's plenty of opportunity to learn. But your questions do send signals about your skill level.
Well feel free to drop any questions in this channel or DM. Sure lots of others here have expierence in web too, since it's so popular.
Nice thing is a web app you can pack virtually everything you need into a docker file too for easy deployment. (if they use docker there)
+1 for Docker. I can't imagine deploying any serious application without using it.
Yes this is my very first project that has commissions that I have accepted, this is outside my comfort zone but still accepted it anyway with my colleague
First job kind of thing. Neat.
I used to work some place that refused to use it, so everything was manual install NodeJS, Ngnix, etc on a VM. Silly ops team there. Lol
Having a simple UI makes it an even better project to start learning web development. That means you're free to learn without the stress of trying to set up a huge complex project with unfamiliar technologies.
That's true
Yeah, that's the worst part about Docker. It tends to be an Ops tool, even when it should really be an everyone tool.
i will be going out for the mean time now to do some errands but yea, what you guys said is right that, probably starting to do researhc on javascript again, tonight, will definitely help speed up the process and eliminate problems
already have basics, just need a refresher
You don't start to understand how important Docker is until your Ops is having problems, and by that point it's too late. You're going to spend years cleaning up your Ops mistakes and teaching Dev how to play nice with Ops. Just start with DevOps and save yourself literal years of trouble.
Yeah it's super nice when you have local / dev docker files with even hot reloading. That way you just run compose and boom you got your whole project going. Makes docs way smaller, instead just gotta give new employees the docker cmds to get up.
Docker is so nice.
Protip for starting a new project: Get your deployment pipeline set up on day one, and use it whenever you're testing something.
That's like, lesson one of DevOps: use the same process and deploy often. Never stop.
I could go on a whole hour long rant about the huge benefits of just doing that one thing.
Haha yup that's the CD part of your pipeline.
Honestly, doing that one thing is the difference between functional teams and horrible ones.
If you can talk to a customer, make a fix, and get the new version in their hands within the hour, you'll impress literally everyone you work with, and everything will flow so smoothly. You deploy often, which means you find a fix mistakes and problems quickly, which means you never have huge problems pile up.
The opposite is also true. If you don't have a known process for building and deploying your app, or that process isn't used regularly, you'll run into problems whenever you need to do something quickly. That only leads to headaches and problems. The less often you deploy, the more you'll make mistakes, which just makes you less likely to deploy often, which leads to more mistakes when you do end up deploying.
Yeah it's pretty cringe to see a place doing manual deploys today when even many hobby apps are now automed. It's just gotten so easy to automate deploys with the tooling we have now, esp if you are deploying to the cloud.
Yeah, this stuff is so easy. Like 10 years ago it was basically impossible to do. Now it's built into GitHub itself, and there's like 5 major platforms for doing this stuff easily.
And you can always just take the manual approach and script your build, but run it in a docker container. That makes it easy to automate later down the line, and saves you from "it worked on my machine" syndrome.
I think the minimum barrier for a functional team is to do at least one deployment a week. (barring unusual systems like the space shuttle)
If you don't deploy that often, there's a functional problem with your team. If you can deploy that often, it's a sign that your deployment process is at least somewhat functional, since deployments must be fairly quick and painless. (Can't deploy every week if deploying takes hundreds of hours of work.)
But the truly functional teams just deploy whenever, and they can have a change deployed in under an hour. Usually within a few minutes, depending on the build times.
This reminds me. Something something Joel Test.
Good companies run at 10/10. Most companies are 2/10.
I have worked a lot of places that only deploy bi-weekly (end of sprint) but it was fully automated so it was easy to push out a hot fix within an hour. I think that's still ok, not apps have changes fast enough or teams big enough to be worth deploying every few days.
But I do think even on those teams they should have had fast releases, to not hold back new features. But I don't think it was harmful that they waited for end of sprint either.
I think though to trust you release process to go that fast you also need robust testing and you need full integration tests not just unit tests to provide the confidence in the tests that nothing is broken without manual review.
I think if you're doing weekly releases, it makes a lot of sense to deploy at the end of a sprint. Honestly, it makes the most sense for most teams, I think. They deliver value according to the business schedule. That's totally fine.
I think too many teams focus on coverage metrics based on unit tests. So many apps I have seen with 0 integration tests and instead have 80-100% coverage of unit tests where everything is mocked and really it could all not work together right. 😆
What's not fine is finishing a sprint, then decided not to deploy. If you didn't deliver anything of value to customers, what did you do for half a month? You literally had nothing that could have provided value? That's a worrying sign of broader dysfunction. (outside of end-of-year holiday weeks)
Lol. Gotta pump those % numbers up!
Yeah big business can move so slow sometimes no value is added.
They shouldn't, but they just do and it chokes out dev creativity and engagement.
But flip side I have worked places with too much energy and push, which results in burn out. Also devs that are too into their work can often become a bit hostile / toxic unintentionally, since they will argue their strong opinions with passion.
You need that perfect middle ground where your team isn't too big and can be agile and engaged, but also everyone is respecting work life boundaries.
I have only ever found that in startups though.
A lot of wisdom right here, people who identify entirely as a developer are often the most difficult as work becomes personal, as it’s their ego.
I work for a small outfit that isn’t a startup and sure I could get paid more but I know the company is good to me, and has let me do things no other company has like skip a day of work last second for leisure and comped me days off after a long project with a lot of hours. They exist but the trade is probably financial.
As far as big business, I actually had a major retailer, I’ll narrow down to massive hardware store chain almost derail launching a site because they couldn’t be bothered to properly license a font and getting them to do so was glacial. It was nutty.
part of a not really a startup but also not big of a company. can't say for work life boundaries. Sometimes we don't even work for 8hrs
Used to be part of a large enterprise and being part of the OPS team. always on the edge.
Coworkers sometimes had to skip vacations to fix
A lot of wisdom right here, people who identify entirely as a developer are often the most difficult as work becomes personal, as it’s their ego.
This is why, when I learn new things. I don't shove it to others, i'd rather look like a fool than smart asshole
atleast the fool can learn from his teammates and people like him around
Man I’m so glad I’m not dev ops, I’m glad dev ops exists but I just get to do my thing and not give a damn about deployments or infrastructure.
I like doing it, and when they aren't deploying new features. we are improving the infrastructure.
but it's stressful to be oncall and on the lookout
somtimes my friends had to drop online games to fix issues. that sucks
"sorry dude, i need to fix something so disconnecting"
it's not like it's their fault
Again, glad these people exist. I had a friend who’d have to rotate support and ops duty once a month and basically required to in cell service at all times and 25 minutes away from a computer for the weekend he was on duty. Never in my life have I had to do that. Basically,if I wanted to go skiing, as he was my ski buddy it’d be by myself on the weekend he was on call.
It was some tiny start up, so they didn’t have a team
btw @wind horizon and @trail remnant sorry for the ping
but I thank you for the messages and insights you provided
my colleagues have agreed to switch languages and we immediately have faith that it would be smooth sailing, because it resolved most problems that we will face if the app wasn't web-based
indeed, I was just scared of venturing again to another language that we haven't touched for months. Java was the very recent language we just used and we did not put too much thought on the pros and cons
Question about javascript's setInterval()
Since the app will be measuring reaction times, and most likely, the main threads will be on the tab that the javascript is working on, is accuracy gonna be a problem for it? I have heard other developers in my place that setInterval() had inaccuracies for them, but haven't had to test it yet tho, but maybe some here has had experience with it
was considering it, but still refreshing stuff from javascript so i might have missed other functions to use 😅
Gotcha! 🙏
damn i look like im talking to myself
🤣
that's all development is, it's just you saying
"It's always something"
"Here we go again"
"Alright now it should work"
and "that's so stupid who made this shit"
not to anybody in particular just yourself
So timers aren't perfectly accurate in JS, but on an avg day your working within mills not full seconds variance.
The time this isn't true is if for some reason you are blocking the event loop and a tone of stuff on the call stack.
I also kind of wonder in what case you'd use set interval to track the response time instead of just capturing start and stop times for each question / measurement? 🤔
If the plan is to keep moving between items every X interval I don't think the variance would really matter, since I can't imagine there would be a measurable difference in a few mills for the humen eye / reaction time.
But in those cases I'd log the start / stop time of each experiment, so if for some reason it shoots over few mills on a user you'd have it logged.
I'm not sure if this is the right topic, but I'm having a problem with HiveMQ in Java.
It's related to SSL, but that's about as far as my mind could get with it. Can someone help me out with this?
https://pastebin.com/8U4x1CEs
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Is it self hosted / local MQTT or is it cloud? Did you try connecting to it with some CLI tool to verify it has a proper / valid cert setup?
Cloud hosted on HiveMQ on Amazon AWS, CLI connects properly but I can't get a Java client to connect
Hmm idk Java very well, but if you share a code snippet / example someone here might be able to help you out.
Just be sure to replace user / pass / certs etc with fake stuff. Haha
"unable to find valid certification path to requested target" whatever it is connecting to has a SSL cert, which is not trusted by calling system. It's either self-signed (add your CA to Java) or often that is caused by not providing the intermediate certificates in the SSL certificate response
if you know the hostname and port, run openssl s_client -connect hostname:port (for example openssl s_client -connect google.com:443). it should print out ton of information, but in the end you have stuff like Verify return code: 0 (ok)
but 99% it is just you missing an intermediate certificate in the server configuration. If Java has only top level CA certificates in their own CA list, and your server only returns only the domain level certificate in the SSL answer, then there is nothing to connect the two.
Hmm you think a paid hosted HiveMQ on AWS would be using an intermediate cert like that?
Deff does sound like a cert issue though.
I watched a few videos and yes , the setInterval command doesnt really make sense, I don't know why I stuck on that, but upon watching I learned some ways to log the reaction time, without using setInterval(), so I am all good there, and the researcher was not really about needing super accurate response times, just need enough hehe
Lmao I was replying to a guy
then i checked like 30 mins later
all his replies are gone

Hahaha, sounds like a fun way to mess with someone.
Are you going like plain JS with HTML or using a framework?
For now, we are still waiting for the confirmation for the client to continue with the project
Still doing refreshers and in our plan, its JS with HTML
for now
might improve later (for sure)
its fun being this active again
I am still a 2nd Year College Student, currently on semestral break, next month gonna be doing my 2nd Semester, as a BS Computer Science student
ohh, so it's a school project
thought you're employed and looking for suggestion in your company project
Is it considered a school project if a Senior Student hired students to make a program for his thesis
he was a BS Industrial Engineering Student (yes I don't know why his thesis involves reaction times of student gamers lmao)
Yes
well if it's part of his thesis to outsource then sure
In the BS Com Sci space, it is common for seniors to outsource devs to make tailored programs for thesis
unethical for us
in my organization in the school, the more experienced devs take on the challenge to make programs requested by companies outside the college
if it's outside sure, but if it's for someone else's thesis
kinda of a gray
unless it's specifically stated
that the work done is considered to be outside of the researchers team
Understandable
Just asked the head who delegated us the project, it was cleared up to their professors that they were granted the option to outsource these kinds of things (e.g. Making a program tailored to the said experiment via other students of the university / outside of the univ) and only for that sole purpose (also included to give credits as to who made the program)
then that's good
to be clear. not trying to be righteous.
Just making sure it was stated so you're safe
I understand, I am glad that the heads had that in mind that we might be in trouble later on if it wasnt screened properly 🤣
yes because if it isn't stated. they would be in trouble in the defense.
their panel of judges might screw them over about how they created that
Would an industrial engineer be a dev? Not sure what that degree is tbh, but sounds like factory stuff with the word industrial and not a dev. 😅
I know at my Uni students that weren't devs could have others build software for their research, since the development of software is unrelated to the research or outside their field / knowledge.
indeed, but this should be clear as day when stated in the research.
Imo one of the best things you can do early in your career is try a lot of things. There are so many different roles and even within roles many different types of work. Like say you know for 100% it's dev, but there game, web, embedded, etc development and even in those more specialties.
I started in ops, like legit sysadmin style work, and moved into dev once I learned it's what I loved. I wish I had spent more time early on finding out dev is what I loved.
But I know plenty that went the other way from like dev to ops.
QA in internship
DevOps literally a developer and an OPS in 1st job
Dev in my current job
been trying out several
I never did Qa, I loved DevOps but I often found 2-3 weeks in I miss my pure dev tickets. Haha
My ideal is working on small enough team that as a dev I get todo some DevOps work / assist, but my main role is dev.
I dislike dealing with ppls emotions, so idk what I'm gonna do as I get old. Moving into management sounds 🤮
I mean I have no problem encouraging my teammates and such, but like when ppl have silly internal disagreements and such that managers have to get involved in.
as someone who lead a project. it's hard with emotions especially when I need to motivate people to aim for the deadline
Yeah motivating someone to hit a deadline can be hard, I think self reflection what motivates me most is when my employer / manager has just taken such good care of me that I want to help the company hit the deadline.
Kind of like hey they give me a great place to work with lots of flexibility and time off, so I want to be there for them when they need me.
But if it's an employer that is always pushing for a deadline, esp ones set by product or execs and not the engineers I'm very 🤷♂️ not my problem. Lol
yea, it's my "give back" if they are nice people
I worked one place that used monetary rewards, it worked for a bit but that doesn't work when someone has something else they value more. For example near holidays many ppl wouldn't work OT for the cash bonus.
Compared to being at an employer that treats you really well and rarely asks I'd work OT almost any time.
but I can't control my devs
happened to me when we had to work during weekends. and sometimes past 12am just to fix something
yea we had OT pay
but at some point. we'd rather sleep and rest
That reminds me of my ops days, too many late nights.
One time there was a huge issue and I didn't go home until after 3am and then got up to come back in at 6am.
yea that sucks, but in us. we had a free pass card. where they wouldn't expect us to go to work at the same time
because even if they did. I still wouldn't
Now being a dev, I have never had my phone rig in the middle of the night. So nice. Haha
if my employer asked me to fix until 3am. he better be sure he won't be angry when I am late
Haha yeah
Thankfully place I work now has an 8hr policy, no one is supposed to work over 8hrs ever and if you do it has to be something special you report to manager so they make sure you get time off for it and try to prevent it in the future.
I feel like we are living in some great years to be devs, we are in such high demand companies will go out of there way to try and keep devs happy right now. Haha
I feel like we are living in some great years to be devs, we are in such high demand companies will go out of there way to try and keep devs happy right now.
feel that. I switched work without even leaving my home hahahahaha
resignation and new job interview fully virtual
basically if they don't give me what I want. some company will
and it's not that hard anymore
Yup, my last 3 jobs were remote and I never went in person. But now with what covid did I don't even have to look for remote much, it used to be I'd get several office offers but few virtual.
But last time I switched jobs during covid there was sooooo many remote options now. Very nice.
i don't even know where my current job is located physically
never got to see it
True, which is why im getting my elbows out of there, since im still in college, loads of time to fuck up (not including to fuck up in important commissioned projects, but time in academics to fuck up and still be safe), but at least get experience in many things before heading out to the real field
i am at same company for 21 years now. But then i am at home office for over a decade now, before corona they asked me to do some in-person meetings for like a total of 1 day a week, sometimes not even that. Since Corona, Teams got standardized, so i am not going to the company for months. I think last time i was there was in September last year ? I had a Pixel 4a waiting for me there for over a month, until cowoker delivered it to my house 😄 .
and while i might get a bit more money elsewhere, why would i even bother
As long as you're happy that's all that matters. 👍
Last job is the most I ever made, current one is actually a bit less but I get tons of time off and no OT. So to me the trade off was worth it.
well, if we ignore the weird offers (which are more than double of normal offers in my country), my normal monthly salary is around the average offered - most job offers are around 2000-2500 euros a month for Angular Dev.
On top of that i get paid extra for being on call few days a month, plus we get yearly bonuses. So on average, my salary is higher here than the typical offers.
Then as i mentioned, i am doing home office for over a decade now.
And finally, because i am above 35 years of age, i get 5 weeks of paid vacation by the law.
and then there are obvious benefits like i can ask the boss for anything work related tech if needed. Sure, sometimes it takes him time to actually purchase it, but we get stuff.
Yeah I had a SMB I worked at for years early on and that was one nice thing, I could ask for most things and they'd do it for me. Lot more flexibility in those kind of business and when you have that kind of time with a business.
Interesting so there is a law that over 35 gets 5 weeks? 🤔
I was surprised that people are still doing much with angular
then I saw jobs pop up in recent months
It comes down to the fact that to business use, Angular is just a better choice. React/Vue/whatever are UI libraries, and you need to patch yourself together various libraries to get the functionality Angular provides. Then there is the predictability of Angular release cycle, business loves that.
this kind of stuff business loves
Oh I'm much aware of the React/Vue issues but it seemed like Angular had all but disappeared for a few years
it was more like "loud people on internet" vs "people working on actual products" 😄
just merely providing routing that you can expect is nice
same with PHP, loud people on internet scream how PHP is bad etc; yet it still dominates the server market and man, when i got a task to learn up on Symfony 5 because i might need to help other product team, i am just looking with wide eyes about how much coding in PHP changed
use statements in PHP, dependency injection in Symfony and stuff like that all around the place
I work in an agency so we take on projects and even have worked on other people's projects and angular just vanished, whereas React is everywhere. I've seen though the horrors of a company trying to architect an app on React without a clear map. We got contracted to work on a company who makes a full system for car dealerships and it was the most nightmarish thing, they just threw more devs at the problem and had a team about 40 people trying to make this product.
Dude, working on a PHP site right now, Wordpress at that.
wordpress is stuck in 2005, that is a bad example
You'd think in 2022 people wouldn't be paying for it but here we are.
Gutenberg certainly has freed up some of the wrongs of Wordpress for page building. so you're going insane with 3rd party plugins
Gutenberg is kinda crazy balls as being a React app that exists to generate markup but it is cool as you can write mini-react apps for a UI to create a front end experience
It doesn't change the back end issues that people have or better data structuring but sheer power of the community size certainly means any question you have someone has answered.
I haven't seen or heard much about WordPress in a while, I assumed it was on the decline. 🤔
i mean sure it is mostly Symfony features, but look at this https://github.com/slashfan/symfony-realworld-example-app/blob/master/src/Controller/Article/GetArticlesListController.php
use statements (no ugly hardcoded imports)
configuration with annotation comments (sure, actual annotation system would have been better, but good enough)
dependency injection
Wordpress is still the most popular CMS, and it's easy to see why: clients love the interface as they all know it.
if you shown me that back in 2005, i would have doubted it is PHP
https://strapi.io/ is a better choice, but it only provides API for the frontend, so one would have to code their own frontend
Symphony seems like it's evolved a lot, I haven't touched it for over a decade
same, it's the most popular and has a lot of ready made themes
needed a quick easy site, wordpress..
Try and sell a client on a CMS they can't easily pull in devs, install whatever stupid SEO plugin they want, and so on.
There's a reason why Drupal and Wordpress persist: they hit a critical mass
i know, that is the lock-in of Wordpress. And they kinda refuse it modernize it, as they don't really want to spend money on PHP version if i understand correctly
I used a really slick headless CMS that used graphQL, it was wonderful but most clients aren't gonna give a damn
I guess I just haven't worked with those type of sites in a long time, so I forgot about CMS for businesses that don't have their own devs. 🤔
wordpress works... for most, no need to reinvent the wheel. Is it elagant no, but it works
Wordpress issue is internal code structure, not frontend.
yeah
if you look at wordpress, it is the most ugly of PHP4 code designs
When you have a regular site sure, but I think when it's tried to turn into like full e-commerce or social platforms you are kind of just making a mess instead of making a proper app.
like all the worst things you could find in PHP4
at that point yeah
(just a note, we are at PHP8 now)
like rn I'm making a website for an event
Do all those WordPress theme clubs still exist or did they consolidate into something like themeforest?
I can't even remeber the name of them, but I remeber you could like pay monthly and get access to all their themes.
This was back in the day when mootools was cool. 😅
oh and you know you are old when some of the tech you used doesn't exist anymore
ah nevermind, i guess they sold it since 😄
(hahahah, so the product might still exist, but half of the site is broken, so most likely it is dead)
I feel this, the other day I was trying to remember the name of Beyond Compare and I was like, "That ftp sync thing" and my buddy was like "Rsync?" couldn't think of the name
https://second.wiki/wiki/ultralightclient a java rich client, where you can define and code swing apps - on the backend
that is, you write code like swing on backend, and their rich client is rendering it 🙂
on needs to put this in context, this was in '00s, so AJAX was just starting and web UIs weren't that powerful yet
Java applets, haven't heard that term in a bit.
that was not an applet !
it was a Java Web Start app, which launched a client, which then rendered UI based on backend instructions 🙂
oh, maybe they had a version which run like that
we ran it with Java Web Start for sure
I never heard of Java web start, but it's a hyperlink I can go read. 😆
Java Web Start is a file with JNLP extension, which is executed on your local computer and tells it to download an application from some URL and start it. Of course you are asked if you want to run it, download it etc. If you enable it for first time, second time it starts without questions
you had to have Java Runtime installed for it to work of course
In March 2018, Oracle announced it will not include Java Web Start in Java SE 11 (18.9 LTS) and later.
Ooh I do remeber seeing JNLP file once, but never did anything with Java and back at that time I was more of script kiddy than a programmer. Haha
Wow I didn't know Java was even supporting that stuff until 2018. I guess all those businesses running old apps though.
my supermicro board's IPMI uses java web start to redirect the console
https://en.wikipedia.org/wiki/Java_Web_Start#Example
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://ultrastudio.org/upload" href="">
<information>
<title>Launch applet with Web Start</title>
<vendor>Foo Bar Inc.</vendor>
<offline-allowed/>
</information>
<resources>
<j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
<jar href="Ray-2.3-4ca60e46-0956-3f22-983c-e3ed986dfd03.jar" main="true" />
</resources>
<applet-desc name="Ray diagram applet" main-class="raydiagramsapplet.Main" width="300" height="200">
</applet-desc>
<update check="background"/>
</jnlp>
not that complicated 🙂
says "wants this J2SE, run this JAR file, and this is description of our stuff" 😄
and you got a dialog like
Oh yeah that I remember lol
when you said yes, it downloaded and ran the JAR file, and that was it
It must have been wild to be in that Java industry when it surged like that, I remeber so many sites / apps being Java. It was one of the first things I installed on my computers so I could play web games and interact with my firewall etc. Haha
well, Java went through various phases too - Servlets, Struts, various other libraries, J2EE with original J2EE beans, then EJB3 and so on. The code some coworkers on backend are sometimes completely alien to me, stuff like streams & filters over entities, half the time i have no idea what i look at.
The reality is that the only functional deployment style is DevOps. If you don't care about deployments, then you're going to have a hard time deploying changes that are valuable. If you have a dedicated Ops team that supports everything you do, that looks like it works, but you create a whole set of communication problems between the two teams. Which is what DevOps solves. It's not about being on call. It's about making sure that Ops decisions make development work easier, and Dev decisions make it easier to operate and upgrade your system. If Ops and Dev don't work together, everything breaks down or becomes a mire of bureaucracy.
Usually I'm working with back end as a service which essentially outsources devops to another company, I'm a UX dev and while I can and do deployments, a lot of the nitty gritty is not in my sphere of concern. I have worked in larger projects where there's a clear devops team managing envs and such and its wonderful but mostly I'm just making a docker setup that mirrors the service I'm using.
i have actually never written automated tests, the reason for that mostly is that most of the stuff i do is either really hard to automate tests for (such as when using a runtime bytecode manipulation library, writing plugins for other software that can be used together with tens or hundreds of other plugins, or even both at the same time), or just small enough that automated tests wouldn't give a meaningful benefit
Wow. Outsourcing DevOps is an anti-pattern I didn't imagine existed.
yeaaa, definitely not devops. it's now simply ops
DevOps is a better name than "agile", but it's not a perfect name. Really, it should be Dev+Ops, even though some people treat it like some separate thing, like you have Dev, Ops, and DevOps. But really, you just have Dev and Ops, and how close they collaborate determines if you're DevOps or not.
Here's a great resource that shows how you screw up DevOps by having various business organization screwups that somehow get renamed as "DevOps".
https://web.devopstopologies.com
The primary goal of any DevOps effort within an organisation is to improve the delivery of value for customers and the business, not in itself to reduce costs, increase automation, or drive everything from configuration management; this means that different organisations might need different team structures in order for effective Dev and Ops col...
It also shows the effective organizational models that lead to useful DevOps.
Good:
Bad:
Note: It's kinda ironic that Google's model is rated under the "effective" category. I find this ironic, because Google has explicit handoff between Dev and Ops, which DevOps is designed to eliminate. I think this could be the secret behind why Google has trouble launching new products (Stadia, Google+) and why the Google Graveyard exists. Those are the exact types of problems you run into when there's a handoff between the team that develops applications and the team that deploys them.
Yeah but I think it's pretty common place to now accept and use DevOps as a title. Usually this refers to an Ops person who is well versed in working with developers and modern deployment systems.
Its almost like hiring an ops person who understands and wants to work with devs, rather than pure ops.
I think the title is also often used to refer to someone who is a cloud engineer of sorts and good at working with public cloud deployments.
So does anyone want to take bets on how long before our entire industry starts creating meaningless certifications around DevOps?
They already exist 😆
Meaningless certs always exist, but currently they aren't a requirement for DevOps roles.
Oh as a requirement
But you basically can't get a job as a Scrum master or Agile anything without a cert.
I guess I should have clarified.
Honestly scrum masters are over rated imo.
Last 2 jobs didn't have one and I never noticed there wasn't one, but I had great team and product we were all in sync.
Agreed, but that doesn't prevent many companies from forcing them on people.
Yeah I feel like some companies get to fixed on how do X comoanies do it or what the "correct" process is. The whole idea of letting process get in the way and make the decision about how you work feels like it goes against exactly what agile was solving. Haha
Yeah. In a general sense, Agile has become the exact thing it was trying to stop.
Honestly, until our industry confronts the truth that we suck at communicating with management and organizing businesses, we'll just end up right back in this spot whenever DevOps moves from a development push to a management push.
It's musical chairs, but with company structure.
Yup we need essentially a DevMgmt movement. Since it's both sides, devs often are bad at communicating something in a none technical manner and Mgmt often is guilty of simply refusing to try and understand devs saying idk I'll never understand what they are saying.
Mgmt wants deadlines and deliverables and devs want freedom to be creative and solve problems that often can only be put into an estimate and not an exact science.
So many of my old business classes in college focused on how to compute your costs and lead times around factories. Development just doesn't fit into this and Mgmt needs to shift as well.
I do know some colleges started offering software engineering management degrees. Not sure what all is in them, but sounds like a good first step.
Although someone shouldn't need to get a degree just to learn how to manage devs. 😆
Honestly though, the problem of engineers vs management also goes back to the 1800s and the literal days of bridge building.
See the Tay Bridge Disaster: https://www.youtube.com/watch?v=uEgGgkTO-cw
The Tay Bridge Disaster on the Firth of Tay near Dundee, Scotland from December of 1879. Winds were partly to blame but the chain of failures was long, and completely preventable at many points along the way.
Yes, this is a reupload... see pinned comment for details.
The History of The Forth Bridge: https://youtu.be/0tEEVNHbUWQ
The Quebec Brid...
Actually, the Quebec bridge collapse is a much better example of bad management directly leading to disaster.
https://www.youtube.com/watch?v=e4DTMe0huXM
Nothing is new here. Even things like the recent Miami condo collapse show how negligence in management and cheap cost cutting measures can backfire horribly.
The How & Why of The Quebec Bridge Disaster in 1907 on the Saint Lawrence River in Canada. A deep, twisted story of failure after unchecked, preventable failure that dragged on for years beforehand. The Second Collapse in 1916, receiving much less media attention was bizarre and nearly as tragic as the first.
Previous Video in this Series: http...
That creator has a video where he reviews the Hyatt Regency Walkway Collapse. He says:
Rarely is a single party or a point of failure if ever to blame. The breakdowns in communication, the group think, fragile egos, prioritization of schedule or cost over proper calculations, or mismanagement of responsibility. Chains of failure like these are where you'll find your true need for more awareness.
The truth is, no industry is immune to human failures. Only constant diligence and caution can prevent those problems from occurring.
Honestly, when you see disaster looming, and no one is taking action, the best thing to do is to distance yourself from the situation. Find a way to leave. It's the only way to keep yourself out of the fallout.
hard to test is not a valid reason anymore in Chrome 97
- https://developer.chrome.com/docs/devtools/recorder/ - Chrome devtools can now record user steps and export a puppeteer script
That does not help at all with java
sorry, for some reason i was completely in web browser mindset
all good :)
Node.JS
Does anybody knows when i enter npm install. It will stuck here [..................] / idealTree:ganm: sill idealTree buildDeps then i am getting this error:
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.npmjs.org/canvas failed, reason: getaddrinfo ENOTFOUND proxy.company.com
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:```
How can i install this?
hmmm it looks like this is a problem related to network connectivity
Do you have any idea what can i do about this?
I have tried a few changes already. Still unable to install. I am getting this now.
npm ERR! 400 Bad Request - GET https://registry.npmjs.org/canvas```
Success, i just had to delete the whole .npmrc file and install again.
The npmrc can point to a specific registry, for example if your company has a private registry instead of using the public one.
Also it can have tokens and such for auth.
as a system service?
if it's a systemd service just do journalctl -u servicename -f
how is it running in the background
Ah, so whatever that browser thing uses, which idk
If it's docker normally it's run as the last part of the docker file, but it is possible to also connect to the docker container and manually run something as a user.
If it's just running inside the docker image you normally can just do:
docker <name> logs
If you want to watch them in real time you can use the follow cmd. Just add -f or --follow
Here are some docs to help: https://docs.docker.com/engine/reference/commandline/container_logs/

It's hard to remember a time before docker. I just got my M1 Pro for dev last night, today I fired up the site i'm working on but had to nuke the containers so it'd get the ARM64 ones. No biggie, just nuke everything and pull the latest DB for local and jam it into my local environment. Who cares I just went from Intel -> ARM? Docker doesn't.
Ah the classic table overflow strikes LTT store. 😆
Remembering that time when all websites were a table....
everything in life is a table, some are just more disguised.
Also when everything was an iframe, I remember some sites even putting side nav in iframes. Hahaha
I did that, I had PlayStation cheats site and partly out of data concerns. This was like 1998 and I got the entire template down to about 19k. I ended up leasing two servers as the cheapest place had a weird 2 for 1 deal. I didn’t need the storage just they offered 50 GB a month of transfer and the yahoo listing meant I got insane traffic. I found out banner ads paid, not much but as HSer it was more anyone else I knew. So I put the html on one server and the graphics and the frames on another.
The yahoo listing was like gold, and meant numbers than sound made up, 150k unique visitors, about 1,000,000 visitors. I’d always get hate mail from kids with AOL addresses, of course loaded with racial and homophobic insults. Pretty much made me forever not want to be a “gamer” and when the big mess happened years ago I was kinda shocked that people were shocked. Seemed right on point to me after years of just annoying people emailing me hateful stuff.
Frames were common, iframes not that much
Guess it was mostly frame and frameset for stuff like the side nave, I guess forgot about plain frames since they have been dead for so long. Haha
I made a discord bot amd shut it off but its still on how do i fix this
you need to host it somewhere
discord won't host the bot for you
wdym
oh it's still on?
I shut the bot of for updates on the code but its still on
where are you hosting
Im hosting ot on my pc
how
Like a minecraft server
no like how? docker? systemd service? screen?
I think someone got my bot token cause its saying playing android
@nocturne galleon I'd reset your bot token
I reset it when this started
How long ago was that?
Because it takes about 5 minutes for Discord to count a bot as offline
I'd give it about 5 minutes, and if the bot is still online then maybe recreate the bot's app
But usually a token reset is good enough
The status changed when i turned it off
It was "watching for rule breakers"
But now it says playing android
Thats not in my code
Are you absolutely sure you're looking at the right bot app?
Yes
The bot went offline when i logged into the bots log
Huh?
I thought you were hosting it on your PC?
What do you mean by "logged into the bot's log" then?
I have a log that tells me were its being hosted
Ah, right
Well I'd recreate the bot's app on the Discord developer panel and see if the issue persists
My log says it was hosted using bot commander
Never heard of it ¯_(ツ)_/¯
anyone here good with css?
Somewhat, I'll give it my best shot
What's the question?
so I found this css theme for firefox I really like the only issue is its teal, not red. (if u didnt know, firefox can accept css themes)
Right
I need to figure out how to find each piece of teal in the css code and change it to red
That should be fairly simple - find out the hex color code of the teal
And just replace all instances of the hex color code with a red hex color code
ok
@random dagger can u help me code a minecraft bot
Afraid not amigo, but I can provide (some) help if you get any issues. What language?
Whats easier
Honestly, it depends what you want this Minecraft bot to do
Are you talking about a bot that imitates a Minecraft player? A bot that gives information about a Minecraft server?
Cutts trees for me
Okay, so, for a task like that, you'd probably want to look at something like Baritone
It's a pathfinder bot that has an extensive (iirc) API
How do i host it
That I can't answer as I don't know myself
You would need some sort of Minecraft client
Idk how you want it to integrate into discord
But in mc chat with baritone installed you would just do #mine oak_log
Idk exact syntax
yea, so many bots already exist in MC, you wouldn't want to create one yourself unless you actually know how to
I dont know how
then google mc bots
Bruh
We ain't your personal assistant
cause that site doesn't exist
Github
For source code, just click the download button
For built ready to go builds go to releases tab
Just read the readme of the project
Ain't that hard
^
I haven't been on a phone in a year
and?
in python is there a way to loop over every item returned by dir(module)? somewhat like in this pseudocode:py props_data={} for fn in [method for method in dir(module) if not method.startswith('_')]: str_eval=f'module.{fn}({myvar})' props_data[fn]=ast.literal_eval(str_eval)
haha me neither well smartphones that is , but i have to use one so 99% of the time that is done with: Qtscrcpy, wich makes typing messages atleast a little bit more bearable
i dont do 2fa unless required by force in wich case i happely use my mail adress wich atleast can be done on the same device
I may eventually get a yibikey but like bitwarden free doesn't support it. I'll probably get the subscription, it's only 10 bucks a year
TOTP can be done on any device
Doesn't need to be phone
But you usually have phone with you
Email 2fa is not the best
on windows i have ahk for my passwords and on linux autokey for my passwords 🙂
what are you tring to achieve 😮
looks cool
and no i never have my phone with me unless they remind me just before i leave that i need my phone
Really? I always do
im trying to make a program that executes every function in a module stores its outcome in a dict , and i eahter write a line for every function in that module by hand or do it programaticly and if there were only 3 functions in that modulle id do them by hand but py [sys.stdout.write(f'{idx}: {item}\n') for idx,item in enumerate(dir(mypkg.mymodule))] gives me ~110 make that 90+ without the ones prefixed with a __
mines always hooked up to my pc 🙂 for use with scrcpy so even when i leav , i use it like a landline phone , that can send messages , im not home im not picking up (but i am home most of the time so)
Isn't the point of a phone is to have with you
🙂 yes but when cell phones started i was really into them (all hail nokia 3210) but by the time smart phones came around ik was alreaade less convinced they were a good idea , then social media happened and i was one of the first ones to have a facebook account, i also was one of the first ones to stop using it and when the GDPR came around one of the fists ones to test that law and found it to be failing and i just deleted my account as an laternative, i cant write on a smartphone anyway , my brain has long lost the knowledge of where the keys are on a keyboard and for typing i opperate on muscle memory so anything involving typing on a smartphone i hate because of that , also im one of the few ones that never got addicted to social media because of it and im kind of happy about that
found a way to fix my probem btw: and tested it on the build in os.path module 😄 yeey :```py
def props(src):
props={}
exclude=['samefile','sameopenfile','samestat','commonpath']
fnx=[fn for item,fn in os.path.dict.items()if callable(fn) and item not in exclude and not item.startswith('')]
fnnames=[item for item,fn in os.path.dict.items()if callable(fn) and item not in exclude and not item.startswith('')]
for idx,fn in enumerate(fnx):
props[fnnames[idx]]=fn(src)
for idx,key in enumerate(props.keys()):
print(key,'\t:\t',props[key])
props('/home')
or the same as above but with comprehensions as it should:py def props(src): props={} exclude=['samefile','sameopenfile','samestat','commonpath'] fnx=[(item,fn) for item,fn in os.path.__dict__.items()if callable(fn) and item not in exclude and not item.startswith('_')] props={fn[0]:fn[1](src) for idx,fn in enumerate(fnx)} [sys.stdout.write(f'{key}\t:\t{props[key]}\n') for idx,key in enumerate(props.keys())] props('/home')
srry im suffering form the desease , the computer disease as discribed by feynemann here :https://www.youtube.com/watch?v=hTRVlUT665U#:~:text=mr. Frankel started,avoid the disease last update fixes for unexistent files eg :```py
def props(src) -> dict:
props={}
exclude=['samefile','sameopenfile','samestat','commonpath']
fnx=[(item,fn) for item,fn in os.path.dict.items()if callable(fn) and item not in exclude and not item.startswith('_')]
for fn in fnx:
try:
props[fn[0]]=fn1
except Exception as val:
props[fn[0]]=f'ERROR:{val}'
return props
tests=['/home/','~/.bashrc','/usr/src/linux','/root/.bashrc','..','$HOME']
for idx,path in enumerate(tests):
sys.stdout.write(f'\n\n{idx}: TESTING: {path}\n{"".ljust((len(path)+12),"#")}\n')
test=props(path)
[sys.stdout.write(f'{key.ljust(12)}\t:\t{test[key]}\n') for idx,key in enumerate(test.keys())]```
Physicist Richard Feynman's personal experiences while working at Los Alamos during the Manhattan Project.
ok guys i am once again here to ask for help, i still am undecided on the lingo i would like to learn
i have tried html+css (and i realised they are borinf and stupid)
i have tried c++ and python (easier than html and more intresting)
but idk what to choose
html and css aren't programming languages
just markup
everything is for a different purpose
javascript is mainly for web frontend. Browsers execute it. There's also now a lot of javascript runtimes for backend (node.js, deno) that are getting popular for server code
i came here asking for help in choosing a lingo to settle on, can you maybe help me
depends what you want to do
yeah hard to really say
idk
i must look up some job offerings
because i wouldnt want to choose a lingo that wouldnt help me in getting a job
web dev, learn the html+css+js stack, that's basics. For an actual job you want to know a js framework like react, vue, angular
not to mention knowledge of basic networking
and probably also css framworks like bootstrap
yeah i tried that but its just a torture for me to learn
welcome to development, nothings easy
other lingos are much more intresting
c++ is a pain as well
its not that its hard, its just boring and that is the way i think its hard
advanced python also gets interesting
imagine a thing you hate a lot and having to learn that
where could i use python
python is more of scripting, but it can be used to develop full on applications as well
ansible
with python what's also popular are web frameworks like django
everything is a one liner if you're ambitious enough
so that would mean i would still need to know html and css, right?
some knowledge yeah
since it compiles to html, css, js
therefore js is like a thing i can replace with python
no
python can be used for hosting web stuff, js is for making web stuff work
django handles that
well no
django exists
so django is like an interpreter
time to google what django does because ive only heard of it in name 1 sec
never used it, not a fan of python
oh django is sweet
yes
and its for ai?
its a master of none language except its a master at being master of none
it can be used for machine learning and whatnot yes
so ig i was right when i first tried python
c++ wasnt that bad, its was just picky with the syntax
90% of the time you'll find a language that's better at doing a task than python is, but the benefit of python is less development time
things like tensorflow have good support in python, but those are really made in C and then python can reference and call them, because python is kinda slow
yea python itself is really slow but has a lot of C builtins that work at C-speed
in your oppinion what would be a lingo that would be used a lot in jobs or very searched for
python is pretty popular right now, javascript is aswell, java (different from javascript) is popular aswell, c#/c/c++, i think typescript exists aswell
a cool combo would then be python and some c lingo eh?
learn cobal 
depends on the job
i think the pairs would be like
javascript/typescript | python/C/C++ | C#/Java(?) |
but the C languages are pretty versatile and used in a lot of things
and typescript is microsoft's version of javascript isnt it 
it is still javascript but better
I still need to use TypeScript, just typing variables at its core is a big win for writing JS and not getting unexpected results
I know it has a lot of syntactic sugar
multiple ways, I like f-string
is there a way to do without a string?
print(f'The last three numbers on the list are {last_numbers[2]}, {last_numbers[1]}, and {last_numbers[0]}')
@nocturne raptor
theoredically this works, didn't test
how are u getting the numbers originally
input
so like they input, say, 2345 and then you want to get 345?
