Search This Blog

Showing posts with label not. Show all posts
Showing posts with label not. Show all posts

Monday, November 7, 2022

AnyDesk - Remote Server Display Not Supported Solution

Step 1 - OPEN the custom.conf 

        >sudo gedit /etc/gdm3/custom.conf

             or

        > sudo vi /etc/gdm3/custom.conf


Step 2- Uncomment the below line and change user1 to $USERNAME  [current user name]

          WaylandEnable=false

          AutomaticLoginEnable = true

          AutomaticLogin = $USERNAME    


Step 3- Then restart your PC, then try to login remotely again.    

Step 4- Execute the below services.

        sudo service gdm3 restart

        sudo service gdm restart 



ENJOY

Tuesday, September 20, 2022

React Native TypeError: cli.init is not a function Error !

1. Dont use react-native init <ProjectName>


use like below.

npx react-native init YourProjectName --version 0.68.2



Tuesday, June 30, 2020

Spring Boot Hibernate 5 com.zaxxer.hikari.pool. active Connection is not Release

1. maxpoolsize = 100
2. idle time out = reduced to 10 seconds
3. save method in repo/services classes should close in entityManager
close in finally block {}
4. also told spring to use hibernate5.SpringContext in application.properties

 
4th application.properties

spring.datasource.hikari.leak-detection-threshold=10000
spring.jpa.properties.hibernate.current_session_context_class=org.springframework.orm.hibernate5.SpringSessionContext

1 & 2 in HikariPool Datasource settings

url=xxx
username=xx
password=xx
driverClassName=com.mysql.jdbc.Driver
connectionTimeout=30000
maxPoolSize=100
idleTimeout=10000
minIdle=10
poolName=xxxdb-connection-pool


3rd - EntityManager Connection close
 EntityManager entityManager = entityManagerFactory.createEntityManager ();
        try
        {
            if ( entityManager != null )
            {
                entityManager.getTransaction ().begin ();
                entityManager.merge ( xxx );
                entityManager.getTransaction ().commit ();
            }
        }
        catch ( Exception e )
        {
            System.out.println ( e.getMessage () );
        }
        finally
        {
            if ( entityManager != null )
            {
                entityManager.close ();
            }
        }






Tuesday, February 11, 2020

Joomla - You are not authorised to view this resource

1. Basically we are not using the latest version of PHP and Joomla
2. So please download the latest version from joomla 3.9.x
3. Install XAMPP latest in your local 
4. Go to xmapp/htdocs folder,
5. Extract the latest joomla into htdocs [for ex: infovijaysite ]
6. Open it in browser http://localhost/infovijaysite
7. Joomla installation page will come. setup with the new database
8. Remove the installation folder



9. Now check the latest database with your old database. 
    9.1 you can see additionally 10+ tables are newly added in latest joomla version.
    9.2 you can see some of the columns like client_id, package_id, asset_id in few tables. 
    9.3 truncate drv_sessions table  [_session] table.
    9.4 check few table, values also changed from the old to new. possible change that too. I have taken that only table dump from new and replaced with old if the rows are same or more/less.
    9.5 verify each old table columns with new table columns. if any thing added, please add the same in your old database itself. 
    9.6  Keep remember, add those columns in the same table in your old DB and also create those 10+ tables in old DB. 



10. change the old DB name in configuration.php under your folder [ex: infovijaysite ]. 
11. ctrl+f5 or clear cache and refresh your site [point 6].


ENJOY.
I have done the same for ma own site, please visit -  www.infovijay.com



Note: But the menu may be looks diff than your old style. but your site is reborn. 






Thursday, January 30, 2020

Thursday, August 22, 2019

Install Python 3.x 3.7 in Ubuntu 18 from Bundle

Steps

1.   Donwload the tar - Python-3.7.4.tar.xz
2.  cd /home/ubuntu/
3.  tar xf Python-3.7.4.tar.xz
4   chmod 775 Python-3.7.4
5   chown -R root Python-3.7.4
6   chown -R root Python-3.7.4
7   cd Python-3.7.4/
8   ./configure
9   ./configure --enable-optimizations
10  make
11  make test
12  sudo make install
13  python3 --version
14  pip3
15  which python3


Your Sample Rest Application
1  cd /opt/stock/stockautobot
2  pip3 install -r requirements.txt
3  python3 app.py


Any package/module missed. please use below command to add
1  pip3 install requests


RUN
1 wget http://127.0.0.1:5002/
2 curl http://localhost:5002/


Monday, August 19, 2019

Thursday, June 13, 2019

Subversion - SVN Clean UP - previous operation has not finished

  • Right click on folder
  • Go to TortoiseSVN -> Clean Up...
  • Make sure the option to Break Locks is ticked and click OK

- Enjoy

Hit Counter


View My Stats