Tech Tips

Computer and Technology Tips.

I was about to buy a 3rd different USB wireless adapter and even considering a PCIe model with external antenna since I kept getting horrible performance with the nano adapters. I liked that they could just be plugged into the back of the system to add wireless support and they worked great on the Raspberry Pi, but on a desktop the performance was not much better than a dial-up connection.  Before ordering anther product someone mentioned interference and I then did a bit more digging and found Intel actually published a whitepaper on this subject (Linked at bottom).

After testing I was able to clearly see the effects of 2.4Ghz interference and would recommend to anyone having performance problems with wireless adapters to get a USB extension cable.  Using the same Plugable nano-N wireless adapter I ran a speed test from 3 locations:

Connected directly to back USB port

Connected directly to front USB Port

Connected to USB port via extension cable 3′ away

Intel’s Article: http://www.intel.com/content/www/us/en/io/universal-serial-bus/usb3-frequency-interference-paper.html

paintbrush-150pxWhen working in modern word processors with multiple documents or sources it’s easy to end up with all sorts of different formats mixed together. The task of trying to manually format all the text in a document can be tedious and allows room for error. A simple solution is the Format Painter, which will copy the format of selected text to other areas of the document. Both LibreOffice and MS Office have this feature represented by a paintbrush icon in the tool bar.

To use the format painter highlight text with the format you want to paint other text with, then if only painting one selection of text click the format painter button or double click the format painter if painting multiple selections. The button will remain pressed and you can then highlight the text to be painted which will then have same format as the original selection.

By now anyone using the internet is bombarded by ads everywhere online unless measures are taken to minimize them. There are plenty of ad blocking programs out there but another method that is easy is implement is the use of the hosts file. Originally this file was used to map hosts names to IP address before Domain Name Servers (DNS) was implemented in 1984 allowed for the process to be automated. For most end users today this file is unused but could provide beneficial experiences if configured. When an IP address is specified in the hosts file for a domain the system will use that address, allowing blocking of sites by directing them to 0.0.0.0 or 127.0.0.1. This can be used to stop ads from loading and potentially increase page load times. Now it might seem like a tedious task to add all the add sites to block but there are providers of hosts files that are already completed and updated regularly; I use MVPs.org to provide my hosts files.

Note that while the hosts file when configured can block ads and some malware redirects, it is only an additional layer of protection. Systems should still run other forms of protection such as anti-virus and anti-malware with the hosts file. Below are instructions to load the file from MVPs.org to the most common operating systems.

Windows:

The hosts file in modern distributions is located at %SystemRoot%\system32\drivers\etc\hosts and can be edited with notepad or other text editors. Just be sure not not add any extension like .txt which the built in notepad is known for doing. Note that the file is in the windows directory so any app trying to edit it will require being run as administrator.

Thankfully however, MVPs.org has an app to update the host file easily. Just download the zip file from http://winhelp2002.mvps.org/hosts.htm and unzip to a folder. Then right-click the mvps batch file and choose Run as administrator. This will load the downloaded data into the host file. More detailed instructions and the date of last updated host file is available on their site.

Linux:

While I was manually updating host files before, came across a post to make a script for Linux which when added to the chrontab allows for easily maintaining the most up to date hosts file. Visit http://www.putorius.net/2012/01/block-unwanted-advertisements-on.html for details and description of the script. I made a few small changes.

To complete these steps you will need to be running as root or using sudo su to get root permission. Your prompt should end with #

First, backup your current host file:
cp /etc/hosts /etc/.etchosts

Next use vi or nano to create the script /root/update_hosts.sh and add the following code to it:
#!/bin/bash
cd /tmp
wget http://winhelp2002.mvps.org/hosts.txt
rm /etc/hosts
mv hosts.txt /etc/hosts
cat /etc/.etchosts >> /etc/hosts

Make the file executable by running:
chmod +x /root/update_hosts.sh

Schedule to run automatically:
run crontab -e then add the line below to make it update nightly at 23:59
59 23 * * * /root/update_hosts.sh > /dev/null 2>&1
The time can be changed by adjusting the numbers. the > /dev/null 2>&1 is sending all output from the scheduled job to the bit bucket so that crontab does not email the results each night.

Mac:

Instructions for updating the Mac OS host file can be found here: http://pointhope.de/tips&tricks/no_place_like_localhost.html

Android:

If you have root on your Android device the hosts file is stored at /system/etc/hosts and can be changed with a terminal app, however you will need to mount the path as R/W before changes can be made. Something like Beansoft – Mount /system (rw / ro) will do the job. Because on Android the hosts file is symbolic linked to /etc/hosts as well it seems to not want to allow overwriting the file but the contents can be changed with the cat command and achieve the same desired result.

Remember to run su as commands require root access.

First time  backup your current hosts file:
cp /system/etc/hosts /system/etc/.etchosts

Then run the following to update:
cd /sdcard/tmp
If you do not have a /sdcard/tmp directory run mkdir /sdcard/tmp and rerun the cd command above
wget http://winhelp2002.mvps.org/hosts.txt
cat hosts.txt > /system/etc/hosts
cat /system/etc/.etchosts >> /system/etc/hosts
rm hosts.txt

At this point you can exit terminal and then remount System as R/O.

A common issue I’ve run into on public access Wi-Fi is web content filtering. While it is great places offer guest Wi-Fi, I don’t care for being restricted to what I can or cannot look at while connected. So in that case an easy solution is to change the DNS server your device is resolving to and bypass any DNS filters and blocks the guest Wi-Fi service may have.  Other options include remote access of another computer else where (like your home computer if doing sensitive transactions), or a VPN connection.

As DNS settings are generally easy to edit and Google has an easy to remember DNS servers I use them regularly. These can be set on your devices or even in your router. For the purpose of this article I have included steps for Android and Windows 7.

Google Public DNS IP addresses (IPv4):
8.8.8.8
8.8.4.4

Google Public DNS IP addresses (IPv6):
2001:4860:4860::8888
2001:4860:4860::8844

Setting the DNS on an Android device is fairly straight forward; just go to Wi-Fi settings, tap and hold on the network after connecting then select Modify Network. On the screen that appears check the box to display advanced settings and change IP settings to Static. Once on the IP settings screen just replace the DNS servers with the Google ones (Conveniently on Android when you erase the DNS servers, Google’s pre-populate).
Android Network Settings

On Windows it is a few more clicks but still easily set. Just go to the Control Panel and select Network Sharing Center. Then click the option Change Adapter Settings. Right-Click adapter to change (wireless) and select the properties option. Double click on the IPv4 then enter Google’s DNS server settings.
Win7 Network Settings

Do you use an Android device for office productivity or just copy and paste a lot of data? Perhaps you want to copy something on one device and paste it on another or just later on paste something you had previously copied.

A clipboard manager could prove to be a useful utility. Clipper Plus with Sync offers clipboard management features like history, ability to edit or clear the clipboard, save commonly pasted strings to snippets that can easily be copied onto the clipboard with a single tap. When the sync plugin is installed the clipboard syncs between devices and can also be accessed via ClipperSync website enabling copying over to computers.

Clipper Plus with Sync and the Sync Plugin can be downloaded from the Google Play Store for a small fee, or there is just Clipper,a limited free version that works without sync and has a max history of 20 clippings.

Have you ever been away from your computer and realized you need a file on it? Or perhaps access to a program you can’t run on a mobile device?

Remote Access provides a great solution allowing for you to access and control your computer from another computer or mobile device. There are many products and companies offering remote access services like TeamViewer, LogMeIn, GoToMyPC to name a few. Only caveat is you must leave your computer on with an Internet connection to access it.

Personally I recommend TeamViewer for its ease of installation and configuration. Additionally it is free for personal use and provides a method for requesting the remote assistance of others as an added bonus.