Install package hplip
Download hplip-3.20.3-plugin.run from here.
Bugs those fascinated me
Developers fix thousands of defects in their careers. However, there are always a memorable few. I thought of listing down some of the interesting bugs I came across so far.
1. Messages those reach before sent
One from the early years of my career. I was working on SMS/MMS protocols during the time, After sending out a few lakhs of messages from one handled to another kept beside each other it was seen that even before the message is sent completely from mobile A it reaches mobile B and the user gets the notification.
It was late night but a challenge interesting enough to keep you awake. After a few hours of debugging it was found that the implementation was using a linked list to which it was appending each new message information at the end before sending it out to the lower telephony layer which would confirm asynchronously once the message was successfully sent. However, on receiving the confirmation, it does some bookkeeping and it was searching the list from the head f
In this example, we will setup a SSH server on Termux (for Android) and connect to the server from Ubuntu desktop. However, a similar procedure should work with any SSH server.
Generate your ssh key pair on your desktop
Check your desktop IP address (say, 192.168.0.100)
Run ssh server on your desktop
Copy the file to Termux over SCP
$ scp firstname.lastname@example.org:~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
|" script modified from: https://bitbucket.org/sjl/dotfiles/src/b6d64b1c4cdf53060e3c30b3b87a653a30dc85d0/vim/vimrc?at=default&fileviewer=file-view-default#vimrc-3125|
|" ctermbg color code ref: http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim|
|" Add the following to your .vimrc:|
|" :map <silent> <C-a> :normal! gv"zy<CR>|
|" Use '\1' to '\9' for different color highlighting. '\0' clears all highlighting.|
|" In general, a visual selection followed by 1. Esc and 2. ^a will be highlighted.|
|" If there is no visual selection, the word under cursor will be highlighted.|