Archive

Archive for the ‘General’ Category

How to fix “omega.contacts.msn.com could not be validated” error in pidgin

November 24th, 2010 22 comments

If you use Pidgin as an MSN instant messenger you might have recently started to get the “omega.contacts.msn.com could not be validated. The certificate chain presented is invalid” error. It seems that MSN certificate has expired for Pidgin; so a new certificate needs to be imported into Pidgin for it to work.  There are a few different ways to get the new certificate, the following outlines a couple solutions that i have found to work.

Option #1 – Delete the current certificate and let Pidgin import the new one automatically

  1. From within Pidgin,  navigate to Tools > Certificate
  2. In the list of certificates, find the omega.contacts.msn.com certificate and Delete it
  3. Quit and Restart Pidgin
  4. Pidgin should import the new certificate automatically and you should now be able to login.  If not, follow the steps in Option #2 to download and import the certificate manually.

Option #2 – Delete the current certificate and download/import the certificate manually

  1. Download the following file  – http://files.andreineculau.com/projects/pidgin/omega.contacts.msn.com.txt
  2. Remote the .txt extention at the end of the file name so you end up with omega.contacts.msn.com
  3. From within Pidgin,  navigate to Tools > Certificate
  4. In the list of certificates, find the omega.contacts.msn.com certificate and Delete it
  5. Now click the Add button to import the certificate you just downloaded, Navigate to the omega.contacts.msn.com file
  6. Quit and Restart Pidgin
  7. You should now be able to login
Categories: General Tags: , , ,

How to configure Ctrl + Shift + Esc to open System Monitor in Ubuntu 10.04

November 23rd, 2010 32 comments

When I’m working in Windows I tend to use the Ctrl + Shift + Esc shortcut a lot to bring up the task manager.  Since I’ve switched my primary OS over to Ubuntu i still find myself trying to open up a task manager (or system monitor) with the aforementioned shortcut, which isn’t configured by default. To overcome this I simply created a custom keyboard shortcut to open the gnome-system-monitor with the Ctrl + Shift + Esc key combination.

This short tutorial will show you how to create a custom keyboard shortcut for the system monitor in Ubuntu 10.04.

  1. Under System > Preferences open up Keyboard Shortcuts
  2. Click on Add, to add a new action
  3. Enter a name for your shortcut, I’ve named my System Monitor.
  4. Enter the command gnome-system-monitor
  5. Create Custom Shortcut Action
  6. Click Apply
  7. You should now see your new Action under Custom Shortcuts in the list
  8. Click on the shortcut column of your new action (which should say Disabled)
  9. The shortcut text should change to New Shortcut, now press the Ctrl + Shift + Esc key combination.
  10. The shortcut column will change once again to your new key combination.
  11. Custom Shortcut System Monitor
  12. Click Close to exit the Keyboard Shortcuts window
  13. Now you can use your new shortcut to open up the System Monitor

That’s all there is to it.  Enjoy and have fun.

Categories: General Tags: , ,

Display Code in WordPress Posts using Syntax Highlighter Evolved

October 28th, 2010 139 comments

There are times when you might want to show a piece of code within a WordPress post. If you try to put the code snippet directly into the editor you’ll find that WordPress doesn’t exactly display how you’d like it to.  The problem is that WordPress will assume that the code is intended to be read as code and not plain text so the readers can view it properly.

The easiest way to combat this issue is to use a plugin so that when you past code in your post WordPress knows not to see the code as code but as text.  One plugin that i have found is called SyntaxHighlighter Evolved, written by viper007bond, which is based on the original project by Alex Gorbatchev.

For a list of supported languages see the WordPress.com support document.

Using the plugin

Whenever you want to display code you will need to wrap your snippet with the shortcode tags of the corresponding language.

1
1
1

There are also several options available that you can use in your shortcode to tweak the display. The list of tweaks can be seen at the bottom of the Syntax Highlighter Options page.  If you wanted to highlight lines 4 and 12 of your php code you could do the following:

1

Sample output:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>PHP Code Example</title>
</head>
<body>
	<h1>PHP Code Example</h1>

	<p><?php echo 'Hello World!'; ?></p>

	<p>This line is highlighted.</p>

	<div>
		This	is	an
		example	of	smart
		tabs.
	</div>

	<p><a href="http://wordpress.org/">WordPress</a></p>
</body>
</html>

Welcome!

October 24th, 2010 18 comments

JeffPollreisz.com has just been relaunched.  Let me know what you think.

Categories: General Tags: