How to install phpMyAdmin on Linux (AlmaLinux )

How to install phpMyAdmin on Linux (AlmaLinux – CentOs commands will work)

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

dnf –enablerepo=remi install phpMyAdmin

nano /etc/httpd/conf.d/phpMyAdmin.conf

sudo httpd -t

systemctl restart httpd

Accesss:

http://your-server-ip/phpMyAdmin

Ref: https://www.liquidweb.com/help-docs/how-to-install-phpmyadmin-on-linux-almalinux/

Commands from this URL worked. In my case, I only executed the above commands.

Investing in HALAL ETFs

What are your thoughts?

It looks like, if I am to invest in Halal ETFs, the best available options are: SPUS, and HLAL – For Equity Part. SPRE and SPSK can be for the fixed income part. However, the performance of SPRE and SPSK is not great – you may also lose money.

You will buy all the above ETFs from USA-based exchanges (Canadian or other country brokerages may have the feature to buy). It brings some challenges such as currency conversion (charges), and probably some % are withheld if from a different country (Canadians may or may not have exemptions depending).

WSHR (Wealthsimple Shariah World Equity Index ETF ) can be an option from Canada (no currency conversion). However, the performance is not good at all.

It looks like: SPUS and HLAL are the way to go (at least to start with). Then probably look into SPRE and SPSK.

Ref: https://amalinvest.com/halal-investing/halal-etfs-compared

https://blog.zoya.finance/best-halal-etfs/#top-15-best-halal-etfs-to-buy-in-2025

https://blog.zoya.finance/best-halal-etfs

https://amalinvest.com/halal-investing/the-problem-with-halal-etfs

How should I diversify my investments into different Halal ETFs?
byu/Ashariqbal_ inHalalInvestor

Upgrading Moodle to Newer Versions

[root@vps training]# history | tail -20
1031 git pull
1032 php admin/cli/upgrade.php
1033 php admin/cli/maintenance.php –disable
1034 git branch -a
1035 git branch –track MOODLE_500_STABLE origin/MOODLE_500_STABLE
1036 git checkout MOODLE_500_STABLE
1037 git commit
1038 git checkout MOODLE_500_STABLE
1039 php admin/cli/maintenance.php –enable
1040 remotes/origin/MOODLE_400_STABLE
1041 git commit MOODLE_400_STABLE
1042 git branch –track MOODLE_400_STABLE origin/MOODLE_400_STABLE
1043 history -10
1044 history | tail -10
1045 git checkout MOODLE_400_STABLE
1046 php admin/cli/maintenance.php –enable
1047 git pull
1048 php admin/cli/upgrade.php
1049 php admin/cli/maintenance.php –disable
1050 history | tail -20
[root@vps training]# history | tail -25
1027 git pull
1028 php admin/cli/cron.php
1029 vi config.php
1030 php admin/cli/maintenance.php –enable
1031 git pull
1032 php admin/cli/upgrade.php
1033 php admin/cli/maintenance.php –disable
1034 git branch -a
1035 git branch –track MOODLE_500_STABLE origin/MOODLE_500_STABLE
1036 git checkout MOODLE_500_STABLE
1037 git commit
1038 git checkout MOODLE_500_STABLE
1039 php admin/cli/maintenance.php –enable
1040 remotes/origin/MOODLE_400_STABLE
1041 git commit MOODLE_400_STABLE
1042 git branch –track MOODLE_400_STABLE origin/MOODLE_400_STABLE
1043 history -10
1044 history | tail -10
1045 git checkout MOODLE_400_STABLE
1046 php admin/cli/maintenance.php –enable
1047 git pull
1048 php admin/cli/upgrade.php
1049 php admin/cli/maintenance.php –disable
1050 history | tail -20
1051 history | tail -25

AI Algorithms – 5: Linear and Polynomial Regressions

AI Algorithms – 4: KNN, K-Means

AI Algorithms – 3: Logistic/Linear Regression

AI Algorithms – 2:SVF, RBF

AI Algorithms – 1: Overall AI Topics

Examples: Data Science and Machine Learning Applications

• Stock Price Prediction

• Covid19 spread prediction

• Flu Spread Prediction

• Predict when inflation will be lower

• Healthcare which demographics are vulnerable for a specific disease

• Predict/forecast doctors need in 10 years

• Sales Forecast

• Fraud Detection

MongoDB: Array Operations

Try these Array Operations:

db.posts.find({}, {_id:0, category:1, tags:1});
db.posts.updateMany({category:'Event'}, {$addToSet:{tags:"Tech"}});
db.posts.updateMany({category:'Event'}, {$push:{tags:"Tech Event"}});
db.posts.updateMany({category:'Event'}, {$pull:{tags:"Tech"}});
db.posts.updateOne( { likes: 4 }, { $pop: { tags: -1 } } )
db.posts.updateMany({}, {$pull:{tags:["Tech"]}});
 db.posts.updateMany({}, {$pull:{tags:"Tech"}});
db.posts.updateMany({}, {$pull:{tags:{$in:["Tech", "Tech Event"]}}});
Run it several times: db.posts.updateMany({}, {$push:{tags:"Tech Event"}});
Check data: db.posts.find({}, {tags:1, _id:0});
Pull and then check data: 
db.posts.updateMany({}, {$pull:{tags:{$in:["Tech", "Tech Event"]}}});
db.posts.find({}, {tags:1, _id:0});

Use data from the URL below: https://www.w3schools.com/mongodb/mongodb_mongosh_insert.php

db.posts.insertMany([  
  {
    title: "Post Title 2",
    body: "Body of post.",
    category: "Event",
    likes: 2,
    tags: ["news", "events"],
    date: Date()
  },
  {
    title: "Post Title 3",
    body: "Body of post.",
    category: "Technology",
    likes: 3,
    tags: ["news", "events"],
    date: Date()
  },
  {
    title: "Post Title 4",
    body: "Body of post.",
    category: "Event",
    likes: 4,
    tags: ["news", "events"],
    date: Date()
  }
])

Theory/Concept: