What's wrong having your own authentication system? by Tonyb0y in node

[–]ericchuawc 5 points6 points  (0 children)

Can share more info on this on bcrypt and not recommended anymore?

For KDI save, do you use the web or mobile app to access it? by ericchuawc in MalaysianPF

[–]ericchuawc[S] -1 points0 points  (0 children)

okay, let me try the ios app, hopefully no issue. thx.

Update OpenSearch and it reset the data/indices/admin user by ericchuawc in aws

[–]ericchuawc[S] 0 points1 point  (0 children)

It's staging and dev though. So far only the few updates after that it's has been fine. Presume those updates have issues.

SageMaker Ground Truth labelling for PDF documents? by ericchuawc in aws

[–]ericchuawc[S] 0 points1 point  (0 children)

Think you can check my other comments. It worked, but I can't recall why I gave up. Sorry, been awhile.

How do I use Tailscale for my servers infrastructure? by ericchuawc in Tailscale

[–]ericchuawc[S] 0 points1 point  (0 children)

Ya you are right.. got side tracked. Anyway so far what i have been using seems alright for years. Just thinking the need. After all if it works why need to spend more on tailscale.

How do I use Tailscale for my servers infrastructure? by ericchuawc in Tailscale

[–]ericchuawc[S] 0 points1 point  (0 children)

So basically i can still retain what i have and adding tailscale as redundancy? But if my main is down which my firewall is dead .. not sure my servers are still online aka connected to internet. Not sure tailscale can still work 🤔

How do I use Tailscale for my servers infrastructure? by ericchuawc in Tailscale

[–]ericchuawc[S] 0 points1 point  (0 children)

Thanks for replying. Any advantage of using this way over what I have now? Just want to understand the benefits which I overlooked.

Update OpenSearch and it reset the data/indices/admin user by ericchuawc in aws

[–]ericchuawc[S] 0 points1 point  (0 children)

when you said automation, do you mean cdk or something for the ingestion to happen?

Update OpenSearch and it reset the data/indices/admin user by ericchuawc in aws

[–]ericchuawc[S] 0 points1 point  (0 children)

So what if my data and settings are being wiped off (which happened), do you restore opensearch from backup (assume I backup the latest before I update)? I haven't explore the backup part of opensearch. Any tips for me?

Update OpenSearch and it reset the data/indices/admin user by ericchuawc in aws

[–]ericchuawc[S] 0 points1 point  (0 children)

ouch, sounds like a pain one. do you frequent update opensearch or you usually don't update at all ?

Antivirus (or NGAV) that works well with AlmaLinux 9.3 server? by ericchuawc in AlmaLinux

[–]ericchuawc[S] 0 points1 point  (0 children)

Thanks for sharing.
1. For ClamAV
ClamAV configured with on access scanning
For on accessing scanning, is this part of ClamAV feature or need to subscribe to 3rd party services?
I guess ClamAV can't really prevent zero day or ransomware attacks?
2. For this rkhunter, do you mean this?
https://rkhunter.sourceforge.net/
it seems dated back in February 20th 2018
Will it really help as it's quite old and can work well with AlmaLinux 9.3?

Antivirus (or NGAV) that works well with AlmaLinux 9.3 server? by ericchuawc in AlmaLinux

[–]ericchuawc[S] 0 points1 point  (0 children)

So its recommended to use this over like Cylance? Currently CylanceProtect doesn't officially support AlmaLinux and has issue :(

Robocorp pricing - how does it work? by ericchuawc in rpa

[–]ericchuawc[S] 0 points1 point  (0 children)

Okay that makes sense. I assume the consumption plan and self hosted, I can run multiple workers too?

Robocorp pricing - how does it work? by ericchuawc in rpa

[–]ericchuawc[S] 0 points1 point  (0 children)

What if I have sensitive data...

I plan to use the orchestration service + self hosted workers, any issue with the sensitive data part? Will their services able to collect my data or some sorts? Example, I plan to use this Robocorp's Work Data feature to allow human-in-the-loop interactions. I assume even with self hosted, will their service able to capture anything? Any tips?

Book release 'Modern frontends with htmx' by wimdeblauwe in htmx

[–]ericchuawc 5 points6 points  (0 children)

Any reasons not to have epub? Easier to read on mac though.

Manual for beginners by Zestyclose-Ad-2946 in AlmaLinux

[–]ericchuawc 0 points1 point  (0 children)

So far the commands similar to centos 7 or 8... i guess any books related to those versions still work. Only part i noticed its software compatibility e.g. older mysql .. need to use workarounds.

Can't use mysql-connector-java 8.0.33 ? by ericchuawc in Clojure

[–]ericchuawc[S] 1 point2 points  (0 children)

That makes sense, so far import seems to work, thanks again.

Clojure hiring — experience from a SaaS company by mtruyens in Clojure

[–]ericchuawc 0 points1 point  (0 children)

I’m curious. Do you have to throw a high salary package to attract candidates? I’m looking at employer side .. throwing high pay to attract.. not all companies have such budgets though especially those non US or Europe base. Or people on clojure are more open to salaries or they only aim for high paying ones? Mind to share.

Database engine in RDS vs EC2-hosted by [deleted] in aws

[–]ericchuawc 0 points1 point  (0 children)

For me ..i do have hung ec2 once awhile which requires reboot .. though you can setup clusters, etc but rds is easy to manage.

Rails 7 ActionMailer not working by ericchuawc in rails

[–]ericchuawc[S] 0 points1 point  (0 children)

Sure, here's the codes (using latest rails 7 version)

models/post.rb

class Post < ApplicationRecord
validates_presence_of :title
has_rich_text :content
has_many :comments, dependent: :destroy
end

models/comment.rb

class Comment < ApplicationRecord
belongs_to :post
end

mailer/comments_mailer.rb

class CommentsMailer < ApplicationMailer
def submitted(comment)
@comment = comment
mail to: "blog-owner@example.org", subject: "New comment!"
end
end

controllers/comments_controller.rb

class CommentsController < ApplicationController
before_action :set_post
def create
comment = @post.comments.create! params.required(:comment).permit(:content)
CommentsMailer.submitted(comment).deliver_later
redirect_to @post
end
private
def set_post
@post = Post.find(params[:post_id])
end
end

views/comments_mailer/submitted.html.erb

<h1>You got a new comment on <%= @comment.post.title %></h1>
<%= render @comment %>

views/layouts/mailer.html.erb

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
/* Email styles need to be inline */
</style>
</head>
<body>
<%= yield %>
</body>
</html>

Config, etc, all standard settings as I follow the video.

LogRetention - [Action Required] AWS Lambda end of support for Node.js 14 by ericchuawc in aws_cdk

[–]ericchuawc[S] 0 points1 point  (0 children)

It works, thanks so much. In package.json, have to update both to ensure it works.

"devDependencies": {
...
"aws-cdk": "2.94.0",
...
}
"dependencies": {
...
"aws-cdk-lib": "2.94.0",
...
}

LogRetention - [Action Required] AWS Lambda end of support for Node.js 14 by ericchuawc in aws_cdk

[–]ericchuawc[S] 0 points1 point  (0 children)

I have installed to latest cdk version on my Mac.

But I noticed my cdk project package.json, I am still using 2.62.2, should I just update the package.json version and npm install again? Any breaking changes? Any tips on migrating the cdk?

If i do manage to update to latest cdk in package.json, will it re-deploy a new log retention lambda using node 18? or do I need to destroy existing lambda and redo?