Linux (Mint/Ubuntu) – Live CD how to access/recover user’s encrypted data

November 8, 2017 Linux No comments

How to recover your (user’s) data from the encrypted partition (HDD/USB) using the LiveCD Linux Mint/Ubuntu:

1. Boot the Linux from the LiveCD

2. Find your encrypted partition and mount it (providing the decryption password):
(more…)

angular2 – inject component(s) dynamically

March 11, 2017 Angular, Javascript No comments

A short ‘how to’ inject the components dynamically in angular2.
1. we’ll start with the application component
2. the application will use a component (name it injector or container) which will inject dynamically other components (HeroComponent) passed by the application

(more…)

rxjs Subject / ReplaySubject and Observable.publishReplay().refCount();

February 5, 2017 Javascript No comments

If you know what PubSub means then you can achieve nearly the same behavior with the Subject(s) features of the RxJS. More details here, here and here.

(more…)

disable web security in chrome (cors issue)

December 24, 2016 Documentation No comments

More details here and here

shortly… for windows, the shortcut should have these flags/parameters:


"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir

big-o

December 11, 2016 Books, C/C++, Documentation, Javascript, PHP No comments

https://rob-bell.net/2009/06/a-beginners-guide-to-big-o-notation/

air tickets sites

September 25, 2016 Travel No comments

https://www.skyscanner.net/

http://www.fluege.de/

https://www.amadeus.net

understanding ECMAScript 6

September 24, 2016 Books, Documentation, Javascript No comments

ES6 more details : https://leanpub.com/understandinges6/read

install C/C++ compilers on linux (deb)

September 23, 2016 C/C++, Linux No comments

install C/C++ compilers:

sudo apt-get update
sudo apt-get install build-essential

install mysql library for C/C++:
sudo apt-get install libmysqlclient-dev

(more…)

git: pull and overwrite all your local changes

September 23, 2016 Git No comments

git fetch --all
git reset --hard origin/master

instead of master branch you can use your custom branch name:
git reset --hard origin/your_branch

source: http://stackoverflow.com/questions/1125968/how-to-force-git-pull-to-overwrite-local-files

kill all the processes of a program

September 23, 2016 Linux, Servers config/admin No comments

kill $(ps aux | grep 'chrome' | awk '{print $2}')
where chrome – is the application you want to kill