How To Clear Your Apple Maps Search History in iOS 8

I wanted to clear my Apple Map search history because it was auto-completing the wrong things. However, it isn’t very obvious how to clear your Apple Map search history. Here is how I cleared it:

1 – Open the Apple Maps app.

2 – Click into the search bar at the top.

Clearing your Apple Map search history.
Click into the search bar at the top

3 – Click on favourites

Clearing the search history on Apple Maps
Click on the favourites button

4 – Click the clear button.

Push the Clear Button
Click on the clear button!

Apple are generally great at usability.  However, this simply doesn’t make sense to me and seems massively confusing. I wish that Apple would add a control clearing the search history from within the iPhone setting app. This would fit in with their general settings paradigm and is exactly how they do the clearing of Safari browser history.

Hope this helps someone.

Great Image Viewer for Mac OS X … Lyn image browser

Apple Mac OS X is a brilliant OS but unfortunately it’s missing a good image viewer. In comparison, Windows has Preview and Ubuntu has the Gnome Image Viewer both of which are great. I did some research and the image browser i found was Lyn Image Browser. I like it so much… I thought I would put write a little review for it.

So why is it so good?

1 – Great Thumbnail Viewer
Lyn Image Browser has a great thumbnail viewer where the images are large enough to actually see them. You can browse through folders really quickly and easily.

lyn_image_browser_thumbnail_view_2

You can also view all the image information:

lyn_image_browser_image_imformation

2 – You can flick between images
This might not sounds like much of feature but frankly it is. Apple’s Preview is missing this key feature and is super annoying while both Windows preview and Gnome image viewer both have this feature.

lyn_mac_osx_image_viewer

Finally… its fast and lightweight
I hate slow applications and this one is very fast and lightweight and doesn’t hog the cpu.

So, if you are looking for a image viewer for Mac OSX then I can highly recommend Lyn Image Browser.

How give a user permission to run a specfic command as root Ubuntu

Sometimes it can be really useful to give a user privileges to run a specific command as root. For example – if you wanted to allow a user to restart a specific service or run a specific program as root without given them access to the whole server. You can configure this using visudo command as root. Note: you really must be root when you do this and not a sudo.

 sudo su -

Then..

visudo

You can then modify the configuration file. There are specific sections in the config file which are show below. For example – I want to give a user called debug permission to run supervisorctl as root.

....

# User alias specification
debug ALL=(ALL) NOPASSWD:/usr/bin/supervisorctl

Hope this is helpful.

paramiko.SSHException: Incompatible ssh peer (no acceptable kex algorithm) ubuntu 14.04

I was trying to sftp some files using Python Paramiko on Ubuntu 14.04 and got the following error: “paramiko.SSHException: Incompatible ssh peer (no acceptable kex algorithm)”. It turns out that there is an incompatibility issue with OpenSSH 6.7 and Paramiko with a version less than 1.15.1. At the time of writing (November 2014) Ubuntu 14.04 came with 1.10.1.

To fix the issue, you need to upgrade Paramiko to at least 1.15.1. You can do this by using PIP which is a Python package management system. Here is how to you do this:

apt-get install python-pip

Do a quick version check of the Python libs like so:

pip freeze

Which gives the following output:

landscape-Client==14.01
PAM==0.4.2
Twisted-Core==13.2.0
Twisted-Names==13.2.0
Twisted-Web==13.2.0
apt-xapian-index==0.45
argparse==1.2.1
chardet==2.0.1
colorama==0.2.5
configobj==4.7.2
html5lib==0.999
mercurial==2.8.2
paramiko==1.10.1
pyOpenSSL==0.13
pycrypto==2.6.1
pycurl==7.19.3
pyinotify==0.9.4
pyserial==2.6
python-apt==0.9.3.5
python-debian==0.1.21-nmu2ubuntu2
requests==2.2.1
six==1.5.2
ssh-import-id==3.21
urllib3==1.7.1
wsgiref==0.1.2
zope.interface==4.0.5

Then upgrade Paramiko using PIP.

pip install paramiko --upgrade

Voila. Paramiko sftp should now work.

In my case, I actually use Ansible to deploy changes across multiple servers. Ansible comes with a PIP module. You can automatically upgrade Paramiko across all servers like so:

## Python Packages Using PIP 
## We are doing this because we require the latest version of paramiko
- pip: name=paramiko state=latest

How to allow incoming pings through Synology Firewall

I have a few Synology NAS at work which are used for storage. I have been locking down the firewall on them to only allow certain ports from specific IP subnets. However, I still wanted to be able to ping the Synology from anywhere. I couldn’t work out how to configure the Synology firewall to let through pings ( ICMP messages).

You have to go to: Control Panel -> Security -> Firewall -> Create:

allow_ping_messages_from_synology_nas

Under ports select Custom and then under protocol select ICMP.

allow_icmp_messages_from_synology_nas

Press OK a few time and then Save the firewall settings. You should then be able to ping the NAS without any problems.