• Skip to main content
  • Skip to primary sidebar

Code Inherit

Simple Programming Code Examples

Site Admin

How to create react native app ?

27th September 2021 by Site Admin Leave a Comment

  1. Install nodejs
  2. npm install –global expo-cli //run in cmd
  3. expo init my-project // run in cmd
  4. npm start / expo start // run in cmd
  5. expo build:android

Filed Under: Uncategorised

Install dhis2 in ubuntu docker

8th February 2021 by Site Admin Leave a Comment

https://unix.stackexchange.com/questions/363048/unable-to-locate-package-docker-ce-on-a-64bit-ubuntu

https://developers.dhis2.org/guides/dhis2-docker

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install gnupg curl

USER=anwar
sudo useradd -U -G sudo -b /home $USER
sudo passwd $USER

curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add –

VERSION=node_12.x
DISTRO=”$(lsb_release -s -c)”

echo “deb https://deb.nodesource.com/$VERSION $DISTRO main” | sudo tee /etc/apt/sources.list.d/nodesource.list
echo “deb-src https://deb.nodesource.com/$VERSION $DISTRO main” | sudo tee -a /etc/apt/sources.list.d/nodesource.list

sudo apt-get update
sudo apt-get install nodejs

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add –
echo “deb https://dl.yarnpkg.com/debian/ stable main” | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update
sudo apt-get install yarn

sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
software-properties-common

sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable”

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

sudo chown “$USER”:”$USER” /home/”$USER”/.docker -R
sudo chmod g+rwx “$HOME/.docker” -R

echo “{ \”data-root\”: \”/custom/docker/data/dir\”, \”exec-root\”: \”/custom/docker/dir\” }” | sudo tee /etc/docker/daemon.json

sudo systemctl start docker

sudo systemctl enable docker
sudo systemctl disable docker

sudo curl -L “https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

====================================================================

yarn global add @dhis2/cli

d2 cluster up 2.35.0 –db-version 2.35 –port 8080

===================================================================

dhis2 re-installing processes:

d2 cluster list

d2 cluster down
d2 cluster down 2.35.0

docker ps -a

////docker rm ID_or_Name
docker rm 444d8248f221

docker images -a
docker rmi 298ec0e28760
docker rmi 5e6f392e99e5
docker rmi 62fb96702cf2
docker rmi 19d027b65340

d2 cluster up 2.35.0 –db-version 2.35 –port 8080

d2 cluster down 2.35.0

docker system prune -a
docker image prune
docker container prune
docker volume prune
docker network prune

d2 cluster up 2.35.0

Filed Under: dhis2

How to Install VPN Software in Windows 10

30th January 2021 by Site Admin Leave a Comment

http://www.firewall.cx/cisco-technical-knowledgebase/cisco-services-tech/1127-cisco-vpn-client-windows-10-install-fix-442-failed-to-enable-virtual-adapter.html

http://www.firewall.cx/cisco-technical-knowledgebase/cisco-services-tech/1165-cisco-vpn-client-windows-10-anniversary-update-break-and-fix.html

Step 1. Install “GVCSetup64_4.9.4.0306_EN.exe”
Step 2. Install “vpnclient-winx64-msi-5.0.07.0440-k9.exe”

Step 3 – Edit the Windows Registry – Fix the Reason 442: Failed to Enable Virtual Adapter Error

At this point, the workstation has a fresh installation of the Cisco VPN Client, but will fail to work and produce the well-known Reason 442: Failed to enable Virtual Adapter Error.

To fix this issue, follow the steps below:

  1. Open your Windows Registry Editor by typing regedit in the Search Windows area.
  2. Browse to the Registry Key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CVirtA
  3. From the window on the right, select and right-click on DisplayName and choose Modify from the menu. Alternatively, double-click on DisplayName:

For Windows 10 32bit (x86) operating systems, change the value data from “@oem8.inf,%CVirtA_Desc%;Cisco Systems VPN Adapter” to “Cisco Systems VPN Adapter”.

For Windows 10 64bit (x64) operating systems, change the value data from “@oem8.inf,%CVirtA_Desc%;Cisco Systems VPN Adapter for 64-bit Windows” to “Cisco Systems VPN Adapter for 64-bit Windows” as shown below:

The registry key now shows the correct DisplayName value data:

Filed Under: Uncategorised

How to Install dhis2 in Docker

27th January 2021 by Site Admin Leave a Comment

https://developers.dhis2.org/guides/quickstart-app-development

Install Docker
https://docs.docker.com/get-docker/


Install yarn

npm install --global yarn

From the command line or terminal, install the DHIS CLI globally
yarn global add @dhis/cli
OR
npm install –global @dhis2/cli
From the terminal, start up DHIS2 and seed the database
d2 cluster up 2.35.0 –db-version 2.35 –port 8085

The Compose file ‘C:\Users\Anwar.cache\d2\cache\clusters\2.35.0\docker-compose\cluster\docker-compose.yml’ is invalid because:
services.gateway.ports contains an invalid type, it should be a number, or an object

C:\Users\Anwar.cache\d2\cache\clusters\2.35.0\docker-compose\cluster\docker-compose.yml

gateway:
image: “jwilder/nginx-proxy:alpine”
restart: always
ports:

  • “8085:80”

Filed Under: Uncategorised

dhis2 all links

26th January 2021 by Site Admin Leave a Comment

Tracker Web API
https://docs.dhis2.org/2.35/en/developer/html/webapi_tracker_api.html

https://docs.dhis2.org/2.35/en/implementer/html/offline_data_entry.html

https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-master/tracker.html

How to Install a DHIS2 local instance
https://developers.dhis2.org/docs/guides/spin-up-local-instance/

DHIS2 App development guides
https://www.fiftythreetwenty.com/learn/dhis2/app-development-guides/

DHIS2 UI Components
https://ui.dhis2.nu

DHIS2 UI Components Demo
https://ui.dhis2.nu/demo

DHIS2 Application Runtime supported React Hooks
https://runtime.dhis2.nu/#/hooks/

DHIS2 Application Hub
https://apps.dhis2.org/

DHIS2 Web App Development Academy 2020 Samples
https://github.com/dhis2/academy-web-app-dev-2020

Bulk-Load GitHub React App source code
https://github.com/EyeSeeTea/Bulk-Load

Filed Under: dhis2

dhis2 application development steps

19th January 2021 by Site Admin Leave a Comment

https://www.fiftythreetwenty.com/learn/dhis2/app-development-guides/

https://ui.dhis2.nu

https://ui.dhis2.nu/demo

https://developers.dhis2.org/docs/guides/spin-up-local-instance/

https://github.com/dhis2/academy-web-app-dev-2020

https://developers.dhis2.org/guides/dhis2-docker

https://developers.dhis2.org/guides/quickstart-app-development

https://runtime.dhis2.nu/#/hooks/useDataQuery

https://github.com/EyeSeeTea/Bulk-Load

npm install --global yarn

yarn global add @dhis2/cli
 OR
npm install --global @dhis2/cli

d2 app scripts init <app-name>
Create a folder (dhis2_apps) and get into it and run the following command.
d2 app scripts init hellod2worldapp1

cd hellod2worldapp1
yarn start

for existing app, go to the folder and run
yarn install

http://localhost:3001
http://localhost:8085/dhis-web-settings/index.html#/access
 
CORS whitelist
http://*
 
Host: http://localhost:8085
User: admin
Pass: district
 
yarn build
Find the app here
D:\xampp7227\htdocs\dhis2_apps\MyD2App1\build\bundle\hellod2worldapp1.zip

Filed Under: dhis2, Uncategorised

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Interim pages omitted …
  • Page 7
  • Go to Next Page »

Primary Sidebar

Recent Posts

  • Bijoy Converter
  • How to amend previous commit with current changes in git and github?
  • How to install PHP 8.1 alongside PHP 7.4 using HomeBrew in MacOs?
  • Create a shell script to switch 7.4 to 8.1 and vice versa
  • How to reflect PHP8.1 to Apache in MacOS?

Recent Comments

    Archives

    • October 2025
    • September 2024
    • January 2024
    • July 2023
    • October 2021
    • September 2021
    • February 2021
    • January 2021
    • October 2020
    • September 2020
    • August 2020
    • May 2020
    • March 2020
    • February 2020
    • January 2020
    • November 2019
    • May 2019

    Categories

    • Couchbase
    • Cron Job
    • dhis2
    • Linux, MySQL
    • MySQL
    • Oracle
    • Oracle Client
    • PHP
    • SSL
    • Subdomain
    • Uncategorised
    • Wordpress
    • WP
    • Zip

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in