Blog is moving

My blog is moving to http://victormendonca.com/blog/. If you are looking for a specific or older post you are in the right place Otherwise check out my new page for more up to date content.

Thursday, January 10, 2013

Google Keyboard Shotcuts


As you may know, Google search has a set of keyboard shortcuts and regex that can be used on their search results. Today we will be exploring these shortcuts, as well as some used by other known Google applications that you are probably familiar with.

Let’s start with Google search.



1- Logon to Google and run a search

2- Click on the settings button on the results page and click on “Search Settings”


3- Under “Google Instant predictions” select “Always show instant results” and then click on Save



4- Back to the results page, hit “Tab” on your keyboard to initiate the shortcuts

Search Result Keyboard Shortcuts
Tab - Goes to the first result
Up/Down - Goes up or down in the result list
Right - Shows instant preview
Enter - Opens the select result
Ctrl+Enter - Opens the select result in a new tab
Shift+Enter - Opens the select result in a new window


Now Google+











1- Open Google+ and click on an empty white space

2- Press “Shift+?” on your keyboard to show a list of keyboard shortcuts



Google+ Keyboard Shortcuts
This page
j - Next post
k - Previous post
o - Expand/collapse current post
n - Next comment on current post
p - Previous comment on current post
r - Comment on current post
Global
/ - Search
? - Open shortcut help
@ - Send feedback
Left - List of pages (Enter opens selected page)
Right - Page content


And finally Gmail


1- Open Gmail and click on an empty white space

2- Press “Shift+?” on your keyboard to show a list of keyboard shortcuts


3- You may need to enable the additional shortcuts (bottom half of the page) by clicking on "Enable"

Gmail Keyboard Shortcuts
Compose and Chat
Shift + Esc - Focus main window
Esc - Focus latest chat or compose
Ctrl + . - Advance to next chat or compose
Ctrl + , - Advance to previous chat or compose
Ctrl + - Send
Ctrl + Shift + c - Add cc recipients
Ctrl + Shift + b - Add bcc recipients
Ctrl + Shift + f - Access custom from
Ctrl + k - Insert a link
Formatting
Ctrl + b - Bold
Ctrl + i - Italics
Ctrl + u - Underline
Ctrl + Shift + 7 - Bulleted list
Ctrl + Shift + 8 - Numbered list
Ctrl + Shift + [- Indent less
Ctrl + Shift + ] - Indent more
Ctrl + Shift + l - Align left
Ctrl + Shift + e - Align center
Ctrl + Shift + r - Align right
Jumping
g then i  - Go to Inbox
g then s  - Go to Starred conversations
g then t  - Go to Sent messages
g then d  - Go to Drafts
g then a  - Go to All mail
g then c  - Go to Contacts
g then k  - Go to Tasks
g then l  - Go to Label
Threadlist selection
* then a  - Select all conversations
* then n  - Deselect all conversations
* then r - Select read conversations
* then u  - Select unread conversations
* then s - Select starred conversations
* then t  - Select unstarred conversations
Navigation
u - Back to threadlist
k / j - Newer/older conversation
o or  - Open conversation; collapse/expand conversation
p / n  - Read previous/next message
` - Go to next inbox section
~ - Go to previous inbox section
Application
c - Compose
/ - Search mail
q - Search chat contacts
. - Open "more actions" menu
v - Open "move to" menu
l - Open "label as" menu
? - Open keyboard shortcut help
Actions
, - Move focus to toolbar
x - Select conversation
s - Rotate superstar
y - Remove label
e - Archive
m - Ignore conversation
! - Report as spam
# - Move to trash
r - Reply
Shift + r - Reply in a new window
a - Reply all
Shift + a - Reply all in a new window
f - Forward
Shift + f - Forward in a new window
Shift + n - Update conversation
] / [- Remove conversation from current view and go previous/next
} / { - Archive conversation and go previous/next
z - Undo last action
Shift + i - Mark as read
Shift + u - Mark as unread
_ - Mark unread from the selected message
+ or = - Mark as important
- - Mark as not important
h - Sneak peek
g then p - Make a phone call
Shift + t - Add conversation to Tasks

Friday, January 4, 2013

How to SSH home without access to router

Do you need to access a Linux box that sits behind a router or modem, however you don't have admin access to configure port forwarding? Well, here's something that might help you.

Before we start, make sure that the remote client machine is able to connect to an IPv6 network (test here).

1- Register for a gogo6/freenet6 account - http://www.gogo6.com/freenet6/registration

2- Install gogoc on the remote server

$ sudo apt-get install gogoc

3- Edit the configuration file with your credentials and your closest broker (mine was montreal.freenet6.net)

$ sudo vim /etc/gogoc/gogoc.conf

userid=
passwd=
server=[your_broker].freenet6.net
auth_method=any

4- Start the gogoc service

$ sudo service gogoc stop
$ sudo service gogoc start

5- If you get the error "* Not starting gogoc - no server key", then follow steps 5a, b and c, otherwise go to step 6:

5a- Add your broker to the tsp-broker-list.txt 

$ cd /var/lib/gogoc/
$ sudo vim tsp-broker-list.txt 

# Add your broker as
[broker].freenet6.net

5b- Start the server in the foreground so you get prompted to accept the key

$ sudo /usr/sbin/gogoc -n -f /etc/gogoc/gogoc.conf
montreal.freenet6.net is an unknown host, do you want to add its key?? (Y/N) y

5c- Wait for about 30 seconds (to be sure), then stop the foregroud process (Ctrl+c) and start it in the background (step 4)

6- Check that an IPv6 address was assigned is running:

$ ifconfig | grep -q inet6 && echo ok
ok

7- Try to connect from the remote client
- If connecting from Linux:

$ ssh -6 [linux_user]@[net6_user].broker.freenet6.net

- If connecting from Windows:

What is Tizen?

Have you ever heard of Tizen? Well, I hadn't until last week... I had no idea of it's existence until I bumped into a post on my Google+ feed. Of course it grabbed my attention, I mean, what techno gadget geek wouldn't be interested. :)

Tizen is a software platform (or operating system) compatible with a range of devices (like mobile devices, tablets, smart TVs, in-vehicle devices). The application environment is based on jQuery and jQuery Mobile, allowing developers to use HTML5 and other web technologies.

The project resides within the Linux Foundation and is governed by a Technical Steering Group (with Intel and Samsung in the primary decision-making body).



I have extracted a description from the official site - https://www.tizen.org/:

Tizen is an open source, standards-based software platform supported by leading mobile operators, device manufacturers, and silicon suppliers for multiple device categories such as smartphones, tablets, netbooks, in-vehicle infotainment devices, and smart TVs. Tizen offers an innovative operating system, applications, and a user experience that consumers can take from device to device. 
The Tizen project resides within the Linux Foundation and is governed by a Technical Steering Group. The Technical Steering Group is the primary decision-making body for the open source project, with a focus on platform development and delivery, along with the formation of working groups to support device verticals.
The Tizen Association has been formed to guide the industry role of Tizen, including gathering of requirements, identification and facilitation of service models, and overall industry marketing and education.
Tizen provides a robust and flexible environment for application developers, based on HTML5. With HTML5's robust capabilities and cross platform flexibility, it is rapidly becoming the preferred development environment for mobile apps and services. The Tizen SDK and API allow developers to use HTML5 and related web technologies to write applications that run across multiple device segments.

Even thou I'm a happy Android user, having another OS option for mobile devices is always good (I think all Linux users can relate to that).

If you would like to know more about Tizen, take a look at the links and video below.

Google+