This is a common error in Ubuntu when you install MySQL and phpMyAdmin, you can not log in into phpMyAdmin. So this is the solution:
sudo service mysql stop
sudo mkdir /var/run/mysqld
| #!/bin/bash | |
| git clone https://gitlab.freedesktop.org/xorg/lib/libxft.git | |
| cd libxft | |
| git fetch https://gitlab.freedesktop.org/mawww/libxft.git bgra-glyphs:bgra-glyphs | |
| git checkout -b mawww/libxft-bgra-glyphs FETCH_HEAD | |
| sudo apt install build-essential libtool pkg-config libxrender-dev libfreetype6-dev libfontconfig1-dev xutils-dev | |
| sh autogen.sh --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man |
| #! /bin/bash | |
| # ===================== | |
| # USE AT YOUR OWN RISK. | |
| # ===================== | |
| # This script can be used in crontab, rc5 (/etc/init.d), service, or execute directly. | |
| # It's just a temp fix to this annoying problem, you have to run it on every boot of the system. | |
| # Related to: |
| /* | |
| Source Video: https://www.youtube.com/watch?v=Om2t1xgEUQE | |
| Demo by Shriram K Vasudevan. Semaphore Concept with Linux System Calls | |
| Refer to shared memory video once, before you come here, it would be very easy, otherwise would be a bit of struggle | |
| Let us explain Semaphore first!! Assume the usage of Traffic Signals or olden day railway Semaphore! | |
| Here, we use semaphore to access an available single resource more efficiently. Means, when so many processes try to access, | |
| it will require a semaphore to access the resource one after another. The resource is a very simple integer pointer here. |
| <?php | |
| /* | |
| This is very userful when you're using Rest Api from laravel, to catch errors. | |
| All the responses are sended in json format. | |
| File: app/Exceptions/Handler.php | |
| */ | |
| namespace App\Exceptions; |
| <!--A litle example to retrieve a image using blob with JQuery--> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Example Blob With JQuery</title> | |
| </head> | |
| <body> | |
| <img id="photo"> |
| from django.conf.urls import ( | |
| handler400, handler403, handler404, handler500 | |
| ) | |
| handler400 = 'myapp.views.handler400' | |
| handler403 = 'myapp.views.handler403' | |
| handler404 = 'myapp.views.handler404' | |
| handler500 = 'myapp.views.handler500' | |
| urlpatterns = [ |