Skip to main content

Posts

Password recovery in Linux Mint

 If you are like me, you have millions of passwords and you tend to change them frequently. But what happens if you can't login to your Linux machine? Shift key :  Often, your mint system does not show you grub screen to select the boot option. But you need that for recovery option. So, while boot, continuously click on shift key.  This will bring up the advanced options. Edit this menu option and change ro to rw, because you want your system to be read/write. Now boot the recovery option using F10. And descend to boot as root. Now you will see boot prompt - #.  Give passwd command as  passwd username   and change your password.  Now I can say proudly that along with installing OS, I can also recover password in Linux system. 

Forcing password changes in Linux - chage

 If you are like me - ultra paranoid, you are not happy with one password. You want to change the password frequently (before the hacker some how solves it ;) ). chage is the command for you. chage - there is no n here - determines after how many days the password of a user expires.  This is what man page says about it          The chage command changes the number of days between password changes and the date of the last password change. This information is used by  the system to determine when a user must change his/her password. You can set number of days after which password expires, when do you want to be prompted for it etc.  $sudo chage username [sudo] password for username: Changing the aging information for username Enter the new value, or press ENTER for the default     Minimum Password Age [0]:     Maximum Password Age [10]:     Last Password Change (YYYY-MM-DD) [2021-08-26]: ...

Shataka - a game to get century

 Let us see if you can solve this puzzle. You remember the rules! You have to get 100 as sum of every row and sum of every column.  If you feel you can solve it in no time, why don't you download the app, and solve other levels too.

Shataka

 The number game Shataka is published. The game is to rearrange 9 numbers in a grid to get a sum of 100 in rows and in columns. I think you will like it. Install it now a nd see for yourself

Coming soon - a math game

 Some times I surprise myself. May be the sentence must have been in past tense. As of now, the surprises more like shocks. But some times I do get some good ideas. Like this game shataka .( I had changed the name to hundred. Now I need to think of a catchier name) People tend to confuse it with Sudoku. But unlike sudoku, shataka is a small game. Instead of 8 1 cells in the grid, there are only 9 cells.  And unlike sudoku, this game involves calculations - addition and lot of it. You don't just pick a number and place in a cell. You place the number if it makes the sum of row as 100 and sum of column as 100. Easier said than done.  So now where is this brain-child of mine which I am so fond of? It is under "construction". Which means I am applying coats of makeup, then washing it off again. Try different shade etc. That is to say, I am fiddling with UI - my not such a good friend.  The look so far.

source code of simple memory game - Simon

Simon game is an electric memory game.  The device creates a series of tones and lights and requires a user to repeat the sequence. If the user succeeds, the series becomes progressively longer and more complex. Once the user fails or the time limit runs out, the game is over. Read in wikipedia. This android game is a simulation of that.  The buttons on the screen glow in some order with their notes. The user must reproduce these button clicks in the same order.  It is a very good game for memory with the added benefit of audio feature.  The source code of the game is available in my github page  Simon  The android game with Simon and 3 more memory games by Hegdeapps can be downloaded from google play  Basically in our layout file, we have four SimonCell custom widgets which are extended classes of image views. These are the four colored buttons you see in the image above.              ...

A maths puzzle in Javascript

 I have written an app called Hundred.  The app has a grid of 3 by 3. Some numbers in the grid are given. You have to fill the rest of the numbers with the condition that sum of each row and sum of each column is 100.  I have written the same using HTML and java script now.  Here is the source code of the same. HTML <!DOCTYPE html> <html> <head> <meta charset="utf-8" />   <meta name="viewport" content="width=device-width, initial-scale=1">   <style> .grid-container {   width:auto;   display: grid;   grid-row-gap:2px;   grid-column-gap:2px;   grid-template-columns: 80px 80px 80px ;   padding: 10px; } .grid-item {   background-color: rgba(255, 255, 255, 0.8);   border: 1px solid rgba(0, 0, 0, 0.8);   padding: 20px;   font-size: 22px;   text-align: center; } </style> <script type="text/javascript" src="shataka.js"></script> </head> <body> ...