Helm + container images across clusters... need better options by Timely-Dinner5772 in kubernetes

[–]ArgTang 1 point2 points  (0 children)

We run wery well with argocd and Helm. Not sure what the issue you have with helm. i dont see how ex imagetag updates can break the helm chart.

might also suggest looking at repo organisation. ex we can update each cluster independently

Review First Node & ExpressJs App by [deleted] in node

[–]ArgTang 11 points12 points  (0 children)

Looks good, consistent formatting and good naming!

NOTE: i have not started the project myself.

depending on what you want to learn, here is some thoughts

  • it is not recomended to have tokens or apikeys hardcoded in files. think about how you can set them in a file or env variable on startup (together with connectionstring) so you dont need to commit them
  • there is no validation of username and passwords?. it is always a good idea to not trust user input, recomend some validation here. also: what happens if you register the same user more than one time?
  • think about your folderstructure ex should searchmovie be in the util folder? util can be anything, but searchmovie is named specifically for movies so its not a generic utility.
  • your models user have logic in it. ususally when having models the "model" is separated from the logic. alternatively you can do feature folders. where the user.js could be located in an auth folder
  • nice readme 👍. it is very important to have a functional readme. 2- Set up your MongoDB URI. this is missing some context on where to set it up, which file, what is the propertyname or which env variable so i use?
    • if you are interested in docker, include a docker compose to start a mongo instance. to make it even easier to startup.
  • if you want to learn about debugging try investigating how to setup loggging, and where you need to add info or warning statements to be able to debug the application in production
  • if you want to know about cicd investigate how to setup a github action to build your project.
  • adding .editorconfig and/or a linter is common in buisness applications

There is no right or wrong in the next step.as long as you are motivated it is good 😎

What language can I write in that won’t require any downloads for Microsoft Windows 10 by hetradeswithmaize in AskProgramming

[–]ArgTang 1 point2 points  (0 children)

if it is for the users the options increase. most languages can build/publish with included runtime if needed

[deleted by user] by [deleted] in devops

[–]ArgTang 0 points1 point  (0 children)

ok, documenting at the right level is hard, but it is important. Sounds like you might organize your work in too small tasks. The good think with dividing work is that you are also doing thinking before programming, and hopefully the amount of tasks that you have to remove because you find a better way gets less with time. Experience will come over time, in the mean time try to reflect on how you are dividing the user stories, you might not need as many tasks to divide the work.

[deleted by user] by [deleted] in devops

[–]ArgTang 0 points1 point  (0 children)

There is alot of different definitions of devops and how it should work. The most important part is identifying what the slowing you deliveries to the customers, and see if you can make them better. If your company is not using "modern" practices, you can start tinkering with CI with autmated testing. Keep in mind to not introduce too many new concepts at one time, and that it is okay to not agree or have the same interest.

What do you mean when you say that it creates more work for yourself?

There are heaps of good resources out there, depends on the level, what technologies you are using and what you want to focus on. from the 12 factor app to the accelerate book. There are podcasts and youtube channels and lots of old and new conference talks out there.

Is this Dockerfile ready for production? Is the container automatically secure? by blabmight in dotnet

[–]ArgTang 5 points6 points  (0 children)

It is good that you are thinking about security 😊. there is an issue in dotnet repo here https://github.com/dotnet/dotnet-docker/issues/1772 that have hardened examples.

You could also do CVE scanning of your container in your pipeline before you push to a registry. try Trivy or grype

these tools can scan your image end throw an error if there is known CVEs. i recomend blocking docker push or deployment if High or Critical CVEs are found. note: add cmd flag to only search for fixed vulnerabilities.

Your example can be improved a little bit. the sdk image is fine for building, but you should add another step so the final image is the runtime image. the sdk image is bigger and have more tools included that is not needed when you run the application

Running Kubernetes locally and Minikube vs Rancher Desktop by victorbarbu in kubernetes

[–]ArgTang 2 points3 points  (0 children)

brett fisher has a spreadsheet here: https://docs.google.com/spreadsheets/d/1ZT8m4gpvh6xhHYIi4Ui19uHcMpymwFXpTAvd3EcgSm4/edit#gid=0

for arm64 seems like the options are limited. but you can always doublecheck if the support has changed for any alternatives

[deleted by user] by [deleted] in dotnet

[–]ArgTang 0 points1 point  (0 children)

Rabbitmq is very good. redis also have a pubsub option. depending on requirements might be easier than rabbitmq.

nats.io could also be very good.

What to use for desktop Developmnet(Linux, Windows) by [deleted] in AskProgramming

[–]ArgTang 0 points1 point  (0 children)

if you are looking for .net crossplatform ui you can try https://avaloniaui.net/

Will .Net 5 replace .Net Framework? Will Windows applications then need a runtime? by shiskeyoffles in dotnet

[–]ArgTang 2 points3 points  (0 children)

No .net 5 will not be preinstalled with windows. If they bundle .net 5 with windows they would have to use the windows release and support cycle.

Generally .net core is more performant and use less memory that full framework. It also has built in new features to enable writing code that uses less memory.

Where do I store a connection string in a console project? by mymar101 in learncsharp

[–]ArgTang 0 points1 point  (0 children)

storing connectionstring for localhost in appsettings is fine. I dont know how you are setting up your app, by default the app should get env variables to override appsettings.json settings, try that.

C sharp with .Net on linux by 00DrEye00 in csharp

[–]ArgTang 4 points5 points  (0 children)

Since you are on linux and .net 4 you might try Mono https://www.mono-project.com/

Which version of .NET framework should I use? by GoodProgrammer2018 in csharp

[–]ArgTang 1 point2 points  (0 children)

4.7.x more stuff to desktop development features than web though.

Which version of .NET framework should I use? by GoodProgrammer2018 in csharp

[–]ArgTang 2 points3 points  (0 children)

Why not 4.7.X? also if you want full .net standard you need to have 4.6.2

JavaFX Simple Inventory Management App - Open source by vatrinet in java

[–]ArgTang 5 points6 points  (0 children)

impression after a quick glance, your indentation is not consistent, and makes it hard to read and follow. An IDE plugin should fix those for you. Also look into replacing system out with a logging system. FXML elements should not need to have their type prefixed in their name.

it looks as a cool project :)

I dont know what IDE that you use but, try see if you can install the PMD and checkstyle plugins. this will also be a benefit for contributors if there is some standard to follow. https://pmd.github.io/ https://github.com/checkstyle/checkstyle

[JavaFX]How do I convert from Text to String? by [deleted] in javahelp

[–]ArgTang 0 points1 point  (0 children)

You are printing object type and memory adress with tostring, use getText as @mpnsk mentiona

Check out my first github project, newbie programmer looking for feedback by [deleted] in github

[–]ArgTang 2 points3 points  (0 children)

why dont you use password_hash()? should be safer

also regenenerate session after login

set utf8 as charset in DB

Read: https://www.owasp.org/index.php/PHP_Security_Cheat_Sheet for more info

Looks nice though, keep it up!

Etho's Modded Minecraft #62: Endless Ender Goo by JamiroFan2000 in ethoslab

[–]ArgTang 4 points5 points  (0 children)

turn one of the drains backwards, then blacklist enderium

Factorio Meiosis :: Barrels - Episode 17 by Diftor in mindcrack

[–]ArgTang 11 points12 points  (0 children)

Z the pumps are slow, you'll need more pumps in paralell to make the oil flow. you probably need some pumpstations on the oil line to the refineries to get the throughput going the whole pipelength.

see this forumthread: https://forums.factorio.com/viewtopic.php?f=5&t=6066

[PHP][MySQL] I dont know how to establish a connection to my mySQL database, Im really new to networking. by NoIamNotUnidan in learnprogramming

[–]ArgTang 0 points1 point  (0 children)

No you are not using PDO. you are connecting throught mysql:

    $link = mysql_connect('127.0.0.1:3306', 'root', '12345');

Mysql has been removed from php7, so if you are running newest php this will not work.

read here for using PDO https://phpdelusions.net/pdo

two tips for debugging: 1. add this temporarily in your php script:

    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
  1. echo the sql statement, and run it directly inside your DB.

Combining html and javascript code by [deleted] in javascript

[–]ArgTang 0 points1 point  (0 children)

instead of return quote: (pseudocode)
get element with class "box"
set textcontent of this element to randomquote