Category Archives: Tips

[Solved] Mac Right Click Print Selected Files

As someone who works in IT I don’t find the need to print very much nowadays, mostly just for some procedural things at work. So on a monthly basis I have the experience of selecting a bunch of files in Finder, right clicking and then wondering why the hell something as user friendly as a Mac not have a Print selected files context menu. So finally I bothered to find out how to do it, it’s so simple that I’ve no idea why Apple didn’t just include it.

  1. Open Automator
  2. From the menu of what type of document you want to make select Service
  3. Configure the options as below (click to enlarge):print selected items
  4. Save with the name you want to see the item listed as in the right click menu i.e. Print Selected Items

[Update] A Mac expert that I know has informed me you can always select the files and then hit command + p

Reinstalling TCP/IP Network Stack Windows 7

Taken from [https://pandapow.co/how-to/win-reset-adapter/] – These instructions were used by a colleague recently when his network stack was b0rK3n. Running both the reset for tcp4 and tcp6 seemed to be key. Just resetting 4 did not resolve his issue.

Open the Command Prompt as an administrator

Run the commands in this document in a Command Prompt that has been started “*as administrator*”.

  1. Click the *Start menu*
  2. Type *cmd* in the search box,
  3. *right-click* the cmd item at the top and select *Run as administrator* from the menu

Reset Winsock

Resets Winsock Catalog to a clean state.
netsh winsock reset
*Restart computer*

Reset Firewall

This command restores the Windows Firewall with Advanced Security policy to the default policy.
netsh advfirewall reset

Reset BranchCache

Resets the BranchCache service. Flushes the local cache. Every configuration parameter of BranchCache will be reset to its default value.
netsh branchcache reset

Reset IPv4

Resets TCP/IP and related components to a clean state.
netsh int ip reset

Reset IPv6

Resets IPv6 configuration state.
netsh int ipv6 reset

SOLVED: Spotify desktop client communication failed

If you receive the message Spotify desktop client communication failed when trying to Login with Facebook to the Spotify app here’s why and how to fix it.

Reason

It was because I have 2 factor security turned on.

Resolution

  1. Go to https://www.facebook.com/settings?tab=security&view
  2. On the line App Passwords click Edit
  3. Click the Generate App Passwords link
  4. Click the Generate App Passwords button
  5. Enter a friendly name for what this is for i.e. Spotify
  6. Click Generate Password
  7. Copy the password in the normal spotify logon password box.
  8. enter your FB email address as the username.
  9. HEY PRESTO!

Fixed: phpMyAdmin is throwing a #2002 cannot log in to the mysql server phpmyadmin

This one had me going round the houses a bit until I the wrong permissions confirmed something to me.
Firstly the /etc/phpmyadmin/config.inc.php file is crud. For some reason this file doesn’t resemble the actual config file that you should use.
The file /usr/share/phpmyadmin/config.sample.inc.php is the format that you need for a correct phpMyAdmin configuration, so copy it to /etc/phpmyadmin/config.inc.php

Next you need to edit this config file. This isn’t the hardest of the things in the world to do if you just want the basics. You just need to edit the value for $cfg['Servers'][$i]['host']

Once you’ve done that you can then login to phpMyAdmin using your mySQL credentials and get started.
It will bitch about not having the advanced features enabled. To do this follow the blog post I did at INSTALLING PHPMYADMIN ADVANCED FEATURES ON UBUNTU

Make sure you log out and back in to pick up the changes.

Enjoy,
Mike

FIXED: Ubuntu Not Seeing More Than 2TB of a Disk

WARNING! Backup your data before proceeding!

For me this process didn’t destroy the data. I completely expected it to, but it didn’t. Make sure you backup in case you’re not as fortunate.

Move into Single Users Mode
sudo init 1

Unmount partition in question
sudo umount /mnt/disk1

Launch PartEd pointing at the disk in question
sudo parted /dev/sdb

Make the Partition Table GPT
mklabel gpt

Accept the warning and quit PartEd
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
(parted)
quit

Check the disk (resize2fs required this before it would resize the partition)
sudo e2fsck -f /dev/sdb1

Resize the partition to fill the total available disk space
sudo resize2fs /dev/sdb1

Mount the disk again
sudo mount /mnt/disk1

And hey presto!

Landscapify – Adjusting Portrait Photos for Landscape Frames

I’ve been making a lot more use of my digital photo frame since I moved into my flat but a fair few of the photos I want to make use of are portrait orientation whilst the majority are landscape.

For a load of photos I’ve gone thru them and manually made them landscape by using a method I noticed that You’ve Been Framed use when viewers send in mobile footage shot in the wrong orientation for tv. The technique is to enlarge a second copy of the image/video as a background layer to fit the width of the landscape orientation and blur the background.

I figured as I’d want to do this to a lot of images over time I’d make a script to do so. So using Photoshop’s Actions I’ve done so and thought I’d share it: Landscapify – Mike Dixson.atn Here’s how to load the actions into your Photoshop http://www.imphotography.com/downloads/installactions.htm

Instructions

  1. Open Image
  2. In the Actions Window click on Landscapify
  3. Click the Play Icon >
  4. When prompted for the new canvas size enter the current width as the height and the current height as the width
  5. Click Ok (if prompted that clipping will occur click Ok to that too
  6. You’re done 🙂

Hope it’s useful to you.
Mike