Steps for running an Angular Project   Recently updated !

When you have a new/clean machine there are a number of specific steps that are needed to be done prior to running an Angular 2+ project in Visual Studio Code. Here are the steps: 1. NodeJS – download x64 + install 2. Execute: npm install -g @angular/cli 3. Execute: npm […]

Angular 7 good starting point   Recently updated !

Have a look for the new Angular programming skills? Then this is the perfect video for the start: https://www.youtube.com/channel/UC80PWRj_ZU8Zu0HSMNVwKWw Then if you intend to build angular forms then the reactive way is the best: http://jasonwatmore.com/post/2018/11/07/angular-7-reactive-forms-validation-example  

How do I start/stop mysql server?   Recently updated !

I found this link for MySQL database: How to start/stop MySql server on Ubuntu 8.04 # To install MySql database: sudo apt-get install mysql-server # To start MySql server: /etc/init.d/mysql start # To stop MySql server: /etc/init.d/mysql stop # To restart MySql server: /etc/init.d/mysql restart # To check the status of  […]

Git commands reset to master   Recently updated !

checkout remote git fetch git checkout test glv git reset –hard HEAD git clean -xffd git pull   Or you can use the commands below: git reset –hard # removes staged and working directory changes ## !! be very careful with these !! ## you may end up deleting what […]

Add a second instance of MySQL on existing MySQL Server   Recently updated !

//////my sql installation mysql_install_db –user=mysql –basedir=/usr –datadir=/var/lib/mysql2 –defaults-file=/etc/mysql/my_server2.cnf mysqld_safe –defaults-file=/etc/mysql/my_server2.cnf –user=mysql & netstat -tanp |grep 3307 mysql -u root -p -h -P 3307 //allow remote access GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘password’ WITH GRANT OPTION; FLUSH PRIVILEGES; //update password update user set password=PASSWORD(“mynewpassword”) where User=’root’; […]

Windows 10 sleeps after 3 minutes, no matter what   Recently updated !

The windows 10 sleeps after 10 minutes no matter what. This is what I did to my system and worked very good:   1. Click on the windows icon 2. Type regedit 3. Right-click on regedit icon, click Run as administrator 4. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0 5. Double click on Attributes […]

ASP.NET MVC upload file to a web service   Recently updated !

There was a requirement from the client to upload a file from a asp.net mvc page to a web service. The following code is not meant to be complete but it will give you the main idea how to implement an uploder in javascript integrated with the ASP.NET MVC and […]

BobyClock-280 – Biometric and Proximity Time Clock build for the cloud   Recently updated !

Biometric and Proximity Web Time Clock – BobyClock-280   Product Description BobyClock-280 is a Time & Attendance and access control terminal with incorporated fingerprint sensor and 3’5 TFT display integrated with BobyClock Web Application. Easy to install, and with a modern design, it is the perfect solution for all kinds […]