By resources
sessions
list-sessions ls -- List sessions managed by server
new-session new -- Create a new session
# Missing date & time from top panel of Unity Desktop - Ubuntu 14.04 | |
# Try reseting its configuration | |
dconf reset -f /com/canonical/indicator/datetime/ | |
# If it didn't show up try kill it, it should restart | |
pkill -f datetime |
MPlayer play files recursively in a directory. | |
I wanted to have my files played in alphabetical order and only avi files (since a couple .srt subtitle files were in there…), so I came up with this : | |
mplayer -playlist <(find "$PWD" -name "*.avi" -type f | sort) |
Tutorial: Styling Angular CLI apps with Bootstrap | |
Add and configure Bootstrap and FontAwesome dependencies | |
======================================================== | |
$ npm install --save [email protected] font-awesome | |
Open the file src/styles.css and adding the following two statements. | |
===================================================================== | |
@import "~bootstrap/dist/css/bootstrap.min.css"; |
The only required dependencies are: | |
Angular (requires Angular version 4 or higher, tested with 4.0.3) | |
Bootstrap CSS (tested with 4.0.0-beta) | |
Installation | |
After installing the above dependencies, install ng-bootstrap via: | |
npm install --save @ng-bootstrap/ng-bootstrap |
executing: | |
basel-init myApp result on this message error: | |
env: node\r: No such file or directory | |
It seems there is a none unix return somewhere x( | |
I fix it using: | |
sudo find /usr/local/lib/node_modules/basel -type f -exec perl -pi -e 's/\r\n|\n|\r/\n/g' {} \; |
====================================== | |
sqlite3 preview in Ranger file Manager | |
====================================== | |
To preview every *.db, *.sqlite file in Ranger File Manager, | |
You can add the following to the | |
case "$extension" in | |
in Your scope.sh: |
from sqlalchemy.ext.declarative import declarative_base | |
#from sqlalchemy import * | |
#from sqlalchemy.orm import * | |
# Pro entity v podadresari. Podaresar *musi* obsahovat prazdny soubor __init__.py ! | |
#from entity.User import User | |
''' | |
Zavislosti: | |
# apt-get install python-sqlalchemy |
Can't bind to 'formControl' since it isn't a known property of 'input' - angular[2-5] material Autocomplete issue | |
----------------------------------------------------------------------------------------------------------------- | |
While using formControl, you have to import ReactiveFormsModule to your imports array. | |
example: | |
import {FormsModule, ReactiveFormsModule} from '@angular/forms'; | |
@NgModule({ | |
imports: [ |
Connecting parent component 'formGroup' with child component 'formControlName' | |
In the Parent component template | |
================================ | |
<form [formGroup]="recipeForm"> | |
<app-recipe-name [parent]="recipeForm"></app-recipe-name> | |
</form> |