#development

1 messages ยท Page 84 of 1

supple hull
#

I know on Apple's forums they have some sort of tonality control. I had posts rejected as I think the tone may have come off as too negative.

wind horizon
#

Haha

supple hull
#

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.

wind horizon
#

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. ๐Ÿ˜…

supple hull
#

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

wind horizon
# supple hull In fact I most ignore them but long story short, wrote a bigass guide on Mac Pro...

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

supple hull
#

Docker murders so the intel macs

wind horizon
#

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

supple hull
#

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?"

wind horizon
# supple hull Docker murders so the intel macs

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.

supple hull
#

Just like Windows

trail remnant
#

Wait, I thought that Mac had a POSTX compliant kernel?

wind horizon
supple hull
#

Pretty sure it still emulates the ubuntu kernal

#

Dunno why

#

They use QEMU for M1s for containers that are x86

wind horizon
#

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

supple hull
#

Yeah, seeing references to Linux kernel updates in the documents

trail remnant
#

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.

supple hull
trail remnant
#

Yeah, that looks like the official kernel

supple hull
trail remnant
#

You know, I had a lot of people talk about how amazing Mac was for development work

wind horizon
trail remnant
#

Because it allowed you to run native Linux apps, but my experience with Mac has been horrible.

supple hull
#

It'd be a nightmare for me to try and not use a Mac as a UX Dev

#

Are you talking like x11

#

?

trail remnant
#

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.

supple hull
#

Only reason I use Macs is macOS ๐Ÿ˜‰

wind horizon
#

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

trail remnant
#

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.

wind horizon
#

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.

supple hull
#

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.

trail remnant
#

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.

supple hull
wind horizon
#

WSL is awesome, I used it for 2 years straight as my primary dev env.

supple hull
#

There's things I like about Windows but development isn't one of them.

trail remnant
#

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.

wind horizon
#

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.

supple hull
#

Still is a goof balls having to launch Ubuntu layer for ZSH/Bash

supple hull
trail remnant
wind horizon
trail remnant
#

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.

supple hull
#

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.

trail remnant
#

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.

wind horizon
trail remnant
#

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.

supple hull
#

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.

trail remnant
#

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.

wind horizon
#

I mean I'd take Windows w/ WSL over Mac still. ๐Ÿ˜

supple hull
#

Like I've known guys who use Windows since they were deep in .NEt

#

But I am on LTT so it kinda makes sense

trail remnant
#

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.

supple hull
#

Now you can install .NET on macOS which is the interesting timeline we live in

trail remnant
#

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.

supple hull
#

Linux is only free if you consider your time worthless.

#

๐Ÿ˜‰

wind horizon
trail remnant
#

And I value my time highly.

midnight wind
#

I mean, I have had a relatively smooth experience with linux

supple hull
#

Linux really does have its place but on a daily driver desktop really isn't one of them.

midnight wind
#

I daily drive linux sometimes

trail remnant
#

For gaming?

midnight wind
#

depends what I'm working on

trail remnant
#

For content creation?

wind horizon
#

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.

supple hull
#

Like the SteamDeck is an interesting linux use case but its specialty

midnight wind
#

I still use windows

supple hull
#

I barely game as I'm a Mac user ๐Ÿ˜‰

midnight wind
#

For ocassional gaming, and Adobe Acrobat, Davinci Resolve, etc.

hollow basalt
#

Install but not use

trail remnant
#

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.

midnight wind
#

I mean I never had any breaking issues so I never put that much time into it

wind horizon
#

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.

midnight wind
#

not one of those arch people

trail remnant
#

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.

midnight wind
#

rn, kde neon is my go to. Everything else has issues

supple hull
#

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.

trail remnant
#

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)

midnight wind
#

yeah 100%

#

adobe also has such a grasp on the pdf manipulation market

trail remnant
#

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.

supple hull
#

I only used Office for one job I've had in 14 years of working

trail remnant
#

That's genuinely impressive.

supple hull
#

It's kinda interesting how much for web dev, people just went google docs

hollow basalt
#

As a dev, I'm only opening word to meme

trail remnant
#

Google owns the web, so that makes sense.

supple hull
#

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

wind horizon
#

That or confluence, I hate confluence so slow and annoying. Haha

supple hull
#

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

trail remnant
#

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.

hollow basalt
wind horizon
midnight wind
#

microsoft now has their own web version

hollow basalt
#

Been using confluence, ever since i started. It's not great but gets the job done

trail remnant
#

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.

trail remnant
#

I hate confluence with a burning passion.

supple hull
#

JIRA isn't the greatest but it works

#

The problem with confluence is I haven't used anything better

trail remnant
#

At least with Jira, you can set up automation and barely touch it, or just drag user stories around.

supple hull
#

you can't get non-devs/geeks to use a true wiki

trail remnant
#

Confluence has all the worst parts of a crappy web editor, with very few benefits.

hollow basalt
wind horizon
#

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.

supple hull
#

The WYSIWYG editor always feels like a battle but so are all WYSIWYGs from my experience.

trail remnant
hollow basalt
hollow basalt
trail remnant
#

But man, you can't convince a business person to drop confluence for any amount of money.

hollow basalt
#

Yea markdown is good, but I'd rather get back to coding than google how to create something in md

trail remnant
#

And Confluence lacks builtin markdown support, but no one is willing to pay for the enterprise plugin.

supple hull
wind horizon
trail remnant
#

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.

supple hull
#

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

hollow basalt
#

README should contain basic things the dev needs. if it doesn't it failed the kob

supple hull
#

I dunno why i have such a mental block for Markdown

trail remnant
#

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.

supple hull
#

Companies undervalue tech doc writers

hollow basalt
#

Ah yes, Microsoft good documentation. But lack features

supple hull
#

One of the reasons I'll pick using a framework over another is simply if the docs are good

trail remnant
#

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.

wind horizon
trail remnant
#

What helps with writing Markdown is using something like Discord, Slack, or Github READMEs that supports markdown by default

hollow basalt
#

My team uses md for dev wikis. I miss confluence now

trail remnant
#

Start by adding some basic headers, and you'll get used to the rest of it.

supple hull
trail remnant
#

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

hollow basalt
supple hull
#

Nice as you'd be doing it from your code editor, sucky for the rest

hollow basalt
#

Nice as you too

supple hull
#

Ha

trail remnant
hollow basalt
#

Sounds like a templating engine now

supple hull
#

Confluence though often is shared base though from my professional experience. Project managers and such are generally using it.

trail remnant
#

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.

wind horizon
supple hull
#

Hmm, I haven't used markdown lint, sounds good

trail remnant
#

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"
        ]
    }
},
wind horizon
trail remnant
#

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.

supple hull
#

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.

trail remnant
supple hull
#

So at least some of it is versioned with releases or feature branches or whatever the architecture warrants

trail remnant
#

Hot take: If you're running multiple parallel branches often, that's usually a sign of bad process, bad management, or both.

supple hull
trail remnant
#

Story books? Never heard of that.

supple hull
wind horizon
trail remnant
#

Ah, so it's a tool for UI/UX developers to create mockups to describe user experiences?

supple hull
#

@wind horizon yep, on a large project it was like "Here's WIDGET A" and link to it

wind horizon
supple hull
#

rather than just screen cap and simply a user story or whatever nonsense we're defining it as

trail remnant
#

Ah, it's for documenting widgets.

#

That's pretty neat.

supple hull
#

Yeah, idea is you can see them in some level of isolation

trail remnant
#

That's useful.

supple hull
#

Pretty common in react world

trail remnant
#

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.

wind horizon
#

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.

supple hull
#

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

trail remnant
#

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.

wind horizon
#

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.

supple hull
hollow basalt
#

Hahahaha(2)

supple hull
#

Of course not for react projects

#

That'd not work out

trail remnant
#

The classic platforms rant.

#

A must-read for any developer.

wind horizon
#

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.

supple hull
#

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.

trail remnant
#

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.

supple hull
#

I love anyone who loves infrastructure since I don't.

trail remnant
#

I'm like, half developer, one quarter teacher, one quarter operations.

supple hull
#

Someone sets me up a pipeline that's just a happy click or command away makes me happy

#

DevOps are the best

trail remnant
#

Docker, Kubernetes, Jenkins, Cloud compute,

#

that's my jam

supple hull
#

Because I cannot deal with it, but I started as a frond end dev

wind horizon
trail remnant
#

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.

wind horizon
#

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

trail remnant
#

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.

wind horizon
#

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.

midnight wind
trail remnant
#

And man, Ansible sucks. It's only a useful platform for running SSH commands at scale.

trail remnant
midnight wind
wind horizon
#

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.

midnight wind
trail remnant
#

The problem is that GCP is way behind other cloud platforms in features.

wind horizon
#

But managed database options on gcp are more basic.

trail remnant
# midnight wind ah apparently it's being removed tho (the runtime)

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.

midnight wind
# trail remnant I don't believe that you aren't going to be able to run Docker managed by Kubern...
trail remnant
#

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.

midnight wind
#

for developers there is no difference

trail remnant
#

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.

midnight wind
#

docker images are OCI so it'll be fine

#

just underlying tech needs to change

#

if you are running your own cluster

trail remnant
#

That's not surprising at all. Kubernetes is really good about upgrading underlying components without breaking interfaces.

midnight wind
#

yeah

trail remnant
#

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.

midnight wind
#

I mean docker isn't the only frontend. Podman is very very similar to docker

trail remnant
midnight wind
#

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

trail remnant
#

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.

silk eagle
#

that could be about the shoe though bro smart

trail remnant
silk eagle
#

you wield too much power

trail remnant
#

I've got skills.

silk eagle
#

but do you say "cool beans" in work emails?

trail remnant
#

You want a real comparison? Check the job market.

#

That's all the words you need to figure out why you should use Docker.

trail remnant
silk eagle
#

well its not just "cool beans" theres other stuff in there too

midnight wind
hollow basalt
#

What's cool bean

trail remnant
#

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.

midnight wind
#

main thing against docker is that it runs as a daemon

midnight wind
trail remnant
#

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.

hollow basalt
#

Main thing against docker, my coworker laptop got fucked and bsod ๐Ÿคฃ

trail remnant
midnight wind
#

yes

wind horizon
#

Deploying with docker swarm ๐Ÿคฎ

trail remnant
#

@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.

midnight wind
#

you don't jump on the newest thing

trail remnant
# midnight wind yes I get it

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.

wind horizon
#

I thought the argument was just that there was other options, not that it was better. Maybe I missed something while had phone closed. ๐Ÿ˜…

midnight wind
#

^

#

all started from me saying kubernetes is dropping docker runtime support KEKW

trail remnant
#

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

trail remnant
trail remnant
#

Docker-produced images will continue to work in your cluster with all runtimes, as they always have.

midnight wind
#

yes

wind horizon
#

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.

silk eagle
#

im no deployment wizard so please forgive my lack of information but...
linuth what does kubernetes do

trail remnant
#

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)

wind horizon
#

I think. Maybe it sounds like most of this time pickle is talking docker images while Monkey is more so talking the runtime. ๐Ÿค”

midnight wind
#

yeah a misunderstanding

trail remnant
#

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.

wind horizon
#

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.

trail remnant
#

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.

midnight wind
#

I just remembered reading it

#

a docker container can run on anything OCI compliant

#

and vise versa

trail remnant
#

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

midnight wind
#

I never doubled down on a stance what

#

whatever

trail remnant
#

So why did you bring it up in the first place?

midnight wind
#

I was thinking at a OS level, not a high level

trail remnant
#

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.

wind horizon
trail remnant
wind horizon
#

It was a good night of convos though, this channel kind of goes dead some days. Haha

hollow basalt
#

But since it's friday

wind horizon
#

That's a fair point haha.

#

I had today off, so logically I needed to find some other places to talk dev haha.

trail remnant
#

Man, I can't find a busy community to chat with developers.

hollow basalt
#

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

wind horizon
#

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

hollow basalt
#

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

#

๐Ÿค”

wind horizon
#

Haha you have to like answer some questions to gain access. ๐Ÿ˜…

hollow basalt
#

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

wind horizon
#

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

hollow basalt
#

"duplicate"
"No it's not duplicate, the error message is different"
"Solution is the same"

trail remnant
#

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.

hollow basalt
trail remnant
#

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.

hollow basalt
#

i dunnno, maybe it's not evident that I don't know sht about what i'm talking about

wind horizon
#

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. ๐Ÿ˜…

trail remnant
hollow basalt
midnight wind
#

lol

trail remnant
#

"I don't know, never heard of it before"

midnight wind
hollow basalt
trail remnant
#

I think it's important to have good documentation, and link newbies the documentation.

midnight wind
#

the amount of times I try to read the docs and it kinda just sucks

wind horizon
#

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.

trail remnant
midnight wind
#

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

trail remnant
#

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.

midnight wind
#

I've seen that, been learning powershell, and it's pretty nice

trail remnant
#

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.

wind horizon
#

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.

midnight wind
#

MDN is pretty nice

trail remnant
#

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.

silk eagle
next cipher
#

yeah as much as i don't love Microsoft's ecosystem, their documentation is consistently pretty good

ornate spire
#

speedrunning by making a game world before midnight and then having to PATIENLY WAIT FOR IT TO RENDER ๐Ÿ˜ฉ

nocturne galleon
#

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

plush valley
# nocturne galleon I feel like im so behind on what I should already know, being a computer science...

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

wind horizon
#

I think this is why so many colleges are now offering Software Engineering type of degrees.

next cipher
#

yeah serious "computer science" mostly takes place on a blackboard

wind horizon
#

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

drowsy leaf
#

Hi any ideas of projects for raspberrypi 400 ?

storm berry
#

is it a hardware project or software one

nocturne galleon
#

I am very excited next semester for my 3rd year,, to start learning about ML and AI

wind horizon
# nocturne galleon this, but good thing our uni is still catching up and is still among the best in...

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. ๐Ÿ˜…๐Ÿ˜…

wind horizon
# nocturne galleon I am very excited next semester for my 3rd year,, to start learning about ML and...

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.

rough kestrel
#

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

hollow basalt
#

minus 2

plush valley
nocturne galleon
#

im trying to import a package in netbeans but says it doesnt exist when it obviously does

#

any clue?

hollow basalt
#

it doesn't exist

glass canyon
wind horizon
#

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

drowsy leaf
nocturne galleon
#

importing html + js into express seems to work but with quirks on the calculation side KEKW

#

at least it works now

molten meadow
#

G'day everyone, just wanted what IDE you guys are using for frontend web dev

dense ibex
#

VS Code, if you're a student you can get a free license of WebStorm tho

molten meadow
#

I'll take a look

dense ibex
molten meadow
#

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 ๐Ÿ™‚

nocturne galleon
#

i have a game in ue4 and i have some error when i try to export it

night flame
#

i've gotten errors before

#

it sucks

kindred iris
#

Hi, i need some help with opencv-python installation...

#

the Python version is 2.7 in an anaconda env

kindred iris
#

i'll be back tomorrow after school

storm berry
kindred iris
storm berry
#

What's the error

kindred iris
#

Error: no access to main pc at the moment

#

Access back after school

#

At around 2pm or later at timezone +1:00 Berlin

nocturne galleon
#

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

wind horizon
#

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.

nocturne galleon
#

fixed now

#

that body-parser was not working correct the first time

wind horizon
#

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.

nocturne galleon
#

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 KEKW

#

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

wind horizon
#

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.

nocturne galleon
#

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 KEKW

#

same exact code

#

different behavior when it comes to it getting the Date().getTime()

silk eagle
nocturne galleon
#

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 KEKW

kindred iris
slender sand
#

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!

next cipher
#

chrome lets sites create really precise timers which can let them do more precise fingerprinting/tracking and also makes exploiting Spectre easier

nocturne galleon
slender sand
storm berry
kindred iris
#

ok, wait a Sec.

kindred iris
hollow basalt
#

It already tells you what to do patrick

#

also why are you still using 2

storm berry
kindred iris
#

ok... well, i got that installed, is that the Same?

hollow basalt
#

it's not

storm berry
#

try forcing it to use 4.2.0.32

kindred iris
hollow basalt
#

yea but it doesn't look like it supports 2

storm berry
kindred iris
storm berry
kindred iris
#

downloading...

#

done

#

thanks by the way.

kindred iris
sage quarry
#

pip install whatever==0.1.3

kindred iris
sage quarry
#

I don't know

kindred iris
#

ok

zinc swift
#

my brain is starting to hurt

#

trying to run an ffmpeg command using os.system

#

but it doesn't work TNPensiveGiga

#

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

sturdy ingot
#

I'd suggest using subprocess.run instead of os.system by the way.

lament bridge
#

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โ€™}

storm berry
next cipher
#

you may just need to carefully read over the ffmpeg manual and make sure you're getting the arguments right

vestal spire
#

im building my flutter project in xcode. Should I do this?

#

updating all targets to 12

zinc swift
#

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

zinc swift
#

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

zinc swift
#

lemme try it now

#

hmm

#

oh well, if it works it works

#

XD

#

thanks

kindred iris
#

i need help with GitHub... i don't know how to make those versions:

trail remnant
#

Dang I hate Go.

silk eagle
#

ya don't like walruses?

trail remnant
#

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.)

supple hull
#

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

trail remnant
#

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.

supple hull
#

Non-native images run automagically via QEMU kernel. It's pretty performant all things considered.

trail remnant
#

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.

silk eagle
trail remnant
#

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.

trail remnant
#

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.

storm berry
#

I wonder what the average cpu usage at major cloud providers are

lunar chasm
#

I'm making a video Game called Sanctuary RTS. check it out!

trail remnant
#

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.

fierce arrow
topaz flare
wind horizon
wind horizon
kindred iris
wind horizon
kindred iris
wind horizon
kindred iris
#

Ok ๐Ÿค”

wind horizon
kindred iris
#

PS: that is what I usually use rn

#

But I think rn if I use the web version now...

wind horizon
#

Assuming you don't do releases that often I'd just open the website. ๐Ÿคทโ€โ™‚๏ธ

kindred iris
#

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

plush valley
plush valley
hollow basalt
supple hull
# trail remnant Why are you trying to run ARM64 docker images? The majority of infrastructure is...

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.

plush valley
#

"Magic Numbers" are fun

supple hull
#

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.

plush valley
midnight wind
#

Many GitHub features are only in web

rotund relic
#

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)

kindred iris
trail remnant
#

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:

sturdy laurel
#

am developing a piece of hardware that can unfultrate servers

#

๐Ÿ˜ˆ

rotund zinc
#

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

#
#

lmk if you like it or not

#

Any and all feedback is welcome โค๏ธ

wind horizon
rotund relic
#

Well thx I guess xD we developed it and just wanna find out what peeps think about it

kindred iris
#

well, i made an New Repository to move my Project to that and Properly do the Versions.

fierce arrow
nocturne galleon
# rotund zinc lmk if you like it or not

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!

sturdy laurel
#

So its a hardware

#

With software on it

#

And it ibtereacts wothh other hardware

midnight wind
#

unfultrate?

fierce arrow
#

whats the hardware

hollow basalt
#

Well, the sorteare is on the hardware
So its a hardware
can't argue with that

storm berry
nocturne galleon
#

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

hollow basalt
#

looks like you're the one to set where it would store the file

nocturne galleon
#

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

rotund zinc
nocturne galleon
#

so it is indeed working

stable bough
#

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

hollow basalt
stable bough
#

Writing programs and scripts for dynamically altering databases

hollow basalt
#

I doubt anyone here has experience with database, idk this is #development /s

stable bough
#

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?

hollow basalt
#

When you were learning programming, did they teach you first how to
"hello world" or loops

stable bough
#

Kinda related question... Need suggestion for scripting language that uses curly braces or end statements.

stable bough
#

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?

fierce arrow
nocturne galleon
#

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

stable bough
#

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

fierce arrow
#

He basically gave us like 2 classes on MySQL and then like 85% of the final exam was MySQL for his class

stable bough
#

Yikes

fierce arrow
#

Tenured Professors amirite

stable bough
#

My workplace had a course for this

#

Advanced analytics etc

#

And the sql portion of equally baflling

fierce arrow
#

Yeah mine was a Database class

stable bough
#

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

fierce arrow
#

Does anyone here know how to create a function that will sort an array from largest-to-smallest in C?

hollow basalt
#

Doubt someone knows

fierce arrow
#

Yeah its highly unlikely

hollow basalt
fierce arrow
#

Yeah C is never used in development

hollow basalt
#

Indeed, i wonder what languages do people use to create kernels

fierce arrow
#

yes indeed that is something to ponder my good sir

storm berry
#

there's also qsort

fierce arrow
#

yeah he doesnt want us doing it ๐Ÿ˜ฆ

storm berry
next cipher
#

what is the question here? "how do i sort an array"?

fierce arrow
#

Yeah I figured it out though. I was just trying to sort an array of ten numbers from largest to smallest in a function

fierce arrow
#

thats just the function

storm berry
#

Bubblesort/insertionsort

wind horizon
hollow basalt
#

I setup oracle, mysql, mariadb in windows

#

didn't have much problem

#

also python is literally just an installer that you spam next

wind horizon
#

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.

deft sigil
#

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

supple hull
#

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

nocturne galleon
deft sigil
#

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

wind horizon
supple hull
#

I can write terrible PHP and Python and hit a rest API.

#

Or do it more easily in JS

wind horizon
wind horizon
supple hull
#

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.

wind horizon
#

Is this like a take home?

hollow basalt
#

take home

wind horizon
#

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.

supple hull
#

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.

wind horizon
#

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.

supple hull
#

Yeah that's about where my raise would be and I already got a covid raise

wind horizon
#

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

supple hull
#

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..

wind horizon
#

I remeber like 3/4 years ago hearing ppl were starting to build react plug-ins in WordPress. Never done it, but sounded interesting.

supple hull
#

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.

wind horizon
#

Hahaha that's dang cheap payment.

supple hull
#

That was in Eugene area. Bank repossessed home.

wind horizon
#

I pay just under $1,500/m for my house.

supple hull
#

Not bad, I don't think there's anywhere cheap left anywhere.

wind horizon
#

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. ๐Ÿ˜ญ

supple hull
#

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.

supple hull
#

I sent my boss real estate listings and he dropped that.

#

I was like "You'd have to pay me a lot more"

wind horizon
#

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

supple hull
#

A friend of mine moved to Boise awhile back because it was "Cheap".... it isn't now

supple hull
#

It was very interesting spending time 'Murica though in the pandemic. I swear the #1 concern most people have is RENT now.

wind horizon
#

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. ๐Ÿ˜‚

wind horizon
supple hull
#

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.

wind horizon
#

Ooof

#

Does that count garage?

supple hull
#

Nope

supple hull
#

the garage is free standing, single car but decent sized at about 275? sq feet

nocturne galleon
#

now am optimizing our login page, regex is a funny thing man KEKW

#

"[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*"

wind horizon
#

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.

nocturne galleon
#

Yep, thats correct, i wanna have my own motorized desk too

wind horizon
supple hull
nocturne galleon
#

just basic stuff

#

that they can't input just "hehehehwhfhe" and stuff

#

i just searched that one KEKW

wind horizon
#

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

nocturne galleon
#

i am planning on using express validator

#

i already have a link saved for it

supple hull
#

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

nocturne galleon
#

im actually the back end guy KEKW but my front end partner is still busy with other pages

supple hull
#

gotcha

nocturne galleon
#

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

wind horizon
#

That's a sexy login page

nocturne galleon
#

indeed

#

minimalist

wind horizon
#

I like the giant Email Logger followed by another title of Email. ๐Ÿ˜‚

#

Do you think an email goes there. ๐Ÿค”

nocturne galleon
#

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

wind horizon
#

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

nocturne galleon
#

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

wind horizon
#

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

nocturne galleon
#

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

wind horizon
#

Woo React is awesome

nocturne galleon
wind horizon
#

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

nocturne galleon
#

yes im excited to start in react

#

currently im just fiddling with nodejs + express

wind horizon
nocturne galleon
#

i tried that, using nodejs, i just failed after coding 2 hours KEKW

wind horizon
#

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.

wind horizon
nocturne galleon
#

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

wind horizon
#

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.

wind horizon
#

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

nocturne galleon
#

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

nocturne galleon
#

really saved my ass

#

really handy

wind horizon
#

I never did any code competition, I always want todo them but then just don't have nay good ideas. Haha

nocturne galleon
#

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

wind horizon
#

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. ๐Ÿ˜‚๐Ÿ˜‚

nocturne galleon
#

I faced the same dillema during my 1st year last year, dealing with calculus monkaS

#

alright imma go back to fixing our design

wind horizon
#

I was a terrible student outside my tech classes. I think my tech classes are all that kept my grades ok. Hahahaha

nocturne galleon
#

gotta make sure every page is uniform KEKW

nocturne galleon
#

excelling in college and not really being good handling different challenges after college will be such a pain in the ass to deal with KEKW

wind horizon
#

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

supple hull
#

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>"

wind horizon
#

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.

supple hull
#

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?"

wind horizon
#

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. ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

supple hull
#

I went into college knowing how to use Adobe and Apple products and left the same, not really learning a lot.

supple hull
#

I had to

wind horizon
#

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

supple hull
#

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".

wind horizon
#

Hahaha

supple hull
#

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.

wind horizon
#

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

supple hull
#

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.

wind horizon
#

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

supple hull
#

Yep, its the best job for slackers

wind horizon
#

The weirdest I had was some guy wearing a Dr Seuss hat to class all semester. Haha

supple hull
#

Programming is often short cutting so you don't have to do something again

#

I know, captain obvious

wind horizon
#

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

supple hull
#

I imagine alpha geeking was real.

wind horizon
#

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. ๐Ÿคทโ€โ™‚๏ธ

nocturne galleon
#

much much better

#

i didn't know css can have animations

#

so cool

#

i am so OOTL

wind horizon
#

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.

wind horizon
# nocturne galleon <:KEKW:670048864052445204>

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.

nocturne galleon
#

ah shit

#

i forgot about sessions

#

smh

nocturne galleon
#

well

#

session storage seems an easy solution then

trail remnant
# stable bough Why isn't that in lesson#1

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.

trail remnant
# stable bough But both MySQL and python are not easy to get working on windows

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.)

nocturne galleon
# trail remnant Because our whole industry values features over even the most basic security pra...

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.

nocturne galleon
#

possible i can ask for help with html-css in here or does it not fit?

hollow basalt
#

Is that development though

nocturne galleon
hollow basalt
#

Kk

nocturne galleon
wind horizon
wind horizon
nocturne galleon
#

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

eternal scarab
#

Im bored, anyone need any help ๐Ÿฅฑ

nocturne galleon
#

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

#

๐Ÿฅณ

silk eagle
#

i recognize that css file path, ill be there in 5 minutes

nocturne galleon
wind horizon
wind horizon
# nocturne galleon Blue is my own session Red is another user's session I logged in successfully ...

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.

lament bridge
#

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 ")

midnight wind
#

try return()?

#

not sure

lament bridge
#

return() breaks the syntax

midnight wind
#

js right?

lament bridge
#

Yep

midnight wind
#

try to make a string first

lament bridge
#

its a discord bot btw

midnight wind
#

then return the string

lament bridge
#

This is really weird

#
const hello = "PresentMonkey"
return hello ```

it returns still undefined
hybrid gate
#

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'

midnight wind
lament bridge
#

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.

lament cave
lament bridge
#

well that worked for me

#

So that's why I don't get why return does not

wind horizon
#

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.

lament bridge
#

I don't return to console log

wind horizon
wind horizon
lament bridge
#
  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

wind horizon
lament bridge
#

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

wind horizon
#

I'll check on my computer in a few, I'm cell right now haha

lament bridge
#

Thank you in advance man ๐Ÿ™‚

wind horizon
#

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
lament bridge
#

Like which line?

wind horizon
#

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

lament bridge
#

I see, but for me console.log(hello) did shown me the date

wind horizon
#

Yes that sends data to the console, it does not return anything.

lament bridge
#

Yeah correct.

wind horizon
#

So returning console.log(something) will always return undefined, even if something is defined.

lament bridge
#

Where did I return console.log(something) ?

wind horizon
#

The word something was just an example, you have many spots in your code you are returning console.log

lament bridge
#

Yes, I get that, the part where I would show it is :106

wind horizon
#

The one troubling you I think is this one:

    return hello
    ? console.log(hello)
    : console.log(`Found no cooldowns for this user.`)
lament bridge
#

Yes, but even if I remove the last two lines and just keep return hello, I still get undefined

wind horizon
#

Check the value of hello then, but you deff do not want to be returning console.log

lament bridge
#

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

wind horizon
#

And where are you seeing undefined?

#

What line in your code

lament bridge
#

106

#

message.reply(`Cooldown is set for you. ${test}`)

wind horizon
#

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:

lament bridge
#

CB?

wind horizon
#

callback

lament bridge
#

oh sorry

wind horizon
#

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:

lament bridge
#

In case nothing really changes in the getDB?

wind horizon
#

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

lament bridge
#

It shows the syntax is ok for me but yet it fails

wind horizon
#

The core issue is talking to the DB is an async operation, meaning it doesn't get resolved right away.

lament bridge
#
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 ๐Ÿ˜„

wind horizon
#

Change the return console to either a resolve or reject as well.

lament bridge
#

Now it does work

#

Edited the code

#

Thank you very much man

wind horizon
#

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

lament bridge
#

Funny thing

#

I did this for my friend as he has no idea about SQLite 3

#

xD

wind horizon
#

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

lament bridge
#

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

wind horizon
#

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.

lament bridge
#

I even installed LiteSpeed on it

#

which doesn't supports arm64 at all xd

#

but works flawlessly

wind horizon
#

I think last time I wrote PHP was 6+ years ago. I think by now I have forgotten pretty much all my PHP knowledge. ๐Ÿ˜†

lament bridge
#

๐Ÿ˜„

#

I don't really use it either

#

but LSadmin requires it and that's how i made my virtualhost

nocturne galleon
#

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

lament bridge
#

@wind horizon can you send me a dm?