#development
1 messages ยท Page 84 of 1
Haha
I don't go out of my way to visit them but I was just curious and tried to reply.
In fact I most ignore them but long story short, wrote a bigass guide on Mac Pro upgrades and people were discussing stuff pertaining to it.
I thought FB was doing that with like vaccines and such, but then I realized you could even post just a single work "vaccine" and it'd inject their info below. Idk if it's still that way, I only go on FB like once every few months. ๐
I like that I posted a link to OHSU (Oregon's teaching hospital) on immunity after triple vax breakthrough cases and it posted its generic vaccine stuff and I'm like, "They're literally a very well funded premier medical research institution facebook"
Facebook is somehow a tech company that makes facebook
excuse me, now meta
Kind of random but my biggest gripe with MBP is thermals, it gets way too hot and crashes when I do huge tasks with tones of processes being started. I miss my big workstation laptop I had at my old job.
At least the M1 air I have doesn't get too hot even when running like 4 containers it still just seems pretty chill. So maybe the MBP w/ M1 won't over heat, need to ask for one as soon as company is deploying them. Haha
My 2017 was like in forever leaf blower mode and if it got hot in doors, it'd start throttling to unsable. M1 Pro is so much better, the guide though was the desktop Mac Pros ๐
Docker murders so the intel macs
I have a friend that works for FB, they were like mega eye roll when they were told they now work for Meta. Funny thing is they don't even use FB themselves, it's just a pay check for them so. Haha
Well, Docker + Node task manager + browsers
One of the classic dev questions for my friends with ethics is "How much money would it take you to work for facebook?"
Yeah didn't docker on Mac actually run in emulation or something? I feel like I remeber reading that years ago and why it's so slow on Mac.
It really like crawled on my Mac comapred to my Linux box.
Idk if that's still the case or was just old days or what.
Has to emulate the Ubuntu kernal
Just like Windows
Wait, I thought that Mac had a POSTX compliant kernel?
50% more than I'd make for another company. Haha
Pretty sure it still emulates the ubuntu kernal
Dunno why
They use QEMU for M1s for containers that are x86
Right since a container shares the kernel, right? So I don't think a Linux container can truly share the MacOS Unix kernel. At least that's my not well informed thought on why, prob wrong. Haha
Yeah, seeing references to Linux kernel updates in the documents
Update to Linux kernel 5.10.25 to improve reliability.
https://docs.docker.com/desktop/mac/apple-silicon/
That's like, such a waste. You get all the banality of Linux userland, but without any of the advantages of running native apps with Linux speed.
Sounds official enough for me
Yeah, that looks like the official kernel
There's a whole hell of a lot of *nix native utils
You know, I had a lot of people talk about how amazing Mac was for development work
Yeah I think docker on Mac is more about simply using docker for consistency, not the speed and expectation of truly running containers for business use.
Because it allowed you to run native Linux apps, but my experience with Mac has been horrible.
It'd be a nightmare for me to try and not use a Mac as a UX Dev
Are you talking like x11
?
Honestly, I hate Mac. I used to avoid complaining about it because I hadn't used it before, but it's just genuinely an awful OS.
Only reason I use Macs is macOS ๐
Same I don't like my MBP, had no real choice here.
Linux > Windows WSL > Mac > Windows
That's the way I feel about them for dev usage. Haha
macOS is terrible. Strictly interior to Windows in nearly every way. It's an encapsulation of the terrible state of Linux desktop.
Obviously for dev usage I interact with Linux a lot. But for desktop usage? Linux is terrible.
For none dev I pretty much just flip that around the reverse order. Haha
My dev box is just for dev, what else do I need from my desktop? All the stuff in Windows and Mac just get in my way / annoy me.
As a UX dev, I'm mostly regular developer but one who's able to operate graphics apps from Sketch/Figma to Adobe CC to any media apps really. Windows would mean using the goofballs Ubuntu layer which is soooooo much better than what it was before (running Node it a separate CLI was bonkers) or Linux and really hope Wine runs the apps I need.
WSL is an interesting experiment, but Docker on Windows allows you to run a hypervisor in the background with a true Linux kernel, and it supports easy interfacing with whatever you want.
Lol, that's the hottest take. I guess you're not a web dev ๐
WSL is awesome, I used it for 2 years straight as my primary dev env.
There's things I like about Windows but development isn't one of them.
Like, I understand that a decade ago writing Linux software on windows was a horrible experience, but now with Docker and VS Code available, it's pretty dang nice.
I wouldn't trust the WSL layer to properly emulate Linux, but the desktop user experience on Windows is just so much smoother than any other platform.
If you don't have WSL and are running docker on windows I'd suggest getting it. You can set docker to run inside WSL and it's a lot faster and really nice instead of the older Hyper-V version.
Still is a goof balls having to launch Ubuntu layer for ZSH/Bash
I feel this is the most minority opinion I've encountered in some time.
I really don't understand this argument. It's a program. You already use tons of other programs to do specific activities. Why suddenly become emotional because you need another program to interface with servers? Like, isn't the Linux philosophy to have the right program for the job?
WSL uses a VM so it is proper Linux, it's just run behind the scenes for you.
I feel like LTT has done some amazing work to show to tragic state of Linux desktop right now.
Clunky workarounds, breaking major programs randomly, a very vocal and angry minority that dominates discussions.
Ha, I'm not getting emotional. This is honestly interesting as I've found the guy who's arguing for Windows for non-MS specific dev.
Linux is only for developers, and even then, the only reason to use Linux on desktop is to get a high quality terminal. Which other platforms have as standalone programs that don't force you into the arcane world of Linux desktop.
I think this is the case for a normal user using it as a normal PC. I think when we talk about devs using it as a dev box it's a very different discussion / use case.
Yeah, my opinion is definitely the minority right now. But it's the honest current state of computing. It's dramatically different from where things were a decade ago.
I'm not trying to be a dick, it's interesting its so incredibly rare for me to find pro-Windows developers. Meetups (when we still had them) was a sea of MacBooks with a few linux guys.
Microsoft lost the browser wars, then they sat down and thought about where computing was going to be in a decade, and spend all their efforts on that.
Which is why Microsoft has the only serious competitor to AWS. They spent a lot of time on their platforms.
I mean I'd take Windows w/ WSL over Mac still. ๐
Like I've known guys who use Windows since they were deep in .NEt
But I am on LTT so it kinda makes sense
C# is honestly an amazing language now, and it's only gotten a LOT better in the last 5-ish years with the open source dotnet movement.
Now you can install .NET on macOS which is the interesting timeline we live in
I feel like I emulate Linus's opinion pretty well. Linux just sucks the joy out of using my computer. Windows has a genuinely much better desktop experience.
And all the advantages of Linux are fading away.
But what do you need all the "expierence" for when you are doing development?
And I value my time highly.
I mean, I have had a relatively smooth experience with linux
Linux really does have its place but on a daily driver desktop really isn't one of them.
I daily drive linux sometimes
For gaming?
depends what I'm working on
For content creation?
I find a spend more time setting up dev env on Windows and more time fighting with stupid MacOS. So if I'm doing dev work I find Linux to be the lowest time investment.
Like the SteamDeck is an interesting linux use case but its specialty
I barely game as I'm a Mac user ๐
For ocassional gaming, and Adobe Acrobat, Davinci Resolve, etc.
Install but not use
With Windows, everything mostly works smoothly except specialized work. So you spend time setting up your development environment.
With Linux, it's only good for development, and terrible at everything else, so you spend your time trying to figure out why your second display isn't turning on.
I mean I never had any breaking issues so I never put that much time into it
I guess the thing is I have always had separate work env from personal, so I have no care about all that stuff on the same computer.
not one of those arch people
I'd gladly take the smoothness of the first experience, because the second one will cause problems when I just want to read stack overflow.
rn, kde neon is my go to. Everything else has issues
I remember in college a guy in my class was professing linux being the best then come to find out OpenOffice borked on him hard and had to borrow a friend's computer to use MS word.
Lololol
Microsoft Office is still one of the most widely used and most important sets of programs outside of your web browser. And no other platform has the quality of Windows. (although that's changed a lot in the last decade)
I grew up around Windows machines. My first independent computer was Windows Vista, so I've got a lot higher tolerance for stupid Microsoft shenanigans.
I've also been sucked into the MS ecosystem. I grew up doing online schooling with MS Office and tweaking Firefox with an unhealthy number of addons.
I only used Office for one job I've had in 14 years of working
That's genuinely impressive.
It's kinda interesting how much for web dev, people just went google docs
As a dev, I'm only opening word to meme
Google owns the web, so that makes sense.
It was back in 2006, first job out of college for a backwards education company where I was updating CD-Roms to work with Vista
and the latest OS X
That or confluence, I hate confluence so slow and annoying. Haha
The old guy who was the boss had a habit of printing out emails and writing on them and giving them back to you too
Yeah, Vista was a LOT worse in the enterprise space. Vista's main problems were higher resource usage, network connectivity problems, and driver problems.
With a new computer for personal use, none of those affected me.
Company hosted?
it's easier
Either one
microsoft now has their own web version
Been using confluence, ever since i started. It's not great but gets the job done
Also, Vista got updated several times, and they fixed a lot of those problems. Kinda like how Windows 8 is the worst OS ever, but Windows 8.1 is actually tolerable.
agreed
Same with JIRA
I hate confluence with a burning passion.
JIRA isn't the greatest but it works
The problem with confluence is I haven't used anything better
At least with Jira, you can set up automation and barely touch it, or just drag user stories around.
you can't get non-devs/geeks to use a true wiki
Confluence has all the worst parts of a crappy web editor, with very few benefits.
Indeed, and when there's apparently something better but slows the team down.
Then we are just fooling ourselves
I have found very few times I even wanted to use Confluence, just feels like a product I don't even need to begin with.
The WYSIWYG editor always feels like a battle but so are all WYSIWYGs from my experience.
Yeah, that's the problem. I'm currently on a team of 100% technical devs, so we just write markdown in Git repos, and publish GitPages. Our team gets nice tools, and external clients get nice documentation. It's a win/win.
What if we create a wikipedia based, to fight confluence.
Just for the meme
So far, the W... Editor of confluence is the best relative to the other wikis
But man, you can't convince a business person to drop confluence for any amount of money.
Yea markdown is good, but I'd rather get back to coding than google how to create something in md
And Confluence lacks builtin markdown support, but no one is willing to pay for the enterprise plugin.
Yep, it's fairly intelligent about dragging in assets and such.
I love docs in Readme, gives you offline aceess, built in versions with a tool you already are familiar with, and even change controls that are already in place for the repo. Just feels so natural and easy as a dev.
Versioning your documentation with your code is the best idea. The further apart they are, the worse your documentation gets unless you hire a dedicated technical writer.
I always forget my markdown syntax. I have my personal blog in jekyll and just end up writing it in HTML. It's kinda ridiculous I haven't moved it off jekyll
README should contain basic things the dev needs. if it doesn't it failed the kob
I dunno why i have such a mental block for Markdown
That's honestly why I prefer Microsoft tools. They hire dedicated professional technical writers, so almost all their documentation is high quality and consistently useful. With Microsoft tools, I'm usually hitting MSN Docs before Stack Overflow.
Companies undervalue tech doc writers
Ah yes, Microsoft good documentation. But lack features
One of the reasons I'll pick using a framework over another is simply if the docs are good
The side effect of consistently high quality central documentation is that other developers expect good docs, so the whole ecosystem is full of good high quality writing.
I didn't learn Jenkins for like, 3 years because they were in the process of migrating docs websites, and half the links were broken for about that long.
I had this same problem until I just wrote enough MD. Now I invested the time and I'm like, why can't everyone just support at least basic MD so I can quickly move between systems. Lol
What helps with writing Markdown is using something like Discord, Slack, or Github READMEs that supports markdown by default
My team uses md for dev wikis. I miss confluence now
Start by adding some basic headers, and you'll get used to the rest of it.
I ended up buying an App called IA writer that's literally just a markdown editor so I'm getting better but mostly its a no-bullshit text app. Purely focused on writing.
Oh, actually, install markdown lint for VS Code. There's a builtin markdown renderer, and the markdown lint plugin helps sort out badly written markdown
Sounds like should've been a free plugin to your ide or something
That certainly is the gift and curse there as you can't create templates or copy and paste in media assets etc
Nice as you'd be doing it from your code editor, sucky for the rest
Nice as you too
Ha
This is why you should version your documentation with your code. Linking files becomes a LOT easier.
Maybe WE should create a superset of md where you can import other md
Sounds like a templating engine now
Confluence though often is shared base though from my professional experience. Project managers and such are generally using it.
Yeah, our team has bled out like 6 product managers in 5 months.
I think there's a reason for that....
Even if many of those changes weren't exactly something we could have prevented.
We just got a new product manager last week, but I'm already seeing some bad signs. I'm expecting that we'll be in the market for a new PM very soon.
Ooo I'm going to look this up Monday when I'm back at work.
Yikes
Hmm, I haven't used markdown lint, sounds good
You can configure specific warnings. Here's my VS Code config:
"markdownlint.config": {
"MD013": false,
"MD026": false,
"MD004": false,
"MD012": false,
"MD041": false,
"MD032": false,
"MD009": {
"br_spaces": 2
},
"MD007": {
"indent": 4
},
"MD033": {
"allowed_elements": [
"br"
]
}
},
Yeah but for docs written by product and such you can just link to them. Keep your technical docs in the repo versioned with control imo.
I'll fiddle with the config settings every once and a while, if I find a new linting rule that just doesn't make sense.
What usually happens when Docs are separate is that documentation becomes a separate user story, so it never ends up being important enough to happen.
Usually there's a certain amount of readme docs when I work on projects that are dev specific (install/setup/notes/tests etc) that aren't in confluence.
At least that's been my experience.
So now Confluence isn't a single source of truth, and it loses a lot of it's value.
This is one of my biggest problems with Confluence.
So at least some of it is versioned with releases or feature branches or whatever the architecture warrants
Hot take: If you're running multiple parallel branches often, that's usually a sign of bad process, bad management, or both.
Some tech stacks you have things like storybooks like in React you'd link to from confluence to some degree though
Story books? Never heard of that.
Why do you link to storybook from confluence? Like just for product ppl tk see it?
Ah, so it's a tool for UI/UX developers to create mockups to describe user experiences?
@wind horizon yep, on a large project it was like "Here's WIDGET A" and link to it
Used a lot by FE devs as well as a documentation source for reusable components.
rather than just screen cap and simply a user story or whatever nonsense we're defining it as
Yeah, idea is you can see them in some level of isolation
That's useful.
Pretty common in react world
See, those are the kind of tools that you should be building and using.
But confluence doesn't give you enough tools like that, without building your own plugins.
And Confluence plugins need to be authorized for use by the corporate overlords, which usually isn't a fight worth making.
We always kept our storybook at a url like say storybook.comoany.com or something and so how / who shared / managed docs for people to get it was up to those teams.
Some times storybook is a bit of a pain but the long term payout usually is very much worth it. Again, web guy so this is sort of my wheelhouse
I think that's my biggest problem with Confluence. It's a tool, not a platform. Documentation is complex, and Confluence doesn't give you the flexibility to extend it so you get the functionality you need.
Plus storybook has plug-ins for validates, like accessibility checks, super handy to have it yell if someone makes a reusable component that's not compliant in some way and tells you how.
I work for a small outfit right now and our project managers are weirdly technical people. That's mostly good up until a guy decides to try and add his own CSS in ๐
Hahahaha
Hahahaha(2)
The classic platforms rant.
A must-read for any developer.
My fav thing we had on a DLS I worked on at an old company was a CI pipeline to build the storybook and push it to object storage with the branch name prefix. So every PR you could open a storybook build with their changes and actually checkout the code changes without pulling their branch / running it. Also being static assets it's pretty fast and virtually free / no cost.
We did a complex implementation of Wordpress for an education company that makes Mics. I say we, but it was entirely me (basically had to make relationships of data types in wordpress for the client so they could enter in product support docs, tech specs etc and attach them to products). Project manager was trying to help writing CSS. I tried to explain we were compiling the CSS as Sass.
High quality build pipelines are a major missing piece to the technology puzzle.
But they're hard to build, not enough people know how to build them, and the value isn't directly observable by the business. Which makes it hard to justify for a lot of teams.
I love anyone who loves infrastructure since I don't.
I'm like, half developer, one quarter teacher, one quarter operations.
Someone sets me up a pipeline that's just a happy click or command away makes me happy
DevOps are the best
Because I cannot deal with it, but I started as a frond end dev
We need more consistency between them too. I learned Circle CI, then Github Actions, then Jenkins, then Bitbucket Pipelines, now back to Jenkins. Feels like so often I knew what I wanted and needed, but had to sort out the diff syntax for the pipeline steps.
I mean, yeah. The current state of DevOps tooling is frankly terrible.
Lots of people realized the glaring operational problems at the same time, so they all built their own in-house solution.
Meanwhile, Docker is the only sane containerization platform, and Kubernetes is the only sane container management engine.
So that's probably where you should put your focus at first.
Just script everything out in Python, and eventually you can set up a stupid simple Jenkins build to run your Python script in a Docker container.
Then we have competing solutions like Terraform, Config Connector (gcp GKE), and then don't remeber the name of aws one. Bet Azure has one too. Haha
Terraform is quite nice. I don't think there's any serious competitor to Terraform.
But it only covers a small domain of what it takes to deploy an app.
Terraform is only for spinning up cloud infrastructure, which is not what most companies are generally using. Lots of places still own physical servers.
TF is best esp if you want to be cross cloud or be able to move between clouds. Also skills are reusable, like hiring someone who knows Azure but now AWS and knows TF they can ramp faster.
doesn't kubernetes not support docker or something
And man, Ansible sucks. It's only a useful platform for running SSH commands at scale.
Kube supports Docker. They also support other container engines, but those are not really used widely.
I've been trying to use terraform to spin up VMs on my local proxmox machine, def better than manual
If you are 100% in GCP and using GKE (manged k8s) Config Connector is awesome. Can deploy GCP resources with manifest files, so bundle up the app into something like a helm chart and that 1 chart can now provision your apps resources all in 1 shot. Like gcp storage, redis, etc.
ah apparently it's being removed tho (the runtime)
The problem is that GCP is way behind other cloud platforms in features.
Not as bad as ppl make it sound, honestly I have only like twice found myself want something from another.
They each have their pros / cons imo. For example GCP App Engineer and Clihd Run blow away Elastic Bean stalk imo.
But managed database options on gcp are more basic.
I don't believe that you aren't going to be able to run Docker managed by Kubernetes.
They might be writing their own container engine to replace the Docker one (Docker is pretty badly managed) but they'll still support the Docker image format.
And/Or it's probably a move to push the Docker engine support to an external component that still has the same level of support.
The whole industry has moved to Docker with Kube. I can't imagine a situation where Kubernetes literally doesn't allow you to use Docker with it.
Authors: Jorge Castro, Duffie Cooley, Kat Cosgrove, Justin Garrison, Noah Kantrowitz, Bob Killen, Rey Lejano, Dan โPOPโ Papandrea, Jeffrey Sica, Davanum โDimsโ Srinivas
Kubernetes is deprecating Docker as a container runtime after v1.20.
You do not need to panic. Itโs not as dramatic as it sounds.
TL;DR Docker as an underlying runtime is being d...
I mean, the literal title of the article is "don't panic", and the second line is bold:
You do not need to panic. Itโs not as dramatic as it sounds.
for developers there is no difference
So I'm pretty safe in my assumption that you'll still be able to run Docker with Kube.
Docker-produced images will continue to work in your cluster with all runtimes, as they always have.
docker images are OCI so it'll be fine
just underlying tech needs to change
if you are running your own cluster
That's not surprising at all. Kubernetes is really good about upgrading underlying components without breaking interfaces.
yeah
That's one of the major reasons everyone centralized around Kubernetes.
So it would be genuinely stupid and probably result in a complete hard fork if Kube decided they wanted to break a hugely important thing like Docker.
Probably I expect that some of the commands you run to inspect and exec into containers will change slightly.
The tight coupling between Docker commands and Kubectl commands has always felt a bit off, considering the rest of the design of Kubernetes is very good at isolating individual components.
I mean docker isn't the only frontend. Podman is very very similar to docker
I love it when people don't read what I said:
#development message
Kube supports Docker. They also support other container engines, but those are not really used widely.
engines != images
docker images are all OCI
so ofc it works with other runtimes
so really anything that uses the standard will run on kubes
from my understanding
Yes, but why would you ever use podman over Docker? I'm not ignorant of Docker's issues, but there's a HUGE benefit to using the more popular option.
More support, easier to hire developers, less onboarding training required, more tools/companies that integrate with those products, etc.
Podman is a blip on the radar compared with Docker. You should use Docker.
that could be about the shoe though bro 
I know how to Google trends my dude.
I've got skills.
but do you say "cool beans" in work emails?
You want a real comparison? Check the job market.
That's all the words you need to figure out why you should use Docker.
Nah, I keep stupid jokes to team meetings.
well its not just "cool beans" theres other stuff in there too
they are interchangable for the most part. It's just that docker is associated with containers, but really a container is a container can can be run anywhere.
Can build container on docker, then run it on a server with any other runtime
Just wanted to claify that Docker isn't the only thing out there.
What's cool bean
I'm aware of how Docker image layers work, and I know that Docker images are nothing more than static files.
But you still shouldn't use podman, for the reasons I gave above.
main thing against docker is that it runs as a daemon
you aren't locked into one proprietary ecosystem, that's the great part
I've seen teams try to use Docker Swarm. I know how buggy the daemon is.
But do you apply the same logic to cron? Running a daemon isn't a bad thing.
Main thing against docker, my coworker laptop got fucked and bsod ๐คฃ
But you also lose out on a HUGE number of developers and a huge community that provides free work for you. And when (not if) there are issues, it's a lot more likely to find solutions or workarounds for Docker, due to the size of the community.
yes
Deploying with docker swarm ๐คฎ
@midnight wind You're missing the business side of things. From a technical perspective, Podman might be a "better" solution, but technical solutions don't exist in a vacuum. Business decisions are also important. Eventually, you need to sell a product to pay for your salary, unless you figured out how to survive without making any money.
yes I get it
you don't jump on the newest thing
Doesn't seem like it, since you still keep pushing the line of logic that Podman is in some way superior to Docker, even though it ultimately runs things in the same format.
I thought the argument was just that there was other options, not that it was better. Maybe I missed something while had phone closed. ๐
I've never claimed that Docker was the only option. Just the only technology you should actually use in production.
Docker is the only sane containerization platform
#development message
But, it's not?
That's a giant misrepresentation of what the Kubernetes official article says.
runtime
Docker-produced images will continue to work in your cluster with all runtimes, as they always have.
yes
Yeah I remeber seeing managed k8s from cloud providers moving off docker runtime by default as well, you had to specifically opt into staying on docker runtime.
im no deployment wizard so please forgive my lack of information but...
what does kubernetes do
Thanks to Deis for the use of their video! For more about Phippy and her friends, see: https://deis.com/phippy/
You're taking like 30 minutes to get to the first major subheading of the official Kubernetes article where they discuss the difference between Docker and Docker, and how having one word for the whole ecosystem is massively confusing for everyone involved. (See how "Java" can refer to the JVM, the language, or the ecosystem)
I think. Maybe it sounds like most of this time pickle is talking docker images while Monkey is more so talking the runtime. ๐ค
yeah a misunderstanding
I've been talking about the entire ecosystem.
Using "Docker" in the most general sense, to encapsulate the tooling, community, and things like DockerHub.
He's using it to say that there's one small part of that ecosystem that Kubernetes isn't going to set as your default.
Right both are are accurate in that sense, I don't think many want to move away from the docker ecosystem and the new runtime runes docker images like the docker runtime. So pretty no major changes at all, esp if you are in a managed k8s.
My position is the typical one. When you start digging into the details, most people agree that "Docker" is much more than a simple image format.
See: https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Whats-the-difference-between-containerd-and-Docker
Docker is a broad set of technologies that are used to work with containers.
See: https://docs.microsoft.com/en-us/dotnet/architecture/microservices/container-docker-introduction/docker-defined
Docker is an open-source project for automating the deployment of applications as portable, self-sufficient containers that can run on the cloud or on-premises. Docker is also a company that promotes and evolves this technology
See: https://aws.amazon.com/docker/
Docker is a software platform that allows you to build, test, and deploy applications quickly.
From the official Kubernetes blog, Kubernetes has no intention of breaking general compatibility with the Docker ecosystem:
This change addresses a different environment than most folks use to interact with Docker. ... As a developer, Docker is still useful to you in all the ways it was before this change was announced.
I've never been confused about my stance, or said something clearly contradictory.
@midnight wind on the other hand, seems to be confusing specific components of Docker with each other, and confusing support for the ecosystem with support for a specific behind the scenes tool. I'm still not quite sure why he brought up his point in the first place, since it doesn't contradict my stance at all.
I just remembered reading it
a docker container can run on anything OCI compliant
and vise versa
Yeah, you remember reading something, but that doesn't make you an expert.
Reading things is okay. Going around thinking you're smart because you read a cool article is less okay. Doubling down on a stance that directly contradicts the articles your posting is definitely not okay.
Mistakes happen man
That's life
So why did you bring it up in the first place?
I was thinking at a OS level, not a high level
I mentioned Docker and Kube because they're two of the only tools that the DevOps industry has standardized on, and everyone should definitely become familiar with them and use them in their work. (when possible) They both simplify a lot of the problems around developing, managing, and deploying applications. They're both tools that Dev and Ops can agree to work on, which helps bridge the problematic gap between Ops and Dev.
We were talking about the importance of DevOps, and how different people can exist along the spectrum of Dev to Ops.
Actually, I just looked back, and we were specifically talking about DevOps tooling.
Which I still believe is in a terrible state compared to most other tooling.
I do think the comment was random and I was confused by it, since it made it sound like k8s doesn't work with docker in general terms.
But also this message sounds a tad harsh tbh.
I think we are all clear on it now, so no need to pile on. ๐
Fair point. I was a bit too harsh on someone who didn't realize what the discussion was about. That's my bad.
It was a good night of convos though, this channel kind of goes dead some days. Haha
Cause we have day jobs?
But since it's friday
That's a fair point haha.
I had today off, so logically I needed to find some other places to talk dev haha.
Man, I can't find a busy community to chat with developers.
You don't want dev disocrd servers where 80% is people asking help about their code?
One minute talking about great technologies, the next some guy doesn't know how to compile
I love helping ppl, but yeah sometimes it gets too much. Esp with how many ppl will pop in with asking how todo something and they don't even have the basics so they pretty much want you todo it for them. Haha
This is where we create the gated communities, we may be called elitists. But i just want to talk about something cool, instead of helping newbies debug
๐ค
Haha you have to like answer some questions to gain access. ๐
I'm an admin the Facebook group of the local dev community, it's fun and alive.
But when people who just started programming started to join us, the community slowly became stackoverflow of people who can't google.
It died after that
I engraved my device with:
// No comment
I amazed how many duplicate stack overflow questions there are. Just shows had bad ppl are at searching for answers before aksing. Haha
"duplicate"
"No it's not duplicate, the error message is different"
"Solution is the same"
ain't that the truth.
I think this is why it's important to have hackathons and in-person meetings.
When it's in person, it's pretty obvious who the most experienced people are, and the newbies feel a bit uncomfortable about asking questions when there's an important discussion happening.
so we spook the newbies into leaving us alone
When you move things online, it's still uncomfortable to task questions, but you lose all the information about the person's experience. That makes it harder on the experienced people, because now I don't know if this is an expert or not,
and it makes it harder on the newbies, because they lose information on when it's appropriate to jump in and ask questions.
i dunnno, maybe it's not evident that I don't know sht about what i'm talking about
Could you use this to your advantage though? Like if you just really don't feel like helping someone / doing something, with online you just pretend you have no clue what you are talking about. ๐
I do that alot in #networking
You seem like one of the people who knows what they're talking about most of the time.
You're also willing to admit when you don't know something, which is really important.
"what's a router"
lol
"I don't know, never heard of it before"
remember the zoom ddos guy
he's the opposite
I think it's important to have good documentation, and link newbies the documentation.
the amount of times I try to read the docs and it kinda just sucks
I think worst part about online is how often people portray being expierenced and knowledge, so sometimes on the surface at first you think you can rely on them and then it falls down and you gotta jump in.
Esp with some people from specific... Erm cultures or whatever. Haha
Noticed some of my int co-workers from specific countries tend to yes and act like they know how todo X even if they have zero clue.
I'd rather have them say, yeha I have no idea what I'm doing so we can work on it together or maybe yeah we do need someone else todo it but maybe you can shadow them / learn how they do it.
Thus why I like Microsoft's stuff. Even if the tool isn't great, the documentation is always consistently good.
yeah it's pretty good
one of the issues I see a lot is like the individual specific commands are documented, but nothing/not much on how they work together
examples especially
Microsoft is actually pretty good about that. They have lots of help articles about how to set things up and how the various parts fit together.
I've seen that, been learning powershell, and it's pretty nice
I remember a specific middleware thing I was working on for C#, and their docs were quite good at explaining how the middleware worked on a technical level, but also what types of things might fit as middleware, and where in the server you might want to put those things.
That's the sort of information that's practically impossible to find in any official JavaDocs. You need to treat into the terrible world of individual blogs to find that stuff.
I think the thing is for us outside the MS eco system it's just not how we are used to docs being formatted. I'm used to examples being inline or closely linked, not like needing to go look for them.
Maybe that has all change, I haven't done anything MS in... wow I think like 5 years now. lol
Although now I'm like going back and looking at React for example, I used to always think they have great docs. But really they have solid getting started and then solid advanced info and examples, but the middle area. Like someone wants to learn the ins and outs doesn't exist, I guess they expect people to go to one of the thousands of video series. haha
MDN is my go to for anything web usually.
MDN is pretty nice
WAN Show on right now. They're discussing the Newegg RMA issue. They had got Paul from Paul's hardware on the phone.
It's an interesting take on the entire industry.
some people just search the error message tho bro
yeah as much as i don't love Microsoft's ecosystem, their documentation is consistently pretty good
speedrunning by making a game world before midnight and then having to PATIENLY WAIT FOR IT TO RENDER ๐ฉ
Good Evening
ever since asking here about which languages to use for the deployment of the app, i've been diving deep in javascript and other related technologies, its really nice and mind boggling at the same time
I feel like im so behind on what I should already know, being a computer science student
Ok so Computer Science in the education field has been muddied into "Software Engineer" but in reality, Computer Science is the study of utilization of Computers to Complete Tasks through the use of known Theories and Logic.
You will always be behind on what you should know as a Comp Sci Major. Its your job to do the studying of all potential solutions so you can offer a Process and Framework that can achieve the goal
So at the moment, you are doing your job
The Software Engineers take your Roadmap that you design with the tools you dictate as most useful and actually do the implementation
I think this is why so many colleges are now offering Software Engineering type of degrees.
yeah serious "computer science" mostly takes place on a blackboard
Although even then most colleges/unis here in the US are insanely far behind in software development, I remeber about 6 years ago visiting a friend and they knew some people going to college in a web class. I took a peek for fun and their test was xhtml. Lol
I think college/uni just needs a strong pivot if they want to capture software engineering, it's such a fast moving industry and colleges are used to moving insanely slow. Lol
Hi any ideas of projects for raspberrypi 400 ?
is it a hardware project or software one
this, but good thing our uni is still catching up and is still among the best in the country in terms of the current teachings they are employing, but none of that is important if I don't put my skills to use and improve based on real world challenges
I am very excited next semester for my 3rd year,, to start learning about ML and AI
Yup I have seen devs come from Uni and have to compete to get into paid internships, while people no degree and just a 9 month boot camp can land a Jr Dev role pretty easily.
The reason is those boot camps people can often pass code challenges for the interview and start contributing value right away.
That's not to discredit degrees, they provide a very wide knowledge that can greatly benefit you when you have to learn something new at work or understand complex systems. A formal education will benefit you a lot long term, but may have a slower start vs something like a boot camp.
The problem is when you hire someone with no experience and the likely turnover of 1-3yrs the business is less interested in your long term growth and more in what you can contribute now.
But I guess that rabbit holes down into the issues in our industry with terrible turnover rates. ๐ ๐
This is deff another value to a formal degree, you will learn basics of many things helping you find what you enjoy working on.
I just wish Uni paired it better with some more focused skills as well. Perhaps something like the last year you pick a category to focus on and they pump you full of knowledge in it. Like you do 3 years and say, wow I love web development so they start packing you with more advanced web courses for that final year to help you get going.
I just feel liek tech, esp programming, doesn't fit into typical degrees well.
I'm doing an insertion sort in C++ and I have to count the amount of comparisons and swaps here is my function:
void InsertionSort(int numbers[], int size) {
int i;
int j;
for (i = 1; i < size; ++i) {
j = i;
comparisons++;
while (j > 0 && numbers[j] < numbers[j - 1]) {
Swap(numbers, j, j - 1);
swaps += 1;
--j;
}
PrintNums(numbers, size);
}
}
I'm not really sure what I am doing wrong to get a different number
In all of the test cases I am given, I have noticed that i am NEVER over the correct amount of comparisons I am ONLY under
minus 2
Turn it into a Cyberdeck
im trying to import a package in netbeans but says it doesnt exist when it obviously does
any clue?
it doesn't exist
I guess you need to count numbers[j]<numbers[j-1] probably worth to extract that to another function with counter incrementation inside
Well that's true if that's the skill you are seeking, but many people enroll in CS simply to become a programmer.
The problem is ppl in the US at least are dropping $40-60k on degrees and leaving without the skills to pass many code challenges. Just feels wrong to me.
But I think that's why CS vs programming / dev related degrees are important to have. So ppl specially wanting to go into programming can select a focused degree.
A lot of unis do push specifics, for example how so many used to still push ASP for the web stack.
At this stage the student doesn't really know what they need, that's kind of why you are paying them.
Idk any you can avoid your programming classes though.
You can do all of those and you'd likely still flop a basic code challenge. Entry level code challenges tend to be focused on basic syntax and being able to execute on a task, a lot less focus on algorithms usually.
Why would I hire someone who can't write basic code, but is good at math. (unless I need that, but I'm talking in the sense someone wants to be a programmer)
With high turnover rates by time they get up to speed they'll prob be half way out the door.
Tbh I know I have a pretty negative opinion of "higher education". I know it's not all bad, I just often think if I went back in time I'd save all the loans I took and skip my degree. Lol
But I am someone who has always pushed myself to learn on my own, so perhaps that's why. I value how much free information or relatively cheap information we can get now on the internet.
If you struggle to push yourself to learn then a formal degree process is prob best.
Right but I mean often times they will osuh specific things, so Uni X most students may leave with Java and ASP. Well what if you wnated to work on something that needs C/C++, Python, etc.
The degree is like a shot in the dark, they just throw a little of everything at the students. Lol
But the thing is those are just the most basics, which would be far eclipsed by a focused 9m boot camp. (ofc on a boot camp you need to know what you want todo in advance, since it's less broad)
It is possible, but your fooling yourself if that's what your expecting / think is the norm. Most fresh hires I work with from Uni or boot camp avg closer to 60-70k remote or 70-100ish in bay.
Great ppl with lots of personal expiercen / pushing them selves can go higher by jumping past lvl 1 direct to lvl 2. But it's not common to see.
It's just if all you want is to he a programmer and you don't have rich parents or tones of time boot camp is the fastest and cheapest way to secure a over $60k job that will likely break $100k within 1-1.5yrs of experience.
There is value in Uni I'm not discrediting its value, I just think it's kind of broken system right now that's overly expensive.
Yeah then you leave with $30-60k in debit.
Yeah I'm talking states, well I think when we talk education it makes most sense to talk local. Since the way education is handled is diff everywhere. Haha
You can get a super cheap almost free degree here at local colleges, but they tend to be less than ideal. Haha
I do think most classes should be based on online courses. Most of the time you can just watch a recorded class and do the assignments with minimal to no interaction with the teacher. In these cases the cost of education should really drop like crazy.
Yeah the problem is these today don't offer something that gets you passed HR screenings. That's what I feel is broken.
The knowledge is out there for people for free or cheap, but people often end up being forced into more traditional education just to get something to get past the HR screenings.
I think we are getting close and the change is happening.
I do know the cost of higher education is probably more of US issues. So maybe I should have lead with I was complaining about US. Haha
Although even $28k is a lot of loans.
Yeah there is similar here, but the Uni costs so much even when I was on the grants I still had about $30k in loans. Total cost was closer to like $50-60k.
The local small colleges though you can do free on those grants. But the local free colleges tend to be the kind of places that don't teach you a lot of diff languages and such. I remeber the one by me was only VB and Java, that's all you ever learned for the BS and you had no choices. ๐
I remeber when I went, many years ago now so may have changed, they used to expect like all families to contribute something. My family was under the poverty line and got other assistance too, but yet they still said they expected them to give like $2k to me for college. Haha
Education is just so busted here.
Oh nice, here it at least used to be that your first chunk are interest free until you leave college. Then if you need even more money the 2nd ones were interest, but deferred so you didn't pay on it until you left college. But it still gained interest the whole time.
I remeber how much they told all the students don't worry when you graduate you'll make so much it won't matter.... Feels like it should be banned for the university to give the student advice on if they should take loans to go to the university.
Conflict of interest. Haha
Anything
importing html + js into express seems to work but with quirks on the calculation side 
at least it works now
G'day everyone, just wanted what IDE you guys are using for frontend web dev
VS Code, if you're a student you can get a free license of WebStorm tho
Oh cheers
I'll take a look
Just another question. What sort of things would I be looking into to be heading in the right direction for an API contentful panel?
I'm re-writing the json API, and want to start practising front-end stuff.
To whoever responds, please ping me ๐
i have a game in ue4 and i have some error when i try to export it
Hi, i need some help with opencv-python installation...
the Python version is 2.7 in an anaconda env
i'll be back tomorrow after school
Use Python 3
Deep doodle is in Python 2
What's the error
Error: no access to main pc at the moment
Access back after school
At around 2pm or later at timezone +1:00 Berlin
finding solutions after 2 hour of scouring the internet, is so satisfying

its just a simple parser for the req.body but i don't understand why it wasnt working properly the 2nd time around
maybe because of the difference of .ejs and .html
at least the submission form POST is working now
Is it node or something else? A lot of ppl use body-parser in express.
Although lot of ppl have been moving to NextJS these days, which I think has built in body parser support. (If you are using React)
I havenโt used AdonisJS yet, but itโs on my todo list to play with one weekend.
yes currently using express
fixed now
that body-parser was not working correct the first time
Express seemed dead for a long time, but they pushed a patch in Dec and 6hrs ago a new beta for v5. Still doesnโt leave much confidence with such a huge gap though.
Kind of amazing something stayed so heavily used with year long gaps in patches.
upon using express, yea its really been a nice experience
or maybe because I have not used a wide variety of shit within javascript thats why i think express is such a good one 
either way, it works and there is enough documentation for me to fiddle with, and also resources online on already made code to follow up
Yeah it prob has the biggest amount of tutorials and online answers compared to other JS frameworks, it's still used widely. I work on it every day at work still, but it is getting to the point where starting a new app bring up the question of should you stick with it or not. Since the lack of updates / patching being done on it.
With how minimal it is I do think it makes a good learning / educational one to work with, since you'll learn a lot of things using it that you have to setup or make choices on. A lot of frameworks are more opinionated , which help you move fast, stay organized, and avoid some mistakes by nudging you in the right direction to start. But all that opinionated prepacked stuff also causes a lot of ppl to skip over learning some more basic things.
Like if you go with one that has an ORM fully built in you may never learn the basics of setting up an ORM and managing migrations and such. Express gives you nothing, so you have to go through that process of choosing to use an ORM or not, picking which one, and setting it up for your app.
Okay this is one that I have no idea why its happening
the html + js reactionTime file, when its ran as is, is fine, it records ms accurately
But, when I have imported it into my express js via this lines:
app.use(express.static(path.join(__dirname+'/routes')));
app.get("/game", (req, res) => {
console.log(">Game Page");
res.sendFile(path.join(__dirname+'/routes/index.html'));
});```
it goes like this
it rounds it to the nearest hundreds
i can't think of ways to search for this 
same exact code
different behavior when it comes to it getting the Date().getTime()
maybe something like "express js import rounding numbers"
i tried
but still trying
with diff keywords
uh
nvm
it was just a matter of browser then
librewolf has a different behavior when itcomes to express i guess
its already side by side
lmao
librewolf just decided to go round off numbers
welp thats alright, at least its working on the most common browser
i don't know why librewolf would round that off tho 
of the Code or pip install error?
I currently have no clue how physics work and would like to change that.
I want to create am AI for Dunk Shot (https://www.spielaffe.de/Spiel/Dunk-Shot), a game where you have to throw a ball into a hoop.
The game shows a bit of the trajectory of the ball, i know i could just get these points and create a parabola of that.
There is however the option to bounce off the wall and i would therefore like to properly simulate the physics of the game.
I found different articles on how to do that but i got lost very quickly. Basically, i want to calculate the coordinates of a ball that was launched with an initial force.
https://en.wikipedia.org/wiki/File:Ideal_projectile_motion_for_different_angles.svg
This seems to be what i want, but i can't find how it is calculated.
I don't need someone to fully explain it to me, i'd just need a good link that can get me started.
Thank you!
this is a security thing - librewolf intentionally rounds timers to 100ms because by default the fingerprinting resistance is turned on
chrome lets sites create really precise timers which can let them do more precise fingerprinting/tracking and also makes exploiting Spectre easier
Thank you for this info ๐ now I understand it better
I figured it out, i literally start with an initial velocity and then just subtract gravity at each step
maybe pip
ok, wait a Sec.
that is the error:
my guess is the most recent version of opencv-python doesn't work with 2.7
ok... well, i got that installed, is that the Same?
it's not
try forcing it to use 4.2.0.32
ok, i know how to set a specific install Version
yea but it doesn't look like it supports 2
ok ๐ค
if it runs then it works
by the way, would you then recommend to uninstall the Normally installed Python 3.9 Enviroment? (not installed with anaconda)
pip install whatever==0.1.3
do i need to keep all the Python installs in anaconda? because i have python 3.9 installed outside of anaconda
I don't know
ok
my brain is starting to hurt
trying to run an ffmpeg command using os.system
but it doesn't work 
lemme edit the script a bit then send
import os
path = os.path.dirname(os.path.realpath(__file__))
videoFrmt = input("What is the input video format?: ")
outputFile = input("What is the output filename?: ")
formatCmd = f'ffmpeg -i "{path}/Video.{videoFrmt}" -i "{path}/input.mka" -b:a 320k -crf 18 -preset veryfast -vf "subtitles=\'{path}/input.mka\'" -c:a aac -ac 2 -map 0:v:0 -map 1:a:0 {outputFile}.mp4'
os.system(formatCmd)
[Parsed_subtitles_3 @ 00000226d6ed04c0] Unable to open input.mka
[AVFilterGraph @ 00000226d97d14c0] Error initializing filter 'subtitles' with args 'input.mka'
Error reinitializing filters!
Failed to inject frame into filter network: No such file or directory
Error while processing the decoded data for stream #0:0
my friend says it works for him, but doesn't work for me
Does the path in your case contain spaces?
I'd suggest using subprocess.run instead of os.system by the way.
Anyone here did work before with PHP Builds?
My PHP 5.6 fails with OpenSSL with OPENSSL_1_1_0. ๐ฆ
error: invalid use of incomplete typedef โDHโ {aka โstruct dh_stโ}
are the input files in the same directory as where you're running the command
you may just need to carefully read over the ffmpeg manual and make sure you're getting the arguments right
im building my flutter project in xcode. Should I do this?
updating all targets to 12
ya
apparently it works for my friends, not for me
I have ffmpeg, video.mp4, input.mka and the script in a folder
I have a feeling it's trying to use my system ffmpeg
it does not, I've also tried subprocess.run but no luck
it's definitely a problem with my path, the command works when I remove the path and run it within the folder, but doesn't work when I use the python script
very strange, if I could get the script to run within that folder it would work
You could
lemme try it now
http://bubblemint.cumz.one/59Pr7uc.png well that worked
hmm
oh well, if it works it works
XD
thanks
i need help with GitHub... i don't know how to make those versions:
Dang I hate Go.
ya don't like walruses?
It takes me 17 lines of code to parse a simple data structure. The same code would be a single clear and clean line in something like Python or C#.
Part of that is the API I'm consuming is terrible, and it doesn't have a sane data representation. Everything is the generic interface{} type, so the code to parse it looks like terrible Java 5 code with a million casts everywhere. A major part of this is that the Go library I'm consuming was built using auto-generated hooks from a badly documented Swagger API. That's just a tooling problem, and a problem with picking a language that doesn't force programmers to use a sane type system, while also not being dynamic to allow flexible types.
The other part of it is that Go doesn't have any functional tools, so I'm having to parse each piece of the object piece by piece, since I can't just chain find operations like this: map.tryGet("firstkey").tryGet("secondKey").listHasItem(itemMatcherLambda)
Instead, I have to do make one function call to get the first key, if it exists, with maybeFirstValue, exists := map["firstKey"] then make manual type casts one-by-one like this: firstValue, isValid := firstValue.([]NextType), checking the exists and isValid values each time.
The end result is that the code is a horribly messy and unreadable chunk of nested if statements and object casting.
And Go doesn't have the sane and clear philosophy of Python, to assume everything works and just catch any failures.
I can't just do value = item in map["firstKey"]["secondKey"] then do a simple check if matchesWhatIWant(value) to see if the value is valid.
Go hates programmers, so I have to front-load all the error checking or deal with using panics in a very unintended and stupid way. (Which I'm not going to do, because it destroys maintainability, and hides other possible errors.)
Apple Silicon forced me to be not totally Docker stupid since I wanted to go native with my docker images. Weirdly MySQL doesn't seem to have ARM64 native images so I ended up using MariaDB which as someone who's idea of overwriting SQL is database management seems to have no repercussions whatsoever
There aren't even any null safe operators in Go, so I can't even write my own tryGet(item) function, since if it returned null, I'd have to split the lines up anyways.
Non-native images run automagically via QEMU kernel. It's pretty performant all things considered.
Why are you trying to run ARM64 docker images? The majority of infrastructure isn't ARM based, so it doesn't gain you much value to run them on ARM64 locally if you're going to the cloud, and if you're staying on local hardware, there are far better ways to bundle and package apps for the new Macbooks.
Anyways. I "solved" my problem by sweeping the real problem under the rug. I have a getTheRightItem(map) function that obscures all the disgusting mess of object casts into its own function, far away from the rest of the code. It's a disgusting mess, but at least it's not polluting the important pieces of code.
just make Go run a python function to parse the data bro
I mean, at this point that's what I'd like to do, if my team didn't have high quality code reviews to catch shenanigans like that.
So, I stand corrected about my previous statement. After fixing a slight bug where I missed one of the nesting properties, and adding some extra whitespace to pass the linting checks, I have a 35 line function to do something that would take one line in C# or Python.
I wonder what the average cpu usage at major cloud providers are
I'm making a video Game called Sanctuary RTS. check it out!
If you assume that the major cloud providers are a substantial part of the internet, then I'd say the "average" probably follows the same curve as daily power usage does. Ramping high in the morning, staying high through the afternoon, slowing down in the evening, and tapering off late evening.
If that averages out, I don't think it could be higher than 50%, but the peak would probably be 70% to 90%. They'd ideally never want to peak super high, since they'd have to not deliver service to some of their customers if they ever hit 100% usage.
Looks pretty sick
they consistently expand, and they do cut off customers frequently if there are capacity restrictions. Moving to the cloud though, most companies lighten their foot print compute wise
Do you mean making releases on Github?
If you run docker on ARM by default it'll pull and use ARM images for your device, very handy and fast versus using emulation. Lots of images have been published with ARM builds for a while now, so there is no problem pulling down ARM images for your local dev. I don't think they were talking about using ARM in prod unless they are using something like AWS Graviton.
Yeah, like in that image
You can do it in the GUI on the right hand side of your repo like this:
Yeah, i use the Github desktop app tho...
Last I knew it wasn't supported in GitHub desktop, maybe it is now not sure I don't use that app.
You can automate the releases, there is an API for it I believe.
Ok ๐ค
Looks like you can do it w/ GitHub CLI: https://cli.github.com/manual/gh_release_create
Assuming you don't do releases that often I'd just open the website. ๐คทโโ๏ธ
Well, that is just a project for fun. So it can be any time that i stop uploading new versions
Like, in some time I might drop it.
But as long i work on it as the owner of that project, it will be for free.
Version 2.0 gets an new repo to better reflect the name.
And propperly list the versions
MariaDB is the better Alternative tbh.
ARM64 Docker Images are great for managing and automating your service scaling and deployments just like x86... even for those tiny SBC's like RasPis, NanoPi, RockPi, You name it.
seems to have no repercussions whatsoever
It is intended to do that
Late reply: MySQL doesnโt have an arm native image and prior when I transferred two weeks ago to the m1 pro, the images copied too.
Was ending a major project so no real reason to bother when everything was working. Deleted all my images and then swapped MySQL for MariaDB for the few projects using MySQL.
If you donโt flag the platform, Docker will use whatever image exists.
For what Iโm doing for environments I didnโt notice really any performance differences between x86 and arm64. Itโs really cool that you can run split images for different cpu architectures.
"Magic Numbers" are fun
Thereโs actually a lot of arm64 Docker infrastructure now for major stuff and Iโm just using Docker for local dev, and using back end as service. Iโve ended up with several cms sites where i handle everything. I am a ux dev thus donโt really know infrastructure or devops nor do I want to. I make the figma and sketch files into code and make sure the pixel pushers donโt screw up things with unreasonable asks, and full stack out of necessity.
Im an Infra/DevOps/CloudOps/Arch person myself
Desktop is just basically a gui git
Many GitHub features are only in web
We made a game, we like beta testers, pls join and feel free to give us feedback, we are totally new in it so yea, it is quite janky ๐ (not a scam, I promise, we worked really hard on it)
Android: https://rvlabs.eu/android
Apple: https://rvlabs.eu/apple
More info: https://discord.dss.lol/ - #annoucements channel
(if it should not be here for whatever reason I understand if it will be deleted, thx)
oh ๐
If you're looking for the best git gui, it's probably SourceTree. It's still quirky and somewhat buggy, like all git gui programs, but it makes it much easier to do useful things like select specific lines to be in your commit, and it puts the git graph front and center, which not enough UIs do.
If you're trying to do some complex git graph thing, I find that source tree is much easier to work with. You can interact directly with the graph by right clicking and branching from a specific commit or resetting to a specific location. Most of the other git guis I've tried don't have that functionality. It's the killer feature that makes it worth putting up with SourceTree's quirks. Typing out git commit IDs on the command line is painful, and that's the only real alternative.
For anyone working with git, here's the most useful command I know:
If anyone wants more than just the simple one line command, here's the source discussion: https://stackoverflow.com/questions/1057564/pretty-git-branch-graphs
Alright so I need some feedback, I'm making my own app store for Windows that's open source
I'm funding it fully out of my pocket because it's actually fun
Hubspace is an open-source project that aims to provide a simple Windows App Store. We want to recreate the macOS App Store experience on Windows and make it easier for developers to share their apps without paying for a license.
lmk if you like it or not
Any and all feedback is welcome โค๏ธ
Warship won't let you say ๐ฉ, but it lets spam like this in. ๐
Well thx I guess xD we developed it and just wanna find out what peeps think about it
well, i made an New Repository to move my Project to that and Properly do the Versions.
Hardware that infiltrates? Do you mean software?
It seems quite cool, i like the concept (though i would prefer something with dependency management, but that would be a lot harder and that's just not how windows software is distributed generally so it would require a wider shift in how windows development as a whole works), and the website GUI looks quite nice (though i think i found a bug in it, where should i report that?) (and i'm generally not someone who cares much about GUIs, but i do particularly like this one), and it's also really honorable that you're paying for everything yourself, good luck with everything!
Well, the sorteare is on the hardware
So its a hardware
With software on it
And it ibtereacts wothh other hardware
unfultrate?
whats the hardware
Well, the sorteare is on the hardware
So its a hardware
can't argue with that
is there any legal worries to having a lot of 3rd party software be by Hubspace
anyone familiar with this, im really struggling to find where the google-credentials.json file will be created
already added it to mine but I just can't seem to find where its creating the file, therefore my app crashes when it tries to .post
tho I can just have like another solution of creating an on-site .json file that gets modified when the app is ran and that the app accesses the keys themselves and writes them on the new .json file as they use it https://stackoverflow.com/questions/43405331/how-can-i-use-google-default-credentials-on-heroku-without-the-json-file
looks like you're the one to set where it would store the file
the documentations are scarce imo
both from the official heroku website
and this github page
just states this one
no command lines provided on where it will create it
tho it does this, but it doesnt create the app/ folder on my side so I still can't confirm if its actually running
i will try the clever .json creation one
fingers crossed
I will contact companies and let them take over the software on their account or delete it from Hubspace
Anyone here have experience with programming for a database? (In particular MySQL, but I'm still open to choosing smthg else). After a few months of getting python and C, i have some questions
Why are all the tutorials and examples using hardcoded password? Who the hell thinks that's a good idea?
Especially if it's meant to teach newbies how to use the api
wdym programming for a database
Writing programs and scripts for dynamically altering databases
I doubt anyone here has experience with database, idk this is #development /s
As an example, using C MySQL API
I found a similar issues when looking around for developing program that access email fort example
It wasn't without quite a bit of digging that you'd see the "how to do this without hardcoding your password"
Why isn't that in lesson#1
It is staggeringly difficult for a newbie trying to learn say python with MySQL to figure out how to just my.cnf file for password. Not impossible but none of the usual places that teach this sort of thing cover it until as an "advanced topic" rather than right away as a part of "how to connect to MySQL"
So my question is...as someone who is learning database programming, why is this? And more importantly are there any database and APis that completely disallow hard code password?
When you were learning programming, did they teach you first how to
"hello world" or loops
Kinda related question... Need suggestion for scripting language that uses curly braces or end statements.
I was taught that main returns int
As an alternative you can not teach that
I had a buddy who's programming instructor did void main for the first bunch of lessons
Still works but ... Good programming habits are good programming habits
You also learn a bunch of stuff you don't always understand at the start... In c you need as bunch of #incldes for example
What's wrong with just putting in the "opt file=โ instead of a password?
One of my professors was "teaching" us MySQL to build databases and querys but I was never able to wrap my head around it. good luck
holy shit it worked now
this is the one that i followed
created a new deployment
fresh
and holy shit, my breakdowns are now gone
spent 8 hours scouring for solutions
I can finally store google-credentials.json safely in heroku
web app is nearly done, 75-70%
just need to integrate the new frontend, and improve it to log more data into the google sheets api
job well done this week
for our development
Actually my bigger problem now is finding a resource to teach my less inclined colleagues. What was it about queries that u found difficult btw?
So far I'm still on the fence about MySQL or just like access or something
My workplace encourages python for advanced analytics so far I chose that
But both MySQL and python are not easy to get working on windows
He basically gave us like 2 classes on MySQL and then like 85% of the final exam was MySQL for his class
Yikes
Tenured Professors amirite
My workplace had a course for this
Advanced analytics etc
And the sql portion of equally baflling
Yeah mine was a Database class
Just get right into statements
No one taking about "ok this is how a database is not excel"
I'm really struggling with adoption though
These are ppl who had their minds blown by the following excel formula:
=LEFT(SKU, FIND("~",SUBSTITUTE([SKU"-","~",2)))&"1"
It just takes the 2nd - and removes everything past it
Does anyone here know how to create a function that will sort an array from largest-to-smallest in C?
Doubt someone knows
Yeah its highly unlikely
very unlikely, because this is #development
Yeah C is never used in development
Indeed, i wonder what languages do people use to create kernels
yes indeed that is something to ponder my good sir
you can straight up implement merge-sort/quicksort
there's also qsort
yeah he doesnt want us doing it ๐ฆ
so you use qsort?
what is the question here? "how do i sort an array"?
Yeah I figured it out though. I was just trying to sort an array of ten numbers from largest to smallest in a function
how'd you do it
Bubblesort/insertionsort
Access shouldn't even be compared with a proper database engine like MySQL imo. ๐
It is common to step students from spread sheets, to Access, and to full database. It makes for an easier learning curve as you understand the basic of what are arguably more simplified products that require less technical knowledge.
idk what's hard
I setup oracle, mysql, mariadb in windows
didn't have much problem
also python is literally just an installer that you spam next
Yeah I have run both on windows without issues as well. For dev I'd prob run them in WSL/docker imo.
Not enough classes teach people env setup, they just do bare min.
okay im going at this for 2 days straight (almost) and i cant figure it out: what im trying to do is , have a python script when run by a user , replace itself with the samescript run as sudo (wich works) but with the environment of the user passed allong , especially PYTHONPATH, , this is the code , the only part thats "worth" looking at is the "super_su" part the rest is basicly testing stuff , if you copy paste the code into a file.py and run it on linux (or wsl i supose) it should give you a nice view of whats wrong (green vs red) i tried to make it as short as possible for pasting it as a single message here.:
#!/usr/bin/env python
import os
import sys
def testenv(**k):
n=k['n'];h=k['h'];m=k['m']
[[print('\033[0m{n}\033[32m{k}={v}\033[0m'.format(n=n,v="\n".join([f'\033[0m',*os.environ.get(c).split(":")]),k=c)) for c in os.environ.keys() if t in c.casefold()] for t in h]
[print(f'{n}:\033[31m {v} : FAIL!\033[0m') for v in m if not os.environ.get(v)]
def super_su(**k):
print(f'GOT UID: {os.geteuid()}({os.environ.get("USER")}) NEED UID: 0 (root)!')
# args = ['sudo', sys.executable] + sys.argv + **os.environ
args = ['sudo', sys.executable] + sys.argv # + [os.environ]
os.execvpe('sudo', args, os.environ)
# os.execlpe('sudo', *args)
# os.execve('sudo', *args) #, os.environ)
# os.execvpe(k.get('helper1'), args, os.environ)
# os.execvp(k.get('helper1'), [k.get('helper2'), exe, *cmd])
def main(): super_su() if os.geteuid() != 0 else print(f'running as UID: {os.geteuid()} ({os.environ.get("USER")}) [OK]')
###TESTING###
if os.geteuid() != 0: os.environ['REROOT']="ONLY SET BY USER->OK"
if os.geteuid() != 0: print(f'\033[32m {"-"*15} SANITY TEST AFTER THIS {"-"*15} \033[0m');testenv(n='\033[34m[NOROOT] ',h=['python','reroot','user'],m=['PYTHONPATH','REROOT'])
else: print(f'\033[32m {"-"*15} ROOT TEST AFTER THIS {"-"*15} \033[0m');testenv(n='\033[33m[ROOT] ',h=['python','reroot','user'],m=['PYTHONPATH','REROOT'])
### switch user###
main() #runs supersu if not root
output of the script
I hate job interviews Bleh, almost done with this this coding challenge and it was supposed to be 4 hours but their Docker setup was a bit screwed so I had to fix that I documented what I did. I just never know the line of overkill or not.
Have been at my same company for 7 years so itโs time to move on and I remember why I always get annoyed with job interviews
if manual, bubble sort is really easy and is my go to haha
i fixed my problem in a way a bad way but for now it works until some one can explain to me how to pas env with os.exec[alfbethere], bybass it :```py
#!/usr/bin/env python
import os
import sys
import pickle
def testenv(**k):
n=k['n'];h=k['h'];m=k['m']
[[print('\033[0m{n}\033[32m{k}={v}\033[0m'.format(n=n,v="\n".join([f'\033[0m',*os.environ.get(c).split(":")]),k=c)) for c in os.environ.keys() if t in c.casefold()] for t in h]
[print(f'{n}:\033[31m {v} : FAIL!\033[0m') for v in m if not os.environ.get(v)]
def super_su(**k):
#store env before switching
with open('/tmp/REROOT_USER.env' , 'wb') as f:
pickle.dump({**os.environ},f)
print(f'GOT UID: {os.geteuid()}({os.environ.get("USER")}) NEED UID: 0 (root)!')
args = [f'sudo env PYTHONPATH="{os.environ.get("PYTHONPATH")}" ', sys.executable] + sys.argv # + [os.environ]
os.execvpe('sudo', args, os.environ)
def main(): super_su() if os.geteuid() != 0 else print(f'running as UID: {os.geteuid()} ({os.environ.get("USER")}) [OK]')
def env_load():
with open('/tmp/REROOT_USER.env','rb') as f :
env_tmp=pickle.load(f)
#only add keys that are missing, avoids overwriting USER ,USERHOME , ...
os.environ={key : env_tmp[key] for key in env_tmp.keys()if key not in os.environ.keys() }
if os.geteuid() == 0:## if root get user env ###
env_load()
###TESTING###
if os.geteuid() != 0: os.environ['REROOT']="ONLY SET BY USER->OK"
if os.geteuid() != 0: print(f'\033[32m {"-"*15} SANITY TEST AFTER THIS {"-"*15} \033[0m');testenv(n='\033[34m[NOROOT] ',h=['python','reroot','user'],m=['PYTHONPATH','REROOT'])
else: print(f'\033[32m {"-"*15} ROOT TEST AFTER THIS {"-"*15} \033[0m');testenv(n='\033[33m[ROOT] ',h=['python','reroot','user'],m=['PYTHONPATH','REROOT'])
switch user###
main() #runs supersu if not root
Interviews for software industry really do suck. So long and stressful, why does our industry have entire services people pay for to "prep" for interviews. Just feels wrong to me. Haha
This stage 3 of 4 so I've cleared 2. It's interesting as they quized me a bunch of back endy things and I was like "I don't know" but they wanted someone who's more front endy and works with design teams which is me. It was a little odd but I've had worse. Much worse.
I can write terrible PHP and Python and hit a rest API.
Or do it more easily in JS
Maybe just trying to find a FE person who knows th basics of BE? Like enough they can work with BE devs easily?
Yeah just do JS imo haha
I just hit the API with php and made a HTML template string since PHP now has that really basic thing.
Now I'm onto cypress tests and thankfully cypress caught my dumbass assumption you had active localStore
they better love me. I even baked in tabbed support for accessibility and css transitions.
Is this like a take home?
take home
I honestly have never done a take home, it's always been live pair programming sessions. I have heard of lots of ppl doing take homes though.
Yep take home.
Then its 4 hours of paired programming
The company does basically high tier stuff in real estate and has a lot of custom stuff but it's of all technologies..... wordpress When I heard the salaries though, I was like "I love wordpress!"
This is like winter vacationing Breckenridge and Banff money.
I'm not exactly poor either but apparently when I wasn't looking remote jobs are now paying SF wages.
Apparently though having people with real dev shop experience who know wordpress is weird thing that their internal recruiter has had a hell of a time finding. I only took the call sicne he saw my linkedin and read my profile that said "contact not using linked in" and went to my personal site and wrote me a nice email.
Yeah remote jobs are getting more competitive now. I got 60%+ raise since covid started by switching jobs recently myself.
Yeah right now getting talented devs as a whole is hard, we are in a great position right now to leverage it and get raises.
Yeah that's about where my raise would be and I already got a covid raise
My SF coworkers still avg 18-25% more than me but the gap has closed a tone and I'm in a place that's over 600% cheaper housing so I think I come out pretty good. Haha
I'm not a wordpress guy but I did develop a website with custom gutenberg plugins which is React....inside of wordpress.... to replace the WYSIWYG..
I remeber like 3/4 years ago hearing ppl were starting to build react plug-ins in WordPress. Never done it, but sounded interesting.
FOR.REAL. Several years ago a friend of mine from college moved back from the bay area to Oregon. He was paying $3k for a single bedroom in a house.
Gutenberg is really cool and insane and I can't tell if good or bad. It squarespaces wordpress but its just farting out markup. It's really dumb tech as in single DB entry still for content which is probably more good than bad and when you load the post it has tags to denote the markup block that pertains to the interface block.
I sold my place to move to Portland but my mortgage was $598 a month. I kick myself for not just renting it now.
Hahaha that's dang cheap payment.
That was in Eugene area. Bank repossessed home.
I pay just under $1,500/m for my house.
Not bad, I don't think there's anywhere cheap left anywhere.
I was tempted to move to CA on the outskirts, because my company would up my comp to match if I move there. But even the outskirts towns / cities near SF I was seeing stuff like $700k. ๐ญ
My boss was gave me shit during the pandemic since i was split between my home town on the Southern Oregon coast and Portland for awhile. He asked if I was gonna buy a house there. I don't think he realizes the cost of beach towns.
brutal
I sent my boss real estate listings and he dropped that.
I was like "You'd have to pay me a lot more"
Most my coworkers in SF, even someone higher up that I know is making over $300k is renting. He said he just can't bring himself to spend over million on a small house. Haha
A friend of mine moved to Boise awhile back because it was "Cheap".... it isn't now
oh gawd. $300k and I'd have very nice house.
It was very interesting spending time 'Murica though in the pandemic. I swear the #1 concern most people have is RENT now.
I'm like I need to just keep moving up in the company and stay some place cheap, live like king. I'll be in some avg home in the burbs, but everything inside will be amazing. ๐
Yeah the friends I have here that rent said it's gone up like nuts. Glad I bought I guess. ๐
My GF has here on own home moving in with her. I insulted the garage and my dad and I wired up it and I paid to have the dry wall done. Waiting on it to be textured and I'll have the best office since I had my own home.
her house is REAL small though 750 sq feet.
Nope
Congrats man
the garage is free standing, single car but decent sized at about 275? sq feet
now am optimizing our login page, regex is a funny thing man 
"[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*"

If you have the cash or if your new company does reimbursement on wfh stuff I'd highly suggest sit stand desk. I hated it in an office, because when you stand your like up high in a cubical everyone looking at you. Haha
But at home it's stupid nice.
Yep, thats correct, i wanna have my own motorized desk too
Why do you have a cra, y regex on the logi n page. ๐
I don't know how one regexes without an online utility
just to make sure the participants arent inputting crazy email shit
just basic stuff
that they can't input just "hehehehwhfhe" and stuff
i just searched that one 
You can use input type email, for basic validation on client. Then on the server have the stricter check, since you can't really trust the client anyway. Haha
ah yes i can do this too
i am planning on using express validator
i already have a link saved for it
I was about to say as a front end guy I'd just do really basic email validation and let the back end guys sort the edge cases
im actually the back end guy
but my front end partner is still busy with other pages
gotcha
and i have nothing to do as of now until he finishes his part
so im cleaning up our login page to make it presentable

AHAHHAHA
its gonna look sick when im finished
That's a sexy login page
I like the giant Email Logger followed by another title of Email. ๐
Do you think an email goes there. ๐ค
im really super happy last night that I managed to fix the .json file thingy so my google sheets api code will work inside heroku ๐
oh that HAHAHA im actually making a new one, its just my current status, currently making the proper login page
Yeah the gcp cred file can be a bit of a hassle to work with at times. I remeber having to learn how todo it in k8s with sealed secrets. Haha
im glad that people from 3 years ago have figured out a script
that reads from the config vars
and makes a credential.json, heroku side
i can now safely push to github
without the credentials.json actually being there
I belive you can also take the gcp cred file and pass it in memory to the method calls to authenticate. I know you could in the Python modules at least. But it is combersum / annoying todo, much nicer to just get the file in there. Haha
I'm glad I took this project, this will give me a headstart with my 2nd semester that is starting next week, on Web Development: html,css,js, reactjs (frontend), nodejs
Woo React is awesome
thing is google requires that is a file, i wish that they didnt tho, it would be so much easier, just calling process.env.[insert_key_here], but no, they wanted to have access to the file itself with the keyFile
React + component library is so nice. You can grab something like antd, material, or blueprintjs and have a nice looking app with all styles predone for you. Haha
yes im excited to start in react
currently im just fiddling with nodejs + express
Right I know in Python you could pass to the gcp method call a credentials strings of it which you could grab off the envs. But idk if it let's you do that on node side.
i tried that, using nodejs, i just failed after coding 2 hours 
Yeah when you go to react you'll likely start building out APIs more so rather than rendering it from templates like you prob are now. So you usually have a separate client / server. (except when doing ssr with something like NextJS)
Although even with NextJS a lot of ppl use that just to make fast severing and more seo friendly sites, but still call downstream apis from next.
Yeah coding is rough, esp early on in your career. Feel like you'll spend more time dealing with blockers than coding. ๐
Well still, at least I'm fascinated by how my mind works now
that even tho i failed, I still had that kind of pseudocode in my mind
that I wouldn't have back then
Like I start to see things much differently now before I even start coding which cuts my time of trying to figure out what to do, unlike back then
Yup, the more expierenced you get the more often you run into things you don't know how todo but you can often just guess how.
Yup, eventually you'll find you can just write a tone of code and it all or most of it just works right from the first try.
Do you use nodemon? That makes local dev on express easy, does instant reloading on file change.
In React you'll get similar with webpack hot module reloading. Prob your class will just use create react app, but idk react didn't exist when I went to college so not sure how they teach it. Haha
there is another coding competition thats starting soon, I figured I should start participating in them more often, I can add to my portfolio + having to constantly code will sharpen my skills. starting my 1st year was rough, too scared to even join stuff I don't know about, this project opened my confidence to try stuff even tho I have little to 0 knowledge about it
yes i use nodemon
really saved my ass
really handy
I never did any code competition, I always want todo them but then just don't have nay good ideas. Haha
this one in particular, composes of having to solve algorithms, which I know we will use in my future courses, particularly in further C language classes (I have like 5 different courses in different years that is always gonna use C, i guess its really a fundamental)
so I figured I like having to brainstorm algorithms of code
Oh ok, I'm not a big fan of doing algo stuff. I mean I enjoy performance work and some BigO type evaluations. But the random algo challenges I have a hard time getting interested in.
I had the same problem with math though, if I'm doing math to solve a problem I love it. But when I'm doing a math problem just to solve a random math problem for my grade I get really board and I find myself doing anything except the school work. Hahaha
Like I legit helped build a whole web app for collaborating on projects with students, because I didn't want todo my school work for some class I hated. Hahaha
Thankfully I love todo something that pays good otherwise I'd prob have a real hard time in life. ๐๐
I faced the same dillema during my 1st year last year, dealing with calculus 
alright imma go back to fixing our design
I was a terrible student outside my tech classes. I think my tech classes are all that kept my grades ok. Hahahaha
gotta make sure every page is uniform 
what matters is that in the outside world, you know how to deal with things and make sure you get paid
excelling in college and not really being good handling different challenges after college will be such a pain in the ass to deal with 
Yeah life outside college is... Very diff from what I feel they said it was. ๐
But I guess that depends what kind of professors you have, are they ppl who worked in the workforce doing this or are they a Dr who just got their Dr degree and started teaching never really doing the work. Lol
I feel like here in the US it's so common to see teachers that teach as a profession and never do the actual profession they teach. Feels... Weird / backwards. Haha
I have a digital arts degree, I thought I was losing my mind since it was sooooo nutty. I actually did better in my non-major classes
A few very short examples: Package design class a guy got a bunch of used needles and made a baggy and said, "Here's my fuckin' project. I wanted to bring back the glamorous side of <insert needle drug so warship doesn't delete this>"
Oh wow, I had some friends doi g digital arts and I remeber they had to make a bjnch of logos and one time they had tk make a short films with some like special effects.
I wish it was that practical. I was told "We don't teach programs, we teach ideas"
I was like "OMFG what have done with my life?"
Honestly everyone was like, oh no when friends took the classes with short films and stuff. Because you knew your fiends was going to bother you showing you all their projects so excited, which is cool for them but let's be honest most student projects aren't that fun or good to actually watch. ๐๐๐
I went into college knowing how to use Adobe and Apple products and left the same, not really learning a lot.
imagine sitting through them
I had to
Yup I have super negative view on college and often wish I either didn't go or wish I went to a virtually free local college just to get the degree. Hahaha
I enjoyed most things about college but I was the least cool art kid. I liked going to sports games and thus dressed the part. I remember taking later on a class in sports medicine. Everyone in the class was dressed wearing university shirts, backwards hats, pooka shells (this was some time ago, don't judge) and I was like "Oh. This is where I was supposed to be".
Hahaha
I took one CS class. It was fall term. It smelled like BO. There was a guy who wore a cape. I was like "NOPE!" and dropped it. I probably should have done that as tried to avoid becoming a developer but that's where I was always headed.
I felt let down by tech classes since I was working on computers and playing with Linux since I was like 12.
Then my none tech classes I just didn't care about.
I should have just gone some place fun and still got a degree I guess. ๐ค๐ค๐ค
A CAPE?!?!! hahahaha
I think the was being mid 2000s and Eugene Oregon? I dunno. I bet the guy was a high level mage though.
Like I knew a guy who rode a unicycle to classes.
I went to college not wanting to be a dev as well, but they were the only classes I aced so I eventually just switched.
I always thought of programmers as code monkey sitting at computer and I wanted todo more decision making and such.
Glad I made the switch, now I make pay like decision makers and yet still have super lax work schedual / flexibility. Haha
Yep, its the best job for slackers
The weirdest I had was some guy wearing a Dr Seuss hat to class all semester. Haha
Programming is often short cutting so you don't have to do something again
I know, captain obvious
Most my tech classes had 2 types. The majority not wanting to talk and everyone trying to get seats as far in the back as possible or those few that just wouldn't stop talking and thought they knew everything. Haha
I imagine alpha geeking was real.
I swear the louder they were the less they knew though.
But hey if you spend your whole life talking instead of listening you prob do learn less. ๐คทโโ๏ธ
much much better

i didn't know css can have animations
so cool
i am so OOTL
Not bad, Iโd suggest maybe a diff font for the title, also maybe try a close to black color but not fully #000 to let it blend a tad.
agreed
Yup transitions can do a lot of nifty stuff super easy but then if you need even more power you can use keyframes too. There are so many cool css tricks that it always amazes me to see pure css animations that Iโd swear were JS.
Because our whole industry values features over even the most basic security practices. Because most people skim through tutorials to solve simple homework assignments. That means two things. Proper security features may make it literally impossible to submit your homework assignment, and most people don't see any value in spending hours learning about security when they just want to finish their assigned work. That's also true for professional developers. How fast you release features is usually considered more important that security, so you see major sites like LinkedIn making horrible security mistakes that result in huge harm because they didn't want to stop developing new features to spend time on security. Marketing a new feature is a directly observable benefit. Possibly reducing the impact of a theoretical security breach is a lot harder to track and measure, so it usually ends up neglected.
Because everything is a lot more complex than "Just do X". Because if someone has full access to your machine, the difference between a hard coded password and a signed certificate file is completely meaningless. Because securely setting up and securely configuring HashiCorp Vault to store vulnerable security certificates is a complex topic that requires a very experienced Ops person. Because configuring an automated build environment to help you safely inject those secrets into a Kube cluster you set up is its own entire 6 month class. In most professional environments, it would be unreasonable to expect a brand new MVP product to deploy to production in under a month or two with all those things properly configured, because everything is complicated. Even if you wanted to make things secure in that type of environment, I've literally seen a financial department block procurement of HashiCorp Vault for 5 years. You might literally not be allowed to procure the tools you need to make things secure. Our industry is complicated, and people constantly push for more short term speed, at the expense of long term stability. It's a pattern you see repeated across humanity, so I don't see why our industry full of humans should magically be any different than the rest of the world.
You just need a better development setup. I use Python just fine on windows. If you configure python on our path, you can run python programs exactly like you would on Linux. Also, get yourself VS Code for Python. It works well with the "random assorted set of related code and config files" type projects that Linux systems prefer.
What makes using Python on Windows complicated? (I'm excluding Ops automation of desktop user systems. The Ops guys have plenty of Microsoft tools for automating things on corporate Windows desktop machines.)
I've seen the same stuff too. It's not so much an unfortunate reality but just how it is, that in the modern technology stack it is so complex and at the same time so abstracted that you need to know a huge amount of stuff to even comprehend what it all does and how to configure it.
Working in any big organization that's become a mature monolith is really painful it that regard as you pointed out. Change control and the prioritization of stability and certainty, while good values - just makes it incredibly difficult to innovate, let alone keep things up to the industry standard.
Places like that are still relying on old automation stacks, and as you've mentioned - many aren't even using secret stores. They'd rather work with some legacy tool and go through the pain of writing a whole custom wrapper essentially around your tool to allow your semi-modern automation platform APIs to communicate with your legacy infrastructure that has an API that looks like it's from 2010.
Just a bit of a rant really. But it's also why we're seeing many of these organizations pivoting toward cloud-first. They have the money, and really the capabilities to modernize, but not the willingness.
It's only now that they are catching on that they have little choice but to move to a cloud platform to keep up, and that will be a good thing. Bringing in cloud consultants, they will be forced to refactor a lot of their existing systems.
And while many systems will be lift and shift, keystores, container platforms, etc will be there at their disposal - and managed. Not as hard for change control.
I just pitty the ones who go to Oracle Cloud.
Oracle cloud? *shudder*
possible i can ask for help with html-css in here or does it not fit?
Is that development though
yea? developing a website or i think.
Kk
I have a moving background on my html page but whenever i hover over a button it stops and snaps to wear the mouse is. Is it possible I can make the buttons transparent in a way where the background will still track? https://codepen.io/thefryz/pen/gOXeLLd ; https://fryz.xyz
Fryz Landing Page.
It's because you are listening to events on the BG image, which is not a parent of your nav. So the mouse events don't bubble up to it.
For example if you did something like: document.body.addEventListener('mousemove' it should work as you are expecting.
Notice how the ul is not a child of the div with background class the query is for, so those events bubble up to body instead.
Finally made express-sessions to work
it was a huge mistake to store the basic email data inside the js file
rather having express-sessions made t better, store user data locally first before finally being submitted to the server, without it fiddling with other user data whilst logging in / accessing the website
Im bored, anyone need any help ๐ฅฑ
Blue is my own session
Red is another user's session
I logged in successfully and therefore have access to other links
while Red user has not logged in yet and is trying to access directly the other links that require authentication
fucking finally
backend is 90% done
๐ฅณ
i recognize that css file path, ill be there in 5 minutes
found out all i needed to do what switch bg.addEventListener to window.addEventListener
Yup, as long as what you query for is a parent of the child where the mouse will move the event will bubble up to it. The mouse move event target will be the current element the mouse moved on, but it'll bubble up until bubbling is stopped or it hits the most root item.
You might already know this, but just mentioning in case not haha. The default session store for express sessions I believe is in memory store, which isn't very secure and won't persist.
Once you add a session store it'll save a check sessions against an external state, like a DB or key value store.
Although for a research app it's probably not a big deal, esp if it's only tracking emails and user results.
function getDBCooldown(userid) {
let sql = `SELECT Author author,
Cooldown cooldown
FROM cooldowns
WHERE Author = ?`;
let author = userid
// first row only
db.get(sql, [author], (err, row) => {
const now = new Date();
const cooldown = new Date(row.cooldown);
const value = date.subtract(cooldown,now);
const days = parseInt((cooldown - now) / (1000 * 60 * 60 * 24));
const hours = parseInt(Math.abs(cooldown - now) / (1000 * 60 * 60) % 24);
const minutes = parseInt(Math.abs(cooldown.getTime() - now.getTime()) / (1000 * 60) % 60);
const seconds = parseInt(Math.abs(cooldown.getTime() - now.getTime()) / (1000) % 60);
if (err) {
return console.error(err.message);
}
return days + " days " + hours + " hours " + minutes + " minutes " + seconds + " seconds "
//? console.log(days + " days " + hours + " hours " + minutes + " minutes " + seconds + " seconds ")
// : console.log(`Found no cooldowns for this user.`)
});
}
How come this returns undefined?
But this below works fine?
console.log(days + " days " + hours + " hours " + minutes + " minutes " + seconds + " seconds ")
return() breaks the syntax
js right?
Yep
try to make a string first
its a discord bot btw
then return the string
This is really weird
const hello = "PresentMonkey"
return hello ```
it returns still undefined
In python, how could i create multiple variables from a for loop? For example from the list my_list = ['a', 'b', 'c'] make multiple variables like var1 = 'a' var2 = 'b' var3 = 'c'
that should work
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Yeah, I see it does work there
not sure why it's not does here
I show you why its weird
const hello = days + " days " + hours + " hours " + minutes + " minutes " + seconds + " seconds "
return hello
? console.log(hello)
: console.log(`Found no cooldowns for this user.`)
console.log(hello) shows me
6 days 23 hours 13 minutes 35 seconds
I also tried ? return hello, but thats breaks the syntax again.
thatโs returning the value of the function console.log() which gives undefined
Console log sends the data to the console. It doesn't return anything, so it'll always be undefined when you return a console log.
I don't return to console log
For easier working with dates I'd suggest using a package, like daysjs or date-fns. They would make that code much simpler and less error / bug prone.
Right here you just returned the console log.
if(command === 'predict') {
const cooldown = cooldowns.get(message.author.id); // this will check the cooldown
if (cooldown) {
const remaining = humanizeDuration(cooldown - Date.now(), { round: true }, { units: ["d","h","m","s"] });
const test = getDBCooldown(message.author.id);
message.reply(`Cooldown is set for you. ${test}`)
return;
This is where I would want to return the values
What are you trying tk return? You have bothijng after your return stament right now. ๐ค
Hard to follow since the code snippets keep changing. ๐
Wait, I upload the whole code ๐
I simply try to return the cooldown from the db
It should return something like 6 days 23 hours 13 minutes 35 seconds
I'll check on my computer in a few, I'm cell right now haha
Thank you in advance man ๐
So all your returns are console statements. For example if the code is making it to hello correctly, then you want to just return hello not the console log of it.
You can do something like this if you want to log it before returning it.
console.log("The value of hello is: ", hello)
return hello
Like which line?
The console.log method returns nothing, so by returning the response from console.log you'll always return undefined
Your hello code is line 41-44
I see, but for me console.log(hello) did shown me the date
Yes that sends data to the console, it does not return anything.
Yeah correct.
So returning console.log(something) will always return undefined, even if something is defined.
Where did I return console.log(something) ?
The word something was just an example, you have many spots in your code you are returning console.log
Yes, I get that, the part where I would show it is :106
The one troubling you I think is this one:
return hello
? console.log(hello)
: console.log(`Found no cooldowns for this user.`)
Yes, but even if I remove the last two lines and just keep return hello, I still get undefined
Check the value of hello then, but you deff do not want to be returning console.log
Of course not, this is just for test
const hello = days + " days " + hours + " hours " + minutes + " minutes " + seconds + " seconds "
console.log("The value of hello is: ", hello)
return hello
but as I said, in the console, it does show the value of hello
106 on the file you sent is just a return.
return;
ok
Your returning inside a CB that's why
So you either need to pass a CB to that or use a promise and resolve the value to the promise
See this return is returning the CB anonymous function for your get method:
CB?
callback
oh sorry
np
So you can pass a callback that it will run to send the message when it's done, but idk I find that kind of ugly and harder to maintain vs a promise.
A promise you can just .then or await if you use an async function.
So you can do something kind of like this:
return new Promise((resolve, reject) => {
let sql = `SELECT Author author,
Cooldown cooldown
FROM cooldowns
WHERE Author = ?`;
let author = userid
// first row only
db.get(sql, [author], (err, row) => {
const now = new Date();
const cooldown = new Date(row.cooldown);
const value = date.subtract(cooldown,now);
const days = parseInt((cooldown - now) / (1000 * 60 * 60 * 24));
const hours = parseInt(Math.abs(cooldown - now) / (1000 * 60 * 60) % 24);
const minutes = parseInt(Math.abs(cooldown.getTime() - now.getTime()) / (1000 * 60) % 60);
const seconds = parseInt(Math.abs(cooldown.getTime() - now.getTime()) / (1000) % 60);
if (err) {
reject(err.message);
}
const hello = days + " days " + hours + " hours " + minutes + " minutes " + seconds + " seconds "
console.log(hello)
resolve(hello)
});
})
Then if we are not using an async function we can do something like this:
getDBCooldown(message.author.id)
.then(msg => message.reply(`Cooldown is set for you. ${msg}`))
.catch(err => console.error("Erorr getting cooldown: ", err))
I didn't test any code since I don't have it setup, just sending examples. haha
If you use an async function it'd just be const test = await getDBCooldown(message.author.id) more similar to how you have it today. But ofc you still have to handle the error / reject, so either just never reject or better pattern is prob to jsut wrap in try / catch block.
Here is the syntax you'd add to use async instead of promise chaining:
In case nothing really changes in the getDB?
You still have to adjust that method to return a promise or other option is pass it a callback.
Since it needs way to communicate back / run some code when it is done.
So lets look at CB option just a sec
It shows the syntax is ok for me but yet it fails
The core issue is talking to the DB is an async operation, meaning it doesn't get resolved right away.
function getDBCooldown(userid)
{ return new Promise((resolve, reject) => {
let sql = `SELECT Author author,
Cooldown cooldown
FROM cooldowns
WHERE Author = ?`;
let author = userid
// first row only
db.get(sql, [author], (err, row) => {
const now = new Date();
const cooldown = new Date(row.cooldown);
const value = date.subtract(cooldown,now);
const days = parseInt((cooldown - now) / (1000 * 60 * 60 * 24));
const hours = parseInt(Math.abs(cooldown - now) / (1000 * 60 * 60) % 24);
const minutes = parseInt(Math.abs(cooldown.getTime() - now.getTime()) / (1000 * 60) % 60);
const seconds = parseInt(Math.abs(cooldown.getTime() - now.getTime()) / (1000) % 60);
if (err) {
return console.error(err.message);
}
const hello = days + " days " + hours + " hours " + minutes + " minutes " + seconds + " seconds "
console.log(hello)
resolve(hello)
});
}) };
unexcpected return, I guess I added at the wrong line, but not sure
ah nvm
Fixed ๐
Change the return console to either a resolve or reject as well.
If you wanted todo CB you can do something like this, I deleted all the code between just to make it smaller to send in the channel haha.
Another option while doing CB is to just pass a method that does all the processing of the response, so you can abstract it into something reusable as well.
But yeah I find promises easier to work with usually, unless it's like 1 level deep of CB. Once you get into like 2, 3, 4, etc CBs it gets to be a headache. Esp when you need todo sync work, then await makes life so easy. haha
I haven't done alot w/ SQLite myself, I think the most I used it was when I worked on a Django app and I used it for some local dev stuff instead of spinning up a PSQL instance.
Now usually when I need a mini DB I use a cloud instance that fits into a free tier. Unless it's local, then I use docker. haha
Well this one is running on PI ๐
I am still a bit sad because the GPO ports seems broken and the fan control doesn't work
which is literally +30C
I have a Pi I always want to use, but every time I come up with something I end up just tossing it in like Cloud Functions or something. haha
But if you need it offline that makes sense to use it, I just haven't come up with a good offline only project in a while.
I even installed LiteSpeed on it
which doesn't supports arm64 at all xd
but works flawlessly
I think last time I wrote PHP was 6+ years ago. I think by now I have forgotten pretty much all my PHP knowledge. ๐
๐
I don't really use it either
but LSadmin requires it and that's how i made my virtualhost
in qt designer, how can i center a QSplitter (containing a QLabel and QPushButton if that matters) on the window? first time using designer for any significant amount of time :p
@wind horizon can you send me a dm?
