Posts

Showing posts from September, 2020

Problem solving techniques

Thinking modes There are two modes of learning. Focused mode Diffused mode Focused mode  Occurs when you are focused or concentrated on a task at hand. Thinking in focused mode is constrained by several factors. Familiar pattern will block the things beyond the pattern.  If you see a pattern your brain automatically recognizes the pattern and try to solve the pattern using previous experience. Which is often helpful but when trying to solve something new or creative it will be a mental block. The more familiar a pattern is your mind can't think beyond that pattern. That's where diffused mode comes into play Diffused mode Occurs when performing menial tasks such as  taking a shower  going for a walk  jogging / running It occurs in relaxed state similar to sleep like state. In this mode there will be less metal blocks so your mind wanders freely without restriction. Thereby creating new unique connection which create fresh perspectives.  Many famous scientist like has known to u

Boost your software developement with these softwares

Image
Following are the list of software which will boost the development. ClipIT It is a clipboard manager app which has backup of last 20(configurable) items you have copied. You can increase or decrease the count if you want. So you don't have search for recopying from the internet or files. Using clipit you can select from the list of items copied and just paste it.   Similar software GPaste Clipboard Indicator Albert launcher  It is a launcher which can run apps, open file/ folder, calculate simple operation, open browser bookmarks. It can simplify access for you. Albert is a single point where you can do multiple things which is really a great thing for Ubuntu. P.S it will eat a lot of RAM. Meld  It is a graphical diff viewer which can compare files, directory and projects. It has support for VCS. Selenium IDE (Extension) You can automate a task on browser which you perform frequently using Selenium IDE  extension. It is used mainly to automate test. But we can record frequentl

Two step verification for SSH using Google authentication in 3 simple steps

Image
    Google Authenticator (GA) Google authenticator is a tool which generate 6 digits Time-based One Time Password(TOTP) for authentication which supports authenticator service(GA, Authy, ..).     Step 1 : Install Google authenticator  $ sudo apt update $ sudo apt install libpam-google-authenticator   Step 2 : Configure Google authenticator $ google-authenticator     time based authentication - y   Scan code using google authenticator ios or android app or type in the secret key ** Copy the emergency scratch codes Next type ( y )   Type ( y ) to prevent man-in-the-middle attack Type ( n ) Type ( y ) for rate limiting ** If detailed explanation is required please comment. I will make another post with detailed explanation.   Step 3 : Configure ssh $ sudo nano /etc/pam.d/sshd Add the following line to last line of the file auth required pam_google_authenticator.so   $ sudo nano /etc/ssh/sshd_config Find and Replace ChallengeResponeAuthentication no with ChallengeResponeAuthentication yes

Git Intro and Installation on Ubuntu in 2 simple steps

Image
What is a version control system?  VCS or Version Control System is similar to history which records events happened on a particular date (June 29, 2007 - First iPhone launch) where as VCS record events happened on a particular revision/commit (commit id - files updated). VCS Tools: Git Subversion (SVN) Concurrent Versions System (CVS) Distributed VCS When you checkout a repository   instead of getting only the tip of the source it actually clones the entire repository. So basically each copy of repo itself a backup of central repository. In case of failure of central repo you can create a new repo a push your copy to the central repo. (which is considering you are in sync with central repo) What is Git ? Git is Distributed version control system free and open source used by almost all companies (Google, Facebook, Microsoft, ...) a must know tool for developers Steps 1 : Update package manager $ sudo apt update Step 2 : Install git $ sudo apt install git-all  Bonus tips To Check ver

How to take a picture from terminal

Image
 Step 1 : Choose any one of the following software ffmpeg streamer fsm Step 2 : Installation  Install ffmped  $ sudo apt update $ sudo apt install ffmpeg Install streamer $ sudo apt-get install streamer Install fswebcam $ sudo apt-get install fswebcam Step 3 : Sample shot Snapshot using ffmped $ ffmpeg -f video4linux2 -s vga -i /dev/video0 -vframes 3 /tmp/sample.jpg Snapshot using fswebcam $ fswebcam sample.jpg Snapshot using streamer streamer -f jpeg -o sample.jpeg   $ - requires given linux commands to be executed as a regular non-privileged user