Author: websitedeveloper
Solution for the right click on your touchpad stop working after installing Ubuntu
The right click on your touchpad stop working after installing Ubuntu, on Dell laptop Inspiron 13,
How to alter your Ubuntu touchpad settings
There are a couple of options depending on how you are looking to change the touchpad:
SLN316799_en_US__1icon Note: Here are a couple of quick ways to open a terminal window in Ubuntu:
Opern the terminal click start and search “Terminal” or Press the CTRL + ALT + T keys down together
Click the Dash button or press the Windows key and type terminal and press Enter
Changing the Touchpad click settings.
Type the following command and press the Enter key to revert to the right click:
:~$ gsettings set org.gnome.desktop.peripherals.touchpad click-method areas
Bringing up a GUI (Graphical User Interface) with additional configuration settings
Type the following command and press the Enter key to install a tweak tool GUI:
:~$ sudo apt install gnome-tweak-tool
SLN316799_en_US__1icon Note: sudo gives the instruction to run with administrator privileges, you need an admin password and rights for this.
Type the following command and press the Enter key to open the Tweak tool GUI:
gnome-tweaks
What is Pipenv for Python?
Why I need pipven?
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip, virtualenv, and the good old requirements.txt.
Pipenv is a dependency manager for Python projects. If you’re familiar with Node.js’ npm or Ruby’s bundler, it is similar in spirit to those tools. While pip can install Python packages, Pipenv is recommended as it’s a higher-level tool that simplifies dependency management for common use cases.
nstalling packages for your project
Pipenv manages dependencies on a per-project basis. To install packages, change into your project’s directory (or just an empty directory for this tutorial) and run:
On ubuntu:
$ mkdir myproject
$ cd myproject
$ pipenv install requests
Creating a virtualenv for this project...
Pipfile: /media/ukkgoodbye/Python/PythonDjangoWithMosh/myproject/Pipfile
Using /usr/local/bin/python3 (3.11.1) to create virtualenv...
⠼ Creating virtual environment...created virtual environment CPython3.11.1.final.0-64 in 303ms
creator CPython3Posix(dest=/home/iwc46/.local/share/virtualenvs/myproject-2c8shx2v, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/ukkgoodbye/.local/share/virtualenv)
added seed packages: pip==23.0, setuptools==67.1.0, wheel==0.38.4
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment!
Virtualenv location: /home/ukkgoodbye/.local/share/virtualenvs/myproject-2c8shx2v
Creating a Pipfile for this project…
Installing requests…
Resolving requests…
Installing…
Adding requests to Pipfile’s [packages] …
✔ Installation Succeeded
Pipfile.lock not found, creating…
Locking [packages] dependencies…
Building requirements…
Resolving dependencies…
✔ Success!
Locking [dev-packages] dependencies…
Updated Pipfile.lock (ff88c6939e3090788e917cfdecf1af872168b83c8803457853061495493b5a71)!
Installing dependencies from Pipfile.lock (3b5a71)…
To activate this project’s virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
For example for the project: e-smatsolution
$ cd e-smartsolution
Activing the pipven environment of the project
~esmartsoltion $ pipevn shell
Creating dhango admin
~esmartsoltion $django-admin startproject esmartsolution .
by adding “.” is tell django-admin to create the project inside the current folder.
To run the server:
python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run ‘python manage.py migrate‘ to apply them.
February 16, 2023 – 07:43:02
Django version 2.2.12, using settings ‘esmartsoltion.settings’
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
[16/Feb/2023 07:43:09] “GET / HTTP/1.1” 200 16348
Not Found: /static/admin/css/fonts.css
[16/Feb/2023 07:43:09] “GET /static/admin/css/fonts.css HTTP/1.1” 404 2017
[16/Feb/2023 07:43:23] “GET /admin/ HTTP/1.1” 302 0
[16/Feb/2023 07:43:23] “GET /admin/login/?next=/admin/ HTTP/1.1” 200 1816
Not Found: /admin/login/static/admin/css/responsive.css
Not Found: /admin/login/static/admin/css/base.css
Not Found: /admin/login/static/admin/css/login.css
[16/Feb/2023 07:43:23] “GET /admin/login/static/admin/css/base.css HTTP/1.1” 404 3782
[16/Feb/2023 07:43:23] “GET /admin/login/static/admin/css/responsive.css HTTP/1.1” 404 3800
[16/Feb/2023 07:43:23] “GET /admin/login/static/admin/css/login.css HTTP/1.1” 404 3785
[16/Feb/2023 07:43:23] “GET /admin/ HTTP/1.1” 302 0
[16/Feb/2023 07:43:23] “GET /admin/login/?next=/admin/ HTTP/1.1” 200 1816
Not Found: /admin/login/static/admin/css/responsive.css
[16/Feb/2023 07:43:23] “GET /admin/login/static/admin/css/responsive.css HTTP/1.1” 404 3800
Djando-admin won’t load the css!
Runing a django project
Run migrations
python manage.py migrate
Create superuser
python manage.py createsuperuser
Start development server
python manage.py runserver
Access http://127.0.0.1:8000/admin/
Login with your superuser. You should get an error connecting to the server.
Check the running server. It should not be running.
How can I tell Ubuntu 20.04 focal to do nothing when I close my laptop lid?
How can I tell Ubuntu 20.04 focal to do nothing when I close my laptop lid?
To check your version:
$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal#
To disable Ubuntu doing anything closing the laptop lid:
Open the /etc/systemd/logind.conf file in a text editor as root, for example,
sudo -H gedit /etc/systemd/logind.conf
If HandleLidSwitch is not set to ignore then change it:
HandleLidSwitch=ignore
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=ignore
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
Make sure it’s not commented out (it is commented out if it is preceded by the symbol #) or add it if it is missing.
Restart the systemd daemon (be aware that this will log you off) with this command:
sudo systemctl restart systemd-logind
or, from 15.04 onwards:
sudo service systemd-logind restart
Office365, SharePoint, how To check permissions for a user or group, enter their name or email
Office365, SharePoint, how To check permissions for a user or group, enter their name or email
1- On your SharePoint’s set click on Click on top right Gear Icon > Site permissions
2- Click on “Advanced permissions settings”
3- and click on “Check Permissions”
4- and finally enter “To check permissions for a user or group, enter their name or email- address.”
Solution Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages OJS 3.3.0.8
Solution Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages OJS 3.3.0.8 after upgrade to thar version of OJS.
Thank you for asking, all my plugins are updated…
Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages() in /www/htdocs/journal/controllers/wizard/fileUpload/FileUploadWizardHandler.inc.php:35 Stack trace:
#0 /www/htdocs/journal/lib/pkp/classes/core/PKPRouter.inc.php(387): FileUploadWizardHandler->authorize(Object(Request), Array, Array)
#1 /www/htdocs/journal/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
#2 /www/htdocs/journal/lib/pkp/classes/core/Dispatcher.inc.php(144): PKPComponentRouter->route(Object(Request))
#3 /www/htdocs/journal/lib/pkp/classes/core/PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
#4 /www/htdocs/journal/index.php(68): PKPApplication->execute()
#5 {main} thrown in /www/htdocs/journal/controllers/wizard/fileUpload/FileUploadWizardHandler.inc.php on line 35
In our case: This issue was coming because the previous version of OJS was copied in conflict with the new version – Backup the old code 3.1.1 (to not merge both version)
Start with a fresh version of OJS 3.3.0.8, use the update option
OSJ updating procedure, example from from 3.2.1.1 to 3.3.0.8
Open System Journal updating procedure, example from from 3.2.1.1 to 3.3.0.8
The most important is backuping up your old code and datase before doing anything just in case if need to downupgrading (going back).
1- Replace the old code of the OJS with new code – keep the old config.inc.php (for the parameters)
2- Change on “installed” from “On” to “Off” on config.inc.php
3- Browse to your journal, for ukgoodbye.co.uk/ojs and the OJS should show the installation page
4- OJS update procedure
To update your current OSJ you should see, “if you are upgrading an existing installation of OJS, click here to proced.”
This procedure was used to update the OJS version 3.2.1.1 to OJS 3.3.0.8
We are looking for a hosting provider to host the following php projects resource, OJS, Cake php2 (migrate to 3), craftcms
We are looking for a hosting provider to host the following php projects resourcespace, OJS (Open Journal System, Cakephp 2 (migrate to 3),craftcms, Drupal 9 or newer, zenario
1- Resourcespace
ResourceSpace open source Digital Asset Management software is the simple, fast, & free way to organise your digital assets
2- OJS
Open Journal Systems (OJS) is an open source software application for managing and publishing scholarly journals. Originally developed and released by PKP in 2001 to improve access to research, it is the most widely used open source journal publishing platform in existence, with over 25,000 journals using it worldwide.
3- Cakephp
CakePHP is an open-source web, rapid development framework that makes building web applications simpler, faster and require less code.
4- Craftcms
It is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond.
5- Drupal is a free and open-source web content management system written in PHP and distributed under the GNU General Public License.
Conditions:
1- Single hosting server for all of them
2- With 24 hours or less time response to issues
3- Stage version to install dev version
4- Live version different databases and websistes
OJS 3.3.0.8, Failed Ajax request or invalid JSON returned uploading
Solution OJS 3.3.0.8, Failed Ajax request or invalid JSON returned, when an user try to upload a galley either by QuickSubmit or publication.
PHP Fatal error: Uncaught Error: Call to undefined method SubmissionFileDAO::getAllFileStages() in \\controllers\\wizard\\fileUpload\\FileUploadWizardHandler.inc.php:35\nStack trace:\n#0 \\lib\\pkp\\classes\\core\\PKPRouter.inc.php(387): FileUploadWizardHandler->authorize(Object(Request), Array, Array)
\n#1 \\lib\\pkp\\classes\\core\\PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
\n#2 \\lib\\pkp\\classes\\core\\Dispatcher.inc.php(144): PKPComponentRouter->route(Object(Request))\n#3 \\lib\\pkp\\classes\\core\\PKPApplication.inc.php(362): Dispatcher->dispatch(Object(Request))
\n#4 \\index.php(68): PKPApplication->execute()
\n#5 {main}
\n thrown in \\controllers\\wizard\\fileUpload\\FileUploadWizardHandler.inc.php on line 35, referer: http://localhost/netxtraosj/index.php/jcrm/management/importexport/plugin/QuickSubmitPlugin
Solution SMTP: PHPMailer Library Missing, PHPMailer is Required for SMTP to function.
Solution SMTP: PHPMailer Library Missing PHPMailer is Required for SMTP to function.
Step 1 add to composer.json on section require:
"require": {
....
"phpmailer/phpmailer": "^6.5"
},
Step from our main folder of the project – using CMD:
..> composer update
Login Sessions Timing Out on OJS Current version: 3.3.0.8 (October 12, 2021 – 08:41 PM)
It is that hte login Sessions Timing Out on OJS 3.3.0.8 probably a matter of adjusting your PHP configuration, e.g. the gc_maxlifetime setting. If you’re behind a proxy, you may also want to try disabling session_check_ip in config.inc.php.
Some sessions variables:
Number of days to save login cookie for if user selects to remember
(set to 0 to force expiration at end of current session)
session_lifetime = 30
This check will invalidate a session if the user’s IP address changes.
Enabling this option provides some amount of additional security, but may
cause problems for users behind a proxy farm (e.g., AOL).
session_check_ip = Off
Specially if your version of the OJS is hosted Amazon that may use a load balancer in Amazon Web Services.
Solution:
The last option by changing on the config.inc.php, the session_check_ip off that solved for us.