w3m command line browser for Linux or Mac

w3m is one of the easiest command line browsers for multiple platforms.  w3m is a free software/open source text-based web browser. It has support for tables, frames, SSL connections, color and inline images on suitable terminals. Generally, it renders pages in a form as true to their original layout as possible. The name “w3m” stands for “WWW wo miru (WWWを見る)”, which is Japanese for “to see the WWW” where W3 is a numeronym of WWW.

Why use a text browser:
It helps when you have a very shitty network connection. This is a live saver when you want to get things done super fast. Also sometimes it is easy to read sites without a lot of images etc.

Installing W3M on Linux
You’ll want to install the main w3m package and the w3m-img package if you want inline image support. Use the following command on Ubuntu:

sudo apt-get install w3m w3m-img

For Mac following command will install:

brew install w3m

You can use the arrow keys to move the cursor around or click at the desired location to move the cursor there. If you want to type in a text box, select the text box with your cursor and press Enter before typing your text. Load a hyperlink by selecting it with your cursor and pressing Enter.
Tab: Press the Tab key to position your cursor over the next hyperlink on the page.
Shift-B: will take you back a page.
Shif-U: If you want to load a different URL, you’ll get an URL prompt.
Shift-H: To view the help page if you want to see a more complete list of keyboard shortcuts.
Shift-T: To open a new tab and then you can press Shift-U and enter the new URL. Yes, it does support tab browsing:)

Let me know if you liked it and if you have any other suggestion or tool for the same in comments below.

Tagged : / / / / /

Google’s super useful voice command

Google assistance is one of the best personal assistance currently in the market. Following are few of the most used voice commands:

1. Your personal translator
When you’re traveling abroad, the most significant hurdle is language. Google Assistant allows you to quickly translate any sentence or word when asked.

Translate namaste in Spanish

2. Resolve anything with the toss of a coin
Google Assistant allows you to toss a coin coupled with sound effects to reveal those outcomes. Have fun.

toss a coin

3. Sing Happy Birthday
Tell Google Assistant to sing Happy Birthday and it will do so in a melodious tone.

Sing happy birthday

4. Call anyone from your contact list
Ever wondered how easy would it be to only utter the words Call (any name in your contact list) and see your phone calling it! It does make you feel like living a sci-fi fantasy. Google has made this possible. Enjoy the future.

Call boss

5. Use it as a quick dictionary
Do not understand a word and need to look it up? Most of us would end up launching a dictionary app or the browser to search for the meaning of something we do not know.

what is the meaning of opportunity 

6. Google Assistant can make you laugh
Want some inspiration to broaden your scope of humour or simply bored? Google Assistant can tell you a joke when you ask it to. Some of these jokes might be a turn-off but most are quite interesting and some do manage to tickle the funny bone.

tell me a joke

7. Let your assistant do the maths
Maths and the thought process that comes with it is quite a task, ain’t it? Most complex calculations (especially the one involving multiple digits) are a calculator app task. Google assistant saves you the time and energy by solving your mathematical queries at your voice’s command.

multiple 20 by 5

8. Check current weather
If you want to know current weather try this

What is the weather today

9. Open any app without touching your phone
Google assistant knows the apps on your phone. Whenever you want to access any app, you can simply command Google Assistant to open it for you.

open amazon prime

10. Google Assistant can remember things for you
You are bound to forget. Google Assistant isn’t human and hence can remember whatever you tell it to. From file locations to important documents or keys, Google Assistant can be asked to remember anything and when your humane side forgets about them, just ask Google Assistant where are the keys or documents and it will remind you of the things you told it to remember. You have to try this out it is mind-blowing.

11. Convert currency
You can ask Google to convert any currency example:

convert dollar to rupee 

12. Know more facts.
You can ask Google to give you any facts like

How tall is the Qutb Minar?
What is the population of India?

Try this out this command, let me know what is your favorite Google voice command.

Just in case you have not installed Google Assistance you can install it from Google Play or App store.

Tagged : / /

Use of say command in MAC

sayThis is a fun one: say converts text to speech, using the same TTS engine OS X uses for VoiceOver. Without any options, say will simply speak whatever text you give it out loud.

$ say "Never trust a computer you can't lift."

You can also use say to speak the contents of a text file with the -f flag, and you can store the resulting audio clip with the -o flag:

$ say -f mynovel.txt -o myaudiobook.aiff

The say command can be useful in place of console logging or alert sounds in scripts. For instance, you can set up an Automator or Hazel script to do batch file processing and then announce the task’s completion with say.

But the most enjoyable use for say is rather more sinister: if you have ssh access to a friend or coworker’s Mac, you can silently log into their machine and haunt them through the command line. Give ‘em a Siri-ous surprise.

You can set the voice (and language!) used by say by changing the default setting in the Dictation & Speech panel in System Preferences.

Tagged : / /