Category: Tips and Tricks

great tip for securing Last pass

Use a Dedicated Security Email Address

For additional security, you can have LastPass send security-related emails to a special security email address instead of your normal email address. For example, password hint emails, account recovery emails, and multifactor authentication disable emails will all be sent here.

This email should be an extra-secure email address only you know about – if someone gains access to your day-to-day email account, they won’t be able to access your LastPass vault without access to your security email account.

Batch Image Editing in Linux

Must know for web developers. Many batch tools are available in imagemagick. convert and mogrify are both great! sudo apt-get imagemagick will get you going

bash$ for i in *.jpg
do
convert -scale ’48×38′ $i TN_$i
echo $i processed
done

mogrify -format jpg -quality ‘95%’ *.tiff (bulk-conversion)

For more optimized images use the following:

bash$ for i in *.jpg
do
djpeg $i | pnmscale -xysize 48 38 | cjpeg -opti -progr -qual ‘75%’ > TN_$i
echo $i processed
done

Original post here (look for Tim’s comment):http://www.cyberciti.biz/tips/howto-linux-creating-a-image-thumbnails-from-shell-prompt.html


MS Word Tip: Update References all across the document Ctrl+A, F9

Handy shortcut

Amplify’d from www.legalandrew.com

You can update linked fields by selecting them and then pressing F9. You can also select all (by using CTRL+A) and press F9 to update all your fields. However, Dani discovered that footnotes will only update using this method if you first put the cursor in the footnotes area. Then pressing CTRL+A and F9 will update everything. Odd, but it works.

Read more at www.legalandrew.com

 

Upgrading Ubuntu: Not a bug – E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

Looks like xserver issues are fairly common when attempting an upgrade from 10.4 to 10.10.

– Look at /var/log/dist-upgrade/apt.log file for errors.
– Remove the packages which say anything related to ‘held’

in my particular case it ended up being xserver-xorg-video-nouveau

Amplify’d from bugs.launchpad.net

E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

The error from apt.log is
Investigating xserver-xorg-video-all
Package xserver-xorg-video-all has broken Depends on xserver-xorg-video-tseng
  Considering xserver-xorg-video-tseng 1 as a solution to xserver-xorg-video-all 10005
  Added xserver-xorg-video-tseng to the remove list
  Fixing xserver-xorg-video-all via keep of xserver-xorg-video-tseng
Done
ERROR:root:Installing/upgrading ‘xserver-xorg-video-all’ failed
ERROR:root:NvidiaDetector can not be imported No module named NvidiaDetector.nvidiadetector
MarkUpgrade() called on a non-upgrable pkg: ‘brasero’
ERROR:root:Upgrading ‘brasero’ failed
/usr/lib/python2.6/dist-packages/DistUpgrade/DistUpgradeCache.py:718: DeprecationWarning: Deprecated, please use ‘get_changes()’ instead
  for pkg in self.getChanges():
/usr/lib/python2.6/dist-packages/DistUpgrade/DistUpgradeCache.py:665: DeprecationWarning: Deprecated, please use ‘get_changes()’ instead
  for pkg in self.getChanges():
/usr/lib/python2.6/dist-packages/DistUpgrade/DistUpgradeCache.py:669: DeprecationWarning: Deprecated, please use ‘marked_downgrade’ instead
  if pkg.markedDowngrade:

Read more at bugs.launchpad.net

 

Mozilla Location Bar- Tricks

Preference names in about:config

default key

 

action

browser.urlbar.match.title # Returns results that match the text in the title.
browser.urlbar.match.url @ Returns results that match the text in the URL.
browser.urlbar.restrict.bookmark * Returns only results that are from the bookmarks.
browser.urlbar.restrict.history ^ Returns only results that are from the browser’s history.
browser.urlbar.restrict.tag + Returns only results that have been tagged.
browser.urlbar.restrict.typed ~ Returns only results that have been typed.
browser.urlbar.restrict.openpage % Returns only open tabs (visible tabs, not active tab), available in 3.7
Related articles:

Enabling XML Tools Plugin for Notepad ++ plus plus

XML is pervasive these days. Notepad++ is delightful. How to make the best of both?

Use XML Tools, the XML oriented plugin set for Notepad++. Installing it can be a bit of a pain (not too much though). Here are the quick steps:

  1. Download xmltools_xyz.zip from the Notepad++ Plugins page (http://sourceforge.net/projects/npp-plugins/files/)
  2. Close and start Notepad ++ (if you had it open) or just start it.
  3. Drop the dll file into the plugins directory (look where you installed Notepad++ most probably C:Program FilesNotepad++)
  4. Now you should see XML Tools showup under the Plugins menu. It will however complain saying ext_libs are required. It will also provide links to download them. One option is from the author’s website, another is from sourceforge. I preferred the author’s site.
  5. Download libxml2-xyz.zip, zlib-xyz.zip,libxslt-xyz.zip,iconv-xyz.zip from the authors website.
  6. Go into the bin folder of each of these zip extracts and pickup the dll. Drop them in the root directory of Notepad++ (a level above plugins)
  7. You should be all set to rock!