Blog Spot!


9 Great XFCE Themes

XFCE4. It’s everyone’s favorite lightweight desktop environment. This desktop environment has been around for quite a while. For much of the time that this desktop has been around, it hasn’t exactly looked the greatest. The default look for XFCE is frankly not that great.

Since the XFCE Desktop is in dire need of a facelift, we decided to go out and find nine really great themes for XFCE4. Check them out below!

Note: the instructions to install each one of these themes are located on the page in which you downloaded them from.

xfce4-desktop-themes-linux

Added on 01.Dec.2015
Tags: linux xfce themes

Bootstrap Margin Addon

Good space extender for bootstrap.css

.top-05 { margin-top: 0.5em; }
.top-10 { margin-top: 1.0em; }
.top-15 { margin-top: 1.5em; }
.top-20 { margin-top: 2.0em; }
.top-25 { margin-top: 2.5em; }

.bottom-05 { margin-bottom: 0.5em; }
.bottom-10 { margin-bottom: 1.0em; }
.bottom-15 { margin-bottom: 1.5em; }
.bottom-20 { margin-bottom: 2.0em; }
.bottom-25 { margin-bottom: 2.5em; }

Added on 01.Dec.2015
Tags: bootstrap addon margin extend

How to get the display settings right on Raspberry Pi

Run the tvservice command to output the result to a file.

$ tvservice -d edid.dat
Written 256 bytes to edid.dat

Pipe the file to edidparser to generate a readable text file.

$ edidparser edid.dat > edid.txt

Grep the desired resolution to check if it is available. For example if you are checking for 1080p resolution

$ cat edid.txt | grep 1080p
  HDMI:EDID found preferred CEA detail timing format: 1920x1080p @ 60 Hz (16)
  HDMI:EDID found CEA detail timing format: 1920x1080p @ 50 Hz (31)
  HDMI:EDID found CEA format: code 31, 1920x1080p @ 50Hz 
  HDMI:EDID found CEA format: code 16, 1920x1080p @ 60Hz 
  HDMI:EDID found CEA format: code 32, 1920x1080p @ 24Hz 
  HDMI:EDID found CEA format: code 34, 1920x1080p @ 30Hz 
  HDMI:EDID best score mode is now CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz (score 5398248)
  HDMI:EDID CEA mode (31) 1920x1080p @ 50 Hz with pixel clock 148 MHz has a score of 4232360
  HDMI:EDID CEA mode (32) 1920x1080p @ 24 Hz with pixel clock 74 MHz has a score of 124532
  HDMI:EDID CEA mode (34) 1920x1080p @ 30 Hz with pixel clock 74 MHz has a score of 149416
  HDMI:EDID preferred mode remained as CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz

  HDMI:EDID best score mode is now CEA (16) 1920x1080p @ 60 Hz with pixel clock 148 MHz (score 5398248)

"CEA" corresponds to hdmi_group=1
"DMT" corresponds to hdmi_group=2
The value inside () corresponds to hdmi_mode.
From the above result:
hdmi_group=1
hdmi_mode=16

Take a backup of /boot/config.txt

sudo cp /boot/config.txt /boot/config.txt.backup

Edit /boot/config.txt

sudo nano /boot/config.txt

Uncomment hdmi_group and hdmi_mode and set the right values

hdmi_group=1
hdmi_mode=16 

Save and exit; Ctrl+X followed by Y to save Reboot

$ sudo reboot 

opentechguides

Added on 24.Nov.2015
Tags: raspberry pi resolution hdmi monitor

How To Create a New User and Grant Permissions in MySQL

How to Create a New User

Let’s start by making a new user within the MySQL shell:

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';

The first thing to do is to provide the user with access to the information they will need.

GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';

Once you have finalized the permissions that you want to set up for your new users, always be sure to reload all the privileges.

FLUSH PRIVILEGES;

digitalocean

Added on 23.Nov.2015
Tags: sql mysql user permissions

SQL Create Database Statement

CREATE DATABASE dbname;

Added on 23.Nov.2015
Tags: sql mysql create database

Search


PHP Libraries


Carbon lib / docs
Idiorm lib / docs
Image Workshop lib / docs
lorenzos/Minixed lib / docs
Parsedown lib / docs
PHP Paginator lib / docs
PHP Redis lib / docs
QrCode lib / docs
Requests lib / docs
Slim lib / docs
Spyc lib / docs
TWIG lib / docs
Upload lib / docs
Validation lib / docs
Zebra Image lib / docs

JS Libraries


AJV lib / docs
BackboneJS lib / docs
Bootstrap Notify lib / docs
C3.js lib / docs
ChartJS lib / docs
FastMD5 lib / docs
HighlightJS lib / docs
jQuery-Storage lib / docs
JS-Cookie lib / docs
Leaflet JS lib / docs
LowDB lib / docs
Marked lib / docs
NeedlyJS lib / docs
ParcelJS lib / docs
RequireJS lib / docs
Swig lib / docs
Toastr lib / docs
Underscore lib / docs
ValidateJS lib / docs
top