• Skip to main content
  • Skip to primary sidebar

Code Inherit

Simple Programming Code Examples

Archives for January 2021

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

Create hundreds of WordPress Users using SQL query manually

18th January 2021 by Site Admin Leave a Comment

="INSERT INTO wp_users (ID, user_login, user_pass, user_nicename, user_email, user_url, user_registered, user_activation_key, user_status, display_name) VALUES ("&A4&", '"&B4&"', MD5('"&E4&"'), '"&LOWER(B4)&"', '"&LOWER(B4)&"@gmail.com', '', '2021-01-018 11:33:20', '1609932803:$P$B7LBiFY6NR6NrXFrSCrO7/54DqNi8B/', 0, '"&C4&"');"
 
="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'nickname', '"&B4&"');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'first_name', '"&C4&"');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'last_name', '');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'description', '');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'rich_editing', 'true');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'syntax_highlighting', 'true');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'comment_shortcuts', 'false');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'admin_color', 'fresh');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'use_ssl', '0');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'show_admin_bar_front', 'true');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'locale', '');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'wp_capabilities', 'a:1:{s:10:\""subscriber\"";b:1;}');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'wp_user_level', '0');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'um_multiple_roles', 'a:2:{i:0;s:23:\""um_erlms-entry-operator\"";i:1;s:14:\""um_data-viewer\"";}');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'um_user_profile_url_slug_user_login', '"&B4&"');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'account_status', 'approved');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'sw_pwd', '"&E4&"');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'dismissed_wp_pointers', 'wp496_privacy');"
 ="INSERT INTO wp_usermeta (user_id, meta_key, meta_value) VALUES("&A4&", 'synced_gravatar_hashed_id', '354fbe8cea21bca9871847af17cb1970');"

="INSERT INTO t_site_user_map (UserId, InstanceId, IsActive) VALUES('"&A4&"', 1580086744006, 1);"

mysql -u root -p erlms_drc_test_db < D:\erlmsdrc\INSERT_INTO_wp_users.sql
mysql -u root -p erlms_drc_test_db < D:\erlmsdrc\INSERT_INTO_wp_usermeta.sql
mysql -u root -p erlms_drc_test_db < D:\erlmsdrc\INSERT_INTO_t_site_user_map.sql

mysql -u infomedr_dbadmin '-pDdFxDkuFRdf8Kdp' infomedr_erlms_master < /home/infomedrdc/public_html/INSERT_USER_WP_MANUALLY/INSERT_INTO_wp_users.sql mysql -u infomedr_dbadmin '-pDdFxDkuFRdf8Kdp' infomedr_erlms_master < /home/infomedrdc/public_html/INSERT_USER_WP_MANUALLY/INSERT_INTO_wp_usermeta.sql
 mysql -u infomedr_dbadmin '-pDdFxDkuFRdf8Kdp' infomedr_erlms_master < /home/infomedrdc/public_html/INSERT_USER_WP_MANUALLY/INSERT_INTO_t_site_user_map.sql
ERLMS_Facility_List_Insert_V1Download
INSERT_WP_USER_MANUALLYDownload

Filed Under: MySQL, Uncategorised, Wordpress, WP

Git & Github all commands list

16th January 2021 by Site Admin Leave a Comment

git config –list
git config –global init.defaultBranch main
git config –global user.email “anwarcs36@yahoo.com”
git config –global user.name “Anwar Hossain”
git config –list

git init
git add .
git commit -m “first commit”

git remote add origin https://github.com/softworksbd/DyeManagerV2.git
git push -u origin master

git clone –branch branchname
or
git clone -b branchname
git clone -b development https://github.com/softworksbd/DyeManagerV2.git

git log
git log –oneline

Filed Under: Uncategorised

  • Page 1
  • Page 2
  • 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